@univerjs-pro/collaboration-client 0.3.0 → 0.4.0-alpha.1

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 _0x2658a4=_0x5b2d;(function(_0xabca5,_0x96d7b8){const _0x1363fb=_0x5b2d,_0x112060=_0xabca5();while(!![]){try{const _0x2eff72=-parseInt(_0x1363fb(0x493))/0x1*(parseInt(_0x1363fb(0x47c))/0x2)+-parseInt(_0x1363fb(0x358))/0x3+-parseInt(_0x1363fb(0x201))/0x4+parseInt(_0x1363fb(0x59b))/0x5+parseInt(_0x1363fb(0x5b0))/0x6*(parseInt(_0x1363fb(0x1ed))/0x7)+-parseInt(_0x1363fb(0x473))/0x8*(parseInt(_0x1363fb(0x4bf))/0x9)+parseInt(_0x1363fb(0x1f8))/0xa;if(_0x2eff72===_0x96d7b8)break;else _0x112060['push'](_0x112060['shift']());}catch(_0x451ff8){_0x112060['push'](_0x112060['shift']());}}}(_0x1540,0x64f7e));var xt=Object['defineProperty'],kt=(_0x368f12,_0x17d479,_0xe4a694)=>_0x17d479 in _0x368f12?xt(_0x368f12,_0x17d479,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4a694}):_0x368f12[_0x17d479]=_0xe4a694,d=(_0x4c16f6,_0x2680ae,_0x549b06)=>kt(_0x4c16f6,typeof _0x2680ae!=_0x2658a4(0x4cc)?_0x2680ae+'':_0x2680ae,_0x549b06);Object[_0x2658a4(0x30c)](exports,Symbol[_0x2658a4(0x2b5)],{'value':_0x2658a4(0x3ee)});const a=require(_0x2658a4(0x566)),v=require(_0x2658a4(0x3d3)),E=require(_0x2658a4(0x33f)),X=require(_0x2658a4(0x558)),N=require('@univerjs/ui'),P=require(_0x2658a4(0x49e)),_=require(_0x2658a4(0x52e)),Bt=require('@univerjs/telemetry'),V=require(_0x2658a4(0x4e8)),w=require('@univerjs/docs-ui'),C=require(_0x2658a4(0x464)),R=require(_0x2658a4(0x3d4)),A=require(_0x2658a4(0x1b2)),Je=require('@univerjs/engine-formula'),te=require(_0x2658a4(0x3eb)),U=require(_0x2658a4(0x3ff)),Vt=require(_0x2658a4(0x3b9)),Wt=require(_0x2658a4(0x296)),Ft=require(_0x2658a4(0x360)),ht=_0x2658a4(0x208),Gt=_0x2658a4(0x312),_t=_0x2658a4(0x4f7),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x2658a4(0x57a),Xt=_0x2658a4(0x581),dt=_0x2658a4(0x482),qt=0x7530,Ve=_0x2658a4(0x1b3),St=0x4e20,zt=0x4e20,vt=_0x2658a4(0x23a),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',Qt=_0x2658a4(0x59c),mt=_0x2658a4(0x522),es=_0x2658a4(0x2b0);var It=(_0x1c2fce=>(_0x1c2fce[_0x1c2fce['UNDEFINED']=0x0]=_0x2658a4(0x4eb),_0x1c2fce[_0x1c2fce['OK']=0x1]='OK',_0x1c2fce[_0x1c2fce[_0x2658a4(0x523)]=0x2]=_0x2658a4(0x523),_0x1c2fce[_0x1c2fce[_0x2658a4(0x549)]=0x3]='PERMISSION_DENIED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x43f)]=0x4]=_0x2658a4(0x43f),_0x1c2fce[_0x1c2fce[_0x2658a4(0x241)]=0x5]='UNAUTHENTICATED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x3d7)]=0x6]=_0x2658a4(0x3d7),_0x1c2fce[_0x1c2fce[_0x2658a4(0x461)]=0x7]=_0x2658a4(0x461),_0x1c2fce[_0x1c2fce[_0x2658a4(0x35f)]=0x8]=_0x2658a4(0x35f),_0x1c2fce[_0x1c2fce[_0x2658a4(0x270)]=0x9]=_0x2658a4(0x270),_0x1c2fce[_0x1c2fce[_0x2658a4(0x48b)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1c2fce[_0x1c2fce[_0x2658a4(0x452)]=0x1771]=_0x2658a4(0x452),_0x1c2fce[_0x1c2fce['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1c2fce[_0x1c2fce['APPLY_REJECT']=0x1b59]=_0x2658a4(0x4f2),_0x1c2fce[_0x1c2fce['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1c2fce[_0x1c2fce[_0x2658a4(0x256)]=0x1b5b]=_0x2658a4(0x256),_0x1c2fce[_0x1c2fce[_0x2658a4(0x26e)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x5ad)]=0x1f41]=_0x2658a4(0x5ad),_0x1c2fce[_0x1c2fce[_0x2658a4(0x4cb)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x20a)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x5ab)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x45c)]=0x232c]=_0x2658a4(0x45c),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2d2)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x46c)]=0x2711]=_0x2658a4(0x46c),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2b6)]=0x2712]=_0x2658a4(0x2b6),_0x1c2fce[_0x1c2fce[_0x2658a4(0x247)]=0x2713]=_0x2658a4(0x247),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2af)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1c2fce[_0x1c2fce[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x1c2fce))(It||{}),$=(_0x3d78ce=>(_0x3d78ce[_0x3d78ce[_0x2658a4(0x42b)]=0x0]=_0x2658a4(0x42b),_0x3d78ce[_0x3d78ce['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x3d78ce[_0x3d78ce[_0x2658a4(0x3d2)]=0x2]=_0x2658a4(0x3d2),_0x3d78ce[_0x3d78ce['UNIVER_SLIDE']=0x3]=_0x2658a4(0x21d),_0x3d78ce[_0x3d78ce[_0x2658a4(0x369)]=0x4]=_0x2658a4(0x369),_0x3d78ce[_0x3d78ce[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x3d78ce))($||{}),b=(_0x5dd7b1=>(_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x490)]=0x0]=_0x2658a4(0x490),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2c6)]=0x1]='HELLO',_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2b4)]=0x2]=_0x2658a4(0x2b4),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x3da)]=0x3]=_0x2658a4(0x3da),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x5aa)]=0x4]=_0x2658a4(0x5aa),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x1d5)]=0x5]='HEARTBEAT',_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2da)]=0x6]=_0x2658a4(0x2da),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x1ef)]=-0x1]='UNRECOGNIZED',_0x5dd7b1))(b||{}),We=(_0x534041=>(_0x534041[_0x534041[_0x2658a4(0x400)]=0x0]=_0x2658a4(0x400),_0x534041[_0x534041['OK']=0x1]='OK',_0x534041[_0x534041[_0x2658a4(0x480)]=0x2]=_0x2658a4(0x480),_0x534041[_0x534041[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x534041))(We||{}),pt=(_0x1f9f82=>(_0x1f9f82[_0x1f9f82[_0x2658a4(0x2f7)]=0x0]=_0x2658a4(0x2f7),_0x1f9f82[_0x1f9f82[_0x2658a4(0x43d)]=0x1]=_0x2658a4(0x43d),_0x1f9f82[_0x1f9f82['HttpExport']=0x2]=_0x2658a4(0x1e1),_0x1f9f82[_0x1f9f82['UnitEmbedded']=0x3]=_0x2658a4(0x3db),_0x1f9f82[_0x1f9f82[_0x2658a4(0x2fe)]=0x4]='UnitSnapshot',_0x1f9f82[_0x1f9f82[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x1f9f82))(pt||{});const L=_0x2658a4(0x4e0),ts={};function Ct(_0x21f959){const _0x585fb2=_0x2658a4;var _0x2dd891,_0x2c2479,_0x15880c,_0x15ee5d;const _0x4d9263=_0x21f959['data'],_0x45ce25=JSON[_0x585fb2(0x529)](_0x4d9263);switch(_0x45ce25[_0x585fb2(0x2bc)]){case b['HEARTBEAT']:case b[_0x585fb2(0x2c6)]:{const _0x1e935f=_0x45ce25[_0x585fb2(0x295)];return{..._0x45ce25,'data':_0x1e935f,'cmd':_0x45ce25[_0x585fb2(0x2bc)]};}case b[_0x585fb2(0x2b4)]:{const _0x91bdc9=_0x45ce25[_0x585fb2(0x24e)];return{..._0x45ce25,'data':_0x91bdc9,'cmd':_0x45ce25['cmd']};}case b[_0x585fb2(0x2da)]:{const _0x35453b=_0x45ce25['collaMsg'];switch(_0x35453b['eventID']){case _['CollaborationEvent'][_0x585fb2(0x245)]:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x2dd891=_0x35453b[_0x585fb2(0x3d0)])==null?void 0x0:_0x2dd891['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['CHANGESET_ACK']:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x2c2479=_0x35453b[_0x585fb2(0x37e)])==null?void 0x0:_0x2c2479['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x54f)]:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x15880c=_0x35453b['newCsEvent'])==null?void 0x0:_0x15880c['cs']},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)]['CHANGESET_REJ']:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x15ee5d=_0x35453b[_0x585fb2(0x44d)])==null?void 0x0:_0x15ee5d['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x574)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x25c)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x1d6)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x4c4)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['USERS_LEAVE']:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x217)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x267)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x582)]},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)][_0x585fb2(0x517)]:case _['CollaborationEvent'][_0x585fb2(0x240)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x543)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x3fd)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x582)]},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)][_0x585fb2(0x544)]:return{..._0x45ce25,'data':_0x35453b,'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x1c1)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b['commentUpdateEvent']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x437)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x52c)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['SHOULD_CLOSE_CONN']:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x39b)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};default:return _0x45ce25;}}default:return _0x45ce25;}}function Et(_0x4d1c8a){const _0x2b4c2c=_0x2658a4;switch(_0x4d1c8a[_0x2b4c2c(0x2bc)]){case b[_0x2b4c2c(0x1d5)]:case b[_0x2b4c2c(0x2c6)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)]});case b['INGEST']:{let _0x83956d;switch(_0x4d1c8a['data'][_0x2b4c2c(0x44e)]){case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x574)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x574)],'updateCursorEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3b3)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3b3)],'leaveEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)]['USERS_ENTER']:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['USERS_ENTER'],'joinEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x240)]:{_0x83956d={'eventID':_['CollaborationEvent'][_0x2b4c2c(0x240)],'liveShareOperation':_0x4d1c8a['data'][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3fd)]:{_0x83956d={'eventID':_['CollaborationEvent'][_0x2b4c2c(0x3fd)],'liveShareTerminate':_0x4d1c8a['data'][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x386)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4d1c8a[_0x2b4c2c(0x46e)]['data']};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x517)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x517)]};break;}default:_0x83956d={'eventID':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x44e)]};}return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a['cmd'],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)],'collaMsg':_0x83956d});}case b[_0x2b4c2c(0x2b4)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a['routeKey'],'joinReq':_0x4d1c8a['data']});case b[_0x2b4c2c(0x3da)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)],'leaveReq':_0x4d1c8a[_0x2b4c2c(0x46e)]});default:throw new Error(_0x2b4c2c(0x362));}}var ss=Object['defineProperty'],is=Object[_0x2658a4(0x222)],ns=(_0x4e11d1,_0x588dc7,_0x1643e3,_0x267f4a)=>{for(var _0x1e8d09=_0x267f4a>0x1?void 0x0:_0x267f4a?is(_0x588dc7,_0x1643e3):_0x588dc7,_0x69072=_0x4e11d1['length']-0x1,_0x2fc2bf;_0x69072>=0x0;_0x69072--)(_0x2fc2bf=_0x4e11d1[_0x69072])&&(_0x1e8d09=(_0x267f4a?_0x2fc2bf(_0x588dc7,_0x1643e3,_0x1e8d09):_0x2fc2bf(_0x1e8d09))||_0x1e8d09);return _0x267f4a&&_0x1e8d09&&ss(_0x588dc7,_0x1643e3,_0x1e8d09),_0x1e8d09;},oe=(_0x391df7,_0x2146ff)=>(_0xd746c8,_0x2b6243)=>_0x2146ff(_0xd746c8,_0x2b6243,_0x391df7);const Fe=a[_0x2658a4(0x5b9)](_0x2658a4(0x1be));function rs(_0x50e5d0,_0x326ea8,_0x2009ff){const _0x106f99=_0x2658a4;return _0x50e5d0+'/'+_0x326ea8+_0x106f99(0x4f9)+_0x2009ff+_0x106f99(0x560);}exports[_0x2658a4(0x500)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x11aff0,_0x1ff69d,_0x57ed6f,_0x2897a7,_0x16eaca){const _0x3ace1d=_0x2658a4;super(),this[_0x3ace1d(0x4d0)]=_0x11aff0,this[_0x3ace1d(0x3f3)]=_0x1ff69d,this['_configService']=_0x57ed6f,this[_0x3ace1d(0x3dd)]=_0x2897a7,this[_0x3ace1d(0x284)]=_0x16eaca;}['createSocket'](_0x382780){const _0x1108ea=_0x2658a4,_0x45635b=this[_0x1108ea(0x3f3)][_0x1108ea(0x383)](_0x382780);if(!_0x45635b)throw new Error(_0x1108ea(0x51f));const _0x430974=new a[(_0x1108ea(0x41c))](),_0x19911f=new v['Subject']();_0x430974[_0x1108ea(0x463)](_0x45635b['close$'][_0x1108ea(0x2a3)](_0x1ed261=>_0x19911f[_0x1108ea(0x460)](_0x1ed261))),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x19911f[_0x1108ea(0x431)]()));const _0x5ba1b8=new v['Subject']();_0x430974['add'](_0x45635b[_0x1108ea(0x443)][_0x1108ea(0x2a3)](_0x567bfe=>_0x5ba1b8['next'](_0x567bfe))),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x5ba1b8['complete']()));const _0x5d6406=new v[(_0x1108ea(0x1f9))]();_0x430974['add'](_0x45635b[_0x1108ea(0x343)][_0x1108ea(0x2a3)](_0x4f0471=>{const _0x388868=_0x1108ea,_0x31ad23=Ct(_0x4f0471);_0x5d6406[_0x388868(0x460)](_0x31ad23);})),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x5d6406[_0x1108ea(0x431)]()));let _0xfe4912;const _0x1f770e=()=>{const _0x461ae5=_0x1108ea;_0x5ba1b8[_0x461ae5(0x460)](new Event(_0x461ae5(0x54b))),_0x19911f[_0x461ae5(0x460)](new CloseEvent(_0x461ae5(0x54b))),_0xfe4912[_0x461ae5(0x537)]();};return _0xfe4912={'memberID':'','close$':_0x19911f[_0x1108ea(0x329)](),'error$':_0x5ba1b8[_0x1108ea(0x329)](),'open$':_0x45635b[_0x1108ea(0x3f0)],'message$':_0x5d6406['asObservable'](),'send':_0xefe02d=>{const _0x4678e6=_0x1108ea;if(_0xefe02d['cmd']===b['INGEST']){if(_0xefe02d['data'][_0x4678e6(0x44e)]===_['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x4678e6(0x485)](_0xfe4912,_0xefe02d[_0x4678e6(0x46e)])[_0x4678e6(0x1f7)](_0x29fcd8=>{const _0x50998c=_0x4678e6;this['_logService'][_0x50998c(0x2ad)](_0x29fcd8),_0x1f770e();});return;}if(_0xefe02d[_0x4678e6(0x46e)][_0x4678e6(0x44e)]===_['CollaborationEvent'][_0x4678e6(0x589)]){const _0x1a8fbd=_0xefe02d['data'];this[_0x4678e6(0x3ea)](_0x1a8fbd)[_0x4678e6(0x451)](_0x4d500e=>{const _0x1f16d1=_0x4678e6;_0x5d6406[_0x1f16d1(0x460)]({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x1a8fbd[_0x1f16d1(0x46e)][_0x1f16d1(0x35d)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x1f16d1(0x32b)],'data':{'changesets':_0x4d500e}}});})[_0x4678e6(0x1f7)](_0x12a379=>{const _0x24da0a=_0x4678e6;this[_0x24da0a(0x3dd)][_0x24da0a(0x2ad)](_0x12a379),_0x1f770e();});return;}}_0x45635b[_0x4678e6(0x1f6)](Et(_0xefe02d));},'close':()=>{const _0x5a793d=_0x1108ea;_0x45635b[_0x5a793d(0x537)](),_0x430974[_0x5a793d(0x3c3)]();}},_0xfe4912;}async[_0x2658a4(0x485)](_0x467547,_0x4c8af4){const _0x3af04b=_0x2658a4;var _0x2cf21b,_0x268a54;const {unitType:_0x255430,unitID:_0xd3d94a,changeset:_0x5cfcf1}=_0x4c8af4[_0x3af04b(0x46e)],_0x3439c3={'unitID':_0xd3d94a,'memberID':_0x467547[_0x3af04b(0x504)],'type':_0x255430,'changeset':_[_0x3af04b(0x4f5)](_0x5cfcf1)},_0x5ddd01=this[_0x3af04b(0x519)][_0x3af04b(0x455)](gt),_0x4584ff=this[_0x3af04b(0x519)][_0x3af04b(0x455)](L),_0x496f05=rs((_0x268a54=(_0x2cf21b=_0x4584ff==null?void 0x0:_0x4584ff[_0x3af04b(0x44c)])!=null?_0x2cf21b:_0x5ddd01)!=null?_0x268a54:Qt,_0x255430,_0xd3d94a);try{await this[_0x3af04b(0x4d0)][_0x3af04b(0x2c2)](_0x496f05,{'body':_0x3439c3});}catch(_0x232e65){throw this['_logService'][_0x3af04b(0x2ad)]('[CollaborationSession]',_0x3af04b(0x224)),_0x232e65;}}async['_fetchMissChangesets'](_0x3591aa){const _0x79c14d=_0x2658a4,{unitID:_0x5ef7a1,from:_0x4532d6,to:_0xa5f42,unitType:_0x328d94}=_0x3591aa[_0x79c14d(0x46e)];return(await this[_0x79c14d(0x284)][_0x79c14d(0x3a2)]({'metadata':void 0x0},{'unitID':_0x5ef7a1,'type':_0x328d94,'from':_0x4532d6,'to':_0xa5f42}))[_0x79c14d(0x528)];}},exports[_0x2658a4(0x500)]=ns([oe(0x0,a[_0x2658a4(0x349)](P['HTTPService'])),oe(0x1,a[_0x2658a4(0x349)](P[_0x2658a4(0x207)])),oe(0x2,a['IConfigService']),oe(0x3,a[_0x2658a4(0x2f2)]),oe(0x4,_[_0x2658a4(0x258)])],exports[_0x2658a4(0x500)]);const os=_0x2658a4(0x4e2);function as(_0x3ff1c3){const _0x5e4b0c=_0x2658a4;return JSON[_0x5e4b0c(0x427)](_0x3ff1c3)[_0x5e4b0c(0x532)];}class Ge{constructor(){const _0x36b8f2=_0x2658a4;d(this,'_commentUpdate$',new v[(_0x36b8f2(0x1f9))]()),d(this,_0x36b8f2(0x4ed),this[_0x36b8f2(0x367)]['asObservable']());}[_0x2658a4(0x4c0)](_0x19504c){const _0x5f17ec=_0x2658a4;this[_0x5f17ec(0x367)][_0x5f17ec(0x460)](_0x19504c);}}var cs=Object[_0x2658a4(0x30c)],ls=Object[_0x2658a4(0x222)],hs=(_0x294bff,_0xba8a1f,_0x48e261,_0x41cd8)=>{const _0x2bc0e6=_0x2658a4;for(var _0x212a80=_0x41cd8>0x1?void 0x0:_0x41cd8?ls(_0xba8a1f,_0x48e261):_0xba8a1f,_0x4bdb31=_0x294bff[_0x2bc0e6(0x532)]-0x1,_0x279e72;_0x4bdb31>=0x0;_0x4bdb31--)(_0x279e72=_0x294bff[_0x4bdb31])&&(_0x212a80=(_0x41cd8?_0x279e72(_0xba8a1f,_0x48e261,_0x212a80):_0x279e72(_0x212a80))||_0x212a80);return _0x41cd8&&_0x212a80&&cs(_0xba8a1f,_0x48e261,_0x212a80),_0x212a80;},Ze=(_0x14c41c,_0x6c9761)=>(_0x5151e3,_0x4fe0d4)=>_0x6c9761(_0x5151e3,_0x4fe0d4,_0x14c41c);let q=class extends a[_0x2658a4(0x1df)]{constructor(_0x5537ce,_0x45e4b2){const _0xde1773=_0x2658a4;super(),d(this,'_roomMembers',new Map()),(this[_0xde1773(0x446)]=_0x5537ce,this[_0xde1773(0x412)]=_0x45e4b2,this['disposeWithMe'](a[_0xde1773(0x23f)](v[_0xde1773(0x50c)](this[_0xde1773(0x446)][_0xde1773(0x5a8)](a['UniverInstanceType'][_0xde1773(0x3d2)])['pipe'](E[_0xde1773(0x1ec)](_0x3f6aaf=>_0x3f6aaf[_0xde1773(0x365)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0xde1773(0x1e8)])[_0xde1773(0x348)](E[_0xde1773(0x1ec)](_0x3e2e7f=>_0x3e2e7f[_0xde1773(0x365)]())),this[_0xde1773(0x446)][_0xde1773(0x5a8)](a[_0xde1773(0x313)][_0xde1773(0x21d)])[_0xde1773(0x348)](E[_0xde1773(0x1ec)](_0x1f311a=>_0x1f311a[_0xde1773(0x365)]())))[_0xde1773(0x2a3)](_0xba5d0c=>this[_0xde1773(0x2b3)](_0xba5d0c)))));}[_0x2658a4(0x592)](_0x2f4aa7){const _0x4e99c8=_0x2658a4;this[_0x4e99c8(0x412)][_0x4e99c8(0x592)](_0x2f4aa7);}[_0x2658a4(0x2c8)](){const _0x4866da=_0x2658a4;return this[_0x4866da(0x412)][_0x4866da(0x2c8)]();}[_0x2658a4(0x564)](_0x436bec,_0x12a795){const _0x312299=_0x2658a4;let _0x2720b0=this['_roomMembers'][_0x312299(0x3cc)](_0x436bec);_0x2720b0||(_0x2720b0=new _s(),this[_0x312299(0x30b)][_0x312299(0x2ce)](_0x436bec,_0x2720b0)),_0x2720b0[_0x312299(0x564)](_0x12a795);}[_0x2658a4(0x503)](_0x574653,_0x455c88){const _0x55153a=_0x2658a4,_0x4a473a=this[_0x55153a(0x30b)][_0x55153a(0x3cc)](_0x574653);_0x4a473a&&_0x4a473a[_0x55153a(0x503)](_0x455c88);}['getRoom'](_0x5b9cba){const _0x3be30b=_0x2658a4;return this[_0x3be30b(0x30b)][_0x3be30b(0x3cc)](_0x5b9cba);}[_0x2658a4(0x4ae)](_0x1dc0b6,_0x1b8ae8){const _0x18721d=_0x2658a4,_0x3b198a=this[_0x18721d(0x30b)][_0x18721d(0x3cc)](_0x1dc0b6);if(_0x3b198a)return _0x3b198a[_0x18721d(0x4ae)](_0x1b8ae8);}[_0x2658a4(0x2b3)](_0x576e5d){const _0x110b42=_0x2658a4,_0x162e84=this[_0x110b42(0x30b)]['get'](_0x576e5d);_0x162e84&&(_0x162e84[_0x110b42(0x3c3)](),this['_roomMembers'][_0x110b42(0x364)](_0x576e5d));}['dispose'](){const _0x24b1d0=_0x2658a4;this['_roomMembers']['forEach'](_0x5281dc=>_0x5281dc[_0x24b1d0(0x3c3)]()),this[_0x24b1d0(0x30b)][_0x24b1d0(0x2ae)]();}};q=hs([Ze(0x0,a[_0x2658a4(0x4e5)]),Ze(0x1,a['Inject'](a[_0x2658a4(0x402)]))],q);class _s extends a['Disposable']{constructor(){const _0x3bd859=_0x2658a4;super(...arguments),d(this,_0x3bd859(0x385),new Map());}['dispose'](){const _0x4aaa93=_0x2658a4;this[_0x4aaa93(0x385)][_0x4aaa93(0x2ae)]();}[_0x2658a4(0x564)](_0x201296){const _0x467128=_0x2658a4;this[_0x467128(0x385)][_0x467128(0x2ce)](_0x201296[_0x467128(0x504)],_0x201296);}[_0x2658a4(0x503)](_0x61ca4e){this['_members']['delete'](_0x61ca4e);}[_0x2658a4(0x4ae)](_0x5b7872){const _0x158059=_0x2658a4;return this['_members'][_0x158059(0x3cc)](_0x5b7872);}}var us=Object[_0x2658a4(0x30c)],ds=Object[_0x2658a4(0x222)],Ss=(_0x25b7ec,_0x1409d2,_0x47c21f,_0x508c32)=>{const _0x15fb32=_0x2658a4;for(var _0xe18dda=_0x508c32>0x1?void 0x0:_0x508c32?ds(_0x1409d2,_0x47c21f):_0x1409d2,_0x19fe6a=_0x25b7ec[_0x15fb32(0x532)]-0x1,_0x12c349;_0x19fe6a>=0x0;_0x19fe6a--)(_0x12c349=_0x25b7ec[_0x19fe6a])&&(_0xe18dda=(_0x508c32?_0x12c349(_0x1409d2,_0x47c21f,_0xe18dda):_0x12c349(_0xe18dda))||_0xe18dda);return _0x508c32&&_0xe18dda&&us(_0x1409d2,_0x47c21f,_0xe18dda),_0xe18dda;},B=(_0x1ac55e,_0x1f4265)=>(_0x4a19eb,_0x350f5f)=>_0x1f4265(_0x4a19eb,_0x350f5f,_0x1ac55e),j=(_0x14a8e3=>(_0x14a8e3[_0x14a8e3['IDLE']=0x0]='IDLE',_0x14a8e3[_0x14a8e3[_0x2658a4(0x1e9)]=0x1]=_0x2658a4(0x1e9),_0x14a8e3[_0x14a8e3[_0x2658a4(0x1fc)]=0x2]=_0x2658a4(0x1fc),_0x14a8e3[_0x14a8e3['ONLINE']=0x3]=_0x2658a4(0x3ae),_0x14a8e3))(j||{});exports[_0x2658a4(0x1aa)]=class extends a[_0x2658a4(0x354)]{constructor(_0x156a08,_0x26c4a0,_0x211b5c,_0x4098f8,_0x33b23f,_0x93be2,_0x44e191,_0x621678,_0xcba62b,_0x5d938b){const _0x4cacd0=_0x2658a4;super(),d(this,_0x4cacd0(0x539),new v['BehaviorSubject'](0x0)),d(this,_0x4cacd0(0x596),this[_0x4cacd0(0x539)][_0x4cacd0(0x329)]()),d(this,_0x4cacd0(0x4c7),new v[(_0x4cacd0(0x1f9))]()),d(this,_0x4cacd0(0x39e),this['_event$'][_0x4cacd0(0x329)]()),d(this,_0x4cacd0(0x545)),d(this,_0x4cacd0(0x234)),d(this,'_collaborationTimeoutTimer'),d(this,_0x4cacd0(0x520),!0x1),d(this,_0x4cacd0(0x239),null),(this[_0x4cacd0(0x40c)]=_0x156a08,this[_0x4cacd0(0x3dd)]=_0x211b5c,this[_0x4cacd0(0x232)]=_0x4098f8,this['_messageService']=_0x33b23f,this[_0x4cacd0(0x519)]=_0x93be2,this[_0x4cacd0(0x1a5)]=_0x44e191,this['_memberService']=_0x621678,this[_0x4cacd0(0x33a)]=_0xcba62b,this[_0x4cacd0(0x35c)]=_0x5d938b,this['_shouldReportTelemetry']=!!this[_0x4cacd0(0x35c)],_0x26c4a0[_0x4cacd0(0x348)](v[_0x4cacd0(0x3b1)](this['dispose$']))[_0x4cacd0(0x2a3)](_0x89a091=>{const _0x44d421=_0x4cacd0;var _0x2c5f54;typeof _0x89a091>'u'||(this[_0x44d421(0x545)]=_0x89a091,_0x89a091?(this['_joinRoom'](_0x89a091),this['_socketMessageSubscription']=_0x89a091['message$']['subscribe'](_0x30e39e=>{const _0x54da81=_0x44d421;_0x30e39e['routeKey']===this[_0x54da81(0x40c)]&&this[_0x54da81(0x4a0)](_0x30e39e);})):(this[_0x44d421(0x1ee)](),this[_0x44d421(0x539)]['next'](0x2),(_0x2c5f54=this[_0x44d421(0x234)])==null||_0x2c5f54[_0x44d421(0x488)](),this[_0x44d421(0x234)]=null));}),this[_0x4cacd0(0x2f0)](this['_beforeCloseService'][_0x4cacd0(0x49d)](()=>{const _0x110e6b=_0x4cacd0;var _0x53d089;(_0x53d089=this[_0x110e6b(0x545)])==null||_0x53d089[_0x110e6b(0x1f6)]({'cmd':b[_0x110e6b(0x3da)],'data':{'roomID':this[_0x110e6b(0x40c)]}});})));}get[_0x2658a4(0x5b1)](){const _0x48e832=_0x2658a4;return this[_0x48e832(0x539)][_0x48e832(0x4c1)]();}[_0x2658a4(0x408)](){const _0x5ddb1e=_0x2658a4;var _0x3a6600,_0x18256b;return(_0x18256b=(_0x3a6600=this[_0x5ddb1e(0x545)])==null?void 0x0:_0x3a6600[_0x5ddb1e(0x504)])!=null?_0x18256b:null;}[_0x2658a4(0x3c3)](){const _0xb98c6b=_0x2658a4;super[_0xb98c6b(0x3c3)](),this[_0xb98c6b(0x576)]['next'](),this[_0xb98c6b(0x576)][_0xb98c6b(0x431)]();}[_0x2658a4(0x537)](){const _0x238fb5=_0x2658a4;var _0x2c70c7,_0x14fb9a;this[_0x238fb5(0x1ee)](),(_0x2c70c7=this['_socket'])==null||_0x2c70c7[_0x238fb5(0x1f6)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x238fb5(0x40c)]}}),(_0x14fb9a=this[_0x238fb5(0x545)])==null||_0x14fb9a[_0x238fb5(0x537)](),this[_0x238fb5(0x4c7)]['complete'](),this['_sessionStatus$'][_0x238fb5(0x431)](),this[_0x238fb5(0x3c3)]();}[_0x2658a4(0x4a0)](_0x4cfcb0){const _0x7b7a97=_0x2658a4;_0x4cfcb0[_0x7b7a97(0x2bc)]===b[_0x7b7a97(0x2b4)]?this[_0x7b7a97(0x2ba)](_0x4cfcb0):_0x4cfcb0[_0x7b7a97(0x2bc)]===b[_0x7b7a97(0x2da)]&&this[_0x7b7a97(0x3e0)](_0x4cfcb0);}[_0x2658a4(0x37c)](_0x5bb678){const _0xc54651=_0x2658a4;this['_sessionStatus$'][_0xc54651(0x460)](0x1),_0x5bb678[_0xc54651(0x1f6)]({'cmd':b[_0xc54651(0x2b4)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xc54651(0x40c)]}]}});}[_0x2658a4(0x2ba)](_0x4488b1){const _0x1ca8f4=_0x2658a4;var _0x84874a;if(_0x4488b1[_0x1ca8f4(0x243)]===We['FAIL']){this[_0x1ca8f4(0x467)]['show']({'type':X[_0x1ca8f4(0x406)][_0x1ca8f4(0x575)],'content':this[_0x1ca8f4(0x1a5)]['t'](_0x1ca8f4(0x3ce))}),this[_0x1ca8f4(0x539)][_0x1ca8f4(0x460)](0x2);return;}this[_0x1ca8f4(0x539)][_0x1ca8f4(0x460)](0x3);const _0xe2d075=(_0x84874a=_0x4488b1[_0x1ca8f4(0x46e)][_0x1ca8f4(0x2e8)][this[_0x1ca8f4(0x40c)]])==null?void 0x0:_0x84874a[_0x1ca8f4(0x4fd)];_0xe2d075&&_0xe2d075['forEach'](_0x1c5676=>this[_0x1ca8f4(0x3f8)][_0x1ca8f4(0x564)](this['_unitID'],_0x1c5676));}[_0x2658a4(0x3e0)](_0x3627b6){const _0x2d88c4=_0x2658a4;try{const _0x1e84e0=_0x3627b6[_0x2d88c4(0x46e)];switch(_0x1e84e0[_0x2d88c4(0x44e)]){case _['CollaborationEvent'][_0x2d88c4(0x1d6)]:this[_0x2d88c4(0x5a3)](_0x1e84e0),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;case _['CollaborationEvent'][_0x2d88c4(0x3b3)]:this[_0x2d88c4(0x20f)](_0x1e84e0),this['_event$'][_0x2d88c4(0x460)](_0x1e84e0);break;case _[_0x2d88c4(0x2d5)][_0x2d88c4(0x593)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;case _[_0x2d88c4(0x2d5)][_0x2d88c4(0x544)]:this[_0x2d88c4(0x3dd)][_0x2d88c4(0x2ad)](_0x2d88c4(0x297)+JSON[_0x2d88c4(0x427)](_0x1e84e0)),this[_0x2d88c4(0x4c7)]['next'](_0x1e84e0);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x2d88c4(0x33a)]['onCommentUpdate'](_0x1e84e0['data']),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;default:this['_event$'][_0x2d88c4(0x460)](_0x1e84e0);}}catch(_0x2a699a){this[_0x2d88c4(0x3dd)]['error'](_0x2a699a,_0x3627b6);}}['_onUserJoin'](_0xbccbb9){const _0x194add=_0x2658a4;this[_0x194add(0x3f8)]['updateMember'](this['_unitID'],_0xbccbb9[_0x194add(0x46e)]);}[_0x2658a4(0x20f)](_0x29a4f4){const _0x15e7bc=_0x2658a4;this[_0x15e7bc(0x3f8)][_0x15e7bc(0x503)](this[_0x15e7bc(0x40c)],_0x29a4f4[_0x15e7bc(0x46e)][_0x15e7bc(0x504)]);}async['send'](_0x4e64ba,_0x3b9b15){const _0xabde1a=_0x2658a4;if(this[_0xabde1a(0x5b1)]!==0x3||!this[_0xabde1a(0x545)])throw new Error(_0xabde1a(0x41a));try{_0x4e64ba['eventID']===_[_0xabde1a(0x2d5)][_0xabde1a(0x265)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xabde1a(0x4f1)](_0x4e64ba)),this[_0xabde1a(0x545)][_0xabde1a(0x1f6)]({'cmd':b[_0xabde1a(0x5aa)],'routeKey':_0x3b9b15,'routeType':'','data':_0x4e64ba});}catch(_0x234e83){this[_0xabde1a(0x3dd)]['error'](_0x234e83);}}[_0x2658a4(0x2b2)](){const _0x15e652=_0x2658a4;var _0x196748;this['_collaborationTimeoutTimer']=window[_0x15e652(0x47d)](()=>{const _0x9aef8d=_0x15e652;this[_0x9aef8d(0x307)]=null,this[_0x9aef8d(0x467)]['show']({'type':X[_0x9aef8d(0x406)][_0x9aef8d(0x3c2)],'content':this[_0x9aef8d(0x1a5)]['t'](_0x9aef8d(0x38e))});},(_0x196748=this[_0x15e652(0x519)][_0x15e652(0x455)](Ve))!=null?_0x196748:St);}[_0x2658a4(0x4fc)](){const _0x48f344=_0x2658a4;this[_0x48f344(0x307)]&&(clearTimeout(this[_0x48f344(0x307)]),this['_collaborationTimeoutTimer']=null);}[_0x2658a4(0x4f1)](_0x1ea6a9){const _0x5661a0=_0x2658a4;if(!this[_0x5661a0(0x520)])return;const {data:_0x3309e4}=_0x1ea6a9,{unitID:_0x5d1da7,changeset:_0x453f}=_0x3309e4,{mutations:_0x419d3c,type:_0x328c63}=_0x453f;this[_0x5661a0(0x239)]={'unitId':_0x5d1da7,'type':_0x328c63,'startTime':performance[_0x5661a0(0x3bc)](),'stopTime':0x0,'duration':0x0,'size':as(_0x419d3c)};}[_0x2658a4(0x4f4)](){const _0x5bb8d7=_0x2658a4;if(this[_0x5bb8d7(0x520)]){if(!this[_0x5bb8d7(0x239)]){this[_0x5bb8d7(0x3dd)][_0x5bb8d7(0x2ad)]('[CollaborationSession]',_0x5bb8d7(0x225));return;}this['_telemetryInfo'][_0x5bb8d7(0x527)]=performance['now'](),this[_0x5bb8d7(0x239)]['duration']=this[_0x5bb8d7(0x239)][_0x5bb8d7(0x527)]-this['_telemetryInfo']['startTime'],this['_telemetryService']['capture'](os,this[_0x5bb8d7(0x239)]),this['_telemetryInfo']=null;}}[_0x2658a4(0x1ee)](){const _0x48aa1b=_0x2658a4;this[_0x48aa1b(0x239)]=null;}},exports[_0x2658a4(0x1aa)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x2658a4(0x49c)]),B(0x4,N[_0x2658a4(0x305)]),B(0x5,a[_0x2658a4(0x35a)]),B(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),B(0x7,a[_0x2658a4(0x349)](q)),B(0x8,a[_0x2658a4(0x349)](Ge)),B(0x9,a[_0x2658a4(0x4a2)](Bt[_0x2658a4(0x57b)]))],exports['CollaborationSession']);function _0x5b2d(_0x55a785,_0x14ef62){const _0x1540bb=_0x1540();return _0x5b2d=function(_0x5b2dd0,_0x353b80){_0x5b2dd0=_0x5b2dd0-0x1a5;let _0x1eb9f5=_0x1540bb[_0x5b2dd0];return _0x1eb9f5;},_0x5b2d(_0x55a785,_0x14ef62);}var vs=Object[_0x2658a4(0x30c)],fs=Object['getOwnPropertyDescriptor'],gs=(_0x29de43,_0x877809,_0x3ecd06,_0x5b6397)=>{const _0x162051=_0x2658a4;for(var _0x554e65=_0x5b6397>0x1?void 0x0:_0x5b6397?fs(_0x877809,_0x3ecd06):_0x877809,_0x452715=_0x29de43[_0x162051(0x532)]-0x1,_0x388ca8;_0x452715>=0x0;_0x452715--)(_0x388ca8=_0x29de43[_0x452715])&&(_0x554e65=(_0x5b6397?_0x388ca8(_0x877809,_0x3ecd06,_0x554e65):_0x388ca8(_0x554e65))||_0x554e65);return _0x5b6397&&_0x554e65&&vs(_0x877809,_0x3ecd06,_0x554e65),_0x554e65;},Z=(_0x83e743,_0x1b8f0c)=>(_0x3ef485,_0x2d6b95)=>_0x1b8f0c(_0x3ef485,_0x2d6b95,_0x83e743);exports[_0x2658a4(0x4c6)]=class extends a['Disposable']{constructor(_0x5d2f1e,_0x1c25e0,_0x1fc6fb,_0x184a72,_0x295c08,_0x562133){const _0x2814ce=_0x2658a4;super(),d(this,_0x2814ce(0x465),new v['BehaviorSubject'](void 0x0)),d(this,_0x2814ce(0x1d9),this[_0x2814ce(0x465)][_0x2814ce(0x329)]()),d(this,_0x2814ce(0x39f),null),d(this,_0x2814ce(0x551),new Map()),d(this,_0x2814ce(0x303),new v['BehaviorSubject'](j['IDLE'])),d(this,_0x2814ce(0x3bd),this[_0x2814ce(0x303)][_0x2814ce(0x329)]()),d(this,_0x2814ce(0x405),!0x1),d(this,_0x2814ce(0x497)),d(this,_0x2814ce(0x321),0x0),d(this,_0x2814ce(0x548)),d(this,_0x2814ce(0x3a6)),(this[_0x2814ce(0x584)]=_0x5d2f1e,this[_0x2814ce(0x1a5)]=_0x1c25e0,this[_0x2814ce(0x467)]=_0x1fc6fb,this[_0x2814ce(0x3dd)]=_0x184a72,this[_0x2814ce(0x519)]=_0x295c08,this[_0x2814ce(0x3ab)]=_0x562133,this[_0x2814ce(0x411)]());}get[_0x2658a4(0x545)](){const _0x1e7228=_0x2658a4;return this[_0x1e7228(0x465)][_0x1e7228(0x4c1)]();}['_initEventListeners'](){const _0xe744ed=_0x2658a4;this[_0xe744ed(0x259)](),this[_0xe744ed(0x271)]();}['dispose'](){const _0x1cb7e6=_0x2658a4;super[_0x1cb7e6(0x3c3)](),this[_0x1cb7e6(0x551)][_0x1cb7e6(0x4ab)](_0xaf1312=>_0xaf1312[_0x1cb7e6(0x3c3)]()),this[_0x1cb7e6(0x551)][_0x1cb7e6(0x2ae)](),this['_status$'][_0x1cb7e6(0x431)]();}async['requireSession'](_0x51edc3){const _0x41262b=_0x2658a4;if(this[_0x41262b(0x551)][_0x41262b(0x304)](_0x51edc3))return this['_sessions']['get'](_0x51edc3);this[_0x41262b(0x413)]();const _0x25286a=this[_0x41262b(0x584)][_0x41262b(0x2d3)](exports[_0x41262b(0x1aa)],_0x51edc3,this[_0x41262b(0x465)][_0x41262b(0x329)]());return this[_0x41262b(0x551)][_0x41262b(0x2ce)](_0x51edc3,_0x25286a),_0x25286a;}[_0x2658a4(0x4b6)](_0x49237f){const _0x326b61=_0x2658a4;var _0x2654e1;const _0x377ee6=this[_0x326b61(0x551)][_0x326b61(0x3cc)](_0x49237f);_0x377ee6&&(this[_0x326b61(0x551)][_0x326b61(0x364)](_0x49237f),_0x377ee6[_0x326b61(0x537)]()),this[_0x326b61(0x551)]['size']||(_0x2654e1=this[_0x326b61(0x545)])==null||_0x2654e1[_0x326b61(0x537)]();}[_0x2658a4(0x381)](){const _0x4064e1=_0x2658a4;this['_retryCount']=0x0,this[_0x4064e1(0x497)]!=null&&(clearTimeout(this[_0x4064e1(0x497)]),this[_0x4064e1(0x497)]=null),this[_0x4064e1(0x32c)]();}['_createSocket'](){const _0x1afb33=_0x2658a4;var _0x3ae831,_0x555587;const _0x5f0708=this['_configService'][_0x1afb33(0x455)](ut),_0x378040=this['_configService'][_0x1afb33(0x455)](L),_0xf69722=(_0x555587=(_0x3ae831=_0x378040==null?void 0x0:_0x378040['collabWebSocketUrl'])!=null?_0x3ae831:_0x5f0708)!=null?_0x555587:Xt,_0x14cb75=this[_0x1afb33(0x3ab)][_0x1afb33(0x383)](_0xf69722);return this[_0x1afb33(0x39f)]=_0x14cb75,_0x14cb75;}[_0x2658a4(0x413)](){const _0x325b80=_0x2658a4;var _0x135254,_0x4aeb88;try{const _0x455627=(_0x4aeb88=(_0x135254=this[_0x325b80(0x545)])!=null?_0x135254:this[_0x325b80(0x39f)])!=null?_0x4aeb88:this[_0x325b80(0x1fe)]();if(_0x455627){const _0x5d6d4a=_0x455627[_0x325b80(0x1f6)];_0x455627[_0x325b80(0x1f6)]=_0x319ac0=>(this[_0x325b80(0x324)](),_0x5d6d4a[_0x325b80(0x4b8)](_0x455627,[_0x319ac0])),_0x455627[_0x325b80(0x343)][_0x325b80(0x2a3)](_0x5104ea=>this[_0x325b80(0x3d6)](_0x455627,_0x5104ea)),_0x455627['error$'][_0x325b80(0x348)](E[_0x325b80(0x3f5)](0x1))['subscribe'](_0x3949d2=>this['_logService'][_0x325b80(0x2ad)]('[CollaborationSessionService]:\x20socket\x20error',_0x3949d2)),_0x455627['open$'][_0x325b80(0x348)](E['take'](0x1))['subscribe'](()=>{const _0xc26a10=_0x325b80;this[_0xc26a10(0x4d4)](_0x455627);}),_0x455627[_0x325b80(0x226)][_0x325b80(0x348)](E[_0x325b80(0x3f5)](0x1))[_0x325b80(0x2a3)](_0x34152c=>{const _0x38f332=_0x325b80;this[_0x38f332(0x3dd)][_0x38f332(0x4b0)](_0x38f332(0x4aa),_0x38f332(0x255),_0x34152c),this[_0x38f332(0x41b)]();});}}catch(_0x565c67){this[_0x325b80(0x3dd)][_0x325b80(0x2ad)](_0x565c67),this[_0x325b80(0x41b)]();}}[_0x2658a4(0x4d4)](_0x38feaf){const _0x339af2=_0x2658a4;this[_0x339af2(0x3dd)][_0x339af2(0x4b0)](_0x339af2(0x4aa),_0x339af2(0x416)),_0x38feaf[_0x339af2(0x1f6)]({'cmd':b[_0x339af2(0x2c6)]}),this[_0x339af2(0x324)]();}[_0x2658a4(0x259)](){const _0x5b6759=_0x2658a4;window[_0x5b6759(0x4ad)](_0x5b6759(0x37b),()=>this[_0x5b6759(0x4a4)]());}[_0x2658a4(0x4a4)](){const _0x26f271=_0x2658a4;this[_0x26f271(0x405)]=!0x1,this['_candidateSocket']=null,this[_0x26f271(0x303)][_0x26f271(0x460)](j[_0x26f271(0x1fc)]),this[_0x26f271(0x465)][_0x26f271(0x460)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x2658a4(0x41b)](){const _0x2e35d3=_0x2658a4;var _0x36f895;this[_0x2e35d3(0x4a4)](),this[_0x2e35d3(0x321)]<((_0x36f895=this[_0x2e35d3(0x519)][_0x2e35d3(0x455)](vt))!=null?_0x36f895:Jt)?(this[_0x2e35d3(0x467)]['show']({'key':_0x2e35d3(0x391),'type':X[_0x2e35d3(0x406)][_0x2e35d3(0x575)],'content':this[_0x2e35d3(0x1a5)]['t']('session.will-retry')}),this[_0x2e35d3(0x32c)]()):this['_messageService'][_0x2e35d3(0x50d)]({'key':'collaboration-session-retry','type':X[_0x2e35d3(0x406)][_0x2e35d3(0x3c2)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x280263=_0x2658a4,_0x4b853f=()=>{const _0x41d5ba=_0x5b2d;this[_0x41d5ba(0x545)]||this[_0x41d5ba(0x381)]();},_0xbfe1e3=()=>{const _0x14b943=_0x5b2d;this[_0x14b943(0x545)]||document[_0x14b943(0x29d)]==='hidden'||this[_0x14b943(0x381)]();};window[_0x280263(0x4ad)](_0x280263(0x36e),_0x4b853f),document[_0x280263(0x4ad)](_0x280263(0x34e),_0xbfe1e3);}[_0x2658a4(0x32c)](){const _0x3e1be3=_0x2658a4;var _0x57d445;const _0x12331a=this[_0x3e1be3(0x321)],_0x9e18e2=this[_0x3e1be3(0x519)][_0x3e1be3(0x455)](L),_0x2b2834=_0x12331a===0x0?0x0:((_0x57d445=_0x9e18e2==null?void 0x0:_0x9e18e2[_0x3e1be3(0x3f7)])!=null?_0x57d445:zt)*0x2**_0x12331a;this[_0x3e1be3(0x497)]=window[_0x3e1be3(0x47d)](()=>{const _0x4447a3=_0x3e1be3;clearTimeout(this[_0x4447a3(0x497)]),this[_0x4447a3(0x497)]=null,this['_tryEnsureSocket']();},_0x2b2834),this[_0x3e1be3(0x321)]+=0x1;}['_onMessage'](_0x3ceaa0,_0x3e6b90){const _0x18eec2=_0x2658a4,{cmd:_0x19e85c}=_0x3e6b90;_0x19e85c===b[_0x18eec2(0x2c6)]&&!this[_0x18eec2(0x405)]&&(_0x3ceaa0[_0x18eec2(0x504)]=_0x3e6b90['data']['memberID'],this[_0x18eec2(0x465)][_0x18eec2(0x460)](_0x3ceaa0),this[_0x18eec2(0x303)][_0x18eec2(0x460)](j['ONLINE']),this['_socketReady']=!0x0,this[_0x18eec2(0x39f)]=null),_0x19e85c===b[_0x18eec2(0x1d5)]&&this[_0x18eec2(0x1b5)](),this['_rescheduleHeartbeat']();}[_0x2658a4(0x324)](){const _0x140339=_0x2658a4;var _0x4fedb1;this[_0x140339(0x4a1)](),this[_0x140339(0x548)]=window[_0x140339(0x47d)](()=>this[_0x140339(0x518)](),(_0x4fedb1=this['_configService']['getConfig'](dt))!=null?_0x4fedb1:qt);}[_0x2658a4(0x518)](){const _0x24e1a5=_0x2658a4;this[_0x24e1a5(0x545)][_0x24e1a5(0x1f6)]({'cmd':b['HEARTBEAT']}),this[_0x24e1a5(0x1c4)]();}[_0x2658a4(0x1c4)](){const _0x4418fe=_0x2658a4;var _0x3167c5;this['_timeoutTimer']=window[_0x4418fe(0x47d)](()=>this[_0x4418fe(0x41b)](),(_0x3167c5=this['_configService']['getConfig'](Ve))!=null?_0x3167c5:St);}[_0x2658a4(0x4a1)](){const _0x238d4a=_0x2658a4;this[_0x238d4a(0x548)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x2658a4(0x1b5)](){const _0x4b4fe4=_0x2658a4;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x4b4fe4(0x3a6)]),this[_0x4b4fe4(0x3a6)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Z(0x1,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),Z(0x2,N[_0x2658a4(0x305)]),Z(0x3,a[_0x2658a4(0x2f2)]),Z(0x4,a[_0x2658a4(0x35a)]),Z(0x5,Fe)],exports[_0x2658a4(0x4c6)]);var ms=Object['defineProperty'],Is=Object[_0x2658a4(0x222)],ps=(_0x2af906,_0x1dfc6d,_0x4fa125,_0x40c880)=>{for(var _0xc287b7=_0x40c880>0x1?void 0x0:_0x40c880?Is(_0x1dfc6d,_0x4fa125):_0x1dfc6d,_0x5f54b2=_0x2af906['length']-0x1,_0x25be60;_0x5f54b2>=0x0;_0x5f54b2--)(_0x25be60=_0x2af906[_0x5f54b2])&&(_0xc287b7=(_0x40c880?_0x25be60(_0x1dfc6d,_0x4fa125,_0xc287b7):_0x25be60(_0xc287b7))||_0xc287b7);return _0x40c880&&_0xc287b7&&ms(_0x1dfc6d,_0x4fa125,_0xc287b7),_0xc287b7;},ye=(_0x771b6b,_0x173e5f)=>(_0x2cf95d,_0x2d810e)=>_0x173e5f(_0x2cf95d,_0x2d810e,_0x771b6b);let Ie=class{constructor(_0x2bdc8f,_0x4768c1,_0x21ae9a){const _0x5b8e15=_0x2658a4;this[_0x5b8e15(0x584)]=_0x2bdc8f,this[_0x5b8e15(0x3c8)]=_0x4768c1,this[_0x5b8e15(0x3c1)]=_0x21ae9a;}[_0x2658a4(0x29f)](_0x288b50){const _0x20d010=_0x2658a4;this['_transformUndoRedoStack'](_0x288b50),this[_0x20d010(0x32d)](_0x288b50);}[_0x2658a4(0x429)](_0x2843f3){const _0x4b8282=_0x2658a4,{unitID:_0x3a67fd}=_0x2843f3,_0x581df7=this[_0x4b8282(0x3c1)][_0x4b8282(0x376)](_0x3a67fd)['with'](w[_0x4b8282(0x4a3)]),{redoCache:_0x2c62b6}=_0x581df7['getUndoRedoMutationParamsCache']();if(_0x2c62b6[_0x4b8282(0x532)]===0x0)return _0x2843f3;let _0x11c76e=a[_0x4b8282(0x2d0)][_0x4b8282(0x4b2)](_0x2843f3[_0x4b8282(0x1ad)][0x0]);for(let _0x1d83d1=0x0;_0x1d83d1<_0x2c62b6['length'];_0x1d83d1++){const _0x5d71ca={'id':_0x4b8282(0x4fa),'params':{..._0x2c62b6[_0x1d83d1]}},_0x4c9bb0=this[_0x4b8282(0x3c8)][_0x4b8282(0x317)](_0x11c76e,_0x5d71ca,!0x1);if(_[_0x4b8282(0x1cf)](_0x4c9bb0))throw _0x4c9bb0[_0x4b8282(0x2ad)];_0x11c76e=_0x4c9bb0['m1Prime'];}return{...a[_0x4b8282(0x2d0)][_0x4b8282(0x4b2)](_0x2843f3),'mutations':[_0x11c76e]};}[_0x2658a4(0x445)](_0xfbc7fc){const _0x2d361e=_0x2658a4,{unitID:_0x55bcd5}=_0xfbc7fc,_0x30d703=this[_0x2d361e(0x3c1)][_0x2d361e(0x376)](_0x55bcd5)[_0x2d361e(0x35e)](w['DocIMEInputManagerService']),{undoCache:_0x3fbf0f,redoCache:_0xfd0e4f}=_0x30d703[_0x2d361e(0x236)]();if(_0x3fbf0f[_0x2d361e(0x532)]===0x0||_0xfd0e4f['length']===0x0)return;const _0x2e5758=[],_0x491a0f=[];let _0x3fe305=a[_0x2d361e(0x2d0)][_0x2d361e(0x4b2)](_0xfbc7fc[_0x2d361e(0x1ad)][0x0]),_0x136dbb=a[_0x2d361e(0x2d0)][_0x2d361e(0x4b2)](_0xfbc7fc[_0x2d361e(0x1ad)][0x0]);for(let _0x41bfd3=_0x3fbf0f[_0x2d361e(0x532)]-0x1;_0x41bfd3>=0x0;_0x41bfd3--){const _0x3d7fd2={'id':_0x2d361e(0x4fa),'params':{..._0x3fbf0f[_0x41bfd3]}},_0xbca142={'id':_0x2d361e(0x4fa),'params':{..._0xfd0e4f[_0x41bfd3]}},_0x3a78b7=this[_0x2d361e(0x3c8)][_0x2d361e(0x317)](_0x3fe305,_0x3d7fd2,!0x1),_0x5971ee=this[_0x2d361e(0x3c8)][_0x2d361e(0x317)](_0x136dbb,_0xbca142,!0x1);if(_[_0x2d361e(0x1cf)](_0x3a78b7))throw _0x3a78b7[_0x2d361e(0x2ad)];if(_['isTransformMutationFailure'](_0x5971ee))throw _0x5971ee[_0x2d361e(0x2ad)];_0x2e5758[_0x2d361e(0x1cd)](_0x3a78b7[_0x2d361e(0x1b9)][_0x2d361e(0x415)]),_0x491a0f[_0x2d361e(0x1cd)](_0x5971ee[_0x2d361e(0x1b9)][_0x2d361e(0x415)]),_0x3fe305=_0x3a78b7[_0x2d361e(0x477)],_0x136dbb=_0x5971ee[_0x2d361e(0x477)];}_0x30d703[_0x2d361e(0x28e)]({'undoCache':_0x2e5758,'redoCache':_0x491a0f});}[_0x2658a4(0x32d)](_0x492b85){const _0x422ca6=_0x2658a4,{unitID:_0x5d01e2}=_0x492b85,_0x86e1be=this[_0x422ca6(0x3c1)]['getRenderById'](_0x5d01e2)[_0x422ca6(0x35e)](w['DocIMEInputManagerService']),_0x4bf5f2=_0x86e1be['getActiveRange']();if(_0x4bf5f2==null)return;const _0x43770d=[{'id':_0x422ca6(0x4fa),'params':{'unitId':_0x492b85['unitID'],'actions':null,'textRanges':[_0x4bf5f2]}}],_0x56fcb6=this[_0x422ca6(0x3c8)][_0x422ca6(0x554)](_0x492b85,_0x43770d);if(!_[_0x422ca6(0x580)](_0x56fcb6))throw _0x56fcb6[_0x422ca6(0x2ad)];const _0x373393=_0x56fcb6[_0x422ca6(0x1b9)][0x0][_0x422ca6(0x415)]['textRanges'];Array[_0x422ca6(0x2f6)](_0x373393)&&_0x373393[_0x422ca6(0x532)]&&_0x86e1be[_0x422ca6(0x2f4)](_0x373393[0x0]);}};Ie=ps([ye(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),ye(0x1,_['ITransformService']),ye(0x2,R['IRenderManagerService'])],Ie);var Cs=Object[_0x2658a4(0x30c)],Es=Object[_0x2658a4(0x222)],bs=(_0x57dfc7,_0x1b0cb9,_0x49d8ff,_0x57bf8f)=>{const _0x8e4570=_0x2658a4;for(var _0x3fdb3b=_0x57bf8f>0x1?void 0x0:_0x57bf8f?Es(_0x1b0cb9,_0x49d8ff):_0x1b0cb9,_0x24c7c4=_0x57dfc7[_0x8e4570(0x532)]-0x1,_0x4af859;_0x24c7c4>=0x0;_0x24c7c4--)(_0x4af859=_0x57dfc7[_0x24c7c4])&&(_0x3fdb3b=(_0x57bf8f?_0x4af859(_0x1b0cb9,_0x49d8ff,_0x3fdb3b):_0x4af859(_0x3fdb3b))||_0x3fdb3b);return _0x57bf8f&&_0x3fdb3b&&Cs(_0x1b0cb9,_0x49d8ff,_0x3fdb3b),_0x3fdb3b;},ae=(_0x542444,_0x5ea65b)=>(_0x206703,_0x1d34ee)=>_0x5ea65b(_0x206703,_0x1d34ee,_0x542444);exports[_0x2658a4(0x20c)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x1a5cfa,_0x278a8c,_0x3c674a,_0xeacc79,_0x300e1b){const _0x28d061=_0x2658a4;super(),d(this,_0x28d061(0x432),new Map()),d(this,_0x28d061(0x263),new Map()),d(this,_0x28d061(0x447),!0x1),(this[_0x28d061(0x519)]=_0x1a5cfa,this[_0x28d061(0x4dd)]=_0x278a8c,this['_beforeCloseService']=_0x3c674a,this['_localeService']=_0xeacc79,this[_0x28d061(0x2ac)]=_0x300e1b,this[_0x28d061(0x50a)]());}[_0x2658a4(0x1ba)](){const _0x1173b7=_0x2658a4;this[_0x1173b7(0x447)]=!0x0;}[_0x2658a4(0x268)](){const _0x1532b9=_0x2658a4;this[_0x1532b9(0x447)]=!0x1;}[_0x2658a4(0x3c3)](){const _0x2e899c=_0x2658a4;this[_0x2e899c(0x308)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x10b305){const _0x329f97=_0x2658a4;return this[_0x329f97(0x447)]?null:this['_localStorageService']['getItem'](Qe(_0x10b305));}async[_0x2658a4(0x260)](_0x139474,_0x4d2816){const _0x54480c=_0x2658a4;return!!this[_0x54480c(0x4dd)][_0x54480c(0x200)](_0x139474,_0x4d2816);}['updateOfflineData'](_0x26e8f0,_0x35de4f,_0x7e564c,_0x25fb15){const _0x9005b0=_0x2658a4,_0x48e75e=this[_0x9005b0(0x2ac)][_0x9005b0(0x2e7)](_0x26e8f0);this['_cachedData'][_0x9005b0(0x2ce)](_0x26e8f0,{'unitID':_0x26e8f0,'type':_0x35de4f,'awaitingChangeset':_0x7e564c,'mutations':_0x25fb15,'rev':_0x48e75e}),this['_saveTaskMap'][_0x9005b0(0x304)](_0x26e8f0)||this[_0x9005b0(0x210)](_0x26e8f0);}[_0x2658a4(0x210)](_0x1adc42){const _0x11f18c=_0x2658a4,_0x481cfc=this[_0x11f18c(0x215)]();_0x481cfc===0x0?this[_0x11f18c(0x3fc)](_0x1adc42):this[_0x11f18c(0x263)]['set'](_0x1adc42,setTimeout(()=>this[_0x11f18c(0x3fc)](_0x1adc42),_0x481cfc));}['_getSaveTimeout'](){const _0x1f8589=_0x2658a4;var _0x2ab160;return(_0x2ab160=this[_0x1f8589(0x519)]['getConfig'](ft))!=null?_0x2ab160:Zt;}[_0x2658a4(0x3fc)](_0x5db5ba){const _0x364aa9=_0x2658a4,_0x13f163=this[_0x364aa9(0x263)][_0x364aa9(0x3cc)](_0x5db5ba);return _0x13f163!==void 0x0&&window[_0x364aa9(0x587)](_0x13f163),this[_0x364aa9(0x4dd)][_0x364aa9(0x200)](Qe(_0x5db5ba),this[_0x364aa9(0x432)][_0x364aa9(0x3cc)](_0x5db5ba))[_0x364aa9(0x451)](()=>this['_saveTaskMap'][_0x364aa9(0x364)](_0x5db5ba));}async[_0x2658a4(0x308)](){const _0x5ece43=_0x2658a4,_0x1e29ce=[];this[_0x5ece43(0x263)]['forEach']((_0x6760ae,_0x3d5806)=>{const _0x396b41=_0x5ece43;window[_0x396b41(0x587)](_0x6760ae),_0x1e29ce[_0x396b41(0x4d7)](this['_saveCache'](_0x3d5806)[_0x396b41(0x451)](()=>{const _0x51d057=_0x396b41;this['_saveTaskMap'][_0x51d057(0x364)](_0x3d5806);}));}),await Promise[_0x5ece43(0x322)](_0x1e29ce);}[_0x2658a4(0x50a)](){const _0x23363b=_0x2658a4;this[_0x23363b(0x2f0)](this[_0x23363b(0x232)][_0x23363b(0x4c9)](()=>{const _0x412c3b=_0x23363b;if(this[_0x412c3b(0x263)][_0x412c3b(0x357)])return this[_0x412c3b(0x1a5)]['t'](_0x412c3b(0x4ec));}));}},exports[_0x2658a4(0x20c)]=bs([ae(0x0,a[_0x2658a4(0x35a)]),ae(0x1,a[_0x2658a4(0x2d6)]),ae(0x2,N[_0x2658a4(0x49c)]),ae(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),ae(0x4,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)]))],exports[_0x2658a4(0x20c)]);function Qe(_0x116a58){const _0x149124=_0x2658a4;return _0x149124(0x483)+_0x116a58;}var Ts=Object[_0x2658a4(0x30c)],Rs=Object[_0x2658a4(0x222)],Os=(_0x589a79,_0x13590e,_0x158f9c,_0x4950e0)=>{for(var _0x47897f=_0x4950e0>0x1?void 0x0:_0x4950e0?Rs(_0x13590e,_0x158f9c):_0x13590e,_0x58ab34=_0x589a79['length']-0x1,_0x58e90a;_0x58ab34>=0x0;_0x58ab34--)(_0x58e90a=_0x589a79[_0x58ab34])&&(_0x47897f=(_0x4950e0?_0x58e90a(_0x13590e,_0x158f9c,_0x47897f):_0x58e90a(_0x47897f))||_0x47897f);return _0x4950e0&&_0x47897f&&Ts(_0x13590e,_0x158f9c,_0x47897f),_0x47897f;},Ue=(_0x32b25b,_0x2a482d)=>(_0x4899c3,_0x31ea92)=>_0x2a482d(_0x4899c3,_0x31ea92,_0x32b25b);function Ds(_0x12ccd8){const _0x30a06c=_0x2658a4,{unitID:_0x28c6fa,mutations:_0xe0393b}=_0x12ccd8;return{'unitId':_0x28c6fa,'subUnitId':_0xe0393b[0x0][_0x30a06c(0x415)][_0x30a06c(0x28b)]};}let pe=class{constructor(_0xc225e8,_0x16ea7f,_0xa3e046){const _0x133f6d=_0x2658a4;this[_0x133f6d(0x584)]=_0xc225e8,this[_0x133f6d(0x3c8)]=_0x16ea7f,this[_0x133f6d(0x46f)]=_0xa3e046;}['transformSelections'](_0x2f9eec){const _0x3781c9=_0x2658a4;var _0x4eb66a,_0x267138,_0x4addcc,_0x1fa015;const _0x537fd6=this[_0x3781c9(0x584)]['get'](C[_0x3781c9(0x4e6)]),{unitId:_0x2c3c5a,subUnitId:_0x4ed138}=Ds(_0x2f9eec),_0x2ce545=_0x537fd6[_0x3781c9(0x55d)](_0x2c3c5a)['getCurrentSelections'](),_0x5e59a9=(_0x267138=(_0x4eb66a=this[_0x3781c9(0x46f)]['getUnit'](_0x2c3c5a))==null?void 0x0:_0x4eb66a['getActiveSheet']())==null?void 0x0:_0x267138[_0x3781c9(0x33b)]();if(_0x2ce545[_0x3781c9(0x532)]===0x0||!_0x2c3c5a||!_0x4ed138)return;const _0x23edb7=[{'id':C[_0x3781c9(0x51e)]['id'],'params':{'unitId':_0x2c3c5a,'subUnitId':_0x5e59a9,'selections':a[_0x3781c9(0x2d0)][_0x3781c9(0x4b2)](_0x2ce545)}}],_0x21425d=this['_transformService']['transformMutationsWithChangeset'](_0x2f9eec,_0x23edb7);if(!_[_0x3781c9(0x580)](_0x21425d))throw _0x21425d[_0x3781c9(0x2ad)];const _0x3f3177=(_0x1fa015=(_0x4addcc=_0x21425d[_0x3781c9(0x1b9)][0x0])==null?void 0x0:_0x4addcc['params'])==null?void 0x0:_0x1fa015[_0x3781c9(0x30e)];Array[_0x3781c9(0x2f6)](_0x3f3177)&&_0x3f3177['length']&&this[_0x3781c9(0x584)][_0x3781c9(0x3cc)](a[_0x3781c9(0x2db)])[_0x3781c9(0x4ea)](C[_0x3781c9(0x51e)]['id'],{'unitId':_0x2c3c5a,'subUnitId':_0x5e59a9,'selections':_0x3f3177});}};pe=Os([Ue(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Ue(0x1,_[_0x2658a4(0x334)]),Ue(0x2,a['IUniverInstanceService'])],pe);const Te=a['createIdentifier'](_0x2658a4(0x1a8));var bt=(_0x1cd6de=>(_0x1cd6de[_0x1cd6de['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2658a4(0x410),_0x1cd6de[_0x1cd6de[_0x2658a4(0x31d)]=0x1]=_0x2658a4(0x31d),_0x1cd6de))(bt||{});const et=0x7530,tt=_0x2658a4(0x56e);class ys extends a[_0x2658a4(0x1df)]{constructor(){const _0x1ce622=_0x2658a4;super(),d(this,_0x1ce622(0x42e),a[_0x1ce622(0x2d0)]['generateRandomId']()),d(this,'_selfUnitIDs',new Set()),d(this,_0x1ce622(0x538),new Map()),d(this,_0x1ce622(0x3b6),null),d(this,'_clearOtherTimers',new Map()),d(this,_0x1ce622(0x45a),new Map()),this['_init']();}[_0x2658a4(0x3c3)](){const _0x5e0013=_0x2658a4;super[_0x5e0013(0x3c3)](),this['_clearOtherTimers'][_0x5e0013(0x4ab)]((_0x102ca4,_0x8b5d01)=>this[_0x5e0013(0x24d)](_0x8b5d01)),this[_0x5e0013(0x3b6)]&&window['clearInterval'](this[_0x5e0013(0x3b6)]);}[_0x2658a4(0x3c9)](_0x380cf8){const _0x410100=_0x2658a4;return this[_0x410100(0x21f)](_0x380cf8)[_0x410100(0x348)](v[_0x410100(0x507)]());}[_0x2658a4(0x221)](_0xfd78b8){const _0x2df175=_0x2658a4;this[_0x2df175(0x5b3)]['size']===0x0&&this[_0x2df175(0x56d)](),this[_0x2df175(0x5b3)][_0x2df175(0x463)](_0xfd78b8),this[_0x2df175(0x2ea)]({'type':0x0,'memberID':this[_0x2df175(0x42e)],'unitIDs':[_0xfd78b8],'isForwarded':!0x1});}['disposeUnit'](_0x46f6cf){const _0x211c58=_0x2658a4;this[_0x211c58(0x5b3)][_0x211c58(0x364)](_0x46f6cf),this['_selfUnitIDs']['size']===0x0&&this[_0x211c58(0x3b6)]&&window[_0x211c58(0x3af)](this[_0x211c58(0x3b6)]);}['_init'](){const _0x266678=_0x2658a4;this['disposeWithMe'](a['toDisposable'](v[_0x266678(0x1cb)](window,'storage')[_0x266678(0x2a3)](_0x2b1a85=>{const _0x5f5c2d=_0x266678;if(_0x2b1a85[_0x5f5c2d(0x337)]!==tt||!_0x2b1a85[_0x5f5c2d(0x289)])return;const _0x21a040=JSON[_0x5f5c2d(0x529)](_0x2b1a85[_0x5f5c2d(0x289)]);this[_0x5f5c2d(0x502)](_0x21a040);}))),window[_0x266678(0x4ad)](_0x266678(0x283),()=>this['_send']({'type':0x1,'memberID':this[_0x266678(0x42e)],'unitIDs':Array[_0x266678(0x58c)](this[_0x266678(0x5b3)])}));}[_0x2658a4(0x502)](_0x3692be){const _0xdb8fd5=_0x2658a4;switch(_0x3692be[_0xdb8fd5(0x2aa)]){case 0x0:this['_handleJoinEvent'](_0x3692be);break;case 0x1:this['_handleLeaveEvent'](_0x3692be);break;case 0x2:this[_0xdb8fd5(0x2d7)](_0x3692be);break;}}['_handleJoinEvent'](_0x2a2ea9){const _0x123b53=_0x2658a4,{unitIDs:_0x3d067a,memberID:_0x4e16c3,isForwarded:_0x4c06fb}=_0x2a2ea9;_0x3d067a[_0x123b53(0x4ab)](_0x32b4c8=>{const _0x48a057=_0x123b53;if(!_0x4c06fb&&this[_0x48a057(0x538)]['has'](_0x32b4c8)&&this[_0x48a057(0x21f)](_0x32b4c8)['next'](0x1),!this['_unitOnClients']['has'](_0x32b4c8)||!this[_0x48a057(0x538)][_0x48a057(0x3cc)](_0x32b4c8)[_0x48a057(0x304)](_0x4e16c3)){const _0x1887aa=this['_unitOnClients'][_0x48a057(0x3cc)](_0x32b4c8)||new Set();_0x1887aa[_0x48a057(0x463)](_0x4e16c3),this[_0x48a057(0x538)]['set'](_0x32b4c8,_0x1887aa),this[_0x48a057(0x22f)](_0x4e16c3);}}),_0x4c06fb||this[_0x123b53(0x2ea)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x123b53(0x5b3)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x17f4d6){const _0x535ad0=_0x2658a4;this[_0x535ad0(0x24d)](_0x17f4d6);const _0x27171e=window[_0x535ad0(0x47d)](()=>{const _0x5040c9=_0x535ad0;this[_0x5040c9(0x538)][_0x5040c9(0x4ab)](_0xc0a361=>{const _0x4513b5=_0x5040c9;_0xc0a361[_0x4513b5(0x364)](_0x17f4d6);});},et*0x2);this[_0x535ad0(0x40e)][_0x535ad0(0x2ce)](_0x17f4d6,_0x27171e);}['_removeClearOtherTimer'](_0x2ed35d){const _0x38fb6d=_0x2658a4;if(this['_clearOtherTimers'][_0x38fb6d(0x304)](_0x2ed35d)){const _0x1293f2=this[_0x38fb6d(0x40e)][_0x38fb6d(0x3cc)](_0x2ed35d);_0x1293f2&&window[_0x38fb6d(0x587)](_0x1293f2),this[_0x38fb6d(0x40e)][_0x38fb6d(0x2ce)](_0x2ed35d,null);}}['_handleLeaveEvent'](_0x4ebb4b){const _0x3385cf=_0x2658a4,{memberID:_0x28c065,unitIDs:_0x5cd15f}=_0x4ebb4b;_0x5cd15f['forEach'](_0x10e505=>{const _0x8ec5d5=_0x5b2d;var _0x5b3253;const _0x2d967d=this[_0x8ec5d5(0x538)][_0x8ec5d5(0x3cc)](_0x10e505);_0x2d967d&&(_0x2d967d[_0x8ec5d5(0x364)](_0x28c065),(_0x5b3253=this[_0x8ec5d5(0x21f)](_0x10e505))==null||_0x5b3253[_0x8ec5d5(0x460)](_0x2d967d[_0x8ec5d5(0x357)]===0x0?0x0:0x1));}),this[_0x3385cf(0x24d)](_0x28c065);}['_handleHeartbeatEvent'](_0x1ef4a5){const _0x44a3c7=_0x2658a4;this[_0x44a3c7(0x22f)](_0x1ef4a5[_0x44a3c7(0x504)]);}[_0x2658a4(0x2ea)](_0x1be6e8){const _0x57f247=_0x2658a4;localStorage[_0x57f247(0x200)](tt,JSON[_0x57f247(0x427)](_0x1be6e8));}[_0x2658a4(0x56d)](){const _0x584668=_0x2658a4;this[_0x584668(0x3b6)]=window[_0x584668(0x2dd)](()=>{const _0x5c4a15=_0x584668;this['_send']({'type':0x2,'memberID':this[_0x5c4a15(0x42e)]});},et);}['_ensureSubject'](_0x3aa8f0){const _0x58147a=_0x2658a4;return this[_0x58147a(0x45a)]['has'](_0x3aa8f0)||this[_0x58147a(0x45a)][_0x58147a(0x2ce)](_0x3aa8f0,new v[(_0x58147a(0x58a))](0x0)),this[_0x58147a(0x45a)][_0x58147a(0x3cc)](_0x3aa8f0);}}function Tt(_0x2ea46f){const _0x7bf28a=_0x2658a4;let _0x3e5018='';for(const _0xfd7105 of _0x2ea46f){const {startOffset:_0x55947d,endOffset:_0x4c5d7a,isActive:_0xe3d507}=_0xfd7105;_0x3e5018[_0x7bf28a(0x532)]&&(_0x3e5018+=','),_0x3e5018+=_0x55947d+':'+_0x4c5d7a+':'+(_0xe3d507?'1':'0');}return _0x3e5018;}function Us(_0x410b54){const _0x1ab974=_0x2658a4,_0x829f9b=_0x410b54[_0x1ab974(0x350)](','),_0x2b6c73=[];for(const _0x3a3248 of _0x829f9b){const [_0x345dc9,_0x557458,_0x178bfa]=_0x3a3248[_0x1ab974(0x350)](':');_0x2b6c73[_0x1ab974(0x4d7)]({'startOffset':Number(_0x345dc9),'endOffset':Number(_0x557458),'collapsed':_0x345dc9===_0x557458,'isActive':_0x178bfa==='1'});}return _0x2b6c73['some'](_0x5669e2=>_0x5669e2[_0x1ab974(0x1ac)])||(_0x2b6c73[0x0]['isActive']=!0x0),_0x2b6c73;}class Ye extends a['RxDisposable']{constructor(){const _0x3ba970=_0x2658a4;super(...arguments),d(this,_0x3ba970(0x56f),new v[(_0x3ba970(0x58a))](null)),d(this,'collabCursorState$',this[_0x3ba970(0x56f)][_0x3ba970(0x329)]());}[_0x2658a4(0x2c3)](_0x256cff){const _0x2c5d93=_0x2658a4,{unitID:_0x1c5424,memberID:_0x128a2a,textRanges:_0xb00216}=_0x256cff,_0x2d2d58=Tt(_0xb00216),_0x35e80={'unitID':_0x1c5424,'memberID':_0x128a2a,'selection':_0x2d2d58};this[_0x2c5d93(0x56f)][_0x2c5d93(0x460)](_0x35e80);}}var Ps=Object[_0x2658a4(0x30c)],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x3a1b2a,_0x22502d,_0x54fb1f,_0x325ee0)=>{const _0x29459b=_0x2658a4;for(var _0x4e27f1=_0x325ee0>0x1?void 0x0:_0x325ee0?ws(_0x22502d,_0x54fb1f):_0x22502d,_0x550507=_0x3a1b2a[_0x29459b(0x532)]-0x1,_0x7b8126;_0x550507>=0x0;_0x550507--)(_0x7b8126=_0x3a1b2a[_0x550507])&&(_0x4e27f1=(_0x325ee0?_0x7b8126(_0x22502d,_0x54fb1f,_0x4e27f1):_0x7b8126(_0x4e27f1))||_0x4e27f1);return _0x325ee0&&_0x4e27f1&&Ps(_0x22502d,_0x54fb1f,_0x4e27f1),_0x4e27f1;},st=(_0xdbbec6,_0x2baadb)=>(_0x1e6e32,_0x3b0a65)=>_0x2baadb(_0x1e6e32,_0x3b0a65,_0xdbbec6);let Ce=class{constructor(_0x1a22e2,_0x283ab8){const _0x51354c=_0x2658a4;this['_injector']=_0x1a22e2,this[_0x51354c(0x3c8)]=_0x283ab8;}['transformSelections'](_0x2ab18a){const _0x22eb16=_0x2658a4;var _0x29ceba;const _0x1efc3c=this[_0x22eb16(0x584)]['get'](V[_0x22eb16(0x24c)]),_0x141db2=(_0x29ceba=_0x1efc3c[_0x22eb16(0x499)]())!=null?_0x29ceba:[];if(_0x141db2[_0x22eb16(0x532)]===0x0)return;const _0x12fc76=[{'id':_0x22eb16(0x4fa),'params':{'unitId':_0x2ab18a[_0x22eb16(0x35d)],'actions':null,'textRanges':_0x141db2}}],_0x2a8a2a=this['_transformService'][_0x22eb16(0x554)](_0x2ab18a,_0x12fc76);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2a8a2a))throw _0x2a8a2a['error'];const _0x962401=_0x2a8a2a[_0x22eb16(0x1b9)][0x0][_0x22eb16(0x415)][_0x22eb16(0x531)];Array['isArray'](_0x962401)&&_0x962401[_0x22eb16(0x532)]&&_0x1efc3c[_0x22eb16(0x471)](_0x962401,!0x1);}};Ce=Ms([st(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),st(0x1,_[_0x2658a4(0x334)])],Ce);const Ns=new Set([C[_0x2658a4(0x476)]['id']]);function it(_0xd33fb8,_0x2a7b4a,_0x555ff2,_0x3c77b6,_0x1af373){const _0x77fef0=_0x2658a4;var _0x49c7c3,_0x23cbe2,_0x35a437,_0x130843;const _0x1517fa=[];for(const _0x3f5e65 of _0xd33fb8)if(Ns[_0x77fef0(0x304)](_0x3f5e65['id'])){if(_0x1517fa['length']>0x0)break;_0x1517fa['push'](_0x3f5e65);break;}else _0x1517fa[_0x77fef0(0x4d7)](_0x3f5e65);const _0x2eb04e=(_0x23cbe2=(_0x49c7c3=_0x1af373['getCurrentUser']())==null?void 0x0:_0x49c7c3[_0x77fef0(0x273)])!=null?_0x23cbe2:_0x77fef0(0x27d),_0x54d4e1=(_0x130843=(_0x35a437=_0x1af373[_0x77fef0(0x2c8)]())==null?void 0x0:_0x35a437[_0x77fef0(0x504)])!=null?_0x130843:'unknown';return{'changeset':{'unitID':_0x2a7b4a,'type':_[_0x77fef0(0x32f)](_0x555ff2[_0x77fef0(0x2eb)](_0x2a7b4a)),'baseRev':_0x3c77b6[_0x77fef0(0x2e7)](_0x2a7b4a),'revision':0x0,'userID':_0x2eb04e,'memberID':_0x54d4e1,'mutations':_0x1517fa},'pendingMutations':_0xd33fb8[_0x77fef0(0x320)](_0x1517fa['length'])};}function Ls(_0x55ab5e,_0x3277ea,_0x539577,_0x13de9d,_0x94a816){const _0x2cd235=_0x2658a4;var _0x22584f,_0x43bd3e,_0x389a05,_0x20f7e2;const _0x342f45=[_0x55ab5e[_0x2cd235(0x20d)]((_0x23a624,_0x1baba0)=>{const _0xda962e=_0x2cd235;var _0x4b0359;const {id:_0x5ed3f2}=_0x23a624,{id:_0x91f859,type:_0x48cd5a}=_0x1baba0,_0x544551=(_0x4b0359=_0x23a624['params'])!=null?_0x4b0359:{'actions':null},_0x518bd9=_0x1baba0['params'];if(_0x5ed3f2&&_0x5ed3f2!==_0x91f859)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5ed3f2+_0xda962e(0x3a9)+_0x91f859+'.');return{..._0x23a624,'id':_0x91f859,'type':_0x48cd5a,'params':{'unitId':_0x518bd9['unitId'],'textRanges':_0x518bd9[_0xda962e(0x531)],'actions':a[_0xda962e(0x203)][_0xda962e(0x3b7)](_0x544551[_0xda962e(0x342)],_0x518bd9[_0xda962e(0x342)])}};},{})],_0x62a017=(_0x43bd3e=(_0x22584f=_0x94a816[_0x2cd235(0x2c8)]())==null?void 0x0:_0x22584f[_0x2cd235(0x273)])!=null?_0x43bd3e:_0x2cd235(0x27d),_0x10a2f0=(_0x20f7e2=(_0x389a05=_0x94a816['getCurrentUser']())==null?void 0x0:_0x389a05['memberID'])!=null?_0x20f7e2:'unknown';return{'changeset':{'unitID':_0x3277ea,'type':_[_0x2cd235(0x32f)](_0x539577[_0x2cd235(0x2eb)](_0x3277ea)),'baseRev':_0x13de9d[_0x2cd235(0x2e7)](_0x3277ea),'revision':0x0,'userID':_0x62a017,'memberID':_0x10a2f0,'mutations':_0x342f45},'pendingMutations':[]};}const As={'id':C['EmptyMutation']['id'],'type':a[_0x2658a4(0x444)][_0x2658a4(0x1a7)],'params':{}};var $s=Object['defineProperty'],js=Object['getOwnPropertyDescriptor'],z=(_0x599fbc,_0x5f3d25,_0x3e4007,_0x52e3c6)=>{const _0x367444=_0x2658a4;for(var _0x5555b5=_0x52e3c6>0x1?void 0x0:_0x52e3c6?js(_0x5f3d25,_0x3e4007):_0x5f3d25,_0x330cb8=_0x599fbc[_0x367444(0x532)]-0x1,_0x930d94;_0x330cb8>=0x0;_0x330cb8--)(_0x930d94=_0x599fbc[_0x330cb8])&&(_0x5555b5=(_0x52e3c6?_0x930d94(_0x5f3d25,_0x3e4007,_0x5555b5):_0x930d94(_0x5555b5))||_0x5555b5);return _0x52e3c6&&_0x5555b5&&$s(_0x5f3d25,_0x3e4007,_0x5555b5),_0x5555b5;},g=(_0x470b01,_0x1343a0)=>(_0x50e8a9,_0x244efe)=>_0x1343a0(_0x50e8a9,_0x244efe,_0x470b01),y=(_0x501aba=>(_0x501aba['NOT_COLLAB']=_0x2658a4(0x46d),_0x501aba['SYNCED']=_0x2658a4(0x47e),_0x501aba[_0x2658a4(0x2bd)]='pending',_0x501aba[_0x2658a4(0x1dd)]=_0x2658a4(0x2ed),_0x501aba[_0x2658a4(0x238)]=_0x2658a4(0x3a5),_0x501aba[_0x2658a4(0x5b4)]='fetch_missing',_0x501aba[_0x2658a4(0x31a)]=_0x2658a4(0x422),_0x501aba[_0x2658a4(0x1fc)]=_0x2658a4(0x37b),_0x501aba))(y||{});class J{constructor(_0xeefae4,_0x5bf75d,_0x1ebd5a,_0x53cbfe,_0x245001,_0x226a72,_0x727fe,_0x5256e7,_0x4ec093){const _0x431e62=_0x2658a4;d(this,_0x431e62(0x27e),null),d(this,_0x431e62(0x3ad),[]),(this[_0x431e62(0x35d)]=_0xeefae4,this['type']=_0x5bf75d,this[_0x431e62(0x394)]=_0x245001,this[_0x431e62(0x407)]=_0x226a72,this[_0x431e62(0x521)]=_0x727fe,this[_0x431e62(0x2ac)]=_0x5256e7,this[_0x431e62(0x36f)]=_0x4ec093,this['_awaitingChangeset']=_0x1ebd5a,this[_0x431e62(0x3ad)]=_0x53cbfe);}[_0x2658a4(0x4e3)](_0x2d8748){const _0x6554cf=_0x2658a4,_0x513b52=this[_0x6554cf(0x2ac)][_0x6554cf(0x2e7)](this[_0x6554cf(0x35d)]);return _0x2d8748['revision']>_0x513b52+0x1?(this[_0x6554cf(0x394)][_0x6554cf(0x25f)]({'from':_0x513b52,'to':_0x2d8748[_0x6554cf(0x4a8)]-0x1}),!0x0):!0x1;}[_0x2658a4(0x39c)](_0x59fdcb){const _0x22c459=_0x2658a4;this[_0x22c459(0x521)][_0x22c459(0x298)](this['unitID'],_0x59fdcb);}['_transformSelections'](_0x48118c){const _0x51639f=_0x2658a4;var _0x3a741a,_0x22821e;(_0x22821e=(_0x3a741a=this['_handler'])[_0x51639f(0x540)])==null||_0x22821e[_0x51639f(0x2cc)](_0x3a741a,_0x48118c);}['_transformIMECache'](_0x433a34){const _0xa68d50=_0x2658a4;var _0x3f3d44,_0x2dc758;return(_0x2dc758=(_0x3f3d44=this[_0xa68d50(0x394)])[_0xa68d50(0x1de)])==null?void 0x0:_0x2dc758[_0xa68d50(0x2cc)](_0x3f3d44,_0x433a34);}[_0x2658a4(0x1af)](_0x3adcd5){const _0x15d39c=_0x2658a4;var _0x2bc80c,_0x240f02,_0x278dda;return(_0x278dda=(_0x240f02=(_0x2bc80c=this[_0x15d39c(0x394)])[_0x15d39c(0x309)])==null?void 0x0:_0x240f02[_0x15d39c(0x2cc)](_0x2bc80c,_0x3adcd5))!=null?_0x278dda:_0x3adcd5;}[_0x2658a4(0x3dc)](_0x36bc24){const _0x47691c=_0x2658a4;var _0x122ce8,_0x939166;if(this['type']===$[_0x47691c(0x1e8)]){const {unitID:_0x2e77ef,mutations:_0x19fe27,memberID:_0x30aca5}=_0x36bc24,_0x7a547b=_0x19fe27[0x0][_0x47691c(0x415)][_0x47691c(0x531)];Array[_0x47691c(0x2f6)](_0x7a547b)&&_0x7a547b[_0x47691c(0x532)]>0x0&&((_0x939166=(_0x122ce8=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x939166[_0x47691c(0x2cc)](_0x122ce8,{'unitID':_0x2e77ef,'memberID':_0x30aca5,'textRanges':_0x7a547b}));}}[_0x2658a4(0x3e2)](){const _0x334f5a=_0x2658a4;this[_0x334f5a(0x36f)]['updateOfflineData'](this['unitID'],this['type'],this[_0x334f5a(0x27e)],this['_pendingMutations']);}[_0x2658a4(0x278)](){const _0x3ba8ee=_0x2658a4;return this['_revisionService'][_0x3ba8ee(0x2e7)](this[_0x3ba8ee(0x35d)]);}[_0x2658a4(0x2c0)](){const _0x30dc08=_0x2658a4;this['_revisionService'][_0x30dc08(0x492)](this[_0x30dc08(0x35d)]);}[_0x2658a4(0x5b5)](_0xe4ccb3){const _0x11c5f5=_0x2658a4;var _0x3dff7d;const _0x368eb6=this[_0x11c5f5(0x1af)](_0xe4ccb3),_0x1f2c43=a[_0x11c5f5(0x2c7)](_0x368eb6['mutations'],this[_0x11c5f5(0x407)],{'fromCollab':!0x0});if(!_0x1f2c43[_0x11c5f5(0x209)])throw _0x1f2c43[_0x11c5f5(0x2ad)]instanceof Error?_0x1f2c43[_0x11c5f5(0x2ad)]:new Error((_0x3dff7d=_0x1f2c43[_0x11c5f5(0x2ad)])!=null?_0x3dff7d:_0x11c5f5(0x459));this['_transformIMECache'](_0x368eb6),this[_0x11c5f5(0x39c)](_0xe4ccb3),this['_transformSelections'](_0x368eb6),this[_0x11c5f5(0x3dc)](_0x368eb6),this[_0x11c5f5(0x2c0)]();}}let ie=class extends J{constructor(_0xf8adb4,_0x421c68,_0x326669,_0x3543f1,_0x2cf4f0,_0x4fd109,_0x549322,_0x5b5ac9,_0x109b97,_0x553999){const _0x49fbc0=_0x2658a4;super(_0xf8adb4,_0x421c68,null,[],_0x326669,_0x5b5ac9,_0x549322,_0x3543f1,_0x2cf4f0),d(this,_0x49fbc0(0x533),_0x49fbc0(0x47e)),(this[_0x49fbc0(0x584)]=_0x4fd109,this[_0x49fbc0(0x3dd)]=_0x109b97,this[_0x49fbc0(0x3c8)]=_0x553999);}[_0x2658a4(0x40b)](_0x2b58d9){const _0xb0929c=_0x2658a4,_0x167811=this[_0xb0929c(0x584)][_0xb0929c(0x2d3)](x,this['unitID'],this[_0xb0929c(0x2aa)],[_0x2b58d9],this['_handler']);return _0x167811[_0xb0929c(0x211)](),_0x167811[_0xb0929c(0x3e2)](),_0x167811;}[_0x2658a4(0x230)](_0x36ac04){const _0x13f4d8=_0x2658a4;if(this[_0x13f4d8(0x4e3)](_0x36ac04))return this[_0x13f4d8(0x584)]['createInstance'](H,this['unitID'],this['type'],null,[],null,[_0x36ac04],this['_handler']);try{const _0x377748=this[_0x13f4d8(0x3c8)][_0x13f4d8(0x554)](_0x36ac04,[As]);if(_['isTransformMutationsWithChangesetSuccess'](_0x377748)){const {c1Prime:_0x20089a}=_0x377748;return this[_0x13f4d8(0x5b5)](_0x20089a),this;}throw _0x377748[_0x13f4d8(0x2ad)];}catch(_0x1fc40f){return this[_0x13f4d8(0x3dd)][_0x13f4d8(0x2ad)](_0x1fc40f),this['_onConflict'](!0x1);}}[_0x2658a4(0x498)](_0x53b57f){const _0x69b858=_0x2658a4;return this[_0x69b858(0x584)][_0x69b858(0x2d3)](F,this[_0x69b858(0x35d)],this['type'],null,[],this[_0x69b858(0x394)],_0x53b57f);}['onRemoteAck'](){const _0x31ab0f=_0x2658a4;throw new Error(_0x31ab0f(0x338));}[_0x2658a4(0x56b)](){const _0x790289=_0x2658a4;throw new Error(_0x790289(0x359));}[_0x2658a4(0x26a)](){const _0x3cb77c=_0x2658a4;return this[_0x3cb77c(0x584)][_0x3cb77c(0x2d3)](G,this[_0x3cb77c(0x35d)],this[_0x3cb77c(0x2aa)],null,[],this[_0x3cb77c(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x42d4ac=_0x2658a4;throw new Error(_0x42d4ac(0x57e));}[_0x2658a4(0x25b)](){const _0x141b49=_0x2658a4,_0x4c9fd7=this['_revisionService'][_0x141b49(0x2e7)](this['unitID']);return this[_0x141b49(0x394)][_0x141b49(0x25f)]({'from':_0x4c9fd7,'to':0x0}),this[_0x141b49(0x584)]['createInstance'](H,this[_0x141b49(0x35d)],this[_0x141b49(0x2aa)],null,[],null,[],this[_0x141b49(0x394)]);}};ie=z([g(0x3,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x4,a[_0x2658a4(0x349)](exports['LocalCacheService'])),g(0x5,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x511)]),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,_[_0x2658a4(0x334)])],ie);let x=class extends J{constructor(_0x2f561e,_0xe33e92,_0x7ac625,_0x3bb5cb,_0x3a8514,_0x47a98a,_0x26d6c5,_0x4d56fc,_0x4b855f,_0xe6c0e6,_0x3fec26,_0x4439bb,_0xd349c4,_0x18d049){const _0x35223c=_0x2658a4;super(_0x2f561e,_0xe33e92,null,_0x7ac625,_0x3bb5cb,_0xe6c0e6,_0x18d049,_0x47a98a,_0x26d6c5),d(this,'status',_0x35223c(0x3b4)),d(this,_0x35223c(0x31f),null),d(this,'_sendingTimer',null),(this['_injector']=_0x3a8514,this[_0x35223c(0x3f8)]=_0x4d56fc,this[_0x35223c(0x3dd)]=_0x4b855f,this[_0x35223c(0x519)]=_0x3fec26,this[_0x35223c(0x3c8)]=_0x4439bb,this[_0x35223c(0x446)]=_0xd349c4);}[_0x2658a4(0x40b)](_0x8b1060){const _0x48ca3c=_0x2658a4;return this[_0x48ca3c(0x3ad)][_0x48ca3c(0x4d7)](_0x8b1060),this[_0x48ca3c(0x3e2)](),this;}[_0x2658a4(0x230)](_0x980b76){const _0x1ad3a2=_0x2658a4;if(this['_checkMissing'](_0x980b76))return this[_0x1ad3a2(0x4b9)](),this['_injector'][_0x1ad3a2(0x2d3)](H,this['unitID'],this['type'],null,this[_0x1ad3a2(0x3ad)],null,[_0x980b76],this[_0x1ad3a2(0x394)]);try{const _0x5cfc87=this[_0x1ad3a2(0x3c8)][_0x1ad3a2(0x554)](_0x980b76,this[_0x1ad3a2(0x3ad)]);if(_[_0x1ad3a2(0x580)](_0x5cfc87)){const {c1Prime:_0x197288,m2Prime:_0x23ef50}=_0x5cfc87;this['_executeRemoteChangeset'](_0x197288);const _0x47e0c7=this[_0x1ad3a2(0x584)][_0x1ad3a2(0x2d3)](x,this[_0x1ad3a2(0x35d)],this['type'],_0x23ef50,this[_0x1ad3a2(0x394)]);return this[_0x1ad3a2(0x4b9)](),_0x47e0c7[_0x1ad3a2(0x211)](this['_scheduleTimestamp']?Math[_0x1ad3a2(0x4ce)](0x0,new Date()[_0x1ad3a2(0x1dc)]()-this['_scheduleTimestamp']):this[_0x1ad3a2(0x286)]()),_0x47e0c7;}throw _0x5cfc87[_0x1ad3a2(0x2ad)];}catch(_0xb821fc){return this[_0x1ad3a2(0x3dd)]['error'](_0xb821fc),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](){const _0x3e3b9c=_0x2658a4;throw new Error(_0x3e3b9c(0x509));}[_0x2658a4(0x56b)](){const _0x49c817=_0x2658a4;throw new Error(_0x49c817(0x3ec));}['toggleOffline'](){const _0x2a9954=_0x2658a4;return this[_0x2a9954(0x4b9)](),this[_0x2a9954(0x584)][_0x2a9954(0x2d3)](G,this[_0x2a9954(0x35d)],this[_0x2a9954(0x2aa)],null,this[_0x2a9954(0x3ad)],this[_0x2a9954(0x394)]);}[_0x2658a4(0x41e)](){return this;}['_schedule'](_0x140034){const _0x2148b6=_0x2658a4,_0x16099c=_0x140034!=null?_0x140034:this[_0x2148b6(0x286)]();this[_0x2148b6(0x31f)]=new Date()[_0x2148b6(0x1dc)](),this['_sendingTimer']=window[_0x2148b6(0x47d)](()=>{const _0x3dd9aa=_0x2148b6;this[_0x3dd9aa(0x4b9)]();let _0x2a201b=null;switch(this[_0x3dd9aa(0x2aa)]){case $[_0x3dd9aa(0x3d2)]:{_0x2a201b=it(this[_0x3dd9aa(0x3ad)],this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x446)],this[_0x3dd9aa(0x2ac)],this['_memberService']);break;}case $[_0x3dd9aa(0x1e8)]:{this['_pendingMutations'][_0x3dd9aa(0x4a6)](_0x58644b=>_0x58644b['id']===V[_0x3dd9aa(0x1d1)]['id'])?_0x2a201b=Ls(this['_pendingMutations'],this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x446)],this[_0x3dd9aa(0x2ac)],this[_0x3dd9aa(0x3f8)]):_0x2a201b=it(this[_0x3dd9aa(0x3ad)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x3dd9aa(0x3f8)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x3dd9aa(0x2aa)]+'\x20in\x20_schedule.');}const {changeset:_0x281cdb,pendingMutations:_0x36b051}=_0x2a201b;this[_0x3dd9aa(0x394)][_0x3dd9aa(0x3b2)](_0x281cdb);const _0x1d9fa4=_0x36b051[_0x3dd9aa(0x532)]?this[_0x3dd9aa(0x584)]['createInstance'](k,this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x2aa)],_0x281cdb,_0x36b051,this['_handler']):this[_0x3dd9aa(0x584)]['createInstance'](W,this[_0x3dd9aa(0x35d)],this['type'],_0x281cdb,this[_0x3dd9aa(0x394)]);_0x1d9fa4[_0x3dd9aa(0x3e2)](),this[_0x3dd9aa(0x394)][_0x3dd9aa(0x433)](this,_0x1d9fa4);},_0x16099c);}[_0x2658a4(0x286)](){const _0x4a8b7c=_0x2658a4;var _0x5c43da;const _0x50fc44=this[_0x4a8b7c(0x519)][_0x4a8b7c(0x455)](L);return(_0x5c43da=_0x50fc44==null?void 0x0:_0x50fc44[_0x4a8b7c(0x2e9)])!=null?_0x5c43da:Kt;}[_0x2658a4(0x2f3)](){const _0x14ce94=_0x2658a4;throw new Error(_0x14ce94(0x341));}[_0x2658a4(0x4b9)](){const _0x264220=_0x2658a4;this[_0x264220(0x4b1)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x264220(0x4b1)]=null);}[_0x2658a4(0x498)](_0x50afbe){const _0x39ca54=_0x2658a4;return this['_clearScheduledTask'](),this[_0x39ca54(0x584)]['createInstance'](F,this[_0x39ca54(0x35d)],this['type'],null,this[_0x39ca54(0x3ad)],this[_0x39ca54(0x394)],_0x50afbe);}};x=z([g(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x5,a['Inject'](_[_0x2658a4(0x449)])),g(0x6,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x7,a[_0x2658a4(0x349)](q)),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,a[_0x2658a4(0x2db)]),g(0xa,a[_0x2658a4(0x35a)]),g(0xb,_['ITransformService']),g(0xc,a[_0x2658a4(0x4e5)]),g(0xd,a[_0x2658a4(0x511)])],x);let W=class extends J{constructor(_0x1176bf,_0x82a471,_0x32f87e,_0x50aa0a,_0x133ff8,_0x1a7a8f,_0x7991d3,_0x459e76,_0x58340f,_0x55b121,_0x397a74){const _0x3fc1f9=_0x2658a4;super(_0x1176bf,_0x82a471,_0x32f87e,[],_0x50aa0a,_0x459e76,_0x397a74,_0x1a7a8f,_0x7991d3),d(this,_0x3fc1f9(0x533),'awaiting'),(this[_0x3fc1f9(0x584)]=_0x133ff8,this['_logService']=_0x58340f,this['_transformService']=_0x55b121);}['appendMutation'](_0x17715d){const _0x4da96d=_0x2658a4,_0x3e7d82=this[_0x4da96d(0x584)][_0x4da96d(0x2d3)](k,this[_0x4da96d(0x35d)],this[_0x4da96d(0x2aa)],this[_0x4da96d(0x27e)],[_0x17715d],this['_handler']);return _0x3e7d82['_updateLocalCache'](),_0x3e7d82;}[_0x2658a4(0x230)](_0x3eebf5){const _0x4dda24=_0x2658a4;if(this[_0x4dda24(0x4e3)](_0x3eebf5))return this[_0x4dda24(0x584)][_0x4dda24(0x2d3)](H,this['unitID'],this[_0x4dda24(0x2aa)],this[_0x4dda24(0x27e)],[],null,[_0x3eebf5],this[_0x4dda24(0x394)]);try{const _0x459f2d=this[_0x4dda24(0x3c8)][_0x4dda24(0x340)]([_0x3eebf5],[this[_0x4dda24(0x27e)]],!0x1);if(_[_0x4dda24(0x395)](_0x459f2d)){const {c1Prime:_0x10b6ec,c2Prime:_0x137dcc}=_0x459f2d;this[_0x4dda24(0x5b5)](_0x10b6ec[0x0]),_0x137dcc[0x0]['baseRev']=this[_0x4dda24(0x278)]();const _0xcbd318=this[_0x4dda24(0x584)][_0x4dda24(0x2d3)](W,this[_0x4dda24(0x35d)],this['type'],_0x137dcc[0x0],this['_handler']);return _0xcbd318[_0x4dda24(0x3e2)](),_0xcbd318;}return this['_onConflict'](!0x1);}catch(_0xb3f935){return this[_0x4dda24(0x3dd)][_0x4dda24(0x2ad)](_0xb3f935),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](_0x4b4ec2){const _0xfbe615=_0x2658a4,_0x4bed34=this[_0xfbe615(0x2ac)]['getCurrentRevOfUnit'](this[_0xfbe615(0x35d)]);if(_0x4b4ec2[_0xfbe615(0x4a8)]<_0x4bed34-0x1)return this;if(this[_0xfbe615(0x4e3)](_0x4b4ec2))return this[_0xfbe615(0x584)][_0xfbe615(0x2d3)](H,this[_0xfbe615(0x35d)],this[_0xfbe615(0x2aa)],null,[],this[_0xfbe615(0x27e)],[],this['_handler']);this[_0xfbe615(0x2c0)]();const _0x24223b=this['_injector']['createInstance'](ie,this[_0xfbe615(0x35d)],this[_0xfbe615(0x2aa)],this[_0xfbe615(0x394)]);return _0x24223b[_0xfbe615(0x3e2)](),_0x24223b;}[_0x2658a4(0x56b)](_0x56053b){const _0x2c480b=_0x2658a4;return this[_0x2c480b(0x498)](!!(_0x56053b!=null&&_0x56053b[_0x2c480b(0x474)]));}[_0x2658a4(0x26a)](){const _0x49dec8=_0x2658a4;return this[_0x49dec8(0x584)][_0x49dec8(0x2d3)](G,this[_0x49dec8(0x35d)],this[_0x49dec8(0x2aa)],this[_0x49dec8(0x27e)],[],this[_0x49dec8(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x930c49=_0x2658a4;this['_handler'][_0x930c49(0x3b2)](this[_0x930c49(0x27e)]);}[_0x2658a4(0x498)](_0x482779){const _0x52a005=_0x2658a4;return this[_0x52a005(0x584)][_0x52a005(0x2d3)](F,this['unitID'],this[_0x52a005(0x2aa)],this[_0x52a005(0x27e)],[],this[_0x52a005(0x394)],_0x482779);}};W=z([g(0x4,a['Inject'](a[_0x2658a4(0x1f0)])),g(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x6,a[_0x2658a4(0x349)](exports['LocalCacheService'])),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,_[_0x2658a4(0x334)]),g(0xa,a[_0x2658a4(0x511)])],W);let k=class extends J{constructor(_0x5db01d,_0x32c95f,_0x24544f,_0x51c5df,_0x2c0671,_0x4e418d,_0x149934,_0x15d80a,_0x4cf707,_0x2b1251,_0x499acb,_0x4e8298){const _0x144c1b=_0x2658a4;super(_0x5db01d,_0x32c95f,_0x24544f,_0x51c5df,_0x2c0671,_0x4cf707,_0x4e8298,_0x149934,_0x15d80a),d(this,_0x144c1b(0x533),'awaiting_with_pending'),(this[_0x144c1b(0x584)]=_0x4e418d,this['_logService']=_0x2b1251,this[_0x144c1b(0x3c8)]=_0x499acb);}[_0x2658a4(0x40b)](_0x1b1173){const _0x28fa7f=_0x2658a4;return this[_0x28fa7f(0x3ad)]['push'](_0x1b1173),this;}[_0x2658a4(0x230)](_0x141524){const _0x2db813=_0x2658a4;if(this['_checkMissing'](_0x141524))return this[_0x2db813(0x584)][_0x2db813(0x2d3)](H,this[_0x2db813(0x35d)],this[_0x2db813(0x2aa)],this[_0x2db813(0x27e)],this[_0x2db813(0x3ad)],null,[_0x141524],this[_0x2db813(0x394)]);try{const _0x39d6f4=this[_0x2db813(0x3c8)][_0x2db813(0x340)]([_0x141524],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x39d6f4)){const {c1Prime:_0x17f71c,c2Prime:_0x5b9374}=_0x39d6f4,_0x3c9a10=this[_0x2db813(0x3c8)][_0x2db813(0x554)](_0x17f71c[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x3c9a10)){const {c1Prime:_0x259558,m2Prime:_0x7b748}=_0x3c9a10;return this[_0x2db813(0x5b5)](_0x259558),_0x5b9374[0x0][_0x2db813(0x2a0)]=this[_0x2db813(0x278)](),this['_injector'][_0x2db813(0x2d3)](k,this[_0x2db813(0x35d)],this[_0x2db813(0x2aa)],_0x5b9374[0x0],_0x7b748,this[_0x2db813(0x394)]);}throw _0x3c9a10[_0x2db813(0x2ad)];}throw _0x39d6f4[_0x2db813(0x2ad)];}catch(_0x3d45d8){return this[_0x2db813(0x3dd)][_0x2db813(0x2ad)](_0x3d45d8),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](_0xc640d9){const _0x3db83e=_0x2658a4;if(this[_0x3db83e(0x4e3)](_0xc640d9))return this[_0x3db83e(0x584)][_0x3db83e(0x2d3)](H,this[_0x3db83e(0x35d)],this['type'],null,this[_0x3db83e(0x3ad)],this[_0x3db83e(0x27e)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x418bf0=this[_0x3db83e(0x584)][_0x3db83e(0x2d3)](x,this['unitID'],this['type'],this[_0x3db83e(0x3ad)],this[_0x3db83e(0x394)]);return _0x418bf0[_0x3db83e(0x211)](),_0x418bf0['_updateLocalCache'](),_0x418bf0;}['onRemoteRej'](_0x841bd3){const _0x3aee90=_0x2658a4;return this[_0x3aee90(0x498)](!!(_0x841bd3!=null&&_0x841bd3['isPermissionRej']));}[_0x2658a4(0x26a)](){const _0x83824b=_0x2658a4;return this[_0x83824b(0x584)]['createInstance'](G,this['unitID'],this[_0x83824b(0x2aa)],this['_awaitingChangeset'],this[_0x83824b(0x3ad)],this[_0x83824b(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x13b3c0=_0x2658a4;this[_0x13b3c0(0x394)][_0x13b3c0(0x3b2)](this[_0x13b3c0(0x27e)]);}[_0x2658a4(0x498)](_0x3c9925){const _0xc7e518=_0x2658a4;return this['_injector'][_0xc7e518(0x2d3)](F,this['unitID'],this[_0xc7e518(0x2aa)],null,this[_0xc7e518(0x3ad)],this[_0xc7e518(0x394)],_0x3c9925);}};k=z([g(0x5,a['Inject'](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x7,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x8,a[_0x2658a4(0x2db)]),g(0x9,a[_0x2658a4(0x2f2)]),g(0xa,_[_0x2658a4(0x334)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0x49cb92,_0x50f9de,_0xd05c96,_0x58396e,_0x3a1427,_0x2a4401=!0x1,_0x39dfe5,_0x186248,_0x1dadad,_0x1c1746,_0x18e55,_0x3d8059,_0x1ba866){const _0x36ebf4=_0x2658a4;super(_0x49cb92,_0x50f9de,_0xd05c96,_0x58396e,_0x3a1427,_0x186248,_0x1dadad,_0x18e55,_0x1c1746),d(this,_0x36ebf4(0x533),_0x36ebf4(0x422)),(this[_0x36ebf4(0x3c4)]=_0x2a4401,this[_0x36ebf4(0x34c)]=_0x39dfe5,this[_0x36ebf4(0x1a5)]=_0x3d8059,this[_0x36ebf4(0x2a1)]=_0x1ba866,this[_0x36ebf4(0x4fe)](),this[_0x36ebf4(0x423)](),this[_0x36ebf4(0x2be)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x2658a4(0x26a)](){return this;}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0xe30a23=_0x2658a4;throw new Error(_0xe30a23(0x33d));}[_0x2658a4(0x423)](){const _0x53bef1=_0x2658a4;this['_localCacheService'][_0x53bef1(0x37d)](this['unitID'],this[_0x53bef1(0x2aa)],null,[]);}['_showConflictNotification'](){const _0x4a99d0=_0x2658a4;this[_0x4a99d0(0x3c4)]?this[_0x4a99d0(0x2a1)][_0x4a99d0(0x50d)]({'title':this[_0x4a99d0(0x1a5)]['t']('permission.title'),'content':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x565)),'type':_0x4a99d0(0x2ad),'duration':0x0}):this[_0x4a99d0(0x2a1)]['show']({'title':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x526)),'content':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x3fb)),'type':_0x4a99d0(0x2ad),'duration':0x0});}[_0x2658a4(0x2be)](){const _0x526103=_0x2658a4;this[_0x526103(0x34c)][_0x526103(0x356)](new C[(_0x526103(0x541))](this['unitID'])['id'],!0x1);}};F=z([g(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x223)])),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x511)]),g(0x9,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0xa,a['Inject'](_[_0x2658a4(0x449)])),g(0xb,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),g(0xc,N['INotificationService'])],F);let G=class extends J{constructor(_0x42f5ee,_0x357963,_0x244430,_0x8705fd,_0x1558eb,_0x5e09ee,_0x5b2242,_0x398cdd,_0x2c5731,_0x4c033a){const _0x2bf5c7=_0x2658a4;super(_0x42f5ee,_0x357963,_0x244430,_0x8705fd,_0x1558eb,_0x2c5731,_0x4c033a,_0x5b2242,_0x398cdd),d(this,_0x2bf5c7(0x533),'offline'),this['_injector']=_0x5e09ee;}[_0x2658a4(0x40b)](_0x4b532d){const _0x320819=_0x2658a4;return this[_0x320819(0x3ad)][_0x320819(0x4d7)](_0x4b532d),this[_0x320819(0x3e2)](),this;}[_0x2658a4(0x230)](_0x2d20a9){const _0x33cd2a=_0x2658a4;throw new Error(_0x33cd2a(0x426));}[_0x2658a4(0x366)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x2658a4(0x26a)](){return this;}[_0x2658a4(0x41e)](){const _0x216656=_0x2658a4,{_injector:_0x1f36fc,_pendingMutations:_0x39eb6f,_awaitingChangeset:_0x193ff6,unitID:_0x47c6a4,_handler:_0x54fc91,type:_0x44c654}=this,_0x90ab0f=Rt(_0x1f36fc,_0x47c6a4,_0x44c654,_0x193ff6,_0x39eb6f,_0x54fc91);return _0x90ab0f instanceof x?_0x90ab0f['_schedule']():(_0x90ab0f instanceof k||_0x90ab0f instanceof W)&&_0x90ab0f[_0x216656(0x2f3)](),_0x90ab0f;}[_0x2658a4(0x2f3)](){const _0x52477a=_0x2658a4;throw new Error(_0x52477a(0x1b0));}};G=z([g(0x5,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x7,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x8,a[_0x2658a4(0x2db)]),g(0x9,a['IUndoRedoService'])],G);let H=class extends J{constructor(_0x3a20f1,_0x3d29c1,_0x59e43c,_0x5c4ace,_0x562e72,_0x28a9b9,_0x8e4cbf,_0x22773f,_0x254f74,_0xa5dfe3,_0x134954,_0x3c22eb,_0xa33efb,_0x53ed6f){const _0x4dca2c=_0x2658a4;super(_0x3a20f1,_0x3d29c1,_0x59e43c,_0x5c4ace,_0x8e4cbf,_0x3c22eb,_0xa33efb,_0x254f74,_0xa5dfe3),d(this,_0x4dca2c(0x533),_0x4dca2c(0x2c5)),(this[_0x4dca2c(0x1d4)]=_0x562e72,this[_0x4dca2c(0x45b)]=_0x28a9b9,this[_0x4dca2c(0x584)]=_0x22773f,this[_0x4dca2c(0x3dd)]=_0x134954,this[_0x4dca2c(0x3c8)]=_0x53ed6f);}[_0x2658a4(0x546)](_0x43a512){const _0x466cc1=_0x2658a4;try{const _0x4510a3=[..._0x43a512,...this[_0x466cc1(0x45b)]],_0x3a8081=[this[_0x466cc1(0x27e)]||this[_0x466cc1(0x1d4)]][_0x466cc1(0x2cd)](_0x5ca9b7=>!!_0x5ca9b7);let _0x12e329,_0x252212;if(_0x3a8081[_0x466cc1(0x532)]){const _0x4a623c=this[_0x466cc1(0x3c8)][_0x466cc1(0x340)](_0x4510a3,_0x3a8081,!0x1);if(!_[_0x466cc1(0x395)](_0x4a623c))throw _0x4a623c[_0x466cc1(0x2ad)];_0x12e329=_0x4a623c[_0x466cc1(0x202)],_0x252212=_0x4a623c[_0x466cc1(0x22d)];}else _0x12e329=_0x4510a3,_0x252212=[];let _0x247d4d=this['_pendingMutations'];_0x12e329[_0x466cc1(0x4ab)](_0x383f52=>{const _0x25366a=_0x466cc1;let _0x10185a;if(_0x247d4d['length']){const _0x985219=this[_0x25366a(0x3c8)][_0x25366a(0x554)](_0x383f52,_0x247d4d);if(!_['isTransformMutationsWithChangesetSuccess'](_0x985219))throw _0x985219[_0x25366a(0x2ad)];_0x10185a=_0x985219[_0x25366a(0x202)],_0x247d4d=_0x985219[_0x25366a(0x1b9)];}else _0x10185a=_0x383f52;this[_0x25366a(0x5b5)](_0x10185a);}),this['_acknowledgedAwaitingChangeset']&&this[_0x466cc1(0x2c0)](),this[_0x466cc1(0x27e)]&&_0x252212[_0x466cc1(0x532)]&&(_0x252212[0x0][_0x466cc1(0x2a0)]=this[_0x466cc1(0x278)]());let _0x3ee0ec;if(this[_0x466cc1(0x27e)]&&_0x247d4d['length']!==0x0)_0x3ee0ec=this[_0x466cc1(0x584)]['createInstance'](k,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],_0x252212[0x0],_0x247d4d,this[_0x466cc1(0x394)]);else{if(this['_awaitingChangeset']&&_0x247d4d[_0x466cc1(0x532)]===0x0)_0x252212[0x0]['baseRev']=this[_0x466cc1(0x278)](),_0x3ee0ec=this['_injector'][_0x466cc1(0x2d3)](W,this['unitID'],this[_0x466cc1(0x2aa)],_0x252212[0x0],this['_handler']);else{if(_0x247d4d['length']!==0x0){const _0x231e7e=this[_0x466cc1(0x584)][_0x466cc1(0x2d3)](x,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],_0x247d4d,this[_0x466cc1(0x394)]);_0x231e7e[_0x466cc1(0x211)](),_0x3ee0ec=_0x231e7e;}else _0x3ee0ec=this[_0x466cc1(0x584)]['createInstance'](ie,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],this[_0x466cc1(0x394)]);}}return _0x3ee0ec[_0x466cc1(0x3e2)](),_0x3ee0ec;}catch(_0x1b7ba9){return this[_0x466cc1(0x3dd)]['error']('[FetchMissState]',_0x466cc1(0x439),_0x1b7ba9),this[_0x466cc1(0x584)][_0x466cc1(0x2d3)](F,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],this['_awaitingChangeset'],this[_0x466cc1(0x3ad)],this[_0x466cc1(0x394)],!0x1);}}[_0x2658a4(0x2f3)](){const _0x14766a=_0x2658a4;throw new Error(_0x14766a(0x28f));}[_0x2658a4(0x40b)](_0x366bad){const _0x323e54=_0x2658a4;return this[_0x323e54(0x3ad)][_0x323e54(0x4d7)](_0x366bad),this;}[_0x2658a4(0x230)](_0x5f29f4){const _0x32d718=_0x2658a4;return this[_0x32d718(0x45b)]['push'](_0x5f29f4),this;}['onRemoteAck'](_0x4de320){const _0x581ca3=_0x2658a4;if(this[_0x581ca3(0x27e)])return this['_acknowledgedAwaitingChangeset']=this[_0x581ca3(0x27e)],this['_awaitingChangeset']=null,this;throw new Error(_0x581ca3(0x1e4));}['onRemoteRej'](_0x2a5d31){const _0x1305e2=_0x2658a4;return this[_0x1305e2(0x498)](!!(_0x2a5d31!=null&&_0x2a5d31[_0x1305e2(0x474)]));}['toggleOffline'](){const _0x51aee6=_0x2658a4;return this[_0x51aee6(0x584)][_0x51aee6(0x2d3)](G,this['unitID'],this[_0x51aee6(0x2aa)],this[_0x51aee6(0x27e)],this[_0x51aee6(0x3ad)],this[_0x51aee6(0x394)]);}[_0x2658a4(0x41e)](){return this;}['_onConflict'](_0x4c02e1){const _0x4e68fa=_0x2658a4;return this[_0x4e68fa(0x584)][_0x4e68fa(0x2d3)](F,this[_0x4e68fa(0x35d)],this[_0x4e68fa(0x2aa)],this[_0x4e68fa(0x27e)],this[_0x4e68fa(0x3ad)],this[_0x4e68fa(0x394)],_0x4c02e1);}};H=z([g(0x7,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x8,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x9,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0xa,a['ILogService']),g(0xb,a[_0x2658a4(0x2db)]),g(0xc,a['IUndoRedoService']),g(0xd,_['ITransformService'])],H);function Rt(_0x358e6b,_0x333f46,_0x205ced,_0x348b07,_0x8f9e63,_0x58287b){const _0x5e356f=_0x2658a4;return _0x348b07&&_0x8f9e63[_0x5e356f(0x532)]?_0x358e6b['createInstance'](k,_0x333f46,_0x205ced,_0x348b07,_0x8f9e63,_0x58287b):_0x348b07?_0x358e6b[_0x5e356f(0x2d3)](W,_0x333f46,_0x205ced,_0x348b07,_0x58287b):_0x8f9e63[_0x5e356f(0x532)]?_0x358e6b[_0x5e356f(0x2d3)](x,_0x333f46,_0x205ced,_0x8f9e63,_0x58287b):_0x358e6b['createInstance'](ie,_0x333f46,_0x205ced,_0x58287b);}var Hs=Object[_0x2658a4(0x30c)],xs=Object['getOwnPropertyDescriptor'],Ke=(_0x35f738,_0x52f22a,_0x133f39,_0x1e5ef5)=>{const _0x368a80=_0x2658a4;for(var _0x4f14e8=_0x1e5ef5>0x1?void 0x0:_0x1e5ef5?xs(_0x52f22a,_0x133f39):_0x52f22a,_0x1235fd=_0x35f738[_0x368a80(0x532)]-0x1,_0x6fb085;_0x1235fd>=0x0;_0x1235fd--)(_0x6fb085=_0x35f738[_0x1235fd])&&(_0x4f14e8=(_0x1e5ef5?_0x6fb085(_0x52f22a,_0x133f39,_0x4f14e8):_0x6fb085(_0x4f14e8))||_0x4f14e8);return _0x1e5ef5&&_0x4f14e8&&Hs(_0x52f22a,_0x133f39,_0x4f14e8),_0x4f14e8;},I=(_0x450be3,_0x14e425)=>(_0x2a9f0f,_0x2421f6)=>_0x14e425(_0x2a9f0f,_0x2421f6,_0x450be3);exports[_0x2658a4(0x2bf)]=class extends a[_0x2658a4(0x354)]{constructor(_0xb72e96,_0xfa966d,_0x10583c,_0x1ddc19,_0xc1f5ab,_0x586c63,_0x30cfbf,_0x5eb287,_0xb38af,_0x6a1afe,_0x12a668,_0x429827,_0xcf3dc0){const _0x38fd44=_0x2658a4;super(),d(this,_0x38fd44(0x54a),new v[(_0x38fd44(0x58a))](null)),d(this,_0x38fd44(0x50e),this[_0x38fd44(0x54a)][_0x38fd44(0x329)]()),d(this,_0x38fd44(0x1c8)),d(this,_0x38fd44(0x1c5),!0x1),d(this,_0x38fd44(0x3bd),this[_0x38fd44(0x50e)]['pipe'](v[_0x38fd44(0x1ec)](_0x575eda=>_0x575eda?_0x575eda[_0x38fd44(0x533)]:y[_0x38fd44(0x1fc)]),v[_0x38fd44(0x49a)](0x1))),d(this,_0x38fd44(0x489),!0x1),d(this,_0x38fd44(0x2a5),[]),(this[_0x38fd44(0x35d)]=_0xb72e96,this['session']=_0xfa966d,this[_0x38fd44(0x5ae)]=_0x10583c,this[_0x38fd44(0x584)]=_0x1ddc19,this[_0x38fd44(0x36f)]=_0xc1f5ab,this[_0x38fd44(0x421)]=_0x586c63,this['_localeService']=_0x30cfbf,this[_0x38fd44(0x2ac)]=_0x5eb287,this[_0x38fd44(0x3dd)]=_0xb38af,this[_0x38fd44(0x407)]=_0x6a1afe,this['_messageService']=_0x12a668,this['_permissionService']=_0x429827,this['_singleActiveUnitService']=_0xcf3dc0);}get[_0x2658a4(0x3ba)](){return this['_state'];}async[_0x2658a4(0x52f)](){const _0x26111b=_0x2658a4;if(this[_0x26111b(0x3ba)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x26111b(0x567)]();}[_0x2658a4(0x28a)](){const _0x395ac7=_0x2658a4;return this[_0x395ac7(0x1c5)]=!0x0,a[_0x395ac7(0x23f)](()=>{const _0x2c9129=_0x395ac7;this[_0x2c9129(0x1c5)]=!0x1,this[_0x2c9129(0x4d1)]();});}[_0x2658a4(0x3b8)](_0x26c368){const _0x3ae1e0=_0x2658a4;this[_0x3ae1e0(0x1c8)]=_0x26c368,this[_0x3ae1e0(0x54a)][_0x3ae1e0(0x460)](_0x26c368);}async[_0x2658a4(0x567)](){const _0x1ae789=_0x2658a4;var _0x407a96;this[_0x1ae789(0x3b8)](await this[_0x1ae789(0x457)]()),this[_0x1ae789(0x450)]&&((_0x407a96=this['_singleActiveUnitService'])==null||_0x407a96[_0x1ae789(0x221)](this['unitID']),this[_0x1ae789(0x2f0)](this[_0x1ae789(0x450)][_0x1ae789(0x3c9)](this[_0x1ae789(0x35d)])[_0x1ae789(0x2a3)](_0xcadb92=>{const _0x12ea55=_0x1ae789;this[_0x12ea55(0x3dd)]['debug']('[CollaborationEntity]',_0x12ea55(0x32a),_0xcadb92),_0xcadb92===bt[_0x12ea55(0x31d)]?(this[_0x12ea55(0x467)]['show']({'content':this[_0x12ea55(0x1a5)]['t'](_0x12ea55(0x47a)),'type':X['MessageType'][_0x12ea55(0x575)]}),this[_0x12ea55(0x34c)][_0x12ea55(0x356)](new C[(_0x12ea55(0x541))](this[_0x12ea55(0x35d)])['id'],!0x1)):this['_permissionService'][_0x12ea55(0x356)](new C[(_0x12ea55(0x541))](this[_0x12ea55(0x35d)])['id'],!0x0);})));let _0x451384=!0x1;return this['disposeWithMe'](this[_0x1ae789(0x380)]['sessionStatus$'][_0x1ae789(0x2a3)](_0x3f0830=>{const _0x55a8f4=_0x1ae789;_0x3f0830===j['ONLINE']?this[_0x55a8f4(0x4c3)](_0x451384):_0x3f0830===j[_0x55a8f4(0x1fc)]&&(_0x451384=!0x0,this[_0x55a8f4(0x54c)]());})),this[_0x1ae789(0x2f0)](this[_0x1ae789(0x380)]['event$']['subscribe'](_0x4882cb=>{const _0x2789c1=_0x1ae789;try{switch(_0x4882cb[_0x2789c1(0x44e)]){case _[_0x2789c1(0x2d5)][_0x2789c1(0x54f)]:{this[_0x2789c1(0x3f4)](_[_0x2789c1(0x24f)](_0x4882cb[_0x2789c1(0x46e)]));break;}case _[_0x2789c1(0x2d5)][_0x2789c1(0x593)]:{this[_0x2789c1(0x2d4)](_0x4882cb[_0x2789c1(0x46e)]);break;}case _['CollaborationEvent'][_0x2789c1(0x288)]:{this['_onRemoteRejected']();break;}case _['CollaborationEvent'][_0x2789c1(0x32b)]:{this[_0x2789c1(0x212)](_0x4882cb['data'][_0x2789c1(0x528)][_0x2789c1(0x1ec)](_0xd5f7b8=>_[_0x2789c1(0x24f)](_0xd5f7b8)));break;}case _[_0x2789c1(0x2d5)][_0x2789c1(0x245)]:this[_0x2789c1(0x3a7)]({'isPermissionRej':!0x0});}}catch(_0x34a9cb){throw console[_0x2789c1(0x2ad)](_0x2789c1(0x277),_0x34a9cb),_0x34a9cb;}})),this['_state'];}['_unlockTransition'](){const _0x1e9b55=_0x2658a4;this[_0x1e9b55(0x489)]=!0x1;}[_0x2658a4(0x1c2)](){const _0x5355f0=_0x2658a4;if(this[_0x5355f0(0x489)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x5355f0(0x489)]=!0x0;}[_0x2658a4(0x2d1)](_0x37116e){const _0x516fd5=_0x2658a4;this[_0x516fd5(0x1c2)](),this['_updateState'](this['_state'][_0x516fd5(0x40b)](_0x37116e)),this['_unlockTransition']();}[_0x2658a4(0x3f4)](_0x3397b3){const _0x13ad5=_0x2658a4;if(!(_0x3397b3[_0x13ad5(0x4a8)]<=this[_0x13ad5(0x2ac)][_0x13ad5(0x2e7)](this[_0x13ad5(0x35d)]))){if(this['_collaborationPaused']){this[_0x13ad5(0x2a5)]['push'](_0x3397b3);return;}this[_0x13ad5(0x1b8)](_0x3397b3);}}[_0x2658a4(0x4d1)](){const _0x29c23d=_0x2658a4;this[_0x29c23d(0x2a5)][_0x29c23d(0x4ab)](_0x39d122=>this[_0x29c23d(0x1b8)](_0x39d122)),this[_0x29c23d(0x2a5)]=[];}[_0x2658a4(0x1b8)](_0x4f21fc){const _0x395e98=_0x2658a4,_0x2c51dc=this['_compressMutationService'][_0x395e98(0x506)][_0x395e98(0x1e2)](this[_0x395e98(0x421)]['interceptor'][_0x395e98(0x2c9)]()[_0x395e98(0x1d2)])(_0x4f21fc[_0x395e98(0x1ad)],null)||_0x4f21fc[_0x395e98(0x1ad)],_0x4f804b={..._0x4f21fc,'mutations':_0x2c51dc};this[_0x395e98(0x1c2)](),this[_0x395e98(0x3b8)](this[_0x395e98(0x1c8)]['onRemoteChangeset'](_0x4f804b)),this[_0x395e98(0x1ff)]();}[_0x2658a4(0x2d4)](_0x5209be){const _0x480043=_0x2658a4;this[_0x480043(0x1c2)](),this[_0x480043(0x3b8)](this['_state'][_0x480043(0x366)](_0x5209be)),this[_0x480043(0x1ff)]();}[_0x2658a4(0x3a7)](_0x2cf35c){const _0x37d8f8=_0x2658a4;this[_0x37d8f8(0x1c2)](),this[_0x37d8f8(0x3b8)](this[_0x37d8f8(0x1c8)]['onRemoteRej'](_0x2cf35c)),this[_0x37d8f8(0x1ff)]();}[_0x2658a4(0x212)](_0xa80be5){const _0x36fec5=_0x2658a4;if(!(this[_0x36fec5(0x1c8)]instanceof H))throw new TypeError(_0x36fec5(0x41f));const _0x1928ee=_0xa80be5[_0x36fec5(0x1ec)](_0x2b4913=>{const _0x57520a=_0x36fec5,_0xe0882a=this[_0x57520a(0x421)][_0x57520a(0x506)]['fetchThroughInterceptors'](this[_0x57520a(0x421)][_0x57520a(0x506)][_0x57520a(0x2c9)]()[_0x57520a(0x1d2)])(_0x2b4913[_0x57520a(0x1ad)],null)||_0x2b4913[_0x57520a(0x1ad)];return{..._0x2b4913,'mutations':_0xe0882a};});this[_0x36fec5(0x1c2)](),this[_0x36fec5(0x3b8)](this[_0x36fec5(0x1c8)][_0x36fec5(0x546)](_0x1928ee)),this[_0x36fec5(0x1ff)]();}['_toggleOffline'](){const _0x5914f2=_0x2658a4;this[_0x5914f2(0x1c2)](),this[_0x5914f2(0x3b8)](this['_state'][_0x5914f2(0x26a)]()),this['_unlockTransition']();}[_0x2658a4(0x4c3)](_0x19ee08=!0x1){const _0x642958=_0x2658a4;this[_0x642958(0x1c2)](),this[_0x642958(0x3b8)](this['_state']['toggleOnline']()),this[_0x642958(0x1ff)]();const _0x59aff1=this[_0x642958(0x1c8)];_0x19ee08&&_0x59aff1 instanceof ie&&(this[_0x642958(0x1c2)](),this[_0x642958(0x3b8)](_0x59aff1[_0x642958(0x25b)]()),this[_0x642958(0x1ff)]());}async[_0x2658a4(0x457)](){return new Promise(_0x38208d=>{const _0x13f562=_0x5b2d;this[_0x13f562(0x380)][_0x13f562(0x596)][_0x13f562(0x348)](v['take'](0x1))[_0x13f562(0x2a3)](async _0x42188e=>{const _0x3525f4=_0x13f562;_0x38208d(await this[_0x3525f4(0x29b)](_0x42188e===j['ONLINE']));});});}['_createHandler'](){const _0x56dbfd=_0x2658a4,_0x33d806=this[_0x56dbfd(0x35d)];return{'onStateChange':(_0x224903,_0x379412)=>{const _0x35d0e3=_0x56dbfd;if(_0x224903!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x224903[_0x35d0e3(0x533)]+_0x35d0e3(0x25e)+_0x379412[_0x35d0e3(0x533)]+_0x35d0e3(0x2ff)+this[_0x35d0e3(0x1c8)][_0x35d0e3(0x533)]);this[_0x35d0e3(0x3b8)](_0x379412);},'onSendChangeset':_0x4003c0=>{const _0xef33b2=_0x56dbfd,_0x4690d2={'eventID':_[_0xef33b2(0x2d5)][_0xef33b2(0x265)],'data':{'unitID':_0x4003c0[_0xef33b2(0x35d)],'unitType':this['_type'],'changeset':_0x4003c0,'memberID':this[_0xef33b2(0x380)][_0xef33b2(0x408)]()}};this['session'][_0xef33b2(0x1f6)](_0x4690d2,this[_0xef33b2(0x35d)]);},'onMissingChangesets':({from:_0x619dad,to:_0x34dad4})=>{const _0x125389=_0x56dbfd;this[_0x125389(0x3dd)][_0x125389(0x4b0)]('[CollaborationEntity]',_0x125389(0x1eb)+_0x619dad+_0x125389(0x2fd)+_0x34dad4);const _0x2836e3={'eventID':_['CollaborationEvent'][_0x125389(0x589)],'data':{'unitID':_0x33d806,'unitType':this[_0x125389(0x5ae)],'from':_0x619dad,'to':_0x34dad4}};this[_0x125389(0x380)][_0x125389(0x1f6)](_0x2836e3,this[_0x125389(0x35d)]);}};}async[_0x2658a4(0x29b)](_0x1e74a4){const _0x1abdd5=_0x2658a4;var _0xdd7139,_0x444912;const _0x37f9e3=await this[_0x1abdd5(0x36f)]['loadOfflineData'](this[_0x1abdd5(0x35d)]),_0x7a66f5=(_0xdd7139=_0x37f9e3==null?void 0x0:_0x37f9e3[_0x1abdd5(0x1ad)])!=null?_0xdd7139:[],_0x44f1dd=(_0x444912=_0x37f9e3==null?void 0x0:_0x37f9e3[_0x1abdd5(0x280)])!=null?_0x444912:null,_0x41bb32=this['unitID'];try{this[_0x1abdd5(0x327)](_0x44f1dd,_0x7a66f5);}catch(_0x42dbe6){this[_0x1abdd5(0x3dd)][_0x1abdd5(0x2ad)](_0x42dbe6);}const _0x1daaf3=this[_0x1abdd5(0x1db)]();if(_0x1e74a4){const _0x1b88c6=Rt(this[_0x1abdd5(0x584)],_0x41bb32,this[_0x1abdd5(0x5ae)],_0x44f1dd,_0x7a66f5,_0x1daaf3);return _0x1b88c6 instanceof x?_0x1b88c6[_0x1abdd5(0x211)]():(_0x1b88c6 instanceof k||_0x1b88c6 instanceof W)&&_0x1b88c6[_0x1abdd5(0x2f3)](),_0x1b88c6;}return this['_injector'][_0x1abdd5(0x2d3)](G,_0x41bb32,this[_0x1abdd5(0x5ae)],_0x44f1dd,_0x7a66f5,_0x1daaf3);}[_0x2658a4(0x327)](_0x542623,_0x297fe9){const _0x515dfa=_0x2658a4;var _0x2da345,_0x165b87;const _0x305735=this[_0x515dfa(0x421)][_0x515dfa(0x506)][_0x515dfa(0x1e2)](this['_compressMutationService'][_0x515dfa(0x506)][_0x515dfa(0x2c9)]()['COMPRESS_MUTATION_APPLY']);(_0x2da345=_0x305735((_0x542623==null?void 0x0:_0x542623['mutations'])||[],null))==null||_0x2da345['forEach'](_0x3e7f9a=>this[_0x515dfa(0x407)]['executeCommand'](_0x3e7f9a['id'],_0x3e7f9a[_0x515dfa(0x415)])),(_0x165b87=_0x305735(_0x297fe9||[],null))==null||_0x165b87['forEach'](_0x15d34b=>this[_0x515dfa(0x407)][_0x515dfa(0x4ea)](_0x15d34b['id'],_0x15d34b[_0x515dfa(0x415)]));}},exports[_0x2658a4(0x2bf)]=Ke([I(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),I(0x4,a['Inject'](exports[_0x2658a4(0x20c)])),I(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x2fa)])),I(0x6,a['Inject'](a[_0x2658a4(0x3fa)])),I(0x7,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),I(0x8,a[_0x2658a4(0x2f2)]),I(0x9,a[_0x2658a4(0x2db)]),I(0xa,N[_0x2658a4(0x305)]),I(0xb,a[_0x2658a4(0x223)]),I(0xc,a[_0x2658a4(0x4a2)](Te))],exports[_0x2658a4(0x2bf)]),exports[_0x2658a4(0x4b5)]=class extends exports[_0x2658a4(0x2bf)]{constructor(_0x470711,_0x3eb479,_0x5e6e8c,_0x437dcb,_0x5d220,_0x20cd54,_0x7fd3fd,_0x3d806b,_0x5c32b4,_0x3e399c,_0x21c4dd,_0x17f668,_0x42a405,_0x46bc62,_0xc2f301,_0x4ad2ba,_0x10a2a6){const _0x2b760e=_0x2658a4;super(_0x470711,_0x5e6e8c,_0x3eb479,_0x437dcb,_0x5d220,_0x20cd54,_0x7fd3fd,_0x3d806b,_0x42a405,_0x46bc62,_0xc2f301,_0x4ad2ba,_0x10a2a6),this[_0x2b760e(0x35d)]=_0x470711,this[_0x2b760e(0x2aa)]=_0x3eb479,this[_0x2b760e(0x347)]=_0x5c32b4,this[_0x2b760e(0x5bb)]=_0x3e399c,this['_docTransformSelectionsService']=_0x21c4dd,this[_0x2b760e(0x1e5)]=_0x17f668;}[_0x2658a4(0x1db)](){const _0x48fe88=_0x2658a4,_0x4e89d4=super[_0x48fe88(0x1db)]();return _0x4e89d4[_0x48fe88(0x1de)]=_0x2b6f2b=>this[_0x48fe88(0x5bb)][_0x48fe88(0x29f)](_0x2b6f2b),_0x4e89d4['onTransformSelections']=_0x204aff=>this[_0x48fe88(0x54e)]['transformSelections'](_0x204aff),_0x4e89d4[_0x48fe88(0x231)]=_0x5f5a90=>this[_0x48fe88(0x1e5)][_0x48fe88(0x2c3)](_0x5f5a90),_0x4e89d4[_0x48fe88(0x309)]=_0x20cb77=>this[_0x48fe88(0x5bb)][_0x48fe88(0x429)](_0x20cb77),_0x4e89d4;}async[_0x2658a4(0x567)](){const _0x153787=_0x2658a4,_0x4a6644=await super[_0x153787(0x567)]();return this[_0x153787(0x2f0)](this['_commandService'][_0x153787(0x1bf)]((_0x4a49a6,_0x210f64)=>{const _0x1324aa=_0x153787;if(_0x4a49a6[_0x1324aa(0x2aa)]!==a[_0x1324aa(0x444)][_0x1324aa(0x1a7)]||_0x210f64!=null&&_0x210f64[_0x1324aa(0x1b4)]||_0x210f64!=null&&_0x210f64['onlyLocal'])return;const _0x2a849f=_0x4a49a6[_0x1324aa(0x415)];if((_0x2a849f==null?void 0x0:_0x2a849f[_0x1324aa(0x3e6)])!==this[_0x1324aa(0x35d)])return;let _0xa81037=_0x4a49a6;if(_0xa81037['id']===V['RichTextEditingMutation']['id']){const _0x326065=_0xa81037[_0x1324aa(0x415)];_0xa81037={'id':V[_0x1324aa(0x1d1)]['id'],'type':a[_0x1324aa(0x444)][_0x1324aa(0x1a7)],'params':{'unitId':_0x326065[_0x1324aa(0x3e6)],'actions':_0x326065['actions'],'textRanges':null}};}const _0x6c8346=this['_compressMutationService'][_0x1324aa(0x506)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x1324aa(0x506)][_0x1324aa(0x2c9)]()[_0x1324aa(0x29e)])([_0xa81037],null)||[_0xa81037];this['_onLocalMutation'](_0x6c8346[0x0]);})),_0x4a6644;}},exports[_0x2658a4(0x4b5)]=Ke([I(0x3,a['Inject'](a[_0x2658a4(0x1f0)])),I(0x4,a[_0x2658a4(0x349)](exports['LocalCacheService'])),I(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x2fa)])),I(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),I(0x7,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),I(0x8,a['Inject'](w[_0x2658a4(0x590)])),I(0x9,a[_0x2658a4(0x349)](Ie)),I(0xa,a['Inject'](Ce)),I(0xb,a[_0x2658a4(0x349)](Ye)),I(0xc,a[_0x2658a4(0x2f2)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x2658a4(0x223)]),I(0x10,a[_0x2658a4(0x4a2)](Te))],exports[_0x2658a4(0x4b5)]),exports['SheetCollaborationEntity']=class extends exports[_0x2658a4(0x2bf)]{constructor(_0x441877,_0x17d884,_0x519c28,_0x2b9499,_0x92a17d,_0x389c7c,_0x5655ca,_0x1569a0,_0x198bea,_0x32ff13,_0x26311a,_0x29ff4d,_0x4001ee,_0x273148){const _0x36bf77=_0x2658a4;super(_0x441877,_0x519c28,_0x17d884,_0x2b9499,_0x92a17d,_0x389c7c,_0x5655ca,_0x1569a0,_0x32ff13,_0x26311a,_0x29ff4d,_0x4001ee,_0x273148),this[_0x36bf77(0x35d)]=_0x441877,this['type']=_0x17d884,this[_0x36bf77(0x553)]=_0x198bea;}['_createHandler'](){const _0x5bcfa6=_0x2658a4,_0x2ccf52=super[_0x5bcfa6(0x1db)]();return _0x2ccf52['onTransformSelections']=_0x26dc5b=>this[_0x5bcfa6(0x553)][_0x5bcfa6(0x382)](_0x26dc5b),_0x2ccf52;}async['_init'](){const _0x2549df=_0x2658a4,_0x4a6115=await super[_0x2549df(0x567)]();return this[_0x2549df(0x2f0)](this[_0x2549df(0x407)][_0x2549df(0x1bf)]((_0x4b4e80,_0x200c88)=>{const _0x542430=_0x2549df;if(_0x4b4e80[_0x542430(0x2aa)]!==a[_0x542430(0x444)][_0x542430(0x1a7)]||_0x200c88!=null&&_0x200c88[_0x542430(0x1b4)]||_0x200c88!=null&&_0x200c88['onlyLocal'])return;const _0x42c6ab=_0x4b4e80[_0x542430(0x415)];if((_0x42c6ab==null?void 0x0:_0x42c6ab[_0x542430(0x3e6)])!==this[_0x542430(0x35d)])return;const _0x3c5b51=_0x4b4e80,_0x49450b=this[_0x542430(0x421)][_0x542430(0x506)][_0x542430(0x1e2)](this['_compressMutationService']['interceptor'][_0x542430(0x2c9)]()[_0x542430(0x29e)])([_0x3c5b51],null)||[_0x3c5b51];this[_0x542430(0x2d1)](_0x49450b[0x0]);})),_0x4a6115;}},exports[_0x2658a4(0x370)]=Ke([I(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),I(0x4,a['Inject'](exports[_0x2658a4(0x20c)])),I(0x5,a[_0x2658a4(0x349)](_['CompressMutationService'])),I(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),I(0x7,a['Inject'](_['RevisionService'])),I(0x8,a[_0x2658a4(0x349)](pe)),I(0x9,a[_0x2658a4(0x2f2)]),I(0xa,a[_0x2658a4(0x2db)]),I(0xb,N[_0x2658a4(0x305)]),I(0xc,a[_0x2658a4(0x223)]),I(0xd,a[_0x2658a4(0x4a2)](Te))],exports['SheetCollaborationEntity']);function _0x1540(){const _0x37f39c=['_transformUndoRedoStack','_univerInstanceService','_disabled','getCurrentUnitForType','RevisionService','resolve','name','collabSubmitChangesetUrl','csRejEvent','eventID','_refreshCollabCursors','_singleActiveUnitService','then','SNAPSHOT_INVALID_SNAPSHOT','_replaceFileID','&to=','getConfig','url(#off-line-single_clip0_910_343)','_createInitialState','toString','[CollaborationState]:\x20apply\x20error!','_unitStatus','_queuedRemoteChangesets','LICENSE_EXPORT_SIZE_EXCEEDED','getImage','getUnhiddenWorksheets','_cursors','next','INVALID_ARGUMENT','UNIVER_COLLABORATION_CLIENT_PLUGIN','add','@univerjs/sheets','_socket$','path','_messageService','subunit','_labelPosition','off-line-single_clip0_910_343','hasOwnProperty','YUUMI_UNABLE_LOAD_URL','not_collab','data','_instanceService','getColor','replaceTextRanges','append','8VHnWUE','isPermissionRej','getResourcesRequest','InsertSheetMutation','m1Prime','OffLineSingle','_initRequestHeader','collaboration.single-unit.warning','_clearUndo','10VuMPaI','setTimeout','synced','getFocusedUnit','FAIL','fillRule','HEARTBEAT_INTERVAL','unit-cache-','CollaborationStatus','_submitChangeset','getAncestorScale','updateCollaborator','unsubscribe','_transitionLocked','collab-text-range-','CHANGESET_REVISION_CONFILICT','[CollaborationUndoRedoService]','top','url(#$1','_initCloseConn','UNKNOWN_CMD','collabStatus.notCollab','incrementRevOfUnit','11090gmjVNo','onPointerMove$','/object/','?size=','_retryConnectingTimer','_onConflict','getDocRanges','shareReplay','isTransformMutationsWithChangesetFailure','IBeforeCloseService','registerOnClose','@univerjs/network','SheetSkeletonManagerService','_onCombEvent','_clearHeartbeatTimer','Optional','DocIMEInputManagerService','_onOffline','mergeOverrideWithDependencies','every','origin','revision','initWorkbookPermissionChange','[CollaborationSessionService]','forEach','xlink:href','addEventListener','getMember','RemoveRowCommandId','debug','_sendingTimer','deepClone','transform','auth.needGotoLoginAlert','DocCollaborationEntity','closeSession','SetWorksheetActivateCommand','apply','_clearScheduledTask','pluginName','saveImage','DesktopCollaborationStatusDisplayController','collab-text-anchor-','_loadDoc','3456045OEiAMF','onCommentUpdate','getValue','fill','_toggleOnline','joinEvent','gold400','CollaborationSessionService','_event$','_getScale','registerBeforeClose','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_MAX_UNITS_EXCEEDED','symbol','NOT_COLLAB','max','SnapshotServerOverHTTPService','_http','_exhaustRemoteChangesetQueue','_onCursorUpdate','onMouseMove','_onConnectionOpen','DependentOn','extend','push','SnapshotService','_getAPIPrefixPath','/allowed','fillText','_setupSubUnitSync','_localStorageService','originalMeta','Plugin','collaboration-client.config','uni.network.url-service','collaboration_new_changeset','_checkMissing','concat','IUniverInstanceService','SheetsSelectionsService','CommentService','@univerjs/docs','getCoordByCell','executeCommand','UNDEFINED','collaboration-client.offline-data-not-saved','commentUpdate$','propertyIsEnumerable','currentColor','?url=','_startTelemetryCollaborationNewChangeset','APPLY_REJECT','_themeService','_stopTelemetryCollaborationNewChangeset','parseChangesetToProtocol','saveSheetBlock','SNAPSHOT_URL_KEY','_getAnchorBounding','/unit/','doc.mutation.rich-text-editing','lineTo','_clearCollaborationTimeoutTimer','members','_showConflictNotification','_initUnitPermissionChange','CollaborationSocketService','delay','_handleEvent','removeMember','memberID','find','interceptor','distinctUntilChanged','_uiPartsService','[PendingState]:\x20received\x20acknowledgement.','_setupBeforeClosingHandler','snapshot','merge','show','state$','isInternalEditorID','RemoveColCommandId','IUndoRedoService','#fff','indexOf','_hovered','collabCursorState$','getSheetBlock','LIVESHARE_FETCH_OPERATIONS','_sendHeartbeat','_configService','_drawAnchor','serializeCombRequest','resize','_registerRenderDependencies','SetSelectionsOperation','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_shouldReportTelemetry','_undoRedoService','LOGIN_URL_KEY','INTERNAL_ERROR','assign','currentSkeleton$','conflict.title','stopTime','changesets','parse','ERROR_EXCEED_SIZE','_imageSourceCache','updatePermissionObjEvent','verdancy600','@univerjs-pro/collaboration','init','image/jpg','textRanges','length','status','setParam','useDependency','startColumn','close','_unitOnClients','_sessionStatus$','onload','deleteCollaborator','Unknown\x20user','_anchorDot','registerRefRange','_textBubble','onTransformSelections','WorkbookEditablePermission','defIds','liveShareOperation','MSG_FOR_ERROR','_socket','onMissedChangesetFetched','_getRedoStack','_sendHeartbeatTimer','PERMISSION_DENIED','_state$','connection\x20error','_toggleOffline','_colorIndex','_docTransformSelectionsService','NEW_CHANGESETS','uploadFileServerUrl','_sessions','startsWith','_sheetTransformSelectionsService','transformMutationsWithChangeset','_shapes','image/bmp','_handleHover','@univerjs/design','/-/object/list','InsertRowCommandId','tag','removeParam','getWorkbookSelections','COLORS','handleDeleteRangeMoveUp','/new_changes','&source=','_collabSessionService','socketService','updateMember','permission.content','@univerjs/core','_init','subscribeEvent','/role','requestParams','onRemoteRej','reject','_scheduleHeartbeat','ACTIVE_UNIT_EVENT_CHANNEL','_collabCursorState$','BuiltInUIPart','action','getSkeleton','_colorAssignService','UPDATE_CURSOR','Warning','dispose$','IAuthzIoService','SetDocZoomRatioOperation','IRemoteInstanceService','COLLAB_WEB_SOCKET_URL','ITelemetryService','getRangePointData','defs','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ImageSourceType','isTransformMutationsWithChangesetSuccess','ws://127.0.0.1:8000/universer-api/comb/connect','liveShareNewHost','_snapshotService','_injector','getParam','_initCommandExecutedListener','clearTimeout','jiqing500','FETCH_MISSING','BehaviorSubject','HTTPRequest','from','ranges','searchParams','CollaborationController','DocStateChangeManagerService','_updateURLWithCurrentState','setCurrentUser','CHANGESET_ACK','_drawTextRange','focused$','sessionStatus$','Rect','authzUrl','_name','getSheetObject','1583280mTJDJP','/universer-api/comb','enableAuthServer','_initModules','_initMergeInterceptor','_getSignURL','drawWith','univerjs-icon\x20univerjs-icon-','_onUserJoin','attrs','collabStatus.fetchMiss','transformStack\x20failed!','_collaborationController','getTypeOfUnitDisposed$','_getLoginPath','INGEST','LICENSE_IMPORT_SIZE_EXCEEDED','enableOfflineEditing','CONNECTOR_DATA_TOO_LARGE','_type','switchMap','3222sJJidd','sessionStatus','on-line-single_clip0_910_349','_selfUnitIDs','FETCH_MISS','_executeRemoteChangeset','height','saveChangeset','generateRandomId','createIdentifier','onStarting','_docTransformIMECacheService','ColorKit','transformByState','isValidRectRange','displayName','_localeService','currentTheme$','MUTATION','univer-pro.collaboration-client.single-active-unit-service','debounceTime','CollaborationSession','InsertColCommandId','isActive','mutations','setWaitCount','_transformRemoteChangesetByIMECache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','IURLService','@univerjs/drawing','HEARTBEAT_TIMEOUT','fromCollab','_clearTimeoutTimer','getOwnPropertySymbols','encodeURIComponent','_applyRemoteChangeset','m2Prime','disableLocalCache','sheetId','children','textEncoder','univer-pro.collaboration-client-socket-service','onCommandExecuted','_updateSubUnitFromURLParams','COMMENT_UPDATE','_lockTransition','OnLineSingle','_waitForHeartbeatResponse','_collaborationPaused','objectID','Tooltip','_state','univer-online-status-icon','getAttachHeader','fromEvent','idSuffix','unshift','onPointerLeave$','isTransformMutationFailure','arc','RichTextEditingMutation','COMPRESS_MUTATION_APPLY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_acknowledgedAwaitingChangeset','HEARTBEAT','USERS_ENTER','Vector2','prototype','socket$','addObject','_createHandler','getTime','AWAITING','onTransformIME','Disposable','_anchor','HttpExport','fetchThroughInterceptors','_undoStacks','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_docSyncEditingCollabCursorService','#FFF','concatMap','UNIVER_DOC','JOINING','_range','fetching\x20missing\x20changesets\x20from\x20','map','2296CmNPds','_throwTelemetryCollaborationNewChangeset','UNRECOGNIZED','Injector','_redoStacks','skeleton','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_urlService','serializeRangeWithSheet','send','catch','13953560hWoqME','Subject','_context','clipPath','OFFLINE','setShapeProps','_createSocket','_unlockTransition','setItem','3097712EniOwf','c1Prime','JSONX','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/universer-api/file/{fileID}/sign-url','debounce','WebSocketService','SNAPSHOT_SERVER_URL_KEY','result','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','putCollaborators','LocalCacheService','reduce','href','_onUserLeave','_scheduleSaving','_schedule','_onFetchMissResult','_HTTPService','getTypeOfUnitAdded$','_getSaveTimeout','roomMembers$','leaveEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOffsetConfig','LifecycleStages','list','CollaborationStatusDisplay','UNIVER_SLIDE','DataLoaderController','_ensureSubject','SessionStatus','editingUnit','getOwnPropertyDescriptor','IPermissionService','submit\x20changeset\x20error!','telemetry\x20info\x20is\x20not\x20initialized','close$','measureText','image/jpeg','color','getImageSourceCache','_startDocCollabCursor','values','c2Prime','_hideTimer','_scheduleClearOtherTimer','onRemoteChangeset','onSyncEditingCollabCursor','_beforeCloseService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_socketMessageSubscription','loadOfflineData','getUndoRedoMutationParamsCache','1em','AWAITING_WITH_PENDING','_telemetryInfo','RETRY_CONNECTING_MAX_COUNT','endRow','XHRHTTPImplementation','ERROR_IMAGE','create','toDisposable','LIVESHARE_OPERATION','UNAUTHENTICATED','json','code','BASE64','PERMISSION_REJ','encode','YUUMI_RATE_OVER_LIMIT','/resources','_substituteRedoStack','purple300','fromEventSubject','DocSelectionManagerService','_removeClearOtherTimer','joinRsp','parseProtocolChangeset','IUIPartsService','_document','combineLatest','getCollabCursors$','collabStatus.offline','socket\x20close','APPLY_REVISION_CONFILICT','/universer-api/authz','ISnapshotServerService','_listenToOfflineEvent','/collaborator','fetchMiss','updateCursorEvent','_transformStack','\x0aAfter:\x20','onMissingChangesets','saveOfflineData','VIEWPORT_KEY','handleIRemoveCol','_saveTaskMap','title','SUBMIT_CHANGESET','url(#on-line-single_clip0_910_349)','LIVESHARE_NEW_HOST','enableLocalCache','copyFileMeta','toggleOffline','url','_loadSheet','loginUrlKey','APPLY_PERMISSION_DENIED','bottom','COMPLETION_FINISHED','_listenToOnlineEvent','onPointerEnter$','userID','collabStatus.conflict','isEditing','div','Error\x20on\x20receiving\x20event','_getCurrentRevision','update','Shape','setConfig','_eventUnsubscribe','unknown','_awaitingChangeset','rev','awaitingChangeset','objectType','UUID','unload','_snapshotServerService','replace','_getSendChangesetTimeout','SEND_CHANGESET_TIMEOUT_KEY','CHANGESET_REJ','newValue','pauseCollaboration','subUnitId','width','handleDeleteRangeMoveLeft','setUndoRedoMutationParamsCache','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','text','workbook','_config','/fetchmissing?from=','getRelativeToViewportCoord','infoRsp','@univerjs/rpc','save\x20fail\x20reason\x20is\x20','transformUndoRedo','getDeserializedSheetBlock','forwardRef','_createInitialStateImpl','evenodd','visibilityState','COMPRESS_MUTATION_SEND','transformIMECache','baseRev','_notificationService','override','subscribe','put','_remoteChangesetQueue','UniverIcon','_updateLocalCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_httpService','type','entries','_revisionService','error','clear','YUUMI_SUBSCRIPTION_NOT_FOUND','/universer-api/oidc/authpage','engine','_scheduleCollaborationTimeoutTimer','_removeRoom','JOIN','toStringTag','YUUMI_URL_COL_OUT_OF_RANGE','collaborators','handleInsertCol','black','_onJoinRoomEvent','activeSheet$','cmd','PENDING','_disableEditing','CollaborationEntity','_incrementRevisionNumber','_updateStatus','post','syncEditingCollabCursor','getUnitOnRev','fetch_missing','HELLO','sequenceExecute','getCurrentUser','getInterceptPoints','_roomMembers$','MergeInterceptorFactory','call','filter','set','univer-online','Tools','_onLocalMutation','LICENSE_DISTRO_REJECTED','createInstance','_onRemoteACK','CollaborationEvent','ILocalStorageService','_handleHeartbeatEvent','SheetCollabCursorShape','/block/','RECV','ICommandService','_docSkeleton','setInterval','/rev/','loadDoc','image/png','_getDownloadEndpointURL','FileId','body','none','use','_startCollaboration','getCurrentRevOfUnit','roomInfos','sendChangesetTimeout','_send','getUnitType','DEFAULT_FILE_NAME','awaiting','_backgroundColor','UniverCollaborationClientPlugin','disposeWithMe','_entityInit$','ILogService','resend','setActiveRange','history','isArray','Undefined','objectActions','contains','CompressMutationService','SYNCED','save','\x20to\x20','UnitSnapshot','\x0aCurrent:\x20','_draw','_entities','patch','_status$','has','IMessageService','cursorInfo$','_collaborationTimeoutTimer','exhaustSavingTask','onTransformRemoteChangesetByIMECache','includes','_roomMembers','defineProperty','moveTo','selections','responseType','listCollaborators','cursorInfo','/universer-api/snapshot','UniverInstanceType','ThemeService','fillStyle','_session','transformMutation','restore','batchAllowed','CONFLICT','_sheetSkeletonManagerService','_render','OTHER_CLIENTS_EDITING','SheetPermissionInitController','_scheduleTimestamp','slice','_retryCount','all','_onRefRangeChange','_rescheduleHeartbeat','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','row','_replayCachedMutations','b64DecodeUnicode','asObservable','editing\x20status\x20changed\x20to','PSEUDO_FETCH_MISSING_RESULT','_tryReconnect','_transformPreviousActiveRange','_collabCursorController','mapDocumentTypeToUniverType','useRef','resourceIDs','_drawRectRange','range','ITransformService','_change$','_removeCollabCursors','key','[SyncedState]:\x20received\x20acknowledgement.','/-/object/-/batch_allowed','_commentService','getSheetId','_scene','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','round','rxjs/operators','transformChangesets','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','actions','message$','target','string','handleIRemoveRow','_docStateChangeManagerService','pipe','Inject','WebURLService','_getSheetObject','_permissionService','AuthzIoHttpService','visibilitychange','urlChange$','split','_getAPIPrefix','image/gif','UniverCollaborationPlugin','RxDisposable','unit','updatePermissionPoint','size','782097yZVLLl','[SyncedState]:\x20received\x20rejection.','IConfigService','createCollaborator','_telemetryService','unitID','with','TOO_MANY_REQUESTS','@univerjs-pro/license','_onCursorDelete','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','flatMap','delete','getUnitId','onRemoteAck','_commentUpdate$','headers','UNIVER_PROJECT','sheets','loadSheet','SetTextSelectionsOperation','requireSession','online','_localCacheService','SheetCollaborationEntity','addImageSourceCache','collab-rect-range-','_waitCount','getUniverSheetInstance','univer-online-status-title','getRenderById','TEXT_RANGE_LAYER_INDEX','routeKey','_assignedColors','_refRangeService','offline','_joinRoom','updateOfflineData','csAckEvent','/universer-api/stream/file/upload','session','reconnect','transformSelections','createSocket','RegularPolygon','_members','LIVESHARE_REQUEST_HOST','[DataLoaderController]','_updateCollabCursors','toRgbString','SHOULD_CLOSE_CONN','Starting','column','_getMergeRange','session.collaboration-timeout','red300','getCollabEntity$','collaboration-session-retry','_syncEditingCollabCursorService','_hover','_handler','isTransformChangesetsSuccess','ImageUploadStatusType','VIEW_MAIN','_cursorShapes','_getUploadFileURL','font','shouldCloseConn','_transformUndoredo','onlineStatus','event$','_candidateSocket','_collaborationSessionService','HEADER_MENU','fetchMissingChangesets','_substituteUndoStack','roomMembers','awaiting_with_pending','_timeoutTimer','_onRemoteRejected','POST','\x20-\x20','...','_socketService','_color','_pendingMutations','ONLINE','clearInterval','_getCtorByUniverType','takeUntil','onSendChangeset','USERS_LEAVE','pending','svg','_heartbeatTimer','compose','_updateState','clsx','state','downloadEndpointUrl','now','status$','_getUndoStack','min','collabStatus.syncing','_renderManagerService','Error','dispose','_isPermissionRej','_startSheetCollabCursor','AUTHZ_URL_KEY','_cursor','_transformService','getUnitStatus$','{fileID}','_decreaseWaiting','get','localeService','session.room-full','allowed','permissionRejEvent','registerRenderModule','UNIVER_SHEET','rxjs','@univerjs/engine-render','_getSnapshotAPIPrefix','_onMessage','ALREADY_EXISTS','ImageIoService','runRefRangeMutations','LEAVE','UnitEmbedded','_syncEditingCollabCursor','_logService','COLLAB_WEB_SOCKET_URL_KEY','startRow','_onRecvEvent','readAsDataURL','_updateLocalCache','src','pushState','onTransformChange$','unitId','_cursorInfo$','EffectRefRangId','className','_fetchMissChangesets','@univerjs/sheets-ui','[PendingState]:\x20received\x20rejection.','popstate','Module','handleMoveRange','open$','[UniverCollaborationClientPlugin]','hovered','_ws','_onRemoteChangeset','take','hide','retryConnectingInterval','_memberService','registerHTTPInterceptor','LocaleService','conflict.content','_saveCache','LIVESHARE_TERMINATE','_initStatusComponent','react','UNKNOWN_CODE','_clearRedo','UserManagerService','deserializeToCombResponse','0\x200\x2017\x2016','_socketReady','MessageType','_commandService','getMemberID','Univer','random','appendMutation','_unitID','_lastPointer','_clearOtherTimers','throttleTime','NO_OTHER_CLIENTS_EDITING','_initEventListeners','_userManagerService','_tryEnsureSocket','HTTPService','params','socket\x20open.','replaceState','triggerDblclick','IImageIoService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onConnectionFailed','DisposableCollection','createElement','toggleOnline','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','mapTo','_compressMutationService','conflict','_clearLocalCache','getSheetBySheetId','colorChannel1','[OfflineState]:\x20received\x20changeset.','stringify','_initResize','transformRemoteChangeset','IRenderManagerService','UNIVER_UNKNOWN','OnLifecycle','icon','_id','_docSkeletonManagerService','assignAColorForMemberID','complete','_cachedData','onStateChange','onlineStatusIcon','handleInsertRow','Workbook','UPDATE_PERMISSION_OBJ','handleInsertRangeMoveRight','failed\x20to\x20apply\x20missed\x20changesets!','getVpScrollXYInfoByPosToVp','ICollaborationSocketService','setAlpha','HttpImport','Ready','NOT_FOUND','_online','TRANSFORM_CHANGE_OBSERVABLE_TYPE','location','error$','CommandType'];_0x1540=function(){return _0x37f39c;};return _0x1540();}var ks=Object['defineProperty'],Bs=Object[_0x2658a4(0x222)],Vs=(_0x237478,_0x302e6c,_0x14cd67,_0x5e7be3)=>{const _0x443095=_0x2658a4;for(var _0x10c879=_0x5e7be3>0x1?void 0x0:_0x5e7be3?Bs(_0x302e6c,_0x14cd67):_0x302e6c,_0x5aaacc=_0x237478[_0x443095(0x532)]-0x1,_0x30df32;_0x5aaacc>=0x0;_0x5aaacc--)(_0x30df32=_0x237478[_0x5aaacc])&&(_0x10c879=(_0x5e7be3?_0x30df32(_0x302e6c,_0x14cd67,_0x10c879):_0x30df32(_0x10c879))||_0x10c879);return _0x5e7be3&&_0x10c879&&ks(_0x302e6c,_0x14cd67,_0x10c879),_0x10c879;},Pe=(_0x1454bc,_0x544683)=>(_0x2a0def,_0x3c0742)=>_0x544683(_0x2a0def,_0x3c0742,_0x1454bc);exports[_0x2658a4(0x58f)]=class extends a[_0x2658a4(0x354)]{constructor(_0x135d27,_0x2064dd,_0x487bd2){const _0x1e6b8b=_0x2658a4;super(),d(this,_0x1e6b8b(0x301),new Map()),d(this,_0x1e6b8b(0x2f1),new v['Subject']()),(this[_0x1e6b8b(0x584)]=_0x135d27,this[_0x1e6b8b(0x562)]=_0x2064dd,this[_0x1e6b8b(0x446)]=_0x487bd2,this['_init']());}[_0x2658a4(0x3c3)](){const _0x20375f=_0x2658a4;super[_0x20375f(0x3c3)](),this[_0x20375f(0x301)]['forEach'](_0x165b8c=>_0x165b8c['dispose']()),this[_0x20375f(0x301)]['clear']();}['getCollabEntity'](_0x535092){const _0x17bc9c=_0x2658a4;var _0x28d25e;return(_0x28d25e=this[_0x17bc9c(0x301)][_0x17bc9c(0x3cc)](_0x535092))!=null?_0x28d25e:null;}[_0x2658a4(0x390)](_0x7fbcbb){const _0x7d3486=_0x2658a4,_0x12238a=this['getCollabEntity'](_0x7fbcbb);return _0x12238a?v['of'](_0x12238a):this['_entityInit$'][_0x7d3486(0x348)](E[_0x7d3486(0x2cd)](_0x1bfefd=>_0x1bfefd[_0x7d3486(0x35d)]===_0x7fbcbb));}[_0x2658a4(0x567)](){const _0x526462=_0x2658a4;this[_0x526462(0x446)][_0x526462(0x214)](a[_0x526462(0x313)][_0x526462(0x3d2)])['pipe'](v['takeUntil'](this['dispose$']),E[_0x526462(0x501)](0x10))[_0x526462(0x2a3)](async _0x74bb46=>{const _0x25dcd5=_0x526462,_0x405393=_0x74bb46['getUnitId'](),_0x2f0bd1=await this[_0x25dcd5(0x2e6)](_0x405393,$[_0x25dcd5(0x3d2)]);this['_entities'][_0x25dcd5(0x2ce)](_0x405393,_0x2f0bd1);}),this['_univerInstanceService'][_0x526462(0x214)](a[_0x526462(0x313)][_0x526462(0x1e8)])[_0x526462(0x348)](v[_0x526462(0x3b1)](this[_0x526462(0x576)]),E['delay'](0x10))[_0x526462(0x348)](E[_0x526462(0x2cd)](_0x12dd6b=>!_0x12dd6b['getUnitId']()[_0x526462(0x552)]('__')))[_0x526462(0x2a3)](async _0x58b9e0=>{const _0x4704e3=_0x526462,_0x15fc33=_0x58b9e0['getUnitId'](),_0xae9df5=await this[_0x4704e3(0x2e6)](_0x15fc33,$[_0x4704e3(0x1e8)]);this[_0x4704e3(0x301)][_0x4704e3(0x2ce)](_0x15fc33,_0xae9df5);}),v[_0x526462(0x50c)](this['_univerInstanceService'][_0x526462(0x5a8)](a[_0x526462(0x313)]['UNIVER_SHEET']),this[_0x526462(0x446)][_0x526462(0x5a8)](a[_0x526462(0x313)]['UNIVER_DOC']))[_0x526462(0x348)](v['takeUntil'](this[_0x526462(0x576)]))[_0x526462(0x2a3)](_0x3663db=>{const _0x43e334=_0x526462,_0x3b8961=_0x3663db[_0x43e334(0x365)](),_0x3cae46=this['_entities'][_0x43e334(0x3cc)](_0x3b8961);_0x3cae46&&(_0x3cae46[_0x43e334(0x3c3)](),this[_0x43e334(0x301)]['delete'](_0x3b8961));});}async[_0x2658a4(0x2e6)](_0x4f16f4,_0x369b7e){const _0x23746a=_0x2658a4,_0x2fc072=await this[_0x23746a(0x562)][_0x23746a(0x36d)](_0x4f16f4),_0x17fffc=this['_injector'][_0x23746a(0x2d3)](this['_getCtorByUniverType'](_0x369b7e),_0x4f16f4,_0x369b7e,_0x2fc072);return await _0x17fffc['init'](),this[_0x23746a(0x2f1)][_0x23746a(0x460)](_0x17fffc),_0x17fffc;}[_0x2658a4(0x3b0)](_0x27b4a3){const _0x19927a=_0x2658a4;switch(_0x27b4a3){case $[_0x19927a(0x1e8)]:return exports[_0x19927a(0x4b5)];case $['UNIVER_SHEET']:return exports[_0x19927a(0x370)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x27b4a3);}}},exports[_0x2658a4(0x58f)]=Vs([Pe(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Pe(0x1,a['Inject'](exports['CollaborationSessionService'])),Pe(0x2,a['IUniverInstanceService'])],exports[_0x2658a4(0x58f)]);const nt=[_0x2658a4(0x24a),_0x2658a4(0x588),_0x2658a4(0x52d),_0x2658a4(0x38f),'blue400',_0x2658a4(0x4c5)];class Xe extends a[_0x2658a4(0x1df)]{constructor(){const _0x271397=_0x2658a4;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x271397(0x54d),0x0);}['assignAColorForMemberID'](_0x3a6ef8){const _0x53723d=_0x2658a4;if(this[_0x53723d(0x379)][_0x53723d(0x304)](_0x3a6ef8))return this[_0x53723d(0x379)]['get'](_0x3a6ef8);const _0x282c37=nt[this[_0x53723d(0x54d)]];return this[_0x53723d(0x54d)]=(this[_0x53723d(0x54d)]+0x1)%nt[_0x53723d(0x532)],this[_0x53723d(0x379)][_0x53723d(0x2ce)](_0x3a6ef8,_0x282c37),_0x282c37;}}var Ws=Object[_0x2658a4(0x30c)],Fs=Object[_0x2658a4(0x222)],Gs=(_0x247906,_0x467e1e,_0x5262e9,_0x170c44)=>{const _0x36700f=_0x2658a4;for(var _0x874a77=_0x170c44>0x1?void 0x0:_0x170c44?Fs(_0x467e1e,_0x5262e9):_0x467e1e,_0x1921ca=_0x247906[_0x36700f(0x532)]-0x1,_0x15bf0a;_0x1921ca>=0x0;_0x1921ca--)(_0x15bf0a=_0x247906[_0x1921ca])&&(_0x874a77=(_0x170c44?_0x15bf0a(_0x467e1e,_0x5262e9,_0x874a77):_0x15bf0a(_0x874a77))||_0x874a77);return _0x170c44&&_0x874a77&&Ws(_0x467e1e,_0x5262e9,_0x874a77),_0x874a77;},Q=(_0xf886ad,_0x5a04bc)=>(_0x4c27cf,_0x52404b)=>_0x5a04bc(_0x4c27cf,_0x52404b,_0xf886ad);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x4f8ec9=[],_0x2259fd=!0x1;return _0x27909f=>{const _0x566224=_0x5b2d;_0x4f8ec9[_0x566224(0x4d7)](_0x27909f),_0x2259fd||(_0x2259fd=!0x0,setTimeout(()=>{const _0x33595a=_0x566224;_0x4f8ec9[_0x33595a(0x4ab)](_0x2754c6=>_0x2754c6()),_0x4f8ec9=[],_0x2259fd=!0x1;}));};};let He=class extends a[_0x2658a4(0x354)]{constructor(_0x46463b,_0x51d6b4,_0x5e2af6,_0x1e1b0e,_0x4c1267,_0x56fd78,_0x481f01,_0x4ba942){const _0x53bff9=_0x2658a4;super(),d(this,_0x53bff9(0x440),!0x1),d(this,_0x53bff9(0x567),!0x1),d(this,'_cursorInfo$',new v[(_0x53bff9(0x58a))](new Map())),d(this,_0x53bff9(0x306),this[_0x53bff9(0x3e7)][_0x53bff9(0x329)]()),d(this,_0x53bff9(0x2ca),new v['BehaviorSubject']([])),d(this,_0x53bff9(0x216),this['_roomMembers$'][_0x53bff9(0x348)](v[_0x53bff9(0x1a9)](Ys))),d(this,'_updateLocalCursor',a[_0x53bff9(0x206)]((_0x5c0e02,_0x4efacc)=>{const _0x3e157b=_0x53bff9,_0x30240d={'eventID':_[_0x3e157b(0x2d5)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3e157b(0x316)][_0x3e157b(0x408)](),'selection':Je[_0x3e157b(0x1f5)](_0x5c0e02,_0x4efacc[_0x3e157b(0x333)])}};this[_0x3e157b(0x316)]['send'](_0x30240d,this[_0x3e157b(0x35d)]);},Ks)),(this[_0x53bff9(0x35d)]=_0x46463b,this[_0x53bff9(0x316)]=_0x51d6b4,this[_0x53bff9(0x584)]=_0x5e2af6,this[_0x53bff9(0x573)]=_0x1e1b0e,this[_0x53bff9(0x3f8)]=_0x4c1267,this['_univerInstanceService']=_0x56fd78,this[_0x53bff9(0x407)]=_0x481f01,this['_refRangeService']=_0x4ba942);}get[_0x2658a4(0x311)](){const _0x2ad5ba=_0x2658a4;return this[_0x2ad5ba(0x3e7)][_0x2ad5ba(0x4c1)]();}get[_0x2658a4(0x3a4)](){const _0x5c7618=_0x2658a4;return this['_roomMembers$'][_0x5c7618(0x4c1)]();}[_0x2658a4(0x3c3)](){const _0x4f7551=_0x2658a4;super['dispose'](),this[_0x4f7551(0x3e7)][_0x4f7551(0x460)](new Map()),this[_0x4f7551(0x3e7)]['complete'](),this[_0x4f7551(0x2ca)]['next']([]),this[_0x4f7551(0x2ca)][_0x4f7551(0x431)]();}[_0x2658a4(0x52f)](){const _0xa7ca80=_0x2658a4;this[_0xa7ca80(0x567)]||(this[_0xa7ca80(0x567)]=!0x0,this['_session']['sessionStatus$'][_0xa7ca80(0x348)](v[_0xa7ca80(0x3b1)](this[_0xa7ca80(0x576)]))['subscribe'](_0x9c0583=>{const _0x5c6bca=_0xa7ca80;_0x9c0583===j[_0x5c6bca(0x3ae)]?this[_0x5c6bca(0x4c3)]():this[_0x5c6bca(0x54c)]();}),this[_0xa7ca80(0x316)][_0xa7ca80(0x39e)]['pipe'](v[_0xa7ca80(0x3b1)](this[_0xa7ca80(0x576)]))[_0xa7ca80(0x2a3)](_0x12db6a=>{const _0x3ac3e7=_0xa7ca80,_0xdc7d88=_0x12db6a[_0x3ac3e7(0x44e)];_0xdc7d88===_[_0x3ac3e7(0x2d5)][_0x3ac3e7(0x574)]&&this[_0x3ac3e7(0x4d2)](_0x12db6a),_0xdc7d88===_[_0x3ac3e7(0x2d5)][_0x3ac3e7(0x3b3)]&&this[_0x3ac3e7(0x361)](_0x12db6a);}),this[_0xa7ca80(0x323)](),this[_0xa7ca80(0x2f0)](this[_0xa7ca80(0x407)][_0xa7ca80(0x1bf)](_0x213a51=>{const _0x231b68=_0xa7ca80;if(this[_0x231b68(0x440)]&&_0x213a51['id']===C[_0x231b68(0x51e)]['id']&&_0x213a51[_0x231b68(0x415)][_0x231b68(0x3e6)]===this[_0x231b68(0x35d)]){const _0x271a20=_0x213a51[_0x231b68(0x415)];this[_0x231b68(0x2a7)](_0x271a20[_0x231b68(0x28b)],_0x271a20['selections'][0x0]);}})));}[_0x2658a4(0x4d2)](_0x2f3eac){const _0x2b3b47=_0x2658a4;var _0x4c8911,_0x10d70d;const {memberID:_0x62b695,selection:_0x1d6eb8}=_0x2f3eac['data'],{sheetName:_0x2fe341,range:_0x593d35}=Je['deserializeRangeWithSheet'](_0x1d6eb8),_0x723107={'name':(_0x10d70d=(_0x4c8911=this[_0x2b3b47(0x3f8)][_0x2b3b47(0x4ae)](this[_0x2b3b47(0x35d)],_0x62b695))==null?void 0x0:_0x4c8911[_0x2b3b47(0x44b)])!=null?_0x10d70d:_0x2b3b47(0x53c),'range':this['_getMergeRange'](_0x2fe341,_0x593d35),'sheetID':_0x2fe341,'color':this[_0x2b3b47(0x573)][_0x2b3b47(0x430)](_0x62b695),'selection':_0x1d6eb8},_0x35825c=this['cursorInfo'];_0x35825c[_0x2b3b47(0x2ce)](_0x62b695,_0x723107),this[_0x2b3b47(0x3e7)]['next'](_0x35825c);}[_0x2658a4(0x361)](_0x53dbc3){const _0x9d5502=_0x2658a4,{memberID:_0x3b5dd5}=_0x53dbc3[_0x9d5502(0x46e)],_0x206a0d=this[_0x9d5502(0x311)];_0x206a0d['delete'](_0x3b5dd5),this[_0x9d5502(0x3e7)][_0x9d5502(0x460)](_0x206a0d);}[_0x2658a4(0x38d)](_0x4a7c93,_0x22756b){const _0x536ec2=_0x2658a4;var _0x7faf26,_0x2e9a7d;const _0x5a036c=(_0x2e9a7d=(_0x7faf26=this[_0x536ec2(0x446)][_0x536ec2(0x374)](this['unitID']))==null?void 0x0:_0x7faf26[_0x536ec2(0x424)](_0x4a7c93))==null?void 0x0:_0x2e9a7d['getMergeData']();return(_0x5a036c==null?void 0x0:_0x5a036c[_0x536ec2(0x505)](_0x374dbd=>a['Rectangle'][_0x536ec2(0x2f9)](_0x374dbd,_0x22756b)))||_0x22756b;}[_0x2658a4(0x323)](){const _0x48532a=_0x2658a4,_0x14611d=new a[(_0x48532a(0x41c))](),_0x426ec1=Xs(),_0x5928ce=()=>{const _0x10d002=_0x48532a;_0x14611d['dispose']();const _0x1e3a63=(_0x17a036,_0x3884ea,_0x520f07,_0x4ce69a)=>{const _0xab0363=_0x5b2d;let _0x12ec18=[];switch(_0x17a036['id']){case C[_0xab0363(0x3e8)]['DeleteRangeMoveLeftCommandId']:{_0x12ec18=C[_0xab0363(0x28d)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['DeleteRangeMoveUpCommandId']:{_0x12ec18=C[_0xab0363(0x55f)](_0x17a036,_0x4ce69a);break;}case C['EffectRefRangId'][_0xab0363(0x1ab)]:{_0x12ec18=C[_0xab0363(0x2b8)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['InsertRangeMoveDownCommandId']:{_0x12ec18=C['handleInsertRangeMoveDown'](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['InsertRangeMoveRightCommandId']:{_0x12ec18=C[_0xab0363(0x438)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)][_0xab0363(0x55a)]:{_0x12ec18=C[_0xab0363(0x435)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['MoveRangeCommandId']:{_0x12ec18=C[_0xab0363(0x3ef)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)][_0xab0363(0x510)]:{_0x12ec18=C[_0xab0363(0x262)](_0x17a036,_0x4ce69a);break;}case C['EffectRefRangId'][_0xab0363(0x4af)]:{_0x12ec18=C[_0xab0363(0x346)](_0x17a036,_0x4ce69a);break;}}const _0x12c1db=C[_0xab0363(0x3d9)](_0x12ec18,_0x4ce69a),_0x433be3=this['cursorInfo'][_0xab0363(0x3cc)](_0x3884ea);if(_0x433be3&&_0x12c1db){const _0x480322={..._0x433be3,'range':_0x12c1db};this[_0xab0363(0x311)][_0xab0363(0x2ce)](_0x3884ea,_0x480322),_0x426ec1(()=>{const _0x47a9a3=_0xab0363,_0x51ca7d=this[_0x47a9a3(0x37a)]['registerRefRange'](_0x12c1db,_0x278b50=>(_0x51ca7d[_0x47a9a3(0x3c3)](),_0x1e3a63(_0x278b50,_0x3884ea,_0x520f07,_0x12c1db)));_0x14611d[_0x47a9a3(0x463)](_0x51ca7d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x10d002(0x4ab)]((_0x28b4de,_0x447039)=>{const _0x573fd8=_0x10d002,{range:_0x3c18ce,sheetID:_0x31d549}=_0x28b4de,_0x162a6a=this['_refRangeService'][_0x573fd8(0x53e)](_0x3c18ce,_0x18af8a=>(_0x162a6a[_0x573fd8(0x3c3)](),_0x1e3a63(_0x18af8a,_0x447039,_0x31d549,_0x3c18ce)));_0x14611d[_0x573fd8(0x463)](_0x162a6a);});};this[_0x48532a(0x2f0)](a[_0x48532a(0x23f)](this[_0x48532a(0x3e7)][_0x48532a(0x2a3)](()=>{_0x5928ce();})));}[_0x2658a4(0x4c3)](){const _0xd1acfa=_0x2658a4;var _0x460911,_0x41dfd4;if(this['_online']=!0x0,((_0x460911=this[_0xd1acfa(0x446)][_0xd1acfa(0x47f)]())==null?void 0x0:_0x460911[_0xd1acfa(0x365)]())!==this[_0xd1acfa(0x35d)])return;const _0x5639a7=(_0x41dfd4=this[_0xd1acfa(0x584)][_0xd1acfa(0x3cc)](C['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x41dfd4[0x0],_0x32e580=this[_0xd1acfa(0x446)][_0xd1acfa(0x448)](a[_0xd1acfa(0x313)]['UNIVER_SHEET'])['getActiveSheet']();_0x5639a7&&_0x32e580&&this['_updateLocalCursor'](_0x32e580[_0xd1acfa(0x33b)](),_0x5639a7);}[_0x2658a4(0x54c)](){this['_online']=!0x1;}};He=Gs([Q(0x2,a['Inject'](a[_0x2658a4(0x1f0)])),Q(0x3,a[_0x2658a4(0x349)](Xe)),Q(0x4,a[_0x2658a4(0x349)](q)),Q(0x5,a[_0x2658a4(0x4e5)]),Q(0x6,a[_0x2658a4(0x2db)]),Q(0x7,a[_0x2658a4(0x349)](C['RefRangeService']))],He);var qs=Object[_0x2658a4(0x30c)],zs=Object['getOwnPropertyDescriptor'],Js=(_0x111af5,_0x520e4a,_0x464f09,_0x3b8b24)=>{const _0x2f53e7=_0x2658a4;for(var _0x1f6833=_0x3b8b24>0x1?void 0x0:_0x3b8b24?zs(_0x520e4a,_0x464f09):_0x520e4a,_0x490c16=_0x111af5[_0x2f53e7(0x532)]-0x1,_0x2392ee;_0x490c16>=0x0;_0x490c16--)(_0x2392ee=_0x111af5[_0x490c16])&&(_0x1f6833=(_0x3b8b24?_0x2392ee(_0x520e4a,_0x464f09,_0x1f6833):_0x2392ee(_0x1f6833))||_0x1f6833);return _0x3b8b24&&_0x1f6833&&qs(_0x520e4a,_0x464f09,_0x1f6833),_0x1f6833;},K=(_0x2196a3,_0x2de711)=>(_0x2c5fae,_0x376c44)=>_0x2de711(_0x2c5fae,_0x376c44,_0x2196a3);const Zs=0x12c,Qs=0x64;let xe=class extends a[_0x2658a4(0x354)]{constructor(_0x25a00d,_0x7c7d13,_0x41672f,_0x183337,_0x5cf9d6,_0x167a22,_0x1912eb,_0x57ab11,_0x3d4b39){const _0x649bd5=_0x2658a4;super(),d(this,_0x649bd5(0x440),!0x1),d(this,_0x649bd5(0x567),!0x1),d(this,'_cursorInfo$',new v[(_0x649bd5(0x58a))](new Map())),d(this,_0x649bd5(0x306),this['_cursorInfo$'][_0x649bd5(0x329)]()),d(this,_0x649bd5(0x2ca),new v[(_0x649bd5(0x58a))]([])),d(this,_0x649bd5(0x216),this[_0x649bd5(0x2ca)][_0x649bd5(0x348)](v['debounceTime'](Zs))),d(this,_0x649bd5(0x2a7),a[_0x649bd5(0x206)](_0x2f4db9=>{const _0x1ffa2d=_0x649bd5,_0x148ea1={'eventID':_[_0x1ffa2d(0x2d5)][_0x1ffa2d(0x574)],'data':{'unitID':this[_0x1ffa2d(0x35d)],'memberID':this[_0x1ffa2d(0x316)]['getMemberID'](),'selection':Tt(_0x2f4db9)}};this[_0x1ffa2d(0x316)][_0x1ffa2d(0x1f6)](_0x148ea1,this['unitID']);},Qs)),(this[_0x649bd5(0x35d)]=_0x25a00d,this[_0x649bd5(0x316)]=_0x7c7d13,this[_0x649bd5(0x584)]=_0x41672f,this[_0x649bd5(0x573)]=_0x183337,this[_0x649bd5(0x3f8)]=_0x5cf9d6,this[_0x649bd5(0x392)]=_0x167a22,this[_0x649bd5(0x3c8)]=_0x1912eb,this[_0x649bd5(0x446)]=_0x57ab11,this['_commandService']=_0x3d4b39);}get[_0x2658a4(0x311)](){const _0xb24279=_0x2658a4;return this[_0xb24279(0x3e7)]['getValue']();}get['roomMembers'](){const _0x3f25dc=_0x2658a4;return this[_0x3f25dc(0x2ca)]['getValue']();}[_0x2658a4(0x3c3)](){const _0x3eaa81=_0x2658a4;super[_0x3eaa81(0x3c3)](),this['_cursorInfo$'][_0x3eaa81(0x460)](new Map()),this[_0x3eaa81(0x3e7)]['complete'](),this['_roomMembers$'][_0x3eaa81(0x460)]([]),this['_roomMembers$'][_0x3eaa81(0x431)]();}[_0x2658a4(0x52f)](){const _0x4be7f5=_0x2658a4;this[_0x4be7f5(0x567)]||(this[_0x4be7f5(0x567)]=!0x0,this[_0x4be7f5(0x316)][_0x4be7f5(0x596)][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this[_0x4be7f5(0x576)]))['subscribe'](_0x57a041=>{const _0xc96234=_0x4be7f5;_0x57a041===j['ONLINE']?this[_0xc96234(0x4c3)]():this['_toggleOffline']();}),this[_0x4be7f5(0x316)]['event$'][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this['dispose$']))['subscribe'](_0x5a9c77=>{const _0x2b307a=_0x4be7f5,_0x444ecd=_0x5a9c77[_0x2b307a(0x44e)];_0x444ecd===_[_0x2b307a(0x2d5)][_0x2b307a(0x574)]&&this[_0x2b307a(0x4d2)](_0x5a9c77),_0x444ecd===_['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x5a9c77);}),this[_0x4be7f5(0x2f0)](this['_commandService'][_0x4be7f5(0x1bf)](_0x591d68=>{const _0x17f0a2=_0x4be7f5,_0x2f789e=_0x591d68[_0x17f0a2(0x415)];_0x2f789e!=null&&this[_0x17f0a2(0x440)]&&_0x591d68['id']===V[_0x17f0a2(0x36c)]['id']&&_0x2f789e['unitId']===this[_0x17f0a2(0x35d)]&&_0x2f789e[_0x17f0a2(0x275)]===!0x1&&this['_updateLocalCursor'](_0x2f789e[_0x17f0a2(0x58d)]);})),this[_0x4be7f5(0x392)][_0x4be7f5(0x515)][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this[_0x4be7f5(0x576)]))[_0x4be7f5(0x2a3)](_0x3af479=>{const _0x2e1761=_0x4be7f5;if((_0x3af479==null?void 0x0:_0x3af479[_0x2e1761(0x35d)])!==this[_0x2e1761(0x35d)])return;const _0x1e68c9={'eventID':_[_0x2e1761(0x2d5)][_0x2e1761(0x574)],'data':_0x3af479};this['_onCursorUpdate'](_0x1e68c9);}),this[_0x4be7f5(0x2f0)](this[_0x4be7f5(0x407)][_0x4be7f5(0x1bf)](_0x2bc9e8=>{const _0x51fa6b=_0x4be7f5;if(_0x2bc9e8[_0x51fa6b(0x415)]==null)return;const _0x45a63d=_0x2bc9e8['params'];if(_0x2bc9e8['id']!==V['RichTextEditingMutation']['id']||_0x45a63d[_0x51fa6b(0x3e6)]!==this['unitID'])return;const _0x5a22f5={'id':_0x51fa6b(0x4fa),'params':_0x45a63d},_0x329772=this[_0x51fa6b(0x311)];for(const [_0x323d6f,_0x2c5c27]of _0x329772){const _0x32d5f5={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x51fa6b(0x35d)],'actions':null,'textRanges':_0x2c5c27[_0x51fa6b(0x58d)]}},_0x465227=this[_0x51fa6b(0x3c8)][_0x51fa6b(0x317)](_0x5a22f5,_0x32d5f5,!0x1);if(_['isTransformMutationFailure'](_0x465227))throw _0x465227[_0x51fa6b(0x2ad)];_0x329772['set'](_0x323d6f,{..._0x2c5c27,'ranges':_0x465227[_0x51fa6b(0x1b9)][_0x51fa6b(0x415)][_0x51fa6b(0x531)]});}queueMicrotask(()=>{const _0x4ea2a1=_0x51fa6b;this[_0x4ea2a1(0x3e7)][_0x4ea2a1(0x460)](_0x329772);});})));}[_0x2658a4(0x4d2)](_0x40020e){const _0x2917fc=_0x2658a4;var _0x148ea8,_0x2e0959;const {memberID:_0x2c3a82,selection:_0x2c7d3a}=_0x40020e[_0x2917fc(0x46e)],_0x1aeb1e=Us(_0x2c7d3a),_0x4e10a6=(_0x2e0959=(_0x148ea8=this[_0x2917fc(0x3f8)][_0x2917fc(0x4ae)](this[_0x2917fc(0x35d)],_0x2c3a82))==null?void 0x0:_0x148ea8[_0x2917fc(0x44b)])!=null?_0x2e0959:'Unknown\x20user',_0x583c59={'color':this['_colorAssignService'][_0x2917fc(0x430)](_0x2c3a82),'name':_0x4e10a6,'ranges':_0x1aeb1e},_0xa87e2a=this[_0x2917fc(0x311)];_0xa87e2a[_0x2917fc(0x2ce)](_0x2c3a82,_0x583c59),this['_cursorInfo$'][_0x2917fc(0x460)](_0xa87e2a);}[_0x2658a4(0x361)](_0x472e78){const _0x42f4ef=_0x2658a4,{memberID:_0x1f47a4}=_0x472e78[_0x42f4ef(0x46e)],_0x461020=this[_0x42f4ef(0x311)];_0x461020['delete'](_0x1f47a4),this[_0x42f4ef(0x3e7)]['next'](_0x461020);}[_0x2658a4(0x4c3)](){const _0x16ebe2=_0x2658a4;var _0x151f5f;if(this[_0x16ebe2(0x440)]=!0x0,((_0x151f5f=this[_0x16ebe2(0x446)]['getFocusedUnit']())==null?void 0x0:_0x151f5f[_0x16ebe2(0x365)]())!==this[_0x16ebe2(0x35d)])return;const _0x1bf535=this['_injector'][_0x16ebe2(0x3cc)](V[_0x16ebe2(0x24c)])['getDocRanges']();Array[_0x16ebe2(0x2f6)](_0x1bf535)&&_0x1bf535[_0x16ebe2(0x532)]>0x0&&this[_0x16ebe2(0x2a7)](_0x1bf535);}[_0x2658a4(0x54c)](){const _0x371296=_0x2658a4;this[_0x371296(0x440)]=!0x1;}};xe=Js([K(0x2,a[_0x2658a4(0x349)](a['Injector'])),K(0x3,a[_0x2658a4(0x349)](Xe)),K(0x4,a[_0x2658a4(0x349)](q)),K(0x5,a[_0x2658a4(0x349)](Ye)),K(0x6,_[_0x2658a4(0x334)]),K(0x7,a[_0x2658a4(0x4e5)]),K(0x8,a[_0x2658a4(0x2db)])],xe);var ei=Object[_0x2658a4(0x30c)],ti=Object[_0x2658a4(0x222)],si=(_0x3c679e,_0x475bd6,_0x13eb00,_0x240c0f)=>{const _0x24b186=_0x2658a4;for(var _0xc63328=_0x240c0f>0x1?void 0x0:_0x240c0f?ti(_0x475bd6,_0x13eb00):_0x475bd6,_0x1259ee=_0x3c679e[_0x24b186(0x532)]-0x1,_0x4ccd24;_0x1259ee>=0x0;_0x1259ee--)(_0x4ccd24=_0x3c679e[_0x1259ee])&&(_0xc63328=(_0x240c0f?_0x4ccd24(_0x475bd6,_0x13eb00,_0xc63328):_0x4ccd24(_0xc63328))||_0xc63328);return _0x240c0f&&_0xc63328&&ei(_0x475bd6,_0x13eb00,_0xc63328),_0xc63328;},we=(_0x28f0c1,_0x10d4d6)=>(_0x3f6759,_0x2c5090)=>_0x10d4d6(_0x3f6759,_0x2c5090,_0x28f0c1);let se=class extends a[_0x2658a4(0x354)]{constructor(_0x2e4c67,_0x2edfa9,_0x3ff58d){const _0x312467=_0x2658a4;super(),d(this,'_entities',new Map()),d(this,'_entityInit$',new v[(_0x312467(0x1f9))]()),(this[_0x312467(0x446)]=_0x2e4c67,this[_0x312467(0x584)]=_0x2edfa9,this['_collabSessionService']=_0x3ff58d,this[_0x312467(0x567)]());}[_0x2658a4(0x3c3)](){const _0x28b9f8=_0x2658a4;super[_0x28b9f8(0x3c3)](),this['_entityInit$'][_0x28b9f8(0x431)](),this[_0x28b9f8(0x301)][_0x28b9f8(0x4ab)](_0xf87f0a=>_0xf87f0a[_0x28b9f8(0x3c3)]());}['getCollabCursors$'](_0x390a91){const _0x1afca0=_0x2658a4;return this[_0x1afca0(0x301)][_0x1afca0(0x304)](_0x390a91)?this[_0x1afca0(0x301)][_0x1afca0(0x3cc)](_0x390a91)[_0x1afca0(0x306)]:this[_0x1afca0(0x2f1)][_0x1afca0(0x348)](v[_0x1afca0(0x2cd)](_0x2f4307=>_0x2f4307[_0x1afca0(0x35d)]===_0x390a91),v['switchMap'](_0x1ebc6d=>_0x1ebc6d['cursorInfo$']));}[_0x2658a4(0x567)](){const _0xd66f2c=_0x2658a4;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xd66f2c(0x313)]['UNIVER_SHEET'])['pipe'](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))['subscribe'](async _0x31ff6c=>{const _0x5af822=_0xd66f2c,_0x4ab668=_0x31ff6c[_0x5af822(0x365)](),_0x5d9c68=await this[_0x5af822(0x3c5)](_0x4ab668);this[_0x5af822(0x2f1)][_0x5af822(0x460)](_0x5d9c68),this[_0x5af822(0x301)]['set'](_0x4ab668,_0x5d9c68);}),this[_0xd66f2c(0x446)][_0xd66f2c(0x214)](a['UniverInstanceType'][_0xd66f2c(0x1e8)])[_0xd66f2c(0x348)](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))[_0xd66f2c(0x348)](v[_0xd66f2c(0x2cd)](_0x4c7f43=>!_0x4c7f43[_0xd66f2c(0x365)]()[_0xd66f2c(0x552)]('__')))[_0xd66f2c(0x2a3)](async _0xf188f=>{const _0x5a641d=_0xd66f2c,_0x3044cb=_0xf188f[_0x5a641d(0x365)](),_0x116363=await this[_0x5a641d(0x22b)](_0x3044cb);this[_0x5a641d(0x2f1)]['next'](_0x116363),this[_0x5a641d(0x301)][_0x5a641d(0x2ce)](_0x3044cb,_0x116363);}),v[_0xd66f2c(0x50c)](this[_0xd66f2c(0x446)][_0xd66f2c(0x5a8)](a[_0xd66f2c(0x313)][_0xd66f2c(0x1e8)]),this['_univerInstanceService'][_0xd66f2c(0x5a8)](a['UniverInstanceType'][_0xd66f2c(0x3d2)]))[_0xd66f2c(0x348)](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))[_0xd66f2c(0x2a3)](_0x9279f8=>{const _0xe833bf=_0xd66f2c,_0x4636f8=_0x9279f8[_0xe833bf(0x365)](),_0x309339=this[_0xe833bf(0x301)][_0xe833bf(0x3cc)](_0x4636f8);_0x309339&&(_0x309339[_0xe833bf(0x3c3)](),this[_0xe833bf(0x301)][_0xe833bf(0x364)](_0x4636f8));});}async[_0x2658a4(0x3c5)](_0x5df247){const _0x54cc54=_0x2658a4,_0x14a742=await this[_0x54cc54(0x562)][_0x54cc54(0x36d)](_0x5df247),_0x195feb=this[_0x54cc54(0x584)][_0x54cc54(0x2d3)](He,_0x5df247,_0x14a742);return _0x195feb['init'](),_0x195feb;}async[_0x2658a4(0x22b)](_0x7274e1){const _0x561966=_0x2658a4,_0x4d6524=await this['_collabSessionService'][_0x561966(0x36d)](_0x7274e1),_0x2fcde0=this[_0x561966(0x584)][_0x561966(0x2d3)](xe,_0x7274e1,_0x4d6524);return _0x2fcde0['init'](),_0x2fcde0;}};se=si([a[_0x2658a4(0x42c)](a[_0x2658a4(0x21a)][_0x2658a4(0x38b)],se),we(0x0,a['IUniverInstanceService']),we(0x1,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),we(0x2,a['Inject'](exports['CollaborationSessionService']))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0xbe9002,_0x59c8a5){const _0x37d502=_0x2658a4;let {radius:_0x4e3731,width:_0x99b03e,height:_0x69fde6}=_0x59c8a5;_0x4e3731=_0x4e3731!=null?_0x4e3731:0x0,_0x99b03e=_0x99b03e!=null?_0x99b03e:0x1e,_0x69fde6=_0x69fde6!=null?_0x69fde6:0x1e;let _0x52e085=0x0,_0x3617e0=0x0,_0x30acc2=0x0;_0x52e085=_0x3617e0=_0x30acc2=Math[_0x37d502(0x3bf)](_0x4e3731,_0x99b03e/0x2,_0x69fde6/0x2),_0xbe9002['beginPath'](),_0xbe9002[_0x37d502(0x30d)](_0x52e085,0x0),_0xbe9002['lineTo'](_0x99b03e-_0x3617e0,0x0),_0xbe9002[_0x37d502(0x1d0)](_0x99b03e-_0x3617e0,_0x3617e0,_0x3617e0,Math['PI']*0x3/0x2,0x0,!0x1),_0xbe9002[_0x37d502(0x4fb)](_0x99b03e,_0x69fde6-_0x30acc2),_0xbe9002[_0x37d502(0x1d0)](_0x99b03e-_0x30acc2,_0x69fde6-_0x30acc2,_0x30acc2,0x0,Math['PI']/0x2,!0x1),_0xbe9002['lineTo'](0x0,_0x69fde6),_0xbe9002[_0x37d502(0x4fb)](0x0,_0x52e085),_0xbe9002[_0x37d502(0x1d0)](_0x52e085,_0x52e085,_0x52e085,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xbe9002['closePath'](),_0x59c8a5['fill']&&(_0xbe9002[_0x37d502(0x2fc)](),_0xbe9002['fillStyle']=_0x59c8a5[_0x37d502(0x4c2)],_0x59c8a5[_0x37d502(0x481)]==='evenodd'?_0xbe9002[_0x37d502(0x4c2)](_0x37d502(0x29c)):_0xbe9002[_0x37d502(0x4c2)](),_0xbe9002[_0x37d502(0x318)]());}class Re extends R[_0x2658a4(0x27a)]{constructor(_0x9f67ff,_0xd4c1d2){const _0x116ef6=_0x2658a4;super(_0x9f67ff,_0xd4c1d2),d(this,_0x116ef6(0x229)),d(this,_0x116ef6(0x290)),(this[_0x116ef6(0x229)]=_0xd4c1d2==null?void 0x0:_0xd4c1d2[_0x116ef6(0x229)],this['text']=_0xd4c1d2==null?void 0x0:_0xd4c1d2[_0x116ef6(0x290)]);}static[_0x2658a4(0x5a1)](_0x454ec3,_0x49b180){const _0x3feb1d=_0x2658a4,{text:_0x23eb8c,color:_0xa6016d}=_0x49b180;_0x454ec3[_0x3feb1d(0x2fc)](),_0x454ec3[_0x3feb1d(0x39a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4d2ca1=_0x454ec3[_0x3feb1d(0x227)](_0x23eb8c)['width'],_0x3bd07c=Math[_0x3feb1d(0x3bf)](_0x4d2ca1+0x2*Me,rt);ni(_0x454ec3,{'height':ue,'radius':0x4,'width':_0x3bd07c,'fill':_0xa6016d,'evented':!0x1}),_0x454ec3[_0x3feb1d(0x315)]=_0x3feb1d(0x1e6);const _0xefa857=Me,_0x3a228f=ue-ii,_0x3f1d75=rt-0x2*Me;if(_0x4d2ca1>_0x3f1d75){let _0x7f06d0='',_0x3bf405=0x0;for(const _0x382f7e of _0x23eb8c){const _0x343b1d=_0x454ec3['measureText'](_0x382f7e)[_0x3feb1d(0x28c)];if(_0x3bf405+_0x343b1d<=_0x3f1d75-_0x454ec3[_0x3feb1d(0x227)]('...')[_0x3feb1d(0x28c)])_0x7f06d0+=_0x382f7e,_0x3bf405+=_0x343b1d;else{_0x7f06d0+=_0x3feb1d(0x3aa);break;}}_0x454ec3[_0x3feb1d(0x4db)](_0x7f06d0,_0xefa857,_0x3a228f);}else _0x454ec3['fillText'](_0x23eb8c,_0xefa857,_0x3a228f);_0x454ec3['restore']();}[_0x2658a4(0x300)](_0x3757bc){Re['drawWith'](_0x3757bc,this);}}const Ne=_0x2658a4(0x4bd),ri=_0x2658a4(0x48a),oi=_0x2658a4(0x372),ce=0x6,ai=1.5,Le=0x4,ci=1.5,li='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x4ff052,_0x2889f4,_0x3ebcc9,_0x3d5dfc){const _0x538cf8=_0x2658a4;d(this,_0x538cf8(0x555),[]),d(this,_0x538cf8(0x1e0),null),d(this,_0x538cf8(0x53f),null),d(this,_0x538cf8(0x53d),null),d(this,_0x538cf8(0x22e),null),d(this,_0x538cf8(0x27c),null),(this[_0x538cf8(0x3c7)]=_0x4ff052,this[_0x538cf8(0x33c)]=_0x2889f4,this[_0x538cf8(0x2dc)]=_0x3ebcc9,this[_0x538cf8(0x251)]=_0x3d5dfc,this['_render']());}set[_0x2658a4(0x393)](_0x5960cc){const _0x32f50f=_0x2658a4;_0x5960cc?(this[_0x32f50f(0x53d)]&&this[_0x32f50f(0x53d)][_0x32f50f(0x3f6)](),this[_0x32f50f(0x53f)]&&this['_textBubble'][_0x32f50f(0x50d)]()):(this[_0x32f50f(0x53d)]&&this[_0x32f50f(0x53d)][_0x32f50f(0x50d)](),this[_0x32f50f(0x53f)]&&this[_0x32f50f(0x53f)][_0x32f50f(0x3f6)]());}[_0x2658a4(0x3c3)](){const _0x530865=_0x2658a4;for(const _0x54e52f of this[_0x530865(0x555)])_0x54e52f[_0x530865(0x3c3)]();this[_0x530865(0x53f)]&&this['_textBubble'][_0x530865(0x3c3)](),this[_0x530865(0x53d)]&&this['_anchorDot'][_0x530865(0x3c3)](),this[_0x530865(0x1e0)]&&this[_0x530865(0x1e0)][_0x530865(0x3c3)](),this['_eventUnsubscribe']&&this[_0x530865(0x27c)]();}[_0x2658a4(0x31c)](){const _0x542e7a=_0x2658a4;var _0x535c45;const {_docSkeleton:_0x28b713,_document:_0x583a40}=this,{color:_0x3d315d,name:_0x5a86b3,ranges:_0x5b5997}=this[_0x542e7a(0x3c7)],_0x5640a2=_0x583a40[_0x542e7a(0x219)](),{docsLeft:_0x4cc058,docsTop:_0x2bb4ff}=_0x5640a2,_0x248f7b=new w['NodePositionConvertToCursor'](_0x5640a2,_0x28b713);for(const {startOffset:_0x4fb83b,endOffset:_0xbf3232,collapsed:_0x284a23,isActive:_0x19238d}of _0x5b5997){const _0x30cefa=_0x28b713['findNodePositionByCharIndex'](_0x4fb83b),_0x2164fb=_0x28b713['findNodePositionByCharIndex'](_0xbf3232);if(_0x19238d){const {contentBoxPointGroup:_0x20c372}=_0x248f7b[_0x542e7a(0x57c)](_0x2164fb,_0x2164fb);if(_0x20c372['length']===0x0)continue;this[_0x542e7a(0x51a)](_0x3d315d,_0x20c372,_0x4cc058,_0x2bb4ff,_0x5a86b3),this[_0x542e7a(0x27c)]=this[_0x542e7a(0x557)]();}if(!_0x284a23&&_0x30cefa&&_0x2164fb){if(w[_0x542e7a(0x5be)](_0x30cefa,_0x2164fb)){const _0x13f42d=new w['NodePositionConvertToRectRange'](_0x5640a2,_0x28b713),{pointGroup:_0x5ece07}=(_0x535c45=_0x13f42d['getRangePointData'](_0x30cefa,_0x2164fb))!=null?_0x535c45:{};if(_0x5ece07==null||_0x5ece07['length']===0x0)continue;this[_0x542e7a(0x332)](_0x3d315d,_0x5ece07,_0x4cc058,_0x2bb4ff);}else{const {contentBoxPointGroup:_0x3e348a}=_0x248f7b['getRangePointData'](_0x30cefa,_0x2164fb);if(_0x3e348a['length']===0x0)continue;this[_0x542e7a(0x594)](_0x3d315d,_0x3e348a,_0x4cc058,_0x2bb4ff);}}}}[_0x2658a4(0x51a)](_0x4f0505,_0x4ceb70,_0x169069,_0x332f9b,_0x1ca3b4){const _0x3babb0=_0x2658a4,_0x280324=this[_0x3babb0(0x4f8)](_0x4ceb70),{left:_0x32fac7,top:_0x5d9da6,height:_0x39257d}=_0x280324,_0x399605=this[_0x3babb0(0x4c8)](),_0x268e81=ci/_0x399605,_0x38b260=new R['Rect'](Ne+a[_0x3babb0(0x2d0)][_0x3babb0(0x5b8)](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b,'height':_0x39257d,'width':ai,'fill':_0x4f0505||R[_0x3babb0(0x470)](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'strokeWidth':_0x268e81,'stroke':li,'evented':!0x0});this[_0x3babb0(0x1e0)]=_0x38b260,this[_0x3babb0(0x33c)]['addObject'](_0x38b260,w['TEXT_RANGE_LAYER_INDEX']);const _0x1f55a5=new R[(_0x3babb0(0x597))](Ne+a[_0x3babb0(0x2d0)][_0x3babb0(0x5b8)](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b-Le/0x2,'height':Le,'width':Le,'fill':_0x4f0505||R['getColor'](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'strokeWidth':0x0,'stroke':_0x4f0505||R[_0x3babb0(0x470)](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'evented':!0x1});this[_0x3babb0(0x53d)]=_0x1f55a5,this[_0x3babb0(0x33c)][_0x3babb0(0x1da)](_0x1f55a5,w['TEXT_RANGE_LAYER_INDEX']);const _0x4a1fb2=new Re(Ne+a[_0x3babb0(0x2d0)]['generateRandomId'](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b-ue,'text':_0x1ca3b4,'color':_0x4f0505});this[_0x3babb0(0x53f)]=_0x4a1fb2,this[_0x3babb0(0x33c)][_0x3babb0(0x1da)](_0x4a1fb2,w[_0x3babb0(0x377)]),this[_0x3babb0(0x393)]=!0x1;}[_0x2658a4(0x557)](){const _0x59542e=_0x2658a4,_0x2dae8c=this[_0x59542e(0x1e0)][_0x59542e(0x272)][_0x59542e(0x568)](()=>{this['_hover']=!0x0;}),_0x373a2d=this['_anchor'][_0x59542e(0x1ce)][_0x59542e(0x568)](()=>{const _0x2c2559=_0x59542e;this[_0x2c2559(0x22e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5a3e72=_0x2c2559;this[_0x5a3e72(0x393)]=!0x1;},0x7d0);});return()=>{_0x2dae8c['unsubscribe'](),_0x373a2d['unsubscribe']();};}[_0x2658a4(0x594)](_0x4d2aed,_0x59a9e8,_0x33baf8,_0x3ecb66){const _0x4fd5ca=_0x2658a4,_0x48ef4e=new a[(_0x4fd5ca(0x5bc))](_0x4d2aed)[_0x4fd5ca(0x43c)](0.2)[_0x4fd5ca(0x389)](),_0x503d44=new R[(_0x4fd5ca(0x384))](ri+a[_0x4fd5ca(0x2d0)][_0x4fd5ca(0x5b8)](ce),{'pointsGroup':_0x59a9e8,'fill':_0x48ef4e||R['getColor'](a['COLORS']['black'],0.2),'left':_0x33baf8,'top':_0x3ecb66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4fd5ca(0x555)]['push'](_0x503d44),this[_0x4fd5ca(0x33c)][_0x4fd5ca(0x1da)](_0x503d44,w[_0x4fd5ca(0x377)]);}[_0x2658a4(0x332)](_0x1fe68d,_0x3e9343,_0x4b38e8,_0x44eb9c){const _0x27aa8f=_0x2658a4,_0x41bcc1=new a[(_0x27aa8f(0x5bc))](_0x1fe68d)[_0x27aa8f(0x43c)](0.2)[_0x27aa8f(0x389)](),_0x7779c9=new R[(_0x27aa8f(0x384))](oi+a[_0x27aa8f(0x2d0)][_0x27aa8f(0x5b8)](ce),{'pointsGroup':_0x3e9343,'fill':_0x41bcc1||R[_0x27aa8f(0x470)](a[_0x27aa8f(0x55e)][_0x27aa8f(0x2b9)],0.2),'left':_0x4b38e8,'top':_0x44eb9c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27aa8f(0x555)][_0x27aa8f(0x4d7)](_0x7779c9),this['_scene']['addObject'](_0x7779c9,w[_0x27aa8f(0x377)]);}[_0x2658a4(0x4f8)](_0x1f0116){const _0x469a4f=_0x1f0116[0x0],_0x4cf31c=_0x469a4f[0x0],_0x5b9fb=_0x469a4f[0x2],{x:_0x1b0a96,y:_0x256b38}=_0x4cf31c,{x:_0x2f27cb,y:_0x5e85c1}=_0x5b9fb;return{'left':_0x1b0a96,'top':_0x256b38,'width':_0x2f27cb-_0x1b0a96,'height':_0x5e85c1-_0x256b38};}['_getScale'](){const _0x449022=_0x2658a4,{scaleX:_0xed624d,scaleY:_0x320fc2}=this[_0x449022(0x33c)][_0x449022(0x486)]();return Math[_0x449022(0x4ce)](_0xed624d,_0x320fc2);}}var hi=Object[_0x2658a4(0x30c)],_i=Object[_0x2658a4(0x222)],ui=(_0x40dfe6,_0xc59ebb,_0xefc6f3,_0x57f49d)=>{const _0x52770f=_0x2658a4;for(var _0x1230b0=_0x57f49d>0x1?void 0x0:_0x57f49d?_i(_0xc59ebb,_0xefc6f3):_0xc59ebb,_0x1c05a4=_0x40dfe6[_0x52770f(0x532)]-0x1,_0x4d69ac;_0x1c05a4>=0x0;_0x1c05a4--)(_0x4d69ac=_0x40dfe6[_0x1c05a4])&&(_0x1230b0=(_0x57f49d?_0x4d69ac(_0xc59ebb,_0xefc6f3,_0x1230b0):_0x4d69ac(_0x1230b0))||_0x1230b0);return _0x57f49d&&_0x1230b0&&hi(_0xc59ebb,_0xefc6f3,_0x1230b0),_0x1230b0;},de=(_0x8654ba,_0x3f2d5e)=>(_0x516e01,_0x3c3ebb)=>_0x3f2d5e(_0x516e01,_0x3c3ebb,_0x8654ba);let fe=class extends a[_0x2658a4(0x354)]{constructor(_0x337a39,_0x23e94b,_0x56e683,_0x249e6e,_0x459462){const _0x37ec29=_0x2658a4;super(),d(this,_0x37ec29(0x398),[]),d(this,_0x37ec29(0x45f),[]),(this[_0x37ec29(0x1fa)]=_0x337a39,this['_docSkeletonManagerService']=_0x23e94b,this[_0x37ec29(0x32e)]=_0x56e683,this['_commandService']=_0x249e6e,this[_0x37ec29(0x4f3)]=_0x459462,this[_0x37ec29(0x567)]());}[_0x2658a4(0x567)](){const _0x1b4463=_0x2658a4,_0x4aec81=this['_context']['unitId'],_0x47ce9e=this[_0x1b4463(0x42f)];this['disposeWithMe'](v[_0x1b4463(0x252)]([this['_collabCursorController'][_0x1b4463(0x253)](_0x4aec81),this[_0x1b4463(0x4f3)][_0x1b4463(0x1a6)]])[_0x1b4463(0x348)](E[_0x1b4463(0x1ec)](([_0xce5516,_0x163a27])=>({'skeleton':_0x47ce9e[_0x1b4463(0x572)](),'cursors':[..._0xce5516[_0x1b4463(0x22c)]()][_0x1b4463(0x363)](_0x58bba8=>({..._0x58bba8,'color':_0x163a27[_0x58bba8[_0x1b4463(0x229)]]}))})))[_0x1b4463(0x2a3)](_0x5aede7=>{const _0x9060ad=_0x1b4463;if(this[_0x9060ad(0x336)](),_0x5aede7){const {skeleton:_0x2bd079,cursors:_0x557541}=_0x5aede7;this['_updateCollabCursors'](_0x2bd079,_0x557541);}})),this['_initResize'](),this[_0x1b4463(0x586)]();}[_0x2658a4(0x388)](_0x42609a,_0xc67a28){const _0x5bbecb=_0x2658a4,{scene:_0x50fd32,mainComponent:_0x4277ee}=this[_0x5bbecb(0x1fa)],_0x4aaf5d=_0xc67a28['map'](_0x3ef3f7=>new ot(_0x3ef3f7,_0x50fd32,_0x42609a,_0x4277ee));this['_cursorShapes']=_0x4aaf5d,this[_0x5bbecb(0x45f)]=_0xc67a28;}[_0x2658a4(0x44f)](){const _0x4e0f8f=_0x2658a4;this[_0x4e0f8f(0x336)]();const {scene:_0x51c7e7,mainComponent:_0x254be2}=this[_0x4e0f8f(0x1fa)],_0x35acbd=this[_0x4e0f8f(0x42f)]['getSkeleton'](),_0xc8a71f=this['_cursors']['map'](_0x133103=>new ot(_0x133103,_0x51c7e7,_0x35acbd,_0x254be2));this[_0x4e0f8f(0x398)]=_0xc8a71f;}[_0x2658a4(0x336)](){const _0x10c731=_0x2658a4;this['_cursorShapes'][_0x10c731(0x4ab)](_0x162faa=>_0x162faa[_0x10c731(0x3c3)]()),this[_0x10c731(0x398)]=[];}[_0x2658a4(0x586)](){const _0x41cbb9=_0x2658a4,_0x755269=[w[_0x41cbb9(0x578)]['id']];this['disposeWithMe'](this['_commandService'][_0x41cbb9(0x1bf)](_0x4eacec=>{const _0x40206d=_0x41cbb9;_0x755269[_0x40206d(0x30a)](_0x4eacec['id'])&&_0x4eacec[_0x40206d(0x415)][_0x40206d(0x3e6)]===this[_0x40206d(0x1fa)][_0x40206d(0x3e6)]&&this['_refreshCollabCursors']();}));}[_0x2658a4(0x428)](){const _0x4ce38a=_0x2658a4;this[_0x4ce38a(0x2f0)](a[_0x4ce38a(0x24b)](this['_context'][_0x4ce38a(0x2b1)][_0x4ce38a(0x3e5)])[_0x4ce38a(0x348)](E[_0x4ce38a(0x2cd)](_0x5b6edd=>_0x5b6edd[_0x4ce38a(0x2aa)]===R[_0x4ce38a(0x441)][_0x4ce38a(0x51c)]),E[_0x4ce38a(0x40f)](0x10))['subscribe'](()=>{const _0x2cfd0b=_0x4ce38a;this[_0x2cfd0b(0x44f)]();}));}};fe=ui([a[_0x2658a4(0x42c)](a['LifecycleStages']['Steady'],fe),de(0x1,a['Inject'](V['DocSkeletonManagerService'])),de(0x2,a[_0x2658a4(0x349)](se)),de(0x3,a[_0x2658a4(0x2db)]),de(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x314)]))],fe);const di=0x1,Si=1.5;class Ot extends R[_0x2658a4(0x27a)]{constructor(_0x385161,_0x6d171f){const _0x53ba3d=_0x2658a4;super(_0x385161,_0x6d171f),d(this,'_color'),d(this,_0x53ba3d(0x514),!0x1),d(this,_0x53ba3d(0x1ea)),d(this,_0x53ba3d(0x599),''),d(this,_0x53ba3d(0x469),'top'),d(this,_0x53ba3d(0x2ee)),(_0x6d171f&&this[_0x53ba3d(0x1fd)](_0x6d171f),this[_0x53ba3d(0x272)]['subscribeEvent'](()=>this[_0x53ba3d(0x1fd)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2658a4(0x1fd)](_0x447796){const _0xbdab8c=_0x2658a4;var _0x29e16b,_0x3d15a2,_0x3a47d1,_0x412442,_0x377e90,_0x1a02d0;this['_color']=(_0x29e16b=_0x447796[_0xbdab8c(0x229)])!=null?_0x29e16b:this[_0xbdab8c(0x3ac)],this[_0xbdab8c(0x514)]=(_0x3d15a2=_0x447796[_0xbdab8c(0x3f2)])!=null?_0x3d15a2:this[_0xbdab8c(0x514)],this['_range']=(_0x3a47d1=_0x447796[_0xbdab8c(0x333)])!=null?_0x3a47d1:this[_0xbdab8c(0x1ea)],this[_0xbdab8c(0x599)]=(_0x412442=_0x447796[_0xbdab8c(0x44b)])!=null?_0x412442:this[_0xbdab8c(0x599)],this[_0xbdab8c(0x469)]=(_0x377e90=_0x447796['labelPosition'])!=null?_0x377e90:this[_0xbdab8c(0x469)],this[_0xbdab8c(0x2ee)]=(_0x1a02d0=_0x447796['backgroundColor'])!=null?_0x1a02d0:this['_backgroundColor'],this[_0xbdab8c(0x5bd)]({'width':_0x447796[_0xbdab8c(0x28c)],'height':_0x447796[_0xbdab8c(0x5b6)]});}[_0x2658a4(0x4d3)](_0x710b68){const _0x5e63b0=_0x2658a4,{row:_0x23f072,column:_0xe6940e}=_0x710b68;if(_0x23f072>=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x3df)]&&_0x23f072<=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x23b)]&&_0xe6940e>=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x536)]&&_0xe6940e<=this[_0x5e63b0(0x1ea)]['endColumn']){this[_0x5e63b0(0x1fd)]({'hovered':!0x0});return;}this[_0x5e63b0(0x1fd)]({'hovered':!0x1});}[_0x2658a4(0x418)](_0x31550){return!0x1;}[_0x2658a4(0x300)](_0x5b609b){const _0x4ae7d5=_0x2658a4;R[_0x4ae7d5(0x597)][_0x4ae7d5(0x5a1)](_0x5b609b,{'width':this[_0x4ae7d5(0x28c)],'height':this['height'],'strokeWidth':Si,'stroke':this[_0x4ae7d5(0x3ac)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x5b609b[_0x4ae7d5(0x2fc)](),_0x5b609b[_0x4ae7d5(0x4b3)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4ae7d5(0x26f)?0x0:-ue),Re[_0x4ae7d5(0x5a1)](_0x5b609b,{'text':this[_0x4ae7d5(0x599)],'color':this[_0x4ae7d5(0x3ac)]}),_0x5b609b['restore']());}}var vi=Object[_0x2658a4(0x30c)],fi=Object[_0x2658a4(0x222)],gi=(_0x561423,_0x9abca4,_0x275295,_0x34fdda)=>{const _0x49a25f=_0x2658a4;for(var _0x423830=_0x34fdda>0x1?void 0x0:_0x34fdda?fi(_0x9abca4,_0x275295):_0x9abca4,_0x3dda9a=_0x561423[_0x49a25f(0x532)]-0x1,_0x29378c;_0x3dda9a>=0x0;_0x3dda9a--)(_0x29378c=_0x561423[_0x3dda9a])&&(_0x423830=(_0x34fdda?_0x29378c(_0x9abca4,_0x275295,_0x423830):_0x29378c(_0x423830))||_0x423830);return _0x34fdda&&_0x423830&&vi(_0x9abca4,_0x275295,_0x423830),_0x423830;},Ae=(_0x530d4c,_0x2c721c)=>(_0x5013b6,_0x25f522)=>_0x2c721c(_0x5013b6,_0x25f522,_0x530d4c);const mi=0x1389;let ke=class extends a[_0x2658a4(0x354)]{constructor(_0x3d2b09,_0x5f3d66,_0x5c5fd4,_0x44e677){const _0x4cd9d5=_0x2658a4;super(),d(this,_0x4cd9d5(0x45f),new Set()),d(this,_0x4cd9d5(0x40d),null),(this[_0x4cd9d5(0x1fa)]=_0x3d2b09,this[_0x4cd9d5(0x31b)]=_0x5f3d66,this[_0x4cd9d5(0x32e)]=_0x5c5fd4,this[_0x4cd9d5(0x4f3)]=_0x44e677,this[_0x4cd9d5(0x567)]());}[_0x2658a4(0x567)](){const _0x71e9d8=_0x2658a4;this[_0x71e9d8(0x31b)][_0x71e9d8(0x525)][_0x71e9d8(0x348)](E[_0x71e9d8(0x3b1)](this[_0x71e9d8(0x576)]),E[_0x71e9d8(0x5af)](_0x44f2cd=>{const _0xff37e7=_0x71e9d8;if(_0x44f2cd){const _0x20cdf6=_0x44f2cd[_0xff37e7(0x1bb)];return v['combineLatest'](this[_0xff37e7(0x32e)][_0xff37e7(0x253)](this[_0xff37e7(0x1fa)][_0xff37e7(0x3e6)]),this[_0xff37e7(0x4f3)][_0xff37e7(0x1a6)])[_0xff37e7(0x348)](E[_0xff37e7(0x1ec)](([_0x3f2afc,_0x5a9187])=>{const _0xc7ae98=_0xff37e7,_0x30c21a=new Map();return _0x3f2afc[_0xc7ae98(0x4ab)]((_0x465ba2,_0x1aa673)=>{const _0x3a5900=_0xc7ae98;if(_0x465ba2['sheetID']===_0x20cdf6){const _0xa7393b={..._0x465ba2};_0xa7393b[_0x3a5900(0x229)]=_0x5a9187[_0x465ba2[_0x3a5900(0x229)]],_0x30c21a[_0x3a5900(0x2ce)](_0x1aa673,_0xa7393b);}}),{'skeleton':_0x44f2cd,'cursors':_0x30c21a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x71e9d8(0x2a3)](({skeleton:_0x19e79,cursors:_0x520785})=>{const _0x57600d=_0x71e9d8;this[_0x57600d(0x336)](),_0x19e79&&this[_0x57600d(0x388)](_0x19e79,_0x520785);}),this[_0x71e9d8(0x31b)]['currentSkeleton$'][_0x71e9d8(0x2a3)](_0x333d47=>{const _0x1cd57e=_0x71e9d8;if(_0x333d47==null)return;const {skeleton:_0x34d95e}=_0x333d47,{scene:_0x30c96c}=this[_0x1cd57e(0x1fa)];_0x30c96c[_0x1cd57e(0x494)][_0x1cd57e(0x568)](a['debounce'](_0x41fe80=>{const _0x3fa4f1=_0x1cd57e;var _0x2c1d4a,_0xdbaf29;const {offsetX:_0x56fba3,offsetY:_0x1224ae}=_0x41fe80,{x:_0x33c5bd,y:_0x5b7844}=_0x30c96c[_0x3fa4f1(0x294)](R[_0x3fa4f1(0x1d7)]['FromArray']([_0x56fba3,_0x1224ae])),{scaleX:_0x267b22,scaleY:_0xdccb23}=_0x30c96c[_0x3fa4f1(0x486)](),_0x4c05c9=_0x30c96c['getViewport'](te[_0x3fa4f1(0x261)][_0x3fa4f1(0x397)]),_0x34da72=_0x30c96c[_0x3fa4f1(0x43a)](R[_0x3fa4f1(0x1d7)]['FromArray']([_0x33c5bd,_0x5b7844]),_0x4c05c9),_0x44e069=_0x34d95e['getCellPositionByOffset'](_0x56fba3,_0x1224ae,_0x267b22,_0xdccb23,_0x34da72);((_0x2c1d4a=this[_0x3fa4f1(0x40d)])==null?void 0x0:_0x2c1d4a['column'])===_0x44e069[_0x3fa4f1(0x38c)]&&((_0xdbaf29=this['_lastPointer'])==null?void 0x0:_0xdbaf29[_0x3fa4f1(0x326)])===_0x44e069[_0x3fa4f1(0x326)]||this[_0x3fa4f1(0x45f)][_0x3fa4f1(0x4ab)](_0x1f8dd9=>{const _0x488c75=_0x3fa4f1;_0x1f8dd9[_0x488c75(0x4d3)](_0x44e069);});},0x64));});}[_0x2658a4(0x388)](_0x56a19f,_0x26d56b){const _0x1c4822=_0x2658a4;var _0x5c2d1c;const _0x57e04d=(_0x5c2d1c=this[_0x1c4822(0x31b)]['getCurrent']())==null?void 0x0:_0x5c2d1c[_0x1c4822(0x1f2)];if(!_0x57e04d)return;const _0x1c744e=this[_0x1c4822(0x34b)]();if(!_0x1c744e)return;this['_cursors']['forEach'](_0x468336=>{_0x468336['makeDirty']();});const {scene:_0x4af784}=_0x1c744e,_0x42c0ab=Ii(Array[_0x1c4822(0x58c)](_0x26d56b[_0x1c4822(0x22c)]()))['map'](_0x5985ff=>{const _0x21c39f=_0x1c4822,{color:_0x236396,range:_0x34138e,name:_0x56fa64,selection:_0x40c3c9,sheetID:_0x3d84fd}=_0x5985ff,{startColumn:_0x268c5b,startRow:_0xd2ea66,endColumn:_0x41342a,endRow:_0x510343}=_0x34138e,_0x2cc186=te[_0x21c39f(0x4e9)](_0xd2ea66,_0x268c5b,_0x4af784,_0x57e04d),_0x2ef842=te['getCoordByCell'](_0x510343,_0x41342a,_0x4af784,_0x57e04d),{columnHeaderHeightAndMarginTop:_0x195c86}=_0x57e04d,{startX:_0x14249f,startY:_0x1a9928}=_0x2cc186,{endX:_0x344e64,endY:_0x2b50c8}=_0x2ef842,_0x3bc1a1=_0x344e64-_0x14249f,_0x4902a0=_0x2b50c8-_0x1a9928,_0x32856b={'labelPosition':_0x1a9928-_0x195c86>=ue?_0x21c39f(0x48d):_0x21c39f(0x26f),'sheetID':_0x3d84fd,'range':_0x34138e,'color':_0x236396,'name':_0x56fa64,'selection':_0x40c3c9,'left':_0x14249f,'top':_0x1a9928,'width':_0x3bc1a1,'height':_0x4902a0,'evented':!0x1,'zIndex':mi};return new Ot(_0x56fa64,_0x32856b);});_0x4af784['addObjects'](_0x42c0ab,di),this[_0x1c4822(0x45f)]=new Set(_0x42c0ab);}[_0x2658a4(0x336)](){const _0x6a90e5=_0x2658a4;var _0x27b7a1;(_0x27b7a1=this['_cursors'])==null||_0x27b7a1[_0x6a90e5(0x4ab)](_0x52c0e8=>_0x52c0e8[_0x6a90e5(0x3c3)]());}[_0x2658a4(0x34b)](){const _0x483389=_0x2658a4;return te[_0x483389(0x59a)](this['_context']['unit'],this[_0x483389(0x1fa)]);}};ke=gi([Ae(0x1,a[_0x2658a4(0x349)](te[_0x2658a4(0x49f)])),Ae(0x2,a['Inject'](se)),Ae(0x3,a['Inject'](a[_0x2658a4(0x314)]))],ke);function Ii(_0x44f816){const _0x541806=_0x2658a4,_0x180b71=new Map();return _0x44f816['forEach'](_0x5c439a=>{const _0x24de6a=_0x5b2d;if(_0x180b71['has'](_0x5c439a['selection'])){const _0x2e7f6c=_0x180b71[_0x24de6a(0x3cc)](_0x5c439a['selection']);_0x2e7f6c[_0x24de6a(0x44b)]+=',\x20'+_0x5c439a[_0x24de6a(0x44b)];}else _0x180b71[_0x24de6a(0x2ce)](_0x5c439a['selection'],_0x5c439a);}),Array['from'](_0x180b71[_0x541806(0x22c)]());}var M=function(){const _0x4bb540=_0x2658a4;return M=Object[_0x4bb540(0x524)]||function(_0x308c94){const _0x4b36aa=_0x4bb540;for(var _0x141b06,_0x555284=0x1,_0x4a321c=arguments[_0x4b36aa(0x532)];_0x555284<_0x4a321c;_0x555284++){_0x141b06=arguments[_0x555284];for(var _0x292a9d in _0x141b06)Object['prototype'][_0x4b36aa(0x46b)][_0x4b36aa(0x2cc)](_0x141b06,_0x292a9d)&&(_0x308c94[_0x292a9d]=_0x141b06[_0x292a9d]);}return _0x308c94;},M[_0x4bb540(0x4b8)](this,arguments);},pi=function(_0x24bf1f,_0x4c955e){const _0xee1bb5=_0x2658a4;var _0x1065e8={};for(var _0x4a87a9 in _0x24bf1f)Object[_0xee1bb5(0x1d8)]['hasOwnProperty'][_0xee1bb5(0x2cc)](_0x24bf1f,_0x4a87a9)&&_0x4c955e['indexOf'](_0x4a87a9)<0x0&&(_0x1065e8[_0x4a87a9]=_0x24bf1f[_0x4a87a9]);if(_0x24bf1f!=null&&typeof Object[_0xee1bb5(0x1b6)]=='function'){for(var _0x520eb5=0x0,_0x4a87a9=Object[_0xee1bb5(0x1b6)](_0x24bf1f);_0x520eb5<_0x4a87a9[_0xee1bb5(0x532)];_0x520eb5++)_0x4c955e[_0xee1bb5(0x513)](_0x4a87a9[_0x520eb5])<0x0&&Object[_0xee1bb5(0x1d8)][_0xee1bb5(0x4ee)][_0xee1bb5(0x2cc)](_0x24bf1f,_0x4a87a9[_0x520eb5])&&(_0x1065e8[_0x4a87a9[_0x520eb5]]=_0x24bf1f[_0x4a87a9[_0x520eb5]]);}return _0x1065e8;},qe=U[_0x2658a4(0x29a)](function(_0x142083,_0x35477c){const _0x3ea8d4=_0x2658a4;var _0x29459c=_0x142083[_0x3ea8d4(0x42d)],_0x3ab6ae=_0x142083['id'],_0x23c952=_0x142083[_0x3ea8d4(0x3e9)],_0x12b9be=_0x142083['extend'],_0x2c3a76=pi(_0x142083,[_0x3ea8d4(0x42d),'id','className',_0x3ea8d4(0x4d6)]),_0x23cf82=_0x3ea8d4(0x5a2)[_0x3ea8d4(0x4e4)](_0x3ab6ae,'\x20')['concat'](_0x23c952||'')['trim'](),_0x1b00a5=U[_0x3ea8d4(0x330)]('_'['concat'](bi()));return Dt(_0x29459c,''[_0x3ea8d4(0x4e4)](_0x3ab6ae),{'defIds':_0x29459c[_0x3ea8d4(0x542)],'idSuffix':_0x1b00a5['current']},M({'ref':_0x35477c,'className':_0x23cf82},_0x2c3a76),_0x12b9be);});function Dt(_0x503606,_0x4b5700,_0x39c8a8,_0x2a76e2,_0x2821f9){const _0x2a82ae=_0x2658a4;return U[_0x2a82ae(0x41d)](_0x503606[_0x2a82ae(0x55b)],M(M({'key':_0x4b5700},Ci(_0x503606,_0x39c8a8,_0x2821f9)),_0x2a76e2),(Ei(_0x503606,_0x39c8a8)['children']||[])[_0x2a82ae(0x1ec)](function(_0x720fa3,_0xb55aa2){const _0x5888b4=_0x2a82ae;return Dt(_0x720fa3,''[_0x5888b4(0x4e4)](_0x4b5700,'-')[_0x5888b4(0x4e4)](_0x503606[_0x5888b4(0x55b)],'-')[_0x5888b4(0x4e4)](_0xb55aa2),_0x39c8a8,void 0x0,_0x2821f9);}));}function Ci(_0x308a28,_0x132432,_0xc909d1){const _0x177b64=_0x2658a4;var _0x27432e=M({},_0x308a28['attrs']);_0xc909d1!=null&&_0xc909d1['colorChannel1']&&_0x27432e[_0x177b64(0x4c2)]===_0x177b64(0x425)&&(_0x27432e['fill']=_0xc909d1[_0x177b64(0x425)]);var _0x5e9951=_0x132432[_0x177b64(0x542)];return!_0x5e9951||_0x5e9951[_0x177b64(0x532)]===0x0||(_0x308a28[_0x177b64(0x55b)]===_0x177b64(0x2e5)&&_0x27432e[_0x177b64(0x4ac)]&&(_0x27432e['xlink:href']=_0x27432e[_0x177b64(0x4ac)]+_0x132432['idSuffix']),Object[_0x177b64(0x2ab)](_0x27432e)[_0x177b64(0x4ab)](function(_0x55b42d){const _0x1c18d7=_0x177b64;var _0x2c893d=_0x55b42d[0x0],_0x8038b0=_0x55b42d[0x1];typeof _0x8038b0=='string'&&(_0x27432e[_0x2c893d]=_0x8038b0['replace'](/url\(#(.*)\)/,_0x1c18d7(0x48e)[_0x1c18d7(0x4e4)](_0x132432[_0x1c18d7(0x1cc)],')')));})),_0x27432e;}function Ei(_0x10a73b,_0x482e3d){const _0x373c90=_0x2658a4;var _0x10c891,_0x134984=_0x482e3d[_0x373c90(0x542)];return!_0x134984||_0x134984[_0x373c90(0x532)]===0x0?_0x10a73b:_0x10a73b['tag']===_0x373c90(0x57d)&&(!((_0x10c891=_0x10a73b[_0x373c90(0x1bc)])===null||_0x10c891===void 0x0)&&_0x10c891[_0x373c90(0x532)])?M(M({},_0x10a73b),{'children':_0x10a73b['children'][_0x373c90(0x1ec)](function(_0x3bc780){const _0x4b3479=_0x373c90;return typeof _0x3bc780[_0x4b3479(0x5a4)]['id']==_0x4b3479(0x345)&&_0x134984&&_0x134984[_0x4b3479(0x513)](_0x3bc780['attrs']['id'])>-0x1?M(M({},_0x3bc780),{'attrs':M(M({},_0x3bc780[_0x4b3479(0x5a4)]),{'id':_0x3bc780[_0x4b3479(0x5a4)]['id']+_0x482e3d[_0x4b3479(0x1cc)]})}):_0x3bc780;})}):_0x10a73b;}function bi(){const _0xd31570=_0x2658a4;return Math[_0xd31570(0x40a)]()[_0xd31570(0x458)](0x24)['substring'](0x2,0x8);}qe[_0x2658a4(0x5bf)]=_0x2658a4(0x2a6);var Ti={'tag':'svg','attrs':{'fill':_0x2658a4(0x2e4),'viewBox':'0\x200\x2016\x2016','width':_0x2658a4(0x237),'height':_0x2658a4(0x237)},'children':[{'tag':'g','attrs':{'clipPath':_0x2658a4(0x456)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'stroke':_0x2658a4(0x4ef),'d':_0x2658a4(0x325),'strokeLinecap':_0x2658a4(0x33e),'strokeLinejoin':_0x2658a4(0x33e),'strokeWidth':1.2}}]},{'tag':_0x2658a4(0x57d),'attrs':{},'children':[{'tag':_0x2658a4(0x1fb),'attrs':{'id':_0x2658a4(0x46a)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'fill':_0x2658a4(0x512),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2658a4(0x46a)]},yt=U['forwardRef'](function(_0x50758e,_0x4749a0){const _0x22e630=_0x2658a4;return U['createElement'](qe,Object[_0x22e630(0x524)]({},_0x50758e,{'id':'off-line-single','ref':_0x4749a0,'icon':Ti}));});yt[_0x2658a4(0x5bf)]=_0x2658a4(0x478);var Ri={'tag':_0x2658a4(0x3b5),'attrs':{'fill':_0x2658a4(0x2e4),'viewBox':_0x2658a4(0x404),'width':_0x2658a4(0x237),'height':_0x2658a4(0x237)},'children':[{'tag':'g','attrs':{'clipPath':_0x2658a4(0x266)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'stroke':_0x2658a4(0x4ef),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2658a4(0x33e),'strokeWidth':1.2}}]},{'tag':_0x2658a4(0x57d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2658a4(0x466),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x2658a4(0x5b2)]},Ut=U[_0x2658a4(0x29a)](function(_0x59b453,_0x896efe){const _0x3805bb=_0x2658a4;return U[_0x3805bb(0x41d)](qe,Object[_0x3805bb(0x524)]({},_0x59b453,{'id':'on-line-single','ref':_0x896efe,'icon':Ri}));});Ut['displayName']=_0x2658a4(0x1c3);const Oi=_0x2658a4(0x1c9),Di=_0x2658a4(0x375),yi='univer-online-status',Ui=_0x2658a4(0x2cf),Pi='univer-offline',le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x114269){const _0x4222c5=_0x2658a4;switch(_0x114269){case y[_0x4222c5(0x1fc)]:return _0x4222c5(0x254);case y['CONFLICT']:return _0x4222c5(0x274);case y[_0x4222c5(0x5b4)]:return _0x4222c5(0x5a5);case y[_0x4222c5(0x4cd)]:return _0x4222c5(0x491);case y['PENDING']:case y[_0x4222c5(0x1dd)]:case y['AWAITING_WITH_PENDING']:return _0x4222c5(0x3c0);case y[_0x4222c5(0x2fb)]:return'collabStatus.synced';}}function Pt(_0x4dc65a){const _0x140c47=_0x2658a4,{status$:_0x753fb1}=_0x4dc65a,_0x3e9b46=N['useObservable'](_0x753fb1,y['NOT_COLLAB']),_0x4caf17=a['useDependency'](a[_0x140c47(0x3fa)]),_0xa7905d=a[_0x140c47(0x535)](exports['CollaborationSessionService']),_0x3f6954=_0x3e9b46!==y[_0x140c47(0x1fc)],_0x39afd1=_0x4caf17['t'](wi(_0x3e9b46)),_0x3143ca=Vt(le[_0x140c47(0x39d)],{[le[_0x140c47(0x36e)]]:_0x3f6954,[le['offline']]:!_0x3f6954}),_0x23f755=_0x3f6954?U[_0x140c47(0x41d)](Ut,null):U[_0x140c47(0x41d)](yt,null),_0x5577d9=U['useCallback'](()=>{const _0x8850ba=_0x140c47;_0x3f6954||_0xa7905d[_0x8850ba(0x381)]();},[_0x3f6954,_0xa7905d]);function _0x3cd2db(){const _0xccfeca=_0x140c47;return U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':_0x3143ca,'onClick':_0x5577d9},U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':le[_0xccfeca(0x434)]},_0x23f755),U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':le['onlineStatusTitle']},_0x39afd1));}return _0x3f6954?_0x3cd2db():U[_0x140c47(0x41d)](X[_0x140c47(0x1c7)],{'title':_0x4caf17['t']('collab-client.tooltip.reconnect')},_0x3cd2db());}var Mi=Object['defineProperty'],Ni=Object[_0x2658a4(0x222)],Li=(_0x47d7b7,_0x4d235e,_0xbf577c,_0x18144a)=>{const _0xe728c4=_0x2658a4;for(var _0x255850=_0x18144a>0x1?void 0x0:_0x18144a?Ni(_0x4d235e,_0xbf577c):_0x4d235e,_0x2ba8d9=_0x47d7b7[_0xe728c4(0x532)]-0x1,_0x36d452;_0x2ba8d9>=0x0;_0x2ba8d9--)(_0x36d452=_0x47d7b7[_0x2ba8d9])&&(_0x255850=(_0x18144a?_0x36d452(_0x4d235e,_0xbf577c,_0x255850):_0x36d452(_0x255850))||_0x255850);return _0x18144a&&_0x255850&&Mi(_0x4d235e,_0xbf577c,_0x255850),_0x255850;},Se=(_0x1b61da,_0x20a22b)=>(_0x352927,_0x2e91f4)=>_0x20a22b(_0x352927,_0x2e91f4,_0x1b61da);exports[_0x2658a4(0x4bc)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x43a569,_0x49fc60,_0x5186be,_0x2f2624){const _0x72a2bb=_0x2658a4;super(),d(this,_0x72a2bb(0x303),new v[(_0x72a2bb(0x58a))](y['NOT_COLLAB'])),(this[_0x72a2bb(0x446)]=_0x43a569,this[_0x72a2bb(0x508)]=_0x49fc60,this['_injector']=_0x5186be,this[_0x72a2bb(0x5a7)]=_0x2f2624,this[_0x72a2bb(0x3fe)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1ff846=_0x2658a4;this[_0x1ff846(0x2f0)](this['_univerInstanceService'][_0x1ff846(0x595)][_0x1ff846(0x348)](v[_0x1ff846(0x5af)](()=>{const _0x34a9c5=_0x1ff846,_0x28517f=this[_0x34a9c5(0x446)][_0x34a9c5(0x47f)]();return _0x28517f?this[_0x34a9c5(0x5a7)]['getCollabEntity$'](_0x28517f[_0x34a9c5(0x365)]()):v['of'](null);}),v[_0x1ff846(0x5af)](_0x1b1769=>_0x1b1769?_0x1b1769[_0x1ff846(0x3bd)]:v['of'](y[_0x1ff846(0x4cd)])))['subscribe'](_0x80857a=>{const _0x4bb61b=_0x1ff846;this[_0x4bb61b(0x303)][_0x4bb61b(0x460)](_0x80857a);}));}[_0x2658a4(0x3fe)](){const _0xfcea59=_0x2658a4;this[_0xfcea59(0x2f0)](this['_uiPartsService']['registerComponent'](N[_0xfcea59(0x570)][_0xfcea59(0x3a1)],()=>a['connectInjector'](Ai({'status$':this['_status$'][_0xfcea59(0x329)]()}),this['_injector'])));}},exports[_0x2658a4(0x4bc)]=Li([Se(0x0,a[_0x2658a4(0x4e5)]),Se(0x1,N[_0x2658a4(0x250)]),Se(0x2,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Se(0x3,a[_0x2658a4(0x349)](exports[_0x2658a4(0x58f)]))],exports['DesktopCollaborationStatusDisplayController']);function Ai(_0x599a93){const {status$:_0x40c603}=_0x599a93;return function(){const _0x5d68ab=_0x5b2d;return U[_0x5d68ab(0x41d)](Pt,{'status$':_0x40c603});};}const ze=a[_0x2658a4(0x5b9)](_0x2658a4(0x4e1));var $i=Object['defineProperty'],ji=Object[_0x2658a4(0x222)],Hi=(_0x24e9c0,_0x5b01ed,_0x43a5d0,_0x3e3398)=>{const _0xf71cb1=_0x2658a4;for(var _0x29400e=_0x3e3398>0x1?void 0x0:_0x3e3398?ji(_0x5b01ed,_0x43a5d0):_0x5b01ed,_0x2b9e01=_0x24e9c0[_0xf71cb1(0x532)]-0x1,_0x4bf6f2;_0x2b9e01>=0x0;_0x2b9e01--)(_0x4bf6f2=_0x24e9c0[_0x2b9e01])&&(_0x29400e=(_0x3e3398?_0x4bf6f2(_0x5b01ed,_0x43a5d0,_0x29400e):_0x4bf6f2(_0x29400e))||_0x29400e);return _0x3e3398&&_0x29400e&&$i(_0x5b01ed,_0x43a5d0,_0x29400e),_0x29400e;},ee=(_0x20088a,_0x312664)=>(_0x364d8f,_0x58a711)=>_0x312664(_0x364d8f,_0x58a711,_0x20088a);exports[_0x2658a4(0x21e)]=class extends a['RxDisposable']{constructor(_0xbecedd,_0x3b1fab,_0x1786cd,_0x584dea,_0x21486a,_0x36367c){const _0x2e256a=_0x2658a4;super(),this[_0x2e256a(0x1f4)]=_0xbecedd,this[_0x2e256a(0x3dd)]=_0x3b1fab,this[_0x2e256a(0x407)]=_0x1786cd,this[_0x2e256a(0x36f)]=_0x584dea,this[_0x2e256a(0x583)]=_0x21486a,_0x36367c?_0x36367c==null||_0x36367c['whenReady']()['then'](()=>this[_0x2e256a(0x567)]()):(this['_logService'][_0x2e256a(0x4b0)](_0x2e256a(0x387),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2e256a(0x567)]());}async[_0x2658a4(0x567)](){const _0x2bc3b3=_0x2658a4,_0x3d8953=this[_0x2bc3b3(0x1f4)][_0x2bc3b3(0x585)](_0x2bc3b3(0x355)),_0x452643=this[_0x2bc3b3(0x1f4)][_0x2bc3b3(0x585)]('type');if(!_0x3d8953||!_0x452643){this[_0x2bc3b3(0x3dd)][_0x2bc3b3(0x4b0)](_0x2bc3b3(0x387),_0x2bc3b3(0x218));return;}switch(Number(_0x452643)){case $[_0x2bc3b3(0x3d2)]:{const _0x27100b=await this['_loadSheet'](_0x3d8953);this[_0x2bc3b3(0x4dc)](_0x27100b);break;}case $[_0x2bc3b3(0x1e8)]:{await this[_0x2bc3b3(0x4be)](_0x3d8953);break;}default:{this['_logService'][_0x2bc3b3(0x2ad)](_0x2bc3b3(0x387),_0x2bc3b3(0x4ca));break;}}}async['_setupSubUnitSync'](_0x45ce2f){const _0x11ad37=_0x2658a4;await this[_0x11ad37(0x1c0)](_0x45ce2f),_0x45ce2f[_0x11ad37(0x2bb)][_0x11ad37(0x348)](v['takeUntil'](this['dispose$']))[_0x11ad37(0x2a3)](_0x2d0bca=>{const _0x584a88=_0x11ad37;_0x2d0bca&&this[_0x584a88(0x591)](_0x2d0bca);}),this[_0x11ad37(0x1f4)][_0x11ad37(0x34f)][_0x11ad37(0x348)](v['takeUntil'](this[_0x11ad37(0x576)]))['subscribe'](()=>this[_0x11ad37(0x1c0)](_0x45ce2f));}[_0x2658a4(0x591)](_0x125eaf,_0x14912d=!0x1){const _0xd991da=_0x2658a4,_0x5b54f5=this['_urlService'][_0xd991da(0x585)](_0xd991da(0x468));_0x125eaf[_0xd991da(0x33b)]()!==_0x5b54f5&&this['_urlService'][_0xd991da(0x534)]('subunit',_0x125eaf['getSheetId'](),_0x14912d);}async['_updateSubUnitFromURLParams'](_0x448828){const _0x1b8982=_0x2658a4;var _0x463d79;const _0x53e284=this[_0x1b8982(0x1f4)]['getParam'](_0x1b8982(0x468));if(!_0x53e284||!_0x448828[_0x1b8982(0x424)](_0x53e284)){const _0x4ff3f7=_0x448828[_0x1b8982(0x45e)]()[0x0],_0x14239e=_0x448828['getSheetBySheetId'](_0x4ff3f7);if(!_0x14239e)return;this[_0x1b8982(0x591)](_0x14239e,!0x0),await this[_0x1b8982(0x407)][_0x1b8982(0x4ea)](C[_0x1b8982(0x4b7)]['id'],{'unitId':_0x448828[_0x1b8982(0x365)](),'subUnitId':_0x4ff3f7});return;}((_0x463d79=_0x448828['getActiveSheet']())==null?void 0x0:_0x463d79[_0x1b8982(0x33b)]())!==_0x53e284&&await this[_0x1b8982(0x407)][_0x1b8982(0x4ea)](C[_0x1b8982(0x4b7)]['id'],{'unitId':_0x448828[_0x1b8982(0x365)](),'subUnitId':_0x53e284});}async[_0x2658a4(0x26c)](_0x5001bc){const _0xe19f5f=_0x2658a4;let _0x313cc1=0x0;const _0x42f310=await this[_0xe19f5f(0x36f)][_0xe19f5f(0x235)](_0x5001bc);return _0x42f310&&(_0x42f310[_0xe19f5f(0x280)]||_0x42f310[_0xe19f5f(0x1ad)][_0xe19f5f(0x532)]!==0x0)&&(_0x313cc1=_0x42f310['rev']),_0x313cc1===0x0&&this[_0xe19f5f(0x3dd)][_0xe19f5f(0x4b0)](_0xe19f5f(0x387),_0xe19f5f(0x1f3)),this[_0xe19f5f(0x583)][_0xe19f5f(0x36b)](_0x5001bc,_0x313cc1);}async[_0x2658a4(0x4be)](_0x3189fe){const _0x1f4100=_0x2658a4;let _0x1bac94=0x0;const _0x2fd1db=await this[_0x1f4100(0x36f)][_0x1f4100(0x235)](_0x3189fe);return _0x2fd1db&&(_0x2fd1db[_0x1f4100(0x280)]||_0x2fd1db['mutations'][_0x1f4100(0x532)]!==0x0)&&(_0x1bac94=_0x2fd1db[_0x1f4100(0x27f)]),_0x1bac94===0x0&&this['_logService']['debug'](_0x1f4100(0x387),_0x1f4100(0x1f3)),this['_snapshotService'][_0x1f4100(0x2df)](_0x3189fe,_0x1bac94);}},exports[_0x2658a4(0x21e)]=Hi([a[_0x2658a4(0x42c)](a['LifecycleStages'][_0x2658a4(0x38b)],exports['DataLoaderController']),ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x2658a4(0x2db)]),ee(0x3,a['Inject'](exports[_0x2658a4(0x20c)])),ee(0x4,a[_0x2658a4(0x349)](_[_0x2658a4(0x4d8)])),ee(0x5,a['Optional'](Wt[_0x2658a4(0x579)]))],exports[_0x2658a4(0x21e)]);var xi=Object[_0x2658a4(0x30c)],ki=Object[_0x2658a4(0x222)],Bi=(_0x1abb0d,_0x1bad2c,_0x297c4f,_0x438c57)=>{for(var _0x13f1e2=_0x438c57>0x1?void 0x0:_0x438c57?ki(_0x1bad2c,_0x297c4f):_0x1bad2c,_0x34087d=_0x1abb0d['length']-0x1,_0xeb88de;_0x34087d>=0x0;_0x34087d--)(_0xeb88de=_0x1abb0d[_0x34087d])&&(_0x13f1e2=(_0x438c57?_0xeb88de(_0x1bad2c,_0x297c4f,_0x13f1e2):_0xeb88de(_0x13f1e2))||_0x13f1e2);return _0x438c57&&_0x13f1e2&&xi(_0x1bad2c,_0x297c4f,_0x13f1e2),_0x13f1e2;},at=(_0x16649a,_0x2f8e30)=>(_0x17a71b,_0x59ea55)=>_0x2f8e30(_0x17a71b,_0x59ea55,_0x16649a);const Vi=_0x2658a4(0x2ec),Wi=_0x2658a4(0x409);let ge=class extends a[_0x2658a4(0x1df)]{constructor(_0x5a5fa9,_0x2472e3){const _0x1242b1=_0x2658a4;super(),this[_0x1242b1(0x446)]=_0x5a5fa9,this['_configService']=_0x2472e3,this[_0x1242b1(0x567)]();}[_0x2658a4(0x567)](){const _0x3631a4=_0x2658a4;this[_0x3631a4(0x2f0)](a['toDisposable'](this[_0x3631a4(0x446)][_0x3631a4(0x595)]['subscribe'](()=>{const _0x2e5e1b=_0x3631a4;var _0x30a55c;const _0x2b14ff=this[_0x2e5e1b(0x446)][_0x2e5e1b(0x47f)]();let _0x44ab17=(_0x30a55c=this[_0x2e5e1b(0x519)][_0x2e5e1b(0x455)](Vi))!=null?_0x30a55c:Wi;_0x2b14ff instanceof a[_0x2e5e1b(0x436)]&&(_0x44ab17=_0x2b14ff[_0x2e5e1b(0x44b)]),document[_0x2e5e1b(0x264)]=_0x44ab17;})));}};ge=Bi([a['OnLifecycle'](a['LifecycleStages'][_0x2658a4(0x43e)],ge),at(0x0,a[_0x2658a4(0x4e5)]),at(0x1,a['IConfigService'])],ge);var Fi=Object[_0x2658a4(0x30c)],Gi=Object[_0x2658a4(0x222)],Yi=(_0x2ab161,_0xc67d5d,_0x1ece30,_0x5257e8)=>{const _0x1e8e6d=_0x2658a4;for(var _0x3bb2dd=_0x5257e8>0x1?void 0x0:_0x5257e8?Gi(_0xc67d5d,_0x1ece30):_0xc67d5d,_0x11c91c=_0x2ab161[_0x1e8e6d(0x532)]-0x1,_0x2d91b4;_0x11c91c>=0x0;_0x11c91c--)(_0x2d91b4=_0x2ab161[_0x11c91c])&&(_0x3bb2dd=(_0x5257e8?_0x2d91b4(_0xc67d5d,_0x1ece30,_0x3bb2dd):_0x2d91b4(_0x3bb2dd))||_0x3bb2dd);return _0x5257e8&&_0x3bb2dd&&Fi(_0xc67d5d,_0x1ece30,_0x3bb2dd),_0x3bb2dd;},$e=(_0x2e654a,_0xcaea2a)=>(_0x103336,_0x3721c8)=>_0xcaea2a(_0x103336,_0x3721c8,_0x2e654a);let Ee=class{constructor(_0x2fc967,_0x2fb869,_0x3e2e4b){const _0x12e616=_0x2658a4;this[_0x12e616(0x519)]=_0x2fc967,this[_0x12e616(0x2a9)]=_0x2fb869,this[_0x12e616(0x3cd)]=_0x3e2e4b,this['init']();}[_0x2658a4(0x52f)](){const _0x43e5ba=_0x2658a4;this[_0x43e5ba(0x2a9)][_0x43e5ba(0x3f9)]({'priority':0x1,'interceptor':(_0x31e09e,_0x2af97c)=>_0x2af97c(_0x31e09e)[_0x43e5ba(0x348)](v[_0x43e5ba(0x1e7)](async _0x112a23=>{const _0x115e83=_0x43e5ba,_0x1d20a7=_0x112a23;if(_0x1d20a7[_0x115e83(0x533)]===0x191&&window['confirm'](this[_0x115e83(0x3cd)]['t'](_0x115e83(0x4b4)))){const _0x596195=window[_0x115e83(0x1b7)](window[_0x115e83(0x442)][_0x115e83(0x20e)]);window['location'][_0x115e83(0x20e)]=this[_0x115e83(0x5a9)]()+_0x115e83(0x4f0)+_0x596195;}return _0x1d20a7;}))});}[_0x2658a4(0x5a9)](){const _0x44a464=_0x2658a4;var _0x1e35b6,_0x5492bc;const _0x295b38=this['_configService']['getConfig'](mt),_0x5701de=this[_0x44a464(0x519)][_0x44a464(0x455)](L);return(_0x5492bc=(_0x1e35b6=_0x5701de==null?void 0x0:_0x5701de[_0x44a464(0x26d)])!=null?_0x1e35b6:_0x295b38)!=null?_0x5492bc:es;}};Ee=Yi([$e(0x0,a[_0x2658a4(0x35a)]),$e(0x1,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)])),$e(0x2,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)]))],Ee);var Ki=Object[_0x2658a4(0x30c)],Xi=Object[_0x2658a4(0x222)],qi=(_0x237571,_0x29f7ce,_0x58e427,_0x3fd0ba)=>{const _0x1cb8ea=_0x2658a4;for(var _0x4ce3a7=_0x3fd0ba>0x1?void 0x0:_0x3fd0ba?Xi(_0x29f7ce,_0x58e427):_0x29f7ce,_0x2acd35=_0x237571[_0x1cb8ea(0x532)]-0x1,_0x3c1448;_0x2acd35>=0x0;_0x2acd35--)(_0x3c1448=_0x237571[_0x2acd35])&&(_0x4ce3a7=(_0x3fd0ba?_0x3c1448(_0x29f7ce,_0x58e427,_0x4ce3a7):_0x3c1448(_0x4ce3a7))||_0x4ce3a7);return _0x3fd0ba&&_0x4ce3a7&&Ki(_0x29f7ce,_0x58e427,_0x4ce3a7),_0x4ce3a7;},ct=(_0x10996a,_0x5080bd)=>(_0x3adbe8,_0x575777)=>_0x5080bd(_0x3adbe8,_0x575777,_0x10996a);const wt=_0x2658a4(0x3c6),zi=_0x2658a4(0x257);exports[_0x2658a4(0x34d)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x332b38,_0x19f33f){const _0x5b057d=_0x2658a4;super(),this[_0x5b057d(0x213)]=_0x332b38,this[_0x5b057d(0x519)]=_0x19f33f,this[_0x5b057d(0x59f)]();}[_0x2658a4(0x59f)](){const _0x346b87=_0x2658a4,_0x1b4328=this;this['disposeWithMe'](this['_HTTPService'][_0x346b87(0x3f9)]({'priority':0x3e7,'interceptor':P[_0x346b87(0x2cb)]({'isMatch'(_0xb9a154){const _0x427116=_0x346b87;var _0x94f408;if(_0xb9a154['method']===_0x427116(0x3a8)&&((_0x94f408=_0xb9a154[_0x427116(0x56a)])!=null&&_0x94f408[_0x427116(0x2e3)])){const {objectID:_0x4c0e03,objectType:_0x56ae5c}=_0xb9a154[_0x427116(0x56a)][_0x427116(0x2e3)]||{};if(!_0x4c0e03||_0x56ae5c===void 0x0)return!0x1;const _0x30f20b=_0x1b4328['_getAPIPrefixPath']()+'/'+_0x56ae5c+_0x427116(0x495)+_0x4c0e03+_0x427116(0x4da);if(_0xb9a154[_0x427116(0x26b)]===_0x30f20b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5526e4){const _0xd87a88=_0x346b87;var _0x38bc7a;return(_0x38bc7a=_0x5526e4[_0xd87a88(0x56a)])==null?void 0x0:_0x38bc7a[_0xd87a88(0x2e3)];},'mergeParamsToRequest'(_0x57e193,_0x589595){const _0x1cacad=_0x346b87,_0x4c1b05=_0x1b4328['_getAPIPrefixPath']()+_0x1cacad(0x339),_0x247168=_0x57e193[_0x1cacad(0x20d)]((_0x120249,_0x72c57b)=>{const _0xfcf4b0=_0x1cacad,{unitID:_0x504898,objectID:_0xb3768f,objectType:_0x20cf1b,actions:_0x23add9}=_0x72c57b;return _0x120249[_0x504898]||(_0x120249[_0x504898]={}),_0x120249[_0x504898][_0xb3768f]||(_0x120249[_0x504898][_0xb3768f]={'objectID':_0xb3768f,'objectType':_0x20cf1b,'actions':[]}),_0x120249[_0x504898][_0xb3768f][_0xfcf4b0(0x342)][_0xfcf4b0(0x4d7)](..._0x23add9),_0x120249;},{}),_0x30ed90=[];for(const _0x2512ca in _0x247168)for(const _0x77b0f3 in _0x247168[_0x2512ca]){const {actions:_0x5f5a66,objectType:_0x2a4677}=_0x247168[_0x2512ca][_0x77b0f3],_0x419248=[...new Set(_0x5f5a66)];_0x30ed90[_0x1cacad(0x4d7)]({'unitID':_0x2512ca,'objectID':_0x77b0f3,'objectType':_0x2a4677,'actions':_0x419248});}return new P[(_0x1cacad(0x58b))]('POST',_0x4c1b05,{'headers':_0x589595[_0x1cacad(0x368)],'withCredentials':_0x589595['withCredentials'],'responseType':_0x589595[_0x1cacad(0x30f)],'body':{'requests':_0x30ed90}});}},{'distributeResult'(_0x5ba452,_0x477a83){const _0x2c379a=_0x346b87,{objectActions:_0x4e53a6}=_0x5ba452;return _0x477a83[_0x2c379a(0x1ec)](_0x41fb5c=>{const _0x97eecc=_0x2c379a,{unitID:_0x2d50b5,objectID:_0xf6e787,actions:_0x149f4e}=_0x41fb5c,_0x2a672d=_0x4e53a6['find'](_0x2e1284=>_0x2e1284[_0x97eecc(0x35d)]===_0x2d50b5&&_0x2e1284[_0x97eecc(0x1c6)]===_0xf6e787),_0x3088af=_0x149f4e[_0x97eecc(0x1ec)](_0x122923=>_0x2a672d==null?void 0x0:_0x2a672d['actions'][_0x97eecc(0x505)](_0x4f7887=>_0x4f7887[_0x97eecc(0x571)]===_0x122923))[_0x97eecc(0x2cd)](_0xa19a51=>!!_0xa19a51);return{'config':_0x41fb5c,'result':{'actions':_0x3088af,'error':_0x5ba452['error']}};});}})}));}['_getAPIPrefixPath'](){const _0xe21618=_0x2658a4;var _0x357faa,_0x3af024;const _0x5a2f5f=this['_configService'][_0xe21618(0x455)](wt),_0x3d4164=this[_0xe21618(0x519)]['getConfig'](L);return(_0x3af024=(_0x357faa=_0x3d4164==null?void 0x0:_0x3d4164[_0xe21618(0x598)])!=null?_0x357faa:_0x5a2f5f)!=null?_0x3af024:zi;}async[_0x2658a4(0x23e)](_0xdb8977){const _0x370fed=_0x2658a4,_0x382e9f=this['_getAPIPrefixPath']()+'/'+_0xdb8977[_0x370fed(0x281)]+'/object';return(await this[_0x370fed(0x213)]['post'](_0x382e9f,{'body':_0xdb8977}))[_0x370fed(0x2e3)][_0x370fed(0x1c6)]||'';}async[_0x2658a4(0x21b)](_0x11de43){const _0x18f091=_0x2658a4,_0x2b1b34=this['_getAPIPrefixPath']()+_0x18f091(0x559);return(await this['_HTTPService'][_0x18f091(0x2c2)](_0x2b1b34,{'body':_0x11de43}))[_0x18f091(0x2e3)]['objects'];}async[_0x2658a4(0x279)](_0x3427ca){const _0x57bfba=_0x2658a4,_0x559cf9=this[_0x57bfba(0x4d9)]()+'/'+_0x3427ca[_0x57bfba(0x281)]+'/object/'+_0x3427ca[_0x57bfba(0x1c6)];await this[_0x57bfba(0x213)]['put'](_0x559cf9,{'body':_0x3427ca});}async[_0x2658a4(0x3cf)](_0x13b587){const _0x4925ea=_0x2658a4,_0x20d76d=this['_getAPIPrefixPath']()+'/'+_0x13b587[_0x4925ea(0x281)]+'/object/'+_0x13b587['objectID']+_0x4925ea(0x4da);return(await this[_0x4925ea(0x213)][_0x4925ea(0x2c2)](_0x20d76d,{'body':_0x13b587}))[_0x4925ea(0x2e3)][_0x4925ea(0x342)];}async[_0x2658a4(0x319)](_0x22e3da){const _0x508a7a=_0x2658a4,_0x27450a=this[_0x508a7a(0x4d9)]()+_0x508a7a(0x339);return(await this[_0x508a7a(0x213)]['post'](_0x27450a,{'body':{'requests':_0x22e3da}}))[_0x508a7a(0x2e3)][_0x508a7a(0x2f8)];}async['listRoles'](_0x93f5ab){const _0x4bd43c=_0x2658a4,_0x3ad430=this[_0x4bd43c(0x4d9)]()+'/'+_0x93f5ab[_0x4bd43c(0x281)]+_0x4bd43c(0x569),_0x7e7b08=await this[_0x4bd43c(0x213)]['post'](_0x3ad430,{'body':_0x93f5ab});return{'roles':_0x7e7b08[_0x4bd43c(0x2e3)]['roles'],'actions':_0x7e7b08[_0x4bd43c(0x2e3)]['actions']};}async[_0x2658a4(0x53b)](_0x4be69a){const _0x3da013=_0x2658a4,_0x372edd=this[_0x3da013(0x4d9)]()+_0x3da013(0x25a);await this[_0x3da013(0x213)][_0x3da013(0x364)](_0x372edd,{'params':{'collaboratorID':_0x4be69a['collaboratorID'],'objectID':_0x4be69a[_0x3da013(0x1c6)],'unitID':_0x4be69a[_0x3da013(0x35d)]}});}async[_0x2658a4(0x487)](_0x22b40a){const _0x397599=_0x2658a4,_0x30ab3d=this[_0x397599(0x4d9)]()+_0x397599(0x25a);await this[_0x397599(0x213)][_0x397599(0x302)](_0x30ab3d,{'body':_0x22b40a});}async[_0x2658a4(0x35b)](_0x136832){const _0x802809=_0x2658a4,_0x4a4ccb=this[_0x802809(0x4d9)]()+_0x802809(0x25a);await this['_HTTPService'][_0x802809(0x2c2)](_0x4a4ccb,{'body':_0x136832});}async[_0x2658a4(0x310)](_0x22c027){const _0x17b561=_0x2658a4,_0x8c2ee4=this[_0x17b561(0x4d9)]()+_0x17b561(0x25a);return(await this['_HTTPService'][_0x17b561(0x3cc)](_0x8c2ee4,{'params':{'objectID':_0x22c027[_0x17b561(0x1c6)],'unitID':_0x22c027[_0x17b561(0x35d)]}}))[_0x17b561(0x2e3)][_0x17b561(0x2b7)];}async[_0x2658a4(0x20b)](_0x250fc6){const _0x3408fa=_0x2658a4,_0x1d60ff=this[_0x3408fa(0x4d9)]()+'/collaborator';await this['_HTTPService'][_0x3408fa(0x2a4)](_0x1d60ff,{'body':_0x250fc6});}},exports[_0x2658a4(0x34d)]=qi([ct(0x0,a['Inject'](P[_0x2658a4(0x414)])),ct(0x1,a['Inject'](a['IConfigService']))],exports[_0x2658a4(0x34d)]);var Ji=Object[_0x2658a4(0x30c)],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x429b64,_0x311e39,_0x42c563,_0x51a87c)=>{const _0x451561=_0x2658a4;for(var _0x5118ac=_0x51a87c>0x1?void 0x0:_0x51a87c?Zi(_0x311e39,_0x42c563):_0x311e39,_0x549e3b=_0x429b64[_0x451561(0x532)]-0x1,_0x2ff0ea;_0x549e3b>=0x0;_0x549e3b--)(_0x2ff0ea=_0x429b64[_0x549e3b])&&(_0x5118ac=(_0x51a87c?_0x2ff0ea(_0x311e39,_0x42c563,_0x5118ac):_0x2ff0ea(_0x5118ac))||_0x5118ac);return _0x51a87c&&_0x5118ac&&Ji(_0x311e39,_0x42c563,_0x5118ac),_0x5118ac;},en=(_0x440bfe,_0xe50aac)=>(_0x423c2e,_0x3c2b57)=>_0xe50aac(_0x423c2e,_0x3c2b57,_0x440bfe);let be=class{constructor(_0x3cd29b){const _0x4d9eeb=_0x2658a4;this[_0x4d9eeb(0x2a9)]=_0x3cd29b,this[_0x4d9eeb(0x479)]();}[_0x2658a4(0x479)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x43fa9b,_0x37f398)=>{const _0x135b3b=_0x5b2d,_0x2c205f=_0x43fa9b['headers'],_0x39762e=Ft[_0x135b3b(0x1ca)]();return _0x39762e&&_0x2c205f[_0x135b3b(0x2ce)]('x-univer-host',_0x39762e),_0x37f398(_0x43fa9b);}});}};be=Qi([en(0x0,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)]))],be);var tn=Object[_0x2658a4(0x30c)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x519c5b,_0x15e58f,_0x2f8d6d,_0x1da292)=>{for(var _0x4112fc=_0x1da292>0x1?void 0x0:_0x1da292?sn(_0x15e58f,_0x2f8d6d):_0x15e58f,_0x40a362=_0x519c5b['length']-0x1,_0x19d73d;_0x40a362>=0x0;_0x40a362--)(_0x19d73d=_0x519c5b[_0x40a362])&&(_0x4112fc=(_0x1da292?_0x19d73d(_0x15e58f,_0x2f8d6d,_0x4112fc):_0x19d73d(_0x4112fc))||_0x4112fc);return _0x1da292&&_0x4112fc&&tn(_0x15e58f,_0x2f8d6d,_0x4112fc),_0x4112fc;},je=(_0x4c890b,_0x5eaca2)=>(_0xf3af55,_0x5cbd40)=>_0x5eaca2(_0xf3af55,_0x5cbd40,_0x4c890b);const rn=[_0x2658a4(0x2e0),_0x2658a4(0x228),_0x2658a4(0x530),_0x2658a4(0x352),_0x2658a4(0x556)],on=0x5*0x400*0x400,an=_0x2658a4(0x233),cn=_0x2658a4(0x37f),ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0x2658a4(0x205);exports[_0x2658a4(0x3d8)]=class{constructor(_0x288569,_0x5cd985,_0x463e01){const _0x326fa8=_0x2658a4;d(this,_0x326fa8(0x373),0x0),d(this,_0x326fa8(0x335),new v[(_0x326fa8(0x1f9))]()),d(this,'change$',this[_0x326fa8(0x335)]),d(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x288569,this[_0x326fa8(0x519)]=_0x5cd985,this[_0x326fa8(0x446)]=_0x463e01);}[_0x2658a4(0x1ae)](_0x41cba4){const _0x4d995a=_0x2658a4;this[_0x4d995a(0x373)]=_0x41cba4,this[_0x4d995a(0x335)][_0x4d995a(0x460)](_0x41cba4);}[_0x2658a4(0x22a)](_0x5a877f,_0x1de9e4){const _0x5b71ac=_0x2658a4;if(_0x1de9e4===A['ImageSourceType'][_0x5b71ac(0x244)]){const _0x4a30dd=new Image();return _0x4a30dd[_0x5b71ac(0x3e3)]=_0x5a877f,_0x4a30dd;}return this['_imageSourceCache'][_0x5b71ac(0x3cc)](_0x5a877f);}[_0x2658a4(0x371)](_0x12dc7d,_0x4187b4,_0x1ac19e){const _0x3b46f3=_0x2658a4;_0x4187b4===A[_0x3b46f3(0x57f)][_0x3b46f3(0x244)]||_0x1ac19e==null||this[_0x3b46f3(0x52b)][_0x3b46f3(0x2ce)](_0x12dc7d,_0x1ac19e);}async[_0x2658a4(0x45d)](_0x2d7022){const _0x4b524e=_0x2658a4;try{const _0x8519ce=this[_0x4b524e(0x453)](this[_0x4b524e(0x5a0)](),''+_0x2d7022),_0x16ef33=(await this['_httpService'][_0x4b524e(0x3cc)](_0x8519ce))[_0x4b524e(0x2e3)];if(_0x16ef33['error']&&_0x16ef33[_0x4b524e(0x2ad)]['code']===It['OK']){const _0x4cb54a=new URL(_0x16ef33[_0x4b524e(0x26b)],this[_0x4b524e(0x2e1)]())['toString']();return Promise[_0x4b524e(0x44a)](_0x4cb54a);}return Promise[_0x4b524e(0x56c)](_0x16ef33[_0x4b524e(0x2ad)]);}catch(_0x3690fd){return Promise[_0x4b524e(0x56c)](_0x3690fd);}}async[_0x2658a4(0x4bb)](_0x135c96){const _0x50348b=_0x2658a4;let _0x20c1dd='';if(!rn['includes'](_0x135c96[_0x50348b(0x2aa)]))return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)]['ERROR_IMAGE_TYPE']));if(_0x135c96[_0x50348b(0x357)]>on)return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)][_0x50348b(0x52a)]));try{const _0x92c3b9=new FormData();_0x92c3b9[_0x50348b(0x472)]('file',_0x135c96);const _0x35354a=this[_0x50348b(0x446)][_0x50348b(0x47f)](),_0x11fe2c=_0x35354a==null?void 0x0:_0x35354a[_0x50348b(0x365)]();if(!_0x11fe2c)throw new Error('unitId\x20is\x20not\x20found');const _0x5ebe48=this['_getUploadFileURL']()+_0x50348b(0x496)+_0x135c96['size'][_0x50348b(0x458)]()+_0x50348b(0x561)+pt[_0x50348b(0x3db)]+'&assign='+encodeURIComponent(_0x11fe2c),_0x22f2e4=await(await fetch(_0x5ebe48,{'method':_0x50348b(0x3a8),'body':_0x92c3b9}))[_0x50348b(0x242)]();if(typeof _0x22f2e4[_0x50348b(0x2e2)]!=_0x50348b(0x345))return this['_decreaseWaiting'](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)][_0x50348b(0x23d)]));_0x20c1dd=_0x22f2e4['FileId'];}catch{return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)]['ERROR_IMAGE']));}return new Promise((_0x411a32,_0xd75344)=>{const _0x5d7375=_0x50348b,_0x4e3476=new FileReader();_0x4e3476[_0x5d7375(0x3e1)](_0x135c96),_0x4e3476[_0x5d7375(0x53a)]=_0x51310d=>{const _0x42f23d=_0x5d7375;var _0x5cc881;const _0x3492d9=(_0x5cc881=_0x51310d[_0x42f23d(0x344)])==null?void 0x0:_0x5cc881[_0x42f23d(0x209)];if(_0x3492d9==null){this['_decreaseWaiting'](),_0xd75344(new Error(A['ImageUploadStatusType'][_0x42f23d(0x23d)]));return;}const _0x45608a=a[_0x42f23d(0x2d0)][_0x42f23d(0x5b8)](0x6);_0x411a32({'imageId':_0x45608a,'imageSourceType':A[_0x42f23d(0x57f)][_0x42f23d(0x282)],'source':_0x20c1dd,'base64Cache':_0x3492d9,'status':A[_0x42f23d(0x396)]['SUCCUSS']}),this[_0x42f23d(0x3cb)]();};});}[_0x2658a4(0x399)](){const _0x3ac335=_0x2658a4;var _0x19db21,_0x383909;const _0x2816c7=this[_0x3ac335(0x519)]['getConfig'](an),_0x103957=this['_configService'][_0x3ac335(0x455)](L);return(_0x383909=(_0x19db21=_0x103957==null?void 0x0:_0x103957[_0x3ac335(0x550)])!=null?_0x19db21:_0x2816c7)!=null?_0x383909:cn;}[_0x2658a4(0x5a0)](){const _0x1294c9=_0x2658a4;var _0xbebff2,_0x190b26;const _0x5b02e2=this[_0x1294c9(0x519)][_0x1294c9(0x455)](ln),_0x3adf59=this[_0x1294c9(0x519)]['getConfig'](L);return(_0x190b26=(_0xbebff2=_0x3adf59==null?void 0x0:_0x3adf59['signUrlServerUrl'])!=null?_0xbebff2:_0x5b02e2)!=null?_0x190b26:hn;}[_0x2658a4(0x2e1)](){const _0xb81556=_0x2658a4;var _0x352c59;const _0x1c77f7=this[_0xb81556(0x519)][_0xb81556(0x455)](L);return(_0x352c59=_0x1c77f7==null?void 0x0:_0x1c77f7[_0xb81556(0x3bb)])!=null?_0x352c59:location[_0xb81556(0x4a7)];}[_0x2658a4(0x453)](_0x805b88,_0x346b62){const _0x1e4773=_0x2658a4;return _0x805b88[_0x1e4773(0x285)](_0x1e4773(0x3ca),_0x346b62);}['_decreaseWaiting'](){const _0x1b2a88=_0x2658a4;this[_0x1b2a88(0x373)]-=0x1,this[_0x1b2a88(0x335)]['next'](this[_0x1b2a88(0x373)]);}},exports[_0x2658a4(0x3d8)]=nn([je(0x0,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)])),je(0x1,a['IConfigService']),je(0x2,a['Inject'](a[_0x2658a4(0x4e5)]))],exports['ImageIoService']);var _n=Object[_0x2658a4(0x30c)],un=Object[_0x2658a4(0x222)],dn=(_0x341042,_0x512bdb,_0x2c2193,_0x5d7cd4)=>{const _0x5bf134=_0x2658a4;for(var _0x256515=_0x5d7cd4>0x1?void 0x0:_0x5d7cd4?un(_0x512bdb,_0x2c2193):_0x512bdb,_0x5a232a=_0x341042[_0x5bf134(0x532)]-0x1,_0x4d2435;_0x5a232a>=0x0;_0x5a232a--)(_0x4d2435=_0x341042[_0x5a232a])&&(_0x256515=(_0x5d7cd4?_0x4d2435(_0x512bdb,_0x2c2193,_0x256515):_0x4d2435(_0x256515))||_0x256515);return _0x5d7cd4&&_0x256515&&_n(_0x512bdb,_0x2c2193,_0x256515),_0x256515;},he=(_0x2a0c5a,_0x2aa628)=>(_0x4aba83,_0x5332d6)=>_0x2aa628(_0x4aba83,_0x5332d6,_0x2a0c5a);let me=class extends a[_0x2658a4(0x354)]{constructor(_0x4206c4,_0x4b65f7,_0x159273,_0x432bd9,_0x4c7df5){const _0x34e05c=_0x2658a4;super(),this['_injector']=_0x4206c4,this[_0x34e05c(0x446)]=_0x4b65f7,this[_0x34e05c(0x34c)]=_0x159273,this[_0x34e05c(0x3a0)]=_0x432bd9,this[_0x34e05c(0x1a5)]=_0x4c7df5,this[_0x34e05c(0x4ff)](),this[_0x34e05c(0x48f)]();}[_0x2658a4(0x48f)](){const _0x18ef36=_0x2658a4,_0x40f428=async _0x47808a=>{const _0x14a441=_0x5b2d;(await this['_collaborationSessionService'][_0x14a441(0x36d)](_0x47808a))[_0x14a441(0x39e)]['pipe'](E[_0x14a441(0x2cd)](_0x8e5203=>_0x8e5203[_0x14a441(0x44e)]===_['CollaborationEvent'][_0x14a441(0x38a)]),E[_0x14a441(0x3b1)](this['dispose$']))[_0x14a441(0x2a3)](_0x29421a=>{const _0x39bffa=_0x14a441,_0x5234d3=_0x29421a,{reason:_0x4647d6}=_0x5234d3['data'];this['_injector']['get'](N[_0x39bffa(0x305)])['show']({'type':X[_0x39bffa(0x406)][_0x39bffa(0x3c2)],'content':this[_0x39bffa(0x1a5)]['t']('collaboration.closeRoom')+'('+_0x4647d6+')'}),this['_permissionService'][_0x39bffa(0x356)](new C[(_0x39bffa(0x541))](_0x47808a)['id'],!0x1),this[_0x39bffa(0x3a0)][_0x39bffa(0x4b6)](_0x47808a);});};v[_0x18ef36(0x50c)](this[_0x18ef36(0x446)][_0x18ef36(0x214)](a['UniverInstanceType'][_0x18ef36(0x3d2)]),this['_univerInstanceService'][_0x18ef36(0x214)](a['UniverInstanceType'][_0x18ef36(0x1e8)]))['pipe'](E['map'](_0x318e15=>_0x318e15[_0x18ef36(0x365)]()),E[_0x18ef36(0x2cd)](_0x3e6a0e=>!a[_0x18ef36(0x50f)](_0x3e6a0e)),E['takeUntil'](this[_0x18ef36(0x576)]))[_0x18ef36(0x2a3)](_0x404faf=>{_0x40f428(_0x404faf);});}[_0x2658a4(0x4ff)](){const _0x112233=_0x2658a4,_0x3d9673=async _0x1ec012=>{const _0x1c4de1=_0x5b2d;(await this['_collaborationSessionService']['requireSession'](_0x1ec012))['event$']['pipe'](E[_0x1c4de1(0x2cd)](_0xa53b44=>_0xa53b44[_0x1c4de1(0x44e)]===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this['dispose$']))['subscribe'](_0x50235d=>{const _0x1a8e7e=_0x1c4de1,_0x19db41=_0x50235d,{objectId:_0x27b40a}=_0x19db41['data'],_0x30edc4=this[_0x1a8e7e(0x584)]['get'](te[_0x1a8e7e(0x31e)]);_0x27b40a===_0x1ec012?_0x30edc4[_0x1a8e7e(0x4a9)](_0x1ec012):_0x30edc4['refreshPermission'](_0x1ec012,_0x27b40a);});};v[_0x112233(0x50c)](this[_0x112233(0x446)][_0x112233(0x214)](a[_0x112233(0x313)][_0x112233(0x3d2)]),this[_0x112233(0x446)]['getTypeOfUnitAdded$'](a[_0x112233(0x313)]['UNIVER_DOC']))[_0x112233(0x348)](E[_0x112233(0x1ec)](_0x32f9b2=>_0x32f9b2[_0x112233(0x365)]()),E[_0x112233(0x2cd)](_0xdec41f=>!a[_0x112233(0x50f)](_0xdec41f)),E[_0x112233(0x3b1)](this[_0x112233(0x576)]))['subscribe'](_0x582c3e=>{_0x3d9673(_0x582c3e);});}};me=dn([a['OnLifecycle'](a[_0x2658a4(0x21a)][_0x2658a4(0x38b)],me),he(0x0,a['Inject'](a[_0x2658a4(0x1f0)])),he(0x1,a[_0x2658a4(0x4e5)]),he(0x2,a[_0x2658a4(0x223)]),he(0x3,a[_0x2658a4(0x349)](exports[_0x2658a4(0x4c6)])),he(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)]))],me);var Sn=Object['defineProperty'],vn=Object['getOwnPropertyDescriptor'],fn=(_0x1cc58f,_0x22db4c,_0x5dcc88,_0x18cc2c)=>{for(var _0x1de55d=_0x18cc2c>0x1?void 0x0:_0x18cc2c?vn(_0x22db4c,_0x5dcc88):_0x22db4c,_0xd69be1=_0x1cc58f['length']-0x1,_0x4086e2;_0xd69be1>=0x0;_0xd69be1--)(_0x4086e2=_0x1cc58f[_0xd69be1])&&(_0x1de55d=(_0x18cc2c?_0x4086e2(_0x22db4c,_0x5dcc88,_0x1de55d):_0x4086e2(_0x1de55d))||_0x1de55d);return _0x18cc2c&&_0x1de55d&&Sn(_0x22db4c,_0x5dcc88,_0x1de55d),_0x1de55d;},lt=(_0x5a8c7b,_0x9aa946)=>(_0x382044,_0x2efa39)=>_0x9aa946(_0x382044,_0x2efa39,_0x5a8c7b);exports[_0x2658a4(0x4cf)]=class{constructor(_0x60ad4b,_0x40fd43){const _0x20a931=_0x2658a4;this[_0x20a931(0x519)]=_0x60ad4b,this[_0x20a931(0x2a9)]=_0x40fd43;}async[_0x2658a4(0x2c4)](_0x5ceda1,_0x32595a){const _0x43e314=_0x2658a4;var _0x1c8a38;const {unitID:_0x3010c4,type:_0x4cb8a4,revision:_0x206ef6=0x0}=_0x32595a,_0x294b76=this[_0x43e314(0x3d5)]()+'/'+_0x4cb8a4+_0x43e314(0x4f9)+_0x3010c4+_0x43e314(0x2de)+_0x206ef6,_0x45acab=(await this['_httpService'][_0x43e314(0x3cc)](_0x294b76))[_0x43e314(0x2e3)],_0x1d7732=(_0x1c8a38=_0x45acab[_0x43e314(0x50b)])==null?void 0x0:_0x1c8a38[_0x43e314(0x291)];if(_0x1d7732){const _0x42fd15=_0x1d7732==null?void 0x0:_0x1d7732[_0x43e314(0x4de)],_0x44ec57=_[_0x43e314(0x1bd)][_0x43e314(0x246)](_[_0x43e314(0x328)](_0x42fd15));_0x1d7732[_0x43e314(0x4de)]=_0x44ec57,Object[_0x43e314(0x2ab)](_0x1d7732[_0x43e314(0x36a)])[_0x43e314(0x4ab)](([,_0x1e546a])=>{const _0x1812c4=_0x43e314,_0x42a45c=_0x1e546a[_0x1812c4(0x4de)],_0x5a5599=_[_0x1812c4(0x1bd)][_0x1812c4(0x246)](_[_0x1812c4(0x328)](_0x42a45c));_0x1e546a[_0x1812c4(0x4de)]=_0x5a5599;});}return _0x45acab;}async[_0x2658a4(0x516)](_0xd483c5,_0x1e01df){const _0x11a542=_0x2658a4,{unitID:_0x404882,type:_0x3fb5cb,blockID:_0x411217}=_0x1e01df,_0x248e2a=this[_0x11a542(0x351)]()+'/'+_0x3fb5cb+'/unit/'+_0x404882+_0x11a542(0x2d9)+_0x411217;return(await this[_0x11a542(0x2a9)]['get'](_0x248e2a))[_0x11a542(0x2e3)];}async[_0x2658a4(0x299)](_0x33adb0,_0x255e25){const _0x31ad9b=_0x2658a4,{unitID:_0x3754cc,type:_0x4e44ac,blockID:_0x1fa331}=_0x255e25,_0x1911c2=this['_getAPIPrefix']()+_0x31ad9b(0x2d9)+_0x4e44ac+_0x31ad9b(0x4f9)+_0x3754cc+_0x31ad9b(0x2d9)+_0x1fa331;return(await this['_httpService'][_0x31ad9b(0x3cc)](_0x1911c2))[_0x31ad9b(0x2e3)];}async['fetchMissingChangesets'](_0x48325b,_0x2bec53){const _0x2d7e95=_0x2658a4,{unitID:_0x29d5ba,type:_0x201875,from:_0x97faa5,to:_0x1f2609}=_0x2bec53,_0x564787=this[_0x2d7e95(0x351)]()+'/'+_0x201875+'/unit/'+_0x29d5ba+_0x2d7e95(0x293)+_0x97faa5+_0x2d7e95(0x454)+_0x1f2609;return(await this[_0x2d7e95(0x2a9)][_0x2d7e95(0x3cc)](_0x564787))['body'];}['_getSnapshotAPIPrefix'](){const _0x2852b9=_0x2658a4;var _0x1067f0;return(_0x1067f0=this[_0x2852b9(0x519)]['getConfig'](_t))!=null?_0x1067f0:this[_0x2852b9(0x351)]();}[_0x2658a4(0x351)](){const _0x1fd3e1=_0x2658a4;var _0x4e3cf3,_0x3a684d;const _0x260fd6=this[_0x1fd3e1(0x519)][_0x1fd3e1(0x455)](ht),_0x1e2635=this[_0x1fd3e1(0x519)][_0x1fd3e1(0x455)](L);return(_0x3a684d=(_0x4e3cf3=_0x1e2635==null?void 0x0:_0x1e2635['snapshotServerUrl'])!=null?_0x4e3cf3:_0x260fd6)!=null?_0x3a684d:Gt;}async[_0x2658a4(0x475)](_0x1bbf20,_0x30f740){const _0x412b7f=_0x2658a4,_0x55eece='/universer-api/snapshot/'+_0x30f740[_0x412b7f(0x2aa)]+'/unit/'+_0x30f740[_0x412b7f(0x35d)]+_0x412b7f(0x248);return(await this[_0x412b7f(0x2a9)][_0x412b7f(0x3cc)](_0x55eece,{'params':{'resourceId':JSON[_0x412b7f(0x427)](_0x30f740[_0x412b7f(0x331)])}}))[_0x412b7f(0x2e3)];}['saveSnapshot'](){const _0x5b91f6=_0x2658a4;throw new Error(_0x5b91f6(0x1d3));}[_0x2658a4(0x4f6)](){const _0x137b1d=_0x2658a4;throw new Error(_0x137b1d(0x1d3));}[_0x2658a4(0x5b7)](){const _0x4fae91=_0x2658a4;throw new Error(_0x4fae91(0x1d3));}[_0x2658a4(0x269)](){const _0x19a6d5=_0x2658a4;throw new Error(_0x19a6d5(0x1d3));}},exports[_0x2658a4(0x4cf)]=fn([lt(0x0,a['IConfigService']),lt(0x1,a[_0x2658a4(0x349)](P['HTTPService']))],exports[_0x2658a4(0x4cf)]);var gn=Object[_0x2658a4(0x30c)],mn=Object[_0x2658a4(0x222)],In=(_0x46d173,_0x41fbd2,_0x409b34,_0x42616e)=>{const _0x2a30fc=_0x2658a4;for(var _0x9dacbe=_0x42616e>0x1?void 0x0:_0x42616e?mn(_0x41fbd2,_0x409b34):_0x41fbd2,_0x1f198e=_0x46d173[_0x2a30fc(0x532)]-0x1,_0x14bf7b;_0x1f198e>=0x0;_0x1f198e--)(_0x14bf7b=_0x46d173[_0x1f198e])&&(_0x9dacbe=(_0x42616e?_0x14bf7b(_0x41fbd2,_0x409b34,_0x9dacbe):_0x14bf7b(_0x9dacbe))||_0x9dacbe);return _0x42616e&&_0x9dacbe&&gn(_0x41fbd2,_0x409b34,_0x9dacbe),_0x9dacbe;},_e=(_0x54f4c4,_0x265c85)=>(_0x495fba,_0x3996e5)=>_0x265c85(_0x495fba,_0x3996e5,_0x54f4c4);let Be=class extends a['LocalUndoRedoService']{constructor(_0x185638,_0x5d86b4,_0x49859c,_0x128d92,_0x388481){super(_0x185638,_0x5d86b4,_0x49859c),this['_transformService']=_0x128d92,this['_logService']=_0x388481;}[_0x2658a4(0x298)](_0x5ba329,_0x68d474){const _0x586d2e=_0x2658a4,_0x17e076=this[_0x586d2e(0x3be)](_0x5ba329);if(_0x17e076)try{const _0x48b18c=this[_0x586d2e(0x25d)](_0x17e076,_0x68d474);this[_0x586d2e(0x3a3)](_0x5ba329,_0x48b18c);}catch(_0x29cb67){this[_0x586d2e(0x3dd)][_0x586d2e(0x2ad)](_0x586d2e(0x48c),_0x29cb67),this[_0x586d2e(0x47b)](_0x5ba329);}const _0x2d9c83=this[_0x586d2e(0x547)](_0x5ba329);if(_0x2d9c83)try{const _0x3e4c75=this[_0x586d2e(0x25d)](_0x2d9c83,_0x68d474);this[_0x586d2e(0x249)](_0x5ba329,_0x3e4c75);}catch(_0x2a9516){this['_logService'][_0x586d2e(0x2ad)](_0x2a9516),this[_0x586d2e(0x401)](_0x5ba329);}}['_clearUndo'](_0x2425d8){const _0x5e8aee=_0x2658a4,_0x2445ad=this[_0x5e8aee(0x3be)](_0x2425d8);_0x2445ad&&(_0x2445ad[_0x5e8aee(0x532)]=0x0,this[_0x5e8aee(0x2c1)]());}['_clearRedo'](_0x505dc7){const _0x45e3cc=_0x2658a4,_0x45e6b7=this['_getRedoStack'](_0x505dc7);_0x45e6b7&&(_0x45e6b7['length']=0x0,this[_0x45e3cc(0x2c1)]());}['_substituteUndoStack'](_0x250cda,_0x44f912){const _0x3f70ed=_0x2658a4;this[_0x3f70ed(0x1e3)][_0x3f70ed(0x2ce)](_0x250cda,_0x44f912),this[_0x3f70ed(0x2c1)]();}[_0x2658a4(0x249)](_0x56f797,_0x4098f6){const _0x3e72e7=_0x2658a4;this[_0x3e72e7(0x1f1)]['set'](_0x56f797,_0x4098f6),this[_0x3e72e7(0x2c1)]();}[_0x2658a4(0x25d)](_0x470762,_0x3d39a8){const _0x224034=_0x2658a4,_0x34482a=[];let _0x4db4ed=_0x3d39a8,_0x2503f2=_0x3d39a8;for(let _0x249ef4=_0x470762['length']-0x1;_0x249ef4>=0x0;_0x249ef4--){const {unitID:_0x21d9ff,undoMutations:_0x13e4ca,redoMutations:_0x23dc6a}=_0x470762[_0x249ef4],_0x4733ef=this['_transformService'][_0x224034(0x554)](_0x4db4ed,_0x13e4ca),_0x3c4a80=this['_transformService'][_0x224034(0x554)](_0x2503f2,_0x23dc6a);if(_[_0x224034(0x49b)](_0x4733ef)||_['isTransformMutationsWithChangesetFailure'](_0x3c4a80)){this[_0x224034(0x3dd)][_0x224034(0x2ad)](_0x224034(0x48c),_0x224034(0x5a6),_0x4733ef,_0x3c4a80);break;}_0x4db4ed=_0x4733ef['c1Prime'],_0x2503f2=_0x3c4a80['c1Prime'],_0x34482a[_0x224034(0x4d7)]({'unitID':_0x21d9ff,'undoMutations':_0x4733ef['m2Prime'],'redoMutations':_0x3c4a80[_0x224034(0x1b9)]});}return _0x34482a['reverse']();}};Be=In([_e(0x0,a[_0x2658a4(0x4e5)]),_e(0x1,a[_0x2658a4(0x2db)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x2658a4(0x334)]),_e(0x4,a[_0x2658a4(0x2f2)])],Be);class Mt extends a[_0x2658a4(0x354)]{constructor(){const _0x7aac42=_0x2658a4;super(),d(this,_0x7aac42(0x34f)),this[_0x7aac42(0x34f)]=v['fromEvent'](window,_0x7aac42(0x3ed))[_0x7aac42(0x348)](v[_0x7aac42(0x3b1)](this[_0x7aac42(0x576)]),v[_0x7aac42(0x49a)](0x1),v[_0x7aac42(0x420)](void 0x0));}['setParam'](_0x2dc0c6,_0x352373,_0x5df8ac=!0x1){const _0x2691c4=_0x2658a4,_0x3ac99c=new URL(window[_0x2691c4(0x442)]['href']);_0x3ac99c[_0x2691c4(0x58e)][_0x2691c4(0x2ce)](_0x2dc0c6,_0x352373),_0x5df8ac?window[_0x2691c4(0x2f5)][_0x2691c4(0x417)]('','',_0x3ac99c[_0x2691c4(0x458)]()):window['history'][_0x2691c4(0x3e4)]('','',_0x3ac99c[_0x2691c4(0x458)]());}[_0x2658a4(0x55c)](_0x5c3c83,_0x21cb99=!0x1){const _0xfb8b19=_0x2658a4,_0x4606ec=new URL(window['location'][_0xfb8b19(0x20e)]);_0x4606ec[_0xfb8b19(0x58e)][_0xfb8b19(0x364)](_0x5c3c83),_0x21cb99?window[_0xfb8b19(0x2f5)][_0xfb8b19(0x417)]('','',_0x4606ec[_0xfb8b19(0x458)]()):window[_0xfb8b19(0x2f5)]['pushState']('','',_0x4606ec['toString']());}[_0x2658a4(0x585)](_0x36385a){const _0x243c39=_0x2658a4;var _0x402922;return(_0x402922=new URL(window['location'][_0x243c39(0x20e)])['searchParams']['get'](_0x36385a))!=null?_0x402922:void 0x0;}}var Nt=Object['defineProperty'],pn=Object[_0x2658a4(0x222)],Cn=(_0x316acd,_0x542c2a,_0x532099)=>_0x542c2a in _0x316acd?Nt(_0x316acd,_0x542c2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x532099}):_0x316acd[_0x542c2a]=_0x532099,En=(_0x3ed563,_0x10025c,_0x583e64,_0x2740c8)=>{for(var _0x58e9c1=_0x2740c8>0x1?void 0x0:_0x2740c8?pn(_0x10025c,_0x583e64):_0x10025c,_0x2f1f5d=_0x3ed563['length']-0x1,_0x619b4b;_0x2f1f5d>=0x0;_0x2f1f5d--)(_0x619b4b=_0x3ed563[_0x2f1f5d])&&(_0x58e9c1=(_0x2740c8?_0x619b4b(_0x10025c,_0x583e64,_0x58e9c1):_0x619b4b(_0x58e9c1))||_0x58e9c1);return _0x2740c8&&_0x58e9c1&&Nt(_0x10025c,_0x583e64,_0x58e9c1),_0x58e9c1;},ve=(_0x22a70b,_0x1b6635)=>(_0x114c45,_0x2ee533)=>_0x1b6635(_0x114c45,_0x2ee533,_0x22a70b),bn=(_0x32a327,_0x393e0a,_0x1d2fa8)=>Cn(_0x32a327,_0x393e0a+'',_0x1d2fa8);const Tn=_0x2658a4(0x462);exports[_0x2658a4(0x2ef)]=class extends a[_0x2658a4(0x4df)]{constructor(_0x121a03=ts,_0x1afe33,_0x3a785c,_0x2b9f5e,_0x4b654c){const _0x88041f=_0x2658a4;super(),this['_config']=_0x121a03,this[_0x88041f(0x3dd)]=_0x1afe33,this[_0x88041f(0x3c1)]=_0x3a785c,this['_injector']=_0x2b9f5e,this['_configService']=_0x4b654c;const {..._0xd2565a}=this['_config'];this[_0x88041f(0x519)][_0x88041f(0x27b)](L,_0xd2565a);}[_0x2658a4(0x5ba)](){this['_registerDependencies']();}['onRendered'](){const _0x1b9f71=_0x2658a4;this[_0x1b9f71(0x51d)]();}['_registerDependencies'](){const _0x2a5c16=_0x2658a4;var _0x36777c,_0x415a20,_0x5c670d,_0x4faa54;this[_0x2a5c16(0x584)]['has'](a['IUndoRedoService'])&&this['_logService'][_0x2a5c16(0x2ad)](_0x2a5c16(0x3f1),_0x2a5c16(0x204));let _0xaa7360=[[a[_0x2a5c16(0x511)],{'useClass':Be}],[exports[_0x2a5c16(0x4c6)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports[_0x2a5c16(0x20c)]],[P[_0x2a5c16(0x207)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x415a20=(_0x36777c=this['_config'])==null?void 0x0:_0x36777c[_0x2a5c16(0x563)])!=null?_0x415a20:exports[_0x2a5c16(0x500)]}],[P['IHTTPImplementation'],{'useClass':P[_0x2a5c16(0x23c)]}],[_[_0x2a5c16(0x258)],{'useClass':exports[_0x2a5c16(0x4cf)]}],[a[_0x2a5c16(0x577)],{'useClass':exports[_0x2a5c16(0x34d)]}],[A[_0x2a5c16(0x419)],{'useClass':exports[_0x2a5c16(0x3d8)]}],[exports[_0x2a5c16(0x58f)]],[exports[_0x2a5c16(0x21e)]],[exports[_0x2a5c16(0x4bc)]],[ge],[se]];(_0x5c670d=this[_0x2a5c16(0x292)])!=null&&_0x5c670d['enableSingleActiveInstanceLock']&&_0xaa7360['push']([Te,{'useClass':ys}]),_0xaa7360=a[_0x2a5c16(0x4a5)](_0xaa7360,(_0x4faa54=this[_0x2a5c16(0x292)])==null?void 0x0:_0x4faa54[_0x2a5c16(0x2a2)]),_0xaa7360[_0x2a5c16(0x4ab)](_0x47d7a6=>this[_0x2a5c16(0x584)][_0x2a5c16(0x463)](_0x47d7a6)),this[_0x2a5c16(0x59e)]();}['_registerRenderDependencies'](){const _0x10c4b8=_0x2658a4;this['disposeWithMe'](this['_renderManagerService'][_0x10c4b8(0x3d1)](a[_0x10c4b8(0x313)][_0x10c4b8(0x1e8)],[fe])),this[_0x10c4b8(0x2f0)](this[_0x10c4b8(0x3c1)][_0x10c4b8(0x3d1)](a[_0x10c4b8(0x313)]['UNIVER_SHEET'],[ke]));}[_0x2658a4(0x59e)](){const _0x4cda41=_0x2658a4;var _0x39d164,_0x16673c;this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](P[_0x4cda41(0x414)])[_0x4cda41(0x3f9)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](be),(_0x39d164=this[_0x4cda41(0x292)])!=null&&_0x39d164[_0x4cda41(0x5ac)]||this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](exports[_0x4cda41(0x20c)])[_0x4cda41(0x1ba)](),(_0x16673c=this[_0x4cda41(0x292)])!=null&&_0x16673c[_0x4cda41(0x59d)]&&this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](Ee),this['_injector'][_0x4cda41(0x3cc)](exports[_0x4cda41(0x58f)]),this[_0x4cda41(0x584)][_0x4cda41(0x304)](exports[_0x4cda41(0x4bc)])&&this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports[_0x2658a4(0x2ef)],_0x2658a4(0x4ba),Tn),exports[_0x2658a4(0x2ef)]=En([a[_0x2658a4(0x4d5)](_[_0x2658a4(0x353)]),ve(0x1,a[_0x2658a4(0x2f2)]),ve(0x2,R[_0x2658a4(0x42a)]),ve(0x3,a['Inject'](a[_0x2658a4(0x1f0)])),ve(0x4,a['IConfigService'])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=wt,exports[_0x2658a4(0x2a8)]=gt,exports[_0x2658a4(0x3de)]=ut,exports[_0x2658a4(0x484)]=y,exports[_0x2658a4(0x21c)]=Pt,exports[_0x2658a4(0x4e7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Ve,exports[_0x2658a4(0x43b)]=Fe,exports[_0x2658a4(0x1b1)]=ze,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports[_0x2658a4(0x522)]=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x2658a4(0x287)]=Yt,exports[_0x2658a4(0x208)]=ht,exports[_0x2658a4(0x4f7)]=_t,exports[_0x2658a4(0x220)]=j,exports[_0x2658a4(0x2d8)]=Ot,exports[_0x2658a4(0x34a)]=Mt,exports[_0x2658a4(0x403)]=Ct,exports[_0x2658a4(0x51b)]=Et;
1
+ 'use strict';const _0x1100bd=_0x75d2;(function(_0x1704d6,_0x578fcf){const _0x48300c=_0x75d2,_0x4b5a95=_0x1704d6();while(!![]){try{const _0xa0d2a3=-parseInt(_0x48300c(0x457))/0x1+parseInt(_0x48300c(0x479))/0x2*(parseInt(_0x48300c(0x242))/0x3)+-parseInt(_0x48300c(0x31c))/0x4+parseInt(_0x48300c(0x2df))/0x5*(-parseInt(_0x48300c(0x217))/0x6)+-parseInt(_0x48300c(0x545))/0x7*(parseInt(_0x48300c(0x4a8))/0x8)+-parseInt(_0x48300c(0x28a))/0x9+parseInt(_0x48300c(0x4b3))/0xa*(parseInt(_0x48300c(0x584))/0xb);if(_0xa0d2a3===_0x578fcf)break;else _0x4b5a95['push'](_0x4b5a95['shift']());}catch(_0x26f3ee){_0x4b5a95['push'](_0x4b5a95['shift']());}}}(_0x1ae8,0xe9171));var kt=Object[_0x1100bd(0x4ed)],Bt=(_0x2e4ccd,_0x126c98,_0x10e1a9)=>_0x126c98 in _0x2e4ccd?kt(_0x2e4ccd,_0x126c98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10e1a9}):_0x2e4ccd[_0x126c98]=_0x10e1a9,d=(_0x26b29e,_0x4616d8,_0x1ab47d)=>Bt(_0x26b29e,typeof _0x4616d8!=_0x1100bd(0x5a6)?_0x4616d8+'':_0x4616d8,_0x1ab47d);Object[_0x1100bd(0x4ed)](exports,Symbol[_0x1100bd(0x4a2)],{'value':_0x1100bd(0x5c9)});const a=require(_0x1100bd(0x33b)),v=require(_0x1100bd(0x3ea)),E=require('rxjs/operators'),X=require(_0x1100bd(0x4d8)),N=require('@univerjs/ui'),P=require(_0x1100bd(0x40f)),_=require(_0x1100bd(0x302)),Vt=require('@univerjs/telemetry'),V=require(_0x1100bd(0x544)),w=require('@univerjs/docs-ui'),C=require(_0x1100bd(0x4fa)),R=require(_0x1100bd(0x56f)),L=require(_0x1100bd(0x4a1)),Je=require(_0x1100bd(0x1ee)),te=require('@univerjs/sheets-ui'),U=require(_0x1100bd(0x510)),Wt=require(_0x1100bd(0x1cc)),Ft=require(_0x1100bd(0x55b)),ht=_0x1100bd(0x550),Gt=_0x1100bd(0x296),_t=_0x1100bd(0x527),Yt=_0x1100bd(0x5aa),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x1100bd(0x55a),dt=_0x1100bd(0x598),qt=0x7530,Ve=_0x1100bd(0x421),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x1100bd(0x546),Qt=_0x1100bd(0x454),mt='LOGIN_URL_KEY',es=_0x1100bd(0x361);var It=(_0x5ea52c=>(_0x5ea52c[_0x5ea52c[_0x1100bd(0x3eb)]=0x0]=_0x1100bd(0x3eb),_0x5ea52c[_0x5ea52c['OK']=0x1]='OK',_0x5ea52c[_0x5ea52c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x5ea52c[_0x5ea52c[_0x1100bd(0x2bf)]=0x3]=_0x1100bd(0x2bf),_0x5ea52c[_0x5ea52c['NOT_FOUND']=0x4]=_0x1100bd(0x30a),_0x5ea52c[_0x5ea52c[_0x1100bd(0x26f)]=0x5]='UNAUTHENTICATED',_0x5ea52c[_0x5ea52c['ALREADY_EXISTS']=0x6]=_0x1100bd(0x2c9),_0x5ea52c[_0x5ea52c['INVALID_ARGUMENT']=0x7]=_0x1100bd(0x252),_0x5ea52c[_0x5ea52c[_0x1100bd(0x21e)]=0x8]='TOO_MANY_REQUESTS',_0x5ea52c[_0x5ea52c[_0x1100bd(0x3f1)]=0x9]=_0x1100bd(0x3f1),_0x5ea52c[_0x5ea52c[_0x1100bd(0x201)]=0x1389]=_0x1100bd(0x201),_0x5ea52c[_0x5ea52c[_0x1100bd(0x47a)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5ea52c[_0x5ea52c[_0x1100bd(0x320)]=0x1772]=_0x1100bd(0x320),_0x5ea52c[_0x5ea52c[_0x1100bd(0x352)]=0x1b59]=_0x1100bd(0x352),_0x5ea52c[_0x5ea52c[_0x1100bd(0x4d1)]=0x1b5a]=_0x1100bd(0x4d1),_0x5ea52c[_0x5ea52c[_0x1100bd(0x463)]=0x1b5b]=_0x1100bd(0x463),_0x5ea52c[_0x5ea52c['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5ea52c[_0x5ea52c[_0x1100bd(0x2c6)]=0x1f41]=_0x1100bd(0x2c6),_0x5ea52c[_0x5ea52c[_0x1100bd(0x539)]=0x2329]=_0x1100bd(0x539),_0x5ea52c[_0x5ea52c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1100bd(0x5be),_0x5ea52c[_0x5ea52c[_0x1100bd(0x303)]=0x232b]=_0x1100bd(0x303),_0x5ea52c[_0x5ea52c[_0x1100bd(0x29b)]=0x232c]=_0x1100bd(0x29b),_0x5ea52c[_0x5ea52c[_0x1100bd(0x5ab)]=0x232d]=_0x1100bd(0x5ab),_0x5ea52c[_0x5ea52c[_0x1100bd(0x34d)]=0x2711]=_0x1100bd(0x34d),_0x5ea52c[_0x5ea52c[_0x1100bd(0x4ac)]=0x2712]=_0x1100bd(0x4ac),_0x5ea52c[_0x5ea52c[_0x1100bd(0x1b3)]=0x2713]=_0x1100bd(0x1b3),_0x5ea52c[_0x5ea52c[_0x1100bd(0x274)]=0x2714]=_0x1100bd(0x274),_0x5ea52c[_0x5ea52c[_0x1100bd(0x35d)]=-0x1]='UNRECOGNIZED',_0x5ea52c))(It||{}),j=(_0x434760=>(_0x434760[_0x434760[_0x1100bd(0x54a)]=0x0]=_0x1100bd(0x54a),_0x434760[_0x434760['UNIVER_DOC']=0x1]=_0x1100bd(0x22b),_0x434760[_0x434760[_0x1100bd(0x293)]=0x2]=_0x1100bd(0x293),_0x434760[_0x434760['UNIVER_SLIDE']=0x3]=_0x1100bd(0x3b9),_0x434760[_0x434760[_0x1100bd(0x291)]=0x4]=_0x1100bd(0x291),_0x434760[_0x434760[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0x434760))(j||{}),b=(_0xbac49d=>(_0xbac49d[_0xbac49d['UNKNOWN_CMD']=0x0]=_0x1100bd(0x347),_0xbac49d[_0xbac49d[_0x1100bd(0x432)]=0x1]='HELLO',_0xbac49d[_0xbac49d[_0x1100bd(0x44a)]=0x2]=_0x1100bd(0x44a),_0xbac49d[_0xbac49d[_0x1100bd(0x1bc)]=0x3]=_0x1100bd(0x1bc),_0xbac49d[_0xbac49d['INGEST']=0x4]=_0x1100bd(0x556),_0xbac49d[_0xbac49d[_0x1100bd(0x396)]=0x5]=_0x1100bd(0x396),_0xbac49d[_0xbac49d[_0x1100bd(0x50b)]=0x6]='RECV',_0xbac49d[_0xbac49d[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0xbac49d))(b||{}),We=(_0x36732b=>(_0x36732b[_0x36732b[_0x1100bd(0x594)]=0x0]='UNKNOWN_CODE',_0x36732b[_0x36732b['OK']=0x1]='OK',_0x36732b[_0x36732b['FAIL']=0x2]=_0x1100bd(0x48e),_0x36732b[_0x36732b['UNRECOGNIZED']=-0x1]=_0x1100bd(0x35d),_0x36732b))(We||{}),pt=(_0x206eb0=>(_0x206eb0[_0x206eb0[_0x1100bd(0x3e5)]=0x0]=_0x1100bd(0x3e5),_0x206eb0[_0x206eb0[_0x1100bd(0x370)]=0x1]=_0x1100bd(0x370),_0x206eb0[_0x206eb0[_0x1100bd(0x4f6)]=0x2]=_0x1100bd(0x4f6),_0x206eb0[_0x206eb0['UnitEmbedded']=0x3]='UnitEmbedded',_0x206eb0[_0x206eb0['UnitSnapshot']=0x4]=_0x1100bd(0x42d),_0x206eb0[_0x206eb0[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0x206eb0))(pt||{});const A=_0x1100bd(0x2c7),ts={};function Ct(_0x5d2106){const _0x2bb8f8=_0x1100bd;var _0x199c56,_0x3e5dc6,_0x3728fc,_0x1e72b6;const _0x5f3f54=_0x5d2106[_0x2bb8f8(0x47d)],_0x511f61=JSON['parse'](_0x5f3f54);switch(_0x511f61['cmd']){case b['HEARTBEAT']:case b[_0x2bb8f8(0x432)]:{const _0x3031e0=_0x511f61[_0x2bb8f8(0x32c)];return{..._0x511f61,'data':_0x3031e0,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};}case b[_0x2bb8f8(0x44a)]:{const _0x32faf4=_0x511f61[_0x2bb8f8(0x559)];return{..._0x511f61,'data':_0x32faf4,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};}case b[_0x2bb8f8(0x50b)]:{const _0x360dba=_0x511f61[_0x2bb8f8(0x1b4)];switch(_0x360dba[_0x2bb8f8(0x39c)]){case _[_0x2bb8f8(0x55c)]['PERMISSION_REJ']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x199c56=_0x360dba[_0x2bb8f8(0x3c4)])==null?void 0x0:_0x199c56['cs']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x3d6)]:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x3e5dc6=_0x360dba['csAckEvent'])==null?void 0x0:_0x3e5dc6['cs']},'cmd':_0x511f61['cmd']};case _[_0x2bb8f8(0x55c)]['NEW_CHANGESETS']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x3728fc=_0x360dba['newCsEvent'])==null?void 0x0:_0x3728fc['cs']},'cmd':_0x511f61['cmd']};case _[_0x2bb8f8(0x55c)]['CHANGESET_REJ']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x1e72b6=_0x360dba[_0x2bb8f8(0x581)])==null?void 0x0:_0x1e72b6['cs']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['UPDATE_CURSOR']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x54b)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['USERS_ENTER']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x36a)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['USERS_LEAVE']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba['leaveEvent']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x384)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba['liveShareNewHost']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x2fb)]:case _[_0x2bb8f8(0x55c)]['LIVESHARE_OPERATION']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x26d)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x270)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x44b)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x52e)]:return{..._0x511f61,'data':_0x360dba,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x508)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x21f)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x403)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x2ff)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x5cc)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x2de)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};default:return _0x511f61;}}default:return _0x511f61;}}function Et(_0x147a16){const _0x4f5dcd=_0x1100bd;switch(_0x147a16[_0x4f5dcd(0x2cd)]){case b[_0x4f5dcd(0x396)]:case b['HELLO']:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)]});case b[_0x4f5dcd(0x556)]:{let _0x52cfc4;switch(_0x147a16[_0x4f5dcd(0x47d)]['eventID']){case _['CollaborationEvent'][_0x4f5dcd(0x2ce)]:{_0x52cfc4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _['CollaborationEvent'][_0x4f5dcd(0x529)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)][_0x4f5dcd(0x529)],'leaveEvent':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)][_0x4f5dcd(0x3fa)],'joinEvent':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x384)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x250)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x270)]:{_0x52cfc4={'eventID':_['CollaborationEvent'][_0x4f5dcd(0x270)],'liveShareTerminate':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent'][_0x4f5dcd(0x46c)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent'][_0x4f5dcd(0x2fb)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x52cfc4={'eventID':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x39c)]};}return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16['routeKey'],'collaMsg':_0x52cfc4});}case b[_0x4f5dcd(0x44a)]:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)],'joinReq':_0x147a16[_0x4f5dcd(0x47d)]});case b[_0x4f5dcd(0x1bc)]:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)],'leaveReq':_0x147a16[_0x4f5dcd(0x47d)]});default:throw new Error(_0x4f5dcd(0x43e));}}var ss=Object['defineProperty'],is=Object[_0x1100bd(0x444)],ns=(_0x1f246d,_0x2093bc,_0x363a84,_0x2a573e)=>{const _0x1d6045=_0x1100bd;for(var _0x592a22=_0x2a573e>0x1?void 0x0:_0x2a573e?is(_0x2093bc,_0x363a84):_0x2093bc,_0x392aea=_0x1f246d[_0x1d6045(0x46d)]-0x1,_0xc72ade;_0x392aea>=0x0;_0x392aea--)(_0xc72ade=_0x1f246d[_0x392aea])&&(_0x592a22=(_0x2a573e?_0xc72ade(_0x2093bc,_0x363a84,_0x592a22):_0xc72ade(_0x592a22))||_0x592a22);return _0x2a573e&&_0x592a22&&ss(_0x2093bc,_0x363a84,_0x592a22),_0x592a22;},oe=(_0x2c1326,_0x1239ab)=>(_0x57ad26,_0x1e5697)=>_0x1239ab(_0x57ad26,_0x1e5697,_0x2c1326);const Fe=a[_0x1100bd(0x1be)](_0x1100bd(0x2e3));function rs(_0x53cf96,_0x2363fa,_0x1305b6){const _0x2679ec=_0x1100bd;return _0x53cf96+'/'+_0x2363fa+_0x2679ec(0x4c6)+_0x1305b6+_0x2679ec(0x40e);}exports[_0x1100bd(0x439)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x470861,_0xeb5f79,_0x283b98,_0x2b1dd9,_0x59b6fe){const _0x41b38f=_0x1100bd;super(),this['_http']=_0x470861,this[_0x41b38f(0x298)]=_0xeb5f79,this['_configService']=_0x283b98,this[_0x41b38f(0x340)]=_0x2b1dd9,this[_0x41b38f(0x3df)]=_0x59b6fe;}[_0x1100bd(0x2d0)](_0x1084b4){const _0x14fbb2=_0x1100bd,_0xd3e670=this[_0x14fbb2(0x298)][_0x14fbb2(0x2d0)](_0x1084b4);if(!_0xd3e670)throw new Error(_0x14fbb2(0x586));const _0x237f8e=new a[(_0x14fbb2(0x4d3))](),_0x1d0b37=new v[(_0x14fbb2(0x43a))]();_0x237f8e['add'](_0xd3e670[_0x14fbb2(0x3e1)][_0x14fbb2(0x1f3)](_0x1c1437=>_0x1d0b37[_0x14fbb2(0x496)](_0x1c1437))),_0x237f8e['add'](a[_0x14fbb2(0x480)](()=>_0x1d0b37[_0x14fbb2(0x3dc)]()));const _0x2f0668=new v[(_0x14fbb2(0x43a))]();_0x237f8e[_0x14fbb2(0x1e0)](_0xd3e670[_0x14fbb2(0x516)][_0x14fbb2(0x1f3)](_0x19d704=>_0x2f0668['next'](_0x19d704))),_0x237f8e[_0x14fbb2(0x1e0)](a[_0x14fbb2(0x480)](()=>_0x2f0668['complete']()));const _0x295ec5=new v['Subject']();_0x237f8e[_0x14fbb2(0x1e0)](_0xd3e670[_0x14fbb2(0x1b6)][_0x14fbb2(0x1f3)](_0x44c3b2=>{const _0x1671d1=Ct(_0x44c3b2);_0x295ec5['next'](_0x1671d1);})),_0x237f8e[_0x14fbb2(0x1e0)](a['toDisposable'](()=>_0x295ec5[_0x14fbb2(0x3dc)]()));let _0x163659;const _0x262161=()=>{const _0x4bc3e7=_0x14fbb2;_0x2f0668[_0x4bc3e7(0x496)](new Event(_0x4bc3e7(0x42a))),_0x1d0b37[_0x4bc3e7(0x496)](new CloseEvent(_0x4bc3e7(0x42a))),_0x163659[_0x4bc3e7(0x3cb)]();};return _0x163659={'memberID':'','close$':_0x1d0b37['asObservable'](),'error$':_0x2f0668[_0x14fbb2(0x4c2)](),'open$':_0xd3e670[_0x14fbb2(0x4ef)],'message$':_0x295ec5[_0x14fbb2(0x4c2)](),'send':_0x402521=>{const _0x36438d=_0x14fbb2;if(_0x402521['cmd']===b['INGEST']){if(_0x402521[_0x36438d(0x47d)][_0x36438d(0x39c)]===_[_0x36438d(0x55c)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x163659,_0x402521[_0x36438d(0x47d)])[_0x36438d(0x28d)](_0x5bdf77=>{const _0x1096f0=_0x36438d;this[_0x1096f0(0x340)][_0x1096f0(0x3d1)](_0x5bdf77),_0x262161();});return;}if(_0x402521['data'][_0x36438d(0x39c)]===_['CollaborationEvent'][_0x36438d(0x258)]){const _0x4ec879=_0x402521[_0x36438d(0x47d)];this[_0x36438d(0x269)](_0x4ec879)['then'](_0x52a1cf=>{const _0x428833=_0x36438d;_0x295ec5[_0x428833(0x496)]({'cmd':b[_0x428833(0x50b)],'code':We['OK'],'routeKey':_0x4ec879[_0x428833(0x47d)]['unitID'],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x428833(0x255)],'data':{'changesets':_0x52a1cf}}});})[_0x36438d(0x28d)](_0x3c2967=>{const _0x3f1644=_0x36438d;this[_0x3f1644(0x340)][_0x3f1644(0x3d1)](_0x3c2967),_0x262161();});return;}}_0xd3e670['send'](Et(_0x402521));},'close':()=>{const _0x3d1143=_0x14fbb2;_0xd3e670[_0x3d1143(0x3cb)](),_0x237f8e['dispose']();}},_0x163659;}async[_0x1100bd(0x2da)](_0x584a5e,_0x330587){const _0x313ffd=_0x1100bd;var _0xc4d8e6,_0x377a64;const {unitType:_0x41ffe8,unitID:_0x4b6482,changeset:_0x237f32}=_0x330587['data'],_0x256b83={'unitID':_0x4b6482,'memberID':_0x584a5e[_0x313ffd(0x2dc)],'type':_0x41ffe8,'changeset':_[_0x313ffd(0x4a9)](_0x237f32)},_0x4a8199=this[_0x313ffd(0x4c0)]['getConfig'](gt),_0x5a387c=this[_0x313ffd(0x4c0)]['getConfig'](A),_0x22a95e=rs((_0x377a64=(_0xc4d8e6=_0x5a387c==null?void 0x0:_0x5a387c['collabSubmitChangesetUrl'])!=null?_0xc4d8e6:_0x4a8199)!=null?_0x377a64:Qt,_0x41ffe8,_0x4b6482);try{await this['_http'][_0x313ffd(0x569)](_0x22a95e,{'body':_0x256b83});}catch(_0xc52f73){throw this[_0x313ffd(0x340)][_0x313ffd(0x3d1)](_0x313ffd(0x281),_0x313ffd(0x4bc)),_0xc52f73;}}async[_0x1100bd(0x269)](_0x16bba2){const _0x553b93=_0x1100bd,{unitID:_0x343c3c,from:_0x357721,to:_0x1b5229,unitType:_0xabbaae}=_0x16bba2['data'];return(await this[_0x553b93(0x3df)][_0x553b93(0x509)]({'metadata':void 0x0},{'unitID':_0x343c3c,'type':_0xabbaae,'from':_0x357721,'to':_0x1b5229}))[_0x553b93(0x32d)];}},exports[_0x1100bd(0x439)]=ns([oe(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),oe(0x1,a['Inject'](P['WebSocketService'])),oe(0x2,a[_0x1100bd(0x32b)]),oe(0x3,a['ILogService']),oe(0x4,_['ISnapshotServerService'])],exports[_0x1100bd(0x439)]);const os=_0x1100bd(0x4ca);function as(_0x20db4e){return JSON['stringify'](_0x20db4e)['length'];}class Ge{constructor(){const _0x493842=_0x1100bd;d(this,_0x493842(0x2bc),new v[(_0x493842(0x43a))]()),d(this,_0x493842(0x45d),this[_0x493842(0x2bc)]['asObservable']());}['onCommentUpdate'](_0xf6ff6d){const _0x155706=_0x1100bd;this[_0x155706(0x2bc)][_0x155706(0x496)](_0xf6ff6d);}}var cs=Object[_0x1100bd(0x4ed)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x2d6dc1,_0x5e4b4e,_0x194704,_0x599254)=>{const _0x43609c=_0x1100bd;for(var _0x58fe89=_0x599254>0x1?void 0x0:_0x599254?ls(_0x5e4b4e,_0x194704):_0x5e4b4e,_0x44a5cb=_0x2d6dc1[_0x43609c(0x46d)]-0x1,_0xb4ce0e;_0x44a5cb>=0x0;_0x44a5cb--)(_0xb4ce0e=_0x2d6dc1[_0x44a5cb])&&(_0x58fe89=(_0x599254?_0xb4ce0e(_0x5e4b4e,_0x194704,_0x58fe89):_0xb4ce0e(_0x58fe89))||_0x58fe89);return _0x599254&&_0x58fe89&&cs(_0x5e4b4e,_0x194704,_0x58fe89),_0x58fe89;},Ze=(_0x285b0f,_0x2f9b14)=>(_0x4ae45f,_0x161bdb)=>_0x2f9b14(_0x4ae45f,_0x161bdb,_0x285b0f);let q=class extends a[_0x1100bd(0x4e4)]{constructor(_0x537d26,_0x467280){const _0x36357e=_0x1100bd;super(),d(this,'_roomMembers',new Map()),(this[_0x36357e(0x56b)]=_0x537d26,this[_0x36357e(0x290)]=_0x467280,this[_0x36357e(0x40b)](a['toDisposable'](v[_0x36357e(0x4e9)](this[_0x36357e(0x56b)][_0x36357e(0x2a4)](a[_0x36357e(0x2e9)][_0x36357e(0x293)])['pipe'](E[_0x36357e(0x4c4)](_0x5bae70=>_0x5bae70['getUnitId']())),this[_0x36357e(0x56b)]['getTypeOfUnitDisposed$'](a[_0x36357e(0x2e9)][_0x36357e(0x22b)])[_0x36357e(0x32e)](E['map'](_0x3a7b2e=>_0x3a7b2e[_0x36357e(0x401)]())),this['_univerInstanceService'][_0x36357e(0x2a4)](a['UniverInstanceType'][_0x36357e(0x3b9)])['pipe'](E[_0x36357e(0x4c4)](_0x2f07f5=>_0x2f07f5[_0x36357e(0x401)]())))[_0x36357e(0x1f3)](_0x27d0ff=>this['_removeRoom'](_0x27d0ff)))));}[_0x1100bd(0x4b5)](_0x298bd4){const _0x201ab2=_0x1100bd;this['_userManagerService'][_0x201ab2(0x4b5)](_0x298bd4);}[_0x1100bd(0x1b2)](){const _0x2cb3f0=_0x1100bd;return this[_0x2cb3f0(0x290)]['getCurrentUser']();}[_0x1100bd(0x1d6)](_0x334808,_0x5098ba){const _0x58b90e=_0x1100bd;let _0x3cbcd0=this[_0x58b90e(0x34a)]['get'](_0x334808);_0x3cbcd0||(_0x3cbcd0=new _s(),this['_roomMembers'][_0x58b90e(0x57e)](_0x334808,_0x3cbcd0)),_0x3cbcd0[_0x58b90e(0x1d6)](_0x5098ba);}[_0x1100bd(0x33e)](_0x3b82e6,_0x50295b){const _0x430d04=_0x1100bd,_0x15b86a=this[_0x430d04(0x34a)]['get'](_0x3b82e6);_0x15b86a&&_0x15b86a[_0x430d04(0x33e)](_0x50295b);}[_0x1100bd(0x1b7)](_0x40dd99){const _0x47ad06=_0x1100bd;return this[_0x47ad06(0x34a)][_0x47ad06(0x1f4)](_0x40dd99);}['getMember'](_0x4f0bfe,_0x3ee3fa){const _0xfc72fd=_0x1100bd,_0x17c8f0=this[_0xfc72fd(0x34a)][_0xfc72fd(0x1f4)](_0x4f0bfe);if(_0x17c8f0)return _0x17c8f0[_0xfc72fd(0x379)](_0x3ee3fa);}[_0x1100bd(0x1dc)](_0x3360ca){const _0x14204f=_0x1100bd,_0x3973ab=this[_0x14204f(0x34a)][_0x14204f(0x1f4)](_0x3360ca);_0x3973ab&&(_0x3973ab['dispose'](),this[_0x14204f(0x34a)]['delete'](_0x3360ca));}[_0x1100bd(0x3d2)](){this['_roomMembers']['forEach'](_0x4ca252=>_0x4ca252['dispose']()),this['_roomMembers']['clear']();}};q=hs([Ze(0x0,a[_0x1100bd(0x472)]),Ze(0x1,a[_0x1100bd(0x583)](a['UserManagerService']))],q);class _s extends a['Disposable']{constructor(){const _0x38c50d=_0x1100bd;super(...arguments),d(this,_0x38c50d(0x2d3),new Map());}[_0x1100bd(0x3d2)](){const _0x3b713e=_0x1100bd;this['_members'][_0x3b713e(0x27d)]();}[_0x1100bd(0x1d6)](_0x266ecc){const _0x134789=_0x1100bd;this[_0x134789(0x2d3)][_0x134789(0x57e)](_0x266ecc[_0x134789(0x2dc)],_0x266ecc);}[_0x1100bd(0x33e)](_0x4308ee){const _0x5f0c39=_0x1100bd;this[_0x5f0c39(0x2d3)][_0x5f0c39(0x5bf)](_0x4308ee);}[_0x1100bd(0x379)](_0x52f64e){const _0x5f0f7f=_0x1100bd;return this[_0x5f0f7f(0x2d3)][_0x5f0f7f(0x1f4)](_0x52f64e);}}var us=Object[_0x1100bd(0x4ed)],ds=Object[_0x1100bd(0x444)],Ss=(_0x44bf68,_0x189b6b,_0x297e6a,_0x3852ac)=>{const _0x4a45e1=_0x1100bd;for(var _0x11a4b6=_0x3852ac>0x1?void 0x0:_0x3852ac?ds(_0x189b6b,_0x297e6a):_0x189b6b,_0x5a0d3e=_0x44bf68[_0x4a45e1(0x46d)]-0x1,_0x316edb;_0x5a0d3e>=0x0;_0x5a0d3e--)(_0x316edb=_0x44bf68[_0x5a0d3e])&&(_0x11a4b6=(_0x3852ac?_0x316edb(_0x189b6b,_0x297e6a,_0x11a4b6):_0x316edb(_0x11a4b6))||_0x11a4b6);return _0x3852ac&&_0x11a4b6&&us(_0x189b6b,_0x297e6a,_0x11a4b6),_0x11a4b6;},B=(_0x256f86,_0x1aa01e)=>(_0x2e5dbb,_0x25fa09)=>_0x1aa01e(_0x2e5dbb,_0x25fa09,_0x256f86),$=(_0x51b4ca=>(_0x51b4ca[_0x51b4ca[_0x1100bd(0x4e6)]=0x0]=_0x1100bd(0x4e6),_0x51b4ca[_0x51b4ca[_0x1100bd(0x228)]=0x1]=_0x1100bd(0x228),_0x51b4ca[_0x51b4ca[_0x1100bd(0x4ad)]=0x2]=_0x1100bd(0x4ad),_0x51b4ca[_0x51b4ca['ONLINE']=0x3]=_0x1100bd(0x48c),_0x51b4ca))($||{});function _0x1ae8(){const _0x1e0c73=['_initEventListeners','_snapshotServerService','localeService','close$','_online','parse','handleIRemoveCol','Undefined','change$','every','collabStatus.fetchMiss','[PendingState]:\x20received\x20rejection.','rxjs','UNDEFINED','resend','ILocalStorageService','title','NodePositionConvertToCursor','saveChangeset','COMPLETION_FINISHED','SUCCUSS','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','setWaitCount','sendChangesetTimeout','_getAPIPrefixPath','enableAuthServer','SYNCED','_applyRemoteChangeset','USERS_ENTER','exhaustSavingTask','[CollaborationSessionService]','serializeRangeWithSheet','unknown','_scheduleTimestamp','on-line-single','getUnitId','useRef','UPDATE_PERMISSION_OBJ','_schedule','patch','visibilitychange','loadDoc','_substituteUndoStack','reject','session','disposeWithMe','transformChangesets','ICollaborationSocketService','/new_changes','@univerjs/network','pushState','IMessageService','_eventUnsubscribe','getUnitType','push','setAlpha','idSuffix','routeKey','_localeService','text','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','image/jpg','FromArray','resize','OffLineSingle','HEADER_MENU','_createHandler','HEARTBEAT_TIMEOUT','COMPRESS_MUTATION_APPLY','handleDeleteRangeMoveLeft','workbook','getUnit','objectType','deepClone','_loadDoc','newValue','connection\x20error','_transformSelections','roomMembers','UnitSnapshot','encode','_updateLocalCache','displayName','toString','HELLO','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','onlineStatus','revision','onTransformChange$','onSendChangeset','CollaborationSocketService','Subject','_drawAnchor','_sendHeartbeatTimer','reverse','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','measureText','_onCursorUpdate','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','status','sessionStatus','getOwnPropertyDescriptor','_sessions','session.connection-failed','_onRemoteACK','event$','XHRHTTPImplementation','JOIN','liveShareNewHost','_setupBeforeClosingHandler','[CollaborationState]:\x20apply\x20error!','onlyLocal','update','1em','retryConnectingInterval','\x20-\x20','_HTTPService','/universer-api/comb','_anchorDot','_pendingMutations','1095634lqlLGk','_status$','_state$','assign','_drawTextRange','mutations','commentUpdate$','collaboration-session-retry','_localCacheService','_updateLocalCursor','_id','_retryConnectingTimer','APPLY_REVISION_CONFILICT','collabStatus.synced','mapTo','_undoStacks','forwardRef','hasOwnProperty','ImageIoService','INotificationService','now','LIVESHARE_REQUEST_HOST','length','_rescheduleHeartbeat','SUBMIT_CHANGESET','visibilityState','_collabCursorController','IUniverInstanceService','_handleEvent','getColor','online','RemoveColCommandId','ISnapshotServerService','_onJoinRoomEvent','1255532TQWhnt','SNAPSHOT_INVALID_SNAPSHOT','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','requestParams','data','save','_getCtorByUniverType','toDisposable','authzUrl','TEXT_RANGE_LAYER_INDEX','transformIMECache','collaboration-client.offline-data-not-saved','_onUserLeave','concat','_range','Vector2','loginUrlKey','sessionStatus$','...','ONLINE','cursorInfo$','FAIL','_onCombEvent','LOCAL_CACHE_INTERVAL_KEY','indexOf','moveTo','getUndoRedoMutationParamsCache','div','filter','next','LocaleService','InsertRangeMoveDownCommandId','telemetry\x20info\x20is\x20not\x20initialized','#FFF','ILogService','_awaitingChangeset','endRow','searchParams','getViewport','_init','@univerjs/drawing','toStringTag','_scene','_sessionStatus$','disableLocalCache','_labelPosition','_listenToOfflineEvent','15528xGiZMc','parseChangesetToProtocol','snapshot','LocalUndoRedoService','YUUMI_URL_COL_OUT_OF_RANGE','OFFLINE','transformUndoRedo','defIds','VIEW_MAIN','_socket$','MessageType','670KzNHMr','pluginName','setCurrentUser','_saveTaskMap','_httpService','addImageSourceCache','_hover','_isPermissionRej','red300','submit\x20changeset\x20error!','_selfUnitIDs','_color','ERROR_EXCEED_SIZE','_configService','isTransformMutationFailure','asObservable','href','map','useObservable','/unit/','getCurrentRevOfUnit','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fillText','collaboration_new_changeset','DocIMEInputManagerService','_onLocalMutation','_handler','univer-offline','registerHTTPInterceptor','colorChannel1','APPLY_NON_SEQUENTIAL_REVISION','HTTPRequest','DisposableCollection','_updateCollabCursors','\x20to\x20','DEFAULT_FILE_NAME','IPermissionService','@univerjs/design','_acknowledgedAwaitingChangeset','getSkeleton','SheetCollaborationEntity','_registerRenderDependencies','lineTo','onRendered','univer-pro.collaboration-client.single-active-unit-service','onRemoteRej','_render','purple300','getAncestorScale','Disposable','fromCollab','IDLE','syncEditingCollabCursor','reduce','merge','incrementRevOfUnit','onMissedChangesetFetched','socket$','defineProperty','_shouldReportTelemetry','open$','setTimeout','getUnitStatus$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','setUndoRedoMutationParamsCache','collaboration.single-unit.warning','_updateStatus','HttpExport','apply','onStateChange','DataLoaderController','@univerjs/sheets','Tools','getMemberID','unshift','onStarting','clipPath','addObject','current','_onFetchMissResult','top','subunit','ICommandService','substring','rgba(255,\x20255,\x20255,\x200.01)','COMMENT_UPDATE','fetchMissingChangesets','registerBeforeClose','RECV','_listenToOnlineEvent','InsertColCommandId','ThresholdInterceptorFactory','transformStack\x20failed!','react','RefRangeService','_transformPreviousActiveRange','isInternalEditorID','_getAnchorBounding','_telemetryInfo','error$','interceptor','pending','unit-cache-','_remoteChangesetQueue','ranges','LOGIN_URL_KEY','_entities','_type','activeSheet$','_scheduleSaving','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.conflict','Optional','_tryReconnect','type','_change$','SNAPSHOT_URL_KEY','range','USERS_LEAVE','HEARTBEAT_INTERVAL_KEY','getActiveRange','ERROR_IMAGE_TYPE','SheetsSelectionsService','MSG_FOR_ERROR','prototype','_onRemoteRejected','/block/','CollaborationSessionService','_scheduleHeartbeat','_clearScheduledTask','SetWorksheetActivateCommand','initWorkbookPermissionChange','UniverCollaborationPlugin','_transformIMECache','LICENSE_MAX_UNITS_EXCEEDED','_commandService','getRangePointData','storage','_getUploadFileURL','/-/object/list','sequenceExecute','_colorIndex','_toggleOnline','take','onTransformSelections','@univerjs/docs','3983EdQBUc','COLLAB_SUBMIT_CHANGESET_URL','ITelemetryService','/-/object/-/batch_allowed','fromEvent','UNIVER_UNKNOWN','updateCursorEvent','string','handleIRemoveRow','_executeRemoteChangeset','image/bmp','SNAPSHOT_SERVER_URL_KEY','dispose$','generateRandomId','makeDirty','parseProtocolChangeset','collab-client.tooltip.reconnect','INGEST','number','COLORS','joinRsp','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs-pro/license','CollaborationEvent','session.collaboration-timeout','addObjects','_initRequestHeader','socketService','WorkbookEditablePermission','fetchThroughInterceptors','IUndoRedoService','[SyncedState]:\x20received\x20acknowledgement.','_event$','getInterceptPoints','evenodd','_entityInit$','post','IRenderManagerService','_univerInstanceService','combineLatest','compose','collabStatus.syncing','@univerjs/engine-render','_compressMutationService','COLLAB_SUBMIT_CHANGESET_URL_KEY','isValidRectRange','session.room-full','_anchor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','encodeURIComponent','_transformStack','m1Prime','CHANGESET_REJ','_session','objects','isArray','ACTIVE_UNIT_EVENT_CHANNEL','set','url(#$1','_retryCount','csRejEvent','POST','Inject','921932OfLxXK','_substituteRedoStack','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','PERMISSION_REJ','_updateSubUnitFromURLParams','isTransformChangesetsSuccess','SetDocZoomRatioOperation','_initResize','_registerDependencies','CollaborationEntity','CollaborationStatus','onReady','collaborators','endColumn','_clearRedo','round','UNKNOWN_CODE','unsubscribe','_cursorShapes','_getSignURL','HEARTBEAT_INTERVAL','_showConflictNotification','send','unitID','socket\x20open.','univer-online','OTHER_CLIENTS_EDITING','_collaborationTimeoutTimer','headers','isTransformMutationsWithChangesetSuccess','_handleJoinEvent','has','_collaborationSessionService','handleDeleteRangeMoveUp','symbol','#fff','_getCurrentRevision','registerOnClose','SEND_CHANGESET_TIMEOUT','LICENSE_DISTRO_REJECTED','_docTransformSelectionsService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','?url=','CompressMutationService','find','RemoveRowCommandId','isEditing','collab-text-range-','getTime','deserializeRangeWithSheet','ThemeService','_initMergeInterceptor','put','fill','roomMembers$','[DataLoaderController]','AWAITING','SnapshotServerOverHTTPService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','delete','mapDocumentTypeToUniverType','EffectRefRangId','conflict','init','unit','_getMergeRange','touchDependencies','findNodePositionByCharIndex','Plugin','Module','debounceTime','awaiting_with_pending','SHOULD_CLOSE_CONN','getCurrentUnitForType','_handleLeaveEvent','_sendHeartbeat','_initUnitPermissionChange','_socketMessageSubscription','_undoRedoService','subUnitId','getCurrentUser','YUUMI_RATE_OVER_LIMIT','collaMsg','_themeService','message$','getRoom','_getRedoStack','_timeoutTimer','roomInfos','height','LEAVE','_telemetryService','createIdentifier','xlink:href','refreshPermission','[PendingState]:\x20received\x20acknowledgement.','_removeCollabCursors','_onOffline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_initCommandExecutedListener','UNIVER_COLLABORATION_CLIENT_PLUGIN','RxDisposable','actions','_lockTransition','m2Prime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','@univerjs/rpc','_clearHeartbeatTimer','_transformService','fillStyle','IUIPartsService','unitId','/object','_createSocket','selections','/universer-api/snapshot/','updateMember','_instanceService','_injector','show','SheetCollabCursorShape','off-line-single','_removeRoom','MoveRangeCommandId','UUID','onMissingChangesets','add','_incrementRevisionNumber','handleInsertRangeMoveRight','_cursor','_memberService','_saveCache','saveSheetBlock','reconnect','_joinRoom','bottom','getParam','_sheetSkeletonManagerService','getRelativeToViewportCoord','_startDocCollabCursor','@univerjs/engine-formula','_clearUndo','triggerDblclick','_onUserJoin','_clearOtherTimers','subscribe','get','Unknown\x20user','column','baseRev','setItem','_onConnectionFailed','flatMap','Shape','_sheetTransformSelectionsService','SEND_CHANGESET_TIMEOUT_KEY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[SyncedState]:\x20received\x20rejection.','_collaborationPaused','CHANGESET_REVISION_CONFILICT','subscribeEvent','stringify','getConfig','children','_getAPIPrefix','NO_OTHER_CLIENTS_EDITING','entries','LocalCacheService','currentSkeleton$','IContextService','userID','target','c1Prime','ERROR_IMAGE','none','_getSendChangesetTimeout','max','all','_state','useDependency','synced','4470lUqqAH','_cachedData','UniverIcon','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','FETCH_MISS','_waitForHeartbeatResponse','path','TOO_MANY_REQUESTS','commentUpdateEvent','getVpScrollXYInfoByPosToVp','_getSheetObject','_roomMembers$','getCollabEntity$','setParam','_stopTelemetryCollaborationNewChangeset','loadOfflineData','COMPRESS_MUTATION_SEND','JOINING','_getSnapshotAPIPrefix','image/gif','UNIVER_DOC','action','_disabled','toRgbString','saveSnapshot','onRemoteChangeset','onCommandExecuted','onMouseMove','getRenderById','_transformUndoRedoStack','getDeserializedSheetBlock','_loadSheet','_clearTimeoutTimer','_socket','uni.network.url-service','DeleteRangeMoveLeftCommandId','handleInsertCol','some','defs','_replayCachedMutations','takeUntil','BehaviorSubject','_checkMissing','6VLKtSt','_unitStatus','connectInjector','IAuthzIoService','_snapshotService','[OfflineState]:\x20received\x20changeset.','&assign=','RichTextEditingMutation','CommentService','delay','_docSyncEditingCollabCursorService','params','c2Prime','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LIVESHARE_OPERATION','onlineStatusIcon','INVALID_ARGUMENT','getSheetObject','onRemoteAck','PSEUDO_FETCH_MISSING_RESULT','_transformUndoredo','_decreaseWaiting','FETCH_MISSING','Tooltip','_scheduleClearOtherTimer','awaitingChangeset','onPointerEnter$','CONFLICT','translate(.97)','\x0aAfter:\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','setActiveRange','_docTransformIMECacheService','_onConnectionOpen','PENDING','_startSheetCollabCursor','_queuedRemoteChangesets','_createInitialStateImpl','ImageUploadStatusType','_fetchMissChangesets','_initCloseConn','/allowed','fetchMiss','liveShareOperation','readAsDataURL','UNAUTHENTICATED','LIVESHARE_TERMINATE','getCollabCursors$','permission.title','trim','YUUMI_SUBSCRIPTION_NOT_FOUND','distinctUntilChanged','conflict.title','tag','/fetchmissing?from=','startRow','_setupSubUnitSync','CommandType','closeSession','clear','WebURLService','getItem','transformByState','[CollaborationSession]','updateOfflineData','AWAITING_WITH_PENDING','status$','[OfflineState]:\x20received\x20rejection.','_scheduleCollaborationTimeoutTimer','cursorInfo','_syncEditingCollabCursorService','_sendingTimer','14550957hVFMAz','_notificationService','call','catch','NEW_CHANGESETS','onCommentUpdate','_userManagerService','UNIVER_PROJECT','JSONX','UNIVER_SHEET','_replaceFileID','_backgroundColor','/universer-api/snapshot','registerRenderModule','_ws','collab-rect-range-','updateCollaborator','LICENSE_EXPORT_SIZE_EXCEEDED','isPermissionRej','univer-online-status-icon','getCollabEntity','responseType','throttleTime','Injector','_cursors','_createInitialState','getTypeOfUnitDisposed$','onTransformRemoteChangesetByIMECache','doc.mutation.rich-text-editing','NOT_COLLAB','_startTelemetryCollaborationNewChangeset','getSheetBySheetId','FileId','getCurrentSelections','getOwnPropertySymbols','awaiting','putCollaborators','/object/','HTTPService','serializeCombRequest','/collaborator','gold400','[CollaborationEntity]','_socketService','_toggleOffline','size','body','_assignedColors','0\x200\x2016\x2016','univerjs-icon\x20univerjs-icon-','_commentUpdate$','snapshotServerUrl','forEach','PERMISSION_DENIED','from','verdancy600','_context','getCurrent','ImageSourceType','_shapes','CONNECTOR_DATA_TOO_LARGE','collaboration-client.config','enableSingleActiveInstanceLock','ALREADY_EXISTS','_renderManagerService','/resources','skeleton','cmd','UPDATE_CURSOR','_initModules','createSocket','RETRY_CONNECTING_MAX_COUNT_KEY','Error','_members','selection','getOffsetConfig','_collabSessionService','history','currentTheme$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_submitChangeset','getCoordByCell','memberID','attrs','shouldCloseConn','7165SIElrX','saveOfflineData','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','DependentOn','univer-pro.collaboration-client-socket-service','failed\x20to\x20apply\x20missed\x20changesets!','IBeforeCloseService','className','Error\x20on\x20receiving\x20event','svg','UniverInstanceType','executeCommand','_handleHeartbeatEvent','debounce','transformSelections','\x0aCurrent:\x20','_transformRemoteChangesetByIMECache','getValue','/universer-api/stream/file/upload','_handleHover','Warning','_getSaveTimeout','_getUndoStack','DocSkeletonManagerService','drawWith','_refRangeService','originalMeta','textRanges','LIVESHARE_FETCH_OPERATIONS','clearInterval','black','collabStatus.offline','updatePermissionObjEvent','_urlService','setInterval','@univerjs-pro/collaboration','LICENSE_IMPORT_SIZE_EXCEEDED','_getDownloadEndpointURL','&source=','sheetID','_singleActiveUnitService','onPointerLeave$','on-line-single_clip0_910_349','NOT_FOUND','getUnhiddenWorksheets','ColorKit','roles','extend','replaceTextRanges','0\x200\x2017\x2016','DocStateChangeManagerService','_tryEnsureSocket','urlChange$','collaboration.closeRoom','values','startsWith','createInstance','_transitionLocked','toggleOffline','then','requireSession','4127112eQLsZs','getFocusedUnit','with','CollaborationStatusDisplay','SNAPSHOT_HAS_BEEN_REMOVED','_ensureSubject','offline','RevisionService','_updateState','_clearLocalCache','getDocRanges','_document','debug','rev','color','IConfigService','infoRsp','changesets','pipe','UnitEmbedded','_unlockTransition','jiqing500','isTransformMutationsWithChangesetFailure','_colorAssignService','_textBubble','_socketReady','_uiPartsService','DeleteRangeMoveUpCommandId','_onMessage','_unitOnClients','replaceState','@univerjs/core','_startCollaboration','shareReplay','removeMember','_syncEditingCollabCursor','_logService','collab-text-anchor-','_removeClearOtherTimer','result','SheetSkeletonManagerService','handleInsertRow','closePath','UNKNOWN_CMD','isActive','transformRemoteChangeset','_roomMembers','getActiveSheet','HEARTBEAT_TIMEOUT_KEY','YUUMI_UNABLE_LOAD_URL','/rev/','getUniverSheetInstance','_onRemoteChangeset','slice','APPLY_REJECT','code','origin','disposeUnit','transformMutation','handleInsertRangeMoveDown','src','IImageIoService','\x20in\x20_schedule.','saveImage','not_collab','UNRECOGNIZED','fetch_missing','switchMap','includes','/universer-api/oidc/authpage','_initStatusComponent','_send','objectID','batchAllowed','_onRecvEvent','_commentService','_docSkeleton','_name','joinEvent','min','_onConflict','AuthzIoHttpService','url','_collabCursorState$','HttpImport','VIEWPORT_KEY','_exhaustRemoteChangesetQueue','object','UniverCollaborationClientPlugin','unload','stopTime','DocSelectionManagerService','focused$','getMember','SessionStatus','location','_messageService','width','IURLService','createElement','getSheetId','_unitID','getTypeOfUnitAdded$','confirm','LIVESHARE_NEW_HOST','onPointerMove$','off-line-single_clip0_910_343','hide','_throwTelemetryCollaborationNewChangeset','allowed','_hideTimer','CollaborationSession','CollaborationController','ITransformService','hidden','name','_updateURLWithCurrentState','IRemoteInstanceService','members','clearTimeout','addEventListener','_config','HEARTBEAT','[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.','appendMutation','session.will-retry','sheets','state$','eventID','override','M0\x200H16V16H0z','_permissionService','_lastPointer','onTransformIME','_getLoginPath','_docStateChangeManagerService','deserializeToCombResponse','updatePermissionPoint','signUrlServerUrl','assignAColorForMemberID','OnLineSingle','url(#on-line-single_clip0_910_349)','toggleOnline','restore','createCollaborator','getAttachHeader','_heartbeatTimer','x-univer-host','_revisionService','_localStorageService','getUnitOnRev','b64DecodeUnicode','save\x20fail\x20reason\x20is\x20','getSheetBlock','icon','SetSelectionsOperation','state','UNIVER_SLIDE','create','onSyncEditingCollabCursor','split','_beforeCloseService','getWorkbookSelections','setShapeProps','_docSkeletonManagerService','BASE64','transformMutationsWithChangeset','handleMoveRange','permissionRejEvent','Rect','collabCursorState$','RegularPolygon','_draw','arc','getImage','close','_clearCollaborationTimeoutTimer','DocCollaborationEntity','_candidateSocket','[CollaborationUndoRedoService]','_onCursorDelete','error','dispose','DesktopCollaborationStatusDisplayController','blue400','_hovered','CHANGESET_ACK','_getScale','MUTATION','/universer-api/file/{fileID}/sign-url','_imageSourceCache','{fileID}','complete','_waitCount'];_0x1ae8=function(){return _0x1e0c73;};return _0x1ae8();}exports[_0x1100bd(0x38b)]=class extends a[_0x1100bd(0x1c7)]{constructor(_0x16d816,_0x4956e6,_0xf7c865,_0x24eae6,_0x18b390,_0x378231,_0x26542b,_0x272a64,_0x234de4,_0x4977bc){const _0x3c6f87=_0x1100bd;super(),d(this,_0x3c6f87(0x4a4),new v[(_0x3c6f87(0x240))](0x0)),d(this,_0x3c6f87(0x48a),this[_0x3c6f87(0x4a4)][_0x3c6f87(0x4c2)]()),d(this,_0x3c6f87(0x565),new v[(_0x3c6f87(0x43a))]()),d(this,_0x3c6f87(0x448),this[_0x3c6f87(0x565)]['asObservable']()),d(this,_0x3c6f87(0x238)),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x3c6f87(0x4ee),!0x1),d(this,_0x3c6f87(0x515),null),(this[_0x3c6f87(0x381)]=_0x16d816,this[_0x3c6f87(0x340)]=_0xf7c865,this[_0x3c6f87(0x3bd)]=_0x24eae6,this[_0x3c6f87(0x37c)]=_0x18b390,this[_0x3c6f87(0x4c0)]=_0x378231,this[_0x3c6f87(0x418)]=_0x26542b,this[_0x3c6f87(0x1e4)]=_0x272a64,this[_0x3c6f87(0x367)]=_0x234de4,this[_0x3c6f87(0x1bd)]=_0x4977bc,this['_shouldReportTelemetry']=!!this[_0x3c6f87(0x1bd)],_0x4956e6[_0x3c6f87(0x32e)](v[_0x3c6f87(0x23f)](this['dispose$']))['subscribe'](_0x3b2b99=>{const _0x4e8c23=_0x3c6f87;var _0x544994;typeof _0x3b2b99>'u'||(this[_0x4e8c23(0x238)]=_0x3b2b99,_0x3b2b99?(this['_joinRoom'](_0x3b2b99),this[_0x4e8c23(0x1af)]=_0x3b2b99[_0x4e8c23(0x1b6)][_0x4e8c23(0x1f3)](_0xcbb345=>{const _0x499ef0=_0x4e8c23;_0xcbb345[_0x499ef0(0x417)]===this['_unitID']&&this[_0x499ef0(0x48f)](_0xcbb345);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4e8c23(0x4a4)][_0x4e8c23(0x496)](0x2),(_0x544994=this['_socketMessageSubscription'])==null||_0x544994[_0x4e8c23(0x595)](),this['_socketMessageSubscription']=null));}),this[_0x3c6f87(0x40b)](this[_0x3c6f87(0x3bd)][_0x3c6f87(0x5a9)](()=>{const _0x17cb08=_0x3c6f87;var _0x252f0c;(_0x252f0c=this[_0x17cb08(0x238)])==null||_0x252f0c[_0x17cb08(0x59a)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x1de5f7=_0x1100bd;return this[_0x1de5f7(0x4a4)][_0x1de5f7(0x2f0)]();}[_0x1100bd(0x4fc)](){const _0x102720=_0x1100bd;var _0x36ce68,_0x480b11;return(_0x480b11=(_0x36ce68=this['_socket'])==null?void 0x0:_0x36ce68[_0x102720(0x2dc)])!=null?_0x480b11:null;}[_0x1100bd(0x3d2)](){const _0x37d9b5=_0x1100bd;super['dispose'](),this['dispose$'][_0x37d9b5(0x496)](),this[_0x37d9b5(0x551)][_0x37d9b5(0x3dc)]();}[_0x1100bd(0x3cb)](){const _0x5f3cfe=_0x1100bd;var _0x5cda9e,_0x5b4928;this[_0x5f3cfe(0x388)](),(_0x5cda9e=this[_0x5f3cfe(0x238)])==null||_0x5cda9e[_0x5f3cfe(0x59a)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x5f3cfe(0x381)]}}),(_0x5b4928=this['_socket'])==null||_0x5b4928[_0x5f3cfe(0x3cb)](),this['_event$'][_0x5f3cfe(0x3dc)](),this[_0x5f3cfe(0x4a4)]['complete'](),this[_0x5f3cfe(0x3d2)]();}[_0x1100bd(0x48f)](_0xbe754a){const _0x378da1=_0x1100bd;_0xbe754a['cmd']===b[_0x378da1(0x44a)]?this['_onJoinRoomEvent'](_0xbe754a):_0xbe754a['cmd']===b[_0x378da1(0x50b)]&&this['_onRecvEvent'](_0xbe754a);}[_0x1100bd(0x1e8)](_0x24c15f){const _0x2f9401=_0x1100bd;this['_sessionStatus$'][_0x2f9401(0x496)](0x1),_0x24c15f['send']({'cmd':b[_0x2f9401(0x44a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2f9401(0x381)]}]}});}[_0x1100bd(0x478)](_0x6b87bf){const _0x401c47=_0x1100bd;var _0x323aba;if(_0x6b87bf[_0x401c47(0x353)]===We[_0x401c47(0x48e)]){this[_0x401c47(0x37c)][_0x401c47(0x1d9)]({'type':X[_0x401c47(0x4b2)]['Warning'],'content':this[_0x401c47(0x418)]['t'](_0x401c47(0x573))}),this[_0x401c47(0x4a4)][_0x401c47(0x496)](0x2);return;}this['_sessionStatus$'][_0x401c47(0x496)](0x3);const _0x30fdcc=(_0x323aba=_0x6b87bf['data'][_0x401c47(0x1ba)][this[_0x401c47(0x381)]])==null?void 0x0:_0x323aba[_0x401c47(0x392)];_0x30fdcc&&_0x30fdcc['forEach'](_0x781293=>this[_0x401c47(0x1e4)][_0x401c47(0x1d6)](this[_0x401c47(0x381)],_0x781293));}[_0x1100bd(0x366)](_0x1f5a2b){const _0x5be276=_0x1100bd;try{const _0x240fb3=_0x1f5a2b[_0x5be276(0x47d)];switch(_0x240fb3[_0x5be276(0x39c)]){case _[_0x5be276(0x55c)]['USERS_ENTER']:this['_onUserJoin'](_0x240fb3),this['_event$'][_0x5be276(0x496)](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x529)]:this['_onUserLeave'](_0x240fb3),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x3d6)]:this[_0x5be276(0x225)](),this[_0x5be276(0x3cc)](),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)]['MSG_FOR_ERROR']:this[_0x5be276(0x340)][_0x5be276(0x3d1)](_0x5be276(0x3b4)+JSON[_0x5be276(0x203)](_0x240fb3)),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x508)]:this['_commentService'][_0x5be276(0x28f)](_0x240fb3['data']),this[_0x5be276(0x565)]['next'](_0x240fb3);break;default:this[_0x5be276(0x565)][_0x5be276(0x496)](_0x240fb3);}}catch(_0x2e2c22){this['_logService']['error'](_0x2e2c22,_0x1f5a2b);}}[_0x1100bd(0x1f1)](_0x138db3){const _0x586b7e=_0x1100bd;this[_0x586b7e(0x1e4)][_0x586b7e(0x1d6)](this['_unitID'],_0x138db3['data']);}[_0x1100bd(0x485)](_0x58dbd6){const _0x35269d=_0x1100bd;this[_0x35269d(0x1e4)][_0x35269d(0x33e)](this[_0x35269d(0x381)],_0x58dbd6[_0x35269d(0x47d)][_0x35269d(0x2dc)]);}async[_0x1100bd(0x59a)](_0x52e1b4,_0x5db2cf){const _0x37db14=_0x1100bd;if(this[_0x37db14(0x443)]!==0x3||!this[_0x37db14(0x238)])throw new Error(_0x37db14(0x47b));try{_0x52e1b4['eventID']===_[_0x37db14(0x55c)][_0x37db14(0x46f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x52e1b4)),this[_0x37db14(0x238)]['send']({'cmd':b[_0x37db14(0x556)],'routeKey':_0x5db2cf,'routeType':'','data':_0x52e1b4});}catch(_0x5dc4fb){this['_logService'][_0x37db14(0x3d1)](_0x5dc4fb);}}[_0x1100bd(0x286)](){const _0x387abe=_0x1100bd;var _0x1c46e2;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x9cb2b=_0x75d2;this[_0x9cb2b(0x59f)]=null,this[_0x9cb2b(0x37c)][_0x9cb2b(0x1d9)]({'type':X[_0x9cb2b(0x4b2)][_0x9cb2b(0x2d2)],'content':this[_0x9cb2b(0x418)]['t'](_0x9cb2b(0x55d))});},(_0x1c46e2=this[_0x387abe(0x4c0)][_0x387abe(0x204)](Ve))!=null?_0x1c46e2:St);}['_clearCollaborationTimeoutTimer'](){const _0x398fd9=_0x1100bd;this[_0x398fd9(0x59f)]&&(clearTimeout(this[_0x398fd9(0x59f)]),this[_0x398fd9(0x59f)]=null);}[_0x1100bd(0x2a8)](_0x4c130f){const _0x47ebc1=_0x1100bd;if(!this[_0x47ebc1(0x4ee)])return;const {data:_0x5495f6}=_0x4c130f,{unitID:_0x4cd457,changeset:_0x1205a9}=_0x5495f6,{mutations:_0x4e0ebf,type:_0x27ba1b}=_0x1205a9;this[_0x47ebc1(0x515)]={'unitId':_0x4cd457,'type':_0x27ba1b,'startTime':performance[_0x47ebc1(0x46b)](),'stopTime':0x0,'duration':0x0,'size':as(_0x4e0ebf)};}[_0x1100bd(0x225)](){const _0x24f74a=_0x1100bd;if(this[_0x24f74a(0x4ee)]){if(!this[_0x24f74a(0x515)]){this[_0x24f74a(0x340)]['error'](_0x24f74a(0x281),_0x24f74a(0x499));return;}this[_0x24f74a(0x515)]['stopTime']=performance[_0x24f74a(0x46b)](),this[_0x24f74a(0x515)]['duration']=this[_0x24f74a(0x515)][_0x24f74a(0x376)]-this[_0x24f74a(0x515)]['startTime'],this['_telemetryService']['capture'](os,this['_telemetryInfo']),this[_0x24f74a(0x515)]=null;}}[_0x1100bd(0x388)](){const _0x17889c=_0x1100bd;this[_0x17889c(0x515)]=null;}},exports[_0x1100bd(0x38b)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x1100bd(0x2e5)]),B(0x4,N[_0x1100bd(0x411)]),B(0x5,a[_0x1100bd(0x32b)]),B(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),B(0x7,a[_0x1100bd(0x583)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x1100bd(0x523)](Vt[_0x1100bd(0x547)]))],exports[_0x1100bd(0x38b)]);var vs=Object['defineProperty'],fs=Object[_0x1100bd(0x444)],gs=(_0x2e3498,_0x428dcd,_0xa510a,_0x3d5aa9)=>{for(var _0x4a0788=_0x3d5aa9>0x1?void 0x0:_0x3d5aa9?fs(_0x428dcd,_0xa510a):_0x428dcd,_0x53acea=_0x2e3498['length']-0x1,_0x34f24b;_0x53acea>=0x0;_0x53acea--)(_0x34f24b=_0x2e3498[_0x53acea])&&(_0x4a0788=(_0x3d5aa9?_0x34f24b(_0x428dcd,_0xa510a,_0x4a0788):_0x34f24b(_0x4a0788))||_0x4a0788);return _0x3d5aa9&&_0x4a0788&&vs(_0x428dcd,_0xa510a,_0x4a0788),_0x4a0788;},Z=(_0x4d3b3a,_0x3a559e)=>(_0xef908b,_0x5bebc3)=>_0x3a559e(_0xef908b,_0x5bebc3,_0x4d3b3a);exports['CollaborationSessionService']=class extends a[_0x1100bd(0x4e4)]{constructor(_0x3b4819,_0x441bd6,_0xab1b58,_0x2c400c,_0x4bfe06,_0xd64685){const _0x232ab4=_0x1100bd;super(),d(this,_0x232ab4(0x4b1),new v[(_0x232ab4(0x240))](void 0x0)),d(this,_0x232ab4(0x4ec),this[_0x232ab4(0x4b1)][_0x232ab4(0x4c2)]()),d(this,_0x232ab4(0x3ce),null),d(this,_0x232ab4(0x445),new Map()),d(this,_0x232ab4(0x458),new v[(_0x232ab4(0x240))]($[_0x232ab4(0x4e6)])),d(this,_0x232ab4(0x284),this[_0x232ab4(0x458)][_0x232ab4(0x4c2)]()),d(this,_0x232ab4(0x335),!0x1),d(this,'_retryConnectingTimer'),d(this,_0x232ab4(0x580),0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x232ab4(0x1b9)),(this['_injector']=_0x3b4819,this[_0x232ab4(0x418)]=_0x441bd6,this['_messageService']=_0xab1b58,this[_0x232ab4(0x340)]=_0x2c400c,this[_0x232ab4(0x4c0)]=_0x4bfe06,this[_0x232ab4(0x2b5)]=_0xd64685,this[_0x232ab4(0x3de)]());}get[_0x1100bd(0x238)](){const _0x4d56d2=_0x1100bd;return this[_0x4d56d2(0x4b1)][_0x4d56d2(0x2f0)]();}[_0x1100bd(0x3de)](){const _0x3d945a=_0x1100bd;this[_0x3d945a(0x4a7)](),this[_0x3d945a(0x50c)]();}[_0x1100bd(0x3d2)](){const _0x14ebdb=_0x1100bd;super[_0x14ebdb(0x3d2)](),this[_0x14ebdb(0x445)][_0x14ebdb(0x2be)](_0x1afb35=>_0x1afb35[_0x14ebdb(0x3d2)]()),this[_0x14ebdb(0x445)][_0x14ebdb(0x27d)](),this['_status$'][_0x14ebdb(0x3dc)]();}async['requireSession'](_0x5d462b){const _0x2bbc63=_0x1100bd;if(this[_0x2bbc63(0x445)][_0x2bbc63(0x5a3)](_0x5d462b))return this[_0x2bbc63(0x445)][_0x2bbc63(0x1f4)](_0x5d462b);this[_0x2bbc63(0x312)]();const _0x8359fa=this[_0x2bbc63(0x1d8)][_0x2bbc63(0x317)](exports[_0x2bbc63(0x38b)],_0x5d462b,this['_socket$'][_0x2bbc63(0x4c2)]());return this[_0x2bbc63(0x445)][_0x2bbc63(0x57e)](_0x5d462b,_0x8359fa),_0x8359fa;}[_0x1100bd(0x27c)](_0x2c5dab){const _0x596430=_0x1100bd;var _0x51c8ca;const _0x3e2310=this[_0x596430(0x445)][_0x596430(0x1f4)](_0x2c5dab);_0x3e2310&&(this[_0x596430(0x445)][_0x596430(0x5bf)](_0x2c5dab),_0x3e2310[_0x596430(0x3cb)]()),this[_0x596430(0x445)][_0x596430(0x2b7)]||(_0x51c8ca=this['_socket'])==null||_0x51c8ca[_0x596430(0x3cb)]();}[_0x1100bd(0x1e7)](){const _0x209a7c=_0x1100bd;this[_0x209a7c(0x580)]=0x0,this[_0x209a7c(0x462)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x209a7c(0x462)]=null),this[_0x209a7c(0x524)]();}[_0x1100bd(0x1d3)](){const _0x21103d=_0x1100bd;var _0x1b824b,_0x22523a;const _0x501375=this[_0x21103d(0x4c0)][_0x21103d(0x204)](ut),_0x4ab265=this['_configService']['getConfig'](A),_0x44bd01=(_0x22523a=(_0x1b824b=_0x4ab265==null?void 0x0:_0x4ab265['collabWebSocketUrl'])!=null?_0x1b824b:_0x501375)!=null?_0x22523a:Xt,_0x3c7eb4=this[_0x21103d(0x2b5)][_0x21103d(0x2d0)](_0x44bd01);return this[_0x21103d(0x3ce)]=_0x3c7eb4,_0x3c7eb4;}[_0x1100bd(0x312)](){const _0x411f60=_0x1100bd;var _0x2d46b4,_0x489abc;try{const _0x416365=(_0x489abc=(_0x2d46b4=this[_0x411f60(0x238)])!=null?_0x2d46b4:this['_candidateSocket'])!=null?_0x489abc:this[_0x411f60(0x1d3)]();if(_0x416365){const _0x4d181f=_0x416365['send'];_0x416365[_0x411f60(0x59a)]=_0x157b25=>(this[_0x411f60(0x46e)](),_0x4d181f[_0x411f60(0x4f7)](_0x416365,[_0x157b25])),_0x416365[_0x411f60(0x1b6)][_0x411f60(0x1f3)](_0x14e2e7=>this[_0x411f60(0x338)](_0x416365,_0x14e2e7)),_0x416365[_0x411f60(0x516)][_0x411f60(0x32e)](E[_0x411f60(0x542)](0x1))['subscribe'](_0x382781=>this[_0x411f60(0x340)][_0x411f60(0x3d1)]('[CollaborationSessionService]:\x20socket\x20error',_0x382781)),_0x416365[_0x411f60(0x4ef)][_0x411f60(0x32e)](E['take'](0x1))[_0x411f60(0x1f3)](()=>{const _0x413e5a=_0x411f60;this[_0x413e5a(0x263)](_0x416365);}),_0x416365[_0x411f60(0x3e1)][_0x411f60(0x32e)](E[_0x411f60(0x542)](0x1))[_0x411f60(0x1f3)](_0xba1778=>{const _0x16ffd2=_0x411f60;this[_0x16ffd2(0x340)][_0x16ffd2(0x328)](_0x16ffd2(0x3fc),'socket\x20close',_0xba1778),this[_0x16ffd2(0x1f9)]();});}}catch(_0x534a47){this['_logService']['error'](_0x534a47),this[_0x411f60(0x1f9)]();}}[_0x1100bd(0x263)](_0x22bab5){const _0x33074f=_0x1100bd;this[_0x33074f(0x340)][_0x33074f(0x328)](_0x33074f(0x3fc),_0x33074f(0x59c)),_0x22bab5['send']({'cmd':b['HELLO']}),this[_0x33074f(0x46e)]();}['_listenToOfflineEvent'](){const _0x4791aa=_0x1100bd;window[_0x4791aa(0x394)]('offline',()=>this['_onOffline']());}[_0x1100bd(0x1c3)](){const _0x1291e4=_0x1100bd;this[_0x1291e4(0x335)]=!0x1,this[_0x1291e4(0x3ce)]=null,this[_0x1291e4(0x458)][_0x1291e4(0x496)]($[_0x1291e4(0x4ad)]),this[_0x1291e4(0x4b1)]['next'](null),this[_0x1291e4(0x237)](),this[_0x1291e4(0x1cd)]();}[_0x1100bd(0x1f9)](){const _0x5576fc=_0x1100bd;var _0x3f574f;this[_0x5576fc(0x1c3)](),this[_0x5576fc(0x580)]<((_0x3f574f=this[_0x5576fc(0x4c0)][_0x5576fc(0x204)](vt))!=null?_0x3f574f:Jt)?(this[_0x5576fc(0x37c)][_0x5576fc(0x1d9)]({'key':_0x5576fc(0x45e),'type':X[_0x5576fc(0x4b2)][_0x5576fc(0x2f3)],'content':this['_localeService']['t'](_0x5576fc(0x399))}),this[_0x5576fc(0x524)]()):this[_0x5576fc(0x37c)][_0x5576fc(0x1d9)]({'key':'collaboration-session-retry','type':X[_0x5576fc(0x4b2)]['Error'],'content':this[_0x5576fc(0x418)]['t'](_0x5576fc(0x446))});}[_0x1100bd(0x50c)](){const _0x5f15ab=_0x1100bd,_0x5045fe=()=>{const _0x3f4a55=_0x75d2;this[_0x3f4a55(0x238)]||this['reconnect']();},_0x450fee=()=>{const _0x6129d3=_0x75d2;this['_socket']||document[_0x6129d3(0x470)]===_0x6129d3(0x38e)||this[_0x6129d3(0x1e7)]();};window[_0x5f15ab(0x394)](_0x5f15ab(0x475),_0x5045fe),document['addEventListener'](_0x5f15ab(0x406),_0x450fee);}[_0x1100bd(0x524)](){const _0x453c6e=_0x1100bd;var _0x29bae9;const _0x4f6904=this[_0x453c6e(0x580)],_0x418c11=this[_0x453c6e(0x4c0)][_0x453c6e(0x204)](A),_0x171890=_0x4f6904===0x0?0x0:((_0x29bae9=_0x418c11==null?void 0x0:_0x418c11[_0x453c6e(0x451)])!=null?_0x29bae9:zt)*0x2**_0x4f6904;this[_0x453c6e(0x462)]=window[_0x453c6e(0x4f0)](()=>{const _0x59d45e=_0x453c6e;clearTimeout(this[_0x59d45e(0x462)]),this[_0x59d45e(0x462)]=null,this['_tryEnsureSocket']();},_0x171890),this['_retryCount']+=0x1;}['_onMessage'](_0x5230d5,_0x3b4945){const _0x50f212=_0x1100bd,{cmd:_0x330b55}=_0x3b4945;_0x330b55===b[_0x50f212(0x432)]&&!this[_0x50f212(0x335)]&&(_0x5230d5[_0x50f212(0x2dc)]=_0x3b4945[_0x50f212(0x47d)][_0x50f212(0x2dc)],this[_0x50f212(0x4b1)][_0x50f212(0x496)](_0x5230d5),this[_0x50f212(0x458)][_0x50f212(0x496)]($[_0x50f212(0x48c)]),this[_0x50f212(0x335)]=!0x0,this[_0x50f212(0x3ce)]=null),_0x330b55===b[_0x50f212(0x396)]&&this[_0x50f212(0x237)](),this[_0x50f212(0x46e)]();}[_0x1100bd(0x46e)](){const _0x5d9211=_0x1100bd;var _0x1b07a3;this[_0x5d9211(0x1cd)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x5d9211(0x1ad)](),(_0x1b07a3=this[_0x5d9211(0x4c0)][_0x5d9211(0x204)](dt))!=null?_0x1b07a3:qt);}[_0x1100bd(0x1ad)](){const _0x4f430b=_0x1100bd;this[_0x4f430b(0x238)][_0x4f430b(0x59a)]({'cmd':b[_0x4f430b(0x396)]}),this[_0x4f430b(0x21c)]();}[_0x1100bd(0x21c)](){const _0x27f614=_0x1100bd;var _0x1cbc61;this[_0x27f614(0x1b9)]=window['setTimeout'](()=>this[_0x27f614(0x1f9)](),(_0x1cbc61=this[_0x27f614(0x4c0)][_0x27f614(0x204)](Ve))!=null?_0x1cbc61:St);}[_0x1100bd(0x1cd)](){const _0x416576=_0x1100bd;this[_0x416576(0x43c)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x416576(0x43c)]=null);}['_clearTimeoutTimer'](){const _0x5a7a3f=_0x1100bd;this[_0x5a7a3f(0x1b9)]!=null&&(clearTimeout(this[_0x5a7a3f(0x1b9)]),this['_timeoutTimer']=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a[_0x1100bd(0x583)](a['Injector'])),Z(0x1,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),Z(0x2,N[_0x1100bd(0x411)]),Z(0x3,a[_0x1100bd(0x49b)]),Z(0x4,a[_0x1100bd(0x32b)]),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x1100bd(0x4ed)],Is=Object[_0x1100bd(0x444)],ps=(_0x1ee027,_0x2899e8,_0xb51f80,_0x46640f)=>{for(var _0x4f98be=_0x46640f>0x1?void 0x0:_0x46640f?Is(_0x2899e8,_0xb51f80):_0x2899e8,_0x2c5166=_0x1ee027['length']-0x1,_0x4012fc;_0x2c5166>=0x0;_0x2c5166--)(_0x4012fc=_0x1ee027[_0x2c5166])&&(_0x4f98be=(_0x46640f?_0x4012fc(_0x2899e8,_0xb51f80,_0x4f98be):_0x4012fc(_0x4f98be))||_0x4f98be);return _0x46640f&&_0x4f98be&&ms(_0x2899e8,_0xb51f80,_0x4f98be),_0x4f98be;},De=(_0x3f1fad,_0x381e68)=>(_0x2e4a92,_0x77bff7)=>_0x381e68(_0x2e4a92,_0x77bff7,_0x3f1fad);let fe=class{constructor(_0x59242f,_0x1cca8e,_0x36e199){const _0x12f44e=_0x1100bd;this['_injector']=_0x59242f,this['_transformService']=_0x1cca8e,this[_0x12f44e(0x2ca)]=_0x36e199;}[_0x1100bd(0x483)](_0x25a5a6){const _0x528093=_0x1100bd;this[_0x528093(0x234)](_0x25a5a6),this[_0x528093(0x512)](_0x25a5a6);}[_0x1100bd(0x349)](_0x2106bf){const _0x4ccfd2=_0x1100bd,{unitID:_0x2b6512}=_0x2106bf,_0x27c37a=this[_0x4ccfd2(0x2ca)]['getRenderById'](_0x2b6512)[_0x4ccfd2(0x31e)](w[_0x4ccfd2(0x4cb)]),{redoCache:_0xd951d7}=_0x27c37a[_0x4ccfd2(0x493)]();if(_0xd951d7[_0x4ccfd2(0x46d)]===0x0)return _0x2106bf;let _0x438f9b=a[_0x4ccfd2(0x4fb)][_0x4ccfd2(0x427)](_0x2106bf[_0x4ccfd2(0x45c)][0x0]);for(let _0x5d35fa=0x0;_0x5d35fa<_0xd951d7[_0x4ccfd2(0x46d)];_0x5d35fa++){const _0x28106f={'id':_0x4ccfd2(0x2a6),'params':{..._0xd951d7[_0x5d35fa]}},_0x11b6c6=this[_0x4ccfd2(0x1ce)][_0x4ccfd2(0x356)](_0x438f9b,_0x28106f,!0x1);if(_[_0x4ccfd2(0x4c1)](_0x11b6c6))throw _0x11b6c6['error'];_0x438f9b=_0x11b6c6[_0x4ccfd2(0x578)];}return{...a[_0x4ccfd2(0x4fb)]['deepClone'](_0x2106bf),'mutations':[_0x438f9b]};}[_0x1100bd(0x234)](_0x2092d2){const _0xac6a47=_0x1100bd,{unitID:_0x5c2590}=_0x2092d2,_0x488882=this[_0xac6a47(0x2ca)][_0xac6a47(0x233)](_0x5c2590)[_0xac6a47(0x31e)](w[_0xac6a47(0x4cb)]),{undoCache:_0x5a62eb,redoCache:_0x34b7eb}=_0x488882[_0xac6a47(0x493)]();if(_0x5a62eb[_0xac6a47(0x46d)]===0x0||_0x34b7eb[_0xac6a47(0x46d)]===0x0)return;const _0x4eefb4=[],_0x3c5dea=[];let _0x200dea=a[_0xac6a47(0x4fb)]['deepClone'](_0x2092d2[_0xac6a47(0x45c)][0x0]),_0x41b498=a[_0xac6a47(0x4fb)]['deepClone'](_0x2092d2['mutations'][0x0]);for(let _0x100573=_0x5a62eb[_0xac6a47(0x46d)]-0x1;_0x100573>=0x0;_0x100573--){const _0x2de22a={'id':'doc.mutation.rich-text-editing','params':{..._0x5a62eb[_0x100573]}},_0xaecc6a={'id':_0xac6a47(0x2a6),'params':{..._0x34b7eb[_0x100573]}},_0x2762c6=this[_0xac6a47(0x1ce)][_0xac6a47(0x356)](_0x200dea,_0x2de22a,!0x1),_0x39c386=this[_0xac6a47(0x1ce)][_0xac6a47(0x356)](_0x41b498,_0xaecc6a,!0x1);if(_[_0xac6a47(0x4c1)](_0x2762c6))throw _0x2762c6['error'];if(_[_0xac6a47(0x4c1)](_0x39c386))throw _0x39c386[_0xac6a47(0x3d1)];_0x4eefb4[_0xac6a47(0x4fd)](_0x2762c6[_0xac6a47(0x1ca)][_0xac6a47(0x24d)]),_0x3c5dea[_0xac6a47(0x4fd)](_0x39c386[_0xac6a47(0x1ca)][_0xac6a47(0x24d)]),_0x200dea=_0x2762c6['m1Prime'],_0x41b498=_0x39c386[_0xac6a47(0x578)];}_0x488882[_0xac6a47(0x4f3)]({'undoCache':_0x4eefb4,'redoCache':_0x3c5dea});}[_0x1100bd(0x512)](_0x524763){const _0x14d98f=_0x1100bd,{unitID:_0x2bd90e}=_0x524763,_0x22b3ed=this[_0x14d98f(0x2ca)][_0x14d98f(0x233)](_0x2bd90e)[_0x14d98f(0x31e)](w[_0x14d98f(0x4cb)]),_0x4f0aab=_0x22b3ed[_0x14d98f(0x52b)]();if(_0x4f0aab==null)return;const _0x5f2346=[{'id':_0x14d98f(0x2a6),'params':{'unitId':_0x524763[_0x14d98f(0x59b)],'actions':null,'textRanges':[_0x4f0aab]}}],_0x24a455=this[_0x14d98f(0x1ce)][_0x14d98f(0x3c2)](_0x524763,_0x5f2346);if(!_[_0x14d98f(0x5a1)](_0x24a455))throw _0x24a455[_0x14d98f(0x3d1)];const _0x279be4=_0x24a455['m2Prime'][0x0]['params'][_0x14d98f(0x2fa)];Array[_0x14d98f(0x57c)](_0x279be4)&&_0x279be4[_0x14d98f(0x46d)]&&_0x22b3ed[_0x14d98f(0x261)](_0x279be4[0x0]);}};fe=ps([De(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),De(0x1,_['ITransformService']),De(0x2,R[_0x1100bd(0x56a)])],fe);var Cs=Object[_0x1100bd(0x4ed)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x2503a8,_0x1e3a5e,_0x37edbc,_0x159ea8)=>{const _0x1c4053=_0x1100bd;for(var _0x539f1e=_0x159ea8>0x1?void 0x0:_0x159ea8?Es(_0x1e3a5e,_0x37edbc):_0x1e3a5e,_0x14ee01=_0x2503a8[_0x1c4053(0x46d)]-0x1,_0x57b41d;_0x14ee01>=0x0;_0x14ee01--)(_0x57b41d=_0x2503a8[_0x14ee01])&&(_0x539f1e=(_0x159ea8?_0x57b41d(_0x1e3a5e,_0x37edbc,_0x539f1e):_0x57b41d(_0x539f1e))||_0x539f1e);return _0x159ea8&&_0x539f1e&&Cs(_0x1e3a5e,_0x37edbc,_0x539f1e),_0x539f1e;},ae=(_0x236da7,_0x5b9b07)=>(_0xb066c7,_0x45760d)=>_0x5b9b07(_0xb066c7,_0x45760d,_0x236da7);exports[_0x1100bd(0x209)]=class extends a['Disposable']{constructor(_0x459b0b,_0x4422b1,_0x187eb3,_0x592a42,_0x4b873e){const _0x5bb7a3=_0x1100bd;super(),d(this,'_cachedData',new Map()),d(this,_0x5bb7a3(0x4b6),new Map()),d(this,_0x5bb7a3(0x22d),!0x1),(this[_0x5bb7a3(0x4c0)]=_0x459b0b,this[_0x5bb7a3(0x3b1)]=_0x4422b1,this['_beforeCloseService']=_0x187eb3,this[_0x5bb7a3(0x418)]=_0x592a42,this[_0x5bb7a3(0x3b0)]=_0x4b873e,this[_0x5bb7a3(0x44c)]());}['disableLocalCache'](){const _0x16ad7d=_0x1100bd;this[_0x16ad7d(0x22d)]=!0x0;}['enableLocalCache'](){const _0x57781e=_0x1100bd;this[_0x57781e(0x22d)]=!0x1;}[_0x1100bd(0x3d2)](){const _0x1189f1=_0x1100bd;this[_0x1189f1(0x3fb)]()[_0x1189f1(0x31a)](()=>super[_0x1189f1(0x3d2)]());}async['loadOfflineData'](_0x1e5b49){const _0x7009f1=_0x1100bd;return this['_disabled']?null:this[_0x7009f1(0x3b1)][_0x7009f1(0x27f)](Qe(_0x1e5b49));}async[_0x1100bd(0x2e0)](_0x240bbd,_0x284521){const _0x1c65ed=_0x1100bd;return!!this[_0x1c65ed(0x3b1)]['setItem'](_0x240bbd,_0x284521);}[_0x1100bd(0x282)](_0xe456,_0x57ed38,_0x4e0cdd,_0x23085f){const _0x2a6073=_0x1100bd,_0x302201=this[_0x2a6073(0x3b0)][_0x2a6073(0x4c7)](_0xe456);this[_0x2a6073(0x218)]['set'](_0xe456,{'unitID':_0xe456,'type':_0x57ed38,'awaitingChangeset':_0x4e0cdd,'mutations':_0x23085f,'rev':_0x302201}),this[_0x2a6073(0x4b6)][_0x2a6073(0x5a3)](_0xe456)||this[_0x2a6073(0x520)](_0xe456);}['_scheduleSaving'](_0x174fd1){const _0x3d5971=_0x1100bd,_0x53f030=this[_0x3d5971(0x2f4)]();_0x53f030===0x0?this[_0x3d5971(0x1e5)](_0x174fd1):this[_0x3d5971(0x4b6)][_0x3d5971(0x57e)](_0x174fd1,setTimeout(()=>this['_saveCache'](_0x174fd1),_0x53f030));}['_getSaveTimeout'](){const _0x141378=_0x1100bd;var _0x472ae8;return(_0x472ae8=this[_0x141378(0x4c0)][_0x141378(0x204)](ft))!=null?_0x472ae8:Zt;}[_0x1100bd(0x1e5)](_0x592376){const _0x82dd44=_0x1100bd,_0x2ec9ff=this['_saveTaskMap']['get'](_0x592376);return _0x2ec9ff!==void 0x0&&window['clearTimeout'](_0x2ec9ff),this['_localStorageService'][_0x82dd44(0x1f8)](Qe(_0x592376),this[_0x82dd44(0x218)][_0x82dd44(0x1f4)](_0x592376))[_0x82dd44(0x31a)](()=>this[_0x82dd44(0x4b6)][_0x82dd44(0x5bf)](_0x592376));}async[_0x1100bd(0x3fb)](){const _0xd20c7=_0x1100bd,_0x3526b4=[];this[_0xd20c7(0x4b6)]['forEach']((_0x534763,_0xeda769)=>{const _0x4efe9f=_0xd20c7;window[_0x4efe9f(0x393)](_0x534763),_0x3526b4[_0x4efe9f(0x414)](this[_0x4efe9f(0x1e5)](_0xeda769)[_0x4efe9f(0x31a)](()=>{const _0x4b35a7=_0x4efe9f;this[_0x4b35a7(0x4b6)][_0x4b35a7(0x5bf)](_0xeda769);}));}),await Promise[_0xd20c7(0x213)](_0x3526b4);}['_setupBeforeClosingHandler'](){const _0x53d8ba=_0x1100bd;this[_0x53d8ba(0x40b)](this[_0x53d8ba(0x3bd)][_0x53d8ba(0x50a)](()=>{const _0x334fc1=_0x53d8ba;if(this[_0x334fc1(0x4b6)][_0x334fc1(0x2b7)])return this['_localeService']['t'](_0x334fc1(0x484));}));}},exports[_0x1100bd(0x209)]=bs([ae(0x0,a[_0x1100bd(0x32b)]),ae(0x1,a[_0x1100bd(0x3ed)]),ae(0x2,N[_0x1100bd(0x2e5)]),ae(0x3,a['Inject'](a['LocaleService'])),ae(0x4,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)]))],exports['LocalCacheService']);function Qe(_0x2fbdcd){const _0x179bac=_0x1100bd;return _0x179bac(0x519)+_0x2fbdcd;}var Ts=Object[_0x1100bd(0x4ed)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x59a0fd,_0x158dba,_0x3b5c98,_0x44350a)=>{const _0x58f964=_0x1100bd;for(var _0x3207df=_0x44350a>0x1?void 0x0:_0x44350a?Rs(_0x158dba,_0x3b5c98):_0x158dba,_0x3e3235=_0x59a0fd[_0x58f964(0x46d)]-0x1,_0x2a6639;_0x3e3235>=0x0;_0x3e3235--)(_0x2a6639=_0x59a0fd[_0x3e3235])&&(_0x3207df=(_0x44350a?_0x2a6639(_0x158dba,_0x3b5c98,_0x3207df):_0x2a6639(_0x3207df))||_0x3207df);return _0x44350a&&_0x3207df&&Ts(_0x158dba,_0x3b5c98,_0x3207df),_0x3207df;},ye=(_0x3a2963,_0xf90ecf)=>(_0x43eb38,_0x537389)=>_0xf90ecf(_0x43eb38,_0x537389,_0x3a2963);function Ds(_0x42c9c1){const _0x17b139=_0x1100bd,{unitID:_0x1950d9,mutations:_0x2a95b2}=_0x42c9c1;return{'unitId':_0x1950d9,'subUnitId':_0x2a95b2[0x0][_0x17b139(0x24d)][_0x17b139(0x1b1)]};}let ge=class{constructor(_0x203894,_0x58e82e,_0x4bf4bf){const _0x54efa1=_0x1100bd;this['_injector']=_0x203894,this[_0x54efa1(0x1ce)]=_0x58e82e,this[_0x54efa1(0x1d7)]=_0x4bf4bf;}[_0x1100bd(0x2ed)](_0x29811a){const _0x40f751=_0x1100bd;var _0x559f90,_0x395825,_0x16eea9,_0x146972;const _0x88ff94=this[_0x40f751(0x1d8)][_0x40f751(0x1f4)](C[_0x40f751(0x52d)]),{unitId:_0x2cc49d,subUnitId:_0x49265}=Ds(_0x29811a),_0x55ec8b=_0x88ff94[_0x40f751(0x3be)](_0x2cc49d)['getCurrentSelections'](),_0x344ec7=(_0x395825=(_0x559f90=this[_0x40f751(0x1d7)][_0x40f751(0x425)](_0x2cc49d))==null?void 0x0:_0x559f90['getActiveSheet']())==null?void 0x0:_0x395825[_0x40f751(0x380)]();if(_0x55ec8b[_0x40f751(0x46d)]===0x0||!_0x2cc49d||!_0x49265)return;const _0x436bd8=[{'id':C[_0x40f751(0x3b7)]['id'],'params':{'unitId':_0x2cc49d,'subUnitId':_0x344ec7,'selections':a[_0x40f751(0x4fb)]['deepClone'](_0x55ec8b)}}],_0x2add93=this[_0x40f751(0x1ce)][_0x40f751(0x3c2)](_0x29811a,_0x436bd8);if(!_[_0x40f751(0x5a1)](_0x2add93))throw _0x2add93['error'];const _0x207c2a=(_0x146972=(_0x16eea9=_0x2add93[_0x40f751(0x1ca)][0x0])==null?void 0x0:_0x16eea9[_0x40f751(0x24d)])==null?void 0x0:_0x146972[_0x40f751(0x1d4)];Array['isArray'](_0x207c2a)&&_0x207c2a[_0x40f751(0x46d)]&&this[_0x40f751(0x1d8)]['get'](a[_0x40f751(0x505)])[_0x40f751(0x2ea)](C[_0x40f751(0x3b7)]['id'],{'unitId':_0x2cc49d,'subUnitId':_0x344ec7,'selections':_0x207c2a});}};ge=Os([ye(0x0,a['Inject'](a[_0x1100bd(0x2a1)])),ye(0x1,_[_0x1100bd(0x38d)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a[_0x1100bd(0x1be)](_0x1100bd(0x4df));var bt=(_0x2bc7cd=>(_0x2bc7cd[_0x2bc7cd[_0x1100bd(0x207)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2bc7cd[_0x2bc7cd[_0x1100bd(0x59e)]=0x1]=_0x1100bd(0x59e),_0x2bc7cd))(bt||{});const et=0x7530,tt=_0x1100bd(0x57d);class ys extends a[_0x1100bd(0x4e4)]{constructor(){const _0x4545ed=_0x1100bd;super(),d(this,_0x4545ed(0x461),a['Tools'][_0x4545ed(0x552)]()),d(this,_0x4545ed(0x4bd),new Set()),d(this,_0x4545ed(0x339),new Map()),d(this,_0x4545ed(0x3ae),null),d(this,_0x4545ed(0x1f2),new Map()),d(this,_0x4545ed(0x243),new Map()),this['_init']();}['dispose'](){const _0xbf75e5=_0x1100bd;super[_0xbf75e5(0x3d2)](),this[_0xbf75e5(0x1f2)]['forEach']((_0x376bbc,_0x5b7ce2)=>this['_removeClearOtherTimer'](_0x5b7ce2)),this[_0xbf75e5(0x3ae)]&&window[_0xbf75e5(0x2fc)](this[_0xbf75e5(0x3ae)]);}[_0x1100bd(0x4f1)](_0x2d270a){const _0x2b9b22=_0x1100bd;return this['_ensureSubject'](_0x2d270a)['pipe'](v[_0x2b9b22(0x275)]());}['editingUnit'](_0x3d5b38){const _0x31711e=_0x1100bd;this['_selfUnitIDs']['size']===0x0&&this[_0x31711e(0x533)](),this['_selfUnitIDs'][_0x31711e(0x1e0)](_0x3d5b38),this[_0x31711e(0x363)]({'type':0x0,'memberID':this[_0x31711e(0x461)],'unitIDs':[_0x3d5b38],'isForwarded':!0x1});}[_0x1100bd(0x355)](_0x45b7fd){const _0x4f3286=_0x1100bd;this[_0x4f3286(0x4bd)][_0x4f3286(0x5bf)](_0x45b7fd),this[_0x4f3286(0x4bd)][_0x4f3286(0x2b7)]===0x0&&this[_0x4f3286(0x3ae)]&&window[_0x4f3286(0x2fc)](this['_heartbeatTimer']);}[_0x1100bd(0x4a0)](){const _0x5e4a23=_0x1100bd;this[_0x5e4a23(0x40b)](a['toDisposable'](v[_0x5e4a23(0x549)](window,_0x5e4a23(0x53c))[_0x5e4a23(0x1f3)](_0x55e823=>{const _0x126159=_0x5e4a23;if(_0x55e823['key']!==tt||!_0x55e823[_0x126159(0x429)])return;const _0x444cd6=JSON[_0x126159(0x3e3)](_0x55e823[_0x126159(0x429)]);this[_0x126159(0x473)](_0x444cd6);}))),window[_0x5e4a23(0x394)](_0x5e4a23(0x375),()=>this['_send']({'type':0x1,'memberID':this[_0x5e4a23(0x461)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x1f7db9){const _0x1302b6=_0x1100bd;switch(_0x1f7db9['type']){case 0x0:this[_0x1302b6(0x5a2)](_0x1f7db9);break;case 0x1:this['_handleLeaveEvent'](_0x1f7db9);break;case 0x2:this['_handleHeartbeatEvent'](_0x1f7db9);break;}}['_handleJoinEvent'](_0x2487f7){const _0x1e05be=_0x1100bd,{unitIDs:_0x511058,memberID:_0xa9073,isForwarded:_0x129a40}=_0x2487f7;_0x511058[_0x1e05be(0x2be)](_0x5e0bb1=>{const _0xcd6686=_0x1e05be;if(!_0x129a40&&this[_0xcd6686(0x339)]['has'](_0x5e0bb1)&&this['_ensureSubject'](_0x5e0bb1)[_0xcd6686(0x496)](0x1),!this['_unitOnClients'][_0xcd6686(0x5a3)](_0x5e0bb1)||!this[_0xcd6686(0x339)][_0xcd6686(0x1f4)](_0x5e0bb1)[_0xcd6686(0x5a3)](_0xa9073)){const _0x1c4910=this[_0xcd6686(0x339)][_0xcd6686(0x1f4)](_0x5e0bb1)||new Set();_0x1c4910[_0xcd6686(0x1e0)](_0xa9073),this[_0xcd6686(0x339)][_0xcd6686(0x57e)](_0x5e0bb1,_0x1c4910),this[_0xcd6686(0x25a)](_0xa9073);}}),_0x129a40||this[_0x1e05be(0x363)]({'type':0x0,'memberID':this[_0x1e05be(0x461)],'unitIDs':[...this[_0x1e05be(0x4bd)]],'isForwarded':!0x0});}[_0x1100bd(0x25a)](_0x51aae9){const _0x6a2b38=_0x1100bd;this[_0x6a2b38(0x342)](_0x51aae9);const _0x505af9=window[_0x6a2b38(0x4f0)](()=>{const _0x1ce6aa=_0x6a2b38;this[_0x1ce6aa(0x339)][_0x1ce6aa(0x2be)](_0x5b81df=>{const _0xe5cc55=_0x1ce6aa;_0x5b81df[_0xe5cc55(0x5bf)](_0x51aae9);});},et*0x2);this[_0x6a2b38(0x1f2)][_0x6a2b38(0x57e)](_0x51aae9,_0x505af9);}[_0x1100bd(0x342)](_0x297d5f){const _0x45d4c0=_0x1100bd;if(this[_0x45d4c0(0x1f2)]['has'](_0x297d5f)){const _0x193e95=this[_0x45d4c0(0x1f2)][_0x45d4c0(0x1f4)](_0x297d5f);_0x193e95&&window[_0x45d4c0(0x393)](_0x193e95),this[_0x45d4c0(0x1f2)][_0x45d4c0(0x57e)](_0x297d5f,null);}}[_0x1100bd(0x5ce)](_0x462135){const _0x5b3cdf=_0x1100bd,{memberID:_0x5a8e60,unitIDs:_0x5dcac2}=_0x462135;_0x5dcac2['forEach'](_0x4c8271=>{const _0x478ea0=_0x75d2;var _0x268a55;const _0x356880=this['_unitOnClients'][_0x478ea0(0x1f4)](_0x4c8271);_0x356880&&(_0x356880[_0x478ea0(0x5bf)](_0x5a8e60),(_0x268a55=this[_0x478ea0(0x321)](_0x4c8271))==null||_0x268a55[_0x478ea0(0x496)](_0x356880[_0x478ea0(0x2b7)]===0x0?0x0:0x1));}),this[_0x5b3cdf(0x342)](_0x5a8e60);}[_0x1100bd(0x2eb)](_0x5ccc61){const _0x349352=_0x1100bd;this[_0x349352(0x25a)](_0x5ccc61[_0x349352(0x2dc)]);}[_0x1100bd(0x363)](_0x35e023){const _0x50602c=_0x1100bd;localStorage[_0x50602c(0x1f8)](tt,JSON[_0x50602c(0x203)](_0x35e023));}[_0x1100bd(0x533)](){const _0x596e32=_0x1100bd;this['_heartbeatTimer']=window[_0x596e32(0x301)](()=>{const _0x1565f1=_0x596e32;this['_send']({'type':0x2,'memberID':this[_0x1565f1(0x461)]});},et);}[_0x1100bd(0x321)](_0x1b627b){const _0x9f30b2=_0x1100bd;return this[_0x9f30b2(0x243)][_0x9f30b2(0x5a3)](_0x1b627b)||this[_0x9f30b2(0x243)]['set'](_0x1b627b,new v[(_0x9f30b2(0x240))](0x0)),this[_0x9f30b2(0x243)]['get'](_0x1b627b);}}function Tt(_0x344b19){const _0x5bd77d=_0x1100bd;let _0xff4c50='';for(const _0x291ed5 of _0x344b19){const {startOffset:_0x1cb9eb,endOffset:_0x2332b9,isActive:_0x4b3054}=_0x291ed5;_0xff4c50[_0x5bd77d(0x46d)]&&(_0xff4c50+=','),_0xff4c50+=_0x1cb9eb+':'+_0x2332b9+':'+(_0x4b3054?'1':'0');}return _0xff4c50;}function Us(_0x1eb823){const _0x4f7355=_0x1100bd,_0x1d3d1a=_0x1eb823[_0x4f7355(0x3bc)](','),_0xdeb8e9=[];for(const _0x2e4f4d of _0x1d3d1a){const [_0x34ca40,_0x3736ee,_0x21a643]=_0x2e4f4d[_0x4f7355(0x3bc)](':');_0xdeb8e9[_0x4f7355(0x414)]({'startOffset':Number(_0x34ca40),'endOffset':Number(_0x3736ee),'collapsed':_0x34ca40===_0x3736ee,'isActive':_0x21a643==='1'});}return _0xdeb8e9[_0x4f7355(0x23c)](_0x5ee066=>_0x5ee066[_0x4f7355(0x348)])||(_0xdeb8e9[0x0]['isActive']=!0x0),_0xdeb8e9;}class Ye extends a[_0x1100bd(0x1c7)]{constructor(){const _0x20b920=_0x1100bd;super(...arguments),d(this,'_collabCursorState$',new v[(_0x20b920(0x240))](null)),d(this,'collabCursorState$',this[_0x20b920(0x36f)][_0x20b920(0x4c2)]());}['syncEditingCollabCursor'](_0x110503){const _0x51a18f=_0x1100bd,{unitID:_0x5ade00,memberID:_0x362357,textRanges:_0x3bf6cf}=_0x110503,_0x82f5e2=Tt(_0x3bf6cf),_0x3d99aa={'unitID':_0x5ade00,'memberID':_0x362357,'selection':_0x82f5e2};this['_collabCursorState$'][_0x51a18f(0x496)](_0x3d99aa);}}var Ps=Object[_0x1100bd(0x4ed)],ws=Object[_0x1100bd(0x444)],Ms=(_0x47b3f6,_0x48018f,_0x431f10,_0x56c94b)=>{const _0x4b3ec7=_0x1100bd;for(var _0x571bf0=_0x56c94b>0x1?void 0x0:_0x56c94b?ws(_0x48018f,_0x431f10):_0x48018f,_0x41ad93=_0x47b3f6[_0x4b3ec7(0x46d)]-0x1,_0x2043b7;_0x41ad93>=0x0;_0x41ad93--)(_0x2043b7=_0x47b3f6[_0x41ad93])&&(_0x571bf0=(_0x56c94b?_0x2043b7(_0x48018f,_0x431f10,_0x571bf0):_0x2043b7(_0x571bf0))||_0x571bf0);return _0x56c94b&&_0x571bf0&&Ps(_0x48018f,_0x431f10,_0x571bf0),_0x571bf0;},st=(_0x12fea0,_0x18a692)=>(_0x33fa43,_0x3adf94)=>_0x18a692(_0x33fa43,_0x3adf94,_0x12fea0);let me=class{constructor(_0x4bfa18,_0x2fa056){const _0x57c81c=_0x1100bd;this[_0x57c81c(0x1d8)]=_0x4bfa18,this[_0x57c81c(0x1ce)]=_0x2fa056;}[_0x1100bd(0x2ed)](_0x2a5f8e){const _0x1d88c9=_0x1100bd;var _0x2c7957;const _0x381c79=this[_0x1d88c9(0x1d8)][_0x1d88c9(0x1f4)](V[_0x1d88c9(0x377)]),_0x527049=(_0x2c7957=_0x381c79[_0x1d88c9(0x326)]())!=null?_0x2c7957:[];if(_0x527049[_0x1d88c9(0x46d)]===0x0)return;const _0x4df281=[{'id':_0x1d88c9(0x2a6),'params':{'unitId':_0x2a5f8e[_0x1d88c9(0x59b)],'actions':null,'textRanges':_0x527049}}],_0x435595=this[_0x1d88c9(0x1ce)]['transformMutationsWithChangeset'](_0x2a5f8e,_0x4df281);if(!_[_0x1d88c9(0x5a1)](_0x435595))throw _0x435595[_0x1d88c9(0x3d1)];const _0x26ebac=_0x435595['m2Prime'][0x0][_0x1d88c9(0x24d)][_0x1d88c9(0x2fa)];Array['isArray'](_0x26ebac)&&_0x26ebac['length']&&_0x381c79[_0x1d88c9(0x30f)](_0x26ebac,!0x1);}};me=Ms([st(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),st(0x1,_[_0x1100bd(0x38d)])],me);const Ns=new Set([C['InsertSheetMutation']['id']]);function it(_0x4c9219,_0x1bb58f,_0x207a2f,_0x44279b,_0x4e27d3){const _0x43dc2e=_0x1100bd;var _0x253ea6,_0x2352ed,_0x3c20bd,_0x15155c;const _0x5edf4a=[];for(const _0x648b3a of _0x4c9219)if(Ns[_0x43dc2e(0x5a3)](_0x648b3a['id'])){if(_0x5edf4a[_0x43dc2e(0x46d)]>0x0)break;_0x5edf4a[_0x43dc2e(0x414)](_0x648b3a);break;}else _0x5edf4a[_0x43dc2e(0x414)](_0x648b3a);const _0x3f081a=(_0x2352ed=(_0x253ea6=_0x4e27d3[_0x43dc2e(0x1b2)]())==null?void 0x0:_0x253ea6[_0x43dc2e(0x20c)])!=null?_0x2352ed:_0x43dc2e(0x3fe),_0x4c8b5b=(_0x15155c=(_0x3c20bd=_0x4e27d3[_0x43dc2e(0x1b2)]())==null?void 0x0:_0x3c20bd[_0x43dc2e(0x2dc)])!=null?_0x15155c:_0x43dc2e(0x3fe);return{'changeset':{'unitID':_0x1bb58f,'type':_[_0x43dc2e(0x5c0)](_0x207a2f[_0x43dc2e(0x413)](_0x1bb58f)),'baseRev':_0x44279b[_0x43dc2e(0x4c7)](_0x1bb58f),'revision':0x0,'userID':_0x3f081a,'memberID':_0x4c8b5b,'mutations':_0x5edf4a},'pendingMutations':_0x4c9219[_0x43dc2e(0x351)](_0x5edf4a[_0x43dc2e(0x46d)])};}function As(_0x5002de,_0x2f1d3c,_0x3893b0,_0x383c19,_0x5a73f1){const _0x535c60=_0x1100bd;var _0xeb4f07,_0x1d7dbe,_0x5359c7,_0x160248;const _0x50119b=[_0x5002de[_0x535c60(0x4e8)]((_0x42eaab,_0x3535b1)=>{const _0x2d3f90=_0x535c60;var _0x3b5ee9;const {id:_0x5443ea}=_0x42eaab,{id:_0x59fb18,type:_0x36c4d9}=_0x3535b1,_0x230387=(_0x3b5ee9=_0x42eaab[_0x2d3f90(0x24d)])!=null?_0x3b5ee9:{'actions':null},_0x26d1fa=_0x3535b1[_0x2d3f90(0x24d)];if(_0x5443ea&&_0x5443ea!==_0x59fb18)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5443ea+_0x2d3f90(0x452)+_0x59fb18+'.');return{..._0x42eaab,'id':_0x59fb18,'type':_0x36c4d9,'params':{'unitId':_0x26d1fa[_0x2d3f90(0x1d1)],'textRanges':_0x26d1fa[_0x2d3f90(0x2fa)],'actions':a[_0x2d3f90(0x292)][_0x2d3f90(0x56d)](_0x230387[_0x2d3f90(0x1c8)],_0x26d1fa['actions'])}};},{})],_0x2ecfc5=(_0x1d7dbe=(_0xeb4f07=_0x5a73f1[_0x535c60(0x1b2)]())==null?void 0x0:_0xeb4f07[_0x535c60(0x20c)])!=null?_0x1d7dbe:_0x535c60(0x3fe),_0x75926a=(_0x160248=(_0x5359c7=_0x5a73f1[_0x535c60(0x1b2)]())==null?void 0x0:_0x5359c7[_0x535c60(0x2dc)])!=null?_0x160248:'unknown';return{'changeset':{'unitID':_0x2f1d3c,'type':_[_0x535c60(0x5c0)](_0x3893b0[_0x535c60(0x413)](_0x2f1d3c)),'baseRev':_0x383c19[_0x535c60(0x4c7)](_0x2f1d3c),'revision':0x0,'userID':_0x2ecfc5,'memberID':_0x75926a,'mutations':_0x50119b},'pendingMutations':[]};}const Ls={'id':C['EmptyMutation']['id'],'type':a[_0x1100bd(0x27b)][_0x1100bd(0x3d8)],'params':{}};var js=Object[_0x1100bd(0x4ed)],$s=Object[_0x1100bd(0x444)],z=(_0x45fe03,_0x2bcdd4,_0x3f457e,_0x35d1f8)=>{const _0x52a4d7=_0x1100bd;for(var _0x3d09cf=_0x35d1f8>0x1?void 0x0:_0x35d1f8?$s(_0x2bcdd4,_0x3f457e):_0x2bcdd4,_0x1a48fb=_0x45fe03[_0x52a4d7(0x46d)]-0x1,_0x270888;_0x1a48fb>=0x0;_0x1a48fb--)(_0x270888=_0x45fe03[_0x1a48fb])&&(_0x3d09cf=(_0x35d1f8?_0x270888(_0x2bcdd4,_0x3f457e,_0x3d09cf):_0x270888(_0x3d09cf))||_0x3d09cf);return _0x35d1f8&&_0x3d09cf&&js(_0x2bcdd4,_0x3f457e,_0x3d09cf),_0x3d09cf;},g=(_0xc922c,_0x5b6b4f)=>(_0x39a22f,_0x3ebbfe)=>_0x5b6b4f(_0x39a22f,_0x3ebbfe,_0xc922c),y=(_0x1c57bf=>(_0x1c57bf[_0x1100bd(0x2a7)]=_0x1100bd(0x35c),_0x1c57bf[_0x1100bd(0x3f8)]=_0x1100bd(0x216),_0x1c57bf[_0x1100bd(0x264)]=_0x1100bd(0x518),_0x1c57bf[_0x1100bd(0x5bc)]=_0x1100bd(0x2ad),_0x1c57bf['AWAITING_WITH_PENDING']=_0x1100bd(0x5cb),_0x1c57bf[_0x1100bd(0x21b)]='fetch_missing',_0x1c57bf[_0x1100bd(0x25d)]=_0x1100bd(0x5c2),_0x1c57bf[_0x1100bd(0x4ad)]='offline',_0x1c57bf))(y||{});class J{constructor(_0x35af89,_0x38227b,_0x486c04,_0x3dda4e,_0x1bf7f0,_0x4c7093,_0xaafc26,_0x5be491,_0x4bb8b1){const _0x97aa6c=_0x1100bd;d(this,'_awaitingChangeset',null),d(this,_0x97aa6c(0x456),[]),(this[_0x97aa6c(0x59b)]=_0x35af89,this[_0x97aa6c(0x525)]=_0x38227b,this[_0x97aa6c(0x4cd)]=_0x1bf7f0,this[_0x97aa6c(0x53a)]=_0x4c7093,this[_0x97aa6c(0x1b0)]=_0xaafc26,this['_revisionService']=_0x5be491,this[_0x97aa6c(0x45f)]=_0x4bb8b1,this['_awaitingChangeset']=_0x486c04,this[_0x97aa6c(0x456)]=_0x3dda4e);}['_checkMissing'](_0x548adf){const _0x1c22f8=_0x1100bd,_0x33fd01=this[_0x1c22f8(0x3b0)][_0x1c22f8(0x4c7)](this[_0x1c22f8(0x59b)]);return _0x548adf[_0x1c22f8(0x436)]>_0x33fd01+0x1?(this[_0x1c22f8(0x4cd)][_0x1c22f8(0x1df)]({'from':_0x33fd01,'to':_0x548adf[_0x1c22f8(0x436)]-0x1}),!0x0):!0x1;}[_0x1100bd(0x256)](_0xc815da){const _0x2a2c17=_0x1100bd;this['_undoRedoService'][_0x2a2c17(0x4ae)](this[_0x2a2c17(0x59b)],_0xc815da);}[_0x1100bd(0x42b)](_0x4666d3){const _0x1bdb98=_0x1100bd;var _0x2af8e2,_0x25d9d1;(_0x25d9d1=(_0x2af8e2=this[_0x1bdb98(0x4cd)])['onTransformSelections'])==null||_0x25d9d1['call'](_0x2af8e2,_0x4666d3);}['_transformIMECache'](_0x44a17c){const _0x511ce=_0x1100bd;var _0x462e5a,_0x4bcace;return(_0x4bcace=(_0x462e5a=this[_0x511ce(0x4cd)])[_0x511ce(0x3a1)])==null?void 0x0:_0x4bcace['call'](_0x462e5a,_0x44a17c);}['_transformRemoteChangesetByIMECache'](_0x4ca8c0){const _0x1a7d4c=_0x1100bd;var _0x2539f2,_0x89d9bc,_0x2c76ee;return(_0x2c76ee=(_0x89d9bc=(_0x2539f2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x89d9bc[_0x1a7d4c(0x28c)](_0x2539f2,_0x4ca8c0))!=null?_0x2c76ee:_0x4ca8c0;}['_syncEditingCollabCursor'](_0x3ec290){const _0x49e9e9=_0x1100bd;var _0x54f65a,_0x2f111a;if(this[_0x49e9e9(0x525)]===j[_0x49e9e9(0x22b)]){const {unitID:_0x175bb7,mutations:_0x2a41b8,memberID:_0x25b8b3}=_0x3ec290,_0x5f22d4=_0x2a41b8[0x0][_0x49e9e9(0x24d)]['textRanges'];Array[_0x49e9e9(0x57c)](_0x5f22d4)&&_0x5f22d4[_0x49e9e9(0x46d)]>0x0&&((_0x2f111a=(_0x54f65a=this['_handler'])[_0x49e9e9(0x3bb)])==null||_0x2f111a['call'](_0x54f65a,{'unitID':_0x175bb7,'memberID':_0x25b8b3,'textRanges':_0x5f22d4}));}}['_updateLocalCache'](){const _0x228cb2=_0x1100bd;this[_0x228cb2(0x45f)][_0x228cb2(0x282)](this[_0x228cb2(0x59b)],this[_0x228cb2(0x525)],this['_awaitingChangeset'],this[_0x228cb2(0x456)]);}[_0x1100bd(0x5a8)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x1100bd(0x1e1)](){const _0x56dbe0=_0x1100bd;this[_0x56dbe0(0x3b0)][_0x56dbe0(0x4ea)](this[_0x56dbe0(0x59b)]);}[_0x1100bd(0x54e)](_0x531d2d){const _0x5513f0=_0x1100bd;var _0x2d5334;const _0x15d167=this[_0x5513f0(0x2ef)](_0x531d2d),_0x326725=a[_0x5513f0(0x53f)](_0x15d167[_0x5513f0(0x45c)],this[_0x5513f0(0x53a)],{'fromCollab':!0x0});if(!_0x326725[_0x5513f0(0x343)])throw _0x326725[_0x5513f0(0x3d1)]instanceof Error?_0x326725['error']:new Error((_0x2d5334=_0x326725[_0x5513f0(0x3d1)])!=null?_0x2d5334:_0x5513f0(0x44d));this[_0x5513f0(0x538)](_0x15d167),this[_0x5513f0(0x256)](_0x531d2d),this['_transformSelections'](_0x15d167),this[_0x5513f0(0x33f)](_0x15d167),this[_0x5513f0(0x1e1)]();}}let se=class extends J{constructor(_0x580155,_0x24ea75,_0x573d1f,_0x365754,_0x381e23,_0x5670d1,_0x2552ab,_0x4ff580,_0x369cd7,_0x4f0724){const _0x4ec8f4=_0x1100bd;super(_0x580155,_0x24ea75,null,[],_0x573d1f,_0x4ff580,_0x2552ab,_0x365754,_0x381e23),d(this,_0x4ec8f4(0x442),_0x4ec8f4(0x216)),(this[_0x4ec8f4(0x1d8)]=_0x5670d1,this[_0x4ec8f4(0x340)]=_0x369cd7,this[_0x4ec8f4(0x1ce)]=_0x4f0724);}[_0x1100bd(0x398)](_0x2ac095){const _0x337b1a=_0x1100bd,_0x529f53=this[_0x337b1a(0x1d8)][_0x337b1a(0x317)](x,this['unitID'],this[_0x337b1a(0x525)],[_0x2ac095],this[_0x337b1a(0x4cd)]);return _0x529f53[_0x337b1a(0x404)](),_0x529f53[_0x337b1a(0x42f)](),_0x529f53;}['onRemoteChangeset'](_0x280210){const _0x478e25=_0x1100bd;if(this[_0x478e25(0x241)](_0x280210))return this[_0x478e25(0x1d8)][_0x478e25(0x317)](H,this[_0x478e25(0x59b)],this['type'],null,[],null,[_0x280210],this[_0x478e25(0x4cd)]);try{const _0xe71a1a=this['_transformService']['transformMutationsWithChangeset'](_0x280210,[Ls]);if(_[_0x478e25(0x5a1)](_0xe71a1a)){const {c1Prime:_0x23ccd1}=_0xe71a1a;return this['_executeRemoteChangeset'](_0x23ccd1),this;}throw _0xe71a1a['error'];}catch(_0x462ad7){return this[_0x478e25(0x340)]['error'](_0x462ad7),this[_0x478e25(0x36c)](!0x1);}}['_onConflict'](_0x29ffdf){const _0x3c5b27=_0x1100bd;return this['_injector'][_0x3c5b27(0x317)](F,this[_0x3c5b27(0x59b)],this[_0x3c5b27(0x525)],null,[],this[_0x3c5b27(0x4cd)],_0x29ffdf);}[_0x1100bd(0x254)](){const _0x39ba34=_0x1100bd;throw new Error(_0x39ba34(0x564));}['onRemoteRej'](){const _0x2db201=_0x1100bd;throw new Error(_0x2db201(0x1ff));}[_0x1100bd(0x319)](){const _0x1ae12d=_0x1100bd;return this[_0x1ae12d(0x1d8)][_0x1ae12d(0x317)](G,this[_0x1ae12d(0x59b)],this[_0x1ae12d(0x525)],null,[],this[_0x1ae12d(0x4cd)]);}[_0x1100bd(0x3aa)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1100bd(0x26c)](){const _0x21c3b2=_0x1100bd,_0x3a3c82=this['_revisionService'][_0x21c3b2(0x4c7)](this[_0x21c3b2(0x59b)]);return this[_0x21c3b2(0x4cd)]['onMissingChangesets']({'from':_0x3a3c82,'to':0x0}),this[_0x21c3b2(0x1d8)][_0x21c3b2(0x317)](H,this['unitID'],this['type'],null,[],null,[],this[_0x21c3b2(0x4cd)]);}};se=z([g(0x3,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x4,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x5,a['Inject'](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x563)]),g(0x7,a[_0x1100bd(0x505)]),g(0x8,a['ILogService']),g(0x9,_[_0x1100bd(0x38d)])],se);let x=class extends J{constructor(_0x3b25fb,_0x391ca0,_0x548978,_0x552b65,_0x3d54b8,_0x41470a,_0x5d139c,_0x2dc855,_0x21e37f,_0x399983,_0x10c06f,_0x3da03f,_0x26c05f,_0x2dc2f5){const _0x257ad2=_0x1100bd;super(_0x3b25fb,_0x391ca0,null,_0x548978,_0x552b65,_0x399983,_0x2dc2f5,_0x41470a,_0x5d139c),d(this,_0x257ad2(0x442),_0x257ad2(0x518)),d(this,_0x257ad2(0x3ff),null),d(this,_0x257ad2(0x289),null),(this[_0x257ad2(0x1d8)]=_0x3d54b8,this[_0x257ad2(0x1e4)]=_0x2dc855,this[_0x257ad2(0x340)]=_0x21e37f,this[_0x257ad2(0x4c0)]=_0x10c06f,this[_0x257ad2(0x1ce)]=_0x3da03f,this[_0x257ad2(0x56b)]=_0x26c05f);}[_0x1100bd(0x398)](_0x4e5608){const _0x989bd9=_0x1100bd;return this['_pendingMutations'][_0x989bd9(0x414)](_0x4e5608),this[_0x989bd9(0x42f)](),this;}[_0x1100bd(0x230)](_0x4a2fb4){const _0x256b3d=_0x1100bd;if(this[_0x256b3d(0x241)](_0x4a2fb4))return this[_0x256b3d(0x534)](),this['_injector'][_0x256b3d(0x317)](H,this[_0x256b3d(0x59b)],this[_0x256b3d(0x525)],null,this[_0x256b3d(0x456)],null,[_0x4a2fb4],this[_0x256b3d(0x4cd)]);try{const _0x5a3e95=this[_0x256b3d(0x1ce)][_0x256b3d(0x3c2)](_0x4a2fb4,this[_0x256b3d(0x456)]);if(_[_0x256b3d(0x5a1)](_0x5a3e95)){const {c1Prime:_0x1aa137,m2Prime:_0x52648b}=_0x5a3e95;this[_0x256b3d(0x54e)](_0x1aa137);const _0x457499=this[_0x256b3d(0x1d8)][_0x256b3d(0x317)](x,this[_0x256b3d(0x59b)],this[_0x256b3d(0x525)],_0x52648b,this['_handler']);return this['_clearScheduledTask'](),_0x457499[_0x256b3d(0x404)](this['_scheduleTimestamp']?Math[_0x256b3d(0x212)](0x0,new Date()['getTime']()-this[_0x256b3d(0x3ff)]):this[_0x256b3d(0x211)]()),_0x457499;}throw _0x5a3e95[_0x256b3d(0x3d1)];}catch(_0x46fa5b){return this['_logService'][_0x256b3d(0x3d1)](_0x46fa5b),this[_0x256b3d(0x36c)](!0x1);}}[_0x1100bd(0x254)](){const _0x17499a=_0x1100bd;throw new Error(_0x17499a(0x1c1));}[_0x1100bd(0x4e0)](){const _0x4a839d=_0x1100bd;throw new Error(_0x4a839d(0x3e9));}[_0x1100bd(0x319)](){const _0x5a7200=_0x1100bd;return this['_clearScheduledTask'](),this['_injector'][_0x5a7200(0x317)](G,this[_0x5a7200(0x59b)],this[_0x5a7200(0x525)],null,this[_0x5a7200(0x456)],this[_0x5a7200(0x4cd)]);}['toggleOnline'](){return this;}[_0x1100bd(0x404)](_0x2e3b6e){const _0x2b1110=_0x1100bd,_0x2e6ca5=_0x2e3b6e!=null?_0x2e3b6e:this[_0x2b1110(0x211)]();this[_0x2b1110(0x3ff)]=new Date()[_0x2b1110(0x5b4)](),this['_sendingTimer']=window[_0x2b1110(0x4f0)](()=>{const _0x3d6ca0=_0x2b1110;this[_0x3d6ca0(0x534)]();let _0x165ed7=null;switch(this[_0x3d6ca0(0x525)]){case j[_0x3d6ca0(0x293)]:{_0x165ed7=it(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this['_revisionService'],this['_memberService']);break;}case j['UNIVER_DOC']:{this[_0x3d6ca0(0x456)][_0x3d6ca0(0x3e7)](_0x27675e=>_0x27675e['id']===V['RichTextEditingMutation']['id'])?_0x165ed7=As(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this[_0x3d6ca0(0x3b0)],this['_memberService']):_0x165ed7=it(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this[_0x3d6ca0(0x3b0)],this['_memberService']);break;}default:throw new Error(_0x3d6ca0(0x4f2)+this[_0x3d6ca0(0x525)]+_0x3d6ca0(0x35a));}const {changeset:_0x561ac7,pendingMutations:_0x56dc63}=_0x165ed7;this[_0x3d6ca0(0x4cd)]['onSendChangeset'](_0x561ac7);const _0x32fb71=_0x56dc63[_0x3d6ca0(0x46d)]?this[_0x3d6ca0(0x1d8)][_0x3d6ca0(0x317)](k,this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x525)],_0x561ac7,_0x56dc63,this['_handler']):this[_0x3d6ca0(0x1d8)]['createInstance'](W,this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x525)],_0x561ac7,this['_handler']);_0x32fb71[_0x3d6ca0(0x42f)](),this[_0x3d6ca0(0x4cd)][_0x3d6ca0(0x4f8)](this,_0x32fb71);},_0x2e6ca5);}['_getSendChangesetTimeout'](){const _0x207d75=_0x1100bd;var _0x1f9a0b;const _0x253910=this[_0x207d75(0x4c0)][_0x207d75(0x204)](A);return(_0x1f9a0b=_0x253910==null?void 0x0:_0x253910[_0x207d75(0x3f5)])!=null?_0x1f9a0b:Kt;}[_0x1100bd(0x3ec)](){const _0x4347ae=_0x1100bd;throw new Error(_0x4347ae(0x2d9));}[_0x1100bd(0x534)](){const _0x3ed470=_0x1100bd;this[_0x3ed470(0x289)]!=null&&(clearTimeout(this[_0x3ed470(0x289)]),this['_sendingTimer']=null);}[_0x1100bd(0x36c)](_0x4ae390){const _0x514e2d=_0x1100bd;return this[_0x514e2d(0x534)](),this[_0x514e2d(0x1d8)][_0x514e2d(0x317)](F,this[_0x514e2d(0x59b)],this[_0x514e2d(0x525)],null,this['_pendingMutations'],this[_0x514e2d(0x4cd)],_0x4ae390);}};x=z([g(0x4,a[_0x1100bd(0x583)](a['Injector'])),g(0x5,a[_0x1100bd(0x583)](_['RevisionService'])),g(0x6,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x7,a[_0x1100bd(0x583)](q)),g(0x8,a[_0x1100bd(0x49b)]),g(0x9,a[_0x1100bd(0x505)]),g(0xa,a[_0x1100bd(0x32b)]),g(0xb,_[_0x1100bd(0x38d)]),g(0xc,a[_0x1100bd(0x472)]),g(0xd,a[_0x1100bd(0x563)])],x);let W=class extends J{constructor(_0x22e37a,_0x176dce,_0x1ff0ed,_0x466ab9,_0x5c4079,_0x539708,_0x53c0e2,_0x4f6147,_0x28df2e,_0x285670,_0x8824c8){const _0x2b48bb=_0x1100bd;super(_0x22e37a,_0x176dce,_0x1ff0ed,[],_0x466ab9,_0x4f6147,_0x8824c8,_0x539708,_0x53c0e2),d(this,_0x2b48bb(0x442),_0x2b48bb(0x2ad)),(this[_0x2b48bb(0x1d8)]=_0x5c4079,this[_0x2b48bb(0x340)]=_0x28df2e,this[_0x2b48bb(0x1ce)]=_0x285670);}[_0x1100bd(0x398)](_0x24ba6a){const _0x3fa22f=_0x1100bd,_0x13be2e=this[_0x3fa22f(0x1d8)][_0x3fa22f(0x317)](k,this[_0x3fa22f(0x59b)],this[_0x3fa22f(0x525)],this[_0x3fa22f(0x49c)],[_0x24ba6a],this[_0x3fa22f(0x4cd)]);return _0x13be2e[_0x3fa22f(0x42f)](),_0x13be2e;}[_0x1100bd(0x230)](_0x1af849){const _0x5c0b95=_0x1100bd;if(this[_0x5c0b95(0x241)](_0x1af849))return this[_0x5c0b95(0x1d8)][_0x5c0b95(0x317)](H,this[_0x5c0b95(0x59b)],this['type'],this[_0x5c0b95(0x49c)],[],null,[_0x1af849],this[_0x5c0b95(0x4cd)]);try{const _0x30be74=this[_0x5c0b95(0x1ce)][_0x5c0b95(0x40c)]([_0x1af849],[this[_0x5c0b95(0x49c)]],!0x1);if(_[_0x5c0b95(0x589)](_0x30be74)){const {c1Prime:_0x3ef603,c2Prime:_0x18e4c0}=_0x30be74;this[_0x5c0b95(0x54e)](_0x3ef603[0x0]),_0x18e4c0[0x0]['baseRev']=this['_getCurrentRevision']();const _0x240cda=this[_0x5c0b95(0x1d8)][_0x5c0b95(0x317)](W,this[_0x5c0b95(0x59b)],this[_0x5c0b95(0x525)],_0x18e4c0[0x0],this[_0x5c0b95(0x4cd)]);return _0x240cda[_0x5c0b95(0x42f)](),_0x240cda;}return this[_0x5c0b95(0x36c)](!0x1);}catch(_0x4e3c3c){return this[_0x5c0b95(0x340)]['error'](_0x4e3c3c),this[_0x5c0b95(0x36c)](!0x1);}}[_0x1100bd(0x254)](_0x3e4416){const _0x102375=_0x1100bd,_0xaf85bf=this[_0x102375(0x3b0)]['getCurrentRevOfUnit'](this['unitID']);if(_0x3e4416[_0x102375(0x436)]<_0xaf85bf-0x1)return this;if(this[_0x102375(0x241)](_0x3e4416))return this['_injector'][_0x102375(0x317)](H,this[_0x102375(0x59b)],this['type'],null,[],this[_0x102375(0x49c)],[],this[_0x102375(0x4cd)]);this[_0x102375(0x1e1)]();const _0x426b93=this[_0x102375(0x1d8)][_0x102375(0x317)](se,this[_0x102375(0x59b)],this['type'],this[_0x102375(0x4cd)]);return _0x426b93[_0x102375(0x42f)](),_0x426b93;}[_0x1100bd(0x4e0)](_0x33bfed){const _0x32437a=_0x1100bd;return this[_0x32437a(0x36c)](!!(_0x33bfed!=null&&_0x33bfed[_0x32437a(0x29c)]));}[_0x1100bd(0x319)](){const _0x250911=_0x1100bd;return this[_0x250911(0x1d8)][_0x250911(0x317)](G,this[_0x250911(0x59b)],this[_0x250911(0x525)],this[_0x250911(0x49c)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x1100bd(0x3ec)](){const _0x169442=_0x1100bd;this[_0x169442(0x4cd)]['onSendChangeset'](this[_0x169442(0x49c)]);}['_onConflict'](_0x395000){const _0x4ca44e=_0x1100bd;return this[_0x4ca44e(0x1d8)][_0x4ca44e(0x317)](F,this['unitID'],this[_0x4ca44e(0x525)],this[_0x4ca44e(0x49c)],[],this['_handler'],_0x395000);}};W=z([g(0x4,a[_0x1100bd(0x583)](a['Injector'])),g(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x6,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x7,a[_0x1100bd(0x505)]),g(0x8,a['ILogService']),g(0x9,_[_0x1100bd(0x38d)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x354ddc,_0x7f8d97,_0x176ced,_0x5d2c3d,_0x11c04c,_0x1db3fd,_0x4777fb,_0x8ae74b,_0x40adc7,_0x5eda74,_0x34b9d9,_0xaa77c9){const _0x31625d=_0x1100bd;super(_0x354ddc,_0x7f8d97,_0x176ced,_0x5d2c3d,_0x11c04c,_0x40adc7,_0xaa77c9,_0x4777fb,_0x8ae74b),d(this,_0x31625d(0x442),_0x31625d(0x5cb)),(this[_0x31625d(0x1d8)]=_0x1db3fd,this[_0x31625d(0x340)]=_0x5eda74,this['_transformService']=_0x34b9d9);}[_0x1100bd(0x398)](_0x560d7f){const _0x1c86ad=_0x1100bd;return this[_0x1c86ad(0x456)]['push'](_0x560d7f),this;}[_0x1100bd(0x230)](_0x41b32a){const _0x2d8673=_0x1100bd;if(this[_0x2d8673(0x241)](_0x41b32a))return this['_injector']['createInstance'](H,this['unitID'],this[_0x2d8673(0x525)],this[_0x2d8673(0x49c)],this['_pendingMutations'],null,[_0x41b32a],this[_0x2d8673(0x4cd)]);try{const _0xdba054=this[_0x2d8673(0x1ce)]['transformChangesets']([_0x41b32a],[this[_0x2d8673(0x49c)]],!0x1);if(_[_0x2d8673(0x589)](_0xdba054)){const {c1Prime:_0x7cae4b,c2Prime:_0x41dc01}=_0xdba054,_0xe4bf8e=this[_0x2d8673(0x1ce)][_0x2d8673(0x3c2)](_0x7cae4b[0x0],this[_0x2d8673(0x456)]);if(_['isTransformMutationsWithChangesetSuccess'](_0xe4bf8e)){const {c1Prime:_0x4f5aba,m2Prime:_0x29598b}=_0xe4bf8e;return this[_0x2d8673(0x54e)](_0x4f5aba),_0x41dc01[0x0][_0x2d8673(0x1f7)]=this['_getCurrentRevision'](),this['_injector'][_0x2d8673(0x317)](k,this[_0x2d8673(0x59b)],this[_0x2d8673(0x525)],_0x41dc01[0x0],_0x29598b,this['_handler']);}throw _0xe4bf8e[_0x2d8673(0x3d1)];}throw _0xdba054[_0x2d8673(0x3d1)];}catch(_0x456b69){return this[_0x2d8673(0x340)][_0x2d8673(0x3d1)](_0x456b69),this['_onConflict'](!0x1);}}[_0x1100bd(0x254)](_0x4149eb){const _0x1abd35=_0x1100bd;if(this['_checkMissing'](_0x4149eb))return this[_0x1abd35(0x1d8)]['createInstance'](H,this['unitID'],this[_0x1abd35(0x525)],null,this[_0x1abd35(0x456)],this['_awaitingChangeset'],[],this[_0x1abd35(0x4cd)]);this[_0x1abd35(0x1e1)]();const _0x392a3f=this['_injector']['createInstance'](x,this[_0x1abd35(0x59b)],this['type'],this[_0x1abd35(0x456)],this[_0x1abd35(0x4cd)]);return _0x392a3f[_0x1abd35(0x404)](),_0x392a3f[_0x1abd35(0x42f)](),_0x392a3f;}[_0x1100bd(0x4e0)](_0x562c32){const _0x1ca4b6=_0x1100bd;return this['_onConflict'](!!(_0x562c32!=null&&_0x562c32[_0x1ca4b6(0x29c)]));}[_0x1100bd(0x319)](){const _0x2935ff=_0x1100bd;return this[_0x2935ff(0x1d8)][_0x2935ff(0x317)](G,this[_0x2935ff(0x59b)],this[_0x2935ff(0x525)],this[_0x2935ff(0x49c)],this[_0x2935ff(0x456)],this['_handler']);}[_0x1100bd(0x3aa)](){return this;}[_0x1100bd(0x3ec)](){const _0x11b9b3=_0x1100bd;this[_0x11b9b3(0x4cd)][_0x11b9b3(0x438)](this['_awaitingChangeset']);}[_0x1100bd(0x36c)](_0x4d4947){const _0x5914b4=_0x1100bd;return this[_0x5914b4(0x1d8)][_0x5914b4(0x317)](F,this[_0x5914b4(0x59b)],this[_0x5914b4(0x525)],null,this[_0x5914b4(0x456)],this[_0x5914b4(0x4cd)],_0x4d4947);}};k=z([g(0x5,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x7,a['Inject'](exports[_0x1100bd(0x209)])),g(0x8,a[_0x1100bd(0x505)]),g(0x9,a[_0x1100bd(0x49b)]),g(0xa,_[_0x1100bd(0x38d)]),g(0xb,a[_0x1100bd(0x563)])],k);let F=class extends J{constructor(_0x10192d,_0x1c8e40,_0x559a4c,_0x35d64d,_0x19fb65,_0x553770=!0x1,_0x21535d,_0x274915,_0x3f9198,_0x2bce2b,_0x2e4712,_0x40f875,_0x4a5aa5){const _0x5e3235=_0x1100bd;super(_0x10192d,_0x1c8e40,_0x559a4c,_0x35d64d,_0x19fb65,_0x274915,_0x3f9198,_0x2e4712,_0x2bce2b),d(this,'status',_0x5e3235(0x5c2)),(this[_0x5e3235(0x4ba)]=_0x553770,this['_permissionService']=_0x21535d,this[_0x5e3235(0x418)]=_0x40f875,this[_0x5e3235(0x28b)]=_0x4a5aa5,this['_showConflictNotification'](),this[_0x5e3235(0x325)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x1100bd(0x230)](){return this;}[_0x1100bd(0x254)](){return this;}[_0x1100bd(0x4e0)](){return this;}[_0x1100bd(0x319)](){return this;}['toggleOnline'](){return this;}[_0x1100bd(0x3ec)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1100bd(0x325)](){const _0x17cd7a=_0x1100bd;this['_localCacheService'][_0x17cd7a(0x282)](this[_0x17cd7a(0x59b)],this[_0x17cd7a(0x525)],null,[]);}[_0x1100bd(0x599)](){const _0x32d8f2=_0x1100bd;this[_0x32d8f2(0x4ba)]?this[_0x32d8f2(0x28b)][_0x32d8f2(0x1d9)]({'title':this[_0x32d8f2(0x418)]['t'](_0x32d8f2(0x272)),'content':this[_0x32d8f2(0x418)]['t']('permission.content'),'type':_0x32d8f2(0x3d1),'duration':0x0}):this['_notificationService'][_0x32d8f2(0x1d9)]({'title':this[_0x32d8f2(0x418)]['t'](_0x32d8f2(0x276)),'content':this['_localeService']['t']('conflict.content'),'type':_0x32d8f2(0x3d1),'duration':0x0});}['_disableEditing'](){const _0x1b339d=_0x1100bd;this[_0x1b339d(0x39f)][_0x1b339d(0x3a5)](new C[(_0x1b339d(0x561))](this[_0x1b339d(0x59b)])['id'],!0x1);}};F=z([g(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x4d7)])),g(0x7,a['ICommandService']),g(0x8,a[_0x1100bd(0x563)]),g(0x9,a['Inject'](exports[_0x1100bd(0x209)])),g(0xa,a['Inject'](_[_0x1100bd(0x323)])),g(0xb,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),g(0xc,N[_0x1100bd(0x46a)])],F);let G=class extends J{constructor(_0x2ba731,_0x525847,_0x3509bd,_0xcabece,_0x53a294,_0x39fd4f,_0x4a7022,_0x32523d,_0x27fba4,_0x4862cb){const _0xfb8540=_0x1100bd;super(_0x2ba731,_0x525847,_0x3509bd,_0xcabece,_0x53a294,_0x27fba4,_0x4862cb,_0x4a7022,_0x32523d),d(this,_0xfb8540(0x442),_0xfb8540(0x322)),this[_0xfb8540(0x1d8)]=_0x39fd4f;}[_0x1100bd(0x398)](_0x299718){const _0x43ddd2=_0x1100bd;return this['_pendingMutations'][_0x43ddd2(0x414)](_0x299718),this[_0x43ddd2(0x42f)](),this;}[_0x1100bd(0x230)](_0x33177){const _0x5c15a0=_0x1100bd;throw new Error(_0x5c15a0(0x247));}[_0x1100bd(0x254)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1100bd(0x4e0)](){const _0x2242ba=_0x1100bd;throw new Error(_0x2242ba(0x285));}[_0x1100bd(0x319)](){return this;}[_0x1100bd(0x3aa)](){const _0x922b5=_0x1100bd,{_injector:_0x909cd0,_pendingMutations:_0x3409dc,_awaitingChangeset:_0x32455d,unitID:_0x3ddcb4,_handler:_0x1a257e,type:_0x2cf7ec}=this,_0x34df2a=Rt(_0x909cd0,_0x3ddcb4,_0x2cf7ec,_0x32455d,_0x3409dc,_0x1a257e);return _0x34df2a instanceof x?_0x34df2a['_schedule']():(_0x34df2a instanceof k||_0x34df2a instanceof W)&&_0x34df2a[_0x922b5(0x3ec)](),_0x34df2a;}[_0x1100bd(0x3ec)](){const _0x291937=_0x1100bd;throw new Error(_0x291937(0x5ad));}};G=z([g(0x5,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x7,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x8,a[_0x1100bd(0x505)]),g(0x9,a[_0x1100bd(0x563)])],G);let H=class extends J{constructor(_0x3ee745,_0x2a8704,_0x5246a0,_0x50d339,_0x780c01,_0x5929f4,_0x430f15,_0x47534a,_0x3965a2,_0x2f276d,_0x40b1d5,_0x368cc5,_0x5d7c24,_0x38465d){const _0x32e8d8=_0x1100bd;super(_0x3ee745,_0x2a8704,_0x5246a0,_0x50d339,_0x430f15,_0x368cc5,_0x5d7c24,_0x3965a2,_0x2f276d),d(this,_0x32e8d8(0x442),_0x32e8d8(0x35e)),(this[_0x32e8d8(0x4d9)]=_0x780c01,this[_0x32e8d8(0x266)]=_0x5929f4,this[_0x32e8d8(0x1d8)]=_0x47534a,this['_logService']=_0x40b1d5,this[_0x32e8d8(0x1ce)]=_0x38465d);}[_0x1100bd(0x4eb)](_0x5062e4){const _0x5b2b92=_0x1100bd;try{const _0x18bf68=[..._0x5062e4,...this[_0x5b2b92(0x266)]],_0x44467e=[this[_0x5b2b92(0x49c)]||this[_0x5b2b92(0x4d9)]][_0x5b2b92(0x495)](_0x328faf=>!!_0x328faf);let _0x26db4c,_0x3913b6;if(_0x44467e['length']){const _0x1da16c=this[_0x5b2b92(0x1ce)][_0x5b2b92(0x40c)](_0x18bf68,_0x44467e,!0x1);if(!_['isTransformChangesetsSuccess'](_0x1da16c))throw _0x1da16c[_0x5b2b92(0x3d1)];_0x26db4c=_0x1da16c[_0x5b2b92(0x20e)],_0x3913b6=_0x1da16c[_0x5b2b92(0x24e)];}else _0x26db4c=_0x18bf68,_0x3913b6=[];let _0x1e7e2e=this[_0x5b2b92(0x456)];_0x26db4c['forEach'](_0x3f0c55=>{const _0x259c69=_0x5b2b92;let _0x1d021b;if(_0x1e7e2e[_0x259c69(0x46d)]){const _0x4e382d=this[_0x259c69(0x1ce)][_0x259c69(0x3c2)](_0x3f0c55,_0x1e7e2e);if(!_[_0x259c69(0x5a1)](_0x4e382d))throw _0x4e382d[_0x259c69(0x3d1)];_0x1d021b=_0x4e382d[_0x259c69(0x20e)],_0x1e7e2e=_0x4e382d[_0x259c69(0x1ca)];}else _0x1d021b=_0x3f0c55;this[_0x259c69(0x54e)](_0x1d021b);}),this[_0x5b2b92(0x4d9)]&&this['_incrementRevisionNumber'](),this[_0x5b2b92(0x49c)]&&_0x3913b6[_0x5b2b92(0x46d)]&&(_0x3913b6[0x0][_0x5b2b92(0x1f7)]=this[_0x5b2b92(0x5a8)]());let _0x4908d3;if(this[_0x5b2b92(0x49c)]&&_0x1e7e2e[_0x5b2b92(0x46d)]!==0x0)_0x4908d3=this['_injector'][_0x5b2b92(0x317)](k,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],_0x3913b6[0x0],_0x1e7e2e,this[_0x5b2b92(0x4cd)]);else{if(this[_0x5b2b92(0x49c)]&&_0x1e7e2e[_0x5b2b92(0x46d)]===0x0)_0x3913b6[0x0][_0x5b2b92(0x1f7)]=this[_0x5b2b92(0x5a8)](),_0x4908d3=this[_0x5b2b92(0x1d8)][_0x5b2b92(0x317)](W,this[_0x5b2b92(0x59b)],this['type'],_0x3913b6[0x0],this[_0x5b2b92(0x4cd)]);else{if(_0x1e7e2e[_0x5b2b92(0x46d)]!==0x0){const _0x266f2b=this['_injector'][_0x5b2b92(0x317)](x,this['unitID'],this[_0x5b2b92(0x525)],_0x1e7e2e,this[_0x5b2b92(0x4cd)]);_0x266f2b[_0x5b2b92(0x404)](),_0x4908d3=_0x266f2b;}else _0x4908d3=this[_0x5b2b92(0x1d8)][_0x5b2b92(0x317)](se,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],this[_0x5b2b92(0x4cd)]);}}return _0x4908d3['_updateLocalCache'](),_0x4908d3;}catch(_0x4d3cd1){return this['_logService'][_0x5b2b92(0x3d1)]('[FetchMissState]',_0x5b2b92(0x2e4),_0x4d3cd1),this[_0x5b2b92(0x1d8)]['createInstance'](F,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],this[_0x5b2b92(0x49c)],this[_0x5b2b92(0x456)],this[_0x5b2b92(0x4cd)],!0x1);}}[_0x1100bd(0x3ec)](){const _0x1a8750=_0x1100bd;throw new Error(_0x1a8750(0x433));}[_0x1100bd(0x398)](_0xac4d18){const _0x245d77=_0x1100bd;return this['_pendingMutations'][_0x245d77(0x414)](_0xac4d18),this;}[_0x1100bd(0x230)](_0x16c32d){const _0x2717ab=_0x1100bd;return this[_0x2717ab(0x266)][_0x2717ab(0x414)](_0x16c32d),this;}[_0x1100bd(0x254)](_0xa4f507){const _0x5025d7=_0x1100bd;if(this['_awaitingChangeset'])return this[_0x5025d7(0x4d9)]=this[_0x5025d7(0x49c)],this[_0x5025d7(0x49c)]=null,this;throw new Error(_0x5025d7(0x1c4));}[_0x1100bd(0x4e0)](_0x5aff75){const _0x58a0fe=_0x1100bd;return this[_0x58a0fe(0x36c)](!!(_0x5aff75!=null&&_0x5aff75[_0x58a0fe(0x29c)]));}[_0x1100bd(0x319)](){const _0x24cd29=_0x1100bd;return this[_0x24cd29(0x1d8)]['createInstance'](G,this[_0x24cd29(0x59b)],this['type'],this[_0x24cd29(0x49c)],this[_0x24cd29(0x456)],this['_handler']);}[_0x1100bd(0x3aa)](){return this;}['_onConflict'](_0x3fa8eb){const _0xc80ca5=_0x1100bd;return this['_injector']['createInstance'](F,this['unitID'],this[_0xc80ca5(0x525)],this[_0xc80ca5(0x49c)],this[_0xc80ca5(0x456)],this[_0xc80ca5(0x4cd)],_0x3fa8eb);}};H=z([g(0x7,a['Inject'](a['Injector'])),g(0x8,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x9,a['Inject'](exports[_0x1100bd(0x209)])),g(0xa,a[_0x1100bd(0x49b)]),g(0xb,a[_0x1100bd(0x505)]),g(0xc,a[_0x1100bd(0x563)]),g(0xd,_[_0x1100bd(0x38d)])],H);function Rt(_0x451002,_0x22e395,_0x5174d7,_0x5f8c79,_0x16c63f,_0x660fc4){const _0x240072=_0x1100bd;return _0x5f8c79&&_0x16c63f['length']?_0x451002[_0x240072(0x317)](k,_0x22e395,_0x5174d7,_0x5f8c79,_0x16c63f,_0x660fc4):_0x5f8c79?_0x451002[_0x240072(0x317)](W,_0x22e395,_0x5174d7,_0x5f8c79,_0x660fc4):_0x16c63f[_0x240072(0x46d)]?_0x451002[_0x240072(0x317)](x,_0x22e395,_0x5174d7,_0x16c63f,_0x660fc4):_0x451002[_0x240072(0x317)](se,_0x22e395,_0x5174d7,_0x660fc4);}var Hs=Object['defineProperty'],xs=Object[_0x1100bd(0x444)],Ke=(_0x21fbd2,_0x1c375f,_0x374af1,_0x4dbb43)=>{const _0x35936b=_0x1100bd;for(var _0xb27da0=_0x4dbb43>0x1?void 0x0:_0x4dbb43?xs(_0x1c375f,_0x374af1):_0x1c375f,_0x3ef5b4=_0x21fbd2[_0x35936b(0x46d)]-0x1,_0x3f7862;_0x3ef5b4>=0x0;_0x3ef5b4--)(_0x3f7862=_0x21fbd2[_0x3ef5b4])&&(_0xb27da0=(_0x4dbb43?_0x3f7862(_0x1c375f,_0x374af1,_0xb27da0):_0x3f7862(_0xb27da0))||_0xb27da0);return _0x4dbb43&&_0xb27da0&&Hs(_0x1c375f,_0x374af1,_0xb27da0),_0xb27da0;},I=(_0x2258fd,_0x36f2fe)=>(_0x35d9e0,_0x3bf8e2)=>_0x36f2fe(_0x35d9e0,_0x3bf8e2,_0x2258fd);function _0x75d2(_0x300d4b,_0x27ace7){const _0x1ae8b9=_0x1ae8();return _0x75d2=function(_0x75d29c,_0x1353c2){_0x75d29c=_0x75d29c-0x1ad;let _0x5c742a=_0x1ae8b9[_0x75d29c];return _0x5c742a;},_0x75d2(_0x300d4b,_0x27ace7);}exports['CollaborationEntity']=class extends a[_0x1100bd(0x1c7)]{constructor(_0x420d4f,_0x5a5407,_0x365c05,_0x19dc7a,_0x287a1a,_0x1bf29e,_0x1881f2,_0xb85bf,_0x123a71,_0x106dde,_0x4b97e8,_0x1be7b5,_0xd6ca48){const _0x59bfcb=_0x1100bd;super(),d(this,_0x59bfcb(0x459),new v[(_0x59bfcb(0x240))](null)),d(this,_0x59bfcb(0x39b),this[_0x59bfcb(0x459)]['asObservable']()),d(this,_0x59bfcb(0x214)),d(this,_0x59bfcb(0x200),!0x1),d(this,_0x59bfcb(0x284),this[_0x59bfcb(0x39b)][_0x59bfcb(0x32e)](v[_0x59bfcb(0x4c4)](_0x477399=>_0x477399?_0x477399['status']:y['OFFLINE']),v['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x59bfcb(0x51a),[]),(this[_0x59bfcb(0x59b)]=_0x420d4f,this['session']=_0x5a5407,this[_0x59bfcb(0x51e)]=_0x365c05,this['_injector']=_0x19dc7a,this[_0x59bfcb(0x45f)]=_0x287a1a,this[_0x59bfcb(0x570)]=_0x1bf29e,this[_0x59bfcb(0x418)]=_0x1881f2,this[_0x59bfcb(0x3b0)]=_0xb85bf,this[_0x59bfcb(0x340)]=_0x123a71,this[_0x59bfcb(0x53a)]=_0x106dde,this[_0x59bfcb(0x37c)]=_0x4b97e8,this[_0x59bfcb(0x39f)]=_0x1be7b5,this['_singleActiveUnitService']=_0xd6ca48);}get[_0x1100bd(0x3b8)](){return this['_state'];}async[_0x1100bd(0x5c3)](){const _0x4f9a9b=_0x1100bd;if(this[_0x4f9a9b(0x3b8)])throw new Error(_0x4f9a9b(0x1cb));await this[_0x4f9a9b(0x4a0)]();}['pauseCollaboration'](){const _0x7ba171=_0x1100bd;return this[_0x7ba171(0x200)]=!0x0,a[_0x7ba171(0x480)](()=>{const _0x6d4794=_0x7ba171;this[_0x6d4794(0x200)]=!0x1,this[_0x6d4794(0x372)]();});}['_updateState'](_0x44179c){const _0x303d55=_0x1100bd;this['_state']=_0x44179c,this[_0x303d55(0x459)][_0x303d55(0x496)](_0x44179c);}async['_init'](){const _0x1e50b3=_0x1100bd;var _0x3d3cfb;this[_0x1e50b3(0x324)](await this['_createInitialState']()),this[_0x1e50b3(0x307)]&&((_0x3d3cfb=this[_0x1e50b3(0x307)])==null||_0x3d3cfb['editingUnit'](this['unitID']),this[_0x1e50b3(0x40b)](this[_0x1e50b3(0x307)][_0x1e50b3(0x4f1)](this[_0x1e50b3(0x59b)])[_0x1e50b3(0x1f3)](_0x2359bf=>{const _0x29d591=_0x1e50b3;this[_0x29d591(0x340)][_0x29d591(0x328)](_0x29d591(0x2b4),'editing\x20status\x20changed\x20to',_0x2359bf),_0x2359bf===bt[_0x29d591(0x59e)]?(this[_0x29d591(0x37c)][_0x29d591(0x1d9)]({'content':this[_0x29d591(0x418)]['t'](_0x29d591(0x4f4)),'type':X[_0x29d591(0x4b2)]['Warning']}),this['_permissionService'][_0x29d591(0x3a5)](new C[(_0x29d591(0x561))](this[_0x29d591(0x59b)])['id'],!0x1)):this[_0x29d591(0x39f)][_0x29d591(0x3a5)](new C['WorkbookEditablePermission'](this[_0x29d591(0x59b)])['id'],!0x0);})));let _0x15f932=!0x1;return this['disposeWithMe'](this[_0x1e50b3(0x40a)][_0x1e50b3(0x48a)][_0x1e50b3(0x1f3)](_0x3932f1=>{const _0xd7db55=_0x1e50b3;_0x3932f1===$[_0xd7db55(0x48c)]?this[_0xd7db55(0x541)](_0x15f932):_0x3932f1===$['OFFLINE']&&(_0x15f932=!0x0,this[_0xd7db55(0x2b6)]());})),this[_0x1e50b3(0x40b)](this[_0x1e50b3(0x40a)][_0x1e50b3(0x448)][_0x1e50b3(0x1f3)](_0x501afa=>{const _0x3526b0=_0x1e50b3;try{switch(_0x501afa[_0x3526b0(0x39c)]){case _[_0x3526b0(0x55c)][_0x3526b0(0x28e)]:{this[_0x3526b0(0x350)](_[_0x3526b0(0x554)](_0x501afa[_0x3526b0(0x47d)]));break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x3d6)]:{this[_0x3526b0(0x447)](_0x501afa['data']);break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x579)]:{this[_0x3526b0(0x530)]();break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x255)]:{this[_0x3526b0(0x502)](_0x501afa['data']['changesets']['map'](_0x45c787=>_[_0x3526b0(0x554)](_0x45c787)));break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x587)]:this[_0x3526b0(0x530)]({'isPermissionRej':!0x0});}}catch(_0x1007c5){throw console['error'](_0x3526b0(0x2e7),_0x1007c5),_0x1007c5;}})),this[_0x1e50b3(0x214)];}[_0x1100bd(0x330)](){this['_transitionLocked']=!0x1;}[_0x1100bd(0x1c9)](){const _0x210363=_0x1100bd;if(this[_0x210363(0x318)])throw new Error(_0x210363(0x397));this[_0x210363(0x318)]=!0x0;}[_0x1100bd(0x4cc)](_0x13ba6d){const _0xcbc3e3=_0x1100bd;this['_lockTransition'](),this[_0xcbc3e3(0x324)](this[_0xcbc3e3(0x214)][_0xcbc3e3(0x398)](_0x13ba6d)),this[_0xcbc3e3(0x330)]();}[_0x1100bd(0x350)](_0x298202){const _0x477a6d=_0x1100bd;if(!(_0x298202[_0x477a6d(0x436)]<=this[_0x477a6d(0x3b0)][_0x477a6d(0x4c7)](this[_0x477a6d(0x59b)]))){if(this['_collaborationPaused']){this[_0x477a6d(0x51a)][_0x477a6d(0x414)](_0x298202);return;}this[_0x477a6d(0x3f9)](_0x298202);}}[_0x1100bd(0x372)](){const _0x46a0f3=_0x1100bd;this[_0x46a0f3(0x51a)]['forEach'](_0x2b2c72=>this['_applyRemoteChangeset'](_0x2b2c72)),this[_0x46a0f3(0x51a)]=[];}[_0x1100bd(0x3f9)](_0x50f4df){const _0x359d33=_0x1100bd,_0x5a0e7e=this[_0x359d33(0x570)][_0x359d33(0x517)][_0x359d33(0x562)](this[_0x359d33(0x570)][_0x359d33(0x517)][_0x359d33(0x566)]()[_0x359d33(0x422)])(_0x50f4df['mutations'],null)||_0x50f4df[_0x359d33(0x45c)],_0x38e239={..._0x50f4df,'mutations':_0x5a0e7e};this[_0x359d33(0x1c9)](),this[_0x359d33(0x324)](this[_0x359d33(0x214)][_0x359d33(0x230)](_0x38e239)),this[_0x359d33(0x330)]();}[_0x1100bd(0x447)](_0x36a3f3){const _0xf25bf6=_0x1100bd;this[_0xf25bf6(0x1c9)](),this['_updateState'](this[_0xf25bf6(0x214)][_0xf25bf6(0x254)](_0x36a3f3)),this['_unlockTransition']();}[_0x1100bd(0x530)](_0x3d8d03){const _0x5dad7e=_0x1100bd;this[_0x5dad7e(0x1c9)](),this[_0x5dad7e(0x324)](this[_0x5dad7e(0x214)][_0x5dad7e(0x4e0)](_0x3d8d03)),this[_0x5dad7e(0x330)]();}[_0x1100bd(0x502)](_0x5da009){const _0x3e9f70=_0x1100bd;if(!(this[_0x3e9f70(0x214)]instanceof H))throw new TypeError(_0x3e9f70(0x3f3));const _0x4a3595=_0x5da009[_0x3e9f70(0x4c4)](_0x5a140e=>{const _0x4d1255=_0x3e9f70,_0x159c3b=this[_0x4d1255(0x570)]['interceptor'][_0x4d1255(0x562)](this['_compressMutationService'][_0x4d1255(0x517)][_0x4d1255(0x566)]()[_0x4d1255(0x422)])(_0x5a140e['mutations'],null)||_0x5a140e[_0x4d1255(0x45c)];return{..._0x5a140e,'mutations':_0x159c3b};});this[_0x3e9f70(0x1c9)](),this[_0x3e9f70(0x324)](this[_0x3e9f70(0x214)][_0x3e9f70(0x4eb)](_0x4a3595)),this[_0x3e9f70(0x330)]();}[_0x1100bd(0x2b6)](){const _0x43a0a9=_0x1100bd;this['_lockTransition'](),this[_0x43a0a9(0x324)](this[_0x43a0a9(0x214)][_0x43a0a9(0x319)]()),this[_0x43a0a9(0x330)]();}['_toggleOnline'](_0x113cd4=!0x1){const _0xdd5114=_0x1100bd;this[_0xdd5114(0x1c9)](),this[_0xdd5114(0x324)](this[_0xdd5114(0x214)]['toggleOnline']()),this[_0xdd5114(0x330)]();const _0x755ae1=this[_0xdd5114(0x214)];_0x113cd4&&_0x755ae1 instanceof se&&(this[_0xdd5114(0x1c9)](),this[_0xdd5114(0x324)](_0x755ae1[_0xdd5114(0x26c)]()),this[_0xdd5114(0x330)]());}async[_0x1100bd(0x2a3)](){return new Promise(_0x2f13b9=>{const _0x41940f=_0x75d2;this[_0x41940f(0x40a)][_0x41940f(0x48a)]['pipe'](v[_0x41940f(0x542)](0x1))[_0x41940f(0x1f3)](async _0x29c387=>{const _0x2d3874=_0x41940f;_0x2f13b9(await this[_0x2d3874(0x267)](_0x29c387===$[_0x2d3874(0x48c)]));});});}[_0x1100bd(0x420)](){const _0x2d87a2=this['unitID'];return{'onStateChange':(_0x5a30e6,_0x326328)=>{const _0x4e70b6=_0x75d2;if(_0x5a30e6!==this[_0x4e70b6(0x214)])throw new Error(_0x4e70b6(0x575)+_0x5a30e6[_0x4e70b6(0x442)]+_0x4e70b6(0x25f)+_0x326328[_0x4e70b6(0x442)]+_0x4e70b6(0x2ee)+this[_0x4e70b6(0x214)][_0x4e70b6(0x442)]);this[_0x4e70b6(0x324)](_0x326328);},'onSendChangeset':_0x40fe8a=>{const _0x34b9c4=_0x75d2,_0x4db1d6={'eventID':_['CollaborationEvent'][_0x34b9c4(0x46f)],'data':{'unitID':_0x40fe8a[_0x34b9c4(0x59b)],'unitType':this[_0x34b9c4(0x51e)],'changeset':_0x40fe8a,'memberID':this[_0x34b9c4(0x40a)][_0x34b9c4(0x4fc)]()}};this[_0x34b9c4(0x40a)][_0x34b9c4(0x59a)](_0x4db1d6,this[_0x34b9c4(0x59b)]);},'onMissingChangesets':({from:_0x5afeac,to:_0x39e046})=>{const _0x1e7bc5=_0x75d2;this[_0x1e7bc5(0x340)][_0x1e7bc5(0x328)](_0x1e7bc5(0x2b4),'fetching\x20missing\x20changesets\x20from\x20'+_0x5afeac+_0x1e7bc5(0x4d5)+_0x39e046);const _0x271836={'eventID':_[_0x1e7bc5(0x55c)][_0x1e7bc5(0x258)],'data':{'unitID':_0x2d87a2,'unitType':this[_0x1e7bc5(0x51e)],'from':_0x5afeac,'to':_0x39e046}};this[_0x1e7bc5(0x40a)]['send'](_0x271836,this[_0x1e7bc5(0x59b)]);}};}async[_0x1100bd(0x267)](_0x47787e){const _0x5c5a49=_0x1100bd;var _0x577fde,_0x290011;const _0x4cda0c=await this[_0x5c5a49(0x45f)][_0x5c5a49(0x226)](this[_0x5c5a49(0x59b)]),_0x4756c1=(_0x577fde=_0x4cda0c==null?void 0x0:_0x4cda0c[_0x5c5a49(0x45c)])!=null?_0x577fde:[],_0x4e5ea4=(_0x290011=_0x4cda0c==null?void 0x0:_0x4cda0c[_0x5c5a49(0x25b)])!=null?_0x290011:null,_0x236243=this[_0x5c5a49(0x59b)];try{this[_0x5c5a49(0x23e)](_0x4e5ea4,_0x4756c1);}catch(_0x3097d4){this['_logService'][_0x5c5a49(0x3d1)](_0x3097d4);}const _0x73e92f=this[_0x5c5a49(0x420)]();if(_0x47787e){const _0x220d5a=Rt(this['_injector'],_0x236243,this[_0x5c5a49(0x51e)],_0x4e5ea4,_0x4756c1,_0x73e92f);return _0x220d5a instanceof x?_0x220d5a['_schedule']():(_0x220d5a instanceof k||_0x220d5a instanceof W)&&_0x220d5a[_0x5c5a49(0x3ec)](),_0x220d5a;}return this[_0x5c5a49(0x1d8)][_0x5c5a49(0x317)](G,_0x236243,this[_0x5c5a49(0x51e)],_0x4e5ea4,_0x4756c1,_0x73e92f);}[_0x1100bd(0x23e)](_0xbd83b8,_0x596c7e){const _0x4296fb=_0x1100bd;var _0x527f22,_0x521b2e;const _0x27343c=this[_0x4296fb(0x570)][_0x4296fb(0x517)][_0x4296fb(0x562)](this[_0x4296fb(0x570)]['interceptor']['getInterceptPoints']()[_0x4296fb(0x422)]);(_0x527f22=_0x27343c((_0xbd83b8==null?void 0x0:_0xbd83b8[_0x4296fb(0x45c)])||[],null))==null||_0x527f22[_0x4296fb(0x2be)](_0xbcab92=>this[_0x4296fb(0x53a)][_0x4296fb(0x2ea)](_0xbcab92['id'],_0xbcab92[_0x4296fb(0x24d)])),(_0x521b2e=_0x27343c(_0x596c7e||[],null))==null||_0x521b2e['forEach'](_0x48beb8=>this[_0x4296fb(0x53a)][_0x4296fb(0x2ea)](_0x48beb8['id'],_0x48beb8[_0x4296fb(0x24d)]));}},exports[_0x1100bd(0x58d)]=Ke([I(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a['Inject'](a['LocaleService'])),I(0x7,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),I(0x8,a[_0x1100bd(0x49b)]),I(0x9,a['ICommandService']),I(0xa,N[_0x1100bd(0x411)]),I(0xb,a['IPermissionService']),I(0xc,a['Optional'](be))],exports[_0x1100bd(0x58d)]),exports['DocCollaborationEntity']=class extends exports[_0x1100bd(0x58d)]{constructor(_0xe7c921,_0x231ed5,_0x256396,_0x3eee7b,_0x4d4e10,_0x38dab7,_0x191aab,_0x29a30a,_0x138b8e,_0x2ca0f2,_0x20a776,_0x5a7710,_0x24ed5a,_0x39cc7d,_0xcc1f2f,_0x181dc7,_0x4b0fd0){const _0x305593=_0x1100bd;super(_0xe7c921,_0x256396,_0x231ed5,_0x3eee7b,_0x4d4e10,_0x38dab7,_0x191aab,_0x29a30a,_0x24ed5a,_0x39cc7d,_0xcc1f2f,_0x181dc7,_0x4b0fd0),this[_0x305593(0x59b)]=_0xe7c921,this['type']=_0x231ed5,this[_0x305593(0x3a3)]=_0x138b8e,this['_docTransformIMECacheService']=_0x2ca0f2,this['_docTransformSelectionsService']=_0x20a776,this[_0x305593(0x24c)]=_0x5a7710;}[_0x1100bd(0x420)](){const _0x4cb330=_0x1100bd,_0x12d11b=super[_0x4cb330(0x420)]();return _0x12d11b['onTransformIME']=_0x545aa6=>this[_0x4cb330(0x262)]['transformIMECache'](_0x545aa6),_0x12d11b[_0x4cb330(0x543)]=_0x59e55d=>this[_0x4cb330(0x5ac)][_0x4cb330(0x2ed)](_0x59e55d),_0x12d11b[_0x4cb330(0x3bb)]=_0x790a35=>this['_docSyncEditingCollabCursorService'][_0x4cb330(0x4e7)](_0x790a35),_0x12d11b[_0x4cb330(0x2a5)]=_0xc59d28=>this[_0x4cb330(0x262)][_0x4cb330(0x349)](_0xc59d28),_0x12d11b;}async[_0x1100bd(0x4a0)](){const _0x758d4a=_0x1100bd,_0x19fad8=await super[_0x758d4a(0x4a0)]();return this[_0x758d4a(0x40b)](this['_commandService']['onCommandExecuted']((_0x2dcc1e,_0xeb61ab)=>{const _0x6efcc4=_0x758d4a;if(_0x2dcc1e[_0x6efcc4(0x525)]!==a[_0x6efcc4(0x27b)][_0x6efcc4(0x3d8)]||_0xeb61ab!=null&&_0xeb61ab[_0x6efcc4(0x4e5)]||_0xeb61ab!=null&&_0xeb61ab[_0x6efcc4(0x44e)])return;const _0x1eccb7=_0x2dcc1e[_0x6efcc4(0x24d)];if((_0x1eccb7==null?void 0x0:_0x1eccb7[_0x6efcc4(0x1d1)])!==this[_0x6efcc4(0x59b)])return;let _0x3e67bd=_0x2dcc1e;if(_0x3e67bd['id']===V['RichTextEditingMutation']['id']){const _0x586511=_0x3e67bd[_0x6efcc4(0x24d)];_0x3e67bd={'id':V[_0x6efcc4(0x249)]['id'],'type':a[_0x6efcc4(0x27b)]['MUTATION'],'params':{'unitId':_0x586511[_0x6efcc4(0x1d1)],'actions':_0x586511[_0x6efcc4(0x1c8)],'textRanges':null}};}const _0x9adab8=this[_0x6efcc4(0x570)][_0x6efcc4(0x517)][_0x6efcc4(0x562)](this['_compressMutationService'][_0x6efcc4(0x517)][_0x6efcc4(0x566)]()[_0x6efcc4(0x227)])([_0x3e67bd],null)||[_0x3e67bd];this['_onLocalMutation'](_0x9adab8[0x0]);})),_0x19fad8;}},exports['DocCollaborationEntity']=Ke([I(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x5af)])),I(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),I(0x7,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),I(0x8,a[_0x1100bd(0x583)](w[_0x1100bd(0x311)])),I(0x9,a[_0x1100bd(0x583)](fe)),I(0xa,a[_0x1100bd(0x583)](me)),I(0xb,a[_0x1100bd(0x583)](Ye)),I(0xc,a['ILogService']),I(0xd,a['ICommandService']),I(0xe,N[_0x1100bd(0x411)]),I(0xf,a['IPermissionService']),I(0x10,a['Optional'](be))],exports['DocCollaborationEntity']),exports[_0x1100bd(0x4db)]=class extends exports[_0x1100bd(0x58d)]{constructor(_0x3901a1,_0x2e8fd9,_0x2935e5,_0xa0bc0a,_0x395f50,_0x16fd36,_0x12fa88,_0x3990a0,_0x1e4fa6,_0x381b7b,_0x459db5,_0x22dfea,_0x39cc6b,_0x586c6d){const _0x13a827=_0x1100bd;super(_0x3901a1,_0x2935e5,_0x2e8fd9,_0xa0bc0a,_0x395f50,_0x16fd36,_0x12fa88,_0x3990a0,_0x381b7b,_0x459db5,_0x22dfea,_0x39cc6b,_0x586c6d),this[_0x13a827(0x59b)]=_0x3901a1,this['type']=_0x2e8fd9,this[_0x13a827(0x1fc)]=_0x1e4fa6;}[_0x1100bd(0x420)](){const _0x3fbed2=_0x1100bd,_0x802639=super[_0x3fbed2(0x420)]();return _0x802639[_0x3fbed2(0x543)]=_0x5c8333=>this[_0x3fbed2(0x1fc)][_0x3fbed2(0x2ed)](_0x5c8333),_0x802639;}async[_0x1100bd(0x4a0)](){const _0x1756cc=_0x1100bd,_0x569734=await super[_0x1756cc(0x4a0)]();return this[_0x1756cc(0x40b)](this['_commandService']['onCommandExecuted']((_0x3614e4,_0x199f59)=>{const _0x44c41c=_0x1756cc;if(_0x3614e4[_0x44c41c(0x525)]!==a['CommandType'][_0x44c41c(0x3d8)]||_0x199f59!=null&&_0x199f59[_0x44c41c(0x4e5)]||_0x199f59!=null&&_0x199f59[_0x44c41c(0x44e)])return;const _0x10660a=_0x3614e4[_0x44c41c(0x24d)];if((_0x10660a==null?void 0x0:_0x10660a['unitId'])!==this['unitID'])return;const _0x44fc9c=_0x3614e4,_0x4fafff=this['_compressMutationService']['interceptor'][_0x44c41c(0x562)](this['_compressMutationService'][_0x44c41c(0x517)][_0x44c41c(0x566)]()[_0x44c41c(0x227)])([_0x44fc9c],null)||[_0x44fc9c];this['_onLocalMutation'](_0x4fafff[0x0]);})),_0x569734;}},exports[_0x1100bd(0x4db)]=Ke([I(0x3,a['Inject'](a[_0x1100bd(0x2a1)])),I(0x4,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),I(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x5af)])),I(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),I(0x7,a[_0x1100bd(0x583)](_['RevisionService'])),I(0x8,a['Inject'](ge)),I(0x9,a[_0x1100bd(0x49b)]),I(0xa,a[_0x1100bd(0x505)]),I(0xb,N['IMessageService']),I(0xc,a['IPermissionService']),I(0xd,a['Optional'](be))],exports['SheetCollaborationEntity']);var ks=Object[_0x1100bd(0x4ed)],Bs=Object[_0x1100bd(0x444)],Vs=(_0x3a9925,_0x1526a4,_0x2e5077,_0x4ff39e)=>{const _0x9e33a4=_0x1100bd;for(var _0x453ee9=_0x4ff39e>0x1?void 0x0:_0x4ff39e?Bs(_0x1526a4,_0x2e5077):_0x1526a4,_0x75896b=_0x3a9925[_0x9e33a4(0x46d)]-0x1,_0x167634;_0x75896b>=0x0;_0x75896b--)(_0x167634=_0x3a9925[_0x75896b])&&(_0x453ee9=(_0x4ff39e?_0x167634(_0x1526a4,_0x2e5077,_0x453ee9):_0x167634(_0x453ee9))||_0x453ee9);return _0x4ff39e&&_0x453ee9&&ks(_0x1526a4,_0x2e5077,_0x453ee9),_0x453ee9;},Ue=(_0xd7e898,_0x272b69)=>(_0x3bddb0,_0x3a1eb5)=>_0x272b69(_0x3bddb0,_0x3a1eb5,_0xd7e898);exports[_0x1100bd(0x38c)]=class extends a['RxDisposable']{constructor(_0x327f87,_0x4f09e5,_0x35ff49){const _0x25938c=_0x1100bd;super(),d(this,'_entities',new Map()),d(this,_0x25938c(0x568),new v[(_0x25938c(0x43a))]()),(this['_injector']=_0x327f87,this[_0x25938c(0x2d6)]=_0x4f09e5,this[_0x25938c(0x56b)]=_0x35ff49,this['_init']());}[_0x1100bd(0x3d2)](){const _0x5beba8=_0x1100bd;super['dispose'](),this[_0x5beba8(0x51d)][_0x5beba8(0x2be)](_0xb5a374=>_0xb5a374[_0x5beba8(0x3d2)]()),this[_0x5beba8(0x51d)][_0x5beba8(0x27d)]();}['getCollabEntity'](_0x170509){const _0x5a21df=_0x1100bd;var _0x36ccd9;return(_0x36ccd9=this[_0x5a21df(0x51d)][_0x5a21df(0x1f4)](_0x170509))!=null?_0x36ccd9:null;}[_0x1100bd(0x223)](_0x4d2194){const _0x4ba97f=_0x1100bd,_0x344dae=this[_0x4ba97f(0x29e)](_0x4d2194);return _0x344dae?v['of'](_0x344dae):this[_0x4ba97f(0x568)][_0x4ba97f(0x32e)](E[_0x4ba97f(0x495)](_0x4d020c=>_0x4d020c['unitID']===_0x4d2194));}[_0x1100bd(0x4a0)](){const _0x5bf936=_0x1100bd;this[_0x5bf936(0x56b)][_0x5bf936(0x382)](a[_0x5bf936(0x2e9)]['UNIVER_SHEET'])['pipe'](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]),E[_0x5bf936(0x24b)](0x10))['subscribe'](async _0x851ef0=>{const _0x3c6573=_0x5bf936,_0x3ab80e=_0x851ef0[_0x3c6573(0x401)](),_0x249aa3=await this[_0x3c6573(0x33c)](_0x3ab80e,j[_0x3c6573(0x293)]);this['_entities'][_0x3c6573(0x57e)](_0x3ab80e,_0x249aa3);}),this[_0x5bf936(0x56b)][_0x5bf936(0x382)](a[_0x5bf936(0x2e9)][_0x5bf936(0x22b)])[_0x5bf936(0x32e)](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]),E[_0x5bf936(0x24b)](0x10))['pipe'](E[_0x5bf936(0x495)](_0x24217a=>!_0x24217a[_0x5bf936(0x401)]()[_0x5bf936(0x316)]('__')))[_0x5bf936(0x1f3)](async _0x237a12=>{const _0x3ce928=_0x5bf936,_0x57795a=_0x237a12[_0x3ce928(0x401)](),_0x262881=await this['_startCollaboration'](_0x57795a,j[_0x3ce928(0x22b)]);this[_0x3ce928(0x51d)]['set'](_0x57795a,_0x262881);}),v[_0x5bf936(0x4e9)](this[_0x5bf936(0x56b)][_0x5bf936(0x2a4)](a[_0x5bf936(0x2e9)][_0x5bf936(0x293)]),this[_0x5bf936(0x56b)]['getTypeOfUnitDisposed$'](a[_0x5bf936(0x2e9)][_0x5bf936(0x22b)]))[_0x5bf936(0x32e)](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]))[_0x5bf936(0x1f3)](_0x8a00bb=>{const _0x3df890=_0x5bf936,_0x1c3fd6=_0x8a00bb['getUnitId'](),_0x4e1185=this[_0x3df890(0x51d)][_0x3df890(0x1f4)](_0x1c3fd6);_0x4e1185&&(_0x4e1185[_0x3df890(0x3d2)](),this[_0x3df890(0x51d)][_0x3df890(0x5bf)](_0x1c3fd6));});}async['_startCollaboration'](_0x20b5d4,_0x439cc6){const _0x2f72a4=_0x1100bd,_0x78e497=await this[_0x2f72a4(0x2d6)][_0x2f72a4(0x31b)](_0x20b5d4),_0x4bf568=this[_0x2f72a4(0x1d8)][_0x2f72a4(0x317)](this[_0x2f72a4(0x47f)](_0x439cc6),_0x20b5d4,_0x439cc6,_0x78e497);return await _0x4bf568['init'](),this['_entityInit$'][_0x2f72a4(0x496)](_0x4bf568),_0x4bf568;}[_0x1100bd(0x47f)](_0x4a3270){const _0x2dd072=_0x1100bd;switch(_0x4a3270){case j[_0x2dd072(0x22b)]:return exports[_0x2dd072(0x3cd)];case j['UNIVER_SHEET']:return exports[_0x2dd072(0x4db)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4a3270);}}},exports['CollaborationController']=Vs([Ue(0x0,a[_0x1100bd(0x583)](a['Injector'])),Ue(0x1,a[_0x1100bd(0x583)](exports[_0x1100bd(0x532)])),Ue(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const nt=[_0x1100bd(0x4e2),_0x1100bd(0x331),_0x1100bd(0x2c1),_0x1100bd(0x4bb),_0x1100bd(0x3d4),_0x1100bd(0x2b3)];class Xe extends a[_0x1100bd(0x4e4)]{constructor(){const _0x2e75d7=_0x1100bd;super(...arguments),d(this,_0x2e75d7(0x2b9),new Map()),d(this,'_colorIndex',0x0);}[_0x1100bd(0x3a7)](_0x4d4da4){const _0x4f14d7=_0x1100bd;if(this[_0x4f14d7(0x2b9)]['has'](_0x4d4da4))return this[_0x4f14d7(0x2b9)]['get'](_0x4d4da4);const _0x26db79=nt[this['_colorIndex']];return this[_0x4f14d7(0x540)]=(this['_colorIndex']+0x1)%nt['length'],this[_0x4f14d7(0x2b9)][_0x4f14d7(0x57e)](_0x4d4da4,_0x26db79),_0x26db79;}}var Ws=Object[_0x1100bd(0x4ed)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x5bc33f,_0x5ac0a8,_0x573540,_0x48cc36)=>{const _0x33e2a9=_0x1100bd;for(var _0x59ac18=_0x48cc36>0x1?void 0x0:_0x48cc36?Fs(_0x5ac0a8,_0x573540):_0x5ac0a8,_0x3f8674=_0x5bc33f[_0x33e2a9(0x46d)]-0x1,_0x2071ec;_0x3f8674>=0x0;_0x3f8674--)(_0x2071ec=_0x5bc33f[_0x3f8674])&&(_0x59ac18=(_0x48cc36?_0x2071ec(_0x5ac0a8,_0x573540,_0x59ac18):_0x2071ec(_0x59ac18))||_0x59ac18);return _0x48cc36&&_0x59ac18&&Ws(_0x5ac0a8,_0x573540,_0x59ac18),_0x59ac18;},K=(_0x5e47cf,_0xdb0bc5)=>(_0x3f3163,_0x541eb2)=>_0xdb0bc5(_0x3f3163,_0x541eb2,_0x5e47cf);const Ys=0x12c,Ks=0x64;let $e=class extends a['RxDisposable']{constructor(_0x3686e2,_0x30d6ba,_0x286935,_0x4a2ab1,_0x365212,_0x4e5666,_0x4ceae1,_0x3a7106,_0x531d4c){const _0x16c2b0=_0x1100bd;super(),d(this,_0x16c2b0(0x3e2),!0x1),d(this,_0x16c2b0(0x4a0),!0x1),d(this,_0x16c2b0(0x434),new v['BehaviorSubject'](new Map())),d(this,_0x16c2b0(0x48d),this[_0x16c2b0(0x434)][_0x16c2b0(0x4c2)]()),d(this,_0x16c2b0(0x222),new v[(_0x16c2b0(0x240))]([])),d(this,_0x16c2b0(0x5ba),this['_roomMembers$']['pipe'](v['debounceTime'](Ys))),d(this,_0x16c2b0(0x460),a[_0x16c2b0(0x2ec)](_0x3a168c=>{const _0x3148cb=_0x16c2b0,_0x2e6da2={'eventID':_[_0x3148cb(0x55c)][_0x3148cb(0x2ce)],'data':{'unitID':this[_0x3148cb(0x59b)],'memberID':this['_session'][_0x3148cb(0x4fc)](),'selection':Tt(_0x3a168c)}};this[_0x3148cb(0x57a)]['send'](_0x2e6da2,this[_0x3148cb(0x59b)]);},Ks)),(this[_0x16c2b0(0x59b)]=_0x3686e2,this['_session']=_0x30d6ba,this[_0x16c2b0(0x1d8)]=_0x286935,this['_colorAssignService']=_0x4a2ab1,this['_memberService']=_0x365212,this[_0x16c2b0(0x288)]=_0x4e5666,this[_0x16c2b0(0x1ce)]=_0x4ceae1,this[_0x16c2b0(0x56b)]=_0x3a7106,this[_0x16c2b0(0x53a)]=_0x531d4c);}get['cursorInfo'](){const _0x29ee59=_0x1100bd;return this[_0x29ee59(0x434)][_0x29ee59(0x2f0)]();}get[_0x1100bd(0x42c)](){const _0x3cc5f1=_0x1100bd;return this[_0x3cc5f1(0x222)]['getValue']();}[_0x1100bd(0x3d2)](){const _0x50a941=_0x1100bd;super['dispose'](),this['_cursorInfo$'][_0x50a941(0x496)](new Map()),this[_0x50a941(0x434)][_0x50a941(0x3dc)](),this[_0x50a941(0x222)][_0x50a941(0x496)]([]),this[_0x50a941(0x222)][_0x50a941(0x3dc)]();}[_0x1100bd(0x5c3)](){const _0x2f2aa1=_0x1100bd;this[_0x2f2aa1(0x4a0)]||(this[_0x2f2aa1(0x4a0)]=!0x0,this['_session'][_0x2f2aa1(0x48a)][_0x2f2aa1(0x32e)](v['takeUntil'](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x183f44=>{const _0x3b1382=_0x2f2aa1;_0x183f44===$[_0x3b1382(0x48c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2f2aa1(0x57a)][_0x2f2aa1(0x448)][_0x2f2aa1(0x32e)](v[_0x2f2aa1(0x23f)](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x4dd0b2=>{const _0x504b75=_0x2f2aa1,_0x15c4e8=_0x4dd0b2[_0x504b75(0x39c)];_0x15c4e8===_['CollaborationEvent'][_0x504b75(0x2ce)]&&this[_0x504b75(0x440)](_0x4dd0b2),_0x15c4e8===_[_0x504b75(0x55c)][_0x504b75(0x529)]&&this[_0x504b75(0x3d0)](_0x4dd0b2);}),this[_0x2f2aa1(0x40b)](this[_0x2f2aa1(0x53a)]['onCommandExecuted'](_0x2d4b83=>{const _0x194b1a=_0x2f2aa1,_0xed771=_0x2d4b83[_0x194b1a(0x24d)];_0xed771!=null&&this[_0x194b1a(0x3e2)]&&_0x2d4b83['id']===V['SetTextSelectionsOperation']['id']&&_0xed771[_0x194b1a(0x1d1)]===this[_0x194b1a(0x59b)]&&_0xed771[_0x194b1a(0x5b2)]===!0x1&&this['_updateLocalCursor'](_0xed771['ranges']);})),this[_0x2f2aa1(0x288)][_0x2f2aa1(0x3c6)][_0x2f2aa1(0x32e)](v[_0x2f2aa1(0x23f)](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x34ed2b=>{const _0xe17cd6=_0x2f2aa1;if((_0x34ed2b==null?void 0x0:_0x34ed2b[_0xe17cd6(0x59b)])!==this[_0xe17cd6(0x59b)])return;const _0xf37a26={'eventID':_['CollaborationEvent'][_0xe17cd6(0x2ce)],'data':_0x34ed2b};this[_0xe17cd6(0x440)](_0xf37a26);}),this[_0x2f2aa1(0x40b)](this[_0x2f2aa1(0x53a)]['onCommandExecuted'](_0x4fcefc=>{const _0xab9190=_0x2f2aa1;if(_0x4fcefc['params']==null)return;const _0x4fc7cd=_0x4fcefc['params'];if(_0x4fcefc['id']!==V[_0xab9190(0x249)]['id']||_0x4fc7cd[_0xab9190(0x1d1)]!==this[_0xab9190(0x59b)])return;const _0x21a5f0={'id':_0xab9190(0x2a6),'params':_0x4fc7cd},_0x148489=this[_0xab9190(0x287)];for(const [_0x38ec40,_0x5722da]of _0x148489){const _0x5d2160={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xab9190(0x59b)],'actions':null,'textRanges':_0x5722da[_0xab9190(0x51b)]}},_0x3bac0c=this[_0xab9190(0x1ce)][_0xab9190(0x356)](_0x21a5f0,_0x5d2160,!0x1);if(_[_0xab9190(0x4c1)](_0x3bac0c))throw _0x3bac0c[_0xab9190(0x3d1)];_0x148489[_0xab9190(0x57e)](_0x38ec40,{..._0x5722da,'ranges':_0x3bac0c[_0xab9190(0x1ca)]['params'][_0xab9190(0x2fa)]});}queueMicrotask(()=>{const _0x5f39a8=_0xab9190;this['_cursorInfo$'][_0x5f39a8(0x496)](_0x148489);});})));}['_onCursorUpdate'](_0x1b46c7){const _0x1289a4=_0x1100bd;var _0x51f38c,_0x38093a;const {memberID:_0x57bc9f,selection:_0x4d6080}=_0x1b46c7['data'],_0x59cd99=Us(_0x4d6080),_0x40fda1=(_0x38093a=(_0x51f38c=this[_0x1289a4(0x1e4)]['getMember'](this[_0x1289a4(0x59b)],_0x57bc9f))==null?void 0x0:_0x51f38c[_0x1289a4(0x38f)])!=null?_0x38093a:_0x1289a4(0x1f5),_0x36426b={'color':this[_0x1289a4(0x333)][_0x1289a4(0x3a7)](_0x57bc9f),'name':_0x40fda1,'ranges':_0x59cd99},_0x193764=this[_0x1289a4(0x287)];_0x193764[_0x1289a4(0x57e)](_0x57bc9f,_0x36426b),this[_0x1289a4(0x434)][_0x1289a4(0x496)](_0x193764);}['_onCursorDelete'](_0x162633){const _0x5a19dd=_0x1100bd,{memberID:_0x11a015}=_0x162633[_0x5a19dd(0x47d)],_0x50d6b0=this[_0x5a19dd(0x287)];_0x50d6b0['delete'](_0x11a015),this[_0x5a19dd(0x434)]['next'](_0x50d6b0);}[_0x1100bd(0x541)](){const _0x4906c0=_0x1100bd;var _0xe502c9;if(this[_0x4906c0(0x3e2)]=!0x0,((_0xe502c9=this[_0x4906c0(0x56b)][_0x4906c0(0x31d)]())==null?void 0x0:_0xe502c9[_0x4906c0(0x401)]())!==this['unitID'])return;const _0x2f5795=this[_0x4906c0(0x1d8)][_0x4906c0(0x1f4)](V[_0x4906c0(0x377)])[_0x4906c0(0x326)]();Array[_0x4906c0(0x57c)](_0x2f5795)&&_0x2f5795[_0x4906c0(0x46d)]>0x0&&this[_0x4906c0(0x460)](_0x2f5795);}[_0x1100bd(0x2b6)](){const _0xd47e8b=_0x1100bd;this[_0xd47e8b(0x3e2)]=!0x1;}};$e=Gs([K(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),K(0x3,a[_0x1100bd(0x583)](Xe)),K(0x4,a[_0x1100bd(0x583)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x1100bd(0x38d)]),K(0x7,a[_0x1100bd(0x472)]),K(0x8,a['ICommandService'])],$e);var Xs=Object[_0x1100bd(0x4ed)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x4a0679,_0x273e3e,_0x2702ed,_0x42e0a9)=>{const _0x1a5789=_0x1100bd;for(var _0x557efb=_0x42e0a9>0x1?void 0x0:_0x42e0a9?qs(_0x273e3e,_0x2702ed):_0x273e3e,_0x47620e=_0x4a0679[_0x1a5789(0x46d)]-0x1,_0x1a1823;_0x47620e>=0x0;_0x47620e--)(_0x1a1823=_0x4a0679[_0x47620e])&&(_0x557efb=(_0x42e0a9?_0x1a1823(_0x273e3e,_0x2702ed,_0x557efb):_0x1a1823(_0x557efb))||_0x557efb);return _0x42e0a9&&_0x557efb&&Xs(_0x273e3e,_0x2702ed,_0x557efb),_0x557efb;},Q=(_0x59514e,_0x4b5c5e)=>(_0x4d523e,_0x514b00)=>_0x4b5c5e(_0x4d523e,_0x514b00,_0x59514e);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x161c81=[],_0x53dd72=!0x1;return _0x31d8a3=>{_0x161c81['push'](_0x31d8a3),_0x53dd72||(_0x53dd72=!0x0,setTimeout(()=>{const _0xfb0693=_0x75d2;_0x161c81[_0xfb0693(0x2be)](_0x3cecdd=>_0x3cecdd()),_0x161c81=[],_0x53dd72=!0x1;}));};};let He=class extends a[_0x1100bd(0x1c7)]{constructor(_0x5aa55b,_0x2856b4,_0x2da367,_0x562c4f,_0xf038ce,_0x356619,_0x97b0bc,_0x4ac1e7){const _0x2f1539=_0x1100bd;super(),d(this,_0x2f1539(0x3e2),!0x1),d(this,_0x2f1539(0x4a0),!0x1),d(this,_0x2f1539(0x434),new v[(_0x2f1539(0x240))](new Map())),d(this,_0x2f1539(0x48d),this[_0x2f1539(0x434)][_0x2f1539(0x4c2)]()),d(this,_0x2f1539(0x222),new v[(_0x2f1539(0x240))]([])),d(this,_0x2f1539(0x5ba),this[_0x2f1539(0x222)][_0x2f1539(0x32e)](v[_0x2f1539(0x5ca)](Js))),d(this,_0x2f1539(0x460),a[_0x2f1539(0x2ec)]((_0x42f24e,_0x479725)=>{const _0x17d54b=_0x2f1539,_0x20fbaa={'eventID':_[_0x17d54b(0x55c)][_0x17d54b(0x2ce)],'data':{'unitID':this[_0x17d54b(0x59b)],'memberID':this[_0x17d54b(0x57a)][_0x17d54b(0x4fc)](),'selection':Je[_0x17d54b(0x3fd)](_0x42f24e,_0x479725['range'])}};this[_0x17d54b(0x57a)][_0x17d54b(0x59a)](_0x20fbaa,this['unitID']);},Zs)),(this[_0x2f1539(0x59b)]=_0x5aa55b,this[_0x2f1539(0x57a)]=_0x2856b4,this['_injector']=_0x2da367,this[_0x2f1539(0x333)]=_0x562c4f,this[_0x2f1539(0x1e4)]=_0xf038ce,this['_univerInstanceService']=_0x356619,this['_commandService']=_0x97b0bc,this[_0x2f1539(0x2f8)]=_0x4ac1e7);}get[_0x1100bd(0x287)](){const _0x5b3967=_0x1100bd;return this[_0x5b3967(0x434)][_0x5b3967(0x2f0)]();}get[_0x1100bd(0x42c)](){const _0x3957b5=_0x1100bd;return this[_0x3957b5(0x222)][_0x3957b5(0x2f0)]();}[_0x1100bd(0x3d2)](){const _0x372099=_0x1100bd;super['dispose'](),this[_0x372099(0x434)][_0x372099(0x496)](new Map()),this[_0x372099(0x434)]['complete'](),this['_roomMembers$'][_0x372099(0x496)]([]),this[_0x372099(0x222)][_0x372099(0x3dc)]();}['init'](){const _0x286f5a=_0x1100bd;this[_0x286f5a(0x4a0)]||(this[_0x286f5a(0x4a0)]=!0x0,this[_0x286f5a(0x57a)][_0x286f5a(0x48a)][_0x286f5a(0x32e)](v[_0x286f5a(0x23f)](this['dispose$']))[_0x286f5a(0x1f3)](_0x1827c1=>{const _0x1c0dfc=_0x286f5a;_0x1827c1===$[_0x1c0dfc(0x48c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x286f5a(0x57a)][_0x286f5a(0x448)][_0x286f5a(0x32e)](v['takeUntil'](this[_0x286f5a(0x551)]))[_0x286f5a(0x1f3)](_0x508c49=>{const _0x479779=_0x286f5a,_0x4aa6fb=_0x508c49[_0x479779(0x39c)];_0x4aa6fb===_[_0x479779(0x55c)][_0x479779(0x2ce)]&&this[_0x479779(0x440)](_0x508c49),_0x4aa6fb===_[_0x479779(0x55c)][_0x479779(0x529)]&&this[_0x479779(0x3d0)](_0x508c49);}),this['_onRefRangeChange'](),this[_0x286f5a(0x40b)](this[_0x286f5a(0x53a)][_0x286f5a(0x231)](_0x263798=>{const _0x1e1cfe=_0x286f5a;if(this[_0x1e1cfe(0x3e2)]&&_0x263798['id']===C[_0x1e1cfe(0x3b7)]['id']&&_0x263798[_0x1e1cfe(0x24d)][_0x1e1cfe(0x1d1)]===this[_0x1e1cfe(0x59b)]){const _0xa3ef21=_0x263798[_0x1e1cfe(0x24d)];this[_0x1e1cfe(0x460)](_0xa3ef21[_0x1e1cfe(0x1b1)],_0xa3ef21['selections'][0x0]);}})));}[_0x1100bd(0x440)](_0x545a93){const _0x10e711=_0x1100bd;var _0x5b8163,_0x22e090;const {memberID:_0x1e5e2d,selection:_0x366001}=_0x545a93['data'],{sheetName:_0x50c919,range:_0x48a003}=Je[_0x10e711(0x5b5)](_0x366001),_0xc53712={'name':(_0x22e090=(_0x5b8163=this[_0x10e711(0x1e4)][_0x10e711(0x379)](this[_0x10e711(0x59b)],_0x1e5e2d))==null?void 0x0:_0x5b8163[_0x10e711(0x38f)])!=null?_0x22e090:_0x10e711(0x1f5),'range':this['_getMergeRange'](_0x50c919,_0x48a003),'sheetID':_0x50c919,'color':this['_colorAssignService'][_0x10e711(0x3a7)](_0x1e5e2d),'selection':_0x366001},_0x5049ca=this[_0x10e711(0x287)];_0x5049ca[_0x10e711(0x57e)](_0x1e5e2d,_0xc53712),this[_0x10e711(0x434)]['next'](_0x5049ca);}['_onCursorDelete'](_0x554782){const _0x3fbc83=_0x1100bd,{memberID:_0x2ebd0f}=_0x554782[_0x3fbc83(0x47d)],_0x5a9ad3=this[_0x3fbc83(0x287)];_0x5a9ad3[_0x3fbc83(0x5bf)](_0x2ebd0f),this['_cursorInfo$'][_0x3fbc83(0x496)](_0x5a9ad3);}[_0x1100bd(0x5c5)](_0x1b5752,_0x1afe65){const _0x2b129a=_0x1100bd;var _0x3eee4b,_0x412134;const _0x4d4f91=(_0x412134=(_0x3eee4b=this[_0x2b129a(0x56b)][_0x2b129a(0x34f)](this[_0x2b129a(0x59b)]))==null?void 0x0:_0x3eee4b[_0x2b129a(0x2a9)](_0x1b5752))==null?void 0x0:_0x412134['getMergeData']();return(_0x4d4f91==null?void 0x0:_0x4d4f91['find'](_0x48c5f1=>a['Rectangle']['contains'](_0x48c5f1,_0x1afe65)))||_0x1afe65;}['_onRefRangeChange'](){const _0x569a3c=_0x1100bd,_0x3fa653=new a['DisposableCollection'](),_0x59df84=Qs(),_0x420eb0=()=>{const _0xd7b883=_0x75d2;_0x3fa653['dispose']();const _0x18a3ae=(_0x4ee339,_0x1f8f18,_0xb6cde8,_0x1f2700)=>{const _0x386cab=_0x75d2;let _0x525e00=[];switch(_0x4ee339['id']){case C[_0x386cab(0x5c1)][_0x386cab(0x23a)]:{_0x525e00=C[_0x386cab(0x423)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)][_0x386cab(0x337)]:{_0x525e00=C[_0x386cab(0x5a5)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x50d)]:{_0x525e00=C[_0x386cab(0x23b)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)][_0x386cab(0x498)]:{_0x525e00=C[_0x386cab(0x357)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)]['InsertRangeMoveRightCommandId']:{_0x525e00=C[_0x386cab(0x1e2)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)]['InsertRowCommandId']:{_0x525e00=C[_0x386cab(0x345)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x1dd)]:{_0x525e00=C[_0x386cab(0x3c3)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x476)]:{_0x525e00=C[_0x386cab(0x3e4)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x5b1)]:{_0x525e00=C[_0x386cab(0x54d)](_0x4ee339,_0x1f2700);break;}}const _0x156ff6=C['runRefRangeMutations'](_0x525e00,_0x1f2700),_0x566320=this[_0x386cab(0x287)][_0x386cab(0x1f4)](_0x1f8f18);if(_0x566320&&_0x156ff6){const _0xe5d483={..._0x566320,'range':_0x156ff6};this[_0x386cab(0x287)][_0x386cab(0x57e)](_0x1f8f18,_0xe5d483),_0x59df84(()=>{const _0x184f99=_0x386cab,_0x38a376=this[_0x184f99(0x2f8)]['registerRefRange'](_0x156ff6,_0x15c765=>(_0x38a376[_0x184f99(0x3d2)](),_0x18a3ae(_0x15c765,_0x1f8f18,_0xb6cde8,_0x156ff6)));_0x3fa653[_0x184f99(0x1e0)](_0x38a376);});}return{'redos':[],'undos':[]};};this[_0xd7b883(0x287)]['forEach']((_0x1df220,_0x3b07fb)=>{const _0x41cfb=_0xd7b883,{range:_0x1986fe,sheetID:_0x68a32e}=_0x1df220,_0x2f9d4e=this['_refRangeService']['registerRefRange'](_0x1986fe,_0x10b419=>(_0x2f9d4e['dispose'](),_0x18a3ae(_0x10b419,_0x3b07fb,_0x68a32e,_0x1986fe)));_0x3fa653[_0x41cfb(0x1e0)](_0x2f9d4e);});};this[_0x569a3c(0x40b)](a[_0x569a3c(0x480)](this[_0x569a3c(0x434)][_0x569a3c(0x1f3)](()=>{_0x420eb0();})));}[_0x1100bd(0x541)](){const _0x1e0bf8=_0x1100bd;var _0x538bff,_0x3d3c06;if(this[_0x1e0bf8(0x3e2)]=!0x0,((_0x538bff=this[_0x1e0bf8(0x56b)]['getFocusedUnit']())==null?void 0x0:_0x538bff[_0x1e0bf8(0x401)]())!==this[_0x1e0bf8(0x59b)])return;const _0x47c800=(_0x3d3c06=this[_0x1e0bf8(0x1d8)]['get'](C[_0x1e0bf8(0x52d)])[_0x1e0bf8(0x2ab)]())==null?void 0x0:_0x3d3c06[0x0],_0x1dd23b=this[_0x1e0bf8(0x56b)][_0x1e0bf8(0x5cd)](a[_0x1e0bf8(0x2e9)][_0x1e0bf8(0x293)])[_0x1e0bf8(0x34b)]();_0x47c800&&_0x1dd23b&&this[_0x1e0bf8(0x460)](_0x1dd23b[_0x1e0bf8(0x380)](),_0x47c800);}[_0x1100bd(0x2b6)](){this['_online']=!0x1;}};He=zs([Q(0x2,a[_0x1100bd(0x583)](a['Injector'])),Q(0x3,a[_0x1100bd(0x583)](Xe)),Q(0x4,a[_0x1100bd(0x583)](q)),Q(0x5,a[_0x1100bd(0x472)]),Q(0x6,a[_0x1100bd(0x505)]),Q(0x7,a[_0x1100bd(0x583)](C[_0x1100bd(0x511)]))],He);var ei=Object[_0x1100bd(0x4ed)],ti=Object['getOwnPropertyDescriptor'],si=(_0x59d81f,_0x5400a0,_0x151576,_0x5bdf6d)=>{const _0xf8f3aa=_0x1100bd;for(var _0x30fed1=_0x5bdf6d>0x1?void 0x0:_0x5bdf6d?ti(_0x5400a0,_0x151576):_0x5400a0,_0x2741e4=_0x59d81f[_0xf8f3aa(0x46d)]-0x1,_0x2ae2ff;_0x2741e4>=0x0;_0x2741e4--)(_0x2ae2ff=_0x59d81f[_0x2741e4])&&(_0x30fed1=(_0x5bdf6d?_0x2ae2ff(_0x5400a0,_0x151576,_0x30fed1):_0x2ae2ff(_0x30fed1))||_0x30fed1);return _0x5bdf6d&&_0x30fed1&&ei(_0x5400a0,_0x151576,_0x30fed1),_0x30fed1;},Pe=(_0x3f5dc5,_0x654c9)=>(_0x1e9a4,_0x19da35)=>_0x654c9(_0x1e9a4,_0x19da35,_0x3f5dc5);let ie=class extends a[_0x1100bd(0x1c7)]{constructor(_0x15fd59,_0x8ab495,_0x3087c6){const _0x22f559=_0x1100bd;super(),d(this,_0x22f559(0x51d),new Map()),d(this,'_entityInit$',new v['Subject']()),(this[_0x22f559(0x56b)]=_0x15fd59,this['_injector']=_0x8ab495,this['_collabSessionService']=_0x3087c6,this['_init']());}[_0x1100bd(0x3d2)](){const _0x3d38da=_0x1100bd;super[_0x3d38da(0x3d2)](),this[_0x3d38da(0x568)][_0x3d38da(0x3dc)](),this[_0x3d38da(0x51d)][_0x3d38da(0x2be)](_0xdf9a3a=>_0xdf9a3a['dispose']());}[_0x1100bd(0x271)](_0x53ff09){const _0x2bf628=_0x1100bd;return this[_0x2bf628(0x51d)]['has'](_0x53ff09)?this[_0x2bf628(0x51d)][_0x2bf628(0x1f4)](_0x53ff09)['cursorInfo$']:this['_entityInit$'][_0x2bf628(0x32e)](v[_0x2bf628(0x495)](_0x5d131a=>_0x5d131a[_0x2bf628(0x59b)]===_0x53ff09),v[_0x2bf628(0x35f)](_0x3297ef=>_0x3297ef['cursorInfo$']));}[_0x1100bd(0x4a0)](){const _0x2df713=_0x1100bd;this[_0x2df713(0x56b)][_0x2df713(0x382)](a[_0x2df713(0x2e9)]['UNIVER_SHEET'])[_0x2df713(0x32e)](v[_0x2df713(0x23f)](this['dispose$']))[_0x2df713(0x1f3)](async _0x299be5=>{const _0x33d9d4=_0x2df713,_0x5d1263=_0x299be5[_0x33d9d4(0x401)](),_0x13d3e4=await this[_0x33d9d4(0x265)](_0x5d1263);this[_0x33d9d4(0x568)]['next'](_0x13d3e4),this[_0x33d9d4(0x51d)][_0x33d9d4(0x57e)](_0x5d1263,_0x13d3e4);}),this[_0x2df713(0x56b)][_0x2df713(0x382)](a['UniverInstanceType'][_0x2df713(0x22b)])['pipe'](v[_0x2df713(0x23f)](this['dispose$']))['pipe'](v[_0x2df713(0x495)](_0x3f227b=>!_0x3f227b[_0x2df713(0x401)]()[_0x2df713(0x316)]('__')))[_0x2df713(0x1f3)](async _0x6283cd=>{const _0x1fb65e=_0x2df713,_0xe36588=_0x6283cd[_0x1fb65e(0x401)](),_0x1adc3f=await this['_startDocCollabCursor'](_0xe36588);this[_0x1fb65e(0x568)][_0x1fb65e(0x496)](_0x1adc3f),this[_0x1fb65e(0x51d)][_0x1fb65e(0x57e)](_0xe36588,_0x1adc3f);}),v[_0x2df713(0x4e9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x2df713(0x2e9)][_0x2df713(0x22b)]),this[_0x2df713(0x56b)]['getTypeOfUnitDisposed$'](a[_0x2df713(0x2e9)][_0x2df713(0x293)]))['pipe'](v[_0x2df713(0x23f)](this['dispose$']))[_0x2df713(0x1f3)](_0x32711a=>{const _0x4d3b5f=_0x2df713,_0x54ec7=_0x32711a['getUnitId'](),_0x47e38a=this[_0x4d3b5f(0x51d)][_0x4d3b5f(0x1f4)](_0x54ec7);_0x47e38a&&(_0x47e38a[_0x4d3b5f(0x3d2)](),this['_entities'][_0x4d3b5f(0x5bf)](_0x54ec7));});}async[_0x1100bd(0x265)](_0x450635){const _0x426267=_0x1100bd,_0x216bad=await this['_collabSessionService'][_0x426267(0x31b)](_0x450635),_0x2ea78f=this[_0x426267(0x1d8)][_0x426267(0x317)](He,_0x450635,_0x216bad);return _0x2ea78f[_0x426267(0x5c3)](),_0x2ea78f;}async[_0x1100bd(0x1ed)](_0x5c4343){const _0x4c53dd=_0x1100bd,_0x3ffbaf=await this[_0x4c53dd(0x2d6)][_0x4c53dd(0x31b)](_0x5c4343),_0x46c5f7=this[_0x4c53dd(0x1d8)]['createInstance']($e,_0x5c4343,_0x3ffbaf);return _0x46c5f7['init'](),_0x46c5f7;}};ie=si([Pe(0x0,a[_0x1100bd(0x472)]),Pe(0x1,a['Inject'](a['Injector'])),Pe(0x2,a[_0x1100bd(0x583)](exports[_0x1100bd(0x532)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x1b355b,_0x59c2c9){const _0x4e70a8=_0x1100bd;let {radius:_0x2b3986,width:_0x40f092,height:_0xf86325}=_0x59c2c9;_0x2b3986=_0x2b3986!=null?_0x2b3986:0x0,_0x40f092=_0x40f092!=null?_0x40f092:0x1e,_0xf86325=_0xf86325!=null?_0xf86325:0x1e;let _0x12d266=0x0,_0x1cc2be=0x0,_0x419812=0x0;_0x12d266=_0x1cc2be=_0x419812=Math[_0x4e70a8(0x36b)](_0x2b3986,_0x40f092/0x2,_0xf86325/0x2),_0x1b355b['beginPath'](),_0x1b355b[_0x4e70a8(0x492)](_0x12d266,0x0),_0x1b355b['lineTo'](_0x40f092-_0x1cc2be,0x0),_0x1b355b[_0x4e70a8(0x3c9)](_0x40f092-_0x1cc2be,_0x1cc2be,_0x1cc2be,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b355b[_0x4e70a8(0x4dd)](_0x40f092,_0xf86325-_0x419812),_0x1b355b['arc'](_0x40f092-_0x419812,_0xf86325-_0x419812,_0x419812,0x0,Math['PI']/0x2,!0x1),_0x1b355b[_0x4e70a8(0x4dd)](0x0,_0xf86325),_0x1b355b[_0x4e70a8(0x4dd)](0x0,_0x12d266),_0x1b355b['arc'](_0x12d266,_0x12d266,_0x12d266,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b355b[_0x4e70a8(0x346)](),_0x59c2c9['fill']&&(_0x1b355b[_0x4e70a8(0x47e)](),_0x1b355b[_0x4e70a8(0x1cf)]=_0x59c2c9['fill'],_0x59c2c9['fillRule']===_0x4e70a8(0x567)?_0x1b355b[_0x4e70a8(0x5b9)]('evenodd'):_0x1b355b[_0x4e70a8(0x5b9)](),_0x1b355b[_0x4e70a8(0x3ab)]());}class Te extends R['Shape']{constructor(_0x2d31fa,_0x5dc394){const _0x11a860=_0x1100bd;super(_0x2d31fa,_0x5dc394),d(this,_0x11a860(0x32a)),d(this,_0x11a860(0x419)),(this[_0x11a860(0x32a)]=_0x5dc394==null?void 0x0:_0x5dc394[_0x11a860(0x32a)],this[_0x11a860(0x419)]=_0x5dc394==null?void 0x0:_0x5dc394[_0x11a860(0x419)]);}static['drawWith'](_0x388b33,_0x328704){const _0x1f2ee5=_0x1100bd,{text:_0xb3d1f0,color:_0x4d9714}=_0x328704;_0x388b33[_0x1f2ee5(0x47e)](),_0x388b33['font']=_0x1f2ee5(0x441);const _0x5b4d90=_0x388b33[_0x1f2ee5(0x43f)](_0xb3d1f0)['width'],_0x5f101b=Math[_0x1f2ee5(0x36b)](_0x5b4d90+0x2*we,rt);ni(_0x388b33,{'height':ue,'radius':0x4,'width':_0x5f101b,'fill':_0x4d9714,'evented':!0x1}),_0x388b33[_0x1f2ee5(0x1cf)]=_0x1f2ee5(0x49a);const _0x487708=we,_0x27edc3=ue-ii,_0x2d8db5=rt-0x2*we;if(_0x5b4d90>_0x2d8db5){let _0x821dad='',_0x224665=0x0;for(const _0x173cea of _0xb3d1f0){const _0x206b45=_0x388b33[_0x1f2ee5(0x43f)](_0x173cea)[_0x1f2ee5(0x37d)];if(_0x224665+_0x206b45<=_0x2d8db5-_0x388b33['measureText']('...')[_0x1f2ee5(0x37d)])_0x821dad+=_0x173cea,_0x224665+=_0x206b45;else{_0x821dad+=_0x1f2ee5(0x48b);break;}}_0x388b33['fillText'](_0x821dad,_0x487708,_0x27edc3);}else _0x388b33[_0x1f2ee5(0x4c9)](_0xb3d1f0,_0x487708,_0x27edc3);_0x388b33[_0x1f2ee5(0x3ab)]();}[_0x1100bd(0x3c8)](_0xfdca0c){Te['drawWith'](_0xfdca0c,this);}}const Me=_0x1100bd(0x341),ri=_0x1100bd(0x5b3),oi=_0x1100bd(0x299),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x1100bd(0x507);class ot{constructor(_0x13419e,_0x2a3d12,_0x18c2a6,_0x5e3dd5){const _0x414ec1=_0x1100bd;d(this,_0x414ec1(0x2c5),[]),d(this,_0x414ec1(0x574),null),d(this,_0x414ec1(0x334),null),d(this,_0x414ec1(0x455),null),d(this,_0x414ec1(0x38a),null),d(this,'_eventUnsubscribe',null),(this[_0x414ec1(0x1e3)]=_0x13419e,this[_0x414ec1(0x4a3)]=_0x2a3d12,this[_0x414ec1(0x368)]=_0x18c2a6,this[_0x414ec1(0x327)]=_0x5e3dd5,this[_0x414ec1(0x4e1)]());}set['_hover'](_0x707536){const _0x2a820d=_0x1100bd;_0x707536?(this[_0x2a820d(0x455)]&&this[_0x2a820d(0x455)]['hide'](),this[_0x2a820d(0x334)]&&this['_textBubble']['show']()):(this[_0x2a820d(0x455)]&&this['_anchorDot'][_0x2a820d(0x1d9)](),this['_textBubble']&&this[_0x2a820d(0x334)][_0x2a820d(0x387)]());}['dispose'](){const _0x19b940=_0x1100bd;for(const _0x1d60f0 of this[_0x19b940(0x2c5)])_0x1d60f0[_0x19b940(0x3d2)]();this[_0x19b940(0x334)]&&this[_0x19b940(0x334)][_0x19b940(0x3d2)](),this['_anchorDot']&&this[_0x19b940(0x455)]['dispose'](),this[_0x19b940(0x574)]&&this['_anchor'][_0x19b940(0x3d2)](),this[_0x19b940(0x412)]&&this[_0x19b940(0x412)]();}[_0x1100bd(0x4e1)](){const _0x5d4887=_0x1100bd;var _0x1a5ba1;const {_docSkeleton:_0x30d83e,_document:_0x407817}=this,{color:_0x2a48ef,name:_0x18792b,ranges:_0x1646bf}=this[_0x5d4887(0x1e3)],_0x3060b4=_0x407817[_0x5d4887(0x2d5)](),{docsLeft:_0x52970f,docsTop:_0x89db56}=_0x3060b4,_0x42d4c9=new w[(_0x5d4887(0x3ef))](_0x3060b4,_0x30d83e);for(const {startOffset:_0x520b20,endOffset:_0x43f5fb,collapsed:_0x2b36d4,isActive:_0x4859fb}of _0x1646bf){const _0x21098b=_0x30d83e[_0x5d4887(0x5c7)](_0x520b20),_0x43bf31=_0x30d83e[_0x5d4887(0x5c7)](_0x43f5fb);if(_0x4859fb){const {contentBoxPointGroup:_0x23bab7}=_0x42d4c9['getRangePointData'](_0x43bf31,_0x43bf31);if(_0x23bab7['length']===0x0)continue;this[_0x5d4887(0x43b)](_0x2a48ef,_0x23bab7,_0x52970f,_0x89db56,_0x18792b),this[_0x5d4887(0x412)]=this[_0x5d4887(0x2f2)]();}if(!_0x2b36d4&&_0x21098b&&_0x43bf31){if(w[_0x5d4887(0x572)](_0x21098b,_0x43bf31)){const _0x2647c9=new w['NodePositionConvertToRectRange'](_0x3060b4,_0x30d83e),{pointGroup:_0x2ac4e4}=(_0x1a5ba1=_0x2647c9[_0x5d4887(0x53b)](_0x21098b,_0x43bf31))!=null?_0x1a5ba1:{};if(_0x2ac4e4==null||_0x2ac4e4[_0x5d4887(0x46d)]===0x0)continue;this['_drawRectRange'](_0x2a48ef,_0x2ac4e4,_0x52970f,_0x89db56);}else{const {contentBoxPointGroup:_0x2ed598}=_0x42d4c9[_0x5d4887(0x53b)](_0x21098b,_0x43bf31);if(_0x2ed598[_0x5d4887(0x46d)]===0x0)continue;this[_0x5d4887(0x45b)](_0x2a48ef,_0x2ed598,_0x52970f,_0x89db56);}}}}['_drawAnchor'](_0x29b283,_0x245b50,_0x2a4437,_0x1ffcc9,_0xd767b4){const _0x2f651a=_0x1100bd,_0x176c98=this[_0x2f651a(0x514)](_0x245b50),{left:_0x19b6ca,top:_0x9f5b6b,height:_0x57ef69}=_0x176c98,_0x17a698=this[_0x2f651a(0x3d7)](),_0x5d793c=ci/_0x17a698,_0x17abec=new R[(_0x2f651a(0x3c5))](Me+a[_0x2f651a(0x4fb)]['generateRandomId'](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9,'height':_0x57ef69,'width':ai,'fill':_0x29b283||R[_0x2f651a(0x474)](a[_0x2f651a(0x558)][_0x2f651a(0x2fd)],0x0),'strokeWidth':_0x5d793c,'stroke':li,'evented':!0x0});this[_0x2f651a(0x574)]=_0x17abec,this[_0x2f651a(0x4a3)][_0x2f651a(0x500)](_0x17abec,w[_0x2f651a(0x482)]);const _0x3a70f5=new R['Rect'](Me+a[_0x2f651a(0x4fb)][_0x2f651a(0x552)](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x29b283||R[_0x2f651a(0x474)](a[_0x2f651a(0x558)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x29b283||R[_0x2f651a(0x474)](a['COLORS'][_0x2f651a(0x2fd)],0x0),'evented':!0x1});this[_0x2f651a(0x455)]=_0x3a70f5,this[_0x2f651a(0x4a3)][_0x2f651a(0x500)](_0x3a70f5,w[_0x2f651a(0x482)]);const _0x2aad7d=new Te(Me+a['Tools'][_0x2f651a(0x552)](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9-ue,'text':_0xd767b4,'color':_0x29b283});this[_0x2f651a(0x334)]=_0x2aad7d,this['_scene'][_0x2f651a(0x500)](_0x2aad7d,w['TEXT_RANGE_LAYER_INDEX']),this[_0x2f651a(0x4b9)]=!0x1;}['_handleHover'](){const _0x5cee7d=_0x1100bd,_0x4e2476=this[_0x5cee7d(0x574)][_0x5cee7d(0x25c)][_0x5cee7d(0x202)](()=>{const _0x45efd=_0x5cee7d;this[_0x45efd(0x4b9)]=!0x0;}),_0x529d33=this[_0x5cee7d(0x574)]['onPointerLeave$'][_0x5cee7d(0x202)](()=>{const _0x1882dd=_0x5cee7d;this[_0x1882dd(0x38a)]&&clearTimeout(this[_0x1882dd(0x38a)]),this[_0x1882dd(0x38a)]=setTimeout(()=>{const _0x234227=_0x1882dd;this[_0x234227(0x4b9)]=!0x1;},0x7d0);});return()=>{const _0x296c09=_0x5cee7d;_0x4e2476[_0x296c09(0x595)](),_0x529d33[_0x296c09(0x595)]();};}[_0x1100bd(0x45b)](_0x1dc304,_0x2a85aa,_0x312cae,_0x111190){const _0x5d2d65=_0x1100bd,_0x526bca=new a[(_0x5d2d65(0x30c))](_0x1dc304)['setAlpha'](0.2)[_0x5d2d65(0x22e)](),_0x5c635a=new R[(_0x5d2d65(0x3c7))](ri+a[_0x5d2d65(0x4fb)][_0x5d2d65(0x552)](ce),{'pointsGroup':_0x2a85aa,'fill':_0x526bca||R[_0x5d2d65(0x474)](a['COLORS']['black'],0.2),'left':_0x312cae,'top':_0x111190,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5d2d65(0x2c5)]['push'](_0x5c635a),this['_scene'][_0x5d2d65(0x500)](_0x5c635a,w['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x27e471,_0x401289,_0x55d48a,_0x23bf98){const _0x586bf8=_0x1100bd,_0x5cfc2c=new a[(_0x586bf8(0x30c))](_0x27e471)[_0x586bf8(0x415)](0.2)['toRgbString'](),_0x126af0=new R[(_0x586bf8(0x3c7))](oi+a[_0x586bf8(0x4fb)][_0x586bf8(0x552)](ce),{'pointsGroup':_0x401289,'fill':_0x5cfc2c||R[_0x586bf8(0x474)](a[_0x586bf8(0x558)][_0x586bf8(0x2fd)],0.2),'left':_0x55d48a,'top':_0x23bf98,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x586bf8(0x2c5)]['push'](_0x126af0),this[_0x586bf8(0x4a3)]['addObject'](_0x126af0,w[_0x586bf8(0x482)]);}[_0x1100bd(0x514)](_0x499f4b){const _0x33bd9b=_0x499f4b[0x0],_0x3e2d84=_0x33bd9b[0x0],_0x58754f=_0x33bd9b[0x2],{x:_0x49d483,y:_0x2f9009}=_0x3e2d84,{x:_0x34a424,y:_0x5a8cfb}=_0x58754f;return{'left':_0x49d483,'top':_0x2f9009,'width':_0x34a424-_0x49d483,'height':_0x5a8cfb-_0x2f9009};}[_0x1100bd(0x3d7)](){const _0x27eb51=_0x1100bd,{scaleX:_0x2dde12,scaleY:_0x2cd8a8}=this['_scene'][_0x27eb51(0x4e3)]();return Math[_0x27eb51(0x212)](_0x2dde12,_0x2cd8a8);}}var hi=Object[_0x1100bd(0x4ed)],_i=Object[_0x1100bd(0x444)],ui=(_0x4b21ac,_0x5826ca,_0x3a8dc2,_0x2b9cb9)=>{for(var _0x39139b=_0x2b9cb9>0x1?void 0x0:_0x2b9cb9?_i(_0x5826ca,_0x3a8dc2):_0x5826ca,_0x4768bd=_0x4b21ac['length']-0x1,_0x350fe5;_0x4768bd>=0x0;_0x4768bd--)(_0x350fe5=_0x4b21ac[_0x4768bd])&&(_0x39139b=(_0x2b9cb9?_0x350fe5(_0x5826ca,_0x3a8dc2,_0x39139b):_0x350fe5(_0x39139b))||_0x39139b);return _0x2b9cb9&&_0x39139b&&hi(_0x5826ca,_0x3a8dc2,_0x39139b),_0x39139b;},de=(_0x48669d,_0x5915a9)=>(_0x384fa1,_0x32dce5)=>_0x5915a9(_0x384fa1,_0x32dce5,_0x48669d);let xe=class extends a[_0x1100bd(0x1c7)]{constructor(_0x3d57d4,_0x647a5a,_0x3c7cce,_0x5c15af,_0x2103d7){const _0x4c914d=_0x1100bd;super(),d(this,_0x4c914d(0x596),[]),d(this,'_cursors',[]),(this[_0x4c914d(0x2c2)]=_0x3d57d4,this[_0x4c914d(0x3c0)]=_0x647a5a,this[_0x4c914d(0x471)]=_0x3c7cce,this['_commandService']=_0x5c15af,this[_0x4c914d(0x1b5)]=_0x2103d7,this[_0x4c914d(0x4a0)]());}[_0x1100bd(0x4a0)](){const _0x456053=_0x1100bd,_0x295e13=this[_0x456053(0x2c2)]['unitId'],_0x274988=this[_0x456053(0x3c0)];this[_0x456053(0x40b)](v[_0x456053(0x56c)]([this['_collabCursorController'][_0x456053(0x271)](_0x295e13),this[_0x456053(0x1b5)][_0x456053(0x2d8)]])['pipe'](E[_0x456053(0x4c4)](([_0x43f5fa,_0x228315])=>({'skeleton':_0x274988[_0x456053(0x4da)](),'cursors':[..._0x43f5fa[_0x456053(0x315)]()][_0x456053(0x1fa)](_0x115e12=>({..._0x115e12,'color':_0x228315[_0x115e12['color']]}))})))['subscribe'](_0x5173d6=>{const _0x2e3055=_0x456053;if(this[_0x2e3055(0x1c2)](),_0x5173d6){const {skeleton:_0x2445db,cursors:_0x1b9dba}=_0x5173d6;this[_0x2e3055(0x4d4)](_0x2445db,_0x1b9dba);}})),this[_0x456053(0x58b)](),this[_0x456053(0x1c5)]();}['_updateCollabCursors'](_0x7c01a8,_0x1e7664){const _0x4785c7=_0x1100bd,{scene:_0x10768e,mainComponent:_0x5cc882}=this[_0x4785c7(0x2c2)],_0x214ab6=_0x1e7664['map'](_0x51625a=>new ot(_0x51625a,_0x10768e,_0x7c01a8,_0x5cc882));this[_0x4785c7(0x596)]=_0x214ab6,this[_0x4785c7(0x2a2)]=_0x1e7664;}['_refreshCollabCursors'](){const _0x5b5ef5=_0x1100bd;this[_0x5b5ef5(0x1c2)]();const {scene:_0x1d6c9e,mainComponent:_0x53b148}=this[_0x5b5ef5(0x2c2)],_0x2099d0=this[_0x5b5ef5(0x3c0)][_0x5b5ef5(0x4da)](),_0x527183=this[_0x5b5ef5(0x2a2)][_0x5b5ef5(0x4c4)](_0x159e4e=>new ot(_0x159e4e,_0x1d6c9e,_0x2099d0,_0x53b148));this[_0x5b5ef5(0x596)]=_0x527183;}[_0x1100bd(0x1c2)](){const _0x521b65=_0x1100bd;this[_0x521b65(0x596)][_0x521b65(0x2be)](_0x6db467=>_0x6db467[_0x521b65(0x3d2)]()),this[_0x521b65(0x596)]=[];}[_0x1100bd(0x1c5)](){const _0x23a27d=_0x1100bd,_0x18b62f=[w[_0x23a27d(0x58a)]['id']];this[_0x23a27d(0x40b)](this[_0x23a27d(0x53a)][_0x23a27d(0x231)](_0x2313b0=>{const _0x31a3dd=_0x23a27d;_0x18b62f[_0x31a3dd(0x360)](_0x2313b0['id'])&&_0x2313b0[_0x31a3dd(0x24d)][_0x31a3dd(0x1d1)]===this[_0x31a3dd(0x2c2)][_0x31a3dd(0x1d1)]&&this['_refreshCollabCursors']();}));}[_0x1100bd(0x58b)](){const _0x3b6104=_0x1100bd;this[_0x3b6104(0x40b)](a['fromEventSubject'](this[_0x3b6104(0x2c2)]['engine'][_0x3b6104(0x437)])['pipe'](E[_0x3b6104(0x495)](_0x329c64=>_0x329c64[_0x3b6104(0x525)]===R[_0x3b6104(0x521)][_0x3b6104(0x41d)]),E[_0x3b6104(0x2a0)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};xe=ui([de(0x1,a[_0x1100bd(0x583)](V[_0x1100bd(0x2f6)])),de(0x2,a[_0x1100bd(0x583)](ie)),de(0x3,a[_0x1100bd(0x505)]),de(0x4,a[_0x1100bd(0x583)](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x1100bd(0x1fb)]{constructor(_0x2255d3,_0x3b2413){const _0x5774ad=_0x1100bd;super(_0x2255d3,_0x3b2413),d(this,_0x5774ad(0x4be)),d(this,_0x5774ad(0x3d5),!0x1),d(this,_0x5774ad(0x487)),d(this,_0x5774ad(0x369),''),d(this,_0x5774ad(0x4a6),_0x5774ad(0x503)),d(this,'_backgroundColor'),(_0x3b2413&&this[_0x5774ad(0x3bf)](_0x3b2413),this[_0x5774ad(0x25c)][_0x5774ad(0x202)](()=>this[_0x5774ad(0x3bf)]({'hovered':!0x0})),this[_0x5774ad(0x308)]['subscribeEvent'](()=>this[_0x5774ad(0x3bf)]({'hovered':!0x1})));}[_0x1100bd(0x3bf)](_0x30828d){const _0x3b40bd=_0x1100bd;var _0x531e84,_0x327ba1,_0x1ee149,_0x5cbe75,_0x555529,_0x31aaad;this['_color']=(_0x531e84=_0x30828d['color'])!=null?_0x531e84:this['_color'],this[_0x3b40bd(0x3d5)]=(_0x327ba1=_0x30828d['hovered'])!=null?_0x327ba1:this[_0x3b40bd(0x3d5)],this[_0x3b40bd(0x487)]=(_0x1ee149=_0x30828d[_0x3b40bd(0x528)])!=null?_0x1ee149:this[_0x3b40bd(0x487)],this['_name']=(_0x5cbe75=_0x30828d[_0x3b40bd(0x38f)])!=null?_0x5cbe75:this[_0x3b40bd(0x369)],this['_labelPosition']=(_0x555529=_0x30828d['labelPosition'])!=null?_0x555529:this[_0x3b40bd(0x4a6)],this[_0x3b40bd(0x295)]=(_0x31aaad=_0x30828d['backgroundColor'])!=null?_0x31aaad:this[_0x3b40bd(0x295)],this[_0x3b40bd(0x280)]({'width':_0x30828d[_0x3b40bd(0x37d)],'height':_0x30828d['height']});}[_0x1100bd(0x232)](_0x39d5cf){const _0x4e2bc8=_0x1100bd,{row:_0x19685e,column:_0x56c6e2}=_0x39d5cf;if(_0x19685e>=this[_0x4e2bc8(0x487)][_0x4e2bc8(0x279)]&&_0x19685e<=this['_range'][_0x4e2bc8(0x49d)]&&_0x56c6e2>=this[_0x4e2bc8(0x487)]['startColumn']&&_0x56c6e2<=this[_0x4e2bc8(0x487)][_0x4e2bc8(0x591)]){this[_0x4e2bc8(0x3bf)]({'hovered':!0x0});return;}this[_0x4e2bc8(0x3bf)]({'hovered':!0x1});}[_0x1100bd(0x1f0)](_0x493249){return!0x1;}[_0x1100bd(0x3c8)](_0x345414){const _0x5d3b82=_0x1100bd;R[_0x5d3b82(0x3c5)][_0x5d3b82(0x2f7)](_0x345414,{'width':this['width'],'height':this[_0x5d3b82(0x1bb)],'strokeWidth':Si,'stroke':this[_0x5d3b82(0x4be)],'evented':!0x1,'fill':this[_0x5d3b82(0x295)]}),this[_0x5d3b82(0x3d5)]&&(_0x345414['save'](),_0x345414['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5d3b82(0x1e9)?0x0:-ue),Te[_0x5d3b82(0x2f7)](_0x345414,{'text':this[_0x5d3b82(0x369)],'color':this[_0x5d3b82(0x4be)]}),_0x345414[_0x5d3b82(0x3ab)]());}}var vi=Object[_0x1100bd(0x4ed)],fi=Object[_0x1100bd(0x444)],gi=(_0x8bb7ec,_0x354539,_0x3f3ed3,_0x1ff44d)=>{for(var _0x142853=_0x1ff44d>0x1?void 0x0:_0x1ff44d?fi(_0x354539,_0x3f3ed3):_0x354539,_0x5dd140=_0x8bb7ec['length']-0x1,_0x2b201d;_0x5dd140>=0x0;_0x5dd140--)(_0x2b201d=_0x8bb7ec[_0x5dd140])&&(_0x142853=(_0x1ff44d?_0x2b201d(_0x354539,_0x3f3ed3,_0x142853):_0x2b201d(_0x142853))||_0x142853);return _0x1ff44d&&_0x142853&&vi(_0x354539,_0x3f3ed3,_0x142853),_0x142853;},Ae=(_0x45482b,_0x232aa8)=>(_0x57479b,_0x454e0c)=>_0x232aa8(_0x57479b,_0x454e0c,_0x45482b);const mi=0x1389;let ke=class extends a[_0x1100bd(0x1c7)]{constructor(_0x19b9ab,_0x41c869,_0x524726,_0xd93ea){const _0x2047a6=_0x1100bd;super(),d(this,_0x2047a6(0x2a2),new Set()),d(this,_0x2047a6(0x3a0),null),(this[_0x2047a6(0x2c2)]=_0x19b9ab,this['_sheetSkeletonManagerService']=_0x41c869,this[_0x2047a6(0x471)]=_0x524726,this[_0x2047a6(0x1b5)]=_0xd93ea,this[_0x2047a6(0x4a0)]());}[_0x1100bd(0x4a0)](){const _0xccefe2=_0x1100bd;this[_0xccefe2(0x1eb)][_0xccefe2(0x20a)][_0xccefe2(0x32e)](E[_0xccefe2(0x23f)](this[_0xccefe2(0x551)]),E[_0xccefe2(0x35f)](_0x592cb3=>{const _0x405113=_0xccefe2;if(_0x592cb3){const _0x3d528b=_0x592cb3['sheetId'];return v[_0x405113(0x56c)](this[_0x405113(0x471)][_0x405113(0x271)](this['_context'][_0x405113(0x1d1)]),this[_0x405113(0x1b5)][_0x405113(0x2d8)])[_0x405113(0x32e)](E[_0x405113(0x4c4)](([_0x532c2e,_0x148fc2])=>{const _0x5a3b8f=_0x405113,_0x58fa71=new Map();return _0x532c2e[_0x5a3b8f(0x2be)]((_0x5853b0,_0x34fce)=>{const _0x409052=_0x5a3b8f;if(_0x5853b0[_0x409052(0x306)]===_0x3d528b){const _0x5101d6={..._0x5853b0};_0x5101d6[_0x409052(0x32a)]=_0x148fc2[_0x5853b0['color']],_0x58fa71[_0x409052(0x57e)](_0x34fce,_0x5101d6);}}),{'skeleton':_0x592cb3,'cursors':_0x58fa71};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1bf2fe,cursors:_0x260cf2})=>{const _0x1dd25f=_0xccefe2;this[_0x1dd25f(0x1c2)](),_0x1bf2fe&&this[_0x1dd25f(0x4d4)](_0x1bf2fe,_0x260cf2);}),this[_0xccefe2(0x1eb)][_0xccefe2(0x20a)][_0xccefe2(0x1f3)](_0x543963=>{const _0xc979a2=_0xccefe2;if(_0x543963==null)return;const {skeleton:_0x14ff5e}=_0x543963,{scene:_0x3196e9}=this[_0xc979a2(0x2c2)];_0x3196e9[_0xc979a2(0x385)][_0xc979a2(0x202)](a[_0xc979a2(0x2ec)](_0x2ada08=>{const _0x3719a3=_0xc979a2;var _0x46784f,_0x273c1f;const {offsetX:_0x8a1ba4,offsetY:_0x355ec8}=_0x2ada08,{x:_0x41d821,y:_0x304779}=_0x3196e9[_0x3719a3(0x1ec)](R['Vector2'][_0x3719a3(0x41c)]([_0x8a1ba4,_0x355ec8])),{scaleX:_0x4a5d89,scaleY:_0x4b13fe}=_0x3196e9[_0x3719a3(0x4e3)](),_0x1a585e=_0x3196e9[_0x3719a3(0x49f)](te[_0x3719a3(0x371)][_0x3719a3(0x4b0)]),_0xf13ead=_0x3196e9[_0x3719a3(0x220)](R[_0x3719a3(0x488)][_0x3719a3(0x41c)]([_0x41d821,_0x304779]),_0x1a585e),_0x298d68=_0x14ff5e['getCellPositionByOffset'](_0x8a1ba4,_0x355ec8,_0x4a5d89,_0x4b13fe,_0xf13ead);((_0x46784f=this[_0x3719a3(0x3a0)])==null?void 0x0:_0x46784f[_0x3719a3(0x1f6)])===_0x298d68['column']&&((_0x273c1f=this[_0x3719a3(0x3a0)])==null?void 0x0:_0x273c1f['row'])===_0x298d68['row']||this[_0x3719a3(0x2a2)][_0x3719a3(0x2be)](_0xc99b00=>{const _0x2e3a70=_0x3719a3;_0xc99b00[_0x2e3a70(0x232)](_0x298d68);});},0x64));});}[_0x1100bd(0x4d4)](_0x39c77f,_0x177824){const _0x2a5056=_0x1100bd;var _0x31dfb0;const _0x32e5a6=(_0x31dfb0=this[_0x2a5056(0x1eb)][_0x2a5056(0x2c3)]())==null?void 0x0:_0x31dfb0[_0x2a5056(0x2cc)];if(!_0x32e5a6)return;const _0x5251d0=this[_0x2a5056(0x221)]();if(!_0x5251d0)return;this[_0x2a5056(0x2a2)][_0x2a5056(0x2be)](_0x3cf64c=>{const _0x3a3834=_0x2a5056;_0x3cf64c[_0x3a3834(0x553)]();});const {scene:_0x3ea911}=_0x5251d0,_0x29f325=Ii(Array[_0x2a5056(0x2c0)](_0x177824[_0x2a5056(0x315)]()))['map'](_0x49875a=>{const _0x31a3fb=_0x2a5056,{color:_0x180c51,range:_0x307db3,name:_0xeb76ed,selection:_0x53cff0,sheetID:_0xf87dd1}=_0x49875a,{startColumn:_0x768b49,startRow:_0x3ed2e8,endColumn:_0x1abb2d,endRow:_0x54686b}=_0x307db3,_0x3557d2=te[_0x31a3fb(0x2db)](_0x3ed2e8,_0x768b49,_0x3ea911,_0x32e5a6),_0x3b3e7f=te['getCoordByCell'](_0x54686b,_0x1abb2d,_0x3ea911,_0x32e5a6),{columnHeaderHeightAndMarginTop:_0x12b006}=_0x32e5a6,{startX:_0x201956,startY:_0x8209fa}=_0x3557d2,{endX:_0x1ae6fc,endY:_0x24bf9b}=_0x3b3e7f,_0x67e3c2=_0x1ae6fc-_0x201956,_0x501ec6=_0x24bf9b-_0x8209fa,_0x5b87f7={'labelPosition':_0x8209fa-_0x12b006>=ue?_0x31a3fb(0x503):_0x31a3fb(0x1e9),'sheetID':_0xf87dd1,'range':_0x307db3,'color':_0x180c51,'name':_0xeb76ed,'selection':_0x53cff0,'left':_0x201956,'top':_0x8209fa,'width':_0x67e3c2,'height':_0x501ec6,'evented':!0x1,'zIndex':mi};return new Ot(_0xeb76ed,_0x5b87f7);});_0x3ea911[_0x2a5056(0x55e)](_0x29f325,di),this['_cursors']=new Set(_0x29f325);}['_removeCollabCursors'](){const _0x3fddaa=_0x1100bd;var _0x475924;(_0x475924=this['_cursors'])==null||_0x475924['forEach'](_0xbc20=>_0xbc20[_0x3fddaa(0x3d2)]());}[_0x1100bd(0x221)](){const _0x584bde=_0x1100bd;return te[_0x584bde(0x253)](this[_0x584bde(0x2c2)]['unit'],this[_0x584bde(0x2c2)]);}};ke=gi([Ae(0x1,a[_0x1100bd(0x583)](te[_0x1100bd(0x344)])),Ae(0x2,a[_0x1100bd(0x583)](ie)),Ae(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x5b6)]))],ke);function Ii(_0x724f0){const _0x2703c8=_0x1100bd,_0x3cd546=new Map();return _0x724f0[_0x2703c8(0x2be)](_0x8b18ee=>{const _0x204b44=_0x2703c8;if(_0x3cd546['has'](_0x8b18ee[_0x204b44(0x2d4)])){const _0x29cf17=_0x3cd546[_0x204b44(0x1f4)](_0x8b18ee['selection']);_0x29cf17['name']+=',\x20'+_0x8b18ee[_0x204b44(0x38f)];}else _0x3cd546['set'](_0x8b18ee[_0x204b44(0x2d4)],_0x8b18ee);}),Array[_0x2703c8(0x2c0)](_0x3cd546[_0x2703c8(0x315)]());}var M=function(){const _0x1c9690=_0x1100bd;return M=Object[_0x1c9690(0x45a)]||function(_0x4d5ee1){const _0x58648c=_0x1c9690;for(var _0x234044,_0x3e862b=0x1,_0x50ec08=arguments[_0x58648c(0x46d)];_0x3e862b<_0x50ec08;_0x3e862b++){_0x234044=arguments[_0x3e862b];for(var _0x4746bf in _0x234044)Object['prototype'][_0x58648c(0x468)][_0x58648c(0x28c)](_0x234044,_0x4746bf)&&(_0x4d5ee1[_0x4746bf]=_0x234044[_0x4746bf]);}return _0x4d5ee1;},M[_0x1c9690(0x4f7)](this,arguments);},pi=function(_0x4635c6,_0x4433bf){const _0x377475=_0x1100bd;var _0x1bbd75={};for(var _0x6f81ce in _0x4635c6)Object[_0x377475(0x52f)][_0x377475(0x468)]['call'](_0x4635c6,_0x6f81ce)&&_0x4433bf[_0x377475(0x491)](_0x6f81ce)<0x0&&(_0x1bbd75[_0x6f81ce]=_0x4635c6[_0x6f81ce]);if(_0x4635c6!=null&&typeof Object[_0x377475(0x2ac)]=='function'){for(var _0x330111=0x0,_0x6f81ce=Object['getOwnPropertySymbols'](_0x4635c6);_0x330111<_0x6f81ce[_0x377475(0x46d)];_0x330111++)_0x4433bf[_0x377475(0x491)](_0x6f81ce[_0x330111])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x377475(0x28c)](_0x4635c6,_0x6f81ce[_0x330111])&&(_0x1bbd75[_0x6f81ce[_0x330111]]=_0x4635c6[_0x6f81ce[_0x330111]]);}return _0x1bbd75;},qe=U['forwardRef'](function(_0x24fbd4,_0x434180){const _0xbd0db9=_0x1100bd;var _0x2855aa=_0x24fbd4[_0xbd0db9(0x3b6)],_0x45001a=_0x24fbd4['id'],_0xf024b6=_0x24fbd4[_0xbd0db9(0x2e6)],_0x1ec45f=_0x24fbd4[_0xbd0db9(0x30e)],_0xa0e4bf=pi(_0x24fbd4,[_0xbd0db9(0x3b6),'id',_0xbd0db9(0x2e6),'extend']),_0x1c3d5b=_0xbd0db9(0x2bb)[_0xbd0db9(0x486)](_0x45001a,'\x20')['concat'](_0xf024b6||'')[_0xbd0db9(0x273)](),_0x1fca53=U[_0xbd0db9(0x402)]('_'['concat'](bi()));return Dt(_0x2855aa,''['concat'](_0x45001a),{'defIds':_0x2855aa[_0xbd0db9(0x4af)],'idSuffix':_0x1fca53[_0xbd0db9(0x501)]},M({'ref':_0x434180,'className':_0x1c3d5b},_0xa0e4bf),_0x1ec45f);});function Dt(_0x1011d8,_0xaf868c,_0x256270,_0x489f42,_0x369a73){const _0x266b87=_0x1100bd;return U['createElement'](_0x1011d8[_0x266b87(0x277)],M(M({'key':_0xaf868c},Ci(_0x1011d8,_0x256270,_0x369a73)),_0x489f42),(Ei(_0x1011d8,_0x256270)[_0x266b87(0x205)]||[])[_0x266b87(0x4c4)](function(_0x1ebd8b,_0x1545ca){const _0x4b2dc6=_0x266b87;return Dt(_0x1ebd8b,''['concat'](_0xaf868c,'-')['concat'](_0x1011d8[_0x4b2dc6(0x277)],'-')[_0x4b2dc6(0x486)](_0x1545ca),_0x256270,void 0x0,_0x369a73);}));}function Ci(_0xf7a023,_0x1478a4,_0x3a4638){const _0x396260=_0x1100bd;var _0x5833ed=M({},_0xf7a023['attrs']);_0x3a4638!=null&&_0x3a4638['colorChannel1']&&_0x5833ed[_0x396260(0x5b9)]===_0x396260(0x4d0)&&(_0x5833ed[_0x396260(0x5b9)]=_0x3a4638[_0x396260(0x4d0)]);var _0x54fa6a=_0x1478a4[_0x396260(0x4af)];return!_0x54fa6a||_0x54fa6a['length']===0x0||(_0xf7a023['tag']==='use'&&_0x5833ed[_0x396260(0x1bf)]&&(_0x5833ed['xlink:href']=_0x5833ed[_0x396260(0x1bf)]+_0x1478a4[_0x396260(0x416)]),Object[_0x396260(0x208)](_0x5833ed)[_0x396260(0x2be)](function(_0x5b138f){const _0x420cb3=_0x396260;var _0x1d92e5=_0x5b138f[0x0],_0x3aa45d=_0x5b138f[0x1];typeof _0x3aa45d==_0x420cb3(0x54c)&&(_0x5833ed[_0x1d92e5]=_0x3aa45d['replace'](/url\(#(.*)\)/,_0x420cb3(0x57f)[_0x420cb3(0x486)](_0x1478a4[_0x420cb3(0x416)],')')));})),_0x5833ed;}function Ei(_0x21d633,_0x4dda7b){const _0x2c150d=_0x1100bd;var _0x5ba466,_0x4467ef=_0x4dda7b['defIds'];return!_0x4467ef||_0x4467ef[_0x2c150d(0x46d)]===0x0?_0x21d633:_0x21d633[_0x2c150d(0x277)]===_0x2c150d(0x23d)&&(!((_0x5ba466=_0x21d633['children'])===null||_0x5ba466===void 0x0)&&_0x5ba466[_0x2c150d(0x46d)])?M(M({},_0x21d633),{'children':_0x21d633[_0x2c150d(0x205)][_0x2c150d(0x4c4)](function(_0x20fbd5){const _0x6e52ad=_0x2c150d;return typeof _0x20fbd5[_0x6e52ad(0x2dd)]['id']=='string'&&_0x4467ef&&_0x4467ef[_0x6e52ad(0x491)](_0x20fbd5[_0x6e52ad(0x2dd)]['id'])>-0x1?M(M({},_0x20fbd5),{'attrs':M(M({},_0x20fbd5[_0x6e52ad(0x2dd)]),{'id':_0x20fbd5['attrs']['id']+_0x4dda7b[_0x6e52ad(0x416)]})}):_0x20fbd5;})}):_0x21d633;}function bi(){const _0x3e772a=_0x1100bd;return Math['random']()[_0x3e772a(0x431)](0x24)[_0x3e772a(0x506)](0x2,0x8);}qe[_0x1100bd(0x430)]=_0x1100bd(0x219);var Ti={'tag':_0x1100bd(0x2e8),'attrs':{'fill':_0x1100bd(0x210),'viewBox':_0x1100bd(0x2ba),'width':_0x1100bd(0x450),'height':_0x1100bd(0x450)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','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':_0x1100bd(0x593),'strokeLinejoin':_0x1100bd(0x593),'strokeWidth':1.2}}]},{'tag':_0x1100bd(0x23d),'attrs':{},'children':[{'tag':_0x1100bd(0x4ff),'attrs':{'id':_0x1100bd(0x386)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'fill':_0x1100bd(0x5a7),'d':_0x1100bd(0x39e)}}]}]}],'defIds':[_0x1100bd(0x386)]},yt=U[_0x1100bd(0x467)](function(_0x36d226,_0x49b08c){const _0x25f4ae=_0x1100bd;return U[_0x25f4ae(0x37f)](qe,Object[_0x25f4ae(0x45a)]({},_0x36d226,{'id':_0x25f4ae(0x1db),'ref':_0x49b08c,'icon':Ti}));});yt[_0x1100bd(0x430)]=_0x1100bd(0x41e);var Ri={'tag':_0x1100bd(0x2e8),'attrs':{'fill':_0x1100bd(0x210),'viewBox':_0x1100bd(0x310),'width':_0x1100bd(0x450),'height':_0x1100bd(0x450)},'children':[{'tag':'g','attrs':{'clipPath':_0x1100bd(0x3a9)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'stroke':'currentColor','d':_0x1100bd(0x260),'strokeLinecap':_0x1100bd(0x593),'strokeLinejoin':_0x1100bd(0x593),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1100bd(0x4ff),'attrs':{'id':_0x1100bd(0x309)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'fill':_0x1100bd(0x5a7),'d':_0x1100bd(0x39e),'transform':_0x1100bd(0x25e)}}]}]}],'defIds':[_0x1100bd(0x309)]},Ut=U[_0x1100bd(0x467)](function(_0x2294c1,_0x447ca7){const _0x4eda80=_0x1100bd;return U[_0x4eda80(0x37f)](qe,Object[_0x4eda80(0x45a)]({},_0x2294c1,{'id':_0x4eda80(0x400),'ref':_0x447ca7,'icon':Ri}));});Ut[_0x1100bd(0x430)]=_0x1100bd(0x3a8);function Pt(_0x498266){const _0x4c6839=_0x1100bd;var _0x4a4c3d,_0xe003d0,_0x22d5f1='';if(typeof _0x498266==_0x4c6839(0x54c)||typeof _0x498266==_0x4c6839(0x557))_0x22d5f1+=_0x498266;else{if(typeof _0x498266==_0x4c6839(0x373)){if(Array[_0x4c6839(0x57c)](_0x498266)){var _0x335e87=_0x498266['length'];for(_0x4a4c3d=0x0;_0x4a4c3d<_0x335e87;_0x4a4c3d++)_0x498266[_0x4a4c3d]&&(_0xe003d0=Pt(_0x498266[_0x4a4c3d]))&&(_0x22d5f1&&(_0x22d5f1+='\x20'),_0x22d5f1+=_0xe003d0);}else{for(_0xe003d0 in _0x498266)_0x498266[_0xe003d0]&&(_0x22d5f1&&(_0x22d5f1+='\x20'),_0x22d5f1+=_0xe003d0);}}}return _0x22d5f1;}function Oi(){const _0x543abc=_0x1100bd;for(var _0x298dae,_0x4f27c0,_0x232b9f=0x0,_0x267599='',_0x5be471=arguments[_0x543abc(0x46d)];_0x232b9f<_0x5be471;_0x232b9f++)(_0x298dae=arguments[_0x232b9f])&&(_0x4f27c0=Pt(_0x298dae))&&(_0x267599&&(_0x267599+='\x20'),_0x267599+=_0x4f27c0);return _0x267599;}const Di=_0x1100bd(0x29d),yi='univer-online-status-title',Ui='univer-online-status',Pi=_0x1100bd(0x59d),wi=_0x1100bd(0x4ce),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0xd91d91){const _0x30c097=_0x1100bd;switch(_0xd91d91){case y[_0x30c097(0x4ad)]:return _0x30c097(0x2fe);case y['CONFLICT']:return _0x30c097(0x522);case y[_0x30c097(0x21b)]:return _0x30c097(0x3e8);case y[_0x30c097(0x2a7)]:return'collabStatus.notCollab';case y[_0x30c097(0x264)]:case y[_0x30c097(0x5bc)]:case y[_0x30c097(0x283)]:return _0x30c097(0x56e);case y['SYNCED']:return _0x30c097(0x464);}}function wt(_0x36c05b){const _0x5bb3ff=_0x1100bd,{status$:_0x4449a2}=_0x36c05b,_0x2ab67a=N[_0x5bb3ff(0x4c5)](_0x4449a2,y[_0x5bb3ff(0x2a7)]),_0x468632=a[_0x5bb3ff(0x215)](a[_0x5bb3ff(0x497)]),_0xe8a46a=a['useDependency'](exports[_0x5bb3ff(0x532)]),_0x239823=_0x2ab67a!==y['OFFLINE'],_0x25dc86=_0x468632['t'](Mi(_0x2ab67a)),_0x26d70a=Oi(le[_0x5bb3ff(0x435)],{[le['online']]:_0x239823,[le[_0x5bb3ff(0x322)]]:!_0x239823}),_0x475a6a=_0x239823?U['createElement'](Ut,null):U[_0x5bb3ff(0x37f)](yt,null),_0x357f28=U['useCallback'](()=>{const _0x4044a0=_0x5bb3ff;_0x239823||_0xe8a46a[_0x4044a0(0x1e7)]();},[_0x239823,_0xe8a46a]);function _0x5e08c0(){const _0x15e5fe=_0x5bb3ff;return U['createElement'](_0x15e5fe(0x494),{'className':_0x26d70a,'onClick':_0x357f28},U['createElement'](_0x15e5fe(0x494),{'className':le[_0x15e5fe(0x251)]},_0x475a6a),U[_0x15e5fe(0x37f)]('div',{'className':le['onlineStatusTitle']},_0x25dc86));}return _0x239823?_0x5e08c0():U[_0x5bb3ff(0x37f)](X[_0x5bb3ff(0x259)],{'title':_0x468632['t'](_0x5bb3ff(0x555))},_0x5e08c0());}var Ni=Object['defineProperty'],Ai=Object[_0x1100bd(0x444)],Li=(_0x1fd78f,_0x54d281,_0x57a712,_0x2e3c76)=>{const _0x1f4b63=_0x1100bd;for(var _0x370832=_0x2e3c76>0x1?void 0x0:_0x2e3c76?Ai(_0x54d281,_0x57a712):_0x54d281,_0x475807=_0x1fd78f[_0x1f4b63(0x46d)]-0x1,_0x545e35;_0x475807>=0x0;_0x475807--)(_0x545e35=_0x1fd78f[_0x475807])&&(_0x370832=(_0x2e3c76?_0x545e35(_0x54d281,_0x57a712,_0x370832):_0x545e35(_0x370832))||_0x370832);return _0x2e3c76&&_0x370832&&Ni(_0x54d281,_0x57a712,_0x370832),_0x370832;},Se=(_0x3f10fc,_0x8869f0)=>(_0x315fd1,_0x22e991)=>_0x8869f0(_0x315fd1,_0x22e991,_0x3f10fc);exports[_0x1100bd(0x3d3)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x149c47,_0xef6ee,_0x20bb75,_0x445c74){const _0xba75c2=_0x1100bd;super(),d(this,_0xba75c2(0x458),new v['BehaviorSubject'](y['NOT_COLLAB'])),(this[_0xba75c2(0x56b)]=_0x149c47,this['_uiPartsService']=_0xef6ee,this[_0xba75c2(0x1d8)]=_0x20bb75,this['_collaborationController']=_0x445c74,this[_0xba75c2(0x362)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x10ef4e=_0x1100bd;this['disposeWithMe'](this[_0x10ef4e(0x56b)][_0x10ef4e(0x378)][_0x10ef4e(0x32e)](v['switchMap'](()=>{const _0x258ce8=_0x10ef4e,_0x17fe6f=this[_0x258ce8(0x56b)][_0x258ce8(0x31d)]();return _0x17fe6f?this['_collaborationController'][_0x258ce8(0x223)](_0x17fe6f[_0x258ce8(0x401)]()):v['of'](null);}),v[_0x10ef4e(0x35f)](_0x714a65=>_0x714a65?_0x714a65[_0x10ef4e(0x284)]:v['of'](y[_0x10ef4e(0x2a7)])))[_0x10ef4e(0x1f3)](_0x128cc6=>{const _0x3f47fd=_0x10ef4e;this[_0x3f47fd(0x458)][_0x3f47fd(0x496)](_0x128cc6);}));}['_initStatusComponent'](){const _0x3da64c=_0x1100bd;this[_0x3da64c(0x40b)](this[_0x3da64c(0x336)]['registerComponent'](N['BuiltInUIPart'][_0x3da64c(0x41f)],()=>a[_0x3da64c(0x244)](ji({'status$':this[_0x3da64c(0x458)]['asObservable']()}),this[_0x3da64c(0x1d8)])));}},exports[_0x1100bd(0x3d3)]=Li([Se(0x0,a[_0x1100bd(0x472)]),Se(0x1,N[_0x1100bd(0x1d0)]),Se(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),Se(0x3,a[_0x1100bd(0x583)](exports[_0x1100bd(0x38c)]))],exports[_0x1100bd(0x3d3)]);function ji(_0x30ad6e){const {status$:_0x5ee5b0}=_0x30ad6e;return function(){return U['createElement'](wt,{'status$':_0x5ee5b0});};}const ze=a[_0x1100bd(0x1be)](_0x1100bd(0x239));var $i=Object['defineProperty'],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x5e2bd5,_0x4e3198,_0x17b153,_0x25fcb5)=>{const _0x33084f=_0x1100bd;for(var _0x4265d4=_0x25fcb5>0x1?void 0x0:_0x25fcb5?Hi(_0x4e3198,_0x17b153):_0x4e3198,_0x54cf9d=_0x5e2bd5[_0x33084f(0x46d)]-0x1,_0x863738;_0x54cf9d>=0x0;_0x54cf9d--)(_0x863738=_0x5e2bd5[_0x54cf9d])&&(_0x4265d4=(_0x25fcb5?_0x863738(_0x4e3198,_0x17b153,_0x4265d4):_0x863738(_0x4265d4))||_0x4265d4);return _0x25fcb5&&_0x4265d4&&$i(_0x4e3198,_0x17b153,_0x4265d4),_0x4265d4;},ee=(_0x1dc4d1,_0x216de3)=>(_0xb8b6db,_0x596aba)=>_0x216de3(_0xb8b6db,_0x596aba,_0x1dc4d1);exports[_0x1100bd(0x4f9)]=class extends a['RxDisposable']{constructor(_0x3d2906,_0x3f308c,_0x229936,_0x428088,_0x2b0976,_0x1f1696){const _0xc4de1c=_0x1100bd;super(),this[_0xc4de1c(0x300)]=_0x3d2906,this[_0xc4de1c(0x340)]=_0x3f308c,this[_0xc4de1c(0x53a)]=_0x229936,this['_localCacheService']=_0x428088,this[_0xc4de1c(0x246)]=_0x2b0976,_0x1f1696?_0x1f1696==null||_0x1f1696['whenReady']()[_0xc4de1c(0x31a)](()=>this['_init']()):(this[_0xc4de1c(0x340)][_0xc4de1c(0x328)](_0xc4de1c(0x5bb),_0xc4de1c(0x41a)),this['_init']());}async[_0x1100bd(0x4a0)](){const _0x842fa7=_0x1100bd,_0x1653c7=this[_0x842fa7(0x300)][_0x842fa7(0x1ea)](_0x842fa7(0x5c4)),_0x1cb6eb=this[_0x842fa7(0x300)][_0x842fa7(0x1ea)](_0x842fa7(0x525));if(!_0x1653c7||!_0x1cb6eb){this[_0x842fa7(0x340)]['debug'](_0x842fa7(0x5bb),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x1cb6eb)){case j[_0x842fa7(0x293)]:{const _0x489282=await this[_0x842fa7(0x236)](_0x1653c7);this['_setupSubUnitSync'](_0x489282);break;}case j[_0x842fa7(0x22b)]:{await this['_loadDoc'](_0x1653c7);break;}default:{this['_logService']['error']('[DataLoaderController]',_0x842fa7(0x2e1));break;}}}async[_0x1100bd(0x27a)](_0x18c5bb){const _0x5ed914=_0x1100bd;await this[_0x5ed914(0x588)](_0x18c5bb),_0x18c5bb[_0x5ed914(0x51f)]['pipe'](v[_0x5ed914(0x23f)](this[_0x5ed914(0x551)]))['subscribe'](_0x4af0ca=>{_0x4af0ca&&this['_updateURLWithCurrentState'](_0x4af0ca);}),this[_0x5ed914(0x300)][_0x5ed914(0x313)][_0x5ed914(0x32e)](v['takeUntil'](this[_0x5ed914(0x551)]))['subscribe'](()=>this[_0x5ed914(0x588)](_0x18c5bb));}[_0x1100bd(0x390)](_0x2e7e33,_0x48fdaf=!0x1){const _0x49a312=_0x1100bd,_0x15813c=this[_0x49a312(0x300)][_0x49a312(0x1ea)](_0x49a312(0x504));_0x2e7e33[_0x49a312(0x380)]()!==_0x15813c&&this[_0x49a312(0x300)]['setParam'](_0x49a312(0x504),_0x2e7e33[_0x49a312(0x380)](),_0x48fdaf);}async['_updateSubUnitFromURLParams'](_0x2f0cfe){const _0x3d1516=_0x1100bd;var _0x40924c;const _0x2724d8=this[_0x3d1516(0x300)][_0x3d1516(0x1ea)](_0x3d1516(0x504));if(!_0x2724d8||!_0x2f0cfe[_0x3d1516(0x2a9)](_0x2724d8)){const _0x11e932=_0x2f0cfe[_0x3d1516(0x30b)]()[0x0],_0x4a771f=_0x2f0cfe[_0x3d1516(0x2a9)](_0x11e932);if(!_0x4a771f)return;this[_0x3d1516(0x390)](_0x4a771f,!0x0),await this[_0x3d1516(0x53a)]['executeCommand'](C[_0x3d1516(0x535)]['id'],{'unitId':_0x2f0cfe[_0x3d1516(0x401)](),'subUnitId':_0x11e932});return;}((_0x40924c=_0x2f0cfe[_0x3d1516(0x34b)]())==null?void 0x0:_0x40924c['getSheetId']())!==_0x2724d8&&await this['_commandService']['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x2f0cfe[_0x3d1516(0x401)](),'subUnitId':_0x2724d8});}async[_0x1100bd(0x236)](_0x557e4c){const _0x2686ef=_0x1100bd;let _0x398be5=0x0;const _0xaa9aa2=await this[_0x2686ef(0x45f)][_0x2686ef(0x226)](_0x557e4c);return _0xaa9aa2&&(_0xaa9aa2[_0x2686ef(0x25b)]||_0xaa9aa2[_0x2686ef(0x45c)]['length']!==0x0)&&(_0x398be5=_0xaa9aa2[_0x2686ef(0x329)]),_0x398be5===0x0&&this['_logService'][_0x2686ef(0x328)](_0x2686ef(0x5bb),_0x2686ef(0x1fe)),this[_0x2686ef(0x246)]['loadSheet'](_0x557e4c,_0x398be5);}async[_0x1100bd(0x428)](_0x329607){const _0x5b837a=_0x1100bd;let _0x596254=0x0;const _0x5d63d7=await this[_0x5b837a(0x45f)][_0x5b837a(0x226)](_0x329607);return _0x5d63d7&&(_0x5d63d7[_0x5b837a(0x25b)]||_0x5d63d7[_0x5b837a(0x45c)]['length']!==0x0)&&(_0x596254=_0x5d63d7[_0x5b837a(0x329)]),_0x596254===0x0&&this[_0x5b837a(0x340)]['debug'](_0x5b837a(0x5bb),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5b837a(0x246)][_0x5b837a(0x407)](_0x329607,_0x596254);}},exports['DataLoaderController']=xi([ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x1100bd(0x505)]),ee(0x3,a[_0x1100bd(0x583)](exports['LocalCacheService'])),ee(0x4,a[_0x1100bd(0x583)](_['SnapshotService'])),ee(0x5,a[_0x1100bd(0x523)](Wt[_0x1100bd(0x391)]))],exports[_0x1100bd(0x4f9)]);var ki=Object[_0x1100bd(0x4ed)],Bi=Object['getOwnPropertyDescriptor'],Vi=(_0x262d2a,_0x878191,_0x1b9e80,_0x322116)=>{const _0x562af4=_0x1100bd;for(var _0x28ce68=_0x322116>0x1?void 0x0:_0x322116?Bi(_0x878191,_0x1b9e80):_0x878191,_0x366e08=_0x262d2a[_0x562af4(0x46d)]-0x1,_0x5df30c;_0x366e08>=0x0;_0x366e08--)(_0x5df30c=_0x262d2a[_0x366e08])&&(_0x28ce68=(_0x322116?_0x5df30c(_0x878191,_0x1b9e80,_0x28ce68):_0x5df30c(_0x28ce68))||_0x28ce68);return _0x322116&&_0x28ce68&&ki(_0x878191,_0x1b9e80,_0x28ce68),_0x28ce68;},at=(_0x3d7593,_0x25a44e)=>(_0x1a76b6,_0x5e3fa4)=>_0x25a44e(_0x1a76b6,_0x5e3fa4,_0x3d7593);const Wi=_0x1100bd(0x4d6),Fi='Univer';let Ie=class extends a[_0x1100bd(0x4e4)]{constructor(_0xcb79b0,_0x3a305a){const _0x4f6656=_0x1100bd;super(),this[_0x4f6656(0x56b)]=_0xcb79b0,this[_0x4f6656(0x4c0)]=_0x3a305a,this[_0x4f6656(0x4a0)]();}['_init'](){const _0x83937a=_0x1100bd;this[_0x83937a(0x40b)](this[_0x83937a(0x56b)]['focused$'][_0x83937a(0x1f3)](()=>{const _0x1ce227=_0x83937a;var _0x5d51b2;const _0x5c6110=this[_0x1ce227(0x56b)][_0x1ce227(0x31d)]();let _0x5687c3=(_0x5d51b2=this['_configService'][_0x1ce227(0x204)](Wi))!=null?_0x5d51b2:Fi;_0x5c6110 instanceof a['Workbook']&&(_0x5687c3=_0x5c6110[_0x1ce227(0x38f)]),document[_0x1ce227(0x3ee)]=_0x5687c3;}));}};Ie=Vi([at(0x0,a[_0x1100bd(0x472)]),at(0x1,a[_0x1100bd(0x32b)])],Ie);var Gi=Object[_0x1100bd(0x4ed)],Yi=Object[_0x1100bd(0x444)],Ki=(_0xae457b,_0x3f3568,_0x1d27b1,_0x4d2f6a)=>{const _0x1e3be3=_0x1100bd;for(var _0x43d647=_0x4d2f6a>0x1?void 0x0:_0x4d2f6a?Yi(_0x3f3568,_0x1d27b1):_0x3f3568,_0x1e6ec9=_0xae457b[_0x1e3be3(0x46d)]-0x1,_0x254fca;_0x1e6ec9>=0x0;_0x1e6ec9--)(_0x254fca=_0xae457b[_0x1e6ec9])&&(_0x43d647=(_0x4d2f6a?_0x254fca(_0x3f3568,_0x1d27b1,_0x43d647):_0x254fca(_0x43d647))||_0x43d647);return _0x4d2f6a&&_0x43d647&&Gi(_0x3f3568,_0x1d27b1,_0x43d647),_0x43d647;},Le=(_0x4a1fd1,_0x5963c9)=>(_0x3c2559,_0xf78fdd)=>_0x5963c9(_0x3c2559,_0xf78fdd,_0x4a1fd1);let pe=class{constructor(_0x249b76,_0x119106,_0x2c4ea0){const _0x445b54=_0x1100bd;this[_0x445b54(0x4c0)]=_0x249b76,this[_0x445b54(0x4b7)]=_0x119106,this[_0x445b54(0x3e0)]=_0x2c4ea0,this['init']();}[_0x1100bd(0x5c3)](){const _0xe742a9=_0x1100bd;this['_httpService'][_0xe742a9(0x4cf)]({'priority':0x1,'interceptor':(_0x5ca027,_0x258f52)=>_0x258f52(_0x5ca027)[_0xe742a9(0x32e)](v['concatMap'](async _0x3f9e45=>{const _0x311f74=_0xe742a9,_0x5e31d5=_0x3f9e45;if(_0x5e31d5['status']===0x191&&window[_0x311f74(0x383)](this[_0x311f74(0x3e0)]['t']('auth.needGotoLoginAlert'))){const _0x53f4a8=window[_0x311f74(0x576)](window['location'][_0x311f74(0x4c3)]);window[_0x311f74(0x37b)][_0x311f74(0x4c3)]=this[_0x311f74(0x3a2)]()+_0x311f74(0x5ae)+_0x53f4a8;}return _0x5e31d5;}))});}[_0x1100bd(0x3a2)](){const _0xf8391d=_0x1100bd;var _0x1d1819,_0x2fc6cd;const _0x587b37=this[_0xf8391d(0x4c0)][_0xf8391d(0x204)](mt),_0x479849=this[_0xf8391d(0x4c0)][_0xf8391d(0x204)](A);return(_0x2fc6cd=(_0x1d1819=_0x479849==null?void 0x0:_0x479849[_0xf8391d(0x489)])!=null?_0x1d1819:_0x587b37)!=null?_0x2fc6cd:es;}};pe=Ki([Le(0x0,a['IConfigService']),Le(0x1,a['Inject'](P[_0x1100bd(0x2b0)])),Le(0x2,a[_0x1100bd(0x583)](a['LocaleService']))],pe);var Xi=Object[_0x1100bd(0x4ed)],qi=Object[_0x1100bd(0x444)],zi=(_0xd8c5cf,_0x2b6404,_0x4b129c,_0xfbf62f)=>{const _0x340e0e=_0x1100bd;for(var _0x50dd51=_0xfbf62f>0x1?void 0x0:_0xfbf62f?qi(_0x2b6404,_0x4b129c):_0x2b6404,_0x2e7a0b=_0xd8c5cf[_0x340e0e(0x46d)]-0x1,_0x33078c;_0x2e7a0b>=0x0;_0x2e7a0b--)(_0x33078c=_0xd8c5cf[_0x2e7a0b])&&(_0x50dd51=(_0xfbf62f?_0x33078c(_0x2b6404,_0x4b129c,_0x50dd51):_0x33078c(_0x50dd51))||_0x50dd51);return _0xfbf62f&&_0x50dd51&&Xi(_0x2b6404,_0x4b129c,_0x50dd51),_0x50dd51;},ct=(_0x15418c,_0x561d0c)=>(_0x45ac47,_0x5c8df8)=>_0x561d0c(_0x45ac47,_0x5c8df8,_0x15418c);const Mt='AUTHZ_URL_KEY',Ji='/universer-api/authz';exports[_0x1100bd(0x36d)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x311474,_0x285d10){const _0x391674=_0x1100bd;super(),this['_HTTPService']=_0x311474,this[_0x391674(0x4c0)]=_0x285d10,this[_0x391674(0x5b7)]();}[_0x1100bd(0x5b7)](){const _0x19e68a=_0x1100bd,_0x2fdb75=this;this[_0x19e68a(0x40b)](this[_0x19e68a(0x453)][_0x19e68a(0x4cf)]({'priority':0x3e7,'interceptor':P['MergeInterceptorFactory']({'isMatch'(_0x5c5619){const _0x119ab8=_0x19e68a;var _0x26d785;if(_0x5c5619['method']===_0x119ab8(0x582)&&((_0x26d785=_0x5c5619['requestParams'])!=null&&_0x26d785[_0x119ab8(0x2b8)])){const {objectID:_0x3dc86a,objectType:_0x33e538}=_0x5c5619[_0x119ab8(0x47c)][_0x119ab8(0x2b8)]||{};if(!_0x3dc86a||_0x33e538===void 0x0)return!0x1;const _0x460851=_0x2fdb75[_0x119ab8(0x3f6)]()+'/'+_0x33e538+_0x119ab8(0x2af)+_0x3dc86a+_0x119ab8(0x26b);if(_0x5c5619[_0x119ab8(0x36e)]===_0x460851)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x506a94){const _0x22099a=_0x19e68a;var _0x5895fd;return(_0x5895fd=_0x506a94['requestParams'])==null?void 0x0:_0x5895fd[_0x22099a(0x2b8)];},'mergeParamsToRequest'(_0x3e27a2,_0xbd167a){const _0x377df4=_0x19e68a,_0x2bf7f0=_0x2fdb75[_0x377df4(0x3f6)]()+_0x377df4(0x548),_0xfb1dc5=_0x3e27a2[_0x377df4(0x4e8)]((_0x427397,_0x513248)=>{const _0x43edeb=_0x377df4,{unitID:_0x3a4db8,objectID:_0x4f173e,objectType:_0x39783f,actions:_0x10df31}=_0x513248;return _0x427397[_0x3a4db8]||(_0x427397[_0x3a4db8]={}),_0x427397[_0x3a4db8][_0x4f173e]||(_0x427397[_0x3a4db8][_0x4f173e]={'objectID':_0x4f173e,'objectType':_0x39783f,'actions':[]}),_0x427397[_0x3a4db8][_0x4f173e][_0x43edeb(0x1c8)][_0x43edeb(0x414)](..._0x10df31),_0x427397;},{}),_0x13553a=[];for(const _0x2f940f in _0xfb1dc5)for(const _0x2789bf in _0xfb1dc5[_0x2f940f]){const {actions:_0x4aa058,objectType:_0x993fd}=_0xfb1dc5[_0x2f940f][_0x2789bf],_0x3ff937=[...new Set(_0x4aa058)];_0x13553a[_0x377df4(0x414)]({'unitID':_0x2f940f,'objectID':_0x2789bf,'objectType':_0x993fd,'actions':_0x3ff937});}return new P[(_0x377df4(0x4d2))](_0x377df4(0x582),_0x2bf7f0,{'headers':_0xbd167a[_0x377df4(0x5a0)],'withCredentials':_0xbd167a['withCredentials'],'responseType':_0xbd167a[_0x377df4(0x29f)],'body':{'requests':_0x13553a}});}},{'distributeResult'(_0x292f08,_0x54d803){const _0x326110=_0x19e68a,{objectActions:_0xf4b668}=_0x292f08;return _0x54d803[_0x326110(0x4c4)](_0x16ebae=>{const _0x177b42=_0x326110,{unitID:_0x2013a8,objectID:_0x250c18,actions:_0x4b5703}=_0x16ebae,_0x5cae97=_0xf4b668[_0x177b42(0x5b0)](_0x7b6d14=>_0x7b6d14[_0x177b42(0x59b)]===_0x2013a8&&_0x7b6d14[_0x177b42(0x364)]===_0x250c18),_0x19e0e9=_0x4b5703['map'](_0x4ebadc=>_0x5cae97==null?void 0x0:_0x5cae97[_0x177b42(0x1c8)]['find'](_0xa2da2a=>_0xa2da2a[_0x177b42(0x22c)]===_0x4ebadc))[_0x177b42(0x495)](_0x1436cc=>!!_0x1436cc);return{'config':_0x16ebae,'result':{'actions':_0x19e0e9,'error':_0x292f08['error']}};});}})}));}[_0x1100bd(0x3f6)](){const _0x2829a5=_0x1100bd;var _0x4b9dd1,_0x3ee9c1;const _0x5f2917=this['_configService']['getConfig'](Mt),_0x1dd9b6=this[_0x2829a5(0x4c0)][_0x2829a5(0x204)](A);return(_0x3ee9c1=(_0x4b9dd1=_0x1dd9b6==null?void 0x0:_0x1dd9b6[_0x2829a5(0x481)])!=null?_0x4b9dd1:_0x5f2917)!=null?_0x3ee9c1:Ji;}async[_0x1100bd(0x3ba)](_0x2b325c){const _0xc1de83=_0x1100bd,_0x12386f=this['_getAPIPrefixPath']()+'/'+_0x2b325c[_0xc1de83(0x426)]+_0xc1de83(0x1d2);return(await this['_HTTPService'][_0xc1de83(0x569)](_0x12386f,{'body':_0x2b325c}))[_0xc1de83(0x2b8)][_0xc1de83(0x364)]||'';}async['list'](_0x4674eb){const _0x3a301b=_0x1100bd,_0x140d4e=this[_0x3a301b(0x3f6)]()+_0x3a301b(0x53e);return(await this[_0x3a301b(0x453)][_0x3a301b(0x569)](_0x140d4e,{'body':_0x4674eb}))[_0x3a301b(0x2b8)][_0x3a301b(0x57b)];}async[_0x1100bd(0x44f)](_0x21eba8){const _0x33920b=_0x1100bd,_0x12cd96=this[_0x33920b(0x3f6)]()+'/'+_0x21eba8['objectType']+_0x33920b(0x2af)+_0x21eba8[_0x33920b(0x364)];await this[_0x33920b(0x453)][_0x33920b(0x5b8)](_0x12cd96,{'body':_0x21eba8});}async[_0x1100bd(0x389)](_0x843dfe){const _0x1bec94=_0x1100bd,_0x2c70fd=this[_0x1bec94(0x3f6)]()+'/'+_0x843dfe[_0x1bec94(0x426)]+_0x1bec94(0x2af)+_0x843dfe[_0x1bec94(0x364)]+_0x1bec94(0x26b);return(await this['_HTTPService'][_0x1bec94(0x569)](_0x2c70fd,{'body':_0x843dfe}))[_0x1bec94(0x2b8)][_0x1bec94(0x1c8)];}async[_0x1100bd(0x365)](_0x1993de){const _0x3025a3=_0x1100bd,_0x5aa4e1=this['_getAPIPrefixPath']()+_0x3025a3(0x548);return(await this['_HTTPService'][_0x3025a3(0x569)](_0x5aa4e1,{'body':{'requests':_0x1993de}}))[_0x3025a3(0x2b8)]['objectActions'];}async['listRoles'](_0xc8b6db){const _0x3e9bea=_0x1100bd,_0x5db1e4=this[_0x3e9bea(0x3f6)]()+'/'+_0xc8b6db[_0x3e9bea(0x426)]+'/role',_0x1ff6fd=await this[_0x3e9bea(0x453)][_0x3e9bea(0x569)](_0x5db1e4,{'body':_0xc8b6db});return{'roles':_0x1ff6fd[_0x3e9bea(0x2b8)][_0x3e9bea(0x30d)],'actions':_0x1ff6fd[_0x3e9bea(0x2b8)][_0x3e9bea(0x1c8)]};}async['deleteCollaborator'](_0x58cf70){const _0x3c216e=_0x1100bd,_0x4c0db7=this[_0x3c216e(0x3f6)]()+_0x3c216e(0x2b2);await this[_0x3c216e(0x453)][_0x3c216e(0x5bf)](_0x4c0db7,{'params':{'collaboratorID':_0x58cf70['collaboratorID'],'objectID':_0x58cf70[_0x3c216e(0x364)],'unitID':_0x58cf70[_0x3c216e(0x59b)]}});}async[_0x1100bd(0x29a)](_0x25ef05){const _0x1b94ce=_0x1100bd,_0x18a3bb=this[_0x1b94ce(0x3f6)]()+_0x1b94ce(0x2b2);await this['_HTTPService'][_0x1b94ce(0x405)](_0x18a3bb,{'body':_0x25ef05});}async[_0x1100bd(0x3ac)](_0x5d35f1){const _0x2c3cbd=_0x1100bd,_0x117a6a=this[_0x2c3cbd(0x3f6)]()+_0x2c3cbd(0x2b2);await this[_0x2c3cbd(0x453)]['post'](_0x117a6a,{'body':_0x5d35f1});}async['listCollaborators'](_0x56b1aa){const _0x5534f5=_0x1100bd,_0xf36fc6=this[_0x5534f5(0x3f6)]()+'/collaborator';return(await this[_0x5534f5(0x453)][_0x5534f5(0x1f4)](_0xf36fc6,{'params':{'objectID':_0x56b1aa['objectID'],'unitID':_0x56b1aa[_0x5534f5(0x59b)]}}))['body'][_0x5534f5(0x590)];}async[_0x1100bd(0x2ae)](_0x2a486a){const _0x70e833=_0x1100bd,_0x81a57=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x70e833(0x453)][_0x70e833(0x5b8)](_0x81a57,{'body':_0x2a486a});}},exports[_0x1100bd(0x36d)]=zi([ct(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),ct(0x1,a[_0x1100bd(0x583)](a[_0x1100bd(0x32b)]))],exports[_0x1100bd(0x36d)]);var Zi=Object[_0x1100bd(0x4ed)],Qi=Object[_0x1100bd(0x444)],en=(_0x38b83d,_0x47e2e5,_0x5e9cd8,_0x2bd563)=>{const _0x503779=_0x1100bd;for(var _0x37f582=_0x2bd563>0x1?void 0x0:_0x2bd563?Qi(_0x47e2e5,_0x5e9cd8):_0x47e2e5,_0x3eb2f6=_0x38b83d[_0x503779(0x46d)]-0x1,_0x1ef2ca;_0x3eb2f6>=0x0;_0x3eb2f6--)(_0x1ef2ca=_0x38b83d[_0x3eb2f6])&&(_0x37f582=(_0x2bd563?_0x1ef2ca(_0x47e2e5,_0x5e9cd8,_0x37f582):_0x1ef2ca(_0x37f582))||_0x37f582);return _0x2bd563&&_0x37f582&&Zi(_0x47e2e5,_0x5e9cd8,_0x37f582),_0x37f582;},tn=(_0x5de577,_0x434093)=>(_0x423155,_0x57dbca)=>_0x434093(_0x423155,_0x57dbca,_0x5de577);let Ce=class{constructor(_0x160a8f){const _0x2f2697=_0x1100bd;this[_0x2f2697(0x4b7)]=_0x160a8f,this[_0x2f2697(0x55f)]();}[_0x1100bd(0x55f)](){const _0x186676=_0x1100bd;this[_0x186676(0x4b7)]['registerHTTPInterceptor']({'interceptor':(_0x288f10,_0x464f5c)=>{const _0xe94563=_0x186676,_0x34cbbc=_0x288f10[_0xe94563(0x5a0)],_0x3f6847=Ft[_0xe94563(0x3ad)]();return _0x3f6847&&_0x34cbbc[_0xe94563(0x57e)](_0xe94563(0x3af),_0x3f6847),_0x464f5c(_0x288f10);}});}};Ce=en([tn(0x0,a['Inject'](P[_0x1100bd(0x2b0)]))],Ce);var sn=Object[_0x1100bd(0x4ed)],nn=Object[_0x1100bd(0x444)],rn=(_0x291401,_0x1f9b3c,_0x1f0b32,_0x5756a1)=>{const _0x4d10ae=_0x1100bd;for(var _0x543fa7=_0x5756a1>0x1?void 0x0:_0x5756a1?nn(_0x1f9b3c,_0x1f0b32):_0x1f9b3c,_0x45dec8=_0x291401[_0x4d10ae(0x46d)]-0x1,_0x2e5db2;_0x45dec8>=0x0;_0x45dec8--)(_0x2e5db2=_0x291401[_0x45dec8])&&(_0x543fa7=(_0x5756a1?_0x2e5db2(_0x1f9b3c,_0x1f0b32,_0x543fa7):_0x2e5db2(_0x543fa7))||_0x543fa7);return _0x5756a1&&_0x543fa7&&sn(_0x1f9b3c,_0x1f0b32,_0x543fa7),_0x543fa7;},je=(_0x4b0df9,_0x40bfc9)=>(_0x3a57ef,_0x1bd383)=>_0x40bfc9(_0x3a57ef,_0x1bd383,_0x4b0df9);const on=['image/png','image/jpeg',_0x1100bd(0x41b),_0x1100bd(0x22a),_0x1100bd(0x54f)],an=0x5*0x400*0x400,cn=_0x1100bd(0x24f),ln=_0x1100bd(0x2f1),hn=_0x1100bd(0x4c8),_n=_0x1100bd(0x3d9);exports[_0x1100bd(0x469)]=class{constructor(_0x59ece8,_0x2cf18d,_0x59ba6c){const _0x4ec5de=_0x1100bd;d(this,_0x4ec5de(0x3dd),0x0),d(this,_0x4ec5de(0x526),new v['Subject']()),d(this,_0x4ec5de(0x3e6),this['_change$']),d(this,_0x4ec5de(0x3da),new Map()),(this[_0x4ec5de(0x4b7)]=_0x59ece8,this[_0x4ec5de(0x4c0)]=_0x2cf18d,this[_0x4ec5de(0x56b)]=_0x59ba6c);}[_0x1100bd(0x3f4)](_0x9c13f4){const _0x2b7472=_0x1100bd;this[_0x2b7472(0x3dd)]=_0x9c13f4,this[_0x2b7472(0x526)]['next'](_0x9c13f4);}['getImageSourceCache'](_0x518154,_0x13b5dd){const _0x50785a=_0x1100bd;if(_0x13b5dd===L['ImageSourceType'][_0x50785a(0x3c1)]){const _0x1da7e2=new Image();return _0x1da7e2[_0x50785a(0x358)]=_0x518154,_0x1da7e2;}return this['_imageSourceCache'][_0x50785a(0x1f4)](_0x518154);}[_0x1100bd(0x4b8)](_0x55f44d,_0x145f2b,_0x18ddbb){const _0x55701c=_0x1100bd;_0x145f2b===L[_0x55701c(0x2c4)][_0x55701c(0x3c1)]||_0x18ddbb==null||this[_0x55701c(0x3da)][_0x55701c(0x57e)](_0x55f44d,_0x18ddbb);}async[_0x1100bd(0x3ca)](_0x7d45c5){const _0x31d2e0=_0x1100bd;try{const _0x553748=this['_replaceFileID'](this[_0x31d2e0(0x597)](),''+_0x7d45c5),_0x3c938e=(await this[_0x31d2e0(0x4b7)][_0x31d2e0(0x1f4)](_0x553748))['body'];if(_0x3c938e[_0x31d2e0(0x3d1)]&&_0x3c938e[_0x31d2e0(0x3d1)][_0x31d2e0(0x353)]===It['OK']){const _0x26bc1e=new URL(_0x3c938e[_0x31d2e0(0x36e)],this[_0x31d2e0(0x304)]())[_0x31d2e0(0x431)]();return Promise['resolve'](_0x26bc1e);}return Promise[_0x31d2e0(0x409)](_0x3c938e['error']);}catch(_0x25fb66){return Promise['reject'](_0x25fb66);}}async[_0x1100bd(0x35b)](_0x4e6eb0){const _0xdafa68=_0x1100bd;let _0x1a6d81='';if(!on[_0xdafa68(0x360)](_0x4e6eb0[_0xdafa68(0x525)]))return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x52c)]));if(_0x4e6eb0[_0xdafa68(0x2b7)]>an)return this[_0xdafa68(0x257)](),Promise[_0xdafa68(0x409)](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x4bf)]));try{const _0x31da49=new FormData();_0x31da49['append']('file',_0x4e6eb0);const _0x448cd6=this[_0xdafa68(0x56b)][_0xdafa68(0x31d)](),_0x44fd73=_0x448cd6==null?void 0x0:_0x448cd6[_0xdafa68(0x401)]();if(!_0x44fd73)throw new Error('unitId\x20is\x20not\x20found');const _0x4b513a=this[_0xdafa68(0x53d)]()+'?size='+_0x4e6eb0[_0xdafa68(0x2b7)]['toString']()+_0xdafa68(0x305)+pt[_0xdafa68(0x32f)]+_0xdafa68(0x248)+encodeURIComponent(_0x44fd73),_0x5afd3f=await(await fetch(_0x4b513a,{'method':'POST','body':_0x31da49}))['json']();if(typeof _0x5afd3f[_0xdafa68(0x2aa)]!=_0xdafa68(0x54c))return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)]['ERROR_IMAGE']));_0x1a6d81=_0x5afd3f['FileId'];}catch{return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x20f)]));}return new Promise((_0x279427,_0x15c6fc)=>{const _0x54203d=_0xdafa68,_0x455306=new FileReader();_0x455306[_0x54203d(0x26e)](_0x4e6eb0),_0x455306['onload']=_0x5950ae=>{const _0x1560a4=_0x54203d;var _0x1deaec;const _0x37ae3c=(_0x1deaec=_0x5950ae[_0x1560a4(0x20d)])==null?void 0x0:_0x1deaec[_0x1560a4(0x343)];if(_0x37ae3c==null){this[_0x1560a4(0x257)](),_0x15c6fc(new Error(L['ImageUploadStatusType'][_0x1560a4(0x20f)]));return;}const _0x542adf=a['Tools'][_0x1560a4(0x552)](0x6);_0x279427({'imageId':_0x542adf,'imageSourceType':L[_0x1560a4(0x2c4)][_0x1560a4(0x1de)],'source':_0x1a6d81,'base64Cache':_0x37ae3c,'status':L[_0x1560a4(0x268)][_0x1560a4(0x3f2)]}),this[_0x1560a4(0x257)]();};});}['_getUploadFileURL'](){const _0x1872cd=_0x1100bd;var _0x2116b4,_0x4cf2ed;const _0x41c1bf=this[_0x1872cd(0x4c0)][_0x1872cd(0x204)](cn),_0x476a13=this[_0x1872cd(0x4c0)][_0x1872cd(0x204)](A);return(_0x4cf2ed=(_0x2116b4=_0x476a13==null?void 0x0:_0x476a13['uploadFileServerUrl'])!=null?_0x2116b4:_0x41c1bf)!=null?_0x4cf2ed:ln;}['_getSignURL'](){const _0x4cfae5=_0x1100bd;var _0xfdf4f0,_0x25820f;const _0x350440=this[_0x4cfae5(0x4c0)][_0x4cfae5(0x204)](hn),_0x3ac504=this[_0x4cfae5(0x4c0)][_0x4cfae5(0x204)](A);return(_0x25820f=(_0xfdf4f0=_0x3ac504==null?void 0x0:_0x3ac504[_0x4cfae5(0x3a6)])!=null?_0xfdf4f0:_0x350440)!=null?_0x25820f:_n;}[_0x1100bd(0x304)](){const _0x5405b2=_0x1100bd;var _0x127129;const _0x5f2099=this[_0x5405b2(0x4c0)][_0x5405b2(0x204)](A);return(_0x127129=_0x5f2099==null?void 0x0:_0x5f2099['downloadEndpointUrl'])!=null?_0x127129:location[_0x5405b2(0x354)];}[_0x1100bd(0x294)](_0x223e5d,_0x49ef7f){const _0x1d394a=_0x1100bd;return _0x223e5d['replace'](_0x1d394a(0x3db),_0x49ef7f);}['_decreaseWaiting'](){const _0x576c9a=_0x1100bd;this['_waitCount']-=0x1,this['_change$'][_0x576c9a(0x496)](this[_0x576c9a(0x3dd)]);}},exports[_0x1100bd(0x469)]=rn([je(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),je(0x1,a[_0x1100bd(0x32b)]),je(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x472)]))],exports[_0x1100bd(0x469)]);var un=Object[_0x1100bd(0x4ed)],dn=Object[_0x1100bd(0x444)],Sn=(_0x31e05b,_0x33c0a8,_0x57aaaa,_0x59a1c2)=>{for(var _0x568f3a=_0x59a1c2>0x1?void 0x0:_0x59a1c2?dn(_0x33c0a8,_0x57aaaa):_0x33c0a8,_0x4d4ac1=_0x31e05b['length']-0x1,_0x30dd27;_0x4d4ac1>=0x0;_0x4d4ac1--)(_0x30dd27=_0x31e05b[_0x4d4ac1])&&(_0x568f3a=(_0x59a1c2?_0x30dd27(_0x33c0a8,_0x57aaaa,_0x568f3a):_0x30dd27(_0x568f3a))||_0x568f3a);return _0x59a1c2&&_0x568f3a&&un(_0x33c0a8,_0x57aaaa,_0x568f3a),_0x568f3a;},he=(_0x2494d2,_0x296817)=>(_0x2b9a74,_0x591ca6)=>_0x296817(_0x2b9a74,_0x591ca6,_0x2494d2);let Ee=class extends a[_0x1100bd(0x1c7)]{constructor(_0x3607b1,_0x319402,_0x53b413,_0x285ae2,_0x38bc96){const _0x3068d7=_0x1100bd;super(),this[_0x3068d7(0x1d8)]=_0x3607b1,this[_0x3068d7(0x56b)]=_0x319402,this[_0x3068d7(0x39f)]=_0x53b413,this[_0x3068d7(0x5a4)]=_0x285ae2,this[_0x3068d7(0x418)]=_0x38bc96,this['_initUnitPermissionChange'](),this[_0x3068d7(0x26a)]();}[_0x1100bd(0x26a)](){const _0xd0afcf=_0x1100bd,_0x2be93e=async _0xf7554c=>{const _0x339fd4=_0x75d2;(await this[_0x339fd4(0x5a4)][_0x339fd4(0x31b)](_0xf7554c))[_0x339fd4(0x448)][_0x339fd4(0x32e)](E['filter'](_0x2593af=>_0x2593af['eventID']===_[_0x339fd4(0x55c)][_0x339fd4(0x5cc)]),E[_0x339fd4(0x23f)](this[_0x339fd4(0x551)]))[_0x339fd4(0x1f3)](_0x2c6625=>{const _0x11f0ee=_0x339fd4,_0x5c6234=_0x2c6625,{reason:_0x486444}=_0x5c6234['data'];this[_0x11f0ee(0x1d8)]['get'](N['IMessageService'])[_0x11f0ee(0x1d9)]({'type':X[_0x11f0ee(0x4b2)][_0x11f0ee(0x2d2)],'content':this[_0x11f0ee(0x418)]['t'](_0x11f0ee(0x314))+'('+_0x486444+')'}),this[_0x11f0ee(0x39f)][_0x11f0ee(0x3a5)](new C[(_0x11f0ee(0x561))](_0xf7554c)['id'],!0x1),this[_0x11f0ee(0x5a4)][_0x11f0ee(0x27c)](_0xf7554c);});};v['merge'](this[_0xd0afcf(0x56b)]['getTypeOfUnitAdded$'](a[_0xd0afcf(0x2e9)][_0xd0afcf(0x293)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xd0afcf(0x2e9)][_0xd0afcf(0x22b)]))[_0xd0afcf(0x32e)](E[_0xd0afcf(0x4c4)](_0x4fb447=>_0x4fb447[_0xd0afcf(0x401)]()),E['filter'](_0x2abcf6=>!a[_0xd0afcf(0x513)](_0x2abcf6)),E[_0xd0afcf(0x23f)](this[_0xd0afcf(0x551)]))[_0xd0afcf(0x1f3)](_0x380f61=>{_0x2be93e(_0x380f61);});}[_0x1100bd(0x1ae)](){const _0xf76e60=_0x1100bd,_0x26fd64=async _0x5a50b5=>{const _0x4a6d56=_0x75d2;(await this[_0x4a6d56(0x5a4)][_0x4a6d56(0x31b)](_0x5a50b5))[_0x4a6d56(0x448)][_0x4a6d56(0x32e)](E['filter'](_0x13bbbc=>_0x13bbbc[_0x4a6d56(0x39c)]===_[_0x4a6d56(0x55c)]['UPDATE_PERMISSION_OBJ']),E[_0x4a6d56(0x23f)](this[_0x4a6d56(0x551)]))[_0x4a6d56(0x1f3)](_0x500c2a=>{const _0x4d2614=_0x4a6d56,_0xf2f8a7=_0x500c2a,{objectId:_0x4ed914}=_0xf2f8a7[_0x4d2614(0x47d)],_0x2748f9=this[_0x4d2614(0x1d8)][_0x4d2614(0x1f4)](te['SheetPermissionInitController']);_0x4ed914===_0x5a50b5?_0x2748f9[_0x4d2614(0x536)](_0x5a50b5):_0x2748f9[_0x4d2614(0x1c0)](_0x5a50b5,_0x4ed914);});};v[_0xf76e60(0x4e9)](this['_univerInstanceService'][_0xf76e60(0x382)](a[_0xf76e60(0x2e9)]['UNIVER_SHEET']),this[_0xf76e60(0x56b)][_0xf76e60(0x382)](a[_0xf76e60(0x2e9)][_0xf76e60(0x22b)]))[_0xf76e60(0x32e)](E['map'](_0x11a925=>_0x11a925[_0xf76e60(0x401)]()),E[_0xf76e60(0x495)](_0x19e1ef=>!a['isInternalEditorID'](_0x19e1ef)),E[_0xf76e60(0x23f)](this[_0xf76e60(0x551)]))[_0xf76e60(0x1f3)](_0x2c6611=>{_0x26fd64(_0x2c6611);});}};Ee=Sn([he(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x1100bd(0x4d7)]),he(0x3,a[_0x1100bd(0x583)](exports['CollaborationSessionService'])),he(0x4,a['Inject'](a[_0x1100bd(0x497)]))],Ee);var vn=Object[_0x1100bd(0x4ed)],fn=Object[_0x1100bd(0x444)],gn=(_0x3740df,_0x1cd86e,_0x11f698,_0x30d713)=>{const _0x25d04f=_0x1100bd;for(var _0x137d3d=_0x30d713>0x1?void 0x0:_0x30d713?fn(_0x1cd86e,_0x11f698):_0x1cd86e,_0x3913d6=_0x3740df[_0x25d04f(0x46d)]-0x1,_0x22afa3;_0x3913d6>=0x0;_0x3913d6--)(_0x22afa3=_0x3740df[_0x3913d6])&&(_0x137d3d=(_0x30d713?_0x22afa3(_0x1cd86e,_0x11f698,_0x137d3d):_0x22afa3(_0x137d3d))||_0x137d3d);return _0x30d713&&_0x137d3d&&vn(_0x1cd86e,_0x11f698,_0x137d3d),_0x137d3d;},lt=(_0x66d4c3,_0x349e61)=>(_0x212f7c,_0x2e8e18)=>_0x349e61(_0x212f7c,_0x2e8e18,_0x66d4c3);exports[_0x1100bd(0x5bd)]=class{constructor(_0x445c41,_0x4630cb){const _0x45564a=_0x1100bd;this[_0x45564a(0x4c0)]=_0x445c41,this[_0x45564a(0x4b7)]=_0x4630cb;}async[_0x1100bd(0x3b2)](_0x4aedd4,_0xff69e4){const _0x1e746f=_0x1100bd;var _0x3d8d29;const {unitID:_0x4369c6,type:_0xbd8b69,revision:_0x1d3e00=0x0}=_0xff69e4,_0x1f26c9=this['_getSnapshotAPIPrefix']()+'/'+_0xbd8b69+_0x1e746f(0x4c6)+_0x4369c6+_0x1e746f(0x34e)+_0x1d3e00,_0x20c6d=(await this[_0x1e746f(0x4b7)][_0x1e746f(0x1f4)](_0x1f26c9))[_0x1e746f(0x2b8)],_0x1b48a4=(_0x3d8d29=_0x20c6d[_0x1e746f(0x4aa)])==null?void 0x0:_0x3d8d29[_0x1e746f(0x424)];if(_0x1b48a4){const _0x24cc81=_0x1b48a4==null?void 0x0:_0x1b48a4[_0x1e746f(0x2f9)],_0x2e334d=_['textEncoder'][_0x1e746f(0x42e)](_[_0x1e746f(0x3b3)](_0x24cc81));_0x1b48a4['originalMeta']=_0x2e334d,Object[_0x1e746f(0x208)](_0x1b48a4[_0x1e746f(0x39a)])[_0x1e746f(0x2be)](([,_0x456124])=>{const _0x345be=_0x1e746f,_0x467099=_0x456124[_0x345be(0x2f9)],_0x5b1743=_['textEncoder'][_0x345be(0x42e)](_[_0x345be(0x3b3)](_0x467099));_0x456124[_0x345be(0x2f9)]=_0x5b1743;});}return _0x20c6d;}async[_0x1100bd(0x3b5)](_0x7e5c01,_0x63fc4f){const _0x262287=_0x1100bd,{unitID:_0x3d9855,type:_0x53e9ae,blockID:_0xeae0bb}=_0x63fc4f,_0x57e27c=this['_getAPIPrefix']()+'/'+_0x53e9ae+'/unit/'+_0x3d9855+'/block/'+_0xeae0bb;return(await this['_httpService']['get'](_0x57e27c))[_0x262287(0x2b8)];}async[_0x1100bd(0x235)](_0x2bb29c,_0x51600f){const _0x4eb7c2=_0x1100bd,{unitID:_0x1013f4,type:_0x4d7f6d,blockID:_0x514198}=_0x51600f,_0x2787c2=this['_getAPIPrefix']()+_0x4eb7c2(0x531)+_0x4d7f6d+_0x4eb7c2(0x4c6)+_0x1013f4+_0x4eb7c2(0x531)+_0x514198;return(await this[_0x4eb7c2(0x4b7)]['get'](_0x2787c2))[_0x4eb7c2(0x2b8)];}async['fetchMissingChangesets'](_0x253e9c,_0x220b15){const _0x31f49e=_0x1100bd,{unitID:_0x63bf2,type:_0x52e530,from:_0x37e08d,to:_0x22931f}=_0x220b15,_0x3e52f3=this[_0x31f49e(0x206)]()+'/'+_0x52e530+_0x31f49e(0x4c6)+_0x63bf2+_0x31f49e(0x278)+_0x37e08d+'&to='+_0x22931f;return(await this['_httpService']['get'](_0x3e52f3))[_0x31f49e(0x2b8)];}[_0x1100bd(0x229)](){const _0xe63d9=_0x1100bd;var _0x55df88;return(_0x55df88=this[_0xe63d9(0x4c0)]['getConfig'](_t))!=null?_0x55df88:this[_0xe63d9(0x206)]();}['_getAPIPrefix'](){const _0x1b1cf4=_0x1100bd;var _0x1034d7,_0x925550;const _0x2f5a49=this[_0x1b1cf4(0x4c0)][_0x1b1cf4(0x204)](ht),_0x376f14=this[_0x1b1cf4(0x4c0)][_0x1b1cf4(0x204)](A);return(_0x925550=(_0x1034d7=_0x376f14==null?void 0x0:_0x376f14[_0x1b1cf4(0x2bd)])!=null?_0x1034d7:_0x2f5a49)!=null?_0x925550:Gt;}async['getResourcesRequest'](_0x56bb97,_0x34f6c1){const _0x1caa5b=_0x1100bd,_0x5c538b=_0x1caa5b(0x1d5)+_0x34f6c1[_0x1caa5b(0x525)]+_0x1caa5b(0x4c6)+_0x34f6c1[_0x1caa5b(0x59b)]+_0x1caa5b(0x2cb);return(await this[_0x1caa5b(0x4b7)][_0x1caa5b(0x1f4)](_0x5c538b,{'params':{'resourceId':JSON['stringify'](_0x34f6c1['resourceIDs'])}}))[_0x1caa5b(0x2b8)];}[_0x1100bd(0x22f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1100bd(0x1e6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1100bd(0x3f0)](){const _0x14702c=_0x1100bd;throw new Error(_0x14702c(0x21a));}['copyFileMeta'](){const _0x50203b=_0x1100bd;throw new Error(_0x50203b(0x21a));}},exports[_0x1100bd(0x5bd)]=gn([lt(0x0,a[_0x1100bd(0x32b)]),lt(0x1,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)]))],exports[_0x1100bd(0x5bd)]);var mn=Object[_0x1100bd(0x4ed)],In=Object[_0x1100bd(0x444)],pn=(_0x2502a7,_0x438d0a,_0x289aac,_0x120613)=>{const _0x3ce2ce=_0x1100bd;for(var _0x21ba1d=_0x120613>0x1?void 0x0:_0x120613?In(_0x438d0a,_0x289aac):_0x438d0a,_0x5dc2d3=_0x2502a7[_0x3ce2ce(0x46d)]-0x1,_0x48bce7;_0x5dc2d3>=0x0;_0x5dc2d3--)(_0x48bce7=_0x2502a7[_0x5dc2d3])&&(_0x21ba1d=(_0x120613?_0x48bce7(_0x438d0a,_0x289aac,_0x21ba1d):_0x48bce7(_0x21ba1d))||_0x21ba1d);return _0x120613&&_0x21ba1d&&mn(_0x438d0a,_0x289aac,_0x21ba1d),_0x21ba1d;},_e=(_0x3e3221,_0x3f1db7)=>(_0x2ceaf5,_0xc0d543)=>_0x3f1db7(_0x2ceaf5,_0xc0d543,_0x3e3221);let Be=class extends a[_0x1100bd(0x4ab)]{constructor(_0x30584d,_0x2fd76c,_0x4a1cb6,_0x20d92d,_0x28f43d){const _0x1f055c=_0x1100bd;super(_0x30584d,_0x2fd76c,_0x4a1cb6),this['_transformService']=_0x20d92d,this[_0x1f055c(0x340)]=_0x28f43d;}[_0x1100bd(0x4ae)](_0x209b8f,_0x1430cc){const _0x4f5a60=_0x1100bd,_0x322ba0=this[_0x4f5a60(0x2f5)](_0x209b8f);if(_0x322ba0)try{const _0x1c519a=this['_transformStack'](_0x322ba0,_0x1430cc);this[_0x4f5a60(0x408)](_0x209b8f,_0x1c519a);}catch(_0x2a7445){this[_0x4f5a60(0x340)]['error']('[CollaborationUndoRedoService]',_0x2a7445),this[_0x4f5a60(0x1ef)](_0x209b8f);}const _0x50e539=this[_0x4f5a60(0x1b8)](_0x209b8f);if(_0x50e539)try{const _0x2a4e11=this[_0x4f5a60(0x577)](_0x50e539,_0x1430cc);this[_0x4f5a60(0x585)](_0x209b8f,_0x2a4e11);}catch(_0x23793e){this[_0x4f5a60(0x340)]['error'](_0x23793e),this[_0x4f5a60(0x592)](_0x209b8f);}}[_0x1100bd(0x1ef)](_0x5beccb){const _0x28a650=_0x1100bd,_0x4fed72=this[_0x28a650(0x2f5)](_0x5beccb);_0x4fed72&&(_0x4fed72[_0x28a650(0x46d)]=0x0,this[_0x28a650(0x4f5)]());}[_0x1100bd(0x592)](_0x1e4479){const _0x32712e=_0x1100bd,_0x21d615=this[_0x32712e(0x1b8)](_0x1e4479);_0x21d615&&(_0x21d615[_0x32712e(0x46d)]=0x0,this[_0x32712e(0x4f5)]());}[_0x1100bd(0x408)](_0x54e2d9,_0x4c8cec){const _0x444798=_0x1100bd;this[_0x444798(0x466)][_0x444798(0x57e)](_0x54e2d9,_0x4c8cec),this[_0x444798(0x4f5)]();}[_0x1100bd(0x585)](_0x1589a3,_0x179f26){const _0x24cc36=_0x1100bd;this['_redoStacks']['set'](_0x1589a3,_0x179f26),this[_0x24cc36(0x4f5)]();}[_0x1100bd(0x577)](_0x245759,_0x31efd0){const _0x2aa4c0=_0x1100bd,_0x568607=[];let _0x20b71d=_0x31efd0,_0x4fe14a=_0x31efd0;for(let _0x46a30e=_0x245759['length']-0x1;_0x46a30e>=0x0;_0x46a30e--){const {unitID:_0x52f1f9,undoMutations:_0x5a80a6,redoMutations:_0xfb4f51}=_0x245759[_0x46a30e],_0x418ac7=this[_0x2aa4c0(0x1ce)][_0x2aa4c0(0x3c2)](_0x20b71d,_0x5a80a6),_0x34c0ac=this[_0x2aa4c0(0x1ce)][_0x2aa4c0(0x3c2)](_0x4fe14a,_0xfb4f51);if(_[_0x2aa4c0(0x332)](_0x418ac7)||_[_0x2aa4c0(0x332)](_0x34c0ac)){this[_0x2aa4c0(0x340)][_0x2aa4c0(0x3d1)](_0x2aa4c0(0x3cf),_0x2aa4c0(0x50f),_0x418ac7,_0x34c0ac);break;}_0x20b71d=_0x418ac7['c1Prime'],_0x4fe14a=_0x34c0ac[_0x2aa4c0(0x20e)],_0x568607['push']({'unitID':_0x52f1f9,'undoMutations':_0x418ac7[_0x2aa4c0(0x1ca)],'redoMutations':_0x34c0ac[_0x2aa4c0(0x1ca)]});}return _0x568607[_0x2aa4c0(0x43d)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x1100bd(0x505)]),_e(0x2,a[_0x1100bd(0x20b)]),_e(0x3,_[_0x1100bd(0x38d)]),_e(0x4,a[_0x1100bd(0x49b)])],Be);class Nt extends a[_0x1100bd(0x1c7)]{constructor(){const _0x1be43a=_0x1100bd;super(),d(this,_0x1be43a(0x313)),this[_0x1be43a(0x313)]=v[_0x1be43a(0x549)](window,'popstate')[_0x1be43a(0x32e)](v[_0x1be43a(0x23f)](this[_0x1be43a(0x551)]),v[_0x1be43a(0x33d)](0x1),v[_0x1be43a(0x465)](void 0x0));}[_0x1100bd(0x224)](_0x3e095d,_0x355166,_0x5f3376=!0x1){const _0x9671f0=_0x1100bd,_0x371779=new URL(window[_0x9671f0(0x37b)][_0x9671f0(0x4c3)]);_0x371779['searchParams']['set'](_0x3e095d,_0x355166),_0x5f3376?window['history'][_0x9671f0(0x33a)]('','',_0x371779[_0x9671f0(0x431)]()):window[_0x9671f0(0x2d7)][_0x9671f0(0x410)]('','',_0x371779[_0x9671f0(0x431)]());}['removeParam'](_0x463d06,_0x6a520=!0x1){const _0x26094f=_0x1100bd,_0x1964e8=new URL(window[_0x26094f(0x37b)][_0x26094f(0x4c3)]);_0x1964e8[_0x26094f(0x49e)][_0x26094f(0x5bf)](_0x463d06),_0x6a520?window[_0x26094f(0x2d7)][_0x26094f(0x33a)]('','',_0x1964e8[_0x26094f(0x431)]()):window[_0x26094f(0x2d7)][_0x26094f(0x410)]('','',_0x1964e8['toString']());}['getParam'](_0x1dbf7f){const _0x5d0027=_0x1100bd;var _0x1ded7f;return(_0x1ded7f=new URL(window[_0x5d0027(0x37b)][_0x5d0027(0x4c3)])[_0x5d0027(0x49e)][_0x5d0027(0x1f4)](_0x1dbf7f))!=null?_0x1ded7f:void 0x0;}}var At=Object['defineProperty'],Cn=Object[_0x1100bd(0x444)],En=(_0xdeead,_0x2758fb,_0x553c13)=>_0x2758fb in _0xdeead?At(_0xdeead,_0x2758fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553c13}):_0xdeead[_0x2758fb]=_0x553c13,bn=(_0x4e8e25,_0xf0d094,_0x4975b2,_0xd7d3b5)=>{const _0x5e2aec=_0x1100bd;for(var _0x40f734=_0xd7d3b5>0x1?void 0x0:_0xd7d3b5?Cn(_0xf0d094,_0x4975b2):_0xf0d094,_0x31dbd5=_0x4e8e25[_0x5e2aec(0x46d)]-0x1,_0x4aca21;_0x31dbd5>=0x0;_0x31dbd5--)(_0x4aca21=_0x4e8e25[_0x31dbd5])&&(_0x40f734=(_0xd7d3b5?_0x4aca21(_0xf0d094,_0x4975b2,_0x40f734):_0x4aca21(_0x40f734))||_0x40f734);return _0xd7d3b5&&_0x40f734&&At(_0xf0d094,_0x4975b2,_0x40f734),_0x40f734;},ve=(_0x41f418,_0x1c2e7e)=>(_0x76286b,_0x52966a)=>_0x1c2e7e(_0x76286b,_0x52966a,_0x41f418),Tn=(_0x133c45,_0xc34f9d,_0x212c1b)=>En(_0x133c45,_0xc34f9d+'',_0x212c1b);const Rn=_0x1100bd(0x1c6);exports[_0x1100bd(0x374)]=class extends a[_0x1100bd(0x5c8)]{constructor(_0x593be8=ts,_0x2ceb3e,_0x4bf098,_0x472451,_0x1086f4){const _0x4b0b20=_0x1100bd;super(),this['_config']=_0x593be8,this[_0x4b0b20(0x340)]=_0x2ceb3e,this['_renderManagerService']=_0x4bf098,this[_0x4b0b20(0x1d8)]=_0x472451,this[_0x4b0b20(0x4c0)]=_0x1086f4;const {..._0x153ca2}=this[_0x4b0b20(0x395)];this[_0x4b0b20(0x4c0)]['setConfig'](A,_0x153ca2);}[_0x1100bd(0x4fe)](){const _0x1a095d=_0x1100bd;this[_0x1a095d(0x58c)](),a[_0x1a095d(0x5c6)](this[_0x1a095d(0x1d8)],[[ie],[exports[_0x1a095d(0x4f9)]],[Ee]]);}[_0x1100bd(0x58f)](){const _0x2dfdfa=_0x1100bd;a[_0x2dfdfa(0x5c6)](this['_injector'],[[Ie]]);}[_0x1100bd(0x4de)](){const _0x18a194=_0x1100bd;this[_0x18a194(0x4dc)]();}[_0x1100bd(0x58c)](){const _0x501712=_0x1100bd;var _0x43bcff,_0x52b995,_0x8c7d6b,_0x5b550e;this[_0x501712(0x1d8)][_0x501712(0x5a3)](a['IUndoRedoService'])&&this[_0x501712(0x340)][_0x501712(0x3d1)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x97c91a=[[a['IUndoRedoService'],{'useClass':Be}],[exports[_0x501712(0x532)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x501712(0x209)]],[P['WebSocketService']],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x52b995=(_0x43bcff=this[_0x501712(0x395)])==null?void 0x0:_0x43bcff[_0x501712(0x560)])!=null?_0x52b995:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P[_0x501712(0x449)]}],[_[_0x501712(0x477)],{'useClass':exports[_0x501712(0x5bd)]}],[a[_0x501712(0x245)],{'useClass':exports[_0x501712(0x36d)]}],[L[_0x501712(0x359)],{'useClass':exports['ImageIoService']}],[exports[_0x501712(0x38c)]],[exports['DataLoaderController']],[exports[_0x501712(0x3d3)]],[Ie],[ie]];(_0x8c7d6b=this[_0x501712(0x395)])!=null&&_0x8c7d6b[_0x501712(0x2c8)]&&_0x97c91a[_0x501712(0x414)]([be,{'useClass':ys}]),_0x97c91a=a['mergeOverrideWithDependencies'](_0x97c91a,(_0x5b550e=this[_0x501712(0x395)])==null?void 0x0:_0x5b550e[_0x501712(0x39d)]),_0x97c91a[_0x501712(0x2be)](_0x366fa8=>this[_0x501712(0x1d8)][_0x501712(0x1e0)](_0x366fa8)),this['_initModules']();}[_0x1100bd(0x4dc)](){const _0x54f65f=_0x1100bd;this[_0x54f65f(0x40b)](this[_0x54f65f(0x2ca)][_0x54f65f(0x297)](a['UniverInstanceType']['UNIVER_DOC'],[xe])),this[_0x54f65f(0x40b)](this[_0x54f65f(0x2ca)][_0x54f65f(0x297)](a[_0x54f65f(0x2e9)][_0x54f65f(0x293)],[ke]));}[_0x1100bd(0x2cf)](){const _0x1fe967=_0x1100bd;var _0x265c9e,_0x58c00b;this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](P[_0x1fe967(0x2b0)])[_0x1fe967(0x4cf)]({'priority':0x14,'interceptor':P[_0x1fe967(0x50e)]({'maxParallel':0x6})}),this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](Ce),(_0x265c9e=this[_0x1fe967(0x395)])!=null&&_0x265c9e['enableOfflineEditing']||this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](exports[_0x1fe967(0x209)])[_0x1fe967(0x4a5)](),(_0x58c00b=this[_0x1fe967(0x395)])!=null&&_0x58c00b[_0x1fe967(0x3f7)]&&this['_injector'][_0x1fe967(0x1f4)](pe),this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](exports[_0x1fe967(0x38c)]),this[_0x1fe967(0x1d8)]['has'](exports[_0x1fe967(0x3d3)])&&this['_injector']['get'](exports[_0x1fe967(0x3d3)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x1100bd(0x4b4),Rn),exports[_0x1100bd(0x374)]=bn([a[_0x1100bd(0x2e2)](_[_0x1100bd(0x537)]),ve(0x1,a[_0x1100bd(0x49b)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a['Inject'](a[_0x1100bd(0x2a1)])),ve(0x4,a[_0x1100bd(0x32b)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Mt,exports[_0x1100bd(0x571)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x1100bd(0x58e)]=y,exports[_0x1100bd(0x31f)]=wt,exports[_0x1100bd(0x24a)]=Ge,exports[_0x1100bd(0x52a)]=dt,exports[_0x1100bd(0x34c)]=Ve,exports[_0x1100bd(0x40d)]=Fe,exports[_0x1100bd(0x37e)]=ze,exports[_0x1100bd(0x490)]=ft,exports[_0x1100bd(0x51c)]=mt,exports[_0x1100bd(0x2d1)]=vt,exports[_0x1100bd(0x1fd)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x1100bd(0x527)]=_t,exports[_0x1100bd(0x37a)]=$,exports[_0x1100bd(0x1da)]=Ot,exports[_0x1100bd(0x27e)]=Nt,exports[_0x1100bd(0x3a4)]=Ct,exports[_0x1100bd(0x2b1)]=Et;