@univerjs-pro/collaboration-client 0.2.9 → 0.2.11
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 _0x3022d6=_0xbc10;(function(_0x137f62,_0x25dadd){const _0x5ae9e6=_0xbc10,_0x19d4bc=_0x137f62();while(!![]){try{const _0x1c8c05=parseInt(_0x5ae9e6(0x247))/0x1*(parseInt(_0x5ae9e6(0x3ed))/0x2)+-parseInt(_0x5ae9e6(0x1b5))/0x3+-parseInt(_0x5ae9e6(0x2c1))/0x4*(parseInt(_0x5ae9e6(0x430))/0x5)+-parseInt(_0x5ae9e6(0x27d))/0x6*(parseInt(_0x5ae9e6(0xcb))/0x7)+parseInt(_0x5ae9e6(0x14c))/0x8+parseInt(_0x5ae9e6(0xd9))/0x9+parseInt(_0x5ae9e6(0xa3))/0xa*(-parseInt(_0x5ae9e6(0x228))/0xb);if(_0x1c8c05===_0x25dadd)break;else _0x19d4bc['push'](_0x19d4bc['shift']());}catch(_0x355c8b){_0x19d4bc['push'](_0x19d4bc['shift']());}}}(_0x1991,0x31338));var xt=Object[_0x3022d6(0x131)],Ht=(_0x344738,_0x2f667c,_0x2c472e)=>_0x2f667c in _0x344738?xt(_0x344738,_0x2f667c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c472e}):_0x344738[_0x2f667c]=_0x2c472e,u=(_0x1560d5,_0x321f50,_0x42d4af)=>Ht(_0x1560d5,typeof _0x321f50!='symbol'?_0x321f50+'':_0x321f50,_0x42d4af);Object['defineProperty'](exports,Symbol[_0x3022d6(0x19b)],{'value':_0x3022d6(0x11c)});const o=require(_0x3022d6(0x315)),p=require('@univerjs/sheets'),Q=require(_0x3022d6(0x8b)),L=require(_0x3022d6(0xea)),_=require(_0x3022d6(0x31d)),v=require(_0x3022d6(0x2c6)),E=require(_0x3022d6(0x1cf)),P=require(_0x3022d6(0x417)),U=require('@univerjs/network'),A=require(_0x3022d6(0x453)),b=require(_0x3022d6(0x214)),Ke=require('@univerjs/engine-formula'),xe=require(_0x3022d6(0x8f)),J=require(_0x3022d6(0x294)),y=require('react'),kt=require(_0x3022d6(0x7e)),Bt=require(_0x3022d6(0x23c)),ct=_0x3022d6(0x351),Vt=_0x3022d6(0x45f),lt=_0x3022d6(0xcf),ht=_0x3022d6(0x445),Wt=0x7d0,_t=_0x3022d6(0x3df),Ft=_0x3022d6(0x1e3),ut=_0x3022d6(0x29a),Gt=0x7530,He='HEARTBEAT_TIMEOUT',dt=0x2710,Yt=_0x3022d6(0x3b7),Kt=0x4e20,Xt=_0x3022d6(0x451),qt=0x3,St=_0x3022d6(0x15f),zt=0x3e8,vt=_0x3022d6(0x1ba),Jt=_0x3022d6(0x458),mt='LOGIN_URL_KEY',Zt=_0x3022d6(0x3c7);var gt=(_0x40fb7e=>(_0x40fb7e[_0x40fb7e[_0x3022d6(0x2fc)]=0x0]='UNDEFINED',_0x40fb7e[_0x40fb7e['OK']=0x1]='OK',_0x40fb7e[_0x40fb7e[_0x3022d6(0xba)]=0x2]='INTERNAL_ERROR',_0x40fb7e[_0x40fb7e['PERMISSION_DENIED']=0x3]=_0x3022d6(0x1a9),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3e8)]=0x4]=_0x3022d6(0x3e8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x18c)]=0x5]=_0x3022d6(0x18c),_0x40fb7e[_0x40fb7e[_0x3022d6(0x466)]=0x6]=_0x3022d6(0x466),_0x40fb7e[_0x40fb7e['INVALID_ARGUMENT']=0x7]=_0x3022d6(0x1bf),_0x40fb7e[_0x40fb7e[_0x3022d6(0x2a0)]=0x8]=_0x3022d6(0x2a0),_0x40fb7e[_0x40fb7e[_0x3022d6(0x24b)]=0x9]=_0x3022d6(0x24b),_0x40fb7e[_0x40fb7e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3022d6(0x105),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1eb)]=0x1771]=_0x3022d6(0x1eb),_0x40fb7e[_0x40fb7e[_0x3022d6(0x428)]=0x1772]=_0x3022d6(0x428),_0x40fb7e[_0x40fb7e[_0x3022d6(0x207)]=0x1b59]=_0x3022d6(0x207),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3da)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x40fb7e[_0x40fb7e[_0x3022d6(0x340)]=0x1b5b]=_0x3022d6(0x340),_0x40fb7e[_0x40fb7e[_0x3022d6(0xd0)]=0x1b5c]=_0x3022d6(0xd0),_0x40fb7e[_0x40fb7e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3022d6(0x2aa),_0x40fb7e[_0x40fb7e[_0x3022d6(0x91)]=0x2329]=_0x3022d6(0x91),_0x40fb7e[_0x40fb7e[_0x3022d6(0x85)]=0x232a]=_0x3022d6(0x85),_0x40fb7e[_0x40fb7e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3022d6(0x1b9),_0x40fb7e[_0x40fb7e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3022d6(0x1b8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x169)]=0x232d]=_0x3022d6(0x169),_0x40fb7e[_0x40fb7e[_0x3022d6(0x33b)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x40fb7e[_0x40fb7e[_0x3022d6(0x212)]=0x2712]=_0x3022d6(0x212),_0x40fb7e[_0x40fb7e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3022d6(0x2ef),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1be)]=0x2714]=_0x3022d6(0x1be),_0x40fb7e[_0x40fb7e[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x40fb7e))(gt||{}),j=(_0x4d4b84=>(_0x4d4b84[_0x4d4b84[_0x3022d6(0x380)]=0x0]=_0x3022d6(0x380),_0x4d4b84[_0x4d4b84[_0x3022d6(0x237)]=0x1]=_0x3022d6(0x237),_0x4d4b84[_0x4d4b84['UNIVER_SHEET']=0x2]=_0x3022d6(0x2c0),_0x4d4b84[_0x4d4b84[_0x3022d6(0x16c)]=0x3]=_0x3022d6(0x16c),_0x4d4b84[_0x4d4b84[_0x3022d6(0x413)]=0x4]=_0x3022d6(0x413),_0x4d4b84[_0x4d4b84['UNRECOGNIZED']=-0x1]=_0x3022d6(0x322),_0x4d4b84))(j||{}),T=(_0x263be1=>(_0x263be1[_0x263be1[_0x3022d6(0x349)]=0x0]=_0x3022d6(0x349),_0x263be1[_0x263be1[_0x3022d6(0x24a)]=0x1]='HELLO',_0x263be1[_0x263be1[_0x3022d6(0x157)]=0x2]=_0x3022d6(0x157),_0x263be1[_0x263be1['LEAVE']=0x3]=_0x3022d6(0xdc),_0x263be1[_0x263be1[_0x3022d6(0x145)]=0x4]=_0x3022d6(0x145),_0x263be1[_0x263be1[_0x3022d6(0x462)]=0x5]=_0x3022d6(0x462),_0x263be1[_0x263be1[_0x3022d6(0x40c)]=0x6]='RECV',_0x263be1[_0x263be1[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x263be1))(T||{}),ke=(_0x2b0903=>(_0x2b0903[_0x2b0903[_0x3022d6(0x249)]=0x0]='UNKNOWN_CODE',_0x2b0903[_0x2b0903['OK']=0x1]='OK',_0x2b0903[_0x2b0903['FAIL']=0x2]=_0x3022d6(0x2ff),_0x2b0903[_0x2b0903[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x2b0903))(ke||{}),ft=(_0x23a8bb=>(_0x23a8bb[_0x23a8bb[_0x3022d6(0x357)]=0x0]=_0x3022d6(0x357),_0x23a8bb[_0x23a8bb['HttpImport']=0x1]=_0x3022d6(0x3fb),_0x23a8bb[_0x23a8bb[_0x3022d6(0x355)]=0x2]=_0x3022d6(0x355),_0x23a8bb[_0x23a8bb[_0x3022d6(0x449)]=0x3]=_0x3022d6(0x449),_0x23a8bb[_0x23a8bb[_0x3022d6(0x23a)]=0x4]='UnitSnapshot',_0x23a8bb[_0x23a8bb[_0x3022d6(0x322)]=-0x1]='UNRECOGNIZED',_0x23a8bb))(ft||{}),Qt=Object[_0x3022d6(0x131)],es=Object[_0x3022d6(0x2b4)],ts=(_0x4211d1,_0x380bb5,_0x1bcdc6,_0x4178f2)=>{const _0x18c44f=_0x3022d6;for(var _0x22f674=_0x4178f2>0x1?void 0x0:_0x4178f2?es(_0x380bb5,_0x1bcdc6):_0x380bb5,_0x19dad2=_0x4211d1[_0x18c44f(0x2ce)]-0x1,_0x445e22;_0x19dad2>=0x0;_0x19dad2--)(_0x445e22=_0x4211d1[_0x19dad2])&&(_0x22f674=(_0x4178f2?_0x445e22(_0x380bb5,_0x1bcdc6,_0x22f674):_0x445e22(_0x22f674))||_0x22f674);return _0x4178f2&&_0x22f674&&Qt(_0x380bb5,_0x1bcdc6,_0x22f674),_0x22f674;},Xe=(_0x2dfffe,_0x5d368e)=>(_0x1bcd98,_0x221df2)=>_0x5d368e(_0x1bcd98,_0x221df2,_0x2dfffe);let Y=class extends o[_0x3022d6(0x1c9)]{constructor(_0x1ee660,_0x16a4c7){const _0x4d57a9=_0x3022d6;super(),u(this,_0x4d57a9(0x350),new Map()),(this[_0x4d57a9(0x17c)]=_0x1ee660,this['_userManagerService']=_0x16a4c7,this[_0x4d57a9(0x14a)](o[_0x4d57a9(0x24c)](v[_0x4d57a9(0xc5)](this[_0x4d57a9(0x17c)]['getTypeOfUnitDisposed$'](o[_0x4d57a9(0x23f)][_0x4d57a9(0x2c0)])['pipe'](E[_0x4d57a9(0x317)](_0x3b1a4b=>_0x3b1a4b['getUnitId']())),this[_0x4d57a9(0x17c)][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)][_0x4d57a9(0x237)])['pipe'](E[_0x4d57a9(0x317)](_0x21dfe9=>_0x21dfe9[_0x4d57a9(0x29c)]())),this['_univerInstanceService'][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)]['UNIVER_SLIDE'])['pipe'](E[_0x4d57a9(0x317)](_0x5264ca=>_0x5264ca['getUnitId']())))['subscribe'](_0x37c363=>this[_0x4d57a9(0x97)](_0x37c363)))));}[_0x3022d6(0x20e)](_0x4a4096){const _0x1bedcf=_0x3022d6;this['_userManagerService'][_0x1bedcf(0x20e)](_0x4a4096);}[_0x3022d6(0x129)](){const _0x340c7d=_0x3022d6;return this['_userManagerService'][_0x340c7d(0x129)]();}[_0x3022d6(0x165)](_0x3d1db6,_0x58e2ec){const _0x197f19=_0x3022d6;let _0xf181b7=this[_0x197f19(0x350)]['get'](_0x3d1db6);_0xf181b7||(_0xf181b7=new ss(),this[_0x197f19(0x350)][_0x197f19(0x182)](_0x3d1db6,_0xf181b7)),_0xf181b7[_0x197f19(0x165)](_0x58e2ec);}['removeMember'](_0x58f775,_0x560396){const _0x47e57c=_0x3022d6,_0x2172e2=this['_roomMembers'][_0x47e57c(0x84)](_0x58f775);_0x2172e2&&_0x2172e2[_0x47e57c(0x25d)](_0x560396);}['getRoom'](_0x363ec9){const _0xd6f08=_0x3022d6;return this[_0xd6f08(0x350)][_0xd6f08(0x84)](_0x363ec9);}[_0x3022d6(0x18f)](_0x4c13cc,_0xaf5f52){const _0x416d16=_0x3022d6,_0x46036a=this[_0x416d16(0x350)]['get'](_0x4c13cc);if(_0x46036a)return _0x46036a[_0x416d16(0x18f)](_0xaf5f52);}['_removeRoom'](_0x201d3e){const _0x180049=_0x3022d6,_0x6d81e4=this['_roomMembers']['get'](_0x201d3e);_0x6d81e4&&(_0x6d81e4[_0x180049(0x147)](),this[_0x180049(0x350)][_0x180049(0x1af)](_0x201d3e));}[_0x3022d6(0x147)](){const _0x125083=_0x3022d6;this[_0x125083(0x350)][_0x125083(0x3d3)](_0x10a089=>_0x10a089['dispose']()),this[_0x125083(0x350)][_0x125083(0xe4)]();}};Y=ts([Xe(0x0,o[_0x3022d6(0xb8)]),Xe(0x1,o['Inject'](o[_0x3022d6(0x168)]))],Y);class ss extends o[_0x3022d6(0x1c9)]{constructor(){const _0x38be72=_0x3022d6;super(...arguments),u(this,_0x38be72(0x400),new Map());}[_0x3022d6(0x147)](){const _0x52b467=_0x3022d6;this[_0x52b467(0x400)]['clear']();}[_0x3022d6(0x165)](_0x252ca8){const _0x281af3=_0x3022d6;this['_members']['set'](_0x252ca8[_0x281af3(0x36f)],_0x252ca8);}['removeMember'](_0x4f3a18){const _0x5a191c=_0x3022d6;this[_0x5a191c(0x400)][_0x5a191c(0x1af)](_0x4f3a18);}[_0x3022d6(0x18f)](_0x26bff1){const _0xd2bc34=_0x3022d6;return this[_0xd2bc34(0x400)][_0xd2bc34(0x84)](_0x26bff1);}}function It(_0x286f72){const _0x2d149e=_0x3022d6;var _0x283380,_0x502022,_0x113967,_0x4853f6;const _0x2c21c7=_0x286f72[_0x2d149e(0x2be)],_0x40d301=JSON[_0x2d149e(0x2ab)](_0x2c21c7);switch(_0x40d301[_0x2d149e(0x27b)]){case T[_0x2d149e(0x462)]:case T[_0x2d149e(0x24a)]:{const _0xae97b9=_0x40d301['infoRsp'];return{..._0x40d301,'data':_0xae97b9,'cmd':_0x40d301['cmd']};}case T[_0x2d149e(0x157)]:{const _0x77d3d6=_0x40d301['joinRsp'];return{..._0x40d301,'data':_0x77d3d6,'cmd':_0x40d301[_0x2d149e(0x27b)]};}case T[_0x2d149e(0x40c)]:{const _0x4c3868=_0x40d301[_0x2d149e(0x1dd)];switch(_0x4c3868[_0x2d149e(0x31c)]){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x283380=_0x4c3868[_0x2d149e(0xf7)])==null?void 0x0:_0x283380['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x420)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x502022=_0x4c3868[_0x2d149e(0x1a2)])==null?void 0x0:_0x502022['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['NEW_CHANGESETS']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x113967=_0x4c3868[_0x2d149e(0x40a)])==null?void 0x0:_0x113967['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x459)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x4853f6=_0x4c3868[_0x2d149e(0x1e2)])==null?void 0x0:_0x4853f6['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x426)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x125)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_ENTER']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x345)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_LEAVE']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x154)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x179)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2b3)]:case _[_0x2d149e(0x26c)]['LIVESHARE_OPERATION']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x284)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x3a9)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _['CollaborationEvent'][_0x2d149e(0x384)]:return{..._0x40d301,'data':_0x4c3868,'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2bd)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21f)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['UPDATE_PERMISSION_OBJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868['updatePermissionObjEvent']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['SHOULD_CLOSE_CONN']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x236)]},'cmd':_0x40d301['cmd']};default:return _0x40d301;}}default:return _0x40d301;}}function pt(_0x2fe806){const _0xadf2ba=_0x3022d6;switch(_0x2fe806[_0xadf2ba(0x27b)]){case T[_0xadf2ba(0x462)]:case T[_0xadf2ba(0x24a)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey']});case T[_0xadf2ba(0x145)]:{let _0x9d2086;switch(_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x1b6)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['USERS_LEAVE'],'leaveEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xde)],'joinEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x9d2086={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x176)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x176)],'liveShareOperation':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)]['LIVESHARE_TERMINATE']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x3a9)],'liveShareTerminate':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent'][_0xadf2ba(0xd3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xd3)],'liveShareRequestHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]};break;}default:_0x9d2086={'eventID':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]};}return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'collaMsg':_0x9d2086});}case T[_0xadf2ba(0x157)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey'],'joinReq':_0x2fe806[_0xadf2ba(0x2be)]});case T[_0xadf2ba(0xdc)]:return JSON['stringify']({'cmd':_0x2fe806['cmd'],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'leaveReq':_0x2fe806[_0xadf2ba(0x2be)]});default:throw new Error(_0xadf2ba(0x300));}}var is=Object['defineProperty'],ns=Object['getOwnPropertyDescriptor'],rs=(_0x295300,_0x25a473,_0x36e9ea,_0x1b5657)=>{const _0x16ebe8=_0x3022d6;for(var _0xbd7ab1=_0x1b5657>0x1?void 0x0:_0x1b5657?ns(_0x25a473,_0x36e9ea):_0x25a473,_0x4a4670=_0x295300[_0x16ebe8(0x2ce)]-0x1,_0x21683f;_0x4a4670>=0x0;_0x4a4670--)(_0x21683f=_0x295300[_0x4a4670])&&(_0xbd7ab1=(_0x1b5657?_0x21683f(_0x25a473,_0x36e9ea,_0xbd7ab1):_0x21683f(_0xbd7ab1))||_0xbd7ab1);return _0x1b5657&&_0xbd7ab1&&is(_0x25a473,_0x36e9ea,_0xbd7ab1),_0xbd7ab1;},se=(_0x235ee3,_0x5794ac)=>(_0x37b5b2,_0x2b4bff)=>_0x5794ac(_0x37b5b2,_0x2b4bff,_0x235ee3);const Be=o[_0x3022d6(0x2f4)](_0x3022d6(0x28a));function os(_0x5f5b4a,_0x1cfdff,_0x1bc97b){const _0xe015b0=_0x3022d6;return _0x5f5b4a+'/'+_0x1cfdff+_0xe015b0(0x3b5)+_0x1bc97b+_0xe015b0(0x454);}exports[_0x3022d6(0x3b0)]=class{constructor(_0x53e780,_0x2b38ba,_0x2c78eb,_0x22912d,_0x55105d){const _0x958d61=_0x3022d6;this[_0x958d61(0x2ae)]=_0x53e780,this[_0x958d61(0x200)]=_0x2b38ba,this[_0x958d61(0xee)]=_0x2c78eb,this[_0x958d61(0x38b)]=_0x22912d,this[_0x958d61(0x307)]=_0x55105d;}[_0x3022d6(0x112)](_0x4ab63f){const _0x225098=_0x3022d6,_0x2c1a0b=this[_0x225098(0x200)][_0x225098(0x112)](_0x4ab63f);if(!_0x2c1a0b)throw new Error(_0x225098(0x11e));const _0x2c3c6f=new o[(_0x225098(0x1fc))](),_0x569ac8=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x2a8)][_0x225098(0x265)](_0x3e1b2f=>_0x569ac8[_0x225098(0x116)](_0x3e1b2f)))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x569ac8[_0x225098(0x19e)]()));const _0x147b5b=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b['error$'][_0x225098(0x265)](_0x5d2187=>_0x147b5b[_0x225098(0x116)](_0x5d2187)))),_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](()=>_0x147b5b['complete']()));const _0x81b421=new v[(_0x225098(0x21b))]();_0x2c3c6f['add'](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x40b)][_0x225098(0x265)](_0x486390=>{const _0x54e024=_0x225098,_0x7511d0=It(_0x486390);_0x81b421[_0x54e024(0x116)](_0x7511d0);}))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x81b421[_0x225098(0x19e)]()));const _0x47934d=()=>{const _0x32310f=_0x225098;_0x147b5b[_0x32310f(0x116)](new Event(_0x32310f(0x366))),_0x569ac8['next'](new CloseEvent(_0x32310f(0x366))),_0xd7e53c[_0x32310f(0x22c)]();},_0xd7e53c={'memberID':'','close$':_0x569ac8[_0x225098(0x295)](),'error$':_0x147b5b[_0x225098(0x295)](),'open$':_0x2c1a0b[_0x225098(0x25b)],'message$':_0x81b421[_0x225098(0x295)](),'send':_0x44ff56=>{const _0x295cd7=_0x225098;if(_0x44ff56[_0x295cd7(0x27b)]===T[_0x295cd7(0x145)]){if(_0x44ff56[_0x295cd7(0x2be)][_0x295cd7(0x31c)]===_[_0x295cd7(0x26c)][_0x295cd7(0x37d)]){this[_0x295cd7(0x438)](_0xd7e53c,_0x44ff56[_0x295cd7(0x2be)])[_0x295cd7(0x104)](_0x3b160a=>{const _0x37f2c9=_0x295cd7;this[_0x37f2c9(0x38b)][_0x37f2c9(0x404)](_0x3b160a),_0x47934d();});return;}if(_0x44ff56['data']['eventID']===_[_0x295cd7(0x26c)][_0x295cd7(0x44f)]){const _0x21e818=_0x44ff56[_0x295cd7(0x2be)];this['_fetchMissChangesets'](_0x21e818)[_0x295cd7(0x156)](_0xb08435=>{const _0x4fe6de=_0x295cd7;_0x81b421[_0x4fe6de(0x116)]({'cmd':T[_0x4fe6de(0x40c)],'code':ke['OK'],'routeKey':_0x21e818[_0x4fe6de(0x2be)][_0x4fe6de(0x367)],'routeType':'','data':{'eventID':_[_0x4fe6de(0x26c)][_0x4fe6de(0x127)],'data':{'changesets':_0xb08435}}});})['catch'](_0x2666bd=>{const _0x120002=_0x295cd7;this[_0x120002(0x38b)][_0x120002(0x404)](_0x2666bd),_0x47934d();});return;}}_0x2c1a0b['send'](pt(_0x44ff56));},'close':()=>{const _0x482e80=_0x225098;_0x2c1a0b['close'](),_0x2c3c6f[_0x482e80(0x147)]();}};return _0xd7e53c;}async['_submitChangeset'](_0xc6c9c9,_0x52ee93){const _0x3aa633=_0x3022d6;var _0x27b936;const {unitType:_0x25939e,unitID:_0x37d525,changeset:_0x404bd9}=_0x52ee93[_0x3aa633(0x2be)],_0xf0966e={'unitID':_0x37d525,'memberID':_0xc6c9c9['memberID'],'type':_0x25939e,'changeset':_['parseChangesetToProtocol'](_0x404bd9)},_0x16a6b0=os((_0x27b936=this[_0x3aa633(0xee)][_0x3aa633(0x1bd)](vt))!=null?_0x27b936:Jt,_0x25939e,_0x37d525);try{await this[_0x3aa633(0x2ae)][_0x3aa633(0x45d)](_0x16a6b0,{'body':_0xf0966e});}catch(_0x57010d){throw this[_0x3aa633(0x38b)][_0x3aa633(0x404)]('[CollaborationSession]',_0x3aa633(0xc3)),_0x57010d;}}async[_0x3022d6(0xf6)](_0x56ee5b){const _0x3eac13=_0x3022d6,{unitID:_0x57f563,from:_0x492027,to:_0x440964,unitType:_0x288ce9}=_0x56ee5b[_0x3eac13(0x2be)];return(await this[_0x3eac13(0x307)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x57f563,'type':_0x288ce9,'from':_0x492027,'to':_0x440964}))[_0x3eac13(0x183)];}},exports[_0x3022d6(0x3b0)]=rs([se(0x0,o['Inject'](U[_0x3022d6(0x37e)])),se(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x2e8)])),se(0x2,o[_0x3022d6(0x3be)]),se(0x3,o['ILogService']),se(0x4,o[_0x3022d6(0x143)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x3709e8=_0x3022d6;u(this,'_commentUpdate$',new v['Subject']()),u(this,_0x3709e8(0x45b),this[_0x3709e8(0x394)][_0x3709e8(0x295)]());}['onCommentUpdate'](_0x188d74){const _0x3d9c4c=_0x3022d6;this[_0x3d9c4c(0x394)][_0x3d9c4c(0x116)](_0x188d74);}}var as=Object[_0x3022d6(0x131)],cs=Object[_0x3022d6(0x2b4)],Et=(_0x150305,_0x30c649,_0x3f30fe,_0x47ffd1)=>{for(var _0x3ab926=_0x47ffd1>0x1?void 0x0:_0x47ffd1?cs(_0x30c649,_0x3f30fe):_0x30c649,_0x5a92b2=_0x150305['length']-0x1,_0x3093b9;_0x5a92b2>=0x0;_0x5a92b2--)(_0x3093b9=_0x150305[_0x5a92b2])&&(_0x3ab926=(_0x47ffd1?_0x3093b9(_0x30c649,_0x3f30fe,_0x3ab926):_0x3093b9(_0x3ab926))||_0x3ab926);return _0x47ffd1&&_0x3ab926&&as(_0x30c649,_0x3f30fe,_0x3ab926),_0x3ab926;},M=(_0x1af416,_0x7efeec)=>(_0x23bb22,_0xc105c6)=>_0x7efeec(_0x23bb22,_0xc105c6,_0x1af416),G=(_0x2e474b=>(_0x2e474b[_0x2e474b[_0x3022d6(0x1ab)]=0x0]=_0x3022d6(0x1ab),_0x2e474b[_0x2e474b[_0x3022d6(0x297)]=0x1]=_0x3022d6(0x297),_0x2e474b[_0x2e474b['OFFLINE']=0x2]=_0x3022d6(0x316),_0x2e474b[_0x2e474b[_0x3022d6(0x194)]=0x3]=_0x3022d6(0x194),_0x2e474b))(G||{});exports[_0x3022d6(0x343)]=class extends o['RxDisposable']{constructor(_0x4bbe2b,_0x55d84d,_0x26d98e,_0x2ef77d,_0x34108c,_0x1aaf81,_0x22bad2,_0x57170d,_0xe241c7){const _0x3efc7d=_0x3022d6;super(),u(this,_0x3efc7d(0x283),new v[(_0x3efc7d(0x141))](0x0)),u(this,_0x3efc7d(0x370),this[_0x3efc7d(0x283)]['asObservable']()),u(this,'_event$',new v['Subject']()),u(this,'event$',this[_0x3efc7d(0x17b)][_0x3efc7d(0x295)]()),u(this,_0x3efc7d(0x38d)),u(this,_0x3efc7d(0x3c3)),u(this,_0x3efc7d(0xb2)),(this[_0x3efc7d(0x328)]=_0x4bbe2b,this['_logService']=_0x26d98e,this[_0x3efc7d(0x2ed)]=_0x2ef77d,this['_messageService']=_0x34108c,this[_0x3efc7d(0xee)]=_0x1aaf81,this[_0x3efc7d(0x3b1)]=_0x22bad2,this[_0x3efc7d(0x16b)]=_0x57170d,this[_0x3efc7d(0x14f)]=_0xe241c7,_0x55d84d[_0x3efc7d(0x23e)](E[_0x3efc7d(0xc7)](this['dispose$']))[_0x3efc7d(0x265)](_0x424d0f=>{const _0x3d0031=_0x3efc7d;var _0x1a847c;typeof _0x424d0f>'u'||(this[_0x3d0031(0x38d)]=_0x424d0f,_0x424d0f?(this[_0x3d0031(0x320)](_0x424d0f),this[_0x3d0031(0x3c3)]=this[_0x3d0031(0x38d)][_0x3d0031(0x40b)][_0x3d0031(0x265)](_0xec03b7=>{const _0x583b5d=_0x3d0031;_0xec03b7['routeKey']===this[_0x583b5d(0x328)]&&this['_onCombEvent'](_0xec03b7);})):(this[_0x3d0031(0x283)][_0x3d0031(0x116)](0x2),(_0x1a847c=this[_0x3d0031(0x3c3)])==null||_0x1a847c[_0x3d0031(0x2b9)](),this[_0x3d0031(0x3c3)]=null));}),this[_0x3efc7d(0x14a)](this['_beforeCloseService'][_0x3efc7d(0x465)](()=>{const _0xee932b=_0x3efc7d;var _0x25b827;(_0x25b827=this[_0xee932b(0x38d)])==null||_0x25b827[_0xee932b(0x362)]({'cmd':T[_0xee932b(0xdc)],'data':{'roomID':this[_0xee932b(0x328)]}});})));}get['sessionStatus'](){const _0x27898d=_0x3022d6;return this[_0x27898d(0x283)][_0x27898d(0x386)]();}[_0x3022d6(0x3f2)](){const _0x5a1856=_0x3022d6;var _0x270fc7,_0x253f42;return(_0x253f42=(_0x270fc7=this[_0x5a1856(0x38d)])==null?void 0x0:_0x270fc7[_0x5a1856(0x36f)])!=null?_0x253f42:null;}['dispose'](){const _0x251fff=_0x3022d6;super[_0x251fff(0x147)](),this[_0x251fff(0x374)]['next'](),this['dispose$']['complete']();}[_0x3022d6(0x22c)](){const _0x3f32ee=_0x3022d6;var _0x5e6c87,_0x348b77;(_0x5e6c87=this[_0x3f32ee(0x38d)])==null||_0x5e6c87[_0x3f32ee(0x362)]({'cmd':T[_0x3f32ee(0xdc)],'data':{'roomID':this['_unitID']}}),this[_0x3f32ee(0x17b)][_0x3f32ee(0x19e)](),this[_0x3f32ee(0x283)]['complete'](),(_0x348b77=this[_0x3f32ee(0x38d)])==null||_0x348b77[_0x3f32ee(0x22c)](),this[_0x3f32ee(0x147)]();}[_0x3022d6(0x1a4)](_0x2ebd9c){const _0x4b0db9=_0x3022d6;_0x2ebd9c['cmd']===T[_0x4b0db9(0x157)]?this['_onJoinRoomEvent'](_0x2ebd9c):_0x2ebd9c[_0x4b0db9(0x27b)]===T['RECV']&&this[_0x4b0db9(0x268)](_0x2ebd9c);}[_0x3022d6(0x320)](_0x4c0486){const _0x26a4df=_0x3022d6;this['_sessionStatus$'][_0x26a4df(0x116)](0x1),_0x4c0486[_0x26a4df(0x362)]({'cmd':T[_0x26a4df(0x157)],'routeKey':this[_0x26a4df(0x328)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3022d6(0x93)](_0xc4dc01){const _0x7a3970=_0x3022d6;var _0x313230;if(_0xc4dc01[_0x7a3970(0x2a2)]===ke[_0x7a3970(0x2ff)]){this['_messageService']['show']({'type':Q['MessageType'][_0x7a3970(0x1e0)],'content':this['_localeService']['t'](_0x7a3970(0xa2))}),this[_0x7a3970(0x283)]['next'](0x2);return;}this[_0x7a3970(0x283)][_0x7a3970(0x116)](0x3);const _0xc267a5=(_0x313230=_0xc4dc01[_0x7a3970(0x2be)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x313230[_0x7a3970(0x12d)];_0xc267a5&&_0xc267a5[_0x7a3970(0x3d3)](_0x256952=>this['_memberService'][_0x7a3970(0x165)](this[_0x7a3970(0x328)],_0x256952));}['_onRecvEvent'](_0x4533f2){const _0x5345d8=_0x3022d6;try{const _0x52855c=_0x4533f2[_0x5345d8(0x2be)];switch(_0x52855c[_0x5345d8(0x31c)]){case _[_0x5345d8(0x26c)][_0x5345d8(0xde)]:this[_0x5345d8(0x13c)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _['CollaborationEvent'][_0x5345d8(0x1b6)]:this[_0x5345d8(0x12b)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x420)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x384)]:this['_logService']['error'](_0x5345d8(0x92)+JSON[_0x5345d8(0x258)](_0x52855c)),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)]['COMMENT_UPDATE']:this[_0x5345d8(0x14f)][_0x5345d8(0x1e9)](_0x52855c[_0x5345d8(0x2be)]),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;default:this[_0x5345d8(0x17b)]['next'](_0x52855c);}}catch(_0x704f1f){this['_logService'][_0x5345d8(0x404)](_0x704f1f,_0x4533f2);}}['_onUserJoin'](_0x38bdf0){const _0x8ca08e=_0x3022d6;this['_memberService'][_0x8ca08e(0x165)](this[_0x8ca08e(0x328)],_0x38bdf0[_0x8ca08e(0x2be)]);}[_0x3022d6(0x12b)](_0x226d4d){const _0x2de287=_0x3022d6;this[_0x2de287(0x16b)]['removeMember'](this[_0x2de287(0x328)],_0x226d4d[_0x2de287(0x2be)]['memberID']);}async[_0x3022d6(0x362)](_0x3fe405,_0x5172f6){const _0x5b24dc=_0x3022d6;if(this[_0x5b24dc(0x306)]!==0x3||!this[_0x5b24dc(0x38d)])throw new Error(_0x5b24dc(0x187));try{_0x3fe405['eventID']===_[_0x5b24dc(0x26c)][_0x5b24dc(0x310)]&&this[_0x5b24dc(0x2de)](),this[_0x5b24dc(0x38d)][_0x5b24dc(0x362)]({'cmd':T[_0x5b24dc(0x145)],'routeKey':_0x5172f6,'routeType':'','data':_0x3fe405});}catch(_0x2e9d16){this[_0x5b24dc(0x38b)][_0x5b24dc(0x404)](_0x2e9d16);}}[_0x3022d6(0x2de)](){const _0x4937cb=_0x3022d6;var _0x559ef4;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x174059=_0xbc10;this[_0x174059(0xb2)]=null,this[_0x174059(0x38e)][_0x174059(0x1d3)]({'type':Q[_0x174059(0x1e5)][_0x174059(0x19c)],'content':this[_0x174059(0x3b1)]['t'](_0x174059(0x1d4))});},(_0x559ef4=this[_0x4937cb(0xee)][_0x4937cb(0x1bd)](He))!=null?_0x559ef4:dt);}['_clearCollaborationTimeoutTimer'](){const _0x3ddca7=_0x3022d6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3ddca7(0xb2)]),this[_0x3ddca7(0xb2)]=null);}},exports['CollaborationSession']=Et([M(0x2,o[_0x3022d6(0x22f)]),M(0x3,L[_0x3022d6(0x3db)]),M(0x4,L[_0x3022d6(0xaf)]),M(0x5,o[_0x3022d6(0x3be)]),M(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x7,o[_0x3022d6(0x291)](Y)),M(0x8,o[_0x3022d6(0x291)](Ve))],exports['CollaborationSession']),exports[_0x3022d6(0x2ee)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x50311e,_0x496ed1,_0x277eb6,_0x3b147f,_0x296ed7,_0x38d5cb){const _0x498b88=_0x3022d6;super(),u(this,'_socket$',new v[(_0x498b88(0x141))](void 0x0)),u(this,_0x498b88(0xac),new Map()),u(this,_0x498b88(0x30d),new v['BehaviorSubject'](0x0)),u(this,_0x498b88(0x358),this[_0x498b88(0x30d)]['asObservable']()),u(this,_0x498b88(0x219),!0x1),u(this,_0x498b88(0x318)),u(this,_0x498b88(0xae)),u(this,_0x498b88(0x387)),u(this,'_retryCount',0x0),(this[_0x498b88(0x123)]=_0x50311e,this[_0x498b88(0x3b1)]=_0x496ed1,this[_0x498b88(0x38e)]=_0x277eb6,this[_0x498b88(0x38b)]=_0x3b147f,this[_0x498b88(0xee)]=_0x296ed7,this[_0x498b88(0x19f)]=_0x38d5cb);}get[_0x3022d6(0x38d)](){const _0x481f7e=_0x3022d6;return this[_0x481f7e(0x2e4)]['getValue']();}['dispose'](){const _0x3c2a9a=_0x3022d6;super[_0x3c2a9a(0x147)](),this[_0x3c2a9a(0xac)][_0x3c2a9a(0x3d3)](_0x596b0c=>_0x596b0c[_0x3c2a9a(0x147)]()),this[_0x3c2a9a(0xac)]['clear'](),this['_status$'][_0x3c2a9a(0x19e)]();}async[_0x3022d6(0x3b2)](_0x535be5){const _0x1a3942=_0x3022d6;if(this[_0x1a3942(0xac)][_0x1a3942(0x151)](_0x535be5))return this['_sessions'][_0x1a3942(0x84)](_0x535be5);this['_tryEnsureSocket']();const _0x1bab06=this[_0x1a3942(0x123)][_0x1a3942(0x89)](exports['CollaborationSession'],_0x535be5,this['_socket$']['asObservable']());return this[_0x1a3942(0xac)][_0x1a3942(0x182)](_0x535be5,_0x1bab06),_0x1bab06;}[_0x3022d6(0x186)](_0x392676){const _0x508515=_0x3022d6;var _0x5e4bcd;const _0x100b2f=this[_0x508515(0xac)]['get'](_0x392676);_0x100b2f&&(this[_0x508515(0xac)][_0x508515(0x1af)](_0x392676),_0x100b2f[_0x508515(0x22c)]()),this[_0x508515(0xac)][_0x508515(0x2ca)]||(_0x5e4bcd=this['_socket'])==null||_0x5e4bcd['close']();}['_createSocket'](){const _0x41ae52=_0x3022d6;var _0x32863b;const _0x597158=(_0x32863b=this[_0x41ae52(0xee)]['getConfig'](_t))!=null?_0x32863b:Ft;return this[_0x41ae52(0x19f)][_0x41ae52(0x112)](_0x597158);}['_tryEnsureSocket'](){const _0x1fe93e=_0x3022d6;try{const _0x2bb311=this[_0x1fe93e(0x20a)]();if(_0x2bb311){const _0x48c6fc=_0x2bb311[_0x1fe93e(0x362)];_0x2bb311[_0x1fe93e(0x362)]=_0x40ee79=>(this['_rescheduleHeartbeatEvent'](),_0x48c6fc[_0x1fe93e(0xd6)](_0x2bb311,[_0x40ee79])),_0x2bb311[_0x1fe93e(0x40b)][_0x1fe93e(0x265)](_0x2ba1ba=>this[_0x1fe93e(0x2eb)](_0x2bb311,_0x2ba1ba)),_0x2bb311['error$'][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](_0x1a1bda=>this['_logService'][_0x1fe93e(0x404)]('[CollaborationSessionService]:\x20socket\x20error',_0x1a1bda)),_0x2bb311[_0x1fe93e(0x25b)][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](()=>{const _0x3cda27=_0x1fe93e;this[_0x3cda27(0x2b2)](_0x2bb311);}),_0x2bb311[_0x1fe93e(0x2a8)][_0x1fe93e(0x23e)](E['take'](0x1))[_0x1fe93e(0x265)](_0x1b98cc=>{const _0x4115ec=_0x1fe93e;this[_0x4115ec(0x38b)][_0x4115ec(0xf9)]('[CollaborationSessionService]',_0x4115ec(0x22e),_0x1b98cc),this[_0x4115ec(0x121)]();});}}catch(_0x38f43d){this['_logService']['error'](_0x38f43d),this['_onConnectionFailed']();}}[_0x3022d6(0x2b2)](_0x203391){const _0x29c4e2=_0x3022d6;this[_0x29c4e2(0x38b)]['debug'](_0x29c4e2(0x359),_0x29c4e2(0x108)),_0x203391[_0x29c4e2(0x362)]({'cmd':T['HELLO']}),this[_0x29c4e2(0x193)]();}[_0x3022d6(0x121)](){const _0x16da08=_0x3022d6;var _0x14b16f;this['_status$'][_0x16da08(0x116)](0x2),this[_0x16da08(0x2e4)][_0x16da08(0x116)](null),this[_0x16da08(0x398)](),this[_0x16da08(0xe9)](),this[_0x16da08(0x219)]=!0x1,this[_0x16da08(0x452)]<((_0x14b16f=this['_configService'][_0x16da08(0x1bd)](Xt))!=null?_0x14b16f:qt)?(this[_0x16da08(0xbc)](this['_retryCount']),this[_0x16da08(0x452)]+=0x1):this[_0x16da08(0x38e)][_0x16da08(0x1d3)]({'type':Q[_0x16da08(0x1e5)][_0x16da08(0x19c)],'content':this[_0x16da08(0x3b1)]['t'](_0x16da08(0x2c2))});}[_0x3022d6(0xbc)](_0x5debf5){const _0x4bee5c=_0x3022d6;var _0x37fe45;const _0x464395=((_0x37fe45=this['_configService']['getConfig'](Yt))!=null?_0x37fe45:Kt)*0x2**_0x5debf5;this['_messageService'][_0x4bee5c(0x1d3)]({'type':Q[_0x4bee5c(0x1e5)]['Warning'],'content':this[_0x4bee5c(0x3b1)]['t'](_0x4bee5c(0xe0))}),this[_0x4bee5c(0x387)]=setTimeout(()=>{const _0x562a98=_0x4bee5c;this[_0x562a98(0x2c9)](),clearTimeout(this[_0x562a98(0x387)]),this['_retryConnectingTimer']=null;},_0x464395);}[_0x3022d6(0x193)](){const _0x408550=_0x3022d6;var _0x502f46;this[_0x408550(0xe9)](),this[_0x408550(0x318)]=setTimeout(()=>this[_0x408550(0x2a4)](),(_0x502f46=this['_configService'][_0x408550(0x1bd)](ut))!=null?_0x502f46:Gt);}[_0x3022d6(0x2a4)](){const _0x31451d=_0x3022d6;this[_0x31451d(0x38d)]['send']({'cmd':T[_0x31451d(0x462)]}),this[_0x31451d(0x155)]();}[_0x3022d6(0x155)](){const _0xb89689=_0x3022d6;var _0x5cade4;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x5cade4=this[_0xb89689(0xee)][_0xb89689(0x1bd)](He))!=null?_0x5cade4:dt);}[_0x3022d6(0x2eb)](_0x21f316,_0x3b2fe9){const _0x477899=_0x3022d6,{cmd:_0x13c3e4}=_0x3b2fe9;_0x13c3e4===T[_0x477899(0x24a)]&&!this['_socketReady']&&(_0x21f316[_0x477899(0x36f)]=_0x3b2fe9[_0x477899(0x2be)]['memberID'],this[_0x477899(0x2e4)][_0x477899(0x116)](_0x21f316),this[_0x477899(0x30d)]['next'](0x3),this[_0x477899(0x219)]=!0x0),_0x13c3e4===T[_0x477899(0x462)]&&this[_0x477899(0x398)](),this[_0x477899(0x193)]();}[_0x3022d6(0xe9)](){const _0x340d41=_0x3022d6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x340d41(0x318)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3ed13c=_0x3022d6;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3ed13c(0xae)]=null);}},exports[_0x3022d6(0x2ee)]=Et([M(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),M(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x2,L[_0x3022d6(0xaf)]),M(0x3,o['ILogService']),M(0x4,o[_0x3022d6(0x3be)]),M(0x5,Be)],exports[_0x3022d6(0x2ee)]);var ls=Object['defineProperty'],hs=Object['getOwnPropertyDescriptor'],_s=(_0x5efbe1,_0x33b587,_0x471a65,_0x1008a8)=>{const _0x173ff6=_0x3022d6;for(var _0x192979=_0x1008a8>0x1?void 0x0:_0x1008a8?hs(_0x33b587,_0x471a65):_0x33b587,_0x8b15ae=_0x5efbe1[_0x173ff6(0x2ce)]-0x1,_0xa76f8e;_0x8b15ae>=0x0;_0x8b15ae--)(_0xa76f8e=_0x5efbe1[_0x8b15ae])&&(_0x192979=(_0x1008a8?_0xa76f8e(_0x33b587,_0x471a65,_0x192979):_0xa76f8e(_0x192979))||_0x192979);return _0x1008a8&&_0x192979&&ls(_0x33b587,_0x471a65,_0x192979),_0x192979;},ie=(_0x3eb3e7,_0x8ba7f3)=>(_0x55fd9d,_0x2dac49)=>_0x8ba7f3(_0x55fd9d,_0x2dac49,_0x3eb3e7);exports[_0x3022d6(0x174)]=class extends o['Disposable']{constructor(_0x25935f,_0x332295,_0x8dd6e5,_0x58b954,_0x894b28){const _0x4fb45e=_0x3022d6;super(),u(this,_0x4fb45e(0xdf),new Map()),u(this,_0x4fb45e(0x13d),new Map()),u(this,_0x4fb45e(0x44c),!0x1),(this[_0x4fb45e(0xee)]=_0x25935f,this[_0x4fb45e(0x2df)]=_0x332295,this[_0x4fb45e(0x2ed)]=_0x8dd6e5,this[_0x4fb45e(0x3b1)]=_0x58b954,this[_0x4fb45e(0x254)]=_0x894b28,this[_0x4fb45e(0x299)]());}['disableLocalCache'](){const _0x2f2bfe=_0x3022d6;this[_0x2f2bfe(0x44c)]=!0x0;}['enableLocalCache'](){const _0x4d5b4b=_0x3022d6;this[_0x4d5b4b(0x44c)]=!0x1;}[_0x3022d6(0x147)](){const _0x1ea836=_0x3022d6;this[_0x1ea836(0x2e5)]()[_0x1ea836(0x156)](()=>super[_0x1ea836(0x147)]());}async[_0x3022d6(0x3b8)](_0x2bd7ae){const _0x1b12a9=_0x3022d6;return this['_disabled']?null:this['_localStorageService'][_0x1b12a9(0x1e4)](qe(_0x2bd7ae));}async[_0x3022d6(0x25c)](_0x298dbd,_0x3d9c21){const _0x40ba56=_0x3022d6;return!!this[_0x40ba56(0x2df)][_0x40ba56(0x31f)](_0x298dbd,_0x3d9c21);}[_0x3022d6(0xbb)](_0x1c5bed,_0x4e47c4,_0x4eb31e,_0x1ed609){const _0x1ac5dd=_0x3022d6,_0x57bba6=this[_0x1ac5dd(0x254)][_0x1ac5dd(0x33a)](_0x1c5bed);this[_0x1ac5dd(0xdf)][_0x1ac5dd(0x182)](_0x1c5bed,{'unitID':_0x1c5bed,'type':_0x4e47c4,'awaitingChangeset':_0x4eb31e,'mutations':_0x1ed609,'rev':_0x57bba6}),this[_0x1ac5dd(0x13d)]['has'](_0x1c5bed)||this[_0x1ac5dd(0x192)](_0x1c5bed);}[_0x3022d6(0x192)](_0x3d21af){const _0x3560f6=_0x3022d6,_0x55bcda=this['_getSaveTimeout']();_0x55bcda===0x0?this[_0x3560f6(0x443)](_0x3d21af):this['_saveTaskMap'][_0x3560f6(0x182)](_0x3d21af,setTimeout(()=>this[_0x3560f6(0x443)](_0x3d21af),_0x55bcda));}[_0x3022d6(0x234)](){const _0x3624aa=_0x3022d6;var _0x2cd08e;return(_0x2cd08e=this[_0x3624aa(0xee)]['getConfig'](St))!=null?_0x2cd08e:zt;}[_0x3022d6(0x443)](_0x1f1416){const _0x2f5046=_0x3022d6,_0x56c934=this['_saveTaskMap'][_0x2f5046(0x84)](_0x1f1416);return _0x56c934!==void 0x0&&window[_0x2f5046(0x1b4)](_0x56c934),this[_0x2f5046(0x2df)]['setItem'](qe(_0x1f1416),this[_0x2f5046(0xdf)][_0x2f5046(0x84)](_0x1f1416))[_0x2f5046(0x156)](()=>this[_0x2f5046(0x13d)][_0x2f5046(0x1af)](_0x1f1416));}async[_0x3022d6(0x2e5)](){const _0x5bca9b=_0x3022d6,_0x3eb8b9=[];this['_saveTaskMap'][_0x5bca9b(0x3d3)]((_0x169d8f,_0xd45b4)=>{const _0x2a3477=_0x5bca9b;window['clearTimeout'](_0x169d8f),_0x3eb8b9[_0x2a3477(0x42d)](this[_0x2a3477(0x443)](_0xd45b4)[_0x2a3477(0x156)](()=>{const _0xdcd0b6=_0x2a3477;this[_0xdcd0b6(0x13d)][_0xdcd0b6(0x1af)](_0xd45b4);}));}),await Promise[_0x5bca9b(0x3ac)](_0x3eb8b9);}[_0x3022d6(0x299)](){const _0x2442c7=_0x3022d6;this[_0x2442c7(0x14a)](this['_beforeCloseService'][_0x2442c7(0x31a)](()=>{const _0x407bb9=_0x2442c7;if(this['_saveTaskMap'][_0x407bb9(0x2ca)])return this[_0x407bb9(0x3b1)]['t'](_0x407bb9(0x397));}));}},exports['LocalCacheService']=_s([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x3022d6(0x3db)]),ie(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),ie(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)]))],exports[_0x3022d6(0x174)]);function qe(_0x2b6b36){const _0x3acedd=_0x3022d6;return _0x3acedd(0x211)+_0x2b6b36;}const pe=o['createIdentifier'](_0x3022d6(0x376));var Ct=(_0x54c139=>(_0x54c139[_0x54c139[_0x3022d6(0x3f7)]=0x0]=_0x3022d6(0x3f7),_0x54c139[_0x54c139[_0x3022d6(0x2e1)]=0x1]=_0x3022d6(0x2e1),_0x54c139))(Ct||{});const ze=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class us extends o[_0x3022d6(0x1c9)]{constructor(){const _0x42beef=_0x3022d6;super(),u(this,'_id',o[_0x42beef(0x418)][_0x42beef(0x24e)]()),u(this,_0x42beef(0x35e),new Set()),u(this,_0x42beef(0x423),new Map()),u(this,_0x42beef(0x42a),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x42beef(0x175),new Map()),this[_0x42beef(0x11b)]();}[_0x3022d6(0x147)](){const _0x484617=_0x3022d6;super[_0x484617(0x147)](),this[_0x484617(0xa8)][_0x484617(0x3d3)]((_0x3bfe7f,_0x6ed19)=>this[_0x484617(0x334)](_0x6ed19)),this['_heartbeatTimer']&&window[_0x484617(0xcd)](this[_0x484617(0x42a)]);}['getUnitStatus$'](_0x5bdf65){const _0x3ca3d0=_0x3022d6;return this[_0x3ca3d0(0x1bc)](_0x5bdf65)[_0x3ca3d0(0x23e)](v[_0x3ca3d0(0x1fe)]());}[_0x3022d6(0x313)](_0x57679c){const _0x2eeb27=_0x3022d6;this['_selfUnitIDs'][_0x2eeb27(0x2ca)]===0x0&&this[_0x2eeb27(0x261)](),this['_selfUnitIDs'][_0x2eeb27(0xe1)](_0x57679c),this[_0x2eeb27(0xff)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57679c],'isForwarded':!0x1});}['disposeUnit'](_0x261eb2){const _0x103157=_0x3022d6;this[_0x103157(0x35e)][_0x103157(0x1af)](_0x261eb2),this[_0x103157(0x35e)][_0x103157(0x2ca)]===0x0&&this[_0x103157(0x42a)]&&window[_0x103157(0xcd)](this[_0x103157(0x42a)]);}[_0x3022d6(0x11b)](){const _0x454faf=_0x3022d6;this[_0x454faf(0x14a)](o['toDisposable'](v[_0x454faf(0x163)](window,_0x454faf(0x21d))[_0x454faf(0x265)](_0x37086b=>{const _0xb92c89=_0x454faf;if(_0x37086b[_0xb92c89(0xda)]!==Je||!_0x37086b['newValue'])return;const _0x289d84=JSON[_0xb92c89(0x2ab)](_0x37086b[_0xb92c89(0x3d6)]);this[_0xb92c89(0x119)](_0x289d84);}))),window[_0x454faf(0x29d)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x454faf(0x188)],'unitIDs':Array[_0x454faf(0x39f)](this[_0x454faf(0x35e)])}));}[_0x3022d6(0x119)](_0x1bc7f5){const _0x12ec3a=_0x3022d6;switch(_0x1bc7f5[_0x12ec3a(0x1f3)]){case 0x0:this[_0x12ec3a(0x1d6)](_0x1bc7f5);break;case 0x1:this[_0x12ec3a(0x1db)](_0x1bc7f5);break;case 0x2:this['_handleHeartbeatEvent'](_0x1bc7f5);break;}}[_0x3022d6(0x1d6)](_0xecf1f9){const _0xbd12e2=_0x3022d6,{unitIDs:_0x2ed7d7,memberID:_0xb2ea1a,isForwarded:_0x51026f}=_0xecf1f9;_0x2ed7d7[_0xbd12e2(0x3d3)](_0x197e78=>{const _0x354f90=_0xbd12e2;if(!_0x51026f&&this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)&&this[_0x354f90(0x1bc)](_0x197e78)[_0x354f90(0x116)](0x1),!this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)||!this[_0x354f90(0x423)]['get'](_0x197e78)['has'](_0xb2ea1a)){const _0x480e9a=this['_unitOnClients'][_0x354f90(0x84)](_0x197e78)||new Set();_0x480e9a['add'](_0xb2ea1a),this[_0x354f90(0x423)][_0x354f90(0x182)](_0x197e78,_0x480e9a),this[_0x354f90(0x305)](_0xb2ea1a);}}),_0x51026f||this[_0xbd12e2(0xff)]({'type':0x0,'memberID':this[_0xbd12e2(0x188)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3022d6(0x305)](_0xb4cefc){const _0x40d92f=_0x3022d6;this[_0x40d92f(0x334)](_0xb4cefc);const _0x8e46b5=window[_0x40d92f(0x3ba)](()=>{const _0x402c38=_0x40d92f;this['_unitOnClients'][_0x402c38(0x3d3)](_0x5da93d=>{const _0x374487=_0x402c38;_0x5da93d[_0x374487(0x1af)](_0xb4cefc);});},ze*0x2);this[_0x40d92f(0xa8)][_0x40d92f(0x182)](_0xb4cefc,_0x8e46b5);}[_0x3022d6(0x334)](_0x7b44b4){const _0x49c533=_0x3022d6;if(this[_0x49c533(0xa8)][_0x49c533(0x151)](_0x7b44b4)){const _0x43978e=this[_0x49c533(0xa8)]['get'](_0x7b44b4);_0x43978e&&window[_0x49c533(0x1b4)](_0x43978e),this[_0x49c533(0xa8)]['set'](_0x7b44b4,null);}}[_0x3022d6(0x1db)](_0x5d4b60){const _0x5daf42=_0x3022d6,{memberID:_0x818d75,unitIDs:_0x1b41a8}=_0x5d4b60;_0x1b41a8[_0x5daf42(0x3d3)](_0x59b558=>{const _0x335a9a=_0x5daf42;var _0x44b9a9;const _0x4e5a49=this['_unitOnClients'][_0x335a9a(0x84)](_0x59b558);_0x4e5a49&&(_0x4e5a49[_0x335a9a(0x1af)](_0x818d75),(_0x44b9a9=this[_0x335a9a(0x1bc)](_0x59b558))==null||_0x44b9a9['next'](_0x4e5a49['size']===0x0?0x0:0x1));}),this[_0x5daf42(0x334)](_0x818d75);}[_0x3022d6(0x3c9)](_0x35027e){const _0x100d7c=_0x3022d6;this[_0x100d7c(0x305)](_0x35027e[_0x100d7c(0x36f)]);}['_send'](_0x428603){const _0x22b480=_0x3022d6;localStorage[_0x22b480(0x31f)](Je,JSON[_0x22b480(0x258)](_0x428603));}['_scheduleHeartbeat'](){const _0x5df6fd=_0x3022d6;this[_0x5df6fd(0x42a)]=window[_0x5df6fd(0x1aa)](()=>{const _0x52c2bd=_0x5df6fd;this[_0x52c2bd(0xff)]({'type':0x2,'memberID':this[_0x52c2bd(0x188)]});},ze);}[_0x3022d6(0x1bc)](_0x4dc8df){const _0x619c22=_0x3022d6;return this[_0x619c22(0x175)][_0x619c22(0x151)](_0x4dc8df)||this[_0x619c22(0x175)]['set'](_0x4dc8df,new v[(_0x619c22(0x141))](0x0)),this[_0x619c22(0x175)][_0x619c22(0x84)](_0x4dc8df);}}var ds=Object['defineProperty'],Ss=Object[_0x3022d6(0x2b4)],vs=(_0x216560,_0x5787b1,_0x464625,_0x5ca31c)=>{const _0x96976a=_0x3022d6;for(var _0x238240=_0x5ca31c>0x1?void 0x0:_0x5ca31c?Ss(_0x5787b1,_0x464625):_0x5787b1,_0x5922c8=_0x216560[_0x96976a(0x2ce)]-0x1,_0x504353;_0x5922c8>=0x0;_0x5922c8--)(_0x504353=_0x216560[_0x5922c8])&&(_0x238240=(_0x5ca31c?_0x504353(_0x5787b1,_0x464625,_0x238240):_0x504353(_0x238240))||_0x238240);return _0x5ca31c&&_0x238240&&ds(_0x5787b1,_0x464625,_0x238240),_0x238240;},Ze=(_0x28a2b6,_0x4c8dcd)=>(_0x55930c,_0x3eef43)=>_0x4c8dcd(_0x55930c,_0x3eef43,_0x28a2b6);let ve=class{constructor(_0x40752b,_0x30495e){const _0x1e32a7=_0x3022d6;this['_injector']=_0x40752b,this[_0x1e32a7(0x223)]=_0x30495e;}[_0x3022d6(0x377)](_0x572638){const _0x56555b=_0x3022d6;this[_0x56555b(0x2f5)](_0x572638),this[_0x56555b(0x90)](_0x572638);}[_0x3022d6(0x364)](_0x51fe01){const _0x1d7a8d=_0x3022d6,_0xb5b606=this[_0x1d7a8d(0x123)][_0x1d7a8d(0x84)](P[_0x1d7a8d(0x464)]),{redoCache:_0x333deb}=_0xb5b606[_0x1d7a8d(0x41e)]();if(_0x333deb[_0x1d7a8d(0x2ce)]===0x0)return _0x51fe01;let _0x1fd84e=o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01['mutations'][0x0]);for(let _0x1f5997=0x0;_0x1f5997<_0x333deb['length'];_0x1f5997++){const _0x5a21d9={'id':_0x1d7a8d(0x290),'params':{..._0x333deb[_0x1f5997]}},_0x2f89c2=this[_0x1d7a8d(0x223)][_0x1d7a8d(0x28e)](_0x1fd84e,_0x5a21d9,!0x1);if(_['isTransformMutationFailure'](_0x2f89c2))throw _0x2f89c2[_0x1d7a8d(0x404)];_0x1fd84e=_0x2f89c2[_0x1d7a8d(0x39e)];}return{...o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01),'mutations':[_0x1fd84e]};}[_0x3022d6(0x2f5)](_0x5790ed){const _0x59fc47=_0x3022d6,_0x474b46=this[_0x59fc47(0x123)][_0x59fc47(0x84)](P[_0x59fc47(0x464)]),{undoCache:_0x4c6c23,redoCache:_0x1dba12}=_0x474b46[_0x59fc47(0x41e)]();if(_0x4c6c23[_0x59fc47(0x2ce)]===0x0||_0x1dba12[_0x59fc47(0x2ce)]===0x0)return;const _0x531790=[],_0x58c5c0=[];let _0x148472=o[_0x59fc47(0x418)][_0x59fc47(0x201)](_0x5790ed[_0x59fc47(0x2a5)][0x0]),_0x32e0c2=o['Tools'][_0x59fc47(0x201)](_0x5790ed['mutations'][0x0]);for(let _0x5700fa=_0x4c6c23[_0x59fc47(0x2ce)]-0x1;_0x5700fa>=0x0;_0x5700fa--){const _0x4dd3d7={'id':_0x59fc47(0x290),'params':{..._0x4c6c23[_0x5700fa]}},_0x4bdcbd={'id':_0x59fc47(0x290),'params':{..._0x1dba12[_0x5700fa]}},_0x329f05=this[_0x59fc47(0x223)][_0x59fc47(0x28e)](_0x148472,_0x4dd3d7,!0x1),_0x77b3d4=this[_0x59fc47(0x223)]['transformMutation'](_0x32e0c2,_0x4bdcbd,!0x1);if(_[_0x59fc47(0x36a)](_0x329f05))throw _0x329f05['error'];if(_[_0x59fc47(0x36a)](_0x77b3d4))throw _0x77b3d4[_0x59fc47(0x404)];_0x531790['unshift'](_0x329f05[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x58c5c0[_0x59fc47(0x3ec)](_0x77b3d4[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x148472=_0x329f05[_0x59fc47(0x39e)],_0x32e0c2=_0x77b3d4['m1Prime'];}_0x474b46['setUndoRedoMutationParamsCache']({'undoCache':_0x531790,'redoCache':_0x58c5c0});}[_0x3022d6(0x90)](_0x58addf){const _0x14c88d=_0x3022d6,_0x700f28=this[_0x14c88d(0x123)][_0x14c88d(0x84)](P[_0x14c88d(0x464)]),_0x3f0817=_0x700f28[_0x14c88d(0x7c)]();if(_0x3f0817==null)return;const _0x30fa1c=[{'id':_0x14c88d(0x290),'params':{'unitId':_0x58addf['unitID'],'actions':null,'textRanges':[_0x3f0817]}}],_0x1bede1=this[_0x14c88d(0x223)][_0x14c88d(0x375)](_0x58addf,_0x30fa1c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1bede1))throw _0x1bede1[_0x14c88d(0x404)];const _0x508d7d=_0x1bede1[_0x14c88d(0x469)][0x0][_0x14c88d(0xd7)]['textRanges'];Array[_0x14c88d(0x3a1)](_0x508d7d)&&_0x508d7d['length']&&_0x700f28['setActiveRange'](_0x508d7d[0x0]);}};ve=vs([Ze(0x0,o['Inject'](o['Injector'])),Ze(0x1,_[_0x3022d6(0x1d1)])],ve);var ms=Object['defineProperty'],gs=Object['getOwnPropertyDescriptor'],fs=(_0x4943a1,_0x513b46,_0x4d2e1f,_0xda901b)=>{const _0x3ad03f=_0x3022d6;for(var _0x8417dc=_0xda901b>0x1?void 0x0:_0xda901b?gs(_0x513b46,_0x4d2e1f):_0x513b46,_0x515f38=_0x4943a1[_0x3ad03f(0x2ce)]-0x1,_0x53719f;_0x515f38>=0x0;_0x515f38--)(_0x53719f=_0x4943a1[_0x515f38])&&(_0x8417dc=(_0xda901b?_0x53719f(_0x513b46,_0x4d2e1f,_0x8417dc):_0x53719f(_0x8417dc))||_0x8417dc);return _0xda901b&&_0x8417dc&&ms(_0x513b46,_0x4d2e1f,_0x8417dc),_0x8417dc;},Qe=(_0x521d19,_0x16ff44)=>(_0x4a172d,_0x576d5d)=>_0x16ff44(_0x4a172d,_0x576d5d,_0x521d19);let me=class{constructor(_0x5b301c,_0xba05d9){const _0x213f0e=_0x3022d6;this[_0x213f0e(0x123)]=_0x5b301c,this[_0x213f0e(0x223)]=_0xba05d9;}['transformSelections'](_0x5bf815){const _0x4aab1c=_0x3022d6;var _0x172ae2;const _0x378ecf=this[_0x4aab1c(0x123)][_0x4aab1c(0x84)](P[_0x4aab1c(0x329)]),_0x5c4b07=(_0x172ae2=_0x378ecf[_0x4aab1c(0x3bd)]())!=null?_0x172ae2:[],_0x186286=_0x5c4b07==null?void 0x0:_0x5c4b07[_0x4aab1c(0x317)](P[_0x4aab1c(0x3f1)]);if(_0x186286['length']===0x0)return;const _0x124bff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5bf815[_0x4aab1c(0x367)],'actions':null,'textRanges':_0x186286}}],_0x2cb350=this[_0x4aab1c(0x223)][_0x4aab1c(0x375)](_0x5bf815,_0x124bff);if(!_[_0x4aab1c(0x10c)](_0x2cb350))throw _0x2cb350[_0x4aab1c(0x404)];const _0x24d70a=_0x2cb350['m2Prime'][0x0]['params'][_0x4aab1c(0x134)];Array['isArray'](_0x24d70a)&&_0x24d70a[_0x4aab1c(0x2ce)]&&_0x378ecf[_0x4aab1c(0x335)](_0x24d70a,!0x1);}};me=fs([Qe(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),Qe(0x1,_[_0x3022d6(0x1d1)])],me);function bt(_0x9dde2f){const _0xc20c6b=_0x3022d6;let _0x221a32='';for(const _0x1afc88 of _0x9dde2f){const {startOffset:_0x11c009,endOffset:_0x34fcb1,isActive:_0x2c4141}=_0x1afc88;_0x221a32[_0xc20c6b(0x2ce)]&&(_0x221a32+=','),_0x221a32+=_0x11c009+':'+_0x34fcb1+':'+(_0x2c4141?'1':'0');}return _0x221a32;}function Is(_0x232016){const _0x3337de=_0x3022d6,_0xf6a234=_0x232016['split'](','),_0x44efbc=[];for(const _0x55e957 of _0xf6a234){const [_0x598983,_0x1c1b54,_0x23957d]=_0x55e957['split'](':');_0x44efbc[_0x3337de(0x42d)]({'startOffset':Number(_0x598983),'endOffset':Number(_0x1c1b54),'collapsed':_0x598983===_0x1c1b54,'isActive':_0x23957d==='1'});}return _0x44efbc['some'](_0x3fdd7a=>_0x3fdd7a['isActive'])||(_0x44efbc[0x0][_0x3337de(0x311)]=!0x0),_0x44efbc;}class We extends o['RxDisposable']{constructor(){const _0x30522c=_0x3022d6;super(...arguments),u(this,_0x30522c(0x15c),new v[(_0x30522c(0x141))](null)),u(this,_0x30522c(0x3d9),this[_0x30522c(0x15c)][_0x30522c(0x295)]());}[_0x3022d6(0x2fe)](_0x1549c2){const _0x5a65db=_0x3022d6,{unitID:_0x4ba37c,memberID:_0x286a75,textRanges:_0x17fd5a}=_0x1549c2,_0xfbf8c3=bt(_0x17fd5a),_0x56e712={'unitID':_0x4ba37c,'memberID':_0x286a75,'selection':_0xfbf8c3};this[_0x5a65db(0x15c)]['next'](_0x56e712);}}var ps=Object['defineProperty'],Es=Object[_0x3022d6(0x2b4)],Cs=(_0x3f0d1a,_0x358edf,_0x1f789d,_0x59b426)=>{const _0xc70db1=_0x3022d6;for(var _0x4ad5cc=_0x59b426>0x1?void 0x0:_0x59b426?Es(_0x358edf,_0x1f789d):_0x358edf,_0xe11b17=_0x3f0d1a[_0xc70db1(0x2ce)]-0x1,_0x3e0915;_0xe11b17>=0x0;_0xe11b17--)(_0x3e0915=_0x3f0d1a[_0xe11b17])&&(_0x4ad5cc=(_0x59b426?_0x3e0915(_0x358edf,_0x1f789d,_0x4ad5cc):_0x3e0915(_0x4ad5cc))||_0x4ad5cc);return _0x59b426&&_0x4ad5cc&&ps(_0x358edf,_0x1f789d,_0x4ad5cc),_0x4ad5cc;},et=(_0x41730f,_0x7dfd34)=>(_0x5ad6c3,_0x3e4c3f)=>_0x7dfd34(_0x5ad6c3,_0x3e4c3f,_0x41730f);function bs(_0x2d1c1e){const _0x1dea0b=_0x3022d6,{unitID:_0x263411,mutations:_0x32bd98}=_0x2d1c1e;return{'unitId':_0x263411,'subUnitId':_0x32bd98[0x0][_0x1dea0b(0xd7)][_0x1dea0b(0x3d1)]};}let ge=class{constructor(_0x1e3aeb,_0xa5ed21){this['_injector']=_0x1e3aeb,this['_transformService']=_0xa5ed21;}[_0x3022d6(0xbd)](_0x3e28c0){const _0x22d43b=_0x3022d6;var _0x378b22,_0x26a32a,_0x13d21b;const _0x191cad=this[_0x22d43b(0x123)]['get'](p['SheetsSelectionsService']),{unitId:_0x401365,subUnitId:_0x2e921e}=bs(_0x3e28c0),_0x4c276d=_0x191cad[_0x22d43b(0x185)](_0x401365)[_0x22d43b(0xbe)]();if(_0x4c276d[_0x22d43b(0x2ce)]===0x0||!_0x401365||!_0x2e921e)return;const _0x2537b1=[{'id':p['SetSelectionsOperation']['id'],'params':{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':o[_0x22d43b(0x418)][_0x22d43b(0x201)](_0x4c276d)}}],_0x3cf102=this[_0x22d43b(0x223)][_0x22d43b(0x375)](_0x3e28c0,_0x2537b1);if(!_[_0x22d43b(0x10c)](_0x3cf102))throw _0x3cf102[_0x22d43b(0x404)];const _0x49136e=(_0x13d21b=(_0x26a32a=(_0x378b22=_0x3cf102[_0x22d43b(0x469)][0x0])==null?void 0x0:_0x378b22['params'])==null?void 0x0:_0x26a32a[_0x22d43b(0x2e7)])!=null?_0x13d21b:_0x4c276d;Array[_0x22d43b(0x3a1)](_0x49136e)&&_0x49136e[_0x22d43b(0x2ce)]&&this[_0x22d43b(0x123)][_0x22d43b(0x84)](o['ICommandService'])['executeCommand'](p[_0x22d43b(0x231)]['id'],{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':_0x49136e});}};ge=Cs([et(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x3022d6(0x3d5)]['id']]);function tt(_0x26f792,_0x512bff,_0x37be72,_0x4ca68f,_0x1646e2){const _0x583edf=_0x3022d6;var _0x4cfa96,_0x412edb,_0x3e8031,_0x4b2f44;const _0x31fdaa=[];for(const _0xc050b6 of _0x26f792)if(Ts[_0x583edf(0x151)](_0xc050b6['id'])){if(_0x31fdaa[_0x583edf(0x2ce)]>0x0)break;_0x31fdaa[_0x583edf(0x42d)](_0xc050b6);break;}else _0x31fdaa[_0x583edf(0x42d)](_0xc050b6);const _0x5675fd=(_0x412edb=(_0x4cfa96=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x4cfa96[_0x583edf(0x81)])!=null?_0x412edb:'unknown',_0x2beb24=(_0x4b2f44=(_0x3e8031=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x3e8031[_0x583edf(0x36f)])!=null?_0x4b2f44:_0x583edf(0x2ad);return{'changeset':{'unitID':_0x512bff,'type':_[_0x583edf(0x3c4)](_0x37be72['getUnitType'](_0x512bff)),'baseRev':_0x4ca68f[_0x583edf(0x33a)](_0x512bff),'revision':0x0,'userID':_0x5675fd,'memberID':_0x2beb24,'mutations':_0x31fdaa},'pendingMutations':_0x26f792[_0x583edf(0x21e)](_0x31fdaa[_0x583edf(0x2ce)])};}function Rs(_0xf1d120,_0x3cc37e,_0x222102,_0x419f99,_0x44873a){const _0x49c1c9=_0x3022d6;var _0x163447,_0x2bd26b,_0x3a52cd,_0x472e3a;const _0x1f5291=[_0xf1d120[_0x49c1c9(0xb0)]((_0x6f6420,_0x278660)=>{const _0x5998c1=_0x49c1c9;var _0x3a02a7;const {id:_0x19d1c7}=_0x6f6420,{id:_0x3d8e02,type:_0x3cda21}=_0x278660,_0x5cabbf=(_0x3a02a7=_0x6f6420[_0x5998c1(0xd7)])!=null?_0x3a02a7:{'actions':null},_0x3e48d1=_0x278660[_0x5998c1(0xd7)];if(_0x19d1c7&&_0x19d1c7!==_0x3d8e02)throw new Error(_0x5998c1(0x333)+_0x19d1c7+'\x20-\x20'+_0x3d8e02+'.');return{..._0x6f6420,'id':_0x3d8e02,'type':_0x3cda21,'params':{'unitId':_0x3e48d1[_0x5998c1(0x347)],'textRanges':_0x3e48d1[_0x5998c1(0x134)],'actions':o[_0x5998c1(0x30c)]['compose'](_0x5cabbf[_0x5998c1(0x2d6)],_0x3e48d1['actions'])}};},{})],_0x3d061a=(_0x2bd26b=(_0x163447=_0x44873a[_0x49c1c9(0x129)]())==null?void 0x0:_0x163447[_0x49c1c9(0x81)])!=null?_0x2bd26b:'unknown',_0x1ddd84=(_0x472e3a=(_0x3a52cd=_0x44873a['getCurrentUser']())==null?void 0x0:_0x3a52cd['memberID'])!=null?_0x472e3a:'unknown';return{'changeset':{'unitID':_0x3cc37e,'type':_[_0x49c1c9(0x3c4)](_0x222102[_0x49c1c9(0x110)](_0x3cc37e)),'baseRev':_0x419f99[_0x49c1c9(0x33a)](_0x3cc37e),'revision':0x0,'userID':_0x3d061a,'memberID':_0x1ddd84,'mutations':_0x1f5291},'pendingMutations':[]};}const Os={'id':p[_0x3022d6(0x3f8)]['id'],'type':o[_0x3022d6(0x2c5)]['MUTATION'],'params':{}};var Ds=Object[_0x3022d6(0x131)],Ps=Object[_0x3022d6(0x2b4)],K=(_0x1d63e7,_0x4a8ea0,_0x2cd564,_0x162116)=>{const _0x5c0593=_0x3022d6;for(var _0x28402f=_0x162116>0x1?void 0x0:_0x162116?Ps(_0x4a8ea0,_0x2cd564):_0x4a8ea0,_0x3b6618=_0x1d63e7[_0x5c0593(0x2ce)]-0x1,_0x219653;_0x3b6618>=0x0;_0x3b6618--)(_0x219653=_0x1d63e7[_0x3b6618])&&(_0x28402f=(_0x162116?_0x219653(_0x4a8ea0,_0x2cd564,_0x28402f):_0x219653(_0x28402f))||_0x28402f);return _0x162116&&_0x28402f&&Ds(_0x4a8ea0,_0x2cd564,_0x28402f),_0x28402f;},m=(_0x31e4b6,_0xda1eb5)=>(_0x934e15,_0x1208ae)=>_0xda1eb5(_0x934e15,_0x1208ae,_0x31e4b6),D=(_0x4e40a3=>(_0x4e40a3[_0x3022d6(0x463)]=_0x3022d6(0x159),_0x4e40a3[_0x3022d6(0xf8)]='synced',_0x4e40a3[_0x3022d6(0x270)]=_0x3022d6(0x1ed),_0x4e40a3[_0x3022d6(0x1d0)]=_0x3022d6(0x450),_0x4e40a3['AWAITING_WITH_PENDING']=_0x3022d6(0x3f0),_0x4e40a3[_0x3022d6(0x1d2)]='fetch_missing',_0x4e40a3['CONFLICT']=_0x3022d6(0x3a0),_0x4e40a3[_0x3022d6(0x316)]=_0x3022d6(0x3b3),_0x4e40a3))(D||{});class X{constructor(_0x54a8a9,_0x95156f,_0x573774,_0x50f8fe,_0x1ea378,_0x4ee12a,_0x40f900,_0x1b71b5,_0x2b42d9){const _0x548d79=_0x3022d6;u(this,_0x548d79(0x3e3),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x54a8a9,this[_0x548d79(0x1f3)]=_0x95156f,this[_0x548d79(0x3ce)]=_0x1ea378,this[_0x548d79(0x467)]=_0x4ee12a,this['_undoRedoService']=_0x40f900,this[_0x548d79(0x254)]=_0x1b71b5,this['_localCacheService']=_0x2b42d9,this['_awaitingChangeset']=_0x573774,this[_0x548d79(0x229)]=_0x50f8fe);}[_0x3022d6(0x1ef)](_0x46f82d){const _0x2725e8=_0x3022d6,_0x10f1e2=this[_0x2725e8(0x254)][_0x2725e8(0x33a)](this[_0x2725e8(0x367)]);return _0x46f82d[_0x2725e8(0x33d)]>_0x10f1e2+0x1?(this['_handler'][_0x2725e8(0x2b0)]({'from':_0x10f1e2,'to':_0x46f82d[_0x2725e8(0x33d)]-0x1}),!0x0):!0x1;}[_0x3022d6(0x241)](_0x4a0822){const _0x1e83ac=_0x3022d6;this[_0x1e83ac(0x42c)]['transformUndoRedo'](this['unitID'],_0x4a0822);}['_transformSelections'](_0x1bf423){const _0x525d44=_0x3022d6;var _0x4e462f,_0x50cd91;(_0x50cd91=(_0x4e462f=this[_0x525d44(0x3ce)])[_0x525d44(0x118)])==null||_0x50cd91[_0x525d44(0x422)](_0x4e462f,_0x1bf423);}[_0x3022d6(0x3de)](_0x416d2c){const _0x3ca126=_0x3022d6;var _0x15490d,_0x32a163;return(_0x32a163=(_0x15490d=this[_0x3ca126(0x3ce)])['onTransformIME'])==null?void 0x0:_0x32a163['call'](_0x15490d,_0x416d2c);}['_transformRemoteChangesetByIMECache'](_0x2cbc1e){const _0x53de4b=_0x3022d6;var _0x1f26c9,_0x4d63e8,_0x192ba9;return(_0x192ba9=(_0x4d63e8=(_0x1f26c9=this[_0x53de4b(0x3ce)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4d63e8[_0x53de4b(0x422)](_0x1f26c9,_0x2cbc1e))!=null?_0x192ba9:_0x2cbc1e;}['_syncEditingCollabCursor'](_0x28fd6e){const _0x423166=_0x3022d6;var _0x576b23,_0x1b160f;if(this[_0x423166(0x1f3)]===j[_0x423166(0x237)]){const {unitID:_0x4c5925,mutations:_0x7880ca,memberID:_0x3ac3d0}=_0x28fd6e,_0x496e7a=_0x7880ca[0x0][_0x423166(0xd7)][_0x423166(0x134)];Array['isArray'](_0x496e7a)&&_0x496e7a[_0x423166(0x2ce)]>0x0&&((_0x1b160f=(_0x576b23=this[_0x423166(0x3ce)])['onSyncEditingCollabCursor'])==null||_0x1b160f[_0x423166(0x422)](_0x576b23,{'unitID':_0x4c5925,'memberID':_0x3ac3d0,'textRanges':_0x496e7a}));}}[_0x3022d6(0x34d)](){const _0x9ec650=_0x3022d6;this[_0x9ec650(0x3ea)][_0x9ec650(0xbb)](this[_0x9ec650(0x367)],this[_0x9ec650(0x1f3)],this[_0x9ec650(0x3e3)],this[_0x9ec650(0x229)]);}[_0x3022d6(0x2e2)](){const _0x4ea688=_0x3022d6;return this[_0x4ea688(0x254)][_0x4ea688(0x33a)](this[_0x4ea688(0x367)]);}[_0x3022d6(0x3ad)](){const _0x355d68=_0x3022d6;this[_0x355d68(0x254)]['incrementRevForDocument'](this['unitID']);}[_0x3022d6(0x415)](_0x1e4ca3){const _0x24f1d0=_0x3022d6;var _0x192910;const _0x2ee049=this[_0x24f1d0(0x158)](_0x1e4ca3),_0x2aecaa=o['sequenceExecute'](_0x2ee049[_0x24f1d0(0x2a5)],this[_0x24f1d0(0x467)],{'fromCollab':!0x0});if(!_0x2aecaa[_0x24f1d0(0x3c5)])throw _0x2aecaa[_0x24f1d0(0x404)]instanceof Error?_0x2aecaa[_0x24f1d0(0x404)]:new Error((_0x192910=_0x2aecaa['error'])!=null?_0x192910:_0x24f1d0(0x217));this[_0x24f1d0(0x3de)](_0x2ee049),this['_transformUndoredo'](_0x1e4ca3),this[_0x24f1d0(0xdd)](_0x2ee049),this[_0x24f1d0(0x3c1)](_0x2ee049),this[_0x24f1d0(0x3ad)]();}}let ce=class extends X{constructor(_0x1180ec,_0xa8c4a4,_0xe87f20,_0x2fc83b,_0x418408,_0x350184,_0x3af90f,_0x3d4bde,_0x1feb46,_0x490b7b){const _0x56cafd=_0x3022d6;super(_0x1180ec,_0xa8c4a4,null,[],_0xe87f20,_0x3d4bde,_0x3af90f,_0x2fc83b,_0x418408),u(this,_0x56cafd(0x15b),'synced'),(this[_0x56cafd(0x123)]=_0x350184,this[_0x56cafd(0x38b)]=_0x1feb46,this[_0x56cafd(0x223)]=_0x490b7b);}[_0x3022d6(0x39c)](_0x16fffe){const _0x30fbf6=_0x3022d6,_0x43ae5c=this[_0x30fbf6(0x123)][_0x30fbf6(0x89)]($,this[_0x30fbf6(0x367)],this[_0x30fbf6(0x1f3)],[_0x16fffe],this[_0x30fbf6(0x3ce)]);return _0x43ae5c[_0x30fbf6(0x455)](),_0x43ae5c['_updateLocalCache'](),_0x43ae5c;}['onRemoteChangeset'](_0x129711){const _0x18e7a9=_0x3022d6;if(this[_0x18e7a9(0x1ef)](_0x129711))return this[_0x18e7a9(0x123)][_0x18e7a9(0x89)](H,this[_0x18e7a9(0x367)],this[_0x18e7a9(0x1f3)],null,[],null,[_0x129711],this['_handler']);try{const _0x3811c4=this['_transformService'][_0x18e7a9(0x375)](_0x129711,[Os]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3811c4)){const {c1Prime:_0x567e85}=_0x3811c4;return this[_0x18e7a9(0x415)](_0x567e85),this;}throw _0x3811c4[_0x18e7a9(0x404)];}catch(_0x483141){return this[_0x18e7a9(0x38b)][_0x18e7a9(0x404)](_0x483141),this[_0x18e7a9(0x24f)](!0x1);}}[_0x3022d6(0x24f)](_0x3ef64d){const _0xa6a591=_0x3022d6;return this[_0xa6a591(0x123)][_0xa6a591(0x89)](B,this['unitID'],this[_0xa6a591(0x1f3)],null,[],this[_0xa6a591(0x3ce)],_0x3ef64d);}[_0x3022d6(0xc1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3022d6(0x19d)](){const _0x11c763=_0x3022d6;throw new Error(_0x11c763(0x389));}[_0x3022d6(0x2b5)](){const _0x5b8f59=_0x3022d6;return this[_0x5b8f59(0x123)]['createInstance'](V,this[_0x5b8f59(0x367)],this[_0x5b8f59(0x1f3)],null,[],this[_0x5b8f59(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x4,o[_0x3022d6(0x291)](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x3022d6(0x448)])),m(0x6,o['IUndoRedoService']),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o['ILogService']),m(0x9,_['ITransformService'])],ce);let $=class extends X{constructor(_0x478f5c,_0x10b3d6,_0x47898d,_0x3e15d6,_0x518de2,_0x5f3629,_0x35a3bb,_0x15d241,_0x5858cd,_0x55d847,_0x1ebb08,_0x471be0,_0x9c612b,_0x35809f){const _0x1f6cf2=_0x3022d6;super(_0x478f5c,_0x10b3d6,null,_0x47898d,_0x3e15d6,_0x55d847,_0x35809f,_0x5f3629,_0x35a3bb),u(this,_0x1f6cf2(0x15b),_0x1f6cf2(0x1ed)),u(this,_0x1f6cf2(0x3cf),null),u(this,_0x1f6cf2(0x1f4),null),(this[_0x1f6cf2(0x123)]=_0x518de2,this[_0x1f6cf2(0x16b)]=_0x15d241,this[_0x1f6cf2(0x38b)]=_0x5858cd,this[_0x1f6cf2(0xee)]=_0x1ebb08,this[_0x1f6cf2(0x223)]=_0x471be0,this[_0x1f6cf2(0x17c)]=_0x9c612b);}[_0x3022d6(0x39c)](_0x3a8743){const _0x35ce8f=_0x3022d6;return this[_0x35ce8f(0x229)]['push'](_0x3a8743),this[_0x35ce8f(0x34d)](),this;}[_0x3022d6(0x138)](_0x30945e){const _0x37f1db=_0x3022d6;if(this[_0x37f1db(0x1ef)](_0x30945e))return this[_0x37f1db(0x2e6)](),this[_0x37f1db(0x123)][_0x37f1db(0x89)](H,this[_0x37f1db(0x367)],this['type'],null,this[_0x37f1db(0x229)],null,[_0x30945e],this[_0x37f1db(0x3ce)]);try{const _0x1cb749=this['_transformService'][_0x37f1db(0x375)](_0x30945e,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x1cb749)){const {c1Prime:_0x24c5f2,m2Prime:_0x1dc9a1}=_0x1cb749;this[_0x37f1db(0x415)](_0x24c5f2);const _0x1b7363=this[_0x37f1db(0x123)][_0x37f1db(0x89)]($,this[_0x37f1db(0x367)],this[_0x37f1db(0x1f3)],_0x1dc9a1,this[_0x37f1db(0x3ce)]);return this['_clearScheduledTask'](),_0x1b7363['_schedule'](this[_0x37f1db(0x3cf)]?Math['max'](0x0,new Date()[_0x37f1db(0x1fd)]()-this[_0x37f1db(0x3cf)]):this[_0x37f1db(0x250)]()),_0x1b7363;}throw _0x1cb749[_0x37f1db(0x404)];}catch(_0x3b6761){return this[_0x37f1db(0x38b)][_0x37f1db(0x404)](_0x3b6761),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](){const _0x600518=_0x3022d6;throw new Error(_0x600518(0x1f5));}[_0x3022d6(0x19d)](){const _0x4586c4=_0x3022d6;throw new Error(_0x4586c4(0x14b));}[_0x3022d6(0x2b5)](){const _0x2e2cc3=_0x3022d6;return this['_clearScheduledTask'](),this['_injector'][_0x2e2cc3(0x89)](V,this[_0x2e2cc3(0x367)],this[_0x2e2cc3(0x1f3)],null,this['_pendingMutations'],this[_0x2e2cc3(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x455)](_0x237c9f){const _0x1ed62a=_0x3022d6;_0x237c9f=_0x237c9f!=null?_0x237c9f:this[_0x1ed62a(0x250)](),this[_0x1ed62a(0x3cf)]=new Date()[_0x1ed62a(0x1fd)](),this[_0x1ed62a(0x1f4)]=setTimeout(()=>{const _0x573e65=_0x1ed62a;this[_0x573e65(0x2e6)]();let _0x58c62a=null;switch(this[_0x573e65(0x1f3)]){case j['UNIVER_SHEET']:{_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}case j[_0x573e65(0x237)]:{this['_pendingMutations']['every'](_0x389115=>_0x389115['id']===P[_0x573e65(0x365)]['id'])?_0x58c62a=Rs(this['_pendingMutations'],this[_0x573e65(0x367)],this[_0x573e65(0x17c)],this[_0x573e65(0x254)],this['_memberService']):_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x573e65(0x461)+this['type']+_0x573e65(0x43d));}const {changeset:_0x39519a,pendingMutations:_0x36d424}=_0x58c62a;this[_0x573e65(0x3ce)]['onSendChangeset'](_0x39519a);const _0x463500=_0x36d424[_0x573e65(0x2ce)]?this[_0x573e65(0x123)][_0x573e65(0x89)](x,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,_0x36d424,this[_0x573e65(0x3ce)]):this[_0x573e65(0x123)]['createInstance'](k,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,this[_0x573e65(0x3ce)]);_0x463500[_0x573e65(0x34d)](),this[_0x573e65(0x3ce)][_0x573e65(0x218)](this,_0x463500);},_0x237c9f);}['_getSendChangesetTimeout'](){const _0xdd0fd2=_0x3022d6;var _0x58d8b1;return(_0x58d8b1=this['_configService'][_0xdd0fd2(0x1bd)](ht))!=null?_0x58d8b1:Wt;}[_0x3022d6(0x40f)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3022d6(0x2e6)](){const _0x1bcda4=_0x3022d6;this[_0x1bcda4(0x1f4)]!=null&&(clearTimeout(this[_0x1bcda4(0x1f4)]),this[_0x1bcda4(0x1f4)]=null);}[_0x3022d6(0x24f)](_0x305875){const _0x3857cc=_0x3022d6;return this[_0x3857cc(0x2e6)](),this[_0x3857cc(0x123)]['createInstance'](B,this['unitID'],this[_0x3857cc(0x1f3)],null,this[_0x3857cc(0x229)],this[_0x3857cc(0x3ce)],_0x305875);}};$=K([m(0x4,o[_0x3022d6(0x291)](o['Injector'])),m(0x5,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o[_0x3022d6(0x291)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x3022d6(0x3e6)]),m(0xa,o[_0x3022d6(0x3be)]),m(0xb,_[_0x3022d6(0x1d1)]),m(0xc,o[_0x3022d6(0xb8)]),m(0xd,o[_0x3022d6(0x114)])],$);let k=class extends X{constructor(_0xad95d0,_0x58fb5e,_0x378de6,_0x2f0da1,_0x559c0e,_0x5e33a4,_0x4947fb,_0x19e90c,_0x52b65f,_0x57e926,_0x1ecf7e){const _0x3afb07=_0x3022d6;super(_0xad95d0,_0x58fb5e,_0x378de6,[],_0x2f0da1,_0x19e90c,_0x1ecf7e,_0x5e33a4,_0x4947fb),u(this,'status',_0x3afb07(0x450)),(this[_0x3afb07(0x123)]=_0x559c0e,this[_0x3afb07(0x38b)]=_0x52b65f,this[_0x3afb07(0x223)]=_0x57e926);}[_0x3022d6(0x39c)](_0x5ee04f){const _0xbb817d=_0x3022d6,_0x38baf3=this[_0xbb817d(0x123)][_0xbb817d(0x89)](x,this['unitID'],this[_0xbb817d(0x1f3)],this['_awaitingChangeset'],[_0x5ee04f],this[_0xbb817d(0x3ce)]);return _0x38baf3[_0xbb817d(0x34d)](),_0x38baf3;}[_0x3022d6(0x138)](_0x328b73){const _0x5c2a96=_0x3022d6;if(this[_0x5c2a96(0x1ef)](_0x328b73))return this[_0x5c2a96(0x123)][_0x5c2a96(0x89)](H,this['unitID'],this[_0x5c2a96(0x1f3)],this[_0x5c2a96(0x3e3)],[],null,[_0x328b73],this[_0x5c2a96(0x3ce)]);try{const _0x4dbc67=this[_0x5c2a96(0x223)][_0x5c2a96(0x232)]([_0x328b73],[this[_0x5c2a96(0x3e3)]],!0x1);if(_[_0x5c2a96(0x2cf)](_0x4dbc67)){const {c1Prime:_0x3a578b,c2Prime:_0xd399ee}=_0x4dbc67;this[_0x5c2a96(0x415)](_0x3a578b[0x0]),_0xd399ee[0x0][_0x5c2a96(0x1da)]=this['_getCurrentRevision']();const _0x3031c6=this[_0x5c2a96(0x123)]['createInstance'](k,this['unitID'],this['type'],_0xd399ee[0x0],this[_0x5c2a96(0x3ce)]);return _0x3031c6[_0x5c2a96(0x34d)](),_0x3031c6;}return this[_0x5c2a96(0x24f)](!0x1);}catch(_0xe14102){return this[_0x5c2a96(0x38b)][_0x5c2a96(0x404)](_0xe14102),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xac73c0){const _0x17c96d=_0x3022d6,_0x12a54d=this[_0x17c96d(0x254)][_0x17c96d(0x33a)](this['unitID']);if(_0xac73c0[_0x17c96d(0x33d)]<_0x12a54d-0x1)return this;if(this[_0x17c96d(0x1ef)](_0xac73c0))return this['_injector'][_0x17c96d(0x89)](H,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],null,[],this[_0x17c96d(0x3e3)],[],this['_handler']);this[_0x17c96d(0x3ad)]();const _0x512f1e=this['_injector'][_0x17c96d(0x89)](ce,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],this[_0x17c96d(0x3ce)]);return _0x512f1e[_0x17c96d(0x34d)](),_0x512f1e;}['onRemoteRej'](_0x4b5783){const _0x1cb382=_0x3022d6;return this[_0x1cb382(0x24f)](!!(_0x4b5783!=null&&_0x4b5783['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x481c94=_0x3022d6;return this[_0x481c94(0x123)][_0x481c94(0x89)](V,this[_0x481c94(0x367)],this[_0x481c94(0x1f3)],this[_0x481c94(0x3e3)],[],this['_handler']);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x12cf20=_0x3022d6;this[_0x12cf20(0x3ce)]['onSendChangeset'](this[_0x12cf20(0x3e3)]);}[_0x3022d6(0x24f)](_0x4509b6){const _0x43c488=_0x3022d6;return this['_injector'][_0x43c488(0x89)](B,this['unitID'],this[_0x43c488(0x1f3)],this[_0x43c488(0x3e3)],[],this['_handler'],_0x4509b6);}};k=K([m(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x5,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o['ICommandService']),m(0x8,o[_0x3022d6(0x22f)]),m(0x9,_[_0x3022d6(0x1d1)]),m(0xa,o[_0x3022d6(0x114)])],k);let x=class extends X{constructor(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0xd9fb39,_0xc48921,_0x3fad45,_0x1565a0,_0x38b790,_0x22af90,_0x4376a8){const _0x4f6979=_0x3022d6;super(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0x1565a0,_0x4376a8,_0xc48921,_0x3fad45),u(this,_0x4f6979(0x15b),_0x4f6979(0x3f0)),(this[_0x4f6979(0x123)]=_0xd9fb39,this[_0x4f6979(0x38b)]=_0x38b790,this[_0x4f6979(0x223)]=_0x22af90);}[_0x3022d6(0x39c)](_0x36cd02){const _0x5ee7e1=_0x3022d6;return this[_0x5ee7e1(0x229)][_0x5ee7e1(0x42d)](_0x36cd02),this;}[_0x3022d6(0x138)](_0x5f318b){const _0x4988d8=_0x3022d6;if(this['_checkMissing'](_0x5f318b))return this[_0x4988d8(0x123)][_0x4988d8(0x89)](H,this[_0x4988d8(0x367)],this[_0x4988d8(0x1f3)],this[_0x4988d8(0x3e3)],this[_0x4988d8(0x229)],null,[_0x5f318b],this[_0x4988d8(0x3ce)]);try{const _0x14c260=this['_transformService'][_0x4988d8(0x232)]([_0x5f318b],[this[_0x4988d8(0x3e3)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x14c260)){const {c1Prime:_0x3254cc,c2Prime:_0x4ead3a}=_0x14c260,_0x1fc8ee=this[_0x4988d8(0x223)][_0x4988d8(0x375)](_0x3254cc[0x0],this[_0x4988d8(0x229)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1fc8ee)){const {c1Prime:_0x2ae596,m2Prime:_0x1b45cf}=_0x1fc8ee;return this['_executeRemoteChangeset'](_0x2ae596),_0x4ead3a[0x0]['baseRev']=this[_0x4988d8(0x2e2)](),this[_0x4988d8(0x123)][_0x4988d8(0x89)](x,this['unitID'],this[_0x4988d8(0x1f3)],_0x4ead3a[0x0],_0x1b45cf,this[_0x4988d8(0x3ce)]);}throw _0x1fc8ee[_0x4988d8(0x404)];}throw _0x14c260[_0x4988d8(0x404)];}catch(_0x49480d){return this[_0x4988d8(0x38b)][_0x4988d8(0x404)](_0x49480d),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xbb7b49){const _0x318a76=_0x3022d6;if(this[_0x318a76(0x1ef)](_0xbb7b49))return this[_0x318a76(0x123)][_0x318a76(0x89)](H,this[_0x318a76(0x367)],this[_0x318a76(0x1f3)],null,this['_pendingMutations'],this[_0x318a76(0x3e3)],[],this[_0x318a76(0x3ce)]);this[_0x318a76(0x3ad)]();const _0xd33353=this[_0x318a76(0x123)][_0x318a76(0x89)]($,this[_0x318a76(0x367)],this['type'],this[_0x318a76(0x229)],this['_handler']);return _0xd33353[_0x318a76(0x455)](),_0xd33353[_0x318a76(0x34d)](),_0xd33353;}[_0x3022d6(0x19d)](_0x46c4e8){const _0x54c51b=_0x3022d6;return this[_0x54c51b(0x24f)](!!(_0x46c4e8!=null&&_0x46c4e8[_0x54c51b(0x278)]));}[_0x3022d6(0x2b5)](){const _0x12a183=_0x3022d6;return this[_0x12a183(0x123)][_0x12a183(0x89)](V,this[_0x12a183(0x367)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x12a183(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x1954c3=_0x3022d6;this[_0x1954c3(0x3ce)][_0x1954c3(0x3f5)](this[_0x1954c3(0x3e3)]);}[_0x3022d6(0x24f)](_0x537625){const _0x44e703=_0x3022d6;return this[_0x44e703(0x123)]['createInstance'](B,this[_0x44e703(0x367)],this[_0x44e703(0x1f3)],null,this[_0x44e703(0x229)],this[_0x44e703(0x3ce)],_0x537625);}};x=K([m(0x5,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x6,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o['ICommandService']),m(0x9,o[_0x3022d6(0x22f)]),m(0xa,_[_0x3022d6(0x1d1)]),m(0xb,o[_0x3022d6(0x114)])],x);let B=class extends X{constructor(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x535609=!0x1,_0x2f1e76,_0x45a94f,_0x2e285d,_0x53d8a4,_0x42897a,_0x299b53,_0x53643b){const _0x61b990=_0x3022d6;super(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x45a94f,_0x2e285d,_0x42897a,_0x53d8a4),u(this,_0x61b990(0x15b),_0x61b990(0x3a0)),(this['_isPermissionRej']=_0x535609,this[_0x61b990(0x3a2)]=_0x2f1e76,this[_0x61b990(0x3b1)]=_0x299b53,this['_notificationService']=_0x53643b,this[_0x61b990(0x41d)](),this['_clearLocalCache'](),this[_0x61b990(0x3e9)]());}[_0x3022d6(0x39c)](){return this;}[_0x3022d6(0x138)](){return this;}[_0x3022d6(0xc1)](){return this;}[_0x3022d6(0x19d)](){return this;}['toggleOffline'](){return this;}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0xe1508c=_0x3022d6;throw new Error(_0xe1508c(0x191));}[_0x3022d6(0x8d)](){const _0x3b4916=_0x3022d6;this[_0x3b4916(0x3ea)][_0x3b4916(0xbb)](this[_0x3b4916(0x367)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5c7229=_0x3022d6;this[_0x5c7229(0x2cb)]?this[_0x5c7229(0x2d1)][_0x5c7229(0x1d3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0xb5)),'type':'error','duration':0x0}):this['_notificationService'][_0x5c7229(0x1d3)]({'title':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0x437)),'content':this['_localeService']['t'](_0x5c7229(0x2a7)),'type':_0x5c7229(0x404),'duration':0x0});}['_disableEditing'](){this['_permissionService']['updatePermissionPoint'](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x3022d6(0x346)])),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o[_0x3022d6(0x114)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x3022d6(0x291)](o['LocaleService'])),m(0xc,L[_0x3022d6(0xfd)])],B);let V=class extends X{constructor(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x5003bf,_0x142410,_0x59ee06,_0x295e3a,_0x47503a){const _0x112d35=_0x3022d6;super(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x295e3a,_0x47503a,_0x142410,_0x59ee06),u(this,'status',_0x112d35(0x3b3)),this['_injector']=_0x5003bf;}[_0x3022d6(0x39c)](_0x3d0251){const _0x57749a=_0x3022d6;return this[_0x57749a(0x229)][_0x57749a(0x42d)](_0x3d0251),this[_0x57749a(0x34d)](),this;}['onRemoteChangeset'](_0x1571aa){const _0x46ad6b=_0x3022d6;throw new Error(_0x46ad6b(0x3f6));}[_0x3022d6(0xc1)](){const _0x5d4e27=_0x3022d6;throw new Error(_0x5d4e27(0x41f));}[_0x3022d6(0x19d)](){const _0x485344=_0x3022d6;throw new Error(_0x485344(0x339));}[_0x3022d6(0x2b5)](){return this;}[_0x3022d6(0xbf)](){const {_injector:_0x4afdcc,_pendingMutations:_0xbc93e8,_awaitingChangeset:_0x43e856,unitID:_0x49259e,_handler:_0x33b0a9,type:_0x29f261}=this,_0x346bb5=Tt(_0x4afdcc,_0x49259e,_0x29f261,_0x43e856,_0xbc93e8,_0x33b0a9);return _0x346bb5 instanceof $?_0x346bb5['_schedule']():(_0x346bb5 instanceof x||_0x346bb5 instanceof k)&&_0x346bb5['resend'](),_0x346bb5;}['resend'](){const _0x19b740=_0x3022d6;throw new Error(_0x19b740(0x12e));}};V=K([m(0x5,o[_0x3022d6(0x291)](o['Injector'])),m(0x6,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o[_0x3022d6(0x3e6)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x3069eb,_0x4e0ac0,_0x134033,_0x49330e,_0xd6f547,_0x7a70da,_0x325cf5,_0x14a2e2,_0x1f0776,_0x262250){const _0x110326=_0x3022d6;super(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x134033,_0x14a2e2,_0x1f0776,_0xd6f547,_0x7a70da),u(this,_0x110326(0x15b),_0x110326(0x28f)),(this['_acknowledgedAwaitingChangeset']=_0x3069eb,this[_0x110326(0x139)]=_0x4e0ac0,this[_0x110326(0x123)]=_0x49330e,this['_logService']=_0x325cf5,this['_transformService']=_0x262250);}['onMissedChangesetFetched'](_0x301a93){const _0x5b6c7f=_0x3022d6;try{const _0x1f496b=[..._0x301a93,...this[_0x5b6c7f(0x139)]],_0x566b5a=[this['_awaitingChangeset']||this[_0x5b6c7f(0xc2)]][_0x5b6c7f(0x1c0)](_0x1c938c=>!!_0x1c938c);let _0x5248cf,_0x450724;if(_0x566b5a[_0x5b6c7f(0x2ce)]){const _0x336cb4=this[_0x5b6c7f(0x223)][_0x5b6c7f(0x232)](_0x1f496b,_0x566b5a,!0x1);if(!_[_0x5b6c7f(0x2cf)](_0x336cb4))throw _0x336cb4[_0x5b6c7f(0x404)];_0x5248cf=_0x336cb4[_0x5b6c7f(0x3c6)],_0x450724=_0x336cb4[_0x5b6c7f(0x41a)];}else _0x5248cf=_0x1f496b,_0x450724=[];let _0x5693b1=this[_0x5b6c7f(0x229)];_0x5248cf[_0x5b6c7f(0x3d3)](_0xa167e9=>{const _0x3deceb=_0x5b6c7f;let _0x33cec9;if(_0x5693b1[_0x3deceb(0x2ce)]){const _0x5eee7f=this[_0x3deceb(0x223)][_0x3deceb(0x375)](_0xa167e9,_0x5693b1);if(!_[_0x3deceb(0x10c)](_0x5eee7f))throw _0x5eee7f[_0x3deceb(0x404)];_0x33cec9=_0x5eee7f[_0x3deceb(0x3c6)],_0x5693b1=_0x5eee7f[_0x3deceb(0x469)];}else _0x33cec9=_0xa167e9;this[_0x3deceb(0x415)](_0x33cec9);}),this[_0x5b6c7f(0xc2)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x450724[_0x5b6c7f(0x2ce)]&&(_0x450724[0x0][_0x5b6c7f(0x1da)]=this['_getCurrentRevision']());let _0x1a3fba;if(this['_awaitingChangeset']&&_0x5693b1['length']!==0x0)_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](x,this[_0x5b6c7f(0x367)],this['type'],_0x450724[0x0],_0x5693b1,this[_0x5b6c7f(0x3ce)]);else{if(this[_0x5b6c7f(0x3e3)]&&_0x5693b1['length']===0x0)_0x450724[0x0][_0x5b6c7f(0x1da)]=this[_0x5b6c7f(0x2e2)](),_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](k,this['unitID'],this[_0x5b6c7f(0x1f3)],_0x450724[0x0],this['_handler']);else{if(_0x5693b1[_0x5b6c7f(0x2ce)]!==0x0){const _0x6ca3ce=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)]($,this['unitID'],this['type'],_0x5693b1,this[_0x5b6c7f(0x3ce)]);_0x6ca3ce[_0x5b6c7f(0x455)](),_0x1a3fba=_0x6ca3ce;}else _0x1a3fba=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](ce,this[_0x5b6c7f(0x367)],this['type'],this[_0x5b6c7f(0x3ce)]);}}return _0x1a3fba[_0x5b6c7f(0x34d)](),_0x1a3fba;}catch(_0x1c5a53){return this[_0x5b6c7f(0x38b)][_0x5b6c7f(0x404)](_0x5b6c7f(0x1a3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1c5a53),this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](B,this[_0x5b6c7f(0x367)],this[_0x5b6c7f(0x1f3)],this[_0x5b6c7f(0x3e3)],this[_0x5b6c7f(0x229)],this[_0x5b6c7f(0x3ce)],!0x1);}}[_0x3022d6(0x40f)](){const _0x1cdea1=_0x3022d6;throw new Error(_0x1cdea1(0x204));}['appendMutation'](_0x15c2e1){const _0x370357=_0x3022d6;return this['_pendingMutations'][_0x370357(0x42d)](_0x15c2e1),this;}[_0x3022d6(0x138)](_0x528053){const _0x24f7fb=_0x3022d6;return this[_0x24f7fb(0x139)][_0x24f7fb(0x42d)](_0x528053),this;}[_0x3022d6(0xc1)](_0x2ceca0){const _0x192ac9=_0x3022d6;if(this[_0x192ac9(0x3e3)])return this[_0x192ac9(0xc2)]=this['_awaitingChangeset'],this[_0x192ac9(0x3e3)]=null,this;throw new Error(_0x192ac9(0xf5));}[_0x3022d6(0x19d)](_0x5bc87f){const _0x4bcf50=_0x3022d6;return this[_0x4bcf50(0x24f)](!!(_0x5bc87f!=null&&_0x5bc87f['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x2ef8df=_0x3022d6;return this[_0x2ef8df(0x123)][_0x2ef8df(0x89)](V,this[_0x2ef8df(0x367)],this[_0x2ef8df(0x1f3)],this[_0x2ef8df(0x3e3)],this[_0x2ef8df(0x229)],this[_0x2ef8df(0x3ce)]);}['toggleOnline'](){return this;}[_0x3022d6(0x24f)](_0xd0fe24){const _0x59135d=_0x3022d6;return this['_injector'][_0x59135d(0x89)](B,this[_0x59135d(0x367)],this[_0x59135d(0x1f3)],this[_0x59135d(0x3e3)],this[_0x59135d(0x229)],this['_handler'],_0xd0fe24);}};H=K([m(0x7,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x8,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x9,o['Inject'](exports[_0x3022d6(0x174)])),m(0xa,o[_0x3022d6(0x22f)]),m(0xb,o['ICommandService']),m(0xc,o[_0x3022d6(0x114)]),m(0xd,_[_0x3022d6(0x1d1)])],H);function Tt(_0x365636,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e){const _0x31b58a=_0x3022d6;return _0x345076&&_0x2a479d[_0x31b58a(0x2ce)]?_0x365636[_0x31b58a(0x89)](x,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e):_0x345076?_0x365636[_0x31b58a(0x89)](k,_0x213eda,_0x519fde,_0x345076,_0x46650e):_0x2a479d['length']?_0x365636['createInstance']($,_0x213eda,_0x519fde,_0x2a479d,_0x46650e):_0x365636[_0x31b58a(0x89)](ce,_0x213eda,_0x519fde,_0x46650e);}var Us=Object[_0x3022d6(0x131)],ws=Object[_0x3022d6(0x2b4)],Ee=(_0x43132f,_0x4cfd39,_0x47ae75,_0x32b9c4)=>{const _0x4d8e18=_0x3022d6;for(var _0x3debec=_0x32b9c4>0x1?void 0x0:_0x32b9c4?ws(_0x4cfd39,_0x47ae75):_0x4cfd39,_0x4d80a7=_0x43132f[_0x4d8e18(0x2ce)]-0x1,_0x59500c;_0x4d80a7>=0x0;_0x4d80a7--)(_0x59500c=_0x43132f[_0x4d80a7])&&(_0x3debec=(_0x32b9c4?_0x59500c(_0x4cfd39,_0x47ae75,_0x3debec):_0x59500c(_0x3debec))||_0x3debec);return _0x32b9c4&&_0x3debec&&Us(_0x4cfd39,_0x47ae75,_0x3debec),_0x3debec;},I=(_0x13dcd9,_0x4ebab0)=>(_0x1c06de,_0x5a8d3e)=>_0x4ebab0(_0x1c06de,_0x5a8d3e,_0x13dcd9);exports['CollaborationController']=class extends o['RxDisposable']{constructor(_0x5e2e76,_0x491d1d,_0x5844e7){const _0xdd5bd2=_0x3022d6;super(),u(this,_0xdd5bd2(0x23d),new Map()),u(this,_0xdd5bd2(0x242),new v[(_0xdd5bd2(0x21b))]()),(this[_0xdd5bd2(0x123)]=_0x5e2e76,this['_collabSessionService']=_0x491d1d,this[_0xdd5bd2(0x17c)]=_0x5844e7,this[_0xdd5bd2(0x11b)]());}[_0x3022d6(0x147)](){const _0x1d1575=_0x3022d6;super[_0x1d1575(0x147)](),this[_0x1d1575(0x23d)][_0x1d1575(0x3d3)](_0x30bbd1=>_0x30bbd1[_0x1d1575(0x147)]()),this['_entities'][_0x1d1575(0xe4)]();}[_0x3022d6(0x18d)](_0x1fc72e){var _0x1442dc;return(_0x1442dc=this['_entities']['get'](_0x1fc72e))!=null?_0x1442dc:null;}[_0x3022d6(0x293)](_0x10637a){const _0x232a25=_0x3022d6,_0x2d920d=this[_0x232a25(0x18d)](_0x10637a);return _0x2d920d?v['of'](_0x2d920d):this[_0x232a25(0x242)][_0x232a25(0x23e)](E[_0x232a25(0x1c0)](_0x23d388=>_0x23d388['unitID']===_0x10637a));}[_0x3022d6(0x11b)](){const _0x449d3c=_0x3022d6;this[_0x449d3c(0x17c)]['getTypeOfUnitAdded$'](o[_0x449d3c(0x23f)][_0x449d3c(0x2c0)])[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']),E['delay'](0x10))[_0x449d3c(0x265)](async _0x4c3865=>{const _0x44dcad=_0x449d3c,_0x5a4465=_0x4c3865[_0x44dcad(0x29c)](),_0x6faeec=await this[_0x44dcad(0x2fd)](_0x5a4465,j[_0x44dcad(0x2c0)]);this[_0x44dcad(0x23d)][_0x44dcad(0x182)](_0x5a4465,_0x6faeec);}),this[_0x449d3c(0x17c)][_0x449d3c(0x2f6)](o[_0x449d3c(0x23f)][_0x449d3c(0x237)])['pipe'](v['takeUntil'](this[_0x449d3c(0x374)]),E[_0x449d3c(0x3eb)](0x10))[_0x449d3c(0x23e)](E[_0x449d3c(0x1c0)](_0x1491ca=>!_0x1491ca[_0x449d3c(0x29c)]()[_0x449d3c(0x1f6)]('__')))['subscribe'](async _0x52a7e9=>{const _0x21fec0=_0x449d3c,_0x4d985b=_0x52a7e9[_0x21fec0(0x29c)](),_0x2c8f21=await this[_0x21fec0(0x2fd)](_0x4d985b,j['UNIVER_DOC']);this[_0x21fec0(0x23d)][_0x21fec0(0x182)](_0x4d985b,_0x2c8f21);}),v['merge'](this['_univerInstanceService'][_0x449d3c(0x3ae)](o[_0x449d3c(0x23f)]['UNIVER_SHEET']),this[_0x449d3c(0x17c)][_0x449d3c(0x3ae)](o['UniverInstanceType'][_0x449d3c(0x237)]))[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']))['subscribe'](_0x17ebd4=>{const _0xf0ffea=_0x449d3c,_0x3bc1b9=_0x17ebd4[_0xf0ffea(0x29c)](),_0x1aaf75=this[_0xf0ffea(0x23d)][_0xf0ffea(0x84)](_0x3bc1b9);_0x1aaf75&&(_0x1aaf75[_0xf0ffea(0x147)](),this[_0xf0ffea(0x23d)][_0xf0ffea(0x1af)](_0x3bc1b9));});}async[_0x3022d6(0x2fd)](_0x41f989,_0x4fea51){const _0x4cddd4=_0x3022d6,_0x3e99df=await this[_0x4cddd4(0x3e2)][_0x4cddd4(0x3b2)](_0x41f989),_0x24a5ec=this[_0x4cddd4(0x123)][_0x4cddd4(0x89)](this[_0x4cddd4(0x352)](_0x4fea51),_0x41f989,_0x4fea51,_0x3e99df);return await _0x24a5ec['init'](),this[_0x4cddd4(0x242)][_0x4cddd4(0x116)](_0x24a5ec),_0x24a5ec;}[_0x3022d6(0x352)](_0x43312c){const _0x2d8253=_0x3022d6;switch(_0x43312c){case j['UNIVER_DOC']:return Ne;case j[_0x2d8253(0x2c0)]:return exports[_0x2d8253(0x3e4)];default:throw new Error(_0x2d8253(0x3a6)+_0x43312c);}}},exports['CollaborationController']=Ee([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x431)]),I(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x1,o[_0x3022d6(0x291)](exports['CollaborationSessionService'])),I(0x2,o[_0x3022d6(0xb8)])],exports[_0x3022d6(0x431)]);let fe=class extends o[_0x3022d6(0x460)]{constructor(_0x2fcf48,_0x36c9ba,_0x2ae391,_0x53e4c4,_0x3752b5,_0x11476b,_0x10fdc6,_0xb585cf,_0xc73805,_0x4722a6,_0xaac408,_0x4850a6,_0xb9699b){const _0x219175=_0x3022d6;super(),u(this,_0x219175(0x439),new v[(_0x219175(0x141))](null)),u(this,_0x219175(0x43b),this[_0x219175(0x439)][_0x219175(0x295)]()),u(this,_0x219175(0x2d5)),u(this,_0x219175(0x39a),!0x1),u(this,_0x219175(0x358),this[_0x219175(0x43b)]['pipe'](E[_0x219175(0x317)](_0x211726=>_0x211726?_0x211726[_0x219175(0x15b)]:D[_0x219175(0x316)]),E[_0x219175(0x3af)](0x1))),u(this,_0x219175(0x42f),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x219175(0x367)]=_0x2fcf48,this['_type']=_0x36c9ba,this[_0x219175(0x1b0)]=_0x2ae391,this[_0x219175(0x123)]=_0x53e4c4,this[_0x219175(0x3ea)]=_0x3752b5,this[_0x219175(0x238)]=_0x11476b,this[_0x219175(0x3b1)]=_0x10fdc6,this[_0x219175(0x254)]=_0xb585cf,this[_0x219175(0x38b)]=_0xc73805,this[_0x219175(0x467)]=_0x4722a6,this[_0x219175(0x38e)]=_0xaac408,this[_0x219175(0x3a2)]=_0x4850a6,this[_0x219175(0x15a)]=_0xb9699b);}get[_0x3022d6(0x3bb)](){return this['_state'];}async['init'](){const _0x1ebd90=_0x3022d6;if(this[_0x1ebd90(0x3bb)])throw new Error(_0x1ebd90(0x312));await this['_init']();}['pauseCollaboration'](){const _0x2b79cb=_0x3022d6;return this[_0x2b79cb(0x39a)]=!0x0,o[_0x2b79cb(0x24c)](()=>{const _0x404824=_0x2b79cb;this[_0x404824(0x39a)]=!0x1,this[_0x404824(0x3cd)]();});}[_0x3022d6(0xfe)](_0x4523e6){const _0x2ce5da=_0x3022d6;this[_0x2ce5da(0x2d5)]=_0x4523e6,this[_0x2ce5da(0x439)][_0x2ce5da(0x116)](_0x4523e6);}async['_init'](){const _0x43f2da=_0x3022d6;var _0x5af108;return this[_0x43f2da(0xfe)](await this[_0x43f2da(0x344)]()),this['_singleActiveUnitService']&&((_0x5af108=this[_0x43f2da(0x15a)])==null||_0x5af108[_0x43f2da(0x313)](this[_0x43f2da(0x367)]),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x15a)][_0x43f2da(0x32e)](this['unitID'])[_0x43f2da(0x265)](_0x44c433=>{const _0x10b895=_0x43f2da;this['_logService'][_0x10b895(0xf9)](_0x10b895(0x3dc),_0x10b895(0x429),_0x44c433),_0x44c433===Ct[_0x10b895(0x2e1)]?(this[_0x10b895(0x38e)]['show']({'content':this[_0x10b895(0x3b1)]['t'](_0x10b895(0x1e6)),'type':Q[_0x10b895(0x1e5)]['Warning']}),this[_0x10b895(0x3a2)][_0x10b895(0x27f)](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x1)):this[_0x10b895(0x3a2)]['updatePermissionPoint'](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x0);})))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x370)][_0x43f2da(0x265)](_0x4ed6b5=>{const _0x542ab1=_0x43f2da;_0x4ed6b5===G[_0x542ab1(0x194)]?this[_0x542ab1(0x30a)]():_0x4ed6b5===G['OFFLINE']&&this[_0x542ab1(0x20b)]();}))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x144)][_0x43f2da(0x265)](_0x1d72de=>{const _0x155acd=_0x43f2da;try{switch(_0x1d72de['eventID']){case _[_0x155acd(0x26c)][_0x155acd(0x310)]:{this[_0x155acd(0x381)](_['parseProtocolChangeset'](_0x1d72de[_0x155acd(0x2be)]));break;}case _[_0x155acd(0x26c)][_0x155acd(0x420)]:{this['_onRemoteACK'](_0x1d72de['data']);break;}case _[_0x155acd(0x26c)][_0x155acd(0x459)]:{this[_0x155acd(0x3e7)]();break;}case _[_0x155acd(0x26c)][_0x155acd(0x127)]:{this[_0x155acd(0x88)](_0x1d72de['data'][_0x155acd(0x183)][_0x155acd(0x317)](_0x393630=>_[_0x155acd(0xe6)](_0x393630)));break;}case _['CollaborationEvent'][_0x155acd(0x12a)]:this[_0x155acd(0x3e7)]({'isPermissionRej':!0x0});}}catch(_0x1a9945){throw console[_0x155acd(0x404)](_0x155acd(0x44a),_0x1a9945),_0x1a9945;}}))),this[_0x43f2da(0x2d5)];}[_0x3022d6(0x2bc)](){const _0x176e7b=_0x3022d6;this[_0x176e7b(0x42f)]=!0x1;}[_0x3022d6(0xec)](){const _0x301c7e=_0x3022d6;if(this[_0x301c7e(0x42f)])throw new Error(_0x301c7e(0x29f));this[_0x301c7e(0x42f)]=!0x0;}[_0x3022d6(0xa4)](_0x4c66c3){const _0x4dcb5b=_0x3022d6;this[_0x4dcb5b(0xec)](),this[_0x4dcb5b(0xfe)](this[_0x4dcb5b(0x2d5)][_0x4dcb5b(0x39c)](_0x4c66c3)),this[_0x4dcb5b(0x2bc)]();}['_onRemoteChangeset'](_0x3ee877){const _0x2829a5=_0x3022d6;if(!(_0x3ee877[_0x2829a5(0x33d)]<=this[_0x2829a5(0x254)][_0x2829a5(0x33a)](this['unitID']))){if(this[_0x2829a5(0x39a)]){this[_0x2829a5(0xa1)][_0x2829a5(0x42d)](_0x3ee877);return;}this[_0x2829a5(0xd5)](_0x3ee877);}}['_exhaustRemoteChangesetQueue'](){const _0x3731a0=_0x3022d6;this[_0x3731a0(0xa1)][_0x3731a0(0x3d3)](_0x239ddf=>this['_applyRemoteChangeset'](_0x239ddf)),this[_0x3731a0(0xa1)]=[];}[_0x3022d6(0xd5)](_0x4f01ec){const _0x241cc6=_0x3022d6,_0x2c2a37=this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x3d2)](this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x35a)]()['COMPRESS_MUTATION_APPLY'])(_0x4f01ec['mutations'],null)||_0x4f01ec['mutations'],_0x5b6ce1={..._0x4f01ec,'mutations':_0x2c2a37};this[_0x241cc6(0xec)](),this[_0x241cc6(0xfe)](this['_state'][_0x241cc6(0x138)](_0x5b6ce1)),this[_0x241cc6(0x2bc)]();}['_onRemoteACK'](_0x538748){const _0x45594f=_0x3022d6;this[_0x45594f(0xec)](),this[_0x45594f(0xfe)](this['_state'][_0x45594f(0xc1)](_0x538748)),this[_0x45594f(0x2bc)]();}[_0x3022d6(0x3e7)](_0x30432c){const _0x297d39=_0x3022d6;this[_0x297d39(0xec)](),this[_0x297d39(0xfe)](this[_0x297d39(0x2d5)]['onRemoteRej'](_0x30432c)),this[_0x297d39(0x2bc)]();}[_0x3022d6(0x88)](_0x432633){const _0x473506=_0x3022d6;if(!(this['_state']instanceof H))throw new TypeError(_0x473506(0x1fb));const _0x56b3a8=_0x432633[_0x473506(0x317)](_0x40751a=>{const _0x4d9300=_0x473506,_0x2ba300=this['_compressMutationService'][_0x4d9300(0x161)][_0x4d9300(0x3d2)](this[_0x4d9300(0x238)][_0x4d9300(0x161)]['getInterceptPoints']()[_0x4d9300(0x9f)])(_0x40751a[_0x4d9300(0x2a5)],null)||_0x40751a[_0x4d9300(0x2a5)];return{..._0x40751a,'mutations':_0x2ba300};});this[_0x473506(0xec)](),this[_0x473506(0xfe)](this[_0x473506(0x2d5)][_0x473506(0x31e)](_0x56b3a8)),this['_unlockTransition']();}[_0x3022d6(0x20b)](){const _0x14a7ea=_0x3022d6;this['_lockTransition'](),this[_0x14a7ea(0xfe)](this[_0x14a7ea(0x2d5)][_0x14a7ea(0x2b5)]()),this[_0x14a7ea(0x2bc)]();}[_0x3022d6(0x30a)](){const _0x542acb=_0x3022d6;this[_0x542acb(0xec)](),this[_0x542acb(0xfe)](this[_0x542acb(0x2d5)][_0x542acb(0xbf)]()),this['_unlockTransition']();}async[_0x3022d6(0x344)](){return new Promise(_0x421371=>{const _0x595c85=_0xbc10;this[_0x595c85(0x1b0)]['sessionStatus$']['pipe'](E[_0x595c85(0x2e9)](0x1))['subscribe'](async _0x4594c6=>{const _0xa18a84=_0x595c85;_0x421371(await this['_createInitialStateImpl'](_0x4594c6===G[_0xa18a84(0x194)]));});});}['_createHandler'](){const _0x1d17a6=this['unitID'];return{'onStateChange':(_0x40fd66,_0x35632b)=>{const _0x44df82=_0xbc10;if(_0x40fd66!==this[_0x44df82(0x2d5)])throw new Error(_0x44df82(0x412)+_0x40fd66[_0x44df82(0x15b)]+'\x0aAfter:\x20'+_0x35632b[_0x44df82(0x15b)]+_0x44df82(0x3cb)+this[_0x44df82(0x2d5)][_0x44df82(0x15b)]);this[_0x44df82(0xfe)](_0x35632b);},'onSendChangeset':_0x1c2eb6=>{const _0x4b5d49=_0xbc10,_0x4c3faa={'eventID':_[_0x4b5d49(0x26c)][_0x4b5d49(0x37d)],'data':{'unitID':_0x1c2eb6[_0x4b5d49(0x367)],'unitType':this['_type'],'changeset':_0x1c2eb6,'memberID':this[_0x4b5d49(0x1b0)][_0x4b5d49(0x3f2)]()}};this[_0x4b5d49(0x1b0)]['send'](_0x4c3faa,this['unitID']);},'onMissingChangesets':({from:_0x175b10,to:_0x18ee4f})=>{const _0x22280b=_0xbc10;this[_0x22280b(0x38b)]['debug']('[CollaborationEntity]',_0x22280b(0x26d)+_0x175b10+_0x22280b(0xc6)+_0x18ee4f);const _0x465f5b={'eventID':_[_0x22280b(0x26c)][_0x22280b(0x44f)],'data':{'unitID':_0x1d17a6,'unitType':this[_0x22280b(0x18a)],'from':_0x175b10,'to':_0x18ee4f}};this['_session'][_0x22280b(0x362)](_0x465f5b,this[_0x22280b(0x367)]);}};}async['_createInitialStateImpl'](_0x4f1e1c){const _0x4fd687=_0x3022d6;var _0x3cfc1d,_0x2f86c1;const _0x53ab13=await this[_0x4fd687(0x3ea)][_0x4fd687(0x3b8)](this[_0x4fd687(0x367)]),_0x1a5d2d=(_0x3cfc1d=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0x2a5)])!=null?_0x3cfc1d:[],_0x24c06e=(_0x2f86c1=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0xca)])!=null?_0x2f86c1:null,_0x58ebfc=this[_0x4fd687(0x367)];try{this[_0x4fd687(0x243)](_0x24c06e,_0x1a5d2d);}catch(_0x184ad5){this[_0x4fd687(0x38b)][_0x4fd687(0x404)](_0x184ad5);}const _0x5aaee9=this['_createHandler']();if(_0x4f1e1c){const _0x2a1169=Tt(this[_0x4fd687(0x123)],_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);return _0x2a1169 instanceof $?_0x2a1169[_0x4fd687(0x455)]():(_0x2a1169 instanceof x||_0x2a1169 instanceof k)&&_0x2a1169[_0x4fd687(0x40f)](),_0x2a1169;}return this[_0x4fd687(0x123)]['createInstance'](V,_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);}[_0x3022d6(0x243)](_0x47d26e,_0x2e7385){const _0x53e60f=_0x3022d6;var _0x3f77fb,_0x7bfbbc;const _0x5f01cf=this[_0x53e60f(0x238)][_0x53e60f(0x161)][_0x53e60f(0x3d2)](this[_0x53e60f(0x238)]['interceptor'][_0x53e60f(0x35a)]()['COMPRESS_MUTATION_APPLY']);(_0x3f77fb=_0x5f01cf((_0x47d26e==null?void 0x0:_0x47d26e[_0x53e60f(0x2a5)])||[],null))==null||_0x3f77fb[_0x53e60f(0x3d3)](_0x4052a5=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4052a5['id'],_0x4052a5[_0x53e60f(0xd7)])),(_0x7bfbbc=_0x5f01cf(_0x2e7385||[],null))==null||_0x7bfbbc['forEach'](_0x4465d1=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4465d1['id'],_0x4465d1[_0x53e60f(0xd7)]));}};fe=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o['Inject'](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o['Inject'](_['RevisionService'])),I(0x8,o[_0x3022d6(0x22f)]),I(0x9,o['ICommandService']),I(0xa,L[_0x3022d6(0xaf)]),I(0xb,o[_0x3022d6(0x346)]),I(0xc,o[_0x3022d6(0x37a)](pe))],fe);let Ne=class extends fe{constructor(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x3d5994,_0x594176,_0x5d61c8,_0xedf129,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5){const _0x22baa7=_0x3022d6;super(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5),this[_0x22baa7(0x367)]=_0xeb18b9,this['type']=_0x3c5401,this[_0x22baa7(0x31b)]=_0x2f06fa,this[_0x22baa7(0xce)]=_0x3d5994,this[_0x22baa7(0x3c0)]=_0x594176,this['_docTransformSelectionsService']=_0x5d61c8,this[_0x22baa7(0x296)]=_0xedf129;}[_0x3022d6(0xfa)](){const _0x5a9065=_0x3022d6,_0x38173f=super[_0x5a9065(0xfa)]();return _0x38173f[_0x5a9065(0x440)]=_0x2d216c=>this['_docTransformIMECacheService'][_0x5a9065(0x377)](_0x2d216c),_0x38173f[_0x5a9065(0x118)]=_0x3dc004=>this[_0x5a9065(0x2af)]['transformSelections'](_0x3dc004),_0x38173f[_0x5a9065(0x1b2)]=_0x447116=>this[_0x5a9065(0x296)]['syncEditingCollabCursor'](_0x447116),_0x38173f['onTransformRemoteChangesetByIMECache']=_0x54ff5e=>this[_0x5a9065(0x3c0)][_0x5a9065(0x364)](_0x54ff5e),_0x38173f;}async[_0x3022d6(0x11b)](){const _0x175d40=_0x3022d6,_0x4e8d67=await super[_0x175d40(0x11b)]();return this[_0x175d40(0x14a)](this[_0x175d40(0x467)]['onCommandExecuted']((_0xfe5c4e,_0x101370)=>{const _0x96331=_0x175d40;if(_0xfe5c4e[_0x96331(0x1f3)]!==o[_0x96331(0x2c5)][_0x96331(0x146)]||_0x101370!=null&&_0x101370[_0x96331(0x424)]||_0x101370!=null&&_0x101370[_0x96331(0x38a)])return;const _0x3479e3=_0xfe5c4e[_0x96331(0xd7)];if((_0x3479e3==null?void 0x0:_0x3479e3['unitId'])!==this[_0x96331(0x367)])return;let _0x1e1bde=_0xfe5c4e;if(_0x1e1bde['id']===P[_0x96331(0x365)]['id']){const _0x319844=_0x1e1bde[_0x96331(0xd7)];_0x1e1bde={'id':P[_0x96331(0x365)]['id'],'type':o[_0x96331(0x2c5)][_0x96331(0x146)],'params':{'unitId':_0x319844['unitId'],'actions':_0x319844[_0x96331(0x2d6)],'textRanges':null}};}const _0x3bb770=this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x3d2)](this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x35a)]()[_0x96331(0x30b)])([_0x1e1bde],null)||[_0x1e1bde];this['_onLocalMutation'](_0x3bb770[0x0]);})),_0x4e8d67;}};Ne=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o['Inject'](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o['LocaleService'])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](P[_0x3022d6(0x287)])),I(0x9,o[_0x3022d6(0x291)](ve)),I(0xa,o[_0x3022d6(0x291)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x3022d6(0x22f)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x3022d6(0x346)]),I(0x10,o[_0x3022d6(0x37a)](pe))],Ne),exports[_0x3022d6(0x3e4)]=class extends fe{constructor(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x275878,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3){const _0x22b2f6=_0x3022d6;super(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3),this[_0x22b2f6(0x367)]=_0x20a9e3,this[_0x22b2f6(0x1f3)]=_0xe2094e,this[_0x22b2f6(0x31b)]=_0x394262,this[_0x22b2f6(0x44e)]=_0x275878;}[_0x3022d6(0xfa)](){const _0x22c396=_0x3022d6,_0x53d7a8=super[_0x22c396(0xfa)]();return _0x53d7a8[_0x22c396(0x118)]=_0x4b0ea9=>this[_0x22c396(0x44e)][_0x22c396(0xbd)](_0x4b0ea9),_0x53d7a8;}async[_0x3022d6(0x11b)](){const _0x161557=_0x3022d6,_0x9e3d2b=await super[_0x161557(0x11b)]();return this[_0x161557(0x14a)](this['_commandService'][_0x161557(0x2a1)]((_0x17ddd6,_0x29f65b)=>{const _0x176451=_0x161557;if(_0x17ddd6[_0x176451(0x1f3)]!==o['CommandType'][_0x176451(0x146)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x424)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x38a)])return;const _0x40204d=_0x17ddd6[_0x176451(0xd7)];if((_0x40204d==null?void 0x0:_0x40204d[_0x176451(0x347)])!==this[_0x176451(0x367)])return;const _0x2ff0dc=_0x17ddd6,_0xb90525=this[_0x176451(0x238)][_0x176451(0x161)][_0x176451(0x3d2)](this['_compressMutationService'][_0x176451(0x161)][_0x176451(0x35a)]()[_0x176451(0x30b)])([_0x2ff0dc],null)||[_0x2ff0dc];this[_0x176451(0xa4)](_0xb90525[0x0]);})),_0x9e3d2b;}},exports[_0x3022d6(0x3e4)]=Ee([I(0x3,o[_0x3022d6(0x291)](o['Injector'])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](ge)),I(0x9,o[_0x3022d6(0x22f)]),I(0xa,o[_0x3022d6(0x3e6)]),I(0xb,L[_0x3022d6(0xaf)]),I(0xc,o[_0x3022d6(0x346)]),I(0xd,o[_0x3022d6(0x37a)](pe))],exports[_0x3022d6(0x3e4)]);const st=[_0x3022d6(0x3bf),_0x3022d6(0x341),_0x3022d6(0x36c),_0x3022d6(0x3b6),_0x3022d6(0x321),_0x3022d6(0xb7)];class Fe extends o[_0x3022d6(0x1c9)]{constructor(){const _0x3f5e7b=_0x3022d6;super(...arguments),u(this,_0x3f5e7b(0x3dd),new Map()),u(this,_0x3f5e7b(0x13b),0x0);}['assignAColorForMemberID'](_0x16f695){const _0x1f0d29=_0x3022d6;if(this[_0x1f0d29(0x3dd)][_0x1f0d29(0x151)](_0x16f695))return this['_assignedColors'][_0x1f0d29(0x84)](_0x16f695);const _0x2c8883=st[this[_0x1f0d29(0x13b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%st['length'],this[_0x1f0d29(0x3dd)][_0x1f0d29(0x182)](_0x16f695,_0x2c8883),_0x2c8883;}}var Ms=Object[_0x3022d6(0x131)],ys=Object['getOwnPropertyDescriptor'],Ns=(_0x4ce4cb,_0x5b10f1,_0x5d8f8d,_0x4fc7ed)=>{const _0x21fc65=_0x3022d6;for(var _0x16b2df=_0x4fc7ed>0x1?void 0x0:_0x4fc7ed?ys(_0x5b10f1,_0x5d8f8d):_0x5b10f1,_0x491ca1=_0x4ce4cb[_0x21fc65(0x2ce)]-0x1,_0x3b3ffd;_0x491ca1>=0x0;_0x491ca1--)(_0x3b3ffd=_0x4ce4cb[_0x491ca1])&&(_0x16b2df=(_0x4fc7ed?_0x3b3ffd(_0x5b10f1,_0x5d8f8d,_0x16b2df):_0x3b3ffd(_0x16b2df))||_0x16b2df);return _0x4fc7ed&&_0x16b2df&&Ms(_0x5b10f1,_0x5d8f8d,_0x16b2df),_0x16b2df;},q=(_0x534e98,_0x4bd84d)=>(_0x127c99,_0x5337fc)=>_0x4bd84d(_0x127c99,_0x5337fc,_0x534e98);const Ls=0x12c,As=0x64,js=()=>{let _0x1e0ac6=[],_0x4c0342=!0x1;return _0x3a1542=>{_0x1e0ac6['push'](_0x3a1542),_0x4c0342||(_0x4c0342=!0x0,setTimeout(()=>{const _0x5b430c=_0xbc10;_0x1e0ac6[_0x5b430c(0x3d3)](_0x59f2d3=>_0x59f2d3()),_0x1e0ac6=[],_0x4c0342=!0x1;}));};};let Le=class extends o[_0x3022d6(0x460)]{constructor(_0x3d2681,_0x147c26,_0x31fe81,_0x5ab6c4,_0x22b641,_0x35ea40,_0x4a875f,_0x575d2c){const _0x23190b=_0x3022d6;super(),u(this,_0x23190b(0xa7),!0x1),u(this,_0x23190b(0x11b),!0x1),u(this,_0x23190b(0x130),new v[(_0x23190b(0x141))](new Map())),u(this,_0x23190b(0x210),this['_cursorInfo$'][_0x23190b(0x295)]()),u(this,_0x23190b(0x3fa),new v[(_0x23190b(0x141))]([])),u(this,_0x23190b(0xf3),this[_0x23190b(0x3fa)][_0x23190b(0x23e)](v[_0x23190b(0x280)](Ls))),u(this,_0x23190b(0x1f1),xe((_0x387b75,_0x8e0f08)=>{const _0x292851=_0x23190b,_0x158d4d={'eventID':_['CollaborationEvent'][_0x292851(0x426)],'data':{'unitID':this['unitID'],'memberID':this[_0x292851(0x1b0)]['getMemberID'](),'selection':Ke[_0x292851(0x1c1)](_0x387b75,_0x8e0f08[_0x292851(0x271)])}};this['_session'][_0x292851(0x362)](_0x158d4d,this[_0x292851(0x367)]);},As)),(this[_0x23190b(0x367)]=_0x3d2681,this[_0x23190b(0x1b0)]=_0x147c26,this[_0x23190b(0x123)]=_0x31fe81,this[_0x23190b(0x26b)]=_0x5ab6c4,this[_0x23190b(0x16b)]=_0x22b641,this[_0x23190b(0x17c)]=_0x35ea40,this[_0x23190b(0x467)]=_0x4a875f,this['_refRangeService']=_0x575d2c);}get['cursorInfo'](){const _0x585e9c=_0x3022d6;return this[_0x585e9c(0x130)]['getValue']();}get[_0x3022d6(0x240)](){const _0x1475da=_0x3022d6;return this[_0x1475da(0x3fa)][_0x1475da(0x386)]();}['dispose'](){const _0x347ccf=_0x3022d6;super[_0x347ccf(0x147)](),this[_0x347ccf(0x130)]['next'](new Map()),this['_cursorInfo$'][_0x347ccf(0x19e)](),this[_0x347ccf(0x3fa)][_0x347ccf(0x116)]([]),this['_roomMembers$'][_0x347ccf(0x19e)]();}[_0x3022d6(0x388)](){const _0x5780d6=_0x3022d6;this[_0x5780d6(0x11b)]||(this[_0x5780d6(0x11b)]=!0x0,this[_0x5780d6(0x1b0)]['sessionStatus$'][_0x5780d6(0x23e)](v['takeUntil'](this[_0x5780d6(0x374)]))[_0x5780d6(0x265)](_0x1f8f9f=>{const _0x149056=_0x5780d6;_0x1f8f9f===G[_0x149056(0x194)]?this[_0x149056(0x30a)]():this[_0x149056(0x20b)]();}),this['_session']['event$'][_0x5780d6(0x23e)](v['takeUntil'](this['dispose$']))[_0x5780d6(0x265)](_0x269997=>{const _0x55fa8d=_0x5780d6,_0x9f1c9f=_0x269997[_0x55fa8d(0x31c)];_0x9f1c9f===_[_0x55fa8d(0x26c)]['UPDATE_CURSOR']&&this[_0x55fa8d(0xab)](_0x269997),_0x9f1c9f===_['CollaborationEvent'][_0x55fa8d(0x1b6)]&&this['_onCursorDelete'](_0x269997);}),this[_0x5780d6(0x3f9)](),this[_0x5780d6(0x14a)](this['_commandService']['onCommandExecuted'](_0x33ee35=>{const _0x56d2b4=_0x5780d6;if(this['_online']&&_0x33ee35['id']===p[_0x56d2b4(0x231)]['id']&&_0x33ee35[_0x56d2b4(0xd7)][_0x56d2b4(0x347)]===this['unitID']){const _0x130564=_0x33ee35['params'];this['_updateLocalCursor'](_0x130564[_0x56d2b4(0x3d1)],_0x130564[_0x56d2b4(0x2e7)][0x0]);}})));}['_onCursorUpdate'](_0x453cd2){const _0x15ff59=_0x3022d6;var _0x35e629,_0x3b6f85;const {memberID:_0xfe6f7f,selection:_0x352e4e}=_0x453cd2[_0x15ff59(0x2be)],{sheetName:_0xd96678,range:_0x2b5ebc}=Ke[_0x15ff59(0x1a8)](_0x352e4e),_0xe8b54={'name':(_0x3b6f85=(_0x35e629=this[_0x15ff59(0x16b)][_0x15ff59(0x18f)](this[_0x15ff59(0x367)],_0xfe6f7f))==null?void 0x0:_0x35e629[_0x15ff59(0x1fa)])!=null?_0x3b6f85:'Unknown\x20user','range':this[_0x15ff59(0x371)](_0xd96678,_0x2b5ebc),'sheetID':_0xd96678,'color':this['_colorAssignService'][_0x15ff59(0x288)](_0xfe6f7f),'selection':_0x352e4e},_0x4fd53d=this['cursorInfo'];_0x4fd53d[_0x15ff59(0x182)](_0xfe6f7f,_0xe8b54),this[_0x15ff59(0x130)][_0x15ff59(0x116)](_0x4fd53d);}[_0x3022d6(0x16e)](_0x5c0d55){const _0x216e3b=_0x3022d6,{memberID:_0xa15997}=_0x5c0d55[_0x216e3b(0x2be)],_0x1c9452=this[_0x216e3b(0x3ca)];_0x1c9452[_0x216e3b(0x1af)](_0xa15997),this[_0x216e3b(0x130)][_0x216e3b(0x116)](_0x1c9452);}[_0x3022d6(0x371)](_0x20aaa2,_0xb1ee8f){const _0x32a65c=_0x3022d6;var _0x10e095,_0x2c6407;const _0x2163a2=(_0x2c6407=(_0x10e095=this[_0x32a65c(0x17c)][_0x32a65c(0x95)](this[_0x32a65c(0x367)]))==null?void 0x0:_0x10e095['getSheetBySheetId'](_0x20aaa2))==null?void 0x0:_0x2c6407[_0x32a65c(0x34a)]();return(_0x2163a2==null?void 0x0:_0x2163a2[_0x32a65c(0x99)](_0x4c8cbd=>o['Rectangle']['contains'](_0x4c8cbd,_0xb1ee8f)))||_0xb1ee8f;}[_0x3022d6(0x3f9)](){const _0x50022e=_0x3022d6,_0x3ae3cf=new o['DisposableCollection'](),_0x58ad63=js(),_0x47dffb=()=>{const _0x2d729a=_0xbc10;_0x3ae3cf[_0x2d729a(0x147)]();const _0x588c79=(_0x171abd,_0x583f02,_0x3f5b57,_0xb3c34d)=>{const _0x7bafcc=_0x2d729a;let _0x529413=[];switch(_0x171abd['id']){case p['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x529413=p[_0x7bafcc(0x369)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['DeleteRangeMoveUpCommandId']:{_0x529413=p[_0x7bafcc(0x148)](_0x171abd,_0xb3c34d);break;}case p['EffectRefRangId'][_0x7bafcc(0x34e)]:{_0x529413=p[_0x7bafcc(0x1f0)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x2e3)]:{_0x529413=p[_0x7bafcc(0x432)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x1e8)]:{_0x529413=p[_0x7bafcc(0x16a)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0xe3)]:{_0x529413=p['handleInsertRow'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x86)]:{_0x529413=p['handleMoveRange'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveColCommandId']:{_0x529413=p[_0x7bafcc(0x323)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveRowCommandId']:{_0x529413=p[_0x7bafcc(0x442)](_0x171abd,_0xb3c34d);break;}}const _0x1eea94=p[_0x7bafcc(0xb6)](_0x529413,_0xb3c34d),_0x39bf5f=this[_0x7bafcc(0x3ca)][_0x7bafcc(0x84)](_0x583f02);if(_0x39bf5f&&_0x1eea94){const _0x3ed2d0={..._0x39bf5f,'range':_0x1eea94};this['cursorInfo'][_0x7bafcc(0x182)](_0x583f02,_0x3ed2d0),_0x58ad63(()=>{const _0x12bd55=_0x7bafcc,_0x34897d=this[_0x12bd55(0x286)][_0x12bd55(0x356)](_0x1eea94,_0x573923=>(_0x34897d[_0x12bd55(0x147)](),_0x588c79(_0x573923,_0x583f02,_0x3f5b57,_0x1eea94)));_0x3ae3cf[_0x12bd55(0xe1)](_0x34897d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2d729a(0x3d3)]((_0x5d2e9c,_0x1b5031)=>{const _0x35ccf0=_0x2d729a,{range:_0x3897a8,sheetID:_0x208c31}=_0x5d2e9c,_0x5ee685=this[_0x35ccf0(0x286)]['registerRefRange'](_0x3897a8,_0x58b2fd=>(_0x5ee685[_0x35ccf0(0x147)](),_0x588c79(_0x58b2fd,_0x1b5031,_0x208c31,_0x3897a8)));_0x3ae3cf['add'](_0x5ee685);});};this[_0x50022e(0x14a)](o[_0x50022e(0x24c)](this[_0x50022e(0x130)]['subscribe'](()=>{_0x47dffb();})));}['_toggleOnline'](){const _0x2a960c=_0x3022d6;var _0x175a4b,_0x8198c6;if(this[_0x2a960c(0xa7)]=!0x0,((_0x175a4b=this['_univerInstanceService'][_0x2a960c(0x45c)]())==null?void 0x0:_0x175a4b[_0x2a960c(0x29c)]())!==this[_0x2a960c(0x367)])return;const _0x4909eb=(_0x8198c6=this[_0x2a960c(0x123)][_0x2a960c(0x84)](p[_0x2a960c(0x303)])[_0x2a960c(0xbe)]())==null?void 0x0:_0x8198c6[0x0],_0x59ade2=this[_0x2a960c(0x17c)]['getCurrentUnitForType'](o[_0x2a960c(0x23f)][_0x2a960c(0x2c0)])[_0x2a960c(0x34b)]();_0x4909eb&&_0x59ade2&&this[_0x2a960c(0x1f1)](_0x59ade2[_0x2a960c(0x3a8)](),_0x4909eb);}[_0x3022d6(0x20b)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o['Inject'](o[_0x3022d6(0x448)])),q(0x3,o[_0x3022d6(0x291)](Fe)),q(0x4,o['Inject'](Y)),q(0x5,o[_0x3022d6(0xb8)]),q(0x6,o[_0x3022d6(0x3e6)]),q(0x7,o[_0x3022d6(0x291)](p['RefRangeService']))],Le);var $s=Object[_0x3022d6(0x131)],xs=Object[_0x3022d6(0x2b4)],Hs=(_0x482d3e,_0x3e2e4f,_0x9ccfe9,_0x31d24d)=>{const _0x1a63a0=_0x3022d6;for(var _0x2e68cc=_0x31d24d>0x1?void 0x0:_0x31d24d?xs(_0x3e2e4f,_0x9ccfe9):_0x3e2e4f,_0x4a462e=_0x482d3e[_0x1a63a0(0x2ce)]-0x1,_0x30c1e3;_0x4a462e>=0x0;_0x4a462e--)(_0x30c1e3=_0x482d3e[_0x4a462e])&&(_0x2e68cc=(_0x31d24d?_0x30c1e3(_0x3e2e4f,_0x9ccfe9,_0x2e68cc):_0x30c1e3(_0x2e68cc))||_0x2e68cc);return _0x31d24d&&_0x2e68cc&&$s(_0x3e2e4f,_0x9ccfe9,_0x2e68cc),_0x2e68cc;},F=(_0x27e7fe,_0x423bc3)=>(_0x37ba10,_0x349b52)=>_0x423bc3(_0x37ba10,_0x349b52,_0x27e7fe);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x3022d6(0x460)]{constructor(_0x499004,_0x398ecf,_0x323392,_0x38b5bf,_0x57cd51,_0x496d33,_0x17988b,_0x51f4f9,_0x3912e1){const _0x1e3861=_0x3022d6;super(),u(this,_0x1e3861(0xa7),!0x1),u(this,_0x1e3861(0x11b),!0x1),u(this,_0x1e3861(0x130),new v[(_0x1e3861(0x141))](new Map())),u(this,_0x1e3861(0x210),this[_0x1e3861(0x130)][_0x1e3861(0x295)]()),u(this,_0x1e3861(0x3fa),new v['BehaviorSubject']([])),u(this,_0x1e3861(0xf3),this[_0x1e3861(0x3fa)][_0x1e3861(0x23e)](v[_0x1e3861(0x280)](ks))),u(this,_0x1e3861(0x1f1),xe(_0x4ce576=>{const _0x2a4bfb=_0x1e3861,_0x18c8c7={'eventID':_[_0x2a4bfb(0x26c)][_0x2a4bfb(0x426)],'data':{'unitID':this[_0x2a4bfb(0x367)],'memberID':this['_session'][_0x2a4bfb(0x3f2)](),'selection':bt(_0x4ce576)}};this['_session'][_0x2a4bfb(0x362)](_0x18c8c7,this[_0x2a4bfb(0x367)]);},Bs)),(this[_0x1e3861(0x367)]=_0x499004,this[_0x1e3861(0x1b0)]=_0x398ecf,this[_0x1e3861(0x123)]=_0x323392,this[_0x1e3861(0x26b)]=_0x38b5bf,this[_0x1e3861(0x16b)]=_0x57cd51,this['_syncEditingCollabCursorService']=_0x496d33,this[_0x1e3861(0x223)]=_0x17988b,this['_univerInstanceService']=_0x51f4f9,this[_0x1e3861(0x467)]=_0x3912e1);}get[_0x3022d6(0x3ca)](){const _0x24b48a=_0x3022d6;return this['_cursorInfo$'][_0x24b48a(0x386)]();}get[_0x3022d6(0x240)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x1e9ddd=_0x3022d6;super[_0x1e9ddd(0x147)](),this['_cursorInfo$']['next'](new Map()),this[_0x1e9ddd(0x130)][_0x1e9ddd(0x19e)](),this[_0x1e9ddd(0x3fa)]['next']([]),this[_0x1e9ddd(0x3fa)]['complete']();}[_0x3022d6(0x388)](){const _0x26cd26=_0x3022d6;this[_0x26cd26(0x11b)]||(this[_0x26cd26(0x11b)]=!0x0,this['_session'][_0x26cd26(0x370)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this[_0x26cd26(0x374)]))[_0x26cd26(0x265)](_0x124102=>{const _0x1a23d1=_0x26cd26;_0x124102===G[_0x1a23d1(0x194)]?this[_0x1a23d1(0x30a)]():this[_0x1a23d1(0x20b)]();}),this['_session'][_0x26cd26(0x144)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x4828b7=>{const _0x5d016c=_0x26cd26,_0x15fa62=_0x4828b7[_0x5d016c(0x31c)];_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x426)]&&this['_onCursorUpdate'](_0x4828b7),_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x1b6)]&&this[_0x5d016c(0x16e)](_0x4828b7);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)]['onCommandExecuted'](_0x522bb2=>{const _0x3b33af=_0x26cd26,_0xd10c11=_0x522bb2[_0x3b33af(0xd7)];_0xd10c11!=null&&this[_0x3b33af(0xa7)]&&_0x522bb2['id']===P[_0x3b33af(0x447)]['id']&&_0xd10c11[_0x3b33af(0x347)]===this[_0x3b33af(0x367)]&&_0xd10c11[_0x3b33af(0x167)]===!0x1&&this[_0x3b33af(0x1f1)](_0xd10c11[_0x3b33af(0x41c)]);})),this[_0x26cd26(0x308)][_0x26cd26(0x3d9)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x5db2a2=>{const _0x4c6953=_0x26cd26;if((_0x5db2a2==null?void 0x0:_0x5db2a2[_0x4c6953(0x367)])!==this[_0x4c6953(0x367)])return;const _0x57ae1b={'eventID':_['CollaborationEvent'][_0x4c6953(0x426)],'data':_0x5db2a2};this[_0x4c6953(0xab)](_0x57ae1b);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)][_0x26cd26(0x2a1)](_0x5aae3b=>{const _0x1ebb07=_0x26cd26;if(_0x5aae3b['params']==null)return;const _0x5316f9=_0x5aae3b[_0x1ebb07(0xd7)];if(_0x5aae3b['id']!==P[_0x1ebb07(0x365)]['id']||_0x5316f9[_0x1ebb07(0x347)]!==this[_0x1ebb07(0x367)])return;const _0x318e39={'id':_0x1ebb07(0x290),'params':_0x5316f9},_0x125d4a=this[_0x1ebb07(0x3ca)];for(const [_0x1fecf6,_0x552a89]of _0x125d4a){const _0x2d9969={'id':_0x1ebb07(0x290),'params':{'unitId':this[_0x1ebb07(0x367)],'actions':null,'textRanges':_0x552a89['ranges']}},_0x5cb14d=this[_0x1ebb07(0x223)][_0x1ebb07(0x28e)](_0x318e39,_0x2d9969,!0x1);if(_['isTransformMutationFailure'](_0x5cb14d))throw _0x5cb14d['error'];_0x125d4a[_0x1ebb07(0x182)](_0x1fecf6,{..._0x552a89,'ranges':_0x5cb14d[_0x1ebb07(0x469)]['params'][_0x1ebb07(0x134)]});}queueMicrotask(()=>{const _0x28502b=_0x1ebb07;this['_cursorInfo$'][_0x28502b(0x116)](_0x125d4a);});})));}[_0x3022d6(0xab)](_0x3ce280){const _0x4ac320=_0x3022d6;var _0x4ac7a7,_0x949b3a;const {memberID:_0x1934ba,selection:_0x4ccae7}=_0x3ce280[_0x4ac320(0x2be)],_0x1aa938=Is(_0x4ccae7),_0x3e1a7f=(_0x949b3a=(_0x4ac7a7=this['_memberService'][_0x4ac320(0x18f)](this[_0x4ac320(0x367)],_0x1934ba))==null?void 0x0:_0x4ac7a7[_0x4ac320(0x1fa)])!=null?_0x949b3a:_0x4ac320(0x1f2),_0x3990bd={'color':this[_0x4ac320(0x26b)][_0x4ac320(0x288)](_0x1934ba),'name':_0x3e1a7f,'ranges':_0x1aa938},_0x42cb94=this['cursorInfo'];_0x42cb94[_0x4ac320(0x182)](_0x1934ba,_0x3990bd),this[_0x4ac320(0x130)]['next'](_0x42cb94);}[_0x3022d6(0x16e)](_0x2ee17b){const _0x550d23=_0x3022d6,{memberID:_0x5e6357}=_0x2ee17b['data'],_0x7c044b=this[_0x550d23(0x3ca)];_0x7c044b[_0x550d23(0x1af)](_0x5e6357),this[_0x550d23(0x130)]['next'](_0x7c044b);}[_0x3022d6(0x30a)](){const _0x542f6b=_0x3022d6;var _0x46bb76;if(this[_0x542f6b(0xa7)]=!0x0,((_0x46bb76=this[_0x542f6b(0x17c)][_0x542f6b(0x45c)]())==null?void 0x0:_0x46bb76['getUnitId']())!==this[_0x542f6b(0x367)])return;const _0x2fe22b=this[_0x542f6b(0x123)][_0x542f6b(0x84)](P[_0x542f6b(0x329)])['getDocRanges'](),_0x2e777e=_0x2fe22b==null?void 0x0:_0x2fe22b[_0x542f6b(0x317)](P[_0x542f6b(0x3f1)]);Array[_0x542f6b(0x3a1)](_0x2e777e)&&_0x2e777e['length']>0x0&&this['_updateLocalCursor'](_0x2e777e);}['_toggleOffline'](){const _0x40fa06=_0x3022d6;this[_0x40fa06(0xa7)]=!0x1;}};Ae=Hs([F(0x2,o[_0x3022d6(0x291)](o['Injector'])),F(0x3,o['Inject'](Fe)),F(0x4,o[_0x3022d6(0x291)](Y)),F(0x5,o[_0x3022d6(0x291)](We)),F(0x6,_['ITransformService']),F(0x7,o[_0x3022d6(0xb8)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x3022d6(0x131)],Ws=Object[_0x3022d6(0x2b4)],Fs=(_0x5b7d38,_0x53f4ea,_0x43a881,_0x3da234)=>{const _0x2be400=_0x3022d6;for(var _0x2855ff=_0x3da234>0x1?void 0x0:_0x3da234?Ws(_0x53f4ea,_0x43a881):_0x53f4ea,_0x2c3e74=_0x5b7d38[_0x2be400(0x2ce)]-0x1,_0x5563ce;_0x2c3e74>=0x0;_0x2c3e74--)(_0x5563ce=_0x5b7d38[_0x2c3e74])&&(_0x2855ff=(_0x3da234?_0x5563ce(_0x53f4ea,_0x43a881,_0x2855ff):_0x5563ce(_0x2855ff))||_0x2855ff);return _0x3da234&&_0x2855ff&&Vs(_0x53f4ea,_0x43a881,_0x2855ff),_0x2855ff;},Re=(_0x164277,_0x5e90e3)=>(_0x4f9e0b,_0xe67962)=>_0x5e90e3(_0x4f9e0b,_0xe67962,_0x164277);function _0x1991(){const _0x20ed93=['rxjs','url','_clearUndo','_tryEnsureSocket','size','_isPermissionRej','svg','getSkeleton','length','isTransformChangesetsSuccess','onPointerMove$','_notificationService','xlink:href','top','allowed','_state','actions','isTransformMutationsWithChangesetFailure','_color','_snapshotService','_undoStacks','substring','mapTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','_localStorageService','LOCAL_CACHE_INTERVAL_KEY','OTHER_CLIENTS_EDITING','_getCurrentRevision','InsertRangeMoveDownCommandId','_socket$','exhaustSavingTask','_clearScheduledTask','selections','WebSocketService','take','restore','_onMessage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','CollaborationSessionService','YUUMI_RATE_OVER_LIMIT','_themeService','_scene','originalMeta','lineTo','createIdentifier','_transformUndoRedoStack','getTypeOfUnitAdded$','trim','onMouseMove','target','includes','/-/object/list','UNDEFINED','_startCollaboration','syncEditingCollabCursor','FAIL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IAuthzIoService','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','SheetsSelectionsService','NodePositionConvertToCursor','_scheduleClearOtherTimer','sessionStatus','_snapshotServerService','_syncEditingCollabCursorService','RevisionService','_toggleOnline','COMPRESS_MUTATION_SEND','JSONX','_status$','setShapeProps','colorChannel1','NEW_CHANGESETS','isActive','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','editingUnit','ThemeService','@univerjs/core','OFFLINE','map','_sendHeartbeatTimer','AWAITING_WITH_PENDING','registerBeforeClose','session','eventID','@univerjs-pro/collaboration','onMissedChangesetFetched','setItem','_joinRoom','blue400','UNRECOGNIZED','handleIRemoveCol','univer-online-status-title','initWorkbookPermissionChange','_uiPartsService','patch','_unitID','TextSelectionManagerService','LifecycleStages','closePath','IHTTPImplementation','Ready','getUnitStatus$','WorkbookEditablePermission','UPDATE_PERMISSION_OBJ','Shape','_name','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_removeClearOtherTimer','replaceTextRanges','DataLoaderController','_initUnitPermissionChange','getRangePointData','[OfflineState]:\x20received\x20rejection.','getCurrentRevForDocument','YUUMI_UNABLE_LOAD_URL','univer-online','revision','_cursor','list','APPLY_REVISION_CONFILICT','jiqing500','rev','CollaborationSession','_createInitialState','joinEvent','IPermissionService','unitId','&to=','UNKNOWN_CMD','getMergeData','getActiveSheet','/universer-api/authz','_updateLocalCache','InsertColCommandId','ImageUploadStatusType','_roomMembers','SNAPSHOT_SERVER_URL_KEY','_getCtorByUniverType','hasOwnProperty','_getAnchorBounding','HttpExport','registerRefRange','Undefined','status$','[CollaborationSessionService]','getInterceptPoints','whenReady','propertyIsEnumerable','onPointerLeave$','_selfUnitIDs','getVpScrollXYInfoByPosToVp','_startDocCollabCursor','idSuffix','send','BASE64','transformRemoteChangeset','RichTextEditingMutation','connection\x20error','unitID','Steady','handleDeleteRangeMoveLeft','isTransformMutationFailure','registerRenderModule','verdancy600','startColumn','_replaceFileID','memberID','sessionStatus$','_getMergeRange','routeKey','/object/','dispose$','transformMutationsWithChangeset','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','_labelPosition','defIds','Optional','update','prototype','SUBMIT_CHANGESET','HTTPService','headers','UNIVER_UNKNOWN','_onRemoteChangeset','DocSkeletonManagerService','string','MSG_FOR_ERROR','encode','getValue','_retryConnectingTimer','init','[SyncedState]:\x20received\x20rejection.','onlyLocal','_logService','fillText','_socket','_messageService','DependentOn','IRemoteInstanceService','_setupSubUnitSync','transformUndoRedo','SnapshotService','_commentUpdate$','transformByState','_HTTPService','collaboration-client.offline-data-not-saved','_clearTimeoutTimer','SheetSkeletonManagerService','_collaborationPaused','makeDirty','appendMutation','onlineStatusTitle','m1Prime','from','conflict','isArray','_permissionService','objectType','/universer-api/file/{fileID}/sign-url','getImage','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','selection','getSheetId','LIVESHARE_TERMINATE','searchParams','replace','all','_incrementRevisionNumber','getTypeOfUnitDisposed$','shareReplay','CollaborationSocketService','_localeService','requireSession','offline','_registerDependencies','/unit/','red300','RETRY_CONNECTING_INTERVAL','loadOfflineData','saveSnapshot','setTimeout','state','loadSheet','getDocRanges','IConfigService','purple300','_docTransformIMECacheService','_syncEditingCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_socketMessageSubscription','mapDocumentTypeToUniverType','result','c1Prime','/universer-api/oidc/authpage','0\x200\x2016\x2016','_handleHeartbeatEvent','cursorInfo','\x0aCurrent:\x20','text','_exhaustRemoteChangesetQueue','_handler','_scheduleTimestamp','put','subUnitId','fetchThroughInterceptors','forEach','color','InsertSheetMutation','newValue','off-line-single_clip0_910_343','random','collabCursorState$','APPLY_NON_SEQUENTIAL_REVISION','IBeforeCloseService','[CollaborationEntity]','_assignedColors','_transformIMECache','COLLAB_WEB_SOCKET_URL','_draw','encodeURIComponent','_collabSessionService','_awaitingChangeset','SheetCollaborationEntity','fromEventSubject','ICommandService','_onRemoteRejected','NOT_FOUND','_disableEditing','_localCacheService','delay','unshift','8dGgQhj','url(#$1','OnLifecycle','awaiting_with_pending','serializeDocRange','getMemberID','resourceIDs','ImageSourceType','onSendChangeset','[OfflineState]:\x20received\x20changeset.','NO_OTHER_CLIENTS_EDITING','EmptyMutation','_onRefRangeChange','_roomMembers$','HttpImport','_cursorShapes','fetchMissingChangesets','Vector2','_getRedoStack','_members','round','collaborators','UniverIcon','error','_handleHover','_eventUnsubscribe','roles','objectID','activeSheet$','newCsEvent','message$','RECV','path','off-line-single','resend','/collaborator','on-line-single','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_PROJECT','_urlService','_executeRemoteChangeset','getCoordByCell','@univerjs/docs','Tools','concat','c2Prime','sheetId','ranges','_showConflictNotification','getUndoRedoMutationParamsCache','[OfflineState]:\x20received\x20acknowledgement.','CHANGESET_ACK','defs','call','_unitOnClients','fromCollab','useRef','UPDATE_CURSOR','_startSheetCollabCursor','SNAPSHOT_HAS_BEEN_REMOVED','editing\x20status\x20changed\x20to','_heartbeatTimer','measureText','_undoRedoService','push','FileId','_transitionLocked','4835vlFzud','CollaborationController','handleInsertRangeMoveDown','_getSnapshotAPIPrefix','title','onStarting','children','conflict.title','_submitChangeset','_state$','on-line-single_clip0_910_349','state$','sheetID','\x20in\x20_schedule.','LocaleService','fill','onTransformIME','unitId\x20is\x20not\x20found','handleIRemoveRow','_saveCache','_getAPIPrefix','SEND_CHANGESET_TIMEOUT','_waitCount','SetTextSelectionsOperation','Injector','UnitEmbedded','Error\x20on\x20receiving\x20event','currentSkeleton$','_disabled','subunit','_sheetTransformSelectionsService','FETCH_MISSING','awaiting','RETRY_CONNECTING_MAX_COUNT','_retryCount','@univerjs/drawing','/new_changes','_schedule','transform','_lastPointer','/universer-api/comb','CHANGESET_REJ','connectInjector','commentUpdate$','getFocusedUnit','post','none','/universer-api/snapshot','RxDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HEARTBEAT','NOT_COLLAB','IMEInputManagerService','registerOnClose','ALREADY_EXISTS','_commandService','collaboration.closeRoom','m2Prime','getActiveRange','createElement','clsx','_getSheetObject','_removeCollabCursors','userID','backgroundColor','SHOULD_CLOSE_CONN','get','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MoveRangeCommandId','_config','_onFetchMissResult','createInstance','_imageSourceCache','@univerjs/design','responseType','_clearLocalCache','entries','lodash/debounce','_transformPreviousActiveRange','LICENSE_MAX_UNITS_EXCEEDED','save\x20fail\x20reason\x20is\x20','_onJoinRoomEvent','_hideTimer','getUniverSheetInstance','VIEWPORT_KEY','_removeRoom','skeleton','find','registerComponent','getResourcesRequest','assign','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','registerHTTPInterceptor','COMPRESS_MUTATION_APPLY','_initMergeInterceptor','_remoteChangesetQueue','session.room-full','8460fIjMFL','_onLocalMutation','HEARTBEAT_TIMEOUT_KEY','IContextService','_online','_clearOtherTimers','objects','IURLService','_onCursorUpdate','_sessions','setParam','_timeoutTimer','IMessageService','reduce','div','_collaborationTimeoutTimer','collabStatus.fetchMiss','getSheetBySheetId','permission.content','runRefRangeMutations','gold400','IUniverInstanceService','black','INTERNAL_ERROR','updateOfflineData','_scheduleReconnection','transformSelections','getCurrentSelections','toggleOnline','AuthzIoHttpService','onRemoteAck','_acknowledgedAwaitingChangeset','submit\x20changeset\x20error!','currentColor','merge','\x20to\x20','takeUntil','socketService','b64DecodeUnicode','awaitingChangeset','210889TPjnCz','localeService','clearInterval','_docStateChangeManagerService','SNAPSHOT_URL_KEY','APPLY_PERMISSION_DENIED','HEADER_MENU','_drawRectRange','LIVESHARE_REQUEST_HOST','Starting','_applyRemoteChangeset','apply','params','getParam','3469671eKcdvi','key','_collaborationSessionService','LEAVE','_transformSelections','USERS_ENTER','_cachedData','session.will-retry','add','className','InsertRowCommandId','clear','SUCCUSS','parseProtocolChangeset','getCurrent','_getAPIPrefixPath','_clearHeartbeatTimer','@univerjs/ui','_drawAnchor','_lockTransition','IImageIoService','_configService','rgba(255,\x20255,\x20255,\x200.01)','urlChange$','UUID','_anchor','roomMembers$','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','permissionRejEvent','SYNCED','debug','_createHandler','_transformStack','action','INotificationService','_updateState','_send','_context','_docSkeletonManagerService','max','SetDocZoomRatioOperation','catch','CHANGESET_REVISION_CONFILICT','_getUploadFileURL','ThresholdInterceptorFactory','socket\x20open.','onPointerEnter$','findNodePositionByCharIndex','hide','isTransformMutationsWithChangesetSuccess','collab-text-anchor-','reverse','_httpService','getUnitType','/rev/','createSocket','row','IUndoRedoService','values','next','COLLAB_WEB_SOCKET_URL_KEY','onTransformSelections','_handleEvent','_updateURLWithCurrentState','_init','Module','_loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','arc','/object','_onConnectionFailed','location','_injector','IUIPartsService','updateCursorEvent','_getSignURL','PSEUDO_FETCH_MISSING_RESULT','drawWith','getCurrentUser','PERMISSION_REJ','_onUserLeave','collabStatus.syncing','members','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','enableAuthServer','_cursorInfo$','defineProperty','1em','_range','textRanges','collabStatus.offline','getUnitOnRev','?url=','onRemoteChangeset','_queuedRemoteChangesets','_initStatusComponent','_colorIndex','_onUserJoin','_saveTaskMap','IRenderManagerService','width','_redoStacks','BehaviorSubject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','event$','INGEST','MUTATION','dispose','handleDeleteRangeMoveUp','resize','disposeWithMe','[PendingState]:\x20received\x20rejection.','3004160FOuVSh','saveChangeset','override','_commentService','TEXT_RANGE_LAYER_INDEX','has','isInternalEditorID','[UniverCollaborationClientPlugin]','leaveEvent','_waitForHeartbeatResponse','then','JOIN','_transformRemoteChangesetByIMECache','not_collab','_singleActiveUnitService','status','_collabCursorState$','HTTPRequest','_collabCursorController','LOCAL_CACHE_INTERVAL','deserializeToCombResponse','interceptor','flatMap','fromEvent','Plugin','updateMember','_render','isEditing','UserManagerService','LICENSE_DISTRO_REJECTED','handleInsertRangeMoveRight','_memberService','UNIVER_SLIDE','endRow','_onCursorDelete','fillStyle','_textBubble','concatMap','currentTheme$','_clearRedo','LocalCacheService','_unitStatus','LIVESHARE_OPERATION','startRow','requestParams','LIVESHARE_NEW_HOST','Univer','_event$','_univerInstanceService','#fff','getColor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','history','popstate','set','changesets','_collaborationController','getWorkbookSelections','closeSession','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_id','addImageSourceCache','_type','univer-online-status-icon','UNAUTHENTICATED','getCollabEntity','batchAllowed','getMember','getSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','_rescheduleHeartbeatEvent','ONLINE','[CollaborationUndoRedoService]','disableLocalCache','_hover','[DataLoaderController]','url(#off-line-single_clip0_910_343)','labelPosition','toStringTag','Error','onRemoteRej','complete','_socketService','/role','collabStatus.conflict','csAckEvent','[FetchMissState]','_onCombEvent','POST','_substituteUndoStack','FromArray','deserializeRangeWithSheet','PERMISSION_DENIED','setInterval','IDLE','_initCommandExecutedListener','body','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','delete','_session','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_change$','clearTimeout','544233WYqNEG','USERS_LEAVE','use','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','COLLAB_SUBMIT_CHANGESET_URL','throttleTime','_ensureSubject','getConfig','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','filter','serializeRangeWithSheet','LOGIN_URL_KEY','workbook','onload','toRgbString','setAlpha','SetWorksheetActivateCommand','/resources','Disposable','BuiltInUIPart','OnLineSingle','collabStatus.synced','collabStatus.notCollab','addObject','rxjs/operators','AWAITING','ITransformService','FETCH_MISS','show','session.collaboration-timeout','addObjects','_handleJoinEvent','append','getUnhiddenWorksheets','_initModules','baseRev','_handleLeaveEvent','clipPath','collaMsg','ImageIoService','EffectRefRangId','Warning','_loadSheet','csRejEvent','ws://127.0.0.1:8000/universer-api/comb/connect','getItem','MessageType','collaboration.single-unit.warning','confirm','InsertRangeMoveRightCommandId','onCommentUpdate','_shapes','SNAPSHOT_INVALID_SNAPSHOT','min','pending','M0\x200H16V16H0z','_checkMissing','handleInsertCol','_updateLocalCursor','Unknown\x20user','type','_sendingTimer','[PendingState]:\x20received\x20acknowledgement.','startsWith','collab-rect-range-','_docSkeleton','displayName','name','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','DisposableCollection','getTime','distinctUntilChanged','DEFAULT_FILE_NAME','_ws','deepClone','src','focused$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceState','collab-text-range-','APPLY_REJECT','_backgroundColor','VIEW_MAIN','_createSocket','_toggleOffline','_updateStatus','objectActions','setCurrentUser','uni.network.url-service','cursorInfo$','unit-cache-','YUUMI_URL_COL_OUT_OF_RANGE','_sheetSkeletonManagerService','@univerjs/engine-render','font','evenodd','[CollaborationState]:\x20apply\x20error!','onStateChange','_socketReady','liveShareNewHost','Subject','/universer-api/snapshot/','storage','slice','commentUpdateEvent','attrs','collaboratorID','_refreshCollabCursors','_transformService','_updateSubUnitFromURLParams','SnapshotServerOverHTTPService','refreshPermission','_anchorDot','7051RgGdlw','_pendingMutations','_updateCollabCursors','ICollaborationSocketService','close','ERROR_IMAGE','socket\x20close','ILogService','_hovered','SetSelectionsOperation','transformChangesets','UniverCollaborationClientPlugin','_getSaveTimeout','_renderManagerService','shouldCloseConn','UNIVER_DOC','_compressMutationService','_decreaseWaiting','UnitSnapshot','useObservable','@univerjs/rpc','_entities','pipe','UniverInstanceType','roomMembers','_transformUndoredo','_entityInit$','_replayCachedMutations','getAncestorScale','pushState','snapshot','74929SUcquS','listRoles','UNKNOWN_CODE','HELLO','COMPLETION_FINISHED','toDisposable','univer-offline','generateRandomId','_onConflict','_getSendChangesetTimeout','bottom','reject','extend','_revisionService','loadDoc','onlineStatusIcon','forwardRef','stringify','method','_initCloseConn','open$','saveOfflineData','removeMember','indexOf','unit','enableSingleActiveInstanceLock','_scheduleHeartbeat','href','icon','putCollaborators','subscribe','switchMap','toString','_onRecvEvent','DesktopCollaborationStatusDisplayController','image/gif','_colorAssignService','CollaborationEvent','fetching\x20missing\x20changesets\x20from\x20','/allowed','removeParam','PENDING','range','engine','ColorKit','AUTHZ_URL_KEY','_getLoginPath','getCollabCursors$','image/jpeg','isPermissionRej','_initStatusListener','url(#on-line-single_clip0_910_349)','cmd','COLORS','6qRfFpl','...','updatePermissionPoint','debounceTime','getSheetObject','combineLatest','_sessionStatus$','liveShareOperation','resolve','_refRangeService','DocStateChangeManagerService','assignAColorForMemberID','_cursors','univer-pro.collaboration-client-socket-service','RegularPolygon','HEARTBEAT_INTERVAL_KEY','save','transformMutation','fetch_missing','doc.mutation.rich-text-editing','Inject','MergeInterceptorFactory','getCollabEntity$','@univerjs/sheets-ui','asObservable','_docSyncEditingCollabCursorService','JOINING','XHRHTTPImplementation','_setupBeforeClosingHandler','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getUnitId','addEventListener','_document','[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.','TOO_MANY_REQUESTS','onCommandExecuted','code','executeCommand','_sendHeartbeat','mutations','Workbook','conflict.content','close$','getOwnPropertySymbols','CONNECTOR_DATA_TOO_LARGE','parse','column','unknown','_http','_docTransformSelectionsService','onMissingChangesets','image/bmp','_onConnectionOpen','LIVESHARE_FETCH_OPERATIONS','getOwnPropertyDescriptor','toggleOffline','tag','&source=','transformStack\x20failed!','unsubscribe','CommentService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_unlockTransition','COMMENT_UPDATE','data','Rect','UNIVER_SHEET','436yCIBxr','session.connection-failed','?size=','subscribeEvent','CommandType'];_0x1991=function(){return _0x20ed93;};return _0x1991();}let Z=class extends o[_0x3022d6(0x460)]{constructor(_0x232dc6,_0x297dae,_0x35012a){const _0x50d605=_0x3022d6;super(),u(this,_0x50d605(0x23d),new Map()),u(this,_0x50d605(0x242),new v[(_0x50d605(0x21b))]()),(this[_0x50d605(0x17c)]=_0x232dc6,this[_0x50d605(0x123)]=_0x297dae,this[_0x50d605(0x3e2)]=_0x35012a,this['_init']());}[_0x3022d6(0x147)](){const _0x3b15f2=_0x3022d6;super[_0x3b15f2(0x147)](),this['_entityInit$'][_0x3b15f2(0x19e)](),this[_0x3b15f2(0x23d)][_0x3b15f2(0x3d3)](_0x5cf84c=>_0x5cf84c[_0x3b15f2(0x147)]());}[_0x3022d6(0x276)](_0x4259a2){const _0x1b44a8=_0x3022d6;return this[_0x1b44a8(0x23d)][_0x1b44a8(0x151)](_0x4259a2)?this[_0x1b44a8(0x23d)][_0x1b44a8(0x84)](_0x4259a2)[_0x1b44a8(0x210)]:this[_0x1b44a8(0x242)][_0x1b44a8(0x23e)](v[_0x1b44a8(0x1c0)](_0x50c05e=>_0x50c05e['unitID']===_0x4259a2),v['switchMap'](_0x4f2328=>_0x4f2328[_0x1b44a8(0x210)]));}['_init'](){const _0x106562=_0x3022d6;this[_0x106562(0x17c)]['getTypeOfUnitAdded$'](o[_0x106562(0x23f)][_0x106562(0x2c0)])[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](async _0x945a9b=>{const _0x5a3170=_0x106562,_0x10867e=_0x945a9b[_0x5a3170(0x29c)](),_0x205886=await this[_0x5a3170(0x427)](_0x10867e);this[_0x5a3170(0x242)][_0x5a3170(0x116)](_0x205886),this['_entities'][_0x5a3170(0x182)](_0x10867e,_0x205886);}),this[_0x106562(0x17c)][_0x106562(0x2f6)](o[_0x106562(0x23f)][_0x106562(0x237)])['pipe'](v['takeUntil'](this[_0x106562(0x374)]))[_0x106562(0x23e)](v[_0x106562(0x1c0)](_0xa776d7=>!_0xa776d7[_0x106562(0x29c)]()['startsWith']('__')))[_0x106562(0x265)](async _0x44ccb0=>{const _0x38d6d1=_0x106562,_0x119099=_0x44ccb0[_0x38d6d1(0x29c)](),_0x1c515a=await this[_0x38d6d1(0x360)](_0x119099);this[_0x38d6d1(0x242)]['next'](_0x1c515a),this[_0x38d6d1(0x23d)]['set'](_0x119099,_0x1c515a);}),v[_0x106562(0xc5)](this[_0x106562(0x17c)][_0x106562(0x3ae)](o['UniverInstanceType'][_0x106562(0x237)]),this['_univerInstanceService'][_0x106562(0x3ae)](o[_0x106562(0x23f)][_0x106562(0x2c0)]))[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](_0x4b11ed=>{const _0x10a2a5=_0x106562,_0x45a268=_0x4b11ed['getUnitId'](),_0x3c3645=this[_0x10a2a5(0x23d)][_0x10a2a5(0x84)](_0x45a268);_0x3c3645&&(_0x3c3645[_0x10a2a5(0x147)](),this[_0x10a2a5(0x23d)][_0x10a2a5(0x1af)](_0x45a268));});}async[_0x3022d6(0x427)](_0x3b5f60){const _0xa312fd=_0x3022d6,_0x20a746=await this['_collabSessionService'][_0xa312fd(0x3b2)](_0x3b5f60),_0x4253b6=this['_injector'][_0xa312fd(0x89)](Le,_0x3b5f60,_0x20a746);return _0x4253b6[_0xa312fd(0x388)](),_0x4253b6;}async[_0x3022d6(0x360)](_0x3e8e4b){const _0x2ff481=_0x3022d6,_0x37346a=await this[_0x2ff481(0x3e2)][_0x2ff481(0x3b2)](_0x3e8e4b),_0x2818e2=this[_0x2ff481(0x123)][_0x2ff481(0x89)](Ae,_0x3e8e4b,_0x37346a);return _0x2818e2[_0x2ff481(0x388)](),_0x2818e2;}};Z=Fs([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Z),Re(0x0,o[_0x3022d6(0xb8)]),Re(0x1,o[_0x3022d6(0x291)](o['Injector'])),Re(0x2,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x2edb5c,_0x34bb34){const _0x45f535=_0x3022d6;let {radius:_0x5823fe,width:_0x427d30,height:_0x284563}=_0x34bb34;_0x5823fe=_0x5823fe!=null?_0x5823fe:0x0,_0x427d30=_0x427d30!=null?_0x427d30:0x1e,_0x284563=_0x284563!=null?_0x284563:0x1e;let _0x20f0fb=0x0,_0x58dffc=0x0,_0x3a2284=0x0;_0x20f0fb=_0x58dffc=_0x3a2284=Math[_0x45f535(0x1ec)](_0x5823fe,_0x427d30/0x2,_0x284563/0x2),_0x2edb5c['beginPath'](),_0x2edb5c['moveTo'](_0x20f0fb,0x0),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30-_0x58dffc,0x0),_0x2edb5c['arc'](_0x427d30-_0x58dffc,_0x58dffc,_0x58dffc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30,_0x284563-_0x3a2284),_0x2edb5c[_0x45f535(0x11f)](_0x427d30-_0x3a2284,_0x284563-_0x3a2284,_0x3a2284,0x0,Math['PI']/0x2,!0x1),_0x2edb5c['lineTo'](0x0,_0x284563),_0x2edb5c[_0x45f535(0x2f3)](0x0,_0x20f0fb),_0x2edb5c[_0x45f535(0x11f)](_0x20f0fb,_0x20f0fb,_0x20f0fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2edb5c[_0x45f535(0x32b)](),_0x34bb34[_0x45f535(0x43f)]&&(_0x2edb5c[_0x45f535(0x28d)](),_0x2edb5c[_0x45f535(0x16f)]=_0x34bb34[_0x45f535(0x43f)],_0x34bb34['fillRule']===_0x45f535(0x216)?_0x2edb5c['fill'](_0x45f535(0x216)):_0x2edb5c['fill'](),_0x2edb5c[_0x45f535(0x2ea)]());}class Ce extends b['Shape']{constructor(_0x3bea77,_0x5da96b){const _0x144c4f=_0x3022d6;super(_0x3bea77,_0x5da96b),u(this,_0x144c4f(0x3d4)),u(this,_0x144c4f(0x3cc)),(this['color']=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3d4)],this[_0x144c4f(0x3cc)]=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3cc)]);}static[_0x3022d6(0x128)](_0x4cba4b,_0x3fe372){const _0x21ae0f=_0x3022d6,{text:_0x19e3c2,color:_0xac1df8}=_0x3fe372;_0x4cba4b[_0x21ae0f(0x28d)](),_0x4cba4b[_0x21ae0f(0x215)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1c4164=_0x4cba4b[_0x21ae0f(0x42b)](_0x19e3c2)[_0x21ae0f(0x13f)],_0x30ab62=Math[_0x21ae0f(0x1ec)](_0x1c4164+0x2*Oe,it);Ys(_0x4cba4b,{'height':le,'radius':0x4,'width':_0x30ab62,'fill':_0xac1df8,'evented':!0x1}),_0x4cba4b['fillStyle']='#FFF';const _0x14132e=Oe,_0x3bb5bf=le-Gs,_0x415b25=it-0x2*Oe;if(_0x1c4164>_0x415b25){let _0x180057='',_0x24e553=0x0;for(const _0x412e9a of _0x19e3c2){const _0x3df609=_0x4cba4b[_0x21ae0f(0x42b)](_0x412e9a)['width'];if(_0x24e553+_0x3df609<=_0x415b25-_0x4cba4b[_0x21ae0f(0x42b)](_0x21ae0f(0x27e))[_0x21ae0f(0x13f)])_0x180057+=_0x412e9a,_0x24e553+=_0x3df609;else{_0x180057+=_0x21ae0f(0x27e);break;}}_0x4cba4b[_0x21ae0f(0x38c)](_0x180057,_0x14132e,_0x3bb5bf);}else _0x4cba4b[_0x21ae0f(0x38c)](_0x19e3c2,_0x14132e,_0x3bb5bf);_0x4cba4b[_0x21ae0f(0x2ea)]();}[_0x3022d6(0x3e0)](_0x37aefa){const _0x22084e=_0x3022d6;Ce[_0x22084e(0x128)](_0x37aefa,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x3022d6(0x331)]{constructor(_0x342ef7,_0x6b98c0){const _0x432242=_0x3022d6;super(_0x342ef7,_0x6b98c0),u(this,'_color'),u(this,_0x432242(0x230),!0x1),u(this,_0x432242(0x133)),u(this,_0x432242(0x332),''),u(this,_0x432242(0x378),_0x432242(0x2d3)),u(this,'_backgroundColor'),(_0x6b98c0&&this[_0x432242(0x30e)](_0x6b98c0),this[_0x432242(0x109)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x0})),this[_0x432242(0x35d)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x1})));}['setShapeProps'](_0x3bed4f){const _0x5b3d7e=_0x3022d6;var _0x258065,_0x4d14c0,_0x53ce16,_0xcbae31,_0x2b6f9a,_0xc70a0a;this[_0x5b3d7e(0x2d8)]=(_0x258065=_0x3bed4f[_0x5b3d7e(0x3d4)])!=null?_0x258065:this[_0x5b3d7e(0x2d8)],this[_0x5b3d7e(0x230)]=(_0x4d14c0=_0x3bed4f['hovered'])!=null?_0x4d14c0:this[_0x5b3d7e(0x230)],this[_0x5b3d7e(0x133)]=(_0x53ce16=_0x3bed4f['range'])!=null?_0x53ce16:this[_0x5b3d7e(0x133)],this[_0x5b3d7e(0x332)]=(_0xcbae31=_0x3bed4f['name'])!=null?_0xcbae31:this[_0x5b3d7e(0x332)],this[_0x5b3d7e(0x378)]=(_0x2b6f9a=_0x3bed4f[_0x5b3d7e(0x19a)])!=null?_0x2b6f9a:this[_0x5b3d7e(0x378)],this['_backgroundColor']=(_0xc70a0a=_0x3bed4f[_0x5b3d7e(0x82)])!=null?_0xc70a0a:this['_backgroundColor'],this[_0x5b3d7e(0x395)]({'width':_0x3bed4f[_0x5b3d7e(0x13f)],'height':_0x3bed4f['height']});}['onMouseMove'](_0x350b75){const _0x289a57=_0x3022d6,{row:_0xc391cf,column:_0x391383}=_0x350b75;if(_0xc391cf>=this[_0x289a57(0x133)][_0x289a57(0x177)]&&_0xc391cf<=this[_0x289a57(0x133)][_0x289a57(0x16d)]&&_0x391383>=this[_0x289a57(0x133)][_0x289a57(0x36d)]&&_0x391383<=this[_0x289a57(0x133)]['endColumn']){this[_0x289a57(0x30e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1f4f29){return!0x1;}['_draw'](_0x59718e){const _0xb96a33=_0x3022d6;b[_0xb96a33(0x2bf)][_0xb96a33(0x128)](_0x59718e,{'width':this[_0xb96a33(0x13f)],'height':this['height'],'strokeWidth':Xs,'stroke':this[_0xb96a33(0x2d8)],'evented':!0x1,'fill':this[_0xb96a33(0x208)]}),this[_0xb96a33(0x230)]&&(_0x59718e[_0xb96a33(0x28d)](),_0x59718e[_0xb96a33(0x456)](0x1,0x0,0x0,0x1,this[_0xb96a33(0x13f)],this[_0xb96a33(0x378)]===_0xb96a33(0x251)?0x0:-le),Ce[_0xb96a33(0x128)](_0x59718e,{'text':this[_0xb96a33(0x332)],'color':this[_0xb96a33(0x2d8)]}),_0x59718e['restore']());}}var qs=Object['defineProperty'],zs=Object[_0x3022d6(0x2b4)],Js=(_0x3aa13d,_0x45407d,_0x233dab,_0x2918de)=>{const _0x5b9390=_0x3022d6;for(var _0x17d4d9=_0x2918de>0x1?void 0x0:_0x2918de?zs(_0x45407d,_0x233dab):_0x45407d,_0x561783=_0x3aa13d[_0x5b9390(0x2ce)]-0x1,_0xc7b38e;_0x561783>=0x0;_0x561783--)(_0xc7b38e=_0x3aa13d[_0x561783])&&(_0x17d4d9=(_0x2918de?_0xc7b38e(_0x45407d,_0x233dab,_0x17d4d9):_0xc7b38e(_0x17d4d9))||_0x17d4d9);return _0x2918de&&_0x17d4d9&&qs(_0x45407d,_0x233dab,_0x17d4d9),_0x17d4d9;},De=(_0xc3d184,_0x2a4a22)=>(_0x9f6b3f,_0x1c875c)=>_0x2a4a22(_0x9f6b3f,_0x1c875c,_0xc3d184);const Zs=0x1389;let je=class extends o[_0x3022d6(0x460)]{constructor(_0x4d393c,_0x5f3317,_0x23de27,_0x5292de){const _0x3d5dea=_0x3022d6;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x3d5dea(0x100)]=_0x4d393c,this[_0x3d5dea(0x213)]=_0x5f3317,this[_0x3d5dea(0x15e)]=_0x23de27,this[_0x3d5dea(0x2f0)]=_0x5292de,this[_0x3d5dea(0x11b)]());}['_init'](){const _0x243d82=_0x3022d6;this[_0x243d82(0x213)][_0x243d82(0x44b)][_0x243d82(0x23e)](E[_0x243d82(0xc7)](this[_0x243d82(0x374)]),E['switchMap'](_0x4c804c=>{const _0x2932e6=_0x243d82;if(_0x4c804c){const _0x5bbbf5=_0x4c804c[_0x2932e6(0x41b)];return v[_0x2932e6(0x282)](this['_collabCursorController'][_0x2932e6(0x276)](this[_0x2932e6(0x100)][_0x2932e6(0x347)]),this[_0x2932e6(0x2f0)]['currentTheme$'])[_0x2932e6(0x23e)](E[_0x2932e6(0x317)](([_0x2b169e,_0x3e8f44])=>{const _0x26d10a=new Map();return _0x2b169e['forEach']((_0x220325,_0x2b8d0d)=>{const _0xfbb881=_0xbc10;if(_0x220325[_0xfbb881(0x43c)]===_0x5bbbf5){const _0x51299e={..._0x220325};_0x51299e[_0xfbb881(0x3d4)]=_0x3e8f44[_0x220325[_0xfbb881(0x3d4)]],_0x26d10a['set'](_0x2b8d0d,_0x51299e);}}),{'skeleton':_0x4c804c,'cursors':_0x26d10a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x243d82(0x265)](({skeleton:_0x8f0d24,cursors:_0x4963ef})=>{const _0x4816c2=_0x243d82;this[_0x4816c2(0x80)](),_0x8f0d24&&this['_updateCollabCursors'](_0x8f0d24,_0x4963ef);}),this[_0x243d82(0x213)]['currentSkeleton$'][_0x243d82(0x265)](_0x3b1b34=>{const _0x5d54e4=_0x243d82;if(_0x3b1b34==null)return;const {skeleton:_0x29399d}=_0x3b1b34,{scene:_0x5e2c8e}=this['_context'];_0x5e2c8e[_0x5d54e4(0x2d0)][_0x5d54e4(0x2c4)](xe(_0x399af6=>{const _0x110758=_0x5d54e4;var _0x15cc97,_0x4a5003;const {offsetX:_0xadeba4,offsetY:_0x10ee73}=_0x399af6,{x:_0x420f2a,y:_0x2d5269}=_0x5e2c8e['getRelativeToViewportCoord'](b[_0x110758(0x3fe)][_0x110758(0x1a7)]([_0xadeba4,_0x10ee73])),{scaleX:_0x586e02,scaleY:_0x3654f8}=_0x5e2c8e[_0x110758(0x244)](),_0xeaaa39=_0x5e2c8e['getViewport'](J[_0x110758(0x96)][_0x110758(0x209)]),_0x50eae8=_0x5e2c8e[_0x110758(0x35f)](b['Vector2']['FromArray']([_0x420f2a,_0x2d5269]),_0xeaaa39),_0x424466=_0x29399d['getCellPositionByOffset'](_0xadeba4,_0x10ee73,_0x586e02,_0x3654f8,_0x50eae8);((_0x15cc97=this[_0x110758(0x457)])==null?void 0x0:_0x15cc97['column'])===_0x424466[_0x110758(0x2ac)]&&((_0x4a5003=this[_0x110758(0x457)])==null?void 0x0:_0x4a5003[_0x110758(0x113)])===_0x424466[_0x110758(0x113)]||this[_0x110758(0x289)]['forEach'](_0xf813ff=>{const _0x4d6abb=_0x110758;_0xf813ff[_0x4d6abb(0x2f8)](_0x424466);});},0x64));});}['_updateCollabCursors'](_0x162432,_0x36b87b){const _0x271614=_0x3022d6;var _0x1c0a19;const _0x30aad7=(_0x1c0a19=this[_0x271614(0x213)][_0x271614(0xe7)]())==null?void 0x0:_0x1c0a19[_0x271614(0x98)];if(!_0x30aad7)return;const _0x3d4697=this[_0x271614(0x7f)]();if(!_0x3d4697)return;this[_0x271614(0x289)]['forEach'](_0x13bcf8=>{const _0x3f8f82=_0x271614;_0x13bcf8[_0x3f8f82(0x39b)]();});const {scene:_0x21e4f2}=_0x3d4697,_0x11d76f=Qs(Array[_0x271614(0x39f)](_0x36b87b[_0x271614(0x115)]()))[_0x271614(0x317)](_0x33908d=>{const _0x3f133e=_0x271614,{color:_0x4df8a8,range:_0x26408b,name:_0x1e0130,selection:_0x4fac3e,sheetID:_0x3a0b2f}=_0x33908d,{startColumn:_0x4f0145,startRow:_0x58a29f,endColumn:_0x3a0272,endRow:_0x22cf9e}=_0x26408b,_0x16d1e5=J['getCoordByCell'](_0x58a29f,_0x4f0145,_0x21e4f2,_0x30aad7),_0x14414f=J[_0x3f133e(0x416)](_0x22cf9e,_0x3a0272,_0x21e4f2,_0x30aad7),{columnHeaderHeightAndMarginTop:_0x34ac34}=_0x30aad7,{startX:_0x18058c,startY:_0x3faf28}=_0x16d1e5,{endX:_0x3d40df,endY:_0x358303}=_0x14414f,_0x54d9f5=_0x3d40df-_0x18058c,_0x23816e=_0x358303-_0x3faf28,_0x38e694={'labelPosition':_0x3faf28-_0x34ac34>=le?'top':_0x3f133e(0x251),'sheetID':_0x3a0b2f,'range':_0x26408b,'color':_0x4df8a8,'name':_0x1e0130,'selection':_0x4fac3e,'left':_0x18058c,'top':_0x3faf28,'width':_0x54d9f5,'height':_0x23816e,'evented':!0x1,'zIndex':Zs};return new Rt(_0x1e0130,_0x38e694);});_0x21e4f2[_0x271614(0x1d5)](_0x11d76f,Ks),this[_0x271614(0x289)]=new Set(_0x11d76f);}[_0x3022d6(0x80)](){const _0x451085=_0x3022d6;var _0x2f00ee;(_0x2f00ee=this['_cursors'])==null||_0x2f00ee[_0x451085(0x3d3)](_0x2f9d3c=>_0x2f9d3c[_0x451085(0x147)]());}[_0x3022d6(0x7f)](){const _0x329599=_0x3022d6;return J[_0x329599(0x281)](this[_0x329599(0x100)][_0x329599(0x25f)],this[_0x329599(0x100)]);}};je=Js([De(0x1,o[_0x3022d6(0x291)](J[_0x3022d6(0x399)])),De(0x2,o[_0x3022d6(0x291)](Z)),De(0x3,o[_0x3022d6(0x291)](o['ThemeService']))],je);function Qs(_0xb74c3d){const _0x138547=_0x3022d6,_0x3f69df=new Map();return _0xb74c3d[_0x138547(0x3d3)](_0x16f129=>{const _0x3327b4=_0x138547;if(_0x3f69df['has'](_0x16f129[_0x3327b4(0x3a7)])){const _0x286a2d=_0x3f69df[_0x3327b4(0x84)](_0x16f129['selection']);_0x286a2d[_0x3327b4(0x1fa)]+=',\x20'+_0x16f129['name'];}else _0x3f69df[_0x3327b4(0x182)](_0x16f129[_0x3327b4(0x3a7)],_0x16f129);}),Array[_0x138547(0x39f)](_0x3f69df[_0x138547(0x115)]());}var N=function(){const _0x2ac466=_0x3022d6;return N=Object[_0x2ac466(0x9c)]||function(_0x34108f){const _0x5f37a0=_0x2ac466;for(var _0x4ea710,_0x5c63b9=0x1,_0x1292cc=arguments[_0x5f37a0(0x2ce)];_0x5c63b9<_0x1292cc;_0x5c63b9++){_0x4ea710=arguments[_0x5c63b9];for(var _0x1eb999 in _0x4ea710)Object[_0x5f37a0(0x37c)][_0x5f37a0(0x353)]['call'](_0x4ea710,_0x1eb999)&&(_0x34108f[_0x1eb999]=_0x4ea710[_0x1eb999]);}return _0x34108f;},N[_0x2ac466(0xd6)](this,arguments);},ei=function(_0x39f4b8,_0x20d63e){const _0x3175e1=_0x3022d6;var _0x2908b5={};for(var _0x29e71f in _0x39f4b8)Object[_0x3175e1(0x37c)][_0x3175e1(0x353)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f)&&_0x20d63e[_0x3175e1(0x25e)](_0x29e71f)<0x0&&(_0x2908b5[_0x29e71f]=_0x39f4b8[_0x29e71f]);if(_0x39f4b8!=null&&typeof Object[_0x3175e1(0x2a9)]=='function'){for(var _0x4f6db4=0x0,_0x29e71f=Object[_0x3175e1(0x2a9)](_0x39f4b8);_0x4f6db4<_0x29e71f[_0x3175e1(0x2ce)];_0x4f6db4++)_0x20d63e['indexOf'](_0x29e71f[_0x4f6db4])<0x0&&Object[_0x3175e1(0x37c)][_0x3175e1(0x35c)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f[_0x4f6db4])&&(_0x2908b5[_0x29e71f[_0x4f6db4]]=_0x39f4b8[_0x29e71f[_0x4f6db4]]);}return _0x2908b5;},Ge=y['forwardRef'](function(_0xe8c99c,_0x5ec6b1){const _0x510bdf=_0x3022d6;var _0x14b232=_0xe8c99c[_0x510bdf(0x263)],_0x2aca30=_0xe8c99c['id'],_0x40d21b=_0xe8c99c[_0x510bdf(0xe2)],_0x2c69da=_0xe8c99c[_0x510bdf(0x253)],_0x4ccd10=ei(_0xe8c99c,[_0x510bdf(0x263),'id',_0x510bdf(0xe2),_0x510bdf(0x253)]),_0x2da550='univerjs-icon\x20univerjs-icon-'[_0x510bdf(0x419)](_0x2aca30,'\x20')['concat'](_0x40d21b||'')[_0x510bdf(0x2f7)](),_0x3ddee3=y[_0x510bdf(0x425)]('_'[_0x510bdf(0x419)](ii()));return Ot(_0x14b232,''[_0x510bdf(0x419)](_0x2aca30),{'defIds':_0x14b232[_0x510bdf(0x379)],'idSuffix':_0x3ddee3['current']},N({'ref':_0x5ec6b1,'className':_0x2da550},_0x4ccd10),_0x2c69da);});function Ot(_0x5b6e71,_0x467606,_0x1e566c,_0x3644dd,_0x14fa7b){const _0x5227cc=_0x3022d6;return y[_0x5227cc(0x7d)](_0x5b6e71['tag'],N(N({'key':_0x467606},ti(_0x5b6e71,_0x1e566c,_0x14fa7b)),_0x3644dd),(si(_0x5b6e71,_0x1e566c)['children']||[])[_0x5227cc(0x317)](function(_0x24fce0,_0xe7e765){const _0x44dcfe=_0x5227cc;return Ot(_0x24fce0,''[_0x44dcfe(0x419)](_0x467606,'-')['concat'](_0x5b6e71['tag'],'-')['concat'](_0xe7e765),_0x1e566c,void 0x0,_0x14fa7b);}));}function ti(_0x5053d1,_0x3f3cec,_0x347d70){const _0x1f2b68=_0x3022d6;var _0x166cea=N({},_0x5053d1[_0x1f2b68(0x220)]);_0x347d70!=null&&_0x347d70['colorChannel1']&&_0x166cea[_0x1f2b68(0x43f)]===_0x1f2b68(0x30f)&&(_0x166cea[_0x1f2b68(0x43f)]=_0x347d70[_0x1f2b68(0x30f)]);var _0x13295e=_0x3f3cec[_0x1f2b68(0x379)];return!_0x13295e||_0x13295e[_0x1f2b68(0x2ce)]===0x0||(_0x5053d1[_0x1f2b68(0x2b6)]===_0x1f2b68(0x1b7)&&_0x166cea['xlink:href']&&(_0x166cea[_0x1f2b68(0x2d2)]=_0x166cea['xlink:href']+_0x3f3cec[_0x1f2b68(0x361)]),Object[_0x1f2b68(0x8e)](_0x166cea)[_0x1f2b68(0x3d3)](function(_0x2f18e6){const _0x34e318=_0x1f2b68;var _0x4a62de=_0x2f18e6[0x0],_0x2a1e82=_0x2f18e6[0x1];typeof _0x2a1e82=='string'&&(_0x166cea[_0x4a62de]=_0x2a1e82['replace'](/url\(#(.*)\)/,_0x34e318(0x3ee)[_0x34e318(0x419)](_0x3f3cec[_0x34e318(0x361)],')')));})),_0x166cea;}function si(_0x2bf097,_0x4435bb){const _0x33e519=_0x3022d6;var _0x197652,_0xa9b418=_0x4435bb['defIds'];return!_0xa9b418||_0xa9b418['length']===0x0?_0x2bf097:_0x2bf097[_0x33e519(0x2b6)]==='defs'&&(!((_0x197652=_0x2bf097['children'])===null||_0x197652===void 0x0)&&_0x197652[_0x33e519(0x2ce)])?N(N({},_0x2bf097),{'children':_0x2bf097[_0x33e519(0x436)][_0x33e519(0x317)](function(_0xdb6428){const _0x26eadc=_0x33e519;return typeof _0xdb6428[_0x26eadc(0x220)]['id']==_0x26eadc(0x383)&&_0xa9b418&&_0xa9b418[_0x26eadc(0x25e)](_0xdb6428[_0x26eadc(0x220)]['id'])>-0x1?N(N({},_0xdb6428),{'attrs':N(N({},_0xdb6428['attrs']),{'id':_0xdb6428['attrs']['id']+_0x4435bb[_0x26eadc(0x361)]})}):_0xdb6428;})}):_0x2bf097;}function ii(){const _0x119000=_0x3022d6;return Math[_0x119000(0x3d8)]()['toString'](0x24)[_0x119000(0x2db)](0x2,0x8);}Ge['displayName']=_0x3022d6(0x403);var ni={'tag':_0x3022d6(0x2cc),'attrs':{'fill':_0x3022d6(0x45e),'viewBox':_0x3022d6(0x3c8),'width':_0x3022d6(0x132),'height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x199)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3022d6(0x9d),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x3d7)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee)}}]}]}],'defIds':[_0x3022d6(0x3d7)]},Dt=y[_0x3022d6(0x257)](function(_0x26c89e,_0x5c026c){const _0x213ded=_0x3022d6;return y[_0x213ded(0x7d)](Ge,Object[_0x213ded(0x9c)]({},_0x26c89e,{'id':_0x213ded(0x40e),'ref':_0x5c026c,'icon':ni}));});Dt[_0x3022d6(0x1f9)]='OffLineSingle';var ri={'tag':_0x3022d6(0x2cc),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x27a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'stroke':_0x3022d6(0xc4),'d':_0x3022d6(0x302),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':_0x3022d6(0x401),'strokeWidth':1.2}}]},{'tag':_0x3022d6(0x421),'attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x43a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=y['forwardRef'](function(_0x5780af,_0x57c8c9){const _0x339c2a=_0x3022d6;return y[_0x339c2a(0x7d)](Ge,Object[_0x339c2a(0x9c)]({},_0x5780af,{'id':_0x339c2a(0x411),'ref':_0x57c8c9,'icon':ri}));});Pt[_0x3022d6(0x1f9)]=_0x3022d6(0x1cb);const oi=_0x3022d6(0x18b),ai=_0x3022d6(0x324),ci='univer-online-status',li=_0x3022d6(0x33c),hi=_0x3022d6(0x24d),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x119ebd){const _0x1a70c7=_0x3022d6;switch(_0x119ebd){case D[_0x1a70c7(0x316)]:return _0x1a70c7(0x135);case D['CONFLICT']:return _0x1a70c7(0x1a1);case D['FETCH_MISS']:return _0x1a70c7(0xb3);case D[_0x1a70c7(0x463)]:return _0x1a70c7(0x1cd);case D[_0x1a70c7(0x270)]:case D[_0x1a70c7(0x1d0)]:case D[_0x1a70c7(0x319)]:return _0x1a70c7(0x12c);case D[_0x1a70c7(0xf8)]:return _0x1a70c7(0x1cc);}}function Ut(_0x524d32){const _0x400e06=_0x3022d6,{status$:_0x2a8259}=_0x524d32,_0x3295ce=L[_0x400e06(0x23b)](_0x2a8259,D[_0x400e06(0x463)]),_0x45f144=o['useDependency'](o[_0x400e06(0x43e)]),_0x5ca871=_0x3295ce!==D[_0x400e06(0x316)],_0x2dcca8=_0x45f144['t'](_i(_0x3295ce)),_0x1d51bb=kt(ne['onlineStatus'],{[ne['online']]:_0x5ca871,[ne['offline']]:!_0x5ca871}),_0x38df82=_0x5ca871?y[_0x400e06(0x7d)](Pt,null):y['createElement'](Dt,null);return y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':_0x1d51bb},y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x256)]},_0x38df82),y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x39d)]},_0x2dcca8));}var ui=Object[_0x3022d6(0x131)],di=Object['getOwnPropertyDescriptor'],Si=(_0x41599d,_0x5300c3,_0x2085ed,_0xfb07db)=>{const _0x2f9fc4=_0x3022d6;for(var _0x201f73=_0xfb07db>0x1?void 0x0:_0xfb07db?di(_0x5300c3,_0x2085ed):_0x5300c3,_0x22e295=_0x41599d[_0x2f9fc4(0x2ce)]-0x1,_0x17b5d8;_0x22e295>=0x0;_0x22e295--)(_0x17b5d8=_0x41599d[_0x22e295])&&(_0x201f73=(_0xfb07db?_0x17b5d8(_0x5300c3,_0x2085ed,_0x201f73):_0x17b5d8(_0x201f73))||_0x201f73);return _0xfb07db&&_0x201f73&&ui(_0x5300c3,_0x2085ed,_0x201f73),_0x201f73;},he=(_0x15d59f,_0x118a34)=>(_0xa6152a,_0x2d004b)=>_0x118a34(_0xa6152a,_0x2d004b,_0x15d59f);exports[_0x3022d6(0x269)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x3a016d,_0xc7d70c,_0x2c4e79,_0x22ef6b){const _0x4073a1=_0x3022d6;super(),u(this,_0x4073a1(0x30d),new v[(_0x4073a1(0x141))](D[_0x4073a1(0x463)])),(this[_0x4073a1(0x17c)]=_0x3a016d,this['_uiPartsService']=_0xc7d70c,this[_0x4073a1(0x123)]=_0x2c4e79,this[_0x4073a1(0x184)]=_0x22ef6b,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3022d6(0x13a)](){const _0x261b2b=_0x3022d6;this[_0x261b2b(0x14a)](this[_0x261b2b(0x326)][_0x261b2b(0x9a)](L[_0x261b2b(0x1ca)][_0x261b2b(0xd1)],()=>o[_0x261b2b(0x45a)](vi({'status$':this['_status$'][_0x261b2b(0x295)]()}),this[_0x261b2b(0x123)])));}[_0x3022d6(0x279)](){const _0x53a634=_0x3022d6;this[_0x53a634(0x14a)](o[_0x53a634(0x24c)](this[_0x53a634(0x17c)][_0x53a634(0x203)][_0x53a634(0x23e)](v[_0x53a634(0x266)](()=>{const _0x385874=_0x53a634,_0x47889b=this[_0x385874(0x17c)][_0x385874(0x45c)]();return _0x47889b?this['_collaborationController'][_0x385874(0x293)](_0x47889b[_0x385874(0x29c)]()):v['of'](null);}),v[_0x53a634(0x266)](_0x20cdcb=>_0x20cdcb?_0x20cdcb['status$']:v['of'](D['NOT_COLLAB'])))[_0x53a634(0x265)](_0x213a81=>{const _0x1bd95f=_0x53a634;this[_0x1bd95f(0x30d)][_0x1bd95f(0x116)](_0x213a81);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)]['Starting'],exports[_0x3022d6(0x269)]),he(0x0,o[_0x3022d6(0xb8)]),he(0x1,L[_0x3022d6(0x124)]),he(0x2,o['Inject'](o[_0x3022d6(0x448)])),he(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x431)]))],exports[_0x3022d6(0x269)]);function vi(_0x5d73a5){const {status$:_0x1cc3f6}=_0x5d73a5;return function(){const _0xaa8b48=_0xbc10;return y[_0xaa8b48(0x7d)](Ut,{'status$':_0x1cc3f6});};}const Ye=o[_0x3022d6(0x2f4)](_0x3022d6(0x20f));var mi=Object[_0x3022d6(0x131)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x447b3c,_0x10bd04,_0x220bc4,_0x462cee)=>{for(var _0x4c3fa5=_0x462cee>0x1?void 0x0:_0x462cee?gi(_0x10bd04,_0x220bc4):_0x10bd04,_0x2cb0ae=_0x447b3c['length']-0x1,_0x2dd1f8;_0x2cb0ae>=0x0;_0x2cb0ae--)(_0x2dd1f8=_0x447b3c[_0x2cb0ae])&&(_0x4c3fa5=(_0x462cee?_0x2dd1f8(_0x10bd04,_0x220bc4,_0x4c3fa5):_0x2dd1f8(_0x4c3fa5))||_0x4c3fa5);return _0x462cee&&_0x4c3fa5&&mi(_0x10bd04,_0x220bc4,_0x4c3fa5),_0x4c3fa5;},z=(_0x46a470,_0x3b6322)=>(_0x24c1ca,_0x26e90d)=>_0x3b6322(_0x24c1ca,_0x26e90d,_0x46a470);exports[_0x3022d6(0x336)]=class extends o[_0x3022d6(0x460)]{constructor(_0x10f1b6,_0x4a50cf,_0x200a58,_0x285826,_0x322326,_0x4dabf7){const _0xe46bbc=_0x3022d6;super(),this[_0xe46bbc(0x414)]=_0x10f1b6,this['_logService']=_0x4a50cf,this[_0xe46bbc(0x467)]=_0x200a58,this[_0xe46bbc(0x3ea)]=_0x285826,this[_0xe46bbc(0x2d9)]=_0x322326,_0x4dabf7?_0x4dabf7==null||_0x4dabf7[_0xe46bbc(0x35b)]()[_0xe46bbc(0x156)](()=>this[_0xe46bbc(0x11b)]()):(this[_0xe46bbc(0x38b)][_0xe46bbc(0xf9)](_0xe46bbc(0x198),_0xe46bbc(0x17f)),this['_init']());}async['_init'](){const _0x1eae74=_0x3022d6,_0x72392=this[_0x1eae74(0x414)][_0x1eae74(0xd8)](_0x1eae74(0x25f)),_0x463797=this['_urlService']['getParam'](_0x1eae74(0x1f3));if(!_0x72392||!_0x463797){this[_0x1eae74(0x38b)]['debug'](_0x1eae74(0x198),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463797)){case j[_0x1eae74(0x2c0)]:{const _0x55eab1=await this[_0x1eae74(0x1e1)](_0x72392);this[_0x1eae74(0x391)](_0x55eab1);break;}case j['UNIVER_DOC']:{await this[_0x1eae74(0x11d)](_0x72392);break;}default:{this[_0x1eae74(0x38b)][_0x1eae74(0x404)]('[DataLoaderController]',_0x1eae74(0x2dd));break;}}}async[_0x3022d6(0x391)](_0x27dfc1){const _0x113115=_0x3022d6;await this[_0x113115(0x224)](_0x27dfc1),_0x27dfc1[_0x113115(0x409)][_0x113115(0x23e)](v['takeUntil'](this[_0x113115(0x374)]))[_0x113115(0x265)](_0x1a3879=>{const _0x5c0690=_0x113115;_0x1a3879&&this[_0x5c0690(0x11a)](_0x1a3879);}),this[_0x113115(0x414)][_0x113115(0xf0)][_0x113115(0x23e)](v[_0x113115(0xc7)](this[_0x113115(0x374)]))[_0x113115(0x265)](()=>this[_0x113115(0x224)](_0x27dfc1));}[_0x3022d6(0x11a)](_0x345ca6,_0x16e0d8=!0x1){const _0x1d08dd=_0x3022d6,_0x2ff214=this[_0x1d08dd(0x414)]['getParam'](_0x1d08dd(0x44d));_0x345ca6[_0x1d08dd(0x3a8)]()!==_0x2ff214&&this[_0x1d08dd(0x414)][_0x1d08dd(0xad)](_0x1d08dd(0x44d),_0x345ca6[_0x1d08dd(0x3a8)](),_0x16e0d8);}async[_0x3022d6(0x224)](_0x40133d){const _0x5584aa=_0x3022d6;var _0x37948b;const _0x5cb5a0=this[_0x5584aa(0x414)][_0x5584aa(0xd8)]('subunit');if(!_0x5cb5a0||!_0x40133d[_0x5584aa(0xb4)](_0x5cb5a0)){const _0x318f11=_0x40133d[_0x5584aa(0x1d8)]()[0x0],_0x4331f2=_0x40133d[_0x5584aa(0xb4)](_0x318f11);if(!_0x4331f2)return;this['_updateURLWithCurrentState'](_0x4331f2,!0x0),await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p[_0x5584aa(0x1c7)]['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x318f11});return;}((_0x37948b=_0x40133d[_0x5584aa(0x34b)]())==null?void 0x0:_0x37948b[_0x5584aa(0x3a8)]())!==_0x5cb5a0&&await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x5cb5a0});}async['_loadSheet'](_0x2dd0af){const _0x249a55=_0x3022d6;let _0x171d02=0x0;const _0xfb1343=await this['_localCacheService'][_0x249a55(0x3b8)](_0x2dd0af);return _0xfb1343&&(_0xfb1343[_0x249a55(0xca)]||_0xfb1343['mutations'][_0x249a55(0x2ce)]!==0x0)&&(_0x171d02=_0xfb1343[_0x249a55(0x342)]),_0x171d02===0x0&&this['_logService']['debug'](_0x249a55(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x249a55(0x3bc)](_0x2dd0af,_0x171d02);}async[_0x3022d6(0x11d)](_0x36aaef){const _0x16302f=_0x3022d6;let _0x47db5e=0x0;const _0xfea10f=await this['_localCacheService'][_0x16302f(0x3b8)](_0x36aaef);return _0xfea10f&&(_0xfea10f[_0x16302f(0xca)]||_0xfea10f['mutations'][_0x16302f(0x2ce)]!==0x0)&&(_0x47db5e=_0xfea10f['rev']),_0x47db5e===0x0&&this[_0x16302f(0x38b)][_0x16302f(0xf9)](_0x16302f(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16302f(0x2d9)][_0x16302f(0x255)](_0x36aaef,_0x47db5e);}},exports['DataLoaderController']=fi([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x336)]),z(0x0,Ye),z(0x1,o[_0x3022d6(0x22f)]),z(0x2,o['ICommandService']),z(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),z(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x393)])),z(0x5,o['Optional'](Bt[_0x3022d6(0x390)]))],exports[_0x3022d6(0x336)]);var Ii=Object[_0x3022d6(0x131)],pi=Object[_0x3022d6(0x2b4)],Ei=(_0x2ab917,_0x820c24,_0x3820c3,_0x284d94)=>{const _0x436596=_0x3022d6;for(var _0x24e433=_0x284d94>0x1?void 0x0:_0x284d94?pi(_0x820c24,_0x3820c3):_0x820c24,_0xea3f42=_0x2ab917[_0x436596(0x2ce)]-0x1,_0x3b7e49;_0xea3f42>=0x0;_0xea3f42--)(_0x3b7e49=_0x2ab917[_0xea3f42])&&(_0x24e433=(_0x284d94?_0x3b7e49(_0x820c24,_0x3820c3,_0x24e433):_0x3b7e49(_0x24e433))||_0x24e433);return _0x284d94&&_0x24e433&&Ii(_0x820c24,_0x3820c3,_0x24e433),_0x24e433;},nt=(_0xf9a780,_0xd54f6e)=>(_0xcba332,_0x46995e)=>_0xd54f6e(_0xcba332,_0x46995e,_0xf9a780);const Ci=_0x3022d6(0x1ff),bi=_0x3022d6(0x17a);let ue=class extends o['Disposable']{constructor(_0x418202,_0x4a82b0){const _0x37c89f=_0x3022d6;super(),this['_univerInstanceService']=_0x418202,this[_0x37c89f(0xee)]=_0x4a82b0,this[_0x37c89f(0x11b)]();}[_0x3022d6(0x11b)](){const _0x1d83f5=_0x3022d6;this[_0x1d83f5(0x14a)](o[_0x1d83f5(0x24c)](this[_0x1d83f5(0x17c)][_0x1d83f5(0x203)][_0x1d83f5(0x265)](()=>{const _0x1cf256=_0x1d83f5;var _0x42e6c7;const _0x5fa7e8=this[_0x1cf256(0x17c)]['getFocusedUnit']();let _0x186205=(_0x42e6c7=this[_0x1cf256(0xee)][_0x1cf256(0x1bd)](Ci))!=null?_0x42e6c7:bi;_0x5fa7e8 instanceof o[_0x1cf256(0x2a6)]&&(_0x186205=_0x5fa7e8[_0x1cf256(0x1fa)]),document[_0x1cf256(0x434)]=_0x186205;})));}};ue=Ei([o['OnLifecycle'](o['LifecycleStages'][_0x3022d6(0x32d)],ue),nt(0x0,o[_0x3022d6(0xb8)]),nt(0x1,o['IConfigService'])],ue);var Ti=Object['defineProperty'],Ri=Object[_0x3022d6(0x2b4)],Oi=(_0x373aa7,_0x34845b,_0x3c769c,_0x47cb0f)=>{for(var _0x1dfae2=_0x47cb0f>0x1?void 0x0:_0x47cb0f?Ri(_0x34845b,_0x3c769c):_0x34845b,_0x26dbf5=_0x373aa7['length']-0x1,_0x516862;_0x26dbf5>=0x0;_0x26dbf5--)(_0x516862=_0x373aa7[_0x26dbf5])&&(_0x1dfae2=(_0x47cb0f?_0x516862(_0x34845b,_0x3c769c,_0x1dfae2):_0x516862(_0x1dfae2))||_0x1dfae2);return _0x47cb0f&&_0x1dfae2&&Ti(_0x34845b,_0x3c769c,_0x1dfae2),_0x1dfae2;},rt=(_0x211d48,_0x233aea)=>(_0x4480e2,_0x4b4b91)=>_0x233aea(_0x4480e2,_0x4b4b91,_0x211d48);exports['SnapshotServerOverHTTPService']=class{constructor(_0x512580,_0x3da7f5){const _0x4fa6e8=_0x3022d6;this[_0x4fa6e8(0xee)]=_0x512580,this[_0x4fa6e8(0x10f)]=_0x3da7f5;}async[_0x3022d6(0x136)](_0x3a36a7,_0x5c15d3){const _0x40478e=_0x3022d6;var _0x2b8d79;const {unitID:_0x17db55,type:_0x23d5ea,revision:_0x5c5d8e=0x0}=_0x5c15d3,_0x178704=this['_getSnapshotAPIPrefix']()+'/'+_0x23d5ea+_0x40478e(0x3b5)+_0x17db55+_0x40478e(0x111)+_0x5c5d8e,_0x5292b7=(await this['_httpService'][_0x40478e(0x84)](_0x178704))[_0x40478e(0x1ad)],_0x44f102=(_0x2b8d79=_0x5292b7[_0x40478e(0x246)])==null?void 0x0:_0x2b8d79[_0x40478e(0x1c3)];if(_0x44f102){const _0x197afa=_0x44f102==null?void 0x0:_0x44f102[_0x40478e(0x2f2)],_0x3b9c5f=o['textEncoder']['encode'](o['b64DecodeUnicode'](_0x197afa));_0x44f102['originalMeta']=_0x3b9c5f,Object[_0x40478e(0x8e)](_0x44f102['sheets'])[_0x40478e(0x3d3)](([,_0x39a3e4])=>{const _0x2c8882=_0x40478e,_0x341d20=_0x39a3e4[_0x2c8882(0x2f2)],_0x4b3cd6=o['textEncoder'][_0x2c8882(0x385)](o[_0x2c8882(0xc9)](_0x341d20));_0x39a3e4['originalMeta']=_0x4b3cd6;});}return _0x5292b7;}async[_0x3022d6(0x190)](_0x44033a,_0x567241){const _0x361c52=_0x3022d6,{unitID:_0x4a5014,type:_0x25b0e0,blockID:_0x5d635d}=_0x567241,_0x359efe=this[_0x361c52(0x444)]()+'/'+_0x25b0e0+_0x361c52(0x3b5)+_0x4a5014+'/block/'+_0x5d635d;return(await this[_0x361c52(0x10f)]['get'](_0x359efe))['body'];}async[_0x3022d6(0x3fd)](_0x47e961,_0x411cb5){const _0x342ce3=_0x3022d6,{unitID:_0x50b5d5,type:_0x4fae31,from:_0x13b406,to:_0x3f39a8}=_0x411cb5,_0x29c2be=this['_getAPIPrefix']()+'/'+_0x4fae31+_0x342ce3(0x3b5)+_0x50b5d5+'/fetchmissing?from='+_0x13b406+_0x342ce3(0x348)+_0x3f39a8;return(await this[_0x342ce3(0x10f)]['get'](_0x29c2be))[_0x342ce3(0x1ad)];}[_0x3022d6(0x433)](){const _0x1fcee5=_0x3022d6;var _0x520190;return(_0x520190=this[_0x1fcee5(0xee)][_0x1fcee5(0x1bd)](lt))!=null?_0x520190:this[_0x1fcee5(0x444)]();}[_0x3022d6(0x444)](){const _0x148968=_0x3022d6;var _0x4c186a;return(_0x4c186a=this[_0x148968(0xee)][_0x148968(0x1bd)](ct))!=null?_0x4c186a:Vt;}async[_0x3022d6(0x9b)](_0x343b89,_0xffa787){const _0x20b68c=_0x3022d6,_0xb85e18=_0x20b68c(0x21c)+_0xffa787[_0x20b68c(0x1f3)]+_0x20b68c(0x3b5)+_0xffa787['unitID']+_0x20b68c(0x1c8);return(await this[_0x20b68c(0x10f)][_0x20b68c(0x84)](_0xb85e18,{'params':{'resourceId':JSON[_0x20b68c(0x258)](_0xffa787[_0x20b68c(0x3f3)])}}))[_0x20b68c(0x1ad)];}[_0x3022d6(0x3b9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x412f94=_0x3022d6;throw new Error(_0x412f94(0x2ec));}[_0x3022d6(0x14d)](){const _0x137ae7=_0x3022d6;throw new Error(_0x137ae7(0x2ec));}},exports[_0x3022d6(0x225)]=Oi([rt(0x0,o[_0x3022d6(0x3be)]),rt(0x1,o[_0x3022d6(0x291)](U['HTTPService']))],exports[_0x3022d6(0x225)]);var Di=Object[_0x3022d6(0x131)],Pi=Object[_0x3022d6(0x2b4)],Ui=(_0xde67b4,_0x1d58f8,_0x43763b,_0xe47a3d)=>{const _0x4f2308=_0x3022d6;for(var _0x441171=_0xe47a3d>0x1?void 0x0:_0xe47a3d?Pi(_0x1d58f8,_0x43763b):_0x1d58f8,_0x4985df=_0xde67b4[_0x4f2308(0x2ce)]-0x1,_0x1c2158;_0x4985df>=0x0;_0x4985df--)(_0x1c2158=_0xde67b4[_0x4985df])&&(_0x441171=(_0xe47a3d?_0x1c2158(_0x1d58f8,_0x43763b,_0x441171):_0x1c2158(_0x441171))||_0x441171);return _0xe47a3d&&_0x441171&&Di(_0x1d58f8,_0x43763b,_0x441171),_0x441171;},re=(_0x18cce9,_0x1fc7d0)=>(_0x116730,_0x3adb2a)=>_0x1fc7d0(_0x116730,_0x3adb2a,_0x18cce9);let $e=class extends o['LocalUndoRedoService']{constructor(_0x394a69,_0x438863,_0x816939,_0x260ea8,_0x27a0b1){const _0x370de0=_0x3022d6;super(_0x394a69,_0x438863,_0x816939),this[_0x370de0(0x223)]=_0x260ea8,this['_logService']=_0x27a0b1;}[_0x3022d6(0x392)](_0x16dac9,_0x10d2b5){const _0x43b448=_0x3022d6,_0x2ae7ef=this['_getUndoStack'](_0x16dac9);if(_0x2ae7ef)try{const _0x43cfec=this[_0x43b448(0xfb)](_0x2ae7ef,_0x10d2b5);this[_0x43b448(0x1a6)](_0x16dac9,_0x43cfec);}catch(_0x49a0c8){this[_0x43b448(0x38b)]['error']('[CollaborationUndoRedoService]',_0x49a0c8),this[_0x43b448(0x2c8)](_0x16dac9);}const _0x4c7ecf=this['_getRedoStack'](_0x16dac9);if(_0x4c7ecf)try{const _0x1d1c94=this[_0x43b448(0xfb)](_0x4c7ecf,_0x10d2b5);this['_substituteRedoStack'](_0x16dac9,_0x1d1c94);}catch(_0x1cb997){this['_logService'][_0x43b448(0x404)](_0x1cb997),this['_clearRedo'](_0x16dac9);}}[_0x3022d6(0x2c8)](_0x5d4f20){const _0x43fe2d=_0x3022d6,_0x5cc21c=this['_getUndoStack'](_0x5d4f20);_0x5cc21c&&(_0x5cc21c[_0x43fe2d(0x2ce)]=0x0,this['_updateStatus']());}[_0x3022d6(0x173)](_0x581fdd){const _0x2a0eed=_0x3022d6,_0x240a55=this[_0x2a0eed(0x3ff)](_0x581fdd);_0x240a55&&(_0x240a55['length']=0x0,this['_updateStatus']());}[_0x3022d6(0x1a6)](_0xe4d781,_0x524362){const _0x22691c=_0x3022d6;this[_0x22691c(0x2da)]['set'](_0xe4d781,_0x524362),this[_0x22691c(0x20c)]();}['_substituteRedoStack'](_0x497b44,_0x299ad6){const _0x538df0=_0x3022d6;this[_0x538df0(0x140)][_0x538df0(0x182)](_0x497b44,_0x299ad6),this[_0x538df0(0x20c)]();}['_transformStack'](_0x5a1361,_0x8aa5df){const _0x534bc2=_0x3022d6,_0x871fd9=[];let _0x276e67=_0x8aa5df,_0x485a99=_0x8aa5df;for(let _0x1fba1f=_0x5a1361[_0x534bc2(0x2ce)]-0x1;_0x1fba1f>=0x0;_0x1fba1f--){const {unitID:_0x594529,undoMutations:_0x1e13d3,redoMutations:_0x43a925}=_0x5a1361[_0x1fba1f],_0x40492a=this[_0x534bc2(0x223)][_0x534bc2(0x375)](_0x276e67,_0x1e13d3),_0x3498db=this[_0x534bc2(0x223)]['transformMutationsWithChangeset'](_0x485a99,_0x43a925);if(_[_0x534bc2(0x2d7)](_0x40492a)||_['isTransformMutationsWithChangesetFailure'](_0x3498db)){this['_logService'][_0x534bc2(0x404)](_0x534bc2(0x195),_0x534bc2(0x2b8),_0x40492a,_0x3498db);break;}_0x276e67=_0x40492a[_0x534bc2(0x3c6)],_0x485a99=_0x3498db[_0x534bc2(0x3c6)],_0x871fd9[_0x534bc2(0x42d)]({'unitID':_0x594529,'undoMutations':_0x40492a[_0x534bc2(0x469)],'redoMutations':_0x3498db[_0x534bc2(0x469)]});}return _0x871fd9[_0x534bc2(0x10e)]();}};$e=Ui([re(0x0,o[_0x3022d6(0xb8)]),re(0x1,o[_0x3022d6(0x3e6)]),re(0x2,o[_0x3022d6(0xa6)]),re(0x3,_[_0x3022d6(0x1d1)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x517469=_0x3022d6;super(),u(this,_0x517469(0xf0)),this['urlChange$']=v[_0x517469(0x163)](window,_0x517469(0x181))[_0x517469(0x23e)](v[_0x517469(0xc7)](this['dispose$']),v[_0x517469(0x3af)](0x1),v[_0x517469(0x2dc)](void 0x0));}[_0x3022d6(0xad)](_0x22d6ec,_0x5252ef,_0x1ec323=!0x1){const _0xd70a63=_0x3022d6,_0x318282=new URL(window[_0xd70a63(0x122)][_0xd70a63(0x262)]);_0x318282[_0xd70a63(0x3aa)][_0xd70a63(0x182)](_0x22d6ec,_0x5252ef),_0x1ec323?window[_0xd70a63(0x180)]['replaceState']('','',_0x318282[_0xd70a63(0x267)]()):window[_0xd70a63(0x180)][_0xd70a63(0x245)]('','',_0x318282['toString']());}[_0x3022d6(0x26f)](_0x33fe12,_0x106d68=!0x1){const _0x13f16a=_0x3022d6,_0x46c089=new URL(window['location'][_0x13f16a(0x262)]);_0x46c089[_0x13f16a(0x3aa)][_0x13f16a(0x1af)](_0x33fe12),_0x106d68?window[_0x13f16a(0x180)][_0x13f16a(0x205)]('','',_0x46c089[_0x13f16a(0x267)]()):window[_0x13f16a(0x180)][_0x13f16a(0x245)]('','',_0x46c089['toString']());}[_0x3022d6(0xd8)](_0x4e1a76){const _0xafca22=_0x3022d6;var _0x57ae93;return(_0x57ae93=new URL(window['location']['href'])['searchParams'][_0xafca22(0x84)](_0x4e1a76))!=null?_0x57ae93:void 0x0;}}const Pe=_0x3022d6(0x10d),wi=_0x3022d6(0x206),Mi=_0x3022d6(0x1f7),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x3022d6(0xef);class ot{constructor(_0x468093,_0x21872e,_0x302255,_0xf955b9){const _0x111d6f=_0x3022d6;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x111d6f(0x170),null),u(this,_0x111d6f(0x227),null),u(this,'_hideTimer',null),u(this,_0x111d6f(0x406),null),(this[_0x111d6f(0x33e)]=_0x468093,this['_scene']=_0x21872e,this[_0x111d6f(0x1f8)]=_0x302255,this[_0x111d6f(0x29e)]=_0xf955b9,this[_0x111d6f(0x166)]());}set[_0x3022d6(0x197)](_0x259fe6){const _0x565f06=_0x3022d6;_0x259fe6?(this[_0x565f06(0x227)]&&this['_anchorDot']['hide'](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)]['show']()):(this[_0x565f06(0x227)]&&this['_anchorDot'][_0x565f06(0x1d3)](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)][_0x565f06(0x10b)]());}[_0x3022d6(0x147)](){const _0x1396fe=_0x3022d6;for(const _0x4e11ca of this[_0x1396fe(0x1ea)])_0x4e11ca['dispose']();this[_0x1396fe(0x170)]&&this[_0x1396fe(0x170)]['dispose'](),this[_0x1396fe(0x227)]&&this[_0x1396fe(0x227)][_0x1396fe(0x147)](),this[_0x1396fe(0xf2)]&&this[_0x1396fe(0xf2)][_0x1396fe(0x147)](),this[_0x1396fe(0x406)]&&this['_eventUnsubscribe']();}[_0x3022d6(0x166)](){const _0x2d9d68=_0x3022d6;var _0x969afb;const {_docSkeleton:_0x596256,_document:_0x1d172e}=this,{color:_0x2187a3,name:_0x4ae51e,ranges:_0x4a7aa6}=this[_0x2d9d68(0x33e)],_0x4c07db=_0x1d172e['getOffsetConfig'](),{docsLeft:_0x24ec1a,docsTop:_0x2a7d48}=_0x4c07db,_0x254dbc=new b[(_0x2d9d68(0x304))](_0x4c07db,_0x596256);for(const {startOffset:_0x37ec79,endOffset:_0x28a5f7,collapsed:_0x36ef09,isActive:_0x1776b6}of _0x4a7aa6){const _0xf40bff=_0x596256[_0x2d9d68(0x10a)](_0x37ec79),_0x5972af=_0x596256[_0x2d9d68(0x10a)](_0x28a5f7);if(_0x1776b6){const {contentBoxPointGroup:_0x161b0e}=_0x254dbc['getRangePointData'](_0x5972af,_0x5972af);if(_0x161b0e[_0x2d9d68(0x2ce)]===0x0)continue;this[_0x2d9d68(0xeb)](_0x2187a3,_0x161b0e,_0x24ec1a,_0x2a7d48,_0x4ae51e),this[_0x2d9d68(0x406)]=this[_0x2d9d68(0x405)]();}if(!_0x36ef09&&_0xf40bff&&_0x5972af){if(b['isValidRectRange'](_0xf40bff,_0x5972af)){const _0x5f179a=new b['NodePositionConvertToRectRange'](_0x4c07db,_0x596256),{pointGroup:_0x4fa771}=(_0x969afb=_0x5f179a[_0x2d9d68(0x338)](_0xf40bff,_0x5972af))!=null?_0x969afb:{};if(_0x4fa771==null||_0x4fa771['length']===0x0)continue;this[_0x2d9d68(0xd2)](_0x2187a3,_0x4fa771,_0x24ec1a,_0x2a7d48);}else{const {contentBoxPointGroup:_0x24bfdf}=_0x254dbc['getRangePointData'](_0xf40bff,_0x5972af);if(_0x24bfdf[_0x2d9d68(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x2187a3,_0x24bfdf,_0x24ec1a,_0x2a7d48);}}}}[_0x3022d6(0xeb)](_0x9c23f2,_0x58e46c,_0x3c67fb,_0x154e8e,_0x31ac49){const _0x2e0169=_0x3022d6,_0x4066be=this[_0x2e0169(0x354)](_0x58e46c),{left:_0x3ffbde,top:_0x2ff494,height:_0x49c2f4}=_0x4066be,_0x258069=this['_getScale'](),_0x200b19=Ni/_0x258069,_0x2b9f02=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)]['generateRandomId'](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e,'height':_0x49c2f4,'width':yi,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':_0x200b19,'stroke':Li,'evented':!0x0});this[_0x2e0169(0xf2)]=_0x2b9f02,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x2b9f02,b[_0x2e0169(0x150)]);const _0xc65cf9=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':0x0,'stroke':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'evented':!0x1});this[_0x2e0169(0x227)]=_0xc65cf9,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0xc65cf9,b[_0x2e0169(0x150)]);const _0x19a1fd=new Ce(Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-le,'text':_0x31ac49,'color':_0x9c23f2});this[_0x2e0169(0x170)]=_0x19a1fd,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x19a1fd,b[_0x2e0169(0x150)]),this['_hover']=!0x1;}[_0x3022d6(0x405)](){const _0x21dba7=_0x3022d6,_0x30e9c5=this[_0x21dba7(0xf2)][_0x21dba7(0x109)][_0x21dba7(0x2c4)](()=>{const _0x1fcaa7=_0x21dba7;this[_0x1fcaa7(0x197)]=!0x0;}),_0x19d66f=this['_anchor'][_0x21dba7(0x35d)][_0x21dba7(0x2c4)](()=>{const _0x557145=_0x21dba7;this[_0x557145(0x94)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x54bb4e=_0x557145;this[_0x54bb4e(0x197)]=!0x1;},0x7d0);});return()=>{const _0x42d948=_0x21dba7;_0x30e9c5[_0x42d948(0x2b9)](),_0x19d66f[_0x42d948(0x2b9)]();};}['_drawTextRange'](_0x5bfb2c,_0x5a9ac9,_0x26b3e7,_0x499b66){const _0x4a7012=_0x3022d6,_0x85f639=new o['ColorKit'](_0x5bfb2c)['setAlpha'](0.2)[_0x4a7012(0x1c5)](),_0x4db5e9=new b[(_0x4a7012(0x28b))](wi+o[_0x4a7012(0x418)]['generateRandomId'](oe),{'pointsGroup':_0x5a9ac9,'fill':_0x85f639||b['getColor'](o[_0x4a7012(0x27c)]['black'],0.2),'left':_0x26b3e7,'top':_0x499b66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a7012(0x1ea)][_0x4a7012(0x42d)](_0x4db5e9),this[_0x4a7012(0x2f1)][_0x4a7012(0x1ce)](_0x4db5e9,b['TEXT_RANGE_LAYER_INDEX']);}[_0x3022d6(0xd2)](_0x5b85cb,_0x2ff2a2,_0x3a3448,_0x1a5dc6){const _0x41f36d=_0x3022d6,_0x5e721e=new o[(_0x41f36d(0x273))](_0x5b85cb)[_0x41f36d(0x1c6)](0.2)['toRgbString'](),_0x543b75=new b[(_0x41f36d(0x28b))](Mi+o[_0x41f36d(0x418)][_0x41f36d(0x24e)](oe),{'pointsGroup':_0x2ff2a2,'fill':_0x5e721e||b[_0x41f36d(0x17e)](o['COLORS'][_0x41f36d(0xb9)],0.2),'left':_0x3a3448,'top':_0x1a5dc6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41f36d(0x1ea)][_0x41f36d(0x42d)](_0x543b75),this[_0x41f36d(0x2f1)]['addObject'](_0x543b75,b[_0x41f36d(0x150)]);}[_0x3022d6(0x354)](_0x2cbe0d){const _0x555ec8=_0x2cbe0d[0x0],_0x48d9b4=_0x555ec8[0x0],_0x533457=_0x555ec8[0x2],{x:_0x20eae4,y:_0x56a2b3}=_0x48d9b4,{x:_0x5d2890,y:_0x2c0063}=_0x533457;return{'left':_0x20eae4,'top':_0x56a2b3,'width':_0x5d2890-_0x20eae4,'height':_0x2c0063-_0x56a2b3};}['_getScale'](){const _0x52bb27=_0x3022d6,{scaleX:_0x3a7bed,scaleY:_0x45fc89}=this[_0x52bb27(0x2f1)][_0x52bb27(0x244)]();return Math[_0x52bb27(0x102)](_0x3a7bed,_0x45fc89);}}var Ai=Object[_0x3022d6(0x131)],ji=Object[_0x3022d6(0x2b4)],$i=(_0x239a36,_0x2e10a8,_0x41be8f,_0x4745fc)=>{const _0x50d16c=_0x3022d6;for(var _0x1c6d5f=_0x4745fc>0x1?void 0x0:_0x4745fc?ji(_0x2e10a8,_0x41be8f):_0x2e10a8,_0x12a94f=_0x239a36[_0x50d16c(0x2ce)]-0x1,_0x57e94d;_0x12a94f>=0x0;_0x12a94f--)(_0x57e94d=_0x239a36[_0x12a94f])&&(_0x1c6d5f=(_0x4745fc?_0x57e94d(_0x2e10a8,_0x41be8f,_0x1c6d5f):_0x57e94d(_0x1c6d5f))||_0x1c6d5f);return _0x4745fc&&_0x1c6d5f&&Ai(_0x2e10a8,_0x41be8f,_0x1c6d5f),_0x1c6d5f;},_e=(_0x5a27a1,_0x5bc0f8)=>(_0x5c6a83,_0x437fa3)=>_0x5bc0f8(_0x5c6a83,_0x437fa3,_0x5a27a1);let de=class extends o[_0x3022d6(0x460)]{constructor(_0xa7917c,_0x21eb0b,_0x488d3c,_0x33f0e1,_0x5797a4){const _0x15ee78=_0x3022d6;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x15ee78(0x100)]=_0xa7917c,this[_0x15ee78(0x101)]=_0x21eb0b,this['_collabCursorController']=_0x488d3c,this[_0x15ee78(0x467)]=_0x33f0e1,this[_0x15ee78(0x2f0)]=_0x5797a4,this[_0x15ee78(0x11b)]());}[_0x3022d6(0x11b)](){const _0x2e77c7=_0x3022d6,_0x1b291d=this[_0x2e77c7(0x100)][_0x2e77c7(0x347)],_0x3da3e5=this[_0x2e77c7(0x101)];this[_0x2e77c7(0x14a)](v[_0x2e77c7(0x282)]([this[_0x2e77c7(0x15e)][_0x2e77c7(0x276)](_0x1b291d),this[_0x2e77c7(0x2f0)][_0x2e77c7(0x172)]])['pipe'](E[_0x2e77c7(0x317)](([_0x4ad3c9,_0x2105fe])=>({'skeleton':_0x3da3e5[_0x2e77c7(0x2cd)](),'cursors':[..._0x4ad3c9['values']()][_0x2e77c7(0x162)](_0x6e8858=>({..._0x6e8858,'color':_0x2105fe[_0x6e8858[_0x2e77c7(0x3d4)]]}))})))[_0x2e77c7(0x265)](_0x1df16d=>{const _0xc30eb1=_0x2e77c7;if(this['_removeCollabCursors'](),_0x1df16d){const {skeleton:_0x27e889,cursors:_0xa4b09d}=_0x1df16d;this[_0xc30eb1(0x22a)](_0x27e889,_0xa4b09d);}})),this['_initResize'](),this[_0x2e77c7(0x1ac)]();}[_0x3022d6(0x22a)](_0x401196,_0x4a0af0){const _0x5a6af9=_0x3022d6,{scene:_0x300256,mainComponent:_0xad475b}=this[_0x5a6af9(0x100)],_0x538149=_0x4a0af0[_0x5a6af9(0x317)](_0x4806b5=>new ot(_0x4806b5,_0x300256,_0x401196,_0xad475b));this[_0x5a6af9(0x3fc)]=_0x538149,this[_0x5a6af9(0x289)]=_0x4a0af0;}[_0x3022d6(0x222)](){const _0x4edcc8=_0x3022d6;this['_removeCollabCursors']();const {scene:_0x3bf1d9,mainComponent:_0x3e9487}=this[_0x4edcc8(0x100)],_0x4e8ab5=this[_0x4edcc8(0x101)]['getSkeleton'](),_0x323c11=this['_cursors']['map'](_0x5055fa=>new ot(_0x5055fa,_0x3bf1d9,_0x4e8ab5,_0x3e9487));this[_0x4edcc8(0x3fc)]=_0x323c11;}[_0x3022d6(0x80)](){const _0x486140=_0x3022d6;this[_0x486140(0x3fc)][_0x486140(0x3d3)](_0x1cd38d=>_0x1cd38d[_0x486140(0x147)]()),this[_0x486140(0x3fc)]=[];}['_initCommandExecutedListener'](){const _0x5eb61b=_0x3022d6,_0xf963e=[P[_0x5eb61b(0x103)]['id']];this[_0x5eb61b(0x14a)](this[_0x5eb61b(0x467)][_0x5eb61b(0x2a1)](_0x666573=>{const _0x868318=_0x5eb61b;_0xf963e['includes'](_0x666573['id'])&&_0x666573[_0x868318(0xd7)][_0x868318(0x347)]===this['_context'][_0x868318(0x347)]&&this[_0x868318(0x222)]();}));}['_initResize'](){const _0x1c5c3c=_0x3022d6;this[_0x1c5c3c(0x14a)](o[_0x1c5c3c(0x3e5)](this[_0x1c5c3c(0x100)][_0x1c5c3c(0x272)]['onTransformChange$'])['pipe'](E[_0x1c5c3c(0x1c0)](_0x168538=>_0x168538['type']===b[_0x1c5c3c(0x142)][_0x1c5c3c(0x149)]),E[_0x1c5c3c(0x1bb)](0x10))[_0x1c5c3c(0x265)](()=>{const _0x15ad91=_0x1c5c3c;this[_0x15ad91(0x222)]();}));}};function _0xbc10(_0x529a74,_0x392873){const _0x199194=_0x1991();return _0xbc10=function(_0xbc1022,_0x3aed93){_0xbc1022=_0xbc1022-0x7c;let _0x450b11=_0x199194[_0xbc1022];return _0x450b11;},_0xbc10(_0x529a74,_0x392873);}de=$i([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)][_0x3022d6(0x368)],de),_e(0x1,o['Inject'](P[_0x3022d6(0x382)])),_e(0x2,o[_0x3022d6(0x291)](Z)),_e(0x3,o['ICommandService']),_e(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x314)]))],de);var xi=Object[_0x3022d6(0x131)],Hi=Object['getOwnPropertyDescriptor'],ki=(_0xe7d303,_0x5d3887,_0x3efdba,_0x120476)=>{const _0x451bda=_0x3022d6;for(var _0x2b7dee=_0x120476>0x1?void 0x0:_0x120476?Hi(_0x5d3887,_0x3efdba):_0x5d3887,_0x46e779=_0xe7d303[_0x451bda(0x2ce)]-0x1,_0x2b75fd;_0x46e779>=0x0;_0x46e779--)(_0x2b75fd=_0xe7d303[_0x46e779])&&(_0x2b7dee=(_0x120476?_0x2b75fd(_0x5d3887,_0x3efdba,_0x2b7dee):_0x2b75fd(_0x2b7dee))||_0x2b7dee);return _0x120476&&_0x2b7dee&&xi(_0x5d3887,_0x3efdba,_0x2b7dee),_0x2b7dee;},we=(_0x4dfd66,_0x3af1c7)=>(_0x267593,_0x326429)=>_0x3af1c7(_0x267593,_0x326429,_0x4dfd66);let Ie=class{constructor(_0x590c1f,_0x50793d,_0x540cac){const _0x5d5eda=_0x3022d6;this[_0x5d5eda(0xee)]=_0x590c1f,this[_0x5d5eda(0x10f)]=_0x50793d,this[_0x5d5eda(0xcc)]=_0x540cac,this[_0x5d5eda(0x388)]();}[_0x3022d6(0x388)](){const _0x379959=_0x3022d6;this[_0x379959(0x10f)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5ad23a,_0x8ff70)=>_0x8ff70(_0x5ad23a)[_0x379959(0x23e)](v[_0x379959(0x171)](async _0x101bda=>{const _0x24cf80=_0x379959,_0x2af789=_0x101bda;if(_0x2af789[_0x24cf80(0x15b)]===0x191&&window[_0x24cf80(0x1e7)](this[_0x24cf80(0xcc)]['t']('auth.needGotoLoginAlert'))){const _0x1c0956=window[_0x24cf80(0x3e1)](window[_0x24cf80(0x122)][_0x24cf80(0x262)]);window[_0x24cf80(0x122)][_0x24cf80(0x262)]=this[_0x24cf80(0x275)]()+_0x24cf80(0x137)+_0x1c0956;}return _0x2af789;}))});}[_0x3022d6(0x275)](){const _0x418f52=_0x3022d6;var _0x547adf;return(_0x547adf=this[_0x418f52(0xee)]['getConfig'](mt))!=null?_0x547adf:Zt;}};Ie=ki([we(0x0,o[_0x3022d6(0x3be)]),we(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),we(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Ie);var Bi=Object[_0x3022d6(0x131)],Vi=Object[_0x3022d6(0x2b4)],Wi=(_0x3768ff,_0x25bb55,_0x14cc9f,_0x5d7769)=>{const _0x2d6baa=_0x3022d6;for(var _0x4bd6cd=_0x5d7769>0x1?void 0x0:_0x5d7769?Vi(_0x25bb55,_0x14cc9f):_0x25bb55,_0x4af96b=_0x3768ff[_0x2d6baa(0x2ce)]-0x1,_0x38602d;_0x4af96b>=0x0;_0x4af96b--)(_0x38602d=_0x3768ff[_0x4af96b])&&(_0x4bd6cd=(_0x5d7769?_0x38602d(_0x25bb55,_0x14cc9f,_0x4bd6cd):_0x38602d(_0x4bd6cd))||_0x4bd6cd);return _0x5d7769&&_0x4bd6cd&&Bi(_0x25bb55,_0x14cc9f,_0x4bd6cd),_0x4bd6cd;},at=(_0x2aee3b,_0x275f2c)=>(_0x48af27,_0x1f8cb1)=>_0x275f2c(_0x48af27,_0x1f8cb1,_0x2aee3b);const Mt=_0x3022d6(0x274),Fi=_0x3022d6(0x34c);exports[_0x3022d6(0xc0)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x22d5bc,_0x2b32f0){const _0x47c182=_0x3022d6;super(),this[_0x47c182(0x396)]=_0x22d5bc,this[_0x47c182(0xee)]=_0x2b32f0,this[_0x47c182(0xa0)]();}[_0x3022d6(0xa0)](){const _0x2b3f49=_0x3022d6,_0xf97820=this;this[_0x2b3f49(0x14a)](this[_0x2b3f49(0x396)][_0x2b3f49(0x9e)]({'priority':0x3e7,'interceptor':U[_0x2b3f49(0x292)]({'isMatch'(_0x511737){const _0x455b06=_0x2b3f49;var _0x502ee2;if(_0x511737[_0x455b06(0x259)]===_0x455b06(0x1a5)&&((_0x502ee2=_0x511737[_0x455b06(0x178)])!=null&&_0x502ee2[_0x455b06(0x1ad)])){const {objectID:_0x59ea2f,objectType:_0x46e59e}=_0x511737[_0x455b06(0x178)][_0x455b06(0x1ad)]||{};if(!_0x59ea2f||_0x46e59e===void 0x0)return!0x1;const _0xe546ed=_0xf97820[_0x455b06(0xe8)]()+'/'+_0x46e59e+_0x455b06(0x373)+_0x59ea2f+_0x455b06(0x26e);if(_0x511737[_0x455b06(0x2c7)]===_0xe546ed)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd04952){const _0x315f27=_0x2b3f49;var _0x53dfaa;return(_0x53dfaa=_0xd04952[_0x315f27(0x178)])==null?void 0x0:_0x53dfaa[_0x315f27(0x1ad)];},'mergeParamsToRequest'(_0x485263,_0x2af748){const _0x67b013=_0x2b3f49,_0x3081c4=_0xf97820[_0x67b013(0xe8)]()+_0x67b013(0x1b1),_0x17efd7=_0x485263[_0x67b013(0xb0)]((_0x56d326,_0x1871a7)=>{const _0xd659e7=_0x67b013,{unitID:_0x361f5b,objectID:_0x69545,objectType:_0x5d24ee,actions:_0x2a4aea}=_0x1871a7;return _0x56d326[_0x361f5b]||(_0x56d326[_0x361f5b]={}),_0x56d326[_0x361f5b][_0x69545]||(_0x56d326[_0x361f5b][_0x69545]={'objectID':_0x69545,'objectType':_0x5d24ee,'actions':[]}),_0x56d326[_0x361f5b][_0x69545][_0xd659e7(0x2d6)][_0xd659e7(0x42d)](..._0x2a4aea),_0x56d326;},{}),_0x4dd689=[];for(const _0x4148a9 in _0x17efd7)for(const _0x413e45 in _0x17efd7[_0x4148a9]){const {actions:_0x38d1c4,objectType:_0x41000c}=_0x17efd7[_0x4148a9][_0x413e45],_0x368b9c=[...new Set(_0x38d1c4)];_0x4dd689[_0x67b013(0x42d)]({'unitID':_0x4148a9,'objectID':_0x413e45,'objectType':_0x41000c,'actions':_0x368b9c});}return new U[(_0x67b013(0x15d))](_0x67b013(0x1a5),_0x3081c4,{'headers':_0x2af748[_0x67b013(0x37f)],'withCredentials':_0x2af748['withCredentials'],'responseType':_0x2af748[_0x67b013(0x8c)],'body':{'requests':_0x4dd689}});}},{'distributeResult'(_0x1117d8,_0x3fa018){const {objectActions:_0x573cee}=_0x1117d8;return _0x3fa018['map'](_0x326ea9=>{const _0x10fce2=_0xbc10,{unitID:_0x469606,objectID:_0x44e292,actions:_0x126cd6}=_0x326ea9,_0x1c7bde=_0x573cee[_0x10fce2(0x99)](_0x12c56c=>_0x12c56c[_0x10fce2(0x367)]===_0x469606&&_0x12c56c[_0x10fce2(0x408)]===_0x44e292),_0x3c4616=_0x126cd6[_0x10fce2(0x317)](_0x52bb01=>_0x1c7bde==null?void 0x0:_0x1c7bde[_0x10fce2(0x2d6)][_0x10fce2(0x99)](_0x45eaeb=>_0x45eaeb[_0x10fce2(0xfc)]===_0x52bb01))['filter'](_0x535d0e=>!!_0x535d0e);return{'config':_0x326ea9,'result':{'actions':_0x3c4616,'error':_0x1117d8['error']}};});}})}));}[_0x3022d6(0xe8)](){const _0x2047ac=_0x3022d6;var _0x16b3ed;return(_0x16b3ed=this[_0x2047ac(0xee)]['getConfig'](Mt))!=null?_0x16b3ed:Fi;}async['create'](_0x37a02b){const _0x1cfac2=_0x3022d6,_0x59b1f2=this[_0x1cfac2(0xe8)]()+'/'+_0x37a02b[_0x1cfac2(0x3a3)]+_0x1cfac2(0x120);return(await this[_0x1cfac2(0x396)][_0x1cfac2(0x45d)](_0x59b1f2,{'body':_0x37a02b}))[_0x1cfac2(0x1ad)][_0x1cfac2(0x408)]||'';}async[_0x3022d6(0x33f)](_0x4009cb){const _0xca9716=_0x3022d6,_0x56ba18=this[_0xca9716(0xe8)]()+_0xca9716(0x2fb);return(await this[_0xca9716(0x396)]['post'](_0x56ba18,{'body':_0x4009cb}))[_0xca9716(0x1ad)][_0xca9716(0xa9)];}async[_0x3022d6(0x37b)](_0x41400e){const _0x15f475=_0x3022d6,_0x41e698=this[_0x15f475(0xe8)]()+'/'+_0x41400e['objectType']+'/object/'+_0x41400e[_0x15f475(0x408)];await this[_0x15f475(0x396)][_0x15f475(0x3d0)](_0x41e698,{'body':_0x41400e});}async[_0x3022d6(0x2d4)](_0x5e6d4d){const _0x235dd4=_0x3022d6,_0x3b4ca2=this[_0x235dd4(0xe8)]()+'/'+_0x5e6d4d[_0x235dd4(0x3a3)]+'/object/'+_0x5e6d4d['objectID']+'/allowed';return(await this[_0x235dd4(0x396)][_0x235dd4(0x45d)](_0x3b4ca2,{'body':_0x5e6d4d}))['body'][_0x235dd4(0x2d6)];}async[_0x3022d6(0x18e)](_0x3fa302){const _0x97bb19=_0x3022d6,_0x2cd8ec=this[_0x97bb19(0xe8)]()+_0x97bb19(0x1b1);return(await this[_0x97bb19(0x396)][_0x97bb19(0x45d)](_0x2cd8ec,{'body':{'requests':_0x3fa302}}))['body'][_0x97bb19(0x20d)];}async[_0x3022d6(0x248)](_0x1018a6){const _0x2e4780=_0x3022d6,_0x46af3e=this[_0x2e4780(0xe8)]()+'/'+_0x1018a6[_0x2e4780(0x3a3)]+_0x2e4780(0x1a0),_0x3452cb=await this[_0x2e4780(0x396)][_0x2e4780(0x45d)](_0x46af3e,{'body':_0x1018a6});return{'roles':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x407)],'actions':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x2d6)]};}async['deleteCollaborator'](_0x3bdd77){const _0x1701cf=_0x3022d6,_0x38a3f9=this[_0x1701cf(0xe8)]()+_0x1701cf(0x410);await this['_HTTPService'][_0x1701cf(0x1af)](_0x38a3f9,{'params':{'collaboratorID':_0x3bdd77[_0x1701cf(0x221)],'objectID':_0x3bdd77[_0x1701cf(0x408)],'unitID':_0x3bdd77[_0x1701cf(0x367)]}});}async['updateCollaborator'](_0xd0b606){const _0x21a3d3=_0x3022d6,_0x1fb859=this['_getAPIPrefixPath']()+_0x21a3d3(0x410);await this[_0x21a3d3(0x396)][_0x21a3d3(0x327)](_0x1fb859,{'body':_0xd0b606});}async['createCollaborator'](_0x4106b4){const _0x63bbec=_0x3022d6,_0x3d0943=this[_0x63bbec(0xe8)]()+_0x63bbec(0x410);await this[_0x63bbec(0x396)][_0x63bbec(0x45d)](_0x3d0943,{'body':_0x4106b4});}async['listCollaborators'](_0x140a45){const _0x5f206b=_0x3022d6,_0x503186=this[_0x5f206b(0xe8)]()+_0x5f206b(0x410);return(await this['_HTTPService']['get'](_0x503186,{'params':{'objectID':_0x140a45[_0x5f206b(0x408)],'unitID':_0x140a45[_0x5f206b(0x367)]}}))[_0x5f206b(0x1ad)][_0x5f206b(0x402)];}async[_0x3022d6(0x264)](_0x5beae4){const _0x5cf20b=_0x3022d6,_0x22b871=this['_getAPIPrefixPath']()+_0x5cf20b(0x410);await this[_0x5cf20b(0x396)]['put'](_0x22b871,{'body':_0x5beae4});}},exports[_0x3022d6(0xc0)]=Wi([at(0x0,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),at(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x3be)]))],exports[_0x3022d6(0xc0)]);var Gi=Object[_0x3022d6(0x131)],Yi=Object[_0x3022d6(0x2b4)],Ki=(_0x55d51f,_0x229c0b,_0x435cbe,_0x919a58)=>{const _0xdae108=_0x3022d6;for(var _0x22499d=_0x919a58>0x1?void 0x0:_0x919a58?Yi(_0x229c0b,_0x435cbe):_0x229c0b,_0x30aa4a=_0x55d51f[_0xdae108(0x2ce)]-0x1,_0x24f5e0;_0x30aa4a>=0x0;_0x30aa4a--)(_0x24f5e0=_0x55d51f[_0x30aa4a])&&(_0x22499d=(_0x919a58?_0x24f5e0(_0x229c0b,_0x435cbe,_0x22499d):_0x24f5e0(_0x22499d))||_0x22499d);return _0x919a58&&_0x22499d&&Gi(_0x229c0b,_0x435cbe,_0x22499d),_0x22499d;},Me=(_0x1c2159,_0x4d2d9f)=>(_0x5389a7,_0x2cfc99)=>_0x4d2d9f(_0x5389a7,_0x2cfc99,_0x1c2159);const Xi=['image/png',_0x3022d6(0x277),'image/jpg',_0x3022d6(0x26a),_0x3022d6(0x2b1)],qi=0x5*0x400*0x400,zi=_0x3022d6(0x1ae),Ji='/universer-api/stream/file/upload',Zi=_0x3022d6(0x2bb),Qi=_0x3022d6(0x3a4);exports['ImageIoService']=class{constructor(_0x2d7910,_0x3552e1,_0x27958b){const _0x52ed2e=_0x3022d6;u(this,'_waitCount',0x0),u(this,_0x52ed2e(0x1b3),new v['Subject']()),u(this,'change$',this['_change$']),u(this,_0x52ed2e(0x8a),new Map()),(this[_0x52ed2e(0x10f)]=_0x2d7910,this[_0x52ed2e(0xee)]=_0x3552e1,this['_univerInstanceService']=_0x27958b);}['setWaitCount'](_0x53f017){const _0x2de70c=_0x3022d6;this[_0x2de70c(0x446)]=_0x53f017,this[_0x2de70c(0x1b3)][_0x2de70c(0x116)](_0x53f017);}['getImageSourceCache'](_0x4e0772,_0x4e5ace){const _0x5d052a=_0x3022d6;if(_0x4e5ace===A[_0x5d052a(0x3f4)][_0x5d052a(0x363)]){const _0x41c6f1=new Image();return _0x41c6f1[_0x5d052a(0x202)]=_0x4e0772,_0x41c6f1;}return this[_0x5d052a(0x8a)][_0x5d052a(0x84)](_0x4e0772);}[_0x3022d6(0x189)](_0xfa593,_0x2f288e,_0x874729){const _0x1d0802=_0x3022d6;_0x2f288e===A['ImageSourceType'][_0x1d0802(0x363)]||_0x874729==null||this['_imageSourceCache'][_0x1d0802(0x182)](_0xfa593,_0x874729);}async[_0x3022d6(0x3a5)](_0x577445){const _0x2712cb=_0x3022d6;try{const _0x33e798=this[_0x2712cb(0x36e)](this[_0x2712cb(0x126)](),''+_0x577445),_0x4bf161=(await this['_httpService'][_0x2712cb(0x84)](_0x33e798))['body'];return _0x4bf161['error']&&_0x4bf161[_0x2712cb(0x404)][_0x2712cb(0x2a2)]===gt['OK']?Promise[_0x2712cb(0x285)](_0x4bf161[_0x2712cb(0x2c7)]):Promise[_0x2712cb(0x252)](_0x4bf161[_0x2712cb(0x404)]);}catch(_0x2b59be){return Promise[_0x2712cb(0x252)](_0x2b59be);}}async['saveImage'](_0xfbd248){const _0x5e33af=_0x3022d6;let _0x4063b8='';if(!Xi[_0x5e33af(0x2fa)](_0xfbd248[_0x5e33af(0x1f3)]))return this['_decreaseWaiting'](),Promise[_0x5e33af(0x252)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0xfbd248[_0x5e33af(0x2ca)]>qi)return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)]['ERROR_EXCEED_SIZE']));try{const _0x1f3da0=new FormData();_0x1f3da0[_0x5e33af(0x1d7)](_0x5e33af(0xf4),_0xfbd248);const _0x532a11=this[_0x5e33af(0x17c)]['getFocusedUnit'](),_0x3f5c03=_0x532a11==null?void 0x0:_0x532a11[_0x5e33af(0x29c)]();if(!_0x3f5c03)throw new Error(_0x5e33af(0x441));const _0x270676=this[_0x5e33af(0x106)]()+_0x5e33af(0x2c3)+_0xfbd248[_0x5e33af(0x2ca)][_0x5e33af(0x267)]()+_0x5e33af(0x2b7)+ft[_0x5e33af(0x449)]+'&assign='+encodeURIComponent(_0x3f5c03),_0x525e8c=await(await fetch(_0x270676,{'method':_0x5e33af(0x1a5),'body':_0x1f3da0}))['json']();if(typeof _0x525e8c[_0x5e33af(0x42e)]!=_0x5e33af(0x383))return this[_0x5e33af(0x239)](),Promise['reject'](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));_0x4063b8=_0x525e8c[_0x5e33af(0x42e)];}catch{return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));}return new Promise((_0x7d8ec0,_0x1d6ed2)=>{const _0x37a9fe=_0x5e33af,_0x355173=new FileReader();_0x355173['readAsDataURL'](_0xfbd248),_0x355173[_0x37a9fe(0x1c4)]=_0x4bcd50=>{const _0x4b5f33=_0x37a9fe;var _0x18076e;const _0x5b92bb=(_0x18076e=_0x4bcd50[_0x4b5f33(0x2f9)])==null?void 0x0:_0x18076e['result'];if(_0x5b92bb==null){this[_0x4b5f33(0x239)](),_0x1d6ed2(new Error(A[_0x4b5f33(0x34f)][_0x4b5f33(0x22d)]));return;}const _0xe0f8e9=o[_0x4b5f33(0x418)][_0x4b5f33(0x24e)](0x6);_0x7d8ec0({'imageId':_0xe0f8e9,'imageSourceType':A[_0x4b5f33(0x3f4)][_0x4b5f33(0xf1)],'source':_0x4063b8,'base64Cache':_0x5b92bb,'status':A[_0x4b5f33(0x34f)][_0x4b5f33(0xe5)]}),this[_0x4b5f33(0x239)]();};});}['_getUploadFileURL'](){const _0x46d001=_0x3022d6;var _0x7d1d46;return(_0x7d1d46=this['_configService'][_0x46d001(0x1bd)](zi))!=null?_0x7d1d46:Ji;}[_0x3022d6(0x126)](){const _0x2a4a57=_0x3022d6;var _0x5de54c;return(_0x5de54c=this[_0x2a4a57(0xee)][_0x2a4a57(0x1bd)](Zi))!=null?_0x5de54c:Qi;}['_replaceFileID'](_0x63808c,_0x5cf701){const _0x5c4d63=_0x3022d6;return _0x63808c[_0x5c4d63(0x3ab)]('{fileID}',_0x5cf701);}[_0x3022d6(0x239)](){const _0x1ba938=_0x3022d6;this['_waitCount']-=0x1,this['_change$'][_0x1ba938(0x116)](this[_0x1ba938(0x446)]);}},exports[_0x3022d6(0x1de)]=Ki([Me(0x0,o['Inject'](U['HTTPService'])),Me(0x1,o[_0x3022d6(0x3be)]),Me(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0xb8)]))],exports[_0x3022d6(0x1de)]);var en=Object[_0x3022d6(0x131)],tn=Object[_0x3022d6(0x2b4)],sn=(_0x2615b8,_0x5aba83,_0x487032,_0x2fa78c)=>{for(var _0x14bf79=_0x2fa78c>0x1?void 0x0:_0x2fa78c?tn(_0x5aba83,_0x487032):_0x5aba83,_0x4d04b5=_0x2615b8['length']-0x1,_0x25f268;_0x4d04b5>=0x0;_0x4d04b5--)(_0x25f268=_0x2615b8[_0x4d04b5])&&(_0x14bf79=(_0x2fa78c?_0x25f268(_0x5aba83,_0x487032,_0x14bf79):_0x25f268(_0x14bf79))||_0x14bf79);return _0x2fa78c&&_0x14bf79&&en(_0x5aba83,_0x487032,_0x14bf79),_0x14bf79;},ae=(_0x424331,_0x53f943)=>(_0x1b0475,_0x1c8dfd)=>_0x53f943(_0x1b0475,_0x1c8dfd,_0x424331);let Se=class extends o[_0x3022d6(0x460)]{constructor(_0x511d6d,_0xfaf903,_0x2e8a04,_0xdf82f6,_0x479a8b){const _0x2da27c=_0x3022d6;super(),this['_injector']=_0x511d6d,this[_0x2da27c(0x17c)]=_0xfaf903,this[_0x2da27c(0x3a2)]=_0x2e8a04,this[_0x2da27c(0xdb)]=_0xdf82f6,this[_0x2da27c(0x3b1)]=_0x479a8b,this['_initUnitPermissionChange'](),this[_0x2da27c(0x25a)]();}[_0x3022d6(0x25a)](){const _0x324886=_0x3022d6,_0x161a7d=async _0x480e29=>{const _0x4d04c3=_0xbc10;(await this[_0x4d04c3(0xdb)][_0x4d04c3(0x3b2)](_0x480e29))[_0x4d04c3(0x144)][_0x4d04c3(0x23e)](E[_0x4d04c3(0x1c0)](_0x39ce91=>_0x39ce91[_0x4d04c3(0x31c)]===_['CollaborationEvent'][_0x4d04c3(0x83)]),E[_0x4d04c3(0xc7)](this[_0x4d04c3(0x374)]))[_0x4d04c3(0x265)](_0x4fa8f3=>{const _0x2e395d=_0x4d04c3,_0x506907=_0x4fa8f3,{reason:_0x447084}=_0x506907[_0x2e395d(0x2be)];this[_0x2e395d(0x123)][_0x2e395d(0x84)](L[_0x2e395d(0xaf)])[_0x2e395d(0x1d3)]({'type':Q[_0x2e395d(0x1e5)]['Error'],'content':this[_0x2e395d(0x3b1)]['t'](_0x2e395d(0x468))+'('+_0x447084+')'}),this[_0x2e395d(0x3a2)][_0x2e395d(0x27f)](new p[(_0x2e395d(0x32f))](_0x480e29)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x480e29);});};v['merge'](this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)][_0x324886(0x2c0)]),this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)]['UNIVER_DOC']))[_0x324886(0x23e)](E[_0x324886(0x317)](_0x50edca=>_0x50edca['getUnitId']()),E[_0x324886(0x1c0)](_0x284a22=>!o[_0x324886(0x152)](_0x284a22)),E['takeUntil'](this[_0x324886(0x374)]))[_0x324886(0x265)](_0x2bac35=>{_0x161a7d(_0x2bac35);});}[_0x3022d6(0x337)](){const _0x5083ce=_0x3022d6,_0x2cd70e=async _0xc28033=>{const _0x2bca1f=_0xbc10;(await this[_0x2bca1f(0xdb)][_0x2bca1f(0x3b2)](_0xc28033))[_0x2bca1f(0x144)][_0x2bca1f(0x23e)](E[_0x2bca1f(0x1c0)](_0x2e3abf=>_0x2e3abf[_0x2bca1f(0x31c)]===_[_0x2bca1f(0x26c)][_0x2bca1f(0x330)]),E[_0x2bca1f(0xc7)](this[_0x2bca1f(0x374)]))[_0x2bca1f(0x265)](_0x11595b=>{const _0x410da8=_0x2bca1f,_0x34c4ff=_0x11595b,{objectId:_0x2b0083}=_0x34c4ff[_0x410da8(0x2be)],_0xcd28a=this['_injector'][_0x410da8(0x84)](J['SheetPermissionInitController']);_0x2b0083===_0xc28033?_0xcd28a[_0x410da8(0x325)](_0xc28033):_0xcd28a[_0x410da8(0x226)](_0xc28033,_0x2b0083);});};v[_0x5083ce(0xc5)](this['_univerInstanceService'][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)][_0x5083ce(0x2c0)]),this[_0x5083ce(0x17c)][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)]['UNIVER_DOC']))[_0x5083ce(0x23e)](E[_0x5083ce(0x317)](_0x2bcf95=>_0x2bcf95[_0x5083ce(0x29c)]()),E[_0x5083ce(0x1c0)](_0x397189=>!o['isInternalEditorID'](_0x397189)),E['takeUntil'](this[_0x5083ce(0x374)]))[_0x5083ce(0x265)](_0x5ccb10=>{_0x2cd70e(_0x5ccb10);});}};Se=sn([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Se),ae(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),ae(0x1,o[_0x3022d6(0xb8)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)])),ae(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Se);var yt=Object[_0x3022d6(0x131)],nn=Object[_0x3022d6(0x2b4)],rn=(_0x159d3f,_0x23a720,_0xbe718e)=>_0x23a720 in _0x159d3f?yt(_0x159d3f,_0x23a720,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe718e}):_0x159d3f[_0x23a720]=_0xbe718e,on=(_0x5b4c88,_0x54efc7,_0x2dee11,_0x5c976b)=>{for(var _0x53b28e=_0x5c976b>0x1?void 0x0:_0x5c976b?nn(_0x54efc7,_0x2dee11):_0x54efc7,_0x3a8005=_0x5b4c88['length']-0x1,_0x2a9cad;_0x3a8005>=0x0;_0x3a8005--)(_0x2a9cad=_0x5b4c88[_0x3a8005])&&(_0x53b28e=(_0x5c976b?_0x2a9cad(_0x54efc7,_0x2dee11,_0x53b28e):_0x2a9cad(_0x53b28e))||_0x53b28e);return _0x5c976b&&_0x53b28e&&yt(_0x54efc7,_0x2dee11,_0x53b28e),_0x53b28e;},ye=(_0x286e6a,_0x4fb3c3)=>(_0x37569d,_0x21c3c2)=>_0x4fb3c3(_0x37569d,_0x21c3c2,_0x286e6a),an=(_0x572745,_0x3e31e5,_0x3b8699)=>rn(_0x572745,_0x3e31e5+'',_0x3b8699);const cn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends o[_0x3022d6(0x164)]{constructor(_0x221631,_0x31ff37,_0x2a3527,_0x3af6fd){const _0x36e8a3=_0x3022d6;super(),this['_config']=_0x221631,this[_0x36e8a3(0x38b)]=_0x31ff37,this['_renderManagerService']=_0x2a3527,this[_0x36e8a3(0x123)]=_0x3af6fd;}[_0x3022d6(0x435)](){const _0x1b7820=_0x3022d6;this[_0x1b7820(0x3b4)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3022d6(0x3b4)](){const _0x410808=_0x3022d6;var _0x2871ff,_0x3be616,_0x3185e0,_0x2b1c55;this[_0x410808(0x123)][_0x410808(0x151)](o['IUndoRedoService'])&&this[_0x410808(0x38b)][_0x410808(0x404)](_0x410808(0x153),_0x410808(0x29b));let _0x5eb54c=[[o[_0x410808(0x114)],{'useClass':$e}],[exports['CollaborationSessionService']],[Fe],[U[_0x410808(0x37e)]],[Ye,{'useClass':wt}],[Y],[exports[_0x410808(0x174)]],[U[_0x410808(0x2e8)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3be616=(_0x2871ff=this['_config'])==null?void 0x0:_0x2871ff[_0x410808(0xc8)])!=null?_0x3be616:exports[_0x410808(0x3b0)]}],[U[_0x410808(0x32c)],{'useClass':U[_0x410808(0x298)]}],[o[_0x410808(0x143)],{'useClass':exports[_0x410808(0x225)]}],[o[_0x410808(0x301)],{'useClass':exports[_0x410808(0xc0)]}],[A[_0x410808(0xed)],{'useClass':exports[_0x410808(0x1de)]}],[exports[_0x410808(0x431)]],[exports[_0x410808(0x336)]],[exports[_0x410808(0x269)]],[ue],[Z]];(_0x3185e0=this['_config'])!=null&&_0x3185e0[_0x410808(0x260)]&&_0x5eb54c[_0x410808(0x42d)]([pe,{'useClass':us}]),_0x5eb54c=o['mergeOverrideWithDependencies'](_0x5eb54c,(_0x2b1c55=this[_0x410808(0x87)])==null?void 0x0:_0x2b1c55[_0x410808(0x14e)]),_0x5eb54c[_0x410808(0x3d3)](_0x5597b0=>this[_0x410808(0x123)][_0x410808(0xe1)](_0x5597b0)),this[_0x410808(0x1d9)]();}['_registerRenderDependencies'](){const _0xbf1cd=_0x3022d6;this['disposeWithMe'](this['_renderManagerService'][_0xbf1cd(0x36b)](o['UniverInstanceType'][_0xbf1cd(0x237)],[de])),this['disposeWithMe'](this[_0xbf1cd(0x235)][_0xbf1cd(0x36b)](o[_0xbf1cd(0x23f)][_0xbf1cd(0x2c0)],[je]));}['_initModules'](){const _0x50840a=_0x3022d6;var _0x29fe07,_0x11ec11;this[_0x50840a(0x123)]['get'](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U[_0x50840a(0x107)]({'maxParallel':0x6})}),(_0x29fe07=this[_0x50840a(0x87)])!=null&&_0x29fe07['enableOfflineEditing']||this[_0x50840a(0x123)][_0x50840a(0x84)](exports[_0x50840a(0x174)])[_0x50840a(0x196)](),(_0x11ec11=this[_0x50840a(0x87)])!=null&&_0x11ec11[_0x50840a(0x12f)]&&this['_injector'][_0x50840a(0x84)](Ie);}},an(exports['UniverCollaborationClientPlugin'],'pluginName',cn),exports['UniverCollaborationClientPlugin']=on([o[_0x3022d6(0x38f)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x3022d6(0x22f)]),ye(0x2,b[_0x3022d6(0x13e)]),ye(0x3,o[_0x3022d6(0x291)](o['Injector']))],exports[_0x3022d6(0x233)]),exports[_0x3022d6(0x274)]=Mt,exports[_0x3022d6(0x3c2)]=vt,exports[_0x3022d6(0x117)]=_t,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=Ut,exports[_0x3022d6(0x2ba)]=Ve,exports[_0x3022d6(0x28c)]=ut,exports[_0x3022d6(0xa5)]=He,exports[_0x3022d6(0x22b)]=Be,exports[_0x3022d6(0xaa)]=Ye,exports[_0x3022d6(0x2e0)]=St,exports[_0x3022d6(0x1c2)]=mt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x3022d6(0x351)]=ct,exports[_0x3022d6(0xcf)]=lt,exports['SessionStatus']=G,exports['SheetCollabCursorShape']=Rt,exports['WebURLService']=wt,exports[_0x3022d6(0x160)]=It,exports['serializeCombRequest']=pt;
|
1
|
+
'use strict';const _0x5e318a=_0x337d;(function(_0x4854bc,_0x5669f9){const _0x2a1683=_0x337d,_0x5f3084=_0x4854bc();while(!![]){try{const _0x203d20=parseInt(_0x2a1683(0x2ba))/0x1*(parseInt(_0x2a1683(0xe8))/0x2)+-parseInt(_0x2a1683(0x35a))/0x3+parseInt(_0x2a1683(0x38c))/0x4*(-parseInt(_0x2a1683(0x37b))/0x5)+-parseInt(_0x2a1683(0x1e2))/0x6+-parseInt(_0x2a1683(0x444))/0x7+-parseInt(_0x2a1683(0x39d))/0x8+parseInt(_0x2a1683(0x252))/0x9*(parseInt(_0x2a1683(0x209))/0xa);if(_0x203d20===_0x5669f9)break;else _0x5f3084['push'](_0x5f3084['shift']());}catch(_0x27d1f1){_0x5f3084['push'](_0x5f3084['shift']());}}}(_0x2a9a,0x897b7));var xt=Object[_0x5e318a(0x33d)],Ht=(_0x494874,_0x4d812e,_0x8ac7ac)=>_0x4d812e in _0x494874?xt(_0x494874,_0x4d812e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ac7ac}):_0x494874[_0x4d812e]=_0x8ac7ac,u=(_0xc63e0b,_0x228556,_0x27803d)=>Ht(_0xc63e0b,typeof _0x228556!=_0x5e318a(0x2e8)?_0x228556+'':_0x228556,_0x27803d);Object[_0x5e318a(0x33d)](exports,Symbol[_0x5e318a(0x26c)],{'value':_0x5e318a(0x1be)});const o=require(_0x5e318a(0x264)),p=require('@univerjs/sheets'),Q=require(_0x5e318a(0x383)),L=require('@univerjs/ui'),_=require(_0x5e318a(0x2f8)),v=require('rxjs'),E=require(_0x5e318a(0x316)),P=require(_0x5e318a(0x3b8)),U=require('@univerjs/network'),A=require(_0x5e318a(0x440)),b=require(_0x5e318a(0x1ea)),Ke=require(_0x5e318a(0x274)),xe=require('lodash/debounce'),J=require('@univerjs/sheets-ui'),y=require(_0x5e318a(0xf6)),kt=require('clsx'),Bt=require(_0x5e318a(0x11b)),ct=_0x5e318a(0x244),Vt=_0x5e318a(0x3cb),lt=_0x5e318a(0xd8),ht=_0x5e318a(0x30b),Wt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft=_0x5e318a(0x413),ut='HEARTBEAT_INTERVAL',Gt=0x7530,He=_0x5e318a(0x2fa),dt=0x2710,Yt=_0x5e318a(0x26a),Kt=0x4e20,Xt='RETRY_CONNECTING_MAX_COUNT',qt=0x3,St=_0x5e318a(0x3e6),zt=0x3e8,vt=_0x5e318a(0xce),Jt=_0x5e318a(0x138),mt=_0x5e318a(0x11e),Zt='/universer-api/oidc/authpage';function _0x337d(_0x379633,_0x6e49e2){const _0x2a9a47=_0x2a9a();return _0x337d=function(_0x337d3f,_0x50fc58){_0x337d3f=_0x337d3f-0x93;let _0x1633eb=_0x2a9a47[_0x337d3f];return _0x1633eb;},_0x337d(_0x379633,_0x6e49e2);}var gt=(_0x5a7862=>(_0x5a7862[_0x5a7862[_0x5e318a(0xc1)]=0x0]=_0x5e318a(0xc1),_0x5a7862[_0x5a7862['OK']=0x1]='OK',_0x5a7862[_0x5a7862[_0x5e318a(0x1a2)]=0x2]=_0x5e318a(0x1a2),_0x5a7862[_0x5a7862[_0x5e318a(0x28e)]=0x3]=_0x5e318a(0x28e),_0x5a7862[_0x5a7862['NOT_FOUND']=0x4]=_0x5e318a(0x3c7),_0x5a7862[_0x5a7862[_0x5e318a(0xda)]=0x5]=_0x5e318a(0xda),_0x5a7862[_0x5a7862[_0x5e318a(0x35c)]=0x6]='ALREADY_EXISTS',_0x5a7862[_0x5a7862[_0x5e318a(0x25a)]=0x7]=_0x5e318a(0x25a),_0x5a7862[_0x5a7862[_0x5e318a(0x2a6)]=0x8]='TOO_MANY_REQUESTS',_0x5a7862[_0x5a7862[_0x5e318a(0x3af)]=0x9]='COMPLETION_FINISHED',_0x5a7862[_0x5a7862['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5a7862[_0x5a7862[_0x5e318a(0x1cb)]=0x1771]=_0x5e318a(0x1cb),_0x5a7862[_0x5a7862['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5e318a(0x3c2),_0x5a7862[_0x5a7862[_0x5e318a(0x44b)]=0x1b59]='APPLY_REJECT',_0x5a7862[_0x5a7862[_0x5e318a(0x3c0)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5a7862[_0x5a7862[_0x5e318a(0xba)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5a7862[_0x5a7862[_0x5e318a(0x41f)]=0x1b5c]=_0x5e318a(0x41f),_0x5a7862[_0x5a7862['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5e318a(0x3fe),_0x5a7862[_0x5a7862[_0x5e318a(0x10a)]=0x2329]=_0x5e318a(0x10a),_0x5a7862[_0x5a7862['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5e318a(0x3f8),_0x5a7862[_0x5a7862['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5a7862[_0x5a7862[_0x5e318a(0x100)]=0x232c]=_0x5e318a(0x100),_0x5a7862[_0x5a7862[_0x5e318a(0x403)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5a7862[_0x5a7862[_0x5e318a(0x391)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5a7862[_0x5a7862[_0x5e318a(0x1ee)]=0x2712]=_0x5e318a(0x1ee),_0x5a7862[_0x5a7862['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5e318a(0x237),_0x5a7862[_0x5a7862[_0x5e318a(0x99)]=0x2714]=_0x5e318a(0x99),_0x5a7862[_0x5a7862[_0x5e318a(0x3d9)]=-0x1]=_0x5e318a(0x3d9),_0x5a7862))(gt||{}),j=(_0x10d1f7=>(_0x10d1f7[_0x10d1f7[_0x5e318a(0x208)]=0x0]='UNIVER_UNKNOWN',_0x10d1f7[_0x10d1f7[_0x5e318a(0x41b)]=0x1]=_0x5e318a(0x41b),_0x10d1f7[_0x10d1f7[_0x5e318a(0x1dd)]=0x2]=_0x5e318a(0x1dd),_0x10d1f7[_0x10d1f7[_0x5e318a(0x1b4)]=0x3]=_0x5e318a(0x1b4),_0x10d1f7[_0x10d1f7['UNIVER_PROJECT']=0x4]=_0x5e318a(0xac),_0x10d1f7[_0x10d1f7[_0x5e318a(0x3d9)]=-0x1]='UNRECOGNIZED',_0x10d1f7))(j||{}),T=(_0x26337f=>(_0x26337f[_0x26337f[_0x5e318a(0x1d9)]=0x0]=_0x5e318a(0x1d9),_0x26337f[_0x26337f[_0x5e318a(0x38b)]=0x1]=_0x5e318a(0x38b),_0x26337f[_0x26337f[_0x5e318a(0x37e)]=0x2]=_0x5e318a(0x37e),_0x26337f[_0x26337f[_0x5e318a(0x263)]=0x3]='LEAVE',_0x26337f[_0x26337f['INGEST']=0x4]=_0x5e318a(0xd6),_0x26337f[_0x26337f['HEARTBEAT']=0x5]=_0x5e318a(0xa2),_0x26337f[_0x26337f[_0x5e318a(0x358)]=0x6]=_0x5e318a(0x358),_0x26337f[_0x26337f[_0x5e318a(0x3d9)]=-0x1]=_0x5e318a(0x3d9),_0x26337f))(T||{}),ke=(_0x2622c0=>(_0x2622c0[_0x2622c0[_0x5e318a(0xb9)]=0x0]='UNKNOWN_CODE',_0x2622c0[_0x2622c0['OK']=0x1]='OK',_0x2622c0[_0x2622c0[_0x5e318a(0x19b)]=0x2]=_0x5e318a(0x19b),_0x2622c0[_0x2622c0['UNRECOGNIZED']=-0x1]=_0x5e318a(0x3d9),_0x2622c0))(ke||{}),ft=(_0x42a5ac=>(_0x42a5ac[_0x42a5ac[_0x5e318a(0x303)]=0x0]=_0x5e318a(0x303),_0x42a5ac[_0x42a5ac['HttpImport']=0x1]=_0x5e318a(0x2ec),_0x42a5ac[_0x42a5ac[_0x5e318a(0x118)]=0x2]='HttpExport',_0x42a5ac[_0x42a5ac['UnitEmbedded']=0x3]=_0x5e318a(0x3de),_0x42a5ac[_0x42a5ac[_0x5e318a(0xf2)]=0x4]=_0x5e318a(0xf2),_0x42a5ac[_0x42a5ac['UNRECOGNIZED']=-0x1]=_0x5e318a(0x3d9),_0x42a5ac))(ft||{}),Qt=Object[_0x5e318a(0x33d)],es=Object[_0x5e318a(0x225)],ts=(_0x265bbb,_0x55d822,_0x43f071,_0x4f9b56)=>{const _0x2ccc9=_0x5e318a;for(var _0x195372=_0x4f9b56>0x1?void 0x0:_0x4f9b56?es(_0x55d822,_0x43f071):_0x55d822,_0x39d9ca=_0x265bbb[_0x2ccc9(0x181)]-0x1,_0x31dacb;_0x39d9ca>=0x0;_0x39d9ca--)(_0x31dacb=_0x265bbb[_0x39d9ca])&&(_0x195372=(_0x4f9b56?_0x31dacb(_0x55d822,_0x43f071,_0x195372):_0x31dacb(_0x195372))||_0x195372);return _0x4f9b56&&_0x195372&&Qt(_0x55d822,_0x43f071,_0x195372),_0x195372;},Xe=(_0x37d661,_0x2f9d9b)=>(_0x4d13a2,_0x4743a1)=>_0x2f9d9b(_0x4d13a2,_0x4743a1,_0x37d661);let Y=class extends o[_0x5e318a(0x3cf)]{constructor(_0x59faa9,_0x37533e){const _0x30d51e=_0x5e318a;super(),u(this,_0x30d51e(0x21c),new Map()),(this['_univerInstanceService']=_0x59faa9,this[_0x30d51e(0x465)]=_0x37533e,this['disposeWithMe'](o[_0x30d51e(0x414)](v[_0x30d51e(0x269)](this[_0x30d51e(0x1fd)][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)]['UNIVER_SHEET'])[_0x30d51e(0x133)](E[_0x30d51e(0x3b9)](_0x2c47ed=>_0x2c47ed[_0x30d51e(0x40b)]())),this['_univerInstanceService'][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)][_0x30d51e(0x41b)])[_0x30d51e(0x133)](E[_0x30d51e(0x3b9)](_0x20f33d=>_0x20f33d[_0x30d51e(0x40b)]())),this[_0x30d51e(0x1fd)][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)][_0x30d51e(0x1b4)])['pipe'](E[_0x30d51e(0x3b9)](_0x55dc22=>_0x55dc22[_0x30d51e(0x40b)]())))[_0x30d51e(0x315)](_0x52a4f0=>this[_0x30d51e(0x1ba)](_0x52a4f0)))));}[_0x5e318a(0x2e5)](_0x2c5fbd){const _0x26ce6e=_0x5e318a;this[_0x26ce6e(0x465)][_0x26ce6e(0x2e5)](_0x2c5fbd);}[_0x5e318a(0x3a7)](){const _0x157e1e=_0x5e318a;return this['_userManagerService'][_0x157e1e(0x3a7)]();}[_0x5e318a(0x1ce)](_0x310eb9,_0x2ef6d5){const _0x1bb817=_0x5e318a;let _0x56f74b=this['_roomMembers'][_0x1bb817(0x236)](_0x310eb9);_0x56f74b||(_0x56f74b=new ss(),this[_0x1bb817(0x21c)][_0x1bb817(0x2e6)](_0x310eb9,_0x56f74b)),_0x56f74b[_0x1bb817(0x1ce)](_0x2ef6d5);}['removeMember'](_0x92c5d3,_0x1b00a1){const _0x1e9e81=_0x5e318a,_0x1b6594=this[_0x1e9e81(0x21c)][_0x1e9e81(0x236)](_0x92c5d3);_0x1b6594&&_0x1b6594[_0x1e9e81(0x372)](_0x1b00a1);}[_0x5e318a(0x456)](_0x4b98b5){const _0x5b51a1=_0x5e318a;return this[_0x5b51a1(0x21c)]['get'](_0x4b98b5);}[_0x5e318a(0x341)](_0x1ba7a3,_0x59a804){const _0xd0dbd1=_0x5e318a,_0x44c9a4=this[_0xd0dbd1(0x21c)][_0xd0dbd1(0x236)](_0x1ba7a3);if(_0x44c9a4)return _0x44c9a4['getMember'](_0x59a804);}[_0x5e318a(0x1ba)](_0x56b59d){const _0x2eae3d=_0x5e318a,_0x5a8bc5=this[_0x2eae3d(0x21c)][_0x2eae3d(0x236)](_0x56b59d);_0x5a8bc5&&(_0x5a8bc5[_0x2eae3d(0x17d)](),this[_0x2eae3d(0x21c)]['delete'](_0x56b59d));}['dispose'](){const _0x4b109e=_0x5e318a;this[_0x4b109e(0x21c)]['forEach'](_0x26b422=>_0x26b422['dispose']()),this['_roomMembers'][_0x4b109e(0x388)]();}};Y=ts([Xe(0x0,o['IUniverInstanceService']),Xe(0x1,o['Inject'](o[_0x5e318a(0x232)]))],Y);class ss extends o['Disposable']{constructor(){super(...arguments),u(this,'_members',new Map());}[_0x5e318a(0x17d)](){const _0x33d04f=_0x5e318a;this[_0x33d04f(0x3b0)][_0x33d04f(0x388)]();}['updateMember'](_0x4e390c){const _0x2ca402=_0x5e318a;this['_members'][_0x2ca402(0x2e6)](_0x4e390c[_0x2ca402(0x328)],_0x4e390c);}[_0x5e318a(0x372)](_0x2db9c6){const _0x538336=_0x5e318a;this[_0x538336(0x3b0)][_0x538336(0x33f)](_0x2db9c6);}[_0x5e318a(0x341)](_0x1a888c){const _0x4eeea0=_0x5e318a;return this[_0x4eeea0(0x3b0)][_0x4eeea0(0x236)](_0x1a888c);}}function It(_0x5dbd66){const _0x8262dc=_0x5e318a;var _0x53ecf0,_0xcd5658,_0x8f0859,_0x559a12;const _0x576e92=_0x5dbd66[_0x8262dc(0x42c)],_0x2fc159=JSON['parse'](_0x576e92);switch(_0x2fc159['cmd']){case T[_0x8262dc(0xa2)]:case T[_0x8262dc(0x38b)]:{const _0x431cd4=_0x2fc159['infoRsp'];return{..._0x2fc159,'data':_0x431cd4,'cmd':_0x2fc159[_0x8262dc(0x288)]};}case T['JOIN']:{const _0x28f048=_0x2fc159['joinRsp'];return{..._0x2fc159,'data':_0x28f048,'cmd':_0x2fc159[_0x8262dc(0x288)]};}case T[_0x8262dc(0x358)]:{const _0x186311=_0x2fc159[_0x8262dc(0x2b8)];switch(_0x186311[_0x8262dc(0x198)]){case _[_0x8262dc(0x1c7)][_0x8262dc(0xe0)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x53ecf0=_0x186311[_0x8262dc(0x2fc)])==null?void 0x0:_0x53ecf0['cs']},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x203)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0xcd5658=_0x186311[_0x8262dc(0x302)])==null?void 0x0:_0xcd5658['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['NEW_CHANGESETS']:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x8f0859=_0x186311[_0x8262dc(0x307)])==null?void 0x0:_0x8f0859['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _['CollaborationEvent'][_0x8262dc(0x1b3)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x559a12=_0x186311['csRejEvent'])==null?void 0x0:_0x559a12['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['UPDATE_CURSOR']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x3e2)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0x350)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0xa5)]},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x3ee)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x26f)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0xed)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311['liveShareNewHost']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x8262dc(0x1c7)][_0x8262dc(0x1bd)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x2cb)]},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x241)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x267)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['MSG_FOR_ERROR']:return{..._0x2fc159,'data':_0x186311,'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)]['COMMENT_UPDATE']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x207)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0x95)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x36a)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['SHOULD_CLOSE_CONN']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x32d)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};default:return _0x2fc159;}}default:return _0x2fc159;}}function pt(_0x597400){const _0x4d0089=_0x5e318a;switch(_0x597400[_0x4d0089(0x288)]){case T[_0x4d0089(0xa2)]:case T[_0x4d0089(0x38b)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)]});case T[_0x4d0089(0xd6)]:{let _0x5d50d2;switch(_0x597400[_0x4d0089(0x42c)]['eventID']){case _[_0x4d0089(0x1c7)][_0x4d0089(0x28c)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x28c)],'updateCursorEvent':_0x597400[_0x4d0089(0x42c)]['data']};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x3ee)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x3ee)],'leaveEvent':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x350)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)]['USERS_ENTER'],'joinEvent':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)]['LIVESHARE_NEW_HOST']:{_0x5d50d2={'eventID':_['CollaborationEvent'][_0x4d0089(0xed)],'liveShareNewHost':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _['CollaborationEvent'][_0x4d0089(0x1bd)]:{_0x5d50d2={'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x597400['data']['data']};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x241)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x241)],'liveShareTerminate':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x359)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x359)],'liveShareRequestHost':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0xdb)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0xdb)]};break;}default:_0x5d50d2={'eventID':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x198)]};}return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'collaMsg':_0x5d50d2});}case T[_0x4d0089(0x37e)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'joinReq':_0x597400[_0x4d0089(0x42c)]});case T[_0x4d0089(0x263)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'leaveReq':_0x597400['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var is=Object[_0x5e318a(0x33d)],ns=Object[_0x5e318a(0x225)],rs=(_0x506870,_0x58d74c,_0x397c74,_0x4c4b80)=>{const _0x432537=_0x5e318a;for(var _0x53fab8=_0x4c4b80>0x1?void 0x0:_0x4c4b80?ns(_0x58d74c,_0x397c74):_0x58d74c,_0xbbfe9b=_0x506870[_0x432537(0x181)]-0x1,_0x2d3a5d;_0xbbfe9b>=0x0;_0xbbfe9b--)(_0x2d3a5d=_0x506870[_0xbbfe9b])&&(_0x53fab8=(_0x4c4b80?_0x2d3a5d(_0x58d74c,_0x397c74,_0x53fab8):_0x2d3a5d(_0x53fab8))||_0x53fab8);return _0x4c4b80&&_0x53fab8&&is(_0x58d74c,_0x397c74,_0x53fab8),_0x53fab8;},se=(_0x5d15b4,_0x20a219)=>(_0x1e0178,_0x1c966b)=>_0x20a219(_0x1e0178,_0x1c966b,_0x5d15b4);const Be=o[_0x5e318a(0x3a2)]('univer-pro.collaboration-client-socket-service');function os(_0x10204e,_0xe420e8,_0xa122a5){const _0x4c4720=_0x5e318a;return _0x10204e+'/'+_0xe420e8+_0x4c4720(0xcf)+_0xa122a5+'/new_changes';}exports['CollaborationSocketService']=class{constructor(_0x3a5cf0,_0xe12442,_0x50cdb9,_0x31786d,_0x21e3e1){const _0x29c0bc=_0x5e318a;this[_0x29c0bc(0x3ad)]=_0x3a5cf0,this[_0x29c0bc(0x110)]=_0xe12442,this[_0x29c0bc(0xc3)]=_0x50cdb9,this[_0x29c0bc(0x141)]=_0x31786d,this[_0x29c0bc(0x1c6)]=_0x21e3e1;}['createSocket'](_0x18543f){const _0x4e6bd7=_0x5e318a,_0xec90ce=this[_0x4e6bd7(0x110)]['createSocket'](_0x18543f);if(!_0xec90ce)throw new Error(_0x4e6bd7(0x3f2));const _0x324d57=new o[(_0x4e6bd7(0x23b))](),_0x4cf260=new v[(_0x4e6bd7(0x45c))]();_0x324d57['add'](o['toDisposable'](_0xec90ce['close$'][_0x4e6bd7(0x315)](_0x240805=>_0x4cf260['next'](_0x240805)))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x4cf260['complete']()));const _0x3f93bb=new v[(_0x4e6bd7(0x45c))]();_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](_0xec90ce[_0x4e6bd7(0x14b)][_0x4e6bd7(0x315)](_0x246a1b=>_0x3f93bb[_0x4e6bd7(0x318)](_0x246a1b)))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x3f93bb[_0x4e6bd7(0x270)]()));const _0x2cc106=new v[(_0x4e6bd7(0x45c))]();_0x324d57['add'](o['toDisposable'](_0xec90ce[_0x4e6bd7(0x336)]['subscribe'](_0x3e3648=>{const _0x337486=_0x4e6bd7,_0x290bf8=It(_0x3e3648);_0x2cc106[_0x337486(0x318)](_0x290bf8);}))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x2cc106['complete']()));const _0xce2606=()=>{const _0x13baec=_0x4e6bd7;_0x3f93bb[_0x13baec(0x318)](new Event(_0x13baec(0x416))),_0x4cf260['next'](new CloseEvent(_0x13baec(0x416))),_0x38b7ee[_0x13baec(0x3d0)]();},_0x38b7ee={'memberID':'','close$':_0x4cf260[_0x4e6bd7(0x468)](),'error$':_0x3f93bb[_0x4e6bd7(0x468)](),'open$':_0xec90ce[_0x4e6bd7(0x1ff)],'message$':_0x2cc106[_0x4e6bd7(0x468)](),'send':_0x491b1b=>{const _0x273e0c=_0x4e6bd7;if(_0x491b1b['cmd']===T[_0x273e0c(0xd6)]){if(_0x491b1b[_0x273e0c(0x42c)][_0x273e0c(0x198)]===_['CollaborationEvent'][_0x273e0c(0x46b)]){this[_0x273e0c(0x385)](_0x38b7ee,_0x491b1b[_0x273e0c(0x42c)])[_0x273e0c(0x1e0)](_0x5be111=>{const _0x59bee6=_0x273e0c;this[_0x59bee6(0x141)][_0x59bee6(0x45d)](_0x5be111),_0xce2606();});return;}if(_0x491b1b['data']['eventID']===_[_0x273e0c(0x1c7)][_0x273e0c(0x200)]){const _0x38bcc3=_0x491b1b[_0x273e0c(0x42c)];this['_fetchMissChangesets'](_0x38bcc3)['then'](_0x268943=>{const _0x4b3e8a=_0x273e0c;_0x2cc106[_0x4b3e8a(0x318)]({'cmd':T[_0x4b3e8a(0x358)],'code':ke['OK'],'routeKey':_0x38bcc3['data'][_0x4b3e8a(0x312)],'routeType':'','data':{'eventID':_[_0x4b3e8a(0x1c7)][_0x4b3e8a(0x3b7)],'data':{'changesets':_0x268943}}});})['catch'](_0x124a7c=>{const _0xb144e6=_0x273e0c;this[_0xb144e6(0x141)][_0xb144e6(0x45d)](_0x124a7c),_0xce2606();});return;}}_0xec90ce['send'](pt(_0x491b1b));},'close':()=>{const _0x226d01=_0x4e6bd7;_0xec90ce[_0x226d01(0x3d0)](),_0x324d57[_0x226d01(0x17d)]();}};return _0x38b7ee;}async[_0x5e318a(0x385)](_0x3a3c03,_0x5cb7a3){const _0x1b6285=_0x5e318a;var _0x13bcc9;const {unitType:_0x2cf27a,unitID:_0x3e6026,changeset:_0x305a09}=_0x5cb7a3[_0x1b6285(0x42c)],_0x5b0016={'unitID':_0x3e6026,'memberID':_0x3a3c03[_0x1b6285(0x328)],'type':_0x2cf27a,'changeset':_[_0x1b6285(0x33a)](_0x305a09)},_0x2b6226=os((_0x13bcc9=this[_0x1b6285(0xc3)][_0x1b6285(0x299)](vt))!=null?_0x13bcc9:Jt,_0x2cf27a,_0x3e6026);try{await this['_http'][_0x1b6285(0x22a)](_0x2b6226,{'body':_0x5b0016});}catch(_0x177f5d){throw this[_0x1b6285(0x141)][_0x1b6285(0x45d)]('[CollaborationSession]',_0x1b6285(0x342)),_0x177f5d;}}async['_fetchMissChangesets'](_0x3575f2){const _0x3ae0ea=_0x5e318a,{unitID:_0x464852,from:_0x5745e0,to:_0x1a268f,unitType:_0x5a8220}=_0x3575f2[_0x3ae0ea(0x42c)];return(await this[_0x3ae0ea(0x1c6)][_0x3ae0ea(0x1f8)]({'metadata':void 0x0},{'unitID':_0x464852,'type':_0x5a8220,'from':_0x5745e0,'to':_0x1a268f}))[_0x3ae0ea(0x43b)];}},exports['CollaborationSocketService']=rs([se(0x0,o[_0x5e318a(0x23f)](U[_0x5e318a(0x2a1)])),se(0x1,o[_0x5e318a(0x23f)](U[_0x5e318a(0xc9)])),se(0x2,o[_0x5e318a(0x2aa)]),se(0x3,o[_0x5e318a(0xfb)]),se(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x45c88f=_0x5e318a;u(this,_0x45c88f(0x362),new v[(_0x45c88f(0x45c))]()),u(this,'commentUpdate$',this[_0x45c88f(0x362)]['asObservable']());}[_0x5e318a(0x235)](_0xcbcaf7){const _0x23055c=_0x5e318a;this[_0x23055c(0x362)][_0x23055c(0x318)](_0xcbcaf7);}}var as=Object[_0x5e318a(0x33d)],cs=Object[_0x5e318a(0x225)],Et=(_0x4aa03f,_0x5d2cc1,_0x257e23,_0x54cd9f)=>{const _0x41fbee=_0x5e318a;for(var _0x30e366=_0x54cd9f>0x1?void 0x0:_0x54cd9f?cs(_0x5d2cc1,_0x257e23):_0x5d2cc1,_0x582081=_0x4aa03f[_0x41fbee(0x181)]-0x1,_0x37b07a;_0x582081>=0x0;_0x582081--)(_0x37b07a=_0x4aa03f[_0x582081])&&(_0x30e366=(_0x54cd9f?_0x37b07a(_0x5d2cc1,_0x257e23,_0x30e366):_0x37b07a(_0x30e366))||_0x30e366);return _0x54cd9f&&_0x30e366&&as(_0x5d2cc1,_0x257e23,_0x30e366),_0x30e366;},M=(_0x1f0904,_0x123375)=>(_0x443b74,_0x41153b)=>_0x123375(_0x443b74,_0x41153b,_0x1f0904),G=(_0xfacbcf=>(_0xfacbcf[_0xfacbcf[_0x5e318a(0x1ef)]=0x0]='IDLE',_0xfacbcf[_0xfacbcf[_0x5e318a(0x2f0)]=0x1]=_0x5e318a(0x2f0),_0xfacbcf[_0xfacbcf[_0x5e318a(0x396)]=0x2]=_0x5e318a(0x396),_0xfacbcf[_0xfacbcf[_0x5e318a(0x16c)]=0x3]=_0x5e318a(0x16c),_0xfacbcf))(G||{});exports[_0x5e318a(0x20d)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x1011f7,_0xe67a85,_0x3782d7,_0x42faf6,_0x2b4c7e,_0x4b7e81,_0x50564a,_0x13edcd,_0x2e8f2c){const _0x434927=_0x5e318a;super(),u(this,_0x434927(0x14d),new v[(_0x434927(0x18a))](0x0)),u(this,_0x434927(0x1ed),this[_0x434927(0x14d)]['asObservable']()),u(this,_0x434927(0x401),new v[(_0x434927(0x45c))]()),u(this,_0x434927(0x109),this['_event$']['asObservable']()),u(this,_0x434927(0xe3)),u(this,_0x434927(0x13e)),u(this,_0x434927(0xee)),(this[_0x434927(0x16d)]=_0x1011f7,this['_logService']=_0x3782d7,this[_0x434927(0x353)]=_0x42faf6,this[_0x434927(0x1b9)]=_0x2b4c7e,this[_0x434927(0xc3)]=_0x4b7e81,this[_0x434927(0x2a5)]=_0x50564a,this[_0x434927(0x3d5)]=_0x13edcd,this[_0x434927(0x3e0)]=_0x2e8f2c,_0xe67a85['pipe'](E[_0x434927(0x36b)](this[_0x434927(0xc8)]))['subscribe'](_0x15634f=>{const _0x290578=_0x434927;var _0x11ba13;typeof _0x15634f>'u'||(this[_0x290578(0xe3)]=_0x15634f,_0x15634f?(this['_joinRoom'](_0x15634f),this['_socketMessageSubscription']=this[_0x290578(0xe3)]['message$']['subscribe'](_0x2684ab=>{const _0x234417=_0x290578;_0x2684ab[_0x234417(0x117)]===this[_0x234417(0x16d)]&&this['_onCombEvent'](_0x2684ab);})):(this[_0x290578(0x14d)][_0x290578(0x318)](0x2),(_0x11ba13=this[_0x290578(0x13e)])==null||_0x11ba13[_0x290578(0x195)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x434927(0x353)]['registerOnClose'](()=>{const _0x102346=_0x434927;var _0x47089e;(_0x47089e=this['_socket'])==null||_0x47089e[_0x102346(0x144)]({'cmd':T[_0x102346(0x263)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x30c873=_0x5e318a;return this[_0x30c873(0x14d)][_0x30c873(0x34b)]();}[_0x5e318a(0x330)](){const _0x174b35=_0x5e318a;var _0xa74b40,_0x43daaa;return(_0x43daaa=(_0xa74b40=this[_0x174b35(0xe3)])==null?void 0x0:_0xa74b40[_0x174b35(0x328)])!=null?_0x43daaa:null;}[_0x5e318a(0x17d)](){const _0x946bb3=_0x5e318a;super[_0x946bb3(0x17d)](),this[_0x946bb3(0xc8)][_0x946bb3(0x318)](),this[_0x946bb3(0xc8)]['complete']();}[_0x5e318a(0x3d0)](){const _0x53dc9a=_0x5e318a;var _0x4c58c8,_0x29d7e0;(_0x4c58c8=this['_socket'])==null||_0x4c58c8[_0x53dc9a(0x144)]({'cmd':T[_0x53dc9a(0x263)],'data':{'roomID':this[_0x53dc9a(0x16d)]}}),this['_event$'][_0x53dc9a(0x270)](),this[_0x53dc9a(0x14d)][_0x53dc9a(0x270)](),(_0x29d7e0=this[_0x53dc9a(0xe3)])==null||_0x29d7e0[_0x53dc9a(0x3d0)](),this[_0x53dc9a(0x17d)]();}[_0x5e318a(0x154)](_0x169fd6){const _0x550e48=_0x5e318a;_0x169fd6['cmd']===T[_0x550e48(0x37e)]?this[_0x550e48(0x1e8)](_0x169fd6):_0x169fd6[_0x550e48(0x288)]===T['RECV']&&this[_0x550e48(0x176)](_0x169fd6);}[_0x5e318a(0x3ae)](_0x2fc212){const _0x543387=_0x5e318a;this['_sessionStatus$']['next'](0x1),_0x2fc212[_0x543387(0x144)]({'cmd':T[_0x543387(0x37e)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x543387(0x16d)]}]}});}[_0x5e318a(0x1e8)](_0x35321e){const _0x2cbe99=_0x5e318a;var _0x5ea329;if(_0x35321e['code']===ke['FAIL']){this[_0x2cbe99(0x1b9)][_0x2cbe99(0x2eb)]({'type':Q[_0x2cbe99(0x2f4)]['Warning'],'content':this[_0x2cbe99(0x2a5)]['t'](_0x2cbe99(0x2a7))}),this[_0x2cbe99(0x14d)][_0x2cbe99(0x318)](0x2);return;}this[_0x2cbe99(0x14d)][_0x2cbe99(0x318)](0x3);const _0x363ed4=(_0x5ea329=_0x35321e[_0x2cbe99(0x42c)][_0x2cbe99(0x36f)][this[_0x2cbe99(0x16d)]])==null?void 0x0:_0x5ea329[_0x2cbe99(0x2e2)];_0x363ed4&&_0x363ed4[_0x2cbe99(0x183)](_0x192fc1=>this[_0x2cbe99(0x3d5)][_0x2cbe99(0x1ce)](this['_unitID'],_0x192fc1));}['_onRecvEvent'](_0x593f68){const _0x194ed0=_0x5e318a;try{const _0x4a2fbc=_0x593f68[_0x194ed0(0x42c)];switch(_0x4a2fbc[_0x194ed0(0x198)]){case _[_0x194ed0(0x1c7)][_0x194ed0(0x350)]:this[_0x194ed0(0x1d8)](_0x4a2fbc),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)]['USERS_LEAVE']:this[_0x194ed0(0x337)](_0x4a2fbc),this['_event$']['next'](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x203)]:this[_0x194ed0(0x45b)](),this['_event$']['next'](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x3c6)]:this[_0x194ed0(0x141)]['error'](_0x194ed0(0x2fb)+JSON[_0x194ed0(0x210)](_0x4a2fbc)),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x322)]:this['_commentService'][_0x194ed0(0x235)](_0x4a2fbc[_0x194ed0(0x42c)]),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;default:this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);}}catch(_0x5a2a09){this[_0x194ed0(0x141)][_0x194ed0(0x45d)](_0x5a2a09,_0x593f68);}}['_onUserJoin'](_0x4e268f){const _0x52ca96=_0x5e318a;this[_0x52ca96(0x3d5)]['updateMember'](this[_0x52ca96(0x16d)],_0x4e268f[_0x52ca96(0x42c)]);}[_0x5e318a(0x337)](_0x51c055){const _0x51a2a7=_0x5e318a;this[_0x51a2a7(0x3d5)]['removeMember'](this[_0x51a2a7(0x16d)],_0x51c055[_0x51a2a7(0x42c)]['memberID']);}async[_0x5e318a(0x144)](_0x18fbd3,_0x45a73c){const _0x171b7d=_0x5e318a;if(this[_0x171b7d(0x1a8)]!==0x3||!this[_0x171b7d(0xe3)])throw new Error(_0x171b7d(0x17f));try{_0x18fbd3[_0x171b7d(0x198)]===_[_0x171b7d(0x1c7)]['NEW_CHANGESETS']&&this[_0x171b7d(0x430)](),this[_0x171b7d(0xe3)][_0x171b7d(0x144)]({'cmd':T[_0x171b7d(0xd6)],'routeKey':_0x45a73c,'routeType':'','data':_0x18fbd3});}catch(_0x442da4){this['_logService'][_0x171b7d(0x45d)](_0x442da4);}}[_0x5e318a(0x430)](){const _0x53f35a=_0x5e318a;var _0xf631b8;this[_0x53f35a(0xee)]=window[_0x53f35a(0x3c9)](()=>{const _0x57e4e3=_0x53f35a;this[_0x57e4e3(0xee)]=null,this['_messageService'][_0x57e4e3(0x2eb)]({'type':Q[_0x57e4e3(0x2f4)]['Error'],'content':this[_0x57e4e3(0x2a5)]['t'](_0x57e4e3(0x20a))});},(_0xf631b8=this[_0x53f35a(0xc3)][_0x53f35a(0x299)](He))!=null?_0xf631b8:dt);}[_0x5e318a(0x45b)](){const _0x50d096=_0x5e318a;this[_0x50d096(0xee)]&&(clearTimeout(this[_0x50d096(0xee)]),this[_0x50d096(0xee)]=null);}},exports[_0x5e318a(0x20d)]=Et([M(0x2,o[_0x5e318a(0xfb)]),M(0x3,L['IBeforeCloseService']),M(0x4,L['IMessageService']),M(0x5,o[_0x5e318a(0x2aa)]),M(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),M(0x7,o[_0x5e318a(0x23f)](Y)),M(0x8,o['Inject'](Ve))],exports[_0x5e318a(0x20d)]),exports['CollaborationSessionService']=class extends o[_0x5e318a(0x3cf)]{constructor(_0x271de9,_0x825f12,_0x412fc5,_0x1dd714,_0x127363,_0x590e68){const _0x364d66=_0x5e318a;super(),u(this,_0x364d66(0x26e),new v[(_0x364d66(0x18a))](void 0x0)),u(this,_0x364d66(0x211),new Map()),u(this,_0x364d66(0x44e),new v['BehaviorSubject'](0x0)),u(this,_0x364d66(0x105),this['_status$']['asObservable']()),u(this,_0x364d66(0xa1),!0x1),u(this,_0x364d66(0x25e)),u(this,_0x364d66(0x451)),u(this,_0x364d66(0x3fc)),u(this,'_retryCount',0x0),(this[_0x364d66(0xa4)]=_0x271de9,this[_0x364d66(0x2a5)]=_0x825f12,this['_messageService']=_0x412fc5,this[_0x364d66(0x141)]=_0x1dd714,this[_0x364d66(0xc3)]=_0x127363,this[_0x364d66(0x377)]=_0x590e68);}get[_0x5e318a(0xe3)](){return this['_socket$']['getValue']();}[_0x5e318a(0x17d)](){const _0x23f278=_0x5e318a;super['dispose'](),this['_sessions'][_0x23f278(0x183)](_0x1ece4f=>_0x1ece4f['dispose']()),this['_sessions'][_0x23f278(0x388)](),this[_0x23f278(0x44e)][_0x23f278(0x270)]();}async[_0x5e318a(0x1b1)](_0x2d6531){const _0xaa69f1=_0x5e318a;if(this[_0xaa69f1(0x211)][_0xaa69f1(0x21e)](_0x2d6531))return this[_0xaa69f1(0x211)][_0xaa69f1(0x236)](_0x2d6531);this[_0xaa69f1(0x10d)]();const _0x2f288d=this[_0xaa69f1(0xa4)][_0xaa69f1(0x376)](exports[_0xaa69f1(0x20d)],_0x2d6531,this['_socket$'][_0xaa69f1(0x468)]());return this[_0xaa69f1(0x211)][_0xaa69f1(0x2e6)](_0x2d6531,_0x2f288d),_0x2f288d;}[_0x5e318a(0x290)](_0x23b7d1){const _0x1dfb31=_0x5e318a;var _0x2152a5;const _0x4019c2=this[_0x1dfb31(0x211)][_0x1dfb31(0x236)](_0x23b7d1);_0x4019c2&&(this['_sessions']['delete'](_0x23b7d1),_0x4019c2[_0x1dfb31(0x3d0)]()),this[_0x1dfb31(0x211)][_0x1dfb31(0x147)]||(_0x2152a5=this[_0x1dfb31(0xe3)])==null||_0x2152a5[_0x1dfb31(0x3d0)]();}[_0x5e318a(0x184)](){const _0x3ae055=_0x5e318a;var _0xa748ef;const _0x22f5f6=(_0xa748ef=this[_0x3ae055(0xc3)][_0x3ae055(0x299)](_t))!=null?_0xa748ef:Ft;return this[_0x3ae055(0x377)]['createSocket'](_0x22f5f6);}['_tryEnsureSocket'](){const _0x4393c1=_0x5e318a;try{const _0xb60a52=this[_0x4393c1(0x184)]();if(_0xb60a52){const _0x29d0c3=_0xb60a52[_0x4393c1(0x144)];_0xb60a52['send']=_0x862650=>(this['_rescheduleHeartbeatEvent'](),_0x29d0c3['apply'](_0xb60a52,[_0x862650])),_0xb60a52[_0x4393c1(0x336)]['subscribe'](_0x3b33a2=>this['_onMessage'](_0xb60a52,_0x3b33a2)),_0xb60a52[_0x4393c1(0x14b)]['pipe'](E['take'](0x1))[_0x4393c1(0x315)](_0x128d61=>this[_0x4393c1(0x141)][_0x4393c1(0x45d)]('[CollaborationSessionService]:\x20socket\x20error',_0x128d61)),_0xb60a52[_0x4393c1(0x1ff)][_0x4393c1(0x133)](E[_0x4393c1(0x240)](0x1))[_0x4393c1(0x315)](()=>{const _0x3f30e5=_0x4393c1;this[_0x3f30e5(0x41d)](_0xb60a52);}),_0xb60a52['close$'][_0x4393c1(0x133)](E['take'](0x1))[_0x4393c1(0x315)](_0x23a07d=>{const _0x3d03b5=_0x4393c1;this[_0x3d03b5(0x141)][_0x3d03b5(0x1b0)](_0x3d03b5(0x462),_0x3d03b5(0x1c9),_0x23a07d),this['_onConnectionFailed']();});}}catch(_0x3f3aeb){this[_0x4393c1(0x141)][_0x4393c1(0x45d)](_0x3f3aeb),this[_0x4393c1(0x35e)]();}}[_0x5e318a(0x41d)](_0x3c5de5){const _0x5c98b2=_0x5e318a;this['_logService']['debug'](_0x5c98b2(0x462),_0x5c98b2(0x16f)),_0x3c5de5[_0x5c98b2(0x144)]({'cmd':T['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x5e318a(0x35e)](){const _0x29c4c6=_0x5e318a;var _0x8db0e5;this[_0x29c4c6(0x44e)][_0x29c4c6(0x318)](0x2),this[_0x29c4c6(0x26e)][_0x29c4c6(0x318)](null),this[_0x29c4c6(0x458)](),this[_0x29c4c6(0x13f)](),this[_0x29c4c6(0xa1)]=!0x1,this[_0x29c4c6(0x452)]<((_0x8db0e5=this['_configService'][_0x29c4c6(0x299)](Xt))!=null?_0x8db0e5:qt)?(this[_0x29c4c6(0x314)](this[_0x29c4c6(0x452)]),this[_0x29c4c6(0x452)]+=0x1):this[_0x29c4c6(0x1b9)][_0x29c4c6(0x2eb)]({'type':Q[_0x29c4c6(0x2f4)][_0x29c4c6(0x3b2)],'content':this['_localeService']['t'](_0x29c4c6(0x3a5))});}[_0x5e318a(0x314)](_0x2b3b2b){const _0x23984e=_0x5e318a;var _0x58a1c9;const _0x52057f=((_0x58a1c9=this[_0x23984e(0xc3)][_0x23984e(0x299)](Yt))!=null?_0x58a1c9:Kt)*0x2**_0x2b3b2b;this[_0x23984e(0x1b9)][_0x23984e(0x2eb)]({'type':Q[_0x23984e(0x2f4)][_0x23984e(0x34c)],'content':this[_0x23984e(0x2a5)]['t'](_0x23984e(0x19a))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x2559a0=_0x23984e;this[_0x2559a0(0x10d)](),clearTimeout(this['_retryConnectingTimer']),this[_0x2559a0(0x3fc)]=null;},_0x52057f);}[_0x5e318a(0x36c)](){const _0x5797d4=_0x5e318a;var _0x34851f;this[_0x5797d4(0x13f)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x34851f=this['_configService']['getConfig'](ut))!=null?_0x34851f:Gt);}[_0x5e318a(0xb1)](){const _0x24cf46=_0x5e318a;this[_0x24cf46(0xe3)]['send']({'cmd':T[_0x24cf46(0xa2)]}),this[_0x24cf46(0x204)]();}[_0x5e318a(0x204)](){const _0x42d297=_0x5e318a;var _0x1b9409;this[_0x42d297(0x451)]=setTimeout(()=>this[_0x42d297(0x35e)](),(_0x1b9409=this[_0x42d297(0xc3)]['getConfig'](He))!=null?_0x1b9409:dt);}[_0x5e318a(0x289)](_0x451449,_0x38dbe4){const _0x1f3773=_0x5e318a,{cmd:_0x1c663c}=_0x38dbe4;_0x1c663c===T['HELLO']&&!this['_socketReady']&&(_0x451449[_0x1f3773(0x328)]=_0x38dbe4[_0x1f3773(0x42c)][_0x1f3773(0x328)],this[_0x1f3773(0x26e)][_0x1f3773(0x318)](_0x451449),this[_0x1f3773(0x44e)][_0x1f3773(0x318)](0x3),this[_0x1f3773(0xa1)]=!0x0),_0x1c663c===T['HEARTBEAT']&&this[_0x1f3773(0x458)](),this[_0x1f3773(0x36c)]();}[_0x5e318a(0x13f)](){const _0x437d50=_0x5e318a;this[_0x437d50(0x25e)]!=null&&(clearTimeout(this[_0x437d50(0x25e)]),this[_0x437d50(0x25e)]=null);}['_clearTimeoutTimer'](){const _0x364420=_0x5e318a;this[_0x364420(0x451)]!=null&&(clearTimeout(this[_0x364420(0x451)]),this[_0x364420(0x451)]=null);}},exports[_0x5e318a(0x2f9)]=Et([M(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),M(0x1,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),M(0x2,L['IMessageService']),M(0x3,o['ILogService']),M(0x4,o[_0x5e318a(0x2aa)]),M(0x5,Be)],exports[_0x5e318a(0x2f9)]);var ls=Object[_0x5e318a(0x33d)],hs=Object[_0x5e318a(0x225)],_s=(_0x9ebf84,_0x1c5c0f,_0x1f3960,_0x29b1d6)=>{const _0x1d3588=_0x5e318a;for(var _0x10639e=_0x29b1d6>0x1?void 0x0:_0x29b1d6?hs(_0x1c5c0f,_0x1f3960):_0x1c5c0f,_0x4e5126=_0x9ebf84[_0x1d3588(0x181)]-0x1,_0x85580;_0x4e5126>=0x0;_0x4e5126--)(_0x85580=_0x9ebf84[_0x4e5126])&&(_0x10639e=(_0x29b1d6?_0x85580(_0x1c5c0f,_0x1f3960,_0x10639e):_0x85580(_0x10639e))||_0x10639e);return _0x29b1d6&&_0x10639e&&ls(_0x1c5c0f,_0x1f3960,_0x10639e),_0x10639e;},ie=(_0x344e18,_0x516645)=>(_0x32e327,_0x4c4b38)=>_0x516645(_0x32e327,_0x4c4b38,_0x344e18);exports['LocalCacheService']=class extends o[_0x5e318a(0x3cf)]{constructor(_0x4c15bd,_0x3e0f3b,_0x250f39,_0x16b2aa,_0xa558a5){const _0x383b12=_0x5e318a;super(),u(this,'_cachedData',new Map()),u(this,_0x383b12(0x30a),new Map()),u(this,_0x383b12(0x3db),!0x1),(this[_0x383b12(0xc3)]=_0x4c15bd,this['_localStorageService']=_0x3e0f3b,this[_0x383b12(0x353)]=_0x250f39,this[_0x383b12(0x2a5)]=_0x16b2aa,this[_0x383b12(0x30c)]=_0xa558a5,this[_0x383b12(0x2c4)]());}[_0x5e318a(0x41c)](){const _0x29e81b=_0x5e318a;this[_0x29e81b(0x3db)]=!0x0;}[_0x5e318a(0x34a)](){const _0x43965f=_0x5e318a;this[_0x43965f(0x3db)]=!0x1;}[_0x5e318a(0x17d)](){const _0x2cb7d9=_0x5e318a;this['exhaustSavingTask']()[_0x2cb7d9(0x102)](()=>super['dispose']());}async[_0x5e318a(0x2e3)](_0x5f00be){const _0x36659b=_0x5e318a;return this['_disabled']?null:this[_0x36659b(0x2cf)][_0x36659b(0xfc)](qe(_0x5f00be));}async[_0x5e318a(0x420)](_0xa3b7c4,_0x25fcea){const _0x22b596=_0x5e318a;return!!this[_0x22b596(0x2cf)][_0x22b596(0x43d)](_0xa3b7c4,_0x25fcea);}[_0x5e318a(0x443)](_0x50f6af,_0x1984f4,_0x4f9557,_0x4c31fb){const _0x5d695c=_0x5e318a,_0x5c6625=this[_0x5d695c(0x30c)][_0x5d695c(0x1fa)](_0x50f6af);this['_cachedData'][_0x5d695c(0x2e6)](_0x50f6af,{'unitID':_0x50f6af,'type':_0x1984f4,'awaitingChangeset':_0x4f9557,'mutations':_0x4c31fb,'rev':_0x5c6625}),this[_0x5d695c(0x30a)][_0x5d695c(0x21e)](_0x50f6af)||this['_scheduleSaving'](_0x50f6af);}['_scheduleSaving'](_0x277887){const _0x35d331=_0x5e318a,_0x10ba26=this[_0x35d331(0x14c)]();_0x10ba26===0x0?this[_0x35d331(0xa7)](_0x277887):this['_saveTaskMap'][_0x35d331(0x2e6)](_0x277887,setTimeout(()=>this[_0x35d331(0xa7)](_0x277887),_0x10ba26));}[_0x5e318a(0x14c)](){const _0x5505b6=_0x5e318a;var _0x25bce2;return(_0x25bce2=this[_0x5505b6(0xc3)][_0x5505b6(0x299)](St))!=null?_0x25bce2:zt;}['_saveCache'](_0x29429e){const _0x287242=_0x5e318a,_0x556810=this[_0x287242(0x30a)][_0x287242(0x236)](_0x29429e);return _0x556810!==void 0x0&&window[_0x287242(0x29d)](_0x556810),this[_0x287242(0x2cf)][_0x287242(0x43d)](qe(_0x29429e),this[_0x287242(0x108)][_0x287242(0x236)](_0x29429e))[_0x287242(0x102)](()=>this[_0x287242(0x30a)][_0x287242(0x33f)](_0x29429e));}async[_0x5e318a(0x174)](){const _0x4583e9=_0x5e318a,_0x19b2be=[];this['_saveTaskMap'][_0x4583e9(0x183)]((_0x1768af,_0x3eaffb)=>{const _0x56acf0=_0x4583e9;window['clearTimeout'](_0x1768af),_0x19b2be['push'](this[_0x56acf0(0xa7)](_0x3eaffb)['then'](()=>{const _0xbbfdd4=_0x56acf0;this[_0xbbfdd4(0x30a)][_0xbbfdd4(0x33f)](_0x3eaffb);}));}),await Promise[_0x4583e9(0x423)](_0x19b2be);}['_setupBeforeClosingHandler'](){const _0x2e8a25=_0x5e318a;this[_0x2e8a25(0x16e)](this[_0x2e8a25(0x353)][_0x2e8a25(0x1f4)](()=>{const _0x1119e7=_0x2e8a25;if(this[_0x1119e7(0x30a)]['size'])return this[_0x1119e7(0x2a5)]['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=_s([ie(0x0,o[_0x5e318a(0x2aa)]),ie(0x1,o[_0x5e318a(0xe6)]),ie(0x2,L[_0x5e318a(0x3e5)]),ie(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),ie(0x4,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)]))],exports[_0x5e318a(0x199)]);function qe(_0x7faa7d){const _0x27287b=_0x5e318a;return _0x27287b(0x46e)+_0x7faa7d;}const pe=o[_0x5e318a(0x3a2)](_0x5e318a(0x159));var Ct=(_0x3028dc=>(_0x3028dc[_0x3028dc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5e318a(0x3d8),_0x3028dc[_0x3028dc['OTHER_CLIENTS_EDITING']=0x1]=_0x5e318a(0x248),_0x3028dc))(Ct||{});const ze=0x7530,Je=_0x5e318a(0x3e4);class us extends o[_0x5e318a(0x3cf)]{constructor(){const _0x38cad4=_0x5e318a;super(),u(this,_0x38cad4(0x21d),o[_0x38cad4(0x3fb)]['generateRandomId']()),u(this,_0x38cad4(0x1b5),new Set()),u(this,'_unitOnClients',new Map()),u(this,'_heartbeatTimer',null),u(this,_0x38cad4(0x406),new Map()),u(this,_0x38cad4(0x415),new Map()),this['_init']();}['dispose'](){const _0x52dd6b=_0x5e318a;super[_0x52dd6b(0x17d)](),this[_0x52dd6b(0x406)]['forEach']((_0x3fa572,_0x18f141)=>this[_0x52dd6b(0x38a)](_0x18f141)),this[_0x52dd6b(0x158)]&&window[_0x52dd6b(0x101)](this[_0x52dd6b(0x158)]);}[_0x5e318a(0x1a1)](_0xd41cf4){const _0x1a4a1b=_0x5e318a;return this[_0x1a4a1b(0x24c)](_0xd41cf4)[_0x1a4a1b(0x133)](v[_0x1a4a1b(0x17b)]());}[_0x5e318a(0x3b5)](_0x42ac32){const _0xda1da2=_0x5e318a;this[_0xda1da2(0x1b5)][_0xda1da2(0x147)]===0x0&&this[_0xda1da2(0x308)](),this['_selfUnitIDs'][_0xda1da2(0x40f)](_0x42ac32),this[_0xda1da2(0x2c1)]({'type':0x0,'memberID':this[_0xda1da2(0x21d)],'unitIDs':[_0x42ac32],'isForwarded':!0x1});}['disposeUnit'](_0x13b940){const _0x23d158=_0x5e318a;this['_selfUnitIDs'][_0x23d158(0x33f)](_0x13b940),this['_selfUnitIDs'][_0x23d158(0x147)]===0x0&&this[_0x23d158(0x158)]&&window[_0x23d158(0x101)](this[_0x23d158(0x158)]);}[_0x5e318a(0x24b)](){const _0x45c684=_0x5e318a;this[_0x45c684(0x16e)](o[_0x45c684(0x414)](v[_0x45c684(0x375)](window,_0x45c684(0x2a8))[_0x45c684(0x315)](_0x1ab9bb=>{const _0x1e1e9e=_0x45c684;if(_0x1ab9bb[_0x1e1e9e(0xe1)]!==Je||!_0x1ab9bb[_0x1e1e9e(0x1b2)])return;const _0x43dacb=JSON[_0x1e1e9e(0x429)](_0x1ab9bb[_0x1e1e9e(0x1b2)]);this[_0x1e1e9e(0x114)](_0x43dacb);}))),window[_0x45c684(0x20c)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x45c684(0x21d)],'unitIDs':Array[_0x45c684(0x165)](this[_0x45c684(0x1b5)])}));}[_0x5e318a(0x114)](_0x491180){const _0x2f5d8f=_0x5e318a;switch(_0x491180[_0x2f5d8f(0x1c1)]){case 0x0:this[_0x2f5d8f(0x31c)](_0x491180);break;case 0x1:this[_0x2f5d8f(0x348)](_0x491180);break;case 0x2:this[_0x2f5d8f(0x470)](_0x491180);break;}}['_handleJoinEvent'](_0x3950fd){const _0x2ef6ce=_0x5e318a,{unitIDs:_0x140af4,memberID:_0x2c73a2,isForwarded:_0x3ab097}=_0x3950fd;_0x140af4[_0x2ef6ce(0x183)](_0x23cd89=>{const _0x1e2b13=_0x2ef6ce;if(!_0x3ab097&&this[_0x1e2b13(0x16a)][_0x1e2b13(0x21e)](_0x23cd89)&&this[_0x1e2b13(0x24c)](_0x23cd89)[_0x1e2b13(0x318)](0x1),!this['_unitOnClients'][_0x1e2b13(0x21e)](_0x23cd89)||!this[_0x1e2b13(0x16a)][_0x1e2b13(0x236)](_0x23cd89)[_0x1e2b13(0x21e)](_0x2c73a2)){const _0x575433=this[_0x1e2b13(0x16a)][_0x1e2b13(0x236)](_0x23cd89)||new Set();_0x575433[_0x1e2b13(0x40f)](_0x2c73a2),this['_unitOnClients'][_0x1e2b13(0x2e6)](_0x23cd89,_0x575433),this[_0x1e2b13(0x1df)](_0x2c73a2);}}),_0x3ab097||this[_0x2ef6ce(0x2c1)]({'type':0x0,'memberID':this[_0x2ef6ce(0x21d)],'unitIDs':[...this[_0x2ef6ce(0x1b5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1d4ffc){const _0x1e547b=_0x5e318a;this['_removeClearOtherTimer'](_0x1d4ffc);const _0x4f73c6=window['setTimeout'](()=>{const _0x294130=_0x337d;this[_0x294130(0x16a)]['forEach'](_0x20cf72=>{const _0x54f85b=_0x294130;_0x20cf72[_0x54f85b(0x33f)](_0x1d4ffc);});},ze*0x2);this[_0x1e547b(0x406)][_0x1e547b(0x2e6)](_0x1d4ffc,_0x4f73c6);}[_0x5e318a(0x38a)](_0x304e9d){const _0x3c97ab=_0x5e318a;if(this[_0x3c97ab(0x406)]['has'](_0x304e9d)){const _0xbbdb15=this[_0x3c97ab(0x406)][_0x3c97ab(0x236)](_0x304e9d);_0xbbdb15&&window['clearTimeout'](_0xbbdb15),this['_clearOtherTimers']['set'](_0x304e9d,null);}}[_0x5e318a(0x348)](_0x5d19d3){const _0x1f3944=_0x5e318a,{memberID:_0x15bbdb,unitIDs:_0x2f3a98}=_0x5d19d3;_0x2f3a98[_0x1f3944(0x183)](_0x1c59c9=>{const _0x2288ea=_0x1f3944;var _0x544269;const _0x480b4f=this[_0x2288ea(0x16a)][_0x2288ea(0x236)](_0x1c59c9);_0x480b4f&&(_0x480b4f[_0x2288ea(0x33f)](_0x15bbdb),(_0x544269=this[_0x2288ea(0x24c)](_0x1c59c9))==null||_0x544269[_0x2288ea(0x318)](_0x480b4f[_0x2288ea(0x147)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x15bbdb);}['_handleHeartbeatEvent'](_0x2f7825){const _0x480767=_0x5e318a;this['_scheduleClearOtherTimer'](_0x2f7825[_0x480767(0x328)]);}[_0x5e318a(0x2c1)](_0x357d97){const _0x25faa0=_0x5e318a;localStorage[_0x25faa0(0x43d)](Je,JSON[_0x25faa0(0x210)](_0x357d97));}['_scheduleHeartbeat'](){const _0x384c77=_0x5e318a;this['_heartbeatTimer']=window[_0x384c77(0x3cd)](()=>{const _0xc83229=_0x384c77;this[_0xc83229(0x2c1)]({'type':0x2,'memberID':this['_id']});},ze);}['_ensureSubject'](_0x15a6a0){const _0x37b0a0=_0x5e318a;return this[_0x37b0a0(0x415)][_0x37b0a0(0x21e)](_0x15a6a0)||this['_unitStatus'][_0x37b0a0(0x2e6)](_0x15a6a0,new v[(_0x37b0a0(0x18a))](0x0)),this[_0x37b0a0(0x415)][_0x37b0a0(0x236)](_0x15a6a0);}}var ds=Object[_0x5e318a(0x33d)],Ss=Object[_0x5e318a(0x225)],vs=(_0x282eeb,_0x279f37,_0x45d0c7,_0x69c2a4)=>{const _0x3d12f7=_0x5e318a;for(var _0x10a2a1=_0x69c2a4>0x1?void 0x0:_0x69c2a4?Ss(_0x279f37,_0x45d0c7):_0x279f37,_0x292f28=_0x282eeb[_0x3d12f7(0x181)]-0x1,_0x3bb352;_0x292f28>=0x0;_0x292f28--)(_0x3bb352=_0x282eeb[_0x292f28])&&(_0x10a2a1=(_0x69c2a4?_0x3bb352(_0x279f37,_0x45d0c7,_0x10a2a1):_0x3bb352(_0x10a2a1))||_0x10a2a1);return _0x69c2a4&&_0x10a2a1&&ds(_0x279f37,_0x45d0c7,_0x10a2a1),_0x10a2a1;},Ze=(_0x2a831f,_0x4d4dd8)=>(_0x12ee93,_0x11738c)=>_0x4d4dd8(_0x12ee93,_0x11738c,_0x2a831f);let ve=class{constructor(_0x402a5e,_0x19f5a0){const _0x184b61=_0x5e318a;this[_0x184b61(0xa4)]=_0x402a5e,this['_transformService']=_0x19f5a0;}[_0x5e318a(0x149)](_0x570b8c){const _0x48c113=_0x5e318a;this[_0x48c113(0x38f)](_0x570b8c),this[_0x48c113(0x1a3)](_0x570b8c);}[_0x5e318a(0x39e)](_0x1f9af7){const _0x2fcc20=_0x5e318a,_0x53c22d=this[_0x2fcc20(0xa4)]['get'](P[_0x2fcc20(0x202)]),{redoCache:_0x56f98f}=_0x53c22d['getUndoRedoMutationParamsCache']();if(_0x56f98f[_0x2fcc20(0x181)]===0x0)return _0x1f9af7;let _0x3dde92=o[_0x2fcc20(0x3fb)][_0x2fcc20(0x442)](_0x1f9af7[_0x2fcc20(0x31a)][0x0]);for(let _0x3482ca=0x0;_0x3482ca<_0x56f98f[_0x2fcc20(0x181)];_0x3482ca++){const _0xb8dae4={'id':'doc.mutation.rich-text-editing','params':{..._0x56f98f[_0x3482ca]}},_0x3f9825=this['_transformService']['transformMutation'](_0x3dde92,_0xb8dae4,!0x1);if(_['isTransformMutationFailure'](_0x3f9825))throw _0x3f9825[_0x2fcc20(0x45d)];_0x3dde92=_0x3f9825[_0x2fcc20(0x2ae)];}return{...o[_0x2fcc20(0x3fb)]['deepClone'](_0x1f9af7),'mutations':[_0x3dde92]};}[_0x5e318a(0x38f)](_0x45614c){const _0x519504=_0x5e318a,_0x42e942=this['_injector'][_0x519504(0x236)](P[_0x519504(0x202)]),{undoCache:_0x1a1c75,redoCache:_0x1f7c5c}=_0x42e942[_0x519504(0x2c2)]();if(_0x1a1c75[_0x519504(0x181)]===0x0||_0x1f7c5c[_0x519504(0x181)]===0x0)return;const _0x1f1e18=[],_0x94da29=[];let _0x51deb2=o['Tools'][_0x519504(0x442)](_0x45614c[_0x519504(0x31a)][0x0]),_0x113a9f=o[_0x519504(0x3fb)][_0x519504(0x442)](_0x45614c['mutations'][0x0]);for(let _0x1b06aa=_0x1a1c75[_0x519504(0x181)]-0x1;_0x1b06aa>=0x0;_0x1b06aa--){const _0x47933c={'id':'doc.mutation.rich-text-editing','params':{..._0x1a1c75[_0x1b06aa]}},_0x1f400c={'id':_0x519504(0x1ec),'params':{..._0x1f7c5c[_0x1b06aa]}},_0x3faecd=this[_0x519504(0xca)][_0x519504(0x3d2)](_0x51deb2,_0x47933c,!0x1),_0x3c179b=this[_0x519504(0xca)][_0x519504(0x3d2)](_0x113a9f,_0x1f400c,!0x1);if(_[_0x519504(0x281)](_0x3faecd))throw _0x3faecd[_0x519504(0x45d)];if(_[_0x519504(0x281)](_0x3c179b))throw _0x3c179b[_0x519504(0x45d)];_0x1f1e18[_0x519504(0x9a)](_0x3faecd[_0x519504(0xfe)][_0x519504(0x119)]),_0x94da29[_0x519504(0x9a)](_0x3c179b[_0x519504(0xfe)][_0x519504(0x119)]),_0x51deb2=_0x3faecd[_0x519504(0x2ae)],_0x113a9f=_0x3c179b[_0x519504(0x2ae)];}_0x42e942[_0x519504(0x340)]({'undoCache':_0x1f1e18,'redoCache':_0x94da29});}[_0x5e318a(0x1a3)](_0x2b25de){const _0xfcbe71=_0x5e318a,_0xc9f14c=this[_0xfcbe71(0xa4)][_0xfcbe71(0x236)](P[_0xfcbe71(0x202)]),_0xb86074=_0xc9f14c[_0xfcbe71(0x43c)]();if(_0xb86074==null)return;const _0x384148=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b25de[_0xfcbe71(0x312)],'actions':null,'textRanges':[_0xb86074]}}],_0x31b0cc=this[_0xfcbe71(0xca)][_0xfcbe71(0x319)](_0x2b25de,_0x384148);if(!_[_0xfcbe71(0x438)](_0x31b0cc))throw _0x31b0cc[_0xfcbe71(0x45d)];const _0x503cce=_0x31b0cc[_0xfcbe71(0xfe)][0x0][_0xfcbe71(0x119)][_0xfcbe71(0x386)];Array['isArray'](_0x503cce)&&_0x503cce[_0xfcbe71(0x181)]&&_0xc9f14c['setActiveRange'](_0x503cce[0x0]);}};ve=vs([Ze(0x0,o[_0x5e318a(0x23f)](o['Injector'])),Ze(0x1,_[_0x5e318a(0xa0)])],ve);var ms=Object[_0x5e318a(0x33d)],gs=Object[_0x5e318a(0x225)],fs=(_0x5e72cd,_0x547036,_0x5cdcc0,_0x24ff1a)=>{for(var _0x32ed23=_0x24ff1a>0x1?void 0x0:_0x24ff1a?gs(_0x547036,_0x5cdcc0):_0x547036,_0x22691e=_0x5e72cd['length']-0x1,_0x54e8ef;_0x22691e>=0x0;_0x22691e--)(_0x54e8ef=_0x5e72cd[_0x22691e])&&(_0x32ed23=(_0x24ff1a?_0x54e8ef(_0x547036,_0x5cdcc0,_0x32ed23):_0x54e8ef(_0x32ed23))||_0x32ed23);return _0x24ff1a&&_0x32ed23&&ms(_0x547036,_0x5cdcc0,_0x32ed23),_0x32ed23;},Qe=(_0x5eecd0,_0x3e9989)=>(_0x36032d,_0xacb6d8)=>_0x3e9989(_0x36032d,_0xacb6d8,_0x5eecd0);let me=class{constructor(_0x5240fe,_0x43c796){const _0xf19e2d=_0x5e318a;this[_0xf19e2d(0xa4)]=_0x5240fe,this[_0xf19e2d(0xca)]=_0x43c796;}[_0x5e318a(0x436)](_0x31ac9f){const _0x2e674d=_0x5e318a;var _0x48d773;const _0x51d8fa=this[_0x2e674d(0xa4)][_0x2e674d(0x236)](P[_0x2e674d(0x238)]),_0x47c460=(_0x48d773=_0x51d8fa[_0x2e674d(0x20e)]())!=null?_0x48d773:[],_0xbe7708=_0x47c460==null?void 0x0:_0x47c460['map'](P['serializeDocRange']);if(_0xbe7708['length']===0x0)return;const _0x8517f4=[{'id':_0x2e674d(0x1ec),'params':{'unitId':_0x31ac9f['unitID'],'actions':null,'textRanges':_0xbe7708}}],_0x41e04e=this['_transformService']['transformMutationsWithChangeset'](_0x31ac9f,_0x8517f4);if(!_[_0x2e674d(0x438)](_0x41e04e))throw _0x41e04e['error'];const _0x35ee99=_0x41e04e[_0x2e674d(0xfe)][0x0][_0x2e674d(0x119)][_0x2e674d(0x386)];Array['isArray'](_0x35ee99)&&_0x35ee99[_0x2e674d(0x181)]&&_0x51d8fa[_0x2e674d(0x3f0)](_0x35ee99,!0x1);}};me=fs([Qe(0x0,o[_0x5e318a(0x23f)](o['Injector'])),Qe(0x1,_['ITransformService'])],me);function bt(_0x253ee5){const _0xb0ecf1=_0x5e318a;let _0x1d7292='';for(const _0x5333a4 of _0x253ee5){const {startOffset:_0x5dcb90,endOffset:_0x1c6f11,isActive:_0x50a0bf}=_0x5333a4;_0x1d7292[_0xb0ecf1(0x181)]&&(_0x1d7292+=','),_0x1d7292+=_0x5dcb90+':'+_0x1c6f11+':'+(_0x50a0bf?'1':'0');}return _0x1d7292;}function Is(_0x419fd9){const _0x121d92=_0x5e318a,_0x55319e=_0x419fd9[_0x121d92(0x13a)](','),_0x4ea2f5=[];for(const _0x4454ed of _0x55319e){const [_0x197a74,_0x43b1fa,_0x5709f5]=_0x4454ed['split'](':');_0x4ea2f5[_0x121d92(0x276)]({'startOffset':Number(_0x197a74),'endOffset':Number(_0x43b1fa),'collapsed':_0x197a74===_0x43b1fa,'isActive':_0x5709f5==='1'});}return _0x4ea2f5['some'](_0x3409a6=>_0x3409a6[_0x121d92(0x166)])||(_0x4ea2f5[0x0][_0x121d92(0x166)]=!0x0),_0x4ea2f5;}class We extends o['RxDisposable']{constructor(){const _0x811390=_0x5e318a;super(...arguments),u(this,'_collabCursorState$',new v[(_0x811390(0x18a))](null)),u(this,_0x811390(0x34d),this['_collabCursorState$'][_0x811390(0x468)]());}[_0x5e318a(0x27a)](_0x142f6e){const _0x396a4a=_0x5e318a,{unitID:_0x513cb1,memberID:_0x4f67fa,textRanges:_0x59acbd}=_0x142f6e,_0x24e49c=bt(_0x59acbd),_0x3a09af={'unitID':_0x513cb1,'memberID':_0x4f67fa,'selection':_0x24e49c};this[_0x396a4a(0x277)][_0x396a4a(0x318)](_0x3a09af);}}var ps=Object[_0x5e318a(0x33d)],Es=Object[_0x5e318a(0x225)],Cs=(_0x7dc8ed,_0x380e61,_0x9a1eb6,_0x263b08)=>{const _0x3aa220=_0x5e318a;for(var _0x1147cf=_0x263b08>0x1?void 0x0:_0x263b08?Es(_0x380e61,_0x9a1eb6):_0x380e61,_0x1097aa=_0x7dc8ed[_0x3aa220(0x181)]-0x1,_0x10414e;_0x1097aa>=0x0;_0x1097aa--)(_0x10414e=_0x7dc8ed[_0x1097aa])&&(_0x1147cf=(_0x263b08?_0x10414e(_0x380e61,_0x9a1eb6,_0x1147cf):_0x10414e(_0x1147cf))||_0x1147cf);return _0x263b08&&_0x1147cf&&ps(_0x380e61,_0x9a1eb6,_0x1147cf),_0x1147cf;},et=(_0x46f9de,_0x17662d)=>(_0x52abda,_0x25b2a1)=>_0x17662d(_0x52abda,_0x25b2a1,_0x46f9de);function bs(_0xa8c543){const _0xed13be=_0x5e318a,{unitID:_0x31dff9,mutations:_0x14c364}=_0xa8c543;return{'unitId':_0x31dff9,'subUnitId':_0x14c364[0x0][_0xed13be(0x119)]['subUnitId']};}let ge=class{constructor(_0x191c2c,_0x1bed23){const _0x3203b9=_0x5e318a;this[_0x3203b9(0xa4)]=_0x191c2c,this[_0x3203b9(0xca)]=_0x1bed23;}[_0x5e318a(0x436)](_0x53204c){const _0x124e05=_0x5e318a;var _0x124fe9,_0x4ccc42,_0x2849c8;const _0xf79324=this[_0x124e05(0xa4)]['get'](p[_0x124e05(0xde)]),{unitId:_0x14d135,subUnitId:_0x193f28}=bs(_0x53204c),_0x551ad3=_0xf79324[_0x124e05(0x310)](_0x14d135)[_0x124e05(0x448)]();if(_0x551ad3['length']===0x0||!_0x14d135||!_0x193f28)return;const _0x5c474e=[{'id':p[_0x124e05(0x2ac)]['id'],'params':{'unitId':_0x14d135,'subUnitId':_0x193f28,'selections':o[_0x124e05(0x3fb)][_0x124e05(0x442)](_0x551ad3)}}],_0x27604c=this[_0x124e05(0xca)]['transformMutationsWithChangeset'](_0x53204c,_0x5c474e);if(!_['isTransformMutationsWithChangesetSuccess'](_0x27604c))throw _0x27604c[_0x124e05(0x45d)];const _0x2473b8=(_0x2849c8=(_0x4ccc42=(_0x124fe9=_0x27604c['m2Prime'][0x0])==null?void 0x0:_0x124fe9[_0x124e05(0x119)])==null?void 0x0:_0x4ccc42[_0x124e05(0x432)])!=null?_0x2849c8:_0x551ad3;Array[_0x124e05(0x379)](_0x2473b8)&&_0x2473b8['length']&&this[_0x124e05(0xa4)][_0x124e05(0x236)](o[_0x124e05(0x247)])[_0x124e05(0x2c7)](p[_0x124e05(0x2ac)]['id'],{'unitId':_0x14d135,'subUnitId':_0x193f28,'selections':_0x2473b8});}};ge=Cs([et(0x0,o[_0x5e318a(0x23f)](o['Injector'])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x5e318a(0xe7)]['id']]);function tt(_0x4b6208,_0x4ff59b,_0x56aaf0,_0x221e11,_0x1609ff){const _0x271f0=_0x5e318a;var _0x3efaf0,_0x17286b,_0x31c02e,_0xbd9f30;const _0x24d2b4=[];for(const _0x27130b of _0x4b6208)if(Ts[_0x271f0(0x21e)](_0x27130b['id'])){if(_0x24d2b4[_0x271f0(0x181)]>0x0)break;_0x24d2b4[_0x271f0(0x276)](_0x27130b);break;}else _0x24d2b4[_0x271f0(0x276)](_0x27130b);const _0x5f58fb=(_0x17286b=(_0x3efaf0=_0x1609ff['getCurrentUser']())==null?void 0x0:_0x3efaf0['userID'])!=null?_0x17286b:_0x271f0(0x107),_0x47f1fe=(_0xbd9f30=(_0x31c02e=_0x1609ff[_0x271f0(0x3a7)]())==null?void 0x0:_0x31c02e[_0x271f0(0x328)])!=null?_0xbd9f30:_0x271f0(0x107);return{'changeset':{'unitID':_0x4ff59b,'type':_[_0x271f0(0x478)](_0x56aaf0[_0x271f0(0x121)](_0x4ff59b)),'baseRev':_0x221e11[_0x271f0(0x1fa)](_0x4ff59b),'revision':0x0,'userID':_0x5f58fb,'memberID':_0x47f1fe,'mutations':_0x24d2b4},'pendingMutations':_0x4b6208[_0x271f0(0x321)](_0x24d2b4[_0x271f0(0x181)])};}function Rs(_0x3f35b1,_0x420571,_0x3c7028,_0x5e489c,_0x422b6c){const _0x2e7868=_0x5e318a;var _0x52eda6,_0x215af6,_0xf72c25,_0x54ea38;const _0x4d7081=[_0x3f35b1[_0x2e7868(0x2bc)]((_0x39d4c9,_0x3614ee)=>{const _0x41dc89=_0x2e7868;var _0x1fdbf1;const {id:_0x58c4db}=_0x39d4c9,{id:_0x419aeb,type:_0x276570}=_0x3614ee,_0x227766=(_0x1fdbf1=_0x39d4c9['params'])!=null?_0x1fdbf1:{'actions':null},_0x8471b=_0x3614ee[_0x41dc89(0x119)];if(_0x58c4db&&_0x58c4db!==_0x419aeb)throw new Error(_0x41dc89(0x3d4)+_0x58c4db+_0x41dc89(0x30f)+_0x419aeb+'.');return{..._0x39d4c9,'id':_0x419aeb,'type':_0x276570,'params':{'unitId':_0x8471b[_0x41dc89(0x10e)],'textRanges':_0x8471b[_0x41dc89(0x386)],'actions':o[_0x41dc89(0x3f9)]['compose'](_0x227766[_0x41dc89(0x1d2)],_0x8471b['actions'])}};},{})],_0x4f9fc0=(_0x215af6=(_0x52eda6=_0x422b6c[_0x2e7868(0x3a7)]())==null?void 0x0:_0x52eda6[_0x2e7868(0x1c0)])!=null?_0x215af6:_0x2e7868(0x107),_0x16df37=(_0x54ea38=(_0xf72c25=_0x422b6c[_0x2e7868(0x3a7)]())==null?void 0x0:_0xf72c25['memberID'])!=null?_0x54ea38:_0x2e7868(0x107);return{'changeset':{'unitID':_0x420571,'type':_['mapDocumentTypeToUniverType'](_0x3c7028[_0x2e7868(0x121)](_0x420571)),'baseRev':_0x5e489c[_0x2e7868(0x1fa)](_0x420571),'revision':0x0,'userID':_0x4f9fc0,'memberID':_0x16df37,'mutations':_0x4d7081},'pendingMutations':[]};}const Os={'id':p[_0x5e318a(0x12b)]['id'],'type':o['CommandType'][_0x5e318a(0x427)],'params':{}};var Ds=Object['defineProperty'],Ps=Object['getOwnPropertyDescriptor'],K=(_0x52ab7d,_0x4971be,_0x20a509,_0x4f4510)=>{const _0x429eca=_0x5e318a;for(var _0x9c44ed=_0x4f4510>0x1?void 0x0:_0x4f4510?Ps(_0x4971be,_0x20a509):_0x4971be,_0x5c887a=_0x52ab7d[_0x429eca(0x181)]-0x1,_0x8168d;_0x5c887a>=0x0;_0x5c887a--)(_0x8168d=_0x52ab7d[_0x5c887a])&&(_0x9c44ed=(_0x4f4510?_0x8168d(_0x4971be,_0x20a509,_0x9c44ed):_0x8168d(_0x9c44ed))||_0x9c44ed);return _0x4f4510&&_0x9c44ed&&Ds(_0x4971be,_0x20a509,_0x9c44ed),_0x9c44ed;},m=(_0x5c2df2,_0x37d6d4)=>(_0x685e73,_0x4159a2)=>_0x37d6d4(_0x685e73,_0x4159a2,_0x5c2df2),D=(_0x514b8b=>(_0x514b8b[_0x5e318a(0x146)]=_0x5e318a(0x19d),_0x514b8b['SYNCED']=_0x5e318a(0x365),_0x514b8b[_0x5e318a(0x157)]=_0x5e318a(0x29c),_0x514b8b[_0x5e318a(0x12f)]='awaiting',_0x514b8b[_0x5e318a(0x3da)]=_0x5e318a(0xb7),_0x514b8b[_0x5e318a(0x1c5)]=_0x5e318a(0x113),_0x514b8b['CONFLICT']=_0x5e318a(0xb6),_0x514b8b[_0x5e318a(0x396)]=_0x5e318a(0x40c),_0x514b8b))(D||{});class X{constructor(_0x2e0c1b,_0x5beb98,_0x35c99a,_0x2a7e6d,_0x2dcc4e,_0x150589,_0xe1d567,_0x9fe5c9,_0x3ce2e3){const _0x1f7a1c=_0x5e318a;u(this,_0x1f7a1c(0x112),null),u(this,_0x1f7a1c(0xd7),[]),(this[_0x1f7a1c(0x312)]=_0x2e0c1b,this[_0x1f7a1c(0x1c1)]=_0x5beb98,this['_handler']=_0x2dcc4e,this['_commandService']=_0x150589,this[_0x1f7a1c(0x2b2)]=_0xe1d567,this[_0x1f7a1c(0x30c)]=_0x9fe5c9,this[_0x1f7a1c(0x11f)]=_0x3ce2e3,this['_awaitingChangeset']=_0x35c99a,this[_0x1f7a1c(0xd7)]=_0x2a7e6d);}[_0x5e318a(0x161)](_0x388200){const _0x4691ab=_0x5e318a,_0x4f94b8=this['_revisionService'][_0x4691ab(0x1fa)](this[_0x4691ab(0x312)]);return _0x388200[_0x4691ab(0x2c0)]>_0x4f94b8+0x1?(this['_handler'][_0x4691ab(0x1f2)]({'from':_0x4f94b8,'to':_0x388200[_0x4691ab(0x2c0)]-0x1}),!0x0):!0x1;}[_0x5e318a(0x457)](_0xe11edf){const _0x3ad155=_0x5e318a;this[_0x3ad155(0x2b2)][_0x3ad155(0x447)](this[_0x3ad155(0x312)],_0xe11edf);}[_0x5e318a(0x1bf)](_0x31d21d){const _0x5c3178=_0x5e318a;var _0x59f25a,_0x382a68;(_0x382a68=(_0x59f25a=this['_handler'])[_0x5c3178(0x44d)])==null||_0x382a68[_0x5c3178(0x3a8)](_0x59f25a,_0x31d21d);}['_transformIMECache'](_0x2ca350){const _0x4b5ff7=_0x5e318a;var _0x2b425a,_0x1350e1;return(_0x1350e1=(_0x2b425a=this[_0x4b5ff7(0x1b7)])['onTransformIME'])==null?void 0x0:_0x1350e1['call'](_0x2b425a,_0x2ca350);}[_0x5e318a(0x3bb)](_0x44489e){const _0x3fc235=_0x5e318a;var _0x1c601e,_0x41f8d1,_0x372068;return(_0x372068=(_0x41f8d1=(_0x1c601e=this[_0x3fc235(0x1b7)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x41f8d1['call'](_0x1c601e,_0x44489e))!=null?_0x372068:_0x44489e;}['_syncEditingCollabCursor'](_0xa35e9){const _0x378c7a=_0x5e318a;var _0x38c359,_0x393f36;if(this[_0x378c7a(0x1c1)]===j[_0x378c7a(0x41b)]){const {unitID:_0x207d8b,mutations:_0x45bc49,memberID:_0x4efa45}=_0xa35e9,_0x1cec00=_0x45bc49[0x0][_0x378c7a(0x119)][_0x378c7a(0x386)];Array['isArray'](_0x1cec00)&&_0x1cec00[_0x378c7a(0x181)]>0x0&&((_0x393f36=(_0x38c359=this[_0x378c7a(0x1b7)])['onSyncEditingCollabCursor'])==null||_0x393f36[_0x378c7a(0x3a8)](_0x38c359,{'unitID':_0x207d8b,'memberID':_0x4efa45,'textRanges':_0x1cec00}));}}['_updateLocalCache'](){const _0x4b27f9=_0x5e318a;this['_localCacheService'][_0x4b27f9(0x443)](this[_0x4b27f9(0x312)],this[_0x4b27f9(0x1c1)],this[_0x4b27f9(0x112)],this['_pendingMutations']);}[_0x5e318a(0x40a)](){const _0x3822b8=_0x5e318a;return this[_0x3822b8(0x30c)][_0x3822b8(0x1fa)](this['unitID']);}[_0x5e318a(0x366)](){const _0x3df3cf=_0x5e318a;this[_0x3df3cf(0x30c)]['incrementRevForDocument'](this[_0x3df3cf(0x312)]);}[_0x5e318a(0x223)](_0x17b391){const _0xeac4e7=_0x5e318a;var _0x3880e0;const _0x2d912a=this['_transformRemoteChangesetByIMECache'](_0x17b391),_0x5d92a0=o[_0xeac4e7(0x3c1)](_0x2d912a[_0xeac4e7(0x31a)],this[_0xeac4e7(0x10f)],{'fromCollab':!0x0});if(!_0x5d92a0[_0xeac4e7(0x27f)])throw _0x5d92a0[_0xeac4e7(0x45d)]instanceof Error?_0x5d92a0[_0xeac4e7(0x45d)]:new Error((_0x3880e0=_0x5d92a0[_0xeac4e7(0x45d)])!=null?_0x3880e0:_0xeac4e7(0x339));this[_0xeac4e7(0x234)](_0x2d912a),this[_0xeac4e7(0x457)](_0x17b391),this['_transformSelections'](_0x2d912a),this[_0xeac4e7(0x182)](_0x2d912a),this[_0xeac4e7(0x366)]();}}let ce=class extends X{constructor(_0x3a5a35,_0x385796,_0x563542,_0x217aff,_0x164368,_0x35dea3,_0x5296cc,_0x24a30a,_0x72a247,_0x3faa1e){const _0x116f80=_0x5e318a;super(_0x3a5a35,_0x385796,null,[],_0x563542,_0x24a30a,_0x5296cc,_0x217aff,_0x164368),u(this,_0x116f80(0x170),_0x116f80(0x365)),(this['_injector']=_0x35dea3,this['_logService']=_0x72a247,this[_0x116f80(0xca)]=_0x3faa1e);}['appendMutation'](_0x58ecd8){const _0x384917=_0x5e318a,_0x251127=this[_0x384917(0xa4)][_0x384917(0x376)]($,this[_0x384917(0x312)],this[_0x384917(0x1c1)],[_0x58ecd8],this[_0x384917(0x1b7)]);return _0x251127[_0x384917(0xec)](),_0x251127[_0x384917(0x11d)](),_0x251127;}['onRemoteChangeset'](_0x1d5950){const _0x49d9d4=_0x5e318a;if(this[_0x49d9d4(0x161)](_0x1d5950))return this[_0x49d9d4(0xa4)]['createInstance'](H,this['unitID'],this[_0x49d9d4(0x1c1)],null,[],null,[_0x1d5950],this[_0x49d9d4(0x1b7)]);try{const _0x406db3=this['_transformService']['transformMutationsWithChangeset'](_0x1d5950,[Os]);if(_[_0x49d9d4(0x438)](_0x406db3)){const {c1Prime:_0x393cf6}=_0x406db3;return this[_0x49d9d4(0x223)](_0x393cf6),this;}throw _0x406db3['error'];}catch(_0x1d7940){return this['_logService']['error'](_0x1d7940),this['_onConflict'](!0x1);}}[_0x5e318a(0x1e1)](_0x6abebc){const _0x4ee51d=_0x5e318a;return this[_0x4ee51d(0xa4)]['createInstance'](B,this[_0x4ee51d(0x312)],this[_0x4ee51d(0x1c1)],null,[],this[_0x4ee51d(0x1b7)],_0x6abebc);}[_0x5e318a(0x363)](){const _0x557f3d=_0x5e318a;throw new Error(_0x557f3d(0x461));}[_0x5e318a(0x1a7)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x5e318a(0x160)](){const _0x17e90e=_0x5e318a;return this[_0x17e90e(0xa4)][_0x17e90e(0x376)](V,this['unitID'],this[_0x17e90e(0x1c1)],null,[],this[_0x17e90e(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x104073=_0x5e318a;throw new Error(_0x104073(0x168));}};ce=K([m(0x3,o['Inject'](_[_0x5e318a(0x2bd)])),m(0x4,o['Inject'](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x36d)]),m(0x7,o[_0x5e318a(0x247)]),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,_[_0x5e318a(0xa0)])],ce);let $=class extends X{constructor(_0x146b25,_0x5a9c3b,_0x5039f5,_0x3b4bda,_0xb55c31,_0x304837,_0x481f43,_0x40fc07,_0x39deb3,_0x59a0ef,_0xd935d0,_0xcdc9a8,_0x57305c,_0x259f7e){const _0x1168fa=_0x5e318a;super(_0x146b25,_0x5a9c3b,null,_0x5039f5,_0x3b4bda,_0x59a0ef,_0x259f7e,_0x304837,_0x481f43),u(this,_0x1168fa(0x170),_0x1168fa(0x29c)),u(this,'_scheduleTimestamp',null),u(this,_0x1168fa(0x441),null),(this[_0x1168fa(0xa4)]=_0xb55c31,this['_memberService']=_0x40fc07,this[_0x1168fa(0x141)]=_0x39deb3,this[_0x1168fa(0xc3)]=_0xd935d0,this[_0x1168fa(0xca)]=_0xcdc9a8,this[_0x1168fa(0x1fd)]=_0x57305c);}[_0x5e318a(0xcd)](_0x332adc){const _0x12de2c=_0x5e318a;return this[_0x12de2c(0xd7)][_0x12de2c(0x276)](_0x332adc),this['_updateLocalCache'](),this;}[_0x5e318a(0x3be)](_0x433662){const _0x1768aa=_0x5e318a;if(this[_0x1768aa(0x161)](_0x433662))return this['_clearScheduledTask'](),this[_0x1768aa(0xa4)][_0x1768aa(0x376)](H,this[_0x1768aa(0x312)],this[_0x1768aa(0x1c1)],null,this[_0x1768aa(0xd7)],null,[_0x433662],this[_0x1768aa(0x1b7)]);try{const _0x414447=this[_0x1768aa(0xca)][_0x1768aa(0x319)](_0x433662,this[_0x1768aa(0xd7)]);if(_[_0x1768aa(0x438)](_0x414447)){const {c1Prime:_0x5a2495,m2Prime:_0x269bbc}=_0x414447;this['_executeRemoteChangeset'](_0x5a2495);const _0x2d5c7e=this[_0x1768aa(0xa4)][_0x1768aa(0x376)]($,this[_0x1768aa(0x312)],this[_0x1768aa(0x1c1)],_0x269bbc,this[_0x1768aa(0x1b7)]);return this['_clearScheduledTask'](),_0x2d5c7e[_0x1768aa(0xec)](this[_0x1768aa(0x279)]?Math[_0x1768aa(0xae)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1768aa(0x16b)]()),_0x2d5c7e;}throw _0x414447['error'];}catch(_0x262373){return this['_logService'][_0x1768aa(0x45d)](_0x262373),this[_0x1768aa(0x1e1)](!0x1);}}[_0x5e318a(0x363)](){const _0x553ef2=_0x5e318a;throw new Error(_0x553ef2(0x284));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x5e318a(0x160)](){const _0x582e06=_0x5e318a;return this[_0x582e06(0x30d)](),this[_0x582e06(0xa4)][_0x582e06(0x376)](V,this[_0x582e06(0x312)],this['type'],null,this['_pendingMutations'],this[_0x582e06(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}['_schedule'](_0x550e73){const _0x2931f7=_0x5e318a;_0x550e73=_0x550e73!=null?_0x550e73:this['_getSendChangesetTimeout'](),this[_0x2931f7(0x279)]=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x428acb=_0x2931f7;this[_0x428acb(0x30d)]();let _0x94b9be=null;switch(this['type']){case j[_0x428acb(0x1dd)]:{_0x94b9be=tt(this['_pendingMutations'],this[_0x428acb(0x312)],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this['_memberService']);break;}case j[_0x428acb(0x41b)]:{this[_0x428acb(0xd7)][_0x428acb(0x446)](_0x2330a7=>_0x2330a7['id']===P[_0x428acb(0x305)]['id'])?_0x94b9be=Rs(this['_pendingMutations'],this[_0x428acb(0x312)],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this['_memberService']):_0x94b9be=tt(this[_0x428acb(0xd7)],this['unitID'],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this[_0x428acb(0x3d5)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x428acb(0x1c1)]+_0x428acb(0x15d));}const {changeset:_0x4b0e44,pendingMutations:_0x339649}=_0x94b9be;this[_0x428acb(0x1b7)][_0x428acb(0x31b)](_0x4b0e44);const _0x3aed62=_0x339649[_0x428acb(0x181)]?this[_0x428acb(0xa4)][_0x428acb(0x376)](x,this[_0x428acb(0x312)],this[_0x428acb(0x1c1)],_0x4b0e44,_0x339649,this[_0x428acb(0x1b7)]):this[_0x428acb(0xa4)]['createInstance'](k,this['unitID'],this[_0x428acb(0x1c1)],_0x4b0e44,this[_0x428acb(0x1b7)]);_0x3aed62[_0x428acb(0x11d)](),this['_handler'][_0x428acb(0x115)](this,_0x3aed62);},_0x550e73);}[_0x5e318a(0x16b)](){const _0x32b8f3=_0x5e318a;var _0x169dfc;return(_0x169dfc=this[_0x32b8f3(0xc3)][_0x32b8f3(0x299)](ht))!=null?_0x169dfc:Wt;}[_0x5e318a(0x94)](){const _0x5b9603=_0x5e318a;throw new Error(_0x5b9603(0x2dc));}[_0x5e318a(0x30d)](){const _0x3e0a79=_0x5e318a;this[_0x3e0a79(0x441)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}['_onConflict'](_0x2d9490){const _0x4cb518=_0x5e318a;return this[_0x4cb518(0x30d)](),this[_0x4cb518(0xa4)]['createInstance'](B,this[_0x4cb518(0x312)],this['type'],null,this['_pendingMutations'],this[_0x4cb518(0x1b7)],_0x2d9490);}};$=K([m(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x6,o['Inject'](exports[_0x5e318a(0x199)])),m(0x7,o[_0x5e318a(0x23f)](Y)),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,o[_0x5e318a(0x247)]),m(0xa,o['IConfigService']),m(0xb,_['ITransformService']),m(0xc,o[_0x5e318a(0x1da)]),m(0xd,o[_0x5e318a(0x36d)])],$);let k=class extends X{constructor(_0x12c52c,_0x27dcff,_0x492d94,_0x38a85e,_0x1526df,_0x57d11a,_0x37598a,_0x52e98f,_0x2144b8,_0x321af8,_0x2da8df){const _0x1e71b7=_0x5e318a;super(_0x12c52c,_0x27dcff,_0x492d94,[],_0x38a85e,_0x52e98f,_0x2da8df,_0x57d11a,_0x37598a),u(this,_0x1e71b7(0x170),_0x1e71b7(0x2f2)),(this['_injector']=_0x1526df,this['_logService']=_0x2144b8,this['_transformService']=_0x321af8);}[_0x5e318a(0xcd)](_0x45f90f){const _0x1e7a7f=_0x5e318a,_0x30794a=this[_0x1e7a7f(0xa4)][_0x1e7a7f(0x376)](x,this[_0x1e7a7f(0x312)],this['type'],this[_0x1e7a7f(0x112)],[_0x45f90f],this[_0x1e7a7f(0x1b7)]);return _0x30794a[_0x1e7a7f(0x11d)](),_0x30794a;}['onRemoteChangeset'](_0x4763a9){const _0x3027a1=_0x5e318a;if(this[_0x3027a1(0x161)](_0x4763a9))return this[_0x3027a1(0xa4)][_0x3027a1(0x376)](H,this[_0x3027a1(0x312)],this['type'],this['_awaitingChangeset'],[],null,[_0x4763a9],this['_handler']);try{const _0x2834f1=this[_0x3027a1(0xca)][_0x3027a1(0x2d1)]([_0x4763a9],[this['_awaitingChangeset']],!0x1);if(_[_0x3027a1(0x3f5)](_0x2834f1)){const {c1Prime:_0x13c9b2,c2Prime:_0x58fd76}=_0x2834f1;this[_0x3027a1(0x223)](_0x13c9b2[0x0]),_0x58fd76[0x0]['baseRev']=this[_0x3027a1(0x40a)]();const _0x1d8da7=this['_injector'][_0x3027a1(0x376)](k,this[_0x3027a1(0x312)],this[_0x3027a1(0x1c1)],_0x58fd76[0x0],this[_0x3027a1(0x1b7)]);return _0x1d8da7[_0x3027a1(0x11d)](),_0x1d8da7;}return this['_onConflict'](!0x1);}catch(_0x366fdb){return this[_0x3027a1(0x141)][_0x3027a1(0x45d)](_0x366fdb),this[_0x3027a1(0x1e1)](!0x1);}}[_0x5e318a(0x363)](_0x203d48){const _0x54d067=_0x5e318a,_0x357ef5=this[_0x54d067(0x30c)][_0x54d067(0x1fa)](this[_0x54d067(0x312)]);if(_0x203d48['revision']<_0x357ef5-0x1)return this;if(this[_0x54d067(0x161)](_0x203d48))return this[_0x54d067(0xa4)][_0x54d067(0x376)](H,this[_0x54d067(0x312)],this[_0x54d067(0x1c1)],null,[],this['_awaitingChangeset'],[],this[_0x54d067(0x1b7)]);this['_incrementRevisionNumber']();const _0x39d294=this[_0x54d067(0xa4)][_0x54d067(0x376)](ce,this['unitID'],this[_0x54d067(0x1c1)],this[_0x54d067(0x1b7)]);return _0x39d294['_updateLocalCache'](),_0x39d294;}['onRemoteRej'](_0x374d34){const _0x370d51=_0x5e318a;return this['_onConflict'](!!(_0x374d34!=null&&_0x374d34[_0x370d51(0x128)]));}['toggleOffline'](){const _0x5bb5df=_0x5e318a;return this[_0x5bb5df(0xa4)][_0x5bb5df(0x376)](V,this[_0x5bb5df(0x312)],this[_0x5bb5df(0x1c1)],this[_0x5bb5df(0x112)],[],this[_0x5bb5df(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x261574=_0x5e318a;this[_0x261574(0x1b7)][_0x261574(0x31b)](this[_0x261574(0x112)]);}[_0x5e318a(0x1e1)](_0x34885f){const _0x3fd036=_0x5e318a;return this[_0x3fd036(0xa4)][_0x3fd036(0x376)](B,this[_0x3fd036(0x312)],this[_0x3fd036(0x1c1)],this[_0x3fd036(0x112)],[],this[_0x3fd036(0x1b7)],_0x34885f);}};k=K([m(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x5,o[_0x5e318a(0x23f)](_['RevisionService'])),m(0x6,o['Inject'](exports[_0x5e318a(0x199)])),m(0x7,o['ICommandService']),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,_['ITransformService']),m(0xa,o[_0x5e318a(0x36d)])],k);let x=class extends X{constructor(_0x24f490,_0x352361,_0x4722f6,_0x34d3b4,_0x46f20e,_0x5db5ed,_0x2f0e39,_0x44b957,_0x276060,_0x5741f3,_0x13b61a,_0x1f7e54){const _0x1b139f=_0x5e318a;super(_0x24f490,_0x352361,_0x4722f6,_0x34d3b4,_0x46f20e,_0x276060,_0x1f7e54,_0x2f0e39,_0x44b957),u(this,_0x1b139f(0x170),_0x1b139f(0xb7)),(this[_0x1b139f(0xa4)]=_0x5db5ed,this[_0x1b139f(0x141)]=_0x5741f3,this['_transformService']=_0x13b61a);}['appendMutation'](_0x355a9f){const _0x547af6=_0x5e318a;return this[_0x547af6(0xd7)][_0x547af6(0x276)](_0x355a9f),this;}[_0x5e318a(0x3be)](_0x50aab9){const _0x3f129e=_0x5e318a;if(this[_0x3f129e(0x161)](_0x50aab9))return this[_0x3f129e(0xa4)][_0x3f129e(0x376)](H,this[_0x3f129e(0x312)],this[_0x3f129e(0x1c1)],this[_0x3f129e(0x112)],this[_0x3f129e(0xd7)],null,[_0x50aab9],this[_0x3f129e(0x1b7)]);try{const _0x51e065=this[_0x3f129e(0xca)]['transformChangesets']([_0x50aab9],[this[_0x3f129e(0x112)]],!0x1);if(_[_0x3f129e(0x3f5)](_0x51e065)){const {c1Prime:_0x2e5d3b,c2Prime:_0x4ed320}=_0x51e065,_0x353aad=this[_0x3f129e(0xca)][_0x3f129e(0x319)](_0x2e5d3b[0x0],this['_pendingMutations']);if(_[_0x3f129e(0x438)](_0x353aad)){const {c1Prime:_0x149eff,m2Prime:_0xbc8f24}=_0x353aad;return this[_0x3f129e(0x223)](_0x149eff),_0x4ed320[0x0]['baseRev']=this[_0x3f129e(0x40a)](),this['_injector'][_0x3f129e(0x376)](x,this[_0x3f129e(0x312)],this[_0x3f129e(0x1c1)],_0x4ed320[0x0],_0xbc8f24,this['_handler']);}throw _0x353aad[_0x3f129e(0x45d)];}throw _0x51e065[_0x3f129e(0x45d)];}catch(_0x2886b1){return this[_0x3f129e(0x141)][_0x3f129e(0x45d)](_0x2886b1),this[_0x3f129e(0x1e1)](!0x1);}}['onRemoteAck'](_0x1254be){const _0x52b3ec=_0x5e318a;if(this[_0x52b3ec(0x161)](_0x1254be))return this[_0x52b3ec(0xa4)][_0x52b3ec(0x376)](H,this[_0x52b3ec(0x312)],this[_0x52b3ec(0x1c1)],null,this['_pendingMutations'],this[_0x52b3ec(0x112)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2bb813=this[_0x52b3ec(0xa4)][_0x52b3ec(0x376)]($,this['unitID'],this[_0x52b3ec(0x1c1)],this[_0x52b3ec(0xd7)],this[_0x52b3ec(0x1b7)]);return _0x2bb813['_schedule'](),_0x2bb813['_updateLocalCache'](),_0x2bb813;}['onRemoteRej'](_0xfc434){const _0x35b675=_0x5e318a;return this[_0x35b675(0x1e1)](!!(_0xfc434!=null&&_0xfc434['isPermissionRej']));}['toggleOffline'](){const _0x6966e3=_0x5e318a;return this['_injector'][_0x6966e3(0x376)](V,this[_0x6966e3(0x312)],this[_0x6966e3(0x1c1)],this[_0x6966e3(0x112)],this[_0x6966e3(0xd7)],this[_0x6966e3(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x11ffbb=_0x5e318a;this[_0x11ffbb(0x1b7)][_0x11ffbb(0x31b)](this['_awaitingChangeset']);}[_0x5e318a(0x1e1)](_0x5763e9){const _0x1e9b19=_0x5e318a;return this[_0x1e9b19(0xa4)][_0x1e9b19(0x376)](B,this[_0x1e9b19(0x312)],this['type'],null,this[_0x1e9b19(0xd7)],this[_0x1e9b19(0x1b7)],_0x5763e9);}};x=K([m(0x5,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x7,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),m(0x8,o[_0x5e318a(0x247)]),m(0x9,o[_0x5e318a(0xfb)]),m(0xa,_[_0x5e318a(0xa0)]),m(0xb,o[_0x5e318a(0x36d)])],x);let B=class extends X{constructor(_0x479569,_0x2d2181,_0x5c091c,_0x24b96e,_0x18688a,_0x568b5d=!0x1,_0xbdc5,_0x173027,_0x597dd0,_0x4df33f,_0x32045d,_0x46e73c,_0x5d5d1b){const _0x2e0296=_0x5e318a;super(_0x479569,_0x2d2181,_0x5c091c,_0x24b96e,_0x18688a,_0x173027,_0x597dd0,_0x32045d,_0x4df33f),u(this,_0x2e0296(0x170),_0x2e0296(0xb6)),(this[_0x2e0296(0x3f6)]=_0x568b5d,this[_0x2e0296(0x434)]=_0xbdc5,this[_0x2e0296(0x2a5)]=_0x46e73c,this['_notificationService']=_0x5d5d1b,this[_0x2e0296(0x410)](),this[_0x2e0296(0x1c8)](),this[_0x2e0296(0x164)]());}['appendMutation'](){return this;}[_0x5e318a(0x3be)](){return this;}[_0x5e318a(0x363)](){return this;}[_0x5e318a(0x1a7)](){return this;}[_0x5e318a(0x160)](){return this;}[_0x5e318a(0xa8)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x4e0ef5=_0x5e318a;this[_0x4e0ef5(0x11f)][_0x4e0ef5(0x443)](this[_0x4e0ef5(0x312)],this[_0x4e0ef5(0x1c1)],null,[]);}[_0x5e318a(0x410)](){const _0x353b56=_0x5e318a;this['_isPermissionRej']?this[_0x353b56(0xf3)][_0x353b56(0x2eb)]({'title':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x1d5)),'content':this[_0x353b56(0x2a5)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x353b56(0xf3)]['show']({'title':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x367)),'content':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x345)),'type':'error','duration':0x0});}[_0x5e318a(0x164)](){const _0x319a9f=_0x5e318a;this[_0x319a9f(0x434)][_0x319a9f(0x2e4)](new p[(_0x319a9f(0xd9))](this[_0x319a9f(0x312)])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x5e318a(0x260)])),m(0x7,o['ICommandService']),m(0x8,o[_0x5e318a(0x36d)]),m(0x9,o[_0x5e318a(0x23f)](exports['LocalCacheService'])),m(0xa,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0xb,o[_0x5e318a(0x23f)](o['LocaleService'])),m(0xc,L[_0x5e318a(0x40d)])],B);let V=class extends X{constructor(_0x3b1fe8,_0x55fe29,_0x3a0865,_0x1ca539,_0x2501cb,_0x20346a,_0x36ba26,_0x38ba84,_0x46ea75,_0x385b4f){const _0x20af16=_0x5e318a;super(_0x3b1fe8,_0x55fe29,_0x3a0865,_0x1ca539,_0x2501cb,_0x46ea75,_0x385b4f,_0x36ba26,_0x38ba84),u(this,_0x20af16(0x170),'offline'),this[_0x20af16(0xa4)]=_0x20346a;}[_0x5e318a(0xcd)](_0xdf0a2){const _0x28d66c=_0x5e318a;return this[_0x28d66c(0xd7)][_0x28d66c(0x276)](_0xdf0a2),this[_0x28d66c(0x11d)](),this;}[_0x5e318a(0x3be)](_0x28fba8){const _0x1b41dc=_0x5e318a;throw new Error(_0x1b41dc(0x1e9));}['onRemoteAck'](){const _0x360468=_0x5e318a;throw new Error(_0x360468(0x309));}[_0x5e318a(0x1a7)](){const _0x99468e=_0x5e318a;throw new Error(_0x99468e(0x445));}[_0x5e318a(0x160)](){return this;}[_0x5e318a(0xa8)](){const _0x4f442b=_0x5e318a,{_injector:_0x4b2a67,_pendingMutations:_0x3de113,_awaitingChangeset:_0x566348,unitID:_0x12f070,_handler:_0x75678,type:_0x313bae}=this,_0xca3d27=Tt(_0x4b2a67,_0x12f070,_0x313bae,_0x566348,_0x3de113,_0x75678);return _0xca3d27 instanceof $?_0xca3d27[_0x4f442b(0xec)]():(_0xca3d27 instanceof x||_0xca3d27 instanceof k)&&_0xca3d27[_0x4f442b(0x94)](),_0xca3d27;}[_0x5e318a(0x94)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};V=K([m(0x5,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x7,o[_0x5e318a(0x23f)](exports['LocalCacheService'])),m(0x8,o[_0x5e318a(0x247)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0x56a36d,_0x30aafa,_0x5dd418,_0x7428e1,_0x3d0455,_0x34830d,_0x46cbc4,_0x39288c,_0x42e7b8,_0x311265,_0x15beef,_0x55fd36,_0x117a44,_0x2fc277){const _0x277b81=_0x5e318a;super(_0x56a36d,_0x30aafa,_0x5dd418,_0x7428e1,_0x46cbc4,_0x55fd36,_0x117a44,_0x42e7b8,_0x311265),u(this,_0x277b81(0x170),_0x277b81(0x113)),(this[_0x277b81(0x2fd)]=_0x3d0455,this[_0x277b81(0x15c)]=_0x34830d,this[_0x277b81(0xa4)]=_0x39288c,this[_0x277b81(0x141)]=_0x15beef,this[_0x277b81(0xca)]=_0x2fc277);}['onMissedChangesetFetched'](_0x558547){const _0x2e5bd6=_0x5e318a;try{const _0xfbea7=[..._0x558547,...this[_0x2e5bd6(0x15c)]],_0x120047=[this[_0x2e5bd6(0x112)]||this[_0x2e5bd6(0x2fd)]][_0x2e5bd6(0x218)](_0x527ba5=>!!_0x527ba5);let _0x5d97f5,_0x295ae8;if(_0x120047[_0x2e5bd6(0x181)]){const _0x38361a=this[_0x2e5bd6(0xca)]['transformChangesets'](_0xfbea7,_0x120047,!0x1);if(!_[_0x2e5bd6(0x3f5)](_0x38361a))throw _0x38361a[_0x2e5bd6(0x45d)];_0x5d97f5=_0x38361a['c1Prime'],_0x295ae8=_0x38361a[_0x2e5bd6(0x477)];}else _0x5d97f5=_0xfbea7,_0x295ae8=[];let _0x290399=this['_pendingMutations'];_0x5d97f5[_0x2e5bd6(0x183)](_0x4ae80c=>{const _0x3d9013=_0x2e5bd6;let _0x21881a;if(_0x290399[_0x3d9013(0x181)]){const _0xb4ef9b=this[_0x3d9013(0xca)]['transformMutationsWithChangeset'](_0x4ae80c,_0x290399);if(!_['isTransformMutationsWithChangesetSuccess'](_0xb4ef9b))throw _0xb4ef9b[_0x3d9013(0x45d)];_0x21881a=_0xb4ef9b['c1Prime'],_0x290399=_0xb4ef9b[_0x3d9013(0xfe)];}else _0x21881a=_0x4ae80c;this['_executeRemoteChangeset'](_0x21881a);}),this[_0x2e5bd6(0x2fd)]&&this[_0x2e5bd6(0x366)](),this[_0x2e5bd6(0x112)]&&_0x295ae8['length']&&(_0x295ae8[0x0]['baseRev']=this['_getCurrentRevision']());let _0x2766a8;if(this[_0x2e5bd6(0x112)]&&_0x290399['length']!==0x0)_0x2766a8=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)](x,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],_0x295ae8[0x0],_0x290399,this[_0x2e5bd6(0x1b7)]);else{if(this[_0x2e5bd6(0x112)]&&_0x290399[_0x2e5bd6(0x181)]===0x0)_0x295ae8[0x0]['baseRev']=this['_getCurrentRevision'](),_0x2766a8=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)](k,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],_0x295ae8[0x0],this['_handler']);else{if(_0x290399[_0x2e5bd6(0x181)]!==0x0){const _0x518f73=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)]($,this['unitID'],this['type'],_0x290399,this['_handler']);_0x518f73[_0x2e5bd6(0xec)](),_0x2766a8=_0x518f73;}else _0x2766a8=this['_injector'][_0x2e5bd6(0x376)](ce,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],this['_handler']);}}return _0x2766a8['_updateLocalCache'](),_0x2766a8;}catch(_0x51df1e){return this[_0x2e5bd6(0x141)][_0x2e5bd6(0x45d)](_0x2e5bd6(0x46d),'failed\x20to\x20apply\x20missed\x20changesets!',_0x51df1e),this['_injector'][_0x2e5bd6(0x376)](B,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],this['_awaitingChangeset'],this[_0x2e5bd6(0xd7)],this['_handler'],!0x1);}}[_0x5e318a(0x94)](){const _0x1e44d9=_0x5e318a;throw new Error(_0x1e44d9(0x3ec));}[_0x5e318a(0xcd)](_0x458513){return this['_pendingMutations']['push'](_0x458513),this;}[_0x5e318a(0x3be)](_0x106530){const _0x29771c=_0x5e318a;return this[_0x29771c(0x15c)][_0x29771c(0x276)](_0x106530),this;}[_0x5e318a(0x363)](_0x9a7240){const _0x53cbbb=_0x5e318a;if(this[_0x53cbbb(0x112)])return this['_acknowledgedAwaitingChangeset']=this[_0x53cbbb(0x112)],this[_0x53cbbb(0x112)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x5e318a(0x1a7)](_0x49d5c1){const _0x5ea828=_0x5e318a;return this[_0x5ea828(0x1e1)](!!(_0x49d5c1!=null&&_0x49d5c1[_0x5ea828(0x128)]));}[_0x5e318a(0x160)](){const _0x1cd5c0=_0x5e318a;return this[_0x1cd5c0(0xa4)][_0x1cd5c0(0x376)](V,this[_0x1cd5c0(0x312)],this['type'],this[_0x1cd5c0(0x112)],this[_0x1cd5c0(0xd7)],this['_handler']);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x1e1)](_0x27472b){const _0x401fb5=_0x5e318a;return this[_0x401fb5(0xa4)][_0x401fb5(0x376)](B,this[_0x401fb5(0x312)],this['type'],this['_awaitingChangeset'],this[_0x401fb5(0xd7)],this['_handler'],_0x27472b);}};H=K([m(0x7,o['Inject'](o[_0x5e318a(0x35b)])),m(0x8,o['Inject'](_['RevisionService'])),m(0x9,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),m(0xa,o[_0x5e318a(0xfb)]),m(0xb,o[_0x5e318a(0x247)]),m(0xc,o[_0x5e318a(0x36d)]),m(0xd,_[_0x5e318a(0xa0)])],H);function Tt(_0x6a4f1a,_0x24a8c4,_0x18ca35,_0x265649,_0x2688c8,_0x4a8185){const _0x8ebef4=_0x5e318a;return _0x265649&&_0x2688c8[_0x8ebef4(0x181)]?_0x6a4f1a[_0x8ebef4(0x376)](x,_0x24a8c4,_0x18ca35,_0x265649,_0x2688c8,_0x4a8185):_0x265649?_0x6a4f1a[_0x8ebef4(0x376)](k,_0x24a8c4,_0x18ca35,_0x265649,_0x4a8185):_0x2688c8[_0x8ebef4(0x181)]?_0x6a4f1a[_0x8ebef4(0x376)]($,_0x24a8c4,_0x18ca35,_0x2688c8,_0x4a8185):_0x6a4f1a[_0x8ebef4(0x376)](ce,_0x24a8c4,_0x18ca35,_0x4a8185);}var Us=Object[_0x5e318a(0x33d)],ws=Object['getOwnPropertyDescriptor'],Ee=(_0x3fe192,_0x4c7392,_0x4590d5,_0x557344)=>{const _0x48e85f=_0x5e318a;for(var _0x4405d3=_0x557344>0x1?void 0x0:_0x557344?ws(_0x4c7392,_0x4590d5):_0x4c7392,_0x5045d6=_0x3fe192[_0x48e85f(0x181)]-0x1,_0x1e457d;_0x5045d6>=0x0;_0x5045d6--)(_0x1e457d=_0x3fe192[_0x5045d6])&&(_0x4405d3=(_0x557344?_0x1e457d(_0x4c7392,_0x4590d5,_0x4405d3):_0x1e457d(_0x4405d3))||_0x4405d3);return _0x557344&&_0x4405d3&&Us(_0x4c7392,_0x4590d5,_0x4405d3),_0x4405d3;},I=(_0x3663e0,_0x1d18f2)=>(_0x27b1d2,_0x234fc5)=>_0x1d18f2(_0x27b1d2,_0x234fc5,_0x3663e0);exports[_0x5e318a(0x185)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x49dd1a,_0x21c70f,_0x560aae){const _0x1280ad=_0x5e318a;super(),u(this,_0x1280ad(0x12e),new Map()),u(this,_0x1280ad(0x224),new v[(_0x1280ad(0x45c))]()),(this[_0x1280ad(0xa4)]=_0x49dd1a,this['_collabSessionService']=_0x21c70f,this[_0x1280ad(0x1fd)]=_0x560aae,this['_init']());}['dispose'](){const _0x4f57e3=_0x5e318a;super['dispose'](),this['_entities'][_0x4f57e3(0x183)](_0x41a2db=>_0x41a2db[_0x4f57e3(0x17d)]()),this[_0x4f57e3(0x12e)]['clear']();}['getCollabEntity'](_0x235acc){const _0xc51407=_0x5e318a;var _0x5225f2;return(_0x5225f2=this[_0xc51407(0x12e)][_0xc51407(0x236)](_0x235acc))!=null?_0x5225f2:null;}[_0x5e318a(0x1ac)](_0x43bbb7){const _0x279579=_0x5e318a,_0xc7400=this[_0x279579(0x3e3)](_0x43bbb7);return _0xc7400?v['of'](_0xc7400):this[_0x279579(0x224)][_0x279579(0x133)](E[_0x279579(0x218)](_0x423c6f=>_0x423c6f['unitID']===_0x43bbb7));}[_0x5e318a(0x24b)](){const _0xfca2cc=_0x5e318a;this[_0xfca2cc(0x1fd)][_0xfca2cc(0x332)](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0xfca2cc(0x36b)](this['dispose$']),E[_0xfca2cc(0xf5)](0x10))[_0xfca2cc(0x315)](async _0x530513=>{const _0x5cc9e1=_0xfca2cc,_0x4e1ddf=_0x530513[_0x5cc9e1(0x40b)](),_0x3ecece=await this[_0x5cc9e1(0x169)](_0x4e1ddf,j[_0x5cc9e1(0x1dd)]);this[_0x5cc9e1(0x12e)][_0x5cc9e1(0x2e6)](_0x4e1ddf,_0x3ecece);}),this[_0xfca2cc(0x1fd)][_0xfca2cc(0x332)](o[_0xfca2cc(0xbb)][_0xfca2cc(0x41b)])['pipe'](v[_0xfca2cc(0x36b)](this[_0xfca2cc(0xc8)]),E[_0xfca2cc(0xf5)](0x10))[_0xfca2cc(0x133)](E[_0xfca2cc(0x218)](_0x18e400=>!_0x18e400[_0xfca2cc(0x40b)]()[_0xfca2cc(0x188)]('__')))[_0xfca2cc(0x315)](async _0x3480c9=>{const _0x38ae19=_0xfca2cc,_0x3696e2=_0x3480c9[_0x38ae19(0x40b)](),_0x197772=await this['_startCollaboration'](_0x3696e2,j['UNIVER_DOC']);this[_0x38ae19(0x12e)]['set'](_0x3696e2,_0x197772);}),v[_0xfca2cc(0x269)](this[_0xfca2cc(0x1fd)][_0xfca2cc(0x2f6)](o['UniverInstanceType'][_0xfca2cc(0x1dd)]),this[_0xfca2cc(0x1fd)][_0xfca2cc(0x2f6)](o[_0xfca2cc(0xbb)][_0xfca2cc(0x41b)]))[_0xfca2cc(0x133)](v[_0xfca2cc(0x36b)](this[_0xfca2cc(0xc8)]))[_0xfca2cc(0x315)](_0x50fcee=>{const _0xa1f536=_0xfca2cc,_0x1383aa=_0x50fcee[_0xa1f536(0x40b)](),_0x3d0fdd=this[_0xa1f536(0x12e)][_0xa1f536(0x236)](_0x1383aa);_0x3d0fdd&&(_0x3d0fdd[_0xa1f536(0x17d)](),this[_0xa1f536(0x12e)][_0xa1f536(0x33f)](_0x1383aa));});}async[_0x5e318a(0x169)](_0x1183e,_0x5788af){const _0x168f34=_0x5e318a,_0x3dd012=await this[_0x168f34(0x25f)][_0x168f34(0x1b1)](_0x1183e),_0x2bdb9c=this[_0x168f34(0xa4)][_0x168f34(0x376)](this['_getCtorByUniverType'](_0x5788af),_0x1183e,_0x5788af,_0x3dd012);return await _0x2bdb9c[_0x168f34(0x3cc)](),this[_0x168f34(0x224)][_0x168f34(0x318)](_0x2bdb9c),_0x2bdb9c;}[_0x5e318a(0x3a1)](_0x47e006){const _0x370aaa=_0x5e318a;switch(_0x47e006){case j['UNIVER_DOC']:return Ne;case j[_0x370aaa(0x1dd)]:return exports[_0x370aaa(0x476)];default:throw new Error(_0x370aaa(0x39a)+_0x47e006);}}},exports['CollaborationController']=Ee([o[_0x5e318a(0x222)](o['LifecycleStages']['Starting'],exports[_0x5e318a(0x185)]),I(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x1,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)])),I(0x2,o[_0x5e318a(0x1da)])],exports[_0x5e318a(0x185)]);let fe=class extends o[_0x5e318a(0xd1)]{constructor(_0x49aa5c,_0x5add9a,_0x20789c,_0xabb9d7,_0x1a0ebf,_0x4a19ec,_0x3b60da,_0x22b1f1,_0xaa2af7,_0x4cafe3,_0x546217,_0x43e107,_0x4063be){const _0x4ae67f=_0x5e318a;super(),u(this,'_state$',new v[(_0x4ae67f(0x18a))](null)),u(this,_0x4ae67f(0x148),this['_state$'][_0x4ae67f(0x468)]()),u(this,_0x4ae67f(0x397)),u(this,_0x4ae67f(0x12c),!0x1),u(this,_0x4ae67f(0x105),this[_0x4ae67f(0x148)][_0x4ae67f(0x133)](E[_0x4ae67f(0x3b9)](_0x51546d=>_0x51546d?_0x51546d[_0x4ae67f(0x170)]:D[_0x4ae67f(0x396)]),E[_0x4ae67f(0x474)](0x1))),u(this,_0x4ae67f(0x454),!0x1),u(this,_0x4ae67f(0x106),[]),(this[_0x4ae67f(0x312)]=_0x49aa5c,this['_type']=_0x5add9a,this[_0x4ae67f(0xd5)]=_0x20789c,this[_0x4ae67f(0xa4)]=_0xabb9d7,this['_localCacheService']=_0x1a0ebf,this[_0x4ae67f(0x407)]=_0x4a19ec,this[_0x4ae67f(0x2a5)]=_0x3b60da,this['_revisionService']=_0x22b1f1,this[_0x4ae67f(0x141)]=_0xaa2af7,this[_0x4ae67f(0x10f)]=_0x4cafe3,this[_0x4ae67f(0x1b9)]=_0x546217,this['_permissionService']=_0x43e107,this[_0x4ae67f(0x44c)]=_0x4063be);}get['state'](){const _0x442d6b=_0x5e318a;return this[_0x442d6b(0x397)];}async[_0x5e318a(0x3cc)](){const _0x352912=_0x5e318a;if(this['state'])throw new Error(_0x352912(0x1cc));await this[_0x352912(0x24b)]();}['pauseCollaboration'](){const _0x3fd422=_0x5e318a;return this[_0x3fd422(0x12c)]=!0x0,o[_0x3fd422(0x414)](()=>{const _0x38266e=_0x3fd422;this[_0x38266e(0x12c)]=!0x1,this[_0x38266e(0x1ca)]();});}[_0x5e318a(0x295)](_0x1edbf2){const _0x464141=_0x5e318a;this[_0x464141(0x397)]=_0x1edbf2,this[_0x464141(0x32f)][_0x464141(0x318)](_0x1edbf2);}async[_0x5e318a(0x24b)](){const _0x4d1118=_0x5e318a;var _0x37b918;return this[_0x4d1118(0x295)](await this['_createInitialState']()),this[_0x4d1118(0x44c)]&&((_0x37b918=this['_singleActiveUnitService'])==null||_0x37b918[_0x4d1118(0x3b5)](this[_0x4d1118(0x312)]),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0x44c)][_0x4d1118(0x1a1)](this[_0x4d1118(0x312)])[_0x4d1118(0x315)](_0x46ecb5=>{const _0x49d07c=_0x4d1118;this[_0x49d07c(0x141)][_0x49d07c(0x1b0)](_0x49d07c(0x1af),_0x49d07c(0x1b6),_0x46ecb5),_0x46ecb5===Ct[_0x49d07c(0x248)]?(this[_0x49d07c(0x1b9)]['show']({'content':this[_0x49d07c(0x2a5)]['t'](_0x49d07c(0x327)),'type':Q[_0x49d07c(0x2f4)][_0x49d07c(0x34c)]}),this['_permissionService'][_0x49d07c(0x2e4)](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x49d07c(0x434)][_0x49d07c(0x2e4)](new p[(_0x49d07c(0xd9))](this['unitID'])['id'],!0x0);})))),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0xd5)][_0x4d1118(0x1ed)][_0x4d1118(0x315)](_0x4f1e1f=>{const _0x28283a=_0x4d1118;_0x4f1e1f===G['ONLINE']?this[_0x28283a(0x47a)]():_0x4f1e1f===G[_0x28283a(0x396)]&&this['_toggleOffline']();}))),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0xd5)][_0x4d1118(0x109)][_0x4d1118(0x315)](_0x48f8f9=>{const _0x37a916=_0x4d1118;try{switch(_0x48f8f9[_0x37a916(0x198)]){case _[_0x37a916(0x1c7)][_0x37a916(0x1a0)]:{this[_0x37a916(0x313)](_[_0x37a916(0x177)](_0x48f8f9[_0x37a916(0x42c)]));break;}case _[_0x37a916(0x1c7)][_0x37a916(0x203)]:{this[_0x37a916(0x9b)](_0x48f8f9[_0x37a916(0x42c)]);break;}case _['CollaborationEvent'][_0x37a916(0x1b3)]:{this['_onRemoteRejected']();break;}case _[_0x37a916(0x1c7)][_0x37a916(0x3b7)]:{this[_0x37a916(0x1d7)](_0x48f8f9[_0x37a916(0x42c)][_0x37a916(0x43b)][_0x37a916(0x3b9)](_0x18217b=>_[_0x37a916(0x177)](_0x18217b)));break;}case _['CollaborationEvent'][_0x37a916(0xe0)]:this[_0x37a916(0x226)]({'isPermissionRej':!0x0});}}catch(_0x1db26e){throw console[_0x37a916(0x45d)](_0x37a916(0x256),_0x1db26e),_0x1db26e;}}))),this[_0x4d1118(0x397)];}[_0x5e318a(0x45e)](){this['_transitionLocked']=!0x1;}[_0x5e318a(0x275)](){const _0x5d2bdc=_0x5e318a;if(this[_0x5d2bdc(0x454)])throw new Error(_0x5d2bdc(0x278));this['_transitionLocked']=!0x0;}[_0x5e318a(0x475)](_0x323e40){const _0x35f458=_0x5e318a;this[_0x35f458(0x275)](),this[_0x35f458(0x295)](this[_0x35f458(0x397)][_0x35f458(0xcd)](_0x323e40)),this[_0x35f458(0x45e)]();}[_0x5e318a(0x313)](_0x1a5edc){const _0x260abc=_0x5e318a;if(!(_0x1a5edc[_0x260abc(0x2c0)]<=this[_0x260abc(0x30c)][_0x260abc(0x1fa)](this[_0x260abc(0x312)]))){if(this['_collaborationPaused']){this[_0x260abc(0x106)]['push'](_0x1a5edc);return;}this[_0x260abc(0x398)](_0x1a5edc);}}[_0x5e318a(0x1ca)](){const _0x5bcb53=_0x5e318a;this[_0x5bcb53(0x106)][_0x5bcb53(0x183)](_0x5642e3=>this['_applyRemoteChangeset'](_0x5642e3)),this[_0x5bcb53(0x106)]=[];}[_0x5e318a(0x398)](_0x544476){const _0x4bdcd3=_0x5e318a,_0x4c119c=this[_0x4bdcd3(0x407)][_0x4bdcd3(0xc0)][_0x4bdcd3(0x1f3)](this[_0x4bdcd3(0x407)][_0x4bdcd3(0xc0)][_0x4bdcd3(0x1f1)]()['COMPRESS_MUTATION_APPLY'])(_0x544476[_0x4bdcd3(0x31a)],null)||_0x544476[_0x4bdcd3(0x31a)],_0x4c9eb9={..._0x544476,'mutations':_0x4c119c};this['_lockTransition'](),this[_0x4bdcd3(0x295)](this[_0x4bdcd3(0x397)][_0x4bdcd3(0x3be)](_0x4c9eb9)),this['_unlockTransition']();}[_0x5e318a(0x9b)](_0x3679ac){const _0x306286=_0x5e318a;this[_0x306286(0x275)](),this[_0x306286(0x295)](this['_state'][_0x306286(0x363)](_0x3679ac)),this[_0x306286(0x45e)]();}[_0x5e318a(0x226)](_0x448a75){const _0x51852b=_0x5e318a;this['_lockTransition'](),this['_updateState'](this[_0x51852b(0x397)][_0x51852b(0x1a7)](_0x448a75)),this['_unlockTransition']();}[_0x5e318a(0x1d7)](_0x219db5){const _0x5a9a12=_0x5e318a;if(!(this['_state']instanceof H))throw new TypeError(_0x5a9a12(0x3df));const _0x2d7784=_0x219db5['map'](_0x3254aa=>{const _0x23607f=_0x5a9a12,_0x2db37=this[_0x23607f(0x407)]['interceptor'][_0x23607f(0x1f3)](this[_0x23607f(0x407)][_0x23607f(0xc0)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3254aa[_0x23607f(0x31a)],null)||_0x3254aa[_0x23607f(0x31a)];return{..._0x3254aa,'mutations':_0x2db37};});this[_0x5a9a12(0x275)](),this[_0x5a9a12(0x295)](this[_0x5a9a12(0x397)][_0x5a9a12(0x1a4)](_0x2d7784)),this[_0x5a9a12(0x45e)]();}[_0x5e318a(0x215)](){const _0x1d196f=_0x5e318a;this[_0x1d196f(0x275)](),this[_0x1d196f(0x295)](this[_0x1d196f(0x397)][_0x1d196f(0x160)]()),this[_0x1d196f(0x45e)]();}[_0x5e318a(0x47a)](){const _0x554659=_0x5e318a;this['_lockTransition'](),this[_0x554659(0x295)](this['_state'][_0x554659(0xa8)]()),this[_0x554659(0x45e)]();}async['_createInitialState'](){return new Promise(_0xbe7a72=>{const _0x1c5412=_0x337d;this[_0x1c5412(0xd5)][_0x1c5412(0x1ed)][_0x1c5412(0x133)](E[_0x1c5412(0x240)](0x1))[_0x1c5412(0x315)](async _0x22950a=>{const _0x517ab3=_0x1c5412;_0xbe7a72(await this[_0x517ab3(0x249)](_0x22950a===G[_0x517ab3(0x16c)]));});});}[_0x5e318a(0x389)](){const _0x256fb6=_0x5e318a,_0x3b3e15=this[_0x256fb6(0x312)];return{'onStateChange':(_0x793b9e,_0x2959d4)=>{const _0x49ca3f=_0x256fb6;if(_0x793b9e!==this[_0x49ca3f(0x397)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x793b9e[_0x49ca3f(0x170)]+'\x0aAfter:\x20'+_0x2959d4[_0x49ca3f(0x170)]+'\x0aCurrent:\x20'+this['_state'][_0x49ca3f(0x170)]);this[_0x49ca3f(0x295)](_0x2959d4);},'onSendChangeset':_0x10fe8e=>{const _0x1c2b0f=_0x256fb6,_0x363a77={'eventID':_[_0x1c2b0f(0x1c7)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10fe8e['unitID'],'unitType':this[_0x1c2b0f(0x28b)],'changeset':_0x10fe8e,'memberID':this[_0x1c2b0f(0xd5)][_0x1c2b0f(0x330)]()}};this[_0x1c2b0f(0xd5)]['send'](_0x363a77,this[_0x1c2b0f(0x312)]);},'onMissingChangesets':({from:_0x3d1f20,to:_0x409433})=>{const _0x4166ab=_0x256fb6;this[_0x4166ab(0x141)][_0x4166ab(0x1b0)](_0x4166ab(0x1af),'fetching\x20missing\x20changesets\x20from\x20'+_0x3d1f20+_0x4166ab(0xfd)+_0x409433);const _0x545a8d={'eventID':_['CollaborationEvent'][_0x4166ab(0x200)],'data':{'unitID':_0x3b3e15,'unitType':this[_0x4166ab(0x28b)],'from':_0x3d1f20,'to':_0x409433}};this['_session'][_0x4166ab(0x144)](_0x545a8d,this[_0x4166ab(0x312)]);}};}async[_0x5e318a(0x249)](_0x1b2c14){const _0x407103=_0x5e318a;var _0x57737b,_0x731d17;const _0x399fcf=await this['_localCacheService'][_0x407103(0x2e3)](this[_0x407103(0x312)]),_0xeff351=(_0x57737b=_0x399fcf==null?void 0x0:_0x399fcf[_0x407103(0x31a)])!=null?_0x57737b:[],_0x8e440=(_0x731d17=_0x399fcf==null?void 0x0:_0x399fcf[_0x407103(0x1fc)])!=null?_0x731d17:null,_0x1cb1e2=this['unitID'];try{this[_0x407103(0x2df)](_0x8e440,_0xeff351);}catch(_0x10fdbc){this[_0x407103(0x141)][_0x407103(0x45d)](_0x10fdbc);}const _0x43487a=this[_0x407103(0x389)]();if(_0x1b2c14){const _0x212de0=Tt(this[_0x407103(0xa4)],_0x1cb1e2,this[_0x407103(0x28b)],_0x8e440,_0xeff351,_0x43487a);return _0x212de0 instanceof $?_0x212de0[_0x407103(0xec)]():(_0x212de0 instanceof x||_0x212de0 instanceof k)&&_0x212de0[_0x407103(0x94)](),_0x212de0;}return this[_0x407103(0xa4)][_0x407103(0x376)](V,_0x1cb1e2,this[_0x407103(0x28b)],_0x8e440,_0xeff351,_0x43487a);}[_0x5e318a(0x2df)](_0x3f5813,_0x1e7014){const _0x4fd4b6=_0x5e318a;var _0x5b0090,_0x1dd200;const _0x7c6d70=this[_0x4fd4b6(0x407)]['interceptor'][_0x4fd4b6(0x1f3)](this[_0x4fd4b6(0x407)][_0x4fd4b6(0xc0)][_0x4fd4b6(0x1f1)]()[_0x4fd4b6(0x323)]);(_0x5b0090=_0x7c6d70((_0x3f5813==null?void 0x0:_0x3f5813[_0x4fd4b6(0x31a)])||[],null))==null||_0x5b0090['forEach'](_0x2eeec6=>this[_0x4fd4b6(0x10f)][_0x4fd4b6(0x2c7)](_0x2eeec6['id'],_0x2eeec6[_0x4fd4b6(0x119)])),(_0x1dd200=_0x7c6d70(_0x1e7014||[],null))==null||_0x1dd200[_0x4fd4b6(0x183)](_0x36afca=>this[_0x4fd4b6(0x10f)][_0x4fd4b6(0x2c7)](_0x36afca['id'],_0x36afca['params']));}};fe=Ee([I(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x4,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o['Inject'](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o['ILogService']),I(0x9,o['ICommandService']),I(0xa,L[_0x5e318a(0x22b)]),I(0xb,o[_0x5e318a(0x260)]),I(0xc,o[_0x5e318a(0x15e)](pe))],fe);let Ne=class extends fe{constructor(_0x160873,_0x30bfad,_0x25a31e,_0x2d8137,_0x38f2c0,_0x57ac20,_0x3a40cb,_0x4640b3,_0x4efdb9,_0x93f8f8,_0x3bc249,_0x19f908,_0x3647bb,_0x4841f0,_0x2d7185,_0x35fad5,_0x5cdf8c){const _0x2dbe89=_0x5e318a;super(_0x160873,_0x30bfad,_0x25a31e,_0x2d8137,_0x38f2c0,_0x57ac20,_0x3a40cb,_0x4640b3,_0x3647bb,_0x4841f0,_0x2d7185,_0x35fad5,_0x5cdf8c),this[_0x2dbe89(0x312)]=_0x160873,this[_0x2dbe89(0x1c1)]=_0x30bfad,this[_0x2dbe89(0x228)]=_0x25a31e,this[_0x2dbe89(0x435)]=_0x4efdb9,this[_0x2dbe89(0x3c5)]=_0x93f8f8,this['_docTransformSelectionsService']=_0x3bc249,this[_0x2dbe89(0x2f5)]=_0x19f908;}['_createHandler'](){const _0x24ebe7=_0x5e318a,_0x5cad7e=super[_0x24ebe7(0x389)]();return _0x5cad7e[_0x24ebe7(0x371)]=_0x5cc696=>this[_0x24ebe7(0x3c5)][_0x24ebe7(0x149)](_0x5cc696),_0x5cad7e[_0x24ebe7(0x44d)]=_0x2065d9=>this[_0x24ebe7(0x34f)][_0x24ebe7(0x436)](_0x2065d9),_0x5cad7e[_0x24ebe7(0x9d)]=_0x16a768=>this[_0x24ebe7(0x2f5)]['syncEditingCollabCursor'](_0x16a768),_0x5cad7e[_0x24ebe7(0x22f)]=_0x31516f=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x31516f),_0x5cad7e;}async[_0x5e318a(0x24b)](){const _0xa23918=_0x5e318a,_0x35f2fe=await super[_0xa23918(0x24b)]();return this['disposeWithMe'](this[_0xa23918(0x10f)][_0xa23918(0x3ff)]((_0x24c0f8,_0x6b78c1)=>{const _0x5e3304=_0xa23918;if(_0x24c0f8['type']!==o[_0x5e3304(0x38e)][_0x5e3304(0x427)]||_0x6b78c1!=null&&_0x6b78c1[_0x5e3304(0x3ca)]||_0x6b78c1!=null&&_0x6b78c1['onlyLocal'])return;const _0x422626=_0x24c0f8[_0x5e3304(0x119)];if((_0x422626==null?void 0x0:_0x422626[_0x5e3304(0x10e)])!==this[_0x5e3304(0x312)])return;let _0x333ddb=_0x24c0f8;if(_0x333ddb['id']===P[_0x5e3304(0x305)]['id']){const _0x2242d8=_0x333ddb['params'];_0x333ddb={'id':P['RichTextEditingMutation']['id'],'type':o[_0x5e3304(0x38e)][_0x5e3304(0x427)],'params':{'unitId':_0x2242d8[_0x5e3304(0x10e)],'actions':_0x2242d8['actions'],'textRanges':null}};}const _0x5ab358=this['_compressMutationService'][_0x5e3304(0xc0)][_0x5e3304(0x1f3)](this[_0x5e3304(0x407)]['interceptor'][_0x5e3304(0x1f1)]()[_0x5e3304(0x2b6)])([_0x333ddb],null)||[_0x333ddb];this[_0x5e3304(0x475)](_0x5ab358[0x0]);})),_0x35f2fe;}};Ne=Ee([I(0x3,o['Inject'](o[_0x5e318a(0x35b)])),I(0x4,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o[_0x5e318a(0x23f)](P[_0x5e318a(0x1ad)])),I(0x9,o[_0x5e318a(0x23f)](ve)),I(0xa,o[_0x5e318a(0x23f)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x5e318a(0xfb)]),I(0xd,o[_0x5e318a(0x247)]),I(0xe,L['IMessageService']),I(0xf,o[_0x5e318a(0x260)]),I(0x10,o[_0x5e318a(0x15e)](pe))],Ne),exports[_0x5e318a(0x476)]=class extends fe{constructor(_0x2d0606,_0x98687e,_0x4b6ae7,_0x15b66e,_0x496128,_0x41f56a,_0x28d31c,_0x409957,_0x572828,_0x4c4a1e,_0x1d99d1,_0x1b68bb,_0x497612,_0x58f83b){const _0x1eac17=_0x5e318a;super(_0x2d0606,_0x98687e,_0x4b6ae7,_0x15b66e,_0x496128,_0x41f56a,_0x28d31c,_0x409957,_0x4c4a1e,_0x1d99d1,_0x1b68bb,_0x497612,_0x58f83b),this[_0x1eac17(0x312)]=_0x2d0606,this['type']=_0x98687e,this[_0x1eac17(0x228)]=_0x4b6ae7,this[_0x1eac17(0x360)]=_0x572828;}['_createHandler'](){const _0x3c0bd0=_0x5e318a,_0x316cfe=super[_0x3c0bd0(0x389)]();return _0x316cfe['onTransformSelections']=_0x25dec9=>this[_0x3c0bd0(0x360)][_0x3c0bd0(0x436)](_0x25dec9),_0x316cfe;}async[_0x5e318a(0x24b)](){const _0x4b7c4e=_0x5e318a,_0x368f4b=await super[_0x4b7c4e(0x24b)]();return this[_0x4b7c4e(0x16e)](this[_0x4b7c4e(0x10f)][_0x4b7c4e(0x3ff)]((_0x325bfa,_0x2ddcbc)=>{const _0x2d94bc=_0x4b7c4e;if(_0x325bfa[_0x2d94bc(0x1c1)]!==o[_0x2d94bc(0x38e)]['MUTATION']||_0x2ddcbc!=null&&_0x2ddcbc[_0x2d94bc(0x3ca)]||_0x2ddcbc!=null&&_0x2ddcbc[_0x2d94bc(0x29e)])return;const _0x2ca386=_0x325bfa[_0x2d94bc(0x119)];if((_0x2ca386==null?void 0x0:_0x2ca386['unitId'])!==this[_0x2d94bc(0x312)])return;const _0x27a4b2=_0x325bfa,_0x2dc2a6=this[_0x2d94bc(0x407)][_0x2d94bc(0xc0)][_0x2d94bc(0x1f3)](this[_0x2d94bc(0x407)][_0x2d94bc(0xc0)]['getInterceptPoints']()[_0x2d94bc(0x2b6)])([_0x27a4b2],null)||[_0x27a4b2];this[_0x2d94bc(0x475)](_0x2dc2a6[0x0]);})),_0x368f4b;}},exports[_0x5e318a(0x476)]=Ee([I(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x4,o['Inject'](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o['Inject'](ge)),I(0x9,o[_0x5e318a(0xfb)]),I(0xa,o['ICommandService']),I(0xb,L['IMessageService']),I(0xc,o[_0x5e318a(0x260)]),I(0xd,o[_0x5e318a(0x15e)](pe))],exports[_0x5e318a(0x476)]);const st=[_0x5e318a(0x3c8),'jiqing500',_0x5e318a(0x11a),_0x5e318a(0x139),_0x5e318a(0x3c4),_0x5e318a(0x230)];class Fe extends o[_0x5e318a(0x3cf)]{constructor(){const _0x3f87cb=_0x5e318a;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x3f87cb(0x193),0x0);}[_0x5e318a(0x3fd)](_0x18bc9b){const _0x56969c=_0x5e318a;if(this[_0x56969c(0x24f)][_0x56969c(0x21e)](_0x18bc9b))return this['_assignedColors'][_0x56969c(0x236)](_0x18bc9b);const _0x45e1ed=st[this[_0x56969c(0x193)]];return this[_0x56969c(0x193)]=(this[_0x56969c(0x193)]+0x1)%st[_0x56969c(0x181)],this['_assignedColors'][_0x56969c(0x2e6)](_0x18bc9b,_0x45e1ed),_0x45e1ed;}}var Ms=Object[_0x5e318a(0x33d)],ys=Object[_0x5e318a(0x225)],Ns=(_0x3938ed,_0x7d088d,_0x318810,_0x57bd81)=>{const _0x27c916=_0x5e318a;for(var _0x4d7453=_0x57bd81>0x1?void 0x0:_0x57bd81?ys(_0x7d088d,_0x318810):_0x7d088d,_0x191d57=_0x3938ed[_0x27c916(0x181)]-0x1,_0x5a806a;_0x191d57>=0x0;_0x191d57--)(_0x5a806a=_0x3938ed[_0x191d57])&&(_0x4d7453=(_0x57bd81?_0x5a806a(_0x7d088d,_0x318810,_0x4d7453):_0x5a806a(_0x4d7453))||_0x4d7453);return _0x57bd81&&_0x4d7453&&Ms(_0x7d088d,_0x318810,_0x4d7453),_0x4d7453;},q=(_0x51e7c7,_0x38ccb7)=>(_0x5c0aac,_0x298c26)=>_0x38ccb7(_0x5c0aac,_0x298c26,_0x51e7c7);const Ls=0x12c,As=0x64,js=()=>{let _0xda0dba=[],_0x3293c1=!0x1;return _0x217f97=>{const _0x544c07=_0x337d;_0xda0dba[_0x544c07(0x276)](_0x217f97),_0x3293c1||(_0x3293c1=!0x0,setTimeout(()=>{_0xda0dba['forEach'](_0x15eeca=>_0x15eeca()),_0xda0dba=[],_0x3293c1=!0x1;}));};};let Le=class extends o[_0x5e318a(0xd1)]{constructor(_0x4ce853,_0x3c4ae6,_0x2f7df2,_0x116528,_0x597c5a,_0x52a162,_0x298d9d,_0xa90221){const _0x95c4f9=_0x5e318a;super(),u(this,_0x95c4f9(0x28d),!0x1),u(this,'_init',!0x1),u(this,_0x95c4f9(0x150),new v[(_0x95c4f9(0x18a))](new Map())),u(this,_0x95c4f9(0x34e),this[_0x95c4f9(0x150)][_0x95c4f9(0x468)]()),u(this,_0x95c4f9(0x45f),new v['BehaviorSubject']([])),u(this,_0x95c4f9(0xe5),this['_roomMembers$'][_0x95c4f9(0x133)](v[_0x95c4f9(0x2ad)](Ls))),u(this,_0x95c4f9(0x44a),xe((_0x5baca0,_0xa6fda1)=>{const _0x1ac482=_0x95c4f9,_0x31375e={'eventID':_[_0x1ac482(0x1c7)][_0x1ac482(0x28c)],'data':{'unitID':this[_0x1ac482(0x312)],'memberID':this[_0x1ac482(0xd5)]['getMemberID'](),'selection':Ke['serializeRangeWithSheet'](_0x5baca0,_0xa6fda1[_0x1ac482(0x361)])}};this['_session'][_0x1ac482(0x144)](_0x31375e,this[_0x1ac482(0x312)]);},As)),(this[_0x95c4f9(0x312)]=_0x4ce853,this['_session']=_0x3c4ae6,this[_0x95c4f9(0xa4)]=_0x2f7df2,this['_colorAssignService']=_0x116528,this[_0x95c4f9(0x3d5)]=_0x597c5a,this['_univerInstanceService']=_0x52a162,this[_0x95c4f9(0x10f)]=_0x298d9d,this[_0x95c4f9(0x2ca)]=_0xa90221);}get[_0x5e318a(0xdd)](){const _0x325921=_0x5e318a;return this[_0x325921(0x150)]['getValue']();}get[_0x5e318a(0x3eb)](){const _0x334ce0=_0x5e318a;return this[_0x334ce0(0x45f)][_0x334ce0(0x34b)]();}['dispose'](){const _0x40360b=_0x5e318a;super[_0x40360b(0x17d)](),this[_0x40360b(0x150)][_0x40360b(0x318)](new Map()),this[_0x40360b(0x150)][_0x40360b(0x270)](),this[_0x40360b(0x45f)][_0x40360b(0x318)]([]),this[_0x40360b(0x45f)][_0x40360b(0x270)]();}[_0x5e318a(0x3cc)](){const _0x5671d9=_0x5e318a;this[_0x5671d9(0x24b)]||(this[_0x5671d9(0x24b)]=!0x0,this[_0x5671d9(0xd5)][_0x5671d9(0x1ed)][_0x5671d9(0x133)](v[_0x5671d9(0x36b)](this[_0x5671d9(0xc8)]))[_0x5671d9(0x315)](_0xe1101f=>{const _0x53fc86=_0x5671d9;_0xe1101f===G[_0x53fc86(0x16c)]?this[_0x53fc86(0x47a)]():this[_0x53fc86(0x215)]();}),this[_0x5671d9(0xd5)][_0x5671d9(0x109)][_0x5671d9(0x133)](v[_0x5671d9(0x36b)](this[_0x5671d9(0xc8)]))[_0x5671d9(0x315)](_0x5906e0=>{const _0x1e4dc5=_0x5671d9,_0xe97241=_0x5906e0[_0x1e4dc5(0x198)];_0xe97241===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5906e0),_0xe97241===_[_0x1e4dc5(0x1c7)][_0x1e4dc5(0x3ee)]&&this[_0x1e4dc5(0x2de)](_0x5906e0);}),this[_0x5671d9(0x42a)](),this[_0x5671d9(0x16e)](this[_0x5671d9(0x10f)]['onCommandExecuted'](_0x1b366b=>{const _0x3bad8b=_0x5671d9;if(this[_0x3bad8b(0x28d)]&&_0x1b366b['id']===p['SetSelectionsOperation']['id']&&_0x1b366b[_0x3bad8b(0x119)][_0x3bad8b(0x10e)]===this[_0x3bad8b(0x312)]){const _0xfeeb96=_0x1b366b[_0x3bad8b(0x119)];this[_0x3bad8b(0x44a)](_0xfeeb96[_0x3bad8b(0x439)],_0xfeeb96['selections'][0x0]);}})));}[_0x5e318a(0x1d6)](_0x1f985a){const _0x89d2c6=_0x5e318a;var _0x5e8507,_0x462fc5;const {memberID:_0x543907,selection:_0x465ac3}=_0x1f985a['data'],{sheetName:_0x2a2eb6,range:_0x3711ca}=Ke[_0x89d2c6(0x253)](_0x465ac3),_0x60d43c={'name':(_0x462fc5=(_0x5e8507=this[_0x89d2c6(0x3d5)][_0x89d2c6(0x341)](this[_0x89d2c6(0x312)],_0x543907))==null?void 0x0:_0x5e8507[_0x89d2c6(0x111)])!=null?_0x462fc5:_0x89d2c6(0x300),'range':this[_0x89d2c6(0x467)](_0x2a2eb6,_0x3711ca),'sheetID':_0x2a2eb6,'color':this[_0x89d2c6(0x266)]['assignAColorForMemberID'](_0x543907),'selection':_0x465ac3},_0x107c5c=this[_0x89d2c6(0xdd)];_0x107c5c[_0x89d2c6(0x2e6)](_0x543907,_0x60d43c),this[_0x89d2c6(0x150)][_0x89d2c6(0x318)](_0x107c5c);}[_0x5e318a(0x2de)](_0x95a360){const _0x25338d=_0x5e318a,{memberID:_0x1c827a}=_0x95a360[_0x25338d(0x42c)],_0x378d4b=this[_0x25338d(0xdd)];_0x378d4b[_0x25338d(0x33f)](_0x1c827a),this[_0x25338d(0x150)][_0x25338d(0x318)](_0x378d4b);}['_getMergeRange'](_0x5bb7ec,_0x35e67e){const _0x1d083a=_0x5e318a;var _0x75c35c,_0x2f69aa;const _0x20c729=(_0x2f69aa=(_0x75c35c=this[_0x1d083a(0x1fd)]['getUniverSheetInstance'](this[_0x1d083a(0x312)]))==null?void 0x0:_0x75c35c[_0x1d083a(0x136)](_0x5bb7ec))==null?void 0x0:_0x2f69aa[_0x1d083a(0xe9)]();return(_0x20c729==null?void 0x0:_0x20c729[_0x1d083a(0x2e9)](_0x3e8f29=>o[_0x1d083a(0x2b0)][_0x1d083a(0x15a)](_0x3e8f29,_0x35e67e)))||_0x35e67e;}[_0x5e318a(0x42a)](){const _0x59d277=_0x5e318a,_0x5cc1c5=new o['DisposableCollection'](),_0x20cebe=js(),_0x5d4113=()=>{const _0x4c194b=_0x337d;_0x5cc1c5['dispose']();const _0x341a9a=(_0x12a8e6,_0x20a2c8,_0x3947fb,_0xde6134)=>{const _0x30cd50=_0x337d;let _0x4b93aa=[];switch(_0x12a8e6['id']){case p[_0x30cd50(0x245)][_0x30cd50(0x2db)]:{_0x4b93aa=p['handleDeleteRangeMoveLeft'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x45a)]:{_0x4b93aa=p[_0x30cd50(0x175)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x338)]:{_0x4b93aa=p['handleInsertCol'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x24e)]:{_0x4b93aa=p[_0x30cd50(0x405)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x2a4)]:{_0x4b93aa=p[_0x30cd50(0x180)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0xc5)]:{_0x4b93aa=p[_0x30cd50(0x3b6)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x374)]:{_0x4b93aa=p['handleMoveRange'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x3a9)]:{_0x4b93aa=p['handleIRemoveCol'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x298)]:{_0x4b93aa=p[_0x30cd50(0x2e0)](_0x12a8e6,_0xde6134);break;}}const _0x58b33e=p[_0x30cd50(0x479)](_0x4b93aa,_0xde6134),_0x160e72=this['cursorInfo'][_0x30cd50(0x236)](_0x20a2c8);if(_0x160e72&&_0x58b33e){const _0x2b49a0={..._0x160e72,'range':_0x58b33e};this[_0x30cd50(0xdd)][_0x30cd50(0x2e6)](_0x20a2c8,_0x2b49a0),_0x20cebe(()=>{const _0x84c410=_0x30cd50,_0x476608=this[_0x84c410(0x2ca)][_0x84c410(0x132)](_0x58b33e,_0x453689=>(_0x476608['dispose'](),_0x341a9a(_0x453689,_0x20a2c8,_0x3947fb,_0x58b33e)));_0x5cc1c5[_0x84c410(0x40f)](_0x476608);});}return{'redos':[],'undos':[]};};this[_0x4c194b(0xdd)][_0x4c194b(0x183)]((_0x5e684a,_0x5188d5)=>{const _0x3951b5=_0x4c194b,{range:_0x4c9817,sheetID:_0x154379}=_0x5e684a,_0x56f958=this[_0x3951b5(0x2ca)][_0x3951b5(0x132)](_0x4c9817,_0x243f76=>(_0x56f958[_0x3951b5(0x17d)](),_0x341a9a(_0x243f76,_0x5188d5,_0x154379,_0x4c9817)));_0x5cc1c5['add'](_0x56f958);});};this[_0x59d277(0x16e)](o[_0x59d277(0x414)](this[_0x59d277(0x150)][_0x59d277(0x315)](()=>{_0x5d4113();})));}[_0x5e318a(0x47a)](){const _0x34e637=_0x5e318a;var _0x474a42,_0x2ed7f8;if(this[_0x34e637(0x28d)]=!0x0,((_0x474a42=this[_0x34e637(0x1fd)]['getFocusedUnit']())==null?void 0x0:_0x474a42['getUnitId']())!==this[_0x34e637(0x312)])return;const _0x5a40f5=(_0x2ed7f8=this['_injector'][_0x34e637(0x236)](p[_0x34e637(0xde)])[_0x34e637(0x448)]())==null?void 0x0:_0x2ed7f8[0x0],_0x2bbce3=this[_0x34e637(0x1fd)][_0x34e637(0x3ab)](o['UniverInstanceType']['UNIVER_SHEET'])['getActiveSheet']();_0x5a40f5&&_0x2bbce3&&this['_updateLocalCursor'](_0x2bbce3[_0x34e637(0x347)](),_0x5a40f5);}[_0x5e318a(0x215)](){const _0x30ebc9=_0x5e318a;this[_0x30ebc9(0x28d)]=!0x1;}};Le=Ns([q(0x2,o['Inject'](o['Injector'])),q(0x3,o[_0x5e318a(0x23f)](Fe)),q(0x4,o[_0x5e318a(0x23f)](Y)),q(0x5,o[_0x5e318a(0x1da)]),q(0x6,o['ICommandService']),q(0x7,o[_0x5e318a(0x23f)](p[_0x5e318a(0xe2)]))],Le);var $s=Object[_0x5e318a(0x33d)],xs=Object[_0x5e318a(0x225)],Hs=(_0x489c8b,_0x4840ac,_0x34dbfe,_0x5b4901)=>{const _0x1ef21e=_0x5e318a;for(var _0x566d46=_0x5b4901>0x1?void 0x0:_0x5b4901?xs(_0x4840ac,_0x34dbfe):_0x4840ac,_0x4b4f6b=_0x489c8b[_0x1ef21e(0x181)]-0x1,_0x2d96ae;_0x4b4f6b>=0x0;_0x4b4f6b--)(_0x2d96ae=_0x489c8b[_0x4b4f6b])&&(_0x566d46=(_0x5b4901?_0x2d96ae(_0x4840ac,_0x34dbfe,_0x566d46):_0x2d96ae(_0x566d46))||_0x566d46);return _0x5b4901&&_0x566d46&&$s(_0x4840ac,_0x34dbfe,_0x566d46),_0x566d46;},F=(_0x4845f5,_0x4d00e6)=>(_0x18db4b,_0x279e4a)=>_0x4d00e6(_0x18db4b,_0x279e4a,_0x4845f5);const ks=0x12c,Bs=0x64;let Ae=class extends o['RxDisposable']{constructor(_0x5084cc,_0xed2c78,_0x4c7277,_0x2108e1,_0x37080e,_0x46d0c8,_0xc64334,_0x46d37e,_0x2805c4){const _0x559f2e=_0x5e318a;super(),u(this,'_online',!0x1),u(this,_0x559f2e(0x24b),!0x1),u(this,_0x559f2e(0x150),new v[(_0x559f2e(0x18a))](new Map())),u(this,_0x559f2e(0x34e),this['_cursorInfo$'][_0x559f2e(0x468)]()),u(this,'_roomMembers$',new v[(_0x559f2e(0x18a))]([])),u(this,'roomMembers$',this[_0x559f2e(0x45f)]['pipe'](v['debounceTime'](ks))),u(this,'_updateLocalCursor',xe(_0x3d2917=>{const _0x54576e=_0x559f2e,_0x55e640={'eventID':_[_0x54576e(0x1c7)][_0x54576e(0x28c)],'data':{'unitID':this[_0x54576e(0x312)],'memberID':this[_0x54576e(0xd5)][_0x54576e(0x330)](),'selection':bt(_0x3d2917)}};this[_0x54576e(0xd5)]['send'](_0x55e640,this['unitID']);},Bs)),(this[_0x559f2e(0x312)]=_0x5084cc,this[_0x559f2e(0xd5)]=_0xed2c78,this[_0x559f2e(0xa4)]=_0x4c7277,this[_0x559f2e(0x266)]=_0x2108e1,this[_0x559f2e(0x3d5)]=_0x37080e,this[_0x559f2e(0x1c4)]=_0x46d0c8,this[_0x559f2e(0xca)]=_0xc64334,this[_0x559f2e(0x1fd)]=_0x46d37e,this[_0x559f2e(0x10f)]=_0x2805c4);}get[_0x5e318a(0xdd)](){const _0x30f561=_0x5e318a;return this['_cursorInfo$'][_0x30f561(0x34b)]();}get['roomMembers'](){const _0x1adf07=_0x5e318a;return this['_roomMembers$'][_0x1adf07(0x34b)]();}[_0x5e318a(0x17d)](){const _0x242668=_0x5e318a;super[_0x242668(0x17d)](),this[_0x242668(0x150)][_0x242668(0x318)](new Map()),this[_0x242668(0x150)][_0x242668(0x270)](),this[_0x242668(0x45f)][_0x242668(0x318)]([]),this['_roomMembers$'][_0x242668(0x270)]();}['init'](){const _0x4cce0b=_0x5e318a;this[_0x4cce0b(0x24b)]||(this[_0x4cce0b(0x24b)]=!0x0,this[_0x4cce0b(0xd5)]['sessionStatus$']['pipe'](v[_0x4cce0b(0x36b)](this[_0x4cce0b(0xc8)]))['subscribe'](_0x25964e=>{const _0x47f602=_0x4cce0b;_0x25964e===G[_0x47f602(0x16c)]?this[_0x47f602(0x47a)]():this[_0x47f602(0x215)]();}),this[_0x4cce0b(0xd5)]['event$']['pipe'](v['takeUntil'](this[_0x4cce0b(0xc8)]))[_0x4cce0b(0x315)](_0xf493b4=>{const _0x555b2=_0x4cce0b,_0x15e0ba=_0xf493b4[_0x555b2(0x198)];_0x15e0ba===_[_0x555b2(0x1c7)]['UPDATE_CURSOR']&&this[_0x555b2(0x1d6)](_0xf493b4),_0x15e0ba===_[_0x555b2(0x1c7)][_0x555b2(0x3ee)]&&this['_onCursorDelete'](_0xf493b4);}),this['disposeWithMe'](this[_0x4cce0b(0x10f)][_0x4cce0b(0x3ff)](_0x5222df=>{const _0x4d906d=_0x4cce0b,_0x229f18=_0x5222df[_0x4d906d(0x119)];_0x229f18!=null&&this['_online']&&_0x5222df['id']===P['SetTextSelectionsOperation']['id']&&_0x229f18[_0x4d906d(0x10e)]===this['unitID']&&_0x229f18[_0x4d906d(0x3a6)]===!0x1&&this[_0x4d906d(0x44a)](_0x229f18[_0x4d906d(0x37c)]);})),this[_0x4cce0b(0x1c4)][_0x4cce0b(0x34d)][_0x4cce0b(0x133)](v[_0x4cce0b(0x36b)](this[_0x4cce0b(0xc8)]))[_0x4cce0b(0x315)](_0x27988c=>{const _0x5d335f=_0x4cce0b;if((_0x27988c==null?void 0x0:_0x27988c[_0x5d335f(0x312)])!==this[_0x5d335f(0x312)])return;const _0x5cd84a={'eventID':_[_0x5d335f(0x1c7)][_0x5d335f(0x28c)],'data':_0x27988c};this[_0x5d335f(0x1d6)](_0x5cd84a);}),this[_0x4cce0b(0x16e)](this[_0x4cce0b(0x10f)][_0x4cce0b(0x3ff)](_0x4cf1b6=>{const _0x571621=_0x4cce0b;if(_0x4cf1b6['params']==null)return;const _0x5ba655=_0x4cf1b6[_0x571621(0x119)];if(_0x4cf1b6['id']!==P[_0x571621(0x305)]['id']||_0x5ba655['unitId']!==this[_0x571621(0x312)])return;const _0x56e563={'id':'doc.mutation.rich-text-editing','params':_0x5ba655},_0x4be739=this[_0x571621(0xdd)];for(const [_0x3a85ec,_0x533e0b]of _0x4be739){const _0x339f87={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x533e0b[_0x571621(0x37c)]}},_0x201898=this[_0x571621(0xca)]['transformMutation'](_0x56e563,_0x339f87,!0x1);if(_['isTransformMutationFailure'](_0x201898))throw _0x201898[_0x571621(0x45d)];_0x4be739['set'](_0x3a85ec,{..._0x533e0b,'ranges':_0x201898[_0x571621(0xfe)][_0x571621(0x119)]['textRanges']});}queueMicrotask(()=>{const _0x381ef6=_0x571621;this[_0x381ef6(0x150)]['next'](_0x4be739);});})));}[_0x5e318a(0x1d6)](_0x491d1e){const _0x4a6e66=_0x5e318a;var _0xfdc37d,_0x3e8e1d;const {memberID:_0x461436,selection:_0x3e17f1}=_0x491d1e[_0x4a6e66(0x42c)],_0x18fb4c=Is(_0x3e17f1),_0x5a1bf8=(_0x3e8e1d=(_0xfdc37d=this[_0x4a6e66(0x3d5)][_0x4a6e66(0x341)](this[_0x4a6e66(0x312)],_0x461436))==null?void 0x0:_0xfdc37d['name'])!=null?_0x3e8e1d:_0x4a6e66(0x300),_0x35e36c={'color':this[_0x4a6e66(0x266)][_0x4a6e66(0x3fd)](_0x461436),'name':_0x5a1bf8,'ranges':_0x18fb4c},_0x3d849f=this[_0x4a6e66(0xdd)];_0x3d849f[_0x4a6e66(0x2e6)](_0x461436,_0x35e36c),this[_0x4a6e66(0x150)]['next'](_0x3d849f);}['_onCursorDelete'](_0x207b65){const _0x883401=_0x5e318a,{memberID:_0x23f989}=_0x207b65['data'],_0x2896f1=this[_0x883401(0xdd)];_0x2896f1['delete'](_0x23f989),this[_0x883401(0x150)][_0x883401(0x318)](_0x2896f1);}['_toggleOnline'](){const _0x8bbbb=_0x5e318a;var _0x4da86c;if(this[_0x8bbbb(0x28d)]=!0x0,((_0x4da86c=this[_0x8bbbb(0x1fd)][_0x8bbbb(0x2d5)]())==null?void 0x0:_0x4da86c[_0x8bbbb(0x40b)]())!==this[_0x8bbbb(0x312)])return;const _0x47bb92=this[_0x8bbbb(0xa4)][_0x8bbbb(0x236)](P['TextSelectionManagerService'])[_0x8bbbb(0x20e)](),_0x2e266b=_0x47bb92==null?void 0x0:_0x47bb92[_0x8bbbb(0x3b9)](P['serializeDocRange']);Array[_0x8bbbb(0x379)](_0x2e266b)&&_0x2e266b[_0x8bbbb(0x181)]>0x0&&this[_0x8bbbb(0x44a)](_0x2e266b);}[_0x5e318a(0x215)](){const _0x37df67=_0x5e318a;this[_0x37df67(0x28d)]=!0x1;}};Ae=Hs([F(0x2,o[_0x5e318a(0x23f)](o['Injector'])),F(0x3,o[_0x5e318a(0x23f)](Fe)),F(0x4,o[_0x5e318a(0x23f)](Y)),F(0x5,o[_0x5e318a(0x23f)](We)),F(0x6,_[_0x5e318a(0xa0)]),F(0x7,o[_0x5e318a(0x1da)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x5e318a(0x33d)],Ws=Object[_0x5e318a(0x225)],Fs=(_0xde087d,_0x5b5dda,_0x36744a,_0x5a06b0)=>{const _0x24244b=_0x5e318a;for(var _0x45e6f5=_0x5a06b0>0x1?void 0x0:_0x5a06b0?Ws(_0x5b5dda,_0x36744a):_0x5b5dda,_0x5765bb=_0xde087d[_0x24244b(0x181)]-0x1,_0x392ed0;_0x5765bb>=0x0;_0x5765bb--)(_0x392ed0=_0xde087d[_0x5765bb])&&(_0x45e6f5=(_0x5a06b0?_0x392ed0(_0x5b5dda,_0x36744a,_0x45e6f5):_0x392ed0(_0x45e6f5))||_0x45e6f5);return _0x5a06b0&&_0x45e6f5&&Vs(_0x5b5dda,_0x36744a,_0x45e6f5),_0x45e6f5;},Re=(_0x53621b,_0x4af144)=>(_0x5714e3,_0x520a97)=>_0x4af144(_0x5714e3,_0x520a97,_0x53621b);let Z=class extends o['RxDisposable']{constructor(_0x386e25,_0x2facf8,_0x530815){const _0x3a677e=_0x5e318a;super(),u(this,_0x3a677e(0x12e),new Map()),u(this,_0x3a677e(0x224),new v[(_0x3a677e(0x45c))]()),(this[_0x3a677e(0x1fd)]=_0x386e25,this['_injector']=_0x2facf8,this[_0x3a677e(0x25f)]=_0x530815,this['_init']());}['dispose'](){const _0x2deb6e=_0x5e318a;super['dispose'](),this[_0x2deb6e(0x224)][_0x2deb6e(0x270)](),this[_0x2deb6e(0x12e)][_0x2deb6e(0x183)](_0x307fdc=>_0x307fdc[_0x2deb6e(0x17d)]());}['getCollabCursors$'](_0x403159){const _0x5a537b=_0x5e318a;return this[_0x5a537b(0x12e)][_0x5a537b(0x21e)](_0x403159)?this['_entities'][_0x5a537b(0x236)](_0x403159)[_0x5a537b(0x34e)]:this[_0x5a537b(0x224)]['pipe'](v[_0x5a537b(0x218)](_0x4fa4a3=>_0x4fa4a3[_0x5a537b(0x312)]===_0x403159),v[_0x5a537b(0x1e6)](_0x297d37=>_0x297d37[_0x5a537b(0x34e)]));}[_0x5e318a(0x24b)](){const _0x5a7369=_0x5e318a;this[_0x5a7369(0x1fd)][_0x5a7369(0x332)](o[_0x5a7369(0xbb)][_0x5a7369(0x1dd)])['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](async _0xad9711=>{const _0x308122=_0x5a7369,_0x1f9089=_0xad9711[_0x308122(0x40b)](),_0x4c8972=await this[_0x308122(0x329)](_0x1f9089);this['_entityInit$']['next'](_0x4c8972),this['_entities'][_0x308122(0x2e6)](_0x1f9089,_0x4c8972);}),this[_0x5a7369(0x1fd)][_0x5a7369(0x332)](o[_0x5a7369(0xbb)][_0x5a7369(0x41b)])['pipe'](v[_0x5a7369(0x36b)](this['dispose$']))[_0x5a7369(0x133)](v[_0x5a7369(0x218)](_0x4cea5b=>!_0x4cea5b[_0x5a7369(0x40b)]()[_0x5a7369(0x188)]('__')))[_0x5a7369(0x315)](async _0x291795=>{const _0x3ef9a4=_0x5a7369,_0x2cb328=_0x291795['getUnitId'](),_0x27ff3b=await this[_0x3ef9a4(0x1bc)](_0x2cb328);this[_0x3ef9a4(0x224)][_0x3ef9a4(0x318)](_0x27ff3b),this['_entities'][_0x3ef9a4(0x2e6)](_0x2cb328,_0x27ff3b);}),v[_0x5a7369(0x269)](this[_0x5a7369(0x1fd)][_0x5a7369(0x2f6)](o[_0x5a7369(0xbb)][_0x5a7369(0x41b)]),this[_0x5a7369(0x1fd)][_0x5a7369(0x2f6)](o[_0x5a7369(0xbb)][_0x5a7369(0x1dd)]))['pipe'](v['takeUntil'](this[_0x5a7369(0xc8)]))['subscribe'](_0x1468a9=>{const _0x22a476=_0x5a7369,_0x5a8aa0=_0x1468a9[_0x22a476(0x40b)](),_0x5cdbd5=this[_0x22a476(0x12e)][_0x22a476(0x236)](_0x5a8aa0);_0x5cdbd5&&(_0x5cdbd5[_0x22a476(0x17d)](),this[_0x22a476(0x12e)][_0x22a476(0x33f)](_0x5a8aa0));});}async[_0x5e318a(0x329)](_0x49788d){const _0x5b8dfe=_0x5e318a,_0x3b7f60=await this[_0x5b8dfe(0x25f)]['requireSession'](_0x49788d),_0xe31309=this[_0x5b8dfe(0xa4)][_0x5b8dfe(0x376)](Le,_0x49788d,_0x3b7f60);return _0xe31309['init'](),_0xe31309;}async[_0x5e318a(0x1bc)](_0x122e0d){const _0x1b181d=_0x5e318a,_0x248785=await this[_0x1b181d(0x25f)][_0x1b181d(0x1b1)](_0x122e0d),_0x25fae1=this[_0x1b181d(0xa4)][_0x1b181d(0x376)](Ae,_0x122e0d,_0x248785);return _0x25fae1[_0x1b181d(0x3cc)](),_0x25fae1;}};function _0x2a9a(){const _0x456353=['_scheduleReconnection','subscribe','rxjs/operators','attrs','next','transformMutationsWithChangeset','mutations','onSendChangeset','_handleJoinEvent','IURLService','_getAPIPrefixPath','prototype','ThemeService','slice','COMMENT_UPDATE','COMPRESS_MUTATION_APPLY','_getRedoStack','image/jpg','#fff','collaboration.single-unit.warning','memberID','_startSheetCollabCursor','url(#off-line-single_clip0_910_343)','batchAllowed','selection','shouldCloseConn','tag','_state$','getMemberID','ImageIoService','getTypeOfUnitAdded$','findNodePositionByCharIndex','Workbook','change$','message$','_onUserLeave','InsertColCommandId','[CollaborationState]:\x20apply\x20error!','parseChangesetToProtocol','endColumn','FromArray','defineProperty','evenodd','delete','setUndoRedoMutationParamsCache','getMember','submit\x20changeset\x20error!','_docSkeleton','IUIPartsService','conflict.content','BuiltInUIPart','getSheetId','_handleLeaveEvent','/role','enableLocalCache','getValue','Warning','collabCursorState$','cursorInfo$','_docTransformSelectionsService','USERS_ENTER','OffLineSingle','deleteCollaborator','_beforeCloseService','&assign=','ERROR_IMAGE_TYPE','HEADER_MENU','/allowed','RECV','LIVESHARE_REQUEST_HOST','37653SNdPuW','Injector','ALREADY_EXISTS','save','_onConnectionFailed','_updateURLWithCurrentState','_sheetTransformSelectionsService','range','_commentUpdate$','onRemoteAck','Ready','synced','_incrementRevisionNumber','conflict.title','_collaborationSessionService','activeSheet$','updatePermissionObjEvent','takeUntil','_rescheduleHeartbeatEvent','IUndoRedoService','[CollaborationUndoRedoService]','roomInfos','readAsDataURL','onTransformIME','removeMember','setShapeProps','MoveRangeCommandId','fromEvent','createInstance','_socketService','concat','isArray','getSheetObject','55jGOBRI','ranges','/universer-api/authz','JOIN','#FFF','removeParam','_getSheetObject','getOwnPropertySymbols','@univerjs/design','_loadSheet','_submitChangeset','textRanges','_color','clear','_createHandler','_removeClearOtherTimer','HELLO','99180vloaWm','_substituteUndoStack','CommandType','_transformUndoRedoStack','_waitCount','YUUMI_UNABLE_LOAD_URL','onMouseMove','collaboratorID','TEXT_RANGE_LAYER_INDEX','bottom','OFFLINE','_state','_applyRemoteChangeset','random','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','POST','_eventUnsubscribe','910184RhWhDD','transformRemoteChangeset','loadSheet','currentColor','_getCtorByUniverType','createIdentifier','_collabCursorController','_refreshCollabCursors','session.connection-failed','isEditing','getCurrentUser','call','RemoveColCommandId','values','getCurrentUnitForType','c1Prime','_http','_joinRoom','COMPLETION_FINISHED','_members','LocaleService','Error','pushState','url','editingUnit','handleInsertRow','PSEUDO_FETCH_MISSING_RESULT','@univerjs/docs','map','_range','_transformRemoteChangesetByIMECache','_getSignURL','_getUploadFileURL','onRemoteChangeset','getCoordByCell','APPLY_NON_SEQUENTIAL_REVISION','sequenceExecute','SNAPSHOT_HAS_BEEN_REMOVED','urlChange$','blue400','_docTransformIMECacheService','MSG_FOR_ERROR','NOT_FOUND','purple300','setTimeout','fromCollab','/universer-api/snapshot','init','setInterval','generateRandomId','Disposable','close','textEncoder','transformMutation','_change$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_memberService','useDependency','_themeService','NO_OTHER_CLIENTS_EDITING','UNRECOGNIZED','AWAITING_WITH_PENDING','_disabled','collaborators','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UnitEmbedded','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_commentService','ERROR_IMAGE','updateCursorEvent','getCollabEntity','ACTIVE_UNIT_EVENT_CHANNEL','IBeforeCloseService','LOCAL_CACHE_INTERVAL','onlineStatusIcon','off-line-single','fillStyle','_replaceFileID','roomMembers','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','focused$','USERS_LEAVE','withCredentials','replaceTextRanges','objectID','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_cursors','onPointerEnter$','isTransformChangesetsSuccess','_isPermissionRej','useRef','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','JSONX','_getSnapshotAPIPrefix','Tools','_retryConnectingTimer','assignAColorForMemberID','CONNECTOR_DATA_TOO_LARGE','onCommandExecuted','getSheetBlock','_event$','row','LICENSE_DISTRO_REJECTED','IRenderManagerService','handleInsertRangeMoveDown','_clearOtherTimers','_compressMutationService','sheetID','getImageSourceCache','_getCurrentRevision','getUnitId','offline','INotificationService','children','add','_showConflictNotification','TRANSFORM_CHANGE_OBSERVABLE_TYPE','beginPath','ws://127.0.0.1:8000/universer-api/comb/connect','toDisposable','_unitStatus','connection\x20error','univerjs-icon\x20univerjs-icon-','UniverCollaborationClientPlugin','Shape','closePath','UNIVER_DOC','disableLocalCache','_onConnectionOpen','_transformStack','APPLY_PERMISSION_DENIED','saveOfflineData','_HTTPService','ImageUploadStatusType','all','addObject','...','width','MUTATION','_scene','parse','_onRefRangeChange','_initResize','data','text','/rev/','onload','_scheduleCollaborationTimeoutTimer','round','selections','workbook','_permissionService','_docStateChangeManagerService','transformSelections','useObservable','isTransformMutationsWithChangesetSuccess','subUnitId','ISnapshotServerService','changesets','getActiveRange','setItem','currentTheme$','setWaitCount','@univerjs/drawing','_sendingTimer','deepClone','updateOfflineData','4307149oEPXBW','[OfflineState]:\x20received\x20rejection.','every','transformUndoRedo','getCurrentSelections','getColor','_updateLocalCursor','APPLY_REJECT','_singleActiveUnitService','onTransformSelections','_status$','?size=','uni.network.url-service','_timeoutTimer','_retryCount','reject','_transitionLocked','getAncestorScale','getRoom','_transformUndoredo','_clearTimeoutTimer','_hovered','DeleteRangeMoveUpCommandId','_clearCollaborationTimeoutTimer','Subject','error','_unlockTransition','_roomMembers$','SYNCED','[SyncedState]:\x20received\x20acknowledgement.','[CollaborationSessionService]','fill','trim','_userManagerService','combineLatest','_getMergeRange','asObservable','color','code','SUBMIT_CHANGESET','CollaborationSocketService','[FetchMissState]','unit-cache-','_setupSubUnitSync','_handleHeartbeatEvent','transformStack\x20failed!','IAuthzIoService','univer-online-status','shareReplay','_onLocalMutation','SheetCollaborationEntity','c2Prime','mapDocumentTypeToUniverType','runRefRangeMutations','_toggleOnline','_hover','resend','UPDATE_PERMISSION_OBJ','_getScale','_decreaseWaiting','propertyIsEnumerable','YUUMI_SUBSCRIPTION_NOT_FOUND','unshift','_onRemoteACK','_anchor','onSyncEditingCollabCursor','initWorkbookPermissionChange','substring','ITransformService','_socketReady','HEARTBEAT','SessionStatus','_injector','joinEvent','AuthzIoHttpService','_saveCache','toggleOnline','defs','_initUnitPermissionChange','replaceState','UNIVER_PROJECT','COLLAB_SUBMIT_CHANGESET_URL_KEY','max','WebURLService','collab-text-range-','_sendHeartbeat','M0\x200H16V16H0z','clipPath','CompressMutationService','isValidRectRange','conflict','awaiting_with_pending','extend','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','UniverInstanceType','onPointerMove$','href','_updateStatus','saveChangeset','interceptor','UNDEFINED','objectActions','_configService','AUTHZ_URL_KEY','InsertRowCommandId','XHRHTTPImplementation','on-line-single_clip0_910_349','dispose$','WebSocketService','_transformService','LocalUndoRedoService','_drawAnchor','appendMutation','COLLAB_SUBMIT_CHANGESET_URL','/unit/','skeleton','RxDisposable','VIEW_MAIN','off-line-single_clip0_910_343','deserializeToCombResponse','_session','INGEST','_pendingMutations','SNAPSHOT_URL_KEY','WorkbookEditablePermission','UNAUTHENTICATED','LIVESHARE_FETCH_OPERATIONS','sheets','cursorInfo','SheetsSelectionsService','collabStatus.synced','PERMISSION_REJ','key','RefRangeService','_socket','MergeInterceptorFactory','roomMembers$','ILocalStorageService','InsertSheetMutation','866igtJTg','getMergeData','_render','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','LIVESHARE_NEW_HOST','_collaborationTimeoutTimer','measureText','path','CollaborationStatusDisplay','UnitSnapshot','_notificationService','hasOwnProperty','delay','react','?url=','_config','triggerDblclick','_initCommandExecutedListener','ILogService','getItem','\x20to\x20','m2Prime','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LICENSE_EXPORT_SIZE_EXCEEDED','clearInterval','then','registerHTTPInterceptor','getCurrent','status$','_remoteChangesetQueue','unknown','_cachedData','event$','LICENSE_MAX_UNITS_EXCEEDED','transformByState','entries','_tryEnsureSocket','unitId','_commandService','_ws','name','_awaitingChangeset','fetch_missing','_handleEvent','onStateChange','_updateCollabCursors','routeKey','HttpExport','params','verdancy600','@univerjs/rpc','DataLoaderController','_updateLocalCache','LOGIN_URL_KEY','_localCacheService','DocSkeletonManagerService','getUnitType','drawWith','hide','saveImage','collabStatus.notCollab','SnapshotServerOverHTTPService','enableAuthServer','isPermissionRej','mergeOverrideWithDependencies','subunit','EmptyMutation','_collaborationPaused','ERROR_EXCEED_SIZE','_entities','AWAITING','getCellPositionByOffset','div','registerRefRange','pipe','UniverIcon','UUID','getSheetBySheetId','/-/object/-/batch_allowed','/universer-api/comb','red300','split','_hideTimer','reverse','_initCloseConn','_socketMessageSubscription','_clearHeartbeatTimer','unit','_logService','SetWorksheetActivateCommand','location','send','defIds','NOT_COLLAB','size','state$','transformIMECache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','error$','_getSaveTimeout','_sessionStatus$','transform','_labelPosition','_cursorInfo$','univer-online-status-icon','IHTTPImplementation','ColorKit','_onCombEvent','_handleHover','saveSnapshot','PENDING','_heartbeatTimer','univer-pro.collaboration-client.single-active-unit-service','contains','subscribeEvent','_queuedRemoteChangesets','\x20in\x20_schedule.','Optional','setAlpha','toggleOffline','_checkMissing','_backgroundColor','hovered','_disableEditing','from','isActive','UniverCollaborationPlugin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_startCollaboration','_unitOnClients','_getSendChangesetTimeout','ONLINE','_unitID','disposeWithMe','socket\x20open.','status','_name','whenReady','/universer-api/stream/file/upload','exhaustSavingTask','handleDeleteRangeMoveUp','_onRecvEvent','parseProtocolChangeset','onTransformChange$','method','createElement','distinctUntilChanged','{fileID}','dispose','LOCAL_CACHE_INTERVAL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','handleInsertRangeMoveRight','length','_syncEditingCollabCursor','forEach','_createSocket','CollaborationController','restore','title','startsWith','startColumn','BehaviorSubject','_docSkeletonManagerService','b64DecodeUnicode','_initStatusComponent','_initMergeInterceptor','icon','json','assign','forwardRef','_colorIndex','onRendered','unsubscribe','snapshot','min','eventID','LocalCacheService','session.will-retry','FAIL','lineTo','not_collab','ImageSourceType','top','NEW_CHANGESETS','getUnitStatus$','INTERNAL_ERROR','_transformPreviousActiveRange','onMissedChangesetFetched','/-/object/list','HEARTBEAT_TIMEOUT_KEY','onRemoteRej','sessionStatus','1em','isInternalEditorID','image/png','getCollabEntity$','DocStateChangeManagerService','COLORS','[CollaborationEntity]','debug','requireSession','newValue','CHANGESET_REJ','UNIVER_SLIDE','_selfUnitIDs','editing\x20status\x20changed\x20to','_handler','currentSkeleton$','_messageService','_removeRoom','includes','_startDocCollabCursor','LIVESHARE_OPERATION','Module','_transformSelections','userID','type','/collaborator','getRangePointData','_syncEditingCollabCursorService','FETCH_MISS','_snapshotServerService','CollaborationEvent','_clearLocalCache','socket\x20close','_exhaustRemoteChangesetQueue','SNAPSHOT_INVALID_SNAPSHOT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','action','updateMember','univer-online-status-title','_anchorDot','registerRenderModule','actions','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_uiPartsService','permission.title','_onCursorUpdate','_onFetchMissResult','_onUserJoin','UNKNOWN_CMD','IUniverInstanceService','Starting','Vector2','UNIVER_SHEET','SEND_CHANGESET_TIMEOUT_KEY','_scheduleClearOtherTimer','catch','_onConflict','2690082ZbvRDP','NodePositionConvertToRectRange','backgroundColor','apply','switchMap','xlink:href','_onJoinRoomEvent','[OfflineState]:\x20received\x20changeset.','@univerjs/engine-render','HTTPRequest','doc.mutation.rich-text-editing','sessionStatus$','YUUMI_URL_COL_OUT_OF_RANGE','IDLE','/object/','getInterceptPoints','onMissingChangesets','fetchThroughInterceptors','registerBeforeClose','rev','fromEventSubject','_lastPointer','fetchMissingChangesets','_collaborationController','getCurrentRevForDocument','className','awaitingChangeset','_univerInstanceService','fillText','open$','FETCH_MISSING','auth.needGotoLoginAlert','IMEInputManagerService','CHANGESET_ACK','_waitForHeartbeatResponse','_substituteRedoStack','_updateSubUnitFromURLParams','commentUpdateEvent','UNIVER_UNKNOWN','10LGGeqF','session.collaboration-timeout','IImageIoService','addEventListener','CollaborationSession','getDocRanges','_cursor','stringify','_sessions','getCollabCursors$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','height','_toggleOffline','_textBubble','searchParams','filter','_cursorShapes','concatMap','updateCollaborator','_roomMembers','_id','has','DesktopCollaborationStatusDisplayController','headers','socketService','OnLifecycle','_executeRemoteChangeset','_entityInit$','getOwnPropertyDescriptor','_onRemoteRejected','image/gif','session','current','post','IMessageService','column','&source=','objectType','onTransformRemoteChangesetByIMECache','gold400','image/jpeg','UserManagerService','font','_transformIMECache','onCommentUpdate','get','YUUMI_RATE_OVER_LIMIT','TextSelectionManagerService','makeDirty','registerComponent','DisposableCollection','_getAPIPrefix','displayName','_loadDoc','Inject','take','LIVESHARE_TERMINATE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/fetchmissing?from=','SNAPSHOT_SERVER_URL_KEY','EffectRefRangId','getActiveSheet','ICommandService','OTHER_CLIENTS_EDITING','_createInitialStateImpl','UNIVER_COLLABORATION_CLIENT_PLUGIN','_init','_ensureSubject','_getLoginPath','InsertRangeMoveDownCommandId','_assignedColors','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_shapes','14799393XXcSXg','deserializeRangeWithSheet','addImageSourceCache','Rect','Error\x20on\x20receiving\x20event','none','_renderManagerService','getViewport','INVALID_ARGUMENT','objects','CollaborationStatus','encode','_sendHeartbeatTimer','_collabSessionService','IPermissionService','_drawRectRange','SheetCollabCursorShape','LEAVE','@univerjs/core','_draw','_colorAssignService','liveShareNewHost','endRow','merge','RETRY_CONNECTING_INTERVAL','SHOULD_CLOSE_CONN','toStringTag','append','_socket$','leaveEvent','complete','ICollaborationSocketService','resourceIDs','getUnitOnRev','@univerjs/engine-formula','_lockTransition','push','_collabCursorState$','[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.','_scheduleTimestamp','syncEditingCollabCursor','pluginName','flatMap','image/bmp','target','result','/universer-api/file/{fileID}/sign-url','isTransformMutationFailure','on-line-single','localeService','[PendingState]:\x20received\x20acknowledgement.','function','onlineStatusTitle','createCollaborator','cmd','_onMessage','requestParams','_type','UPDATE_CURSOR','_online','PERMISSION_DENIED','_removeCollabCursors','closeSession','univer-offline','put','indexOf','_sheetSkeletonManagerService','_updateState','[UniverCollaborationClientPlugin]','collaboration.closeRoom','RemoveRowCommandId','getConfig','_httpService','getParam','pending','clearTimeout','onlyLocal','collabStatus.offline','arc','HTTPService','addObjects','listCollaborators','InsertRangeMoveRightCommandId','_localeService','TOO_MANY_REQUESTS','session.room-full','storage','DependentOn','IConfigService','setParam','SetSelectionsOperation','debounceTime','m1Prime','collabStatus.conflict','Rectangle','_registerDependencies','_undoRedoService','_undoStacks','body','roles','COMPRESS_MUTATION_SEND','SnapshotService','collaMsg','[DataLoaderController]','881XywJbk','_registerRenderDependencies','reduce','RevisionService','toRgbString','0\x200\x2016\x2016','revision','_send','getUndoRedoMutationParamsCache','COLLAB_WEB_SOCKET_URL_KEY','_setupBeforeClosingHandler','history','OnLineSingle','executeCommand','getUnhiddenWorksheets','putCollaborators','_refRangeService','liveShareOperation','getImage','FileId','_snapshotService','_localStorageService','Steady','transformChangesets','_clearRedo','_clearUndo','engine','getFocusedUnit','refreshPermission','RegularPolygon','collabStatus.syncing','idSuffix','connectInjector','DeleteRangeMoveLeftCommandId','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getUndoStack','_onCursorDelete','_replayCachedMutations','handleIRemoveRow','/resources','members','loadOfflineData','updatePermissionPoint','setCurrentUser','set','black','symbol','find','HEARTBEAT_INTERVAL_KEY','show','HttpImport','_context','_urlService','_imageSourceCache','JOINING','translate(.97)','awaiting','SetDocZoomRatioOperation','MessageType','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','toString','@univerjs-pro/collaboration','CollaborationSessionService','HEARTBEAT_TIMEOUT','save\x20fail\x20reason\x20is\x20','permissionRejEvent','_acknowledgedAwaitingChangeset','CommentService','_drawTextRange','Unknown\x20user','LifecycleStages','csAckEvent','Undefined','enableOfflineEditing','RichTextEditingMutation','string','newCsEvent','_scheduleHeartbeat','[OfflineState]:\x20received\x20acknowledgement.','_saveTaskMap','SEND_CHANGESET_TIMEOUT','_revisionService','_clearScheduledTask','colorChannel1','\x20-\x20','getWorkbookSelections','replace','unitID','_onRemoteChangeset'];_0x2a9a=function(){return _0x456353;};return _0x2a9a();}Z=Fs([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x1db)],Z),Re(0x0,o[_0x5e318a(0x1da)]),Re(0x1,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),Re(0x2,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x414624,_0x603a86){const _0x550712=_0x5e318a;let {radius:_0x1b4334,width:_0x1d5e85,height:_0x32bead}=_0x603a86;_0x1b4334=_0x1b4334!=null?_0x1b4334:0x0,_0x1d5e85=_0x1d5e85!=null?_0x1d5e85:0x1e,_0x32bead=_0x32bead!=null?_0x32bead:0x1e;let _0x1e9212=0x0,_0x3cca3e=0x0,_0x27836c=0x0;_0x1e9212=_0x3cca3e=_0x27836c=Math[_0x550712(0x197)](_0x1b4334,_0x1d5e85/0x2,_0x32bead/0x2),_0x414624[_0x550712(0x412)](),_0x414624['moveTo'](_0x1e9212,0x0),_0x414624['lineTo'](_0x1d5e85-_0x3cca3e,0x0),_0x414624[_0x550712(0x2a0)](_0x1d5e85-_0x3cca3e,_0x3cca3e,_0x3cca3e,Math['PI']*0x3/0x2,0x0,!0x1),_0x414624[_0x550712(0x19c)](_0x1d5e85,_0x32bead-_0x27836c),_0x414624['arc'](_0x1d5e85-_0x27836c,_0x32bead-_0x27836c,_0x27836c,0x0,Math['PI']/0x2,!0x1),_0x414624[_0x550712(0x19c)](0x0,_0x32bead),_0x414624['lineTo'](0x0,_0x1e9212),_0x414624['arc'](_0x1e9212,_0x1e9212,_0x1e9212,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x414624[_0x550712(0x41a)](),_0x603a86[_0x550712(0x463)]&&(_0x414624[_0x550712(0x35d)](),_0x414624['fillStyle']=_0x603a86[_0x550712(0x463)],_0x603a86['fillRule']===_0x550712(0x33e)?_0x414624[_0x550712(0x463)](_0x550712(0x33e)):_0x414624[_0x550712(0x463)](),_0x414624[_0x550712(0x186)]());}class Ce extends b[_0x5e318a(0x419)]{constructor(_0x98c1fd,_0x437510){const _0x3e5cec=_0x5e318a;super(_0x98c1fd,_0x437510),u(this,'color'),u(this,'text'),(this[_0x3e5cec(0x469)]=_0x437510==null?void 0x0:_0x437510[_0x3e5cec(0x469)],this['text']=_0x437510==null?void 0x0:_0x437510[_0x3e5cec(0x42d)]);}static[_0x5e318a(0x122)](_0x49fb10,_0x2adb71){const _0x50eea7=_0x5e318a,{text:_0x17d9b0,color:_0x3dbac8}=_0x2adb71;_0x49fb10[_0x50eea7(0x35d)](),_0x49fb10[_0x50eea7(0x233)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x154e69=_0x49fb10['measureText'](_0x17d9b0)[_0x50eea7(0x426)],_0x3595ff=Math[_0x50eea7(0x197)](_0x154e69+0x2*Oe,it);Ys(_0x49fb10,{'height':le,'radius':0x4,'width':_0x3595ff,'fill':_0x3dbac8,'evented':!0x1}),_0x49fb10[_0x50eea7(0x3e9)]=_0x50eea7(0x37f);const _0x41c549=Oe,_0x36a6a3=le-Gs,_0x541652=it-0x2*Oe;if(_0x154e69>_0x541652){let _0x1819df='',_0x327c1e=0x0;for(const _0x3f888e of _0x17d9b0){const _0x2e4558=_0x49fb10[_0x50eea7(0xef)](_0x3f888e)[_0x50eea7(0x426)];if(_0x327c1e+_0x2e4558<=_0x541652-_0x49fb10[_0x50eea7(0xef)](_0x50eea7(0x425))['width'])_0x1819df+=_0x3f888e,_0x327c1e+=_0x2e4558;else{_0x1819df+='...';break;}}_0x49fb10['fillText'](_0x1819df,_0x41c549,_0x36a6a3);}else _0x49fb10[_0x50eea7(0x1fe)](_0x17d9b0,_0x41c549,_0x36a6a3);_0x49fb10[_0x50eea7(0x186)]();}[_0x5e318a(0x265)](_0x17c291){const _0x2e15f4=_0x5e318a;Ce[_0x2e15f4(0x122)](_0x17c291,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x5e318a(0x419)]{constructor(_0x5e1a37,_0x416f14){const _0xbc35f3=_0x5e318a;super(_0x5e1a37,_0x416f14),u(this,_0xbc35f3(0x387)),u(this,_0xbc35f3(0x459),!0x1),u(this,_0xbc35f3(0x3ba)),u(this,_0xbc35f3(0x171),''),u(this,_0xbc35f3(0x14f),_0xbc35f3(0x19f)),u(this,_0xbc35f3(0x162)),(_0x416f14&&this[_0xbc35f3(0x373)](_0x416f14),this['onPointerEnter$']['subscribeEvent'](()=>this[_0xbc35f3(0x373)]({'hovered':!0x0})),this['onPointerLeave$'][_0xbc35f3(0x15b)](()=>this[_0xbc35f3(0x373)]({'hovered':!0x1})));}[_0x5e318a(0x373)](_0x5d00dd){const _0xf6bdaa=_0x5e318a;var _0x53fd1f,_0xb3d58e,_0x12d6f5,_0x1fd1ad,_0x2fb337,_0xed9848;this['_color']=(_0x53fd1f=_0x5d00dd[_0xf6bdaa(0x469)])!=null?_0x53fd1f:this[_0xf6bdaa(0x387)],this['_hovered']=(_0xb3d58e=_0x5d00dd[_0xf6bdaa(0x163)])!=null?_0xb3d58e:this['_hovered'],this[_0xf6bdaa(0x3ba)]=(_0x12d6f5=_0x5d00dd[_0xf6bdaa(0x361)])!=null?_0x12d6f5:this['_range'],this[_0xf6bdaa(0x171)]=(_0x1fd1ad=_0x5d00dd[_0xf6bdaa(0x111)])!=null?_0x1fd1ad:this[_0xf6bdaa(0x171)],this[_0xf6bdaa(0x14f)]=(_0x2fb337=_0x5d00dd['labelPosition'])!=null?_0x2fb337:this[_0xf6bdaa(0x14f)],this[_0xf6bdaa(0x162)]=(_0xed9848=_0x5d00dd[_0xf6bdaa(0x1e4)])!=null?_0xed9848:this[_0xf6bdaa(0x162)],this[_0xf6bdaa(0x10b)]({'width':_0x5d00dd[_0xf6bdaa(0x426)],'height':_0x5d00dd[_0xf6bdaa(0x214)]});}[_0x5e318a(0x392)](_0x149a85){const _0x477945=_0x5e318a,{row:_0x186119,column:_0x51f54f}=_0x149a85;if(_0x186119>=this['_range']['startRow']&&_0x186119<=this[_0x477945(0x3ba)][_0x477945(0x268)]&&_0x51f54f>=this['_range'][_0x477945(0x189)]&&_0x51f54f<=this[_0x477945(0x3ba)][_0x477945(0x33b)]){this[_0x477945(0x373)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5e318a(0xf9)](_0x2b0d9c){return!0x1;}['_draw'](_0x828067){const _0x3d7663=_0x5e318a;b[_0x3d7663(0x255)][_0x3d7663(0x122)](_0x828067,{'width':this[_0x3d7663(0x426)],'height':this[_0x3d7663(0x214)],'strokeWidth':Xs,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3d7663(0x459)]&&(_0x828067[_0x3d7663(0x35d)](),_0x828067[_0x3d7663(0x14e)](0x1,0x0,0x0,0x1,this['width'],this[_0x3d7663(0x14f)]===_0x3d7663(0x395)?0x0:-le),Ce[_0x3d7663(0x122)](_0x828067,{'text':this['_name'],'color':this[_0x3d7663(0x387)]}),_0x828067[_0x3d7663(0x186)]());}}var qs=Object[_0x5e318a(0x33d)],zs=Object[_0x5e318a(0x225)],Js=(_0xb2f387,_0x504b6a,_0xfdae6b,_0x127e9f)=>{for(var _0x12890e=_0x127e9f>0x1?void 0x0:_0x127e9f?zs(_0x504b6a,_0xfdae6b):_0x504b6a,_0x11bbba=_0xb2f387['length']-0x1,_0x4f4a07;_0x11bbba>=0x0;_0x11bbba--)(_0x4f4a07=_0xb2f387[_0x11bbba])&&(_0x12890e=(_0x127e9f?_0x4f4a07(_0x504b6a,_0xfdae6b,_0x12890e):_0x4f4a07(_0x12890e))||_0x12890e);return _0x127e9f&&_0x12890e&&qs(_0x504b6a,_0xfdae6b,_0x12890e),_0x12890e;},De=(_0xa26a1c,_0x18dd27)=>(_0x4a3a56,_0x37b7e0)=>_0x18dd27(_0x4a3a56,_0x37b7e0,_0xa26a1c);const Zs=0x1389;let je=class extends o[_0x5e318a(0xd1)]{constructor(_0x1a5e4e,_0x3630fd,_0x370824,_0x3b0517){const _0x5969c6=_0x5e318a;super(),u(this,_0x5969c6(0x3f3),new Set()),u(this,'_lastPointer',null),(this[_0x5969c6(0x2ed)]=_0x1a5e4e,this[_0x5969c6(0x294)]=_0x3630fd,this[_0x5969c6(0x3a3)]=_0x370824,this[_0x5969c6(0x3d7)]=_0x3b0517,this[_0x5969c6(0x24b)]());}[_0x5e318a(0x24b)](){const _0x5d9289=_0x5e318a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5d9289(0x133)](E[_0x5d9289(0x36b)](this['dispose$']),E['switchMap'](_0x4e96c2=>{const _0x547177=_0x5d9289;if(_0x4e96c2){const _0x59962a=_0x4e96c2['sheetId'];return v[_0x547177(0x466)](this[_0x547177(0x3a3)]['getCollabCursors$'](this[_0x547177(0x2ed)][_0x547177(0x10e)]),this[_0x547177(0x3d7)][_0x547177(0x43e)])[_0x547177(0x133)](E['map'](([_0x597a51,_0x3b7013])=>{const _0x113e3d=_0x547177,_0x36ed39=new Map();return _0x597a51[_0x113e3d(0x183)]((_0x2cefe2,_0x5e62f3)=>{const _0x5b7d56=_0x113e3d;if(_0x2cefe2[_0x5b7d56(0x408)]===_0x59962a){const _0x3d3f7b={..._0x2cefe2};_0x3d3f7b[_0x5b7d56(0x469)]=_0x3b7013[_0x2cefe2[_0x5b7d56(0x469)]],_0x36ed39['set'](_0x5e62f3,_0x3d3f7b);}}),{'skeleton':_0x4e96c2,'cursors':_0x36ed39};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5d9289(0x315)](({skeleton:_0x5f5861,cursors:_0x564190})=>{const _0x15f9d0=_0x5d9289;this[_0x15f9d0(0x28f)](),_0x5f5861&&this['_updateCollabCursors'](_0x5f5861,_0x564190);}),this[_0x5d9289(0x294)][_0x5d9289(0x1b8)][_0x5d9289(0x315)](_0x2d42f8=>{const _0x16cd8a=_0x5d9289;if(_0x2d42f8==null)return;const {skeleton:_0x5e1e52}=_0x2d42f8,{scene:_0x2a84a8}=this[_0x16cd8a(0x2ed)];_0x2a84a8[_0x16cd8a(0xbc)][_0x16cd8a(0x15b)](xe(_0x101980=>{const _0xea1535=_0x16cd8a;var _0x2a9e8c,_0x3e7d13;const {offsetX:_0x717ba2,offsetY:_0xb6c647}=_0x101980,{x:_0x1820a7,y:_0x4bc51d}=_0x2a84a8['getRelativeToViewportCoord'](b['Vector2']['FromArray']([_0x717ba2,_0xb6c647])),{scaleX:_0x294451,scaleY:_0x40ab86}=_0x2a84a8['getAncestorScale'](),_0x157981=_0x2a84a8[_0xea1535(0x259)](J['VIEWPORT_KEY'][_0xea1535(0xd2)]),_0x467eb9=_0x2a84a8['getVpScrollXYInfoByPosToVp'](b[_0xea1535(0x1dc)][_0xea1535(0x33c)]([_0x1820a7,_0x4bc51d]),_0x157981),_0x2ce234=_0x5e1e52[_0xea1535(0x130)](_0x717ba2,_0xb6c647,_0x294451,_0x40ab86,_0x467eb9);((_0x2a9e8c=this['_lastPointer'])==null?void 0x0:_0x2a9e8c['column'])===_0x2ce234[_0xea1535(0x22c)]&&((_0x3e7d13=this[_0xea1535(0x1f7)])==null?void 0x0:_0x3e7d13[_0xea1535(0x402)])===_0x2ce234[_0xea1535(0x402)]||this[_0xea1535(0x3f3)]['forEach'](_0x49a3c2=>{const _0x3db870=_0xea1535;_0x49a3c2[_0x3db870(0x392)](_0x2ce234);});},0x64));});}['_updateCollabCursors'](_0x2ad90a,_0x51bf29){const _0x507bcb=_0x5e318a;var _0x89d6be;const _0xbad78=(_0x89d6be=this[_0x507bcb(0x294)][_0x507bcb(0x104)]())==null?void 0x0:_0x89d6be[_0x507bcb(0xd0)];if(!_0xbad78)return;const _0x5e512e=this[_0x507bcb(0x381)]();if(!_0x5e512e)return;this[_0x507bcb(0x3f3)][_0x507bcb(0x183)](_0x3fbff8=>{const _0x35a919=_0x507bcb;_0x3fbff8[_0x35a919(0x239)]();});const {scene:_0x1a063c}=_0x5e512e,_0xfbeae2=Qs(Array['from'](_0x51bf29[_0x507bcb(0x3aa)]()))[_0x507bcb(0x3b9)](_0x574352=>{const _0x59412c=_0x507bcb,{color:_0x3ec4de,range:_0x4aa90f,name:_0x401771,selection:_0x436ed0,sheetID:_0x32d405}=_0x574352,{startColumn:_0x4e1d30,startRow:_0x295ab9,endColumn:_0x4f96be,endRow:_0x34f2dd}=_0x4aa90f,_0xf5f72f=J['getCoordByCell'](_0x295ab9,_0x4e1d30,_0x1a063c,_0xbad78),_0x38d9a5=J[_0x59412c(0x3bf)](_0x34f2dd,_0x4f96be,_0x1a063c,_0xbad78),{columnHeaderHeightAndMarginTop:_0x1b7bcf}=_0xbad78,{startX:_0x2f22eb,startY:_0x3c1a2f}=_0xf5f72f,{endX:_0x52c009,endY:_0x2398c2}=_0x38d9a5,_0x5032ab=_0x52c009-_0x2f22eb,_0x39cb64=_0x2398c2-_0x3c1a2f,_0x1e5053={'labelPosition':_0x3c1a2f-_0x1b7bcf>=le?'top':'bottom','sheetID':_0x32d405,'range':_0x4aa90f,'color':_0x3ec4de,'name':_0x401771,'selection':_0x436ed0,'left':_0x2f22eb,'top':_0x3c1a2f,'width':_0x5032ab,'height':_0x39cb64,'evented':!0x1,'zIndex':Zs};return new Rt(_0x401771,_0x1e5053);});_0x1a063c[_0x507bcb(0x2a2)](_0xfbeae2,Ks),this[_0x507bcb(0x3f3)]=new Set(_0xfbeae2);}[_0x5e318a(0x28f)](){const _0x121050=_0x5e318a;var _0x3dd099;(_0x3dd099=this[_0x121050(0x3f3)])==null||_0x3dd099[_0x121050(0x183)](_0x4863d9=>_0x4863d9['dispose']());}['_getSheetObject'](){const _0x5bb200=_0x5e318a;return J[_0x5bb200(0x37a)](this[_0x5bb200(0x2ed)][_0x5bb200(0x140)],this[_0x5bb200(0x2ed)]);}};je=Js([De(0x1,o['Inject'](J['SheetSkeletonManagerService'])),De(0x2,o[_0x5e318a(0x23f)](Z)),De(0x3,o['Inject'](o['ThemeService']))],je);function Qs(_0xef6364){const _0x4396a2=_0x5e318a,_0x2bc986=new Map();return _0xef6364[_0x4396a2(0x183)](_0x2884c2=>{const _0x5099a0=_0x4396a2;if(_0x2bc986['has'](_0x2884c2['selection'])){const _0x165daa=_0x2bc986['get'](_0x2884c2[_0x5099a0(0x32c)]);_0x165daa[_0x5099a0(0x111)]+=',\x20'+_0x2884c2['name'];}else _0x2bc986[_0x5099a0(0x2e6)](_0x2884c2['selection'],_0x2884c2);}),Array['from'](_0x2bc986[_0x4396a2(0x3aa)]());}var N=function(){const _0x4552ea=_0x5e318a;return N=Object[_0x4552ea(0x191)]||function(_0x70eaaa){for(var _0x52a831,_0x15d0e7=0x1,_0x10d517=arguments['length'];_0x15d0e7<_0x10d517;_0x15d0e7++){_0x52a831=arguments[_0x15d0e7];for(var _0x15a129 in _0x52a831)Object['prototype']['hasOwnProperty']['call'](_0x52a831,_0x15a129)&&(_0x70eaaa[_0x15a129]=_0x52a831[_0x15a129]);}return _0x70eaaa;},N[_0x4552ea(0x1e5)](this,arguments);},ei=function(_0x2457c1,_0x1ec7de){const _0x584e5c=_0x5e318a;var _0x4b34e8={};for(var _0x3e5184 in _0x2457c1)Object[_0x584e5c(0x31f)][_0x584e5c(0xf4)][_0x584e5c(0x3a8)](_0x2457c1,_0x3e5184)&&_0x1ec7de[_0x584e5c(0x293)](_0x3e5184)<0x0&&(_0x4b34e8[_0x3e5184]=_0x2457c1[_0x3e5184]);if(_0x2457c1!=null&&typeof Object['getOwnPropertySymbols']==_0x584e5c(0x285)){for(var _0x42b126=0x0,_0x3e5184=Object[_0x584e5c(0x382)](_0x2457c1);_0x42b126<_0x3e5184[_0x584e5c(0x181)];_0x42b126++)_0x1ec7de['indexOf'](_0x3e5184[_0x42b126])<0x0&&Object[_0x584e5c(0x31f)][_0x584e5c(0x98)][_0x584e5c(0x3a8)](_0x2457c1,_0x3e5184[_0x42b126])&&(_0x4b34e8[_0x3e5184[_0x42b126]]=_0x2457c1[_0x3e5184[_0x42b126]]);}return _0x4b34e8;},Ge=y['forwardRef'](function(_0x1755b2,_0x42c961){const _0x296db3=_0x5e318a;var _0x327d2b=_0x1755b2['icon'],_0x4a549e=_0x1755b2['id'],_0x392246=_0x1755b2[_0x296db3(0x1fb)],_0x4311ea=_0x1755b2[_0x296db3(0xb8)],_0x3e89f8=ei(_0x1755b2,[_0x296db3(0x18f),'id',_0x296db3(0x1fb),_0x296db3(0xb8)]),_0x5340ac=_0x296db3(0x417)['concat'](_0x4a549e,'\x20')[_0x296db3(0x378)](_0x392246||'')[_0x296db3(0x464)](),_0x493591=y[_0x296db3(0x3f7)]('_'[_0x296db3(0x378)](ii()));return Ot(_0x327d2b,''[_0x296db3(0x378)](_0x4a549e),{'defIds':_0x327d2b[_0x296db3(0x145)],'idSuffix':_0x493591[_0x296db3(0x229)]},N({'ref':_0x42c961,'className':_0x5340ac},_0x3e89f8),_0x4311ea);});function Ot(_0x21fb90,_0x204b41,_0x9375dd,_0x53051d,_0x124a0a){const _0x2ce004=_0x5e318a;return y[_0x2ce004(0x17a)](_0x21fb90[_0x2ce004(0x32e)],N(N({'key':_0x204b41},ti(_0x21fb90,_0x9375dd,_0x124a0a)),_0x53051d),(si(_0x21fb90,_0x9375dd)[_0x2ce004(0x40e)]||[])[_0x2ce004(0x3b9)](function(_0x1a94be,_0x545a58){const _0x11610b=_0x2ce004;return Ot(_0x1a94be,''['concat'](_0x204b41,'-')[_0x11610b(0x378)](_0x21fb90['tag'],'-')[_0x11610b(0x378)](_0x545a58),_0x9375dd,void 0x0,_0x124a0a);}));}function ti(_0x2f20e2,_0x4cacd7,_0x28cf68){const _0x5d9813=_0x5e318a;var _0x319280=N({},_0x2f20e2[_0x5d9813(0x317)]);_0x28cf68!=null&&_0x28cf68[_0x5d9813(0x30e)]&&_0x319280[_0x5d9813(0x463)]===_0x5d9813(0x30e)&&(_0x319280[_0x5d9813(0x463)]=_0x28cf68['colorChannel1']);var _0x59dd27=_0x4cacd7[_0x5d9813(0x145)];return!_0x59dd27||_0x59dd27[_0x5d9813(0x181)]===0x0||(_0x2f20e2[_0x5d9813(0x32e)]==='use'&&_0x319280[_0x5d9813(0x1e7)]&&(_0x319280[_0x5d9813(0x1e7)]=_0x319280[_0x5d9813(0x1e7)]+_0x4cacd7[_0x5d9813(0x2d9)]),Object[_0x5d9813(0x10c)](_0x319280)['forEach'](function(_0x32d517){const _0x4bd1f9=_0x5d9813;var _0x2c7934=_0x32d517[0x0],_0x5c8121=_0x32d517[0x1];typeof _0x5c8121=='string'&&(_0x319280[_0x2c7934]=_0x5c8121[_0x4bd1f9(0x311)](/url\(#(.*)\)/,'url(#$1'[_0x4bd1f9(0x378)](_0x4cacd7['idSuffix'],')')));})),_0x319280;}function si(_0x4b306a,_0x59b1c5){const _0x393d4f=_0x5e318a;var _0xea95d3,_0x23e04b=_0x59b1c5[_0x393d4f(0x145)];return!_0x23e04b||_0x23e04b[_0x393d4f(0x181)]===0x0?_0x4b306a:_0x4b306a[_0x393d4f(0x32e)]==='defs'&&(!((_0xea95d3=_0x4b306a[_0x393d4f(0x40e)])===null||_0xea95d3===void 0x0)&&_0xea95d3[_0x393d4f(0x181)])?N(N({},_0x4b306a),{'children':_0x4b306a[_0x393d4f(0x40e)][_0x393d4f(0x3b9)](function(_0x56bf43){const _0xbfdbd7=_0x393d4f;return typeof _0x56bf43[_0xbfdbd7(0x317)]['id']==_0xbfdbd7(0x306)&&_0x23e04b&&_0x23e04b[_0xbfdbd7(0x293)](_0x56bf43[_0xbfdbd7(0x317)]['id'])>-0x1?N(N({},_0x56bf43),{'attrs':N(N({},_0x56bf43[_0xbfdbd7(0x317)]),{'id':_0x56bf43[_0xbfdbd7(0x317)]['id']+_0x59b1c5[_0xbfdbd7(0x2d9)]})}):_0x56bf43;})}):_0x4b306a;}function ii(){const _0x4b8a08=_0x5e318a;return Math[_0x4b8a08(0x399)]()[_0x4b8a08(0x2f7)](0x24)[_0x4b8a08(0x9f)](0x2,0x8);}Ge[_0x5e318a(0x23d)]=_0x5e318a(0x134);var ni={'tag':'svg','attrs':{'fill':_0x5e318a(0x257),'viewBox':_0x5e318a(0x2bf),'width':_0x5e318a(0x1a9),'height':_0x5e318a(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e318a(0x32a)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'stroke':_0x5e318a(0x3a0),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5e318a(0x431),'strokeLinejoin':_0x5e318a(0x431),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e318a(0xb3),'attrs':{'id':_0x5e318a(0xd3)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'fill':_0x5e318a(0x326),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5e318a(0xd3)]},Dt=y[_0x5e318a(0x192)](function(_0x4a7cc2,_0x30d2c5){const _0x483abe=_0x5e318a;return y[_0x483abe(0x17a)](Ge,Object['assign']({},_0x4a7cc2,{'id':_0x483abe(0x3e8),'ref':_0x30d2c5,'icon':ni}));});Dt[_0x5e318a(0x23d)]=_0x5e318a(0x351);var ri={'tag':'svg','attrs':{'fill':_0x5e318a(0x257),'viewBox':'0\x200\x2017\x2016','width':_0x5e318a(0x1a9),'height':_0x5e318a(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'stroke':_0x5e318a(0x3a0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5e318a(0x431),'strokeLinejoin':_0x5e318a(0x431),'strokeWidth':1.2}}]},{'tag':_0x5e318a(0xa9),'attrs':{},'children':[{'tag':_0x5e318a(0xb3),'attrs':{'id':_0x5e318a(0xc7)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'fill':'#fff','d':_0x5e318a(0xb2),'transform':_0x5e318a(0x2f1)}}]}]}],'defIds':[_0x5e318a(0xc7)]},Pt=y[_0x5e318a(0x192)](function(_0x1f18a6,_0x29fd6a){const _0x4a3b50=_0x5e318a;return y['createElement'](Ge,Object['assign']({},_0x1f18a6,{'id':_0x4a3b50(0x282),'ref':_0x29fd6a,'icon':ri}));});Pt['displayName']=_0x5e318a(0x2c6);const oi=_0x5e318a(0x151),ai=_0x5e318a(0x1cf),ci=_0x5e318a(0x473),li='univer-online',hi=_0x5e318a(0x291),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x413954){const _0x2b4a12=_0x5e318a;switch(_0x413954){case D[_0x2b4a12(0x396)]:return _0x2b4a12(0x29f);case D['CONFLICT']:return _0x2b4a12(0x2af);case D[_0x2b4a12(0x1c5)]:return'collabStatus.fetchMiss';case D[_0x2b4a12(0x146)]:return _0x2b4a12(0x125);case D[_0x2b4a12(0x157)]:case D[_0x2b4a12(0x12f)]:case D[_0x2b4a12(0x3da)]:return _0x2b4a12(0x2d8);case D[_0x2b4a12(0x460)]:return _0x2b4a12(0xdf);}}function Ut(_0x349c71){const _0xd04e1f=_0x5e318a,{status$:_0x1795d4}=_0x349c71,_0xd7de53=L[_0xd04e1f(0x437)](_0x1795d4,D[_0xd04e1f(0x146)]),_0x37c14b=o[_0xd04e1f(0x3d6)](o[_0xd04e1f(0x3b1)]),_0x230a5a=_0xd7de53!==D[_0xd04e1f(0x396)],_0x12cbd2=_0x37c14b['t'](_i(_0xd7de53)),_0xe7ad4e=kt(ne['onlineStatus'],{[ne['online']]:_0x230a5a,[ne[_0xd04e1f(0x40c)]]:!_0x230a5a}),_0x2c24a2=_0x230a5a?y['createElement'](Pt,null):y[_0xd04e1f(0x17a)](Dt,null);return y[_0xd04e1f(0x17a)]('div',{'className':_0xe7ad4e},y[_0xd04e1f(0x17a)]('div',{'className':ne[_0xd04e1f(0x3e7)]},_0x2c24a2),y[_0xd04e1f(0x17a)](_0xd04e1f(0x131),{'className':ne[_0xd04e1f(0x286)]},_0x12cbd2));}var ui=Object[_0x5e318a(0x33d)],di=Object['getOwnPropertyDescriptor'],Si=(_0x4158b9,_0x454185,_0x1570a4,_0x411262)=>{const _0x8b752f=_0x5e318a;for(var _0x53d05f=_0x411262>0x1?void 0x0:_0x411262?di(_0x454185,_0x1570a4):_0x454185,_0x5f0744=_0x4158b9[_0x8b752f(0x181)]-0x1,_0x446e2a;_0x5f0744>=0x0;_0x5f0744--)(_0x446e2a=_0x4158b9[_0x5f0744])&&(_0x53d05f=(_0x411262?_0x446e2a(_0x454185,_0x1570a4,_0x53d05f):_0x446e2a(_0x53d05f))||_0x53d05f);return _0x411262&&_0x53d05f&&ui(_0x454185,_0x1570a4,_0x53d05f),_0x53d05f;},he=(_0x318285,_0x31ea30)=>(_0x918e1,_0x645c64)=>_0x31ea30(_0x918e1,_0x645c64,_0x318285);exports[_0x5e318a(0x21f)]=class extends o[_0x5e318a(0x3cf)]{constructor(_0x3d0879,_0x325e60,_0xdbe8d8,_0x31a18b){const _0x57bc22=_0x5e318a;super(),u(this,_0x57bc22(0x44e),new v[(_0x57bc22(0x18a))](D[_0x57bc22(0x146)])),(this['_univerInstanceService']=_0x3d0879,this[_0x57bc22(0x1d4)]=_0x325e60,this[_0x57bc22(0xa4)]=_0xdbe8d8,this['_collaborationController']=_0x31a18b,this[_0x57bc22(0x18d)](),this['_initStatusListener']());}[_0x5e318a(0x18d)](){const _0x20b91e=_0x5e318a;this[_0x20b91e(0x16e)](this[_0x20b91e(0x1d4)][_0x20b91e(0x23a)](L[_0x20b91e(0x346)][_0x20b91e(0x356)],()=>o[_0x20b91e(0x2da)](vi({'status$':this[_0x20b91e(0x44e)][_0x20b91e(0x468)]()}),this[_0x20b91e(0xa4)])));}['_initStatusListener'](){const _0x4708d5=_0x5e318a;this[_0x4708d5(0x16e)](o['toDisposable'](this[_0x4708d5(0x1fd)][_0x4708d5(0x3ed)]['pipe'](v[_0x4708d5(0x1e6)](()=>{const _0x5bb187=_0x4708d5,_0x2226ed=this[_0x5bb187(0x1fd)][_0x5bb187(0x2d5)]();return _0x2226ed?this[_0x5bb187(0x1f9)][_0x5bb187(0x1ac)](_0x2226ed['getUnitId']()):v['of'](null);}),v[_0x4708d5(0x1e6)](_0x230061=>_0x230061?_0x230061[_0x4708d5(0x105)]:v['of'](D[_0x4708d5(0x146)])))[_0x4708d5(0x315)](_0x3bb6f9=>{const _0x4ab1a9=_0x4708d5;this['_status$'][_0x4ab1a9(0x318)](_0x3bb6f9);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o['OnLifecycle'](o['LifecycleStages'][_0x5e318a(0x1db)],exports[_0x5e318a(0x21f)]),he(0x0,o[_0x5e318a(0x1da)]),he(0x1,L[_0x5e318a(0x344)]),he(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),he(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x185)]))],exports['DesktopCollaborationStatusDisplayController']);function vi(_0x2b0536){const {status$:_0x52628b}=_0x2b0536;return function(){const _0x3f9cc4=_0x337d;return y[_0x3f9cc4(0x17a)](Ut,{'status$':_0x52628b});};}const Ye=o[_0x5e318a(0x3a2)](_0x5e318a(0x450));var mi=Object['defineProperty'],gi=Object['getOwnPropertyDescriptor'],fi=(_0x53679e,_0x14f30e,_0xda91c,_0x5ebbd7)=>{const _0xd995ec=_0x5e318a;for(var _0x57ceed=_0x5ebbd7>0x1?void 0x0:_0x5ebbd7?gi(_0x14f30e,_0xda91c):_0x14f30e,_0xdc55cc=_0x53679e[_0xd995ec(0x181)]-0x1,_0x206aa7;_0xdc55cc>=0x0;_0xdc55cc--)(_0x206aa7=_0x53679e[_0xdc55cc])&&(_0x57ceed=(_0x5ebbd7?_0x206aa7(_0x14f30e,_0xda91c,_0x57ceed):_0x206aa7(_0x57ceed))||_0x57ceed);return _0x5ebbd7&&_0x57ceed&&mi(_0x14f30e,_0xda91c,_0x57ceed),_0x57ceed;},z=(_0x461aee,_0x281530)=>(_0x2efac3,_0xb55c2d)=>_0x281530(_0x2efac3,_0xb55c2d,_0x461aee);exports[_0x5e318a(0x11c)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x1c84ed,_0x2473a6,_0x211649,_0x5a10d1,_0x5e43a1,_0x120730){const _0x4243f9=_0x5e318a;super(),this[_0x4243f9(0x2ee)]=_0x1c84ed,this[_0x4243f9(0x141)]=_0x2473a6,this[_0x4243f9(0x10f)]=_0x211649,this[_0x4243f9(0x11f)]=_0x5a10d1,this['_snapshotService']=_0x5e43a1,_0x120730?_0x120730==null||_0x120730[_0x4243f9(0x172)]()[_0x4243f9(0x102)](()=>this[_0x4243f9(0x24b)]()):(this[_0x4243f9(0x141)][_0x4243f9(0x1b0)]('[DataLoaderController]',_0x4243f9(0x3dd)),this[_0x4243f9(0x24b)]());}async[_0x5e318a(0x24b)](){const _0x2e3e69=_0x5e318a,_0x5eb519=this['_urlService']['getParam']('unit'),_0x4154e6=this[_0x2e3e69(0x2ee)]['getParam'](_0x2e3e69(0x1c1));if(!_0x5eb519||!_0x4154e6){this['_logService']['debug']('[DataLoaderController]',_0x2e3e69(0x242));return;}switch(Number(_0x4154e6)){case j[_0x2e3e69(0x1dd)]:{const _0x191ee1=await this[_0x2e3e69(0x384)](_0x5eb519);this[_0x2e3e69(0x46f)](_0x191ee1);break;}case j[_0x2e3e69(0x41b)]:{await this[_0x2e3e69(0x23e)](_0x5eb519);break;}default:{this[_0x2e3e69(0x141)][_0x2e3e69(0x45d)]('[DataLoaderController]',_0x2e3e69(0x14a));break;}}}async[_0x5e318a(0x46f)](_0x5f5cd9){const _0x18bcb2=_0x5e318a;await this[_0x18bcb2(0x206)](_0x5f5cd9),_0x5f5cd9[_0x18bcb2(0x369)][_0x18bcb2(0x133)](v[_0x18bcb2(0x36b)](this[_0x18bcb2(0xc8)]))['subscribe'](_0x3dacf7=>{const _0x280e47=_0x18bcb2;_0x3dacf7&&this[_0x280e47(0x35f)](_0x3dacf7);}),this['_urlService'][_0x18bcb2(0x3c3)][_0x18bcb2(0x133)](v[_0x18bcb2(0x36b)](this[_0x18bcb2(0xc8)]))[_0x18bcb2(0x315)](()=>this[_0x18bcb2(0x206)](_0x5f5cd9));}[_0x5e318a(0x35f)](_0x18501b,_0x79d096=!0x1){const _0x2616e6=_0x5e318a,_0xddc4d7=this[_0x2616e6(0x2ee)][_0x2616e6(0x29b)]('subunit');_0x18501b[_0x2616e6(0x347)]()!==_0xddc4d7&&this[_0x2616e6(0x2ee)][_0x2616e6(0x2ab)](_0x2616e6(0x12a),_0x18501b[_0x2616e6(0x347)](),_0x79d096);}async[_0x5e318a(0x206)](_0x472e96){const _0x5f1111=_0x5e318a;var _0xf179d;const _0x22d692=this[_0x5f1111(0x2ee)]['getParam'](_0x5f1111(0x12a));if(!_0x22d692||!_0x472e96[_0x5f1111(0x136)](_0x22d692)){const _0x2b2f87=_0x472e96[_0x5f1111(0x2c8)]()[0x0],_0x11a993=_0x472e96[_0x5f1111(0x136)](_0x2b2f87);if(!_0x11a993)return;this[_0x5f1111(0x35f)](_0x11a993,!0x0),await this['_commandService']['executeCommand'](p[_0x5f1111(0x142)]['id'],{'unitId':_0x472e96['getUnitId'](),'subUnitId':_0x2b2f87});return;}((_0xf179d=_0x472e96[_0x5f1111(0x246)]())==null?void 0x0:_0xf179d['getSheetId']())!==_0x22d692&&await this[_0x5f1111(0x10f)]['executeCommand'](p[_0x5f1111(0x142)]['id'],{'unitId':_0x472e96[_0x5f1111(0x40b)](),'subUnitId':_0x22d692});}async[_0x5e318a(0x384)](_0x13b238){const _0x272b99=_0x5e318a;let _0x387472=0x0;const _0x3abbdd=await this[_0x272b99(0x11f)][_0x272b99(0x2e3)](_0x13b238);return _0x3abbdd&&(_0x3abbdd[_0x272b99(0x1fc)]||_0x3abbdd[_0x272b99(0x31a)][_0x272b99(0x181)]!==0x0)&&(_0x387472=_0x3abbdd['rev']),_0x387472===0x0&&this[_0x272b99(0x141)]['debug']('[DataLoaderController]',_0x272b99(0x1d3)),this['_snapshotService'][_0x272b99(0x39f)](_0x13b238,_0x387472);}async[_0x5e318a(0x23e)](_0x3c3b00){const _0xec5a69=_0x5e318a;let _0x562080=0x0;const _0x2d09d8=await this['_localCacheService'][_0xec5a69(0x2e3)](_0x3c3b00);return _0x2d09d8&&(_0x2d09d8[_0xec5a69(0x1fc)]||_0x2d09d8['mutations'][_0xec5a69(0x181)]!==0x0)&&(_0x562080=_0x2d09d8[_0xec5a69(0x1f5)]),_0x562080===0x0&&this['_logService'][_0xec5a69(0x1b0)](_0xec5a69(0x2b9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xec5a69(0x2ce)]['loadDoc'](_0x3c3b00,_0x562080);}},exports[_0x5e318a(0x11c)]=fi([o[_0x5e318a(0x222)](o['LifecycleStages']['Starting'],exports[_0x5e318a(0x11c)]),z(0x0,Ye),z(0x1,o[_0x5e318a(0xfb)]),z(0x2,o[_0x5e318a(0x247)]),z(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),z(0x4,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2b7)])),z(0x5,o[_0x5e318a(0x15e)](Bt['IRemoteInstanceService']))],exports[_0x5e318a(0x11c)]);var Ii=Object[_0x5e318a(0x33d)],pi=Object[_0x5e318a(0x225)],Ei=(_0x17fcad,_0x3dadfb,_0x42cc72,_0x35fd7b)=>{const _0x10cc76=_0x5e318a;for(var _0x450bf3=_0x35fd7b>0x1?void 0x0:_0x35fd7b?pi(_0x3dadfb,_0x42cc72):_0x3dadfb,_0x16746b=_0x17fcad[_0x10cc76(0x181)]-0x1,_0x4f4612;_0x16746b>=0x0;_0x16746b--)(_0x4f4612=_0x17fcad[_0x16746b])&&(_0x450bf3=(_0x35fd7b?_0x4f4612(_0x3dadfb,_0x42cc72,_0x450bf3):_0x4f4612(_0x450bf3))||_0x450bf3);return _0x35fd7b&&_0x450bf3&&Ii(_0x3dadfb,_0x42cc72,_0x450bf3),_0x450bf3;},nt=(_0x1cbf32,_0xd71179)=>(_0x34a4b6,_0xbab09b)=>_0xd71179(_0x34a4b6,_0xbab09b,_0x1cbf32);const Ci='DEFAULT_FILE_NAME',bi='Univer';let ue=class extends o[_0x5e318a(0x3cf)]{constructor(_0x27ad69,_0x1a23c9){const _0x4a91dd=_0x5e318a;super(),this[_0x4a91dd(0x1fd)]=_0x27ad69,this[_0x4a91dd(0xc3)]=_0x1a23c9,this['_init']();}[_0x5e318a(0x24b)](){const _0x354040=_0x5e318a;this['disposeWithMe'](o[_0x354040(0x414)](this[_0x354040(0x1fd)][_0x354040(0x3ed)][_0x354040(0x315)](()=>{const _0x275bf0=_0x354040;var _0x27f4f5;const _0x3cec1b=this[_0x275bf0(0x1fd)][_0x275bf0(0x2d5)]();let _0x587650=(_0x27f4f5=this['_configService'][_0x275bf0(0x299)](Ci))!=null?_0x27f4f5:bi;_0x3cec1b instanceof o[_0x275bf0(0x334)]&&(_0x587650=_0x3cec1b[_0x275bf0(0x111)]),document[_0x275bf0(0x187)]=_0x587650;})));}};ue=Ei([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x364)],ue),nt(0x0,o[_0x5e318a(0x1da)]),nt(0x1,o[_0x5e318a(0x2aa)])],ue);var Ti=Object[_0x5e318a(0x33d)],Ri=Object[_0x5e318a(0x225)],Oi=(_0x248f18,_0x160c22,_0x2b5405,_0x566b7f)=>{const _0x1f9987=_0x5e318a;for(var _0x347cd8=_0x566b7f>0x1?void 0x0:_0x566b7f?Ri(_0x160c22,_0x2b5405):_0x160c22,_0x50bfe6=_0x248f18[_0x1f9987(0x181)]-0x1,_0x2c310f;_0x50bfe6>=0x0;_0x50bfe6--)(_0x2c310f=_0x248f18[_0x50bfe6])&&(_0x347cd8=(_0x566b7f?_0x2c310f(_0x160c22,_0x2b5405,_0x347cd8):_0x2c310f(_0x347cd8))||_0x347cd8);return _0x566b7f&&_0x347cd8&&Ti(_0x160c22,_0x2b5405,_0x347cd8),_0x347cd8;},rt=(_0x257c55,_0x392d22)=>(_0x4e09a5,_0x3a3569)=>_0x392d22(_0x4e09a5,_0x3a3569,_0x257c55);exports[_0x5e318a(0x126)]=class{constructor(_0x54f22c,_0x473eac){this['_configService']=_0x54f22c,this['_httpService']=_0x473eac;}async[_0x5e318a(0x273)](_0x57aa85,_0x37ef01){const _0x3371a5=_0x5e318a;var _0x5ea460;const {unitID:_0x5c6141,type:_0x23b5ef,revision:_0x119582=0x0}=_0x37ef01,_0x4ad394=this[_0x3371a5(0x3fa)]()+'/'+_0x23b5ef+'/unit/'+_0x5c6141+_0x3371a5(0x42e)+_0x119582,_0x3b1691=(await this[_0x3371a5(0x29a)][_0x3371a5(0x236)](_0x4ad394))[_0x3371a5(0x2b4)],_0x429b1c=(_0x5ea460=_0x3b1691[_0x3371a5(0x196)])==null?void 0x0:_0x5ea460[_0x3371a5(0x433)];if(_0x429b1c){const _0xb1972e=_0x429b1c==null?void 0x0:_0x429b1c['originalMeta'],_0x262b29=_[_0x3371a5(0x3d1)]['encode'](_[_0x3371a5(0x18c)](_0xb1972e));_0x429b1c['originalMeta']=_0x262b29,Object[_0x3371a5(0x10c)](_0x429b1c[_0x3371a5(0xdc)])[_0x3371a5(0x183)](([,_0x3d5bc9])=>{const _0x24d6cf=_0x3371a5,_0x136e12=_0x3d5bc9['originalMeta'],_0x4ee903=_['textEncoder'][_0x24d6cf(0x25d)](_[_0x24d6cf(0x18c)](_0x136e12));_0x3d5bc9['originalMeta']=_0x4ee903;});}return _0x3b1691;}async[_0x5e318a(0x400)](_0x5ee4f2,_0x1d0107){const _0x4e39d8=_0x5e318a,{unitID:_0x47dfcf,type:_0x51ed1b,blockID:_0x56369b}=_0x1d0107,_0x2191bc=this[_0x4e39d8(0x23c)]()+'/'+_0x51ed1b+_0x4e39d8(0xcf)+_0x47dfcf+'/block/'+_0x56369b;return(await this[_0x4e39d8(0x29a)]['get'](_0x2191bc))[_0x4e39d8(0x2b4)];}async[_0x5e318a(0x1f8)](_0xf0b466,_0x27b510){const _0x331dde=_0x5e318a,{unitID:_0x933c05,type:_0x521e92,from:_0x5c9f63,to:_0x3f8ccc}=_0x27b510,_0x2d62cd=this[_0x331dde(0x23c)]()+'/'+_0x521e92+_0x331dde(0xcf)+_0x933c05+_0x331dde(0x243)+_0x5c9f63+'&to='+_0x3f8ccc;return(await this['_httpService'][_0x331dde(0x236)](_0x2d62cd))[_0x331dde(0x2b4)];}[_0x5e318a(0x3fa)](){const _0x2c35b7=_0x5e318a;var _0x1d4280;return(_0x1d4280=this[_0x2c35b7(0xc3)][_0x2c35b7(0x299)](lt))!=null?_0x1d4280:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x4c884c=_0x5e318a;var _0x2e2e5b;return(_0x2e2e5b=this[_0x4c884c(0xc3)][_0x4c884c(0x299)](ct))!=null?_0x2e2e5b:Vt;}async['getResourcesRequest'](_0x5b6c83,_0x109b49){const _0x2b1123=_0x5e318a,_0x3f01b5='/universer-api/snapshot/'+_0x109b49[_0x2b1123(0x1c1)]+_0x2b1123(0xcf)+_0x109b49['unitID']+_0x2b1123(0x2e1);return(await this['_httpService'][_0x2b1123(0x236)](_0x3f01b5,{'params':{'resourceId':JSON['stringify'](_0x109b49[_0x2b1123(0x272)])}}))[_0x2b1123(0x2b4)];}[_0x5e318a(0x156)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5e4d2e=_0x5e318a;throw new Error(_0x5e4d2e(0xff));}[_0x5e318a(0xbf)](){const _0x690eab=_0x5e318a;throw new Error(_0x690eab(0xff));}},exports[_0x5e318a(0x126)]=Oi([rt(0x0,o[_0x5e318a(0x2aa)]),rt(0x1,o['Inject'](U[_0x5e318a(0x2a1)]))],exports[_0x5e318a(0x126)]);var Di=Object[_0x5e318a(0x33d)],Pi=Object[_0x5e318a(0x225)],Ui=(_0x374184,_0x415c47,_0x58695b,_0x24d0c5)=>{const _0x43412c=_0x5e318a;for(var _0xcbe80=_0x24d0c5>0x1?void 0x0:_0x24d0c5?Pi(_0x415c47,_0x58695b):_0x415c47,_0xa10a6=_0x374184[_0x43412c(0x181)]-0x1,_0x18fc98;_0xa10a6>=0x0;_0xa10a6--)(_0x18fc98=_0x374184[_0xa10a6])&&(_0xcbe80=(_0x24d0c5?_0x18fc98(_0x415c47,_0x58695b,_0xcbe80):_0x18fc98(_0xcbe80))||_0xcbe80);return _0x24d0c5&&_0xcbe80&&Di(_0x415c47,_0x58695b,_0xcbe80),_0xcbe80;},re=(_0x18535c,_0x550df4)=>(_0x486939,_0x15c4cb)=>_0x550df4(_0x486939,_0x15c4cb,_0x18535c);let $e=class extends o[_0x5e318a(0xcb)]{constructor(_0x5cb39a,_0x5c14d5,_0x366995,_0x92180d,_0x348294){super(_0x5cb39a,_0x5c14d5,_0x366995),this['_transformService']=_0x92180d,this['_logService']=_0x348294;}[_0x5e318a(0x447)](_0x46d2f1,_0x459a5d){const _0x3676bf=_0x5e318a,_0x248aa0=this[_0x3676bf(0x2dd)](_0x46d2f1);if(_0x248aa0)try{const _0x3b8a2d=this[_0x3676bf(0x41e)](_0x248aa0,_0x459a5d);this['_substituteUndoStack'](_0x46d2f1,_0x3b8a2d);}catch(_0x3f2a74){this[_0x3676bf(0x141)]['error'](_0x3676bf(0x36e),_0x3f2a74),this['_clearUndo'](_0x46d2f1);}const _0x3e926d=this[_0x3676bf(0x324)](_0x46d2f1);if(_0x3e926d)try{const _0x1daaf9=this[_0x3676bf(0x41e)](_0x3e926d,_0x459a5d);this[_0x3676bf(0x205)](_0x46d2f1,_0x1daaf9);}catch(_0x5204a7){this[_0x3676bf(0x141)][_0x3676bf(0x45d)](_0x5204a7),this['_clearRedo'](_0x46d2f1);}}[_0x5e318a(0x2d3)](_0x4dec5f){const _0x2e3945=_0x5e318a,_0x7ef763=this[_0x2e3945(0x2dd)](_0x4dec5f);_0x7ef763&&(_0x7ef763[_0x2e3945(0x181)]=0x0,this[_0x2e3945(0xbe)]());}[_0x5e318a(0x2d2)](_0x166d6b){const _0x1d7759=_0x5e318a,_0x30beec=this[_0x1d7759(0x324)](_0x166d6b);_0x30beec&&(_0x30beec[_0x1d7759(0x181)]=0x0,this[_0x1d7759(0xbe)]());}[_0x5e318a(0x38d)](_0x2218e0,_0x3c9735){const _0x3d5c68=_0x5e318a;this[_0x3d5c68(0x2b3)][_0x3d5c68(0x2e6)](_0x2218e0,_0x3c9735),this['_updateStatus']();}[_0x5e318a(0x205)](_0x2dccf1,_0x13219f){const _0x33d987=_0x5e318a;this['_redoStacks'][_0x33d987(0x2e6)](_0x2dccf1,_0x13219f),this[_0x33d987(0xbe)]();}['_transformStack'](_0x80477a,_0x484641){const _0x10b8ca=_0x5e318a,_0xabef4d=[];let _0x90e96f=_0x484641,_0x53666b=_0x484641;for(let _0x4750ce=_0x80477a[_0x10b8ca(0x181)]-0x1;_0x4750ce>=0x0;_0x4750ce--){const {unitID:_0x468c5a,undoMutations:_0x46f413,redoMutations:_0x2d8a1c}=_0x80477a[_0x4750ce],_0x1a6414=this[_0x10b8ca(0xca)][_0x10b8ca(0x319)](_0x90e96f,_0x46f413),_0x46a34c=this[_0x10b8ca(0xca)][_0x10b8ca(0x319)](_0x53666b,_0x2d8a1c);if(_['isTransformMutationsWithChangesetFailure'](_0x1a6414)||_['isTransformMutationsWithChangesetFailure'](_0x46a34c)){this[_0x10b8ca(0x141)][_0x10b8ca(0x45d)](_0x10b8ca(0x36e),_0x10b8ca(0x471),_0x1a6414,_0x46a34c);break;}_0x90e96f=_0x1a6414[_0x10b8ca(0x3ac)],_0x53666b=_0x46a34c[_0x10b8ca(0x3ac)],_0xabef4d[_0x10b8ca(0x276)]({'unitID':_0x468c5a,'undoMutations':_0x1a6414[_0x10b8ca(0xfe)],'redoMutations':_0x46a34c['m2Prime']});}return _0xabef4d[_0x10b8ca(0x13c)]();}};$e=Ui([re(0x0,o['IUniverInstanceService']),re(0x1,o[_0x5e318a(0x247)]),re(0x2,o['IContextService']),re(0x3,_[_0x5e318a(0xa0)]),re(0x4,o['ILogService'])],$e);class wt extends o[_0x5e318a(0xd1)]{constructor(){const _0x1abf0e=_0x5e318a;super(),u(this,_0x1abf0e(0x3c3)),this['urlChange$']=v[_0x1abf0e(0x375)](window,'popstate')[_0x1abf0e(0x133)](v[_0x1abf0e(0x36b)](this[_0x1abf0e(0xc8)]),v[_0x1abf0e(0x474)](0x1),v['mapTo'](void 0x0));}[_0x5e318a(0x2ab)](_0x4adf4f,_0x20e3eb,_0x585680=!0x1){const _0xf369e5=_0x5e318a,_0x248a15=new URL(window[_0xf369e5(0x143)]['href']);_0x248a15[_0xf369e5(0x217)][_0xf369e5(0x2e6)](_0x4adf4f,_0x20e3eb),_0x585680?window[_0xf369e5(0x2c5)]['replaceState']('','',_0x248a15[_0xf369e5(0x2f7)]()):window[_0xf369e5(0x2c5)][_0xf369e5(0x3b3)]('','',_0x248a15[_0xf369e5(0x2f7)]());}[_0x5e318a(0x380)](_0x158604,_0xef3db9=!0x1){const _0x2d8bdb=_0x5e318a,_0x250925=new URL(window[_0x2d8bdb(0x143)][_0x2d8bdb(0xbd)]);_0x250925[_0x2d8bdb(0x217)]['delete'](_0x158604),_0xef3db9?window[_0x2d8bdb(0x2c5)][_0x2d8bdb(0xab)]('','',_0x250925['toString']()):window[_0x2d8bdb(0x2c5)][_0x2d8bdb(0x3b3)]('','',_0x250925['toString']());}['getParam'](_0x1c9d05){const _0x3b2dcb=_0x5e318a;var _0x28888f;return(_0x28888f=new URL(window['location']['href'])[_0x3b2dcb(0x217)][_0x3b2dcb(0x236)](_0x1c9d05))!=null?_0x28888f:void 0x0;}}const Pe='collab-text-anchor-',wi=_0x5e318a(0xb0),Mi='collab-rect-range-',oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x56d392,_0x3cecf0,_0x58358e,_0xb4fe7f){const _0x53ea36=_0x5e318a;u(this,_0x53ea36(0x251),[]),u(this,_0x53ea36(0x9c),null),u(this,_0x53ea36(0x216),null),u(this,_0x53ea36(0x1d0),null),u(this,_0x53ea36(0x13b),null),u(this,_0x53ea36(0x39c),null),(this[_0x53ea36(0x20f)]=_0x56d392,this[_0x53ea36(0x428)]=_0x3cecf0,this[_0x53ea36(0x343)]=_0x58358e,this['_document']=_0xb4fe7f,this[_0x53ea36(0xea)]());}set['_hover'](_0x231827){const _0x108495=_0x5e318a;_0x231827?(this[_0x108495(0x1d0)]&&this[_0x108495(0x1d0)][_0x108495(0x123)](),this[_0x108495(0x216)]&&this['_textBubble'][_0x108495(0x2eb)]()):(this[_0x108495(0x1d0)]&&this[_0x108495(0x1d0)][_0x108495(0x2eb)](),this[_0x108495(0x216)]&&this[_0x108495(0x216)][_0x108495(0x123)]());}[_0x5e318a(0x17d)](){const _0x1192e4=_0x5e318a;for(const _0x3091e6 of this[_0x1192e4(0x251)])_0x3091e6[_0x1192e4(0x17d)]();this['_textBubble']&&this[_0x1192e4(0x216)][_0x1192e4(0x17d)](),this[_0x1192e4(0x1d0)]&&this[_0x1192e4(0x1d0)]['dispose'](),this[_0x1192e4(0x9c)]&&this[_0x1192e4(0x9c)][_0x1192e4(0x17d)](),this['_eventUnsubscribe']&&this[_0x1192e4(0x39c)]();}['_render'](){const _0x2e6f3e=_0x5e318a;var _0x257b1b;const {_docSkeleton:_0x3f204b,_document:_0x5abeff}=this,{color:_0x3fc901,name:_0x419f22,ranges:_0xdceff6}=this[_0x2e6f3e(0x20f)],_0x1dfec4=_0x5abeff['getOffsetConfig'](),{docsLeft:_0x52c08a,docsTop:_0x489297}=_0x1dfec4,_0xe96550=new b['NodePositionConvertToCursor'](_0x1dfec4,_0x3f204b);for(const {startOffset:_0xfadb5a,endOffset:_0x2832ee,collapsed:_0x53f322,isActive:_0x10d57e}of _0xdceff6){const _0x1a4383=_0x3f204b['findNodePositionByCharIndex'](_0xfadb5a),_0x3b4e56=_0x3f204b[_0x2e6f3e(0x333)](_0x2832ee);if(_0x10d57e){const {contentBoxPointGroup:_0x5df0d7}=_0xe96550['getRangePointData'](_0x3b4e56,_0x3b4e56);if(_0x5df0d7[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0xcc)](_0x3fc901,_0x5df0d7,_0x52c08a,_0x489297,_0x419f22),this[_0x2e6f3e(0x39c)]=this[_0x2e6f3e(0x155)]();}if(!_0x53f322&&_0x1a4383&&_0x3b4e56){if(b[_0x2e6f3e(0xb5)](_0x1a4383,_0x3b4e56)){const _0x3c0618=new b[(_0x2e6f3e(0x1e3))](_0x1dfec4,_0x3f204b),{pointGroup:_0x3d8f90}=(_0x257b1b=_0x3c0618[_0x2e6f3e(0x1c3)](_0x1a4383,_0x3b4e56))!=null?_0x257b1b:{};if(_0x3d8f90==null||_0x3d8f90[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0x261)](_0x3fc901,_0x3d8f90,_0x52c08a,_0x489297);}else{const {contentBoxPointGroup:_0x362239}=_0xe96550[_0x2e6f3e(0x1c3)](_0x1a4383,_0x3b4e56);if(_0x362239[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0x2ff)](_0x3fc901,_0x362239,_0x52c08a,_0x489297);}}}}[_0x5e318a(0xcc)](_0x2a95fa,_0x54660f,_0x575b0d,_0x2a6b3b,_0x25cbdf){const _0x389086=_0x5e318a,_0x31bce2=this['_getAnchorBounding'](_0x54660f),{left:_0x35ae8d,top:_0x19061d,height:_0x4708b4}=_0x31bce2,_0x18d1a7=this[_0x389086(0x96)](),_0x1e87d2=Ni/_0x18d1a7,_0x33380d=new b[(_0x389086(0x255))](Pe+o['Tools']['generateRandomId'](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b,'height':_0x4708b4,'width':yi,'fill':_0x2a95fa||b['getColor'](o[_0x389086(0x1ae)][_0x389086(0x2e7)],0x0),'strokeWidth':_0x1e87d2,'stroke':Li,'evented':!0x0});this['_anchor']=_0x33380d,this['_scene']['addObject'](_0x33380d,b[_0x389086(0x394)]);const _0x27025a=new b[(_0x389086(0x255))](Pe+o[_0x389086(0x3fb)]['generateRandomId'](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2a95fa||b[_0x389086(0x449)](o['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x2a95fa||b[_0x389086(0x449)](o[_0x389086(0x1ae)][_0x389086(0x2e7)],0x0),'evented':!0x1});this[_0x389086(0x1d0)]=_0x27025a,this[_0x389086(0x428)][_0x389086(0x424)](_0x27025a,b[_0x389086(0x394)]);const _0x5b69f6=new Ce(Pe+o[_0x389086(0x3fb)][_0x389086(0x3ce)](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b-le,'text':_0x25cbdf,'color':_0x2a95fa});this['_textBubble']=_0x5b69f6,this[_0x389086(0x428)][_0x389086(0x424)](_0x5b69f6,b[_0x389086(0x394)]),this[_0x389086(0x93)]=!0x1;}[_0x5e318a(0x155)](){const _0x2c3689=_0x5e318a,_0x58eb4a=this[_0x2c3689(0x9c)][_0x2c3689(0x3f4)][_0x2c3689(0x15b)](()=>{this['_hover']=!0x0;}),_0x1a0164=this[_0x2c3689(0x9c)]['onPointerLeave$'][_0x2c3689(0x15b)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x3eeafe=_0x337d;this[_0x3eeafe(0x93)]=!0x1;},0x7d0);});return()=>{const _0x489434=_0x2c3689;_0x58eb4a[_0x489434(0x195)](),_0x1a0164[_0x489434(0x195)]();};}[_0x5e318a(0x2ff)](_0xf98add,_0x202d80,_0x522f43,_0x266de6){const _0x557a99=_0x5e318a,_0x216a3e=new o[(_0x557a99(0x153))](_0xf98add)[_0x557a99(0x15f)](0.2)[_0x557a99(0x2be)](),_0x2a9ba3=new b['RegularPolygon'](wi+o[_0x557a99(0x3fb)][_0x557a99(0x3ce)](oe),{'pointsGroup':_0x202d80,'fill':_0x216a3e||b[_0x557a99(0x449)](o[_0x557a99(0x1ae)]['black'],0.2),'left':_0x522f43,'top':_0x266de6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x557a99(0x251)][_0x557a99(0x276)](_0x2a9ba3),this[_0x557a99(0x428)][_0x557a99(0x424)](_0x2a9ba3,b[_0x557a99(0x394)]);}['_drawRectRange'](_0x172271,_0x118a66,_0x2a1fc7,_0x48288b){const _0x35cf48=_0x5e318a,_0x3e0935=new o[(_0x35cf48(0x153))](_0x172271)['setAlpha'](0.2)['toRgbString'](),_0x6f3d6b=new b[(_0x35cf48(0x2d7))](Mi+o[_0x35cf48(0x3fb)][_0x35cf48(0x3ce)](oe),{'pointsGroup':_0x118a66,'fill':_0x3e0935||b['getColor'](o[_0x35cf48(0x1ae)][_0x35cf48(0x2e7)],0.2),'left':_0x2a1fc7,'top':_0x48288b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x6f3d6b),this[_0x35cf48(0x428)][_0x35cf48(0x424)](_0x6f3d6b,b[_0x35cf48(0x394)]);}['_getAnchorBounding'](_0x1f0dfc){const _0x1e4165=_0x1f0dfc[0x0],_0x51d0fa=_0x1e4165[0x0],_0x1f2cb5=_0x1e4165[0x2],{x:_0x18e9d7,y:_0x5ecd33}=_0x51d0fa,{x:_0x4148b6,y:_0x58d8a1}=_0x1f2cb5;return{'left':_0x18e9d7,'top':_0x5ecd33,'width':_0x4148b6-_0x18e9d7,'height':_0x58d8a1-_0x5ecd33};}[_0x5e318a(0x96)](){const _0x1932ee=_0x5e318a,{scaleX:_0xfa334a,scaleY:_0x47a1e0}=this[_0x1932ee(0x428)][_0x1932ee(0x455)]();return Math[_0x1932ee(0xae)](_0xfa334a,_0x47a1e0);}}var Ai=Object[_0x5e318a(0x33d)],ji=Object[_0x5e318a(0x225)],$i=(_0x773e98,_0x39bab,_0xb9239b,_0x541072)=>{for(var _0x896e02=_0x541072>0x1?void 0x0:_0x541072?ji(_0x39bab,_0xb9239b):_0x39bab,_0x446f1f=_0x773e98['length']-0x1,_0x3c07cf;_0x446f1f>=0x0;_0x446f1f--)(_0x3c07cf=_0x773e98[_0x446f1f])&&(_0x896e02=(_0x541072?_0x3c07cf(_0x39bab,_0xb9239b,_0x896e02):_0x3c07cf(_0x896e02))||_0x896e02);return _0x541072&&_0x896e02&&Ai(_0x39bab,_0xb9239b,_0x896e02),_0x896e02;},_e=(_0x3ba4b9,_0x1ee289)=>(_0x445593,_0xf8d273)=>_0x1ee289(_0x445593,_0xf8d273,_0x3ba4b9);let de=class extends o[_0x5e318a(0xd1)]{constructor(_0x15e109,_0x5a0bb8,_0x498e94,_0x25a607,_0x2e6b98){const _0x240d97=_0x5e318a;super(),u(this,_0x240d97(0x219),[]),u(this,_0x240d97(0x3f3),[]),(this[_0x240d97(0x2ed)]=_0x15e109,this[_0x240d97(0x18b)]=_0x5a0bb8,this[_0x240d97(0x3a3)]=_0x498e94,this[_0x240d97(0x10f)]=_0x25a607,this[_0x240d97(0x3d7)]=_0x2e6b98,this[_0x240d97(0x24b)]());}[_0x5e318a(0x24b)](){const _0x4ad7dc=_0x5e318a,_0x330c75=this[_0x4ad7dc(0x2ed)]['unitId'],_0xe44cbd=this[_0x4ad7dc(0x18b)];this[_0x4ad7dc(0x16e)](v[_0x4ad7dc(0x466)]([this[_0x4ad7dc(0x3a3)][_0x4ad7dc(0x212)](_0x330c75),this[_0x4ad7dc(0x3d7)][_0x4ad7dc(0x43e)]])[_0x4ad7dc(0x133)](E[_0x4ad7dc(0x3b9)](([_0x368988,_0x37dddd])=>({'skeleton':_0xe44cbd['getSkeleton'](),'cursors':[..._0x368988['values']()][_0x4ad7dc(0x27c)](_0x457816=>({..._0x457816,'color':_0x37dddd[_0x457816[_0x4ad7dc(0x469)]]}))})))[_0x4ad7dc(0x315)](_0x3baf82=>{const _0x1bb147=_0x4ad7dc;if(this[_0x1bb147(0x28f)](),_0x3baf82){const {skeleton:_0x8aa436,cursors:_0x20545a}=_0x3baf82;this[_0x1bb147(0x116)](_0x8aa436,_0x20545a);}})),this['_initResize'](),this[_0x4ad7dc(0xfa)]();}[_0x5e318a(0x116)](_0x1ce4f9,_0x2380b1){const _0x4d6602=_0x5e318a,{scene:_0x5a1cb0,mainComponent:_0x14685c}=this[_0x4d6602(0x2ed)],_0x550791=_0x2380b1['map'](_0x2c8e5c=>new ot(_0x2c8e5c,_0x5a1cb0,_0x1ce4f9,_0x14685c));this[_0x4d6602(0x219)]=_0x550791,this['_cursors']=_0x2380b1;}['_refreshCollabCursors'](){const _0x4f1f79=_0x5e318a;this[_0x4f1f79(0x28f)]();const {scene:_0x1910ee,mainComponent:_0x273402}=this[_0x4f1f79(0x2ed)],_0x568b59=this['_docSkeletonManagerService']['getSkeleton'](),_0x43a8af=this[_0x4f1f79(0x3f3)]['map'](_0x18efca=>new ot(_0x18efca,_0x1910ee,_0x568b59,_0x273402));this[_0x4f1f79(0x219)]=_0x43a8af;}[_0x5e318a(0x28f)](){const _0x5bd845=_0x5e318a;this['_cursorShapes'][_0x5bd845(0x183)](_0x41dae0=>_0x41dae0['dispose']()),this['_cursorShapes']=[];}[_0x5e318a(0xfa)](){const _0x2b980b=_0x5e318a,_0x4380ab=[P[_0x2b980b(0x2f3)]['id']];this[_0x2b980b(0x16e)](this[_0x2b980b(0x10f)][_0x2b980b(0x3ff)](_0x3a4458=>{const _0x4d121c=_0x2b980b;_0x4380ab['includes'](_0x3a4458['id'])&&_0x3a4458[_0x4d121c(0x119)]['unitId']===this[_0x4d121c(0x2ed)]['unitId']&&this[_0x4d121c(0x3a4)]();}));}[_0x5e318a(0x42b)](){const _0x501e53=_0x5e318a;this[_0x501e53(0x16e)](o[_0x501e53(0x1f6)](this['_context'][_0x501e53(0x2d4)][_0x501e53(0x178)])[_0x501e53(0x133)](E['filter'](_0x5c00b9=>_0x5c00b9[_0x501e53(0x1c1)]===b[_0x501e53(0x411)]['resize']),E['throttleTime'](0x10))[_0x501e53(0x315)](()=>{const _0x1a5d69=_0x501e53;this[_0x1a5d69(0x3a4)]();}));}};de=$i([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x2d0)],de),_e(0x1,o[_0x5e318a(0x23f)](P[_0x5e318a(0x120)])),_e(0x2,o['Inject'](Z)),_e(0x3,o[_0x5e318a(0x247)]),_e(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x320)]))],de);var xi=Object[_0x5e318a(0x33d)],Hi=Object[_0x5e318a(0x225)],ki=(_0x44bd08,_0x422b0e,_0x551822,_0xdfee37)=>{const _0x2772ff=_0x5e318a;for(var _0xb4cdd7=_0xdfee37>0x1?void 0x0:_0xdfee37?Hi(_0x422b0e,_0x551822):_0x422b0e,_0x197a26=_0x44bd08[_0x2772ff(0x181)]-0x1,_0x51fe8d;_0x197a26>=0x0;_0x197a26--)(_0x51fe8d=_0x44bd08[_0x197a26])&&(_0xb4cdd7=(_0xdfee37?_0x51fe8d(_0x422b0e,_0x551822,_0xb4cdd7):_0x51fe8d(_0xb4cdd7))||_0xb4cdd7);return _0xdfee37&&_0xb4cdd7&&xi(_0x422b0e,_0x551822,_0xb4cdd7),_0xb4cdd7;},we=(_0x13899c,_0x37a557)=>(_0xb3926,_0x22f27d)=>_0x37a557(_0xb3926,_0x22f27d,_0x13899c);let Ie=class{constructor(_0x32b68f,_0x5d4933,_0x21bcdf){const _0x40d3f9=_0x5e318a;this[_0x40d3f9(0xc3)]=_0x32b68f,this[_0x40d3f9(0x29a)]=_0x5d4933,this[_0x40d3f9(0x283)]=_0x21bcdf,this[_0x40d3f9(0x3cc)]();}[_0x5e318a(0x3cc)](){const _0x26f5f2=_0x5e318a;this[_0x26f5f2(0x29a)][_0x26f5f2(0x103)]({'priority':0x1,'interceptor':(_0x3797c8,_0x41ef80)=>_0x41ef80(_0x3797c8)[_0x26f5f2(0x133)](v[_0x26f5f2(0x21a)](async _0x372f51=>{const _0x991782=_0x26f5f2,_0x3d193f=_0x372f51;if(_0x3d193f[_0x991782(0x170)]===0x191&&window['confirm'](this[_0x991782(0x283)]['t'](_0x991782(0x201)))){const _0x548821=window['encodeURIComponent'](window[_0x991782(0x143)][_0x991782(0xbd)]);window['location'][_0x991782(0xbd)]=this[_0x991782(0x24d)]()+_0x991782(0xf7)+_0x548821;}return _0x3d193f;}))});}[_0x5e318a(0x24d)](){const _0x49294b=_0x5e318a;var _0x22f13d;return(_0x22f13d=this[_0x49294b(0xc3)][_0x49294b(0x299)](mt))!=null?_0x22f13d:Zt;}};Ie=ki([we(0x0,o[_0x5e318a(0x2aa)]),we(0x1,o[_0x5e318a(0x23f)](U['HTTPService'])),we(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)]))],Ie);var Bi=Object[_0x5e318a(0x33d)],Vi=Object[_0x5e318a(0x225)],Wi=(_0x3212a1,_0x3438f9,_0x573d3a,_0xde2077)=>{const _0xd91f56=_0x5e318a;for(var _0x1643d6=_0xde2077>0x1?void 0x0:_0xde2077?Vi(_0x3438f9,_0x573d3a):_0x3438f9,_0x17c376=_0x3212a1[_0xd91f56(0x181)]-0x1,_0xacbf9e;_0x17c376>=0x0;_0x17c376--)(_0xacbf9e=_0x3212a1[_0x17c376])&&(_0x1643d6=(_0xde2077?_0xacbf9e(_0x3438f9,_0x573d3a,_0x1643d6):_0xacbf9e(_0x1643d6))||_0x1643d6);return _0xde2077&&_0x1643d6&&Bi(_0x3438f9,_0x573d3a,_0x1643d6),_0x1643d6;},at=(_0x369c5f,_0x2f25ce)=>(_0x26f084,_0x2f3540)=>_0x2f25ce(_0x26f084,_0x2f3540,_0x369c5f);const Mt=_0x5e318a(0xc4),Fi=_0x5e318a(0x37d);exports[_0x5e318a(0xa6)]=class extends o[_0x5e318a(0x3cf)]{constructor(_0x34d0ee,_0x3fe745){const _0x23474c=_0x5e318a;super(),this[_0x23474c(0x421)]=_0x34d0ee,this[_0x23474c(0xc3)]=_0x3fe745,this['_initMergeInterceptor']();}[_0x5e318a(0x18e)](){const _0x28859f=_0x5e318a,_0xb1a96b=this;this[_0x28859f(0x16e)](this[_0x28859f(0x421)][_0x28859f(0x103)]({'priority':0x3e7,'interceptor':U[_0x28859f(0xe4)]({'isMatch'(_0x2fb0f9){const _0xb8249=_0x28859f;var _0x4a8cf0;if(_0x2fb0f9[_0xb8249(0x179)]===_0xb8249(0x39b)&&((_0x4a8cf0=_0x2fb0f9[_0xb8249(0x28a)])!=null&&_0x4a8cf0['body'])){const {objectID:_0x5c3321,objectType:_0x3eecc0}=_0x2fb0f9[_0xb8249(0x28a)][_0xb8249(0x2b4)]||{};if(!_0x5c3321||_0x3eecc0===void 0x0)return!0x1;const _0x48f735=_0xb1a96b['_getAPIPrefixPath']()+'/'+_0x3eecc0+_0xb8249(0x1f0)+_0x5c3321+_0xb8249(0x357);if(_0x2fb0f9['url']===_0x48f735)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3a08df){const _0x31acfe=_0x28859f;var _0x3458b5;return(_0x3458b5=_0x3a08df[_0x31acfe(0x28a)])==null?void 0x0:_0x3458b5[_0x31acfe(0x2b4)];},'mergeParamsToRequest'(_0xfc6027,_0x5800fe){const _0x41bb81=_0x28859f,_0x27679b=_0xb1a96b[_0x41bb81(0x31e)]()+_0x41bb81(0x137),_0x2585f8=_0xfc6027[_0x41bb81(0x2bc)]((_0x440db7,_0x1f2a2a)=>{const _0x25b603=_0x41bb81,{unitID:_0x2ec0e6,objectID:_0x26453c,objectType:_0x19ee27,actions:_0x2e179f}=_0x1f2a2a;return _0x440db7[_0x2ec0e6]||(_0x440db7[_0x2ec0e6]={}),_0x440db7[_0x2ec0e6][_0x26453c]||(_0x440db7[_0x2ec0e6][_0x26453c]={'objectID':_0x26453c,'objectType':_0x19ee27,'actions':[]}),_0x440db7[_0x2ec0e6][_0x26453c][_0x25b603(0x1d2)][_0x25b603(0x276)](..._0x2e179f),_0x440db7;},{}),_0x20a89f=[];for(const _0xf1dfb0 in _0x2585f8)for(const _0x5788fc in _0x2585f8[_0xf1dfb0]){const {actions:_0x11f3e9,objectType:_0x4a6d88}=_0x2585f8[_0xf1dfb0][_0x5788fc],_0x269901=[...new Set(_0x11f3e9)];_0x20a89f[_0x41bb81(0x276)]({'unitID':_0xf1dfb0,'objectID':_0x5788fc,'objectType':_0x4a6d88,'actions':_0x269901});}return new U[(_0x41bb81(0x1eb))](_0x41bb81(0x39b),_0x27679b,{'headers':_0x5800fe[_0x41bb81(0x220)],'withCredentials':_0x5800fe[_0x41bb81(0x3ef)],'responseType':_0x5800fe['responseType'],'body':{'requests':_0x20a89f}});}},{'distributeResult'(_0x3014ce,_0x3e47d3){const _0x3189ff=_0x28859f,{objectActions:_0x576f9a}=_0x3014ce;return _0x3e47d3[_0x3189ff(0x3b9)](_0x3db5c7=>{const _0x272c84=_0x3189ff,{unitID:_0x531ed1,objectID:_0xc2410e,actions:_0x575cb6}=_0x3db5c7,_0x9d1422=_0x576f9a[_0x272c84(0x2e9)](_0x4a9bd8=>_0x4a9bd8[_0x272c84(0x312)]===_0x531ed1&&_0x4a9bd8[_0x272c84(0x3f1)]===_0xc2410e),_0x2f778e=_0x575cb6[_0x272c84(0x3b9)](_0x2722f0=>_0x9d1422==null?void 0x0:_0x9d1422[_0x272c84(0x1d2)]['find'](_0x496842=>_0x496842[_0x272c84(0x1cd)]===_0x2722f0))['filter'](_0x1e1f7e=>!!_0x1e1f7e);return{'config':_0x3db5c7,'result':{'actions':_0x2f778e,'error':_0x3014ce[_0x272c84(0x45d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4a4cce=_0x5e318a;var _0x2e0437;return(_0x2e0437=this[_0x4a4cce(0xc3)][_0x4a4cce(0x299)](Mt))!=null?_0x2e0437:Fi;}async['create'](_0x3a2a5c){const _0x28cc68=_0x5e318a,_0x4c8d6f=this[_0x28cc68(0x31e)]()+'/'+_0x3a2a5c['objectType']+'/object';return(await this[_0x28cc68(0x421)][_0x28cc68(0x22a)](_0x4c8d6f,{'body':_0x3a2a5c}))[_0x28cc68(0x2b4)]['objectID']||'';}async['list'](_0x4e22e9){const _0x4c1e33=_0x5e318a,_0x12ed51=this[_0x4c1e33(0x31e)]()+_0x4c1e33(0x1a5);return(await this[_0x4c1e33(0x421)]['post'](_0x12ed51,{'body':_0x4e22e9}))['body'][_0x4c1e33(0x25b)];}async['update'](_0x4b893b){const _0x4f5d09=_0x5e318a,_0x23c2d8=this['_getAPIPrefixPath']()+'/'+_0x4b893b[_0x4f5d09(0x22e)]+_0x4f5d09(0x1f0)+_0x4b893b[_0x4f5d09(0x3f1)];await this['_HTTPService']['put'](_0x23c2d8,{'body':_0x4b893b});}async['allowed'](_0x3a51a2){const _0x3dc01a=_0x5e318a,_0x55e8f5=this[_0x3dc01a(0x31e)]()+'/'+_0x3a51a2[_0x3dc01a(0x22e)]+_0x3dc01a(0x1f0)+_0x3a51a2['objectID']+_0x3dc01a(0x357);return(await this[_0x3dc01a(0x421)][_0x3dc01a(0x22a)](_0x55e8f5,{'body':_0x3a51a2}))[_0x3dc01a(0x2b4)]['actions'];}async[_0x5e318a(0x32b)](_0x113b0b){const _0x2485ec=_0x5e318a,_0x13d700=this[_0x2485ec(0x31e)]()+_0x2485ec(0x137);return(await this[_0x2485ec(0x421)][_0x2485ec(0x22a)](_0x13d700,{'body':{'requests':_0x113b0b}}))[_0x2485ec(0x2b4)][_0x2485ec(0xc2)];}async['listRoles'](_0x128fba){const _0x554e9e=_0x5e318a,_0x4a42af=this[_0x554e9e(0x31e)]()+'/'+_0x128fba[_0x554e9e(0x22e)]+_0x554e9e(0x349),_0x30b72e=await this[_0x554e9e(0x421)]['post'](_0x4a42af,{'body':_0x128fba});return{'roles':_0x30b72e[_0x554e9e(0x2b4)][_0x554e9e(0x2b5)],'actions':_0x30b72e[_0x554e9e(0x2b4)][_0x554e9e(0x1d2)]};}async[_0x5e318a(0x352)](_0x416d9f){const _0x15a9eb=_0x5e318a,_0x31a636=this[_0x15a9eb(0x31e)]()+_0x15a9eb(0x1c2);await this[_0x15a9eb(0x421)][_0x15a9eb(0x33f)](_0x31a636,{'params':{'collaboratorID':_0x416d9f[_0x15a9eb(0x393)],'objectID':_0x416d9f[_0x15a9eb(0x3f1)],'unitID':_0x416d9f[_0x15a9eb(0x312)]}});}async[_0x5e318a(0x21b)](_0x5e51eb){const _0x469495=_0x5e318a,_0x54670d=this[_0x469495(0x31e)]()+_0x469495(0x1c2);await this[_0x469495(0x421)]['patch'](_0x54670d,{'body':_0x5e51eb});}async[_0x5e318a(0x287)](_0x7a3055){const _0x37494f=_0x5e318a,_0xa5e626=this['_getAPIPrefixPath']()+_0x37494f(0x1c2);await this[_0x37494f(0x421)][_0x37494f(0x22a)](_0xa5e626,{'body':_0x7a3055});}async[_0x5e318a(0x2a3)](_0x1beb9e){const _0x38e9f3=_0x5e318a,_0x4ae337=this[_0x38e9f3(0x31e)]()+_0x38e9f3(0x1c2);return(await this[_0x38e9f3(0x421)][_0x38e9f3(0x236)](_0x4ae337,{'params':{'objectID':_0x1beb9e['objectID'],'unitID':_0x1beb9e['unitID']}}))[_0x38e9f3(0x2b4)][_0x38e9f3(0x3dc)];}async[_0x5e318a(0x2c9)](_0x165818){const _0xd37d06=_0x5e318a,_0x482805=this[_0xd37d06(0x31e)]()+_0xd37d06(0x1c2);await this[_0xd37d06(0x421)][_0xd37d06(0x292)](_0x482805,{'body':_0x165818});}},exports[_0x5e318a(0xa6)]=Wi([at(0x0,o['Inject'](U[_0x5e318a(0x2a1)])),at(0x1,o['Inject'](o[_0x5e318a(0x2aa)]))],exports[_0x5e318a(0xa6)]);var Gi=Object[_0x5e318a(0x33d)],Yi=Object['getOwnPropertyDescriptor'],Ki=(_0x14d879,_0xebaff7,_0x16d4d4,_0x5bf764)=>{const _0x5944bf=_0x5e318a;for(var _0x440447=_0x5bf764>0x1?void 0x0:_0x5bf764?Yi(_0xebaff7,_0x16d4d4):_0xebaff7,_0x204c77=_0x14d879[_0x5944bf(0x181)]-0x1,_0x5297c8;_0x204c77>=0x0;_0x204c77--)(_0x5297c8=_0x14d879[_0x204c77])&&(_0x440447=(_0x5bf764?_0x5297c8(_0xebaff7,_0x16d4d4,_0x440447):_0x5297c8(_0x440447))||_0x440447);return _0x5bf764&&_0x440447&&Gi(_0xebaff7,_0x16d4d4,_0x440447),_0x440447;},Me=(_0x2941f7,_0x31af42)=>(_0xd9be74,_0x3193dc)=>_0x31af42(_0xd9be74,_0x3193dc,_0x2941f7);const Xi=[_0x5e318a(0x1ab),_0x5e318a(0x231),_0x5e318a(0x325),_0x5e318a(0x227),_0x5e318a(0x27d)],qi=0x5*0x400*0x400,zi=_0x5e318a(0x250),Ji=_0x5e318a(0x173),Zi=_0x5e318a(0x213),Qi=_0x5e318a(0x280);exports[_0x5e318a(0x331)]=class{constructor(_0xfc7e57,_0x35a663,_0x5059f8){const _0x116b64=_0x5e318a;u(this,_0x116b64(0x390),0x0),u(this,_0x116b64(0x3d3),new v['Subject']()),u(this,_0x116b64(0x335),this[_0x116b64(0x3d3)]),u(this,'_imageSourceCache',new Map()),(this[_0x116b64(0x29a)]=_0xfc7e57,this[_0x116b64(0xc3)]=_0x35a663,this[_0x116b64(0x1fd)]=_0x5059f8);}[_0x5e318a(0x43f)](_0x3642d9){const _0x2e91f6=_0x5e318a;this[_0x2e91f6(0x390)]=_0x3642d9,this[_0x2e91f6(0x3d3)][_0x2e91f6(0x318)](_0x3642d9);}[_0x5e318a(0x409)](_0x1b0732,_0xd9f52a){const _0x4564a1=_0x5e318a;if(_0xd9f52a===A[_0x4564a1(0x19e)]['BASE64']){const _0x2c3e2b=new Image();return _0x2c3e2b['src']=_0x1b0732,_0x2c3e2b;}return this['_imageSourceCache']['get'](_0x1b0732);}[_0x5e318a(0x254)](_0x2a517d,_0x480629,_0x10a2b3){const _0x5efc6c=_0x5e318a;_0x480629===A[_0x5efc6c(0x19e)]['BASE64']||_0x10a2b3==null||this[_0x5efc6c(0x2ef)][_0x5efc6c(0x2e6)](_0x2a517d,_0x10a2b3);}async[_0x5e318a(0x2cc)](_0xf57000){const _0xc3a0a8=_0x5e318a;try{const _0x550d19=this['_replaceFileID'](this['_getSignURL'](),''+_0xf57000),_0x193a41=(await this['_httpService']['get'](_0x550d19))[_0xc3a0a8(0x2b4)];return _0x193a41[_0xc3a0a8(0x45d)]&&_0x193a41[_0xc3a0a8(0x45d)][_0xc3a0a8(0x46a)]===gt['OK']?Promise['resolve'](_0x193a41[_0xc3a0a8(0x3b4)]):Promise[_0xc3a0a8(0x453)](_0x193a41[_0xc3a0a8(0x45d)]);}catch(_0x56ca8e){return Promise[_0xc3a0a8(0x453)](_0x56ca8e);}}async[_0x5e318a(0x124)](_0x4755d0){const _0x3b6c75=_0x5e318a;let _0x47451f='';if(!Xi[_0x3b6c75(0x1bb)](_0x4755d0[_0x3b6c75(0x1c1)]))return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A['ImageUploadStatusType'][_0x3b6c75(0x355)]));if(_0x4755d0['size']>qi)return this[_0x3b6c75(0x97)](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)][_0x3b6c75(0x12d)]));try{const _0xf0ba0c=new FormData();_0xf0ba0c[_0x3b6c75(0x26d)]('file',_0x4755d0);const _0x282d4e=this['_univerInstanceService']['getFocusedUnit'](),_0x6031e=_0x282d4e==null?void 0x0:_0x282d4e[_0x3b6c75(0x40b)]();if(!_0x6031e)throw new Error('unitId\x20is\x20not\x20found');const _0x5ef636=this[_0x3b6c75(0x3bd)]()+_0x3b6c75(0x44f)+_0x4755d0['size']['toString']()+_0x3b6c75(0x22d)+ft[_0x3b6c75(0x3de)]+_0x3b6c75(0x354)+encodeURIComponent(_0x6031e),_0x1e3537=await(await fetch(_0x5ef636,{'method':_0x3b6c75(0x39b),'body':_0xf0ba0c}))[_0x3b6c75(0x190)]();if(typeof _0x1e3537[_0x3b6c75(0x2cd)]!=_0x3b6c75(0x306))return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)]['ERROR_IMAGE']));_0x47451f=_0x1e3537[_0x3b6c75(0x2cd)];}catch{return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)][_0x3b6c75(0x3e1)]));}return new Promise((_0x23f60f,_0x18f0fe)=>{const _0x144337=_0x3b6c75,_0x4aaf80=new FileReader();_0x4aaf80[_0x144337(0x370)](_0x4755d0),_0x4aaf80[_0x144337(0x42f)]=_0x341fde=>{const _0x13774f=_0x144337;var _0x467d41;const _0x5756d8=(_0x467d41=_0x341fde[_0x13774f(0x27e)])==null?void 0x0:_0x467d41[_0x13774f(0x27f)];if(_0x5756d8==null){this[_0x13774f(0x97)](),_0x18f0fe(new Error(A[_0x13774f(0x422)][_0x13774f(0x3e1)]));return;}const _0x5737ea=o[_0x13774f(0x3fb)]['generateRandomId'](0x6);_0x23f60f({'imageId':_0x5737ea,'imageSourceType':A[_0x13774f(0x19e)][_0x13774f(0x135)],'source':_0x47451f,'base64Cache':_0x5756d8,'status':A[_0x13774f(0x422)]['SUCCUSS']}),this[_0x13774f(0x97)]();};});}[_0x5e318a(0x3bd)](){var _0xa41a56;return(_0xa41a56=this['_configService']['getConfig'](zi))!=null?_0xa41a56:Ji;}[_0x5e318a(0x3bc)](){const _0x3b7946=_0x5e318a;var _0x5cd63c;return(_0x5cd63c=this['_configService'][_0x3b7946(0x299)](Zi))!=null?_0x5cd63c:Qi;}[_0x5e318a(0x3ea)](_0x566bab,_0x55737b){const _0x178fa9=_0x5e318a;return _0x566bab['replace'](_0x178fa9(0x17c),_0x55737b);}['_decreaseWaiting'](){const _0x53ab40=_0x5e318a;this[_0x53ab40(0x390)]-=0x1,this[_0x53ab40(0x3d3)][_0x53ab40(0x318)](this[_0x53ab40(0x390)]);}},exports[_0x5e318a(0x331)]=Ki([Me(0x0,o['Inject'](U[_0x5e318a(0x2a1)])),Me(0x1,o['IConfigService']),Me(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x1da)]))],exports[_0x5e318a(0x331)]);var en=Object[_0x5e318a(0x33d)],tn=Object[_0x5e318a(0x225)],sn=(_0x554e85,_0x498ae7,_0xf67974,_0x41e901)=>{const _0x3b88ad=_0x5e318a;for(var _0x487020=_0x41e901>0x1?void 0x0:_0x41e901?tn(_0x498ae7,_0xf67974):_0x498ae7,_0x759e08=_0x554e85[_0x3b88ad(0x181)]-0x1,_0x16e188;_0x759e08>=0x0;_0x759e08--)(_0x16e188=_0x554e85[_0x759e08])&&(_0x487020=(_0x41e901?_0x16e188(_0x498ae7,_0xf67974,_0x487020):_0x16e188(_0x487020))||_0x487020);return _0x41e901&&_0x487020&&en(_0x498ae7,_0xf67974,_0x487020),_0x487020;},ae=(_0x287854,_0x315a9d)=>(_0x1e2bdf,_0x568a3e)=>_0x315a9d(_0x1e2bdf,_0x568a3e,_0x287854);let Se=class extends o[_0x5e318a(0xd1)]{constructor(_0x2fec2b,_0x1f56cc,_0x38d13c,_0x351bb4,_0x5b86b2){const _0x258d3b=_0x5e318a;super(),this[_0x258d3b(0xa4)]=_0x2fec2b,this[_0x258d3b(0x1fd)]=_0x1f56cc,this[_0x258d3b(0x434)]=_0x38d13c,this['_collaborationSessionService']=_0x351bb4,this['_localeService']=_0x5b86b2,this[_0x258d3b(0xaa)](),this['_initCloseConn']();}[_0x5e318a(0x13d)](){const _0x8ec3df=_0x5e318a,_0x331003=async _0x19104c=>{const _0x3e7849=_0x337d;(await this[_0x3e7849(0x368)][_0x3e7849(0x1b1)](_0x19104c))['event$'][_0x3e7849(0x133)](E[_0x3e7849(0x218)](_0x24af69=>_0x24af69[_0x3e7849(0x198)]===_[_0x3e7849(0x1c7)][_0x3e7849(0x26b)]),E[_0x3e7849(0x36b)](this[_0x3e7849(0xc8)]))['subscribe'](_0xb0bb89=>{const _0x554484=_0x3e7849,_0x2c0be2=_0xb0bb89,{reason:_0x275dd5}=_0x2c0be2[_0x554484(0x42c)];this[_0x554484(0xa4)][_0x554484(0x236)](L[_0x554484(0x22b)])[_0x554484(0x2eb)]({'type':Q[_0x554484(0x2f4)][_0x554484(0x3b2)],'content':this[_0x554484(0x2a5)]['t'](_0x554484(0x297))+'('+_0x275dd5+')'}),this[_0x554484(0x434)][_0x554484(0x2e4)](new p['WorkbookEditablePermission'](_0x19104c)['id'],!0x1),this[_0x554484(0x368)][_0x554484(0x290)](_0x19104c);});};v[_0x8ec3df(0x269)](this[_0x8ec3df(0x1fd)]['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x8ec3df(0x332)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x8ec3df(0x3b9)](_0x3eecb8=>_0x3eecb8[_0x8ec3df(0x40b)]()),E[_0x8ec3df(0x218)](_0x194e19=>!o[_0x8ec3df(0x1aa)](_0x194e19)),E[_0x8ec3df(0x36b)](this[_0x8ec3df(0xc8)]))['subscribe'](_0x5cab0c=>{_0x331003(_0x5cab0c);});}[_0x5e318a(0xaa)](){const _0x484d0b=_0x5e318a,_0x3ff8ae=async _0x2ca484=>{const _0x18c664=_0x337d;(await this[_0x18c664(0x368)][_0x18c664(0x1b1)](_0x2ca484))[_0x18c664(0x109)]['pipe'](E[_0x18c664(0x218)](_0x3d2a59=>_0x3d2a59[_0x18c664(0x198)]===_['CollaborationEvent'][_0x18c664(0x95)]),E['takeUntil'](this[_0x18c664(0xc8)]))['subscribe'](_0x566e99=>{const _0x3d5dec=_0x18c664,_0x2479bf=_0x566e99,{objectId:_0x5a69c6}=_0x2479bf[_0x3d5dec(0x42c)],_0x1c35f6=this[_0x3d5dec(0xa4)][_0x3d5dec(0x236)](J['SheetPermissionInitController']);_0x5a69c6===_0x2ca484?_0x1c35f6[_0x3d5dec(0x9e)](_0x2ca484):_0x1c35f6[_0x3d5dec(0x2d6)](_0x2ca484,_0x5a69c6);});};v['merge'](this[_0x484d0b(0x1fd)][_0x484d0b(0x332)](o[_0x484d0b(0xbb)]['UNIVER_SHEET']),this[_0x484d0b(0x1fd)][_0x484d0b(0x332)](o[_0x484d0b(0xbb)][_0x484d0b(0x41b)]))[_0x484d0b(0x133)](E[_0x484d0b(0x3b9)](_0x3f1e4e=>_0x3f1e4e[_0x484d0b(0x40b)]()),E['filter'](_0x557199=>!o['isInternalEditorID'](_0x557199)),E[_0x484d0b(0x36b)](this[_0x484d0b(0xc8)]))[_0x484d0b(0x315)](_0x6dfbf=>{_0x3ff8ae(_0x6dfbf);});}};Se=sn([o[_0x5e318a(0x222)](o['LifecycleStages'][_0x5e318a(0x1db)],Se),ae(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),ae(0x1,o[_0x5e318a(0x1da)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)])),ae(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)]))],Se);var yt=Object[_0x5e318a(0x33d)],nn=Object[_0x5e318a(0x225)],rn=(_0x5df55e,_0x5eb302,_0x423d7e)=>_0x5eb302 in _0x5df55e?yt(_0x5df55e,_0x5eb302,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x423d7e}):_0x5df55e[_0x5eb302]=_0x423d7e,on=(_0x34b8bd,_0x4674c8,_0x48262c,_0x1f6b67)=>{const _0x2c8db5=_0x5e318a;for(var _0x182209=_0x1f6b67>0x1?void 0x0:_0x1f6b67?nn(_0x4674c8,_0x48262c):_0x4674c8,_0x2fc495=_0x34b8bd[_0x2c8db5(0x181)]-0x1,_0x3ffedb;_0x2fc495>=0x0;_0x2fc495--)(_0x3ffedb=_0x34b8bd[_0x2fc495])&&(_0x182209=(_0x1f6b67?_0x3ffedb(_0x4674c8,_0x48262c,_0x182209):_0x3ffedb(_0x182209))||_0x182209);return _0x1f6b67&&_0x182209&&yt(_0x4674c8,_0x48262c,_0x182209),_0x182209;},ye=(_0x442d71,_0x47fa8c)=>(_0x1b0dd8,_0x28c84c)=>_0x47fa8c(_0x1b0dd8,_0x28c84c,_0x442d71),an=(_0x3fb64a,_0x186cc4,_0x10275a)=>rn(_0x3fb64a,_0x186cc4+'',_0x10275a);const cn=_0x5e318a(0x24a);exports['UniverCollaborationClientPlugin']=class extends o['Plugin']{constructor(_0x5e6d34,_0x2e4928,_0x2f15ce,_0x55beec){const _0x195aa0=_0x5e318a;super(),this[_0x195aa0(0xf8)]=_0x5e6d34,this['_logService']=_0x2e4928,this[_0x195aa0(0x258)]=_0x2f15ce,this[_0x195aa0(0xa4)]=_0x55beec;}['onStarting'](){const _0x5177e4=_0x5e318a;this[_0x5177e4(0x2b1)]();}[_0x5e318a(0x194)](){const _0x5b1d30=_0x5e318a;this[_0x5b1d30(0x2bb)]();}[_0x5e318a(0x2b1)](){const _0xd0da26=_0x5e318a;var _0x2128ad,_0x1cc046,_0x5300f5,_0x7c19f6;this[_0xd0da26(0xa4)][_0xd0da26(0x21e)](o[_0xd0da26(0x36d)])&&this['_logService']['error'](_0xd0da26(0x296),_0xd0da26(0xeb));let _0x526a19=[[o[_0xd0da26(0x36d)],{'useClass':$e}],[exports[_0xd0da26(0x2f9)]],[Fe],[U[_0xd0da26(0x2a1)]],[Ye,{'useClass':wt}],[Y],[exports[_0xd0da26(0x199)]],[U[_0xd0da26(0xc9)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x1cc046=(_0x2128ad=this['_config'])==null?void 0x0:_0x2128ad[_0xd0da26(0x221)])!=null?_0x1cc046:exports[_0xd0da26(0x46c)]}],[U[_0xd0da26(0x152)],{'useClass':U[_0xd0da26(0xc6)]}],[_[_0xd0da26(0x43a)],{'useClass':exports[_0xd0da26(0x126)]}],[o[_0xd0da26(0x472)],{'useClass':exports[_0xd0da26(0xa6)]}],[A[_0xd0da26(0x20b)],{'useClass':exports[_0xd0da26(0x331)]}],[exports[_0xd0da26(0x185)]],[exports[_0xd0da26(0x11c)]],[exports[_0xd0da26(0x21f)]],[ue],[Z]];(_0x5300f5=this['_config'])!=null&&_0x5300f5['enableSingleActiveInstanceLock']&&_0x526a19[_0xd0da26(0x276)]([pe,{'useClass':us}]),_0x526a19=o[_0xd0da26(0x129)](_0x526a19,(_0x7c19f6=this[_0xd0da26(0xf8)])==null?void 0x0:_0x7c19f6['override']),_0x526a19[_0xd0da26(0x183)](_0x4faccf=>this[_0xd0da26(0xa4)]['add'](_0x4faccf)),this['_initModules']();}[_0x5e318a(0x2bb)](){const _0x19c850=_0x5e318a;this['disposeWithMe'](this[_0x19c850(0x258)][_0x19c850(0x1d1)](o[_0x19c850(0xbb)]['UNIVER_DOC'],[de])),this[_0x19c850(0x16e)](this[_0x19c850(0x258)][_0x19c850(0x1d1)](o[_0x19c850(0xbb)][_0x19c850(0x1dd)],[je]));}['_initModules'](){const _0x54b6ea=_0x5e318a;var _0x1de8ff,_0x4f6ee1;this[_0x54b6ea(0xa4)]['get'](U[_0x54b6ea(0x2a1)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x1de8ff=this[_0x54b6ea(0xf8)])!=null&&_0x1de8ff[_0x54b6ea(0x304)]||this[_0x54b6ea(0xa4)]['get'](exports[_0x54b6ea(0x199)])[_0x54b6ea(0x41c)](),(_0x4f6ee1=this[_0x54b6ea(0xf8)])!=null&&_0x4f6ee1[_0x54b6ea(0x127)]&&this['_injector']['get'](Ie);}},an(exports[_0x5e318a(0x418)],_0x5e318a(0x27b),cn),exports[_0x5e318a(0x418)]=on([o[_0x5e318a(0x2a9)](_[_0x5e318a(0x167)]),ye(0x1,o['ILogService']),ye(0x2,b[_0x5e318a(0x404)]),ye(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)]))],exports[_0x5e318a(0x418)]),exports['AUTHZ_URL_KEY']=Mt,exports[_0x5e318a(0xad)]=vt,exports[_0x5e318a(0x2c3)]=_t,exports[_0x5e318a(0x25c)]=D,exports[_0x5e318a(0xf1)]=Ut,exports[_0x5e318a(0x2fe)]=Ve,exports[_0x5e318a(0x2ea)]=ut,exports[_0x5e318a(0x1a6)]=He,exports[_0x5e318a(0x271)]=Be,exports[_0x5e318a(0x31d)]=Ye,exports[_0x5e318a(0x17e)]=St,exports[_0x5e318a(0x11e)]=mt,exports[_0x5e318a(0x1de)]=ht,exports[_0x5e318a(0x244)]=ct,exports[_0x5e318a(0xd8)]=lt,exports[_0x5e318a(0xa3)]=G,exports[_0x5e318a(0x262)]=Rt,exports[_0x5e318a(0xaf)]=wt,exports[_0x5e318a(0xd4)]=It,exports['serializeCombRequest']=pt;
|