@univerjs-pro/collaboration-client 0.2.10 → 0.2.12

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 _0x30e940=_0x3b20;(function(_0xc279ef,_0x4d0c06){const _0xe7d95c=_0x3b20,_0x42af52=_0xc279ef();while(!![]){try{const _0x4731be=-parseInt(_0xe7d95c(0x228))/0x1+parseInt(_0xe7d95c(0x3f6))/0x2*(parseInt(_0xe7d95c(0x444))/0x3)+parseInt(_0xe7d95c(0x2cc))/0x4*(-parseInt(_0xe7d95c(0x45f))/0x5)+-parseInt(_0xe7d95c(0x2c7))/0x6+-parseInt(_0xe7d95c(0x339))/0x7*(-parseInt(_0xe7d95c(0x21a))/0x8)+parseInt(_0xe7d95c(0x3ec))/0x9+parseInt(_0xe7d95c(0x13d))/0xa;if(_0x4731be===_0x4d0c06)break;else _0x42af52['push'](_0x42af52['shift']());}catch(_0x2a7f76){_0x42af52['push'](_0x42af52['shift']());}}}(_0x59d8,0x87658));var xt=Object['defineProperty'],Ht=(_0x4535da,_0x2f299b,_0x257fbc)=>_0x2f299b in _0x4535da?xt(_0x4535da,_0x2f299b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x257fbc}):_0x4535da[_0x2f299b]=_0x257fbc,u=(_0xa08ffd,_0x42f1ac,_0x1c0eca)=>Ht(_0xa08ffd,typeof _0x42f1ac!=_0x30e940(0x3b6)?_0x42f1ac+'':_0x42f1ac,_0x1c0eca);Object[_0x30e940(0x36c)](exports,Symbol[_0x30e940(0x23e)],{'value':_0x30e940(0x210)});const o=require(_0x30e940(0x310)),p=require('@univerjs/sheets'),Q=require(_0x30e940(0x254)),L=require(_0x30e940(0x171)),_=require(_0x30e940(0x25b)),v=require(_0x30e940(0x3c4)),E=require(_0x30e940(0x42a)),P=require(_0x30e940(0x279)),U=require('@univerjs/network'),A=require(_0x30e940(0x1e2)),b=require(_0x30e940(0x86)),Ke=require('@univerjs/engine-formula'),xe=require(_0x30e940(0x40a)),J=require(_0x30e940(0x2ce)),y=require(_0x30e940(0x3bf)),kt=require(_0x30e940(0x192)),Bt=require(_0x30e940(0x3f9)),ct='SNAPSHOT_SERVER_URL_KEY',Vt=_0x30e940(0x41b),lt=_0x30e940(0x36e),ht='SEND_CHANGESET_TIMEOUT',Wt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft=_0x30e940(0x197),ut=_0x30e940(0x42e),Gt=0x7530,He=_0x30e940(0x371),dt=0x2710,Yt=_0x30e940(0x2fd),Kt=0x4e20,Xt=_0x30e940(0x305),qt=0x3,St=_0x30e940(0x2fa),zt=0x3e8,vt=_0x30e940(0x2df),Jt='/universer-api/comb',mt=_0x30e940(0x12c),Zt=_0x30e940(0xa8);var gt=(_0x15ad7a=>(_0x15ad7a[_0x15ad7a['UNDEFINED']=0x0]=_0x30e940(0x2ba),_0x15ad7a[_0x15ad7a['OK']=0x1]='OK',_0x15ad7a[_0x15ad7a[_0x30e940(0x136)]=0x2]=_0x30e940(0x136),_0x15ad7a[_0x15ad7a[_0x30e940(0x324)]=0x3]='PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x8a)]=0x4]='NOT_FOUND',_0x15ad7a[_0x15ad7a[_0x30e940(0x2fe)]=0x5]=_0x30e940(0x2fe),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ef)]=0x6]=_0x30e940(0x3ef),_0x15ad7a[_0x15ad7a[_0x30e940(0x2bc)]=0x7]=_0x30e940(0x2bc),_0x15ad7a[_0x15ad7a[_0x30e940(0x91)]=0x8]=_0x30e940(0x91),_0x15ad7a[_0x15ad7a[_0x30e940(0x130)]=0x9]='COMPLETION_FINISHED',_0x15ad7a[_0x15ad7a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x30e940(0x12b),_0x15ad7a[_0x15ad7a[_0x30e940(0x242)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x15ad7a[_0x15ad7a[_0x30e940(0x2d1)]=0x1772]=_0x30e940(0x2d1),_0x15ad7a[_0x15ad7a['APPLY_REJECT']=0x1b59]=_0x30e940(0x44a),_0x15ad7a[_0x15ad7a[_0x30e940(0x2b5)]=0x1b5a]=_0x30e940(0x2b5),_0x15ad7a[_0x15ad7a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30e940(0x441),_0x15ad7a[_0x15ad7a[_0x30e940(0x103)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x1fc)]=0x1f41]=_0x30e940(0x1fc),_0x15ad7a[_0x15ad7a[_0x30e940(0x41e)]=0x2329]=_0x30e940(0x41e),_0x15ad7a[_0x15ad7a[_0x30e940(0x2ea)]=0x232a]=_0x30e940(0x2ea),_0x15ad7a[_0x15ad7a[_0x30e940(0x15b)]=0x232b]=_0x30e940(0x15b),_0x15ad7a[_0x15ad7a[_0x30e940(0x118)]=0x232c]=_0x30e940(0x118),_0x15ad7a[_0x15ad7a[_0x30e940(0xef)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x15ad7a[_0x15ad7a[_0x30e940(0x340)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x15ad7a[_0x15ad7a[_0x30e940(0x1a1)]=0x2712]=_0x30e940(0x1a1),_0x15ad7a[_0x15ad7a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30e940(0x3cb),_0x15ad7a[_0x15ad7a[_0x30e940(0x28f)]=0x2714]=_0x30e940(0x28f),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x15ad7a))(gt||{}),j=(_0x5d1b03=>(_0x5d1b03[_0x5d1b03[_0x30e940(0x294)]=0x0]=_0x30e940(0x294),_0x5d1b03[_0x5d1b03[_0x30e940(0x1f4)]=0x1]=_0x30e940(0x1f4),_0x5d1b03[_0x5d1b03['UNIVER_SHEET']=0x2]=_0x30e940(0x390),_0x5d1b03[_0x5d1b03[_0x30e940(0x2f2)]=0x3]=_0x30e940(0x2f2),_0x5d1b03[_0x5d1b03['UNIVER_PROJECT']=0x4]=_0x30e940(0x420),_0x5d1b03[_0x5d1b03['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x5d1b03))(j||{}),T=(_0x742740=>(_0x742740[_0x742740['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x742740[_0x742740[_0x30e940(0x229)]=0x1]=_0x30e940(0x229),_0x742740[_0x742740['JOIN']=0x2]='JOIN',_0x742740[_0x742740[_0x30e940(0x296)]=0x3]=_0x30e940(0x296),_0x742740[_0x742740['INGEST']=0x4]=_0x30e940(0x360),_0x742740[_0x742740['HEARTBEAT']=0x5]=_0x30e940(0x272),_0x742740[_0x742740[_0x30e940(0x2f6)]=0x6]=_0x30e940(0x2f6),_0x742740[_0x742740['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x742740))(T||{}),ke=(_0x4814f5=>(_0x4814f5[_0x4814f5['UNKNOWN_CODE']=0x0]=_0x30e940(0x17a),_0x4814f5[_0x4814f5['OK']=0x1]='OK',_0x4814f5[_0x4814f5[_0x30e940(0x1ee)]=0x2]=_0x30e940(0x1ee),_0x4814f5[_0x4814f5[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x4814f5))(ke||{}),ft=(_0x36fa96=>(_0x36fa96[_0x36fa96[_0x30e940(0xaf)]=0x0]=_0x30e940(0xaf),_0x36fa96[_0x36fa96[_0x30e940(0x276)]=0x1]=_0x30e940(0x276),_0x36fa96[_0x36fa96['HttpExport']=0x2]=_0x30e940(0x2e0),_0x36fa96[_0x36fa96['UnitEmbedded']=0x3]=_0x30e940(0x2bf),_0x36fa96[_0x36fa96[_0x30e940(0x412)]=0x4]='UnitSnapshot',_0x36fa96[_0x36fa96[_0x30e940(0x3ed)]=-0x1]='UNRECOGNIZED',_0x36fa96))(ft||{}),Qt=Object[_0x30e940(0x36c)],es=Object[_0x30e940(0x1a2)],ts=(_0x6b706,_0x443da0,_0x107c85,_0x5f0911)=>{for(var _0x9c7833=_0x5f0911>0x1?void 0x0:_0x5f0911?es(_0x443da0,_0x107c85):_0x443da0,_0x46fbec=_0x6b706['length']-0x1,_0x1d0f1c;_0x46fbec>=0x0;_0x46fbec--)(_0x1d0f1c=_0x6b706[_0x46fbec])&&(_0x9c7833=(_0x5f0911?_0x1d0f1c(_0x443da0,_0x107c85,_0x9c7833):_0x1d0f1c(_0x9c7833))||_0x9c7833);return _0x5f0911&&_0x9c7833&&Qt(_0x443da0,_0x107c85,_0x9c7833),_0x9c7833;},Xe=(_0x43ef73,_0x183155)=>(_0x51a239,_0x4d35fe)=>_0x183155(_0x51a239,_0x4d35fe,_0x43ef73);let Y=class extends o['Disposable']{constructor(_0x555a85,_0x56eec4){const _0x29c0c9=_0x30e940;super(),u(this,_0x29c0c9(0xf8),new Map()),(this['_univerInstanceService']=_0x555a85,this[_0x29c0c9(0x413)]=_0x56eec4,this[_0x29c0c9(0x22c)](o[_0x29c0c9(0xa1)](v[_0x29c0c9(0xbd)](this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SHEET'])['pipe'](E[_0x29c0c9(0x120)](_0x12e723=>_0x12e723['getUnitId']())),this[_0x29c0c9(0x43f)]['getTypeOfUnitDisposed$'](o[_0x29c0c9(0x37c)][_0x29c0c9(0x1f4)])[_0x29c0c9(0x2a9)](E['map'](_0x40dd7a=>_0x40dd7a[_0x29c0c9(0x280)]())),this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SLIDE'])['pipe'](E[_0x29c0c9(0x120)](_0x113a04=>_0x113a04[_0x29c0c9(0x280)]())))['subscribe'](_0x17efbb=>this[_0x29c0c9(0x41d)](_0x17efbb)))));}[_0x30e940(0x173)](_0x322b27){const _0x56854a=_0x30e940;this[_0x56854a(0x413)][_0x56854a(0x173)](_0x322b27);}[_0x30e940(0x31c)](){const _0x3eeffe=_0x30e940;return this['_userManagerService'][_0x3eeffe(0x31c)]();}['updateMember'](_0x5dffd0,_0x51845f){const _0x45b130=_0x30e940;let _0x3a4ed5=this[_0x45b130(0xf8)]['get'](_0x5dffd0);_0x3a4ed5||(_0x3a4ed5=new ss(),this[_0x45b130(0xf8)]['set'](_0x5dffd0,_0x3a4ed5)),_0x3a4ed5['updateMember'](_0x51845f);}[_0x30e940(0x3e8)](_0x2f54bf,_0x266ed4){const _0x448e6f=_0x30e940,_0x5a555f=this[_0x448e6f(0xf8)][_0x448e6f(0x1f0)](_0x2f54bf);_0x5a555f&&_0x5a555f['removeMember'](_0x266ed4);}[_0x30e940(0x303)](_0x189565){const _0x4b5d90=_0x30e940;return this[_0x4b5d90(0xf8)][_0x4b5d90(0x1f0)](_0x189565);}[_0x30e940(0x275)](_0x334d51,_0x303f61){const _0x59a3c7=_0x30e940,_0x52a6e3=this[_0x59a3c7(0xf8)][_0x59a3c7(0x1f0)](_0x334d51);if(_0x52a6e3)return _0x52a6e3[_0x59a3c7(0x275)](_0x303f61);}[_0x30e940(0x41d)](_0x5a867f){const _0x315ab1=_0x30e940,_0x3f5193=this['_roomMembers'][_0x315ab1(0x1f0)](_0x5a867f);_0x3f5193&&(_0x3f5193[_0x315ab1(0xc6)](),this['_roomMembers'][_0x315ab1(0x244)](_0x5a867f));}[_0x30e940(0xc6)](){const _0x433461=_0x30e940;this[_0x433461(0xf8)][_0x433461(0x277)](_0x317df7=>_0x317df7['dispose']()),this[_0x433461(0xf8)]['clear']();}};Y=ts([Xe(0x0,o[_0x30e940(0x233)]),Xe(0x1,o['Inject'](o[_0x30e940(0x123)]))],Y);class ss extends o[_0x30e940(0x3c3)]{constructor(){const _0x208be4=_0x30e940;super(...arguments),u(this,_0x208be4(0x9a),new Map());}[_0x30e940(0xc6)](){const _0x5e0344=_0x30e940;this[_0x5e0344(0x9a)][_0x5e0344(0x9b)]();}['updateMember'](_0x3b2b80){const _0x31bd5d=_0x30e940;this[_0x31bd5d(0x9a)]['set'](_0x3b2b80['memberID'],_0x3b2b80);}[_0x30e940(0x3e8)](_0x381e28){const _0x106263=_0x30e940;this[_0x106263(0x9a)][_0x106263(0x244)](_0x381e28);}[_0x30e940(0x275)](_0x81f56c){const _0x1410c7=_0x30e940;return this['_members'][_0x1410c7(0x1f0)](_0x81f56c);}}function It(_0x219e18){const _0x48f260=_0x30e940;var _0x5b9cb9,_0x3469b7,_0x4817c2,_0x26f970;const _0x1e2700=_0x219e18['data'],_0x4e3776=JSON[_0x48f260(0x344)](_0x1e2700);switch(_0x4e3776[_0x48f260(0x322)]){case T[_0x48f260(0x272)]:case T[_0x48f260(0x229)]:{const _0x1a7fb9=_0x4e3776[_0x48f260(0x2d0)];return{..._0x4e3776,'data':_0x1a7fb9,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x3fe)]:{const _0x47b4b3=_0x4e3776[_0x48f260(0x37b)];return{..._0x4e3776,'data':_0x47b4b3,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x2f6)]:{const _0x4764f8=_0x4e3776['collaMsg'];switch(_0x4764f8['eventID']){case _[_0x48f260(0x284)][_0x48f260(0x327)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x5b9cb9=_0x4764f8[_0x48f260(0x35f)])==null?void 0x0:_0x5b9cb9['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x30d)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x3469b7=_0x4764f8[_0x48f260(0x27b)])==null?void 0x0:_0x3469b7['cs']},'cmd':_0x4e3776['cmd']};case _[_0x48f260(0x284)][_0x48f260(0xa0)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x4817c2=_0x4764f8[_0x48f260(0x184)])==null?void 0x0:_0x4817c2['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x2c6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x26f970=_0x4764f8['csRejEvent'])==null?void 0x0:_0x26f970['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x89)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3d4)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x473)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xa9)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x1c4)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3cd)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x252)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x21d)]:case _[_0x48f260(0x284)][_0x48f260(0x382)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x145)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)]['LIVESHARE_TERMINATE']:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x37d)]:return{..._0x4e3776,'data':_0x4764f8,'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x46c)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['commentUpdateEvent']},'cmd':_0x4e3776['cmd']};case _['CollaborationEvent'][_0x48f260(0x1a6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xf7)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0xd1)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['shouldCloseConn']},'cmd':_0x4e3776[_0x48f260(0x322)]};default:return _0x4e3776;}}default:return _0x4e3776;}}function pt(_0x51e98d){const _0x3dc209=_0x30e940;switch(_0x51e98d[_0x3dc209(0x322)]){case T['HEARTBEAT']:case T[_0x3dc209(0x229)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d['cmd'],'routeKey':_0x51e98d[_0x3dc209(0x34b)]});case T[_0x3dc209(0x360)]:{let _0xb31a16;switch(_0x51e98d['data'][_0x3dc209(0x15d)]){case _[_0x3dc209(0x284)][_0x3dc209(0x89)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x89)],'updateCursorEvent':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x1c4)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x1c4)],'leaveEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x473)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x473)],'joinEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x252)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x382)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x382)],'liveShareOperation':_0x51e98d['data']['data']};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x3e5)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x3e5)],'liveShareTerminate':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x361)],'liveShareRequestHost':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent'][_0x3dc209(0x21d)]:{_0xb31a16={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xb31a16={'eventID':_0x51e98d[_0x3dc209(0x10a)]['eventID']};}return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'collaMsg':_0xb31a16});}case T['JOIN']:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'joinReq':_0x51e98d[_0x3dc209(0x10a)]});case T[_0x3dc209(0x296)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d[_0x3dc209(0x34b)],'leaveReq':_0x51e98d[_0x3dc209(0x10a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var is=Object[_0x30e940(0x36c)],ns=Object[_0x30e940(0x1a2)],rs=(_0x4a0301,_0x66e14,_0x3f98a8,_0xf805c9)=>{for(var _0x25659f=_0xf805c9>0x1?void 0x0:_0xf805c9?ns(_0x66e14,_0x3f98a8):_0x66e14,_0x17d3ff=_0x4a0301['length']-0x1,_0x46c184;_0x17d3ff>=0x0;_0x17d3ff--)(_0x46c184=_0x4a0301[_0x17d3ff])&&(_0x25659f=(_0xf805c9?_0x46c184(_0x66e14,_0x3f98a8,_0x25659f):_0x46c184(_0x25659f))||_0x25659f);return _0xf805c9&&_0x25659f&&is(_0x66e14,_0x3f98a8,_0x25659f),_0x25659f;},se=(_0x4fdf8e,_0x25b022)=>(_0x4718c0,_0x8879c8)=>_0x25b022(_0x4718c0,_0x8879c8,_0x4fdf8e);const Be=o[_0x30e940(0x16b)]('univer-pro.collaboration-client-socket-service');function os(_0x4e0ba1,_0x22f0de,_0x2d3e9a){const _0x28782b=_0x30e940;return _0x4e0ba1+'/'+_0x22f0de+_0x28782b(0x1ae)+_0x2d3e9a+'/new_changes';}exports[_0x30e940(0x110)]=class{constructor(_0x448e3d,_0x352a10,_0x5d84d9,_0x41a7c1,_0x5a97e0){const _0x14c7ce=_0x30e940;this['_http']=_0x448e3d,this[_0x14c7ce(0x35a)]=_0x352a10,this[_0x14c7ce(0x160)]=_0x5d84d9,this[_0x14c7ce(0x198)]=_0x41a7c1,this[_0x14c7ce(0x31a)]=_0x5a97e0;}[_0x30e940(0x29f)](_0x379192){const _0x213a8c=_0x30e940,_0x4c3128=this[_0x213a8c(0x35a)][_0x213a8c(0x29f)](_0x379192);if(!_0x4c3128)throw new Error(_0x213a8c(0x3fc));const _0x37e96f=new o[(_0x213a8c(0x16f))](),_0x43fd46=new v['Subject']();_0x37e96f['add'](o[_0x213a8c(0xa1)](_0x4c3128[_0x213a8c(0x392)][_0x213a8c(0x196)](_0x4fb93d=>_0x43fd46[_0x213a8c(0x46e)](_0x4fb93d)))),_0x37e96f['add'](o[_0x213a8c(0xa1)](()=>_0x43fd46[_0x213a8c(0xb0)]()));const _0x1c1d87=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](_0x4c3128['error$'][_0x213a8c(0x196)](_0x223733=>_0x1c1d87[_0x213a8c(0x46e)](_0x223733)))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x1c1d87[_0x213a8c(0xb0)]()));const _0x33fe44=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o['toDisposable'](_0x4c3128[_0x213a8c(0x3da)]['subscribe'](_0x47eef1=>{const _0x33ecb6=It(_0x47eef1);_0x33fe44['next'](_0x33ecb6);}))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x33fe44[_0x213a8c(0xb0)]()));const _0x3f0e7d=()=>{const _0xb2068=_0x213a8c;_0x1c1d87[_0xb2068(0x46e)](new Event('connection\x20error')),_0x43fd46[_0xb2068(0x46e)](new CloseEvent('connection\x20error')),_0x7eec1c['close']();},_0x7eec1c={'memberID':'','close$':_0x43fd46[_0x213a8c(0x16a)](),'error$':_0x1c1d87[_0x213a8c(0x16a)](),'open$':_0x4c3128[_0x213a8c(0x239)],'message$':_0x33fe44['asObservable'](),'send':_0x5328b6=>{const _0x1443e6=_0x213a8c;if(_0x5328b6[_0x1443e6(0x322)]===T[_0x1443e6(0x360)]){if(_0x5328b6[_0x1443e6(0x10a)][_0x1443e6(0x15d)]===_[_0x1443e6(0x284)][_0x1443e6(0x19c)]){this['_submitChangeset'](_0x7eec1c,_0x5328b6[_0x1443e6(0x10a)])[_0x1443e6(0x1a7)](_0x4246d4=>{const _0xdd18f1=_0x1443e6;this[_0xdd18f1(0x198)][_0xdd18f1(0xf0)](_0x4246d4),_0x3f0e7d();});return;}if(_0x5328b6[_0x1443e6(0x10a)]['eventID']===_['CollaborationEvent'][_0x1443e6(0x105)]){const _0x16fbfc=_0x5328b6[_0x1443e6(0x10a)];this[_0x1443e6(0x23d)](_0x16fbfc)[_0x1443e6(0x9d)](_0xb850f2=>{const _0x554698=_0x1443e6;_0x33fe44[_0x554698(0x46e)]({'cmd':T[_0x554698(0x2f6)],'code':ke['OK'],'routeKey':_0x16fbfc[_0x554698(0x10a)][_0x554698(0x1e6)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x554698(0x124)],'data':{'changesets':_0xb850f2}}});})[_0x1443e6(0x1a7)](_0x5d514b=>{const _0x176d2f=_0x1443e6;this[_0x176d2f(0x198)][_0x176d2f(0xf0)](_0x5d514b),_0x3f0e7d();});return;}}_0x4c3128[_0x1443e6(0x3e9)](pt(_0x5328b6));},'close':()=>{const _0x4179ec=_0x213a8c;_0x4c3128[_0x4179ec(0x21c)](),_0x37e96f['dispose']();}};return _0x7eec1c;}async[_0x30e940(0x2d6)](_0x48c1f1,_0x1c2cdb){const _0x4250da=_0x30e940;var _0x4859e9;const {unitType:_0x39e838,unitID:_0x1b5125,changeset:_0x20cec6}=_0x1c2cdb[_0x4250da(0x10a)],_0x53828f={'unitID':_0x1b5125,'memberID':_0x48c1f1['memberID'],'type':_0x39e838,'changeset':_['parseChangesetToProtocol'](_0x20cec6)},_0x418d9e=os((_0x4859e9=this[_0x4250da(0x160)][_0x4250da(0xfc)](vt))!=null?_0x4859e9:Jt,_0x39e838,_0x1b5125);try{await this[_0x4250da(0x34e)][_0x4250da(0x35c)](_0x418d9e,{'body':_0x53828f});}catch(_0xb09a8d){throw this['_logService']['error'](_0x4250da(0xb7),_0x4250da(0x248)),_0xb09a8d;}}async[_0x30e940(0x23d)](_0xc111cc){const _0x24d997=_0x30e940,{unitID:_0x12d7ca,from:_0x2af553,to:_0x523fce,unitType:_0x562813}=_0xc111cc[_0x24d997(0x10a)];return(await this[_0x24d997(0x31a)][_0x24d997(0x34c)]({'metadata':void 0x0},{'unitID':_0x12d7ca,'type':_0x562813,'from':_0x2af553,'to':_0x523fce}))['changesets'];}},exports[_0x30e940(0x110)]=rs([se(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),se(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x350)])),se(0x2,o[_0x30e940(0x306)]),se(0x3,o[_0x30e940(0x1e7)]),se(0x4,_['ISnapshotServerService'])],exports[_0x30e940(0x110)]);class Ve{constructor(){const _0x8f7403=_0x30e940;u(this,_0x8f7403(0x374),new v[(_0x8f7403(0x457))]()),u(this,'commentUpdate$',this[_0x8f7403(0x374)][_0x8f7403(0x16a)]());}[_0x30e940(0x134)](_0x5774ba){const _0x21256a=_0x30e940;this['_commentUpdate$'][_0x21256a(0x46e)](_0x5774ba);}}var as=Object[_0x30e940(0x36c)],cs=Object[_0x30e940(0x1a2)],Et=(_0x467865,_0x580393,_0x334e87,_0x3524ce)=>{const _0x8852a7=_0x30e940;for(var _0x21329a=_0x3524ce>0x1?void 0x0:_0x3524ce?cs(_0x580393,_0x334e87):_0x580393,_0x5cb679=_0x467865[_0x8852a7(0x3b8)]-0x1,_0x46a19d;_0x5cb679>=0x0;_0x5cb679--)(_0x46a19d=_0x467865[_0x5cb679])&&(_0x21329a=(_0x3524ce?_0x46a19d(_0x580393,_0x334e87,_0x21329a):_0x46a19d(_0x21329a))||_0x21329a);return _0x3524ce&&_0x21329a&&as(_0x580393,_0x334e87,_0x21329a),_0x21329a;},M=(_0x2dd0f3,_0x306cde)=>(_0x120162,_0x5486c9)=>_0x306cde(_0x120162,_0x5486c9,_0x2dd0f3),G=(_0x5c6d53=>(_0x5c6d53[_0x5c6d53[_0x30e940(0x2b8)]=0x0]=_0x30e940(0x2b8),_0x5c6d53[_0x5c6d53[_0x30e940(0x119)]=0x1]=_0x30e940(0x119),_0x5c6d53[_0x5c6d53[_0x30e940(0x32d)]=0x2]=_0x30e940(0x32d),_0x5c6d53[_0x5c6d53[_0x30e940(0x3aa)]=0x3]=_0x30e940(0x3aa),_0x5c6d53))(G||{});exports[_0x30e940(0x3ff)]=class extends o['RxDisposable']{constructor(_0x300d94,_0x50ee02,_0x6ccc52,_0x3b2199,_0x2ea6f0,_0x2f10cd,_0x217e89,_0x56eaf8,_0x1eadf6){const _0xf5555=_0x30e940;super(),u(this,_0xf5555(0x2d3),new v[(_0xf5555(0x2d8))](0x0)),u(this,'sessionStatus$',this[_0xf5555(0x2d3)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x42b),new v[(_0xf5555(0x457))]()),u(this,_0xf5555(0x199),this[_0xf5555(0x42b)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x431)),u(this,_0xf5555(0x287)),u(this,'_collaborationTimeoutTimer'),(this[_0xf5555(0x39b)]=_0x300d94,this[_0xf5555(0x198)]=_0x6ccc52,this[_0xf5555(0x400)]=_0x3b2199,this[_0xf5555(0x255)]=_0x2ea6f0,this[_0xf5555(0x160)]=_0x2f10cd,this['_localeService']=_0x217e89,this[_0xf5555(0x460)]=_0x56eaf8,this[_0xf5555(0x26c)]=_0x1eadf6,_0x50ee02[_0xf5555(0x2a9)](E[_0xf5555(0x3a8)](this[_0xf5555(0x2b1)]))[_0xf5555(0x196)](_0x2d2a9f=>{const _0x49f25b=_0xf5555;var _0x7ee5cb;typeof _0x2d2a9f>'u'||(this[_0x49f25b(0x431)]=_0x2d2a9f,_0x2d2a9f?(this[_0x49f25b(0x315)](_0x2d2a9f),this[_0x49f25b(0x287)]=this[_0x49f25b(0x431)][_0x49f25b(0x3da)]['subscribe'](_0x1e50df=>{const _0x599560=_0x49f25b;_0x1e50df[_0x599560(0x34b)]===this[_0x599560(0x39b)]&&this[_0x599560(0x18c)](_0x1e50df);})):(this['_sessionStatus$']['next'](0x2),(_0x7ee5cb=this[_0x49f25b(0x287)])==null||_0x7ee5cb[_0x49f25b(0xe4)](),this['_socketMessageSubscription']=null));}),this[_0xf5555(0x22c)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x22ab3f=_0xf5555;var _0x57406e;(_0x57406e=this[_0x22ab3f(0x431)])==null||_0x57406e['send']({'cmd':T[_0x22ab3f(0x296)],'data':{'roomID':this[_0x22ab3f(0x39b)]}});})));}get[_0x30e940(0x125)](){const _0x4e9fc8=_0x30e940;return this[_0x4e9fc8(0x2d3)][_0x4e9fc8(0xca)]();}[_0x30e940(0x266)](){const _0x58ca9c=_0x30e940;var _0x24b881,_0x315048;return(_0x315048=(_0x24b881=this[_0x58ca9c(0x431)])==null?void 0x0:_0x24b881[_0x58ca9c(0x1b2)])!=null?_0x315048:null;}[_0x30e940(0xc6)](){const _0x4c0868=_0x30e940;super[_0x4c0868(0xc6)](),this['dispose$']['next'](),this[_0x4c0868(0x2b1)][_0x4c0868(0xb0)]();}[_0x30e940(0x21c)](){const _0xeead4a=_0x30e940;var _0x497d77,_0x55731e;(_0x497d77=this[_0xeead4a(0x431)])==null||_0x497d77[_0xeead4a(0x3e9)]({'cmd':T[_0xeead4a(0x296)],'data':{'roomID':this[_0xeead4a(0x39b)]}}),this[_0xeead4a(0x42b)][_0xeead4a(0xb0)](),this[_0xeead4a(0x2d3)][_0xeead4a(0xb0)](),(_0x55731e=this[_0xeead4a(0x431)])==null||_0x55731e[_0xeead4a(0x21c)](),this[_0xeead4a(0xc6)]();}[_0x30e940(0x18c)](_0x3fe5d2){const _0x3409b4=_0x30e940;_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x3fe)]?this[_0x3409b4(0x166)](_0x3fe5d2):_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x2f6)]&&this[_0x3409b4(0x180)](_0x3fe5d2);}[_0x30e940(0x315)](_0x4e899f){const _0x3a00b9=_0x30e940;this['_sessionStatus$']['next'](0x1),_0x4e899f[_0x3a00b9(0x3e9)]({'cmd':T['JOIN'],'routeKey':this[_0x3a00b9(0x39b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x30e940(0x166)](_0x3f5742){const _0x34aaea=_0x30e940;var _0x5e5f92;if(_0x3f5742['code']===ke[_0x34aaea(0x1ee)]){this['_messageService'][_0x34aaea(0x157)]({'type':Q['MessageType'][_0x34aaea(0x3d6)],'content':this[_0x34aaea(0x45b)]['t'](_0x34aaea(0x333))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x34aaea(0x2d3)]['next'](0x3);const _0x39d4d4=(_0x5e5f92=_0x3f5742[_0x34aaea(0x10a)][_0x34aaea(0x25c)][this[_0x34aaea(0x39b)]])==null?void 0x0:_0x5e5f92[_0x34aaea(0x1c7)];_0x39d4d4&&_0x39d4d4[_0x34aaea(0x277)](_0xccd721=>this['_memberService'][_0x34aaea(0x12e)](this['_unitID'],_0xccd721));}[_0x30e940(0x180)](_0x5a5c0a){const _0x33a95f=_0x30e940;try{const _0x2d92ab=_0x5a5c0a[_0x33a95f(0x10a)];switch(_0x2d92ab[_0x33a95f(0x15d)]){case _[_0x33a95f(0x284)][_0x33a95f(0x473)]:this[_0x33a95f(0x100)](_0x2d92ab),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x2d92ab),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _['CollaborationEvent'][_0x33a95f(0x30d)]:this['_clearCollaborationTimeoutTimer'](),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x37d)]:this[_0x33a95f(0x198)][_0x33a95f(0xf0)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x33a95f(0x1be)](_0x2d92ab)),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x46c)]:this[_0x33a95f(0x26c)]['onCommentUpdate'](_0x2d92ab[_0x33a95f(0x10a)]),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;default:this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);}}catch(_0x2302b2){this[_0x33a95f(0x198)]['error'](_0x2302b2,_0x5a5c0a);}}[_0x30e940(0x100)](_0x4ca66b){const _0x20ad5d=_0x30e940;this['_memberService'][_0x20ad5d(0x12e)](this[_0x20ad5d(0x39b)],_0x4ca66b[_0x20ad5d(0x10a)]);}['_onUserLeave'](_0x167bf9){const _0x18ba6b=_0x30e940;this[_0x18ba6b(0x460)][_0x18ba6b(0x3e8)](this['_unitID'],_0x167bf9[_0x18ba6b(0x10a)][_0x18ba6b(0x1b2)]);}async[_0x30e940(0x3e9)](_0x137d53,_0x396312){const _0x55a7e9=_0x30e940;if(this[_0x55a7e9(0x125)]!==0x3||!this[_0x55a7e9(0x431)])throw new Error(_0x55a7e9(0x2ae));try{_0x137d53['eventID']===_[_0x55a7e9(0x284)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x55a7e9(0x431)][_0x55a7e9(0x3e9)]({'cmd':T[_0x55a7e9(0x360)],'routeKey':_0x396312,'routeType':'','data':_0x137d53});}catch(_0x4b9062){this[_0x55a7e9(0x198)]['error'](_0x4b9062);}}[_0x30e940(0x336)](){var _0x58afdb;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x136bf8=_0x3b20;this['_collaborationTimeoutTimer']=null,this[_0x136bf8(0x255)][_0x136bf8(0x157)]({'type':Q[_0x136bf8(0x187)][_0x136bf8(0x447)],'content':this['_localeService']['t'](_0x136bf8(0x270))});},(_0x58afdb=this['_configService']['getConfig'](He))!=null?_0x58afdb:dt);}[_0x30e940(0x22f)](){const _0xa19d7d=_0x30e940;this[_0xa19d7d(0x258)]&&(clearTimeout(this[_0xa19d7d(0x258)]),this[_0xa19d7d(0x258)]=null);}},exports[_0x30e940(0x3ff)]=Et([M(0x2,o[_0x30e940(0x1e7)]),M(0x3,L['IBeforeCloseService']),M(0x4,L[_0x30e940(0x3d3)]),M(0x5,o['IConfigService']),M(0x6,o['Inject'](o[_0x30e940(0xfe)])),M(0x7,o[_0x30e940(0xdf)](Y)),M(0x8,o['Inject'](Ve))],exports[_0x30e940(0x3ff)]),exports[_0x30e940(0x373)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x439a40,_0x38d578,_0x3038cf,_0x15c62c,_0x3f95b9,_0x324b55){const _0x319d52=_0x30e940;super(),u(this,_0x319d52(0x42c),new v[(_0x319d52(0x2d8))](void 0x0)),u(this,_0x319d52(0x1f9),new Map()),u(this,_0x319d52(0x3f0),new v['BehaviorSubject'](0x0)),u(this,_0x319d52(0x3e0),this[_0x319d52(0x3f0)][_0x319d52(0x16a)]()),u(this,_0x319d52(0x278),!0x1),u(this,_0x319d52(0x191)),u(this,_0x319d52(0x288)),u(this,_0x319d52(0x36a)),u(this,_0x319d52(0x364),0x0),(this['_injector']=_0x439a40,this[_0x319d52(0x45b)]=_0x38d578,this[_0x319d52(0x255)]=_0x3038cf,this['_logService']=_0x15c62c,this[_0x319d52(0x160)]=_0x3f95b9,this['_socketService']=_0x324b55);}get[_0x30e940(0x431)](){const _0x3a5b46=_0x30e940;return this[_0x3a5b46(0x42c)][_0x3a5b46(0xca)]();}[_0x30e940(0xc6)](){const _0x359d50=_0x30e940;super[_0x359d50(0xc6)](),this[_0x359d50(0x1f9)]['forEach'](_0x56b96d=>_0x56b96d[_0x359d50(0xc6)]()),this['_sessions']['clear'](),this[_0x359d50(0x3f0)][_0x359d50(0xb0)]();}async[_0x30e940(0x470)](_0x5103b2){const _0x36c549=_0x30e940;if(this[_0x36c549(0x1f9)][_0x36c549(0x45c)](_0x5103b2))return this[_0x36c549(0x1f9)][_0x36c549(0x1f0)](_0x5103b2);this['_tryEnsureSocket']();const _0x567680=this['_injector']['createInstance'](exports[_0x36c549(0x3ff)],_0x5103b2,this[_0x36c549(0x42c)][_0x36c549(0x16a)]());return this[_0x36c549(0x1f9)][_0x36c549(0x346)](_0x5103b2,_0x567680),_0x567680;}['closeSession'](_0x787b2){const _0x45ab41=_0x30e940;var _0x153b7e;const _0x4c377d=this[_0x45ab41(0x1f9)]['get'](_0x787b2);_0x4c377d&&(this[_0x45ab41(0x1f9)][_0x45ab41(0x244)](_0x787b2),_0x4c377d[_0x45ab41(0x21c)]()),this['_sessions'][_0x45ab41(0x2f3)]||(_0x153b7e=this[_0x45ab41(0x431)])==null||_0x153b7e['close']();}[_0x30e940(0x11a)](){const _0xdcc870=_0x30e940;var _0x4b148f;const _0x183bf8=(_0x4b148f=this[_0xdcc870(0x160)][_0xdcc870(0xfc)](_t))!=null?_0x4b148f:Ft;return this[_0xdcc870(0x21e)]['createSocket'](_0x183bf8);}[_0x30e940(0x218)](){const _0x2aa7ea=_0x30e940;try{const _0x283f6e=this['_createSocket']();if(_0x283f6e){const _0x1c00b8=_0x283f6e['send'];_0x283f6e[_0x2aa7ea(0x3e9)]=_0x589bca=>(this[_0x2aa7ea(0x3a2)](),_0x1c00b8[_0x2aa7ea(0x3cf)](_0x283f6e,[_0x589bca])),_0x283f6e[_0x2aa7ea(0x3da)][_0x2aa7ea(0x196)](_0x5cdbc1=>this[_0x2aa7ea(0x1c1)](_0x283f6e,_0x5cdbc1)),_0x283f6e[_0x2aa7ea(0x132)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x1bf513=>this[_0x2aa7ea(0x198)][_0x2aa7ea(0xf0)](_0x2aa7ea(0x375),_0x1bf513)),_0x283f6e[_0x2aa7ea(0x239)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](()=>{const _0x19649d=_0x2aa7ea;this[_0x19649d(0x21b)](_0x283f6e);}),_0x283f6e['close$'][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x26c59d=>{const _0x587f1e=_0x2aa7ea;this[_0x587f1e(0x198)][_0x587f1e(0x293)](_0x587f1e(0x147),_0x587f1e(0xcb),_0x26c59d),this[_0x587f1e(0x2c9)]();});}}catch(_0x26e338){this[_0x2aa7ea(0x198)]['error'](_0x26e338),this[_0x2aa7ea(0x2c9)]();}}[_0x30e940(0x21b)](_0x2de01a){const _0x43be7d=_0x30e940;this[_0x43be7d(0x198)][_0x43be7d(0x293)](_0x43be7d(0x147),_0x43be7d(0xd8)),_0x2de01a[_0x43be7d(0x3e9)]({'cmd':T[_0x43be7d(0x229)]}),this[_0x43be7d(0x3a2)]();}[_0x30e940(0x2c9)](){const _0x59d862=_0x30e940;var _0x5b569c;this[_0x59d862(0x3f0)]['next'](0x2),this['_socket$'][_0x59d862(0x46e)](null),this[_0x59d862(0x466)](),this[_0x59d862(0x313)](),this['_socketReady']=!0x1,this[_0x59d862(0x364)]<((_0x5b569c=this['_configService'][_0x59d862(0xfc)](Xt))!=null?_0x5b569c:qt)?(this[_0x59d862(0x351)](this[_0x59d862(0x364)]),this[_0x59d862(0x364)]+=0x1):this[_0x59d862(0x255)]['show']({'type':Q[_0x59d862(0x187)][_0x59d862(0x447)],'content':this[_0x59d862(0x45b)]['t'](_0x59d862(0x240))});}[_0x30e940(0x351)](_0x1fad80){const _0x22ed35=_0x30e940;var _0x58e66c;const _0x4f8329=((_0x58e66c=this[_0x22ed35(0x160)]['getConfig'](Yt))!=null?_0x58e66c:Kt)*0x2**_0x1fad80;this[_0x22ed35(0x255)][_0x22ed35(0x157)]({'type':Q['MessageType']['Warning'],'content':this[_0x22ed35(0x45b)]['t'](_0x22ed35(0x2af))}),this[_0x22ed35(0x36a)]=setTimeout(()=>{const _0x1eafb7=_0x22ed35;this[_0x1eafb7(0x218)](),clearTimeout(this[_0x1eafb7(0x36a)]),this['_retryConnectingTimer']=null;},_0x4f8329);}[_0x30e940(0x3a2)](){const _0x129c00=_0x30e940;var _0x52b461;this[_0x129c00(0x313)](),this[_0x129c00(0x191)]=setTimeout(()=>this[_0x129c00(0x30f)](),(_0x52b461=this[_0x129c00(0x160)][_0x129c00(0xfc)](ut))!=null?_0x52b461:Gt);}[_0x30e940(0x30f)](){const _0x6b6fb1=_0x30e940;this['_socket'][_0x6b6fb1(0x3e9)]({'cmd':T['HEARTBEAT']}),this[_0x6b6fb1(0x3d7)]();}[_0x30e940(0x3d7)](){const _0x1fb90c=_0x30e940;var _0x4a6318;this[_0x1fb90c(0x288)]=setTimeout(()=>this[_0x1fb90c(0x2c9)](),(_0x4a6318=this[_0x1fb90c(0x160)][_0x1fb90c(0xfc)](He))!=null?_0x4a6318:dt);}[_0x30e940(0x1c1)](_0x39541c,_0x35ec83){const _0x275828=_0x30e940,{cmd:_0x22cf3e}=_0x35ec83;_0x22cf3e===T[_0x275828(0x229)]&&!this[_0x275828(0x278)]&&(_0x39541c['memberID']=_0x35ec83[_0x275828(0x10a)][_0x275828(0x1b2)],this[_0x275828(0x42c)]['next'](_0x39541c),this[_0x275828(0x3f0)]['next'](0x3),this['_socketReady']=!0x0),_0x22cf3e===T['HEARTBEAT']&&this[_0x275828(0x466)](),this['_rescheduleHeartbeatEvent']();}['_clearHeartbeatTimer'](){const _0x307139=_0x30e940;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x307139(0x191)]),this[_0x307139(0x191)]=null);}[_0x30e940(0x466)](){const _0xce6e23=_0x30e940;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xce6e23(0x288)]),this[_0xce6e23(0x288)]=null);}},exports[_0x30e940(0x373)]=Et([M(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),M(0x1,o[_0x30e940(0xdf)](o['LocaleService'])),M(0x2,L[_0x30e940(0x3d3)]),M(0x3,o[_0x30e940(0x1e7)]),M(0x4,o[_0x30e940(0x306)]),M(0x5,Be)],exports['CollaborationSessionService']);var ls=Object[_0x30e940(0x36c)],hs=Object[_0x30e940(0x1a2)],_s=(_0x51b844,_0x4cb1cb,_0x5819a8,_0x214bec)=>{const _0x17f290=_0x30e940;for(var _0x3997b9=_0x214bec>0x1?void 0x0:_0x214bec?hs(_0x4cb1cb,_0x5819a8):_0x4cb1cb,_0x11b77e=_0x51b844[_0x17f290(0x3b8)]-0x1,_0x16a9a5;_0x11b77e>=0x0;_0x11b77e--)(_0x16a9a5=_0x51b844[_0x11b77e])&&(_0x3997b9=(_0x214bec?_0x16a9a5(_0x4cb1cb,_0x5819a8,_0x3997b9):_0x16a9a5(_0x3997b9))||_0x3997b9);return _0x214bec&&_0x3997b9&&ls(_0x4cb1cb,_0x5819a8,_0x3997b9),_0x3997b9;},ie=(_0x304519,_0x138599)=>(_0x4ebd0e,_0x4e2fb6)=>_0x138599(_0x4ebd0e,_0x4e2fb6,_0x304519);exports[_0x30e940(0x227)]=class extends o[_0x30e940(0x3c3)]{constructor(_0xd4ea3,_0x3496ee,_0x31d792,_0x44ef3a,_0x253a23){const _0x366e62=_0x30e940;super(),u(this,_0x366e62(0x2f5),new Map()),u(this,_0x366e62(0x154),new Map()),u(this,_0x366e62(0x18a),!0x1),(this['_configService']=_0xd4ea3,this['_localStorageService']=_0x3496ee,this[_0x366e62(0x400)]=_0x31d792,this['_localeService']=_0x44ef3a,this[_0x366e62(0x2fb)]=_0x253a23,this['_setupBeforeClosingHandler']());}[_0x30e940(0x422)](){const _0x3f40cd=_0x30e940;this[_0x3f40cd(0x18a)]=!0x0;}[_0x30e940(0x185)](){this['_disabled']=!0x1;}[_0x30e940(0xc6)](){const _0x297a1d=_0x30e940;this[_0x297a1d(0x1b5)]()[_0x297a1d(0x9d)](()=>super[_0x297a1d(0xc6)]());}async[_0x30e940(0x341)](_0x46f6db){const _0x45ef9a=_0x30e940;return this['_disabled']?null:this[_0x45ef9a(0x217)][_0x45ef9a(0x2ca)](qe(_0x46f6db));}async[_0x30e940(0x1a8)](_0x99a4,_0x4533c5){const _0x5c7059=_0x30e940;return!!this[_0x5c7059(0x217)][_0x5c7059(0x471)](_0x99a4,_0x4533c5);}[_0x30e940(0x475)](_0x1d3cfa,_0xf7b71,_0x4e73e9,_0x363e30){const _0x3839a5=_0x30e940,_0x3f3e8d=this['_revisionService'][_0x3839a5(0x17e)](_0x1d3cfa);this[_0x3839a5(0x2f5)][_0x3839a5(0x346)](_0x1d3cfa,{'unitID':_0x1d3cfa,'type':_0xf7b71,'awaitingChangeset':_0x4e73e9,'mutations':_0x363e30,'rev':_0x3f3e8d}),this[_0x3839a5(0x154)][_0x3839a5(0x45c)](_0x1d3cfa)||this['_scheduleSaving'](_0x1d3cfa);}['_scheduleSaving'](_0x2fe35f){const _0x47136b=_0x30e940,_0x54b57a=this[_0x47136b(0x114)]();_0x54b57a===0x0?this[_0x47136b(0x31f)](_0x2fe35f):this['_saveTaskMap'][_0x47136b(0x346)](_0x2fe35f,setTimeout(()=>this[_0x47136b(0x31f)](_0x2fe35f),_0x54b57a));}['_getSaveTimeout'](){const _0x16679e=_0x30e940;var _0xb248de;return(_0xb248de=this[_0x16679e(0x160)][_0x16679e(0xfc)](St))!=null?_0xb248de:zt;}[_0x30e940(0x31f)](_0x28777d){const _0x354e15=_0x30e940,_0x4f7ad9=this['_saveTaskMap'][_0x354e15(0x1f0)](_0x28777d);return _0x4f7ad9!==void 0x0&&window[_0x354e15(0x87)](_0x4f7ad9),this[_0x354e15(0x217)][_0x354e15(0x471)](qe(_0x28777d),this[_0x354e15(0x2f5)]['get'](_0x28777d))[_0x354e15(0x9d)](()=>this[_0x354e15(0x154)]['delete'](_0x28777d));}async[_0x30e940(0x1b5)](){const _0x208e48=_0x30e940,_0x57206b=[];this[_0x208e48(0x154)][_0x208e48(0x277)]((_0x3faf24,_0x494bdb)=>{const _0x48ee75=_0x208e48;window[_0x48ee75(0x87)](_0x3faf24),_0x57206b[_0x48ee75(0x220)](this[_0x48ee75(0x31f)](_0x494bdb)[_0x48ee75(0x9d)](()=>{const _0x456677=_0x48ee75;this[_0x456677(0x154)]['delete'](_0x494bdb);}));}),await Promise[_0x208e48(0x189)](_0x57206b);}['_setupBeforeClosingHandler'](){const _0x377a99=_0x30e940;this[_0x377a99(0x22c)](this[_0x377a99(0x400)][_0x377a99(0x332)](()=>{const _0x3865ab=_0x377a99;if(this[_0x3865ab(0x154)][_0x3865ab(0x2f3)])return this[_0x3865ab(0x45b)]['t'](_0x3865ab(0x19e));}));}},exports[_0x30e940(0x227)]=_s([ie(0x0,o[_0x30e940(0x306)]),ie(0x1,o[_0x30e940(0x3d1)]),ie(0x2,L[_0x30e940(0x462)]),ie(0x3,o[_0x30e940(0xdf)](o['LocaleService'])),ie(0x4,o['Inject'](_[_0x30e940(0x1db)]))],exports[_0x30e940(0x227)]);function qe(_0x11d4fd){return'unit-cache-'+_0x11d4fd;}const pe=o[_0x30e940(0x16b)]('univer-pro.collaboration-client.single-active-unit-service');var Ct=(_0xe36cfc=>(_0xe36cfc[_0xe36cfc[_0x30e940(0x389)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xe36cfc[_0xe36cfc[_0x30e940(0x140)]=0x1]='OTHER_CLIENTS_EDITING',_0xe36cfc))(Ct||{});const ze=0x7530,Je=_0x30e940(0x36d);class us extends o[_0x30e940(0x3c3)]{constructor(){const _0x5f51b3=_0x30e940;super(),u(this,_0x5f51b3(0x314),o['Tools'][_0x5f51b3(0x108)]()),u(this,_0x5f51b3(0x2e5),new Set()),u(this,_0x5f51b3(0x8d),new Map()),u(this,_0x5f51b3(0x35d),null),u(this,_0x5f51b3(0xe2),new Map()),u(this,'_unitStatus',new Map()),this[_0x5f51b3(0x2eb)]();}['dispose'](){const _0x4a54bc=_0x30e940;super[_0x4a54bc(0xc6)](),this['_clearOtherTimers'][_0x4a54bc(0x277)]((_0x4db719,_0x5ab513)=>this[_0x4a54bc(0x19f)](_0x5ab513)),this[_0x4a54bc(0x35d)]&&window['clearInterval'](this[_0x4a54bc(0x35d)]);}[_0x30e940(0x93)](_0x4010c1){const _0x13bf73=_0x30e940;return this[_0x13bf73(0x3e1)](_0x4010c1)[_0x13bf73(0x2a9)](v[_0x13bf73(0x34f)]());}[_0x30e940(0x23f)](_0x3838c6){const _0x1e594f=_0x30e940;this[_0x1e594f(0x2e5)][_0x1e594f(0x2f3)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1e594f(0x2e5)][_0x1e594f(0x418)](_0x3838c6),this[_0x1e594f(0x2a5)]({'type':0x0,'memberID':this[_0x1e594f(0x314)],'unitIDs':[_0x3838c6],'isForwarded':!0x1});}[_0x30e940(0x299)](_0x1be991){const _0x536e3a=_0x30e940;this[_0x536e3a(0x2e5)][_0x536e3a(0x244)](_0x1be991),this['_selfUnitIDs'][_0x536e3a(0x2f3)]===0x0&&this['_heartbeatTimer']&&window[_0x536e3a(0x25a)](this[_0x536e3a(0x35d)]);}[_0x30e940(0x2eb)](){const _0x2d0a9a=_0x30e940;this['disposeWithMe'](o['toDisposable'](v[_0x2d0a9a(0x30a)](window,'storage')['subscribe'](_0x533861=>{const _0x1cc5f2=_0x2d0a9a;if(_0x533861['key']!==Je||!_0x533861[_0x1cc5f2(0x1a4)])return;const _0x34af59=JSON[_0x1cc5f2(0x344)](_0x533861[_0x1cc5f2(0x1a4)]);this[_0x1cc5f2(0x2b0)](_0x34af59);}))),window[_0x2d0a9a(0x358)]('unload',()=>this[_0x2d0a9a(0x2a5)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2d0a9a(0x16d)](this[_0x2d0a9a(0x2e5)])}));}[_0x30e940(0x2b0)](_0x1cd3ee){const _0x550e3b=_0x30e940;switch(_0x1cd3ee[_0x550e3b(0x312)]){case 0x0:this[_0x550e3b(0x273)](_0x1cd3ee);break;case 0x1:this[_0x550e3b(0x3a4)](_0x1cd3ee);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cd3ee);break;}}[_0x30e940(0x273)](_0x4aba2b){const _0x29cea6=_0x30e940,{unitIDs:_0x1f482f,memberID:_0x2e3765,isForwarded:_0x1527dd}=_0x4aba2b;_0x1f482f[_0x29cea6(0x277)](_0x3282af=>{const _0x7af561=_0x29cea6;if(!_0x1527dd&&this[_0x7af561(0x8d)][_0x7af561(0x45c)](_0x3282af)&&this[_0x7af561(0x3e1)](_0x3282af)[_0x7af561(0x46e)](0x1),!this[_0x7af561(0x8d)]['has'](_0x3282af)||!this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)['has'](_0x2e3765)){const _0x1dd385=this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)||new Set();_0x1dd385[_0x7af561(0x418)](_0x2e3765),this[_0x7af561(0x8d)][_0x7af561(0x346)](_0x3282af,_0x1dd385),this[_0x7af561(0x34a)](_0x2e3765);}}),_0x1527dd||this[_0x29cea6(0x2a5)]({'type':0x0,'memberID':this[_0x29cea6(0x314)],'unitIDs':[...this[_0x29cea6(0x2e5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x10640b){const _0x560e1c=_0x30e940;this['_removeClearOtherTimer'](_0x10640b);const _0x2b2178=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x22a198=>{const _0x342856=_0x3b20;_0x22a198[_0x342856(0x244)](_0x10640b);});},ze*0x2);this[_0x560e1c(0xe2)][_0x560e1c(0x346)](_0x10640b,_0x2b2178);}[_0x30e940(0x19f)](_0x1c3208){const _0x17b243=_0x30e940;if(this['_clearOtherTimers'][_0x17b243(0x45c)](_0x1c3208)){const _0x399ffd=this[_0x17b243(0xe2)][_0x17b243(0x1f0)](_0x1c3208);_0x399ffd&&window[_0x17b243(0x87)](_0x399ffd),this[_0x17b243(0xe2)][_0x17b243(0x346)](_0x1c3208,null);}}[_0x30e940(0x3a4)](_0x214464){const _0x16b6d9=_0x30e940,{memberID:_0x1531a3,unitIDs:_0xf4f7a0}=_0x214464;_0xf4f7a0['forEach'](_0x1c9684=>{const _0x11b3c7=_0x3b20;var _0x31eee5;const _0x3d4bba=this[_0x11b3c7(0x8d)][_0x11b3c7(0x1f0)](_0x1c9684);_0x3d4bba&&(_0x3d4bba['delete'](_0x1531a3),(_0x31eee5=this['_ensureSubject'](_0x1c9684))==null||_0x31eee5['next'](_0x3d4bba['size']===0x0?0x0:0x1));}),this[_0x16b6d9(0x19f)](_0x1531a3);}[_0x30e940(0x348)](_0x29bf0d){const _0x3bbbef=_0x30e940;this[_0x3bbbef(0x34a)](_0x29bf0d[_0x3bbbef(0x1b2)]);}[_0x30e940(0x2a5)](_0x1be3f9){const _0x3f431c=_0x30e940;localStorage[_0x3f431c(0x471)](Je,JSON['stringify'](_0x1be3f9));}['_scheduleHeartbeat'](){const _0x38729a=_0x30e940;this[_0x38729a(0x35d)]=window[_0x38729a(0x27e)](()=>{const _0x4036cd=_0x38729a;this[_0x4036cd(0x2a5)]({'type':0x2,'memberID':this[_0x4036cd(0x314)]});},ze);}['_ensureSubject'](_0x1444a4){const _0x10434c=_0x30e940;return this[_0x10434c(0x3a3)][_0x10434c(0x45c)](_0x1444a4)||this[_0x10434c(0x3a3)][_0x10434c(0x346)](_0x1444a4,new v[(_0x10434c(0x2d8))](0x0)),this[_0x10434c(0x3a3)][_0x10434c(0x1f0)](_0x1444a4);}}var ds=Object[_0x30e940(0x36c)],Ss=Object[_0x30e940(0x1a2)],vs=(_0x1a156b,_0x3c3ed2,_0x72a32f,_0x5089c0)=>{const _0x3d68a1=_0x30e940;for(var _0x152f20=_0x5089c0>0x1?void 0x0:_0x5089c0?Ss(_0x3c3ed2,_0x72a32f):_0x3c3ed2,_0x5dd2e3=_0x1a156b[_0x3d68a1(0x3b8)]-0x1,_0xeb4c8c;_0x5dd2e3>=0x0;_0x5dd2e3--)(_0xeb4c8c=_0x1a156b[_0x5dd2e3])&&(_0x152f20=(_0x5089c0?_0xeb4c8c(_0x3c3ed2,_0x72a32f,_0x152f20):_0xeb4c8c(_0x152f20))||_0x152f20);return _0x5089c0&&_0x152f20&&ds(_0x3c3ed2,_0x72a32f,_0x152f20),_0x152f20;},Ze=(_0x25f545,_0x288411)=>(_0x131c1e,_0x267796)=>_0x288411(_0x131c1e,_0x267796,_0x25f545);let ve=class{constructor(_0x3f5875,_0x30b6e2){const _0x1da204=_0x30e940;this[_0x1da204(0x137)]=_0x3f5875,this[_0x1da204(0x3c0)]=_0x30b6e2;}['transformIMECache'](_0xc2d50d){const _0x23d719=_0x30e940;this['_transformUndoRedoStack'](_0xc2d50d),this[_0x23d719(0x2f1)](_0xc2d50d);}[_0x30e940(0x298)](_0x490a10){const _0x8da39f=_0x30e940,_0x2410da=this['_injector']['get'](P[_0x8da39f(0x46b)]),{redoCache:_0x477190}=_0x2410da['getUndoRedoMutationParamsCache']();if(_0x477190[_0x8da39f(0x3b8)]===0x0)return _0x490a10;let _0x504cda=o[_0x8da39f(0x235)]['deepClone'](_0x490a10[_0x8da39f(0x95)][0x0]);for(let _0x1c0ffc=0x0;_0x1c0ffc<_0x477190[_0x8da39f(0x3b8)];_0x1c0ffc++){const _0x461225={'id':_0x8da39f(0x1c9),'params':{..._0x477190[_0x1c0ffc]}},_0x2805be=this['_transformService'][_0x8da39f(0x1bf)](_0x504cda,_0x461225,!0x1);if(_[_0x8da39f(0x1fd)](_0x2805be))throw _0x2805be[_0x8da39f(0xf0)];_0x504cda=_0x2805be[_0x8da39f(0x205)];}return{...o[_0x8da39f(0x235)][_0x8da39f(0x102)](_0x490a10),'mutations':[_0x504cda]};}['_transformUndoRedoStack'](_0x42a1c0){const _0xc7bb4c=_0x30e940,_0x21539e=this[_0xc7bb4c(0x137)][_0xc7bb4c(0x1f0)](P[_0xc7bb4c(0x46b)]),{undoCache:_0x3853c1,redoCache:_0x524fa2}=_0x21539e['getUndoRedoMutationParamsCache']();if(_0x3853c1[_0xc7bb4c(0x3b8)]===0x0||_0x524fa2[_0xc7bb4c(0x3b8)]===0x0)return;const _0x1f6953=[],_0x1bd7a8=[];let _0x431dee=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]),_0x1761fa=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]);for(let _0x5981d8=_0x3853c1['length']-0x1;_0x5981d8>=0x0;_0x5981d8--){const _0x412311={'id':_0xc7bb4c(0x1c9),'params':{..._0x3853c1[_0x5981d8]}},_0x28c7b6={'id':_0xc7bb4c(0x1c9),'params':{..._0x524fa2[_0x5981d8]}},_0x5e6da1=this['_transformService'][_0xc7bb4c(0x1bf)](_0x431dee,_0x412311,!0x1),_0x5615a7=this[_0xc7bb4c(0x3c0)][_0xc7bb4c(0x1bf)](_0x1761fa,_0x28c7b6,!0x1);if(_[_0xc7bb4c(0x1fd)](_0x5e6da1))throw _0x5e6da1[_0xc7bb4c(0xf0)];if(_[_0xc7bb4c(0x1fd)](_0x5615a7))throw _0x5615a7[_0xc7bb4c(0xf0)];_0x1f6953[_0xc7bb4c(0x3f2)](_0x5e6da1['m2Prime'][_0xc7bb4c(0x20b)]),_0x1bd7a8[_0xc7bb4c(0x3f2)](_0x5615a7[_0xc7bb4c(0x163)][_0xc7bb4c(0x20b)]),_0x431dee=_0x5e6da1[_0xc7bb4c(0x205)],_0x1761fa=_0x5615a7[_0xc7bb4c(0x205)];}_0x21539e['setUndoRedoMutationParamsCache']({'undoCache':_0x1f6953,'redoCache':_0x1bd7a8});}[_0x30e940(0x2f1)](_0x2bfa5c){const _0x50d406=_0x30e940,_0x3b6640=this['_injector'][_0x50d406(0x1f0)](P[_0x50d406(0x46b)]),_0x59e5e5=_0x3b6640[_0x50d406(0x434)]();if(_0x59e5e5==null)return;const _0x21587f=[{'id':_0x50d406(0x1c9),'params':{'unitId':_0x2bfa5c[_0x50d406(0x1e6)],'actions':null,'textRanges':[_0x59e5e5]}}],_0x5bfe13=this['_transformService'][_0x50d406(0x1c3)](_0x2bfa5c,_0x21587f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5bfe13))throw _0x5bfe13['error'];const _0x2b35d3=_0x5bfe13[_0x50d406(0x163)][0x0][_0x50d406(0x20b)][_0x50d406(0x146)];Array[_0x50d406(0x281)](_0x2b35d3)&&_0x2b35d3['length']&&_0x3b6640[_0x50d406(0x1fb)](_0x2b35d3[0x0]);}};ve=vs([Ze(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Ze(0x1,_[_0x30e940(0x2ab)])],ve);var ms=Object['defineProperty'],gs=Object[_0x30e940(0x1a2)],fs=(_0x4529b0,_0x368de4,_0x4b9d07,_0x1a0040)=>{const _0x56f1e2=_0x30e940;for(var _0x26dc60=_0x1a0040>0x1?void 0x0:_0x1a0040?gs(_0x368de4,_0x4b9d07):_0x368de4,_0x12b73f=_0x4529b0[_0x56f1e2(0x3b8)]-0x1,_0x451ecd;_0x12b73f>=0x0;_0x12b73f--)(_0x451ecd=_0x4529b0[_0x12b73f])&&(_0x26dc60=(_0x1a0040?_0x451ecd(_0x368de4,_0x4b9d07,_0x26dc60):_0x451ecd(_0x26dc60))||_0x26dc60);return _0x1a0040&&_0x26dc60&&ms(_0x368de4,_0x4b9d07,_0x26dc60),_0x26dc60;},Qe=(_0x453607,_0x53aa4f)=>(_0x2631dc,_0x41452c)=>_0x53aa4f(_0x2631dc,_0x41452c,_0x453607);let me=class{constructor(_0xd3ead2,_0x257972){const _0x159621=_0x30e940;this[_0x159621(0x137)]=_0xd3ead2,this['_transformService']=_0x257972;}['transformSelections'](_0x207c5d){const _0x3b2798=_0x30e940;var _0x48aced;const _0x92e03b=this[_0x3b2798(0x137)][_0x3b2798(0x1f0)](P[_0x3b2798(0x215)]),_0x328714=(_0x48aced=_0x92e03b['getDocRanges']())!=null?_0x48aced:[],_0x1865b9=_0x328714==null?void 0x0:_0x328714[_0x3b2798(0x120)](P[_0x3b2798(0x13c)]);if(_0x1865b9['length']===0x0)return;const _0x14efba=[{'id':_0x3b2798(0x1c9),'params':{'unitId':_0x207c5d[_0x3b2798(0x1e6)],'actions':null,'textRanges':_0x1865b9}}],_0x3a6863=this['_transformService'][_0x3b2798(0x1c3)](_0x207c5d,_0x14efba);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3a6863))throw _0x3a6863[_0x3b2798(0xf0)];const _0x12108c=_0x3a6863[_0x3b2798(0x163)][0x0][_0x3b2798(0x20b)]['textRanges'];Array[_0x3b2798(0x281)](_0x12108c)&&_0x12108c[_0x3b2798(0x3b8)]&&_0x92e03b[_0x3b2798(0x11f)](_0x12108c,!0x1);}};me=fs([Qe(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Qe(0x1,_[_0x30e940(0x2ab)])],me);function bt(_0x2e4605){let _0x24b9f9='';for(const _0x14af7b of _0x2e4605){const {startOffset:_0x22f60f,endOffset:_0x521097,isActive:_0x5c734c}=_0x14af7b;_0x24b9f9['length']&&(_0x24b9f9+=','),_0x24b9f9+=_0x22f60f+':'+_0x521097+':'+(_0x5c734c?'1':'0');}return _0x24b9f9;}function Is(_0x3d8fbd){const _0x12d460=_0x30e940,_0x412dc5=_0x3d8fbd[_0x12d460(0x297)](','),_0x4a041f=[];for(const _0x5ecd22 of _0x412dc5){const [_0x5661cf,_0x3d8b9f,_0xae7faf]=_0x5ecd22[_0x12d460(0x297)](':');_0x4a041f[_0x12d460(0x220)]({'startOffset':Number(_0x5661cf),'endOffset':Number(_0x3d8b9f),'collapsed':_0x5661cf===_0x3d8b9f,'isActive':_0xae7faf==='1'});}return _0x4a041f[_0x12d460(0x2f0)](_0x3443a1=>_0x3443a1[_0x12d460(0x2cf)])||(_0x4a041f[0x0][_0x12d460(0x2cf)]=!0x0),_0x4a041f;}class We extends o[_0x30e940(0x1cf)]{constructor(){const _0x205b1c=_0x30e940;super(...arguments),u(this,_0x205b1c(0x216),new v['BehaviorSubject'](null)),u(this,_0x205b1c(0x380),this[_0x205b1c(0x216)]['asObservable']());}[_0x30e940(0x274)](_0x246b05){const _0x35b327=_0x30e940,{unitID:_0x14a392,memberID:_0x397c1e,textRanges:_0x26ffc2}=_0x246b05,_0x298f78=bt(_0x26ffc2),_0x57e5e5={'unitID':_0x14a392,'memberID':_0x397c1e,'selection':_0x298f78};this['_collabCursorState$'][_0x35b327(0x46e)](_0x57e5e5);}}var ps=Object['defineProperty'],Es=Object[_0x30e940(0x1a2)],Cs=(_0x57985d,_0x1b4630,_0x2c5fab,_0x5c8c78)=>{const _0x4b6649=_0x30e940;for(var _0x3a3e38=_0x5c8c78>0x1?void 0x0:_0x5c8c78?Es(_0x1b4630,_0x2c5fab):_0x1b4630,_0x73f938=_0x57985d[_0x4b6649(0x3b8)]-0x1,_0x4c9273;_0x73f938>=0x0;_0x73f938--)(_0x4c9273=_0x57985d[_0x73f938])&&(_0x3a3e38=(_0x5c8c78?_0x4c9273(_0x1b4630,_0x2c5fab,_0x3a3e38):_0x4c9273(_0x3a3e38))||_0x3a3e38);return _0x5c8c78&&_0x3a3e38&&ps(_0x1b4630,_0x2c5fab,_0x3a3e38),_0x3a3e38;},et=(_0x4ef81c,_0x53fe5b)=>(_0x32a7b1,_0x700c47)=>_0x53fe5b(_0x32a7b1,_0x700c47,_0x4ef81c);function bs(_0x3c09da){const _0xedd2b7=_0x30e940,{unitID:_0x4dc41c,mutations:_0x286c90}=_0x3c09da;return{'unitId':_0x4dc41c,'subUnitId':_0x286c90[0x0][_0xedd2b7(0x20b)][_0xedd2b7(0x44c)]};}let ge=class{constructor(_0x7a2a23,_0x804259){const _0xca6554=_0x30e940;this[_0xca6554(0x137)]=_0x7a2a23,this['_transformService']=_0x804259;}[_0x30e940(0x156)](_0x2ed785){const _0x39da94=_0x30e940;var _0x15bf86,_0x16af86,_0x3f63e3;const _0x4e9125=this[_0x39da94(0x137)][_0x39da94(0x1f0)](p[_0x39da94(0x2ed)]),{unitId:_0x4dfd00,subUnitId:_0x4f7810}=bs(_0x2ed785),_0x41e68d=_0x4e9125['getWorkbookSelections'](_0x4dfd00)['getCurrentSelections']();if(_0x41e68d[_0x39da94(0x3b8)]===0x0||!_0x4dfd00||!_0x4f7810)return;const _0x1ae960=[{'id':p[_0x39da94(0x1e4)]['id'],'params':{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':o['Tools'][_0x39da94(0x102)](_0x41e68d)}}],_0x495161=this[_0x39da94(0x3c0)][_0x39da94(0x1c3)](_0x2ed785,_0x1ae960);if(!_[_0x39da94(0x28a)](_0x495161))throw _0x495161[_0x39da94(0xf0)];const _0x1b7c00=(_0x3f63e3=(_0x16af86=(_0x15bf86=_0x495161[_0x39da94(0x163)][0x0])==null?void 0x0:_0x15bf86[_0x39da94(0x20b)])==null?void 0x0:_0x16af86[_0x39da94(0x2aa)])!=null?_0x3f63e3:_0x41e68d;Array[_0x39da94(0x281)](_0x1b7c00)&&_0x1b7c00[_0x39da94(0x3b8)]&&this[_0x39da94(0x137)][_0x39da94(0x1f0)](o[_0x39da94(0x1c8)])[_0x39da94(0x12d)](p[_0x39da94(0x1e4)]['id'],{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':_0x1b7c00});}};ge=Cs([et(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),et(0x1,_[_0x30e940(0x2ab)])],ge);const Ts=new Set([p[_0x30e940(0x456)]['id']]);function tt(_0x30f244,_0x252371,_0x15931c,_0x4fca5e,_0x4f28f5){const _0x161859=_0x30e940;var _0x800f1e,_0x359d9a,_0x30a5cd,_0x64f047;const _0xf6f193=[];for(const _0x3d628b of _0x30f244)if(Ts['has'](_0x3d628b['id'])){if(_0xf6f193[_0x161859(0x3b8)]>0x0)break;_0xf6f193[_0x161859(0x220)](_0x3d628b);break;}else _0xf6f193['push'](_0x3d628b);const _0x23ce2d=(_0x359d9a=(_0x800f1e=_0x4f28f5[_0x161859(0x31c)]())==null?void 0x0:_0x800f1e[_0x161859(0x330)])!=null?_0x359d9a:_0x161859(0xa4),_0x2dca5b=(_0x64f047=(_0x30a5cd=_0x4f28f5['getCurrentUser']())==null?void 0x0:_0x30a5cd['memberID'])!=null?_0x64f047:'unknown';return{'changeset':{'unitID':_0x252371,'type':_[_0x161859(0x453)](_0x15931c[_0x161859(0x405)](_0x252371)),'baseRev':_0x4fca5e['getCurrentRevForDocument'](_0x252371),'revision':0x0,'userID':_0x23ce2d,'memberID':_0x2dca5b,'mutations':_0xf6f193},'pendingMutations':_0x30f244[_0x161859(0x2b7)](_0xf6f193['length'])};}function Rs(_0x47964,_0x2a2239,_0xc0024e,_0x364728,_0x166445){const _0x21e769=_0x30e940;var _0x43cf7c,_0x3058fd,_0xe3df41,_0x421d1a;const _0x30c356=[_0x47964['reduce']((_0x32d409,_0x38047d)=>{const _0x3a5d2=_0x3b20;var _0x1499a6;const {id:_0x3cf66a}=_0x32d409,{id:_0x280ad8,type:_0x3082d3}=_0x38047d,_0x1f5650=(_0x1499a6=_0x32d409[_0x3a5d2(0x20b)])!=null?_0x1499a6:{'actions':null},_0x1bd5ed=_0x38047d[_0x3a5d2(0x20b)];if(_0x3cf66a&&_0x3cf66a!==_0x280ad8)throw new Error(_0x3a5d2(0xe6)+_0x3cf66a+_0x3a5d2(0xc1)+_0x280ad8+'.');return{..._0x32d409,'id':_0x280ad8,'type':_0x3082d3,'params':{'unitId':_0x1bd5ed[_0x3a5d2(0x424)],'textRanges':_0x1bd5ed[_0x3a5d2(0x146)],'actions':o[_0x3a5d2(0x33e)][_0x3a5d2(0x35e)](_0x1f5650[_0x3a5d2(0x256)],_0x1bd5ed[_0x3a5d2(0x256)])}};},{})],_0x38ca85=(_0x3058fd=(_0x43cf7c=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0x43cf7c[_0x21e769(0x330)])!=null?_0x3058fd:_0x21e769(0xa4),_0x4cd1db=(_0x421d1a=(_0xe3df41=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0xe3df41[_0x21e769(0x1b2)])!=null?_0x421d1a:_0x21e769(0xa4);return{'changeset':{'unitID':_0x2a2239,'type':_[_0x21e769(0x453)](_0xc0024e[_0x21e769(0x405)](_0x2a2239)),'baseRev':_0x364728[_0x21e769(0x17e)](_0x2a2239),'revision':0x0,'userID':_0x38ca85,'memberID':_0x4cd1db,'mutations':_0x30c356},'pendingMutations':[]};}const Os={'id':p['EmptyMutation']['id'],'type':o[_0x30e940(0x99)][_0x30e940(0x438)],'params':{}};var Ds=Object[_0x30e940(0x36c)],Ps=Object['getOwnPropertyDescriptor'],K=(_0x59d6fc,_0x4ec3be,_0x365565,_0x411bef)=>{const _0x5d0743=_0x30e940;for(var _0x30f60f=_0x411bef>0x1?void 0x0:_0x411bef?Ps(_0x4ec3be,_0x365565):_0x4ec3be,_0xef27e0=_0x59d6fc[_0x5d0743(0x3b8)]-0x1,_0x5d2529;_0xef27e0>=0x0;_0xef27e0--)(_0x5d2529=_0x59d6fc[_0xef27e0])&&(_0x30f60f=(_0x411bef?_0x5d2529(_0x4ec3be,_0x365565,_0x30f60f):_0x5d2529(_0x30f60f))||_0x30f60f);return _0x411bef&&_0x30f60f&&Ds(_0x4ec3be,_0x365565,_0x30f60f),_0x30f60f;},m=(_0x57648d,_0x8bb7e8)=>(_0x109026,_0x27c021)=>_0x8bb7e8(_0x109026,_0x27c021,_0x57648d),D=(_0x5d12ac=>(_0x5d12ac[_0x30e940(0x25e)]=_0x30e940(0x1dd),_0x5d12ac[_0x30e940(0x9c)]=_0x30e940(0xc7),_0x5d12ac[_0x30e940(0x28e)]='pending',_0x5d12ac[_0x30e940(0x38c)]='awaiting',_0x5d12ac[_0x30e940(0x27c)]='awaiting_with_pending',_0x5d12ac[_0x30e940(0x33d)]=_0x30e940(0x3df),_0x5d12ac['CONFLICT']=_0x30e940(0x33b),_0x5d12ac[_0x30e940(0x32d)]=_0x30e940(0x1cd),_0x5d12ac))(D||{});class X{constructor(_0x1b5586,_0x38ed44,_0x251243,_0x5a5b25,_0x51b8aa,_0x11d82c,_0x2a1c1b,_0x139909,_0x1b8f82){const _0x143b41=_0x30e940;u(this,'_awaitingChangeset',null),u(this,_0x143b41(0x45a),[]),(this['unitID']=_0x1b5586,this[_0x143b41(0x312)]=_0x38ed44,this[_0x143b41(0x28c)]=_0x51b8aa,this[_0x143b41(0x176)]=_0x11d82c,this[_0x143b41(0x2c3)]=_0x2a1c1b,this[_0x143b41(0x2fb)]=_0x139909,this[_0x143b41(0x377)]=_0x1b8f82,this[_0x143b41(0x46d)]=_0x251243,this['_pendingMutations']=_0x5a5b25);}['_checkMissing'](_0x509d64){const _0x3bc6ab=_0x30e940,_0x20b892=this[_0x3bc6ab(0x2fb)][_0x3bc6ab(0x17e)](this[_0x3bc6ab(0x1e6)]);return _0x509d64[_0x3bc6ab(0x448)]>_0x20b892+0x1?(this[_0x3bc6ab(0x28c)][_0x3bc6ab(0x186)]({'from':_0x20b892,'to':_0x509d64[_0x3bc6ab(0x448)]-0x1}),!0x0):!0x1;}[_0x30e940(0xe1)](_0x3db9fa){const _0x4dda55=_0x30e940;this[_0x4dda55(0x2c3)][_0x4dda55(0xa6)](this['unitID'],_0x3db9fa);}[_0x30e940(0x2a0)](_0x123b93){const _0xa704f3=_0x30e940;var _0x3a252b,_0x5a84c2;(_0x5a84c2=(_0x3a252b=this[_0xa704f3(0x28c)])[_0xa704f3(0x29a)])==null||_0x5a84c2[_0xa704f3(0xe3)](_0x3a252b,_0x123b93);}[_0x30e940(0x311)](_0xc8b10a){const _0x3271aa=_0x30e940;var _0x221521,_0x238dfe;return(_0x238dfe=(_0x221521=this[_0x3271aa(0x28c)])['onTransformIME'])==null?void 0x0:_0x238dfe[_0x3271aa(0xe3)](_0x221521,_0xc8b10a);}[_0x30e940(0xc9)](_0x3a97a0){const _0x4bb60d=_0x30e940;var _0x40473b,_0x827f37,_0x5e2da4;return(_0x5e2da4=(_0x827f37=(_0x40473b=this['_handler'])[_0x4bb60d(0x8c)])==null?void 0x0:_0x827f37['call'](_0x40473b,_0x3a97a0))!=null?_0x5e2da4:_0x3a97a0;}[_0x30e940(0x36b)](_0x4db56a){const _0x50149d=_0x30e940;var _0x3b16d6,_0x11b92d;if(this[_0x50149d(0x312)]===j[_0x50149d(0x1f4)]){const {unitID:_0x4ed474,mutations:_0x1e8d49,memberID:_0x4e9ed1}=_0x4db56a,_0x27cbd2=_0x1e8d49[0x0][_0x50149d(0x20b)][_0x50149d(0x146)];Array['isArray'](_0x27cbd2)&&_0x27cbd2['length']>0x0&&((_0x11b92d=(_0x3b16d6=this[_0x50149d(0x28c)])[_0x50149d(0x11c)])==null||_0x11b92d['call'](_0x3b16d6,{'unitID':_0x4ed474,'memberID':_0x4e9ed1,'textRanges':_0x27cbd2}));}}[_0x30e940(0x1b7)](){const _0x2ab779=_0x30e940;this['_localCacheService'][_0x2ab779(0x475)](this[_0x2ab779(0x1e6)],this[_0x2ab779(0x312)],this[_0x2ab779(0x46d)],this[_0x2ab779(0x45a)]);}[_0x30e940(0x372)](){const _0x1071a2=_0x30e940;return this[_0x1071a2(0x2fb)][_0x1071a2(0x17e)](this[_0x1071a2(0x1e6)]);}[_0x30e940(0x204)](){const _0x3a697b=_0x30e940;this[_0x3a697b(0x2fb)]['incrementRevForDocument'](this[_0x3a697b(0x1e6)]);}['_executeRemoteChangeset'](_0x31d4b4){const _0x223f67=_0x30e940;var _0x8bb8c3;const _0xd51093=this[_0x223f67(0xc9)](_0x31d4b4),_0x51aad6=o[_0x223f67(0x26a)](_0xd51093['mutations'],this[_0x223f67(0x176)],{'fromCollab':!0x0});if(!_0x51aad6[_0x223f67(0x3ad)])throw _0x51aad6[_0x223f67(0xf0)]instanceof Error?_0x51aad6[_0x223f67(0xf0)]:new Error((_0x8bb8c3=_0x51aad6[_0x223f67(0xf0)])!=null?_0x8bb8c3:'[CollaborationState]:\x20apply\x20error!');this[_0x223f67(0x311)](_0xd51093),this[_0x223f67(0xe1)](_0x31d4b4),this['_transformSelections'](_0xd51093),this[_0x223f67(0x36b)](_0xd51093),this[_0x223f67(0x204)]();}}let ce=class extends X{constructor(_0x9f940,_0xbedb35,_0x1d06ba,_0x24abf1,_0x5bcdaa,_0x35e092,_0x4092d9,_0x5c4d7c,_0x4cc9c6,_0x51b4ec){const _0x1758a6=_0x30e940;super(_0x9f940,_0xbedb35,null,[],_0x1d06ba,_0x5c4d7c,_0x4092d9,_0x24abf1,_0x5bcdaa),u(this,_0x1758a6(0x1de),_0x1758a6(0xc7)),(this[_0x1758a6(0x137)]=_0x35e092,this[_0x1758a6(0x198)]=_0x4cc9c6,this[_0x1758a6(0x3c0)]=_0x51b4ec);}[_0x30e940(0x223)](_0x4fbe16){const _0x1379ea=_0x30e940,_0x257570=this[_0x1379ea(0x137)][_0x1379ea(0x1c0)]($,this[_0x1379ea(0x1e6)],this[_0x1379ea(0x312)],[_0x4fbe16],this[_0x1379ea(0x28c)]);return _0x257570[_0x1379ea(0x8f)](),_0x257570['_updateLocalCache'](),_0x257570;}['onRemoteChangeset'](_0x29532f){const _0x226e4d=_0x30e940;if(this[_0x226e4d(0x111)](_0x29532f))return this['_injector'][_0x226e4d(0x1c0)](H,this[_0x226e4d(0x1e6)],this[_0x226e4d(0x312)],null,[],null,[_0x29532f],this['_handler']);try{const _0x43a424=this['_transformService'][_0x226e4d(0x1c3)](_0x29532f,[Os]);if(_[_0x226e4d(0x28a)](_0x43a424)){const {c1Prime:_0x27d515}=_0x43a424;return this['_executeRemoteChangeset'](_0x27d515),this;}throw _0x43a424[_0x226e4d(0xf0)];}catch(_0x24b258){return this[_0x226e4d(0x198)][_0x226e4d(0xf0)](_0x24b258),this[_0x226e4d(0xc8)](!0x1);}}['_onConflict'](_0x272bf1){const _0x1db37f=_0x30e940;return this[_0x1db37f(0x137)][_0x1db37f(0x1c0)](B,this[_0x1db37f(0x1e6)],this[_0x1db37f(0x312)],null,[],this[_0x1db37f(0x28c)],_0x272bf1);}['onRemoteAck'](){const _0x8766a=_0x30e940;throw new Error(_0x8766a(0x42f));}[_0x30e940(0x13f)](){const _0x2a8df2=_0x30e940;throw new Error(_0x2a8df2(0x1ff));}[_0x30e940(0x3b2)](){const _0x27226a=_0x30e940;return this[_0x27226a(0x137)]['createInstance'](V,this[_0x27226a(0x1e6)],this['type'],null,[],this[_0x27226a(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x5d251b=_0x30e940;throw new Error(_0x5d251b(0x3f7));}};ce=K([m(0x3,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0x17f)]),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o['ILogService']),m(0x9,_[_0x30e940(0x2ab)])],ce);let $=class extends X{constructor(_0xf32b7b,_0x492a18,_0x889235,_0x417e30,_0x13212a,_0x539a2a,_0x9b1768,_0x704c12,_0x19ce5d,_0x3ada1b,_0x4b31ae,_0x2c8393,_0x319af4,_0x4407e9){const _0x2f4b9b=_0x30e940;super(_0xf32b7b,_0x492a18,null,_0x889235,_0x417e30,_0x3ada1b,_0x4407e9,_0x539a2a,_0x9b1768),u(this,'status',_0x2f4b9b(0x112)),u(this,_0x2f4b9b(0x1fa),null),u(this,_0x2f4b9b(0x3dd),null),(this[_0x2f4b9b(0x137)]=_0x13212a,this[_0x2f4b9b(0x460)]=_0x704c12,this[_0x2f4b9b(0x198)]=_0x19ce5d,this[_0x2f4b9b(0x160)]=_0x4b31ae,this[_0x2f4b9b(0x3c0)]=_0x2c8393,this[_0x2f4b9b(0x43f)]=_0x319af4);}['appendMutation'](_0x38b0cb){const _0x2bade9=_0x30e940;return this['_pendingMutations'][_0x2bade9(0x220)](_0x38b0cb),this[_0x2bade9(0x1b7)](),this;}[_0x30e940(0x1c6)](_0x420ac1){const _0xfca586=_0x30e940;if(this[_0xfca586(0x111)](_0x420ac1))return this[_0xfca586(0x1f7)](),this[_0xfca586(0x137)][_0xfca586(0x1c0)](H,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],null,this[_0xfca586(0x45a)],null,[_0x420ac1],this[_0xfca586(0x28c)]);try{const _0x5592e6=this['_transformService']['transformMutationsWithChangeset'](_0x420ac1,this[_0xfca586(0x45a)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x5592e6)){const {c1Prime:_0x4dd3f3,m2Prime:_0x1609fc}=_0x5592e6;this[_0xfca586(0x369)](_0x4dd3f3);const _0xe0c686=this[_0xfca586(0x137)][_0xfca586(0x1c0)]($,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],_0x1609fc,this[_0xfca586(0x28c)]);return this[_0xfca586(0x1f7)](),_0xe0c686[_0xfca586(0x8f)](this['_scheduleTimestamp']?Math[_0xfca586(0x261)](0x0,new Date()[_0xfca586(0x23a)]()-this[_0xfca586(0x1fa)]):this['_getSendChangesetTimeout']()),_0xe0c686;}throw _0x5592e6[_0xfca586(0xf0)];}catch(_0x23a541){return this[_0xfca586(0x198)][_0xfca586(0xf0)](_0x23a541),this[_0xfca586(0xc8)](!0x1);}}[_0x30e940(0x32f)](){const _0x2479e3=_0x30e940;throw new Error(_0x2479e3(0x3f3));}[_0x30e940(0x13f)](){const _0x268e9c=_0x30e940;throw new Error(_0x268e9c(0x427));}['toggleOffline'](){const _0x164eeb=_0x30e940;return this[_0x164eeb(0x1f7)](),this[_0x164eeb(0x137)][_0x164eeb(0x1c0)](V,this[_0x164eeb(0x1e6)],this['type'],null,this[_0x164eeb(0x45a)],this[_0x164eeb(0x28c)]);}[_0x30e940(0x20e)](){return this;}['_schedule'](_0x117e62){const _0x5315fd=_0x30e940;_0x117e62=_0x117e62!=null?_0x117e62:this['_getSendChangesetTimeout'](),this[_0x5315fd(0x1fa)]=new Date()[_0x5315fd(0x23a)](),this['_sendingTimer']=setTimeout(()=>{const _0x5d5776=_0x5315fd;this[_0x5d5776(0x1f7)]();let _0x49c7f3=null;switch(this['type']){case j[_0x5d5776(0x390)]:{_0x49c7f3=tt(this[_0x5d5776(0x45a)],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}case j[_0x5d5776(0x1f4)]:{this[_0x5d5776(0x45a)][_0x5d5776(0x435)](_0x3b3753=>_0x3b3753['id']===P[_0x5d5776(0x2ad)]['id'])?_0x49c7f3=Rs(this['_pendingMutations'],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]):_0x49c7f3=tt(this[_0x5d5776(0x45a)],this[_0x5d5776(0x1e6)],this['_univerInstanceService'],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}default:throw new Error(_0x5d5776(0x328)+this[_0x5d5776(0x312)]+'\x20in\x20_schedule.');}const {changeset:_0xb25564,pendingMutations:_0x273ed9}=_0x49c7f3;this[_0x5d5776(0x28c)][_0x5d5776(0x2cb)](_0xb25564);const _0x5c6b54=_0x273ed9[_0x5d5776(0x3b8)]?this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](x,this[_0x5d5776(0x1e6)],this[_0x5d5776(0x312)],_0xb25564,_0x273ed9,this[_0x5d5776(0x28c)]):this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](k,this['unitID'],this[_0x5d5776(0x312)],_0xb25564,this[_0x5d5776(0x28c)]);_0x5c6b54[_0x5d5776(0x1b7)](),this[_0x5d5776(0x28c)][_0x5d5776(0x2d5)](this,_0x5c6b54);},_0x117e62);}[_0x30e940(0x2d2)](){const _0x1d80b0=_0x30e940;var _0x696a50;return(_0x696a50=this[_0x1d80b0(0x160)][_0x1d80b0(0xfc)](ht))!=null?_0x696a50:Wt;}[_0x30e940(0xdd)](){const _0x3e2ff4=_0x30e940;throw new Error(_0x3e2ff4(0x38d));}[_0x30e940(0x1f7)](){const _0x19fd96=_0x30e940;this[_0x19fd96(0x3dd)]!=null&&(clearTimeout(this[_0x19fd96(0x3dd)]),this['_sendingTimer']=null);}[_0x30e940(0xc8)](_0x46ffc5){const _0x268e8b=_0x30e940;return this['_clearScheduledTask'](),this[_0x268e8b(0x137)][_0x268e8b(0x1c0)](B,this[_0x268e8b(0x1e6)],this['type'],null,this['_pendingMutations'],this[_0x268e8b(0x28c)],_0x46ffc5);}};$=K([m(0x4,o[_0x30e940(0xdf)](o['Injector'])),m(0x5,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x6,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x7,o['Inject'](Y)),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,o[_0x30e940(0x1c8)]),m(0xa,o[_0x30e940(0x306)]),m(0xb,_[_0x30e940(0x2ab)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x30e940(0x17f)])],$);let k=class extends X{constructor(_0x45068a,_0x9f7ba5,_0x32a1b5,_0x27e9f6,_0x306e05,_0x327c16,_0x3f115d,_0x176b1c,_0x140bfe,_0x59d0ce,_0x3326f5){const _0x23db12=_0x30e940;super(_0x45068a,_0x9f7ba5,_0x32a1b5,[],_0x27e9f6,_0x176b1c,_0x3326f5,_0x327c16,_0x3f115d),u(this,_0x23db12(0x1de),_0x23db12(0x2e8)),(this[_0x23db12(0x137)]=_0x306e05,this[_0x23db12(0x198)]=_0x140bfe,this[_0x23db12(0x3c0)]=_0x59d0ce);}[_0x30e940(0x223)](_0x5095e4){const _0x598d3e=_0x30e940,_0x43fc08=this[_0x598d3e(0x137)][_0x598d3e(0x1c0)](x,this[_0x598d3e(0x1e6)],this[_0x598d3e(0x312)],this['_awaitingChangeset'],[_0x5095e4],this['_handler']);return _0x43fc08[_0x598d3e(0x1b7)](),_0x43fc08;}['onRemoteChangeset'](_0x2decc7){const _0x17a74a=_0x30e940;if(this['_checkMissing'](_0x2decc7))return this[_0x17a74a(0x137)][_0x17a74a(0x1c0)](H,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],this[_0x17a74a(0x46d)],[],null,[_0x2decc7],this[_0x17a74a(0x28c)]);try{const _0x185fc9=this[_0x17a74a(0x3c0)]['transformChangesets']([_0x2decc7],[this[_0x17a74a(0x46d)]],!0x1);if(_[_0x17a74a(0x38a)](_0x185fc9)){const {c1Prime:_0x1b8157,c2Prime:_0x2f3f44}=_0x185fc9;this['_executeRemoteChangeset'](_0x1b8157[0x0]),_0x2f3f44[0x0][_0x17a74a(0x209)]=this[_0x17a74a(0x372)]();const _0x46a715=this[_0x17a74a(0x137)]['createInstance'](k,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],_0x2f3f44[0x0],this['_handler']);return _0x46a715['_updateLocalCache'](),_0x46a715;}return this['_onConflict'](!0x1);}catch(_0xe1017d){return this[_0x17a74a(0x198)][_0x17a74a(0xf0)](_0xe1017d),this[_0x17a74a(0xc8)](!0x1);}}[_0x30e940(0x32f)](_0x471838){const _0x5b2090=_0x30e940,_0x1a5fd9=this['_revisionService']['getCurrentRevForDocument'](this[_0x5b2090(0x1e6)]);if(_0x471838[_0x5b2090(0x448)]<_0x1a5fd9-0x1)return this;if(this[_0x5b2090(0x111)](_0x471838))return this[_0x5b2090(0x137)][_0x5b2090(0x1c0)](H,this['unitID'],this[_0x5b2090(0x312)],null,[],this[_0x5b2090(0x46d)],[],this['_handler']);this[_0x5b2090(0x204)]();const _0x12a90b=this[_0x5b2090(0x137)]['createInstance'](ce,this[_0x5b2090(0x1e6)],this['type'],this['_handler']);return _0x12a90b[_0x5b2090(0x1b7)](),_0x12a90b;}[_0x30e940(0x13f)](_0x14e291){const _0x450d88=_0x30e940;return this[_0x450d88(0xc8)](!!(_0x14e291!=null&&_0x14e291[_0x450d88(0x463)]));}[_0x30e940(0x3b2)](){const _0x1972ba=_0x30e940;return this[_0x1972ba(0x137)][_0x1972ba(0x1c0)](V,this[_0x1972ba(0x1e6)],this[_0x1972ba(0x312)],this['_awaitingChangeset'],[],this[_0x1972ba(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x1a99ad=_0x30e940;this['_handler'][_0x1a99ad(0x2cb)](this[_0x1a99ad(0x46d)]);}[_0x30e940(0xc8)](_0x1ed5e0){const _0x460598=_0x30e940;return this[_0x460598(0x137)][_0x460598(0x1c0)](B,this['unitID'],this['type'],this[_0x460598(0x46d)],[],this['_handler'],_0x1ed5e0);}};k=K([m(0x4,o['Inject'](o[_0x30e940(0xc4)])),m(0x5,o['Inject'](_[_0x30e940(0x1db)])),m(0x6,o[_0x30e940(0xdf)](exports['LocalCacheService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,_[_0x30e940(0x2ab)]),m(0xa,o[_0x30e940(0x17f)])],k);let x=class extends X{constructor(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x595ea4,_0x54b60c,_0x55c00c,_0x405a05,_0x1a827c,_0x139509,_0x27a5ed){const _0x2c6b4b=_0x30e940;super(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x405a05,_0x27a5ed,_0x54b60c,_0x55c00c),u(this,_0x2c6b4b(0x1de),_0x2c6b4b(0x1d8)),(this[_0x2c6b4b(0x137)]=_0x595ea4,this[_0x2c6b4b(0x198)]=_0x1a827c,this[_0x2c6b4b(0x3c0)]=_0x139509);}[_0x30e940(0x223)](_0x4ba763){return this['_pendingMutations']['push'](_0x4ba763),this;}[_0x30e940(0x1c6)](_0x67b292){const _0x5b9931=_0x30e940;if(this[_0x5b9931(0x111)](_0x67b292))return this[_0x5b9931(0x137)][_0x5b9931(0x1c0)](H,this['unitID'],this[_0x5b9931(0x312)],this[_0x5b9931(0x46d)],this[_0x5b9931(0x45a)],null,[_0x67b292],this[_0x5b9931(0x28c)]);try{const _0x225459=this[_0x5b9931(0x3c0)]['transformChangesets']([_0x67b292],[this[_0x5b9931(0x46d)]],!0x1);if(_[_0x5b9931(0x38a)](_0x225459)){const {c1Prime:_0x538c4d,c2Prime:_0x3cbeb2}=_0x225459,_0x54dce2=this[_0x5b9931(0x3c0)][_0x5b9931(0x1c3)](_0x538c4d[0x0],this['_pendingMutations']);if(_[_0x5b9931(0x28a)](_0x54dce2)){const {c1Prime:_0x348e92,m2Prime:_0x21134c}=_0x54dce2;return this[_0x5b9931(0x369)](_0x348e92),_0x3cbeb2[0x0][_0x5b9931(0x209)]=this[_0x5b9931(0x372)](),this[_0x5b9931(0x137)]['createInstance'](x,this[_0x5b9931(0x1e6)],this[_0x5b9931(0x312)],_0x3cbeb2[0x0],_0x21134c,this[_0x5b9931(0x28c)]);}throw _0x54dce2[_0x5b9931(0xf0)];}throw _0x225459[_0x5b9931(0xf0)];}catch(_0x54c4d1){return this[_0x5b9931(0x198)][_0x5b9931(0xf0)](_0x54c4d1),this['_onConflict'](!0x1);}}[_0x30e940(0x32f)](_0xed51b0){const _0x21dbed=_0x30e940;if(this[_0x21dbed(0x111)](_0xed51b0))return this[_0x21dbed(0x137)][_0x21dbed(0x1c0)](H,this[_0x21dbed(0x1e6)],this[_0x21dbed(0x312)],null,this[_0x21dbed(0x45a)],this[_0x21dbed(0x46d)],[],this['_handler']);this[_0x21dbed(0x204)]();const _0x4aec91=this[_0x21dbed(0x137)][_0x21dbed(0x1c0)]($,this[_0x21dbed(0x1e6)],this['type'],this['_pendingMutations'],this[_0x21dbed(0x28c)]);return _0x4aec91[_0x21dbed(0x8f)](),_0x4aec91[_0x21dbed(0x1b7)](),_0x4aec91;}['onRemoteRej'](_0x17f8ef){const _0x586a19=_0x30e940;return this[_0x586a19(0xc8)](!!(_0x17f8ef!=null&&_0x17f8ef[_0x586a19(0x463)]));}[_0x30e940(0x3b2)](){const _0x468c81=_0x30e940;return this[_0x468c81(0x137)][_0x468c81(0x1c0)](V,this[_0x468c81(0x1e6)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x450c8c=_0x30e940;this[_0x450c8c(0x28c)][_0x450c8c(0x2cb)](this[_0x450c8c(0x46d)]);}[_0x30e940(0xc8)](_0x4b8369){const _0x10f2bc=_0x30e940;return this[_0x10f2bc(0x137)]['createInstance'](B,this[_0x10f2bc(0x1e6)],this[_0x10f2bc(0x312)],null,this[_0x10f2bc(0x45a)],this['_handler'],_0x4b8369);}};x=K([m(0x5,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x6,o['Inject'](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x1e7)]),m(0xa,_['ITransformService']),m(0xb,o[_0x30e940(0x17f)])],x);let B=class extends X{constructor(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x808bb0=!0x1,_0x3a5079,_0x550e0c,_0x10b72a,_0x2708ab,_0x1c38c9,_0x13b149,_0x145fc1){const _0x44d3ec=_0x30e940;super(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x550e0c,_0x10b72a,_0x1c38c9,_0x2708ab),u(this,_0x44d3ec(0x1de),'conflict'),(this[_0x44d3ec(0x121)]=_0x808bb0,this['_permissionService']=_0x3a5079,this[_0x44d3ec(0x45b)]=_0x13b149,this[_0x44d3ec(0xe8)]=_0x145fc1,this[_0x44d3ec(0xd5)](),this[_0x44d3ec(0x10c)](),this['_disableEditing']());}[_0x30e940(0x223)](){return this;}['onRemoteChangeset'](){return this;}[_0x30e940(0x32f)](){return this;}[_0x30e940(0x13f)](){return this;}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x247384=_0x30e940;throw new Error(_0x247384(0x411));}[_0x30e940(0x10c)](){const _0x5a437d=_0x30e940;this[_0x5a437d(0x377)]['updateOfflineData'](this['unitID'],this[_0x5a437d(0x312)],null,[]);}[_0x30e940(0xd5)](){const _0x383297=_0x30e940;this['_isPermissionRej']?this['_notificationService']['show']({'title':this[_0x383297(0x45b)]['t'](_0x383297(0x14f)),'content':this[_0x383297(0x45b)]['t'](_0x383297(0x343)),'type':_0x383297(0xf0),'duration':0x0}):this[_0x383297(0xe8)][_0x383297(0x157)]({'title':this['_localeService']['t'](_0x383297(0xf2)),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x15268f=_0x30e940;this[_0x15268f(0x153)][_0x15268f(0x289)](new p[(_0x15268f(0x458))](this[_0x15268f(0x1e6)])['id'],!0x1);}};B=K([m(0x6,o[_0x30e940(0xdf)](o['IPermissionService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x17f)]),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),m(0xc,L[_0x30e940(0x236)])],B);let V=class extends X{constructor(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x35bcb0,_0x2427d5,_0x344c88,_0x46066e,_0x96c9a7){const _0x2fde07=_0x30e940;super(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x46066e,_0x96c9a7,_0x2427d5,_0x344c88),u(this,'status',_0x2fde07(0x1cd)),this[_0x2fde07(0x137)]=_0x35bcb0;}[_0x30e940(0x223)](_0x4f0831){const _0x250f54=_0x30e940;return this['_pendingMutations'][_0x250f54(0x220)](_0x4f0831),this['_updateLocalCache'](),this;}[_0x30e940(0x1c6)](_0x1b1f95){const _0x25006d=_0x30e940;throw new Error(_0x25006d(0x357));}[_0x30e940(0x32f)](){const _0x374e1b=_0x30e940;throw new Error(_0x374e1b(0x14c));}[_0x30e940(0x13f)](){const _0x51fa87=_0x30e940;throw new Error(_0x51fa87(0x421));}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){const _0xd10577=_0x30e940,{_injector:_0x535358,_pendingMutations:_0x409bf2,_awaitingChangeset:_0x275ee9,unitID:_0x521934,_handler:_0xa51aee,type:_0x27c45a}=this,_0x125746=Tt(_0x535358,_0x521934,_0x27c45a,_0x275ee9,_0x409bf2,_0xa51aee);return _0x125746 instanceof $?_0x125746[_0xd10577(0x8f)]():(_0x125746 instanceof x||_0x125746 instanceof k)&&_0x125746[_0xd10577(0xdd)](),_0x125746;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};V=K([m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x17f)])],V);let H=class extends X{constructor(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x3792db,_0x105025,_0x294ae0,_0x12f6b3,_0x1800ee,_0xfa1220,_0x45d9da,_0x53d6ea,_0x4e89bf,_0x5de6d9){const _0x426fce=_0x30e940;super(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x294ae0,_0x53d6ea,_0x4e89bf,_0x1800ee,_0xfa1220),u(this,'status',_0x426fce(0x3df)),(this[_0x426fce(0xe5)]=_0x3792db,this[_0x426fce(0xff)]=_0x105025,this[_0x426fce(0x137)]=_0x12f6b3,this[_0x426fce(0x198)]=_0x45d9da,this[_0x426fce(0x3c0)]=_0x5de6d9);}[_0x30e940(0x44f)](_0x458b93){const _0xf4a71c=_0x30e940;try{const _0x7f410d=[..._0x458b93,...this[_0xf4a71c(0xff)]],_0x383ee3=[this[_0xf4a71c(0x46d)]||this['_acknowledgedAwaitingChangeset']][_0xf4a71c(0x20a)](_0x5c954a=>!!_0x5c954a);let _0x128f3b,_0x3d33a6;if(_0x383ee3[_0xf4a71c(0x3b8)]){const _0x51fb3d=this[_0xf4a71c(0x3c0)][_0xf4a71c(0x1ab)](_0x7f410d,_0x383ee3,!0x1);if(!_[_0xf4a71c(0x38a)](_0x51fb3d))throw _0x51fb3d[_0xf4a71c(0xf0)];_0x128f3b=_0x51fb3d[_0xf4a71c(0x1f6)],_0x3d33a6=_0x51fb3d[_0xf4a71c(0x409)];}else _0x128f3b=_0x7f410d,_0x3d33a6=[];let _0x36f645=this[_0xf4a71c(0x45a)];_0x128f3b[_0xf4a71c(0x277)](_0x5151a3=>{const _0x4dd1de=_0xf4a71c;let _0xdac9bd;if(_0x36f645[_0x4dd1de(0x3b8)]){const _0x53c787=this[_0x4dd1de(0x3c0)]['transformMutationsWithChangeset'](_0x5151a3,_0x36f645);if(!_[_0x4dd1de(0x28a)](_0x53c787))throw _0x53c787[_0x4dd1de(0xf0)];_0xdac9bd=_0x53c787[_0x4dd1de(0x1f6)],_0x36f645=_0x53c787[_0x4dd1de(0x163)];}else _0xdac9bd=_0x5151a3;this[_0x4dd1de(0x369)](_0xdac9bd);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0xf4a71c(0x46d)]&&_0x3d33a6[_0xf4a71c(0x3b8)]&&(_0x3d33a6[0x0]['baseRev']=this[_0xf4a71c(0x372)]());let _0x599923;if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]!==0x0)_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](x,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],_0x3d33a6[0x0],_0x36f645,this[_0xf4a71c(0x28c)]);else{if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]===0x0)_0x3d33a6[0x0][_0xf4a71c(0x209)]=this[_0xf4a71c(0x372)](),_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](k,this[_0xf4a71c(0x1e6)],this['type'],_0x3d33a6[0x0],this[_0xf4a71c(0x28c)]);else{if(_0x36f645[_0xf4a71c(0x3b8)]!==0x0){const _0x3b2491=this['_injector'][_0xf4a71c(0x1c0)]($,this[_0xf4a71c(0x1e6)],this['type'],_0x36f645,this[_0xf4a71c(0x28c)]);_0x3b2491[_0xf4a71c(0x8f)](),_0x599923=_0x3b2491;}else _0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](ce,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],this[_0xf4a71c(0x28c)]);}}return _0x599923['_updateLocalCache'](),_0x599923;}catch(_0x1af9fb){return this[_0xf4a71c(0x198)]['error']('[FetchMissState]',_0xf4a71c(0x3ab),_0x1af9fb),this['_injector'][_0xf4a71c(0x1c0)](B,this['unitID'],this[_0xf4a71c(0x312)],this['_awaitingChangeset'],this[_0xf4a71c(0x45a)],this[_0xf4a71c(0x28c)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x30e940(0x223)](_0xc793a3){const _0x91eeb8=_0x30e940;return this[_0x91eeb8(0x45a)]['push'](_0xc793a3),this;}[_0x30e940(0x1c6)](_0xa06a61){const _0x2baa25=_0x30e940;return this[_0x2baa25(0xff)][_0x2baa25(0x220)](_0xa06a61),this;}['onRemoteAck'](_0x51638a){const _0x347257=_0x30e940;if(this[_0x347257(0x46d)])return this[_0x347257(0xe5)]=this[_0x347257(0x46d)],this[_0x347257(0x46d)]=null,this;throw new Error(_0x347257(0x38e));}[_0x30e940(0x13f)](_0x2fec58){const _0x23b838=_0x30e940;return this[_0x23b838(0xc8)](!!(_0x2fec58!=null&&_0x2fec58[_0x23b838(0x463)]));}[_0x30e940(0x3b2)](){const _0x146e57=_0x30e940;return this[_0x146e57(0x137)][_0x146e57(0x1c0)](V,this['unitID'],this[_0x146e57(0x312)],this[_0x146e57(0x46d)],this[_0x146e57(0x45a)],this[_0x146e57(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xc8)](_0x35c346){const _0xa40f55=_0x30e940;return this[_0xa40f55(0x137)]['createInstance'](B,this['unitID'],this[_0xa40f55(0x312)],this[_0xa40f55(0x46d)],this[_0xa40f55(0x45a)],this[_0xa40f55(0x28c)],_0x35c346);}};H=K([m(0x7,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x8,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o[_0x30e940(0x1e7)]),m(0xb,o[_0x30e940(0x1c8)]),m(0xc,o[_0x30e940(0x17f)]),m(0xd,_[_0x30e940(0x2ab)])],H);function Tt(_0x1655ae,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169){const _0x2d3cb7=_0x30e940;return _0x4e36a0&&_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae['createInstance'](x,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169):_0x4e36a0?_0x1655ae[_0x2d3cb7(0x1c0)](k,_0x58c98f,_0x834f25,_0x4e36a0,_0x56a169):_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae[_0x2d3cb7(0x1c0)]($,_0x58c98f,_0x834f25,_0x4094b4,_0x56a169):_0x1655ae['createInstance'](ce,_0x58c98f,_0x834f25,_0x56a169);}function _0x59d8(){const _0x5bf993=['_waitForHeartbeatResponse','/universer-api/stream/file/upload','labelPosition','message$','body','_colorAssignService','_sendingTimer','location','fetch_missing','status$','_ensureSubject','selection','getParam','objectType','LIVESHARE_TERMINATE','Shape','_colorIndex','removeMember','send','_snapshotService','loadDoc','3595455GfHXBW','UNRECOGNIZED','image/jpg','ALREADY_EXISTS','_status$','getSheetBySheetId','unshift','[PendingState]:\x20received\x20acknowledgement.','defs','_shapes','143854AXbDxA','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursors','@univerjs/rpc','#fff','_initMergeInterceptor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','sessionStatus$','JOIN','CollaborationSession','_beforeCloseService','IURLService','objects','SheetCollaborationEntity','lineTo','getUnitType','reject','handleInsertRangeMoveDown','HEARTBEAT_TIMEOUT_KEY','c2Prime','lodash/debounce','AuthzIoHttpService','isEditing','HTTPRequest','LifecycleStages','_docSkeletonManagerService','sheetId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','_userManagerService','deserializeToCombResponse','_loadDoc','_onFetchMissResult','_setupSubUnitSync','add','handleIRemoveRow','_themeService','/universer-api/snapshot','SnapshotServerOverHTTPService','_removeRoom','LICENSE_MAX_UNITS_EXCEEDED','resize','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','disableLocalCache','closePath','unitId','_eventUnsubscribe','registerComponent','[PendingState]:\x20received\x20rejection.','_config','defIds','rxjs/operators','_event$','_socket$','_online','HEARTBEAT_INTERVAL','[SyncedState]:\x20received\x20acknowledgement.','[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.','_socket','searchParams','currentSkeleton$','getActiveRange','every','state$','originalMeta','MUTATION','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','measureText','entries','serializeRangeWithSheet','headers','/-/object/-/batch_allowed','_univerInstanceService','getRelativeToViewportCoord','APPLY_REVISION_CONFILICT','IUIPartsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','12TWKLfz','_state$','svg','Error','revision','_hover','APPLY_REJECT','localeService','subUnitId','isValidRectRange','width','onMissedChangesetFetched','text','toString','url(#$1','mapDocumentTypeToUniverType','_backgroundColor','_assignedColors','InsertSheetMutation','Subject','WorkbookEditablePermission','colorChannel1','_pendingMutations','_localeService','has','readAsDataURL','toRgbString','5TkzGwq','_memberService','session','IBeforeCloseService','isPermissionRej','findNodePositionByCharIndex','collabStatus.notCollab','_clearTimeoutTimer','saveImage','collabStatus.synced','getFocusedUnit','UniverIcon','IMEInputManagerService','COMMENT_UPDATE','_awaitingChangeset','next','_collaborationController','requireSession','setItem','saveChangeset','USERS_ENTER','[CollaborationEntity]','updateOfflineData','@univerjs/engine-render','clearTimeout','Rect','UPDATE_CURSOR','NOT_FOUND','file','onTransformRemoteChangesetByIMECache','_unitOnClients','div','_schedule','ColorKit','TOO_MANY_REQUESTS','\x0aCurrent:\x20','getUnitStatus$','_getUndoStack','mutations','Optional','_drawRectRange','M0\x200H16V16H0z','CommandType','_members','clear','SYNCED','then','tag','_registerRenderDependencies','NEW_CHANGESETS','toDisposable','_waitCount','IAuthzIoService','unknown','_createHandler','transformUndoRedo','switchMap','/universer-api/oidc/authpage','joinEvent','debounceTime','create','handleMoveRange','image/png','startsWith','Undefined','complete','RefRangeService','url(#off-line-single_clip0_910_343)','_sheetSkeletonManagerService','socketService','resolve','\x0aAfter:\x20','[CollaborationSession]','href','purple300','_substituteRedoStack','_singleActiveUnitService','0\x200\x2016\x2016','merge','hide','_labelPosition','_imageSourceCache','\x20-\x20','state','_unlockTransition','Injector','getTypeOfUnitAdded$','dispose','synced','_onConflict','_transformRemoteChangesetByIMECache','getValue','socket\x20close','auth.needGotoLoginAlert','_collabCursorController','handleDeleteRangeMoveUp','useObservable','\x20to\x20','SHOULD_CLOSE_CONN','onCommandExecuted','assignAColorForMemberID','_transformStack','_showConflictNotification','UNIVER_COLLABORATION_CLIENT_PLUGIN','DocSkeletonManagerService','socket\x20open.','concatMap','XHRHTTPImplementation','_updateURLWithCurrentState','_anchorDot','resend','CollaborationController','Inject','encodeURIComponent','_transformUndoredo','_clearOtherTimers','call','unsubscribe','_acknowledgedAwaitingChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_range','_notificationService','_compressMutationService','_replayCachedMutations','icon','fill','forwardRef','&source=','LICENSE_DISTRO_REJECTED','error','_onCursorUpdate','conflict.title','ThemeService','image/gif','TEXT_RANGE_LAYER_INDEX','_toggleOnline','updatePermissionObjEvent','_roomMembers','awaitingChangeset','collabStatus.fetchMiss','attrs','getConfig','_cursorInfo$','LocaleService','_queuedRemoteChangesets','_onUserJoin','assign','deepClone','APPLY_PERMISSION_DENIED','onStarting','FETCH_MISSING','_onRemoteChangeset','HEARTBEAT_INTERVAL_KEY','generateRandomId','_getSignURL','data','isInternalEditorID','_clearLocalCache','_initModules','ERROR_EXCEED_SIZE','pluginName','CollaborationSocketService','_checkMissing','pending','VIEW_MAIN','_getSaveTimeout','_renderManagerService','batchAllowed','getCoordByCell','LICENSE_EXPORT_SIZE_EXCEEDED','JOINING','_createSocket','registerRefRange','onSyncEditingCollabCursor','_urlService','allowed','replaceTextRanges','map','_isPermissionRej','_HTTPService','UserManagerService','PSEUDO_FETCH_MISSING_RESULT','sessionStatus','save','override','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','getUnhiddenWorksheets','CHANGESET_REVISION_CONFILICT','LOGIN_URL_KEY','executeCommand','updateMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COMPLETION_FINISHED','FromArray','error$','pushState','onCommentUpdate','getCollabCursors$','INTERNAL_ERROR','_injector','univer-online-status-title','getCollabEntity','_docStateChangeManagerService','mergeOverrideWithDependencies','serializeDocRange','15747320nxLrzl','_transitionLocked','onRemoteRej','OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','getTypeOfUnitDisposed$','_getMergeRange','univer-online-status-icon','liveShareOperation','textRanges','[CollaborationSessionService]','xlink:href','refreshPermission','Plugin','_undoStacks','[OfflineState]:\x20received\x20acknowledgement.','getColor','values','permission.title','objectID','_initStatusComponent','[CollaborationUndoRedoService]','_permissionService','_saveTaskMap','skeleton','transformSelections','show','_toggleOffline','flatMap','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','uni.network.url-service','eventID','_getSheetObject','target','_configService','code','SNAPSHOT_SERVER_URL_KEY','m2Prime','_startCollaboration','bottom','_onJoinRoomEvent','?url=','onTransformIME','url','asObservable','createIdentifier','SessionStatus','from','univer-online-status','DisposableCollection','_decreaseWaiting','@univerjs/ui','CommentService','setCurrentUser','drawWith','replaceState','_commandService','POST','ImageUploadStatusType','getSheetBlock','UNKNOWN_CODE','collaboratorID','withCredentials','_docTransformIMECacheService','getCurrentRevForDocument','IUndoRedoService','_onRecvEvent','HTTPService','b64DecodeUnicode','_getAPIPrefix','newCsEvent','enableLocalCache','onMissingChangesets','MessageType','_updateState','all','_disabled','DesktopCollaborationStatusDisplayController','_onCombEvent','ImageIoService','beginPath','getActiveSheet','loadSheet','_sendHeartbeatTimer','clsx','confirm','[DataLoaderController]','parseProtocolChangeset','subscribe','ws://127.0.0.1:8000/universer-api/comb/connect','_logService','event$','_httpService','getDocRanges','SUBMIT_CHANGESET','univerjs-icon\x20univerjs-icon-','collaboration-client.offline-data-not-saved','_removeClearOtherTimer','focused$','YUUMI_URL_COL_OUT_OF_RANGE','getOwnPropertyDescriptor','getOffsetConfig','newValue','saveSheetBlock','UPDATE_PERMISSION_OBJ','catch','saveOfflineData','enableOfflineEditing','_scene','transformChangesets','&assign=','EffectRefRangId','/unit/','collab-rect-range-','action','getSheetObject','memberID','_sheetTransformSelectionsService','onPointerLeave$','exhaustSavingTask','_cursorShapes','_updateLocalCache','1em','_change$','_initUnitPermissionChange','_replaceFileID','requestParams','/collaborator','stringify','transformMutation','createInstance','_onMessage','roomMembers','transformMutationsWithChangeset','USERS_LEAVE','ImageSourceType','onRemoteChangeset','members','ICommandService','doc.mutation.rich-text-editing','BASE64','patch','_handleHover','offline','_getAPIPrefixPath','RxDisposable','unit','getSkeleton','registerHTTPInterceptor','string','propertyIsEnumerable','?size=','_textBubble','_docTransformSelectionsService','awaiting_with_pending','SnapshotService','_refRangeService','RevisionService','onlyLocal','not_collab','status','InsertRangeMoveDownCommandId','popstate','collab-text-anchor-','@univerjs/drawing','MoveRangeCommandId','SetSelectionsOperation','includes','unitID','ILogService','OnLifecycle','COLORS','color','_render','list','InsertRowCommandId','FAIL','top','get','_drawAnchor','IRenderManagerService','transformIMECache','UNIVER_DOC','take','c1Prime','_clearScheduledTask','row','_sessions','_scheduleTimestamp','setActiveRange','CONNECTOR_DATA_TOO_LARGE','isTransformMutationFailure','Univer','[SyncedState]:\x20received\x20rejection.','_entities','/fetchmissing?from=','collab-text-range-','ICollaborationSocketService','_incrementRevisionNumber','m1Prime','image/jpeg','_collaborationPaused','indexOf','baseRev','filter','params','title','_collabSessionService','toggleOnline','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Module','fromCollab','COMPRESS_MUTATION_APPLY','setShapeProps','endRow','TextSelectionManagerService','_collabCursorState$','_localStorageService','_tryEnsureSocket','COLLAB_SUBMIT_CHANGESET_URL_KEY','32uGjmxu','_onConnectionOpen','close','LIVESHARE_FETCH_OPERATIONS','_socketService','_context','push','SheetPermissionInitController','hasOwnProperty','appendMutation','_lockTransition','displayName','/block/','LocalCacheService','1074894UxTZrU','HELLO','getCurrentUnitForType','SUCCUSS','disposeWithMe','_getCtorByUniverType','substring','_clearCollaborationTimeoutTimer','_entityInit$','getCollabEntity$','NodePositionConvertToRectRange','IUniverInstanceService','clipPath','Tools','INotificationService','ISnapshotServerService','backgroundColor','open$','getTime','LocalUndoRedoService','_onRefRangeChange','_fetchMissChangesets','toStringTag','editingUnit','session.connection-failed','_onRemoteRejected','SNAPSHOT_INVALID_SNAPSHOT','className','delete','Starting','subscribeEvent','_getLoginPath','submit\x20changeset\x20error!','encode','blue400','combineLatest','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ThresholdInterceptorFactory','whenReady','SheetCollabCursorShape','/object','LIVESHARE_NEW_HOST','off-line-single','@univerjs/design','_messageService','actions','onlineStatusIcon','_collaborationTimeoutTimer','append','clearInterval','@univerjs-pro/collaboration','roomInfos','DependentOn','NOT_COLLAB','collabStatus.syncing','_cursor','max','_onCursorDelete','history','addObjects','registerRenderModule','getMemberID','_getAnchorBounding','_updateStatus','_removeCollabCursors','sequenceExecute','gold400','_commentService','_applyRemoteChangeset','enableAuthServer','resourceIDs','session.collaboration-timeout','_document','HEARTBEAT','_handleJoinEvent','syncEditingCollabCursor','getMember','HttpImport','forEach','_socketReady','@univerjs/docs','SetDocZoomRatioOperation','csAckEvent','AWAITING_WITH_PENDING','...','setInterval','idSuffix','getUnitId','isArray','RegularPolygon','replace','CollaborationEvent','_name','delay','_socketMessageSubscription','_timeoutTimer','updatePermissionPoint','isTransformMutationsWithChangesetSuccess','textEncoder','_handler','getSheetId','PENDING','YUUMI_SUBSCRIPTION_NOT_FOUND','_substituteUndoStack','collabStatus.offline','getCellPositionByOffset','debug','UNIVER_UNKNOWN','restore','LEAVE','split','transformRemoteChangeset','disposeUnit','onTransformSelections','_hideTimer','getCurrent','reduce','getUniverSheetInstance','createSocket','_transformSelections','startRow','_createInitialStateImpl','SetWorksheetActivateCommand','_state','_send','_uiPartsService','getCurrentSelections','contains','pipe','selections','ITransformService','min','RichTextEditingMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','session.will-retry','_handleEvent','dispose$','arc','_getScale','_onLocalMutation','APPLY_NON_SEQUENTIAL_REVISION','listRoles','slice','IDLE','roomMembers$','UNDEFINED','workbook','INVALID_ARGUMENT','InsertColCommandId','onPointerEnter$','UnitEmbedded','collabStatus.conflict','_startDocCollabCursor','_exhaustRemoteChangesetQueue','_undoRedoService','closeSession','endColumn','CHANGESET_REJ','3491616OoOpVa','update','_onConnectionFailed','getItem','onSendChangeset','3214964pBHFxg','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','@univerjs/sheets-ui','isActive','infoRsp','SNAPSHOT_HAS_BEEN_REMOVED','_getSendChangesetTimeout','_sessionStatus$','_initCloseConn','onStateChange','_submitChangeset','/universer-api/snapshot/','BehaviorSubject','_updateLocalCursor','IContextService','_hovered','fetchThroughInterceptors','red300','SEND_CHANGESET_TIMEOUT_KEY','COLLAB_SUBMIT_CHANGESET_URL','HttpExport','getUnitOnRev','updateCollaborator','urlChange$','NodePositionConvertToCursor','_selfUnitIDs','put','getImageSourceCache','awaiting','sheets','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_init','isTransformMutationsWithChangesetFailure','SheetsSelectionsService','Vector2','{fileID}','some','_transformPreviousActiveRange','UNIVER_SLIDE','size','_updateSubUnitFromURLParams','_cachedData','RECV','handleIRemoveCol','fillStyle','fromEventSubject','LOCAL_CACHE_INTERVAL','_revisionService','CollaborationStatusDisplay','RETRY_CONNECTING_INTERVAL','UNAUTHENTICATED','function','getVpScrollXYInfoByPosToVp','AUTHZ_URL_KEY','DocStateChangeManagerService','getRoom','online','RETRY_CONNECTING_MAX_COUNT','IConfigService','on-line-single','moveTo','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','fromEvent','_session','_loadSheet','CHANGESET_ACK','init','_sendHeartbeat','@univerjs/core','_transformIMECache','type','_clearHeartbeatTimer','_id','_joinRoom','currentColor','ranges','concat','rgba(255,\x20255,\x20255,\x200.01)','_snapshotServerService','COMPRESS_MUTATION_SEND','getCurrentUser','deserializeRangeWithSheet','deleteCollaborator','_saveCache','getAncestorScale','src','cmd','getOwnPropertySymbols','PERMISSION_DENIED','Unknown\x20user','collaboration.closeRoom','PERMISSION_REJ','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onPointerMove$','serializeCombRequest','saveSnapshot','on-line-single_clip0_910_349','OFFLINE','find','onRemoteAck','userID','RemoveRowCommandId','registerBeforeClose','session.room-full','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','_scheduleCollaborationTimeoutTimer','prototype','_refreshCollabCursors','1318135OvAzKc','Ready','conflict','_getUploadFileURL','FETCH_MISS','JSONX','addObject','YUUMI_UNABLE_LOAD_URL','loadOfflineData','WebURLService','permission.content','parse','column','set','_onRemoteACK','_handleHeartbeatEvent','objectActions','_scheduleClearOtherTimer','routeKey','fetchMissingChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_http','distinctUntilChanged','WebSocketService','_scheduleReconnection','enableSingleActiveInstanceLock','_startSheetCollabCursor','json','runRefRangeMutations','_syncEditingCollabCursorService','[OfflineState]:\x20received\x20changeset.','addEventListener','_getSnapshotAPIPrefix','_ws','ERROR_IMAGE','post','_heartbeatTimer','compose','permissionRejEvent','INGEST','LIVESHARE_REQUEST_HOST','CompressMutationService','/object/','_retryCount','translate(.97)','editing\x20status\x20changed\x20to','_clearUndo','getImage','_executeRemoteChangeset','_retryConnectingTimer','_syncEditingCollabCursor','defineProperty','ACTIVE_UNIT_EVENT_CHANNEL','SNAPSHOT_URL_KEY','subunit','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','HEARTBEAT_TIMEOUT','_getCurrentRevision','CollaborationSessionService','_commentUpdate$','[CollaborationSessionService]:\x20socket\x20error','onRendered','_localCacheService','#FFF','_remoteChangesetQueue','&to=','joinRsp','UniverInstanceType','MSG_FOR_ERROR','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateCollabCursors','collabCursorState$','handleDeleteRangeMoveLeft','LIVESHARE_OPERATION','setParam','_initStatusListener','DataLoaderController','CollaborationStatus','_color','/resources','NO_OTHER_CLIENTS_EDITING','isTransformChangesetsSuccess','change$','AWAITING','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ERROR_IMAGE_TYPE','UNIVER_SHEET','hovered','close$','_collaborationSessionService','_registerDependencies','path','RemoveColCommandId','/-/object/list','DeleteRangeMoveLeftCommandId','_getRedoStack','cursorInfo','_unitID','setAlpha','image/bmp','_lastPointer','mapTo','startColumn','responseType','_rescheduleHeartbeatEvent','_unitStatus','_handleLeaveEvent','createElement','cursorInfo$','name','takeUntil','range','ONLINE','failed\x20to\x20apply\x20missed\x20changesets!','activeSheet$','result','_roomMembers$','getInterceptPoints','fillText','black','toggleOffline','font','onMouseMove','IImageIoService','symbol','IPermissionService','length','COLLAB_WEB_SOCKET_URL_KEY','throttleTime','method','_docSyncEditingCollabCursorService','height','getRangePointData','react','_transformService','_clearRedo','DeleteRangeMoveUpCommandId','Disposable','rxjs','shareReplay','UniverCollaborationClientPlugin','_initCommandExecutedListener','_type','[UniverCollaborationClientPlugin]','random','YUUMI_RATE_OVER_LIMIT','addImageSourceCache','leaveEvent','_draw','apply','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ILocalStorageService','Rectangle','IMessageService','updateCursorEvent','collaborators','Warning'];_0x59d8=function(){return _0x5bf993;};return _0x59d8();}var Us=Object[_0x30e940(0x36c)],ws=Object[_0x30e940(0x1a2)],Ee=(_0x479ee1,_0x45abfd,_0x5ee37e,_0x237b2)=>{const _0x2c4960=_0x30e940;for(var _0x420cbd=_0x237b2>0x1?void 0x0:_0x237b2?ws(_0x45abfd,_0x5ee37e):_0x45abfd,_0x1009e0=_0x479ee1[_0x2c4960(0x3b8)]-0x1,_0x59a225;_0x1009e0>=0x0;_0x1009e0--)(_0x59a225=_0x479ee1[_0x1009e0])&&(_0x420cbd=(_0x237b2?_0x59a225(_0x45abfd,_0x5ee37e,_0x420cbd):_0x59a225(_0x420cbd))||_0x420cbd);return _0x237b2&&_0x420cbd&&Us(_0x45abfd,_0x5ee37e,_0x420cbd),_0x420cbd;},I=(_0x20d495,_0x553fce)=>(_0x34a07d,_0x4bbbe4)=>_0x553fce(_0x34a07d,_0x4bbbe4,_0x20d495);exports[_0x30e940(0xde)]=class extends o[_0x30e940(0x1cf)]{constructor(_0x256f41,_0x121c69,_0xe67439){const _0x505cb2=_0x30e940;super(),u(this,_0x505cb2(0x200),new Map()),u(this,_0x505cb2(0x230),new v[(_0x505cb2(0x457))]()),(this['_injector']=_0x256f41,this[_0x505cb2(0x20d)]=_0x121c69,this[_0x505cb2(0x43f)]=_0xe67439,this[_0x505cb2(0x2eb)]());}[_0x30e940(0xc6)](){const _0x243f59=_0x30e940;super[_0x243f59(0xc6)](),this[_0x243f59(0x200)][_0x243f59(0x277)](_0x1b7cf6=>_0x1b7cf6['dispose']()),this[_0x243f59(0x200)][_0x243f59(0x9b)]();}['getCollabEntity'](_0x58b489){const _0x593298=_0x30e940;var _0x38a6cd;return(_0x38a6cd=this[_0x593298(0x200)]['get'](_0x58b489))!=null?_0x38a6cd:null;}[_0x30e940(0x231)](_0x47caea){const _0x60a616=_0x30e940,_0x21627f=this[_0x60a616(0x139)](_0x47caea);return _0x21627f?v['of'](_0x21627f):this[_0x60a616(0x230)][_0x60a616(0x2a9)](E[_0x60a616(0x20a)](_0x135299=>_0x135299['unitID']===_0x47caea));}[_0x30e940(0x2eb)](){const _0x5c83f6=_0x30e940;this['_univerInstanceService'][_0x5c83f6(0xc5)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]),E['delay'](0x10))['subscribe'](async _0x34c350=>{const _0x1f681e=_0x5c83f6,_0x2f5e01=_0x34c350['getUnitId'](),_0x1ff63a=await this['_startCollaboration'](_0x2f5e01,j[_0x1f681e(0x390)]);this[_0x1f681e(0x200)][_0x1f681e(0x346)](_0x2f5e01,_0x1ff63a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x5c83f6(0x37c)][_0x5c83f6(0x1f4)])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this['dispose$']),E[_0x5c83f6(0x286)](0x10))['pipe'](E[_0x5c83f6(0x20a)](_0x5613d9=>!_0x5613d9[_0x5c83f6(0x280)]()[_0x5c83f6(0xae)]('__')))[_0x5c83f6(0x196)](async _0x393cd6=>{const _0x5cc02f=_0x5c83f6,_0x10af0d=_0x393cd6[_0x5cc02f(0x280)](),_0x28aad2=await this['_startCollaboration'](_0x10af0d,j[_0x5cc02f(0x1f4)]);this[_0x5cc02f(0x200)]['set'](_0x10af0d,_0x28aad2);}),v[_0x5c83f6(0xbd)](this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_SHEET']),this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_DOC']))['pipe'](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]))[_0x5c83f6(0x196)](_0x56b52d=>{const _0x3c823d=_0x5c83f6,_0x1ee68f=_0x56b52d[_0x3c823d(0x280)](),_0x4f9e6c=this[_0x3c823d(0x200)][_0x3c823d(0x1f0)](_0x1ee68f);_0x4f9e6c&&(_0x4f9e6c[_0x3c823d(0xc6)](),this[_0x3c823d(0x200)][_0x3c823d(0x244)](_0x1ee68f));});}async[_0x30e940(0x164)](_0x31d678,_0x506882){const _0x52d492=_0x30e940,_0x5791bb=await this[_0x52d492(0x20d)][_0x52d492(0x470)](_0x31d678),_0x551407=this[_0x52d492(0x137)][_0x52d492(0x1c0)](this[_0x52d492(0x22d)](_0x506882),_0x31d678,_0x506882,_0x5791bb);return await _0x551407[_0x52d492(0x30e)](),this[_0x52d492(0x230)][_0x52d492(0x46e)](_0x551407),_0x551407;}[_0x30e940(0x22d)](_0xc2b729){const _0x4b92c9=_0x30e940;switch(_0xc2b729){case j[_0x4b92c9(0x1f4)]:return Ne;case j['UNIVER_SHEET']:return exports[_0x4b92c9(0x403)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xc2b729);}}},exports[_0x30e940(0xde)]=Ee([o[_0x30e940(0x1e8)](o['LifecycleStages'][_0x30e940(0x245)],exports[_0x30e940(0xde)]),I(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x1,o[_0x30e940(0xdf)](exports[_0x30e940(0x373)])),I(0x2,o['IUniverInstanceService'])],exports[_0x30e940(0xde)]);let fe=class extends o[_0x30e940(0x1cf)]{constructor(_0x429955,_0x11b556,_0x1eadfb,_0x158d29,_0x52a377,_0x27141a,_0x1734d7,_0x2e2995,_0x137529,_0x66bf4a,_0x21f9ca,_0x1cc66d,_0x3c1180){const _0x3be185=_0x30e940;super(),u(this,_0x3be185(0x445),new v[(_0x3be185(0x2d8))](null)),u(this,_0x3be185(0x436),this['_state$'][_0x3be185(0x16a)]()),u(this,'_state'),u(this,_0x3be185(0x207),!0x1),u(this,_0x3be185(0x3e0),this[_0x3be185(0x436)]['pipe'](E[_0x3be185(0x120)](_0x5e7106=>_0x5e7106?_0x5e7106['status']:D['OFFLINE']),E[_0x3be185(0x3c5)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x3be185(0x379),[]),(this['unitID']=_0x429955,this[_0x3be185(0x3c8)]=_0x11b556,this[_0x3be185(0x30b)]=_0x1eadfb,this[_0x3be185(0x137)]=_0x158d29,this[_0x3be185(0x377)]=_0x52a377,this[_0x3be185(0xe9)]=_0x27141a,this[_0x3be185(0x45b)]=_0x1734d7,this['_revisionService']=_0x2e2995,this['_logService']=_0x137529,this[_0x3be185(0x176)]=_0x66bf4a,this['_messageService']=_0x21f9ca,this[_0x3be185(0x153)]=_0x1cc66d,this['_singleActiveUnitService']=_0x3c1180);}get[_0x30e940(0xc2)](){const _0x511b84=_0x30e940;return this[_0x511b84(0x2a4)];}async[_0x30e940(0x30e)](){const _0x3ca085=_0x30e940;if(this[_0x3ca085(0xc2)])throw new Error(_0x3ca085(0x443));await this[_0x3ca085(0x2eb)]();}['pauseCollaboration'](){const _0x1d2099=_0x30e940;return this[_0x1d2099(0x207)]=!0x0,o[_0x1d2099(0xa1)](()=>{const _0xd0ffe8=_0x1d2099;this['_collaborationPaused']=!0x1,this[_0xd0ffe8(0x2c2)]();});}[_0x30e940(0x188)](_0x1f0baf){const _0x5c9690=_0x30e940;this[_0x5c9690(0x2a4)]=_0x1f0baf,this[_0x5c9690(0x445)]['next'](_0x1f0baf);}async['_init'](){const _0x197eba=_0x30e940;var _0x54fb58;return this['_updateState'](await this['_createInitialState']()),this[_0x197eba(0xbb)]&&((_0x54fb58=this[_0x197eba(0xbb)])==null||_0x54fb58[_0x197eba(0x23f)](this['unitID']),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this['_singleActiveUnitService'][_0x197eba(0x93)](this[_0x197eba(0x1e6)])[_0x197eba(0x196)](_0x17170f=>{const _0x14890f=_0x197eba;this[_0x14890f(0x198)][_0x14890f(0x293)](_0x14890f(0x474),_0x14890f(0x366),_0x17170f),_0x17170f===Ct['OTHER_CLIENTS_EDITING']?(this[_0x14890f(0x255)][_0x14890f(0x157)]({'content':this[_0x14890f(0x45b)]['t']('collaboration.single-unit.warning'),'type':Q[_0x14890f(0x187)][_0x14890f(0x3d6)]}),this[_0x14890f(0x153)][_0x14890f(0x289)](new p['WorkbookEditablePermission'](this[_0x14890f(0x1e6)])['id'],!0x1)):this[_0x14890f(0x153)]['updatePermissionPoint'](new p[(_0x14890f(0x458))](this[_0x14890f(0x1e6)])['id'],!0x0);})))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x3fd)][_0x197eba(0x196)](_0x575b0e=>{const _0x52798f=_0x197eba;_0x575b0e===G[_0x52798f(0x3aa)]?this[_0x52798f(0xf6)]():_0x575b0e===G[_0x52798f(0x32d)]&&this[_0x52798f(0x158)]();}))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x199)]['subscribe'](_0x37a5c5=>{const _0x16a37c=_0x197eba;try{switch(_0x37a5c5['eventID']){case _[_0x16a37c(0x284)][_0x16a37c(0xa0)]:{this[_0x16a37c(0x106)](_[_0x16a37c(0x195)](_0x37a5c5[_0x16a37c(0x10a)]));break;}case _[_0x16a37c(0x284)][_0x16a37c(0x30d)]:{this[_0x16a37c(0x347)](_0x37a5c5[_0x16a37c(0x10a)]);break;}case _[_0x16a37c(0x284)][_0x16a37c(0x2c6)]:{this[_0x16a37c(0x241)]();break;}case _[_0x16a37c(0x284)][_0x16a37c(0x124)]:{this[_0x16a37c(0x416)](_0x37a5c5[_0x16a37c(0x10a)]['changesets'][_0x16a37c(0x120)](_0x4bb8c4=>_[_0x16a37c(0x195)](_0x4bb8c4)));break;}case _[_0x16a37c(0x284)]['PERMISSION_REJ']:this[_0x16a37c(0x241)]({'isPermissionRej':!0x0});}}catch(_0x28bbd5){throw console['error']('Error\x20on\x20receiving\x20event',_0x28bbd5),_0x28bbd5;}}))),this[_0x197eba(0x2a4)];}[_0x30e940(0xc3)](){const _0x138174=_0x30e940;this[_0x138174(0x13e)]=!0x1;}[_0x30e940(0x224)](){const _0x4f031a=_0x30e940;if(this[_0x4f031a(0x13e)])throw new Error(_0x4f031a(0x430));this[_0x4f031a(0x13e)]=!0x0;}['_onLocalMutation'](_0x20ccdd){const _0x5866b7=_0x30e940;this[_0x5866b7(0x224)](),this[_0x5866b7(0x188)](this[_0x5866b7(0x2a4)][_0x5866b7(0x223)](_0x20ccdd)),this['_unlockTransition']();}[_0x30e940(0x106)](_0x8849d){const _0x169dbc=_0x30e940;if(!(_0x8849d[_0x169dbc(0x448)]<=this[_0x169dbc(0x2fb)][_0x169dbc(0x17e)](this[_0x169dbc(0x1e6)]))){if(this[_0x169dbc(0x207)]){this[_0x169dbc(0x379)][_0x169dbc(0x220)](_0x8849d);return;}this[_0x169dbc(0x26d)](_0x8849d);}}[_0x30e940(0x2c2)](){const _0x27ae31=_0x30e940;this[_0x27ae31(0x379)][_0x27ae31(0x277)](_0x371363=>this[_0x27ae31(0x26d)](_0x371363)),this[_0x27ae31(0x379)]=[];}[_0x30e940(0x26d)](_0xa0dc84){const _0xcad71e=_0x30e940,_0x5a4ead=this[_0xcad71e(0xe9)][_0xcad71e(0x129)][_0xcad71e(0x2dc)](this[_0xcad71e(0xe9)]['interceptor'][_0xcad71e(0x3af)]()[_0xcad71e(0x212)])(_0xa0dc84[_0xcad71e(0x95)],null)||_0xa0dc84[_0xcad71e(0x95)],_0x4ff644={..._0xa0dc84,'mutations':_0x5a4ead};this['_lockTransition'](),this['_updateState'](this['_state'][_0xcad71e(0x1c6)](_0x4ff644)),this[_0xcad71e(0xc3)]();}[_0x30e940(0x347)](_0x1bb438){const _0x8e6825=_0x30e940;this[_0x8e6825(0x224)](),this[_0x8e6825(0x188)](this[_0x8e6825(0x2a4)]['onRemoteAck'](_0x1bb438)),this[_0x8e6825(0xc3)]();}[_0x30e940(0x241)](_0x54a733){const _0x503f19=_0x30e940;this[_0x503f19(0x224)](),this[_0x503f19(0x188)](this[_0x503f19(0x2a4)][_0x503f19(0x13f)](_0x54a733)),this['_unlockTransition']();}['_onFetchMissResult'](_0x38b7d2){const _0x280533=_0x30e940;if(!(this['_state']instanceof H))throw new TypeError(_0x280533(0x34d));const _0x2c1d85=_0x38b7d2[_0x280533(0x120)](_0x1ff325=>{const _0x4f801e=_0x280533,_0x39b182=this[_0x4f801e(0xe9)][_0x4f801e(0x129)][_0x4f801e(0x2dc)](this['_compressMutationService']['interceptor'][_0x4f801e(0x3af)]()[_0x4f801e(0x212)])(_0x1ff325[_0x4f801e(0x95)],null)||_0x1ff325[_0x4f801e(0x95)];return{..._0x1ff325,'mutations':_0x39b182};});this[_0x280533(0x224)](),this[_0x280533(0x188)](this[_0x280533(0x2a4)][_0x280533(0x44f)](_0x2c1d85)),this[_0x280533(0xc3)]();}['_toggleOffline'](){const _0x2f9f06=_0x30e940;this[_0x2f9f06(0x224)](),this['_updateState'](this[_0x2f9f06(0x2a4)][_0x2f9f06(0x3b2)]()),this[_0x2f9f06(0xc3)]();}[_0x30e940(0xf6)](){const _0x37f02c=_0x30e940;this['_lockTransition'](),this[_0x37f02c(0x188)](this['_state'][_0x37f02c(0x20e)]()),this[_0x37f02c(0xc3)]();}async['_createInitialState'](){return new Promise(_0x157ab6=>{const _0x443dd5=_0x3b20;this[_0x443dd5(0x30b)][_0x443dd5(0x3fd)][_0x443dd5(0x2a9)](E[_0x443dd5(0x1f5)](0x1))[_0x443dd5(0x196)](async _0x2b29e6=>{const _0x44e61a=_0x443dd5;_0x157ab6(await this[_0x44e61a(0x2a2)](_0x2b29e6===G[_0x44e61a(0x3aa)]));});});}[_0x30e940(0xa5)](){const _0x4f75a7=_0x30e940,_0x3aa8bd=this[_0x4f75a7(0x1e6)];return{'onStateChange':(_0x54ca3a,_0x27bd8f)=>{const _0x4755bc=_0x4f75a7;if(_0x54ca3a!==this[_0x4755bc(0x2a4)])throw new Error(_0x4755bc(0x3d0)+_0x54ca3a['status']+_0x4755bc(0xb6)+_0x27bd8f['status']+_0x4755bc(0x92)+this[_0x4755bc(0x2a4)][_0x4755bc(0x1de)]);this[_0x4755bc(0x188)](_0x27bd8f);},'onSendChangeset':_0x552517=>{const _0xb8bf6c=_0x4f75a7,_0x36c136={'eventID':_[_0xb8bf6c(0x284)][_0xb8bf6c(0x19c)],'data':{'unitID':_0x552517[_0xb8bf6c(0x1e6)],'unitType':this['_type'],'changeset':_0x552517,'memberID':this[_0xb8bf6c(0x30b)][_0xb8bf6c(0x266)]()}};this['_session'][_0xb8bf6c(0x3e9)](_0x36c136,this[_0xb8bf6c(0x1e6)]);},'onMissingChangesets':({from:_0x5e8f93,to:_0x27af4d})=>{const _0x265955=_0x4f75a7;this[_0x265955(0x198)][_0x265955(0x293)](_0x265955(0x474),'fetching\x20missing\x20changesets\x20from\x20'+_0x5e8f93+_0x265955(0xd0)+_0x27af4d);const _0x36334f={'eventID':_['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x3aa8bd,'unitType':this[_0x265955(0x3c8)],'from':_0x5e8f93,'to':_0x27af4d}};this['_session'][_0x265955(0x3e9)](_0x36334f,this[_0x265955(0x1e6)]);}};}async[_0x30e940(0x2a2)](_0x1bfd89){const _0x28a728=_0x30e940;var _0x25b7a2,_0x1ce944;const _0xd8469b=await this[_0x28a728(0x377)][_0x28a728(0x341)](this[_0x28a728(0x1e6)]),_0xdb9f9f=(_0x25b7a2=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0x95)])!=null?_0x25b7a2:[],_0x1a9436=(_0x1ce944=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0xf9)])!=null?_0x1ce944:null,_0x261670=this[_0x28a728(0x1e6)];try{this[_0x28a728(0xea)](_0x1a9436,_0xdb9f9f);}catch(_0x38627b){this[_0x28a728(0x198)][_0x28a728(0xf0)](_0x38627b);}const _0x54e36b=this['_createHandler']();if(_0x1bfd89){const _0x59e747=Tt(this['_injector'],_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);return _0x59e747 instanceof $?_0x59e747[_0x28a728(0x8f)]():(_0x59e747 instanceof x||_0x59e747 instanceof k)&&_0x59e747[_0x28a728(0xdd)](),_0x59e747;}return this[_0x28a728(0x137)][_0x28a728(0x1c0)](V,_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);}[_0x30e940(0xea)](_0x3d87f5,_0x5294d8){const _0x32333f=_0x30e940;var _0x3a4c6e,_0x572c13;const _0x46748d=this[_0x32333f(0xe9)][_0x32333f(0x129)]['fetchThroughInterceptors'](this[_0x32333f(0xe9)]['interceptor'][_0x32333f(0x3af)]()[_0x32333f(0x212)]);(_0x3a4c6e=_0x46748d((_0x3d87f5==null?void 0x0:_0x3d87f5[_0x32333f(0x95)])||[],null))==null||_0x3a4c6e[_0x32333f(0x277)](_0x368d19=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x368d19['id'],_0x368d19['params'])),(_0x572c13=_0x46748d(_0x5294d8||[],null))==null||_0x572c13[_0x32333f(0x277)](_0x5ed0e1=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x5ed0e1['id'],_0x5ed0e1[_0x32333f(0x20b)]));}};fe=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0x1e7)]),I(0x9,o[_0x30e940(0x1c8)]),I(0xa,L[_0x30e940(0x3d3)]),I(0xb,o[_0x30e940(0x3b7)]),I(0xc,o[_0x30e940(0x96)](pe))],fe);let Ne=class extends fe{constructor(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0x324083,_0x3cba07,_0x24c3a8,_0x236446,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3){const _0x23b17b=_0x30e940;super(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3),this[_0x23b17b(0x1e6)]=_0xfda237,this[_0x23b17b(0x312)]=_0x47fcb6,this[_0x23b17b(0x461)]=_0x355d0f,this[_0x23b17b(0x13a)]=_0x324083,this[_0x23b17b(0x17d)]=_0x3cba07,this[_0x23b17b(0x1d7)]=_0x24c3a8,this['_docSyncEditingCollabCursorService']=_0x236446;}[_0x30e940(0xa5)](){const _0x4ece8e=_0x30e940,_0x390f79=super[_0x4ece8e(0xa5)]();return _0x390f79[_0x4ece8e(0x168)]=_0x5c46c2=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x1f3)](_0x5c46c2),_0x390f79[_0x4ece8e(0x29a)]=_0x38d6a7=>this['_docTransformSelectionsService'][_0x4ece8e(0x156)](_0x38d6a7),_0x390f79[_0x4ece8e(0x11c)]=_0x3bae6b=>this[_0x4ece8e(0x3bc)][_0x4ece8e(0x274)](_0x3bae6b),_0x390f79[_0x4ece8e(0x8c)]=_0x32444d=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x298)](_0x32444d),_0x390f79;}async[_0x30e940(0x2eb)](){const _0xb4f0c1=_0x30e940,_0x2f86ab=await super[_0xb4f0c1(0x2eb)]();return this[_0xb4f0c1(0x22c)](this[_0xb4f0c1(0x176)][_0xb4f0c1(0xd2)]((_0x1415d6,_0x395762)=>{const _0x2b5e1a=_0xb4f0c1;if(_0x1415d6[_0x2b5e1a(0x312)]!==o[_0x2b5e1a(0x99)][_0x2b5e1a(0x438)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x211)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x1dc)])return;const _0x33fae2=_0x1415d6[_0x2b5e1a(0x20b)];if((_0x33fae2==null?void 0x0:_0x33fae2['unitId'])!==this['unitID'])return;let _0x4fa127=_0x1415d6;if(_0x4fa127['id']===P[_0x2b5e1a(0x2ad)]['id']){const _0x27699d=_0x4fa127[_0x2b5e1a(0x20b)];_0x4fa127={'id':P[_0x2b5e1a(0x2ad)]['id'],'type':o[_0x2b5e1a(0x99)]['MUTATION'],'params':{'unitId':_0x27699d[_0x2b5e1a(0x424)],'actions':_0x27699d['actions'],'textRanges':null}};}const _0x5ec491=this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x2dc)](this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x3af)]()[_0x2b5e1a(0x31b)])([_0x4fa127],null)||[_0x4fa127];this['_onLocalMutation'](_0x5ec491[0x0]);})),_0x2f86ab;}};Ne=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o['Inject'](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o['LocaleService'])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](P[_0x30e940(0x302)])),I(0x9,o[_0x30e940(0xdf)](ve)),I(0xa,o['Inject'](me)),I(0xb,o[_0x30e940(0xdf)](We)),I(0xc,o[_0x30e940(0x1e7)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x30e940(0x3b7)]),I(0x10,o['Optional'](pe))],Ne),exports['SheetCollaborationEntity']=class extends fe{constructor(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x564565,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a){const _0x51ec72=_0x30e940;super(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a),this['unitID']=_0x4f4c6e,this['type']=_0x9bdab2,this[_0x51ec72(0x461)]=_0x25ad1c,this[_0x51ec72(0x1b3)]=_0x564565;}['_createHandler'](){const _0x1297b8=_0x30e940,_0x4239f0=super[_0x1297b8(0xa5)]();return _0x4239f0[_0x1297b8(0x29a)]=_0x17edda=>this['_sheetTransformSelectionsService'][_0x1297b8(0x156)](_0x17edda),_0x4239f0;}async['_init'](){const _0x577219=_0x30e940,_0x3e30bb=await super[_0x577219(0x2eb)]();return this['disposeWithMe'](this[_0x577219(0x176)]['onCommandExecuted']((_0x2fe9d2,_0xecad20)=>{const _0x1a5982=_0x577219;if(_0x2fe9d2[_0x1a5982(0x312)]!==o[_0x1a5982(0x99)][_0x1a5982(0x438)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x211)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x1dc)])return;const _0x4ea78d=_0x2fe9d2['params'];if((_0x4ea78d==null?void 0x0:_0x4ea78d[_0x1a5982(0x424)])!==this['unitID'])return;const _0x30cbea=_0x2fe9d2,_0x6cd0cb=this['_compressMutationService'][_0x1a5982(0x129)]['fetchThroughInterceptors'](this[_0x1a5982(0xe9)][_0x1a5982(0x129)][_0x1a5982(0x3af)]()[_0x1a5982(0x31b)])([_0x30cbea],null)||[_0x30cbea];this[_0x1a5982(0x2b4)](_0x6cd0cb[0x0]);})),_0x3e30bb;}},exports[_0x30e940(0x403)]=Ee([I(0x3,o['Inject'](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](ge)),I(0x9,o[_0x30e940(0x1e7)]),I(0xa,o[_0x30e940(0x1c8)]),I(0xb,L[_0x30e940(0x3d3)]),I(0xc,o[_0x30e940(0x3b7)]),I(0xd,o[_0x30e940(0x96)](pe))],exports[_0x30e940(0x403)]);const st=[_0x30e940(0xb9),'jiqing500','verdancy600',_0x30e940(0x2dd),_0x30e940(0x24a),_0x30e940(0x26b)];function _0x3b20(_0xcd3ab1,_0x2466f9){const _0x59d87c=_0x59d8();return _0x3b20=function(_0x3b2091,_0x36dc77){_0x3b2091=_0x3b2091-0x86;let _0x1dadd8=_0x59d87c[_0x3b2091];return _0x1dadd8;},_0x3b20(_0xcd3ab1,_0x2466f9);}class Fe extends o[_0x30e940(0x3c3)]{constructor(){const _0x5eb775=_0x30e940;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x5eb775(0x3e7),0x0);}[_0x30e940(0xd3)](_0x17fbc8){const _0xae9622=_0x30e940;if(this[_0xae9622(0x455)]['has'](_0x17fbc8))return this[_0xae9622(0x455)][_0xae9622(0x1f0)](_0x17fbc8);const _0x314f98=st[this[_0xae9622(0x3e7)]];return this['_colorIndex']=(this[_0xae9622(0x3e7)]+0x1)%st[_0xae9622(0x3b8)],this[_0xae9622(0x455)][_0xae9622(0x346)](_0x17fbc8,_0x314f98),_0x314f98;}}var Ms=Object[_0x30e940(0x36c)],ys=Object[_0x30e940(0x1a2)],Ns=(_0x5ef2aa,_0x21eb5d,_0x58320f,_0x5357af)=>{for(var _0x5f5214=_0x5357af>0x1?void 0x0:_0x5357af?ys(_0x21eb5d,_0x58320f):_0x21eb5d,_0xef3dd3=_0x5ef2aa['length']-0x1,_0x3a5c11;_0xef3dd3>=0x0;_0xef3dd3--)(_0x3a5c11=_0x5ef2aa[_0xef3dd3])&&(_0x5f5214=(_0x5357af?_0x3a5c11(_0x21eb5d,_0x58320f,_0x5f5214):_0x3a5c11(_0x5f5214))||_0x5f5214);return _0x5357af&&_0x5f5214&&Ms(_0x21eb5d,_0x58320f,_0x5f5214),_0x5f5214;},q=(_0x336e8c,_0xaf8ff8)=>(_0x381bcc,_0x53fcd7)=>_0xaf8ff8(_0x381bcc,_0x53fcd7,_0x336e8c);const Ls=0x12c,As=0x64,js=()=>{let _0x5d774f=[],_0x2b4380=!0x1;return _0x5ef214=>{const _0x507a88=_0x3b20;_0x5d774f[_0x507a88(0x220)](_0x5ef214),_0x2b4380||(_0x2b4380=!0x0,setTimeout(()=>{const _0x5b8eb1=_0x507a88;_0x5d774f[_0x5b8eb1(0x277)](_0x4d348c=>_0x4d348c()),_0x5d774f=[],_0x2b4380=!0x1;}));};};let Le=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d214,_0x528102,_0x2c8cee,_0x296538,_0x133b17,_0x33856d,_0x4262e2,_0x13ff6e){const _0x3a2e1e=_0x30e940;super(),u(this,_0x3a2e1e(0x42d),!0x1),u(this,_0x3a2e1e(0x2eb),!0x1),u(this,'_cursorInfo$',new v[(_0x3a2e1e(0x2d8))](new Map())),u(this,_0x3a2e1e(0x3a6),this[_0x3a2e1e(0xfd)][_0x3a2e1e(0x16a)]()),u(this,_0x3a2e1e(0x3ae),new v[(_0x3a2e1e(0x2d8))]([])),u(this,_0x3a2e1e(0x2b9),this[_0x3a2e1e(0x3ae)][_0x3a2e1e(0x2a9)](v[_0x3a2e1e(0xaa)](Ls))),u(this,_0x3a2e1e(0x2d9),xe((_0x3e0ef2,_0x12ed99)=>{const _0x5859cb=_0x3a2e1e,_0x26ae5e={'eventID':_[_0x5859cb(0x284)][_0x5859cb(0x89)],'data':{'unitID':this[_0x5859cb(0x1e6)],'memberID':this['_session'][_0x5859cb(0x266)](),'selection':Ke[_0x5859cb(0x43c)](_0x3e0ef2,_0x12ed99[_0x5859cb(0x3a9)])}};this[_0x5859cb(0x30b)][_0x5859cb(0x3e9)](_0x26ae5e,this[_0x5859cb(0x1e6)]);},As)),(this['unitID']=_0x56d214,this[_0x3a2e1e(0x30b)]=_0x528102,this[_0x3a2e1e(0x137)]=_0x2c8cee,this[_0x3a2e1e(0x3dc)]=_0x296538,this['_memberService']=_0x133b17,this[_0x3a2e1e(0x43f)]=_0x33856d,this[_0x3a2e1e(0x176)]=_0x4262e2,this[_0x3a2e1e(0x1da)]=_0x13ff6e);}get[_0x30e940(0x39a)](){const _0x2687c5=_0x30e940;return this[_0x2687c5(0xfd)][_0x2687c5(0xca)]();}get[_0x30e940(0x1c2)](){const _0x246a09=_0x30e940;return this['_roomMembers$'][_0x246a09(0xca)]();}['dispose'](){const _0x3c9d7e=_0x30e940;super[_0x3c9d7e(0xc6)](),this['_cursorInfo$']['next'](new Map()),this[_0x3c9d7e(0xfd)][_0x3c9d7e(0xb0)](),this[_0x3c9d7e(0x3ae)][_0x3c9d7e(0x46e)]([]),this[_0x3c9d7e(0x3ae)]['complete']();}['init'](){const _0x29d373=_0x30e940;this['_init']||(this['_init']=!0x0,this[_0x29d373(0x30b)][_0x29d373(0x3fd)]['pipe'](v['takeUntil'](this['dispose$']))[_0x29d373(0x196)](_0x204092=>{const _0xc6fe3e=_0x29d373;_0x204092===G[_0xc6fe3e(0x3aa)]?this[_0xc6fe3e(0xf6)]():this[_0xc6fe3e(0x158)]();}),this['_session'][_0x29d373(0x199)]['pipe'](v[_0x29d373(0x3a8)](this['dispose$']))[_0x29d373(0x196)](_0x4c50b4=>{const _0x27fac7=_0x29d373,_0x5b3e6b=_0x4c50b4['eventID'];_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x89)]&&this[_0x27fac7(0xf1)](_0x4c50b4),_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x1c4)]&&this[_0x27fac7(0x262)](_0x4c50b4);}),this['_onRefRangeChange'](),this[_0x29d373(0x22c)](this[_0x29d373(0x176)][_0x29d373(0xd2)](_0x340017=>{const _0x1e56d9=_0x29d373;if(this[_0x1e56d9(0x42d)]&&_0x340017['id']===p[_0x1e56d9(0x1e4)]['id']&&_0x340017['params'][_0x1e56d9(0x424)]===this[_0x1e56d9(0x1e6)]){const _0x3819f6=_0x340017[_0x1e56d9(0x20b)];this[_0x1e56d9(0x2d9)](_0x3819f6['subUnitId'],_0x3819f6['selections'][0x0]);}})));}[_0x30e940(0xf1)](_0x1fa5a5){const _0x1dc8a3=_0x30e940;var _0x166f9f,_0x4d845e;const {memberID:_0x43fd4f,selection:_0x15dc45}=_0x1fa5a5[_0x1dc8a3(0x10a)],{sheetName:_0x145171,range:_0x396e99}=Ke[_0x1dc8a3(0x31d)](_0x15dc45),_0x5de6fc={'name':(_0x4d845e=(_0x166f9f=this['_memberService'][_0x1dc8a3(0x275)](this[_0x1dc8a3(0x1e6)],_0x43fd4f))==null?void 0x0:_0x166f9f[_0x1dc8a3(0x3a7)])!=null?_0x4d845e:_0x1dc8a3(0x325),'range':this['_getMergeRange'](_0x145171,_0x396e99),'sheetID':_0x145171,'color':this[_0x1dc8a3(0x3dc)]['assignAColorForMemberID'](_0x43fd4f),'selection':_0x15dc45},_0x56bc88=this[_0x1dc8a3(0x39a)];_0x56bc88[_0x1dc8a3(0x346)](_0x43fd4f,_0x5de6fc),this['_cursorInfo$'][_0x1dc8a3(0x46e)](_0x56bc88);}[_0x30e940(0x262)](_0x38ad03){const _0x6e0898=_0x30e940,{memberID:_0x11c949}=_0x38ad03[_0x6e0898(0x10a)],_0x46c471=this[_0x6e0898(0x39a)];_0x46c471[_0x6e0898(0x244)](_0x11c949),this['_cursorInfo$'][_0x6e0898(0x46e)](_0x46c471);}[_0x30e940(0x143)](_0x27a523,_0x175a59){const _0x496998=_0x30e940;var _0x3abd2e,_0x45d5a8;const _0x157cc6=(_0x45d5a8=(_0x3abd2e=this[_0x496998(0x43f)][_0x496998(0x29e)](this[_0x496998(0x1e6)]))==null?void 0x0:_0x3abd2e['getSheetBySheetId'](_0x27a523))==null?void 0x0:_0x45d5a8['getMergeData']();return(_0x157cc6==null?void 0x0:_0x157cc6[_0x496998(0x32e)](_0x59c9d9=>o[_0x496998(0x3d2)][_0x496998(0x2a8)](_0x59c9d9,_0x175a59)))||_0x175a59;}[_0x30e940(0x23c)](){const _0x5e39b8=_0x30e940,_0x1ab8eb=new o[(_0x5e39b8(0x16f))](),_0x4a303e=js(),_0x6a600e=()=>{const _0x11428d=_0x5e39b8;_0x1ab8eb[_0x11428d(0xc6)]();const _0x1809c3=(_0x361ebb,_0x5a6aee,_0x1f74d3,_0x2c431c)=>{const _0x525963=_0x11428d;let _0x3fa50b=[];switch(_0x361ebb['id']){case p[_0x525963(0x1ad)][_0x525963(0x398)]:{_0x3fa50b=p[_0x525963(0x381)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x3c2)]:{_0x3fa50b=p[_0x525963(0xce)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x2bd)]:{_0x3fa50b=p['handleInsertCol'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1df)]:{_0x3fa50b=p[_0x525963(0x407)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)]['InsertRangeMoveRightCommandId']:{_0x3fa50b=p['handleInsertRangeMoveRight'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1ed)]:{_0x3fa50b=p['handleInsertRow'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1e3)]:{_0x3fa50b=p[_0x525963(0xac)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x396)]:{_0x3fa50b=p[_0x525963(0x2f7)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x331)]:{_0x3fa50b=p[_0x525963(0x419)](_0x361ebb,_0x2c431c);break;}}const _0x3c1f32=p[_0x525963(0x355)](_0x3fa50b,_0x2c431c),_0x2758d1=this[_0x525963(0x39a)][_0x525963(0x1f0)](_0x5a6aee);if(_0x2758d1&&_0x3c1f32){const _0x28d485={..._0x2758d1,'range':_0x3c1f32};this[_0x525963(0x39a)][_0x525963(0x346)](_0x5a6aee,_0x28d485),_0x4a303e(()=>{const _0x50deae=_0x525963,_0x42c69a=this[_0x50deae(0x1da)][_0x50deae(0x11b)](_0x3c1f32,_0x3b3c84=>(_0x42c69a['dispose'](),_0x1809c3(_0x3b3c84,_0x5a6aee,_0x1f74d3,_0x3c1f32)));_0x1ab8eb[_0x50deae(0x418)](_0x42c69a);});}return{'redos':[],'undos':[]};};this[_0x11428d(0x39a)][_0x11428d(0x277)]((_0x1c20f7,_0xd41eab)=>{const _0x1f9c0f=_0x11428d,{range:_0x51974d,sheetID:_0x38963a}=_0x1c20f7,_0x57b9eb=this[_0x1f9c0f(0x1da)][_0x1f9c0f(0x11b)](_0x51974d,_0x2cfd02=>(_0x57b9eb[_0x1f9c0f(0xc6)](),_0x1809c3(_0x2cfd02,_0xd41eab,_0x38963a,_0x51974d)));_0x1ab8eb[_0x1f9c0f(0x418)](_0x57b9eb);});};this[_0x5e39b8(0x22c)](o[_0x5e39b8(0xa1)](this[_0x5e39b8(0xfd)]['subscribe'](()=>{_0x6a600e();})));}['_toggleOnline'](){const _0x20cc0e=_0x30e940;var _0x1aa511,_0x294de2;if(this[_0x20cc0e(0x42d)]=!0x0,((_0x1aa511=this['_univerInstanceService'][_0x20cc0e(0x469)]())==null?void 0x0:_0x1aa511[_0x20cc0e(0x280)]())!==this[_0x20cc0e(0x1e6)])return;const _0x2fbe1a=(_0x294de2=this[_0x20cc0e(0x137)][_0x20cc0e(0x1f0)](p[_0x20cc0e(0x2ed)])[_0x20cc0e(0x2a7)]())==null?void 0x0:_0x294de2[0x0],_0xad5206=this[_0x20cc0e(0x43f)][_0x20cc0e(0x22a)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x20cc0e(0x18f)]();_0x2fbe1a&&_0xad5206&&this['_updateLocalCursor'](_0xad5206[_0x20cc0e(0x28d)](),_0x2fbe1a);}[_0x30e940(0x158)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),q(0x3,o[_0x30e940(0xdf)](Fe)),q(0x4,o[_0x30e940(0xdf)](Y)),q(0x5,o[_0x30e940(0x233)]),q(0x6,o['ICommandService']),q(0x7,o[_0x30e940(0xdf)](p[_0x30e940(0xb1)]))],Le);var $s=Object['defineProperty'],xs=Object[_0x30e940(0x1a2)],Hs=(_0x792beb,_0x5ebafe,_0x40c732,_0x2abfe3)=>{const _0x1e8f21=_0x30e940;for(var _0x19bd6c=_0x2abfe3>0x1?void 0x0:_0x2abfe3?xs(_0x5ebafe,_0x40c732):_0x5ebafe,_0x37375a=_0x792beb[_0x1e8f21(0x3b8)]-0x1,_0x239543;_0x37375a>=0x0;_0x37375a--)(_0x239543=_0x792beb[_0x37375a])&&(_0x19bd6c=(_0x2abfe3?_0x239543(_0x5ebafe,_0x40c732,_0x19bd6c):_0x239543(_0x19bd6c))||_0x19bd6c);return _0x2abfe3&&_0x19bd6c&&$s(_0x5ebafe,_0x40c732,_0x19bd6c),_0x19bd6c;},F=(_0x369b82,_0x177188)=>(_0x4c2739,_0x2e9754)=>_0x177188(_0x4c2739,_0x2e9754,_0x369b82);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d93f,_0x24e408,_0x12b06d,_0x17a778,_0x5b76e6,_0x1fee4e,_0x554d63,_0x456e81,_0x287d92){const _0x4e898a=_0x30e940;super(),u(this,_0x4e898a(0x42d),!0x1),u(this,_0x4e898a(0x2eb),!0x1),u(this,_0x4e898a(0xfd),new v[(_0x4e898a(0x2d8))](new Map())),u(this,_0x4e898a(0x3a6),this[_0x4e898a(0xfd)][_0x4e898a(0x16a)]()),u(this,_0x4e898a(0x3ae),new v[(_0x4e898a(0x2d8))]([])),u(this,'roomMembers$',this[_0x4e898a(0x3ae)][_0x4e898a(0x2a9)](v[_0x4e898a(0xaa)](ks))),u(this,_0x4e898a(0x2d9),xe(_0x57f0a6=>{const _0x189852=_0x4e898a,_0x5bc359={'eventID':_['CollaborationEvent'][_0x189852(0x89)],'data':{'unitID':this[_0x189852(0x1e6)],'memberID':this[_0x189852(0x30b)][_0x189852(0x266)](),'selection':bt(_0x57f0a6)}};this[_0x189852(0x30b)][_0x189852(0x3e9)](_0x5bc359,this['unitID']);},Bs)),(this[_0x4e898a(0x1e6)]=_0x56d93f,this['_session']=_0x24e408,this[_0x4e898a(0x137)]=_0x12b06d,this[_0x4e898a(0x3dc)]=_0x17a778,this[_0x4e898a(0x460)]=_0x5b76e6,this[_0x4e898a(0x356)]=_0x1fee4e,this[_0x4e898a(0x3c0)]=_0x554d63,this['_univerInstanceService']=_0x456e81,this[_0x4e898a(0x176)]=_0x287d92);}get[_0x30e940(0x39a)](){const _0x254252=_0x30e940;return this[_0x254252(0xfd)][_0x254252(0xca)]();}get['roomMembers'](){const _0x17e0be=_0x30e940;return this[_0x17e0be(0x3ae)][_0x17e0be(0xca)]();}[_0x30e940(0xc6)](){const _0x55a2d3=_0x30e940;super[_0x55a2d3(0xc6)](),this[_0x55a2d3(0xfd)]['next'](new Map()),this[_0x55a2d3(0xfd)][_0x55a2d3(0xb0)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x55a2d3(0xb0)]();}[_0x30e940(0x30e)](){const _0x3628d8=_0x30e940;this[_0x3628d8(0x2eb)]||(this['_init']=!0x0,this[_0x3628d8(0x30b)][_0x3628d8(0x3fd)][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this['dispose$']))[_0x3628d8(0x196)](_0x469aa4=>{const _0x19b38c=_0x3628d8;_0x469aa4===G[_0x19b38c(0x3aa)]?this[_0x19b38c(0xf6)]():this['_toggleOffline']();}),this[_0x3628d8(0x30b)][_0x3628d8(0x199)][_0x3628d8(0x2a9)](v['takeUntil'](this['dispose$']))[_0x3628d8(0x196)](_0x172121=>{const _0x1350d3=_0x3628d8,_0x56e857=_0x172121[_0x1350d3(0x15d)];_0x56e857===_[_0x1350d3(0x284)][_0x1350d3(0x89)]&&this[_0x1350d3(0xf1)](_0x172121),_0x56e857===_[_0x1350d3(0x284)]['USERS_LEAVE']&&this[_0x1350d3(0x262)](_0x172121);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x1e8f80=>{const _0x3057ed=_0x3628d8,_0x42f892=_0x1e8f80[_0x3057ed(0x20b)];_0x42f892!=null&&this['_online']&&_0x1e8f80['id']===P['SetTextSelectionsOperation']['id']&&_0x42f892['unitId']===this[_0x3057ed(0x1e6)]&&_0x42f892[_0x3057ed(0x40c)]===!0x1&&this[_0x3057ed(0x2d9)](_0x42f892[_0x3057ed(0x317)]);})),this[_0x3628d8(0x356)]['collabCursorState$'][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this[_0x3628d8(0x2b1)]))[_0x3628d8(0x196)](_0x2d3449=>{const _0x17e602=_0x3628d8;if((_0x2d3449==null?void 0x0:_0x2d3449[_0x17e602(0x1e6)])!==this[_0x17e602(0x1e6)])return;const _0x55c63e={'eventID':_[_0x17e602(0x284)][_0x17e602(0x89)],'data':_0x2d3449};this['_onCursorUpdate'](_0x55c63e);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x5d22c7=>{const _0x14b674=_0x3628d8;if(_0x5d22c7[_0x14b674(0x20b)]==null)return;const _0x5884c8=_0x5d22c7['params'];if(_0x5d22c7['id']!==P[_0x14b674(0x2ad)]['id']||_0x5884c8[_0x14b674(0x424)]!==this[_0x14b674(0x1e6)])return;const _0x385a4b={'id':_0x14b674(0x1c9),'params':_0x5884c8},_0x206d0a=this[_0x14b674(0x39a)];for(const [_0x42d4eb,_0x51129d]of _0x206d0a){const _0x468d60={'id':_0x14b674(0x1c9),'params':{'unitId':this[_0x14b674(0x1e6)],'actions':null,'textRanges':_0x51129d[_0x14b674(0x317)]}},_0x2fea6=this[_0x14b674(0x3c0)][_0x14b674(0x1bf)](_0x385a4b,_0x468d60,!0x1);if(_[_0x14b674(0x1fd)](_0x2fea6))throw _0x2fea6[_0x14b674(0xf0)];_0x206d0a['set'](_0x42d4eb,{..._0x51129d,'ranges':_0x2fea6[_0x14b674(0x163)][_0x14b674(0x20b)][_0x14b674(0x146)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x206d0a);});})));}[_0x30e940(0xf1)](_0x3ea244){const _0x374a42=_0x30e940;var _0x4df903,_0xf76d94;const {memberID:_0x5eb251,selection:_0x21d0cb}=_0x3ea244[_0x374a42(0x10a)],_0x490140=Is(_0x21d0cb),_0x1dcb63=(_0xf76d94=(_0x4df903=this['_memberService']['getMember'](this[_0x374a42(0x1e6)],_0x5eb251))==null?void 0x0:_0x4df903[_0x374a42(0x3a7)])!=null?_0xf76d94:_0x374a42(0x325),_0x2fd049={'color':this['_colorAssignService'][_0x374a42(0xd3)](_0x5eb251),'name':_0x1dcb63,'ranges':_0x490140},_0xafe988=this[_0x374a42(0x39a)];_0xafe988[_0x374a42(0x346)](_0x5eb251,_0x2fd049),this[_0x374a42(0xfd)][_0x374a42(0x46e)](_0xafe988);}[_0x30e940(0x262)](_0x4fe954){const _0x1444d4=_0x30e940,{memberID:_0xc2fae3}=_0x4fe954[_0x1444d4(0x10a)],_0x1e5a27=this[_0x1444d4(0x39a)];_0x1e5a27['delete'](_0xc2fae3),this[_0x1444d4(0xfd)][_0x1444d4(0x46e)](_0x1e5a27);}[_0x30e940(0xf6)](){const _0x2976e2=_0x30e940;var _0xe2f44e;if(this['_online']=!0x0,((_0xe2f44e=this['_univerInstanceService'][_0x2976e2(0x469)]())==null?void 0x0:_0xe2f44e[_0x2976e2(0x280)]())!==this[_0x2976e2(0x1e6)])return;const _0x90aa37=this['_injector'][_0x2976e2(0x1f0)](P[_0x2976e2(0x215)])[_0x2976e2(0x19b)](),_0x5b77d6=_0x90aa37==null?void 0x0:_0x90aa37[_0x2976e2(0x120)](P[_0x2976e2(0x13c)]);Array[_0x2976e2(0x281)](_0x5b77d6)&&_0x5b77d6[_0x2976e2(0x3b8)]>0x0&&this[_0x2976e2(0x2d9)](_0x5b77d6);}[_0x30e940(0x158)](){const _0xc63cb2=_0x30e940;this[_0xc63cb2(0x42d)]=!0x1;}};Ae=Hs([F(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),F(0x3,o[_0x30e940(0xdf)](Fe)),F(0x4,o[_0x30e940(0xdf)](Y)),F(0x5,o[_0x30e940(0xdf)](We)),F(0x6,_[_0x30e940(0x2ab)]),F(0x7,o[_0x30e940(0x233)]),F(0x8,o[_0x30e940(0x1c8)])],Ae);var Vs=Object[_0x30e940(0x36c)],Ws=Object[_0x30e940(0x1a2)],Fs=(_0x25663d,_0x1ffdaa,_0x578105,_0x46ecb8)=>{const _0x2a941d=_0x30e940;for(var _0x3de539=_0x46ecb8>0x1?void 0x0:_0x46ecb8?Ws(_0x1ffdaa,_0x578105):_0x1ffdaa,_0x405934=_0x25663d[_0x2a941d(0x3b8)]-0x1,_0x191241;_0x405934>=0x0;_0x405934--)(_0x191241=_0x25663d[_0x405934])&&(_0x3de539=(_0x46ecb8?_0x191241(_0x1ffdaa,_0x578105,_0x3de539):_0x191241(_0x3de539))||_0x3de539);return _0x46ecb8&&_0x3de539&&Vs(_0x1ffdaa,_0x578105,_0x3de539),_0x3de539;},Re=(_0x3deabc,_0xc2b4ce)=>(_0x35d6be,_0x44a767)=>_0xc2b4ce(_0x35d6be,_0x44a767,_0x3deabc);let Z=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f6152,_0x332ad9,_0x1c52ab){const _0x257f01=_0x30e940;super(),u(this,'_entities',new Map()),u(this,_0x257f01(0x230),new v['Subject']()),(this[_0x257f01(0x43f)]=_0x1f6152,this[_0x257f01(0x137)]=_0x332ad9,this[_0x257f01(0x20d)]=_0x1c52ab,this[_0x257f01(0x2eb)]());}[_0x30e940(0xc6)](){const _0x1f07f1=_0x30e940;super['dispose'](),this['_entityInit$']['complete'](),this[_0x1f07f1(0x200)][_0x1f07f1(0x277)](_0x314e2d=>_0x314e2d['dispose']());}[_0x30e940(0x135)](_0xa4a087){const _0x4e93f9=_0x30e940;return this['_entities'][_0x4e93f9(0x45c)](_0xa4a087)?this['_entities'][_0x4e93f9(0x1f0)](_0xa4a087)[_0x4e93f9(0x3a6)]:this[_0x4e93f9(0x230)]['pipe'](v[_0x4e93f9(0x20a)](_0x50d507=>_0x50d507[_0x4e93f9(0x1e6)]===_0xa4a087),v[_0x4e93f9(0xa7)](_0x2da2ff=>_0x2da2ff['cursorInfo$']));}[_0x30e940(0x2eb)](){const _0x1839f8=_0x30e940;this[_0x1839f8(0x43f)][_0x1839f8(0xc5)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](async _0x3420a9=>{const _0x33db02=_0x1839f8,_0x5ed01e=_0x3420a9['getUnitId'](),_0x493db9=await this[_0x33db02(0x353)](_0x5ed01e);this[_0x33db02(0x230)][_0x33db02(0x46e)](_0x493db9),this[_0x33db02(0x200)][_0x33db02(0x346)](_0x5ed01e,_0x493db9);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))['pipe'](v['filter'](_0x479a6d=>!_0x479a6d[_0x1839f8(0x280)]()[_0x1839f8(0xae)]('__')))[_0x1839f8(0x196)](async _0x46ffed=>{const _0x2d17bf=_0x1839f8,_0x362873=_0x46ffed['getUnitId'](),_0xbff54c=await this[_0x2d17bf(0x2c1)](_0x362873);this['_entityInit$'][_0x2d17bf(0x46e)](_0xbff54c),this[_0x2d17bf(0x200)]['set'](_0x362873,_0xbff54c);}),v[_0x1839f8(0xbd)](this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)]),this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)]))['pipe'](v[_0x1839f8(0x3a8)](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](_0x5b2300=>{const _0x4247bf=_0x1839f8,_0x48d43f=_0x5b2300[_0x4247bf(0x280)](),_0x47b8dc=this['_entities']['get'](_0x48d43f);_0x47b8dc&&(_0x47b8dc[_0x4247bf(0xc6)](),this[_0x4247bf(0x200)]['delete'](_0x48d43f));});}async[_0x30e940(0x353)](_0x5e28ad){const _0x4cfb03=_0x30e940,_0x54e858=await this[_0x4cfb03(0x20d)]['requireSession'](_0x5e28ad),_0x2e765b=this[_0x4cfb03(0x137)][_0x4cfb03(0x1c0)](Le,_0x5e28ad,_0x54e858);return _0x2e765b[_0x4cfb03(0x30e)](),_0x2e765b;}async[_0x30e940(0x2c1)](_0x5c1726){const _0x203cb8=_0x30e940,_0x22eddf=await this[_0x203cb8(0x20d)][_0x203cb8(0x470)](_0x5c1726),_0x49672b=this[_0x203cb8(0x137)]['createInstance'](Ae,_0x5c1726,_0x22eddf);return _0x49672b['init'](),_0x49672b;}};Z=Fs([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Z),Re(0x0,o[_0x30e940(0x233)]),Re(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Re(0x2,o[_0x30e940(0xdf)](exports['CollaborationSessionService']))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x40a9c3,_0x110002){const _0x561ef1=_0x30e940;let {radius:_0x4f75f1,width:_0x1251f8,height:_0x3a3be6}=_0x110002;_0x4f75f1=_0x4f75f1!=null?_0x4f75f1:0x0,_0x1251f8=_0x1251f8!=null?_0x1251f8:0x1e,_0x3a3be6=_0x3a3be6!=null?_0x3a3be6:0x1e;let _0x1283b8=0x0,_0x480311=0x0,_0x101367=0x0;_0x1283b8=_0x480311=_0x101367=Math[_0x561ef1(0x2ac)](_0x4f75f1,_0x1251f8/0x2,_0x3a3be6/0x2),_0x40a9c3[_0x561ef1(0x18e)](),_0x40a9c3[_0x561ef1(0x308)](_0x1283b8,0x0),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8-_0x480311,0x0),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x480311,_0x480311,_0x480311,Math['PI']*0x3/0x2,0x0,!0x1),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8,_0x3a3be6-_0x101367),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x101367,_0x3a3be6-_0x101367,_0x101367,0x0,Math['PI']/0x2,!0x1),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x3a3be6),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x1283b8),_0x40a9c3[_0x561ef1(0x2b2)](_0x1283b8,_0x1283b8,_0x1283b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40a9c3[_0x561ef1(0x423)](),_0x110002[_0x561ef1(0xec)]&&(_0x40a9c3[_0x561ef1(0x126)](),_0x40a9c3[_0x561ef1(0x2f8)]=_0x110002['fill'],_0x110002['fillRule']==='evenodd'?_0x40a9c3['fill']('evenodd'):_0x40a9c3[_0x561ef1(0xec)](),_0x40a9c3[_0x561ef1(0x295)]());}class Ce extends b['Shape']{constructor(_0x446aee,_0x4ea86e){const _0x47a779=_0x30e940;super(_0x446aee,_0x4ea86e),u(this,_0x47a779(0x1ea)),u(this,_0x47a779(0x450)),(this[_0x47a779(0x1ea)]=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x1ea)],this['text']=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x450)]);}static['drawWith'](_0x3e1423,_0xc07273){const _0x5d41df=_0x30e940,{text:_0x141fb6,color:_0x443a88}=_0xc07273;_0x3e1423['save'](),_0x3e1423[_0x5d41df(0x3b3)]=_0x5d41df(0x37e);const _0x2c0816=_0x3e1423['measureText'](_0x141fb6)[_0x5d41df(0x44e)],_0x58d718=Math[_0x5d41df(0x2ac)](_0x2c0816+0x2*Oe,it);Ys(_0x3e1423,{'height':le,'radius':0x4,'width':_0x58d718,'fill':_0x443a88,'evented':!0x1}),_0x3e1423[_0x5d41df(0x2f8)]=_0x5d41df(0x378);const _0x2f9b02=Oe,_0x44f2a7=le-Gs,_0x343ae5=it-0x2*Oe;if(_0x2c0816>_0x343ae5){let _0x59322e='',_0x2dd9c6=0x0;for(const _0x474a87 of _0x141fb6){const _0x2d4bc4=_0x3e1423[_0x5d41df(0x43a)](_0x474a87)[_0x5d41df(0x44e)];if(_0x2dd9c6+_0x2d4bc4<=_0x343ae5-_0x3e1423[_0x5d41df(0x43a)](_0x5d41df(0x27d))[_0x5d41df(0x44e)])_0x59322e+=_0x474a87,_0x2dd9c6+=_0x2d4bc4;else{_0x59322e+=_0x5d41df(0x27d);break;}}_0x3e1423[_0x5d41df(0x3b0)](_0x59322e,_0x2f9b02,_0x44f2a7);}else _0x3e1423['fillText'](_0x141fb6,_0x2f9b02,_0x44f2a7);_0x3e1423['restore']();}['_draw'](_0x4ef81e){const _0x3222d7=_0x30e940;Ce[_0x3222d7(0x174)](_0x4ef81e,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x30e940(0x3e6)]{constructor(_0x417306,_0x464f12){const _0x166a97=_0x30e940;super(_0x417306,_0x464f12),u(this,_0x166a97(0x387)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,'_name',''),u(this,_0x166a97(0xbf),_0x166a97(0x1ef)),u(this,'_backgroundColor'),(_0x464f12&&this['setShapeProps'](_0x464f12),this[_0x166a97(0x2be)][_0x166a97(0x246)](()=>this[_0x166a97(0x213)]({'hovered':!0x0})),this['onPointerLeave$'][_0x166a97(0x246)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x30e940(0x213)](_0x25c9c6){const _0xa8d06e=_0x30e940;var _0x4940e4,_0x506ac5,_0x46cc83,_0xca70d8,_0x22f61d,_0x10233e;this[_0xa8d06e(0x387)]=(_0x4940e4=_0x25c9c6[_0xa8d06e(0x1ea)])!=null?_0x4940e4:this['_color'],this['_hovered']=(_0x506ac5=_0x25c9c6[_0xa8d06e(0x391)])!=null?_0x506ac5:this[_0xa8d06e(0x2db)],this[_0xa8d06e(0xe7)]=(_0x46cc83=_0x25c9c6[_0xa8d06e(0x3a9)])!=null?_0x46cc83:this[_0xa8d06e(0xe7)],this[_0xa8d06e(0x285)]=(_0xca70d8=_0x25c9c6[_0xa8d06e(0x3a7)])!=null?_0xca70d8:this[_0xa8d06e(0x285)],this[_0xa8d06e(0xbf)]=(_0x22f61d=_0x25c9c6[_0xa8d06e(0x3d9)])!=null?_0x22f61d:this[_0xa8d06e(0xbf)],this[_0xa8d06e(0x454)]=(_0x10233e=_0x25c9c6[_0xa8d06e(0x238)])!=null?_0x10233e:this[_0xa8d06e(0x454)],this['transformByState']({'width':_0x25c9c6['width'],'height':_0x25c9c6[_0xa8d06e(0x3bd)]});}[_0x30e940(0x3b4)](_0x2954ff){const _0x214ed9=_0x30e940,{row:_0x527bd3,column:_0x494879}=_0x2954ff;if(_0x527bd3>=this[_0x214ed9(0xe7)][_0x214ed9(0x2a1)]&&_0x527bd3<=this['_range'][_0x214ed9(0x214)]&&_0x494879>=this[_0x214ed9(0xe7)][_0x214ed9(0x3a0)]&&_0x494879<=this['_range'][_0x214ed9(0x2c5)]){this[_0x214ed9(0x213)]({'hovered':!0x0});return;}this[_0x214ed9(0x213)]({'hovered':!0x1});}['triggerDblclick'](_0x3758cc){return!0x1;}[_0x30e940(0x3ce)](_0x8af641){const _0x44f621=_0x30e940;b[_0x44f621(0x88)][_0x44f621(0x174)](_0x8af641,{'width':this[_0x44f621(0x44e)],'height':this[_0x44f621(0x3bd)],'strokeWidth':Xs,'stroke':this[_0x44f621(0x387)],'evented':!0x1,'fill':this[_0x44f621(0x454)]}),this['_hovered']&&(_0x8af641[_0x44f621(0x126)](),_0x8af641['transform'](0x1,0x0,0x0,0x1,this[_0x44f621(0x44e)],this[_0x44f621(0xbf)]===_0x44f621(0x165)?0x0:-le),Ce[_0x44f621(0x174)](_0x8af641,{'text':this[_0x44f621(0x285)],'color':this[_0x44f621(0x387)]}),_0x8af641[_0x44f621(0x295)]());}}var qs=Object['defineProperty'],zs=Object[_0x30e940(0x1a2)],Js=(_0x3c7f6f,_0x176b26,_0x26ee22,_0x490a97)=>{for(var _0x64c173=_0x490a97>0x1?void 0x0:_0x490a97?zs(_0x176b26,_0x26ee22):_0x176b26,_0x401149=_0x3c7f6f['length']-0x1,_0x318ba7;_0x401149>=0x0;_0x401149--)(_0x318ba7=_0x3c7f6f[_0x401149])&&(_0x64c173=(_0x490a97?_0x318ba7(_0x176b26,_0x26ee22,_0x64c173):_0x318ba7(_0x64c173))||_0x64c173);return _0x490a97&&_0x64c173&&qs(_0x176b26,_0x26ee22,_0x64c173),_0x64c173;},De=(_0x49dcbd,_0x31f842)=>(_0x53cf5e,_0x48b22)=>_0x31f842(_0x53cf5e,_0x48b22,_0x49dcbd);const Zs=0x1389;let je=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f02d7,_0x8a073,_0x1870cf,_0xf17ea0){const _0x58b7b1=_0x30e940;super(),u(this,_0x58b7b1(0x3f8),new Set()),u(this,'_lastPointer',null),(this[_0x58b7b1(0x21f)]=_0x1f02d7,this[_0x58b7b1(0xb3)]=_0x8a073,this['_collabCursorController']=_0x1870cf,this['_themeService']=_0xf17ea0,this[_0x58b7b1(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x440416=_0x30e940;this['_sheetSkeletonManagerService'][_0x440416(0x433)][_0x440416(0x2a9)](E['takeUntil'](this['dispose$']),E[_0x440416(0xa7)](_0x378d19=>{const _0x21f6fb=_0x440416;if(_0x378d19){const _0x160cba=_0x378d19[_0x21f6fb(0x410)];return v[_0x21f6fb(0x24b)](this[_0x21f6fb(0xcd)][_0x21f6fb(0x135)](this['_context'][_0x21f6fb(0x424)]),this['_themeService']['currentTheme$'])[_0x21f6fb(0x2a9)](E[_0x21f6fb(0x120)](([_0x50e0d3,_0x44a4a3])=>{const _0x259915=new Map();return _0x50e0d3['forEach']((_0x26b0da,_0x3763c4)=>{const _0x3995cc=_0x3b20;if(_0x26b0da['sheetID']===_0x160cba){const _0xbacbe2={..._0x26b0da};_0xbacbe2[_0x3995cc(0x1ea)]=_0x44a4a3[_0x26b0da['color']],_0x259915['set'](_0x3763c4,_0xbacbe2);}}),{'skeleton':_0x378d19,'cursors':_0x259915};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x440416(0x196)](({skeleton:_0x4fb68e,cursors:_0x59be96})=>{const _0x4285e1=_0x440416;this[_0x4285e1(0x269)](),_0x4fb68e&&this[_0x4285e1(0x37f)](_0x4fb68e,_0x59be96);}),this[_0x440416(0xb3)]['currentSkeleton$'][_0x440416(0x196)](_0x5749e4=>{const _0x365e8d=_0x440416;if(_0x5749e4==null)return;const {skeleton:_0x45ae1e}=_0x5749e4,{scene:_0x220579}=this['_context'];_0x220579[_0x365e8d(0x329)][_0x365e8d(0x246)](xe(_0x325444=>{const _0x5fe68=_0x365e8d;var _0x19ab26,_0x31439d;const {offsetX:_0x11036a,offsetY:_0x3002d0}=_0x325444,{x:_0x5a17a6,y:_0x49e168}=_0x220579[_0x5fe68(0x440)](b[_0x5fe68(0x2ee)]['FromArray']([_0x11036a,_0x3002d0])),{scaleX:_0xd56d85,scaleY:_0xc84e8b}=_0x220579[_0x5fe68(0x320)](),_0x15f587=_0x220579['getViewport'](J['VIEWPORT_KEY'][_0x5fe68(0x113)]),_0x1bd287=_0x220579[_0x5fe68(0x300)](b['Vector2'][_0x5fe68(0x131)]([_0x5a17a6,_0x49e168]),_0x15f587),_0x2f0616=_0x45ae1e[_0x5fe68(0x292)](_0x11036a,_0x3002d0,_0xd56d85,_0xc84e8b,_0x1bd287);((_0x19ab26=this[_0x5fe68(0x39e)])==null?void 0x0:_0x19ab26['column'])===_0x2f0616[_0x5fe68(0x345)]&&((_0x31439d=this['_lastPointer'])==null?void 0x0:_0x31439d[_0x5fe68(0x1f8)])===_0x2f0616[_0x5fe68(0x1f8)]||this[_0x5fe68(0x3f8)]['forEach'](_0x4f6127=>{const _0x32b837=_0x5fe68;_0x4f6127[_0x32b837(0x3b4)](_0x2f0616);});},0x64));});}[_0x30e940(0x37f)](_0x412a6e,_0x2b9acf){const _0x1bd90b=_0x30e940;var _0x19c515;const _0x48c30a=(_0x19c515=this[_0x1bd90b(0xb3)][_0x1bd90b(0x29c)]())==null?void 0x0:_0x19c515[_0x1bd90b(0x155)];if(!_0x48c30a)return;const _0x109912=this['_getSheetObject']();if(!_0x109912)return;this[_0x1bd90b(0x3f8)]['forEach'](_0x8720a6=>{_0x8720a6['makeDirty']();});const {scene:_0x16202b}=_0x109912,_0x8ed0d2=Qs(Array[_0x1bd90b(0x16d)](_0x2b9acf[_0x1bd90b(0x14e)]()))[_0x1bd90b(0x120)](_0x3fa39a=>{const _0x597d04=_0x1bd90b,{color:_0x49c12f,range:_0x56fa46,name:_0x47576c,selection:_0x247800,sheetID:_0x20a148}=_0x3fa39a,{startColumn:_0x400bf7,startRow:_0x136d71,endColumn:_0x57f79f,endRow:_0x589ceb}=_0x56fa46,_0x1f90e8=J[_0x597d04(0x117)](_0x136d71,_0x400bf7,_0x16202b,_0x48c30a),_0x414752=J[_0x597d04(0x117)](_0x589ceb,_0x57f79f,_0x16202b,_0x48c30a),{columnHeaderHeightAndMarginTop:_0x4a2620}=_0x48c30a,{startX:_0x5264c8,startY:_0x33ddcb}=_0x1f90e8,{endX:_0x519330,endY:_0x945a8d}=_0x414752,_0x569b47=_0x519330-_0x5264c8,_0x271e34=_0x945a8d-_0x33ddcb,_0x18295e={'labelPosition':_0x33ddcb-_0x4a2620>=le?_0x597d04(0x1ef):'bottom','sheetID':_0x20a148,'range':_0x56fa46,'color':_0x49c12f,'name':_0x47576c,'selection':_0x247800,'left':_0x5264c8,'top':_0x33ddcb,'width':_0x569b47,'height':_0x271e34,'evented':!0x1,'zIndex':Zs};return new Rt(_0x47576c,_0x18295e);});_0x16202b[_0x1bd90b(0x264)](_0x8ed0d2,Ks),this['_cursors']=new Set(_0x8ed0d2);}[_0x30e940(0x269)](){const _0x1b7ebd=_0x30e940;var _0x5bf668;(_0x5bf668=this['_cursors'])==null||_0x5bf668[_0x1b7ebd(0x277)](_0x2efdaa=>_0x2efdaa[_0x1b7ebd(0xc6)]());}[_0x30e940(0x15e)](){const _0x59a3c5=_0x30e940;return J[_0x59a3c5(0x1b1)](this[_0x59a3c5(0x21f)][_0x59a3c5(0x1d0)],this[_0x59a3c5(0x21f)]);}};je=Js([De(0x1,o[_0x30e940(0xdf)](J['SheetSkeletonManagerService'])),De(0x2,o[_0x30e940(0xdf)](Z)),De(0x3,o[_0x30e940(0xdf)](o['ThemeService']))],je);function Qs(_0xbcbbdb){const _0x2ab0aa=_0x30e940,_0x5e375e=new Map();return _0xbcbbdb[_0x2ab0aa(0x277)](_0x44733a=>{const _0x461aae=_0x2ab0aa;if(_0x5e375e[_0x461aae(0x45c)](_0x44733a['selection'])){const _0x2a2b51=_0x5e375e['get'](_0x44733a[_0x461aae(0x3e2)]);_0x2a2b51[_0x461aae(0x3a7)]+=',\x20'+_0x44733a['name'];}else _0x5e375e[_0x461aae(0x346)](_0x44733a[_0x461aae(0x3e2)],_0x44733a);}),Array['from'](_0x5e375e['values']());}var N=function(){const _0x46e080=_0x30e940;return N=Object[_0x46e080(0x101)]||function(_0x280bf8){const _0x3142bd=_0x46e080;for(var _0x2c4073,_0x2e2cb2=0x1,_0x34ff9a=arguments['length'];_0x2e2cb2<_0x34ff9a;_0x2e2cb2++){_0x2c4073=arguments[_0x2e2cb2];for(var _0x4d3cc6 in _0x2c4073)Object[_0x3142bd(0x337)]['hasOwnProperty'][_0x3142bd(0xe3)](_0x2c4073,_0x4d3cc6)&&(_0x280bf8[_0x4d3cc6]=_0x2c4073[_0x4d3cc6]);}return _0x280bf8;},N[_0x46e080(0x3cf)](this,arguments);},ei=function(_0x56b742,_0x53c4a4){const _0x4b61fd=_0x30e940;var _0x588625={};for(var _0x26a9fa in _0x56b742)Object['prototype'][_0x4b61fd(0x222)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa)&&_0x53c4a4['indexOf'](_0x26a9fa)<0x0&&(_0x588625[_0x26a9fa]=_0x56b742[_0x26a9fa]);if(_0x56b742!=null&&typeof Object[_0x4b61fd(0x323)]==_0x4b61fd(0x2ff)){for(var _0x522bb8=0x0,_0x26a9fa=Object[_0x4b61fd(0x323)](_0x56b742);_0x522bb8<_0x26a9fa[_0x4b61fd(0x3b8)];_0x522bb8++)_0x53c4a4[_0x4b61fd(0x208)](_0x26a9fa[_0x522bb8])<0x0&&Object[_0x4b61fd(0x337)][_0x4b61fd(0x1d4)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa[_0x522bb8])&&(_0x588625[_0x26a9fa[_0x522bb8]]=_0x56b742[_0x26a9fa[_0x522bb8]]);}return _0x588625;},Ge=y['forwardRef'](function(_0x2259bb,_0x5ce95a){const _0x4cbb13=_0x30e940;var _0x8f7778=_0x2259bb['icon'],_0x1aa675=_0x2259bb['id'],_0x194840=_0x2259bb[_0x4cbb13(0x243)],_0x7671e8=_0x2259bb['extend'],_0x16760d=ei(_0x2259bb,[_0x4cbb13(0xeb),'id','className','extend']),_0x50cc1b=_0x4cbb13(0x19d)[_0x4cbb13(0x318)](_0x1aa675,'\x20')[_0x4cbb13(0x318)](_0x194840||'')['trim'](),_0x33cc4d=y['useRef']('_'[_0x4cbb13(0x318)](ii()));return Ot(_0x8f7778,''[_0x4cbb13(0x318)](_0x1aa675),{'defIds':_0x8f7778[_0x4cbb13(0x429)],'idSuffix':_0x33cc4d['current']},N({'ref':_0x5ce95a,'className':_0x50cc1b},_0x16760d),_0x7671e8);});function Ot(_0x953fd2,_0x5672a5,_0x562709,_0x1252a0,_0x3b26ba){const _0x5d5279=_0x30e940;return y[_0x5d5279(0x3a5)](_0x953fd2[_0x5d5279(0x9e)],N(N({'key':_0x5672a5},ti(_0x953fd2,_0x562709,_0x3b26ba)),_0x1252a0),(si(_0x953fd2,_0x562709)[_0x5d5279(0x335)]||[])[_0x5d5279(0x120)](function(_0x12e5e2,_0x30bbf1){const _0x3889ee=_0x5d5279;return Ot(_0x12e5e2,''[_0x3889ee(0x318)](_0x5672a5,'-')[_0x3889ee(0x318)](_0x953fd2[_0x3889ee(0x9e)],'-')[_0x3889ee(0x318)](_0x30bbf1),_0x562709,void 0x0,_0x3b26ba);}));}function ti(_0x17b0b5,_0x5632c6,_0x12095e){const _0x358818=_0x30e940;var _0x41353c=N({},_0x17b0b5['attrs']);_0x12095e!=null&&_0x12095e[_0x358818(0x459)]&&_0x41353c['fill']===_0x358818(0x459)&&(_0x41353c[_0x358818(0xec)]=_0x12095e[_0x358818(0x459)]);var _0x41400b=_0x5632c6[_0x358818(0x429)];return!_0x41400b||_0x41400b[_0x358818(0x3b8)]===0x0||(_0x17b0b5[_0x358818(0x9e)]==='use'&&_0x41353c['xlink:href']&&(_0x41353c['xlink:href']=_0x41353c[_0x358818(0x148)]+_0x5632c6[_0x358818(0x27f)]),Object[_0x358818(0x43b)](_0x41353c)[_0x358818(0x277)](function(_0x3b8b2c){const _0x53f3c4=_0x358818;var _0x2ab1fa=_0x3b8b2c[0x0],_0x27dcf3=_0x3b8b2c[0x1];typeof _0x27dcf3==_0x53f3c4(0x1d3)&&(_0x41353c[_0x2ab1fa]=_0x27dcf3[_0x53f3c4(0x283)](/url\(#(.*)\)/,_0x53f3c4(0x452)[_0x53f3c4(0x318)](_0x5632c6[_0x53f3c4(0x27f)],')')));})),_0x41353c;}function si(_0x4aebfc,_0x5dc4d8){const _0x5283cb=_0x30e940;var _0x41ee60,_0x23cb73=_0x5dc4d8[_0x5283cb(0x429)];return!_0x23cb73||_0x23cb73[_0x5283cb(0x3b8)]===0x0?_0x4aebfc:_0x4aebfc[_0x5283cb(0x9e)]==='defs'&&(!((_0x41ee60=_0x4aebfc[_0x5283cb(0x335)])===null||_0x41ee60===void 0x0)&&_0x41ee60[_0x5283cb(0x3b8)])?N(N({},_0x4aebfc),{'children':_0x4aebfc[_0x5283cb(0x335)][_0x5283cb(0x120)](function(_0x24fcbf){const _0x5265f1=_0x5283cb;return typeof _0x24fcbf[_0x5265f1(0xfb)]['id']==_0x5265f1(0x1d3)&&_0x23cb73&&_0x23cb73[_0x5265f1(0x208)](_0x24fcbf[_0x5265f1(0xfb)]['id'])>-0x1?N(N({},_0x24fcbf),{'attrs':N(N({},_0x24fcbf[_0x5265f1(0xfb)]),{'id':_0x24fcbf[_0x5265f1(0xfb)]['id']+_0x5dc4d8[_0x5265f1(0x27f)]})}):_0x24fcbf;})}):_0x4aebfc;}function ii(){const _0x38afa5=_0x30e940;return Math[_0x38afa5(0x3ca)]()[_0x38afa5(0x451)](0x24)[_0x38afa5(0x22e)](0x2,0x8);}Ge[_0x30e940(0x225)]=_0x30e940(0x46a);var ni={'tag':'svg','attrs':{'fill':'none','viewBox':_0x30e940(0xbc),'width':_0x30e940(0x1b8),'height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x30e940(0xb2)},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x309),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':_0x30e940(0x24c),'strokeWidth':1.2}}]},{'tag':_0x30e940(0x3f4),'attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':_0x30e940(0x98)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Dt=y[_0x30e940(0xed)](function(_0x76ee13,_0x2139d3){const _0x536884=_0x30e940;return y[_0x536884(0x3a5)](Ge,Object[_0x536884(0x101)]({},_0x76ee13,{'id':_0x536884(0x253),'ref':_0x2139d3,'icon':ni}));});Dt['displayName']='OffLineSingle';var ri={'tag':_0x30e940(0x446),'attrs':{'fill':'none','viewBox':_0x30e940(0x141),'width':'1em','height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x439),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':_0x30e940(0x32c)},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':'M0\x200H16V16H0z','transform':_0x30e940(0x365)}}]}]}],'defIds':[_0x30e940(0x32c)]},Pt=y[_0x30e940(0xed)](function(_0x23ff96,_0x14282e){const _0x5d6085=_0x30e940;return y['createElement'](Ge,Object[_0x5d6085(0x101)]({},_0x23ff96,{'id':_0x5d6085(0x307),'ref':_0x14282e,'icon':ri}));});Pt['displayName']='OnLineSingle';const oi=_0x30e940(0x144),ai=_0x30e940(0x138),ci=_0x30e940(0x16e),li='univer-online',hi='univer-offline',ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x49908b){const _0x21105f=_0x30e940;switch(_0x49908b){case D[_0x21105f(0x32d)]:return _0x21105f(0x291);case D['CONFLICT']:return _0x21105f(0x2c0);case D[_0x21105f(0x33d)]:return _0x21105f(0xfa);case D[_0x21105f(0x25e)]:return _0x21105f(0x465);case D[_0x21105f(0x28e)]:case D[_0x21105f(0x38c)]:case D[_0x21105f(0x27c)]:return _0x21105f(0x25f);case D[_0x21105f(0x9c)]:return _0x21105f(0x468);}}function Ut(_0x463763){const _0x1b860a=_0x30e940,{status$:_0x1b4434}=_0x463763,_0x2f605b=L[_0x1b860a(0xcf)](_0x1b4434,D[_0x1b860a(0x25e)]),_0x4155db=o['useDependency'](o[_0x1b860a(0xfe)]),_0x162d24=_0x2f605b!==D['OFFLINE'],_0x2d22ff=_0x4155db['t'](_i(_0x2f605b)),_0x38d544=kt(ne['onlineStatus'],{[ne[_0x1b860a(0x304)]]:_0x162d24,[ne[_0x1b860a(0x1cd)]]:!_0x162d24}),_0x178d1a=_0x162d24?y[_0x1b860a(0x3a5)](Pt,null):y[_0x1b860a(0x3a5)](Dt,null);return y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':_0x38d544},y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne[_0x1b860a(0x257)]},_0x178d1a),y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne['onlineStatusTitle']},_0x2d22ff));}var ui=Object[_0x30e940(0x36c)],di=Object['getOwnPropertyDescriptor'],Si=(_0x57c8f4,_0x19867f,_0x154633,_0x4d8a9d)=>{for(var _0x498f30=_0x4d8a9d>0x1?void 0x0:_0x4d8a9d?di(_0x19867f,_0x154633):_0x19867f,_0x59e3b8=_0x57c8f4['length']-0x1,_0x486784;_0x59e3b8>=0x0;_0x59e3b8--)(_0x486784=_0x57c8f4[_0x59e3b8])&&(_0x498f30=(_0x4d8a9d?_0x486784(_0x19867f,_0x154633,_0x498f30):_0x486784(_0x498f30))||_0x498f30);return _0x4d8a9d&&_0x498f30&&ui(_0x19867f,_0x154633,_0x498f30),_0x498f30;},he=(_0x333a5a,_0x4f3f6e)=>(_0x302a4b,_0xad9344)=>_0x4f3f6e(_0x302a4b,_0xad9344,_0x333a5a);exports[_0x30e940(0x18b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x13aeff,_0x2e58cc,_0x49cc61,_0x42926c){const _0x562077=_0x30e940;super(),u(this,_0x562077(0x3f0),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this[_0x562077(0x43f)]=_0x13aeff,this[_0x562077(0x2a6)]=_0x2e58cc,this[_0x562077(0x137)]=_0x49cc61,this[_0x562077(0x46f)]=_0x42926c,this[_0x562077(0x151)](),this[_0x562077(0x384)]());}[_0x30e940(0x151)](){const _0x5fcd82=_0x30e940;this[_0x5fcd82(0x22c)](this[_0x5fcd82(0x2a6)][_0x5fcd82(0x426)](L['BuiltInUIPart']['HEADER_MENU'],()=>o['connectInjector'](vi({'status$':this[_0x5fcd82(0x3f0)][_0x5fcd82(0x16a)]()}),this[_0x5fcd82(0x137)])));}[_0x30e940(0x384)](){const _0x285828=_0x30e940;this[_0x285828(0x22c)](o[_0x285828(0xa1)](this['_univerInstanceService'][_0x285828(0x1a0)]['pipe'](v['switchMap'](()=>{const _0xe3b247=_0x285828,_0x239e40=this[_0xe3b247(0x43f)][_0xe3b247(0x469)]();return _0x239e40?this[_0xe3b247(0x46f)][_0xe3b247(0x231)](_0x239e40[_0xe3b247(0x280)]()):v['of'](null);}),v['switchMap'](_0x22e9c4=>_0x22e9c4?_0x22e9c4[_0x285828(0x3e0)]:v['of'](D[_0x285828(0x25e)])))[_0x285828(0x196)](_0xbb120=>{const _0x33fe2b=_0x285828;this[_0x33fe2b(0x3f0)][_0x33fe2b(0x46e)](_0xbb120);})));}},exports[_0x30e940(0x18b)]=Si([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x18b)]),he(0x0,o[_0x30e940(0x233)]),he(0x1,L[_0x30e940(0x442)]),he(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),he(0x3,o['Inject'](exports[_0x30e940(0xde)]))],exports[_0x30e940(0x18b)]);function vi(_0x17bbe0){const {status$:_0x40dfe1}=_0x17bbe0;return function(){const _0x8d4aee=_0x3b20;return y[_0x8d4aee(0x3a5)](Ut,{'status$':_0x40dfe1});};}const Ye=o[_0x30e940(0x16b)](_0x30e940(0x15c));var mi=Object[_0x30e940(0x36c)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x7231db,_0x173302,_0x2321ef,_0x5e3401)=>{const _0x249da8=_0x30e940;for(var _0x52d690=_0x5e3401>0x1?void 0x0:_0x5e3401?gi(_0x173302,_0x2321ef):_0x173302,_0x295453=_0x7231db[_0x249da8(0x3b8)]-0x1,_0x200fc1;_0x295453>=0x0;_0x295453--)(_0x200fc1=_0x7231db[_0x295453])&&(_0x52d690=(_0x5e3401?_0x200fc1(_0x173302,_0x2321ef,_0x52d690):_0x200fc1(_0x52d690))||_0x52d690);return _0x5e3401&&_0x52d690&&mi(_0x173302,_0x2321ef,_0x52d690),_0x52d690;},z=(_0x4beccb,_0x4f2c02)=>(_0xbddb59,_0x2397e9)=>_0x4f2c02(_0xbddb59,_0x2397e9,_0x4beccb);exports[_0x30e940(0x385)]=class extends o['RxDisposable']{constructor(_0x3f4a49,_0x3c01fe,_0x3960d0,_0x1aba87,_0x2f4500,_0x221f72){const _0x471ea9=_0x30e940;super(),this[_0x471ea9(0x11d)]=_0x3f4a49,this[_0x471ea9(0x198)]=_0x3c01fe,this[_0x471ea9(0x176)]=_0x3960d0,this[_0x471ea9(0x377)]=_0x1aba87,this[_0x471ea9(0x3ea)]=_0x2f4500,_0x221f72?_0x221f72==null||_0x221f72[_0x471ea9(0x24f)]()[_0x471ea9(0x9d)](()=>this[_0x471ea9(0x2eb)]()):(this['_logService'][_0x471ea9(0x293)](_0x471ea9(0x194),_0x471ea9(0x24d)),this[_0x471ea9(0x2eb)]());}async['_init'](){const _0x6f1d18=_0x30e940,_0x59868e=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x1d0)),_0x328923=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x312));if(!_0x59868e||!_0x328923){this[_0x6f1d18(0x198)][_0x6f1d18(0x293)](_0x6f1d18(0x194),_0x6f1d18(0x334));return;}switch(Number(_0x328923)){case j[_0x6f1d18(0x390)]:{const _0x58f91c=await this[_0x6f1d18(0x30c)](_0x59868e);this[_0x6f1d18(0x417)](_0x58f91c);break;}case j[_0x6f1d18(0x1f4)]:{await this[_0x6f1d18(0x415)](_0x59868e);break;}default:{this[_0x6f1d18(0x198)][_0x6f1d18(0xf0)](_0x6f1d18(0x194),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x30e940(0x417)](_0x2adfd9){const _0x94f32b=_0x30e940;await this[_0x94f32b(0x2f4)](_0x2adfd9),_0x2adfd9[_0x94f32b(0x3ac)][_0x94f32b(0x2a9)](v[_0x94f32b(0x3a8)](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](_0x37724a=>{const _0x4e3d0c=_0x94f32b;_0x37724a&&this[_0x4e3d0c(0xdb)](_0x37724a);}),this[_0x94f32b(0x11d)][_0x94f32b(0x2e3)][_0x94f32b(0x2a9)](v['takeUntil'](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](()=>this[_0x94f32b(0x2f4)](_0x2adfd9));}[_0x30e940(0xdb)](_0x440330,_0x32abdc=!0x1){const _0x276899=_0x30e940,_0x4b7d04=this[_0x276899(0x11d)][_0x276899(0x3e3)](_0x276899(0x36f));_0x440330[_0x276899(0x28d)]()!==_0x4b7d04&&this[_0x276899(0x11d)][_0x276899(0x383)](_0x276899(0x36f),_0x440330[_0x276899(0x28d)](),_0x32abdc);}async[_0x30e940(0x2f4)](_0xf22cc9){const _0x4469cd=_0x30e940;var _0x4dbfb2;const _0x1688ba=this[_0x4469cd(0x11d)]['getParam'](_0x4469cd(0x36f));if(!_0x1688ba||!_0xf22cc9[_0x4469cd(0x3f1)](_0x1688ba)){const _0x5c211c=_0xf22cc9[_0x4469cd(0x12a)]()[0x0],_0x124521=_0xf22cc9['getSheetBySheetId'](_0x5c211c);if(!_0x124521)return;this[_0x4469cd(0xdb)](_0x124521,!0x0),await this[_0x4469cd(0x176)]['executeCommand'](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x5c211c});return;}((_0x4dbfb2=_0xf22cc9[_0x4469cd(0x18f)]())==null?void 0x0:_0x4dbfb2['getSheetId']())!==_0x1688ba&&await this[_0x4469cd(0x176)][_0x4469cd(0x12d)](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x1688ba});}async[_0x30e940(0x30c)](_0x120cf3){const _0x1f7c70=_0x30e940;let _0x40bcc4=0x0;const _0x45b315=await this['_localCacheService'][_0x1f7c70(0x341)](_0x120cf3);return _0x45b315&&(_0x45b315[_0x1f7c70(0xf9)]||_0x45b315['mutations'][_0x1f7c70(0x3b8)]!==0x0)&&(_0x40bcc4=_0x45b315['rev']),_0x40bcc4===0x0&&this['_logService'][_0x1f7c70(0x293)](_0x1f7c70(0x194),_0x1f7c70(0x370)),this[_0x1f7c70(0x3ea)][_0x1f7c70(0x190)](_0x120cf3,_0x40bcc4);}async[_0x30e940(0x415)](_0x373c23){const _0x4ab854=_0x30e940;let _0x5392bc=0x0;const _0x2430bc=await this[_0x4ab854(0x377)]['loadOfflineData'](_0x373c23);return _0x2430bc&&(_0x2430bc[_0x4ab854(0xf9)]||_0x2430bc[_0x4ab854(0x95)][_0x4ab854(0x3b8)]!==0x0)&&(_0x5392bc=_0x2430bc['rev']),_0x5392bc===0x0&&this[_0x4ab854(0x198)][_0x4ab854(0x293)](_0x4ab854(0x194),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ab854(0x3ea)][_0x4ab854(0x3eb)](_0x373c23,_0x5392bc);}},exports[_0x30e940(0x385)]=fi([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x385)]),z(0x0,Ye),z(0x1,o[_0x30e940(0x1e7)]),z(0x2,o[_0x30e940(0x1c8)]),z(0x3,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),z(0x4,o[_0x30e940(0xdf)](_[_0x30e940(0x1d9)])),z(0x5,o[_0x30e940(0x96)](Bt['IRemoteInstanceService']))],exports[_0x30e940(0x385)]);var Ii=Object[_0x30e940(0x36c)],pi=Object[_0x30e940(0x1a2)],Ei=(_0x367f24,_0x317026,_0x595c86,_0x4ee402)=>{const _0x8f7e2a=_0x30e940;for(var _0xa2e6ad=_0x4ee402>0x1?void 0x0:_0x4ee402?pi(_0x317026,_0x595c86):_0x317026,_0x17970e=_0x367f24[_0x8f7e2a(0x3b8)]-0x1,_0xe84ec2;_0x17970e>=0x0;_0x17970e--)(_0xe84ec2=_0x367f24[_0x17970e])&&(_0xa2e6ad=(_0x4ee402?_0xe84ec2(_0x317026,_0x595c86,_0xa2e6ad):_0xe84ec2(_0xa2e6ad))||_0xa2e6ad);return _0x4ee402&&_0xa2e6ad&&Ii(_0x317026,_0x595c86,_0xa2e6ad),_0xa2e6ad;},nt=(_0x1ce933,_0x157c4d)=>(_0x20028d,_0xff16ca)=>_0x157c4d(_0x20028d,_0xff16ca,_0x1ce933);const Ci='DEFAULT_FILE_NAME',bi=_0x30e940(0x1fe);let ue=class extends o[_0x30e940(0x3c3)]{constructor(_0x495c91,_0x1a538d){const _0x247ca5=_0x30e940;super(),this[_0x247ca5(0x43f)]=_0x495c91,this['_configService']=_0x1a538d,this[_0x247ca5(0x2eb)]();}[_0x30e940(0x2eb)](){const _0xa97b83=_0x30e940;this[_0xa97b83(0x22c)](o['toDisposable'](this[_0xa97b83(0x43f)]['focused$'][_0xa97b83(0x196)](()=>{const _0x35622c=_0xa97b83;var _0x4f492e;const _0xea2b11=this[_0x35622c(0x43f)][_0x35622c(0x469)]();let _0x2a6b0b=(_0x4f492e=this[_0x35622c(0x160)][_0x35622c(0xfc)](Ci))!=null?_0x4f492e:bi;_0xea2b11 instanceof o['Workbook']&&(_0x2a6b0b=_0xea2b11[_0x35622c(0x3a7)]),document[_0x35622c(0x20c)]=_0x2a6b0b;})));}};ue=Ei([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x33a)],ue),nt(0x0,o[_0x30e940(0x233)]),nt(0x1,o[_0x30e940(0x306)])],ue);var Ti=Object['defineProperty'],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0x39ed07,_0x3adcbd,_0x975798,_0x4f0c07)=>{const _0x4a4d99=_0x30e940;for(var _0x14f859=_0x4f0c07>0x1?void 0x0:_0x4f0c07?Ri(_0x3adcbd,_0x975798):_0x3adcbd,_0x137a24=_0x39ed07[_0x4a4d99(0x3b8)]-0x1,_0x388cd3;_0x137a24>=0x0;_0x137a24--)(_0x388cd3=_0x39ed07[_0x137a24])&&(_0x14f859=(_0x4f0c07?_0x388cd3(_0x3adcbd,_0x975798,_0x14f859):_0x388cd3(_0x14f859))||_0x14f859);return _0x4f0c07&&_0x14f859&&Ti(_0x3adcbd,_0x975798,_0x14f859),_0x14f859;},rt=(_0x3ef988,_0x2176e5)=>(_0x4b2d50,_0x1e41ee)=>_0x2176e5(_0x4b2d50,_0x1e41ee,_0x3ef988);exports['SnapshotServerOverHTTPService']=class{constructor(_0x222d25,_0x1fa9af){this['_configService']=_0x222d25,this['_httpService']=_0x1fa9af;}async[_0x30e940(0x2e1)](_0x372d75,_0x1640f3){const _0x225fdc=_0x30e940;var _0x1fa254;const {unitID:_0x2363db,type:_0xde2f0f,revision:_0x1fa69a=0x0}=_0x1640f3,_0x2f286e=this[_0x225fdc(0x359)]()+'/'+_0xde2f0f+_0x225fdc(0x1ae)+_0x2363db+'/rev/'+_0x1fa69a,_0x24e121=(await this[_0x225fdc(0x19a)]['get'](_0x2f286e))[_0x225fdc(0x3db)],_0x597456=(_0x1fa254=_0x24e121['snapshot'])==null?void 0x0:_0x1fa254[_0x225fdc(0x2bb)];if(_0x597456){const _0x3de214=_0x597456==null?void 0x0:_0x597456['originalMeta'],_0xf607ab=_[_0x225fdc(0x28b)][_0x225fdc(0x249)](_[_0x225fdc(0x182)](_0x3de214));_0x597456[_0x225fdc(0x437)]=_0xf607ab,Object[_0x225fdc(0x43b)](_0x597456[_0x225fdc(0x2e9)])[_0x225fdc(0x277)](([,_0xdfea08])=>{const _0x41141a=_0x225fdc,_0x2d2584=_0xdfea08[_0x41141a(0x437)],_0xcaae5d=_[_0x41141a(0x28b)]['encode'](_['b64DecodeUnicode'](_0x2d2584));_0xdfea08[_0x41141a(0x437)]=_0xcaae5d;});}return _0x24e121;}async[_0x30e940(0x179)](_0x1cc65f,_0x311279){const _0x18d8c0=_0x30e940,{unitID:_0x181185,type:_0x883bc2,blockID:_0x13814e}=_0x311279,_0x4d869c=this['_getAPIPrefix']()+'/'+_0x883bc2+_0x18d8c0(0x1ae)+_0x181185+_0x18d8c0(0x226)+_0x13814e;return(await this[_0x18d8c0(0x19a)][_0x18d8c0(0x1f0)](_0x4d869c))[_0x18d8c0(0x3db)];}async[_0x30e940(0x34c)](_0x167528,_0x5c55ba){const _0xabc892=_0x30e940,{unitID:_0x5f4b19,type:_0x81b20f,from:_0x5a4f7f,to:_0xdd42c9}=_0x5c55ba,_0x4c1db1=this['_getAPIPrefix']()+'/'+_0x81b20f+'/unit/'+_0x5f4b19+_0xabc892(0x201)+_0x5a4f7f+_0xabc892(0x37a)+_0xdd42c9;return(await this[_0xabc892(0x19a)][_0xabc892(0x1f0)](_0x4c1db1))[_0xabc892(0x3db)];}[_0x30e940(0x359)](){const _0x21ad7a=_0x30e940;var _0x4339b7;return(_0x4339b7=this[_0x21ad7a(0x160)]['getConfig'](lt))!=null?_0x4339b7:this['_getAPIPrefix']();}[_0x30e940(0x183)](){const _0x3e0ca5=_0x30e940;var _0x3949fe;return(_0x3949fe=this[_0x3e0ca5(0x160)][_0x3e0ca5(0xfc)](ct))!=null?_0x3949fe:Vt;}async['getResourcesRequest'](_0x1ae43f,_0x3d3144){const _0x3ab54c=_0x30e940,_0x463feb=_0x3ab54c(0x2d7)+_0x3d3144['type']+_0x3ab54c(0x1ae)+_0x3d3144[_0x3ab54c(0x1e6)]+_0x3ab54c(0x388);return(await this[_0x3ab54c(0x19a)][_0x3ab54c(0x1f0)](_0x463feb,{'params':{'resourceId':JSON[_0x3ab54c(0x1be)](_0x3d3144[_0x3ab54c(0x26f)])}}))[_0x3ab54c(0x3db)];}[_0x30e940(0x32b)](){const _0x4f4fdd=_0x30e940;throw new Error(_0x4f4fdd(0x12f));}[_0x30e940(0x1a5)](){const _0x1db1e0=_0x30e940;throw new Error(_0x1db1e0(0x12f));}[_0x30e940(0x472)](){const _0x42459c=_0x30e940;throw new Error(_0x42459c(0x12f));}},exports[_0x30e940(0x41c)]=Oi([rt(0x0,o[_0x30e940(0x306)]),rt(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x181)]))],exports['SnapshotServerOverHTTPService']);var Di=Object[_0x30e940(0x36c)],Pi=Object[_0x30e940(0x1a2)],Ui=(_0x4706b2,_0x595ac1,_0x1fccd0,_0x1b5387)=>{for(var _0x1144b0=_0x1b5387>0x1?void 0x0:_0x1b5387?Pi(_0x595ac1,_0x1fccd0):_0x595ac1,_0x52ef84=_0x4706b2['length']-0x1,_0x41dd71;_0x52ef84>=0x0;_0x52ef84--)(_0x41dd71=_0x4706b2[_0x52ef84])&&(_0x1144b0=(_0x1b5387?_0x41dd71(_0x595ac1,_0x1fccd0,_0x1144b0):_0x41dd71(_0x1144b0))||_0x1144b0);return _0x1b5387&&_0x1144b0&&Di(_0x595ac1,_0x1fccd0,_0x1144b0),_0x1144b0;},re=(_0x214b89,_0x3aef2c)=>(_0x1ce841,_0x3f9a45)=>_0x3aef2c(_0x1ce841,_0x3f9a45,_0x214b89);let $e=class extends o[_0x30e940(0x23b)]{constructor(_0x5bb06e,_0x31d801,_0x1967b9,_0x3a4dd2,_0x26ab61){const _0xf15f7a=_0x30e940;super(_0x5bb06e,_0x31d801,_0x1967b9),this['_transformService']=_0x3a4dd2,this[_0xf15f7a(0x198)]=_0x26ab61;}[_0x30e940(0xa6)](_0x290c88,_0x40e1f1){const _0xba57a4=_0x30e940,_0x22c2a6=this[_0xba57a4(0x94)](_0x290c88);if(_0x22c2a6)try{const _0x369bb2=this[_0xba57a4(0xd4)](_0x22c2a6,_0x40e1f1);this['_substituteUndoStack'](_0x290c88,_0x369bb2);}catch(_0x2b5296){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0xba57a4(0x152),_0x2b5296),this[_0xba57a4(0x367)](_0x290c88);}const _0x40685d=this[_0xba57a4(0x399)](_0x290c88);if(_0x40685d)try{const _0x1fa0b6=this[_0xba57a4(0xd4)](_0x40685d,_0x40e1f1);this[_0xba57a4(0xba)](_0x290c88,_0x1fa0b6);}catch(_0x2d07ae){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0x2d07ae),this[_0xba57a4(0x3c1)](_0x290c88);}}['_clearUndo'](_0x1ac210){const _0x322718=_0x30e940,_0x3784f5=this['_getUndoStack'](_0x1ac210);_0x3784f5&&(_0x3784f5[_0x322718(0x3b8)]=0x0,this[_0x322718(0x268)]());}['_clearRedo'](_0x3b8679){const _0x4def6b=_0x30e940,_0x3b8d50=this[_0x4def6b(0x399)](_0x3b8679);_0x3b8d50&&(_0x3b8d50[_0x4def6b(0x3b8)]=0x0,this[_0x4def6b(0x268)]());}[_0x30e940(0x290)](_0x2c354e,_0xf3497b){const _0x4f0697=_0x30e940;this[_0x4f0697(0x14b)][_0x4f0697(0x346)](_0x2c354e,_0xf3497b),this[_0x4f0697(0x268)]();}['_substituteRedoStack'](_0xd6523e,_0x5433b0){const _0xa0746f=_0x30e940;this['_redoStacks'][_0xa0746f(0x346)](_0xd6523e,_0x5433b0),this['_updateStatus']();}[_0x30e940(0xd4)](_0x51e614,_0x103b21){const _0x1b5d68=_0x30e940,_0x1c8399=[];let _0x2bb1ff=_0x103b21,_0x11234a=_0x103b21;for(let _0x1f8d96=_0x51e614[_0x1b5d68(0x3b8)]-0x1;_0x1f8d96>=0x0;_0x1f8d96--){const {unitID:_0xf2277a,undoMutations:_0x5b6ceb,redoMutations:_0x1d8799}=_0x51e614[_0x1f8d96],_0x10859f=this[_0x1b5d68(0x3c0)]['transformMutationsWithChangeset'](_0x2bb1ff,_0x5b6ceb),_0x19e569=this[_0x1b5d68(0x3c0)][_0x1b5d68(0x1c3)](_0x11234a,_0x1d8799);if(_['isTransformMutationsWithChangesetFailure'](_0x10859f)||_[_0x1b5d68(0x2ec)](_0x19e569)){this[_0x1b5d68(0x198)][_0x1b5d68(0xf0)](_0x1b5d68(0x152),'transformStack\x20failed!',_0x10859f,_0x19e569);break;}_0x2bb1ff=_0x10859f[_0x1b5d68(0x1f6)],_0x11234a=_0x19e569[_0x1b5d68(0x1f6)],_0x1c8399[_0x1b5d68(0x220)]({'unitID':_0xf2277a,'undoMutations':_0x10859f[_0x1b5d68(0x163)],'redoMutations':_0x19e569[_0x1b5d68(0x163)]});}return _0x1c8399['reverse']();}};$e=Ui([re(0x0,o[_0x30e940(0x233)]),re(0x1,o['ICommandService']),re(0x2,o[_0x30e940(0x2da)]),re(0x3,_[_0x30e940(0x2ab)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x53e2c1=_0x30e940;super(),u(this,_0x53e2c1(0x2e3)),this[_0x53e2c1(0x2e3)]=v['fromEvent'](window,_0x53e2c1(0x1e0))['pipe'](v[_0x53e2c1(0x3a8)](this[_0x53e2c1(0x2b1)]),v[_0x53e2c1(0x3c5)](0x1),v[_0x53e2c1(0x39f)](void 0x0));}[_0x30e940(0x383)](_0x196461,_0x5c24ac,_0x5101c7=!0x1){const _0x3425ea=_0x30e940,_0x36b4ce=new URL(window[_0x3425ea(0x3de)][_0x3425ea(0xb8)]);_0x36b4ce[_0x3425ea(0x432)]['set'](_0x196461,_0x5c24ac),_0x5101c7?window['history'][_0x3425ea(0x175)]('','',_0x36b4ce[_0x3425ea(0x451)]()):window[_0x3425ea(0x263)][_0x3425ea(0x133)]('','',_0x36b4ce[_0x3425ea(0x451)]());}['removeParam'](_0x660f3e,_0x509a12=!0x1){const _0x10080e=_0x30e940,_0x18cd9e=new URL(window[_0x10080e(0x3de)][_0x10080e(0xb8)]);_0x18cd9e['searchParams'][_0x10080e(0x244)](_0x660f3e),_0x509a12?window[_0x10080e(0x263)][_0x10080e(0x175)]('','',_0x18cd9e['toString']()):window[_0x10080e(0x263)][_0x10080e(0x133)]('','',_0x18cd9e[_0x10080e(0x451)]());}[_0x30e940(0x3e3)](_0x34a851){const _0x15e0f2=_0x30e940;var _0x108d31;return(_0x108d31=new URL(window[_0x15e0f2(0x3de)][_0x15e0f2(0xb8)])[_0x15e0f2(0x432)][_0x15e0f2(0x1f0)](_0x34a851))!=null?_0x108d31:void 0x0;}}const Pe=_0x30e940(0x1e1),wi=_0x30e940(0x202),Mi=_0x30e940(0x1af),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x30e940(0x319);class ot{constructor(_0x404492,_0x3eec4f,_0x2fb599,_0x382c08){const _0x2c3c55=_0x30e940;u(this,'_shapes',[]),u(this,_0x2c3c55(0x15a),null),u(this,_0x2c3c55(0x1d6),null),u(this,_0x2c3c55(0xdc),null),u(this,_0x2c3c55(0x29b),null),u(this,_0x2c3c55(0x425),null),(this[_0x2c3c55(0x260)]=_0x404492,this[_0x2c3c55(0x1aa)]=_0x3eec4f,this['_docSkeleton']=_0x2fb599,this[_0x2c3c55(0x271)]=_0x382c08,this[_0x2c3c55(0x1eb)]());}set[_0x30e940(0x449)](_0x1b8b40){const _0x17be04=_0x30e940;_0x1b8b40?(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)]['hide'](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0x157)]()):(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)][_0x17be04(0x157)](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0xbe)]());}[_0x30e940(0xc6)](){const _0x580f56=_0x30e940;for(const _0x539016 of this[_0x580f56(0x3f5)])_0x539016[_0x580f56(0xc6)]();this['_textBubble']&&this['_textBubble'][_0x580f56(0xc6)](),this[_0x580f56(0xdc)]&&this['_anchorDot'][_0x580f56(0xc6)](),this['_anchor']&&this['_anchor'][_0x580f56(0xc6)](),this[_0x580f56(0x425)]&&this[_0x580f56(0x425)]();}[_0x30e940(0x1eb)](){const _0x591b04=_0x30e940;var _0x4c30d1;const {_docSkeleton:_0x34bd9d,_document:_0x2e9856}=this,{color:_0x3b8912,name:_0x19100f,ranges:_0x4b310c}=this[_0x591b04(0x260)],_0x39e92d=_0x2e9856[_0x591b04(0x1a3)](),{docsLeft:_0x3aff84,docsTop:_0x51096f}=_0x39e92d,_0x56d369=new b[(_0x591b04(0x2e4))](_0x39e92d,_0x34bd9d);for(const {startOffset:_0x4ff51f,endOffset:_0xe4780a,collapsed:_0x25eb3f,isActive:_0x44aa8a}of _0x4b310c){const _0x5236b2=_0x34bd9d['findNodePositionByCharIndex'](_0x4ff51f),_0x1398e8=_0x34bd9d[_0x591b04(0x464)](_0xe4780a);if(_0x44aa8a){const {contentBoxPointGroup:_0x91f45e}=_0x56d369[_0x591b04(0x3be)](_0x1398e8,_0x1398e8);if(_0x91f45e[_0x591b04(0x3b8)]===0x0)continue;this['_drawAnchor'](_0x3b8912,_0x91f45e,_0x3aff84,_0x51096f,_0x19100f),this[_0x591b04(0x425)]=this[_0x591b04(0x1cc)]();}if(!_0x25eb3f&&_0x5236b2&&_0x1398e8){if(b[_0x591b04(0x44d)](_0x5236b2,_0x1398e8)){const _0x4737a1=new b[(_0x591b04(0x232))](_0x39e92d,_0x34bd9d),{pointGroup:_0xc3db9c}=(_0x4c30d1=_0x4737a1['getRangePointData'](_0x5236b2,_0x1398e8))!=null?_0x4c30d1:{};if(_0xc3db9c==null||_0xc3db9c[_0x591b04(0x3b8)]===0x0)continue;this[_0x591b04(0x97)](_0x3b8912,_0xc3db9c,_0x3aff84,_0x51096f);}else{const {contentBoxPointGroup:_0x4bb93d}=_0x56d369[_0x591b04(0x3be)](_0x5236b2,_0x1398e8);if(_0x4bb93d[_0x591b04(0x3b8)]===0x0)continue;this['_drawTextRange'](_0x3b8912,_0x4bb93d,_0x3aff84,_0x51096f);}}}}[_0x30e940(0x1f1)](_0xabf337,_0xe3739c,_0x57dedf,_0x64aa3f,_0x1d1ca8){const _0x59b4d9=_0x30e940,_0x56093b=this[_0x59b4d9(0x267)](_0xe3739c),{left:_0x217da7,top:_0x4ce852,height:_0x20ca89}=_0x56093b,_0x3532a1=this[_0x59b4d9(0x2b3)](),_0x21a47b=Ni/_0x3532a1,_0x3c5c27=new b['Rect'](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f,'height':_0x20ca89,'width':yi,'fill':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':_0x21a47b,'stroke':Li,'evented':!0x0});this[_0x59b4d9(0x15a)]=_0x3c5c27,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3c5c27,b[_0x59b4d9(0xf5)]);const _0x13cb84=new b[(_0x59b4d9(0x88))](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-Ue/0x2,'height':Ue,'width':Ue,'fill':_0xabf337||b['getColor'](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'evented':!0x1});this[_0x59b4d9(0xdc)]=_0x13cb84,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x13cb84,b[_0x59b4d9(0xf5)]);const _0x3fa108=new Ce(Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-le,'text':_0x1d1ca8,'color':_0xabf337});this[_0x59b4d9(0x1d6)]=_0x3fa108,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3fa108,b[_0x59b4d9(0xf5)]),this['_hover']=!0x1;}[_0x30e940(0x1cc)](){const _0x5afb35=_0x30e940,_0x4ff50b=this[_0x5afb35(0x15a)][_0x5afb35(0x2be)][_0x5afb35(0x246)](()=>{const _0x3534dd=_0x5afb35;this[_0x3534dd(0x449)]=!0x0;}),_0x4032d5=this[_0x5afb35(0x15a)][_0x5afb35(0x1b4)][_0x5afb35(0x246)](()=>{const _0x4d48b9=_0x5afb35;this['_hideTimer']&&clearTimeout(this[_0x4d48b9(0x29b)]),this['_hideTimer']=setTimeout(()=>{const _0x46e2f8=_0x4d48b9;this[_0x46e2f8(0x449)]=!0x1;},0x7d0);});return()=>{const _0x1fc95e=_0x5afb35;_0x4ff50b['unsubscribe'](),_0x4032d5[_0x1fc95e(0xe4)]();};}['_drawTextRange'](_0x2dffb8,_0x8eeb19,_0x1d5bb3,_0x2b05a0){const _0x20e1d9=_0x30e940,_0x1ce886=new o[(_0x20e1d9(0x90))](_0x2dffb8)[_0x20e1d9(0x39c)](0.2)[_0x20e1d9(0x45e)](),_0x57d6b0=new b[(_0x20e1d9(0x282))](wi+o['Tools']['generateRandomId'](oe),{'pointsGroup':_0x8eeb19,'fill':_0x1ce886||b[_0x20e1d9(0x14d)](o['COLORS'][_0x20e1d9(0x3b1)],0.2),'left':_0x1d5bb3,'top':_0x2b05a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20e1d9(0x3f5)]['push'](_0x57d6b0),this['_scene'][_0x20e1d9(0x33f)](_0x57d6b0,b['TEXT_RANGE_LAYER_INDEX']);}[_0x30e940(0x97)](_0x4d21b0,_0x434d3b,_0x19be6f,_0x1f55f9){const _0x393b7e=_0x30e940,_0x531be9=new o[(_0x393b7e(0x90))](_0x4d21b0)[_0x393b7e(0x39c)](0.2)[_0x393b7e(0x45e)](),_0x2ba23e=new b[(_0x393b7e(0x282))](Mi+o[_0x393b7e(0x235)][_0x393b7e(0x108)](oe),{'pointsGroup':_0x434d3b,'fill':_0x531be9||b[_0x393b7e(0x14d)](o[_0x393b7e(0x1e9)][_0x393b7e(0x3b1)],0.2),'left':_0x19be6f,'top':_0x1f55f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x393b7e(0x3f5)][_0x393b7e(0x220)](_0x2ba23e),this[_0x393b7e(0x1aa)][_0x393b7e(0x33f)](_0x2ba23e,b[_0x393b7e(0xf5)]);}[_0x30e940(0x267)](_0x4922d4){const _0x557d7a=_0x4922d4[0x0],_0x186813=_0x557d7a[0x0],_0x4f17cb=_0x557d7a[0x2],{x:_0x2f6ce7,y:_0xe66c11}=_0x186813,{x:_0x3b825e,y:_0xb978e6}=_0x4f17cb;return{'left':_0x2f6ce7,'top':_0xe66c11,'width':_0x3b825e-_0x2f6ce7,'height':_0xb978e6-_0xe66c11};}[_0x30e940(0x2b3)](){const _0x232179=_0x30e940,{scaleX:_0xdb81b1,scaleY:_0x33fb88}=this[_0x232179(0x1aa)][_0x232179(0x320)]();return Math['max'](_0xdb81b1,_0x33fb88);}}var Ai=Object[_0x30e940(0x36c)],ji=Object[_0x30e940(0x1a2)],$i=(_0x28bdff,_0x2b829a,_0xbb1698,_0x261613)=>{const _0x316461=_0x30e940;for(var _0x2f54e4=_0x261613>0x1?void 0x0:_0x261613?ji(_0x2b829a,_0xbb1698):_0x2b829a,_0x558600=_0x28bdff[_0x316461(0x3b8)]-0x1,_0x185ef3;_0x558600>=0x0;_0x558600--)(_0x185ef3=_0x28bdff[_0x558600])&&(_0x2f54e4=(_0x261613?_0x185ef3(_0x2b829a,_0xbb1698,_0x2f54e4):_0x185ef3(_0x2f54e4))||_0x2f54e4);return _0x261613&&_0x2f54e4&&Ai(_0x2b829a,_0xbb1698,_0x2f54e4),_0x2f54e4;},_e=(_0x50fcb4,_0x22c560)=>(_0x2f836c,_0x1c556a)=>_0x22c560(_0x2f836c,_0x1c556a,_0x50fcb4);let de=class extends o[_0x30e940(0x1cf)]{constructor(_0x32f699,_0x2def5a,_0x5ecb12,_0x28eda2,_0xf3cb15){const _0x388a0e=_0x30e940;super(),u(this,_0x388a0e(0x1b6),[]),u(this,'_cursors',[]),(this[_0x388a0e(0x21f)]=_0x32f699,this[_0x388a0e(0x40f)]=_0x2def5a,this['_collabCursorController']=_0x5ecb12,this[_0x388a0e(0x176)]=_0x28eda2,this['_themeService']=_0xf3cb15,this[_0x388a0e(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x21dc06=_0x30e940,_0x5424d8=this[_0x21dc06(0x21f)][_0x21dc06(0x424)],_0x5e6c0e=this[_0x21dc06(0x40f)];this[_0x21dc06(0x22c)](v[_0x21dc06(0x24b)]([this['_collabCursorController']['getCollabCursors$'](_0x5424d8),this[_0x21dc06(0x41a)]['currentTheme$']])['pipe'](E[_0x21dc06(0x120)](([_0x48d6c1,_0x194b34])=>({'skeleton':_0x5e6c0e[_0x21dc06(0x1d1)](),'cursors':[..._0x48d6c1[_0x21dc06(0x14e)]()][_0x21dc06(0x159)](_0xc51a40=>({..._0xc51a40,'color':_0x194b34[_0xc51a40[_0x21dc06(0x1ea)]]}))})))['subscribe'](_0x1daa32=>{const _0x4e6dac=_0x21dc06;if(this[_0x4e6dac(0x269)](),_0x1daa32){const {skeleton:_0x26712d,cursors:_0xadb778}=_0x1daa32;this['_updateCollabCursors'](_0x26712d,_0xadb778);}})),this['_initResize'](),this[_0x21dc06(0x3c7)]();}['_updateCollabCursors'](_0xa5c7a3,_0x2b4233){const _0x5e0b0d=_0x30e940,{scene:_0x4b58b5,mainComponent:_0x1791b7}=this['_context'],_0x23df7d=_0x2b4233[_0x5e0b0d(0x120)](_0x391dbe=>new ot(_0x391dbe,_0x4b58b5,_0xa5c7a3,_0x1791b7));this[_0x5e0b0d(0x1b6)]=_0x23df7d,this[_0x5e0b0d(0x3f8)]=_0x2b4233;}[_0x30e940(0x338)](){const _0xb74949=_0x30e940;this[_0xb74949(0x269)]();const {scene:_0x1a617a,mainComponent:_0x4ddaee}=this[_0xb74949(0x21f)],_0x3976d4=this[_0xb74949(0x40f)][_0xb74949(0x1d1)](),_0x5a3f0d=this[_0xb74949(0x3f8)][_0xb74949(0x120)](_0x8bea7e=>new ot(_0x8bea7e,_0x1a617a,_0x3976d4,_0x4ddaee));this['_cursorShapes']=_0x5a3f0d;}[_0x30e940(0x269)](){const _0x56f66b=_0x30e940;this[_0x56f66b(0x1b6)][_0x56f66b(0x277)](_0x404843=>_0x404843[_0x56f66b(0xc6)]()),this[_0x56f66b(0x1b6)]=[];}['_initCommandExecutedListener'](){const _0x3fcdc8=_0x30e940,_0x34fdab=[P[_0x3fcdc8(0x27a)]['id']];this[_0x3fcdc8(0x22c)](this[_0x3fcdc8(0x176)][_0x3fcdc8(0xd2)](_0x418f8c=>{const _0x29dba2=_0x3fcdc8;_0x34fdab[_0x29dba2(0x1e5)](_0x418f8c['id'])&&_0x418f8c[_0x29dba2(0x20b)][_0x29dba2(0x424)]===this[_0x29dba2(0x21f)][_0x29dba2(0x424)]&&this[_0x29dba2(0x338)]();}));}['_initResize'](){const _0x2fc3de=_0x30e940;this['disposeWithMe'](o[_0x2fc3de(0x2f9)](this['_context']['engine']['onTransformChange$'])[_0x2fc3de(0x2a9)](E[_0x2fc3de(0x20a)](_0x55c69d=>_0x55c69d[_0x2fc3de(0x312)]===b[_0x2fc3de(0x20f)][_0x2fc3de(0x41f)]),E[_0x2fc3de(0x3ba)](0x10))[_0x2fc3de(0x196)](()=>{const _0x4faa7e=_0x2fc3de;this[_0x4faa7e(0x338)]();}));}};de=$i([o['OnLifecycle'](o[_0x30e940(0x40e)]['Steady'],de),_e(0x1,o[_0x30e940(0xdf)](P[_0x30e940(0xd7)])),_e(0x2,o[_0x30e940(0xdf)](Z)),_e(0x3,o[_0x30e940(0x1c8)]),_e(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xf3)]))],de);var xi=Object[_0x30e940(0x36c)],Hi=Object[_0x30e940(0x1a2)],ki=(_0x579e87,_0xbe6e9a,_0x5cdc85,_0x3a441a)=>{const _0xeda87b=_0x30e940;for(var _0x1643dd=_0x3a441a>0x1?void 0x0:_0x3a441a?Hi(_0xbe6e9a,_0x5cdc85):_0xbe6e9a,_0x25f4d0=_0x579e87[_0xeda87b(0x3b8)]-0x1,_0x309089;_0x25f4d0>=0x0;_0x25f4d0--)(_0x309089=_0x579e87[_0x25f4d0])&&(_0x1643dd=(_0x3a441a?_0x309089(_0xbe6e9a,_0x5cdc85,_0x1643dd):_0x309089(_0x1643dd))||_0x1643dd);return _0x3a441a&&_0x1643dd&&xi(_0xbe6e9a,_0x5cdc85,_0x1643dd),_0x1643dd;},we=(_0x38ea33,_0x43831c)=>(_0x59e2af,_0x47013b)=>_0x43831c(_0x59e2af,_0x47013b,_0x38ea33);let Ie=class{constructor(_0x2b6874,_0x3d421f,_0xbec2b){const _0x1a1f12=_0x30e940;this[_0x1a1f12(0x160)]=_0x2b6874,this[_0x1a1f12(0x19a)]=_0x3d421f,this[_0x1a1f12(0x44b)]=_0xbec2b,this[_0x1a1f12(0x30e)]();}[_0x30e940(0x30e)](){const _0x359960=_0x30e940;this[_0x359960(0x19a)][_0x359960(0x1d2)]({'priority':0x1,'interceptor':(_0x50d65d,_0x1b1b50)=>_0x1b1b50(_0x50d65d)[_0x359960(0x2a9)](v[_0x359960(0xd9)](async _0x277973=>{const _0x6f3359=_0x359960,_0x267c2e=_0x277973;if(_0x267c2e[_0x6f3359(0x1de)]===0x191&&window[_0x6f3359(0x193)](this[_0x6f3359(0x44b)]['t'](_0x6f3359(0xcc)))){const _0x24ed0f=window[_0x6f3359(0xe0)](window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]);window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]=this[_0x6f3359(0x247)]()+_0x6f3359(0x167)+_0x24ed0f;}return _0x267c2e;}))});}[_0x30e940(0x247)](){const _0x5f4db0=_0x30e940;var _0x3f9635;return(_0x3f9635=this[_0x5f4db0(0x160)][_0x5f4db0(0xfc)](mt))!=null?_0x3f9635:Zt;}};Ie=ki([we(0x0,o[_0x30e940(0x306)]),we(0x1,o[_0x30e940(0xdf)](U['HTTPService'])),we(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Ie);var Bi=Object[_0x30e940(0x36c)],Vi=Object[_0x30e940(0x1a2)],Wi=(_0x26ce9d,_0x1773ce,_0x5de267,_0x4b986b)=>{const _0x3bf628=_0x30e940;for(var _0x2c1b32=_0x4b986b>0x1?void 0x0:_0x4b986b?Vi(_0x1773ce,_0x5de267):_0x1773ce,_0x3c680a=_0x26ce9d[_0x3bf628(0x3b8)]-0x1,_0x1cff10;_0x3c680a>=0x0;_0x3c680a--)(_0x1cff10=_0x26ce9d[_0x3c680a])&&(_0x2c1b32=(_0x4b986b?_0x1cff10(_0x1773ce,_0x5de267,_0x2c1b32):_0x1cff10(_0x2c1b32))||_0x2c1b32);return _0x4b986b&&_0x2c1b32&&Bi(_0x1773ce,_0x5de267,_0x2c1b32),_0x2c1b32;},at=(_0x31d631,_0x12b22b)=>(_0x915da4,_0x731cfc)=>_0x12b22b(_0x915da4,_0x731cfc,_0x31d631);const Mt=_0x30e940(0x301),Fi='/universer-api/authz';exports[_0x30e940(0x40b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x4bf0ab,_0x515cd0){const _0x220e29=_0x30e940;super(),this['_HTTPService']=_0x4bf0ab,this['_configService']=_0x515cd0,this[_0x220e29(0x3fb)]();}[_0x30e940(0x3fb)](){const _0x33ca5d=_0x30e940,_0x158903=this;this[_0x33ca5d(0x22c)](this['_HTTPService'][_0x33ca5d(0x1d2)]({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x817a88){const _0x256525=_0x33ca5d;var _0x8501f0;if(_0x817a88[_0x256525(0x3bb)]==='POST'&&((_0x8501f0=_0x817a88[_0x256525(0x1bc)])!=null&&_0x8501f0['body'])){const {objectID:_0x247dbd,objectType:_0x31b752}=_0x817a88[_0x256525(0x1bc)][_0x256525(0x3db)]||{};if(!_0x247dbd||_0x31b752===void 0x0)return!0x1;const _0x3a5ff4=_0x158903[_0x256525(0x1ce)]()+'/'+_0x31b752+_0x256525(0x363)+_0x247dbd+'/allowed';if(_0x817a88[_0x256525(0x169)]===_0x3a5ff4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d8052){const _0x57e71f=_0x33ca5d;var _0x5918c4;return(_0x5918c4=_0x4d8052[_0x57e71f(0x1bc)])==null?void 0x0:_0x5918c4[_0x57e71f(0x3db)];},'mergeParamsToRequest'(_0x5f10f9,_0x2ca4bb){const _0x303bec=_0x33ca5d,_0x53c7f4=_0x158903[_0x303bec(0x1ce)]()+_0x303bec(0x43e),_0x3d7e0d=_0x5f10f9[_0x303bec(0x29d)]((_0x38a3a7,_0x26314e)=>{const {unitID:_0x1595ce,objectID:_0x307676,objectType:_0x35dc5c,actions:_0xd97638}=_0x26314e;return _0x38a3a7[_0x1595ce]||(_0x38a3a7[_0x1595ce]={}),_0x38a3a7[_0x1595ce][_0x307676]||(_0x38a3a7[_0x1595ce][_0x307676]={'objectID':_0x307676,'objectType':_0x35dc5c,'actions':[]}),_0x38a3a7[_0x1595ce][_0x307676]['actions']['push'](..._0xd97638),_0x38a3a7;},{}),_0x31a79c=[];for(const _0x2dde98 in _0x3d7e0d)for(const _0x323f76 in _0x3d7e0d[_0x2dde98]){const {actions:_0x486327,objectType:_0x4f99e9}=_0x3d7e0d[_0x2dde98][_0x323f76],_0x34423a=[...new Set(_0x486327)];_0x31a79c[_0x303bec(0x220)]({'unitID':_0x2dde98,'objectID':_0x323f76,'objectType':_0x4f99e9,'actions':_0x34423a});}return new U[(_0x303bec(0x40d))](_0x303bec(0x177),_0x53c7f4,{'headers':_0x2ca4bb[_0x303bec(0x43d)],'withCredentials':_0x2ca4bb[_0x303bec(0x17c)],'responseType':_0x2ca4bb[_0x303bec(0x3a1)],'body':{'requests':_0x31a79c}});}},{'distributeResult'(_0x4b37bf,_0x525878){const _0x365952=_0x33ca5d,{objectActions:_0x3b140b}=_0x4b37bf;return _0x525878[_0x365952(0x120)](_0x384086=>{const _0x1c93d6=_0x365952,{unitID:_0x240c9a,objectID:_0x3a488a,actions:_0x55f8c3}=_0x384086,_0x10eb60=_0x3b140b[_0x1c93d6(0x32e)](_0x530c27=>_0x530c27[_0x1c93d6(0x1e6)]===_0x240c9a&&_0x530c27[_0x1c93d6(0x150)]===_0x3a488a),_0x5b4802=_0x55f8c3[_0x1c93d6(0x120)](_0x1a9e96=>_0x10eb60==null?void 0x0:_0x10eb60[_0x1c93d6(0x256)][_0x1c93d6(0x32e)](_0x33f0ee=>_0x33f0ee[_0x1c93d6(0x1b0)]===_0x1a9e96))['filter'](_0x263d3e=>!!_0x263d3e);return{'config':_0x384086,'result':{'actions':_0x5b4802,'error':_0x4b37bf['error']}};});}})}));}[_0x30e940(0x1ce)](){const _0x109b33=_0x30e940;var _0x4c32f4;return(_0x4c32f4=this[_0x109b33(0x160)][_0x109b33(0xfc)](Mt))!=null?_0x4c32f4:Fi;}async[_0x30e940(0xab)](_0x49426d){const _0x5f343b=_0x30e940,_0x314803=this[_0x5f343b(0x1ce)]()+'/'+_0x49426d[_0x5f343b(0x3e4)]+_0x5f343b(0x251);return(await this[_0x5f343b(0x122)][_0x5f343b(0x35c)](_0x314803,{'body':_0x49426d}))[_0x5f343b(0x3db)][_0x5f343b(0x150)]||'';}async[_0x30e940(0x1ec)](_0x45d607){const _0x58cc5a=_0x30e940,_0x48a32e=this[_0x58cc5a(0x1ce)]()+_0x58cc5a(0x397);return(await this[_0x58cc5a(0x122)][_0x58cc5a(0x35c)](_0x48a32e,{'body':_0x45d607}))[_0x58cc5a(0x3db)][_0x58cc5a(0x402)];}async[_0x30e940(0x2c8)](_0x59012e){const _0x20d856=_0x30e940,_0xd477ca=this[_0x20d856(0x1ce)]()+'/'+_0x59012e['objectType']+'/object/'+_0x59012e[_0x20d856(0x150)];await this[_0x20d856(0x122)]['put'](_0xd477ca,{'body':_0x59012e});}async[_0x30e940(0x11e)](_0x26cfb9){const _0x419856=_0x30e940,_0x2a9443=this[_0x419856(0x1ce)]()+'/'+_0x26cfb9['objectType']+_0x419856(0x363)+_0x26cfb9[_0x419856(0x150)]+'/allowed';return(await this[_0x419856(0x122)][_0x419856(0x35c)](_0x2a9443,{'body':_0x26cfb9}))['body'][_0x419856(0x256)];}async[_0x30e940(0x116)](_0x19924e){const _0x47e16c=_0x30e940,_0x372ec0=this[_0x47e16c(0x1ce)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService']['post'](_0x372ec0,{'body':{'requests':_0x19924e}}))[_0x47e16c(0x3db)][_0x47e16c(0x349)];}async[_0x30e940(0x2b6)](_0x377a05){const _0x5c5a92=_0x30e940,_0x10b1e7=this[_0x5c5a92(0x1ce)]()+'/'+_0x377a05[_0x5c5a92(0x3e4)]+'/role',_0x229b96=await this[_0x5c5a92(0x122)]['post'](_0x10b1e7,{'body':_0x377a05});return{'roles':_0x229b96[_0x5c5a92(0x3db)]['roles'],'actions':_0x229b96[_0x5c5a92(0x3db)]['actions']};}async[_0x30e940(0x31e)](_0x49cf5b){const _0x535a6c=_0x30e940,_0x36cea1=this[_0x535a6c(0x1ce)]()+_0x535a6c(0x1bd);await this['_HTTPService'][_0x535a6c(0x244)](_0x36cea1,{'params':{'collaboratorID':_0x49cf5b[_0x535a6c(0x17b)],'objectID':_0x49cf5b[_0x535a6c(0x150)],'unitID':_0x49cf5b['unitID']}});}async[_0x30e940(0x2e2)](_0x4f78bf){const _0x48c196=_0x30e940,_0x6b2c65=this[_0x48c196(0x1ce)]()+_0x48c196(0x1bd);await this[_0x48c196(0x122)][_0x48c196(0x1cb)](_0x6b2c65,{'body':_0x4f78bf});}async['createCollaborator'](_0x14ef2b){const _0x5ee571=_0x30e940,_0x77c52b=this['_getAPIPrefixPath']()+_0x5ee571(0x1bd);await this[_0x5ee571(0x122)]['post'](_0x77c52b,{'body':_0x14ef2b});}async['listCollaborators'](_0x3bd1da){const _0x499fd=_0x30e940,_0x3b49ec=this[_0x499fd(0x1ce)]()+_0x499fd(0x1bd);return(await this[_0x499fd(0x122)][_0x499fd(0x1f0)](_0x3b49ec,{'params':{'objectID':_0x3bd1da[_0x499fd(0x150)],'unitID':_0x3bd1da['unitID']}}))[_0x499fd(0x3db)][_0x499fd(0x3d5)];}async['putCollaborators'](_0x3f3802){const _0x53411c=_0x30e940,_0x2f4ec1=this['_getAPIPrefixPath']()+_0x53411c(0x1bd);await this['_HTTPService'][_0x53411c(0x2e6)](_0x2f4ec1,{'body':_0x3f3802});}},exports[_0x30e940(0x40b)]=Wi([at(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),at(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0x306)]))],exports[_0x30e940(0x40b)]);var Gi=Object[_0x30e940(0x36c)],Yi=Object[_0x30e940(0x1a2)],Ki=(_0x439cd4,_0x4770b0,_0x537016,_0x16ff2f)=>{const _0x12ccc0=_0x30e940;for(var _0x41b9c8=_0x16ff2f>0x1?void 0x0:_0x16ff2f?Yi(_0x4770b0,_0x537016):_0x4770b0,_0x3b65fc=_0x439cd4[_0x12ccc0(0x3b8)]-0x1,_0x10a2be;_0x3b65fc>=0x0;_0x3b65fc--)(_0x10a2be=_0x439cd4[_0x3b65fc])&&(_0x41b9c8=(_0x16ff2f?_0x10a2be(_0x4770b0,_0x537016,_0x41b9c8):_0x10a2be(_0x41b9c8))||_0x41b9c8);return _0x16ff2f&&_0x41b9c8&&Gi(_0x4770b0,_0x537016,_0x41b9c8),_0x41b9c8;},Me=(_0x5efd63,_0x28148e)=>(_0x2fb968,_0x1fa9ea)=>_0x28148e(_0x2fb968,_0x1fa9ea,_0x5efd63);const Xi=[_0x30e940(0xad),_0x30e940(0x206),_0x30e940(0x3ee),_0x30e940(0xf4),_0x30e940(0x39d)],qi=0x5*0x400*0x400,zi=_0x30e940(0x2cd),Ji=_0x30e940(0x3d8),Zi=_0x30e940(0x128),Qi='/universer-api/file/{fileID}/sign-url';exports['ImageIoService']=class{constructor(_0x515f89,_0x4041d7,_0xdcddc8){const _0x4e0ea8=_0x30e940;u(this,_0x4e0ea8(0xa2),0x0),u(this,_0x4e0ea8(0x1b9),new v[(_0x4e0ea8(0x457))]()),u(this,_0x4e0ea8(0x38b),this[_0x4e0ea8(0x1b9)]),u(this,_0x4e0ea8(0xc0),new Map()),(this[_0x4e0ea8(0x19a)]=_0x515f89,this[_0x4e0ea8(0x160)]=_0x4041d7,this['_univerInstanceService']=_0xdcddc8);}['setWaitCount'](_0x54366c){const _0x2cd80a=_0x30e940;this[_0x2cd80a(0xa2)]=_0x54366c,this['_change$'][_0x2cd80a(0x46e)](_0x54366c);}[_0x30e940(0x2e7)](_0x193c5c,_0x1e3714){const _0x53c098=_0x30e940;if(_0x1e3714===A[_0x53c098(0x1c5)][_0x53c098(0x1ca)]){const _0x198f94=new Image();return _0x198f94[_0x53c098(0x321)]=_0x193c5c,_0x198f94;}return this[_0x53c098(0xc0)][_0x53c098(0x1f0)](_0x193c5c);}[_0x30e940(0x3cc)](_0x2a5944,_0x161982,_0xc4bd49){const _0x45b334=_0x30e940;_0x161982===A[_0x45b334(0x1c5)][_0x45b334(0x1ca)]||_0xc4bd49==null||this['_imageSourceCache'][_0x45b334(0x346)](_0x2a5944,_0xc4bd49);}async[_0x30e940(0x368)](_0x2e057b){const _0x1d1515=_0x30e940;try{const _0x586d03=this[_0x1d1515(0x1bb)](this[_0x1d1515(0x109)](),''+_0x2e057b),_0x451578=(await this[_0x1d1515(0x19a)][_0x1d1515(0x1f0)](_0x586d03))[_0x1d1515(0x3db)];return _0x451578[_0x1d1515(0xf0)]&&_0x451578[_0x1d1515(0xf0)][_0x1d1515(0x161)]===gt['OK']?Promise[_0x1d1515(0xb5)](_0x451578['url']):Promise[_0x1d1515(0x406)](_0x451578[_0x1d1515(0xf0)]);}catch(_0x1684f7){return Promise[_0x1d1515(0x406)](_0x1684f7);}}async[_0x30e940(0x467)](_0x31f061){const _0x5f540f=_0x30e940;let _0xbb56c='';if(!Xi[_0x5f540f(0x1e5)](_0x31f061[_0x5f540f(0x312)]))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A['ImageUploadStatusType'][_0x5f540f(0x38f)]));if(_0x31f061[_0x5f540f(0x2f3)]>qi)return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x10e)]));try{const _0x337a38=new FormData();_0x337a38[_0x5f540f(0x259)](_0x5f540f(0x8b),_0x31f061);const _0x33063b=this[_0x5f540f(0x43f)][_0x5f540f(0x469)](),_0x381e77=_0x33063b==null?void 0x0:_0x33063b[_0x5f540f(0x280)]();if(!_0x381e77)throw new Error('unitId\x20is\x20not\x20found');const _0x130797=this['_getUploadFileURL']()+_0x5f540f(0x1d5)+_0x31f061['size'][_0x5f540f(0x451)]()+_0x5f540f(0xee)+ft[_0x5f540f(0x2bf)]+_0x5f540f(0x1ac)+encodeURIComponent(_0x381e77),_0x1f47d2=await(await fetch(_0x130797,{'method':_0x5f540f(0x177),'body':_0x337a38}))[_0x5f540f(0x354)]();if(typeof _0x1f47d2['FileId']!=_0x5f540f(0x1d3))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x35b)]));_0xbb56c=_0x1f47d2['FileId'];}catch{return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A['ImageUploadStatusType'][_0x5f540f(0x35b)]));}return new Promise((_0xc0e88b,_0x2b93ca)=>{const _0x5672f1=_0x5f540f,_0x7ff4da=new FileReader();_0x7ff4da[_0x5672f1(0x45d)](_0x31f061),_0x7ff4da['onload']=_0x55bf13=>{const _0x4f1bee=_0x5672f1;var _0x5f9122;const _0x412d4c=(_0x5f9122=_0x55bf13[_0x4f1bee(0x15f)])==null?void 0x0:_0x5f9122['result'];if(_0x412d4c==null){this[_0x4f1bee(0x170)](),_0x2b93ca(new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0x58a808=o[_0x4f1bee(0x235)][_0x4f1bee(0x108)](0x6);_0xc0e88b({'imageId':_0x58a808,'imageSourceType':A[_0x4f1bee(0x1c5)]['UUID'],'source':_0xbb56c,'base64Cache':_0x412d4c,'status':A['ImageUploadStatusType'][_0x4f1bee(0x22b)]}),this[_0x4f1bee(0x170)]();};});}[_0x30e940(0x33c)](){const _0x1ef51a=_0x30e940;var _0x43c45b;return(_0x43c45b=this['_configService'][_0x1ef51a(0xfc)](zi))!=null?_0x43c45b:Ji;}[_0x30e940(0x109)](){const _0x371a6f=_0x30e940;var _0x40f3dc;return(_0x40f3dc=this[_0x371a6f(0x160)][_0x371a6f(0xfc)](Zi))!=null?_0x40f3dc:Qi;}['_replaceFileID'](_0x5f0c93,_0x3f69a7){const _0x3b449e=_0x30e940;return _0x5f0c93['replace'](_0x3b449e(0x2ef),_0x3f69a7);}[_0x30e940(0x170)](){const _0x3f2868=_0x30e940;this[_0x3f2868(0xa2)]-=0x1,this[_0x3f2868(0x1b9)][_0x3f2868(0x46e)](this[_0x3f2868(0xa2)]);}},exports[_0x30e940(0x18d)]=Ki([Me(0x0,o[_0x30e940(0xdf)](U['HTTPService'])),Me(0x1,o['IConfigService']),Me(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0x233)]))],exports[_0x30e940(0x18d)]);var en=Object[_0x30e940(0x36c)],tn=Object[_0x30e940(0x1a2)],sn=(_0x34e902,_0x2b15ba,_0x4cd29d,_0xcf9fd6)=>{for(var _0x9a6bf4=_0xcf9fd6>0x1?void 0x0:_0xcf9fd6?tn(_0x2b15ba,_0x4cd29d):_0x2b15ba,_0x526820=_0x34e902['length']-0x1,_0x592ec2;_0x526820>=0x0;_0x526820--)(_0x592ec2=_0x34e902[_0x526820])&&(_0x9a6bf4=(_0xcf9fd6?_0x592ec2(_0x2b15ba,_0x4cd29d,_0x9a6bf4):_0x592ec2(_0x9a6bf4))||_0x9a6bf4);return _0xcf9fd6&&_0x9a6bf4&&en(_0x2b15ba,_0x4cd29d,_0x9a6bf4),_0x9a6bf4;},ae=(_0x2bc5c8,_0x267ee3)=>(_0x4e1950,_0x5cd71a)=>_0x267ee3(_0x4e1950,_0x5cd71a,_0x2bc5c8);let Se=class extends o[_0x30e940(0x1cf)]{constructor(_0x8f3b4f,_0x435828,_0x26464d,_0x24b30e,_0x4d607b){const _0x1f18e0=_0x30e940;super(),this[_0x1f18e0(0x137)]=_0x8f3b4f,this[_0x1f18e0(0x43f)]=_0x435828,this[_0x1f18e0(0x153)]=_0x26464d,this[_0x1f18e0(0x393)]=_0x24b30e,this[_0x1f18e0(0x45b)]=_0x4d607b,this[_0x1f18e0(0x1ba)](),this[_0x1f18e0(0x2d4)]();}[_0x30e940(0x2d4)](){const _0x258e75=_0x30e940,_0x42b58d=async _0x56137e=>{const _0x4e04fd=_0x3b20;(await this[_0x4e04fd(0x393)][_0x4e04fd(0x470)](_0x56137e))[_0x4e04fd(0x199)][_0x4e04fd(0x2a9)](E['filter'](_0xd176df=>_0xd176df[_0x4e04fd(0x15d)]===_['CollaborationEvent'][_0x4e04fd(0xd1)]),E[_0x4e04fd(0x3a8)](this[_0x4e04fd(0x2b1)]))[_0x4e04fd(0x196)](_0x384b05=>{const _0x1a711c=_0x4e04fd,_0x2094a8=_0x384b05,{reason:_0x58f6d4}=_0x2094a8[_0x1a711c(0x10a)];this[_0x1a711c(0x137)][_0x1a711c(0x1f0)](L[_0x1a711c(0x3d3)])[_0x1a711c(0x157)]({'type':Q[_0x1a711c(0x187)]['Error'],'content':this[_0x1a711c(0x45b)]['t'](_0x1a711c(0x326))+'('+_0x58f6d4+')'}),this[_0x1a711c(0x153)][_0x1a711c(0x289)](new p[(_0x1a711c(0x458))](_0x56137e)['id'],!0x1),this[_0x1a711c(0x393)][_0x1a711c(0x2c4)](_0x56137e);});};v[_0x258e75(0xbd)](this[_0x258e75(0x43f)][_0x258e75(0xc5)](o['UniverInstanceType'][_0x258e75(0x390)]),this[_0x258e75(0x43f)]['getTypeOfUnitAdded$'](o[_0x258e75(0x37c)]['UNIVER_DOC']))[_0x258e75(0x2a9)](E[_0x258e75(0x120)](_0xce947e=>_0xce947e[_0x258e75(0x280)]()),E['filter'](_0x79e230=>!o['isInternalEditorID'](_0x79e230)),E[_0x258e75(0x3a8)](this[_0x258e75(0x2b1)]))[_0x258e75(0x196)](_0xd68bd1=>{_0x42b58d(_0xd68bd1);});}[_0x30e940(0x1ba)](){const _0x3ead4a=_0x30e940,_0x35048e=async _0x46b175=>{const _0xe8a9ee=_0x3b20;(await this[_0xe8a9ee(0x393)]['requireSession'](_0x46b175))[_0xe8a9ee(0x199)][_0xe8a9ee(0x2a9)](E[_0xe8a9ee(0x20a)](_0x27f0fa=>_0x27f0fa['eventID']===_['CollaborationEvent'][_0xe8a9ee(0x1a6)]),E[_0xe8a9ee(0x3a8)](this[_0xe8a9ee(0x2b1)]))[_0xe8a9ee(0x196)](_0x3b90c6=>{const _0xdf8bbb=_0xe8a9ee,_0x268f35=_0x3b90c6,{objectId:_0x5b1198}=_0x268f35[_0xdf8bbb(0x10a)],_0x47d307=this['_injector'][_0xdf8bbb(0x1f0)](J[_0xdf8bbb(0x221)]);_0x5b1198===_0x46b175?_0x47d307['initWorkbookPermissionChange'](_0x46b175):_0x47d307[_0xdf8bbb(0x149)](_0x46b175,_0x5b1198);});};v['merge'](this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o[_0x3ead4a(0x37c)]['UNIVER_SHEET']),this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x3ead4a(0x120)](_0x21274b=>_0x21274b['getUnitId']()),E[_0x3ead4a(0x20a)](_0xe96b4d=>!o[_0x3ead4a(0x10b)](_0xe96b4d)),E['takeUntil'](this[_0x3ead4a(0x2b1)]))[_0x3ead4a(0x196)](_0x2755c9=>{_0x35048e(_0x2755c9);});}};Se=sn([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Se),ae(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),ae(0x1,o[_0x30e940(0x233)]),ae(0x2,o[_0x30e940(0x3b7)]),ae(0x3,o['Inject'](exports[_0x30e940(0x373)])),ae(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Se);var yt=Object[_0x30e940(0x36c)],nn=Object[_0x30e940(0x1a2)],rn=(_0x3864ca,_0x57d579,_0x57ff29)=>_0x57d579 in _0x3864ca?yt(_0x3864ca,_0x57d579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ff29}):_0x3864ca[_0x57d579]=_0x57ff29,on=(_0x3b4f17,_0x25353f,_0x4f51c7,_0x295861)=>{const _0x565c77=_0x30e940;for(var _0xe1f273=_0x295861>0x1?void 0x0:_0x295861?nn(_0x25353f,_0x4f51c7):_0x25353f,_0x41601c=_0x3b4f17[_0x565c77(0x3b8)]-0x1,_0x29a4f2;_0x41601c>=0x0;_0x41601c--)(_0x29a4f2=_0x3b4f17[_0x41601c])&&(_0xe1f273=(_0x295861?_0x29a4f2(_0x25353f,_0x4f51c7,_0xe1f273):_0x29a4f2(_0xe1f273))||_0xe1f273);return _0x295861&&_0xe1f273&&yt(_0x25353f,_0x4f51c7,_0xe1f273),_0xe1f273;},ye=(_0x37fbb5,_0x126231)=>(_0x282a38,_0x34fa29)=>_0x126231(_0x282a38,_0x34fa29,_0x37fbb5),an=(_0x435b9e,_0x22e60b,_0x2e0123)=>rn(_0x435b9e,_0x22e60b+'',_0x2e0123);const cn=_0x30e940(0xd6);exports[_0x30e940(0x3c6)]=class extends o[_0x30e940(0x14a)]{constructor(_0x433a8e,_0x4d48b1,_0x23f97b,_0x458fcb){const _0x3685ae=_0x30e940;super(),this[_0x3685ae(0x428)]=_0x433a8e,this['_logService']=_0x4d48b1,this['_renderManagerService']=_0x23f97b,this['_injector']=_0x458fcb;}[_0x30e940(0x104)](){const _0x5b9390=_0x30e940;this[_0x5b9390(0x394)]();}[_0x30e940(0x376)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x10f36f=_0x30e940;var _0x279a06,_0x3c44ee,_0x4a5768,_0x45fc7f;this[_0x10f36f(0x137)][_0x10f36f(0x45c)](o[_0x10f36f(0x17f)])&&this['_logService'][_0x10f36f(0xf0)](_0x10f36f(0x3c9),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0xc2e3fa=[[o[_0x10f36f(0x17f)],{'useClass':$e}],[exports[_0x10f36f(0x373)]],[Fe],[U['HTTPService']],[Ye,{'useClass':wt}],[Y],[exports[_0x10f36f(0x227)]],[U[_0x10f36f(0x350)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3c44ee=(_0x279a06=this['_config'])==null?void 0x0:_0x279a06[_0x10f36f(0xb4)])!=null?_0x3c44ee:exports['CollaborationSocketService']}],[U['IHTTPImplementation'],{'useClass':U[_0x10f36f(0xda)]}],[_[_0x10f36f(0x237)],{'useClass':exports[_0x10f36f(0x41c)]}],[o[_0x10f36f(0xa3)],{'useClass':exports[_0x10f36f(0x40b)]}],[A[_0x10f36f(0x3b5)],{'useClass':exports[_0x10f36f(0x18d)]}],[exports['CollaborationController']],[exports[_0x10f36f(0x385)]],[exports[_0x10f36f(0x18b)]],[ue],[Z]];(_0x4a5768=this[_0x10f36f(0x428)])!=null&&_0x4a5768[_0x10f36f(0x352)]&&_0xc2e3fa[_0x10f36f(0x220)]([pe,{'useClass':us}]),_0xc2e3fa=o[_0x10f36f(0x13b)](_0xc2e3fa,(_0x45fc7f=this[_0x10f36f(0x428)])==null?void 0x0:_0x45fc7f[_0x10f36f(0x127)]),_0xc2e3fa[_0x10f36f(0x277)](_0x5660db=>this[_0x10f36f(0x137)]['add'](_0x5660db)),this[_0x10f36f(0x10d)]();}[_0x30e940(0x9f)](){const _0x4e1384=_0x30e940;this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o['UniverInstanceType'][_0x4e1384(0x1f4)],[de])),this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o[_0x4e1384(0x37c)][_0x4e1384(0x390)],[je]));}['_initModules'](){const _0x131102=_0x30e940;var _0x28554b,_0x35f55c;this['_injector']['get'](U[_0x131102(0x181)])[_0x131102(0x1d2)]({'priority':0x14,'interceptor':U[_0x131102(0x24e)]({'maxParallel':0x6})}),(_0x28554b=this[_0x131102(0x428)])!=null&&_0x28554b[_0x131102(0x1a9)]||this['_injector'][_0x131102(0x1f0)](exports[_0x131102(0x227)])[_0x131102(0x422)](),(_0x35f55c=this[_0x131102(0x428)])!=null&&_0x35f55c[_0x131102(0x26e)]&&this[_0x131102(0x137)][_0x131102(0x1f0)](Ie);}},an(exports[_0x30e940(0x3c6)],_0x30e940(0x10f),cn),exports['UniverCollaborationClientPlugin']=on([o[_0x30e940(0x25d)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x30e940(0x1e7)]),ye(0x2,b[_0x30e940(0x1f2)]),ye(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)]))],exports[_0x30e940(0x3c6)]),exports[_0x30e940(0x301)]=Mt,exports[_0x30e940(0x219)]=vt,exports[_0x30e940(0x3b9)]=_t,exports[_0x30e940(0x386)]=D,exports[_0x30e940(0x2fc)]=Ut,exports[_0x30e940(0x172)]=Ve,exports[_0x30e940(0x107)]=ut,exports[_0x30e940(0x408)]=He,exports[_0x30e940(0x203)]=Be,exports[_0x30e940(0x401)]=Ye,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports['LOGIN_URL_KEY']=mt,exports[_0x30e940(0x2de)]=ht,exports[_0x30e940(0x162)]=ct,exports[_0x30e940(0x36e)]=lt,exports[_0x30e940(0x16c)]=G,exports[_0x30e940(0x250)]=Rt,exports[_0x30e940(0x342)]=wt,exports[_0x30e940(0x414)]=It,exports[_0x30e940(0x32a)]=pt;
1
+ 'use strict';const _0x4f35dc=_0x1935;(function(_0x2ea0aa,_0x140c22){const _0xd471d=_0x1935,_0x28452a=_0x2ea0aa();while(!![]){try{const _0x246830=-parseInt(_0xd471d(0x1a4))/0x1*(-parseInt(_0xd471d(0x518))/0x2)+-parseInt(_0xd471d(0x470))/0x3+parseInt(_0xd471d(0x431))/0x4*(parseInt(_0xd471d(0x161))/0x5)+parseInt(_0xd471d(0x38d))/0x6*(-parseInt(_0xd471d(0x26e))/0x7)+-parseInt(_0xd471d(0x3c1))/0x8*(-parseInt(_0xd471d(0x4d6))/0x9)+-parseInt(_0xd471d(0x37e))/0xa+-parseInt(_0xd471d(0x34e))/0xb*(-parseInt(_0xd471d(0x468))/0xc);if(_0x246830===_0x140c22)break;else _0x28452a['push'](_0x28452a['shift']());}catch(_0x1a077f){_0x28452a['push'](_0x28452a['shift']());}}}(_0x2d86,0x440aa));var Ht=Object[_0x4f35dc(0x305)],kt=(_0x5ca6c0,_0x1e6f06,_0x1f9481)=>_0x1e6f06 in _0x5ca6c0?Ht(_0x5ca6c0,_0x1e6f06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9481}):_0x5ca6c0[_0x1e6f06]=_0x1f9481,d=(_0x44e21b,_0x188098,_0x14a59a)=>kt(_0x44e21b,typeof _0x188098!='symbol'?_0x188098+'':_0x188098,_0x14a59a);Object[_0x4f35dc(0x305)](exports,Symbol[_0x4f35dc(0x3ee)],{'value':_0x4f35dc(0x126)});const a=require(_0x4f35dc(0x1f8)),v=require('rxjs'),E=require('rxjs/operators'),Y=require(_0x4f35dc(0x426)),M=require(_0x4f35dc(0x35c)),U=require('@univerjs/network'),_=require(_0x4f35dc(0x352)),Bt=require(_0x4f35dc(0x207)),w=require(_0x4f35dc(0x514)),C=require(_0x4f35dc(0x444)),L=require('@univerjs/drawing'),b=require(_0x4f35dc(0x2cc)),Xe=require(_0x4f35dc(0x296)),xe=require('lodash/debounce'),Q=require(_0x4f35dc(0x237)),P=require(_0x4f35dc(0x448)),Vt=require('clsx'),Ft=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',Wt=_0x4f35dc(0x363),lt=_0x4f35dc(0x3ad),ht='SEND_CHANGESET_TIMEOUT',Gt=0x7d0,_t=_0x4f35dc(0x2d4),Yt=_0x4f35dc(0x21a),ut=_0x4f35dc(0x368),Kt=0x7530,He=_0x4f35dc(0x33c),dt=0x2710,St='RETRY_CONNECTING_INTERVAL',Xt=0x4e20,vt=_0x4f35dc(0x197),qt=0x3,mt=_0x4f35dc(0x511),zt=0x3e8,ft=_0x4f35dc(0x16e),Jt=_0x4f35dc(0x131),gt=_0x4f35dc(0x29b),Zt=_0x4f35dc(0x2fe);var It=(_0x2bedad=>(_0x2bedad[_0x2bedad['UNDEFINED']=0x0]=_0x4f35dc(0x3ce),_0x2bedad[_0x2bedad['OK']=0x1]='OK',_0x2bedad[_0x2bedad[_0x4f35dc(0x44f)]=0x2]=_0x4f35dc(0x44f),_0x2bedad[_0x2bedad[_0x4f35dc(0x165)]=0x3]=_0x4f35dc(0x165),_0x2bedad[_0x2bedad[_0x4f35dc(0x244)]=0x4]=_0x4f35dc(0x244),_0x2bedad[_0x2bedad[_0x4f35dc(0x4d7)]=0x5]=_0x4f35dc(0x4d7),_0x2bedad[_0x2bedad[_0x4f35dc(0x3bb)]=0x6]=_0x4f35dc(0x3bb),_0x2bedad[_0x2bedad[_0x4f35dc(0x2b2)]=0x7]=_0x4f35dc(0x2b2),_0x2bedad[_0x2bedad['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2bedad[_0x2bedad['COMPLETION_FINISHED']=0x9]=_0x4f35dc(0x311),_0x2bedad[_0x2bedad['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2bedad[_0x2bedad[_0x4f35dc(0x3b7)]=0x1771]=_0x4f35dc(0x3b7),_0x2bedad[_0x2bedad[_0x4f35dc(0x4f1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2bedad[_0x2bedad['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2bedad[_0x2bedad[_0x4f35dc(0x3c6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2bedad[_0x2bedad[_0x4f35dc(0x384)]=0x1b5b]=_0x4f35dc(0x384),_0x2bedad[_0x2bedad[_0x4f35dc(0x1f0)]=0x1b5c]=_0x4f35dc(0x1f0),_0x2bedad[_0x2bedad[_0x4f35dc(0x418)]=0x1f41]=_0x4f35dc(0x418),_0x2bedad[_0x2bedad['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4f35dc(0x44e),_0x2bedad[_0x2bedad[_0x4f35dc(0x2a8)]=0x232a]=_0x4f35dc(0x2a8),_0x2bedad[_0x2bedad['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bedad[_0x2bedad[_0x4f35dc(0x487)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bedad[_0x2bedad[_0x4f35dc(0x1c7)]=0x232d]=_0x4f35dc(0x1c7),_0x2bedad[_0x2bedad[_0x4f35dc(0x3bd)]=0x2711]=_0x4f35dc(0x3bd),_0x2bedad[_0x2bedad['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4f35dc(0x309),_0x2bedad[_0x2bedad[_0x4f35dc(0x280)]=0x2713]=_0x4f35dc(0x280),_0x2bedad[_0x2bedad['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2bedad[_0x2bedad[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x2bedad))(It||{}),A=(_0x11b4bc=>(_0x11b4bc[_0x11b4bc['UNIVER_UNKNOWN']=0x0]=_0x4f35dc(0x43a),_0x11b4bc[_0x11b4bc['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x11b4bc[_0x11b4bc[_0x4f35dc(0x396)]=0x2]='UNIVER_SHEET',_0x11b4bc[_0x11b4bc[_0x4f35dc(0x346)]=0x3]=_0x4f35dc(0x346),_0x11b4bc[_0x11b4bc[_0x4f35dc(0x31a)]=0x4]=_0x4f35dc(0x31a),_0x11b4bc[_0x11b4bc['UNRECOGNIZED']=-0x1]=_0x4f35dc(0x13e),_0x11b4bc))(A||{}),T=(_0x19c037=>(_0x19c037[_0x19c037[_0x4f35dc(0x3db)]=0x0]=_0x4f35dc(0x3db),_0x19c037[_0x19c037[_0x4f35dc(0x1fa)]=0x1]=_0x4f35dc(0x1fa),_0x19c037[_0x19c037[_0x4f35dc(0x26d)]=0x2]=_0x4f35dc(0x26d),_0x19c037[_0x19c037['LEAVE']=0x3]=_0x4f35dc(0x235),_0x19c037[_0x19c037['INGEST']=0x4]='INGEST',_0x19c037[_0x19c037[_0x4f35dc(0x4fd)]=0x5]=_0x4f35dc(0x4fd),_0x19c037[_0x19c037[_0x4f35dc(0x3b9)]=0x6]=_0x4f35dc(0x3b9),_0x19c037[_0x19c037['UNRECOGNIZED']=-0x1]=_0x4f35dc(0x13e),_0x19c037))(T||{}),ke=(_0x20b9cf=>(_0x20b9cf[_0x20b9cf[_0x4f35dc(0x48b)]=0x0]=_0x4f35dc(0x48b),_0x20b9cf[_0x20b9cf['OK']=0x1]='OK',_0x20b9cf[_0x20b9cf[_0x4f35dc(0x12e)]=0x2]=_0x4f35dc(0x12e),_0x20b9cf[_0x20b9cf[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x20b9cf))(ke||{}),pt=(_0x2d8d96=>(_0x2d8d96[_0x2d8d96[_0x4f35dc(0x3e7)]=0x0]='Undefined',_0x2d8d96[_0x2d8d96['HttpImport']=0x1]='HttpImport',_0x2d8d96[_0x2d8d96[_0x4f35dc(0x257)]=0x2]=_0x4f35dc(0x257),_0x2d8d96[_0x2d8d96[_0x4f35dc(0x350)]=0x3]='UnitEmbedded',_0x2d8d96[_0x2d8d96['UnitSnapshot']=0x4]=_0x4f35dc(0x369),_0x2d8d96[_0x2d8d96[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x2d8d96))(pt||{});function Ct(_0x3344eb){const _0x2523e0=_0x4f35dc;var _0x12ab21,_0x5f3095,_0xce58c2,_0x9933da;const _0x2cb9ef=_0x3344eb['data'],_0x2b2106=JSON[_0x2523e0(0x4b0)](_0x2cb9ef);switch(_0x2b2106[_0x2523e0(0x243)]){case T[_0x2523e0(0x4fd)]:case T['HELLO']:{const _0x2227f1=_0x2b2106['infoRsp'];return{..._0x2b2106,'data':_0x2227f1,'cmd':_0x2b2106[_0x2523e0(0x243)]};}case T[_0x2523e0(0x26d)]:{const _0x540597=_0x2b2106[_0x2523e0(0x3f0)];return{..._0x2b2106,'data':_0x540597,'cmd':_0x2b2106[_0x2523e0(0x243)]};}case T[_0x2523e0(0x3b9)]:{const _0x559280=_0x2b2106[_0x2523e0(0x4da)];switch(_0x559280[_0x2523e0(0x510)]){case _[_0x2523e0(0x2a7)][_0x2523e0(0x1a6)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x12ab21=_0x559280['permissionRejEvent'])==null?void 0x0:_0x12ab21['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)]['CHANGESET_ACK']:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x5f3095=_0x559280[_0x2523e0(0x41e)])==null?void 0x0:_0x5f3095['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x1d1)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0xce58c2=_0x559280[_0x2523e0(0x517)])==null?void 0x0:_0xce58c2['cs']},'cmd':_0x2b2106['cmd']};case _[_0x2523e0(0x2a7)][_0x2523e0(0x3be)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x9933da=_0x559280[_0x2523e0(0x342)])==null?void 0x0:_0x9933da['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x491)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x393)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _['CollaborationEvent'][_0x2523e0(0x1bb)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x31b)]},'cmd':_0x2b2106['cmd']};case _[_0x2523e0(0x2a7)][_0x2523e0(0x230)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['leaveEvent']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x22f)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x513)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x2523e0(0x2a7)][_0x2523e0(0x313)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['liveShareOperation']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x19e)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x513)]},'cmd':_0x2b2106['cmd']};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2b2106,'data':_0x559280,'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x484)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['commentUpdateEvent']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)]['UPDATE_PERMISSION_OBJ']:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x1b0)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x2e7)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x247)]},'cmd':_0x2b2106['cmd']};default:return _0x2b2106;}}default:return _0x2b2106;}}function Et(_0x2751c6){const _0x2dc5cc=_0x4f35dc;switch(_0x2751c6[_0x2dc5cc(0x243)]){case T[_0x2dc5cc(0x4fd)]:case T[_0x2dc5cc(0x1fa)]:return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)]});case T['INGEST']:{let _0x25c2ef;switch(_0x2751c6['data']['eventID']){case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x491)]:{_0x25c2ef={'eventID':_['CollaborationEvent'][_0x2dc5cc(0x491)],'updateCursorEvent':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _['CollaborationEvent']['USERS_LEAVE']:{_0x25c2ef={'eventID':_['CollaborationEvent'][_0x2dc5cc(0x230)],'leaveEvent':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x1bb)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x1bb)],'joinEvent':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x48a)]};break;}case _['CollaborationEvent'][_0x2dc5cc(0x22f)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x313)]:{_0x25c2ef={'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x2751c6['data'][_0x2dc5cc(0x48a)]};break;}case _[_0x2dc5cc(0x2a7)]['LIVESHARE_TERMINATE']:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x19e)],'liveShareTerminate':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x18a)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x18a)],'liveShareRequestHost':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x48a)]};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x46b)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x46b)]};break;}default:_0x25c2ef={'eventID':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x510)]};}return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'collaMsg':_0x25c2ef});}case T[_0x2dc5cc(0x26d)]:return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'joinReq':_0x2751c6['data']});case T[_0x2dc5cc(0x235)]:return JSON['stringify']({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'leaveReq':_0x2751c6[_0x2dc5cc(0x48a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Qt=Object[_0x4f35dc(0x305)],es=Object[_0x4f35dc(0x21c)],ts=(_0x9d2b52,_0x50f2ac,_0x5eb810,_0x5be986)=>{const _0xad705f=_0x4f35dc;for(var _0x2a5564=_0x5be986>0x1?void 0x0:_0x5be986?es(_0x50f2ac,_0x5eb810):_0x50f2ac,_0x2ba9cf=_0x9d2b52[_0xad705f(0x3a9)]-0x1,_0x313a9d;_0x2ba9cf>=0x0;_0x2ba9cf--)(_0x313a9d=_0x9d2b52[_0x2ba9cf])&&(_0x2a5564=(_0x5be986?_0x313a9d(_0x50f2ac,_0x5eb810,_0x2a5564):_0x313a9d(_0x2a5564))||_0x2a5564);return _0x5be986&&_0x2a5564&&Qt(_0x50f2ac,_0x5eb810,_0x2a5564),_0x2a5564;},ne=(_0xef635e,_0x5bddf2)=>(_0x21a6b3,_0x4edb61)=>_0x5bddf2(_0x21a6b3,_0x4edb61,_0xef635e);const Be=a['createIdentifier']('univer-pro.collaboration-client-socket-service');function ss(_0x1af9aa,_0x2710e5,_0x5985ac){const _0x567f92=_0x4f35dc;return _0x1af9aa+'/'+_0x2710e5+_0x567f92(0x41f)+_0x5985ac+_0x567f92(0x2c8);}exports[_0x4f35dc(0x4f0)]=class{constructor(_0x526a6d,_0x340df7,_0xa5cbbe,_0x35abad,_0x20399f){const _0x370c23=_0x4f35dc;this[_0x370c23(0x2c2)]=_0x526a6d,this[_0x370c23(0x229)]=_0x340df7,this[_0x370c23(0x19a)]=_0xa5cbbe,this[_0x370c23(0x289)]=_0x35abad,this[_0x370c23(0x401)]=_0x20399f;}[_0x4f35dc(0x2db)](_0x55d3fc){const _0x37a9af=_0x4f35dc,_0x1bfb27=this['_ws'][_0x37a9af(0x2db)](_0x55d3fc);if(!_0x1bfb27)throw new Error(_0x37a9af(0x27a));const _0x4aead8=new a[(_0x37a9af(0x30d))](),_0x4d3b5c=new v[(_0x37a9af(0x4eb))]();_0x4aead8[_0x37a9af(0x3e5)](_0x1bfb27[_0x37a9af(0x21d)][_0x37a9af(0x4df)](_0x121120=>_0x4d3b5c['next'](_0x121120))),_0x4aead8[_0x37a9af(0x3e5)](a['toDisposable'](()=>_0x4d3b5c[_0x37a9af(0x331)]()));const _0x2430da=new v[(_0x37a9af(0x4eb))]();_0x4aead8[_0x37a9af(0x3e5)](_0x1bfb27[_0x37a9af(0x1f6)][_0x37a9af(0x4df)](_0x13df84=>_0x2430da[_0x37a9af(0x245)](_0x13df84))),_0x4aead8[_0x37a9af(0x3e5)](a['toDisposable'](()=>_0x2430da['complete']()));const _0x32b3c2=new v[(_0x37a9af(0x4eb))]();_0x4aead8['add'](_0x1bfb27['message$'][_0x37a9af(0x4df)](_0x3e1a8c=>{const _0x5d7d4f=Ct(_0x3e1a8c);_0x32b3c2['next'](_0x5d7d4f);})),_0x4aead8['add'](a[_0x37a9af(0x456)](()=>_0x32b3c2[_0x37a9af(0x331)]()));const _0x50d156=()=>{const _0x2cd3f4=_0x37a9af;_0x2430da[_0x2cd3f4(0x245)](new Event(_0x2cd3f4(0x2e4))),_0x4d3b5c[_0x2cd3f4(0x245)](new CloseEvent(_0x2cd3f4(0x2e4))),_0x526cbf[_0x2cd3f4(0x232)]();},_0x526cbf={'memberID':'','close$':_0x4d3b5c[_0x37a9af(0x366)](),'error$':_0x2430da['asObservable'](),'open$':_0x1bfb27[_0x37a9af(0x240)],'message$':_0x32b3c2[_0x37a9af(0x366)](),'send':_0x3eaca7=>{const _0xb02a89=_0x37a9af;if(_0x3eaca7[_0xb02a89(0x243)]===T[_0xb02a89(0x2ab)]){if(_0x3eaca7[_0xb02a89(0x48a)][_0xb02a89(0x510)]===_[_0xb02a89(0x2a7)][_0xb02a89(0x2d2)]){this[_0xb02a89(0x324)](_0x526cbf,_0x3eaca7['data'])[_0xb02a89(0x4c5)](_0x1e568f=>{const _0x3f02f0=_0xb02a89;this[_0x3f02f0(0x289)][_0x3f02f0(0x22c)](_0x1e568f),_0x50d156();});return;}if(_0x3eaca7[_0xb02a89(0x48a)][_0xb02a89(0x510)]===_['CollaborationEvent'][_0xb02a89(0x1ef)]){const _0x1bac75=_0x3eaca7[_0xb02a89(0x48a)];this[_0xb02a89(0x216)](_0x1bac75)[_0xb02a89(0x120)](_0x402ac3=>{const _0x5c2394=_0xb02a89;_0x32b3c2[_0x5c2394(0x245)]({'cmd':T['RECV'],'code':ke['OK'],'routeKey':_0x1bac75[_0x5c2394(0x48a)][_0x5c2394(0x26b)],'routeType':'','data':{'eventID':_[_0x5c2394(0x2a7)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x402ac3}}});})[_0xb02a89(0x4c5)](_0x1bde90=>{const _0x5e0d03=_0xb02a89;this[_0x5e0d03(0x289)][_0x5e0d03(0x22c)](_0x1bde90),_0x50d156();});return;}}_0x1bfb27['send'](Et(_0x3eaca7));},'close':()=>{const _0x27b777=_0x37a9af;_0x1bfb27[_0x27b777(0x232)](),_0x4aead8[_0x27b777(0x3cc)]();}};return _0x526cbf;}async[_0x4f35dc(0x324)](_0x34e965,_0x32b0f1){const _0x522bc6=_0x4f35dc;var _0x51a3c3;const {unitType:_0x276cbb,unitID:_0x234907,changeset:_0x3d1702}=_0x32b0f1[_0x522bc6(0x48a)],_0xcf249c={'unitID':_0x234907,'memberID':_0x34e965[_0x522bc6(0x1fc)],'type':_0x276cbb,'changeset':_['parseChangesetToProtocol'](_0x3d1702)},_0x593ef5=ss((_0x51a3c3=this[_0x522bc6(0x19a)][_0x522bc6(0x3ac)](ft))!=null?_0x51a3c3:Jt,_0x276cbb,_0x234907);try{await this[_0x522bc6(0x2c2)][_0x522bc6(0x46e)](_0x593ef5,{'body':_0xcf249c});}catch(_0xaea38a){throw this[_0x522bc6(0x289)][_0x522bc6(0x22c)](_0x522bc6(0x273),'submit\x20changeset\x20error!'),_0xaea38a;}}async[_0x4f35dc(0x216)](_0x254c6a){const _0x53c171=_0x4f35dc,{unitID:_0x393e48,from:_0x3f3756,to:_0x5e3033,unitType:_0x85f3d9}=_0x254c6a[_0x53c171(0x48a)];return(await this[_0x53c171(0x401)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x393e48,'type':_0x85f3d9,'from':_0x3f3756,'to':_0x5e3033}))[_0x53c171(0x507)];}},exports['CollaborationSocketService']=ts([ne(0x0,a[_0x4f35dc(0x1ac)](U['HTTPService'])),ne(0x1,a['Inject'](U[_0x4f35dc(0x399)])),ne(0x2,a[_0x4f35dc(0x301)]),ne(0x3,a[_0x4f35dc(0x428)]),ne(0x4,_[_0x4f35dc(0x2ba)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0xb25a91=_0x4f35dc;d(this,_0xb25a91(0x463),new v[(_0xb25a91(0x4eb))]()),d(this,'commentUpdate$',this['_commentUpdate$'][_0xb25a91(0x366)]());}['onCommentUpdate'](_0x48cb9f){const _0x536506=_0x4f35dc;this[_0x536506(0x463)]['next'](_0x48cb9f);}}var is=Object['defineProperty'],ns=Object[_0x4f35dc(0x21c)],rs=(_0x500e13,_0x701735,_0x1d55c6,_0x4e014e)=>{const _0xd34820=_0x4f35dc;for(var _0x198f95=_0x4e014e>0x1?void 0x0:_0x4e014e?ns(_0x701735,_0x1d55c6):_0x701735,_0x58bdbc=_0x500e13[_0xd34820(0x3a9)]-0x1,_0x2ddda0;_0x58bdbc>=0x0;_0x58bdbc--)(_0x2ddda0=_0x500e13[_0x58bdbc])&&(_0x198f95=(_0x4e014e?_0x2ddda0(_0x701735,_0x1d55c6,_0x198f95):_0x2ddda0(_0x198f95))||_0x198f95);return _0x4e014e&&_0x198f95&&is(_0x701735,_0x1d55c6,_0x198f95),_0x198f95;},qe=(_0xde2754,_0xe2c76f)=>(_0x540adc,_0x4bcf7a)=>_0xe2c76f(_0x540adc,_0x4bcf7a,_0xde2754);let K=class extends a['Disposable']{constructor(_0x319882,_0x1e17f4){const _0xe19f9=_0x4f35dc;super(),d(this,'_roomMembers',new Map()),(this[_0xe19f9(0x16d)]=_0x319882,this[_0xe19f9(0x37c)]=_0x1e17f4,this[_0xe19f9(0x14d)](a['toDisposable'](v[_0xe19f9(0x2b0)](this[_0xe19f9(0x16d)][_0xe19f9(0x274)](a[_0xe19f9(0x1f9)][_0xe19f9(0x396)])[_0xe19f9(0x49c)](E[_0xe19f9(0x201)](_0x5ad2d3=>_0x5ad2d3[_0xe19f9(0x402)]())),this['_univerInstanceService'][_0xe19f9(0x274)](a['UniverInstanceType']['UNIVER_DOC'])[_0xe19f9(0x49c)](E[_0xe19f9(0x201)](_0x2f150f=>_0x2f150f[_0xe19f9(0x402)]())),this[_0xe19f9(0x16d)][_0xe19f9(0x274)](a[_0xe19f9(0x1f9)][_0xe19f9(0x346)])[_0xe19f9(0x49c)](E['map'](_0x1fb6f0=>_0x1fb6f0[_0xe19f9(0x402)]())))[_0xe19f9(0x4df)](_0x41a7ed=>this['_removeRoom'](_0x41a7ed)))));}[_0x4f35dc(0x464)](_0x35cd9e){this['_userManagerService']['setCurrentUser'](_0x35cd9e);}[_0x4f35dc(0x486)](){const _0x34a9cb=_0x4f35dc;return this[_0x34a9cb(0x37c)][_0x34a9cb(0x486)]();}[_0x4f35dc(0x3b1)](_0x7ad8da,_0x492e52){const _0x824983=_0x4f35dc;let _0x1a0b25=this[_0x824983(0x39d)][_0x824983(0x20a)](_0x7ad8da);_0x1a0b25||(_0x1a0b25=new os(),this['_roomMembers'][_0x824983(0x4fa)](_0x7ad8da,_0x1a0b25)),_0x1a0b25[_0x824983(0x3b1)](_0x492e52);}['removeMember'](_0x35b324,_0xd29d94){const _0x5cf97d=_0x4f35dc,_0x45c138=this[_0x5cf97d(0x39d)]['get'](_0x35b324);_0x45c138&&_0x45c138[_0x5cf97d(0x33a)](_0xd29d94);}[_0x4f35dc(0x477)](_0x3f5870){return this['_roomMembers']['get'](_0x3f5870);}[_0x4f35dc(0x25e)](_0x49aa63,_0xa7203e){const _0x17851b=_0x4f35dc,_0x3fc40a=this['_roomMembers'][_0x17851b(0x20a)](_0x49aa63);if(_0x3fc40a)return _0x3fc40a[_0x17851b(0x25e)](_0xa7203e);}[_0x4f35dc(0x1ad)](_0x363891){const _0x111802=_0x4f35dc,_0x7d4723=this[_0x111802(0x39d)][_0x111802(0x20a)](_0x363891);_0x7d4723&&(_0x7d4723['dispose'](),this['_roomMembers'][_0x111802(0x424)](_0x363891));}[_0x4f35dc(0x3cc)](){const _0x1c4a8e=_0x4f35dc;this[_0x1c4a8e(0x39d)][_0x1c4a8e(0x155)](_0x34f36f=>_0x34f36f[_0x1c4a8e(0x3cc)]()),this[_0x1c4a8e(0x39d)]['clear']();}};K=rs([qe(0x0,a[_0x4f35dc(0x2e8)]),qe(0x1,a[_0x4f35dc(0x1ac)](a['UserManagerService']))],K);class os extends a[_0x4f35dc(0x188)]{constructor(){const _0x3358ac=_0x4f35dc;super(...arguments),d(this,_0x3358ac(0x1aa),new Map());}[_0x4f35dc(0x3cc)](){const _0x36114d=_0x4f35dc;this[_0x36114d(0x1aa)][_0x36114d(0x19f)]();}[_0x4f35dc(0x3b1)](_0x7817ec){const _0x43d70e=_0x4f35dc;this[_0x43d70e(0x1aa)][_0x43d70e(0x4fa)](_0x7817ec[_0x43d70e(0x1fc)],_0x7817ec);}[_0x4f35dc(0x33a)](_0x290fdb){const _0x3eff3b=_0x4f35dc;this[_0x3eff3b(0x1aa)][_0x3eff3b(0x424)](_0x290fdb);}[_0x4f35dc(0x25e)](_0x121bae){const _0x5f336b=_0x4f35dc;return this['_members'][_0x5f336b(0x20a)](_0x121bae);}}const as=_0x4f35dc(0x17c);function cs(_0x44c341){const _0x337d1b=_0x4f35dc;return JSON['stringify'](_0x44c341)[_0x337d1b(0x3a9)];}var ls=Object[_0x4f35dc(0x305)],hs=Object['getOwnPropertyDescriptor'],_s=(_0x4c6c3f,_0x25a9c4,_0x11255c,_0x4cd445)=>{for(var _0x57a695=_0x4cd445>0x1?void 0x0:_0x4cd445?hs(_0x25a9c4,_0x11255c):_0x25a9c4,_0x47ff6f=_0x4c6c3f['length']-0x1,_0x26eb95;_0x47ff6f>=0x0;_0x47ff6f--)(_0x26eb95=_0x4c6c3f[_0x47ff6f])&&(_0x57a695=(_0x4cd445?_0x26eb95(_0x25a9c4,_0x11255c,_0x57a695):_0x26eb95(_0x57a695))||_0x57a695);return _0x4cd445&&_0x57a695&&ls(_0x25a9c4,_0x11255c,_0x57a695),_0x57a695;},k=(_0xe05eea,_0x5f37cb)=>(_0xf42325,_0x16696d)=>_0x5f37cb(_0xf42325,_0x16696d,_0xe05eea),j=(_0x49174c=>(_0x49174c[_0x49174c[_0x4f35dc(0x125)]=0x0]=_0x4f35dc(0x125),_0x49174c[_0x49174c['JOINING']=0x1]=_0x4f35dc(0x467),_0x49174c[_0x49174c[_0x4f35dc(0x291)]=0x2]=_0x4f35dc(0x291),_0x49174c[_0x49174c[_0x4f35dc(0x156)]=0x3]='ONLINE',_0x49174c))(j||{});exports[_0x4f35dc(0x17b)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x3b206d,_0x184c5f,_0x229847,_0x32e1c8,_0x5894c8,_0x5620d5,_0x4689ca,_0x74d07c,_0x28f48a,_0xf64a89){const _0x2af319=_0x4f35dc;super(),d(this,'_sessionStatus$',new v[(_0x2af319(0x36c))](0x0)),d(this,_0x2af319(0x321),this[_0x2af319(0x34f)][_0x2af319(0x366)]()),d(this,_0x2af319(0x4ec),new v[(_0x2af319(0x4eb))]()),d(this,_0x2af319(0x251),this[_0x2af319(0x4ec)]['asObservable']()),d(this,_0x2af319(0x2a5)),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x2af319(0x12c),!0x1),d(this,_0x2af319(0x1df),null),(this['_unitID']=_0x3b206d,this['_logService']=_0x229847,this[_0x2af319(0x2cb)]=_0x32e1c8,this['_messageService']=_0x5894c8,this[_0x2af319(0x19a)]=_0x5620d5,this[_0x2af319(0x312)]=_0x4689ca,this['_memberService']=_0x74d07c,this[_0x2af319(0x191)]=_0x28f48a,this[_0x2af319(0x3d2)]=_0xf64a89,this['_shouldReportTelemetry']=!!this[_0x2af319(0x3d2)],_0x184c5f['pipe'](v[_0x2af319(0x39c)](this[_0x2af319(0x364)]))[_0x2af319(0x4df)](_0x41e08c=>{const _0x4bb3fd=_0x2af319;var _0xb533e1;typeof _0x41e08c>'u'||(this[_0x4bb3fd(0x2a5)]=_0x41e08c,_0x41e08c?(this['_joinRoom'](_0x41e08c),this[_0x4bb3fd(0x253)]=this[_0x4bb3fd(0x2a5)][_0x4bb3fd(0x348)][_0x4bb3fd(0x4df)](_0x53d1b1=>{const _0x35a4b6=_0x4bb3fd;_0x53d1b1[_0x35a4b6(0x476)]===this['_unitID']&&this[_0x35a4b6(0x1c8)](_0x53d1b1);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4bb3fd(0x34f)]['next'](0x2),(_0xb533e1=this[_0x4bb3fd(0x253)])==null||_0xb533e1[_0x4bb3fd(0x3cd)](),this['_socketMessageSubscription']=null));}),this[_0x2af319(0x14d)](this[_0x2af319(0x2cb)][_0x2af319(0x376)](()=>{const _0x31e071=_0x2af319;var _0x4a1862;(_0x4a1862=this['_socket'])==null||_0x4a1862['send']({'cmd':T[_0x31e071(0x235)],'data':{'roomID':this[_0x31e071(0x4bf)]}});})));}get[_0x4f35dc(0x15b)](){const _0x76205c=_0x4f35dc;return this[_0x76205c(0x34f)]['getValue']();}[_0x4f35dc(0x15a)](){const _0xd7ecc6=_0x4f35dc;var _0x332b66,_0x4deab6;return(_0x4deab6=(_0x332b66=this[_0xd7ecc6(0x2a5)])==null?void 0x0:_0x332b66[_0xd7ecc6(0x1fc)])!=null?_0x4deab6:null;}[_0x4f35dc(0x3cc)](){const _0x14ebe3=_0x4f35dc;super[_0x14ebe3(0x3cc)](),this[_0x14ebe3(0x364)][_0x14ebe3(0x245)](),this['dispose$'][_0x14ebe3(0x331)]();}[_0x4f35dc(0x232)](){const _0x58a907=_0x4f35dc;var _0x358bc4,_0x3e7b5c;this[_0x58a907(0x446)](),(_0x358bc4=this['_socket'])==null||_0x358bc4[_0x58a907(0x2da)]({'cmd':T['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x3e7b5c=this[_0x58a907(0x2a5)])==null||_0x3e7b5c[_0x58a907(0x232)](),this[_0x58a907(0x4ec)][_0x58a907(0x331)](),this[_0x58a907(0x34f)][_0x58a907(0x331)](),this[_0x58a907(0x3cc)]();}[_0x4f35dc(0x1c8)](_0x40b794){const _0x26dec1=_0x4f35dc;_0x40b794[_0x26dec1(0x243)]===T[_0x26dec1(0x26d)]?this[_0x26dec1(0x2bc)](_0x40b794):_0x40b794[_0x26dec1(0x243)]===T[_0x26dec1(0x3b9)]&&this['_onRecvEvent'](_0x40b794);}[_0x4f35dc(0x436)](_0x5064fe){const _0x2e9715=_0x4f35dc;this[_0x2e9715(0x34f)][_0x2e9715(0x245)](0x1),_0x5064fe[_0x2e9715(0x2da)]({'cmd':T[_0x2e9715(0x26d)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2e9715(0x4bf)]}]}});}[_0x4f35dc(0x2bc)](_0x49ab6b){const _0x4b88f1=_0x4f35dc;var _0x5034c3;if(_0x49ab6b[_0x4b88f1(0x1b5)]===ke[_0x4b88f1(0x12e)]){this[_0x4b88f1(0x3a4)][_0x4b88f1(0x50c)]({'type':Y[_0x4b88f1(0x4b1)]['Warning'],'content':this[_0x4b88f1(0x312)]['t'](_0x4b88f1(0x4a0))}),this['_sessionStatus$'][_0x4b88f1(0x245)](0x2);return;}this[_0x4b88f1(0x34f)][_0x4b88f1(0x245)](0x3);const _0x28db63=(_0x5034c3=_0x49ab6b[_0x4b88f1(0x48a)][_0x4b88f1(0x36a)][this[_0x4b88f1(0x4bf)]])==null?void 0x0:_0x5034c3[_0x4b88f1(0x49f)];_0x28db63&&_0x28db63[_0x4b88f1(0x155)](_0x465ab6=>this[_0x4b88f1(0x32a)][_0x4b88f1(0x3b1)](this[_0x4b88f1(0x4bf)],_0x465ab6));}['_onRecvEvent'](_0xca422a){const _0x520ab8=_0x4f35dc;try{const _0x57285a=_0xca422a[_0x520ab8(0x48a)];switch(_0x57285a[_0x520ab8(0x510)]){case _[_0x520ab8(0x2a7)]['USERS_ENTER']:this[_0x520ab8(0x414)](_0x57285a),this[_0x520ab8(0x4ec)]['next'](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x230)]:this['_onUserLeave'](_0x57285a),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x1bc)]:this[_0x520ab8(0x33f)](),this[_0x520ab8(0x1f2)](),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x385)]:this[_0x520ab8(0x289)][_0x520ab8(0x22c)](_0x520ab8(0x189)+JSON[_0x520ab8(0x2b4)](_0x57285a)),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _['CollaborationEvent'][_0x520ab8(0x484)]:this['_commentService'][_0x520ab8(0x2a3)](_0x57285a['data']),this['_event$'][_0x520ab8(0x245)](_0x57285a);break;default:this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);}}catch(_0x287521){this[_0x520ab8(0x289)]['error'](_0x287521,_0xca422a);}}[_0x4f35dc(0x414)](_0x5dc615){const _0x3c827e=_0x4f35dc;this[_0x3c827e(0x32a)]['updateMember'](this[_0x3c827e(0x4bf)],_0x5dc615[_0x3c827e(0x48a)]);}[_0x4f35dc(0x1a1)](_0x1ef22d){const _0x5a8e92=_0x4f35dc;this[_0x5a8e92(0x32a)][_0x5a8e92(0x33a)](this[_0x5a8e92(0x4bf)],_0x1ef22d[_0x5a8e92(0x48a)]['memberID']);}async['send'](_0x1456aa,_0x536bcf){const _0x324e13=_0x4f35dc;if(this[_0x324e13(0x15b)]!==0x3||!this[_0x324e13(0x2a5)])throw new Error(_0x324e13(0x1a7));try{_0x1456aa[_0x324e13(0x510)]===_[_0x324e13(0x2a7)][_0x324e13(0x2d2)]&&(this[_0x324e13(0x37f)](),this[_0x324e13(0x263)](_0x1456aa)),this['_socket'][_0x324e13(0x2da)]({'cmd':T[_0x324e13(0x2ab)],'routeKey':_0x536bcf,'routeType':'','data':_0x1456aa});}catch(_0x50ca59){this[_0x324e13(0x289)][_0x324e13(0x22c)](_0x50ca59);}}['_scheduleCollaborationTimeoutTimer'](){const _0x45fb81=_0x4f35dc;var _0x104c72;this[_0x45fb81(0x292)]=window['setTimeout'](()=>{const _0x1b63c5=_0x45fb81;this[_0x1b63c5(0x292)]=null,this[_0x1b63c5(0x3a4)][_0x1b63c5(0x50c)]({'type':Y['MessageType'][_0x1b63c5(0x45b)],'content':this[_0x1b63c5(0x312)]['t'](_0x1b63c5(0x421))});},(_0x104c72=this[_0x45fb81(0x19a)]['getConfig'](He))!=null?_0x104c72:dt);}[_0x4f35dc(0x1f2)](){const _0xa00271=_0x4f35dc;this[_0xa00271(0x292)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4f35dc(0x263)](_0x13d816){const _0xcf6722=_0x4f35dc;if(!this[_0xcf6722(0x12c)])return;const {data:_0x15265b}=_0x13d816,{unitID:_0x5e7377,changeset:_0x13b07f}=_0x15265b,{mutations:_0xaec628,type:_0x2e1192}=_0x13b07f;this[_0xcf6722(0x1df)]={'unitId':_0x5e7377,'type':_0x2e1192,'startTime':performance[_0xcf6722(0x353)](),'stopTime':0x0,'duration':0x0,'size':cs(_0xaec628)};}[_0x4f35dc(0x33f)](){const _0x1c6ca6=_0x4f35dc;if(this[_0x1c6ca6(0x12c)]){if(!this[_0x1c6ca6(0x1df)]){this[_0x1c6ca6(0x289)][_0x1c6ca6(0x22c)](_0x1c6ca6(0x273),_0x1c6ca6(0x47a));return;}this[_0x1c6ca6(0x1df)][_0x1c6ca6(0x267)]=performance[_0x1c6ca6(0x353)](),this[_0x1c6ca6(0x1df)]['duration']=this[_0x1c6ca6(0x1df)][_0x1c6ca6(0x267)]-this['_telemetryInfo']['startTime'],this[_0x1c6ca6(0x3d2)][_0x1c6ca6(0x2f5)](as,this[_0x1c6ca6(0x1df)]),this[_0x1c6ca6(0x1df)]=null;}}[_0x4f35dc(0x446)](){const _0xb0b227=_0x4f35dc;this[_0xb0b227(0x1df)]=null;}},exports['CollaborationSession']=_s([k(0x2,a[_0x4f35dc(0x428)]),k(0x3,M[_0x4f35dc(0x2d1)]),k(0x4,M[_0x4f35dc(0x1dc)]),k(0x5,a['IConfigService']),k(0x6,a['Inject'](a[_0x4f35dc(0x43c)])),k(0x7,a[_0x4f35dc(0x1ac)](K)),k(0x8,a['Inject'](Ve)),k(0x9,a[_0x4f35dc(0x445)](Bt['ITelemetryService']))],exports[_0x4f35dc(0x17b)]);var us=Object[_0x4f35dc(0x305)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x2912a0,_0x1e6c2a,_0x196f6e,_0x190a8f)=>{const _0x2176a9=_0x4f35dc;for(var _0x478dc1=_0x190a8f>0x1?void 0x0:_0x190a8f?ds(_0x1e6c2a,_0x196f6e):_0x1e6c2a,_0x38c027=_0x2912a0[_0x2176a9(0x3a9)]-0x1,_0x535c6b;_0x38c027>=0x0;_0x38c027--)(_0x535c6b=_0x2912a0[_0x38c027])&&(_0x478dc1=(_0x190a8f?_0x535c6b(_0x1e6c2a,_0x196f6e,_0x478dc1):_0x535c6b(_0x478dc1))||_0x478dc1);return _0x190a8f&&_0x478dc1&&us(_0x1e6c2a,_0x196f6e,_0x478dc1),_0x478dc1;},z=(_0x1ca575,_0x32ad92)=>(_0x5cffad,_0x5a2cf5)=>_0x32ad92(_0x5cffad,_0x5a2cf5,_0x1ca575);exports[_0x4f35dc(0x4a3)]=class extends a[_0x4f35dc(0x188)]{constructor(_0x1e66f3,_0x3867a7,_0x3817ab,_0x1ab25f,_0x4f7424,_0x165851){const _0x316a1f=_0x4f35dc;super(),d(this,'_socket$',new v[(_0x316a1f(0x36c))](void 0x0)),d(this,_0x316a1f(0x3d7),this[_0x316a1f(0x469)][_0x316a1f(0x366)]()),d(this,'_sessions',new Map()),d(this,_0x316a1f(0x4f8),new v[(_0x316a1f(0x36c))](j['IDLE'])),d(this,'status$',this['_status$'][_0x316a1f(0x366)]()),d(this,_0x316a1f(0x179),!0x1),d(this,_0x316a1f(0x1cf)),d(this,_0x316a1f(0x226),0x0),d(this,_0x316a1f(0x3ae)),d(this,_0x316a1f(0x498)),(this[_0x316a1f(0x183)]=_0x1e66f3,this['_localeService']=_0x3867a7,this['_messageService']=_0x3817ab,this['_logService']=_0x1ab25f,this['_configService']=_0x4f7424,this[_0x316a1f(0x139)]=_0x165851);}get[_0x4f35dc(0x2a5)](){const _0x71f4a9=_0x4f35dc;return this[_0x71f4a9(0x469)][_0x71f4a9(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x50c5c8=_0x4f35dc;super[_0x50c5c8(0x3cc)](),this[_0x50c5c8(0x392)][_0x50c5c8(0x155)](_0x18d925=>_0x18d925[_0x50c5c8(0x3cc)]()),this[_0x50c5c8(0x392)][_0x50c5c8(0x19f)](),this[_0x50c5c8(0x4f8)][_0x50c5c8(0x331)]();}async[_0x4f35dc(0x14b)](_0x3335ff){const _0x52a68e=_0x4f35dc;if(this[_0x52a68e(0x392)][_0x52a68e(0x34a)](_0x3335ff))return this[_0x52a68e(0x392)][_0x52a68e(0x20a)](_0x3335ff);this[_0x52a68e(0x4cc)]();const _0x1ac95f=this[_0x52a68e(0x183)][_0x52a68e(0x239)](exports[_0x52a68e(0x17b)],_0x3335ff,this[_0x52a68e(0x469)][_0x52a68e(0x366)]());return this[_0x52a68e(0x392)]['set'](_0x3335ff,_0x1ac95f),_0x1ac95f;}['closeSession'](_0x259eab){const _0x5acbef=_0x4f35dc;var _0x35ad7e;const _0x13edcf=this[_0x5acbef(0x392)][_0x5acbef(0x20a)](_0x259eab);_0x13edcf&&(this[_0x5acbef(0x392)][_0x5acbef(0x424)](_0x259eab),_0x13edcf['close']()),this[_0x5acbef(0x392)][_0x5acbef(0x2bd)]||(_0x35ad7e=this[_0x5acbef(0x2a5)])==null||_0x35ad7e[_0x5acbef(0x232)]();}[_0x4f35dc(0x493)](){const _0x422535=_0x4f35dc;this[_0x422535(0x226)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x422535(0x1cf)]),this[_0x422535(0x1cf)]=null),this[_0x422535(0x3e6)]();}[_0x4f35dc(0x1de)](){const _0x579719=_0x4f35dc;var _0x22b819;const _0x451a47=(_0x22b819=this[_0x579719(0x19a)][_0x579719(0x3ac)](_t))!=null?_0x22b819:Yt;return this[_0x579719(0x139)][_0x579719(0x2db)](_0x451a47);}[_0x4f35dc(0x4cc)](){const _0x134674=_0x4f35dc;try{const _0x3b09a5=this[_0x134674(0x1de)]();if(_0x3b09a5){const _0x519e05=_0x3b09a5[_0x134674(0x2da)];_0x3b09a5[_0x134674(0x2da)]=_0x5e721e=>(this['_rescheduleHeartbeat'](),_0x519e05['apply'](_0x3b09a5,[_0x5e721e])),_0x3b09a5['message$']['subscribe'](_0x46bfc6=>this[_0x134674(0x1f4)](_0x3b09a5,_0x46bfc6)),_0x3b09a5['error$']['pipe'](E[_0x134674(0x3b2)](0x1))[_0x134674(0x4df)](_0x5eb7a9=>this['_logService']['error'](_0x134674(0x42a),_0x5eb7a9)),_0x3b09a5[_0x134674(0x240)][_0x134674(0x49c)](E[_0x134674(0x3b2)](0x1))[_0x134674(0x4df)](()=>{this['_onConnectionOpen'](_0x3b09a5);}),_0x3b09a5[_0x134674(0x21d)][_0x134674(0x49c)](E[_0x134674(0x3b2)](0x1))['subscribe'](_0x4ec32d=>{const _0x15c124=_0x134674;this['_logService'][_0x15c124(0x33b)](_0x15c124(0x297),'socket\x20close',_0x4ec32d),this[_0x15c124(0x496)]();});}}catch(_0x5649d8){this[_0x134674(0x289)]['error'](_0x5649d8),this[_0x134674(0x496)]();}}['_onConnectionOpen'](_0xb3815e){const _0x56b62b=_0x4f35dc;this[_0x56b62b(0x289)][_0x56b62b(0x33b)](_0x56b62b(0x297),_0x56b62b(0x21f)),_0xb3815e[_0x56b62b(0x2da)]({'cmd':T['HELLO']}),this[_0x56b62b(0x3b0)](),this[_0x56b62b(0x3f8)]();}[_0x4f35dc(0x3f8)](){const _0x593d4a=_0x4f35dc,_0x4e6591=()=>{const _0x3d2896=_0x1935;this[_0x3d2896(0x494)](),this['_listenToOnlineEvent'](),window[_0x3d2896(0x35f)](_0x3d2896(0x2e6),_0x4e6591);};window['addEventListener'](_0x593d4a(0x2e6),_0x4e6591);}[_0x4f35dc(0x494)](){const _0x16482f=_0x4f35dc;this[_0x16482f(0x179)]=!0x1,this[_0x16482f(0x4f8)][_0x16482f(0x245)](j[_0x16482f(0x291)]),this[_0x16482f(0x469)][_0x16482f(0x245)](null),this[_0x16482f(0x2cd)](),this[_0x16482f(0x35b)]();}[_0x4f35dc(0x496)](){const _0xe77f9b=_0x4f35dc;var _0x465bdb;this['_onOffline'](),this[_0xe77f9b(0x226)]<((_0x465bdb=this['_configService'][_0xe77f9b(0x3ac)](vt))!=null?_0x465bdb:qt)?(this[_0xe77f9b(0x3a4)]['show']({'key':_0xe77f9b(0x481),'type':Y[_0xe77f9b(0x4b1)]['Warning'],'content':this[_0xe77f9b(0x312)]['t'](_0xe77f9b(0x34d))}),this[_0xe77f9b(0x3e6)]()):(this[_0xe77f9b(0x3a4)][_0xe77f9b(0x50c)]({'key':_0xe77f9b(0x481),'type':Y[_0xe77f9b(0x4b1)][_0xe77f9b(0x45b)],'content':this[_0xe77f9b(0x312)]['t'](_0xe77f9b(0x30e))}),this[_0xe77f9b(0x1c1)]());}[_0x4f35dc(0x1c1)](){const _0x3b437e=_0x4f35dc,_0x31af60=()=>{const _0x49b085=_0x1935;this[_0x49b085(0x493)](),window[_0x49b085(0x35f)]('online',_0x31af60);};window[_0x3b437e(0x17d)](_0x3b437e(0x3f5),_0x31af60),this[_0x3b437e(0x469)][_0x3b437e(0x49c)](E[_0x3b437e(0x404)](_0x58f46f=>!!_0x58f46f),E[_0x3b437e(0x3b2)](0x1))[_0x3b437e(0x4df)](()=>{const _0x461dcb=_0x3b437e;window[_0x461dcb(0x35f)](_0x461dcb(0x3f5),_0x31af60);});}[_0x4f35dc(0x3e6)](){const _0x485c57=_0x4f35dc;var _0x4d686b;const _0x11535d=this['_retryCount'],_0x1629c1=_0x11535d===0x0?0x0:((_0x4d686b=this[_0x485c57(0x19a)][_0x485c57(0x3ac)](St))!=null?_0x4d686b:Xt)*0x2**_0x11535d;this[_0x485c57(0x1cf)]=window['setTimeout'](()=>{const _0x28218d=_0x485c57;clearTimeout(this[_0x28218d(0x1cf)]),this[_0x28218d(0x1cf)]=null,this[_0x28218d(0x4cc)]();},_0x1629c1),this['_retryCount']+=0x1;}[_0x4f35dc(0x1f4)](_0x27e673,_0x3d29fe){const _0x394cdc=_0x4f35dc,{cmd:_0x5da699}=_0x3d29fe;_0x5da699===T[_0x394cdc(0x1fa)]&&!this[_0x394cdc(0x179)]&&(_0x27e673[_0x394cdc(0x1fc)]=_0x3d29fe[_0x394cdc(0x48a)][_0x394cdc(0x1fc)],this['_socket$'][_0x394cdc(0x245)](_0x27e673),this[_0x394cdc(0x4f8)][_0x394cdc(0x245)](j['ONLINE']),this[_0x394cdc(0x179)]=!0x0),_0x5da699===T[_0x394cdc(0x4fd)]&&this['_clearTimeoutTimer'](),this[_0x394cdc(0x3b0)]();}['_rescheduleHeartbeat'](){const _0x19ff2c=_0x4f35dc;var _0x5b23d9;this[_0x19ff2c(0x35b)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x19ff2c(0x433)](),(_0x5b23d9=this['_configService'][_0x19ff2c(0x3ac)](ut))!=null?_0x5b23d9:Kt);}[_0x4f35dc(0x433)](){const _0x3b32dd=_0x4f35dc;this['_socket'][_0x3b32dd(0x2da)]({'cmd':T[_0x3b32dd(0x4fd)]}),this[_0x3b32dd(0x1e5)]();}[_0x4f35dc(0x1e5)](){const _0x244d35=_0x4f35dc;var _0x26a35c;this[_0x244d35(0x498)]=window[_0x244d35(0x44b)](()=>this[_0x244d35(0x496)](),(_0x26a35c=this[_0x244d35(0x19a)][_0x244d35(0x3ac)](He))!=null?_0x26a35c:dt);}[_0x4f35dc(0x35b)](){const _0x2c334a=_0x4f35dc;this[_0x2c334a(0x3ae)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x2f0612=_0x4f35dc;this[_0x2f0612(0x498)]!=null&&(clearTimeout(this[_0x2f0612(0x498)]),this[_0x2f0612(0x498)]=null);}},exports[_0x4f35dc(0x4a3)]=Ss([z(0x0,a[_0x4f35dc(0x1ac)](a['Injector'])),z(0x1,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)])),z(0x2,M['IMessageService']),z(0x3,a[_0x4f35dc(0x428)]),z(0x4,a[_0x4f35dc(0x301)]),z(0x5,Be)],exports[_0x4f35dc(0x4a3)]);var vs=Object[_0x4f35dc(0x305)],ms=Object[_0x4f35dc(0x21c)],fs=(_0x5b54e0,_0x4e9fac,_0x4c837c,_0x3732d3)=>{const _0x2d1046=_0x4f35dc;for(var _0x3f7fc6=_0x3732d3>0x1?void 0x0:_0x3732d3?ms(_0x4e9fac,_0x4c837c):_0x4e9fac,_0x374b22=_0x5b54e0[_0x2d1046(0x3a9)]-0x1,_0x404d06;_0x374b22>=0x0;_0x374b22--)(_0x404d06=_0x5b54e0[_0x374b22])&&(_0x3f7fc6=(_0x3732d3?_0x404d06(_0x4e9fac,_0x4c837c,_0x3f7fc6):_0x404d06(_0x3f7fc6))||_0x3f7fc6);return _0x3732d3&&_0x3f7fc6&&vs(_0x4e9fac,_0x4c837c,_0x3f7fc6),_0x3f7fc6;},ze=(_0x52e582,_0x583a95)=>(_0x37a7b7,_0x376620)=>_0x583a95(_0x37a7b7,_0x376620,_0x52e582);let fe=class{constructor(_0x2e436b,_0x3eb879){const _0x1a9f5a=_0x4f35dc;this[_0x1a9f5a(0x183)]=_0x2e436b,this[_0x1a9f5a(0x2c0)]=_0x3eb879;}[_0x4f35dc(0x316)](_0x1b98d7){const _0x4564d7=_0x4f35dc;this[_0x4564d7(0x1cb)](_0x1b98d7),this[_0x4564d7(0x1d0)](_0x1b98d7);}[_0x4f35dc(0x425)](_0x186d37){const _0xa20511=_0x4f35dc,_0x550382=this[_0xa20511(0x183)][_0xa20511(0x20a)](w['IMEInputManagerService']),{redoCache:_0x337142}=_0x550382[_0xa20511(0x1e2)]();if(_0x337142[_0xa20511(0x3a9)]===0x0)return _0x186d37;let _0x5e10a2=a['Tools'][_0xa20511(0x3fd)](_0x186d37[_0xa20511(0x24a)][0x0]);for(let _0x2e3dc4=0x0;_0x2e3dc4<_0x337142[_0xa20511(0x3a9)];_0x2e3dc4++){const _0x48cca3={'id':'doc.mutation.rich-text-editing','params':{..._0x337142[_0x2e3dc4]}},_0x755231=this[_0xa20511(0x2c0)][_0xa20511(0x1cd)](_0x5e10a2,_0x48cca3,!0x1);if(_[_0xa20511(0x4d3)](_0x755231))throw _0x755231[_0xa20511(0x22c)];_0x5e10a2=_0x755231[_0xa20511(0x246)];}return{...a[_0xa20511(0x374)][_0xa20511(0x3fd)](_0x186d37),'mutations':[_0x5e10a2]};}['_transformUndoRedoStack'](_0x5c72cb){const _0x231927=_0x4f35dc,_0x284f5a=this[_0x231927(0x183)][_0x231927(0x20a)](w[_0x231927(0x14e)]),{undoCache:_0x3af80d,redoCache:_0x5501ab}=_0x284f5a[_0x231927(0x1e2)]();if(_0x3af80d[_0x231927(0x3a9)]===0x0||_0x5501ab[_0x231927(0x3a9)]===0x0)return;const _0x1668a7=[],_0x30cd11=[];let _0x182b69=a['Tools'][_0x231927(0x3fd)](_0x5c72cb['mutations'][0x0]),_0x8940e1=a['Tools'][_0x231927(0x3fd)](_0x5c72cb[_0x231927(0x24a)][0x0]);for(let _0x432beb=_0x3af80d[_0x231927(0x3a9)]-0x1;_0x432beb>=0x0;_0x432beb--){const _0x203503={'id':_0x231927(0x38b),'params':{..._0x3af80d[_0x432beb]}},_0x1756d8={'id':_0x231927(0x38b),'params':{..._0x5501ab[_0x432beb]}},_0x4dd05d=this[_0x231927(0x2c0)][_0x231927(0x1cd)](_0x182b69,_0x203503,!0x1),_0x282bc6=this[_0x231927(0x2c0)][_0x231927(0x1cd)](_0x8940e1,_0x1756d8,!0x1);if(_['isTransformMutationFailure'](_0x4dd05d))throw _0x4dd05d[_0x231927(0x22c)];if(_['isTransformMutationFailure'](_0x282bc6))throw _0x282bc6[_0x231927(0x22c)];_0x1668a7[_0x231927(0x358)](_0x4dd05d[_0x231927(0x3c7)][_0x231927(0x1e1)]),_0x30cd11['unshift'](_0x282bc6[_0x231927(0x3c7)]['params']),_0x182b69=_0x4dd05d[_0x231927(0x246)],_0x8940e1=_0x282bc6[_0x231927(0x246)];}_0x284f5a[_0x231927(0x2f7)]({'undoCache':_0x1668a7,'redoCache':_0x30cd11});}[_0x4f35dc(0x1d0)](_0x5b343b){const _0x4efcc7=_0x4f35dc,_0x5d061d=this[_0x4efcc7(0x183)][_0x4efcc7(0x20a)](w[_0x4efcc7(0x14e)]),_0x52f785=_0x5d061d[_0x4efcc7(0x505)]();if(_0x52f785==null)return;const _0x549d6d=[{'id':_0x4efcc7(0x38b),'params':{'unitId':_0x5b343b['unitID'],'actions':null,'textRanges':[_0x52f785]}}],_0x107032=this['_transformService']['transformMutationsWithChangeset'](_0x5b343b,_0x549d6d);if(!_[_0x4efcc7(0x46f)](_0x107032))throw _0x107032[_0x4efcc7(0x22c)];const _0x2c9b4e=_0x107032[_0x4efcc7(0x3c7)][0x0]['params'][_0x4efcc7(0x2e0)];Array['isArray'](_0x2c9b4e)&&_0x2c9b4e['length']&&_0x5d061d[_0x4efcc7(0x2ea)](_0x2c9b4e[0x0]);}};fe=fs([ze(0x0,a['Inject'](a[_0x4f35dc(0x37b)])),ze(0x1,_[_0x4f35dc(0x329)])],fe);var gs=Object['defineProperty'],Is=Object[_0x4f35dc(0x21c)],ps=(_0x2d39a3,_0x5804b8,_0x2560bc,_0x5832c9)=>{for(var _0x252cbd=_0x5832c9>0x1?void 0x0:_0x5832c9?Is(_0x5804b8,_0x2560bc):_0x5804b8,_0x13c6a6=_0x2d39a3['length']-0x1,_0x422c17;_0x13c6a6>=0x0;_0x13c6a6--)(_0x422c17=_0x2d39a3[_0x13c6a6])&&(_0x252cbd=(_0x5832c9?_0x422c17(_0x5804b8,_0x2560bc,_0x252cbd):_0x422c17(_0x252cbd))||_0x252cbd);return _0x5832c9&&_0x252cbd&&gs(_0x5804b8,_0x2560bc,_0x252cbd),_0x252cbd;},re=(_0x523bcc,_0x1f3b1e)=>(_0x31c328,_0x27df4b)=>_0x1f3b1e(_0x31c328,_0x27df4b,_0x523bcc);exports[_0x4f35dc(0x29a)]=class extends a[_0x4f35dc(0x188)]{constructor(_0x475cb3,_0x168774,_0x1d3dff,_0x4819b9,_0x46b76a){const _0x2cd0fb=_0x4f35dc;super(),d(this,_0x2cd0fb(0x520),new Map()),d(this,_0x2cd0fb(0x17e),new Map()),d(this,_0x2cd0fb(0x15c),!0x1),(this['_configService']=_0x475cb3,this[_0x2cd0fb(0x38a)]=_0x168774,this[_0x2cd0fb(0x2cb)]=_0x1d3dff,this['_localeService']=_0x4819b9,this['_revisionService']=_0x46b76a,this[_0x2cd0fb(0x218)]());}[_0x4f35dc(0x1d7)](){const _0x4aa68d=_0x4f35dc;this[_0x4aa68d(0x15c)]=!0x0;}['enableLocalCache'](){const _0x38b5a9=_0x4f35dc;this[_0x38b5a9(0x15c)]=!0x1;}['dispose'](){const _0x395534=_0x4f35dc;this[_0x395534(0x1ab)]()[_0x395534(0x120)](()=>super[_0x395534(0x3cc)]());}async[_0x4f35dc(0x47b)](_0x32b023){const _0x47a6fc=_0x4f35dc;return this['_disabled']?null:this[_0x47a6fc(0x38a)][_0x47a6fc(0x478)](Je(_0x32b023));}async[_0x4f35dc(0x4ed)](_0x87f360,_0x4c1041){const _0x16e903=_0x4f35dc;return!!this['_localStorageService'][_0x16e903(0x447)](_0x87f360,_0x4c1041);}[_0x4f35dc(0x389)](_0x40a8ec,_0x4fd5c7,_0xbc2311,_0x310c01){const _0x4f5571=_0x4f35dc,_0x1bb125=this[_0x4f5571(0x1e0)][_0x4f5571(0x1ee)](_0x40a8ec);this[_0x4f5571(0x520)][_0x4f5571(0x4fa)](_0x40a8ec,{'unitID':_0x40a8ec,'type':_0x4fd5c7,'awaitingChangeset':_0xbc2311,'mutations':_0x310c01,'rev':_0x1bb125}),this[_0x4f5571(0x17e)][_0x4f5571(0x34a)](_0x40a8ec)||this['_scheduleSaving'](_0x40a8ec);}['_scheduleSaving'](_0x45f5e6){const _0x2257ff=_0x4f35dc,_0x491e8b=this[_0x2257ff(0x47c)]();_0x491e8b===0x0?this[_0x2257ff(0x23f)](_0x45f5e6):this['_saveTaskMap'][_0x2257ff(0x4fa)](_0x45f5e6,setTimeout(()=>this['_saveCache'](_0x45f5e6),_0x491e8b));}['_getSaveTimeout'](){const _0x2f6b13=_0x4f35dc;var _0x1eb2ae;return(_0x1eb2ae=this[_0x2f6b13(0x19a)][_0x2f6b13(0x3ac)](mt))!=null?_0x1eb2ae:zt;}[_0x4f35dc(0x23f)](_0x2ef0bd){const _0x13d4e4=_0x4f35dc,_0x19e5fb=this['_saveTaskMap']['get'](_0x2ef0bd);return _0x19e5fb!==void 0x0&&window['clearTimeout'](_0x19e5fb),this[_0x13d4e4(0x38a)][_0x13d4e4(0x447)](Je(_0x2ef0bd),this[_0x13d4e4(0x520)]['get'](_0x2ef0bd))[_0x13d4e4(0x120)](()=>this[_0x13d4e4(0x17e)][_0x13d4e4(0x424)](_0x2ef0bd));}async[_0x4f35dc(0x1ab)](){const _0x441c53=_0x4f35dc,_0xb62bab=[];this['_saveTaskMap']['forEach']((_0x55e99f,_0x3f3270)=>{const _0x929771=_0x1935;window[_0x929771(0x2ca)](_0x55e99f),_0xb62bab[_0x929771(0x268)](this[_0x929771(0x23f)](_0x3f3270)[_0x929771(0x120)](()=>{this['_saveTaskMap']['delete'](_0x3f3270);}));}),await Promise[_0x441c53(0x1d5)](_0xb62bab);}['_setupBeforeClosingHandler'](){const _0x21736d=_0x4f35dc;this[_0x21736d(0x14d)](this[_0x21736d(0x2cb)][_0x21736d(0x4b6)](()=>{const _0x4ef923=_0x21736d;if(this[_0x4ef923(0x17e)][_0x4ef923(0x2bd)])return this['_localeService']['t'](_0x4ef923(0x450));}));}},exports[_0x4f35dc(0x29a)]=ps([re(0x0,a[_0x4f35dc(0x301)]),re(0x1,a[_0x4f35dc(0x3a5)]),re(0x2,M[_0x4f35dc(0x2d1)]),re(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)])),re(0x4,a['Inject'](_[_0x4f35dc(0x4b2)]))],exports[_0x4f35dc(0x29a)]);function Je(_0x28a744){const _0x169134=_0x4f35dc;return _0x169134(0x29c)+_0x28a744;}var Cs=Object[_0x4f35dc(0x305)],Es=Object[_0x4f35dc(0x21c)],bs=(_0x355ba6,_0x35621b,_0x3e1673,_0x1429e4)=>{const _0xd5dd7c=_0x4f35dc;for(var _0x14c2d6=_0x1429e4>0x1?void 0x0:_0x1429e4?Es(_0x35621b,_0x3e1673):_0x35621b,_0x1399fc=_0x355ba6[_0xd5dd7c(0x3a9)]-0x1,_0x13197c;_0x1399fc>=0x0;_0x1399fc--)(_0x13197c=_0x355ba6[_0x1399fc])&&(_0x14c2d6=(_0x1429e4?_0x13197c(_0x35621b,_0x3e1673,_0x14c2d6):_0x13197c(_0x14c2d6))||_0x14c2d6);return _0x1429e4&&_0x14c2d6&&Cs(_0x35621b,_0x3e1673,_0x14c2d6),_0x14c2d6;},Re=(_0x402656,_0x2e36da)=>(_0x1871c9,_0x1ac296)=>_0x2e36da(_0x1871c9,_0x1ac296,_0x402656);function Ts(_0x5863ca){const _0x53257b=_0x4f35dc,{unitID:_0x2e7e13,mutations:_0x27a22f}=_0x5863ca;return{'unitId':_0x2e7e13,'subUnitId':_0x27a22f[0x0][_0x53257b(0x1e1)][_0x53257b(0x176)]};}let ge=class{constructor(_0x194c15,_0x3368cb,_0x51516c){const _0x3de4f3=_0x4f35dc;this[_0x3de4f3(0x183)]=_0x194c15,this[_0x3de4f3(0x2c0)]=_0x3368cb,this[_0x3de4f3(0x1ff)]=_0x51516c;}[_0x4f35dc(0x153)](_0x32e8a9){const _0x428249=_0x4f35dc;var _0x43c542,_0x32b4a0,_0x3cdcc2,_0x205689,_0x41981d;const _0x4b3e25=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x4725c6,subUnitId:_0x194eb4}=Ts(_0x32e8a9),_0x3d4b1c=_0x4b3e25[_0x428249(0x51a)](_0x4725c6)['getCurrentSelections'](),_0x154e05=(_0x32b4a0=(_0x43c542=this[_0x428249(0x1ff)][_0x428249(0x466)](_0x4725c6))==null?void 0x0:_0x43c542[_0x428249(0x23e)]())==null?void 0x0:_0x32b4a0['getSheetId']();if(_0x3d4b1c['length']===0x0||!_0x4725c6||!_0x194eb4)return;const _0x452328=[{'id':C[_0x428249(0x479)]['id'],'params':{'unitId':_0x4725c6,'subUnitId':_0x154e05,'selections':a[_0x428249(0x374)]['deepClone'](_0x3d4b1c)}}],_0x58bdfb=this['_transformService'][_0x428249(0x377)](_0x32e8a9,_0x452328);if(!_[_0x428249(0x46f)](_0x58bdfb))throw _0x58bdfb[_0x428249(0x22c)];const _0x1b5be2=(_0x41981d=(_0x205689=(_0x3cdcc2=_0x58bdfb[_0x428249(0x3c7)][0x0])==null?void 0x0:_0x3cdcc2['params'])==null?void 0x0:_0x205689[_0x428249(0x152)])!=null?_0x41981d:_0x3d4b1c;Array[_0x428249(0x13c)](_0x1b5be2)&&_0x1b5be2[_0x428249(0x3a9)]&&this['_injector']['get'](a[_0x428249(0x3ed)])[_0x428249(0x3dc)](C['SetSelectionsOperation']['id'],{'unitId':_0x4725c6,'subUnitId':_0x194eb4,'selections':_0x1b5be2});}};ge=bs([Re(0x0,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),Re(0x1,_[_0x4f35dc(0x329)]),Re(0x2,a[_0x4f35dc(0x2e8)])],ge);const Ce=a[_0x4f35dc(0x2ff)]('univer-pro.collaboration-client.single-active-unit-service');var bt=(_0x25be9c=>(_0x25be9c[_0x25be9c[_0x4f35dc(0x3c5)]=0x0]=_0x4f35dc(0x3c5),_0x25be9c[_0x25be9c[_0x4f35dc(0x27f)]=0x1]=_0x4f35dc(0x27f),_0x25be9c))(bt||{});const Ze=0x7530,Qe=_0x4f35dc(0x406);class Rs extends a['Disposable']{constructor(){const _0x16a84c=_0x4f35dc;super(),d(this,_0x16a84c(0x4ee),a[_0x16a84c(0x374)][_0x16a84c(0x2a6)]()),d(this,_0x16a84c(0x503),new Set()),d(this,_0x16a84c(0x2eb),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x16a84c(0x2f1),new Map()),d(this,_0x16a84c(0x3ba),new Map()),this['_init']();}[_0x4f35dc(0x3cc)](){const _0x33a391=_0x4f35dc;super[_0x33a391(0x3cc)](),this['_clearOtherTimers'][_0x33a391(0x155)]((_0x208b8b,_0x396530)=>this[_0x33a391(0x132)](_0x396530)),this[_0x33a391(0x3ec)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4f35dc(0x4af)](_0x2056b0){const _0x2e0dcd=_0x4f35dc;return this[_0x2e0dcd(0x1d9)](_0x2056b0)[_0x2e0dcd(0x49c)](v[_0x2e0dcd(0x483)]());}[_0x4f35dc(0x180)](_0xf8484b){const _0x31ca56=_0x4f35dc;this[_0x31ca56(0x503)][_0x31ca56(0x2bd)]===0x0&&this[_0x31ca56(0x24b)](),this[_0x31ca56(0x503)][_0x31ca56(0x3e5)](_0xf8484b),this['_send']({'type':0x0,'memberID':this[_0x31ca56(0x4ee)],'unitIDs':[_0xf8484b],'isForwarded':!0x1});}['disposeUnit'](_0x42f10b){const _0x52df56=_0x4f35dc;this[_0x52df56(0x503)]['delete'](_0x42f10b),this['_selfUnitIDs'][_0x52df56(0x2bd)]===0x0&&this[_0x52df56(0x3ec)]&&window[_0x52df56(0x1e7)](this[_0x52df56(0x3ec)]);}[_0x4f35dc(0x18b)](){const _0x5d8bf7=_0x4f35dc;this['disposeWithMe'](a[_0x5d8bf7(0x456)](v['fromEvent'](window,_0x5d8bf7(0x349))[_0x5d8bf7(0x4df)](_0x4bd4a8=>{const _0x6968ca=_0x5d8bf7;if(_0x4bd4a8['key']!==Qe||!_0x4bd4a8[_0x6968ca(0x1d8)])return;const _0x132dd3=JSON[_0x6968ca(0x4b0)](_0x4bd4a8[_0x6968ca(0x1d8)]);this['_handleEvent'](_0x132dd3);}))),window['addEventListener']('unload',()=>this[_0x5d8bf7(0x485)]({'type':0x1,'memberID':this[_0x5d8bf7(0x4ee)],'unitIDs':Array[_0x5d8bf7(0x1fb)](this['_selfUnitIDs'])}));}[_0x4f35dc(0x449)](_0x31692e){const _0x10c6e6=_0x4f35dc;switch(_0x31692e[_0x10c6e6(0x419)]){case 0x0:this['_handleJoinEvent'](_0x31692e);break;case 0x1:this['_handleLeaveEvent'](_0x31692e);break;case 0x2:this['_handleHeartbeatEvent'](_0x31692e);break;}}['_handleJoinEvent'](_0x2e1f2a){const _0x336b45=_0x4f35dc,{unitIDs:_0x3272b7,memberID:_0xba71c4,isForwarded:_0x20c4b3}=_0x2e1f2a;_0x3272b7[_0x336b45(0x155)](_0x593558=>{const _0x2e9e34=_0x336b45;if(!_0x20c4b3&&this[_0x2e9e34(0x2eb)][_0x2e9e34(0x34a)](_0x593558)&&this[_0x2e9e34(0x1d9)](_0x593558)['next'](0x1),!this[_0x2e9e34(0x2eb)]['has'](_0x593558)||!this['_unitOnClients'][_0x2e9e34(0x20a)](_0x593558)['has'](_0xba71c4)){const _0x3add8e=this[_0x2e9e34(0x2eb)]['get'](_0x593558)||new Set();_0x3add8e[_0x2e9e34(0x3e5)](_0xba71c4),this[_0x2e9e34(0x2eb)][_0x2e9e34(0x4fa)](_0x593558,_0x3add8e),this[_0x2e9e34(0x2fa)](_0xba71c4);}}),_0x20c4b3||this[_0x336b45(0x485)]({'type':0x0,'memberID':this[_0x336b45(0x4ee)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4f35dc(0x2fa)](_0x359ca2){const _0x51e24d=_0x4f35dc;this[_0x51e24d(0x132)](_0x359ca2);const _0x300d1b=window[_0x51e24d(0x44b)](()=>{const _0x4579e5=_0x51e24d;this[_0x4579e5(0x2eb)][_0x4579e5(0x155)](_0x461376=>{_0x461376['delete'](_0x359ca2);});},Ze*0x2);this[_0x51e24d(0x2f1)][_0x51e24d(0x4fa)](_0x359ca2,_0x300d1b);}[_0x4f35dc(0x132)](_0x291501){const _0xe98a1e=_0x4f35dc;if(this[_0xe98a1e(0x2f1)][_0xe98a1e(0x34a)](_0x291501)){const _0x36cb5a=this[_0xe98a1e(0x2f1)][_0xe98a1e(0x20a)](_0x291501);_0x36cb5a&&window[_0xe98a1e(0x2ca)](_0x36cb5a),this[_0xe98a1e(0x2f1)]['set'](_0x291501,null);}}[_0x4f35dc(0x45f)](_0x593d82){const _0x928ee=_0x4f35dc,{memberID:_0x533395,unitIDs:_0xa2fb01}=_0x593d82;_0xa2fb01[_0x928ee(0x155)](_0x3ff997=>{const _0x551a78=_0x928ee;var _0x339be8;const _0x1cdc71=this[_0x551a78(0x2eb)][_0x551a78(0x20a)](_0x3ff997);_0x1cdc71&&(_0x1cdc71['delete'](_0x533395),(_0x339be8=this['_ensureSubject'](_0x3ff997))==null||_0x339be8[_0x551a78(0x245)](_0x1cdc71['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x533395);}[_0x4f35dc(0x4ca)](_0x2e6ff8){const _0x304b89=_0x4f35dc;this[_0x304b89(0x2fa)](_0x2e6ff8[_0x304b89(0x1fc)]);}[_0x4f35dc(0x485)](_0x543f29){const _0x3bd72f=_0x4f35dc;localStorage[_0x3bd72f(0x447)](Qe,JSON[_0x3bd72f(0x2b4)](_0x543f29));}[_0x4f35dc(0x24b)](){const _0x67a5c7=_0x4f35dc;this[_0x67a5c7(0x3ec)]=window['setInterval'](()=>{const _0x178658=_0x67a5c7;this[_0x178658(0x485)]({'type':0x2,'memberID':this[_0x178658(0x4ee)]});},Ze);}[_0x4f35dc(0x1d9)](_0x174c7e){const _0x5ef985=_0x4f35dc;return this['_unitStatus']['has'](_0x174c7e)||this['_unitStatus'][_0x5ef985(0x4fa)](_0x174c7e,new v[(_0x5ef985(0x36c))](0x0)),this[_0x5ef985(0x3ba)][_0x5ef985(0x20a)](_0x174c7e);}}function Tt(_0x1b74be){let _0x50417b='';for(const _0x53a681 of _0x1b74be){const {startOffset:_0x154448,endOffset:_0x138158,isActive:_0x3a7648}=_0x53a681;_0x50417b['length']&&(_0x50417b+=','),_0x50417b+=_0x154448+':'+_0x138158+':'+(_0x3a7648?'1':'0');}return _0x50417b;}function Os(_0x4f6211){const _0x4dc1e9=_0x4f35dc,_0x4b6502=_0x4f6211['split'](','),_0x5bdbd0=[];for(const _0x45461f of _0x4b6502){const [_0x6bdf8c,_0x297527,_0x287ffb]=_0x45461f[_0x4dc1e9(0x28d)](':');_0x5bdbd0[_0x4dc1e9(0x268)]({'startOffset':Number(_0x6bdf8c),'endOffset':Number(_0x297527),'collapsed':_0x6bdf8c===_0x297527,'isActive':_0x287ffb==='1'});}return _0x5bdbd0[_0x4dc1e9(0x3eb)](_0x2a0a3c=>_0x2a0a3c[_0x4dc1e9(0x134)])||(_0x5bdbd0[0x0][_0x4dc1e9(0x134)]=!0x0),_0x5bdbd0;}class Fe extends a[_0x4f35dc(0x1fe)]{constructor(){const _0x208d79=_0x4f35dc;super(...arguments),d(this,_0x208d79(0x4dc),new v[(_0x208d79(0x36c))](null)),d(this,_0x208d79(0x33e),this['_collabCursorState$'][_0x208d79(0x366)]());}[_0x4f35dc(0x11e)](_0x14a089){const {unitID:_0x13f4aa,memberID:_0x2ac415,textRanges:_0x5a86e0}=_0x14a089,_0x4e2cbb=Tt(_0x5a86e0),_0x15c022={'unitID':_0x13f4aa,'memberID':_0x2ac415,'selection':_0x4e2cbb};this['_collabCursorState$']['next'](_0x15c022);}}var Ds=Object['defineProperty'],ys=Object['getOwnPropertyDescriptor'],Ps=(_0x1a0600,_0x5ae1cc,_0x4a1ea3,_0x571607)=>{const _0x595bf8=_0x4f35dc;for(var _0x37786b=_0x571607>0x1?void 0x0:_0x571607?ys(_0x5ae1cc,_0x4a1ea3):_0x5ae1cc,_0xf7076a=_0x1a0600[_0x595bf8(0x3a9)]-0x1,_0x339472;_0xf7076a>=0x0;_0xf7076a--)(_0x339472=_0x1a0600[_0xf7076a])&&(_0x37786b=(_0x571607?_0x339472(_0x5ae1cc,_0x4a1ea3,_0x37786b):_0x339472(_0x37786b))||_0x37786b);return _0x571607&&_0x37786b&&Ds(_0x5ae1cc,_0x4a1ea3,_0x37786b),_0x37786b;},et=(_0x57ae5e,_0x2104b7)=>(_0x4886b1,_0x509e20)=>_0x2104b7(_0x4886b1,_0x509e20,_0x57ae5e);let Ie=class{constructor(_0x42774c,_0x390d29){const _0x189056=_0x4f35dc;this['_injector']=_0x42774c,this[_0x189056(0x2c0)]=_0x390d29;}[_0x4f35dc(0x153)](_0x3078f4){const _0x5bc28b=_0x4f35dc;var _0x3284f8;const _0x52c584=this[_0x5bc28b(0x183)]['get'](w['TextSelectionManagerService']),_0x5e9da6=(_0x3284f8=_0x52c584[_0x5bc28b(0x4a8)]())!=null?_0x3284f8:[],_0x3b346a=_0x5e9da6==null?void 0x0:_0x5e9da6['map'](w['serializeDocRange']);if(_0x3b346a[_0x5bc28b(0x3a9)]===0x0)return;const _0x469e21=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3078f4['unitID'],'actions':null,'textRanges':_0x3b346a}}],_0x2e2568=this['_transformService'][_0x5bc28b(0x377)](_0x3078f4,_0x469e21);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2e2568))throw _0x2e2568[_0x5bc28b(0x22c)];const _0x3b326b=_0x2e2568['m2Prime'][0x0][_0x5bc28b(0x1e1)][_0x5bc28b(0x2e0)];Array['isArray'](_0x3b326b)&&_0x3b326b[_0x5bc28b(0x3a9)]&&_0x52c584[_0x5bc28b(0x375)](_0x3b326b,!0x1);}};Ie=Ps([et(0x0,a[_0x4f35dc(0x1ac)](a['Injector'])),et(0x1,_[_0x4f35dc(0x329)])],Ie);const ws=new Set([C[_0x4f35dc(0x36b)]['id']]);function tt(_0x385fa0,_0x203ac1,_0x8b9c87,_0x31df85,_0x21b17c){const _0x2571de=_0x4f35dc;var _0x4a13b1,_0x54a975,_0x19bf16,_0x46abfd;const _0x34c52f=[];for(const _0x29d2ce of _0x385fa0)if(ws[_0x2571de(0x34a)](_0x29d2ce['id'])){if(_0x34c52f['length']>0x0)break;_0x34c52f['push'](_0x29d2ce);break;}else _0x34c52f[_0x2571de(0x268)](_0x29d2ce);const _0x3331ac=(_0x54a975=(_0x4a13b1=_0x21b17c[_0x2571de(0x486)]())==null?void 0x0:_0x4a13b1['userID'])!=null?_0x54a975:'unknown',_0x2a70d0=(_0x46abfd=(_0x19bf16=_0x21b17c[_0x2571de(0x486)]())==null?void 0x0:_0x19bf16[_0x2571de(0x1fc)])!=null?_0x46abfd:'unknown';return{'changeset':{'unitID':_0x203ac1,'type':_['mapDocumentTypeToUniverType'](_0x8b9c87[_0x2571de(0x35e)](_0x203ac1)),'baseRev':_0x31df85[_0x2571de(0x1ee)](_0x203ac1),'revision':0x0,'userID':_0x3331ac,'memberID':_0x2a70d0,'mutations':_0x34c52f},'pendingMutations':_0x385fa0[_0x2571de(0x223)](_0x34c52f[_0x2571de(0x3a9)])};}function Us(_0x405945,_0x2b99c4,_0x2cba7e,_0x1b4825,_0x5a8065){const _0x557579=_0x4f35dc;var _0x12d3a8,_0x5371b3,_0x1604e5,_0x701d13;const _0x3b1dfd=[_0x405945[_0x557579(0x453)]((_0x3c2606,_0x4e3feb)=>{const _0x41cf66=_0x557579;var _0x4e320c;const {id:_0x50b519}=_0x3c2606,{id:_0x24dac6,type:_0x47eba9}=_0x4e3feb,_0x158362=(_0x4e320c=_0x3c2606[_0x41cf66(0x1e1)])!=null?_0x4e320c:{'actions':null},_0x406499=_0x4e3feb[_0x41cf66(0x1e1)];if(_0x50b519&&_0x50b519!==_0x24dac6)throw new Error(_0x41cf66(0x3d3)+_0x50b519+_0x41cf66(0x220)+_0x24dac6+'.');return{..._0x3c2606,'id':_0x24dac6,'type':_0x47eba9,'params':{'unitId':_0x406499[_0x41cf66(0x284)],'textRanges':_0x406499[_0x41cf66(0x2e0)],'actions':a[_0x41cf66(0x4e9)][_0x41cf66(0x18f)](_0x158362[_0x41cf66(0x37d)],_0x406499[_0x41cf66(0x37d)])}};},{})],_0x470a90=(_0x5371b3=(_0x12d3a8=_0x5a8065['getCurrentUser']())==null?void 0x0:_0x12d3a8['userID'])!=null?_0x5371b3:_0x557579(0x1e3),_0x4c539f=(_0x701d13=(_0x1604e5=_0x5a8065['getCurrentUser']())==null?void 0x0:_0x1604e5[_0x557579(0x1fc)])!=null?_0x701d13:_0x557579(0x1e3);return{'changeset':{'unitID':_0x2b99c4,'type':_[_0x557579(0x1f7)](_0x2cba7e[_0x557579(0x35e)](_0x2b99c4)),'baseRev':_0x1b4825['getCurrentRevForDocument'](_0x2b99c4),'revision':0x0,'userID':_0x470a90,'memberID':_0x4c539f,'mutations':_0x3b1dfd},'pendingMutations':[]};}const Ns={'id':C[_0x4f35dc(0x3b5)]['id'],'type':a[_0x4f35dc(0x48c)]['MUTATION'],'params':{}};var Ms=Object[_0x4f35dc(0x305)],Ls=Object[_0x4f35dc(0x21c)],X=(_0x58d1f9,_0xce0883,_0x1bb21a,_0xc5ef28)=>{const _0x254b09=_0x4f35dc;for(var _0x3d6343=_0xc5ef28>0x1?void 0x0:_0xc5ef28?Ls(_0xce0883,_0x1bb21a):_0xce0883,_0x53e64f=_0x58d1f9[_0x254b09(0x3a9)]-0x1,_0x99f421;_0x53e64f>=0x0;_0x53e64f--)(_0x99f421=_0x58d1f9[_0x53e64f])&&(_0x3d6343=(_0xc5ef28?_0x99f421(_0xce0883,_0x1bb21a,_0x3d6343):_0x99f421(_0x3d6343))||_0x3d6343);return _0xc5ef28&&_0x3d6343&&Ms(_0xce0883,_0x1bb21a,_0x3d6343),_0x3d6343;},f=(_0x1fb221,_0xeff0f)=>(_0x8e229f,_0x32d399)=>_0xeff0f(_0x8e229f,_0x32d399,_0x1fb221),y=(_0x1e6798=>(_0x1e6798[_0x4f35dc(0x4db)]=_0x4f35dc(0x22e),_0x1e6798[_0x4f35dc(0x4c3)]=_0x4f35dc(0x333),_0x1e6798[_0x4f35dc(0x391)]=_0x4f35dc(0x430),_0x1e6798['AWAITING']='awaiting',_0x1e6798[_0x4f35dc(0x4d4)]=_0x4f35dc(0x225),_0x1e6798[_0x4f35dc(0x2ac)]=_0x4f35dc(0x382),_0x1e6798[_0x4f35dc(0x2ee)]=_0x4f35dc(0x174),_0x1e6798[_0x4f35dc(0x291)]=_0x4f35dc(0x2e6),_0x1e6798))(y||{});class q{constructor(_0x47249a,_0x3272a2,_0x48bbf5,_0x2e1e4f,_0xf48211,_0x165f3f,_0x38d543,_0x58121a,_0x5d5377){const _0x85c0a3=_0x4f35dc;d(this,_0x85c0a3(0x322),null),d(this,_0x85c0a3(0x2e3),[]),(this[_0x85c0a3(0x26b)]=_0x47249a,this[_0x85c0a3(0x419)]=_0x3272a2,this[_0x85c0a3(0x508)]=_0xf48211,this[_0x85c0a3(0x1eb)]=_0x165f3f,this[_0x85c0a3(0x1c3)]=_0x38d543,this[_0x85c0a3(0x1e0)]=_0x58121a,this['_localCacheService']=_0x5d5377,this[_0x85c0a3(0x322)]=_0x48bbf5,this[_0x85c0a3(0x2e3)]=_0x2e1e4f);}[_0x4f35dc(0x3a6)](_0x4c8833){const _0x1db728=_0x4f35dc,_0x20b888=this[_0x1db728(0x1e0)]['getCurrentRevForDocument'](this[_0x1db728(0x26b)]);return _0x4c8833[_0x1db728(0x4c7)]>_0x20b888+0x1?(this[_0x1db728(0x508)][_0x1db728(0x20e)]({'from':_0x20b888,'to':_0x4c8833['revision']-0x1}),!0x0):!0x1;}[_0x4f35dc(0x25c)](_0x257667){const _0x3120d3=_0x4f35dc;this[_0x3120d3(0x1c3)][_0x3120d3(0x32c)](this[_0x3120d3(0x26b)],_0x257667);}[_0x4f35dc(0x281)](_0xf93265){const _0x1be70f=_0x4f35dc;var _0x2060b3,_0x43c807;(_0x43c807=(_0x2060b3=this[_0x1be70f(0x508)])[_0x1be70f(0x50f)])==null||_0x43c807[_0x1be70f(0x400)](_0x2060b3,_0xf93265);}[_0x4f35dc(0x459)](_0x2639dd){const _0x1c96fc=_0x4f35dc;var _0x5081f3,_0x388a0f;return(_0x388a0f=(_0x5081f3=this['_handler'])['onTransformIME'])==null?void 0x0:_0x388a0f[_0x1c96fc(0x400)](_0x5081f3,_0x2639dd);}[_0x4f35dc(0x35a)](_0x54e313){const _0x50a733=_0x4f35dc;var _0x333182,_0x25541a,_0x500f9f;return(_0x500f9f=(_0x25541a=(_0x333182=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x25541a[_0x50a733(0x400)](_0x333182,_0x54e313))!=null?_0x500f9f:_0x54e313;}[_0x4f35dc(0x43d)](_0x2fae4c){const _0xab057b=_0x4f35dc;var _0x48865d,_0x3625be;if(this['type']===A[_0xab057b(0x4fb)]){const {unitID:_0x3475fd,mutations:_0x157d83,memberID:_0x416cd3}=_0x2fae4c,_0x255ab7=_0x157d83[0x0][_0xab057b(0x1e1)]['textRanges'];Array[_0xab057b(0x13c)](_0x255ab7)&&_0x255ab7[_0xab057b(0x3a9)]>0x0&&((_0x3625be=(_0x48865d=this['_handler'])[_0xab057b(0x454)])==null||_0x3625be[_0xab057b(0x400)](_0x48865d,{'unitID':_0x3475fd,'memberID':_0x416cd3,'textRanges':_0x255ab7}));}}[_0x4f35dc(0x42f)](){const _0x1f52df=_0x4f35dc;this[_0x1f52df(0x423)][_0x1f52df(0x389)](this['unitID'],this['type'],this[_0x1f52df(0x322)],this[_0x1f52df(0x2e3)]);}[_0x4f35dc(0x465)](){const _0x1f1be5=_0x4f35dc;return this['_revisionService'][_0x1f1be5(0x1ee)](this[_0x1f1be5(0x26b)]);}[_0x4f35dc(0x146)](){const _0x48c191=_0x4f35dc;this[_0x48c191(0x1e0)][_0x48c191(0x328)](this[_0x48c191(0x26b)]);}['_executeRemoteChangeset'](_0x25c0a6){const _0x984bad=_0x4f35dc;var _0x283a2a;const _0x955751=this['_transformRemoteChangesetByIMECache'](_0x25c0a6),_0x353632=a['sequenceExecute'](_0x955751[_0x984bad(0x24a)],this[_0x984bad(0x1eb)],{'fromCollab':!0x0});if(!_0x353632[_0x984bad(0x351)])throw _0x353632[_0x984bad(0x22c)]instanceof Error?_0x353632['error']:new Error((_0x283a2a=_0x353632[_0x984bad(0x22c)])!=null?_0x283a2a:_0x984bad(0x1bf));this['_transformIMECache'](_0x955751),this[_0x984bad(0x25c)](_0x25c0a6),this[_0x984bad(0x281)](_0x955751),this['_syncEditingCollabCursor'](_0x955751),this['_incrementRevisionNumber']();}}let te=class extends q{constructor(_0x420dc4,_0x4215eb,_0x594611,_0x48eb08,_0x2f317d,_0x3f4ee0,_0x1ec099,_0x1271fc,_0x239756,_0x6af61c){const _0x4edd0c=_0x4f35dc;super(_0x420dc4,_0x4215eb,null,[],_0x594611,_0x1271fc,_0x1ec099,_0x48eb08,_0x2f317d),d(this,'status',_0x4edd0c(0x333)),(this['_injector']=_0x3f4ee0,this[_0x4edd0c(0x289)]=_0x239756,this[_0x4edd0c(0x2c0)]=_0x6af61c);}[_0x4f35dc(0x2b1)](_0x4f2f1d){const _0x26ee00=_0x4f35dc,_0x5e219f=this[_0x26ee00(0x183)][_0x26ee00(0x239)](x,this['unitID'],this[_0x26ee00(0x419)],[_0x4f2f1d],this[_0x26ee00(0x508)]);return _0x5e219f[_0x26ee00(0x411)](),_0x5e219f['_updateLocalCache'](),_0x5e219f;}['onRemoteChangeset'](_0x125b5b){const _0x526594=_0x4f35dc;if(this['_checkMissing'](_0x125b5b))return this[_0x526594(0x183)]['createInstance']($,this[_0x526594(0x26b)],this[_0x526594(0x419)],null,[],null,[_0x125b5b],this[_0x526594(0x508)]);try{const _0x8e17ef=this['_transformService']['transformMutationsWithChangeset'](_0x125b5b,[Ns]);if(_[_0x526594(0x46f)](_0x8e17ef)){const {c1Prime:_0x5a77a3}=_0x8e17ef;return this[_0x526594(0x16c)](_0x5a77a3),this;}throw _0x8e17ef[_0x526594(0x22c)];}catch(_0x44d83b){return this['_logService']['error'](_0x44d83b),this['_onConflict'](!0x1);}}[_0x4f35dc(0x136)](_0x5da343){const _0x4a0573=_0x4f35dc;return this['_injector'][_0x4a0573(0x239)](V,this['unitID'],this['type'],null,[],this[_0x4a0573(0x508)],_0x5da343);}[_0x4f35dc(0x47f)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4f35dc(0x1c6)](){const _0x13e104=_0x4f35dc;throw new Error(_0x13e104(0x3d1));}['toggleOffline'](){const _0x35f8ac=_0x4f35dc;return this[_0x35f8ac(0x183)][_0x35f8ac(0x239)](F,this[_0x35f8ac(0x26b)],this[_0x35f8ac(0x419)],null,[],this['_handler']);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x1cc)](){const _0x186c10=_0x4f35dc;throw new Error(_0x186c10(0x51c));}[_0x4f35dc(0x3fa)](){const _0x1dc501=_0x4f35dc,_0x33bf92=this[_0x1dc501(0x1e0)]['getCurrentRevForDocument'](this['unitID']);return this[_0x1dc501(0x508)]['onMissingChangesets']({'from':_0x33bf92,'to':0x0}),this[_0x1dc501(0x183)]['createInstance']($,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};te=X([f(0x3,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x5,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x6,a[_0x4f35dc(0x2b9)]),f(0x7,a[_0x4f35dc(0x3ed)]),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,_[_0x4f35dc(0x329)])],te);let x=class extends q{constructor(_0x25fb01,_0x258df4,_0x18b99b,_0x1f47d4,_0x2d9f83,_0x126a61,_0x261c9c,_0x1bc9d0,_0x3aee6a,_0x2026bd,_0x25e637,_0x1acec5,_0x445a64,_0x143d37){const _0x11c213=_0x4f35dc;super(_0x25fb01,_0x258df4,null,_0x18b99b,_0x1f47d4,_0x2026bd,_0x143d37,_0x126a61,_0x261c9c),d(this,_0x11c213(0x307),_0x11c213(0x430)),d(this,_0x11c213(0x41d),null),d(this,_0x11c213(0x308),null),(this[_0x11c213(0x183)]=_0x2d9f83,this[_0x11c213(0x32a)]=_0x1bc9d0,this['_logService']=_0x3aee6a,this[_0x11c213(0x19a)]=_0x25e637,this[_0x11c213(0x2c0)]=_0x1acec5,this['_univerInstanceService']=_0x445a64);}[_0x4f35dc(0x2b1)](_0x290ddc){const _0x5210fe=_0x4f35dc;return this['_pendingMutations'][_0x5210fe(0x268)](_0x290ddc),this[_0x5210fe(0x42f)](),this;}[_0x4f35dc(0x4c0)](_0x261974){const _0x106346=_0x4f35dc;if(this[_0x106346(0x3a6)](_0x261974))return this[_0x106346(0x2c5)](),this[_0x106346(0x183)][_0x106346(0x239)]($,this[_0x106346(0x26b)],this[_0x106346(0x419)],null,this[_0x106346(0x2e3)],null,[_0x261974],this[_0x106346(0x508)]);try{const _0x3f702a=this[_0x106346(0x2c0)][_0x106346(0x377)](_0x261974,this[_0x106346(0x2e3)]);if(_[_0x106346(0x46f)](_0x3f702a)){const {c1Prime:_0x584ce5,m2Prime:_0x42b7d1}=_0x3f702a;this[_0x106346(0x16c)](_0x584ce5);const _0x16d313=this[_0x106346(0x183)]['createInstance'](x,this[_0x106346(0x26b)],this[_0x106346(0x419)],_0x42b7d1,this['_handler']);return this[_0x106346(0x2c5)](),_0x16d313[_0x106346(0x411)](this[_0x106346(0x41d)]?Math[_0x106346(0x1c5)](0x0,new Date()[_0x106346(0x48d)]()-this[_0x106346(0x41d)]):this[_0x106346(0x25f)]()),_0x16d313;}throw _0x3f702a[_0x106346(0x22c)];}catch(_0xc39739){return this['_logService'][_0x106346(0x22c)](_0xc39739),this[_0x106346(0x136)](!0x1);}}[_0x4f35dc(0x47f)](){const _0x5e7cb1=_0x4f35dc;throw new Error(_0x5e7cb1(0x1a5));}[_0x4f35dc(0x1c6)](){const _0x45abe7=_0x4f35dc;throw new Error(_0x45abe7(0x194));}[_0x4f35dc(0x2dd)](){const _0x437517=_0x4f35dc;return this[_0x437517(0x2c5)](),this['_injector'][_0x437517(0x239)](F,this[_0x437517(0x26b)],this[_0x437517(0x419)],null,this[_0x437517(0x2e3)],this[_0x437517(0x508)]);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x411)](_0x187f8d){const _0x1e6147=_0x4f35dc,_0x48d116=_0x187f8d!=null?_0x187f8d:this[_0x1e6147(0x25f)]();this['_scheduleTimestamp']=new Date()[_0x1e6147(0x48d)](),this[_0x1e6147(0x308)]=window[_0x1e6147(0x44b)](()=>{const _0x341ccc=_0x1e6147;this[_0x341ccc(0x2c5)]();let _0x392f5b=null;switch(this['type']){case A['UNIVER_SHEET']:{_0x392f5b=tt(this[_0x341ccc(0x2e3)],this['unitID'],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]);break;}case A[_0x341ccc(0x4fb)]:{this[_0x341ccc(0x2e3)][_0x341ccc(0x3e9)](_0x35ba1a=>_0x35ba1a['id']===w[_0x341ccc(0x4a4)]['id'])?_0x392f5b=Us(this[_0x341ccc(0x2e3)],this[_0x341ccc(0x26b)],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]):_0x392f5b=tt(this[_0x341ccc(0x2e3)],this[_0x341ccc(0x26b)],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]);break;}default:throw new Error(_0x341ccc(0x192)+this[_0x341ccc(0x419)]+_0x341ccc(0x4b4));}const {changeset:_0x588507,pendingMutations:_0x6e8217}=_0x392f5b;this[_0x341ccc(0x508)]['onSendChangeset'](_0x588507);const _0x5f42b5=_0x6e8217['length']?this[_0x341ccc(0x183)][_0x341ccc(0x239)](H,this['unitID'],this[_0x341ccc(0x419)],_0x588507,_0x6e8217,this[_0x341ccc(0x508)]):this[_0x341ccc(0x183)][_0x341ccc(0x239)](B,this['unitID'],this['type'],_0x588507,this['_handler']);_0x5f42b5['_updateLocalCache'](),this[_0x341ccc(0x508)][_0x341ccc(0x442)](this,_0x5f42b5);},_0x48d116);}[_0x4f35dc(0x25f)](){const _0x35c6c1=_0x4f35dc;var _0x8c015f;return(_0x8c015f=this['_configService'][_0x35c6c1(0x3ac)](ht))!=null?_0x8c015f:Gt;}[_0x4f35dc(0x1cc)](){const _0x9dd9de=_0x4f35dc;throw new Error(_0x9dd9de(0x2b7));}[_0x4f35dc(0x2c5)](){const _0x5e7159=_0x4f35dc;this['_sendingTimer']!=null&&(clearTimeout(this[_0x5e7159(0x308)]),this[_0x5e7159(0x308)]=null);}['_onConflict'](_0x5c108d){const _0x5888b0=_0x4f35dc;return this[_0x5888b0(0x2c5)](),this[_0x5888b0(0x183)]['createInstance'](V,this[_0x5888b0(0x26b)],this['type'],null,this['_pendingMutations'],this[_0x5888b0(0x508)],_0x5c108d);}};x=X([f(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x5,a['Inject'](_[_0x4f35dc(0x4b2)])),f(0x6,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x7,a['Inject'](K)),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,a[_0x4f35dc(0x3ed)]),f(0xa,a[_0x4f35dc(0x301)]),f(0xb,_[_0x4f35dc(0x329)]),f(0xc,a[_0x4f35dc(0x2e8)]),f(0xd,a[_0x4f35dc(0x2b9)])],x);let B=class extends q{constructor(_0x1a0ea3,_0x2661b1,_0x5893cd,_0x51c6ca,_0x43c85a,_0x24bfd2,_0x1628db,_0x441f67,_0x158f11,_0x317b7e,_0x1a19c2){const _0x596a=_0x4f35dc;super(_0x1a0ea3,_0x2661b1,_0x5893cd,[],_0x51c6ca,_0x441f67,_0x1a19c2,_0x24bfd2,_0x1628db),d(this,_0x596a(0x307),_0x596a(0x167)),(this[_0x596a(0x183)]=_0x43c85a,this[_0x596a(0x289)]=_0x158f11,this[_0x596a(0x2c0)]=_0x317b7e);}[_0x4f35dc(0x2b1)](_0x2d7d44){const _0x423a0f=_0x4f35dc,_0x1a00e5=this[_0x423a0f(0x183)][_0x423a0f(0x239)](H,this[_0x423a0f(0x26b)],this[_0x423a0f(0x419)],this['_awaitingChangeset'],[_0x2d7d44],this['_handler']);return _0x1a00e5[_0x423a0f(0x42f)](),_0x1a00e5;}[_0x4f35dc(0x4c0)](_0xe22c7d){const _0x414482=_0x4f35dc;if(this[_0x414482(0x3a6)](_0xe22c7d))return this[_0x414482(0x183)]['createInstance']($,this[_0x414482(0x26b)],this[_0x414482(0x419)],this['_awaitingChangeset'],[],null,[_0xe22c7d],this[_0x414482(0x508)]);try{const _0xd769b3=this[_0x414482(0x2c0)]['transformChangesets']([_0xe22c7d],[this[_0x414482(0x322)]],!0x1);if(_['isTransformChangesetsSuccess'](_0xd769b3)){const {c1Prime:_0x200836,c2Prime:_0x4758c4}=_0xd769b3;this[_0x414482(0x16c)](_0x200836[0x0]),_0x4758c4[0x0][_0x414482(0x23a)]=this[_0x414482(0x465)]();const _0x49e438=this['_injector'][_0x414482(0x239)](B,this[_0x414482(0x26b)],this['type'],_0x4758c4[0x0],this[_0x414482(0x508)]);return _0x49e438[_0x414482(0x42f)](),_0x49e438;}return this['_onConflict'](!0x1);}catch(_0x34aea){return this[_0x414482(0x289)][_0x414482(0x22c)](_0x34aea),this[_0x414482(0x136)](!0x1);}}[_0x4f35dc(0x47f)](_0xa83194){const _0x4f8561=_0x4f35dc,_0x3f097a=this[_0x4f8561(0x1e0)][_0x4f8561(0x1ee)](this['unitID']);if(_0xa83194['revision']<_0x3f097a-0x1)return this;if(this['_checkMissing'](_0xa83194))return this[_0x4f8561(0x183)][_0x4f8561(0x239)]($,this[_0x4f8561(0x26b)],this[_0x4f8561(0x419)],null,[],this['_awaitingChangeset'],[],this[_0x4f8561(0x508)]);this[_0x4f8561(0x146)]();const _0xdf5669=this[_0x4f8561(0x183)][_0x4f8561(0x239)](te,this[_0x4f8561(0x26b)],this[_0x4f8561(0x419)],this[_0x4f8561(0x508)]);return _0xdf5669[_0x4f8561(0x42f)](),_0xdf5669;}[_0x4f35dc(0x1c6)](_0x3b39f0){const _0x17c815=_0x4f35dc;return this[_0x17c815(0x136)](!!(_0x3b39f0!=null&&_0x3b39f0['isPermissionRej']));}[_0x4f35dc(0x2dd)](){const _0x2b0998=_0x4f35dc;return this[_0x2b0998(0x183)][_0x2b0998(0x239)](F,this[_0x2b0998(0x26b)],this[_0x2b0998(0x419)],this[_0x2b0998(0x322)],[],this[_0x2b0998(0x508)]);}['toggleOnline'](){return this;}[_0x4f35dc(0x1cc)](){const _0x2fd6d8=_0x4f35dc;this[_0x2fd6d8(0x508)]['onSendChangeset'](this[_0x2fd6d8(0x322)]);}[_0x4f35dc(0x136)](_0x5cc829){const _0x1a4dae=_0x4f35dc;return this[_0x1a4dae(0x183)][_0x1a4dae(0x239)](V,this['unitID'],this[_0x1a4dae(0x419)],this['_awaitingChangeset'],[],this['_handler'],_0x5cc829);}};B=X([f(0x4,a['Inject'](a['Injector'])),f(0x5,a[_0x4f35dc(0x1ac)](_['RevisionService'])),f(0x6,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x7,a['ICommandService']),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,_[_0x4f35dc(0x329)]),f(0xa,a[_0x4f35dc(0x2b9)])],B);let H=class extends q{constructor(_0x147f2f,_0x392eed,_0x18325c,_0x554c66,_0xdeb96f,_0x11f982,_0x4dab8b,_0x481c5e,_0x3625d6,_0x83ca22,_0x358a6c,_0x253e6b){const _0x45d605=_0x4f35dc;super(_0x147f2f,_0x392eed,_0x18325c,_0x554c66,_0xdeb96f,_0x3625d6,_0x253e6b,_0x4dab8b,_0x481c5e),d(this,_0x45d605(0x307),_0x45d605(0x225)),(this[_0x45d605(0x183)]=_0x11f982,this[_0x45d605(0x289)]=_0x83ca22,this[_0x45d605(0x2c0)]=_0x358a6c);}[_0x4f35dc(0x2b1)](_0x36b0f1){const _0x276fec=_0x4f35dc;return this[_0x276fec(0x2e3)][_0x276fec(0x268)](_0x36b0f1),this;}['onRemoteChangeset'](_0xe4ead9){const _0x3eb9c3=_0x4f35dc;if(this['_checkMissing'](_0xe4ead9))return this['_injector'][_0x3eb9c3(0x239)]($,this[_0x3eb9c3(0x26b)],this[_0x3eb9c3(0x419)],this['_awaitingChangeset'],this[_0x3eb9c3(0x2e3)],null,[_0xe4ead9],this[_0x3eb9c3(0x508)]);try{const _0x4c83fd=this[_0x3eb9c3(0x2c0)][_0x3eb9c3(0x3a1)]([_0xe4ead9],[this[_0x3eb9c3(0x322)]],!0x1);if(_[_0x3eb9c3(0x4d0)](_0x4c83fd)){const {c1Prime:_0x282c22,c2Prime:_0x8d2138}=_0x4c83fd,_0x2bc3be=this[_0x3eb9c3(0x2c0)][_0x3eb9c3(0x377)](_0x282c22[0x0],this[_0x3eb9c3(0x2e3)]);if(_[_0x3eb9c3(0x46f)](_0x2bc3be)){const {c1Prime:_0x3b2b61,m2Prime:_0x43f8fe}=_0x2bc3be;return this[_0x3eb9c3(0x16c)](_0x3b2b61),_0x8d2138[0x0][_0x3eb9c3(0x23a)]=this['_getCurrentRevision'](),this[_0x3eb9c3(0x183)][_0x3eb9c3(0x239)](H,this[_0x3eb9c3(0x26b)],this[_0x3eb9c3(0x419)],_0x8d2138[0x0],_0x43f8fe,this[_0x3eb9c3(0x508)]);}throw _0x2bc3be['error'];}throw _0x4c83fd[_0x3eb9c3(0x22c)];}catch(_0x32ab61){return this['_logService'][_0x3eb9c3(0x22c)](_0x32ab61),this[_0x3eb9c3(0x136)](!0x1);}}[_0x4f35dc(0x47f)](_0x3b0505){const _0xfdae88=_0x4f35dc;if(this[_0xfdae88(0x3a6)](_0x3b0505))return this[_0xfdae88(0x183)][_0xfdae88(0x239)]($,this[_0xfdae88(0x26b)],this[_0xfdae88(0x419)],null,this[_0xfdae88(0x2e3)],this[_0xfdae88(0x322)],[],this['_handler']);this[_0xfdae88(0x146)]();const _0x1deed2=this[_0xfdae88(0x183)]['createInstance'](x,this[_0xfdae88(0x26b)],this['type'],this[_0xfdae88(0x2e3)],this[_0xfdae88(0x508)]);return _0x1deed2[_0xfdae88(0x411)](),_0x1deed2[_0xfdae88(0x42f)](),_0x1deed2;}[_0x4f35dc(0x1c6)](_0x9d1891){const _0x47aaad=_0x4f35dc;return this[_0x47aaad(0x136)](!!(_0x9d1891!=null&&_0x9d1891[_0x47aaad(0x357)]));}[_0x4f35dc(0x2dd)](){const _0x537bc0=_0x4f35dc;return this[_0x537bc0(0x183)]['createInstance'](F,this[_0x537bc0(0x26b)],this[_0x537bc0(0x419)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x1cc)](){const _0x1d8ead=_0x4f35dc;this[_0x1d8ead(0x508)][_0x1d8ead(0x151)](this[_0x1d8ead(0x322)]);}[_0x4f35dc(0x136)](_0x5400b3){const _0x280789=_0x4f35dc;return this[_0x280789(0x183)][_0x280789(0x239)](V,this[_0x280789(0x26b)],this[_0x280789(0x419)],null,this[_0x280789(0x2e3)],this['_handler'],_0x5400b3);}};H=X([f(0x5,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x6,a['Inject'](_[_0x4f35dc(0x4b2)])),f(0x7,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x8,a[_0x4f35dc(0x3ed)]),f(0x9,a[_0x4f35dc(0x428)]),f(0xa,_['ITransformService']),f(0xb,a[_0x4f35dc(0x2b9)])],H);let V=class extends q{constructor(_0x5392b0,_0x2e8d12,_0x3d1783,_0x227b70,_0x6d5abc,_0x4574a6=!0x1,_0x59adf6,_0x41bb31,_0xa584cf,_0x20c12a,_0xe1468d,_0x109f04,_0x4260a4){const _0xdbdb0e=_0x4f35dc;super(_0x5392b0,_0x2e8d12,_0x3d1783,_0x227b70,_0x6d5abc,_0x41bb31,_0xa584cf,_0xe1468d,_0x20c12a),d(this,'status','conflict'),(this[_0xdbdb0e(0x4de)]=_0x4574a6,this[_0xdbdb0e(0x31e)]=_0x59adf6,this[_0xdbdb0e(0x312)]=_0x109f04,this[_0xdbdb0e(0x1e8)]=_0x4260a4,this[_0xdbdb0e(0x1d3)](),this[_0xdbdb0e(0x266)](),this['_disableEditing']());}[_0x4f35dc(0x2b1)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x4f35dc(0x1c6)](){return this;}[_0x4f35dc(0x2dd)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x404822=_0x4f35dc;throw new Error(_0x404822(0x3f6));}[_0x4f35dc(0x266)](){const _0x54d3bc=_0x4f35dc;this[_0x54d3bc(0x423)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x4f35dc(0x1d3)](){const _0xc623f9=_0x4f35dc;this[_0xc623f9(0x4de)]?this[_0xc623f9(0x1e8)][_0xc623f9(0x50c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x3d8)),'type':_0xc623f9(0x22c),'duration':0x0}):this[_0xc623f9(0x1e8)][_0xc623f9(0x50c)]({'title':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x2c4)),'content':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x142)),'type':_0xc623f9(0x22c),'duration':0x0});}[_0x4f35dc(0x2c9)](){const _0x32d0da=_0x4f35dc;this[_0x32d0da(0x31e)][_0x32d0da(0x30f)](new C[(_0x32d0da(0x41a))](this[_0x32d0da(0x26b)])['id'],!0x1);}};V=X([f(0x6,a['Inject'](a['IPermissionService'])),f(0x7,a[_0x4f35dc(0x3ed)]),f(0x8,a[_0x4f35dc(0x2b9)]),f(0x9,a['Inject'](exports[_0x4f35dc(0x29a)])),f(0xa,a[_0x4f35dc(0x1ac)](_['RevisionService'])),f(0xb,a[_0x4f35dc(0x1ac)](a['LocaleService'])),f(0xc,M[_0x4f35dc(0x20b)])],V);let F=class extends q{constructor(_0x9746e6,_0x1eced3,_0x475322,_0x8a037d,_0x5624a4,_0x433a17,_0x48ea0f,_0xb78061,_0x4a329a,_0x245c93){const _0x4dae82=_0x4f35dc;super(_0x9746e6,_0x1eced3,_0x475322,_0x8a037d,_0x5624a4,_0x4a329a,_0x245c93,_0x48ea0f,_0xb78061),d(this,_0x4dae82(0x307),_0x4dae82(0x2e6)),this[_0x4dae82(0x183)]=_0x433a17;}[_0x4f35dc(0x2b1)](_0x401d2d){return this['_pendingMutations']['push'](_0x401d2d),this['_updateLocalCache'](),this;}[_0x4f35dc(0x4c0)](_0x3654e4){const _0x5bd259=_0x4f35dc;throw new Error(_0x5bd259(0x327));}[_0x4f35dc(0x47f)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4f35dc(0x1c6)](){const _0x5a034b=_0x4f35dc;throw new Error(_0x5a034b(0x21b));}['toggleOffline'](){return this;}[_0x4f35dc(0x29f)](){const _0x4b1b08=_0x4f35dc,{_injector:_0x319166,_pendingMutations:_0x207900,_awaitingChangeset:_0x43759b,unitID:_0x28e647,_handler:_0x887614,type:_0x5c8f59}=this,_0x2304c1=Rt(_0x319166,_0x28e647,_0x5c8f59,_0x43759b,_0x207900,_0x887614);return _0x2304c1 instanceof x?_0x2304c1['_schedule']():(_0x2304c1 instanceof H||_0x2304c1 instanceof B)&&_0x2304c1[_0x4b1b08(0x1cc)](),_0x2304c1;}[_0x4f35dc(0x1cc)](){const _0x2f879c=_0x4f35dc;throw new Error(_0x2f879c(0x32b));}};F=X([f(0x5,a[_0x4f35dc(0x1ac)](a['Injector'])),f(0x6,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x7,a[_0x4f35dc(0x1ac)](exports['LocalCacheService'])),f(0x8,a[_0x4f35dc(0x3ed)]),f(0x9,a[_0x4f35dc(0x2b9)])],F);let $=class extends q{constructor(_0x3d72d4,_0x5d8e70,_0x416f01,_0x2320e0,_0x5325cc,_0x167789,_0x283766,_0x5c3bf8,_0xadc03c,_0x27ba18,_0x54a813,_0x2c652f,_0x3d982c,_0x49e3f0){const _0x12dc5b=_0x4f35dc;super(_0x3d72d4,_0x5d8e70,_0x416f01,_0x2320e0,_0x283766,_0x2c652f,_0x3d982c,_0xadc03c,_0x27ba18),d(this,_0x12dc5b(0x307),_0x12dc5b(0x382)),(this[_0x12dc5b(0x3e2)]=_0x5325cc,this[_0x12dc5b(0x340)]=_0x167789,this[_0x12dc5b(0x183)]=_0x5c3bf8,this[_0x12dc5b(0x289)]=_0x54a813,this[_0x12dc5b(0x2c0)]=_0x49e3f0);}[_0x4f35dc(0x162)](_0x217c37){const _0x572df5=_0x4f35dc;try{const _0x3d909e=[..._0x217c37,...this[_0x572df5(0x340)]],_0x15d198=[this['_awaitingChangeset']||this[_0x572df5(0x3e2)]][_0x572df5(0x404)](_0x4b35a6=>!!_0x4b35a6);let _0x2bcc07,_0x54f1a3;if(_0x15d198[_0x572df5(0x3a9)]){const _0x50a41c=this[_0x572df5(0x2c0)]['transformChangesets'](_0x3d909e,_0x15d198,!0x1);if(!_[_0x572df5(0x4d0)](_0x50a41c))throw _0x50a41c[_0x572df5(0x22c)];_0x2bcc07=_0x50a41c['c1Prime'],_0x54f1a3=_0x50a41c['c2Prime'];}else _0x2bcc07=_0x3d909e,_0x54f1a3=[];let _0x78aeda=this[_0x572df5(0x2e3)];_0x2bcc07[_0x572df5(0x155)](_0x236efb=>{const _0x5bfc03=_0x572df5;let _0x1d60d8;if(_0x78aeda[_0x5bfc03(0x3a9)]){const _0x412143=this[_0x5bfc03(0x2c0)][_0x5bfc03(0x377)](_0x236efb,_0x78aeda);if(!_['isTransformMutationsWithChangesetSuccess'](_0x412143))throw _0x412143[_0x5bfc03(0x22c)];_0x1d60d8=_0x412143[_0x5bfc03(0x407)],_0x78aeda=_0x412143[_0x5bfc03(0x3c7)];}else _0x1d60d8=_0x236efb;this['_executeRemoteChangeset'](_0x1d60d8);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x572df5(0x322)]&&_0x54f1a3[_0x572df5(0x3a9)]&&(_0x54f1a3[0x0][_0x572df5(0x23a)]=this[_0x572df5(0x465)]());let _0x4e27fd;if(this['_awaitingChangeset']&&_0x78aeda[_0x572df5(0x3a9)]!==0x0)_0x4e27fd=this[_0x572df5(0x183)]['createInstance'](H,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],_0x54f1a3[0x0],_0x78aeda,this[_0x572df5(0x508)]);else{if(this[_0x572df5(0x322)]&&_0x78aeda[_0x572df5(0x3a9)]===0x0)_0x54f1a3[0x0][_0x572df5(0x23a)]=this[_0x572df5(0x465)](),_0x4e27fd=this[_0x572df5(0x183)][_0x572df5(0x239)](B,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],_0x54f1a3[0x0],this['_handler']);else{if(_0x78aeda['length']!==0x0){const _0x21f3a8=this[_0x572df5(0x183)]['createInstance'](x,this['unitID'],this[_0x572df5(0x419)],_0x78aeda,this[_0x572df5(0x508)]);_0x21f3a8[_0x572df5(0x411)](),_0x4e27fd=_0x21f3a8;}else _0x4e27fd=this[_0x572df5(0x183)][_0x572df5(0x239)](te,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],this[_0x572df5(0x508)]);}}return _0x4e27fd['_updateLocalCache'](),_0x4e27fd;}catch(_0x1120a9){return this[_0x572df5(0x289)][_0x572df5(0x22c)]('[FetchMissState]',_0x572df5(0x50d),_0x1120a9),this[_0x572df5(0x183)][_0x572df5(0x239)](V,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],this['_awaitingChangeset'],this[_0x572df5(0x2e3)],this['_handler'],!0x1);}}[_0x4f35dc(0x1cc)](){const _0x779384=_0x4f35dc;throw new Error(_0x779384(0x432));}[_0x4f35dc(0x2b1)](_0x234991){const _0x37e4b3=_0x4f35dc;return this[_0x37e4b3(0x2e3)][_0x37e4b3(0x268)](_0x234991),this;}['onRemoteChangeset'](_0xb2965c){const _0x2b5c6a=_0x4f35dc;return this[_0x2b5c6a(0x340)][_0x2b5c6a(0x268)](_0xb2965c),this;}[_0x4f35dc(0x47f)](_0x5286df){const _0x5e1bc9=_0x4f35dc;if(this['_awaitingChangeset'])return this[_0x5e1bc9(0x3e2)]=this[_0x5e1bc9(0x322)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4f35dc(0x1c6)](_0x5962bb){const _0x1c718b=_0x4f35dc;return this[_0x1c718b(0x136)](!!(_0x5962bb!=null&&_0x5962bb[_0x1c718b(0x357)]));}[_0x4f35dc(0x2dd)](){const _0x22fbae=_0x4f35dc;return this[_0x22fbae(0x183)][_0x22fbae(0x239)](F,this[_0x22fbae(0x26b)],this[_0x22fbae(0x419)],this[_0x22fbae(0x322)],this[_0x22fbae(0x2e3)],this[_0x22fbae(0x508)]);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x136)](_0x58e9a8){const _0x3ba8e8=_0x4f35dc;return this['_injector']['createInstance'](V,this[_0x3ba8e8(0x26b)],this[_0x3ba8e8(0x419)],this['_awaitingChangeset'],this[_0x3ba8e8(0x2e3)],this[_0x3ba8e8(0x508)],_0x58e9a8);}};$=X([f(0x7,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x8,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x9,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0xa,a['ILogService']),f(0xb,a[_0x4f35dc(0x3ed)]),f(0xc,a[_0x4f35dc(0x2b9)]),f(0xd,_[_0x4f35dc(0x329)])],$);function Rt(_0x51c364,_0x1a8105,_0x5afb61,_0x2f7608,_0x325bba,_0x196c1e){const _0x4b28e6=_0x4f35dc;return _0x2f7608&&_0x325bba[_0x4b28e6(0x3a9)]?_0x51c364[_0x4b28e6(0x239)](H,_0x1a8105,_0x5afb61,_0x2f7608,_0x325bba,_0x196c1e):_0x2f7608?_0x51c364[_0x4b28e6(0x239)](B,_0x1a8105,_0x5afb61,_0x2f7608,_0x196c1e):_0x325bba['length']?_0x51c364[_0x4b28e6(0x239)](x,_0x1a8105,_0x5afb61,_0x325bba,_0x196c1e):_0x51c364[_0x4b28e6(0x239)](te,_0x1a8105,_0x5afb61,_0x196c1e);}var As=Object[_0x4f35dc(0x305)],js=Object[_0x4f35dc(0x21c)],We=(_0x1684c0,_0x2ca63d,_0x155db8,_0x101b41)=>{const _0x59adab=_0x4f35dc;for(var _0x12ef7f=_0x101b41>0x1?void 0x0:_0x101b41?js(_0x2ca63d,_0x155db8):_0x2ca63d,_0x28d4f9=_0x1684c0[_0x59adab(0x3a9)]-0x1,_0xc05415;_0x28d4f9>=0x0;_0x28d4f9--)(_0xc05415=_0x1684c0[_0x28d4f9])&&(_0x12ef7f=(_0x101b41?_0xc05415(_0x2ca63d,_0x155db8,_0x12ef7f):_0xc05415(_0x12ef7f))||_0x12ef7f);return _0x101b41&&_0x12ef7f&&As(_0x2ca63d,_0x155db8,_0x12ef7f),_0x12ef7f;},p=(_0x43c7f8,_0x12ab3)=>(_0x2f7e9d,_0x51d246)=>_0x12ab3(_0x2f7e9d,_0x51d246,_0x43c7f8);exports[_0x4f35dc(0x2df)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x400c92,_0x5af34e,_0x3d0ab7,_0x4e6878,_0x19a4b9,_0x35308a,_0x487e49,_0x24b5b1,_0xfa537d,_0x305c70,_0xae1ac2,_0x1bc3d2,_0x3574c1){const _0x39016e=_0x4f35dc;super(),d(this,_0x39016e(0x490),new v[(_0x39016e(0x36c))](null)),d(this,_0x39016e(0x202),this[_0x39016e(0x490)][_0x39016e(0x366)]()),d(this,_0x39016e(0x3c0)),d(this,_0x39016e(0x1b7),!0x1),d(this,'status$',this[_0x39016e(0x202)][_0x39016e(0x49c)](v[_0x39016e(0x201)](_0x8f8988=>_0x8f8988?_0x8f8988[_0x39016e(0x307)]:y['OFFLINE']),v['shareReplay'](0x1))),d(this,_0x39016e(0x15f),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x400c92,this[_0x39016e(0x2ec)]=_0x5af34e,this['_type']=_0x3d0ab7,this[_0x39016e(0x183)]=_0x4e6878,this[_0x39016e(0x423)]=_0x19a4b9,this[_0x39016e(0x4f7)]=_0x35308a,this[_0x39016e(0x312)]=_0x487e49,this['_revisionService']=_0x24b5b1,this[_0x39016e(0x289)]=_0xfa537d,this[_0x39016e(0x1eb)]=_0x305c70,this[_0x39016e(0x3a4)]=_0xae1ac2,this[_0x39016e(0x31e)]=_0x1bc3d2,this[_0x39016e(0x149)]=_0x3574c1);}get[_0x4f35dc(0x4f2)](){const _0x4bbbc1=_0x4f35dc;return this[_0x4bbbc1(0x3c0)];}async[_0x4f35dc(0x219)](){const _0x5e3c12=_0x4f35dc;if(this[_0x5e3c12(0x4f2)])throw new Error(_0x5e3c12(0x336));await this[_0x5e3c12(0x18b)]();}[_0x4f35dc(0x21e)](){const _0x5cdfbb=_0x4f35dc;return this['_collaborationPaused']=!0x0,a[_0x5cdfbb(0x456)](()=>{const _0x1cb2c0=_0x5cdfbb;this[_0x1cb2c0(0x1b7)]=!0x1,this[_0x1cb2c0(0x4c4)]();});}[_0x4f35dc(0x127)](_0xe4620d){const _0x34154b=_0x4f35dc;this[_0x34154b(0x3c0)]=_0xe4620d,this[_0x34154b(0x490)][_0x34154b(0x245)](_0xe4620d);}async[_0x4f35dc(0x18b)](){const _0x1eaa23=_0x4f35dc;var _0xaa9de0;this['_updateState'](await this[_0x1eaa23(0x4f9)]()),this[_0x1eaa23(0x149)]&&((_0xaa9de0=this[_0x1eaa23(0x149)])==null||_0xaa9de0['editingUnit'](this[_0x1eaa23(0x26b)]),this[_0x1eaa23(0x14d)](this['_singleActiveUnitService'][_0x1eaa23(0x4af)](this[_0x1eaa23(0x26b)])[_0x1eaa23(0x4df)](_0x275fc5=>{const _0x315eed=_0x1eaa23;this['_logService']['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x275fc5),_0x275fc5===bt['OTHER_CLIENTS_EDITING']?(this[_0x315eed(0x3a4)][_0x315eed(0x50c)]({'content':this['_localeService']['t'](_0x315eed(0x3e1)),'type':Y[_0x315eed(0x4b1)][_0x315eed(0x338)]}),this[_0x315eed(0x31e)]['updatePermissionPoint'](new C[(_0x315eed(0x41a))](this['unitID'])['id'],!0x1)):this[_0x315eed(0x31e)][_0x315eed(0x30f)](new C[(_0x315eed(0x41a))](this[_0x315eed(0x26b)])['id'],!0x0);})));let _0x67ac1d=!0x1;return this['disposeWithMe'](this[_0x1eaa23(0x2ec)][_0x1eaa23(0x321)][_0x1eaa23(0x4df)](_0x3333bf=>{const _0x2ff3b2=_0x1eaa23;_0x3333bf===j[_0x2ff3b2(0x156)]?this[_0x2ff3b2(0x3e4)](_0x67ac1d):_0x3333bf===j[_0x2ff3b2(0x291)]&&(_0x67ac1d=!0x0,this[_0x2ff3b2(0x4c1)]());})),this[_0x1eaa23(0x14d)](this['session'][_0x1eaa23(0x251)][_0x1eaa23(0x4df)](_0x23edcc=>{const _0x5f3e26=_0x1eaa23;try{switch(_0x23edcc[_0x5f3e26(0x510)]){case _[_0x5f3e26(0x2a7)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x5f3e26(0x249)](_0x23edcc['data']));break;}case _[_0x5f3e26(0x2a7)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x23edcc[_0x5f3e26(0x48a)]);break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x3be)]:{this[_0x5f3e26(0x480)]();break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x177)]:{this[_0x5f3e26(0x4e5)](_0x23edcc[_0x5f3e26(0x48a)][_0x5f3e26(0x507)][_0x5f3e26(0x201)](_0x8e768e=>_[_0x5f3e26(0x249)](_0x8e768e)));break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x1a6)]:this[_0x5f3e26(0x480)]({'isPermissionRej':!0x0});}}catch(_0x1be396){throw console['error']('Error\x20on\x20receiving\x20event',_0x1be396),_0x1be396;}})),this[_0x1eaa23(0x3c0)];}[_0x4f35dc(0x187)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x43ddcc=_0x4f35dc;if(this[_0x43ddcc(0x15f)])throw new Error(_0x43ddcc(0x3e8));this['_transitionLocked']=!0x0;}[_0x4f35dc(0x11f)](_0x44f2aa){const _0x54e71a=_0x4f35dc;this[_0x54e71a(0x489)](),this[_0x54e71a(0x127)](this[_0x54e71a(0x3c0)][_0x54e71a(0x2b1)](_0x44f2aa)),this[_0x54e71a(0x187)]();}['_onRemoteChangeset'](_0x21fd5b){const _0x2640c2=_0x4f35dc;if(!(_0x21fd5b[_0x2640c2(0x4c7)]<=this[_0x2640c2(0x1e0)][_0x2640c2(0x1ee)](this[_0x2640c2(0x26b)]))){if(this[_0x2640c2(0x1b7)]){this['_remoteChangesetQueue'][_0x2640c2(0x268)](_0x21fd5b);return;}this[_0x2640c2(0x4c2)](_0x21fd5b);}}[_0x4f35dc(0x4c4)](){const _0x38d306=_0x4f35dc;this[_0x38d306(0x140)][_0x38d306(0x155)](_0x4f7d3d=>this[_0x38d306(0x4c2)](_0x4f7d3d)),this['_remoteChangesetQueue']=[];}[_0x4f35dc(0x4c2)](_0x3d1acc){const _0x468445=_0x4f35dc,_0x334019=this[_0x468445(0x4f7)][_0x468445(0x2d0)][_0x468445(0x4a7)](this['_compressMutationService'][_0x468445(0x2d0)][_0x468445(0x2f6)]()['COMPRESS_MUTATION_APPLY'])(_0x3d1acc[_0x468445(0x24a)],null)||_0x3d1acc[_0x468445(0x24a)],_0x5034e6={..._0x3d1acc,'mutations':_0x334019};this['_lockTransition'](),this[_0x468445(0x127)](this[_0x468445(0x3c0)][_0x468445(0x4c0)](_0x5034e6)),this[_0x468445(0x187)]();}[_0x4f35dc(0x373)](_0x4d8d92){const _0x2b54da=_0x4f35dc;this[_0x2b54da(0x489)](),this[_0x2b54da(0x127)](this[_0x2b54da(0x3c0)][_0x2b54da(0x47f)](_0x4d8d92)),this[_0x2b54da(0x187)]();}[_0x4f35dc(0x480)](_0x31b95b){const _0xcf3db7=_0x4f35dc;this[_0xcf3db7(0x489)](),this[_0xcf3db7(0x127)](this['_state']['onRemoteRej'](_0x31b95b)),this['_unlockTransition']();}[_0x4f35dc(0x4e5)](_0x7eedff){const _0x563a4d=_0x4f35dc;if(!(this[_0x563a4d(0x3c0)]instanceof $))throw new TypeError(_0x563a4d(0x31f));const _0x5191f4=_0x7eedff[_0x563a4d(0x201)](_0xfc81e9=>{const _0xb2b172=_0x563a4d,_0x104e25=this[_0xb2b172(0x4f7)]['interceptor'][_0xb2b172(0x4a7)](this[_0xb2b172(0x4f7)][_0xb2b172(0x2d0)][_0xb2b172(0x2f6)]()[_0xb2b172(0x4d1)])(_0xfc81e9['mutations'],null)||_0xfc81e9['mutations'];return{..._0xfc81e9,'mutations':_0x104e25};});this[_0x563a4d(0x489)](),this[_0x563a4d(0x127)](this[_0x563a4d(0x3c0)][_0x563a4d(0x162)](_0x5191f4)),this[_0x563a4d(0x187)]();}[_0x4f35dc(0x4c1)](){const _0x13df5b=_0x4f35dc;this['_lockTransition'](),this[_0x13df5b(0x127)](this[_0x13df5b(0x3c0)]['toggleOffline']()),this[_0x13df5b(0x187)]();}['_toggleOnline'](_0x46fdb8=!0x1){const _0x5025cd=_0x4f35dc;this[_0x5025cd(0x489)](),this['_updateState'](this[_0x5025cd(0x3c0)][_0x5025cd(0x29f)]()),this[_0x5025cd(0x187)]();const _0x2e0d64=this[_0x5025cd(0x3c0)];_0x46fdb8&&_0x2e0d64 instanceof te&&(this['_lockTransition'](),this[_0x5025cd(0x127)](_0x2e0d64[_0x5025cd(0x3fa)]()),this['_unlockTransition']());}async[_0x4f35dc(0x4f9)](){return new Promise(_0x43a81f=>{const _0x5dd37b=_0x1935;this['session'][_0x5dd37b(0x321)]['pipe'](v[_0x5dd37b(0x3b2)](0x1))[_0x5dd37b(0x4df)](async _0xd761f7=>{const _0x4f040f=_0x5dd37b;_0x43a81f(await this['_createInitialStateImpl'](_0xd761f7===j[_0x4f040f(0x156)]));});});}['_createHandler'](){const _0x7a2596=_0x4f35dc,_0x4860cf=this[_0x7a2596(0x26b)];return{'onStateChange':(_0xc3b092,_0x3ce4e6)=>{const _0x210305=_0x7a2596;if(_0xc3b092!==this['_state'])throw new Error(_0x210305(0x16a)+_0xc3b092[_0x210305(0x307)]+_0x210305(0x208)+_0x3ce4e6[_0x210305(0x307)]+_0x210305(0x343)+this[_0x210305(0x3c0)][_0x210305(0x307)]);this[_0x210305(0x127)](_0x3ce4e6);},'onSendChangeset':_0x33cd5b=>{const _0x258e48=_0x7a2596,_0x15cdfe={'eventID':_[_0x258e48(0x2a7)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x33cd5b['unitID'],'unitType':this['_type'],'changeset':_0x33cd5b,'memberID':this[_0x258e48(0x2ec)][_0x258e48(0x15a)]()}};this['session'][_0x258e48(0x2da)](_0x15cdfe,this[_0x258e48(0x26b)]);},'onMissingChangesets':({from:_0x1c3da3,to:_0xd90eca})=>{const _0xd58dfe=_0x7a2596;this[_0xd58dfe(0x289)]['debug'](_0xd58dfe(0x133),_0xd58dfe(0x3bf)+_0x1c3da3+_0xd58dfe(0x236)+_0xd90eca);const _0xa710cf={'eventID':_[_0xd58dfe(0x2a7)][_0xd58dfe(0x1ef)],'data':{'unitID':_0x4860cf,'unitType':this[_0xd58dfe(0x277)],'from':_0x1c3da3,'to':_0xd90eca}};this[_0xd58dfe(0x2ec)]['send'](_0xa710cf,this[_0xd58dfe(0x26b)]);}};}async[_0x4f35dc(0x2c7)](_0x46948e){const _0x97d1de=_0x4f35dc;var _0x1df03a,_0x16fec1;const _0xbcee9f=await this['_localCacheService'][_0x97d1de(0x47b)](this[_0x97d1de(0x26b)]),_0xe218ee=(_0x1df03a=_0xbcee9f==null?void 0x0:_0xbcee9f['mutations'])!=null?_0x1df03a:[],_0x12b35d=(_0x16fec1=_0xbcee9f==null?void 0x0:_0xbcee9f[_0x97d1de(0x222)])!=null?_0x16fec1:null,_0x57d949=this[_0x97d1de(0x26b)];try{this[_0x97d1de(0x2f0)](_0x12b35d,_0xe218ee);}catch(_0x1d1565){this[_0x97d1de(0x289)][_0x97d1de(0x22c)](_0x1d1565);}const _0x337424=this['_createHandler']();if(_0x46948e){const _0x3a3af6=Rt(this['_injector'],_0x57d949,this['_type'],_0x12b35d,_0xe218ee,_0x337424);return _0x3a3af6 instanceof x?_0x3a3af6[_0x97d1de(0x411)]():(_0x3a3af6 instanceof H||_0x3a3af6 instanceof B)&&_0x3a3af6[_0x97d1de(0x1cc)](),_0x3a3af6;}return this[_0x97d1de(0x183)][_0x97d1de(0x239)](F,_0x57d949,this['_type'],_0x12b35d,_0xe218ee,_0x337424);}[_0x4f35dc(0x2f0)](_0x557409,_0x310765){const _0x22bdd4=_0x4f35dc;var _0x9ecaa8,_0x48e96b;const _0x4f973a=this[_0x22bdd4(0x4f7)]['interceptor'][_0x22bdd4(0x4a7)](this[_0x22bdd4(0x4f7)][_0x22bdd4(0x2d0)]['getInterceptPoints']()[_0x22bdd4(0x4d1)]);(_0x9ecaa8=_0x4f973a((_0x557409==null?void 0x0:_0x557409['mutations'])||[],null))==null||_0x9ecaa8['forEach'](_0x56a1bf=>this[_0x22bdd4(0x1eb)][_0x22bdd4(0x3dc)](_0x56a1bf['id'],_0x56a1bf[_0x22bdd4(0x1e1)])),(_0x48e96b=_0x4f973a(_0x310765||[],null))==null||_0x48e96b[_0x22bdd4(0x155)](_0x27879f=>this[_0x22bdd4(0x1eb)][_0x22bdd4(0x3dc)](_0x27879f['id'],_0x27879f['params']));}},exports[_0x4f35dc(0x2df)]=We([p(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x330)])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),p(0x8,a[_0x4f35dc(0x428)]),p(0x9,a[_0x4f35dc(0x3ed)]),p(0xa,M['IMessageService']),p(0xb,a['IPermissionService']),p(0xc,a['Optional'](Ce))],exports[_0x4f35dc(0x2df)]),exports[_0x4f35dc(0x39e)]=class extends exports[_0x4f35dc(0x2df)]{constructor(_0x27c529,_0x4cdf8f,_0x3fa22c,_0x35449e,_0x2f35f4,_0x16b262,_0xd47e55,_0x473305,_0x3b24df,_0x26dcc1,_0x47da5b,_0xde5c93,_0x25a65e,_0x578c32,_0x4de832,_0x4fe8a3,_0x42fa16){const _0x133c6e=_0x4f35dc;super(_0x27c529,_0x3fa22c,_0x4cdf8f,_0x35449e,_0x2f35f4,_0x16b262,_0xd47e55,_0x473305,_0x25a65e,_0x578c32,_0x4de832,_0x4fe8a3,_0x42fa16),this[_0x133c6e(0x26b)]=_0x27c529,this['type']=_0x4cdf8f,this[_0x133c6e(0x25a)]=_0x3b24df,this[_0x133c6e(0x315)]=_0x26dcc1,this[_0x133c6e(0x405)]=_0x47da5b,this[_0x133c6e(0x3b4)]=_0xde5c93;}[_0x4f35dc(0x1a3)](){const _0x488a6e=_0x4f35dc,_0x5f1c28=super[_0x488a6e(0x1a3)]();return _0x5f1c28[_0x488a6e(0x2fb)]=_0x17d86f=>this[_0x488a6e(0x315)][_0x488a6e(0x316)](_0x17d86f),_0x5f1c28[_0x488a6e(0x50f)]=_0x1a7c7b=>this[_0x488a6e(0x405)][_0x488a6e(0x153)](_0x1a7c7b),_0x5f1c28['onSyncEditingCollabCursor']=_0x476135=>this[_0x488a6e(0x3b4)][_0x488a6e(0x11e)](_0x476135),_0x5f1c28[_0x488a6e(0x50a)]=_0x4262e0=>this['_docTransformIMECacheService'][_0x488a6e(0x425)](_0x4262e0),_0x5f1c28;}async['_init'](){const _0x274a6d=_0x4f35dc,_0x413507=await super[_0x274a6d(0x18b)]();return this[_0x274a6d(0x14d)](this[_0x274a6d(0x1eb)][_0x274a6d(0x361)]((_0x10e00b,_0x17869b)=>{const _0x47680f=_0x274a6d;if(_0x10e00b[_0x47680f(0x419)]!==a[_0x47680f(0x48c)][_0x47680f(0x213)]||_0x17869b!=null&&_0x17869b[_0x47680f(0x362)]||_0x17869b!=null&&_0x17869b[_0x47680f(0x408)])return;const _0x2f6430=_0x10e00b[_0x47680f(0x1e1)];if((_0x2f6430==null?void 0x0:_0x2f6430[_0x47680f(0x284)])!==this[_0x47680f(0x26b)])return;let _0x3f7ba0=_0x10e00b;if(_0x3f7ba0['id']===w[_0x47680f(0x4a4)]['id']){const _0xaa31e=_0x3f7ba0[_0x47680f(0x1e1)];_0x3f7ba0={'id':w['RichTextEditingMutation']['id'],'type':a['CommandType'][_0x47680f(0x213)],'params':{'unitId':_0xaa31e[_0x47680f(0x284)],'actions':_0xaa31e['actions'],'textRanges':null}};}const _0x5be78a=this[_0x47680f(0x4f7)][_0x47680f(0x2d0)][_0x47680f(0x4a7)](this[_0x47680f(0x4f7)][_0x47680f(0x2d0)][_0x47680f(0x2f6)]()[_0x47680f(0x457)])([_0x3f7ba0],null)||[_0x3f7ba0];this['_onLocalMutation'](_0x5be78a[0x0]);})),_0x413507;}},exports[_0x4f35dc(0x39e)]=We([p(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x330)])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x4f35dc(0x4b2)])),p(0x8,a['Inject'](w[_0x4f35dc(0x49a)])),p(0x9,a['Inject'](fe)),p(0xa,a[_0x4f35dc(0x1ac)](Ie)),p(0xb,a[_0x4f35dc(0x1ac)](Fe)),p(0xc,a[_0x4f35dc(0x428)]),p(0xd,a[_0x4f35dc(0x3ed)]),p(0xe,M['IMessageService']),p(0xf,a['IPermissionService']),p(0x10,a[_0x4f35dc(0x445)](Ce))],exports['DocCollaborationEntity']),exports[_0x4f35dc(0x3aa)]=class extends exports['CollaborationEntity']{constructor(_0x167213,_0x2430f0,_0x143ad5,_0x43715f,_0x5b17a8,_0x55ee7b,_0x2cc590,_0x5d0f19,_0x404a2c,_0x1214d4,_0x4f7364,_0x5cbe23,_0x16bab3,_0x2c2425){const _0x9a0155=_0x4f35dc;super(_0x167213,_0x143ad5,_0x2430f0,_0x43715f,_0x5b17a8,_0x55ee7b,_0x2cc590,_0x5d0f19,_0x1214d4,_0x4f7364,_0x5cbe23,_0x16bab3,_0x2c2425),this['unitID']=_0x167213,this[_0x9a0155(0x419)]=_0x2430f0,this[_0x9a0155(0x160)]=_0x404a2c;}[_0x4f35dc(0x1a3)](){const _0x2e54f9=_0x4f35dc,_0x401142=super['_createHandler']();return _0x401142[_0x2e54f9(0x50f)]=_0x596367=>this[_0x2e54f9(0x160)][_0x2e54f9(0x153)](_0x596367),_0x401142;}async[_0x4f35dc(0x18b)](){const _0x413b22=_0x4f35dc,_0x5501d7=await super[_0x413b22(0x18b)]();return this['disposeWithMe'](this[_0x413b22(0x1eb)][_0x413b22(0x361)]((_0x449582,_0x5cf726)=>{const _0x35033f=_0x413b22;if(_0x449582[_0x35033f(0x419)]!==a[_0x35033f(0x48c)][_0x35033f(0x213)]||_0x5cf726!=null&&_0x5cf726[_0x35033f(0x362)]||_0x5cf726!=null&&_0x5cf726[_0x35033f(0x408)])return;const _0x342e02=_0x449582['params'];if((_0x342e02==null?void 0x0:_0x342e02[_0x35033f(0x284)])!==this[_0x35033f(0x26b)])return;const _0x78bbb8=_0x449582,_0x2e4b2d=this[_0x35033f(0x4f7)][_0x35033f(0x2d0)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x35033f(0x2d0)]['getInterceptPoints']()[_0x35033f(0x457)])([_0x78bbb8],null)||[_0x78bbb8];this[_0x35033f(0x11f)](_0x2e4b2d[0x0]);})),_0x5501d7;}},exports[_0x4f35dc(0x3aa)]=We([p(0x3,a['Inject'](a['Injector'])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_['CompressMutationService'])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a['Inject'](_['RevisionService'])),p(0x8,a['Inject'](ge)),p(0x9,a['ILogService']),p(0xa,a['ICommandService']),p(0xb,M[_0x4f35dc(0x1dc)]),p(0xc,a[_0x4f35dc(0x415)]),p(0xd,a[_0x4f35dc(0x445)](Ce))],exports['SheetCollaborationEntity']);var $s=Object[_0x4f35dc(0x305)],xs=Object[_0x4f35dc(0x21c)],Hs=(_0x2ca0ab,_0x5f4c49,_0x176768,_0x183eb2)=>{for(var _0x18d090=_0x183eb2>0x1?void 0x0:_0x183eb2?xs(_0x5f4c49,_0x176768):_0x5f4c49,_0x1dc1e0=_0x2ca0ab['length']-0x1,_0x17c34f;_0x1dc1e0>=0x0;_0x1dc1e0--)(_0x17c34f=_0x2ca0ab[_0x1dc1e0])&&(_0x18d090=(_0x183eb2?_0x17c34f(_0x5f4c49,_0x176768,_0x18d090):_0x17c34f(_0x18d090))||_0x18d090);return _0x183eb2&&_0x18d090&&$s(_0x5f4c49,_0x176768,_0x18d090),_0x18d090;},Oe=(_0x582b92,_0x4ca1c5)=>(_0x2a0670,_0x35ca9b)=>_0x4ca1c5(_0x2a0670,_0x35ca9b,_0x582b92);exports['CollaborationController']=class extends a[_0x4f35dc(0x1fe)]{constructor(_0xf11f35,_0x5da3cf,_0xdd8f82){const _0x21c89b=_0x4f35dc;super(),d(this,'_entities',new Map()),d(this,_0x21c89b(0x26c),new v[(_0x21c89b(0x4eb))]()),(this[_0x21c89b(0x183)]=_0xf11f35,this[_0x21c89b(0x355)]=_0x5da3cf,this[_0x21c89b(0x16d)]=_0xdd8f82,this[_0x21c89b(0x18b)]());}[_0x4f35dc(0x3cc)](){const _0x8f1b17=_0x4f35dc;super[_0x8f1b17(0x3cc)](),this['_entities']['forEach'](_0x4b6ca5=>_0x4b6ca5[_0x8f1b17(0x3cc)]()),this[_0x8f1b17(0x164)][_0x8f1b17(0x19f)]();}[_0x4f35dc(0x135)](_0xcab59){const _0x134dee=_0x4f35dc;var _0x2d604c;return(_0x2d604c=this[_0x134dee(0x164)][_0x134dee(0x20a)](_0xcab59))!=null?_0x2d604c:null;}[_0x4f35dc(0x248)](_0x2aa768){const _0x463d6a=_0x4f35dc,_0x37cea3=this['getCollabEntity'](_0x2aa768);return _0x37cea3?v['of'](_0x37cea3):this[_0x463d6a(0x26c)][_0x463d6a(0x49c)](E[_0x463d6a(0x404)](_0x2608e9=>_0x2608e9['unitID']===_0x2aa768));}[_0x4f35dc(0x18b)](){const _0xfc7671=_0x4f35dc;this[_0xfc7671(0x16d)][_0xfc7671(0x283)](a[_0xfc7671(0x1f9)][_0xfc7671(0x396)])[_0xfc7671(0x49c)](v['takeUntil'](this[_0xfc7671(0x364)]),E[_0xfc7671(0x4d9)](0x10))[_0xfc7671(0x4df)](async _0x5b7f16=>{const _0x293f26=_0xfc7671,_0x3d1ed4=_0x5b7f16[_0x293f26(0x402)](),_0x4c8f72=await this[_0x293f26(0x260)](_0x3d1ed4,A['UNIVER_SHEET']);this[_0x293f26(0x164)]['set'](_0x3d1ed4,_0x4c8f72);}),this[_0xfc7671(0x16d)]['getTypeOfUnitAdded$'](a[_0xfc7671(0x1f9)]['UNIVER_DOC'])[_0xfc7671(0x49c)](v[_0xfc7671(0x39c)](this[_0xfc7671(0x364)]),E[_0xfc7671(0x4d9)](0x10))[_0xfc7671(0x49c)](E['filter'](_0x2b32b0=>!_0x2b32b0[_0xfc7671(0x402)]()[_0xfc7671(0x40c)]('__')))['subscribe'](async _0x5cac9d=>{const _0x432a3f=_0xfc7671,_0x4dcb11=_0x5cac9d['getUnitId'](),_0x4ea67d=await this['_startCollaboration'](_0x4dcb11,A[_0x432a3f(0x4fb)]);this[_0x432a3f(0x164)][_0x432a3f(0x4fa)](_0x4dcb11,_0x4ea67d);}),v[_0xfc7671(0x2b0)](this[_0xfc7671(0x16d)][_0xfc7671(0x274)](a[_0xfc7671(0x1f9)][_0xfc7671(0x396)]),this[_0xfc7671(0x16d)][_0xfc7671(0x274)](a[_0xfc7671(0x1f9)][_0xfc7671(0x4fb)]))['pipe'](v[_0xfc7671(0x39c)](this['dispose$']))[_0xfc7671(0x4df)](_0x555369=>{const _0x734f36=_0xfc7671,_0xf4d555=_0x555369[_0x734f36(0x402)](),_0x2d83ec=this[_0x734f36(0x164)][_0x734f36(0x20a)](_0xf4d555);_0x2d83ec&&(_0x2d83ec['dispose'](),this['_entities'][_0x734f36(0x424)](_0xf4d555));});}async['_startCollaboration'](_0x2b7d6a,_0x43a7b8){const _0x1f768b=_0x4f35dc,_0x10d8ad=await this['_collabSessionService']['requireSession'](_0x2b7d6a),_0x12d4b8=this[_0x1f768b(0x183)][_0x1f768b(0x239)](this[_0x1f768b(0x271)](_0x43a7b8),_0x2b7d6a,_0x43a7b8,_0x10d8ad);return await _0x12d4b8[_0x1f768b(0x219)](),this[_0x1f768b(0x26c)][_0x1f768b(0x245)](_0x12d4b8),_0x12d4b8;}[_0x4f35dc(0x271)](_0x49652d){const _0x5ade18=_0x4f35dc;switch(_0x49652d){case A[_0x5ade18(0x4fb)]:return exports['DocCollaborationEntity'];case A[_0x5ade18(0x396)]:return exports[_0x5ade18(0x3aa)];default:throw new Error(_0x5ade18(0x3df)+_0x49652d);}}},exports[_0x4f35dc(0x3a3)]=Hs([Oe(0x0,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),Oe(0x1,a[_0x4f35dc(0x1ac)](exports['CollaborationSessionService'])),Oe(0x2,a[_0x4f35dc(0x2e8)])],exports['CollaborationController']);const st=[_0x4f35dc(0x3e3),_0x4f35dc(0x1ec),_0x4f35dc(0x36e),_0x4f35dc(0x22b),_0x4f35dc(0x3ff),_0x4f35dc(0x276)];class Ge extends a[_0x4f35dc(0x188)]{constructor(){const _0x74caf=_0x4f35dc;super(...arguments),d(this,_0x74caf(0x51b),new Map()),d(this,'_colorIndex',0x0);}[_0x4f35dc(0x4bd)](_0x4ae02f){const _0x29f294=_0x4f35dc;if(this[_0x29f294(0x51b)][_0x29f294(0x34a)](_0x4ae02f))return this[_0x29f294(0x51b)][_0x29f294(0x20a)](_0x4ae02f);const _0xaebdb7=st[this[_0x29f294(0x387)]];return this[_0x29f294(0x387)]=(this[_0x29f294(0x387)]+0x1)%st[_0x29f294(0x3a9)],this['_assignedColors'][_0x29f294(0x4fa)](_0x4ae02f,_0xaebdb7),_0xaebdb7;}}var ks=Object['defineProperty'],Bs=Object[_0x4f35dc(0x21c)],Vs=(_0x10d04f,_0x57703a,_0x321f2c,_0x38bc6f)=>{const _0x228130=_0x4f35dc;for(var _0x5212e2=_0x38bc6f>0x1?void 0x0:_0x38bc6f?Bs(_0x57703a,_0x321f2c):_0x57703a,_0x130113=_0x10d04f[_0x228130(0x3a9)]-0x1,_0xbd58;_0x130113>=0x0;_0x130113--)(_0xbd58=_0x10d04f[_0x130113])&&(_0x5212e2=(_0x38bc6f?_0xbd58(_0x57703a,_0x321f2c,_0x5212e2):_0xbd58(_0x5212e2))||_0x5212e2);return _0x38bc6f&&_0x5212e2&&ks(_0x57703a,_0x321f2c,_0x5212e2),_0x5212e2;},J=(_0x144657,_0x5acf54)=>(_0x15888a,_0x5f5bd9)=>_0x5acf54(_0x15888a,_0x5f5bd9,_0x144657);const Fs=0x12c,Ws=0x64,Gs=()=>{let _0x973d67=[],_0x209294=!0x1;return _0xe4b084=>{const _0x1713be=_0x1935;_0x973d67[_0x1713be(0x268)](_0xe4b084),_0x209294||(_0x209294=!0x0,setTimeout(()=>{_0x973d67['forEach'](_0x59bed5=>_0x59bed5()),_0x973d67=[],_0x209294=!0x1;}));};};let Le=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x5d2479,_0x237c82,_0x5b2f9c,_0x33abb6,_0x5de05c,_0x34f024,_0x254333,_0x39bfee){const _0x16968c=_0x4f35dc;super(),d(this,_0x16968c(0x1d4),!0x1),d(this,'_init',!0x1),d(this,_0x16968c(0x46d),new v[(_0x16968c(0x36c))](new Map())),d(this,_0x16968c(0x443),this[_0x16968c(0x46d)]['asObservable']()),d(this,_0x16968c(0x123),new v[(_0x16968c(0x36c))]([])),d(this,_0x16968c(0x42d),this[_0x16968c(0x123)][_0x16968c(0x49c)](v[_0x16968c(0x317)](Fs))),d(this,_0x16968c(0x47d),xe((_0x4c7a18,_0x47fb63)=>{const _0x5a6326=_0x16968c,_0x266cc0={'eventID':_['CollaborationEvent'][_0x5a6326(0x491)],'data':{'unitID':this[_0x5a6326(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':Xe['serializeRangeWithSheet'](_0x4c7a18,_0x47fb63[_0x5a6326(0x4ff)])}};this[_0x5a6326(0x254)][_0x5a6326(0x2da)](_0x266cc0,this['unitID']);},Ws)),(this[_0x16968c(0x26b)]=_0x5d2479,this[_0x16968c(0x254)]=_0x237c82,this['_injector']=_0x5b2f9c,this['_colorAssignService']=_0x33abb6,this[_0x16968c(0x32a)]=_0x5de05c,this[_0x16968c(0x16d)]=_0x34f024,this['_commandService']=_0x254333,this[_0x16968c(0x196)]=_0x39bfee);}get[_0x4f35dc(0x45e)](){const _0x1fe899=_0x4f35dc;return this['_cursorInfo$'][_0x1fe899(0x181)]();}get['roomMembers'](){const _0x2d4185=_0x4f35dc;return this[_0x2d4185(0x123)][_0x2d4185(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x29dac0=_0x4f35dc;super[_0x29dac0(0x3cc)](),this['_cursorInfo$'][_0x29dac0(0x245)](new Map()),this[_0x29dac0(0x46d)][_0x29dac0(0x331)](),this[_0x29dac0(0x123)][_0x29dac0(0x245)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x9ff60e=_0x4f35dc;this[_0x9ff60e(0x18b)]||(this[_0x9ff60e(0x18b)]=!0x0,this[_0x9ff60e(0x254)]['sessionStatus$']['pipe'](v[_0x9ff60e(0x39c)](this[_0x9ff60e(0x364)]))[_0x9ff60e(0x4df)](_0xae5491=>{const _0x3df02a=_0x9ff60e;_0xae5491===j['ONLINE']?this[_0x3df02a(0x3e4)]():this[_0x3df02a(0x4c1)]();}),this['_session']['event$'][_0x9ff60e(0x49c)](v[_0x9ff60e(0x39c)](this[_0x9ff60e(0x364)]))[_0x9ff60e(0x4df)](_0x3821a0=>{const _0x31362d=_0x9ff60e,_0x19ea7a=_0x3821a0[_0x31362d(0x510)];_0x19ea7a===_[_0x31362d(0x2a7)][_0x31362d(0x491)]&&this['_onCursorUpdate'](_0x3821a0),_0x19ea7a===_[_0x31362d(0x2a7)]['USERS_LEAVE']&&this[_0x31362d(0x500)](_0x3821a0);}),this[_0x9ff60e(0x28f)](),this[_0x9ff60e(0x14d)](this[_0x9ff60e(0x1eb)][_0x9ff60e(0x361)](_0x113fe4=>{const _0x3b411d=_0x9ff60e;if(this[_0x3b411d(0x1d4)]&&_0x113fe4['id']===C[_0x3b411d(0x479)]['id']&&_0x113fe4[_0x3b411d(0x1e1)]['unitId']===this[_0x3b411d(0x26b)]){const _0x5379e0=_0x113fe4[_0x3b411d(0x1e1)];this[_0x3b411d(0x47d)](_0x5379e0['subUnitId'],_0x5379e0['selections'][0x0]);}})));}[_0x4f35dc(0x129)](_0x1fc37b){const _0x4210c7=_0x4f35dc;var _0x5a6bcb,_0x57c06c;const {memberID:_0x6057d6,selection:_0x368077}=_0x1fc37b[_0x4210c7(0x48a)],{sheetName:_0xe40198,range:_0x53fc45}=Xe[_0x4210c7(0x427)](_0x368077),_0x38d383={'name':(_0x57c06c=(_0x5a6bcb=this[_0x4210c7(0x32a)][_0x4210c7(0x25e)](this[_0x4210c7(0x26b)],_0x6057d6))==null?void 0x0:_0x5a6bcb[_0x4210c7(0x3bc)])!=null?_0x57c06c:_0x4210c7(0x36d),'range':this['_getMergeRange'](_0xe40198,_0x53fc45),'sheetID':_0xe40198,'color':this[_0x4210c7(0x3af)][_0x4210c7(0x4bd)](_0x6057d6),'selection':_0x368077},_0x1eefc2=this[_0x4210c7(0x45e)];_0x1eefc2[_0x4210c7(0x4fa)](_0x6057d6,_0x38d383),this[_0x4210c7(0x46d)][_0x4210c7(0x245)](_0x1eefc2);}[_0x4f35dc(0x500)](_0x3eb8a7){const _0xabc806=_0x4f35dc,{memberID:_0x24620a}=_0x3eb8a7[_0xabc806(0x48a)],_0x1faa5c=this['cursorInfo'];_0x1faa5c['delete'](_0x24620a),this[_0xabc806(0x46d)][_0xabc806(0x245)](_0x1faa5c);}[_0x4f35dc(0x302)](_0x34245f,_0x3c2bf7){const _0x19388e=_0x4f35dc;var _0x13d167,_0x2da526;const _0x4406f4=(_0x2da526=(_0x13d167=this['_univerInstanceService'][_0x19388e(0x18c)](this[_0x19388e(0x26b)]))==null?void 0x0:_0x13d167[_0x19388e(0x299)](_0x34245f))==null?void 0x0:_0x2da526[_0x19388e(0x2d6)]();return(_0x4406f4==null?void 0x0:_0x4406f4[_0x19388e(0x20f)](_0xbbb986=>a[_0x19388e(0x437)]['contains'](_0xbbb986,_0x3c2bf7)))||_0x3c2bf7;}[_0x4f35dc(0x28f)](){const _0x3c1f90=_0x4f35dc,_0x45bf24=new a[(_0x3c1f90(0x30d))](),_0x55e7af=Gs(),_0x50afd8=()=>{const _0x41735d=_0x3c1f90;_0x45bf24[_0x41735d(0x3cc)]();const _0x4f9651=(_0x5675ba,_0x5723b7,_0x554ad1,_0x3f3d25)=>{const _0x3e104f=_0x41735d;let _0xd93a0a=[];switch(_0x5675ba['id']){case C[_0x3e104f(0x238)]['DeleteRangeMoveLeftCommandId']:{_0xd93a0a=C[_0x3e104f(0x4f3)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x41b)]:{_0xd93a0a=C[_0x3e104f(0x1a0)](_0x5675ba,_0x3f3d25);break;}case C['EffectRefRangId'][_0x3e104f(0x44a)]:{_0xd93a0a=C[_0x3e104f(0x461)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x300)]:{_0xd93a0a=C[_0x3e104f(0x294)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x228)]:{_0xd93a0a=C[_0x3e104f(0x395)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x287)]:{_0xd93a0a=C[_0x3e104f(0x259)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x40b)]:{_0xd93a0a=C[_0x3e104f(0x2b6)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x4ef)]:{_0xd93a0a=C[_0x3e104f(0x38e)](_0x5675ba,_0x3f3d25);break;}case C['EffectRefRangId'][_0x3e104f(0x3f7)]:{_0xd93a0a=C[_0x3e104f(0x185)](_0x5675ba,_0x3f3d25);break;}}const _0x1546e5=C[_0x3e104f(0x1a8)](_0xd93a0a,_0x3f3d25),_0x645a80=this['cursorInfo'][_0x3e104f(0x20a)](_0x5723b7);if(_0x645a80&&_0x1546e5){const _0x807490={..._0x645a80,'range':_0x1546e5};this[_0x3e104f(0x45e)][_0x3e104f(0x4fa)](_0x5723b7,_0x807490),_0x55e7af(()=>{const _0x1d6f7b=_0x3e104f,_0x5acec8=this['_refRangeService'][_0x1d6f7b(0x3ea)](_0x1546e5,_0x44f0f0=>(_0x5acec8[_0x1d6f7b(0x3cc)](),_0x4f9651(_0x44f0f0,_0x5723b7,_0x554ad1,_0x1546e5)));_0x45bf24['add'](_0x5acec8);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x503f8e,_0x26ff48)=>{const _0xe588f7=_0x41735d,{range:_0x2cd917,sheetID:_0x51f90e}=_0x503f8e,_0x1f921e=this['_refRangeService'][_0xe588f7(0x3ea)](_0x2cd917,_0x173c6b=>(_0x1f921e[_0xe588f7(0x3cc)](),_0x4f9651(_0x173c6b,_0x26ff48,_0x51f90e,_0x2cd917)));_0x45bf24[_0xe588f7(0x3e5)](_0x1f921e);});};this[_0x3c1f90(0x14d)](a[_0x3c1f90(0x456)](this[_0x3c1f90(0x46d)][_0x3c1f90(0x4df)](()=>{_0x50afd8();})));}['_toggleOnline'](){const _0x37a5a4=_0x4f35dc;var _0x10adb9,_0x37a4f3;if(this['_online']=!0x0,((_0x10adb9=this['_univerInstanceService'][_0x37a5a4(0x42e)]())==null?void 0x0:_0x10adb9['getUnitId']())!==this[_0x37a5a4(0x26b)])return;const _0x17ef2c=(_0x37a4f3=this[_0x37a5a4(0x183)][_0x37a5a4(0x20a)](C[_0x37a5a4(0x49e)])[_0x37a5a4(0x1e4)]())==null?void 0x0:_0x37a4f3[0x0],_0xa56922=this['_univerInstanceService'][_0x37a5a4(0x26a)](a[_0x37a5a4(0x1f9)][_0x37a5a4(0x396)])[_0x37a5a4(0x23e)]();_0x17ef2c&&_0xa56922&&this[_0x37a5a4(0x47d)](_0xa56922[_0x37a5a4(0x27c)](),_0x17ef2c);}[_0x4f35dc(0x4c1)](){const _0x592e11=_0x4f35dc;this[_0x592e11(0x1d4)]=!0x1;}};Le=Vs([J(0x2,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),J(0x3,a[_0x4f35dc(0x1ac)](Ge)),J(0x4,a[_0x4f35dc(0x1ac)](K)),J(0x5,a[_0x4f35dc(0x2e8)]),J(0x6,a[_0x4f35dc(0x3ed)]),J(0x7,a[_0x4f35dc(0x1ac)](C['RefRangeService']))],Le);var Ys=Object[_0x4f35dc(0x305)],Ks=Object[_0x4f35dc(0x21c)],Xs=(_0x5368e0,_0x4aae54,_0x11dc00,_0x27a50c)=>{const _0x6ee7d7=_0x4f35dc;for(var _0x94743b=_0x27a50c>0x1?void 0x0:_0x27a50c?Ks(_0x4aae54,_0x11dc00):_0x4aae54,_0x5c9a01=_0x5368e0[_0x6ee7d7(0x3a9)]-0x1,_0x390f01;_0x5c9a01>=0x0;_0x5c9a01--)(_0x390f01=_0x5368e0[_0x5c9a01])&&(_0x94743b=(_0x27a50c?_0x390f01(_0x4aae54,_0x11dc00,_0x94743b):_0x390f01(_0x94743b))||_0x94743b);return _0x27a50c&&_0x94743b&&Ys(_0x4aae54,_0x11dc00,_0x94743b),_0x94743b;},G=(_0x33955b,_0xc6a87a)=>(_0x13cc1d,_0x342f90)=>_0xc6a87a(_0x13cc1d,_0x342f90,_0x33955b);const qs=0x12c,zs=0x64;let Ae=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x4029c8,_0x1da150,_0x260d60,_0x3d8181,_0x5cf819,_0x2322fc,_0x33e1d8,_0x4df1a7,_0x1f7f8f){const _0x205870=_0x4f35dc;super(),d(this,'_online',!0x1),d(this,_0x205870(0x18b),!0x1),d(this,'_cursorInfo$',new v[(_0x205870(0x36c))](new Map())),d(this,_0x205870(0x443),this[_0x205870(0x46d)][_0x205870(0x366)]()),d(this,_0x205870(0x123),new v['BehaviorSubject']([])),d(this,'roomMembers$',this[_0x205870(0x123)][_0x205870(0x49c)](v['debounceTime'](qs))),d(this,_0x205870(0x47d),xe(_0x33faac=>{const _0x23a33a=_0x205870,_0x1f0580={'eventID':_[_0x23a33a(0x2a7)][_0x23a33a(0x491)],'data':{'unitID':this[_0x23a33a(0x26b)],'memberID':this['_session'][_0x23a33a(0x15a)](),'selection':Tt(_0x33faac)}};this[_0x23a33a(0x254)][_0x23a33a(0x2da)](_0x1f0580,this[_0x23a33a(0x26b)]);},zs)),(this[_0x205870(0x26b)]=_0x4029c8,this[_0x205870(0x254)]=_0x1da150,this[_0x205870(0x183)]=_0x260d60,this[_0x205870(0x3af)]=_0x3d8181,this[_0x205870(0x32a)]=_0x5cf819,this[_0x205870(0x325)]=_0x2322fc,this['_transformService']=_0x33e1d8,this['_univerInstanceService']=_0x4df1a7,this[_0x205870(0x1eb)]=_0x1f7f8f);}get[_0x4f35dc(0x45e)](){const _0x3a6d61=_0x4f35dc;return this[_0x3a6d61(0x46d)][_0x3a6d61(0x181)]();}get[_0x4f35dc(0x3a8)](){const _0x2e2c71=_0x4f35dc;return this[_0x2e2c71(0x123)][_0x2e2c71(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x23abdd=_0x4f35dc;super[_0x23abdd(0x3cc)](),this['_cursorInfo$'][_0x23abdd(0x245)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x23abdd(0x245)]([]),this[_0x23abdd(0x123)]['complete']();}[_0x4f35dc(0x219)](){const _0x3c78da=_0x4f35dc;this[_0x3c78da(0x18b)]||(this[_0x3c78da(0x18b)]=!0x0,this[_0x3c78da(0x254)]['sessionStatus$'][_0x3c78da(0x49c)](v[_0x3c78da(0x39c)](this[_0x3c78da(0x364)]))[_0x3c78da(0x4df)](_0x38dd12=>{const _0x21fcb2=_0x3c78da;_0x38dd12===j[_0x21fcb2(0x156)]?this[_0x21fcb2(0x3e4)]():this[_0x21fcb2(0x4c1)]();}),this[_0x3c78da(0x254)]['event$'][_0x3c78da(0x49c)](v[_0x3c78da(0x39c)](this[_0x3c78da(0x364)]))[_0x3c78da(0x4df)](_0x89d5b=>{const _0x63cf4=_0x3c78da,_0xee7608=_0x89d5b[_0x63cf4(0x510)];_0xee7608===_[_0x63cf4(0x2a7)][_0x63cf4(0x491)]&&this[_0x63cf4(0x129)](_0x89d5b),_0xee7608===_[_0x63cf4(0x2a7)][_0x63cf4(0x230)]&&this[_0x63cf4(0x500)](_0x89d5b);}),this[_0x3c78da(0x14d)](this[_0x3c78da(0x1eb)][_0x3c78da(0x361)](_0x1b6a93=>{const _0x1281a0=_0x3c78da,_0x1fda4d=_0x1b6a93[_0x1281a0(0x1e1)];_0x1fda4d!=null&&this[_0x1281a0(0x1d4)]&&_0x1b6a93['id']===w[_0x1281a0(0x50e)]['id']&&_0x1fda4d[_0x1281a0(0x284)]===this[_0x1281a0(0x26b)]&&_0x1fda4d[_0x1281a0(0x516)]===!0x1&&this[_0x1281a0(0x47d)](_0x1fda4d['ranges']);})),this[_0x3c78da(0x325)][_0x3c78da(0x33e)][_0x3c78da(0x49c)](v['takeUntil'](this[_0x3c78da(0x364)]))['subscribe'](_0x2bd7a0=>{const _0x3e2d3f=_0x3c78da;if((_0x2bd7a0==null?void 0x0:_0x2bd7a0[_0x3e2d3f(0x26b)])!==this['unitID'])return;const _0x590c77={'eventID':_['CollaborationEvent'][_0x3e2d3f(0x491)],'data':_0x2bd7a0};this[_0x3e2d3f(0x129)](_0x590c77);}),this[_0x3c78da(0x14d)](this[_0x3c78da(0x1eb)][_0x3c78da(0x361)](_0x3750ee=>{const _0x676892=_0x3c78da;if(_0x3750ee['params']==null)return;const _0x41f014=_0x3750ee[_0x676892(0x1e1)];if(_0x3750ee['id']!==w[_0x676892(0x4a4)]['id']||_0x41f014[_0x676892(0x284)]!==this[_0x676892(0x26b)])return;const _0x6a8fcb={'id':_0x676892(0x38b),'params':_0x41f014},_0x5d90d7=this[_0x676892(0x45e)];for(const [_0x50abbd,_0x5c5068]of _0x5d90d7){const _0x8217ab={'id':_0x676892(0x38b),'params':{'unitId':this[_0x676892(0x26b)],'actions':null,'textRanges':_0x5c5068['ranges']}},_0x324b4d=this[_0x676892(0x2c0)][_0x676892(0x1cd)](_0x6a8fcb,_0x8217ab,!0x1);if(_[_0x676892(0x4d3)](_0x324b4d))throw _0x324b4d[_0x676892(0x22c)];_0x5d90d7['set'](_0x50abbd,{..._0x5c5068,'ranges':_0x324b4d[_0x676892(0x3c7)][_0x676892(0x1e1)]['textRanges']});}queueMicrotask(()=>{const _0x3326ef=_0x676892;this[_0x3326ef(0x46d)][_0x3326ef(0x245)](_0x5d90d7);});})));}[_0x4f35dc(0x129)](_0x2baa5b){const _0x20d8c3=_0x4f35dc;var _0x2ec6ce,_0x1ed8ab;const {memberID:_0x189fcb,selection:_0x447481}=_0x2baa5b[_0x20d8c3(0x48a)],_0xded4da=Os(_0x447481),_0x5829ff=(_0x1ed8ab=(_0x2ec6ce=this[_0x20d8c3(0x32a)][_0x20d8c3(0x25e)](this[_0x20d8c3(0x26b)],_0x189fcb))==null?void 0x0:_0x2ec6ce[_0x20d8c3(0x3bc)])!=null?_0x1ed8ab:_0x20d8c3(0x36d),_0x5d52b0={'color':this[_0x20d8c3(0x3af)][_0x20d8c3(0x4bd)](_0x189fcb),'name':_0x5829ff,'ranges':_0xded4da},_0x2b2458=this[_0x20d8c3(0x45e)];_0x2b2458[_0x20d8c3(0x4fa)](_0x189fcb,_0x5d52b0),this[_0x20d8c3(0x46d)][_0x20d8c3(0x245)](_0x2b2458);}['_onCursorDelete'](_0x21fd76){const _0x28f5a1=_0x4f35dc,{memberID:_0x52037c}=_0x21fd76['data'],_0x1a7461=this[_0x28f5a1(0x45e)];_0x1a7461['delete'](_0x52037c),this[_0x28f5a1(0x46d)][_0x28f5a1(0x245)](_0x1a7461);}['_toggleOnline'](){const _0x36d732=_0x4f35dc;var _0x1e8169;if(this[_0x36d732(0x1d4)]=!0x0,((_0x1e8169=this[_0x36d732(0x16d)][_0x36d732(0x42e)]())==null?void 0x0:_0x1e8169[_0x36d732(0x402)]())!==this['unitID'])return;const _0x3932c9=this['_injector'][_0x36d732(0x20a)](w[_0x36d732(0x502)])[_0x36d732(0x4a8)](),_0x4b072f=_0x3932c9==null?void 0x0:_0x3932c9[_0x36d732(0x201)](w['serializeDocRange']);Array[_0x36d732(0x13c)](_0x4b072f)&&_0x4b072f[_0x36d732(0x3a9)]>0x0&&this[_0x36d732(0x47d)](_0x4b072f);}[_0x4f35dc(0x4c1)](){const _0x49f740=_0x4f35dc;this[_0x49f740(0x1d4)]=!0x1;}};Ae=Xs([G(0x2,a['Inject'](a[_0x4f35dc(0x37b)])),G(0x3,a[_0x4f35dc(0x1ac)](Ge)),G(0x4,a[_0x4f35dc(0x1ac)](K)),G(0x5,a['Inject'](Fe)),G(0x6,_[_0x4f35dc(0x329)]),G(0x7,a[_0x4f35dc(0x2e8)]),G(0x8,a[_0x4f35dc(0x3ed)])],Ae);var Js=Object[_0x4f35dc(0x305)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x2330e0,_0x484b20,_0x21aa70,_0x43473b)=>{const _0x1b2427=_0x4f35dc;for(var _0x2d1251=_0x43473b>0x1?void 0x0:_0x43473b?Zs(_0x484b20,_0x21aa70):_0x484b20,_0x258f67=_0x2330e0[_0x1b2427(0x3a9)]-0x1,_0x3919c3;_0x258f67>=0x0;_0x258f67--)(_0x3919c3=_0x2330e0[_0x258f67])&&(_0x2d1251=(_0x43473b?_0x3919c3(_0x484b20,_0x21aa70,_0x2d1251):_0x3919c3(_0x2d1251))||_0x2d1251);return _0x43473b&&_0x2d1251&&Js(_0x484b20,_0x21aa70,_0x2d1251),_0x2d1251;},De=(_0x168f82,_0x2197ab)=>(_0x5f36a6,_0x21aa0b)=>_0x2197ab(_0x5f36a6,_0x21aa0b,_0x168f82);let ee=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x24613b,_0x2c6ccc,_0x522ad4){const _0x20d946=_0x4f35dc;super(),d(this,_0x20d946(0x164),new Map()),d(this,_0x20d946(0x26c),new v[(_0x20d946(0x4eb))]()),(this[_0x20d946(0x16d)]=_0x24613b,this[_0x20d946(0x183)]=_0x2c6ccc,this[_0x20d946(0x355)]=_0x522ad4,this['_init']());}['dispose'](){const _0x2d74c8=_0x4f35dc;super['dispose'](),this[_0x2d74c8(0x26c)][_0x2d74c8(0x331)](),this[_0x2d74c8(0x164)]['forEach'](_0xb344c3=>_0xb344c3[_0x2d74c8(0x3cc)]());}['getCollabCursors$'](_0x25f6fa){const _0x3de7fe=_0x4f35dc;return this[_0x3de7fe(0x164)][_0x3de7fe(0x34a)](_0x25f6fa)?this['_entities'][_0x3de7fe(0x20a)](_0x25f6fa)[_0x3de7fe(0x443)]:this[_0x3de7fe(0x26c)]['pipe'](v[_0x3de7fe(0x404)](_0x1d5a78=>_0x1d5a78['unitID']===_0x25f6fa),v[_0x3de7fe(0x137)](_0x13c827=>_0x13c827[_0x3de7fe(0x443)]));}[_0x4f35dc(0x18b)](){const _0x3af9bc=_0x4f35dc;this[_0x3af9bc(0x16d)][_0x3af9bc(0x283)](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x396)])['pipe'](v[_0x3af9bc(0x39c)](this[_0x3af9bc(0x364)]))['subscribe'](async _0x40d64c=>{const _0x4d3e89=_0x3af9bc,_0x56903f=_0x40d64c[_0x4d3e89(0x402)](),_0x1eb558=await this[_0x4d3e89(0x378)](_0x56903f);this['_entityInit$'][_0x4d3e89(0x245)](_0x1eb558),this['_entities'][_0x4d3e89(0x4fa)](_0x56903f,_0x1eb558);}),this[_0x3af9bc(0x16d)][_0x3af9bc(0x283)](a[_0x3af9bc(0x1f9)]['UNIVER_DOC'])['pipe'](v[_0x3af9bc(0x39c)](this[_0x3af9bc(0x364)]))[_0x3af9bc(0x49c)](v[_0x3af9bc(0x404)](_0xaad4a6=>!_0xaad4a6['getUnitId']()[_0x3af9bc(0x40c)]('__')))[_0x3af9bc(0x4df)](async _0x2679d0=>{const _0x25e1b5=_0x3af9bc,_0x313e1c=_0x2679d0['getUnitId'](),_0x1b4eac=await this[_0x25e1b5(0x1af)](_0x313e1c);this[_0x25e1b5(0x26c)][_0x25e1b5(0x245)](_0x1b4eac),this[_0x25e1b5(0x164)][_0x25e1b5(0x4fa)](_0x313e1c,_0x1b4eac);}),v[_0x3af9bc(0x2b0)](this['_univerInstanceService'][_0x3af9bc(0x274)](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x4fb)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x396)]))['pipe'](v['takeUntil'](this[_0x3af9bc(0x364)]))['subscribe'](_0x340335=>{const _0x2ffb8a=_0x3af9bc,_0x570c03=_0x340335[_0x2ffb8a(0x402)](),_0x8caf69=this[_0x2ffb8a(0x164)][_0x2ffb8a(0x20a)](_0x570c03);_0x8caf69&&(_0x8caf69[_0x2ffb8a(0x3cc)](),this[_0x2ffb8a(0x164)]['delete'](_0x570c03));});}async['_startSheetCollabCursor'](_0x4ca11f){const _0xcda6b3=_0x4f35dc,_0x505730=await this[_0xcda6b3(0x355)][_0xcda6b3(0x14b)](_0x4ca11f),_0xabaca8=this[_0xcda6b3(0x183)]['createInstance'](Le,_0x4ca11f,_0x505730);return _0xabaca8[_0xcda6b3(0x219)](),_0xabaca8;}async[_0x4f35dc(0x1af)](_0xb435e9){const _0x465053=_0x4f35dc,_0x3cb400=await this['_collabSessionService']['requireSession'](_0xb435e9),_0xebd36=this[_0x465053(0x183)][_0x465053(0x239)](Ae,_0xb435e9,_0x3cb400);return _0xebd36[_0x465053(0x219)](),_0xebd36;}};ee=Qs([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)]['Starting'],ee),De(0x0,a[_0x4f35dc(0x2e8)]),De(0x1,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),De(0x2,a['Inject'](exports[_0x4f35dc(0x4a3)]))],ee);const he=0x14,it=0xc8,ye=0x4,ei=0x5;function ti(_0x2b9563,_0x4c06ac){const _0x2283ae=_0x4f35dc;let {radius:_0x4dd1ad,width:_0x23558a,height:_0x593988}=_0x4c06ac;_0x4dd1ad=_0x4dd1ad!=null?_0x4dd1ad:0x0,_0x23558a=_0x23558a!=null?_0x23558a:0x1e,_0x593988=_0x593988!=null?_0x593988:0x1e;let _0x4601c8=0x0,_0x1578ce=0x0,_0x2ed0c7=0x0;_0x4601c8=_0x1578ce=_0x2ed0c7=Math[_0x2283ae(0x182)](_0x4dd1ad,_0x23558a/0x2,_0x593988/0x2),_0x2b9563[_0x2283ae(0x46a)](),_0x2b9563[_0x2283ae(0x147)](_0x4601c8,0x0),_0x2b9563[_0x2283ae(0x383)](_0x23558a-_0x1578ce,0x0),_0x2b9563['arc'](_0x23558a-_0x1578ce,_0x1578ce,_0x1578ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b9563['lineTo'](_0x23558a,_0x593988-_0x2ed0c7),_0x2b9563[_0x2283ae(0x335)](_0x23558a-_0x2ed0c7,_0x593988-_0x2ed0c7,_0x2ed0c7,0x0,Math['PI']/0x2,!0x1),_0x2b9563[_0x2283ae(0x383)](0x0,_0x593988),_0x2b9563[_0x2283ae(0x383)](0x0,_0x4601c8),_0x2b9563[_0x2283ae(0x335)](_0x4601c8,_0x4601c8,_0x4601c8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b9563[_0x2283ae(0x2d9)](),_0x4c06ac[_0x2283ae(0x3a0)]&&(_0x2b9563[_0x2283ae(0x145)](),_0x2b9563['fillStyle']=_0x4c06ac[_0x2283ae(0x3a0)],_0x4c06ac['fillRule']===_0x2283ae(0x512)?_0x2b9563[_0x2283ae(0x3a0)](_0x2283ae(0x512)):_0x2b9563[_0x2283ae(0x3a0)](),_0x2b9563['restore']());}class Ee extends b[_0x4f35dc(0x2f2)]{constructor(_0xe9650c,_0x3cd69c){const _0x1a0ec8=_0x4f35dc;super(_0xe9650c,_0x3cd69c),d(this,_0x1a0ec8(0x29e)),d(this,_0x1a0ec8(0x49b)),(this[_0x1a0ec8(0x29e)]=_0x3cd69c==null?void 0x0:_0x3cd69c[_0x1a0ec8(0x29e)],this[_0x1a0ec8(0x49b)]=_0x3cd69c==null?void 0x0:_0x3cd69c['text']);}static[_0x4f35dc(0x265)](_0x11fbbe,_0x4d9831){const _0x545c3b=_0x4f35dc,{text:_0x31f3a1,color:_0x1c188e}=_0x4d9831;_0x11fbbe[_0x545c3b(0x145)](),_0x11fbbe[_0x545c3b(0x49d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x9b0d33=_0x11fbbe['measureText'](_0x31f3a1)[_0x545c3b(0x293)],_0x477a1c=Math[_0x545c3b(0x182)](_0x9b0d33+0x2*ye,it);ti(_0x11fbbe,{'height':he,'radius':0x4,'width':_0x477a1c,'fill':_0x1c188e,'evented':!0x1}),_0x11fbbe[_0x545c3b(0x50b)]=_0x545c3b(0x3f9);const _0x2dde25=ye,_0x5ab475=he-ei,_0x1a049f=it-0x2*ye;if(_0x9b0d33>_0x1a049f){let _0x29e11d='',_0x3bd820=0x0;for(const _0x5aabf5 of _0x31f3a1){const _0xdb6594=_0x11fbbe[_0x545c3b(0x261)](_0x5aabf5)[_0x545c3b(0x293)];if(_0x3bd820+_0xdb6594<=_0x1a049f-_0x11fbbe[_0x545c3b(0x261)]('...')[_0x545c3b(0x293)])_0x29e11d+=_0x5aabf5,_0x3bd820+=_0xdb6594;else{_0x29e11d+=_0x545c3b(0x2b5);break;}}_0x11fbbe[_0x545c3b(0x150)](_0x29e11d,_0x2dde25,_0x5ab475);}else _0x11fbbe[_0x545c3b(0x150)](_0x31f3a1,_0x2dde25,_0x5ab475);_0x11fbbe[_0x545c3b(0x458)]();}[_0x4f35dc(0x519)](_0x5eedd1){const _0x377333=_0x4f35dc;Ee[_0x377333(0x265)](_0x5eedd1,this);}}const si=0x1,ii=1.5;function _0x1935(_0x2c278e,_0x1ce651){const _0x2d8673=_0x2d86();return _0x1935=function(_0x1935e0,_0x35540f){_0x1935e0=_0x1935e0-0x11e;let _0xd48263=_0x2d8673[_0x1935e0];return _0xd48263;},_0x1935(_0x2c278e,_0x1ce651);}class Ot extends b[_0x4f35dc(0x2f2)]{constructor(_0x3d2c2d,_0x445404){const _0x1c39b0=_0x4f35dc;super(_0x3d2c2d,_0x445404),d(this,_0x1c39b0(0x1c0)),d(this,_0x1c39b0(0x4e7),!0x1),d(this,_0x1c39b0(0x38f)),d(this,_0x1c39b0(0x27b),''),d(this,'_labelPosition','top'),d(this,_0x1c39b0(0x206)),(_0x445404&&this[_0x1c39b0(0x298)](_0x445404),this['onPointerEnter$'][_0x1c39b0(0x4e4)](()=>this[_0x1c39b0(0x298)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1c39b0(0x4e4)](()=>this[_0x1c39b0(0x298)]({'hovered':!0x1})));}['setShapeProps'](_0x1c1508){const _0x4a3583=_0x4f35dc;var _0x76b4db,_0x154153,_0x141d85,_0x62e959,_0x345cbd,_0x31421d;this[_0x4a3583(0x1c0)]=(_0x76b4db=_0x1c1508['color'])!=null?_0x76b4db:this['_color'],this[_0x4a3583(0x4e7)]=(_0x154153=_0x1c1508[_0x4a3583(0x3f1)])!=null?_0x154153:this[_0x4a3583(0x4e7)],this[_0x4a3583(0x38f)]=(_0x141d85=_0x1c1508[_0x4a3583(0x4ff)])!=null?_0x141d85:this[_0x4a3583(0x38f)],this[_0x4a3583(0x27b)]=(_0x62e959=_0x1c1508[_0x4a3583(0x3bc)])!=null?_0x62e959:this[_0x4a3583(0x27b)],this[_0x4a3583(0x4d5)]=(_0x345cbd=_0x1c1508[_0x4a3583(0x1d2)])!=null?_0x345cbd:this[_0x4a3583(0x4d5)],this[_0x4a3583(0x206)]=(_0x31421d=_0x1c1508[_0x4a3583(0x22a)])!=null?_0x31421d:this[_0x4a3583(0x206)],this['transformByState']({'width':_0x1c1508[_0x4a3583(0x293)],'height':_0x1c1508['height']});}[_0x4f35dc(0x371)](_0x129e2c){const _0x1e3ca3=_0x4f35dc,{row:_0x25ef20,column:_0x49e3e4}=_0x129e2c;if(_0x25ef20>=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x1c9)]&&_0x25ef20<=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x4e3)]&&_0x49e3e4>=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x40a)]&&_0x49e3e4<=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x130)]){this[_0x1e3ca3(0x298)]({'hovered':!0x0});return;}this[_0x1e3ca3(0x298)]({'hovered':!0x1});}[_0x4f35dc(0x337)](_0x9f3ac){return!0x1;}['_draw'](_0x275ec8){const _0x3b8087=_0x4f35dc;b['Rect'][_0x3b8087(0x265)](_0x275ec8,{'width':this[_0x3b8087(0x293)],'height':this['height'],'strokeWidth':ii,'stroke':this[_0x3b8087(0x1c0)],'evented':!0x1,'fill':this[_0x3b8087(0x206)]}),this[_0x3b8087(0x4e7)]&&(_0x275ec8[_0x3b8087(0x145)](),_0x275ec8[_0x3b8087(0x198)](0x1,0x0,0x0,0x1,this[_0x3b8087(0x293)],this['_labelPosition']==='bottom'?0x0:-he),Ee[_0x3b8087(0x265)](_0x275ec8,{'text':this[_0x3b8087(0x27b)],'color':this[_0x3b8087(0x1c0)]}),_0x275ec8[_0x3b8087(0x458)]());}}var ni=Object[_0x4f35dc(0x305)],ri=Object['getOwnPropertyDescriptor'],oi=(_0x1b120e,_0x463ed2,_0x278bc4,_0x4dc968)=>{const _0x432273=_0x4f35dc;for(var _0x2d98ef=_0x4dc968>0x1?void 0x0:_0x4dc968?ri(_0x463ed2,_0x278bc4):_0x463ed2,_0x3f2e04=_0x1b120e[_0x432273(0x3a9)]-0x1,_0x2705bc;_0x3f2e04>=0x0;_0x3f2e04--)(_0x2705bc=_0x1b120e[_0x3f2e04])&&(_0x2d98ef=(_0x4dc968?_0x2705bc(_0x463ed2,_0x278bc4,_0x2d98ef):_0x2705bc(_0x2d98ef))||_0x2d98ef);return _0x4dc968&&_0x2d98ef&&ni(_0x463ed2,_0x278bc4,_0x2d98ef),_0x2d98ef;},Pe=(_0x3a2e1d,_0x56bde1)=>(_0x54b0be,_0x549e82)=>_0x56bde1(_0x54b0be,_0x549e82,_0x3a2e1d);const ai=0x1389;let je=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x82854d,_0x1109ee,_0x401df9,_0x4051e3){const _0x25ef38=_0x4f35dc;super(),d(this,_0x25ef38(0x4ad),new Set()),d(this,_0x25ef38(0x46c),null),(this[_0x25ef38(0x462)]=_0x82854d,this[_0x25ef38(0x1ae)]=_0x1109ee,this[_0x25ef38(0x452)]=_0x401df9,this[_0x25ef38(0x2d5)]=_0x4051e3,this[_0x25ef38(0x18b)]());}[_0x4f35dc(0x18b)](){const _0x58ff5c=_0x4f35dc;this[_0x58ff5c(0x1ae)][_0x58ff5c(0x360)][_0x58ff5c(0x49c)](E[_0x58ff5c(0x39c)](this[_0x58ff5c(0x364)]),E['switchMap'](_0x22aef9=>{const _0xb90899=_0x58ff5c;if(_0x22aef9){const _0x47546a=_0x22aef9[_0xb90899(0x168)];return v[_0xb90899(0x390)](this[_0xb90899(0x452)][_0xb90899(0x173)](this[_0xb90899(0x462)][_0xb90899(0x284)]),this['_themeService']['currentTheme$'])[_0xb90899(0x49c)](E[_0xb90899(0x201)](([_0x49f6b0,_0x30f600])=>{const _0xad5b39=_0xb90899,_0x50b79e=new Map();return _0x49f6b0[_0xad5b39(0x155)]((_0x24acd0,_0x3d9ad9)=>{const _0x148dce=_0xad5b39;if(_0x24acd0[_0x148dce(0x25b)]===_0x47546a){const _0x230155={..._0x24acd0};_0x230155['color']=_0x30f600[_0x24acd0[_0x148dce(0x29e)]],_0x50b79e[_0x148dce(0x4fa)](_0x3d9ad9,_0x230155);}}),{'skeleton':_0x22aef9,'cursors':_0x50b79e};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x58ff5c(0x4df)](({skeleton:_0x5a393f,cursors:_0x213da3})=>{const _0x3cd100=_0x58ff5c;this[_0x3cd100(0x16f)](),_0x5a393f&&this[_0x3cd100(0x30a)](_0x5a393f,_0x213da3);}),this[_0x58ff5c(0x1ae)][_0x58ff5c(0x360)]['subscribe'](_0x3fb68e=>{const _0x74bd44=_0x58ff5c;if(_0x3fb68e==null)return;const {skeleton:_0x125552}=_0x3fb68e,{scene:_0x17a7b7}=this[_0x74bd44(0x462)];_0x17a7b7['onPointerMove$'][_0x74bd44(0x4e4)](xe(_0x22833f=>{const _0x57cf79=_0x74bd44;var _0x17aa06,_0x32cca7;const {offsetX:_0xf1d09b,offsetY:_0x3c276b}=_0x22833f,{x:_0x1936b9,y:_0x102ed3}=_0x17a7b7[_0x57cf79(0x410)](b[_0x57cf79(0x1b4)][_0x57cf79(0x121)]([_0xf1d09b,_0x3c276b])),{scaleX:_0x3dad80,scaleY:_0x3a6ba1}=_0x17a7b7[_0x57cf79(0x4c8)](),_0x31e6d9=_0x17a7b7[_0x57cf79(0x4e6)](Q[_0x57cf79(0x2de)][_0x57cf79(0x3b3)]),_0x57eb6e=_0x17a7b7['getVpScrollXYInfoByPosToVp'](b[_0x57cf79(0x1b4)][_0x57cf79(0x121)]([_0x1936b9,_0x102ed3]),_0x31e6d9),_0xb7c090=_0x125552['getCellPositionByOffset'](_0xf1d09b,_0x3c276b,_0x3dad80,_0x3a6ba1,_0x57eb6e);((_0x17aa06=this[_0x57cf79(0x46c)])==null?void 0x0:_0x17aa06['column'])===_0xb7c090['column']&&((_0x32cca7=this['_lastPointer'])==null?void 0x0:_0x32cca7[_0x57cf79(0x4bb)])===_0xb7c090['row']||this['_cursors'][_0x57cf79(0x155)](_0x2a36b6=>{const _0x25fa45=_0x57cf79;_0x2a36b6[_0x25fa45(0x371)](_0xb7c090);});},0x64));});}[_0x4f35dc(0x30a)](_0x2ad64b,_0x191ac3){const _0x9d6ab=_0x4f35dc;var _0x84bf44;const _0x48d17b=(_0x84bf44=this[_0x9d6ab(0x1ae)][_0x9d6ab(0x332)]())==null?void 0x0:_0x84bf44[_0x9d6ab(0x372)];if(!_0x48d17b)return;const _0x401563=this[_0x9d6ab(0x122)]();if(!_0x401563)return;this[_0x9d6ab(0x4ad)][_0x9d6ab(0x155)](_0x168bf2=>{const _0x4c1e3a=_0x9d6ab;_0x168bf2[_0x4c1e3a(0x256)]();});const {scene:_0x37622b}=_0x401563,_0x503221=ci(Array['from'](_0x191ac3[_0x9d6ab(0x215)]()))[_0x9d6ab(0x201)](_0x30bc9e=>{const _0x5d4e63=_0x9d6ab,{color:_0x2e7f9b,range:_0x3fadbc,name:_0x142ea4,selection:_0x398d23,sheetID:_0x33456d}=_0x30bc9e,{startColumn:_0x5a080c,startRow:_0x50fc31,endColumn:_0x5208e4,endRow:_0x1433d9}=_0x3fadbc,_0x2b34a6=Q['getCoordByCell'](_0x50fc31,_0x5a080c,_0x37622b,_0x48d17b),_0x1ce119=Q[_0x5d4e63(0x45c)](_0x1433d9,_0x5208e4,_0x37622b,_0x48d17b),{columnHeaderHeightAndMarginTop:_0x422da0}=_0x48d17b,{startX:_0x17ec0e,startY:_0x27036a}=_0x2b34a6,{endX:_0x1efd47,endY:_0x2d0648}=_0x1ce119,_0x4532d2=_0x1efd47-_0x17ec0e,_0x2afa2a=_0x2d0648-_0x27036a,_0x56b881={'labelPosition':_0x27036a-_0x422da0>=he?_0x5d4e63(0x422):_0x5d4e63(0x413),'sheetID':_0x33456d,'range':_0x3fadbc,'color':_0x2e7f9b,'name':_0x142ea4,'selection':_0x398d23,'left':_0x17ec0e,'top':_0x27036a,'width':_0x4532d2,'height':_0x2afa2a,'evented':!0x1,'zIndex':ai};return new Ot(_0x142ea4,_0x56b881);});_0x37622b[_0x9d6ab(0x143)](_0x503221,si),this['_cursors']=new Set(_0x503221);}[_0x4f35dc(0x16f)](){const _0x14ca5b=_0x4f35dc;var _0x573640;(_0x573640=this[_0x14ca5b(0x4ad)])==null||_0x573640[_0x14ca5b(0x155)](_0x41b201=>_0x41b201[_0x14ca5b(0x3cc)]());}['_getSheetObject'](){const _0x45df03=_0x4f35dc;return Q[_0x45df03(0x3cb)](this[_0x45df03(0x462)][_0x45df03(0x39b)],this[_0x45df03(0x462)]);}};je=oi([Pe(0x1,a[_0x4f35dc(0x1ac)](Q[_0x4f35dc(0x438)])),Pe(0x2,a[_0x4f35dc(0x1ac)](ee)),Pe(0x3,a['Inject'](a['ThemeService']))],je);function ci(_0x9ad1f7){const _0x1f076e=_0x4f35dc,_0x1111da=new Map();return _0x9ad1f7['forEach'](_0x2195b5=>{const _0xeffe36=_0x1935;if(_0x1111da[_0xeffe36(0x34a)](_0x2195b5[_0xeffe36(0x4c6)])){const _0x16261f=_0x1111da['get'](_0x2195b5[_0xeffe36(0x4c6)]);_0x16261f[_0xeffe36(0x3bc)]+=',\x20'+_0x2195b5[_0xeffe36(0x3bc)];}else _0x1111da[_0xeffe36(0x4fa)](_0x2195b5[_0xeffe36(0x4c6)],_0x2195b5);}),Array[_0x1f076e(0x1fb)](_0x1111da[_0x1f076e(0x215)]());}var N=function(){const _0x4cd528=_0x4f35dc;return N=Object[_0x4cd528(0x1a9)]||function(_0x42dfed){const _0xa5a8cc=_0x4cd528;for(var _0x2fe242,_0x4db2fe=0x1,_0x1362bd=arguments[_0xa5a8cc(0x3a9)];_0x4db2fe<_0x1362bd;_0x4db2fe++){_0x2fe242=arguments[_0x4db2fe];for(var _0x1b72ff in _0x2fe242)Object[_0xa5a8cc(0x195)]['hasOwnProperty'][_0xa5a8cc(0x400)](_0x2fe242,_0x1b72ff)&&(_0x42dfed[_0x1b72ff]=_0x2fe242[_0x1b72ff]);}return _0x42dfed;},N[_0x4cd528(0x184)](this,arguments);},li=function(_0x571621,_0x4b252b){const _0xab41fb=_0x4f35dc;var _0x46ee64={};for(var _0x4924ce in _0x571621)Object[_0xab41fb(0x195)]['hasOwnProperty'][_0xab41fb(0x400)](_0x571621,_0x4924ce)&&_0x4b252b['indexOf'](_0x4924ce)<0x0&&(_0x46ee64[_0x4924ce]=_0x571621[_0x4924ce]);if(_0x571621!=null&&typeof Object[_0xab41fb(0x252)]==_0xab41fb(0x39a)){for(var _0x452ce3=0x0,_0x4924ce=Object[_0xab41fb(0x252)](_0x571621);_0x452ce3<_0x4924ce[_0xab41fb(0x3a9)];_0x452ce3++)_0x4b252b[_0xab41fb(0x4fc)](_0x4924ce[_0x452ce3])<0x0&&Object[_0xab41fb(0x195)][_0xab41fb(0x157)]['call'](_0x571621,_0x4924ce[_0x452ce3])&&(_0x46ee64[_0x4924ce[_0x452ce3]]=_0x571621[_0x4924ce[_0x452ce3]]);}return _0x46ee64;},Ye=P[_0x4f35dc(0x23b)](function(_0x80dc56,_0x4c1b05){const _0x569118=_0x4f35dc;var _0x525f66=_0x80dc56[_0x569118(0x440)],_0x2172a8=_0x80dc56['id'],_0x4acbf5=_0x80dc56[_0x569118(0x12f)],_0x49720f=_0x80dc56[_0x569118(0x1bd)],_0x4db502=li(_0x80dc56,[_0x569118(0x440),'id',_0x569118(0x12f),_0x569118(0x1bd)]),_0x8efb28=_0x569118(0x24f)[_0x569118(0x2a2)](_0x2172a8,'\x20')[_0x569118(0x2a2)](_0x4acbf5||'')[_0x569118(0x28b)](),_0x4ba9b6=P['useRef']('_'[_0x569118(0x2a2)](ui()));return Dt(_0x525f66,''[_0x569118(0x2a2)](_0x2172a8),{'defIds':_0x525f66[_0x569118(0x3a2)],'idSuffix':_0x4ba9b6[_0x569118(0x270)]},N({'ref':_0x4c1b05,'className':_0x8efb28},_0x4db502),_0x49720f);});function Dt(_0x48e081,_0x2c7ab9,_0x3ffa83,_0x4a02f8,_0x481047){const _0x2fcb64=_0x4f35dc;return P['createElement'](_0x48e081[_0x2fcb64(0x41c)],N(N({'key':_0x2c7ab9},hi(_0x48e081,_0x3ffa83,_0x481047)),_0x4a02f8),(_i(_0x48e081,_0x3ffa83)['children']||[])[_0x2fcb64(0x201)](function(_0x1e35b6,_0x338c02){const _0x358ea0=_0x2fcb64;return Dt(_0x1e35b6,''['concat'](_0x2c7ab9,'-')['concat'](_0x48e081[_0x358ea0(0x41c)],'-')[_0x358ea0(0x2a2)](_0x338c02),_0x3ffa83,void 0x0,_0x481047);}));}function hi(_0x536079,_0x4b5fec,_0x1f845d){const _0x4095a8=_0x4f35dc;var _0xc88ea3=N({},_0x536079['attrs']);_0x1f845d!=null&&_0x1f845d[_0x4095a8(0x2d8)]&&_0xc88ea3[_0x4095a8(0x3a0)]===_0x4095a8(0x2d8)&&(_0xc88ea3[_0x4095a8(0x3a0)]=_0x1f845d[_0x4095a8(0x2d8)]);var _0x21b234=_0x4b5fec['defIds'];return!_0x21b234||_0x21b234[_0x4095a8(0x3a9)]===0x0||(_0x536079['tag']==='use'&&_0xc88ea3[_0x4095a8(0x2cf)]&&(_0xc88ea3[_0x4095a8(0x2cf)]=_0xc88ea3[_0x4095a8(0x2cf)]+_0x4b5fec[_0x4095a8(0x435)]),Object[_0x4095a8(0x2fd)](_0xc88ea3)['forEach'](function(_0x1dcd8b){const _0x33ff5f=_0x4095a8;var _0x2ac69b=_0x1dcd8b[0x0],_0x26296b=_0x1dcd8b[0x1];typeof _0x26296b==_0x33ff5f(0x4cd)&&(_0xc88ea3[_0x2ac69b]=_0x26296b[_0x33ff5f(0x278)](/url\(#(.*)\)/,_0x33ff5f(0x4ba)[_0x33ff5f(0x2a2)](_0x4b5fec[_0x33ff5f(0x435)],')')));})),_0xc88ea3;}function _i(_0x77e7f,_0x2fc204){const _0x5c2f75=_0x4f35dc;var _0x5c1074,_0x2a5b23=_0x2fc204[_0x5c2f75(0x3a2)];return!_0x2a5b23||_0x2a5b23[_0x5c2f75(0x3a9)]===0x0?_0x77e7f:_0x77e7f['tag']==='defs'&&(!((_0x5c1074=_0x77e7f[_0x5c2f75(0x3da)])===null||_0x5c1074===void 0x0)&&_0x5c1074[_0x5c2f75(0x3a9)])?N(N({},_0x77e7f),{'children':_0x77e7f[_0x5c2f75(0x3da)]['map'](function(_0x293153){const _0x3bb3a1=_0x5c2f75;return typeof _0x293153[_0x3bb3a1(0x1db)]['id']==_0x3bb3a1(0x4cd)&&_0x2a5b23&&_0x2a5b23[_0x3bb3a1(0x4fc)](_0x293153['attrs']['id'])>-0x1?N(N({},_0x293153),{'attrs':N(N({},_0x293153['attrs']),{'id':_0x293153[_0x3bb3a1(0x1db)]['id']+_0x2fc204[_0x3bb3a1(0x435)]})}):_0x293153;})}):_0x77e7f;}function ui(){const _0xb209b7=_0x4f35dc;return Math[_0xb209b7(0x28a)]()[_0xb209b7(0x16b)](0x24)['substring'](0x2,0x8);}Ye[_0x4f35dc(0x148)]=_0x4f35dc(0x3c4);var di={'tag':_0x4f35dc(0x29d),'attrs':{'fill':_0x4f35dc(0x4a6),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4f35dc(0x128)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'stroke':_0x4f35dc(0x1be),'d':_0x4f35dc(0x354),'strokeLinecap':'round','strokeLinejoin':_0x4f35dc(0x2bf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4f35dc(0x1ed),'attrs':{'id':_0x4f35dc(0x2a9)},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'fill':_0x4f35dc(0x159),'d':_0x4f35dc(0x2a0)}}]}]}],'defIds':[_0x4f35dc(0x2a9)]},yt=P[_0x4f35dc(0x23b)](function(_0x20d4a5,_0x295ec0){const _0x140cc0=_0x4f35dc;return P[_0x140cc0(0x13a)](Ye,Object['assign']({},_0x20d4a5,{'id':'off-line-single','ref':_0x295ec0,'icon':di}));});yt[_0x4f35dc(0x148)]='OffLineSingle';var Si={'tag':_0x4f35dc(0x29d),'attrs':{'fill':'none','viewBox':_0x4f35dc(0x4ab),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4f35dc(0x4e2)},'children':[{'tag':'path','attrs':{'stroke':_0x4f35dc(0x1be),'d':_0x4f35dc(0x499),'strokeLinecap':_0x4f35dc(0x2bf),'strokeLinejoin':_0x4f35dc(0x2bf),'strokeWidth':1.2}}]},{'tag':_0x4f35dc(0x25d),'attrs':{},'children':[{'tag':_0x4f35dc(0x1ed),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'fill':_0x4f35dc(0x159),'d':_0x4f35dc(0x2a0),'transform':_0x4f35dc(0x4a9)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=P[_0x4f35dc(0x23b)](function(_0x5ab866,_0x3332f7){const _0x1a41cf=_0x4f35dc;return P[_0x1a41cf(0x13a)](Ye,Object[_0x1a41cf(0x1a9)]({},_0x5ab866,{'id':'on-line-single','ref':_0x3332f7,'icon':Si}));});Pt['displayName']=_0x4f35dc(0x295);const vi='univer-online-status-icon',mi=_0x4f35dc(0x4a1),fi='univer-online-status',gi=_0x4f35dc(0x1e6),Ii=_0x4f35dc(0x42b),oe={'onlineStatusIcon':vi,'onlineStatusTitle':mi,'onlineStatus':fi,'online':gi,'offline':Ii};function pi(_0xc8c12c){const _0x4b1804=_0x4f35dc;switch(_0xc8c12c){case y[_0x4b1804(0x291)]:return _0x4b1804(0x365);case y[_0x4b1804(0x2ee)]:return _0x4b1804(0x200);case y[_0x4b1804(0x2ac)]:return _0x4b1804(0x27d);case y[_0x4b1804(0x4db)]:return _0x4b1804(0x455);case y[_0x4b1804(0x391)]:case y['AWAITING']:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y[_0x4b1804(0x4c3)]:return'collabStatus.synced';}}function wt(_0x2ba2c3){const _0x1db061=_0x4f35dc,{status$:_0x394361}=_0x2ba2c3,_0x42fe10=M[_0x1db061(0x4f6)](_0x394361,y[_0x1db061(0x4db)]),_0x372002=a[_0x1db061(0x306)](a[_0x1db061(0x43c)]),_0x30aa07=a[_0x1db061(0x306)](exports[_0x1db061(0x4a3)]),_0x491c4f=_0x42fe10!==y['OFFLINE'],_0x19c9a0=_0x372002['t'](pi(_0x42fe10)),_0xa21414=Vt(oe[_0x1db061(0x18e)],{[oe['online']]:_0x491c4f,[oe[_0x1db061(0x2e6)]]:!_0x491c4f}),_0xd4b0d7=_0x491c4f?P[_0x1db061(0x13a)](Pt,null):P[_0x1db061(0x13a)](yt,null),_0x3c7efa=P[_0x1db061(0x4ae)](()=>{const _0x6a6d8a=_0x1db061;_0x491c4f||_0x30aa07[_0x6a6d8a(0x493)]();},[_0x491c4f,_0x30aa07]);function _0x2f38ff(){const _0x4079aa=_0x1db061;return P[_0x4079aa(0x13a)](_0x4079aa(0x4a5),{'className':_0xa21414,'onClick':_0x3c7efa},P[_0x4079aa(0x13a)](_0x4079aa(0x4a5),{'className':oe[_0x4079aa(0x3ca)]},_0xd4b0d7),P['createElement']('div',{'className':oe[_0x4079aa(0x4b5)]},_0x19c9a0));}return _0x491c4f?_0x2f38ff():P[_0x1db061(0x13a)](Y[_0x1db061(0x1fd)],{'title':_0x372002['t'](_0x1db061(0x158))},_0x2f38ff());}var Ci=Object[_0x4f35dc(0x305)],Ei=Object[_0x4f35dc(0x21c)],bi=(_0x14979e,_0x5c598e,_0x14b9f4,_0x11c5d1)=>{const _0x353e10=_0x4f35dc;for(var _0x5ceb0c=_0x11c5d1>0x1?void 0x0:_0x11c5d1?Ei(_0x5c598e,_0x14b9f4):_0x5c598e,_0x74462d=_0x14979e[_0x353e10(0x3a9)]-0x1,_0x3c4057;_0x74462d>=0x0;_0x74462d--)(_0x3c4057=_0x14979e[_0x74462d])&&(_0x5ceb0c=(_0x11c5d1?_0x3c4057(_0x5c598e,_0x14b9f4,_0x5ceb0c):_0x3c4057(_0x5ceb0c))||_0x5ceb0c);return _0x11c5d1&&_0x5ceb0c&&Ci(_0x5c598e,_0x14b9f4,_0x5ceb0c),_0x5ceb0c;},_e=(_0x187375,_0x179467)=>(_0x1f0456,_0x45179f)=>_0x179467(_0x1f0456,_0x45179f,_0x187375);exports[_0x4f35dc(0x345)]=class extends a['Disposable']{constructor(_0x432491,_0xef17d8,_0x5b46fb,_0x247c1b){const _0x5b6740=_0x4f35dc;super(),d(this,'_status$',new v[(_0x5b6740(0x36c))](y[_0x5b6740(0x4db)])),(this[_0x5b6740(0x16d)]=_0x432491,this['_uiPartsService']=_0xef17d8,this['_injector']=_0x5b46fb,this[_0x5b6740(0x515)]=_0x247c1b,this[_0x5b6740(0x233)](),this[_0x5b6740(0x242)]());}[_0x4f35dc(0x242)](){const _0x34adf6=_0x4f35dc;this['disposeWithMe'](this[_0x34adf6(0x16d)][_0x34adf6(0x3ef)]['pipe'](v['switchMap'](()=>{const _0x3247a7=_0x34adf6,_0x56edbc=this['_univerInstanceService'][_0x3247a7(0x42e)]();return _0x56edbc?this[_0x3247a7(0x515)]['getCollabEntity$'](_0x56edbc[_0x3247a7(0x402)]()):v['of'](null);}),v[_0x34adf6(0x137)](_0x14781b=>_0x14781b?_0x14781b[_0x34adf6(0x370)]:v['of'](y[_0x34adf6(0x4db)])))[_0x34adf6(0x4df)](_0x3d855b=>{const _0x2e7e57=_0x34adf6;this[_0x2e7e57(0x4f8)][_0x2e7e57(0x245)](_0x3d855b);}));}[_0x4f35dc(0x233)](){const _0x6fa778=_0x4f35dc;this[_0x6fa778(0x14d)](this['_uiPartsService'][_0x6fa778(0x163)](M[_0x6fa778(0x417)][_0x6fa778(0x14a)],()=>a[_0x6fa778(0x19c)](Ti({'status$':this[_0x6fa778(0x4f8)][_0x6fa778(0x366)]()}),this[_0x6fa778(0x183)])));}},exports[_0x4f35dc(0x345)]=bi([_e(0x0,a[_0x4f35dc(0x2e8)]),_e(0x1,M[_0x4f35dc(0x397)]),_e(0x2,a['Inject'](a[_0x4f35dc(0x37b)])),_e(0x3,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x3a3)]))],exports[_0x4f35dc(0x345)]);function Ti(_0x310dd3){const {status$:_0x108ca9}=_0x310dd3;return function(){return P['createElement'](wt,{'status$':_0x108ca9});};}function _0x2d86(){const _0x2ed87d=['roomMembers','length','SheetCollaborationEntity','_clearRedo','getConfig','SNAPSHOT_URL_KEY','_sendHeartbeatTimer','_colorAssignService','_rescheduleHeartbeat','updateMember','take','VIEW_MAIN','_docSyncEditingCollabCursorService','EmptyMutation','headers','SNAPSHOT_INVALID_SNAPSHOT','_httpService','RECV','_unitStatus','ALREADY_EXISTS','name','YUUMI_UNABLE_LOAD_URL','CHANGESET_REJ','fetching\x20missing\x20changesets\x20from\x20','_state','8zAUwsN','image/png','_loadDoc','UniverIcon','NO_OTHER_CLIENTS_EDITING','APPLY_NON_SEQUENTIAL_REVISION','m2Prime','_eventUnsubscribe','_renderManagerService','onlineStatusIcon','getSheetObject','dispose','unsubscribe','UNDEFINED','resize','image/jpeg','[SyncedState]:\x20received\x20rejection.','_telemetryService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','TEXT_RANGE_LAYER_INDEX','encodeURIComponent','getSheetBlock','socket$','permission.content','enableAuthServer','children','UNKNOWN_CMD','executeCommand','_cursorShapes','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSkeleton','collaboration.single-unit.warning','_acknowledgedAwaitingChangeset','purple300','_toggleOnline','add','_tryReconnect','Undefined','[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.','every','registerRefRange','some','_heartbeatTimer','ICommandService','toStringTag','focused$','joinRsp','hovered','concatMap','_undoStacks','getColor','online','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','RemoveRowCommandId','_listenToOfflineEvent','#FFF','fetchMiss','refreshPermission','_collaborationSessionService','deepClone','ThemeService','blue400','call','_snapshotServerService','getUnitId','IRemoteInstanceService','filter','_docTransformSelectionsService','ACTIVE_UNIT_EVENT_CHANNEL','c1Prime','onlyLocal','DataLoaderController','startColumn','MoveRangeCommandId','startsWith','b64DecodeUnicode','_registerRenderDependencies','IAuthzIoService','getRelativeToViewportCoord','_schedule','getResourcesRequest','bottom','_onUserJoin','IPermissionService','CollaborationStatus','BuiltInUIPart','CONNECTOR_DATA_TOO_LARGE','type','WorkbookEditablePermission','DeleteRangeMoveUpCommandId','tag','_scheduleTimestamp','csAckEvent','/unit/','_drawAnchor','session.collaboration-timeout','top','_localCacheService','delete','transformRemoteChangeset','@univerjs/design','deserializeRangeWithSheet','ILogService','_snapshotService','[CollaborationSessionService]:\x20socket\x20error','univer-offline','collab-text-anchor-','roomMembers$','getFocusedUnit','_updateLocalCache','pending','8LCrkzP','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sendHeartbeat','path','idSuffix','_joinRoom','Rectangle','SheetSkeletonManagerService','OnLifecycle','UNIVER_UNKNOWN','unitId\x20is\x20not\x20found','LocaleService','_syncEditingCollabCursor','_getSignURL','_getUploadFileURL','icon','getImageSourceCache','onStateChange','cursorInfo$','@univerjs/sheets','Optional','_throwTelemetryCollaborationNewChangeset','setItem','react','_handleEvent','InsertColCommandId','setTimeout','ICollaborationSocketService','Ready','LICENSE_MAX_UNITS_EXCEEDED','INTERNAL_ERROR','collaboration-client.offline-data-not-saved','replaceState','_collabCursorController','reduce','onSyncEditingCollabCursor','collabStatus.notCollab','toDisposable','COMPRESS_MUTATION_SEND','restore','_transformIMECache','objects','Error','getCoordByCell','IImageIoService','cursorInfo','_handleLeaveEvent','mergeOverrideWithDependencies','handleInsertCol','_context','_commentUpdate$','setCurrentUser','_getCurrentRevision','getUnit','JOINING','3924oycuEm','_socket$','beginPath','LIVESHARE_FETCH_OPERATIONS','_lastPointer','_cursorInfo$','post','isTransformMutationsWithChangesetSuccess','1223262VTfJkW','confirm','collaboration.closeRoom','_render','collaboratorID','change$','routeKey','getRoom','getItem','SetSelectionsOperation','telemetry\x20info\x20is\x20not\x20initialized','loadOfflineData','_getSaveTimeout','_updateLocalCursor','_substituteUndoStack','onRemoteAck','_onRemoteRejected','collaboration-session-retry','_decreaseWaiting','distinctUntilChanged','COMMENT_UPDATE','_send','getCurrentUser','LICENSE_EXPORT_SIZE_EXCEEDED','url','_lockTransition','data','UNKNOWN_CODE','CommandType','getTime','_registerDependencies','create','_state$','UPDATE_CURSOR','IContextService','reconnect','_onOffline','searchParams','_onConnectionFailed','_replaceFileID','_timeoutTimer','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','DocStateChangeManagerService','text','pipe','font','SheetsSelectionsService','members','session.room-full','univer-online-status-title','_updateSubUnitFromURLParams','CollaborationSessionService','RichTextEditingMutation','div','none','fetchThroughInterceptors','getDocRanges','translate(.97)','_change$','0\x200\x2017\x2016','saveImage','_cursors','useCallback','getUnitStatus$','parse','MessageType','RevisionService','_docSkeletonManagerService','\x20in\x20_schedule.','onlineStatusTitle','registerBeforeClose','setParam','enableOfflineEditing','saveSheetBlock','url(#$1','row','SessionStatus','assignAColorForMemberID','/collaborator','_unitID','onRemoteChangeset','_toggleOffline','_applyRemoteChangeset','SYNCED','_exhaustRemoteChangesetQueue','catch','selection','revision','getAncestorScale','override','_handleHeartbeatEvent','_getUndoStack','_tryEnsureSocket','string','findNodePositionByCharIndex','flatMap','isTransformChangesetsSuccess','COMPRESS_MUTATION_APPLY','/-/object/list','isTransformMutationFailure','AWAITING_WITH_PENDING','_labelPosition','4061961qKYpXu','UNAUTHENTICATED','onPointerEnter$','delay','collaMsg','NOT_COLLAB','_collabCursorState$','put','_isPermissionRej','subscribe','ImageUploadStatusType','file','url(#on-line-single_clip0_910_349)','endRow','subscribeEvent','_onFetchMissResult','getViewport','_hovered','_drawRectRange','JSONX','_getRedoStack','Subject','_event$','saveOfflineData','_id','RemoveColCommandId','CollaborationSocketService','SNAPSHOT_HAS_BEEN_REMOVED','state','handleDeleteRangeMoveLeft','getParam','/fetchmissing?from=','useObservable','_compressMutationService','_status$','_createInitialState','set','UNIVER_DOC','indexOf','HEARTBEAT','append','range','_onCursorDelete','list','TextSelectionManagerService','_selfUnitIDs','[DataLoaderController]','getActiveRange','HTTPRequest','changesets','_handler','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','onTransformRemoteChangesetByIMECache','fillStyle','show','failed\x20to\x20apply\x20missed\x20changesets!','SetTextSelectionsOperation','onTransformSelections','eventID','LOCAL_CACHE_INTERVAL','evenodd','liveShareNewHost','@univerjs/docs','_collaborationController','isEditing','newCsEvent','6BMqCRG','_draw','getWorkbookSelections','_assignedColors','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','registerHTTPInterceptor','FileId','deleteCollaborator','_cachedData','COLORS','syncEditingCollabCursor','_onLocalMutation','then','FromArray','_getSheetObject','_roomMembers$','COLLAB_SUBMIT_CHANGESET_URL_KEY','IDLE','Module','_updateState','1em','_onCursorUpdate','_initCommandExecutedListener','_shapes','_shouldReportTelemetry','objectID','FAIL','className','endColumn','/universer-api/comb','_removeClearOtherTimer','[CollaborationEntity]','isActive','getCollabEntity','_onConflict','switchMap','_HTTPService','_socketService','createElement','Plugin','isArray','SnapshotService','UNRECOGNIZED','fromEventSubject','_remoteChangesetQueue','UNIVER_COLLABORATION_CLIENT_PLUGIN','conflict.content','addObjects','Steady','save','_incrementRevisionNumber','moveTo','displayName','_singleActiveUnitService','HEADER_MENU','requireSession','isInternalEditorID','disposeWithMe','IMEInputManagerService','ImageSourceType','fillText','onSendChangeset','selections','transformSelections','registerRenderModule','forEach','ONLINE','propertyIsEnumerable','collab-client.tooltip.reconnect','#fff','getMemberID','sessionStatus','_disabled','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ERROR_EXCEED_SIZE','_transitionLocked','_sheetTransformSelectionsService','100035ZuECuX','onMissedChangesetFetched','registerComponent','_entities','PERMISSION_DENIED','includes','awaiting','sheetId','UUID','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','toString','_executeRemoteChangeset','_univerInstanceService','COLLAB_SUBMIT_CHANGESET_URL','_removeCollabCursors','objectActions','onRendered','href','getCollabCursors$','conflict','DEFAULT_FILE_NAME','subUnitId','PSEUDO_FETCH_MISSING_RESULT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketReady','addObject','CollaborationSession','collaboration_new_changeset','addEventListener','_saveTaskMap','_drawTextRange','editingUnit','getValue','min','_injector','apply','handleIRemoveRow','_getAPIPrefix','_unlockTransition','Disposable','save\x20fail\x20reason\x20is\x20','LIVESHARE_REQUEST_HOST','_init','getUniverSheetInstance','image/bmp','onlineStatus','compose','_getSnapshotAPIPrefix','_commentService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','pushState','[PendingState]:\x20received\x20rejection.','prototype','_refRangeService','RETRY_CONNECTING_MAX_COUNT','transform','location','_configService','UPDATE_PERMISSION_OBJ','connectInjector','black','LIVESHARE_TERMINATE','clear','handleDeleteRangeMoveUp','_onUserLeave','getOffsetConfig','_createHandler','50711emghEA','[PendingState]:\x20received\x20acknowledgement.','PERMISSION_REJ','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','runRefRangeMutations','assign','_members','exhaustSavingTask','Inject','_removeRoom','_sheetSkeletonManagerService','_startDocCollabCursor','updatePermissionObjEvent','XHRHTTPImplementation','UniverCollaborationClientPlugin','/rev/','Vector2','code','_transformStack','_collaborationPaused','_cursor','[UniverCollaborationClientPlugin]','Starting','USERS_ENTER','CHANGESET_ACK','extend','currentColor','[CollaborationState]:\x20apply\x20error!','_color','_listenToOnlineEvent','localeService','_undoRedoService','Rect','max','onRemoteRej','LICENSE_DISTRO_REJECTED','_onCombEvent','startRow','HEARTBEAT_INTERVAL_KEY','_transformUndoRedoStack','resend','transformMutation','throttleTime','_retryConnectingTimer','_transformPreviousActiveRange','NEW_CHANGESETS','labelPosition','_showConflictNotification','_online','all','SnapshotServerOverHTTPService','disableLocalCache','newValue','_ensureSubject','_waitCount','attrs','IMessageService','json','_createSocket','_telemetryInfo','_revisionService','params','getUndoRedoMutationParamsCache','unknown','getCurrentSelections','_waitForHeartbeatResponse','univer-online','clearInterval','_notificationService','collaboration-client.config','RegularPolygon','_commandService','jiqing500','clipPath','getCurrentRevForDocument','FETCH_MISSING','APPLY_PERMISSION_DENIED','deserializeToCombResponse','_clearCollaborationTimeoutTimer','_getScale','_onMessage','collab-text-range-','error$','mapDocumentTypeToUniverType','@univerjs/core','UniverInstanceType','HELLO','from','memberID','Tooltip','RxDisposable','_instanceService','collabStatus.conflict','map','state$','ImageIoService','SheetCollabCursorShape','loadDoc','_backgroundColor','@univerjs/telemetry','\x0aAfter:\x20','/block/','get','INotificationService','SUCCUSS','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onMissingChangesets','find','_setupSubUnitSync','?size=','listRoles','MUTATION','AuthzIoHttpService','values','_fetchMissChangesets','resolve','_setupBeforeClosingHandler','init','ws://127.0.0.1:8000/universer-api/comb/connect','[OfflineState]:\x20received\x20rejection.','getOwnPropertyDescriptor','close$','pauseCollaboration','socket\x20open.','\x20-\x20','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaitingChangeset','slice','SetWorksheetActivateCommand','awaiting_with_pending','_retryCount','_initUnitPermissionChange','InsertRangeMoveRightCommandId','_ws','backgroundColor','red300','error','initWorkbookPermissionChange','not_collab','LIVESHARE_NEW_HOST','USERS_LEAVE','SNAPSHOT_SERVER_URL_KEY','close','_initStatusComponent','encode','LEAVE','\x20to\x20','@univerjs/sheets-ui','EffectRefRangId','createInstance','baseRev','forwardRef','_anchor','/-/object/-/batch_allowed','getActiveSheet','_saveCache','open$','setWaitCount','_initStatusListener','cmd','NOT_FOUND','next','m1Prime','shouldCloseConn','getCollabEntity$','parseProtocolChangeset','mutations','_scheduleHeartbeat','_hover','UniverCollaborationPlugin','_handleHover','univerjs-icon\x20univerjs-icon-','patch','event$','getOwnPropertySymbols','_socketMessageSubscription','_session','_loadSheet','makeDirty','HttpExport','urlChange$','handleInsertRow','_docStateChangeManagerService','sheetID','_transformUndoredo','defs','getMember','_getSendChangesetTimeout','_startCollaboration','measureText','BASE64','_startTelemetryCollaborationNewChangeset','roles','drawWith','_clearLocalCache','stopTime','push','_imageSourceCache','getCurrentUnitForType','unitID','_entityInit$','JOIN','7UALZOx','_updateURLWithCurrentState','current','_getCtorByUniverType','_document','[CollaborationSession]','getTypeOfUnitDisposed$','IHTTPImplementation','gold400','_type','replace','update','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_name','getSheetId','collabStatus.fetchMiss','updateCollaborator','OTHER_CLIENTS_EDITING','YUUMI_RATE_OVER_LIMIT','_transformSelections','/object/','getTypeOfUnitAdded$','unitId','getUnhiddenWorksheets','responseType','InsertRowCommandId','_docSkeleton','_logService','random','trim','_initResize','split','enableSingleActiveInstanceLock','_onRefRangeChange','_initCloseConn','OFFLINE','_collaborationTimeoutTimer','width','handleInsertRangeMoveDown','OnLineSingle','@univerjs/engine-formula','[CollaborationSessionService]','setShapeProps','getSheetBySheetId','LocalCacheService','LOGIN_URL_KEY','unit-cache-','svg','color','toggleOnline','M0\x200H16V16H0z','SetDocZoomRatioOperation','concat','onCommentUpdate','&to=','_socket','generateRandomId','CollaborationEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','off-line-single_clip0_910_343','requestParams','INGEST','FETCH_MISS','/universer-api/file/{fileID}/sign-url','LifecycleStages','_initModules','merge','appendMutation','INVALID_ARGUMENT','socketService','stringify','...','handleMoveRange','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','EXCHANGE_SIGN_URL_SERVER_URL_KEY','IUndoRedoService','ISnapshotServerService','isTransformMutationsWithChangesetFailure','_onJoinRoomEvent','size','objectType','round','_transformService','currentTheme$','_http','LocalUndoRedoService','conflict.title','_clearScheduledTask','SheetPermissionInitController','_createInitialStateImpl','/new_changes','_disableEditing','clearTimeout','_beforeCloseService','@univerjs/engine-render','_clearTimeoutTimer','_getLoginPath','xlink:href','interceptor','IBeforeCloseService','SUBMIT_CHANGESET','title','COLLAB_WEB_SOCKET_URL','_themeService','getMergeData','_scene','colorChannel1','closePath','send','createSocket','CollaborationStatusDisplay','toggleOffline','VIEWPORT_KEY','CollaborationEntity','textRanges','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/snapshot/','_pendingMutations','connection\x20error','activeSheet$','offline','SHOULD_CLOSE_CONN','IUniverInstanceService','onload','setActiveRange','_unitOnClients','session','_textBubble','CONFLICT','ERROR_IMAGE','_replayCachedMutations','_clearOtherTimers','Shape','LOCAL_CACHE_INTERVAL_KEY','collab-rect-range-','capture','getInterceptPoints','setUndoRedoMutationParamsCache','/object','AUTHZ_URL_KEY','_scheduleClearOtherTimer','onTransformIME','SEND_CHANGESET_TIMEOUT_KEY','entries','/universer-api/oidc/authpage','createIdentifier','InsertRangeMoveDownCommandId','IConfigService','_getMergeRange','readAsDataURL','_initMergeInterceptor','defineProperty','useDependency','status','_sendingTimer','YUUMI_URL_COL_OUT_OF_RANGE','_updateCollabCursors','batchAllowed','originalMeta','DisposableCollection','session.connection-failed','updatePermissionPoint','[CollaborationUndoRedoService]','COMPLETION_FINISHED','_localeService','LIVESHARE_OPERATION','/universer-api/authz','_docTransformIMECacheService','transformIMECache','debounceTime','MergeInterceptorFactory','_redoStacks','UNIVER_PROJECT','joinEvent','reject','setAlpha','_permissionService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_getAPIPrefixPath','sessionStatus$','_awaitingChangeset','fromEvent','_submitChangeset','_syncEditingCollabCursorService','_updateStatus','[OfflineState]:\x20received\x20changeset.','incrementRevForDocument','ITransformService','_memberService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','_clearUndo','_refreshCollabCursors','_hideTimer','CompressMutationService','complete','getCurrent','synced','_anchorDot','arc','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','triggerDblclick','Warning','allowed','removeMember','debug','HEARTBEAT_TIMEOUT','history','collabCursorState$','_stopTelemetryCollaborationNewChangeset','_queuedRemoteChangesets','HTTPService','csRejEvent','\x0aCurrent:\x20','subunit','DesktopCollaborationStatusDisplayController','UNIVER_SLIDE','popstate','message$','storage','has','shareReplay','collaborators','session.will-retry','16852Vihkgk','_sessionStatus$','UnitEmbedded','result','@univerjs-pro/collaboration','now','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','_collabSessionService','_getAnchorBounding','isPermissionRej','unshift','_substituteRedoStack','_transformRemoteChangesetByIMECache','_clearHeartbeatTimer','@univerjs/ui','POST','getUnitType','removeEventListener','currentSkeleton$','onCommandExecuted','fromCollab','/universer-api/snapshot','dispose$','collabStatus.offline','asObservable','src','HEARTBEAT_INTERVAL','UnitSnapshot','roomInfos','InsertSheetMutation','BehaviorSubject','Unknown\x20user','verdancy600','_urlService','status$','onMouseMove','skeleton','_onRemoteACK','Tools','replaceTextRanges','registerOnClose','transformMutationsWithChangeset','_startSheetCollabCursor','Workbook','pluginName','Injector','_userManagerService','actions','4475210QsVNIY','_scheduleCollaborationTimeoutTimer','IURLService','loadSheet','fetch_missing','lineTo','APPLY_REVISION_CONFILICT','MSG_FOR_ERROR','toRgbString','_colorIndex','_config','updateOfflineData','_localStorageService','doc.mutation.rich-text-editing','rgba(255,\x20255,\x20255,\x200.01)','62802OXLvSq','handleIRemoveCol','_range','combineLatest','PENDING','_sessions','updateCursorEvent','snapshot','handleInsertRangeMoveRight','UNIVER_SHEET','IUIPartsService','COLLAB_WEB_SOCKET_URL_KEY','WebSocketService','function','unit','takeUntil','_roomMembers','DocCollaborationEntity','getRangePointData','fill','transformChangesets','defIds','CollaborationController','_messageService','ILocalStorageService','_checkMissing','DependentOn'];_0x2d86=function(){return _0x2ed87d;};return _0x2d86();}const Ke=a['createIdentifier']('uni.network.url-service');var Ri=Object[_0x4f35dc(0x305)],Oi=Object[_0x4f35dc(0x21c)],Di=(_0x42adf3,_0x3a1304,_0x206dae,_0x3a53bc)=>{const _0xfecd08=_0x4f35dc;for(var _0x49da75=_0x3a53bc>0x1?void 0x0:_0x3a53bc?Oi(_0x3a1304,_0x206dae):_0x3a1304,_0xf564da=_0x42adf3[_0xfecd08(0x3a9)]-0x1,_0x338ad7;_0xf564da>=0x0;_0xf564da--)(_0x338ad7=_0x42adf3[_0xf564da])&&(_0x49da75=(_0x3a53bc?_0x338ad7(_0x3a1304,_0x206dae,_0x49da75):_0x338ad7(_0x49da75))||_0x49da75);return _0x3a53bc&&_0x49da75&&Ri(_0x3a1304,_0x206dae,_0x49da75),_0x49da75;},Z=(_0x5bcd25,_0x4248a2)=>(_0x565ef2,_0x325a6c)=>_0x4248a2(_0x565ef2,_0x325a6c,_0x5bcd25);exports[_0x4f35dc(0x409)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x36f050,_0x4b7911,_0x43d4d8,_0x4e4387,_0x1827bb,_0x19c96b){const _0x2ff7e3=_0x4f35dc;super(),this[_0x2ff7e3(0x36f)]=_0x36f050,this['_logService']=_0x4b7911,this[_0x2ff7e3(0x1eb)]=_0x43d4d8,this[_0x2ff7e3(0x423)]=_0x4e4387,this[_0x2ff7e3(0x429)]=_0x1827bb,_0x19c96b?_0x19c96b==null||_0x19c96b['whenReady']()['then'](()=>this['_init']()):(this[_0x2ff7e3(0x289)][_0x2ff7e3(0x33b)](_0x2ff7e3(0x504),_0x2ff7e3(0x221)),this['_init']());}async[_0x4f35dc(0x18b)](){const _0x12fbf6=_0x4f35dc,_0x2ca849=this['_urlService']['getParam'](_0x12fbf6(0x39b)),_0x3a3c09=this[_0x12fbf6(0x36f)][_0x12fbf6(0x4f4)](_0x12fbf6(0x419));if(!_0x2ca849||!_0x3a3c09){this[_0x12fbf6(0x289)][_0x12fbf6(0x33b)](_0x12fbf6(0x504),_0x12fbf6(0x20d));return;}switch(Number(_0x3a3c09)){case A[_0x12fbf6(0x396)]:{const _0x2933da=await this[_0x12fbf6(0x255)](_0x2ca849);this[_0x12fbf6(0x210)](_0x2933da);break;}case A['UNIVER_DOC']:{await this[_0x12fbf6(0x3c3)](_0x2ca849);break;}default:{this[_0x12fbf6(0x289)][_0x12fbf6(0x22c)](_0x12fbf6(0x504),_0x12fbf6(0x2e1));break;}}}async[_0x4f35dc(0x210)](_0x2451f8){const _0x3ab09b=_0x4f35dc;await this[_0x3ab09b(0x4a2)](_0x2451f8),_0x2451f8[_0x3ab09b(0x2e5)][_0x3ab09b(0x49c)](v[_0x3ab09b(0x39c)](this[_0x3ab09b(0x364)]))['subscribe'](_0x47686f=>{const _0x3e8a76=_0x3ab09b;_0x47686f&&this[_0x3e8a76(0x26f)](_0x47686f);}),this[_0x3ab09b(0x36f)]['urlChange$']['pipe'](v[_0x3ab09b(0x39c)](this['dispose$']))[_0x3ab09b(0x4df)](()=>this[_0x3ab09b(0x4a2)](_0x2451f8));}[_0x4f35dc(0x26f)](_0xf5f907,_0x18b63e=!0x1){const _0x21597b=_0x4f35dc,_0x124575=this[_0x21597b(0x36f)][_0x21597b(0x4f4)](_0x21597b(0x344));_0xf5f907[_0x21597b(0x27c)]()!==_0x124575&&this[_0x21597b(0x36f)][_0x21597b(0x4b7)](_0x21597b(0x344),_0xf5f907[_0x21597b(0x27c)](),_0x18b63e);}async[_0x4f35dc(0x4a2)](_0x40c988){const _0x4af23a=_0x4f35dc;var _0x4f4292;const _0x1e1db0=this[_0x4af23a(0x36f)][_0x4af23a(0x4f4)](_0x4af23a(0x344));if(!_0x1e1db0||!_0x40c988[_0x4af23a(0x299)](_0x1e1db0)){const _0x1774b2=_0x40c988[_0x4af23a(0x285)]()[0x0],_0x260664=_0x40c988[_0x4af23a(0x299)](_0x1774b2);if(!_0x260664)return;this[_0x4af23a(0x26f)](_0x260664,!0x0),await this['_commandService'][_0x4af23a(0x3dc)](C[_0x4af23a(0x224)]['id'],{'unitId':_0x40c988[_0x4af23a(0x402)](),'subUnitId':_0x1774b2});return;}((_0x4f4292=_0x40c988[_0x4af23a(0x23e)]())==null?void 0x0:_0x4f4292[_0x4af23a(0x27c)]())!==_0x1e1db0&&await this[_0x4af23a(0x1eb)][_0x4af23a(0x3dc)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x40c988[_0x4af23a(0x402)](),'subUnitId':_0x1e1db0});}async[_0x4f35dc(0x255)](_0x122cfa){const _0x174c2d=_0x4f35dc;let _0x5b2b1a=0x0;const _0x3d7821=await this[_0x174c2d(0x423)]['loadOfflineData'](_0x122cfa);return _0x3d7821&&(_0x3d7821['awaitingChangeset']||_0x3d7821[_0x174c2d(0x24a)][_0x174c2d(0x3a9)]!==0x0)&&(_0x5b2b1a=_0x3d7821['rev']),_0x5b2b1a===0x0&&this['_logService'][_0x174c2d(0x33b)](_0x174c2d(0x504),_0x174c2d(0x178)),this['_snapshotService'][_0x174c2d(0x381)](_0x122cfa,_0x5b2b1a);}async['_loadDoc'](_0x143115){const _0x3e81c1=_0x4f35dc;let _0x42c680=0x0;const _0x5cd333=await this['_localCacheService'][_0x3e81c1(0x47b)](_0x143115);return _0x5cd333&&(_0x5cd333[_0x3e81c1(0x222)]||_0x5cd333[_0x3e81c1(0x24a)][_0x3e81c1(0x3a9)]!==0x0)&&(_0x42c680=_0x5cd333['rev']),_0x42c680===0x0&&this['_logService'][_0x3e81c1(0x33b)]('[DataLoaderController]',_0x3e81c1(0x178)),this['_snapshotService'][_0x3e81c1(0x205)](_0x143115,_0x42c680);}},exports[_0x4f35dc(0x409)]=Di([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)][_0x4f35dc(0x1ba)],exports[_0x4f35dc(0x409)]),Z(0x0,Ke),Z(0x1,a[_0x4f35dc(0x428)]),Z(0x2,a[_0x4f35dc(0x3ed)]),Z(0x3,a['Inject'](exports[_0x4f35dc(0x29a)])),Z(0x4,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x13d)])),Z(0x5,a['Optional'](Ft[_0x4f35dc(0x403)]))],exports[_0x4f35dc(0x409)]);var yi=Object[_0x4f35dc(0x305)],Pi=Object[_0x4f35dc(0x21c)],wi=(_0x3f18e8,_0x44a1cb,_0x596262,_0x2f37c)=>{for(var _0x5b7c5b=_0x2f37c>0x1?void 0x0:_0x2f37c?Pi(_0x44a1cb,_0x596262):_0x44a1cb,_0xc2b748=_0x3f18e8['length']-0x1,_0x56f735;_0xc2b748>=0x0;_0xc2b748--)(_0x56f735=_0x3f18e8[_0xc2b748])&&(_0x5b7c5b=(_0x2f37c?_0x56f735(_0x44a1cb,_0x596262,_0x5b7c5b):_0x56f735(_0x5b7c5b))||_0x5b7c5b);return _0x2f37c&&_0x5b7c5b&&yi(_0x44a1cb,_0x596262,_0x5b7c5b),_0x5b7c5b;},nt=(_0x5d2808,_0x340f9f)=>(_0x3d34b9,_0x382a23)=>_0x340f9f(_0x3d34b9,_0x382a23,_0x5d2808);const Ui=_0x4f35dc(0x175),Ni='Univer';let Se=class extends a[_0x4f35dc(0x188)]{constructor(_0x5c82a0,_0x4bff6f){super(),this['_univerInstanceService']=_0x5c82a0,this['_configService']=_0x4bff6f,this['_init']();}[_0x4f35dc(0x18b)](){const _0x48157d=_0x4f35dc;this[_0x48157d(0x14d)](a[_0x48157d(0x456)](this[_0x48157d(0x16d)][_0x48157d(0x3ef)][_0x48157d(0x4df)](()=>{const _0x20b785=_0x48157d;var _0x2db30c;const _0x2402de=this[_0x20b785(0x16d)][_0x20b785(0x42e)]();let _0x12737c=(_0x2db30c=this[_0x20b785(0x19a)]['getConfig'](Ui))!=null?_0x2db30c:Ni;_0x2402de instanceof a[_0x20b785(0x379)]&&(_0x12737c=_0x2402de[_0x20b785(0x3bc)]),document[_0x20b785(0x2d3)]=_0x12737c;})));}};Se=wi([a[_0x4f35dc(0x439)](a['LifecycleStages'][_0x4f35dc(0x44d)],Se),nt(0x0,a['IUniverInstanceService']),nt(0x1,a[_0x4f35dc(0x301)])],Se);var Mi=Object[_0x4f35dc(0x305)],Li=Object[_0x4f35dc(0x21c)],Ai=(_0x309d92,_0x141a14,_0x39f2a1,_0x3c2aa1)=>{const _0xa92d8f=_0x4f35dc;for(var _0x15000d=_0x3c2aa1>0x1?void 0x0:_0x3c2aa1?Li(_0x141a14,_0x39f2a1):_0x141a14,_0x2385b1=_0x309d92[_0xa92d8f(0x3a9)]-0x1,_0x1089f7;_0x2385b1>=0x0;_0x2385b1--)(_0x1089f7=_0x309d92[_0x2385b1])&&(_0x15000d=(_0x3c2aa1?_0x1089f7(_0x141a14,_0x39f2a1,_0x15000d):_0x1089f7(_0x15000d))||_0x15000d);return _0x3c2aa1&&_0x15000d&&Mi(_0x141a14,_0x39f2a1,_0x15000d),_0x15000d;},rt=(_0x2440d2,_0x360750)=>(_0xf48d1a,_0x5a43ff)=>_0x360750(_0xf48d1a,_0x5a43ff,_0x2440d2);exports[_0x4f35dc(0x1d6)]=class{constructor(_0x341512,_0x4b73eb){const _0x3880b8=_0x4f35dc;this[_0x3880b8(0x19a)]=_0x341512,this[_0x3880b8(0x3b8)]=_0x4b73eb;}async['getUnitOnRev'](_0x595039,_0x3353d4){const _0x5fa1a7=_0x4f35dc;var _0xe1c887;const {unitID:_0x2860b6,type:_0x4c970f,revision:_0x15c2d5=0x0}=_0x3353d4,_0x22b9ff=this[_0x5fa1a7(0x190)]()+'/'+_0x4c970f+'/unit/'+_0x2860b6+_0x5fa1a7(0x1b3)+_0x15c2d5,_0x4f2c65=(await this['_httpService'][_0x5fa1a7(0x20a)](_0x22b9ff))[_0x5fa1a7(0x3de)],_0x4f1e90=(_0xe1c887=_0x4f2c65[_0x5fa1a7(0x394)])==null?void 0x0:_0xe1c887['workbook'];if(_0x4f1e90){const _0x3f15e9=_0x4f1e90==null?void 0x0:_0x4f1e90['originalMeta'],_0x1bc23f=_['textEncoder'][_0x5fa1a7(0x234)](_[_0x5fa1a7(0x40d)](_0x3f15e9));_0x4f1e90[_0x5fa1a7(0x30c)]=_0x1bc23f,Object[_0x5fa1a7(0x2fd)](_0x4f1e90['sheets'])[_0x5fa1a7(0x155)](([,_0x1d0a3f])=>{const _0x39ce74=_0x5fa1a7,_0x562b9e=_0x1d0a3f[_0x39ce74(0x30c)],_0x87638b=_['textEncoder'][_0x39ce74(0x234)](_['b64DecodeUnicode'](_0x562b9e));_0x1d0a3f[_0x39ce74(0x30c)]=_0x87638b;});}return _0x4f2c65;}async[_0x4f35dc(0x3d6)](_0x145a66,_0x1ffdc2){const _0x4308fc=_0x4f35dc,{unitID:_0x67792f,type:_0xc83269,blockID:_0x2524bd}=_0x1ffdc2,_0x1d90dd=this[_0x4308fc(0x186)]()+'/'+_0xc83269+_0x4308fc(0x41f)+_0x67792f+_0x4308fc(0x209)+_0x2524bd;return(await this[_0x4308fc(0x3b8)][_0x4308fc(0x20a)](_0x1d90dd))[_0x4308fc(0x3de)];}async['fetchMissingChangesets'](_0x1d31f5,_0x572048){const _0x304fd1=_0x4f35dc,{unitID:_0x531159,type:_0x80af41,from:_0x35c566,to:_0x2375a4}=_0x572048,_0x130b5d=this['_getAPIPrefix']()+'/'+_0x80af41+_0x304fd1(0x41f)+_0x531159+_0x304fd1(0x4f5)+_0x35c566+_0x304fd1(0x2a4)+_0x2375a4;return(await this[_0x304fd1(0x3b8)]['get'](_0x130b5d))[_0x304fd1(0x3de)];}['_getSnapshotAPIPrefix'](){const _0x10c0a0=_0x4f35dc;var _0x1006fa;return(_0x1006fa=this[_0x10c0a0(0x19a)]['getConfig'](lt))!=null?_0x1006fa:this[_0x10c0a0(0x186)]();}[_0x4f35dc(0x186)](){const _0x265bd2=_0x4f35dc;var _0x5747a5;return(_0x5747a5=this[_0x265bd2(0x19a)]['getConfig'](ct))!=null?_0x5747a5:Wt;}async[_0x4f35dc(0x412)](_0x27168b,_0x45cfd8){const _0xca96c9=_0x4f35dc,_0x47dc1a=_0xca96c9(0x2e2)+_0x45cfd8[_0xca96c9(0x419)]+_0xca96c9(0x41f)+_0x45cfd8[_0xca96c9(0x26b)]+'/resources';return(await this['_httpService'][_0xca96c9(0x20a)](_0x47dc1a,{'params':{'resourceId':JSON['stringify'](_0x45cfd8['resourceIDs'])}}))[_0xca96c9(0x3de)];}['saveSnapshot'](){const _0x57065b=_0x4f35dc;throw new Error(_0x57065b(0x15d));}[_0x4f35dc(0x4b9)](){const _0x352d59=_0x4f35dc;throw new Error(_0x352d59(0x15d));}['saveChangeset'](){const _0x55cb8d=_0x4f35dc;throw new Error(_0x55cb8d(0x15d));}},exports[_0x4f35dc(0x1d6)]=Ai([rt(0x0,a['IConfigService']),rt(0x1,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)]))],exports[_0x4f35dc(0x1d6)]);var ji=Object[_0x4f35dc(0x305)],$i=Object[_0x4f35dc(0x21c)],xi=(_0x1a2e0b,_0x41c6e5,_0xf7b3b4,_0x490ff1)=>{const _0x2bc6b4=_0x4f35dc;for(var _0x2d6afa=_0x490ff1>0x1?void 0x0:_0x490ff1?$i(_0x41c6e5,_0xf7b3b4):_0x41c6e5,_0x38baca=_0x1a2e0b[_0x2bc6b4(0x3a9)]-0x1,_0x57aa10;_0x38baca>=0x0;_0x38baca--)(_0x57aa10=_0x1a2e0b[_0x38baca])&&(_0x2d6afa=(_0x490ff1?_0x57aa10(_0x41c6e5,_0xf7b3b4,_0x2d6afa):_0x57aa10(_0x2d6afa))||_0x2d6afa);return _0x490ff1&&_0x2d6afa&&ji(_0x41c6e5,_0xf7b3b4,_0x2d6afa),_0x2d6afa;},ae=(_0x12dbac,_0xd3e5ef)=>(_0x350376,_0x5423cc)=>_0xd3e5ef(_0x350376,_0x5423cc,_0x12dbac);let $e=class extends a[_0x4f35dc(0x2c3)]{constructor(_0x52c6d4,_0x241249,_0x34aaae,_0x448734,_0x4bb30f){const _0x5de5dc=_0x4f35dc;super(_0x52c6d4,_0x241249,_0x34aaae),this[_0x5de5dc(0x2c0)]=_0x448734,this[_0x5de5dc(0x289)]=_0x4bb30f;}[_0x4f35dc(0x32c)](_0x3d902f,_0x26b826){const _0x54e9d9=_0x4f35dc,_0x38552c=this[_0x54e9d9(0x4cb)](_0x3d902f);if(_0x38552c)try{const _0x1ea033=this[_0x54e9d9(0x1b6)](_0x38552c,_0x26b826);this['_substituteUndoStack'](_0x3d902f,_0x1ea033);}catch(_0x5a0f20){this[_0x54e9d9(0x289)]['error']('[CollaborationUndoRedoService]',_0x5a0f20),this['_clearUndo'](_0x3d902f);}const _0x4490bc=this[_0x54e9d9(0x4ea)](_0x3d902f);if(_0x4490bc)try{const _0x2a2f2a=this[_0x54e9d9(0x1b6)](_0x4490bc,_0x26b826);this[_0x54e9d9(0x359)](_0x3d902f,_0x2a2f2a);}catch(_0x55a29b){this[_0x54e9d9(0x289)][_0x54e9d9(0x22c)](_0x55a29b),this['_clearRedo'](_0x3d902f);}}[_0x4f35dc(0x32d)](_0x52766f){const _0x1129bd=_0x4f35dc,_0x2390e4=this['_getUndoStack'](_0x52766f);_0x2390e4&&(_0x2390e4[_0x1129bd(0x3a9)]=0x0,this[_0x1129bd(0x326)]());}[_0x4f35dc(0x3ab)](_0x14550b){const _0x36620a=_0x4f35dc,_0x18b8a0=this['_getRedoStack'](_0x14550b);_0x18b8a0&&(_0x18b8a0['length']=0x0,this[_0x36620a(0x326)]());}[_0x4f35dc(0x47e)](_0x5918dd,_0x38645e){const _0x5e1b47=_0x4f35dc;this[_0x5e1b47(0x3f3)][_0x5e1b47(0x4fa)](_0x5918dd,_0x38645e),this[_0x5e1b47(0x326)]();}['_substituteRedoStack'](_0x24f02b,_0xc23efc){const _0x95676b=_0x4f35dc;this[_0x95676b(0x319)][_0x95676b(0x4fa)](_0x24f02b,_0xc23efc),this['_updateStatus']();}[_0x4f35dc(0x1b6)](_0x76a55b,_0x44870c){const _0x447f5d=_0x4f35dc,_0x4fd2fa=[];let _0x16ada5=_0x44870c,_0x154dbc=_0x44870c;for(let _0x7d27fa=_0x76a55b[_0x447f5d(0x3a9)]-0x1;_0x7d27fa>=0x0;_0x7d27fa--){const {unitID:_0x388b9a,undoMutations:_0x278e5a,redoMutations:_0x268720}=_0x76a55b[_0x7d27fa],_0x5993a0=this['_transformService'][_0x447f5d(0x377)](_0x16ada5,_0x278e5a),_0x34dd7b=this[_0x447f5d(0x2c0)][_0x447f5d(0x377)](_0x154dbc,_0x268720);if(_[_0x447f5d(0x2bb)](_0x5993a0)||_['isTransformMutationsWithChangesetFailure'](_0x34dd7b)){this[_0x447f5d(0x289)][_0x447f5d(0x22c)](_0x447f5d(0x310),'transformStack\x20failed!',_0x5993a0,_0x34dd7b);break;}_0x16ada5=_0x5993a0['c1Prime'],_0x154dbc=_0x34dd7b[_0x447f5d(0x407)],_0x4fd2fa[_0x447f5d(0x268)]({'unitID':_0x388b9a,'undoMutations':_0x5993a0[_0x447f5d(0x3c7)],'redoMutations':_0x34dd7b[_0x447f5d(0x3c7)]});}return _0x4fd2fa['reverse']();}};$e=xi([ae(0x0,a[_0x4f35dc(0x2e8)]),ae(0x1,a[_0x4f35dc(0x3ed)]),ae(0x2,a[_0x4f35dc(0x492)]),ae(0x3,_[_0x4f35dc(0x329)]),ae(0x4,a[_0x4f35dc(0x428)])],$e);class Ut extends a[_0x4f35dc(0x1fe)]{constructor(){const _0x48f161=_0x4f35dc;super(),d(this,_0x48f161(0x258)),this['urlChange$']=v[_0x48f161(0x323)](window,_0x48f161(0x347))[_0x48f161(0x49c)](v[_0x48f161(0x39c)](this[_0x48f161(0x364)]),v[_0x48f161(0x34b)](0x1),v['mapTo'](void 0x0));}['setParam'](_0x5b83ce,_0xfbb5d7,_0x521c91=!0x1){const _0x480c70=_0x4f35dc,_0xb969e6=new URL(window[_0x480c70(0x199)]['href']);_0xb969e6[_0x480c70(0x495)]['set'](_0x5b83ce,_0xfbb5d7),_0x521c91?window['history'][_0x480c70(0x451)]('','',_0xb969e6[_0x480c70(0x16b)]()):window[_0x480c70(0x33d)]['pushState']('','',_0xb969e6[_0x480c70(0x16b)]());}['removeParam'](_0x116d4c,_0xaf5713=!0x1){const _0xb9c882=_0x4f35dc,_0x4a975b=new URL(window[_0xb9c882(0x199)]['href']);_0x4a975b['searchParams']['delete'](_0x116d4c),_0xaf5713?window[_0xb9c882(0x33d)][_0xb9c882(0x451)]('','',_0x4a975b[_0xb9c882(0x16b)]()):window[_0xb9c882(0x33d)][_0xb9c882(0x193)]('','',_0x4a975b[_0xb9c882(0x16b)]());}[_0x4f35dc(0x4f4)](_0x3f1e70){const _0x396be1=_0x4f35dc;var _0x3884e4;return(_0x3884e4=new URL(window[_0x396be1(0x199)][_0x396be1(0x172)])['searchParams'][_0x396be1(0x20a)](_0x3f1e70))!=null?_0x3884e4:void 0x0;}}const we=_0x4f35dc(0x42c),Hi=_0x4f35dc(0x1f5),ki=_0x4f35dc(0x2f4),ce=0x6,Bi=1.5,Ue=0x4,Vi=1.5,Fi=_0x4f35dc(0x38c);class ot{constructor(_0x54b0f7,_0x14a538,_0x90678c,_0x4606f3){const _0x2e851d=_0x4f35dc;d(this,_0x2e851d(0x12b),[]),d(this,_0x2e851d(0x23c),null),d(this,_0x2e851d(0x2ed),null),d(this,_0x2e851d(0x334),null),d(this,_0x2e851d(0x32f),null),d(this,_0x2e851d(0x3c8),null),(this[_0x2e851d(0x1b8)]=_0x54b0f7,this[_0x2e851d(0x2d7)]=_0x14a538,this[_0x2e851d(0x288)]=_0x90678c,this[_0x2e851d(0x272)]=_0x4606f3,this[_0x2e851d(0x473)]());}set[_0x4f35dc(0x24c)](_0x13c022){const _0x54a632=_0x4f35dc;_0x13c022?(this[_0x54a632(0x334)]&&this[_0x54a632(0x334)]['hide'](),this[_0x54a632(0x2ed)]&&this[_0x54a632(0x2ed)][_0x54a632(0x50c)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x54a632(0x2ed)]['hide']());}[_0x4f35dc(0x3cc)](){const _0x36f626=_0x4f35dc;for(const _0x12c9c3 of this['_shapes'])_0x12c9c3['dispose']();this[_0x36f626(0x2ed)]&&this[_0x36f626(0x2ed)][_0x36f626(0x3cc)](),this[_0x36f626(0x334)]&&this[_0x36f626(0x334)]['dispose'](),this[_0x36f626(0x23c)]&&this['_anchor']['dispose'](),this[_0x36f626(0x3c8)]&&this['_eventUnsubscribe']();}[_0x4f35dc(0x473)](){const _0x5280cd=_0x4f35dc;var _0x14ff8a;const {_docSkeleton:_0x5c5c4f,_document:_0x100a42}=this,{color:_0xa96cb8,name:_0x10c19f,ranges:_0x67d242}=this[_0x5280cd(0x1b8)],_0x5dfc33=_0x100a42[_0x5280cd(0x1a2)](),{docsLeft:_0x4e3bc3,docsTop:_0x44efc9}=_0x5dfc33,_0x5cdf62=new b['NodePositionConvertToCursor'](_0x5dfc33,_0x5c5c4f);for(const {startOffset:_0x3ec901,endOffset:_0x94077,collapsed:_0x52cf3c,isActive:_0x5c04a2}of _0x67d242){const _0x9206a8=_0x5c5c4f['findNodePositionByCharIndex'](_0x3ec901),_0x3a6431=_0x5c5c4f[_0x5280cd(0x4ce)](_0x94077);if(_0x5c04a2){const {contentBoxPointGroup:_0x576b56}=_0x5cdf62[_0x5280cd(0x39f)](_0x3a6431,_0x3a6431);if(_0x576b56['length']===0x0)continue;this[_0x5280cd(0x420)](_0xa96cb8,_0x576b56,_0x4e3bc3,_0x44efc9,_0x10c19f),this[_0x5280cd(0x3c8)]=this[_0x5280cd(0x24e)]();}if(!_0x52cf3c&&_0x9206a8&&_0x3a6431){if(b['isValidRectRange'](_0x9206a8,_0x3a6431)){const _0x4696aa=new b['NodePositionConvertToRectRange'](_0x5dfc33,_0x5c5c4f),{pointGroup:_0xd60c0c}=(_0x14ff8a=_0x4696aa[_0x5280cd(0x39f)](_0x9206a8,_0x3a6431))!=null?_0x14ff8a:{};if(_0xd60c0c==null||_0xd60c0c[_0x5280cd(0x3a9)]===0x0)continue;this[_0x5280cd(0x4e8)](_0xa96cb8,_0xd60c0c,_0x4e3bc3,_0x44efc9);}else{const {contentBoxPointGroup:_0x114907}=_0x5cdf62[_0x5280cd(0x39f)](_0x9206a8,_0x3a6431);if(_0x114907['length']===0x0)continue;this[_0x5280cd(0x17f)](_0xa96cb8,_0x114907,_0x4e3bc3,_0x44efc9);}}}}[_0x4f35dc(0x420)](_0x936ac6,_0x4feabd,_0x1c8b00,_0x2e6958,_0x2a591f){const _0x49a479=_0x4f35dc,_0x3e3be8=this[_0x49a479(0x356)](_0x4feabd),{left:_0x57e6e7,top:_0x2551da,height:_0x2b97ab}=_0x3e3be8,_0xe10dfc=this[_0x49a479(0x1f3)](),_0x12991e=Vi/_0xe10dfc,_0x12e642=new b[(_0x49a479(0x1c4))](we+a['Tools'][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958,'height':_0x2b97ab,'width':Bi,'fill':_0x936ac6||b['getColor'](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'strokeWidth':_0x12991e,'stroke':Fi,'evented':!0x0});this[_0x49a479(0x23c)]=_0x12e642,this[_0x49a479(0x2d7)][_0x49a479(0x17a)](_0x12e642,b['TEXT_RANGE_LAYER_INDEX']);const _0x1ff48f=new b['Rect'](we+a[_0x49a479(0x374)][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x936ac6||b[_0x49a479(0x3f4)](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'strokeWidth':0x0,'stroke':_0x936ac6||b[_0x49a479(0x3f4)](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'evented':!0x1});this[_0x49a479(0x334)]=_0x1ff48f,this[_0x49a479(0x2d7)]['addObject'](_0x1ff48f,b[_0x49a479(0x3d4)]);const _0x4e707c=new Ee(we+a[_0x49a479(0x374)][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958-he,'text':_0x2a591f,'color':_0x936ac6});this['_textBubble']=_0x4e707c,this[_0x49a479(0x2d7)][_0x49a479(0x17a)](_0x4e707c,b[_0x49a479(0x3d4)]),this[_0x49a479(0x24c)]=!0x1;}['_handleHover'](){const _0x59efc8=_0x4f35dc,_0x29e627=this[_0x59efc8(0x23c)][_0x59efc8(0x4d8)][_0x59efc8(0x4e4)](()=>{this['_hover']=!0x0;}),_0x3d58e6=this['_anchor']['onPointerLeave$'][_0x59efc8(0x4e4)](()=>{const _0x131c59=_0x59efc8;this[_0x131c59(0x32f)]&&clearTimeout(this['_hideTimer']),this[_0x131c59(0x32f)]=setTimeout(()=>{const _0x520183=_0x131c59;this[_0x520183(0x24c)]=!0x1;},0x7d0);});return()=>{const _0x20f23d=_0x59efc8;_0x29e627[_0x20f23d(0x3cd)](),_0x3d58e6[_0x20f23d(0x3cd)]();};}[_0x4f35dc(0x17f)](_0x74ce8,_0x5eba90,_0x3c8874,_0x58d3ba){const _0x2e0728=_0x4f35dc,_0xe72f05=new a['ColorKit'](_0x74ce8)[_0x2e0728(0x31d)](0.2)[_0x2e0728(0x386)](),_0x50165c=new b[(_0x2e0728(0x1ea))](Hi+a['Tools'][_0x2e0728(0x2a6)](ce),{'pointsGroup':_0x5eba90,'fill':_0xe72f05||b[_0x2e0728(0x3f4)](a[_0x2e0728(0x521)][_0x2e0728(0x19d)],0.2),'left':_0x3c8874,'top':_0x58d3ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e0728(0x12b)]['push'](_0x50165c),this[_0x2e0728(0x2d7)][_0x2e0728(0x17a)](_0x50165c,b[_0x2e0728(0x3d4)]);}['_drawRectRange'](_0x56cc32,_0x567134,_0x2d8c9f,_0x309633){const _0x4be42d=_0x4f35dc,_0x164ddc=new a['ColorKit'](_0x56cc32)[_0x4be42d(0x31d)](0.2)[_0x4be42d(0x386)](),_0x414809=new b[(_0x4be42d(0x1ea))](ki+a[_0x4be42d(0x374)]['generateRandomId'](ce),{'pointsGroup':_0x567134,'fill':_0x164ddc||b[_0x4be42d(0x3f4)](a[_0x4be42d(0x521)][_0x4be42d(0x19d)],0.2),'left':_0x2d8c9f,'top':_0x309633,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4be42d(0x12b)][_0x4be42d(0x268)](_0x414809),this['_scene'][_0x4be42d(0x17a)](_0x414809,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4f35dc(0x356)](_0x30452e){const _0x68e7b0=_0x30452e[0x0],_0x32a233=_0x68e7b0[0x0],_0x8a72f5=_0x68e7b0[0x2],{x:_0x5c80a4,y:_0x31e114}=_0x32a233,{x:_0x5d29bc,y:_0x3336bc}=_0x8a72f5;return{'left':_0x5c80a4,'top':_0x31e114,'width':_0x5d29bc-_0x5c80a4,'height':_0x3336bc-_0x31e114};}['_getScale'](){const _0x4efac5=_0x4f35dc,{scaleX:_0x38f552,scaleY:_0x453643}=this[_0x4efac5(0x2d7)][_0x4efac5(0x4c8)]();return Math['max'](_0x38f552,_0x453643);}}var Wi=Object['defineProperty'],Gi=Object[_0x4f35dc(0x21c)],Yi=(_0x1ca3a3,_0x4965e6,_0x1a8158,_0x2d0cc6)=>{const _0x59f159=_0x4f35dc;for(var _0x1deee9=_0x2d0cc6>0x1?void 0x0:_0x2d0cc6?Gi(_0x4965e6,_0x1a8158):_0x4965e6,_0x1f12f3=_0x1ca3a3[_0x59f159(0x3a9)]-0x1,_0x2d4510;_0x1f12f3>=0x0;_0x1f12f3--)(_0x2d4510=_0x1ca3a3[_0x1f12f3])&&(_0x1deee9=(_0x2d0cc6?_0x2d4510(_0x4965e6,_0x1a8158,_0x1deee9):_0x2d4510(_0x1deee9))||_0x1deee9);return _0x2d0cc6&&_0x1deee9&&Wi(_0x4965e6,_0x1a8158,_0x1deee9),_0x1deee9;},ue=(_0x478a24,_0x3e81f9)=>(_0x15d8a1,_0x184f02)=>_0x3e81f9(_0x15d8a1,_0x184f02,_0x478a24);let ve=class extends a[_0x4f35dc(0x1fe)]{constructor(_0xa1df83,_0x156c0a,_0x296f15,_0x3f743f,_0x283ad0){const _0x18c265=_0x4f35dc;super(),d(this,_0x18c265(0x3dd),[]),d(this,'_cursors',[]),(this['_context']=_0xa1df83,this[_0x18c265(0x4b3)]=_0x156c0a,this[_0x18c265(0x452)]=_0x296f15,this['_commandService']=_0x3f743f,this[_0x18c265(0x2d5)]=_0x283ad0,this[_0x18c265(0x18b)]());}[_0x4f35dc(0x18b)](){const _0x11c4eb=_0x4f35dc,_0x41198c=this[_0x11c4eb(0x462)][_0x11c4eb(0x284)],_0x4c650e=this['_docSkeletonManagerService'];this[_0x11c4eb(0x14d)](v[_0x11c4eb(0x390)]([this['_collabCursorController'][_0x11c4eb(0x173)](_0x41198c),this['_themeService'][_0x11c4eb(0x2c1)]])[_0x11c4eb(0x49c)](E[_0x11c4eb(0x201)](([_0x43401f,_0x1e3ae6])=>({'skeleton':_0x4c650e[_0x11c4eb(0x3e0)](),'cursors':[..._0x43401f['values']()][_0x11c4eb(0x4cf)](_0x2f206d=>({..._0x2f206d,'color':_0x1e3ae6[_0x2f206d[_0x11c4eb(0x29e)]]}))})))[_0x11c4eb(0x4df)](_0x2ae920=>{const _0x429871=_0x11c4eb;if(this[_0x429871(0x16f)](),_0x2ae920){const {skeleton:_0x2b91fe,cursors:_0xe5ad97}=_0x2ae920;this[_0x429871(0x30a)](_0x2b91fe,_0xe5ad97);}})),this[_0x11c4eb(0x28c)](),this[_0x11c4eb(0x12a)]();}[_0x4f35dc(0x30a)](_0x54486c,_0x544cb2){const _0x3797a2=_0x4f35dc,{scene:_0x18b489,mainComponent:_0x39abca}=this['_context'],_0x522db1=_0x544cb2['map'](_0x49a8be=>new ot(_0x49a8be,_0x18b489,_0x54486c,_0x39abca));this[_0x3797a2(0x3dd)]=_0x522db1,this[_0x3797a2(0x4ad)]=_0x544cb2;}[_0x4f35dc(0x32e)](){const _0x16a794=_0x4f35dc;this['_removeCollabCursors']();const {scene:_0x366f11,mainComponent:_0x3eded2}=this[_0x16a794(0x462)],_0xf73d39=this[_0x16a794(0x4b3)][_0x16a794(0x3e0)](),_0x3f0f15=this[_0x16a794(0x4ad)][_0x16a794(0x201)](_0xda14cb=>new ot(_0xda14cb,_0x366f11,_0xf73d39,_0x3eded2));this[_0x16a794(0x3dd)]=_0x3f0f15;}['_removeCollabCursors'](){const _0x1ae0db=_0x4f35dc;this[_0x1ae0db(0x3dd)][_0x1ae0db(0x155)](_0x163a9a=>_0x163a9a[_0x1ae0db(0x3cc)]()),this[_0x1ae0db(0x3dd)]=[];}[_0x4f35dc(0x12a)](){const _0x372c4c=_0x4f35dc,_0x12c7a4=[w[_0x372c4c(0x2a1)]['id']];this[_0x372c4c(0x14d)](this['_commandService']['onCommandExecuted'](_0x383914=>{const _0x2c0fd3=_0x372c4c;_0x12c7a4['includes'](_0x383914['id'])&&_0x383914[_0x2c0fd3(0x1e1)][_0x2c0fd3(0x284)]===this[_0x2c0fd3(0x462)][_0x2c0fd3(0x284)]&&this[_0x2c0fd3(0x32e)]();}));}[_0x4f35dc(0x28c)](){const _0x104ba9=_0x4f35dc;this[_0x104ba9(0x14d)](a[_0x104ba9(0x13f)](this[_0x104ba9(0x462)]['engine']['onTransformChange$'])['pipe'](E['filter'](_0x504352=>_0x504352[_0x104ba9(0x419)]===b['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x104ba9(0x3cf)]),E[_0x104ba9(0x1ce)](0x10))['subscribe'](()=>{const _0x4f302c=_0x104ba9;this[_0x4f302c(0x32e)]();}));}};ve=Yi([a[_0x4f35dc(0x439)](a['LifecycleStages'][_0x4f35dc(0x144)],ve),ue(0x1,a[_0x4f35dc(0x1ac)](w['DocSkeletonManagerService'])),ue(0x2,a['Inject'](ee)),ue(0x3,a[_0x4f35dc(0x3ed)]),ue(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x3fe)]))],ve);var Ki=Object[_0x4f35dc(0x305)],Xi=Object['getOwnPropertyDescriptor'],qi=(_0x4a632d,_0x23e635,_0x286743,_0x2977f2)=>{const _0x517d7a=_0x4f35dc;for(var _0xc08306=_0x2977f2>0x1?void 0x0:_0x2977f2?Xi(_0x23e635,_0x286743):_0x23e635,_0x15b2a6=_0x4a632d[_0x517d7a(0x3a9)]-0x1,_0x1ceed8;_0x15b2a6>=0x0;_0x15b2a6--)(_0x1ceed8=_0x4a632d[_0x15b2a6])&&(_0xc08306=(_0x2977f2?_0x1ceed8(_0x23e635,_0x286743,_0xc08306):_0x1ceed8(_0xc08306))||_0xc08306);return _0x2977f2&&_0xc08306&&Ki(_0x23e635,_0x286743,_0xc08306),_0xc08306;},Ne=(_0x35462b,_0x1cbeb1)=>(_0x4c7467,_0x3a70be)=>_0x1cbeb1(_0x4c7467,_0x3a70be,_0x35462b);let pe=class{constructor(_0x4148df,_0x3233d9,_0x248542){const _0xc76f76=_0x4f35dc;this['_configService']=_0x4148df,this[_0xc76f76(0x3b8)]=_0x3233d9,this[_0xc76f76(0x1c2)]=_0x248542,this[_0xc76f76(0x219)]();}['init'](){const _0x4b7841=_0x4f35dc;this['_httpService'][_0x4b7841(0x51d)]({'priority':0x1,'interceptor':(_0x9de232,_0x3af5c5)=>_0x3af5c5(_0x9de232)[_0x4b7841(0x49c)](v[_0x4b7841(0x3f2)](async _0x57155e=>{const _0x251401=_0x4b7841,_0x400e47=_0x57155e;if(_0x400e47[_0x251401(0x307)]===0x191&&window[_0x251401(0x471)](this[_0x251401(0x1c2)]['t']('auth.needGotoLoginAlert'))){const _0x29473f=window[_0x251401(0x3d5)](window[_0x251401(0x199)]['href']);window[_0x251401(0x199)][_0x251401(0x172)]=this[_0x251401(0x2ce)]()+'?url='+_0x29473f;}return _0x400e47;}))});}[_0x4f35dc(0x2ce)](){const _0x4e7f32=_0x4f35dc;var _0x23deaa;return(_0x23deaa=this[_0x4e7f32(0x19a)][_0x4e7f32(0x3ac)](gt))!=null?_0x23deaa:Zt;}};pe=qi([Ne(0x0,a['IConfigService']),Ne(0x1,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),Ne(0x2,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)]))],pe);var zi=Object[_0x4f35dc(0x305)],Ji=Object[_0x4f35dc(0x21c)],Zi=(_0x448ddf,_0x3ffd31,_0x340143,_0x464c79)=>{for(var _0x42c910=_0x464c79>0x1?void 0x0:_0x464c79?Ji(_0x3ffd31,_0x340143):_0x3ffd31,_0x220807=_0x448ddf['length']-0x1,_0x4b43e5;_0x220807>=0x0;_0x220807--)(_0x4b43e5=_0x448ddf[_0x220807])&&(_0x42c910=(_0x464c79?_0x4b43e5(_0x3ffd31,_0x340143,_0x42c910):_0x4b43e5(_0x42c910))||_0x42c910);return _0x464c79&&_0x42c910&&zi(_0x3ffd31,_0x340143,_0x42c910),_0x42c910;},at=(_0x17671d,_0x10e489)=>(_0x3a2135,_0x4a4ec2)=>_0x10e489(_0x3a2135,_0x4a4ec2,_0x17671d);const Nt='AUTHZ_URL_KEY',Qi=_0x4f35dc(0x314);exports['AuthzIoHttpService']=class extends a[_0x4f35dc(0x188)]{constructor(_0x3170f3,_0x979352){const _0xc257a0=_0x4f35dc;super(),this['_HTTPService']=_0x3170f3,this[_0xc257a0(0x19a)]=_0x979352,this[_0xc257a0(0x304)]();}['_initMergeInterceptor'](){const _0x36f4df=_0x4f35dc,_0x106246=this;this[_0x36f4df(0x14d)](this[_0x36f4df(0x138)][_0x36f4df(0x51d)]({'priority':0x3e7,'interceptor':U[_0x36f4df(0x318)]({'isMatch'(_0x19c72d){const _0x1cff4d=_0x36f4df;var _0x10264a;if(_0x19c72d['method']===_0x1cff4d(0x35d)&&((_0x10264a=_0x19c72d['requestParams'])!=null&&_0x10264a[_0x1cff4d(0x3de)])){const {objectID:_0x3860e0,objectType:_0x82d4d8}=_0x19c72d['requestParams']['body']||{};if(!_0x3860e0||_0x82d4d8===void 0x0)return!0x1;const _0x1e0978=_0x106246[_0x1cff4d(0x320)]()+'/'+_0x82d4d8+_0x1cff4d(0x282)+_0x3860e0+'/allowed';if(_0x19c72d[_0x1cff4d(0x488)]===_0x1e0978)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x38ac1f){const _0xafc3b1=_0x36f4df;var _0x5e9514;return(_0x5e9514=_0x38ac1f[_0xafc3b1(0x2aa)])==null?void 0x0:_0x5e9514['body'];},'mergeParamsToRequest'(_0x539b4b,_0x875044){const _0x45a98b=_0x36f4df,_0x18dccf=_0x106246['_getAPIPrefixPath']()+_0x45a98b(0x23d),_0xbf8325=_0x539b4b[_0x45a98b(0x453)]((_0xbe7bef,_0x3e8dbb)=>{const _0x19fe0b=_0x45a98b,{unitID:_0x26f086,objectID:_0x26d5db,objectType:_0x263311,actions:_0x3b17e3}=_0x3e8dbb;return _0xbe7bef[_0x26f086]||(_0xbe7bef[_0x26f086]={}),_0xbe7bef[_0x26f086][_0x26d5db]||(_0xbe7bef[_0x26f086][_0x26d5db]={'objectID':_0x26d5db,'objectType':_0x263311,'actions':[]}),_0xbe7bef[_0x26f086][_0x26d5db][_0x19fe0b(0x37d)][_0x19fe0b(0x268)](..._0x3b17e3),_0xbe7bef;},{}),_0x51ede6=[];for(const _0x38c728 in _0xbf8325)for(const _0x2cf667 in _0xbf8325[_0x38c728]){const {actions:_0x1f8b8b,objectType:_0x4c8b90}=_0xbf8325[_0x38c728][_0x2cf667],_0x262a66=[...new Set(_0x1f8b8b)];_0x51ede6['push']({'unitID':_0x38c728,'objectID':_0x2cf667,'objectType':_0x4c8b90,'actions':_0x262a66});}return new U[(_0x45a98b(0x506))](_0x45a98b(0x35d),_0x18dccf,{'headers':_0x875044[_0x45a98b(0x3b6)],'withCredentials':_0x875044['withCredentials'],'responseType':_0x875044[_0x45a98b(0x286)],'body':{'requests':_0x51ede6}});}},{'distributeResult'(_0x296e9d,_0x26bd85){const {objectActions:_0xfa3006}=_0x296e9d;return _0x26bd85['map'](_0x3d9904=>{const _0x558aa0=_0x1935,{unitID:_0x3ae878,objectID:_0x3a5eff,actions:_0x5eedac}=_0x3d9904,_0xd126c1=_0xfa3006[_0x558aa0(0x20f)](_0x4abf1c=>_0x4abf1c[_0x558aa0(0x26b)]===_0x3ae878&&_0x4abf1c['objectID']===_0x3a5eff),_0x1710e9=_0x5eedac[_0x558aa0(0x201)](_0x373c4e=>_0xd126c1==null?void 0x0:_0xd126c1[_0x558aa0(0x37d)][_0x558aa0(0x20f)](_0x4b4ba8=>_0x4b4ba8['action']===_0x373c4e))[_0x558aa0(0x404)](_0x5a7ed2=>!!_0x5a7ed2);return{'config':_0x3d9904,'result':{'actions':_0x1710e9,'error':_0x296e9d[_0x558aa0(0x22c)]}};});}})}));}[_0x4f35dc(0x320)](){const _0x47a8b3=_0x4f35dc;var _0x4e5602;return(_0x4e5602=this[_0x47a8b3(0x19a)][_0x47a8b3(0x3ac)](Nt))!=null?_0x4e5602:Qi;}async[_0x4f35dc(0x48f)](_0x822428){const _0x231216=_0x4f35dc,_0x13665f=this[_0x231216(0x320)]()+'/'+_0x822428[_0x231216(0x2be)]+_0x231216(0x2f8);return(await this['_HTTPService'][_0x231216(0x46e)](_0x13665f,{'body':_0x822428}))[_0x231216(0x3de)][_0x231216(0x12d)]||'';}async[_0x4f35dc(0x501)](_0x25cef4){const _0x3d0eb6=_0x4f35dc,_0x336eab=this['_getAPIPrefixPath']()+_0x3d0eb6(0x4d2);return(await this['_HTTPService'][_0x3d0eb6(0x46e)](_0x336eab,{'body':_0x25cef4}))[_0x3d0eb6(0x3de)][_0x3d0eb6(0x45a)];}async[_0x4f35dc(0x279)](_0xb64377){const _0x203fab=_0x4f35dc,_0x2a9838=this[_0x203fab(0x320)]()+'/'+_0xb64377[_0x203fab(0x2be)]+_0x203fab(0x282)+_0xb64377[_0x203fab(0x12d)];await this[_0x203fab(0x138)][_0x203fab(0x4dd)](_0x2a9838,{'body':_0xb64377});}async[_0x4f35dc(0x339)](_0x376377){const _0x1530ec=_0x4f35dc,_0x59cfcb=this[_0x1530ec(0x320)]()+'/'+_0x376377[_0x1530ec(0x2be)]+_0x1530ec(0x282)+_0x376377[_0x1530ec(0x12d)]+'/allowed';return(await this[_0x1530ec(0x138)][_0x1530ec(0x46e)](_0x59cfcb,{'body':_0x376377}))[_0x1530ec(0x3de)]['actions'];}async[_0x4f35dc(0x30b)](_0x14387e){const _0x2e016a=_0x4f35dc,_0x2a2645=this['_getAPIPrefixPath']()+_0x2e016a(0x23d);return(await this[_0x2e016a(0x138)][_0x2e016a(0x46e)](_0x2a2645,{'body':{'requests':_0x14387e}}))[_0x2e016a(0x3de)][_0x2e016a(0x170)];}async[_0x4f35dc(0x212)](_0xe3cf4c){const _0x5c3134=_0x4f35dc,_0x110422=this['_getAPIPrefixPath']()+'/'+_0xe3cf4c['objectType']+'/role',_0xcaded7=await this[_0x5c3134(0x138)][_0x5c3134(0x46e)](_0x110422,{'body':_0xe3cf4c});return{'roles':_0xcaded7[_0x5c3134(0x3de)][_0x5c3134(0x264)],'actions':_0xcaded7[_0x5c3134(0x3de)][_0x5c3134(0x37d)]};}async[_0x4f35dc(0x51f)](_0x592f69){const _0x2c2b2c=_0x4f35dc,_0x570fdf=this[_0x2c2b2c(0x320)]()+_0x2c2b2c(0x4be);await this['_HTTPService'][_0x2c2b2c(0x424)](_0x570fdf,{'params':{'collaboratorID':_0x592f69[_0x2c2b2c(0x474)],'objectID':_0x592f69[_0x2c2b2c(0x12d)],'unitID':_0x592f69[_0x2c2b2c(0x26b)]}});}async[_0x4f35dc(0x27e)](_0x4dea3e){const _0x18c213=_0x4f35dc,_0x429edf=this['_getAPIPrefixPath']()+_0x18c213(0x4be);await this[_0x18c213(0x138)][_0x18c213(0x250)](_0x429edf,{'body':_0x4dea3e});}async['createCollaborator'](_0x2498ce){const _0xd2fe7c=_0x4f35dc,_0x5cb09b=this[_0xd2fe7c(0x320)]()+_0xd2fe7c(0x4be);await this[_0xd2fe7c(0x138)][_0xd2fe7c(0x46e)](_0x5cb09b,{'body':_0x2498ce});}async['listCollaborators'](_0x13b5be){const _0x712aec=_0x4f35dc,_0xa2dc1e=this[_0x712aec(0x320)]()+_0x712aec(0x4be);return(await this[_0x712aec(0x138)][_0x712aec(0x20a)](_0xa2dc1e,{'params':{'objectID':_0x13b5be[_0x712aec(0x12d)],'unitID':_0x13b5be[_0x712aec(0x26b)]}}))[_0x712aec(0x3de)][_0x712aec(0x34c)];}async['putCollaborators'](_0x103554){const _0x2fa142=_0x4f35dc,_0x3a6844=this[_0x2fa142(0x320)]()+_0x2fa142(0x4be);await this[_0x2fa142(0x138)]['put'](_0x3a6844,{'body':_0x103554});}},exports[_0x4f35dc(0x214)]=Zi([at(0x0,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),at(0x1,a[_0x4f35dc(0x1ac)](a['IConfigService']))],exports[_0x4f35dc(0x214)]);var en=Object[_0x4f35dc(0x305)],tn=Object[_0x4f35dc(0x21c)],sn=(_0x3b06ef,_0x193531,_0x1e1ae1,_0x26b318)=>{const _0x57b7f2=_0x4f35dc;for(var _0x59f293=_0x26b318>0x1?void 0x0:_0x26b318?tn(_0x193531,_0x1e1ae1):_0x193531,_0x4f1028=_0x3b06ef[_0x57b7f2(0x3a9)]-0x1,_0x1863e6;_0x4f1028>=0x0;_0x4f1028--)(_0x1863e6=_0x3b06ef[_0x4f1028])&&(_0x59f293=(_0x26b318?_0x1863e6(_0x193531,_0x1e1ae1,_0x59f293):_0x1863e6(_0x59f293))||_0x59f293);return _0x26b318&&_0x59f293&&en(_0x193531,_0x1e1ae1,_0x59f293),_0x59f293;},Me=(_0x1f9d91,_0x4cd460)=>(_0x1c376e,_0x9532d5)=>_0x4cd460(_0x1c376e,_0x9532d5,_0x1f9d91);const nn=[_0x4f35dc(0x3c2),_0x4f35dc(0x3d0),'image/jpg','image/gif',_0x4f35dc(0x18d)],rn=0x5*0x400*0x400,on=_0x4f35dc(0x509),an='/universer-api/stream/file/upload',cn=_0x4f35dc(0x2b8),ln=_0x4f35dc(0x2ad);exports['ImageIoService']=class{constructor(_0x4b71cf,_0x2497ce,_0x22a79b){const _0xd3cb93=_0x4f35dc;d(this,_0xd3cb93(0x1da),0x0),d(this,_0xd3cb93(0x4aa),new v[(_0xd3cb93(0x4eb))]()),d(this,_0xd3cb93(0x475),this[_0xd3cb93(0x4aa)]),d(this,_0xd3cb93(0x269),new Map()),(this[_0xd3cb93(0x3b8)]=_0x4b71cf,this[_0xd3cb93(0x19a)]=_0x2497ce,this['_univerInstanceService']=_0x22a79b);}[_0x4f35dc(0x241)](_0x637d00){const _0x50935b=_0x4f35dc;this[_0x50935b(0x1da)]=_0x637d00,this[_0x50935b(0x4aa)][_0x50935b(0x245)](_0x637d00);}[_0x4f35dc(0x441)](_0xb3fcb8,_0xd83da9){const _0x2c7ebb=_0x4f35dc;if(_0xd83da9===L[_0x2c7ebb(0x14f)][_0x2c7ebb(0x262)]){const _0x4ad31a=new Image();return _0x4ad31a[_0x2c7ebb(0x367)]=_0xb3fcb8,_0x4ad31a;}return this[_0x2c7ebb(0x269)]['get'](_0xb3fcb8);}['addImageSourceCache'](_0xf19f0e,_0x4c984a,_0x5abf56){const _0x56aa5a=_0x4f35dc;_0x4c984a===L[_0x56aa5a(0x14f)][_0x56aa5a(0x262)]||_0x5abf56==null||this[_0x56aa5a(0x269)]['set'](_0xf19f0e,_0x5abf56);}async['getImage'](_0x372ede){const _0x3d3ff0=_0x4f35dc;try{const _0x55ea11=this['_replaceFileID'](this[_0x3d3ff0(0x43e)](),''+_0x372ede),_0x3fc473=(await this[_0x3d3ff0(0x3b8)]['get'](_0x55ea11))[_0x3d3ff0(0x3de)];return _0x3fc473[_0x3d3ff0(0x22c)]&&_0x3fc473['error'][_0x3d3ff0(0x1b5)]===It['OK']?Promise[_0x3d3ff0(0x217)](_0x3fc473['url']):Promise[_0x3d3ff0(0x31c)](_0x3fc473[_0x3d3ff0(0x22c)]);}catch(_0x20e929){return Promise[_0x3d3ff0(0x31c)](_0x20e929);}}async[_0x4f35dc(0x4ac)](_0x5066f2){const _0x1a82ff=_0x4f35dc;let _0x1a8220='';if(!nn[_0x1a82ff(0x166)](_0x5066f2['type']))return this['_decreaseWaiting'](),Promise[_0x1a82ff(0x31c)](new Error(L[_0x1a82ff(0x4e0)]['ERROR_IMAGE_TYPE']));if(_0x5066f2[_0x1a82ff(0x2bd)]>rn)return this[_0x1a82ff(0x482)](),Promise[_0x1a82ff(0x31c)](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x15e)]));try{const _0x3753f1=new FormData();_0x3753f1[_0x1a82ff(0x4fe)](_0x1a82ff(0x4e1),_0x5066f2);const _0x19ff42=this[_0x1a82ff(0x16d)][_0x1a82ff(0x42e)](),_0x3baad8=_0x19ff42==null?void 0x0:_0x19ff42[_0x1a82ff(0x402)]();if(!_0x3baad8)throw new Error(_0x1a82ff(0x43b));const _0x10479a=this[_0x1a82ff(0x43f)]()+_0x1a82ff(0x211)+_0x5066f2[_0x1a82ff(0x2bd)][_0x1a82ff(0x16b)]()+'&source='+pt['UnitEmbedded']+'&assign='+encodeURIComponent(_0x3baad8),_0x75177f=await(await fetch(_0x10479a,{'method':_0x1a82ff(0x35d),'body':_0x3753f1}))[_0x1a82ff(0x1dd)]();if(typeof _0x75177f[_0x1a82ff(0x51e)]!=_0x1a82ff(0x4cd))return this[_0x1a82ff(0x482)](),Promise['reject'](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x2ef)]));_0x1a8220=_0x75177f[_0x1a82ff(0x51e)];}catch{return this[_0x1a82ff(0x482)](),Promise['reject'](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x2ef)]));}return new Promise((_0x5a4640,_0x5da070)=>{const _0x2c9e5c=_0x1a82ff,_0x24e310=new FileReader();_0x24e310[_0x2c9e5c(0x303)](_0x5066f2),_0x24e310[_0x2c9e5c(0x2e9)]=_0x260678=>{const _0x3893a9=_0x2c9e5c;var _0x166478;const _0x6bf4a=(_0x166478=_0x260678['target'])==null?void 0x0:_0x166478[_0x3893a9(0x351)];if(_0x6bf4a==null){this[_0x3893a9(0x482)](),_0x5da070(new Error(L[_0x3893a9(0x4e0)][_0x3893a9(0x2ef)]));return;}const _0x988b19=a['Tools'][_0x3893a9(0x2a6)](0x6);_0x5a4640({'imageId':_0x988b19,'imageSourceType':L[_0x3893a9(0x14f)][_0x3893a9(0x169)],'source':_0x1a8220,'base64Cache':_0x6bf4a,'status':L[_0x3893a9(0x4e0)][_0x3893a9(0x20c)]}),this[_0x3893a9(0x482)]();};});}['_getUploadFileURL'](){const _0x36beaf=_0x4f35dc;var _0x5cbec8;return(_0x5cbec8=this[_0x36beaf(0x19a)][_0x36beaf(0x3ac)](on))!=null?_0x5cbec8:an;}[_0x4f35dc(0x43e)](){const _0x40cb39=_0x4f35dc;var _0x5d99f2;return(_0x5d99f2=this[_0x40cb39(0x19a)][_0x40cb39(0x3ac)](cn))!=null?_0x5d99f2:ln;}[_0x4f35dc(0x497)](_0x4befde,_0x3f2413){const _0x3a453b=_0x4f35dc;return _0x4befde[_0x3a453b(0x278)]('{fileID}',_0x3f2413);}['_decreaseWaiting'](){const _0x29480e=_0x4f35dc;this[_0x29480e(0x1da)]-=0x1,this[_0x29480e(0x4aa)][_0x29480e(0x245)](this[_0x29480e(0x1da)]);}},exports[_0x4f35dc(0x203)]=sn([Me(0x0,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),Me(0x1,a[_0x4f35dc(0x301)]),Me(0x2,a['Inject'](a[_0x4f35dc(0x2e8)]))],exports['ImageIoService']);var hn=Object[_0x4f35dc(0x305)],_n=Object[_0x4f35dc(0x21c)],un=(_0x46c618,_0x9333d7,_0x22ece6,_0x44a742)=>{const _0x4dfd4b=_0x4f35dc;for(var _0x200fff=_0x44a742>0x1?void 0x0:_0x44a742?_n(_0x9333d7,_0x22ece6):_0x9333d7,_0x2ad82e=_0x46c618[_0x4dfd4b(0x3a9)]-0x1,_0x575ac5;_0x2ad82e>=0x0;_0x2ad82e--)(_0x575ac5=_0x46c618[_0x2ad82e])&&(_0x200fff=(_0x44a742?_0x575ac5(_0x9333d7,_0x22ece6,_0x200fff):_0x575ac5(_0x200fff))||_0x200fff);return _0x44a742&&_0x200fff&&hn(_0x9333d7,_0x22ece6,_0x200fff),_0x200fff;},le=(_0x2b44c4,_0x1651a7)=>(_0x2c86b3,_0x3b73a0)=>_0x1651a7(_0x2c86b3,_0x3b73a0,_0x2b44c4);let me=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x7c1cd6,_0x4dcde9,_0xe2aa5e,_0x5a7583,_0x2213bc){const _0x47bd76=_0x4f35dc;super(),this['_injector']=_0x7c1cd6,this[_0x47bd76(0x16d)]=_0x4dcde9,this[_0x47bd76(0x31e)]=_0xe2aa5e,this[_0x47bd76(0x3fc)]=_0x5a7583,this[_0x47bd76(0x312)]=_0x2213bc,this['_initUnitPermissionChange'](),this[_0x47bd76(0x290)]();}['_initCloseConn'](){const _0x39cdae=_0x4f35dc,_0x339fd1=async _0x589863=>{const _0x141674=_0x1935;(await this[_0x141674(0x3fc)][_0x141674(0x14b)](_0x589863))['event$'][_0x141674(0x49c)](E[_0x141674(0x404)](_0x18b76e=>_0x18b76e[_0x141674(0x510)]===_[_0x141674(0x2a7)][_0x141674(0x2e7)]),E[_0x141674(0x39c)](this['dispose$']))[_0x141674(0x4df)](_0x5020d1=>{const _0x3dc913=_0x141674,_0x17af4f=_0x5020d1,{reason:_0x40b60d}=_0x17af4f['data'];this[_0x3dc913(0x183)][_0x3dc913(0x20a)](M[_0x3dc913(0x1dc)])[_0x3dc913(0x50c)]({'type':Y[_0x3dc913(0x4b1)]['Error'],'content':this[_0x3dc913(0x312)]['t'](_0x3dc913(0x472))+'('+_0x40b60d+')'}),this[_0x3dc913(0x31e)]['updatePermissionPoint'](new C[(_0x3dc913(0x41a))](_0x589863)['id'],!0x1),this[_0x3dc913(0x3fc)]['closeSession'](_0x589863);});};v[_0x39cdae(0x2b0)](this[_0x39cdae(0x16d)]['getTypeOfUnitAdded$'](a[_0x39cdae(0x1f9)][_0x39cdae(0x396)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x39cdae(0x1f9)][_0x39cdae(0x4fb)]))[_0x39cdae(0x49c)](E['map'](_0x4efe0e=>_0x4efe0e[_0x39cdae(0x402)]()),E['filter'](_0xe25db3=>!a[_0x39cdae(0x14c)](_0xe25db3)),E['takeUntil'](this['dispose$']))['subscribe'](_0x370622=>{_0x339fd1(_0x370622);});}[_0x4f35dc(0x227)](){const _0x33ae6b=_0x4f35dc,_0x11f85d=async _0x115e09=>{const _0x123b91=_0x1935;(await this[_0x123b91(0x3fc)]['requireSession'](_0x115e09))[_0x123b91(0x251)][_0x123b91(0x49c)](E[_0x123b91(0x404)](_0xe1bfc=>_0xe1bfc[_0x123b91(0x510)]===_['CollaborationEvent'][_0x123b91(0x19b)]),E['takeUntil'](this[_0x123b91(0x364)]))[_0x123b91(0x4df)](_0x22beac=>{const _0x3b1ca6=_0x123b91,_0x1c8334=_0x22beac,{objectId:_0x331e46}=_0x1c8334[_0x3b1ca6(0x48a)],_0x1700da=this[_0x3b1ca6(0x183)][_0x3b1ca6(0x20a)](Q[_0x3b1ca6(0x2c6)]);_0x331e46===_0x115e09?_0x1700da[_0x3b1ca6(0x22d)](_0x115e09):_0x1700da[_0x3b1ca6(0x3fb)](_0x115e09,_0x331e46);});};v['merge'](this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x33ae6b(0x1f9)][_0x33ae6b(0x396)]),this[_0x33ae6b(0x16d)][_0x33ae6b(0x283)](a[_0x33ae6b(0x1f9)][_0x33ae6b(0x4fb)]))[_0x33ae6b(0x49c)](E[_0x33ae6b(0x201)](_0x407db2=>_0x407db2[_0x33ae6b(0x402)]()),E[_0x33ae6b(0x404)](_0x152459=>!a[_0x33ae6b(0x14c)](_0x152459)),E[_0x33ae6b(0x39c)](this['dispose$']))['subscribe'](_0x52a025=>{_0x11f85d(_0x52a025);});}};me=un([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)][_0x4f35dc(0x1ba)],me),le(0x0,a['Inject'](a[_0x4f35dc(0x37b)])),le(0x1,a['IUniverInstanceService']),le(0x2,a[_0x4f35dc(0x415)]),le(0x3,a[_0x4f35dc(0x1ac)](exports['CollaborationSessionService'])),le(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)]))],me);const dn=_0x4f35dc(0x1e9);var Mt=Object['defineProperty'],Sn=Object[_0x4f35dc(0x21c)],vn=(_0xcf645e,_0x3c81c7,_0x4c4e66)=>_0x3c81c7 in _0xcf645e?Mt(_0xcf645e,_0x3c81c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c4e66}):_0xcf645e[_0x3c81c7]=_0x4c4e66,mn=(_0x13ef5e,_0x5a1699,_0x46c168,_0x5d1ef3)=>{const _0x2f7232=_0x4f35dc;for(var _0x15d78d=_0x5d1ef3>0x1?void 0x0:_0x5d1ef3?Sn(_0x5a1699,_0x46c168):_0x5a1699,_0x280b52=_0x13ef5e[_0x2f7232(0x3a9)]-0x1,_0x5b55ea;_0x280b52>=0x0;_0x280b52--)(_0x5b55ea=_0x13ef5e[_0x280b52])&&(_0x15d78d=(_0x5d1ef3?_0x5b55ea(_0x5a1699,_0x46c168,_0x15d78d):_0x5b55ea(_0x15d78d))||_0x15d78d);return _0x5d1ef3&&_0x15d78d&&Mt(_0x5a1699,_0x46c168,_0x15d78d),_0x15d78d;},de=(_0x501fb9,_0x24a142)=>(_0x159e84,_0x65fb35)=>_0x24a142(_0x159e84,_0x65fb35,_0x501fb9),fn=(_0x2f9f36,_0x1c964f,_0x378e3f)=>vn(_0x2f9f36,_0x1c964f+'',_0x378e3f);const gn=_0x4f35dc(0x141);exports[_0x4f35dc(0x1b2)]=class extends a[_0x4f35dc(0x13b)]{constructor(_0x285daa={},_0x531a0d,_0x306175,_0x2e211d,_0xda62d1){const _0xb5711e=_0x4f35dc;super(),this[_0xb5711e(0x388)]=_0x285daa,this[_0xb5711e(0x289)]=_0x531a0d,this['_renderManagerService']=_0x306175,this[_0xb5711e(0x183)]=_0x2e211d,this['_configService']=_0xda62d1;const {..._0x65878e}=this[_0xb5711e(0x388)];this[_0xb5711e(0x19a)]['setConfig'](dn,_0x65878e);}['onStarting'](){const _0x128156=_0x4f35dc;this[_0x128156(0x48e)]();}[_0x4f35dc(0x171)](){const _0x1801c0=_0x4f35dc;this[_0x1801c0(0x40e)]();}[_0x4f35dc(0x48e)](){const _0x197f1f=_0x4f35dc;var _0x5d47b3,_0x304838,_0x1a125f,_0x182fb4;this[_0x197f1f(0x183)][_0x197f1f(0x34a)](a[_0x197f1f(0x2b9)])&&this[_0x197f1f(0x289)][_0x197f1f(0x22c)](_0x197f1f(0x1b9),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x41f1a5=[[a[_0x197f1f(0x2b9)],{'useClass':$e}],[exports[_0x197f1f(0x4a3)]],[Ge],[U[_0x197f1f(0x341)]],[Ke,{'useClass':Ut}],[K],[exports['LocalCacheService']],[U[_0x197f1f(0x399)]],[ge],[Ie],[fe],[Fe],[pe],[Ve],[me],[Be,{'useClass':(_0x304838=(_0x5d47b3=this[_0x197f1f(0x388)])==null?void 0x0:_0x5d47b3[_0x197f1f(0x2b3)])!=null?_0x304838:exports[_0x197f1f(0x4f0)]}],[U[_0x197f1f(0x275)],{'useClass':U[_0x197f1f(0x1b1)]}],[_['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x197f1f(0x40f)],{'useClass':exports[_0x197f1f(0x214)]}],[L[_0x197f1f(0x45d)],{'useClass':exports[_0x197f1f(0x203)]}],[exports[_0x197f1f(0x3a3)]],[exports['DataLoaderController']],[exports[_0x197f1f(0x345)]],[Se],[ee]];(_0x1a125f=this[_0x197f1f(0x388)])!=null&&_0x1a125f[_0x197f1f(0x28e)]&&_0x41f1a5['push']([Ce,{'useClass':Rs}]),_0x41f1a5=a[_0x197f1f(0x460)](_0x41f1a5,(_0x182fb4=this[_0x197f1f(0x388)])==null?void 0x0:_0x182fb4[_0x197f1f(0x4c9)]),_0x41f1a5[_0x197f1f(0x155)](_0x1068a7=>this[_0x197f1f(0x183)]['add'](_0x1068a7)),this[_0x197f1f(0x2af)]();}[_0x4f35dc(0x40e)](){const _0x3f9ea8=_0x4f35dc;this['disposeWithMe'](this[_0x3f9ea8(0x3c9)]['registerRenderModule'](a[_0x3f9ea8(0x1f9)][_0x3f9ea8(0x4fb)],[ve])),this[_0x3f9ea8(0x14d)](this['_renderManagerService'][_0x3f9ea8(0x154)](a[_0x3f9ea8(0x1f9)][_0x3f9ea8(0x396)],[je]));}[_0x4f35dc(0x2af)](){const _0x26bc3e=_0x4f35dc;var _0x3b9c41,_0x3adcab;this[_0x26bc3e(0x183)]['get'](U[_0x26bc3e(0x341)])[_0x26bc3e(0x51d)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x3b9c41=this[_0x26bc3e(0x388)])!=null&&_0x3b9c41[_0x26bc3e(0x4b8)]||this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x29a)])[_0x26bc3e(0x1d7)](),(_0x3adcab=this[_0x26bc3e(0x388)])!=null&&_0x3adcab[_0x26bc3e(0x3d9)]&&this['_injector'][_0x26bc3e(0x20a)](pe),this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x3a3)]),this[_0x26bc3e(0x183)]['has'](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x345)]);}},fn(exports[_0x4f35dc(0x1b2)],_0x4f35dc(0x37a),gn),exports['UniverCollaborationClientPlugin']=mn([a[_0x4f35dc(0x3a7)](_[_0x4f35dc(0x24d)]),de(0x1,a[_0x4f35dc(0x428)]),de(0x2,b['IRenderManagerService']),de(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),de(0x4,a['IConfigService'])],exports[_0x4f35dc(0x1b2)]),exports[_0x4f35dc(0x2f9)]=Nt,exports[_0x4f35dc(0x124)]=ft,exports[_0x4f35dc(0x398)]=_t,exports[_0x4f35dc(0x416)]=y,exports[_0x4f35dc(0x2dc)]=wt,exports['CommentService']=Ve,exports[_0x4f35dc(0x1ca)]=ut,exports['HEARTBEAT_TIMEOUT_KEY']=He,exports[_0x4f35dc(0x44c)]=Be,exports[_0x4f35dc(0x380)]=Ke,exports[_0x4f35dc(0x2f3)]=mt,exports[_0x4f35dc(0x29b)]=gt,exports['RETRY_CONNECTING_INTERVAL_KEY']=St,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x4f35dc(0x2fc)]=ht,exports[_0x4f35dc(0x231)]=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x4f35dc(0x4bc)]=j,exports[_0x4f35dc(0x204)]=Ot,exports['WebURLService']=Ut,exports[_0x4f35dc(0x1f1)]=Ct,exports['serializeCombRequest']=Et;