@univerjs-pro/collaboration-client 0.4.0-nightly.202410131605 → 0.4.0-nightly.202410141110

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 _0x945337=_0x38f3;(function(_0xa48716,_0x1119e9){const _0x7353fd=_0x38f3,_0x137d20=_0xa48716();while(!![]){try{const _0xc56291=parseInt(_0x7353fd(0x560))/0x1+parseInt(_0x7353fd(0x364))/0x2+-parseInt(_0x7353fd(0x192))/0x3+parseInt(_0x7353fd(0x17b))/0x4*(-parseInt(_0x7353fd(0x2b0))/0x5)+-parseInt(_0x7353fd(0x461))/0x6+parseInt(_0x7353fd(0x3ec))/0x7+parseInt(_0x7353fd(0x1c5))/0x8*(-parseInt(_0x7353fd(0x185))/0x9);if(_0xc56291===_0x1119e9)break;else _0x137d20['push'](_0x137d20['shift']());}catch(_0x2a6b6d){_0x137d20['push'](_0x137d20['shift']());}}}(_0x336a,0x494bf));var kt=Object[_0x945337(0x24b)],Bt=(_0x1c9b74,_0x4d1cca,_0x453581)=>_0x4d1cca in _0x1c9b74?kt(_0x1c9b74,_0x4d1cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x453581}):_0x1c9b74[_0x4d1cca]=_0x453581,d=(_0x3206a2,_0x339db8,_0x557312)=>Bt(_0x3206a2,typeof _0x339db8!='symbol'?_0x339db8+'':_0x339db8,_0x557312);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x945337(0x30d)});const a=require(_0x945337(0x49f)),v=require(_0x945337(0x1fc)),E=require(_0x945337(0x3b4)),X=require(_0x945337(0x26f)),N=require(_0x945337(0x553)),P=require(_0x945337(0x2f6)),_=require(_0x945337(0x1e1)),Vt=require(_0x945337(0x189)),V=require('@univerjs/docs'),w=require(_0x945337(0x53b)),C=require(_0x945337(0x381)),R=require(_0x945337(0x236)),L=require(_0x945337(0x291)),Je=require(_0x945337(0x418)),te=require('@univerjs/sheets-ui'),U=require(_0x945337(0x3d6)),Wt=require(_0x945337(0x3a9)),Ft=require(_0x945337(0x4e8)),ht=_0x945337(0x54e),Gt=_0x945337(0x413),_t=_0x945337(0x438),Yt=_0x945337(0x46c),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x945337(0x25b),dt=_0x945337(0x380),qt=0x7530,Ve=_0x945337(0x535),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft=_0x945337(0x55b),Zt=0x3e8,gt=_0x945337(0x374),Qt=_0x945337(0x35c),mt=_0x945337(0x2d4),es=_0x945337(0x308);var It=(_0x39ad3a=>(_0x39ad3a[_0x39ad3a[_0x945337(0x276)]=0x0]=_0x945337(0x276),_0x39ad3a[_0x39ad3a['OK']=0x1]='OK',_0x39ad3a[_0x39ad3a[_0x945337(0x2ef)]=0x2]=_0x945337(0x2ef),_0x39ad3a[_0x39ad3a[_0x945337(0x190)]=0x3]=_0x945337(0x190),_0x39ad3a[_0x39ad3a[_0x945337(0x4dc)]=0x4]=_0x945337(0x4dc),_0x39ad3a[_0x39ad3a[_0x945337(0x355)]=0x5]=_0x945337(0x355),_0x39ad3a[_0x39ad3a[_0x945337(0x281)]=0x6]=_0x945337(0x281),_0x39ad3a[_0x39ad3a[_0x945337(0x1cb)]=0x7]='INVALID_ARGUMENT',_0x39ad3a[_0x39ad3a[_0x945337(0x229)]=0x8]=_0x945337(0x229),_0x39ad3a[_0x39ad3a[_0x945337(0x29e)]=0x9]=_0x945337(0x29e),_0x39ad3a[_0x39ad3a[_0x945337(0x2c2)]=0x1389]=_0x945337(0x2c2),_0x39ad3a[_0x39ad3a[_0x945337(0x541)]=0x1771]=_0x945337(0x541),_0x39ad3a[_0x39ad3a[_0x945337(0x48f)]=0x1772]=_0x945337(0x48f),_0x39ad3a[_0x39ad3a[_0x945337(0x537)]=0x1b59]=_0x945337(0x537),_0x39ad3a[_0x39ad3a[_0x945337(0x273)]=0x1b5a]=_0x945337(0x273),_0x39ad3a[_0x39ad3a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x945337(0x3e7),_0x39ad3a[_0x39ad3a[_0x945337(0x575)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x39ad3a[_0x39ad3a[_0x945337(0x4f6)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x39ad3a[_0x39ad3a[_0x945337(0x2da)]=0x2329]=_0x945337(0x2da),_0x39ad3a[_0x39ad3a[_0x945337(0x347)]=0x232a]=_0x945337(0x347),_0x39ad3a[_0x39ad3a[_0x945337(0x18b)]=0x232b]=_0x945337(0x18b),_0x39ad3a[_0x39ad3a[_0x945337(0x3bb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x39ad3a[_0x39ad3a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x945337(0x34b),_0x39ad3a[_0x39ad3a[_0x945337(0x492)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x39ad3a[_0x39ad3a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x945337(0x1b9),_0x39ad3a[_0x39ad3a[_0x945337(0x3a0)]=0x2713]=_0x945337(0x3a0),_0x39ad3a[_0x39ad3a[_0x945337(0x1bd)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x39ad3a[_0x39ad3a[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x39ad3a))(It||{}),j=(_0x5c47d7=>(_0x5c47d7[_0x5c47d7[_0x945337(0x52e)]=0x0]=_0x945337(0x52e),_0x5c47d7[_0x5c47d7['UNIVER_DOC']=0x1]=_0x945337(0x395),_0x5c47d7[_0x5c47d7['UNIVER_SHEET']=0x2]=_0x945337(0x53c),_0x5c47d7[_0x5c47d7[_0x945337(0x16e)]=0x3]=_0x945337(0x16e),_0x5c47d7[_0x5c47d7[_0x945337(0x216)]=0x4]=_0x945337(0x216),_0x5c47d7[_0x5c47d7[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x5c47d7))(j||{}),b=(_0x2d3efb=>(_0x2d3efb[_0x2d3efb[_0x945337(0x460)]=0x0]='UNKNOWN_CMD',_0x2d3efb[_0x2d3efb[_0x945337(0x25f)]=0x1]=_0x945337(0x25f),_0x2d3efb[_0x2d3efb[_0x945337(0x4e2)]=0x2]=_0x945337(0x4e2),_0x2d3efb[_0x2d3efb[_0x945337(0x1f3)]=0x3]=_0x945337(0x1f3),_0x2d3efb[_0x2d3efb[_0x945337(0x455)]=0x4]=_0x945337(0x455),_0x2d3efb[_0x2d3efb[_0x945337(0x489)]=0x5]=_0x945337(0x489),_0x2d3efb[_0x2d3efb[_0x945337(0x2f4)]=0x6]=_0x945337(0x2f4),_0x2d3efb[_0x2d3efb[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x2d3efb))(b||{}),We=(_0xed2db3=>(_0xed2db3[_0xed2db3[_0x945337(0x3e6)]=0x0]=_0x945337(0x3e6),_0xed2db3[_0xed2db3['OK']=0x1]='OK',_0xed2db3[_0xed2db3['FAIL']=0x2]='FAIL',_0xed2db3[_0xed2db3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xed2db3))(We||{}),pt=(_0x49b95a=>(_0x49b95a[_0x49b95a[_0x945337(0x2d2)]=0x0]=_0x945337(0x2d2),_0x49b95a[_0x49b95a[_0x945337(0x557)]=0x1]=_0x945337(0x557),_0x49b95a[_0x49b95a[_0x945337(0x45a)]=0x2]=_0x945337(0x45a),_0x49b95a[_0x49b95a[_0x945337(0x29b)]=0x3]=_0x945337(0x29b),_0x49b95a[_0x49b95a[_0x945337(0x1f2)]=0x4]=_0x945337(0x1f2),_0x49b95a[_0x49b95a[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x49b95a))(pt||{});const A=_0x945337(0x4bd),ts={};function Ct(_0xbe7210){const _0x4f89e5=_0x945337;var _0x5d0cba,_0x4b3d07,_0x1a550f,_0x1f3cbb;const _0x218f05=_0xbe7210[_0x4f89e5(0x375)],_0x20c12a=JSON[_0x4f89e5(0x2e0)](_0x218f05);switch(_0x20c12a[_0x4f89e5(0x4ef)]){case b[_0x4f89e5(0x489)]:case b[_0x4f89e5(0x25f)]:{const _0x416509=_0x20c12a[_0x4f89e5(0x3a2)];return{..._0x20c12a,'data':_0x416509,'cmd':_0x20c12a['cmd']};}case b[_0x4f89e5(0x4e2)]:{const _0x41fce4=_0x20c12a[_0x4f89e5(0x29c)];return{..._0x20c12a,'data':_0x41fce4,'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};}case b[_0x4f89e5(0x2f4)]:{const _0x2694f7=_0x20c12a[_0x4f89e5(0x29a)];switch(_0x2694f7[_0x4f89e5(0x170)]){case _['CollaborationEvent'][_0x4f89e5(0x186)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x5d0cba=_0x2694f7['permissionRejEvent'])==null?void 0x0:_0x5d0cba['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x1f1)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x4b3d07=_0x2694f7['csAckEvent'])==null?void 0x0:_0x4b3d07['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3c6)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1a550f=_0x2694f7['newCsEvent'])==null?void 0x0:_0x1a550f['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x573)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1f3cbb=_0x2694f7['csRejEvent'])==null?void 0x0:_0x1f3cbb['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x206)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x20d)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['USERS_ENTER']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['joinEvent']},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3cb)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x253)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x500)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x487)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['liveShareOperation']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x3cd)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d1)]:return{..._0x20c12a,'data':_0x2694f7,'cmd':_0x20c12a['cmd']};case _['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1e4)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)]['UPDATE_PERMISSION_OBJ']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x360)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d8)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1a1)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};default:return _0x20c12a;}}default:return _0x20c12a;}}function Et(_0x46d26c){const _0x5e43ff=_0x945337;switch(_0x46d26c['cmd']){case b['HEARTBEAT']:case b[_0x5e43ff(0x25f)]:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)]});case b[_0x5e43ff(0x455)]:{let _0x54e5b1;switch(_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]){case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)],'updateCursorEvent':_0x46d26c['data'][_0x5e43ff(0x375)]};break;}case _['CollaborationEvent'][_0x5e43ff(0x3cb)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x3cb)],'leaveEvent':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['USERS_ENTER']:{_0x54e5b1={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)],'liveShareNewHost':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['LIVESHARE_OPERATION']:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x487)],'liveShareOperation':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)],'liveShareTerminate':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x2c8)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x2c8)],'liveShareRequestHost':_0x46d26c['data']['data']};break;}case _['CollaborationEvent'][_0x5e43ff(0x30c)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x30c)]};break;}default:_0x54e5b1={'eventID':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]};}return JSON['stringify']({'cmd':_0x46d26c['cmd'],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'collaMsg':_0x54e5b1});}case b['JOIN']:return JSON['stringify']({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'joinReq':_0x46d26c[_0x5e43ff(0x375)]});case b['LEAVE']:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c['routeKey'],'leaveReq':_0x46d26c[_0x5e43ff(0x375)]});default:throw new Error(_0x5e43ff(0x432));}}var ss=Object['defineProperty'],is=Object[_0x945337(0x3e2)],ns=(_0xebcb19,_0x4cbdc6,_0x29e0e2,_0x289869)=>{for(var _0x2e668a=_0x289869>0x1?void 0x0:_0x289869?is(_0x4cbdc6,_0x29e0e2):_0x4cbdc6,_0x1c214d=_0xebcb19['length']-0x1,_0xcbe805;_0x1c214d>=0x0;_0x1c214d--)(_0xcbe805=_0xebcb19[_0x1c214d])&&(_0x2e668a=(_0x289869?_0xcbe805(_0x4cbdc6,_0x29e0e2,_0x2e668a):_0xcbe805(_0x2e668a))||_0x2e668a);return _0x289869&&_0x2e668a&&ss(_0x4cbdc6,_0x29e0e2,_0x2e668a),_0x2e668a;},oe=(_0x2e6c81,_0x3c84cf)=>(_0x53455a,_0x4c7450)=>_0x3c84cf(_0x53455a,_0x4c7450,_0x2e6c81);const Fe=a['createIdentifier'](_0x945337(0x2ee));function rs(_0x4e6f08,_0x47b81f,_0x560bf6){const _0x58dd11=_0x945337;return _0x4e6f08+'/'+_0x47b81f+'/unit/'+_0x560bf6+_0x58dd11(0x32c);}exports[_0x945337(0x305)]=class extends a[_0x945337(0x45b)]{constructor(_0x1cb429,_0x1a47a5,_0x176484,_0x27f073,_0x3f598f){const _0x2e8b1b=_0x945337;super(),this[_0x2e8b1b(0x266)]=_0x1cb429,this[_0x2e8b1b(0x390)]=_0x1a47a5,this[_0x2e8b1b(0x4f8)]=_0x176484,this[_0x2e8b1b(0x4ae)]=_0x27f073,this[_0x2e8b1b(0x54d)]=_0x3f598f;}['createSocket'](_0x30e3c8){const _0x3f546f=_0x945337,_0x4857c3=this[_0x3f546f(0x390)][_0x3f546f(0x452)](_0x30e3c8);if(!_0x4857c3)throw new Error(_0x3f546f(0x499));const _0x53f45b=new a[(_0x3f546f(0x275))](),_0x3a71d0=new v[(_0x3f546f(0x36e))]();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x343)][_0x3f546f(0x397)](_0x90eefd=>_0x3a71d0[_0x3f546f(0x3ca)](_0x90eefd))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x3a71d0[_0x3f546f(0x531)]()));const _0x1d2c3d=new v['Subject']();_0x53f45b['add'](_0x4857c3[_0x3f546f(0x4b5)]['subscribe'](_0x499ab3=>_0x1d2c3d[_0x3f546f(0x3ca)](_0x499ab3))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x1d2c3d['complete']()));const _0x46a200=new v['Subject']();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x3dc)][_0x3f546f(0x397)](_0x58f5b6=>{const _0x737eaf=_0x3f546f,_0xa5fadc=Ct(_0x58f5b6);_0x46a200[_0x737eaf(0x3ca)](_0xa5fadc);})),_0x53f45b[_0x3f546f(0x18a)](a['toDisposable'](()=>_0x46a200[_0x3f546f(0x531)]()));let _0x5879cb;const _0xbe866e=()=>{const _0x282ada=_0x3f546f;_0x1d2c3d[_0x282ada(0x3ca)](new Event('connection\x20error')),_0x3a71d0[_0x282ada(0x3ca)](new CloseEvent(_0x282ada(0x3ae))),_0x5879cb[_0x282ada(0x322)]();};return _0x5879cb={'memberID':'','close$':_0x3a71d0[_0x3f546f(0x19b)](),'error$':_0x1d2c3d[_0x3f546f(0x19b)](),'open$':_0x4857c3[_0x3f546f(0x445)],'message$':_0x46a200['asObservable'](),'send':_0x59cbea=>{const _0x41a3c0=_0x3f546f;if(_0x59cbea[_0x41a3c0(0x4ef)]===b['INGEST']){if(_0x59cbea['data']['eventID']===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x56d)]){this[_0x41a3c0(0x2f7)](_0x5879cb,_0x59cbea['data'])[_0x41a3c0(0x3ff)](_0x1579ce=>{const _0x17c0ec=_0x41a3c0;this[_0x17c0ec(0x4ae)]['error'](_0x1579ce),_0xbe866e();});return;}if(_0x59cbea[_0x41a3c0(0x375)][_0x41a3c0(0x170)]===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x51d)]){const _0x3eed85=_0x59cbea[_0x41a3c0(0x375)];this[_0x41a3c0(0x412)](_0x3eed85)['then'](_0x3d2fca=>{const _0x26f5fe=_0x41a3c0;_0x46a200[_0x26f5fe(0x3ca)]({'cmd':b[_0x26f5fe(0x2f4)],'code':We['OK'],'routeKey':_0x3eed85[_0x26f5fe(0x375)][_0x26f5fe(0x1da)],'routeType':'','data':{'eventID':_[_0x26f5fe(0x4eb)][_0x26f5fe(0x4b7)],'data':{'changesets':_0x3d2fca}}});})['catch'](_0x64e661=>{const _0x3d1ae8=_0x41a3c0;this[_0x3d1ae8(0x4ae)]['error'](_0x64e661),_0xbe866e();});return;}}_0x4857c3['send'](Et(_0x59cbea));},'close':()=>{const _0x1aaa0f=_0x3f546f;_0x4857c3[_0x1aaa0f(0x322)](),_0x53f45b['dispose']();}},_0x5879cb;}async['_submitChangeset'](_0x466b29,_0x25b373){const _0x1e60b6=_0x945337;var _0x88ac27,_0x285af7;const {unitType:_0x5d086a,unitID:_0x6b1d6b,changeset:_0x120925}=_0x25b373[_0x1e60b6(0x375)],_0x411a8c={'unitID':_0x6b1d6b,'memberID':_0x466b29[_0x1e60b6(0x2ab)],'type':_0x5d086a,'changeset':_[_0x1e60b6(0x21d)](_0x120925)},_0x2ce0f4=this[_0x1e60b6(0x4f8)][_0x1e60b6(0x258)](gt),_0x6ea042=this['_configService'][_0x1e60b6(0x258)](A),_0x5bc3ad=rs((_0x285af7=(_0x88ac27=_0x6ea042==null?void 0x0:_0x6ea042[_0x1e60b6(0x377)])!=null?_0x88ac27:_0x2ce0f4)!=null?_0x285af7:Qt,_0x5d086a,_0x6b1d6b);try{await this['_http']['post'](_0x5bc3ad,{'body':_0x411a8c});}catch(_0x5d3d5d){throw this['_logService']['error'](_0x1e60b6(0x393),'submit\x20changeset\x20error!'),_0x5d3d5d;}}async[_0x945337(0x412)](_0x53a62b){const _0x4c7c3d=_0x945337,{unitID:_0x5b423d,from:_0x20ffbc,to:_0x5994ee,unitType:_0x11001b}=_0x53a62b[_0x4c7c3d(0x375)];return(await this[_0x4c7c3d(0x54d)][_0x4c7c3d(0x55d)]({'metadata':void 0x0},{'unitID':_0x5b423d,'type':_0x11001b,'from':_0x20ffbc,'to':_0x5994ee}))[_0x4c7c3d(0x37c)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),oe(0x1,a[_0x945337(0x4fa)](P['WebSocketService'])),oe(0x2,a[_0x945337(0x1f7)]),oe(0x3,a[_0x945337(0x48c)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x945337(0x305)]);const os=_0x945337(0x4b8);function as(_0x34430c){const _0x3036ed=_0x945337;return JSON[_0x3036ed(0x22d)](_0x34430c)['length'];}class Ge{constructor(){const _0x3eb5ef=_0x945337;d(this,_0x3eb5ef(0x2a1),new v['Subject']()),d(this,'commentUpdate$',this['_commentUpdate$'][_0x3eb5ef(0x19b)]());}['onCommentUpdate'](_0x578e8b){const _0x4eac04=_0x945337;this[_0x4eac04(0x2a1)]['next'](_0x578e8b);}}var cs=Object[_0x945337(0x24b)],ls=Object[_0x945337(0x3e2)],hs=(_0x1883e5,_0x58e953,_0x1cc1b8,_0x1625b1)=>{for(var _0x1046ad=_0x1625b1>0x1?void 0x0:_0x1625b1?ls(_0x58e953,_0x1cc1b8):_0x58e953,_0x10ace6=_0x1883e5['length']-0x1,_0xf467a;_0x10ace6>=0x0;_0x10ace6--)(_0xf467a=_0x1883e5[_0x10ace6])&&(_0x1046ad=(_0x1625b1?_0xf467a(_0x58e953,_0x1cc1b8,_0x1046ad):_0xf467a(_0x1046ad))||_0x1046ad);return _0x1625b1&&_0x1046ad&&cs(_0x58e953,_0x1cc1b8,_0x1046ad),_0x1046ad;},Ze=(_0x342364,_0x23698e)=>(_0x428d5d,_0x1033e2)=>_0x23698e(_0x428d5d,_0x1033e2,_0x342364);let q=class extends a[_0x945337(0x45b)]{constructor(_0x24f0ac,_0x25ff0c){const _0x46e7b9=_0x945337;super(),d(this,_0x46e7b9(0x568),new Map()),(this[_0x46e7b9(0x337)]=_0x24f0ac,this['_userManagerService']=_0x25ff0c,this[_0x46e7b9(0x50a)](a[_0x46e7b9(0x296)](v['merge'](this[_0x46e7b9(0x337)]['getTypeOfUnitDisposed$'](a[_0x46e7b9(0x3b1)][_0x46e7b9(0x53c)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0x3c3c91=>_0x3c3c91[_0x46e7b9(0x352)]())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a[_0x46e7b9(0x3b1)]['UNIVER_DOC'])[_0x46e7b9(0x550)](E['map'](_0x4e78ab=>_0x4e78ab['getUnitId']())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a['UniverInstanceType'][_0x46e7b9(0x16e)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0xacf866=>_0xacf866['getUnitId']())))['subscribe'](_0x23c54b=>this[_0x46e7b9(0x469)](_0x23c54b)))));}[_0x945337(0x342)](_0x470da6){const _0x38228f=_0x945337;this[_0x38228f(0x569)][_0x38228f(0x342)](_0x470da6);}[_0x945337(0x307)](){const _0x5bb3c2=_0x945337;return this['_userManagerService'][_0x5bb3c2(0x307)]();}[_0x945337(0x181)](_0x2bb2a8,_0x2fd658){const _0x4c4787=_0x945337;let _0x3db60e=this[_0x4c4787(0x568)]['get'](_0x2bb2a8);_0x3db60e||(_0x3db60e=new _s(),this[_0x4c4787(0x568)]['set'](_0x2bb2a8,_0x3db60e)),_0x3db60e[_0x4c4787(0x181)](_0x2fd658);}[_0x945337(0x41c)](_0x5f22c2,_0x5e3701){const _0x5dee8b=_0x945337,_0x4c6818=this[_0x5dee8b(0x568)][_0x5dee8b(0x3eb)](_0x5f22c2);_0x4c6818&&_0x4c6818['removeMember'](_0x5e3701);}[_0x945337(0x1c2)](_0x2e1160){const _0x5446a2=_0x945337;return this[_0x5446a2(0x568)][_0x5446a2(0x3eb)](_0x2e1160);}[_0x945337(0x467)](_0x591069,_0x3c53bc){const _0x7ed942=_0x945337,_0x12f3e3=this[_0x7ed942(0x568)][_0x7ed942(0x3eb)](_0x591069);if(_0x12f3e3)return _0x12f3e3[_0x7ed942(0x467)](_0x3c53bc);}[_0x945337(0x469)](_0x58459c){const _0x185a09=_0x945337,_0x5a973c=this[_0x185a09(0x568)][_0x185a09(0x3eb)](_0x58459c);_0x5a973c&&(_0x5a973c[_0x185a09(0x1eb)](),this[_0x185a09(0x568)][_0x185a09(0x532)](_0x58459c));}[_0x945337(0x1eb)](){const _0x5017dd=_0x945337;this[_0x5017dd(0x568)][_0x5017dd(0x278)](_0x3684d0=>_0x3684d0[_0x5017dd(0x1eb)]()),this[_0x5017dd(0x568)][_0x5017dd(0x196)]();}};q=hs([Ze(0x0,a[_0x945337(0x57b)]),Ze(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x40e)]))],q);class _s extends a[_0x945337(0x45b)]{constructor(){const _0xb94c1=_0x945337;super(...arguments),d(this,_0xb94c1(0x428),new Map());}[_0x945337(0x1eb)](){const _0x38c9ac=_0x945337;this[_0x38c9ac(0x428)]['clear']();}[_0x945337(0x181)](_0xe4898d){const _0x45bfe3=_0x945337;this[_0x45bfe3(0x428)][_0x45bfe3(0x4a8)](_0xe4898d[_0x45bfe3(0x2ab)],_0xe4898d);}[_0x945337(0x41c)](_0x12f2fe){const _0x213ff6=_0x945337;this[_0x213ff6(0x428)]['delete'](_0x12f2fe);}[_0x945337(0x467)](_0x4ca019){const _0x4b352d=_0x945337;return this[_0x4b352d(0x428)]['get'](_0x4ca019);}}var us=Object[_0x945337(0x24b)],ds=Object[_0x945337(0x3e2)],Ss=(_0x1165ab,_0x36cec5,_0x5607e9,_0x6872ec)=>{const _0x2cd50c=_0x945337;for(var _0x54460d=_0x6872ec>0x1?void 0x0:_0x6872ec?ds(_0x36cec5,_0x5607e9):_0x36cec5,_0x5ed831=_0x1165ab[_0x2cd50c(0x3f0)]-0x1,_0x12d68c;_0x5ed831>=0x0;_0x5ed831--)(_0x12d68c=_0x1165ab[_0x5ed831])&&(_0x54460d=(_0x6872ec?_0x12d68c(_0x36cec5,_0x5607e9,_0x54460d):_0x12d68c(_0x54460d))||_0x54460d);return _0x6872ec&&_0x54460d&&us(_0x36cec5,_0x5607e9,_0x54460d),_0x54460d;},B=(_0x1507b6,_0x358d44)=>(_0xbecf55,_0xb20be8)=>_0x358d44(_0xbecf55,_0xb20be8,_0x1507b6),$=(_0x4587ff=>(_0x4587ff[_0x4587ff['IDLE']=0x0]=_0x945337(0x263),_0x4587ff[_0x4587ff[_0x945337(0x399)]=0x1]=_0x945337(0x399),_0x4587ff[_0x4587ff['OFFLINE']=0x2]=_0x945337(0x482),_0x4587ff[_0x4587ff['ONLINE']=0x3]=_0x945337(0x42e),_0x4587ff))($||{});exports[_0x945337(0x30a)]=class extends a[_0x945337(0x538)]{constructor(_0x572415,_0x359569,_0x3321de,_0x468498,_0x18876b,_0x46c56e,_0x57f218,_0x123122,_0x5ef093,_0x5e2711){const _0x182f59=_0x945337;super(),d(this,_0x182f59(0x310),new v[(_0x182f59(0x52c))](0x0)),d(this,'sessionStatus$',this[_0x182f59(0x310)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x51b),new v[(_0x182f59(0x36e))]()),d(this,_0x182f59(0x23f),this[_0x182f59(0x51b)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x3fe)),d(this,_0x182f59(0x45e)),d(this,_0x182f59(0x57a)),d(this,_0x182f59(0x338),!0x1),d(this,_0x182f59(0x237),null),(this[_0x182f59(0x20f)]=_0x572415,this[_0x182f59(0x4ae)]=_0x3321de,this[_0x182f59(0x22a)]=_0x468498,this[_0x182f59(0x392)]=_0x18876b,this[_0x182f59(0x4f8)]=_0x46c56e,this[_0x182f59(0x21a)]=_0x57f218,this[_0x182f59(0x526)]=_0x123122,this[_0x182f59(0x4cd)]=_0x5ef093,this[_0x182f59(0x2b8)]=_0x5e2711,this['_shouldReportTelemetry']=!!this[_0x182f59(0x2b8)],_0x359569[_0x182f59(0x550)](v[_0x182f59(0x43c)](this[_0x182f59(0x2ec)]))[_0x182f59(0x397)](_0xbb71fd=>{const _0xd140db=_0x182f59;var _0x55976e;typeof _0xbb71fd>'u'||(this[_0xd140db(0x3fe)]=_0xbb71fd,_0xbb71fd?(this[_0xd140db(0x1cd)](_0xbb71fd),this[_0xd140db(0x45e)]=_0xbb71fd[_0xd140db(0x3dc)][_0xd140db(0x397)](_0x2aa116=>{const _0x359701=_0xd140db;_0x2aa116[_0x359701(0x1c6)]===this[_0x359701(0x20f)]&&this[_0x359701(0x51c)](_0x2aa116);})):(this[_0xd140db(0x232)](),this[_0xd140db(0x310)][_0xd140db(0x3ca)](0x2),(_0x55976e=this['_socketMessageSubscription'])==null||_0x55976e[_0xd140db(0x346)](),this['_socketMessageSubscription']=null));}),this[_0x182f59(0x50a)](this[_0x182f59(0x22a)][_0x182f59(0x46e)](()=>{const _0x2837b1=_0x182f59;var _0x375720;(_0x375720=this['_socket'])==null||_0x375720[_0x2837b1(0x2a2)]({'cmd':b[_0x2837b1(0x1f3)],'data':{'roomID':this[_0x2837b1(0x20f)]}});})));}get[_0x945337(0x290)](){const _0x258240=_0x945337;return this[_0x258240(0x310)][_0x258240(0x2d6)]();}[_0x945337(0x56a)](){const _0x11faa3=_0x945337;var _0x3d8602,_0x3ce90e;return(_0x3ce90e=(_0x3d8602=this[_0x11faa3(0x3fe)])==null?void 0x0:_0x3d8602[_0x11faa3(0x2ab)])!=null?_0x3ce90e:null;}[_0x945337(0x1eb)](){const _0x1a4215=_0x945337;super['dispose'](),this[_0x1a4215(0x2ec)]['next'](),this[_0x1a4215(0x2ec)][_0x1a4215(0x531)]();}[_0x945337(0x322)](){const _0x197480=_0x945337;var _0x78284d,_0x2336d6;this[_0x197480(0x232)](),(_0x78284d=this[_0x197480(0x3fe)])==null||_0x78284d[_0x197480(0x2a2)]({'cmd':b[_0x197480(0x1f3)],'data':{'roomID':this['_unitID']}}),(_0x2336d6=this['_socket'])==null||_0x2336d6[_0x197480(0x322)](),this[_0x197480(0x51b)]['complete'](),this[_0x197480(0x310)]['complete'](),this['dispose']();}['_onCombEvent'](_0x27ca13){const _0x1a7299=_0x945337;_0x27ca13[_0x1a7299(0x4ef)]===b['JOIN']?this[_0x1a7299(0x326)](_0x27ca13):_0x27ca13[_0x1a7299(0x4ef)]===b[_0x1a7299(0x2f4)]&&this[_0x1a7299(0x1f4)](_0x27ca13);}['_joinRoom'](_0x51de92){const _0x2c8e17=_0x945337;this[_0x2c8e17(0x310)][_0x2c8e17(0x3ca)](0x1),_0x51de92[_0x2c8e17(0x2a2)]({'cmd':b['JOIN'],'routeKey':this[_0x2c8e17(0x20f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2c8e17(0x20f)]}]}});}[_0x945337(0x326)](_0x117680){const _0x2f2c03=_0x945337;var _0x2a03ce;if(_0x117680[_0x2f2c03(0x20c)]===We['FAIL']){this[_0x2f2c03(0x392)][_0x2f2c03(0x411)]({'type':X[_0x2f2c03(0x367)][_0x2f2c03(0x19d)],'content':this[_0x2f2c03(0x21a)]['t'](_0x2f2c03(0x20a))}),this[_0x2f2c03(0x310)]['next'](0x2);return;}this[_0x2f2c03(0x310)][_0x2f2c03(0x3ca)](0x3);const _0x224b14=(_0x2a03ce=_0x117680['data'][_0x2f2c03(0x241)][this[_0x2f2c03(0x20f)]])==null?void 0x0:_0x2a03ce[_0x2f2c03(0x30b)];_0x224b14&&_0x224b14[_0x2f2c03(0x278)](_0x5b2505=>this[_0x2f2c03(0x526)]['updateMember'](this[_0x2f2c03(0x20f)],_0x5b2505));}['_onRecvEvent'](_0x437081){const _0x187221=_0x945337;try{const _0x2613ff=_0x437081[_0x187221(0x375)];switch(_0x2613ff[_0x187221(0x170)]){case _[_0x187221(0x4eb)][_0x187221(0x1d2)]:this[_0x187221(0x50b)](_0x2613ff),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent'][_0x187221(0x3cb)]:this['_onUserLeave'](_0x2613ff),this['_event$']['next'](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x1f1)]:this[_0x187221(0x52f)](),this[_0x187221(0x1e5)](),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x2d1)]:this[_0x187221(0x4ae)][_0x187221(0x2e8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x2613ff)),this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x187221(0x4cd)][_0x187221(0x39c)](_0x2613ff[_0x187221(0x375)]),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;default:this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);}}catch(_0x336304){this[_0x187221(0x4ae)]['error'](_0x336304,_0x437081);}}['_onUserJoin'](_0x1661f5){const _0x4176e1=_0x945337;this[_0x4176e1(0x526)][_0x4176e1(0x181)](this[_0x4176e1(0x20f)],_0x1661f5[_0x4176e1(0x375)]);}[_0x945337(0x3c9)](_0x4f2830){const _0x31085f=_0x945337;this[_0x31085f(0x526)]['removeMember'](this[_0x31085f(0x20f)],_0x4f2830['data'][_0x31085f(0x2ab)]);}async[_0x945337(0x2a2)](_0x48d621,_0x261afa){const _0x4ba1c5=_0x945337;if(this[_0x4ba1c5(0x290)]!==0x3||!this[_0x4ba1c5(0x3fe)])throw new Error(_0x4ba1c5(0x4f1));try{_0x48d621[_0x4ba1c5(0x170)]===_[_0x4ba1c5(0x4eb)][_0x4ba1c5(0x56d)]&&(this[_0x4ba1c5(0x335)](),this[_0x4ba1c5(0x4c1)](_0x48d621)),this[_0x4ba1c5(0x3fe)][_0x4ba1c5(0x2a2)]({'cmd':b[_0x4ba1c5(0x455)],'routeKey':_0x261afa,'routeType':'','data':_0x48d621});}catch(_0x2c4c63){this[_0x4ba1c5(0x4ae)]['error'](_0x2c4c63);}}[_0x945337(0x335)](){const _0x12dda8=_0x945337;var _0x5299eb;this['_collaborationTimeoutTimer']=window[_0x12dda8(0x191)](()=>{const _0x291199=_0x12dda8;this['_collaborationTimeoutTimer']=null,this[_0x291199(0x392)][_0x291199(0x411)]({'type':X[_0x291199(0x367)][_0x291199(0x372)],'content':this['_localeService']['t'](_0x291199(0x388))});},(_0x5299eb=this[_0x12dda8(0x4f8)][_0x12dda8(0x258)](Ve))!=null?_0x5299eb:St);}[_0x945337(0x1e5)](){const _0x2ba216=_0x945337;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x2ba216(0x57a)]),this['_collaborationTimeoutTimer']=null);}[_0x945337(0x4c1)](_0x58bad3){const _0x2ce149=_0x945337;if(!this[_0x2ce149(0x338)])return;const {data:_0x5c9aa7}=_0x58bad3,{unitID:_0x225b38,changeset:_0x68aee1}=_0x5c9aa7,{mutations:_0xb3d02d,type:_0x31fb8c}=_0x68aee1;this[_0x2ce149(0x237)]={'unitId':_0x225b38,'type':_0x31fb8c,'startTime':performance[_0x2ce149(0x405)](),'stopTime':0x0,'duration':0x0,'size':as(_0xb3d02d)};}[_0x945337(0x52f)](){const _0x277cc7=_0x945337;if(this[_0x277cc7(0x338)]){if(!this[_0x277cc7(0x237)]){this[_0x277cc7(0x4ae)][_0x277cc7(0x2e8)](_0x277cc7(0x393),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]=performance[_0x277cc7(0x405)](),this[_0x277cc7(0x237)][_0x277cc7(0x3ac)]=this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]-this[_0x277cc7(0x237)]['startTime'],this['_telemetryService'][_0x277cc7(0x222)](os,this[_0x277cc7(0x237)]),this[_0x277cc7(0x237)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x298731=_0x945337;this[_0x298731(0x237)]=null;}},exports[_0x945337(0x30a)]=Ss([B(0x2,a[_0x945337(0x48c)]),B(0x3,N[_0x945337(0x4f0)]),B(0x4,N[_0x945337(0x2b2)]),B(0x5,a[_0x945337(0x1f7)]),B(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),B(0x7,a[_0x945337(0x4fa)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x945337(0x188)](Vt[_0x945337(0x25d)]))],exports[_0x945337(0x30a)]);var vs=Object['defineProperty'],fs=Object[_0x945337(0x3e2)],gs=(_0x145b3f,_0x3338df,_0x807908,_0x3d0c69)=>{for(var _0x51fe1e=_0x3d0c69>0x1?void 0x0:_0x3d0c69?fs(_0x3338df,_0x807908):_0x3338df,_0x37bf5f=_0x145b3f['length']-0x1,_0xeb631a;_0x37bf5f>=0x0;_0x37bf5f--)(_0xeb631a=_0x145b3f[_0x37bf5f])&&(_0x51fe1e=(_0x3d0c69?_0xeb631a(_0x3338df,_0x807908,_0x51fe1e):_0xeb631a(_0x51fe1e))||_0x51fe1e);return _0x3d0c69&&_0x51fe1e&&vs(_0x3338df,_0x807908,_0x51fe1e),_0x51fe1e;},Z=(_0x49fe0d,_0x4b6661)=>(_0x13690c,_0x6c7f17)=>_0x4b6661(_0x13690c,_0x6c7f17,_0x49fe0d);exports[_0x945337(0x3a5)]=class extends a['Disposable']{constructor(_0x152453,_0x49dbe3,_0x107907,_0xdc5d56,_0x150db4,_0x49b705){const _0x1928dc=_0x945337;super(),d(this,'_socket$',new v[(_0x1928dc(0x52c))](void 0x0)),d(this,_0x1928dc(0x2ea),this[_0x1928dc(0x56c)][_0x1928dc(0x19b)]()),d(this,'_candidateSocket',null),d(this,'_sessions',new Map()),d(this,'_status$',new v['BehaviorSubject']($[_0x1928dc(0x263)])),d(this,_0x1928dc(0x259),this[_0x1928dc(0x35a)][_0x1928dc(0x19b)]()),d(this,_0x1928dc(0x554),!0x1),d(this,_0x1928dc(0x480)),d(this,_0x1928dc(0x437),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this[_0x1928dc(0x3dd)]=_0x152453,this[_0x1928dc(0x21a)]=_0x49dbe3,this['_messageService']=_0x107907,this['_logService']=_0xdc5d56,this[_0x1928dc(0x4f8)]=_0x150db4,this[_0x1928dc(0x562)]=_0x49b705,this['_initEventListeners']());}get[_0x945337(0x3fe)](){const _0x13f416=_0x945337;return this[_0x13f416(0x56c)][_0x13f416(0x2d6)]();}[_0x945337(0x4d0)](){const _0x3abb76=_0x945337;this['_listenToOfflineEvent'](),this[_0x3abb76(0x3e4)]();}['dispose'](){const _0x2f4e03=_0x945337;super['dispose'](),this[_0x2f4e03(0x175)][_0x2f4e03(0x278)](_0x580052=>_0x580052[_0x2f4e03(0x1eb)]()),this[_0x2f4e03(0x175)][_0x2f4e03(0x196)](),this['_status$']['complete']();}async[_0x945337(0x369)](_0xa3c5d3){const _0x1b143b=_0x945337;if(this[_0x1b143b(0x175)]['has'](_0xa3c5d3))return this[_0x1b143b(0x175)][_0x1b143b(0x3eb)](_0xa3c5d3);this['_tryEnsureSocket']();const _0x22d7b5=this[_0x1b143b(0x3dd)][_0x1b143b(0x39d)](exports[_0x1b143b(0x30a)],_0xa3c5d3,this[_0x1b143b(0x56c)]['asObservable']());return this[_0x1b143b(0x175)][_0x1b143b(0x4a8)](_0xa3c5d3,_0x22d7b5),_0x22d7b5;}[_0x945337(0x350)](_0x95b134){const _0x4ef981=_0x945337;var _0x2f3671;const _0x3f53f5=this[_0x4ef981(0x175)][_0x4ef981(0x3eb)](_0x95b134);_0x3f53f5&&(this[_0x4ef981(0x175)]['delete'](_0x95b134),_0x3f53f5[_0x4ef981(0x322)]()),this[_0x4ef981(0x175)][_0x4ef981(0x17e)]||(_0x2f3671=this[_0x4ef981(0x3fe)])==null||_0x2f3671[_0x4ef981(0x322)]();}['reconnect'](){const _0x1b252d=_0x945337;this[_0x1b252d(0x437)]=0x0,this[_0x1b252d(0x480)]!=null&&(clearTimeout(this[_0x1b252d(0x480)]),this[_0x1b252d(0x480)]=null),this[_0x1b252d(0x483)]();}[_0x945337(0x3c3)](){const _0xb546dd=_0x945337;var _0x32fa8c,_0x48ad4b;const _0xe4ac42=this[_0xb546dd(0x4f8)][_0xb546dd(0x258)](ut),_0x1eee85=this[_0xb546dd(0x4f8)]['getConfig'](A),_0x2332fc=(_0x48ad4b=(_0x32fa8c=_0x1eee85==null?void 0x0:_0x1eee85[_0xb546dd(0x2af)])!=null?_0x32fa8c:_0xe4ac42)!=null?_0x48ad4b:Xt,_0x3bcb43=this['_socketService'][_0xb546dd(0x452)](_0x2332fc);return this['_candidateSocket']=_0x3bcb43,_0x3bcb43;}[_0x945337(0x465)](){const _0x213d0b=_0x945337;var _0x1f59e5,_0x200486;try{const _0x39df2b=(_0x200486=(_0x1f59e5=this[_0x213d0b(0x3fe)])!=null?_0x1f59e5:this[_0x213d0b(0x3e5)])!=null?_0x200486:this[_0x213d0b(0x3c3)]();if(_0x39df2b){const _0x21d5aa=_0x39df2b[_0x213d0b(0x2a2)];_0x39df2b[_0x213d0b(0x2a2)]=_0xf4db16=>(this[_0x213d0b(0x579)](),_0x21d5aa['apply'](_0x39df2b,[_0xf4db16])),_0x39df2b[_0x213d0b(0x3dc)][_0x213d0b(0x397)](_0x4d392=>this[_0x213d0b(0x518)](_0x39df2b,_0x4d392)),_0x39df2b[_0x213d0b(0x4b5)]['pipe'](E[_0x213d0b(0x551)](0x1))[_0x213d0b(0x397)](_0x372180=>this[_0x213d0b(0x4ae)][_0x213d0b(0x2e8)](_0x213d0b(0x426),_0x372180)),_0x39df2b[_0x213d0b(0x445)][_0x213d0b(0x550)](E['take'](0x1))['subscribe'](()=>{const _0x51a0ca=_0x213d0b;this[_0x51a0ca(0x1d3)](_0x39df2b);}),_0x39df2b[_0x213d0b(0x343)][_0x213d0b(0x550)](E['take'](0x1))[_0x213d0b(0x397)](_0x30ce0b=>{const _0x24c8b1=_0x213d0b;this[_0x24c8b1(0x4ae)][_0x24c8b1(0x44c)](_0x24c8b1(0x282),_0x24c8b1(0x17d),_0x30ce0b),this[_0x24c8b1(0x4de)]();});}}catch(_0x2eb525){this[_0x213d0b(0x4ae)]['error'](_0x2eb525),this[_0x213d0b(0x4de)]();}}[_0x945337(0x1d3)](_0x3d0f38){const _0x102705=_0x945337;this[_0x102705(0x4ae)][_0x102705(0x44c)](_0x102705(0x282),_0x102705(0x3c4)),_0x3d0f38[_0x102705(0x2a2)]({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}[_0x945337(0x410)](){const _0x1a7dda=_0x945337;window[_0x1a7dda(0x1ea)](_0x1a7dda(0x1c1),()=>this[_0x1a7dda(0x50f)]());}[_0x945337(0x50f)](){const _0x458cb0=_0x945337;this['_socketReady']=!0x1,this[_0x458cb0(0x3e5)]=null,this[_0x458cb0(0x35a)][_0x458cb0(0x3ca)]($[_0x458cb0(0x482)]),this['_socket$'][_0x458cb0(0x3ca)](null),this[_0x458cb0(0x501)](),this[_0x458cb0(0x21c)]();}[_0x945337(0x4de)](){const _0x99224b=_0x945337;var _0x10f23f;this[_0x99224b(0x50f)](),this[_0x99224b(0x437)]<((_0x10f23f=this['_configService']['getConfig'](vt))!=null?_0x10f23f:Jt)?(this[_0x99224b(0x392)]['show']({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)][_0x99224b(0x19d)],'content':this[_0x99224b(0x21a)]['t'](_0x99224b(0x389))}),this[_0x99224b(0x483)]()):this['_messageService'][_0x99224b(0x411)]({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)]['Error'],'content':this[_0x99224b(0x21a)]['t']('session.connection-failed')});}[_0x945337(0x3e4)](){const _0x9df1fc=_0x945337,_0xa679b5=()=>{const _0x2d7eb6=_0x38f3;this[_0x2d7eb6(0x3fe)]||this['reconnect']();},_0x1fab0d=()=>{const _0x7ed857=_0x38f3;this['_socket']||document[_0x7ed857(0x252)]==='hidden'||this[_0x7ed857(0x4cc)]();};window['addEventListener'](_0x9df1fc(0x2c3),_0xa679b5),document[_0x9df1fc(0x1ea)](_0x9df1fc(0x570),_0x1fab0d);}[_0x945337(0x483)](){const _0x44cf94=_0x945337;var _0x175f8b;const _0x47d90d=this[_0x44cf94(0x437)],_0x20c978=this['_configService'][_0x44cf94(0x258)](A),_0x4d4150=_0x47d90d===0x0?0x0:((_0x175f8b=_0x20c978==null?void 0x0:_0x20c978[_0x44cf94(0x396)])!=null?_0x175f8b:zt)*0x2**_0x47d90d;this[_0x44cf94(0x480)]=window['setTimeout'](()=>{const _0x581cdf=_0x44cf94;clearTimeout(this[_0x581cdf(0x480)]),this['_retryConnectingTimer']=null,this[_0x581cdf(0x465)]();},_0x4d4150),this[_0x44cf94(0x437)]+=0x1;}[_0x945337(0x518)](_0x1a6396,_0x3e05a9){const _0x4ec95e=_0x945337,{cmd:_0x22e019}=_0x3e05a9;_0x22e019===b['HELLO']&&!this[_0x4ec95e(0x554)]&&(_0x1a6396[_0x4ec95e(0x2ab)]=_0x3e05a9[_0x4ec95e(0x375)][_0x4ec95e(0x2ab)],this[_0x4ec95e(0x56c)]['next'](_0x1a6396),this['_status$'][_0x4ec95e(0x3ca)]($[_0x4ec95e(0x42e)]),this[_0x4ec95e(0x554)]=!0x0,this[_0x4ec95e(0x3e5)]=null),_0x22e019===b[_0x4ec95e(0x489)]&&this[_0x4ec95e(0x501)](),this[_0x4ec95e(0x579)]();}[_0x945337(0x579)](){const _0x14cc36=_0x945337;var _0x1fb4c7;this[_0x14cc36(0x21c)](),this[_0x14cc36(0x529)]=window[_0x14cc36(0x191)](()=>this[_0x14cc36(0x1bf)](),(_0x1fb4c7=this['_configService'][_0x14cc36(0x258)](dt))!=null?_0x1fb4c7:qt);}['_sendHeartbeat'](){const _0x3dfffe=_0x945337;this[_0x3dfffe(0x3fe)]['send']({'cmd':b[_0x3dfffe(0x489)]}),this['_waitForHeartbeatResponse']();}[_0x945337(0x2dc)](){const _0x2b0382=_0x945337;var _0x3471ab;this['_timeoutTimer']=window[_0x2b0382(0x191)](()=>this[_0x2b0382(0x4de)](),(_0x3471ab=this[_0x2b0382(0x4f8)][_0x2b0382(0x258)](Ve))!=null?_0x3471ab:St);}[_0x945337(0x21c)](){const _0x2e418b=_0x945337;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2e418b(0x529)]),this[_0x2e418b(0x529)]=null);}[_0x945337(0x501)](){const _0x29fbbe=_0x945337;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fbbe(0x475)]),this[_0x29fbbe(0x475)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a['Inject'](a['Injector'])),Z(0x1,a[_0x945337(0x4fa)](a['LocaleService'])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x945337(0x48c)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x945337(0x24b)],Is=Object[_0x945337(0x3e2)],ps=(_0x4b9396,_0x5d20c2,_0x594158,_0x4b664b)=>{for(var _0xf8506=_0x4b664b>0x1?void 0x0:_0x4b664b?Is(_0x5d20c2,_0x594158):_0x5d20c2,_0x11145b=_0x4b9396['length']-0x1,_0x872b46;_0x11145b>=0x0;_0x11145b--)(_0x872b46=_0x4b9396[_0x11145b])&&(_0xf8506=(_0x4b664b?_0x872b46(_0x5d20c2,_0x594158,_0xf8506):_0x872b46(_0xf8506))||_0xf8506);return _0x4b664b&&_0xf8506&&ms(_0x5d20c2,_0x594158,_0xf8506),_0xf8506;},De=(_0x432036,_0x5b274e)=>(_0x49a5c9,_0x24dff3)=>_0x5b274e(_0x49a5c9,_0x24dff3,_0x432036);let fe=class{constructor(_0x528c38,_0x3ca70a,_0x1bb1c2){const _0x1dac88=_0x945337;this[_0x1dac88(0x3dd)]=_0x528c38,this[_0x1dac88(0x4f2)]=_0x3ca70a,this[_0x1dac88(0x277)]=_0x1bb1c2;}[_0x945337(0x1d1)](_0x4b4948){const _0x146011=_0x945337;this['_transformUndoRedoStack'](_0x4b4948),this[_0x146011(0x511)](_0x4b4948);}[_0x945337(0x201)](_0x52b687){const _0x39ea5d=_0x945337,{unitID:_0x2eb46e}=_0x52b687,_0x399d98=this[_0x39ea5d(0x277)][_0x39ea5d(0x474)](_0x2eb46e)[_0x39ea5d(0x545)](w['DocIMEInputManagerService']),{redoCache:_0x51ac2e}=_0x399d98['getUndoRedoMutationParamsCache']();if(_0x51ac2e[_0x39ea5d(0x3f0)]===0x0)return _0x52b687;let _0x327089=a['Tools'][_0x39ea5d(0x2fe)](_0x52b687[_0x39ea5d(0x435)][0x0]);for(let _0x138ab1=0x0;_0x138ab1<_0x51ac2e[_0x39ea5d(0x3f0)];_0x138ab1++){const _0x208ba8={'id':_0x39ea5d(0x333),'params':{..._0x51ac2e[_0x138ab1]}},_0x27c8c4=this[_0x39ea5d(0x4f2)][_0x39ea5d(0x34c)](_0x327089,_0x208ba8,!0x1);if(_[_0x39ea5d(0x420)](_0x27c8c4))throw _0x27c8c4['error'];_0x327089=_0x27c8c4[_0x39ea5d(0x1f9)];}return{...a[_0x39ea5d(0x4ea)][_0x39ea5d(0x2fe)](_0x52b687),'mutations':[_0x327089]};}[_0x945337(0x456)](_0x30bf68){const _0x4343c1=_0x945337,{unitID:_0xb5490}=_0x30bf68,_0x2c6277=this[_0x4343c1(0x277)][_0x4343c1(0x474)](_0xb5490)[_0x4343c1(0x545)](w['DocIMEInputManagerService']),{undoCache:_0x5dd7e4,redoCache:_0xd9c821}=_0x2c6277[_0x4343c1(0x3f6)]();if(_0x5dd7e4['length']===0x0||_0xd9c821[_0x4343c1(0x3f0)]===0x0)return;const _0x53fd79=[],_0x597bab=[];let _0x5948e0=a[_0x4343c1(0x4ea)][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]),_0xc7b081=a['Tools'][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]);for(let _0x52e81f=_0x5dd7e4[_0x4343c1(0x3f0)]-0x1;_0x52e81f>=0x0;_0x52e81f--){const _0x18284c={'id':_0x4343c1(0x333),'params':{..._0x5dd7e4[_0x52e81f]}},_0x38be56={'id':_0x4343c1(0x333),'params':{..._0xd9c821[_0x52e81f]}},_0x2ee338=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0x5948e0,_0x18284c,!0x1),_0x2a68ce=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0xc7b081,_0x38be56,!0x1);if(_[_0x4343c1(0x420)](_0x2ee338))throw _0x2ee338[_0x4343c1(0x2e8)];if(_[_0x4343c1(0x420)](_0x2a68ce))throw _0x2a68ce[_0x4343c1(0x2e8)];_0x53fd79['unshift'](_0x2ee338[_0x4343c1(0x178)][_0x4343c1(0x17c)]),_0x597bab[_0x4343c1(0x3c8)](_0x2a68ce['m2Prime'][_0x4343c1(0x17c)]),_0x5948e0=_0x2ee338[_0x4343c1(0x1f9)],_0xc7b081=_0x2a68ce[_0x4343c1(0x1f9)];}_0x2c6277[_0x4343c1(0x37e)]({'undoCache':_0x53fd79,'redoCache':_0x597bab});}[_0x945337(0x511)](_0x435d39){const _0x127cd4=_0x945337,{unitID:_0x41f330}=_0x435d39,_0x422320=this[_0x127cd4(0x277)][_0x127cd4(0x474)](_0x41f330)['with'](w[_0x127cd4(0x349)]),_0x3bf790=_0x422320['getActiveRange']();if(_0x3bf790==null)return;const _0x18198f=[{'id':_0x127cd4(0x333),'params':{'unitId':_0x435d39[_0x127cd4(0x1da)],'actions':null,'textRanges':[_0x3bf790]}}],_0x1531a6=this[_0x127cd4(0x4f2)][_0x127cd4(0x4df)](_0x435d39,_0x18198f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1531a6))throw _0x1531a6[_0x127cd4(0x2e8)];const _0x59ad35=_0x1531a6['m2Prime'][0x0][_0x127cd4(0x17c)]['textRanges'];Array[_0x127cd4(0x48e)](_0x59ad35)&&_0x59ad35[_0x127cd4(0x3f0)]&&_0x422320[_0x127cd4(0x345)](_0x59ad35[0x0]);}};fe=ps([De(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),De(0x1,_[_0x945337(0x429)]),De(0x2,R[_0x945337(0x2c4)])],fe);var Cs=Object[_0x945337(0x24b)],Es=Object[_0x945337(0x3e2)],bs=(_0x47e384,_0x315431,_0x320af2,_0x2ca51c)=>{const _0x113c19=_0x945337;for(var _0xfeb2e7=_0x2ca51c>0x1?void 0x0:_0x2ca51c?Es(_0x315431,_0x320af2):_0x315431,_0x2d73e2=_0x47e384[_0x113c19(0x3f0)]-0x1,_0x4e02ab;_0x2d73e2>=0x0;_0x2d73e2--)(_0x4e02ab=_0x47e384[_0x2d73e2])&&(_0xfeb2e7=(_0x2ca51c?_0x4e02ab(_0x315431,_0x320af2,_0xfeb2e7):_0x4e02ab(_0xfeb2e7))||_0xfeb2e7);return _0x2ca51c&&_0xfeb2e7&&Cs(_0x315431,_0x320af2,_0xfeb2e7),_0xfeb2e7;},ae=(_0x13c6b3,_0x260db6)=>(_0x440024,_0x3caa59)=>_0x260db6(_0x440024,_0x3caa59,_0x13c6b3);exports[_0x945337(0x3a3)]=class extends a['Disposable']{constructor(_0x65f8fc,_0x146c58,_0x5a2332,_0xb2b72b,_0x81ffe3){const _0x140260=_0x945337;super(),d(this,_0x140260(0x2b1),new Map()),d(this,_0x140260(0x1db),new Map()),d(this,'_disabled',!0x1),(this[_0x140260(0x4f8)]=_0x65f8fc,this[_0x140260(0x1b3)]=_0x146c58,this[_0x140260(0x22a)]=_0x5a2332,this[_0x140260(0x21a)]=_0xb2b72b,this[_0x140260(0x1df)]=_0x81ffe3,this[_0x140260(0x332)]());}[_0x945337(0x19e)](){this['_disabled']=!0x0;}[_0x945337(0x3ea)](){const _0xcaaef3=_0x945337;this[_0xcaaef3(0x339)]=!0x1;}[_0x945337(0x1eb)](){const _0x347815=_0x945337;this[_0x347815(0x249)]()[_0x347815(0x33c)](()=>super['dispose']());}async[_0x945337(0x2d0)](_0x31f37e){const _0x12bbda=_0x945337;return this[_0x12bbda(0x339)]?null:this[_0x12bbda(0x1b3)][_0x12bbda(0x373)](Qe(_0x31f37e));}async[_0x945337(0x1d5)](_0x5f08dc,_0x2c69b5){const _0x5483e2=_0x945337;return!!this['_localStorageService'][_0x5483e2(0x539)](_0x5f08dc,_0x2c69b5);}[_0x945337(0x478)](_0x341bef,_0x208bb2,_0x4c9658,_0x279f9d){const _0x54a35c=_0x945337,_0x4c1c2d=this[_0x54a35c(0x1df)]['getCurrentRevOfUnit'](_0x341bef);this[_0x54a35c(0x2b1)]['set'](_0x341bef,{'unitID':_0x341bef,'type':_0x208bb2,'awaitingChangeset':_0x4c9658,'mutations':_0x279f9d,'rev':_0x4c1c2d}),this[_0x54a35c(0x1db)][_0x54a35c(0x384)](_0x341bef)||this[_0x54a35c(0x379)](_0x341bef);}[_0x945337(0x379)](_0x4ca41d){const _0x54f158=_0x945337,_0x13bd0a=this['_getSaveTimeout']();_0x13bd0a===0x0?this[_0x54f158(0x1ba)](_0x4ca41d):this[_0x54f158(0x1db)][_0x54f158(0x4a8)](_0x4ca41d,setTimeout(()=>this[_0x54f158(0x1ba)](_0x4ca41d),_0x13bd0a));}['_getSaveTimeout'](){const _0x5ac85e=_0x945337;var _0x378131;return(_0x378131=this[_0x5ac85e(0x4f8)][_0x5ac85e(0x258)](ft))!=null?_0x378131:Zt;}[_0x945337(0x1ba)](_0x19f5c2){const _0x5e1702=_0x945337,_0x183774=this[_0x5e1702(0x1db)][_0x5e1702(0x3eb)](_0x19f5c2);return _0x183774!==void 0x0&&window['clearTimeout'](_0x183774),this['_localStorageService'][_0x5e1702(0x539)](Qe(_0x19f5c2),this['_cachedData'][_0x5e1702(0x3eb)](_0x19f5c2))[_0x5e1702(0x33c)](()=>this[_0x5e1702(0x1db)][_0x5e1702(0x532)](_0x19f5c2));}async[_0x945337(0x249)](){const _0xa23ab1=_0x945337,_0x3d39f1=[];this[_0xa23ab1(0x1db)][_0xa23ab1(0x278)]((_0x2f298b,_0x239d12)=>{const _0x43017e=_0xa23ab1;window['clearTimeout'](_0x2f298b),_0x3d39f1[_0x43017e(0x3b0)](this[_0x43017e(0x1ba)](_0x239d12)[_0x43017e(0x33c)](()=>{const _0x143674=_0x43017e;this[_0x143674(0x1db)]['delete'](_0x239d12);}));}),await Promise['all'](_0x3d39f1);}['_setupBeforeClosingHandler'](){const _0x12eb03=_0x945337;this[_0x12eb03(0x50a)](this[_0x12eb03(0x22a)][_0x12eb03(0x226)](()=>{const _0x2685de=_0x12eb03;if(this['_saveTaskMap'][_0x2685de(0x17e)])return this['_localeService']['t'](_0x2685de(0x37d));}));}},exports[_0x945337(0x3a3)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x945337(0x4f0)]),ae(0x3,a['Inject'](a[_0x945337(0x299)])),ae(0x4,a[_0x945337(0x4fa)](_[_0x945337(0x574)]))],exports['LocalCacheService']);function Qe(_0x197f2a){const _0x29af2a=_0x945337;return _0x29af2a(0x214)+_0x197f2a;}var Ts=Object[_0x945337(0x24b)],Rs=Object[_0x945337(0x3e2)],Os=(_0x29a423,_0x43510c,_0x4108aa,_0x4baeeb)=>{const _0x3eb295=_0x945337;for(var _0x599eaf=_0x4baeeb>0x1?void 0x0:_0x4baeeb?Rs(_0x43510c,_0x4108aa):_0x43510c,_0x5df3ba=_0x29a423[_0x3eb295(0x3f0)]-0x1,_0x259bd8;_0x5df3ba>=0x0;_0x5df3ba--)(_0x259bd8=_0x29a423[_0x5df3ba])&&(_0x599eaf=(_0x4baeeb?_0x259bd8(_0x43510c,_0x4108aa,_0x599eaf):_0x259bd8(_0x599eaf))||_0x599eaf);return _0x4baeeb&&_0x599eaf&&Ts(_0x43510c,_0x4108aa,_0x599eaf),_0x599eaf;},ye=(_0x3878d6,_0x288cbf)=>(_0x17d82b,_0x481ce9)=>_0x288cbf(_0x17d82b,_0x481ce9,_0x3878d6);function Ds(_0x24aca8){const _0x1f988d=_0x945337,{unitID:_0x4472a7,mutations:_0x534153}=_0x24aca8;return{'unitId':_0x4472a7,'subUnitId':_0x534153[0x0][_0x1f988d(0x17c)][_0x1f988d(0x215)]};}let ge=class{constructor(_0x27abcf,_0x583db8,_0x6443df){const _0xfadf4e=_0x945337;this[_0xfadf4e(0x3dd)]=_0x27abcf,this[_0xfadf4e(0x4f2)]=_0x583db8,this[_0xfadf4e(0x3f4)]=_0x6443df;}[_0x945337(0x463)](_0x2ac23a){const _0xf87398=_0x945337;var _0x2ff856,_0x4ca257,_0x5f2be0,_0x417246;const _0x1658d0=this['_injector'][_0xf87398(0x3eb)](C[_0xf87398(0x403)]),{unitId:_0x1c11f5,subUnitId:_0x362f3f}=Ds(_0x2ac23a),_0x4e53c9=_0x1658d0[_0xf87398(0x471)](_0x1c11f5)[_0xf87398(0x57f)](),_0x30e285=(_0x4ca257=(_0x2ff856=this[_0xf87398(0x3f4)]['getUnit'](_0x1c11f5))==null?void 0x0:_0x2ff856[_0xf87398(0x4be)]())==null?void 0x0:_0x4ca257['getSheetId']();if(_0x4e53c9[_0xf87398(0x3f0)]===0x0||!_0x1c11f5||!_0x362f3f)return;const _0x5323cd=[{'id':C[_0xf87398(0x4d1)]['id'],'params':{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':a['Tools'][_0xf87398(0x2fe)](_0x4e53c9)}}],_0x4eea70=this[_0xf87398(0x4f2)][_0xf87398(0x4df)](_0x2ac23a,_0x5323cd);if(!_[_0xf87398(0x3f7)](_0x4eea70))throw _0x4eea70[_0xf87398(0x2e8)];const _0x8e4cc6=(_0x417246=(_0x5f2be0=_0x4eea70['m2Prime'][0x0])==null?void 0x0:_0x5f2be0[_0xf87398(0x17c)])==null?void 0x0:_0x417246[_0xf87398(0x53f)];Array[_0xf87398(0x48e)](_0x8e4cc6)&&_0x8e4cc6[_0xf87398(0x3f0)]&&this['_injector'][_0xf87398(0x3eb)](a[_0xf87398(0x400)])[_0xf87398(0x505)](C['SetSelectionsOperation']['id'],{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':_0x8e4cc6});}};ge=Os([ye(0x0,a['Inject'](a['Injector'])),ye(0x1,_[_0x945337(0x429)]),ye(0x2,a[_0x945337(0x57b)])],ge);const be=a[_0x945337(0x36a)](_0x945337(0x26a));var bt=(_0x4c216c=>(_0x4c216c[_0x4c216c[_0x945337(0x4d4)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4c216c[_0x4c216c[_0x945337(0x2fd)]=0x1]=_0x945337(0x2fd),_0x4c216c))(bt||{});const et=0x7530,tt=_0x945337(0x1fa);class ys extends a['Disposable']{constructor(){const _0x4689d4=_0x945337;super(),d(this,_0x4689d4(0x534),a[_0x4689d4(0x4ea)][_0x4689d4(0x227)]()),d(this,_0x4689d4(0x4b3),new Set()),d(this,'_unitOnClients',new Map()),d(this,'_heartbeatTimer',null),d(this,_0x4689d4(0x204),new Map()),d(this,_0x4689d4(0x2c5),new Map()),this[_0x4689d4(0x458)]();}[_0x945337(0x1eb)](){const _0x1c755b=_0x945337;super[_0x1c755b(0x1eb)](),this[_0x1c755b(0x204)][_0x1c755b(0x278)]((_0x4b6e43,_0x5bf2fa)=>this[_0x1c755b(0x4f9)](_0x5bf2fa)),this[_0x1c755b(0x1bb)]&&window[_0x1c755b(0x453)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xf27a3a){const _0x24355c=_0x945337;return this[_0x24355c(0x472)](_0xf27a3a)[_0x24355c(0x550)](v[_0x24355c(0x578)]());}[_0x945337(0x507)](_0x3ba87b){const _0x37a4b5=_0x945337;this[_0x37a4b5(0x4b3)]['size']===0x0&&this[_0x37a4b5(0x49a)](),this['_selfUnitIDs']['add'](_0x3ba87b),this[_0x37a4b5(0x583)]({'type':0x0,'memberID':this[_0x37a4b5(0x534)],'unitIDs':[_0x3ba87b],'isForwarded':!0x1});}[_0x945337(0x4c9)](_0x288dc0){const _0x15c026=_0x945337;this[_0x15c026(0x4b3)][_0x15c026(0x532)](_0x288dc0),this['_selfUnitIDs'][_0x15c026(0x17e)]===0x0&&this[_0x15c026(0x1bb)]&&window[_0x15c026(0x453)](this['_heartbeatTimer']);}[_0x945337(0x458)](){const _0xcfc091=_0x945337;this[_0xcfc091(0x50a)](a[_0xcfc091(0x296)](v[_0xcfc091(0x223)](window,_0xcfc091(0x31c))[_0xcfc091(0x397)](_0x2411ca=>{const _0x3ea18f=_0xcfc091;if(_0x2411ca[_0x3ea18f(0x269)]!==tt||!_0x2411ca[_0x3ea18f(0x287)])return;const _0x57372e=JSON[_0x3ea18f(0x2e0)](_0x2411ca['newValue']);this[_0x3ea18f(0x1c7)](_0x57372e);}))),window['addEventListener']('unload',()=>this[_0xcfc091(0x583)]({'type':0x1,'memberID':this[_0xcfc091(0x534)],'unitIDs':Array[_0xcfc091(0x3f2)](this[_0xcfc091(0x4b3)])}));}[_0x945337(0x1c7)](_0x1cc4e1){const _0x2a4f80=_0x945337;switch(_0x1cc4e1[_0x2a4f80(0x243)]){case 0x0:this[_0x2a4f80(0x23b)](_0x1cc4e1);break;case 0x1:this[_0x2a4f80(0x2e6)](_0x1cc4e1);break;case 0x2:this[_0x2a4f80(0x3d5)](_0x1cc4e1);break;}}['_handleJoinEvent'](_0x8f6b67){const _0x5e59d1=_0x945337,{unitIDs:_0x42f0cb,memberID:_0x230bb3,isForwarded:_0x3e143e}=_0x8f6b67;_0x42f0cb['forEach'](_0x12936e=>{const _0x21a12a=_0x38f3;if(!_0x3e143e&&this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)&&this[_0x21a12a(0x472)](_0x12936e)[_0x21a12a(0x3ca)](0x1),!this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)||!this[_0x21a12a(0x254)]['get'](_0x12936e)[_0x21a12a(0x384)](_0x230bb3)){const _0x418327=this['_unitOnClients'][_0x21a12a(0x3eb)](_0x12936e)||new Set();_0x418327[_0x21a12a(0x18a)](_0x230bb3),this[_0x21a12a(0x254)]['set'](_0x12936e,_0x418327),this[_0x21a12a(0x3d4)](_0x230bb3);}}),_0x3e143e||this[_0x5e59d1(0x583)]({'type':0x0,'memberID':this[_0x5e59d1(0x534)],'unitIDs':[...this[_0x5e59d1(0x4b3)]],'isForwarded':!0x0});}[_0x945337(0x3d4)](_0x8582dd){const _0x36fc95=_0x945337;this[_0x36fc95(0x4f9)](_0x8582dd);const _0x30eed1=window[_0x36fc95(0x191)](()=>{const _0x295644=_0x36fc95;this['_unitOnClients'][_0x295644(0x278)](_0x278f4a=>{const _0x55b4f6=_0x295644;_0x278f4a[_0x55b4f6(0x532)](_0x8582dd);});},et*0x2);this[_0x36fc95(0x204)][_0x36fc95(0x4a8)](_0x8582dd,_0x30eed1);}[_0x945337(0x4f9)](_0x1602ca){const _0x4a0fe7=_0x945337;if(this[_0x4a0fe7(0x204)][_0x4a0fe7(0x384)](_0x1602ca)){const _0x358cd4=this['_clearOtherTimers'][_0x4a0fe7(0x3eb)](_0x1602ca);_0x358cd4&&window[_0x4a0fe7(0x509)](_0x358cd4),this['_clearOtherTimers'][_0x4a0fe7(0x4a8)](_0x1602ca,null);}}[_0x945337(0x2e6)](_0x5eeca9){const _0x1dd8b2=_0x945337,{memberID:_0x189aa1,unitIDs:_0x5c65db}=_0x5eeca9;_0x5c65db['forEach'](_0xa91862=>{const _0x55173c=_0x38f3;var _0x375d31;const _0x2d0be6=this[_0x55173c(0x254)][_0x55173c(0x3eb)](_0xa91862);_0x2d0be6&&(_0x2d0be6[_0x55173c(0x532)](_0x189aa1),(_0x375d31=this[_0x55173c(0x472)](_0xa91862))==null||_0x375d31[_0x55173c(0x3ca)](_0x2d0be6[_0x55173c(0x17e)]===0x0?0x0:0x1));}),this[_0x1dd8b2(0x4f9)](_0x189aa1);}['_handleHeartbeatEvent'](_0x177aee){const _0x15071a=_0x945337;this[_0x15071a(0x3d4)](_0x177aee[_0x15071a(0x2ab)]);}['_send'](_0x826abf){const _0x162eee=_0x945337;localStorage[_0x162eee(0x539)](tt,JSON[_0x162eee(0x22d)](_0x826abf));}['_scheduleHeartbeat'](){const _0x482c89=_0x945337;this[_0x482c89(0x1bb)]=window[_0x482c89(0x330)](()=>{const _0x4a2553=_0x482c89;this[_0x4a2553(0x583)]({'type':0x2,'memberID':this['_id']});},et);}[_0x945337(0x472)](_0x119ef7){const _0x3b85c1=_0x945337;return this[_0x3b85c1(0x2c5)]['has'](_0x119ef7)||this['_unitStatus'][_0x3b85c1(0x4a8)](_0x119ef7,new v[(_0x3b85c1(0x52c))](0x0)),this[_0x3b85c1(0x2c5)]['get'](_0x119ef7);}}function Tt(_0x124cab){const _0x3084e1=_0x945337;let _0x390d60='';for(const _0x599cc5 of _0x124cab){const {startOffset:_0x227c3b,endOffset:_0x1ed78d,isActive:_0x3eac78}=_0x599cc5;_0x390d60[_0x3084e1(0x3f0)]&&(_0x390d60+=','),_0x390d60+=_0x227c3b+':'+_0x1ed78d+':'+(_0x3eac78?'1':'0');}return _0x390d60;}function Us(_0x155c39){const _0x25300d=_0x945337,_0x2f9a0f=_0x155c39[_0x25300d(0x45c)](','),_0x2ee330=[];for(const _0x2775b0 of _0x2f9a0f){const [_0xddd380,_0x472e34,_0xcb986c]=_0x2775b0[_0x25300d(0x45c)](':');_0x2ee330[_0x25300d(0x3b0)]({'startOffset':Number(_0xddd380),'endOffset':Number(_0x472e34),'collapsed':_0xddd380===_0x472e34,'isActive':_0xcb986c==='1'});}return _0x2ee330['some'](_0x12e785=>_0x12e785[_0x25300d(0x3db)])||(_0x2ee330[0x0][_0x25300d(0x3db)]=!0x0),_0x2ee330;}class Ye extends a[_0x945337(0x538)]{constructor(){const _0x5bee9e=_0x945337;super(...arguments),d(this,_0x5bee9e(0x582),new v[(_0x5bee9e(0x52c))](null)),d(this,_0x5bee9e(0x23e),this[_0x5bee9e(0x582)][_0x5bee9e(0x19b)]());}[_0x945337(0x271)](_0xe5d895){const _0x1f4eee=_0x945337,{unitID:_0x57aa10,memberID:_0x31f9f2,textRanges:_0x9fcf74}=_0xe5d895,_0xa0bfcd=Tt(_0x9fcf74),_0x52e83f={'unitID':_0x57aa10,'memberID':_0x31f9f2,'selection':_0xa0bfcd};this[_0x1f4eee(0x582)][_0x1f4eee(0x3ca)](_0x52e83f);}}var Ps=Object[_0x945337(0x24b)],ws=Object[_0x945337(0x3e2)],Ms=(_0x148505,_0x2934bf,_0x21ead1,_0x1d521b)=>{const _0x3ea87f=_0x945337;for(var _0x479a63=_0x1d521b>0x1?void 0x0:_0x1d521b?ws(_0x2934bf,_0x21ead1):_0x2934bf,_0x156423=_0x148505[_0x3ea87f(0x3f0)]-0x1,_0x232b95;_0x156423>=0x0;_0x156423--)(_0x232b95=_0x148505[_0x156423])&&(_0x479a63=(_0x1d521b?_0x232b95(_0x2934bf,_0x21ead1,_0x479a63):_0x232b95(_0x479a63))||_0x479a63);return _0x1d521b&&_0x479a63&&Ps(_0x2934bf,_0x21ead1,_0x479a63),_0x479a63;},st=(_0x4ce950,_0xac32a3)=>(_0x50bd13,_0x4c4814)=>_0xac32a3(_0x50bd13,_0x4c4814,_0x4ce950);let me=class{constructor(_0x3b16f8,_0x5127c5){const _0x123759=_0x945337;this[_0x123759(0x3dd)]=_0x3b16f8,this[_0x123759(0x4f2)]=_0x5127c5;}[_0x945337(0x463)](_0x133cb1){const _0x3e3eb0=_0x945337;var _0x2bc918;const _0x5ecf6d=this[_0x3e3eb0(0x3dd)][_0x3e3eb0(0x3eb)](V[_0x3e3eb0(0x1e0)]),_0xd2b192=(_0x2bc918=_0x5ecf6d[_0x3e3eb0(0x351)]())!=null?_0x2bc918:[];if(_0xd2b192[_0x3e3eb0(0x3f0)]===0x0)return;const _0x5e21ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133cb1[_0x3e3eb0(0x1da)],'actions':null,'textRanges':_0xd2b192}}],_0x128103=this[_0x3e3eb0(0x4f2)][_0x3e3eb0(0x4df)](_0x133cb1,_0x5e21ef);if(!_['isTransformMutationsWithChangesetSuccess'](_0x128103))throw _0x128103[_0x3e3eb0(0x2e8)];const _0x41615b=_0x128103[_0x3e3eb0(0x178)][0x0]['params'][_0x3e3eb0(0x485)];Array[_0x3e3eb0(0x48e)](_0x41615b)&&_0x41615b['length']&&_0x5ecf6d['replaceTextRanges'](_0x41615b,!0x1);}};me=Ms([st(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),st(0x1,_[_0x945337(0x429)])],me);const Ns=new Set([C[_0x945337(0x1b4)]['id']]);function it(_0x2178e8,_0x490897,_0x25d842,_0x57b35c,_0x10423d){const _0x2d446c=_0x945337;var _0x11795b,_0x4a5109,_0x2192ed,_0x2de3c6;const _0x3483e5=[];for(const _0x253c5d of _0x2178e8)if(Ns[_0x2d446c(0x384)](_0x253c5d['id'])){if(_0x3483e5['length']>0x0)break;_0x3483e5['push'](_0x253c5d);break;}else _0x3483e5[_0x2d446c(0x3b0)](_0x253c5d);const _0x28b66e=(_0x4a5109=(_0x11795b=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x11795b[_0x2d446c(0x4e9)])!=null?_0x4a5109:_0x2d446c(0x45d),_0x1f8cc9=(_0x2de3c6=(_0x2192ed=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x2192ed[_0x2d446c(0x2ab)])!=null?_0x2de3c6:'unknown';return{'changeset':{'unitID':_0x490897,'type':_[_0x2d446c(0x543)](_0x25d842[_0x2d446c(0x27c)](_0x490897)),'baseRev':_0x57b35c[_0x2d446c(0x436)](_0x490897),'revision':0x0,'userID':_0x28b66e,'memberID':_0x1f8cc9,'mutations':_0x3483e5},'pendingMutations':_0x2178e8['slice'](_0x3483e5[_0x2d446c(0x3f0)])};}function As(_0x10828b,_0xe5c7aa,_0x1acfea,_0xaf7c99,_0x398922){const _0x1086cc=_0x945337;var _0x2f3028,_0x38b990,_0x847f92,_0x3326f2;const _0x14bb9c=[_0x10828b[_0x1086cc(0x580)]((_0x16e671,_0x7c8c97)=>{const _0x109d41=_0x1086cc;var _0x46b416;const {id:_0x359a04}=_0x16e671,{id:_0x37aa9c,type:_0x472b07}=_0x7c8c97,_0x2322ff=(_0x46b416=_0x16e671['params'])!=null?_0x46b416:{'actions':null},_0x4e0e4c=_0x7c8c97['params'];if(_0x359a04&&_0x359a04!==_0x37aa9c)throw new Error(_0x109d41(0x514)+_0x359a04+'\x20-\x20'+_0x37aa9c+'.');return{..._0x16e671,'id':_0x37aa9c,'type':_0x472b07,'params':{'unitId':_0x4e0e4c['unitId'],'textRanges':_0x4e0e4c['textRanges'],'actions':a['JSONX'][_0x109d41(0x4b0)](_0x2322ff[_0x109d41(0x3ef)],_0x4e0e4c[_0x109d41(0x3ef)])}};},{})],_0x410337=(_0x38b990=(_0x2f3028=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x2f3028[_0x1086cc(0x4e9)])!=null?_0x38b990:_0x1086cc(0x45d),_0x29e141=(_0x3326f2=(_0x847f92=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x847f92[_0x1086cc(0x2ab)])!=null?_0x3326f2:_0x1086cc(0x45d);return{'changeset':{'unitID':_0xe5c7aa,'type':_[_0x1086cc(0x543)](_0x1acfea[_0x1086cc(0x27c)](_0xe5c7aa)),'baseRev':_0xaf7c99['getCurrentRevOfUnit'](_0xe5c7aa),'revision':0x0,'userID':_0x410337,'memberID':_0x29e141,'mutations':_0x14bb9c},'pendingMutations':[]};}const Ls={'id':C[_0x945337(0x3d7)]['id'],'type':a[_0x945337(0x2fb)]['MUTATION'],'params':{}};var js=Object['defineProperty'],$s=Object[_0x945337(0x3e2)],z=(_0xb40d41,_0x352fe2,_0x337cfa,_0xf5965f)=>{const _0x41500f=_0x945337;for(var _0x25bb19=_0xf5965f>0x1?void 0x0:_0xf5965f?$s(_0x352fe2,_0x337cfa):_0x352fe2,_0x3b2546=_0xb40d41[_0x41500f(0x3f0)]-0x1,_0x7d414d;_0x3b2546>=0x0;_0x3b2546--)(_0x7d414d=_0xb40d41[_0x3b2546])&&(_0x25bb19=(_0xf5965f?_0x7d414d(_0x352fe2,_0x337cfa,_0x25bb19):_0x7d414d(_0x25bb19))||_0x25bb19);return _0xf5965f&&_0x25bb19&&js(_0x352fe2,_0x337cfa,_0x25bb19),_0x25bb19;},g=(_0x3364fb,_0x2a4b89)=>(_0x1f7f1a,_0x291287)=>_0x2a4b89(_0x1f7f1a,_0x291287,_0x3364fb),y=(_0x34c214=>(_0x34c214['NOT_COLLAB']=_0x945337(0x2bd),_0x34c214[_0x945337(0x4fb)]=_0x945337(0x4ad),_0x34c214[_0x945337(0x1a2)]=_0x945337(0x358),_0x34c214[_0x945337(0x2c9)]=_0x945337(0x3ba),_0x34c214[_0x945337(0x564)]=_0x945337(0x1ec),_0x34c214[_0x945337(0x2bf)]=_0x945337(0x24f),_0x34c214[_0x945337(0x486)]=_0x945337(0x3d3),_0x34c214[_0x945337(0x482)]=_0x945337(0x1c1),_0x34c214))(y||{});class J{constructor(_0x50e770,_0x2a2d82,_0x90f9c3,_0x48a2c7,_0x2e369c,_0xada5e8,_0x5e4889,_0xa2c0bc,_0x42caa3){const _0x6b5f80=_0x945337;d(this,_0x6b5f80(0x423),null),d(this,_0x6b5f80(0x194),[]),(this[_0x6b5f80(0x1da)]=_0x50e770,this[_0x6b5f80(0x243)]=_0x2a2d82,this[_0x6b5f80(0x404)]=_0x2e369c,this[_0x6b5f80(0x256)]=_0xada5e8,this[_0x6b5f80(0x217)]=_0x5e4889,this[_0x6b5f80(0x1df)]=_0xa2c0bc,this[_0x6b5f80(0x576)]=_0x42caa3,this[_0x6b5f80(0x423)]=_0x90f9c3,this['_pendingMutations']=_0x48a2c7);}['_checkMissing'](_0xac8a6e){const _0x3aa100=_0x945337,_0x428121=this[_0x3aa100(0x1df)]['getCurrentRevOfUnit'](this[_0x3aa100(0x1da)]);return _0xac8a6e[_0x3aa100(0x289)]>_0x428121+0x1?(this[_0x3aa100(0x404)][_0x3aa100(0x324)]({'from':_0x428121,'to':_0xac8a6e[_0x3aa100(0x289)]-0x1}),!0x0):!0x1;}[_0x945337(0x2c7)](_0x36bed7){const _0x574999=_0x945337;this[_0x574999(0x217)][_0x574999(0x1d0)](this[_0x574999(0x1da)],_0x36bed7);}[_0x945337(0x448)](_0x57629b){const _0x56968d=_0x945337;var _0x232419,_0x47e5c7;(_0x47e5c7=(_0x232419=this['_handler'])[_0x56968d(0x454)])==null||_0x47e5c7['call'](_0x232419,_0x57629b);}[_0x945337(0x334)](_0x53f89c){const _0x37b998=_0x945337;var _0x338d67,_0x28f1f5;return(_0x28f1f5=(_0x338d67=this[_0x37b998(0x404)])[_0x37b998(0x3d2)])==null?void 0x0:_0x28f1f5[_0x37b998(0x441)](_0x338d67,_0x53f89c);}[_0x945337(0x497)](_0x208d53){const _0x526f68=_0x945337;var _0x18100e,_0x281f98,_0x57a774;return(_0x57a774=(_0x281f98=(_0x18100e=this[_0x526f68(0x404)])[_0x526f68(0x1b1)])==null?void 0x0:_0x281f98[_0x526f68(0x441)](_0x18100e,_0x208d53))!=null?_0x57a774:_0x208d53;}[_0x945337(0x2b3)](_0x182f5a){const _0x577cb6=_0x945337;var _0x4d5d7b,_0x490ba8;if(this[_0x577cb6(0x243)]===j['UNIVER_DOC']){const {unitID:_0x5901a2,mutations:_0x48c239,memberID:_0x591151}=_0x182f5a,_0x1a1f27=_0x48c239[0x0]['params'][_0x577cb6(0x485)];Array[_0x577cb6(0x48e)](_0x1a1f27)&&_0x1a1f27[_0x577cb6(0x3f0)]>0x0&&((_0x490ba8=(_0x4d5d7b=this[_0x577cb6(0x404)])[_0x577cb6(0x54a)])==null||_0x490ba8['call'](_0x4d5d7b,{'unitID':_0x5901a2,'memberID':_0x591151,'textRanges':_0x1a1f27}));}}[_0x945337(0x581)](){const _0x609db7=_0x945337;this[_0x609db7(0x576)]['updateOfflineData'](this[_0x609db7(0x1da)],this[_0x609db7(0x243)],this[_0x609db7(0x423)],this['_pendingMutations']);}[_0x945337(0x1c0)](){const _0x27069e=_0x945337;return this[_0x27069e(0x1df)][_0x27069e(0x436)](this[_0x27069e(0x1da)]);}[_0x945337(0x2d7)](){const _0x2a4ca2=_0x945337;this['_revisionService'][_0x2a4ca2(0x4d8)](this['unitID']);}[_0x945337(0x363)](_0x4bf075){const _0x308872=_0x945337;var _0x2fe336;const _0x1d38e4=this['_transformRemoteChangesetByIMECache'](_0x4bf075),_0x13bb8c=a[_0x308872(0x39a)](_0x1d38e4[_0x308872(0x435)],this[_0x308872(0x256)],{'fromCollab':!0x0});if(!_0x13bb8c[_0x308872(0x331)])throw _0x13bb8c[_0x308872(0x2e8)]instanceof Error?_0x13bb8c[_0x308872(0x2e8)]:new Error((_0x2fe336=_0x13bb8c[_0x308872(0x2e8)])!=null?_0x2fe336:_0x308872(0x2de));this[_0x308872(0x334)](_0x1d38e4),this[_0x308872(0x2c7)](_0x4bf075),this[_0x308872(0x448)](_0x1d38e4),this['_syncEditingCollabCursor'](_0x1d38e4),this[_0x308872(0x2d7)]();}}let se=class extends J{constructor(_0x588e6a,_0x47b21d,_0x2df9c7,_0x14389d,_0x56cfb8,_0x207c43,_0x582cb7,_0x2d5af2,_0x4edb3f,_0xe12a29){const _0x2e4554=_0x945337;super(_0x588e6a,_0x47b21d,null,[],_0x2df9c7,_0x2d5af2,_0x582cb7,_0x14389d,_0x56cfb8),d(this,_0x2e4554(0x44d),'synced'),(this[_0x2e4554(0x3dd)]=_0x207c43,this[_0x2e4554(0x4ae)]=_0x4edb3f,this[_0x2e4554(0x4f2)]=_0xe12a29);}[_0x945337(0x561)](_0x137776){const _0x293b6e=_0x945337,_0x18f7f8=this['_injector'][_0x293b6e(0x39d)](x,this[_0x293b6e(0x1da)],this[_0x293b6e(0x243)],[_0x137776],this[_0x293b6e(0x404)]);return _0x18f7f8[_0x293b6e(0x2bc)](),_0x18f7f8[_0x293b6e(0x581)](),_0x18f7f8;}['onRemoteChangeset'](_0x2937bc){const _0x269718=_0x945337;if(this[_0x269718(0x35d)](_0x2937bc))return this['_injector'][_0x269718(0x39d)](H,this[_0x269718(0x1da)],this[_0x269718(0x243)],null,[],null,[_0x2937bc],this['_handler']);try{const _0x304193=this['_transformService'][_0x269718(0x4df)](_0x2937bc,[Ls]);if(_[_0x269718(0x3f7)](_0x304193)){const {c1Prime:_0x27075e}=_0x304193;return this['_executeRemoteChangeset'](_0x27075e),this;}throw _0x304193['error'];}catch(_0x2476ea){return this[_0x269718(0x4ae)][_0x269718(0x2e8)](_0x2476ea),this[_0x269718(0x3f5)](!0x1);}}[_0x945337(0x3f5)](_0x59732d){const _0x4a2cc9=_0x945337;return this[_0x4a2cc9(0x3dd)][_0x4a2cc9(0x39d)](F,this[_0x4a2cc9(0x1da)],this[_0x4a2cc9(0x243)],null,[],this[_0x4a2cc9(0x404)],_0x59732d);}['onRemoteAck'](){const _0x2669ee=_0x945337;throw new Error(_0x2669ee(0x50e));}[_0x945337(0x294)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x945337(0x506)](){const _0x1c6831=_0x945337;return this[_0x1c6831(0x3dd)][_0x1c6831(0x39d)](G,this[_0x1c6831(0x1da)],this['type'],null,[],this[_0x1c6831(0x404)]);}[_0x945337(0x267)](){return this;}[_0x945337(0x4a4)](){const _0x2fa7a6=_0x945337;throw new Error(_0x2fa7a6(0x3d8));}[_0x945337(0x2e2)](){const _0x5443c8=_0x945337,_0x3db652=this[_0x5443c8(0x1df)]['getCurrentRevOfUnit'](this[_0x5443c8(0x1da)]);return this[_0x5443c8(0x404)][_0x5443c8(0x324)]({'from':_0x3db652,'to':0x0}),this[_0x5443c8(0x3dd)]['createInstance'](H,this[_0x5443c8(0x1da)],this[_0x5443c8(0x243)],null,[],null,[],this[_0x5443c8(0x404)]);}};se=z([g(0x3,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x4,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x38b)]),g(0x7,a[_0x945337(0x400)]),g(0x8,a['ILogService']),g(0x9,_[_0x945337(0x429)])],se);let x=class extends J{constructor(_0x412cff,_0x57aebd,_0x572848,_0xdce8c8,_0x5ee1d2,_0x51abab,_0x34e288,_0x8e86e1,_0x46e0de,_0x4ff8a8,_0x5434dd,_0x50d27e,_0xaf42f5,_0x689533){const _0x18f15a=_0x945337;super(_0x412cff,_0x57aebd,null,_0x572848,_0xdce8c8,_0x4ff8a8,_0x689533,_0x51abab,_0x34e288),d(this,_0x18f15a(0x44d),_0x18f15a(0x358)),d(this,_0x18f15a(0x41b),null),d(this,_0x18f15a(0x549),null),(this[_0x18f15a(0x3dd)]=_0x5ee1d2,this[_0x18f15a(0x526)]=_0x8e86e1,this['_logService']=_0x46e0de,this[_0x18f15a(0x4f8)]=_0x5434dd,this[_0x18f15a(0x4f2)]=_0x50d27e,this[_0x18f15a(0x337)]=_0xaf42f5);}['appendMutation'](_0x5d52b0){const _0x4e4ba6=_0x945337;return this[_0x4e4ba6(0x194)]['push'](_0x5d52b0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xeda696){const _0x105be4=_0x945337;if(this[_0x105be4(0x35d)](_0xeda696))return this[_0x105be4(0x47e)](),this[_0x105be4(0x3dd)]['createInstance'](H,this[_0x105be4(0x1da)],this[_0x105be4(0x243)],null,this[_0x105be4(0x194)],null,[_0xeda696],this[_0x105be4(0x404)]);try{const _0x4b13bc=this[_0x105be4(0x4f2)][_0x105be4(0x4df)](_0xeda696,this[_0x105be4(0x194)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4b13bc)){const {c1Prime:_0x815735,m2Prime:_0x2410ec}=_0x4b13bc;this[_0x105be4(0x363)](_0x815735);const _0x59ccba=this[_0x105be4(0x3dd)][_0x105be4(0x39d)](x,this['unitID'],this[_0x105be4(0x243)],_0x2410ec,this[_0x105be4(0x404)]);return this[_0x105be4(0x47e)](),_0x59ccba[_0x105be4(0x2bc)](this['_scheduleTimestamp']?Math[_0x105be4(0x25c)](0x0,new Date()[_0x105be4(0x548)]()-this[_0x105be4(0x41b)]):this[_0x105be4(0x2dd)]()),_0x59ccba;}throw _0x4b13bc[_0x105be4(0x2e8)];}catch(_0x390393){return this[_0x105be4(0x4ae)][_0x105be4(0x2e8)](_0x390393),this[_0x105be4(0x3f5)](!0x1);}}['onRemoteAck'](){const _0x1b86cf=_0x945337;throw new Error(_0x1b86cf(0x4a0));}[_0x945337(0x294)](){const _0x2229a7=_0x945337;throw new Error(_0x2229a7(0x516));}['toggleOffline'](){const _0x15b610=_0x945337;return this[_0x15b610(0x47e)](),this[_0x15b610(0x3dd)]['createInstance'](G,this[_0x15b610(0x1da)],this[_0x15b610(0x243)],null,this[_0x15b610(0x194)],this[_0x15b610(0x404)]);}['toggleOnline'](){return this;}['_schedule'](_0x2cf31e){const _0x5eab48=_0x945337,_0x21f151=_0x2cf31e!=null?_0x2cf31e:this[_0x5eab48(0x2dd)]();this['_scheduleTimestamp']=new Date()[_0x5eab48(0x548)](),this[_0x5eab48(0x549)]=window[_0x5eab48(0x191)](()=>{const _0x14800d=_0x5eab48;this[_0x14800d(0x47e)]();let _0x10f2af=null;switch(this[_0x14800d(0x243)]){case j[_0x14800d(0x53c)]:{_0x10f2af=it(this[_0x14800d(0x194)],this['unitID'],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}case j[_0x14800d(0x395)]:{this[_0x14800d(0x194)]['every'](_0x21d9ea=>_0x21d9ea['id']===V[_0x14800d(0x316)]['id'])?_0x10f2af=As(this[_0x14800d(0x194)],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]):_0x10f2af=it(this['_pendingMutations'],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}default:throw new Error(_0x14800d(0x31d)+this[_0x14800d(0x243)]+_0x14800d(0x2f2));}const {changeset:_0x1029c3,pendingMutations:_0x611d72}=_0x10f2af;this[_0x14800d(0x404)][_0x14800d(0x468)](_0x1029c3);const _0xc792f7=_0x611d72['length']?this[_0x14800d(0x3dd)][_0x14800d(0x39d)](k,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,_0x611d72,this[_0x14800d(0x404)]):this['_injector'][_0x14800d(0x39d)](W,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,this[_0x14800d(0x404)]);_0xc792f7['_updateLocalCache'](),this[_0x14800d(0x404)][_0x14800d(0x20e)](this,_0xc792f7);},_0x21f151);}[_0x945337(0x2dd)](){const _0x3fc188=_0x945337;var _0xba7890;const _0xaf034=this[_0x3fc188(0x4f8)]['getConfig'](A);return(_0xba7890=_0xaf034==null?void 0x0:_0xaf034['sendChangesetTimeout'])!=null?_0xba7890:Kt;}[_0x945337(0x4a4)](){const _0x4bf310=_0x945337;throw new Error(_0x4bf310(0x1cf));}['_clearScheduledTask'](){const _0x41b97b=_0x945337;this['_sendingTimer']!=null&&(clearTimeout(this[_0x41b97b(0x549)]),this['_sendingTimer']=null);}[_0x945337(0x3f5)](_0x2490b0){const _0x15c6a1=_0x945337;return this[_0x15c6a1(0x47e)](),this[_0x15c6a1(0x3dd)][_0x15c6a1(0x39d)](F,this[_0x15c6a1(0x1da)],this[_0x15c6a1(0x243)],null,this[_0x15c6a1(0x194)],this[_0x15c6a1(0x404)],_0x2490b0);}};x=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x4fa)](q)),g(0x8,a[_0x945337(0x48c)]),g(0x9,a[_0x945337(0x400)]),g(0xa,a[_0x945337(0x1f7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x945337(0x57b)]),g(0xd,a[_0x945337(0x38b)])],x);let W=class extends J{constructor(_0x538d91,_0x3f37db,_0x5f5c12,_0x4c741a,_0x2a392e,_0x2c8ccf,_0x3b5408,_0x42bfef,_0x1a6590,_0x1d2ab4,_0x4aa720){const _0x370454=_0x945337;super(_0x538d91,_0x3f37db,_0x5f5c12,[],_0x4c741a,_0x42bfef,_0x4aa720,_0x2c8ccf,_0x3b5408),d(this,'status',_0x370454(0x3ba)),(this[_0x370454(0x3dd)]=_0x2a392e,this[_0x370454(0x4ae)]=_0x1a6590,this['_transformService']=_0x1d2ab4);}[_0x945337(0x561)](_0x33c544){const _0x54b8a8=_0x945337,_0x15b746=this[_0x54b8a8(0x3dd)][_0x54b8a8(0x39d)](k,this[_0x54b8a8(0x1da)],this[_0x54b8a8(0x243)],this[_0x54b8a8(0x423)],[_0x33c544],this['_handler']);return _0x15b746['_updateLocalCache'](),_0x15b746;}[_0x945337(0x1d4)](_0x55ce04){const _0x1cfabc=_0x945337;if(this['_checkMissing'](_0x55ce04))return this['_injector'][_0x1cfabc(0x39d)](H,this[_0x1cfabc(0x1da)],this['type'],this[_0x1cfabc(0x423)],[],null,[_0x55ce04],this['_handler']);try{const _0x2b1326=this['_transformService'][_0x1cfabc(0x558)]([_0x55ce04],[this[_0x1cfabc(0x423)]],!0x1);if(_[_0x1cfabc(0x301)](_0x2b1326)){const {c1Prime:_0x425c25,c2Prime:_0x4ce499}=_0x2b1326;this['_executeRemoteChangeset'](_0x425c25[0x0]),_0x4ce499[0x0][_0x1cfabc(0x2f9)]=this[_0x1cfabc(0x1c0)]();const _0x2f8b53=this[_0x1cfabc(0x3dd)]['createInstance'](W,this['unitID'],this[_0x1cfabc(0x243)],_0x4ce499[0x0],this['_handler']);return _0x2f8b53[_0x1cfabc(0x581)](),_0x2f8b53;}return this[_0x1cfabc(0x3f5)](!0x1);}catch(_0x6552ea){return this[_0x1cfabc(0x4ae)][_0x1cfabc(0x2e8)](_0x6552ea),this[_0x1cfabc(0x3f5)](!0x1);}}[_0x945337(0x344)](_0x2d7d17){const _0x294e8c=_0x945337,_0x44f0f9=this[_0x294e8c(0x1df)][_0x294e8c(0x436)](this[_0x294e8c(0x1da)]);if(_0x2d7d17[_0x294e8c(0x289)]<_0x44f0f9-0x1)return this;if(this[_0x294e8c(0x35d)](_0x2d7d17))return this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](H,this[_0x294e8c(0x1da)],this['type'],null,[],this[_0x294e8c(0x423)],[],this[_0x294e8c(0x404)]);this[_0x294e8c(0x2d7)]();const _0x94a190=this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](se,this[_0x294e8c(0x1da)],this[_0x294e8c(0x243)],this[_0x294e8c(0x404)]);return _0x94a190[_0x294e8c(0x581)](),_0x94a190;}[_0x945337(0x294)](_0x4cca65){const _0x40b7c1=_0x945337;return this[_0x40b7c1(0x3f5)](!!(_0x4cca65!=null&&_0x4cca65['isPermissionRej']));}[_0x945337(0x506)](){const _0x8bdda=_0x945337;return this[_0x8bdda(0x3dd)][_0x8bdda(0x39d)](G,this[_0x8bdda(0x1da)],this[_0x8bdda(0x243)],this[_0x8bdda(0x423)],[],this[_0x8bdda(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5b3bf3=_0x945337;this[_0x5b3bf3(0x404)][_0x5b3bf3(0x468)](this['_awaitingChangeset']);}[_0x945337(0x3f5)](_0x593c01){const _0x381473=_0x945337;return this[_0x381473(0x3dd)]['createInstance'](F,this[_0x381473(0x1da)],this['type'],this[_0x381473(0x423)],[],this[_0x381473(0x404)],_0x593c01);}};W=z([g(0x4,a['Inject'](a[_0x945337(0x2b5)])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x400)]),g(0x8,a[_0x945337(0x48c)]),g(0x9,_[_0x945337(0x429)]),g(0xa,a[_0x945337(0x38b)])],W);let k=class extends J{constructor(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x374f4a,_0xc9abc4,_0x55c8fd,_0x2a2452,_0x17867e,_0xcb8efa,_0x44147a){const _0x7ed69c=_0x945337;super(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x2a2452,_0x44147a,_0xc9abc4,_0x55c8fd),d(this,_0x7ed69c(0x44d),_0x7ed69c(0x1ec)),(this[_0x7ed69c(0x3dd)]=_0x374f4a,this[_0x7ed69c(0x4ae)]=_0x17867e,this['_transformService']=_0xcb8efa);}[_0x945337(0x561)](_0x3350e4){return this['_pendingMutations']['push'](_0x3350e4),this;}[_0x945337(0x1d4)](_0x45aea0){const _0x3c41c4=_0x945337;if(this[_0x3c41c4(0x35d)](_0x45aea0))return this['_injector'][_0x3c41c4(0x39d)](H,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],this['_awaitingChangeset'],this[_0x3c41c4(0x194)],null,[_0x45aea0],this[_0x3c41c4(0x404)]);try{const _0x417d0e=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x558)]([_0x45aea0],[this[_0x3c41c4(0x423)]],!0x1);if(_[_0x3c41c4(0x301)](_0x417d0e)){const {c1Prime:_0x1231dc,c2Prime:_0x59c96d}=_0x417d0e,_0xd858fd=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x4df)](_0x1231dc[0x0],this[_0x3c41c4(0x194)]);if(_[_0x3c41c4(0x3f7)](_0xd858fd)){const {c1Prime:_0x4b28e5,m2Prime:_0x734ea0}=_0xd858fd;return this[_0x3c41c4(0x363)](_0x4b28e5),_0x59c96d[0x0][_0x3c41c4(0x2f9)]=this[_0x3c41c4(0x1c0)](),this[_0x3c41c4(0x3dd)][_0x3c41c4(0x39d)](k,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],_0x59c96d[0x0],_0x734ea0,this[_0x3c41c4(0x404)]);}throw _0xd858fd[_0x3c41c4(0x2e8)];}throw _0x417d0e['error'];}catch(_0x5bea25){return this[_0x3c41c4(0x4ae)][_0x3c41c4(0x2e8)](_0x5bea25),this[_0x3c41c4(0x3f5)](!0x1);}}['onRemoteAck'](_0x2fde04){const _0x7ee547=_0x945337;if(this['_checkMissing'](_0x2fde04))return this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](H,this[_0x7ee547(0x1da)],this[_0x7ee547(0x243)],null,this[_0x7ee547(0x194)],this['_awaitingChangeset'],[],this[_0x7ee547(0x404)]);this[_0x7ee547(0x2d7)]();const _0x1f6aae=this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](x,this[_0x7ee547(0x1da)],this['type'],this[_0x7ee547(0x194)],this[_0x7ee547(0x404)]);return _0x1f6aae['_schedule'](),_0x1f6aae['_updateLocalCache'](),_0x1f6aae;}[_0x945337(0x294)](_0x3df7e4){const _0x2f04e4=_0x945337;return this[_0x2f04e4(0x3f5)](!!(_0x3df7e4!=null&&_0x3df7e4[_0x2f04e4(0x3a1)]));}['toggleOffline'](){const _0x323478=_0x945337;return this[_0x323478(0x3dd)]['createInstance'](G,this[_0x323478(0x1da)],this[_0x323478(0x243)],this[_0x323478(0x423)],this[_0x323478(0x194)],this[_0x323478(0x404)]);}[_0x945337(0x267)](){return this;}['resend'](){const _0x38c548=_0x945337;this[_0x38c548(0x404)][_0x38c548(0x468)](this['_awaitingChangeset']);}['_onConflict'](_0xd9a54c){const _0x5d8d62=_0x945337;return this[_0x5d8d62(0x3dd)]['createInstance'](F,this[_0x5d8d62(0x1da)],this['type'],null,this['_pendingMutations'],this[_0x5d8d62(0x404)],_0xd9a54c);}};function _0x38f3(_0xa19542,_0x550d50){const _0x336a95=_0x336a();return _0x38f3=function(_0x38f3d7,_0x35a2f0){_0x38f3d7=_0x38f3d7-0x16e;let _0x122e0c=_0x336a95[_0x38f3d7];return _0x122e0c;},_0x38f3(_0xa19542,_0x550d50);}k=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_['ITransformService']),g(0xb,a[_0x945337(0x38b)])],k);let F=class extends J{constructor(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x5667cf=!0x1,_0x36be64,_0x327317,_0x3ebb5e,_0x404f16,_0x99c795,_0x5263fc,_0x465eaa){const _0xf3ef9c=_0x945337;super(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x327317,_0x3ebb5e,_0x99c795,_0x404f16),d(this,_0xf3ef9c(0x44d),_0xf3ef9c(0x3d3)),(this[_0xf3ef9c(0x260)]=_0x5667cf,this['_permissionService']=_0x36be64,this['_localeService']=_0x5263fc,this[_0xf3ef9c(0x555)]=_0x465eaa,this[_0xf3ef9c(0x250)](),this[_0xf3ef9c(0x313)](),this[_0xf3ef9c(0x53a)]());}[_0x945337(0x561)](){return this;}[_0x945337(0x1d4)](){return this;}[_0x945337(0x344)](){return this;}[_0x945337(0x294)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5835f7=_0x945337;throw new Error(_0x5835f7(0x1ca));}[_0x945337(0x313)](){const _0x2b4906=_0x945337;this['_localCacheService'][_0x2b4906(0x478)](this[_0x2b4906(0x1da)],this['type'],null,[]);}[_0x945337(0x250)](){const _0x578e0a=_0x945337;this[_0x578e0a(0x260)]?this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x3b6)),'type':_0x578e0a(0x2e8),'duration':0x0}):this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x572)),'content':this['_localeService']['t'](_0x578e0a(0x283)),'type':_0x578e0a(0x2e8),'duration':0x0});}[_0x945337(0x53a)](){const _0x375c7b=_0x945337;this[_0x375c7b(0x209)][_0x375c7b(0x470)](new C[(_0x375c7b(0x298))](this[_0x375c7b(0x1da)])['id'],!0x1);}};F=z([g(0x6,a[_0x945337(0x4fa)](a['IPermissionService'])),g(0x7,a['ICommandService']),g(0x8,a[_0x945337(0x38b)]),g(0x9,a['Inject'](exports[_0x945337(0x3a3)])),g(0xa,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0xb,a['Inject'](a[_0x945337(0x299)])),g(0xc,N[_0x945337(0x3a8)])],F);let G=class extends J{constructor(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x5e1f17,_0x3d5725,_0x171831,_0x27df95,_0x322936){const _0x3ad709=_0x945337;super(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x27df95,_0x322936,_0x3d5725,_0x171831),d(this,_0x3ad709(0x44d),'offline'),this[_0x3ad709(0x3dd)]=_0x5e1f17;}[_0x945337(0x561)](_0x3fc65a){const _0x15c4de=_0x945337;return this['_pendingMutations'][_0x15c4de(0x3b0)](_0x3fc65a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x45f0e0){const _0x1da536=_0x945337;throw new Error(_0x1da536(0x4cf));}[_0x945337(0x344)](){const _0x52c831=_0x945337;throw new Error(_0x52c831(0x20b));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x945337(0x506)](){return this;}[_0x945337(0x267)](){const _0x53bcf5=_0x945337,{_injector:_0x18213b,_pendingMutations:_0x57b2a9,_awaitingChangeset:_0x9487a2,unitID:_0x36a44e,_handler:_0x5aaef5,type:_0x75e53}=this,_0x37e066=Rt(_0x18213b,_0x36a44e,_0x75e53,_0x9487a2,_0x57b2a9,_0x5aaef5);return _0x37e066 instanceof x?_0x37e066[_0x53bcf5(0x2bc)]():(_0x37e066 instanceof k||_0x37e066 instanceof W)&&_0x37e066[_0x53bcf5(0x4a4)](),_0x37e066;}[_0x945337(0x4a4)](){const _0x34dedf=_0x945337;throw new Error(_0x34dedf(0x359));}};G=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a[_0x945337(0x38b)])],G);let H=class extends J{constructor(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x388801,_0x3e82d9,_0x3fa600,_0x296028,_0x5903c0,_0xca5bf4,_0x288411,_0x4f0a80,_0xdda2af,_0x42ebd0){const _0x4b9f57=_0x945337;super(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x3fa600,_0x4f0a80,_0xdda2af,_0x5903c0,_0xca5bf4),d(this,_0x4b9f57(0x44d),'fetch_missing'),(this[_0x4b9f57(0x1be)]=_0x388801,this[_0x4b9f57(0x2a7)]=_0x3e82d9,this['_injector']=_0x296028,this[_0x4b9f57(0x4ae)]=_0x288411,this[_0x4b9f57(0x4f2)]=_0x42ebd0);}[_0x945337(0x443)](_0x4bce27){const _0x20fc3e=_0x945337;try{const _0x5bced7=[..._0x4bce27,...this[_0x20fc3e(0x2a7)]],_0x597815=[this[_0x20fc3e(0x423)]||this[_0x20fc3e(0x1be)]]['filter'](_0x3c926e=>!!_0x3c926e);let _0x48ab2f,_0x1d56b5;if(_0x597815[_0x20fc3e(0x3f0)]){const _0x366210=this[_0x20fc3e(0x4f2)]['transformChangesets'](_0x5bced7,_0x597815,!0x1);if(!_['isTransformChangesetsSuccess'](_0x366210))throw _0x366210[_0x20fc3e(0x2e8)];_0x48ab2f=_0x366210[_0x20fc3e(0x44e)],_0x1d56b5=_0x366210[_0x20fc3e(0x4a1)];}else _0x48ab2f=_0x5bced7,_0x1d56b5=[];let _0x8a9a0d=this[_0x20fc3e(0x194)];_0x48ab2f[_0x20fc3e(0x278)](_0x272d23=>{const _0x103dac=_0x20fc3e;let _0x2dbf10;if(_0x8a9a0d[_0x103dac(0x3f0)]){const _0x5c9239=this[_0x103dac(0x4f2)][_0x103dac(0x4df)](_0x272d23,_0x8a9a0d);if(!_[_0x103dac(0x3f7)](_0x5c9239))throw _0x5c9239[_0x103dac(0x2e8)];_0x2dbf10=_0x5c9239[_0x103dac(0x44e)],_0x8a9a0d=_0x5c9239[_0x103dac(0x178)];}else _0x2dbf10=_0x272d23;this[_0x103dac(0x363)](_0x2dbf10);}),this[_0x20fc3e(0x1be)]&&this[_0x20fc3e(0x2d7)](),this[_0x20fc3e(0x423)]&&_0x1d56b5[_0x20fc3e(0x3f0)]&&(_0x1d56b5[0x0]['baseRev']=this[_0x20fc3e(0x1c0)]());let _0x2aedcf;if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0)_0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](k,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],_0x8a9a0d,this['_handler']);else{if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]===0x0)_0x1d56b5[0x0][_0x20fc3e(0x2f9)]=this[_0x20fc3e(0x1c0)](),_0x2aedcf=this['_injector'][_0x20fc3e(0x39d)](W,this['unitID'],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],this[_0x20fc3e(0x404)]);else{if(_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0){const _0x1f35b5=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](x,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x8a9a0d,this[_0x20fc3e(0x404)]);_0x1f35b5['_schedule'](),_0x2aedcf=_0x1f35b5;}else _0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](se,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x404)]);}}return _0x2aedcf[_0x20fc3e(0x581)](),_0x2aedcf;}catch(_0x204437){return this[_0x20fc3e(0x4ae)][_0x20fc3e(0x2e8)]('[FetchMissState]',_0x20fc3e(0x2fa),_0x204437),this[_0x20fc3e(0x3dd)]['createInstance'](F,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x423)],this[_0x20fc3e(0x194)],this[_0x20fc3e(0x404)],!0x1);}}[_0x945337(0x4a4)](){const _0x1e2c27=_0x945337;throw new Error(_0x1e2c27(0x4bb));}['appendMutation'](_0x1f1f4a){const _0x5cb801=_0x945337;return this[_0x5cb801(0x194)]['push'](_0x1f1f4a),this;}[_0x945337(0x1d4)](_0x22b341){const _0x46e446=_0x945337;return this[_0x46e446(0x2a7)]['push'](_0x22b341),this;}[_0x945337(0x344)](_0x1f3b16){const _0x1a9785=_0x945337;if(this[_0x1a9785(0x423)])return this[_0x1a9785(0x1be)]=this[_0x1a9785(0x423)],this[_0x1a9785(0x423)]=null,this;throw new Error(_0x1a9785(0x38f));}['onRemoteRej'](_0x2d5552){const _0x3c993e=_0x945337;return this[_0x3c993e(0x3f5)](!!(_0x2d5552!=null&&_0x2d5552[_0x3c993e(0x3a1)]));}['toggleOffline'](){const _0x3af520=_0x945337;return this[_0x3af520(0x3dd)][_0x3af520(0x39d)](G,this[_0x3af520(0x1da)],this[_0x3af520(0x243)],this[_0x3af520(0x423)],this['_pendingMutations'],this[_0x3af520(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x3f5)](_0x1975e1){const _0x310b8e=_0x945337;return this[_0x310b8e(0x3dd)][_0x310b8e(0x39d)](F,this[_0x310b8e(0x1da)],this['type'],this[_0x310b8e(0x423)],this[_0x310b8e(0x194)],this['_handler'],_0x1975e1);}};H=z([g(0x7,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x8,a['Inject'](_[_0x945337(0x574)])),g(0x9,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0xa,a[_0x945337(0x48c)]),g(0xb,a[_0x945337(0x400)]),g(0xc,a[_0x945337(0x38b)]),g(0xd,_[_0x945337(0x429)])],H);function Rt(_0x3cc55f,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39){const _0x646f13=_0x945337;return _0x1ab03f&&_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f['createInstance'](k,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39):_0x1ab03f?_0x3cc55f['createInstance'](W,_0x108087,_0x33c2ae,_0x1ab03f,_0x50ef39):_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f[_0x646f13(0x39d)](x,_0x108087,_0x33c2ae,_0x20b5aa,_0x50ef39):_0x3cc55f[_0x646f13(0x39d)](se,_0x108087,_0x33c2ae,_0x50ef39);}var Hs=Object[_0x945337(0x24b)],xs=Object[_0x945337(0x3e2)],Ke=(_0x1563eb,_0x609d68,_0x5ca567,_0x1c67a8)=>{const _0x4fd08c=_0x945337;for(var _0x2ba57e=_0x1c67a8>0x1?void 0x0:_0x1c67a8?xs(_0x609d68,_0x5ca567):_0x609d68,_0x5aa8cc=_0x1563eb[_0x4fd08c(0x3f0)]-0x1,_0x1e2b81;_0x5aa8cc>=0x0;_0x5aa8cc--)(_0x1e2b81=_0x1563eb[_0x5aa8cc])&&(_0x2ba57e=(_0x1c67a8?_0x1e2b81(_0x609d68,_0x5ca567,_0x2ba57e):_0x1e2b81(_0x2ba57e))||_0x2ba57e);return _0x1c67a8&&_0x2ba57e&&Hs(_0x609d68,_0x5ca567,_0x2ba57e),_0x2ba57e;},I=(_0x5e7b11,_0x240df3)=>(_0x501f55,_0x55c61a)=>_0x240df3(_0x501f55,_0x55c61a,_0x5e7b11);exports[_0x945337(0x23c)]=class extends a[_0x945337(0x538)]{constructor(_0x2c3ace,_0x3953d4,_0x9eb3a3,_0x360998,_0x12d71e,_0x38b1c8,_0x2710de,_0x2b8d6f,_0x569818,_0x39e28e,_0x3d7f0b,_0x55b02d,_0x35981b){const _0x307b68=_0x945337;super(),d(this,'_state$',new v[(_0x307b68(0x52c))](null)),d(this,'state$',this['_state$'][_0x307b68(0x19b)]()),d(this,_0x307b68(0x171)),d(this,_0x307b68(0x3fd),!0x1),d(this,'status$',this['state$'][_0x307b68(0x550)](v[_0x307b68(0x2c1)](_0x32bdcc=>_0x32bdcc?_0x32bdcc[_0x307b68(0x44d)]:y[_0x307b68(0x482)]),v[_0x307b68(0x421)](0x1))),d(this,_0x307b68(0x520),!0x1),d(this,_0x307b68(0x1b7),[]),(this[_0x307b68(0x1da)]=_0x2c3ace,this['session']=_0x3953d4,this[_0x307b68(0x1ad)]=_0x9eb3a3,this[_0x307b68(0x3dd)]=_0x360998,this[_0x307b68(0x576)]=_0x12d71e,this[_0x307b68(0x17f)]=_0x38b1c8,this[_0x307b68(0x21a)]=_0x2710de,this[_0x307b68(0x1df)]=_0x2b8d6f,this[_0x307b68(0x4ae)]=_0x569818,this[_0x307b68(0x256)]=_0x39e28e,this[_0x307b68(0x392)]=_0x3d7f0b,this['_permissionService']=_0x55b02d,this[_0x307b68(0x328)]=_0x35981b);}get[_0x945337(0x198)](){const _0xf663b1=_0x945337;return this[_0xf663b1(0x171)];}async[_0x945337(0x55a)](){const _0x1c1151=_0x945337;if(this[_0x1c1151(0x198)])throw new Error(_0x1c1151(0x1ef));await this[_0x1c1151(0x458)]();}[_0x945337(0x4c4)](){const _0x3ab12c=_0x945337;return this['_collaborationPaused']=!0x0,a[_0x3ab12c(0x296)](()=>{const _0x3d71f3=_0x3ab12c;this[_0x3d71f3(0x3fd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x945337(0x31a)](_0x5522ee){const _0xbfcf2c=_0x945337;this[_0xbfcf2c(0x171)]=_0x5522ee,this[_0xbfcf2c(0x4fc)]['next'](_0x5522ee);}async['_init'](){const _0x4c65f9=_0x945337;var _0x27eb7d;this[_0x4c65f9(0x31a)](await this['_createInitialState']()),this[_0x4c65f9(0x328)]&&((_0x27eb7d=this[_0x4c65f9(0x328)])==null||_0x27eb7d['editingUnit'](this[_0x4c65f9(0x1da)]),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x328)][_0x4c65f9(0x321)](this[_0x4c65f9(0x1da)])[_0x4c65f9(0x397)](_0x3f3803=>{const _0x4b8882=_0x4c65f9;this[_0x4b8882(0x4ae)]['debug'](_0x4b8882(0x2ad),'editing\x20status\x20changed\x20to',_0x3f3803),_0x3f3803===bt[_0x4b8882(0x2fd)]?(this[_0x4b8882(0x392)][_0x4b8882(0x411)]({'content':this[_0x4b8882(0x21a)]['t'](_0x4b8882(0x402)),'type':X[_0x4b8882(0x367)]['Warning']}),this[_0x4b8882(0x209)]['updatePermissionPoint'](new C[(_0x4b8882(0x298))](this['unitID'])['id'],!0x1)):this[_0x4b8882(0x209)][_0x4b8882(0x470)](new C[(_0x4b8882(0x298))](this[_0x4b8882(0x1da)])['id'],!0x0);})));let _0x31f4c8=!0x1;return this[_0x4c65f9(0x50a)](this['session'][_0x4c65f9(0x37f)]['subscribe'](_0xe27901=>{const _0x48bb62=_0x4c65f9;_0xe27901===$[_0x48bb62(0x42e)]?this[_0x48bb62(0x415)](_0x31f4c8):_0xe27901===$[_0x48bb62(0x482)]&&(_0x31f4c8=!0x0,this['_toggleOffline']());})),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x318)][_0x4c65f9(0x23f)][_0x4c65f9(0x397)](_0x1de06c=>{const _0x57f627=_0x4c65f9;try{switch(_0x1de06c[_0x57f627(0x170)]){case _[_0x57f627(0x4eb)][_0x57f627(0x3c6)]:{this[_0x57f627(0x1f5)](_['parseProtocolChangeset'](_0x1de06c[_0x57f627(0x375)]));break;}case _['CollaborationEvent'][_0x57f627(0x1f1)]:{this[_0x57f627(0x521)](_0x1de06c['data']);break;}case _[_0x57f627(0x4eb)]['CHANGESET_REJ']:{this[_0x57f627(0x33d)]();break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x57f627(0x3f9)](_0x1de06c[_0x57f627(0x375)][_0x57f627(0x37c)][_0x57f627(0x2c1)](_0x334a92=>_[_0x57f627(0x37a)](_0x334a92)));break;}case _['CollaborationEvent'][_0x57f627(0x186)]:this[_0x57f627(0x33d)]({'isPermissionRej':!0x0});}}catch(_0x2a46cf){throw console[_0x57f627(0x2e8)](_0x57f627(0x4a9),_0x2a46cf),_0x2a46cf;}})),this[_0x4c65f9(0x171)];}[_0x945337(0x3b7)](){const _0x1bc813=_0x945337;this[_0x1bc813(0x520)]=!0x1;}[_0x945337(0x4ce)](){const _0x4658d0=_0x945337;if(this[_0x4658d0(0x520)])throw new Error(_0x4658d0(0x29d));this[_0x4658d0(0x520)]=!0x0;}[_0x945337(0x285)](_0x176141){const _0x5510c0=_0x945337;this[_0x5510c0(0x4ce)](),this[_0x5510c0(0x31a)](this['_state'][_0x5510c0(0x561)](_0x176141)),this[_0x5510c0(0x3b7)]();}[_0x945337(0x1f5)](_0x125f82){const _0x53f209=_0x945337;if(!(_0x125f82[_0x53f209(0x289)]<=this[_0x53f209(0x1df)]['getCurrentRevOfUnit'](this[_0x53f209(0x1da)]))){if(this['_collaborationPaused']){this[_0x53f209(0x1b7)]['push'](_0x125f82);return;}this[_0x53f209(0x2ff)](_0x125f82);}}['_exhaustRemoteChangesetQueue'](){const _0x3352e0=_0x945337;this[_0x3352e0(0x1b7)][_0x3352e0(0x278)](_0x415814=>this['_applyRemoteChangeset'](_0x415814)),this[_0x3352e0(0x1b7)]=[];}[_0x945337(0x2ff)](_0x1b352d){const _0x2c9135=_0x945337,_0x1b82b4=this['_compressMutationService'][_0x2c9135(0x3b9)]['fetchThroughInterceptors'](this[_0x2c9135(0x17f)][_0x2c9135(0x3b9)]['getInterceptPoints']()[_0x2c9135(0x361)])(_0x1b352d[_0x2c9135(0x435)],null)||_0x1b352d[_0x2c9135(0x435)],_0x30e2cb={..._0x1b352d,'mutations':_0x1b82b4};this[_0x2c9135(0x4ce)](),this[_0x2c9135(0x31a)](this[_0x2c9135(0x171)]['onRemoteChangeset'](_0x30e2cb)),this[_0x2c9135(0x3b7)]();}[_0x945337(0x521)](_0x19f2f6){const _0x16468e=_0x945337;this['_lockTransition'](),this[_0x16468e(0x31a)](this['_state'][_0x16468e(0x344)](_0x19f2f6)),this[_0x16468e(0x3b7)]();}['_onRemoteRejected'](_0xf9236d){const _0x4a1903=_0x945337;this['_lockTransition'](),this['_updateState'](this['_state'][_0x4a1903(0x294)](_0xf9236d)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3d7547){const _0x5adbf4=_0x945337;if(!(this[_0x5adbf4(0x171)]instanceof H))throw new TypeError(_0x5adbf4(0x311));const _0x32eeb3=_0x3d7547[_0x5adbf4(0x2c1)](_0x127ebd=>{const _0x48ddf9=_0x5adbf4,_0x29265b=this[_0x48ddf9(0x17f)][_0x48ddf9(0x3b9)][_0x48ddf9(0x40a)](this['_compressMutationService']['interceptor'][_0x48ddf9(0x1a8)]()[_0x48ddf9(0x361)])(_0x127ebd[_0x48ddf9(0x435)],null)||_0x127ebd[_0x48ddf9(0x435)];return{..._0x127ebd,'mutations':_0x29265b};});this[_0x5adbf4(0x4ce)](),this[_0x5adbf4(0x31a)](this[_0x5adbf4(0x171)]['onMissedChangesetFetched'](_0x32eeb3)),this[_0x5adbf4(0x3b7)]();}['_toggleOffline'](){const _0x48076e=_0x945337;this['_lockTransition'](),this[_0x48076e(0x31a)](this[_0x48076e(0x171)]['toggleOffline']()),this['_unlockTransition']();}[_0x945337(0x415)](_0x321225=!0x1){const _0x4669cd=_0x945337;this[_0x4669cd(0x4ce)](),this['_updateState'](this[_0x4669cd(0x171)][_0x4669cd(0x267)]()),this[_0x4669cd(0x3b7)]();const _0x43552b=this[_0x4669cd(0x171)];_0x321225&&_0x43552b instanceof se&&(this[_0x4669cd(0x4ce)](),this[_0x4669cd(0x31a)](_0x43552b[_0x4669cd(0x2e2)]()),this[_0x4669cd(0x3b7)]());}async[_0x945337(0x4e7)](){return new Promise(_0x24c48d=>{const _0x288091=_0x38f3;this[_0x288091(0x318)][_0x288091(0x37f)][_0x288091(0x550)](v[_0x288091(0x551)](0x1))[_0x288091(0x397)](async _0x1fc791=>{const _0x50ac68=_0x288091;_0x24c48d(await this[_0x50ac68(0x48a)](_0x1fc791===$[_0x50ac68(0x42e)]));});});}['_createHandler'](){const _0x1e35be=_0x945337,_0x592502=this[_0x1e35be(0x1da)];return{'onStateChange':(_0x2f95f8,_0x214f83)=>{const _0x5acd4d=_0x1e35be;if(_0x2f95f8!==this['_state'])throw new Error(_0x5acd4d(0x261)+_0x2f95f8[_0x5acd4d(0x44d)]+_0x5acd4d(0x40f)+_0x214f83[_0x5acd4d(0x44d)]+_0x5acd4d(0x47f)+this['_state']['status']);this[_0x5acd4d(0x31a)](_0x214f83);},'onSendChangeset':_0x6996bb=>{const _0x2f5ae7=_0x1e35be,_0x18e6d6={'eventID':_[_0x2f5ae7(0x4eb)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6996bb[_0x2f5ae7(0x1da)],'unitType':this['_type'],'changeset':_0x6996bb,'memberID':this[_0x2f5ae7(0x318)][_0x2f5ae7(0x56a)]()}};this[_0x2f5ae7(0x318)]['send'](_0x18e6d6,this[_0x2f5ae7(0x1da)]);},'onMissingChangesets':({from:_0x1d89c6,to:_0x4e4e05})=>{const _0x93867a=_0x1e35be;this[_0x93867a(0x4ae)]['debug']('[CollaborationEntity]',_0x93867a(0x28c)+_0x1d89c6+'\x20to\x20'+_0x4e4e05);const _0x313f58={'eventID':_[_0x93867a(0x4eb)][_0x93867a(0x51d)],'data':{'unitID':_0x592502,'unitType':this[_0x93867a(0x1ad)],'from':_0x1d89c6,'to':_0x4e4e05}};this['session'][_0x93867a(0x2a2)](_0x313f58,this[_0x93867a(0x1da)]);}};}async[_0x945337(0x48a)](_0x26b6c9){const _0x35ba3e=_0x945337;var _0x7ad0f4,_0x1b7449;const _0x579e62=await this[_0x35ba3e(0x576)]['loadOfflineData'](this[_0x35ba3e(0x1da)]),_0x190cfc=(_0x7ad0f4=_0x579e62==null?void 0x0:_0x579e62[_0x35ba3e(0x435)])!=null?_0x7ad0f4:[],_0x3f2100=(_0x1b7449=_0x579e62==null?void 0x0:_0x579e62['awaitingChangeset'])!=null?_0x1b7449:null,_0x12b822=this[_0x35ba3e(0x1da)];try{this[_0x35ba3e(0x4cb)](_0x3f2100,_0x190cfc);}catch(_0x48728a){this[_0x35ba3e(0x4ae)][_0x35ba3e(0x2e8)](_0x48728a);}const _0x1ac125=this[_0x35ba3e(0x19c)]();if(_0x26b6c9){const _0x4bdeb1=Rt(this['_injector'],_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);return _0x4bdeb1 instanceof x?_0x4bdeb1[_0x35ba3e(0x2bc)]():(_0x4bdeb1 instanceof k||_0x4bdeb1 instanceof W)&&_0x4bdeb1[_0x35ba3e(0x4a4)](),_0x4bdeb1;}return this[_0x35ba3e(0x3dd)][_0x35ba3e(0x39d)](G,_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);}[_0x945337(0x4cb)](_0x4d80e6,_0x248a14){const _0xa00741=_0x945337;var _0x2f8d55,_0x286cd7;const _0x2fdfc1=this[_0xa00741(0x17f)]['interceptor']['fetchThroughInterceptors'](this[_0xa00741(0x17f)]['interceptor'][_0xa00741(0x1a8)]()['COMPRESS_MUTATION_APPLY']);(_0x2f8d55=_0x2fdfc1((_0x4d80e6==null?void 0x0:_0x4d80e6['mutations'])||[],null))==null||_0x2f8d55[_0xa00741(0x278)](_0xecef79=>this['_commandService'][_0xa00741(0x505)](_0xecef79['id'],_0xecef79['params'])),(_0x286cd7=_0x2fdfc1(_0x248a14||[],null))==null||_0x286cd7[_0xa00741(0x278)](_0x1c42d6=>this['_commandService'][_0xa00741(0x505)](_0x1c42d6['id'],_0x1c42d6['params']));}},exports[_0x945337(0x23c)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),I(0x8,a[_0x945337(0x48c)]),I(0x9,a[_0x945337(0x400)]),I(0xa,N[_0x945337(0x2b2)]),I(0xb,a[_0x945337(0x414)]),I(0xc,a[_0x945337(0x188)](be))],exports[_0x945337(0x23c)]),exports[_0x945337(0x295)]=class extends exports[_0x945337(0x23c)]{constructor(_0x3c3197,_0x266a60,_0x29313d,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x4a8e8d,_0x2f58a5,_0xf52646,_0x202d15,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1){const _0xd401a3=_0x945337;super(_0x3c3197,_0x29313d,_0x266a60,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1),this[_0xd401a3(0x1da)]=_0x3c3197,this[_0xd401a3(0x243)]=_0x266a60,this[_0xd401a3(0x182)]=_0x4a8e8d,this[_0xd401a3(0x172)]=_0x2f58a5,this['_docTransformSelectionsService']=_0xf52646,this[_0xd401a3(0x25e)]=_0x202d15;}['_createHandler'](){const _0x222aa2=_0x945337,_0x320040=super['_createHandler']();return _0x320040[_0x222aa2(0x3d2)]=_0x412ed5=>this[_0x222aa2(0x172)][_0x222aa2(0x1d1)](_0x412ed5),_0x320040[_0x222aa2(0x454)]=_0x1f4115=>this['_docTransformSelectionsService'][_0x222aa2(0x463)](_0x1f4115),_0x320040['onSyncEditingCollabCursor']=_0xaa5985=>this[_0x222aa2(0x25e)][_0x222aa2(0x271)](_0xaa5985),_0x320040[_0x222aa2(0x1b1)]=_0x48b627=>this[_0x222aa2(0x172)]['transformRemoteChangeset'](_0x48b627),_0x320040;}async[_0x945337(0x458)](){const _0x3b1302=_0x945337,_0x50ad2=await super[_0x3b1302(0x458)]();return this[_0x3b1302(0x50a)](this[_0x3b1302(0x256)][_0x3b1302(0x3ad)]((_0x134e90,_0x3795d9)=>{const _0x3fe17e=_0x3b1302;if(_0x134e90[_0x3fe17e(0x243)]!==a[_0x3fe17e(0x2fb)][_0x3fe17e(0x36f)]||_0x3795d9!=null&&_0x3795d9['fromCollab']||_0x3795d9!=null&&_0x3795d9[_0x3fe17e(0x1f0)])return;const _0x1ff5a7=_0x134e90['params'];if((_0x1ff5a7==null?void 0x0:_0x1ff5a7[_0x3fe17e(0x212)])!==this[_0x3fe17e(0x1da)])return;let _0x21cf37=_0x134e90;if(_0x21cf37['id']===V[_0x3fe17e(0x316)]['id']){const _0xf675ed=_0x21cf37[_0x3fe17e(0x17c)];_0x21cf37={'id':V[_0x3fe17e(0x316)]['id'],'type':a[_0x3fe17e(0x2fb)]['MUTATION'],'params':{'unitId':_0xf675ed[_0x3fe17e(0x212)],'actions':_0xf675ed[_0x3fe17e(0x3ef)],'textRanges':null}};}const _0x474aed=this['_compressMutationService']['interceptor'][_0x3fe17e(0x40a)](this[_0x3fe17e(0x17f)][_0x3fe17e(0x3b9)][_0x3fe17e(0x1a8)]()[_0x3fe17e(0x4c2)])([_0x21cf37],null)||[_0x21cf37];this[_0x3fe17e(0x285)](_0x474aed[0x0]);})),_0x50ad2;}},exports[_0x945337(0x295)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](w['DocStateChangeManagerService'])),I(0x9,a[_0x945337(0x4fa)](fe)),I(0xa,a[_0x945337(0x4fa)](me)),I(0xb,a['Inject'](Ye)),I(0xc,a[_0x945337(0x48c)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x945337(0x414)]),I(0x10,a[_0x945337(0x188)](be))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x423f82,_0x37ab75,_0x21be21,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x3e3ae2,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a){const _0x50ec23=_0x945337;super(_0x423f82,_0x21be21,_0x37ab75,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a),this[_0x50ec23(0x1da)]=_0x423f82,this['type']=_0x37ab75,this[_0x50ec23(0x50c)]=_0x3e3ae2;}[_0x945337(0x19c)](){const _0x52a489=_0x945337,_0x533f4a=super[_0x52a489(0x19c)]();return _0x533f4a[_0x52a489(0x454)]=_0x225d00=>this[_0x52a489(0x50c)][_0x52a489(0x463)](_0x225d00),_0x533f4a;}async[_0x945337(0x458)](){const _0x2c0c3c=_0x945337,_0xf8df4f=await super[_0x2c0c3c(0x458)]();return this[_0x2c0c3c(0x50a)](this[_0x2c0c3c(0x256)][_0x2c0c3c(0x3ad)]((_0x317709,_0x7ee253)=>{const _0x28311a=_0x2c0c3c;if(_0x317709['type']!==a[_0x28311a(0x2fb)][_0x28311a(0x36f)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x4aa)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x1f0)])return;const _0x42dea1=_0x317709['params'];if((_0x42dea1==null?void 0x0:_0x42dea1[_0x28311a(0x212)])!==this[_0x28311a(0x1da)])return;const _0x64b0b7=_0x317709,_0x30fae1=this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x40a)](this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x1a8)]()[_0x28311a(0x4c2)])([_0x64b0b7],null)||[_0x64b0b7];this['_onLocalMutation'](_0x30fae1[0x0]);})),_0xf8df4f;}},exports[_0x945337(0x4dd)]=Ke([I(0x3,a['Inject'](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](ge)),I(0x9,a[_0x945337(0x48c)]),I(0xa,a[_0x945337(0x400)]),I(0xb,N[_0x945337(0x2b2)]),I(0xc,a[_0x945337(0x414)]),I(0xd,a['Optional'](be))],exports[_0x945337(0x4dd)]);var ks=Object[_0x945337(0x24b)],Bs=Object[_0x945337(0x3e2)],Vs=(_0xc7f3ce,_0x171703,_0x320c42,_0xae8f68)=>{const _0x2c1d76=_0x945337;for(var _0x24e668=_0xae8f68>0x1?void 0x0:_0xae8f68?Bs(_0x171703,_0x320c42):_0x171703,_0x4d865b=_0xc7f3ce[_0x2c1d76(0x3f0)]-0x1,_0x4bae11;_0x4d865b>=0x0;_0x4d865b--)(_0x4bae11=_0xc7f3ce[_0x4d865b])&&(_0x24e668=(_0xae8f68?_0x4bae11(_0x171703,_0x320c42,_0x24e668):_0x4bae11(_0x24e668))||_0x24e668);return _0xae8f68&&_0x24e668&&ks(_0x171703,_0x320c42,_0x24e668),_0x24e668;},Ue=(_0x30842e,_0x12fe95)=>(_0x545fc1,_0x3f440b)=>_0x12fe95(_0x545fc1,_0x3f440b,_0x30842e);exports[_0x945337(0x4ee)]=class extends a[_0x945337(0x538)]{constructor(_0x3133d4,_0x45e489,_0x3dfd26){const _0x10a16f=_0x945337;super(),d(this,_0x10a16f(0x565),new Map()),d(this,_0x10a16f(0x32d),new v[(_0x10a16f(0x36e))]()),(this[_0x10a16f(0x3dd)]=_0x3133d4,this['_collabSessionService']=_0x45e489,this[_0x10a16f(0x337)]=_0x3dfd26,this[_0x10a16f(0x458)]());}[_0x945337(0x1eb)](){const _0x5c7c0b=_0x945337;super[_0x5c7c0b(0x1eb)](),this[_0x5c7c0b(0x565)][_0x5c7c0b(0x278)](_0x368c07=>_0x368c07[_0x5c7c0b(0x1eb)]()),this[_0x5c7c0b(0x565)]['clear']();}[_0x945337(0x27d)](_0x16666e){var _0x2c37a8;return(_0x2c37a8=this['_entities']['get'](_0x16666e))!=null?_0x2c37a8:null;}[_0x945337(0x4b1)](_0x40b5bd){const _0x5e657d=_0x945337,_0x1fd78b=this[_0x5e657d(0x27d)](_0x40b5bd);return _0x1fd78b?v['of'](_0x1fd78b):this[_0x5e657d(0x32d)][_0x5e657d(0x550)](E[_0x5e657d(0x1dc)](_0x7cf465=>_0x7cf465[_0x5e657d(0x1da)]===_0x40b5bd));}[_0x945337(0x458)](){const _0x28d98d=_0x945337;this['_univerInstanceService'][_0x28d98d(0x51e)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))[_0x28d98d(0x397)](async _0x4e5040=>{const _0x57be5c=_0x28d98d,_0x5eeda3=_0x4e5040[_0x57be5c(0x352)](),_0x5216dc=await this[_0x57be5c(0x417)](_0x5eeda3,j[_0x57be5c(0x53c)]);this[_0x57be5c(0x565)]['set'](_0x5eeda3,_0x5216dc);}),this[_0x28d98d(0x337)]['getTypeOfUnitAdded$'](a[_0x28d98d(0x3b1)]['UNIVER_DOC'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))['pipe'](E[_0x28d98d(0x1dc)](_0x1712b7=>!_0x1712b7[_0x28d98d(0x352)]()[_0x28d98d(0x2aa)]('__')))[_0x28d98d(0x397)](async _0x319efc=>{const _0x4537d9=_0x28d98d,_0x2f2e5e=_0x319efc[_0x4537d9(0x352)](),_0x3ebbe5=await this['_startCollaboration'](_0x2f2e5e,j[_0x4537d9(0x395)]);this[_0x4537d9(0x565)][_0x4537d9(0x4a8)](_0x2f2e5e,_0x3ebbe5);}),v[_0x28d98d(0x515)](this[_0x28d98d(0x337)][_0x28d98d(0x18e)](a[_0x28d98d(0x3b1)]['UNIVER_SHEET']),this[_0x28d98d(0x337)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]))[_0x28d98d(0x397)](_0x33a15a=>{const _0x5f3841=_0x28d98d,_0x4c69fd=_0x33a15a[_0x5f3841(0x352)](),_0xc5d13e=this[_0x5f3841(0x565)]['get'](_0x4c69fd);_0xc5d13e&&(_0xc5d13e[_0x5f3841(0x1eb)](),this['_entities']['delete'](_0x4c69fd));});}async[_0x945337(0x417)](_0x25ddc8,_0x5f0857){const _0x3c7c51=_0x945337,_0x40fb39=await this[_0x3c7c51(0x407)][_0x3c7c51(0x369)](_0x25ddc8),_0x25b29a=this['_injector'][_0x3c7c51(0x39d)](this[_0x3c7c51(0x16f)](_0x5f0857),_0x25ddc8,_0x5f0857,_0x40fb39);return await _0x25b29a[_0x3c7c51(0x55a)](),this['_entityInit$'][_0x3c7c51(0x3ca)](_0x25b29a),_0x25b29a;}['_getCtorByUniverType'](_0x121c7f){const _0x509c26=_0x945337;switch(_0x121c7f){case j[_0x509c26(0x395)]:return exports[_0x509c26(0x295)];case j[_0x509c26(0x53c)]:return exports[_0x509c26(0x4dd)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x121c7f);}}},exports[_0x945337(0x4ee)]=Vs([Ue(0x0,a['Inject'](a[_0x945337(0x2b5)])),Ue(0x1,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),Ue(0x2,a[_0x945337(0x57b)])],exports[_0x945337(0x4ee)]);const nt=[_0x945337(0x46f),_0x945337(0x3c0),_0x945337(0x4a6),'red300',_0x945337(0x3a4),'gold400'];class Xe extends a[_0x945337(0x45b)]{constructor(){const _0x3cd7c7=_0x945337;super(...arguments),d(this,_0x3cd7c7(0x502),new Map()),d(this,_0x3cd7c7(0x286),0x0);}['assignAColorForMemberID'](_0x1157e1){const _0xc61de6=_0x945337;if(this[_0xc61de6(0x502)][_0xc61de6(0x384)](_0x1157e1))return this[_0xc61de6(0x502)]['get'](_0x1157e1);const _0x36eb06=nt[this['_colorIndex']];return this[_0xc61de6(0x286)]=(this[_0xc61de6(0x286)]+0x1)%nt[_0xc61de6(0x3f0)],this[_0xc61de6(0x502)][_0xc61de6(0x4a8)](_0x1157e1,_0x36eb06),_0x36eb06;}}var Ws=Object[_0x945337(0x24b)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x234042,_0xd5e2dc,_0xb8883b,_0x44a596)=>{const _0x12d550=_0x945337;for(var _0x3f4a43=_0x44a596>0x1?void 0x0:_0x44a596?Fs(_0xd5e2dc,_0xb8883b):_0xd5e2dc,_0x47d166=_0x234042[_0x12d550(0x3f0)]-0x1,_0x41dc7e;_0x47d166>=0x0;_0x47d166--)(_0x41dc7e=_0x234042[_0x47d166])&&(_0x3f4a43=(_0x44a596?_0x41dc7e(_0xd5e2dc,_0xb8883b,_0x3f4a43):_0x41dc7e(_0x3f4a43))||_0x3f4a43);return _0x44a596&&_0x3f4a43&&Ws(_0xd5e2dc,_0xb8883b,_0x3f4a43),_0x3f4a43;},K=(_0x31d690,_0x5d74f9)=>(_0x376657,_0xe85349)=>_0x5d74f9(_0x376657,_0xe85349,_0x31d690);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x945337(0x538)]{constructor(_0x490813,_0x2bedb3,_0x539af8,_0xf61bb2,_0x4d4f9d,_0x2def9e,_0x303577,_0x57240d,_0x5120a6){const _0x3e2284=_0x945337;super(),d(this,_0x3e2284(0x270),!0x1),d(this,_0x3e2284(0x458),!0x1),d(this,_0x3e2284(0x4bc),new v[(_0x3e2284(0x52c))](new Map())),d(this,_0x3e2284(0x247),this[_0x3e2284(0x4bc)][_0x3e2284(0x19b)]()),d(this,'_roomMembers$',new v[(_0x3e2284(0x52c))]([])),d(this,_0x3e2284(0x493),this[_0x3e2284(0x228)]['pipe'](v[_0x3e2284(0x3ee)](Ys))),d(this,_0x3e2284(0x4a7),a[_0x3e2284(0x49c)](_0x3198a6=>{const _0x54a9b0=_0x3e2284,_0x5d2602={'eventID':_['CollaborationEvent'][_0x54a9b0(0x206)],'data':{'unitID':this[_0x54a9b0(0x1da)],'memberID':this[_0x54a9b0(0x1e9)][_0x54a9b0(0x56a)](),'selection':Tt(_0x3198a6)}};this[_0x54a9b0(0x1e9)]['send'](_0x5d2602,this[_0x54a9b0(0x1da)]);},Ks)),(this[_0x3e2284(0x1da)]=_0x490813,this[_0x3e2284(0x1e9)]=_0x2bedb3,this[_0x3e2284(0x3dd)]=_0x539af8,this['_colorAssignService']=_0xf61bb2,this[_0x3e2284(0x526)]=_0x4d4f9d,this['_syncEditingCollabCursorService']=_0x2def9e,this[_0x3e2284(0x4f2)]=_0x303577,this['_univerInstanceService']=_0x57240d,this['_commandService']=_0x5120a6);}get[_0x945337(0x496)](){const _0x300f74=_0x945337;return this['_cursorInfo$'][_0x300f74(0x2d6)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x945337(0x1eb)](){const _0x24ee13=_0x945337;super[_0x24ee13(0x1eb)](),this['_cursorInfo$'][_0x24ee13(0x3ca)](new Map()),this['_cursorInfo$'][_0x24ee13(0x531)](),this[_0x24ee13(0x228)][_0x24ee13(0x3ca)]([]),this['_roomMembers$'][_0x24ee13(0x531)]();}[_0x945337(0x55a)](){const _0x458d97=_0x945337;this[_0x458d97(0x458)]||(this[_0x458d97(0x458)]=!0x0,this['_session'][_0x458d97(0x37f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x5a6e1d=>{const _0x2c869e=_0x458d97;_0x5a6e1d===$[_0x2c869e(0x42e)]?this[_0x2c869e(0x415)]():this[_0x2c869e(0x218)]();}),this[_0x458d97(0x1e9)][_0x458d97(0x23f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this['dispose$']))[_0x458d97(0x397)](_0x1687f2=>{const _0x451c2a=_0x458d97,_0x41e54c=_0x1687f2['eventID'];_0x41e54c===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1687f2),_0x41e54c===_[_0x451c2a(0x4eb)][_0x451c2a(0x3cb)]&&this[_0x451c2a(0x210)](_0x1687f2);}),this[_0x458d97(0x50a)](this[_0x458d97(0x256)]['onCommandExecuted'](_0x19f83a=>{const _0xfce9ee=_0x458d97,_0x5d8c5c=_0x19f83a[_0xfce9ee(0x17c)];_0x5d8c5c!=null&&this[_0xfce9ee(0x270)]&&_0x19f83a['id']===V['SetTextSelectionsOperation']['id']&&_0x5d8c5c[_0xfce9ee(0x212)]===this[_0xfce9ee(0x1da)]&&_0x5d8c5c[_0xfce9ee(0x571)]===!0x1&&this['_updateLocalCursor'](_0x5d8c5c[_0xfce9ee(0x542)]);})),this['_syncEditingCollabCursorService'][_0x458d97(0x23e)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x8aab4a=>{const _0x3255f3=_0x458d97;if((_0x8aab4a==null?void 0x0:_0x8aab4a['unitID'])!==this[_0x3255f3(0x1da)])return;const _0x4e8667={'eventID':_[_0x3255f3(0x4eb)][_0x3255f3(0x206)],'data':_0x8aab4a};this[_0x3255f3(0x1b8)](_0x4e8667);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2895ff=>{const _0x4976d7=_0x458d97;if(_0x2895ff['params']==null)return;const _0x1d2db8=_0x2895ff[_0x4976d7(0x17c)];if(_0x2895ff['id']!==V['RichTextEditingMutation']['id']||_0x1d2db8[_0x4976d7(0x212)]!==this[_0x4976d7(0x1da)])return;const _0x56d60b={'id':_0x4976d7(0x333),'params':_0x1d2db8},_0x5f353e=this[_0x4976d7(0x496)];for(const [_0x2cb237,_0x342db8]of _0x5f353e){const _0xe44a35={'id':_0x4976d7(0x333),'params':{'unitId':this[_0x4976d7(0x1da)],'actions':null,'textRanges':_0x342db8[_0x4976d7(0x542)]}},_0xcc5c89=this[_0x4976d7(0x4f2)][_0x4976d7(0x34c)](_0x56d60b,_0xe44a35,!0x1);if(_[_0x4976d7(0x420)](_0xcc5c89))throw _0xcc5c89[_0x4976d7(0x2e8)];_0x5f353e['set'](_0x2cb237,{..._0x342db8,'ranges':_0xcc5c89[_0x4976d7(0x178)][_0x4976d7(0x17c)][_0x4976d7(0x485)]});}queueMicrotask(()=>{const _0x184d4b=_0x4976d7;this[_0x184d4b(0x4bc)][_0x184d4b(0x3ca)](_0x5f353e);});})));}['_onCursorUpdate'](_0x2eb5a1){const _0x104cf8=_0x945337;var _0x4144da,_0x2cf84b;const {memberID:_0x4377f4,selection:_0x31c8bc}=_0x2eb5a1[_0x104cf8(0x375)],_0x32ae7b=Us(_0x31c8bc),_0x166ccc=(_0x2cf84b=(_0x4144da=this[_0x104cf8(0x526)][_0x104cf8(0x467)](this[_0x104cf8(0x1da)],_0x4377f4))==null?void 0x0:_0x4144da[_0x104cf8(0x508)])!=null?_0x2cf84b:_0x104cf8(0x3c2),_0x277ec2={'color':this['_colorAssignService'][_0x104cf8(0x2ac)](_0x4377f4),'name':_0x166ccc,'ranges':_0x32ae7b},_0x493e96=this['cursorInfo'];_0x493e96[_0x104cf8(0x4a8)](_0x4377f4,_0x277ec2),this[_0x104cf8(0x4bc)][_0x104cf8(0x3ca)](_0x493e96);}[_0x945337(0x210)](_0x4c474f){const _0x3a13bc=_0x945337,{memberID:_0x35dd51}=_0x4c474f[_0x3a13bc(0x375)],_0x1505bf=this['cursorInfo'];_0x1505bf[_0x3a13bc(0x532)](_0x35dd51),this['_cursorInfo$'][_0x3a13bc(0x3ca)](_0x1505bf);}[_0x945337(0x415)](){const _0x299005=_0x945337;var _0x2766fc;if(this['_online']=!0x0,((_0x2766fc=this[_0x299005(0x337)][_0x299005(0x255)]())==null?void 0x0:_0x2766fc[_0x299005(0x352)]())!==this[_0x299005(0x1da)])return;const _0x573078=this[_0x299005(0x3dd)][_0x299005(0x3eb)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x299005(0x48e)](_0x573078)&&_0x573078[_0x299005(0x3f0)]>0x0&&this[_0x299005(0x4a7)](_0x573078);}['_toggleOffline'](){const _0x236c96=_0x945337;this[_0x236c96(0x270)]=!0x1;}};$e=Gs([K(0x2,a[_0x945337(0x4fa)](a['Injector'])),K(0x3,a[_0x945337(0x4fa)](Xe)),K(0x4,a[_0x945337(0x4fa)](q)),K(0x5,a[_0x945337(0x4fa)](Ye)),K(0x6,_[_0x945337(0x429)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x945337(0x400)])],$e);var Xs=Object[_0x945337(0x24b)],qs=Object[_0x945337(0x3e2)],zs=(_0x17336c,_0x507f83,_0x2e536a,_0x443758)=>{for(var _0x41bacd=_0x443758>0x1?void 0x0:_0x443758?qs(_0x507f83,_0x2e536a):_0x507f83,_0x4720f9=_0x17336c['length']-0x1,_0xf2b72b;_0x4720f9>=0x0;_0x4720f9--)(_0xf2b72b=_0x17336c[_0x4720f9])&&(_0x41bacd=(_0x443758?_0xf2b72b(_0x507f83,_0x2e536a,_0x41bacd):_0xf2b72b(_0x41bacd))||_0x41bacd);return _0x443758&&_0x41bacd&&Xs(_0x507f83,_0x2e536a,_0x41bacd),_0x41bacd;},Q=(_0x3a087c,_0xfd9136)=>(_0x304a32,_0x19ea31)=>_0xfd9136(_0x304a32,_0x19ea31,_0x3a087c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x2b6685=[],_0x4cf71b=!0x1;return _0x5da6c2=>{const _0x1743f5=_0x38f3;_0x2b6685[_0x1743f5(0x3b0)](_0x5da6c2),_0x4cf71b||(_0x4cf71b=!0x0,setTimeout(()=>{const _0x5308f4=_0x1743f5;_0x2b6685[_0x5308f4(0x278)](_0x549e81=>_0x549e81()),_0x2b6685=[],_0x4cf71b=!0x1;}));};};let He=class extends a[_0x945337(0x538)]{constructor(_0x35d5a3,_0x3e80cb,_0x438a85,_0x4311f4,_0x3ee91f,_0x427a2c,_0x3ad57b,_0x41c2c2){const _0x5a1c4f=_0x945337;super(),d(this,_0x5a1c4f(0x270),!0x1),d(this,'_init',!0x1),d(this,_0x5a1c4f(0x4bc),new v['BehaviorSubject'](new Map())),d(this,_0x5a1c4f(0x247),this[_0x5a1c4f(0x4bc)][_0x5a1c4f(0x19b)]()),d(this,_0x5a1c4f(0x228),new v['BehaviorSubject']([])),d(this,_0x5a1c4f(0x493),this['_roomMembers$'][_0x5a1c4f(0x550)](v[_0x5a1c4f(0x3ee)](Js))),d(this,_0x5a1c4f(0x4a7),a[_0x5a1c4f(0x49c)]((_0x1879bb,_0x578cba)=>{const _0xe8c8a=_0x5a1c4f,_0x2807ed={'eventID':_[_0xe8c8a(0x4eb)][_0xe8c8a(0x206)],'data':{'unitID':this[_0xe8c8a(0x1da)],'memberID':this[_0xe8c8a(0x1e9)][_0xe8c8a(0x56a)](),'selection':Je[_0xe8c8a(0x251)](_0x1879bb,_0x578cba[_0xe8c8a(0x25a)])}};this[_0xe8c8a(0x1e9)][_0xe8c8a(0x2a2)](_0x2807ed,this[_0xe8c8a(0x1da)]);},Zs)),(this['unitID']=_0x35d5a3,this['_session']=_0x3e80cb,this[_0x5a1c4f(0x3dd)]=_0x438a85,this['_colorAssignService']=_0x4311f4,this['_memberService']=_0x3ee91f,this['_univerInstanceService']=_0x427a2c,this[_0x5a1c4f(0x256)]=_0x3ad57b,this[_0x5a1c4f(0x385)]=_0x41c2c2);}get[_0x945337(0x496)](){const _0x3ddf53=_0x945337;return this[_0x3ddf53(0x4bc)][_0x3ddf53(0x2d6)]();}get['roomMembers'](){const _0x3542d2=_0x945337;return this[_0x3542d2(0x228)]['getValue']();}['dispose'](){const _0x1c2937=_0x945337;super[_0x1c2937(0x1eb)](),this['_cursorInfo$'][_0x1c2937(0x3ca)](new Map()),this[_0x1c2937(0x4bc)][_0x1c2937(0x531)](),this[_0x1c2937(0x228)]['next']([]),this[_0x1c2937(0x228)]['complete']();}['init'](){const _0x57bc12=_0x945337;this['_init']||(this[_0x57bc12(0x458)]=!0x0,this[_0x57bc12(0x1e9)][_0x57bc12(0x37f)]['pipe'](v['takeUntil'](this['dispose$']))[_0x57bc12(0x397)](_0x34a446=>{const _0x2f17f7=_0x57bc12;_0x34a446===$['ONLINE']?this[_0x2f17f7(0x415)]():this[_0x2f17f7(0x218)]();}),this[_0x57bc12(0x1e9)][_0x57bc12(0x23f)][_0x57bc12(0x550)](v[_0x57bc12(0x43c)](this[_0x57bc12(0x2ec)]))['subscribe'](_0x41ec47=>{const _0x2e5cbe=_0x57bc12,_0x1d591b=_0x41ec47[_0x2e5cbe(0x170)];_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x206)]&&this[_0x2e5cbe(0x1b8)](_0x41ec47),_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x3cb)]&&this[_0x2e5cbe(0x210)](_0x41ec47);}),this['_onRefRangeChange'](),this[_0x57bc12(0x50a)](this[_0x57bc12(0x256)]['onCommandExecuted'](_0x4ee6f6=>{const _0x13087e=_0x57bc12;if(this[_0x13087e(0x270)]&&_0x4ee6f6['id']===C[_0x13087e(0x4d1)]['id']&&_0x4ee6f6[_0x13087e(0x17c)][_0x13087e(0x212)]===this[_0x13087e(0x1da)]){const _0x1a6beb=_0x4ee6f6[_0x13087e(0x17c)];this[_0x13087e(0x4a7)](_0x1a6beb[_0x13087e(0x215)],_0x1a6beb[_0x13087e(0x53f)][0x0]);}})));}['_onCursorUpdate'](_0x44d616){const _0x153aec=_0x945337;var _0x3c91b5,_0x1be3c4;const {memberID:_0x4b859f,selection:_0x18a407}=_0x44d616[_0x153aec(0x375)],{sheetName:_0x39f5a3,range:_0x305843}=Je[_0x153aec(0x387)](_0x18a407),_0x18c5e0={'name':(_0x1be3c4=(_0x3c91b5=this[_0x153aec(0x526)][_0x153aec(0x467)](this[_0x153aec(0x1da)],_0x4b859f))==null?void 0x0:_0x3c91b5['name'])!=null?_0x1be3c4:_0x153aec(0x3c2),'range':this['_getMergeRange'](_0x39f5a3,_0x305843),'sheetID':_0x39f5a3,'color':this[_0x153aec(0x239)][_0x153aec(0x2ac)](_0x4b859f),'selection':_0x18a407},_0x4fa73d=this[_0x153aec(0x496)];_0x4fa73d['set'](_0x4b859f,_0x18c5e0),this[_0x153aec(0x4bc)][_0x153aec(0x3ca)](_0x4fa73d);}['_onCursorDelete'](_0x5501cb){const _0x347524=_0x945337,{memberID:_0x404df5}=_0x5501cb[_0x347524(0x375)],_0x138f11=this[_0x347524(0x496)];_0x138f11[_0x347524(0x532)](_0x404df5),this[_0x347524(0x4bc)][_0x347524(0x3ca)](_0x138f11);}[_0x945337(0x246)](_0x17bb34,_0x2a3afe){const _0x56debe=_0x945337;var _0x403c76,_0x3370d1;const _0x37f95c=(_0x3370d1=(_0x403c76=this[_0x56debe(0x337)][_0x56debe(0x224)](this[_0x56debe(0x1da)]))==null?void 0x0:_0x403c76['getSheetBySheetId'](_0x17bb34))==null?void 0x0:_0x3370d1[_0x56debe(0x544)]();return(_0x37f95c==null?void 0x0:_0x37f95c['find'](_0x53826d=>a[_0x56debe(0x1ff)][_0x56debe(0x36d)](_0x53826d,_0x2a3afe)))||_0x2a3afe;}['_onRefRangeChange'](){const _0x449f21=_0x945337,_0x25215c=new a[(_0x449f21(0x275))](),_0x49a8d2=Qs(),_0x7d752=()=>{const _0x9165cc=_0x449f21;_0x25215c['dispose']();const _0x543776=(_0x51da36,_0x1d7dcf,_0x3be053,_0x40b7db)=>{const _0x226ad8=_0x38f3;let _0x5eb90a=[];switch(_0x51da36['id']){case C['EffectRefRangId'][_0x226ad8(0x56e)]:{_0x5eb90a=C[_0x226ad8(0x1a7)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x36b)]:{_0x5eb90a=C[_0x226ad8(0x174)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x244)]:{_0x5eb90a=C[_0x226ad8(0x513)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x19f)]:{_0x5eb90a=C[_0x226ad8(0x476)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5eb90a=C['handleInsertRangeMoveRight'](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x1e2)]:{_0x5eb90a=C[_0x226ad8(0x213)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x3a6)]:{_0x5eb90a=C[_0x226ad8(0x4ec)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x21f)]:{_0x5eb90a=C['handleIRemoveCol'](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)]['RemoveRowCommandId']:{_0x5eb90a=C[_0x226ad8(0x235)](_0x51da36,_0x40b7db);break;}}const _0x56b77e=C[_0x226ad8(0x1fb)](_0x5eb90a,_0x40b7db),_0xf85cf6=this[_0x226ad8(0x496)][_0x226ad8(0x3eb)](_0x1d7dcf);if(_0xf85cf6&&_0x56b77e){const _0x4bd0c3={..._0xf85cf6,'range':_0x56b77e};this[_0x226ad8(0x496)][_0x226ad8(0x4a8)](_0x1d7dcf,_0x4bd0c3),_0x49a8d2(()=>{const _0x4d8c73=_0x226ad8,_0x5b44e9=this[_0x4d8c73(0x385)][_0x4d8c73(0x425)](_0x56b77e,_0x10d563=>(_0x5b44e9[_0x4d8c73(0x1eb)](),_0x543776(_0x10d563,_0x1d7dcf,_0x3be053,_0x56b77e)));_0x25215c[_0x4d8c73(0x18a)](_0x5b44e9);});}return{'redos':[],'undos':[]};};this[_0x9165cc(0x496)]['forEach']((_0x12faf0,_0x44b028)=>{const _0x4640f0=_0x9165cc,{range:_0x1d202d,sheetID:_0x179076}=_0x12faf0,_0x4b9c27=this[_0x4640f0(0x385)][_0x4640f0(0x425)](_0x1d202d,_0x587baa=>(_0x4b9c27[_0x4640f0(0x1eb)](),_0x543776(_0x587baa,_0x44b028,_0x179076,_0x1d202d)));_0x25215c['add'](_0x4b9c27);});};this['disposeWithMe'](a['toDisposable'](this[_0x449f21(0x4bc)][_0x449f21(0x397)](()=>{_0x7d752();})));}['_toggleOnline'](){const _0x306c6d=_0x945337;var _0x3ea472,_0x3c361f;if(this[_0x306c6d(0x270)]=!0x0,((_0x3ea472=this['_univerInstanceService'][_0x306c6d(0x255)]())==null?void 0x0:_0x3ea472[_0x306c6d(0x352)]())!==this['unitID'])return;const _0x52c8d0=(_0x3c361f=this[_0x306c6d(0x3dd)][_0x306c6d(0x3eb)](C[_0x306c6d(0x403)])[_0x306c6d(0x57f)]())==null?void 0x0:_0x3c361f[0x0],_0x18e48a=this[_0x306c6d(0x337)][_0x306c6d(0x528)](a[_0x306c6d(0x3b1)][_0x306c6d(0x53c)])['getActiveSheet']();_0x52c8d0&&_0x18e48a&&this['_updateLocalCursor'](_0x18e48a[_0x306c6d(0x221)](),_0x52c8d0);}[_0x945337(0x218)](){const _0x14a47b=_0x945337;this[_0x14a47b(0x270)]=!0x1;}};He=zs([Q(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),Q(0x3,a[_0x945337(0x4fa)](Xe)),Q(0x4,a[_0x945337(0x4fa)](q)),Q(0x5,a[_0x945337(0x57b)]),Q(0x6,a[_0x945337(0x400)]),Q(0x7,a[_0x945337(0x4fa)](C[_0x945337(0x2e3)]))],He);var ei=Object[_0x945337(0x24b)],ti=Object[_0x945337(0x3e2)],si=(_0x3637b7,_0x288c99,_0x4db61f,_0x146976)=>{const _0x571244=_0x945337;for(var _0x1b5faf=_0x146976>0x1?void 0x0:_0x146976?ti(_0x288c99,_0x4db61f):_0x288c99,_0x334a4b=_0x3637b7[_0x571244(0x3f0)]-0x1,_0x25f797;_0x334a4b>=0x0;_0x334a4b--)(_0x25f797=_0x3637b7[_0x334a4b])&&(_0x1b5faf=(_0x146976?_0x25f797(_0x288c99,_0x4db61f,_0x1b5faf):_0x25f797(_0x1b5faf))||_0x1b5faf);return _0x146976&&_0x1b5faf&&ei(_0x288c99,_0x4db61f,_0x1b5faf),_0x1b5faf;},Pe=(_0x5c9361,_0x5b4c0d)=>(_0x390513,_0x2cafe4)=>_0x5b4c0d(_0x390513,_0x2cafe4,_0x5c9361);let ie=class extends a[_0x945337(0x538)]{constructor(_0x4a613f,_0x35bb96,_0x3566fc){const _0x297632=_0x945337;super(),d(this,'_entities',new Map()),d(this,_0x297632(0x32d),new v[(_0x297632(0x36e))]()),(this['_univerInstanceService']=_0x4a613f,this[_0x297632(0x3dd)]=_0x35bb96,this[_0x297632(0x407)]=_0x3566fc,this[_0x297632(0x458)]());}[_0x945337(0x1eb)](){const _0x376ff1=_0x945337;super[_0x376ff1(0x1eb)](),this['_entityInit$'][_0x376ff1(0x531)](),this[_0x376ff1(0x565)][_0x376ff1(0x278)](_0x1cba43=>_0x1cba43[_0x376ff1(0x1eb)]());}[_0x945337(0x2c6)](_0x5688c2){const _0x3553f1=_0x945337;return this[_0x3553f1(0x565)][_0x3553f1(0x384)](_0x5688c2)?this['_entities'][_0x3553f1(0x3eb)](_0x5688c2)[_0x3553f1(0x247)]:this[_0x3553f1(0x32d)]['pipe'](v[_0x3553f1(0x1dc)](_0x28d7fd=>_0x28d7fd[_0x3553f1(0x1da)]===_0x5688c2),v['switchMap'](_0x2b43cf=>_0x2b43cf['cursorInfo$']));}[_0x945337(0x458)](){const _0x3575b1=_0x945337;this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)])['pipe'](v[_0x3575b1(0x43c)](this['dispose$']))[_0x3575b1(0x397)](async _0x224c96=>{const _0x4214a6=_0x3575b1,_0x29d880=_0x224c96['getUnitId'](),_0x4ff3e1=await this[_0x4214a6(0x32a)](_0x29d880);this[_0x4214a6(0x32d)][_0x4214a6(0x3ca)](_0x4ff3e1),this[_0x4214a6(0x565)][_0x4214a6(0x4a8)](_0x29d880,_0x4ff3e1);}),this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)])[_0x3575b1(0x550)](v[_0x3575b1(0x43c)](this[_0x3575b1(0x2ec)]))['pipe'](v[_0x3575b1(0x1dc)](_0x2a5c77=>!_0x2a5c77['getUnitId']()[_0x3575b1(0x2aa)]('__')))['subscribe'](async _0x1af05e=>{const _0x403326=_0x3575b1,_0x5b612e=_0x1af05e['getUnitId'](),_0x5753c6=await this[_0x403326(0x43b)](_0x5b612e);this[_0x403326(0x32d)][_0x403326(0x3ca)](_0x5753c6),this['_entities'][_0x403326(0x4a8)](_0x5b612e,_0x5753c6);}),v[_0x3575b1(0x515)](this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)]),this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)]))[_0x3575b1(0x550)](v['takeUntil'](this['dispose$']))['subscribe'](_0x34c1f6=>{const _0x49cb2a=_0x3575b1,_0xe38696=_0x34c1f6[_0x49cb2a(0x352)](),_0x5b9e02=this[_0x49cb2a(0x565)][_0x49cb2a(0x3eb)](_0xe38696);_0x5b9e02&&(_0x5b9e02[_0x49cb2a(0x1eb)](),this[_0x49cb2a(0x565)][_0x49cb2a(0x532)](_0xe38696));});}async[_0x945337(0x32a)](_0x3bdbb8){const _0xf8fd2f=_0x945337,_0x88888d=await this[_0xf8fd2f(0x407)][_0xf8fd2f(0x369)](_0x3bdbb8),_0x211101=this[_0xf8fd2f(0x3dd)][_0xf8fd2f(0x39d)](He,_0x3bdbb8,_0x88888d);return _0x211101[_0xf8fd2f(0x55a)](),_0x211101;}async[_0x945337(0x43b)](_0x1984cd){const _0x35a73b=_0x945337,_0x5e6cde=await this[_0x35a73b(0x407)]['requireSession'](_0x1984cd),_0x2a0af5=this[_0x35a73b(0x3dd)][_0x35a73b(0x39d)]($e,_0x1984cd,_0x5e6cde);return _0x2a0af5[_0x35a73b(0x55a)](),_0x2a0af5;}};ie=si([Pe(0x0,a[_0x945337(0x57b)]),Pe(0x1,a[_0x945337(0x4fa)](a['Injector'])),Pe(0x2,a[_0x945337(0x4fa)](exports[_0x945337(0x3a5)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x422780,_0x25565a){const _0x4f36ef=_0x945337;let {radius:_0x191735,width:_0x2ecfcb,height:_0x4131f2}=_0x25565a;_0x191735=_0x191735!=null?_0x191735:0x0,_0x2ecfcb=_0x2ecfcb!=null?_0x2ecfcb:0x1e,_0x4131f2=_0x4131f2!=null?_0x4131f2:0x1e;let _0x58bbb4=0x0,_0x250308=0x0,_0x504099=0x0;_0x58bbb4=_0x250308=_0x504099=Math['min'](_0x191735,_0x2ecfcb/0x2,_0x4131f2/0x2),_0x422780[_0x4f36ef(0x4e5)](),_0x422780[_0x4f36ef(0x546)](_0x58bbb4,0x0),_0x422780[_0x4f36ef(0x329)](_0x2ecfcb-_0x250308,0x0),_0x422780['arc'](_0x2ecfcb-_0x250308,_0x250308,_0x250308,Math['PI']*0x3/0x2,0x0,!0x1),_0x422780['lineTo'](_0x2ecfcb,_0x4131f2-_0x504099),_0x422780[_0x4f36ef(0x386)](_0x2ecfcb-_0x504099,_0x4131f2-_0x504099,_0x504099,0x0,Math['PI']/0x2,!0x1),_0x422780['lineTo'](0x0,_0x4131f2),_0x422780[_0x4f36ef(0x329)](0x0,_0x58bbb4),_0x422780[_0x4f36ef(0x386)](_0x58bbb4,_0x58bbb4,_0x58bbb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x422780['closePath'](),_0x25565a[_0x4f36ef(0x18c)]&&(_0x422780['save'](),_0x422780[_0x4f36ef(0x42c)]=_0x25565a[_0x4f36ef(0x18c)],_0x25565a[_0x4f36ef(0x38d)]===_0x4f36ef(0x439)?_0x422780[_0x4f36ef(0x18c)](_0x4f36ef(0x439)):_0x422780[_0x4f36ef(0x18c)](),_0x422780[_0x4f36ef(0x44b)]());}class Te extends R[_0x945337(0x366)]{constructor(_0x8e0119,_0x322db9){const _0x2cfa25=_0x945337;super(_0x8e0119,_0x322db9),d(this,_0x2cfa25(0x22b)),d(this,_0x2cfa25(0x4c8)),(this[_0x2cfa25(0x22b)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x22b)],this[_0x2cfa25(0x4c8)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x4c8)]);}static[_0x945337(0x39e)](_0x3d0090,_0x421397){const _0x7ad74e=_0x945337,{text:_0x4940dd,color:_0x392e04}=_0x421397;_0x3d0090[_0x7ad74e(0x4ab)](),_0x3d0090['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x345f55=_0x3d0090[_0x7ad74e(0x38a)](_0x4940dd)['width'],_0x1d17df=Math[_0x7ad74e(0x354)](_0x345f55+0x2*we,rt);ni(_0x3d0090,{'height':ue,'radius':0x4,'width':_0x1d17df,'fill':_0x392e04,'evented':!0x1}),_0x3d0090['fillStyle']=_0x7ad74e(0x309);const _0x213428=we,_0x8fe22f=ue-ii,_0x24cee5=rt-0x2*we;if(_0x345f55>_0x24cee5){let _0x260599='',_0x46c08f=0x0;for(const _0x2430e2 of _0x4940dd){const _0x1ee339=_0x3d0090[_0x7ad74e(0x38a)](_0x2430e2)[_0x7ad74e(0x1bc)];if(_0x46c08f+_0x1ee339<=_0x24cee5-_0x3d0090[_0x7ad74e(0x38a)]('...')[_0x7ad74e(0x1bc)])_0x260599+=_0x2430e2,_0x46c08f+=_0x1ee339;else{_0x260599+=_0x7ad74e(0x2ba);break;}}_0x3d0090[_0x7ad74e(0x274)](_0x260599,_0x213428,_0x8fe22f);}else _0x3d0090[_0x7ad74e(0x274)](_0x4940dd,_0x213428,_0x8fe22f);_0x3d0090[_0x7ad74e(0x44b)]();}[_0x945337(0x481)](_0x475ffc){const _0x16447c=_0x945337;Te[_0x16447c(0x39e)](_0x475ffc,this);}}const Me=_0x945337(0x200),ri='collab-text-range-',oi=_0x945337(0x41f),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x945337(0x27b);class ot{constructor(_0x117381,_0x5d6457,_0x50261d,_0x26d736){const _0xdc3ae=_0x945337;d(this,_0xdc3ae(0x556),[]),d(this,_0xdc3ae(0x401),null),d(this,_0xdc3ae(0x4e0),null),d(this,'_anchorDot',null),d(this,_0xdc3ae(0x3d1),null),d(this,_0xdc3ae(0x4c6),null),(this['_cursor']=_0x117381,this['_scene']=_0x5d6457,this['_docSkeleton']=_0x50261d,this[_0xdc3ae(0x327)]=_0x26d736,this['_render']());}set[_0x945337(0x4ff)](_0x157945){const _0x3b4567=_0x945337;_0x157945?(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)][_0x3b4567(0x566)](),this[_0x3b4567(0x4e0)]&&this[_0x3b4567(0x4e0)][_0x3b4567(0x411)]()):(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)]['show'](),this['_textBubble']&&this[_0x3b4567(0x4e0)]['hide']());}[_0x945337(0x1eb)](){const _0x40f36e=_0x945337;for(const _0x3f4b90 of this[_0x40f36e(0x556)])_0x3f4b90['dispose']();this['_textBubble']&&this[_0x40f36e(0x4e0)]['dispose'](),this[_0x40f36e(0x3e0)]&&this[_0x40f36e(0x3e0)][_0x40f36e(0x1eb)](),this[_0x40f36e(0x401)]&&this[_0x40f36e(0x401)][_0x40f36e(0x1eb)](),this['_eventUnsubscribe']&&this[_0x40f36e(0x4c6)]();}['_render'](){const _0x5f4a8d=_0x945337;var _0x279d02;const {_docSkeleton:_0x220900,_document:_0x2b87bb}=this,{color:_0x23a638,name:_0x1d74f6,ranges:_0x30da0b}=this[_0x5f4a8d(0x32b)],_0x2109c0=_0x2b87bb[_0x5f4a8d(0x26d)](),{docsLeft:_0x3bf1a3,docsTop:_0x505255}=_0x2109c0,_0x81d62b=new w['NodePositionConvertToCursor'](_0x2109c0,_0x220900);for(const {startOffset:_0x58f2dd,endOffset:_0x3dbe4b,collapsed:_0x4800af,isActive:_0x44fcec}of _0x30da0b){const _0x5a1e5f=_0x220900[_0x5f4a8d(0x46a)](_0x58f2dd),_0x799f45=_0x220900['findNodePositionByCharIndex'](_0x3dbe4b);if(_0x44fcec){const {contentBoxPointGroup:_0x2e1911}=_0x81d62b[_0x5f4a8d(0x54f)](_0x799f45,_0x799f45);if(_0x2e1911['length']===0x0)continue;this[_0x5f4a8d(0x450)](_0x23a638,_0x2e1911,_0x3bf1a3,_0x505255,_0x1d74f6),this[_0x5f4a8d(0x4c6)]=this['_handleHover']();}if(!_0x4800af&&_0x5a1e5f&&_0x799f45){if(w[_0x5f4a8d(0x2f0)](_0x5a1e5f,_0x799f45)){const _0xc7dfe8=new w[(_0x5f4a8d(0x211))](_0x2109c0,_0x220900),{pointGroup:_0xb4710e}=(_0x279d02=_0xc7dfe8[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45))!=null?_0x279d02:{};if(_0xb4710e==null||_0xb4710e[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x563)](_0x23a638,_0xb4710e,_0x3bf1a3,_0x505255);}else{const {contentBoxPointGroup:_0x3712d0}=_0x81d62b[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45);if(_0x3712d0[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x3aa)](_0x23a638,_0x3712d0,_0x3bf1a3,_0x505255);}}}}[_0x945337(0x450)](_0x991b32,_0x7b77d,_0xfea517,_0x436faa,_0x2d0ce6){const _0x36445a=_0x945337,_0x16df93=this[_0x36445a(0x1e7)](_0x7b77d),{left:_0x245045,top:_0x118e79,height:_0x382bce}=_0x16df93,_0x4cddb0=this[_0x36445a(0x303)](),_0x560312=ci/_0x4cddb0,_0x2edf53=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa,'height':_0x382bce,'width':ai,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':_0x560312,'stroke':li,'evented':!0x0});this[_0x36445a(0x401)]=_0x2edf53,this['_scene'][_0x36445a(0x4a5)](_0x2edf53,w[_0x36445a(0x48b)]);const _0xdb98b2=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':0x0,'stroke':_0x991b32||R['getColor'](a[_0x36445a(0x27a)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xdb98b2,this['_scene'][_0x36445a(0x4a5)](_0xdb98b2,w[_0x36445a(0x48b)]);const _0x3f8f83=new Te(Me+a[_0x36445a(0x4ea)]['generateRandomId'](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-ue,'text':_0x2d0ce6,'color':_0x991b32});this[_0x36445a(0x4e0)]=_0x3f8f83,this[_0x36445a(0x52d)][_0x36445a(0x4a5)](_0x3f8f83,w['TEXT_RANGE_LAYER_INDEX']),this[_0x36445a(0x4ff)]=!0x1;}['_handleHover'](){const _0x19a697=_0x945337,_0x504c02=this[_0x19a697(0x401)]['onPointerEnter$'][_0x19a697(0x28a)](()=>{const _0x3e45eb=_0x19a697;this[_0x3e45eb(0x4ff)]=!0x0;}),_0x3c49ef=this[_0x19a697(0x401)][_0x19a697(0x4c0)][_0x19a697(0x28a)](()=>{const _0x5d0b42=_0x19a697;this[_0x5d0b42(0x3d1)]&&clearTimeout(this['_hideTimer']),this[_0x5d0b42(0x3d1)]=setTimeout(()=>{const _0x495c7c=_0x5d0b42;this[_0x495c7c(0x4ff)]=!0x1;},0x7d0);});return()=>{const _0x4ac040=_0x19a697;_0x504c02[_0x4ac040(0x346)](),_0x3c49ef[_0x4ac040(0x346)]();};}[_0x945337(0x3aa)](_0x1ed666,_0x13fa76,_0xb197ed,_0x1ba8bd){const _0x5b7fba=_0x945337,_0xdc262d=new a['ColorKit'](_0x1ed666)[_0x5b7fba(0x29f)](0.2)[_0x5b7fba(0x35b)](),_0x5ea3be=new R[(_0x5b7fba(0x1fe))](ri+a[_0x5b7fba(0x4ea)][_0x5b7fba(0x227)](ce),{'pointsGroup':_0x13fa76,'fill':_0xdc262d||R['getColor'](a[_0x5b7fba(0x27a)][_0x5b7fba(0x484)],0.2),'left':_0xb197ed,'top':_0x1ba8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b7fba(0x556)]['push'](_0x5ea3be),this['_scene'][_0x5b7fba(0x4a5)](_0x5ea3be,w[_0x5b7fba(0x48b)]);}[_0x945337(0x563)](_0x3c73dd,_0x247da3,_0xe352a4,_0x5ad3c6){const _0x560689=_0x945337,_0x236904=new a[(_0x560689(0x1a4))](_0x3c73dd)[_0x560689(0x29f)](0.2)['toRgbString'](),_0xd68263=new R[(_0x560689(0x1fe))](oi+a[_0x560689(0x4ea)][_0x560689(0x227)](ce),{'pointsGroup':_0x247da3,'fill':_0x236904||R[_0x560689(0x32e)](a[_0x560689(0x27a)][_0x560689(0x484)],0.2),'left':_0xe352a4,'top':_0x5ad3c6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x560689(0x3b0)](_0xd68263),this[_0x560689(0x52d)][_0x560689(0x4a5)](_0xd68263,w[_0x560689(0x48b)]);}['_getAnchorBounding'](_0x3d9efa){const _0x7fb43a=_0x3d9efa[0x0],_0x508e43=_0x7fb43a[0x0],_0x27bbda=_0x7fb43a[0x2],{x:_0x3c970a,y:_0x1ea9fb}=_0x508e43,{x:_0x38bc6a,y:_0xb52cbb}=_0x27bbda;return{'left':_0x3c970a,'top':_0x1ea9fb,'width':_0x38bc6a-_0x3c970a,'height':_0xb52cbb-_0x1ea9fb};}[_0x945337(0x303)](){const _0x549e7d=_0x945337,{scaleX:_0x4b9960,scaleY:_0x4f0427}=this[_0x549e7d(0x52d)][_0x549e7d(0x394)]();return Math[_0x549e7d(0x25c)](_0x4b9960,_0x4f0427);}}var hi=Object[_0x945337(0x24b)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x989dd,_0x4daac4,_0x2b25e7,_0x1f30d1)=>{for(var _0x48e5a6=_0x1f30d1>0x1?void 0x0:_0x1f30d1?_i(_0x4daac4,_0x2b25e7):_0x4daac4,_0x4a1875=_0x989dd['length']-0x1,_0x271052;_0x4a1875>=0x0;_0x4a1875--)(_0x271052=_0x989dd[_0x4a1875])&&(_0x48e5a6=(_0x1f30d1?_0x271052(_0x4daac4,_0x2b25e7,_0x48e5a6):_0x271052(_0x48e5a6))||_0x48e5a6);return _0x1f30d1&&_0x48e5a6&&hi(_0x4daac4,_0x2b25e7,_0x48e5a6),_0x48e5a6;},de=(_0x41caa7,_0x297d6a)=>(_0x32ca0f,_0x5c00b0)=>_0x297d6a(_0x32ca0f,_0x5c00b0,_0x41caa7);let xe=class extends a[_0x945337(0x538)]{constructor(_0x24d042,_0x38f4f2,_0x962181,_0x18db58,_0x6af205){const _0x2045e8=_0x945337;super(),d(this,_0x2045e8(0x2f5),[]),d(this,_0x2045e8(0x3b8),[]),(this['_context']=_0x24d042,this[_0x2045e8(0x3f3)]=_0x38f4f2,this[_0x2045e8(0x356)]=_0x962181,this['_commandService']=_0x18db58,this[_0x2045e8(0x42d)]=_0x6af205,this[_0x2045e8(0x458)]());}[_0x945337(0x458)](){const _0x35b169=_0x945337,_0x4eb326=this[_0x35b169(0x3e8)][_0x35b169(0x212)],_0x5e6288=this[_0x35b169(0x3f3)];this[_0x35b169(0x50a)](v[_0x35b169(0x2b4)]([this['_collabCursorController'][_0x35b169(0x2c6)](_0x4eb326),this[_0x35b169(0x42d)][_0x35b169(0x3f8)]])[_0x35b169(0x550)](E[_0x35b169(0x2c1)](([_0x5bda81,_0x57e71a])=>({'skeleton':_0x5e6288['getSkeleton'](),'cursors':[..._0x5bda81[_0x35b169(0x27f)]()][_0x35b169(0x365)](_0x587fec=>({..._0x587fec,'color':_0x57e71a[_0x587fec['color']]}))})))['subscribe'](_0x25413f=>{const _0x222ee2=_0x35b169;if(this['_removeCollabCursors'](),_0x25413f){const {skeleton:_0x306ba4,cursors:_0x89dc97}=_0x25413f;this[_0x222ee2(0x376)](_0x306ba4,_0x89dc97);}})),this['_initResize'](),this[_0x35b169(0x4c7)]();}[_0x945337(0x376)](_0x8d2b4a,_0x337486){const _0x2b8098=_0x945337,{scene:_0x531f3f,mainComponent:_0x4d7aa9}=this[_0x2b8098(0x3e8)],_0x225aff=_0x337486[_0x2b8098(0x2c1)](_0x29cf29=>new ot(_0x29cf29,_0x531f3f,_0x8d2b4a,_0x4d7aa9));this['_cursorShapes']=_0x225aff,this[_0x2b8098(0x3b8)]=_0x337486;}[_0x945337(0x3be)](){const _0x5bf801=_0x945337;this[_0x5bf801(0x3bf)]();const {scene:_0x1a1984,mainComponent:_0x432f29}=this[_0x5bf801(0x3e8)],_0x47710c=this['_docSkeletonManagerService'][_0x5bf801(0x176)](),_0x17bc1d=this[_0x5bf801(0x3b8)][_0x5bf801(0x2c1)](_0x5eb294=>new ot(_0x5eb294,_0x1a1984,_0x47710c,_0x432f29));this[_0x5bf801(0x2f5)]=_0x17bc1d;}['_removeCollabCursors'](){const _0x57564f=_0x945337;this[_0x57564f(0x2f5)][_0x57564f(0x278)](_0x2aff1f=>_0x2aff1f['dispose']()),this[_0x57564f(0x2f5)]=[];}[_0x945337(0x4c7)](){const _0x4d1df1=_0x945337,_0x5ec294=[w['SetDocZoomRatioOperation']['id']];this[_0x4d1df1(0x50a)](this[_0x4d1df1(0x256)][_0x4d1df1(0x3ad)](_0x4f5f44=>{const _0x4f538c=_0x4d1df1;_0x5ec294[_0x4f538c(0x38c)](_0x4f5f44['id'])&&_0x4f5f44[_0x4f538c(0x17c)][_0x4f538c(0x212)]===this['_context'][_0x4f538c(0x212)]&&this[_0x4f538c(0x3be)]();}));}[_0x945337(0x52b)](){const _0x1af575=_0x945337;this[_0x1af575(0x50a)](a[_0x1af575(0x3fc)](this[_0x1af575(0x3e8)][_0x1af575(0x1ac)][_0x1af575(0x31e)])[_0x1af575(0x550)](E[_0x1af575(0x1dc)](_0x1e7a6c=>_0x1e7a6c[_0x1af575(0x243)]===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1af575(0x391)]),E[_0x1af575(0x1d8)](0x10))[_0x1af575(0x397)](()=>{const _0x24f8b3=_0x1af575;this[_0x24f8b3(0x3be)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x945337(0x447)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x945337(0x400)]),de(0x4,a['Inject'](a[_0x945337(0x2a4)]))],xe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x382b78,_0x3779df){const _0x4defd6=_0x945337;super(_0x382b78,_0x3779df),d(this,_0x4defd6(0x197)),d(this,_0x4defd6(0x49b),!0x1),d(this,_0x4defd6(0x225)),d(this,_0x4defd6(0x203),''),d(this,_0x4defd6(0x33e),_0x4defd6(0x22f)),d(this,_0x4defd6(0x353)),(_0x3779df&&this[_0x4defd6(0x382)](_0x3779df),this[_0x4defd6(0x44f)][_0x4defd6(0x28a)](()=>this[_0x4defd6(0x382)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4defd6(0x382)]({'hovered':!0x1})));}[_0x945337(0x382)](_0x287536){const _0x570ee2=_0x945337;var _0x5b3b1e,_0x3876a4,_0x3da982,_0x2da7dd,_0x4f8726,_0x29b3f1;this['_color']=(_0x5b3b1e=_0x287536[_0x570ee2(0x22b)])!=null?_0x5b3b1e:this[_0x570ee2(0x197)],this['_hovered']=(_0x3876a4=_0x287536[_0x570ee2(0x240)])!=null?_0x3876a4:this[_0x570ee2(0x49b)],this[_0x570ee2(0x225)]=(_0x3da982=_0x287536[_0x570ee2(0x25a)])!=null?_0x3da982:this[_0x570ee2(0x225)],this[_0x570ee2(0x203)]=(_0x2da7dd=_0x287536[_0x570ee2(0x508)])!=null?_0x2da7dd:this[_0x570ee2(0x203)],this['_labelPosition']=(_0x4f8726=_0x287536[_0x570ee2(0x370)])!=null?_0x4f8726:this[_0x570ee2(0x33e)],this[_0x570ee2(0x353)]=(_0x29b3f1=_0x287536[_0x570ee2(0x304)])!=null?_0x29b3f1:this[_0x570ee2(0x353)],this[_0x570ee2(0x3ce)]({'width':_0x287536['width'],'height':_0x287536[_0x570ee2(0x2f8)]});}[_0x945337(0x3de)](_0x57635f){const _0x165e2c=_0x945337,{row:_0x2f3c3d,column:_0x232bf1}=_0x57635f;if(_0x2f3c3d>=this['_range']['startRow']&&_0x2f3c3d<=this['_range']['endRow']&&_0x232bf1>=this[_0x165e2c(0x225)][_0x165e2c(0x462)]&&_0x232bf1<=this['_range'][_0x165e2c(0x284)]){this[_0x165e2c(0x382)]({'hovered':!0x0});return;}this[_0x165e2c(0x382)]({'hovered':!0x1});}[_0x945337(0x26c)](_0x3efa56){return!0x1;}[_0x945337(0x481)](_0x5ce87e){const _0xc6af58=_0x945337;R[_0xc6af58(0x1f8)][_0xc6af58(0x39e)](_0x5ce87e,{'width':this[_0xc6af58(0x1bc)],'height':this['height'],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc6af58(0x353)]}),this['_hovered']&&(_0x5ce87e[_0xc6af58(0x4ab)](),_0x5ce87e[_0xc6af58(0x449)](0x1,0x0,0x0,0x1,this['width'],this[_0xc6af58(0x33e)]===_0xc6af58(0x4db)?0x0:-ue),Te[_0xc6af58(0x39e)](_0x5ce87e,{'text':this[_0xc6af58(0x203)],'color':this[_0xc6af58(0x197)]}),_0x5ce87e[_0xc6af58(0x44b)]());}}var vi=Object['defineProperty'],fi=Object[_0x945337(0x3e2)],gi=(_0x407ab8,_0x4c00f8,_0x373964,_0x4a72a9)=>{const _0x138567=_0x945337;for(var _0x1f1413=_0x4a72a9>0x1?void 0x0:_0x4a72a9?fi(_0x4c00f8,_0x373964):_0x4c00f8,_0x115274=_0x407ab8[_0x138567(0x3f0)]-0x1,_0x11988a;_0x115274>=0x0;_0x115274--)(_0x11988a=_0x407ab8[_0x115274])&&(_0x1f1413=(_0x4a72a9?_0x11988a(_0x4c00f8,_0x373964,_0x1f1413):_0x11988a(_0x1f1413))||_0x1f1413);return _0x4a72a9&&_0x1f1413&&vi(_0x4c00f8,_0x373964,_0x1f1413),_0x1f1413;},Ae=(_0x171099,_0x6b642f)=>(_0x58973f,_0x3386c6)=>_0x6b642f(_0x58973f,_0x3386c6,_0x171099);const mi=0x1389;let ke=class extends a[_0x945337(0x538)]{constructor(_0x5343df,_0x30c5c6,_0x1796b5,_0x5b4ace){const _0x11c3b7=_0x945337;super(),d(this,_0x11c3b7(0x3b8),new Set()),d(this,_0x11c3b7(0x43a),null),(this[_0x11c3b7(0x3e8)]=_0x5343df,this[_0x11c3b7(0x2a6)]=_0x30c5c6,this[_0x11c3b7(0x356)]=_0x1796b5,this[_0x11c3b7(0x42d)]=_0x5b4ace,this['_init']());}[_0x945337(0x458)](){const _0x18035=_0x945337;this[_0x18035(0x2a6)]['currentSkeleton$'][_0x18035(0x550)](E[_0x18035(0x43c)](this['dispose$']),E[_0x18035(0x442)](_0x3e5bae=>{const _0x19f80e=_0x18035;if(_0x3e5bae){const _0x12481d=_0x3e5bae['sheetId'];return v[_0x19f80e(0x2b4)](this[_0x19f80e(0x356)][_0x19f80e(0x2c6)](this[_0x19f80e(0x3e8)][_0x19f80e(0x212)]),this[_0x19f80e(0x42d)][_0x19f80e(0x3f8)])[_0x19f80e(0x550)](E[_0x19f80e(0x2c1)](([_0x24a336,_0x3e0d04])=>{const _0x51a473=_0x19f80e,_0x3edf26=new Map();return _0x24a336[_0x51a473(0x278)]((_0x28be31,_0x363970)=>{const _0x3b2cfc=_0x51a473;if(_0x28be31[_0x3b2cfc(0x264)]===_0x12481d){const _0x5dcc5e={..._0x28be31};_0x5dcc5e['color']=_0x3e0d04[_0x28be31[_0x3b2cfc(0x22b)]],_0x3edf26[_0x3b2cfc(0x4a8)](_0x363970,_0x5dcc5e);}}),{'skeleton':_0x3e5bae,'cursors':_0x3edf26};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18035(0x397)](({skeleton:_0x17e714,cursors:_0x596d7c})=>{const _0xb27546=_0x18035;this[_0xb27546(0x3bf)](),_0x17e714&&this[_0xb27546(0x376)](_0x17e714,_0x596d7c);}),this[_0x18035(0x2a6)][_0x18035(0x3d0)][_0x18035(0x397)](_0x4c0ac4=>{const _0x159a99=_0x18035;if(_0x4c0ac4==null)return;const {skeleton:_0x208a6c}=_0x4c0ac4,{scene:_0x41adfe}=this[_0x159a99(0x3e8)];_0x41adfe[_0x159a99(0x3af)][_0x159a99(0x28a)](a[_0x159a99(0x49c)](_0x1bc98d=>{const _0xb86ed0=_0x159a99;var _0x298f34,_0x2818de;const {offsetX:_0x238577,offsetY:_0x3ea516}=_0x1bc98d,{x:_0x5b3cee,y:_0x205e06}=_0x41adfe['getRelativeToViewportCoord'](R[_0xb86ed0(0x490)]['FromArray']([_0x238577,_0x3ea516])),{scaleX:_0x44b130,scaleY:_0x1a8718}=_0x41adfe[_0xb86ed0(0x394)](),_0x45e64b=_0x41adfe[_0xb86ed0(0x195)](te[_0xb86ed0(0x3d9)][_0xb86ed0(0x37b)]),_0x15f2a3=_0x41adfe[_0xb86ed0(0x207)](R['Vector2']['FromArray']([_0x5b3cee,_0x205e06]),_0x45e64b),_0x5b9c0f=_0x208a6c[_0xb86ed0(0x2cb)](_0x238577,_0x3ea516,_0x44b130,_0x1a8718,_0x15f2a3);((_0x298f34=this['_lastPointer'])==null?void 0x0:_0x298f34[_0xb86ed0(0x4b4)])===_0x5b9c0f[_0xb86ed0(0x4b4)]&&((_0x2818de=this[_0xb86ed0(0x43a)])==null?void 0x0:_0x2818de[_0xb86ed0(0x3fb)])===_0x5b9c0f[_0xb86ed0(0x3fb)]||this['_cursors'][_0xb86ed0(0x278)](_0x17d95e=>{const _0x40849c=_0xb86ed0;_0x17d95e[_0x40849c(0x3de)](_0x5b9c0f);});},0x64));});}[_0x945337(0x376)](_0x3dceac,_0x21231e){const _0x32dd3e=_0x945337;var _0x3ab2c4;const _0x57b547=(_0x3ab2c4=this[_0x32dd3e(0x2a6)]['getCurrent']())==null?void 0x0:_0x3ab2c4['skeleton'];if(!_0x57b547)return;const _0x24d4fb=this[_0x32dd3e(0x419)]();if(!_0x24d4fb)return;this['_cursors'][_0x32dd3e(0x278)](_0x1b9d50=>{const _0x34c204=_0x32dd3e;_0x1b9d50[_0x34c204(0x2e5)]();});const {scene:_0x2bce08}=_0x24d4fb,_0x300722=Ii(Array[_0x32dd3e(0x3f2)](_0x21231e[_0x32dd3e(0x27f)]()))[_0x32dd3e(0x2c1)](_0x6f3596=>{const _0x1e9894=_0x32dd3e,{color:_0x5c82c9,range:_0x5de28e,name:_0x510418,selection:_0x3f1139,sheetID:_0x9a22c4}=_0x6f3596,{startColumn:_0x52e607,startRow:_0x5a2df1,endColumn:_0x15a109,endRow:_0x11b1c4}=_0x5de28e,_0x6c9e46=te[_0x1e9894(0x39f)](_0x5a2df1,_0x52e607,_0x2bce08,_0x57b547),_0x5abc55=te['getCoordByCell'](_0x11b1c4,_0x15a109,_0x2bce08,_0x57b547),{columnHeaderHeightAndMarginTop:_0xd15b2b}=_0x57b547,{startX:_0x1b2110,startY:_0x20132d}=_0x6c9e46,{endX:_0x1becf0,endY:_0x294fed}=_0x5abc55,_0x50c104=_0x1becf0-_0x1b2110,_0x3116fe=_0x294fed-_0x20132d,_0x59acbb={'labelPosition':_0x20132d-_0xd15b2b>=ue?_0x1e9894(0x22f):_0x1e9894(0x4db),'sheetID':_0x9a22c4,'range':_0x5de28e,'color':_0x5c82c9,'name':_0x510418,'selection':_0x3f1139,'left':_0x1b2110,'top':_0x20132d,'width':_0x50c104,'height':_0x3116fe,'evented':!0x1,'zIndex':mi};return new Ot(_0x510418,_0x59acbb);});_0x2bce08[_0x32dd3e(0x477)](_0x300722,di),this[_0x32dd3e(0x3b8)]=new Set(_0x300722);}[_0x945337(0x3bf)](){const _0xe65db5=_0x945337;var _0x3e34c3;(_0x3e34c3=this[_0xe65db5(0x3b8)])==null||_0x3e34c3[_0xe65db5(0x278)](_0x566d60=>_0x566d60[_0xe65db5(0x1eb)]());}[_0x945337(0x419)](){const _0x528281=_0x945337;return te[_0x528281(0x2b9)](this['_context'][_0x528281(0x42a)],this['_context']);}};ke=gi([Ae(0x1,a[_0x945337(0x4fa)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x945337(0x4fa)](a['ThemeService']))],ke);function Ii(_0x23850c){const _0x1120d8=_0x945337,_0x4e8b12=new Map();return _0x23850c[_0x1120d8(0x278)](_0x2883f0=>{const _0x14d839=_0x1120d8;if(_0x4e8b12[_0x14d839(0x384)](_0x2883f0[_0x14d839(0x2a9)])){const _0x31f281=_0x4e8b12[_0x14d839(0x3eb)](_0x2883f0[_0x14d839(0x2a9)]);_0x31f281[_0x14d839(0x508)]+=',\x20'+_0x2883f0[_0x14d839(0x508)];}else _0x4e8b12[_0x14d839(0x4a8)](_0x2883f0[_0x14d839(0x2a9)],_0x2883f0);}),Array[_0x1120d8(0x3f2)](_0x4e8b12[_0x1120d8(0x27f)]());}var M=function(){const _0x1d8d38=_0x945337;return M=Object[_0x1d8d38(0x33f)]||function(_0x1d15be){const _0x10d6b0=_0x1d8d38;for(var _0x3a2043,_0x455f00=0x1,_0x38d634=arguments[_0x10d6b0(0x3f0)];_0x455f00<_0x38d634;_0x455f00++){_0x3a2043=arguments[_0x455f00];for(var _0x3f5ec5 in _0x3a2043)Object['prototype'][_0x10d6b0(0x47c)][_0x10d6b0(0x441)](_0x3a2043,_0x3f5ec5)&&(_0x1d15be[_0x3f5ec5]=_0x3a2043[_0x3f5ec5]);}return _0x1d15be;},M[_0x1d8d38(0x319)](this,arguments);},pi=function(_0x43af07,_0x430b1c){const _0x535be6=_0x945337;var _0xffdf0={};for(var _0x4e2ed2 in _0x43af07)Object['prototype'][_0x535be6(0x47c)]['call'](_0x43af07,_0x4e2ed2)&&_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2)<0x0&&(_0xffdf0[_0x4e2ed2]=_0x43af07[_0x4e2ed2]);if(_0x43af07!=null&&typeof Object[_0x535be6(0x34e)]==_0x535be6(0x408)){for(var _0x2f1599=0x0,_0x4e2ed2=Object['getOwnPropertySymbols'](_0x43af07);_0x2f1599<_0x4e2ed2['length'];_0x2f1599++)_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2[_0x2f1599])<0x0&&Object[_0x535be6(0x4c5)][_0x535be6(0x242)][_0x535be6(0x441)](_0x43af07,_0x4e2ed2[_0x2f1599])&&(_0xffdf0[_0x4e2ed2[_0x2f1599]]=_0x43af07[_0x4e2ed2[_0x2f1599]]);}return _0xffdf0;},qe=U[_0x945337(0x43e)](function(_0x1de81e,_0x32e8e6){const _0x222901=_0x945337;var _0x1ad02b=_0x1de81e[_0x222901(0x42b)],_0x281d90=_0x1de81e['id'],_0x351cc9=_0x1de81e[_0x222901(0x320)],_0x99b8b3=_0x1de81e['extend'],_0x4ac30f=pi(_0x1de81e,[_0x222901(0x42b),'id',_0x222901(0x320),_0x222901(0x4ca)]),_0x1e80bd='univerjs-icon\x20univerjs-icon-'[_0x222901(0x53d)](_0x281d90,'\x20')[_0x222901(0x53d)](_0x351cc9||'')[_0x222901(0x302)](),_0x527902=U['useRef']('_'[_0x222901(0x53d)](bi()));return Dt(_0x1ad02b,''[_0x222901(0x53d)](_0x281d90),{'defIds':_0x1ad02b['defIds'],'idSuffix':_0x527902[_0x222901(0x262)]},M({'ref':_0x32e8e6,'className':_0x1e80bd},_0x4ac30f),_0x99b8b3);});function Dt(_0x4364e3,_0x369eed,_0x1409ff,_0x488054,_0x1a5a9d){const _0x48f674=_0x945337;return U[_0x48f674(0x1b0)](_0x4364e3['tag'],M(M({'key':_0x369eed},Ci(_0x4364e3,_0x1409ff,_0x1a5a9d)),_0x488054),(Ei(_0x4364e3,_0x1409ff)[_0x48f674(0x362)]||[])[_0x48f674(0x2c1)](function(_0x3e6013,_0x1f98da){const _0x3ce9d4=_0x48f674;return Dt(_0x3e6013,''[_0x3ce9d4(0x53d)](_0x369eed,'-')[_0x3ce9d4(0x53d)](_0x4364e3[_0x3ce9d4(0x231)],'-')[_0x3ce9d4(0x53d)](_0x1f98da),_0x1409ff,void 0x0,_0x1a5a9d);}));}function Ci(_0x18428a,_0x48524e,_0x127852){const _0x1f8298=_0x945337;var _0x5c02e6=M({},_0x18428a[_0x1f8298(0x53e)]);_0x127852!=null&&_0x127852[_0x1f8298(0x306)]&&_0x5c02e6['fill']===_0x1f8298(0x306)&&(_0x5c02e6[_0x1f8298(0x18c)]=_0x127852[_0x1f8298(0x306)]);var _0x448bd4=_0x48524e[_0x1f8298(0x1c4)];return!_0x448bd4||_0x448bd4['length']===0x0||(_0x18428a[_0x1f8298(0x231)]===_0x1f8298(0x4b6)&&_0x5c02e6[_0x1f8298(0x233)]&&(_0x5c02e6[_0x1f8298(0x233)]=_0x5c02e6[_0x1f8298(0x233)]+_0x48524e[_0x1f8298(0x48d)]),Object[_0x1f8298(0x519)](_0x5c02e6)[_0x1f8298(0x278)](function(_0x51b0ec){const _0x4d6d17=_0x1f8298;var _0x591810=_0x51b0ec[0x0],_0x3c68b1=_0x51b0ec[0x1];typeof _0x3c68b1==_0x4d6d17(0x312)&&(_0x5c02e6[_0x591810]=_0x3c68b1[_0x4d6d17(0x559)](/url\(#(.*)\)/,_0x4d6d17(0x26e)[_0x4d6d17(0x53d)](_0x48524e[_0x4d6d17(0x48d)],')')));})),_0x5c02e6;}function _0x336a(){const _0x512a6d=['_assignedColors','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','executeCommand','toggleOffline','editingUnit','name','clearTimeout','disposeWithMe','_onUserJoin','_sheetTransformSelectionsService','/object/','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','/collaborator','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','handleInsertCol','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','merge','[PendingState]:\x20received\x20rejection.','&source=','_onMessage','entries','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_event$','_onCombEvent','FETCH_MISSING','getTypeOfUnitAdded$','reverse','_transitionLocked','_onRemoteACK','UUID','_getSignURL','patch','allowed','_memberService','IURLService','getCurrentUnitForType','_sendHeartbeatTimer','_HTTPService','_initResize','BehaviorSubject','_scene','UNIVER_UNKNOWN','_stopTelemetryCollaborationNewChangeset','_urlService','complete','delete','_initModules','_id','HEARTBEAT_TIMEOUT','number','APPLY_REJECT','RxDisposable','setItem','_disableEditing','@univerjs/docs-ui','UNIVER_SHEET','concat','attrs','selections','/role','SNAPSHOT_INVALID_SNAPSHOT','ranges','mapDocumentTypeToUniverType','getMergeData','with','moveTo','AUTHZ_URL_KEY','getTime','_sendingTimer','onSyncEditingCollabCursor','currentColor','ERROR_IMAGE_TYPE','_snapshotServerService','SNAPSHOT_SERVER_URL_KEY','getRangePointData','pipe','take','isTransformMutationsWithChangesetFailure','@univerjs/ui','_socketReady','_notificationService','_shapes','HttpImport','transformChangesets','replace','init','LOCAL_CACHE_INTERVAL','_imageSourceCache','fetchMissingChangesets','&assign=','path','241760yEVuai','appendMutation','_socketService','_drawRectRange','AWAITING_WITH_PENDING','_entities','hide','collabStatus.fetchMiss','_roomMembers','_userManagerService','getMemberID','urlChange$','_socket$','SUBMIT_CHANGESET','DeleteRangeMoveLeftCommandId','image/png','visibilitychange','isEditing','conflict.title','CHANGESET_REJ','RevisionService','APPLY_PERMISSION_DENIED','_localCacheService','_getUndoStack','distinctUntilChanged','_rescheduleHeartbeat','_collaborationTimeoutTimer','IUniverInstanceService','[DataLoaderController]','image/bmp','useCallback','getCurrentSelections','reduce','_updateLocalCache','_collabCursorState$','_send','UNIVER_SLIDE','_getCtorByUniverType','eventID','_state','_docTransformIMECacheService','getUnhiddenWorksheets','handleDeleteRangeMoveUp','_sessions','getSkeleton','update','m2Prime','saveSheetBlock','requestParams','1086932aayVoP','params','socket\x20close','size','_compressMutationService','whenReady','updateMember','_docStateChangeManagerService','collaboration.closeRoom','readAsDataURL','11430iuYShX','PERMISSION_REJ','LocalUndoRedoService','Optional','@univerjs/telemetry','add','LICENSE_IMPORT_SIZE_EXCEEDED','fill','activeSheet$','getTypeOfUnitDisposed$','resolve','PERMISSION_DENIED','setTimeout','300462gpYfov','round','_pendingMutations','getViewport','clear','_color','state','_registerDependencies','b64DecodeUnicode','asObservable','_createHandler','Warning','disableLocalCache','InsertRangeMoveDownCommandId','indexOf','shouldCloseConn','PENDING','mapTo','ColorKit','getImageSourceCache','HTTPRequest','handleDeleteRangeMoveLeft','getInterceptPoints','_collaborationController','CompressMutationService','json','engine','_type','objectActions','title','createElement','onTransformRemoteChangesetByIMECache','getSheetBySheetId','_localStorageService','InsertSheetMutation','removeParam','awaitingChangeset','_remoteChangesetQueue','_onCursorUpdate','YUUMI_URL_COL_OUT_OF_RANGE','_saveCache','_heartbeatTimer','width','YUUMI_SUBSCRIPTION_NOT_FOUND','_acknowledgedAwaitingChangeset','_sendHeartbeat','_getCurrentRevision','offline','getRoom','downloadEndpointUrl','defIds','2864HHgxkI','routeKey','_handleEvent','HEARTBEAT_TIMEOUT_KEY','_replaceFileID','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','INVALID_ARGUMENT','_waitCount','_joinRoom','DesktopCollaborationStatusDisplayController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','transformIMECache','USERS_ENTER','_onConnectionOpen','onRemoteChangeset','saveOfflineData','_updateURLWithCurrentState','_getSnapshotAPIPrefix','throttleTime','ERROR_IMAGE','unitID','_saveTaskMap','filter','isInternalEditorID','confirm','_revisionService','DocSelectionManagerService','@univerjs-pro/collaboration','InsertRowCommandId','withCredentials','commentUpdateEvent','_clearCollaborationTimeoutTimer','/-/object/-/batch_allowed','_getAnchorBounding','url','_session','addEventListener','dispose','awaiting_with_pending','/block/','objectID','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onlyLocal','CHANGESET_ACK','UnitSnapshot','LEAVE','_onRecvEvent','_onRemoteChangeset','_undoStacks','IConfigService','Rect','m1Prime','ACTIVE_UNIT_EVENT_CHANNEL','runRefRangeMutations','rxjs','Plugin','RegularPolygon','Rectangle','collab-text-anchor-','transformRemoteChangeset','UNRECOGNIZED','_name','_clearOtherTimers','div','UPDATE_CURSOR','getVpScrollXYInfoByPosToVp','image/jpeg','_permissionService','session.room-full','[OfflineState]:\x20received\x20acknowledgement.','code','updateCursorEvent','onStateChange','_unitID','_onCursorDelete','NodePositionConvertToRectRange','unitId','handleInsertRow','unit-cache-','subUnitId','UNIVER_PROJECT','_undoRedoService','_toggleOffline','url(#off-line-single_clip0_910_343)','_localeService','src','_clearHeartbeatTimer','parseChangesetToProtocol','getParam','RemoveColCommandId','OnLineSingle','getSheetId','capture','fromEvent','getUniverSheetInstance','_range','registerBeforeClose','generateRandomId','_roomMembers$','TOO_MANY_REQUESTS','_beforeCloseService','color','_snapshotService','stringify','HTTPService','top','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','tag','_throwTelemetryCollaborationNewChangeset','xlink:href','collabStatus.notCollab','handleIRemoveRow','@univerjs/engine-render','_telemetryInfo','useDependency','_colorAssignService','find','_handleJoinEvent','CollaborationEntity','signUrlServerUrl','collabCursorState$','event$','hovered','roomInfos','propertyIsEnumerable','type','InsertColCommandId','liveShareNewHost','_getMergeRange','cursorInfo$','registerHTTPInterceptor','exhaustSavingTask','rev','defineProperty','pluginName','loginUrlKey','EffectRefRangId','fetch_missing','_showConflictNotification','serializeRangeWithSheet','visibilityState','leaveEvent','_unitOnClients','getFocusedUnit','_commandService','_uiPartsService','getConfig','status$','range','ws://127.0.0.1:8000/universer-api/comb/connect','max','ITelemetryService','_docSyncEditingCollabCursorService','HELLO','_isPermissionRej','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','current','IDLE','sheetID','/universer-api/stream/file/upload','_http','toggleOnline','IUIPartsService','key','univer-pro.collaboration-client.single-active-unit-service','list','triggerDblclick','getOffsetConfig','url(#$1','@univerjs/design','_online','syncEditingCollabCursor','_setupSubUnitSync','APPLY_NON_SEQUENTIAL_REVISION','fillText','DisposableCollection','UNDEFINED','_renderManagerService','forEach','reject','COLORS','rgba(255,\x20255,\x20255,\x200.01)','getUnitType','getCollabEntity','x-univer-host','values','append','ALREADY_EXISTS','[CollaborationSessionService]','conflict.content','endColumn','_onLocalMutation','_colorIndex','newValue','_loadSheet','revision','subscribeEvent','enableAuthServer','fetching\x20missing\x20changesets\x20from\x20','registerComponent','1em','clipPath','sessionStatus','@univerjs/drawing','DependentOn','UniverIcon','onRemoteRej','DocCollaborationEntity','toDisposable','registerRenderModule','WorkbookEditablePermission','LocaleService','collaMsg','UnitEmbedded','joinRsp','[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.','COMPLETION_FINISHED','setAlpha','HEADER_MENU','_commentUpdate$','send','BASE64','ThemeService','put','_sheetSkeletonManagerService','_queuedRemoteChangesets','UniverCollaborationPlugin','selection','startsWith','memberID','assignAColorForMemberID','[CollaborationEntity]','encodeURIComponent','collabWebSocketUrl','5cbmHJn','_cachedData','IMessageService','_syncEditingCollabCursor','combineLatest','Injector','/object','DEFAULT_FILE_NAME','_telemetryService','getSheetObject','...','_initStatusComponent','_schedule','not_collab','createCollaborator','FETCH_MISS','CollaborationStatus','map','CHANGESET_REVISION_CONFILICT','online','IRenderManagerService','_unitStatus','getCollabCursors$','_transformUndoredo','LIVESHARE_REQUEST_HOST','AWAITING','_transformStack','getCellPositionByOffset','/resources','history','WebSocketService','objects','loadOfflineData','MSG_FOR_ERROR','Undefined','_initRequestHeader','LOGIN_URL_KEY','IRemoteInstanceService','getValue','_incrementRevisionNumber','SHOULD_CLOSE_CONN','focused$','LICENSE_MAX_UNITS_EXCEEDED','getAttachHeader','_waitForHeartbeatResponse','_getSendChangesetTimeout','[CollaborationState]:\x20apply\x20error!','searchParams','parse','none','fetchMiss','RefRangeService','#fff','makeDirty','_handleLeaveEvent','onlineStatus','error','onRendered','socket$','_initStatusListener','dispose$','replaceState','univer-pro.collaboration-client-socket-service','INTERNAL_ERROR','isValidRectRange','encode','\x20in\x20_schedule.','stopTime','RECV','_cursorShapes','@univerjs/network','_submitChangeset','height','baseRev','failed\x20to\x20apply\x20missed\x20changesets!','CommandType','/fetchmissing?from=','OTHER_CLIENTS_EDITING','deepClone','_applyRemoteChangeset','UniverCollaborationClientPlugin','isTransformChangesetsSuccess','trim','_getScale','backgroundColor','CollaborationSocketService','colorChannel1','getCurrentUser','/universer-api/oidc/authpage','#FFF','CollaborationSession','members','LIVESHARE_FETCH_OPERATIONS','Module','getSheetBlock','create','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','string','_clearLocalCache','onload','POST','RichTextEditingMutation','auth.needGotoLoginAlert','session','apply','_updateState','snapshot','storage','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onTransformChange$','_initMergeInterceptor','className','getUnitStatus$','close','UNIVER_COLLABORATION_CLIENT_PLUGIN','onMissingChangesets','displayName','_onJoinRoomEvent','_document','_singleActiveUnitService','lineTo','_startSheetCollabCursor','_cursor','/new_changes','_entityInit$','getColor','substring','setInterval','result','_setupBeforeClosingHandler','doc.mutation.rich-text-editing','_transformIMECache','_scheduleCollaborationTimeoutTimer','ThresholdInterceptorFactory','_univerInstanceService','_shouldReportTelemetry','_disabled','getUnitOnRev','loadDoc','then','_onRemoteRejected','_labelPosition','assign','change$','origin','setCurrentUser','close$','onRemoteAck','setActiveRange','unsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','0\x200\x2017\x2016','DocIMEInputManagerService','enableOfflineEditing','LICENSE_DISTRO_REJECTED','transformMutation','_clearRedo','getOwnPropertySymbols','_loadDoc','closeSession','getDocRanges','getUnitId','_backgroundColor','min','UNAUTHENTICATED','_collabCursorController','_getUploadFileURL','pending','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','toRgbString','/universer-api/comb','_checkMissing','/unit/','body','updatePermissionObjEvent','COMPRESS_MUTATION_APPLY','children','_executeRemoteChangeset','1031720ckQJOD','flatMap','Shape','MessageType','deserializeToCombResponse','requireSession','createIdentifier','DeleteRangeMoveUpCommandId','mergeOverrideWithDependencies','contains','Subject','MUTATION','labelPosition','ERROR_EXCEED_SIZE','Error','getItem','COLLAB_SUBMIT_CHANGESET_URL','data','_updateCollabCursors','collabSubmitChangesetUrl','location','_scheduleSaving','parseProtocolChangeset','VIEW_MAIN','changesets','collaboration-client.offline-data-not-saved','setUndoRedoMutationParamsCache','sessionStatus$','HEARTBEAT_INTERVAL','@univerjs/sheets','setShapeProps','/allowed','has','_refRangeService','arc','deserializeRangeWithSheet','session.collaboration-timeout','session.will-retry','measureText','IUndoRedoService','includes','fillRule','NOT_COLLAB','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_ws','resize','_messageService','[CollaborationSession]','getAncestorScale','UNIVER_DOC','retryConnectingInterval','subscribe','_initCloseConn','JOINING','sequenceExecute','serializeCombRequest','onCommentUpdate','createInstance','drawWith','getCoordByCell','YUUMI_RATE_OVER_LIMIT','isPermissionRej','infoRsp','LocalCacheService','blue400','CollaborationSessionService','MoveRangeCommandId','socketService','INotificationService','@univerjs/rpc','_drawTextRange','WebURLService','duration','onCommandExecuted','connection\x20error','onPointerMove$','push','UniverInstanceType','FileId','_getAPIPrefix','rxjs/operators','touchDependencies','permission.content','_unlockTransition','_cursors','interceptor','awaiting','LICENSE_EXPORT_SIZE_EXCEEDED','/universer-api/file/{fileID}/sign-url','MergeInterceptorFactory','_refreshCollabCursors','_removeCollabCursors','jiqing500','saveImage','Unknown\x20user','_createSocket','socket\x20open.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','NEW_CHANGESETS','onlineStatusTitle','unshift','_onUserLeave','next','USERS_LEAVE','SnapshotServerOverHTTPService','LIVESHARE_TERMINATE','transformByState','COLLAB_WEB_SOCKET_URL_KEY','currentSkeleton$','_hideTimer','onTransformIME','conflict','_scheduleClearOtherTimer','_handleHeartbeatEvent','react','EmptyMutation','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','VIEWPORT_KEY','off-line-single','isActive','message$','_injector','onMouseMove','SEND_CHANGESET_TIMEOUT_KEY','_anchorDot','collaboratorID','getOwnPropertyDescriptor','originalMeta','_listenToOnlineEvent','_candidateSocket','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','_context','_updateSubUnitFromURLParams','enableLocalCache','get','3969847YPwRmY','collabStatus.synced','debounceTime','actions','length','CollaborationStatusDisplay','from','_docSkeletonManagerService','_instanceService','_onConflict','getUndoRedoMutationParamsCache','isTransformMutationsWithChangesetSuccess','currentTheme$','_onFetchMissResult','BuiltInUIPart','row','fromEventSubject','_collaborationPaused','_socket','catch','ICommandService','_anchor','collaboration.single-unit.warning','SheetsSelectionsService','_handler','now','collabStatus.conflict','_collabSessionService','function','href','fetchThroughInterceptors','AuthzIoHttpService','getResourcesRequest','saveChangeset','UserManagerService','\x0aAfter:\x20','_listenToOfflineEvent','show','_fetchMissChangesets','/universer-api/snapshot','IPermissionService','_toggleOnline','_change$','_startCollaboration','@univerjs/engine-formula','_getSheetObject','_clearUndo','_scheduleTimestamp','removeMember','uni.network.url-service','refreshPermission','collab-rect-range-','isTransformMutationFailure','shareReplay','_updateStatus','_awaitingChangeset','copyFileMeta','registerRefRange','[CollaborationSessionService]:\x20socket\x20error','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_members','ITransformService','unit','icon','fillStyle','_themeService','ONLINE','method','?url=','headers','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','objectType','roles','mutations','getCurrentRevOfUnit','_retryCount','SNAPSHOT_URL_KEY','evenodd','_lastPointer','_startDocCollabCursor','takeUntil','Workbook','forwardRef','textEncoder','initWorkbookPermissionChange','call','switchMap','onMissedChangesetFetched','/-/object/list','open$','onReady','DocSkeletonManagerService','_transformSelections','transform','setConfig','restore','debug','status','c1Prime','onPointerEnter$','_drawAnchor','LOCAL_CACHE_INTERVAL_KEY','createSocket','clearInterval','onTransformSelections','INGEST','_transformUndoRedoStack','popstate','_init','collaborators','HttpExport','Disposable','split','unknown','_socketMessageSubscription','uploadFileServerUrl','UNKNOWN_CMD','1187826nlirzv','startColumn','transformSelections','_decreaseWaiting','_tryEnsureSocket','toString','getMember','onSendChangeset','_removeRoom','findNodePositionByCharIndex','SetWorksheetActivateCommand','SEND_CHANGESET_TIMEOUT','subunit','registerOnClose','purple300','updatePermissionPoint','getWorkbookSelections','_ensureSubject','onlineStatusIcon','getRenderById','_timeoutTimer','handleInsertRangeMoveDown','addObjects','updateOfflineData','ImageIoService','[CollaborationUndoRedoService]','setParam','hasOwnProperty','/rev/','_clearScheduledTask','\x0aCurrent:\x20','_retryConnectingTimer','_draw','OFFLINE','_tryReconnect','black','textRanges','CONFLICT','LIVESHARE_OPERATION','ImageSourceType','HEARTBEAT','_createInitialStateImpl','TEXT_RANGE_LAYER_INDEX','ILogService','idSuffix','isArray','SNAPSHOT_HAS_BEEN_REMOVED','Vector2','_collaborationSessionService','YUUMI_UNABLE_LOAD_URL','roomMembers$','deleteCollaborator','_substituteUndoStack','cursorInfo','_transformRemoteChangesetByIMECache','0\x200\x2016\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_scheduleHeartbeat','_hovered','debounce','listRoles','IImageIoService','@univerjs/core','[PendingState]:\x20received\x20acknowledgement.','c2Prime','_getAPIPrefixPath','getImage','resend','addObject','verdancy600','_updateLocalCursor','set','Error\x20on\x20receiving\x20event','fromCollab','save','ImageUploadStatusType','synced','_logService','image/gif','compose','getCollabEntity$','ISnapshotServerService','_selfUnitIDs','column','error$','use','PSEUDO_FETCH_MISSING_RESULT','collaboration_new_changeset','svg','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','collaboration-client.config','getActiveSheet','/universer-api/authz','onPointerLeave$','_startTelemetryCollaborationNewChangeset','COMPRESS_MUTATION_SEND','off-line-single_clip0_910_343','pauseCollaboration','prototype','_eventUnsubscribe','_initCommandExecutedListener','text','disposeUnit','extend','_replayCachedMutations','reconnect','_commentService','_lockTransition','[OfflineState]:\x20received\x20changeset.','_initEventListeners','SetSelectionsOperation','_substituteRedoStack','?size=','NO_OTHER_CLIENTS_EDITING','DataLoaderController','authzUrl','delay','incrementRevOfUnit','pushState','post','bottom','NOT_FOUND','SheetCollaborationEntity','_onConnectionFailed','transformMutationsWithChangeset','_textBubble','sheets','JOIN','univer-online','collab-client.tooltip.reconnect','beginPath','univer-online-status-icon','_createInitialState','@univerjs-pro/license','userID','Tools','CollaborationEvent','handleMoveRange','_httpService','CollaborationController','cmd','IBeforeCloseService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformService','on-line-single_clip0_910_349','univer-online-status-title','localeService','CONNECTOR_DATA_TOO_LARGE','CommentService','_configService','_removeClearOtherTimer','Inject','SYNCED','_state$','file','_config','_hover','LIVESHARE_NEW_HOST','_clearTimeoutTimer'];_0x336a=function(){return _0x512a6d;};return _0x336a();}function Ei(_0x4e7f35,_0x3e7b44){const _0x1b45f2=_0x945337;var _0x498380,_0x40b3a5=_0x3e7b44[_0x1b45f2(0x1c4)];return!_0x40b3a5||_0x40b3a5['length']===0x0?_0x4e7f35:_0x4e7f35[_0x1b45f2(0x231)]==='defs'&&(!((_0x498380=_0x4e7f35[_0x1b45f2(0x362)])===null||_0x498380===void 0x0)&&_0x498380['length'])?M(M({},_0x4e7f35),{'children':_0x4e7f35['children'][_0x1b45f2(0x2c1)](function(_0x3c8905){const _0xf5e05c=_0x1b45f2;return typeof _0x3c8905['attrs']['id']==_0xf5e05c(0x312)&&_0x40b3a5&&_0x40b3a5[_0xf5e05c(0x1a0)](_0x3c8905[_0xf5e05c(0x53e)]['id'])>-0x1?M(M({},_0x3c8905),{'attrs':M(M({},_0x3c8905['attrs']),{'id':_0x3c8905[_0xf5e05c(0x53e)]['id']+_0x3e7b44['idSuffix']})}):_0x3c8905;})}):_0x4e7f35;}function bi(){const _0x243240=_0x945337;return Math['random']()['toString'](0x24)[_0x243240(0x32f)](0x2,0x8);}qe[_0x945337(0x325)]=_0x945337(0x293);var Ti={'tag':_0x945337(0x4b9),'attrs':{'fill':_0x945337(0x2e1),'viewBox':_0x945337(0x498),'width':_0x945337(0x28e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x219)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':_0x945337(0x54b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x945337(0x4c3)},'children':[{'tag':'path','attrs':{'fill':_0x945337(0x2e4),'d':_0x945337(0x503)}}]}]}],'defIds':[_0x945337(0x4c3)]},yt=U[_0x945337(0x43e)](function(_0x1ca6f7,_0x3dc532){const _0x4335ee=_0x945337;return U[_0x4335ee(0x1b0)](qe,Object['assign']({},_0x1ca6f7,{'id':_0x4335ee(0x3da),'ref':_0x3dc532,'icon':Ti}));});yt[_0x945337(0x325)]='OffLineSingle';var Ri={'tag':_0x945337(0x4b9),'attrs':{'fill':'none','viewBox':_0x945337(0x348),'width':_0x945337(0x28e),'height':_0x945337(0x28e)},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x504)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':'currentColor','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':_0x945337(0x193),'strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x945337(0x28f),'attrs':{'id':_0x945337(0x4f3)},'children':[{'tag':_0x945337(0x55f),'attrs':{'fill':_0x945337(0x2e4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U[_0x945337(0x43e)](function(_0x56657c,_0x24b3c9){const _0x423fe0=_0x945337;return U[_0x423fe0(0x1b0)](qe,Object['assign']({},_0x56657c,{'id':'on-line-single','ref':_0x24b3c9,'icon':Ri}));});Ut[_0x945337(0x325)]=_0x945337(0x220);function Pt(_0x2ab697){const _0x5cd919=_0x945337;var _0x8e07f3,_0x158d4f,_0x1aa24f='';if(typeof _0x2ab697=='string'||typeof _0x2ab697==_0x5cd919(0x536))_0x1aa24f+=_0x2ab697;else{if(typeof _0x2ab697=='object'){if(Array[_0x5cd919(0x48e)](_0x2ab697)){var _0x112610=_0x2ab697[_0x5cd919(0x3f0)];for(_0x8e07f3=0x0;_0x8e07f3<_0x112610;_0x8e07f3++)_0x2ab697[_0x8e07f3]&&(_0x158d4f=Pt(_0x2ab697[_0x8e07f3]))&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}else{for(_0x158d4f in _0x2ab697)_0x2ab697[_0x158d4f]&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}}}return _0x1aa24f;}function Oi(){const _0x3ee2d8=_0x945337;for(var _0x34b847,_0x29019b,_0x338aee=0x0,_0x4a5559='',_0x25fc35=arguments[_0x3ee2d8(0x3f0)];_0x338aee<_0x25fc35;_0x338aee++)(_0x34b847=arguments[_0x338aee])&&(_0x29019b=Pt(_0x34b847))&&(_0x4a5559&&(_0x4a5559+='\x20'),_0x4a5559+=_0x29019b);return _0x4a5559;}const Di=_0x945337(0x4e6),yi=_0x945337(0x4f4),Ui='univer-online-status',Pi=_0x945337(0x4e3),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x314525){const _0x416818=_0x945337;switch(_0x314525){case y[_0x416818(0x482)]:return'collabStatus.offline';case y[_0x416818(0x486)]:return _0x416818(0x406);case y[_0x416818(0x2bf)]:return _0x416818(0x567);case y['NOT_COLLAB']:return _0x416818(0x234);case y['PENDING']:case y['AWAITING']:case y[_0x416818(0x564)]:return'collabStatus.syncing';case y[_0x416818(0x4fb)]:return _0x416818(0x3ed);}}function wt(_0x4e2955){const _0x367217=_0x945337,{status$:_0x531e4a}=_0x4e2955,_0x305a5e=N['useObservable'](_0x531e4a,y['NOT_COLLAB']),_0x2e1e3d=a[_0x367217(0x238)](a[_0x367217(0x299)]),_0x33d2be=a['useDependency'](exports[_0x367217(0x3a5)]),_0x9cd7e4=_0x305a5e!==y[_0x367217(0x482)],_0x2771d5=_0x2e1e3d['t'](Mi(_0x305a5e)),_0x2ac032=Oi(le[_0x367217(0x2e7)],{[le['online']]:_0x9cd7e4,[le['offline']]:!_0x9cd7e4}),_0x2ae141=_0x9cd7e4?U[_0x367217(0x1b0)](Ut,null):U['createElement'](yt,null),_0x5ec467=U[_0x367217(0x57e)](()=>{const _0x3410f9=_0x367217;_0x9cd7e4||_0x33d2be[_0x3410f9(0x4cc)]();},[_0x9cd7e4,_0x33d2be]);function _0x5b59a1(){const _0x32e0fc=_0x367217;return U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':_0x2ac032,'onClick':_0x5ec467},U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':le[_0x32e0fc(0x473)]},_0x2ae141),U['createElement']('div',{'className':le[_0x32e0fc(0x3c7)]},_0x2771d5));}return _0x9cd7e4?_0x5b59a1():U[_0x367217(0x1b0)](X['Tooltip'],{'title':_0x2e1e3d['t'](_0x367217(0x4e4))},_0x5b59a1());}var Ni=Object[_0x945337(0x24b)],Ai=Object[_0x945337(0x3e2)],Li=(_0x307e80,_0xdca99a,_0x1e74d3,_0x867667)=>{for(var _0x857a0d=_0x867667>0x1?void 0x0:_0x867667?Ai(_0xdca99a,_0x1e74d3):_0xdca99a,_0x57f97d=_0x307e80['length']-0x1,_0x48405f;_0x57f97d>=0x0;_0x57f97d--)(_0x48405f=_0x307e80[_0x57f97d])&&(_0x857a0d=(_0x867667?_0x48405f(_0xdca99a,_0x1e74d3,_0x857a0d):_0x48405f(_0x857a0d))||_0x857a0d);return _0x867667&&_0x857a0d&&Ni(_0xdca99a,_0x1e74d3,_0x857a0d),_0x857a0d;},Se=(_0x3d146f,_0x59a9f0)=>(_0x125e27,_0x4885ae)=>_0x59a9f0(_0x125e27,_0x4885ae,_0x3d146f);exports[_0x945337(0x1ce)]=class extends a[_0x945337(0x45b)]{constructor(_0x2937cd,_0x13741a,_0x1c2902,_0x3d4c23){const _0xc3f7d2=_0x945337;super(),d(this,_0xc3f7d2(0x35a),new v[(_0xc3f7d2(0x52c))](y[_0xc3f7d2(0x38e)])),(this[_0xc3f7d2(0x337)]=_0x2937cd,this[_0xc3f7d2(0x257)]=_0x13741a,this['_injector']=_0x1c2902,this[_0xc3f7d2(0x1a9)]=_0x3d4c23,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x945337(0x2eb)](){const _0x3c2ef3=_0x945337;this[_0x3c2ef3(0x50a)](this['_univerInstanceService'][_0x3c2ef3(0x2d9)][_0x3c2ef3(0x550)](v[_0x3c2ef3(0x442)](()=>{const _0x28fc32=_0x3c2ef3,_0x489930=this[_0x28fc32(0x337)][_0x28fc32(0x255)]();return _0x489930?this[_0x28fc32(0x1a9)][_0x28fc32(0x4b1)](_0x489930['getUnitId']()):v['of'](null);}),v[_0x3c2ef3(0x442)](_0x4e8224=>_0x4e8224?_0x4e8224[_0x3c2ef3(0x259)]:v['of'](y[_0x3c2ef3(0x38e)])))['subscribe'](_0x134090=>{const _0x48d68f=_0x3c2ef3;this['_status$'][_0x48d68f(0x3ca)](_0x134090);}));}[_0x945337(0x2bb)](){const _0x5b2fc2=_0x945337;this['disposeWithMe'](this[_0x5b2fc2(0x257)][_0x5b2fc2(0x28d)](N[_0x5b2fc2(0x3fa)][_0x5b2fc2(0x2a0)],()=>a['connectInjector'](ji({'status$':this[_0x5b2fc2(0x35a)][_0x5b2fc2(0x19b)]()}),this['_injector'])));}},exports[_0x945337(0x1ce)]=Li([Se(0x0,a[_0x945337(0x57b)]),Se(0x1,N[_0x945337(0x268)]),Se(0x2,a['Inject'](a[_0x945337(0x2b5)])),Se(0x3,a['Inject'](exports[_0x945337(0x4ee)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x32ff78){const {status$:_0x4a917e}=_0x32ff78;return function(){return U['createElement'](wt,{'status$':_0x4a917e});};}const ze=a[_0x945337(0x36a)](_0x945337(0x41d));var $i=Object[_0x945337(0x24b)],Hi=Object[_0x945337(0x3e2)],xi=(_0xabce67,_0x52147d,_0x42d62c,_0x4c59f8)=>{const _0x20b5e3=_0x945337;for(var _0x436d3f=_0x4c59f8>0x1?void 0x0:_0x4c59f8?Hi(_0x52147d,_0x42d62c):_0x52147d,_0x4d0914=_0xabce67[_0x20b5e3(0x3f0)]-0x1,_0x12e7e8;_0x4d0914>=0x0;_0x4d0914--)(_0x12e7e8=_0xabce67[_0x4d0914])&&(_0x436d3f=(_0x4c59f8?_0x12e7e8(_0x52147d,_0x42d62c,_0x436d3f):_0x12e7e8(_0x436d3f))||_0x436d3f);return _0x4c59f8&&_0x436d3f&&$i(_0x52147d,_0x42d62c,_0x436d3f),_0x436d3f;},ee=(_0x492fcf,_0x3b562d)=>(_0x4e3f29,_0x349aad)=>_0x3b562d(_0x4e3f29,_0x349aad,_0x492fcf);exports['DataLoaderController']=class extends a[_0x945337(0x538)]{constructor(_0x2ec97a,_0x458cf4,_0x2f92df,_0x1cdef2,_0x7c0e74,_0x15fe94){const _0x52a799=_0x945337;super(),this[_0x52a799(0x530)]=_0x2ec97a,this[_0x52a799(0x4ae)]=_0x458cf4,this[_0x52a799(0x256)]=_0x2f92df,this['_localCacheService']=_0x1cdef2,this[_0x52a799(0x22c)]=_0x7c0e74,_0x15fe94?_0x15fe94==null||_0x15fe94[_0x52a799(0x180)]()[_0x52a799(0x33c)](()=>this[_0x52a799(0x458)]()):(this[_0x52a799(0x4ae)][_0x52a799(0x44c)](_0x52a799(0x57c),_0x52a799(0x230)),this[_0x52a799(0x458)]());}async[_0x945337(0x458)](){const _0x5b38bc=_0x945337,_0x13c5e0=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)](_0x5b38bc(0x42a)),_0x2e7dce=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)]('type');if(!_0x13c5e0||!_0x2e7dce){this[_0x5b38bc(0x4ae)][_0x5b38bc(0x44c)](_0x5b38bc(0x57c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2e7dce)){case j[_0x5b38bc(0x53c)]:{const _0x4f4e45=await this[_0x5b38bc(0x288)](_0x13c5e0);this['_setupSubUnitSync'](_0x4f4e45);break;}case j[_0x5b38bc(0x395)]:{await this[_0x5b38bc(0x34f)](_0x13c5e0);break;}default:{this[_0x5b38bc(0x4ae)][_0x5b38bc(0x2e8)](_0x5b38bc(0x57c),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x945337(0x272)](_0x10faec){const _0x697f6d=_0x945337;await this[_0x697f6d(0x3e9)](_0x10faec),_0x10faec[_0x697f6d(0x18d)]['pipe'](v['takeUntil'](this[_0x697f6d(0x2ec)]))['subscribe'](_0x12df2d=>{const _0x27b19d=_0x697f6d;_0x12df2d&&this[_0x27b19d(0x1d6)](_0x12df2d);}),this[_0x697f6d(0x530)]['urlChange$'][_0x697f6d(0x550)](v[_0x697f6d(0x43c)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x10faec));}[_0x945337(0x1d6)](_0x424f43,_0x3a1f28=!0x1){const _0x14a353=_0x945337,_0x450af6=this[_0x14a353(0x530)]['getParam'](_0x14a353(0x46d));_0x424f43[_0x14a353(0x221)]()!==_0x450af6&&this[_0x14a353(0x530)][_0x14a353(0x47b)]('subunit',_0x424f43[_0x14a353(0x221)](),_0x3a1f28);}async[_0x945337(0x3e9)](_0x4165a0){const _0x1bc096=_0x945337;var _0x42e40c;const _0x38e89a=this[_0x1bc096(0x530)]['getParam'](_0x1bc096(0x46d));if(!_0x38e89a||!_0x4165a0[_0x1bc096(0x1b2)](_0x38e89a)){const _0x2e0c3e=_0x4165a0[_0x1bc096(0x173)]()[0x0],_0x446cdf=_0x4165a0[_0x1bc096(0x1b2)](_0x2e0c3e);if(!_0x446cdf)return;this[_0x1bc096(0x1d6)](_0x446cdf,!0x0),await this[_0x1bc096(0x256)]['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x2e0c3e});return;}((_0x42e40c=_0x4165a0[_0x1bc096(0x4be)]())==null?void 0x0:_0x42e40c[_0x1bc096(0x221)]())!==_0x38e89a&&await this[_0x1bc096(0x256)][_0x1bc096(0x505)](C[_0x1bc096(0x46b)]['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x38e89a});}async[_0x945337(0x288)](_0x3cbca0){const _0x418c72=_0x945337;let _0x35d5d4=0x0;const _0x37683b=await this[_0x418c72(0x576)]['loadOfflineData'](_0x3cbca0);return _0x37683b&&(_0x37683b['awaitingChangeset']||_0x37683b['mutations'][_0x418c72(0x3f0)]!==0x0)&&(_0x35d5d4=_0x37683b[_0x418c72(0x24a)]),_0x35d5d4===0x0&&this[_0x418c72(0x4ae)][_0x418c72(0x44c)](_0x418c72(0x57c),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x418c72(0x22c)]['loadSheet'](_0x3cbca0,_0x35d5d4);}async[_0x945337(0x34f)](_0x1e0b13){const _0x5c8ac2=_0x945337;let _0x352d36=0x0;const _0x49d194=await this['_localCacheService']['loadOfflineData'](_0x1e0b13);return _0x49d194&&(_0x49d194[_0x5c8ac2(0x1b6)]||_0x49d194[_0x5c8ac2(0x435)][_0x5c8ac2(0x3f0)]!==0x0)&&(_0x352d36=_0x49d194[_0x5c8ac2(0x24a)]),_0x352d36===0x0&&this[_0x5c8ac2(0x4ae)][_0x5c8ac2(0x44c)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x5c8ac2(0x33b)](_0x1e0b13,_0x352d36);}},exports[_0x945337(0x4d5)]=xi([ee(0x0,ze),ee(0x1,a[_0x945337(0x48c)]),ee(0x2,a[_0x945337(0x400)]),ee(0x3,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x945337(0x188)](Wt[_0x945337(0x2d5)]))],exports['DataLoaderController']);var ki=Object[_0x945337(0x24b)],Bi=Object[_0x945337(0x3e2)],Vi=(_0x4a73d9,_0x296a39,_0x7b7e18,_0x29e5ce)=>{const _0x57f9e5=_0x945337;for(var _0x4ecfd3=_0x29e5ce>0x1?void 0x0:_0x29e5ce?Bi(_0x296a39,_0x7b7e18):_0x296a39,_0x2e6f06=_0x4a73d9[_0x57f9e5(0x3f0)]-0x1,_0x5d8b2f;_0x2e6f06>=0x0;_0x2e6f06--)(_0x5d8b2f=_0x4a73d9[_0x2e6f06])&&(_0x4ecfd3=(_0x29e5ce?_0x5d8b2f(_0x296a39,_0x7b7e18,_0x4ecfd3):_0x5d8b2f(_0x4ecfd3))||_0x4ecfd3);return _0x29e5ce&&_0x4ecfd3&&ki(_0x296a39,_0x7b7e18,_0x4ecfd3),_0x4ecfd3;},at=(_0x49d4e0,_0x18bef5)=>(_0x5b47d6,_0x4adb21)=>_0x18bef5(_0x5b47d6,_0x4adb21,_0x49d4e0);const Wi=_0x945337(0x2b7),Fi='Univer';let Ie=class extends a[_0x945337(0x45b)]{constructor(_0x15ce03,_0x416651){const _0x54beeb=_0x945337;super(),this[_0x54beeb(0x337)]=_0x15ce03,this[_0x54beeb(0x4f8)]=_0x416651,this[_0x54beeb(0x458)]();}['_init'](){const _0x108c02=_0x945337;this[_0x108c02(0x50a)](this['_univerInstanceService'][_0x108c02(0x2d9)]['subscribe'](()=>{const _0x41f86e=_0x108c02;var _0x207478;const _0x25ad1f=this[_0x41f86e(0x337)][_0x41f86e(0x255)]();let _0x10346c=(_0x207478=this['_configService'][_0x41f86e(0x258)](Wi))!=null?_0x207478:Fi;_0x25ad1f instanceof a[_0x41f86e(0x43d)]&&(_0x10346c=_0x25ad1f['name']),document[_0x41f86e(0x1af)]=_0x10346c;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x945337(0x1f7)])],Ie);var Gi=Object[_0x945337(0x24b)],Yi=Object[_0x945337(0x3e2)],Ki=(_0x2ddd55,_0x46a38b,_0xd6d35b,_0x555e77)=>{const _0x345ede=_0x945337;for(var _0x312f2a=_0x555e77>0x1?void 0x0:_0x555e77?Yi(_0x46a38b,_0xd6d35b):_0x46a38b,_0x3643a8=_0x2ddd55[_0x345ede(0x3f0)]-0x1,_0x1ac59c;_0x3643a8>=0x0;_0x3643a8--)(_0x1ac59c=_0x2ddd55[_0x3643a8])&&(_0x312f2a=(_0x555e77?_0x1ac59c(_0x46a38b,_0xd6d35b,_0x312f2a):_0x1ac59c(_0x312f2a))||_0x312f2a);return _0x555e77&&_0x312f2a&&Gi(_0x46a38b,_0xd6d35b,_0x312f2a),_0x312f2a;},Le=(_0x4e606e,_0x5db1a1)=>(_0x4d7404,_0x498fe1)=>_0x5db1a1(_0x4d7404,_0x498fe1,_0x4e606e);let pe=class{constructor(_0xbe6018,_0x24858d,_0xdfc72c){const _0x590416=_0x945337;this['_configService']=_0xbe6018,this['_httpService']=_0x24858d,this['localeService']=_0xdfc72c,this[_0x590416(0x55a)]();}['init'](){const _0x3cb731=_0x945337;this[_0x3cb731(0x4ed)][_0x3cb731(0x248)]({'priority':0x1,'interceptor':(_0x30c952,_0x56e380)=>_0x56e380(_0x30c952)[_0x3cb731(0x550)](v['concatMap'](async _0x480f07=>{const _0x22db54=_0x3cb731,_0x4cf382=_0x480f07;if(_0x4cf382[_0x22db54(0x44d)]===0x191&&window[_0x22db54(0x1de)](this[_0x22db54(0x4f5)]['t'](_0x22db54(0x317)))){const _0x5cca43=window[_0x22db54(0x2ae)](window[_0x22db54(0x378)][_0x22db54(0x409)]);window[_0x22db54(0x378)]['href']=this['_getLoginPath']()+_0x22db54(0x430)+_0x5cca43;}return _0x4cf382;}))});}['_getLoginPath'](){const _0x370138=_0x945337;var _0x2a1ac5,_0x441b46;const _0xe7b121=this[_0x370138(0x4f8)][_0x370138(0x258)](mt),_0x4f0ccb=this[_0x370138(0x4f8)]['getConfig'](A);return(_0x441b46=(_0x2a1ac5=_0x4f0ccb==null?void 0x0:_0x4f0ccb[_0x370138(0x24d)])!=null?_0x2a1ac5:_0xe7b121)!=null?_0x441b46:es;}};pe=Ki([Le(0x0,a[_0x945337(0x1f7)]),Le(0x1,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),Le(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x945337(0x3e2)],zi=(_0x3d686c,_0x286206,_0x4a5660,_0x4c99f5)=>{const _0x795989=_0x945337;for(var _0xbc1552=_0x4c99f5>0x1?void 0x0:_0x4c99f5?qi(_0x286206,_0x4a5660):_0x286206,_0x2509ae=_0x3d686c[_0x795989(0x3f0)]-0x1,_0x395006;_0x2509ae>=0x0;_0x2509ae--)(_0x395006=_0x3d686c[_0x2509ae])&&(_0xbc1552=(_0x4c99f5?_0x395006(_0x286206,_0x4a5660,_0xbc1552):_0x395006(_0xbc1552))||_0xbc1552);return _0x4c99f5&&_0xbc1552&&Xi(_0x286206,_0x4a5660,_0xbc1552),_0xbc1552;},ct=(_0x258445,_0x34b7f0)=>(_0x13a1ec,_0x4ffeda)=>_0x34b7f0(_0x13a1ec,_0x4ffeda,_0x258445);const Mt='AUTHZ_URL_KEY',Ji=_0x945337(0x4bf);exports[_0x945337(0x40b)]=class extends a[_0x945337(0x45b)]{constructor(_0x8eea89,_0x409cc6){const _0x31306e=_0x945337;super(),this[_0x31306e(0x52a)]=_0x8eea89,this[_0x31306e(0x4f8)]=_0x409cc6,this[_0x31306e(0x31f)]();}[_0x945337(0x31f)](){const _0x1eb650=_0x945337,_0x2e8071=this;this[_0x1eb650(0x50a)](this['_HTTPService'][_0x1eb650(0x248)]({'priority':0x3e7,'interceptor':P[_0x1eb650(0x3bd)]({'isMatch'(_0x14421e){const _0x498202=_0x1eb650;var _0x40b789;if(_0x14421e[_0x498202(0x42f)]===_0x498202(0x315)&&((_0x40b789=_0x14421e[_0x498202(0x17a)])!=null&&_0x40b789[_0x498202(0x35f)])){const {objectID:_0x18cb3e,objectType:_0x51df05}=_0x14421e['requestParams'][_0x498202(0x35f)]||{};if(!_0x18cb3e||_0x51df05===void 0x0)return!0x1;const _0x142c4c=_0x2e8071[_0x498202(0x4a2)]()+'/'+_0x51df05+_0x498202(0x50d)+_0x18cb3e+_0x498202(0x383);if(_0x14421e[_0x498202(0x1e8)]===_0x142c4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x728d51){const _0x590caa=_0x1eb650;var _0x5b3f9e;return(_0x5b3f9e=_0x728d51[_0x590caa(0x17a)])==null?void 0x0:_0x5b3f9e[_0x590caa(0x35f)];},'mergeParamsToRequest'(_0x24ed89,_0x44e1ec){const _0x1b4c9f=_0x1eb650,_0x1313fc=_0x2e8071[_0x1b4c9f(0x4a2)]()+_0x1b4c9f(0x1e6),_0xdffc24=_0x24ed89[_0x1b4c9f(0x580)]((_0x18a1a5,_0x331a02)=>{const _0x3a2d5d=_0x1b4c9f,{unitID:_0x1fb642,objectID:_0x48c291,objectType:_0x16dc8a,actions:_0x51a9cd}=_0x331a02;return _0x18a1a5[_0x1fb642]||(_0x18a1a5[_0x1fb642]={}),_0x18a1a5[_0x1fb642][_0x48c291]||(_0x18a1a5[_0x1fb642][_0x48c291]={'objectID':_0x48c291,'objectType':_0x16dc8a,'actions':[]}),_0x18a1a5[_0x1fb642][_0x48c291][_0x3a2d5d(0x3ef)][_0x3a2d5d(0x3b0)](..._0x51a9cd),_0x18a1a5;},{}),_0x3dd070=[];for(const _0x5c281b in _0xdffc24)for(const _0x17d153 in _0xdffc24[_0x5c281b]){const {actions:_0x51e4df,objectType:_0x4f491e}=_0xdffc24[_0x5c281b][_0x17d153],_0x56749d=[...new Set(_0x51e4df)];_0x3dd070[_0x1b4c9f(0x3b0)]({'unitID':_0x5c281b,'objectID':_0x17d153,'objectType':_0x4f491e,'actions':_0x56749d});}return new P[(_0x1b4c9f(0x1a6))](_0x1b4c9f(0x315),_0x1313fc,{'headers':_0x44e1ec[_0x1b4c9f(0x431)],'withCredentials':_0x44e1ec[_0x1b4c9f(0x1e3)],'responseType':_0x44e1ec['responseType'],'body':{'requests':_0x3dd070}});}},{'distributeResult'(_0x4ffe1e,_0x293dea){const {objectActions:_0x447d7d}=_0x4ffe1e;return _0x293dea['map'](_0x44e8ec=>{const _0x2c9a69=_0x38f3,{unitID:_0x43b2fa,objectID:_0x360f87,actions:_0x300d3f}=_0x44e8ec,_0x47648c=_0x447d7d[_0x2c9a69(0x23a)](_0x5964f0=>_0x5964f0[_0x2c9a69(0x1da)]===_0x43b2fa&&_0x5964f0['objectID']===_0x360f87),_0x19ef4f=_0x300d3f[_0x2c9a69(0x2c1)](_0x15691b=>_0x47648c==null?void 0x0:_0x47648c[_0x2c9a69(0x3ef)]['find'](_0x54144b=>_0x54144b['action']===_0x15691b))[_0x2c9a69(0x1dc)](_0x501a83=>!!_0x501a83);return{'config':_0x44e8ec,'result':{'actions':_0x19ef4f,'error':_0x4ffe1e[_0x2c9a69(0x2e8)]}};});}})}));}[_0x945337(0x4a2)](){const _0x485c60=_0x945337;var _0x245917,_0x1f2d66;const _0x1bdf7f=this[_0x485c60(0x4f8)][_0x485c60(0x258)](Mt),_0x3ef77d=this[_0x485c60(0x4f8)][_0x485c60(0x258)](A);return(_0x1f2d66=(_0x245917=_0x3ef77d==null?void 0x0:_0x3ef77d[_0x485c60(0x4d6)])!=null?_0x245917:_0x1bdf7f)!=null?_0x1f2d66:Ji;}async[_0x945337(0x30f)](_0x543a0c){const _0x246b44=_0x945337,_0x1b9468=this[_0x246b44(0x4a2)]()+'/'+_0x543a0c[_0x246b44(0x433)]+_0x246b44(0x2b6);return(await this['_HTTPService'][_0x246b44(0x4da)](_0x1b9468,{'body':_0x543a0c}))[_0x246b44(0x35f)][_0x246b44(0x1ee)]||'';}async[_0x945337(0x26b)](_0x5d62ea){const _0x277352=_0x945337,_0x5c428c=this[_0x277352(0x4a2)]()+_0x277352(0x444);return(await this[_0x277352(0x52a)][_0x277352(0x4da)](_0x5c428c,{'body':_0x5d62ea}))[_0x277352(0x35f)][_0x277352(0x2cf)];}async[_0x945337(0x177)](_0x433cd9){const _0x46e232=_0x945337,_0x82dbb2=this[_0x46e232(0x4a2)]()+'/'+_0x433cd9[_0x46e232(0x433)]+_0x46e232(0x50d)+_0x433cd9[_0x46e232(0x1ee)];await this[_0x46e232(0x52a)]['put'](_0x82dbb2,{'body':_0x433cd9});}async[_0x945337(0x525)](_0x1609c1){const _0x2b2d3c=_0x945337,_0x68a325=this[_0x2b2d3c(0x4a2)]()+'/'+_0x1609c1['objectType']+_0x2b2d3c(0x50d)+_0x1609c1['objectID']+_0x2b2d3c(0x383);return(await this['_HTTPService'][_0x2b2d3c(0x4da)](_0x68a325,{'body':_0x1609c1}))[_0x2b2d3c(0x35f)][_0x2b2d3c(0x3ef)];}async['batchAllowed'](_0x31bed6){const _0x3f6bcc=_0x945337,_0x3c7bec=this[_0x3f6bcc(0x4a2)]()+_0x3f6bcc(0x1e6);return(await this[_0x3f6bcc(0x52a)][_0x3f6bcc(0x4da)](_0x3c7bec,{'body':{'requests':_0x31bed6}}))[_0x3f6bcc(0x35f)][_0x3f6bcc(0x1ae)];}async[_0x945337(0x49d)](_0x458144){const _0x124a13=_0x945337,_0x1d7f4a=this['_getAPIPrefixPath']()+'/'+_0x458144[_0x124a13(0x433)]+_0x124a13(0x540),_0x4740bb=await this[_0x124a13(0x52a)][_0x124a13(0x4da)](_0x1d7f4a,{'body':_0x458144});return{'roles':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x434)],'actions':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x3ef)]};}async[_0x945337(0x494)](_0xf7d9ad){const _0x5ec6c0=_0x945337,_0x407078=this[_0x5ec6c0(0x4a2)]()+_0x5ec6c0(0x510);await this[_0x5ec6c0(0x52a)]['delete'](_0x407078,{'params':{'collaboratorID':_0xf7d9ad[_0x5ec6c0(0x3e1)],'objectID':_0xf7d9ad[_0x5ec6c0(0x1ee)],'unitID':_0xf7d9ad[_0x5ec6c0(0x1da)]}});}async['updateCollaborator'](_0x3a3e97){const _0x1258d3=_0x945337,_0x2ab2ba=this[_0x1258d3(0x4a2)]()+_0x1258d3(0x510);await this['_HTTPService'][_0x1258d3(0x524)](_0x2ab2ba,{'body':_0x3a3e97});}async[_0x945337(0x2be)](_0x442f95){const _0x47b357=_0x945337,_0x1e9035=this[_0x47b357(0x4a2)]()+_0x47b357(0x510);await this[_0x47b357(0x52a)][_0x47b357(0x4da)](_0x1e9035,{'body':_0x442f95});}async['listCollaborators'](_0x44f5f3){const _0x51c2e7=_0x945337,_0x4b8288=this[_0x51c2e7(0x4a2)]()+_0x51c2e7(0x510);return(await this[_0x51c2e7(0x52a)][_0x51c2e7(0x3eb)](_0x4b8288,{'params':{'objectID':_0x44f5f3[_0x51c2e7(0x1ee)],'unitID':_0x44f5f3['unitID']}}))[_0x51c2e7(0x35f)][_0x51c2e7(0x459)];}async['putCollaborators'](_0x1a115d){const _0xaada9f=_0x945337,_0x2db2aa=this[_0xaada9f(0x4a2)]()+_0xaada9f(0x510);await this[_0xaada9f(0x52a)][_0xaada9f(0x2a5)](_0x2db2aa,{'body':_0x1a115d});}},exports[_0x945337(0x40b)]=zi([ct(0x0,a['Inject'](P[_0x945337(0x22e)])),ct(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x1f7)]))],exports[_0x945337(0x40b)]);var Zi=Object[_0x945337(0x24b)],Qi=Object[_0x945337(0x3e2)],en=(_0x439d3b,_0x36a68c,_0x5af289,_0x59a45a)=>{const _0x6f2fd8=_0x945337;for(var _0x46811b=_0x59a45a>0x1?void 0x0:_0x59a45a?Qi(_0x36a68c,_0x5af289):_0x36a68c,_0x4ca905=_0x439d3b[_0x6f2fd8(0x3f0)]-0x1,_0x26e2ca;_0x4ca905>=0x0;_0x4ca905--)(_0x26e2ca=_0x439d3b[_0x4ca905])&&(_0x46811b=(_0x59a45a?_0x26e2ca(_0x36a68c,_0x5af289,_0x46811b):_0x26e2ca(_0x46811b))||_0x46811b);return _0x59a45a&&_0x46811b&&Zi(_0x36a68c,_0x5af289,_0x46811b),_0x46811b;},tn=(_0x3d5396,_0xda5140)=>(_0x5d1cb4,_0x474409)=>_0xda5140(_0x5d1cb4,_0x474409,_0x3d5396);let Ce=class{constructor(_0x490ee6){const _0x3ef684=_0x945337;this[_0x3ef684(0x4ed)]=_0x490ee6,this[_0x3ef684(0x2d3)]();}[_0x945337(0x2d3)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3d04ee,_0x2fda50)=>{const _0x14526c=_0x38f3,_0x36f0f3=_0x3d04ee['headers'],_0x1c3419=Ft[_0x14526c(0x2db)]();return _0x1c3419&&_0x36f0f3[_0x14526c(0x4a8)](_0x14526c(0x27e),_0x1c3419),_0x2fda50(_0x3d04ee);}});}};Ce=en([tn(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)]))],Ce);var sn=Object['defineProperty'],nn=Object[_0x945337(0x3e2)],rn=(_0xa1f6a0,_0x4d9696,_0x41424,_0x173c7a)=>{const _0x14bb0d=_0x945337;for(var _0x4e37ed=_0x173c7a>0x1?void 0x0:_0x173c7a?nn(_0x4d9696,_0x41424):_0x4d9696,_0x2a1d94=_0xa1f6a0[_0x14bb0d(0x3f0)]-0x1,_0xeb155a;_0x2a1d94>=0x0;_0x2a1d94--)(_0xeb155a=_0xa1f6a0[_0x2a1d94])&&(_0x4e37ed=(_0x173c7a?_0xeb155a(_0x4d9696,_0x41424,_0x4e37ed):_0xeb155a(_0x4e37ed))||_0x4e37ed);return _0x173c7a&&_0x4e37ed&&sn(_0x4d9696,_0x41424,_0x4e37ed),_0x4e37ed;},je=(_0x67ba3c,_0x2cc672)=>(_0x24893e,_0x31a7a1)=>_0x2cc672(_0x24893e,_0x31a7a1,_0x67ba3c);const on=[_0x945337(0x56f),_0x945337(0x208),'image/jpg',_0x945337(0x4af),_0x945337(0x57d)],an=0x5*0x400*0x400,cn=_0x945337(0x51a),ln=_0x945337(0x265),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x945337(0x3bc);exports['ImageIoService']=class{constructor(_0x4ccb43,_0x4b18a9,_0x54e430){const _0x28cb1c=_0x945337;d(this,_0x28cb1c(0x1cc),0x0),d(this,_0x28cb1c(0x416),new v[(_0x28cb1c(0x36e))]()),d(this,_0x28cb1c(0x340),this[_0x28cb1c(0x416)]),d(this,_0x28cb1c(0x55c),new Map()),(this['_httpService']=_0x4ccb43,this[_0x28cb1c(0x4f8)]=_0x4b18a9,this[_0x28cb1c(0x337)]=_0x54e430);}['setWaitCount'](_0x41283a){const _0x503c5c=_0x945337;this[_0x503c5c(0x1cc)]=_0x41283a,this['_change$']['next'](_0x41283a);}[_0x945337(0x1a5)](_0x375473,_0x4234cc){const _0x4ad759=_0x945337;if(_0x4234cc===L[_0x4ad759(0x488)][_0x4ad759(0x2a3)]){const _0x77c404=new Image();return _0x77c404[_0x4ad759(0x21b)]=_0x375473,_0x77c404;}return this[_0x4ad759(0x55c)][_0x4ad759(0x3eb)](_0x375473);}['addImageSourceCache'](_0x31e9ac,_0x33a65d,_0x2276eb){const _0x3912c3=_0x945337;_0x33a65d===L[_0x3912c3(0x488)][_0x3912c3(0x2a3)]||_0x2276eb==null||this[_0x3912c3(0x55c)][_0x3912c3(0x4a8)](_0x31e9ac,_0x2276eb);}async[_0x945337(0x4a3)](_0x593130){const _0x1b519e=_0x945337;try{const _0x22e53e=this[_0x1b519e(0x1c9)](this[_0x1b519e(0x523)](),''+_0x593130),_0x5d01a0=(await this[_0x1b519e(0x4ed)][_0x1b519e(0x3eb)](_0x22e53e))[_0x1b519e(0x35f)];if(_0x5d01a0[_0x1b519e(0x2e8)]&&_0x5d01a0[_0x1b519e(0x2e8)][_0x1b519e(0x20c)]===It['OK']){const _0x1869a2=new URL(_0x5d01a0[_0x1b519e(0x1e8)],this['_getDownloadEndpointURL']())[_0x1b519e(0x466)]();return Promise[_0x1b519e(0x18f)](_0x1869a2);}return Promise[_0x1b519e(0x279)](_0x5d01a0[_0x1b519e(0x2e8)]);}catch(_0x5026fe){return Promise[_0x1b519e(0x279)](_0x5026fe);}}async[_0x945337(0x3c1)](_0xe78a1f){const _0x49a358=_0x945337;let _0xa6415f='';if(!on[_0x49a358(0x38c)](_0xe78a1f['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x49a358(0x54c)]));if(_0xe78a1f[_0x49a358(0x17e)]>an)return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x371)]));try{const _0x3774d3=new FormData();_0x3774d3[_0x49a358(0x280)](_0x49a358(0x4fd),_0xe78a1f);const _0x2e80bf=this[_0x49a358(0x337)][_0x49a358(0x255)](),_0x3dc71e=_0x2e80bf==null?void 0x0:_0x2e80bf[_0x49a358(0x352)]();if(!_0x3dc71e)throw new Error('unitId\x20is\x20not\x20found');const _0x33392f=this[_0x49a358(0x357)]()+_0x49a358(0x4d3)+_0xe78a1f['size'][_0x49a358(0x466)]()+_0x49a358(0x517)+pt[_0x49a358(0x29b)]+_0x49a358(0x55e)+encodeURIComponent(_0x3dc71e),_0x2d1f72=await(await fetch(_0x33392f,{'method':_0x49a358(0x315),'body':_0x3774d3}))[_0x49a358(0x1ab)]();if(typeof _0x2d1f72['FileId']!=_0x49a358(0x312))return this[_0x49a358(0x464)](),Promise[_0x49a358(0x279)](new Error(L['ImageUploadStatusType'][_0x49a358(0x1d9)]));_0xa6415f=_0x2d1f72[_0x49a358(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x1d9)]));}return new Promise((_0x4f4be8,_0x1e95d0)=>{const _0x5a5d67=_0x49a358,_0x382e90=new FileReader();_0x382e90[_0x5a5d67(0x184)](_0xe78a1f),_0x382e90[_0x5a5d67(0x314)]=_0x9fa56a=>{const _0x2fb230=_0x5a5d67;var _0x2b6078;const _0x556ad4=(_0x2b6078=_0x9fa56a['target'])==null?void 0x0:_0x2b6078[_0x2fb230(0x331)];if(_0x556ad4==null){this['_decreaseWaiting'](),_0x1e95d0(new Error(L['ImageUploadStatusType'][_0x2fb230(0x1d9)]));return;}const _0x17830c=a[_0x2fb230(0x4ea)][_0x2fb230(0x227)](0x6);_0x4f4be8({'imageId':_0x17830c,'imageSourceType':L[_0x2fb230(0x488)][_0x2fb230(0x522)],'source':_0xa6415f,'base64Cache':_0x556ad4,'status':L[_0x2fb230(0x4ac)]['SUCCUSS']}),this[_0x2fb230(0x464)]();};});}[_0x945337(0x357)](){const _0x3a6894=_0x945337;var _0x103b70,_0x9985e1;const _0x10c3d2=this[_0x3a6894(0x4f8)][_0x3a6894(0x258)](cn),_0x39154e=this['_configService'][_0x3a6894(0x258)](A);return(_0x9985e1=(_0x103b70=_0x39154e==null?void 0x0:_0x39154e[_0x3a6894(0x45f)])!=null?_0x103b70:_0x10c3d2)!=null?_0x9985e1:ln;}['_getSignURL'](){const _0x46b569=_0x945337;var _0x1fedf4,_0x3b15bb;const _0x429c54=this['_configService'][_0x46b569(0x258)](hn),_0x17a250=this['_configService'][_0x46b569(0x258)](A);return(_0x3b15bb=(_0x1fedf4=_0x17a250==null?void 0x0:_0x17a250[_0x46b569(0x23d)])!=null?_0x1fedf4:_0x429c54)!=null?_0x3b15bb:_n;}['_getDownloadEndpointURL'](){const _0x50cfde=_0x945337;var _0x505650;const _0x19c684=this[_0x50cfde(0x4f8)]['getConfig'](A);return(_0x505650=_0x19c684==null?void 0x0:_0x19c684[_0x50cfde(0x1c3)])!=null?_0x505650:location[_0x50cfde(0x341)];}['_replaceFileID'](_0x4dd1d0,_0x24fc36){const _0x28bef9=_0x945337;return _0x4dd1d0[_0x28bef9(0x559)]('{fileID}',_0x24fc36);}['_decreaseWaiting'](){const _0xdcc7c7=_0x945337;this[_0xdcc7c7(0x1cc)]-=0x1,this[_0xdcc7c7(0x416)][_0xdcc7c7(0x3ca)](this[_0xdcc7c7(0x1cc)]);}},exports[_0x945337(0x479)]=rn([je(0x0,a['Inject'](P[_0x945337(0x22e)])),je(0x1,a[_0x945337(0x1f7)]),je(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x57b)]))],exports[_0x945337(0x479)]);var un=Object[_0x945337(0x24b)],dn=Object[_0x945337(0x3e2)],Sn=(_0xeda5db,_0x187138,_0x304549,_0x9ed41b)=>{const _0x5b5d8a=_0x945337;for(var _0xc163b0=_0x9ed41b>0x1?void 0x0:_0x9ed41b?dn(_0x187138,_0x304549):_0x187138,_0x579608=_0xeda5db[_0x5b5d8a(0x3f0)]-0x1,_0x60a977;_0x579608>=0x0;_0x579608--)(_0x60a977=_0xeda5db[_0x579608])&&(_0xc163b0=(_0x9ed41b?_0x60a977(_0x187138,_0x304549,_0xc163b0):_0x60a977(_0xc163b0))||_0xc163b0);return _0x9ed41b&&_0xc163b0&&un(_0x187138,_0x304549,_0xc163b0),_0xc163b0;},he=(_0x496790,_0x2893b0)=>(_0x2ce484,_0x3dabfc)=>_0x2893b0(_0x2ce484,_0x3dabfc,_0x496790);let Ee=class extends a[_0x945337(0x538)]{constructor(_0x1d6445,_0x4d5aea,_0x947766,_0x2ad3c2,_0x11642f){const _0x4b88ee=_0x945337;super(),this[_0x4b88ee(0x3dd)]=_0x1d6445,this[_0x4b88ee(0x337)]=_0x4d5aea,this['_permissionService']=_0x947766,this[_0x4b88ee(0x491)]=_0x2ad3c2,this[_0x4b88ee(0x21a)]=_0x11642f,this['_initUnitPermissionChange'](),this[_0x4b88ee(0x398)]();}[_0x945337(0x398)](){const _0x43d51a=_0x945337,_0x24b84c=async _0x440a28=>{const _0x709dad=_0x38f3;(await this['_collaborationSessionService'][_0x709dad(0x369)](_0x440a28))[_0x709dad(0x23f)][_0x709dad(0x550)](E[_0x709dad(0x1dc)](_0x3b7915=>_0x3b7915[_0x709dad(0x170)]===_[_0x709dad(0x4eb)][_0x709dad(0x2d8)]),E[_0x709dad(0x43c)](this[_0x709dad(0x2ec)]))[_0x709dad(0x397)](_0x4a8930=>{const _0x37cdc8=_0x709dad,_0x58514f=_0x4a8930,{reason:_0x3c7ceb}=_0x58514f[_0x37cdc8(0x375)];this[_0x37cdc8(0x3dd)][_0x37cdc8(0x3eb)](N['IMessageService'])[_0x37cdc8(0x411)]({'type':X[_0x37cdc8(0x367)][_0x37cdc8(0x372)],'content':this[_0x37cdc8(0x21a)]['t'](_0x37cdc8(0x183))+'('+_0x3c7ceb+')'}),this[_0x37cdc8(0x209)][_0x37cdc8(0x470)](new C[(_0x37cdc8(0x298))](_0x440a28)['id'],!0x1),this['_collaborationSessionService'][_0x37cdc8(0x350)](_0x440a28);});};v[_0x43d51a(0x515)](this[_0x43d51a(0x337)][_0x43d51a(0x51e)](a[_0x43d51a(0x3b1)]['UNIVER_SHEET']),this[_0x43d51a(0x337)]['getTypeOfUnitAdded$'](a[_0x43d51a(0x3b1)][_0x43d51a(0x395)]))['pipe'](E[_0x43d51a(0x2c1)](_0x1bfbf3=>_0x1bfbf3[_0x43d51a(0x352)]()),E[_0x43d51a(0x1dc)](_0x3463bc=>!a[_0x43d51a(0x1dd)](_0x3463bc)),E[_0x43d51a(0x43c)](this['dispose$']))[_0x43d51a(0x397)](_0x4d2273=>{_0x24b84c(_0x4d2273);});}['_initUnitPermissionChange'](){const _0x5f3f4d=_0x945337,_0x10445c=async _0x394fe0=>{const _0x87ea45=_0x38f3;(await this['_collaborationSessionService'][_0x87ea45(0x369)](_0x394fe0))['event$'][_0x87ea45(0x550)](E['filter'](_0x33e089=>_0x33e089['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x87ea45(0x43c)](this[_0x87ea45(0x2ec)]))[_0x87ea45(0x397)](_0x55db0a=>{const _0xc17e11=_0x87ea45,_0x45085b=_0x55db0a,{objectId:_0x59af19}=_0x45085b[_0xc17e11(0x375)],_0x11b242=this[_0xc17e11(0x3dd)][_0xc17e11(0x3eb)](te['SheetPermissionInitController']);_0x59af19===_0x394fe0?_0x11b242[_0xc17e11(0x440)](_0x394fe0):_0x11b242[_0xc17e11(0x41e)](_0x394fe0,_0x59af19);});};v[_0x5f3f4d(0x515)](this[_0x5f3f4d(0x337)][_0x5f3f4d(0x51e)](a[_0x5f3f4d(0x3b1)][_0x5f3f4d(0x53c)]),this[_0x5f3f4d(0x337)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5f3f4d(0x395)]))['pipe'](E['map'](_0x24ce4b=>_0x24ce4b['getUnitId']()),E['filter'](_0x555c7c=>!a[_0x5f3f4d(0x1dd)](_0x555c7c)),E[_0x5f3f4d(0x43c)](this['dispose$']))[_0x5f3f4d(0x397)](_0x1f8d1d=>{_0x10445c(_0x1f8d1d);});}};Ee=Sn([he(0x0,a['Inject'](a[_0x945337(0x2b5)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x945337(0x414)]),he(0x3,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),he(0x4,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],Ee);var vn=Object[_0x945337(0x24b)],fn=Object[_0x945337(0x3e2)],gn=(_0x506f3c,_0x5203c3,_0x3701ea,_0x30ca28)=>{for(var _0xbfdc4a=_0x30ca28>0x1?void 0x0:_0x30ca28?fn(_0x5203c3,_0x3701ea):_0x5203c3,_0x26f5ad=_0x506f3c['length']-0x1,_0x4fad1f;_0x26f5ad>=0x0;_0x26f5ad--)(_0x4fad1f=_0x506f3c[_0x26f5ad])&&(_0xbfdc4a=(_0x30ca28?_0x4fad1f(_0x5203c3,_0x3701ea,_0xbfdc4a):_0x4fad1f(_0xbfdc4a))||_0xbfdc4a);return _0x30ca28&&_0xbfdc4a&&vn(_0x5203c3,_0x3701ea,_0xbfdc4a),_0xbfdc4a;},lt=(_0x58707c,_0xc2a03c)=>(_0x17b25a,_0x31a76b)=>_0xc2a03c(_0x17b25a,_0x31a76b,_0x58707c);exports[_0x945337(0x3cc)]=class{constructor(_0x1030a1,_0x4edecc){const _0x34ea7b=_0x945337;this[_0x34ea7b(0x4f8)]=_0x1030a1,this[_0x34ea7b(0x4ed)]=_0x4edecc;}async[_0x945337(0x33a)](_0x2d3b02,_0x5809ad){const _0x3dc87a=_0x945337;var _0x5415b0;const {unitID:_0x5555a4,type:_0x45b7e6,revision:_0x27b04a=0x0}=_0x5809ad,_0x2b3967=this[_0x3dc87a(0x1d7)]()+'/'+_0x45b7e6+_0x3dc87a(0x35e)+_0x5555a4+_0x3dc87a(0x47d)+_0x27b04a,_0x582f41=(await this['_httpService'][_0x3dc87a(0x3eb)](_0x2b3967))[_0x3dc87a(0x35f)],_0x5d339e=(_0x5415b0=_0x582f41[_0x3dc87a(0x31b)])==null?void 0x0:_0x5415b0['workbook'];if(_0x5d339e){const _0x1c3815=_0x5d339e==null?void 0x0:_0x5d339e[_0x3dc87a(0x3e3)],_0x1d6504=_[_0x3dc87a(0x43f)][_0x3dc87a(0x2f1)](_[_0x3dc87a(0x19a)](_0x1c3815));_0x5d339e['originalMeta']=_0x1d6504,Object[_0x3dc87a(0x519)](_0x5d339e[_0x3dc87a(0x4e1)])['forEach'](([,_0x4871be])=>{const _0x32edf1=_0x3dc87a,_0xa806ea=_0x4871be[_0x32edf1(0x3e3)],_0x1fa780=_['textEncoder'][_0x32edf1(0x2f1)](_[_0x32edf1(0x19a)](_0xa806ea));_0x4871be[_0x32edf1(0x3e3)]=_0x1fa780;});}return _0x582f41;}async[_0x945337(0x30e)](_0x130ddc,_0x12e667){const _0x1ddf7c=_0x945337,{unitID:_0xddf8f3,type:_0x5b4042,blockID:_0x223224}=_0x12e667,_0x1c5fbf=this[_0x1ddf7c(0x3b3)]()+'/'+_0x5b4042+'/unit/'+_0xddf8f3+_0x1ddf7c(0x1ed)+_0x223224;return(await this[_0x1ddf7c(0x4ed)][_0x1ddf7c(0x3eb)](_0x1c5fbf))[_0x1ddf7c(0x35f)];}async['getDeserializedSheetBlock'](_0x40abec,_0x4ded00){const _0x2fcd49=_0x945337,{unitID:_0x4756f9,type:_0x4de1be,blockID:_0x1da9df}=_0x4ded00,_0xe0b9f3=this[_0x2fcd49(0x3b3)]()+'/block/'+_0x4de1be+_0x2fcd49(0x35e)+_0x4756f9+_0x2fcd49(0x1ed)+_0x1da9df;return(await this[_0x2fcd49(0x4ed)][_0x2fcd49(0x3eb)](_0xe0b9f3))[_0x2fcd49(0x35f)];}async['fetchMissingChangesets'](_0x542c39,_0x31dbd7){const _0x1e824b=_0x945337,{unitID:_0x434fd3,type:_0x47e5f2,from:_0x46ccf5,to:_0x1bc6bc}=_0x31dbd7,_0x5d543b=this['_getAPIPrefix']()+'/'+_0x47e5f2+_0x1e824b(0x35e)+_0x434fd3+_0x1e824b(0x2fc)+_0x46ccf5+'&to='+_0x1bc6bc;return(await this['_httpService'][_0x1e824b(0x3eb)](_0x5d543b))['body'];}[_0x945337(0x1d7)](){const _0x4ecc8d=_0x945337;var _0x112bdd;return(_0x112bdd=this[_0x4ecc8d(0x4f8)][_0x4ecc8d(0x258)](_t))!=null?_0x112bdd:this[_0x4ecc8d(0x3b3)]();}[_0x945337(0x3b3)](){const _0x2bb731=_0x945337;var _0x17a162,_0x1d1cff;const _0x1b7489=this['_configService'][_0x2bb731(0x258)](ht),_0x42d2ec=this[_0x2bb731(0x4f8)][_0x2bb731(0x258)](A);return(_0x1d1cff=(_0x17a162=_0x42d2ec==null?void 0x0:_0x42d2ec['snapshotServerUrl'])!=null?_0x17a162:_0x1b7489)!=null?_0x1d1cff:Gt;}async[_0x945337(0x40c)](_0x3be683,_0x4d512c){const _0x54e5e2=_0x945337,_0x57acc4='/universer-api/snapshot/'+_0x4d512c['type']+_0x54e5e2(0x35e)+_0x4d512c[_0x54e5e2(0x1da)]+_0x54e5e2(0x2cc);return(await this[_0x54e5e2(0x4ed)][_0x54e5e2(0x3eb)](_0x57acc4,{'params':{'resourceId':JSON[_0x54e5e2(0x22d)](_0x4d512c['resourceIDs'])}}))[_0x54e5e2(0x35f)];}['saveSnapshot'](){const _0x2c18f1=_0x945337;throw new Error(_0x2c18f1(0x3c5));}[_0x945337(0x179)](){const _0x1618f8=_0x945337;throw new Error(_0x1618f8(0x3c5));}[_0x945337(0x40d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x945337(0x424)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x945337(0x3cc)]=gn([lt(0x0,a['IConfigService']),lt(0x1,a['Inject'](P[_0x945337(0x22e)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x945337(0x24b)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5a4113,_0x6f3323,_0x54c6a6,_0x1068b0)=>{const _0x40441c=_0x945337;for(var _0x1150a8=_0x1068b0>0x1?void 0x0:_0x1068b0?In(_0x6f3323,_0x54c6a6):_0x6f3323,_0x33c2e6=_0x5a4113[_0x40441c(0x3f0)]-0x1,_0xe2345;_0x33c2e6>=0x0;_0x33c2e6--)(_0xe2345=_0x5a4113[_0x33c2e6])&&(_0x1150a8=(_0x1068b0?_0xe2345(_0x6f3323,_0x54c6a6,_0x1150a8):_0xe2345(_0x1150a8))||_0x1150a8);return _0x1068b0&&_0x1150a8&&mn(_0x6f3323,_0x54c6a6,_0x1150a8),_0x1150a8;},_e=(_0x216f88,_0x3ceace)=>(_0x2298dd,_0x59db1c)=>_0x3ceace(_0x2298dd,_0x59db1c,_0x216f88);let Be=class extends a[_0x945337(0x187)]{constructor(_0x63b7b6,_0x5b738d,_0x19fbcf,_0x21c1e1,_0x49f521){const _0x1f8d79=_0x945337;super(_0x63b7b6,_0x5b738d,_0x19fbcf),this['_transformService']=_0x21c1e1,this[_0x1f8d79(0x4ae)]=_0x49f521;}[_0x945337(0x1d0)](_0x1c2d5f,_0x2bbd21){const _0x2955c0=_0x945337,_0x2f7eec=this[_0x2955c0(0x577)](_0x1c2d5f);if(_0x2f7eec)try{const _0x39dea2=this['_transformStack'](_0x2f7eec,_0x2bbd21);this[_0x2955c0(0x495)](_0x1c2d5f,_0x39dea2);}catch(_0x341ea9){this[_0x2955c0(0x4ae)][_0x2955c0(0x2e8)](_0x2955c0(0x47a),_0x341ea9),this[_0x2955c0(0x41a)](_0x1c2d5f);}const _0x4c0443=this[_0x2955c0(0x4ba)](_0x1c2d5f);if(_0x4c0443)try{const _0x2aaa69=this[_0x2955c0(0x2ca)](_0x4c0443,_0x2bbd21);this[_0x2955c0(0x4d2)](_0x1c2d5f,_0x2aaa69);}catch(_0x5946c2){this[_0x2955c0(0x4ae)]['error'](_0x5946c2),this['_clearRedo'](_0x1c2d5f);}}[_0x945337(0x41a)](_0x29ac7c){const _0x438a32=_0x945337,_0x4c0191=this[_0x438a32(0x577)](_0x29ac7c);_0x4c0191&&(_0x4c0191[_0x438a32(0x3f0)]=0x0,this['_updateStatus']());}[_0x945337(0x34d)](_0x1f52c4){const _0x2b9658=_0x945337,_0x9d4347=this[_0x2b9658(0x4ba)](_0x1f52c4);_0x9d4347&&(_0x9d4347[_0x2b9658(0x3f0)]=0x0,this[_0x2b9658(0x422)]());}[_0x945337(0x495)](_0x2bbf99,_0x46bf0b){const _0x47bc54=_0x945337;this[_0x47bc54(0x1f6)]['set'](_0x2bbf99,_0x46bf0b),this[_0x47bc54(0x422)]();}[_0x945337(0x4d2)](_0xa08074,_0x2411a1){const _0x56763a=_0x945337;this['_redoStacks'][_0x56763a(0x4a8)](_0xa08074,_0x2411a1),this[_0x56763a(0x422)]();}[_0x945337(0x2ca)](_0x31ecaf,_0x512883){const _0x240d68=_0x945337,_0x3faa7f=[];let _0x195e16=_0x512883,_0x583ba3=_0x512883;for(let _0x407f7f=_0x31ecaf[_0x240d68(0x3f0)]-0x1;_0x407f7f>=0x0;_0x407f7f--){const {unitID:_0xdaa35a,undoMutations:_0x5d9eb0,redoMutations:_0x2bc98e}=_0x31ecaf[_0x407f7f],_0xf8e809=this[_0x240d68(0x4f2)]['transformMutationsWithChangeset'](_0x195e16,_0x5d9eb0),_0x35360a=this[_0x240d68(0x4f2)][_0x240d68(0x4df)](_0x583ba3,_0x2bc98e);if(_['isTransformMutationsWithChangesetFailure'](_0xf8e809)||_[_0x240d68(0x552)](_0x35360a)){this[_0x240d68(0x4ae)][_0x240d68(0x2e8)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0xf8e809,_0x35360a);break;}_0x195e16=_0xf8e809[_0x240d68(0x44e)],_0x583ba3=_0x35360a['c1Prime'],_0x3faa7f[_0x240d68(0x3b0)]({'unitID':_0xdaa35a,'undoMutations':_0xf8e809[_0x240d68(0x178)],'redoMutations':_0x35360a[_0x240d68(0x178)]});}return _0x3faa7f[_0x240d68(0x51f)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x945337(0x400)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x945337(0x429)]),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x945337(0x538)]{constructor(){const _0x1a6989=_0x945337;super(),d(this,_0x1a6989(0x56b)),this[_0x1a6989(0x56b)]=v['fromEvent'](window,_0x1a6989(0x457))[_0x1a6989(0x550)](v[_0x1a6989(0x43c)](this[_0x1a6989(0x2ec)]),v[_0x1a6989(0x421)](0x1),v[_0x1a6989(0x1a3)](void 0x0));}[_0x945337(0x47b)](_0x1a41e8,_0x51da4e,_0x12a94a=!0x1){const _0xe70366=_0x945337,_0x321b77=new URL(window[_0xe70366(0x378)][_0xe70366(0x409)]);_0x321b77['searchParams'][_0xe70366(0x4a8)](_0x1a41e8,_0x51da4e),_0x12a94a?window[_0xe70366(0x2cd)]['replaceState']('','',_0x321b77['toString']()):window[_0xe70366(0x2cd)][_0xe70366(0x4d9)]('','',_0x321b77[_0xe70366(0x466)]());}[_0x945337(0x1b5)](_0x1ea143,_0x1ab068=!0x1){const _0x482d43=_0x945337,_0x3ea3c1=new URL(window[_0x482d43(0x378)]['href']);_0x3ea3c1[_0x482d43(0x2df)]['delete'](_0x1ea143),_0x1ab068?window[_0x482d43(0x2cd)][_0x482d43(0x2ed)]('','',_0x3ea3c1[_0x482d43(0x466)]()):window[_0x482d43(0x2cd)][_0x482d43(0x4d9)]('','',_0x3ea3c1[_0x482d43(0x466)]());}[_0x945337(0x21e)](_0x5b803f){const _0x2bc2c4=_0x945337;var _0x45ada9;return(_0x45ada9=new URL(window[_0x2bc2c4(0x378)][_0x2bc2c4(0x409)])[_0x2bc2c4(0x2df)]['get'](_0x5b803f))!=null?_0x45ada9:void 0x0;}}var At=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],En=(_0x500179,_0x3eec32,_0x51c288)=>_0x3eec32 in _0x500179?At(_0x500179,_0x3eec32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c288}):_0x500179[_0x3eec32]=_0x51c288,bn=(_0x50e67a,_0x1dc922,_0x5366c8,_0x5cb5cf)=>{const _0x222cb2=_0x945337;for(var _0x3929c3=_0x5cb5cf>0x1?void 0x0:_0x5cb5cf?Cn(_0x1dc922,_0x5366c8):_0x1dc922,_0x48ae40=_0x50e67a[_0x222cb2(0x3f0)]-0x1,_0x10ba21;_0x48ae40>=0x0;_0x48ae40--)(_0x10ba21=_0x50e67a[_0x48ae40])&&(_0x3929c3=(_0x5cb5cf?_0x10ba21(_0x1dc922,_0x5366c8,_0x3929c3):_0x10ba21(_0x3929c3))||_0x3929c3);return _0x5cb5cf&&_0x3929c3&&At(_0x1dc922,_0x5366c8,_0x3929c3),_0x3929c3;},ve=(_0x2e1a8a,_0x44ea97)=>(_0x4fcffd,_0x48a174)=>_0x44ea97(_0x4fcffd,_0x48a174,_0x2e1a8a),Tn=(_0x348f70,_0x29e6d2,_0x46db22)=>En(_0x348f70,_0x29e6d2+'',_0x46db22);const Rn=_0x945337(0x323);exports[_0x945337(0x300)]=class extends a[_0x945337(0x1fd)]{constructor(_0x370ac5=ts,_0x5a79e,_0x2512a8,_0x240cf9,_0xa2ee7d){const _0x3ba533=_0x945337;super(),this[_0x3ba533(0x4fe)]=_0x370ac5,this[_0x3ba533(0x4ae)]=_0x5a79e,this[_0x3ba533(0x277)]=_0x2512a8,this[_0x3ba533(0x3dd)]=_0x240cf9,this['_configService']=_0xa2ee7d;const {..._0x2da3ad}=this[_0x3ba533(0x4fe)];this[_0x3ba533(0x4f8)][_0x3ba533(0x44a)](A,_0x2da3ad);}['onStarting'](){const _0x18e188=_0x945337;this[_0x18e188(0x199)](),a[_0x18e188(0x3b5)](this[_0x18e188(0x3dd)],[[ie],[exports[_0x18e188(0x4d5)]],[Ee]]);}[_0x945337(0x446)](){const _0x3cfffc=_0x945337;a[_0x3cfffc(0x3b5)](this[_0x3cfffc(0x3dd)],[[Ie]]);}[_0x945337(0x2e9)](){this['_registerRenderDependencies']();}[_0x945337(0x199)](){const _0x126ffa=_0x945337;var _0x5d6d6d,_0x4da76f,_0x4d6134,_0x4d4334;this[_0x126ffa(0x3dd)][_0x126ffa(0x384)](a[_0x126ffa(0x38b)])&&this['_logService'][_0x126ffa(0x2e8)](_0x126ffa(0x512),_0x126ffa(0x427));let _0x3ab063=[[a[_0x126ffa(0x38b)],{'useClass':Be}],[exports[_0x126ffa(0x3a5)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x126ffa(0x3a3)]],[P[_0x126ffa(0x2ce)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x4da76f=(_0x5d6d6d=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x5d6d6d[_0x126ffa(0x3a7)])!=null?_0x4da76f:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P['XHRHTTPImplementation']}],[_[_0x126ffa(0x4b2)],{'useClass':exports[_0x126ffa(0x3cc)]}],[a['IAuthzIoService'],{'useClass':exports[_0x126ffa(0x40b)]}],[L[_0x126ffa(0x49e)],{'useClass':exports['ImageIoService']}],[exports[_0x126ffa(0x4ee)]],[exports[_0x126ffa(0x4d5)]],[exports[_0x126ffa(0x1ce)]],[Ie],[ie]];(_0x4d6134=this[_0x126ffa(0x4fe)])!=null&&_0x4d6134['enableSingleActiveInstanceLock']&&_0x3ab063['push']([be,{'useClass':ys}]),_0x3ab063=a[_0x126ffa(0x36c)](_0x3ab063,(_0x4d4334=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x4d4334['override']),_0x3ab063[_0x126ffa(0x278)](_0x5511a8=>this[_0x126ffa(0x3dd)][_0x126ffa(0x18a)](_0x5511a8)),this[_0x126ffa(0x533)]();}['_registerRenderDependencies'](){const _0x326a3f=_0x945337;this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)]['registerRenderModule'](a[_0x326a3f(0x3b1)]['UNIVER_DOC'],[xe])),this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)][_0x326a3f(0x297)](a[_0x326a3f(0x3b1)][_0x326a3f(0x53c)],[ke]));}['_initModules'](){const _0x1472d3=_0x945337;var _0xa8d765,_0x5b4b0f;this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](P[_0x1472d3(0x22e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x1472d3(0x336)]({'maxParallel':0x6})}),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](Ce),(_0xa8d765=this[_0x1472d3(0x4fe)])!=null&&_0xa8d765[_0x1472d3(0x34a)]||this['_injector'][_0x1472d3(0x3eb)](exports['LocalCacheService'])[_0x1472d3(0x19e)](),(_0x5b4b0f=this['_config'])!=null&&_0x5b4b0f[_0x1472d3(0x28b)]&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](pe),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x4ee)]),this[_0x1472d3(0x3dd)][_0x1472d3(0x384)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x1ce)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x945337(0x24c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x945337(0x292)](_[_0x945337(0x2a8)]),ve(0x1,a[_0x945337(0x48c)]),ve(0x2,R[_0x945337(0x2c4)]),ve(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),ve(0x4,a[_0x945337(0x1f7)])],exports[_0x945337(0x300)]),exports[_0x945337(0x547)]=Mt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=gt,exports[_0x945337(0x3cf)]=ut,exports[_0x945337(0x2c0)]=y,exports[_0x945337(0x3f1)]=wt,exports[_0x945337(0x4f7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x945337(0x1c8)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x945337(0x527)]=ze,exports[_0x945337(0x451)]=ft,exports['LOGIN_URL_KEY']=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x945337(0x3df)]=Yt,exports[_0x945337(0x54e)]=ht,exports[_0x945337(0x438)]=_t,exports['SessionStatus']=$,exports['SheetCollabCursorShape']=Ot,exports[_0x945337(0x3ab)]=Nt,exports[_0x945337(0x368)]=Ct,exports[_0x945337(0x39b)]=Et;
1
+ 'use strict';const _0x3b22f=_0x2c53;(function(_0x542c55,_0x381953){const _0x2f8498=_0x2c53,_0x21ef96=_0x542c55();while(!![]){try{const _0x4a1877=parseInt(_0x2f8498(0x5bb))/0x1+-parseInt(_0x2f8498(0x493))/0x2+-parseInt(_0x2f8498(0x24d))/0x3+parseInt(_0x2f8498(0x500))/0x4+parseInt(_0x2f8498(0x454))/0x5+parseInt(_0x2f8498(0x485))/0x6*(-parseInt(_0x2f8498(0x393))/0x7)+parseInt(_0x2f8498(0x2c7))/0x8*(parseInt(_0x2f8498(0x596))/0x9);if(_0x4a1877===_0x381953)break;else _0x21ef96['push'](_0x21ef96['shift']());}catch(_0x3655a1){_0x21ef96['push'](_0x21ef96['shift']());}}}(_0x1d05,0xb9f87));var kt=Object[_0x3b22f(0x1ff)],Bt=(_0x24d878,_0x5b5829,_0x24ba3c)=>_0x5b5829 in _0x24d878?kt(_0x24d878,_0x5b5829,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ba3c}):_0x24d878[_0x5b5829]=_0x24ba3c,d=(_0x5dbfcf,_0x48ff5d,_0x4320a9)=>Bt(_0x5dbfcf,typeof _0x48ff5d!='symbol'?_0x48ff5d+'':_0x48ff5d,_0x4320a9);Object[_0x3b22f(0x1ff)](exports,Symbol[_0x3b22f(0x545)],{'value':_0x3b22f(0x2a7)});const a=require(_0x3b22f(0x3f8)),v=require(_0x3b22f(0x25b)),E=require(_0x3b22f(0x4af)),X=require(_0x3b22f(0x1ec)),N=require('@univerjs/ui'),P=require(_0x3b22f(0x384)),_=require(_0x3b22f(0x23a)),Vt=require(_0x3b22f(0x49c)),V=require(_0x3b22f(0x1f9)),w=require(_0x3b22f(0x591)),C=require(_0x3b22f(0x473)),R=require(_0x3b22f(0x3cf)),L=require(_0x3b22f(0x3ed)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require(_0x3b22f(0x4e5)),Wt=require(_0x3b22f(0x2e0)),Ft=require(_0x3b22f(0x251)),ht=_0x3b22f(0x227),Gt=_0x3b22f(0x452),_t=_0x3b22f(0x367),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x3b22f(0x2da),Xt=_0x3b22f(0x32f),dt=_0x3b22f(0x488),qt=0x7530,Ve=_0x3b22f(0x4b7),St=0x4e20,zt=0x4e20,vt=_0x3b22f(0x56a),Jt=0x3,ft=_0x3b22f(0x296),Zt=0x3e8,gt=_0x3b22f(0x4a8),Qt=_0x3b22f(0x39b),mt='LOGIN_URL_KEY',es=_0x3b22f(0x365);var It=(_0x3b0409=>(_0x3b0409[_0x3b0409[_0x3b22f(0x517)]=0x0]='UNDEFINED',_0x3b0409[_0x3b0409['OK']=0x1]='OK',_0x3b0409[_0x3b0409[_0x3b22f(0x512)]=0x2]=_0x3b22f(0x512),_0x3b0409[_0x3b0409[_0x3b22f(0x3a7)]=0x3]='PERMISSION_DENIED',_0x3b0409[_0x3b0409[_0x3b22f(0x402)]=0x4]=_0x3b22f(0x402),_0x3b0409[_0x3b0409['UNAUTHENTICATED']=0x5]=_0x3b22f(0x380),_0x3b0409[_0x3b0409[_0x3b22f(0x4e3)]=0x6]=_0x3b22f(0x4e3),_0x3b0409[_0x3b0409[_0x3b22f(0x201)]=0x7]=_0x3b22f(0x201),_0x3b0409[_0x3b0409[_0x3b22f(0x1fe)]=0x8]='TOO_MANY_REQUESTS',_0x3b0409[_0x3b0409[_0x3b22f(0x204)]=0x9]=_0x3b22f(0x204),_0x3b0409[_0x3b0409[_0x3b22f(0x275)]=0x1389]=_0x3b22f(0x275),_0x3b0409[_0x3b0409['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b22f(0x232),_0x3b0409[_0x3b0409[_0x3b22f(0x433)]=0x1772]=_0x3b22f(0x433),_0x3b0409[_0x3b0409['APPLY_REJECT']=0x1b59]=_0x3b22f(0x2eb),_0x3b0409[_0x3b0409[_0x3b22f(0x470)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3b0409[_0x3b0409[_0x3b22f(0x4f9)]=0x1b5b]=_0x3b22f(0x4f9),_0x3b0409[_0x3b0409['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b22f(0x430),_0x3b0409[_0x3b0409[_0x3b22f(0x56f)]=0x1f41]=_0x3b22f(0x56f),_0x3b0409[_0x3b0409['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b22f(0x44d),_0x3b0409[_0x3b0409[_0x3b22f(0x587)]=0x232a]=_0x3b22f(0x587),_0x3b0409[_0x3b0409[_0x3b22f(0x2e4)]=0x232b]=_0x3b22f(0x2e4),_0x3b0409[_0x3b0409[_0x3b22f(0x2ae)]=0x232c]=_0x3b22f(0x2ae),_0x3b0409[_0x3b0409[_0x3b22f(0x5cc)]=0x232d]=_0x3b22f(0x5cc),_0x3b0409[_0x3b0409[_0x3b22f(0x54d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3b0409[_0x3b0409['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3b0409[_0x3b0409[_0x3b22f(0x3c7)]=0x2713]=_0x3b22f(0x3c7),_0x3b0409[_0x3b0409[_0x3b22f(0x3a3)]=0x2714]=_0x3b22f(0x3a3),_0x3b0409[_0x3b0409['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x3b0409))(It||{}),j=(_0x5461ba=>(_0x5461ba[_0x5461ba[_0x3b22f(0x5c9)]=0x0]='UNIVER_UNKNOWN',_0x5461ba[_0x5461ba['UNIVER_DOC']=0x1]=_0x3b22f(0x332),_0x5461ba[_0x5461ba[_0x3b22f(0x3c0)]=0x2]=_0x3b22f(0x3c0),_0x5461ba[_0x5461ba[_0x3b22f(0x575)]=0x3]='UNIVER_SLIDE',_0x5461ba[_0x5461ba['UNIVER_PROJECT']=0x4]=_0x3b22f(0x5cf),_0x5461ba[_0x5461ba[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0x5461ba))(j||{}),b=(_0x25bb8e=>(_0x25bb8e[_0x25bb8e[_0x3b22f(0x362)]=0x0]=_0x3b22f(0x362),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2bd)]=0x1]=_0x3b22f(0x2bd),_0x25bb8e[_0x25bb8e['JOIN']=0x2]=_0x3b22f(0x23b),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2e6)]=0x3]=_0x3b22f(0x2e6),_0x25bb8e[_0x25bb8e['INGEST']=0x4]=_0x3b22f(0x4ef),_0x25bb8e[_0x25bb8e[_0x3b22f(0x233)]=0x5]='HEARTBEAT',_0x25bb8e[_0x25bb8e['RECV']=0x6]='RECV',_0x25bb8e[_0x25bb8e[_0x3b22f(0x23f)]=-0x1]=_0x3b22f(0x23f),_0x25bb8e))(b||{}),We=(_0xa48f7c=>(_0xa48f7c[_0xa48f7c['UNKNOWN_CODE']=0x0]=_0x3b22f(0x2a8),_0xa48f7c[_0xa48f7c['OK']=0x1]='OK',_0xa48f7c[_0xa48f7c[_0x3b22f(0x438)]=0x2]=_0x3b22f(0x438),_0xa48f7c[_0xa48f7c[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0xa48f7c))(We||{}),pt=(_0x2795c6=>(_0x2795c6[_0x2795c6['Undefined']=0x0]=_0x3b22f(0x317),_0x2795c6[_0x2795c6[_0x3b22f(0x4bf)]=0x1]=_0x3b22f(0x4bf),_0x2795c6[_0x2795c6['HttpExport']=0x2]='HttpExport',_0x2795c6[_0x2795c6[_0x3b22f(0x4bd)]=0x3]=_0x3b22f(0x4bd),_0x2795c6[_0x2795c6[_0x3b22f(0x4ba)]=0x4]=_0x3b22f(0x4ba),_0x2795c6[_0x2795c6['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x2795c6))(pt||{});const A='collaboration-client.config',ts={};function Ct(_0x3bf457){const _0x39daaf=_0x3b22f;var _0x2a2901,_0x1219a8,_0x123bab,_0x735a22;const _0x51b696=_0x3bf457[_0x39daaf(0x45b)],_0xe9cb32=JSON[_0x39daaf(0x4f1)](_0x51b696);switch(_0xe9cb32[_0x39daaf(0x4d4)]){case b[_0x39daaf(0x233)]:case b[_0x39daaf(0x2bd)]:{const _0x3ce738=_0xe9cb32[_0x39daaf(0x37e)];return{..._0xe9cb32,'data':_0x3ce738,'cmd':_0xe9cb32['cmd']};}case b[_0x39daaf(0x23b)]:{const _0x155ec7=_0xe9cb32[_0x39daaf(0x387)];return{..._0xe9cb32,'data':_0x155ec7,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};}case b[_0x39daaf(0x2f0)]:{const _0x5ac54d=_0xe9cb32[_0x39daaf(0x2d7)];switch(_0x5ac54d[_0x39daaf(0x3cc)]){case _[_0x39daaf(0x44c)][_0x39daaf(0x4a2)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x2a2901=_0x5ac54d[_0x39daaf(0x5aa)])==null?void 0x0:_0x2a2901['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x428)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x1219a8=_0x5ac54d['csAckEvent'])==null?void 0x0:_0x1219a8['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['NEW_CHANGESETS']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x123bab=_0x5ac54d[_0x39daaf(0x27e)])==null?void 0x0:_0x123bab['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x36e)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x735a22=_0x5ac54d[_0x39daaf(0x408)])==null?void 0x0:_0x735a22['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b6)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x306)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['USERS_ENTER']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x436)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x51c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x24e)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b7)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5e6)]},'cmd':_0xe9cb32['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x39daaf(0x44c)]['LIVESHARE_OPERATION']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x2e9)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x47b)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['liveShareNewHost']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['MSG_FOR_ERROR']:return{..._0xe9cb32,'data':_0x5ac54d,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x431)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5b0)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['UPDATE_PERMISSION_OBJ']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['updatePermissionObjEvent']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x50c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['shouldCloseConn']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};default:return _0xe9cb32;}}default:return _0xe9cb32;}}function Et(_0x427781){const _0x4755b4=_0x3b22f;switch(_0x427781[_0x4755b4(0x4d4)]){case b['HEARTBEAT']:case b[_0x4755b4(0x2bd)]:return JSON['stringify']({'cmd':_0x427781['cmd'],'routeKey':_0x427781[_0x4755b4(0x32a)]});case b[_0x4755b4(0x4ef)]:{let _0x4f6ece;switch(_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x3cc)]){case _['CollaborationEvent'][_0x4755b4(0x5b6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b6)],'updateCursorEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x51c)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x51c)],'leaveEvent':_0x427781[_0x4755b4(0x45b)]['data']};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x3a6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['USERS_ENTER'],'joinEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x5b7)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b7)],'liveShareNewHost':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)]['LIVESHARE_OPERATION']:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x427781['data']['data']};break;}case _['CollaborationEvent'][_0x4755b4(0x47b)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x47b)],'liveShareTerminate':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x432)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x432)],'liveShareRequestHost':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x5db)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5db)]};break;}default:_0x4f6ece={'eventID':_0x427781[_0x4755b4(0x45b)]['eventID']};}return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'collaMsg':_0x4f6ece});}case b[_0x4755b4(0x23b)]:return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'joinReq':_0x427781[_0x4755b4(0x45b)]});case b[_0x4755b4(0x2e6)]:return JSON['stringify']({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781[_0x4755b4(0x32a)],'leaveReq':_0x427781[_0x4755b4(0x45b)]});default:throw new Error(_0x4755b4(0x4c7));}}var ss=Object[_0x3b22f(0x1ff)],is=Object[_0x3b22f(0x246)],ns=(_0x11a2ed,_0x2ae0c8,_0x596a5a,_0x8ded37)=>{const _0x506c3f=_0x3b22f;for(var _0x38a5c1=_0x8ded37>0x1?void 0x0:_0x8ded37?is(_0x2ae0c8,_0x596a5a):_0x2ae0c8,_0xd6724f=_0x11a2ed[_0x506c3f(0x291)]-0x1,_0x3aa1c6;_0xd6724f>=0x0;_0xd6724f--)(_0x3aa1c6=_0x11a2ed[_0xd6724f])&&(_0x38a5c1=(_0x8ded37?_0x3aa1c6(_0x2ae0c8,_0x596a5a,_0x38a5c1):_0x3aa1c6(_0x38a5c1))||_0x38a5c1);return _0x8ded37&&_0x38a5c1&&ss(_0x2ae0c8,_0x596a5a,_0x38a5c1),_0x38a5c1;},oe=(_0x3c0691,_0x46f825)=>(_0x12f522,_0x481c88)=>_0x46f825(_0x12f522,_0x481c88,_0x3c0691);const Fe=a[_0x3b22f(0x3cd)](_0x3b22f(0x2f8));function rs(_0x2dfe66,_0x1f63d9,_0x5a012e){const _0x2b4446=_0x3b22f;return _0x2dfe66+'/'+_0x1f63d9+_0x2b4446(0x37a)+_0x5a012e+_0x2b4446(0x33e);}exports[_0x3b22f(0x272)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x4e339c,_0x501391,_0x58a1d6,_0x39fa80,_0x1f65d6){const _0x3dbd5f=_0x3b22f;super(),this[_0x3dbd5f(0x220)]=_0x4e339c,this[_0x3dbd5f(0x2b3)]=_0x501391,this[_0x3dbd5f(0x266)]=_0x58a1d6,this[_0x3dbd5f(0x445)]=_0x39fa80,this[_0x3dbd5f(0x214)]=_0x1f65d6;}[_0x3b22f(0x3a1)](_0x4785a9){const _0xf5e52e=_0x3b22f,_0x3d7734=this[_0xf5e52e(0x2b3)][_0xf5e52e(0x3a1)](_0x4785a9);if(!_0x3d7734)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3c1e55=new a['DisposableCollection'](),_0x1318e1=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x324)]['subscribe'](_0x5ed026=>_0x1318e1[_0xf5e52e(0x52d)](_0x5ed026))),_0x3c1e55['add'](a['toDisposable'](()=>_0x1318e1[_0xf5e52e(0x2ec)]()));const _0x5f2ca0=new v['Subject']();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x505)][_0xf5e52e(0x42c)](_0x84bbd0=>_0x5f2ca0[_0xf5e52e(0x52d)](_0x84bbd0))),_0x3c1e55['add'](a['toDisposable'](()=>_0x5f2ca0[_0xf5e52e(0x2ec)]()));const _0x1b6752=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x1fa)]['subscribe'](_0x1b6071=>{const _0x1049d6=_0xf5e52e,_0x429724=Ct(_0x1b6071);_0x1b6752[_0x1049d6(0x52d)](_0x429724);})),_0x3c1e55[_0xf5e52e(0x405)](a['toDisposable'](()=>_0x1b6752[_0xf5e52e(0x2ec)]()));let _0x22e797;const _0x5874d3=()=>{const _0x11f8d=_0xf5e52e;_0x5f2ca0[_0x11f8d(0x52d)](new Event(_0x11f8d(0x5c4))),_0x1318e1['next'](new CloseEvent(_0x11f8d(0x5c4))),_0x22e797[_0x11f8d(0x3ec)]();};return _0x22e797={'memberID':'','close$':_0x1318e1[_0xf5e52e(0x56e)](),'error$':_0x5f2ca0[_0xf5e52e(0x56e)](),'open$':_0x3d7734[_0xf5e52e(0x486)],'message$':_0x1b6752[_0xf5e52e(0x56e)](),'send':_0x4a73e2=>{const _0x8cd0f7=_0xf5e52e;if(_0x4a73e2[_0x8cd0f7(0x4d4)]===b[_0x8cd0f7(0x4ef)]){if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_[_0x8cd0f7(0x44c)][_0x8cd0f7(0x5ac)]){this['_submitChangeset'](_0x22e797,_0x4a73e2[_0x8cd0f7(0x45b)])['catch'](_0x1b171f=>{const _0x5e942e=_0x8cd0f7;this[_0x5e942e(0x445)][_0x5e942e(0x49d)](_0x1b171f),_0x5874d3();});return;}if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_['CollaborationEvent'][_0x8cd0f7(0x2c1)]){const _0x5be338=_0x4a73e2[_0x8cd0f7(0x45b)];this[_0x8cd0f7(0x269)](_0x5be338)[_0x8cd0f7(0x395)](_0x3aa016=>{const _0x235ac=_0x8cd0f7;_0x1b6752[_0x235ac(0x52d)]({'cmd':b[_0x235ac(0x2f0)],'code':We['OK'],'routeKey':_0x5be338[_0x235ac(0x45b)][_0x235ac(0x40e)],'routeType':'','data':{'eventID':_[_0x235ac(0x44c)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3aa016}}});})[_0x8cd0f7(0x3c9)](_0xa2bc4c=>{const _0x4ccfb2=_0x8cd0f7;this[_0x4ccfb2(0x445)]['error'](_0xa2bc4c),_0x5874d3();});return;}}_0x3d7734[_0x8cd0f7(0x3c5)](Et(_0x4a73e2));},'close':()=>{const _0x23c50c=_0xf5e52e;_0x3d7734[_0x23c50c(0x3ec)](),_0x3c1e55[_0x23c50c(0x4f2)]();}},_0x22e797;}async[_0x3b22f(0x43c)](_0x512d74,_0x543f42){const _0x106995=_0x3b22f;var _0x8b63e3,_0x21ab0e;const {unitType:_0x359b89,unitID:_0x2b6504,changeset:_0x2dc7e3}=_0x543f42['data'],_0x32b0a7={'unitID':_0x2b6504,'memberID':_0x512d74[_0x106995(0x598)],'type':_0x359b89,'changeset':_[_0x106995(0x5e3)](_0x2dc7e3)},_0x503400=this[_0x106995(0x266)][_0x106995(0x504)](gt),_0x2bdac7=this['_configService'][_0x106995(0x504)](A),_0x20428e=rs((_0x21ab0e=(_0x8b63e3=_0x2bdac7==null?void 0x0:_0x2bdac7[_0x106995(0x4e4)])!=null?_0x8b63e3:_0x503400)!=null?_0x21ab0e:Qt,_0x359b89,_0x2b6504);try{await this['_http'][_0x106995(0x221)](_0x20428e,{'body':_0x32b0a7});}catch(_0x16310a){throw this[_0x106995(0x445)]['error'](_0x106995(0x3e7),_0x106995(0x5b5)),_0x16310a;}}async[_0x3b22f(0x269)](_0xf9977d){const _0x18686b=_0x3b22f,{unitID:_0x268aaa,from:_0x5e0560,to:_0x5b50ee,unitType:_0x5c3842}=_0xf9977d[_0x18686b(0x45b)];return(await this[_0x18686b(0x214)][_0x18686b(0x5c2)]({'metadata':void 0x0},{'unitID':_0x268aaa,'type':_0x5c3842,'from':_0x5e0560,'to':_0x5b50ee}))[_0x18686b(0x528)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),oe(0x1,a[_0x3b22f(0x492)](P['WebSocketService'])),oe(0x2,a[_0x3b22f(0x5ad)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3b22f(0x2ce)])],exports[_0x3b22f(0x272)]);const os=_0x3b22f(0x50d);function as(_0x50bc8c){const _0x16272e=_0x3b22f;return JSON[_0x16272e(0x56d)](_0x50bc8c)['length'];}class Ge{constructor(){const _0x17da58=_0x3b22f;d(this,'_commentUpdate$',new v[(_0x17da58(0x25f))]()),d(this,_0x17da58(0x5df),this['_commentUpdate$'][_0x17da58(0x56e)]());}[_0x3b22f(0x3f6)](_0x5ed6b8){const _0x4fc529=_0x3b22f;this[_0x4fc529(0x1ee)][_0x4fc529(0x52d)](_0x5ed6b8);}}var cs=Object[_0x3b22f(0x1ff)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x200362,_0x309f93,_0x59004b,_0x39614b)=>{const _0x229d40=_0x3b22f;for(var _0x2bd977=_0x39614b>0x1?void 0x0:_0x39614b?ls(_0x309f93,_0x59004b):_0x309f93,_0x3e7add=_0x200362[_0x229d40(0x291)]-0x1,_0x30975f;_0x3e7add>=0x0;_0x3e7add--)(_0x30975f=_0x200362[_0x3e7add])&&(_0x2bd977=(_0x39614b?_0x30975f(_0x309f93,_0x59004b,_0x2bd977):_0x30975f(_0x2bd977))||_0x2bd977);return _0x39614b&&_0x2bd977&&cs(_0x309f93,_0x59004b,_0x2bd977),_0x2bd977;},Ze=(_0x428da7,_0x385df1)=>(_0x1f8fc3,_0x257734)=>_0x385df1(_0x1f8fc3,_0x257734,_0x428da7);let q=class extends a[_0x3b22f(0x4b0)]{constructor(_0x536e12,_0x45edb2){const _0x36155f=_0x3b22f;super(),d(this,_0x36155f(0x469),new Map()),(this[_0x36155f(0x340)]=_0x536e12,this[_0x36155f(0x437)]=_0x45edb2,this[_0x36155f(0x283)](a[_0x36155f(0x526)](v[_0x36155f(0x2c4)](this['_univerInstanceService'][_0x36155f(0x24f)](a[_0x36155f(0x38e)]['UNIVER_SHEET'])['pipe'](E['map'](_0x397def=>_0x397def[_0x36155f(0x52b)]())),this[_0x36155f(0x340)][_0x36155f(0x24f)](a[_0x36155f(0x38e)][_0x36155f(0x332)])[_0x36155f(0x3de)](E[_0x36155f(0x57b)](_0x5a6a04=>_0x5a6a04['getUnitId']())),this[_0x36155f(0x340)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SLIDE'])[_0x36155f(0x3de)](E['map'](_0x1cc48d=>_0x1cc48d[_0x36155f(0x52b)]())))[_0x36155f(0x42c)](_0x3fb67c=>this[_0x36155f(0x577)](_0x3fb67c)))));}[_0x3b22f(0x474)](_0x2de3c9){const _0x3ad99d=_0x3b22f;this[_0x3ad99d(0x437)]['setCurrentUser'](_0x2de3c9);}['getCurrentUser'](){const _0x361e07=_0x3b22f;return this[_0x361e07(0x437)]['getCurrentUser']();}[_0x3b22f(0x349)](_0x4719b1,_0x4a00c7){const _0x51ef9b=_0x3b22f;let _0xee3cd5=this['_roomMembers'][_0x51ef9b(0x34d)](_0x4719b1);_0xee3cd5||(_0xee3cd5=new _s(),this[_0x51ef9b(0x469)]['set'](_0x4719b1,_0xee3cd5)),_0xee3cd5[_0x51ef9b(0x349)](_0x4a00c7);}['removeMember'](_0xb0541c,_0x2644ae){const _0x1c69fd=_0x3b22f,_0x641818=this[_0x1c69fd(0x469)]['get'](_0xb0541c);_0x641818&&_0x641818[_0x1c69fd(0x345)](_0x2644ae);}[_0x3b22f(0x3a5)](_0x26ae54){const _0x5ad93b=_0x3b22f;return this[_0x5ad93b(0x469)][_0x5ad93b(0x34d)](_0x26ae54);}[_0x3b22f(0x303)](_0x4b2bd2,_0x31d0e2){const _0x58e84f=_0x3b22f,_0xd00d03=this[_0x58e84f(0x469)]['get'](_0x4b2bd2);if(_0xd00d03)return _0xd00d03[_0x58e84f(0x303)](_0x31d0e2);}[_0x3b22f(0x577)](_0x375d1c){const _0x55212c=_0x3b22f,_0x3ee3ff=this[_0x55212c(0x469)][_0x55212c(0x34d)](_0x375d1c);_0x3ee3ff&&(_0x3ee3ff[_0x55212c(0x4f2)](),this[_0x55212c(0x469)][_0x55212c(0x2cc)](_0x375d1c));}[_0x3b22f(0x4f2)](){const _0x13745a=_0x3b22f;this[_0x13745a(0x469)][_0x13745a(0x339)](_0x3821cb=>_0x3821cb[_0x13745a(0x4f2)]()),this[_0x13745a(0x469)][_0x13745a(0x249)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x564)]))],q);class _s extends a[_0x3b22f(0x4b0)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x3b22f(0x4f2)](){const _0x468a62=_0x3b22f;this[_0x468a62(0x311)][_0x468a62(0x249)]();}[_0x3b22f(0x349)](_0x13a000){const _0x502bc5=_0x3b22f;this[_0x502bc5(0x311)][_0x502bc5(0x305)](_0x13a000[_0x502bc5(0x598)],_0x13a000);}['removeMember'](_0x3fdb0b){const _0x5a9273=_0x3b22f;this[_0x5a9273(0x311)][_0x5a9273(0x2cc)](_0x3fdb0b);}['getMember'](_0x59394b){const _0x21926f=_0x3b22f;return this[_0x21926f(0x311)][_0x21926f(0x34d)](_0x59394b);}}var us=Object['defineProperty'],ds=Object[_0x3b22f(0x246)],Ss=(_0x405f15,_0x43379c,_0x110ca3,_0x4aee20)=>{const _0xc53a3e=_0x3b22f;for(var _0x2cd119=_0x4aee20>0x1?void 0x0:_0x4aee20?ds(_0x43379c,_0x110ca3):_0x43379c,_0x2cbca2=_0x405f15[_0xc53a3e(0x291)]-0x1,_0x26e6c0;_0x2cbca2>=0x0;_0x2cbca2--)(_0x26e6c0=_0x405f15[_0x2cbca2])&&(_0x2cd119=(_0x4aee20?_0x26e6c0(_0x43379c,_0x110ca3,_0x2cd119):_0x26e6c0(_0x2cd119))||_0x2cd119);return _0x4aee20&&_0x2cd119&&us(_0x43379c,_0x110ca3,_0x2cd119),_0x2cd119;},B=(_0x3034cf,_0x2dd923)=>(_0xab550a,_0x2bb3d4)=>_0x2dd923(_0xab550a,_0x2bb3d4,_0x3034cf),$=(_0x56472d=>(_0x56472d[_0x56472d[_0x3b22f(0x2d3)]=0x0]=_0x3b22f(0x2d3),_0x56472d[_0x56472d['JOINING']=0x1]=_0x3b22f(0x4f5),_0x56472d[_0x56472d[_0x3b22f(0x3ea)]=0x2]='OFFLINE',_0x56472d[_0x56472d[_0x3b22f(0x22f)]=0x3]=_0x3b22f(0x22f),_0x56472d))($||{});exports['CollaborationSession']=class extends a[_0x3b22f(0x398)]{constructor(_0x446a69,_0x1c3b81,_0x539b68,_0x20d871,_0x282e6f,_0x3fff74,_0x4cb2ed,_0xb03532,_0x332836,_0x5aa327){const _0x3f0e2a=_0x3b22f;super(),d(this,'_sessionStatus$',new v[(_0x3f0e2a(0x502))](0x0)),d(this,'sessionStatus$',this[_0x3f0e2a(0x400)][_0x3f0e2a(0x56e)]()),d(this,_0x3f0e2a(0x4ca),new v[(_0x3f0e2a(0x25f))]()),d(this,_0x3f0e2a(0x3b5),this[_0x3f0e2a(0x4ca)][_0x3f0e2a(0x56e)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,_0x3f0e2a(0x228)),d(this,_0x3f0e2a(0x47c),!0x1),d(this,'_telemetryInfo',null),(this['_unitID']=_0x446a69,this[_0x3f0e2a(0x445)]=_0x539b68,this[_0x3f0e2a(0x4e0)]=_0x20d871,this['_messageService']=_0x282e6f,this[_0x3f0e2a(0x266)]=_0x3fff74,this['_localeService']=_0x4cb2ed,this['_memberService']=_0xb03532,this[_0x3f0e2a(0x546)]=_0x332836,this[_0x3f0e2a(0x59a)]=_0x5aa327,this['_shouldReportTelemetry']=!!this[_0x3f0e2a(0x59a)],_0x1c3b81['pipe'](v['takeUntil'](this[_0x3f0e2a(0x2e1)]))[_0x3f0e2a(0x42c)](_0x356333=>{const _0x268640=_0x3f0e2a;var _0x3164d0;typeof _0x356333>'u'||(this[_0x268640(0x218)]=_0x356333,_0x356333?(this[_0x268640(0x59b)](_0x356333),this[_0x268640(0x3fa)]=_0x356333[_0x268640(0x1fa)][_0x268640(0x42c)](_0x2fd5fc=>{const _0x5db11e=_0x268640;_0x2fd5fc['routeKey']===this[_0x5db11e(0x2f9)]&&this['_onCombEvent'](_0x2fd5fc);})):(this[_0x268640(0x46f)](),this[_0x268640(0x400)][_0x268640(0x52d)](0x2),(_0x3164d0=this[_0x268640(0x3fa)])==null||_0x3164d0[_0x268640(0x3d4)](),this[_0x268640(0x3fa)]=null));}),this[_0x3f0e2a(0x283)](this[_0x3f0e2a(0x4e0)][_0x3f0e2a(0x4c4)](()=>{const _0x2c143a=_0x3f0e2a;var _0x27d0a7;(_0x27d0a7=this[_0x2c143a(0x218)])==null||_0x27d0a7['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2c143a(0x2f9)]}});})));}get[_0x3b22f(0x55a)](){const _0x4f2907=_0x3b22f;return this['_sessionStatus$'][_0x4f2907(0x2a9)]();}[_0x3b22f(0x597)](){const _0x32b3da=_0x3b22f;var _0x731e24,_0x22ffe2;return(_0x22ffe2=(_0x731e24=this[_0x32b3da(0x218)])==null?void 0x0:_0x731e24[_0x32b3da(0x598)])!=null?_0x22ffe2:null;}[_0x3b22f(0x4f2)](){const _0x548d5d=_0x3b22f;super[_0x548d5d(0x4f2)](),this[_0x548d5d(0x2e1)]['next'](),this['dispose$']['complete']();}[_0x3b22f(0x3ec)](){const _0xe2321c=_0x3b22f;var _0x5b8650,_0x12a237;this[_0xe2321c(0x46f)](),(_0x5b8650=this[_0xe2321c(0x218)])==null||_0x5b8650['send']({'cmd':b[_0xe2321c(0x2e6)],'data':{'roomID':this[_0xe2321c(0x2f9)]}}),(_0x12a237=this['_socket'])==null||_0x12a237[_0xe2321c(0x3ec)](),this['_event$'][_0xe2321c(0x2ec)](),this[_0xe2321c(0x400)][_0xe2321c(0x2ec)](),this[_0xe2321c(0x4f2)]();}[_0x3b22f(0x276)](_0x1490c9){const _0x48e5b2=_0x3b22f;_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x23b)]?this[_0x48e5b2(0x53c)](_0x1490c9):_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x2f0)]&&this[_0x48e5b2(0x2cf)](_0x1490c9);}[_0x3b22f(0x59b)](_0x19d757){const _0x3b6434=_0x3b22f;this['_sessionStatus$'][_0x3b6434(0x52d)](0x1),_0x19d757[_0x3b6434(0x3c5)]({'cmd':b[_0x3b6434(0x23b)],'routeKey':this[_0x3b6434(0x2f9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3b6434(0x2f9)]}]}});}['_onJoinRoomEvent'](_0x53b1c2){const _0x280934=_0x3b22f;var _0x2b1386;if(_0x53b1c2['code']===We[_0x280934(0x438)]){this['_messageService']['show']({'type':X['MessageType'][_0x280934(0x3b7)],'content':this['_localeService']['t']('session.room-full')}),this[_0x280934(0x400)][_0x280934(0x52d)](0x2);return;}this[_0x280934(0x400)]['next'](0x3);const _0x256cc8=(_0x2b1386=_0x53b1c2[_0x280934(0x45b)][_0x280934(0x411)][this[_0x280934(0x2f9)]])==null?void 0x0:_0x2b1386[_0x280934(0x212)];_0x256cc8&&_0x256cc8[_0x280934(0x339)](_0x4e7841=>this[_0x280934(0x4ec)][_0x280934(0x349)](this['_unitID'],_0x4e7841));}['_onRecvEvent'](_0x51e2a2){const _0x1d951b=_0x3b22f;try{const _0x1b621c=_0x51e2a2[_0x1d951b(0x45b)];switch(_0x1b621c[_0x1d951b(0x3cc)]){case _[_0x1d951b(0x44c)][_0x1d951b(0x3a6)]:this['_onUserJoin'](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x51c)]:this[_0x1d951b(0x423)](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _[_0x1d951b(0x44c)][_0x1d951b(0x428)]:this[_0x1d951b(0x3b0)](),this[_0x1d951b(0x516)](),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x290)]:this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x1d951b(0x268)+JSON[_0x1d951b(0x56d)](_0x1b621c)),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x431)]:this['_commentService'][_0x1d951b(0x3f6)](_0x1b621c[_0x1d951b(0x45b)]),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;default:this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);}}catch(_0x4b1e27){this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x4b1e27,_0x51e2a2);}}[_0x3b22f(0x368)](_0x14e18c){const _0x32c3e1=_0x3b22f;this[_0x32c3e1(0x4ec)][_0x32c3e1(0x349)](this[_0x32c3e1(0x2f9)],_0x14e18c['data']);}['_onUserLeave'](_0x2d51a4){const _0x5ae512=_0x3b22f;this['_memberService']['removeMember'](this[_0x5ae512(0x2f9)],_0x2d51a4[_0x5ae512(0x45b)][_0x5ae512(0x598)]);}async[_0x3b22f(0x3c5)](_0x8d37e3,_0x3352dd){const _0xb92a1d=_0x3b22f;if(this[_0xb92a1d(0x55a)]!==0x3||!this[_0xb92a1d(0x218)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x8d37e3[_0xb92a1d(0x3cc)]===_[_0xb92a1d(0x44c)]['SUBMIT_CHANGESET']&&(this[_0xb92a1d(0x538)](),this['_startTelemetryCollaborationNewChangeset'](_0x8d37e3)),this['_socket'][_0xb92a1d(0x3c5)]({'cmd':b[_0xb92a1d(0x4ef)],'routeKey':_0x3352dd,'routeType':'','data':_0x8d37e3});}catch(_0x2b1335){this[_0xb92a1d(0x445)][_0xb92a1d(0x49d)](_0x2b1335);}}[_0x3b22f(0x538)](){const _0xe73dcd=_0x3b22f;var _0x48934e;this['_collaborationTimeoutTimer']=window[_0xe73dcd(0x576)](()=>{const _0x305a7b=_0xe73dcd;this[_0x305a7b(0x228)]=null,this[_0x305a7b(0x31d)][_0x305a7b(0x224)]({'type':X['MessageType'][_0x305a7b(0x460)],'content':this[_0x305a7b(0x316)]['t']('session.collaboration-timeout')});},(_0x48934e=this['_configService'][_0xe73dcd(0x504)](Ve))!=null?_0x48934e:St);}[_0x3b22f(0x516)](){const _0x5dc8af=_0x3b22f;this[_0x5dc8af(0x228)]&&(clearTimeout(this[_0x5dc8af(0x228)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x192c22){const _0x4dfd5f=_0x3b22f;if(!this[_0x4dfd5f(0x47c)])return;const {data:_0x471c3c}=_0x192c22,{unitID:_0x1e1f74,changeset:_0x12f911}=_0x471c3c,{mutations:_0x56e6ab,type:_0x1a1e96}=_0x12f911;this[_0x4dfd5f(0x3f3)]={'unitId':_0x1e1f74,'type':_0x1a1e96,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x56e6ab)};}[_0x3b22f(0x3b0)](){const _0x147156=_0x3b22f;if(this[_0x147156(0x47c)]){if(!this[_0x147156(0x3f3)]){this[_0x147156(0x445)][_0x147156(0x49d)]('[CollaborationSession]',_0x147156(0x3bf));return;}this['_telemetryInfo'][_0x147156(0x567)]=performance['now'](),this[_0x147156(0x3f3)]['duration']=this[_0x147156(0x3f3)][_0x147156(0x567)]-this[_0x147156(0x3f3)]['startTime'],this[_0x147156(0x59a)]['capture'](os,this['_telemetryInfo']),this[_0x147156(0x3f3)]=null;}}[_0x3b22f(0x46f)](){this['_telemetryInfo']=null;}},exports[_0x3b22f(0x572)]=Ss([B(0x2,a[_0x3b22f(0x308)]),B(0x3,N['IBeforeCloseService']),B(0x4,N[_0x3b22f(0x2e3)]),B(0x5,a['IConfigService']),B(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),B(0x7,a['Inject'](q)),B(0x8,a[_0x3b22f(0x492)](Ge)),B(0x9,a['Optional'](Vt[_0x3b22f(0x467)]))],exports['CollaborationSession']);var vs=Object['defineProperty'],fs=Object[_0x3b22f(0x246)],gs=(_0xae273c,_0x4641a3,_0x534fb6,_0x8951c6)=>{const _0xcc463e=_0x3b22f;for(var _0x9cd485=_0x8951c6>0x1?void 0x0:_0x8951c6?fs(_0x4641a3,_0x534fb6):_0x4641a3,_0x52dbbb=_0xae273c[_0xcc463e(0x291)]-0x1,_0xe3b069;_0x52dbbb>=0x0;_0x52dbbb--)(_0xe3b069=_0xae273c[_0x52dbbb])&&(_0x9cd485=(_0x8951c6?_0xe3b069(_0x4641a3,_0x534fb6,_0x9cd485):_0xe3b069(_0x9cd485))||_0x9cd485);return _0x8951c6&&_0x9cd485&&vs(_0x4641a3,_0x534fb6,_0x9cd485),_0x9cd485;},Z=(_0xf76452,_0x108d1a)=>(_0x578b46,_0x25e6de)=>_0x108d1a(_0x578b46,_0x25e6de,_0xf76452);exports[_0x3b22f(0x298)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x114d39,_0x169a7f,_0x5a4f9d,_0x19f23c,_0x32fd69,_0xf6fe67){const _0x28eac2=_0x3b22f;super(),d(this,_0x28eac2(0x50e),new v[(_0x28eac2(0x502))](void 0x0)),d(this,_0x28eac2(0x2c8),this[_0x28eac2(0x50e)]['asObservable']()),d(this,_0x28eac2(0x392),null),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x28eac2(0x502))]($[_0x28eac2(0x2d3)])),d(this,_0x28eac2(0x386),this[_0x28eac2(0x4d5)][_0x28eac2(0x56e)]()),d(this,'_socketReady',!0x1),d(this,_0x28eac2(0x440)),d(this,_0x28eac2(0x34b),0x0),d(this,_0x28eac2(0x463)),d(this,_0x28eac2(0x1fb)),(this[_0x28eac2(0x397)]=_0x114d39,this[_0x28eac2(0x316)]=_0x169a7f,this[_0x28eac2(0x31d)]=_0x5a4f9d,this[_0x28eac2(0x445)]=_0x19f23c,this[_0x28eac2(0x266)]=_0x32fd69,this['_socketService']=_0xf6fe67,this[_0x28eac2(0x370)]());}get[_0x3b22f(0x218)](){const _0x1fafcd=_0x3b22f;return this[_0x1fafcd(0x50e)][_0x1fafcd(0x2a9)]();}[_0x3b22f(0x370)](){const _0x46f807=_0x3b22f;this[_0x46f807(0x2a0)](),this[_0x46f807(0x39a)]();}[_0x3b22f(0x4f2)](){const _0x5029b8=_0x3b22f;super[_0x5029b8(0x4f2)](),this[_0x5029b8(0x2f4)][_0x5029b8(0x339)](_0x295a7d=>_0x295a7d[_0x5029b8(0x4f2)]()),this['_sessions']['clear'](),this[_0x5029b8(0x4d5)][_0x5029b8(0x2ec)]();}async['requireSession'](_0x2aeb52){const _0xa0d345=_0x3b22f;if(this[_0xa0d345(0x2f4)][_0xa0d345(0x3e5)](_0x2aeb52))return this[_0xa0d345(0x2f4)][_0xa0d345(0x34d)](_0x2aeb52);this[_0xa0d345(0x40f)]();const _0x3a1e28=this[_0xa0d345(0x397)]['createInstance'](exports[_0xa0d345(0x572)],_0x2aeb52,this['_socket$']['asObservable']());return this[_0xa0d345(0x2f4)][_0xa0d345(0x305)](_0x2aeb52,_0x3a1e28),_0x3a1e28;}[_0x3b22f(0x3c6)](_0x575174){const _0x4cbfb6=_0x3b22f;var _0x24bd41;const _0x39b85a=this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x34d)](_0x575174);_0x39b85a&&(this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x2cc)](_0x575174),_0x39b85a[_0x4cbfb6(0x3ec)]()),this['_sessions'][_0x4cbfb6(0x45a)]||(_0x24bd41=this[_0x4cbfb6(0x218)])==null||_0x24bd41[_0x4cbfb6(0x3ec)]();}[_0x3b22f(0x359)](){const _0x152675=_0x3b22f;this[_0x152675(0x34b)]=0x0,this[_0x152675(0x440)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x152675(0x440)]=null),this[_0x152675(0x39c)]();}[_0x3b22f(0x539)](){const _0xddaf46=_0x3b22f;var _0x1b1849,_0x1392bd;const _0x439601=this[_0xddaf46(0x266)][_0xddaf46(0x504)](ut),_0xa12ea0=this[_0xddaf46(0x266)]['getConfig'](A),_0x481525=(_0x1392bd=(_0x1b1849=_0xa12ea0==null?void 0x0:_0xa12ea0[_0xddaf46(0x33b)])!=null?_0x1b1849:_0x439601)!=null?_0x1392bd:Xt,_0x26ee56=this['_socketService'][_0xddaf46(0x3a1)](_0x481525);return this[_0xddaf46(0x392)]=_0x26ee56,_0x26ee56;}['_tryEnsureSocket'](){const _0x474edf=_0x3b22f;var _0x589294,_0x47f152;try{const _0x15baae=(_0x47f152=(_0x589294=this[_0x474edf(0x218)])!=null?_0x589294:this[_0x474edf(0x392)])!=null?_0x47f152:this[_0x474edf(0x539)]();if(_0x15baae){const _0x2e2c22=_0x15baae['send'];_0x15baae[_0x474edf(0x3c5)]=_0x4d839e=>(this[_0x474edf(0x285)](),_0x2e2c22['apply'](_0x15baae,[_0x4d839e])),_0x15baae[_0x474edf(0x1fa)][_0x474edf(0x42c)](_0x4ac291=>this[_0x474edf(0x5bd)](_0x15baae,_0x4ac291)),_0x15baae[_0x474edf(0x505)][_0x474edf(0x3de)](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x4441bb=>this['_logService'][_0x474edf(0x49d)](_0x474edf(0x5d0),_0x4441bb)),_0x15baae[_0x474edf(0x486)][_0x474edf(0x3de)](E['take'](0x1))[_0x474edf(0x42c)](()=>{const _0x1517ca=_0x474edf;this[_0x1517ca(0x2c6)](_0x15baae);}),_0x15baae[_0x474edf(0x324)]['pipe'](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x3bc474=>{const _0x1d0fab=_0x474edf;this[_0x1d0fab(0x445)][_0x1d0fab(0x320)](_0x1d0fab(0x557),_0x1d0fab(0x336),_0x3bc474),this[_0x1d0fab(0x5ed)]();});}}catch(_0x16f00a){this['_logService'][_0x474edf(0x49d)](_0x16f00a),this[_0x474edf(0x5ed)]();}}[_0x3b22f(0x2c6)](_0x481fbe){const _0x40b0ed=_0x3b22f;this[_0x40b0ed(0x445)][_0x40b0ed(0x320)](_0x40b0ed(0x557),_0x40b0ed(0x3b2)),_0x481fbe[_0x40b0ed(0x3c5)]({'cmd':b[_0x40b0ed(0x2bd)]}),this['_rescheduleHeartbeat']();}[_0x3b22f(0x2a0)](){const _0x5c4f2b=_0x3b22f;window[_0x5c4f2b(0x4e8)](_0x5c4f2b(0x45f),()=>this['_onOffline']());}['_onOffline'](){const _0x47a947=_0x3b22f;this[_0x47a947(0x394)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x47a947(0x52d)]($['OFFLINE']),this[_0x47a947(0x50e)][_0x47a947(0x52d)](null),this[_0x47a947(0x3cb)](),this[_0x47a947(0x34e)]();}[_0x3b22f(0x5ed)](){const _0x772c52=_0x3b22f;var _0x50d9a1;this['_onOffline'](),this[_0x772c52(0x34b)]<((_0x50d9a1=this['_configService'][_0x772c52(0x504)](vt))!=null?_0x50d9a1:Jt)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':X['MessageType'][_0x772c52(0x3b7)],'content':this[_0x772c52(0x316)]['t'](_0x772c52(0x435))}),this['_tryReconnect']()):this[_0x772c52(0x31d)][_0x772c52(0x224)]({'key':_0x772c52(0x1f8),'type':X[_0x772c52(0x5b4)][_0x772c52(0x460)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x5124fb=_0x3b22f,_0xb7b9a=()=>{const _0x153335=_0x2c53;this[_0x153335(0x218)]||this[_0x153335(0x359)]();},_0x31ea94=()=>{const _0x22b314=_0x2c53;this[_0x22b314(0x218)]||document['visibilityState']==='hidden'||this[_0x22b314(0x359)]();};window['addEventListener'](_0x5124fb(0x5d1),_0xb7b9a),document['addEventListener'](_0x5124fb(0x315),_0x31ea94);}[_0x3b22f(0x39c)](){const _0x42938c=_0x3b22f;var _0x43f0e8;const _0x2229c7=this['_retryCount'],_0x100b33=this[_0x42938c(0x266)][_0x42938c(0x504)](A),_0x1f00e4=_0x2229c7===0x0?0x0:((_0x43f0e8=_0x100b33==null?void 0x0:_0x100b33[_0x42938c(0x1f7)])!=null?_0x43f0e8:zt)*0x2**_0x2229c7;this[_0x42938c(0x440)]=window['setTimeout'](()=>{const _0x61e493=_0x42938c;clearTimeout(this[_0x61e493(0x440)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x1f00e4),this[_0x42938c(0x34b)]+=0x1;}[_0x3b22f(0x5bd)](_0x1b9187,_0x4b6639){const _0x371ae7=_0x3b22f,{cmd:_0x15f02f}=_0x4b6639;_0x15f02f===b[_0x371ae7(0x2bd)]&&!this[_0x371ae7(0x394)]&&(_0x1b9187[_0x371ae7(0x598)]=_0x4b6639[_0x371ae7(0x45b)][_0x371ae7(0x598)],this[_0x371ae7(0x50e)]['next'](_0x1b9187),this[_0x371ae7(0x4d5)]['next']($[_0x371ae7(0x22f)]),this[_0x371ae7(0x394)]=!0x0,this[_0x371ae7(0x392)]=null),_0x15f02f===b[_0x371ae7(0x233)]&&this[_0x371ae7(0x3cb)](),this['_rescheduleHeartbeat']();}[_0x3b22f(0x285)](){const _0x5b37f1=_0x3b22f;var _0x44c210;this[_0x5b37f1(0x34e)](),this[_0x5b37f1(0x463)]=window[_0x5b37f1(0x576)](()=>this[_0x5b37f1(0x240)](),(_0x44c210=this[_0x5b37f1(0x266)][_0x5b37f1(0x504)](dt))!=null?_0x44c210:qt);}[_0x3b22f(0x240)](){const _0x2905ca=_0x3b22f;this[_0x2905ca(0x218)][_0x2905ca(0x3c5)]({'cmd':b[_0x2905ca(0x233)]}),this['_waitForHeartbeatResponse']();}[_0x3b22f(0x3d7)](){const _0x28f817=_0x3b22f;var _0x6a762f;this[_0x28f817(0x1fb)]=window[_0x28f817(0x576)](()=>this[_0x28f817(0x5ed)](),(_0x6a762f=this[_0x28f817(0x266)]['getConfig'](Ve))!=null?_0x6a762f:St);}['_clearHeartbeatTimer'](){const _0x158353=_0x3b22f;this[_0x158353(0x463)]!=null&&(clearTimeout(this[_0x158353(0x463)]),this[_0x158353(0x463)]=null);}['_clearTimeoutTimer'](){const _0x599711=_0x3b22f;this[_0x599711(0x1fb)]!=null&&(clearTimeout(this[_0x599711(0x1fb)]),this[_0x599711(0x1fb)]=null);}},exports[_0x3b22f(0x298)]=gs([Z(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Z(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3b22f(0x308)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object['defineProperty'],Is=Object['getOwnPropertyDescriptor'],ps=(_0x377f1b,_0x217785,_0x13661e,_0x2c937)=>{const _0x21a7b9=_0x3b22f;for(var _0x25e65e=_0x2c937>0x1?void 0x0:_0x2c937?Is(_0x217785,_0x13661e):_0x217785,_0x534194=_0x377f1b[_0x21a7b9(0x291)]-0x1,_0x36c6ff;_0x534194>=0x0;_0x534194--)(_0x36c6ff=_0x377f1b[_0x534194])&&(_0x25e65e=(_0x2c937?_0x36c6ff(_0x217785,_0x13661e,_0x25e65e):_0x36c6ff(_0x25e65e))||_0x25e65e);return _0x2c937&&_0x25e65e&&ms(_0x217785,_0x13661e,_0x25e65e),_0x25e65e;},De=(_0x3d3983,_0x3378d9)=>(_0x1a54ac,_0x443272)=>_0x3378d9(_0x1a54ac,_0x443272,_0x3d3983);let fe=class{constructor(_0x691281,_0x14ad1f,_0x485e12){const _0x4e01ee=_0x3b22f;this['_injector']=_0x691281,this[_0x4e01ee(0x294)]=_0x14ad1f,this[_0x4e01ee(0x376)]=_0x485e12;}['transformIMECache'](_0x4debe5){const _0x489f30=_0x3b22f;this[_0x489f30(0x352)](_0x4debe5),this[_0x489f30(0x593)](_0x4debe5);}[_0x3b22f(0x471)](_0x419aa3){const _0x19f635=_0x3b22f,{unitID:_0x45fdeb}=_0x419aa3,_0x4de5de=this[_0x19f635(0x376)][_0x19f635(0x360)](_0x45fdeb)[_0x19f635(0x3d0)](w[_0x19f635(0x52a)]),{redoCache:_0x4e2033}=_0x4de5de[_0x19f635(0x536)]();if(_0x4e2033[_0x19f635(0x291)]===0x0)return _0x419aa3;let _0x5d0d3e=a[_0x19f635(0x27d)]['deepClone'](_0x419aa3[_0x19f635(0x3a2)][0x0]);for(let _0x6f7b74=0x0;_0x6f7b74<_0x4e2033[_0x19f635(0x291)];_0x6f7b74++){const _0x21ff3e={'id':_0x19f635(0x29f),'params':{..._0x4e2033[_0x6f7b74]}},_0x1e51cd=this[_0x19f635(0x294)]['transformMutation'](_0x5d0d3e,_0x21ff3e,!0x1);if(_['isTransformMutationFailure'](_0x1e51cd))throw _0x1e51cd['error'];_0x5d0d3e=_0x1e51cd[_0x19f635(0x5ce)];}return{...a['Tools'][_0x19f635(0x343)](_0x419aa3),'mutations':[_0x5d0d3e]};}['_transformUndoRedoStack'](_0x2fa535){const _0x3128eb=_0x3b22f,{unitID:_0xec4b56}=_0x2fa535,_0x2d7ed9=this[_0x3128eb(0x376)][_0x3128eb(0x360)](_0xec4b56)[_0x3128eb(0x3d0)](w[_0x3128eb(0x52a)]),{undoCache:_0x40a102,redoCache:_0x5d8221}=_0x2d7ed9['getUndoRedoMutationParamsCache']();if(_0x40a102[_0x3128eb(0x291)]===0x0||_0x5d8221[_0x3128eb(0x291)]===0x0)return;const _0x26d994=[],_0x39b4c3=[];let _0x39d238=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]),_0x1a45d8=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]);for(let _0x33c417=_0x40a102['length']-0x1;_0x33c417>=0x0;_0x33c417--){const _0x10d94d={'id':'doc.mutation.rich-text-editing','params':{..._0x40a102[_0x33c417]}},_0x2bec7e={'id':_0x3128eb(0x29f),'params':{..._0x5d8221[_0x33c417]}},_0x14dc7b=this['_transformService'][_0x3128eb(0x2c5)](_0x39d238,_0x10d94d,!0x1),_0x4d0c6a=this[_0x3128eb(0x294)]['transformMutation'](_0x1a45d8,_0x2bec7e,!0x1);if(_[_0x3128eb(0x5cb)](_0x14dc7b))throw _0x14dc7b['error'];if(_[_0x3128eb(0x5cb)](_0x4d0c6a))throw _0x4d0c6a[_0x3128eb(0x49d)];_0x26d994['unshift'](_0x14dc7b['m2Prime'][_0x3128eb(0x3b6)]),_0x39b4c3[_0x3128eb(0x20f)](_0x4d0c6a[_0x3128eb(0x2e8)][_0x3128eb(0x3b6)]),_0x39d238=_0x14dc7b['m1Prime'],_0x1a45d8=_0x4d0c6a[_0x3128eb(0x5ce)];}_0x2d7ed9['setUndoRedoMutationParamsCache']({'undoCache':_0x26d994,'redoCache':_0x39b4c3});}[_0x3b22f(0x593)](_0x40fe24){const _0x5aa454=_0x3b22f,{unitID:_0x491599}=_0x40fe24,_0x2ce10a=this[_0x5aa454(0x376)][_0x5aa454(0x360)](_0x491599)[_0x5aa454(0x3d0)](w[_0x5aa454(0x52a)]),_0x227bdd=_0x2ce10a[_0x5aa454(0x47e)]();if(_0x227bdd==null)return;const _0x50079c=[{'id':_0x5aa454(0x29f),'params':{'unitId':_0x40fe24[_0x5aa454(0x40e)],'actions':null,'textRanges':[_0x227bdd]}}],_0x3709dd=this[_0x5aa454(0x294)][_0x5aa454(0x261)](_0x40fe24,_0x50079c);if(!_[_0x5aa454(0x3db)](_0x3709dd))throw _0x3709dd[_0x5aa454(0x49d)];const _0x53a7a2=_0x3709dd['m2Prime'][0x0][_0x5aa454(0x3b6)][_0x5aa454(0x4a4)];Array[_0x5aa454(0x33f)](_0x53a7a2)&&_0x53a7a2[_0x5aa454(0x291)]&&_0x2ce10a['setActiveRange'](_0x53a7a2[0x0]);}};fe=ps([De(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),De(0x1,_[_0x3b22f(0x378)]),De(0x2,R[_0x3b22f(0x2be)])],fe);var Cs=Object[_0x3b22f(0x1ff)],Es=Object[_0x3b22f(0x246)],bs=(_0x59f009,_0x3d5d34,_0x1799b5,_0x2d17c7)=>{for(var _0x49229f=_0x2d17c7>0x1?void 0x0:_0x2d17c7?Es(_0x3d5d34,_0x1799b5):_0x3d5d34,_0x782dfc=_0x59f009['length']-0x1,_0x18fd67;_0x782dfc>=0x0;_0x782dfc--)(_0x18fd67=_0x59f009[_0x782dfc])&&(_0x49229f=(_0x2d17c7?_0x18fd67(_0x3d5d34,_0x1799b5,_0x49229f):_0x18fd67(_0x49229f))||_0x49229f);return _0x2d17c7&&_0x49229f&&Cs(_0x3d5d34,_0x1799b5,_0x49229f),_0x49229f;},ae=(_0x468f0d,_0x543ff9)=>(_0x3c6dc9,_0x55edf7)=>_0x543ff9(_0x3c6dc9,_0x55edf7,_0x468f0d);exports[_0x3b22f(0x462)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x267a58,_0x2eece6,_0x40e311,_0x18bfe6,_0x5d042f){const _0x5881c7=_0x3b22f;super(),d(this,_0x5881c7(0x21d),new Map()),d(this,_0x5881c7(0x3af),new Map()),d(this,_0x5881c7(0x5ea),!0x1),(this[_0x5881c7(0x266)]=_0x267a58,this[_0x5881c7(0x54a)]=_0x2eece6,this[_0x5881c7(0x4e0)]=_0x40e311,this[_0x5881c7(0x316)]=_0x18bfe6,this[_0x5881c7(0x2d5)]=_0x5d042f,this['_setupBeforeClosingHandler']());}[_0x3b22f(0x333)](){const _0x2359ed=_0x3b22f;this[_0x2359ed(0x5ea)]=!0x0;}[_0x3b22f(0x54e)](){const _0x577e6c=_0x3b22f;this[_0x577e6c(0x5ea)]=!0x1;}[_0x3b22f(0x4f2)](){const _0x39e9fd=_0x3b22f;this[_0x39e9fd(0x328)]()['then'](()=>super[_0x39e9fd(0x4f2)]());}async['loadOfflineData'](_0x10f864){const _0x4db2be=_0x3b22f;return this[_0x4db2be(0x5ea)]?null:this[_0x4db2be(0x54a)][_0x4db2be(0x5b3)](Qe(_0x10f864));}async[_0x3b22f(0x2d2)](_0x9d28d0,_0x37ce1f){const _0x51e598=_0x3b22f;return!!this[_0x51e598(0x54a)][_0x51e598(0x307)](_0x9d28d0,_0x37ce1f);}[_0x3b22f(0x371)](_0x4ce66e,_0x5a9bd1,_0x3d36f5,_0x3933a5){const _0xf161e=_0x3b22f,_0x1a697c=this[_0xf161e(0x2d5)][_0xf161e(0x42d)](_0x4ce66e);this[_0xf161e(0x21d)][_0xf161e(0x305)](_0x4ce66e,{'unitID':_0x4ce66e,'type':_0x5a9bd1,'awaitingChangeset':_0x3d36f5,'mutations':_0x3933a5,'rev':_0x1a697c}),this[_0xf161e(0x3af)]['has'](_0x4ce66e)||this[_0xf161e(0x1e1)](_0x4ce66e);}[_0x3b22f(0x1e1)](_0x734f58){const _0x1c1c08=_0x3b22f,_0x2d8c07=this[_0x1c1c08(0x5a3)]();_0x2d8c07===0x0?this[_0x1c1c08(0x51b)](_0x734f58):this[_0x1c1c08(0x3af)][_0x1c1c08(0x305)](_0x734f58,setTimeout(()=>this[_0x1c1c08(0x51b)](_0x734f58),_0x2d8c07));}[_0x3b22f(0x5a3)](){const _0x5aa33e=_0x3b22f;var _0x51de74;return(_0x51de74=this[_0x5aa33e(0x266)][_0x5aa33e(0x504)](ft))!=null?_0x51de74:Zt;}[_0x3b22f(0x51b)](_0xad4568){const _0x43fa6a=_0x3b22f,_0x2bc5bb=this[_0x43fa6a(0x3af)][_0x43fa6a(0x34d)](_0xad4568);return _0x2bc5bb!==void 0x0&&window[_0x43fa6a(0x475)](_0x2bc5bb),this['_localStorageService'][_0x43fa6a(0x307)](Qe(_0xad4568),this[_0x43fa6a(0x21d)]['get'](_0xad4568))[_0x43fa6a(0x395)](()=>this[_0x43fa6a(0x3af)][_0x43fa6a(0x2cc)](_0xad4568));}async[_0x3b22f(0x328)](){const _0x1e9a40=_0x3b22f,_0x2eadbe=[];this['_saveTaskMap'][_0x1e9a40(0x339)]((_0x17473c,_0x200383)=>{const _0x592550=_0x1e9a40;window[_0x592550(0x475)](_0x17473c),_0x2eadbe[_0x592550(0x1ed)](this[_0x592550(0x51b)](_0x200383)[_0x592550(0x395)](()=>{const _0x2f89ee=_0x592550;this[_0x2f89ee(0x3af)][_0x2f89ee(0x2cc)](_0x200383);}));}),await Promise['all'](_0x2eadbe);}[_0x3b22f(0x23e)](){const _0x4731a0=_0x3b22f;this[_0x4731a0(0x283)](this[_0x4731a0(0x4e0)][_0x4731a0(0x361)](()=>{const _0x3d0bee=_0x4731a0;if(this[_0x3d0bee(0x3af)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b22f(0x462)]=bs([ae(0x0,a[_0x3b22f(0x5ad)]),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x3b22f(0x279)]),ae(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),ae(0x4,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)]))],exports[_0x3b22f(0x462)]);function Qe(_0x4e02f9){const _0x517f88=_0x3b22f;return _0x517f88(0x4fd)+_0x4e02f9;}var Ts=Object[_0x3b22f(0x1ff)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x58d968,_0x8f3eb5,_0xaa560d,_0x378c20)=>{const _0x4bbdf3=_0x3b22f;for(var _0x35a25b=_0x378c20>0x1?void 0x0:_0x378c20?Rs(_0x8f3eb5,_0xaa560d):_0x8f3eb5,_0x2f1d67=_0x58d968[_0x4bbdf3(0x291)]-0x1,_0x2f8761;_0x2f1d67>=0x0;_0x2f1d67--)(_0x2f8761=_0x58d968[_0x2f1d67])&&(_0x35a25b=(_0x378c20?_0x2f8761(_0x8f3eb5,_0xaa560d,_0x35a25b):_0x2f8761(_0x35a25b))||_0x35a25b);return _0x378c20&&_0x35a25b&&Ts(_0x8f3eb5,_0xaa560d,_0x35a25b),_0x35a25b;},ye=(_0x528de3,_0x187ff0)=>(_0x266bd6,_0x8fe75d)=>_0x187ff0(_0x266bd6,_0x8fe75d,_0x528de3);function Ds(_0x3f5cee){const {unitID:_0x3eea22,mutations:_0x7a92fc}=_0x3f5cee;return{'unitId':_0x3eea22,'subUnitId':_0x7a92fc[0x0]['params']['subUnitId']};}let ge=class{constructor(_0x2e5ab4,_0x16a58a,_0x30b373){const _0x3df8aa=_0x3b22f;this[_0x3df8aa(0x397)]=_0x2e5ab4,this[_0x3df8aa(0x294)]=_0x16a58a,this[_0x3df8aa(0x4f8)]=_0x30b373;}[_0x3b22f(0x4fb)](_0x181223){const _0xdcc4fb=_0x3b22f;var _0xb5b0c3,_0x32ee7a,_0x84b48c,_0x11ba06;const _0x6bbe52=this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](C[_0xdcc4fb(0x264)]),{unitId:_0x36673c,subUnitId:_0x16eeb6}=Ds(_0x181223),_0x59e164=_0x6bbe52['getWorkbookSelections'](_0x36673c)[_0xdcc4fb(0x3f4)](),_0x1a41be=(_0x32ee7a=(_0xb5b0c3=this[_0xdcc4fb(0x4f8)][_0xdcc4fb(0x1f4)](_0x36673c))==null?void 0x0:_0xb5b0c3[_0xdcc4fb(0x242)]())==null?void 0x0:_0x32ee7a[_0xdcc4fb(0x3b3)]();if(_0x59e164[_0xdcc4fb(0x291)]===0x0||!_0x36673c||!_0x16eeb6)return;const _0x3a502b=[{'id':C[_0xdcc4fb(0x33c)]['id'],'params':{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':a[_0xdcc4fb(0x27d)][_0xdcc4fb(0x343)](_0x59e164)}}],_0xde81ad=this[_0xdcc4fb(0x294)][_0xdcc4fb(0x261)](_0x181223,_0x3a502b);if(!_[_0xdcc4fb(0x3db)](_0xde81ad))throw _0xde81ad[_0xdcc4fb(0x49d)];const _0x2a7783=(_0x11ba06=(_0x84b48c=_0xde81ad[_0xdcc4fb(0x2e8)][0x0])==null?void 0x0:_0x84b48c[_0xdcc4fb(0x3b6)])==null?void 0x0:_0x11ba06[_0xdcc4fb(0x3c4)];Array[_0xdcc4fb(0x33f)](_0x2a7783)&&_0x2a7783[_0xdcc4fb(0x291)]&&this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](a[_0xdcc4fb(0x323)])['executeCommand'](C[_0xdcc4fb(0x33c)]['id'],{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':_0x2a7783});}};ge=Os([ye(0x0,a[_0x3b22f(0x492)](a['Injector'])),ye(0x1,_[_0x3b22f(0x378)]),ye(0x2,a[_0x3b22f(0x26b)])],ge);const be=a['createIdentifier'](_0x3b22f(0x30e));var bt=(_0x12c884=>(_0x12c884[_0x12c884['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b22f(0x356),_0x12c884[_0x12c884[_0x3b22f(0x2b0)]=0x1]=_0x3b22f(0x2b0),_0x12c884))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3b22f(0x4b0)]{constructor(){const _0x54f077=_0x3b22f;super(),d(this,_0x54f077(0x206),a[_0x54f077(0x27d)][_0x54f077(0x409)]()),d(this,_0x54f077(0x2c2),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x54f077(0x566),null),d(this,_0x54f077(0x389),new Map()),d(this,_0x54f077(0x419),new Map()),this['_init']();}['dispose'](){const _0x4b0430=_0x3b22f;super['dispose'](),this['_clearOtherTimers'][_0x4b0430(0x339)]((_0x56f02f,_0x51cfdb)=>this[_0x4b0430(0x4a0)](_0x51cfdb)),this[_0x4b0430(0x566)]&&window['clearInterval'](this[_0x4b0430(0x566)]);}[_0x3b22f(0x568)](_0x5c5825){const _0x2fa287=_0x3b22f;return this['_ensureSubject'](_0x5c5825)[_0x2fa287(0x3de)](v[_0x2fa287(0x5a4)]());}['editingUnit'](_0x273d0d){const _0x5d018a=_0x3b22f;this['_selfUnitIDs'][_0x5d018a(0x45a)]===0x0&&this[_0x5d018a(0x484)](),this['_selfUnitIDs'][_0x5d018a(0x405)](_0x273d0d),this[_0x5d018a(0x267)]({'type':0x0,'memberID':this[_0x5d018a(0x206)],'unitIDs':[_0x273d0d],'isForwarded':!0x1});}['disposeUnit'](_0x2288ab){const _0x47aafc=_0x3b22f;this[_0x47aafc(0x2c2)][_0x47aafc(0x2cc)](_0x2288ab),this['_selfUnitIDs']['size']===0x0&&this[_0x47aafc(0x566)]&&window[_0x47aafc(0x28f)](this[_0x47aafc(0x566)]);}[_0x3b22f(0x341)](){const _0x2578d9=_0x3b22f;this[_0x2578d9(0x283)](a[_0x2578d9(0x526)](v[_0x2578d9(0x2b9)](window,_0x2578d9(0x4c8))[_0x2578d9(0x42c)](_0x1af7d4=>{const _0x11687a=_0x2578d9;if(_0x1af7d4['key']!==tt||!_0x1af7d4[_0x11687a(0x3bc)])return;const _0x221c36=JSON[_0x11687a(0x4f1)](_0x1af7d4[_0x11687a(0x3bc)]);this[_0x11687a(0x1f6)](_0x221c36);}))),window[_0x2578d9(0x4e8)]('unload',()=>this[_0x2578d9(0x267)]({'type':0x1,'memberID':this[_0x2578d9(0x206)],'unitIDs':Array[_0x2578d9(0x1e8)](this[_0x2578d9(0x2c2)])}));}[_0x3b22f(0x1f6)](_0x121a09){const _0x36a55b=_0x3b22f;switch(_0x121a09[_0x36a55b(0x331)]){case 0x0:this[_0x36a55b(0x2c9)](_0x121a09);break;case 0x1:this['_handleLeaveEvent'](_0x121a09);break;case 0x2:this[_0x36a55b(0x390)](_0x121a09);break;}}[_0x3b22f(0x2c9)](_0x230686){const _0x3d718c=_0x3b22f,{unitIDs:_0x562680,memberID:_0x439466,isForwarded:_0x1c868b}=_0x230686;_0x562680[_0x3d718c(0x339)](_0x3dc276=>{const _0x454968=_0x3d718c;if(!_0x1c868b&&this[_0x454968(0x22d)]['has'](_0x3dc276)&&this['_ensureSubject'](_0x3dc276)['next'](0x1),!this[_0x454968(0x22d)]['has'](_0x3dc276)||!this[_0x454968(0x22d)]['get'](_0x3dc276)[_0x454968(0x3e5)](_0x439466)){const _0x1ea330=this[_0x454968(0x22d)]['get'](_0x3dc276)||new Set();_0x1ea330[_0x454968(0x405)](_0x439466),this[_0x454968(0x22d)]['set'](_0x3dc276,_0x1ea330),this[_0x454968(0x47f)](_0x439466);}}),_0x1c868b||this[_0x3d718c(0x267)]({'type':0x0,'memberID':this[_0x3d718c(0x206)],'unitIDs':[...this[_0x3d718c(0x2c2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c17bc){const _0x42552b=_0x3b22f;this[_0x42552b(0x4a0)](_0x5c17bc);const _0x356b65=window[_0x42552b(0x576)](()=>{const _0x2996b1=_0x42552b;this['_unitOnClients'][_0x2996b1(0x339)](_0x2cd193=>{const _0x42cd89=_0x2996b1;_0x2cd193[_0x42cd89(0x2cc)](_0x5c17bc);});},et*0x2);this[_0x42552b(0x389)]['set'](_0x5c17bc,_0x356b65);}[_0x3b22f(0x4a0)](_0x57083f){const _0x5f15e0=_0x3b22f;if(this[_0x5f15e0(0x389)]['has'](_0x57083f)){const _0x3c49c6=this[_0x5f15e0(0x389)]['get'](_0x57083f);_0x3c49c6&&window[_0x5f15e0(0x475)](_0x3c49c6),this[_0x5f15e0(0x389)]['set'](_0x57083f,null);}}[_0x3b22f(0x4b1)](_0x1876da){const _0x5b568e=_0x3b22f,{memberID:_0x33ca7f,unitIDs:_0x15c036}=_0x1876da;_0x15c036[_0x5b568e(0x339)](_0x162322=>{const _0x4c5277=_0x5b568e;var _0x37e004;const _0xce3d33=this['_unitOnClients'][_0x4c5277(0x34d)](_0x162322);_0xce3d33&&(_0xce3d33[_0x4c5277(0x2cc)](_0x33ca7f),(_0x37e004=this['_ensureSubject'](_0x162322))==null||_0x37e004[_0x4c5277(0x52d)](_0xce3d33['size']===0x0?0x0:0x1));}),this[_0x5b568e(0x4a0)](_0x33ca7f);}[_0x3b22f(0x390)](_0x3e7dca){this['_scheduleClearOtherTimer'](_0x3e7dca['memberID']);}['_send'](_0x3ba1ee){const _0x5bf9df=_0x3b22f;localStorage[_0x5bf9df(0x307)](tt,JSON[_0x5bf9df(0x56d)](_0x3ba1ee));}[_0x3b22f(0x484)](){const _0x280008=_0x3b22f;this[_0x280008(0x566)]=window[_0x280008(0x507)](()=>{const _0x10f7f4=_0x280008;this[_0x10f7f4(0x267)]({'type':0x2,'memberID':this[_0x10f7f4(0x206)]});},et);}[_0x3b22f(0x26e)](_0x3c0c6f){const _0x466285=_0x3b22f;return this[_0x466285(0x419)][_0x466285(0x3e5)](_0x3c0c6f)||this['_unitStatus'][_0x466285(0x305)](_0x3c0c6f,new v[(_0x466285(0x502))](0x0)),this[_0x466285(0x419)][_0x466285(0x34d)](_0x3c0c6f);}}function Tt(_0x4a20a1){const _0x4850c7=_0x3b22f;let _0x4622f0='';for(const _0x1a189d of _0x4a20a1){const {startOffset:_0x3fdea7,endOffset:_0xec157b,isActive:_0x3af91b}=_0x1a189d;_0x4622f0[_0x4850c7(0x291)]&&(_0x4622f0+=','),_0x4622f0+=_0x3fdea7+':'+_0xec157b+':'+(_0x3af91b?'1':'0');}return _0x4622f0;}function Us(_0x4c095e){const _0x577fa6=_0x3b22f,_0x33c5c2=_0x4c095e[_0x577fa6(0x4d7)](','),_0x52d33f=[];for(const _0x389ab5 of _0x33c5c2){const [_0x510e0b,_0x47aa66,_0x39391d]=_0x389ab5[_0x577fa6(0x4d7)](':');_0x52d33f[_0x577fa6(0x1ed)]({'startOffset':Number(_0x510e0b),'endOffset':Number(_0x47aa66),'collapsed':_0x510e0b===_0x47aa66,'isActive':_0x39391d==='1'});}return _0x52d33f[_0x577fa6(0x301)](_0x29f209=>_0x29f209[_0x577fa6(0x48b)])||(_0x52d33f[0x0][_0x577fa6(0x48b)]=!0x0),_0x52d33f;}class Ye extends a[_0x3b22f(0x398)]{constructor(){const _0x3f396c=_0x3b22f;super(...arguments),d(this,_0x3f396c(0x3fb),new v['BehaviorSubject'](null)),d(this,_0x3f396c(0x45e),this[_0x3f396c(0x3fb)][_0x3f396c(0x56e)]());}['syncEditingCollabCursor'](_0x4a42b6){const _0x364fee=_0x3b22f,{unitID:_0x396427,memberID:_0x3f3417,textRanges:_0x328baa}=_0x4a42b6,_0x225384=Tt(_0x328baa),_0x4489eb={'unitID':_0x396427,'memberID':_0x3f3417,'selection':_0x225384};this[_0x364fee(0x3fb)][_0x364fee(0x52d)](_0x4489eb);}}var Ps=Object[_0x3b22f(0x1ff)],ws=Object[_0x3b22f(0x246)],Ms=(_0x4664e3,_0x2e0164,_0x2a1c1d,_0x1af101)=>{for(var _0x188859=_0x1af101>0x1?void 0x0:_0x1af101?ws(_0x2e0164,_0x2a1c1d):_0x2e0164,_0x57f2db=_0x4664e3['length']-0x1,_0x1b9ee0;_0x57f2db>=0x0;_0x57f2db--)(_0x1b9ee0=_0x4664e3[_0x57f2db])&&(_0x188859=(_0x1af101?_0x1b9ee0(_0x2e0164,_0x2a1c1d,_0x188859):_0x1b9ee0(_0x188859))||_0x188859);return _0x1af101&&_0x188859&&Ps(_0x2e0164,_0x2a1c1d,_0x188859),_0x188859;},st=(_0x8a15c3,_0x24ca50)=>(_0xf22e6a,_0xc56421)=>_0x24ca50(_0xf22e6a,_0xc56421,_0x8a15c3);let me=class{constructor(_0x5615cd,_0x4294f0){const _0x322686=_0x3b22f;this[_0x322686(0x397)]=_0x5615cd,this[_0x322686(0x294)]=_0x4294f0;}[_0x3b22f(0x4fb)](_0x24b640){const _0x6435e6=_0x3b22f;var _0x588f17;const _0x20263e=this[_0x6435e6(0x397)]['get'](V['DocSelectionManagerService']),_0x1a6054=(_0x588f17=_0x20263e[_0x6435e6(0x37b)]())!=null?_0x588f17:[];if(_0x1a6054[_0x6435e6(0x291)]===0x0)return;const _0x5241c1=[{'id':_0x6435e6(0x29f),'params':{'unitId':_0x24b640[_0x6435e6(0x40e)],'actions':null,'textRanges':_0x1a6054}}],_0x2b6893=this[_0x6435e6(0x294)][_0x6435e6(0x261)](_0x24b640,_0x5241c1);if(!_[_0x6435e6(0x3db)](_0x2b6893))throw _0x2b6893[_0x6435e6(0x49d)];const _0x454877=_0x2b6893['m2Prime'][0x0][_0x6435e6(0x3b6)]['textRanges'];Array[_0x6435e6(0x33f)](_0x454877)&&_0x454877['length']&&_0x20263e[_0x6435e6(0x4b8)](_0x454877,!0x1);}};function _0x1d05(){const _0x5ec935=['loadOfflineData','_entities','transformIMECache','_beforeCloseService','_collaborationPaused','toString','ALREADY_EXISTS','collabSubmitChangesetUrl','react','getCurrentUnitForType','history','addEventListener','[PendingState]:\x20received\x20rejection.','AWAITING_WITH_PENDING','NOT_COLLAB','_memberService','touchDependencies','assignAColorForMemberID','INGEST','_initStatusListener','parse','dispose','_registerDependencies','getCollabCursors$','JOINING','Tooltip','DataLoaderController','_instanceService','APPLY_REVISION_CONFILICT','ERROR_EXCEED_SIZE','transformSelections','/collaborator','unit-cache-','useObservable','action','867116ItzxUp','/universer-api/snapshot/','BehaviorSubject','_imageSourceCache','getConfig','error$','[OfflineState]:\x20received\x20rejection.','setInterval','SessionStatus','result','reduce','evenodd','SHOULD_CLOSE_CONN','collaboration_new_changeset','_socket$','defs','IContextService','put','INTERNAL_ERROR','Error\x20on\x20receiving\x20event','_initModules','_executeRemoteChangeset','_clearCollaborationTimeoutTimer','UNDEFINED','isTransformChangesetsSuccess','IUndoRedoService','_handler','_saveCache','USERS_LEAVE','SEND_CHANGESET_TIMEOUT_KEY','onPointerMove$','_labelPosition','_drawTextRange','saveSnapshot','_localCacheService','handleInsertRangeMoveRight','getUnitOnRev','_sendingTimer','toDisposable','debounce','changesets','object','DocIMEInputManagerService','getUnitId','sheetID','next','DependentOn','DesktopCollaborationStatusDisplayController','/block/','_getSnapshotAPIPrefix','toRgbString','concat','getTime','_onRemoteACK','getUndoRedoMutationParamsCache','getSheetBlock','_scheduleCollaborationTimeoutTimer','_createSocket','/-/object/-/batch_allowed','SetWorksheetActivateCommand','_onJoinRoomEvent','resolve','univer-online-status','hasOwnProperty','findNodePositionByCharIndex','COLORS','interceptor','parseProtocolChangeset','pending','toStringTag','_commentService','div','_onRemoteChangeset','_updateURLWithCurrentState','_localStorageService','originalMeta','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','enableLocalCache','entries','url(#on-line-single_clip0_910_349)','_initMergeInterceptor','0\x200\x2017\x2016','_toggleOnline','function','unitId\x20is\x20not\x20found','_getSheetObject','[CollaborationSessionService]','editingUnit','Vector2','sessionStatus','XHRHTTPImplementation','_transformStack','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SnapshotServerOverHTTPService','_updateCollabCursors','startsWith','getCoordByCell','propertyIsEnumerable','UserManagerService','includes','_heartbeatTimer','stopTime','getUnitStatus$','_transformUndoredo','RETRY_CONNECTING_MAX_COUNT','_assignedColors','concatMap','stringify','asObservable','CONNECTOR_DATA_TOO_LARGE','synced','_startCollaboration','CollaborationSession','_scene','SetTextSelectionsOperation','UNIVER_SLIDE','setTimeout','_removeRoom','requireSession','rgba(255,\x20255,\x20255,\x200.01)','roles','map','_anchorDot','ImageUploadStatusType','moveTo','setParam','COMPRESS_MUTATION_APPLY','_cursor','_onRemoteRejected','LocaleService','_loadDoc','saveChangeset','onload','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','mergeOverrideWithDependencies','/-/object/list','registerRefRange','_type','enableOfflineEditing','NodePositionConvertToCursor','_getCtorByUniverType','clipPath','_notificationService','@univerjs/docs-ui','setShapeProps','_transformPreviousActiveRange','_colorAssignService','startColumn','3757869ONEMxK','getMemberID','memberID','_singleActiveUnitService','_telemetryService','_joinRoom','VIEW_MAIN','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','conflict.content','unit','TEXT_RANGE_LAYER_INDEX','ImageSourceType','0\x200\x2016\x2016','_getSaveTimeout','distinctUntilChanged','handleInsertRow','InsertColCommandId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_render','encodeURIComponent','permissionRejEvent','url','SUBMIT_CHANGESET','IConfigService','HTTPService','_getMergeRange','commentUpdateEvent','_remoteChangesetQueue','MergeInterceptorFactory','getItem','MessageType','submit\x20changeset\x20error!','UPDATE_CURSOR','LIVESHARE_NEW_HOST','forwardRef','take','measureText','612743RJtBQn','univer-online-status-icon','_onMessage','onTransformChange$','roomMembers$','_cursorShapes','_getSendChangesetTimeout','fetchMissingChangesets','?url=','connection\x20error','OffLineSingle','Optional','flatMap','jiqing500','UNIVER_UNKNOWN','image/jpg','isTransformMutationFailure','LICENSE_DISTRO_REJECTED','getImageSourceCache','m1Prime','UNIVER_PROJECT','[CollaborationSessionService]:\x20socket\x20error','online','WorkbookEditablePermission','attrs','c1Prime','getUnitType','_state','column','/role','red300','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','find','drawWith','min','commentUpdate$','off-line-single_clip0_910_343','defIds','#fff','parseChangesetToProtocol','createInstance','_substituteRedoStack','liveShareNewHost','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitAdded$','ERROR_IMAGE','_disabled','awaitingChangeset','_initCloseConn','_onConnectionFailed','DEFAULT_FILE_NAME','SheetCollaborationEntity','COMPRESS_MUTATION_SEND','_scheduleSaving','image/bmp','_isPermissionRej','_redoStacks','reverse','listRoles','on-line-single','from','color','append','title','@univerjs/design','push','_commentUpdate$','_collaborationSessionService','height','sessionStatus$','/universer-api/authz','syncEditingCollabCursor','getUnit','save','_handleEvent','retryConnectingInterval','collaboration-session-retry','@univerjs/docs','message$','_timeoutTimer','_drawRectRange','_refRangeService','TOO_MANY_REQUESTS','defineProperty','_updateStatus','INVALID_ARGUMENT','[PendingState]:\x20received\x20acknowledgement.','withCredentials','COMPLETION_FINISHED','objectID','_id','_hovered','/rev/','requestParams','_registerRenderDependencies','colorChannel1','getDeserializedSheetBlock','slice','responseType','unshift','_getRedoStack','AUTHZ_URL_KEY','members','LocalUndoRedoService','_snapshotServerService','_sheetTransformSelectionsService','initWorkbookPermissionChange','WebURLService','_socket','url(#off-line-single_clip0_910_343)','SheetSkeletonManagerService','method','encode','_cachedData','UPDATE_PERMISSION_OBJ','collaboration.closeRoom','_http','post','M0\x200H16V16H0z','_schedule','show','enableSingleActiveInstanceLock','onMissedChangesetFetched','SNAPSHOT_SERVER_URL_KEY','_collaborationTimeoutTimer','getSkeleton','workbook','collabStatus.notCollab','fetchMiss','_unitOnClients','onRemoteAck','ONLINE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','SNAPSHOT_INVALID_SNAPSHOT','HEARTBEAT','connectInjector','_checkMissing','setAlpha','_incrementRevisionNumber','indexOf','\x20to\x20','@univerjs-pro/collaboration','JOIN','reject','_onConflict','_setupBeforeClosingHandler','UNRECOGNIZED','_sendHeartbeat','[OfflineState]:\x20received\x20changeset.','getActiveSheet','loadSheet','_initUnitPermissionChange','createCollaborator','getOwnPropertyDescriptor','onPointerLeave$','_eventUnsubscribe','clear','onTransformSelections','updateCollaborator','_getScale','2221419nSJKjM','leaveEvent','getTypeOfUnitDisposed$','Unknown\x20user','@univerjs-pro/license','Injector','...','create','getFocusedUnit','_clearRedo','ThresholdInterceptorFactory','handleMoveRange','assign','registerComponent','rxjs','_docTransformSelectionsService','_urlService','range','Subject','_compressMutationService','transformMutationsWithChangeset','replace','_collaborationController','SheetsSelectionsService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_configService','_send','save\x20fail\x20reason\x20is\x20','_fetchMissChangesets','_name','IUniverInstanceService','SheetPermissionInitController','triggerDblclick','_ensureSubject','transformByState','_httpService','conflict.title','CollaborationSocketService','setWaitCount','b64DecodeUnicode','CHANGESET_REVISION_CONFILICT','_onCombEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20in\x20_schedule.','IBeforeCloseService','onPointerEnter$','popstate','_collabSessionService','Tools','newCsEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ICollaborationSocketService','_startDocCollabCursor','NodePositionConvertToRectRange','disposeWithMe','fetchThroughInterceptors','_rescheduleHeartbeat','_handleHover','getSheetObject','_roomMembers$','focused$','saveImage','_transformIMECache','isValidRectRange','CommentService','Shape','clearInterval','MSG_FOR_ERROR','length','delay','_config','_transformService','fillText','LOCAL_CACHE_INTERVAL','removeParam','CollaborationSessionService','Rect','_clearScheduledTask','transformChangesets','_getLoginPath','getViewport','[SyncedState]:\x20received\x20rejection.','doc.mutation.rich-text-editing','_listenToOfflineEvent','_onCursorDelete','file','getCurrentUser','textEncoder','socketService','PENDING','Module','UNKNOWN_CODE','getValue','InsertRangeMoveDownCommandId','_color','getUniverSheetInstance','collabStatus.fetchMiss','LICENSE_EXPORT_SIZE_EXCEEDED','onRemoteChangeset','OTHER_CLIENTS_EDITING','HEARTBEAT_INTERVAL_KEY','actions','_ws','subUnitId','EffectRefRangId','resend','translate(.97)','ranges','fromEvent','hide','collaborators','serializeCombRequest','HELLO','IRenderManagerService','session','none','FETCH_MISSING','_selfUnitIDs','objectType','merge','transformMutation','_onConnectionOpen','8ZOkjun','socket$','_handleJoinEvent','_unlockTransition','CollaborationEntity','delete','_clearLocalCache','ISnapshotServerService','_onRecvEvent','userID','OnLineSingle','saveOfflineData','IDLE','ERROR_IMAGE_TYPE','_revisionService','resourceIDs','collaMsg','_context','_snapshotService','COLLAB_WEB_SOCKET_URL','_getDownloadEndpointURL','_removeCollabCursors','onCommandExecuted','COLLAB_SUBMIT_CHANGESET_URL_KEY','_exhaustRemoteChangesetQueue','@univerjs/rpc','dispose$','_decreaseWaiting','IMessageService','LICENSE_IMPORT_SIZE_EXCEEDED','INotificationService','LEAVE','_disableEditing','m2Prime','liveShareOperation','toggleOffline','APPLY_REJECT','complete','incrementRevOfUnit','origin','uploadFileServerUrl','RECV','getSheetBySheetId','fill','transformUndoRedo','_sessions','on-line-single_clip0_910_349','awaiting_with_pending','_getUndoStack','univer-pro.collaboration-client-socket-service','_unitID','getCollabEntity','_transitionLocked','executeCommand','getRelativeToViewportCoord','RemoveRowCommandId','addObject','IPermissionService','some','_createHandler','getMember','_cursors','set','updateCursorEvent','setItem','ILogService','unknown','body','onlineStatus','CONFLICT','getCollabEntity$','univer-pro.collaboration-client.single-active-unit-service','getRangePointData','/object/','_members','mapDocumentTypeToUniverType','FromArray','InsertRangeMoveRightCommandId','visibilitychange','_localeService','Undefined','_pendingMutations','_lockTransition','_initCommandExecutedListener','compose','engine','_messageService','max','/universer-api/stream/file/upload','debug','path','CollaborationController','ICommandService','close$','[OfflineState]:\x20received\x20acknowledgement.','x-univer-host','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','exhaustSavingTask','NEW_CHANGESETS','routeKey','SetDocZoomRatioOperation','useDependency','confirm','current','ws://127.0.0.1:8000/universer-api/comb/connect','_sheetSkeletonManagerService','type','UNIVER_DOC','disableLocalCache','_updateState','_docSyncEditingCollabCursorService','socket\x20close','Rectangle','_session','forEach','_getSignURL','collabWebSocketUrl','SetSelectionsOperation','FileId','/new_changes','isArray','_univerInstanceService','_init','lineTo','deepClone','[CollaborationState]:\x20apply\x20error!','removeMember','every','WebSocketService','/resources','updateMember','getImage','_retryCount','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','get','_clearHeartbeatTimer','AWAITING','currentSkeleton$','_lastPointer','_transformUndoRedoStack','location','pushState','off-line-single','NO_OTHER_CLIENTS_EDITING','onTransformRemoteChangesetByIMECache','init','reconnect','ColorKit','DisposableCollection','_colorIndex','substring','fromCollab','{fileID}','getRenderById','registerBeforeClose','UNKNOWN_CMD','univer-online','json','/universer-api/oidc/authpage','name','SNAPSHOT_URL_KEY','_onUserJoin','_backgroundColor','_setupSubUnitSync','copyFileMeta','update','_uiPartsService','CHANGESET_REJ','conflict','_initEventListeners','updateOfflineData','restore','onSyncEditingCollabCursor','state','endColumn','_renderManagerService','onRemoteRej','ITransformService','gold400','/unit/','getDocRanges','takeUntil','_updateLocalCursor','infoRsp','_toggleOffline','UNAUTHENTICATED','src','backgroundColor','permission.content','@univerjs/network','useRef','status$','joinRsp','BuiltInUIPart','_clearOtherTimers','_onRefRangeChange','AuthzIoHttpService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','UniverInstanceType','fillStyle','_handleHeartbeatEvent','useCallback','_candidateSocket','941395XkwyOm','_socketReady','then','handleInsertRangeMoveDown','_injector','RxDisposable','IURLService','_listenToOnlineEvent','/universer-api/comb','_tryReconnect','_scheduleTimestamp','1em','_hideTimer','_initStatusComponent','createSocket','mutations','YUUMI_SUBSCRIPTION_NOT_FOUND','isInternalEditorID','getRoom','USERS_ENTER','PERMISSION_DENIED','rev','_HTTPService','sendChangesetTimeout','hovered','_range','subunit','collabStatus.offline','_saveTaskMap','_stopTelemetryCollaborationNewChangeset','arc','socket\x20open.','getSheetId','\x20-\x20','event$','params','Warning','CommandType','onMouseMove','HTTPRequest','appendMutation','newValue','bottom','subscribeEvent','telemetry\x20info\x20is\x20not\x20initialized','UNIVER_SHEET','icon','_waitCount','handleIRemoveCol','selections','send','closeSession','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','catch','[DataLoaderController]','_clearTimeoutTimer','eventID','createIdentifier','state$','@univerjs/engine-render','with','xlink:href','status','_getAnchorBounding','unsubscribe','SheetCollabCursorShape','POST','_waitForHeartbeatResponse','fetch_missing','_themeService','collaboratorID','isTransformMutationsWithChangesetSuccess','/universer-api/file/{fileID}/sign-url','_startSheetCollabCursor','pipe','unitId','batchAllowed','RegularPolygon','EmptyMutation','addImageSourceCache','currentTheme$','has','round','[CollaborationSession]','onMissingChangesets','serializeRangeWithSheet','OFFLINE','LOGIN_URL_KEY','close','@univerjs/drawing','CollaborationStatus','registerHTTPInterceptor','number','purple300','DeleteRangeMoveUpCommandId','_telemetryInfo','getCurrentSelections','list','onCommentUpdate','url(#$1','@univerjs/core','filter','_socketMessageSubscription','_collabCursorState$','trim','_entityInit$','switchMap','toggleOnline','_sessionStatus$','fromEventSubject','NOT_FOUND','DocCollaborationEntity','_cursorInfo$','add','_replaceFileID','values','csRejEvent','generateRandomId','string','getInterceptPoints','isEditing','revision','unitID','_tryEnsureSocket','_onFetchMissResult','roomInfos','href','_getAPIPrefixPath','isPermissionRej','_transformSelections','FETCH_MISS','combineLatest','signUrlServerUrl','_unitStatus','localeService','_drawAnchor','collab-text-range-','MUTATION','text','setConfig','/allowed','_syncEditingCollabCursorService','getParam','_onUserLeave','RETRY_CONNECTING_MAX_COUNT_KEY','enableAuthServer','_onCursorUpdate','getColor','CHANGESET_ACK','/object','fetching\x20missing\x20changesets\x20from\x20','CollaborationStatusDisplay','subscribe','getCurrentRevOfUnit','shareReplay','debounceTime','APPLY_PERMISSION_DENIED','COMMENT_UPDATE','LIVESHARE_REQUEST_HOST','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','session.will-retry','joinEvent','_userManagerService','FAIL','c2Prime','collabStatus.syncing','_createInitialState','_submitChangeset','tag','_awaitingChangeset','BASE64','_retryConnectingTimer','_refreshCollabCursors','_updateSubUnitFromURLParams','univerjs-icon\x20univerjs-icon-','_permissionService','_logService','_acknowledgedAwaitingChangeset','_initResize','svg','updatePermissionPoint','Univer','RefRangeService','CollaborationEvent','LICENSE_MAX_UNITS_EXCEEDED','children','collaboration.single-unit.warning','RevisionService','_getAPIPrefix','/universer-api/snapshot','sheetId','4417510qZoeCW','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','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','_shapes','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformIMECacheService','size','data','_collabCursorController','HEARTBEAT_TIMEOUT_KEY','collabCursorState$','offline','Error','CompressMutationService','LocalCacheService','_sendHeartbeatTimer','_docSkeletonManagerService','pauseCollaboration','_online','ITelemetryService','_hover','_roomMembers','_anchor','_clearUndo','_substituteUndoStack','_textBubble','onStateChange','_throwTelemetryCollaborationNewChangeset','APPLY_NON_SEQUENTIAL_REVISION','transformRemoteChangeset','startRow','@univerjs/sheets','setCurrentUser','clearTimeout','selection','_onLocalMutation','currentColor','runRefRangeMutations','deserializeToCombResponse','LIVESHARE_TERMINATE','_shouldReportTelemetry','failed\x20to\x20apply\x20missed\x20changesets!','getActiveRange','_scheduleClearOtherTimer','univer-online-status-title','width','random','permission.title','_scheduleHeartbeat','24qkdJuj','open$','whenReady','HEARTBEAT_INTERVAL','HEADER_MENU','_change$','isActive','readAsDataURL','RichTextEditingMutation','makeDirty','InsertRowCommandId','_getCurrentRevision','\x0aCurrent:\x20','Inject','180834HJcsna','createElement','DocSkeletonManagerService','awaiting','MoveRangeCommandId','searchParams','displayName','cursorInfo','InsertSheetMutation','@univerjs/telemetry','error','onStarting','code','_removeClearOtherTimer','getAncestorScale','PERMISSION_REJ','ImageIoService','textRanges','onlineStatusTitle','&assign=','DocSelectionManagerService','COLLAB_SUBMIT_CHANGESET_URL','addObjects','cursorInfo$','ThemeService','collab-client.tooltip.reconnect','_updateLocalCache','_syncEditingCollabCursor','rxjs/operators','Disposable','_handleLeaveEvent','IRemoteInstanceService','black','_replayCachedMutations','registerRenderModule','_undoRedoService','HEARTBEAT_TIMEOUT','replaceTextRanges','_commandService','UnitSnapshot','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitEmbedded','roomMembers','HttpImport','/fetchmissing?from=','baseRev','JSONX','pluginName','registerOnClose','row','IUIPartsService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','storage','collab-text-anchor-','_event$','urlChange$','_draw','apply','_getUploadFileURL','prototype','call','allowed','_initRequestHeader','onReady','cmd','_status$','_state$','split','getMergeData','top','_queuedRemoteChangesets','idSuffix','sheets'];_0x1d05=function(){return _0x5ec935;};return _0x1d05();}me=Ms([st(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),st(0x1,_[_0x3b22f(0x378)])],me);const Ns=new Set([C[_0x3b22f(0x49b)]['id']]);function it(_0x25696a,_0x595084,_0x434828,_0x3836e6,_0x49bc5c){const _0x4b8579=_0x3b22f;var _0x5aab71,_0x5bfbc6,_0x40a952,_0xe5719;const _0x3cb025=[];for(const _0x15a786 of _0x25696a)if(Ns[_0x4b8579(0x3e5)](_0x15a786['id'])){if(_0x3cb025[_0x4b8579(0x291)]>0x0)break;_0x3cb025[_0x4b8579(0x1ed)](_0x15a786);break;}else _0x3cb025[_0x4b8579(0x1ed)](_0x15a786);const _0x303fe7=(_0x5bfbc6=(_0x5aab71=_0x49bc5c['getCurrentUser']())==null?void 0x0:_0x5aab71[_0x4b8579(0x2d0)])!=null?_0x5bfbc6:_0x4b8579(0x309),_0x427a5c=(_0xe5719=(_0x40a952=_0x49bc5c[_0x4b8579(0x2a3)]())==null?void 0x0:_0x40a952[_0x4b8579(0x598)])!=null?_0xe5719:_0x4b8579(0x309);return{'changeset':{'unitID':_0x595084,'type':_[_0x4b8579(0x312)](_0x434828[_0x4b8579(0x5d5)](_0x595084)),'baseRev':_0x3836e6[_0x4b8579(0x42d)](_0x595084),'revision':0x0,'userID':_0x303fe7,'memberID':_0x427a5c,'mutations':_0x3cb025},'pendingMutations':_0x25696a[_0x4b8579(0x20d)](_0x3cb025['length'])};}function As(_0x57ca4d,_0x4417eb,_0xdea9b4,_0x4f540d,_0x4647e6){const _0x29ddfe=_0x3b22f;var _0x4c6275,_0x32a64a,_0x461819,_0x4f00e2;const _0x5676a6=[_0x57ca4d[_0x29ddfe(0x50a)]((_0x2f6609,_0x24fd71)=>{const _0x557a04=_0x29ddfe;var _0x3cfe69;const {id:_0x4eb605}=_0x2f6609,{id:_0x2c478e,type:_0x17e491}=_0x24fd71,_0x14d5ea=(_0x3cfe69=_0x2f6609['params'])!=null?_0x3cfe69:{'actions':null},_0x27f32c=_0x24fd71['params'];if(_0x4eb605&&_0x4eb605!==_0x2c478e)throw new Error(_0x557a04(0x455)+_0x4eb605+_0x557a04(0x3b4)+_0x2c478e+'.');return{..._0x2f6609,'id':_0x2c478e,'type':_0x17e491,'params':{'unitId':_0x27f32c[_0x557a04(0x3df)],'textRanges':_0x27f32c[_0x557a04(0x4a4)],'actions':a[_0x557a04(0x4c2)][_0x557a04(0x31b)](_0x14d5ea['actions'],_0x27f32c['actions'])}};},{})],_0x475966=(_0x32a64a=(_0x4c6275=_0x4647e6['getCurrentUser']())==null?void 0x0:_0x4c6275['userID'])!=null?_0x32a64a:_0x29ddfe(0x309),_0x1b4036=(_0x4f00e2=(_0x461819=_0x4647e6[_0x29ddfe(0x2a3)]())==null?void 0x0:_0x461819[_0x29ddfe(0x598)])!=null?_0x4f00e2:_0x29ddfe(0x309);return{'changeset':{'unitID':_0x4417eb,'type':_[_0x29ddfe(0x312)](_0xdea9b4[_0x29ddfe(0x5d5)](_0x4417eb)),'baseRev':_0x4f540d[_0x29ddfe(0x42d)](_0x4417eb),'revision':0x0,'userID':_0x475966,'memberID':_0x1b4036,'mutations':_0x5676a6},'pendingMutations':[]};}const Ls={'id':C[_0x3b22f(0x3e2)]['id'],'type':a[_0x3b22f(0x3b8)][_0x3b22f(0x41d)],'params':{}};var js=Object['defineProperty'],$s=Object['getOwnPropertyDescriptor'],z=(_0xd3d7d8,_0x5a4267,_0xf6b739,_0x27ffdc)=>{const _0x2d74ff=_0x3b22f;for(var _0x3f98b4=_0x27ffdc>0x1?void 0x0:_0x27ffdc?$s(_0x5a4267,_0xf6b739):_0x5a4267,_0x17fd46=_0xd3d7d8[_0x2d74ff(0x291)]-0x1,_0x73812;_0x17fd46>=0x0;_0x17fd46--)(_0x73812=_0xd3d7d8[_0x17fd46])&&(_0x3f98b4=(_0x27ffdc?_0x73812(_0x5a4267,_0xf6b739,_0x3f98b4):_0x73812(_0x3f98b4))||_0x3f98b4);return _0x27ffdc&&_0x3f98b4&&js(_0x5a4267,_0xf6b739,_0x3f98b4),_0x3f98b4;},g=(_0x166fce,_0x139423)=>(_0x24e020,_0x37a106)=>_0x139423(_0x24e020,_0x37a106,_0x166fce),y=(_0xd344dc=>(_0xd344dc['NOT_COLLAB']='not_collab',_0xd344dc['SYNCED']=_0x3b22f(0x570),_0xd344dc['PENDING']='pending',_0xd344dc['AWAITING']=_0x3b22f(0x496),_0xd344dc[_0x3b22f(0x4ea)]=_0x3b22f(0x2f6),_0xd344dc[_0x3b22f(0x416)]=_0x3b22f(0x3d8),_0xd344dc[_0x3b22f(0x30c)]=_0x3b22f(0x36f),_0xd344dc[_0x3b22f(0x3ea)]='offline',_0xd344dc))(y||{});class J{constructor(_0x13c117,_0x5991a6,_0x4767e4,_0x11be97,_0x20981b,_0x466441,_0x58c5f4,_0x395477,_0x347aee){const _0x1b1722=_0x3b22f;d(this,_0x1b1722(0x43e),null),d(this,'_pendingMutations',[]),(this[_0x1b1722(0x40e)]=_0x13c117,this[_0x1b1722(0x331)]=_0x5991a6,this[_0x1b1722(0x51a)]=_0x20981b,this['_commandService']=_0x466441,this[_0x1b1722(0x4b6)]=_0x58c5f4,this[_0x1b1722(0x2d5)]=_0x395477,this[_0x1b1722(0x522)]=_0x347aee,this[_0x1b1722(0x43e)]=_0x4767e4,this[_0x1b1722(0x318)]=_0x11be97);}['_checkMissing'](_0x476e48){const _0x47e19f=_0x3b22f,_0x55fc4d=this['_revisionService'][_0x47e19f(0x42d)](this[_0x47e19f(0x40e)]);return _0x476e48['revision']>_0x55fc4d+0x1?(this[_0x47e19f(0x51a)]['onMissingChangesets']({'from':_0x55fc4d,'to':_0x476e48[_0x47e19f(0x40d)]-0x1}),!0x0):!0x1;}[_0x3b22f(0x569)](_0x144fa8){const _0x3a7d36=_0x3b22f;this['_undoRedoService'][_0x3a7d36(0x2f3)](this[_0x3a7d36(0x40e)],_0x144fa8);}[_0x3b22f(0x415)](_0x55ada7){const _0xdbdc3b=_0x3b22f;var _0x363c87,_0x5393db;(_0x5393db=(_0x363c87=this['_handler'])[_0xdbdc3b(0x24a)])==null||_0x5393db[_0xdbdc3b(0x4d0)](_0x363c87,_0x55ada7);}[_0x3b22f(0x28b)](_0x6308dc){var _0x15206b,_0x10b8d6;return(_0x10b8d6=(_0x15206b=this['_handler'])['onTransformIME'])==null?void 0x0:_0x10b8d6['call'](_0x15206b,_0x6308dc);}['_transformRemoteChangesetByIMECache'](_0x490e36){const _0x4cfc0d=_0x3b22f;var _0x19139d,_0x229305,_0x3b1f9f;return(_0x3b1f9f=(_0x229305=(_0x19139d=this[_0x4cfc0d(0x51a)])[_0x4cfc0d(0x357)])==null?void 0x0:_0x229305[_0x4cfc0d(0x4d0)](_0x19139d,_0x490e36))!=null?_0x3b1f9f:_0x490e36;}[_0x3b22f(0x4ae)](_0x1cea3d){const _0x18635d=_0x3b22f;var _0x263b3e,_0x60ad9b;if(this[_0x18635d(0x331)]===j['UNIVER_DOC']){const {unitID:_0x832911,mutations:_0x6f515b,memberID:_0x15d86f}=_0x1cea3d,_0x204c0a=_0x6f515b[0x0]['params'][_0x18635d(0x4a4)];Array[_0x18635d(0x33f)](_0x204c0a)&&_0x204c0a['length']>0x0&&((_0x60ad9b=(_0x263b3e=this[_0x18635d(0x51a)])['onSyncEditingCollabCursor'])==null||_0x60ad9b['call'](_0x263b3e,{'unitID':_0x832911,'memberID':_0x15d86f,'textRanges':_0x204c0a}));}}[_0x3b22f(0x4ad)](){const _0x2d131e=_0x3b22f;this['_localCacheService'][_0x2d131e(0x371)](this['unitID'],this[_0x2d131e(0x331)],this['_awaitingChangeset'],this[_0x2d131e(0x318)]);}['_getCurrentRevision'](){const _0x2def71=_0x3b22f;return this[_0x2def71(0x2d5)][_0x2def71(0x42d)](this['unitID']);}[_0x3b22f(0x237)](){const _0x138ecc=_0x3b22f;this[_0x138ecc(0x2d5)][_0x138ecc(0x2ed)](this[_0x138ecc(0x40e)]);}[_0x3b22f(0x515)](_0x3ca554){const _0x3e49a3=_0x3b22f;var _0x1b4f1f;const _0x464a26=this['_transformRemoteChangesetByIMECache'](_0x3ca554),_0x462edb=a['sequenceExecute'](_0x464a26[_0x3e49a3(0x3a2)],this[_0x3e49a3(0x4b9)],{'fromCollab':!0x0});if(!_0x462edb[_0x3e49a3(0x509)])throw _0x462edb[_0x3e49a3(0x49d)]instanceof Error?_0x462edb['error']:new Error((_0x1b4f1f=_0x462edb[_0x3e49a3(0x49d)])!=null?_0x1b4f1f:_0x3e49a3(0x344));this[_0x3e49a3(0x28b)](_0x464a26),this['_transformUndoredo'](_0x3ca554),this[_0x3e49a3(0x415)](_0x464a26),this['_syncEditingCollabCursor'](_0x464a26),this[_0x3e49a3(0x237)]();}}let se=class extends J{constructor(_0x2d9ca7,_0x120dc5,_0xdffedc,_0x29b7aa,_0x35a4f1,_0x52f2e8,_0x15817d,_0x55be91,_0x5b34da,_0x530c1e){const _0x47de9=_0x3b22f;super(_0x2d9ca7,_0x120dc5,null,[],_0xdffedc,_0x55be91,_0x15817d,_0x29b7aa,_0x35a4f1),d(this,_0x47de9(0x3d2),_0x47de9(0x570)),(this['_injector']=_0x52f2e8,this[_0x47de9(0x445)]=_0x5b34da,this['_transformService']=_0x530c1e);}[_0x3b22f(0x3bb)](_0x1a6594){const _0x45adfb=_0x3b22f,_0xf97f2c=this[_0x45adfb(0x397)][_0x45adfb(0x5e4)](x,this[_0x45adfb(0x40e)],this['type'],[_0x1a6594],this[_0x45adfb(0x51a)]);return _0xf97f2c[_0x45adfb(0x223)](),_0xf97f2c[_0x45adfb(0x4ad)](),_0xf97f2c;}[_0x3b22f(0x2af)](_0x3725ce){const _0xd5e7fa=_0x3b22f;if(this[_0xd5e7fa(0x235)](_0x3725ce))return this[_0xd5e7fa(0x397)][_0xd5e7fa(0x5e4)](H,this[_0xd5e7fa(0x40e)],this[_0xd5e7fa(0x331)],null,[],null,[_0x3725ce],this[_0xd5e7fa(0x51a)]);try{const _0x2ee259=this['_transformService'][_0xd5e7fa(0x261)](_0x3725ce,[Ls]);if(_[_0xd5e7fa(0x3db)](_0x2ee259)){const {c1Prime:_0x279504}=_0x2ee259;return this['_executeRemoteChangeset'](_0x279504),this;}throw _0x2ee259[_0xd5e7fa(0x49d)];}catch(_0x469d52){return this['_logService'][_0xd5e7fa(0x49d)](_0x469d52),this[_0xd5e7fa(0x23d)](!0x1);}}[_0x3b22f(0x23d)](_0x290d22){const _0x46f18e=_0x3b22f;return this['_injector'][_0x46f18e(0x5e4)](F,this[_0x46f18e(0x40e)],this['type'],null,[],this[_0x46f18e(0x51a)],_0x290d22);}[_0x3b22f(0x22e)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3b22f(0x377)](){const _0x3dec29=_0x3b22f;throw new Error(_0x3dec29(0x29e));}[_0x3b22f(0x2ea)](){const _0x2b6617=_0x3b22f;return this[_0x2b6617(0x397)]['createInstance'](G,this[_0x2b6617(0x40e)],this[_0x2b6617(0x331)],null,[],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x3da45c=_0x3b22f;throw new Error(_0x3da45c(0x327));}[_0x3b22f(0x22c)](){const _0x3da272=_0x3b22f,_0x270951=this[_0x3da272(0x2d5)][_0x3da272(0x42d)](this[_0x3da272(0x40e)]);return this[_0x3da272(0x51a)][_0x3da272(0x3e8)]({'from':_0x270951,'to':0x0}),this[_0x3da272(0x397)][_0x3da272(0x5e4)](H,this[_0x3da272(0x40e)],this[_0x3da272(0x331)],null,[],null,[],this[_0x3da272(0x51a)]);}};se=z([g(0x3,a['Inject'](_[_0x3b22f(0x450)])),g(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x519)]),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService'])],se);let x=class extends J{constructor(_0x43b37d,_0x5e3230,_0x1e9bd4,_0x42a490,_0x51afa1,_0xb01cfc,_0x49c0b6,_0x15bf12,_0x8aa958,_0x4cca81,_0x8d6bb,_0x51917c,_0x39bf13,_0x4314a6){const _0x1dd224=_0x3b22f;super(_0x43b37d,_0x5e3230,null,_0x1e9bd4,_0x42a490,_0x4cca81,_0x4314a6,_0xb01cfc,_0x49c0b6),d(this,'status',_0x1dd224(0x544)),d(this,_0x1dd224(0x39d),null),d(this,'_sendingTimer',null),(this['_injector']=_0x51afa1,this['_memberService']=_0x15bf12,this['_logService']=_0x8aa958,this['_configService']=_0x8d6bb,this['_transformService']=_0x51917c,this[_0x1dd224(0x340)]=_0x39bf13);}[_0x3b22f(0x3bb)](_0x27e10a){const _0xa1b5b4=_0x3b22f;return this[_0xa1b5b4(0x318)]['push'](_0x27e10a),this[_0xa1b5b4(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x556e93){const _0x19517b=_0x3b22f;if(this[_0x19517b(0x235)](_0x556e93))return this['_clearScheduledTask'](),this[_0x19517b(0x397)][_0x19517b(0x5e4)](H,this['unitID'],this[_0x19517b(0x331)],null,this[_0x19517b(0x318)],null,[_0x556e93],this['_handler']);try{const _0x1b5be7=this[_0x19517b(0x294)]['transformMutationsWithChangeset'](_0x556e93,this[_0x19517b(0x318)]);if(_[_0x19517b(0x3db)](_0x1b5be7)){const {c1Prime:_0x3ce0a1,m2Prime:_0x1d409b}=_0x1b5be7;this['_executeRemoteChangeset'](_0x3ce0a1);const _0x3cc821=this[_0x19517b(0x397)][_0x19517b(0x5e4)](x,this['unitID'],this[_0x19517b(0x331)],_0x1d409b,this[_0x19517b(0x51a)]);return this[_0x19517b(0x29a)](),_0x3cc821['_schedule'](this[_0x19517b(0x39d)]?Math[_0x19517b(0x31e)](0x0,new Date()['getTime']()-this[_0x19517b(0x39d)]):this[_0x19517b(0x5c1)]()),_0x3cc821;}throw _0x1b5be7[_0x19517b(0x49d)];}catch(_0x186e81){return this[_0x19517b(0x445)]['error'](_0x186e81),this[_0x19517b(0x23d)](!0x1);}}[_0x3b22f(0x22e)](){const _0x40b0e7=_0x3b22f;throw new Error(_0x40b0e7(0x202));}['onRemoteRej'](){const _0x321ffb=_0x3b22f;throw new Error(_0x321ffb(0x4e9));}[_0x3b22f(0x2ea)](){const _0x2cbf8c=_0x3b22f;return this['_clearScheduledTask'](),this[_0x2cbf8c(0x397)][_0x2cbf8c(0x5e4)](G,this['unitID'],this[_0x2cbf8c(0x331)],null,this[_0x2cbf8c(0x318)],this[_0x2cbf8c(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x223)](_0x5c075f){const _0x28c955=_0x3b22f,_0x4b56e6=_0x5c075f!=null?_0x5c075f:this[_0x28c955(0x5c1)]();this[_0x28c955(0x39d)]=new Date()[_0x28c955(0x534)](),this[_0x28c955(0x525)]=window[_0x28c955(0x576)](()=>{const _0x53af03=_0x28c955;this['_clearScheduledTask']();let _0x27ebdd=null;switch(this[_0x53af03(0x331)]){case j[_0x53af03(0x3c0)]:{_0x27ebdd=it(this[_0x53af03(0x318)],this['unitID'],this['_univerInstanceService'],this[_0x53af03(0x2d5)],this['_memberService']);break;}case j['UNIVER_DOC']:{this['_pendingMutations'][_0x53af03(0x346)](_0x2c9219=>_0x2c9219['id']===V['RichTextEditingMutation']['id'])?_0x27ebdd=As(this['_pendingMutations'],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]):_0x27ebdd=it(this[_0x53af03(0x318)],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53af03(0x331)]+_0x53af03(0x278));}const {changeset:_0x247111,pendingMutations:_0x4a2163}=_0x27ebdd;this[_0x53af03(0x51a)]['onSendChangeset'](_0x247111);const _0x15a48e=_0x4a2163['length']?this[_0x53af03(0x397)]['createInstance'](k,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,_0x4a2163,this[_0x53af03(0x51a)]):this[_0x53af03(0x397)]['createInstance'](W,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,this[_0x53af03(0x51a)]);_0x15a48e[_0x53af03(0x4ad)](),this[_0x53af03(0x51a)][_0x53af03(0x46e)](this,_0x15a48e);},_0x4b56e6);}['_getSendChangesetTimeout'](){const _0x5018ed=_0x3b22f;var _0x431666;const _0x3e3ba4=this[_0x5018ed(0x266)][_0x5018ed(0x504)](A);return(_0x431666=_0x3e3ba4==null?void 0x0:_0x3e3ba4[_0x5018ed(0x3aa)])!=null?_0x431666:Kt;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x5b78f6=_0x3b22f;this[_0x5b78f6(0x525)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x3b22f(0x23d)](_0x79f4cd){const _0x222335=_0x3b22f;return this[_0x222335(0x29a)](),this[_0x222335(0x397)][_0x222335(0x5e4)](F,this[_0x222335(0x40e)],this['type'],null,this[_0x222335(0x318)],this[_0x222335(0x51a)],_0x79f4cd);}};x=z([g(0x4,a['Inject'](a[_0x3b22f(0x252)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports['LocalCacheService'])),g(0x7,a[_0x3b22f(0x492)](q)),g(0x8,a[_0x3b22f(0x308)]),g(0x9,a[_0x3b22f(0x323)]),g(0xa,a[_0x3b22f(0x5ad)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b22f(0x26b)]),g(0xd,a[_0x3b22f(0x519)])],x);let W=class extends J{constructor(_0x17c108,_0x3438d4,_0x288115,_0x245dd3,_0x37c6df,_0x382836,_0x4f469b,_0x2466d3,_0x33066c,_0x4f1a23,_0x5be437){const _0xe75393=_0x3b22f;super(_0x17c108,_0x3438d4,_0x288115,[],_0x245dd3,_0x2466d3,_0x5be437,_0x382836,_0x4f469b),d(this,_0xe75393(0x3d2),_0xe75393(0x496)),(this[_0xe75393(0x397)]=_0x37c6df,this['_logService']=_0x33066c,this['_transformService']=_0x4f1a23);}['appendMutation'](_0x5d7270){const _0x4d0a65=_0x3b22f,_0x10918e=this[_0x4d0a65(0x397)][_0x4d0a65(0x5e4)](k,this['unitID'],this['type'],this[_0x4d0a65(0x43e)],[_0x5d7270],this[_0x4d0a65(0x51a)]);return _0x10918e['_updateLocalCache'](),_0x10918e;}['onRemoteChangeset'](_0xe3426f){const _0x1fb06c=_0x3b22f;if(this['_checkMissing'](_0xe3426f))return this[_0x1fb06c(0x397)][_0x1fb06c(0x5e4)](H,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],this[_0x1fb06c(0x43e)],[],null,[_0xe3426f],this[_0x1fb06c(0x51a)]);try{const _0xecb6e9=this[_0x1fb06c(0x294)][_0x1fb06c(0x29b)]([_0xe3426f],[this[_0x1fb06c(0x43e)]],!0x1);if(_[_0x1fb06c(0x518)](_0xecb6e9)){const {c1Prime:_0x3634cd,c2Prime:_0x421ce7}=_0xecb6e9;this[_0x1fb06c(0x515)](_0x3634cd[0x0]),_0x421ce7[0x0][_0x1fb06c(0x4c1)]=this[_0x1fb06c(0x490)]();const _0x46556c=this['_injector']['createInstance'](W,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],_0x421ce7[0x0],this[_0x1fb06c(0x51a)]);return _0x46556c[_0x1fb06c(0x4ad)](),_0x46556c;}return this[_0x1fb06c(0x23d)](!0x1);}catch(_0x38101b){return this[_0x1fb06c(0x445)][_0x1fb06c(0x49d)](_0x38101b),this[_0x1fb06c(0x23d)](!0x1);}}['onRemoteAck'](_0x259296){const _0x519d1c=_0x3b22f,_0x46d085=this[_0x519d1c(0x2d5)]['getCurrentRevOfUnit'](this[_0x519d1c(0x40e)]);if(_0x259296[_0x519d1c(0x40d)]<_0x46d085-0x1)return this;if(this[_0x519d1c(0x235)](_0x259296))return this['_injector'][_0x519d1c(0x5e4)](H,this['unitID'],this[_0x519d1c(0x331)],null,[],this[_0x519d1c(0x43e)],[],this[_0x519d1c(0x51a)]);this[_0x519d1c(0x237)]();const _0x1a11ce=this['_injector'][_0x519d1c(0x5e4)](se,this['unitID'],this['type'],this[_0x519d1c(0x51a)]);return _0x1a11ce[_0x519d1c(0x4ad)](),_0x1a11ce;}['onRemoteRej'](_0x5b711a){const _0x2ec05e=_0x3b22f;return this[_0x2ec05e(0x23d)](!!(_0x5b711a!=null&&_0x5b711a['isPermissionRej']));}['toggleOffline'](){const _0x526254=_0x3b22f;return this[_0x526254(0x397)][_0x526254(0x5e4)](G,this[_0x526254(0x40e)],this[_0x526254(0x331)],this[_0x526254(0x43e)],[],this[_0x526254(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x30d5ed=_0x3b22f;this['_handler'][_0x30d5ed(0x55d)](this[_0x30d5ed(0x43e)]);}['_onConflict'](_0x5b100f){const _0x526352=_0x3b22f;return this['_injector'][_0x526352(0x5e4)](F,this['unitID'],this['type'],this[_0x526352(0x43e)],[],this[_0x526352(0x51a)],_0x5b100f);}};W=z([g(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x5,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x308)]),g(0x9,_[_0x3b22f(0x378)]),g(0xa,a[_0x3b22f(0x519)])],W);let k=class extends J{constructor(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x499f13,_0x3059f4,_0x1fcb43,_0x45e0ac,_0x2913c1,_0xa04f29,_0x172417){const _0x134223=_0x3b22f;super(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x45e0ac,_0x172417,_0x3059f4,_0x1fcb43),d(this,_0x134223(0x3d2),_0x134223(0x2f6)),(this[_0x134223(0x397)]=_0x499f13,this['_logService']=_0x2913c1,this[_0x134223(0x294)]=_0xa04f29);}['appendMutation'](_0x2f60e3){const _0x368216=_0x3b22f;return this['_pendingMutations'][_0x368216(0x1ed)](_0x2f60e3),this;}[_0x3b22f(0x2af)](_0x531480){const _0x481f18=_0x3b22f;if(this[_0x481f18(0x235)](_0x531480))return this[_0x481f18(0x397)]['createInstance'](H,this[_0x481f18(0x40e)],this['type'],this[_0x481f18(0x43e)],this[_0x481f18(0x318)],null,[_0x531480],this[_0x481f18(0x51a)]);try{const _0x4b13ea=this[_0x481f18(0x294)][_0x481f18(0x29b)]([_0x531480],[this[_0x481f18(0x43e)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4b13ea)){const {c1Prime:_0x5178da,c2Prime:_0x157aa2}=_0x4b13ea,_0x4f63c6=this[_0x481f18(0x294)][_0x481f18(0x261)](_0x5178da[0x0],this['_pendingMutations']);if(_[_0x481f18(0x3db)](_0x4f63c6)){const {c1Prime:_0xe4f1fd,m2Prime:_0x10dc68}=_0x4f63c6;return this['_executeRemoteChangeset'](_0xe4f1fd),_0x157aa2[0x0][_0x481f18(0x4c1)]=this[_0x481f18(0x490)](),this['_injector']['createInstance'](k,this[_0x481f18(0x40e)],this['type'],_0x157aa2[0x0],_0x10dc68,this['_handler']);}throw _0x4f63c6[_0x481f18(0x49d)];}throw _0x4b13ea[_0x481f18(0x49d)];}catch(_0x515589){return this[_0x481f18(0x445)][_0x481f18(0x49d)](_0x515589),this[_0x481f18(0x23d)](!0x1);}}[_0x3b22f(0x22e)](_0x39188b){const _0x3d719=_0x3b22f;if(this[_0x3d719(0x235)](_0x39188b))return this[_0x3d719(0x397)][_0x3d719(0x5e4)](H,this[_0x3d719(0x40e)],this['type'],null,this[_0x3d719(0x318)],this[_0x3d719(0x43e)],[],this[_0x3d719(0x51a)]);this[_0x3d719(0x237)]();const _0xf9ed1=this[_0x3d719(0x397)][_0x3d719(0x5e4)](x,this[_0x3d719(0x40e)],this['type'],this[_0x3d719(0x318)],this[_0x3d719(0x51a)]);return _0xf9ed1['_schedule'](),_0xf9ed1[_0x3d719(0x4ad)](),_0xf9ed1;}['onRemoteRej'](_0x425b42){const _0x40165b=_0x3b22f;return this[_0x40165b(0x23d)](!!(_0x425b42!=null&&_0x425b42['isPermissionRej']));}[_0x3b22f(0x2ea)](){const _0x57dc10=_0x3b22f;return this['_injector']['createInstance'](G,this[_0x57dc10(0x40e)],this[_0x57dc10(0x331)],this[_0x57dc10(0x43e)],this[_0x57dc10(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x2b6)](){const _0x552a80=_0x3b22f;this[_0x552a80(0x51a)][_0x552a80(0x55d)](this[_0x552a80(0x43e)]);}[_0x3b22f(0x23d)](_0x2f419d){const _0x52494c=_0x3b22f;return this[_0x52494c(0x397)][_0x52494c(0x5e4)](F,this[_0x52494c(0x40e)],this['type'],null,this[_0x52494c(0x318)],this[_0x52494c(0x51a)],_0x2f419d);}};k=z([g(0x5,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x308)]),g(0xa,_[_0x3b22f(0x378)]),g(0xb,a[_0x3b22f(0x519)])],k);let F=class extends J{constructor(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x3bcc04=!0x1,_0x311f1a,_0x277556,_0x350fa5,_0x50273f,_0x2924e3,_0x1b511a,_0x1f9a5b){const _0xe18a4b=_0x3b22f;super(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x277556,_0x350fa5,_0x2924e3,_0x50273f),d(this,_0xe18a4b(0x3d2),_0xe18a4b(0x36f)),(this[_0xe18a4b(0x1e3)]=_0x3bcc04,this[_0xe18a4b(0x444)]=_0x311f1a,this[_0xe18a4b(0x316)]=_0x1b511a,this[_0xe18a4b(0x590)]=_0x1f9a5b,this[_0xe18a4b(0x3c8)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3b22f(0x22e)](){return this;}[_0x3b22f(0x377)](){return this;}[_0x3b22f(0x2ea)](){return this;}['toggleOnline'](){return this;}[_0x3b22f(0x2b6)](){const _0x18e8a6=_0x3b22f;throw new Error(_0x18e8a6(0x277));}[_0x3b22f(0x2cd)](){const _0x4d4a23=_0x3b22f;this['_localCacheService'][_0x4d4a23(0x371)](this['unitID'],this[_0x4d4a23(0x331)],null,[]);}[_0x3b22f(0x3c8)](){const _0x4ee0c6=_0x3b22f;this[_0x4ee0c6(0x1e3)]?this[_0x4ee0c6(0x590)][_0x4ee0c6(0x224)]({'title':this['_localeService']['t'](_0x4ee0c6(0x483)),'content':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x383)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x271)),'content':this['_localeService']['t'](_0x4ee0c6(0x59e)),'type':_0x4ee0c6(0x49d),'duration':0x0});}[_0x3b22f(0x2e7)](){const _0x12c4e7=_0x3b22f;this['_permissionService'][_0x12c4e7(0x449)](new C[(_0x12c4e7(0x5d2))](this[_0x12c4e7(0x40e)])['id'],!0x1);}};F=z([g(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x300)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x519)]),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0xb,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),g(0xc,N[_0x3b22f(0x2e5)])],F);let G=class extends J{constructor(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x1cc8e8,_0x192cb0,_0xa1f126,_0x3f97fc,_0x531033){const _0x3d6138=_0x3b22f;super(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x3f97fc,_0x531033,_0x192cb0,_0xa1f126),d(this,_0x3d6138(0x3d2),_0x3d6138(0x45f)),this[_0x3d6138(0x397)]=_0x1cc8e8;}[_0x3b22f(0x3bb)](_0x226807){const _0x2c3411=_0x3b22f;return this['_pendingMutations'][_0x2c3411(0x1ed)](_0x226807),this[_0x2c3411(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x3bd28d){const _0x19dcb1=_0x3b22f;throw new Error(_0x19dcb1(0x241));}[_0x3b22f(0x22e)](){const _0x4e9009=_0x3b22f;throw new Error(_0x4e9009(0x325));}[_0x3b22f(0x377)](){const _0x4ed715=_0x3b22f;throw new Error(_0x4ed715(0x506));}['toggleOffline'](){return this;}[_0x3b22f(0x3ff)](){const _0x5f0faa=_0x3b22f,{_injector:_0x5902e4,_pendingMutations:_0x295786,_awaitingChangeset:_0xf5a5ce,unitID:_0x4b2638,_handler:_0x75b81b,type:_0x3fa9d0}=this,_0x1c4b23=Rt(_0x5902e4,_0x4b2638,_0x3fa9d0,_0xf5a5ce,_0x295786,_0x75b81b);return _0x1c4b23 instanceof x?_0x1c4b23['_schedule']():(_0x1c4b23 instanceof k||_0x1c4b23 instanceof W)&&_0x1c4b23[_0x5f0faa(0x2b6)](),_0x1c4b23;}['resend'](){const _0x7189f5=_0x3b22f;throw new Error(_0x7189f5(0x4bc));}};G=z([g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a['Inject'](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x519)])],G);let H=class extends J{constructor(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x4909ac,_0x5537b4,_0x3426e2,_0x4e43c0,_0x2eec28,_0x360c35,_0x4c8330,_0x2029c1,_0x2122c9,_0x2d2827){const _0x42b86b=_0x3b22f;super(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x3426e2,_0x2029c1,_0x2122c9,_0x2eec28,_0x360c35),d(this,_0x42b86b(0x3d2),_0x42b86b(0x3d8)),(this['_acknowledgedAwaitingChangeset']=_0x4909ac,this['_queuedRemoteChangesets']=_0x5537b4,this['_injector']=_0x4e43c0,this[_0x42b86b(0x445)]=_0x4c8330,this[_0x42b86b(0x294)]=_0x2d2827);}[_0x3b22f(0x226)](_0x74d4a9){const _0x5df137=_0x3b22f;try{const _0x145cb2=[..._0x74d4a9,...this[_0x5df137(0x4da)]],_0x202f2e=[this[_0x5df137(0x43e)]||this['_acknowledgedAwaitingChangeset']][_0x5df137(0x3f9)](_0x338476=>!!_0x338476);let _0x66311c,_0xdd8f41;if(_0x202f2e[_0x5df137(0x291)]){const _0x3780da=this[_0x5df137(0x294)][_0x5df137(0x29b)](_0x145cb2,_0x202f2e,!0x1);if(!_[_0x5df137(0x518)](_0x3780da))throw _0x3780da[_0x5df137(0x49d)];_0x66311c=_0x3780da[_0x5df137(0x5d4)],_0xdd8f41=_0x3780da[_0x5df137(0x439)];}else _0x66311c=_0x145cb2,_0xdd8f41=[];let _0x3c0939=this['_pendingMutations'];_0x66311c[_0x5df137(0x339)](_0x416e03=>{const _0x34e6c3=_0x5df137;let _0x57d081;if(_0x3c0939[_0x34e6c3(0x291)]){const _0x84af52=this['_transformService']['transformMutationsWithChangeset'](_0x416e03,_0x3c0939);if(!_[_0x34e6c3(0x3db)](_0x84af52))throw _0x84af52['error'];_0x57d081=_0x84af52[_0x34e6c3(0x5d4)],_0x3c0939=_0x84af52[_0x34e6c3(0x2e8)];}else _0x57d081=_0x416e03;this['_executeRemoteChangeset'](_0x57d081);}),this[_0x5df137(0x446)]&&this[_0x5df137(0x237)](),this['_awaitingChangeset']&&_0xdd8f41['length']&&(_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision']());let _0x1f5e8c;if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]!==0x0)_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](k,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],_0x3c0939,this[_0x5df137(0x51a)]);else{if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]===0x0)_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision'](),_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](W,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],this[_0x5df137(0x51a)]);else{if(_0x3c0939[_0x5df137(0x291)]!==0x0){const _0x4e28c7=this[_0x5df137(0x397)][_0x5df137(0x5e4)](x,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],_0x3c0939,this[_0x5df137(0x51a)]);_0x4e28c7[_0x5df137(0x223)](),_0x1f5e8c=_0x4e28c7;}else _0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](se,this[_0x5df137(0x40e)],this['type'],this[_0x5df137(0x51a)]);}}return _0x1f5e8c[_0x5df137(0x4ad)](),_0x1f5e8c;}catch(_0x914e92){return this[_0x5df137(0x445)][_0x5df137(0x49d)]('[FetchMissState]',_0x5df137(0x47d),_0x914e92),this[_0x5df137(0x397)][_0x5df137(0x5e4)](F,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],this['_awaitingChangeset'],this[_0x5df137(0x318)],this[_0x5df137(0x51a)],!0x1);}}[_0x3b22f(0x2b6)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b22f(0x3bb)](_0x1be356){const _0x3b7bc3=_0x3b22f;return this[_0x3b7bc3(0x318)][_0x3b7bc3(0x1ed)](_0x1be356),this;}['onRemoteChangeset'](_0x538ccf){const _0x1e5685=_0x3b22f;return this[_0x1e5685(0x4da)][_0x1e5685(0x1ed)](_0x538ccf),this;}['onRemoteAck'](_0x1f1a63){const _0x17a352=_0x3b22f;if(this[_0x17a352(0x43e)])return this[_0x17a352(0x446)]=this[_0x17a352(0x43e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3b22f(0x377)](_0x381f48){const _0x446f74=_0x3b22f;return this[_0x446f74(0x23d)](!!(_0x381f48!=null&&_0x381f48[_0x446f74(0x414)]));}[_0x3b22f(0x2ea)](){const _0x1a8ffe=_0x3b22f;return this[_0x1a8ffe(0x397)][_0x1a8ffe(0x5e4)](G,this[_0x1a8ffe(0x40e)],this[_0x1a8ffe(0x331)],this[_0x1a8ffe(0x43e)],this[_0x1a8ffe(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['_onConflict'](_0x4f38c3){const _0x4ca130=_0x3b22f;return this[_0x4ca130(0x397)][_0x4ca130(0x5e4)](F,this[_0x4ca130(0x40e)],this[_0x4ca130(0x331)],this[_0x4ca130(0x43e)],this['_pendingMutations'],this['_handler'],_0x4f38c3);}};H=z([g(0x7,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x8,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x308)]),g(0xb,a[_0x3b22f(0x323)]),g(0xc,a[_0x3b22f(0x519)]),g(0xd,_[_0x3b22f(0x378)])],H);function Rt(_0x3ef584,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6){const _0x4c9515=_0x3b22f;return _0x4617c1&&_0x3398ed[_0x4c9515(0x291)]?_0x3ef584[_0x4c9515(0x5e4)](k,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6):_0x4617c1?_0x3ef584[_0x4c9515(0x5e4)](W,_0x5ac996,_0x2d70ef,_0x4617c1,_0x5ecee6):_0x3398ed[_0x4c9515(0x291)]?_0x3ef584['createInstance'](x,_0x5ac996,_0x2d70ef,_0x3398ed,_0x5ecee6):_0x3ef584['createInstance'](se,_0x5ac996,_0x2d70ef,_0x5ecee6);}var Hs=Object[_0x3b22f(0x1ff)],xs=Object[_0x3b22f(0x246)],Ke=(_0x160de5,_0xfd1bc0,_0x2ebcac,_0x58d4f8)=>{const _0x2da4df=_0x3b22f;for(var _0xb2c9f5=_0x58d4f8>0x1?void 0x0:_0x58d4f8?xs(_0xfd1bc0,_0x2ebcac):_0xfd1bc0,_0x536d4d=_0x160de5[_0x2da4df(0x291)]-0x1,_0xd4da79;_0x536d4d>=0x0;_0x536d4d--)(_0xd4da79=_0x160de5[_0x536d4d])&&(_0xb2c9f5=(_0x58d4f8?_0xd4da79(_0xfd1bc0,_0x2ebcac,_0xb2c9f5):_0xd4da79(_0xb2c9f5))||_0xb2c9f5);return _0x58d4f8&&_0xb2c9f5&&Hs(_0xfd1bc0,_0x2ebcac,_0xb2c9f5),_0xb2c9f5;},I=(_0x403704,_0x14f853)=>(_0x48265e,_0x5bf123)=>_0x14f853(_0x48265e,_0x5bf123,_0x403704);exports[_0x3b22f(0x2cb)]=class extends a[_0x3b22f(0x398)]{constructor(_0x48580e,_0x532a8f,_0x14e226,_0x422fc3,_0x3ae266,_0x565fa5,_0x49ed9a,_0x3491e0,_0x5992d3,_0x13eb14,_0xf4cf7c,_0x57887e,_0x2aa255){const _0x54dfef=_0x3b22f;super(),d(this,_0x54dfef(0x4d6),new v[(_0x54dfef(0x502))](null)),d(this,_0x54dfef(0x3ce),this[_0x54dfef(0x4d6)][_0x54dfef(0x56e)]()),d(this,_0x54dfef(0x5d6)),d(this,_0x54dfef(0x4e1),!0x1),d(this,_0x54dfef(0x386),this[_0x54dfef(0x3ce)][_0x54dfef(0x3de)](v[_0x54dfef(0x57b)](_0x3d1917=>_0x3d1917?_0x3d1917[_0x54dfef(0x3d2)]:y[_0x54dfef(0x3ea)]),v[_0x54dfef(0x42e)](0x1))),d(this,_0x54dfef(0x2fb),!0x1),d(this,_0x54dfef(0x5b1),[]),(this['unitID']=_0x48580e,this[_0x54dfef(0x2bf)]=_0x532a8f,this[_0x54dfef(0x58b)]=_0x14e226,this['_injector']=_0x422fc3,this[_0x54dfef(0x522)]=_0x3ae266,this[_0x54dfef(0x260)]=_0x565fa5,this[_0x54dfef(0x316)]=_0x49ed9a,this[_0x54dfef(0x2d5)]=_0x3491e0,this[_0x54dfef(0x445)]=_0x5992d3,this[_0x54dfef(0x4b9)]=_0x13eb14,this[_0x54dfef(0x31d)]=_0xf4cf7c,this[_0x54dfef(0x444)]=_0x57887e,this[_0x54dfef(0x599)]=_0x2aa255);}get[_0x3b22f(0x374)](){const _0x4166e6=_0x3b22f;return this[_0x4166e6(0x5d6)];}async['init'](){const _0x5319f8=_0x3b22f;if(this[_0x5319f8(0x374)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5319f8(0x341)]();}[_0x3b22f(0x465)](){const _0x4671fa=_0x3b22f;return this[_0x4671fa(0x4e1)]=!0x0,a[_0x4671fa(0x526)](()=>{const _0x55db6b=_0x4671fa;this['_collaborationPaused']=!0x1,this[_0x55db6b(0x2df)]();});}[_0x3b22f(0x334)](_0x564dad){const _0x2f2f1f=_0x3b22f;this[_0x2f2f1f(0x5d6)]=_0x564dad,this[_0x2f2f1f(0x4d6)][_0x2f2f1f(0x52d)](_0x564dad);}async[_0x3b22f(0x341)](){const _0x31c6df=_0x3b22f;var _0x10642f;this[_0x31c6df(0x334)](await this[_0x31c6df(0x43b)]()),this[_0x31c6df(0x599)]&&((_0x10642f=this['_singleActiveUnitService'])==null||_0x10642f[_0x31c6df(0x558)](this[_0x31c6df(0x40e)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x31c6df(0x568)](this[_0x31c6df(0x40e)])['subscribe'](_0x40ca4e=>{const _0x3c805f=_0x31c6df;this[_0x3c805f(0x445)][_0x3c805f(0x320)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x40ca4e),_0x40ca4e===bt[_0x3c805f(0x2b0)]?(this[_0x3c805f(0x31d)]['show']({'content':this[_0x3c805f(0x316)]['t'](_0x3c805f(0x44f)),'type':X['MessageType'][_0x3c805f(0x3b7)]}),this[_0x3c805f(0x444)][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this[_0x3c805f(0x40e)])['id'],!0x0);})));let _0x383cbb=!0x1;return this['disposeWithMe'](this[_0x31c6df(0x2bf)][_0x31c6df(0x1f1)][_0x31c6df(0x42c)](_0x20810e=>{const _0x1cc7f1=_0x31c6df;_0x20810e===$[_0x1cc7f1(0x22f)]?this[_0x1cc7f1(0x553)](_0x383cbb):_0x20810e===$['OFFLINE']&&(_0x383cbb=!0x0,this[_0x1cc7f1(0x37f)]());})),this[_0x31c6df(0x283)](this[_0x31c6df(0x2bf)][_0x31c6df(0x3b5)]['subscribe'](_0x285246=>{const _0x3b9096=_0x31c6df;try{switch(_0x285246[_0x3b9096(0x3cc)]){case _[_0x3b9096(0x44c)][_0x3b9096(0x329)]:{this[_0x3b9096(0x548)](_[_0x3b9096(0x543)](_0x285246[_0x3b9096(0x45b)]));break;}case _[_0x3b9096(0x44c)]['CHANGESET_ACK']:{this[_0x3b9096(0x535)](_0x285246['data']);break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x36e)]:{this[_0x3b9096(0x582)]();break;}case _[_0x3b9096(0x44c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x285246[_0x3b9096(0x45b)][_0x3b9096(0x528)][_0x3b9096(0x57b)](_0x2ba293=>_[_0x3b9096(0x543)](_0x2ba293)));break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x4a2)]:this[_0x3b9096(0x582)]({'isPermissionRej':!0x0});}}catch(_0x392294){throw console[_0x3b9096(0x49d)](_0x3b9096(0x513),_0x392294),_0x392294;}})),this[_0x31c6df(0x5d6)];}['_unlockTransition'](){const _0xd3b062=_0x3b22f;this[_0xd3b062(0x2fb)]=!0x1;}['_lockTransition'](){if(this['_transitionLocked'])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x3b22f(0x477)](_0x77989e){const _0x1ed8de=_0x3b22f;this[_0x1ed8de(0x319)](),this[_0x1ed8de(0x334)](this[_0x1ed8de(0x5d6)][_0x1ed8de(0x3bb)](_0x77989e)),this[_0x1ed8de(0x2ca)]();}['_onRemoteChangeset'](_0x4af0dc){const _0x48716e=_0x3b22f;if(!(_0x4af0dc['revision']<=this[_0x48716e(0x2d5)][_0x48716e(0x42d)](this[_0x48716e(0x40e)]))){if(this[_0x48716e(0x4e1)]){this['_remoteChangesetQueue'][_0x48716e(0x1ed)](_0x4af0dc);return;}this['_applyRemoteChangeset'](_0x4af0dc);}}[_0x3b22f(0x2df)](){const _0x78af4e=_0x3b22f;this['_remoteChangesetQueue'][_0x78af4e(0x339)](_0x5620b2=>this[_0x78af4e(0x38c)](_0x5620b2)),this[_0x78af4e(0x5b1)]=[];}[_0x3b22f(0x38c)](_0x2f424b){const _0xf15ca3=_0x3b22f,_0x49fc85=this[_0xf15ca3(0x260)]['interceptor'][_0xf15ca3(0x284)](this[_0xf15ca3(0x260)][_0xf15ca3(0x542)][_0xf15ca3(0x40b)]()[_0xf15ca3(0x580)])(_0x2f424b[_0xf15ca3(0x3a2)],null)||_0x2f424b['mutations'],_0x7c8381={..._0x2f424b,'mutations':_0x49fc85};this['_lockTransition'](),this[_0xf15ca3(0x334)](this[_0xf15ca3(0x5d6)][_0xf15ca3(0x2af)](_0x7c8381)),this[_0xf15ca3(0x2ca)]();}[_0x3b22f(0x535)](_0x3c226a){const _0x31c2e8=_0x3b22f;this[_0x31c2e8(0x319)](),this['_updateState'](this[_0x31c2e8(0x5d6)][_0x31c2e8(0x22e)](_0x3c226a)),this[_0x31c2e8(0x2ca)]();}[_0x3b22f(0x582)](_0x41e1e6){const _0x29e309=_0x3b22f;this[_0x29e309(0x319)](),this[_0x29e309(0x334)](this['_state'][_0x29e309(0x377)](_0x41e1e6)),this['_unlockTransition']();}[_0x3b22f(0x410)](_0x1f895f){const _0x24fa9a=_0x3b22f;if(!(this[_0x24fa9a(0x5d6)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x58e2db=_0x1f895f['map'](_0x59d6b2=>{const _0x5c5afc=_0x24fa9a,_0x655a8c=this[_0x5c5afc(0x260)]['interceptor'][_0x5c5afc(0x284)](this[_0x5c5afc(0x260)][_0x5c5afc(0x542)][_0x5c5afc(0x40b)]()[_0x5c5afc(0x580)])(_0x59d6b2[_0x5c5afc(0x3a2)],null)||_0x59d6b2[_0x5c5afc(0x3a2)];return{..._0x59d6b2,'mutations':_0x655a8c};});this['_lockTransition'](),this[_0x24fa9a(0x334)](this[_0x24fa9a(0x5d6)]['onMissedChangesetFetched'](_0x58e2db)),this['_unlockTransition']();}[_0x3b22f(0x37f)](){const _0x360964=_0x3b22f;this['_lockTransition'](),this['_updateState'](this['_state'][_0x360964(0x2ea)]()),this[_0x360964(0x2ca)]();}['_toggleOnline'](_0x5d10bc=!0x1){const _0x4537d5=_0x3b22f;this[_0x4537d5(0x319)](),this[_0x4537d5(0x334)](this[_0x4537d5(0x5d6)][_0x4537d5(0x3ff)]()),this['_unlockTransition']();const _0x20894f=this['_state'];_0x5d10bc&&_0x20894f instanceof se&&(this['_lockTransition'](),this[_0x4537d5(0x334)](_0x20894f[_0x4537d5(0x22c)]()),this['_unlockTransition']());}async[_0x3b22f(0x43b)](){return new Promise(_0x41372b=>{const _0x4b7d8b=_0x2c53;this[_0x4b7d8b(0x2bf)][_0x4b7d8b(0x1f1)][_0x4b7d8b(0x3de)](v['take'](0x1))['subscribe'](async _0x55a680=>{const _0x434186=_0x4b7d8b;_0x41372b(await this['_createInitialStateImpl'](_0x55a680===$[_0x434186(0x22f)]));});});}['_createHandler'](){const _0x1de144=_0x3b22f,_0x2b0b49=this[_0x1de144(0x40e)];return{'onStateChange':(_0x115799,_0x1f839f)=>{const _0x46f159=_0x1de144;if(_0x115799!==this[_0x46f159(0x5d6)])throw new Error(_0x46f159(0x265)+_0x115799['status']+'\x0aAfter:\x20'+_0x1f839f[_0x46f159(0x3d2)]+_0x46f159(0x491)+this[_0x46f159(0x5d6)][_0x46f159(0x3d2)]);this[_0x46f159(0x334)](_0x1f839f);},'onSendChangeset':_0x114f7b=>{const _0x442177=_0x1de144,_0x4a598a={'eventID':_[_0x442177(0x44c)][_0x442177(0x5ac)],'data':{'unitID':_0x114f7b[_0x442177(0x40e)],'unitType':this[_0x442177(0x58b)],'changeset':_0x114f7b,'memberID':this['session']['getMemberID']()}};this[_0x442177(0x2bf)][_0x442177(0x3c5)](_0x4a598a,this[_0x442177(0x40e)]);},'onMissingChangesets':({from:_0x1382ec,to:_0x5b4eb6})=>{const _0x4018a4=_0x1de144;this['_logService'][_0x4018a4(0x320)]('[CollaborationEntity]',_0x4018a4(0x42a)+_0x1382ec+_0x4018a4(0x239)+_0x5b4eb6);const _0x1af9c6={'eventID':_[_0x4018a4(0x44c)]['FETCH_MISSING'],'data':{'unitID':_0x2b0b49,'unitType':this[_0x4018a4(0x58b)],'from':_0x1382ec,'to':_0x5b4eb6}};this[_0x4018a4(0x2bf)][_0x4018a4(0x3c5)](_0x1af9c6,this[_0x4018a4(0x40e)]);}};}async['_createInitialStateImpl'](_0x41b1ac){const _0x276bc3=_0x3b22f;var _0xf7cc9d,_0x50f3c4;const _0x63dd6d=await this[_0x276bc3(0x522)][_0x276bc3(0x4dd)](this[_0x276bc3(0x40e)]),_0x249941=(_0xf7cc9d=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x3a2)])!=null?_0xf7cc9d:[],_0x34b982=(_0x50f3c4=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x5eb)])!=null?_0x50f3c4:null,_0x2fa82f=this[_0x276bc3(0x40e)];try{this[_0x276bc3(0x4b4)](_0x34b982,_0x249941);}catch(_0x579cfa){this[_0x276bc3(0x445)][_0x276bc3(0x49d)](_0x579cfa);}const _0x48f18e=this['_createHandler']();if(_0x41b1ac){const _0x644fe4=Rt(this[_0x276bc3(0x397)],_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);return _0x644fe4 instanceof x?_0x644fe4[_0x276bc3(0x223)]():(_0x644fe4 instanceof k||_0x644fe4 instanceof W)&&_0x644fe4[_0x276bc3(0x2b6)](),_0x644fe4;}return this['_injector'][_0x276bc3(0x5e4)](G,_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);}[_0x3b22f(0x4b4)](_0x5c3cd2,_0x55560b){const _0x40514d=_0x3b22f;var _0x2ec1bb,_0x56c5fd;const _0x583add=this[_0x40514d(0x260)][_0x40514d(0x542)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x40514d(0x40b)]()['COMPRESS_MUTATION_APPLY']);(_0x2ec1bb=_0x583add((_0x5c3cd2==null?void 0x0:_0x5c3cd2[_0x40514d(0x3a2)])||[],null))==null||_0x2ec1bb[_0x40514d(0x339)](_0x51410=>this[_0x40514d(0x4b9)]['executeCommand'](_0x51410['id'],_0x51410[_0x40514d(0x3b6)])),(_0x56c5fd=_0x583add(_0x55560b||[],null))==null||_0x56c5fd[_0x40514d(0x339)](_0x507e63=>this[_0x40514d(0x4b9)][_0x40514d(0x2fc)](_0x507e63['id'],_0x507e63[_0x40514d(0x3b6)]));}},exports['CollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x308)]),I(0x9,a[_0x3b22f(0x323)]),I(0xa,N[_0x3b22f(0x2e3)]),I(0xb,a[_0x3b22f(0x300)]),I(0xc,a[_0x3b22f(0x5c6)](be))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0xcc370e,_0x5d1ef5,_0x547cfb,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x6a105,_0x2b28d7,_0x2aa0f2,_0x1f1957,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da){const _0xeec46f=_0x3b22f;super(_0xcc370e,_0x547cfb,_0x5d1ef5,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da),this['unitID']=_0xcc370e,this['type']=_0x5d1ef5,this['_docStateChangeManagerService']=_0x6a105,this[_0xeec46f(0x459)]=_0x2b28d7,this['_docTransformSelectionsService']=_0x2aa0f2,this[_0xeec46f(0x335)]=_0x1f1957;}[_0x3b22f(0x302)](){const _0x56d0d1=_0x3b22f,_0x5a9a39=super['_createHandler']();return _0x5a9a39['onTransformIME']=_0xb18ea3=>this['_docTransformIMECacheService'][_0x56d0d1(0x4df)](_0xb18ea3),_0x5a9a39[_0x56d0d1(0x24a)]=_0x301c0f=>this[_0x56d0d1(0x25c)][_0x56d0d1(0x4fb)](_0x301c0f),_0x5a9a39[_0x56d0d1(0x373)]=_0x49cdb1=>this['_docSyncEditingCollabCursorService'][_0x56d0d1(0x1f3)](_0x49cdb1),_0x5a9a39[_0x56d0d1(0x357)]=_0x540ee1=>this[_0x56d0d1(0x459)][_0x56d0d1(0x471)](_0x540ee1),_0x5a9a39;}async[_0x3b22f(0x341)](){const _0x462fcb=_0x3b22f,_0x239f7b=await super[_0x462fcb(0x341)]();return this['disposeWithMe'](this['_commandService'][_0x462fcb(0x2dd)]((_0x40ddb3,_0x75dab1)=>{const _0x55ec0f=_0x462fcb;if(_0x40ddb3[_0x55ec0f(0x331)]!==a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)]||_0x75dab1!=null&&_0x75dab1[_0x55ec0f(0x35e)]||_0x75dab1!=null&&_0x75dab1['onlyLocal'])return;const _0x114a41=_0x40ddb3[_0x55ec0f(0x3b6)];if((_0x114a41==null?void 0x0:_0x114a41[_0x55ec0f(0x3df)])!==this[_0x55ec0f(0x40e)])return;let _0x489b59=_0x40ddb3;if(_0x489b59['id']===V['RichTextEditingMutation']['id']){const _0x30add9=_0x489b59[_0x55ec0f(0x3b6)];_0x489b59={'id':V['RichTextEditingMutation']['id'],'type':a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)],'params':{'unitId':_0x30add9['unitId'],'actions':_0x30add9[_0x55ec0f(0x2b2)],'textRanges':null}};}const _0xa85dc8=this['_compressMutationService'][_0x55ec0f(0x542)][_0x55ec0f(0x284)](this[_0x55ec0f(0x260)][_0x55ec0f(0x542)][_0x55ec0f(0x40b)]()[_0x55ec0f(0x5f0)])([_0x489b59],null)||[_0x489b59];this[_0x55ec0f(0x477)](_0xa85dc8[0x0]);})),_0x239f7b;}},exports[_0x3b22f(0x403)]=Ke([I(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports['LocalCacheService'])),I(0x5,a[_0x3b22f(0x492)](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a['Inject'](me)),I(0xb,a['Inject'](Ye)),I(0xc,a['ILogService']),I(0xd,a[_0x3b22f(0x323)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3b22f(0x300)]),I(0x10,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x403)]),exports[_0x3b22f(0x5ef)]=class extends exports[_0x3b22f(0x2cb)]{constructor(_0x142e7f,_0x48a416,_0x277ecd,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0x31b5ff,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc){const _0x4e1f7c=_0x3b22f;super(_0x142e7f,_0x277ecd,_0x48a416,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc),this['unitID']=_0x142e7f,this[_0x4e1f7c(0x331)]=_0x48a416,this[_0x4e1f7c(0x215)]=_0x31b5ff;}[_0x3b22f(0x302)](){const _0x5e1304=_0x3b22f,_0x3af271=super[_0x5e1304(0x302)]();return _0x3af271[_0x5e1304(0x24a)]=_0xd8c40a=>this[_0x5e1304(0x215)][_0x5e1304(0x4fb)](_0xd8c40a),_0x3af271;}async[_0x3b22f(0x341)](){const _0x3e771e=_0x3b22f,_0x198363=await super['_init']();return this[_0x3e771e(0x283)](this[_0x3e771e(0x4b9)]['onCommandExecuted']((_0x26c8e4,_0x410b74)=>{const _0x578496=_0x3e771e;if(_0x26c8e4[_0x578496(0x331)]!==a[_0x578496(0x3b8)]['MUTATION']||_0x410b74!=null&&_0x410b74[_0x578496(0x35e)]||_0x410b74!=null&&_0x410b74['onlyLocal'])return;const _0x29ad82=_0x26c8e4[_0x578496(0x3b6)];if((_0x29ad82==null?void 0x0:_0x29ad82[_0x578496(0x3df)])!==this['unitID'])return;const _0x298b25=_0x26c8e4,_0x49c54=this[_0x578496(0x260)]['interceptor'][_0x578496(0x284)](this[_0x578496(0x260)]['interceptor']['getInterceptPoints']()[_0x578496(0x5f0)])([_0x298b25],null)||[_0x298b25];this[_0x578496(0x477)](_0x49c54[0x0]);})),_0x198363;}},exports[_0x3b22f(0x5ef)]=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),I(0x5,a[_0x3b22f(0x492)](_['CompressMutationService'])),I(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](ge)),I(0x9,a[_0x3b22f(0x308)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3b22f(0x2e3)]),I(0xc,a[_0x3b22f(0x300)]),I(0xd,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x5ef)]);var ks=Object[_0x3b22f(0x1ff)],Bs=Object[_0x3b22f(0x246)],Vs=(_0x558bfa,_0x22f976,_0x18e73b,_0x34ab58)=>{const _0x20a365=_0x3b22f;for(var _0x5522a8=_0x34ab58>0x1?void 0x0:_0x34ab58?Bs(_0x22f976,_0x18e73b):_0x22f976,_0x28597b=_0x558bfa[_0x20a365(0x291)]-0x1,_0x345db6;_0x28597b>=0x0;_0x28597b--)(_0x345db6=_0x558bfa[_0x28597b])&&(_0x5522a8=(_0x34ab58?_0x345db6(_0x22f976,_0x18e73b,_0x5522a8):_0x345db6(_0x5522a8))||_0x5522a8);return _0x34ab58&&_0x5522a8&&ks(_0x22f976,_0x18e73b,_0x5522a8),_0x5522a8;},Ue=(_0x3adbfe,_0x3bef86)=>(_0x13c532,_0x138c08)=>_0x3bef86(_0x13c532,_0x138c08,_0x3adbfe);exports[_0x3b22f(0x322)]=class extends a['RxDisposable']{constructor(_0x206825,_0x408b5e,_0x2c84ad){const _0x53983d=_0x3b22f;super(),d(this,_0x53983d(0x4de),new Map()),d(this,_0x53983d(0x3fd),new v['Subject']()),(this['_injector']=_0x206825,this[_0x53983d(0x27c)]=_0x408b5e,this[_0x53983d(0x340)]=_0x2c84ad,this[_0x53983d(0x341)]());}[_0x3b22f(0x4f2)](){const _0x5112bc=_0x3b22f;super[_0x5112bc(0x4f2)](),this['_entities']['forEach'](_0x44cf82=>_0x44cf82[_0x5112bc(0x4f2)]()),this[_0x5112bc(0x4de)][_0x5112bc(0x249)]();}[_0x3b22f(0x2fa)](_0x3493e9){const _0x357302=_0x3b22f;var _0x436337;return(_0x436337=this[_0x357302(0x4de)][_0x357302(0x34d)](_0x3493e9))!=null?_0x436337:null;}[_0x3b22f(0x30d)](_0x2e238b){const _0x1025c5=_0x3b22f,_0x50c41d=this[_0x1025c5(0x2fa)](_0x2e238b);return _0x50c41d?v['of'](_0x50c41d):this[_0x1025c5(0x3fd)][_0x1025c5(0x3de)](E[_0x1025c5(0x3f9)](_0x48278b=>_0x48278b[_0x1025c5(0x40e)]===_0x2e238b));}[_0x3b22f(0x341)](){const _0x356467=_0x3b22f;this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)]['UNIVER_SHEET'])[_0x356467(0x3de)](v[_0x356467(0x37c)](this['dispose$']),E[_0x356467(0x292)](0x10))[_0x356467(0x42c)](async _0x3a30e6=>{const _0xf82571=_0x356467,_0x56e659=_0x3a30e6[_0xf82571(0x52b)](),_0x51c6ac=await this[_0xf82571(0x571)](_0x56e659,j[_0xf82571(0x3c0)]);this['_entities'][_0xf82571(0x305)](_0x56e659,_0x51c6ac);}),this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)][_0x356467(0x332)])['pipe'](v[_0x356467(0x37c)](this['dispose$']),E['delay'](0x10))[_0x356467(0x3de)](E[_0x356467(0x3f9)](_0x213bb1=>!_0x213bb1[_0x356467(0x52b)]()[_0x356467(0x561)]('__')))[_0x356467(0x42c)](async _0x39a2b5=>{const _0x34828e=_0x356467,_0x30a74b=_0x39a2b5[_0x34828e(0x52b)](),_0x16702f=await this[_0x34828e(0x571)](_0x30a74b,j[_0x34828e(0x332)]);this['_entities'][_0x34828e(0x305)](_0x30a74b,_0x16702f);}),v[_0x356467(0x2c4)](this[_0x356467(0x340)][_0x356467(0x24f)](a['UniverInstanceType'][_0x356467(0x3c0)]),this[_0x356467(0x340)]['getTypeOfUnitDisposed$'](a[_0x356467(0x38e)]['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x356467(0x2e1)]))[_0x356467(0x42c)](_0x5c68b9=>{const _0x22b09a=_0x356467,_0x3abd33=_0x5c68b9[_0x22b09a(0x52b)](),_0x521cb8=this[_0x22b09a(0x4de)][_0x22b09a(0x34d)](_0x3abd33);_0x521cb8&&(_0x521cb8[_0x22b09a(0x4f2)](),this[_0x22b09a(0x4de)][_0x22b09a(0x2cc)](_0x3abd33));});}async[_0x3b22f(0x571)](_0x304e52,_0x26684b){const _0x17d99c=_0x3b22f,_0xfe4467=await this[_0x17d99c(0x27c)][_0x17d99c(0x578)](_0x304e52),_0x4e66b6=this[_0x17d99c(0x397)][_0x17d99c(0x5e4)](this[_0x17d99c(0x58e)](_0x26684b),_0x304e52,_0x26684b,_0xfe4467);return await _0x4e66b6[_0x17d99c(0x358)](),this[_0x17d99c(0x3fd)][_0x17d99c(0x52d)](_0x4e66b6),_0x4e66b6;}[_0x3b22f(0x58e)](_0x112bf6){const _0x90de61=_0x3b22f;switch(_0x112bf6){case j[_0x90de61(0x332)]:return exports[_0x90de61(0x403)];case j[_0x90de61(0x3c0)]:return exports[_0x90de61(0x5ef)];default:throw new Error(_0x90de61(0x59d)+_0x112bf6);}}},exports[_0x3b22f(0x322)]=Vs([Ue(0x0,a['Inject'](a[_0x3b22f(0x252)])),Ue(0x1,a['Inject'](exports[_0x3b22f(0x298)])),Ue(0x2,a[_0x3b22f(0x26b)])],exports[_0x3b22f(0x322)]);const nt=[_0x3b22f(0x3f1),_0x3b22f(0x5c8),'verdancy600',_0x3b22f(0x5d9),'blue400',_0x3b22f(0x379)];class Xe extends a[_0x3b22f(0x4b0)]{constructor(){const _0x2eb2e3=_0x3b22f;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x2eb2e3(0x35c),0x0);}[_0x3b22f(0x4ee)](_0x5923d){const _0xb403a5=_0x3b22f;if(this[_0xb403a5(0x56b)][_0xb403a5(0x3e5)](_0x5923d))return this[_0xb403a5(0x56b)]['get'](_0x5923d);const _0x410f45=nt[this[_0xb403a5(0x35c)]];return this[_0xb403a5(0x35c)]=(this[_0xb403a5(0x35c)]+0x1)%nt[_0xb403a5(0x291)],this[_0xb403a5(0x56b)][_0xb403a5(0x305)](_0x5923d,_0x410f45),_0x410f45;}}var Ws=Object[_0x3b22f(0x1ff)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x4f6fc6,_0xa24e62,_0x3259ff,_0x4d9bab)=>{for(var _0x4e77b1=_0x4d9bab>0x1?void 0x0:_0x4d9bab?Fs(_0xa24e62,_0x3259ff):_0xa24e62,_0x55ae4a=_0x4f6fc6['length']-0x1,_0x2f7092;_0x55ae4a>=0x0;_0x55ae4a--)(_0x2f7092=_0x4f6fc6[_0x55ae4a])&&(_0x4e77b1=(_0x4d9bab?_0x2f7092(_0xa24e62,_0x3259ff,_0x4e77b1):_0x2f7092(_0x4e77b1))||_0x4e77b1);return _0x4d9bab&&_0x4e77b1&&Ws(_0xa24e62,_0x3259ff,_0x4e77b1),_0x4e77b1;},K=(_0x160b83,_0x36908f)=>(_0x9f4c98,_0x440cb1)=>_0x36908f(_0x9f4c98,_0x440cb1,_0x160b83);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3b22f(0x398)]{constructor(_0x3cb284,_0x2c5102,_0x3b550b,_0x45abfa,_0x4ba55b,_0x44a5c,_0x4c58f2,_0x1aacba,_0x20a6cd){const _0x51c73f=_0x3b22f;super(),d(this,_0x51c73f(0x466),!0x1),d(this,'_init',!0x1),d(this,_0x51c73f(0x404),new v[(_0x51c73f(0x502))](new Map())),d(this,_0x51c73f(0x4aa),this[_0x51c73f(0x404)][_0x51c73f(0x56e)]()),d(this,_0x51c73f(0x288),new v['BehaviorSubject']([])),d(this,_0x51c73f(0x5bf),this[_0x51c73f(0x288)][_0x51c73f(0x3de)](v['debounceTime'](Ys))),d(this,_0x51c73f(0x37d),a[_0x51c73f(0x527)](_0x5cc1c5=>{const _0x1a1057=_0x51c73f,_0x531918={'eventID':_[_0x1a1057(0x44c)][_0x1a1057(0x5b6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1a1057(0x597)](),'selection':Tt(_0x5cc1c5)}};this[_0x1a1057(0x338)][_0x1a1057(0x3c5)](_0x531918,this[_0x1a1057(0x40e)]);},Ks)),(this[_0x51c73f(0x40e)]=_0x3cb284,this[_0x51c73f(0x338)]=_0x2c5102,this[_0x51c73f(0x397)]=_0x3b550b,this[_0x51c73f(0x594)]=_0x45abfa,this[_0x51c73f(0x4ec)]=_0x4ba55b,this['_syncEditingCollabCursorService']=_0x44a5c,this[_0x51c73f(0x294)]=_0x4c58f2,this[_0x51c73f(0x340)]=_0x1aacba,this[_0x51c73f(0x4b9)]=_0x20a6cd);}get[_0x3b22f(0x49a)](){const _0x186f6f=_0x3b22f;return this[_0x186f6f(0x404)][_0x186f6f(0x2a9)]();}get['roomMembers'](){const _0x59f09a=_0x3b22f;return this['_roomMembers$'][_0x59f09a(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x5ca9ba=_0x3b22f;super['dispose'](),this['_cursorInfo$'][_0x5ca9ba(0x52d)](new Map()),this['_cursorInfo$'][_0x5ca9ba(0x2ec)](),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x52d)]([]),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x2ec)]();}['init'](){const _0x313705=_0x3b22f;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](v[_0x313705(0x37c)](this['dispose$']))[_0x313705(0x42c)](_0x399fab=>{const _0x156b89=_0x313705;_0x399fab===$[_0x156b89(0x22f)]?this[_0x156b89(0x553)]():this['_toggleOffline']();}),this[_0x313705(0x338)][_0x313705(0x3b5)][_0x313705(0x3de)](v[_0x313705(0x37c)](this[_0x313705(0x2e1)]))[_0x313705(0x42c)](_0x492298=>{const _0x19bf29=_0x313705,_0x197da1=_0x492298[_0x19bf29(0x3cc)];_0x197da1===_['CollaborationEvent'][_0x19bf29(0x5b6)]&&this[_0x19bf29(0x426)](_0x492298),_0x197da1===_[_0x19bf29(0x44c)][_0x19bf29(0x51c)]&&this[_0x19bf29(0x2a1)](_0x492298);}),this[_0x313705(0x283)](this[_0x313705(0x4b9)]['onCommandExecuted'](_0x11f1e1=>{const _0x3189c1=_0x313705,_0xc7263c=_0x11f1e1[_0x3189c1(0x3b6)];_0xc7263c!=null&&this[_0x3189c1(0x466)]&&_0x11f1e1['id']===V[_0x3189c1(0x574)]['id']&&_0xc7263c[_0x3189c1(0x3df)]===this[_0x3189c1(0x40e)]&&_0xc7263c[_0x3189c1(0x40c)]===!0x1&&this[_0x3189c1(0x37d)](_0xc7263c[_0x3189c1(0x2b8)]);})),this[_0x313705(0x421)][_0x313705(0x45e)][_0x313705(0x3de)](v['takeUntil'](this['dispose$']))[_0x313705(0x42c)](_0x301da6=>{const _0x3c19ec=_0x313705;if((_0x301da6==null?void 0x0:_0x301da6[_0x3c19ec(0x40e)])!==this[_0x3c19ec(0x40e)])return;const _0x18360d={'eventID':_[_0x3c19ec(0x44c)][_0x3c19ec(0x5b6)],'data':_0x301da6};this[_0x3c19ec(0x426)](_0x18360d);}),this[_0x313705(0x283)](this['_commandService'][_0x313705(0x2dd)](_0xa4a618=>{const _0x475dce=_0x313705;if(_0xa4a618[_0x475dce(0x3b6)]==null)return;const _0x338bc1=_0xa4a618[_0x475dce(0x3b6)];if(_0xa4a618['id']!==V[_0x475dce(0x48d)]['id']||_0x338bc1[_0x475dce(0x3df)]!==this[_0x475dce(0x40e)])return;const _0x613e94={'id':_0x475dce(0x29f),'params':_0x338bc1},_0x1f4448=this[_0x475dce(0x49a)];for(const [_0xc75a64,_0x5cb49d]of _0x1f4448){const _0x3099a1={'id':_0x475dce(0x29f),'params':{'unitId':this[_0x475dce(0x40e)],'actions':null,'textRanges':_0x5cb49d[_0x475dce(0x2b8)]}},_0x123e43=this[_0x475dce(0x294)][_0x475dce(0x2c5)](_0x613e94,_0x3099a1,!0x1);if(_[_0x475dce(0x5cb)](_0x123e43))throw _0x123e43[_0x475dce(0x49d)];_0x1f4448[_0x475dce(0x305)](_0xc75a64,{..._0x5cb49d,'ranges':_0x123e43[_0x475dce(0x2e8)]['params'][_0x475dce(0x4a4)]});}queueMicrotask(()=>{const _0x442e43=_0x475dce;this[_0x442e43(0x404)][_0x442e43(0x52d)](_0x1f4448);});})));}['_onCursorUpdate'](_0x8cb4c4){const _0x4f155d=_0x3b22f;var _0x203a57,_0x19ab8e;const {memberID:_0x36da3f,selection:_0x27f51b}=_0x8cb4c4['data'],_0x26cf0e=Us(_0x27f51b),_0x5c829a=(_0x19ab8e=(_0x203a57=this[_0x4f155d(0x4ec)][_0x4f155d(0x303)](this[_0x4f155d(0x40e)],_0x36da3f))==null?void 0x0:_0x203a57['name'])!=null?_0x19ab8e:'Unknown\x20user',_0x1e8500={'color':this[_0x4f155d(0x594)][_0x4f155d(0x4ee)](_0x36da3f),'name':_0x5c829a,'ranges':_0x26cf0e},_0x2af4db=this[_0x4f155d(0x49a)];_0x2af4db['set'](_0x36da3f,_0x1e8500),this[_0x4f155d(0x404)][_0x4f155d(0x52d)](_0x2af4db);}[_0x3b22f(0x2a1)](_0x4247ca){const _0xb871b1=_0x3b22f,{memberID:_0x837a43}=_0x4247ca[_0xb871b1(0x45b)],_0x19c3ec=this[_0xb871b1(0x49a)];_0x19c3ec[_0xb871b1(0x2cc)](_0x837a43),this[_0xb871b1(0x404)][_0xb871b1(0x52d)](_0x19c3ec);}[_0x3b22f(0x553)](){const _0x2ccd45=_0x3b22f;var _0x403a08;if(this['_online']=!0x0,((_0x403a08=this['_univerInstanceService'][_0x2ccd45(0x255)]())==null?void 0x0:_0x403a08[_0x2ccd45(0x52b)]())!==this[_0x2ccd45(0x40e)])return;const _0x1dff6a=this[_0x2ccd45(0x397)][_0x2ccd45(0x34d)](V[_0x2ccd45(0x4a7)])['getDocRanges']();Array[_0x2ccd45(0x33f)](_0x1dff6a)&&_0x1dff6a[_0x2ccd45(0x291)]>0x0&&this['_updateLocalCursor'](_0x1dff6a);}[_0x3b22f(0x37f)](){const _0x297cde=_0x3b22f;this[_0x297cde(0x466)]=!0x1;}};$e=Gs([K(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),K(0x3,a[_0x3b22f(0x492)](Xe)),K(0x4,a[_0x3b22f(0x492)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x3b22f(0x378)]),K(0x7,a['IUniverInstanceService']),K(0x8,a['ICommandService'])],$e);var Xs=Object['defineProperty'],qs=Object[_0x3b22f(0x246)],zs=(_0x1ffa44,_0x428231,_0x531baa,_0x12ca06)=>{for(var _0x495128=_0x12ca06>0x1?void 0x0:_0x12ca06?qs(_0x428231,_0x531baa):_0x428231,_0x4473a4=_0x1ffa44['length']-0x1,_0x242509;_0x4473a4>=0x0;_0x4473a4--)(_0x242509=_0x1ffa44[_0x4473a4])&&(_0x495128=(_0x12ca06?_0x242509(_0x428231,_0x531baa,_0x495128):_0x242509(_0x495128))||_0x495128);return _0x12ca06&&_0x495128&&Xs(_0x428231,_0x531baa,_0x495128),_0x495128;},Q=(_0x2077e0,_0x27fb54)=>(_0xa934ff,_0x1b669a)=>_0x27fb54(_0xa934ff,_0x1b669a,_0x2077e0);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x15a14d=[],_0x1bd2e8=!0x1;return _0x27d5b1=>{const _0x42054=_0x2c53;_0x15a14d[_0x42054(0x1ed)](_0x27d5b1),_0x1bd2e8||(_0x1bd2e8=!0x0,setTimeout(()=>{const _0x10e457=_0x42054;_0x15a14d[_0x10e457(0x339)](_0x5101c1=>_0x5101c1()),_0x15a14d=[],_0x1bd2e8=!0x1;}));};};let He=class extends a['RxDisposable']{constructor(_0x172152,_0x3ea4e7,_0x27acc6,_0x26af3e,_0x495579,_0x5245e9,_0x202d78,_0x3ee5b9){const _0x284fad=_0x3b22f;super(),d(this,_0x284fad(0x466),!0x1),d(this,_0x284fad(0x341),!0x1),d(this,_0x284fad(0x404),new v[(_0x284fad(0x502))](new Map())),d(this,'cursorInfo$',this[_0x284fad(0x404)][_0x284fad(0x56e)]()),d(this,_0x284fad(0x288),new v[(_0x284fad(0x502))]([])),d(this,'roomMembers$',this[_0x284fad(0x288)]['pipe'](v[_0x284fad(0x42f)](Js))),d(this,_0x284fad(0x37d),a['debounce']((_0xf7495d,_0x9df48f)=>{const _0x45d052=_0x284fad,_0x1db732={'eventID':_[_0x45d052(0x44c)][_0x45d052(0x5b6)],'data':{'unitID':this[_0x45d052(0x40e)],'memberID':this[_0x45d052(0x338)]['getMemberID'](),'selection':Je[_0x45d052(0x3e9)](_0xf7495d,_0x9df48f[_0x45d052(0x25e)])}};this['_session'][_0x45d052(0x3c5)](_0x1db732,this[_0x45d052(0x40e)]);},Zs)),(this[_0x284fad(0x40e)]=_0x172152,this[_0x284fad(0x338)]=_0x3ea4e7,this[_0x284fad(0x397)]=_0x27acc6,this[_0x284fad(0x594)]=_0x26af3e,this[_0x284fad(0x4ec)]=_0x495579,this[_0x284fad(0x340)]=_0x5245e9,this[_0x284fad(0x4b9)]=_0x202d78,this[_0x284fad(0x1fd)]=_0x3ee5b9);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x3b22f(0x4be)](){const _0x41b15c=_0x3b22f;return this[_0x41b15c(0x288)][_0x41b15c(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x433e81=_0x3b22f;super[_0x433e81(0x4f2)](),this['_cursorInfo$'][_0x433e81(0x52d)](new Map()),this['_cursorInfo$'][_0x433e81(0x2ec)](),this[_0x433e81(0x288)][_0x433e81(0x52d)]([]),this[_0x433e81(0x288)][_0x433e81(0x2ec)]();}[_0x3b22f(0x358)](){const _0x3ae396=_0x3b22f;this[_0x3ae396(0x341)]||(this[_0x3ae396(0x341)]=!0x0,this[_0x3ae396(0x338)][_0x3ae396(0x1f1)]['pipe'](v[_0x3ae396(0x37c)](this[_0x3ae396(0x2e1)]))[_0x3ae396(0x42c)](_0x49d375=>{const _0x23903a=_0x3ae396;_0x49d375===$[_0x23903a(0x22f)]?this[_0x23903a(0x553)]():this[_0x23903a(0x37f)]();}),this[_0x3ae396(0x338)]['event$']['pipe'](v['takeUntil'](this[_0x3ae396(0x2e1)]))['subscribe'](_0x152e13=>{const _0x48f413=_0x3ae396,_0x5dec91=_0x152e13[_0x48f413(0x3cc)];_0x5dec91===_[_0x48f413(0x44c)][_0x48f413(0x5b6)]&&this[_0x48f413(0x426)](_0x152e13),_0x5dec91===_[_0x48f413(0x44c)]['USERS_LEAVE']&&this[_0x48f413(0x2a1)](_0x152e13);}),this[_0x3ae396(0x38a)](),this[_0x3ae396(0x283)](this[_0x3ae396(0x4b9)]['onCommandExecuted'](_0x182058=>{const _0x528576=_0x3ae396;if(this[_0x528576(0x466)]&&_0x182058['id']===C['SetSelectionsOperation']['id']&&_0x182058[_0x528576(0x3b6)][_0x528576(0x3df)]===this['unitID']){const _0x168db3=_0x182058[_0x528576(0x3b6)];this['_updateLocalCursor'](_0x168db3[_0x528576(0x2b4)],_0x168db3[_0x528576(0x3c4)][0x0]);}})));}[_0x3b22f(0x426)](_0x2ab470){const _0x423408=_0x3b22f;var _0x59a792,_0x2298b4;const {memberID:_0x14ee3d,selection:_0x27a88e}=_0x2ab470['data'],{sheetName:_0x26c0d9,range:_0x44933a}=Je['deserializeRangeWithSheet'](_0x27a88e),_0x53b09e={'name':(_0x2298b4=(_0x59a792=this[_0x423408(0x4ec)][_0x423408(0x303)](this[_0x423408(0x40e)],_0x14ee3d))==null?void 0x0:_0x59a792[_0x423408(0x366)])!=null?_0x2298b4:_0x423408(0x250),'range':this[_0x423408(0x5af)](_0x26c0d9,_0x44933a),'sheetID':_0x26c0d9,'color':this[_0x423408(0x594)][_0x423408(0x4ee)](_0x14ee3d),'selection':_0x27a88e},_0x136ade=this['cursorInfo'];_0x136ade['set'](_0x14ee3d,_0x53b09e),this[_0x423408(0x404)][_0x423408(0x52d)](_0x136ade);}[_0x3b22f(0x2a1)](_0x2c8d79){const _0x43b51d=_0x3b22f,{memberID:_0x5d8b24}=_0x2c8d79[_0x43b51d(0x45b)],_0x1e54fe=this['cursorInfo'];_0x1e54fe[_0x43b51d(0x2cc)](_0x5d8b24),this[_0x43b51d(0x404)][_0x43b51d(0x52d)](_0x1e54fe);}['_getMergeRange'](_0x52a7c8,_0x54c487){const _0x1b0e79=_0x3b22f;var _0x283da9,_0x119618;const _0x285baa=(_0x119618=(_0x283da9=this['_univerInstanceService'][_0x1b0e79(0x2ac)](this[_0x1b0e79(0x40e)]))==null?void 0x0:_0x283da9[_0x1b0e79(0x2f1)](_0x52a7c8))==null?void 0x0:_0x119618[_0x1b0e79(0x4d8)]();return(_0x285baa==null?void 0x0:_0x285baa[_0x1b0e79(0x5dc)](_0xddfd87=>a[_0x1b0e79(0x337)]['contains'](_0xddfd87,_0x54c487)))||_0x54c487;}[_0x3b22f(0x38a)](){const _0x2cbaa9=_0x3b22f,_0x1214e5=new a[(_0x2cbaa9(0x35b))](),_0x2ea889=Qs(),_0x100e4c=()=>{const _0x2b75ec=_0x2cbaa9;_0x1214e5[_0x2b75ec(0x4f2)]();const _0x3e0c90=(_0x5b03ed,_0x23eeae,_0x1efddb,_0x436f26)=>{const _0x5498ad=_0x2b75ec;let _0x3f519a=[];switch(_0x5b03ed['id']){case C[_0x5498ad(0x2b5)][_0x5498ad(0x38d)]:{_0x3f519a=C['handleDeleteRangeMoveLeft'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x3f2)]:{_0x3f519a=C['handleDeleteRangeMoveUp'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x5a6)]:{_0x3f519a=C['handleInsertCol'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x2aa)]:{_0x3f519a=C[_0x5498ad(0x396)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x314)]:{_0x3f519a=C[_0x5498ad(0x523)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x48f)]:{_0x3f519a=C[_0x5498ad(0x5a5)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x497)]:{_0x3f519a=C[_0x5498ad(0x258)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)]['RemoveColCommandId']:{_0x3f519a=C[_0x5498ad(0x3c3)](_0x5b03ed,_0x436f26);break;}case C['EffectRefRangId'][_0x5498ad(0x2fe)]:{_0x3f519a=C['handleIRemoveRow'](_0x5b03ed,_0x436f26);break;}}const _0x3acc04=C[_0x5498ad(0x479)](_0x3f519a,_0x436f26),_0x54c530=this['cursorInfo'][_0x5498ad(0x34d)](_0x23eeae);if(_0x54c530&&_0x3acc04){const _0x104b14={..._0x54c530,'range':_0x3acc04};this[_0x5498ad(0x49a)][_0x5498ad(0x305)](_0x23eeae,_0x104b14),_0x2ea889(()=>{const _0x4edc55=_0x5498ad,_0x7a1eb7=this['_refRangeService'][_0x4edc55(0x58a)](_0x3acc04,_0xe8f3b9=>(_0x7a1eb7['dispose'](),_0x3e0c90(_0xe8f3b9,_0x23eeae,_0x1efddb,_0x3acc04)));_0x1214e5[_0x4edc55(0x405)](_0x7a1eb7);});}return{'redos':[],'undos':[]};};this[_0x2b75ec(0x49a)][_0x2b75ec(0x339)]((_0x4a84cf,_0x38b2f8)=>{const _0x1e3607=_0x2b75ec,{range:_0x10bca9,sheetID:_0x3d70c8}=_0x4a84cf,_0x4cc52f=this['_refRangeService'][_0x1e3607(0x58a)](_0x10bca9,_0x2c8db4=>(_0x4cc52f[_0x1e3607(0x4f2)](),_0x3e0c90(_0x2c8db4,_0x38b2f8,_0x3d70c8,_0x10bca9)));_0x1214e5[_0x1e3607(0x405)](_0x4cc52f);});};this['disposeWithMe'](a[_0x2cbaa9(0x526)](this[_0x2cbaa9(0x404)]['subscribe'](()=>{_0x100e4c();})));}[_0x3b22f(0x553)](){const _0x51f462=_0x3b22f;var _0x98aea9,_0x462724;if(this[_0x51f462(0x466)]=!0x0,((_0x98aea9=this[_0x51f462(0x340)][_0x51f462(0x255)]())==null?void 0x0:_0x98aea9[_0x51f462(0x52b)]())!==this[_0x51f462(0x40e)])return;const _0x4fad4a=(_0x462724=this[_0x51f462(0x397)][_0x51f462(0x34d)](C[_0x51f462(0x264)])[_0x51f462(0x3f4)]())==null?void 0x0:_0x462724[0x0],_0x38f4fe=this['_univerInstanceService'][_0x51f462(0x4e6)](a[_0x51f462(0x38e)][_0x51f462(0x3c0)])[_0x51f462(0x242)]();_0x4fad4a&&_0x38f4fe&&this[_0x51f462(0x37d)](_0x38f4fe['getSheetId'](),_0x4fad4a);}['_toggleOffline'](){const _0x8e385f=_0x3b22f;this[_0x8e385f(0x466)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a[_0x3b22f(0x252)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x3b22f(0x26b)]),Q(0x6,a[_0x3b22f(0x323)]),Q(0x7,a[_0x3b22f(0x492)](C[_0x3b22f(0x44b)]))],He);var ei=Object[_0x3b22f(0x1ff)],ti=Object[_0x3b22f(0x246)],si=(_0x2253f8,_0x5ae97f,_0xde16c2,_0x2e8c02)=>{const _0x410075=_0x3b22f;for(var _0x3e14b3=_0x2e8c02>0x1?void 0x0:_0x2e8c02?ti(_0x5ae97f,_0xde16c2):_0x5ae97f,_0x1c68bf=_0x2253f8[_0x410075(0x291)]-0x1,_0x2b53f3;_0x1c68bf>=0x0;_0x1c68bf--)(_0x2b53f3=_0x2253f8[_0x1c68bf])&&(_0x3e14b3=(_0x2e8c02?_0x2b53f3(_0x5ae97f,_0xde16c2,_0x3e14b3):_0x2b53f3(_0x3e14b3))||_0x3e14b3);return _0x2e8c02&&_0x3e14b3&&ei(_0x5ae97f,_0xde16c2,_0x3e14b3),_0x3e14b3;},Pe=(_0x25ccac,_0x345f4c)=>(_0x3df078,_0x5593b4)=>_0x345f4c(_0x3df078,_0x5593b4,_0x25ccac);let ie=class extends a[_0x3b22f(0x398)]{constructor(_0x231ee1,_0x57d257,_0x2b613c){const _0xe83739=_0x3b22f;super(),d(this,_0xe83739(0x4de),new Map()),d(this,_0xe83739(0x3fd),new v[(_0xe83739(0x25f))]()),(this['_univerInstanceService']=_0x231ee1,this['_injector']=_0x57d257,this[_0xe83739(0x27c)]=_0x2b613c,this[_0xe83739(0x341)]());}[_0x3b22f(0x4f2)](){const _0x3321a6=_0x3b22f;super[_0x3321a6(0x4f2)](),this[_0x3321a6(0x3fd)][_0x3321a6(0x2ec)](),this[_0x3321a6(0x4de)][_0x3321a6(0x339)](_0x40c9c0=>_0x40c9c0[_0x3321a6(0x4f2)]());}[_0x3b22f(0x4f4)](_0x4017d2){const _0x49d94c=_0x3b22f;return this[_0x49d94c(0x4de)][_0x49d94c(0x3e5)](_0x4017d2)?this[_0x49d94c(0x4de)]['get'](_0x4017d2)[_0x49d94c(0x4aa)]:this[_0x49d94c(0x3fd)][_0x49d94c(0x3de)](v[_0x49d94c(0x3f9)](_0x9f6f51=>_0x9f6f51[_0x49d94c(0x40e)]===_0x4017d2),v[_0x49d94c(0x3fe)](_0x334b3c=>_0x334b3c['cursorInfo$']));}[_0x3b22f(0x341)](){const _0x25df68=_0x3b22f;this[_0x25df68(0x340)][_0x25df68(0x5e8)](a['UniverInstanceType'][_0x25df68(0x3c0)])[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](async _0x4d97c0=>{const _0x531a02=_0x25df68,_0x4494bc=_0x4d97c0[_0x531a02(0x52b)](),_0x185d52=await this[_0x531a02(0x3dd)](_0x4494bc);this[_0x531a02(0x3fd)][_0x531a02(0x52d)](_0x185d52),this[_0x531a02(0x4de)]['set'](_0x4494bc,_0x185d52);}),this[_0x25df68(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25df68(0x332)])[_0x25df68(0x3de)](v['takeUntil'](this['dispose$']))[_0x25df68(0x3de)](v[_0x25df68(0x3f9)](_0x188499=>!_0x188499['getUnitId']()[_0x25df68(0x561)]('__')))[_0x25df68(0x42c)](async _0x16d219=>{const _0x2ab719=_0x25df68,_0x1cadb0=_0x16d219[_0x2ab719(0x52b)](),_0x4811c2=await this[_0x2ab719(0x281)](_0x1cadb0);this[_0x2ab719(0x3fd)][_0x2ab719(0x52d)](_0x4811c2),this['_entities']['set'](_0x1cadb0,_0x4811c2);}),v['merge'](this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x332)]),this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x3c0)]))[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](_0x2ed698=>{const _0x48390f=_0x25df68,_0x39329b=_0x2ed698[_0x48390f(0x52b)](),_0x4ce304=this[_0x48390f(0x4de)]['get'](_0x39329b);_0x4ce304&&(_0x4ce304['dispose'](),this[_0x48390f(0x4de)][_0x48390f(0x2cc)](_0x39329b));});}async[_0x3b22f(0x3dd)](_0x64a107){const _0x292ecd=_0x3b22f,_0x3ddf3b=await this[_0x292ecd(0x27c)][_0x292ecd(0x578)](_0x64a107),_0x23df5e=this['_injector'][_0x292ecd(0x5e4)](He,_0x64a107,_0x3ddf3b);return _0x23df5e[_0x292ecd(0x358)](),_0x23df5e;}async[_0x3b22f(0x281)](_0x2fe84a){const _0x22e3ab=_0x3b22f,_0x172bc8=await this['_collabSessionService'][_0x22e3ab(0x578)](_0x2fe84a),_0x3af732=this[_0x22e3ab(0x397)]['createInstance']($e,_0x2fe84a,_0x172bc8);return _0x3af732[_0x22e3ab(0x358)](),_0x3af732;}};ie=si([Pe(0x0,a[_0x3b22f(0x26b)]),Pe(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Pe(0x2,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x3de569,_0x249b26){const _0x1f8afa=_0x3b22f;let {radius:_0x4764d6,width:_0x4038fb,height:_0xc37411}=_0x249b26;_0x4764d6=_0x4764d6!=null?_0x4764d6:0x0,_0x4038fb=_0x4038fb!=null?_0x4038fb:0x1e,_0xc37411=_0xc37411!=null?_0xc37411:0x1e;let _0x244882=0x0,_0x31c797=0x0,_0x262140=0x0;_0x244882=_0x31c797=_0x262140=Math[_0x1f8afa(0x5de)](_0x4764d6,_0x4038fb/0x2,_0xc37411/0x2),_0x3de569['beginPath'](),_0x3de569[_0x1f8afa(0x57e)](_0x244882,0x0),_0x3de569[_0x1f8afa(0x342)](_0x4038fb-_0x31c797,0x0),_0x3de569[_0x1f8afa(0x3b1)](_0x4038fb-_0x31c797,_0x31c797,_0x31c797,Math['PI']*0x3/0x2,0x0,!0x1),_0x3de569['lineTo'](_0x4038fb,_0xc37411-_0x262140),_0x3de569['arc'](_0x4038fb-_0x262140,_0xc37411-_0x262140,_0x262140,0x0,Math['PI']/0x2,!0x1),_0x3de569[_0x1f8afa(0x342)](0x0,_0xc37411),_0x3de569[_0x1f8afa(0x342)](0x0,_0x244882),_0x3de569[_0x1f8afa(0x3b1)](_0x244882,_0x244882,_0x244882,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3de569['closePath'](),_0x249b26['fill']&&(_0x3de569[_0x1f8afa(0x1f5)](),_0x3de569[_0x1f8afa(0x38f)]=_0x249b26[_0x1f8afa(0x2f2)],_0x249b26['fillRule']===_0x1f8afa(0x50b)?_0x3de569['fill'](_0x1f8afa(0x50b)):_0x3de569['fill'](),_0x3de569[_0x1f8afa(0x372)]());}class Te extends R[_0x3b22f(0x28e)]{constructor(_0x2bf1f6,_0xd9ee83){const _0x189588=_0x3b22f;super(_0x2bf1f6,_0xd9ee83),d(this,'color'),d(this,_0x189588(0x41e)),(this['color']=_0xd9ee83==null?void 0x0:_0xd9ee83[_0x189588(0x1e9)],this[_0x189588(0x41e)]=_0xd9ee83==null?void 0x0:_0xd9ee83['text']);}static[_0x3b22f(0x5dd)](_0x3c04ed,_0x14dfaf){const _0x1e575b=_0x3b22f,{text:_0x33787b,color:_0x314a03}=_0x14dfaf;_0x3c04ed[_0x1e575b(0x1f5)](),_0x3c04ed['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x41ad12=_0x3c04ed[_0x1e575b(0x5ba)](_0x33787b)[_0x1e575b(0x481)],_0x457a51=Math[_0x1e575b(0x5de)](_0x41ad12+0x2*we,rt);ni(_0x3c04ed,{'height':ue,'radius':0x4,'width':_0x457a51,'fill':_0x314a03,'evented':!0x1}),_0x3c04ed[_0x1e575b(0x38f)]='#FFF';const _0xc0d7aa=we,_0x512864=ue-ii,_0x3ca160=rt-0x2*we;if(_0x41ad12>_0x3ca160){let _0x3085aa='',_0x20d62b=0x0;for(const _0x5e2947 of _0x33787b){const _0x105e0b=_0x3c04ed[_0x1e575b(0x5ba)](_0x5e2947)[_0x1e575b(0x481)];if(_0x20d62b+_0x105e0b<=_0x3ca160-_0x3c04ed[_0x1e575b(0x5ba)](_0x1e575b(0x253))[_0x1e575b(0x481)])_0x3085aa+=_0x5e2947,_0x20d62b+=_0x105e0b;else{_0x3085aa+=_0x1e575b(0x253);break;}}_0x3c04ed[_0x1e575b(0x295)](_0x3085aa,_0xc0d7aa,_0x512864);}else _0x3c04ed[_0x1e575b(0x295)](_0x33787b,_0xc0d7aa,_0x512864);_0x3c04ed[_0x1e575b(0x372)]();}[_0x3b22f(0x4cc)](_0x480ef1){const _0x4fc489=_0x3b22f;Te[_0x4fc489(0x5dd)](_0x480ef1,this);}}const Me=_0x3b22f(0x4c9),ri=_0x3b22f(0x41c),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3b22f(0x579);function _0x2c53(_0x3be5e2,_0x117f23){const _0x1d05c6=_0x1d05();return _0x2c53=function(_0x2c539a,_0x1cbb06){_0x2c539a=_0x2c539a-0x1e1;let _0x510421=_0x1d05c6[_0x2c539a];return _0x510421;},_0x2c53(_0x3be5e2,_0x117f23);}class ot{constructor(_0x50eac7,_0x2aa3c7,_0x123588,_0x32312d){const _0x261ec7=_0x3b22f;d(this,_0x261ec7(0x457),[]),d(this,_0x261ec7(0x46a),null),d(this,_0x261ec7(0x46d),null),d(this,_0x261ec7(0x57c),null),d(this,_0x261ec7(0x39f),null),d(this,'_eventUnsubscribe',null),(this[_0x261ec7(0x581)]=_0x50eac7,this[_0x261ec7(0x573)]=_0x2aa3c7,this['_docSkeleton']=_0x123588,this['_document']=_0x32312d,this[_0x261ec7(0x5a8)]());}set['_hover'](_0x5690e4){const _0x5d9edb=_0x3b22f;_0x5690e4?(this['_anchorDot']&&this[_0x5d9edb(0x57c)][_0x5d9edb(0x2ba)](),this[_0x5d9edb(0x46d)]&&this[_0x5d9edb(0x46d)][_0x5d9edb(0x224)]()):(this[_0x5d9edb(0x57c)]&&this['_anchorDot'][_0x5d9edb(0x224)](),this['_textBubble']&&this['_textBubble'][_0x5d9edb(0x2ba)]());}['dispose'](){const _0x4215c2=_0x3b22f;for(const _0x52fba3 of this[_0x4215c2(0x457)])_0x52fba3[_0x4215c2(0x4f2)]();this[_0x4215c2(0x46d)]&&this[_0x4215c2(0x46d)]['dispose'](),this[_0x4215c2(0x57c)]&&this[_0x4215c2(0x57c)][_0x4215c2(0x4f2)](),this[_0x4215c2(0x46a)]&&this[_0x4215c2(0x46a)]['dispose'](),this[_0x4215c2(0x248)]&&this['_eventUnsubscribe']();}['_render'](){const _0x593cfd=_0x3b22f;var _0x501c9f;const {_docSkeleton:_0x20e755,_document:_0x819570}=this,{color:_0x2ab924,name:_0x55abb7,ranges:_0xef9f8d}=this['_cursor'],_0x933742=_0x819570['getOffsetConfig'](),{docsLeft:_0x68fcb5,docsTop:_0xad7b62}=_0x933742,_0x273820=new w[(_0x593cfd(0x58d))](_0x933742,_0x20e755);for(const {startOffset:_0x3b787b,endOffset:_0x2931a9,collapsed:_0x41a7dd,isActive:_0x1425dc}of _0xef9f8d){const _0xd115ed=_0x20e755['findNodePositionByCharIndex'](_0x3b787b),_0x40b812=_0x20e755[_0x593cfd(0x540)](_0x2931a9);if(_0x1425dc){const {contentBoxPointGroup:_0x22acb0}=_0x273820[_0x593cfd(0x30f)](_0x40b812,_0x40b812);if(_0x22acb0[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x41b)](_0x2ab924,_0x22acb0,_0x68fcb5,_0xad7b62,_0x55abb7),this[_0x593cfd(0x248)]=this[_0x593cfd(0x286)]();}if(!_0x41a7dd&&_0xd115ed&&_0x40b812){if(w[_0x593cfd(0x28c)](_0xd115ed,_0x40b812)){const _0x2bd01b=new w[(_0x593cfd(0x282))](_0x933742,_0x20e755),{pointGroup:_0x38c0d1}=(_0x501c9f=_0x2bd01b[_0x593cfd(0x30f)](_0xd115ed,_0x40b812))!=null?_0x501c9f:{};if(_0x38c0d1==null||_0x38c0d1[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x1fc)](_0x2ab924,_0x38c0d1,_0x68fcb5,_0xad7b62);}else{const {contentBoxPointGroup:_0x41f668}=_0x273820[_0x593cfd(0x30f)](_0xd115ed,_0x40b812);if(_0x41f668[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x520)](_0x2ab924,_0x41f668,_0x68fcb5,_0xad7b62);}}}}[_0x3b22f(0x41b)](_0x59f3c5,_0x20e5e7,_0x157193,_0x4bb5de,_0x559fd0){const _0x2e8769=_0x3b22f,_0x246896=this[_0x2e8769(0x3d3)](_0x20e5e7),{left:_0x51a1d0,top:_0x5a1d3d,height:_0x40a047}=_0x246896,_0x13b53d=this['_getScale'](),_0x1bba98=ci/_0x13b53d,_0x1bfe24=new R['Rect'](Me+a['Tools'][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de,'height':_0x40a047,'width':ai,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':_0x1bba98,'stroke':li,'evented':!0x0});this['_anchor']=_0x1bfe24,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x1bfe24,w[_0x2e8769(0x5a0)]);const _0x21f2de=new R['Rect'](Me+a[_0x2e8769(0x27d)]['generateRandomId'](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':0x0,'stroke':_0x59f3c5||R[_0x2e8769(0x427)](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'evented':!0x1});this[_0x2e8769(0x57c)]=_0x21f2de,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x21f2de,w[_0x2e8769(0x5a0)]);const _0x401a3a=new Te(Me+a[_0x2e8769(0x27d)][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-ue,'text':_0x559fd0,'color':_0x59f3c5});this[_0x2e8769(0x46d)]=_0x401a3a,this['_scene'][_0x2e8769(0x2ff)](_0x401a3a,w[_0x2e8769(0x5a0)]),this[_0x2e8769(0x468)]=!0x1;}[_0x3b22f(0x286)](){const _0x59e1f3=_0x3b22f,_0x4527e2=this['_anchor'][_0x59e1f3(0x27a)][_0x59e1f3(0x3be)](()=>{const _0x398f6f=_0x59e1f3;this[_0x398f6f(0x468)]=!0x0;}),_0x55490b=this[_0x59e1f3(0x46a)]['onPointerLeave$'][_0x59e1f3(0x3be)](()=>{const _0x52193e=_0x59e1f3;this['_hideTimer']&&clearTimeout(this[_0x52193e(0x39f)]),this[_0x52193e(0x39f)]=setTimeout(()=>{const _0x586c4c=_0x52193e;this[_0x586c4c(0x468)]=!0x1;},0x7d0);});return()=>{const _0x2c9d62=_0x59e1f3;_0x4527e2['unsubscribe'](),_0x55490b[_0x2c9d62(0x3d4)]();};}[_0x3b22f(0x520)](_0x268032,_0x400ab3,_0x244da5,_0x256e2a){const _0x333598=_0x3b22f,_0x47c078=new a[(_0x333598(0x35a))](_0x268032)[_0x333598(0x236)](0.2)[_0x333598(0x532)](),_0x43f15c=new R[(_0x333598(0x3e1))](ri+a[_0x333598(0x27d)][_0x333598(0x409)](ce),{'pointsGroup':_0x400ab3,'fill':_0x47c078||R['getColor'](a[_0x333598(0x541)][_0x333598(0x4b3)],0.2),'left':_0x244da5,'top':_0x256e2a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x333598(0x1ed)](_0x43f15c),this['_scene']['addObject'](_0x43f15c,w[_0x333598(0x5a0)]);}[_0x3b22f(0x1fc)](_0x1d3bd0,_0x307bb7,_0x539e4d,_0x231f52){const _0x41c927=_0x3b22f,_0x1b7b1b=new a[(_0x41c927(0x35a))](_0x1d3bd0)[_0x41c927(0x236)](0.2)[_0x41c927(0x532)](),_0x2b9429=new R[(_0x41c927(0x3e1))](oi+a[_0x41c927(0x27d)][_0x41c927(0x409)](ce),{'pointsGroup':_0x307bb7,'fill':_0x1b7b1b||R['getColor'](a[_0x41c927(0x541)]['black'],0.2),'left':_0x539e4d,'top':_0x231f52,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x41c927(0x1ed)](_0x2b9429),this[_0x41c927(0x573)][_0x41c927(0x2ff)](_0x2b9429,w[_0x41c927(0x5a0)]);}[_0x3b22f(0x3d3)](_0x49d193){const _0xfd6647=_0x49d193[0x0],_0x524ca3=_0xfd6647[0x0],_0x45e720=_0xfd6647[0x2],{x:_0x48ac2b,y:_0x44c32d}=_0x524ca3,{x:_0x25df25,y:_0x389c1a}=_0x45e720;return{'left':_0x48ac2b,'top':_0x44c32d,'width':_0x25df25-_0x48ac2b,'height':_0x389c1a-_0x44c32d};}[_0x3b22f(0x24c)](){const _0x2a9200=_0x3b22f,{scaleX:_0x57d8f3,scaleY:_0x36063d}=this[_0x2a9200(0x573)][_0x2a9200(0x4a1)]();return Math[_0x2a9200(0x31e)](_0x57d8f3,_0x36063d);}}var hi=Object['defineProperty'],_i=Object[_0x3b22f(0x246)],ui=(_0xfadf41,_0x2b7ab9,_0x111a35,_0x1eb655)=>{const _0x44533e=_0x3b22f;for(var _0xd18abb=_0x1eb655>0x1?void 0x0:_0x1eb655?_i(_0x2b7ab9,_0x111a35):_0x2b7ab9,_0x4cd94b=_0xfadf41[_0x44533e(0x291)]-0x1,_0x5e6014;_0x4cd94b>=0x0;_0x4cd94b--)(_0x5e6014=_0xfadf41[_0x4cd94b])&&(_0xd18abb=(_0x1eb655?_0x5e6014(_0x2b7ab9,_0x111a35,_0xd18abb):_0x5e6014(_0xd18abb))||_0xd18abb);return _0x1eb655&&_0xd18abb&&hi(_0x2b7ab9,_0x111a35,_0xd18abb),_0xd18abb;},de=(_0x87f741,_0x38aa3b)=>(_0x30b7be,_0x44c04e)=>_0x38aa3b(_0x30b7be,_0x44c04e,_0x87f741);let xe=class extends a['RxDisposable']{constructor(_0x5f43eb,_0x28de74,_0x48a793,_0x2c5cac,_0x3b094c){const _0x11f209=_0x3b22f;super(),d(this,_0x11f209(0x5c0),[]),d(this,'_cursors',[]),(this[_0x11f209(0x2d8)]=_0x5f43eb,this[_0x11f209(0x464)]=_0x28de74,this[_0x11f209(0x45c)]=_0x48a793,this['_commandService']=_0x2c5cac,this[_0x11f209(0x3d9)]=_0x3b094c,this[_0x11f209(0x341)]());}[_0x3b22f(0x341)](){const _0x830ca6=_0x3b22f,_0xf05871=this['_context'][_0x830ca6(0x3df)],_0x413ef3=this[_0x830ca6(0x464)];this[_0x830ca6(0x283)](v[_0x830ca6(0x417)]([this[_0x830ca6(0x45c)][_0x830ca6(0x4f4)](_0xf05871),this[_0x830ca6(0x3d9)][_0x830ca6(0x3e4)]])[_0x830ca6(0x3de)](E[_0x830ca6(0x57b)](([_0x468008,_0x52d44b])=>({'skeleton':_0x413ef3['getSkeleton'](),'cursors':[..._0x468008[_0x830ca6(0x407)]()][_0x830ca6(0x5c7)](_0x367939=>({..._0x367939,'color':_0x52d44b[_0x367939[_0x830ca6(0x1e9)]]}))})))[_0x830ca6(0x42c)](_0x68dc15=>{const _0x19b43d=_0x830ca6;if(this[_0x19b43d(0x2dc)](),_0x68dc15){const {skeleton:_0x46090d,cursors:_0x43f752}=_0x68dc15;this[_0x19b43d(0x560)](_0x46090d,_0x43f752);}})),this[_0x830ca6(0x447)](),this[_0x830ca6(0x31a)]();}['_updateCollabCursors'](_0x5894fc,_0x2ac514){const _0x32fee=_0x3b22f,{scene:_0x4523d3,mainComponent:_0x50b5b}=this[_0x32fee(0x2d8)],_0x18eb3a=_0x2ac514[_0x32fee(0x57b)](_0x48258c=>new ot(_0x48258c,_0x4523d3,_0x5894fc,_0x50b5b));this['_cursorShapes']=_0x18eb3a,this[_0x32fee(0x304)]=_0x2ac514;}[_0x3b22f(0x441)](){const _0x5aa550=_0x3b22f;this[_0x5aa550(0x2dc)]();const {scene:_0x5927db,mainComponent:_0x48afa1}=this[_0x5aa550(0x2d8)],_0x2d0e9e=this[_0x5aa550(0x464)][_0x5aa550(0x229)](),_0x4b762a=this['_cursors'][_0x5aa550(0x57b)](_0x1c3839=>new ot(_0x1c3839,_0x5927db,_0x2d0e9e,_0x48afa1));this[_0x5aa550(0x5c0)]=_0x4b762a;}['_removeCollabCursors'](){const _0x5127ee=_0x3b22f;this[_0x5127ee(0x5c0)]['forEach'](_0x2d6545=>_0x2d6545['dispose']()),this[_0x5127ee(0x5c0)]=[];}[_0x3b22f(0x31a)](){const _0x322feb=_0x3b22f,_0x31582f=[w[_0x322feb(0x32b)]['id']];this['disposeWithMe'](this[_0x322feb(0x4b9)][_0x322feb(0x2dd)](_0x1496e1=>{const _0x31d215=_0x322feb;_0x31582f[_0x31d215(0x565)](_0x1496e1['id'])&&_0x1496e1[_0x31d215(0x3b6)][_0x31d215(0x3df)]===this[_0x31d215(0x2d8)]['unitId']&&this[_0x31d215(0x441)]();}));}[_0x3b22f(0x447)](){const _0x20487b=_0x3b22f;this['disposeWithMe'](a[_0x20487b(0x401)](this[_0x20487b(0x2d8)][_0x20487b(0x31c)][_0x20487b(0x5be)])[_0x20487b(0x3de)](E[_0x20487b(0x3f9)](_0x4ff955=>_0x4ff955['type']===R[_0x20487b(0x458)]['resize']),E[_0x20487b(0x231)](0x10))[_0x20487b(0x42c)](()=>{const _0x3963c8=_0x20487b;this[_0x3963c8(0x441)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x3b22f(0x495)])),de(0x2,a[_0x3b22f(0x492)](ie)),de(0x3,a[_0x3b22f(0x323)]),de(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x4ab)]))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x3b22f(0x28e)]{constructor(_0x3046af,_0x35f64e){const _0x5a5949=_0x3b22f;super(_0x3046af,_0x35f64e),d(this,_0x5a5949(0x2ab)),d(this,_0x5a5949(0x207),!0x1),d(this,_0x5a5949(0x3ac)),d(this,_0x5a5949(0x26a),''),d(this,_0x5a5949(0x51f),_0x5a5949(0x4d9)),d(this,_0x5a5949(0x369)),(_0x35f64e&&this[_0x5a5949(0x592)](_0x35f64e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5a5949(0x592)]({'hovered':!0x0})),this[_0x5a5949(0x247)][_0x5a5949(0x3be)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3b22f(0x592)](_0x429d1e){const _0x371e78=_0x3b22f;var _0x471993,_0x11c66f,_0x2a24d5,_0x19dc6e,_0x2a7e0d,_0x47ccff;this[_0x371e78(0x2ab)]=(_0x471993=_0x429d1e['color'])!=null?_0x471993:this[_0x371e78(0x2ab)],this['_hovered']=(_0x11c66f=_0x429d1e[_0x371e78(0x3ab)])!=null?_0x11c66f:this[_0x371e78(0x207)],this[_0x371e78(0x3ac)]=(_0x2a24d5=_0x429d1e['range'])!=null?_0x2a24d5:this['_range'],this['_name']=(_0x19dc6e=_0x429d1e[_0x371e78(0x366)])!=null?_0x19dc6e:this[_0x371e78(0x26a)],this[_0x371e78(0x51f)]=(_0x2a7e0d=_0x429d1e['labelPosition'])!=null?_0x2a7e0d:this[_0x371e78(0x51f)],this[_0x371e78(0x369)]=(_0x47ccff=_0x429d1e[_0x371e78(0x382)])!=null?_0x47ccff:this[_0x371e78(0x369)],this[_0x371e78(0x26f)]({'width':_0x429d1e[_0x371e78(0x481)],'height':_0x429d1e[_0x371e78(0x1f0)]});}[_0x3b22f(0x3b9)](_0x16e32b){const _0x99d0f1=_0x3b22f,{row:_0x1f9cd9,column:_0x48a038}=_0x16e32b;if(_0x1f9cd9>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x472)]&&_0x1f9cd9<=this[_0x99d0f1(0x3ac)]['endRow']&&_0x48a038>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x595)]&&_0x48a038<=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x375)]){this[_0x99d0f1(0x592)]({'hovered':!0x0});return;}this[_0x99d0f1(0x592)]({'hovered':!0x1});}[_0x3b22f(0x26d)](_0x3a871f){return!0x1;}[_0x3b22f(0x4cc)](_0x202747){const _0xe4eb5a=_0x3b22f;R[_0xe4eb5a(0x299)]['drawWith'](_0x202747,{'width':this[_0xe4eb5a(0x481)],'height':this[_0xe4eb5a(0x1f0)],'strokeWidth':Si,'stroke':this[_0xe4eb5a(0x2ab)],'evented':!0x1,'fill':this[_0xe4eb5a(0x369)]}),this['_hovered']&&(_0x202747[_0xe4eb5a(0x1f5)](),_0x202747['transform'](0x1,0x0,0x0,0x1,this[_0xe4eb5a(0x481)],this['_labelPosition']===_0xe4eb5a(0x3bd)?0x0:-ue),Te[_0xe4eb5a(0x5dd)](_0x202747,{'text':this['_name'],'color':this['_color']}),_0x202747[_0xe4eb5a(0x372)]());}}var vi=Object[_0x3b22f(0x1ff)],fi=Object[_0x3b22f(0x246)],gi=(_0x4a1bcb,_0x2fe850,_0x7204d9,_0x1c60d9)=>{const _0x4c5f5a=_0x3b22f;for(var _0x475012=_0x1c60d9>0x1?void 0x0:_0x1c60d9?fi(_0x2fe850,_0x7204d9):_0x2fe850,_0x3b31a4=_0x4a1bcb[_0x4c5f5a(0x291)]-0x1,_0x42c6f9;_0x3b31a4>=0x0;_0x3b31a4--)(_0x42c6f9=_0x4a1bcb[_0x3b31a4])&&(_0x475012=(_0x1c60d9?_0x42c6f9(_0x2fe850,_0x7204d9,_0x475012):_0x42c6f9(_0x475012))||_0x475012);return _0x1c60d9&&_0x475012&&vi(_0x2fe850,_0x7204d9,_0x475012),_0x475012;},Ae=(_0x14427a,_0x354eb2)=>(_0x297ce,_0x58e85e)=>_0x354eb2(_0x297ce,_0x58e85e,_0x14427a);const mi=0x1389;let ke=class extends a[_0x3b22f(0x398)]{constructor(_0x4671ae,_0x134d1f,_0xe3c33b,_0xce97ca){const _0x5f16c5=_0x3b22f;super(),d(this,_0x5f16c5(0x304),new Set()),d(this,_0x5f16c5(0x351),null),(this['_context']=_0x4671ae,this[_0x5f16c5(0x330)]=_0x134d1f,this[_0x5f16c5(0x45c)]=_0xe3c33b,this[_0x5f16c5(0x3d9)]=_0xce97ca,this[_0x5f16c5(0x341)]());}[_0x3b22f(0x341)](){const _0x46b214=_0x3b22f;this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x3de)](E[_0x46b214(0x37c)](this[_0x46b214(0x2e1)]),E[_0x46b214(0x3fe)](_0x36798e=>{const _0x30ad38=_0x46b214;if(_0x36798e){const _0x4b198e=_0x36798e[_0x30ad38(0x453)];return v[_0x30ad38(0x417)](this['_collabCursorController']['getCollabCursors$'](this[_0x30ad38(0x2d8)][_0x30ad38(0x3df)]),this[_0x30ad38(0x3d9)][_0x30ad38(0x3e4)])[_0x30ad38(0x3de)](E[_0x30ad38(0x57b)](([_0x565e87,_0x157614])=>{const _0x37d621=_0x30ad38,_0x5d3382=new Map();return _0x565e87[_0x37d621(0x339)]((_0x24f436,_0xa78849)=>{const _0x154853=_0x37d621;if(_0x24f436[_0x154853(0x52c)]===_0x4b198e){const _0x45cd01={..._0x24f436};_0x45cd01[_0x154853(0x1e9)]=_0x157614[_0x24f436[_0x154853(0x1e9)]],_0x5d3382['set'](_0xa78849,_0x45cd01);}}),{'skeleton':_0x36798e,'cursors':_0x5d3382};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x46b214(0x42c)](({skeleton:_0x10f994,cursors:_0x417dd5})=>{const _0x1e3b39=_0x46b214;this[_0x1e3b39(0x2dc)](),_0x10f994&&this[_0x1e3b39(0x560)](_0x10f994,_0x417dd5);}),this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x42c)](_0x5a8e0b=>{const _0x39fe68=_0x46b214;if(_0x5a8e0b==null)return;const {skeleton:_0x411564}=_0x5a8e0b,{scene:_0x9f5268}=this[_0x39fe68(0x2d8)];_0x9f5268[_0x39fe68(0x51e)][_0x39fe68(0x3be)](a['debounce'](_0x115ea2=>{const _0x5e0248=_0x39fe68;var _0x4c8516,_0x27661a;const {offsetX:_0x2c9223,offsetY:_0x33c2ef}=_0x115ea2,{x:_0x1f2c5a,y:_0x37ccff}=_0x9f5268[_0x5e0248(0x2fd)](R[_0x5e0248(0x559)]['FromArray']([_0x2c9223,_0x33c2ef])),{scaleX:_0x281d56,scaleY:_0x5ac98c}=_0x9f5268['getAncestorScale'](),_0x5b3715=_0x9f5268[_0x5e0248(0x29d)](te['VIEWPORT_KEY'][_0x5e0248(0x59c)]),_0x5ec5f3=_0x9f5268['getVpScrollXYInfoByPosToVp'](R['Vector2'][_0x5e0248(0x313)]([_0x1f2c5a,_0x37ccff]),_0x5b3715),_0x3b00b9=_0x411564['getCellPositionByOffset'](_0x2c9223,_0x33c2ef,_0x281d56,_0x5ac98c,_0x5ec5f3);((_0x4c8516=this[_0x5e0248(0x351)])==null?void 0x0:_0x4c8516['column'])===_0x3b00b9[_0x5e0248(0x5d7)]&&((_0x27661a=this['_lastPointer'])==null?void 0x0:_0x27661a['row'])===_0x3b00b9[_0x5e0248(0x4c5)]||this[_0x5e0248(0x304)]['forEach'](_0xcdaf7e=>{const _0xfccfed=_0x5e0248;_0xcdaf7e[_0xfccfed(0x3b9)](_0x3b00b9);});},0x64));});}[_0x3b22f(0x560)](_0x387538,_0x2d8912){const _0x19d216=_0x3b22f;var _0x3931e4;const _0x219a89=(_0x3931e4=this[_0x19d216(0x330)]['getCurrent']())==null?void 0x0:_0x3931e4['skeleton'];if(!_0x219a89)return;const _0x10616e=this[_0x19d216(0x556)]();if(!_0x10616e)return;this[_0x19d216(0x304)][_0x19d216(0x339)](_0x367948=>{const _0x41630e=_0x19d216;_0x367948[_0x41630e(0x48e)]();});const {scene:_0x40566b}=_0x10616e,_0x22f49a=Ii(Array['from'](_0x2d8912[_0x19d216(0x407)]()))[_0x19d216(0x57b)](_0x3b646b=>{const _0x1c5677=_0x19d216,{color:_0x184522,range:_0x381b22,name:_0x2330fe,selection:_0x4e8ca6,sheetID:_0xf34080}=_0x3b646b,{startColumn:_0x493009,startRow:_0x4b9cff,endColumn:_0x3a58cd,endRow:_0x470f79}=_0x381b22,_0x448fdc=te[_0x1c5677(0x562)](_0x4b9cff,_0x493009,_0x40566b,_0x219a89),_0x1ef8c8=te[_0x1c5677(0x562)](_0x470f79,_0x3a58cd,_0x40566b,_0x219a89),{columnHeaderHeightAndMarginTop:_0x2d5c20}=_0x219a89,{startX:_0x125264,startY:_0xb99fe7}=_0x448fdc,{endX:_0x329c49,endY:_0x1bf0cd}=_0x1ef8c8,_0x141345=_0x329c49-_0x125264,_0x309566=_0x1bf0cd-_0xb99fe7,_0x5ac3c1={'labelPosition':_0xb99fe7-_0x2d5c20>=ue?_0x1c5677(0x4d9):'bottom','sheetID':_0xf34080,'range':_0x381b22,'color':_0x184522,'name':_0x2330fe,'selection':_0x4e8ca6,'left':_0x125264,'top':_0xb99fe7,'width':_0x141345,'height':_0x309566,'evented':!0x1,'zIndex':mi};return new Ot(_0x2330fe,_0x5ac3c1);});_0x40566b[_0x19d216(0x4a9)](_0x22f49a,di),this[_0x19d216(0x304)]=new Set(_0x22f49a);}[_0x3b22f(0x2dc)](){const _0x18e6f5=_0x3b22f;var _0x42c1e0;(_0x42c1e0=this[_0x18e6f5(0x304)])==null||_0x42c1e0[_0x18e6f5(0x339)](_0x232f6e=>_0x232f6e[_0x18e6f5(0x4f2)]());}[_0x3b22f(0x556)](){const _0x2fa5e6=_0x3b22f;return te[_0x2fa5e6(0x287)](this[_0x2fa5e6(0x2d8)][_0x2fa5e6(0x59f)],this[_0x2fa5e6(0x2d8)]);}};ke=gi([Ae(0x1,a[_0x3b22f(0x492)](te[_0x3b22f(0x21a)])),Ae(0x2,a[_0x3b22f(0x492)](ie)),Ae(0x3,a['Inject'](a[_0x3b22f(0x4ab)]))],ke);function Ii(_0x51a7a2){const _0x25738d=_0x3b22f,_0x37d589=new Map();return _0x51a7a2[_0x25738d(0x339)](_0x2dba96=>{const _0x3728f8=_0x25738d;if(_0x37d589[_0x3728f8(0x3e5)](_0x2dba96['selection'])){const _0x5e8aaf=_0x37d589[_0x3728f8(0x34d)](_0x2dba96[_0x3728f8(0x476)]);_0x5e8aaf[_0x3728f8(0x366)]+=',\x20'+_0x2dba96[_0x3728f8(0x366)];}else _0x37d589[_0x3728f8(0x305)](_0x2dba96[_0x3728f8(0x476)],_0x2dba96);}),Array[_0x25738d(0x1e8)](_0x37d589[_0x25738d(0x407)]());}var M=function(){const _0x16e31a=_0x3b22f;return M=Object[_0x16e31a(0x259)]||function(_0x4eee2d){const _0x5c684=_0x16e31a;for(var _0x18806c,_0x3d0aa4=0x1,_0x292f9c=arguments[_0x5c684(0x291)];_0x3d0aa4<_0x292f9c;_0x3d0aa4++){_0x18806c=arguments[_0x3d0aa4];for(var _0x3b796d in _0x18806c)Object[_0x5c684(0x4cf)]['hasOwnProperty'][_0x5c684(0x4d0)](_0x18806c,_0x3b796d)&&(_0x4eee2d[_0x3b796d]=_0x18806c[_0x3b796d]);}return _0x4eee2d;},M[_0x16e31a(0x4cd)](this,arguments);},pi=function(_0x1e0d0e,_0x12c5cb){const _0x3c763d=_0x3b22f;var _0x191ec8={};for(var _0xf3104f in _0x1e0d0e)Object['prototype'][_0x3c763d(0x53f)][_0x3c763d(0x4d0)](_0x1e0d0e,_0xf3104f)&&_0x12c5cb[_0x3c763d(0x238)](_0xf3104f)<0x0&&(_0x191ec8[_0xf3104f]=_0x1e0d0e[_0xf3104f]);if(_0x1e0d0e!=null&&typeof Object[_0x3c763d(0x5da)]==_0x3c763d(0x554)){for(var _0x14bed1=0x0,_0xf3104f=Object[_0x3c763d(0x5da)](_0x1e0d0e);_0x14bed1<_0xf3104f[_0x3c763d(0x291)];_0x14bed1++)_0x12c5cb['indexOf'](_0xf3104f[_0x14bed1])<0x0&&Object[_0x3c763d(0x4cf)][_0x3c763d(0x563)]['call'](_0x1e0d0e,_0xf3104f[_0x14bed1])&&(_0x191ec8[_0xf3104f[_0x14bed1]]=_0x1e0d0e[_0xf3104f[_0x14bed1]]);}return _0x191ec8;},qe=U[_0x3b22f(0x5b8)](function(_0x584ce1,_0x319f75){const _0x15d226=_0x3b22f;var _0x5f5282=_0x584ce1[_0x15d226(0x3c1)],_0x407e4a=_0x584ce1['id'],_0x14b22b=_0x584ce1['className'],_0x345b4b=_0x584ce1['extend'],_0x9dc4e8=pi(_0x584ce1,[_0x15d226(0x3c1),'id','className','extend']),_0x360506=_0x15d226(0x443)[_0x15d226(0x533)](_0x407e4a,'\x20')[_0x15d226(0x533)](_0x14b22b||'')[_0x15d226(0x3fc)](),_0x306198=U[_0x15d226(0x385)]('_'[_0x15d226(0x533)](bi()));return Dt(_0x5f5282,''['concat'](_0x407e4a),{'defIds':_0x5f5282[_0x15d226(0x5e1)],'idSuffix':_0x306198[_0x15d226(0x32e)]},M({'ref':_0x319f75,'className':_0x360506},_0x9dc4e8),_0x345b4b);});function Dt(_0x157d61,_0x3eb8e6,_0x2e08c4,_0x49a5f5,_0x34f3eb){const _0x5a308a=_0x3b22f;return U[_0x5a308a(0x494)](_0x157d61['tag'],M(M({'key':_0x3eb8e6},Ci(_0x157d61,_0x2e08c4,_0x34f3eb)),_0x49a5f5),(Ei(_0x157d61,_0x2e08c4)[_0x5a308a(0x44e)]||[])[_0x5a308a(0x57b)](function(_0x319ddc,_0x45a123){const _0x4a97fa=_0x5a308a;return Dt(_0x319ddc,''[_0x4a97fa(0x533)](_0x3eb8e6,'-')[_0x4a97fa(0x533)](_0x157d61[_0x4a97fa(0x43d)],'-')['concat'](_0x45a123),_0x2e08c4,void 0x0,_0x34f3eb);}));}function Ci(_0x5c9eee,_0x1c5e18,_0x700f90){const _0x15c40d=_0x3b22f;var _0x217ef6=M({},_0x5c9eee[_0x15c40d(0x5d3)]);_0x700f90!=null&&_0x700f90[_0x15c40d(0x20b)]&&_0x217ef6[_0x15c40d(0x2f2)]==='colorChannel1'&&(_0x217ef6[_0x15c40d(0x2f2)]=_0x700f90[_0x15c40d(0x20b)]);var _0x51088a=_0x1c5e18[_0x15c40d(0x5e1)];return!_0x51088a||_0x51088a['length']===0x0||(_0x5c9eee[_0x15c40d(0x43d)]==='use'&&_0x217ef6[_0x15c40d(0x3d1)]&&(_0x217ef6[_0x15c40d(0x3d1)]=_0x217ef6[_0x15c40d(0x3d1)]+_0x1c5e18[_0x15c40d(0x4db)]),Object['entries'](_0x217ef6)[_0x15c40d(0x339)](function(_0x8d3765){const _0x1a7fab=_0x15c40d;var _0x26f651=_0x8d3765[0x0],_0x54c482=_0x8d3765[0x1];typeof _0x54c482=='string'&&(_0x217ef6[_0x26f651]=_0x54c482[_0x1a7fab(0x262)](/url\(#(.*)\)/,_0x1a7fab(0x3f7)[_0x1a7fab(0x533)](_0x1c5e18[_0x1a7fab(0x4db)],')')));})),_0x217ef6;}function Ei(_0xe08c60,_0x164eca){const _0x226177=_0x3b22f;var _0x38605f,_0xe3318a=_0x164eca[_0x226177(0x5e1)];return!_0xe3318a||_0xe3318a[_0x226177(0x291)]===0x0?_0xe08c60:_0xe08c60[_0x226177(0x43d)]===_0x226177(0x50f)&&(!((_0x38605f=_0xe08c60['children'])===null||_0x38605f===void 0x0)&&_0x38605f[_0x226177(0x291)])?M(M({},_0xe08c60),{'children':_0xe08c60[_0x226177(0x44e)][_0x226177(0x57b)](function(_0x84ecb3){const _0x44647b=_0x226177;return typeof _0x84ecb3[_0x44647b(0x5d3)]['id']=='string'&&_0xe3318a&&_0xe3318a['indexOf'](_0x84ecb3['attrs']['id'])>-0x1?M(M({},_0x84ecb3),{'attrs':M(M({},_0x84ecb3['attrs']),{'id':_0x84ecb3[_0x44647b(0x5d3)]['id']+_0x164eca[_0x44647b(0x4db)]})}):_0x84ecb3;})}):_0xe08c60;}function bi(){const _0x265476=_0x3b22f;return Math[_0x265476(0x482)]()[_0x265476(0x4e2)](0x24)[_0x265476(0x35d)](0x2,0x8);}qe[_0x3b22f(0x499)]='UniverIcon';var Ti={'tag':_0x3b22f(0x448),'attrs':{'fill':'none','viewBox':_0x3b22f(0x5a2),'width':_0x3b22f(0x39e),'height':_0x3b22f(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x219)},'children':[{'tag':_0x3b22f(0x321),'attrs':{'stroke':_0x3b22f(0x478),'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':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222)}}]}]}],'defIds':[_0x3b22f(0x5e0)]},yt=U['forwardRef'](function(_0x476043,_0x87e49e){const _0x770cdd=_0x3b22f;return U[_0x770cdd(0x494)](qe,Object[_0x770cdd(0x259)]({},_0x476043,{'id':_0x770cdd(0x355),'ref':_0x87e49e,'icon':Ti}));});yt[_0x3b22f(0x499)]=_0x3b22f(0x5c5);var Ri={'tag':'svg','attrs':{'fill':_0x3b22f(0x2c0),'viewBox':_0x3b22f(0x552),'width':_0x3b22f(0x39e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x550)},'children':[{'tag':'path','attrs':{'stroke':_0x3b22f(0x478),'d':_0x3b22f(0x456),'strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3b22f(0x321),'attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222),'transform':_0x3b22f(0x2b7)}}]}]}],'defIds':[_0x3b22f(0x2f5)]},Ut=U[_0x3b22f(0x5b8)](function(_0x567135,_0x426d4e){const _0x608fdd=_0x3b22f;return U['createElement'](qe,Object[_0x608fdd(0x259)]({},_0x567135,{'id':_0x608fdd(0x1e7),'ref':_0x426d4e,'icon':Ri}));});Ut[_0x3b22f(0x499)]=_0x3b22f(0x2d1);function Pt(_0x4abb31){const _0x17fdac=_0x3b22f;var _0x3a2b3b,_0x23ff24,_0x5580bb='';if(typeof _0x4abb31==_0x17fdac(0x40a)||typeof _0x4abb31==_0x17fdac(0x3f0))_0x5580bb+=_0x4abb31;else{if(typeof _0x4abb31==_0x17fdac(0x529)){if(Array[_0x17fdac(0x33f)](_0x4abb31)){var _0x3bf54a=_0x4abb31[_0x17fdac(0x291)];for(_0x3a2b3b=0x0;_0x3a2b3b<_0x3bf54a;_0x3a2b3b++)_0x4abb31[_0x3a2b3b]&&(_0x23ff24=Pt(_0x4abb31[_0x3a2b3b]))&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}else{for(_0x23ff24 in _0x4abb31)_0x4abb31[_0x23ff24]&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}}}return _0x5580bb;}function Oi(){const _0x1a39d6=_0x3b22f;for(var _0x57a9c5,_0x3e8149,_0x4e3bfe=0x0,_0xf99454='',_0xac0a6f=arguments[_0x1a39d6(0x291)];_0x4e3bfe<_0xac0a6f;_0x4e3bfe++)(_0x57a9c5=arguments[_0x4e3bfe])&&(_0x3e8149=Pt(_0x57a9c5))&&(_0xf99454&&(_0xf99454+='\x20'),_0xf99454+=_0x3e8149);return _0xf99454;}const Di=_0x3b22f(0x5bc),yi=_0x3b22f(0x480),Ui=_0x3b22f(0x53e),Pi=_0x3b22f(0x363),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x2ec702){const _0x5bc0b9=_0x3b22f;switch(_0x2ec702){case y['OFFLINE']:return _0x5bc0b9(0x3ae);case y[_0x5bc0b9(0x30c)]:return'collabStatus.conflict';case y[_0x5bc0b9(0x416)]:return _0x5bc0b9(0x2ad);case y[_0x5bc0b9(0x4eb)]:return _0x5bc0b9(0x22b);case y[_0x5bc0b9(0x2a6)]:case y[_0x5bc0b9(0x34f)]:case y[_0x5bc0b9(0x4ea)]:return _0x5bc0b9(0x43a);case y[_0x5bc0b9(0x434)]:return'collabStatus.synced';}}function wt(_0x469b64){const _0x17cd9e=_0x3b22f,{status$:_0x18dda2}=_0x469b64,_0x2df0d4=N[_0x17cd9e(0x4fe)](_0x18dda2,y[_0x17cd9e(0x4eb)]),_0x489bc7=a[_0x17cd9e(0x32c)](a[_0x17cd9e(0x583)]),_0x2ca222=a['useDependency'](exports[_0x17cd9e(0x298)]),_0x25c798=_0x2df0d4!==y[_0x17cd9e(0x3ea)],_0x4e54e1=_0x489bc7['t'](Mi(_0x2df0d4)),_0x1702d9=Oi(le[_0x17cd9e(0x30b)],{[le[_0x17cd9e(0x5d1)]]:_0x25c798,[le[_0x17cd9e(0x45f)]]:!_0x25c798}),_0xdf07e6=_0x25c798?U[_0x17cd9e(0x494)](Ut,null):U[_0x17cd9e(0x494)](yt,null),_0x3ee3e4=U[_0x17cd9e(0x391)](()=>{const _0x2a21d4=_0x17cd9e;_0x25c798||_0x2ca222[_0x2a21d4(0x359)]();},[_0x25c798,_0x2ca222]);function _0x3289df(){const _0x128d91=_0x17cd9e;return U[_0x128d91(0x494)](_0x128d91(0x547),{'className':_0x1702d9,'onClick':_0x3ee3e4},U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le['onlineStatusIcon']},_0xdf07e6),U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le[_0x128d91(0x4a5)]},_0x4e54e1));}return _0x25c798?_0x3289df():U[_0x17cd9e(0x494)](X[_0x17cd9e(0x4f6)],{'title':_0x489bc7['t'](_0x17cd9e(0x4ac))},_0x3289df());}var Ni=Object[_0x3b22f(0x1ff)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x59ea5d,_0x624443,_0x3cef67,_0xeabd1e)=>{const _0x58dfad=_0x3b22f;for(var _0x3c8ba6=_0xeabd1e>0x1?void 0x0:_0xeabd1e?Ai(_0x624443,_0x3cef67):_0x624443,_0x1a520b=_0x59ea5d[_0x58dfad(0x291)]-0x1,_0x14e22a;_0x1a520b>=0x0;_0x1a520b--)(_0x14e22a=_0x59ea5d[_0x1a520b])&&(_0x3c8ba6=(_0xeabd1e?_0x14e22a(_0x624443,_0x3cef67,_0x3c8ba6):_0x14e22a(_0x3c8ba6))||_0x3c8ba6);return _0xeabd1e&&_0x3c8ba6&&Ni(_0x624443,_0x3cef67,_0x3c8ba6),_0x3c8ba6;},Se=(_0x22be0b,_0x38a26e)=>(_0x2db1c9,_0x5b0bba)=>_0x38a26e(_0x2db1c9,_0x5b0bba,_0x22be0b);exports[_0x3b22f(0x52f)]=class extends a['Disposable']{constructor(_0x569987,_0x1fb11e,_0x35d0a3,_0x26b0b1){const _0x4a807e=_0x3b22f;super(),d(this,_0x4a807e(0x4d5),new v[(_0x4a807e(0x502))](y['NOT_COLLAB'])),(this[_0x4a807e(0x340)]=_0x569987,this[_0x4a807e(0x36d)]=_0x1fb11e,this[_0x4a807e(0x397)]=_0x35d0a3,this[_0x4a807e(0x263)]=_0x26b0b1,this[_0x4a807e(0x3a0)](),this['_initStatusListener']());}[_0x3b22f(0x4f0)](){const _0x44f7ea=_0x3b22f;this['disposeWithMe'](this[_0x44f7ea(0x340)][_0x44f7ea(0x289)][_0x44f7ea(0x3de)](v[_0x44f7ea(0x3fe)](()=>{const _0x2139df=_0x44f7ea,_0x17ff28=this[_0x2139df(0x340)]['getFocusedUnit']();return _0x17ff28?this[_0x2139df(0x263)]['getCollabEntity$'](_0x17ff28['getUnitId']()):v['of'](null);}),v[_0x44f7ea(0x3fe)](_0x1e4e4f=>_0x1e4e4f?_0x1e4e4f['status$']:v['of'](y[_0x44f7ea(0x4eb)])))[_0x44f7ea(0x42c)](_0xd1d126=>{const _0x2c7033=_0x44f7ea;this[_0x2c7033(0x4d5)][_0x2c7033(0x52d)](_0xd1d126);}));}[_0x3b22f(0x3a0)](){const _0xff0234=_0x3b22f;this[_0xff0234(0x283)](this[_0xff0234(0x36d)][_0xff0234(0x25a)](N[_0xff0234(0x388)][_0xff0234(0x489)],()=>a[_0xff0234(0x234)](ji({'status$':this[_0xff0234(0x4d5)][_0xff0234(0x56e)]()}),this[_0xff0234(0x397)])));}},exports['DesktopCollaborationStatusDisplayController']=Li([Se(0x0,a[_0x3b22f(0x26b)]),Se(0x1,N[_0x3b22f(0x4c6)]),Se(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Se(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x322)]))],exports[_0x3b22f(0x52f)]);function ji(_0x4a3287){const {status$:_0x268bbb}=_0x4a3287;return function(){return U['createElement'](wt,{'status$':_0x268bbb});};}const ze=a[_0x3b22f(0x3cd)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x3b22f(0x246)],xi=(_0x1d02f9,_0x3e17f6,_0x38ab8e,_0x546875)=>{const _0x33913c=_0x3b22f;for(var _0x27ddad=_0x546875>0x1?void 0x0:_0x546875?Hi(_0x3e17f6,_0x38ab8e):_0x3e17f6,_0x525591=_0x1d02f9[_0x33913c(0x291)]-0x1,_0x41f358;_0x525591>=0x0;_0x525591--)(_0x41f358=_0x1d02f9[_0x525591])&&(_0x27ddad=(_0x546875?_0x41f358(_0x3e17f6,_0x38ab8e,_0x27ddad):_0x41f358(_0x27ddad))||_0x27ddad);return _0x546875&&_0x27ddad&&$i(_0x3e17f6,_0x38ab8e,_0x27ddad),_0x27ddad;},ee=(_0x4181d8,_0x3b989d)=>(_0x2763da,_0x11286e)=>_0x3b989d(_0x2763da,_0x11286e,_0x4181d8);exports[_0x3b22f(0x4f7)]=class extends a[_0x3b22f(0x398)]{constructor(_0x2be409,_0x40ed7e,_0x43aa6e,_0x2fe4a4,_0x278714,_0x18fc27){const _0x164883=_0x3b22f;super(),this[_0x164883(0x25d)]=_0x2be409,this['_logService']=_0x40ed7e,this[_0x164883(0x4b9)]=_0x43aa6e,this[_0x164883(0x522)]=_0x2fe4a4,this[_0x164883(0x2d9)]=_0x278714,_0x18fc27?_0x18fc27==null||_0x18fc27[_0x164883(0x487)]()['then'](()=>this[_0x164883(0x341)]()):(this[_0x164883(0x445)][_0x164883(0x320)](_0x164883(0x3ca),_0x164883(0x230)),this['_init']());}async[_0x3b22f(0x341)](){const _0x26c3fa=_0x3b22f,_0x451100=this['_urlService'][_0x26c3fa(0x422)](_0x26c3fa(0x59f)),_0x24d3e5=this[_0x26c3fa(0x25d)][_0x26c3fa(0x422)](_0x26c3fa(0x331));if(!_0x451100||!_0x24d3e5){this[_0x26c3fa(0x445)][_0x26c3fa(0x320)](_0x26c3fa(0x3ca),_0x26c3fa(0x34c));return;}switch(Number(_0x24d3e5)){case j['UNIVER_SHEET']:{const _0x240c0b=await this['_loadSheet'](_0x451100);this[_0x26c3fa(0x36a)](_0x240c0b);break;}case j[_0x26c3fa(0x332)]:{await this[_0x26c3fa(0x584)](_0x451100);break;}default:{this['_logService'][_0x26c3fa(0x49d)](_0x26c3fa(0x3ca),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x10fa00){const _0x5c6e12=_0x3b22f;await this[_0x5c6e12(0x442)](_0x10fa00),_0x10fa00['activeSheet$'][_0x5c6e12(0x3de)](v['takeUntil'](this[_0x5c6e12(0x2e1)]))[_0x5c6e12(0x42c)](_0x2b559f=>{const _0x1f0374=_0x5c6e12;_0x2b559f&&this[_0x1f0374(0x549)](_0x2b559f);}),this[_0x5c6e12(0x25d)][_0x5c6e12(0x4cb)][_0x5c6e12(0x3de)](v[_0x5c6e12(0x37c)](this[_0x5c6e12(0x2e1)]))['subscribe'](()=>this[_0x5c6e12(0x442)](_0x10fa00));}[_0x3b22f(0x549)](_0x204dcf,_0x31daac=!0x1){const _0x4249d7=_0x3b22f,_0x47effc=this[_0x4249d7(0x25d)]['getParam'](_0x4249d7(0x3ad));_0x204dcf[_0x4249d7(0x3b3)]()!==_0x47effc&&this[_0x4249d7(0x25d)][_0x4249d7(0x57f)]('subunit',_0x204dcf['getSheetId'](),_0x31daac);}async[_0x3b22f(0x442)](_0x2d9e02){const _0x512ca1=_0x3b22f;var _0x345365;const _0x1c3b2c=this[_0x512ca1(0x25d)][_0x512ca1(0x422)](_0x512ca1(0x3ad));if(!_0x1c3b2c||!_0x2d9e02[_0x512ca1(0x2f1)](_0x1c3b2c)){const _0x2d576f=_0x2d9e02['getUnhiddenWorksheets']()[0x0],_0x142243=_0x2d9e02[_0x512ca1(0x2f1)](_0x2d576f);if(!_0x142243)return;this[_0x512ca1(0x549)](_0x142243,!0x0),await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02[_0x512ca1(0x52b)](),'subUnitId':_0x2d576f});return;}((_0x345365=_0x2d9e02['getActiveSheet']())==null?void 0x0:_0x345365[_0x512ca1(0x3b3)]())!==_0x1c3b2c&&await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02['getUnitId'](),'subUnitId':_0x1c3b2c});}async['_loadSheet'](_0x4d4b80){const _0x4c738b=_0x3b22f;let _0x571fd8=0x0;const _0x3f2f46=await this[_0x4c738b(0x522)][_0x4c738b(0x4dd)](_0x4d4b80);return _0x3f2f46&&(_0x3f2f46[_0x4c738b(0x5eb)]||_0x3f2f46[_0x4c738b(0x3a2)][_0x4c738b(0x291)]!==0x0)&&(_0x571fd8=_0x3f2f46[_0x4c738b(0x3a8)]),_0x571fd8===0x0&&this[_0x4c738b(0x445)][_0x4c738b(0x320)](_0x4c738b(0x3ca),_0x4c738b(0x5a7)),this['_snapshotService'][_0x4c738b(0x243)](_0x4d4b80,_0x571fd8);}async['_loadDoc'](_0x968f7a){const _0x3fc017=_0x3b22f;let _0x3ff59f=0x0;const _0x502afe=await this['_localCacheService']['loadOfflineData'](_0x968f7a);return _0x502afe&&(_0x502afe[_0x3fc017(0x5eb)]||_0x502afe[_0x3fc017(0x3a2)][_0x3fc017(0x291)]!==0x0)&&(_0x3ff59f=_0x502afe['rev']),_0x3ff59f===0x0&&this[_0x3fc017(0x445)][_0x3fc017(0x320)](_0x3fc017(0x3ca),_0x3fc017(0x5a7)),this[_0x3fc017(0x2d9)]['loadDoc'](_0x968f7a,_0x3ff59f);}},exports[_0x3b22f(0x4f7)]=xi([ee(0x0,ze),ee(0x1,a[_0x3b22f(0x308)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x3b22f(0x5c6)](Wt[_0x3b22f(0x4b2)]))],exports['DataLoaderController']);var ki=Object[_0x3b22f(0x1ff)],Bi=Object[_0x3b22f(0x246)],Vi=(_0x547bdd,_0xe8de67,_0x4b39f0,_0x50c939)=>{const _0x48d6a6=_0x3b22f;for(var _0x24dc93=_0x50c939>0x1?void 0x0:_0x50c939?Bi(_0xe8de67,_0x4b39f0):_0xe8de67,_0x58c631=_0x547bdd[_0x48d6a6(0x291)]-0x1,_0x382dd9;_0x58c631>=0x0;_0x58c631--)(_0x382dd9=_0x547bdd[_0x58c631])&&(_0x24dc93=(_0x50c939?_0x382dd9(_0xe8de67,_0x4b39f0,_0x24dc93):_0x382dd9(_0x24dc93))||_0x24dc93);return _0x50c939&&_0x24dc93&&ki(_0xe8de67,_0x4b39f0,_0x24dc93),_0x24dc93;},at=(_0x40b4ef,_0x106097)=>(_0x2fbecc,_0x3f4ebb)=>_0x106097(_0x2fbecc,_0x3f4ebb,_0x40b4ef);const Wi=_0x3b22f(0x5ee),Fi=_0x3b22f(0x44a);let Ie=class extends a[_0x3b22f(0x4b0)]{constructor(_0x1ca05f,_0x298f35){const _0x4a3f69=_0x3b22f;super(),this[_0x4a3f69(0x340)]=_0x1ca05f,this[_0x4a3f69(0x266)]=_0x298f35,this[_0x4a3f69(0x341)]();}['_init'](){const _0x3ee5db=_0x3b22f;this['disposeWithMe'](this[_0x3ee5db(0x340)]['focused$'][_0x3ee5db(0x42c)](()=>{const _0x311a65=_0x3ee5db;var _0x5ccb6c;const _0x3eae23=this[_0x311a65(0x340)][_0x311a65(0x255)]();let _0x1bac01=(_0x5ccb6c=this[_0x311a65(0x266)][_0x311a65(0x504)](Wi))!=null?_0x5ccb6c:Fi;_0x3eae23 instanceof a['Workbook']&&(_0x1bac01=_0x3eae23[_0x311a65(0x366)]),document[_0x311a65(0x1eb)]=_0x1bac01;}));}};Ie=Vi([at(0x0,a[_0x3b22f(0x26b)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x3b22f(0x1ff)],Yi=Object[_0x3b22f(0x246)],Ki=(_0xf6c05e,_0x18f5e0,_0x466d8b,_0x415f20)=>{const _0x3f50af=_0x3b22f;for(var _0x270380=_0x415f20>0x1?void 0x0:_0x415f20?Yi(_0x18f5e0,_0x466d8b):_0x18f5e0,_0x1f43ed=_0xf6c05e[_0x3f50af(0x291)]-0x1,_0x5d2179;_0x1f43ed>=0x0;_0x1f43ed--)(_0x5d2179=_0xf6c05e[_0x1f43ed])&&(_0x270380=(_0x415f20?_0x5d2179(_0x18f5e0,_0x466d8b,_0x270380):_0x5d2179(_0x270380))||_0x270380);return _0x415f20&&_0x270380&&Gi(_0x18f5e0,_0x466d8b,_0x270380),_0x270380;},Le=(_0xefe9da,_0x24ddc3)=>(_0x182af4,_0x3cee86)=>_0x24ddc3(_0x182af4,_0x3cee86,_0xefe9da);let pe=class{constructor(_0x63eb80,_0x4626ef,_0x364540){const _0xdf8888=_0x3b22f;this['_configService']=_0x63eb80,this['_httpService']=_0x4626ef,this[_0xdf8888(0x41a)]=_0x364540,this['init']();}['init'](){const _0x8025a6=_0x3b22f;this['_httpService'][_0x8025a6(0x3ef)]({'priority':0x1,'interceptor':(_0x2a9e63,_0xf70e3e)=>_0xf70e3e(_0x2a9e63)['pipe'](v[_0x8025a6(0x56c)](async _0x3009bd=>{const _0x4b3252=_0x8025a6,_0x5981fd=_0x3009bd;if(_0x5981fd[_0x4b3252(0x3d2)]===0x191&&window[_0x4b3252(0x32d)](this[_0x4b3252(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x33bc44=window[_0x4b3252(0x5a9)](window[_0x4b3252(0x353)][_0x4b3252(0x412)]);window['location'][_0x4b3252(0x412)]=this[_0x4b3252(0x29c)]()+_0x4b3252(0x5c3)+_0x33bc44;}return _0x5981fd;}))});}[_0x3b22f(0x29c)](){const _0x1a93f6=_0x3b22f;var _0x5d2f3a,_0x35957f;const _0x45c509=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](mt),_0x2f534a=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](A);return(_0x35957f=(_0x5d2f3a=_0x2f534a==null?void 0x0:_0x2f534a['loginUrlKey'])!=null?_0x5d2f3a:_0x45c509)!=null?_0x35957f:es;}};pe=Ki([Le(0x0,a[_0x3b22f(0x5ad)]),Le(0x1,a['Inject'](P['HTTPService'])),Le(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)]))],pe);var Xi=Object[_0x3b22f(0x1ff)],qi=Object[_0x3b22f(0x246)],zi=(_0x34ff20,_0x432a77,_0x33ecff,_0x2709b4)=>{for(var _0xca2fdb=_0x2709b4>0x1?void 0x0:_0x2709b4?qi(_0x432a77,_0x33ecff):_0x432a77,_0x22ddb8=_0x34ff20['length']-0x1,_0x5df3d4;_0x22ddb8>=0x0;_0x22ddb8--)(_0x5df3d4=_0x34ff20[_0x22ddb8])&&(_0xca2fdb=(_0x2709b4?_0x5df3d4(_0x432a77,_0x33ecff,_0xca2fdb):_0x5df3d4(_0xca2fdb))||_0xca2fdb);return _0x2709b4&&_0xca2fdb&&Xi(_0x432a77,_0x33ecff,_0xca2fdb),_0xca2fdb;},ct=(_0x5bd9fb,_0x233ab8)=>(_0x53fa5b,_0x3df850)=>_0x233ab8(_0x53fa5b,_0x3df850,_0x5bd9fb);const Mt=_0x3b22f(0x211),Ji=_0x3b22f(0x1f2);exports[_0x3b22f(0x38b)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0xc80b97,_0x5bd7f7){const _0x133148=_0x3b22f;super(),this[_0x133148(0x3a9)]=_0xc80b97,this[_0x133148(0x266)]=_0x5bd7f7,this[_0x133148(0x551)]();}['_initMergeInterceptor'](){const _0x3bef95=_0x3b22f,_0x3d9ba5=this;this[_0x3bef95(0x283)](this[_0x3bef95(0x3a9)][_0x3bef95(0x3ef)]({'priority':0x3e7,'interceptor':P[_0x3bef95(0x5b2)]({'isMatch'(_0x3c780f){const _0x3e6c97=_0x3bef95;var _0x597ad9;if(_0x3c780f[_0x3e6c97(0x21b)]===_0x3e6c97(0x3d6)&&((_0x597ad9=_0x3c780f[_0x3e6c97(0x209)])!=null&&_0x597ad9[_0x3e6c97(0x30a)])){const {objectID:_0xd8b2a1,objectType:_0x344e27}=_0x3c780f[_0x3e6c97(0x209)][_0x3e6c97(0x30a)]||{};if(!_0xd8b2a1||_0x344e27===void 0x0)return!0x1;const _0x42df27=_0x3d9ba5[_0x3e6c97(0x413)]()+'/'+_0x344e27+_0x3e6c97(0x310)+_0xd8b2a1+_0x3e6c97(0x420);if(_0x3c780f[_0x3e6c97(0x5ab)]===_0x42df27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x19176d){const _0xd36113=_0x3bef95;var _0x1cd948;return(_0x1cd948=_0x19176d[_0xd36113(0x209)])==null?void 0x0:_0x1cd948[_0xd36113(0x30a)];},'mergeParamsToRequest'(_0x27e6ea,_0x93fc6e){const _0x519106=_0x3bef95,_0x2abffd=_0x3d9ba5[_0x519106(0x413)]()+_0x519106(0x53a),_0x250488=_0x27e6ea['reduce']((_0x5dccf1,_0x1114aa)=>{const _0x5c3cf8=_0x519106,{unitID:_0x51891a,objectID:_0x3f593e,objectType:_0x3e4c03,actions:_0x13a720}=_0x1114aa;return _0x5dccf1[_0x51891a]||(_0x5dccf1[_0x51891a]={}),_0x5dccf1[_0x51891a][_0x3f593e]||(_0x5dccf1[_0x51891a][_0x3f593e]={'objectID':_0x3f593e,'objectType':_0x3e4c03,'actions':[]}),_0x5dccf1[_0x51891a][_0x3f593e][_0x5c3cf8(0x2b2)][_0x5c3cf8(0x1ed)](..._0x13a720),_0x5dccf1;},{}),_0x43083b=[];for(const _0x283fed in _0x250488)for(const _0x9b6352 in _0x250488[_0x283fed]){const {actions:_0x51ec5e,objectType:_0x138ce0}=_0x250488[_0x283fed][_0x9b6352],_0x5c2b3e=[...new Set(_0x51ec5e)];_0x43083b[_0x519106(0x1ed)]({'unitID':_0x283fed,'objectID':_0x9b6352,'objectType':_0x138ce0,'actions':_0x5c2b3e});}return new P[(_0x519106(0x3ba))](_0x519106(0x3d6),_0x2abffd,{'headers':_0x93fc6e['headers'],'withCredentials':_0x93fc6e[_0x519106(0x203)],'responseType':_0x93fc6e[_0x519106(0x20e)],'body':{'requests':_0x43083b}});}},{'distributeResult'(_0x2c2376,_0x180ebe){const _0x34babb=_0x3bef95,{objectActions:_0x484a83}=_0x2c2376;return _0x180ebe[_0x34babb(0x57b)](_0x4efdad=>{const _0x3b4446=_0x34babb,{unitID:_0x4a6de7,objectID:_0x3cd83b,actions:_0x28f13e}=_0x4efdad,_0x6611f4=_0x484a83[_0x3b4446(0x5dc)](_0x39eada=>_0x39eada[_0x3b4446(0x40e)]===_0x4a6de7&&_0x39eada[_0x3b4446(0x205)]===_0x3cd83b),_0x31e5f2=_0x28f13e['map'](_0x43fbc4=>_0x6611f4==null?void 0x0:_0x6611f4[_0x3b4446(0x2b2)][_0x3b4446(0x5dc)](_0x375dc3=>_0x375dc3[_0x3b4446(0x4ff)]===_0x43fbc4))[_0x3b4446(0x3f9)](_0x316cce=>!!_0x316cce);return{'config':_0x4efdad,'result':{'actions':_0x31e5f2,'error':_0x2c2376[_0x3b4446(0x49d)]}};});}})}));}[_0x3b22f(0x413)](){const _0x324bc2=_0x3b22f;var _0x10af99,_0x269adc;const _0x219375=this['_configService'][_0x324bc2(0x504)](Mt),_0x5b046f=this[_0x324bc2(0x266)][_0x324bc2(0x504)](A);return(_0x269adc=(_0x10af99=_0x5b046f==null?void 0x0:_0x5b046f['authzUrl'])!=null?_0x10af99:_0x219375)!=null?_0x269adc:Ji;}async[_0x3b22f(0x254)](_0x3e0d05){const _0x31813c=_0x3b22f,_0x13b754=this[_0x31813c(0x413)]()+'/'+_0x3e0d05[_0x31813c(0x2c3)]+_0x31813c(0x429);return(await this[_0x31813c(0x3a9)][_0x31813c(0x221)](_0x13b754,{'body':_0x3e0d05}))['body'][_0x31813c(0x205)]||'';}async[_0x3b22f(0x3f5)](_0x17bc6f){const _0x482af1=_0x3b22f,_0x8f3ecc=this[_0x482af1(0x413)]()+_0x482af1(0x589);return(await this[_0x482af1(0x3a9)]['post'](_0x8f3ecc,{'body':_0x17bc6f}))[_0x482af1(0x30a)]['objects'];}async[_0x3b22f(0x36c)](_0x49dc67){const _0x601fc1=_0x3b22f,_0x167c19=this[_0x601fc1(0x413)]()+'/'+_0x49dc67['objectType']+_0x601fc1(0x310)+_0x49dc67[_0x601fc1(0x205)];await this[_0x601fc1(0x3a9)][_0x601fc1(0x511)](_0x167c19,{'body':_0x49dc67});}async[_0x3b22f(0x4d1)](_0x40ba96){const _0xea5957=_0x3b22f,_0x5d475a=this[_0xea5957(0x413)]()+'/'+_0x40ba96['objectType']+_0xea5957(0x310)+_0x40ba96[_0xea5957(0x205)]+_0xea5957(0x420);return(await this[_0xea5957(0x3a9)][_0xea5957(0x221)](_0x5d475a,{'body':_0x40ba96}))['body'][_0xea5957(0x2b2)];}async[_0x3b22f(0x3e0)](_0x163f37){const _0xe42f33=_0x3b22f,_0x48b494=this[_0xe42f33(0x413)]()+_0xe42f33(0x53a);return(await this['_HTTPService'][_0xe42f33(0x221)](_0x48b494,{'body':{'requests':_0x163f37}}))[_0xe42f33(0x30a)]['objectActions'];}async[_0x3b22f(0x1e6)](_0x3fe5c3){const _0x39ffe2=_0x3b22f,_0x32d447=this[_0x39ffe2(0x413)]()+'/'+_0x3fe5c3[_0x39ffe2(0x2c3)]+_0x39ffe2(0x5d8),_0xb41e5f=await this[_0x39ffe2(0x3a9)][_0x39ffe2(0x221)](_0x32d447,{'body':_0x3fe5c3});return{'roles':_0xb41e5f['body'][_0x39ffe2(0x57a)],'actions':_0xb41e5f[_0x39ffe2(0x30a)][_0x39ffe2(0x2b2)]};}async['deleteCollaborator'](_0x464ca6){const _0x5510cc=_0x3b22f,_0x14a3f6=this['_getAPIPrefixPath']()+_0x5510cc(0x4fc);await this[_0x5510cc(0x3a9)][_0x5510cc(0x2cc)](_0x14a3f6,{'params':{'collaboratorID':_0x464ca6[_0x5510cc(0x3da)],'objectID':_0x464ca6[_0x5510cc(0x205)],'unitID':_0x464ca6['unitID']}});}async[_0x3b22f(0x24b)](_0x41549c){const _0x4c7af2=_0x3b22f,_0x3849bc=this['_getAPIPrefixPath']()+_0x4c7af2(0x4fc);await this['_HTTPService']['patch'](_0x3849bc,{'body':_0x41549c});}async[_0x3b22f(0x245)](_0x107054){const _0x26cea6=_0x3b22f,_0x36d6c8=this[_0x26cea6(0x413)]()+_0x26cea6(0x4fc);await this['_HTTPService'][_0x26cea6(0x221)](_0x36d6c8,{'body':_0x107054});}async['listCollaborators'](_0x3f5ff2){const _0x1c2e4a=_0x3b22f,_0x5e220d=this[_0x1c2e4a(0x413)]()+_0x1c2e4a(0x4fc);return(await this['_HTTPService'][_0x1c2e4a(0x34d)](_0x5e220d,{'params':{'objectID':_0x3f5ff2[_0x1c2e4a(0x205)],'unitID':_0x3f5ff2[_0x1c2e4a(0x40e)]}}))[_0x1c2e4a(0x30a)][_0x1c2e4a(0x2bb)];}async['putCollaborators'](_0x278dae){const _0x1a4b02=_0x3b22f,_0x21ba64=this['_getAPIPrefixPath']()+_0x1a4b02(0x4fc);await this[_0x1a4b02(0x3a9)][_0x1a4b02(0x511)](_0x21ba64,{'body':_0x278dae});}},exports[_0x3b22f(0x38b)]=zi([ct(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),ct(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x5ad)]))],exports['AuthzIoHttpService']);var Zi=Object[_0x3b22f(0x1ff)],Qi=Object['getOwnPropertyDescriptor'],en=(_0x22a0ef,_0x284697,_0x54a718,_0x5a2dce)=>{const _0x5329f5=_0x3b22f;for(var _0x2e14f5=_0x5a2dce>0x1?void 0x0:_0x5a2dce?Qi(_0x284697,_0x54a718):_0x284697,_0x132233=_0x22a0ef[_0x5329f5(0x291)]-0x1,_0xcc3847;_0x132233>=0x0;_0x132233--)(_0xcc3847=_0x22a0ef[_0x132233])&&(_0x2e14f5=(_0x5a2dce?_0xcc3847(_0x284697,_0x54a718,_0x2e14f5):_0xcc3847(_0x2e14f5))||_0x2e14f5);return _0x5a2dce&&_0x2e14f5&&Zi(_0x284697,_0x54a718,_0x2e14f5),_0x2e14f5;},tn=(_0x16d48e,_0x327252)=>(_0xc3829e,_0x4c3c05)=>_0x327252(_0xc3829e,_0x4c3c05,_0x16d48e);let Ce=class{constructor(_0x2caa81){const _0x499d40=_0x3b22f;this[_0x499d40(0x270)]=_0x2caa81,this['_initRequestHeader']();}[_0x3b22f(0x4d2)](){const _0x59c2bb=_0x3b22f;this[_0x59c2bb(0x270)][_0x59c2bb(0x3ef)]({'interceptor':(_0x1035c5,_0x6819a7)=>{const _0x525a5e=_0x59c2bb,_0x1f4488=_0x1035c5['headers'],_0x795cf1=Ft['getAttachHeader']();return _0x795cf1&&_0x1f4488[_0x525a5e(0x305)](_0x525a5e(0x326),_0x795cf1),_0x6819a7(_0x1035c5);}});}};Ce=en([tn(0x0,a[_0x3b22f(0x492)](P['HTTPService']))],Ce);var sn=Object['defineProperty'],nn=Object['getOwnPropertyDescriptor'],rn=(_0x330bb7,_0x49de4e,_0x29a0d2,_0x31fcc3)=>{for(var _0x1861cf=_0x31fcc3>0x1?void 0x0:_0x31fcc3?nn(_0x49de4e,_0x29a0d2):_0x49de4e,_0x4a2bd6=_0x330bb7['length']-0x1,_0x4720be;_0x4a2bd6>=0x0;_0x4a2bd6--)(_0x4720be=_0x330bb7[_0x4a2bd6])&&(_0x1861cf=(_0x31fcc3?_0x4720be(_0x49de4e,_0x29a0d2,_0x1861cf):_0x4720be(_0x1861cf))||_0x1861cf);return _0x31fcc3&&_0x1861cf&&sn(_0x49de4e,_0x29a0d2,_0x1861cf),_0x1861cf;},je=(_0x2793f5,_0x251ca5)=>(_0x460939,_0xeef283)=>_0x251ca5(_0x460939,_0xeef283,_0x2793f5);const on=['image/png','image/jpeg',_0x3b22f(0x5ca),'image/gif',_0x3b22f(0x1e2)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3b22f(0x31f),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x3b22f(0x3dc);exports[_0x3b22f(0x4a3)]=class{constructor(_0x4b858e,_0x32429e,_0x3e2541){const _0x2ea17e=_0x3b22f;d(this,_0x2ea17e(0x3c2),0x0),d(this,'_change$',new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2ea17e(0x503),new Map()),(this[_0x2ea17e(0x270)]=_0x4b858e,this['_configService']=_0x32429e,this[_0x2ea17e(0x340)]=_0x3e2541);}[_0x3b22f(0x273)](_0x21d25a){const _0x4c9643=_0x3b22f;this[_0x4c9643(0x3c2)]=_0x21d25a,this[_0x4c9643(0x48a)]['next'](_0x21d25a);}[_0x3b22f(0x5cd)](_0x5ce8f3,_0xfe80e6){const _0x4b7f4a=_0x3b22f;if(_0xfe80e6===L[_0x4b7f4a(0x5a1)]['BASE64']){const _0x92f031=new Image();return _0x92f031[_0x4b7f4a(0x381)]=_0x5ce8f3,_0x92f031;}return this[_0x4b7f4a(0x503)][_0x4b7f4a(0x34d)](_0x5ce8f3);}[_0x3b22f(0x3e3)](_0x2dc026,_0x3ab81d,_0x3bb5a7){const _0x4034c6=_0x3b22f;_0x3ab81d===L[_0x4034c6(0x5a1)][_0x4034c6(0x43f)]||_0x3bb5a7==null||this[_0x4034c6(0x503)][_0x4034c6(0x305)](_0x2dc026,_0x3bb5a7);}async[_0x3b22f(0x34a)](_0x30fc7e){const _0x31d148=_0x3b22f;try{const _0x469ac0=this[_0x31d148(0x406)](this[_0x31d148(0x33a)](),''+_0x30fc7e),_0x40a9fc=(await this[_0x31d148(0x270)]['get'](_0x469ac0))[_0x31d148(0x30a)];if(_0x40a9fc['error']&&_0x40a9fc[_0x31d148(0x49d)][_0x31d148(0x49f)]===It['OK']){const _0x1a2be4=new URL(_0x40a9fc['url'],this[_0x31d148(0x2db)]())[_0x31d148(0x4e2)]();return Promise[_0x31d148(0x53d)](_0x1a2be4);}return Promise['reject'](_0x40a9fc[_0x31d148(0x49d)]);}catch(_0x372f75){return Promise[_0x31d148(0x23c)](_0x372f75);}}async[_0x3b22f(0x28a)](_0x1497fc){const _0x5ee6fb=_0x3b22f;let _0x3aa8ae='';if(!on[_0x5ee6fb(0x565)](_0x1497fc[_0x5ee6fb(0x331)]))return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x2d4)]));if(_0x1497fc[_0x5ee6fb(0x45a)]>an)return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x4fa)]));try{const _0x397941=new FormData();_0x397941[_0x5ee6fb(0x1ea)](_0x5ee6fb(0x2a2),_0x1497fc);const _0xb73cf7=this[_0x5ee6fb(0x340)]['getFocusedUnit'](),_0x19d3a3=_0xb73cf7==null?void 0x0:_0xb73cf7[_0x5ee6fb(0x52b)]();if(!_0x19d3a3)throw new Error(_0x5ee6fb(0x555));const _0x47cb6f=this[_0x5ee6fb(0x4ce)]()+'?size='+_0x1497fc[_0x5ee6fb(0x45a)][_0x5ee6fb(0x4e2)]()+'&source='+pt[_0x5ee6fb(0x4bd)]+_0x5ee6fb(0x4a6)+encodeURIComponent(_0x19d3a3),_0x5c0540=await(await fetch(_0x47cb6f,{'method':_0x5ee6fb(0x3d6),'body':_0x397941}))[_0x5ee6fb(0x364)]();if(typeof _0x5c0540[_0x5ee6fb(0x33d)]!=_0x5ee6fb(0x40a))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));_0x3aa8ae=_0x5c0540[_0x5ee6fb(0x33d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));}return new Promise((_0x23aaaf,_0x48577c)=>{const _0x33c446=_0x5ee6fb,_0x1a0447=new FileReader();_0x1a0447[_0x33c446(0x48c)](_0x1497fc),_0x1a0447[_0x33c446(0x586)]=_0x4d18e8=>{const _0x3bd7f7=_0x33c446;var _0x4dd9f0;const _0x14b964=(_0x4dd9f0=_0x4d18e8['target'])==null?void 0x0:_0x4dd9f0['result'];if(_0x14b964==null){this[_0x3bd7f7(0x2e2)](),_0x48577c(new Error(L[_0x3bd7f7(0x57d)][_0x3bd7f7(0x5e9)]));return;}const _0x99265=a[_0x3bd7f7(0x27d)]['generateRandomId'](0x6);_0x23aaaf({'imageId':_0x99265,'imageSourceType':L[_0x3bd7f7(0x5a1)]['UUID'],'source':_0x3aa8ae,'base64Cache':_0x14b964,'status':L['ImageUploadStatusType']['SUCCUSS']}),this[_0x3bd7f7(0x2e2)]();};});}[_0x3b22f(0x4ce)](){const _0x357c87=_0x3b22f;var _0x4a1fba,_0x1fd33f;const _0x17e8b9=this[_0x357c87(0x266)]['getConfig'](cn),_0x2fe597=this[_0x357c87(0x266)][_0x357c87(0x504)](A);return(_0x1fd33f=(_0x4a1fba=_0x2fe597==null?void 0x0:_0x2fe597[_0x357c87(0x2ef)])!=null?_0x4a1fba:_0x17e8b9)!=null?_0x1fd33f:ln;}[_0x3b22f(0x33a)](){const _0x170805=_0x3b22f;var _0x5311b1,_0x27af7c;const _0x48c619=this[_0x170805(0x266)][_0x170805(0x504)](hn),_0x514c21=this[_0x170805(0x266)][_0x170805(0x504)](A);return(_0x27af7c=(_0x5311b1=_0x514c21==null?void 0x0:_0x514c21[_0x170805(0x418)])!=null?_0x5311b1:_0x48c619)!=null?_0x27af7c:_n;}[_0x3b22f(0x2db)](){const _0x3d0d13=_0x3b22f;var _0x3908d9;const _0x2a5782=this[_0x3d0d13(0x266)][_0x3d0d13(0x504)](A);return(_0x3908d9=_0x2a5782==null?void 0x0:_0x2a5782['downloadEndpointUrl'])!=null?_0x3908d9:location[_0x3d0d13(0x2ee)];}[_0x3b22f(0x406)](_0x3e934c,_0x4cea30){const _0xcf549=_0x3b22f;return _0x3e934c['replace'](_0xcf549(0x35f),_0x4cea30);}[_0x3b22f(0x2e2)](){const _0x3959f7=_0x3b22f;this[_0x3959f7(0x3c2)]-=0x1,this[_0x3959f7(0x48a)][_0x3959f7(0x52d)](this[_0x3959f7(0x3c2)]);}},exports[_0x3b22f(0x4a3)]=rn([je(0x0,a['Inject'](P[_0x3b22f(0x5ae)])),je(0x1,a['IConfigService']),je(0x2,a[_0x3b22f(0x492)](a['IUniverInstanceService']))],exports[_0x3b22f(0x4a3)]);var un=Object[_0x3b22f(0x1ff)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x463d24,_0x3b3c83,_0x1e2269,_0x2d691e)=>{const _0x4c3133=_0x3b22f;for(var _0x49b87a=_0x2d691e>0x1?void 0x0:_0x2d691e?dn(_0x3b3c83,_0x1e2269):_0x3b3c83,_0x57c7e6=_0x463d24[_0x4c3133(0x291)]-0x1,_0x1c1659;_0x57c7e6>=0x0;_0x57c7e6--)(_0x1c1659=_0x463d24[_0x57c7e6])&&(_0x49b87a=(_0x2d691e?_0x1c1659(_0x3b3c83,_0x1e2269,_0x49b87a):_0x1c1659(_0x49b87a))||_0x49b87a);return _0x2d691e&&_0x49b87a&&un(_0x3b3c83,_0x1e2269,_0x49b87a),_0x49b87a;},he=(_0x2dac19,_0x2f705e)=>(_0x1adeed,_0x5905ec)=>_0x2f705e(_0x1adeed,_0x5905ec,_0x2dac19);let Ee=class extends a[_0x3b22f(0x398)]{constructor(_0x5707de,_0x4251e3,_0x28c484,_0x57026b,_0x5afd59){const _0x462a70=_0x3b22f;super(),this['_injector']=_0x5707de,this['_univerInstanceService']=_0x4251e3,this[_0x462a70(0x444)]=_0x28c484,this[_0x462a70(0x1ef)]=_0x57026b,this[_0x462a70(0x316)]=_0x5afd59,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x3b22f(0x5ec)](){const _0x48a042=_0x3b22f,_0x320335=async _0x348988=>{const _0xc20541=_0x2c53;(await this[_0xc20541(0x1ef)][_0xc20541(0x578)](_0x348988))[_0xc20541(0x3b5)][_0xc20541(0x3de)](E['filter'](_0x378db6=>_0x378db6[_0xc20541(0x3cc)]===_[_0xc20541(0x44c)]['SHOULD_CLOSE_CONN']),E[_0xc20541(0x37c)](this[_0xc20541(0x2e1)]))[_0xc20541(0x42c)](_0x27631c=>{const _0x18c2a3=_0xc20541,_0x547b7d=_0x27631c,{reason:_0x3e8662}=_0x547b7d[_0x18c2a3(0x45b)];this[_0x18c2a3(0x397)][_0x18c2a3(0x34d)](N[_0x18c2a3(0x2e3)])[_0x18c2a3(0x224)]({'type':X[_0x18c2a3(0x5b4)][_0x18c2a3(0x460)],'content':this[_0x18c2a3(0x316)]['t'](_0x18c2a3(0x21f))+'('+_0x3e8662+')'}),this[_0x18c2a3(0x444)]['updatePermissionPoint'](new C[(_0x18c2a3(0x5d2))](_0x348988)['id'],!0x1),this[_0x18c2a3(0x1ef)][_0x18c2a3(0x3c6)](_0x348988);});};v[_0x48a042(0x2c4)](this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x3c0)]),this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x332)]))[_0x48a042(0x3de)](E[_0x48a042(0x57b)](_0x3015d4=>_0x3015d4[_0x48a042(0x52b)]()),E['filter'](_0xe3f8bd=>!a[_0x48a042(0x3a4)](_0xe3f8bd)),E[_0x48a042(0x37c)](this[_0x48a042(0x2e1)]))[_0x48a042(0x42c)](_0xd498ff=>{_0x320335(_0xd498ff);});}[_0x3b22f(0x244)](){const _0x47b57c=_0x3b22f,_0x18d24d=async _0x3b9da9=>{const _0x465926=_0x2c53;(await this[_0x465926(0x1ef)]['requireSession'](_0x3b9da9))[_0x465926(0x3b5)][_0x465926(0x3de)](E[_0x465926(0x3f9)](_0x249a72=>_0x249a72[_0x465926(0x3cc)]===_[_0x465926(0x44c)][_0x465926(0x21e)]),E[_0x465926(0x37c)](this[_0x465926(0x2e1)]))['subscribe'](_0x2439ef=>{const _0x5cb680=_0x465926,_0x3d1697=_0x2439ef,{objectId:_0x33c6ca}=_0x3d1697[_0x5cb680(0x45b)],_0x3ed512=this['_injector']['get'](te[_0x5cb680(0x26c)]);_0x33c6ca===_0x3b9da9?_0x3ed512[_0x5cb680(0x216)](_0x3b9da9):_0x3ed512['refreshPermission'](_0x3b9da9,_0x33c6ca);});};v[_0x47b57c(0x2c4)](this[_0x47b57c(0x340)][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x3c0)]),this['_univerInstanceService'][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x332)]))[_0x47b57c(0x3de)](E[_0x47b57c(0x57b)](_0x2f34e7=>_0x2f34e7[_0x47b57c(0x52b)]()),E['filter'](_0x14ec5c=>!a[_0x47b57c(0x3a4)](_0x14ec5c)),E[_0x47b57c(0x37c)](this['dispose$']))[_0x47b57c(0x42c)](_0xf2bf68=>{_0x18d24d(_0xf2bf68);});}};Ee=Sn([he(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),he(0x1,a[_0x3b22f(0x26b)]),he(0x2,a[_0x3b22f(0x300)]),he(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)])),he(0x4,a[_0x3b22f(0x492)](a['LocaleService']))],Ee);var vn=Object[_0x3b22f(0x1ff)],fn=Object[_0x3b22f(0x246)],gn=(_0x5e2741,_0x6fa5f9,_0x1b1822,_0x4e7107)=>{for(var _0xd2eb7c=_0x4e7107>0x1?void 0x0:_0x4e7107?fn(_0x6fa5f9,_0x1b1822):_0x6fa5f9,_0x12b3fc=_0x5e2741['length']-0x1,_0x3c8bcc;_0x12b3fc>=0x0;_0x12b3fc--)(_0x3c8bcc=_0x5e2741[_0x12b3fc])&&(_0xd2eb7c=(_0x4e7107?_0x3c8bcc(_0x6fa5f9,_0x1b1822,_0xd2eb7c):_0x3c8bcc(_0xd2eb7c))||_0xd2eb7c);return _0x4e7107&&_0xd2eb7c&&vn(_0x6fa5f9,_0x1b1822,_0xd2eb7c),_0xd2eb7c;},lt=(_0xf6aee6,_0x2b3991)=>(_0x80df5,_0x1b2b73)=>_0x2b3991(_0x80df5,_0x1b2b73,_0xf6aee6);exports[_0x3b22f(0x55f)]=class{constructor(_0x54975b,_0x282a0a){const _0x4e38e4=_0x3b22f;this[_0x4e38e4(0x266)]=_0x54975b,this[_0x4e38e4(0x270)]=_0x282a0a;}async[_0x3b22f(0x524)](_0x18b78a,_0x4d72e1){const _0x162694=_0x3b22f;var _0x2c333b;const {unitID:_0x475c4e,type:_0x515a4a,revision:_0x2cf1d7=0x0}=_0x4d72e1,_0x46d1da=this[_0x162694(0x531)]()+'/'+_0x515a4a+_0x162694(0x37a)+_0x475c4e+_0x162694(0x208)+_0x2cf1d7,_0x5a3d43=(await this[_0x162694(0x270)][_0x162694(0x34d)](_0x46d1da))[_0x162694(0x30a)],_0x39ebba=(_0x2c333b=_0x5a3d43['snapshot'])==null?void 0x0:_0x2c333b[_0x162694(0x22a)];if(_0x39ebba){const _0x4ee1e3=_0x39ebba==null?void 0x0:_0x39ebba['originalMeta'],_0x572cb1=_['textEncoder']['encode'](_['b64DecodeUnicode'](_0x4ee1e3));_0x39ebba[_0x162694(0x54b)]=_0x572cb1,Object[_0x162694(0x54f)](_0x39ebba[_0x162694(0x4dc)])[_0x162694(0x339)](([,_0x4a1a07])=>{const _0xf8c526=_0x162694,_0x11ad4f=_0x4a1a07[_0xf8c526(0x54b)],_0x106d18=_[_0xf8c526(0x2a4)][_0xf8c526(0x21c)](_[_0xf8c526(0x274)](_0x11ad4f));_0x4a1a07[_0xf8c526(0x54b)]=_0x106d18;});}return _0x5a3d43;}async[_0x3b22f(0x537)](_0x100664,_0x5d7b69){const _0x56c01e=_0x3b22f,{unitID:_0x2f5256,type:_0x4cea0b,blockID:_0x38c0e6}=_0x5d7b69,_0x945b77=this[_0x56c01e(0x451)]()+'/'+_0x4cea0b+_0x56c01e(0x37a)+_0x2f5256+_0x56c01e(0x530)+_0x38c0e6;return(await this[_0x56c01e(0x270)][_0x56c01e(0x34d)](_0x945b77))[_0x56c01e(0x30a)];}async[_0x3b22f(0x20c)](_0x1784e3,_0x3c949f){const _0x1a6bf3=_0x3b22f,{unitID:_0xc7ecd6,type:_0x5547cd,blockID:_0x18ccc7}=_0x3c949f,_0x29d934=this[_0x1a6bf3(0x451)]()+_0x1a6bf3(0x530)+_0x5547cd+'/unit/'+_0xc7ecd6+_0x1a6bf3(0x530)+_0x18ccc7;return(await this[_0x1a6bf3(0x270)][_0x1a6bf3(0x34d)](_0x29d934))[_0x1a6bf3(0x30a)];}async[_0x3b22f(0x5c2)](_0x4022f3,_0x5c316e){const _0x516623=_0x3b22f,{unitID:_0x4b8248,type:_0x1dba33,from:_0x529d11,to:_0x3f033c}=_0x5c316e,_0x3eb510=this[_0x516623(0x451)]()+'/'+_0x1dba33+'/unit/'+_0x4b8248+_0x516623(0x4c0)+_0x529d11+'&to='+_0x3f033c;return(await this['_httpService'][_0x516623(0x34d)](_0x3eb510))[_0x516623(0x30a)];}[_0x3b22f(0x531)](){const _0x24e0d7=_0x3b22f;var _0x159de9;return(_0x159de9=this[_0x24e0d7(0x266)][_0x24e0d7(0x504)](_t))!=null?_0x159de9:this[_0x24e0d7(0x451)]();}[_0x3b22f(0x451)](){const _0x4daa0a=_0x3b22f;var _0x3762d5,_0x3f139a;const _0x15b4a1=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](ht),_0x5793ce=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](A);return(_0x3f139a=(_0x3762d5=_0x5793ce==null?void 0x0:_0x5793ce['snapshotServerUrl'])!=null?_0x3762d5:_0x15b4a1)!=null?_0x3f139a:Gt;}async['getResourcesRequest'](_0x510288,_0x5ccc1a){const _0x1f5f61=_0x3b22f,_0x1d301c=_0x1f5f61(0x501)+_0x5ccc1a[_0x1f5f61(0x331)]+_0x1f5f61(0x37a)+_0x5ccc1a['unitID']+_0x1f5f61(0x348);return(await this[_0x1f5f61(0x270)]['get'](_0x1d301c,{'params':{'resourceId':JSON[_0x1f5f61(0x56d)](_0x5ccc1a[_0x1f5f61(0x2d6)])}}))[_0x1f5f61(0x30a)];}[_0x3b22f(0x521)](){const _0x142806=_0x3b22f;throw new Error(_0x142806(0x27f));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b22f(0x585)](){const _0x5b75d5=_0x3b22f;throw new Error(_0x5b75d5(0x27f));}[_0x3b22f(0x36b)](){const _0x50de2c=_0x3b22f;throw new Error(_0x50de2c(0x27f));}},exports[_0x3b22f(0x55f)]=gn([lt(0x0,a[_0x3b22f(0x5ad)]),lt(0x1,a['Inject'](P[_0x3b22f(0x5ae)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x3b22f(0x1ff)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5aaa96,_0x46e492,_0x85ef45,_0x3ae3f5)=>{const _0x3d34ae=_0x3b22f;for(var _0x454548=_0x3ae3f5>0x1?void 0x0:_0x3ae3f5?In(_0x46e492,_0x85ef45):_0x46e492,_0x3a9c53=_0x5aaa96[_0x3d34ae(0x291)]-0x1,_0x370e12;_0x3a9c53>=0x0;_0x3a9c53--)(_0x370e12=_0x5aaa96[_0x3a9c53])&&(_0x454548=(_0x3ae3f5?_0x370e12(_0x46e492,_0x85ef45,_0x454548):_0x370e12(_0x454548))||_0x454548);return _0x3ae3f5&&_0x454548&&mn(_0x46e492,_0x85ef45,_0x454548),_0x454548;},_e=(_0x5cc016,_0x2bcba2)=>(_0x36cd5c,_0x179b2f)=>_0x2bcba2(_0x36cd5c,_0x179b2f,_0x5cc016);let Be=class extends a[_0x3b22f(0x213)]{constructor(_0x3a8daa,_0x20198b,_0x2d784d,_0x3f4208,_0xf0e6bd){super(_0x3a8daa,_0x20198b,_0x2d784d),this['_transformService']=_0x3f4208,this['_logService']=_0xf0e6bd;}[_0x3b22f(0x2f3)](_0x3bb3ac,_0x1905c1){const _0x3b91a1=_0x3b22f,_0xfa06a2=this[_0x3b91a1(0x2f7)](_0x3bb3ac);if(_0xfa06a2)try{const _0x295f63=this[_0x3b91a1(0x55c)](_0xfa06a2,_0x1905c1);this[_0x3b91a1(0x46c)](_0x3bb3ac,_0x295f63);}catch(_0x3b3865){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3b3865),this[_0x3b91a1(0x46b)](_0x3bb3ac);}const _0x2d6d77=this[_0x3b91a1(0x210)](_0x3bb3ac);if(_0x2d6d77)try{const _0x155c03=this[_0x3b91a1(0x55c)](_0x2d6d77,_0x1905c1);this[_0x3b91a1(0x5e5)](_0x3bb3ac,_0x155c03);}catch(_0xae406){this[_0x3b91a1(0x445)]['error'](_0xae406),this[_0x3b91a1(0x256)](_0x3bb3ac);}}['_clearUndo'](_0x161c70){const _0xa84b19=_0x3b22f,_0x247985=this[_0xa84b19(0x2f7)](_0x161c70);_0x247985&&(_0x247985[_0xa84b19(0x291)]=0x0,this[_0xa84b19(0x200)]());}[_0x3b22f(0x256)](_0x5e807f){const _0x15679b=_0x3b22f,_0x3e1141=this[_0x15679b(0x210)](_0x5e807f);_0x3e1141&&(_0x3e1141[_0x15679b(0x291)]=0x0,this[_0x15679b(0x200)]());}[_0x3b22f(0x46c)](_0x2bdf43,_0x4aabac){const _0x180e1d=_0x3b22f;this['_undoStacks']['set'](_0x2bdf43,_0x4aabac),this[_0x180e1d(0x200)]();}[_0x3b22f(0x5e5)](_0x3fbfeb,_0x5a4dd2){const _0x15455b=_0x3b22f;this[_0x15455b(0x1e4)][_0x15455b(0x305)](_0x3fbfeb,_0x5a4dd2),this[_0x15455b(0x200)]();}['_transformStack'](_0x4ed192,_0x2b2ea2){const _0xc14208=_0x3b22f,_0x7ddaa3=[];let _0xe9845a=_0x2b2ea2,_0x3e9a2e=_0x2b2ea2;for(let _0x5edace=_0x4ed192[_0xc14208(0x291)]-0x1;_0x5edace>=0x0;_0x5edace--){const {unitID:_0x249778,undoMutations:_0x27e285,redoMutations:_0x5d1adf}=_0x4ed192[_0x5edace],_0x2e814b=this[_0xc14208(0x294)][_0xc14208(0x261)](_0xe9845a,_0x27e285),_0x40c08d=this['_transformService'][_0xc14208(0x261)](_0x3e9a2e,_0x5d1adf);if(_[_0xc14208(0x4bb)](_0x2e814b)||_[_0xc14208(0x4bb)](_0x40c08d)){this[_0xc14208(0x445)]['error']('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e814b,_0x40c08d);break;}_0xe9845a=_0x2e814b['c1Prime'],_0x3e9a2e=_0x40c08d[_0xc14208(0x5d4)],_0x7ddaa3[_0xc14208(0x1ed)]({'unitID':_0x249778,'undoMutations':_0x2e814b[_0xc14208(0x2e8)],'redoMutations':_0x40c08d[_0xc14208(0x2e8)]});}return _0x7ddaa3[_0xc14208(0x1e5)]();}};Be=pn([_e(0x0,a[_0x3b22f(0x26b)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x3b22f(0x510)]),_e(0x3,_[_0x3b22f(0x378)]),_e(0x4,a[_0x3b22f(0x308)])],Be);class Nt extends a[_0x3b22f(0x398)]{constructor(){const _0x39b33c=_0x3b22f;super(),d(this,_0x39b33c(0x4cb)),this['urlChange$']=v[_0x39b33c(0x2b9)](window,_0x39b33c(0x27b))['pipe'](v[_0x39b33c(0x37c)](this[_0x39b33c(0x2e1)]),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x3b22f(0x57f)](_0x328d38,_0x511fae,_0x254684=!0x1){const _0x26da11=_0x3b22f,_0x10a5d9=new URL(window[_0x26da11(0x353)]['href']);_0x10a5d9[_0x26da11(0x498)][_0x26da11(0x305)](_0x328d38,_0x511fae),_0x254684?window[_0x26da11(0x4e7)]['replaceState']('','',_0x10a5d9[_0x26da11(0x4e2)]()):window[_0x26da11(0x4e7)][_0x26da11(0x354)]('','',_0x10a5d9[_0x26da11(0x4e2)]());}[_0x3b22f(0x297)](_0x491e9e,_0x5a74e7=!0x1){const _0x1dd205=_0x3b22f,_0x46d3d7=new URL(window[_0x1dd205(0x353)][_0x1dd205(0x412)]);_0x46d3d7[_0x1dd205(0x498)][_0x1dd205(0x2cc)](_0x491e9e),_0x5a74e7?window[_0x1dd205(0x4e7)]['replaceState']('','',_0x46d3d7[_0x1dd205(0x4e2)]()):window['history'][_0x1dd205(0x354)]('','',_0x46d3d7[_0x1dd205(0x4e2)]());}[_0x3b22f(0x422)](_0x4435c1){const _0x922b4f=_0x3b22f;var _0x2f7033;return(_0x2f7033=new URL(window[_0x922b4f(0x353)][_0x922b4f(0x412)])[_0x922b4f(0x498)]['get'](_0x4435c1))!=null?_0x2f7033:void 0x0;}}var At=Object[_0x3b22f(0x1ff)],Cn=Object[_0x3b22f(0x246)],En=(_0x202534,_0x16e8f7,_0x57d077)=>_0x16e8f7 in _0x202534?At(_0x202534,_0x16e8f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d077}):_0x202534[_0x16e8f7]=_0x57d077,bn=(_0x3b4d89,_0x198f3b,_0x4745a7,_0x97812f)=>{for(var _0x5acd03=_0x97812f>0x1?void 0x0:_0x97812f?Cn(_0x198f3b,_0x4745a7):_0x198f3b,_0xe2ff66=_0x3b4d89['length']-0x1,_0x59d6c0;_0xe2ff66>=0x0;_0xe2ff66--)(_0x59d6c0=_0x3b4d89[_0xe2ff66])&&(_0x5acd03=(_0x97812f?_0x59d6c0(_0x198f3b,_0x4745a7,_0x5acd03):_0x59d6c0(_0x5acd03))||_0x5acd03);return _0x97812f&&_0x5acd03&&At(_0x198f3b,_0x4745a7,_0x5acd03),_0x5acd03;},ve=(_0x4efbeb,_0xefecb6)=>(_0x514fd2,_0x2936fa)=>_0xefecb6(_0x514fd2,_0x2936fa,_0x4efbeb),Tn=(_0x49b416,_0x268150,_0x1ae4f7)=>En(_0x49b416,_0x268150+'',_0x1ae4f7);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b22f(0x54c)]=class extends a['Plugin']{constructor(_0x2b7c2f=ts,_0x241d51,_0x16a2ac,_0x90128,_0x395b1c){const _0x19b695=_0x3b22f;super(),this[_0x19b695(0x293)]=_0x2b7c2f,this[_0x19b695(0x445)]=_0x241d51,this['_renderManagerService']=_0x16a2ac,this['_injector']=_0x90128,this['_configService']=_0x395b1c;const {..._0x1e968e}=this[_0x19b695(0x293)];this[_0x19b695(0x266)][_0x19b695(0x41f)](A,_0x1e968e);}[_0x3b22f(0x49e)](){const _0x577a6d=_0x3b22f;this['_registerDependencies'](),a[_0x577a6d(0x4ed)](this[_0x577a6d(0x397)],[[ie],[exports[_0x577a6d(0x4f7)]],[Ee]]);}[_0x3b22f(0x4d3)](){const _0x4748fa=_0x3b22f;a['touchDependencies'](this[_0x4748fa(0x397)],[[Ie]]);}['onRendered'](){const _0x6c8a25=_0x3b22f;this[_0x6c8a25(0x20a)]();}[_0x3b22f(0x4f3)](){const _0x3118cf=_0x3b22f;var _0x5e8f99,_0x793f4c,_0x556c97,_0x835de4;this[_0x3118cf(0x397)][_0x3118cf(0x3e5)](a[_0x3118cf(0x519)])&&this['_logService'][_0x3118cf(0x49d)]('[UniverCollaborationClientPlugin]',_0x3118cf(0x55e));let _0x53b982=[[a[_0x3118cf(0x519)],{'useClass':Be}],[exports[_0x3118cf(0x298)]],[Xe],[P[_0x3118cf(0x5ae)]],[ze,{'useClass':Nt}],[q],[exports[_0x3118cf(0x462)]],[P[_0x3118cf(0x347)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x793f4c=(_0x5e8f99=this[_0x3118cf(0x293)])==null?void 0x0:_0x5e8f99[_0x3118cf(0x2a5)])!=null?_0x793f4c:exports[_0x3118cf(0x272)]}],[P['IHTTPImplementation'],{'useClass':P[_0x3118cf(0x55b)]}],[_[_0x3118cf(0x2ce)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a['IAuthzIoService'],{'useClass':exports[_0x3118cf(0x38b)]}],[L['IImageIoService'],{'useClass':exports[_0x3118cf(0x4a3)]}],[exports[_0x3118cf(0x322)]],[exports[_0x3118cf(0x4f7)]],[exports[_0x3118cf(0x52f)]],[Ie],[ie]];(_0x556c97=this[_0x3118cf(0x293)])!=null&&_0x556c97[_0x3118cf(0x225)]&&_0x53b982['push']([be,{'useClass':ys}]),_0x53b982=a[_0x3118cf(0x588)](_0x53b982,(_0x835de4=this[_0x3118cf(0x293)])==null?void 0x0:_0x835de4['override']),_0x53b982[_0x3118cf(0x339)](_0x4b147e=>this['_injector'][_0x3118cf(0x405)](_0x4b147e)),this[_0x3118cf(0x514)]();}[_0x3b22f(0x20a)](){const _0x20d3a8=_0x3b22f;this['disposeWithMe'](this[_0x20d3a8(0x376)][_0x20d3a8(0x4b5)](a[_0x20d3a8(0x38e)][_0x20d3a8(0x332)],[xe])),this['disposeWithMe'](this[_0x20d3a8(0x376)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3b22f(0x514)](){const _0x2717a0=_0x3b22f;var _0x20032d,_0x2fa160;this[_0x2717a0(0x397)][_0x2717a0(0x34d)](P[_0x2717a0(0x5ae)])[_0x2717a0(0x3ef)]({'priority':0x14,'interceptor':P[_0x2717a0(0x257)]({'maxParallel':0x6})}),this[_0x2717a0(0x397)]['get'](Ce),(_0x20032d=this[_0x2717a0(0x293)])!=null&&_0x20032d[_0x2717a0(0x58c)]||this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x462)])['disableLocalCache'](),(_0x2fa160=this[_0x2717a0(0x293)])!=null&&_0x2fa160[_0x2717a0(0x425)]&&this[_0x2717a0(0x397)]['get'](pe),this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports['CollaborationController']),this[_0x2717a0(0x397)][_0x2717a0(0x3e5)](exports[_0x2717a0(0x52f)])&&this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x52f)]);}},Tn(exports[_0x3b22f(0x54c)],_0x3b22f(0x4c3),Rn),exports[_0x3b22f(0x54c)]=bn([a[_0x3b22f(0x52e)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x3b22f(0x308)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a[_0x3b22f(0x492)](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x3b22f(0x54c)]),exports[_0x3b22f(0x211)]=Mt,exports[_0x3b22f(0x2de)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3b22f(0x3ee)]=y,exports[_0x3b22f(0x42b)]=wt,exports[_0x3b22f(0x28d)]=Ge,exports[_0x3b22f(0x2b1)]=dt,exports[_0x3b22f(0x45d)]=Ve,exports[_0x3b22f(0x280)]=Fe,exports[_0x3b22f(0x399)]=ze,exports[_0x3b22f(0x5e7)]=ft,exports[_0x3b22f(0x3eb)]=mt,exports[_0x3b22f(0x424)]=vt,exports[_0x3b22f(0x51d)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x3b22f(0x367)]=_t,exports[_0x3b22f(0x508)]=$,exports[_0x3b22f(0x3d5)]=Ot,exports[_0x3b22f(0x217)]=Nt,exports[_0x3b22f(0x47a)]=Ct,exports[_0x3b22f(0x2bc)]=Et;