@univerjs-pro/collaboration-client 0.5.0-nightly.202411141606 → 0.5.0-nightly.202411151606

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 _0x2683e6=_0x479a;(function(_0x2bba74,_0x2d589e){const _0x1de600=_0x479a,_0x8d06c3=_0x2bba74();while(!![]){try{const _0x56f181=parseInt(_0x1de600(0x2ac))/0x1+-parseInt(_0x1de600(0x4a8))/0x2+parseInt(_0x1de600(0x23d))/0x3+parseInt(_0x1de600(0x5f8))/0x4*(-parseInt(_0x1de600(0x15c))/0x5)+parseInt(_0x1de600(0x5a1))/0x6*(-parseInt(_0x1de600(0x2b4))/0x7)+-parseInt(_0x1de600(0x371))/0x8*(-parseInt(_0x1de600(0x3aa))/0x9)+parseInt(_0x1de600(0x513))/0xa;if(_0x56f181===_0x2d589e)break;else _0x8d06c3['push'](_0x8d06c3['shift']());}catch(_0x441d1a){_0x8d06c3['push'](_0x8d06c3['shift']());}}}(_0x21f6,0xf08c5));var Ln=Object[_0x2683e6(0x1e7)],xn=(_0x41e7d6,_0x4689ea,_0x269f16)=>_0x4689ea in _0x41e7d6?Ln(_0x41e7d6,_0x4689ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x269f16}):_0x41e7d6[_0x4689ea]=_0x269f16,I=(_0x41e76b,_0x55e5ec,_0x3915f2)=>xn(_0x41e76b,typeof _0x55e5ec!=_0x2683e6(0x2db)?_0x55e5ec+'':_0x55e5ec,_0x3915f2);Object[_0x2683e6(0x1e7)](exports,Symbol['toStringTag'],{'value':'Module'});const a=require(_0x2683e6(0x37d)),A=require('rxjs'),V=require('rxjs/operators'),ge=require(_0x2683e6(0x26d)),ee=require(_0x2683e6(0x466)),Z=require(_0x2683e6(0x310)),S=require(_0x2683e6(0x299)),jn=require(_0x2683e6(0x1a4)),J=require('@univerjs/docs-ui'),k=require(_0x2683e6(0x44c)),K=require(_0x2683e6(0x555)),ye=require('@univerjs/docs'),ne=require(_0x2683e6(0x268)),Pt=require(_0x2683e6(0x298)),Re=require(_0x2683e6(0x23e)),ae=require(_0x2683e6(0x4ef)),$n=require(_0x2683e6(0x4c5)),Zt=_0x2683e6(0x5a8),Hn='/universer-api/snapshot',Qt=_0x2683e6(0x4f8),Bn=_0x2683e6(0x4ff),kn=0x7d0,en=_0x2683e6(0x5bf),Wn='ws://127.0.0.1:8000/universer-api/comb/connect',tn=_0x2683e6(0x4ad),Fn=0x7530,Ct=_0x2683e6(0x2be),nn=0x4e20,Vn=0x4e20,sn=_0x2683e6(0x1cc),Gn=0x3,rn=_0x2683e6(0x396),Yn=0x3e8,on=_0x2683e6(0x2c0),Kn=_0x2683e6(0x5fe),an=_0x2683e6(0x481),qn=_0x2683e6(0x41b);var cn=(_0xf5184a=>(_0xf5184a[_0xf5184a[_0x2683e6(0x5a5)]=0x0]=_0x2683e6(0x5a5),_0xf5184a[_0xf5184a['OK']=0x1]='OK',_0xf5184a[_0xf5184a[_0x2683e6(0x158)]=0x2]=_0x2683e6(0x158),_0xf5184a[_0xf5184a[_0x2683e6(0x3d3)]=0x3]=_0x2683e6(0x3d3),_0xf5184a[_0xf5184a[_0x2683e6(0x469)]=0x4]=_0x2683e6(0x469),_0xf5184a[_0xf5184a['UNAUTHENTICATED']=0x5]=_0x2683e6(0x17f),_0xf5184a[_0xf5184a['ALREADY_EXISTS']=0x6]=_0x2683e6(0x546),_0xf5184a[_0xf5184a[_0x2683e6(0x390)]=0x7]=_0x2683e6(0x390),_0xf5184a[_0xf5184a[_0x2683e6(0x568)]=0x8]=_0x2683e6(0x568),_0xf5184a[_0xf5184a[_0x2683e6(0x3e8)]=0x9]=_0x2683e6(0x3e8),_0xf5184a[_0xf5184a[_0x2683e6(0x536)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xf5184a[_0xf5184a[_0x2683e6(0x354)]=0x1771]=_0x2683e6(0x354),_0xf5184a[_0xf5184a[_0x2683e6(0x54f)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf5184a[_0xf5184a[_0x2683e6(0x1e6)]=0x1773]=_0x2683e6(0x1e6),_0xf5184a[_0xf5184a[_0x2683e6(0x3f1)]=0x1b59]=_0x2683e6(0x3f1),_0xf5184a[_0xf5184a[_0x2683e6(0x382)]=0x1b5a]=_0x2683e6(0x382),_0xf5184a[_0xf5184a[_0x2683e6(0x1fa)]=0x1b5b]=_0x2683e6(0x1fa),_0xf5184a[_0xf5184a[_0x2683e6(0x217)]=0x1b5c]=_0x2683e6(0x217),_0xf5184a[_0xf5184a[_0x2683e6(0x398)]=0x1b5d]=_0x2683e6(0x398),_0xf5184a[_0xf5184a[_0x2683e6(0x5fa)]=0x1f41]=_0x2683e6(0x5fa),_0xf5184a[_0xf5184a[_0x2683e6(0x156)]=0x2329]=_0x2683e6(0x156),_0xf5184a[_0xf5184a[_0x2683e6(0x467)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x5c1)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x54b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x152)]=0x232d]=_0x2683e6(0x152),_0xf5184a[_0xf5184a[_0x2683e6(0x376)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xf5184a[_0xf5184a[_0x2683e6(0x56c)]=0x2712]=_0x2683e6(0x56c),_0xf5184a[_0xf5184a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2683e6(0x1c8),_0xf5184a[_0xf5184a[_0x2683e6(0x22f)]=0x2714]=_0x2683e6(0x22f),_0xf5184a[_0xf5184a[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xf5184a))(cn||{}),ie=(_0x4af399=>(_0x4af399[_0x4af399[_0x2683e6(0x41d)]=0x0]=_0x2683e6(0x41d),_0x4af399[_0x4af399[_0x2683e6(0x56e)]=0x1]='UNIVER_DOC',_0x4af399[_0x4af399['UNIVER_SHEET']=0x2]=_0x2683e6(0x4a1),_0x4af399[_0x4af399[_0x2683e6(0x1fc)]=0x3]=_0x2683e6(0x1fc),_0x4af399[_0x4af399[_0x2683e6(0x311)]=0x4]=_0x2683e6(0x311),_0x4af399[_0x4af399[_0x2683e6(0x165)]=-0x1]='UNRECOGNIZED',_0x4af399))(ie||{}),G=(_0xbce49b=>(_0xbce49b[_0xbce49b[_0x2683e6(0x435)]=0x0]=_0x2683e6(0x435),_0xbce49b[_0xbce49b['HELLO']=0x1]=_0x2683e6(0x1c3),_0xbce49b[_0xbce49b[_0x2683e6(0x426)]=0x2]=_0x2683e6(0x426),_0xbce49b[_0xbce49b['LEAVE']=0x3]='LEAVE',_0xbce49b[_0xbce49b[_0x2683e6(0x3c9)]=0x4]=_0x2683e6(0x3c9),_0xbce49b[_0xbce49b[_0x2683e6(0x530)]=0x5]=_0x2683e6(0x530),_0xbce49b[_0xbce49b[_0x2683e6(0x4c8)]=0x6]='RECV',_0xbce49b[_0xbce49b[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xbce49b))(G||{}),Et=(_0xf65f35=>(_0xf65f35[_0xf65f35[_0x2683e6(0x41c)]=0x0]=_0x2683e6(0x41c),_0xf65f35[_0xf65f35['OK']=0x1]='OK',_0xf65f35[_0xf65f35[_0x2683e6(0x44e)]=0x2]=_0x2683e6(0x44e),_0xf65f35[_0xf65f35[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xf65f35))(Et||{}),ln=(_0x37cf12=>(_0x37cf12[_0x37cf12[_0x2683e6(0x2a8)]=0x0]=_0x2683e6(0x2a8),_0x37cf12[_0x37cf12[_0x2683e6(0x1ab)]=0x1]='HttpImport',_0x37cf12[_0x37cf12['HttpExport']=0x2]=_0x2683e6(0x4e4),_0x37cf12[_0x37cf12[_0x2683e6(0x20c)]=0x3]=_0x2683e6(0x20c),_0x37cf12[_0x37cf12[_0x2683e6(0x5c4)]=0x4]=_0x2683e6(0x5c4),_0x37cf12[_0x37cf12[_0x2683e6(0x165)]=-0x1]='UNRECOGNIZED',_0x37cf12))(ln||{});const te='collaboration-client.config',zn={};function hn(_0x12406b){const _0x54e4ff=_0x2683e6;var _0x301591,_0x20dc64,_0x76b17b,_0x50bccf,_0x5ad00f;const _0x25a1d5=_0x12406b[_0x54e4ff(0x5ac)],_0x28e77c=JSON[_0x54e4ff(0x18e)](_0x25a1d5);switch(_0x28e77c[_0x54e4ff(0x57a)]){case G[_0x54e4ff(0x530)]:case G['HELLO']:{const _0x2213e9=_0x28e77c[_0x54e4ff(0x38b)];return{..._0x28e77c,'data':_0x2213e9,'cmd':_0x28e77c[_0x54e4ff(0x57a)]};}case G[_0x54e4ff(0x426)]:{const _0x47468e=_0x28e77c[_0x54e4ff(0x5f0)];return{..._0x28e77c,'data':_0x47468e,'cmd':_0x28e77c[_0x54e4ff(0x57a)]};}case G[_0x54e4ff(0x4c8)]:{const _0x3753d5=_0x28e77c[_0x54e4ff(0x20a)];switch(_0x3753d5['eventID']){case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x4e1)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x301591=_0x3753d5['permissionRejEvent'])==null?void 0x0:_0x301591['cs']},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)]['CHANGESET_ACK']:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x20dc64=_0x3753d5[_0x54e4ff(0x5d2)])==null?void 0x0:_0x20dc64['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x3da)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x76b17b=_0x3753d5[_0x54e4ff(0x463)])==null?void 0x0:_0x76b17b['cs']},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x1bf)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x50bccf=_0x3753d5[_0x54e4ff(0x360)])==null?void 0x0:_0x50bccf['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['CHANGESET_SHOULD_RETRY']:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x5ad00f=_0x3753d5[_0x54e4ff(0x583)])==null?void 0x0:_0x5ad00f['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S['CollaborationEvent'][_0x54e4ff(0x470)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['updateCursorEvent']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x221)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x3a0)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['USERS_LEAVE']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x1be)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['LIVESHARE_NEW_HOST']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['liveShareNewHost']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x22e)]:case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x338)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x54c)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x412)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x3ce)]},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x5f1)]:return{..._0x28e77c,'data':_0x3753d5,'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x176)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['commentUpdateEvent']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['UPDATE_PERMISSION_OBJ']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['updatePermissionObjEvent']},'cmd':_0x28e77c['cmd']};case S['CollaborationEvent'][_0x54e4ff(0x235)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x46d)]},'cmd':_0x28e77c['cmd']};default:return _0x28e77c;}}default:return _0x28e77c;}}function _n(_0x534a41){const _0x3370f5=_0x2683e6;switch(_0x534a41[_0x3370f5(0x57a)]){case G[_0x3370f5(0x530)]:case G['HELLO']:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41['routeKey']});case G[_0x3370f5(0x3c9)]:{let _0x320e48;switch(_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x477)]){case S[_0x3370f5(0x3d6)][_0x3370f5(0x470)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)]['UPDATE_CURSOR'],'updateCursorEvent':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x388)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x388)],'leaveEvent':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S['CollaborationEvent']['USERS_ENTER']:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x221)],'joinEvent':_0x534a41['data'][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x283)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x283)],'liveShareNewHost':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)]['LIVESHARE_OPERATION']:{_0x320e48={'eventID':S['CollaborationEvent'][_0x3370f5(0x338)],'liveShareOperation':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x412)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x412)],'liveShareTerminate':_0x534a41[_0x3370f5(0x5ac)]['data']};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x31f)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x31f)],'liveShareRequestHost':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S['CollaborationEvent'][_0x3370f5(0x22e)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x22e)]};break;}default:_0x320e48={'eventID':_0x534a41['data']['eventID']};}return JSON['stringify']({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41[_0x3370f5(0x453)],'collaMsg':_0x320e48});}case G['JOIN']:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41['cmd'],'routeKey':_0x534a41[_0x3370f5(0x453)],'joinReq':_0x534a41[_0x3370f5(0x5ac)]});case G[_0x3370f5(0x34e)]:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41[_0x3370f5(0x453)],'leaveReq':_0x534a41[_0x3370f5(0x5ac)]});default:throw new Error(_0x3370f5(0x159));}}var Xn=Object[_0x2683e6(0x1e7)],Jn=Object[_0x2683e6(0x181)],Zn=(_0x1ee3f7,_0x1bafea,_0x411326,_0x60ead1)=>{const _0xd8d04e=_0x2683e6;for(var _0x15140d=_0x60ead1>0x1?void 0x0:_0x60ead1?Jn(_0x1bafea,_0x411326):_0x1bafea,_0x33a041=_0x1ee3f7[_0xd8d04e(0x29a)]-0x1,_0x50e55e;_0x33a041>=0x0;_0x33a041--)(_0x50e55e=_0x1ee3f7[_0x33a041])&&(_0x15140d=(_0x60ead1?_0x50e55e(_0x1bafea,_0x411326,_0x15140d):_0x50e55e(_0x15140d))||_0x15140d);return _0x60ead1&&_0x15140d&&Xn(_0x1bafea,_0x411326,_0x15140d),_0x15140d;},we=(_0x4c89c2,_0x524bc7)=>(_0x257b61,_0x482e5f)=>_0x524bc7(_0x257b61,_0x482e5f,_0x4c89c2);const bt=a['createIdentifier'](_0x2683e6(0x545));function Qn(_0x5e1469,_0x3a4339,_0x1bc500){const _0x1f7d4b=_0x2683e6;return _0x5e1469+'/'+_0x3a4339+_0x1f7d4b(0x182)+_0x1bc500+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x2683e6(0x3cc)]{constructor(_0x4a74c3,_0x5d8978,_0x454796,_0x527b8f,_0x26fb0f){const _0x3826f8=_0x2683e6;super(),this[_0x3826f8(0x1d7)]=_0x4a74c3,this[_0x3826f8(0x5a0)]=_0x5d8978,this[_0x3826f8(0x3d1)]=_0x454796,this['_logService']=_0x527b8f,this['_snapshotServerService']=_0x26fb0f;}['createSocket'](_0x157d63){const _0x3b1ecf=_0x2683e6,_0x22263a=this['_ws'][_0x3b1ecf(0x3eb)](_0x157d63);if(!_0x22263a)throw new Error(_0x3b1ecf(0x1b5));const _0x2a3641=new a['DisposableCollection'](),_0x202ff8=new A['Subject']();_0x2a3641[_0x3b1ecf(0x494)](_0x22263a[_0x3b1ecf(0x168)]['subscribe'](_0x5315aa=>_0x202ff8['next'](_0x5315aa))),_0x2a3641[_0x3b1ecf(0x494)](a[_0x3b1ecf(0x454)](()=>_0x202ff8[_0x3b1ecf(0x438)]()));const _0x54faaf=new A[(_0x3b1ecf(0x51b))]();_0x2a3641['add'](_0x22263a[_0x3b1ecf(0x263)]['subscribe'](_0x571ced=>_0x54faaf[_0x3b1ecf(0x40f)](_0x571ced))),_0x2a3641['add'](a[_0x3b1ecf(0x454)](()=>_0x54faaf[_0x3b1ecf(0x438)]()));const _0x47259c=new A['Subject']();_0x2a3641[_0x3b1ecf(0x494)](_0x22263a[_0x3b1ecf(0x492)]['subscribe'](_0x26178c=>{const _0x17e456=_0x3b1ecf,_0x572907=hn(_0x26178c);_0x47259c[_0x17e456(0x40f)](_0x572907);})),_0x2a3641['add'](a[_0x3b1ecf(0x454)](()=>_0x47259c[_0x3b1ecf(0x438)]()));let _0x395f8e;const _0x1cd90e=()=>{const _0x594092=_0x3b1ecf;_0x54faaf[_0x594092(0x40f)](new Event(_0x594092(0x57d))),_0x202ff8['next'](new CloseEvent(_0x594092(0x57d))),_0x395f8e[_0x594092(0x3e4)]();};return _0x395f8e={'memberID':'','close$':_0x202ff8[_0x3b1ecf(0x4f2)](),'error$':_0x54faaf[_0x3b1ecf(0x4f2)](),'open$':_0x22263a['open$'],'message$':_0x47259c[_0x3b1ecf(0x4f2)](),'send':_0x37e17a=>{const _0x178ac2=_0x3b1ecf;if(_0x37e17a[_0x178ac2(0x57a)]===G[_0x178ac2(0x3c9)]){if(_0x37e17a[_0x178ac2(0x5ac)][_0x178ac2(0x477)]===S[_0x178ac2(0x3d6)]['SUBMIT_CHANGESET']){this[_0x178ac2(0x595)](_0x395f8e,_0x37e17a[_0x178ac2(0x5ac)])['catch'](_0x431465=>{const _0x5d906c=_0x178ac2;this[_0x5d906c(0x577)]['error'](_0x431465),_0x1cd90e();});return;}if(_0x37e17a[_0x178ac2(0x5ac)][_0x178ac2(0x477)]===S[_0x178ac2(0x3d6)]['FETCH_MISSING']){const _0x2a2773=_0x37e17a[_0x178ac2(0x5ac)];this[_0x178ac2(0x21e)](_0x2a2773)['then'](_0x152277=>{const _0x4530fb=_0x178ac2;_0x47259c[_0x4530fb(0x40f)]({'cmd':G[_0x4530fb(0x4c8)],'code':Et['OK'],'routeKey':_0x2a2773['data']['unitID'],'routeType':'','data':{'eventID':S['CollaborationEvent'][_0x4530fb(0x4d1)],'data':{'changesets':_0x152277}}});})['catch'](_0x13aaa5=>{const _0x2db646=_0x178ac2;this[_0x2db646(0x577)][_0x2db646(0x461)](_0x13aaa5),_0x1cd90e();});return;}}_0x22263a[_0x178ac2(0x4ae)](_n(_0x37e17a));},'close':()=>{const _0x918073=_0x3b1ecf;_0x22263a[_0x918073(0x3e4)](),_0x2a3641[_0x918073(0x269)]();}},_0x395f8e;}async[_0x2683e6(0x595)](_0x56b138,_0x7bbcd4){const _0x24ea24=_0x2683e6;var _0x1abd69,_0x1b2f08;const {unitType:_0x12a9da,unitID:_0x46c63a,changeset:_0x2289fe}=_0x7bbcd4[_0x24ea24(0x5ac)],_0x1bc365={'unitID':_0x46c63a,'memberID':_0x56b138[_0x24ea24(0x30e)],'type':_0x12a9da,'changeset':S['parseChangesetToProtocol'](_0x2289fe)},_0xe3b895=this['_configService'][_0x24ea24(0x496)](on),_0x5c3022=this[_0x24ea24(0x3d1)][_0x24ea24(0x496)](te),_0x582904=Qn((_0x1b2f08=(_0x1abd69=_0x5c3022==null?void 0x0:_0x5c3022[_0x24ea24(0x315)])!=null?_0x1abd69:_0xe3b895)!=null?_0x1b2f08:Kn,_0x12a9da,_0x46c63a);try{await this[_0x24ea24(0x1d7)][_0x24ea24(0x551)](_0x582904,{'body':_0x1bc365});}catch(_0x161b5f){throw this[_0x24ea24(0x577)][_0x24ea24(0x461)](_0x24ea24(0x5ca),'submit\x20changeset\x20error!'),_0x161b5f;}}async[_0x2683e6(0x21e)](_0x207754){const _0x2773a0=_0x2683e6,{unitID:_0x3bbdcd,from:_0x5d83a5,to:_0x1d20e6,unitType:_0x2e8626}=_0x207754[_0x2773a0(0x5ac)];return(await this[_0x2773a0(0x1e5)][_0x2773a0(0x606)]({'metadata':void 0x0},{'unitID':_0x3bbdcd,'type':_0x2e8626,'from':_0x5d83a5,'to':_0x1d20e6}))[_0x2773a0(0x29f)];}},exports[_0x2683e6(0x5bb)]=Zn([we(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),we(0x1,a['Inject'](Z['WebSocketService'])),we(0x2,a['IConfigService']),we(0x3,a['ILogService']),we(0x4,S['ISnapshotServerService'])],exports[_0x2683e6(0x5bb)]);const ei=_0x2683e6(0x19f);function ti(_0x1ea806){const _0x26eb0f=_0x2683e6;return JSON[_0x26eb0f(0x40e)](_0x1ea806)[_0x26eb0f(0x29a)];}class Tt{constructor(){const _0x2b338e=_0x2683e6;I(this,_0x2b338e(0x1e8),new A['Subject']()),I(this,_0x2b338e(0x49d),this[_0x2b338e(0x1e8)][_0x2b338e(0x4f2)]());}[_0x2683e6(0x5fb)](_0x76751d){const _0x28e8bb=_0x2683e6;this[_0x28e8bb(0x1e8)][_0x28e8bb(0x40f)](_0x76751d);}}var ni=Object[_0x2683e6(0x1e7)],ii=Object[_0x2683e6(0x181)],si=(_0x4630bc,_0x1e1397,_0x109f7a,_0xfde637)=>{const _0x112118=_0x2683e6;for(var _0x5d0b08=_0xfde637>0x1?void 0x0:_0xfde637?ii(_0x1e1397,_0x109f7a):_0x1e1397,_0x440d99=_0x4630bc[_0x112118(0x29a)]-0x1,_0x14030b;_0x440d99>=0x0;_0x440d99--)(_0x14030b=_0x4630bc[_0x440d99])&&(_0x5d0b08=(_0xfde637?_0x14030b(_0x1e1397,_0x109f7a,_0x5d0b08):_0x14030b(_0x5d0b08))||_0x5d0b08);return _0xfde637&&_0x5d0b08&&ni(_0x1e1397,_0x109f7a,_0x5d0b08),_0x5d0b08;},Ut=(_0x2f95ec,_0x3ff680)=>(_0x4ba7b6,_0x3f6e10)=>_0x3ff680(_0x4ba7b6,_0x3f6e10,_0x2f95ec);exports[_0x2683e6(0x184)]=class extends a['Disposable']{constructor(_0xfe3611,_0x404e17){const _0x59f525=_0x2683e6;super(),I(this,_0x59f525(0x377),new Map()),(this[_0x59f525(0x45b)]=_0xfe3611,this[_0x59f525(0x291)]=_0x404e17,this[_0x59f525(0x427)](a['toDisposable'](A['merge'](this[_0x59f525(0x45b)]['getTypeOfUnitDisposed$'](a[_0x59f525(0x342)]['UNIVER_SHEET'])[_0x59f525(0x36b)](V[_0x59f525(0x538)](_0x2b5b01=>_0x2b5b01[_0x59f525(0x478)]())),this['_univerInstanceService'][_0x59f525(0x3b4)](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](V[_0x59f525(0x538)](_0x3a758f=>_0x3a758f['getUnitId']())),this[_0x59f525(0x45b)][_0x59f525(0x3b4)](a[_0x59f525(0x342)][_0x59f525(0x1fc)])['pipe'](V[_0x59f525(0x538)](_0x10bcc6=>_0x10bcc6[_0x59f525(0x478)]())))[_0x59f525(0x44d)](_0x55283a=>this[_0x59f525(0x2dd)](_0x55283a)))));}[_0x2683e6(0x306)](_0x28d98b){const _0x4c4679=_0x2683e6;this[_0x4c4679(0x291)][_0x4c4679(0x306)](_0x28d98b);}[_0x2683e6(0x39d)](){const _0x5b8f36=_0x2683e6;return this[_0x5b8f36(0x291)][_0x5b8f36(0x39d)]();}[_0x2683e6(0x499)](_0x19469f,_0x45f431){const _0x7fcdc=_0x2683e6;let _0x258822=this[_0x7fcdc(0x377)][_0x7fcdc(0x553)](_0x19469f);_0x258822||(_0x258822=new ri(),this[_0x7fcdc(0x377)][_0x7fcdc(0x46f)](_0x19469f,_0x258822)),_0x258822['updateMember'](_0x45f431);}[_0x2683e6(0x222)](_0x39306d,_0x5e8e9d){const _0x5230e3=_0x2683e6,_0x2b2b26=this[_0x5230e3(0x377)][_0x5230e3(0x553)](_0x39306d);_0x2b2b26&&_0x2b2b26[_0x5230e3(0x222)](_0x5e8e9d);}[_0x2683e6(0x5ab)](_0x2594a3){const _0xdfb8d=_0x2683e6;return this[_0xdfb8d(0x377)][_0xdfb8d(0x553)](_0x2594a3);}[_0x2683e6(0x55d)](_0x50acbd,_0x4874fc){const _0x45d0a7=_0x2683e6,_0x55e188=this['_roomMembers'][_0x45d0a7(0x553)](_0x50acbd);if(_0x55e188)return _0x55e188['getMember'](_0x4874fc);}[_0x2683e6(0x2dd)](_0x2dca80){const _0x151b1d=_0x2683e6,_0x5ec9c4=this[_0x151b1d(0x377)]['get'](_0x2dca80);_0x5ec9c4&&(_0x5ec9c4['dispose'](),this[_0x151b1d(0x377)][_0x151b1d(0x27e)](_0x2dca80));}['dispose'](){const _0x454511=_0x2683e6;this[_0x454511(0x377)][_0x454511(0x280)](_0x1a1b82=>_0x1a1b82[_0x454511(0x269)]()),this['_roomMembers'][_0x454511(0x308)]();}},exports[_0x2683e6(0x184)]=si([Ut(0x0,a[_0x2683e6(0x468)]),Ut(0x1,a['Inject'](a[_0x2683e6(0x18d)]))],exports[_0x2683e6(0x184)]);class ri extends a[_0x2683e6(0x3cc)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x2683e6(0x269)](){const _0x5f3876=_0x2683e6;this[_0x5f3876(0x51d)][_0x5f3876(0x308)]();}[_0x2683e6(0x499)](_0x3407a8){const _0x3a2179=_0x2683e6;this[_0x3a2179(0x51d)]['set'](_0x3407a8['memberID'],_0x3407a8);}[_0x2683e6(0x222)](_0x43e937){const _0x5e6754=_0x2683e6;this[_0x5e6754(0x51d)]['delete'](_0x43e937);}['getMember'](_0x3eac44){const _0x10c907=_0x2683e6;return this[_0x10c907(0x51d)]['get'](_0x3eac44);}['getAllMembers'](){const _0x5a7d86=_0x2683e6;return Array['from'](this[_0x5a7d86(0x51d)]['values']());}}var oi=Object['defineProperty'],ai=Object[_0x2683e6(0x181)],ci=(_0x39d0c0,_0x1b5ddd,_0x54af82,_0x21c033)=>{const _0x177722=_0x2683e6;for(var _0x1803b1=_0x21c033>0x1?void 0x0:_0x21c033?ai(_0x1b5ddd,_0x54af82):_0x1b5ddd,_0xc48736=_0x39d0c0[_0x177722(0x29a)]-0x1,_0x390df9;_0xc48736>=0x0;_0xc48736--)(_0x390df9=_0x39d0c0[_0xc48736])&&(_0x1803b1=(_0x21c033?_0x390df9(_0x1b5ddd,_0x54af82,_0x1803b1):_0x390df9(_0x1803b1))||_0x1803b1);return _0x21c033&&_0x1803b1&&oi(_0x1b5ddd,_0x54af82,_0x1803b1),_0x1803b1;},de=(_0x538cd5,_0x3e6927)=>(_0x186c39,_0xfef94f)=>_0x3e6927(_0x186c39,_0xfef94f,_0x538cd5),se=(_0x103b56=>(_0x103b56[_0x103b56[_0x2683e6(0x55c)]=0x0]=_0x2683e6(0x55c),_0x103b56[_0x103b56['JOINING']=0x1]=_0x2683e6(0x38f),_0x103b56[_0x103b56[_0x2683e6(0x25a)]=0x2]=_0x2683e6(0x25a),_0x103b56[_0x103b56[_0x2683e6(0x191)]=0x3]=_0x2683e6(0x191),_0x103b56))(se||{});exports[_0x2683e6(0x5eb)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x386fd9,_0xdc9562,_0x2fd059,_0x1f34b3,_0x38c73b,_0x2dbbdc,_0x4f9f61,_0x388f67,_0x13a1cc,_0x19998c){const _0x2fafda=_0x2683e6;super(),I(this,_0x2fafda(0x2b6),new A['BehaviorSubject'](0x0)),I(this,_0x2fafda(0x497),this['_sessionStatus$']['asObservable']()),I(this,_0x2fafda(0x55e),new A['Subject']()),I(this,_0x2fafda(0x279),this['_event$']['asObservable']()),I(this,_0x2fafda(0x1ee)),I(this,_0x2fafda(0x558)),I(this,_0x2fafda(0x3d7)),I(this,_0x2fafda(0x3a2),!0x1),I(this,_0x2fafda(0x239),null),(this['_unitID']=_0x386fd9,this[_0x2fafda(0x577)]=_0x2fd059,this[_0x2fafda(0x264)]=_0x1f34b3,this[_0x2fafda(0x167)]=_0x38c73b,this[_0x2fafda(0x3d1)]=_0x2dbbdc,this[_0x2fafda(0x347)]=_0x4f9f61,this[_0x2fafda(0x2cf)]=_0x388f67,this['_commentService']=_0x13a1cc,this[_0x2fafda(0x473)]=_0x19998c,this[_0x2fafda(0x3a2)]=!!this[_0x2fafda(0x473)],_0xdc9562[_0x2fafda(0x36b)](A[_0x2fafda(0x35f)](this[_0x2fafda(0x534)]))[_0x2fafda(0x44d)](_0x313b3a=>{const _0x303e5f=_0x2fafda;var _0x163417;typeof _0x313b3a>'u'||(this[_0x303e5f(0x1ee)]=_0x313b3a,_0x313b3a?(this['_joinRoom'](_0x313b3a),this[_0x303e5f(0x558)]=_0x313b3a[_0x303e5f(0x492)]['subscribe'](_0x1b211b=>{_0x1b211b['routeKey']===this['_unitID']&&this['_onCombEvent'](_0x1b211b);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x303e5f(0x40f)](0x2),(_0x163417=this[_0x303e5f(0x558)])==null||_0x163417[_0x303e5f(0x334)](),this[_0x303e5f(0x558)]=null));}),this['disposeWithMe'](this['_beforeCloseService']['registerOnClose'](()=>{const _0x3cdc15=_0x2fafda;var _0x5c1ff3;(_0x5c1ff3=this[_0x3cdc15(0x1ee)])==null||_0x5c1ff3[_0x3cdc15(0x4ae)]({'cmd':G[_0x3cdc15(0x34e)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x56f218=_0x2683e6;return this[_0x56f218(0x2b6)][_0x56f218(0x1fb)]();}[_0x2683e6(0x4c2)](){const _0x165557=_0x2683e6;var _0x29cca0,_0x4bd252;return(_0x4bd252=(_0x29cca0=this[_0x165557(0x1ee)])==null?void 0x0:_0x29cca0['memberID'])!=null?_0x4bd252:null;}[_0x2683e6(0x269)](){const _0x21b68c=_0x2683e6;super[_0x21b68c(0x269)](),this[_0x21b68c(0x534)][_0x21b68c(0x40f)](),this[_0x21b68c(0x534)][_0x21b68c(0x438)]();}['close'](){const _0x969d2a=_0x2683e6;var _0xc24c15,_0x531bf0;this[_0x969d2a(0x261)](),(_0xc24c15=this[_0x969d2a(0x1ee)])==null||_0xc24c15[_0x969d2a(0x4ae)]({'cmd':G[_0x969d2a(0x34e)],'data':{'roomID':this[_0x969d2a(0x225)]}}),(_0x531bf0=this['_socket'])==null||_0x531bf0[_0x969d2a(0x3e4)](),this['_event$'][_0x969d2a(0x438)](),this['_sessionStatus$'][_0x969d2a(0x438)](),this[_0x969d2a(0x269)]();}[_0x2683e6(0x5b5)](_0x3e27d2){const _0x1a4729=_0x2683e6;_0x3e27d2[_0x1a4729(0x57a)]===G[_0x1a4729(0x426)]?this[_0x1a4729(0x505)](_0x3e27d2):_0x3e27d2[_0x1a4729(0x57a)]===G[_0x1a4729(0x4c8)]&&this[_0x1a4729(0x46c)](_0x3e27d2);}[_0x2683e6(0x527)](_0xc4fb3e){const _0x31c74d=_0x2683e6;this[_0x31c74d(0x2b6)][_0x31c74d(0x40f)](0x1),_0xc4fb3e[_0x31c74d(0x4ae)]({'cmd':G[_0x31c74d(0x426)],'routeKey':this[_0x31c74d(0x225)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2683e6(0x505)](_0xed4a12){const _0x32e5dc=_0x2683e6;var _0xe4b37;if(_0xed4a12[_0x32e5dc(0x443)]===Et['FAIL']){this[_0x32e5dc(0x167)]['show']({'type':ge['MessageType']['Warning'],'content':this['_localeService']['t'](_0x32e5dc(0x47a))}),this[_0x32e5dc(0x2b6)][_0x32e5dc(0x40f)](0x2);return;}this[_0x32e5dc(0x2b6)][_0x32e5dc(0x40f)](0x3);const _0x1645ff=(_0xe4b37=_0xed4a12[_0x32e5dc(0x5ac)][_0x32e5dc(0x38c)][this[_0x32e5dc(0x225)]])==null?void 0x0:_0xe4b37[_0x32e5dc(0x51c)];_0x1645ff&&_0x1645ff[_0x32e5dc(0x280)](_0x5b936c=>this[_0x32e5dc(0x2cf)][_0x32e5dc(0x499)](this['_unitID'],_0x5b936c));}[_0x2683e6(0x46c)](_0x3a836a){const _0x36160d=_0x2683e6;try{const _0x152d25=_0x3a836a[_0x36160d(0x5ac)];switch(_0x152d25[_0x36160d(0x477)]){case S[_0x36160d(0x3d6)][_0x36160d(0x221)]:this['_onUserJoin'](_0x152d25),this['_event$'][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x388)]:this[_0x36160d(0x1fd)](_0x152d25),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x2e1)]:case S[_0x36160d(0x3d6)][_0x36160d(0x4e5)]:this[_0x36160d(0x4e0)](),this[_0x36160d(0x26a)](),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x5f1)]:this[_0x36160d(0x577)][_0x36160d(0x461)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x36160d(0x40e)](_0x152d25)),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x176)]:this['_commentService'][_0x36160d(0x5fb)](_0x152d25[_0x36160d(0x5ac)]),this['_event$'][_0x36160d(0x40f)](_0x152d25);break;default:this['_event$'][_0x36160d(0x40f)](_0x152d25);}}catch(_0x51754c){this[_0x36160d(0x577)]['error'](_0x51754c,_0x3a836a);}}[_0x2683e6(0x4ce)](_0x513d2f){const _0x2bb5e9=_0x2683e6;this[_0x2bb5e9(0x2cf)][_0x2bb5e9(0x499)](this[_0x2bb5e9(0x225)],_0x513d2f['data']);}['_onUserLeave'](_0x22ede5){const _0x129eaf=_0x2683e6;this['_memberService'][_0x129eaf(0x222)](this[_0x129eaf(0x225)],_0x22ede5[_0x129eaf(0x5ac)]['memberID']);}async['send'](_0x17befa,_0x33ad86){const _0x365e9e=_0x2683e6;if(this['sessionStatus']!==0x3||!this[_0x365e9e(0x1ee)])throw new Error(_0x365e9e(0x383));try{_0x17befa[_0x365e9e(0x477)]===S['CollaborationEvent'][_0x365e9e(0x2a4)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x17befa)),this[_0x365e9e(0x1ee)]['send']({'cmd':G['INGEST'],'routeKey':_0x33ad86,'routeType':'','data':_0x17befa});}catch(_0x3de715){this['_logService'][_0x365e9e(0x461)](_0x3de715);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4b77db=_0x2683e6;var _0x419b36;this[_0x4b77db(0x3d7)]=window[_0x4b77db(0x352)](()=>{const _0x107b20=_0x4b77db;this[_0x107b20(0x3d7)]=null,this[_0x107b20(0x167)]['show']({'type':ge['MessageType'][_0x107b20(0x272)],'content':this[_0x107b20(0x347)]['t']('session.collaboration-timeout')});},(_0x419b36=this['_configService'][_0x4b77db(0x496)](Ct))!=null?_0x419b36:nn);}[_0x2683e6(0x26a)](){const _0x2207f4=_0x2683e6;this[_0x2207f4(0x3d7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x2207f4(0x3d7)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x19f20c){const _0x19a48b=_0x2683e6;if(!this[_0x19a48b(0x3a2)])return;const {data:_0x3f57d9}=_0x19f20c,{unitID:_0x4cea38,changeset:_0x18e6d3}=_0x3f57d9,{mutations:_0x2c7b84,type:_0x12e58a}=_0x18e6d3;this['_telemetryInfo']={'unitId':_0x4cea38,'type':_0x12e58a,'startTime':performance[_0x19a48b(0x1f9)](),'stopTime':0x0,'duration':0x0,'size':ti(_0x2c7b84)};}[_0x2683e6(0x4e0)](){const _0x13fe47=_0x2683e6;if(this[_0x13fe47(0x3a2)]){if(!this[_0x13fe47(0x239)]){this[_0x13fe47(0x577)]['error'](_0x13fe47(0x5ca),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x13fe47(0x239)][_0x13fe47(0x328)]=performance[_0x13fe47(0x1f9)](),this[_0x13fe47(0x239)][_0x13fe47(0x2ec)]=this[_0x13fe47(0x239)]['stopTime']-this[_0x13fe47(0x239)][_0x13fe47(0x4de)],this['_telemetryService'][_0x13fe47(0x1d8)](ei,this[_0x13fe47(0x239)]),this[_0x13fe47(0x239)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports[_0x2683e6(0x5eb)]=ci([de(0x2,a[_0x2683e6(0x5a9)]),de(0x3,ee[_0x2683e6(0x246)]),de(0x4,ee[_0x2683e6(0x509)]),de(0x5,a[_0x2683e6(0x58f)]),de(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),de(0x7,a[_0x2683e6(0x22b)](exports['MemberService'])),de(0x8,a[_0x2683e6(0x22b)](Tt)),de(0x9,a[_0x2683e6(0x23c)](jn['ITelemetryService']))],exports[_0x2683e6(0x5eb)]);var li=Object[_0x2683e6(0x1e7)],hi=Object['getOwnPropertyDescriptor'],_i=(_0x456631,_0x3acc6b,_0x2212e1,_0x1b17a5)=>{const _0x6578c5=_0x2683e6;for(var _0x32fabe=_0x1b17a5>0x1?void 0x0:_0x1b17a5?hi(_0x3acc6b,_0x2212e1):_0x3acc6b,_0x18fd3f=_0x456631[_0x6578c5(0x29a)]-0x1,_0x4a58b9;_0x18fd3f>=0x0;_0x18fd3f--)(_0x4a58b9=_0x456631[_0x18fd3f])&&(_0x32fabe=(_0x1b17a5?_0x4a58b9(_0x3acc6b,_0x2212e1,_0x32fabe):_0x4a58b9(_0x32fabe))||_0x32fabe);return _0x1b17a5&&_0x32fabe&&li(_0x3acc6b,_0x2212e1,_0x32fabe),_0x32fabe;},Ee=(_0x3574a9,_0x93ddaa)=>(_0x5cd057,_0x533284)=>_0x93ddaa(_0x5cd057,_0x533284,_0x3574a9);exports[_0x2683e6(0x17a)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x28bdbb,_0x25cb47,_0x3d091c,_0x2cfa6c,_0x5146a5,_0x19a667){const _0x569d20=_0x2683e6;super(),I(this,_0x569d20(0x4ab),new A[(_0x569d20(0x1ce))](void 0x0)),I(this,_0x569d20(0x5b6),this[_0x569d20(0x4ab)][_0x569d20(0x4f2)]()),I(this,'_candidateSocket',null),I(this,_0x569d20(0x31e),new Map()),I(this,_0x569d20(0x1bc),new A[(_0x569d20(0x1ce))](se[_0x569d20(0x55c)])),I(this,'status$',this[_0x569d20(0x1bc)][_0x569d20(0x4f2)]()),I(this,_0x569d20(0x28c),!0x1),I(this,_0x569d20(0x4f3)),I(this,'_retryCount',0x0),I(this,_0x569d20(0x408)),I(this,_0x569d20(0x51e)),(this[_0x569d20(0x3e9)]=_0x28bdbb,this[_0x569d20(0x347)]=_0x25cb47,this[_0x569d20(0x167)]=_0x3d091c,this['_logService']=_0x2cfa6c,this['_configService']=_0x5146a5,this[_0x569d20(0x446)]=_0x19a667,this[_0x569d20(0x386)]());}get['_socket'](){const _0x4093cc=_0x2683e6;return this[_0x4093cc(0x4ab)]['getValue']();}[_0x2683e6(0x386)](){const _0x211fe0=_0x2683e6;this[_0x211fe0(0x336)](),this[_0x211fe0(0x2c2)]();}[_0x2683e6(0x269)](){const _0x22ab7c=_0x2683e6;super[_0x22ab7c(0x269)](),this['_sessions'][_0x22ab7c(0x280)](_0x4c92bf=>_0x4c92bf[_0x22ab7c(0x269)]()),this['_sessions'][_0x22ab7c(0x308)](),this[_0x22ab7c(0x1bc)][_0x22ab7c(0x438)]();}async['requireSession'](_0x3215e7){const _0x113f82=_0x2683e6;if(this[_0x113f82(0x31e)]['has'](_0x3215e7))return this[_0x113f82(0x31e)][_0x113f82(0x553)](_0x3215e7);this[_0x113f82(0x4a0)]();const _0x3044d6=this['_injector']['createInstance'](exports[_0x113f82(0x5eb)],_0x3215e7,this['_socket$'][_0x113f82(0x4f2)]());return this[_0x113f82(0x31e)][_0x113f82(0x46f)](_0x3215e7,_0x3044d6),_0x3044d6;}[_0x2683e6(0x4fd)](_0xaf2554){const _0x2bbf49=_0x2683e6;var _0x466d0b;const _0x2a15de=this['_sessions'][_0x2bbf49(0x553)](_0xaf2554);_0x2a15de&&(this[_0x2bbf49(0x31e)][_0x2bbf49(0x27e)](_0xaf2554),_0x2a15de[_0x2bbf49(0x3e4)]()),this[_0x2bbf49(0x31e)][_0x2bbf49(0x4b4)]||(_0x466d0b=this['_socket'])==null||_0x466d0b[_0x2bbf49(0x3e4)]();}[_0x2683e6(0x5bd)](){const _0xd957c6=_0x2683e6;this[_0xd957c6(0x293)]=0x0,this[_0xd957c6(0x4f3)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0xd957c6(0x4f1)]();}['_createSocket'](){const _0x2a3b6c=_0x2683e6;var _0x46fbd7,_0x2882c7;const _0x1a9154=this[_0x2a3b6c(0x3d1)][_0x2a3b6c(0x496)](en),_0x4b7dce=this[_0x2a3b6c(0x3d1)][_0x2a3b6c(0x496)](te),_0x2ad7b2=(_0x2882c7=(_0x46fbd7=_0x4b7dce==null?void 0x0:_0x4b7dce[_0x2a3b6c(0x356)])!=null?_0x46fbd7:_0x1a9154)!=null?_0x2882c7:Wn,_0x241d5f=this[_0x2a3b6c(0x446)][_0x2a3b6c(0x3eb)](_0x2ad7b2);return this[_0x2a3b6c(0x4cf)]=_0x241d5f,_0x241d5f;}['_tryEnsureSocket'](){const _0x1c5fc9=_0x2683e6;var _0x57656b,_0x23501c;try{const _0x41a33c=(_0x23501c=(_0x57656b=this[_0x1c5fc9(0x1ee)])!=null?_0x57656b:this[_0x1c5fc9(0x4cf)])!=null?_0x23501c:this['_createSocket']();if(_0x41a33c){const _0x32ebb2=_0x41a33c[_0x1c5fc9(0x4ae)];_0x41a33c[_0x1c5fc9(0x4ae)]=_0x32f9e2=>(this[_0x1c5fc9(0x3d2)](),_0x32ebb2[_0x1c5fc9(0x4c4)](_0x41a33c,[_0x32f9e2])),_0x41a33c['message$'][_0x1c5fc9(0x44d)](_0xffba89=>this['_onMessage'](_0x41a33c,_0xffba89)),_0x41a33c['error$'][_0x1c5fc9(0x36b)](V[_0x1c5fc9(0x282)](0x1))[_0x1c5fc9(0x44d)](_0x3b2b83=>this[_0x1c5fc9(0x577)][_0x1c5fc9(0x461)](_0x1c5fc9(0x562),_0x3b2b83)),_0x41a33c[_0x1c5fc9(0x30f)]['pipe'](V['take'](0x1))[_0x1c5fc9(0x44d)](()=>{this['_onConnectionOpen'](_0x41a33c);}),_0x41a33c['close$']['pipe'](V['take'](0x1))['subscribe'](_0x5a3af2=>{const _0x2843d3=_0x1c5fc9;this[_0x2843d3(0x577)][_0x2843d3(0x3db)]('[CollaborationSessionService]','socket\x20close',_0x5a3af2),this[_0x2843d3(0x501)]();});}}catch(_0x137b08){this[_0x1c5fc9(0x577)]['error'](_0x137b08),this[_0x1c5fc9(0x501)]();}}[_0x2683e6(0x3c7)](_0x12fba3){const _0x2113f1=_0x2683e6;this[_0x2113f1(0x577)][_0x2113f1(0x3db)](_0x2113f1(0x2ca),'socket\x20open.'),_0x12fba3[_0x2113f1(0x4ae)]({'cmd':G[_0x2113f1(0x1c3)]}),this[_0x2113f1(0x3d2)]();}[_0x2683e6(0x336)](){const _0x32f5b4=_0x2683e6;window[_0x32f5b4(0x4fc)](_0x32f5b4(0x39a),()=>this[_0x32f5b4(0x27b)]());}[_0x2683e6(0x27b)](){const _0x48c580=_0x2683e6;this[_0x48c580(0x28c)]=!0x1,this[_0x48c580(0x4cf)]=null,this['_status$'][_0x48c580(0x40f)](se[_0x48c580(0x25a)]),this['_socket$'][_0x48c580(0x40f)](null),this[_0x48c580(0x5f6)](),this[_0x48c580(0x304)]();}['_onConnectionFailed'](){const _0x40a4d9=_0x2683e6;var _0x3d0919;this[_0x40a4d9(0x27b)](),this[_0x40a4d9(0x293)]<((_0x3d0919=this['_configService'][_0x40a4d9(0x496)](sn))!=null?_0x3d0919:Gn)?(this['_messageService'][_0x40a4d9(0x4db)]({'key':'collaboration-session-retry','type':ge[_0x40a4d9(0x455)][_0x40a4d9(0x1f7)],'content':this[_0x40a4d9(0x347)]['t'](_0x40a4d9(0x1ed))}),this['_tryReconnect']()):this[_0x40a4d9(0x167)]['show']({'key':'collaboration-session-retry','type':ge[_0x40a4d9(0x455)][_0x40a4d9(0x272)],'content':this['_localeService']['t'](_0x40a4d9(0x28a))});}[_0x2683e6(0x2c2)](){const _0x12aff0=_0x2683e6,_0xb18f5=()=>{const _0x1d5e2e=_0x479a;this[_0x1d5e2e(0x1ee)]||this['reconnect']();},_0xbbedde=()=>{const _0x1aa6de=_0x479a;this[_0x1aa6de(0x1ee)]||document[_0x1aa6de(0x25f)]==='hidden'||this['reconnect']();};window['addEventListener'](_0x12aff0(0x230),_0xb18f5),document[_0x12aff0(0x4fc)](_0x12aff0(0x5b1),_0xbbedde);}[_0x2683e6(0x4f1)](){const _0x51fedc=_0x2683e6;var _0x3aea68;const _0x118e19=this[_0x51fedc(0x293)],_0x54a9aa=this[_0x51fedc(0x3d1)][_0x51fedc(0x496)](te),_0x364274=_0x118e19===0x0?0x0:((_0x3aea68=_0x54a9aa==null?void 0x0:_0x54a9aa[_0x51fedc(0x1d6)])!=null?_0x3aea68:Vn)*0x2**_0x118e19;this[_0x51fedc(0x4f3)]=window['setTimeout'](()=>{const _0x592515=_0x51fedc;clearTimeout(this[_0x592515(0x4f3)]),this[_0x592515(0x4f3)]=null,this[_0x592515(0x4a0)]();},_0x364274),this[_0x51fedc(0x293)]+=0x1;}['_onMessage'](_0x489b77,_0x1bf7f7){const _0x4fba9e=_0x2683e6,{cmd:_0xcbfb1}=_0x1bf7f7;_0xcbfb1===G[_0x4fba9e(0x1c3)]&&!this[_0x4fba9e(0x28c)]&&(_0x489b77['memberID']=_0x1bf7f7[_0x4fba9e(0x5ac)]['memberID'],this[_0x4fba9e(0x4ab)][_0x4fba9e(0x40f)](_0x489b77),this[_0x4fba9e(0x1bc)]['next'](se[_0x4fba9e(0x191)]),this['_socketReady']=!0x0,this[_0x4fba9e(0x4cf)]=null),_0xcbfb1===G[_0x4fba9e(0x530)]&&this[_0x4fba9e(0x5f6)](),this[_0x4fba9e(0x3d2)]();}[_0x2683e6(0x3d2)](){const _0x143910=_0x2683e6;var _0x33bb21;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x143910(0x352)](()=>this[_0x143910(0x594)](),(_0x33bb21=this[_0x143910(0x3d1)][_0x143910(0x496)](tn))!=null?_0x33bb21:Fn);}[_0x2683e6(0x594)](){const _0x349eea=_0x2683e6;this[_0x349eea(0x1ee)]['send']({'cmd':G['HEARTBEAT']}),this[_0x349eea(0x178)]();}['_waitForHeartbeatResponse'](){const _0x5f9f5=_0x2683e6;var _0x251195;this[_0x5f9f5(0x51e)]=window[_0x5f9f5(0x352)](()=>this[_0x5f9f5(0x501)](),(_0x251195=this[_0x5f9f5(0x3d1)][_0x5f9f5(0x496)](Ct))!=null?_0x251195:nn);}[_0x2683e6(0x304)](){const _0x333fc9=_0x2683e6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x333fc9(0x408)]),this[_0x333fc9(0x408)]=null);}[_0x2683e6(0x5f6)](){const _0x5a6d43=_0x2683e6;this[_0x5a6d43(0x51e)]!=null&&(clearTimeout(this[_0x5a6d43(0x51e)]),this[_0x5a6d43(0x51e)]=null);}},exports[_0x2683e6(0x17a)]=_i([Ee(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Ee(0x1,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),Ee(0x2,ee[_0x2683e6(0x509)]),Ee(0x3,a[_0x2683e6(0x5a9)]),Ee(0x4,a[_0x2683e6(0x58f)]),Ee(0x5,bt)],exports[_0x2683e6(0x17a)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x2683e6(0x17e)]((s+0x100)['toString'](0x10)[_0x2683e6(0x237)](0x1));function ui(_0x44e223,_0x5056ee=0x0){const _0x3d385b=_0x2683e6;return(Y[_0x44e223[_0x5056ee+0x0]]+Y[_0x44e223[_0x5056ee+0x1]]+Y[_0x44e223[_0x5056ee+0x2]]+Y[_0x44e223[_0x5056ee+0x3]]+'-'+Y[_0x44e223[_0x5056ee+0x4]]+Y[_0x44e223[_0x5056ee+0x5]]+'-'+Y[_0x44e223[_0x5056ee+0x6]]+Y[_0x44e223[_0x5056ee+0x7]]+'-'+Y[_0x44e223[_0x5056ee+0x8]]+Y[_0x44e223[_0x5056ee+0x9]]+'-'+Y[_0x44e223[_0x5056ee+0xa]]+Y[_0x44e223[_0x5056ee+0xb]]+Y[_0x44e223[_0x5056ee+0xc]]+Y[_0x44e223[_0x5056ee+0xd]]+Y[_0x44e223[_0x5056ee+0xe]]+Y[_0x44e223[_0x5056ee+0xf]])[_0x3d385b(0x575)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x1db702=_0x2683e6;if(!Je){if(typeof crypto>'u'||!crypto[_0x1db702(0x578)])throw new Error(_0x1db702(0x14e));Je=crypto[_0x1db702(0x578)][_0x1db702(0x580)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x2683e6(0x5fd)][_0x2683e6(0x580)](crypto),Mt={'randomUUID':vi};function mi(_0x1d1765,_0x495ee4,_0x5d1841){const _0x1bca74=_0x2683e6;if(Mt[_0x1bca74(0x5fd)]&&!_0x495ee4&&!_0x1d1765)return Mt[_0x1bca74(0x5fd)]();_0x1d1765=_0x1d1765||{};const _0x133e20=_0x1d1765[_0x1bca74(0x3e7)]||(_0x1d1765[_0x1bca74(0x480)]||fi)();return _0x133e20[0x6]=_0x133e20[0x6]&0xf|0x40,_0x133e20[0x8]=_0x133e20[0x8]&0x3f|0x80,ui(_0x133e20);}var Si=Object[_0x2683e6(0x1e7)],pi=Object[_0x2683e6(0x181)],gi=(_0x1d536c,_0x26cec5,_0x5d0b93,_0x1aeebd)=>{const _0x46215e=_0x2683e6;for(var _0x938adc=_0x1aeebd>0x1?void 0x0:_0x1aeebd?pi(_0x26cec5,_0x5d0b93):_0x26cec5,_0x24fd64=_0x1d536c[_0x46215e(0x29a)]-0x1,_0x50132a;_0x24fd64>=0x0;_0x24fd64--)(_0x50132a=_0x1d536c[_0x24fd64])&&(_0x938adc=(_0x1aeebd?_0x50132a(_0x26cec5,_0x5d0b93,_0x938adc):_0x50132a(_0x938adc))||_0x938adc);return _0x1aeebd&&_0x938adc&&Si(_0x26cec5,_0x5d0b93,_0x938adc),_0x938adc;},Ze=(_0x32533d,_0x974040)=>(_0x1c5671,_0x1aec46)=>_0x974040(_0x1c5671,_0x1aec46,_0x32533d);let Be=class{constructor(_0x3c8a0f,_0x390b30,_0x174ebe){const _0x55a697=_0x2683e6;this[_0x55a697(0x3e9)]=_0x3c8a0f,this[_0x55a697(0x318)]=_0x390b30,this['_renderManagerService']=_0x174ebe;}[_0x2683e6(0x4d2)](_0x5adf5b){const _0x48f26f=_0x2683e6;this[_0x48f26f(0x199)](_0x5adf5b),this[_0x48f26f(0x16b)](_0x5adf5b);}[_0x2683e6(0x5b3)](_0x1eec75){const _0x10e446=_0x2683e6,{unitID:_0x2f5bdc}=_0x1eec75,_0x43919a=this['_renderManagerService'][_0x10e446(0x4f9)](_0x2f5bdc)[_0x10e446(0x175)](J[_0x10e446(0x5aa)]),{redoCache:_0x5957ad}=_0x43919a['getUndoRedoMutationParamsCache']();if(_0x5957ad[_0x10e446(0x29a)]===0x0)return _0x1eec75;let _0x5cd622=a[_0x10e446(0x256)][_0x10e446(0x43a)](_0x1eec75[_0x10e446(0x2a9)][0x0]);for(let _0x2fe2c4=0x0;_0x2fe2c4<_0x5957ad[_0x10e446(0x29a)];_0x2fe2c4++){const _0x5256d1={'id':_0x10e446(0x35c),'params':{..._0x5957ad[_0x2fe2c4]}},_0x3945bc=this[_0x10e446(0x318)][_0x10e446(0x2b0)](_0x5cd622,_0x5256d1,!0x1);if(S[_0x10e446(0x157)](_0x3945bc))throw _0x3945bc[_0x10e446(0x461)];_0x5cd622=_0x3945bc[_0x10e446(0x515)];}return{...a[_0x10e446(0x256)]['deepClone'](_0x1eec75),'mutations':[_0x5cd622]};}[_0x2683e6(0x199)](_0x34000e){const _0x5090e5=_0x2683e6,{unitID:_0x9fa2bc}=_0x34000e,_0x35eeb9=this[_0x5090e5(0x233)][_0x5090e5(0x4f9)](_0x9fa2bc)[_0x5090e5(0x175)](J[_0x5090e5(0x5aa)]),{undoCache:_0x566fad,redoCache:_0xafd102}=_0x35eeb9[_0x5090e5(0x2ba)]();if(_0x566fad[_0x5090e5(0x29a)]===0x0||_0xafd102[_0x5090e5(0x29a)]===0x0)return;const _0x5c7a07=[],_0x57862e=[];let _0x373fe7=a[_0x5090e5(0x256)]['deepClone'](_0x34000e[_0x5090e5(0x2a9)][0x0]),_0x3b7263=a[_0x5090e5(0x256)][_0x5090e5(0x43a)](_0x34000e[_0x5090e5(0x2a9)][0x0]);for(let _0x77d47a=_0x566fad['length']-0x1;_0x77d47a>=0x0;_0x77d47a--){const _0x457602={'id':'doc.mutation.rich-text-editing','params':{..._0x566fad[_0x77d47a]}},_0x5523c1={'id':'doc.mutation.rich-text-editing','params':{..._0xafd102[_0x77d47a]}},_0x5073b1=this['_transformService'][_0x5090e5(0x2b0)](_0x373fe7,_0x457602,!0x1),_0x4d3041=this[_0x5090e5(0x318)][_0x5090e5(0x2b0)](_0x3b7263,_0x5523c1,!0x1);if(S[_0x5090e5(0x157)](_0x5073b1))throw _0x5073b1[_0x5090e5(0x461)];if(S['isTransformMutationFailure'](_0x4d3041))throw _0x4d3041[_0x5090e5(0x461)];_0x5c7a07['unshift'](_0x5073b1[_0x5090e5(0x326)][_0x5090e5(0x55b)]),_0x57862e['unshift'](_0x4d3041[_0x5090e5(0x326)]['params']),_0x373fe7=_0x5073b1['m1Prime'],_0x3b7263=_0x4d3041['m1Prime'];}_0x35eeb9['setUndoRedoMutationParamsCache']({'undoCache':_0x5c7a07,'redoCache':_0x57862e});}[_0x2683e6(0x16b)](_0x1f6704){const _0x31afc9=_0x2683e6,{unitID:_0x2a611c}=_0x1f6704,_0x377496=this[_0x31afc9(0x233)]['getRenderById'](_0x2a611c)['with'](J[_0x31afc9(0x5aa)]),_0x4254b1=_0x377496['getActiveRange']();if(_0x4254b1==null)return;const _0x2cc654=[{'id':_0x31afc9(0x35c),'params':{'unitId':_0x1f6704[_0x31afc9(0x4a9)],'actions':null,'textRanges':[_0x4254b1]}}],_0x4569a8=this[_0x31afc9(0x318)][_0x31afc9(0x1b6)](_0x1f6704,_0x2cc654);if(!S[_0x31afc9(0x30a)](_0x4569a8))throw _0x4569a8[_0x31afc9(0x461)];const _0x48cd4a=_0x4569a8[_0x31afc9(0x326)][0x0][_0x31afc9(0x55b)][_0x31afc9(0x242)];Array['isArray'](_0x48cd4a)&&_0x48cd4a[_0x31afc9(0x29a)]&&_0x377496['setActiveRange'](_0x48cd4a[0x0]);}};Be=gi([Ze(0x0,a[_0x2683e6(0x22b)](a['Injector'])),Ze(0x1,S[_0x2683e6(0x1e3)]),Ze(0x2,K['IRenderManagerService'])],Be);var Ii=Object[_0x2683e6(0x1e7)],Ci=Object[_0x2683e6(0x181)],Ei=(_0x5affcc,_0x20b642,_0x2c3c54,_0x20f3dd)=>{const _0x4cd4bd=_0x2683e6;for(var _0x54aabb=_0x20f3dd>0x1?void 0x0:_0x20f3dd?Ci(_0x20b642,_0x2c3c54):_0x20b642,_0x515d57=_0x5affcc[_0x4cd4bd(0x29a)]-0x1,_0x5add45;_0x515d57>=0x0;_0x515d57--)(_0x5add45=_0x5affcc[_0x515d57])&&(_0x54aabb=(_0x20f3dd?_0x5add45(_0x20b642,_0x2c3c54,_0x54aabb):_0x5add45(_0x54aabb))||_0x54aabb);return _0x20f3dd&&_0x54aabb&&Ii(_0x20b642,_0x2c3c54,_0x54aabb),_0x54aabb;},Pe=(_0x2543a9,_0x209c33)=>(_0x2f227d,_0x12c92d)=>_0x209c33(_0x2f227d,_0x12c92d,_0x2543a9);exports[_0x2683e6(0x604)]=class extends a['Disposable']{constructor(_0x2c234a,_0x174390,_0x55f832,_0x18d1da,_0x4debe7){const _0x34be41=_0x2683e6;super(),I(this,_0x34be41(0x1b7),new Map()),I(this,_0x34be41(0x1aa),new Map()),I(this,_0x34be41(0x45d),!0x1),(this[_0x34be41(0x3d1)]=_0x2c234a,this[_0x34be41(0x3a6)]=_0x174390,this[_0x34be41(0x264)]=_0x55f832,this[_0x34be41(0x347)]=_0x18d1da,this[_0x34be41(0x285)]=_0x4debe7,this['_setupBeforeClosingHandler']());}[_0x2683e6(0x51a)](){const _0x494466=_0x2683e6;this[_0x494466(0x45d)]=!0x0;}[_0x2683e6(0x240)](){this['_disabled']=!0x1;}['dispose'](){const _0x18adc0=_0x2683e6;this['exhaustSavingTask']()[_0x18adc0(0x3a7)](()=>super[_0x18adc0(0x269)]());}async[_0x2683e6(0x27c)](_0x175835){const _0x4f0d37=_0x2683e6;return this[_0x4f0d37(0x45d)]?null:this[_0x4f0d37(0x3a6)]['getItem'](At(_0x175835));}async[_0x2683e6(0x3d9)](_0x483919,_0x4af811){const _0x54fcd5=_0x2683e6;return!!this[_0x54fcd5(0x3a6)]['setItem'](_0x483919,_0x4af811);}[_0x2683e6(0x2d4)](_0x396dcf,_0x51d461,_0x42e9db,_0x91d04d){const _0x1a84a5=_0x2683e6,_0x1b8e33=this['_revisionService']['getCurrentRevOfUnit'](_0x396dcf);this[_0x1a84a5(0x1b7)][_0x1a84a5(0x46f)](_0x396dcf,{'unitID':_0x396dcf,'type':_0x51d461,'awaitingChangeset':_0x42e9db,'mutations':_0x91d04d,'rev':_0x1b8e33}),this[_0x1a84a5(0x1aa)][_0x1a84a5(0x58e)](_0x396dcf)||this[_0x1a84a5(0x1ad)](_0x396dcf);}[_0x2683e6(0x1ad)](_0x71fc63){const _0x3793be=_0x2683e6,_0x286fe8=this[_0x3793be(0x508)]();_0x286fe8===0x0?this[_0x3793be(0x544)](_0x71fc63):this[_0x3793be(0x1aa)][_0x3793be(0x46f)](_0x71fc63,setTimeout(()=>this[_0x3793be(0x544)](_0x71fc63),_0x286fe8));}[_0x2683e6(0x508)](){const _0x204393=_0x2683e6;var _0x29fa22;return(_0x29fa22=this['_configService'][_0x204393(0x496)](rn))!=null?_0x29fa22:Yn;}['_saveCache'](_0x117513){const _0x20f295=_0x2683e6,_0x38694a=this[_0x20f295(0x1aa)][_0x20f295(0x553)](_0x117513);return _0x38694a!==void 0x0&&window[_0x20f295(0x24d)](_0x38694a),this[_0x20f295(0x3a6)][_0x20f295(0x579)](At(_0x117513),this[_0x20f295(0x1b7)]['get'](_0x117513))['then'](()=>this[_0x20f295(0x1aa)][_0x20f295(0x27e)](_0x117513));}async[_0x2683e6(0x353)](){const _0x18799e=_0x2683e6,_0x3eec05=[];this[_0x18799e(0x1aa)][_0x18799e(0x280)]((_0x21b8c2,_0x3f4b69)=>{const _0x4ad206=_0x18799e;window['clearTimeout'](_0x21b8c2),_0x3eec05['push'](this[_0x4ad206(0x544)](_0x3f4b69)[_0x4ad206(0x3a7)](()=>{const _0x3062a0=_0x4ad206;this[_0x3062a0(0x1aa)]['delete'](_0x3f4b69);}));}),await Promise[_0x18799e(0x344)](_0x3eec05);}[_0x2683e6(0x2bb)](){const _0x1edc34=_0x2683e6;this[_0x1edc34(0x427)](this[_0x1edc34(0x264)][_0x1edc34(0x21f)](()=>{const _0x4d7d7a=_0x1edc34;if(this[_0x4d7d7a(0x1aa)]['size'])return this[_0x4d7d7a(0x347)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x2683e6(0x604)]=Ei([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x2683e6(0x5be)]),Pe(0x2,ee[_0x2683e6(0x246)]),Pe(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),Pe(0x4,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)]))],exports[_0x2683e6(0x604)]);function At(_0x2760cd){return'unit-cache-'+_0x2760cd;}var bi=Object[_0x2683e6(0x1e7)],Ti=Object[_0x2683e6(0x181)],Ri=(_0x2f845c,_0x4e8c89,_0xe85416,_0x12f030)=>{const _0x298d5b=_0x2683e6;for(var _0x367cd6=_0x12f030>0x1?void 0x0:_0x12f030?Ti(_0x4e8c89,_0xe85416):_0x4e8c89,_0x276f4a=_0x2f845c[_0x298d5b(0x29a)]-0x1,_0x36db53;_0x276f4a>=0x0;_0x276f4a--)(_0x36db53=_0x2f845c[_0x276f4a])&&(_0x367cd6=(_0x12f030?_0x36db53(_0x4e8c89,_0xe85416,_0x367cd6):_0x36db53(_0x367cd6))||_0x367cd6);return _0x12f030&&_0x367cd6&&bi(_0x4e8c89,_0xe85416,_0x367cd6),_0x367cd6;},Qe=(_0x215593,_0x14d349)=>(_0x2384d5,_0x4508c1)=>_0x14d349(_0x2384d5,_0x4508c1,_0x215593);function yi(_0x2f11fa){const _0x45974c=_0x2683e6,{unitID:_0x806581,mutations:_0x20aa1c}=_0x2f11fa;return{'unitId':_0x806581,'subUnitId':_0x20aa1c[0x0][_0x45974c(0x55b)][_0x45974c(0x305)]};}let ke=class{constructor(_0x4905a4,_0x4d8d22,_0x38d299){const _0x23ae77=_0x2683e6;this[_0x23ae77(0x3e9)]=_0x4905a4,this['_transformService']=_0x4d8d22,this['_instanceService']=_0x38d299;}[_0x2683e6(0x46a)](_0x5b928f){const _0x4b5b2b=_0x2683e6;var _0x9756d5,_0x36b215,_0xf83e4b,_0x3ecd57;const _0x96e948=this[_0x4b5b2b(0x3e9)][_0x4b5b2b(0x553)](k[_0x4b5b2b(0x550)]),{unitId:_0x28d656,subUnitId:_0x321826}=yi(_0x5b928f),_0x4eddec=_0x96e948['getWorkbookSelections'](_0x28d656)['getCurrentSelections'](),_0x170fd1=(_0x36b215=(_0x9756d5=this['_instanceService'][_0x4b5b2b(0x4af)](_0x28d656))==null?void 0x0:_0x9756d5[_0x4b5b2b(0x399)]())==null?void 0x0:_0x36b215[_0x4b5b2b(0x276)]();if(_0x4eddec[_0x4b5b2b(0x29a)]===0x0||!_0x28d656||!_0x321826)return;const _0x34d15c=[{'id':k[_0x4b5b2b(0x227)]['id'],'params':{'unitId':_0x28d656,'subUnitId':_0x170fd1,'selections':a[_0x4b5b2b(0x256)]['deepClone'](_0x4eddec)}}],_0x2370fe=this[_0x4b5b2b(0x318)][_0x4b5b2b(0x1b6)](_0x5b928f,_0x34d15c);if(!S[_0x4b5b2b(0x30a)](_0x2370fe))throw _0x2370fe[_0x4b5b2b(0x461)];const _0x4860b9=(_0x3ecd57=(_0xf83e4b=_0x2370fe[_0x4b5b2b(0x326)][0x0])==null?void 0x0:_0xf83e4b['params'])==null?void 0x0:_0x3ecd57['selections'];if(Array['isArray'](_0x4860b9)&&_0x4860b9['length']){if(_0x4860b9[_0x4b5b2b(0x29a)]===_0x34d15c[0x0][_0x4b5b2b(0x55b)][_0x4b5b2b(0x50b)]['length']&&_0x4860b9[_0x4b5b2b(0x333)]((_0x3f31a7,_0x13f161)=>a['Rectangle']['equals'](_0x3f31a7['range'],_0x34d15c[0x0][_0x4b5b2b(0x55b)][_0x4b5b2b(0x50b)][_0x13f161][_0x4b5b2b(0x1c7)])))return;this[_0x4b5b2b(0x3e9)][_0x4b5b2b(0x553)](a['ICommandService'])[_0x4b5b2b(0x511)](k[_0x4b5b2b(0x227)]['id'],{'unitId':_0x28d656,'subUnitId':_0x170fd1,'selections':_0x4860b9});}}};ke=Ri([Qe(0x0,a[_0x2683e6(0x22b)](a['Injector'])),Qe(0x1,S[_0x2683e6(0x1e3)]),Qe(0x2,a[_0x2683e6(0x468)])],ke);const qe=a[_0x2683e6(0x608)](_0x2683e6(0x42d));var un=(_0x467e9e=>(_0x467e9e[_0x467e9e[_0x2683e6(0x1f1)]=0x0]=_0x2683e6(0x1f1),_0x467e9e[_0x467e9e[_0x2683e6(0x4c1)]=0x1]='OTHER_CLIENTS_EDITING',_0x467e9e))(un||{});const Nt=0x7530,Lt=_0x2683e6(0x471);class Oi extends a['Disposable']{constructor(){const _0x2c61f7=_0x2683e6;super(),I(this,_0x2c61f7(0x400),a[_0x2c61f7(0x256)][_0x2c61f7(0x59e)]()),I(this,_0x2c61f7(0x1e9),new Set()),I(this,_0x2c61f7(0x229),new Map()),I(this,_0x2c61f7(0x557),null),I(this,'_clearOtherTimers',new Map()),I(this,_0x2c61f7(0x1b1),new Map()),this[_0x2c61f7(0x4ea)]();}[_0x2683e6(0x269)](){const _0x541e16=_0x2683e6;super[_0x541e16(0x269)](),this[_0x541e16(0x450)][_0x541e16(0x280)]((_0x32e61f,_0x46ab9e)=>this[_0x541e16(0x302)](_0x46ab9e)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x541e16(0x557)]);}[_0x2683e6(0x195)](_0x4848d4){const _0x583eb0=_0x2683e6;return this[_0x583eb0(0x4b0)](_0x4848d4)[_0x583eb0(0x36b)](A[_0x583eb0(0x381)]());}[_0x2683e6(0x1b4)](_0x1d0f4c){const _0x439dae=_0x2683e6;this[_0x439dae(0x1e9)][_0x439dae(0x4b4)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x439dae(0x494)](_0x1d0f4c),this[_0x439dae(0x549)]({'type':0x0,'memberID':this[_0x439dae(0x400)],'unitIDs':[_0x1d0f4c],'isForwarded':!0x1});}[_0x2683e6(0x5d7)](_0x360001){const _0x38ce64=_0x2683e6;this['_selfUnitIDs'][_0x38ce64(0x27e)](_0x360001),this[_0x38ce64(0x1e9)][_0x38ce64(0x4b4)]===0x0&&this[_0x38ce64(0x557)]&&window[_0x38ce64(0x251)](this[_0x38ce64(0x557)]);}[_0x2683e6(0x4ea)](){const _0x4a50af=_0x2683e6;this[_0x4a50af(0x427)](a[_0x4a50af(0x454)](A[_0x4a50af(0x5d5)](window,_0x4a50af(0x3ea))[_0x4a50af(0x44d)](_0x3e1d99=>{const _0x5c4731=_0x4a50af;if(_0x3e1d99[_0x5c4731(0x327)]!==Lt||!_0x3e1d99[_0x5c4731(0x59a)])return;const _0x365b7c=JSON['parse'](_0x3e1d99[_0x5c4731(0x59a)]);this[_0x5c4731(0x430)](_0x365b7c);}))),window[_0x4a50af(0x4fc)](_0x4a50af(0x36a),()=>this[_0x4a50af(0x549)]({'type':0x1,'memberID':this[_0x4a50af(0x400)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x47aef6){const _0x5d7a61=_0x2683e6;switch(_0x47aef6['type']){case 0x0:this[_0x5d7a61(0x431)](_0x47aef6);break;case 0x1:this[_0x5d7a61(0x45c)](_0x47aef6);break;case 0x2:this[_0x5d7a61(0x586)](_0x47aef6);break;}}[_0x2683e6(0x431)](_0x1173e2){const _0x2fb763=_0x2683e6,{unitIDs:_0x39b95a,memberID:_0x19f2fc,isForwarded:_0x347ad5}=_0x1173e2;_0x39b95a['forEach'](_0x3f191e=>{const _0x4c1f00=_0x479a;if(!_0x347ad5&&this['_unitOnClients'][_0x4c1f00(0x58e)](_0x3f191e)&&this[_0x4c1f00(0x4b0)](_0x3f191e)['next'](0x1),!this['_unitOnClients'][_0x4c1f00(0x58e)](_0x3f191e)||!this[_0x4c1f00(0x229)][_0x4c1f00(0x553)](_0x3f191e)['has'](_0x19f2fc)){const _0x4ae18b=this['_unitOnClients'][_0x4c1f00(0x553)](_0x3f191e)||new Set();_0x4ae18b[_0x4c1f00(0x494)](_0x19f2fc),this[_0x4c1f00(0x229)][_0x4c1f00(0x46f)](_0x3f191e,_0x4ae18b),this[_0x4c1f00(0x5ea)](_0x19f2fc);}}),_0x347ad5||this['_send']({'type':0x0,'memberID':this[_0x2fb763(0x400)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2683e6(0x5ea)](_0x21d5a5){const _0x21a585=_0x2683e6;this[_0x21a585(0x302)](_0x21d5a5);const _0x503ef6=window[_0x21a585(0x352)](()=>{const _0x4c82b8=_0x21a585;this[_0x4c82b8(0x229)][_0x4c82b8(0x280)](_0xaede55=>{_0xaede55['delete'](_0x21d5a5);});},Nt*0x2);this[_0x21a585(0x450)][_0x21a585(0x46f)](_0x21d5a5,_0x503ef6);}['_removeClearOtherTimer'](_0x5738bc){const _0x3eac68=_0x2683e6;if(this[_0x3eac68(0x450)]['has'](_0x5738bc)){const _0x255612=this[_0x3eac68(0x450)][_0x3eac68(0x553)](_0x5738bc);_0x255612&&window['clearTimeout'](_0x255612),this['_clearOtherTimers']['set'](_0x5738bc,null);}}['_handleLeaveEvent'](_0x23685d){const _0x314b54=_0x2683e6,{memberID:_0x3d3356,unitIDs:_0x559dc7}=_0x23685d;_0x559dc7[_0x314b54(0x280)](_0xe0e7e0=>{const _0x47f842=_0x314b54;var _0x34201a;const _0xbdaa35=this[_0x47f842(0x229)][_0x47f842(0x553)](_0xe0e7e0);_0xbdaa35&&(_0xbdaa35[_0x47f842(0x27e)](_0x3d3356),(_0x34201a=this[_0x47f842(0x4b0)](_0xe0e7e0))==null||_0x34201a[_0x47f842(0x40f)](_0xbdaa35[_0x47f842(0x4b4)]===0x0?0x0:0x1));}),this[_0x314b54(0x302)](_0x3d3356);}[_0x2683e6(0x586)](_0x533375){const _0x3bb526=_0x2683e6;this[_0x3bb526(0x5ea)](_0x533375[_0x3bb526(0x30e)]);}[_0x2683e6(0x549)](_0x29e642){const _0x373fb4=_0x2683e6;localStorage['setItem'](Lt,JSON[_0x373fb4(0x40e)](_0x29e642));}[_0x2683e6(0x5ad)](){const _0x2fa0b0=_0x2683e6;this[_0x2fa0b0(0x557)]=window[_0x2fa0b0(0x489)](()=>{const _0xbf7339=_0x2fa0b0;this[_0xbf7339(0x549)]({'type':0x2,'memberID':this[_0xbf7339(0x400)]});},Nt);}[_0x2683e6(0x4b0)](_0x14929d){const _0x1fd09a=_0x2683e6;return this[_0x1fd09a(0x1b1)]['has'](_0x14929d)||this[_0x1fd09a(0x1b1)][_0x1fd09a(0x46f)](_0x14929d,new A['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x14929d);}}var Di=Object[_0x2683e6(0x1e7)],wi=Object['getOwnPropertyDescriptor'],Pi=(_0x3fabb1,_0x31d119,_0x2db250,_0x2e09dd)=>{const _0x17c7e2=_0x2683e6;for(var _0x17930e=_0x2e09dd>0x1?void 0x0:_0x2e09dd?wi(_0x31d119,_0x2db250):_0x31d119,_0x26f90d=_0x3fabb1[_0x17c7e2(0x29a)]-0x1,_0x102239;_0x26f90d>=0x0;_0x26f90d--)(_0x102239=_0x3fabb1[_0x26f90d])&&(_0x17930e=(_0x2e09dd?_0x102239(_0x31d119,_0x2db250,_0x17930e):_0x102239(_0x17930e))||_0x17930e);return _0x2e09dd&&_0x17930e&&Di(_0x31d119,_0x2db250,_0x17930e),_0x17930e;},et=(_0x4958ea,_0x119bf2)=>(_0x2ab780,_0xf1857f)=>_0x119bf2(_0x2ab780,_0xf1857f,_0x4958ea);let We=class{constructor(_0x86f0cf,_0x82a47,_0xadebdf){const _0x52b7e1=_0x2683e6;this[_0x52b7e1(0x3e9)]=_0x86f0cf,this['_transformService']=_0x82a47,this[_0x52b7e1(0x42e)]=_0xadebdf;}['transformStateCache'](_0x545ea5){const _0x1c0d4d=_0x2683e6;this[_0x1c0d4d(0x5c3)](_0x545ea5);}['transformRemoteChangeset'](_0x3604c7){const _0xc2dc98=_0x2683e6,{unitID:_0x171d8a}=_0x3604c7,{collaboration:_0x433186}=this['_docStateChangeManagerService']['getStateCache'](_0x171d8a);if(_0x433186[_0xc2dc98(0x29a)]===0x0)return _0x3604c7;let _0x56263d=a[_0xc2dc98(0x256)][_0xc2dc98(0x43a)](_0x3604c7[_0xc2dc98(0x2a9)][0x0]);for(let _0x25d0ff=0x0;_0x25d0ff<_0x433186[_0xc2dc98(0x29a)];_0x25d0ff++){const _0x1f1d04={'id':_0xc2dc98(0x35c),'params':{'unitId':_0x433186[_0x25d0ff][_0xc2dc98(0x5e6)],..._0x433186[_0x25d0ff]['redoState']}},_0x1fee48=this[_0xc2dc98(0x318)]['transformMutation'](_0x56263d,_0x1f1d04,!0x1);if(S['isTransformMutationFailure'](_0x1fee48))throw _0x1fee48['error'];_0x56263d=_0x1fee48[_0xc2dc98(0x515)];}return{...a[_0xc2dc98(0x256)][_0xc2dc98(0x43a)](_0x3604c7),'mutations':[_0x56263d]};}['_transformHistoryAndStateStack'](_0x3a05b7){const _0xe79e96=_0x2683e6,{unitID:_0x5e63ee}=_0x3a05b7,{history:_0x50973b,collaboration:_0x9035d5}=this[_0xe79e96(0x42e)][_0xe79e96(0x329)](_0x5e63ee);if(_0x50973b[_0xe79e96(0x29a)]===0x0&&_0x9035d5[_0xe79e96(0x29a)]===0x0)return;const _0x19a9b5=[],_0x1d2f84=[];let _0x30dc42=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]),_0x4aa146=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]);for(let _0x20d6cb=_0x50973b[_0xe79e96(0x29a)]-0x1;_0x20d6cb>=0x0;_0x20d6cb--){const _0x4abda4={'id':_0xe79e96(0x35c),'params':{'unitId':_0x50973b[_0x20d6cb][_0xe79e96(0x5e6)],..._0x50973b[_0x20d6cb]['undoState']}},_0x50594e={'id':_0xe79e96(0x35c),'params':{'unitId':_0x50973b[_0x20d6cb][_0xe79e96(0x5e6)],..._0x50973b[_0x20d6cb][_0xe79e96(0x266)]}},_0x5ef897=this[_0xe79e96(0x318)]['transformMutation'](_0x30dc42,_0x4abda4,!0x1),_0x73a6be=this[_0xe79e96(0x318)]['transformMutation'](_0x4aa146,_0x50594e,!0x1);if(S[_0xe79e96(0x157)](_0x5ef897))throw _0x5ef897[_0xe79e96(0x461)];if(S[_0xe79e96(0x157)](_0x73a6be))throw _0x73a6be['error'];_0x19a9b5[_0xe79e96(0x309)]({..._0x50973b[_0x20d6cb],'undoState':_0x5ef897[_0xe79e96(0x326)][_0xe79e96(0x55b)],'redoState':_0x73a6be[_0xe79e96(0x326)]['params']}),_0x30dc42=_0x5ef897[_0xe79e96(0x515)],_0x4aa146=_0x73a6be[_0xe79e96(0x515)];}_0x30dc42=a['Tools'][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]),_0x4aa146=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]);for(let _0x4220ed=_0x9035d5['length']-0x1;_0x4220ed>=0x0;_0x4220ed--){const _0x36deb4={'id':_0xe79e96(0x35c),'params':{'unitId':_0x9035d5[_0x4220ed][_0xe79e96(0x5e6)],..._0x9035d5[_0x4220ed][_0xe79e96(0x503)]}},_0x5b164e={'id':_0xe79e96(0x35c),'params':{'unitId':_0x9035d5[_0x4220ed][_0xe79e96(0x5e6)],..._0x9035d5[_0x4220ed]['redoState']}},_0x50ee21=this['_transformService'][_0xe79e96(0x2b0)](_0x30dc42,_0x36deb4,!0x1),_0x872b6e=this[_0xe79e96(0x318)][_0xe79e96(0x2b0)](_0x4aa146,_0x5b164e,!0x1);if(S['isTransformMutationFailure'](_0x50ee21))throw _0x50ee21[_0xe79e96(0x461)];if(S[_0xe79e96(0x157)](_0x872b6e))throw _0x872b6e[_0xe79e96(0x461)];_0x1d2f84[_0xe79e96(0x309)]({..._0x9035d5[_0x4220ed],'undoState':_0x50ee21[_0xe79e96(0x326)][_0xe79e96(0x55b)],'redoState':_0x872b6e[_0xe79e96(0x326)][_0xe79e96(0x55b)]}),_0x30dc42=_0x50ee21['m1Prime'],_0x4aa146=_0x872b6e[_0xe79e96(0x515)];}this[_0xe79e96(0x42e)]['setStateCache'](_0x5e63ee,{'history':_0x19a9b5,'collaboration':_0x1d2f84});}};We=Pi([et(0x0,a['Inject'](a['Injector'])),et(0x1,S[_0x2683e6(0x1e3)]),et(0x2,a[_0x2683e6(0x22b)](J['DocStateChangeManagerService']))],We);function dn(_0x1cd40b){const _0x11d903=_0x2683e6;let _0x3bda20='';for(const _0x3fdc12 of _0x1cd40b){const {startOffset:_0x1b2edc,endOffset:_0x7a3dea,isActive:_0x2d556a,rangeType:_0x4a5193,segmentId:_0x395922,segmentPage:_0x56e062}=_0x3fdc12;_0x3bda20[_0x11d903(0x29a)]&&(_0x3bda20+=','),_0x3bda20+=_0x1b2edc+':'+_0x7a3dea+':'+(_0x2d556a?'1':'0')+':'+_0x4a5193+':'+_0x395922+':'+_0x56e062;}return _0x3bda20;}function Ui(_0x3aa677){const _0x30e1de=_0x2683e6,_0x27f4a5=_0x3aa677[_0x30e1de(0x18f)](','),_0x2e702f=[];for(const _0x380194 of _0x27f4a5){const [_0x3a5f99,_0x2cf709,_0x49da26,_0x10086b,_0x532b51,_0x476cf4]=_0x380194[_0x30e1de(0x18f)](':');_0x2e702f[_0x30e1de(0x17e)]({'startOffset':Number(_0x3a5f99),'endOffset':Number(_0x2cf709),'collapsed':_0x3a5f99===_0x2cf709,'isActive':_0x49da26==='1','rangeType':_0x10086b===a[_0x30e1de(0x5ec)][_0x30e1de(0x350)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x30e1de(0x3bf)],'segmentId':typeof _0x532b51==_0x30e1de(0x516)?String(_0x532b51):'','segmentPage':Number(_0x476cf4!=null?_0x476cf4:-0x1)});}return _0x2e702f['some'](_0x3eebc0=>_0x3eebc0[_0x30e1de(0x2da)])||(_0x2e702f[0x0]['isActive']=!0x0),_0x2e702f;}class Rt extends a[_0x2683e6(0x1e0)]{constructor(){const _0x401977=_0x2683e6;super(...arguments),I(this,_0x401977(0x4d6),new A[(_0x401977(0x1ce))](null)),I(this,_0x401977(0x409),this['_collabCursorState$'][_0x401977(0x4f2)]());}['syncEditingCollabCursor'](_0x9e1878){const _0xa032f3=_0x2683e6,{unitID:_0x159499,memberID:_0x5c74b6,textRanges:_0x1b407d}=_0x9e1878,_0x4cdea7=dn(_0x1b407d);if(_0x4cdea7==='')return;const _0x5c4c39={'unitID':_0x159499,'memberID':_0x5c74b6,'selection':_0x4cdea7};this[_0xa032f3(0x4d6)][_0xa032f3(0x40f)](_0x5c4c39);}}var Mi=Object[_0x2683e6(0x1e7)],Ai=Object[_0x2683e6(0x181)],Ni=(_0x31dfec,_0x3f3bca,_0x51ba97,_0x32f797)=>{const _0x3bc5ea=_0x2683e6;for(var _0x55420d=_0x32f797>0x1?void 0x0:_0x32f797?Ai(_0x3f3bca,_0x51ba97):_0x3f3bca,_0x52f272=_0x31dfec[_0x3bc5ea(0x29a)]-0x1,_0xc1635e;_0x52f272>=0x0;_0x52f272--)(_0xc1635e=_0x31dfec[_0x52f272])&&(_0x55420d=(_0x32f797?_0xc1635e(_0x3f3bca,_0x51ba97,_0x55420d):_0xc1635e(_0x55420d))||_0x55420d);return _0x32f797&&_0x55420d&&Mi(_0x3f3bca,_0x51ba97,_0x55420d),_0x55420d;},xt=(_0x2bfd18,_0x21c54a)=>(_0x332dab,_0x38f91c)=>_0x21c54a(_0x332dab,_0x38f91c,_0x2bfd18);let Fe=class{constructor(_0x306df2,_0x44477e){const _0x4e326d=_0x2683e6;this['_injector']=_0x306df2,this[_0x4e326d(0x318)]=_0x44477e;}['transformSelections'](_0x3e1a8d){const _0x2b42fa=_0x2683e6;var _0x396b17;const _0x6610a7=this[_0x2b42fa(0x3e9)][_0x2b42fa(0x553)](ye[_0x2b42fa(0x53e)]),_0x3dcdf8=(_0x396b17=_0x6610a7[_0x2b42fa(0x500)]())!=null?_0x396b17:[];if(_0x3dcdf8[_0x2b42fa(0x29a)]===0x0)return;const _0x6c8ac=_0x3e1a8d[_0x2b42fa(0x4a9)],_0x1019ab=[{'id':_0x2b42fa(0x35c),'params':{'unitId':_0x6c8ac,'actions':null,'textRanges':_0x3dcdf8}}],_0xc44622=this['_transformService']['transformMutationsWithChangeset'](_0x3e1a8d,_0x1019ab);if(!S[_0x2b42fa(0x30a)](_0xc44622))throw _0xc44622[_0x2b42fa(0x461)];const _0x4b491d=_0xc44622[_0x2b42fa(0x326)][0x0]['params'][_0x2b42fa(0x242)];Array[_0x2b42fa(0x1c2)](_0x4b491d)&&_0x4b491d[_0x2b42fa(0x29a)]&&_0x6610a7[_0x2b42fa(0x29c)](_0x4b491d,{'unitId':_0x6c8ac,'subUnitId':_0x6c8ac},!0x1);}};Fe=Ni([xt(0x0,a[_0x2683e6(0x22b)](a['Injector'])),xt(0x1,S[_0x2683e6(0x1e3)])],Fe);const Li=new Set([k[_0x2683e6(0x4f7)]['id']]);function jt(_0x40776b,_0x488cc0,_0x428548,_0x5cc9e3,_0x46076f){const _0xe6ff8e=_0x2683e6;var _0x12b856,_0x520ddb,_0xed7580,_0x480c33;const _0x9fc6c5=[];for(const _0x3f5222 of _0x40776b)if(Li[_0xe6ff8e(0x58e)](_0x3f5222['id'])){if(_0x9fc6c5[_0xe6ff8e(0x29a)]>0x0)break;_0x9fc6c5[_0xe6ff8e(0x17e)](_0x3f5222);break;}else _0x9fc6c5['push'](_0x3f5222);const _0x5a21b7=(_0x520ddb=(_0x12b856=_0x46076f[_0xe6ff8e(0x39d)]())==null?void 0x0:_0x12b856[_0xe6ff8e(0x3be)])!=null?_0x520ddb:_0xe6ff8e(0x507),_0x5bd2ff=(_0x480c33=(_0xed7580=_0x46076f[_0xe6ff8e(0x39d)]())==null?void 0x0:_0xed7580[_0xe6ff8e(0x30e)])!=null?_0x480c33:_0xe6ff8e(0x507);return{'changeset':{'unitID':_0x488cc0,'type':S[_0xe6ff8e(0x26e)](_0x428548[_0xe6ff8e(0x16e)](_0x488cc0)),'baseRev':_0x5cc9e3[_0xe6ff8e(0x581)](_0x488cc0),'revision':0x0,'userID':_0x5a21b7,'memberID':_0x5bd2ff,'mutations':_0x9fc6c5},'pendingMutations':_0x40776b[_0xe6ff8e(0x237)](_0x9fc6c5[_0xe6ff8e(0x29a)])};}function xi(_0x14b86e,_0x2314f6,_0x31250a,_0x59faac,_0x520bf8){const _0x1529ba=_0x2683e6;var _0x5bf4da,_0xac7570,_0x5950ac,_0x380ee9;const _0x2c52fb=[_0x14b86e[_0x1529ba(0x49a)]((_0x4bd79e,_0x26d79a)=>{const _0xe5117b=_0x1529ba;var _0x1c0d93;const {id:_0x542722}=_0x4bd79e,{id:_0x3a4891,type:_0x22a230}=_0x26d79a,_0x1cb7a0=(_0x1c0d93=_0x4bd79e['params'])!=null?_0x1c0d93:{'actions':null},_0x17fbfe=_0x26d79a[_0xe5117b(0x55b)];if(_0x542722&&_0x542722!==_0x3a4891)throw new Error(_0xe5117b(0x56f)+_0x542722+_0xe5117b(0x47c)+_0x3a4891+'.');return{..._0x4bd79e,'id':_0x3a4891,'type':_0x22a230,'params':{'unitId':_0x17fbfe[_0xe5117b(0x5e6)],'textRanges':_0x17fbfe['textRanges'],'actions':a['JSONX']['compose'](_0x1cb7a0[_0xe5117b(0x2ab)],_0x17fbfe[_0xe5117b(0x2ab)])}};},{})],_0x4dcec5=(_0xac7570=(_0x5bf4da=_0x520bf8[_0x1529ba(0x39d)]())==null?void 0x0:_0x5bf4da[_0x1529ba(0x3be)])!=null?_0xac7570:_0x1529ba(0x507),_0x1097eb=(_0x380ee9=(_0x5950ac=_0x520bf8['getCurrentUser']())==null?void 0x0:_0x5950ac[_0x1529ba(0x30e)])!=null?_0x380ee9:'unknown';return{'changeset':{'unitID':_0x2314f6,'type':S[_0x1529ba(0x26e)](_0x31250a[_0x1529ba(0x16e)](_0x2314f6)),'baseRev':_0x59faac[_0x1529ba(0x581)](_0x2314f6),'revision':0x0,'userID':_0x4dcec5,'memberID':_0x1097eb,'mutations':_0x2c52fb},'pendingMutations':[]};}function fn(_0x2794cf,_0x5bf8c5){const _0x5b999e=_0x2683e6,_0xa88dee=new A['ReplaySubject'](0x1);return setTimeout(()=>_0xa88dee[_0x5b999e(0x40f)](_0x5bf8c5),_0x2794cf),_0xa88dee[_0x5b999e(0x4f2)]()['pipe'](A[_0x5b999e(0x282)](0x1));}const ji={'id':k[_0x2683e6(0x514)]['id'],'type':a['CommandType'][_0x2683e6(0x3fd)],'params':{}};function _0x479a(_0x4277e8,_0x40d3c5){const _0x21f6c9=_0x21f6();return _0x479a=function(_0x479a10,_0x207df7){_0x479a10=_0x479a10-0x14d;let _0x73105=_0x21f6c9[_0x479a10];return _0x73105;},_0x479a(_0x4277e8,_0x40d3c5);}var $i=Object['defineProperty'],Hi=Object['getOwnPropertyDescriptor'],Ie=(_0x594b71,_0x550e9c,_0x464d5b,_0x4125b5)=>{for(var _0x3be3d4=_0x4125b5>0x1?void 0x0:_0x4125b5?Hi(_0x550e9c,_0x464d5b):_0x550e9c,_0x3ac341=_0x594b71['length']-0x1,_0x23fcc0;_0x3ac341>=0x0;_0x3ac341--)(_0x23fcc0=_0x594b71[_0x3ac341])&&(_0x3be3d4=(_0x4125b5?_0x23fcc0(_0x550e9c,_0x464d5b,_0x3be3d4):_0x23fcc0(_0x3be3d4))||_0x3be3d4);return _0x4125b5&&_0x3be3d4&&$i(_0x550e9c,_0x464d5b,_0x3be3d4),_0x3be3d4;},N=(_0x40c31f,_0x5ceba4)=>(_0x7b71b5,_0x22141c)=>_0x5ceba4(_0x7b71b5,_0x22141c,_0x40c31f),q=(_0x18fdfc=>(_0x18fdfc[_0x2683e6(0x325)]='not_collab',_0x18fdfc[_0x2683e6(0x244)]=_0x2683e6(0x588),_0x18fdfc['PENDING']=_0x2683e6(0x4fa),_0x18fdfc[_0x2683e6(0x2c7)]=_0x2683e6(0x2d6),_0x18fdfc['AWAITING_WITH_PENDING']=_0x2683e6(0x281),_0x18fdfc[_0x2683e6(0x4c9)]=_0x2683e6(0x2ef),_0x18fdfc[_0x2683e6(0x476)]=_0x2683e6(0x2f7),_0x18fdfc['OFFLINE']=_0x2683e6(0x39a),_0x18fdfc))(q||{});const vn=0xea60;class Ce{constructor(_0x44654e,_0x44eea2,_0x1ae6f8,_0x5e56ce,_0x4007ea,_0x32e5e4,_0x484b87,_0x430c04,_0x1c8038){const _0x1bca9e=_0x2683e6;I(this,_0x1bca9e(0x36d),null),I(this,_0x1bca9e(0x4b8),[]),(this[_0x1bca9e(0x4a9)]=_0x44654e,this[_0x1bca9e(0x44a)]=_0x44eea2,this['_handler']=_0x4007ea,this['_commandService']=_0x32e5e4,this[_0x1bca9e(0x25d)]=_0x484b87,this[_0x1bca9e(0x285)]=_0x430c04,this['_localCacheService']=_0x1c8038,this['_awaitingChangeset']=_0x1ae6f8,this[_0x1bca9e(0x4b8)]=_0x5e56ce);}['_checkMissing'](_0x102c78){const _0xfcc54f=_0x2683e6,_0x15720f=this[_0xfcc54f(0x285)]['getCurrentRevOfUnit'](this[_0xfcc54f(0x4a9)]);return _0x102c78['revision']>_0x15720f+0x1?(this[_0xfcc54f(0x474)]['onMissingChangesets']({'from':_0x15720f,'to':_0x102c78['revision']-0x1}),!0x0):!0x1;}[_0x2683e6(0x28b)](_0x35c060){const _0x3689eb=_0x2683e6;this['_undoRedoService'][_0x3689eb(0x3dd)](this[_0x3689eb(0x4a9)],_0x35c060);}[_0x2683e6(0x48f)](_0x99f95c){const _0x5900a6=_0x2683e6;var _0x5fe67a,_0x39d1c4;(_0x39d1c4=(_0x5fe67a=this[_0x5900a6(0x474)])[_0x5900a6(0x366)])==null||_0x39d1c4[_0x5900a6(0x54a)](_0x5fe67a,_0x99f95c);}[_0x2683e6(0x4fb)](_0x4db90d){const _0xf77a86=_0x2683e6;var _0x142081,_0x570d56;return(_0x570d56=(_0x142081=this[_0xf77a86(0x474)])[_0xf77a86(0x32f)])==null?void 0x0:_0x570d56[_0xf77a86(0x54a)](_0x142081,_0x4db90d);}['_transformStateCache'](_0x5c6979){const _0x46c7eb=_0x2683e6;var _0x4ab487,_0xf3c1ef;return(_0xf3c1ef=(_0x4ab487=this[_0x46c7eb(0x474)])[_0x46c7eb(0x458)])==null?void 0x0:_0xf3c1ef[_0x46c7eb(0x54a)](_0x4ab487,_0x5c6979);}[_0x2683e6(0x504)](_0x5105f1){const _0x183b76=_0x2683e6;var _0x2956c9,_0x5ed9ec,_0x372ff3;return(_0x372ff3=(_0x5ed9ec=(_0x2956c9=this[_0x183b76(0x474)])[_0x183b76(0x3bd)])==null?void 0x0:_0x5ed9ec[_0x183b76(0x54a)](_0x2956c9,_0x5105f1))!=null?_0x372ff3:_0x5105f1;}[_0x2683e6(0x3ae)](_0x123876){const _0x18643c=_0x2683e6;var _0x530ce5,_0x90905,_0x370216;return(_0x370216=(_0x90905=(_0x530ce5=this[_0x18643c(0x474)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x90905[_0x18643c(0x54a)](_0x530ce5,_0x123876))!=null?_0x370216:_0x123876;}[_0x2683e6(0x5b2)](_0x18288b){const _0x3781ab=_0x2683e6;var _0x4e6f81,_0x484c42;if(this[_0x3781ab(0x44a)]===ie['UNIVER_DOC']){const {unitID:_0xef4770,mutations:_0x1f04a0,memberID:_0x1a19f3}=_0x18288b,_0x3f762f=_0x1f04a0[0x0][_0x3781ab(0x55b)]['textRanges'];Array['isArray'](_0x3f762f)&&_0x3f762f[_0x3781ab(0x29a)]>0x0&&((_0x484c42=(_0x4e6f81=this[_0x3781ab(0x474)])[_0x3781ab(0x2fe)])==null||_0x484c42[_0x3781ab(0x54a)](_0x4e6f81,{'unitID':_0xef4770,'memberID':_0x1a19f3,'textRanges':_0x3f762f}));}}[_0x2683e6(0x22c)](){const _0x50ce6e=_0x2683e6;this[_0x50ce6e(0x4ee)][_0x50ce6e(0x2d4)](this[_0x50ce6e(0x4a9)],this[_0x50ce6e(0x44a)],this[_0x50ce6e(0x36d)],this[_0x50ce6e(0x4b8)]);}[_0x2683e6(0x186)](){const _0x574f82=_0x2683e6;return this[_0x574f82(0x285)][_0x574f82(0x581)](this[_0x574f82(0x4a9)]);}[_0x2683e6(0x45a)](){const _0x3c22ac=_0x2683e6;this[_0x3c22ac(0x285)][_0x3c22ac(0x1b2)](this['unitID']);}[_0x2683e6(0x2ff)](_0x31f13f){const _0x58d2a5=_0x2683e6;var _0x4338b8;let _0x31eef7=this[_0x58d2a5(0x504)](_0x31f13f);_0x31eef7=this[_0x58d2a5(0x3ae)](_0x31eef7);const _0xdad2f9=a[_0x58d2a5(0x4b1)](_0x31eef7['mutations'],this[_0x58d2a5(0x447)],{'fromCollab':!0x0});if(!_0xdad2f9['result'])throw _0xdad2f9['error']instanceof Error?_0xdad2f9[_0x58d2a5(0x461)]:new Error((_0x4338b8=_0xdad2f9[_0x58d2a5(0x461)])!=null?_0x4338b8:_0x58d2a5(0x1e2));this[_0x58d2a5(0x4fb)](_0x31eef7),this[_0x58d2a5(0x39f)](_0x31eef7),this['_transformUndoredo'](_0x31f13f),this[_0x58d2a5(0x48f)](_0x31eef7),this[_0x58d2a5(0x5b2)](_0x31eef7),this[_0x58d2a5(0x45a)]();}}let Oe=class extends Ce{constructor(_0x2d475b,_0x29c748,_0x747e83,_0x5cb9f8,_0x2972a0,_0x2efda5,_0x15be6a,_0x14c26a,_0x37a055,_0x597be3){const _0x51c9be=_0x2683e6;super(_0x2d475b,_0x29c748,null,[],_0x747e83,_0x14c26a,_0x15be6a,_0x5cb9f8,_0x2972a0),I(this,_0x51c9be(0x47e),_0x51c9be(0x588)),(this['_injector']=_0x2efda5,this[_0x51c9be(0x577)]=_0x37a055,this[_0x51c9be(0x318)]=_0x597be3);}['appendMutation'](_0x10bd7e){const _0x3deb51=_0x2683e6,_0x14e107=this[_0x3deb51(0x3e9)][_0x3deb51(0x4d7)](ce,this['unitID'],this[_0x3deb51(0x44a)],[_0x10bd7e],this['_handler']);return _0x14e107[_0x3deb51(0x375)](),_0x14e107[_0x3deb51(0x22c)](),_0x14e107;}[_0x2683e6(0x373)](_0x1cb7a7){const _0x189e1e=_0x2683e6;if(this[_0x189e1e(0x441)](_0x1cb7a7))return this[_0x189e1e(0x3e9)]['createInstance'](re,this['unitID'],this[_0x189e1e(0x44a)],null,[],null,[_0x1cb7a7],this[_0x189e1e(0x474)]);try{const _0x2b20f0=this['_transformService'][_0x189e1e(0x1b6)](_0x1cb7a7,[ji]);if(S[_0x189e1e(0x30a)](_0x2b20f0)){const {c1Prime:_0x576926}=_0x2b20f0;return this[_0x189e1e(0x2ff)](_0x576926),this;}throw _0x2b20f0[_0x189e1e(0x461)];}catch(_0x5aef89){return this[_0x189e1e(0x577)][_0x189e1e(0x461)](_0x5aef89),this[_0x189e1e(0x25c)](!0x1);}}[_0x2683e6(0x25c)](_0x101c3f){const _0x5305f9=_0x2683e6;return this[_0x5305f9(0x3e9)]['createInstance'](ve,this[_0x5305f9(0x4a9)],this['type'],null,[],this[_0x5305f9(0x474)],_0x101c3f);}[_0x2683e6(0x1a5)](){const _0x25f7b9=_0x2683e6;throw new Error(_0x25f7b9(0x361));}[_0x2683e6(0x2ea)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2683e6(0x456)](){return this;}['toggleOffline'](){const _0x29db5a=_0x2683e6;return this[_0x29db5a(0x3e9)][_0x29db5a(0x4d7)](me,this[_0x29db5a(0x4a9)],this[_0x29db5a(0x44a)],null,[],this['_handler']);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2683e6(0x445)](){const _0x2891ef=_0x2683e6,_0x5bcdbe=this[_0x2891ef(0x285)][_0x2891ef(0x581)](this[_0x2891ef(0x4a9)]);return this[_0x2891ef(0x474)][_0x2891ef(0x418)]({'from':_0x5bcdbe,'to':0x0}),this[_0x2891ef(0x3e9)][_0x2891ef(0x4d7)](re,this[_0x2891ef(0x4a9)],this[_0x2891ef(0x44a)],null,[],null,[],this[_0x2891ef(0x474)]);}};Oe=Ie([N(0x3,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x5,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x6,a[_0x2683e6(0x5cb)]),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a['ILogService']),N(0x9,S[_0x2683e6(0x1e3)])],Oe);let ce=class extends Ce{constructor(_0x43c02a,_0x4e05fe,_0x1a1b44,_0x90cdbd,_0x1d46a8,_0x18c195,_0x112d58,_0xc5560d,_0x5a8aa5,_0x3e8bc,_0x5cae17,_0x4a96fd,_0x542f1c,_0x19e047){const _0x1b62ae=_0x2683e6;super(_0x43c02a,_0x4e05fe,null,_0x1a1b44,_0x90cdbd,_0x3e8bc,_0x19e047,_0x18c195,_0x112d58),I(this,_0x1b62ae(0x47e),_0x1b62ae(0x4fa)),I(this,'_scheduleTimestamp',null),I(this,_0x1b62ae(0x397),null),(this[_0x1b62ae(0x3e9)]=_0x1d46a8,this[_0x1b62ae(0x2cf)]=_0xc5560d,this[_0x1b62ae(0x577)]=_0x5a8aa5,this[_0x1b62ae(0x3d1)]=_0x5cae17,this['_transformService']=_0x4a96fd,this[_0x1b62ae(0x45b)]=_0x542f1c);}[_0x2683e6(0x3b0)](_0x88caa9){const _0x52c55c=_0x2683e6;return this[_0x52c55c(0x4b8)][_0x52c55c(0x17e)](_0x88caa9),this[_0x52c55c(0x22c)](),this;}[_0x2683e6(0x373)](_0x5d145d){const _0x232e12=_0x2683e6;if(this['_checkMissing'](_0x5d145d))return this['_clearScheduledTask'](),this[_0x232e12(0x3e9)]['createInstance'](re,this[_0x232e12(0x4a9)],this[_0x232e12(0x44a)],null,this[_0x232e12(0x4b8)],null,[_0x5d145d],this[_0x232e12(0x474)]);try{const _0x573191=this[_0x232e12(0x318)]['transformMutationsWithChangeset'](_0x5d145d,this[_0x232e12(0x4b8)]);if(S[_0x232e12(0x30a)](_0x573191)){const {c1Prime:_0x25ce1b,m2Prime:_0x2dbcb0}=_0x573191;this[_0x232e12(0x2ff)](_0x25ce1b);const _0x4cc311=this[_0x232e12(0x3e9)][_0x232e12(0x4d7)](ce,this[_0x232e12(0x4a9)],this[_0x232e12(0x44a)],_0x2dbcb0,this[_0x232e12(0x474)]);return this[_0x232e12(0x245)](),_0x4cc311[_0x232e12(0x375)](this[_0x232e12(0x358)]?Math[_0x232e12(0x1a1)](0x0,new Date()[_0x232e12(0x284)]()-this[_0x232e12(0x358)]):this[_0x232e12(0x368)]()),_0x4cc311;}throw _0x573191[_0x232e12(0x461)];}catch(_0x238cb4){return this[_0x232e12(0x577)][_0x232e12(0x461)](_0x238cb4),this[_0x232e12(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](){const _0x14cc42=_0x2683e6;throw new Error(_0x14cc42(0x37f));}[_0x2683e6(0x2ea)](){const _0x1d0420=_0x2683e6;throw new Error(_0x1d0420(0x506));}[_0x2683e6(0x456)](){return this;}['toggleOffline'](){const _0x1026f9=_0x2683e6;return this[_0x1026f9(0x245)](),this[_0x1026f9(0x3e9)][_0x1026f9(0x4d7)](me,this[_0x1026f9(0x4a9)],this[_0x1026f9(0x44a)],null,this[_0x1026f9(0x4b8)],this[_0x1026f9(0x474)]);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x375)](_0x4f4998){const _0x238147=_0x2683e6,_0x4c0b0b=_0x4f4998!=null?_0x4f4998:this['_getSendChangesetTimeout']();this[_0x238147(0x358)]=new Date()[_0x238147(0x284)](),this[_0x238147(0x397)]=window[_0x238147(0x352)](()=>{const _0x158d4d=_0x238147;this[_0x158d4d(0x245)]();let _0x1c29cd=null;switch(this[_0x158d4d(0x44a)]){case ie[_0x158d4d(0x4a1)]:{_0x1c29cd=jt(this[_0x158d4d(0x4b8)],this['unitID'],this['_univerInstanceService'],this[_0x158d4d(0x285)],this['_memberService']);break;}case ie[_0x158d4d(0x56e)]:{this['_pendingMutations'][_0x158d4d(0x333)](_0x10dce8=>_0x10dce8['id']===ye[_0x158d4d(0x1ae)]['id'])?_0x1c29cd=xi(this[_0x158d4d(0x4b8)],this[_0x158d4d(0x4a9)],this[_0x158d4d(0x45b)],this[_0x158d4d(0x285)],this[_0x158d4d(0x2cf)]):_0x1c29cd=jt(this['_pendingMutations'],this[_0x158d4d(0x4a9)],this['_univerInstanceService'],this[_0x158d4d(0x285)],this[_0x158d4d(0x2cf)]);break;}default:throw new Error(_0x158d4d(0x294)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x2784b4,pendingMutations:_0x50f6a3}=_0x1c29cd;this[_0x158d4d(0x474)][_0x158d4d(0x4aa)](_0x2784b4);const _0x37d818=_0x50f6a3[_0x158d4d(0x29a)]?this[_0x158d4d(0x3e9)][_0x158d4d(0x4d7)](le,this[_0x158d4d(0x4a9)],this[_0x158d4d(0x44a)],_0x2784b4,_0x50f6a3,this[_0x158d4d(0x474)],void 0x0):this['_injector']['createInstance'](fe,this[_0x158d4d(0x4a9)],this['type'],_0x2784b4,this[_0x158d4d(0x474)]);_0x37d818[_0x158d4d(0x22c)](),this[_0x158d4d(0x474)][_0x158d4d(0x2fa)](this,_0x37d818);},_0x4c0b0b);}[_0x2683e6(0x368)](){const _0x3858a4=_0x2683e6;var _0xcbd7ca;const _0x18fa67=this['_configService'][_0x3858a4(0x496)](te);return(_0xcbd7ca=_0x18fa67==null?void 0x0:_0x18fa67['sendChangesetTimeout'])!=null?_0xcbd7ca:kn;}['resend'](){const _0x52acc0=_0x2683e6;throw new Error(_0x52acc0(0x5ff));}['_clearScheduledTask'](){const _0x47575f=_0x2683e6;this['_sendingTimer']!=null&&(clearTimeout(this[_0x47575f(0x397)]),this['_sendingTimer']=null);}[_0x2683e6(0x25c)](_0x579849){const _0x27131f=_0x2683e6;return this[_0x27131f(0x245)](),this['_injector'][_0x27131f(0x4d7)](ve,this['unitID'],this[_0x27131f(0x44a)],null,this[_0x27131f(0x4b8)],this[_0x27131f(0x474)],_0x579849);}};ce=Ie([N(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x6,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x7,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),N(0x8,a['ILogService']),N(0x9,a[_0x2683e6(0x1d5)]),N(0xa,a['IConfigService']),N(0xb,S[_0x2683e6(0x1e3)]),N(0xc,a[_0x2683e6(0x468)]),N(0xd,a[_0x2683e6(0x5cb)])],ce);let fe=class extends Ce{constructor(_0x506d97,_0x5e3ce4,_0x48e45c,_0x58b373,_0x4a9bd5,_0x15477a,_0x3ccfb6,_0x9d9444,_0x536fd6,_0x2282ad,_0x301a1f){const _0x224085=_0x2683e6;super(_0x506d97,_0x5e3ce4,_0x48e45c,[],_0x58b373,_0x9d9444,_0x301a1f,_0x15477a,_0x3ccfb6),I(this,_0x224085(0x47e),'awaiting'),I(this,_0x224085(0x4da),0x0),I(this,_0x224085(0x30c)),I(this,_0x224085(0x330)),(this[_0x224085(0x3e9)]=_0x4a9bd5,this[_0x224085(0x577)]=_0x536fd6,this[_0x224085(0x318)]=_0x2282ad);}[_0x2683e6(0x3b0)](_0x2b6080){const _0x21cba7=_0x2683e6;this[_0x21cba7(0x245)]();const _0x43193f=this[_0x21cba7(0x3e9)][_0x21cba7(0x4d7)](le,this[_0x21cba7(0x4a9)],this[_0x21cba7(0x44a)],this['_awaitingChangeset'],[_0x2b6080],this[_0x21cba7(0x474)],this['_resendTimer']);return _0x43193f[_0x21cba7(0x22c)](),_0x43193f;}[_0x2683e6(0x373)](_0x430d9b){const _0x3d1ca9=_0x2683e6;if(this[_0x3d1ca9(0x441)](_0x430d9b))return this[_0x3d1ca9(0x245)](),this[_0x3d1ca9(0x3e9)][_0x3d1ca9(0x4d7)](re,this['unitID'],this[_0x3d1ca9(0x44a)],this[_0x3d1ca9(0x36d)],[],null,[_0x430d9b],this[_0x3d1ca9(0x474)]);try{const _0x2fb940=this[_0x3d1ca9(0x318)]['transformChangesets']([_0x430d9b],[this[_0x3d1ca9(0x36d)]],!0x1);if(S[_0x3d1ca9(0x406)](_0x2fb940)){const {c1Prime:_0x5cc880,c2Prime:_0x454213}=_0x2fb940;this['_executeRemoteChangeset'](_0x5cc880[0x0]),_0x454213[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x2fa69b=this[_0x3d1ca9(0x3e9)][_0x3d1ca9(0x4d7)](fe,this[_0x3d1ca9(0x4a9)],this[_0x3d1ca9(0x44a)],_0x454213[0x0],this['_handler']);return _0x2fa69b[_0x3d1ca9(0x22c)](),_0x2fa69b;}return this[_0x3d1ca9(0x25c)](!0x1);}catch(_0x1b814c){return this[_0x3d1ca9(0x577)][_0x3d1ca9(0x461)](_0x1b814c),this[_0x3d1ca9(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](_0x4da8eb){const _0x278034=_0x2683e6;this[_0x278034(0x245)]();const _0x12081a=this[_0x278034(0x285)][_0x278034(0x581)](this[_0x278034(0x4a9)]);if(_0x4da8eb[_0x278034(0x297)]<_0x12081a-0x1)return this;if(this[_0x278034(0x441)](_0x4da8eb))return this[_0x278034(0x3e9)][_0x278034(0x4d7)](re,this[_0x278034(0x4a9)],this['type'],null,[],this[_0x278034(0x36d)],[],this[_0x278034(0x474)]);this['_incrementRevisionNumber']();const _0xa9025f=this[_0x278034(0x3e9)][_0x278034(0x4d7)](Oe,this[_0x278034(0x4a9)],this[_0x278034(0x44a)],this['_handler']);return _0xa9025f[_0x278034(0x22c)](),_0xa9025f;}[_0x2683e6(0x2ea)](_0x1793f1){const _0xac8bf1=_0x2683e6;return this[_0xac8bf1(0x25c)](!!(_0x1793f1!=null&&_0x1793f1[_0xac8bf1(0x43e)]));}[_0x2683e6(0x456)](_0x12b407){const _0x1956ba=_0x2683e6;return this['_resendTimeout']>vn?this[_0x1956ba(0x173)]():(this[_0x1956ba(0x30c)]=fn(this[_0x1956ba(0x4da)],{'timeout':this['_resendTimeout'],'reqId':_0x12b407['reqId']}),this[_0x1956ba(0x330)]=this[_0x1956ba(0x30c)][_0x1956ba(0x44d)](({reqId:_0x1978cb,timeout:_0x3382af})=>{const _0xccc619=_0x1956ba;this[_0xccc619(0x2c6)](_0x1978cb,_0x3382af);}),this);}['toggleOffline'](){const _0x267102=_0x2683e6;return this[_0x267102(0x245)](),this[_0x267102(0x3e9)][_0x267102(0x4d7)](me,this['unitID'],this[_0x267102(0x44a)],this[_0x267102(0x36d)],[],this[_0x267102(0x474)]);}['toggleOnline'](){return this;}[_0x2683e6(0x4df)](){const _0x205883=_0x2683e6;this[_0x205883(0x474)]['onSendChangeset'](this[_0x205883(0x36d)]);}[_0x2683e6(0x25c)](_0x3a51be){const _0x4873bf=_0x2683e6;return this[_0x4873bf(0x245)](),this[_0x4873bf(0x3e9)][_0x4873bf(0x4d7)](ve,this[_0x4873bf(0x4a9)],this[_0x4873bf(0x44a)],this[_0x4873bf(0x36d)],[],this[_0x4873bf(0x474)],_0x3a51be);}[_0x2683e6(0x2c6)](_0x44104b,_0x32310f){const _0x3f3bf9=_0x2683e6;var _0x3e8e53;_0x44104b===((_0x3e8e53=this['_awaitingChangeset'])==null?void 0x0:_0x3e8e53['reqId'])&&(this[_0x3f3bf9(0x4df)](),this[_0x3f3bf9(0x4da)]=_0x32310f===0x0?0x3e8:_0x32310f*0x2);}[_0x2683e6(0x245)](){const _0x431dd1=_0x2683e6;var _0x1a4f23;(_0x1a4f23=this[_0x431dd1(0x330)])==null||_0x1a4f23[_0x431dd1(0x334)](),this[_0x431dd1(0x4da)]=0x0;}};fe=Ie([N(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x6,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a[_0x2683e6(0x5a9)]),N(0x9,S[_0x2683e6(0x1e3)]),N(0xa,a[_0x2683e6(0x5cb)])],fe);let le=class extends Ce{constructor(_0x581d56,_0x3261db,_0x13db57,_0x584eaf,_0xcef5d4,_0x3a4159,_0x4a0a9a,_0xd26331,_0x12202a,_0xe6ddab,_0x3f5226,_0x38d685,_0x58648b){const _0x377436=_0x2683e6;super(_0x581d56,_0x3261db,_0x13db57,_0x584eaf,_0xcef5d4,_0xe6ddab,_0x58648b,_0xd26331,_0x12202a),I(this,_0x377436(0x47e),_0x377436(0x281)),I(this,_0x377436(0x4da),0x0),I(this,'_resendTimer'),I(this,_0x377436(0x330)),(this[_0x377436(0x3e9)]=_0x4a0a9a,this[_0x377436(0x577)]=_0x3f5226,this[_0x377436(0x318)]=_0x38d685,_0x3a4159&&(this[_0x377436(0x30c)]=_0x3a4159,this[_0x377436(0x330)]=this[_0x377436(0x30c)]['subscribe'](({reqId:_0x1cfc24,timeout:_0x5bee57})=>{this['_resendWithTimeout'](_0x1cfc24,_0x5bee57);})));}['appendMutation'](_0x72c28e){const _0x30adf0=_0x2683e6;return this[_0x30adf0(0x4b8)][_0x30adf0(0x17e)](_0x72c28e),this;}[_0x2683e6(0x373)](_0xeaef68){const _0x358c0b=_0x2683e6;if(this[_0x358c0b(0x441)](_0xeaef68))return this['_clearScheduledTask'](),this['_injector'][_0x358c0b(0x4d7)](re,this[_0x358c0b(0x4a9)],this['type'],this[_0x358c0b(0x36d)],this[_0x358c0b(0x4b8)],null,[_0xeaef68],this[_0x358c0b(0x474)]);try{const _0x1ce6bb=this[_0x358c0b(0x318)][_0x358c0b(0x192)]([_0xeaef68],[this[_0x358c0b(0x36d)]],!0x1);if(S[_0x358c0b(0x406)](_0x1ce6bb)){const {c1Prime:_0x57f97b,c2Prime:_0x243cba}=_0x1ce6bb,_0x4ba5ee=this[_0x358c0b(0x318)][_0x358c0b(0x1b6)](_0x57f97b[0x0],this['_pendingMutations']);if(S[_0x358c0b(0x30a)](_0x4ba5ee)){const {c1Prime:_0x1a79dc,m2Prime:_0x204420}=_0x4ba5ee;return this[_0x358c0b(0x2ff)](_0x1a79dc),_0x243cba[0x0][_0x358c0b(0x522)]=this[_0x358c0b(0x186)](),this[_0x358c0b(0x245)](),this[_0x358c0b(0x3e9)][_0x358c0b(0x4d7)](le,this[_0x358c0b(0x4a9)],this['type'],_0x243cba[0x0],_0x204420,this[_0x358c0b(0x474)],void 0x0);}throw _0x4ba5ee[_0x358c0b(0x461)];}throw _0x1ce6bb[_0x358c0b(0x461)];}catch(_0x4bd3ec){return this['_logService'][_0x358c0b(0x461)](_0x4bd3ec),this[_0x358c0b(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](_0x457b2e){const _0x387ba7=_0x2683e6;if(this[_0x387ba7(0x245)](),this[_0x387ba7(0x441)](_0x457b2e))return this[_0x387ba7(0x3e9)]['createInstance'](re,this[_0x387ba7(0x4a9)],this[_0x387ba7(0x44a)],null,this['_pendingMutations'],this[_0x387ba7(0x36d)],[],this[_0x387ba7(0x474)]);this[_0x387ba7(0x45a)]();const _0xd2e7a4=this[_0x387ba7(0x3e9)][_0x387ba7(0x4d7)](ce,this['unitID'],this[_0x387ba7(0x44a)],this['_pendingMutations'],this[_0x387ba7(0x474)]);return _0xd2e7a4[_0x387ba7(0x375)](),_0xd2e7a4[_0x387ba7(0x22c)](),_0xd2e7a4;}['onRemoteRej'](_0x2a5076){const _0x29bd68=_0x2683e6;return this[_0x29bd68(0x25c)](!!(_0x2a5076!=null&&_0x2a5076[_0x29bd68(0x43e)]));}[_0x2683e6(0x456)](_0x5160f9){const _0x27627c=_0x2683e6;return this[_0x27627c(0x4da)]>vn?this[_0x27627c(0x173)]():(this[_0x27627c(0x30c)]=fn(this[_0x27627c(0x4da)],{'timeout':this[_0x27627c(0x4da)],'reqId':_0x5160f9[_0x27627c(0x5c5)]}),this[_0x27627c(0x330)]=this[_0x27627c(0x30c)][_0x27627c(0x44d)](({reqId:_0x366a58,timeout:_0x1bab28})=>{this['_resendWithTimeout'](_0x366a58,_0x1bab28);}),this);}[_0x2683e6(0x173)](){const _0x3251f5=_0x2683e6;return this[_0x3251f5(0x245)](),this[_0x3251f5(0x3e9)][_0x3251f5(0x4d7)](me,this[_0x3251f5(0x4a9)],this['type'],this[_0x3251f5(0x36d)],this['_pendingMutations'],this[_0x3251f5(0x474)]);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){const _0x4bed4f=_0x2683e6;this[_0x4bed4f(0x474)][_0x4bed4f(0x4aa)](this[_0x4bed4f(0x36d)]);}[_0x2683e6(0x25c)](_0x3246a7){const _0x4e58be=_0x2683e6;return this[_0x4e58be(0x245)](),this[_0x4e58be(0x3e9)][_0x4e58be(0x4d7)](ve,this['unitID'],this[_0x4e58be(0x44a)],null,this['_pendingMutations'],this[_0x4e58be(0x474)],_0x3246a7);}[_0x2683e6(0x2c6)](_0x32faee,_0x4fb2e8){const _0x4ac9e2=_0x2683e6;var _0x3c485c;_0x32faee===((_0x3c485c=this[_0x4ac9e2(0x36d)])==null?void 0x0:_0x3c485c['reqId'])&&(this[_0x4ac9e2(0x4df)](),this[_0x4ac9e2(0x4da)]=_0x4fb2e8===0x0?0x3e8:_0x4fb2e8*0x2);}['_clearScheduledTask'](){const _0x5c662c=_0x2683e6;var _0x3f10f7;(_0x3f10f7=this[_0x5c662c(0x330)])==null||_0x3f10f7['unsubscribe'](),this[_0x5c662c(0x4da)]=0x0;}};le=Ie([N(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x8,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),N(0x9,a[_0x2683e6(0x1d5)]),N(0xa,a['ILogService']),N(0xb,S[_0x2683e6(0x1e3)]),N(0xc,a[_0x2683e6(0x5cb)])],le);let ve=class extends Ce{constructor(_0x3faaf5,_0x5b5e43,_0x2173e9,_0x52c18d,_0x30bac8,_0x458c72=!0x1,_0x2e56f1,_0x1a0260,_0x150878,_0x109ebf,_0x41bbf0,_0x5dbd57,_0xec7619){const _0x577961=_0x2683e6;super(_0x3faaf5,_0x5b5e43,_0x2173e9,_0x52c18d,_0x30bac8,_0x1a0260,_0x150878,_0x41bbf0,_0x109ebf),I(this,'status','conflict'),(this['_isPermissionRej']=_0x458c72,this[_0x577961(0x2b5)]=_0x2e56f1,this[_0x577961(0x347)]=_0x5dbd57,this['_notificationService']=_0xec7619,this['_showConflictNotification'](),this[_0x577961(0x17c)](),this[_0x577961(0x49c)]());}[_0x2683e6(0x3b0)](){return this;}[_0x2683e6(0x373)](){return this;}[_0x2683e6(0x1a5)](){return this;}['onRemoteRej'](){return this;}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){return this;}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){const _0x43192f=_0x2683e6;throw new Error(_0x43192f(0x259));}['_clearLocalCache'](){const _0x110606=_0x2683e6;this[_0x110606(0x4ee)][_0x110606(0x2d4)](this[_0x110606(0x4a9)],this[_0x110606(0x44a)],null,[]);}[_0x2683e6(0x2c3)](){const _0x45d3c2=_0x2683e6;this[_0x45d3c2(0x4b9)]?this[_0x45d3c2(0x2cc)]['show']({'title':this[_0x45d3c2(0x347)]['t'](_0x45d3c2(0x567)),'content':this['_localeService']['t'](_0x45d3c2(0x3b3)),'type':_0x45d3c2(0x461),'duration':0x0}):this[_0x45d3c2(0x2cc)][_0x45d3c2(0x4db)]({'title':this[_0x45d3c2(0x347)]['t'](_0x45d3c2(0x482)),'content':this['_localeService']['t'](_0x45d3c2(0x185)),'type':_0x45d3c2(0x461),'duration':0x0});}[_0x2683e6(0x49c)](){const _0x15b31b=_0x2683e6;this['_permissionService'][_0x15b31b(0x524)](new k[(_0x15b31b(0x4f4))](this[_0x15b31b(0x4a9)])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a[_0x2683e6(0x273)])),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a[_0x2683e6(0x5cb)]),N(0x9,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),N(0xa,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0xb,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x100313,_0x257747,_0x21619e,_0x1172d9,_0x5cc783,_0x3e6ddd,_0x33abbd,_0x1fd2c4,_0xa9ffb4,_0x59dabc){const _0x37f588=_0x2683e6;super(_0x100313,_0x257747,_0x21619e,_0x1172d9,_0x5cc783,_0xa9ffb4,_0x59dabc,_0x33abbd,_0x1fd2c4),I(this,_0x37f588(0x47e),_0x37f588(0x39a)),this[_0x37f588(0x3e9)]=_0x3e6ddd;}[_0x2683e6(0x3b0)](_0x3cb574){const _0x1eca5b=_0x2683e6;return this['_pendingMutations']['push'](_0x3cb574),this[_0x1eca5b(0x22c)](),this;}['onRemoteChangeset'](_0x713291){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x2683e6(0x1a5)](){const _0x560dba=_0x2683e6;throw new Error(_0x560dba(0x2e5));}[_0x2683e6(0x2ea)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){return this;}[_0x2683e6(0x46e)](){const _0xbbca3b=_0x2683e6,{_injector:_0x44d034,_pendingMutations:_0x46c923,_awaitingChangeset:_0x37271a,unitID:_0x5a036a,_handler:_0x30a18e,type:_0x53a8c3}=this,_0xabe9a0=mn(_0x44d034,_0x5a036a,_0x53a8c3,_0x37271a,_0x46c923,_0x30a18e);return _0xabe9a0 instanceof ce?_0xabe9a0['_schedule']():(_0xabe9a0 instanceof le||_0xabe9a0 instanceof fe)&&_0xabe9a0[_0xbbca3b(0x4df)](),_0xabe9a0;}['resend'](){const _0x2a8378=_0x2683e6;throw new Error(_0x2a8378(0x270));}};me=Ie([N(0x5,a['Inject'](a['Injector'])),N(0x6,a['Inject'](S[_0x2683e6(0x4f5)])),N(0x7,a['Inject'](exports[_0x2683e6(0x604)])),N(0x8,a[_0x2683e6(0x1d5)]),N(0x9,a[_0x2683e6(0x5cb)])],me);let re=class extends Ce{constructor(_0x299a2c,_0x15aecc,_0x1de616,_0x12ab3f,_0x7463c6,_0x365e36,_0x4a53a2,_0x1da48d,_0x29336e,_0x5a43f8,_0x48f931,_0x2039fa,_0x179cbd,_0x25be57){const _0x4782e8=_0x2683e6;super(_0x299a2c,_0x15aecc,_0x1de616,_0x12ab3f,_0x4a53a2,_0x2039fa,_0x179cbd,_0x29336e,_0x5a43f8),I(this,_0x4782e8(0x47e),_0x4782e8(0x2ef)),(this[_0x4782e8(0x1a3)]=_0x7463c6,this[_0x4782e8(0x5b9)]=_0x365e36,this[_0x4782e8(0x3e9)]=_0x1da48d,this[_0x4782e8(0x577)]=_0x48f931,this['_transformService']=_0x25be57);}[_0x2683e6(0x16f)](_0x2972ab){const _0x245a67=_0x2683e6;try{const _0x4de069=[..._0x2972ab,...this[_0x245a67(0x5b9)]],_0xcc9b21=[this[_0x245a67(0x36d)]||this[_0x245a67(0x1a3)]][_0x245a67(0x57f)](_0xc12f18=>!!_0xc12f18);let _0x1f205c,_0x22a78b;if(_0xcc9b21['length']){const _0x2ff343=this[_0x245a67(0x318)][_0x245a67(0x192)](_0x4de069,_0xcc9b21,!0x1);if(!S[_0x245a67(0x406)](_0x2ff343))throw _0x2ff343['error'];_0x1f205c=_0x2ff343['c1Prime'],_0x22a78b=_0x2ff343[_0x245a67(0x421)];}else _0x1f205c=_0x4de069,_0x22a78b=[];let _0x3a495c=this[_0x245a67(0x4b8)];_0x1f205c[_0x245a67(0x280)](_0x513855=>{const _0x467dba=_0x245a67;let _0x14190e;if(_0x3a495c[_0x467dba(0x29a)]){const _0x3cab22=this[_0x467dba(0x318)]['transformMutationsWithChangeset'](_0x513855,_0x3a495c);if(!S[_0x467dba(0x30a)](_0x3cab22))throw _0x3cab22['error'];_0x14190e=_0x3cab22[_0x467dba(0x160)],_0x3a495c=_0x3cab22[_0x467dba(0x326)];}else _0x14190e=_0x513855;this[_0x467dba(0x2ff)](_0x14190e);}),this[_0x245a67(0x1a3)]&&this[_0x245a67(0x45a)](),this['_awaitingChangeset']&&_0x22a78b[_0x245a67(0x29a)]&&(_0x22a78b[0x0][_0x245a67(0x522)]=this[_0x245a67(0x186)]());let _0x1ec118;if(this['_awaitingChangeset']&&_0x3a495c[_0x245a67(0x29a)]!==0x0)_0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](le,this['unitID'],this[_0x245a67(0x44a)],_0x22a78b[0x0],_0x3a495c,this[_0x245a67(0x474)],void 0x0);else{if(this[_0x245a67(0x36d)]&&_0x3a495c['length']===0x0)_0x22a78b[0x0][_0x245a67(0x522)]=this[_0x245a67(0x186)](),_0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](fe,this[_0x245a67(0x4a9)],this[_0x245a67(0x44a)],_0x22a78b[0x0],this[_0x245a67(0x474)]);else{if(_0x3a495c[_0x245a67(0x29a)]!==0x0){const _0x1e4a50=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](ce,this['unitID'],this[_0x245a67(0x44a)],_0x3a495c,this[_0x245a67(0x474)]);_0x1e4a50['_schedule'](),_0x1ec118=_0x1e4a50;}else _0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](Oe,this['unitID'],this[_0x245a67(0x44a)],this[_0x245a67(0x474)]);}}return _0x1ec118[_0x245a67(0x22c)](),_0x1ec118;}catch(_0x4ec920){return this['_logService'][_0x245a67(0x461)](_0x245a67(0x2a1),_0x245a67(0x5ed),_0x4ec920),this[_0x245a67(0x3e9)]['createInstance'](ve,this[_0x245a67(0x4a9)],this['type'],this[_0x245a67(0x36d)],this[_0x245a67(0x4b8)],this[_0x245a67(0x474)],!0x1);}}['resend'](){const _0x4c2924=_0x2683e6;throw new Error(_0x4c2924(0x5e0));}[_0x2683e6(0x3b0)](_0x3a3670){const _0x119201=_0x2683e6;return this[_0x119201(0x4b8)][_0x119201(0x17e)](_0x3a3670),this;}[_0x2683e6(0x373)](_0x152d34){const _0x253a5f=_0x2683e6;return this[_0x253a5f(0x5b9)]['push'](_0x152d34),this;}[_0x2683e6(0x1a5)](_0x4df9f0){const _0x2f4865=_0x2683e6;if(this[_0x2f4865(0x36d)])return this[_0x2f4865(0x1a3)]=this[_0x2f4865(0x36d)],this[_0x2f4865(0x36d)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2683e6(0x2ea)](_0x4e4f41){return this['_onConflict'](!!(_0x4e4f41!=null&&_0x4e4f41['isPermissionRej']));}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){const _0x4b81bc=_0x2683e6;return this[_0x4b81bc(0x3e9)]['createInstance'](me,this['unitID'],this[_0x4b81bc(0x44a)],this[_0x4b81bc(0x36d)],this['_pendingMutations'],this['_handler']);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x25c)](_0xde900e){const _0x5cf908=_0x2683e6;return this[_0x5cf908(0x3e9)][_0x5cf908(0x4d7)](ve,this[_0x5cf908(0x4a9)],this[_0x5cf908(0x44a)],this[_0x5cf908(0x36d)],this[_0x5cf908(0x4b8)],this[_0x5cf908(0x474)],_0xde900e);}};re=Ie([N(0x7,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x8,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x9,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0xa,a['ILogService']),N(0xb,a[_0x2683e6(0x1d5)]),N(0xc,a[_0x2683e6(0x5cb)]),N(0xd,S['ITransformService'])],re);function mn(_0x5d7cbb,_0x1abdba,_0x42cb22,_0x3faea0,_0x7b1620,_0x5dbca4){const _0x4ed15d=_0x2683e6;return _0x3faea0&&_0x7b1620[_0x4ed15d(0x29a)]?_0x5d7cbb[_0x4ed15d(0x4d7)](le,_0x1abdba,_0x42cb22,_0x3faea0,_0x7b1620,_0x5dbca4,void 0x0):_0x3faea0?_0x5d7cbb[_0x4ed15d(0x4d7)](fe,_0x1abdba,_0x42cb22,_0x3faea0,_0x5dbca4):_0x7b1620['length']?_0x5d7cbb[_0x4ed15d(0x4d7)](ce,_0x1abdba,_0x42cb22,_0x7b1620,_0x5dbca4):_0x5d7cbb[_0x4ed15d(0x4d7)](Oe,_0x1abdba,_0x42cb22,_0x5dbca4);}var Bi=Object[_0x2683e6(0x1e7)],ki=Object[_0x2683e6(0x181)],yt=(_0x62d45d,_0x3e8766,_0x5dd371,_0x48815a)=>{const _0x36dde8=_0x2683e6;for(var _0xba0ac6=_0x48815a>0x1?void 0x0:_0x48815a?ki(_0x3e8766,_0x5dd371):_0x3e8766,_0x40b462=_0x62d45d[_0x36dde8(0x29a)]-0x1,_0x50e814;_0x40b462>=0x0;_0x40b462--)(_0x50e814=_0x62d45d[_0x40b462])&&(_0xba0ac6=(_0x48815a?_0x50e814(_0x3e8766,_0x5dd371,_0xba0ac6):_0x50e814(_0xba0ac6))||_0xba0ac6);return _0x48815a&&_0xba0ac6&&Bi(_0x3e8766,_0x5dd371,_0xba0ac6),_0xba0ac6;},H=(_0x53da6e,_0x146258)=>(_0x29498a,_0x4046e4)=>_0x146258(_0x29498a,_0x4046e4,_0x53da6e);exports[_0x2683e6(0x30d)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x5d3ea1,_0x50cb44,_0x48f603,_0x171742,_0x10c46b,_0x45c5c9,_0x23c128,_0xab350f,_0x386022,_0x122d7f,_0xa0fd0f,_0x2e3815,_0x204e49){const _0x143fc1=_0x2683e6;super(),I(this,_0x143fc1(0x402),new A[(_0x143fc1(0x1ce))](null)),I(this,_0x143fc1(0x21a),this[_0x143fc1(0x402)][_0x143fc1(0x4f2)]()),I(this,_0x143fc1(0x3c4)),I(this,'_collaborationPaused',!0x1),I(this,_0x143fc1(0x1c5),''),I(this,_0x143fc1(0x47f),0x0),I(this,'status$',this[_0x143fc1(0x21a)]['pipe'](A['map'](_0xd53f69=>_0xd53f69?_0xd53f69[_0x143fc1(0x47e)]:q['OFFLINE']),A[_0x143fc1(0x4dd)](0x1))),I(this,'_transitionLocked',!0x1),I(this,'_remoteChangesetQueue',[]),(this[_0x143fc1(0x4a9)]=_0x5d3ea1,this[_0x143fc1(0x34f)]=_0x50cb44,this[_0x143fc1(0x3e6)]=_0x48f603,this['_injector']=_0x171742,this[_0x143fc1(0x4ee)]=_0x10c46b,this[_0x143fc1(0x2fb)]=_0x45c5c9,this[_0x143fc1(0x347)]=_0x23c128,this[_0x143fc1(0x285)]=_0xab350f,this[_0x143fc1(0x577)]=_0x386022,this[_0x143fc1(0x447)]=_0x122d7f,this['_messageService']=_0xa0fd0f,this[_0x143fc1(0x2b5)]=_0x2e3815,this[_0x143fc1(0x5da)]=_0x204e49);}get[_0x2683e6(0x243)](){const _0x3484ca=_0x2683e6;return this[_0x3484ca(0x3c4)];}async[_0x2683e6(0x25b)](){const _0x40a933=_0x2683e6;if(this['state'])throw new Error(_0x40a933(0x24a));await this[_0x40a933(0x4ea)]();}[_0x2683e6(0x4d0)](){const _0xa2f098=_0x2683e6;return this[_0xa2f098(0x201)]=!0x0,a[_0xa2f098(0x454)](()=>{const _0x5b6cf5=_0xa2f098;this[_0x5b6cf5(0x201)]=!0x1,this[_0x5b6cf5(0x193)]();});}[_0x2683e6(0x54d)](_0x47666a){const _0x263935=_0x2683e6;this[_0x263935(0x3c4)]=_0x47666a,this[_0x263935(0x402)][_0x263935(0x40f)](_0x47666a);}async['_init'](){const _0x116a31=_0x2683e6;var _0xe3a4fe;this['_updateState'](await this[_0x116a31(0x378)]()),this[_0x116a31(0x5da)]&&((_0xe3a4fe=this[_0x116a31(0x5da)])==null||_0xe3a4fe[_0x116a31(0x1b4)](this[_0x116a31(0x4a9)]),this[_0x116a31(0x427)](this[_0x116a31(0x5da)][_0x116a31(0x195)](this[_0x116a31(0x4a9)])['subscribe'](_0x19a947=>{const _0x58bff6=_0x116a31;this['_logService'][_0x58bff6(0x3db)](_0x58bff6(0x3f6),_0x58bff6(0x43b),_0x19a947),_0x19a947===un[_0x58bff6(0x4c1)]?(this[_0x58bff6(0x167)][_0x58bff6(0x4db)]({'content':this[_0x58bff6(0x347)]['t']('collaboration.single-unit.warning'),'type':ge[_0x58bff6(0x455)][_0x58bff6(0x1f7)]}),this[_0x58bff6(0x2b5)]['updatePermissionPoint'](new k[(_0x58bff6(0x4f4))](this[_0x58bff6(0x4a9)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this['_permissionService']['updatePermissionPoint'](new k[(_0x58bff6(0x4f4))](this[_0x58bff6(0x4a9)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x3ce31e=!0x1;return this[_0x116a31(0x427)](this['session']['sessionStatus$']['subscribe'](_0xebbfc8=>{const _0x2b210a=_0x116a31;_0xebbfc8===se[_0x2b210a(0x191)]?this[_0x2b210a(0x4bd)](_0x3ce31e):_0xebbfc8===se[_0x2b210a(0x25a)]&&(_0x3ce31e=!0x0,this['_toggleOffline']());})),this[_0x116a31(0x427)](this[_0x116a31(0x34f)][_0x116a31(0x279)][_0x116a31(0x44d)](_0x58b6f3=>{const _0x26e9e4=_0x116a31;try{switch(_0x58b6f3[_0x26e9e4(0x477)]){case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x3da)]:{this['_onRemoteChangeset'](S['parseProtocolChangeset'](_0x58b6f3[_0x26e9e4(0x5ac)]));break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x2e1)]:{this[_0x26e9e4(0x364)](_0x58b6f3['data']);break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x1bf)]:{this[_0x26e9e4(0x274)]();break;}case S['CollaborationEvent'][_0x26e9e4(0x4e5)]:{this[_0x26e9e4(0x1a7)](_0x58b6f3[_0x26e9e4(0x5ac)]);break;}case S['CollaborationEvent'][_0x26e9e4(0x4d1)]:{this[_0x26e9e4(0x3af)](_0x58b6f3[_0x26e9e4(0x5ac)]['changesets']['map'](_0x5a2906=>S[_0x26e9e4(0x36e)](_0x5a2906)));break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x4e1)]:this[_0x26e9e4(0x274)]({'isPermissionRej':!0x0});}}catch(_0x45b4f7){throw console[_0x26e9e4(0x461)](_0x26e9e4(0x52c),_0x45b4f7),_0x45b4f7;}})),this[_0x116a31(0x3c4)];}['_unlockTransition'](){const _0x2300ad=_0x2683e6;this[_0x2300ad(0x2e4)]=!0x1;}[_0x2683e6(0x15a)](){const _0x15ae53=_0x2683e6;if(this[_0x15ae53(0x2e4)])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[_0x15ae53(0x2e4)]=!0x0;}[_0x2683e6(0x300)](_0x2bc60f){const _0x4d9b12=_0x2683e6;this[_0x4d9b12(0x15a)](),this[_0x4d9b12(0x54d)](this[_0x4d9b12(0x3c4)][_0x4d9b12(0x3b0)](_0x2bc60f)),this[_0x4d9b12(0x2fd)]();}[_0x2683e6(0x1c4)](_0x2bba79){const _0x5cfb08=_0x2683e6;if(!(_0x2bba79[_0x5cfb08(0x297)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x5cfb08(0x4a9)]))){if(this['_collaborationPaused']){this[_0x5cfb08(0x1db)][_0x5cfb08(0x17e)](_0x2bba79);return;}this[_0x5cfb08(0x190)](_0x2bba79);}}[_0x2683e6(0x193)](){const _0x528973=_0x2683e6;this[_0x528973(0x1db)]['forEach'](_0x448da9=>this['_applyRemoteChangeset'](_0x448da9)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x2a710e){const _0xbb53ae=_0x2683e6,_0x471215=this[_0xbb53ae(0x2fb)][_0xbb53ae(0x475)]['fetchThroughInterceptors'](this[_0xbb53ae(0x2fb)]['interceptor'][_0xbb53ae(0x2e9)]()['COMPRESS_MUTATION_APPLY'])(_0x2a710e[_0xbb53ae(0x2a9)],null)||_0x2a710e[_0xbb53ae(0x2a9)],_0x4e9cd7={..._0x2a710e,'mutations':_0x471215};this[_0xbb53ae(0x15a)](),this[_0xbb53ae(0x54d)](this[_0xbb53ae(0x3c4)][_0xbb53ae(0x373)](_0x4e9cd7)),this[_0xbb53ae(0x2fd)]();}[_0x2683e6(0x364)](_0x231582){const _0x68ddfb=_0x2683e6;this[_0x68ddfb(0x15a)](),this[_0x68ddfb(0x54d)](this[_0x68ddfb(0x3c4)][_0x68ddfb(0x1a5)](_0x231582)),this['_unlockTransition']();}[_0x2683e6(0x274)](_0xabf9b9){const _0xb5b38=_0x2683e6;this[_0xb5b38(0x15a)](),this[_0xb5b38(0x54d)](this['_state']['onRemoteRej'](_0xabf9b9)),this[_0xb5b38(0x2fd)]();}[_0x2683e6(0x1a7)](_0x92d52c){const _0x4a0c23=_0x2683e6;this[_0x4a0c23(0x15a)](),this['_updateState'](this[_0x4a0c23(0x3c4)][_0x4a0c23(0x456)](_0x92d52c)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3f5bfe){const _0x34f267=_0x2683e6;if(!(this[_0x34f267(0x3c4)]instanceof re))throw new TypeError(_0x34f267(0x379));const _0x692efb=_0x3f5bfe[_0x34f267(0x538)](_0x13af5d=>{const _0xf520b9=_0x34f267,_0x22f3ca=this['_compressMutationService'][_0xf520b9(0x475)]['fetchThroughInterceptors'](this[_0xf520b9(0x2fb)]['interceptor'][_0xf520b9(0x2e9)]()[_0xf520b9(0x2f4)])(_0x13af5d[_0xf520b9(0x2a9)],null)||_0x13af5d['mutations'];return{..._0x13af5d,'mutations':_0x22f3ca};});this[_0x34f267(0x15a)](),this[_0x34f267(0x54d)](this[_0x34f267(0x3c4)][_0x34f267(0x16f)](_0x692efb)),this['_unlockTransition']();}[_0x2683e6(0x202)](){const _0x4dd902=_0x2683e6;this[_0x4dd902(0x15a)](),this[_0x4dd902(0x54d)](this[_0x4dd902(0x3c4)][_0x4dd902(0x173)]()),this[_0x4dd902(0x2fd)]();}[_0x2683e6(0x4bd)](_0x1f2dcf=!0x1){const _0x491026=_0x2683e6;this[_0x491026(0x15a)](),this[_0x491026(0x54d)](this['_state'][_0x491026(0x46e)]()),this[_0x491026(0x2fd)]();const _0x5059c7=this['_state'];_0x1f2dcf&&_0x5059c7 instanceof Oe&&(this[_0x491026(0x15a)](),this[_0x491026(0x54d)](_0x5059c7['fetchMiss']()),this[_0x491026(0x2fd)]());}async[_0x2683e6(0x378)](){return new Promise(_0x448289=>{const _0x12339c=_0x479a;this['session']['sessionStatus$'][_0x12339c(0x36b)](A[_0x12339c(0x282)](0x1))[_0x12339c(0x44d)](async _0x424e1b=>{const _0x19e6f3=_0x12339c;_0x448289(await this[_0x19e6f3(0x5b0)](_0x424e1b===se[_0x19e6f3(0x191)]));});});}[_0x2683e6(0x1d9)](){const _0x3b9be0=this['unitID'];return{'onStateChange':(_0x8e7a34,_0x74b7fc)=>{const _0x2e094e=_0x479a;if(_0x8e7a34!==this[_0x2e094e(0x3c4)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x8e7a34['status']+'\x0aAfter:\x20'+_0x74b7fc[_0x2e094e(0x47e)]+_0x2e094e(0x307)+this['_state'][_0x2e094e(0x47e)]);this[_0x2e094e(0x54d)](_0x74b7fc);},'onSendChangeset':_0x227101=>{const _0x53a698=_0x479a;_0x227101[_0x53a698(0x1ea)]||(_0x227101[_0x53a698(0x1ea)]=this[_0x53a698(0x1c5)],_0x227101[_0x53a698(0x5c5)]=++this[_0x53a698(0x47f)]);const _0x497b03={'eventID':S[_0x53a698(0x3d6)][_0x53a698(0x2a4)],'data':{'unitID':_0x227101[_0x53a698(0x4a9)],'unitType':this[_0x53a698(0x3e6)],'changeset':_0x227101,'memberID':this['session']['getMemberID']()}};this[_0x53a698(0x34f)]['send'](_0x497b03,this[_0x53a698(0x4a9)]);},'onMissingChangesets':({from:_0x29aee7,to:_0x190515})=>{const _0xfa4efc=_0x479a;this[_0xfa4efc(0x577)][_0xfa4efc(0x3db)](_0xfa4efc(0x3f6),_0xfa4efc(0x5f5)+_0x29aee7+'\x20to\x20'+_0x190515);const _0x2afea8={'eventID':S[_0xfa4efc(0x3d6)][_0xfa4efc(0x464)],'data':{'unitID':_0x3b9be0,'unitType':this[_0xfa4efc(0x3e6)],'from':_0x29aee7,'to':_0x190515}};this['session'][_0xfa4efc(0x4ae)](_0x2afea8,this[_0xfa4efc(0x4a9)]);}};}async[_0x2683e6(0x5b0)](_0x2cdfa1){const _0xd797ed=_0x2683e6;var _0x89910d,_0x230811;const _0xf1839e=await this[_0xd797ed(0x4ee)][_0xd797ed(0x27c)](this['unitID']),_0x394056=(_0x89910d=_0xf1839e==null?void 0x0:_0xf1839e[_0xd797ed(0x2a9)])!=null?_0x89910d:[],_0x269086=(_0x230811=_0xf1839e==null?void 0x0:_0xf1839e[_0xd797ed(0x154)])!=null?_0x230811:null,_0x4994f4=!!(_0x269086!=null&&_0x269086[_0xd797ed(0x1ea)])&&!!(_0x269086!=null&&_0x269086[_0xd797ed(0x5c5)]);this['_changesetSessionId']=_0x4994f4?_0x269086[_0xd797ed(0x1ea)]:mi(),this[_0xd797ed(0x47f)]=_0x4994f4?_0x269086[_0xd797ed(0x5c5)]:0x0;const _0x507b42=this[_0xd797ed(0x4a9)];try{this[_0xd797ed(0x3e0)](_0x269086,_0x394056);}catch(_0x35f123){this[_0xd797ed(0x577)]['error'](_0x35f123);}const _0x473c3c=this[_0xd797ed(0x1d9)]();if(_0x2cdfa1){const _0x2bdb16=mn(this['_injector'],_0x507b42,this[_0xd797ed(0x3e6)],_0x269086,_0x394056,_0x473c3c);return _0x2bdb16 instanceof ce?_0x2bdb16[_0xd797ed(0x375)]():(_0x2bdb16 instanceof le||_0x2bdb16 instanceof fe)&&_0x2bdb16[_0xd797ed(0x4df)](),_0x2bdb16;}return this[_0xd797ed(0x3e9)][_0xd797ed(0x4d7)](me,_0x507b42,this[_0xd797ed(0x3e6)],_0x269086,_0x394056,_0x473c3c);}['_replayCachedMutations'](_0x1748c4,_0x57064a){const _0x24c4ab=_0x2683e6;var _0x497977,_0x354f01;const _0x47b728=this[_0x24c4ab(0x2fb)][_0x24c4ab(0x475)][_0x24c4ab(0x5d9)](this[_0x24c4ab(0x2fb)][_0x24c4ab(0x475)][_0x24c4ab(0x2e9)]()['COMPRESS_MUTATION_APPLY']);(_0x497977=_0x47b728((_0x1748c4==null?void 0x0:_0x1748c4[_0x24c4ab(0x2a9)])||[],null))==null||_0x497977[_0x24c4ab(0x280)](_0x2e71f1=>this[_0x24c4ab(0x447)]['executeCommand'](_0x2e71f1['id'],_0x2e71f1[_0x24c4ab(0x55b)])),(_0x354f01=_0x47b728(_0x57064a||[],null))==null||_0x354f01['forEach'](_0x373de7=>this[_0x24c4ab(0x447)][_0x24c4ab(0x511)](_0x373de7['id'],_0x373de7['params']));}},exports[_0x2683e6(0x30d)]=yt([H(0x3,a['Inject'](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),H(0x5,a['Inject'](S[_0x2683e6(0x3a1)])),H(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),H(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),H(0x8,a[_0x2683e6(0x5a9)]),H(0x9,a[_0x2683e6(0x1d5)]),H(0xa,ee[_0x2683e6(0x509)]),H(0xb,a[_0x2683e6(0x273)]),H(0xc,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x30d)]),exports[_0x2683e6(0x365)]=class extends exports['CollaborationEntity']{constructor(_0x1c0758,_0x46ffb5,_0x5898b1,_0x53e94a,_0xb383e9,_0x58c387,_0x5e5e00,_0xe11058,_0x80f69f,_0x10511d,_0x5a6cd8,_0x5a8136,_0x3ef1b9,_0x421b54,_0x1061c9,_0x38a8b5,_0x12c9ef,_0x394f67){const _0x1e1c97=_0x2683e6;super(_0x1c0758,_0x5898b1,_0x46ffb5,_0x53e94a,_0xb383e9,_0x58c387,_0x5e5e00,_0xe11058,_0x421b54,_0x1061c9,_0x38a8b5,_0x12c9ef,_0x394f67),this[_0x1e1c97(0x4a9)]=_0x1c0758,this[_0x1e1c97(0x44a)]=_0x46ffb5,this[_0x1e1c97(0x42e)]=_0x80f69f,this[_0x1e1c97(0x1bb)]=_0x10511d,this[_0x1e1c97(0x5d8)]=_0x5a6cd8,this[_0x1e1c97(0x20f)]=_0x5a8136,this['_docSyncEditingCollabCursorService']=_0x3ef1b9;}[_0x2683e6(0x1d9)](){const _0x5a6c4f=_0x2683e6,_0x27418e=super[_0x5a6c4f(0x1d9)]();return _0x27418e[_0x5a6c4f(0x32f)]=_0x59465c=>this['_docTransformIMECacheService'][_0x5a6c4f(0x4d2)](_0x59465c),_0x27418e[_0x5a6c4f(0x458)]=_0x7b57cf=>this[_0x5a6c4f(0x5d8)][_0x5a6c4f(0x37e)](_0x7b57cf),_0x27418e[_0x5a6c4f(0x366)]=_0x364c4d=>this[_0x5a6c4f(0x20f)][_0x5a6c4f(0x46a)](_0x364c4d),_0x27418e[_0x5a6c4f(0x2fe)]=_0x277f2a=>this[_0x5a6c4f(0x1dd)][_0x5a6c4f(0x4be)](_0x277f2a),_0x27418e[_0x5a6c4f(0x3bd)]=_0x42372d=>this['_docTransformIMECacheService'][_0x5a6c4f(0x5b3)](_0x42372d),_0x27418e[_0x5a6c4f(0x48d)]=_0x5bddcd=>this[_0x5a6c4f(0x5d8)][_0x5a6c4f(0x5b3)](_0x5bddcd),_0x27418e;}async[_0x2683e6(0x4ea)](){const _0x432b7f=_0x2683e6,_0x28480a=await super[_0x432b7f(0x4ea)]();return this['_docStateChangeManagerService'][_0x432b7f(0x439)][_0x432b7f(0x36b)](A['takeUntil'](this[_0x432b7f(0x534)]))[_0x432b7f(0x44d)](_0x25929a=>{const _0x125526=_0x432b7f;if(_0x25929a==null)return;const {unitId:_0x16c4e0,redoState:_0x13644e,commandId:_0x166da2}=_0x25929a;if(_0x16c4e0!==this['unitID'])return;const _0x101d46={'id':_0x166da2,'type':a[_0x125526(0x59f)][_0x125526(0x3fd)],'params':{'unitId':_0x16c4e0,'actions':_0x13644e[_0x125526(0x2ab)],'textRanges':null}};this['_onLocalMutation'](_0x101d46);}),_0x28480a;}},exports[_0x2683e6(0x365)]=yt([H(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),H(0x5,a['Inject'](S['CompressMutationService'])),H(0x6,a[_0x2683e6(0x22b)](a['LocaleService'])),H(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),H(0x8,a['Inject'](J[_0x2683e6(0x169)])),H(0x9,a[_0x2683e6(0x22b)](Be)),H(0xa,a['Inject'](We)),H(0xb,a[_0x2683e6(0x22b)](Fe)),H(0xc,a[_0x2683e6(0x22b)](Rt)),H(0xd,a[_0x2683e6(0x5a9)]),H(0xe,a[_0x2683e6(0x1d5)]),H(0xf,ee[_0x2683e6(0x509)]),H(0x10,a[_0x2683e6(0x273)]),H(0x11,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x365)]),exports[_0x2683e6(0x4bf)]=class extends exports['CollaborationEntity']{constructor(_0x169d8a,_0x13fca7,_0x3e2e35,_0x4345c1,_0x1a5bb3,_0x4c4684,_0x5708ee,_0x41b857,_0x13b3a7,_0xf624bd,_0x26c54b,_0x51d9e8,_0x578d65,_0x6a226e){const _0x12c320=_0x2683e6;super(_0x169d8a,_0x3e2e35,_0x13fca7,_0x4345c1,_0x1a5bb3,_0x4c4684,_0x5708ee,_0x41b857,_0xf624bd,_0x26c54b,_0x51d9e8,_0x578d65,_0x6a226e),this[_0x12c320(0x4a9)]=_0x169d8a,this['type']=_0x13fca7,this['_sheetTransformSelectionsService']=_0x13b3a7;}[_0x2683e6(0x1d9)](){const _0x3a22c7=_0x2683e6,_0x4a31af=super[_0x3a22c7(0x1d9)]();return _0x4a31af['onTransformSelections']=_0x17a207=>this[_0x3a22c7(0x440)][_0x3a22c7(0x46a)](_0x17a207),_0x4a31af;}async[_0x2683e6(0x4ea)](){const _0x42bd42=_0x2683e6,_0x284849=await super['_init']();return this[_0x42bd42(0x427)](this[_0x42bd42(0x447)][_0x42bd42(0x571)]((_0x33a5e5,_0x36fb5a)=>{const _0x89ff16=_0x42bd42;if(_0x33a5e5[_0x89ff16(0x44a)]!==a[_0x89ff16(0x59f)]['MUTATION']||_0x36fb5a!=null&&_0x36fb5a[_0x89ff16(0x498)]||_0x36fb5a!=null&&_0x36fb5a['onlyLocal'])return;const _0x486f94=_0x33a5e5[_0x89ff16(0x55b)];if((_0x486f94==null?void 0x0:_0x486f94[_0x89ff16(0x5e6)])!==this['unitID'])return;const _0x2ddd78=_0x33a5e5,_0xdbc3e0=this[_0x89ff16(0x2fb)][_0x89ff16(0x475)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x89ff16(0x2e9)]()[_0x89ff16(0x484)])([_0x2ddd78],null)||[_0x2ddd78];this[_0x89ff16(0x300)](_0xdbc3e0[0x0]);})),_0x284849;}},exports['SheetCollaborationEntity']=yt([H(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),H(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x3a1)])),H(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),H(0x7,a['Inject'](S[_0x2683e6(0x4f5)])),H(0x8,a[_0x2683e6(0x22b)](ke)),H(0x9,a[_0x2683e6(0x5a9)]),H(0xa,a[_0x2683e6(0x1d5)]),H(0xb,ee[_0x2683e6(0x509)]),H(0xc,a['IPermissionService']),H(0xd,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x4bf)]);var Wi=Object[_0x2683e6(0x1e7)],Fi=Object[_0x2683e6(0x181)],Vi=(_0x400d7a,_0xe6edb6,_0x42af82,_0x438d1e)=>{const _0x35615c=_0x2683e6;for(var _0x38d939=_0x438d1e>0x1?void 0x0:_0x438d1e?Fi(_0xe6edb6,_0x42af82):_0xe6edb6,_0x5af708=_0x400d7a[_0x35615c(0x29a)]-0x1,_0x3bbf2e;_0x5af708>=0x0;_0x5af708--)(_0x3bbf2e=_0x400d7a[_0x5af708])&&(_0x38d939=(_0x438d1e?_0x3bbf2e(_0xe6edb6,_0x42af82,_0x38d939):_0x3bbf2e(_0x38d939))||_0x38d939);return _0x438d1e&&_0x38d939&&Wi(_0xe6edb6,_0x42af82,_0x38d939),_0x38d939;},tt=(_0x1b17a2,_0x33575f)=>(_0x475a27,_0x1a6c58)=>_0x33575f(_0x475a27,_0x1a6c58,_0x1b17a2);exports[_0x2683e6(0x3de)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x15bad5,_0x7b698a,_0x4cde75){const _0x8b9974=_0x2683e6;super(),I(this,_0x8b9974(0x37a),new Map()),I(this,_0x8b9974(0x316),new A[(_0x8b9974(0x51b))]()),(this[_0x8b9974(0x3e9)]=_0x15bad5,this[_0x8b9974(0x5f7)]=_0x7b698a,this['_univerInstanceService']=_0x4cde75,this[_0x8b9974(0x4ea)]());}['dispose'](){const _0x149421=_0x2683e6;super[_0x149421(0x269)](),this[_0x149421(0x37a)][_0x149421(0x280)](_0x5cdd3f=>_0x5cdd3f[_0x149421(0x269)]()),this[_0x149421(0x37a)][_0x149421(0x308)]();}[_0x2683e6(0x3c3)](_0xd42001){const _0x1aaa4e=_0x2683e6;var _0xe8cf98;return(_0xe8cf98=this['_entities'][_0x1aaa4e(0x553)](_0xd42001))!=null?_0xe8cf98:null;}[_0x2683e6(0x3f8)](_0x38a4f4){const _0x5ddd40=_0x2683e6,_0x1b0cf7=this[_0x5ddd40(0x3c3)](_0x38a4f4);return _0x1b0cf7?A['of'](_0x1b0cf7):this[_0x5ddd40(0x316)][_0x5ddd40(0x36b)](V[_0x5ddd40(0x57f)](_0x227b96=>_0x227b96['unitID']===_0x38a4f4));}[_0x2683e6(0x4ea)](){const _0x2ceb03=_0x2683e6;this[_0x2ceb03(0x45b)][_0x2ceb03(0x32d)](a[_0x2ceb03(0x342)][_0x2ceb03(0x4a1)])[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']),V[_0x2ceb03(0x1ba)](0x10))[_0x2ceb03(0x44d)](async _0x5ac9be=>{const _0x19b2f5=_0x2ceb03,_0x56bf90=_0x5ac9be[_0x19b2f5(0x478)](),_0x3a2b3c=await this[_0x19b2f5(0x385)](_0x56bf90,ie[_0x19b2f5(0x4a1)]);this[_0x19b2f5(0x37a)][_0x19b2f5(0x46f)](_0x56bf90,_0x3a2b3c);}),this[_0x2ceb03(0x45b)][_0x2ceb03(0x32d)](a['UniverInstanceType'][_0x2ceb03(0x56e)])[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']),V[_0x2ceb03(0x1ba)](0x10))[_0x2ceb03(0x36b)](V[_0x2ceb03(0x57f)](_0x3abd7a=>!_0x3abd7a[_0x2ceb03(0x478)]()[_0x2ceb03(0x205)]('__')))['subscribe'](async _0xa11b91=>{const _0x295214=_0x2ceb03,_0x285c2e=_0xa11b91[_0x295214(0x478)](),_0xe8ee81=await this['_startCollaboration'](_0x285c2e,ie[_0x295214(0x56e)]);this[_0x295214(0x37a)][_0x295214(0x46f)](_0x285c2e,_0xe8ee81);}),A[_0x2ceb03(0x3ee)](this[_0x2ceb03(0x45b)][_0x2ceb03(0x3b4)](a[_0x2ceb03(0x342)][_0x2ceb03(0x4a1)]),this['_univerInstanceService'][_0x2ceb03(0x3b4)](a['UniverInstanceType'][_0x2ceb03(0x56e)]))[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']))['subscribe'](_0x6b5082=>{const _0x3a53f3=_0x2ceb03,_0x29024f=_0x6b5082[_0x3a53f3(0x478)](),_0x3fb573=this['_entities']['get'](_0x29024f);_0x3fb573&&(_0x3fb573[_0x3a53f3(0x269)](),this['_entities']['delete'](_0x29024f));});}async['_startCollaboration'](_0xc79767,_0x55a903){const _0x52da71=_0x2683e6,_0x5e6682=await this[_0x52da71(0x5f7)][_0x52da71(0x2b8)](_0xc79767),_0x1e2927=this[_0x52da71(0x3e9)][_0x52da71(0x4d7)](this[_0x52da71(0x55a)](_0x55a903),_0xc79767,_0x55a903,_0x5e6682);return await _0x1e2927[_0x52da71(0x25b)](),this[_0x52da71(0x316)][_0x52da71(0x40f)](_0x1e2927),_0x1e2927;}[_0x2683e6(0x55a)](_0xf81815){const _0x5c9a5d=_0x2683e6;switch(_0xf81815){case ie[_0x5c9a5d(0x56e)]:return exports[_0x5c9a5d(0x365)];case ie[_0x5c9a5d(0x4a1)]:return exports[_0x5c9a5d(0x4bf)];default:throw new Error(_0x5c9a5d(0x44f)+_0xf81815);}}},exports[_0x2683e6(0x3de)]=Vi([tt(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),tt(0x1,a['Inject'](exports[_0x2683e6(0x17a)])),tt(0x2,a[_0x2683e6(0x468)])],exports[_0x2683e6(0x3de)]);const $t=[_0x2683e6(0x592),_0x2683e6(0x3e5),_0x2683e6(0x495),_0x2683e6(0x292),_0x2683e6(0x4c6),_0x2683e6(0x510)];class Ot extends a[_0x2683e6(0x3cc)]{constructor(){const _0x59dccd=_0x2683e6;super(...arguments),I(this,_0x59dccd(0x3ab),new Map()),I(this,_0x59dccd(0x1c1),0x0);}[_0x2683e6(0x1b0)](_0x887cf0){const _0x25130f=_0x2683e6;if(this['_assignedColors']['has'](_0x887cf0))return this[_0x25130f(0x3ab)][_0x25130f(0x553)](_0x887cf0);const _0x1aaf19=$t[this[_0x25130f(0x1c1)]];return this[_0x25130f(0x1c1)]=(this[_0x25130f(0x1c1)]+0x1)%$t[_0x25130f(0x29a)],this[_0x25130f(0x3ab)][_0x25130f(0x46f)](_0x887cf0,_0x1aaf19),_0x1aaf19;}}var Gi=Object[_0x2683e6(0x1e7)],Yi=Object[_0x2683e6(0x181)],Ki=(_0xf5675,_0x4cbdfe,_0x122998,_0x23b550)=>{const _0x354fbd=_0x2683e6;for(var _0xe17774=_0x23b550>0x1?void 0x0:_0x23b550?Yi(_0x4cbdfe,_0x122998):_0x4cbdfe,_0x6be963=_0xf5675[_0x354fbd(0x29a)]-0x1,_0x1ff0d3;_0x6be963>=0x0;_0x6be963--)(_0x1ff0d3=_0xf5675[_0x6be963])&&(_0xe17774=(_0x23b550?_0x1ff0d3(_0x4cbdfe,_0x122998,_0xe17774):_0x1ff0d3(_0xe17774))||_0xe17774);return _0x23b550&&_0xe17774&&Gi(_0x4cbdfe,_0x122998,_0xe17774),_0xe17774;},Se=(_0x40ce1c,_0x4cf1c2)=>(_0x54b2a8,_0x67141b)=>_0x4cf1c2(_0x54b2a8,_0x67141b,_0x40ce1c);const qi=0x12c,zi=0x64;let mt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x3d6645,_0x1e01e5,_0x29b9e9,_0xac3491,_0x202fe5,_0xc8be35,_0x2bacc,_0x1a4d3b,_0x222c86){const _0x5916a2=_0x2683e6;super(),I(this,_0x5916a2(0x15d),!0x1),I(this,_0x5916a2(0x4ea),!0x1),I(this,_0x5916a2(0x4a5),new A[(_0x5916a2(0x1ce))](new Map())),I(this,_0x5916a2(0x449),this[_0x5916a2(0x4a5)][_0x5916a2(0x4f2)]()),I(this,'_roomMembers$',new A[(_0x5916a2(0x1ce))]([])),I(this,'roomMembers$',this[_0x5916a2(0x3f9)]['pipe'](A['debounceTime'](qi))),I(this,_0x5916a2(0x288),a[_0x5916a2(0x2b9)](_0x4da40f=>{const _0x44afc7=_0x5916a2,_0x559d8a={'eventID':S[_0x44afc7(0x3d6)][_0x44afc7(0x470)],'data':{'unitID':this[_0x44afc7(0x4a9)],'memberID':this['_session']['getMemberID'](),'selection':dn(_0x4da40f)}};this[_0x44afc7(0x389)][_0x44afc7(0x4ae)](_0x559d8a,this[_0x44afc7(0x4a9)]);},zi)),(this['unitID']=_0x3d6645,this['_session']=_0x1e01e5,this[_0x5916a2(0x3e9)]=_0x29b9e9,this['_colorAssignService']=_0xac3491,this[_0x5916a2(0x2cf)]=_0x202fe5,this['_syncEditingCollabCursorService']=_0xc8be35,this[_0x5916a2(0x318)]=_0x2bacc,this[_0x5916a2(0x45b)]=_0x1a4d3b,this['_commandService']=_0x222c86);}get[_0x2683e6(0x1d4)](){const _0x45e4ce=_0x2683e6;return this[_0x45e4ce(0x4a5)][_0x45e4ce(0x1fb)]();}get[_0x2683e6(0x33a)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x23cbf4=_0x2683e6;super[_0x23cbf4(0x269)](),this[_0x23cbf4(0x4a5)][_0x23cbf4(0x40f)](new Map()),this[_0x23cbf4(0x4a5)][_0x23cbf4(0x438)](),this[_0x23cbf4(0x3f9)]['next']([]),this[_0x23cbf4(0x3f9)][_0x23cbf4(0x438)]();}[_0x2683e6(0x25b)](){const _0x34cf52=_0x2683e6;this[_0x34cf52(0x4ea)]||(this['_init']=!0x0,this[_0x34cf52(0x389)]['sessionStatus$'][_0x34cf52(0x36b)](A[_0x34cf52(0x35f)](this['dispose$']))['subscribe'](_0x489bdf=>{const _0x15310f=_0x34cf52;_0x489bdf===se[_0x15310f(0x191)]?this[_0x15310f(0x4bd)]():this['_toggleOffline']();}),this[_0x34cf52(0x389)][_0x34cf52(0x279)][_0x34cf52(0x36b)](A[_0x34cf52(0x35f)](this['dispose$']))[_0x34cf52(0x44d)](_0x2d35b7=>{const _0x26b3bd=_0x34cf52,_0xb30264=_0x2d35b7['eventID'];_0xb30264===S[_0x26b3bd(0x3d6)][_0x26b3bd(0x470)]&&this[_0x26b3bd(0x4ed)](_0x2d35b7),_0xb30264===S[_0x26b3bd(0x3d6)][_0x26b3bd(0x388)]&&this[_0x26b3bd(0x414)](_0x2d35b7);}),this['disposeWithMe'](this['_commandService'][_0x34cf52(0x571)](_0x52dcf8=>{const _0x5537e7=_0x34cf52,_0x2b48d6=_0x52dcf8[_0x5537e7(0x55b)];_0x2b48d6!=null&&this['_online']&&_0x52dcf8['id']===ye[_0x5537e7(0x2d9)]['id']&&_0x2b48d6[_0x5537e7(0x5e6)]===this[_0x5537e7(0x4a9)]&&_0x2b48d6[_0x5537e7(0x33b)]===!0x1&&_0x2b48d6[_0x5537e7(0x213)][_0x5537e7(0x29a)]>0x0&&this[_0x5537e7(0x288)](_0x2b48d6[_0x5537e7(0x213)]);})),this[_0x34cf52(0x20b)][_0x34cf52(0x409)][_0x34cf52(0x36b)](A['takeUntil'](this['dispose$']))[_0x34cf52(0x44d)](_0x164269=>{const _0x128c1c=_0x34cf52;if((_0x164269==null?void 0x0:_0x164269[_0x128c1c(0x4a9)])!==this[_0x128c1c(0x4a9)])return;const _0x21706f={'eventID':S[_0x128c1c(0x3d6)][_0x128c1c(0x470)],'data':_0x164269};this[_0x128c1c(0x4ed)](_0x21706f);}),this[_0x34cf52(0x427)](this[_0x34cf52(0x447)][_0x34cf52(0x571)](_0xa1c6d5=>{const _0x4e8a47=_0x34cf52;if(_0xa1c6d5[_0x4e8a47(0x55b)]==null)return;const _0x2fdda7=_0xa1c6d5['params'];if(_0xa1c6d5['id']!==ye['RichTextEditingMutation']['id']||_0x2fdda7[_0x4e8a47(0x5e6)]!==this['unitID'])return;const _0x288ad7={'id':_0x4e8a47(0x35c),'params':_0x2fdda7},_0x1788b2=this['cursorInfo'];for(const [_0x4b07b2,_0x117fe4]of _0x1788b2){const _0xb48f0c={'id':_0x4e8a47(0x35c),'params':{'unitId':this[_0x4e8a47(0x4a9)],'actions':null,'textRanges':_0x117fe4[_0x4e8a47(0x213)]}},_0x26d9f8=this[_0x4e8a47(0x318)][_0x4e8a47(0x2b0)](_0x288ad7,_0xb48f0c,!0x1);if(S[_0x4e8a47(0x157)](_0x26d9f8))throw _0x26d9f8['error'];_0x1788b2[_0x4e8a47(0x46f)](_0x4b07b2,{..._0x117fe4,'ranges':_0x26d9f8[_0x4e8a47(0x326)]['params'][_0x4e8a47(0x242)]});}queueMicrotask(()=>{const _0x3cf62b=_0x4e8a47;this['_cursorInfo$'][_0x3cf62b(0x40f)](_0x1788b2);});})));}[_0x2683e6(0x4ed)](_0x461967){const _0x493a47=_0x2683e6;var _0x5538b6,_0x5c7336;const {memberID:_0x575cb0,selection:_0x4d0a8c}=_0x461967[_0x493a47(0x5ac)],_0x475389=Ui(_0x4d0a8c),_0x59ccee=(_0x5c7336=(_0x5538b6=this['_memberService'][_0x493a47(0x55d)](this[_0x493a47(0x4a9)],_0x575cb0))==null?void 0x0:_0x5538b6[_0x493a47(0x231)])!=null?_0x5c7336:_0x493a47(0x3cd),_0x11085e={'color':this['_colorAssignService'][_0x493a47(0x1b0)](_0x575cb0),'name':_0x59ccee,'ranges':_0x475389},_0x579669=this[_0x493a47(0x1d4)];_0x579669[_0x493a47(0x46f)](_0x575cb0,_0x11085e),this['_cursorInfo$']['next'](_0x579669);}[_0x2683e6(0x414)](_0x19645e){const _0x182356=_0x2683e6,{memberID:_0x4746ab}=_0x19645e['data'],_0x1be917=this[_0x182356(0x1d4)];_0x1be917[_0x182356(0x27e)](_0x4746ab),this[_0x182356(0x4a5)][_0x182356(0x40f)](_0x1be917);}[_0x2683e6(0x4bd)](){const _0x5f22a8=_0x2683e6;var _0x4d6616;if(this['_online']=!0x0,((_0x4d6616=this[_0x5f22a8(0x45b)]['getFocusedUnit']())==null?void 0x0:_0x4d6616['getUnitId']())!==this[_0x5f22a8(0x4a9)])return;const _0x378a21=this[_0x5f22a8(0x3e9)]['get'](ye[_0x5f22a8(0x53e)])[_0x5f22a8(0x500)]();Array['isArray'](_0x378a21)&&_0x378a21[_0x5f22a8(0x29a)]>0x0&&this[_0x5f22a8(0x288)](_0x378a21);}[_0x2683e6(0x202)](){const _0x5edcb0=_0x2683e6;this[_0x5edcb0(0x15d)]=!0x1;}};mt=Ki([Se(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Se(0x3,a[_0x2683e6(0x22b)](Ot)),Se(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),Se(0x5,a[_0x2683e6(0x22b)](Rt)),Se(0x6,S['ITransformService']),Se(0x7,a['IUniverInstanceService']),Se(0x8,a['ICommandService'])],mt);var Xi=Object[_0x2683e6(0x1e7)],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x23a92d,_0x318bd0,_0x281c5d,_0x429427)=>{for(var _0x203a59=_0x429427>0x1?void 0x0:_0x429427?Ji(_0x318bd0,_0x281c5d):_0x318bd0,_0x186d69=_0x23a92d['length']-0x1,_0x1bec08;_0x186d69>=0x0;_0x186d69--)(_0x1bec08=_0x23a92d[_0x186d69])&&(_0x203a59=(_0x429427?_0x1bec08(_0x318bd0,_0x281c5d,_0x203a59):_0x1bec08(_0x203a59))||_0x203a59);return _0x429427&&_0x203a59&&Xi(_0x318bd0,_0x281c5d,_0x203a59),_0x203a59;},be=(_0x342e1c,_0x2e0d17)=>(_0x4a6af6,_0xb76a0f)=>_0x2e0d17(_0x4a6af6,_0xb76a0f,_0x342e1c);const Qi=0x12c,es=0x64,ts=()=>{let _0x25f652=[],_0x3d20ec=!0x1;return _0x2b3c72=>{const _0x3fe5d7=_0x479a;_0x25f652[_0x3fe5d7(0x17e)](_0x2b3c72),_0x3d20ec||(_0x3d20ec=!0x0,setTimeout(()=>{_0x25f652['forEach'](_0x416b6e=>_0x416b6e()),_0x25f652=[],_0x3d20ec=!0x1;}));};};let St=class extends a['RxDisposable']{constructor(_0x4a81cd,_0x336bf0,_0x1206f5,_0x3e4821,_0x20b91c,_0x254d35,_0x4679d7,_0x394283){const _0x2f8868=_0x2683e6;super(),I(this,_0x2f8868(0x15d),!0x1),I(this,_0x2f8868(0x4ea),!0x1),I(this,'_cursorInfo$',new A[(_0x2f8868(0x1ce))](new Map())),I(this,_0x2f8868(0x449),this[_0x2f8868(0x4a5)][_0x2f8868(0x4f2)]()),I(this,_0x2f8868(0x3f9),new A[(_0x2f8868(0x1ce))]([])),I(this,_0x2f8868(0x34a),this[_0x2f8868(0x3f9)][_0x2f8868(0x36b)](A[_0x2f8868(0x208)](Qi))),I(this,_0x2f8868(0x288),a['debounce']((_0x4ec912,_0x52e0d7)=>{const _0x34c45b=_0x2f8868,_0x233fa4={'eventID':S[_0x34c45b(0x3d6)][_0x34c45b(0x470)],'data':{'unitID':this[_0x34c45b(0x4a9)],'memberID':this[_0x34c45b(0x389)][_0x34c45b(0x4c2)](),'selection':Pt[_0x34c45b(0x31b)](_0x4ec912,_0x52e0d7[_0x34c45b(0x1c7)])}};this[_0x34c45b(0x389)][_0x34c45b(0x4ae)](_0x233fa4,this[_0x34c45b(0x4a9)]);},es)),(this[_0x2f8868(0x4a9)]=_0x4a81cd,this[_0x2f8868(0x389)]=_0x336bf0,this[_0x2f8868(0x3e9)]=_0x1206f5,this[_0x2f8868(0x26b)]=_0x3e4821,this[_0x2f8868(0x2cf)]=_0x20b91c,this['_univerInstanceService']=_0x254d35,this[_0x2f8868(0x447)]=_0x4679d7,this[_0x2f8868(0x153)]=_0x394283);}get[_0x2683e6(0x1d4)](){const _0x448dd2=_0x2683e6;return this[_0x448dd2(0x4a5)]['getValue']();}get[_0x2683e6(0x33a)](){const _0x237cdf=_0x2683e6;return this['_roomMembers$'][_0x237cdf(0x1fb)]();}[_0x2683e6(0x269)](){const _0x5716cc=_0x2683e6;super[_0x5716cc(0x269)](),this['_cursorInfo$'][_0x5716cc(0x40f)](new Map()),this[_0x5716cc(0x4a5)][_0x5716cc(0x438)](),this[_0x5716cc(0x3f9)]['next']([]),this[_0x5716cc(0x3f9)][_0x5716cc(0x438)]();}['init'](){const _0x66e41b=_0x2683e6;this[_0x66e41b(0x4ea)]||(this[_0x66e41b(0x4ea)]=!0x0,this[_0x66e41b(0x389)][_0x66e41b(0x497)][_0x66e41b(0x36b)](A[_0x66e41b(0x35f)](this[_0x66e41b(0x534)]))[_0x66e41b(0x44d)](_0x4d41d2=>{const _0x418f0c=_0x66e41b;_0x4d41d2===se['ONLINE']?this['_toggleOnline']():this[_0x418f0c(0x202)]();}),this[_0x66e41b(0x389)][_0x66e41b(0x279)]['pipe'](A['takeUntil'](this[_0x66e41b(0x534)]))[_0x66e41b(0x44d)](_0x2ec39c=>{const _0x1cb336=_0x66e41b,_0x37e3ce=_0x2ec39c[_0x1cb336(0x477)];_0x37e3ce===S[_0x1cb336(0x3d6)][_0x1cb336(0x470)]&&this[_0x1cb336(0x4ed)](_0x2ec39c),_0x37e3ce===S[_0x1cb336(0x3d6)][_0x1cb336(0x388)]&&this[_0x1cb336(0x414)](_0x2ec39c);}),this[_0x66e41b(0x2e6)](),this[_0x66e41b(0x427)](this['_commandService'][_0x66e41b(0x571)](_0x50d239=>{const _0x3f4c07=_0x66e41b;if(this['_online']&&_0x50d239['id']===k[_0x3f4c07(0x227)]['id']&&_0x50d239[_0x3f4c07(0x55b)]['unitId']===this[_0x3f4c07(0x4a9)]){const _0x190143=_0x50d239[_0x3f4c07(0x55b)];this[_0x3f4c07(0x288)](_0x190143['subUnitId'],_0x190143[_0x3f4c07(0x50b)][0x0]);}})));}[_0x2683e6(0x4ed)](_0x4c9007){const _0x3aab1b=_0x2683e6;var _0x19f82d,_0x2f0e73;const {memberID:_0x10b8d0,selection:_0x2cfbbe}=_0x4c9007[_0x3aab1b(0x5ac)],{sheetName:_0x41f30c,range:_0x11b742}=Pt['deserializeRangeWithSheet'](_0x2cfbbe),_0x38858={'name':(_0x2f0e73=(_0x19f82d=this[_0x3aab1b(0x2cf)][_0x3aab1b(0x55d)](this[_0x3aab1b(0x4a9)],_0x10b8d0))==null?void 0x0:_0x19f82d[_0x3aab1b(0x231)])!=null?_0x2f0e73:_0x3aab1b(0x3cd),'range':this[_0x3aab1b(0x22a)](_0x41f30c,_0x11b742),'sheetID':_0x41f30c,'color':this[_0x3aab1b(0x26b)][_0x3aab1b(0x1b0)](_0x10b8d0),'selection':_0x2cfbbe},_0xfb1b52=this[_0x3aab1b(0x1d4)];_0xfb1b52[_0x3aab1b(0x46f)](_0x10b8d0,_0x38858),this[_0x3aab1b(0x4a5)][_0x3aab1b(0x40f)](_0xfb1b52);}[_0x2683e6(0x414)](_0x4672bf){const _0x587440=_0x2683e6,{memberID:_0x470a2e}=_0x4672bf[_0x587440(0x5ac)],_0xee48ee=this[_0x587440(0x1d4)];_0xee48ee[_0x587440(0x27e)](_0x470a2e),this[_0x587440(0x4a5)][_0x587440(0x40f)](_0xee48ee);}[_0x2683e6(0x22a)](_0x6a2277,_0x36cd1d){const _0x123f69=_0x2683e6;var _0x14880e,_0x38b6a4;const _0x5bb6a0=(_0x38b6a4=(_0x14880e=this[_0x123f69(0x45b)][_0x123f69(0x3bc)](this[_0x123f69(0x4a9)]))==null?void 0x0:_0x14880e['getSheetBySheetId'](_0x6a2277))==null?void 0x0:_0x38b6a4[_0x123f69(0x1d2)]();return(_0x5bb6a0==null?void 0x0:_0x5bb6a0[_0x123f69(0x250)](_0x2dbfec=>a[_0x123f69(0x587)][_0x123f69(0x5ce)](_0x2dbfec,_0x36cd1d)))||_0x36cd1d;}['_onRefRangeChange'](){const _0x340a1d=_0x2683e6,_0x38e9a1=new a[(_0x340a1d(0x234))](),_0xf05ef9=ts(),_0x580f01=()=>{const _0x1d637d=_0x340a1d;_0x38e9a1['dispose']();const _0xa97c88=(_0x4c5797,_0x17c802,_0x475ca1,_0x4642bd)=>{const _0x1a3822=_0x479a;let _0x5c7447=[];switch(_0x4c5797['id']){case k[_0x1a3822(0x362)]['DeleteRangeMoveLeftCommandId']:{_0x5c7447=k[_0x1a3822(0x21c)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x41f)]:{_0x5c7447=k['handleDeleteRangeMoveUp'](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x52d)]:{_0x5c7447=k[_0x1a3822(0x5fc)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x523)]:{_0x5c7447=k[_0x1a3822(0x337)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x45e)]:{_0x5c7447=k['handleInsertRangeMoveRight'](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x38a)]:{_0x5c7447=k[_0x1a3822(0x351)](_0x4c5797,_0x4642bd);break;}case k['EffectRefRangId'][_0x1a3822(0x4a2)]:{_0x5c7447=k[_0x1a3822(0x34d)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)]['RemoveColCommandId']:{_0x5c7447=k[_0x1a3822(0x196)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x16c)]:{_0x5c7447=k[_0x1a3822(0x19e)](_0x4c5797,_0x4642bd);break;}}const _0x1ca826=k[_0x1a3822(0x525)](_0x5c7447,_0x4642bd),_0x2ba083=this[_0x1a3822(0x1d4)]['get'](_0x17c802);if(_0x2ba083&&_0x1ca826){const _0xfa0dc5={..._0x2ba083,'range':_0x1ca826};this['cursorInfo'][_0x1a3822(0x46f)](_0x17c802,_0xfa0dc5),_0xf05ef9(()=>{const _0x3a511b=_0x1a3822,_0xf57b69=this[_0x3a511b(0x153)][_0x3a511b(0x262)](_0x1ca826,_0x384a57=>(_0xf57b69[_0x3a511b(0x269)](),_0xa97c88(_0x384a57,_0x17c802,_0x475ca1,_0x1ca826)));_0x38e9a1[_0x3a511b(0x494)](_0xf57b69);});}return{'redos':[],'undos':[]};};this[_0x1d637d(0x1d4)][_0x1d637d(0x280)]((_0x4a445d,_0x2ad40c)=>{const _0x552452=_0x1d637d,{range:_0x36362c,sheetID:_0x5df3d3}=_0x4a445d,_0x21887a=this[_0x552452(0x153)][_0x552452(0x262)](_0x36362c,_0xef38bf=>(_0x21887a[_0x552452(0x269)](),_0xa97c88(_0xef38bf,_0x2ad40c,_0x5df3d3,_0x36362c)));_0x38e9a1[_0x552452(0x494)](_0x21887a);});};this[_0x340a1d(0x427)](a[_0x340a1d(0x454)](this[_0x340a1d(0x4a5)]['subscribe'](()=>{_0x580f01();})));}[_0x2683e6(0x4bd)](){const _0x30af10=_0x2683e6;var _0x3d607d,_0x4fec9e;if(this[_0x30af10(0x15d)]=!0x0,((_0x3d607d=this[_0x30af10(0x45b)][_0x30af10(0x452)]())==null?void 0x0:_0x3d607d[_0x30af10(0x478)]())!==this['unitID'])return;const _0xa2a4f8=(_0x4fec9e=this[_0x30af10(0x3e9)][_0x30af10(0x553)](k[_0x30af10(0x550)])[_0x30af10(0x422)]())==null?void 0x0:_0x4fec9e[0x0],_0x2e55ca=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType'][_0x30af10(0x4a1)])[_0x30af10(0x399)]();_0xa2a4f8&&_0x2e55ca&&this[_0x30af10(0x288)](_0x2e55ca[_0x30af10(0x276)](),_0xa2a4f8);}['_toggleOffline'](){const _0x15fa44=_0x2683e6;this[_0x15fa44(0x15d)]=!0x1;}};St=Zi([be(0x2,a['Inject'](a[_0x2683e6(0x2c8)])),be(0x3,a[_0x2683e6(0x22b)](Ot)),be(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),be(0x5,a[_0x2683e6(0x468)]),be(0x6,a[_0x2683e6(0x1d5)]),be(0x7,a[_0x2683e6(0x22b)](k[_0x2683e6(0x43d)]))],St);var ns=Object['defineProperty'],is=Object[_0x2683e6(0x181)],ss=(_0xc774f7,_0x30ee0a,_0x76fc38,_0x5c61bc)=>{const _0x2a1ee9=_0x2683e6;for(var _0x56ba91=_0x5c61bc>0x1?void 0x0:_0x5c61bc?is(_0x30ee0a,_0x76fc38):_0x30ee0a,_0x38c677=_0xc774f7[_0x2a1ee9(0x29a)]-0x1,_0xf6c6c3;_0x38c677>=0x0;_0x38c677--)(_0xf6c6c3=_0xc774f7[_0x38c677])&&(_0x56ba91=(_0x5c61bc?_0xf6c6c3(_0x30ee0a,_0x76fc38,_0x56ba91):_0xf6c6c3(_0x56ba91))||_0x56ba91);return _0x5c61bc&&_0x56ba91&&ns(_0x30ee0a,_0x76fc38,_0x56ba91),_0x56ba91;},nt=(_0x5884ed,_0x5b9531)=>(_0x38e203,_0x5581c5)=>_0x5b9531(_0x38e203,_0x5581c5,_0x5884ed);let De=class extends a[_0x2683e6(0x1e0)]{constructor(_0x56012a,_0x3ae48f,_0x3370e7){const _0x273eb3=_0x2683e6;super(),I(this,_0x273eb3(0x37a),new Map()),I(this,_0x273eb3(0x316),new A['Subject']()),(this[_0x273eb3(0x45b)]=_0x56012a,this[_0x273eb3(0x3e9)]=_0x3ae48f,this[_0x273eb3(0x5f7)]=_0x3370e7,this[_0x273eb3(0x4ea)]());}['dispose'](){const _0x17deb0=_0x2683e6;super['dispose'](),this[_0x17deb0(0x316)][_0x17deb0(0x438)](),this[_0x17deb0(0x37a)][_0x17deb0(0x280)](_0x1c8e15=>_0x1c8e15[_0x17deb0(0x269)]());}[_0x2683e6(0x24c)](_0x28176d){const _0x258bfc=_0x2683e6;return this[_0x258bfc(0x37a)]['has'](_0x28176d)?this[_0x258bfc(0x37a)]['get'](_0x28176d)['cursorInfo$']:this[_0x258bfc(0x316)]['pipe'](A[_0x258bfc(0x57f)](_0x1dec77=>_0x1dec77[_0x258bfc(0x4a9)]===_0x28176d),A['switchMap'](_0x3d78e5=>_0x3d78e5['cursorInfo$']));}['_init'](){const _0x47c400=_0x2683e6;this[_0x47c400(0x45b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x47c400(0x4a1)])[_0x47c400(0x36b)](A[_0x47c400(0x35f)](this['dispose$']))[_0x47c400(0x44d)](async _0x212796=>{const _0x4eb731=_0x47c400,_0x32a155=_0x212796[_0x4eb731(0x478)](),_0x4838a0=await this[_0x4eb731(0x2f1)](_0x32a155);this['_entityInit$'][_0x4eb731(0x40f)](_0x4838a0),this[_0x4eb731(0x37a)]['set'](_0x32a155,_0x4838a0);}),this['_univerInstanceService'][_0x47c400(0x32d)](a[_0x47c400(0x342)][_0x47c400(0x56e)])[_0x47c400(0x36b)](A[_0x47c400(0x35f)](this['dispose$']))['pipe'](A[_0x47c400(0x57f)](_0x57e1f1=>!_0x57e1f1[_0x47c400(0x478)]()['startsWith']('__')))[_0x47c400(0x44d)](async _0x301375=>{const _0x261f03=_0x47c400,_0x57a003=_0x301375[_0x261f03(0x478)](),_0x5c5158=await this['_startDocCollabCursor'](_0x57a003);this[_0x261f03(0x316)][_0x261f03(0x40f)](_0x5c5158),this[_0x261f03(0x37a)][_0x261f03(0x46f)](_0x57a003,_0x5c5158);}),A['merge'](this[_0x47c400(0x45b)][_0x47c400(0x3b4)](a[_0x47c400(0x342)][_0x47c400(0x56e)]),this[_0x47c400(0x45b)][_0x47c400(0x3b4)](a[_0x47c400(0x342)][_0x47c400(0x4a1)]))['pipe'](A[_0x47c400(0x35f)](this[_0x47c400(0x534)]))['subscribe'](_0x343430=>{const _0x3d3c20=_0x47c400,_0x5ac3ce=_0x343430[_0x3d3c20(0x478)](),_0x3c861f=this['_entities']['get'](_0x5ac3ce);_0x3c861f&&(_0x3c861f[_0x3d3c20(0x269)](),this['_entities']['delete'](_0x5ac3ce));});}async['_startSheetCollabCursor'](_0xac15f2){const _0x5cddf0=_0x2683e6,_0x1731e3=await this['_collabSessionService'][_0x5cddf0(0x2b8)](_0xac15f2),_0xcf9f6f=this['_injector']['createInstance'](St,_0xac15f2,_0x1731e3);return _0xcf9f6f[_0x5cddf0(0x25b)](),_0xcf9f6f;}async[_0x2683e6(0x36f)](_0x560ec6){const _0x28f7dc=_0x2683e6,_0x3379d7=await this[_0x28f7dc(0x5f7)][_0x28f7dc(0x2b8)](_0x560ec6),_0x5422d1=this[_0x28f7dc(0x3e9)]['createInstance'](mt,_0x560ec6,_0x3379d7);return _0x5422d1[_0x28f7dc(0x25b)](),_0x5422d1;}};De=ss([nt(0x0,a['IUniverInstanceService']),nt(0x1,a[_0x2683e6(0x22b)](a['Injector'])),nt(0x2,a['Inject'](exports['CollaborationSessionService']))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x20c4ad,_0x4ecaed){const _0x4a09b9=_0x2683e6;let {radius:_0x50603c,width:_0x439f36,height:_0x2b2cae}=_0x4ecaed;_0x50603c=_0x50603c!=null?_0x50603c:0x0,_0x439f36=_0x439f36!=null?_0x439f36:0x1e,_0x2b2cae=_0x2b2cae!=null?_0x2b2cae:0x1e;let _0x26674b=0x0,_0x450132=0x0,_0x640001=0x0;_0x26674b=_0x450132=_0x640001=Math[_0x4a09b9(0x211)](_0x50603c,_0x439f36/0x2,_0x2b2cae/0x2),_0x20c4ad[_0x4a09b9(0x599)](),_0x20c4ad[_0x4a09b9(0x212)](_0x26674b,0x0),_0x20c4ad['lineTo'](_0x439f36-_0x450132,0x0),_0x20c4ad[_0x4a09b9(0x36c)](_0x439f36-_0x450132,_0x450132,_0x450132,Math['PI']*0x3/0x2,0x0,!0x1),_0x20c4ad[_0x4a09b9(0x490)](_0x439f36,_0x2b2cae-_0x640001),_0x20c4ad[_0x4a09b9(0x36c)](_0x439f36-_0x640001,_0x2b2cae-_0x640001,_0x640001,0x0,Math['PI']/0x2,!0x1),_0x20c4ad['lineTo'](0x0,_0x2b2cae),_0x20c4ad['lineTo'](0x0,_0x26674b),_0x20c4ad[_0x4a09b9(0x36c)](_0x26674b,_0x26674b,_0x26674b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20c4ad[_0x4a09b9(0x4bc)](),_0x4ecaed[_0x4a09b9(0x215)]&&(_0x20c4ad[_0x4a09b9(0x303)](),_0x20c4ad[_0x4a09b9(0x5e4)]=_0x4ecaed[_0x4a09b9(0x215)],_0x4ecaed['fillRule']===_0x4a09b9(0x47d)?_0x20c4ad[_0x4a09b9(0x215)](_0x4a09b9(0x47d)):_0x20c4ad['fill'](),_0x20c4ad['restore']());}class ze extends K[_0x2683e6(0x1df)]{constructor(_0x4437a7,_0xfe6baa){const _0x207918=_0x2683e6;super(_0x4437a7,_0xfe6baa),I(this,_0x207918(0x52f)),I(this,'text'),(this[_0x207918(0x52f)]=_0xfe6baa==null?void 0x0:_0xfe6baa['color'],this['text']=_0xfe6baa==null?void 0x0:_0xfe6baa['text']);}static[_0x2683e6(0x2c9)](_0x33d26d,_0x1a3144){const _0x30de9b=_0x2683e6,{text:_0x5a267d,color:_0x2ab78e}=_0x1a3144;_0x33d26d[_0x30de9b(0x303)](),_0x33d26d[_0x30de9b(0x38d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3c7d12=_0x33d26d[_0x30de9b(0x2cd)](_0x5a267d)[_0x30de9b(0x3d8)],_0x40d5b8=Math[_0x30de9b(0x211)](_0x3c7d12+0x2*it,Ht);os(_0x33d26d,{'height':Le,'radius':0x4,'width':_0x40d5b8,'fill':_0x2ab78e,'evented':!0x1}),_0x33d26d['fillStyle']=_0x30de9b(0x2f9);const _0x18fbee=it,_0x132767=Le-rs,_0x30d60f=Ht-0x2*it;if(_0x3c7d12>_0x30d60f){let _0x16e623='',_0x33202c=0x0;for(const _0xd84f34 of _0x5a267d){const _0x4ac547=_0x33d26d['measureText'](_0xd84f34)[_0x30de9b(0x3d8)];if(_0x33202c+_0x4ac547<=_0x30d60f-_0x33d26d[_0x30de9b(0x2cd)]('...')[_0x30de9b(0x3d8)])_0x16e623+=_0xd84f34,_0x33202c+=_0x4ac547;else{_0x16e623+='...';break;}}_0x33d26d[_0x30de9b(0x322)](_0x16e623,_0x18fbee,_0x132767);}else _0x33d26d['fillText'](_0x5a267d,_0x18fbee,_0x132767);_0x33d26d[_0x30de9b(0x249)]();}[_0x2683e6(0x605)](_0x454936){ze['drawWith'](_0x454936,this);}}const st='collab-text-anchor-',as=_0x2683e6(0x4e7),cs=_0x2683e6(0x5e7),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x2683e6(0x2e0);class Bt{constructor(_0x2e9514,_0x3cf298,_0x3e2d3e,_0x4a7119){const _0x5a24d4=_0x2683e6;I(this,_0x5a24d4(0x2bd),[]),I(this,_0x5a24d4(0x53f),null),I(this,_0x5a24d4(0x200),null),I(this,'_anchorDot',null),I(this,_0x5a24d4(0x1c6),null),I(this,_0x5a24d4(0x560),null),(this[_0x5a24d4(0x448)]=_0x2e9514,this[_0x5a24d4(0x30b)]=_0x3cf298,this[_0x5a24d4(0x563)]=_0x3e2d3e,this[_0x5a24d4(0x5e9)]=_0x4a7119,this['_render']());}set[_0x2683e6(0x15b)](_0x56c898){const _0x45af6f=_0x2683e6;_0x56c898?(this[_0x45af6f(0x27f)]&&this[_0x45af6f(0x27f)][_0x45af6f(0x58d)](),this[_0x45af6f(0x200)]&&this[_0x45af6f(0x200)][_0x45af6f(0x4db)]()):(this[_0x45af6f(0x27f)]&&this[_0x45af6f(0x27f)][_0x45af6f(0x4db)](),this[_0x45af6f(0x200)]&&this[_0x45af6f(0x200)]['hide']());}['dispose'](){const _0xc7c7b6=_0x2683e6;for(const _0x1ed491 of this[_0xc7c7b6(0x2bd)])_0x1ed491[_0xc7c7b6(0x269)]();this[_0xc7c7b6(0x200)]&&this[_0xc7c7b6(0x200)][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x27f)]&&this['_anchorDot'][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x53f)]&&this[_0xc7c7b6(0x53f)][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x560)]&&this[_0xc7c7b6(0x560)]();}[_0x2683e6(0x3b2)](){const _0x429be2=_0x2683e6;var _0x11b205;const {_docSkeleton:_0x2f94f8,_document:_0x122a82}=this,{color:_0x2e7453,name:_0x8e35de,ranges:_0x1bda21}=this[_0x429be2(0x448)],_0x26d34d=_0x122a82[_0x429be2(0x2dc)](),{docsLeft:_0x5dde01,docsTop:_0x3d17fe}=_0x26d34d,_0x5e81b9=new J['NodePositionConvertToCursor'](_0x26d34d,_0x2f94f8);for(const {startOffset:_0x5f0e16,endOffset:_0x530390,rangeType:_0x1ad3d4,segmentId:_0x40e4dd,segmentPage:_0x23efaa,collapsed:_0x45926d,isActive:_0x5151c0}of _0x1bda21){const _0x2b3e8a=_0x2f94f8[_0x429be2(0x183)](_0x5f0e16,!0x0,_0x40e4dd,_0x23efaa);let _0x42efa0=_0x2f94f8[_0x429be2(0x183)](_0x530390,!0x0,_0x40e4dd,_0x23efaa);if(_0x42efa0==null&&(_0x42efa0=_0x2f94f8[_0x429be2(0x183)](_0x530390-0x1,!0x1,_0x40e4dd,_0x23efaa)),_0x5151c0){const {contentBoxPointGroup:_0x59a904}=_0x5e81b9[_0x429be2(0x19d)](_0x42efa0,_0x42efa0);if(_0x59a904[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x359)](_0x2e7453,_0x59a904,_0x5dde01,_0x3d17fe,_0x8e35de),this[_0x429be2(0x560)]=this[_0x429be2(0x3ca)]();}if(_0x2b3e8a&&_0x42efa0){if(_0x1ad3d4===a['DOC_RANGE_TYPE'][_0x429be2(0x3bf)]){const _0x20918f=new J[(_0x429be2(0x483))](_0x26d34d,_0x2f94f8),{pointGroup:_0xfa59f3}=(_0x11b205=_0x20918f['getRangePointData'](_0x2b3e8a,_0x42efa0))!=null?_0x11b205:{};if(_0xfa59f3==null||_0xfa59f3[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x5bc)](_0x2e7453,_0xfa59f3,_0x5dde01,_0x3d17fe);}else{if(!_0x45926d){const {borderBoxPointGroup:_0x2d7d81}=_0x5e81b9[_0x429be2(0x19d)](_0x2b3e8a,_0x42efa0);if(_0x2d7d81[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x520)](_0x2e7453,_0x2d7d81,_0x5dde01,_0x3d17fe);}}}}}[_0x2683e6(0x359)](_0xc426b1,_0x24b622,_0x2900c8,_0x8ff878,_0x484b0f){const _0x3c4506=_0x2683e6,_0x5aa411=this['_getAnchorBounding'](_0x24b622),{left:_0x330772,top:_0x1c778d,height:_0x2de527}=_0x5aa411,_0x204d04=this[_0x3c4506(0x57e)](),_0x4e7326=hs/_0x204d04,_0x388986=new K[(_0x3c4506(0x48c))](st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878,'height':_0x2de527,'width':ls,'fill':_0xc426b1||K[_0x3c4506(0x552)](a['COLORS'][_0x3c4506(0x1ff)],0x0),'strokeWidth':_0x4e7326,'stroke':_s,'evented':!0x0});this['_anchor']=_0x388986,this['_scene'][_0x3c4506(0x28f)](_0x388986,J[_0x3c4506(0x5de)]);const _0x443628=new K[(_0x3c4506(0x48c))](st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878-rt/0x2,'height':rt,'width':rt,'fill':_0xc426b1||K[_0x3c4506(0x552)](a['COLORS'][_0x3c4506(0x1ff)],0x0),'strokeWidth':0x0,'stroke':_0xc426b1||K['getColor'](a[_0x3c4506(0x5b8)][_0x3c4506(0x1ff)],0x0),'evented':!0x1});this['_anchorDot']=_0x443628,this[_0x3c4506(0x30b)]['addObject'](_0x443628,J[_0x3c4506(0x5de)]);const _0x39fc0d=new ze(st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878-Le,'text':_0x484b0f,'color':_0xc426b1});this[_0x3c4506(0x200)]=_0x39fc0d,this[_0x3c4506(0x30b)][_0x3c4506(0x28f)](_0x39fc0d,J[_0x3c4506(0x5de)]),this[_0x3c4506(0x15b)]=!0x1;}['_handleHover'](){const _0x3296bb=_0x2683e6,_0x2c9bf4=this[_0x3296bb(0x53f)]['onPointerEnter$'][_0x3296bb(0x357)](()=>{const _0x25c377=_0x3296bb;this[_0x25c377(0x15b)]=!0x0;}),_0x1753b0=this[_0x3296bb(0x53f)][_0x3296bb(0x3c1)][_0x3296bb(0x357)](()=>{const _0x6a8559=_0x3296bb;this[_0x6a8559(0x1c6)]&&clearTimeout(this['_hideTimer']),this[_0x6a8559(0x1c6)]=setTimeout(()=>{const _0x288997=_0x6a8559;this[_0x288997(0x15b)]=!0x1;},0x7d0);});return()=>{const _0xa00428=_0x3296bb;_0x2c9bf4[_0xa00428(0x334)](),_0x1753b0[_0xa00428(0x334)]();};}[_0x2683e6(0x520)](_0x59d14e,_0x813dab,_0x33cd6b,_0x5f15fe){const _0x2ec1c8=_0x2683e6,_0xd79267=new a[(_0x2ec1c8(0x3dc))](_0x59d14e)[_0x2ec1c8(0x413)](0.2)['toRgbString'](),_0x5895dd=new K[(_0x2ec1c8(0x51f))](as+a[_0x2ec1c8(0x256)][_0x2ec1c8(0x59e)](Ue),{'pointsGroup':_0x813dab,'fill':_0xd79267||K[_0x2ec1c8(0x552)](a[_0x2ec1c8(0x5b8)][_0x2ec1c8(0x1ff)],0.2),'left':_0x33cd6b,'top':_0x5f15fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ec1c8(0x2bd)][_0x2ec1c8(0x17e)](_0x5895dd),this['_scene'][_0x2ec1c8(0x28f)](_0x5895dd,J['TEXT_RANGE_LAYER_INDEX']);}[_0x2683e6(0x5bc)](_0x325f2a,_0x1b7eab,_0x713ba6,_0x34345d){const _0x53a7e5=_0x2683e6,_0x189746=new a[(_0x53a7e5(0x3dc))](_0x325f2a)[_0x53a7e5(0x413)](0.2)['toRgbString'](),_0x31e6c5=new K[(_0x53a7e5(0x51f))](cs+a[_0x53a7e5(0x256)][_0x53a7e5(0x59e)](Ue),{'pointsGroup':_0x1b7eab,'fill':_0x189746||K[_0x53a7e5(0x552)](a['COLORS'][_0x53a7e5(0x1ff)],0.2),'left':_0x713ba6,'top':_0x34345d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x53a7e5(0x17e)](_0x31e6c5),this[_0x53a7e5(0x30b)]['addObject'](_0x31e6c5,J[_0x53a7e5(0x5de)]);}[_0x2683e6(0x419)](_0x4e697d){const _0x47ee8a=_0x4e697d[0x0],_0x5b662f=_0x47ee8a[0x0],_0x1f6a8d=_0x47ee8a[0x2],{x:_0x2dbd60,y:_0x37524d}=_0x5b662f,{x:_0x2e6968,y:_0x3a576c}=_0x1f6a8d;return{'left':_0x2dbd60,'top':_0x37524d,'width':_0x2e6968-_0x2dbd60,'height':_0x3a576c-_0x37524d};}[_0x2683e6(0x57e)](){const _0x29d5c1=_0x2683e6,{scaleX:_0x32bdce,scaleY:_0x4a3ffa}=this[_0x29d5c1(0x30b)][_0x29d5c1(0x254)]();return Math[_0x29d5c1(0x1a1)](_0x32bdce,_0x4a3ffa);}}var us=Object['defineProperty'],ds=Object['getOwnPropertyDescriptor'],fs=(_0x29ab20,_0x6ac9ac,_0x4f50e8,_0x33c741)=>{const _0x1d4744=_0x2683e6;for(var _0xe97fbc=_0x33c741>0x1?void 0x0:_0x33c741?ds(_0x6ac9ac,_0x4f50e8):_0x6ac9ac,_0x3453fa=_0x29ab20[_0x1d4744(0x29a)]-0x1,_0x19b097;_0x3453fa>=0x0;_0x3453fa--)(_0x19b097=_0x29ab20[_0x3453fa])&&(_0xe97fbc=(_0x33c741?_0x19b097(_0x6ac9ac,_0x4f50e8,_0xe97fbc):_0x19b097(_0xe97fbc))||_0xe97fbc);return _0x33c741&&_0xe97fbc&&us(_0x6ac9ac,_0x4f50e8,_0xe97fbc),_0xe97fbc;},je=(_0x1c281e,_0xe2a209)=>(_0x327465,_0x7d7b3f)=>_0xe2a209(_0x327465,_0x7d7b3f,_0x1c281e);let pt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x91c5a3,_0x4dc901,_0xf31658,_0x380401,_0x59d4b2){const _0x1e8dbe=_0x2683e6;super(),I(this,_0x1e8dbe(0x253),[]),I(this,_0x1e8dbe(0x2b1),[]),(this[_0x1e8dbe(0x556)]=_0x91c5a3,this[_0x1e8dbe(0x3fa)]=_0x4dc901,this['_collabCursorController']=_0xf31658,this[_0x1e8dbe(0x447)]=_0x380401,this['_themeService']=_0x59d4b2,this[_0x1e8dbe(0x4ea)]());}[_0x2683e6(0x4ea)](){const _0xa6a88e=_0x2683e6,_0x5b7ca7=this[_0xa6a88e(0x556)][_0xa6a88e(0x5e6)],_0x6e5557=this[_0xa6a88e(0x3fa)];this[_0xa6a88e(0x427)](A[_0xa6a88e(0x241)]([this[_0xa6a88e(0x5f4)][_0xa6a88e(0x24c)](_0x5b7ca7),this[_0xa6a88e(0x50e)][_0xa6a88e(0x3e3)]])[_0xa6a88e(0x36b)](V[_0xa6a88e(0x538)](([_0x3727a5,_0x28af64])=>({'skeleton':_0x6e5557['getSkeleton'](),'cursors':[..._0x3727a5[_0xa6a88e(0x2d2)]()][_0xa6a88e(0x228)](_0x39b731=>({..._0x39b731,'color':_0x28af64[_0x39b731[_0xa6a88e(0x52f)]]}))})))[_0xa6a88e(0x44d)](_0x18d868=>{const _0x38d170=_0xa6a88e;if(this[_0x38d170(0x2cb)](),_0x18d868){const {skeleton:_0x6d4612,cursors:_0x4f6b62}=_0x18d868;this['_updateCollabCursors'](_0x6d4612,_0x4f6b62);}})),this[_0xa6a88e(0x57b)](),this[_0xa6a88e(0x48a)]();}[_0x2683e6(0x4a7)](_0x1ef51e,_0x9f37e0){const _0x2c529c=_0x2683e6,{scene:_0x327bee,mainComponent:_0x5a4121}=this[_0x2c529c(0x556)],_0x474cb9=_0x9f37e0['map'](_0x4f4d78=>new Bt(_0x4f4d78,_0x327bee,_0x1ef51e,_0x5a4121));this[_0x2c529c(0x253)]=_0x474cb9,this['_cursors']=_0x9f37e0;}['_refreshCollabCursors'](){const _0x4c0a06=_0x2683e6;this[_0x4c0a06(0x2cb)]();const {scene:_0x192f52,mainComponent:_0x15107e}=this[_0x4c0a06(0x556)],_0x534051=this[_0x4c0a06(0x3fa)][_0x4c0a06(0x3d5)](),_0xe88dc8=this[_0x4c0a06(0x2b1)][_0x4c0a06(0x538)](_0x21e11d=>new Bt(_0x21e11d,_0x192f52,_0x534051,_0x15107e));this[_0x4c0a06(0x253)]=_0xe88dc8;}[_0x2683e6(0x2cb)](){const _0x5c1391=_0x2683e6;this['_cursorShapes']['forEach'](_0x36201c=>_0x36201c['dispose']()),this[_0x5c1391(0x253)]=[];}[_0x2683e6(0x48a)](){const _0x3598eb=_0x2683e6,_0x44a524=[J[_0x3598eb(0x171)]['id']];this[_0x3598eb(0x427)](this['_commandService']['onCommandExecuted'](_0x4d0928=>{const _0x276b40=_0x3598eb;_0x44a524[_0x276b40(0x598)](_0x4d0928['id'])&&_0x4d0928['params'][_0x276b40(0x5e6)]===this['_context']['unitId']&&this[_0x276b40(0x295)]();}));}[_0x2683e6(0x57b)](){const _0x467857=_0x2683e6;this[_0x467857(0x427)](a[_0x467857(0x252)](this['_context'][_0x467857(0x576)][_0x467857(0x5c8)])[_0x467857(0x36b)](V[_0x467857(0x57f)](_0xf27e3f=>_0xf27e3f[_0x467857(0x44a)]===K[_0x467857(0x602)][_0x467857(0x460)]),V[_0x467857(0x4f0)](0x10))[_0x467857(0x44d)](()=>{const _0x3769e9=_0x467857;this[_0x3769e9(0x295)]();}));}};pt=fs([je(0x1,a[_0x2683e6(0x22b)](ye[_0x2683e6(0x46b)])),je(0x2,a[_0x2683e6(0x22b)](De)),je(0x3,a['ICommandService']),je(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x3ba)]))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x2683e6(0x1df)]{constructor(_0x1090e3,_0x42ef0d){const _0x39bd13=_0x2683e6;super(_0x1090e3,_0x42ef0d),I(this,_0x39bd13(0x512)),I(this,_0x39bd13(0x17b),!0x1),I(this,_0x39bd13(0x429)),I(this,_0x39bd13(0x539),''),I(this,_0x39bd13(0x565),_0x39bd13(0x1de)),I(this,_0x39bd13(0x1ec)),(_0x42ef0d&&this[_0x39bd13(0x2bc)](_0x42ef0d),this['onPointerEnter$'][_0x39bd13(0x357)](()=>this[_0x39bd13(0x2bc)]({'hovered':!0x0})),this[_0x39bd13(0x3c1)][_0x39bd13(0x357)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2683e6(0x2bc)](_0x1479ce){const _0x1deadd=_0x2683e6;var _0x1d7c2f,_0x428b8b,_0x32659f,_0x586ba0,_0x4a5002,_0x4c246e;this['_color']=(_0x1d7c2f=_0x1479ce[_0x1deadd(0x52f)])!=null?_0x1d7c2f:this[_0x1deadd(0x512)],this[_0x1deadd(0x17b)]=(_0x428b8b=_0x1479ce[_0x1deadd(0x31a)])!=null?_0x428b8b:this[_0x1deadd(0x17b)],this['_range']=(_0x32659f=_0x1479ce[_0x1deadd(0x1c7)])!=null?_0x32659f:this[_0x1deadd(0x429)],this[_0x1deadd(0x539)]=(_0x586ba0=_0x1479ce[_0x1deadd(0x231)])!=null?_0x586ba0:this['_name'],this[_0x1deadd(0x565)]=(_0x4a5002=_0x1479ce[_0x1deadd(0x2c4)])!=null?_0x4a5002:this[_0x1deadd(0x565)],this[_0x1deadd(0x1ec)]=(_0x4c246e=_0x1479ce[_0x1deadd(0x3ac)])!=null?_0x4c246e:this[_0x1deadd(0x1ec)],this['transformByState']({'width':_0x1479ce[_0x1deadd(0x3d8)],'height':_0x1479ce[_0x1deadd(0x197)]});}[_0x2683e6(0x25e)](_0xe2f01){const _0x39406f=_0x2683e6,{row:_0x2acd30,column:_0x1932f2}=_0xe2f01;if(_0x2acd30>=this['_range'][_0x39406f(0x459)]&&_0x2acd30<=this[_0x39406f(0x429)][_0x39406f(0x600)]&&_0x1932f2>=this[_0x39406f(0x429)][_0x39406f(0x247)]&&_0x1932f2<=this[_0x39406f(0x429)][_0x39406f(0x2a6)]){this[_0x39406f(0x2bc)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2683e6(0x287)](_0x484754){return!0x1;}['_draw'](_0x50f769){const _0x25e9f7=_0x2683e6;K[_0x25e9f7(0x48c)][_0x25e9f7(0x2c9)](_0x50f769,{'width':this[_0x25e9f7(0x3d8)],'height':this[_0x25e9f7(0x197)],'strokeWidth':ms,'stroke':this[_0x25e9f7(0x512)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x25e9f7(0x17b)]&&(_0x50f769[_0x25e9f7(0x303)](),_0x50f769[_0x25e9f7(0x39b)](0x1,0x0,0x0,0x1,this[_0x25e9f7(0x3d8)],this[_0x25e9f7(0x565)]===_0x25e9f7(0x5a3)?0x0:-Le),ze[_0x25e9f7(0x2c9)](_0x50f769,{'text':this[_0x25e9f7(0x539)],'color':this['_color']}),_0x50f769['restore']());}}var Ss=Object[_0x2683e6(0x1e7)],ps=Object[_0x2683e6(0x181)],gs=(_0x8b75a9,_0x35d294,_0x353a82,_0xe7d46a)=>{const _0x3992f9=_0x2683e6;for(var _0x2cd82f=_0xe7d46a>0x1?void 0x0:_0xe7d46a?ps(_0x35d294,_0x353a82):_0x35d294,_0x34d75c=_0x8b75a9[_0x3992f9(0x29a)]-0x1,_0x5ab92c;_0x34d75c>=0x0;_0x34d75c--)(_0x5ab92c=_0x8b75a9[_0x34d75c])&&(_0x2cd82f=(_0xe7d46a?_0x5ab92c(_0x35d294,_0x353a82,_0x2cd82f):_0x5ab92c(_0x2cd82f))||_0x2cd82f);return _0xe7d46a&&_0x2cd82f&&Ss(_0x35d294,_0x353a82,_0x2cd82f),_0x2cd82f;},ot=(_0x58dc5b,_0x332b90)=>(_0x47c928,_0x1fd325)=>_0x332b90(_0x47c928,_0x1fd325,_0x58dc5b);const Is=0x1389;let gt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x249e25,_0xf36a5d,_0x5b8cf3,_0x5efaad){const _0x5e6419=_0x2683e6;super(),I(this,'_cursors',new Set()),I(this,_0x5e6419(0x374),null),(this[_0x5e6419(0x556)]=_0x249e25,this['_sheetSkeletonManagerService']=_0xf36a5d,this[_0x5e6419(0x5f4)]=_0x5b8cf3,this[_0x5e6419(0x50e)]=_0x5efaad,this['_init']());}['_init'](){const _0x1b66ee=_0x2683e6;this[_0x1b66ee(0x2c5)][_0x1b66ee(0x320)][_0x1b66ee(0x36b)](V[_0x1b66ee(0x35f)](this[_0x1b66ee(0x534)]),V[_0x1b66ee(0x424)](_0x265ea0=>{const _0x286fb0=_0x1b66ee;if(_0x265ea0){const _0x1cabb4=_0x265ea0[_0x286fb0(0x53a)];return A[_0x286fb0(0x241)](this[_0x286fb0(0x5f4)][_0x286fb0(0x24c)](this['_context'][_0x286fb0(0x5e6)]),this['_themeService']['currentTheme$'])['pipe'](V['map'](([_0x4fcba3,_0x1e2ed1])=>{const _0x20a64e=new Map();return _0x4fcba3['forEach']((_0x428fca,_0x1b592a)=>{const _0x3b2aa8=_0x479a;if(_0x428fca[_0x3b2aa8(0x224)]===_0x1cabb4){const _0x5c6466={..._0x428fca};_0x5c6466[_0x3b2aa8(0x52f)]=_0x1e2ed1[_0x428fca[_0x3b2aa8(0x52f)]],_0x20a64e[_0x3b2aa8(0x46f)](_0x1b592a,_0x5c6466);}}),{'skeleton':_0x265ea0,'cursors':_0x20a64e};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x1b66ee(0x44d)](({skeleton:_0x15102b,cursors:_0x5d8b70})=>{const _0x285745=_0x1b66ee;this[_0x285745(0x2cb)](),_0x15102b&&this[_0x285745(0x4a7)](_0x15102b,_0x5d8b70);}),this[_0x1b66ee(0x2c5)][_0x1b66ee(0x320)]['subscribe'](_0x5efb8c=>{const _0x24d0a0=_0x1b66ee;if(_0x5efb8c==null)return;const {skeleton:_0x18ba32}=_0x5efb8c,{scene:_0x146ecf}=this[_0x24d0a0(0x556)];_0x146ecf['onPointerMove$'][_0x24d0a0(0x357)](a['debounce'](_0x3b95f1=>{const _0x55632f=_0x24d0a0;var _0x298ffa,_0x1d7b40;const {offsetX:_0xc78bb3,offsetY:_0x4a2353}=_0x3b95f1,{x:_0x5174ea,y:_0x5f368a}=_0x146ecf[_0x55632f(0x5d4)](K[_0x55632f(0x35b)][_0x55632f(0x29e)]([_0xc78bb3,_0x4a2353])),{scaleX:_0x5a00cb,scaleY:_0x4fe165}=_0x146ecf['getAncestorScale'](),_0x294213=_0x146ecf[_0x55632f(0x161)](Re[_0x55632f(0x5dc)][_0x55632f(0x42a)]),_0x40b770=_0x146ecf[_0x55632f(0x21b)](K[_0x55632f(0x35b)][_0x55632f(0x29e)]([_0x5174ea,_0x5f368a]),_0x294213),_0x5b519c=_0x18ba32[_0x55632f(0x561)](_0xc78bb3,_0x4a2353,_0x5a00cb,_0x4fe165,_0x40b770);((_0x298ffa=this[_0x55632f(0x374)])==null?void 0x0:_0x298ffa[_0x55632f(0x609)])===_0x5b519c[_0x55632f(0x609)]&&((_0x1d7b40=this['_lastPointer'])==null?void 0x0:_0x1d7b40[_0x55632f(0x17d)])===_0x5b519c['row']||this[_0x55632f(0x2b1)][_0x55632f(0x280)](_0x25a326=>{const _0x69c52a=_0x55632f;_0x25a326[_0x69c52a(0x25e)](_0x5b519c);});},0x64));});}[_0x2683e6(0x4a7)](_0x3ceec6,_0x3a4fd6){const _0x40fa5b=_0x2683e6;var _0x4ce947;const _0x44c958=(_0x4ce947=this['_sheetSkeletonManagerService'][_0x40fa5b(0x26f)]())==null?void 0x0:_0x4ce947[_0x40fa5b(0x3c5)];if(!_0x44c958)return;const _0x14df4d=this[_0x40fa5b(0x487)]();if(!_0x14df4d)return;this[_0x40fa5b(0x2b1)][_0x40fa5b(0x280)](_0x2032c6=>{const _0x1a0c53=_0x40fa5b;_0x2032c6[_0x1a0c53(0x442)]();});const {scene:_0x4f9625}=_0x14df4d,_0x21a196=Cs(Array[_0x40fa5b(0x33f)](_0x3a4fd6[_0x40fa5b(0x2d2)]()))[_0x40fa5b(0x538)](_0x43e073=>{const _0x54b087=_0x40fa5b,{color:_0xf99707,range:_0x630628,name:_0x427688,selection:_0x5397f8,sheetID:_0x3f8810}=_0x43e073,{startColumn:_0x2bf0fa,startRow:_0x3ee54d,endColumn:_0x2f4809,endRow:_0x6c07d7}=_0x630628,_0x3f8398=Re['getCoordByCell'](_0x3ee54d,_0x2bf0fa,_0x4f9625,_0x44c958),_0x3199b0=Re['getCoordByCell'](_0x6c07d7,_0x2f4809,_0x4f9625,_0x44c958),{columnHeaderHeightAndMarginTop:_0x411ad6}=_0x44c958,{startX:_0x2c8c14,startY:_0x16661d}=_0x3f8398,{endX:_0x2570d8,endY:_0x2ca507}=_0x3199b0,_0x299fd5=_0x2570d8-_0x2c8c14,_0x44cf76=_0x2ca507-_0x16661d,_0xbdf8ef={'labelPosition':_0x16661d-_0x411ad6>=Le?'top':_0x54b087(0x5a3),'sheetID':_0x3f8810,'range':_0x630628,'color':_0xf99707,'name':_0x427688,'selection':_0x5397f8,'left':_0x2c8c14,'top':_0x16661d,'width':_0x299fd5,'height':_0x44cf76,'evented':!0x1,'zIndex':Is};return new Sn(_0x427688,_0xbdf8ef);});_0x4f9625[_0x40fa5b(0x43f)](_0x21a196,vs),this[_0x40fa5b(0x2b1)]=new Set(_0x21a196);}[_0x2683e6(0x2cb)](){const _0x274e89=_0x2683e6;var _0x49dd86;(_0x49dd86=this[_0x274e89(0x2b1)])==null||_0x49dd86[_0x274e89(0x280)](_0x3d7803=>_0x3d7803[_0x274e89(0x269)]());}['_getSheetObject'](){const _0x5567cd=_0x2683e6;return Re[_0x5567cd(0x349)](this[_0x5567cd(0x556)][_0x5567cd(0x434)],this[_0x5567cd(0x556)]);}};gt=gs([ot(0x1,a[_0x2683e6(0x22b)](Re['SheetSkeletonManagerService'])),ot(0x2,a[_0x2683e6(0x22b)](De)),ot(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x3ba)]))],gt);function Cs(_0x3be064){const _0x5619d8=_0x2683e6,_0x1810cf=new Map();return _0x3be064[_0x5619d8(0x280)](_0x3e1db8=>{const _0x1a653b=_0x5619d8;if(_0x1810cf[_0x1a653b(0x58e)](_0x3e1db8[_0x1a653b(0x2aa)])){const _0x1240e8=_0x1810cf[_0x1a653b(0x553)](_0x3e1db8['selection']);_0x1240e8['name']+=',\x20'+_0x3e1db8[_0x1a653b(0x231)];}else _0x1810cf['set'](_0x3e1db8['selection'],_0x3e1db8);}),Array[_0x5619d8(0x33f)](_0x1810cf[_0x5619d8(0x2d2)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x460fc7){const _0x16d5c2=_0x2683e6;return _0x460fc7&&_0x460fc7[_0x16d5c2(0x238)]&&Object['prototype']['hasOwnProperty']['call'](_0x460fc7,_0x16d5c2(0x34b))?_0x460fc7[_0x16d5c2(0x34b)]:_0x460fc7;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol['for'](_0x2683e6(0x28e)),Ts=Symbol['for'](_0x2683e6(0x573)),Rs=Object[_0x2683e6(0x2f3)][_0x2683e6(0x405)],ys=Es[_0x2683e6(0x4bb)][_0x2683e6(0x49b)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x2fd3eb,_0x3ba7fd,_0x2fc252){const _0x2a2674=_0x2683e6;var _0x2a7cd2,_0x49c35f={},_0x4067fb=null,_0x16dec3=null;_0x2fc252!==void 0x0&&(_0x4067fb=''+_0x2fc252),_0x3ba7fd[_0x2a2674(0x327)]!==void 0x0&&(_0x4067fb=''+_0x3ba7fd[_0x2a2674(0x327)]),_0x3ba7fd[_0x2a2674(0x403)]!==void 0x0&&(_0x16dec3=_0x3ba7fd[_0x2a2674(0x403)]);for(_0x2a7cd2 in _0x3ba7fd)Rs['call'](_0x3ba7fd,_0x2a7cd2)&&!Os[_0x2a2674(0x405)](_0x2a7cd2)&&(_0x49c35f[_0x2a7cd2]=_0x3ba7fd[_0x2a7cd2]);if(_0x2fd3eb&&_0x2fd3eb[_0x2a2674(0x278)]){for(_0x2a7cd2 in(_0x3ba7fd=_0x2fd3eb[_0x2a2674(0x278)],_0x3ba7fd))_0x49c35f[_0x2a7cd2]===void 0x0&&(_0x49c35f[_0x2a7cd2]=_0x3ba7fd[_0x2a7cd2]);}return{'$$typeof':bs,'type':_0x2fd3eb,'key':_0x4067fb,'ref':_0x16dec3,'props':_0x49c35f,'_owner':ys['current']};}Xe['Fragment']=Ts,Xe[_0x2683e6(0x1d3)]=gn,Xe[_0x2683e6(0x4a3)]=gn,pn[_0x2683e6(0x436)]=Xe;var pe=pn[_0x2683e6(0x436)],Q=function(){const _0x5a702a=_0x2683e6;return Q=Object['assign']||function(_0x2d3aaf){const _0x3cbd1e=_0x479a;for(var _0x51ce3c,_0x3932ee=0x1,_0x59d920=arguments[_0x3cbd1e(0x29a)];_0x3932ee<_0x59d920;_0x3932ee++){_0x51ce3c=arguments[_0x3932ee];for(var _0x782ce8 in _0x51ce3c)Object[_0x3cbd1e(0x2f3)][_0x3cbd1e(0x405)][_0x3cbd1e(0x54a)](_0x51ce3c,_0x782ce8)&&(_0x2d3aaf[_0x782ce8]=_0x51ce3c[_0x782ce8]);}return _0x2d3aaf;},Q[_0x5a702a(0x4c4)](this,arguments);},Ds=function(_0x3a588a,_0x325987){const _0x4dd6f9=_0x2683e6;var _0x11b3a6={};for(var _0x32be31 in _0x3a588a)Object[_0x4dd6f9(0x2f3)][_0x4dd6f9(0x405)][_0x4dd6f9(0x54a)](_0x3a588a,_0x32be31)&&_0x325987[_0x4dd6f9(0x404)](_0x32be31)<0x0&&(_0x11b3a6[_0x32be31]=_0x3a588a[_0x32be31]);if(_0x3a588a!=null&&typeof Object[_0x4dd6f9(0x289)]==_0x4dd6f9(0x1c9)){for(var _0x485b09=0x0,_0x32be31=Object[_0x4dd6f9(0x289)](_0x3a588a);_0x485b09<_0x32be31[_0x4dd6f9(0x29a)];_0x485b09++)_0x325987['indexOf'](_0x32be31[_0x485b09])<0x0&&Object['prototype'][_0x4dd6f9(0x543)][_0x4dd6f9(0x54a)](_0x3a588a,_0x32be31[_0x485b09])&&(_0x11b3a6[_0x32be31[_0x485b09]]=_0x3a588a[_0x32be31[_0x485b09]]);}return _0x11b3a6;},Dt=ae[_0x2683e6(0x5f3)](function(_0x35f3de,_0x376f41){const _0xec3ef=_0x2683e6;var _0x43424c=_0x35f3de[_0xec3ef(0x177)],_0x1aeb17=_0x35f3de['id'],_0x23d53f=_0x35f3de[_0xec3ef(0x206)],_0x13a555=_0x35f3de[_0xec3ef(0x5c9)],_0x16e2f4=Ds(_0x35f3de,[_0xec3ef(0x177),'id',_0xec3ef(0x206),'extend']),_0x4114a9=_0xec3ef(0x391)[_0xec3ef(0x33e)](_0x1aeb17,'\x20')[_0xec3ef(0x33e)](_0x23d53f||'')['trim'](),_0x5ba940=ae[_0xec3ef(0x54e)]('_'['concat'](Us()));return In(_0x43424c,''[_0xec3ef(0x33e)](_0x1aeb17),{'defIds':_0x43424c[_0xec3ef(0x2e8)],'idSuffix':_0x5ba940[_0xec3ef(0x3b7)]},Q({'ref':_0x376f41,'className':_0x4114a9},_0x16e2f4),_0x13a555);});function In(_0x556ff8,_0x9b9f25,_0x3b7255,_0x335132,_0x39c329){const _0x40f1d1=_0x2683e6;return ae[_0x40f1d1(0x48e)](_0x556ff8[_0x40f1d1(0x493)],Q(Q({'key':_0x9b9f25},ws(_0x556ff8,_0x3b7255,_0x39c329)),_0x335132),(Ps(_0x556ff8,_0x3b7255)[_0x40f1d1(0x50d)]||[])[_0x40f1d1(0x538)](function(_0x18e17a,_0x34a9e0){const _0x2ac7a9=_0x40f1d1;return In(_0x18e17a,''[_0x2ac7a9(0x33e)](_0x9b9f25,'-')[_0x2ac7a9(0x33e)](_0x556ff8['tag'],'-')[_0x2ac7a9(0x33e)](_0x34a9e0),_0x3b7255,void 0x0,_0x39c329);}));}function ws(_0x4fb5a0,_0x1a76ad,_0x354ea4){const _0x267ab9=_0x2683e6;var _0x2cff61=Q({},_0x4fb5a0['attrs']);_0x354ea4!=null&&_0x354ea4[_0x267ab9(0x2a3)]&&_0x2cff61[_0x267ab9(0x215)]===_0x267ab9(0x2a3)&&(_0x2cff61['fill']=_0x354ea4[_0x267ab9(0x2a3)]);var _0xb7d85f=_0x1a76ad[_0x267ab9(0x2e8)];return!_0xb7d85f||_0xb7d85f[_0x267ab9(0x29a)]===0x0||(_0x4fb5a0['tag']===_0x267ab9(0x219)&&_0x2cff61[_0x267ab9(0x223)]&&(_0x2cff61[_0x267ab9(0x223)]=_0x2cff61[_0x267ab9(0x223)]+_0x1a76ad['idSuffix']),Object[_0x267ab9(0x548)](_0x2cff61)[_0x267ab9(0x280)](function(_0x2f3497){const _0xfb9832=_0x267ab9;var _0x529790=_0x2f3497[0x0],_0x505988=_0x2f3497[0x1];typeof _0x505988==_0xfb9832(0x516)&&(_0x2cff61[_0x529790]=_0x505988[_0xfb9832(0x5d6)](/url\(#(.*)\)/,_0xfb9832(0x56b)['concat'](_0x1a76ad['idSuffix'],')')));})),_0x2cff61;}function Ps(_0x2fa724,_0x2b808c){const _0x36a3ab=_0x2683e6;var _0xe4e84a,_0x23a010=_0x2b808c[_0x36a3ab(0x2e8)];return!_0x23a010||_0x23a010[_0x36a3ab(0x29a)]===0x0?_0x2fa724:_0x2fa724['tag']===_0x36a3ab(0x564)&&(!((_0xe4e84a=_0x2fa724[_0x36a3ab(0x50d)])===null||_0xe4e84a===void 0x0)&&_0xe4e84a[_0x36a3ab(0x29a)])?Q(Q({},_0x2fa724),{'children':_0x2fa724[_0x36a3ab(0x50d)]['map'](function(_0x3b3d94){const _0x437cc4=_0x36a3ab;return typeof _0x3b3d94['attrs']['id']=='string'&&_0x23a010&&_0x23a010[_0x437cc4(0x404)](_0x3b3d94[_0x437cc4(0x14d)]['id'])>-0x1?Q(Q({},_0x3b3d94),{'attrs':Q(Q({},_0x3b3d94[_0x437cc4(0x14d)]),{'id':_0x3b3d94[_0x437cc4(0x14d)]['id']+_0x2b808c[_0x437cc4(0x485)]})}):_0x3b3d94;})}):_0x2fa724;}function Us(){const _0x561f50=_0x2683e6;return Math['random']()[_0x561f50(0x155)](0x24)[_0x561f50(0x20e)](0x2,0x8);}Dt[_0x2683e6(0x528)]=_0x2683e6(0x411);var Ms={'tag':_0x2683e6(0x4cc),'attrs':{'fill':'none','viewBox':_0x2683e6(0x4b6),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2683e6(0x423)},'children':[{'tag':'path','attrs':{'stroke':_0x2683e6(0x2b3),'d':_0x2683e6(0x321),'strokeLinecap':_0x2683e6(0x597),'strokeLinejoin':_0x2683e6(0x597),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2683e6(0x41e),'attrs':{'id':_0x2683e6(0x3a4)},'children':[{'tag':'path','attrs':{'fill':_0x2683e6(0x574),'d':_0x2683e6(0x2ce)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Cn=ae[_0x2683e6(0x5f3)](function(_0x54195e,_0x18bff6){const _0xe3da71=_0x2683e6;return ae[_0xe3da71(0x48e)](Dt,Object['assign']({},_0x54195e,{'id':'off-line-single','ref':_0x18bff6,'icon':Ms}));});Cn[_0x2683e6(0x528)]='OffLineSingle';var As={'tag':_0x2683e6(0x4cc),'attrs':{'fill':'none','viewBox':_0x2683e6(0x519),'width':_0x2683e6(0x312),'height':_0x2683e6(0x312)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2683e6(0x53c),'attrs':{'stroke':'currentColor','d':_0x2683e6(0x5a4),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2683e6(0x564),'attrs':{},'children':[{'tag':_0x2683e6(0x41e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2683e6(0x53c),'attrs':{'fill':_0x2683e6(0x574),'d':_0x2683e6(0x2ce),'transform':_0x2683e6(0x569)}}]}]}],'defIds':[_0x2683e6(0x444)]},En=ae[_0x2683e6(0x5f3)](function(_0x191b13,_0x152ea2){const _0x5662b8=_0x2683e6;return ae['createElement'](Dt,Object[_0x5662b8(0x3f3)]({},_0x191b13,{'id':_0x5662b8(0x188),'ref':_0x152ea2,'icon':As}));});En[_0x2683e6(0x528)]=_0x2683e6(0x163);function bn(_0x3adca5){const _0x266ad1=_0x2683e6;var _0x205e02,_0x12d95c,_0x1d3c97='';if(typeof _0x3adca5=='string'||typeof _0x3adca5==_0x266ad1(0x5ee))_0x1d3c97+=_0x3adca5;else{if(typeof _0x3adca5==_0x266ad1(0x24b)){if(Array[_0x266ad1(0x1c2)](_0x3adca5)){var _0x4c57fd=_0x3adca5[_0x266ad1(0x29a)];for(_0x205e02=0x0;_0x205e02<_0x4c57fd;_0x205e02++)_0x3adca5[_0x205e02]&&(_0x12d95c=bn(_0x3adca5[_0x205e02]))&&(_0x1d3c97&&(_0x1d3c97+='\x20'),_0x1d3c97+=_0x12d95c);}else{for(_0x12d95c in _0x3adca5)_0x3adca5[_0x12d95c]&&(_0x1d3c97&&(_0x1d3c97+='\x20'),_0x1d3c97+=_0x12d95c);}}}return _0x1d3c97;}function Ns(){const _0x89522=_0x2683e6;for(var _0x337860,_0x379b55,_0x5b55c9=0x0,_0x2e6c4a='',_0x5ccdc8=arguments[_0x89522(0x29a)];_0x5b55c9<_0x5ccdc8;_0x5b55c9++)(_0x337860=arguments[_0x5b55c9])&&(_0x379b55=bn(_0x337860))&&(_0x2e6c4a&&(_0x2e6c4a+='\x20'),_0x2e6c4a+=_0x379b55);return _0x2e6c4a;}const Ls='univer-online-status-icon',xs=_0x2683e6(0x35d),js=_0x2683e6(0x339),$s=_0x2683e6(0x174),Hs=_0x2683e6(0x542),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x2926ff){const _0x150aad=_0x2683e6;switch(_0x2926ff){case q['OFFLINE']:return'collabStatus.offline';case q[_0x150aad(0x476)]:return _0x150aad(0x31c);case q[_0x150aad(0x4c9)]:return _0x150aad(0x4e6);case q[_0x150aad(0x325)]:return _0x150aad(0x1cd);case q[_0x150aad(0x2c7)]:case q['AWAITING_WITH_PENDING']:return _0x150aad(0x1cf);case q[_0x150aad(0x244)]:case q[_0x150aad(0x23b)]:return _0x150aad(0x1af);}}function Tn(_0xe4204a){const _0x1381c7=_0x2683e6,{status$:_0x5c5959}=_0xe4204a,_0x2fb480=ee[_0x1381c7(0x2b2)](_0x5c5959,q[_0x1381c7(0x325)]),_0x43f916=a['useDependency'](a[_0x1381c7(0x479)]),_0x18ea16=a['useDependency'](exports[_0x1381c7(0x17a)]),_0x42fbaf=_0x2fb480!==q[_0x1381c7(0x25a)],_0x499247=_0x43f916['t'](Bs(_0x2fb480)),_0x4e28f6=Ns(Me[_0x1381c7(0x3c2)],{[Me[_0x1381c7(0x230)]]:_0x42fbaf,[Me['offline']]:!_0x42fbaf}),_0x556d00=_0x42fbaf?pe[_0x1381c7(0x1d3)](En,{}):pe[_0x1381c7(0x1d3)](Cn,{}),_0x133928=ae['useCallback'](()=>{const _0x31853c=_0x1381c7;_0x42fbaf||_0x18ea16[_0x31853c(0x5bd)]();},[_0x42fbaf,_0x18ea16]);function _0x5aceac(){const _0x377794=_0x1381c7;return pe['jsxs']('div',{'className':_0x4e28f6,'onClick':_0x133928,'children':[pe['jsx'](_0x377794(0x5a2),{'className':Me[_0x377794(0x47b)],'children':_0x556d00}),pe[_0x377794(0x1d3)]('div',{'className':Me[_0x377794(0x189)],'children':_0x499247})]});}return _0x42fbaf?_0x5aceac():pe[_0x1381c7(0x1d3)](ge[_0x1381c7(0x3ec)],{'title':_0x43f916['t'](_0x1381c7(0x5ba)),'children':_0x5aceac()});}var ks=Object['defineProperty'],Ws=Object[_0x2683e6(0x181)],Fs=(_0x18b4a6,_0x40982f,_0x3a8e57,_0x290d8e)=>{const _0x18d89d=_0x2683e6;for(var _0x580ef0=_0x290d8e>0x1?void 0x0:_0x290d8e?Ws(_0x40982f,_0x3a8e57):_0x40982f,_0x30541f=_0x18b4a6[_0x18d89d(0x29a)]-0x1,_0x4461a4;_0x30541f>=0x0;_0x30541f--)(_0x4461a4=_0x18b4a6[_0x30541f])&&(_0x580ef0=(_0x290d8e?_0x4461a4(_0x40982f,_0x3a8e57,_0x580ef0):_0x4461a4(_0x580ef0))||_0x580ef0);return _0x290d8e&&_0x580ef0&&ks(_0x40982f,_0x3a8e57,_0x580ef0),_0x580ef0;},$e=(_0x58c8b6,_0x5565f0)=>(_0x1c37f1,_0x1c1a37)=>_0x5565f0(_0x1c37f1,_0x1c1a37,_0x58c8b6);exports[_0x2683e6(0x20d)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x58988f,_0x29716f,_0xca2ae2,_0x5c79a3){const _0x28644d=_0x2683e6;super(),I(this,_0x28644d(0x1bc),new A[(_0x28644d(0x1ce))](q[_0x28644d(0x325)])),(this[_0x28644d(0x45b)]=_0x58988f,this[_0x28644d(0x2e2)]=_0x29716f,this['_injector']=_0xca2ae2,this['_collaborationController']=_0x5c79a3,this[_0x28644d(0x392)](),this[_0x28644d(0x3c6)]());}['_initStatusListener'](){const _0x48437e=_0x2683e6;this[_0x48437e(0x427)](this[_0x48437e(0x45b)][_0x48437e(0x5dd)][_0x48437e(0x36b)](A['switchMap'](()=>{const _0x126d84=_0x48437e,_0x2b2fea=this[_0x126d84(0x45b)][_0x126d84(0x452)]();return _0x2b2fea?this[_0x126d84(0x343)][_0x126d84(0x3f8)](_0x2b2fea[_0x126d84(0x478)]()):A['of'](null);}),A[_0x48437e(0x424)](_0x3b62be=>_0x3b62be?_0x3b62be[_0x48437e(0x2bf)]:A['of'](q['NOT_COLLAB'])))[_0x48437e(0x44d)](_0x479063=>{const _0x3f5e28=_0x48437e;this[_0x3f5e28(0x1bc)][_0x3f5e28(0x40f)](_0x479063);}));}['_initStatusComponent'](){const _0xa66fcf=_0x2683e6;this[_0xa66fcf(0x427)](this[_0xa66fcf(0x2e2)][_0xa66fcf(0x2d3)](ee[_0xa66fcf(0x3b9)][_0xa66fcf(0x370)],()=>a[_0xa66fcf(0x16d)](Vs({'status$':this[_0xa66fcf(0x1bc)][_0xa66fcf(0x4f2)]()}),this[_0xa66fcf(0x3e9)])));}},exports[_0x2683e6(0x20d)]=Fs([$e(0x0,a[_0x2683e6(0x468)]),$e(0x1,ee[_0x2683e6(0x1f5)]),$e(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),$e(0x3,a[_0x2683e6(0x22b)](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Vs(_0x50d86a){const {status$:_0x2a9574}=_0x50d86a;return function(){const _0xe282fd=_0x479a;return pe[_0xe282fd(0x1d3)](Tn,{'status$':_0x2a9574});};}const wt=a['createIdentifier'](_0x2683e6(0x566));var Gs=Object[_0x2683e6(0x1e7)],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x34ff12,_0x37a3c2,_0x22ca5b,_0x12f9fa)=>{for(var _0x1fc6ed=_0x12f9fa>0x1?void 0x0:_0x12f9fa?Ys(_0x37a3c2,_0x22ca5b):_0x37a3c2,_0x5c3b7c=_0x34ff12['length']-0x1,_0x18ed4a;_0x5c3b7c>=0x0;_0x5c3b7c--)(_0x18ed4a=_0x34ff12[_0x5c3b7c])&&(_0x1fc6ed=(_0x12f9fa?_0x18ed4a(_0x37a3c2,_0x22ca5b,_0x1fc6ed):_0x18ed4a(_0x1fc6ed))||_0x1fc6ed);return _0x12f9fa&&_0x1fc6ed&&Gs(_0x37a3c2,_0x22ca5b,_0x1fc6ed),_0x1fc6ed;},Te=(_0x4b25da,_0x1cae6b)=>(_0x1c6d69,_0x85e840)=>_0x1cae6b(_0x1c6d69,_0x85e840,_0x4b25da);exports[_0x2683e6(0x323)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x5d0f6e,_0x2040b8,_0x289c76,_0x10d852,_0x508d55,_0x2d422b){const _0x545c03=_0x2683e6;super(),this[_0x545c03(0x3ff)]=_0x5d0f6e,this['_logService']=_0x2040b8,this[_0x545c03(0x447)]=_0x289c76,this[_0x545c03(0x4ee)]=_0x10d852,this[_0x545c03(0x218)]=_0x508d55,_0x2d422b?_0x2d422b==null||_0x2d422b[_0x545c03(0x425)]()[_0x545c03(0x3a7)](()=>this[_0x545c03(0x4ea)]()):(this['_logService'][_0x545c03(0x3db)](_0x545c03(0x5a6),_0x545c03(0x4d3)),this[_0x545c03(0x4ea)]());}async[_0x2683e6(0x4ea)](){const _0x1c31a2=_0x2683e6,_0x26db1e=this[_0x1c31a2(0x3ff)][_0x1c31a2(0x277)](_0x1c31a2(0x434)),_0x16f3ce=this[_0x1c31a2(0x3ff)][_0x1c31a2(0x277)]('type');if(!_0x26db1e||!_0x16f3ce){this['_logService'][_0x1c31a2(0x3db)](_0x1c31a2(0x5a6),_0x1c31a2(0x335));return;}switch(Number(_0x16f3ce)){case ie[_0x1c31a2(0x4a1)]:{const _0x5287de=await this[_0x1c31a2(0x5af)](_0x26db1e);this[_0x1c31a2(0x4cb)](_0x5287de);break;}case ie[_0x1c31a2(0x56e)]:{await this[_0x1c31a2(0x521)](_0x26db1e);break;}default:{this[_0x1c31a2(0x577)][_0x1c31a2(0x461)](_0x1c31a2(0x5a6),_0x1c31a2(0x48b));break;}}}async[_0x2683e6(0x4cb)](_0x32082a){const _0x5f4bff=_0x2683e6;await this['_updateSubUnitFromURLParams'](_0x32082a),_0x32082a[_0x5f4bff(0x2d0)]['pipe'](A[_0x5f4bff(0x35f)](this[_0x5f4bff(0x534)]))['subscribe'](_0x523f9f=>{const _0x567aff=_0x5f4bff;_0x523f9f&&this[_0x567aff(0x258)](_0x523f9f);}),this[_0x5f4bff(0x3ff)][_0x5f4bff(0x5b7)][_0x5f4bff(0x36b)](A[_0x5f4bff(0x35f)](this['dispose$']))[_0x5f4bff(0x44d)](()=>this[_0x5f4bff(0x3fe)](_0x32082a));}[_0x2683e6(0x258)](_0x4ec35b,_0xbff459=!0x1){const _0x3b16cc=_0x2683e6,_0x34b927=this[_0x3b16cc(0x3ff)]['getParam']('subunit');_0x4ec35b[_0x3b16cc(0x276)]()!==_0x34b927&&this[_0x3b16cc(0x3ff)][_0x3b16cc(0x2df)](_0x3b16cc(0x590),_0x4ec35b[_0x3b16cc(0x276)](),_0xbff459);}async[_0x2683e6(0x3fe)](_0x2879e1){const _0x4dd02a=_0x2683e6;var _0x46f66e;const _0x297151=this[_0x4dd02a(0x3ff)][_0x4dd02a(0x277)](_0x4dd02a(0x590));if(!_0x297151||!_0x2879e1[_0x4dd02a(0x5ae)](_0x297151)){const _0x4ba558=_0x2879e1[_0x4dd02a(0x260)]()[0x0],_0x1fbeea=_0x2879e1['getSheetBySheetId'](_0x4ba558);if(!_0x1fbeea)return;this[_0x4dd02a(0x258)](_0x1fbeea,!0x0),await this[_0x4dd02a(0x447)][_0x4dd02a(0x511)](k[_0x4dd02a(0x18b)]['id'],{'unitId':_0x2879e1[_0x4dd02a(0x478)](),'subUnitId':_0x4ba558});return;}((_0x46f66e=_0x2879e1[_0x4dd02a(0x399)]())==null?void 0x0:_0x46f66e[_0x4dd02a(0x276)]())!==_0x297151&&await this['_commandService'][_0x4dd02a(0x511)](k[_0x4dd02a(0x18b)]['id'],{'unitId':_0x2879e1[_0x4dd02a(0x478)](),'subUnitId':_0x297151});}async[_0x2683e6(0x5af)](_0x27da65){const _0x3f535d=_0x2683e6;let _0x5dd77a=0x0;const _0x212c8e=await this[_0x3f535d(0x4ee)]['loadOfflineData'](_0x27da65);return _0x212c8e&&(_0x212c8e[_0x3f535d(0x154)]||_0x212c8e[_0x3f535d(0x2a9)]['length']!==0x0)&&(_0x5dd77a=_0x212c8e[_0x3f535d(0x162)]),_0x5dd77a===0x0&&this['_logService'][_0x3f535d(0x3db)](_0x3f535d(0x5a6),_0x3f535d(0x39c)),this[_0x3f535d(0x218)][_0x3f535d(0x4b2)](_0x27da65,_0x5dd77a);}async[_0x2683e6(0x521)](_0xebedc1){const _0x476a0e=_0x2683e6;let _0x2ace33=0x0;const _0x1db113=await this[_0x476a0e(0x4ee)][_0x476a0e(0x27c)](_0xebedc1);return _0x1db113&&(_0x1db113['awaitingChangeset']||_0x1db113['mutations'][_0x476a0e(0x29a)]!==0x0)&&(_0x2ace33=_0x1db113[_0x476a0e(0x162)]),_0x2ace33===0x0&&this[_0x476a0e(0x577)][_0x476a0e(0x3db)](_0x476a0e(0x5a6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadDoc'](_0xebedc1,_0x2ace33);}},exports[_0x2683e6(0x323)]=Ks([Te(0x0,wt),Te(0x1,a['ILogService']),Te(0x2,a[_0x2683e6(0x1d5)]),Te(0x3,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),Te(0x4,a['Inject'](S[_0x2683e6(0x1d1)])),Te(0x5,a[_0x2683e6(0x23c)]($n[_0x2683e6(0x488)]))],exports[_0x2683e6(0x323)]);function _0x21f6(){const _0x1e1a34=['_context','_heartbeatTimer','_socketMessageSubscription','msCrypto','_getCtorByUniverType','params','IDLE','getMember','_event$','/universer-api/authz','_eventUnsubscribe','getCellPositionByOffset','[CollaborationSessionService]:\x20socket\x20error','_docSkeleton','defs','_labelPosition','uni.network.url-service','permission.title','TOO_MANY_REQUESTS','translate(.97)','href','url(#$1','YUUMI_URL_COL_OUT_OF_RANGE','_createHelper','UNIVER_DOC','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_key','onCommandExecuted','IURLService','react.fragment','#fff','toLowerCase','engine','_logService','getRandomValues','setItem','cmd','_initResize','_data','connection\x20error','_getScale','filter','bind','getCurrentRevOfUnit','textEncoder','csShouldRetryEvent','WebURLService','join','_handleHeartbeatEvent','Rectangle','synced','_nDataBytes','randomBytes','keySize','SerializableCipher','hide','has','IConfigService','subunit','/resources','purple300','enc','_sendHeartbeat','_submitChangeset','MergeInterceptorFactory','round','includes','beginPath','newValue','transformStack\x20failed!','localeService','Decryptor','generateRandomId','CommandType','_ws','9986202feSsWz','div','bottom','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','UNDEFINED','[DataLoaderController]','words','SNAPSHOT_SERVER_URL_KEY','ILogService','DocIMEInputManagerService','getRoom','data','_scheduleHeartbeat','getSheetBySheetId','_loadSheet','_createInitialStateImpl','visibilitychange','_syncEditingCollabCursor','transformRemoteChangeset','BufferedBlockAlgorithm','_onCombEvent','socket$','urlChange$','COLORS','_queuedRemoteChangesets','collab-client.tooltip.reconnect','CollaborationSocketService','_drawRectRange','reconnect','ILocalStorageService','COLLAB_WEB_SOCKET_URL','_getUploadFileURL','LICENSE_IMPORT_SIZE_EXCEEDED','getResourcesRequest','_transformHistoryAndStateStack','UnitSnapshot','reqId','originalMeta','&source=','onTransformChange$','extend','[CollaborationSession]','IUndoRedoService','registerDependencies','ImageUploadStatusType','contains','_minBufferSize','readInt32LE','_undoStacks','csAckEvent','Could\x20not\x20dynamically\x20require\x20\x22','getRelativeToViewportCoord','fromEvent','replace','disposeUnit','_docTransformStateCacheService','fetchThroughInterceptors','_singleActiveUnitService','lib','VIEWPORT_KEY','focused$','TEXT_RANGE_LAYER_INDEX','kdf','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','/allowed','getSheetBlock','SessionStatus','fillStyle','SheetPermissionInitController','unitId','collab-rect-range-','registerHTTPInterceptor','_document','_scheduleClearOtherTimer','CollaborationSession','DOC_RANGE_TYPE','failed\x20to\x20apply\x20missed\x20changesets!','number','Utf8','joinRsp','MSG_FOR_ERROR','ivSize','forwardRef','_collabCursorController','fetching\x20missing\x20changesets\x20from\x20','_clearTimeoutTimer','_collabSessionService','55604QZQcQc','_doCryptBlock','CONNECTOR_DATA_TOO_LARGE','onCommentUpdate','handleInsertCol','randomUUID','/universer-api/comb','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','endRow','_initDependencies','TRANSFORM_CHANGE_OBSERVABLE_TYPE','src','LocalCacheService','_draw','fetchMissingChangesets','_initUnitPermissionChange','createIdentifier','column','attrs','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','AuthzIoHttpService','putCollaborators','Hex','LICENSE_DISTRO_REJECTED','_refRangeService','awaitingChangeset','toString','LICENSE_MAX_UNITS_EXCEEDED','isTransformMutationFailure','INTERNAL_ERROR','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_lockTransition','_hover','365TsRweM','_online','getDeserializedSheetBlock','/rev/','c1Prime','getViewport','rev','OnLineSingle','sigBytes','UNRECOGNIZED','LocalUndoRedoService','_messageService','close$','DocStateChangeManagerService','popstate','_transformPreviousActiveRange','RemoveRowCommandId','connectInjector','getUnitType','onMissedChangesetFetched','url','SetDocZoomRatioOperation','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','toggleOffline','univer-online','with','COMMENT_UPDATE','icon','_waitForHeartbeatResponse','clone','CollaborationSessionService','_hovered','_clearLocalCache','row','push','UNAUTHENTICATED','_reverseMap','getOwnPropertyDescriptor','/unit/','findNodePositionByCharIndex','MemberService','conflict.content','_getCurrentRevision','ImageIoService','on-line-single','onlineStatusTitle','/fetchmissing?from=','SetWorksheetActivateCommand','_getAPIPrefixPath','UserManagerService','parse','split','_applyRemoteChangeset','ONLINE','transformChangesets','_exhaustRemoteChangesetQueue','b64DecodeUnicode','getUnitStatus$','handleIRemoveCol','height','saveImage','_transformUndoRedoStack','fromCharCode','_mode','_imageSourceCache','getRangePointData','handleIRemoveRow','collaboration_new_changeset','_append','max','MD5','_acknowledgedAwaitingChangeset','@univerjs/telemetry','onRemoteAck','_getSnapshotAPIPrefix','_onRemoteRetry','SHA1','ICollaborationSocketService','_saveTaskMap','HttpImport','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_scheduleSaving','RichTextEditingMutation','collabStatus.synced','assignAColorForMemberID','_unitStatus','incrementRevOfUnit','signUrlServerUrl','editingUnit','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transformMutationsWithChangeset','_cachedData','readAsDataURL','ImageSourceType','delay','_docTransformIMECacheService','_status$','isTransformMutationsWithChangesetFailure','leaveEvent','CHANGESET_REJ','_ENC_XFORM_MODE','_colorIndex','isArray','HELLO','_onRemoteChangeset','_changesetSessionId','_hideTimer','range','YUUMI_RATE_OVER_LIMIT','function','{fileID}','/universer-api/stream/file/upload','RETRY_CONNECTING_MAX_COUNT','collabStatus.notCollab','BehaviorSubject','collabStatus.syncing','decryptBlock','SnapshotService','getMergeData','jsx','cursorInfo','ICommandService','retryConnectingInterval','_http','capture','_createHandler','isInternalEditorID','_remoteChangesetQueue','_process','_docSyncEditingCollabCursorService','top','Shape','RxDisposable','snapshot','[CollaborationState]:\x20apply\x20error!','ITransformService','copyFileMeta','_snapshotServerService','ENSURE_SNAPSHOT_EXECUTION','defineProperty','_commentUpdate$','_selfUnitIDs','sid','collaborators','_backgroundColor','session.will-retry','_socket','file','COLLAB_SUBMIT_CHANGESET_URL_KEY','NO_OTHER_CLIENTS_EDITING','getImage','_getUndoStack','format','IUIPartsService','StreamCipher','Warning','objectType','now','APPLY_REVISION_CONFILICT','getValue','UNIVER_SLIDE','_onUserLeave','reset','black','_textBubble','_collaborationPaused','_toggleOffline','/object/','_clearUndo','startsWith','className','_substituteRedoStack','debounceTime','_initCloseConn','collaMsg','_syncEditingCollabCursorService','UnitEmbedded','DesktopCollaborationStatusDisplayController','substring','_docTransformSelectionsService','patch','min','moveTo','ranges','onReady','fill','_collaborationSessionService','APPLY_PERMISSION_DENIED','_snapshotService','use','state$','getVpScrollXYInfoByPosToVp','handleDeleteRangeMoveLeft','?size=','_fetchMissChangesets','registerBeforeClose','EvpKDF','USERS_ENTER','removeMember','xlink:href','sheetID','_unitID','_clearRedo','SetSelectionsOperation','flatMap','_unitOnClients','_getMergeRange','Inject','_updateLocalCache','mapTo','LIVESHARE_FETCH_OPERATIONS','YUUMI_SUBSCRIPTION_NOT_FOUND','online','name','_nRounds','_renderManagerService','DisposableCollection','SHOULD_CLOSE_CONN','/universer-api/file/{fileID}/sign-url','slice','__esModule','_telemetryInfo','deleteCollaborator','PENDING','Optional','171801abfyJf','@univerjs/sheets-ui','byteLength','enableLocalCache','combineLatest','textRanges','state','SYNCED','_clearScheduledTask','IBeforeCloseService','startColumn','collaboration.closeRoom','restore','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','object','getCollabCursors$','clearTimeout','ISnapshotServerService','OpenSSL','find','clearInterval','fromEventSubject','_cursorShapes','getAncestorScale','concatMap','Tools','finalize','_updateURLWithCurrentState','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','OFFLINE','init','_onConflict','_undoRedoService','onMouseMove','visibilityState','getUnhiddenWorksheets','_throwTelemetryCollaborationNewChangeset','registerRefRange','error$','_beforeCloseService','UPDATE_PERMISSION_OBJ','redoState','decrypt','@univerjs/drawing','dispose','_clearCollaborationTimeoutTimer','_colorAssignService','mixIn','@univerjs/design','mapDocumentTypeToUniverType','getCurrent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getDownloadEndpointURL','Error','IPermissionService','_onRemoteRejected','PasswordBasedCipher','getSheetId','getParam','defaultProps','event$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onOffline','loadOfflineData','padding','delete','_anchorDot','forEach','awaiting_with_pending','take','LIVESHARE_NEW_HOST','getTime','_revisionService','location','triggerDblclick','_updateLocalCursor','getOwnPropertySymbols','session.connection-failed','_transformUndoredo','_socketReady','Hasher','react.element','addObject','repeat','_userManagerService','red300','_retryCount','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_refreshCollabCursors','_map','revision','@univerjs/engine-formula','@univerjs-pro/collaboration','length','FileId','replaceDocRanges','IImageIoService','FromArray','changesets','_hash','[FetchMissState]','HTTPService','colorChannel1','SUBMIT_CHANGESET','Latin1','endColumn','body','Undefined','mutations','selection','actions','1883787rIVVGf','Workbook','NoPadding','onRendered','transformMutation','_cursors','useObservable','currentColor','7RFSklI','_permissionService','_sessionStatus$','requestParams','requireSession','debounce','getUndoRedoMutationParamsCache','_setupBeforeClosingHandler','setShapeProps','_shapes','HEARTBEAT_TIMEOUT','status$','COLLAB_SUBMIT_CHANGESET_URL','auth.needGotoLoginAlert','_listenToOnlineEvent','_showConflictNotification','labelPosition','_sheetSkeletonManagerService','_resendWithTimeout','AWAITING','Injector','drawWith','[CollaborationSessionService]','_removeCollabCursors','_notificationService','measureText','M0\x200H16V16H0z','_memberService','activeSheet$','_oKey','values','registerComponent','updateOfflineData','HEARTBEAT_INTERVAL_KEY','awaiting','DEFAULT_FILE_NAME','createDecryptor','SetTextSelectionsOperation','isActive','symbol','getOffsetConfig','_removeRoom','&to=','setParam','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_ACK','_uiPartsService','Base64','_transitionLocked','[OfflineState]:\x20received\x20acknowledgement.','_onRefRangeChange','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','defIds','getInterceptPoints','onRemoteRej','objectActions','duration','substr','_getLoginPath','fetch_missing','floor','_startSheetCollabCursor','snapshotServerUrl','prototype','COMPRESS_MUTATION_APPLY','headers','[CollaborationUndoRedoService]','conflict','crypto','#FFF','onStateChange','_compressMutationService','reject','_unlockTransition','onSyncEditingCollabCursor','_executeRemoteChangeset','_onLocalMutation','__creator','_removeClearOtherTimer','save','_clearHeartbeatTimer','subUnitId','setCurrentUser','\x0aCurrent:\x20','clear','unshift','isTransformMutationsWithChangesetSuccess','_scene','_resendTimer','CollaborationEntity','memberID','open$','@univerjs/network','UNIVER_PROJECT','1em','_createHmacHelper','create','collabSubmitChangesetUrl','_entityInit$','pushState','_transformService','title','hovered','serializeRangeWithSheet','collabStatus.conflict','unitId\x20is\x20not\x20found','_sessions','LIVESHARE_REQUEST_HOST','currentSkeleton$','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','fillText','DataLoaderController','_cipher','NOT_COLLAB','m2Prime','key','stopTime','getStateCache','origin','saveSheetBlock','ERROR_IMAGE','getTypeOfUnitAdded$','blockSize','onTransformIME','_sender','allowed','result','every','unsubscribe','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_listenToOfflineEvent','handleInsertRangeMoveDown','LIVESHARE_OPERATION','univer-online-status','roomMembers','isEditing','_HTTPService','mode','concat','from','_keyPriorReset','ThresholdInterceptorFactory','UniverInstanceType','_collaborationController','all','Encryptor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_localeService','update','getSheetObject','roomMembers$','default','_doReset','handleMoveRange','LEAVE','session','TEXT','handleInsertRow','setTimeout','exhaustSavingTask','SNAPSHOT_INVALID_SNAPSHOT','CommentService','collabWebSocketUrl','subscribeEvent','_scheduleTimestamp','_drawAnchor','confirm','Vector2','doc.mutation.rich-text-editing','univer-online-status-title','objects','takeUntil','csRejEvent','[SyncedState]:\x20received\x20acknowledgement.','EffectRefRangId','_waitCount','_onRemoteACK','DocCollaborationEntity','onTransformSelections','hasher','_getSendChangesetTimeout','_config','unload','pipe','arc','_awaitingChangeset','parseProtocolChangeset','_startDocCollabCursor','HEADER_MENU','2009144zIyPwQ','mergeOverrideWithDependencies','onRemoteChangeset','_lastPointer','_schedule','YUUMI_UNABLE_LOAD_URL','_roomMembers','_createInitialState','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_entities','Base','ERROR_IMAGE_TYPE','@univerjs/core','transformStateCache','[PendingState]:\x20received\x20acknowledgement.','SnapshotServerOverHTTPService','distinctUntilChanged','APPLY_NON_SEQUENTIAL_REVISION','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UniverCollaborationClientPlugin','_startCollaboration','_initEventListeners','_transformStack','USERS_LEAVE','_session','InsertRowCommandId','infoRsp','roomInfos','font','roles','JOINING','INVALID_ARGUMENT','univerjs-icon\x20univerjs-icon-','_initStatusComponent','?url=','abs','encode','LOCAL_CACHE_INTERVAL','_sendingTimer','APPLY_DUPLICATED','getActiveSheet','offline','transform','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getCurrentUser','AUTHZ_URL_KEY','_transformStateCache','joinEvent','CompressMutationService','_shouldReportTelemetry','IAuthzIoService','off-line-single_clip0_910_343','socketService','_localStorageService','then','_DEC_XFORM_MODE','_invKeySchedule','63mUvdTG','_assignedColors','backgroundColor','ciphertext','_transformRemoteChangesetByStateCache','_onFetchMissResult','appendMutation','image/jpg','_render','permission.content','getTypeOfUnitDisposed$','salt','_registerRenderDependencies','current','cfg','BuiltInUIPart','ThemeService','override','getUniverSheetInstance','onTransformRemoteChangesetByIMECache','userID','RECT','history','onPointerLeave$','onlineStatus','getCollabEntity','_state','skeleton','_initStatusListener','_onConnectionOpen','uploadFileServerUrl','INGEST','_handleHover','encrypt','Disposable','Unknown\x20user','liveShareNewHost','touchDependencies','Plugin','_configService','_rescheduleHeartbeat','PERMISSION_DENIED','image/png','getSkeleton','CollaborationEvent','_collaborationTimeoutTimer','width','saveOfflineData','NEW_CHANGESETS','debug','ColorKit','transformUndoRedo','CollaborationController','UniverCollaborationPlugin','_replayCachedMutations','_decreaseWaiting','_parse','currentTheme$','close','jiqing500','_type','random','COMPLETION_FINISHED','_injector','storage','createSocket','Tooltip','resolve','merge','reverse','ceil','APPLY_REJECT','json','assign','SEND_CHANGESET_TIMEOUT_KEY','HEARTBEAT_TIMEOUT_KEY','[CollaborationEntity]','byteOffset','getCollabEntity$','_roomMembers$','_docSkeletonManagerService','_httpService','_getSignURL','MUTATION','_updateSubUnitFromURLParams','_urlService','_id','_hasher','_state$','ref','indexOf','hasOwnProperty','isTransformChangesetsSuccess','downloadEndpointUrl','_sendHeartbeatTimer','collabCursorState$','charCodeAt','processBlock','_substituteUndoStack','_doProcessBlock','stringify','next','_prevBlock','UniverIcon','LIVESHARE_TERMINATE','setAlpha','_onCursorDelete','replaceState','encryptBlock','pad','onMissingChangesets','_getAnchorBounding','BlockCipherMode','/universer-api/oidc/authpage','UNKNOWN_CODE','UNIVER_UNKNOWN','clipPath','DeleteRangeMoveUpCommandId','image/jpeg','c2Prime','getCurrentSelections','url(#off-line-single_clip0_910_343)','switchMap','whenReady','JOIN','disposeWithMe','_getRedoStack','_range','VIEW_MAIN','_iv','compute','univer-pro.collaboration-client.single-active-unit-service','_docStateChangeManagerService','setConfig','_handleEvent','_handleJoinEvent','AES','_change$','unit','UNKNOWN_CMD','exports','SheetCollabCursorShape','complete','docStateChange$','deepClone','editing\x20status\x20changed\x20to','_updateStatus','RefRangeService','isPermissionRej','addObjects','_sheetTransformSelectionsService','_checkMissing','makeDirty','code','on-line-single_clip0_910_349','fetchMiss','_socketService','_commandService','_cursor','cursorInfo$','type','put','@univerjs/sheets','subscribe','FAIL','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_clearOtherTimers','getImageSourceCache','getFocusedUnit','routeKey','toDisposable','MessageType','onRemoteRetry','withCredentials','onTransformState','startRow','_incrementRevisionNumber','_univerInstanceService','_handleLeaveEvent','_disabled','InsertRangeMoveRightCommandId','workbook','resize','error','x-univer-host','newCsEvent','FETCH_MISSING','hostname','@univerjs/ui','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','IUniverInstanceService','NOT_FOUND','transformSelections','DocSkeletonManagerService','_onRecvEvent','shouldCloseConn','toggleOnline','set','UPDATE_CURSOR','ACTIVE_UNIT_EVENT_CHANNEL','HMAC','_telemetryService','_handler','interceptor','CONFLICT','eventID','getUnitId','LocaleService','session.room-full','onlineStatusIcon','\x20-\x20','evenodd','status','_changesetReqId','rng','LOGIN_URL_KEY','conflict.title','NodePositionConvertToRectRange','COMPRESS_MUTATION_SEND','idSuffix','iterations','_getSheetObject','IRemoteInstanceService','setInterval','_initCommandExecutedListener','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Rect','onTransformRemoteChangesetByStateCache','createElement','_transformSelections','lineTo','sheets','message$','tag','add','verdancy600','getConfig','sessionStatus$','fromCollab','updateMember','reduce','ReactCurrentOwner','_disableEditing','commentUpdate$','enableOfflineEditing','_registerDependencies','_tryEnsureSocket','UNIVER_SHEET','MoveRangeCommandId','jsxs','Malformed\x20UTF-8\x20data','_cursorInfo$','formatter','_updateCollabCursors','2521186lIhVRB','unitID','onSendChangeset','_socket$','/collaborator','HEARTBEAT_INTERVAL','send','getUnit','_ensureSubject','sequenceExecute','loadSheet','WebSocketService','size','_getAPIPrefix','0\x200\x2016\x2016','pluginName','_pendingMutations','_isPermissionRej','authzUrl','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','closePath','_toggleOnline','syncEditingCollabCursor','SheetCollaborationEntity','createEncryptor','OTHER_CLIENTS_EDITING','getMemberID','method','apply','@univerjs/rpc','blue400','UNIVER_COLLABORATION_CLIENT_PLUGIN','RECV','FETCH_MISS','append','_setupSubUnitSync','svg','splice','_onUserJoin','_candidateSocket','pauseCollaboration','PSEUDO_FETCH_MISSING_RESULT','transformIMECache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','image/gif','__Key__','_collabCursorState$','createInstance','&assign=','/-/object/-/batch_allowed','_resendTimeout','show','clamp','shareReplay','startTime','resend','_stopTelemetryCollaborationNewChangeset','PERMISSION_REJ','HmacMD5','deserializeToCombResponse','HttpExport','CHANGESET_SHOULD_RETRY','collabStatus.fetchMiss','collab-text-range-','createCollaborator','enableSingleActiveInstanceLock','_init','_initRequestHeader','_keySchedule','_onCursorUpdate','_localCacheService','react','throttleTime','_tryReconnect','asObservable','_retryConnectingTimer','WorkbookEditablePermission','RevisionService','searchParams','InsertSheetMutation','SNAPSHOT_URL_KEY','getRenderById','pending','_transformIMECache','addEventListener','closeSession','charAt','SEND_CHANGESET_TIMEOUT','getDocRanges','_onConnectionFailed','_xformMode','undoState','_transformRemoteChangesetByIMECache','_onJoinRoomEvent','[PendingState]:\x20received\x20rejection.','unknown','_getSaveTimeout','IMessageService','_replaceFileID','selections','encodeURIComponent','children','_themeService','objectID','gold400','executeCommand','_color','12259630NIayvE','EmptyMutation','m1Prime','string','UniverNetworkPlugin','_initMergeInterceptor','0\x200\x2017\x2016','disableLocalCache','Subject','members','_members','_timeoutTimer','RegularPolygon','_drawTextRange','_loadDoc','baseRev','InsertRangeMoveDownCommandId','updatePermissionPoint','runRefRangeMutations','algo','_joinRoom','displayName','action','target','loginUrlKey','Error\x20on\x20receiving\x20event','InsertColCommandId','CollaborationStatus','color','HEARTBEAT','[UniverCollaborationClientPlugin]','Univer','removeParam','dispose$','addImageSourceCache','CHANGESET_REVISION_CONFILICT','_redoStacks','map','_name','sheetId','WordArray','path','/block/','DocSelectionManagerService','_anchor','execute','resourceIDs','univer-offline','propertyIsEnumerable','_saveCache','univer-pro.collaboration-client-socket-service','ALREADY_EXISTS','setWaitCount','entries','_send','call','LICENSE_EXPORT_SIZE_EXCEEDED','liveShareOperation','_updateState','useRef','SNAPSHOT_HAS_BEEN_REMOVED','SheetsSelectionsService','post','getColor','get','Cipher','@univerjs/engine-render'];_0x21f6=function(){return _0x1e1a34;};return _0x21f6();}var qs=Object[_0x2683e6(0x1e7)],zs=Object[_0x2683e6(0x181)],Xs=(_0x470475,_0x85c71a,_0x98c4d7,_0x367b70)=>{const _0x53a59f=_0x2683e6;for(var _0x31656b=_0x367b70>0x1?void 0x0:_0x367b70?zs(_0x85c71a,_0x98c4d7):_0x85c71a,_0x145aa3=_0x470475[_0x53a59f(0x29a)]-0x1,_0x193c67;_0x145aa3>=0x0;_0x145aa3--)(_0x193c67=_0x470475[_0x145aa3])&&(_0x31656b=(_0x367b70?_0x193c67(_0x85c71a,_0x98c4d7,_0x31656b):_0x193c67(_0x31656b))||_0x31656b);return _0x367b70&&_0x31656b&&qs(_0x85c71a,_0x98c4d7,_0x31656b),_0x31656b;},kt=(_0x4db9e4,_0x3b947b)=>(_0x1e429e,_0x40d2ca)=>_0x3b947b(_0x1e429e,_0x40d2ca,_0x4db9e4);const Js=_0x2683e6(0x2d7),Zs=_0x2683e6(0x532);let Ve=class extends a[_0x2683e6(0x3cc)]{constructor(_0x48d83a,_0x106136){const _0x1eea49=_0x2683e6;super(),this[_0x1eea49(0x45b)]=_0x48d83a,this['_configService']=_0x106136,this[_0x1eea49(0x4ea)]();}[_0x2683e6(0x4ea)](){const _0x58db44=_0x2683e6;this[_0x58db44(0x427)](this[_0x58db44(0x45b)][_0x58db44(0x5dd)][_0x58db44(0x44d)](()=>{const _0x24f977=_0x58db44;var _0x595189;const _0x465e9d=this[_0x24f977(0x45b)][_0x24f977(0x452)]();let _0x4e223a=(_0x595189=this['_configService']['getConfig'](Js))!=null?_0x595189:Zs;_0x465e9d instanceof a[_0x24f977(0x2ad)]&&(_0x4e223a=_0x465e9d[_0x24f977(0x231)]),document[_0x24f977(0x319)]=_0x4e223a;}));}};Ve=Xs([kt(0x0,a[_0x2683e6(0x468)]),kt(0x1,a['IConfigService'])],Ve);var Qs=Object[_0x2683e6(0x1e7)],er=Object[_0x2683e6(0x181)],tr=(_0x4d5f70,_0x1d8c6f,_0xb5b511,_0x55d92f)=>{for(var _0x532b88=_0x55d92f>0x1?void 0x0:_0x55d92f?er(_0x1d8c6f,_0xb5b511):_0x1d8c6f,_0xc8e3d2=_0x4d5f70['length']-0x1,_0x4e147d;_0xc8e3d2>=0x0;_0xc8e3d2--)(_0x4e147d=_0x4d5f70[_0xc8e3d2])&&(_0x532b88=(_0x55d92f?_0x4e147d(_0x1d8c6f,_0xb5b511,_0x532b88):_0x4e147d(_0x532b88))||_0x532b88);return _0x55d92f&&_0x532b88&&Qs(_0x1d8c6f,_0xb5b511,_0x532b88),_0x532b88;},at=(_0x3fb467,_0x15c9eb)=>(_0x5d857d,_0x2eb63c)=>_0x15c9eb(_0x5d857d,_0x2eb63c,_0x3fb467);let Ge=class{constructor(_0x26728b,_0x13896,_0x456144){const _0x59abd7=_0x2683e6;this[_0x59abd7(0x3d1)]=_0x26728b,this[_0x59abd7(0x3fb)]=_0x13896,this[_0x59abd7(0x59c)]=_0x456144,this[_0x59abd7(0x25b)]();}[_0x2683e6(0x25b)](){const _0x5480fa=_0x2683e6;this[_0x5480fa(0x3fb)][_0x5480fa(0x5e8)]({'priority':0x1,'interceptor':(_0xeff59d,_0x46cc0c)=>_0x46cc0c(_0xeff59d)[_0x5480fa(0x36b)](A[_0x5480fa(0x255)](async _0x5ad0d7=>{const _0x4abe8f=_0x5480fa,_0x313a58=_0x5ad0d7;if(_0x313a58[_0x4abe8f(0x47e)]===0x191&&window[_0x4abe8f(0x35a)](this['localeService']['t'](_0x4abe8f(0x2c1)))){const _0x278785=window[_0x4abe8f(0x50c)](window[_0x4abe8f(0x286)][_0x4abe8f(0x56a)]);window[_0x4abe8f(0x286)]['href']=this[_0x4abe8f(0x2ee)]()+_0x4abe8f(0x393)+_0x278785;}return _0x313a58;}))});}[_0x2683e6(0x2ee)](){const _0x4d2b7b=_0x2683e6;var _0x336948,_0xb052aa;const _0xad4247=this[_0x4d2b7b(0x3d1)][_0x4d2b7b(0x496)](an),_0x3491bf=this[_0x4d2b7b(0x3d1)][_0x4d2b7b(0x496)](te);return(_0xb052aa=(_0x336948=_0x3491bf==null?void 0x0:_0x3491bf[_0x4d2b7b(0x52b)])!=null?_0x336948:_0xad4247)!=null?_0xb052aa:qn;}};Ge=tr([at(0x0,a[_0x2683e6(0x58f)]),at(0x1,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),at(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)]))],Ge);var nr=Object['defineProperty'],ir=Object[_0x2683e6(0x181)],sr=(_0x227066,_0x35c3c2,_0x1ff946,_0x677b04)=>{const _0x5c01cc=_0x2683e6;for(var _0x1a804b=_0x677b04>0x1?void 0x0:_0x677b04?ir(_0x35c3c2,_0x1ff946):_0x35c3c2,_0x13019b=_0x227066[_0x5c01cc(0x29a)]-0x1,_0x3421fc;_0x13019b>=0x0;_0x13019b--)(_0x3421fc=_0x227066[_0x13019b])&&(_0x1a804b=(_0x677b04?_0x3421fc(_0x35c3c2,_0x1ff946,_0x1a804b):_0x3421fc(_0x1a804b))||_0x1a804b);return _0x677b04&&_0x1a804b&&nr(_0x35c3c2,_0x1ff946,_0x1a804b),_0x1a804b;},Wt=(_0x2a06dc,_0x304237)=>(_0x5203c7,_0x2de8c6)=>_0x304237(_0x5203c7,_0x2de8c6,_0x2a06dc);const Rn='AUTHZ_URL_KEY',rr=_0x2683e6(0x55f);exports[_0x2683e6(0x14f)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x16ed80,_0x12a07a){const _0x365129=_0x2683e6;super(),this[_0x365129(0x33c)]=_0x16ed80,this[_0x365129(0x3d1)]=_0x12a07a,this[_0x365129(0x518)]();}[_0x2683e6(0x518)](){const _0x206c91=_0x2683e6,_0x4d7e50=this;this[_0x206c91(0x427)](this[_0x206c91(0x33c)][_0x206c91(0x5e8)]({'priority':0x3e7,'interceptor':Z[_0x206c91(0x596)]({'isMatch'(_0x10e8c0){const _0x2e9163=_0x206c91;var _0x4065b6;if(_0x10e8c0[_0x2e9163(0x4c3)]==='POST'&&((_0x4065b6=_0x10e8c0[_0x2e9163(0x2b7)])!=null&&_0x4065b6[_0x2e9163(0x2a7)])){const {objectID:_0x2ec493,objectType:_0x540dcf}=_0x10e8c0['requestParams']['body']||{};if(!_0x2ec493||_0x540dcf===void 0x0)return!0x1;const _0x4f59f2=_0x4d7e50[_0x2e9163(0x18c)]()+'/'+_0x540dcf+_0x2e9163(0x203)+_0x2ec493+_0x2e9163(0x5e1);if(_0x10e8c0[_0x2e9163(0x170)]===_0x4f59f2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xac8725){const _0x3d379a=_0x206c91;var _0x797863;return(_0x797863=_0xac8725['requestParams'])==null?void 0x0:_0x797863[_0x3d379a(0x2a7)];},'mergeParamsToRequest'(_0x1e220a,_0x1abffa){const _0x589101=_0x206c91,_0x3acc4e=_0x4d7e50['_getAPIPrefixPath']()+_0x589101(0x4d9),_0x2fdb6f=_0x1e220a[_0x589101(0x49a)]((_0x405b17,_0x453669)=>{const _0x3a9b8a=_0x589101,{unitID:_0x43ced4,objectID:_0x3d0197,objectType:_0x190cef,actions:_0x33ed76}=_0x453669;return _0x405b17[_0x43ced4]||(_0x405b17[_0x43ced4]={}),_0x405b17[_0x43ced4][_0x3d0197]||(_0x405b17[_0x43ced4][_0x3d0197]={'objectID':_0x3d0197,'objectType':_0x190cef,'actions':[]}),_0x405b17[_0x43ced4][_0x3d0197][_0x3a9b8a(0x2ab)][_0x3a9b8a(0x17e)](..._0x33ed76),_0x405b17;},{}),_0x1e9f9c=[];for(const _0x7f8f21 in _0x2fdb6f)for(const _0x4e12d7 in _0x2fdb6f[_0x7f8f21]){const {actions:_0x5c437d,objectType:_0x3aabe6}=_0x2fdb6f[_0x7f8f21][_0x4e12d7],_0xff3eb6=[...new Set(_0x5c437d)];_0x1e9f9c[_0x589101(0x17e)]({'unitID':_0x7f8f21,'objectID':_0x4e12d7,'objectType':_0x3aabe6,'actions':_0xff3eb6});}return new Z['HTTPRequest']('POST',_0x3acc4e,{'headers':_0x1abffa['headers'],'withCredentials':_0x1abffa[_0x589101(0x457)],'responseType':_0x1abffa['responseType'],'body':{'requests':_0x1e9f9c}});}},{'distributeResult'(_0x8fdb87,_0x5d4e2b){const _0x14d552=_0x206c91,{objectActions:_0x1c55ec}=_0x8fdb87;return _0x5d4e2b[_0x14d552(0x538)](_0xe20b62=>{const _0x2ac0ec=_0x14d552,{unitID:_0x2cbb92,objectID:_0x4ab3f1,actions:_0x2a72a6}=_0xe20b62,_0x193dde=_0x1c55ec[_0x2ac0ec(0x250)](_0x3336d7=>_0x3336d7[_0x2ac0ec(0x4a9)]===_0x2cbb92&&_0x3336d7['objectID']===_0x4ab3f1),_0xdb849b=_0x2a72a6['map'](_0x3a373f=>_0x193dde==null?void 0x0:_0x193dde[_0x2ac0ec(0x2ab)][_0x2ac0ec(0x250)](_0x20a80c=>_0x20a80c[_0x2ac0ec(0x529)]===_0x3a373f))[_0x2ac0ec(0x57f)](_0x3751ac=>!!_0x3751ac);return{'config':_0xe20b62,'result':{'actions':_0xdb849b,'error':_0x8fdb87[_0x2ac0ec(0x461)]}};});}})}));}[_0x2683e6(0x18c)](){const _0x12f63d=_0x2683e6;var _0x5b8c44,_0x3d6377;const _0xb6c961=this['_configService'][_0x12f63d(0x496)](Rn),_0x4bbe2d=this[_0x12f63d(0x3d1)][_0x12f63d(0x496)](te);return(_0x3d6377=(_0x5b8c44=_0x4bbe2d==null?void 0x0:_0x4bbe2d[_0x12f63d(0x4ba)])!=null?_0x5b8c44:_0xb6c961)!=null?_0x3d6377:rr;}async['create'](_0x344be4){const _0x43e2ae=_0x2683e6,_0x8c5dc9=this[_0x43e2ae(0x18c)]()+'/'+_0x344be4[_0x43e2ae(0x1f8)]+'/object';return(await this[_0x43e2ae(0x33c)][_0x43e2ae(0x551)](_0x8c5dc9,{'body':_0x344be4}))[_0x43e2ae(0x2a7)]['objectID']||'';}async['list'](_0x95882c){const _0x6fb1db=_0x2683e6,_0x3d305c=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x6fb1db(0x33c)][_0x6fb1db(0x551)](_0x3d305c,{'body':_0x95882c}))[_0x6fb1db(0x2a7)][_0x6fb1db(0x35e)];}async['update'](_0xcc866f){const _0x38dc77=_0x2683e6,_0x332afa=this[_0x38dc77(0x18c)]()+'/'+_0xcc866f['objectType']+_0x38dc77(0x203)+_0xcc866f[_0x38dc77(0x50f)];await this[_0x38dc77(0x33c)][_0x38dc77(0x44b)](_0x332afa,{'body':_0xcc866f});}async[_0x2683e6(0x331)](_0x268050){const _0x49e3f0=_0x2683e6,_0x3f6b62=this[_0x49e3f0(0x18c)]()+'/'+_0x268050['objectType']+'/object/'+_0x268050[_0x49e3f0(0x50f)]+_0x49e3f0(0x5e1);return(await this[_0x49e3f0(0x33c)][_0x49e3f0(0x551)](_0x3f6b62,{'body':_0x268050}))[_0x49e3f0(0x2a7)][_0x49e3f0(0x2ab)];}async['batchAllowed'](_0x4dbdd4){const _0x4843a4=_0x2683e6,_0x44a2be=this[_0x4843a4(0x18c)]()+'/-/object/-/batch_allowed';return(await this[_0x4843a4(0x33c)][_0x4843a4(0x551)](_0x44a2be,{'body':{'requests':_0x4dbdd4}}))[_0x4843a4(0x2a7)][_0x4843a4(0x2eb)];}async['listRoles'](_0x121d71){const _0x38b45c=_0x2683e6,_0x7e7f3d=this[_0x38b45c(0x18c)]()+'/'+_0x121d71[_0x38b45c(0x1f8)]+'/role',_0x344323=await this[_0x38b45c(0x33c)][_0x38b45c(0x551)](_0x7e7f3d,{'body':_0x121d71});return{'roles':_0x344323[_0x38b45c(0x2a7)][_0x38b45c(0x38e)],'actions':_0x344323[_0x38b45c(0x2a7)][_0x38b45c(0x2ab)]};}async[_0x2683e6(0x23a)](_0x23fbed){const _0x58fb36=_0x2683e6,_0x3aa965=this['_getAPIPrefixPath']()+_0x58fb36(0x4ac);await this['_HTTPService'][_0x58fb36(0x27e)](_0x3aa965,{'params':{'collaboratorID':_0x23fbed['collaboratorID'],'objectID':_0x23fbed[_0x58fb36(0x50f)],'unitID':_0x23fbed[_0x58fb36(0x4a9)]}});}async['updateCollaborator'](_0x57e4d0){const _0x4341df=_0x2683e6,_0x39fd8a=this[_0x4341df(0x18c)]()+_0x4341df(0x4ac);await this[_0x4341df(0x33c)][_0x4341df(0x210)](_0x39fd8a,{'body':_0x57e4d0});}async[_0x2683e6(0x4e8)](_0xb46b3d){const _0x559be9=_0x2683e6,_0x2ef252=this['_getAPIPrefixPath']()+_0x559be9(0x4ac);await this[_0x559be9(0x33c)][_0x559be9(0x551)](_0x2ef252,{'body':_0xb46b3d});}async['listCollaborators'](_0x937d35){const _0x443aaa=_0x2683e6,_0x1c3d46=this[_0x443aaa(0x18c)]()+'/collaborator';return(await this[_0x443aaa(0x33c)]['get'](_0x1c3d46,{'params':{'objectID':_0x937d35[_0x443aaa(0x50f)],'unitID':_0x937d35['unitID']}}))['body'][_0x443aaa(0x1eb)];}async[_0x2683e6(0x150)](_0x287b35){const _0x27b861=_0x2683e6,_0x3715e8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x27b861(0x33c)][_0x27b861(0x44b)](_0x3715e8,{'body':_0x287b35});}},exports[_0x2683e6(0x14f)]=sr([Wt(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),Wt(0x1,a['Inject'](a[_0x2683e6(0x58f)]))],exports[_0x2683e6(0x14f)]);var yn={'exports':{}};function or(_0x578452){const _0x1710d9=_0x2683e6;throw new Error(_0x1710d9(0x5d3)+_0x578452+_0x1710d9(0x172));}var ct={'exports':{}},Ft;function oe(){const _0x231ea=_0x2683e6;return Ft||(Ft=0x1,function(_0x2cb48e,_0x3cf060){(function(_0xe54c10,_0x3a57db){const _0x25554a=_0x479a;_0x2cb48e[_0x25554a(0x436)]=_0x3a57db();}(X,function(){var _0x52c774=_0x52c774||function(_0x57b94a,_0x1da324){const _0x32be86=_0x479a;var _0xe9df64;if(typeof window<'u'&&window[_0x32be86(0x2f8)]&&(_0xe9df64=window[_0x32be86(0x2f8)]),typeof self<'u'&&self['crypto']&&(_0xe9df64=self[_0x32be86(0x2f8)]),typeof globalThis<'u'&&globalThis[_0x32be86(0x2f8)]&&(_0xe9df64=globalThis[_0x32be86(0x2f8)]),!_0xe9df64&&typeof window<'u'&&window[_0x32be86(0x559)]&&(_0xe9df64=window[_0x32be86(0x559)]),!_0xe9df64&&typeof X<'u'&&X[_0x32be86(0x2f8)]&&(_0xe9df64=X[_0x32be86(0x2f8)]),!_0xe9df64&&typeof or=='function')try{_0xe9df64=require('crypto');}catch{}var _0x494875=function(){const _0x3f0f75=_0x32be86;if(_0xe9df64){if(typeof _0xe9df64['getRandomValues']==_0x3f0f75(0x1c9))try{return _0xe9df64['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe9df64[_0x3f0f75(0x58a)]==_0x3f0f75(0x1c9))try{return _0xe9df64[_0x3f0f75(0x58a)](0x4)[_0x3f0f75(0x5d0)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x314c35=Object[_0x32be86(0x314)]||(function(){function _0x4928bd(){}return function(_0x4ec6ca){const _0x5ea5c6=_0x479a;var _0x3cfdfc;return _0x4928bd[_0x5ea5c6(0x2f3)]=_0x4ec6ca,_0x3cfdfc=new _0x4928bd(),_0x4928bd[_0x5ea5c6(0x2f3)]=null,_0x3cfdfc;};}()),_0x12f7d5={},_0x59dc96=_0x12f7d5['lib']={},_0x3b5bc9=_0x59dc96['Base']=(function(){return{'extend':function(_0x8b820a){const _0x37c7d4=_0x479a;var _0x5f2d83=_0x314c35(this);return _0x8b820a&&_0x5f2d83[_0x37c7d4(0x26c)](_0x8b820a),(!_0x5f2d83[_0x37c7d4(0x405)]('init')||this[_0x37c7d4(0x25b)]===_0x5f2d83[_0x37c7d4(0x25b)])&&(_0x5f2d83[_0x37c7d4(0x25b)]=function(){const _0x2f1f93=_0x37c7d4;_0x5f2d83['$super']['init'][_0x2f1f93(0x4c4)](this,arguments);}),_0x5f2d83[_0x37c7d4(0x25b)][_0x37c7d4(0x2f3)]=_0x5f2d83,_0x5f2d83['$super']=this,_0x5f2d83;},'create':function(){const _0x28df1f=_0x479a;var _0x52fb58=this[_0x28df1f(0x5c9)]();return _0x52fb58[_0x28df1f(0x25b)][_0x28df1f(0x4c4)](_0x52fb58,arguments),_0x52fb58;},'init':function(){},'mixIn':function(_0x54e93f){const _0x3058a9=_0x479a;for(var _0x1c8bc3 in _0x54e93f)_0x54e93f['hasOwnProperty'](_0x1c8bc3)&&(this[_0x1c8bc3]=_0x54e93f[_0x1c8bc3]);_0x54e93f[_0x3058a9(0x405)](_0x3058a9(0x155))&&(this[_0x3058a9(0x155)]=_0x54e93f[_0x3058a9(0x155)]);},'clone':function(){const _0x589313=_0x479a;return this['init'][_0x589313(0x2f3)]['extend'](this);}};}()),_0x2191f0=_0x59dc96[_0x32be86(0x53b)]=_0x3b5bc9[_0x32be86(0x5c9)]({'init':function(_0x533b96,_0x44b7f9){const _0x3e673b=_0x32be86;_0x533b96=this[_0x3e673b(0x5a7)]=_0x533b96||[],_0x44b7f9!=_0x1da324?this[_0x3e673b(0x164)]=_0x44b7f9:this['sigBytes']=_0x533b96[_0x3e673b(0x29a)]*0x4;},'toString':function(_0x668ce3){const _0x17c2c7=_0x32be86;return(_0x668ce3||_0x3b325b)[_0x17c2c7(0x40e)](this);},'concat':function(_0x4ac70d){const _0x132585=_0x32be86;var _0x216e0c=this[_0x132585(0x5a7)],_0x348449=_0x4ac70d[_0x132585(0x5a7)],_0x99ee56=this[_0x132585(0x164)],_0x2ccee6=_0x4ac70d['sigBytes'];if(this[_0x132585(0x4dc)](),_0x99ee56%0x4)for(var _0x19cc5e=0x0;_0x19cc5e<_0x2ccee6;_0x19cc5e++){var _0x2861f0=_0x348449[_0x19cc5e>>>0x2]>>>0x18-_0x19cc5e%0x4*0x8&0xff;_0x216e0c[_0x99ee56+_0x19cc5e>>>0x2]|=_0x2861f0<<0x18-(_0x99ee56+_0x19cc5e)%0x4*0x8;}else{for(var _0x17d1a3=0x0;_0x17d1a3<_0x2ccee6;_0x17d1a3+=0x4)_0x216e0c[_0x99ee56+_0x17d1a3>>>0x2]=_0x348449[_0x17d1a3>>>0x2];}return this[_0x132585(0x164)]+=_0x2ccee6,this;},'clamp':function(){const _0x15fcae=_0x32be86;var _0x18f8a4=this[_0x15fcae(0x5a7)],_0x5d5788=this[_0x15fcae(0x164)];_0x18f8a4[_0x5d5788>>>0x2]&=0xffffffff<<0x20-_0x5d5788%0x4*0x8,_0x18f8a4['length']=_0x57b94a['ceil'](_0x5d5788/0x4);},'clone':function(){const _0x4bbd2a=_0x32be86;var _0x4e370=_0x3b5bc9[_0x4bbd2a(0x179)][_0x4bbd2a(0x54a)](this);return _0x4e370[_0x4bbd2a(0x5a7)]=this[_0x4bbd2a(0x5a7)][_0x4bbd2a(0x237)](0x0),_0x4e370;},'random':function(_0x4f6815){const _0x48d34c=_0x32be86;for(var _0xc24d80=[],_0x1e4ce6=0x0;_0x1e4ce6<_0x4f6815;_0x1e4ce6+=0x4)_0xc24d80[_0x48d34c(0x17e)](_0x494875());return new _0x2191f0[(_0x48d34c(0x25b))](_0xc24d80,_0x4f6815);}}),_0x46c780=_0x12f7d5[_0x32be86(0x593)]={},_0x3b325b=_0x46c780[_0x32be86(0x151)]={'stringify':function(_0x469231){const _0x53206e=_0x32be86;for(var _0x17d309=_0x469231[_0x53206e(0x5a7)],_0x2ff19b=_0x469231[_0x53206e(0x164)],_0x2ebfc4=[],_0x22ac7d=0x0;_0x22ac7d<_0x2ff19b;_0x22ac7d++){var _0x43f8c4=_0x17d309[_0x22ac7d>>>0x2]>>>0x18-_0x22ac7d%0x4*0x8&0xff;_0x2ebfc4[_0x53206e(0x17e)]((_0x43f8c4>>>0x4)[_0x53206e(0x155)](0x10)),_0x2ebfc4[_0x53206e(0x17e)]((_0x43f8c4&0xf)['toString'](0x10));}return _0x2ebfc4['join']('');},'parse':function(_0x304b1d){const _0x35b226=_0x32be86;for(var _0x411717=_0x304b1d['length'],_0x502934=[],_0x5893ea=0x0;_0x5893ea<_0x411717;_0x5893ea+=0x2)_0x502934[_0x5893ea>>>0x3]|=parseInt(_0x304b1d[_0x35b226(0x2ed)](_0x5893ea,0x2),0x10)<<0x18-_0x5893ea%0x8*0x4;return new _0x2191f0[(_0x35b226(0x25b))](_0x502934,_0x411717/0x2);}},_0x5205b3=_0x46c780[_0x32be86(0x2a5)]={'stringify':function(_0x2b76d2){const _0x48bd61=_0x32be86;for(var _0xdab156=_0x2b76d2[_0x48bd61(0x5a7)],_0x32b332=_0x2b76d2['sigBytes'],_0xbc5882=[],_0x7873d6=0x0;_0x7873d6<_0x32b332;_0x7873d6++){var _0x578bc5=_0xdab156[_0x7873d6>>>0x2]>>>0x18-_0x7873d6%0x4*0x8&0xff;_0xbc5882[_0x48bd61(0x17e)](String['fromCharCode'](_0x578bc5));}return _0xbc5882[_0x48bd61(0x585)]('');},'parse':function(_0x1dd8df){const _0x58fa52=_0x32be86;for(var _0x1e23d4=_0x1dd8df[_0x58fa52(0x29a)],_0x16bc9e=[],_0x2cde09=0x0;_0x2cde09<_0x1e23d4;_0x2cde09++)_0x16bc9e[_0x2cde09>>>0x2]|=(_0x1dd8df[_0x58fa52(0x40a)](_0x2cde09)&0xff)<<0x18-_0x2cde09%0x4*0x8;return new _0x2191f0[(_0x58fa52(0x25b))](_0x16bc9e,_0x1e23d4);}},_0x5305d4=_0x46c780[_0x32be86(0x5ef)]={'stringify':function(_0x438b96){const _0x49d766=_0x32be86;try{return decodeURIComponent(escape(_0x5205b3[_0x49d766(0x40e)](_0x438b96)));}catch{throw new Error(_0x49d766(0x4a4));}},'parse':function(_0x5dd3d6){const _0x42caf0=_0x32be86;return _0x5205b3[_0x42caf0(0x18e)](unescape(encodeURIComponent(_0x5dd3d6)));}},_0x373dcf=_0x59dc96[_0x32be86(0x5b4)]=_0x3b5bc9[_0x32be86(0x5c9)]({'reset':function(){const _0x553328=_0x32be86;this[_0x553328(0x57c)]=new _0x2191f0[(_0x553328(0x25b))](),this[_0x553328(0x589)]=0x0;},'_append':function(_0x52781b){const _0x2b67f8=_0x32be86;typeof _0x52781b==_0x2b67f8(0x516)&&(_0x52781b=_0x5305d4[_0x2b67f8(0x18e)](_0x52781b)),this[_0x2b67f8(0x57c)][_0x2b67f8(0x33e)](_0x52781b),this[_0x2b67f8(0x589)]+=_0x52781b['sigBytes'];},'_process':function(_0x429265){const _0x3789bb=_0x32be86;var _0x1ff729,_0x350159=this[_0x3789bb(0x57c)],_0x35248a=_0x350159[_0x3789bb(0x5a7)],_0x1b650b=_0x350159[_0x3789bb(0x164)],_0x2f13b6=this['blockSize'],_0x2c1669=_0x2f13b6*0x4,_0x226f19=_0x1b650b/_0x2c1669;_0x429265?_0x226f19=_0x57b94a[_0x3789bb(0x3f0)](_0x226f19):_0x226f19=_0x57b94a[_0x3789bb(0x1a1)]((_0x226f19|0x0)-this['_minBufferSize'],0x0);var _0x31b8b2=_0x226f19*_0x2f13b6,_0x5740eb=_0x57b94a[_0x3789bb(0x211)](_0x31b8b2*0x4,_0x1b650b);if(_0x31b8b2){for(var _0x5f11ce=0x0;_0x5f11ce<_0x31b8b2;_0x5f11ce+=_0x2f13b6)this[_0x3789bb(0x40d)](_0x35248a,_0x5f11ce);_0x1ff729=_0x35248a[_0x3789bb(0x4cd)](0x0,_0x31b8b2),_0x350159[_0x3789bb(0x164)]-=_0x5740eb;}return new _0x2191f0[(_0x3789bb(0x25b))](_0x1ff729,_0x5740eb);},'clone':function(){const _0x6e3ff3=_0x32be86;var _0x568405=_0x3b5bc9['clone'][_0x6e3ff3(0x54a)](this);return _0x568405[_0x6e3ff3(0x57c)]=this[_0x6e3ff3(0x57c)][_0x6e3ff3(0x179)](),_0x568405;},'_minBufferSize':0x0});_0x59dc96[_0x32be86(0x28d)]=_0x373dcf[_0x32be86(0x5c9)]({'cfg':_0x3b5bc9[_0x32be86(0x5c9)](),'init':function(_0x493e74){const _0x24e891=_0x32be86;this[_0x24e891(0x3b8)]=this['cfg']['extend'](_0x493e74),this[_0x24e891(0x1fe)]();},'reset':function(){const _0x124f58=_0x32be86;_0x373dcf['reset'][_0x124f58(0x54a)](this),this[_0x124f58(0x34c)]();},'update':function(_0x9394c2){const _0x2bcfbe=_0x32be86;return this[_0x2bcfbe(0x1a0)](_0x9394c2),this[_0x2bcfbe(0x1dc)](),this;},'finalize':function(_0x395e59){const _0x83000e=_0x32be86;_0x395e59&&this[_0x83000e(0x1a0)](_0x395e59);var _0x176b7f=this['_doFinalize']();return _0x176b7f;},'blockSize':0x10,'_createHelper':function(_0x3449ac){return function(_0xdf4c74,_0x29289a){const _0x3bbe18=_0x479a;return new _0x3449ac['init'](_0x29289a)[_0x3bbe18(0x257)](_0xdf4c74);};},'_createHmacHelper':function(_0x466f0c){return function(_0x410d35,_0x16ccd4){const _0x1b374d=_0x479a;return new _0x248868[(_0x1b374d(0x472))][(_0x1b374d(0x25b))](_0x466f0c,_0x16ccd4)['finalize'](_0x410d35);};}});var _0x248868=_0x12f7d5[_0x32be86(0x526)]={};return _0x12f7d5;}(Math);return _0x52c774;}));}(ct)),ct[_0x231ea(0x436)];}var lt={'exports':{}},Vt;function On(){const _0x4a9ed6=_0x2683e6;return Vt||(Vt=0x1,function(_0x3b9331,_0x110686){(function(_0x57e7d5,_0x579a0c){_0x3b9331['exports']=_0x579a0c(oe());}(X,function(_0x29a185){const _0x324214=_0x479a;return(function(){const _0x2a2698=_0x479a;var _0x7e83ea=_0x29a185,_0xcad5ef=_0x7e83ea['lib'],_0x3ccf2f=_0xcad5ef[_0x2a2698(0x53b)],_0x4ffa3b=_0x7e83ea[_0x2a2698(0x593)];_0x4ffa3b['Base64']={'stringify':function(_0x387163){const _0x6dcc11=_0x2a2698;var _0x118498=_0x387163['words'],_0x263a39=_0x387163['sigBytes'],_0x1ea65b=this[_0x6dcc11(0x296)];_0x387163[_0x6dcc11(0x4dc)]();for(var _0xf328c7=[],_0x4e8d3a=0x0;_0x4e8d3a<_0x263a39;_0x4e8d3a+=0x3)for(var _0x28851b=_0x118498[_0x4e8d3a>>>0x2]>>>0x18-_0x4e8d3a%0x4*0x8&0xff,_0x3dcfbe=_0x118498[_0x4e8d3a+0x1>>>0x2]>>>0x18-(_0x4e8d3a+0x1)%0x4*0x8&0xff,_0x32acc0=_0x118498[_0x4e8d3a+0x2>>>0x2]>>>0x18-(_0x4e8d3a+0x2)%0x4*0x8&0xff,_0x36f0a3=_0x28851b<<0x10|_0x3dcfbe<<0x8|_0x32acc0,_0x342f64=0x0;_0x342f64<0x4&&_0x4e8d3a+_0x342f64*0.75<_0x263a39;_0x342f64++)_0xf328c7[_0x6dcc11(0x17e)](_0x1ea65b['charAt'](_0x36f0a3>>>0x6*(0x3-_0x342f64)&0x3f));var _0x52f220=_0x1ea65b[_0x6dcc11(0x4fe)](0x40);if(_0x52f220){for(;_0xf328c7[_0x6dcc11(0x29a)]%0x4;)_0xf328c7[_0x6dcc11(0x17e)](_0x52f220);}return _0xf328c7[_0x6dcc11(0x585)]('');},'parse':function(_0x20f14c){const _0x5c1e74=_0x2a2698;var _0x307305=_0x20f14c[_0x5c1e74(0x29a)],_0x10c5f5=this[_0x5c1e74(0x296)],_0x52c14d=this['_reverseMap'];if(!_0x52c14d){_0x52c14d=this[_0x5c1e74(0x180)]=[];for(var _0x94997c=0x0;_0x94997c<_0x10c5f5[_0x5c1e74(0x29a)];_0x94997c++)_0x52c14d[_0x10c5f5['charCodeAt'](_0x94997c)]=_0x94997c;}var _0x6e6574=_0x10c5f5[_0x5c1e74(0x4fe)](0x40);if(_0x6e6574){var _0x3676ba=_0x20f14c[_0x5c1e74(0x404)](_0x6e6574);_0x3676ba!==-0x1&&(_0x307305=_0x3676ba);}return _0x29db1f(_0x20f14c,_0x307305,_0x52c14d);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x29db1f(_0x284d90,_0x46c86f,_0x526dbf){const _0x22c0af=_0x2a2698;for(var _0x2a833c=[],_0x36efd9=0x0,_0x1d9d76=0x0;_0x1d9d76<_0x46c86f;_0x1d9d76++)if(_0x1d9d76%0x4){var _0x1f99e6=_0x526dbf[_0x284d90[_0x22c0af(0x40a)](_0x1d9d76-0x1)]<<_0x1d9d76%0x4*0x2,_0x295bc8=_0x526dbf[_0x284d90['charCodeAt'](_0x1d9d76)]>>>0x6-_0x1d9d76%0x4*0x2,_0x1ad03b=_0x1f99e6|_0x295bc8;_0x2a833c[_0x36efd9>>>0x2]|=_0x1ad03b<<0x18-_0x36efd9%0x4*0x8,_0x36efd9++;}return _0x3ccf2f[_0x22c0af(0x314)](_0x2a833c,_0x36efd9);}}()),_0x29a185[_0x324214(0x593)][_0x324214(0x2e3)];}));}(lt)),lt[_0x4a9ed6(0x436)];}var ht={'exports':{}},Gt;function ar(){return Gt||(Gt=0x1,function(_0x4900a0,_0x1808bc){(function(_0x1f3ad0,_0x2a21e8){_0x4900a0['exports']=_0x2a21e8(oe());}(X,function(_0x6d252a){const _0x21fbb5=_0x479a;return function(_0x4627f4){const _0x42afb6=_0x479a;var _0x55e959=_0x6d252a,_0x45999f=_0x55e959[_0x42afb6(0x5db)],_0xedc35=_0x45999f[_0x42afb6(0x53b)],_0x550fca=_0x45999f[_0x42afb6(0x28d)],_0x333beb=_0x55e959['algo'],_0x56e37c=[];(function(){const _0x277a73=_0x42afb6;for(var _0x1738c5=0x0;_0x1738c5<0x40;_0x1738c5++)_0x56e37c[_0x1738c5]=_0x4627f4[_0x277a73(0x394)](_0x4627f4['sin'](_0x1738c5+0x1))*0x100000000|0x0;}());var _0x4cfe91=_0x333beb[_0x42afb6(0x1a2)]=_0x550fca[_0x42afb6(0x5c9)]({'_doReset':function(){const _0x4302a6=_0x42afb6;this[_0x4302a6(0x2a0)]=new _0xedc35[(_0x4302a6(0x25b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x11d9c8,_0x2b12df){const _0xaa7565=_0x42afb6;for(var _0x38709a=0x0;_0x38709a<0x10;_0x38709a++){var _0x2281ad=_0x2b12df+_0x38709a,_0x23ab02=_0x11d9c8[_0x2281ad];_0x11d9c8[_0x2281ad]=(_0x23ab02<<0x8|_0x23ab02>>>0x18)&0xff00ff|(_0x23ab02<<0x18|_0x23ab02>>>0x8)&0xff00ff00;}var _0x14cbe9=this[_0xaa7565(0x2a0)]['words'],_0x38f7cf=_0x11d9c8[_0x2b12df+0x0],_0x39c779=_0x11d9c8[_0x2b12df+0x1],_0x2b258b=_0x11d9c8[_0x2b12df+0x2],_0x306568=_0x11d9c8[_0x2b12df+0x3],_0x37ead5=_0x11d9c8[_0x2b12df+0x4],_0x29d98d=_0x11d9c8[_0x2b12df+0x5],_0x23d857=_0x11d9c8[_0x2b12df+0x6],_0xe574f5=_0x11d9c8[_0x2b12df+0x7],_0x176fb7=_0x11d9c8[_0x2b12df+0x8],_0xa80a18=_0x11d9c8[_0x2b12df+0x9],_0x5c8c03=_0x11d9c8[_0x2b12df+0xa],_0x7875d=_0x11d9c8[_0x2b12df+0xb],_0x275278=_0x11d9c8[_0x2b12df+0xc],_0x597472=_0x11d9c8[_0x2b12df+0xd],_0x427913=_0x11d9c8[_0x2b12df+0xe],_0x1dcdeb=_0x11d9c8[_0x2b12df+0xf],_0x5af455=_0x14cbe9[0x0],_0x5caca5=_0x14cbe9[0x1],_0x5b0daf=_0x14cbe9[0x2],_0x542893=_0x14cbe9[0x3];_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x38f7cf,0x7,_0x56e37c[0x0]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x39c779,0xc,_0x56e37c[0x1]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x2b258b,0x11,_0x56e37c[0x2]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x306568,0x16,_0x56e37c[0x3]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x37ead5,0x7,_0x56e37c[0x4]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x29d98d,0xc,_0x56e37c[0x5]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x23d857,0x11,_0x56e37c[0x6]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0xe574f5,0x16,_0x56e37c[0x7]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x176fb7,0x7,_0x56e37c[0x8]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0xa80a18,0xc,_0x56e37c[0x9]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x5c8c03,0x11,_0x56e37c[0xa]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x7875d,0x16,_0x56e37c[0xb]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x275278,0x7,_0x56e37c[0xc]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x597472,0xc,_0x56e37c[0xd]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x427913,0x11,_0x56e37c[0xe]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x1dcdeb,0x16,_0x56e37c[0xf]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x39c779,0x5,_0x56e37c[0x10]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x23d857,0x9,_0x56e37c[0x11]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x7875d,0xe,_0x56e37c[0x12]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x38f7cf,0x14,_0x56e37c[0x13]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x29d98d,0x5,_0x56e37c[0x14]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x5c8c03,0x9,_0x56e37c[0x15]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x1dcdeb,0xe,_0x56e37c[0x16]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x37ead5,0x14,_0x56e37c[0x17]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0xa80a18,0x5,_0x56e37c[0x18]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x427913,0x9,_0x56e37c[0x19]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x306568,0xe,_0x56e37c[0x1a]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x176fb7,0x14,_0x56e37c[0x1b]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x597472,0x5,_0x56e37c[0x1c]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x2b258b,0x9,_0x56e37c[0x1d]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0xe574f5,0xe,_0x56e37c[0x1e]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x275278,0x14,_0x56e37c[0x1f]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x29d98d,0x4,_0x56e37c[0x20]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x176fb7,0xb,_0x56e37c[0x21]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x7875d,0x10,_0x56e37c[0x22]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x427913,0x17,_0x56e37c[0x23]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x39c779,0x4,_0x56e37c[0x24]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x37ead5,0xb,_0x56e37c[0x25]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0xe574f5,0x10,_0x56e37c[0x26]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x5c8c03,0x17,_0x56e37c[0x27]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x597472,0x4,_0x56e37c[0x28]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x38f7cf,0xb,_0x56e37c[0x29]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x306568,0x10,_0x56e37c[0x2a]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x23d857,0x17,_0x56e37c[0x2b]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0xa80a18,0x4,_0x56e37c[0x2c]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x275278,0xb,_0x56e37c[0x2d]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x1dcdeb,0x10,_0x56e37c[0x2e]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x2b258b,0x17,_0x56e37c[0x2f]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x38f7cf,0x6,_0x56e37c[0x30]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0xe574f5,0xa,_0x56e37c[0x31]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x427913,0xf,_0x56e37c[0x32]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x29d98d,0x15,_0x56e37c[0x33]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x275278,0x6,_0x56e37c[0x34]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x306568,0xa,_0x56e37c[0x35]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x5c8c03,0xf,_0x56e37c[0x36]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x39c779,0x15,_0x56e37c[0x37]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x176fb7,0x6,_0x56e37c[0x38]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x1dcdeb,0xa,_0x56e37c[0x39]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x23d857,0xf,_0x56e37c[0x3a]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x597472,0x15,_0x56e37c[0x3b]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x37ead5,0x6,_0x56e37c[0x3c]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x7875d,0xa,_0x56e37c[0x3d]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x2b258b,0xf,_0x56e37c[0x3e]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0xa80a18,0x15,_0x56e37c[0x3f]),_0x14cbe9[0x0]=_0x14cbe9[0x0]+_0x5af455|0x0,_0x14cbe9[0x1]=_0x14cbe9[0x1]+_0x5caca5|0x0,_0x14cbe9[0x2]=_0x14cbe9[0x2]+_0x5b0daf|0x0,_0x14cbe9[0x3]=_0x14cbe9[0x3]+_0x542893|0x0;},'_doFinalize':function(){const _0x3cc375=_0x42afb6;var _0x10d44a=this['_data'],_0x1e52e9=_0x10d44a[_0x3cc375(0x5a7)],_0x48e050=this[_0x3cc375(0x589)]*0x8,_0x3541f7=_0x10d44a[_0x3cc375(0x164)]*0x8;_0x1e52e9[_0x3541f7>>>0x5]|=0x80<<0x18-_0x3541f7%0x20;var _0x468c6b=_0x4627f4[_0x3cc375(0x2f0)](_0x48e050/0x100000000),_0x19605b=_0x48e050;_0x1e52e9[(_0x3541f7+0x40>>>0x9<<0x4)+0xf]=(_0x468c6b<<0x8|_0x468c6b>>>0x18)&0xff00ff|(_0x468c6b<<0x18|_0x468c6b>>>0x8)&0xff00ff00,_0x1e52e9[(_0x3541f7+0x40>>>0x9<<0x4)+0xe]=(_0x19605b<<0x8|_0x19605b>>>0x18)&0xff00ff|(_0x19605b<<0x18|_0x19605b>>>0x8)&0xff00ff00,_0x10d44a[_0x3cc375(0x164)]=(_0x1e52e9[_0x3cc375(0x29a)]+0x1)*0x4,this[_0x3cc375(0x1dc)]();for(var _0x1e9ae6=this[_0x3cc375(0x2a0)],_0x580e46=_0x1e9ae6[_0x3cc375(0x5a7)],_0x4903c5=0x0;_0x4903c5<0x4;_0x4903c5++){var _0x3319ca=_0x580e46[_0x4903c5];_0x580e46[_0x4903c5]=(_0x3319ca<<0x8|_0x3319ca>>>0x18)&0xff00ff|(_0x3319ca<<0x18|_0x3319ca>>>0x8)&0xff00ff00;}return _0x1e9ae6;},'clone':function(){const _0x18c931=_0x42afb6;var _0x2fa5f0=_0x550fca['clone']['call'](this);return _0x2fa5f0['_hash']=this[_0x18c931(0x2a0)]['clone'](),_0x2fa5f0;}});function _0x120380(_0x2bdf61,_0x544443,_0x4f92d7,_0x3ecc03,_0x7d5d42,_0x3a402d,_0x1ae915){var _0x1db3d7=_0x2bdf61+(_0x544443&_0x4f92d7|~_0x544443&_0x3ecc03)+_0x7d5d42+_0x1ae915;return(_0x1db3d7<<_0x3a402d|_0x1db3d7>>>0x20-_0x3a402d)+_0x544443;}function _0x2d5f25(_0x5cc645,_0x546e12,_0x538695,_0x573dcc,_0x5698a1,_0x43d668,_0x174cc4){var _0x448806=_0x5cc645+(_0x546e12&_0x573dcc|_0x538695&~_0x573dcc)+_0x5698a1+_0x174cc4;return(_0x448806<<_0x43d668|_0x448806>>>0x20-_0x43d668)+_0x546e12;}function _0x2e3175(_0x12075e,_0x4a468d,_0x25b7be,_0x4dea4a,_0x169ead,_0x14f6cd,_0x5e82bc){var _0x554348=_0x12075e+(_0x4a468d^_0x25b7be^_0x4dea4a)+_0x169ead+_0x5e82bc;return(_0x554348<<_0x14f6cd|_0x554348>>>0x20-_0x14f6cd)+_0x4a468d;}function _0x168f4d(_0x2aac1f,_0x9e0a97,_0x1ef268,_0x576f53,_0x159c62,_0x3b7230,_0x19d1c3){var _0x1f2fb5=_0x2aac1f+(_0x1ef268^(_0x9e0a97|~_0x576f53))+_0x159c62+_0x19d1c3;return(_0x1f2fb5<<_0x3b7230|_0x1f2fb5>>>0x20-_0x3b7230)+_0x9e0a97;}_0x55e959[_0x42afb6(0x1a2)]=_0x550fca[_0x42afb6(0x56d)](_0x4cfe91),_0x55e959[_0x42afb6(0x4e2)]=_0x550fca['_createHmacHelper'](_0x4cfe91);}(Math),_0x6d252a[_0x21fbb5(0x1a2)];}));}(ht)),ht['exports'];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x4ecf57=_0x2683e6;return Yt||(Yt=0x1,function(_0x7f9c8b,_0x431361){(function(_0x40a781,_0xdd202a){const _0x26a25a=_0x479a;_0x7f9c8b[_0x26a25a(0x436)]=_0xdd202a(oe());}(X,function(_0x2f8d7d){const _0x329d77=_0x479a;return(function(){const _0xf5cd16=_0x479a;var _0x3ca42f=_0x2f8d7d,_0xa06027=_0x3ca42f[_0xf5cd16(0x5db)],_0x399bb9=_0xa06027['WordArray'],_0x390400=_0xa06027[_0xf5cd16(0x28d)],_0x5d1d33=_0x3ca42f[_0xf5cd16(0x526)],_0x10bee6=[],_0x547db7=_0x5d1d33[_0xf5cd16(0x1a8)]=_0x390400['extend']({'_doReset':function(){const _0x5c9546=_0xf5cd16;this[_0x5c9546(0x2a0)]=new _0x399bb9[(_0x5c9546(0x25b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x231fd9,_0x2b23fa){for(var _0x43e2d4=this['_hash']['words'],_0x2295d2=_0x43e2d4[0x0],_0x2c91f1=_0x43e2d4[0x1],_0x5492e9=_0x43e2d4[0x2],_0x13e020=_0x43e2d4[0x3],_0x58132c=_0x43e2d4[0x4],_0x12bdb4=0x0;_0x12bdb4<0x50;_0x12bdb4++){if(_0x12bdb4<0x10)_0x10bee6[_0x12bdb4]=_0x231fd9[_0x2b23fa+_0x12bdb4]|0x0;else{var _0x3e1570=_0x10bee6[_0x12bdb4-0x3]^_0x10bee6[_0x12bdb4-0x8]^_0x10bee6[_0x12bdb4-0xe]^_0x10bee6[_0x12bdb4-0x10];_0x10bee6[_0x12bdb4]=_0x3e1570<<0x1|_0x3e1570>>>0x1f;}var _0x4a8a5e=(_0x2295d2<<0x5|_0x2295d2>>>0x1b)+_0x58132c+_0x10bee6[_0x12bdb4];_0x12bdb4<0x14?_0x4a8a5e+=(_0x2c91f1&_0x5492e9|~_0x2c91f1&_0x13e020)+0x5a827999:_0x12bdb4<0x28?_0x4a8a5e+=(_0x2c91f1^_0x5492e9^_0x13e020)+0x6ed9eba1:_0x12bdb4<0x3c?_0x4a8a5e+=(_0x2c91f1&_0x5492e9|_0x2c91f1&_0x13e020|_0x5492e9&_0x13e020)-0x70e44324:_0x4a8a5e+=(_0x2c91f1^_0x5492e9^_0x13e020)-0x359d3e2a,_0x58132c=_0x13e020,_0x13e020=_0x5492e9,_0x5492e9=_0x2c91f1<<0x1e|_0x2c91f1>>>0x2,_0x2c91f1=_0x2295d2,_0x2295d2=_0x4a8a5e;}_0x43e2d4[0x0]=_0x43e2d4[0x0]+_0x2295d2|0x0,_0x43e2d4[0x1]=_0x43e2d4[0x1]+_0x2c91f1|0x0,_0x43e2d4[0x2]=_0x43e2d4[0x2]+_0x5492e9|0x0,_0x43e2d4[0x3]=_0x43e2d4[0x3]+_0x13e020|0x0,_0x43e2d4[0x4]=_0x43e2d4[0x4]+_0x58132c|0x0;},'_doFinalize':function(){const _0x84c3fa=_0xf5cd16;var _0x2e0f35=this[_0x84c3fa(0x57c)],_0x13efd0=_0x2e0f35[_0x84c3fa(0x5a7)],_0x3f9d40=this[_0x84c3fa(0x589)]*0x8,_0x40d139=_0x2e0f35['sigBytes']*0x8;return _0x13efd0[_0x40d139>>>0x5]|=0x80<<0x18-_0x40d139%0x20,_0x13efd0[(_0x40d139+0x40>>>0x9<<0x4)+0xe]=Math[_0x84c3fa(0x2f0)](_0x3f9d40/0x100000000),_0x13efd0[(_0x40d139+0x40>>>0x9<<0x4)+0xf]=_0x3f9d40,_0x2e0f35[_0x84c3fa(0x164)]=_0x13efd0[_0x84c3fa(0x29a)]*0x4,this[_0x84c3fa(0x1dc)](),this[_0x84c3fa(0x2a0)];},'clone':function(){const _0x3e5053=_0xf5cd16;var _0x341d74=_0x390400[_0x3e5053(0x179)][_0x3e5053(0x54a)](this);return _0x341d74[_0x3e5053(0x2a0)]=this[_0x3e5053(0x2a0)]['clone'](),_0x341d74;}});_0x3ca42f[_0xf5cd16(0x1a8)]=_0x390400[_0xf5cd16(0x56d)](_0x547db7),_0x3ca42f['HmacSHA1']=_0x390400[_0xf5cd16(0x313)](_0x547db7);}()),_0x2f8d7d[_0x329d77(0x1a8)];}));}(ut)),ut[_0x4ecf57(0x436)];}var dt={'exports':{}},Kt;function lr(){const _0x489c66=_0x2683e6;return Kt||(Kt=0x1,function(_0x267b33,_0x1ff3c8){(function(_0x5961e8,_0x480fcf){_0x267b33['exports']=_0x480fcf(oe());}(X,function(_0x5826ba){(function(){const _0x296ef9=_0x479a;var _0x32f72b=_0x5826ba,_0x160b51=_0x32f72b[_0x296ef9(0x5db)],_0x380bf5=_0x160b51[_0x296ef9(0x37b)],_0x22bec9=_0x32f72b[_0x296ef9(0x593)],_0x397683=_0x22bec9[_0x296ef9(0x5ef)],_0xa72f2b=_0x32f72b[_0x296ef9(0x526)];_0xa72f2b['HMAC']=_0x380bf5[_0x296ef9(0x5c9)]({'init':function(_0x1a2ff0,_0x326f55){const _0x53fe2e=_0x296ef9;_0x1a2ff0=this[_0x53fe2e(0x401)]=new _0x1a2ff0['init'](),typeof _0x326f55==_0x53fe2e(0x516)&&(_0x326f55=_0x397683[_0x53fe2e(0x18e)](_0x326f55));var _0x451131=_0x1a2ff0[_0x53fe2e(0x32e)],_0x51d33c=_0x451131*0x4;_0x326f55[_0x53fe2e(0x164)]>_0x51d33c&&(_0x326f55=_0x1a2ff0['finalize'](_0x326f55)),_0x326f55[_0x53fe2e(0x4dc)]();for(var _0x240ef1=this[_0x53fe2e(0x2d1)]=_0x326f55['clone'](),_0x51bb0c=this['_iKey']=_0x326f55['clone'](),_0x3cacaa=_0x240ef1[_0x53fe2e(0x5a7)],_0x3d4562=_0x51bb0c[_0x53fe2e(0x5a7)],_0x3ad60b=0x0;_0x3ad60b<_0x451131;_0x3ad60b++)_0x3cacaa[_0x3ad60b]^=0x5c5c5c5c,_0x3d4562[_0x3ad60b]^=0x36363636;_0x240ef1[_0x53fe2e(0x164)]=_0x51bb0c['sigBytes']=_0x51d33c,this[_0x53fe2e(0x1fe)]();},'reset':function(){const _0xb2504=_0x296ef9;var _0x2d9fb3=this[_0xb2504(0x401)];_0x2d9fb3['reset'](),_0x2d9fb3[_0xb2504(0x348)](this['_iKey']);},'update':function(_0x14a932){const _0x508263=_0x296ef9;return this[_0x508263(0x401)]['update'](_0x14a932),this;},'finalize':function(_0x911ed0){const _0x2c5532=_0x296ef9;var _0x50b1dc=this['_hasher'],_0x55ca02=_0x50b1dc[_0x2c5532(0x257)](_0x911ed0);_0x50b1dc[_0x2c5532(0x1fe)]();var _0x5c2aca=_0x50b1dc[_0x2c5532(0x257)](this[_0x2c5532(0x2d1)][_0x2c5532(0x179)]()[_0x2c5532(0x33e)](_0x55ca02));return _0x5c2aca;}});}());}));}(dt)),dt[_0x489c66(0x436)];}var qt;function Dn(){const _0xe0307e=_0x2683e6;return qt||(qt=0x1,function(_0x2e8424,_0x2b2bee){(function(_0x24c992,_0x15a194,_0x23f1d4){const _0x481793=_0x479a;_0x2e8424[_0x481793(0x436)]=_0x15a194(oe(),cr(),lr());}(X,function(_0x5bac9d){const _0x996a6f=_0x479a;return(function(){const _0x4a5ae9=_0x479a;var _0x4110e9=_0x5bac9d,_0x1f41c9=_0x4110e9[_0x4a5ae9(0x5db)],_0x5d3bc2=_0x1f41c9[_0x4a5ae9(0x37b)],_0x2ff3f6=_0x1f41c9[_0x4a5ae9(0x53b)],_0x141192=_0x4110e9['algo'],_0x3f7d12=_0x141192['MD5'],_0x28b5aa=_0x141192[_0x4a5ae9(0x220)]=_0x5d3bc2['extend']({'cfg':_0x5d3bc2[_0x4a5ae9(0x5c9)]({'keySize':0x80/0x20,'hasher':_0x3f7d12,'iterations':0x1}),'init':function(_0x5b8d14){const _0x14517f=_0x4a5ae9;this[_0x14517f(0x3b8)]=this['cfg'][_0x14517f(0x5c9)](_0x5b8d14);},'compute':function(_0x3cfeaa,_0x3fb05c){const _0x39ec12=_0x4a5ae9;for(var _0x33f4b7,_0x296827=this[_0x39ec12(0x3b8)],_0x342a8d=_0x296827[_0x39ec12(0x367)][_0x39ec12(0x314)](),_0x27e04e=_0x2ff3f6[_0x39ec12(0x314)](),_0x2ed808=_0x27e04e['words'],_0x32b78=_0x296827[_0x39ec12(0x58b)],_0x54f986=_0x296827[_0x39ec12(0x486)];_0x2ed808[_0x39ec12(0x29a)]<_0x32b78;){_0x33f4b7&&_0x342a8d['update'](_0x33f4b7),_0x33f4b7=_0x342a8d['update'](_0x3cfeaa)[_0x39ec12(0x257)](_0x3fb05c),_0x342a8d[_0x39ec12(0x1fe)]();for(var _0x1df788=0x1;_0x1df788<_0x54f986;_0x1df788++)_0x33f4b7=_0x342a8d[_0x39ec12(0x257)](_0x33f4b7),_0x342a8d[_0x39ec12(0x1fe)]();_0x27e04e['concat'](_0x33f4b7);}return _0x27e04e['sigBytes']=_0x32b78*0x4,_0x27e04e;}});_0x4110e9[_0x4a5ae9(0x220)]=function(_0x2f2c45,_0x477761,_0x30b859){const _0x192d5d=_0x4a5ae9;return _0x28b5aa[_0x192d5d(0x314)](_0x30b859)[_0x192d5d(0x42c)](_0x2f2c45,_0x477761);};}()),_0x5bac9d[_0x996a6f(0x220)];}));}(_t)),_t[_0xe0307e(0x436)];}var ft={'exports':{}},zt;function wn(){return zt||(zt=0x1,function(_0x47cbd8,_0x44a1b8){(function(_0x1f276d,_0x41af16,_0x4be521){_0x47cbd8['exports']=_0x41af16(oe(),Dn());}(X,function(_0x5476da){const _0x5c87de=_0x479a;_0x5476da[_0x5c87de(0x5db)][_0x5c87de(0x554)]||function(_0x37d0ed){const _0x1dc471=_0x5c87de;var _0x4d811e=_0x5476da,_0x292cab=_0x4d811e['lib'],_0x8d0367=_0x292cab[_0x1dc471(0x37b)],_0x54c240=_0x292cab['WordArray'],_0x16f753=_0x292cab[_0x1dc471(0x5b4)],_0x1e6203=_0x4d811e[_0x1dc471(0x593)];_0x1e6203['Utf8'];var _0x1fdfd6=_0x1e6203['Base64'],_0xe02e2f=_0x4d811e['algo'],_0x29767f=_0xe02e2f['EvpKDF'],_0x56cb05=_0x292cab[_0x1dc471(0x554)]=_0x16f753['extend']({'cfg':_0x8d0367[_0x1dc471(0x5c9)](),'createEncryptor':function(_0x1e6b0c,_0x6b002b){const _0x4e7e88=_0x1dc471;return this[_0x4e7e88(0x314)](this[_0x4e7e88(0x1c0)],_0x1e6b0c,_0x6b002b);},'createDecryptor':function(_0xff8fda,_0x3a5871){const _0x21cbd5=_0x1dc471;return this[_0x21cbd5(0x314)](this[_0x21cbd5(0x3a8)],_0xff8fda,_0x3a5871);},'init':function(_0x43e050,_0x567aa4,_0x50b6cb){const _0x19a6ff=_0x1dc471;this[_0x19a6ff(0x3b8)]=this[_0x19a6ff(0x3b8)]['extend'](_0x50b6cb),this[_0x19a6ff(0x502)]=_0x43e050,this[_0x19a6ff(0x570)]=_0x567aa4,this[_0x19a6ff(0x1fe)]();},'reset':function(){const _0x1af73a=_0x1dc471;_0x16f753['reset'][_0x1af73a(0x54a)](this),this[_0x1af73a(0x34c)]();},'process':function(_0x166e84){const _0x35172e=_0x1dc471;return this[_0x35172e(0x1a0)](_0x166e84),this[_0x35172e(0x1dc)]();},'finalize':function(_0x84184d){const _0x3fca7d=_0x1dc471;_0x84184d&&this[_0x3fca7d(0x1a0)](_0x84184d);var _0x313ecd=this['_doFinalize']();return _0x313ecd;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x534631(_0x213ec8){const _0x444728=_0x479a;return typeof _0x213ec8==_0x444728(0x516)?_0x397fb7:_0x39e424;}return function(_0x43acca){return{'encrypt':function(_0x62a8c6,_0x30064f,_0x27aa9f){const _0x3747bb=_0x479a;return _0x534631(_0x30064f)[_0x3747bb(0x3cb)](_0x43acca,_0x62a8c6,_0x30064f,_0x27aa9f);},'decrypt':function(_0xaec988,_0x2882bc,_0x70d7ae){return _0x534631(_0x2882bc)['decrypt'](_0x43acca,_0xaec988,_0x2882bc,_0x70d7ae);}};};}())});_0x292cab[_0x1dc471(0x1f6)]=_0x56cb05[_0x1dc471(0x5c9)]({'_doFinalize':function(){const _0x20fac3=_0x1dc471;var _0x27615b=this[_0x20fac3(0x1dc)](!0x0);return _0x27615b;},'blockSize':0x1});var _0x19b434=_0x4d811e[_0x1dc471(0x33d)]={},_0x3f961b=_0x292cab[_0x1dc471(0x41a)]=_0x8d0367[_0x1dc471(0x5c9)]({'createEncryptor':function(_0x40cac6,_0x5d7fb1){const _0xb617e1=_0x1dc471;return this[_0xb617e1(0x345)][_0xb617e1(0x314)](_0x40cac6,_0x5d7fb1);},'createDecryptor':function(_0x39ffca,_0x5266c4){const _0x20d838=_0x1dc471;return this[_0x20d838(0x59d)]['create'](_0x39ffca,_0x5266c4);},'init':function(_0x23c915,_0x3828df){const _0x5d20f1=_0x1dc471;this[_0x5d20f1(0x324)]=_0x23c915,this['_iv']=_0x3828df;}}),_0x4e93d3=_0x19b434['CBC']=(function(){const _0x42809b=_0x1dc471;var _0x5ad3e0=_0x3f961b['extend']();_0x5ad3e0['Encryptor']=_0x5ad3e0[_0x42809b(0x5c9)]({'processBlock':function(_0x5e7ee4,_0x586ae1){const _0x51434a=_0x42809b;var _0x1ca7bd=this[_0x51434a(0x324)],_0x19ee3b=_0x1ca7bd[_0x51434a(0x32e)];_0x1ea559[_0x51434a(0x54a)](this,_0x5e7ee4,_0x586ae1,_0x19ee3b),_0x1ca7bd[_0x51434a(0x416)](_0x5e7ee4,_0x586ae1),this['_prevBlock']=_0x5e7ee4[_0x51434a(0x237)](_0x586ae1,_0x586ae1+_0x19ee3b);}}),_0x5ad3e0['Decryptor']=_0x5ad3e0[_0x42809b(0x5c9)]({'processBlock':function(_0x10d582,_0x406cac){const _0x350db9=_0x42809b;var _0x4c448b=this[_0x350db9(0x324)],_0x488060=_0x4c448b['blockSize'],_0x262d3f=_0x10d582[_0x350db9(0x237)](_0x406cac,_0x406cac+_0x488060);_0x4c448b[_0x350db9(0x1d0)](_0x10d582,_0x406cac),_0x1ea559[_0x350db9(0x54a)](this,_0x10d582,_0x406cac,_0x488060),this[_0x350db9(0x410)]=_0x262d3f;}});function _0x1ea559(_0xe60379,_0x365c10,_0x165482){const _0x431708=_0x42809b;var _0x477471,_0xce98ee=this[_0x431708(0x42b)];_0xce98ee?(_0x477471=_0xce98ee,this['_iv']=_0x37d0ed):_0x477471=this['_prevBlock'];for(var _0xe11190=0x0;_0xe11190<_0x165482;_0xe11190++)_0xe60379[_0x365c10+_0xe11190]^=_0x477471[_0xe11190];}return _0x5ad3e0;}()),_0x29a80b=_0x4d811e[_0x1dc471(0x417)]={},_0x884339=_0x29a80b['Pkcs7']={'pad':function(_0x5e7245,_0x565400){const _0x3bb2cf=_0x1dc471;for(var _0x28c36f=_0x565400*0x4,_0xde55ef=_0x28c36f-_0x5e7245[_0x3bb2cf(0x164)]%_0x28c36f,_0x4a77df=_0xde55ef<<0x18|_0xde55ef<<0x10|_0xde55ef<<0x8|_0xde55ef,_0xa465b=[],_0xaba9d3=0x0;_0xaba9d3<_0xde55ef;_0xaba9d3+=0x4)_0xa465b['push'](_0x4a77df);var _0x49b375=_0x54c240[_0x3bb2cf(0x314)](_0xa465b,_0xde55ef);_0x5e7245[_0x3bb2cf(0x33e)](_0x49b375);},'unpad':function(_0x4c517d){const _0x30ba8b=_0x1dc471;var _0x4de786=_0x4c517d[_0x30ba8b(0x5a7)][_0x4c517d[_0x30ba8b(0x164)]-0x1>>>0x2]&0xff;_0x4c517d[_0x30ba8b(0x164)]-=_0x4de786;}};_0x292cab['BlockCipher']=_0x56cb05[_0x1dc471(0x5c9)]({'cfg':_0x56cb05[_0x1dc471(0x3b8)][_0x1dc471(0x5c9)]({'mode':_0x4e93d3,'padding':_0x884339}),'reset':function(){const _0x27f0af=_0x1dc471;var _0x252fba;_0x56cb05[_0x27f0af(0x1fe)][_0x27f0af(0x54a)](this);var _0x3e9b06=this[_0x27f0af(0x3b8)],_0x16a874=_0x3e9b06['iv'],_0xb7ae41=_0x3e9b06['mode'];this[_0x27f0af(0x502)]==this[_0x27f0af(0x1c0)]?_0x252fba=_0xb7ae41[_0x27f0af(0x4c0)]:(_0x252fba=_0xb7ae41[_0x27f0af(0x2d8)],this[_0x27f0af(0x5cf)]=0x1),this[_0x27f0af(0x19b)]&&this['_mode'][_0x27f0af(0x301)]==_0x252fba?this[_0x27f0af(0x19b)][_0x27f0af(0x25b)](this,_0x16a874&&_0x16a874[_0x27f0af(0x5a7)]):(this[_0x27f0af(0x19b)]=_0x252fba[_0x27f0af(0x54a)](_0xb7ae41,this,_0x16a874&&_0x16a874[_0x27f0af(0x5a7)]),this[_0x27f0af(0x19b)][_0x27f0af(0x301)]=_0x252fba);},'_doProcessBlock':function(_0xc924c2,_0x161de7){const _0x17496d=_0x1dc471;this[_0x17496d(0x19b)][_0x17496d(0x40b)](_0xc924c2,_0x161de7);},'_doFinalize':function(){const _0x3ce73b=_0x1dc471;var _0x282736,_0x47d418=this[_0x3ce73b(0x3b8)][_0x3ce73b(0x27d)];return this[_0x3ce73b(0x502)]==this[_0x3ce73b(0x1c0)]?(_0x47d418[_0x3ce73b(0x417)](this[_0x3ce73b(0x57c)],this[_0x3ce73b(0x32e)]),_0x282736=this[_0x3ce73b(0x1dc)](!0x0)):(_0x282736=this['_process'](!0x0),_0x47d418['unpad'](_0x282736)),_0x282736;},'blockSize':0x80/0x20});var _0x1bf495=_0x292cab['CipherParams']=_0x8d0367[_0x1dc471(0x5c9)]({'init':function(_0x5744e6){this['mixIn'](_0x5744e6);},'toString':function(_0x5b3160){const _0x5edc54=_0x1dc471;return(_0x5b3160||this[_0x5edc54(0x4a6)])[_0x5edc54(0x40e)](this);}}),_0x5053ab=_0x4d811e['format']={},_0x5888e4=_0x5053ab[_0x1dc471(0x24f)]={'stringify':function(_0x22aa30){const _0x161e86=_0x1dc471;var _0x363886,_0x342551=_0x22aa30[_0x161e86(0x3ad)],_0x4321a8=_0x22aa30[_0x161e86(0x3b5)];return _0x4321a8?_0x363886=_0x54c240[_0x161e86(0x314)]([0x53616c74,0x65645f5f])[_0x161e86(0x33e)](_0x4321a8)[_0x161e86(0x33e)](_0x342551):_0x363886=_0x342551,_0x363886['toString'](_0x1fdfd6);},'parse':function(_0x3a9b87){const _0x1ed033=_0x1dc471;var _0x17250e,_0x2c384e=_0x1fdfd6[_0x1ed033(0x18e)](_0x3a9b87),_0x1ab14a=_0x2c384e[_0x1ed033(0x5a7)];return _0x1ab14a[0x0]==0x53616c74&&_0x1ab14a[0x1]==0x65645f5f&&(_0x17250e=_0x54c240[_0x1ed033(0x314)](_0x1ab14a['slice'](0x2,0x4)),_0x1ab14a[_0x1ed033(0x4cd)](0x0,0x4),_0x2c384e[_0x1ed033(0x164)]-=0x10),_0x1bf495['create']({'ciphertext':_0x2c384e,'salt':_0x17250e});}},_0x39e424=_0x292cab[_0x1dc471(0x58c)]=_0x8d0367[_0x1dc471(0x5c9)]({'cfg':_0x8d0367[_0x1dc471(0x5c9)]({'format':_0x5888e4}),'encrypt':function(_0xc1fd1b,_0x51bd5a,_0xb34428,_0x669a95){const _0xa77e8f=_0x1dc471;_0x669a95=this[_0xa77e8f(0x3b8)][_0xa77e8f(0x5c9)](_0x669a95);var _0x2bd58a=_0xc1fd1b['createEncryptor'](_0xb34428,_0x669a95),_0x3da00f=_0x2bd58a[_0xa77e8f(0x257)](_0x51bd5a),_0x5d615d=_0x2bd58a[_0xa77e8f(0x3b8)];return _0x1bf495[_0xa77e8f(0x314)]({'ciphertext':_0x3da00f,'key':_0xb34428,'iv':_0x5d615d['iv'],'algorithm':_0xc1fd1b,'mode':_0x5d615d[_0xa77e8f(0x33d)],'padding':_0x5d615d[_0xa77e8f(0x27d)],'blockSize':_0xc1fd1b[_0xa77e8f(0x32e)],'formatter':_0x669a95['format']});},'decrypt':function(_0x2c02e1,_0x5c8b7c,_0x3096b7,_0x1ee900){const _0x30b1da=_0x1dc471;_0x1ee900=this[_0x30b1da(0x3b8)]['extend'](_0x1ee900),_0x5c8b7c=this[_0x30b1da(0x3e2)](_0x5c8b7c,_0x1ee900[_0x30b1da(0x1f4)]);var _0x390333=_0x2c02e1[_0x30b1da(0x2d8)](_0x3096b7,_0x1ee900)['finalize'](_0x5c8b7c['ciphertext']);return _0x390333;},'_parse':function(_0x4faa1b,_0x4371f9){const _0x2c0936=_0x1dc471;return typeof _0x4faa1b==_0x2c0936(0x516)?_0x4371f9[_0x2c0936(0x18e)](_0x4faa1b,this):_0x4faa1b;}}),_0x363dd0=_0x4d811e[_0x1dc471(0x5df)]={},_0x1cfe95=_0x363dd0['OpenSSL']={'execute':function(_0x50ca1c,_0x3026f8,_0x70c199,_0x3ee59e,_0x11270a){const _0x5b46ee=_0x1dc471;if(_0x3ee59e||(_0x3ee59e=_0x54c240['random'](0x40/0x8)),_0x11270a)var _0x2495b5=_0x29767f[_0x5b46ee(0x314)]({'keySize':_0x3026f8+_0x70c199,'hasher':_0x11270a})[_0x5b46ee(0x42c)](_0x50ca1c,_0x3ee59e);else var _0x2495b5=_0x29767f[_0x5b46ee(0x314)]({'keySize':_0x3026f8+_0x70c199})[_0x5b46ee(0x42c)](_0x50ca1c,_0x3ee59e);var _0x4805e9=_0x54c240['create'](_0x2495b5[_0x5b46ee(0x5a7)][_0x5b46ee(0x237)](_0x3026f8),_0x70c199*0x4);return _0x2495b5[_0x5b46ee(0x164)]=_0x3026f8*0x4,_0x1bf495['create']({'key':_0x2495b5,'iv':_0x4805e9,'salt':_0x3ee59e});}},_0x397fb7=_0x292cab[_0x1dc471(0x275)]=_0x39e424[_0x1dc471(0x5c9)]({'cfg':_0x39e424[_0x1dc471(0x3b8)][_0x1dc471(0x5c9)]({'kdf':_0x1cfe95}),'encrypt':function(_0x51607e,_0x37e66a,_0x5841f5,_0x47429f){const _0x10ae46=_0x1dc471;_0x47429f=this[_0x10ae46(0x3b8)][_0x10ae46(0x5c9)](_0x47429f);var _0x44fbf7=_0x47429f[_0x10ae46(0x5df)][_0x10ae46(0x540)](_0x5841f5,_0x51607e[_0x10ae46(0x58b)],_0x51607e['ivSize'],_0x47429f[_0x10ae46(0x3b5)],_0x47429f[_0x10ae46(0x367)]);_0x47429f['iv']=_0x44fbf7['iv'];var _0x2061c2=_0x39e424['encrypt']['call'](this,_0x51607e,_0x37e66a,_0x44fbf7['key'],_0x47429f);return _0x2061c2[_0x10ae46(0x26c)](_0x44fbf7),_0x2061c2;},'decrypt':function(_0x1a33cb,_0x16f5ca,_0x172ad2,_0x44c420){const _0x198235=_0x1dc471;_0x44c420=this[_0x198235(0x3b8)][_0x198235(0x5c9)](_0x44c420),_0x16f5ca=this[_0x198235(0x3e2)](_0x16f5ca,_0x44c420[_0x198235(0x1f4)]);var _0x4ee20e=_0x44c420[_0x198235(0x5df)][_0x198235(0x540)](_0x172ad2,_0x1a33cb[_0x198235(0x58b)],_0x1a33cb[_0x198235(0x5f2)],_0x16f5ca['salt'],_0x44c420['hasher']);_0x44c420['iv']=_0x4ee20e['iv'];var _0x77423=_0x39e424[_0x198235(0x267)]['call'](this,_0x1a33cb,_0x16f5ca,_0x4ee20e[_0x198235(0x327)],_0x44c420);return _0x77423;}});}();}));}(ft)),ft['exports'];}(function(_0x547141,_0x5e4c2d){(function(_0x2c7846,_0x560bbc,_0xdd1b7d){const _0x59236a=_0x479a;_0x547141[_0x59236a(0x436)]=_0x560bbc(oe(),On(),ar(),Dn(),wn());}(X,function(_0x321714){const _0x3e2f10=_0x479a;return(function(){const _0x519a16=_0x479a;var _0x2690fb=_0x321714,_0x144e92=_0x2690fb[_0x519a16(0x5db)],_0x325941=_0x144e92['BlockCipher'],_0xf98e1b=_0x2690fb['algo'],_0x42430d=[],_0x1c81e1=[],_0x184c25=[],_0xa10ce6=[],_0x3921bf=[],_0x18ef03=[],_0x578165=[],_0x40175c=[],_0x179397=[],_0x51508f=[];(function(){for(var _0x4a5f1a=[],_0xb3f10=0x0;_0xb3f10<0x100;_0xb3f10++)_0xb3f10<0x80?_0x4a5f1a[_0xb3f10]=_0xb3f10<<0x1:_0x4a5f1a[_0xb3f10]=_0xb3f10<<0x1^0x11b;for(var _0x258083=0x0,_0x36a499=0x0,_0xb3f10=0x0;_0xb3f10<0x100;_0xb3f10++){var _0x4456ab=_0x36a499^_0x36a499<<0x1^_0x36a499<<0x2^_0x36a499<<0x3^_0x36a499<<0x4;_0x4456ab=_0x4456ab>>>0x8^_0x4456ab&0xff^0x63,_0x42430d[_0x258083]=_0x4456ab,_0x1c81e1[_0x4456ab]=_0x258083;var _0x1964b6=_0x4a5f1a[_0x258083],_0x3454a9=_0x4a5f1a[_0x1964b6],_0x45b9f2=_0x4a5f1a[_0x3454a9],_0x3c7cc1=_0x4a5f1a[_0x4456ab]*0x101^_0x4456ab*0x1010100;_0x184c25[_0x258083]=_0x3c7cc1<<0x18|_0x3c7cc1>>>0x8,_0xa10ce6[_0x258083]=_0x3c7cc1<<0x10|_0x3c7cc1>>>0x10,_0x3921bf[_0x258083]=_0x3c7cc1<<0x8|_0x3c7cc1>>>0x18,_0x18ef03[_0x258083]=_0x3c7cc1;var _0x3c7cc1=_0x45b9f2*0x1010101^_0x3454a9*0x10001^_0x1964b6*0x101^_0x258083*0x1010100;_0x578165[_0x4456ab]=_0x3c7cc1<<0x18|_0x3c7cc1>>>0x8,_0x40175c[_0x4456ab]=_0x3c7cc1<<0x10|_0x3c7cc1>>>0x10,_0x179397[_0x4456ab]=_0x3c7cc1<<0x8|_0x3c7cc1>>>0x18,_0x51508f[_0x4456ab]=_0x3c7cc1,_0x258083?(_0x258083=_0x1964b6^_0x4a5f1a[_0x4a5f1a[_0x4a5f1a[_0x45b9f2^_0x1964b6]]],_0x36a499^=_0x4a5f1a[_0x4a5f1a[_0x36a499]]):_0x258083=_0x36a499=0x1;}}());var _0x43f63c=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x25a5d1=_0xf98e1b[_0x519a16(0x432)]=_0x325941[_0x519a16(0x5c9)]({'_doReset':function(){const _0xff87f0=_0x519a16;var _0x11d829;if(!(this[_0xff87f0(0x232)]&&this['_keyPriorReset']===this['_key'])){for(var _0x15cd8a=this[_0xff87f0(0x340)]=this[_0xff87f0(0x570)],_0x2ce097=_0x15cd8a[_0xff87f0(0x5a7)],_0x16f821=_0x15cd8a['sigBytes']/0x4,_0x3b3161=this[_0xff87f0(0x232)]=_0x16f821+0x6,_0x4a99d9=(_0x3b3161+0x1)*0x4,_0x3030fc=this[_0xff87f0(0x4ec)]=[],_0x46c0b4=0x0;_0x46c0b4<_0x4a99d9;_0x46c0b4++)_0x46c0b4<_0x16f821?_0x3030fc[_0x46c0b4]=_0x2ce097[_0x46c0b4]:(_0x11d829=_0x3030fc[_0x46c0b4-0x1],_0x46c0b4%_0x16f821?_0x16f821>0x6&&_0x46c0b4%_0x16f821==0x4&&(_0x11d829=_0x42430d[_0x11d829>>>0x18]<<0x18|_0x42430d[_0x11d829>>>0x10&0xff]<<0x10|_0x42430d[_0x11d829>>>0x8&0xff]<<0x8|_0x42430d[_0x11d829&0xff]):(_0x11d829=_0x11d829<<0x8|_0x11d829>>>0x18,_0x11d829=_0x42430d[_0x11d829>>>0x18]<<0x18|_0x42430d[_0x11d829>>>0x10&0xff]<<0x10|_0x42430d[_0x11d829>>>0x8&0xff]<<0x8|_0x42430d[_0x11d829&0xff],_0x11d829^=_0x43f63c[_0x46c0b4/_0x16f821|0x0]<<0x18),_0x3030fc[_0x46c0b4]=_0x3030fc[_0x46c0b4-_0x16f821]^_0x11d829);for(var _0x8f0d4c=this[_0xff87f0(0x3a9)]=[],_0xe62c96=0x0;_0xe62c96<_0x4a99d9;_0xe62c96++){var _0x46c0b4=_0x4a99d9-_0xe62c96;if(_0xe62c96%0x4)var _0x11d829=_0x3030fc[_0x46c0b4];else var _0x11d829=_0x3030fc[_0x46c0b4-0x4];_0xe62c96<0x4||_0x46c0b4<=0x4?_0x8f0d4c[_0xe62c96]=_0x11d829:_0x8f0d4c[_0xe62c96]=_0x578165[_0x42430d[_0x11d829>>>0x18]]^_0x40175c[_0x42430d[_0x11d829>>>0x10&0xff]]^_0x179397[_0x42430d[_0x11d829>>>0x8&0xff]]^_0x51508f[_0x42430d[_0x11d829&0xff]];}}},'encryptBlock':function(_0x4f64ec,_0x85fb32){const _0x23f374=_0x519a16;this[_0x23f374(0x5f9)](_0x4f64ec,_0x85fb32,this[_0x23f374(0x4ec)],_0x184c25,_0xa10ce6,_0x3921bf,_0x18ef03,_0x42430d);},'decryptBlock':function(_0xe3635f,_0x54aeb9){const _0x19d938=_0x519a16;var _0x260ea0=_0xe3635f[_0x54aeb9+0x1];_0xe3635f[_0x54aeb9+0x1]=_0xe3635f[_0x54aeb9+0x3],_0xe3635f[_0x54aeb9+0x3]=_0x260ea0,this[_0x19d938(0x5f9)](_0xe3635f,_0x54aeb9,this[_0x19d938(0x3a9)],_0x578165,_0x40175c,_0x179397,_0x51508f,_0x1c81e1);var _0x260ea0=_0xe3635f[_0x54aeb9+0x1];_0xe3635f[_0x54aeb9+0x1]=_0xe3635f[_0x54aeb9+0x3],_0xe3635f[_0x54aeb9+0x3]=_0x260ea0;},'_doCryptBlock':function(_0x57ef9e,_0x93b13b,_0x319472,_0x200fd5,_0x3c64f9,_0x48e228,_0x2c2347,_0x227d19){const _0x589a69=_0x519a16;for(var _0x324744=this[_0x589a69(0x232)],_0x5013e5=_0x57ef9e[_0x93b13b]^_0x319472[0x0],_0x3c2f08=_0x57ef9e[_0x93b13b+0x1]^_0x319472[0x1],_0x2447e4=_0x57ef9e[_0x93b13b+0x2]^_0x319472[0x2],_0x2a827c=_0x57ef9e[_0x93b13b+0x3]^_0x319472[0x3],_0x51a894=0x4,_0x337565=0x1;_0x337565<_0x324744;_0x337565++){var _0x162b19=_0x200fd5[_0x5013e5>>>0x18]^_0x3c64f9[_0x3c2f08>>>0x10&0xff]^_0x48e228[_0x2447e4>>>0x8&0xff]^_0x2c2347[_0x2a827c&0xff]^_0x319472[_0x51a894++],_0x5d197e=_0x200fd5[_0x3c2f08>>>0x18]^_0x3c64f9[_0x2447e4>>>0x10&0xff]^_0x48e228[_0x2a827c>>>0x8&0xff]^_0x2c2347[_0x5013e5&0xff]^_0x319472[_0x51a894++],_0x434d5e=_0x200fd5[_0x2447e4>>>0x18]^_0x3c64f9[_0x2a827c>>>0x10&0xff]^_0x48e228[_0x5013e5>>>0x8&0xff]^_0x2c2347[_0x3c2f08&0xff]^_0x319472[_0x51a894++],_0x4d1519=_0x200fd5[_0x2a827c>>>0x18]^_0x3c64f9[_0x5013e5>>>0x10&0xff]^_0x48e228[_0x3c2f08>>>0x8&0xff]^_0x2c2347[_0x2447e4&0xff]^_0x319472[_0x51a894++];_0x5013e5=_0x162b19,_0x3c2f08=_0x5d197e,_0x2447e4=_0x434d5e,_0x2a827c=_0x4d1519;}var _0x162b19=(_0x227d19[_0x5013e5>>>0x18]<<0x18|_0x227d19[_0x3c2f08>>>0x10&0xff]<<0x10|_0x227d19[_0x2447e4>>>0x8&0xff]<<0x8|_0x227d19[_0x2a827c&0xff])^_0x319472[_0x51a894++],_0x5d197e=(_0x227d19[_0x3c2f08>>>0x18]<<0x18|_0x227d19[_0x2447e4>>>0x10&0xff]<<0x10|_0x227d19[_0x2a827c>>>0x8&0xff]<<0x8|_0x227d19[_0x5013e5&0xff])^_0x319472[_0x51a894++],_0x434d5e=(_0x227d19[_0x2447e4>>>0x18]<<0x18|_0x227d19[_0x2a827c>>>0x10&0xff]<<0x10|_0x227d19[_0x5013e5>>>0x8&0xff]<<0x8|_0x227d19[_0x3c2f08&0xff])^_0x319472[_0x51a894++],_0x4d1519=(_0x227d19[_0x2a827c>>>0x18]<<0x18|_0x227d19[_0x5013e5>>>0x10&0xff]<<0x10|_0x227d19[_0x3c2f08>>>0x8&0xff]<<0x8|_0x227d19[_0x2447e4&0xff])^_0x319472[_0x51a894++];_0x57ef9e[_0x93b13b]=_0x162b19,_0x57ef9e[_0x93b13b+0x1]=_0x5d197e,_0x57ef9e[_0x93b13b+0x2]=_0x434d5e,_0x57ef9e[_0x93b13b+0x3]=_0x4d1519;},'keySize':0x100/0x20});_0x2690fb[_0x519a16(0x432)]=_0x325941[_0x519a16(0x56d)](_0x25a5d1);}()),_0x321714[_0x3e2f10(0x432)];}));}(yn));var hr=yn['exports'];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x5130ff,_0x21d62d){(function(_0x3966ec,_0x4b5c8e){const _0x40e0a7=_0x479a;_0x5130ff[_0x40e0a7(0x436)]=_0x4b5c8e(oe());}(X,function(_0x15ad8a){const _0x3f10d7=_0x479a;return _0x15ad8a[_0x3f10d7(0x593)]['Utf8'];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x2f4e88,_0x23fb8f){(function(_0x176ea4,_0xb2ab8e){const _0x3bab81=_0x479a;_0x2f4e88[_0x3bab81(0x436)]=_0xb2ab8e(oe());}(X,function(_0x1f927a){const _0x33f48e=_0x479a;return(function(){const _0x358e3e=_0x479a;if(typeof ArrayBuffer=='function'){var _0x6a9768=_0x1f927a,_0x10c176=_0x6a9768[_0x358e3e(0x5db)],_0x35e85b=_0x10c176[_0x358e3e(0x53b)],_0x380580=_0x35e85b[_0x358e3e(0x25b)],_0x35303e=_0x35e85b[_0x358e3e(0x25b)]=function(_0xae6591){const _0x4cc671=_0x358e3e;if(_0xae6591 instanceof ArrayBuffer&&(_0xae6591=new Uint8Array(_0xae6591)),(_0xae6591 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xae6591 instanceof Uint8ClampedArray||_0xae6591 instanceof Int16Array||_0xae6591 instanceof Uint16Array||_0xae6591 instanceof Int32Array||_0xae6591 instanceof Uint32Array||_0xae6591 instanceof Float32Array||_0xae6591 instanceof Float64Array)&&(_0xae6591=new Uint8Array(_0xae6591['buffer'],_0xae6591[_0x4cc671(0x3f7)],_0xae6591['byteLength'])),_0xae6591 instanceof Uint8Array){for(var _0x5135e0=_0xae6591[_0x4cc671(0x23f)],_0x2cc8a3=[],_0x45b051=0x0;_0x45b051<_0x5135e0;_0x45b051++)_0x2cc8a3[_0x45b051>>>0x2]|=_0xae6591[_0x45b051]<<0x18-_0x45b051%0x4*0x8;_0x380580[_0x4cc671(0x54a)](this,_0x2cc8a3,_0x5135e0);}else _0x380580[_0x4cc671(0x4c4)](this,arguments);};_0x35303e[_0x358e3e(0x2f3)]=_0x35e85b;}}()),_0x1f927a[_0x33f48e(0x5db)][_0x33f48e(0x53b)];}));}(Un));var vr=Un[_0x2683e6(0x436)];const mr=xe(vr);var Mn={'exports':{}};(function(_0x338d13,_0x149395){(function(_0x29c13a,_0x2a8949,_0x56d148){const _0xa9203d=_0x479a;_0x338d13[_0xa9203d(0x436)]=_0x2a8949(oe(),wn());}(X,function(_0x31cac9){const _0x370b0d=_0x479a;return _0x31cac9[_0x370b0d(0x417)][_0x370b0d(0x2ae)]={'pad':function(){},'unpad':function(){}},_0x31cac9['pad'][_0x370b0d(0x2ae)];}));}(Mn));var Sr=Mn[_0x2683e6(0x436)];const pr=xe(Sr);function gr(_0x4eef2a,_0x496c32){const _0x301883=_0x2683e6,_0x2102b6=_0x496c32-_0x4eef2a[_0x301883(0x29a)]%_0x496c32,_0x235e5b=String[_0x301883(0x19a)](_0x2102b6)[_0x301883(0x290)](_0x2102b6);return _0x4eef2a+_0x235e5b;}function Ir(_0x5c0d7c,_0x1e1d3b){const _0x27f983=_0x2683e6,_0x1116f6=mr[_0x27f983(0x3e7)](0x10),_0x47a886=gr(_0x5c0d7c,0x10),_0xffe542=_r[_0x27f983(0x3cb)](fr[_0x27f983(0x18e)](_0x47a886),Xt[_0x27f983(0x18e)](_0x1e1d3b),{'iv':_0x1116f6,'padding':pr});return _0x1116f6[_0x27f983(0x33e)](_0xffe542[_0x27f983(0x3ad)])['toString'](Xt);}function Cr(){const _0xbaba47=_0x2683e6,_0x7045f6=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0xbaba47(0x4d5)];if(_0x7045f6){const _0x57019e={'time':Math[_0xbaba47(0x2f0)](Date[_0xbaba47(0x1f9)]()/0x3e8),'domain':location[_0xbaba47(0x465)]};return Ir(JSON[_0xbaba47(0x40e)](_0x57019e),_0x7045f6);}}var Er=Object['defineProperty'],br=Object[_0x2683e6(0x181)],Tr=(_0x5d996d,_0x4141e0,_0x3f4858,_0x3358d0)=>{for(var _0x6f461=_0x3358d0>0x1?void 0x0:_0x3358d0?br(_0x4141e0,_0x3f4858):_0x4141e0,_0xc912cc=_0x5d996d['length']-0x1,_0x4dd2b8;_0xc912cc>=0x0;_0xc912cc--)(_0x4dd2b8=_0x5d996d[_0xc912cc])&&(_0x6f461=(_0x3358d0?_0x4dd2b8(_0x4141e0,_0x3f4858,_0x6f461):_0x4dd2b8(_0x6f461))||_0x6f461);return _0x3358d0&&_0x6f461&&Er(_0x4141e0,_0x3f4858,_0x6f461),_0x6f461;},Rr=(_0x54d7e3,_0x309bdb)=>(_0x2d7bd0,_0x3e597d)=>_0x309bdb(_0x2d7bd0,_0x3e597d,_0x54d7e3);let Ye=class{constructor(_0x4937af){const _0xef520e=_0x2683e6;this[_0xef520e(0x3fb)]=_0x4937af,this[_0xef520e(0x4eb)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2224e7,_0x4841bf)=>{const _0x114e85=_0x479a,_0x22ae1f=_0x2224e7[_0x114e85(0x2f5)],_0xcf5a82=Cr();return _0xcf5a82&&_0x22ae1f[_0x114e85(0x46f)](_0x114e85(0x462),_0xcf5a82),_0x4841bf(_0x2224e7);}});}};Ye=Tr([Rr(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)]))],Ye);var yr=Object['defineProperty'],Or=Object[_0x2683e6(0x181)],Dr=(_0x5be6d2,_0x5004fd,_0x3ed0be,_0x25d42b)=>{for(var _0x2ef83c=_0x25d42b>0x1?void 0x0:_0x25d42b?Or(_0x5004fd,_0x3ed0be):_0x5004fd,_0x3614b5=_0x5be6d2['length']-0x1,_0x2f5f2a;_0x3614b5>=0x0;_0x3614b5--)(_0x2f5f2a=_0x5be6d2[_0x3614b5])&&(_0x2ef83c=(_0x25d42b?_0x2f5f2a(_0x5004fd,_0x3ed0be,_0x2ef83c):_0x2f5f2a(_0x2ef83c))||_0x2ef83c);return _0x25d42b&&_0x2ef83c&&yr(_0x5004fd,_0x3ed0be,_0x2ef83c),_0x2ef83c;},vt=(_0x3f1c82,_0x4860d8)=>(_0x3114e0,_0x4e3116)=>_0x4860d8(_0x3114e0,_0x4e3116,_0x3f1c82);const wr=[_0x2683e6(0x3d4),_0x2683e6(0x420),_0x2683e6(0x3b1),_0x2683e6(0x4d4),'image/bmp'],Pr=0x5*0x400*0x400,Ur=_0x2683e6(0x2e7),Mr=_0x2683e6(0x1cb),Ar=_0x2683e6(0x1ac),Nr=_0x2683e6(0x236);exports[_0x2683e6(0x187)]=class{constructor(_0x382708,_0x47569c,_0x14cf3c){const _0xbfeeb9=_0x2683e6;I(this,_0xbfeeb9(0x363),0x0),I(this,_0xbfeeb9(0x433),new A[(_0xbfeeb9(0x51b))]()),I(this,'change$',this['_change$']),I(this,'_imageSourceCache',new Map()),(this[_0xbfeeb9(0x3fb)]=_0x382708,this[_0xbfeeb9(0x3d1)]=_0x47569c,this[_0xbfeeb9(0x45b)]=_0x14cf3c);}[_0x2683e6(0x547)](_0x2004da){const _0xac9dde=_0x2683e6;this['_waitCount']=_0x2004da,this[_0xac9dde(0x433)][_0xac9dde(0x40f)](_0x2004da);}[_0x2683e6(0x451)](_0x374550,_0x45c9e0){const _0x31622f=_0x2683e6;if(_0x45c9e0===ne[_0x31622f(0x1b9)]['BASE64']){const _0x5a10ab=new Image();return _0x5a10ab[_0x31622f(0x603)]=_0x374550,_0x5a10ab;}return this[_0x31622f(0x19c)][_0x31622f(0x553)](_0x374550);}[_0x2683e6(0x535)](_0x4c4a84,_0x5ca831,_0x128fa6){const _0x245ea4=_0x2683e6;_0x5ca831===ne['ImageSourceType']['BASE64']||_0x128fa6==null||this[_0x245ea4(0x19c)]['set'](_0x4c4a84,_0x128fa6);}async[_0x2683e6(0x1f2)](_0x4b64ba){const _0x2a4e7f=_0x2683e6;try{const _0x30aff8=this[_0x2a4e7f(0x50a)](this[_0x2a4e7f(0x3fc)](),''+_0x4b64ba),_0x3c497f=(await this[_0x2a4e7f(0x3fb)][_0x2a4e7f(0x553)](_0x30aff8))[_0x2a4e7f(0x2a7)];if(_0x3c497f[_0x2a4e7f(0x461)]&&_0x3c497f[_0x2a4e7f(0x461)][_0x2a4e7f(0x443)]===cn['OK']){const _0x45784b=new URL(_0x3c497f[_0x2a4e7f(0x170)],this[_0x2a4e7f(0x271)]())[_0x2a4e7f(0x155)]();return Promise[_0x2a4e7f(0x3ed)](_0x45784b);}return Promise['reject'](_0x3c497f[_0x2a4e7f(0x461)]);}catch(_0x309145){return Promise['reject'](_0x309145);}}async[_0x2683e6(0x198)](_0x55fa7a){const _0x243ecf=_0x2683e6;let _0x4959b4='';if(!wr[_0x243ecf(0x598)](_0x55fa7a[_0x243ecf(0x44a)]))return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne[_0x243ecf(0x5cd)][_0x243ecf(0x37c)]));if(_0x55fa7a[_0x243ecf(0x4b4)]>Pr)return this[_0x243ecf(0x3e1)](),Promise['reject'](new Error(ne['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{const _0x403a6c=new FormData();_0x403a6c[_0x243ecf(0x4ca)](_0x243ecf(0x1ef),_0x55fa7a);const _0x31df7f=this[_0x243ecf(0x45b)][_0x243ecf(0x452)](),_0x30ac46=_0x31df7f==null?void 0x0:_0x31df7f['getUnitId']();if(!_0x30ac46)throw new Error(_0x243ecf(0x31d));const _0x109a7c=this[_0x243ecf(0x5c0)]()+_0x243ecf(0x21d)+_0x55fa7a[_0x243ecf(0x4b4)][_0x243ecf(0x155)]()+_0x243ecf(0x5c7)+ln['UnitEmbedded']+_0x243ecf(0x4d8)+encodeURIComponent(_0x30ac46),_0x14bec1=await(await fetch(_0x109a7c,{'method':'POST','body':_0x403a6c}))[_0x243ecf(0x3f2)]();if(typeof _0x14bec1['FileId']!='string')return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne['ImageUploadStatusType']['ERROR_IMAGE']));_0x4959b4=_0x14bec1[_0x243ecf(0x29b)];}catch{return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne[_0x243ecf(0x5cd)][_0x243ecf(0x32c)]));}return new Promise((_0x30b360,_0x2724e7)=>{const _0x24b583=_0x243ecf,_0x27462a=new FileReader();_0x27462a[_0x24b583(0x1b8)](_0x55fa7a),_0x27462a['onload']=_0x3940be=>{const _0x3ab56a=_0x24b583;var _0x1bba45;const _0x598122=(_0x1bba45=_0x3940be[_0x3ab56a(0x52a)])==null?void 0x0:_0x1bba45[_0x3ab56a(0x332)];if(_0x598122==null){this['_decreaseWaiting'](),_0x2724e7(new Error(ne[_0x3ab56a(0x5cd)][_0x3ab56a(0x32c)]));return;}const _0x547cb7=a[_0x3ab56a(0x256)][_0x3ab56a(0x59e)](0x6);_0x30b360({'imageId':_0x547cb7,'imageSourceType':ne[_0x3ab56a(0x1b9)]['UUID'],'source':_0x4959b4,'base64Cache':_0x598122,'status':ne[_0x3ab56a(0x5cd)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x2683e6(0x5c0)](){const _0x173711=_0x2683e6;var _0x66c58d,_0x59da5b;const _0x2b518d=this[_0x173711(0x3d1)]['getConfig'](Ur),_0x248a09=this[_0x173711(0x3d1)][_0x173711(0x496)](te);return(_0x59da5b=(_0x66c58d=_0x248a09==null?void 0x0:_0x248a09[_0x173711(0x3c8)])!=null?_0x66c58d:_0x2b518d)!=null?_0x59da5b:Mr;}['_getSignURL'](){const _0x570392=_0x2683e6;var _0xecf983,_0x237439;const _0x30a0be=this[_0x570392(0x3d1)][_0x570392(0x496)](Ar),_0x1700eb=this['_configService']['getConfig'](te);return(_0x237439=(_0xecf983=_0x1700eb==null?void 0x0:_0x1700eb[_0x570392(0x1b3)])!=null?_0xecf983:_0x30a0be)!=null?_0x237439:Nr;}[_0x2683e6(0x271)](){const _0x4e3c94=_0x2683e6;var _0x3e3eef;const _0x29bd40=this['_configService'][_0x4e3c94(0x496)](te);return(_0x3e3eef=_0x29bd40==null?void 0x0:_0x29bd40[_0x4e3c94(0x407)])!=null?_0x3e3eef:location[_0x4e3c94(0x32a)];}['_replaceFileID'](_0x2e137d,_0x437954){const _0x17c421=_0x2683e6;return _0x2e137d[_0x17c421(0x5d6)](_0x17c421(0x1ca),_0x437954);}['_decreaseWaiting'](){const _0x352a8d=_0x2683e6;this[_0x352a8d(0x363)]-=0x1,this[_0x352a8d(0x433)]['next'](this['_waitCount']);}},exports[_0x2683e6(0x187)]=Dr([vt(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),vt(0x1,a[_0x2683e6(0x58f)]),vt(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x468)]))],exports[_0x2683e6(0x187)]);var Lr=Object[_0x2683e6(0x1e7)],xr=Object[_0x2683e6(0x181)],jr=(_0x5d03ee,_0x3dc4aa,_0x3bcded,_0x881b31)=>{for(var _0x943cbe=_0x881b31>0x1?void 0x0:_0x881b31?xr(_0x3dc4aa,_0x3bcded):_0x3dc4aa,_0x30e7c5=_0x5d03ee['length']-0x1,_0x2e2395;_0x30e7c5>=0x0;_0x30e7c5--)(_0x2e2395=_0x5d03ee[_0x30e7c5])&&(_0x943cbe=(_0x881b31?_0x2e2395(_0x3dc4aa,_0x3bcded,_0x943cbe):_0x2e2395(_0x943cbe))||_0x943cbe);return _0x881b31&&_0x943cbe&&Lr(_0x3dc4aa,_0x3bcded,_0x943cbe),_0x943cbe;},Ae=(_0x43c5de,_0x5758cb)=>(_0x5c3dd5,_0x3fbf48)=>_0x5758cb(_0x5c3dd5,_0x3fbf48,_0x43c5de);let Ke=class extends a[_0x2683e6(0x1e0)]{constructor(_0x16e84a,_0x224a2c,_0x146b27,_0x2882fb,_0x4c9fde){const _0x2fad52=_0x2683e6;super(),this['_injector']=_0x16e84a,this[_0x2fad52(0x45b)]=_0x224a2c,this['_permissionService']=_0x146b27,this['_collaborationSessionService']=_0x2882fb,this[_0x2fad52(0x347)]=_0x4c9fde,this['_initUnitPermissionChange'](),this[_0x2fad52(0x209)]();}[_0x2683e6(0x209)](){const _0x25000d=_0x2683e6,_0x112e93=async _0x4b04b2=>{const _0x412a7f=_0x479a;(await this[_0x412a7f(0x216)][_0x412a7f(0x2b8)](_0x4b04b2))['event$'][_0x412a7f(0x36b)](V[_0x412a7f(0x57f)](_0x433213=>_0x433213[_0x412a7f(0x477)]===S[_0x412a7f(0x3d6)][_0x412a7f(0x235)]),V['takeUntil'](this[_0x412a7f(0x534)]))[_0x412a7f(0x44d)](_0x1b5291=>{const _0x5d9464=_0x412a7f,_0x2c7023=_0x1b5291,{reason:_0x28af35}=_0x2c7023[_0x5d9464(0x5ac)];this[_0x5d9464(0x3e9)][_0x5d9464(0x553)](ee[_0x5d9464(0x509)])[_0x5d9464(0x4db)]({'type':ge[_0x5d9464(0x455)][_0x5d9464(0x272)],'content':this['_localeService']['t'](_0x5d9464(0x248))+'('+_0x28af35+')'}),this[_0x5d9464(0x2b5)][_0x5d9464(0x524)](new k['WorkbookEditablePermission'](_0x4b04b2)['id'],!0x1),this['_collaborationSessionService'][_0x5d9464(0x4fd)](_0x4b04b2);});};A[_0x25000d(0x3ee)](this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25000d(0x4a1)]),this[_0x25000d(0x45b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25000d(0x56e)]))[_0x25000d(0x36b)](V[_0x25000d(0x538)](_0x350c94=>_0x350c94['getUnitId']()),V[_0x25000d(0x57f)](_0x4005c1=>!a['isInternalEditorID'](_0x4005c1)),V[_0x25000d(0x35f)](this[_0x25000d(0x534)]))['subscribe'](_0x36399b=>{_0x112e93(_0x36399b);});}[_0x2683e6(0x607)](){const _0x4544b0=_0x2683e6,_0x16bf9c=async _0x240b48=>{const _0x14cc03=_0x479a;(await this[_0x14cc03(0x216)][_0x14cc03(0x2b8)](_0x240b48))[_0x14cc03(0x279)][_0x14cc03(0x36b)](V[_0x14cc03(0x57f)](_0x2d4624=>_0x2d4624[_0x14cc03(0x477)]===S[_0x14cc03(0x3d6)][_0x14cc03(0x265)]),V[_0x14cc03(0x35f)](this[_0x14cc03(0x534)]))[_0x14cc03(0x44d)](_0x2318cf=>{const _0x45f2f8=_0x14cc03,_0x387113=_0x2318cf,{objectId:_0x5498f1}=_0x387113[_0x45f2f8(0x5ac)],_0x3f82ed=this[_0x45f2f8(0x3e9)][_0x45f2f8(0x553)](Re[_0x45f2f8(0x5e5)]);_0x5498f1===_0x240b48?_0x3f82ed['initWorkbookPermissionChange'](_0x240b48):_0x3f82ed['refreshPermission'](_0x240b48,_0x5498f1);});};A[_0x4544b0(0x3ee)](this[_0x4544b0(0x45b)][_0x4544b0(0x32d)](a[_0x4544b0(0x342)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x4544b0(0x36b)](V[_0x4544b0(0x538)](_0x294760=>_0x294760[_0x4544b0(0x478)]()),V[_0x4544b0(0x57f)](_0x42adca=>!a[_0x4544b0(0x1da)](_0x42adca)),V[_0x4544b0(0x35f)](this['dispose$']))[_0x4544b0(0x44d)](_0x38dcb9=>{_0x16bf9c(_0x38dcb9);});}};Ke=jr([Ae(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Ae(0x1,a['IUniverInstanceService']),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x17a)])),Ae(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)]))],Ke);var $r=Object['defineProperty'],Hr=Object[_0x2683e6(0x181)],Br=(_0x5f2038,_0x37252e,_0x305684,_0x2acda6)=>{const _0x546c81=_0x2683e6;for(var _0x23831d=_0x2acda6>0x1?void 0x0:_0x2acda6?Hr(_0x37252e,_0x305684):_0x37252e,_0x3a5f09=_0x5f2038[_0x546c81(0x29a)]-0x1,_0x4b9ee0;_0x3a5f09>=0x0;_0x3a5f09--)(_0x4b9ee0=_0x5f2038[_0x3a5f09])&&(_0x23831d=(_0x2acda6?_0x4b9ee0(_0x37252e,_0x305684,_0x23831d):_0x4b9ee0(_0x23831d))||_0x23831d);return _0x2acda6&&_0x23831d&&$r(_0x37252e,_0x305684,_0x23831d),_0x23831d;},Jt=(_0x1e0896,_0x55229f)=>(_0x423e25,_0x87ed87)=>_0x55229f(_0x423e25,_0x87ed87,_0x1e0896);exports[_0x2683e6(0x380)]=class{constructor(_0x443eae,_0x362f72){const _0x182107=_0x2683e6;this[_0x182107(0x3d1)]=_0x443eae,this[_0x182107(0x3fb)]=_0x362f72;}async['getUnitOnRev'](_0x524d54,_0x4ad806){const _0x408b31=_0x2683e6;var _0x2512b0;const {unitID:_0x5dfd85,type:_0x54346f,revision:_0x13141d=0x0}=_0x4ad806,_0x16ef91=this[_0x408b31(0x1a6)]()+'/'+_0x54346f+'/unit/'+_0x5dfd85+_0x408b31(0x15f)+_0x13141d,_0x24f53d=(await this[_0x408b31(0x3fb)][_0x408b31(0x553)](_0x16ef91))[_0x408b31(0x2a7)],_0x1fd9e5=(_0x2512b0=_0x24f53d[_0x408b31(0x1e1)])==null?void 0x0:_0x2512b0[_0x408b31(0x45f)];if(_0x1fd9e5){const _0x59c8ef=_0x1fd9e5==null?void 0x0:_0x1fd9e5[_0x408b31(0x5c6)],_0x562bba=S[_0x408b31(0x582)][_0x408b31(0x395)](S[_0x408b31(0x194)](_0x59c8ef));_0x1fd9e5[_0x408b31(0x5c6)]=_0x562bba,Object[_0x408b31(0x548)](_0x1fd9e5[_0x408b31(0x491)])[_0x408b31(0x280)](([,_0xd64fe6])=>{const _0x4db093=_0x408b31,_0x19e18b=_0xd64fe6[_0x4db093(0x5c6)],_0x11ea33=S['textEncoder'][_0x4db093(0x395)](S['b64DecodeUnicode'](_0x19e18b));_0xd64fe6[_0x4db093(0x5c6)]=_0x11ea33;});}return _0x24f53d;}async[_0x2683e6(0x5e2)](_0x59d42b,_0x13096d){const _0x51b277=_0x2683e6,{unitID:_0x2584a2,type:_0x21f4ed,blockID:_0x14e785}=_0x13096d,_0x105d2b=this[_0x51b277(0x4b5)]()+'/'+_0x21f4ed+_0x51b277(0x182)+_0x2584a2+_0x51b277(0x53d)+_0x14e785;return(await this[_0x51b277(0x3fb)][_0x51b277(0x553)](_0x105d2b))[_0x51b277(0x2a7)];}async[_0x2683e6(0x15e)](_0x2e71a7,_0x7ec83d){const _0x36672d=_0x2683e6,{unitID:_0x5c080a,type:_0x312dc4,blockID:_0x4ea1b4}=_0x7ec83d,_0x56abd4=this['_getAPIPrefix']()+_0x36672d(0x53d)+_0x312dc4+'/unit/'+_0x5c080a+'/block/'+_0x4ea1b4;return(await this[_0x36672d(0x3fb)][_0x36672d(0x553)](_0x56abd4))[_0x36672d(0x2a7)];}async[_0x2683e6(0x606)](_0x3a213a,_0x28f0ee){const _0x5ebecc=_0x2683e6,{unitID:_0x1f1748,type:_0x5960c0,from:_0x4493d6,to:_0x57dace}=_0x28f0ee,_0x450d72=this[_0x5ebecc(0x4b5)]()+'/'+_0x5960c0+_0x5ebecc(0x182)+_0x1f1748+_0x5ebecc(0x18a)+_0x4493d6+_0x5ebecc(0x2de)+_0x57dace;return(await this['_httpService'][_0x5ebecc(0x553)](_0x450d72))[_0x5ebecc(0x2a7)];}[_0x2683e6(0x1a6)](){const _0x1a35b2=_0x2683e6;var _0xfce56f;return(_0xfce56f=this[_0x1a35b2(0x3d1)][_0x1a35b2(0x496)](Qt))!=null?_0xfce56f:this[_0x1a35b2(0x4b5)]();}['_getAPIPrefix'](){const _0x117c07=_0x2683e6;var _0x3d0194,_0x508703;const _0x168ed2=this[_0x117c07(0x3d1)]['getConfig'](Zt),_0x26fb5a=this[_0x117c07(0x3d1)][_0x117c07(0x496)](te);return(_0x508703=(_0x3d0194=_0x26fb5a==null?void 0x0:_0x26fb5a[_0x117c07(0x2f2)])!=null?_0x3d0194:_0x168ed2)!=null?_0x508703:Hn;}async[_0x2683e6(0x5c2)](_0x2b747a,_0x669ff7){const _0x289d3f=_0x2683e6,_0x24cacf='/universer-api/snapshot/'+_0x669ff7[_0x289d3f(0x44a)]+_0x289d3f(0x182)+_0x669ff7[_0x289d3f(0x4a9)]+_0x289d3f(0x591);return(await this[_0x289d3f(0x3fb)][_0x289d3f(0x553)](_0x24cacf,{'params':{'resourceId':JSON['stringify'](_0x669ff7[_0x289d3f(0x541)])}}))[_0x289d3f(0x2a7)];}['saveSnapshot'](){const _0x99fe8f=_0x2683e6;throw new Error(_0x99fe8f(0x346));}[_0x2683e6(0x32b)](){const _0x53a7d1=_0x2683e6;throw new Error(_0x53a7d1(0x346));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2683e6(0x1e4)](){const _0x34d0c0=_0x2683e6;throw new Error(_0x34d0c0(0x346));}['getLatestCsReqIdBySid'](){const _0x49eb3f=_0x2683e6;throw new Error(_0x49eb3f(0x346));}},exports[_0x2683e6(0x380)]=Br([Jt(0x0,a[_0x2683e6(0x58f)]),Jt(0x1,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)]))],exports[_0x2683e6(0x380)]);var kr=Object[_0x2683e6(0x1e7)],Wr=Object[_0x2683e6(0x181)],Fr=(_0x3d674c,_0x28b3f0,_0x452ff1,_0x352e64)=>{const _0x35e24e=_0x2683e6;for(var _0x26196a=_0x352e64>0x1?void 0x0:_0x352e64?Wr(_0x28b3f0,_0x452ff1):_0x28b3f0,_0x31b695=_0x3d674c[_0x35e24e(0x29a)]-0x1,_0x88e5b6;_0x31b695>=0x0;_0x31b695--)(_0x88e5b6=_0x3d674c[_0x31b695])&&(_0x26196a=(_0x352e64?_0x88e5b6(_0x28b3f0,_0x452ff1,_0x26196a):_0x88e5b6(_0x26196a))||_0x26196a);return _0x352e64&&_0x26196a&&kr(_0x28b3f0,_0x452ff1,_0x26196a),_0x26196a;},Ne=(_0x3acb31,_0x46f128)=>(_0x45ddf4,_0x9c6254)=>_0x46f128(_0x45ddf4,_0x9c6254,_0x3acb31);let It=class extends a[_0x2683e6(0x166)]{constructor(_0x189068,_0x220f18,_0x3e46b3,_0xa6b120,_0x4073f2){super(_0x189068,_0x220f18,_0x3e46b3),this['_transformService']=_0xa6b120,this['_logService']=_0x4073f2;}[_0x2683e6(0x3dd)](_0x3faa5d,_0x1c3f76){const _0x24c65a=_0x2683e6,_0x2442a6=this[_0x24c65a(0x1f3)](_0x3faa5d);if(_0x2442a6)try{const _0x44da0c=this[_0x24c65a(0x387)](_0x2442a6,_0x1c3f76);this[_0x24c65a(0x40c)](_0x3faa5d,_0x44da0c);}catch(_0xbc0169){this['_logService'][_0x24c65a(0x461)](_0x24c65a(0x2f6),_0xbc0169),this[_0x24c65a(0x204)](_0x3faa5d);}const _0x3ac29f=this[_0x24c65a(0x428)](_0x3faa5d);if(_0x3ac29f)try{const _0x34101c=this[_0x24c65a(0x387)](_0x3ac29f,_0x1c3f76);this[_0x24c65a(0x207)](_0x3faa5d,_0x34101c);}catch(_0x2ba67c){this[_0x24c65a(0x577)]['error'](_0x2ba67c),this['_clearRedo'](_0x3faa5d);}}[_0x2683e6(0x204)](_0x1b9a58){const _0x565041=_0x2683e6,_0x566259=this[_0x565041(0x1f3)](_0x1b9a58);_0x566259&&(_0x566259['length']=0x0,this[_0x565041(0x43c)]());}[_0x2683e6(0x226)](_0x41d443){const _0x29afc8=_0x2683e6,_0xc75c65=this[_0x29afc8(0x428)](_0x41d443);_0xc75c65&&(_0xc75c65[_0x29afc8(0x29a)]=0x0,this[_0x29afc8(0x43c)]());}[_0x2683e6(0x40c)](_0x1dc1d3,_0x50381c){const _0x5027d3=_0x2683e6;this[_0x5027d3(0x5d1)][_0x5027d3(0x46f)](_0x1dc1d3,_0x50381c),this['_updateStatus']();}[_0x2683e6(0x207)](_0x3ed99c,_0x16f71f){const _0x58860f=_0x2683e6;this[_0x58860f(0x537)]['set'](_0x3ed99c,_0x16f71f),this[_0x58860f(0x43c)]();}[_0x2683e6(0x387)](_0x28cc9a,_0x49b4e8){const _0x49c642=_0x2683e6,_0xd51699=[];let _0x3e8a12=_0x49b4e8,_0x6f8635=_0x49b4e8;for(let _0x3ba0f1=_0x28cc9a[_0x49c642(0x29a)]-0x1;_0x3ba0f1>=0x0;_0x3ba0f1--){const {unitID:_0x4f51b2,undoMutations:_0x3828aa,redoMutations:_0x210872}=_0x28cc9a[_0x3ba0f1],_0x38cafa=this[_0x49c642(0x318)][_0x49c642(0x1b6)](_0x3e8a12,_0x3828aa),_0x1a4b19=this[_0x49c642(0x318)]['transformMutationsWithChangeset'](_0x6f8635,_0x210872);if(S[_0x49c642(0x1bd)](_0x38cafa)||S['isTransformMutationsWithChangesetFailure'](_0x1a4b19)){this['_logService'][_0x49c642(0x461)](_0x49c642(0x2f6),_0x49c642(0x59b),_0x38cafa,_0x1a4b19);break;}_0x3e8a12=_0x38cafa['c1Prime'],_0x6f8635=_0x1a4b19[_0x49c642(0x160)],_0xd51699[_0x49c642(0x17e)]({'unitID':_0x4f51b2,'undoMutations':_0x38cafa[_0x49c642(0x326)],'redoMutations':_0x1a4b19[_0x49c642(0x326)]});}return _0xd51699[_0x49c642(0x3ef)]();}};It=Fr([Ne(0x0,a[_0x2683e6(0x468)]),Ne(0x1,a['ICommandService']),Ne(0x2,a['IContextService']),Ne(0x3,S[_0x2683e6(0x1e3)]),Ne(0x4,a['ILogService'])],It);class An extends a[_0x2683e6(0x1e0)]{constructor(){const _0x2f4040=_0x2683e6;super(),I(this,'urlChange$'),this[_0x2f4040(0x5b7)]=A['fromEvent'](window,_0x2f4040(0x16a))[_0x2f4040(0x36b)](A[_0x2f4040(0x35f)](this[_0x2f4040(0x534)]),A[_0x2f4040(0x4dd)](0x1),A[_0x2f4040(0x22d)](void 0x0));}['setParam'](_0x3c9ecb,_0x244bb2,_0x461609=!0x1){const _0xe509e1=_0x2683e6,_0x39dd22=new URL(window[_0xe509e1(0x286)][_0xe509e1(0x56a)]);_0x39dd22[_0xe509e1(0x4f6)]['set'](_0x3c9ecb,_0x244bb2),_0x461609?window[_0xe509e1(0x3c0)][_0xe509e1(0x415)]('','',_0x39dd22[_0xe509e1(0x155)]()):window['history'][_0xe509e1(0x317)]('','',_0x39dd22[_0xe509e1(0x155)]());}[_0x2683e6(0x533)](_0xd6e44f,_0x1b17bd=!0x1){const _0x556beb=_0x2683e6,_0x327077=new URL(window[_0x556beb(0x286)]['href']);_0x327077[_0x556beb(0x4f6)][_0x556beb(0x27e)](_0xd6e44f),_0x1b17bd?window['history'][_0x556beb(0x415)]('','',_0x327077[_0x556beb(0x155)]()):window[_0x556beb(0x3c0)][_0x556beb(0x317)]('','',_0x327077[_0x556beb(0x155)]());}['getParam'](_0x3bc9c2){const _0x2412ab=_0x2683e6;var _0x296989;return(_0x296989=new URL(window[_0x2412ab(0x286)][_0x2412ab(0x56a)])[_0x2412ab(0x4f6)][_0x2412ab(0x553)](_0x3bc9c2))!=null?_0x296989:void 0x0;}}var Nn=Object[_0x2683e6(0x1e7)],Vr=Object[_0x2683e6(0x181)],Gr=(_0x27a88c,_0x558b78,_0x50ef88)=>_0x558b78 in _0x27a88c?Nn(_0x27a88c,_0x558b78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50ef88}):_0x27a88c[_0x558b78]=_0x50ef88,Yr=(_0x20f56d,_0x7111ad,_0x2b5168,_0x91b3bf)=>{for(var _0x1ce1fb=_0x91b3bf>0x1?void 0x0:_0x91b3bf?Vr(_0x7111ad,_0x2b5168):_0x7111ad,_0x2e4415=_0x20f56d['length']-0x1,_0x3139f4;_0x2e4415>=0x0;_0x2e4415--)(_0x3139f4=_0x20f56d[_0x2e4415])&&(_0x1ce1fb=(_0x91b3bf?_0x3139f4(_0x7111ad,_0x2b5168,_0x1ce1fb):_0x3139f4(_0x1ce1fb))||_0x1ce1fb);return _0x91b3bf&&_0x1ce1fb&&Nn(_0x7111ad,_0x2b5168,_0x1ce1fb),_0x1ce1fb;},He=(_0x162720,_0x2acdd0)=>(_0x23e6ba,_0x3b0ec0)=>_0x2acdd0(_0x23e6ba,_0x3b0ec0,_0x162720),Kr=(_0x5ec457,_0xa158d4,_0x3f83db)=>Gr(_0x5ec457,_0xa158d4+'',_0x3f83db);const qr=_0x2683e6(0x4c7);exports[_0x2683e6(0x384)]=class extends a[_0x2683e6(0x3d0)]{constructor(_0x2c8119=zn,_0x41a69c,_0x5ee6c8,_0xd573d7,_0x362a01){const _0x25b614=_0x2683e6;super(),this[_0x25b614(0x369)]=_0x2c8119,this[_0x25b614(0x577)]=_0x41a69c,this[_0x25b614(0x233)]=_0x5ee6c8,this[_0x25b614(0x3e9)]=_0xd573d7,this['_configService']=_0x362a01;const {..._0x3c8693}=this[_0x25b614(0x369)];this['_configService'][_0x25b614(0x42f)](te,_0x3c8693);}['onStarting'](){const _0x31750e=_0x2683e6;this[_0x31750e(0x49f)](),this[_0x31750e(0x601)]();}[_0x2683e6(0x214)](){const _0x52550f=_0x2683e6;a[_0x52550f(0x3cf)](this[_0x52550f(0x3e9)],[[Ve]]);}[_0x2683e6(0x2af)](){const _0x4e3435=_0x2683e6;this[_0x4e3435(0x3b6)]();}[_0x2683e6(0x49f)](){const _0x46a5a4=_0x2683e6;var _0x578fd4,_0xcb1e5e,_0x1598b5,_0x3e381e;this[_0x46a5a4(0x3e9)]['has'](a['IUndoRedoService'])&&this[_0x46a5a4(0x577)][_0x46a5a4(0x461)](_0x46a5a4(0x531),_0x46a5a4(0x27a));const _0x1c9137=[[a[_0x46a5a4(0x5cb)],{'useClass':It}],[exports[_0x46a5a4(0x17a)]],[Ot],[wt,{'useClass':An}],[exports[_0x46a5a4(0x184)]],[exports[_0x46a5a4(0x604)]],[Z[_0x46a5a4(0x4b3)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0xcb1e5e=(_0x578fd4=this['_config'])==null?void 0x0:_0x578fd4[_0x46a5a4(0x3a5)])!=null?_0xcb1e5e:exports[_0x46a5a4(0x5bb)]}],[S[_0x46a5a4(0x24e)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x46a5a4(0x3a3)],{'useClass':exports[_0x46a5a4(0x14f)]}],[ne[_0x46a5a4(0x29d)],{'useClass':exports[_0x46a5a4(0x187)]}],[exports[_0x46a5a4(0x3de)]],[exports[_0x46a5a4(0x323)]],[exports['DesktopCollaborationStatusDisplayController']],[Ve],[De]];(_0x1598b5=this[_0x46a5a4(0x369)])!=null&&_0x1598b5[_0x46a5a4(0x4e9)]&&_0x1c9137[_0x46a5a4(0x17e)]([qe,{'useClass':Oi}]),a[_0x46a5a4(0x5cc)](this['_injector'],a[_0x46a5a4(0x372)](_0x1c9137,(_0x3e381e=this[_0x46a5a4(0x369)])==null?void 0x0:_0x3e381e[_0x46a5a4(0x3bb)]));}[_0x2683e6(0x3b6)](){const _0xab0536=_0x2683e6;this[_0xab0536(0x427)](this[_0xab0536(0x233)]['registerRenderModule'](a[_0xab0536(0x342)]['UNIVER_DOC'],[pt])),this[_0xab0536(0x427)](this['_renderManagerService']['registerRenderModule'](a[_0xab0536(0x342)]['UNIVER_SHEET'],[gt]));}['_initDependencies'](){const _0x4208bf=_0x2683e6;var _0x44897d,_0x3c4ef1;this['_injector'][_0x4208bf(0x553)](Z[_0x4208bf(0x2a2)])[_0x4208bf(0x5e8)]({'priority':0x14,'interceptor':Z[_0x4208bf(0x341)]({'maxParallel':0x6})}),(_0x44897d=this[_0x4208bf(0x369)])!=null&&_0x44897d[_0x4208bf(0x49e)]||this[_0x4208bf(0x3e9)]['get'](exports[_0x4208bf(0x604)])[_0x4208bf(0x51a)](),(_0x3c4ef1=this[_0x4208bf(0x369)])!=null&&_0x3c4ef1['enableAuthServer']&&a[_0x4208bf(0x3cf)](this[_0x4208bf(0x3e9)],[[Ge]]),a[_0x4208bf(0x3cf)](this[_0x4208bf(0x3e9)],[[Ye],[De],[exports['DataLoaderController']],[exports[_0x4208bf(0x3de)]],[exports[_0x4208bf(0x20d)]],[Ke]]);}},Kr(exports['UniverCollaborationClientPlugin'],_0x2683e6(0x4b7),qr),exports[_0x2683e6(0x384)]=Yr([a['DependentOn'](S[_0x2683e6(0x3df)],Z[_0x2683e6(0x517)]),He(0x1,a[_0x2683e6(0x5a9)]),He(0x2,K['IRenderManagerService']),He(0x3,a[_0x2683e6(0x22b)](a['Injector'])),He(0x4,a[_0x2683e6(0x58f)])],exports['UniverCollaborationClientPlugin']),exports[_0x2683e6(0x39e)]=Rn,exports[_0x2683e6(0x1f0)]=on,exports['COLLAB_WEB_SOCKET_URL_KEY']=en,exports[_0x2683e6(0x52e)]=q,exports['CollaborationStatusDisplay']=Tn,exports[_0x2683e6(0x355)]=Tt,exports[_0x2683e6(0x2d5)]=tn,exports[_0x2683e6(0x3f5)]=Ct,exports[_0x2683e6(0x1a9)]=bt,exports[_0x2683e6(0x572)]=wt,exports['LOCAL_CACHE_INTERVAL_KEY']=rn,exports[_0x2683e6(0x481)]=an,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=sn,exports[_0x2683e6(0x3f4)]=Bn,exports['SNAPSHOT_SERVER_URL_KEY']=Zt,exports[_0x2683e6(0x4f8)]=Qt,exports[_0x2683e6(0x5e3)]=se,exports[_0x2683e6(0x437)]=Sn,exports[_0x2683e6(0x584)]=An,exports[_0x2683e6(0x4e3)]=hn,exports['serializeCombRequest']=_n;
1
+ 'use strict';const _0x49c5a4=_0x3dfb;(function(_0x48dbda,_0x24ecff){const _0x1319d2=_0x3dfb,_0x3072d9=_0x48dbda();while(!![]){try{const _0x3572e3=-parseInt(_0x1319d2(0x19c))/0x1+-parseInt(_0x1319d2(0x1f4))/0x2+parseInt(_0x1319d2(0x48d))/0x3+parseInt(_0x1319d2(0x114))/0x4*(-parseInt(_0x1319d2(0x2f6))/0x5)+parseInt(_0x1319d2(0x2d8))/0x6+-parseInt(_0x1319d2(0x267))/0x7*(parseInt(_0x1319d2(0x57c))/0x8)+-parseInt(_0x1319d2(0x2cd))/0x9*(-parseInt(_0x1319d2(0x277))/0xa);if(_0x3572e3===_0x24ecff)break;else _0x3072d9['push'](_0x3072d9['shift']());}catch(_0x5e8d49){_0x3072d9['push'](_0x3072d9['shift']());}}}(_0x2f48,0x6a21e));var Ln=Object[_0x49c5a4(0x119)],xn=(_0x4977c0,_0x2602bb,_0x832256)=>_0x2602bb in _0x4977c0?Ln(_0x4977c0,_0x2602bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x832256}):_0x4977c0[_0x2602bb]=_0x832256,I=(_0x4c2200,_0x33b097,_0x3c0099)=>xn(_0x4c2200,typeof _0x33b097!='symbol'?_0x33b097+'':_0x33b097,_0x3c0099);Object[_0x49c5a4(0x119)](exports,Symbol[_0x49c5a4(0x512)],{'value':_0x49c5a4(0x3fd)});const a=require(_0x49c5a4(0x295)),A=require(_0x49c5a4(0x441)),V=require(_0x49c5a4(0x455)),Ie=require(_0x49c5a4(0x118)),J=require(_0x49c5a4(0x450)),te=require(_0x49c5a4(0x532)),p=require(_0x49c5a4(0x34c)),jn=require('@univerjs/telemetry'),Z=require(_0x49c5a4(0x551)),B=require('@univerjs/sheets'),K=require(_0x49c5a4(0x3c3)),ye=require('@univerjs/docs'),ne=require(_0x49c5a4(0x3e0)),Pt=require('@univerjs/engine-formula'),Re=require('@univerjs/sheets-ui'),ae=require('react'),$n=require('@univerjs/rpc'),Zt=_0x49c5a4(0x4b1),Hn=_0x49c5a4(0x23a),Qt=_0x49c5a4(0x429),kn=_0x49c5a4(0x152),Bn=0x7d0,en=_0x49c5a4(0x29c),Wn=_0x49c5a4(0x418),Fn=_0x49c5a4(0x21f),tn='HEARTBEAT_INTERVAL',Vn=0x7530,Ct='HEARTBEAT_TIMEOUT',nn=0x4e20,Gn=0x4e20,sn=_0x49c5a4(0x1cb),Yn=0x3,rn=_0x49c5a4(0x45d),Kn=0x3e8,on=_0x49c5a4(0x525),qn=_0x49c5a4(0x3a4),an=_0x49c5a4(0x4b7),zn=_0x49c5a4(0x4b5);var cn=(_0x4a059f=>(_0x4a059f[_0x4a059f['UNDEFINED']=0x0]=_0x49c5a4(0x553),_0x4a059f[_0x4a059f['OK']=0x1]='OK',_0x4a059f[_0x4a059f[_0x49c5a4(0x4af)]=0x2]=_0x49c5a4(0x4af),_0x4a059f[_0x4a059f[_0x49c5a4(0x151)]=0x3]=_0x49c5a4(0x151),_0x4a059f[_0x4a059f[_0x49c5a4(0x191)]=0x4]=_0x49c5a4(0x191),_0x4a059f[_0x4a059f['UNAUTHENTICATED']=0x5]=_0x49c5a4(0x1c8),_0x4a059f[_0x4a059f['ALREADY_EXISTS']=0x6]=_0x49c5a4(0x41e),_0x4a059f[_0x4a059f[_0x49c5a4(0x194)]=0x7]=_0x49c5a4(0x194),_0x4a059f[_0x4a059f[_0x49c5a4(0x4f3)]=0x8]=_0x49c5a4(0x4f3),_0x4a059f[_0x4a059f['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x4a059f[_0x4a059f[_0x49c5a4(0x2fd)]=0x1389]=_0x49c5a4(0x2fd),_0x4a059f[_0x4a059f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x49c5a4(0x246),_0x4a059f[_0x4a059f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4a059f[_0x4a059f[_0x49c5a4(0x511)]=0x1773]=_0x49c5a4(0x511),_0x4a059f[_0x4a059f[_0x49c5a4(0x20f)]=0x1b59]='APPLY_REJECT',_0x4a059f[_0x4a059f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4a059f[_0x4a059f['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x49c5a4(0x18a),_0x4a059f[_0x4a059f['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4a059f[_0x4a059f[_0x49c5a4(0x58e)]=0x1b5d]=_0x49c5a4(0x58e),_0x4a059f[_0x4a059f[_0x49c5a4(0x127)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4a059f[_0x4a059f[_0x49c5a4(0x339)]=0x2329]=_0x49c5a4(0x339),_0x4a059f[_0x4a059f[_0x49c5a4(0x2d2)]=0x232a]=_0x49c5a4(0x2d2),_0x4a059f[_0x4a059f[_0x49c5a4(0x1b0)]=0x232b]=_0x49c5a4(0x1b0),_0x4a059f[_0x4a059f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x49c5a4(0x227),_0x4a059f[_0x4a059f['LICENSE_DISTRO_REJECTED']=0x232d]=_0x49c5a4(0x52b),_0x4a059f[_0x4a059f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x49c5a4(0x30b),_0x4a059f[_0x4a059f[_0x49c5a4(0x3e5)]=0x2712]=_0x49c5a4(0x3e5),_0x4a059f[_0x4a059f[_0x49c5a4(0x4e8)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4a059f[_0x4a059f[_0x49c5a4(0x288)]=0x2714]=_0x49c5a4(0x288),_0x4a059f[_0x4a059f[_0x49c5a4(0x500)]=-0x1]=_0x49c5a4(0x500),_0x4a059f))(cn||{}),ie=(_0x23b9a3=>(_0x23b9a3[_0x23b9a3[_0x49c5a4(0x36c)]=0x0]=_0x49c5a4(0x36c),_0x23b9a3[_0x23b9a3['UNIVER_DOC']=0x1]=_0x49c5a4(0x466),_0x23b9a3[_0x23b9a3[_0x49c5a4(0x50e)]=0x2]=_0x49c5a4(0x50e),_0x23b9a3[_0x23b9a3[_0x49c5a4(0x324)]=0x3]=_0x49c5a4(0x324),_0x23b9a3[_0x23b9a3['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x23b9a3[_0x23b9a3[_0x49c5a4(0x500)]=-0x1]=_0x49c5a4(0x500),_0x23b9a3))(ie||{}),G=(_0x579bdc=>(_0x579bdc[_0x579bdc['UNKNOWN_CMD']=0x0]=_0x49c5a4(0x274),_0x579bdc[_0x579bdc[_0x49c5a4(0x3dd)]=0x1]=_0x49c5a4(0x3dd),_0x579bdc[_0x579bdc[_0x49c5a4(0x111)]=0x2]='JOIN',_0x579bdc[_0x579bdc[_0x49c5a4(0x46d)]=0x3]=_0x49c5a4(0x46d),_0x579bdc[_0x579bdc[_0x49c5a4(0x476)]=0x4]=_0x49c5a4(0x476),_0x579bdc[_0x579bdc['HEARTBEAT']=0x5]='HEARTBEAT',_0x579bdc[_0x579bdc['RECV']=0x6]=_0x49c5a4(0x4ae),_0x579bdc[_0x579bdc[_0x49c5a4(0x500)]=-0x1]='UNRECOGNIZED',_0x579bdc))(G||{}),Et=(_0x3953b9=>(_0x3953b9[_0x3953b9[_0x49c5a4(0x4bc)]=0x0]=_0x49c5a4(0x4bc),_0x3953b9[_0x3953b9['OK']=0x1]='OK',_0x3953b9[_0x3953b9[_0x49c5a4(0x2e2)]=0x2]=_0x49c5a4(0x2e2),_0x3953b9[_0x3953b9['JOIN_ROOM_FULL']=0x3e9]=_0x49c5a4(0x4bf),_0x3953b9[_0x3953b9['JOIN_ROOM_NOT_ALLOWED']=0x3ea]=_0x49c5a4(0x346),_0x3953b9[_0x3953b9[_0x49c5a4(0x500)]=-0x1]='UNRECOGNIZED',_0x3953b9))(Et||{}),ln=(_0x15ebad=>(_0x15ebad[_0x15ebad[_0x49c5a4(0xec)]=0x0]=_0x49c5a4(0xec),_0x15ebad[_0x15ebad['HttpImport']=0x1]=_0x49c5a4(0x596),_0x15ebad[_0x15ebad[_0x49c5a4(0x3cb)]=0x2]=_0x49c5a4(0x3cb),_0x15ebad[_0x15ebad['UnitEmbedded']=0x3]='UnitEmbedded',_0x15ebad[_0x15ebad[_0x49c5a4(0x2b2)]=0x4]='UnitSnapshot',_0x15ebad[_0x15ebad[_0x49c5a4(0x500)]=-0x1]='UNRECOGNIZED',_0x15ebad))(ln||{});const ee=_0x49c5a4(0x27f),Xn={};function hn(_0x4cb495){const _0x201ca4=_0x49c5a4;var _0x29faef,_0x374739,_0x2ed455,_0x2fb7c2,_0x40e763;const _0x19af94=_0x4cb495['data'],_0x53e36b=JSON[_0x201ca4(0x2fc)](_0x19af94);switch(_0x53e36b[_0x201ca4(0x30d)]){case G[_0x201ca4(0x294)]:case G[_0x201ca4(0x3dd)]:{const _0x26f575=_0x53e36b[_0x201ca4(0x59c)];return{..._0x53e36b,'data':_0x26f575,'cmd':_0x53e36b[_0x201ca4(0x30d)]};}case G['JOIN']:{const _0x35d23c=_0x53e36b[_0x201ca4(0x15b)];return{..._0x53e36b,'data':_0x35d23c,'cmd':_0x53e36b[_0x201ca4(0x30d)]};}case G[_0x201ca4(0x4ae)]:{const _0x2168e1=_0x53e36b[_0x201ca4(0x2e5)];switch(_0x2168e1['eventID']){case p[_0x201ca4(0x442)]['PERMISSION_REJ']:return{..._0x53e36b,'data':{..._0x2168e1,'data':(_0x29faef=_0x2168e1[_0x201ca4(0x4ab)])==null?void 0x0:_0x29faef['cs']},'cmd':_0x53e36b['cmd']};case p['CollaborationEvent'][_0x201ca4(0x282)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':(_0x374739=_0x2168e1[_0x201ca4(0x218)])==null?void 0x0:_0x374739['cs']},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p['CollaborationEvent'][_0x201ca4(0x30e)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':(_0x2ed455=_0x2168e1[_0x201ca4(0x445)])==null?void 0x0:_0x2ed455['cs']},'cmd':_0x53e36b['cmd']};case p[_0x201ca4(0x442)][_0x201ca4(0x1c4)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':(_0x2fb7c2=_0x2168e1[_0x201ca4(0x33e)])==null?void 0x0:_0x2fb7c2['cs']},'cmd':_0x53e36b['cmd']};case p[_0x201ca4(0x442)][_0x201ca4(0x3f1)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':(_0x40e763=_0x2168e1[_0x201ca4(0x381)])==null?void 0x0:_0x40e763['cs']},'cmd':_0x53e36b['cmd']};case p[_0x201ca4(0x442)][_0x201ca4(0x486)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x3ad)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p[_0x201ca4(0x442)]['USERS_ENTER']:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x240)]},'cmd':_0x53e36b['cmd']};case p[_0x201ca4(0x442)][_0x201ca4(0x595)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1['leaveEvent']},'cmd':_0x53e36b['cmd']};case p[_0x201ca4(0x442)][_0x201ca4(0x155)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x3ce)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p[_0x201ca4(0x442)][_0x201ca4(0x542)]:case p[_0x201ca4(0x442)]['LIVESHARE_OPERATION']:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x219)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p[_0x201ca4(0x442)][_0x201ca4(0x501)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x3ce)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p[_0x201ca4(0x442)][_0x201ca4(0x2b3)]:return{..._0x53e36b,'data':_0x2168e1,'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x410)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p['CollaborationEvent'][_0x201ca4(0x33b)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x45a)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};case p['CollaborationEvent'][_0x201ca4(0x4b9)]:return{..._0x53e36b,'data':{..._0x2168e1,'data':_0x2168e1[_0x201ca4(0x4cc)]},'cmd':_0x53e36b[_0x201ca4(0x30d)]};default:return _0x53e36b;}}default:return _0x53e36b;}}function _n(_0x2c1120){const _0x5b000b=_0x49c5a4;switch(_0x2c1120[_0x5b000b(0x30d)]){case G['HEARTBEAT']:case G['HELLO']:return JSON[_0x5b000b(0x1f5)]({'cmd':_0x2c1120[_0x5b000b(0x30d)],'routeKey':_0x2c1120['routeKey']});case G[_0x5b000b(0x476)]:{let _0x1d574f;switch(_0x2c1120['data'][_0x5b000b(0x1c0)]){case p[_0x5b000b(0x442)][_0x5b000b(0x486)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x486)],'updateCursorEvent':_0x2c1120[_0x5b000b(0x2ab)][_0x5b000b(0x2ab)]};break;}case p[_0x5b000b(0x442)][_0x5b000b(0x595)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x595)],'leaveEvent':_0x2c1120[_0x5b000b(0x2ab)][_0x5b000b(0x2ab)]};break;}case p[_0x5b000b(0x442)][_0x5b000b(0x448)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x448)],'joinEvent':_0x2c1120['data']['data']};break;}case p[_0x5b000b(0x442)][_0x5b000b(0x155)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2c1120[_0x5b000b(0x2ab)][_0x5b000b(0x2ab)]};break;}case p[_0x5b000b(0x442)]['LIVESHARE_OPERATION']:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x2b0)],'liveShareOperation':_0x2c1120['data']['data']};break;}case p['CollaborationEvent'][_0x5b000b(0x501)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x501)],'liveShareTerminate':_0x2c1120[_0x5b000b(0x2ab)]['data']};break;}case p[_0x5b000b(0x442)][_0x5b000b(0x34d)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x34d)],'liveShareRequestHost':_0x2c1120['data'][_0x5b000b(0x2ab)]};break;}case p[_0x5b000b(0x442)][_0x5b000b(0x542)]:{_0x1d574f={'eventID':p[_0x5b000b(0x442)][_0x5b000b(0x542)]};break;}default:_0x1d574f={'eventID':_0x2c1120[_0x5b000b(0x2ab)]['eventID']};}return JSON[_0x5b000b(0x1f5)]({'cmd':_0x2c1120[_0x5b000b(0x30d)],'routeKey':_0x2c1120[_0x5b000b(0x2a3)],'collaMsg':_0x1d574f});}case G[_0x5b000b(0x111)]:return JSON[_0x5b000b(0x1f5)]({'cmd':_0x2c1120['cmd'],'routeKey':_0x2c1120[_0x5b000b(0x2a3)],'joinReq':_0x2c1120['data']});case G[_0x5b000b(0x46d)]:return JSON[_0x5b000b(0x1f5)]({'cmd':_0x2c1120[_0x5b000b(0x30d)],'routeKey':_0x2c1120[_0x5b000b(0x2a3)],'leaveReq':_0x2c1120[_0x5b000b(0x2ab)]});default:throw new Error(_0x5b000b(0x1f0));}}var Jn=Object[_0x49c5a4(0x119)],Zn=Object['getOwnPropertyDescriptor'],Qn=(_0x44bc87,_0x134f18,_0x232511,_0x536d60)=>{const _0x286a58=_0x49c5a4;for(var _0x12e7be=_0x536d60>0x1?void 0x0:_0x536d60?Zn(_0x134f18,_0x232511):_0x134f18,_0x1a75f8=_0x44bc87[_0x286a58(0x313)]-0x1,_0x44a43a;_0x1a75f8>=0x0;_0x1a75f8--)(_0x44a43a=_0x44bc87[_0x1a75f8])&&(_0x12e7be=(_0x536d60?_0x44a43a(_0x134f18,_0x232511,_0x12e7be):_0x44a43a(_0x12e7be))||_0x12e7be);return _0x536d60&&_0x12e7be&&Jn(_0x134f18,_0x232511,_0x12e7be),_0x12e7be;},we=(_0xeb3adf,_0x56e0ed)=>(_0x15ad9c,_0x46b767)=>_0x56e0ed(_0x15ad9c,_0x46b767,_0xeb3adf);const bt=a[_0x49c5a4(0x1a6)]('univer-pro.collaboration-client-socket-service');function ei(_0x5576ab,_0x51b224,_0x8f3da3){const _0x39d0ff=_0x49c5a4;return _0x5576ab+'/'+_0x51b224+_0x39d0ff(0x14b)+_0x8f3da3+_0x39d0ff(0x409);}exports[_0x49c5a4(0xfd)]=class extends a[_0x49c5a4(0x559)]{constructor(_0x114783,_0x4a44a8,_0x492f38,_0x175e62,_0xbf10b1){const _0x409d39=_0x49c5a4;super(),this['_http']=_0x114783,this[_0x409d39(0x121)]=_0x4a44a8,this[_0x409d39(0x369)]=_0x492f38,this[_0x409d39(0x2eb)]=_0x175e62,this[_0x409d39(0x4cb)]=_0xbf10b1;}[_0x49c5a4(0x1cd)](_0x15e989){const _0x554f40=_0x49c5a4,_0x508f10=this[_0x554f40(0x121)]['createSocket'](_0x15e989);if(!_0x508f10)throw new Error(_0x554f40(0x1ed));const _0x51dceb=new a[(_0x554f40(0x4e1))](),_0x77d89f=new A[(_0x554f40(0x10d))]();_0x51dceb[_0x554f40(0x424)](_0x508f10['close$'][_0x554f40(0x2b8)](_0x5249b1=>_0x77d89f[_0x554f40(0x35e)](_0x5249b1))),_0x51dceb[_0x554f40(0x424)](a['toDisposable'](()=>_0x77d89f[_0x554f40(0xf2)]()));const _0xbd26be=new A['Subject']();_0x51dceb[_0x554f40(0x424)](_0x508f10[_0x554f40(0x159)][_0x554f40(0x2b8)](_0x243da3=>_0xbd26be[_0x554f40(0x35e)](_0x243da3))),_0x51dceb[_0x554f40(0x424)](a[_0x554f40(0x516)](()=>_0xbd26be['complete']()));const _0x6a9f5f=new A[(_0x554f40(0x10d))]();_0x51dceb[_0x554f40(0x424)](_0x508f10[_0x554f40(0x311)][_0x554f40(0x2b8)](_0x88014c=>{const _0xe99076=hn(_0x88014c);_0x6a9f5f['next'](_0xe99076);})),_0x51dceb[_0x554f40(0x424)](a[_0x554f40(0x516)](()=>_0x6a9f5f[_0x554f40(0xf2)]()));let _0x46cbbb;const _0x4983af=()=>{const _0x1ac961=_0x554f40;_0xbd26be[_0x1ac961(0x35e)](new Event(_0x1ac961(0x470))),_0x77d89f[_0x1ac961(0x35e)](new CloseEvent(_0x1ac961(0x470))),_0x46cbbb['close']();};return _0x46cbbb={'memberID':'','close$':_0x77d89f[_0x554f40(0x225)](),'error$':_0xbd26be[_0x554f40(0x225)](),'open$':_0x508f10[_0x554f40(0x22d)],'message$':_0x6a9f5f[_0x554f40(0x225)](),'send':_0x31ebc2=>{const _0x38eaf6=_0x554f40;if(_0x31ebc2[_0x38eaf6(0x30d)]===G[_0x38eaf6(0x476)]){if(_0x31ebc2[_0x38eaf6(0x2ab)][_0x38eaf6(0x1c0)]===p[_0x38eaf6(0x442)][_0x38eaf6(0x3ab)]){this[_0x38eaf6(0x1e0)](_0x46cbbb,_0x31ebc2[_0x38eaf6(0x2ab)])[_0x38eaf6(0x123)](_0x40df90=>{const _0x43cba5=_0x38eaf6;this[_0x43cba5(0x2eb)]['error'](_0x40df90),_0x4983af();});return;}if(_0x31ebc2[_0x38eaf6(0x2ab)][_0x38eaf6(0x1c0)]===p[_0x38eaf6(0x442)][_0x38eaf6(0x385)]){const _0x3ac2b9=_0x31ebc2['data'];this[_0x38eaf6(0x3aa)](_0x3ac2b9)[_0x38eaf6(0x2e8)](_0x12988d=>{const _0x3e6d0d=_0x38eaf6;_0x6a9f5f[_0x3e6d0d(0x35e)]({'cmd':G[_0x3e6d0d(0x4ae)],'code':Et['OK'],'routeKey':_0x3ac2b9['data']['unitID'],'routeType':'','data':{'eventID':p[_0x3e6d0d(0x442)][_0x3e6d0d(0x1d4)],'data':{'changesets':_0x12988d}}});})[_0x38eaf6(0x123)](_0x31f264=>{const _0x42306c=_0x38eaf6;this[_0x42306c(0x2eb)][_0x42306c(0x41d)](_0x31f264),_0x4983af();});return;}}_0x508f10['send'](_n(_0x31ebc2));},'close':()=>{const _0x5a4b10=_0x554f40;_0x508f10[_0x5a4b10(0x518)](),_0x51dceb[_0x5a4b10(0x13b)]();}},_0x46cbbb;}async[_0x49c5a4(0x1e0)](_0x13c4ff,_0xa7b862){const _0x13768f=_0x49c5a4;var _0x286c26,_0x5792f8;const {unitType:_0x2b5ac9,unitID:_0x3ca9c9,changeset:_0x40cb8a}=_0xa7b862[_0x13768f(0x2ab)],_0x4f55c4={'unitID':_0x3ca9c9,'memberID':_0x13c4ff[_0x13768f(0x583)],'type':_0x2b5ac9,'changeset':p[_0x13768f(0x4db)](_0x40cb8a)},_0x5dd17f=this[_0x13768f(0x369)]['getConfig'](on),_0x3e07a3=this[_0x13768f(0x369)]['getConfig'](ee),_0xc8125f=ei((_0x5792f8=(_0x286c26=_0x3e07a3==null?void 0x0:_0x3e07a3[_0x13768f(0x209)])!=null?_0x286c26:_0x5dd17f)!=null?_0x5792f8:qn,_0x2b5ac9,_0x3ca9c9);try{await this[_0x13768f(0x590)][_0x13768f(0x37a)](_0xc8125f,{'body':_0x4f55c4});}catch(_0x23da7d){throw this[_0x13768f(0x2eb)][_0x13768f(0x41d)](_0x13768f(0x4a0),'submit\x20changeset\x20error!'),_0x23da7d;}}async[_0x49c5a4(0x3aa)](_0x458575){const _0x48c36f=_0x49c5a4,{unitID:_0x57e07a,from:_0x30ff42,to:_0x10ce74,unitType:_0x1ec698}=_0x458575[_0x48c36f(0x2ab)];return(await this[_0x48c36f(0x4cb)][_0x48c36f(0x1ae)]({'metadata':void 0x0},{'unitID':_0x57e07a,'type':_0x1ec698,'from':_0x30ff42,'to':_0x10ce74}))[_0x48c36f(0x517)];}},exports[_0x49c5a4(0xfd)]=Qn([we(0x0,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)])),we(0x1,a[_0x49c5a4(0x435)](J['WebSocketService'])),we(0x2,a[_0x49c5a4(0x351)]),we(0x3,a[_0x49c5a4(0x156)]),we(0x4,p['ISnapshotServerService'])],exports[_0x49c5a4(0xfd)]);const ti='collaboration_new_changeset';function ni(_0x203f80){const _0xeef725=_0x49c5a4;return JSON[_0xeef725(0x1f5)](_0x203f80)[_0xeef725(0x313)];}class Tt{constructor(){const _0x560be1=_0x49c5a4;I(this,_0x560be1(0x330),new A[(_0x560be1(0x10d))]()),I(this,_0x560be1(0x467),this[_0x560be1(0x330)]['asObservable']());}[_0x49c5a4(0x2a6)](_0x1959f2){const _0x3782a8=_0x49c5a4;this[_0x3782a8(0x330)][_0x3782a8(0x35e)](_0x1959f2);}}var ii=Object['defineProperty'],si=Object['getOwnPropertyDescriptor'],ri=(_0x42010d,_0x44c876,_0x2e0600,_0x473de0)=>{const _0x37e9a3=_0x49c5a4;for(var _0xbcc24d=_0x473de0>0x1?void 0x0:_0x473de0?si(_0x44c876,_0x2e0600):_0x44c876,_0x36dfd8=_0x42010d[_0x37e9a3(0x313)]-0x1,_0x38c0ed;_0x36dfd8>=0x0;_0x36dfd8--)(_0x38c0ed=_0x42010d[_0x36dfd8])&&(_0xbcc24d=(_0x473de0?_0x38c0ed(_0x44c876,_0x2e0600,_0xbcc24d):_0x38c0ed(_0xbcc24d))||_0xbcc24d);return _0x473de0&&_0xbcc24d&&ii(_0x44c876,_0x2e0600,_0xbcc24d),_0xbcc24d;},Ut=(_0x3d51fd,_0x15d84b)=>(_0x4d93e1,_0x5b089d)=>_0x15d84b(_0x4d93e1,_0x5b089d,_0x3d51fd);exports['MemberService']=class extends a['Disposable']{constructor(_0xe11165,_0x2f2f2e){const _0x394387=_0x49c5a4;super(),I(this,_0x394387(0x16c),new Map()),(this[_0x394387(0x35c)]=_0xe11165,this[_0x394387(0x2e4)]=_0x2f2f2e,this[_0x394387(0x5ad)](a['toDisposable'](A[_0x394387(0x1e6)](this[_0x394387(0x35c)][_0x394387(0x55d)](a['UniverInstanceType'][_0x394387(0x50e)])[_0x394387(0x3d2)](V[_0x394387(0x2ea)](_0x41ad34=>_0x41ad34['getUnitId']())),this['_univerInstanceService'][_0x394387(0x55d)](a['UniverInstanceType'][_0x394387(0x466)])[_0x394387(0x3d2)](V[_0x394387(0x2ea)](_0x285892=>_0x285892[_0x394387(0x468)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x394387(0x324)])[_0x394387(0x3d2)](V[_0x394387(0x2ea)](_0x44cf00=>_0x44cf00[_0x394387(0x468)]())))[_0x394387(0x2b8)](_0x463581=>this[_0x394387(0x16e)](_0x463581)))));}[_0x49c5a4(0x526)](_0x11f2ae){const _0x592852=_0x49c5a4;this[_0x592852(0x2e4)][_0x592852(0x526)](_0x11f2ae);}[_0x49c5a4(0x1ce)](){const _0x451fc2=_0x49c5a4;return this[_0x451fc2(0x2e4)][_0x451fc2(0x1ce)]();}[_0x49c5a4(0x38e)](_0x526f70,_0x34b341){const _0xc1969e=_0x49c5a4;let _0xdd61f8=this['_roomMembers'][_0xc1969e(0x17e)](_0x526f70);_0xdd61f8||(_0xdd61f8=new oi(),this['_roomMembers'][_0xc1969e(0x384)](_0x526f70,_0xdd61f8)),_0xdd61f8['updateMember'](_0x34b341);}[_0x49c5a4(0x136)](_0x4929e0,_0x5fd2d8){const _0x50f7c6=_0x49c5a4,_0x580458=this[_0x50f7c6(0x16c)][_0x50f7c6(0x17e)](_0x4929e0);_0x580458&&_0x580458['removeMember'](_0x5fd2d8);}[_0x49c5a4(0x505)](_0x592cc0){const _0x3ed032=_0x49c5a4;return this[_0x3ed032(0x16c)]['get'](_0x592cc0);}['getMember'](_0xf55c31,_0xd41a6){const _0x2c287a=_0x49c5a4,_0x3fc3e8=this[_0x2c287a(0x16c)][_0x2c287a(0x17e)](_0xf55c31);if(_0x3fc3e8)return _0x3fc3e8[_0x2c287a(0x499)](_0xd41a6);}[_0x49c5a4(0x16e)](_0x109e6b){const _0x14eb78=_0x49c5a4,_0x738017=this[_0x14eb78(0x16c)]['get'](_0x109e6b);_0x738017&&(_0x738017[_0x14eb78(0x13b)](),this[_0x14eb78(0x16c)]['delete'](_0x109e6b));}[_0x49c5a4(0x13b)](){const _0x14a1b7=_0x49c5a4;this[_0x14a1b7(0x16c)][_0x14a1b7(0x27b)](_0x4975e0=>_0x4975e0[_0x14a1b7(0x13b)]()),this['_roomMembers']['clear']();}},exports[_0x49c5a4(0x4ee)]=ri([Ut(0x0,a['IUniverInstanceService']),Ut(0x1,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x46e)]))],exports[_0x49c5a4(0x4ee)]);class oi extends a['Disposable']{constructor(){const _0x583717=_0x49c5a4;super(...arguments),I(this,_0x583717(0x1f3),new Map());}['dispose'](){const _0x126592=_0x49c5a4;this[_0x126592(0x1f3)]['clear']();}[_0x49c5a4(0x38e)](_0x2d57d9){const _0x228b4c=_0x49c5a4;this[_0x228b4c(0x1f3)][_0x228b4c(0x384)](_0x2d57d9['memberID'],_0x2d57d9);}[_0x49c5a4(0x136)](_0x500a93){const _0x5eb70d=_0x49c5a4;this[_0x5eb70d(0x1f3)][_0x5eb70d(0x43c)](_0x500a93);}[_0x49c5a4(0x499)](_0x28edf3){const _0xeb6660=_0x49c5a4;return this[_0xeb6660(0x1f3)]['get'](_0x28edf3);}[_0x49c5a4(0x301)](){const _0x434048=_0x49c5a4;return Array['from'](this['_members'][_0x434048(0x1de)]());}}var ai=Object[_0x49c5a4(0x119)],ci=Object[_0x49c5a4(0x3ea)],li=(_0x2a89c6,_0x443baa,_0x17f261,_0xbe2213)=>{for(var _0x5ba9f0=_0xbe2213>0x1?void 0x0:_0xbe2213?ci(_0x443baa,_0x17f261):_0x443baa,_0x28d2d6=_0x2a89c6['length']-0x1,_0x40fb06;_0x28d2d6>=0x0;_0x28d2d6--)(_0x40fb06=_0x2a89c6[_0x28d2d6])&&(_0x5ba9f0=(_0xbe2213?_0x40fb06(_0x443baa,_0x17f261,_0x5ba9f0):_0x40fb06(_0x5ba9f0))||_0x5ba9f0);return _0xbe2213&&_0x5ba9f0&&ai(_0x443baa,_0x17f261,_0x5ba9f0),_0x5ba9f0;},de=(_0x224186,_0x417fe4)=>(_0x1e05e3,_0x13c057)=>_0x417fe4(_0x1e05e3,_0x13c057,_0x224186),se=(_0xf15b56=>(_0xf15b56[_0xf15b56[_0x49c5a4(0x564)]=0x0]=_0x49c5a4(0x564),_0xf15b56[_0xf15b56[_0x49c5a4(0x584)]=0x1]=_0x49c5a4(0x584),_0xf15b56[_0xf15b56[_0x49c5a4(0x459)]=0x2]='OFFLINE',_0xf15b56[_0xf15b56[_0x49c5a4(0x586)]=0x3]=_0x49c5a4(0x586),_0xf15b56))(se||{});exports[_0x49c5a4(0x2fb)]=class extends a[_0x49c5a4(0x1db)]{constructor(_0x322749,_0x1e13a4,_0x45a17e,_0x13e5a5,_0x772d3e,_0x3c706c,_0x248b18,_0x3fe551,_0x38e89e,_0x22c914){const _0x15f5de=_0x49c5a4;super(),I(this,_0x15f5de(0x4bb),new A['BehaviorSubject'](0x0)),I(this,_0x15f5de(0x53e),this[_0x15f5de(0x4bb)]['asObservable']()),I(this,'_event$',new A[(_0x15f5de(0x10d))]()),I(this,_0x15f5de(0x190),this[_0x15f5de(0x4ba)][_0x15f5de(0x225)]()),I(this,'_socket'),I(this,'_socketMessageSubscription'),I(this,_0x15f5de(0x374)),I(this,_0x15f5de(0x105),!0x1),I(this,_0x15f5de(0x49b),null),(this[_0x15f5de(0x25f)]=_0x322749,this[_0x15f5de(0x2eb)]=_0x45a17e,this[_0x15f5de(0x2ae)]=_0x13e5a5,this[_0x15f5de(0x25b)]=_0x772d3e,this['_configService']=_0x3c706c,this[_0x15f5de(0x383)]=_0x248b18,this['_memberService']=_0x3fe551,this[_0x15f5de(0x560)]=_0x38e89e,this[_0x15f5de(0x2c2)]=_0x22c914,this['_shouldReportTelemetry']=!!this[_0x15f5de(0x2c2)],_0x1e13a4[_0x15f5de(0x3d2)](A[_0x15f5de(0x27e)](this[_0x15f5de(0x148)]))['subscribe'](_0x5c44dd=>{const _0x45cd05=_0x15f5de;var _0xd695a8;typeof _0x5c44dd>'u'||(this[_0x45cd05(0x469)]=_0x5c44dd,_0x5c44dd?(this['_joinRoom'](_0x5c44dd),this[_0x45cd05(0x427)]=_0x5c44dd[_0x45cd05(0x311)][_0x45cd05(0x2b8)](_0xa2bf4e=>{const _0x518e0b=_0x45cd05;_0xa2bf4e[_0x518e0b(0x2a3)]===this['_unitID']&&this[_0x518e0b(0x1fa)](_0xa2bf4e);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x45cd05(0x4bb)][_0x45cd05(0x35e)](0x2),(_0xd695a8=this[_0x45cd05(0x427)])==null||_0xd695a8[_0x45cd05(0x447)](),this['_socketMessageSubscription']=null));}),this[_0x15f5de(0x5ad)](this[_0x15f5de(0x2ae)][_0x15f5de(0x3ae)](()=>{const _0x538724=_0x15f5de;var _0x370e15;(_0x370e15=this[_0x538724(0x469)])==null||_0x370e15['send']({'cmd':G[_0x538724(0x46d)],'data':{'roomID':this[_0x538724(0x25f)]}});})));}get['sessionStatus'](){const _0x235208=_0x49c5a4;return this[_0x235208(0x4bb)][_0x235208(0x428)]();}['getMemberID'](){const _0x6b6959=_0x49c5a4;var _0x32f05d,_0x102d7f;return(_0x102d7f=(_0x32f05d=this[_0x6b6959(0x469)])==null?void 0x0:_0x32f05d[_0x6b6959(0x583)])!=null?_0x102d7f:null;}[_0x49c5a4(0x13b)](){const _0x75d079=_0x49c5a4;super[_0x75d079(0x13b)](),this[_0x75d079(0x148)][_0x75d079(0x35e)](),this[_0x75d079(0x148)]['complete']();}['close'](){const _0x389bcb=_0x49c5a4;var _0x53a6b4,_0x14296c;this[_0x389bcb(0x390)](),(_0x53a6b4=this['_socket'])==null||_0x53a6b4['send']({'cmd':G['LEAVE'],'data':{'roomID':this[_0x389bcb(0x25f)]}}),(_0x14296c=this['_socket'])==null||_0x14296c['close'](),this[_0x389bcb(0x4ba)]['complete'](),this[_0x389bcb(0x4bb)][_0x389bcb(0xf2)](),this['dispose']();}[_0x49c5a4(0x1fa)](_0x45fa8e){const _0x2440ab=_0x49c5a4;_0x45fa8e['cmd']===G[_0x2440ab(0x111)]?this['_onJoinRoomEvent'](_0x45fa8e):_0x45fa8e[_0x2440ab(0x30d)]===G[_0x2440ab(0x4ae)]&&this[_0x2440ab(0x16a)](_0x45fa8e);}[_0x49c5a4(0x261)](_0x33c077){const _0x33a991=_0x49c5a4;this[_0x33a991(0x4bb)][_0x33a991(0x35e)](0x1),_0x33c077[_0x33a991(0x38c)]({'cmd':G['JOIN'],'routeKey':this[_0x33a991(0x25f)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x311a76){const _0x45c5eb=_0x49c5a4;var _0xb1de6;if(_0x311a76['code']===Et[_0x45c5eb(0x2e2)]){this['_messageService'][_0x45c5eb(0x2aa)]({'type':Ie[_0x45c5eb(0x353)]['Warning'],'content':this[_0x45c5eb(0x383)]['t'](_0x45c5eb(0x10b))}),this[_0x45c5eb(0x4bb)][_0x45c5eb(0x35e)](0x2);return;}this[_0x45c5eb(0x4bb)][_0x45c5eb(0x35e)](0x3);const _0x1211bf=(_0xb1de6=_0x311a76[_0x45c5eb(0x2ab)][_0x45c5eb(0x137)][this['_unitID']])==null?void 0x0:_0xb1de6[_0x45c5eb(0x406)];_0x1211bf&&_0x1211bf[_0x45c5eb(0x27b)](_0x504e34=>this[_0x45c5eb(0x44e)][_0x45c5eb(0x38e)](this[_0x45c5eb(0x25f)],_0x504e34));}[_0x49c5a4(0x16a)](_0x3a187f){const _0x392cf1=_0x49c5a4;try{const _0x5581e2=_0x3a187f[_0x392cf1(0x2ab)];switch(_0x5581e2['eventID']){case p[_0x392cf1(0x442)][_0x392cf1(0x448)]:this[_0x392cf1(0x45b)](_0x5581e2),this[_0x392cf1(0x4ba)][_0x392cf1(0x35e)](_0x5581e2);break;case p['CollaborationEvent'][_0x392cf1(0x595)]:this[_0x392cf1(0x1bb)](_0x5581e2),this[_0x392cf1(0x4ba)][_0x392cf1(0x35e)](_0x5581e2);break;case p['CollaborationEvent'][_0x392cf1(0x282)]:case p[_0x392cf1(0x442)][_0x392cf1(0x3f1)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x392cf1(0x4ba)][_0x392cf1(0x35e)](_0x5581e2);break;case p[_0x392cf1(0x442)]['MSG_FOR_ERROR']:this[_0x392cf1(0x2eb)][_0x392cf1(0x41d)](_0x392cf1(0x1af)+JSON['stringify'](_0x5581e2)),this[_0x392cf1(0x4ba)][_0x392cf1(0x35e)](_0x5581e2);break;case p['CollaborationEvent'][_0x392cf1(0x4d8)]:this[_0x392cf1(0x560)][_0x392cf1(0x2a6)](_0x5581e2[_0x392cf1(0x2ab)]),this['_event$'][_0x392cf1(0x35e)](_0x5581e2);break;default:this[_0x392cf1(0x4ba)][_0x392cf1(0x35e)](_0x5581e2);}}catch(_0x12c3b7){this[_0x392cf1(0x2eb)][_0x392cf1(0x41d)](_0x12c3b7,_0x3a187f);}}[_0x49c5a4(0x45b)](_0x38746f){const _0x1e5571=_0x49c5a4;this[_0x1e5571(0x44e)]['updateMember'](this[_0x1e5571(0x25f)],_0x38746f[_0x1e5571(0x2ab)]);}[_0x49c5a4(0x1bb)](_0x10cca8){const _0x40208d=_0x49c5a4;this[_0x40208d(0x44e)][_0x40208d(0x136)](this[_0x40208d(0x25f)],_0x10cca8[_0x40208d(0x2ab)][_0x40208d(0x583)]);}async[_0x49c5a4(0x38c)](_0x554373,_0x82ee4a){const _0x27a9ad=_0x49c5a4;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x27a9ad(0x214));try{_0x554373[_0x27a9ad(0x1c0)]===p['CollaborationEvent'][_0x27a9ad(0x3ab)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x27a9ad(0x281)](_0x554373)),this[_0x27a9ad(0x469)][_0x27a9ad(0x38c)]({'cmd':G[_0x27a9ad(0x476)],'routeKey':_0x82ee4a,'routeType':'','data':_0x554373});}catch(_0x3d3150){this[_0x27a9ad(0x2eb)][_0x27a9ad(0x41d)](_0x3d3150);}}[_0x49c5a4(0x392)](){const _0xa89bb2=_0x49c5a4;var _0x1c754f;this[_0xa89bb2(0x374)]=window['setTimeout'](()=>{const _0x532917=_0xa89bb2;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x532917(0x2aa)]({'type':Ie[_0x532917(0x353)][_0x532917(0x5a4)],'content':this['_localeService']['t'](_0x532917(0x4c0))});},(_0x1c754f=this[_0xa89bb2(0x369)][_0xa89bb2(0x162)](Ct))!=null?_0x1c754f:nn);}[_0x49c5a4(0x1d5)](){const _0x14b1f5=_0x49c5a4;this[_0x14b1f5(0x374)]&&(clearTimeout(this[_0x14b1f5(0x374)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x30b728){const _0x1b25da=_0x49c5a4;if(!this['_shouldReportTelemetry'])return;const {data:_0x11548e}=_0x30b728,{unitID:_0x5d02de,changeset:_0x161330}=_0x11548e,{mutations:_0x56d152,type:_0x4d06f5}=_0x161330;this['_telemetryInfo']={'unitId':_0x5d02de,'type':_0x4d06f5,'startTime':performance[_0x1b25da(0x228)](),'stopTime':0x0,'duration':0x0,'size':ni(_0x56d152)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5d40f8=_0x49c5a4;if(this[_0x5d40f8(0x105)]){if(!this['_telemetryInfo']){this['_logService']['error'](_0x5d40f8(0x4a0),_0x5d40f8(0x380));return;}this[_0x5d40f8(0x49b)][_0x5d40f8(0x593)]=performance[_0x5d40f8(0x228)](),this[_0x5d40f8(0x49b)]['duration']=this['_telemetryInfo']['stopTime']-this[_0x5d40f8(0x49b)][_0x5d40f8(0x589)],this[_0x5d40f8(0x2c2)][_0x5d40f8(0x4cf)](ti,this[_0x5d40f8(0x49b)]),this[_0x5d40f8(0x49b)]=null;}}[_0x49c5a4(0x390)](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=li([de(0x2,a['ILogService']),de(0x3,te['IBeforeCloseService']),de(0x4,te['IMessageService']),de(0x5,a[_0x49c5a4(0x351)]),de(0x6,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),de(0x7,a['Inject'](exports[_0x49c5a4(0x4ee)])),de(0x8,a[_0x49c5a4(0x435)](Tt)),de(0x9,a[_0x49c5a4(0x4b6)](jn[_0x49c5a4(0x14e)]))],exports['CollaborationSession']);var hi=Object[_0x49c5a4(0x119)],_i=Object[_0x49c5a4(0x3ea)],ui=(_0x465882,_0x4d975e,_0x46e202,_0x6f5630)=>{const _0x1c74a8=_0x49c5a4;for(var _0x206df4=_0x6f5630>0x1?void 0x0:_0x6f5630?_i(_0x4d975e,_0x46e202):_0x4d975e,_0x402bf0=_0x465882[_0x1c74a8(0x313)]-0x1,_0x3d765e;_0x402bf0>=0x0;_0x402bf0--)(_0x3d765e=_0x465882[_0x402bf0])&&(_0x206df4=(_0x6f5630?_0x3d765e(_0x4d975e,_0x46e202,_0x206df4):_0x3d765e(_0x206df4))||_0x206df4);return _0x6f5630&&_0x206df4&&hi(_0x4d975e,_0x46e202,_0x206df4),_0x206df4;},pe=(_0x31e52d,_0x5a083f)=>(_0x42b3e1,_0xd565c7)=>_0x5a083f(_0x42b3e1,_0xd565c7,_0x31e52d);exports[_0x49c5a4(0x211)]=class extends a[_0x49c5a4(0x559)]{constructor(_0x63fe4,_0x572a72,_0x507b77,_0x2d9647,_0x57c66f,_0x3d1abf,_0x1197ca){const _0x39055b=_0x49c5a4;super(),I(this,'_socket$',new A[(_0x39055b(0x2a1))](void 0x0)),I(this,_0x39055b(0x3a5),this[_0x39055b(0x333)][_0x39055b(0x225)]()),I(this,_0x39055b(0x5b5),null),I(this,_0x39055b(0x5a5),new Map()),I(this,_0x39055b(0x38a),new A[(_0x39055b(0x2a1))](se[_0x39055b(0x564)])),I(this,_0x39055b(0x452),this[_0x39055b(0x38a)][_0x39055b(0x225)]()),I(this,_0x39055b(0x3bf),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x39055b(0x58f),0x0),I(this,_0x39055b(0x348)),I(this,_0x39055b(0x47a)),(this[_0x39055b(0x13d)]=_0x63fe4,this['_localeService']=_0x572a72,this['_messageService']=_0x507b77,this['_logService']=_0x2d9647,this[_0x39055b(0x369)]=_0x57c66f,this['_socketService']=_0x3d1abf,this[_0x39055b(0x1b4)]=_0x1197ca,this[_0x39055b(0x33d)]());}get[_0x49c5a4(0x469)](){const _0x1748eb=_0x49c5a4;return this[_0x1748eb(0x333)][_0x1748eb(0x428)]();}[_0x49c5a4(0x33d)](){const _0x2fbaf7=_0x49c5a4;this[_0x2fbaf7(0x3b5)](),this['_listenToOnlineEvent']();}[_0x49c5a4(0x13b)](){const _0x16a0cf=_0x49c5a4;super['dispose'](),this[_0x16a0cf(0x5a5)][_0x16a0cf(0x27b)](_0x17dc7b=>_0x17dc7b[_0x16a0cf(0x13b)]()),this[_0x16a0cf(0x5a5)][_0x16a0cf(0x579)](),this[_0x16a0cf(0x38a)]['complete']();}async[_0x49c5a4(0x536)](_0x29462a){const _0xbe8fae=_0x49c5a4;if(this[_0xbe8fae(0x5a5)][_0xbe8fae(0x23e)](_0x29462a))return this[_0xbe8fae(0x5a5)][_0xbe8fae(0x17e)](_0x29462a);this[_0xbe8fae(0x397)]();const _0x5d9f89=this['_injector'][_0xbe8fae(0x203)](exports['CollaborationSession'],_0x29462a,this[_0xbe8fae(0x333)][_0xbe8fae(0x225)]());return this[_0xbe8fae(0x5a5)][_0xbe8fae(0x384)](_0x29462a,_0x5d9f89),_0x5d9f89;}['closeSession'](_0xe37197){const _0x1c2cfb=_0x49c5a4;var _0x81d501;const _0x375234=this[_0x1c2cfb(0x5a5)][_0x1c2cfb(0x17e)](_0xe37197);_0x375234&&(this['_sessions'][_0x1c2cfb(0x43c)](_0xe37197),_0x375234['close']()),this[_0x1c2cfb(0x5a5)][_0x1c2cfb(0x379)]||(_0x81d501=this[_0x1c2cfb(0x469)])==null||_0x81d501[_0x1c2cfb(0x518)]();}[_0x49c5a4(0x208)](){const _0x420510=_0x49c5a4;this[_0x420510(0x58f)]=0x0,this[_0x420510(0x52f)]!=null&&(clearTimeout(this[_0x420510(0x52f)]),this[_0x420510(0x52f)]=null),this[_0x420510(0x402)]();}async['_getSessionTicket'](){const _0x236a0f=_0x49c5a4;var _0x35bd13,_0x4d874f,_0x40d183;const _0x27c5eb=this[_0x236a0f(0x369)][_0x236a0f(0x162)](ee),_0x41652a=(_0x35bd13=_0x27c5eb==null?void 0x0:_0x27c5eb[_0x236a0f(0x129)])!=null?_0x35bd13:Fn;return(_0x40d183=(_0x4d874f=(await this['_httpService']['get'](_0x41652a,{'headers':{'Content-Type':_0x236a0f(0x170)}}))['body'])==null?void 0x0:_0x4d874f[_0x236a0f(0x1a5)])!=null?_0x40d183:'';}['_createSocketURL'](_0x3b0226){const _0x66ca11=_0x49c5a4;var _0x12a7ce,_0x54c517;const _0x2d1074=this[_0x66ca11(0x369)][_0x66ca11(0x162)](en),_0x4c566e=this[_0x66ca11(0x369)][_0x66ca11(0x162)](ee),_0x51e76b=(_0x54c517=(_0x12a7ce=_0x4c566e==null?void 0x0:_0x4c566e['collabWebSocketUrl'])!=null?_0x12a7ce:_0x2d1074)!=null?_0x54c517:Wn,_0x34a21c=new URL(_0x51e76b,window[_0x66ca11(0x506)][_0x66ca11(0x37c)]);return _0x34a21c[_0x66ca11(0x534)][_0x66ca11(0x384)](_0x66ca11(0x1e7),_0x3b0226),_0x34a21c[_0x66ca11(0xfb)]();}async[_0x49c5a4(0x2c8)](){const _0x5430c3=_0x49c5a4,_0x12b8f4=await this['_getSessionTicket'](),_0x5f1012=this['_createSocketURL'](_0x12b8f4),_0x262cd6=this[_0x5430c3(0x581)][_0x5430c3(0x1cd)](_0x5f1012);return this[_0x5430c3(0x5b5)]=_0x262cd6,_0x262cd6;}async['_tryEnsureSocket'](){const _0x1c158e=_0x49c5a4;var _0x10dd79,_0x4c3c10;try{const _0x3605ea=(_0x4c3c10=(_0x10dd79=this[_0x1c158e(0x469)])!=null?_0x10dd79:this[_0x1c158e(0x5b5)])!=null?_0x4c3c10:await this[_0x1c158e(0x2c8)]();if(_0x3605ea){const _0x36c48c=_0x3605ea[_0x1c158e(0x38c)];_0x3605ea[_0x1c158e(0x38c)]=_0x1f979a=>(this[_0x1c158e(0x1b7)](),_0x36c48c[_0x1c158e(0x4be)](_0x3605ea,[_0x1f979a])),_0x3605ea['message$']['subscribe'](_0x439a6a=>this[_0x1c158e(0x414)](_0x3605ea,_0x439a6a)),_0x3605ea['error$'][_0x1c158e(0x3d2)](V[_0x1c158e(0x51e)](0x1))['subscribe'](_0x3dc0c8=>this[_0x1c158e(0x2eb)][_0x1c158e(0x41d)](_0x1c158e(0x5a7),_0x3dc0c8)),_0x3605ea['open$'][_0x1c158e(0x3d2)](V[_0x1c158e(0x51e)](0x1))[_0x1c158e(0x2b8)](()=>{const _0x41939c=_0x1c158e;this[_0x41939c(0x2bf)](_0x3605ea);}),_0x3605ea[_0x1c158e(0x2ef)][_0x1c158e(0x3d2)](V[_0x1c158e(0x51e)](0x1))[_0x1c158e(0x2b8)](_0x53a98f=>{const _0x3990f3=_0x1c158e;this['_logService']['debug'](_0x3990f3(0x1dd),'socket\x20close',_0x53a98f),this[_0x3990f3(0x337)]();});}}catch(_0x3501e3){this['_logService'][_0x1c158e(0x41d)](_0x3501e3),this['_onConnectionFailed']();}}[_0x49c5a4(0x2bf)](_0x59e073){const _0x4ca28b=_0x49c5a4;this['_logService']['debug'](_0x4ca28b(0x1dd),'socket\x20open.'),_0x59e073[_0x4ca28b(0x38c)]({'cmd':G[_0x4ca28b(0x3dd)]}),this[_0x4ca28b(0x1b7)]();}[_0x49c5a4(0x3b5)](){const _0x25511c=_0x49c5a4;window['addEventListener'](_0x25511c(0x417),()=>this[_0x25511c(0x1be)]());}['_onOffline'](){const _0x4c6dba=_0x49c5a4;this[_0x4c6dba(0x3bf)]=!0x1,this[_0x4c6dba(0x5b5)]=null,this['_status$'][_0x4c6dba(0x35e)](se['OFFLINE']),this[_0x4c6dba(0x333)][_0x4c6dba(0x35e)](null),this[_0x4c6dba(0x168)](),this[_0x4c6dba(0x408)]();}['_onConnectionFailed'](){const _0x4d5a61=_0x49c5a4;var _0x43fc54;this['_onOffline'](),this[_0x4d5a61(0x58f)]<((_0x43fc54=this[_0x4d5a61(0x369)][_0x4d5a61(0x162)](sn))!=null?_0x43fc54:Yn)?(this[_0x4d5a61(0x25b)]['show']({'key':'collaboration-session-retry','type':Ie[_0x4d5a61(0x353)][_0x4d5a61(0x31a)],'content':this['_localeService']['t'](_0x4d5a61(0x426))}),this[_0x4d5a61(0x402)]()):this[_0x4d5a61(0x25b)][_0x4d5a61(0x2aa)]({'key':_0x4d5a61(0x43b),'type':Ie['MessageType'][_0x4d5a61(0x5a4)],'content':this[_0x4d5a61(0x383)]['t'](_0x4d5a61(0x48e))});}[_0x49c5a4(0x323)](){const _0x1f6a2b=_0x49c5a4,_0x5bf5d0=()=>{this['_socket']||this['reconnect']();},_0x12fe8e=()=>{const _0x4cbf01=_0x3dfb;this[_0x4cbf01(0x469)]||document[_0x4cbf01(0x165)]==='hidden'||this[_0x4cbf01(0x208)]();};window[_0x1f6a2b(0x26f)](_0x1f6a2b(0x5a1),_0x5bf5d0),document[_0x1f6a2b(0x26f)]('visibilitychange',_0x12fe8e);}[_0x49c5a4(0x402)](){const _0x464f0=_0x49c5a4;var _0x47dc40;const _0x4ed6b6=this['_retryCount'],_0x360954=this[_0x464f0(0x369)][_0x464f0(0x162)](ee),_0xae26b2=_0x4ed6b6===0x0?0x0:((_0x47dc40=_0x360954==null?void 0x0:_0x360954[_0x464f0(0x56f)])!=null?_0x47dc40:Gn)*0x2**_0x4ed6b6;this[_0x464f0(0x52f)]=window[_0x464f0(0x496)](()=>{const _0x44b88f=_0x464f0;clearTimeout(this[_0x44b88f(0x52f)]),this[_0x44b88f(0x52f)]=null,this[_0x44b88f(0x397)]();},_0xae26b2),this[_0x464f0(0x58f)]+=0x1;}['_onMessage'](_0x55c78e,_0x138a3d){const _0x4c6ce5=_0x49c5a4,{cmd:_0x56b032}=_0x138a3d;_0x56b032===G[_0x4c6ce5(0x3dd)]&&!this[_0x4c6ce5(0x3bf)]&&(_0x55c78e[_0x4c6ce5(0x583)]=_0x138a3d['data'][_0x4c6ce5(0x583)],this[_0x4c6ce5(0x333)]['next'](_0x55c78e),this['_status$']['next'](se[_0x4c6ce5(0x586)]),this[_0x4c6ce5(0x3bf)]=!0x0,this['_candidateSocket']=null),_0x56b032===G[_0x4c6ce5(0x294)]&&this[_0x4c6ce5(0x168)](),this[_0x4c6ce5(0x1b7)]();}[_0x49c5a4(0x1b7)](){const _0x1a504d=_0x49c5a4;var _0x2153d8;this[_0x1a504d(0x408)](),this[_0x1a504d(0x348)]=window[_0x1a504d(0x496)](()=>this[_0x1a504d(0x1f7)](),(_0x2153d8=this[_0x1a504d(0x369)][_0x1a504d(0x162)](tn))!=null?_0x2153d8:Vn);}[_0x49c5a4(0x1f7)](){const _0xb69499=_0x49c5a4;this[_0xb69499(0x469)][_0xb69499(0x38c)]({'cmd':G[_0xb69499(0x294)]}),this['_waitForHeartbeatResponse']();}[_0x49c5a4(0x287)](){const _0x21c561=_0x49c5a4;var _0x4cdabb;this[_0x21c561(0x47a)]=window[_0x21c561(0x496)](()=>this['_onConnectionFailed'](),(_0x4cdabb=this[_0x21c561(0x369)][_0x21c561(0x162)](Ct))!=null?_0x4cdabb:nn);}[_0x49c5a4(0x408)](){const _0xbbaad1=_0x49c5a4;this[_0xbbaad1(0x348)]!=null&&(clearTimeout(this[_0xbbaad1(0x348)]),this['_sendHeartbeatTimer']=null);}[_0x49c5a4(0x168)](){const _0x450cd9=_0x49c5a4;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x450cd9(0x47a)]),this['_timeoutTimer']=null);}},exports[_0x49c5a4(0x211)]=ui([pe(0x0,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),pe(0x1,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),pe(0x2,te[_0x49c5a4(0x1fb)]),pe(0x3,a[_0x49c5a4(0x156)]),pe(0x4,a['IConfigService']),pe(0x5,bt),pe(0x6,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)]))],exports['CollaborationSessionService']);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x49c5a4(0x1e3)]((s+0x100)['toString'](0x10)[_0x49c5a4(0x247)](0x1));function di(_0x42d44c,_0x3edb53=0x0){const _0x4e5891=_0x49c5a4;return(Y[_0x42d44c[_0x3edb53+0x0]]+Y[_0x42d44c[_0x3edb53+0x1]]+Y[_0x42d44c[_0x3edb53+0x2]]+Y[_0x42d44c[_0x3edb53+0x3]]+'-'+Y[_0x42d44c[_0x3edb53+0x4]]+Y[_0x42d44c[_0x3edb53+0x5]]+'-'+Y[_0x42d44c[_0x3edb53+0x6]]+Y[_0x42d44c[_0x3edb53+0x7]]+'-'+Y[_0x42d44c[_0x3edb53+0x8]]+Y[_0x42d44c[_0x3edb53+0x9]]+'-'+Y[_0x42d44c[_0x3edb53+0xa]]+Y[_0x42d44c[_0x3edb53+0xb]]+Y[_0x42d44c[_0x3edb53+0xc]]+Y[_0x42d44c[_0x3edb53+0xd]]+Y[_0x42d44c[_0x3edb53+0xe]]+Y[_0x42d44c[_0x3edb53+0xf]])[_0x4e5891(0x389)]();}let Je;const fi=new Uint8Array(0x10);function vi(){const _0x5caf40=_0x49c5a4;if(!Je){if(typeof crypto>'u'||!crypto[_0x5caf40(0x195)])throw new Error(_0x5caf40(0x407));Je=crypto['getRandomValues'][_0x5caf40(0x350)](crypto);}return Je(fi);}const Si=typeof crypto<'u'&&crypto[_0x49c5a4(0x1c5)]&&crypto['randomUUID'][_0x49c5a4(0x350)](crypto),Mt={'randomUUID':Si};function pi(_0xd190ad,_0x299c1d,_0x48e9e8){const _0x5d19c5=_0x49c5a4;if(Mt[_0x5d19c5(0x1c5)]&&!_0x299c1d&&!_0xd190ad)return Mt[_0x5d19c5(0x1c5)]();_0xd190ad=_0xd190ad||{};const _0x5994b0=_0xd190ad[_0x5d19c5(0x349)]||(_0xd190ad['rng']||vi)();return _0x5994b0[0x6]=_0x5994b0[0x6]&0xf|0x40,_0x5994b0[0x8]=_0x5994b0[0x8]&0x3f|0x80,di(_0x5994b0);}var mi=Object[_0x49c5a4(0x119)],gi=Object[_0x49c5a4(0x3ea)],Ii=(_0x33ea8c,_0x3f97ad,_0x2f6a4e,_0x36d474)=>{for(var _0x573f5f=_0x36d474>0x1?void 0x0:_0x36d474?gi(_0x3f97ad,_0x2f6a4e):_0x3f97ad,_0x1d6ecf=_0x33ea8c['length']-0x1,_0x59b582;_0x1d6ecf>=0x0;_0x1d6ecf--)(_0x59b582=_0x33ea8c[_0x1d6ecf])&&(_0x573f5f=(_0x36d474?_0x59b582(_0x3f97ad,_0x2f6a4e,_0x573f5f):_0x59b582(_0x573f5f))||_0x573f5f);return _0x36d474&&_0x573f5f&&mi(_0x3f97ad,_0x2f6a4e,_0x573f5f),_0x573f5f;},Ze=(_0x4b956b,_0x1500ba)=>(_0x230341,_0x32d21a)=>_0x1500ba(_0x230341,_0x32d21a,_0x4b956b);let ke=class{constructor(_0x2ebff5,_0x15cc3b,_0x5f2edd){const _0xfa4a52=_0x49c5a4;this['_injector']=_0x2ebff5,this[_0xfa4a52(0xee)]=_0x15cc3b,this['_renderManagerService']=_0x5f2edd;}[_0x49c5a4(0x4ac)](_0x3331b8){this['_transformUndoRedoStack'](_0x3331b8),this['_transformPreviousActiveRange'](_0x3331b8);}[_0x49c5a4(0x19b)](_0x3a3269){const _0x37fbc4=_0x49c5a4,{unitID:_0x2218c0}=_0x3a3269,_0x6dff08=this['_renderManagerService'][_0x37fbc4(0x11d)](_0x2218c0)[_0x37fbc4(0x1fe)](Z[_0x37fbc4(0x3b3)]),{redoCache:_0x8d426c}=_0x6dff08[_0x37fbc4(0xf3)]();if(_0x8d426c[_0x37fbc4(0x313)]===0x0)return _0x3a3269;let _0x5a5095=a[_0x37fbc4(0x4c9)][_0x37fbc4(0x2e7)](_0x3a3269['mutations'][0x0]);for(let _0x31ba14=0x0;_0x31ba14<_0x8d426c[_0x37fbc4(0x313)];_0x31ba14++){const _0x1f09a6={'id':'doc.mutation.rich-text-editing','params':{..._0x8d426c[_0x31ba14]}},_0x1b7a26=this[_0x37fbc4(0xee)][_0x37fbc4(0x3b7)](_0x5a5095,_0x1f09a6,!0x1);if(p[_0x37fbc4(0x299)](_0x1b7a26))throw _0x1b7a26[_0x37fbc4(0x41d)];_0x5a5095=_0x1b7a26['m1Prime'];}return{...a['Tools'][_0x37fbc4(0x2e7)](_0x3a3269),'mutations':[_0x5a5095]};}[_0x49c5a4(0x2e6)](_0x3de33d){const _0x28e3da=_0x49c5a4,{unitID:_0x11c299}=_0x3de33d,_0xf99537=this[_0x28e3da(0x181)][_0x28e3da(0x11d)](_0x11c299)[_0x28e3da(0x1fe)](Z[_0x28e3da(0x3b3)]),{undoCache:_0x27a9d0,redoCache:_0x425100}=_0xf99537['getUndoRedoMutationParamsCache']();if(_0x27a9d0[_0x28e3da(0x313)]===0x0||_0x425100[_0x28e3da(0x313)]===0x0)return;const _0x1f65fa=[],_0x30bb6a=[];let _0x425eb8=a['Tools']['deepClone'](_0x3de33d['mutations'][0x0]),_0x354be3=a['Tools'][_0x28e3da(0x2e7)](_0x3de33d[_0x28e3da(0x53d)][0x0]);for(let _0x36f301=_0x27a9d0[_0x28e3da(0x313)]-0x1;_0x36f301>=0x0;_0x36f301--){const _0x513813={'id':_0x28e3da(0x303),'params':{..._0x27a9d0[_0x36f301]}},_0x467b3c={'id':_0x28e3da(0x303),'params':{..._0x425100[_0x36f301]}},_0x2d82a4=this[_0x28e3da(0xee)]['transformMutation'](_0x425eb8,_0x513813,!0x1),_0x3f2353=this[_0x28e3da(0xee)][_0x28e3da(0x3b7)](_0x354be3,_0x467b3c,!0x1);if(p['isTransformMutationFailure'](_0x2d82a4))throw _0x2d82a4[_0x28e3da(0x41d)];if(p['isTransformMutationFailure'](_0x3f2353))throw _0x3f2353['error'];_0x1f65fa[_0x28e3da(0x4a9)](_0x2d82a4['m2Prime'][_0x28e3da(0x50f)]),_0x30bb6a['unshift'](_0x3f2353['m2Prime'][_0x28e3da(0x50f)]),_0x425eb8=_0x2d82a4[_0x28e3da(0x3d5)],_0x354be3=_0x3f2353[_0x28e3da(0x3d5)];}_0xf99537['setUndoRedoMutationParamsCache']({'undoCache':_0x1f65fa,'redoCache':_0x30bb6a});}[_0x49c5a4(0x254)](_0x159a48){const _0x32744f=_0x49c5a4,{unitID:_0x247311}=_0x159a48,_0x97624=this[_0x32744f(0x181)][_0x32744f(0x11d)](_0x247311)['with'](Z[_0x32744f(0x3b3)]),_0x5a82bd=_0x97624['getActiveRange']();if(_0x5a82bd==null)return;const _0xd9a154=[{'id':_0x32744f(0x303),'params':{'unitId':_0x159a48[_0x32744f(0x43f)],'actions':null,'textRanges':[_0x5a82bd]}}],_0x123f6c=this[_0x32744f(0xee)][_0x32744f(0x382)](_0x159a48,_0xd9a154);if(!p['isTransformMutationsWithChangesetSuccess'](_0x123f6c))throw _0x123f6c[_0x32744f(0x41d)];const _0x4c18d9=_0x123f6c[_0x32744f(0x4aa)][0x0][_0x32744f(0x50f)][_0x32744f(0x284)];Array[_0x32744f(0x425)](_0x4c18d9)&&_0x4c18d9['length']&&_0x97624[_0x32744f(0x2df)](_0x4c18d9[0x0]);}};ke=Ii([Ze(0x0,a['Inject'](a['Injector'])),Ze(0x1,p['ITransformService']),Ze(0x2,K[_0x49c5a4(0x2ee)])],ke);var Ci=Object['defineProperty'],Ei=Object[_0x49c5a4(0x3ea)],bi=(_0x55ae9a,_0x42466b,_0x29353d,_0x3ba4a3)=>{for(var _0x579a2b=_0x3ba4a3>0x1?void 0x0:_0x3ba4a3?Ei(_0x42466b,_0x29353d):_0x42466b,_0x28475e=_0x55ae9a['length']-0x1,_0x17365d;_0x28475e>=0x0;_0x28475e--)(_0x17365d=_0x55ae9a[_0x28475e])&&(_0x579a2b=(_0x3ba4a3?_0x17365d(_0x42466b,_0x29353d,_0x579a2b):_0x17365d(_0x579a2b))||_0x579a2b);return _0x3ba4a3&&_0x579a2b&&Ci(_0x42466b,_0x29353d,_0x579a2b),_0x579a2b;},Pe=(_0x155e1a,_0xd135f)=>(_0xd15051,_0x4d7427)=>_0xd135f(_0xd15051,_0x4d7427,_0x155e1a);exports[_0x49c5a4(0x29e)]=class extends a['Disposable']{constructor(_0x2c3131,_0x528bad,_0x7194f7,_0x2a3946,_0x404568){const _0x5d3b50=_0x49c5a4;super(),I(this,_0x5d3b50(0x550),new Map()),I(this,_0x5d3b50(0x474),new Map()),I(this,'_disabled',!0x1),(this['_configService']=_0x2c3131,this[_0x5d3b50(0x326)]=_0x528bad,this[_0x5d3b50(0x2ae)]=_0x7194f7,this['_localeService']=_0x2a3946,this[_0x5d3b50(0x4dd)]=_0x404568,this[_0x5d3b50(0x3b6)]());}[_0x49c5a4(0x365)](){this['_disabled']=!0x0;}[_0x49c5a4(0x3da)](){const _0x3853f4=_0x49c5a4;this[_0x3853f4(0x5b9)]=!0x1;}['dispose'](){const _0x1b0578=_0x49c5a4;this[_0x1b0578(0x266)]()[_0x1b0578(0x2e8)](()=>super[_0x1b0578(0x13b)]());}async[_0x49c5a4(0x16f)](_0xb60006){const _0x568c66=_0x49c5a4;return this[_0x568c66(0x5b9)]?null:this[_0x568c66(0x326)][_0x568c66(0x2b1)](At(_0xb60006));}async[_0x49c5a4(0x368)](_0x29aaee,_0x5ea66e){const _0x2e2770=_0x49c5a4;return!!this[_0x2e2770(0x326)][_0x2e2770(0x32c)](_0x29aaee,_0x5ea66e);}[_0x49c5a4(0x422)](_0x472f01,_0x4d74e9,_0x25190f,_0x1d95d6){const _0x3b1180=_0x49c5a4,_0xb59515=this[_0x3b1180(0x4dd)]['getCurrentRevOfUnit'](_0x472f01);this[_0x3b1180(0x550)][_0x3b1180(0x384)](_0x472f01,{'unitID':_0x472f01,'type':_0x4d74e9,'awaitingChangeset':_0x25190f,'mutations':_0x1d95d6,'rev':_0xb59515}),this[_0x3b1180(0x474)][_0x3b1180(0x23e)](_0x472f01)||this[_0x3b1180(0xeb)](_0x472f01);}[_0x49c5a4(0xeb)](_0x351dec){const _0x44745b=_0x49c5a4,_0x414208=this['_getSaveTimeout']();_0x414208===0x0?this['_saveCache'](_0x351dec):this[_0x44745b(0x474)]['set'](_0x351dec,setTimeout(()=>this[_0x44745b(0x51c)](_0x351dec),_0x414208));}[_0x49c5a4(0x378)](){const _0x270075=_0x49c5a4;var _0x20c5d8;return(_0x20c5d8=this[_0x270075(0x369)][_0x270075(0x162)](rn))!=null?_0x20c5d8:Kn;}[_0x49c5a4(0x51c)](_0x3a1fe2){const _0xd5bd08=_0x49c5a4,_0x42dd64=this['_saveTaskMap'][_0xd5bd08(0x17e)](_0x3a1fe2);return _0x42dd64!==void 0x0&&window[_0xd5bd08(0x438)](_0x42dd64),this[_0xd5bd08(0x326)][_0xd5bd08(0x32c)](At(_0x3a1fe2),this[_0xd5bd08(0x550)][_0xd5bd08(0x17e)](_0x3a1fe2))[_0xd5bd08(0x2e8)](()=>this[_0xd5bd08(0x474)][_0xd5bd08(0x43c)](_0x3a1fe2));}async[_0x49c5a4(0x266)](){const _0xff9c66=_0x49c5a4,_0x2d1ca2=[];this[_0xff9c66(0x474)]['forEach']((_0x2f65e2,_0x1f27f1)=>{const _0xf9be9e=_0xff9c66;window[_0xf9be9e(0x438)](_0x2f65e2),_0x2d1ca2['push'](this[_0xf9be9e(0x51c)](_0x1f27f1)[_0xf9be9e(0x2e8)](()=>{const _0x5e660a=_0xf9be9e;this[_0x5e660a(0x474)][_0x5e660a(0x43c)](_0x1f27f1);}));}),await Promise[_0xff9c66(0x412)](_0x2d1ca2);}[_0x49c5a4(0x3b6)](){const _0x1b860d=_0x49c5a4;this['disposeWithMe'](this['_beforeCloseService'][_0x1b860d(0x490)](()=>{const _0x4c841c=_0x1b860d;if(this[_0x4c841c(0x474)]['size'])return this[_0x4c841c(0x383)]['t'](_0x4c841c(0x131));}));}},exports[_0x49c5a4(0x29e)]=bi([Pe(0x0,a[_0x49c5a4(0x351)]),Pe(0x1,a[_0x49c5a4(0x5b4)]),Pe(0x2,te[_0x49c5a4(0x434)]),Pe(0x3,a['Inject'](a[_0x49c5a4(0x3ba)])),Pe(0x4,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)]))],exports[_0x49c5a4(0x29e)]);function At(_0x3f0271){return'unit-cache-'+_0x3f0271;}var Ti=Object[_0x49c5a4(0x119)],Ri=Object[_0x49c5a4(0x3ea)],yi=(_0x5e847c,_0x1e823e,_0x5ddeed,_0x1555dc)=>{const _0x4a99d9=_0x49c5a4;for(var _0x2c3a62=_0x1555dc>0x1?void 0x0:_0x1555dc?Ri(_0x1e823e,_0x5ddeed):_0x1e823e,_0x514f51=_0x5e847c[_0x4a99d9(0x313)]-0x1,_0x14a131;_0x514f51>=0x0;_0x514f51--)(_0x14a131=_0x5e847c[_0x514f51])&&(_0x2c3a62=(_0x1555dc?_0x14a131(_0x1e823e,_0x5ddeed,_0x2c3a62):_0x14a131(_0x2c3a62))||_0x2c3a62);return _0x1555dc&&_0x2c3a62&&Ti(_0x1e823e,_0x5ddeed,_0x2c3a62),_0x2c3a62;},Qe=(_0x4a07dc,_0x37bfeb)=>(_0x31458d,_0x119e3a)=>_0x37bfeb(_0x31458d,_0x119e3a,_0x4a07dc);function Oi(_0x390492){const _0x1d6b89=_0x49c5a4,{unitID:_0x66f4d2,mutations:_0x13069b}=_0x390492;return{'unitId':_0x66f4d2,'subUnitId':_0x13069b[0x0][_0x1d6b89(0x50f)][_0x1d6b89(0x555)]};}let Be=class{constructor(_0x4f1646,_0x4a0ff7,_0xc4e847){const _0x1342aa=_0x49c5a4;this[_0x1342aa(0x13d)]=_0x4f1646,this['_transformService']=_0x4a0ff7,this['_instanceService']=_0xc4e847;}[_0x49c5a4(0x1d8)](_0x153e00){const _0xf6c0df=_0x49c5a4;var _0x1ce878,_0x38231a,_0x3f2b11,_0x56f5b5;const _0x1f0c5e=this['_injector']['get'](B[_0xf6c0df(0x49c)]),{unitId:_0x3f7564,subUnitId:_0x51d988}=Oi(_0x153e00),_0x7ead8b=_0x1f0c5e[_0xf6c0df(0x4fb)](_0x3f7564)[_0xf6c0df(0x3eb)](),_0x18f7e2=(_0x38231a=(_0x1ce878=this[_0xf6c0df(0x3f3)][_0xf6c0df(0x198)](_0x3f7564))==null?void 0x0:_0x1ce878[_0xf6c0df(0x3dc)]())==null?void 0x0:_0x38231a[_0xf6c0df(0x153)]();if(_0x7ead8b[_0xf6c0df(0x313)]===0x0||!_0x3f7564||!_0x51d988)return;const _0x49643e=[{'id':B[_0xf6c0df(0x2d4)]['id'],'params':{'unitId':_0x3f7564,'subUnitId':_0x18f7e2,'selections':a[_0xf6c0df(0x4c9)][_0xf6c0df(0x2e7)](_0x7ead8b)}}],_0x5519fe=this[_0xf6c0df(0xee)]['transformMutationsWithChangeset'](_0x153e00,_0x49643e);if(!p['isTransformMutationsWithChangesetSuccess'](_0x5519fe))throw _0x5519fe[_0xf6c0df(0x41d)];const _0x490965=(_0x56f5b5=(_0x3f2b11=_0x5519fe['m2Prime'][0x0])==null?void 0x0:_0x3f2b11['params'])==null?void 0x0:_0x56f5b5['selections'];if(Array[_0xf6c0df(0x425)](_0x490965)&&_0x490965[_0xf6c0df(0x313)]){if(_0x490965[_0xf6c0df(0x313)]===_0x49643e[0x0][_0xf6c0df(0x50f)]['selections'][_0xf6c0df(0x313)]&&_0x490965[_0xf6c0df(0x27a)]((_0x446e73,_0x23f183)=>a[_0xf6c0df(0x259)][_0xf6c0df(0x30a)](_0x446e73[_0xf6c0df(0x2ac)],_0x49643e[0x0][_0xf6c0df(0x50f)]['selections'][_0x23f183][_0xf6c0df(0x2ac)])))return;this['_injector']['get'](a[_0xf6c0df(0x1a3)])['executeCommand'](B[_0xf6c0df(0x2d4)]['id'],{'unitId':_0x3f7564,'subUnitId':_0x18f7e2,'selections':_0x490965});}}};Be=yi([Qe(0x0,a['Inject'](a['Injector'])),Qe(0x1,p[_0x49c5a4(0x169)]),Qe(0x2,a[_0x49c5a4(0x1ea)])],Be);const qe=a[_0x49c5a4(0x1a6)](_0x49c5a4(0x566));var un=(_0x57aeb2=>(_0x57aeb2[_0x57aeb2[_0x49c5a4(0x268)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x57aeb2[_0x57aeb2[_0x49c5a4(0x495)]=0x1]=_0x49c5a4(0x495),_0x57aeb2))(un||{});const Nt=0x7530,Lt=_0x49c5a4(0x3a9);class Di extends a[_0x49c5a4(0x559)]{constructor(){const _0x2f2c08=_0x49c5a4;super(),I(this,_0x2f2c08(0x57d),a[_0x2f2c08(0x4c9)][_0x2f2c08(0x2a7)]()),I(this,_0x2f2c08(0x465),new Set()),I(this,_0x2f2c08(0x47e),new Map()),I(this,_0x2f2c08(0x344),null),I(this,_0x2f2c08(0x39e),new Map()),I(this,_0x2f2c08(0x27d),new Map()),this[_0x2f2c08(0x128)]();}[_0x49c5a4(0x13b)](){const _0xbb638a=_0x49c5a4;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x11bd70,_0x12504f)=>this[_0xbb638a(0x4a3)](_0x12504f)),this[_0xbb638a(0x344)]&&window[_0xbb638a(0x3fc)](this[_0xbb638a(0x344)]);}[_0x49c5a4(0x3f6)](_0x525d96){const _0x245030=_0x49c5a4;return this[_0x245030(0x31e)](_0x525d96)['pipe'](A[_0x245030(0x132)]());}[_0x49c5a4(0x23f)](_0x2d364a){const _0x340829=_0x49c5a4;this[_0x340829(0x465)][_0x340829(0x379)]===0x0&&this[_0x340829(0x187)](),this[_0x340829(0x465)][_0x340829(0x424)](_0x2d364a),this[_0x340829(0x1d1)]({'type':0x0,'memberID':this[_0x340829(0x57d)],'unitIDs':[_0x2d364a],'isForwarded':!0x1});}[_0x49c5a4(0x10e)](_0x16ec6e){const _0x59e3d9=_0x49c5a4;this[_0x59e3d9(0x465)][_0x59e3d9(0x43c)](_0x16ec6e),this[_0x59e3d9(0x465)][_0x59e3d9(0x379)]===0x0&&this[_0x59e3d9(0x344)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x49c5a4(0x128)](){const _0x40671a=_0x49c5a4;this['disposeWithMe'](a['toDisposable'](A[_0x40671a(0x182)](window,'storage')[_0x40671a(0x2b8)](_0x363492=>{const _0x571ed9=_0x40671a;if(_0x363492[_0x571ed9(0x206)]!==Lt||!_0x363492[_0x571ed9(0x33a)])return;const _0x2e58da=JSON[_0x571ed9(0x2fc)](_0x363492[_0x571ed9(0x33a)]);this[_0x571ed9(0x54d)](_0x2e58da);}))),window[_0x40671a(0x26f)](_0x40671a(0x585),()=>this[_0x40671a(0x1d1)]({'type':0x1,'memberID':this[_0x40671a(0x57d)],'unitIDs':Array[_0x40671a(0x372)](this[_0x40671a(0x465)])}));}[_0x49c5a4(0x54d)](_0x188bbb){const _0x254186=_0x49c5a4;switch(_0x188bbb[_0x254186(0x4a4)]){case 0x0:this[_0x254186(0xf7)](_0x188bbb);break;case 0x1:this[_0x254186(0x4ce)](_0x188bbb);break;case 0x2:this[_0x254186(0x161)](_0x188bbb);break;}}['_handleJoinEvent'](_0xa015d7){const _0x2a1136=_0x49c5a4,{unitIDs:_0x47d031,memberID:_0x15e541,isForwarded:_0x2e2482}=_0xa015d7;_0x47d031['forEach'](_0x3621b0=>{const _0x45645f=_0x3dfb;if(!_0x2e2482&&this['_unitOnClients'][_0x45645f(0x23e)](_0x3621b0)&&this[_0x45645f(0x31e)](_0x3621b0)['next'](0x1),!this[_0x45645f(0x47e)][_0x45645f(0x23e)](_0x3621b0)||!this[_0x45645f(0x47e)][_0x45645f(0x17e)](_0x3621b0)[_0x45645f(0x23e)](_0x15e541)){const _0x153d86=this['_unitOnClients'][_0x45645f(0x17e)](_0x3621b0)||new Set();_0x153d86[_0x45645f(0x424)](_0x15e541),this['_unitOnClients']['set'](_0x3621b0,_0x153d86),this['_scheduleClearOtherTimer'](_0x15e541);}}),_0x2e2482||this['_send']({'type':0x0,'memberID':this[_0x2a1136(0x57d)],'unitIDs':[...this[_0x2a1136(0x465)]],'isForwarded':!0x0});}[_0x49c5a4(0x488)](_0x5087ca){const _0x272de2=_0x49c5a4;this['_removeClearOtherTimer'](_0x5087ca);const _0x13f94b=window[_0x272de2(0x496)](()=>{const _0x22614f=_0x272de2;this['_unitOnClients'][_0x22614f(0x27b)](_0x220b6e=>{const _0x151ec1=_0x22614f;_0x220b6e[_0x151ec1(0x43c)](_0x5087ca);});},Nt*0x2);this[_0x272de2(0x39e)][_0x272de2(0x384)](_0x5087ca,_0x13f94b);}[_0x49c5a4(0x4a3)](_0x2b73cb){const _0x745726=_0x49c5a4;if(this[_0x745726(0x39e)]['has'](_0x2b73cb)){const _0x1cf2c7=this[_0x745726(0x39e)]['get'](_0x2b73cb);_0x1cf2c7&&window[_0x745726(0x438)](_0x1cf2c7),this[_0x745726(0x39e)]['set'](_0x2b73cb,null);}}['_handleLeaveEvent'](_0x5c025b){const _0x4c52d0=_0x49c5a4,{memberID:_0x3c2ca7,unitIDs:_0x38e5f4}=_0x5c025b;_0x38e5f4[_0x4c52d0(0x27b)](_0x55d802=>{const _0x289219=_0x4c52d0;var _0x2d80c6;const _0x37a4d7=this[_0x289219(0x47e)][_0x289219(0x17e)](_0x55d802);_0x37a4d7&&(_0x37a4d7[_0x289219(0x43c)](_0x3c2ca7),(_0x2d80c6=this[_0x289219(0x31e)](_0x55d802))==null||_0x2d80c6[_0x289219(0x35e)](_0x37a4d7[_0x289219(0x379)]===0x0?0x0:0x1));}),this[_0x4c52d0(0x4a3)](_0x3c2ca7);}[_0x49c5a4(0x161)](_0x112eec){const _0x37458e=_0x49c5a4;this[_0x37458e(0x488)](_0x112eec['memberID']);}[_0x49c5a4(0x1d1)](_0x301443){const _0x34a502=_0x49c5a4;localStorage[_0x34a502(0x32c)](Lt,JSON[_0x34a502(0x1f5)](_0x301443));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Nt);}[_0x49c5a4(0x31e)](_0x3432cd){const _0x828388=_0x49c5a4;return this[_0x828388(0x27d)][_0x828388(0x23e)](_0x3432cd)||this[_0x828388(0x27d)][_0x828388(0x384)](_0x3432cd,new A[(_0x828388(0x2a1))](0x0)),this['_unitStatus'][_0x828388(0x17e)](_0x3432cd);}}var wi=Object['defineProperty'],Pi=Object['getOwnPropertyDescriptor'],Ui=(_0x5a2c91,_0x107fa3,_0x30911c,_0x2d8da7)=>{for(var _0x54dd28=_0x2d8da7>0x1?void 0x0:_0x2d8da7?Pi(_0x107fa3,_0x30911c):_0x107fa3,_0xdeea69=_0x5a2c91['length']-0x1,_0x5565f5;_0xdeea69>=0x0;_0xdeea69--)(_0x5565f5=_0x5a2c91[_0xdeea69])&&(_0x54dd28=(_0x2d8da7?_0x5565f5(_0x107fa3,_0x30911c,_0x54dd28):_0x5565f5(_0x54dd28))||_0x54dd28);return _0x2d8da7&&_0x54dd28&&wi(_0x107fa3,_0x30911c,_0x54dd28),_0x54dd28;},et=(_0x1bd6c7,_0x5f2759)=>(_0x2703bf,_0x1c859b)=>_0x5f2759(_0x2703bf,_0x1c859b,_0x1bd6c7);let We=class{constructor(_0x7db34a,_0x387bdb,_0x281ac1){const _0x3a80e0=_0x49c5a4;this[_0x3a80e0(0x13d)]=_0x7db34a,this[_0x3a80e0(0xee)]=_0x387bdb,this[_0x3a80e0(0x528)]=_0x281ac1;}['transformStateCache'](_0x4e39ab){const _0x2544b7=_0x49c5a4;this[_0x2544b7(0x24e)](_0x4e39ab);}[_0x49c5a4(0x19b)](_0x1126c8){const _0x34f24b=_0x49c5a4,{unitID:_0x336efc}=_0x1126c8,{collaboration:_0x33d480}=this['_docStateChangeManagerService'][_0x34f24b(0x221)](_0x336efc);if(_0x33d480[_0x34f24b(0x313)]===0x0)return _0x1126c8;let _0x5358ec=a[_0x34f24b(0x4c9)]['deepClone'](_0x1126c8['mutations'][0x0]);for(let _0x45f55c=0x0;_0x45f55c<_0x33d480[_0x34f24b(0x313)];_0x45f55c++){const _0x3ed093={'id':_0x34f24b(0x303),'params':{'unitId':_0x33d480[_0x45f55c][_0x34f24b(0x212)],..._0x33d480[_0x45f55c][_0x34f24b(0x37e)]}},_0x548ed4=this['_transformService'][_0x34f24b(0x3b7)](_0x5358ec,_0x3ed093,!0x1);if(p['isTransformMutationFailure'](_0x548ed4))throw _0x548ed4['error'];_0x5358ec=_0x548ed4['m1Prime'];}return{...a[_0x34f24b(0x4c9)][_0x34f24b(0x2e7)](_0x1126c8),'mutations':[_0x5358ec]};}[_0x49c5a4(0x24e)](_0x2ff50a){const _0x4fc5dd=_0x49c5a4,{unitID:_0x7a8ab0}=_0x2ff50a,{history:_0x3b34b6,collaboration:_0x11af53}=this[_0x4fc5dd(0x528)][_0x4fc5dd(0x221)](_0x7a8ab0);if(_0x3b34b6[_0x4fc5dd(0x313)]===0x0&&_0x11af53[_0x4fc5dd(0x313)]===0x0)return;const _0x72a7f6=[],_0x18ac97=[];let _0x30ddab=a[_0x4fc5dd(0x4c9)]['deepClone'](_0x2ff50a[_0x4fc5dd(0x53d)][0x0]),_0x5e17b3=a[_0x4fc5dd(0x4c9)][_0x4fc5dd(0x2e7)](_0x2ff50a[_0x4fc5dd(0x53d)][0x0]);for(let _0x59e6a7=_0x3b34b6[_0x4fc5dd(0x313)]-0x1;_0x59e6a7>=0x0;_0x59e6a7--){const _0x1a2ab4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b34b6[_0x59e6a7]['unitId'],..._0x3b34b6[_0x59e6a7][_0x4fc5dd(0x250)]}},_0x7c9c2a={'id':_0x4fc5dd(0x303),'params':{'unitId':_0x3b34b6[_0x59e6a7][_0x4fc5dd(0x212)],..._0x3b34b6[_0x59e6a7][_0x4fc5dd(0x37e)]}},_0x34daaf=this['_transformService'][_0x4fc5dd(0x3b7)](_0x30ddab,_0x1a2ab4,!0x1),_0x4e48c9=this['_transformService'][_0x4fc5dd(0x3b7)](_0x5e17b3,_0x7c9c2a,!0x1);if(p[_0x4fc5dd(0x299)](_0x34daaf))throw _0x34daaf[_0x4fc5dd(0x41d)];if(p[_0x4fc5dd(0x299)](_0x4e48c9))throw _0x4e48c9[_0x4fc5dd(0x41d)];_0x72a7f6[_0x4fc5dd(0x4a9)]({..._0x3b34b6[_0x59e6a7],'undoState':_0x34daaf[_0x4fc5dd(0x4aa)][_0x4fc5dd(0x50f)],'redoState':_0x4e48c9[_0x4fc5dd(0x4aa)]['params']}),_0x30ddab=_0x34daaf[_0x4fc5dd(0x3d5)],_0x5e17b3=_0x4e48c9[_0x4fc5dd(0x3d5)];}_0x30ddab=a['Tools'][_0x4fc5dd(0x2e7)](_0x2ff50a['mutations'][0x0]),_0x5e17b3=a[_0x4fc5dd(0x4c9)]['deepClone'](_0x2ff50a[_0x4fc5dd(0x53d)][0x0]);for(let _0x4f1861=_0x11af53['length']-0x1;_0x4f1861>=0x0;_0x4f1861--){const _0x455e2c={'id':_0x4fc5dd(0x303),'params':{'unitId':_0x11af53[_0x4f1861]['unitId'],..._0x11af53[_0x4f1861]['undoState']}},_0x2dd4a4={'id':_0x4fc5dd(0x303),'params':{'unitId':_0x11af53[_0x4f1861]['unitId'],..._0x11af53[_0x4f1861][_0x4fc5dd(0x37e)]}},_0x3fe740=this['_transformService'][_0x4fc5dd(0x3b7)](_0x30ddab,_0x455e2c,!0x1),_0x2553c6=this[_0x4fc5dd(0xee)][_0x4fc5dd(0x3b7)](_0x5e17b3,_0x2dd4a4,!0x1);if(p[_0x4fc5dd(0x299)](_0x3fe740))throw _0x3fe740[_0x4fc5dd(0x41d)];if(p[_0x4fc5dd(0x299)](_0x2553c6))throw _0x2553c6['error'];_0x18ac97[_0x4fc5dd(0x4a9)]({..._0x11af53[_0x4f1861],'undoState':_0x3fe740[_0x4fc5dd(0x4aa)][_0x4fc5dd(0x50f)],'redoState':_0x2553c6[_0x4fc5dd(0x4aa)]['params']}),_0x30ddab=_0x3fe740[_0x4fc5dd(0x3d5)],_0x5e17b3=_0x2553c6[_0x4fc5dd(0x3d5)];}this[_0x4fc5dd(0x528)][_0x4fc5dd(0xf9)](_0x7a8ab0,{'history':_0x72a7f6,'collaboration':_0x18ac97});}};We=Ui([et(0x0,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),et(0x1,p['ITransformService']),et(0x2,a['Inject'](Z[_0x49c5a4(0x1ab)]))],We);function dn(_0x2aa34e){const _0x3dd832=_0x49c5a4;let _0x469dab='';for(const _0x47755a of _0x2aa34e){const {startOffset:_0x4cca3d,endOffset:_0x22e048,isActive:_0x4428c1,rangeType:_0x5b1e2b,segmentId:_0x40b95a,segmentPage:_0x5220b8}=_0x47755a;_0x469dab[_0x3dd832(0x313)]&&(_0x469dab+=','),_0x469dab+=_0x4cca3d+':'+_0x22e048+':'+(_0x4428c1?'1':'0')+':'+_0x5b1e2b+':'+_0x40b95a+':'+_0x5220b8;}return _0x469dab;}function Mi(_0x6ed6ed){const _0x579329=_0x49c5a4,_0x46f7f3=_0x6ed6ed[_0x579329(0x289)](','),_0x8b428c=[];for(const _0x25df73 of _0x46f7f3){const [_0x45f269,_0x5aed31,_0x5e8313,_0x3fe163,_0x570c68,_0xdf15d3]=_0x25df73[_0x579329(0x289)](':');_0x8b428c['push']({'startOffset':Number(_0x45f269),'endOffset':Number(_0x5aed31),'collapsed':_0x45f269===_0x5aed31,'isActive':_0x5e8313==='1','rangeType':_0x3fe163===a[_0x579329(0x110)][_0x579329(0x433)]?a[_0x579329(0x110)][_0x579329(0x433)]:a[_0x579329(0x110)]['RECT'],'segmentId':typeof _0x570c68==_0x579329(0x358)?String(_0x570c68):'','segmentPage':Number(_0xdf15d3!=null?_0xdf15d3:-0x1)});}return _0x8b428c[_0x579329(0x42b)](_0x51ae43=>_0x51ae43[_0x579329(0x3be)])||(_0x8b428c[0x0][_0x579329(0x3be)]=!0x0),_0x8b428c;}class Rt extends a[_0x49c5a4(0x1db)]{constructor(){const _0x4b52a1=_0x49c5a4;super(...arguments),I(this,_0x4b52a1(0x2cf),new A['BehaviorSubject'](null)),I(this,'collabCursorState$',this[_0x4b52a1(0x2cf)][_0x4b52a1(0x225)]());}[_0x49c5a4(0x12d)](_0x3c4d76){const {unitID:_0xc58b13,memberID:_0x2bf1e8,textRanges:_0x4c05f6}=_0x3c4d76,_0x5f35bf=dn(_0x4c05f6);if(_0x5f35bf==='')return;const _0x4bb511={'unitID':_0xc58b13,'memberID':_0x2bf1e8,'selection':_0x5f35bf};this['_collabCursorState$']['next'](_0x4bb511);}}var Ai=Object[_0x49c5a4(0x119)],Ni=Object[_0x49c5a4(0x3ea)],Li=(_0x18b1a6,_0x285fd8,_0x426478,_0x2a7178)=>{for(var _0x14b844=_0x2a7178>0x1?void 0x0:_0x2a7178?Ni(_0x285fd8,_0x426478):_0x285fd8,_0x40e668=_0x18b1a6['length']-0x1,_0x32a0cc;_0x40e668>=0x0;_0x40e668--)(_0x32a0cc=_0x18b1a6[_0x40e668])&&(_0x14b844=(_0x2a7178?_0x32a0cc(_0x285fd8,_0x426478,_0x14b844):_0x32a0cc(_0x14b844))||_0x14b844);return _0x2a7178&&_0x14b844&&Ai(_0x285fd8,_0x426478,_0x14b844),_0x14b844;},xt=(_0x1c5921,_0x42a748)=>(_0x5be733,_0x9e507f)=>_0x42a748(_0x5be733,_0x9e507f,_0x1c5921);let Fe=class{constructor(_0x412e42,_0x41655c){const _0x20e25b=_0x49c5a4;this[_0x20e25b(0x13d)]=_0x412e42,this[_0x20e25b(0xee)]=_0x41655c;}[_0x49c5a4(0x1d8)](_0x2bd082){const _0x310aa6=_0x49c5a4;var _0x3b98d7;const _0x2486ba=this[_0x310aa6(0x13d)]['get'](ye['DocSelectionManagerService']),_0x2e9408=(_0x3b98d7=_0x2486ba[_0x310aa6(0x316)]())!=null?_0x3b98d7:[];if(_0x2e9408['length']===0x0)return;const _0x771458=_0x2bd082[_0x310aa6(0x43f)],_0x3cef36=[{'id':_0x310aa6(0x303),'params':{'unitId':_0x771458,'actions':null,'textRanges':_0x2e9408}}],_0x1314e4=this[_0x310aa6(0xee)][_0x310aa6(0x382)](_0x2bd082,_0x3cef36);if(!p[_0x310aa6(0x546)](_0x1314e4))throw _0x1314e4[_0x310aa6(0x41d)];const _0x1ba5d4=_0x1314e4['m2Prime'][0x0]['params'][_0x310aa6(0x284)];Array[_0x310aa6(0x425)](_0x1ba5d4)&&_0x1ba5d4['length']&&_0x2486ba['replaceDocRanges'](_0x1ba5d4,{'unitId':_0x771458,'subUnitId':_0x771458},!0x1);}};Fe=Li([xt(0x0,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),xt(0x1,p[_0x49c5a4(0x169)])],Fe);const xi=new Set([B[_0x49c5a4(0x4f1)]['id']]);function jt(_0x527a9b,_0x5b92da,_0x30537f,_0xb4fc57,_0x4eb633){const _0x26ac96=_0x49c5a4;var _0xb679e0,_0x30a9a7,_0x5c6d0a,_0x57af13;const _0x3ec059=[];for(const _0x59d28b of _0x527a9b)if(xi[_0x26ac96(0x23e)](_0x59d28b['id'])){if(_0x3ec059[_0x26ac96(0x313)]>0x0)break;_0x3ec059[_0x26ac96(0x1e3)](_0x59d28b);break;}else _0x3ec059[_0x26ac96(0x1e3)](_0x59d28b);const _0x5d9cb6=(_0x30a9a7=(_0xb679e0=_0x4eb633[_0x26ac96(0x1ce)]())==null?void 0x0:_0xb679e0[_0x26ac96(0x523)])!=null?_0x30a9a7:_0x26ac96(0x55c),_0x7f09de=(_0x57af13=(_0x5c6d0a=_0x4eb633['getCurrentUser']())==null?void 0x0:_0x5c6d0a['memberID'])!=null?_0x57af13:_0x26ac96(0x55c);return{'changeset':{'unitID':_0x5b92da,'type':p[_0x26ac96(0x53a)](_0x30537f[_0x26ac96(0x245)](_0x5b92da)),'baseRev':_0xb4fc57[_0x26ac96(0x473)](_0x5b92da),'revision':0x0,'userID':_0x5d9cb6,'memberID':_0x7f09de,'mutations':_0x3ec059},'pendingMutations':_0x527a9b[_0x26ac96(0x247)](_0x3ec059[_0x26ac96(0x313)])};}function ji(_0x5c8799,_0xa2342,_0x2cf522,_0x3c7f75,_0x150315){const _0x3849cc=_0x49c5a4;var _0x491159,_0x104df2,_0x27a2ce,_0x3a0eeb;const _0x405101=[_0x5c8799[_0x3849cc(0x5a8)]((_0x4e0b53,_0x5623ed)=>{const _0x3e1f5f=_0x3849cc;var _0x13ee5b;const {id:_0x1d6214}=_0x4e0b53,{id:_0x4002e0,type:_0x1db683}=_0x5623ed,_0x274178=(_0x13ee5b=_0x4e0b53[_0x3e1f5f(0x50f)])!=null?_0x13ee5b:{'actions':null},_0x3c4852=_0x5623ed[_0x3e1f5f(0x50f)];if(_0x1d6214&&_0x1d6214!==_0x4002e0)throw new Error(_0x3e1f5f(0x4e5)+_0x1d6214+_0x3e1f5f(0x20e)+_0x4002e0+'.');return{..._0x4e0b53,'id':_0x4002e0,'type':_0x1db683,'params':{'unitId':_0x3c4852[_0x3e1f5f(0x212)],'textRanges':_0x3c4852[_0x3e1f5f(0x284)],'actions':a[_0x3e1f5f(0x573)][_0x3e1f5f(0x4fc)](_0x274178['actions'],_0x3c4852['actions'])}};},{})],_0x5cead4=(_0x104df2=(_0x491159=_0x150315[_0x3849cc(0x1ce)]())==null?void 0x0:_0x491159[_0x3849cc(0x523)])!=null?_0x104df2:_0x3849cc(0x55c),_0x40ba10=(_0x3a0eeb=(_0x27a2ce=_0x150315[_0x3849cc(0x1ce)]())==null?void 0x0:_0x27a2ce['memberID'])!=null?_0x3a0eeb:_0x3849cc(0x55c);return{'changeset':{'unitID':_0xa2342,'type':p[_0x3849cc(0x53a)](_0x2cf522['getUnitType'](_0xa2342)),'baseRev':_0x3c7f75[_0x3849cc(0x473)](_0xa2342),'revision':0x0,'userID':_0x5cead4,'memberID':_0x40ba10,'mutations':_0x405101},'pendingMutations':[]};}function fn(_0x2bed6f,_0x127237){const _0x1b1e3c=_0x49c5a4,_0x134ccf=new A['ReplaySubject'](0x1);return setTimeout(()=>_0x134ccf['next'](_0x127237),_0x2bed6f),_0x134ccf[_0x1b1e3c(0x225)]()[_0x1b1e3c(0x3d2)](A['take'](0x1));}const $i={'id':B[_0x49c5a4(0x39d)]['id'],'type':a['CommandType'][_0x49c5a4(0x2a0)],'params':{}};var Hi=Object[_0x49c5a4(0x119)],ki=Object[_0x49c5a4(0x3ea)],Ce=(_0x373411,_0x4b95f8,_0x220903,_0x18fe6f)=>{const _0x485eda=_0x49c5a4;for(var _0x1fffc6=_0x18fe6f>0x1?void 0x0:_0x18fe6f?ki(_0x4b95f8,_0x220903):_0x4b95f8,_0x241f72=_0x373411[_0x485eda(0x313)]-0x1,_0x3804c5;_0x241f72>=0x0;_0x241f72--)(_0x3804c5=_0x373411[_0x241f72])&&(_0x1fffc6=(_0x18fe6f?_0x3804c5(_0x4b95f8,_0x220903,_0x1fffc6):_0x3804c5(_0x1fffc6))||_0x1fffc6);return _0x18fe6f&&_0x1fffc6&&Hi(_0x4b95f8,_0x220903,_0x1fffc6),_0x1fffc6;},N=(_0x20504a,_0x36ae48)=>(_0x29994c,_0xb5c508)=>_0x36ae48(_0x29994c,_0xb5c508,_0x20504a),q=(_0x43b8db=>(_0x43b8db[_0x49c5a4(0x35b)]=_0x49c5a4(0x5a3),_0x43b8db[_0x49c5a4(0x144)]='synced',_0x43b8db[_0x49c5a4(0x1a4)]=_0x49c5a4(0x109),_0x43b8db[_0x49c5a4(0x12e)]='awaiting',_0x43b8db['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x43b8db[_0x49c5a4(0x2f1)]=_0x49c5a4(0x14a),_0x43b8db['CONFLICT']=_0x49c5a4(0x242),_0x43b8db[_0x49c5a4(0x459)]=_0x49c5a4(0x417),_0x43b8db))(q||{});const vn=0xea60;class Ee{constructor(_0x3c7436,_0x2c8099,_0x1fb5a3,_0x550da1,_0x422271,_0x410c3a,_0x4ca211,_0x5899a5,_0x3682ce){const _0x147fcb=_0x49c5a4;I(this,_0x147fcb(0x479),null),I(this,_0x147fcb(0x4a8),[]),(this['unitID']=_0x3c7436,this['type']=_0x2c8099,this[_0x147fcb(0x519)]=_0x422271,this[_0x147fcb(0x421)]=_0x410c3a,this[_0x147fcb(0x340)]=_0x4ca211,this['_revisionService']=_0x5899a5,this[_0x147fcb(0x1e9)]=_0x3682ce,this[_0x147fcb(0x479)]=_0x1fb5a3,this['_pendingMutations']=_0x550da1);}['_checkMissing'](_0x43a6fe){const _0x2c5805=_0x49c5a4,_0x4b9537=this[_0x2c5805(0x4dd)]['getCurrentRevOfUnit'](this[_0x2c5805(0x43f)]);return _0x43a6fe[_0x2c5805(0x502)]>_0x4b9537+0x1?(this[_0x2c5805(0x519)][_0x2c5805(0x4e0)]({'from':_0x4b9537,'to':_0x43a6fe[_0x2c5805(0x502)]-0x1}),!0x0):!0x1;}[_0x49c5a4(0x3f4)](_0x1d1dae){const _0x2522be=_0x49c5a4;this[_0x2522be(0x340)][_0x2522be(0x180)](this[_0x2522be(0x43f)],_0x1d1dae);}[_0x49c5a4(0x4ad)](_0x26972b){const _0xc03d4e=_0x49c5a4;var _0x4a5439,_0x14cbca;(_0x14cbca=(_0x4a5439=this[_0xc03d4e(0x519)])[_0xc03d4e(0x58c)])==null||_0x14cbca[_0xc03d4e(0x112)](_0x4a5439,_0x26972b);}['_transformIMECache'](_0x310c2b){const _0x5bb6d0=_0x49c5a4;var _0x58ff21,_0x10af7d;return(_0x10af7d=(_0x58ff21=this[_0x5bb6d0(0x519)])['onTransformIME'])==null?void 0x0:_0x10af7d[_0x5bb6d0(0x112)](_0x58ff21,_0x310c2b);}[_0x49c5a4(0x53b)](_0x51df21){const _0x59a623=_0x49c5a4;var _0x77ad6,_0x2dcf4d;return(_0x2dcf4d=(_0x77ad6=this['_handler'])[_0x59a623(0x41a)])==null?void 0x0:_0x2dcf4d[_0x59a623(0x112)](_0x77ad6,_0x51df21);}[_0x49c5a4(0x356)](_0x4605fe){const _0x2c5db4=_0x49c5a4;var _0x16d802,_0x203f61,_0xbf4ad6;return(_0xbf4ad6=(_0x203f61=(_0x16d802=this[_0x2c5db4(0x519)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x203f61[_0x2c5db4(0x112)](_0x16d802,_0x4605fe))!=null?_0xbf4ad6:_0x4605fe;}['_transformRemoteChangesetByStateCache'](_0x32b093){const _0x246700=_0x49c5a4;var _0x5d2292,_0x18618f,_0x3432e8;return(_0x3432e8=(_0x18618f=(_0x5d2292=this[_0x246700(0x519)])[_0x246700(0x2cc)])==null?void 0x0:_0x18618f['call'](_0x5d2292,_0x32b093))!=null?_0x3432e8:_0x32b093;}[_0x49c5a4(0x475)](_0x5cb005){const _0x4de55e=_0x49c5a4;var _0x52a915,_0x263303;if(this['type']===ie[_0x4de55e(0x466)]){const {unitID:_0x413f07,mutations:_0x43da08,memberID:_0x3facad}=_0x5cb005,_0x27a47e=_0x43da08[0x0][_0x4de55e(0x50f)][_0x4de55e(0x284)];Array[_0x4de55e(0x425)](_0x27a47e)&&_0x27a47e[_0x4de55e(0x313)]>0x0&&((_0x263303=(_0x52a915=this['_handler'])[_0x4de55e(0x253)])==null||_0x263303['call'](_0x52a915,{'unitID':_0x413f07,'memberID':_0x3facad,'textRanges':_0x27a47e}));}}['_updateLocalCache'](){const _0x32c4fc=_0x49c5a4;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x32c4fc(0x4a4)],this['_awaitingChangeset'],this[_0x32c4fc(0x4a8)]);}[_0x49c5a4(0x3c7)](){const _0xb64066=_0x49c5a4;return this['_revisionService'][_0xb64066(0x473)](this[_0xb64066(0x43f)]);}[_0x49c5a4(0x17b)](){const _0x5a18b0=_0x49c5a4;this['_revisionService']['incrementRevOfUnit'](this[_0x5a18b0(0x43f)]);}[_0x49c5a4(0x1b5)](_0x1ee12e){const _0x1e2608=_0x49c5a4;var _0x2a779f;let _0x128fc1=this[_0x1e2608(0x356)](_0x1ee12e);_0x128fc1=this[_0x1e2608(0x278)](_0x128fc1);const _0x4f63c7=a[_0x1e2608(0x1c9)](_0x128fc1[_0x1e2608(0x53d)],this[_0x1e2608(0x421)],{'fromCollab':!0x0});if(!_0x4f63c7[_0x1e2608(0x332)])throw _0x4f63c7[_0x1e2608(0x41d)]instanceof Error?_0x4f63c7[_0x1e2608(0x41d)]:new Error((_0x2a779f=_0x4f63c7[_0x1e2608(0x41d)])!=null?_0x2a779f:_0x1e2608(0x17d));this[_0x1e2608(0x2fe)](_0x128fc1),this[_0x1e2608(0x53b)](_0x128fc1),this[_0x1e2608(0x3f4)](_0x1ee12e),this['_transformSelections'](_0x128fc1),this[_0x1e2608(0x475)](_0x128fc1),this[_0x1e2608(0x17b)]();}}let Oe=class extends Ee{constructor(_0x129b35,_0x1ef5c2,_0x33b2cb,_0x44d97a,_0x2f73bc,_0x28db47,_0xf740f0,_0x5bca72,_0x380235,_0x15f426){const _0x48d1b6=_0x49c5a4;super(_0x129b35,_0x1ef5c2,null,[],_0x33b2cb,_0x5bca72,_0xf740f0,_0x44d97a,_0x2f73bc),I(this,'status','synced'),(this[_0x48d1b6(0x13d)]=_0x28db47,this[_0x48d1b6(0x2eb)]=_0x380235,this[_0x48d1b6(0xee)]=_0x15f426);}['appendMutation'](_0x38e58e){const _0x3ac072=_0x49c5a4,_0x4a8fa2=this[_0x3ac072(0x13d)]['createInstance'](ce,this[_0x3ac072(0x43f)],this[_0x3ac072(0x4a4)],[_0x38e58e],this[_0x3ac072(0x519)]);return _0x4a8fa2[_0x3ac072(0x454)](),_0x4a8fa2['_updateLocalCache'](),_0x4a8fa2;}['onRemoteChangeset'](_0x2ee915){const _0x8f78b9=_0x49c5a4;if(this[_0x8f78b9(0x3ff)](_0x2ee915))return this[_0x8f78b9(0x13d)][_0x8f78b9(0x203)](re,this[_0x8f78b9(0x43f)],this[_0x8f78b9(0x4a4)],null,[],null,[_0x2ee915],this['_handler']);try{const _0x30aa2e=this[_0x8f78b9(0xee)][_0x8f78b9(0x382)](_0x2ee915,[$i]);if(p[_0x8f78b9(0x546)](_0x30aa2e)){const {c1Prime:_0x474bf3}=_0x30aa2e;return this['_executeRemoteChangeset'](_0x474bf3),this;}throw _0x30aa2e['error'];}catch(_0x1f5378){return this['_logService'][_0x8f78b9(0x41d)](_0x1f5378),this['_onConflict'](!0x1);}}[_0x49c5a4(0x541)](_0x5e43af){const _0x5d0115=_0x49c5a4;return this['_injector'][_0x5d0115(0x203)](ve,this[_0x5d0115(0x43f)],this['type'],null,[],this[_0x5d0115(0x519)],_0x5e43af);}[_0x49c5a4(0x230)](){const _0x304eba=_0x49c5a4;throw new Error(_0x304eba(0x4de));}[_0x49c5a4(0x491)](){const _0x26ca7e=_0x49c5a4;throw new Error(_0x26ca7e(0x30c));}[_0x49c5a4(0x4b8)](){return this;}[_0x49c5a4(0x439)](){const _0x4fa78f=_0x49c5a4;return this[_0x4fa78f(0x13d)][_0x4fa78f(0x203)](Se,this['unitID'],this[_0x4fa78f(0x4a4)],null,[],this[_0x4fa78f(0x519)]);}['toggleOnline'](){return this;}[_0x49c5a4(0x163)](){const _0x391a00=_0x49c5a4;throw new Error(_0x391a00(0x59d));}[_0x49c5a4(0x49f)](){const _0x559d93=_0x49c5a4,_0x415744=this[_0x559d93(0x4dd)][_0x559d93(0x473)](this[_0x559d93(0x43f)]);return this[_0x559d93(0x519)][_0x559d93(0x4e0)]({'from':_0x415744,'to':0x0}),this[_0x559d93(0x13d)]['createInstance'](re,this[_0x559d93(0x43f)],this[_0x559d93(0x4a4)],null,[],null,[],this[_0x559d93(0x519)]);}};Oe=Ce([N(0x3,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),N(0x4,a['Inject'](exports[_0x49c5a4(0x29e)])),N(0x5,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),N(0x6,a[_0x49c5a4(0x55e)]),N(0x7,a[_0x49c5a4(0x1a3)]),N(0x8,a['ILogService']),N(0x9,p['ITransformService'])],Oe);let ce=class extends Ee{constructor(_0x51aa74,_0x27ac2c,_0x15d005,_0x2be38d,_0x41920f,_0x51c4e4,_0x4c2c21,_0x3a2316,_0x589444,_0xc6a54c,_0x515322,_0x10fd98,_0x35174f,_0x527465){const _0x9abd18=_0x49c5a4;super(_0x51aa74,_0x27ac2c,null,_0x15d005,_0x2be38d,_0xc6a54c,_0x527465,_0x51c4e4,_0x4c2c21),I(this,'status',_0x9abd18(0x109)),I(this,'_scheduleTimestamp',null),I(this,'_sendingTimer',null),(this[_0x9abd18(0x13d)]=_0x41920f,this['_memberService']=_0x3a2316,this['_logService']=_0x589444,this[_0x9abd18(0x369)]=_0x515322,this[_0x9abd18(0xee)]=_0x10fd98,this[_0x9abd18(0x35c)]=_0x35174f);}[_0x49c5a4(0x419)](_0x3c5e3f){const _0x543e7d=_0x49c5a4;return this[_0x543e7d(0x4a8)][_0x543e7d(0x1e3)](_0x3c5e3f),this[_0x543e7d(0x2c5)](),this;}['onRemoteChangeset'](_0x277da9){const _0x4fd9a4=_0x49c5a4;if(this[_0x4fd9a4(0x3ff)](_0x277da9))return this[_0x4fd9a4(0x196)](),this[_0x4fd9a4(0x13d)][_0x4fd9a4(0x203)](re,this['unitID'],this[_0x4fd9a4(0x4a4)],null,this[_0x4fd9a4(0x4a8)],null,[_0x277da9],this[_0x4fd9a4(0x519)]);try{const _0x537745=this[_0x4fd9a4(0xee)][_0x4fd9a4(0x382)](_0x277da9,this[_0x4fd9a4(0x4a8)]);if(p[_0x4fd9a4(0x546)](_0x537745)){const {c1Prime:_0x3093a0,m2Prime:_0x18da10}=_0x537745;this[_0x4fd9a4(0x1b5)](_0x3093a0);const _0x19bf74=this[_0x4fd9a4(0x13d)][_0x4fd9a4(0x203)](ce,this['unitID'],this[_0x4fd9a4(0x4a4)],_0x18da10,this[_0x4fd9a4(0x519)]);return this[_0x4fd9a4(0x196)](),_0x19bf74[_0x4fd9a4(0x454)](this[_0x4fd9a4(0x2c7)]?Math[_0x4fd9a4(0x215)](0x0,new Date()[_0x4fd9a4(0x20b)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x19bf74;}throw _0x537745[_0x4fd9a4(0x41d)];}catch(_0x2552cd){return this[_0x4fd9a4(0x2eb)][_0x4fd9a4(0x41d)](_0x2552cd),this[_0x4fd9a4(0x541)](!0x1);}}[_0x49c5a4(0x230)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x49c5a4(0x491)](){const _0x2fab66=_0x49c5a4;throw new Error(_0x2fab66(0x36f));}['onRemoteRetry'](){return this;}[_0x49c5a4(0x439)](){const _0x2871dd=_0x49c5a4;return this[_0x2871dd(0x196)](),this[_0x2871dd(0x13d)][_0x2871dd(0x203)](Se,this[_0x2871dd(0x43f)],this[_0x2871dd(0x4a4)],null,this[_0x2871dd(0x4a8)],this[_0x2871dd(0x519)]);}[_0x49c5a4(0x1bd)](){return this;}[_0x49c5a4(0x454)](_0x421711){const _0x6632a8=_0x49c5a4,_0x35a384=_0x421711!=null?_0x421711:this[_0x6632a8(0x4c6)]();this[_0x6632a8(0x2c7)]=new Date()[_0x6632a8(0x20b)](),this['_sendingTimer']=window[_0x6632a8(0x496)](()=>{const _0x25a442=_0x6632a8;this[_0x25a442(0x196)]();let _0x31aa63=null;switch(this['type']){case ie['UNIVER_SHEET']:{_0x31aa63=jt(this['_pendingMutations'],this[_0x25a442(0x43f)],this[_0x25a442(0x35c)],this[_0x25a442(0x4dd)],this['_memberService']);break;}case ie[_0x25a442(0x466)]:{this[_0x25a442(0x4a8)]['every'](_0xcb228e=>_0xcb228e['id']===ye[_0x25a442(0x46f)]['id'])?_0x31aa63=ji(this[_0x25a442(0x4a8)],this['unitID'],this[_0x25a442(0x35c)],this[_0x25a442(0x4dd)],this[_0x25a442(0x44e)]):_0x31aa63=jt(this['_pendingMutations'],this[_0x25a442(0x43f)],this[_0x25a442(0x35c)],this[_0x25a442(0x4dd)],this[_0x25a442(0x44e)]);break;}default:throw new Error(_0x25a442(0x540)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x19e724,pendingMutations:_0x1bbee2}=_0x31aa63;this['_handler']['onSendChangeset'](_0x19e724);const _0x3561e7=_0x1bbee2[_0x25a442(0x313)]?this[_0x25a442(0x13d)]['createInstance'](le,this[_0x25a442(0x43f)],this[_0x25a442(0x4a4)],_0x19e724,_0x1bbee2,this[_0x25a442(0x519)],void 0x0):this[_0x25a442(0x13d)][_0x25a442(0x203)](fe,this[_0x25a442(0x43f)],this[_0x25a442(0x4a4)],_0x19e724,this[_0x25a442(0x519)]);_0x3561e7[_0x25a442(0x2c5)](),this[_0x25a442(0x519)][_0x25a442(0x594)](this,_0x3561e7);},_0x35a384);}[_0x49c5a4(0x4c6)](){const _0x926bf6=_0x49c5a4;var _0x36ace0;const _0x4410f7=this[_0x926bf6(0x369)][_0x926bf6(0x162)](ee);return(_0x36ace0=_0x4410f7==null?void 0x0:_0x4410f7[_0x926bf6(0x4d0)])!=null?_0x36ace0:Bn;}['resend'](){const _0x5bd500=_0x49c5a4;throw new Error(_0x5bd500(0x549));}[_0x49c5a4(0x196)](){const _0x246bb7=_0x49c5a4;this[_0x246bb7(0x1d6)]!=null&&(clearTimeout(this[_0x246bb7(0x1d6)]),this['_sendingTimer']=null);}['_onConflict'](_0x1427af){const _0x275240=_0x49c5a4;return this[_0x275240(0x196)](),this[_0x275240(0x13d)][_0x275240(0x203)](ve,this[_0x275240(0x43f)],this[_0x275240(0x4a4)],null,this[_0x275240(0x4a8)],this[_0x275240(0x519)],_0x1427af);}};ce=Ce([N(0x4,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),N(0x5,a['Inject'](p['RevisionService'])),N(0x6,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),N(0x7,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x4ee)])),N(0x8,a['ILogService']),N(0x9,a[_0x49c5a4(0x1a3)]),N(0xa,a[_0x49c5a4(0x351)]),N(0xb,p[_0x49c5a4(0x169)]),N(0xc,a[_0x49c5a4(0x1ea)]),N(0xd,a[_0x49c5a4(0x55e)])],ce);let fe=class extends Ee{constructor(_0x1a493d,_0x41a883,_0x43ab6c,_0x539ae4,_0x3ff858,_0x5a5296,_0x89e05d,_0x3fe287,_0xecedb2,_0x138fa2,_0x55e4af){const _0x158823=_0x49c5a4;super(_0x1a493d,_0x41a883,_0x43ab6c,[],_0x539ae4,_0x3fe287,_0x55e4af,_0x5a5296,_0x89e05d),I(this,'status',_0x158823(0x13a)),I(this,_0x158823(0x565),0x0),I(this,_0x158823(0x2e3)),I(this,_0x158823(0x478)),(this['_injector']=_0x3ff858,this['_logService']=_0xecedb2,this[_0x158823(0xee)]=_0x138fa2);}[_0x49c5a4(0x419)](_0xaaea00){const _0x1c8664=_0x49c5a4;this[_0x1c8664(0x196)]();const _0x4c6cd7=this['_injector'][_0x1c8664(0x203)](le,this[_0x1c8664(0x43f)],this[_0x1c8664(0x4a4)],this[_0x1c8664(0x479)],[_0xaaea00],this[_0x1c8664(0x519)],this['_resendTimer']);return _0x4c6cd7[_0x1c8664(0x2c5)](),_0x4c6cd7;}[_0x49c5a4(0x117)](_0x4f016b){const _0x8e9556=_0x49c5a4;if(this[_0x8e9556(0x3ff)](_0x4f016b))return this[_0x8e9556(0x196)](),this[_0x8e9556(0x13d)]['createInstance'](re,this['unitID'],this[_0x8e9556(0x4a4)],this['_awaitingChangeset'],[],null,[_0x4f016b],this[_0x8e9556(0x519)]);try{const _0x31d975=this[_0x8e9556(0xee)]['transformChangesets']([_0x4f016b],[this['_awaitingChangeset']],!0x1);if(p[_0x8e9556(0x1a9)](_0x31d975)){const {c1Prime:_0x2bf398,c2Prime:_0x184e6d}=_0x31d975;this[_0x8e9556(0x1b5)](_0x2bf398[0x0]),_0x184e6d[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x8e9556(0x196)]();const _0x37f42=this[_0x8e9556(0x13d)][_0x8e9556(0x203)](fe,this[_0x8e9556(0x43f)],this[_0x8e9556(0x4a4)],_0x184e6d[0x0],this[_0x8e9556(0x519)]);return _0x37f42[_0x8e9556(0x2c5)](),_0x37f42;}return this['_onConflict'](!0x1);}catch(_0x449449){return this[_0x8e9556(0x2eb)][_0x8e9556(0x41d)](_0x449449),this[_0x8e9556(0x541)](!0x1);}}[_0x49c5a4(0x230)](_0xcbabbd){const _0x1ad847=_0x49c5a4;this[_0x1ad847(0x196)]();const _0x3086c2=this[_0x1ad847(0x4dd)][_0x1ad847(0x473)](this[_0x1ad847(0x43f)]);if(_0xcbabbd[_0x1ad847(0x502)]<_0x3086c2-0x1)return this;if(this['_checkMissing'](_0xcbabbd))return this[_0x1ad847(0x13d)]['createInstance'](re,this[_0x1ad847(0x43f)],this[_0x1ad847(0x4a4)],null,[],this[_0x1ad847(0x479)],[],this[_0x1ad847(0x519)]);this[_0x1ad847(0x17b)]();const _0x174a25=this[_0x1ad847(0x13d)][_0x1ad847(0x203)](Oe,this[_0x1ad847(0x43f)],this['type'],this[_0x1ad847(0x519)]);return _0x174a25[_0x1ad847(0x2c5)](),_0x174a25;}[_0x49c5a4(0x491)](_0x53c9bb){const _0x3fc957=_0x49c5a4;return this[_0x3fc957(0x541)](!!(_0x53c9bb!=null&&_0x53c9bb[_0x3fc957(0x54c)]));}[_0x49c5a4(0x4b8)](_0x34221f){const _0x44bbb8=_0x49c5a4;return this[_0x44bbb8(0x565)]>vn?this[_0x44bbb8(0x439)]():(this[_0x44bbb8(0x2e3)]=fn(this[_0x44bbb8(0x565)],{'timeout':this[_0x44bbb8(0x565)],'reqId':_0x34221f[_0x44bbb8(0x5a0)]}),this[_0x44bbb8(0x478)]=this['_resendTimer']['subscribe'](({reqId:_0x1a7685,timeout:_0x55409a})=>{const _0x384fbc=_0x44bbb8;this[_0x384fbc(0x1aa)](_0x1a7685,_0x55409a);}),this);}[_0x49c5a4(0x439)](){const _0x1b9284=_0x49c5a4;return this['_clearScheduledTask'](),this['_injector'][_0x1b9284(0x203)](Se,this[_0x1b9284(0x43f)],this[_0x1b9284(0x4a4)],this[_0x1b9284(0x479)],[],this['_handler']);}[_0x49c5a4(0x1bd)](){return this;}['resend'](){const _0xea6f50=_0x49c5a4;this['_handler'][_0xea6f50(0x4eb)](this[_0xea6f50(0x479)]);}[_0x49c5a4(0x541)](_0x4f6a3e){const _0x4906b6=_0x49c5a4;return this[_0x4906b6(0x196)](),this[_0x4906b6(0x13d)]['createInstance'](ve,this['unitID'],this['type'],this[_0x4906b6(0x479)],[],this['_handler'],_0x4f6a3e);}[_0x49c5a4(0x1aa)](_0x1a49f5,_0x1bb8b7){const _0x3e251f=_0x49c5a4;var _0x4e3b78;_0x1a49f5===((_0x4e3b78=this[_0x3e251f(0x479)])==null?void 0x0:_0x4e3b78[_0x3e251f(0x5a0)])&&(this[_0x3e251f(0x163)](),this[_0x3e251f(0x565)]=_0x1bb8b7===0x0?0x3e8:_0x1bb8b7*0x2);}[_0x49c5a4(0x196)](){const _0x1285d3=_0x49c5a4;var _0x2d6512;(_0x2d6512=this['_sender'])==null||_0x2d6512[_0x1285d3(0x447)](),this['_resendTimeout']=0x0;}};fe=Ce([N(0x4,a['Inject'](a['Injector'])),N(0x5,a[_0x49c5a4(0x435)](p['RevisionService'])),N(0x6,a['Inject'](exports[_0x49c5a4(0x29e)])),N(0x7,a[_0x49c5a4(0x1a3)]),N(0x8,a[_0x49c5a4(0x156)]),N(0x9,p[_0x49c5a4(0x169)]),N(0xa,a[_0x49c5a4(0x55e)])],fe);let le=class extends Ee{constructor(_0x622b67,_0x1e3c9f,_0x1a07a9,_0x32d35f,_0x4a1f8d,_0x156923,_0x2b868a,_0x187c15,_0x505587,_0x4071a5,_0x4e4e65,_0x40edeb,_0x556f6b){const _0x530daf=_0x49c5a4;super(_0x622b67,_0x1e3c9f,_0x1a07a9,_0x32d35f,_0x4a1f8d,_0x4071a5,_0x556f6b,_0x187c15,_0x505587),I(this,'status',_0x530daf(0x42d)),I(this,_0x530daf(0x565),0x0),I(this,_0x530daf(0x2e3)),I(this,_0x530daf(0x478)),(this[_0x530daf(0x13d)]=_0x2b868a,this[_0x530daf(0x2eb)]=_0x4e4e65,this['_transformService']=_0x40edeb,_0x156923&&(this[_0x530daf(0x2e3)]=_0x156923,this[_0x530daf(0x478)]=this['_resendTimer'][_0x530daf(0x2b8)](({reqId:_0xce36b4,timeout:_0x1efbfa})=>{this['_resendWithTimeout'](_0xce36b4,_0x1efbfa);})));}[_0x49c5a4(0x419)](_0x45d2ab){const _0x5cc514=_0x49c5a4;return this[_0x5cc514(0x4a8)][_0x5cc514(0x1e3)](_0x45d2ab),this;}[_0x49c5a4(0x117)](_0x26fc6f){const _0x50bc78=_0x49c5a4;if(this[_0x50bc78(0x3ff)](_0x26fc6f))return this[_0x50bc78(0x196)](),this[_0x50bc78(0x13d)][_0x50bc78(0x203)](re,this[_0x50bc78(0x43f)],this[_0x50bc78(0x4a4)],this[_0x50bc78(0x479)],this['_pendingMutations'],null,[_0x26fc6f],this[_0x50bc78(0x519)]);try{const _0x2a50f4=this[_0x50bc78(0xee)][_0x50bc78(0x192)]([_0x26fc6f],[this[_0x50bc78(0x479)]],!0x1);if(p['isTransformChangesetsSuccess'](_0x2a50f4)){const {c1Prime:_0x56d988,c2Prime:_0x32f7fb}=_0x2a50f4,_0x1ec37f=this['_transformService'][_0x50bc78(0x382)](_0x56d988[0x0],this[_0x50bc78(0x4a8)]);if(p[_0x50bc78(0x546)](_0x1ec37f)){const {c1Prime:_0x3363f1,m2Prime:_0x528e48}=_0x1ec37f;return this['_executeRemoteChangeset'](_0x3363f1),_0x32f7fb[0x0][_0x50bc78(0x393)]=this[_0x50bc78(0x3c7)](),this[_0x50bc78(0x196)](),this[_0x50bc78(0x13d)][_0x50bc78(0x203)](le,this['unitID'],this[_0x50bc78(0x4a4)],_0x32f7fb[0x0],_0x528e48,this[_0x50bc78(0x519)],void 0x0);}throw _0x1ec37f[_0x50bc78(0x41d)];}throw _0x2a50f4[_0x50bc78(0x41d)];}catch(_0x2c922b){return this[_0x50bc78(0x2eb)]['error'](_0x2c922b),this[_0x50bc78(0x541)](!0x1);}}[_0x49c5a4(0x230)](_0x107776){const _0x103d39=_0x49c5a4;if(this[_0x103d39(0x196)](),this['_checkMissing'](_0x107776))return this[_0x103d39(0x13d)][_0x103d39(0x203)](re,this[_0x103d39(0x43f)],this[_0x103d39(0x4a4)],null,this[_0x103d39(0x4a8)],this[_0x103d39(0x479)],[],this[_0x103d39(0x519)]);this[_0x103d39(0x17b)]();const _0x59c8b7=this[_0x103d39(0x13d)][_0x103d39(0x203)](ce,this[_0x103d39(0x43f)],this[_0x103d39(0x4a4)],this['_pendingMutations'],this[_0x103d39(0x519)]);return _0x59c8b7[_0x103d39(0x454)](),_0x59c8b7['_updateLocalCache'](),_0x59c8b7;}['onRemoteRej'](_0x496901){const _0x55e5d2=_0x49c5a4;return this[_0x55e5d2(0x541)](!!(_0x496901!=null&&_0x496901[_0x55e5d2(0x54c)]));}[_0x49c5a4(0x4b8)](_0x316e74){const _0x51bade=_0x49c5a4;return this['_resendTimeout']>vn?this[_0x51bade(0x439)]():(this['_resendTimer']=fn(this[_0x51bade(0x565)],{'timeout':this[_0x51bade(0x565)],'reqId':_0x316e74[_0x51bade(0x5a0)]}),this[_0x51bade(0x478)]=this['_resendTimer'][_0x51bade(0x2b8)](({reqId:_0x27f2e9,timeout:_0x26bb72})=>{const _0x4b36c4=_0x51bade;this[_0x4b36c4(0x1aa)](_0x27f2e9,_0x26bb72);}),this);}[_0x49c5a4(0x439)](){const _0xb48436=_0x49c5a4;return this[_0xb48436(0x196)](),this[_0xb48436(0x13d)][_0xb48436(0x203)](Se,this[_0xb48436(0x43f)],this[_0xb48436(0x4a4)],this['_awaitingChangeset'],this[_0xb48436(0x4a8)],this[_0xb48436(0x519)]);}['toggleOnline'](){return this;}['resend'](){const _0x544c10=_0x49c5a4;this[_0x544c10(0x519)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x49c5a4(0x541)](_0x289804){const _0x105fd1=_0x49c5a4;return this['_clearScheduledTask'](),this['_injector'][_0x105fd1(0x203)](ve,this['unitID'],this[_0x105fd1(0x4a4)],null,this[_0x105fd1(0x4a8)],this['_handler'],_0x289804);}[_0x49c5a4(0x1aa)](_0x61b68e,_0x36d1c0){const _0x334ff4=_0x49c5a4;var _0x534547;_0x61b68e===((_0x534547=this[_0x334ff4(0x479)])==null?void 0x0:_0x534547[_0x334ff4(0x5a0)])&&(this[_0x334ff4(0x163)](),this[_0x334ff4(0x565)]=_0x36d1c0===0x0?0x3e8:_0x36d1c0*0x2);}[_0x49c5a4(0x196)](){const _0xea6b5e=_0x49c5a4;var _0x1645b3;(_0x1645b3=this[_0xea6b5e(0x478)])==null||_0x1645b3[_0xea6b5e(0x447)](),this[_0xea6b5e(0x565)]=0x0;}};le=Ce([N(0x6,a[_0x49c5a4(0x435)](a['Injector'])),N(0x7,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),N(0x8,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),N(0x9,a[_0x49c5a4(0x1a3)]),N(0xa,a[_0x49c5a4(0x156)]),N(0xb,p[_0x49c5a4(0x169)]),N(0xc,a[_0x49c5a4(0x55e)])],le);let ve=class extends Ee{constructor(_0x7d07e3,_0x58d644,_0x30778d,_0x2a10cb,_0x3a2ee4,_0x3642af=!0x1,_0x5a7ae0,_0x2025fe,_0x2988c7,_0x258073,_0xd35a51,_0x57d704,_0x50116b){const _0x4df864=_0x49c5a4;super(_0x7d07e3,_0x58d644,_0x30778d,_0x2a10cb,_0x3a2ee4,_0x2025fe,_0x2988c7,_0xd35a51,_0x258073),I(this,'status',_0x4df864(0x242)),(this['_isPermissionRej']=_0x3642af,this['_permissionService']=_0x5a7ae0,this['_localeService']=_0x57d704,this['_notificationService']=_0x50116b,this[_0x4df864(0x539)](),this['_clearLocalCache'](),this[_0x4df864(0x1dc)]());}[_0x49c5a4(0x419)](){return this;}['onRemoteChangeset'](){return this;}[_0x49c5a4(0x230)](){return this;}[_0x49c5a4(0x491)](){return this;}['onRemoteRetry'](){return this;}[_0x49c5a4(0x439)](){return this;}[_0x49c5a4(0x1bd)](){return this;}[_0x49c5a4(0x163)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x49c5a4(0x157)](){const _0xfa903f=_0x49c5a4;this[_0xfa903f(0x1e9)][_0xfa903f(0x422)](this[_0xfa903f(0x43f)],this[_0xfa903f(0x4a4)],null,[]);}[_0x49c5a4(0x539)](){const _0x5cdc7d=_0x49c5a4;this['_isPermissionRej']?this[_0x5cdc7d(0x264)][_0x5cdc7d(0x2aa)]({'title':this[_0x5cdc7d(0x383)]['t'](_0x5cdc7d(0x327)),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x5cdc7d(0x264)]['show']({'title':this[_0x5cdc7d(0x383)]['t'](_0x5cdc7d(0x4d5)),'content':this[_0x5cdc7d(0x383)]['t'](_0x5cdc7d(0x21b)),'type':'error','duration':0x0});}[_0x49c5a4(0x1dc)](){const _0x3e6481=_0x49c5a4;this[_0x3e6481(0x4c4)][_0x3e6481(0x150)](new B['WorkbookEditablePermission'](this[_0x3e6481(0x43f)])['id'],!0x1);}};ve=Ce([N(0x6,a['Inject'](a[_0x49c5a4(0x1cc)])),N(0x7,a[_0x49c5a4(0x1a3)]),N(0x8,a[_0x49c5a4(0x55e)]),N(0x9,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),N(0xa,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),N(0xb,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),N(0xc,te[_0x49c5a4(0x44a)])],ve);let Se=class extends Ee{constructor(_0x3b795f,_0x5259ee,_0x217aae,_0x30a44f,_0x5d219d,_0x23347e,_0x23b354,_0xdb0d8e,_0x8ede1b,_0x3ec5d7){const _0x268119=_0x49c5a4;super(_0x3b795f,_0x5259ee,_0x217aae,_0x30a44f,_0x5d219d,_0x8ede1b,_0x3ec5d7,_0x23b354,_0xdb0d8e),I(this,_0x268119(0x329),_0x268119(0x417)),this[_0x268119(0x13d)]=_0x23347e;}[_0x49c5a4(0x419)](_0x54000d){const _0x15246a=_0x49c5a4;return this[_0x15246a(0x4a8)][_0x15246a(0x1e3)](_0x54000d),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x4c106a){const _0x5eabd5=_0x49c5a4;throw new Error(_0x5eabd5(0x296));}[_0x49c5a4(0x230)](){const _0x40b300=_0x49c5a4;throw new Error(_0x40b300(0x293));}[_0x49c5a4(0x491)](){const _0x326e09=_0x49c5a4;throw new Error(_0x326e09(0x591));}[_0x49c5a4(0x4b8)](){return this;}[_0x49c5a4(0x439)](){return this;}[_0x49c5a4(0x1bd)](){const _0x11bdbd=_0x49c5a4,{_injector:_0x256c4d,_pendingMutations:_0x59ac00,_awaitingChangeset:_0x45b8a1,unitID:_0xaecb9c,_handler:_0x4532f0,type:_0x289b64}=this,_0x12b4f3=Sn(_0x256c4d,_0xaecb9c,_0x289b64,_0x45b8a1,_0x59ac00,_0x4532f0);return _0x12b4f3 instanceof ce?_0x12b4f3[_0x11bdbd(0x454)]():(_0x12b4f3 instanceof le||_0x12b4f3 instanceof fe)&&_0x12b4f3[_0x11bdbd(0x163)](),_0x12b4f3;}[_0x49c5a4(0x163)](){const _0x3f0f67=_0x49c5a4;throw new Error(_0x3f0f67(0x285));}};Se=Ce([N(0x5,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),N(0x6,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),N(0x7,a['Inject'](exports[_0x49c5a4(0x29e)])),N(0x8,a[_0x49c5a4(0x1a3)]),N(0x9,a[_0x49c5a4(0x55e)])],Se);let re=class extends Ee{constructor(_0xf9e88e,_0x2b2cfc,_0x2d26f1,_0x65f986,_0x53204d,_0xf648d,_0x1e4811,_0x1a5921,_0x215db3,_0x4f5168,_0x1ab595,_0x1938c5,_0x4f4043,_0x331660){const _0x405d2e=_0x49c5a4;super(_0xf9e88e,_0x2b2cfc,_0x2d26f1,_0x65f986,_0x1e4811,_0x1938c5,_0x4f4043,_0x215db3,_0x4f5168),I(this,_0x405d2e(0x329),_0x405d2e(0x14a)),(this[_0x405d2e(0x325)]=_0x53204d,this[_0x405d2e(0x47d)]=_0xf648d,this[_0x405d2e(0x13d)]=_0x1a5921,this[_0x405d2e(0x2eb)]=_0x1ab595,this['_transformService']=_0x331660);}[_0x49c5a4(0x328)](_0x4faba9){const _0x63160a=_0x49c5a4;try{const _0x1742f3=[..._0x4faba9,...this[_0x63160a(0x47d)]],_0x4355da=[this[_0x63160a(0x479)]||this[_0x63160a(0x325)]][_0x63160a(0x10f)](_0x4a542f=>!!_0x4a542f);let _0x11cc39,_0x182209;if(_0x4355da[_0x63160a(0x313)]){const _0x540658=this[_0x63160a(0xee)]['transformChangesets'](_0x1742f3,_0x4355da,!0x1);if(!p[_0x63160a(0x1a9)](_0x540658))throw _0x540658['error'];_0x11cc39=_0x540658[_0x63160a(0x529)],_0x182209=_0x540658[_0x63160a(0x1f8)];}else _0x11cc39=_0x1742f3,_0x182209=[];let _0x3020b6=this['_pendingMutations'];_0x11cc39[_0x63160a(0x27b)](_0x26f25a=>{const _0x5c1b34=_0x63160a;let _0x586528;if(_0x3020b6[_0x5c1b34(0x313)]){const _0x207d5f=this[_0x5c1b34(0xee)][_0x5c1b34(0x382)](_0x26f25a,_0x3020b6);if(!p[_0x5c1b34(0x546)](_0x207d5f))throw _0x207d5f[_0x5c1b34(0x41d)];_0x586528=_0x207d5f[_0x5c1b34(0x529)],_0x3020b6=_0x207d5f['m2Prime'];}else _0x586528=_0x26f25a;this['_executeRemoteChangeset'](_0x586528);}),this[_0x63160a(0x325)]&&this[_0x63160a(0x17b)](),this[_0x63160a(0x479)]&&_0x182209[_0x63160a(0x313)]&&(_0x182209[0x0][_0x63160a(0x393)]=this['_getCurrentRevision']());let _0x575223;if(this['_awaitingChangeset']&&_0x3020b6[_0x63160a(0x313)]!==0x0)_0x575223=this['_injector']['createInstance'](le,this[_0x63160a(0x43f)],this[_0x63160a(0x4a4)],_0x182209[0x0],_0x3020b6,this[_0x63160a(0x519)],void 0x0);else{if(this[_0x63160a(0x479)]&&_0x3020b6[_0x63160a(0x313)]===0x0)_0x182209[0x0][_0x63160a(0x393)]=this[_0x63160a(0x3c7)](),_0x575223=this['_injector'][_0x63160a(0x203)](fe,this[_0x63160a(0x43f)],this[_0x63160a(0x4a4)],_0x182209[0x0],this[_0x63160a(0x519)]);else{if(_0x3020b6[_0x63160a(0x313)]!==0x0){const _0x46f523=this[_0x63160a(0x13d)]['createInstance'](ce,this[_0x63160a(0x43f)],this[_0x63160a(0x4a4)],_0x3020b6,this[_0x63160a(0x519)]);_0x46f523[_0x63160a(0x454)](),_0x575223=_0x46f523;}else _0x575223=this[_0x63160a(0x13d)][_0x63160a(0x203)](Oe,this[_0x63160a(0x43f)],this[_0x63160a(0x4a4)],this['_handler']);}}return _0x575223[_0x63160a(0x2c5)](),_0x575223;}catch(_0x370fbe){return this['_logService'][_0x63160a(0x41d)](_0x63160a(0x29a),'failed\x20to\x20apply\x20missed\x20changesets!',_0x370fbe),this[_0x63160a(0x13d)][_0x63160a(0x203)](ve,this[_0x63160a(0x43f)],this['type'],this[_0x63160a(0x479)],this[_0x63160a(0x4a8)],this['_handler'],!0x1);}}[_0x49c5a4(0x163)](){const _0x3e89b7=_0x49c5a4;throw new Error(_0x3e89b7(0x20c));}[_0x49c5a4(0x419)](_0x4ba1c6){const _0x422019=_0x49c5a4;return this['_pendingMutations'][_0x422019(0x1e3)](_0x4ba1c6),this;}[_0x49c5a4(0x117)](_0x49f4ee){const _0x3d6b96=_0x49c5a4;return this[_0x3d6b96(0x47d)][_0x3d6b96(0x1e3)](_0x49f4ee),this;}[_0x49c5a4(0x230)](_0x52290d){const _0x55f773=_0x49c5a4;if(this[_0x55f773(0x479)])return this[_0x55f773(0x325)]=this['_awaitingChangeset'],this[_0x55f773(0x479)]=null,this;throw new Error(_0x55f773(0x248));}[_0x49c5a4(0x491)](_0x1b8bde){const _0x334e14=_0x49c5a4;return this[_0x334e14(0x541)](!!(_0x1b8bde!=null&&_0x1b8bde[_0x334e14(0x54c)]));}['onRemoteRetry'](){return this;}[_0x49c5a4(0x439)](){const _0x79f622=_0x49c5a4;return this['_injector'][_0x79f622(0x203)](Se,this[_0x79f622(0x43f)],this[_0x79f622(0x4a4)],this['_awaitingChangeset'],this[_0x79f622(0x4a8)],this[_0x79f622(0x519)]);}[_0x49c5a4(0x1bd)](){return this;}[_0x49c5a4(0x541)](_0x77e6ea){const _0x370df1=_0x49c5a4;return this[_0x370df1(0x13d)]['createInstance'](ve,this['unitID'],this[_0x370df1(0x4a4)],this[_0x370df1(0x479)],this[_0x370df1(0x4a8)],this[_0x370df1(0x519)],_0x77e6ea);}};re=Ce([N(0x7,a['Inject'](a[_0x49c5a4(0x3d8)])),N(0x8,a[_0x49c5a4(0x435)](p['RevisionService'])),N(0x9,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),N(0xa,a['ILogService']),N(0xb,a[_0x49c5a4(0x1a3)]),N(0xc,a[_0x49c5a4(0x55e)]),N(0xd,p[_0x49c5a4(0x169)])],re);function Sn(_0x52923a,_0x530f1f,_0x2fe73a,_0x5177c0,_0x2a83e6,_0x30cd00){const _0x57a3e0=_0x49c5a4;return _0x5177c0&&_0x2a83e6[_0x57a3e0(0x313)]?_0x52923a[_0x57a3e0(0x203)](le,_0x530f1f,_0x2fe73a,_0x5177c0,_0x2a83e6,_0x30cd00,void 0x0):_0x5177c0?_0x52923a['createInstance'](fe,_0x530f1f,_0x2fe73a,_0x5177c0,_0x30cd00):_0x2a83e6[_0x57a3e0(0x313)]?_0x52923a[_0x57a3e0(0x203)](ce,_0x530f1f,_0x2fe73a,_0x2a83e6,_0x30cd00):_0x52923a[_0x57a3e0(0x203)](Oe,_0x530f1f,_0x2fe73a,_0x30cd00);}var Bi=Object[_0x49c5a4(0x119)],Wi=Object[_0x49c5a4(0x3ea)],yt=(_0x5f479c,_0x122992,_0x2e1039,_0xcfddab)=>{const _0x3862aa=_0x49c5a4;for(var _0x1a8aae=_0xcfddab>0x1?void 0x0:_0xcfddab?Wi(_0x122992,_0x2e1039):_0x122992,_0xb0ff98=_0x5f479c[_0x3862aa(0x313)]-0x1,_0x24352d;_0xb0ff98>=0x0;_0xb0ff98--)(_0x24352d=_0x5f479c[_0xb0ff98])&&(_0x1a8aae=(_0xcfddab?_0x24352d(_0x122992,_0x2e1039,_0x1a8aae):_0x24352d(_0x1a8aae))||_0x1a8aae);return _0xcfddab&&_0x1a8aae&&Bi(_0x122992,_0x2e1039,_0x1a8aae),_0x1a8aae;},H=(_0x22dae6,_0x961de2)=>(_0x4d9477,_0x32f690)=>_0x961de2(_0x4d9477,_0x32f690,_0x22dae6);exports[_0x49c5a4(0x320)]=class extends a[_0x49c5a4(0x1db)]{constructor(_0x1889c3,_0xda92b9,_0x38dfbe,_0x3821d1,_0x573f34,_0x22d80f,_0x12c75b,_0xf60feb,_0x19516c,_0x4aecc9,_0x4b9455,_0x35c06c,_0xa4f39d){const _0x4ba12d=_0x49c5a4;super(),I(this,_0x4ba12d(0x20a),new A[(_0x4ba12d(0x2a1))](null)),I(this,_0x4ba12d(0x538),this[_0x4ba12d(0x20a)][_0x4ba12d(0x225)]()),I(this,_0x4ba12d(0x1e4)),I(this,_0x4ba12d(0x569),!0x1),I(this,_0x4ba12d(0x19a),''),I(this,'_changesetReqId',0x0),I(this,_0x4ba12d(0x452),this[_0x4ba12d(0x538)][_0x4ba12d(0x3d2)](A['map'](_0x16c067=>_0x16c067?_0x16c067[_0x4ba12d(0x329)]:q['OFFLINE']),A[_0x4ba12d(0x3d1)](0x1))),I(this,_0x4ba12d(0x1ff),!0x1),I(this,_0x4ba12d(0x179),[]),(this['unitID']=_0x1889c3,this[_0x4ba12d(0x489)]=_0xda92b9,this['_type']=_0x38dfbe,this[_0x4ba12d(0x13d)]=_0x3821d1,this[_0x4ba12d(0x1e9)]=_0x573f34,this[_0x4ba12d(0x147)]=_0x22d80f,this[_0x4ba12d(0x383)]=_0x12c75b,this[_0x4ba12d(0x4dd)]=_0xf60feb,this[_0x4ba12d(0x2eb)]=_0x19516c,this[_0x4ba12d(0x421)]=_0x4aecc9,this[_0x4ba12d(0x25b)]=_0x4b9455,this[_0x4ba12d(0x4c4)]=_0x35c06c,this[_0x4ba12d(0x472)]=_0xa4f39d);}get[_0x49c5a4(0x420)](){const _0x41c206=_0x49c5a4;return this[_0x41c206(0x1e4)];}async[_0x49c5a4(0x361)](){const _0x3b07f4=_0x49c5a4;if(this['state'])throw new Error(_0x3b07f4(0x256));await this[_0x3b07f4(0x128)]();}[_0x49c5a4(0x1f6)](){const _0x126a29=_0x49c5a4;return this['_collaborationPaused']=!0x0,a[_0x126a29(0x516)](()=>{const _0x2085da=_0x126a29;this[_0x2085da(0x569)]=!0x1,this[_0x2085da(0x4e6)]();});}[_0x49c5a4(0x1b2)](_0x5a27ac){const _0x4c8b51=_0x49c5a4;this['_state']=_0x5a27ac,this[_0x4c8b51(0x20a)][_0x4c8b51(0x35e)](_0x5a27ac);}async[_0x49c5a4(0x128)](){const _0x956e45=_0x49c5a4;var _0x465034;this[_0x956e45(0x1b2)](await this[_0x956e45(0x371)]()),this[_0x956e45(0x472)]&&((_0x465034=this[_0x956e45(0x472)])==null||_0x465034[_0x956e45(0x23f)](this['unitID']),this['disposeWithMe'](this[_0x956e45(0x472)][_0x956e45(0x3f6)](this[_0x956e45(0x43f)])[_0x956e45(0x2b8)](_0x108d9b=>{const _0x1e7405=_0x956e45;this['_logService'][_0x1e7405(0x59f)](_0x1e7405(0x2a9),_0x1e7405(0x39b),_0x108d9b),_0x108d9b===un['OTHER_CLIENTS_EDITING']?(this[_0x1e7405(0x25b)][_0x1e7405(0x2aa)]({'content':this[_0x1e7405(0x383)]['t'](_0x1e7405(0x1d7)),'type':Ie[_0x1e7405(0x353)]['Warning']}),this[_0x1e7405(0x4c4)][_0x1e7405(0x150)](new B['WorkbookEditablePermission'](this[_0x1e7405(0x43f)])['id'],!0x1),this[_0x1e7405(0x4c4)][_0x1e7405(0x217)](!0x1)):(this[_0x1e7405(0x4c4)][_0x1e7405(0x150)](new B['WorkbookEditablePermission'](this[_0x1e7405(0x43f)])['id'],!0x0),this['_permissionService'][_0x1e7405(0x217)](!0x0));})));let _0x1274cc=!0x1;return this[_0x956e45(0x5ad)](this[_0x956e45(0x489)][_0x956e45(0x53e)][_0x956e45(0x2b8)](_0x5a5b00=>{const _0xf922a8=_0x956e45;_0x5a5b00===se[_0xf922a8(0x586)]?this[_0xf922a8(0x177)](_0x1274cc):_0x5a5b00===se['OFFLINE']&&(_0x1274cc=!0x0,this[_0xf922a8(0x1bf)]());})),this[_0x956e45(0x5ad)](this[_0x956e45(0x489)][_0x956e45(0x190)][_0x956e45(0x2b8)](_0x52c5a2=>{const _0x21beeb=_0x956e45;try{switch(_0x52c5a2[_0x21beeb(0x1c0)]){case p[_0x21beeb(0x442)][_0x21beeb(0x30e)]:{this['_onRemoteChangeset'](p[_0x21beeb(0x15d)](_0x52c5a2[_0x21beeb(0x2ab)]));break;}case p[_0x21beeb(0x442)][_0x21beeb(0x282)]:{this[_0x21beeb(0x1a8)](_0x52c5a2['data']);break;}case p[_0x21beeb(0x442)][_0x21beeb(0x1c4)]:{this[_0x21beeb(0x10c)]();break;}case p[_0x21beeb(0x442)]['CHANGESET_SHOULD_RETRY']:{this['_onRemoteRetry'](_0x52c5a2[_0x21beeb(0x2ab)]);break;}case p[_0x21beeb(0x442)][_0x21beeb(0x1d4)]:{this[_0x21beeb(0x220)](_0x52c5a2[_0x21beeb(0x2ab)][_0x21beeb(0x517)][_0x21beeb(0x2ea)](_0xd6f15c=>p[_0x21beeb(0x15d)](_0xd6f15c)));break;}case p['CollaborationEvent'][_0x21beeb(0x297)]:this[_0x21beeb(0x10c)]({'isPermissionRej':!0x0});}}catch(_0x334c6a){throw console[_0x21beeb(0x41d)](_0x21beeb(0x3e1),_0x334c6a),_0x334c6a;}})),this['_state'];}[_0x49c5a4(0x234)](){const _0x206c8e=_0x49c5a4;this[_0x206c8e(0x1ff)]=!0x1;}[_0x49c5a4(0x543)](){const _0x184c36=_0x49c5a4;if(this[_0x184c36(0x1ff)])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[_0x184c36(0x1ff)]=!0x0;}['_onLocalMutation'](_0x457934){const _0x1151fc=_0x49c5a4;this[_0x1151fc(0x543)](),this[_0x1151fc(0x1b2)](this[_0x1151fc(0x1e4)][_0x1151fc(0x419)](_0x457934)),this[_0x1151fc(0x234)]();}['_onRemoteChangeset'](_0x450343){const _0x128697=_0x49c5a4;if(!(_0x450343['revision']<=this[_0x128697(0x4dd)][_0x128697(0x473)](this[_0x128697(0x43f)]))){if(this['_collaborationPaused']){this[_0x128697(0x179)][_0x128697(0x1e3)](_0x450343);return;}this['_applyRemoteChangeset'](_0x450343);}}[_0x49c5a4(0x4e6)](){const _0x4063f5=_0x49c5a4;this['_remoteChangesetQueue'][_0x4063f5(0x27b)](_0x138232=>this[_0x4063f5(0x2dc)](_0x138232)),this[_0x4063f5(0x179)]=[];}['_applyRemoteChangeset'](_0x523364){const _0x1d7ae5=_0x49c5a4,_0x3b5ba4=this[_0x1d7ae5(0x147)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x1d7ae5(0x283)]['getInterceptPoints']()[_0x1d7ae5(0x4ef)])(_0x523364[_0x1d7ae5(0x53d)],null)||_0x523364['mutations'],_0x40db2c={..._0x523364,'mutations':_0x3b5ba4};this[_0x1d7ae5(0x543)](),this['_updateState'](this[_0x1d7ae5(0x1e4)]['onRemoteChangeset'](_0x40db2c)),this[_0x1d7ae5(0x234)]();}[_0x49c5a4(0x1a8)](_0x1fbaa1){const _0x47b4d7=_0x49c5a4;this['_lockTransition'](),this['_updateState'](this[_0x47b4d7(0x1e4)][_0x47b4d7(0x230)](_0x1fbaa1)),this['_unlockTransition']();}[_0x49c5a4(0x10c)](_0x18868a){const _0x37ef81=_0x49c5a4;this[_0x37ef81(0x543)](),this[_0x37ef81(0x1b2)](this[_0x37ef81(0x1e4)][_0x37ef81(0x491)](_0x18868a)),this[_0x37ef81(0x234)]();}['_onRemoteRetry'](_0x3b1a91){const _0x23daca=_0x49c5a4;this[_0x23daca(0x543)](),this[_0x23daca(0x1b2)](this['_state'][_0x23daca(0x4b8)](_0x3b1a91)),this[_0x23daca(0x234)]();}[_0x49c5a4(0x220)](_0x313c91){const _0x5ee8c7=_0x49c5a4;if(!(this['_state']instanceof re))throw new TypeError(_0x5ee8c7(0x291));const _0x3d528b=_0x313c91[_0x5ee8c7(0x2ea)](_0x3ef100=>{const _0x501a7c=_0x5ee8c7,_0x37d2bd=this[_0x501a7c(0x147)][_0x501a7c(0x283)][_0x501a7c(0x28f)](this[_0x501a7c(0x147)][_0x501a7c(0x283)][_0x501a7c(0x3ed)]()[_0x501a7c(0x4ef)])(_0x3ef100[_0x501a7c(0x53d)],null)||_0x3ef100[_0x501a7c(0x53d)];return{..._0x3ef100,'mutations':_0x37d2bd};});this[_0x5ee8c7(0x543)](),this['_updateState'](this[_0x5ee8c7(0x1e4)][_0x5ee8c7(0x328)](_0x3d528b)),this[_0x5ee8c7(0x234)]();}[_0x49c5a4(0x1bf)](){const _0x28ec30=_0x49c5a4;this[_0x28ec30(0x543)](),this[_0x28ec30(0x1b2)](this[_0x28ec30(0x1e4)][_0x28ec30(0x439)]()),this['_unlockTransition']();}[_0x49c5a4(0x177)](_0x4a9a64=!0x1){const _0x2de30a=_0x49c5a4;this[_0x2de30a(0x543)](),this[_0x2de30a(0x1b2)](this[_0x2de30a(0x1e4)][_0x2de30a(0x1bd)]()),this[_0x2de30a(0x234)]();const _0x782994=this[_0x2de30a(0x1e4)];_0x4a9a64&&_0x782994 instanceof Oe&&(this[_0x2de30a(0x543)](),this[_0x2de30a(0x1b2)](_0x782994[_0x2de30a(0x49f)]()),this[_0x2de30a(0x234)]());}async[_0x49c5a4(0x371)](){return new Promise(_0x3e3461=>{const _0x56be16=_0x3dfb;this['session'][_0x56be16(0x53e)][_0x56be16(0x3d2)](A[_0x56be16(0x51e)](0x1))[_0x56be16(0x2b8)](async _0x5bcf09=>{const _0x194c35=_0x56be16;_0x3e3461(await this[_0x194c35(0x2d3)](_0x5bcf09===se['ONLINE']));});});}['_createHandler'](){const _0xea730b=this['unitID'];return{'onStateChange':(_0x26b3a9,_0x59a83d)=>{const _0x423803=_0x3dfb;if(_0x26b3a9!==this['_state'])throw new Error(_0x423803(0x1a2)+_0x26b3a9[_0x423803(0x329)]+'\x0aAfter:\x20'+_0x59a83d['status']+_0x423803(0x26d)+this[_0x423803(0x1e4)]['status']);this['_updateState'](_0x59a83d);},'onSendChangeset':_0x51a33f=>{const _0x20f4c0=_0x3dfb;_0x51a33f[_0x20f4c0(0x3a1)]||(_0x51a33f[_0x20f4c0(0x3a1)]=this[_0x20f4c0(0x19a)],_0x51a33f['reqId']=++this[_0x20f4c0(0x2c9)]);const _0x352ecf={'eventID':p['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x51a33f[_0x20f4c0(0x43f)],'unitType':this[_0x20f4c0(0x107)],'changeset':_0x51a33f,'memberID':this[_0x20f4c0(0x489)]['getMemberID']()}};this['session'][_0x20f4c0(0x38c)](_0x352ecf,this[_0x20f4c0(0x43f)]);},'onMissingChangesets':({from:_0x324c04,to:_0x4fbd0f})=>{const _0x2ffebb=_0x3dfb;this[_0x2ffebb(0x2eb)][_0x2ffebb(0x59f)](_0x2ffebb(0x2a9),_0x2ffebb(0x31c)+_0x324c04+'\x20to\x20'+_0x4fbd0f);const _0x25f922={'eventID':p[_0x2ffebb(0x442)][_0x2ffebb(0x385)],'data':{'unitID':_0xea730b,'unitType':this[_0x2ffebb(0x107)],'from':_0x324c04,'to':_0x4fbd0f}};this[_0x2ffebb(0x489)][_0x2ffebb(0x38c)](_0x25f922,this[_0x2ffebb(0x43f)]);}};}async[_0x49c5a4(0x2d3)](_0x237686){const _0x42741b=_0x49c5a4;var _0x60f4a7,_0x11662c;const _0xf38284=await this[_0x42741b(0x1e9)][_0x42741b(0x16f)](this[_0x42741b(0x43f)]),_0x2353a3=(_0x60f4a7=_0xf38284==null?void 0x0:_0xf38284[_0x42741b(0x53d)])!=null?_0x60f4a7:[],_0x22f484=(_0x11662c=_0xf38284==null?void 0x0:_0xf38284[_0x42741b(0x2c3)])!=null?_0x11662c:null,_0xa596cb=!!(_0x22f484!=null&&_0x22f484['sid'])&&!!(_0x22f484!=null&&_0x22f484[_0x42741b(0x5a0)]);this['_changesetSessionId']=_0xa596cb?_0x22f484[_0x42741b(0x3a1)]:pi(),this[_0x42741b(0x2c9)]=_0xa596cb?_0x22f484[_0x42741b(0x5a0)]:0x0;const _0x13f38f=this['unitID'];try{this[_0x42741b(0x231)](_0x22f484,_0x2353a3);}catch(_0x2fe0be){this[_0x42741b(0x2eb)][_0x42741b(0x41d)](_0x2fe0be);}const _0x1d2956=this[_0x42741b(0x575)]();if(_0x237686){const _0x59e6c3=Sn(this['_injector'],_0x13f38f,this[_0x42741b(0x107)],_0x22f484,_0x2353a3,_0x1d2956);return _0x59e6c3 instanceof ce?_0x59e6c3[_0x42741b(0x454)]():(_0x59e6c3 instanceof le||_0x59e6c3 instanceof fe)&&_0x59e6c3[_0x42741b(0x163)](),_0x59e6c3;}return this[_0x42741b(0x13d)][_0x42741b(0x203)](Se,_0x13f38f,this[_0x42741b(0x107)],_0x22f484,_0x2353a3,_0x1d2956);}[_0x49c5a4(0x231)](_0x27a4ea,_0x57d959){const _0xdb5e02=_0x49c5a4;var _0xa01be2,_0x1e9e7b;const _0x2a406d=this[_0xdb5e02(0x147)][_0xdb5e02(0x283)][_0xdb5e02(0x28f)](this[_0xdb5e02(0x147)][_0xdb5e02(0x283)][_0xdb5e02(0x3ed)]()['COMPRESS_MUTATION_APPLY']);(_0xa01be2=_0x2a406d((_0x27a4ea==null?void 0x0:_0x27a4ea[_0xdb5e02(0x53d)])||[],null))==null||_0xa01be2['forEach'](_0xb20b64=>this['_commandService']['executeCommand'](_0xb20b64['id'],_0xb20b64[_0xdb5e02(0x50f)])),(_0x1e9e7b=_0x2a406d(_0x57d959||[],null))==null||_0x1e9e7b[_0xdb5e02(0x27b)](_0x5a066e=>this[_0xdb5e02(0x421)][_0xdb5e02(0x4ed)](_0x5a066e['id'],_0x5a066e[_0xdb5e02(0x50f)]));}},exports['CollaborationEntity']=yt([H(0x3,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),H(0x4,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),H(0x5,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x309)])),H(0x6,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),H(0x7,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),H(0x8,a['ILogService']),H(0x9,a[_0x49c5a4(0x1a3)]),H(0xa,te[_0x49c5a4(0x1fb)]),H(0xb,a[_0x49c5a4(0x1cc)]),H(0xc,a[_0x49c5a4(0x4b6)](qe))],exports[_0x49c5a4(0x320)]),exports[_0x49c5a4(0x338)]=class extends exports[_0x49c5a4(0x320)]{constructor(_0x35d50d,_0x43412f,_0x36f0e8,_0x33f97e,_0xd3e258,_0x27eaca,_0x1077e2,_0xad0ef1,_0x56b471,_0x45d1fd,_0x2302e8,_0x40fbfd,_0x1bd243,_0x30bba6,_0x238021,_0x2965cf,_0xa24607,_0x4d4b09){const _0xa92579=_0x49c5a4;super(_0x35d50d,_0x36f0e8,_0x43412f,_0x33f97e,_0xd3e258,_0x27eaca,_0x1077e2,_0xad0ef1,_0x30bba6,_0x238021,_0x2965cf,_0xa24607,_0x4d4b09),this[_0xa92579(0x43f)]=_0x35d50d,this['type']=_0x43412f,this[_0xa92579(0x528)]=_0x56b471,this['_docTransformIMECacheService']=_0x45d1fd,this[_0xa92579(0x237)]=_0x2302e8,this['_docTransformSelectionsService']=_0x40fbfd,this['_docSyncEditingCollabCursorService']=_0x1bd243;}['_createHandler'](){const _0x1414e6=_0x49c5a4,_0x34ce93=super[_0x1414e6(0x575)]();return _0x34ce93[_0x1414e6(0x41b)]=_0x4c2c8e=>this[_0x1414e6(0x42f)][_0x1414e6(0x4ac)](_0x4c2c8e),_0x34ce93[_0x1414e6(0x41a)]=_0x5b3f06=>this[_0x1414e6(0x237)]['transformStateCache'](_0x5b3f06),_0x34ce93[_0x1414e6(0x58c)]=_0x43caf9=>this['_docTransformSelectionsService']['transformSelections'](_0x43caf9),_0x34ce93[_0x1414e6(0x253)]=_0x1c77f5=>this['_docSyncEditingCollabCursorService'][_0x1414e6(0x12d)](_0x1c77f5),_0x34ce93['onTransformRemoteChangesetByIMECache']=_0x3547e2=>this['_docTransformIMECacheService'][_0x1414e6(0x19b)](_0x3547e2),_0x34ce93['onTransformRemoteChangesetByStateCache']=_0x2a4864=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2a4864),_0x34ce93;}async[_0x49c5a4(0x128)](){const _0x218581=_0x49c5a4,_0x44944a=await super['_init']();return this[_0x218581(0x528)]['docStateChange$']['pipe'](A[_0x218581(0x27e)](this['dispose$']))[_0x218581(0x2b8)](_0x3b897b=>{const _0x24ef99=_0x218581;if(_0x3b897b==null)return;const {unitId:_0x3aecad,redoState:_0x52859d,commandId:_0x3220d2}=_0x3b897b;if(_0x3aecad!==this[_0x24ef99(0x43f)])return;const _0x2d537f={'id':_0x3220d2,'type':a[_0x24ef99(0x15f)][_0x24ef99(0x2a0)],'params':{'unitId':_0x3aecad,'actions':_0x52859d[_0x24ef99(0x275)],'textRanges':null}};this['_onLocalMutation'](_0x2d537f);}),_0x44944a;}},exports[_0x49c5a4(0x338)]=yt([H(0x3,a['Inject'](a['Injector'])),H(0x4,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),H(0x5,a['Inject'](p[_0x49c5a4(0x309)])),H(0x6,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),H(0x7,a[_0x49c5a4(0x435)](p['RevisionService'])),H(0x8,a[_0x49c5a4(0x435)](Z[_0x49c5a4(0x1ab)])),H(0x9,a[_0x49c5a4(0x435)](ke)),H(0xa,a['Inject'](We)),H(0xb,a[_0x49c5a4(0x435)](Fe)),H(0xc,a[_0x49c5a4(0x435)](Rt)),H(0xd,a[_0x49c5a4(0x156)]),H(0xe,a[_0x49c5a4(0x1a3)]),H(0xf,te[_0x49c5a4(0x1fb)]),H(0x10,a[_0x49c5a4(0x1cc)]),H(0x11,a[_0x49c5a4(0x4b6)](qe))],exports[_0x49c5a4(0x338)]),exports[_0x49c5a4(0x24c)]=class extends exports['CollaborationEntity']{constructor(_0xa1e1f2,_0x2cc225,_0x455f5a,_0x12e141,_0x20a41a,_0x5460b8,_0x2fe587,_0x235c8d,_0x1597ac,_0x39d373,_0x36d2ad,_0x170c2c,_0x50f8ce,_0x45059d){const _0x1f3db7=_0x49c5a4;super(_0xa1e1f2,_0x455f5a,_0x2cc225,_0x12e141,_0x20a41a,_0x5460b8,_0x2fe587,_0x235c8d,_0x39d373,_0x36d2ad,_0x170c2c,_0x50f8ce,_0x45059d),this[_0x1f3db7(0x43f)]=_0xa1e1f2,this[_0x1f3db7(0x4a4)]=_0x2cc225,this['_sheetTransformSelectionsService']=_0x1597ac;}[_0x49c5a4(0x575)](){const _0x306540=_0x49c5a4,_0x1f794f=super[_0x306540(0x575)]();return _0x1f794f[_0x306540(0x58c)]=_0x68d5c=>this[_0x306540(0x513)][_0x306540(0x1d8)](_0x68d5c),_0x1f794f;}async['_init'](){const _0x5648b8=_0x49c5a4,_0x54036f=await super['_init']();return this[_0x5648b8(0x5ad)](this[_0x5648b8(0x421)][_0x5648b8(0x3c8)]((_0x42ec0d,_0x7a55b2)=>{const _0x341614=_0x5648b8;if(_0x42ec0d[_0x341614(0x4a4)]!==a[_0x341614(0x15f)][_0x341614(0x2a0)]||_0x7a55b2!=null&&_0x7a55b2[_0x341614(0x4f2)]||_0x7a55b2!=null&&_0x7a55b2[_0x341614(0x1d9)])return;const _0x490515=_0x42ec0d[_0x341614(0x50f)];if((_0x490515==null?void 0x0:_0x490515['unitId'])!==this['unitID'])return;const _0x8f9ec8=_0x42ec0d,_0x5f5e00=this[_0x341614(0x147)][_0x341614(0x283)][_0x341614(0x28f)](this[_0x341614(0x147)][_0x341614(0x283)][_0x341614(0x3ed)]()[_0x341614(0x14c)])([_0x8f9ec8],null)||[_0x8f9ec8];this[_0x341614(0x485)](_0x5f5e00[0x0]);})),_0x54036f;}},exports['SheetCollaborationEntity']=yt([H(0x3,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),H(0x4,a[_0x49c5a4(0x435)](exports['LocalCacheService'])),H(0x5,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x309)])),H(0x6,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3ba)])),H(0x7,a[_0x49c5a4(0x435)](p[_0x49c5a4(0x40f)])),H(0x8,a[_0x49c5a4(0x435)](Be)),H(0x9,a['ILogService']),H(0xa,a[_0x49c5a4(0x1a3)]),H(0xb,te[_0x49c5a4(0x1fb)]),H(0xc,a[_0x49c5a4(0x1cc)]),H(0xd,a[_0x49c5a4(0x4b6)](qe))],exports[_0x49c5a4(0x24c)]);var Fi=Object[_0x49c5a4(0x119)],Vi=Object[_0x49c5a4(0x3ea)],Gi=(_0xd02a34,_0x488442,_0x3f3b25,_0x594d1b)=>{const _0x2cb21b=_0x49c5a4;for(var _0x510575=_0x594d1b>0x1?void 0x0:_0x594d1b?Vi(_0x488442,_0x3f3b25):_0x488442,_0x5147d7=_0xd02a34[_0x2cb21b(0x313)]-0x1,_0x3a9a39;_0x5147d7>=0x0;_0x5147d7--)(_0x3a9a39=_0xd02a34[_0x5147d7])&&(_0x510575=(_0x594d1b?_0x3a9a39(_0x488442,_0x3f3b25,_0x510575):_0x3a9a39(_0x510575))||_0x510575);return _0x594d1b&&_0x510575&&Fi(_0x488442,_0x3f3b25,_0x510575),_0x510575;},tt=(_0x33b171,_0xa91131)=>(_0x4c03ef,_0x4b457f)=>_0xa91131(_0x4c03ef,_0x4b457f,_0x33b171);exports[_0x49c5a4(0x411)]=class extends a['RxDisposable']{constructor(_0x3ec7bd,_0x3b3fb3,_0x5ddb99){const _0x3e9805=_0x49c5a4;super(),I(this,_0x3e9805(0x345),new Map()),I(this,_0x3e9805(0x4ca),new A[(_0x3e9805(0x10d))]()),(this[_0x3e9805(0x13d)]=_0x3ec7bd,this[_0x3e9805(0x108)]=_0x3b3fb3,this[_0x3e9805(0x35c)]=_0x5ddb99,this[_0x3e9805(0x128)]());}[_0x49c5a4(0x13b)](){const _0x1ef6e9=_0x49c5a4;super[_0x1ef6e9(0x13b)](),this['_entities'][_0x1ef6e9(0x27b)](_0x49124a=>_0x49124a[_0x1ef6e9(0x13b)]()),this[_0x1ef6e9(0x345)][_0x1ef6e9(0x579)]();}[_0x49c5a4(0x347)](_0x53200e){const _0x18cd54=_0x49c5a4;var _0x288c89;return(_0x288c89=this[_0x18cd54(0x345)]['get'](_0x53200e))!=null?_0x288c89:null;}[_0x49c5a4(0x554)](_0x436989){const _0xc3eac2=_0x49c5a4,_0x2bf5c4=this[_0xc3eac2(0x347)](_0x436989);return _0x2bf5c4?A['of'](_0x2bf5c4):this[_0xc3eac2(0x4ca)]['pipe'](V[_0xc3eac2(0x10f)](_0x4b224e=>_0x4b224e[_0xc3eac2(0x43f)]===_0x436989));}['_init'](){const _0x1ece05=_0x49c5a4;this[_0x1ece05(0x35c)][_0x1ece05(0x3b9)](a[_0x1ece05(0x11e)]['UNIVER_SHEET'])[_0x1ece05(0x3d2)](A[_0x1ece05(0x27e)](this['dispose$']),V[_0x1ece05(0x533)](0x10))[_0x1ece05(0x2b8)](async _0x4360f0=>{const _0x43988d=_0x1ece05,_0x2d9f65=_0x4360f0[_0x43988d(0x468)](),_0x543da8=await this[_0x43988d(0x11b)](_0x2d9f65,ie[_0x43988d(0x50e)]);this[_0x43988d(0x345)][_0x43988d(0x384)](_0x2d9f65,_0x543da8);}),this['_univerInstanceService'][_0x1ece05(0x3b9)](a[_0x1ece05(0x11e)][_0x1ece05(0x466)])[_0x1ece05(0x3d2)](A[_0x1ece05(0x27e)](this[_0x1ece05(0x148)]),V['delay'](0x10))['pipe'](V[_0x1ece05(0x10f)](_0x3f54f3=>!_0x3f54f3[_0x1ece05(0x468)]()['startsWith']('__')))['subscribe'](async _0x363af3=>{const _0x132b8a=_0x1ece05,_0x46a2de=_0x363af3['getUnitId'](),_0x1bd0c8=await this[_0x132b8a(0x11b)](_0x46a2de,ie[_0x132b8a(0x466)]);this[_0x132b8a(0x345)][_0x132b8a(0x384)](_0x46a2de,_0x1bd0c8);}),A[_0x1ece05(0x1e6)](this['_univerInstanceService'][_0x1ece05(0x55d)](a[_0x1ece05(0x11e)][_0x1ece05(0x50e)]),this[_0x1ece05(0x35c)][_0x1ece05(0x55d)](a[_0x1ece05(0x11e)][_0x1ece05(0x466)]))[_0x1ece05(0x3d2)](A[_0x1ece05(0x27e)](this[_0x1ece05(0x148)]))[_0x1ece05(0x2b8)](_0x56a1ce=>{const _0x1d120b=_0x1ece05,_0x18fc93=_0x56a1ce[_0x1d120b(0x468)](),_0xcf7ec5=this[_0x1d120b(0x345)]['get'](_0x18fc93);_0xcf7ec5&&(_0xcf7ec5['dispose'](),this[_0x1d120b(0x345)]['delete'](_0x18fc93));});}async[_0x49c5a4(0x11b)](_0x51eb66,_0x44b047){const _0x54b37d=_0x49c5a4,_0x10d4cd=await this[_0x54b37d(0x108)][_0x54b37d(0x536)](_0x51eb66),_0x4f2cb0=this[_0x54b37d(0x13d)]['createInstance'](this[_0x54b37d(0x2af)](_0x44b047),_0x51eb66,_0x44b047,_0x10d4cd);return await _0x4f2cb0[_0x54b37d(0x361)](),this['_entityInit$'][_0x54b37d(0x35e)](_0x4f2cb0),_0x4f2cb0;}[_0x49c5a4(0x2af)](_0xa2d1c6){const _0x108e50=_0x49c5a4;switch(_0xa2d1c6){case ie[_0x108e50(0x466)]:return exports[_0x108e50(0x338)];case ie['UNIVER_SHEET']:return exports[_0x108e50(0x24c)];default:throw new Error(_0x108e50(0x34e)+_0xa2d1c6);}}},exports['CollaborationController']=Gi([tt(0x0,a['Inject'](a['Injector'])),tt(0x1,a['Inject'](exports['CollaborationSessionService'])),tt(0x2,a[_0x49c5a4(0x1ea)])],exports['CollaborationController']);const $t=['purple300','jiqing500','verdancy600',_0x49c5a4(0x22f),_0x49c5a4(0x35a),'gold400'];class Ot extends a['Disposable']{constructor(){const _0x41d23d=_0x49c5a4;super(...arguments),I(this,_0x41d23d(0xfa),new Map()),I(this,'_colorIndex',0x0);}[_0x49c5a4(0x3fb)](_0x32363f){const _0x3dbd51=_0x49c5a4;if(this[_0x3dbd51(0xfa)][_0x3dbd51(0x23e)](_0x32363f))return this[_0x3dbd51(0xfa)][_0x3dbd51(0x17e)](_0x32363f);const _0x1024c8=$t[this[_0x3dbd51(0x48f)]];return this[_0x3dbd51(0x48f)]=(this[_0x3dbd51(0x48f)]+0x1)%$t['length'],this[_0x3dbd51(0xfa)]['set'](_0x32363f,_0x1024c8),_0x1024c8;}}var Yi=Object[_0x49c5a4(0x119)],Ki=Object[_0x49c5a4(0x3ea)],qi=(_0x33e505,_0x5ef731,_0x81bb97,_0x4d4696)=>{const _0x101e5e=_0x49c5a4;for(var _0x208602=_0x4d4696>0x1?void 0x0:_0x4d4696?Ki(_0x5ef731,_0x81bb97):_0x5ef731,_0x21f485=_0x33e505[_0x101e5e(0x313)]-0x1,_0x27a88c;_0x21f485>=0x0;_0x21f485--)(_0x27a88c=_0x33e505[_0x21f485])&&(_0x208602=(_0x4d4696?_0x27a88c(_0x5ef731,_0x81bb97,_0x208602):_0x27a88c(_0x208602))||_0x208602);return _0x4d4696&&_0x208602&&Yi(_0x5ef731,_0x81bb97,_0x208602),_0x208602;},me=(_0x1c5260,_0x56efb3)=>(_0x54e545,_0x73483e)=>_0x56efb3(_0x54e545,_0x73483e,_0x1c5260);const zi=0x12c,Xi=0x64;let St=class extends a[_0x49c5a4(0x1db)]{constructor(_0x4eccb7,_0x5f44ac,_0xe3773,_0x19dab9,_0x53d20f,_0x2974d4,_0x478e65,_0x4f82d5,_0x3c79ec){const _0x6f4882=_0x49c5a4;super(),I(this,_0x6f4882(0x263),!0x1),I(this,_0x6f4882(0x128),!0x1),I(this,'_cursorInfo$',new A[(_0x6f4882(0x2a1))](new Map())),I(this,_0x6f4882(0x269),this[_0x6f4882(0x443)][_0x6f4882(0x225)]()),I(this,_0x6f4882(0x19f),new A[(_0x6f4882(0x2a1))]([])),I(this,_0x6f4882(0x4fd),this[_0x6f4882(0x19f)][_0x6f4882(0x3d2)](A[_0x6f4882(0x4c7)](zi))),I(this,'_updateLocalCursor',a[_0x6f4882(0x5ae)](_0x4fec10=>{const _0x22352a=_0x6f4882,_0x2de7bb={'eventID':p['CollaborationEvent'][_0x22352a(0x486)],'data':{'unitID':this[_0x22352a(0x43f)],'memberID':this['_session'][_0x22352a(0x355)](),'selection':dn(_0x4fec10)}};this[_0x22352a(0x362)][_0x22352a(0x38c)](_0x2de7bb,this[_0x22352a(0x43f)]);},Xi)),(this[_0x6f4882(0x43f)]=_0x4eccb7,this[_0x6f4882(0x362)]=_0x5f44ac,this['_injector']=_0xe3773,this[_0x6f4882(0x4cd)]=_0x19dab9,this[_0x6f4882(0x44e)]=_0x53d20f,this[_0x6f4882(0x396)]=_0x2974d4,this[_0x6f4882(0xee)]=_0x478e65,this[_0x6f4882(0x35c)]=_0x4f82d5,this[_0x6f4882(0x421)]=_0x3c79ec);}get[_0x49c5a4(0x404)](){const _0x29d5bd=_0x49c5a4;return this[_0x29d5bd(0x443)]['getValue']();}get[_0x49c5a4(0x2e9)](){const _0x1ad167=_0x49c5a4;return this[_0x1ad167(0x19f)][_0x1ad167(0x428)]();}[_0x49c5a4(0x13b)](){const _0x52b788=_0x49c5a4;super[_0x52b788(0x13b)](),this[_0x52b788(0x443)][_0x52b788(0x35e)](new Map()),this[_0x52b788(0x443)]['complete'](),this[_0x52b788(0x19f)][_0x52b788(0x35e)]([]),this[_0x52b788(0x19f)][_0x52b788(0xf2)]();}['init'](){const _0x35ca90=_0x49c5a4;this[_0x35ca90(0x128)]||(this[_0x35ca90(0x128)]=!0x0,this[_0x35ca90(0x362)]['sessionStatus$'][_0x35ca90(0x3d2)](A[_0x35ca90(0x27e)](this[_0x35ca90(0x148)]))[_0x35ca90(0x2b8)](_0x29beea=>{const _0x1ae225=_0x35ca90;_0x29beea===se['ONLINE']?this[_0x1ae225(0x177)]():this[_0x1ae225(0x1bf)]();}),this[_0x35ca90(0x362)][_0x35ca90(0x190)][_0x35ca90(0x3d2)](A[_0x35ca90(0x27e)](this[_0x35ca90(0x148)]))[_0x35ca90(0x2b8)](_0x26e041=>{const _0x54dee4=_0x35ca90,_0x2bcaab=_0x26e041[_0x54dee4(0x1c0)];_0x2bcaab===p['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x54dee4(0x173)](_0x26e041),_0x2bcaab===p[_0x54dee4(0x442)]['USERS_LEAVE']&&this[_0x54dee4(0x51f)](_0x26e041);}),this[_0x35ca90(0x5ad)](this['_commandService']['onCommandExecuted'](_0x594425=>{const _0x574d26=_0x35ca90,_0x186eb1=_0x594425[_0x574d26(0x50f)];_0x186eb1!=null&&this['_online']&&_0x594425['id']===ye[_0x574d26(0x1b8)]['id']&&_0x186eb1[_0x574d26(0x212)]===this[_0x574d26(0x43f)]&&_0x186eb1[_0x574d26(0x3f2)]===!0x1&&_0x186eb1[_0x574d26(0x5b8)][_0x574d26(0x313)]>0x0&&this['_updateLocalCursor'](_0x186eb1['ranges']);})),this[_0x35ca90(0x396)][_0x35ca90(0x375)][_0x35ca90(0x3d2)](A['takeUntil'](this[_0x35ca90(0x148)]))[_0x35ca90(0x2b8)](_0x34ff38=>{const _0x28f3f1=_0x35ca90;if((_0x34ff38==null?void 0x0:_0x34ff38['unitID'])!==this[_0x28f3f1(0x43f)])return;const _0x3bc9a0={'eventID':p[_0x28f3f1(0x442)]['UPDATE_CURSOR'],'data':_0x34ff38};this[_0x28f3f1(0x173)](_0x3bc9a0);}),this['disposeWithMe'](this[_0x35ca90(0x421)][_0x35ca90(0x3c8)](_0x4e1aa4=>{const _0x474ce6=_0x35ca90;if(_0x4e1aa4[_0x474ce6(0x50f)]==null)return;const _0x59c773=_0x4e1aa4[_0x474ce6(0x50f)];if(_0x4e1aa4['id']!==ye['RichTextEditingMutation']['id']||_0x59c773['unitId']!==this['unitID'])return;const _0xb7615e={'id':_0x474ce6(0x303),'params':_0x59c773},_0x54c2c8=this[_0x474ce6(0x404)];for(const [_0x373d7c,_0x227a40]of _0x54c2c8){const _0x28d13b={'id':_0x474ce6(0x303),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x227a40[_0x474ce6(0x5b8)]}},_0x1f4be8=this[_0x474ce6(0xee)][_0x474ce6(0x3b7)](_0xb7615e,_0x28d13b,!0x1);if(p[_0x474ce6(0x299)](_0x1f4be8))throw _0x1f4be8[_0x474ce6(0x41d)];_0x54c2c8['set'](_0x373d7c,{..._0x227a40,'ranges':_0x1f4be8[_0x474ce6(0x4aa)][_0x474ce6(0x50f)][_0x474ce6(0x284)]});}queueMicrotask(()=>{const _0xea302e=_0x474ce6;this[_0xea302e(0x443)][_0xea302e(0x35e)](_0x54c2c8);});})));}[_0x49c5a4(0x173)](_0x201f32){const _0x30bb78=_0x49c5a4;var _0x28f5de,_0x3cc26a;const {memberID:_0x14399f,selection:_0x2a5efc}=_0x201f32[_0x30bb78(0x2ab)],_0x1f28df=Mi(_0x2a5efc),_0x42d679=(_0x3cc26a=(_0x28f5de=this[_0x30bb78(0x44e)][_0x30bb78(0x499)](this['unitID'],_0x14399f))==null?void 0x0:_0x28f5de[_0x30bb78(0x31d)])!=null?_0x3cc26a:_0x30bb78(0x11a),_0x3501f1={'color':this[_0x30bb78(0x4cd)][_0x30bb78(0x3fb)](_0x14399f),'name':_0x42d679,'ranges':_0x1f28df},_0xbc37b3=this[_0x30bb78(0x404)];_0xbc37b3[_0x30bb78(0x384)](_0x14399f,_0x3501f1),this[_0x30bb78(0x443)]['next'](_0xbc37b3);}[_0x49c5a4(0x51f)](_0x107c85){const _0x4e8bf3=_0x49c5a4,{memberID:_0x5e7b5a}=_0x107c85['data'],_0x16eae8=this[_0x4e8bf3(0x404)];_0x16eae8['delete'](_0x5e7b5a),this[_0x4e8bf3(0x443)]['next'](_0x16eae8);}[_0x49c5a4(0x177)](){const _0x201f8e=_0x49c5a4;var _0x3ef9aa;if(this['_online']=!0x0,((_0x3ef9aa=this[_0x201f8e(0x35c)]['getFocusedUnit']())==null?void 0x0:_0x3ef9aa[_0x201f8e(0x468)]())!==this[_0x201f8e(0x43f)])return;const _0x2017f6=this[_0x201f8e(0x13d)][_0x201f8e(0x17e)](ye[_0x201f8e(0x51b)])[_0x201f8e(0x316)]();Array[_0x201f8e(0x425)](_0x2017f6)&&_0x2017f6['length']>0x0&&this['_updateLocalCursor'](_0x2017f6);}[_0x49c5a4(0x1bf)](){const _0xd6187c=_0x49c5a4;this[_0xd6187c(0x263)]=!0x1;}};St=qi([me(0x2,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),me(0x3,a[_0x49c5a4(0x435)](Ot)),me(0x4,a[_0x49c5a4(0x435)](exports['MemberService'])),me(0x5,a[_0x49c5a4(0x435)](Rt)),me(0x6,p[_0x49c5a4(0x169)]),me(0x7,a[_0x49c5a4(0x1ea)]),me(0x8,a[_0x49c5a4(0x1a3)])],St);var Ji=Object['defineProperty'],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x1773f6,_0x3cdd72,_0x5d76f2,_0x34b265)=>{const _0xa803a1=_0x49c5a4;for(var _0x2fe455=_0x34b265>0x1?void 0x0:_0x34b265?Zi(_0x3cdd72,_0x5d76f2):_0x3cdd72,_0x560a47=_0x1773f6[_0xa803a1(0x313)]-0x1,_0x1e73ce;_0x560a47>=0x0;_0x560a47--)(_0x1e73ce=_0x1773f6[_0x560a47])&&(_0x2fe455=(_0x34b265?_0x1e73ce(_0x3cdd72,_0x5d76f2,_0x2fe455):_0x1e73ce(_0x2fe455))||_0x2fe455);return _0x34b265&&_0x2fe455&&Ji(_0x3cdd72,_0x5d76f2,_0x2fe455),_0x2fe455;},be=(_0x40438b,_0x412814)=>(_0x150942,_0x3e6e54)=>_0x412814(_0x150942,_0x3e6e54,_0x40438b);const es=0x12c,ts=0x64,ns=()=>{let _0xafd1ed=[],_0x3534e7=!0x1;return _0x54fcf4=>{const _0x57e78e=_0x3dfb;_0xafd1ed[_0x57e78e(0x1e3)](_0x54fcf4),_0x3534e7||(_0x3534e7=!0x0,setTimeout(()=>{const _0x5d9d3a=_0x57e78e;_0xafd1ed[_0x5d9d3a(0x27b)](_0x451ee0=>_0x451ee0()),_0xafd1ed=[],_0x3534e7=!0x1;}));};};let pt=class extends a['RxDisposable']{constructor(_0x4ee77c,_0x51f61e,_0x3e8779,_0x18a8a3,_0x4f3055,_0x24c911,_0x51ddd9,_0x30775f){const _0x5b27ac=_0x49c5a4;super(),I(this,_0x5b27ac(0x263),!0x1),I(this,_0x5b27ac(0x128),!0x1),I(this,'_cursorInfo$',new A[(_0x5b27ac(0x2a1))](new Map())),I(this,_0x5b27ac(0x269),this[_0x5b27ac(0x443)][_0x5b27ac(0x225)]()),I(this,_0x5b27ac(0x19f),new A[(_0x5b27ac(0x2a1))]([])),I(this,_0x5b27ac(0x4fd),this[_0x5b27ac(0x19f)][_0x5b27ac(0x3d2)](A[_0x5b27ac(0x4c7)](es))),I(this,_0x5b27ac(0x1ca),a[_0x5b27ac(0x5ae)]((_0x157e0c,_0x2d090d)=>{const _0x1ade2c=_0x5b27ac,_0x1b162d={'eventID':p[_0x1ade2c(0x442)][_0x1ade2c(0x486)],'data':{'unitID':this[_0x1ade2c(0x43f)],'memberID':this[_0x1ade2c(0x362)]['getMemberID'](),'selection':Pt['serializeRangeWithSheet'](_0x157e0c,_0x2d090d['range'])}};this[_0x1ade2c(0x362)][_0x1ade2c(0x38c)](_0x1b162d,this[_0x1ade2c(0x43f)]);},ts)),(this[_0x5b27ac(0x43f)]=_0x4ee77c,this['_session']=_0x51f61e,this['_injector']=_0x3e8779,this[_0x5b27ac(0x4cd)]=_0x18a8a3,this['_memberService']=_0x4f3055,this[_0x5b27ac(0x35c)]=_0x24c911,this[_0x5b27ac(0x421)]=_0x51ddd9,this[_0x5b27ac(0x57a)]=_0x30775f);}get[_0x49c5a4(0x404)](){const _0x204deb=_0x49c5a4;return this[_0x204deb(0x443)]['getValue']();}get[_0x49c5a4(0x2e9)](){const _0x5310ab=_0x49c5a4;return this[_0x5310ab(0x19f)][_0x5310ab(0x428)]();}[_0x49c5a4(0x13b)](){const _0x1cff2a=_0x49c5a4;super['dispose'](),this[_0x1cff2a(0x443)][_0x1cff2a(0x35e)](new Map()),this[_0x1cff2a(0x443)][_0x1cff2a(0xf2)](),this[_0x1cff2a(0x19f)][_0x1cff2a(0x35e)]([]),this['_roomMembers$'][_0x1cff2a(0xf2)]();}[_0x49c5a4(0x361)](){const _0x2649c7=_0x49c5a4;this[_0x2649c7(0x128)]||(this[_0x2649c7(0x128)]=!0x0,this['_session']['sessionStatus$'][_0x2649c7(0x3d2)](A[_0x2649c7(0x27e)](this[_0x2649c7(0x148)]))['subscribe'](_0x2f7099=>{const _0x366b56=_0x2649c7;_0x2f7099===se['ONLINE']?this[_0x366b56(0x177)]():this[_0x366b56(0x1bf)]();}),this[_0x2649c7(0x362)][_0x2649c7(0x190)][_0x2649c7(0x3d2)](A[_0x2649c7(0x27e)](this[_0x2649c7(0x148)]))[_0x2649c7(0x2b8)](_0x3a25ed=>{const _0x402c94=_0x2649c7,_0x456861=_0x3a25ed[_0x402c94(0x1c0)];_0x456861===p[_0x402c94(0x442)][_0x402c94(0x486)]&&this[_0x402c94(0x173)](_0x3a25ed),_0x456861===p[_0x402c94(0x442)][_0x402c94(0x595)]&&this[_0x402c94(0x51f)](_0x3a25ed);}),this[_0x2649c7(0x3d9)](),this[_0x2649c7(0x5ad)](this[_0x2649c7(0x421)][_0x2649c7(0x3c8)](_0x29c431=>{const _0x4835d2=_0x2649c7;if(this[_0x4835d2(0x263)]&&_0x29c431['id']===B['SetSelectionsOperation']['id']&&_0x29c431[_0x4835d2(0x50f)]['unitId']===this['unitID']){const _0x29defc=_0x29c431[_0x4835d2(0x50f)];this[_0x4835d2(0x1ca)](_0x29defc[_0x4835d2(0x555)],_0x29defc[_0x4835d2(0x2f3)][0x0]);}})));}['_onCursorUpdate'](_0x4004d7){const _0x513a3a=_0x49c5a4;var _0x41756c,_0xe3945d;const {memberID:_0x593aaa,selection:_0x167f5c}=_0x4004d7[_0x513a3a(0x2ab)],{sheetName:_0x4d1e7d,range:_0x496201}=Pt[_0x513a3a(0x391)](_0x167f5c),_0x3ed2c5={'name':(_0xe3945d=(_0x41756c=this[_0x513a3a(0x44e)][_0x513a3a(0x499)](this['unitID'],_0x593aaa))==null?void 0x0:_0x41756c['name'])!=null?_0xe3945d:'Unknown\x20user','range':this[_0x513a3a(0x1c7)](_0x4d1e7d,_0x496201),'sheetID':_0x4d1e7d,'color':this[_0x513a3a(0x4cd)][_0x513a3a(0x3fb)](_0x593aaa),'selection':_0x167f5c},_0x46e245=this[_0x513a3a(0x404)];_0x46e245[_0x513a3a(0x384)](_0x593aaa,_0x3ed2c5),this[_0x513a3a(0x443)][_0x513a3a(0x35e)](_0x46e245);}[_0x49c5a4(0x51f)](_0x3277ef){const _0x1b1228=_0x49c5a4,{memberID:_0x3b5d71}=_0x3277ef[_0x1b1228(0x2ab)],_0x49b356=this[_0x1b1228(0x404)];_0x49b356[_0x1b1228(0x43c)](_0x3b5d71),this['_cursorInfo$'][_0x1b1228(0x35e)](_0x49b356);}[_0x49c5a4(0x1c7)](_0x2b4f41,_0x1c2ef3){const _0x10129a=_0x49c5a4;var _0x3b90cd,_0x2b1f81;const _0x7d3135=(_0x2b1f81=(_0x3b90cd=this[_0x10129a(0x35c)][_0x10129a(0x599)](this['unitID']))==null?void 0x0:_0x3b90cd['getSheetBySheetId'](_0x2b4f41))==null?void 0x0:_0x2b1f81[_0x10129a(0x39c)]();return(_0x7d3135==null?void 0x0:_0x7d3135[_0x10129a(0x172)](_0x58398d=>a[_0x10129a(0x259)][_0x10129a(0x12c)](_0x58398d,_0x1c2ef3)))||_0x1c2ef3;}[_0x49c5a4(0x3d9)](){const _0x22c3bc=_0x49c5a4,_0x5b5df3=new a[(_0x22c3bc(0x4e1))](),_0x349297=ns(),_0x183370=()=>{const _0x5b6ef2=_0x22c3bc;_0x5b5df3[_0x5b6ef2(0x13b)]();const _0x22b30e=(_0x26d355,_0x48fc16,_0x562e4d,_0x43ba91)=>{const _0x34dbe9=_0x5b6ef2;let _0x468dba=[];switch(_0x26d355['id']){case B[_0x34dbe9(0x28c)][_0x34dbe9(0x364)]:{_0x468dba=B[_0x34dbe9(0x321)](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)][_0x34dbe9(0x306)]:{_0x468dba=B['handleDeleteRangeMoveUp'](_0x26d355,_0x43ba91);break;}case B['EffectRefRangId'][_0x34dbe9(0x3f5)]:{_0x468dba=B['handleInsertCol'](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)]['InsertRangeMoveDownCommandId']:{_0x468dba=B[_0x34dbe9(0x359)](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)][_0x34dbe9(0x224)]:{_0x468dba=B['handleInsertRangeMoveRight'](_0x26d355,_0x43ba91);break;}case B['EffectRefRangId'][_0x34dbe9(0x4fe)]:{_0x468dba=B[_0x34dbe9(0x1bc)](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)][_0x34dbe9(0x456)]:{_0x468dba=B[_0x34dbe9(0x436)](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)][_0x34dbe9(0x4c8)]:{_0x468dba=B[_0x34dbe9(0x1ee)](_0x26d355,_0x43ba91);break;}case B[_0x34dbe9(0x28c)]['RemoveRowCommandId']:{_0x468dba=B[_0x34dbe9(0x47f)](_0x26d355,_0x43ba91);break;}}const _0x559b5f=B['runRefRangeMutations'](_0x468dba,_0x43ba91),_0x1bae9d=this[_0x34dbe9(0x404)][_0x34dbe9(0x17e)](_0x48fc16);if(_0x1bae9d&&_0x559b5f){const _0x3f64ab={..._0x1bae9d,'range':_0x559b5f};this['cursorInfo'][_0x34dbe9(0x384)](_0x48fc16,_0x3f64ab),_0x349297(()=>{const _0x7c338c=_0x34dbe9,_0x1074eb=this[_0x7c338c(0x57a)]['registerRefRange'](_0x559b5f,_0x121b57=>(_0x1074eb[_0x7c338c(0x13b)](),_0x22b30e(_0x121b57,_0x48fc16,_0x562e4d,_0x559b5f)));_0x5b5df3[_0x7c338c(0x424)](_0x1074eb);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5b6ef2(0x27b)]((_0x112c01,_0x50ebda)=>{const _0x1c16ea=_0x5b6ef2,{range:_0x3b1a3b,sheetID:_0x3325be}=_0x112c01,_0x29f7c6=this[_0x1c16ea(0x57a)][_0x1c16ea(0x39a)](_0x3b1a3b,_0x5d13a3=>(_0x29f7c6[_0x1c16ea(0x13b)](),_0x22b30e(_0x5d13a3,_0x50ebda,_0x3325be,_0x3b1a3b)));_0x5b5df3[_0x1c16ea(0x424)](_0x29f7c6);});};this[_0x22c3bc(0x5ad)](a[_0x22c3bc(0x516)](this[_0x22c3bc(0x443)][_0x22c3bc(0x2b8)](()=>{_0x183370();})));}[_0x49c5a4(0x177)](){const _0x3d417d=_0x49c5a4;var _0xae4cd3,_0x5af1cd;if(this[_0x3d417d(0x263)]=!0x0,((_0xae4cd3=this[_0x3d417d(0x35c)][_0x3d417d(0x49a)]())==null?void 0x0:_0xae4cd3['getUnitId']())!==this[_0x3d417d(0x43f)])return;const _0x1271ca=(_0x5af1cd=this['_injector']['get'](B['SheetsSelectionsService'])[_0x3d417d(0x3eb)]())==null?void 0x0:_0x5af1cd[0x0],_0xde141d=this['_univerInstanceService'][_0x3d417d(0x2b9)](a[_0x3d417d(0x11e)]['UNIVER_SHEET'])['getActiveSheet']();_0x1271ca&&_0xde141d&&this[_0x3d417d(0x1ca)](_0xde141d['getSheetId'](),_0x1271ca);}['_toggleOffline'](){const _0x568409=_0x49c5a4;this[_0x568409(0x263)]=!0x1;}};pt=Qi([be(0x2,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),be(0x3,a[_0x49c5a4(0x435)](Ot)),be(0x4,a['Inject'](exports[_0x49c5a4(0x4ee)])),be(0x5,a[_0x49c5a4(0x1ea)]),be(0x6,a[_0x49c5a4(0x1a3)]),be(0x7,a[_0x49c5a4(0x435)](B[_0x49c5a4(0x307)]))],pt);var is=Object[_0x49c5a4(0x119)],ss=Object[_0x49c5a4(0x3ea)],rs=(_0x3390bb,_0x42bc13,_0x2170f2,_0x105d91)=>{for(var _0x476c37=_0x105d91>0x1?void 0x0:_0x105d91?ss(_0x42bc13,_0x2170f2):_0x42bc13,_0x389cf9=_0x3390bb['length']-0x1,_0x3a98f5;_0x389cf9>=0x0;_0x389cf9--)(_0x3a98f5=_0x3390bb[_0x389cf9])&&(_0x476c37=(_0x105d91?_0x3a98f5(_0x42bc13,_0x2170f2,_0x476c37):_0x3a98f5(_0x476c37))||_0x476c37);return _0x105d91&&_0x476c37&&is(_0x42bc13,_0x2170f2,_0x476c37),_0x476c37;},nt=(_0x1e2c7b,_0x78d892)=>(_0x39c255,_0x141afa)=>_0x78d892(_0x39c255,_0x141afa,_0x1e2c7b);let De=class extends a[_0x49c5a4(0x1db)]{constructor(_0x39a8b4,_0x46ba19,_0x516586){const _0x2d05f8=_0x49c5a4;super(),I(this,_0x2d05f8(0x345),new Map()),I(this,_0x2d05f8(0x4ca),new A[(_0x2d05f8(0x10d))]()),(this[_0x2d05f8(0x35c)]=_0x39a8b4,this[_0x2d05f8(0x13d)]=_0x46ba19,this[_0x2d05f8(0x108)]=_0x516586,this['_init']());}[_0x49c5a4(0x13b)](){const _0x1c9c65=_0x49c5a4;super[_0x1c9c65(0x13b)](),this['_entityInit$'][_0x1c9c65(0xf2)](),this[_0x1c9c65(0x345)][_0x1c9c65(0x27b)](_0x334a86=>_0x334a86[_0x1c9c65(0x13b)]());}['getCollabCursors$'](_0x30a0b5){const _0x676c6f=_0x49c5a4;return this[_0x676c6f(0x345)][_0x676c6f(0x23e)](_0x30a0b5)?this['_entities'][_0x676c6f(0x17e)](_0x30a0b5)[_0x676c6f(0x269)]:this[_0x676c6f(0x4ca)][_0x676c6f(0x3d2)](A[_0x676c6f(0x10f)](_0x2a2b32=>_0x2a2b32[_0x676c6f(0x43f)]===_0x30a0b5),A[_0x676c6f(0x305)](_0xca5169=>_0xca5169[_0x676c6f(0x269)]));}[_0x49c5a4(0x128)](){const _0x4b72da=_0x49c5a4;this['_univerInstanceService'][_0x4b72da(0x3b9)](a[_0x4b72da(0x11e)][_0x4b72da(0x50e)])[_0x4b72da(0x3d2)](A[_0x4b72da(0x27e)](this['dispose$']))[_0x4b72da(0x2b8)](async _0x27c1cb=>{const _0x2f69f7=_0x4b72da,_0x1df878=_0x27c1cb[_0x2f69f7(0x468)](),_0x310be2=await this[_0x2f69f7(0x3e2)](_0x1df878);this[_0x2f69f7(0x4ca)]['next'](_0x310be2),this['_entities'][_0x2f69f7(0x384)](_0x1df878,_0x310be2);}),this['_univerInstanceService'][_0x4b72da(0x3b9)](a[_0x4b72da(0x11e)]['UNIVER_DOC'])['pipe'](A[_0x4b72da(0x27e)](this[_0x4b72da(0x148)]))[_0x4b72da(0x3d2)](A['filter'](_0xfa0733=>!_0xfa0733[_0x4b72da(0x468)]()[_0x4b72da(0x1c6)]('__')))[_0x4b72da(0x2b8)](async _0x3e04fb=>{const _0x1aeefb=_0x4b72da,_0x52b69b=_0x3e04fb['getUnitId'](),_0x10c67b=await this[_0x1aeefb(0x3db)](_0x52b69b);this['_entityInit$'][_0x1aeefb(0x35e)](_0x10c67b),this['_entities'][_0x1aeefb(0x384)](_0x52b69b,_0x10c67b);}),A['merge'](this[_0x4b72da(0x35c)][_0x4b72da(0x55d)](a[_0x4b72da(0x11e)][_0x4b72da(0x466)]),this[_0x4b72da(0x35c)]['getTypeOfUnitDisposed$'](a[_0x4b72da(0x11e)][_0x4b72da(0x50e)]))['pipe'](A[_0x4b72da(0x27e)](this['dispose$']))[_0x4b72da(0x2b8)](_0x111032=>{const _0x2dcff6=_0x4b72da,_0x38a758=_0x111032['getUnitId'](),_0x44df4a=this[_0x2dcff6(0x345)][_0x2dcff6(0x17e)](_0x38a758);_0x44df4a&&(_0x44df4a['dispose'](),this[_0x2dcff6(0x345)][_0x2dcff6(0x43c)](_0x38a758));});}async[_0x49c5a4(0x3e2)](_0x52c2e9){const _0x35e65e=_0x49c5a4,_0x246457=await this['_collabSessionService']['requireSession'](_0x52c2e9),_0x496b57=this['_injector'][_0x35e65e(0x203)](pt,_0x52c2e9,_0x246457);return _0x496b57[_0x35e65e(0x361)](),_0x496b57;}async['_startDocCollabCursor'](_0x1a1f91){const _0x319ab5=_0x49c5a4,_0xaeebcf=await this['_collabSessionService']['requireSession'](_0x1a1f91),_0x43b3d4=this[_0x319ab5(0x13d)][_0x319ab5(0x203)](St,_0x1a1f91,_0xaeebcf);return _0x43b3d4[_0x319ab5(0x361)](),_0x43b3d4;}};De=rs([nt(0x0,a[_0x49c5a4(0x1ea)]),nt(0x1,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),nt(0x2,a[_0x49c5a4(0x435)](exports['CollaborationSessionService']))],De);const Le=0x14,Ht=0xc8,it=0x4,os=0x5;function as(_0x36f514,_0x51246d){const _0x10bf39=_0x49c5a4;let {radius:_0x230839,width:_0xfbf665,height:_0xb7a464}=_0x51246d;_0x230839=_0x230839!=null?_0x230839:0x0,_0xfbf665=_0xfbf665!=null?_0xfbf665:0x1e,_0xb7a464=_0xb7a464!=null?_0xb7a464:0x1e;let _0x4f23d4=0x0,_0x52d7a2=0x0,_0x10e00a=0x0;_0x4f23d4=_0x52d7a2=_0x10e00a=Math[_0x10bf39(0x258)](_0x230839,_0xfbf665/0x2,_0xb7a464/0x2),_0x36f514[_0x10bf39(0x56b)](),_0x36f514['moveTo'](_0x4f23d4,0x0),_0x36f514[_0x10bf39(0x388)](_0xfbf665-_0x52d7a2,0x0),_0x36f514[_0x10bf39(0x34a)](_0xfbf665-_0x52d7a2,_0x52d7a2,_0x52d7a2,Math['PI']*0x3/0x2,0x0,!0x1),_0x36f514[_0x10bf39(0x388)](_0xfbf665,_0xb7a464-_0x10e00a),_0x36f514['arc'](_0xfbf665-_0x10e00a,_0xb7a464-_0x10e00a,_0x10e00a,0x0,Math['PI']/0x2,!0x1),_0x36f514[_0x10bf39(0x388)](0x0,_0xb7a464),_0x36f514[_0x10bf39(0x388)](0x0,_0x4f23d4),_0x36f514[_0x10bf39(0x34a)](_0x4f23d4,_0x4f23d4,_0x4f23d4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36f514[_0x10bf39(0x544)](),_0x51246d['fill']&&(_0x36f514[_0x10bf39(0x2bb)](),_0x36f514[_0x10bf39(0x556)]=_0x51246d[_0x10bf39(0xf0)],_0x51246d[_0x10bf39(0x524)]===_0x10bf39(0x213)?_0x36f514[_0x10bf39(0xf0)](_0x10bf39(0x213)):_0x36f514[_0x10bf39(0xf0)](),_0x36f514[_0x10bf39(0x3d7)]());}class ze extends K['Shape']{constructor(_0x53cb33,_0x117d94){const _0x335a48=_0x49c5a4;super(_0x53cb33,_0x117d94),I(this,'color'),I(this,_0x335a48(0x251)),(this[_0x335a48(0x54a)]=_0x117d94==null?void 0x0:_0x117d94[_0x335a48(0x54a)],this['text']=_0x117d94==null?void 0x0:_0x117d94[_0x335a48(0x251)]);}static[_0x49c5a4(0x26c)](_0x4ed093,_0x2fa333){const _0x3cc8e2=_0x49c5a4,{text:_0x4a0294,color:_0x1f90f7}=_0x2fa333;_0x4ed093[_0x3cc8e2(0x2bb)](),_0x4ed093[_0x3cc8e2(0x59e)]=_0x3cc8e2(0x141);const _0x57a846=_0x4ed093[_0x3cc8e2(0x451)](_0x4a0294)[_0x3cc8e2(0x48c)],_0x5b95bf=Math['min'](_0x57a846+0x2*it,Ht);as(_0x4ed093,{'height':Le,'radius':0x4,'width':_0x5b95bf,'fill':_0x1f90f7,'evented':!0x1}),_0x4ed093[_0x3cc8e2(0x556)]=_0x3cc8e2(0x3f8);const _0x3f5493=it,_0x558be6=Le-os,_0x3af672=Ht-0x2*it;if(_0x57a846>_0x3af672){let _0x4ee7ed='',_0x5dad71=0x0;for(const _0x52c0ab of _0x4a0294){const _0x431a41=_0x4ed093[_0x3cc8e2(0x451)](_0x52c0ab)[_0x3cc8e2(0x48c)];if(_0x5dad71+_0x431a41<=_0x3af672-_0x4ed093['measureText']('...')[_0x3cc8e2(0x48c)])_0x4ee7ed+=_0x52c0ab,_0x5dad71+=_0x431a41;else{_0x4ee7ed+='...';break;}}_0x4ed093[_0x3cc8e2(0x2ca)](_0x4ee7ed,_0x3f5493,_0x558be6);}else _0x4ed093[_0x3cc8e2(0x2ca)](_0x4a0294,_0x3f5493,_0x558be6);_0x4ed093[_0x3cc8e2(0x3d7)]();}['_draw'](_0x4d3452){ze['drawWith'](_0x4d3452,this);}}const st=_0x49c5a4(0xf6),cs=_0x49c5a4(0x394),ls=_0x49c5a4(0x32e),Ue=0x6,hs=1.5,rt=0x4,_s=1.5,us=_0x49c5a4(0x5b6);class kt{constructor(_0x5f4348,_0x1bb271,_0x2fcea9,_0x4c7ac){const _0x512499=_0x49c5a4;I(this,_0x512499(0x598),[]),I(this,_0x512499(0x482),null),I(this,_0x512499(0x552),null),I(this,_0x512499(0x3af),null),I(this,_0x512499(0x3c6),null),I(this,_0x512499(0x20d),null),(this['_cursor']=_0x5f4348,this[_0x512499(0x32b)]=_0x1bb271,this[_0x512499(0x1ec)]=_0x2fcea9,this[_0x512499(0x26e)]=_0x4c7ac,this[_0x512499(0x19e)]());}set[_0x49c5a4(0x4d1)](_0x45c09e){const _0x81deca=_0x49c5a4;_0x45c09e?(this[_0x81deca(0x3af)]&&this[_0x81deca(0x3af)][_0x81deca(0x26b)](),this[_0x81deca(0x552)]&&this['_textBubble'][_0x81deca(0x2aa)]()):(this[_0x81deca(0x3af)]&&this[_0x81deca(0x3af)][_0x81deca(0x2aa)](),this[_0x81deca(0x552)]&&this[_0x81deca(0x552)][_0x81deca(0x26b)]());}[_0x49c5a4(0x13b)](){const _0x1520cd=_0x49c5a4;for(const _0x2b9382 of this[_0x1520cd(0x598)])_0x2b9382['dispose']();this[_0x1520cd(0x552)]&&this['_textBubble'][_0x1520cd(0x13b)](),this[_0x1520cd(0x3af)]&&this[_0x1520cd(0x3af)][_0x1520cd(0x13b)](),this[_0x1520cd(0x482)]&&this[_0x1520cd(0x482)][_0x1520cd(0x13b)](),this['_eventUnsubscribe']&&this[_0x1520cd(0x20d)]();}[_0x49c5a4(0x19e)](){const _0x49e020=_0x49c5a4;var _0x10a0b4;const {_docSkeleton:_0x22daa2,_document:_0x2185fa}=this,{color:_0x29b900,name:_0x4c35b6,ranges:_0x491146}=this[_0x49e020(0x24b)],_0x5ba2d8=_0x2185fa['getOffsetConfig'](),{docsLeft:_0x4dce8e,docsTop:_0x250f5b}=_0x5ba2d8,_0x49e0ca=new Z[(_0x49e020(0x27c))](_0x5ba2d8,_0x22daa2);for(const {startOffset:_0x2af8dc,endOffset:_0x28aab8,rangeType:_0x3cec54,segmentId:_0x307c76,segmentPage:_0x13f059,collapsed:_0x6ec5f1,isActive:_0xfd65af}of _0x491146){const _0x185752=_0x22daa2[_0x49e020(0x444)](_0x2af8dc,!0x0,_0x307c76,_0x13f059);let _0x1352b3=_0x22daa2[_0x49e020(0x444)](_0x28aab8,!0x0,_0x307c76,_0x13f059);if(_0x1352b3==null&&(_0x1352b3=_0x22daa2[_0x49e020(0x444)](_0x28aab8-0x1,!0x1,_0x307c76,_0x13f059)),_0xfd65af){const {contentBoxPointGroup:_0x185d86}=_0x49e0ca[_0x49e020(0x563)](_0x1352b3,_0x1352b3);if(_0x185d86[_0x49e020(0x313)]===0x0)continue;this[_0x49e020(0x5ac)](_0x29b900,_0x185d86,_0x4dce8e,_0x250f5b,_0x4c35b6),this[_0x49e020(0x20d)]=this['_handleHover']();}if(_0x185752&&_0x1352b3){if(_0x3cec54===a[_0x49e020(0x110)][_0x49e020(0x335)]){const _0x239e55=new Z['NodePositionConvertToRectRange'](_0x5ba2d8,_0x22daa2),{pointGroup:_0x35f8c6}=(_0x10a0b4=_0x239e55['getRangePointData'](_0x185752,_0x1352b3))!=null?_0x10a0b4:{};if(_0x35f8c6==null||_0x35f8c6[_0x49e020(0x313)]===0x0)continue;this['_drawRectRange'](_0x29b900,_0x35f8c6,_0x4dce8e,_0x250f5b);}else{if(!_0x6ec5f1){const {borderBoxPointGroup:_0x538d39}=_0x49e0ca['getRangePointData'](_0x185752,_0x1352b3);if(_0x538d39[_0x49e020(0x313)]===0x0)continue;this[_0x49e020(0x315)](_0x29b900,_0x538d39,_0x4dce8e,_0x250f5b);}}}}}['_drawAnchor'](_0xa9eb35,_0x884bf1,_0x16eb82,_0x33605c,_0x45197a){const _0x13676d=_0x49c5a4,_0x21314c=this['_getAnchorBounding'](_0x884bf1),{left:_0x53221e,top:_0x7d5399,height:_0x32654b}=_0x21314c,_0x2875a8=this['_getScale'](),_0x35b392=_s/_0x2875a8,_0x16c665=new K[(_0x13676d(0x2ba))](st+a[_0x13676d(0x4c9)]['generateRandomId'](Ue),{'left':_0x53221e+_0x16eb82-_0x35b392,'top':_0x7d5399+_0x33605c,'height':_0x32654b,'width':hs,'fill':_0xa9eb35||K[_0x13676d(0x36a)](a[_0x13676d(0x3d6)][_0x13676d(0x398)],0x0),'strokeWidth':_0x35b392,'stroke':us,'evented':!0x0});this[_0x13676d(0x482)]=_0x16c665,this[_0x13676d(0x32b)][_0x13676d(0x308)](_0x16c665,Z[_0x13676d(0x4d6)]);const _0x22bba3=new K[(_0x13676d(0x2ba))](st+a[_0x13676d(0x4c9)][_0x13676d(0x2a7)](Ue),{'left':_0x53221e+_0x16eb82-_0x35b392,'top':_0x7d5399+_0x33605c-rt/0x2,'height':rt,'width':rt,'fill':_0xa9eb35||K[_0x13676d(0x36a)](a[_0x13676d(0x3d6)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xa9eb35||K[_0x13676d(0x36a)](a['COLORS'][_0x13676d(0x398)],0x0),'evented':!0x1});this['_anchorDot']=_0x22bba3,this[_0x13676d(0x32b)][_0x13676d(0x308)](_0x22bba3,Z['TEXT_RANGE_LAYER_INDEX']);const _0x102683=new ze(st+a['Tools'][_0x13676d(0x2a7)](Ue),{'left':_0x53221e+_0x16eb82-_0x35b392,'top':_0x7d5399+_0x33605c-Le,'text':_0x45197a,'color':_0xa9eb35});this[_0x13676d(0x552)]=_0x102683,this[_0x13676d(0x32b)][_0x13676d(0x308)](_0x102683,Z[_0x13676d(0x4d6)]),this[_0x13676d(0x4d1)]=!0x1;}[_0x49c5a4(0x415)](){const _0x28eb89=_0x49c5a4,_0x1d00a7=this[_0x28eb89(0x482)][_0x28eb89(0x32d)]['subscribeEvent'](()=>{const _0x5633aa=_0x28eb89;this[_0x5633aa(0x4d1)]=!0x0;}),_0x94b6ff=this[_0x28eb89(0x482)][_0x28eb89(0x2f7)][_0x28eb89(0x1fc)](()=>{const _0x404b5a=_0x28eb89;this[_0x404b5a(0x3c6)]&&clearTimeout(this[_0x404b5a(0x3c6)]),this['_hideTimer']=setTimeout(()=>{const _0x1a522d=_0x404b5a;this[_0x1a522d(0x4d1)]=!0x1;},0x7d0);});return()=>{_0x1d00a7['unsubscribe'](),_0x94b6ff['unsubscribe']();};}[_0x49c5a4(0x315)](_0x409423,_0x4df5ce,_0x5edf0f,_0x1fdcb0){const _0x5f4310=_0x49c5a4,_0x33d2ec=new a[(_0x5f4310(0x2d1))](_0x409423)[_0x5f4310(0x4a7)](0.2)[_0x5f4310(0x4ea)](),_0x58f5a=new K[(_0x5f4310(0x57e))](cs+a[_0x5f4310(0x4c9)][_0x5f4310(0x2a7)](Ue),{'pointsGroup':_0x4df5ce,'fill':_0x33d2ec||K['getColor'](a[_0x5f4310(0x3d6)][_0x5f4310(0x398)],0.2),'left':_0x5edf0f,'top':_0x1fdcb0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f4310(0x598)][_0x5f4310(0x1e3)](_0x58f5a),this['_scene'][_0x5f4310(0x308)](_0x58f5a,Z[_0x5f4310(0x4d6)]);}[_0x49c5a4(0x1e1)](_0x50788d,_0x59690d,_0x3d5ebd,_0x12a3e2){const _0x4b5cc5=_0x49c5a4,_0x3116be=new a[(_0x4b5cc5(0x2d1))](_0x50788d)[_0x4b5cc5(0x4a7)](0.2)[_0x4b5cc5(0x4ea)](),_0x10e5fe=new K[(_0x4b5cc5(0x57e))](ls+a[_0x4b5cc5(0x4c9)][_0x4b5cc5(0x2a7)](Ue),{'pointsGroup':_0x59690d,'fill':_0x3116be||K[_0x4b5cc5(0x36a)](a[_0x4b5cc5(0x3d6)][_0x4b5cc5(0x398)],0.2),'left':_0x3d5ebd,'top':_0x12a3e2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b5cc5(0x598)][_0x4b5cc5(0x1e3)](_0x10e5fe),this[_0x4b5cc5(0x32b)][_0x4b5cc5(0x308)](_0x10e5fe,Z[_0x4b5cc5(0x4d6)]);}[_0x49c5a4(0x298)](_0x23fb6d){const _0x4caad2=_0x23fb6d[0x0],_0x119eaf=_0x4caad2[0x0],_0x1305f7=_0x4caad2[0x2],{x:_0x1b8fea,y:_0x26abe0}=_0x119eaf,{x:_0x495ee6,y:_0x3f563c}=_0x1305f7;return{'left':_0x1b8fea,'top':_0x26abe0,'width':_0x495ee6-_0x1b8fea,'height':_0x3f563c-_0x26abe0};}['_getScale'](){const _0xc19ff=_0x49c5a4,{scaleX:_0x5c37f2,scaleY:_0x4ea2e8}=this['_scene']['getAncestorScale']();return Math[_0xc19ff(0x215)](_0x5c37f2,_0x4ea2e8);}}var ds=Object['defineProperty'],fs=Object['getOwnPropertyDescriptor'],vs=(_0x9e8e,_0x4dfea6,_0x28c58b,_0x48efb9)=>{const _0x431ec9=_0x49c5a4;for(var _0x4ae124=_0x48efb9>0x1?void 0x0:_0x48efb9?fs(_0x4dfea6,_0x28c58b):_0x4dfea6,_0x542f62=_0x9e8e[_0x431ec9(0x313)]-0x1,_0x56ccc4;_0x542f62>=0x0;_0x542f62--)(_0x56ccc4=_0x9e8e[_0x542f62])&&(_0x4ae124=(_0x48efb9?_0x56ccc4(_0x4dfea6,_0x28c58b,_0x4ae124):_0x56ccc4(_0x4ae124))||_0x4ae124);return _0x48efb9&&_0x4ae124&&ds(_0x4dfea6,_0x28c58b,_0x4ae124),_0x4ae124;},je=(_0x231194,_0x5ef07f)=>(_0x3b7992,_0x37f68a)=>_0x5ef07f(_0x3b7992,_0x37f68a,_0x231194);let mt=class extends a['RxDisposable']{constructor(_0x2fff62,_0xde7783,_0x45e4f3,_0x82692b,_0x47dadf){const _0x301d74=_0x49c5a4;super(),I(this,_0x301d74(0x4f7),[]),I(this,_0x301d74(0x216),[]),(this[_0x301d74(0x413)]=_0x2fff62,this['_docSkeletonManagerService']=_0xde7783,this[_0x301d74(0x167)]=_0x45e4f3,this[_0x301d74(0x421)]=_0x82692b,this[_0x301d74(0x25d)]=_0x47dadf,this['_init']());}[_0x49c5a4(0x128)](){const _0x2cc612=_0x49c5a4,_0x1ead26=this['_context'][_0x2cc612(0x212)],_0x5c5f91=this[_0x2cc612(0x4ff)];this['disposeWithMe'](A['combineLatest']([this[_0x2cc612(0x167)][_0x2cc612(0x57b)](_0x1ead26),this[_0x2cc612(0x25d)][_0x2cc612(0x4bd)]])[_0x2cc612(0x3d2)](V['map'](([_0x3db824,_0x133fe9])=>({'skeleton':_0x5c5f91[_0x2cc612(0x11c)](),'cursors':[..._0x3db824[_0x2cc612(0x1de)]()][_0x2cc612(0x509)](_0x5cd811=>({..._0x5cd811,'color':_0x133fe9[_0x5cd811[_0x2cc612(0x54a)]]}))})))[_0x2cc612(0x2b8)](_0x1bf6ce=>{const _0x55bac4=_0x2cc612;if(this['_removeCollabCursors'](),_0x1bf6ce){const {skeleton:_0x120f9f,cursors:_0x18638e}=_0x1bf6ce;this[_0x55bac4(0x257)](_0x120f9f,_0x18638e);}})),this[_0x2cc612(0x3fe)](),this[_0x2cc612(0x3a6)]();}[_0x49c5a4(0x257)](_0x102654,_0xd68752){const _0x8abf81=_0x49c5a4,{scene:_0x43c64a,mainComponent:_0x125a23}=this['_context'],_0x223751=_0xd68752[_0x8abf81(0x2ea)](_0x5a5648=>new kt(_0x5a5648,_0x43c64a,_0x102654,_0x125a23));this[_0x8abf81(0x4f7)]=_0x223751,this[_0x8abf81(0x216)]=_0xd68752;}['_refreshCollabCursors'](){const _0x25c533=_0x49c5a4;this[_0x25c533(0x341)]();const {scene:_0x307f07,mainComponent:_0x3400e5}=this['_context'],_0x2c0fcc=this['_docSkeletonManagerService'][_0x25c533(0x11c)](),_0x596975=this[_0x25c533(0x216)][_0x25c533(0x2ea)](_0x5c0d9e=>new kt(_0x5c0d9e,_0x307f07,_0x2c0fcc,_0x3400e5));this[_0x25c533(0x4f7)]=_0x596975;}[_0x49c5a4(0x341)](){const _0x4ec517=_0x49c5a4;this['_cursorShapes'][_0x4ec517(0x27b)](_0x475db6=>_0x475db6[_0x4ec517(0x13b)]()),this[_0x4ec517(0x4f7)]=[];}['_initCommandExecutedListener'](){const _0x12f892=_0x49c5a4,_0x10faa0=[Z[_0x12f892(0x18f)]['id']];this[_0x12f892(0x5ad)](this[_0x12f892(0x421)][_0x12f892(0x3c8)](_0x172b0b=>{const _0x3480fa=_0x12f892;_0x10faa0[_0x3480fa(0x5b0)](_0x172b0b['id'])&&_0x172b0b['params']['unitId']===this[_0x3480fa(0x413)][_0x3480fa(0x212)]&&this[_0x3480fa(0x21c)]();}));}[_0x49c5a4(0x3fe)](){const _0x17d99e=_0x49c5a4;this['disposeWithMe'](a[_0x17d99e(0x55f)](this[_0x17d99e(0x413)][_0x17d99e(0x56d)][_0x17d99e(0x51d)])['pipe'](V[_0x17d99e(0x10f)](_0x316a6e=>_0x316a6e[_0x17d99e(0x4a4)]===K[_0x17d99e(0x14d)][_0x17d99e(0x4c5)]),V[_0x17d99e(0x492)](0x10))[_0x17d99e(0x2b8)](()=>{const _0x38cb96=_0x17d99e;this[_0x38cb96(0x21c)]();}));}};mt=vs([je(0x1,a[_0x49c5a4(0x435)](ye['DocSkeletonManagerService'])),je(0x2,a[_0x49c5a4(0x435)](De)),je(0x3,a[_0x49c5a4(0x1a3)]),je(0x4,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x116)]))],mt);const Ss=0x1,ps=1.5;class pn extends K[_0x49c5a4(0x1f1)]{constructor(_0x4415ec,_0x5a4a71){const _0x46e10c=_0x49c5a4;super(_0x4415ec,_0x5a4a71),I(this,_0x46e10c(0x343)),I(this,_0x46e10c(0x45e),!0x1),I(this,_0x46e10c(0x376)),I(this,_0x46e10c(0x42e),''),I(this,'_labelPosition',_0x46e10c(0x17f)),I(this,_0x46e10c(0x204)),(_0x5a4a71&&this[_0x46e10c(0x401)](_0x5a4a71),this['onPointerEnter$'][_0x46e10c(0x1fc)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x46e10c(0x1fc)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x49c5a4(0x401)](_0x58baf6){const _0x55a55e=_0x49c5a4;var _0x549e5e,_0x25b7cb,_0x5bd155,_0x1898c8,_0x2f5f2b,_0x96bc71;this[_0x55a55e(0x343)]=(_0x549e5e=_0x58baf6[_0x55a55e(0x54a)])!=null?_0x549e5e:this[_0x55a55e(0x343)],this[_0x55a55e(0x45e)]=(_0x25b7cb=_0x58baf6['hovered'])!=null?_0x25b7cb:this['_hovered'],this[_0x55a55e(0x376)]=(_0x5bd155=_0x58baf6[_0x55a55e(0x2ac)])!=null?_0x5bd155:this[_0x55a55e(0x376)],this[_0x55a55e(0x42e)]=(_0x1898c8=_0x58baf6['name'])!=null?_0x1898c8:this[_0x55a55e(0x42e)],this[_0x55a55e(0x11f)]=(_0x2f5f2b=_0x58baf6[_0x55a55e(0x241)])!=null?_0x2f5f2b:this[_0x55a55e(0x11f)],this[_0x55a55e(0x204)]=(_0x96bc71=_0x58baf6['backgroundColor'])!=null?_0x96bc71:this[_0x55a55e(0x204)],this[_0x55a55e(0x5b1)]({'width':_0x58baf6[_0x55a55e(0x48c)],'height':_0x58baf6[_0x55a55e(0x1fd)]});}[_0x49c5a4(0x154)](_0x3cbe8f){const _0x559b27=_0x49c5a4,{row:_0x5aef28,column:_0x516198}=_0x3cbe8f;if(_0x5aef28>=this['_range']['startRow']&&_0x5aef28<=this[_0x559b27(0x376)]['endRow']&&_0x516198>=this[_0x559b27(0x376)][_0x559b27(0x52d)]&&_0x516198<=this[_0x559b27(0x376)][_0x559b27(0x223)]){this[_0x559b27(0x401)]({'hovered':!0x0});return;}this[_0x559b27(0x401)]({'hovered':!0x1});}[_0x49c5a4(0x463)](_0x531b2b){return!0x1;}[_0x49c5a4(0x46c)](_0x5980c8){const _0xdd850f=_0x49c5a4;K['Rect']['drawWith'](_0x5980c8,{'width':this['width'],'height':this[_0xdd850f(0x1fd)],'strokeWidth':ps,'stroke':this[_0xdd850f(0x343)],'evented':!0x1,'fill':this[_0xdd850f(0x204)]}),this[_0xdd850f(0x45e)]&&(_0x5980c8['save'](),_0x5980c8[_0xdd850f(0x38f)](0x1,0x0,0x0,0x1,this[_0xdd850f(0x48c)],this['_labelPosition']==='bottom'?0x0:-Le),ze[_0xdd850f(0x26c)](_0x5980c8,{'text':this['_name'],'color':this[_0xdd850f(0x343)]}),_0x5980c8[_0xdd850f(0x3d7)]());}}var ms=Object[_0x49c5a4(0x119)],gs=Object[_0x49c5a4(0x3ea)],Is=(_0x28613a,_0x5ddc77,_0x5f3306,_0x2fcd2a)=>{const _0x218c71=_0x49c5a4;for(var _0xd9fc17=_0x2fcd2a>0x1?void 0x0:_0x2fcd2a?gs(_0x5ddc77,_0x5f3306):_0x5ddc77,_0x5a6705=_0x28613a[_0x218c71(0x313)]-0x1,_0x4c814d;_0x5a6705>=0x0;_0x5a6705--)(_0x4c814d=_0x28613a[_0x5a6705])&&(_0xd9fc17=(_0x2fcd2a?_0x4c814d(_0x5ddc77,_0x5f3306,_0xd9fc17):_0x4c814d(_0xd9fc17))||_0xd9fc17);return _0x2fcd2a&&_0xd9fc17&&ms(_0x5ddc77,_0x5f3306,_0xd9fc17),_0xd9fc17;},ot=(_0x3bd16c,_0x293681)=>(_0x54a882,_0x3ccffe)=>_0x293681(_0x54a882,_0x3ccffe,_0x3bd16c);const Cs=0x1389;let gt=class extends a[_0x49c5a4(0x1db)]{constructor(_0x574c6f,_0x16af8b,_0x2472f3,_0x2f5e9c){const _0x343990=_0x49c5a4;super(),I(this,_0x343990(0x216),new Set()),I(this,_0x343990(0x18b),null),(this[_0x343990(0x413)]=_0x574c6f,this[_0x343990(0x38b)]=_0x16af8b,this[_0x343990(0x167)]=_0x2472f3,this[_0x343990(0x25d)]=_0x2f5e9c,this[_0x343990(0x128)]());}[_0x49c5a4(0x128)](){const _0x41e36d=_0x49c5a4;this['_sheetSkeletonManagerService'][_0x41e36d(0x504)][_0x41e36d(0x3d2)](V[_0x41e36d(0x27e)](this[_0x41e36d(0x148)]),V[_0x41e36d(0x305)](_0x3e2739=>{const _0x1e7dc9=_0x41e36d;if(_0x3e2739){const _0x4bc2b1=_0x3e2739[_0x1e7dc9(0x138)];return A[_0x1e7dc9(0x3a8)](this[_0x1e7dc9(0x167)][_0x1e7dc9(0x57b)](this[_0x1e7dc9(0x413)][_0x1e7dc9(0x212)]),this[_0x1e7dc9(0x25d)][_0x1e7dc9(0x4bd)])[_0x1e7dc9(0x3d2)](V[_0x1e7dc9(0x2ea)](([_0x3cd029,_0x479144])=>{const _0x3ebcb8=new Map();return _0x3cd029['forEach']((_0x43869e,_0x47026f)=>{const _0x28cf3e=_0x3dfb;if(_0x43869e[_0x28cf3e(0x124)]===_0x4bc2b1){const _0x34cf8b={..._0x43869e};_0x34cf8b[_0x28cf3e(0x54a)]=_0x479144[_0x43869e['color']],_0x3ebcb8['set'](_0x47026f,_0x34cf8b);}}),{'skeleton':_0x3e2739,'cursors':_0x3ebcb8};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d2fcb,cursors:_0x40c602})=>{const _0x20291b=_0x41e36d;this[_0x20291b(0x341)](),_0x1d2fcb&&this['_updateCollabCursors'](_0x1d2fcb,_0x40c602);}),this[_0x41e36d(0x38b)][_0x41e36d(0x504)][_0x41e36d(0x2b8)](_0x6cbdef=>{const _0x4825eb=_0x41e36d;if(_0x6cbdef==null)return;const {skeleton:_0x54e5bd}=_0x6cbdef,{scene:_0x24d3aa}=this[_0x4825eb(0x413)];_0x24d3aa['onPointerMove$'][_0x4825eb(0x1fc)](a[_0x4825eb(0x5ae)](_0x4480af=>{const _0x3b4a38=_0x4825eb;var _0x22209b,_0x5a98a3;const {offsetX:_0x160710,offsetY:_0x5274f8}=_0x4480af,{x:_0x27174f,y:_0x437c0f}=_0x24d3aa[_0x3b4a38(0x370)](K[_0x3b4a38(0x592)][_0x3b4a38(0x302)]([_0x160710,_0x5274f8])),{scaleX:_0x20f3b1,scaleY:_0x5033cd}=_0x24d3aa[_0x3b4a38(0x574)](),_0x106ad0=_0x24d3aa['getViewport'](Re[_0x3b4a38(0x12a)]['VIEW_MAIN']),_0x35aa89=_0x24d3aa[_0x3b4a38(0x207)](K[_0x3b4a38(0x592)][_0x3b4a38(0x302)]([_0x27174f,_0x437c0f]),_0x106ad0),_0x5585b3=_0x54e5bd[_0x3b4a38(0x139)](_0x160710,_0x5274f8,_0x20f3b1,_0x5033cd,_0x35aa89);((_0x22209b=this[_0x3b4a38(0x18b)])==null?void 0x0:_0x22209b[_0x3b4a38(0x578)])===_0x5585b3[_0x3b4a38(0x578)]&&((_0x5a98a3=this[_0x3b4a38(0x18b)])==null?void 0x0:_0x5a98a3['row'])===_0x5585b3[_0x3b4a38(0x37b)]||this['_cursors'][_0x3b4a38(0x27b)](_0x15f802=>{const _0x3f8aa8=_0x3b4a38;_0x15f802[_0x3f8aa8(0x154)](_0x5585b3);});},0x64));});}[_0x49c5a4(0x257)](_0x687179,_0x3814ee){const _0x353e32=_0x49c5a4;var _0x3cee58;const _0x4a27bf=(_0x3cee58=this[_0x353e32(0x38b)]['getCurrent']())==null?void 0x0:_0x3cee58[_0x353e32(0x130)];if(!_0x4a27bf)return;const _0x3506ba=this['_getSheetObject']();if(!_0x3506ba)return;this[_0x353e32(0x216)][_0x353e32(0x27b)](_0xa56bed=>{const _0x243794=_0x353e32;_0xa56bed[_0x243794(0x33f)]();});const {scene:_0x1eb18c}=_0x3506ba,_0x48dfa3=Es(Array[_0x353e32(0x372)](_0x3814ee['values']()))[_0x353e32(0x2ea)](_0x404fa4=>{const _0x178933=_0x353e32,{color:_0x1767cb,range:_0x4eb34d,name:_0x2e7bc8,selection:_0x7950ef,sheetID:_0xc1bffe}=_0x404fa4,{startColumn:_0x4bec35,startRow:_0x5bdcca,endColumn:_0x395057,endRow:_0x516b95}=_0x4eb34d,_0x418332=Re['getCoordByCell'](_0x5bdcca,_0x4bec35,_0x1eb18c,_0x4a27bf),_0x59eb26=Re[_0x178933(0x183)](_0x516b95,_0x395057,_0x1eb18c,_0x4a27bf),{columnHeaderHeightAndMarginTop:_0x54e50d}=_0x4a27bf,{startX:_0x3d1b67,startY:_0x49bc55}=_0x418332,{endX:_0x5370d1,endY:_0x4cb298}=_0x59eb26,_0x163a1f=_0x5370d1-_0x3d1b67,_0x417a26=_0x4cb298-_0x49bc55,_0x7fdde={'labelPosition':_0x49bc55-_0x54e50d>=Le?_0x178933(0x17f):_0x178933(0x145),'sheetID':_0xc1bffe,'range':_0x4eb34d,'color':_0x1767cb,'name':_0x2e7bc8,'selection':_0x7950ef,'left':_0x3d1b67,'top':_0x49bc55,'width':_0x163a1f,'height':_0x417a26,'evented':!0x1,'zIndex':Cs};return new pn(_0x2e7bc8,_0x7fdde);});_0x1eb18c[_0x353e32(0x1da)](_0x48dfa3,Ss),this['_cursors']=new Set(_0x48dfa3);}[_0x49c5a4(0x341)](){const _0x4e8fb5=_0x49c5a4;var _0x1c529a;(_0x1c529a=this[_0x4e8fb5(0x216)])==null||_0x1c529a['forEach'](_0x22e6c6=>_0x22e6c6[_0x4e8fb5(0x13b)]());}['_getSheetObject'](){const _0x3552d6=_0x49c5a4;return Re[_0x3552d6(0x4a5)](this[_0x3552d6(0x413)][_0x3552d6(0x453)],this['_context']);}};gt=Is([ot(0x1,a[_0x49c5a4(0x435)](Re[_0x49c5a4(0x56c)])),ot(0x2,a['Inject'](De)),ot(0x3,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x116)]))],gt);function Es(_0x2b375f){const _0xc00d65=_0x49c5a4,_0x4dcde6=new Map();return _0x2b375f[_0xc00d65(0x27b)](_0x53564a=>{const _0x30f603=_0xc00d65;if(_0x4dcde6[_0x30f603(0x23e)](_0x53564a[_0x30f603(0x5b2)])){const _0x592fb0=_0x4dcde6[_0x30f603(0x17e)](_0x53564a[_0x30f603(0x5b2)]);_0x592fb0[_0x30f603(0x31d)]+=',\x20'+_0x53564a[_0x30f603(0x31d)];}else _0x4dcde6[_0x30f603(0x384)](_0x53564a['selection'],_0x53564a);}),Array[_0xc00d65(0x372)](_0x4dcde6['values']());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x351e00){const _0x30efc1=_0x49c5a4;return _0x351e00&&_0x351e00[_0x30efc1(0x477)]&&Object[_0x30efc1(0x1f9)][_0x30efc1(0x2dd)][_0x30efc1(0x112)](_0x351e00,_0x30efc1(0x2ed))?_0x351e00[_0x30efc1(0x2ed)]:_0x351e00;}var mn={'exports':{}},Xe={},bs=ae,Ts=Symbol[_0x49c5a4(0xf8)](_0x49c5a4(0x317)),Rs=Symbol[_0x49c5a4(0xf8)](_0x49c5a4(0x1e2)),ys=Object[_0x49c5a4(0x1f9)][_0x49c5a4(0x2dd)],Os=bs[_0x49c5a4(0x35d)][_0x49c5a4(0x480)],Ds={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x181e05,_0x1f9422,_0x1d1d13){const _0x3ad06a=_0x49c5a4;var _0x54800a,_0x4263b7={},_0x691cbc=null,_0x502c3a=null;_0x1d1d13!==void 0x0&&(_0x691cbc=''+_0x1d1d13),_0x1f9422[_0x3ad06a(0x206)]!==void 0x0&&(_0x691cbc=''+_0x1f9422['key']),_0x1f9422['ref']!==void 0x0&&(_0x502c3a=_0x1f9422[_0x3ad06a(0x235)]);for(_0x54800a in _0x1f9422)ys[_0x3ad06a(0x112)](_0x1f9422,_0x54800a)&&!Ds[_0x3ad06a(0x2dd)](_0x54800a)&&(_0x4263b7[_0x54800a]=_0x1f9422[_0x54800a]);if(_0x181e05&&_0x181e05[_0x3ad06a(0x175)]){for(_0x54800a in(_0x1f9422=_0x181e05[_0x3ad06a(0x175)],_0x1f9422))_0x4263b7[_0x54800a]===void 0x0&&(_0x4263b7[_0x54800a]=_0x1f9422[_0x54800a]);}return{'$$typeof':Ts,'type':_0x181e05,'key':_0x691cbc,'ref':_0x502c3a,'props':_0x4263b7,'_owner':Os[_0x3ad06a(0x2ff)]};}Xe[_0x49c5a4(0x4c2)]=Rs,Xe[_0x49c5a4(0x360)]=gn,Xe[_0x49c5a4(0xf5)]=gn,mn[_0x49c5a4(0x487)]=Xe;var ge=mn[_0x49c5a4(0x487)],Q=function(){const _0x2ba525=_0x49c5a4;return Q=Object[_0x2ba525(0x229)]||function(_0x3bc2bd){const _0xc0268c=_0x2ba525;for(var _0x3a6907,_0x316438=0x1,_0x49084c=arguments[_0xc0268c(0x313)];_0x316438<_0x49084c;_0x316438++){_0x3a6907=arguments[_0x316438];for(var _0x4ff540 in _0x3a6907)Object[_0xc0268c(0x1f9)][_0xc0268c(0x2dd)][_0xc0268c(0x112)](_0x3a6907,_0x4ff540)&&(_0x3bc2bd[_0x4ff540]=_0x3a6907[_0x4ff540]);}return _0x3bc2bd;},Q['apply'](this,arguments);},ws=function(_0x2ef3f2,_0x54037e){const _0x4b5514=_0x49c5a4;var _0x4566ed={};for(var _0x2d797c in _0x2ef3f2)Object['prototype'][_0x4b5514(0x2dd)][_0x4b5514(0x112)](_0x2ef3f2,_0x2d797c)&&_0x54037e[_0x4b5514(0x3ac)](_0x2d797c)<0x0&&(_0x4566ed[_0x2d797c]=_0x2ef3f2[_0x2d797c]);if(_0x2ef3f2!=null&&typeof Object[_0x4b5514(0x36e)]==_0x4b5514(0x25c)){for(var _0x27e3a2=0x0,_0x2d797c=Object['getOwnPropertySymbols'](_0x2ef3f2);_0x27e3a2<_0x2d797c[_0x4b5514(0x313)];_0x27e3a2++)_0x54037e['indexOf'](_0x2d797c[_0x27e3a2])<0x0&&Object[_0x4b5514(0x1f9)][_0x4b5514(0x597)][_0x4b5514(0x112)](_0x2ef3f2,_0x2d797c[_0x27e3a2])&&(_0x4566ed[_0x2d797c[_0x27e3a2]]=_0x2ef3f2[_0x2d797c[_0x27e3a2]]);}return _0x4566ed;},Dt=ae[_0x49c5a4(0x1ef)](function(_0xc71f0,_0xeb4827){const _0x5bef35=_0x49c5a4;var _0x528274=_0xc71f0[_0x5bef35(0x557)],_0x471847=_0xc71f0['id'],_0x31e437=_0xc71f0['className'],_0x1ac744=_0xc71f0[_0x5bef35(0x262)],_0x12986a=ws(_0xc71f0,[_0x5bef35(0x557),'id',_0x5bef35(0x15e),_0x5bef35(0x262)]),_0x387f58=_0x5bef35(0x3d3)[_0x5bef35(0x54b)](_0x471847,'\x20')[_0x5bef35(0x54b)](_0x31e437||'')['trim'](),_0x401f1a=ae['useRef']('_'[_0x5bef35(0x54b)](Ms()));return In(_0x528274,''[_0x5bef35(0x54b)](_0x471847),{'defIds':_0x528274[_0x5bef35(0x3b1)],'idSuffix':_0x401f1a['current']},Q({'ref':_0xeb4827,'className':_0x387f58},_0x12986a),_0x1ac744);});function In(_0x18c23a,_0x23498e,_0x10edc1,_0x47ae9f,_0x2a9152){const _0x48aa5d=_0x49c5a4;return ae['createElement'](_0x18c23a[_0x48aa5d(0x239)],Q(Q({'key':_0x23498e},Ps(_0x18c23a,_0x10edc1,_0x2a9152)),_0x47ae9f),(Us(_0x18c23a,_0x10edc1)['children']||[])[_0x48aa5d(0x2ea)](function(_0x4a58a1,_0x22ae41){const _0x5cdb16=_0x48aa5d;return In(_0x4a58a1,''[_0x5cdb16(0x54b)](_0x23498e,'-')['concat'](_0x18c23a[_0x5cdb16(0x239)],'-')[_0x5cdb16(0x54b)](_0x22ae41),_0x10edc1,void 0x0,_0x2a9152);}));}function Ps(_0x51dac7,_0x1863e2,_0x55f479){const _0x235c54=_0x49c5a4;var _0x5a8cd3=Q({},_0x51dac7['attrs']);_0x55f479!=null&&_0x55f479[_0x235c54(0x4f6)]&&_0x5a8cd3[_0x235c54(0xf0)]===_0x235c54(0x4f6)&&(_0x5a8cd3[_0x235c54(0xf0)]=_0x55f479[_0x235c54(0x4f6)]);var _0xb6c914=_0x1863e2[_0x235c54(0x3b1)];return!_0xb6c914||_0xb6c914[_0x235c54(0x313)]===0x0||(_0x51dac7[_0x235c54(0x239)]===_0x235c54(0x210)&&_0x5a8cd3[_0x235c54(0x171)]&&(_0x5a8cd3[_0x235c54(0x171)]=_0x5a8cd3[_0x235c54(0x171)]+_0x1863e2['idSuffix']),Object[_0x235c54(0x3bb)](_0x5a8cd3)[_0x235c54(0x27b)](function(_0x2bd9e9){const _0x2d42fd=_0x235c54;var _0x221e3d=_0x2bd9e9[0x0],_0x5cf4a0=_0x2bd9e9[0x1];typeof _0x5cf4a0==_0x2d42fd(0x358)&&(_0x5a8cd3[_0x221e3d]=_0x5cf4a0[_0x2d42fd(0x205)](/url\(#(.*)\)/,_0x2d42fd(0x4d3)['concat'](_0x1863e2['idSuffix'],')')));})),_0x5a8cd3;}function Us(_0x53a889,_0x4dd5c0){const _0x2f856a=_0x49c5a4;var _0x466cf7,_0x225b88=_0x4dd5c0[_0x2f856a(0x3b1)];return!_0x225b88||_0x225b88['length']===0x0?_0x53a889:_0x53a889[_0x2f856a(0x239)]===_0x2f856a(0xe9)&&(!((_0x466cf7=_0x53a889[_0x2f856a(0x125)])===null||_0x466cf7===void 0x0)&&_0x466cf7[_0x2f856a(0x313)])?Q(Q({},_0x53a889),{'children':_0x53a889[_0x2f856a(0x125)][_0x2f856a(0x2ea)](function(_0x282b49){const _0x40100e=_0x2f856a;return typeof _0x282b49[_0x40100e(0x34b)]['id']==_0x40100e(0x358)&&_0x225b88&&_0x225b88[_0x40100e(0x3ac)](_0x282b49[_0x40100e(0x34b)]['id'])>-0x1?Q(Q({},_0x282b49),{'attrs':Q(Q({},_0x282b49[_0x40100e(0x34b)]),{'id':_0x282b49[_0x40100e(0x34b)]['id']+_0x4dd5c0[_0x40100e(0x430)]})}):_0x282b49;})}):_0x53a889;}function Ms(){const _0x38617a=_0x49c5a4;return Math[_0x38617a(0x349)]()[_0x38617a(0xfb)](0x24)[_0x38617a(0x29f)](0x2,0x8);}Dt[_0x49c5a4(0x460)]=_0x49c5a4(0x134);function _0x2f48(){const _0x4cffb7=['_reverseMap','MD5','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_exhaustRemoteChangesetQueue','SetWorksheetActivateCommand','YUUMI_RATE_OVER_LIMIT','_cipher','toRgbString','onSendChangeset','b64DecodeUnicode','executeCommand','MemberService','COMPRESS_MUTATION_APPLY','/role','InsertSheetMutation','fromCollab','TOO_MANY_REQUESTS','HTTPService','snapshotServerUrl','colorChannel1','_cursorShapes','OpenSSL','padding','_getRedoStack','getWorkbookSelections','compose','roomMembers$','InsertRowCommandId','_docSkeletonManagerService','UNRECOGNIZED','LIVESHARE_TERMINATE','revision','SnapshotService','currentSkeleton$','getRoom','location','Malformed\x20UTF-8\x20data','encryptBlock','flatMap','_key','originalMeta','repeat','blockSize','UNIVER_SHEET','params','collabStatus.syncing','ENSURE_SNAPSHOT_EXECUTION','toStringTag','_sheetTransformSelectionsService','Workbook','ICollaborationSocketService','toDisposable','changesets','close','_handler','path','DocSelectionManagerService','_saveCache','onTransformChange$','take','_onCursorDelete','image/jpg','method','getDeserializedSheetBlock','userID','fillRule','COLLAB_SUBMIT_CHANGESET_URL','setCurrentUser','enc','_docStateChangeManagerService','c1Prime','ImageIoService','LICENSE_DISTRO_REJECTED','_initRequestHeader','startColumn','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','_retryConnectingTimer','CollaborationStatusDisplay','/universer-api/file/{fileID}/sign-url','@univerjs/ui','delay','searchParams','mapTo','requireSession','algo','state$','_showConflictNotification','mapDocumentTypeToUniverType','_transformStateCache','AuthzIoHttpService','mutations','sessionStatus$','_initCloseConn','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onConflict','LIVESHARE_FETCH_OPERATIONS','_lockTransition','closePath','saveSnapshot','isTransformMutationsWithChangesetSuccess','HmacMD5','words','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','color','concat','isPermissionRej','_handleEvent','_nDataBytes','AES','_cachedData','@univerjs/docs-ui','_textBubble','UNDEFINED','getCollabEntity$','subUnitId','fillStyle','icon','mixIn','Disposable','[DataLoaderController]','_initDependencies','unknown','getTypeOfUnitDisposed$','IUndoRedoService','fromEventSubject','_commentService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','localeService','getRangePointData','IDLE','_resendTimeout','univer-pro.collaboration-client.single-active-unit-service','activeSheet$','resourceIDs','_collaborationPaused','_updateStatus','beginPath','SheetSkeletonManagerService','engine','_initStatusComponent','retryConnectingInterval','clipPath','isInternalEditorID','action','JSONX','getAncestorScale','_createHandler','confirm','UUID','column','clear','_refRangeService','getCollabCursors$','1648azfGhF','_id','RegularPolygon','/universer-api/snapshot/','finalize','_socketService','BufferedBlockAlgorithm','memberID','JOINING','unload','ONLINE','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','/fetchmissing?from=','startTime','encode','objectActions','onTransformSelections','ivSize','APPLY_DUPLICATED','_retryCount','_http','[OfflineState]:\x20received\x20rejection.','Vector2','stopTime','onStateChange','USERS_LEAVE','HttpImport','propertyIsEnumerable','_shapes','getUniverSheetInstance','readAsDataURL','Tooltip','infoRsp','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','font','debug','reqId','online','roles','not_collab','Error','_sessions','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSessionService]:\x20socket\x20error','reduce','floor','IRemoteInstanceService','_prevBlock','_drawAnchor','disposeWithMe','debounce','reverse','includes','transformByState','selection','setConfig','ILocalStorageService','_candidateSocket','rgba(255,\x20255,\x20255,\x200.01)','_initUnitPermissionChange','ranges','_disabled','_iv','defs','Utf8','_scheduleSaving','Undefined','number','_transformService','deleteCollaborator','fill','_parse','complete','getUndoRedoMutationParamsCache','BlockCipherMode','jsxs','collab-text-anchor-','_handleJoinEvent','for','setStateCache','_assignedColors','toString','_createHmacHelper','CollaborationSocketService','_uiPartsService','_initStatusListener','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','registerRenderModule','updateCollaborator','body','none','_shouldReportTelemetry','buffer','_type','_collabSessionService','pending','override','session.room-full','_onRemoteRejected','Subject','disposeUnit','filter','DOC_RANGE_TYPE','JOIN','call','pushState','12rdxjKB','/collaborator','ThemeService','onRemoteChangeset','@univerjs/design','defineProperty','Unknown\x20user','_startCollaboration','getSkeleton','getRenderById','UniverInstanceType','_labelPosition','textEncoder','_ws','Univer','catch','sheetID','children','/object','CONNECTOR_DATA_TOO_LARGE','_init','wsSessionTicketUrl','VIEWPORT_KEY','loginUrlKey','contains','syncEditingCollabCursor','AWAITING','formatter','skeleton','collaboration-client.offline-data-not-saved','distinctUntilChanged','decryptBlock','UniverIcon','Base','removeMember','roomInfos','sheetId','getCellPositionByOffset','awaiting','dispose','decrypt','_injector','charCodeAt','_process','objectType','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','requestParams','getSheetBySheetId','SYNCED','bottom','_oKey','_compressMutationService','dispose$','collabStatus.conflict','fetch_missing','/unit/','COMPRESS_MUTATION_SEND','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ITelemetryService','HmacSHA1','updatePermissionPoint','PERMISSION_DENIED','SEND_CHANGESET_TIMEOUT','getSheetId','onMouseMove','LIVESHARE_NEW_HOST','ILogService','_clearLocalCache','execute','error$','Latin1','joinRsp','0\x200\x2016\x2016','parseProtocolChangeset','className','CommandType','format','_handleHeartbeatEvent','getConfig','resend','enableSingleActiveInstanceLock','visibilityState','_hasher','_collabCursorController','_clearTimeoutTimer','ITransformService','_onRecvEvent','IUIPartsService','_roomMembers','sigBytes','_removeRoom','loadOfflineData','application/json','xlink:href','find','_onCursorUpdate','univer-online-status','defaultProps','byteLength','_toggleOnline','currentColor','_remoteChangesetQueue','NoPadding','_incrementRevisionNumber','SUCCUSS','[CollaborationState]:\x20apply\x20error!','get','top','transformUndoRedo','_renderManagerService','fromEvent','getCoordByCell','ceil','getUnitOnRev','collab-client.tooltip.reconnect','_scheduleHeartbeat','createDecryptor','salt','APPLY_REVISION_CONFILICT','_lastPointer','_DEC_XFORM_MODE','on-line-single_clip0_910_349','_loadSheet','SetDocZoomRatioOperation','event$','NOT_FOUND','transformChangesets','LocalUndoRedoService','INVALID_ARGUMENT','getRandomValues','_clearScheduledTask','isTransformMutationsWithChangesetFailure','getUnit','Plugin','_changesetSessionId','transformRemoteChangeset','119113pOCCdS','uni.network.url-service','_render','_roomMembers$','put','/universer-api/authz','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ICommandService','PENDING','ticket','createIdentifier','rev','_onRemoteACK','isTransformChangesetsSuccess','_resendWithTimeout','DocStateChangeManagerService','HEARTBEAT_INTERVAL_KEY','createEncryptor','fetchMissingChangesets','save\x20fail\x20reason\x20is\x20','LICENSE_IMPORT_SIZE_EXCEEDED','urlChange$','_updateState','image/jpeg','_httpService','_executeRemoteChangeset','BASE64','_rescheduleHeartbeat','SetTextSelectionsOperation','[CollaborationUndoRedoService]','{fileID}','_onUserLeave','handleInsertRow','toggleOnline','_onOffline','_toggleOffline','eventID','_doCryptBlock','HTTPRequest','touchDependencies','CHANGESET_REJ','randomUUID','startsWith','_getMergeRange','UNAUTHENTICATED','sequenceExecute','_updateLocalCursor','RETRY_CONNECTING_MAX_COUNT','IPermissionService','createSocket','getCurrentUser','off-line-single_clip0_910_343','x-univer-host','_send','UniverNetworkPlugin','round','PSEUDO_FETCH_MISSING_RESULT','_clearCollaborationTimeoutTimer','_sendingTimer','collaboration.single-unit.warning','transformSelections','onlyLocal','addObjects','RxDisposable','_disableEditing','[CollaborationSessionService]','values','enableOfflineEditing','_submitChangeset','_drawRectRange','react.fragment','push','_state','_replaceFileID','merge','sessionTicket','crypto','_localCacheService','IUniverInstanceService','_registerRenderDependencies','_docSkeleton','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','handleIRemoveCol','forwardRef','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','Shape','history','_members','185060XzECsj','stringify','pauseCollaboration','_sendHeartbeat','c2Prime','prototype','_onCombEvent','IMessageService','subscribeEvent','height','with','_transitionLocked','initWorkbookPermissionChange','list','SHA1','createInstance','_backgroundColor','replace','key','getVpScrollXYInfoByPosToVp','reconnect','collabSubmitChangesetUrl','_state$','getTime','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_eventUnsubscribe','\x20-\x20','APPLY_REJECT','use','CollaborationSessionService','unitId','evenodd','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','max','_cursors','setShowComponents','csAckEvent','liveShareOperation','DataLoaderController','conflict.content','_refreshCollabCursors','ERROR_IMAGE','_updateURLWithCurrentState','/universer-api/user/session-ticket','_onFetchMissResult','getStateCache','lib','endColumn','InsertRangeMoveRightCommandId','asObservable','__Key__','LICENSE_EXPORT_SIZE_EXCEEDED','now','assign','__creator','_HTTPService','url(#on-line-single_clip0_910_349)','open$','IAuthzIoService','red300','onRemoteAck','_replayCachedMutations','univer-offline','_getSnapshotAPIPrefix','_unlockTransition','ref','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_docTransformStateCacheService','HMAC','tag','/universer-api/snapshot','BuiltInUIPart','json','objectID','has','editingUnit','joinEvent','labelPosition','conflict','COLLAB_WEB_SOCKET_URL_KEY','withCredentials','getUnitType','SNAPSHOT_INVALID_SNAPSHOT','slice','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','CommentService','url','_cursor','SheetCollaborationEntity','_mode','_transformHistoryAndStateStack','batchAllowed','undoState','text','DEFAULT_FILE_NAME','onSyncEditingCollabCursor','_transformPreviousActiveRange','substr','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_updateCollabCursors','min','Rectangle','WebSocketService','_messageService','function','_themeService','keySize','_unitID','_clearUndo','_joinRoom','extend','_online','_notificationService','POST','exhaustSavingTask','20594qcnvBY','NO_OTHER_CLIENTS_EDITING','cursorInfo$','_getUndoStack','hide','drawWith','\x0aCurrent:\x20','_document','addEventListener','image/png','_urlService','$super','on-line-single','UNKNOWN_CMD','actions','mergeOverrideWithDependencies','332030PSPgtN','_transformRemoteChangesetByStateCache','ImageSourceType','every','forEach','NodePositionConvertToCursor','_unitStatus','takeUntil','collaboration-client.config','_getUploadFileURL','_startTelemetryCollaborationNewChangeset','CHANGESET_ACK','interceptor','textRanges','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','Could\x20not\x20dynamically\x20require\x20\x22','_waitForHeartbeatResponse','YUUMI_SUBSCRIPTION_NOT_FOUND','split','append','href','EffectRefRangId','onRendered','_minBufferSize','fetchThroughInterceptors','_redoStacks','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_ENC_XFORM_MODE','[OfflineState]:\x20received\x20acknowledgement.','HEARTBEAT','@univerjs/core','[OfflineState]:\x20received\x20changeset.','PERMISSION_REJ','_getAnchorBounding','isTransformMutationFailure','[FetchMissState]','sheets','COLLAB_WEB_SOCKET_URL','&source=','LocalCacheService','substring','MUTATION','BehaviorSubject','kdf','routeKey','signUrlServerUrl','_xformMode','onCommentUpdate','generateRandomId','object','[CollaborationEntity]','show','data','range','focused$','_beforeCloseService','_getCtorByUniverType','LIVESHARE_OPERATION','getItem','UnitSnapshot','MSG_FOR_ERROR','StreamCipher','collabStatus.synced','CipherParams','downloadEndpointUrl','subscribe','getCurrentUnitForType','Rect','save','url(#off-line-single_clip0_910_343)','div','UNIVER_COLLABORATION_CLIENT_PLUGIN','_onConnectionOpen','encodeURIComponent','update','_telemetryService','awaitingChangeset','onlineStatus','_updateLocalCache','createCollaborator','_scheduleTimestamp','_createSocket','_changesetReqId','fillText','loadSheet','onTransformRemoteChangesetByStateCache','171ZxtrxM','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_collabCursorState$','SnapshotServerOverHTTPService','ColorKit','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_createInitialStateImpl','SetSelectionsOperation','AUTHZ_URL_KEY','cfg','mode','1398066RmLrji','IImageIoService','Pkcs7','/block/','_applyRemoteChangeset','hasOwnProperty','abs','setActiveRange','listRoles','_waitCount','FAIL','_resendTimer','_userManagerService','collaMsg','_transformUndoRedoStack','deepClone','then','roomMembers','map','_logService','replaceState','default','IRenderManagerService','close$','_getDownloadEndpointURL','FETCH_MISS','byteOffset','selections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','allowed','751645ltjVoN','onPointerLeave$','image/bmp','#fff','UniverCollaborationClientPlugin','CollaborationSession','parse','CHANGESET_REVISION_CONFILICT','_transformIMECache','current','randomBytes','getAllMembers','FromArray','doc.mutation.rich-text-editing','unitId\x20is\x20not\x20found','switchMap','DeleteRangeMoveUpCommandId','RefRangeService','addObject','CompressMutationService','equals','YUUMI_UNABLE_LOAD_URL','[SyncedState]:\x20received\x20rejection.','cmd','NEW_CHANGESETS','encrypt','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','message$','ThresholdInterceptorFactory','length','useDependency','_drawTextRange','getDocRanges','react.element','onlineStatusIcon','AWAITING_WITH_PENDING','Warning','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fetching\x20missing\x20changesets\x20from\x20','name','_ensureSubject','collaborators','CollaborationEntity','handleDeleteRangeMoveLeft','_keyPriorReset','_listenToOnlineEvent','UNIVER_SLIDE','_acknowledgedAwaitingChangeset','_localStorageService','permission.title','onMissedChangesetFetched','status','ImageUploadStatusType','_scene','setItem','onPointerEnter$','collab-rect-range-','reject','_commentUpdate$','_createHelper','result','_socket$','Base64','RECT','translate(.97)','_onConnectionFailed','DocCollaborationEntity','LICENSE_MAX_UNITS_EXCEEDED','newValue','UPDATE_PERMISSION_OBJ','subunit','_initEventListeners','csRejEvent','makeDirty','_undoRedoService','_removeCollabCursors','_iKey','_color','_heartbeatTimer','_entities','JOIN_ROOM_NOT_ALLOWED','getCollabEntity','_sendHeartbeatTimer','random','arc','attrs','@univerjs-pro/collaboration','LIVESHARE_REQUEST_HOST','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_loadDoc','bind','IConfigService','FileId','MessageType','Cipher','getMemberID','_transformRemoteChangesetByIMECache','_doReset','string','handleInsertRangeMoveDown','blue400','NOT_COLLAB','_univerInstanceService','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','next','RETRY_CONNECTING_MAX_COUNT_KEY','jsx','init','_session','_registerDependencies','DeleteRangeMoveLeftCommandId','disableLocalCache','_imageSourceCache','file','saveOfflineData','_configService','getColor','WorkbookEditablePermission','UNIVER_UNKNOWN','transformStack\x20failed!','getOwnPropertySymbols','[PendingState]:\x20received\x20rejection.','getRelativeToViewportCoord','_createInitialState','from','code','_collaborationTimeoutTimer','collabCursorState$','_range','univer-online','_getSaveTimeout','size','post','row','origin','IContextService','redoState','patch','telemetry\x20info\x20is\x20not\x20initialized','csShouldRetryEvent','transformMutationsWithChangeset','_localeService','set','FETCH_MISSING','setWaitCount','svg','lineTo','toLowerCase','_status$','_sheetSkeletonManagerService','send','/resources','updateMember','transform','_throwTelemetryCollaborationNewChangeset','deserializeRangeWithSheet','_scheduleCollaborationTimeoutTimer','baseRev','collab-text-range-','MergeInterceptorFactory','_syncEditingCollabCursorService','_tryEnsureSocket','black','getResourcesRequest','registerRefRange','editing\x20status\x20changed\x20to','getMergeData','EmptyMutation','_clearOtherTimers','useObservable','getParam','sid','_doFinalize','SerializableCipher','/universer-api/comb','socket$','_initCommandExecutedListener','UniverCollaborationPlugin','combineLatest','ACTIVE_UNIT_EVENT_CHANNEL','_fetchMissChangesets','SUBMIT_CHANGESET','indexOf','updateCursorEvent','registerOnClose','_anchorDot','getLatestCsReqIdBySid','defIds','_substituteRedoStack','DocIMEInputManagerService','_hash','_listenToOfflineEvent','_setupBeforeClosingHandler','transformMutation','whenReady','getTypeOfUnitAdded$','LocaleService','entries','clone','_decreaseWaiting','isActive','_socketReady','_keySchedule','getSheetBlock','readInt32LE','@univerjs/engine-render','/allowed','_getLoginPath','_hideTimer','_getCurrentRevision','onCommandExecuted','_substituteUndoStack','_getAPIPrefixPath','HttpExport','resolve','reset','liveShareNewHost','/-/object/list','/universer-api/stream/file/upload','shareReplay','pipe','univerjs-icon\x20univerjs-icon-','addImageSourceCache','m1Prime','COLORS','restore','Injector','_onRefRangeChange','enableLocalCache','_startDocCollabCursor','getActiveSheet','HELLO','clamp','_change$','@univerjs/drawing','Error\x20on\x20receiving\x20event','_startSheetCollabCursor','concatMap','headers','YUUMI_URL_COL_OUT_OF_RANGE','processBlock','HEADER_MENU','title','HEARTBEAT_TIMEOUT_KEY','getOwnPropertyDescriptor','getCurrentSelections','ciphertext','getInterceptPoints','refreshPermission','SEND_CHANGESET_TIMEOUT_KEY','&assign=','CHANGESET_SHOULD_RETRY','isEditing','_instanceService','_transformUndoredo','InsertColCommandId','getUnitStatus$','BlockCipher','#FFF','charAt','sin','assignAColorForMemberID','clearInterval','Module','_initResize','_checkMissing','unpad','setShapeProps','_tryReconnect','pad','cursorInfo','change$','members','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_clearHeartbeatTimer','/new_changes','OffLineSingle','hostname','_transformStack','collabStatus.fetchMiss','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','RevisionService','commentUpdateEvent','CollaborationController','all','_context','_onMessage','_handleHover','_append','offline','ws://127.0.0.1:8000/universer-api/comb/connect','appendMutation','onTransformState','onTransformIME','EvpKDF','error','ALREADY_EXISTS','&to=','state','_commandService','updateOfflineData','saveImage','add','isArray','session.will-retry','_socketMessageSubscription','getValue','SNAPSHOT_URL_KEY','_map','some','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaiting_with_pending','_name','_docTransformIMECacheService','idSuffix','getImageSourceCache','fromCharCode','TEXT','IBeforeCloseService','Inject','handleMoveRange','copyFileMeta','clearTimeout','toggleOffline','create','collaboration-session-retry','delete','off-line-single','objects','unitID','Hex','rxjs','CollaborationEvent','_cursorInfo$','findNodePositionByCharIndex','newCsEvent','1em','unsubscribe','USERS_ENTER','loadDoc','INotificationService','_config','WordArray','createElement','_memberService','removeParam','@univerjs/network','measureText','status$','unit','_schedule','rxjs/operators','MoveRangeCommandId','SheetCollabCursorShape','DesktopCollaborationStatusDisplayController','OFFLINE','updatePermissionObjEvent','_onUserJoin','setParam','LOCAL_CACHE_INTERVAL','_hovered','target','displayName','compute','_getSignURL','triggerDblclick','CONFLICT','_selfUnitIDs','UNIVER_DOC','commentUpdate$','getUnitId','_socket','Decryptor','/rev/','_draw','LEAVE','UserManagerService','RichTextEditingMutation','connection\x20error','/-/object/-/batch_allowed','_singleActiveUnitService','getCurrentRevOfUnit','_saveTaskMap','_syncEditingCollabCursor','INGEST','__esModule','_sender','_awaitingChangeset','_timeoutTimer','image/gif','_snapshotService','_queuedRemoteChangesets','_unitOnClients','handleIRemoveRow','ReactCurrentOwner','SessionStatus','_anchor','/object/','_nRounds','_onLocalMutation','UPDATE_CURSOR','exports','_scheduleClearOtherTimer','session','?size=','_undoStacks','width','2518596tFhgAw','session.connection-failed','_colorIndex','registerBeforeClose','onRemoteRej','throttleTime','_collaborationSessionService','listCollaborators','OTHER_CLIENTS_EDITING','setTimeout','collaboration.closeRoom','_data','getMember','getFocusedUnit','_telemetryInfo','SheetsSelectionsService','_getAPIPrefix','ISnapshotServerService','fetchMiss','[CollaborationSession]','onload','DependentOn','_removeClearOtherTimer','type','getSheetObject','enableAuthServer','setAlpha','_pendingMutations','unshift','m2Prime','permissionRejEvent','transformIMECache','_transformSelections','RECV','INTERNAL_ERROR','useCallback','SNAPSHOT_SERVER_URL_KEY','registerHTTPInterceptor','_setupSubUnitSync','getUnhiddenWorksheets','/universer-api/oidc/authpage','Optional','LOGIN_URL_KEY','onRemoteRetry','SHOULD_CLOSE_CONN','_event$','_sessionStatus$','UNKNOWN_CODE','currentTheme$','apply','JOIN_ROOM_FULL','session.collaboration-timeout','join','Fragment','Hasher','_permissionService','resize','_getSendChangesetTimeout','debounceTime','RemoveColCommandId','Tools','_entityInit$','_snapshotServerService','shouldCloseConn','_colorAssignService','_handleLeaveEvent','capture','sendChangesetTimeout','_hover','M0\x200H16V16H0z','url(#$1','_initMergeInterceptor','conflict.title','TEXT_RANGE_LAYER_INDEX','_invKeySchedule','COMMENT_UPDATE','hasher','splice','parseChangesetToProtocol','CollaborationStatus','_revisionService','[SyncedState]:\x20received\x20acknowledgement.','closeSession','onMissingChangesets','DisposableCollection','_updateSubUnitFromURLParams'];_0x2f48=function(){return _0x4cffb7;};return _0x2f48();}var As={'tag':_0x49c5a4(0x387),'attrs':{'fill':'none','viewBox':_0x49c5a4(0x15c),'width':_0x49c5a4(0x446),'height':_0x49c5a4(0x446)},'children':[{'tag':'g','attrs':{'clipPath':_0x49c5a4(0x2bc)},'children':[{'tag':_0x49c5a4(0x51a),'attrs':{'stroke':'currentColor','d':_0x49c5a4(0x52e),'strokeLinecap':'round','strokeLinejoin':_0x49c5a4(0x1d3),'strokeWidth':1.2}}]},{'tag':_0x49c5a4(0xe9),'attrs':{},'children':[{'tag':_0x49c5a4(0x570),'attrs':{'id':_0x49c5a4(0x1cf)},'children':[{'tag':_0x49c5a4(0x51a),'attrs':{'fill':_0x49c5a4(0x2f9),'d':_0x49c5a4(0x4d2)}}]}]}],'defIds':[_0x49c5a4(0x1cf)]},Cn=ae['forwardRef'](function(_0x507a8c,_0x2e6857){const _0x3407cf=_0x49c5a4;return ae[_0x3407cf(0x44d)](Dt,Object[_0x3407cf(0x229)]({},_0x507a8c,{'id':_0x3407cf(0x43d),'ref':_0x2e6857,'icon':As}));});Cn[_0x49c5a4(0x460)]=_0x49c5a4(0x40a);var Ns={'tag':_0x49c5a4(0x387),'attrs':{'fill':_0x49c5a4(0x104),'viewBox':'0\x200\x2017\x2016','width':_0x49c5a4(0x446),'height':_0x49c5a4(0x446)},'children':[{'tag':'g','attrs':{'clipPath':_0x49c5a4(0x22c)},'children':[{'tag':_0x49c5a4(0x51a),'attrs':{'stroke':_0x49c5a4(0x178),'d':_0x49c5a4(0x587),'strokeLinecap':_0x49c5a4(0x1d3),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x49c5a4(0xe9),'attrs':{},'children':[{'tag':_0x49c5a4(0x570),'attrs':{'id':_0x49c5a4(0x18d)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x49c5a4(0x4d2),'transform':_0x49c5a4(0x336)}}]}]}],'defIds':[_0x49c5a4(0x18d)]},En=ae[_0x49c5a4(0x1ef)](function(_0x432c3d,_0x1aa4cf){const _0x154b3c=_0x49c5a4;return ae['createElement'](Dt,Object[_0x154b3c(0x229)]({},_0x432c3d,{'id':_0x154b3c(0x273),'ref':_0x1aa4cf,'icon':Ns}));});En[_0x49c5a4(0x460)]='OnLineSingle';function bn(_0x23bd34){const _0x2b9f3a=_0x49c5a4;var _0x47bc19,_0xedc710,_0x4048c7='';if(typeof _0x23bd34==_0x2b9f3a(0x358)||typeof _0x23bd34==_0x2b9f3a(0xed))_0x4048c7+=_0x23bd34;else{if(typeof _0x23bd34==_0x2b9f3a(0x2a8)){if(Array[_0x2b9f3a(0x425)](_0x23bd34)){var _0x1ba69e=_0x23bd34['length'];for(_0x47bc19=0x0;_0x47bc19<_0x1ba69e;_0x47bc19++)_0x23bd34[_0x47bc19]&&(_0xedc710=bn(_0x23bd34[_0x47bc19]))&&(_0x4048c7&&(_0x4048c7+='\x20'),_0x4048c7+=_0xedc710);}else{for(_0xedc710 in _0x23bd34)_0x23bd34[_0xedc710]&&(_0x4048c7&&(_0x4048c7+='\x20'),_0x4048c7+=_0xedc710);}}}return _0x4048c7;}function Ls(){const _0x48a7b=_0x49c5a4;for(var _0x29659a,_0x3f4f3d,_0x4ff364=0x0,_0xd33bff='',_0x412311=arguments[_0x48a7b(0x313)];_0x4ff364<_0x412311;_0x4ff364++)(_0x29659a=arguments[_0x4ff364])&&(_0x3f4f3d=bn(_0x29659a))&&(_0xd33bff&&(_0xd33bff+='\x20'),_0xd33bff+=_0x3f4f3d);return _0xd33bff;}const xs='univer-online-status-icon',js='univer-online-status-title',$s=_0x49c5a4(0x174),Hs=_0x49c5a4(0x377),ks=_0x49c5a4(0x232),Me={'onlineStatusIcon':xs,'onlineStatusTitle':js,'onlineStatus':$s,'online':Hs,'offline':ks};function Bs(_0x5332d0){const _0x2ac8de=_0x49c5a4;switch(_0x5332d0){case q[_0x2ac8de(0x459)]:return'collabStatus.offline';case q[_0x2ac8de(0x464)]:return _0x2ac8de(0x149);case q[_0x2ac8de(0x2f1)]:return _0x2ac8de(0x40d);case q[_0x2ac8de(0x35b)]:return'collabStatus.notCollab';case q[_0x2ac8de(0x12e)]:case q[_0x2ac8de(0x319)]:return _0x2ac8de(0x510);case q[_0x2ac8de(0x144)]:case q[_0x2ac8de(0x1a4)]:return _0x2ac8de(0x2b5);}}function Tn(_0x2dd6a1){const _0x2e0abd=_0x49c5a4,{status$:_0x396b99}=_0x2dd6a1,_0x31dcb6=te[_0x2e0abd(0x39f)](_0x396b99,q[_0x2e0abd(0x35b)]),_0x430196=a[_0x2e0abd(0x314)](a[_0x2e0abd(0x3ba)]),_0x395080=a['useDependency'](exports[_0x2e0abd(0x211)]),_0x15efa0=_0x31dcb6!==q[_0x2e0abd(0x459)],_0xe641d6=_0x430196['t'](Bs(_0x31dcb6)),_0x22f0b6=Ls(Me[_0x2e0abd(0x2c4)],{[Me[_0x2e0abd(0x5a1)]]:_0x15efa0,[Me[_0x2e0abd(0x417)]]:!_0x15efa0}),_0x5d9b3f=_0x15efa0?ge[_0x2e0abd(0x360)](En,{}):ge[_0x2e0abd(0x360)](Cn,{}),_0x2ecfa1=ae[_0x2e0abd(0x4b0)](()=>{const _0x38130e=_0x2e0abd;_0x15efa0||_0x395080[_0x38130e(0x208)]();},[_0x15efa0,_0x395080]);function _0x48867d(){const _0x51836e=_0x2e0abd;return ge['jsxs'](_0x51836e(0x2bd),{'className':_0x22f0b6,'onClick':_0x2ecfa1,'children':[ge[_0x51836e(0x360)](_0x51836e(0x2bd),{'className':Me[_0x51836e(0x318)],'children':_0x5d9b3f}),ge['jsx'](_0x51836e(0x2bd),{'className':Me['onlineStatusTitle'],'children':_0xe641d6})]});}return _0x15efa0?_0x48867d():ge[_0x2e0abd(0x360)](Ie[_0x2e0abd(0x59b)],{'title':_0x430196['t'](_0x2e0abd(0x186)),'children':_0x48867d()});}var Ws=Object[_0x49c5a4(0x119)],Fs=Object['getOwnPropertyDescriptor'],Vs=(_0x1fd5b0,_0x6a7336,_0x2a5c16,_0x25353a)=>{const _0x25f4a6=_0x49c5a4;for(var _0x3a7c25=_0x25353a>0x1?void 0x0:_0x25353a?Fs(_0x6a7336,_0x2a5c16):_0x6a7336,_0x35511e=_0x1fd5b0[_0x25f4a6(0x313)]-0x1,_0x15510c;_0x35511e>=0x0;_0x35511e--)(_0x15510c=_0x1fd5b0[_0x35511e])&&(_0x3a7c25=(_0x25353a?_0x15510c(_0x6a7336,_0x2a5c16,_0x3a7c25):_0x15510c(_0x3a7c25))||_0x3a7c25);return _0x25353a&&_0x3a7c25&&Ws(_0x6a7336,_0x2a5c16,_0x3a7c25),_0x3a7c25;},$e=(_0x9ed384,_0x1d75c7)=>(_0x30a65a,_0x487f43)=>_0x1d75c7(_0x30a65a,_0x487f43,_0x9ed384);exports[_0x49c5a4(0x458)]=class extends a['Disposable']{constructor(_0x40083d,_0x285182,_0x584e5d,_0x4bffea){const _0x2a7ad6=_0x49c5a4;super(),I(this,'_status$',new A[(_0x2a7ad6(0x2a1))](q[_0x2a7ad6(0x35b)])),(this[_0x2a7ad6(0x35c)]=_0x40083d,this['_uiPartsService']=_0x285182,this[_0x2a7ad6(0x13d)]=_0x584e5d,this['_collaborationController']=_0x4bffea,this[_0x2a7ad6(0x56e)](),this[_0x2a7ad6(0xff)]());}[_0x49c5a4(0xff)](){const _0x246202=_0x49c5a4;this[_0x246202(0x5ad)](this[_0x246202(0x35c)][_0x246202(0x2ad)][_0x246202(0x3d2)](A[_0x246202(0x305)](()=>{const _0x51b7a9=_0x246202,_0xfee344=this[_0x51b7a9(0x35c)]['getFocusedUnit']();return _0xfee344?this['_collaborationController'][_0x51b7a9(0x554)](_0xfee344[_0x51b7a9(0x468)]()):A['of'](null);}),A[_0x246202(0x305)](_0x1bc9ef=>_0x1bc9ef?_0x1bc9ef[_0x246202(0x452)]:A['of'](q[_0x246202(0x35b)])))['subscribe'](_0x2af320=>{const _0x58e1fd=_0x246202;this[_0x58e1fd(0x38a)][_0x58e1fd(0x35e)](_0x2af320);}));}[_0x49c5a4(0x56e)](){const _0x222331=_0x49c5a4;this['disposeWithMe'](this[_0x222331(0xfe)]['registerComponent'](te[_0x222331(0x23b)][_0x222331(0x3e7)],()=>a['connectInjector'](Gs({'status$':this[_0x222331(0x38a)][_0x222331(0x225)]()}),this[_0x222331(0x13d)])));}},exports[_0x49c5a4(0x458)]=Vs([$e(0x0,a[_0x49c5a4(0x1ea)]),$e(0x1,te[_0x49c5a4(0x16b)]),$e(0x2,a[_0x49c5a4(0x435)](a['Injector'])),$e(0x3,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x411)]))],exports[_0x49c5a4(0x458)]);function Gs(_0x117cfa){const {status$:_0x3e3006}=_0x117cfa;return function(){const _0x58644c=_0x3dfb;return ge[_0x58644c(0x360)](Tn,{'status$':_0x3e3006});};}const wt=a['createIdentifier'](_0x49c5a4(0x19d));var Ys=Object[_0x49c5a4(0x119)],Ks=Object[_0x49c5a4(0x3ea)],qs=(_0x3f49a9,_0x520bcf,_0x5b2ee5,_0x465aea)=>{for(var _0x56a197=_0x465aea>0x1?void 0x0:_0x465aea?Ks(_0x520bcf,_0x5b2ee5):_0x520bcf,_0xef1dcf=_0x3f49a9['length']-0x1,_0x559e42;_0xef1dcf>=0x0;_0xef1dcf--)(_0x559e42=_0x3f49a9[_0xef1dcf])&&(_0x56a197=(_0x465aea?_0x559e42(_0x520bcf,_0x5b2ee5,_0x56a197):_0x559e42(_0x56a197))||_0x56a197);return _0x465aea&&_0x56a197&&Ys(_0x520bcf,_0x5b2ee5,_0x56a197),_0x56a197;},Te=(_0xc4c678,_0x101eb7)=>(_0x151438,_0x34a9a4)=>_0x101eb7(_0x151438,_0x34a9a4,_0xc4c678);exports[_0x49c5a4(0x21a)]=class extends a[_0x49c5a4(0x1db)]{constructor(_0x247518,_0x138e0c,_0x34e682,_0x7dbd09,_0x355ffa,_0x259455){const _0x5162f1=_0x49c5a4;super(),this[_0x5162f1(0x271)]=_0x247518,this[_0x5162f1(0x2eb)]=_0x138e0c,this[_0x5162f1(0x421)]=_0x34e682,this[_0x5162f1(0x1e9)]=_0x7dbd09,this[_0x5162f1(0x47c)]=_0x355ffa,_0x259455?_0x259455==null||_0x259455[_0x5162f1(0x3b8)]()[_0x5162f1(0x2e8)](()=>this['_init']()):(this[_0x5162f1(0x2eb)][_0x5162f1(0x59f)](_0x5162f1(0x55a),_0x5162f1(0x42c)),this[_0x5162f1(0x128)]());}async[_0x49c5a4(0x128)](){const _0x57d7a2=_0x49c5a4,_0x3a2f1a=this[_0x57d7a2(0x271)][_0x57d7a2(0x3a0)]('unit'),_0x6268b9=this['_urlService']['getParam'](_0x57d7a2(0x4a4));if(!_0x3a2f1a||!_0x6268b9){this[_0x57d7a2(0x2eb)][_0x57d7a2(0x59f)](_0x57d7a2(0x55a),_0x57d7a2(0x2f4));return;}switch(Number(_0x6268b9)){case ie['UNIVER_SHEET']:{const _0x41a7ac=await this['_loadSheet'](_0x3a2f1a);this[_0x57d7a2(0x4b3)](_0x41a7ac);break;}case ie['UNIVER_DOC']:{await this['_loadDoc'](_0x3a2f1a);break;}default:{this[_0x57d7a2(0x2eb)]['error'](_0x57d7a2(0x55a),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x53a4b3){const _0xd8de05=_0x49c5a4;await this['_updateSubUnitFromURLParams'](_0x53a4b3),_0x53a4b3[_0xd8de05(0x567)]['pipe'](A[_0xd8de05(0x27e)](this[_0xd8de05(0x148)]))['subscribe'](_0x169328=>{_0x169328&&this['_updateURLWithCurrentState'](_0x169328);}),this[_0xd8de05(0x271)]['urlChange$'][_0xd8de05(0x3d2)](A[_0xd8de05(0x27e)](this[_0xd8de05(0x148)]))[_0xd8de05(0x2b8)](()=>this[_0xd8de05(0x4e2)](_0x53a4b3));}['_updateURLWithCurrentState'](_0xd2cd5f,_0x5412db=!0x1){const _0x8caf9c=_0x49c5a4,_0x4edacb=this['_urlService']['getParam'](_0x8caf9c(0x33c));_0xd2cd5f[_0x8caf9c(0x153)]()!==_0x4edacb&&this['_urlService'][_0x8caf9c(0x45c)](_0x8caf9c(0x33c),_0xd2cd5f[_0x8caf9c(0x153)](),_0x5412db);}async[_0x49c5a4(0x4e2)](_0x403a45){const _0x474df4=_0x49c5a4;var _0x5a06dc;const _0x2ef76c=this[_0x474df4(0x271)]['getParam'](_0x474df4(0x33c));if(!_0x2ef76c||!_0x403a45[_0x474df4(0x143)](_0x2ef76c)){const _0x3e630e=_0x403a45[_0x474df4(0x4b4)]()[0x0],_0xc4c062=_0x403a45['getSheetBySheetId'](_0x3e630e);if(!_0xc4c062)return;this[_0x474df4(0x21e)](_0xc4c062,!0x0),await this['_commandService'][_0x474df4(0x4ed)](B['SetWorksheetActivateCommand']['id'],{'unitId':_0x403a45[_0x474df4(0x468)](),'subUnitId':_0x3e630e});return;}((_0x5a06dc=_0x403a45[_0x474df4(0x3dc)]())==null?void 0x0:_0x5a06dc[_0x474df4(0x153)]())!==_0x2ef76c&&await this['_commandService'][_0x474df4(0x4ed)](B[_0x474df4(0x4e7)]['id'],{'unitId':_0x403a45['getUnitId'](),'subUnitId':_0x2ef76c});}async[_0x49c5a4(0x18e)](_0x54d402){const _0x5dcf77=_0x49c5a4;let _0x527d49=0x0;const _0x39edcf=await this[_0x5dcf77(0x1e9)][_0x5dcf77(0x16f)](_0x54d402);return _0x39edcf&&(_0x39edcf[_0x5dcf77(0x2c3)]||_0x39edcf['mutations'][_0x5dcf77(0x313)]!==0x0)&&(_0x527d49=_0x39edcf[_0x5dcf77(0x1a7)]),_0x527d49===0x0&&this[_0x5dcf77(0x2eb)][_0x5dcf77(0x59f)](_0x5dcf77(0x55a),_0x5dcf77(0x561)),this[_0x5dcf77(0x47c)][_0x5dcf77(0x2cb)](_0x54d402,_0x527d49);}async[_0x49c5a4(0x34f)](_0x24885a){const _0x3fa8db=_0x49c5a4;let _0x569c65=0x0;const _0x3eeeff=await this[_0x3fa8db(0x1e9)][_0x3fa8db(0x16f)](_0x24885a);return _0x3eeeff&&(_0x3eeeff[_0x3fa8db(0x2c3)]||_0x3eeeff[_0x3fa8db(0x53d)]['length']!==0x0)&&(_0x569c65=_0x3eeeff[_0x3fa8db(0x1a7)]),_0x569c65===0x0&&this['_logService'][_0x3fa8db(0x59f)]('[DataLoaderController]',_0x3fa8db(0x561)),this[_0x3fa8db(0x47c)][_0x3fa8db(0x449)](_0x24885a,_0x569c65);}},exports[_0x49c5a4(0x21a)]=qs([Te(0x0,wt),Te(0x1,a[_0x49c5a4(0x156)]),Te(0x2,a['ICommandService']),Te(0x3,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x29e)])),Te(0x4,a['Inject'](p[_0x49c5a4(0x503)])),Te(0x5,a[_0x49c5a4(0x4b6)]($n[_0x49c5a4(0x5aa)]))],exports[_0x49c5a4(0x21a)]);var zs=Object['defineProperty'],Xs=Object['getOwnPropertyDescriptor'],Js=(_0x5b9c5d,_0x37ae58,_0x4d3dcf,_0x25bf6a)=>{const _0x49ef87=_0x49c5a4;for(var _0x291cd3=_0x25bf6a>0x1?void 0x0:_0x25bf6a?Xs(_0x37ae58,_0x4d3dcf):_0x37ae58,_0x5b69b7=_0x5b9c5d[_0x49ef87(0x313)]-0x1,_0x50348f;_0x5b69b7>=0x0;_0x5b69b7--)(_0x50348f=_0x5b9c5d[_0x5b69b7])&&(_0x291cd3=(_0x25bf6a?_0x50348f(_0x37ae58,_0x4d3dcf,_0x291cd3):_0x50348f(_0x291cd3))||_0x291cd3);return _0x25bf6a&&_0x291cd3&&zs(_0x37ae58,_0x4d3dcf,_0x291cd3),_0x291cd3;},Bt=(_0x14a0dc,_0x5ba332)=>(_0xe3cde2,_0x577178)=>_0x5ba332(_0xe3cde2,_0x577178,_0x14a0dc);const Zs=_0x49c5a4(0x252),Qs=_0x49c5a4(0x122);let Ve=class extends a[_0x49c5a4(0x559)]{constructor(_0x2517a2,_0x1db1f1){const _0xd47ae0=_0x49c5a4;super(),this[_0xd47ae0(0x35c)]=_0x2517a2,this[_0xd47ae0(0x369)]=_0x1db1f1,this[_0xd47ae0(0x128)]();}[_0x49c5a4(0x128)](){const _0x115b77=_0x49c5a4;this[_0x115b77(0x5ad)](this[_0x115b77(0x35c)][_0x115b77(0x2ad)][_0x115b77(0x2b8)](()=>{const _0x3d715e=_0x115b77;var _0xa5131a;const _0x251a7f=this['_univerInstanceService'][_0x3d715e(0x49a)]();let _0x20205e=(_0xa5131a=this[_0x3d715e(0x369)][_0x3d715e(0x162)](Zs))!=null?_0xa5131a:Qs;_0x251a7f instanceof a[_0x3d715e(0x514)]&&(_0x20205e=_0x251a7f['name']),document[_0x3d715e(0x3e8)]=_0x20205e;}));}};Ve=Js([Bt(0x0,a['IUniverInstanceService']),Bt(0x1,a[_0x49c5a4(0x351)])],Ve);var er=Object[_0x49c5a4(0x119)],tr=Object[_0x49c5a4(0x3ea)],nr=(_0x315d99,_0x2fee46,_0xbea60c,_0x59d277)=>{const _0x1a498a=_0x49c5a4;for(var _0x515651=_0x59d277>0x1?void 0x0:_0x59d277?tr(_0x2fee46,_0xbea60c):_0x2fee46,_0x463b3d=_0x315d99[_0x1a498a(0x313)]-0x1,_0x564fa7;_0x463b3d>=0x0;_0x463b3d--)(_0x564fa7=_0x315d99[_0x463b3d])&&(_0x515651=(_0x59d277?_0x564fa7(_0x2fee46,_0xbea60c,_0x515651):_0x564fa7(_0x515651))||_0x515651);return _0x59d277&&_0x515651&&er(_0x2fee46,_0xbea60c,_0x515651),_0x515651;},at=(_0x8ec464,_0x108baa)=>(_0x460e2f,_0x59c8da)=>_0x108baa(_0x460e2f,_0x59c8da,_0x8ec464);let Ge=class{constructor(_0x581736,_0x6ac710,_0x19bc2d){const _0x11e2ef=_0x49c5a4;this['_configService']=_0x581736,this[_0x11e2ef(0x1b4)]=_0x6ac710,this[_0x11e2ef(0x562)]=_0x19bc2d,this[_0x11e2ef(0x361)]();}[_0x49c5a4(0x361)](){const _0x481dc9=_0x49c5a4;this[_0x481dc9(0x1b4)][_0x481dc9(0x4b2)]({'priority':0x1,'interceptor':(_0x149b6d,_0x36c4de)=>_0x36c4de(_0x149b6d)[_0x481dc9(0x3d2)](A[_0x481dc9(0x3e3)](async _0x4e10b2=>{const _0x56d0a5=_0x481dc9,_0x265b44=_0x4e10b2;if(_0x265b44['status']===0x191&&window[_0x56d0a5(0x576)](this[_0x56d0a5(0x562)]['t']('auth.needGotoLoginAlert'))){const _0x48a48f=window[_0x56d0a5(0x2c0)](window[_0x56d0a5(0x506)][_0x56d0a5(0x28b)]);window['location']['href']=this[_0x56d0a5(0x3c5)]()+'?url='+_0x48a48f;}return _0x265b44;}))});}[_0x49c5a4(0x3c5)](){const _0x5a7aff=_0x49c5a4;var _0x5b513c,_0x1ea749;const _0x11a9f7=this[_0x5a7aff(0x369)][_0x5a7aff(0x162)](an),_0x204880=this[_0x5a7aff(0x369)]['getConfig'](ee);return(_0x1ea749=(_0x5b513c=_0x204880==null?void 0x0:_0x204880[_0x5a7aff(0x12b)])!=null?_0x5b513c:_0x11a9f7)!=null?_0x1ea749:zn;}};Ge=nr([at(0x0,a[_0x49c5a4(0x351)]),at(0x1,a[_0x49c5a4(0x435)](J['HTTPService'])),at(0x2,a['Inject'](a[_0x49c5a4(0x3ba)]))],Ge);var ir=Object[_0x49c5a4(0x119)],sr=Object[_0x49c5a4(0x3ea)],rr=(_0x50dd7d,_0x3ad4d0,_0x2d0a4d,_0x2aef3e)=>{const _0x1c49e3=_0x49c5a4;for(var _0x1b37b4=_0x2aef3e>0x1?void 0x0:_0x2aef3e?sr(_0x3ad4d0,_0x2d0a4d):_0x3ad4d0,_0x3e5047=_0x50dd7d[_0x1c49e3(0x313)]-0x1,_0x2bed8b;_0x3e5047>=0x0;_0x3e5047--)(_0x2bed8b=_0x50dd7d[_0x3e5047])&&(_0x1b37b4=(_0x2aef3e?_0x2bed8b(_0x3ad4d0,_0x2d0a4d,_0x1b37b4):_0x2bed8b(_0x1b37b4))||_0x1b37b4);return _0x2aef3e&&_0x1b37b4&&ir(_0x3ad4d0,_0x2d0a4d,_0x1b37b4),_0x1b37b4;},Wt=(_0x3e9e61,_0x317157)=>(_0x1f488,_0x3d072c)=>_0x317157(_0x1f488,_0x3d072c,_0x3e9e61);const Rn=_0x49c5a4(0x2d5),or=_0x49c5a4(0x1a1);exports['AuthzIoHttpService']=class extends a[_0x49c5a4(0x559)]{constructor(_0x4b1e15,_0x4e46fe){const _0x6ed238=_0x49c5a4;super(),this[_0x6ed238(0x22b)]=_0x4b1e15,this[_0x6ed238(0x369)]=_0x4e46fe,this[_0x6ed238(0x4d4)]();}[_0x49c5a4(0x4d4)](){const _0x4f7ccd=_0x49c5a4,_0x2b0f6e=this;this['disposeWithMe'](this[_0x4f7ccd(0x22b)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':J[_0x4f7ccd(0x395)]({'isMatch'(_0x21d1da){const _0x211416=_0x4f7ccd;var _0x964f7a;if(_0x21d1da[_0x211416(0x521)]===_0x211416(0x265)&&((_0x964f7a=_0x21d1da[_0x211416(0x142)])!=null&&_0x964f7a[_0x211416(0x103)])){const {objectID:_0x30dc8f,objectType:_0x10f2d6}=_0x21d1da['requestParams'][_0x211416(0x103)]||{};if(!_0x30dc8f||_0x10f2d6===void 0x0)return!0x1;const _0x503840=_0x2b0f6e[_0x211416(0x3ca)]()+'/'+_0x10f2d6+_0x211416(0x483)+_0x30dc8f+_0x211416(0x3c4);if(_0x21d1da[_0x211416(0x24a)]===_0x503840)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x6e53b1){const _0x1a268c=_0x4f7ccd;var _0x1d9ec9;return(_0x1d9ec9=_0x6e53b1['requestParams'])==null?void 0x0:_0x1d9ec9[_0x1a268c(0x103)];},'mergeParamsToRequest'(_0x55d8c0,_0x45b63d){const _0x2b0784=_0x4f7ccd,_0x5221d3=_0x2b0f6e[_0x2b0784(0x3ca)]()+_0x2b0784(0x471),_0x3b5eb8=_0x55d8c0[_0x2b0784(0x5a8)]((_0x22777d,_0x1d5c21)=>{const _0x3cfcea=_0x2b0784,{unitID:_0x528269,objectID:_0x5336f6,objectType:_0x2c6e7c,actions:_0x42e0a5}=_0x1d5c21;return _0x22777d[_0x528269]||(_0x22777d[_0x528269]={}),_0x22777d[_0x528269][_0x5336f6]||(_0x22777d[_0x528269][_0x5336f6]={'objectID':_0x5336f6,'objectType':_0x2c6e7c,'actions':[]}),_0x22777d[_0x528269][_0x5336f6]['actions'][_0x3cfcea(0x1e3)](..._0x42e0a5),_0x22777d;},{}),_0x2af2a2=[];for(const _0x2d6582 in _0x3b5eb8)for(const _0x5b259b in _0x3b5eb8[_0x2d6582]){const {actions:_0x16ea29,objectType:_0x573fc2}=_0x3b5eb8[_0x2d6582][_0x5b259b],_0x193b8e=[...new Set(_0x16ea29)];_0x2af2a2['push']({'unitID':_0x2d6582,'objectID':_0x5b259b,'objectType':_0x573fc2,'actions':_0x193b8e});}return new J[(_0x2b0784(0x1c2))](_0x2b0784(0x265),_0x5221d3,{'headers':_0x45b63d[_0x2b0784(0x3e4)],'withCredentials':_0x45b63d[_0x2b0784(0x244)],'responseType':_0x45b63d['responseType'],'body':{'requests':_0x2af2a2}});}},{'distributeResult'(_0xc40c67,_0x9d6ccb){const {objectActions:_0x107249}=_0xc40c67;return _0x9d6ccb['map'](_0x38a6fb=>{const _0x329368=_0x3dfb,{unitID:_0x568d8d,objectID:_0x216415,actions:_0x4aefa8}=_0x38a6fb,_0x488223=_0x107249['find'](_0x4c0b56=>_0x4c0b56['unitID']===_0x568d8d&&_0x4c0b56[_0x329368(0x23d)]===_0x216415),_0x39e928=_0x4aefa8[_0x329368(0x2ea)](_0x13c4a8=>_0x488223==null?void 0x0:_0x488223[_0x329368(0x275)]['find'](_0x1436d9=>_0x1436d9[_0x329368(0x572)]===_0x13c4a8))['filter'](_0x40cc4c=>!!_0x40cc4c);return{'config':_0x38a6fb,'result':{'actions':_0x39e928,'error':_0xc40c67[_0x329368(0x41d)]}};});}})}));}[_0x49c5a4(0x3ca)](){const _0x52a9ac=_0x49c5a4;var _0x35fb42,_0x321de1;const _0x4efc6a=this[_0x52a9ac(0x369)][_0x52a9ac(0x162)](Rn),_0x545a3d=this['_configService'][_0x52a9ac(0x162)](ee);return(_0x321de1=(_0x35fb42=_0x545a3d==null?void 0x0:_0x545a3d['authzUrl'])!=null?_0x35fb42:_0x4efc6a)!=null?_0x321de1:or;}async['create'](_0x251b1d){const _0x34f122=_0x49c5a4,_0x31fbee=this['_getAPIPrefixPath']()+'/'+_0x251b1d[_0x34f122(0x140)]+_0x34f122(0x126);return(await this['_HTTPService'][_0x34f122(0x37a)](_0x31fbee,{'body':_0x251b1d}))['body'][_0x34f122(0x23d)]||'';}async[_0x49c5a4(0x201)](_0x435402){const _0x2cfa46=_0x49c5a4,_0x2cf247=this[_0x2cfa46(0x3ca)]()+_0x2cfa46(0x3cf);return(await this['_HTTPService'][_0x2cfa46(0x37a)](_0x2cf247,{'body':_0x435402}))[_0x2cfa46(0x103)][_0x2cfa46(0x43e)];}async[_0x49c5a4(0x2c1)](_0x4da72f){const _0x3c5296=_0x49c5a4,_0x56ab25=this['_getAPIPrefixPath']()+'/'+_0x4da72f[_0x3c5296(0x140)]+'/object/'+_0x4da72f['objectID'];await this[_0x3c5296(0x22b)]['put'](_0x56ab25,{'body':_0x4da72f});}async[_0x49c5a4(0x2f5)](_0xae90c1){const _0x2d5619=_0x49c5a4,_0x1f776=this['_getAPIPrefixPath']()+'/'+_0xae90c1[_0x2d5619(0x140)]+_0x2d5619(0x483)+_0xae90c1['objectID']+_0x2d5619(0x3c4);return(await this[_0x2d5619(0x22b)]['post'](_0x1f776,{'body':_0xae90c1}))['body'][_0x2d5619(0x275)];}async[_0x49c5a4(0x24f)](_0x2e0723){const _0x45f799=_0x49c5a4,_0x382f83=this[_0x45f799(0x3ca)]()+_0x45f799(0x471);return(await this[_0x45f799(0x22b)][_0x45f799(0x37a)](_0x382f83,{'body':{'requests':_0x2e0723}}))[_0x45f799(0x103)][_0x45f799(0x58b)];}async[_0x49c5a4(0x2e0)](_0x4dff70){const _0x2d7d84=_0x49c5a4,_0x29059d=this[_0x2d7d84(0x3ca)]()+'/'+_0x4dff70[_0x2d7d84(0x140)]+_0x2d7d84(0x4f0),_0x1a3f2a=await this[_0x2d7d84(0x22b)][_0x2d7d84(0x37a)](_0x29059d,{'body':_0x4dff70});return{'roles':_0x1a3f2a[_0x2d7d84(0x103)][_0x2d7d84(0x5a2)],'actions':_0x1a3f2a[_0x2d7d84(0x103)][_0x2d7d84(0x275)]};}async[_0x49c5a4(0xef)](_0x36eba4){const _0x42084a=_0x49c5a4,_0x18dabb=this[_0x42084a(0x3ca)]()+_0x42084a(0x115);await this[_0x42084a(0x22b)][_0x42084a(0x43c)](_0x18dabb,{'params':{'collaboratorID':_0x36eba4['collaboratorID'],'objectID':_0x36eba4[_0x42084a(0x23d)],'unitID':_0x36eba4[_0x42084a(0x43f)]}});}async[_0x49c5a4(0x102)](_0x3991a7){const _0x323e73=_0x49c5a4,_0x58d750=this[_0x323e73(0x3ca)]()+_0x323e73(0x115);await this[_0x323e73(0x22b)][_0x323e73(0x37f)](_0x58d750,{'body':_0x3991a7});}async[_0x49c5a4(0x2c6)](_0x1d3bf2){const _0x47450f=_0x49c5a4,_0x2f30bb=this[_0x47450f(0x3ca)]()+_0x47450f(0x115);await this[_0x47450f(0x22b)][_0x47450f(0x37a)](_0x2f30bb,{'body':_0x1d3bf2});}async[_0x49c5a4(0x494)](_0x367094){const _0x2f6f0b=_0x49c5a4,_0x158daf=this[_0x2f6f0b(0x3ca)]()+_0x2f6f0b(0x115);return(await this[_0x2f6f0b(0x22b)][_0x2f6f0b(0x17e)](_0x158daf,{'params':{'objectID':_0x367094['objectID'],'unitID':_0x367094['unitID']}}))[_0x2f6f0b(0x103)][_0x2f6f0b(0x31f)];}async['putCollaborators'](_0x2ab791){const _0x3e8b66=_0x49c5a4,_0x506201=this[_0x3e8b66(0x3ca)]()+_0x3e8b66(0x115);await this[_0x3e8b66(0x22b)][_0x3e8b66(0x1a0)](_0x506201,{'body':_0x2ab791});}},exports[_0x49c5a4(0x53c)]=rr([Wt(0x0,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)])),Wt(0x1,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x351)]))],exports['AuthzIoHttpService']);var yn={'exports':{}};function ar(_0x44e0f8){const _0x494175=_0x49c5a4;throw new Error(_0x494175(0x286)+_0x44e0f8+_0x494175(0x236));}var ct={'exports':{}},Ft;function oe(){const _0x10df57=_0x49c5a4;return Ft||(Ft=0x1,function(_0x11b742,_0x4094e2){(function(_0x2a968c,_0x350748){_0x11b742['exports']=_0x350748();}(X,function(){var _0x55e419=_0x55e419||function(_0x148560,_0x486909){const _0xa004b1=_0x3dfb;var _0x5382a6;if(typeof window<'u'&&window[_0xa004b1(0x1e8)]&&(_0x5382a6=window['crypto']),typeof self<'u'&&self[_0xa004b1(0x1e8)]&&(_0x5382a6=self[_0xa004b1(0x1e8)]),typeof globalThis<'u'&&globalThis[_0xa004b1(0x1e8)]&&(_0x5382a6=globalThis[_0xa004b1(0x1e8)]),!_0x5382a6&&typeof window<'u'&&window['msCrypto']&&(_0x5382a6=window['msCrypto']),!_0x5382a6&&typeof X<'u'&&X[_0xa004b1(0x1e8)]&&(_0x5382a6=X[_0xa004b1(0x1e8)]),!_0x5382a6&&typeof ar=='function')try{_0x5382a6=require(_0xa004b1(0x1e8));}catch{}var _0x662719=function(){const _0x5368f7=_0xa004b1;if(_0x5382a6){if(typeof _0x5382a6[_0x5368f7(0x195)]==_0x5368f7(0x25c))try{return _0x5382a6[_0x5368f7(0x195)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x5382a6['randomBytes']==_0x5368f7(0x25c))try{return _0x5382a6[_0x5368f7(0x300)](0x4)[_0x5368f7(0x3c2)]();}catch{}}throw new Error(_0x5368f7(0x100));},_0xf4a006=Object['create']||(function(){function _0x39430f(){}return function(_0xf8c8ec){const _0x46726d=_0x3dfb;var _0x3b73e9;return _0x39430f[_0x46726d(0x1f9)]=_0xf8c8ec,_0x3b73e9=new _0x39430f(),_0x39430f[_0x46726d(0x1f9)]=null,_0x3b73e9;};}()),_0x5d1a37={},_0x216a9b=_0x5d1a37[_0xa004b1(0x222)]={},_0x3976c8=_0x216a9b[_0xa004b1(0x135)]=(function(){return{'extend':function(_0xa821a){const _0x2c831a=_0x3dfb;var _0x270440=_0xf4a006(this);return _0xa821a&&_0x270440[_0x2c831a(0x558)](_0xa821a),(!_0x270440[_0x2c831a(0x2dd)](_0x2c831a(0x361))||this[_0x2c831a(0x361)]===_0x270440['init'])&&(_0x270440[_0x2c831a(0x361)]=function(){const _0x3cc388=_0x2c831a;_0x270440[_0x3cc388(0x272)]['init'][_0x3cc388(0x4be)](this,arguments);}),_0x270440['init'][_0x2c831a(0x1f9)]=_0x270440,_0x270440[_0x2c831a(0x272)]=this,_0x270440;},'create':function(){const _0x53a298=_0x3dfb;var _0x57681b=this['extend']();return _0x57681b[_0x53a298(0x361)]['apply'](_0x57681b,arguments),_0x57681b;},'init':function(){},'mixIn':function(_0x25b5ea){const _0x275e54=_0x3dfb;for(var _0x5eb23e in _0x25b5ea)_0x25b5ea[_0x275e54(0x2dd)](_0x5eb23e)&&(this[_0x5eb23e]=_0x25b5ea[_0x5eb23e]);_0x25b5ea['hasOwnProperty'](_0x275e54(0xfb))&&(this[_0x275e54(0xfb)]=_0x25b5ea[_0x275e54(0xfb)]);},'clone':function(){const _0x277922=_0x3dfb;return this[_0x277922(0x361)][_0x277922(0x1f9)]['extend'](this);}};}()),_0x55dc96=_0x216a9b[_0xa004b1(0x44c)]=_0x3976c8['extend']({'init':function(_0x45782b,_0x138329){const _0x4bb16b=_0xa004b1;_0x45782b=this['words']=_0x45782b||[],_0x138329!=_0x486909?this[_0x4bb16b(0x16d)]=_0x138329:this[_0x4bb16b(0x16d)]=_0x45782b[_0x4bb16b(0x313)]*0x4;},'toString':function(_0x15b308){const _0x7342e3=_0xa004b1;return(_0x15b308||_0x561546)[_0x7342e3(0x1f5)](this);},'concat':function(_0x200c10){const _0x1841dd=_0xa004b1;var _0x38b041=this[_0x1841dd(0x548)],_0x56b1f7=_0x200c10['words'],_0x449c0a=this[_0x1841dd(0x16d)],_0x37981b=_0x200c10[_0x1841dd(0x16d)];if(this[_0x1841dd(0x3de)](),_0x449c0a%0x4)for(var _0xf84421=0x0;_0xf84421<_0x37981b;_0xf84421++){var _0x4f3663=_0x56b1f7[_0xf84421>>>0x2]>>>0x18-_0xf84421%0x4*0x8&0xff;_0x38b041[_0x449c0a+_0xf84421>>>0x2]|=_0x4f3663<<0x18-(_0x449c0a+_0xf84421)%0x4*0x8;}else{for(var _0x5d3054=0x0;_0x5d3054<_0x37981b;_0x5d3054+=0x4)_0x38b041[_0x449c0a+_0x5d3054>>>0x2]=_0x56b1f7[_0x5d3054>>>0x2];}return this['sigBytes']+=_0x37981b,this;},'clamp':function(){const _0x401803=_0xa004b1;var _0x10d6fa=this[_0x401803(0x548)],_0x51af99=this[_0x401803(0x16d)];_0x10d6fa[_0x51af99>>>0x2]&=0xffffffff<<0x20-_0x51af99%0x4*0x8,_0x10d6fa[_0x401803(0x313)]=_0x148560[_0x401803(0x184)](_0x51af99/0x4);},'clone':function(){const _0x467902=_0xa004b1;var _0x37bb02=_0x3976c8[_0x467902(0x3bc)]['call'](this);return _0x37bb02['words']=this[_0x467902(0x548)][_0x467902(0x247)](0x0),_0x37bb02;},'random':function(_0x4de0d4){const _0x55b388=_0xa004b1;for(var _0x2f21f2=[],_0x2bbcf5=0x0;_0x2bbcf5<_0x4de0d4;_0x2bbcf5+=0x4)_0x2f21f2[_0x55b388(0x1e3)](_0x662719());return new _0x55dc96[(_0x55b388(0x361))](_0x2f21f2,_0x4de0d4);}}),_0x2589f2=_0x5d1a37[_0xa004b1(0x527)]={},_0x561546=_0x2589f2[_0xa004b1(0x440)]={'stringify':function(_0x3b80d8){const _0x224a3d=_0xa004b1;for(var _0x5b2db6=_0x3b80d8[_0x224a3d(0x548)],_0x59faca=_0x3b80d8['sigBytes'],_0x52173b=[],_0x533616=0x0;_0x533616<_0x59faca;_0x533616++){var _0x153b40=_0x5b2db6[_0x533616>>>0x2]>>>0x18-_0x533616%0x4*0x8&0xff;_0x52173b[_0x224a3d(0x1e3)]((_0x153b40>>>0x4)[_0x224a3d(0xfb)](0x10)),_0x52173b['push']((_0x153b40&0xf)[_0x224a3d(0xfb)](0x10));}return _0x52173b[_0x224a3d(0x4c1)]('');},'parse':function(_0x5c7c7d){const _0x582dbb=_0xa004b1;for(var _0x80c93b=_0x5c7c7d[_0x582dbb(0x313)],_0x374ca4=[],_0xfc84f7=0x0;_0xfc84f7<_0x80c93b;_0xfc84f7+=0x2)_0x374ca4[_0xfc84f7>>>0x3]|=parseInt(_0x5c7c7d[_0x582dbb(0x255)](_0xfc84f7,0x2),0x10)<<0x18-_0xfc84f7%0x8*0x4;return new _0x55dc96[(_0x582dbb(0x361))](_0x374ca4,_0x80c93b/0x2);}},_0x2e8a36=_0x2589f2[_0xa004b1(0x15a)]={'stringify':function(_0xa51116){const _0x108249=_0xa004b1;for(var _0xb8742e=_0xa51116[_0x108249(0x548)],_0x5b416a=_0xa51116['sigBytes'],_0xa33195=[],_0xf59edd=0x0;_0xf59edd<_0x5b416a;_0xf59edd++){var _0x53f0a7=_0xb8742e[_0xf59edd>>>0x2]>>>0x18-_0xf59edd%0x4*0x8&0xff;_0xa33195[_0x108249(0x1e3)](String[_0x108249(0x432)](_0x53f0a7));}return _0xa33195['join']('');},'parse':function(_0x31d8d2){const _0x1a4e6e=_0xa004b1;for(var _0x5449a3=_0x31d8d2[_0x1a4e6e(0x313)],_0x1c2f41=[],_0x20d706=0x0;_0x20d706<_0x5449a3;_0x20d706++)_0x1c2f41[_0x20d706>>>0x2]|=(_0x31d8d2[_0x1a4e6e(0x13e)](_0x20d706)&0xff)<<0x18-_0x20d706%0x4*0x8;return new _0x55dc96[(_0x1a4e6e(0x361))](_0x1c2f41,_0x5449a3);}},_0x484521=_0x2589f2[_0xa004b1(0xea)]={'stringify':function(_0x3dec28){const _0x2a68bf=_0xa004b1;try{return decodeURIComponent(escape(_0x2e8a36[_0x2a68bf(0x1f5)](_0x3dec28)));}catch{throw new Error(_0x2a68bf(0x507));}},'parse':function(_0x2eb5d7){const _0x4c9bd4=_0xa004b1;return _0x2e8a36[_0x4c9bd4(0x2fc)](unescape(encodeURIComponent(_0x2eb5d7)));}},_0x559134=_0x216a9b[_0xa004b1(0x582)]=_0x3976c8['extend']({'reset':function(){const _0x1ff284=_0xa004b1;this['_data']=new _0x55dc96[(_0x1ff284(0x361))](),this['_nDataBytes']=0x0;},'_append':function(_0x38d1bb){const _0x3412a9=_0xa004b1;typeof _0x38d1bb=='string'&&(_0x38d1bb=_0x484521[_0x3412a9(0x2fc)](_0x38d1bb)),this[_0x3412a9(0x498)]['concat'](_0x38d1bb),this[_0x3412a9(0x54e)]+=_0x38d1bb[_0x3412a9(0x16d)];},'_process':function(_0x533807){const _0x3ad4e=_0xa004b1;var _0x465edb,_0x14db35=this[_0x3ad4e(0x498)],_0x21644f=_0x14db35[_0x3ad4e(0x548)],_0x401c72=_0x14db35['sigBytes'],_0x2fd431=this[_0x3ad4e(0x50d)],_0x3ce5a7=_0x2fd431*0x4,_0xa841cc=_0x401c72/_0x3ce5a7;_0x533807?_0xa841cc=_0x148560[_0x3ad4e(0x184)](_0xa841cc):_0xa841cc=_0x148560[_0x3ad4e(0x215)]((_0xa841cc|0x0)-this[_0x3ad4e(0x28e)],0x0);var _0x4c1764=_0xa841cc*_0x2fd431,_0x3aa6b4=_0x148560['min'](_0x4c1764*0x4,_0x401c72);if(_0x4c1764){for(var _0x3709c4=0x0;_0x3709c4<_0x4c1764;_0x3709c4+=_0x2fd431)this['_doProcessBlock'](_0x21644f,_0x3709c4);_0x465edb=_0x21644f['splice'](0x0,_0x4c1764),_0x14db35[_0x3ad4e(0x16d)]-=_0x3aa6b4;}return new _0x55dc96[(_0x3ad4e(0x361))](_0x465edb,_0x3aa6b4);},'clone':function(){const _0x5bf061=_0xa004b1;var _0x528374=_0x3976c8[_0x5bf061(0x3bc)][_0x5bf061(0x112)](this);return _0x528374['_data']=this[_0x5bf061(0x498)]['clone'](),_0x528374;},'_minBufferSize':0x0});_0x216a9b[_0xa004b1(0x4c3)]=_0x559134[_0xa004b1(0x262)]({'cfg':_0x3976c8['extend'](),'init':function(_0x3ce855){const _0x2db7f6=_0xa004b1;this[_0x2db7f6(0x2d6)]=this[_0x2db7f6(0x2d6)][_0x2db7f6(0x262)](_0x3ce855),this[_0x2db7f6(0x3cd)]();},'reset':function(){const _0xc5e728=_0xa004b1;_0x559134['reset'][_0xc5e728(0x112)](this),this[_0xc5e728(0x357)]();},'update':function(_0x5f4172){const _0x1171a5=_0xa004b1;return this[_0x1171a5(0x416)](_0x5f4172),this['_process'](),this;},'finalize':function(_0x469da8){const _0xa537fd=_0xa004b1;_0x469da8&&this[_0xa537fd(0x416)](_0x469da8);var _0x469cb2=this[_0xa537fd(0x3a2)]();return _0x469cb2;},'blockSize':0x10,'_createHelper':function(_0x12a5f1){return function(_0x4b6ef9,_0x577147){const _0x2b9396=_0x3dfb;return new _0x12a5f1[(_0x2b9396(0x361))](_0x577147)['finalize'](_0x4b6ef9);};},'_createHmacHelper':function(_0x14dd30){return function(_0x13ec9a,_0x461823){const _0x17416b=_0x3dfb;return new _0x34b951[(_0x17416b(0x238))][(_0x17416b(0x361))](_0x14dd30,_0x461823)[_0x17416b(0x580)](_0x13ec9a);};}});var _0x34b951=_0x5d1a37['algo']={};return _0x5d1a37;}(Math);return _0x55e419;}));}(ct)),ct[_0x10df57(0x487)];}var lt={'exports':{}},Vt;function On(){const _0x5351a5=_0x49c5a4;return Vt||(Vt=0x1,function(_0x25133b,_0x266927){(function(_0x1304b5,_0x23813c){const _0x3b7b81=_0x3dfb;_0x25133b[_0x3b7b81(0x487)]=_0x23813c(oe());}(X,function(_0x17df4f){return(function(){const _0x2102ab=_0x3dfb;var _0x307110=_0x17df4f,_0x3dc236=_0x307110['lib'],_0x5a56d3=_0x3dc236[_0x2102ab(0x44c)],_0x44615b=_0x307110['enc'];_0x44615b[_0x2102ab(0x334)]={'stringify':function(_0x349753){const _0x2fbeaf=_0x2102ab;var _0x2470bf=_0x349753[_0x2fbeaf(0x548)],_0x4b1a5d=_0x349753[_0x2fbeaf(0x16d)],_0x3bc651=this['_map'];_0x349753['clamp']();for(var _0x6be6e6=[],_0x466f88=0x0;_0x466f88<_0x4b1a5d;_0x466f88+=0x3)for(var _0x4bf986=_0x2470bf[_0x466f88>>>0x2]>>>0x18-_0x466f88%0x4*0x8&0xff,_0x5bddba=_0x2470bf[_0x466f88+0x1>>>0x2]>>>0x18-(_0x466f88+0x1)%0x4*0x8&0xff,_0x33fee7=_0x2470bf[_0x466f88+0x2>>>0x2]>>>0x18-(_0x466f88+0x2)%0x4*0x8&0xff,_0x5e0197=_0x4bf986<<0x10|_0x5bddba<<0x8|_0x33fee7,_0x671f99=0x0;_0x671f99<0x4&&_0x466f88+_0x671f99*0.75<_0x4b1a5d;_0x671f99++)_0x6be6e6[_0x2fbeaf(0x1e3)](_0x3bc651['charAt'](_0x5e0197>>>0x6*(0x3-_0x671f99)&0x3f));var _0x5c15bb=_0x3bc651['charAt'](0x40);if(_0x5c15bb){for(;_0x6be6e6['length']%0x4;)_0x6be6e6[_0x2fbeaf(0x1e3)](_0x5c15bb);}return _0x6be6e6[_0x2fbeaf(0x4c1)]('');},'parse':function(_0x4e3159){const _0x51f2c8=_0x2102ab;var _0x544e4a=_0x4e3159[_0x51f2c8(0x313)],_0x1b71de=this[_0x51f2c8(0x42a)],_0x2c5f89=this[_0x51f2c8(0x4e3)];if(!_0x2c5f89){_0x2c5f89=this['_reverseMap']=[];for(var _0x2e0c3a=0x0;_0x2e0c3a<_0x1b71de[_0x51f2c8(0x313)];_0x2e0c3a++)_0x2c5f89[_0x1b71de[_0x51f2c8(0x13e)](_0x2e0c3a)]=_0x2e0c3a;}var _0x9fa8a3=_0x1b71de[_0x51f2c8(0x3f9)](0x40);if(_0x9fa8a3){var _0x58fb2c=_0x4e3159[_0x51f2c8(0x3ac)](_0x9fa8a3);_0x58fb2c!==-0x1&&(_0x544e4a=_0x58fb2c);}return _0x27eb1c(_0x4e3159,_0x544e4a,_0x2c5f89);},'_map':_0x2102ab(0x40e)};function _0x27eb1c(_0x4f7f41,_0x4f6843,_0x5b4510){const _0x41caba=_0x2102ab;for(var _0xb29c82=[],_0x254bed=0x0,_0xc53dd3=0x0;_0xc53dd3<_0x4f6843;_0xc53dd3++)if(_0xc53dd3%0x4){var _0x3a0921=_0x5b4510[_0x4f7f41[_0x41caba(0x13e)](_0xc53dd3-0x1)]<<_0xc53dd3%0x4*0x2,_0x9ffe84=_0x5b4510[_0x4f7f41[_0x41caba(0x13e)](_0xc53dd3)]>>>0x6-_0xc53dd3%0x4*0x2,_0x363e0b=_0x3a0921|_0x9ffe84;_0xb29c82[_0x254bed>>>0x2]|=_0x363e0b<<0x18-_0x254bed%0x4*0x8,_0x254bed++;}return _0x5a56d3[_0x41caba(0x43a)](_0xb29c82,_0x254bed);}}()),_0x17df4f['enc']['Base64'];}));}(lt)),lt[_0x5351a5(0x487)];}var ht={'exports':{}},Gt;function cr(){const _0x2c0b80=_0x49c5a4;return Gt||(Gt=0x1,function(_0x8ec0d7,_0x28e6f8){(function(_0x1319e5,_0x71fbfe){const _0x1151af=_0x3dfb;_0x8ec0d7[_0x1151af(0x487)]=_0x71fbfe(oe());}(X,function(_0x52ad77){const _0x1deb63=_0x3dfb;return function(_0x35a0c0){const _0x1fc390=_0x3dfb;var _0x3677de=_0x52ad77,_0x24a01e=_0x3677de[_0x1fc390(0x222)],_0xb3e2de=_0x24a01e[_0x1fc390(0x44c)],_0x3fa1ea=_0x24a01e['Hasher'],_0x524b50=_0x3677de[_0x1fc390(0x537)],_0x1f2e80=[];(function(){const _0x43e0e4=_0x1fc390;for(var _0xbf4d10=0x0;_0xbf4d10<0x40;_0xbf4d10++)_0x1f2e80[_0xbf4d10]=_0x35a0c0[_0x43e0e4(0x2de)](_0x35a0c0[_0x43e0e4(0x3fa)](_0xbf4d10+0x1))*0x100000000|0x0;}());var _0x23a4e7=_0x524b50[_0x1fc390(0x4e4)]=_0x3fa1ea['extend']({'_doReset':function(){const _0x5526f3=_0x1fc390;this[_0x5526f3(0x3b4)]=new _0xb3e2de[(_0x5526f3(0x361))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x535d1d,_0x52d109){const _0x1dd929=_0x1fc390;for(var _0x109d2d=0x0;_0x109d2d<0x10;_0x109d2d++){var _0xd5218c=_0x52d109+_0x109d2d,_0x5dd356=_0x535d1d[_0xd5218c];_0x535d1d[_0xd5218c]=(_0x5dd356<<0x8|_0x5dd356>>>0x18)&0xff00ff|(_0x5dd356<<0x18|_0x5dd356>>>0x8)&0xff00ff00;}var _0x11aef4=this[_0x1dd929(0x3b4)][_0x1dd929(0x548)],_0x4c365e=_0x535d1d[_0x52d109+0x0],_0x4309bc=_0x535d1d[_0x52d109+0x1],_0x2ea2e5=_0x535d1d[_0x52d109+0x2],_0x478f58=_0x535d1d[_0x52d109+0x3],_0x1cb293=_0x535d1d[_0x52d109+0x4],_0x474126=_0x535d1d[_0x52d109+0x5],_0x4d48a3=_0x535d1d[_0x52d109+0x6],_0x9c61ce=_0x535d1d[_0x52d109+0x7],_0x5c7a87=_0x535d1d[_0x52d109+0x8],_0x5b7966=_0x535d1d[_0x52d109+0x9],_0x5debfd=_0x535d1d[_0x52d109+0xa],_0x2d2ac1=_0x535d1d[_0x52d109+0xb],_0x432fe1=_0x535d1d[_0x52d109+0xc],_0xbd6798=_0x535d1d[_0x52d109+0xd],_0x5302d1=_0x535d1d[_0x52d109+0xe],_0x4977b4=_0x535d1d[_0x52d109+0xf],_0x314b78=_0x11aef4[0x0],_0x424972=_0x11aef4[0x1],_0xb6e7de=_0x11aef4[0x2],_0x794a5e=_0x11aef4[0x3];_0x314b78=_0x2422bc(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x4c365e,0x7,_0x1f2e80[0x0]),_0x794a5e=_0x2422bc(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x4309bc,0xc,_0x1f2e80[0x1]),_0xb6e7de=_0x2422bc(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x2ea2e5,0x11,_0x1f2e80[0x2]),_0x424972=_0x2422bc(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x478f58,0x16,_0x1f2e80[0x3]),_0x314b78=_0x2422bc(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x1cb293,0x7,_0x1f2e80[0x4]),_0x794a5e=_0x2422bc(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x474126,0xc,_0x1f2e80[0x5]),_0xb6e7de=_0x2422bc(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x4d48a3,0x11,_0x1f2e80[0x6]),_0x424972=_0x2422bc(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x9c61ce,0x16,_0x1f2e80[0x7]),_0x314b78=_0x2422bc(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x5c7a87,0x7,_0x1f2e80[0x8]),_0x794a5e=_0x2422bc(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x5b7966,0xc,_0x1f2e80[0x9]),_0xb6e7de=_0x2422bc(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x5debfd,0x11,_0x1f2e80[0xa]),_0x424972=_0x2422bc(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x2d2ac1,0x16,_0x1f2e80[0xb]),_0x314b78=_0x2422bc(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x432fe1,0x7,_0x1f2e80[0xc]),_0x794a5e=_0x2422bc(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0xbd6798,0xc,_0x1f2e80[0xd]),_0xb6e7de=_0x2422bc(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x5302d1,0x11,_0x1f2e80[0xe]),_0x424972=_0x2422bc(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x4977b4,0x16,_0x1f2e80[0xf]),_0x314b78=_0x253032(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x4309bc,0x5,_0x1f2e80[0x10]),_0x794a5e=_0x253032(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x4d48a3,0x9,_0x1f2e80[0x11]),_0xb6e7de=_0x253032(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x2d2ac1,0xe,_0x1f2e80[0x12]),_0x424972=_0x253032(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x4c365e,0x14,_0x1f2e80[0x13]),_0x314b78=_0x253032(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x474126,0x5,_0x1f2e80[0x14]),_0x794a5e=_0x253032(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x5debfd,0x9,_0x1f2e80[0x15]),_0xb6e7de=_0x253032(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x4977b4,0xe,_0x1f2e80[0x16]),_0x424972=_0x253032(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x1cb293,0x14,_0x1f2e80[0x17]),_0x314b78=_0x253032(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x5b7966,0x5,_0x1f2e80[0x18]),_0x794a5e=_0x253032(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x5302d1,0x9,_0x1f2e80[0x19]),_0xb6e7de=_0x253032(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x478f58,0xe,_0x1f2e80[0x1a]),_0x424972=_0x253032(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x5c7a87,0x14,_0x1f2e80[0x1b]),_0x314b78=_0x253032(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0xbd6798,0x5,_0x1f2e80[0x1c]),_0x794a5e=_0x253032(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x2ea2e5,0x9,_0x1f2e80[0x1d]),_0xb6e7de=_0x253032(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x9c61ce,0xe,_0x1f2e80[0x1e]),_0x424972=_0x253032(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x432fe1,0x14,_0x1f2e80[0x1f]),_0x314b78=_0x4cad2b(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x474126,0x4,_0x1f2e80[0x20]),_0x794a5e=_0x4cad2b(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x5c7a87,0xb,_0x1f2e80[0x21]),_0xb6e7de=_0x4cad2b(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x2d2ac1,0x10,_0x1f2e80[0x22]),_0x424972=_0x4cad2b(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x5302d1,0x17,_0x1f2e80[0x23]),_0x314b78=_0x4cad2b(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x4309bc,0x4,_0x1f2e80[0x24]),_0x794a5e=_0x4cad2b(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x1cb293,0xb,_0x1f2e80[0x25]),_0xb6e7de=_0x4cad2b(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x9c61ce,0x10,_0x1f2e80[0x26]),_0x424972=_0x4cad2b(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x5debfd,0x17,_0x1f2e80[0x27]),_0x314b78=_0x4cad2b(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0xbd6798,0x4,_0x1f2e80[0x28]),_0x794a5e=_0x4cad2b(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x4c365e,0xb,_0x1f2e80[0x29]),_0xb6e7de=_0x4cad2b(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x478f58,0x10,_0x1f2e80[0x2a]),_0x424972=_0x4cad2b(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x4d48a3,0x17,_0x1f2e80[0x2b]),_0x314b78=_0x4cad2b(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x5b7966,0x4,_0x1f2e80[0x2c]),_0x794a5e=_0x4cad2b(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x432fe1,0xb,_0x1f2e80[0x2d]),_0xb6e7de=_0x4cad2b(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x4977b4,0x10,_0x1f2e80[0x2e]),_0x424972=_0x4cad2b(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x2ea2e5,0x17,_0x1f2e80[0x2f]),_0x314b78=_0x4b6097(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x4c365e,0x6,_0x1f2e80[0x30]),_0x794a5e=_0x4b6097(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x9c61ce,0xa,_0x1f2e80[0x31]),_0xb6e7de=_0x4b6097(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x5302d1,0xf,_0x1f2e80[0x32]),_0x424972=_0x4b6097(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x474126,0x15,_0x1f2e80[0x33]),_0x314b78=_0x4b6097(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x432fe1,0x6,_0x1f2e80[0x34]),_0x794a5e=_0x4b6097(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x478f58,0xa,_0x1f2e80[0x35]),_0xb6e7de=_0x4b6097(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x5debfd,0xf,_0x1f2e80[0x36]),_0x424972=_0x4b6097(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x4309bc,0x15,_0x1f2e80[0x37]),_0x314b78=_0x4b6097(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x5c7a87,0x6,_0x1f2e80[0x38]),_0x794a5e=_0x4b6097(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x4977b4,0xa,_0x1f2e80[0x39]),_0xb6e7de=_0x4b6097(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x4d48a3,0xf,_0x1f2e80[0x3a]),_0x424972=_0x4b6097(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0xbd6798,0x15,_0x1f2e80[0x3b]),_0x314b78=_0x4b6097(_0x314b78,_0x424972,_0xb6e7de,_0x794a5e,_0x1cb293,0x6,_0x1f2e80[0x3c]),_0x794a5e=_0x4b6097(_0x794a5e,_0x314b78,_0x424972,_0xb6e7de,_0x2d2ac1,0xa,_0x1f2e80[0x3d]),_0xb6e7de=_0x4b6097(_0xb6e7de,_0x794a5e,_0x314b78,_0x424972,_0x2ea2e5,0xf,_0x1f2e80[0x3e]),_0x424972=_0x4b6097(_0x424972,_0xb6e7de,_0x794a5e,_0x314b78,_0x5b7966,0x15,_0x1f2e80[0x3f]),_0x11aef4[0x0]=_0x11aef4[0x0]+_0x314b78|0x0,_0x11aef4[0x1]=_0x11aef4[0x1]+_0x424972|0x0,_0x11aef4[0x2]=_0x11aef4[0x2]+_0xb6e7de|0x0,_0x11aef4[0x3]=_0x11aef4[0x3]+_0x794a5e|0x0;},'_doFinalize':function(){const _0x446060=_0x1fc390;var _0x4c9dd5=this[_0x446060(0x498)],_0x449be3=_0x4c9dd5[_0x446060(0x548)],_0x243d67=this[_0x446060(0x54e)]*0x8,_0x3d6ce3=_0x4c9dd5[_0x446060(0x16d)]*0x8;_0x449be3[_0x3d6ce3>>>0x5]|=0x80<<0x18-_0x3d6ce3%0x20;var _0x112ff0=_0x35a0c0['floor'](_0x243d67/0x100000000),_0x339274=_0x243d67;_0x449be3[(_0x3d6ce3+0x40>>>0x9<<0x4)+0xf]=(_0x112ff0<<0x8|_0x112ff0>>>0x18)&0xff00ff|(_0x112ff0<<0x18|_0x112ff0>>>0x8)&0xff00ff00,_0x449be3[(_0x3d6ce3+0x40>>>0x9<<0x4)+0xe]=(_0x339274<<0x8|_0x339274>>>0x18)&0xff00ff|(_0x339274<<0x18|_0x339274>>>0x8)&0xff00ff00,_0x4c9dd5[_0x446060(0x16d)]=(_0x449be3[_0x446060(0x313)]+0x1)*0x4,this[_0x446060(0x13f)]();for(var _0x96eb2b=this['_hash'],_0xcfe292=_0x96eb2b[_0x446060(0x548)],_0x42856b=0x0;_0x42856b<0x4;_0x42856b++){var _0x57b1a1=_0xcfe292[_0x42856b];_0xcfe292[_0x42856b]=(_0x57b1a1<<0x8|_0x57b1a1>>>0x18)&0xff00ff|(_0x57b1a1<<0x18|_0x57b1a1>>>0x8)&0xff00ff00;}return _0x96eb2b;},'clone':function(){const _0x34a6f8=_0x1fc390;var _0xd80f11=_0x3fa1ea[_0x34a6f8(0x3bc)][_0x34a6f8(0x112)](this);return _0xd80f11[_0x34a6f8(0x3b4)]=this[_0x34a6f8(0x3b4)]['clone'](),_0xd80f11;}});function _0x2422bc(_0x261507,_0x220c28,_0x2c60cb,_0x5cb1b7,_0x460db0,_0x1b73a3,_0x181c76){var _0x3cc08d=_0x261507+(_0x220c28&_0x2c60cb|~_0x220c28&_0x5cb1b7)+_0x460db0+_0x181c76;return(_0x3cc08d<<_0x1b73a3|_0x3cc08d>>>0x20-_0x1b73a3)+_0x220c28;}function _0x253032(_0xe4ece2,_0x542c80,_0x2c9522,_0x50c79e,_0x31f58f,_0x536de9,_0x1d0025){var _0x56b434=_0xe4ece2+(_0x542c80&_0x50c79e|_0x2c9522&~_0x50c79e)+_0x31f58f+_0x1d0025;return(_0x56b434<<_0x536de9|_0x56b434>>>0x20-_0x536de9)+_0x542c80;}function _0x4cad2b(_0x49d123,_0x5af0a7,_0x462654,_0xf511e7,_0x5a4489,_0x1fd96a,_0x361fd7){var _0xf3dfc6=_0x49d123+(_0x5af0a7^_0x462654^_0xf511e7)+_0x5a4489+_0x361fd7;return(_0xf3dfc6<<_0x1fd96a|_0xf3dfc6>>>0x20-_0x1fd96a)+_0x5af0a7;}function _0x4b6097(_0x164ea7,_0x112f31,_0x4c164,_0x5b4254,_0x5e7164,_0x588331,_0x29afff){var _0x55a253=_0x164ea7+(_0x4c164^(_0x112f31|~_0x5b4254))+_0x5e7164+_0x29afff;return(_0x55a253<<_0x588331|_0x55a253>>>0x20-_0x588331)+_0x112f31;}_0x3677de[_0x1fc390(0x4e4)]=_0x3fa1ea['_createHelper'](_0x23a4e7),_0x3677de[_0x1fc390(0x547)]=_0x3fa1ea[_0x1fc390(0xfc)](_0x23a4e7);}(Math),_0x52ad77[_0x1deb63(0x4e4)];}));}(ht)),ht[_0x2c0b80(0x487)];}var _t={'exports':{}},ut={'exports':{}},Yt;function lr(){return Yt||(Yt=0x1,function(_0x1caf80,_0x2e20ef){(function(_0x2f6c65,_0x41c5e4){const _0x283031=_0x3dfb;_0x1caf80[_0x283031(0x487)]=_0x41c5e4(oe());}(X,function(_0x10425f){return(function(){const _0x41ac39=_0x3dfb;var _0x1b266b=_0x10425f,_0x544fec=_0x1b266b[_0x41ac39(0x222)],_0x4ff7fe=_0x544fec['WordArray'],_0x4aee37=_0x544fec[_0x41ac39(0x4c3)],_0x5d8a83=_0x1b266b[_0x41ac39(0x537)],_0x1cd765=[],_0x2bf7ef=_0x5d8a83[_0x41ac39(0x202)]=_0x4aee37[_0x41ac39(0x262)]({'_doReset':function(){const _0x24c05f=_0x41ac39;this[_0x24c05f(0x3b4)]=new _0x4ff7fe[(_0x24c05f(0x361))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x3cd04c,_0x8e236d){const _0x4e0676=_0x41ac39;for(var _0x57d9e1=this[_0x4e0676(0x3b4)]['words'],_0x1f9f6e=_0x57d9e1[0x0],_0x1e6fbd=_0x57d9e1[0x1],_0x58c643=_0x57d9e1[0x2],_0x5c42e8=_0x57d9e1[0x3],_0x21c7a9=_0x57d9e1[0x4],_0x3af0fa=0x0;_0x3af0fa<0x50;_0x3af0fa++){if(_0x3af0fa<0x10)_0x1cd765[_0x3af0fa]=_0x3cd04c[_0x8e236d+_0x3af0fa]|0x0;else{var _0x7f5e8e=_0x1cd765[_0x3af0fa-0x3]^_0x1cd765[_0x3af0fa-0x8]^_0x1cd765[_0x3af0fa-0xe]^_0x1cd765[_0x3af0fa-0x10];_0x1cd765[_0x3af0fa]=_0x7f5e8e<<0x1|_0x7f5e8e>>>0x1f;}var _0x24202b=(_0x1f9f6e<<0x5|_0x1f9f6e>>>0x1b)+_0x21c7a9+_0x1cd765[_0x3af0fa];_0x3af0fa<0x14?_0x24202b+=(_0x1e6fbd&_0x58c643|~_0x1e6fbd&_0x5c42e8)+0x5a827999:_0x3af0fa<0x28?_0x24202b+=(_0x1e6fbd^_0x58c643^_0x5c42e8)+0x6ed9eba1:_0x3af0fa<0x3c?_0x24202b+=(_0x1e6fbd&_0x58c643|_0x1e6fbd&_0x5c42e8|_0x58c643&_0x5c42e8)-0x70e44324:_0x24202b+=(_0x1e6fbd^_0x58c643^_0x5c42e8)-0x359d3e2a,_0x21c7a9=_0x5c42e8,_0x5c42e8=_0x58c643,_0x58c643=_0x1e6fbd<<0x1e|_0x1e6fbd>>>0x2,_0x1e6fbd=_0x1f9f6e,_0x1f9f6e=_0x24202b;}_0x57d9e1[0x0]=_0x57d9e1[0x0]+_0x1f9f6e|0x0,_0x57d9e1[0x1]=_0x57d9e1[0x1]+_0x1e6fbd|0x0,_0x57d9e1[0x2]=_0x57d9e1[0x2]+_0x58c643|0x0,_0x57d9e1[0x3]=_0x57d9e1[0x3]+_0x5c42e8|0x0,_0x57d9e1[0x4]=_0x57d9e1[0x4]+_0x21c7a9|0x0;},'_doFinalize':function(){const _0x5b8fbd=_0x41ac39;var _0x42c6ac=this[_0x5b8fbd(0x498)],_0x5ce218=_0x42c6ac['words'],_0x2d3f28=this[_0x5b8fbd(0x54e)]*0x8,_0x5d37b0=_0x42c6ac[_0x5b8fbd(0x16d)]*0x8;return _0x5ce218[_0x5d37b0>>>0x5]|=0x80<<0x18-_0x5d37b0%0x20,_0x5ce218[(_0x5d37b0+0x40>>>0x9<<0x4)+0xe]=Math[_0x5b8fbd(0x5a9)](_0x2d3f28/0x100000000),_0x5ce218[(_0x5d37b0+0x40>>>0x9<<0x4)+0xf]=_0x2d3f28,_0x42c6ac[_0x5b8fbd(0x16d)]=_0x5ce218[_0x5b8fbd(0x313)]*0x4,this[_0x5b8fbd(0x13f)](),this['_hash'];},'clone':function(){const _0x1df28d=_0x41ac39;var _0x3fb3e7=_0x4aee37[_0x1df28d(0x3bc)][_0x1df28d(0x112)](this);return _0x3fb3e7['_hash']=this[_0x1df28d(0x3b4)][_0x1df28d(0x3bc)](),_0x3fb3e7;}});_0x1b266b[_0x41ac39(0x202)]=_0x4aee37[_0x41ac39(0x331)](_0x2bf7ef),_0x1b266b[_0x41ac39(0x14f)]=_0x4aee37[_0x41ac39(0xfc)](_0x2bf7ef);}()),_0x10425f['SHA1'];}));}(ut)),ut['exports'];}var dt={'exports':{}},Kt;function hr(){const _0x1a371c=_0x49c5a4;return Kt||(Kt=0x1,function(_0x5bfd87,_0x98f7ee){(function(_0x2c3f78,_0x436d99){const _0x3baa2c=_0x3dfb;_0x5bfd87[_0x3baa2c(0x487)]=_0x436d99(oe());}(X,function(_0x3a35d8){(function(){const _0x12c714=_0x3dfb;var _0x22ec0=_0x3a35d8,_0x1c8f2e=_0x22ec0[_0x12c714(0x222)],_0x4382ad=_0x1c8f2e[_0x12c714(0x135)],_0x350666=_0x22ec0[_0x12c714(0x527)],_0x467ef8=_0x350666[_0x12c714(0xea)],_0x21a855=_0x22ec0[_0x12c714(0x537)];_0x21a855[_0x12c714(0x238)]=_0x4382ad['extend']({'init':function(_0x20be88,_0x462261){const _0x2b55a6=_0x12c714;_0x20be88=this[_0x2b55a6(0x166)]=new _0x20be88['init'](),typeof _0x462261==_0x2b55a6(0x358)&&(_0x462261=_0x467ef8[_0x2b55a6(0x2fc)](_0x462261));var _0x5a198a=_0x20be88[_0x2b55a6(0x50d)],_0x1e518e=_0x5a198a*0x4;_0x462261['sigBytes']>_0x1e518e&&(_0x462261=_0x20be88[_0x2b55a6(0x580)](_0x462261)),_0x462261[_0x2b55a6(0x3de)]();for(var _0x505f54=this[_0x2b55a6(0x146)]=_0x462261[_0x2b55a6(0x3bc)](),_0x19e13e=this['_iKey']=_0x462261[_0x2b55a6(0x3bc)](),_0x3c3466=_0x505f54[_0x2b55a6(0x548)],_0x4487cf=_0x19e13e[_0x2b55a6(0x548)],_0x39c745=0x0;_0x39c745<_0x5a198a;_0x39c745++)_0x3c3466[_0x39c745]^=0x5c5c5c5c,_0x4487cf[_0x39c745]^=0x36363636;_0x505f54['sigBytes']=_0x19e13e[_0x2b55a6(0x16d)]=_0x1e518e,this[_0x2b55a6(0x3cd)]();},'reset':function(){const _0x3cd4ff=_0x12c714;var _0x116313=this[_0x3cd4ff(0x166)];_0x116313['reset'](),_0x116313['update'](this[_0x3cd4ff(0x342)]);},'update':function(_0x36ef9e){const _0x597e73=_0x12c714;return this[_0x597e73(0x166)][_0x597e73(0x2c1)](_0x36ef9e),this;},'finalize':function(_0x40d227){const _0x1d72bd=_0x12c714;var _0x436437=this[_0x1d72bd(0x166)],_0x53d4f2=_0x436437[_0x1d72bd(0x580)](_0x40d227);_0x436437['reset']();var _0x2abe9a=_0x436437[_0x1d72bd(0x580)](this[_0x1d72bd(0x146)][_0x1d72bd(0x3bc)]()[_0x1d72bd(0x54b)](_0x53d4f2));return _0x2abe9a;}});}());}));}(dt)),dt[_0x1a371c(0x487)];}var qt;function Dn(){return qt||(qt=0x1,function(_0xccb918,_0x5307e2){(function(_0x2c6653,_0x153381,_0x5d2393){const _0x4649aa=_0x3dfb;_0xccb918[_0x4649aa(0x487)]=_0x153381(oe(),lr(),hr());}(X,function(_0x558ad0){const _0xae0ab1=_0x3dfb;return(function(){const _0x7e0a9a=_0x3dfb;var _0xfc1cb6=_0x558ad0,_0x4a7805=_0xfc1cb6[_0x7e0a9a(0x222)],_0x240632=_0x4a7805[_0x7e0a9a(0x135)],_0x3ae88e=_0x4a7805[_0x7e0a9a(0x44c)],_0x89f95f=_0xfc1cb6[_0x7e0a9a(0x537)],_0x25c46e=_0x89f95f[_0x7e0a9a(0x4e4)],_0x341338=_0x89f95f[_0x7e0a9a(0x41c)]=_0x240632[_0x7e0a9a(0x262)]({'cfg':_0x240632[_0x7e0a9a(0x262)]({'keySize':0x80/0x20,'hasher':_0x25c46e,'iterations':0x1}),'init':function(_0x2a75c5){const _0x4f41d2=_0x7e0a9a;this[_0x4f41d2(0x2d6)]=this[_0x4f41d2(0x2d6)][_0x4f41d2(0x262)](_0x2a75c5);},'compute':function(_0x24b596,_0x31cf35){const _0x10dc04=_0x7e0a9a;for(var _0x581287,_0x56cf61=this[_0x10dc04(0x2d6)],_0x5eff33=_0x56cf61[_0x10dc04(0x4d9)]['create'](),_0x1cbee0=_0x3ae88e[_0x10dc04(0x43a)](),_0x1eb6e3=_0x1cbee0[_0x10dc04(0x548)],_0x27f02a=_0x56cf61[_0x10dc04(0x25e)],_0x464ce5=_0x56cf61['iterations'];_0x1eb6e3[_0x10dc04(0x313)]<_0x27f02a;){_0x581287&&_0x5eff33['update'](_0x581287),_0x581287=_0x5eff33['update'](_0x24b596)[_0x10dc04(0x580)](_0x31cf35),_0x5eff33[_0x10dc04(0x3cd)]();for(var _0xd18ae3=0x1;_0xd18ae3<_0x464ce5;_0xd18ae3++)_0x581287=_0x5eff33[_0x10dc04(0x580)](_0x581287),_0x5eff33[_0x10dc04(0x3cd)]();_0x1cbee0[_0x10dc04(0x54b)](_0x581287);}return _0x1cbee0[_0x10dc04(0x16d)]=_0x27f02a*0x4,_0x1cbee0;}});_0xfc1cb6[_0x7e0a9a(0x41c)]=function(_0x6b339b,_0x59a1f2,_0x48c71b){const _0x240704=_0x7e0a9a;return _0x341338['create'](_0x48c71b)[_0x240704(0x461)](_0x6b339b,_0x59a1f2);};}()),_0x558ad0[_0xae0ab1(0x41c)];}));}(_t)),_t['exports'];}var ft={'exports':{}},zt;function wn(){const _0x550156=_0x49c5a4;return zt||(zt=0x1,function(_0x322ac3,_0x5be661){(function(_0x38bccb,_0x132070,_0xff6800){const _0x1ff775=_0x3dfb;_0x322ac3[_0x1ff775(0x487)]=_0x132070(oe(),Dn());}(X,function(_0x4820e0){const _0x55be68=_0x3dfb;_0x4820e0[_0x55be68(0x222)][_0x55be68(0x354)]||function(_0x1846df){const _0x35819e=_0x55be68;var _0x901e58=_0x4820e0,_0x321eb0=_0x901e58['lib'],_0x52c75c=_0x321eb0['Base'],_0x58263f=_0x321eb0[_0x35819e(0x44c)],_0x300718=_0x321eb0[_0x35819e(0x582)],_0x2c995a=_0x901e58['enc'];_0x2c995a[_0x35819e(0xea)];var _0x5e22f8=_0x2c995a[_0x35819e(0x334)],_0x17e47c=_0x901e58[_0x35819e(0x537)],_0x285b51=_0x17e47c['EvpKDF'],_0x26b0cb=_0x321eb0[_0x35819e(0x354)]=_0x300718[_0x35819e(0x262)]({'cfg':_0x52c75c['extend'](),'createEncryptor':function(_0x8f3786,_0x2c5f3d){const _0x5d762c=_0x35819e;return this[_0x5d762c(0x43a)](this[_0x5d762c(0x292)],_0x8f3786,_0x2c5f3d);},'createDecryptor':function(_0x46ec3c,_0x4aa2ab){const _0x21b955=_0x35819e;return this[_0x21b955(0x43a)](this[_0x21b955(0x18c)],_0x46ec3c,_0x4aa2ab);},'init':function(_0x1fa083,_0x44f76e,_0x3e0de2){const _0x19ecec=_0x35819e;this[_0x19ecec(0x2d6)]=this[_0x19ecec(0x2d6)]['extend'](_0x3e0de2),this[_0x19ecec(0x2a5)]=_0x1fa083,this['_key']=_0x44f76e,this[_0x19ecec(0x3cd)]();},'reset':function(){const _0x496872=_0x35819e;_0x300718[_0x496872(0x3cd)][_0x496872(0x112)](this),this['_doReset']();},'process':function(_0x2bddd4){const _0x14e062=_0x35819e;return this[_0x14e062(0x416)](_0x2bddd4),this[_0x14e062(0x13f)]();},'finalize':function(_0x3688df){const _0x2f7a2b=_0x35819e;_0x3688df&&this[_0x2f7a2b(0x416)](_0x3688df);var _0x4a012c=this[_0x2f7a2b(0x3a2)]();return _0x4a012c;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x3a092c(_0x32df2a){const _0x905776=_0x3dfb;return typeof _0x32df2a==_0x905776(0x358)?_0x1c6992:_0x42b2cb;}return function(_0x2dd000){return{'encrypt':function(_0x49bb1c,_0x75c0ab,_0x2b72fe){const _0x40bfc2=_0x3dfb;return _0x3a092c(_0x75c0ab)[_0x40bfc2(0x30f)](_0x2dd000,_0x49bb1c,_0x75c0ab,_0x2b72fe);},'decrypt':function(_0x2d980e,_0x102f09,_0x4ab057){const _0x39d8ef=_0x3dfb;return _0x3a092c(_0x102f09)[_0x39d8ef(0x13c)](_0x2dd000,_0x2d980e,_0x102f09,_0x4ab057);}};};}())});_0x321eb0[_0x35819e(0x2b4)]=_0x26b0cb[_0x35819e(0x262)]({'_doFinalize':function(){const _0x370518=_0x35819e;var _0x1479ec=this[_0x370518(0x13f)](!0x0);return _0x1479ec;},'blockSize':0x1});var _0x26af3e=_0x901e58[_0x35819e(0x2d7)]={},_0x82b398=_0x321eb0[_0x35819e(0xf4)]=_0x52c75c['extend']({'createEncryptor':function(_0x529a06,_0x1330db){const _0x37f0ed=_0x35819e;return this['Encryptor'][_0x37f0ed(0x43a)](_0x529a06,_0x1330db);},'createDecryptor':function(_0x4e1ee2,_0x18ed99){const _0x1e1827=_0x35819e;return this[_0x1e1827(0x46a)][_0x1e1827(0x43a)](_0x4e1ee2,_0x18ed99);},'init':function(_0x32f067,_0x2330fb){const _0x5c0f5b=_0x35819e;this['_cipher']=_0x32f067,this[_0x5c0f5b(0x5ba)]=_0x2330fb;}}),_0x5f3074=_0x26af3e['CBC']=(function(){const _0x4aaa69=_0x35819e;var _0x1bffe3=_0x82b398[_0x4aaa69(0x262)]();_0x1bffe3['Encryptor']=_0x1bffe3[_0x4aaa69(0x262)]({'processBlock':function(_0x31a8a6,_0x22efc0){const _0x1ea4ad=_0x4aaa69;var _0x6c8038=this[_0x1ea4ad(0x4e9)],_0x38359f=_0x6c8038[_0x1ea4ad(0x50d)];_0x37d2ef[_0x1ea4ad(0x112)](this,_0x31a8a6,_0x22efc0,_0x38359f),_0x6c8038[_0x1ea4ad(0x508)](_0x31a8a6,_0x22efc0),this['_prevBlock']=_0x31a8a6[_0x1ea4ad(0x247)](_0x22efc0,_0x22efc0+_0x38359f);}}),_0x1bffe3['Decryptor']=_0x1bffe3['extend']({'processBlock':function(_0x448cb8,_0x31a234){const _0x4bc357=_0x4aaa69;var _0x3321d7=this[_0x4bc357(0x4e9)],_0x2939ab=_0x3321d7[_0x4bc357(0x50d)],_0x42a331=_0x448cb8['slice'](_0x31a234,_0x31a234+_0x2939ab);_0x3321d7[_0x4bc357(0x133)](_0x448cb8,_0x31a234),_0x37d2ef[_0x4bc357(0x112)](this,_0x448cb8,_0x31a234,_0x2939ab),this['_prevBlock']=_0x42a331;}});function _0x37d2ef(_0x56bb92,_0x2fb9a5,_0x182b0d){const _0x198dbd=_0x4aaa69;var _0x4409a1,_0x2af56d=this[_0x198dbd(0x5ba)];_0x2af56d?(_0x4409a1=_0x2af56d,this[_0x198dbd(0x5ba)]=_0x1846df):_0x4409a1=this[_0x198dbd(0x5ab)];for(var _0x2294d0=0x0;_0x2294d0<_0x182b0d;_0x2294d0++)_0x56bb92[_0x2fb9a5+_0x2294d0]^=_0x4409a1[_0x2294d0];}return _0x1bffe3;}()),_0x3b778b=_0x901e58['pad']={},_0x5e2cc8=_0x3b778b[_0x35819e(0x2da)]={'pad':function(_0x7d0a0b,_0x26fdd3){const _0x401573=_0x35819e;for(var _0x20119b=_0x26fdd3*0x4,_0x42c24a=_0x20119b-_0x7d0a0b[_0x401573(0x16d)]%_0x20119b,_0x2f1d8d=_0x42c24a<<0x18|_0x42c24a<<0x10|_0x42c24a<<0x8|_0x42c24a,_0x3368b7=[],_0x407abe=0x0;_0x407abe<_0x42c24a;_0x407abe+=0x4)_0x3368b7[_0x401573(0x1e3)](_0x2f1d8d);var _0x2f0da9=_0x58263f['create'](_0x3368b7,_0x42c24a);_0x7d0a0b['concat'](_0x2f0da9);},'unpad':function(_0x573893){const _0xeec76a=_0x35819e;var _0x223d67=_0x573893['words'][_0x573893[_0xeec76a(0x16d)]-0x1>>>0x2]&0xff;_0x573893[_0xeec76a(0x16d)]-=_0x223d67;}};_0x321eb0[_0x35819e(0x3f7)]=_0x26b0cb[_0x35819e(0x262)]({'cfg':_0x26b0cb[_0x35819e(0x2d6)]['extend']({'mode':_0x5f3074,'padding':_0x5e2cc8}),'reset':function(){const _0x30aff2=_0x35819e;var _0x1b4ef5;_0x26b0cb[_0x30aff2(0x3cd)]['call'](this);var _0x13a8c0=this[_0x30aff2(0x2d6)],_0x3c4ed1=_0x13a8c0['iv'],_0x53a102=_0x13a8c0[_0x30aff2(0x2d7)];this[_0x30aff2(0x2a5)]==this[_0x30aff2(0x292)]?_0x1b4ef5=_0x53a102[_0x30aff2(0x1ad)]:(_0x1b4ef5=_0x53a102[_0x30aff2(0x188)],this[_0x30aff2(0x28e)]=0x1),this['_mode']&&this[_0x30aff2(0x24d)]['__creator']==_0x1b4ef5?this[_0x30aff2(0x24d)][_0x30aff2(0x361)](this,_0x3c4ed1&&_0x3c4ed1[_0x30aff2(0x548)]):(this[_0x30aff2(0x24d)]=_0x1b4ef5[_0x30aff2(0x112)](_0x53a102,this,_0x3c4ed1&&_0x3c4ed1[_0x30aff2(0x548)]),this['_mode'][_0x30aff2(0x22a)]=_0x1b4ef5);},'_doProcessBlock':function(_0x1a78c7,_0x439fdc){const _0x3fc68f=_0x35819e;this[_0x3fc68f(0x24d)][_0x3fc68f(0x3e6)](_0x1a78c7,_0x439fdc);},'_doFinalize':function(){const _0x4ceed6=_0x35819e;var _0x32dd49,_0x2e7be6=this['cfg'][_0x4ceed6(0x4f9)];return this['_xformMode']==this[_0x4ceed6(0x292)]?(_0x2e7be6[_0x4ceed6(0x403)](this[_0x4ceed6(0x498)],this[_0x4ceed6(0x50d)]),_0x32dd49=this[_0x4ceed6(0x13f)](!0x0)):(_0x32dd49=this[_0x4ceed6(0x13f)](!0x0),_0x2e7be6[_0x4ceed6(0x400)](_0x32dd49)),_0x32dd49;},'blockSize':0x80/0x20});var _0xaa33bb=_0x321eb0[_0x35819e(0x2b6)]=_0x52c75c['extend']({'init':function(_0x4f96e4){const _0x30ea54=_0x35819e;this[_0x30ea54(0x558)](_0x4f96e4);},'toString':function(_0xaff4d2){const _0x106b82=_0x35819e;return(_0xaff4d2||this[_0x106b82(0x12f)])['stringify'](this);}}),_0x3e0179=_0x901e58[_0x35819e(0x160)]={},_0xadf6b6=_0x3e0179[_0x35819e(0x4f8)]={'stringify':function(_0xcb447){const _0x43dbdf=_0x35819e;var _0x3ff89e,_0x5e1dd0=_0xcb447[_0x43dbdf(0x3ec)],_0x3a042d=_0xcb447[_0x43dbdf(0x189)];return _0x3a042d?_0x3ff89e=_0x58263f[_0x43dbdf(0x43a)]([0x53616c74,0x65645f5f])[_0x43dbdf(0x54b)](_0x3a042d)['concat'](_0x5e1dd0):_0x3ff89e=_0x5e1dd0,_0x3ff89e[_0x43dbdf(0xfb)](_0x5e22f8);},'parse':function(_0x1a1e1d){const _0x3adb91=_0x35819e;var _0x2e7908,_0x5e6edd=_0x5e22f8[_0x3adb91(0x2fc)](_0x1a1e1d),_0x599b01=_0x5e6edd[_0x3adb91(0x548)];return _0x599b01[0x0]==0x53616c74&&_0x599b01[0x1]==0x65645f5f&&(_0x2e7908=_0x58263f[_0x3adb91(0x43a)](_0x599b01[_0x3adb91(0x247)](0x2,0x4)),_0x599b01[_0x3adb91(0x4da)](0x0,0x4),_0x5e6edd[_0x3adb91(0x16d)]-=0x10),_0xaa33bb[_0x3adb91(0x43a)]({'ciphertext':_0x5e6edd,'salt':_0x2e7908});}},_0x42b2cb=_0x321eb0[_0x35819e(0x3a3)]=_0x52c75c['extend']({'cfg':_0x52c75c[_0x35819e(0x262)]({'format':_0xadf6b6}),'encrypt':function(_0x2eaa8a,_0x4be4a8,_0x5ce9eb,_0x3b301e){const _0x422402=_0x35819e;_0x3b301e=this[_0x422402(0x2d6)][_0x422402(0x262)](_0x3b301e);var _0x1ed818=_0x2eaa8a[_0x422402(0x1ad)](_0x5ce9eb,_0x3b301e),_0x5e00f6=_0x1ed818[_0x422402(0x580)](_0x4be4a8),_0x12b473=_0x1ed818['cfg'];return _0xaa33bb[_0x422402(0x43a)]({'ciphertext':_0x5e00f6,'key':_0x5ce9eb,'iv':_0x12b473['iv'],'algorithm':_0x2eaa8a,'mode':_0x12b473['mode'],'padding':_0x12b473['padding'],'blockSize':_0x2eaa8a['blockSize'],'formatter':_0x3b301e[_0x422402(0x160)]});},'decrypt':function(_0x565944,_0x2631cd,_0x232457,_0x422b53){const _0x1bc652=_0x35819e;_0x422b53=this[_0x1bc652(0x2d6)]['extend'](_0x422b53),_0x2631cd=this[_0x1bc652(0xf1)](_0x2631cd,_0x422b53[_0x1bc652(0x160)]);var _0x9dd164=_0x565944[_0x1bc652(0x188)](_0x232457,_0x422b53)[_0x1bc652(0x580)](_0x2631cd[_0x1bc652(0x3ec)]);return _0x9dd164;},'_parse':function(_0x5351be,_0xa5e639){const _0x4bcb69=_0x35819e;return typeof _0x5351be==_0x4bcb69(0x358)?_0xa5e639[_0x4bcb69(0x2fc)](_0x5351be,this):_0x5351be;}}),_0x52595a=_0x901e58[_0x35819e(0x2a2)]={},_0x48314a=_0x52595a[_0x35819e(0x4f8)]={'execute':function(_0xd5f9b8,_0x499ce5,_0x5097db,_0x5eab28,_0x570061){const _0x440a06=_0x35819e;if(_0x5eab28||(_0x5eab28=_0x58263f[_0x440a06(0x349)](0x40/0x8)),_0x570061)var _0x4aeb5e=_0x285b51['create']({'keySize':_0x499ce5+_0x5097db,'hasher':_0x570061})['compute'](_0xd5f9b8,_0x5eab28);else var _0x4aeb5e=_0x285b51[_0x440a06(0x43a)]({'keySize':_0x499ce5+_0x5097db})[_0x440a06(0x461)](_0xd5f9b8,_0x5eab28);var _0x111fdc=_0x58263f[_0x440a06(0x43a)](_0x4aeb5e['words']['slice'](_0x499ce5),_0x5097db*0x4);return _0x4aeb5e[_0x440a06(0x16d)]=_0x499ce5*0x4,_0xaa33bb[_0x440a06(0x43a)]({'key':_0x4aeb5e,'iv':_0x111fdc,'salt':_0x5eab28});}},_0x1c6992=_0x321eb0['PasswordBasedCipher']=_0x42b2cb['extend']({'cfg':_0x42b2cb[_0x35819e(0x2d6)]['extend']({'kdf':_0x48314a}),'encrypt':function(_0xdca21b,_0x25b5a3,_0x2130ae,_0x32caf0){const _0x42b324=_0x35819e;_0x32caf0=this[_0x42b324(0x2d6)][_0x42b324(0x262)](_0x32caf0);var _0x4ee7cc=_0x32caf0[_0x42b324(0x2a2)][_0x42b324(0x158)](_0x2130ae,_0xdca21b[_0x42b324(0x25e)],_0xdca21b[_0x42b324(0x58d)],_0x32caf0[_0x42b324(0x189)],_0x32caf0[_0x42b324(0x4d9)]);_0x32caf0['iv']=_0x4ee7cc['iv'];var _0x43cf7d=_0x42b2cb['encrypt']['call'](this,_0xdca21b,_0x25b5a3,_0x4ee7cc[_0x42b324(0x206)],_0x32caf0);return _0x43cf7d['mixIn'](_0x4ee7cc),_0x43cf7d;},'decrypt':function(_0x1c1c61,_0x495598,_0x425a62,_0x266f7a){const _0x3bea32=_0x35819e;_0x266f7a=this[_0x3bea32(0x2d6)][_0x3bea32(0x262)](_0x266f7a),_0x495598=this['_parse'](_0x495598,_0x266f7a[_0x3bea32(0x160)]);var _0x192763=_0x266f7a[_0x3bea32(0x2a2)][_0x3bea32(0x158)](_0x425a62,_0x1c1c61[_0x3bea32(0x25e)],_0x1c1c61['ivSize'],_0x495598[_0x3bea32(0x189)],_0x266f7a[_0x3bea32(0x4d9)]);_0x266f7a['iv']=_0x192763['iv'];var _0x26865c=_0x42b2cb[_0x3bea32(0x13c)][_0x3bea32(0x112)](this,_0x1c1c61,_0x495598,_0x192763[_0x3bea32(0x206)],_0x266f7a);return _0x26865c;}});}();}));}(ft)),ft[_0x550156(0x487)];}(function(_0x93563b,_0xf6487f){(function(_0x191042,_0x209b56,_0x291b5f){const _0x3fb6e4=_0x3dfb;_0x93563b[_0x3fb6e4(0x487)]=_0x209b56(oe(),On(),cr(),Dn(),wn());}(X,function(_0x529aec){return(function(){const _0x5981eb=_0x3dfb;var _0x2625b0=_0x529aec,_0x4f4c8c=_0x2625b0[_0x5981eb(0x222)],_0x269d6d=_0x4f4c8c[_0x5981eb(0x3f7)],_0x2425d9=_0x2625b0[_0x5981eb(0x537)],_0x35cf31=[],_0x4b501b=[],_0x48c7ef=[],_0x230eb2=[],_0x2ef8db=[],_0x5b523e=[],_0x1dabff=[],_0x3753af=[],_0x592870=[],_0x421d5e=[];(function(){for(var _0x5363fb=[],_0x4697c6=0x0;_0x4697c6<0x100;_0x4697c6++)_0x4697c6<0x80?_0x5363fb[_0x4697c6]=_0x4697c6<<0x1:_0x5363fb[_0x4697c6]=_0x4697c6<<0x1^0x11b;for(var _0x380de1=0x0,_0x492f15=0x0,_0x4697c6=0x0;_0x4697c6<0x100;_0x4697c6++){var _0x5ccea8=_0x492f15^_0x492f15<<0x1^_0x492f15<<0x2^_0x492f15<<0x3^_0x492f15<<0x4;_0x5ccea8=_0x5ccea8>>>0x8^_0x5ccea8&0xff^0x63,_0x35cf31[_0x380de1]=_0x5ccea8,_0x4b501b[_0x5ccea8]=_0x380de1;var _0x280cbe=_0x5363fb[_0x380de1],_0x4c402d=_0x5363fb[_0x280cbe],_0x4de2f9=_0x5363fb[_0x4c402d],_0x492b50=_0x5363fb[_0x5ccea8]*0x101^_0x5ccea8*0x1010100;_0x48c7ef[_0x380de1]=_0x492b50<<0x18|_0x492b50>>>0x8,_0x230eb2[_0x380de1]=_0x492b50<<0x10|_0x492b50>>>0x10,_0x2ef8db[_0x380de1]=_0x492b50<<0x8|_0x492b50>>>0x18,_0x5b523e[_0x380de1]=_0x492b50;var _0x492b50=_0x4de2f9*0x1010101^_0x4c402d*0x10001^_0x280cbe*0x101^_0x380de1*0x1010100;_0x1dabff[_0x5ccea8]=_0x492b50<<0x18|_0x492b50>>>0x8,_0x3753af[_0x5ccea8]=_0x492b50<<0x10|_0x492b50>>>0x10,_0x592870[_0x5ccea8]=_0x492b50<<0x8|_0x492b50>>>0x18,_0x421d5e[_0x5ccea8]=_0x492b50,_0x380de1?(_0x380de1=_0x280cbe^_0x5363fb[_0x5363fb[_0x5363fb[_0x4de2f9^_0x280cbe]]],_0x492f15^=_0x5363fb[_0x5363fb[_0x492f15]]):_0x380de1=_0x492f15=0x1;}}());var _0x1428c1=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x42a412=_0x2425d9[_0x5981eb(0x54f)]=_0x269d6d[_0x5981eb(0x262)]({'_doReset':function(){const _0x3b51c7=_0x5981eb;var _0x32a4be;if(!(this[_0x3b51c7(0x484)]&&this[_0x3b51c7(0x322)]===this[_0x3b51c7(0x50a)])){for(var _0x297afc=this['_keyPriorReset']=this[_0x3b51c7(0x50a)],_0x55de3e=_0x297afc[_0x3b51c7(0x548)],_0x42e3c5=_0x297afc[_0x3b51c7(0x16d)]/0x4,_0x1c46d4=this['_nRounds']=_0x42e3c5+0x6,_0x1d5974=(_0x1c46d4+0x1)*0x4,_0x3e80f7=this[_0x3b51c7(0x3c0)]=[],_0x2cf191=0x0;_0x2cf191<_0x1d5974;_0x2cf191++)_0x2cf191<_0x42e3c5?_0x3e80f7[_0x2cf191]=_0x55de3e[_0x2cf191]:(_0x32a4be=_0x3e80f7[_0x2cf191-0x1],_0x2cf191%_0x42e3c5?_0x42e3c5>0x6&&_0x2cf191%_0x42e3c5==0x4&&(_0x32a4be=_0x35cf31[_0x32a4be>>>0x18]<<0x18|_0x35cf31[_0x32a4be>>>0x10&0xff]<<0x10|_0x35cf31[_0x32a4be>>>0x8&0xff]<<0x8|_0x35cf31[_0x32a4be&0xff]):(_0x32a4be=_0x32a4be<<0x8|_0x32a4be>>>0x18,_0x32a4be=_0x35cf31[_0x32a4be>>>0x18]<<0x18|_0x35cf31[_0x32a4be>>>0x10&0xff]<<0x10|_0x35cf31[_0x32a4be>>>0x8&0xff]<<0x8|_0x35cf31[_0x32a4be&0xff],_0x32a4be^=_0x1428c1[_0x2cf191/_0x42e3c5|0x0]<<0x18),_0x3e80f7[_0x2cf191]=_0x3e80f7[_0x2cf191-_0x42e3c5]^_0x32a4be);for(var _0x15509d=this[_0x3b51c7(0x4d7)]=[],_0x56bed9=0x0;_0x56bed9<_0x1d5974;_0x56bed9++){var _0x2cf191=_0x1d5974-_0x56bed9;if(_0x56bed9%0x4)var _0x32a4be=_0x3e80f7[_0x2cf191];else var _0x32a4be=_0x3e80f7[_0x2cf191-0x4];_0x56bed9<0x4||_0x2cf191<=0x4?_0x15509d[_0x56bed9]=_0x32a4be:_0x15509d[_0x56bed9]=_0x1dabff[_0x35cf31[_0x32a4be>>>0x18]]^_0x3753af[_0x35cf31[_0x32a4be>>>0x10&0xff]]^_0x592870[_0x35cf31[_0x32a4be>>>0x8&0xff]]^_0x421d5e[_0x35cf31[_0x32a4be&0xff]];}}},'encryptBlock':function(_0x544708,_0xfcbec8){const _0x54648a=_0x5981eb;this[_0x54648a(0x1c1)](_0x544708,_0xfcbec8,this[_0x54648a(0x3c0)],_0x48c7ef,_0x230eb2,_0x2ef8db,_0x5b523e,_0x35cf31);},'decryptBlock':function(_0x3b1863,_0x15a04c){const _0x393e4e=_0x5981eb;var _0x5f32bc=_0x3b1863[_0x15a04c+0x1];_0x3b1863[_0x15a04c+0x1]=_0x3b1863[_0x15a04c+0x3],_0x3b1863[_0x15a04c+0x3]=_0x5f32bc,this[_0x393e4e(0x1c1)](_0x3b1863,_0x15a04c,this[_0x393e4e(0x4d7)],_0x1dabff,_0x3753af,_0x592870,_0x421d5e,_0x4b501b);var _0x5f32bc=_0x3b1863[_0x15a04c+0x1];_0x3b1863[_0x15a04c+0x1]=_0x3b1863[_0x15a04c+0x3],_0x3b1863[_0x15a04c+0x3]=_0x5f32bc;},'_doCryptBlock':function(_0x29f60d,_0x3b80e7,_0x373566,_0x4b279b,_0x14ceef,_0x32acea,_0x33d9de,_0x23a4aa){const _0x36b3c6=_0x5981eb;for(var _0x1bcbbd=this[_0x36b3c6(0x484)],_0x599ef0=_0x29f60d[_0x3b80e7]^_0x373566[0x0],_0x52048f=_0x29f60d[_0x3b80e7+0x1]^_0x373566[0x1],_0x5d04eb=_0x29f60d[_0x3b80e7+0x2]^_0x373566[0x2],_0x20e870=_0x29f60d[_0x3b80e7+0x3]^_0x373566[0x3],_0x3a6c0e=0x4,_0x195de5=0x1;_0x195de5<_0x1bcbbd;_0x195de5++){var _0x1c4229=_0x4b279b[_0x599ef0>>>0x18]^_0x14ceef[_0x52048f>>>0x10&0xff]^_0x32acea[_0x5d04eb>>>0x8&0xff]^_0x33d9de[_0x20e870&0xff]^_0x373566[_0x3a6c0e++],_0x46f026=_0x4b279b[_0x52048f>>>0x18]^_0x14ceef[_0x5d04eb>>>0x10&0xff]^_0x32acea[_0x20e870>>>0x8&0xff]^_0x33d9de[_0x599ef0&0xff]^_0x373566[_0x3a6c0e++],_0x3e3811=_0x4b279b[_0x5d04eb>>>0x18]^_0x14ceef[_0x20e870>>>0x10&0xff]^_0x32acea[_0x599ef0>>>0x8&0xff]^_0x33d9de[_0x52048f&0xff]^_0x373566[_0x3a6c0e++],_0x1127d3=_0x4b279b[_0x20e870>>>0x18]^_0x14ceef[_0x599ef0>>>0x10&0xff]^_0x32acea[_0x52048f>>>0x8&0xff]^_0x33d9de[_0x5d04eb&0xff]^_0x373566[_0x3a6c0e++];_0x599ef0=_0x1c4229,_0x52048f=_0x46f026,_0x5d04eb=_0x3e3811,_0x20e870=_0x1127d3;}var _0x1c4229=(_0x23a4aa[_0x599ef0>>>0x18]<<0x18|_0x23a4aa[_0x52048f>>>0x10&0xff]<<0x10|_0x23a4aa[_0x5d04eb>>>0x8&0xff]<<0x8|_0x23a4aa[_0x20e870&0xff])^_0x373566[_0x3a6c0e++],_0x46f026=(_0x23a4aa[_0x52048f>>>0x18]<<0x18|_0x23a4aa[_0x5d04eb>>>0x10&0xff]<<0x10|_0x23a4aa[_0x20e870>>>0x8&0xff]<<0x8|_0x23a4aa[_0x599ef0&0xff])^_0x373566[_0x3a6c0e++],_0x3e3811=(_0x23a4aa[_0x5d04eb>>>0x18]<<0x18|_0x23a4aa[_0x20e870>>>0x10&0xff]<<0x10|_0x23a4aa[_0x599ef0>>>0x8&0xff]<<0x8|_0x23a4aa[_0x52048f&0xff])^_0x373566[_0x3a6c0e++],_0x1127d3=(_0x23a4aa[_0x20e870>>>0x18]<<0x18|_0x23a4aa[_0x599ef0>>>0x10&0xff]<<0x10|_0x23a4aa[_0x52048f>>>0x8&0xff]<<0x8|_0x23a4aa[_0x5d04eb&0xff])^_0x373566[_0x3a6c0e++];_0x29f60d[_0x3b80e7]=_0x1c4229,_0x29f60d[_0x3b80e7+0x1]=_0x46f026,_0x29f60d[_0x3b80e7+0x2]=_0x3e3811,_0x29f60d[_0x3b80e7+0x3]=_0x1127d3;},'keySize':0x100/0x20});_0x2625b0[_0x5981eb(0x54f)]=_0x269d6d['_createHelper'](_0x42a412);}()),_0x529aec['AES'];}));}(yn));function _0x3dfb(_0x4d4026,_0x17fd8c){const _0x2f4886=_0x2f48();return _0x3dfb=function(_0x3dfbf8,_0x378315){_0x3dfbf8=_0x3dfbf8-0xe9;let _0x527c9d=_0x2f4886[_0x3dfbf8];return _0x527c9d;},_0x3dfb(_0x4d4026,_0x17fd8c);}var _r=yn[_0x49c5a4(0x487)];const ur=xe(_r);var dr=On();const Xt=xe(dr);var Pn={'exports':{}};(function(_0x1e4559,_0x492279){(function(_0x2cd5d1,_0x1f918d){_0x1e4559['exports']=_0x1f918d(oe());}(X,function(_0x35adbc){const _0x1a9230=_0x3dfb;return _0x35adbc[_0x1a9230(0x527)][_0x1a9230(0xea)];}));}(Pn));var fr=Pn[_0x49c5a4(0x487)];const vr=xe(fr);var Un={'exports':{}};(function(_0x38acef,_0x24de25){(function(_0x21a20b,_0x28ed6f){_0x38acef['exports']=_0x28ed6f(oe());}(X,function(_0x5c5b77){const _0x228970=_0x3dfb;return(function(){const _0x14497e=_0x3dfb;if(typeof ArrayBuffer==_0x14497e(0x25c)){var _0x3e6804=_0x5c5b77,_0x429005=_0x3e6804[_0x14497e(0x222)],_0x1e175e=_0x429005['WordArray'],_0x291271=_0x1e175e[_0x14497e(0x361)],_0x3ac7a8=_0x1e175e[_0x14497e(0x361)]=function(_0x577c74){const _0xe1fc9c=_0x14497e;if(_0x577c74 instanceof ArrayBuffer&&(_0x577c74=new Uint8Array(_0x577c74)),(_0x577c74 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x577c74 instanceof Uint8ClampedArray||_0x577c74 instanceof Int16Array||_0x577c74 instanceof Uint16Array||_0x577c74 instanceof Int32Array||_0x577c74 instanceof Uint32Array||_0x577c74 instanceof Float32Array||_0x577c74 instanceof Float64Array)&&(_0x577c74=new Uint8Array(_0x577c74[_0xe1fc9c(0x106)],_0x577c74[_0xe1fc9c(0x2f2)],_0x577c74['byteLength'])),_0x577c74 instanceof Uint8Array){for(var _0x26f2dc=_0x577c74[_0xe1fc9c(0x176)],_0x48391f=[],_0x277a70=0x0;_0x277a70<_0x26f2dc;_0x277a70++)_0x48391f[_0x277a70>>>0x2]|=_0x577c74[_0x277a70]<<0x18-_0x277a70%0x4*0x8;_0x291271['call'](this,_0x48391f,_0x26f2dc);}else _0x291271[_0xe1fc9c(0x4be)](this,arguments);};_0x3ac7a8[_0x14497e(0x1f9)]=_0x1e175e;}}()),_0x5c5b77[_0x228970(0x222)][_0x228970(0x44c)];}));}(Un));var Sr=Un[_0x49c5a4(0x487)];const pr=xe(Sr);var Mn={'exports':{}};(function(_0x32afe7,_0x12ec30){(function(_0x4c6614,_0x2303a2,_0x57ded6){const _0x3be587=_0x3dfb;_0x32afe7[_0x3be587(0x487)]=_0x2303a2(oe(),wn());}(X,function(_0x185604){const _0x25076b=_0x3dfb;return _0x185604[_0x25076b(0x403)][_0x25076b(0x17a)]={'pad':function(){},'unpad':function(){}},_0x185604[_0x25076b(0x403)]['NoPadding'];}));}(Mn));var mr=Mn[_0x49c5a4(0x487)];const gr=xe(mr);function Ir(_0x1c6eb2,_0x22f44d){const _0x51950b=_0x49c5a4,_0x18dc3a=_0x22f44d-_0x1c6eb2[_0x51950b(0x313)]%_0x22f44d,_0x2d7b78=String[_0x51950b(0x432)](_0x18dc3a)[_0x51950b(0x50c)](_0x18dc3a);return _0x1c6eb2+_0x2d7b78;}function Cr(_0x2a735c,_0x51bdca){const _0x16b1e4=_0x49c5a4,_0x8401c8=pr[_0x16b1e4(0x349)](0x10),_0x45de04=Ir(_0x2a735c,0x10),_0x3f116d=ur[_0x16b1e4(0x30f)](vr['parse'](_0x45de04),Xt[_0x16b1e4(0x2fc)](_0x51bdca),{'iv':_0x8401c8,'padding':gr});return _0x8401c8[_0x16b1e4(0x54b)](_0x3f116d[_0x16b1e4(0x3ec)])[_0x16b1e4(0xfb)](Xt);}function Er(){const _0x564365=_0x49c5a4,_0x16a803=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x564365(0x226)];if(_0x16a803){const _0xc2dd54={'time':Math[_0x564365(0x5a9)](Date[_0x564365(0x228)]()/0x3e8),'domain':location[_0x564365(0x40b)]};return Cr(JSON['stringify'](_0xc2dd54),_0x16a803);}}var br=Object[_0x49c5a4(0x119)],Tr=Object[_0x49c5a4(0x3ea)],Rr=(_0x1215b5,_0x501406,_0x418250,_0x569c97)=>{const _0x3f43e4=_0x49c5a4;for(var _0x15ef5b=_0x569c97>0x1?void 0x0:_0x569c97?Tr(_0x501406,_0x418250):_0x501406,_0x11202f=_0x1215b5[_0x3f43e4(0x313)]-0x1,_0x36fc7f;_0x11202f>=0x0;_0x11202f--)(_0x36fc7f=_0x1215b5[_0x11202f])&&(_0x15ef5b=(_0x569c97?_0x36fc7f(_0x501406,_0x418250,_0x15ef5b):_0x36fc7f(_0x15ef5b))||_0x15ef5b);return _0x569c97&&_0x15ef5b&&br(_0x501406,_0x418250,_0x15ef5b),_0x15ef5b;},yr=(_0x2cf0a1,_0x1ba3ad)=>(_0x227ce0,_0x5d1549)=>_0x1ba3ad(_0x227ce0,_0x5d1549,_0x2cf0a1);let Ye=class{constructor(_0x5bcbea){const _0x527a3b=_0x49c5a4;this[_0x527a3b(0x1b4)]=_0x5bcbea,this[_0x527a3b(0x52c)]();}['_initRequestHeader'](){const _0x1c7226=_0x49c5a4;this[_0x1c7226(0x1b4)][_0x1c7226(0x4b2)]({'interceptor':(_0x305c90,_0x5050f8)=>{const _0x738e83=_0x1c7226,_0x250fe7=_0x305c90[_0x738e83(0x3e4)],_0x11e96=Er();return _0x11e96&&_0x250fe7[_0x738e83(0x384)](_0x738e83(0x1d0),_0x11e96),_0x5050f8(_0x305c90);}});}};Ye=Rr([yr(0x0,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)]))],Ye);var Or=Object[_0x49c5a4(0x119)],Dr=Object[_0x49c5a4(0x3ea)],wr=(_0x2e174e,_0x528816,_0xd9411e,_0x58f8ed)=>{const _0x55143d=_0x49c5a4;for(var _0x57d209=_0x58f8ed>0x1?void 0x0:_0x58f8ed?Dr(_0x528816,_0xd9411e):_0x528816,_0xf89b84=_0x2e174e[_0x55143d(0x313)]-0x1,_0x1553d3;_0xf89b84>=0x0;_0xf89b84--)(_0x1553d3=_0x2e174e[_0xf89b84])&&(_0x57d209=(_0x58f8ed?_0x1553d3(_0x528816,_0xd9411e,_0x57d209):_0x1553d3(_0x57d209))||_0x57d209);return _0x58f8ed&&_0x57d209&&Or(_0x528816,_0xd9411e,_0x57d209),_0x57d209;},vt=(_0x54cffe,_0x3d2ade)=>(_0x261228,_0x3939f4)=>_0x3d2ade(_0x261228,_0x3939f4,_0x54cffe);const Pr=[_0x49c5a4(0x270),_0x49c5a4(0x1b3),_0x49c5a4(0x520),_0x49c5a4(0x47b),_0x49c5a4(0x2f8)],Ur=0x5*0x400*0x400,Mr=_0x49c5a4(0x310),Ar=_0x49c5a4(0x3d0),Nr=_0x49c5a4(0x31b),Lr=_0x49c5a4(0x531);exports[_0x49c5a4(0x52a)]=class{constructor(_0x54f9c7,_0x5a0489,_0xe7fdbb){const _0x535bd1=_0x49c5a4;I(this,_0x535bd1(0x2e1),0x0),I(this,'_change$',new A[(_0x535bd1(0x10d))]()),I(this,_0x535bd1(0x405),this[_0x535bd1(0x3df)]),I(this,'_imageSourceCache',new Map()),(this[_0x535bd1(0x1b4)]=_0x54f9c7,this[_0x535bd1(0x369)]=_0x5a0489,this[_0x535bd1(0x35c)]=_0xe7fdbb);}[_0x49c5a4(0x386)](_0x49360a){const _0x327d09=_0x49c5a4;this['_waitCount']=_0x49360a,this[_0x327d09(0x3df)]['next'](_0x49360a);}[_0x49c5a4(0x431)](_0x438130,_0x4c7262){const _0x1af529=_0x49c5a4;if(_0x4c7262===ne[_0x1af529(0x279)][_0x1af529(0x1b6)]){const _0x3fc64f=new Image();return _0x3fc64f['src']=_0x438130,_0x3fc64f;}return this[_0x1af529(0x366)]['get'](_0x438130);}[_0x49c5a4(0x3d4)](_0x4cc5b9,_0x3d65c7,_0x18c285){const _0x3e3bca=_0x49c5a4;_0x3d65c7===ne[_0x3e3bca(0x279)][_0x3e3bca(0x1b6)]||_0x18c285==null||this['_imageSourceCache'][_0x3e3bca(0x384)](_0x4cc5b9,_0x18c285);}async['getImage'](_0x52c52f){const _0x203cb0=_0x49c5a4;try{const _0x477d1b=this['_replaceFileID'](this[_0x203cb0(0x462)](),''+_0x52c52f),_0x3b9b35=(await this[_0x203cb0(0x1b4)][_0x203cb0(0x17e)](_0x477d1b))[_0x203cb0(0x103)];if(_0x3b9b35[_0x203cb0(0x41d)]&&_0x3b9b35[_0x203cb0(0x41d)][_0x203cb0(0x373)]===cn['OK']){const _0x261109=new URL(_0x3b9b35[_0x203cb0(0x24a)],this[_0x203cb0(0x2f0)]())[_0x203cb0(0xfb)]();return Promise[_0x203cb0(0x3cc)](_0x261109);}return Promise[_0x203cb0(0x32f)](_0x3b9b35[_0x203cb0(0x41d)]);}catch(_0x2a8138){return Promise[_0x203cb0(0x32f)](_0x2a8138);}}async[_0x49c5a4(0x423)](_0x3f024d){const _0x478d12=_0x49c5a4;let _0x543182='';if(!Pr[_0x478d12(0x5b0)](_0x3f024d[_0x478d12(0x4a4)]))return this[_0x478d12(0x3bd)](),Promise[_0x478d12(0x32f)](new Error(ne[_0x478d12(0x32a)]['ERROR_IMAGE_TYPE']));if(_0x3f024d['size']>Ur)return this['_decreaseWaiting'](),Promise[_0x478d12(0x32f)](new Error(ne[_0x478d12(0x32a)]['ERROR_EXCEED_SIZE']));try{const _0x28c06a=new FormData();_0x28c06a[_0x478d12(0x28a)](_0x478d12(0x367),_0x3f024d);const _0x71b84f=this[_0x478d12(0x35c)][_0x478d12(0x49a)](),_0x1f461d=_0x71b84f==null?void 0x0:_0x71b84f['getUnitId']();if(!_0x1f461d)throw new Error(_0x478d12(0x304));const _0x19d333=this[_0x478d12(0x280)]()+_0x478d12(0x48a)+_0x3f024d['size'][_0x478d12(0xfb)]()+_0x478d12(0x29d)+ln['UnitEmbedded']+_0x478d12(0x3f0)+encodeURIComponent(_0x1f461d),_0xd6800d=await(await fetch(_0x19d333,{'method':_0x478d12(0x265),'body':_0x28c06a}))[_0x478d12(0x23c)]();if(typeof _0xd6800d['FileId']!=_0x478d12(0x358))return this['_decreaseWaiting'](),Promise[_0x478d12(0x32f)](new Error(ne['ImageUploadStatusType'][_0x478d12(0x21d)]));_0x543182=_0xd6800d[_0x478d12(0x352)];}catch{return this[_0x478d12(0x3bd)](),Promise['reject'](new Error(ne[_0x478d12(0x32a)][_0x478d12(0x21d)]));}return new Promise((_0x549919,_0x42dcb4)=>{const _0x5dcdc0=_0x478d12,_0x343271=new FileReader();_0x343271[_0x5dcdc0(0x59a)](_0x3f024d),_0x343271[_0x5dcdc0(0x4a1)]=_0x3213f5=>{const _0x5be98f=_0x5dcdc0;var _0x3a7342;const _0x383886=(_0x3a7342=_0x3213f5[_0x5be98f(0x45f)])==null?void 0x0:_0x3a7342[_0x5be98f(0x332)];if(_0x383886==null){this[_0x5be98f(0x3bd)](),_0x42dcb4(new Error(ne[_0x5be98f(0x32a)][_0x5be98f(0x21d)]));return;}const _0x342f90=a[_0x5be98f(0x4c9)][_0x5be98f(0x2a7)](0x6);_0x549919({'imageId':_0x342f90,'imageSourceType':ne[_0x5be98f(0x279)][_0x5be98f(0x577)],'source':_0x543182,'base64Cache':_0x383886,'status':ne[_0x5be98f(0x32a)][_0x5be98f(0x17c)]}),this[_0x5be98f(0x3bd)]();};});}[_0x49c5a4(0x280)](){const _0xa5a043=_0x49c5a4;var _0x42f027,_0x1daaae;const _0x3f8b7f=this['_configService'][_0xa5a043(0x162)](Mr),_0x1b9f90=this[_0xa5a043(0x369)][_0xa5a043(0x162)](ee);return(_0x1daaae=(_0x42f027=_0x1b9f90==null?void 0x0:_0x1b9f90['uploadFileServerUrl'])!=null?_0x42f027:_0x3f8b7f)!=null?_0x1daaae:Ar;}['_getSignURL'](){const _0x310fa3=_0x49c5a4;var _0x417104,_0x1fe38a;const _0x45af41=this[_0x310fa3(0x369)][_0x310fa3(0x162)](Nr),_0x4561f6=this[_0x310fa3(0x369)]['getConfig'](ee);return(_0x1fe38a=(_0x417104=_0x4561f6==null?void 0x0:_0x4561f6[_0x310fa3(0x2a4)])!=null?_0x417104:_0x45af41)!=null?_0x1fe38a:Lr;}[_0x49c5a4(0x2f0)](){const _0x240521=_0x49c5a4;var _0x2165d7;const _0x57fa28=this[_0x240521(0x369)][_0x240521(0x162)](ee);return(_0x2165d7=_0x57fa28==null?void 0x0:_0x57fa28[_0x240521(0x2b7)])!=null?_0x2165d7:location[_0x240521(0x37c)];}[_0x49c5a4(0x1e5)](_0x56d569,_0x6cb9ab){const _0x282222=_0x49c5a4;return _0x56d569['replace'](_0x282222(0x1ba),_0x6cb9ab);}[_0x49c5a4(0x3bd)](){const _0x618d79=_0x49c5a4;this[_0x618d79(0x2e1)]-=0x1,this[_0x618d79(0x3df)][_0x618d79(0x35e)](this[_0x618d79(0x2e1)]);}},exports[_0x49c5a4(0x52a)]=wr([vt(0x0,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)])),vt(0x1,a['IConfigService']),vt(0x2,a['Inject'](a[_0x49c5a4(0x1ea)]))],exports[_0x49c5a4(0x52a)]);var xr=Object[_0x49c5a4(0x119)],jr=Object[_0x49c5a4(0x3ea)],$r=(_0x5f1d8c,_0x301d8d,_0x2e97cb,_0xdd5830)=>{for(var _0x319576=_0xdd5830>0x1?void 0x0:_0xdd5830?jr(_0x301d8d,_0x2e97cb):_0x301d8d,_0xb05761=_0x5f1d8c['length']-0x1,_0x2db1d1;_0xb05761>=0x0;_0xb05761--)(_0x2db1d1=_0x5f1d8c[_0xb05761])&&(_0x319576=(_0xdd5830?_0x2db1d1(_0x301d8d,_0x2e97cb,_0x319576):_0x2db1d1(_0x319576))||_0x319576);return _0xdd5830&&_0x319576&&xr(_0x301d8d,_0x2e97cb,_0x319576),_0x319576;},Ae=(_0x1a4808,_0x195417)=>(_0x2090fa,_0x5d5b69)=>_0x195417(_0x2090fa,_0x5d5b69,_0x1a4808);let Ke=class extends a['RxDisposable']{constructor(_0x4608b2,_0x3b9081,_0x1a7a83,_0x311b94,_0x42c57b){const _0x3c7191=_0x49c5a4;super(),this[_0x3c7191(0x13d)]=_0x4608b2,this[_0x3c7191(0x35c)]=_0x3b9081,this['_permissionService']=_0x1a7a83,this[_0x3c7191(0x493)]=_0x311b94,this['_localeService']=_0x42c57b,this[_0x3c7191(0x5b7)](),this[_0x3c7191(0x53f)]();}[_0x49c5a4(0x53f)](){const _0x83d8de=_0x49c5a4,_0x41303a=async _0x4e4229=>{const _0x2a8384=_0x3dfb;(await this['_collaborationSessionService'][_0x2a8384(0x536)](_0x4e4229))[_0x2a8384(0x190)][_0x2a8384(0x3d2)](V['filter'](_0x4b3f89=>_0x4b3f89['eventID']===p[_0x2a8384(0x442)][_0x2a8384(0x4b9)]),V['takeUntil'](this[_0x2a8384(0x148)]))[_0x2a8384(0x2b8)](_0x580f27=>{const _0x1aa18e=_0x2a8384,_0x271ea3=_0x580f27,{reason:_0x1f255e}=_0x271ea3[_0x1aa18e(0x2ab)];this['_injector'][_0x1aa18e(0x17e)](te['IMessageService'])[_0x1aa18e(0x2aa)]({'type':Ie['MessageType'][_0x1aa18e(0x5a4)],'content':this[_0x1aa18e(0x383)]['t'](_0x1aa18e(0x497))+'('+_0x1f255e+')'}),this['_permissionService']['updatePermissionPoint'](new B[(_0x1aa18e(0x36b))](_0x4e4229)['id'],!0x1),this[_0x1aa18e(0x493)][_0x1aa18e(0x4df)](_0x4e4229);});};A[_0x83d8de(0x1e6)](this[_0x83d8de(0x35c)][_0x83d8de(0x3b9)](a['UniverInstanceType'][_0x83d8de(0x50e)]),this[_0x83d8de(0x35c)][_0x83d8de(0x3b9)](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](V[_0x83d8de(0x2ea)](_0x483fb6=>_0x483fb6[_0x83d8de(0x468)]()),V[_0x83d8de(0x10f)](_0x5d317a=>!a[_0x83d8de(0x571)](_0x5d317a)),V[_0x83d8de(0x27e)](this[_0x83d8de(0x148)]))[_0x83d8de(0x2b8)](_0x3510f9=>{_0x41303a(_0x3510f9);});}[_0x49c5a4(0x5b7)](){const _0x586887=_0x49c5a4,_0x34603a=async _0x3393cc=>{const _0x4c2827=_0x3dfb;(await this[_0x4c2827(0x493)]['requireSession'](_0x3393cc))[_0x4c2827(0x190)][_0x4c2827(0x3d2)](V['filter'](_0x3d4fbf=>_0x3d4fbf[_0x4c2827(0x1c0)]===p[_0x4c2827(0x442)]['UPDATE_PERMISSION_OBJ']),V[_0x4c2827(0x27e)](this[_0x4c2827(0x148)]))[_0x4c2827(0x2b8)](_0x86a46e=>{const _0x23a855=_0x4c2827,_0x550ef5=_0x86a46e,{objectId:_0x4e538b}=_0x550ef5['data'],_0x176c31=this['_injector']['get'](Re['SheetPermissionInitController']);_0x4e538b===_0x3393cc?_0x176c31[_0x23a855(0x200)](_0x3393cc):_0x176c31[_0x23a855(0x3ee)](_0x3393cc,_0x4e538b);});};A['merge'](this[_0x586887(0x35c)][_0x586887(0x3b9)](a[_0x586887(0x11e)][_0x586887(0x50e)]),this[_0x586887(0x35c)][_0x586887(0x3b9)](a[_0x586887(0x11e)][_0x586887(0x466)]))[_0x586887(0x3d2)](V[_0x586887(0x2ea)](_0x3ad84e=>_0x3ad84e[_0x586887(0x468)]()),V['filter'](_0x5d160d=>!a[_0x586887(0x571)](_0x5d160d)),V[_0x586887(0x27e)](this[_0x586887(0x148)]))[_0x586887(0x2b8)](_0x148364=>{_0x34603a(_0x148364);});}};Ke=$r([Ae(0x0,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),Ae(0x1,a[_0x49c5a4(0x1ea)]),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x49c5a4(0x435)](exports[_0x49c5a4(0x211)])),Ae(0x4,a[_0x49c5a4(0x435)](a['LocaleService']))],Ke);var Hr=Object[_0x49c5a4(0x119)],kr=Object[_0x49c5a4(0x3ea)],Br=(_0x53b596,_0x5577fa,_0x4922be,_0x592540)=>{for(var _0x5c86f9=_0x592540>0x1?void 0x0:_0x592540?kr(_0x5577fa,_0x4922be):_0x5577fa,_0x340e26=_0x53b596['length']-0x1,_0x2906e7;_0x340e26>=0x0;_0x340e26--)(_0x2906e7=_0x53b596[_0x340e26])&&(_0x5c86f9=(_0x592540?_0x2906e7(_0x5577fa,_0x4922be,_0x5c86f9):_0x2906e7(_0x5c86f9))||_0x5c86f9);return _0x592540&&_0x5c86f9&&Hr(_0x5577fa,_0x4922be,_0x5c86f9),_0x5c86f9;},Jt=(_0x7128d6,_0x4a0811)=>(_0x4ca0f7,_0x5ec33c)=>_0x4a0811(_0x4ca0f7,_0x5ec33c,_0x7128d6);exports[_0x49c5a4(0x2d0)]=class{constructor(_0x12eece,_0x10c813){const _0x5d1610=_0x49c5a4;this[_0x5d1610(0x369)]=_0x12eece,this[_0x5d1610(0x1b4)]=_0x10c813;}async[_0x49c5a4(0x185)](_0x53060f,_0x5a21cf){const _0x2ba2e0=_0x49c5a4;var _0x159eec;const {unitID:_0x2ed034,type:_0x1d652d,revision:_0xfc95f0=0x0}=_0x5a21cf,_0x5b7e9b=this[_0x2ba2e0(0x233)]()+'/'+_0x1d652d+_0x2ba2e0(0x14b)+_0x2ed034+_0x2ba2e0(0x46b)+_0xfc95f0,_0x2fb886=(await this['_httpService'][_0x2ba2e0(0x17e)](_0x5b7e9b))[_0x2ba2e0(0x103)],_0x2d35de=(_0x159eec=_0x2fb886['snapshot'])==null?void 0x0:_0x159eec['workbook'];if(_0x2d35de){const _0x641b35=_0x2d35de==null?void 0x0:_0x2d35de[_0x2ba2e0(0x50b)],_0x3d3e56=p['textEncoder'][_0x2ba2e0(0x58a)](p['b64DecodeUnicode'](_0x641b35));_0x2d35de[_0x2ba2e0(0x50b)]=_0x3d3e56,Object[_0x2ba2e0(0x3bb)](_0x2d35de[_0x2ba2e0(0x29b)])[_0x2ba2e0(0x27b)](([,_0x2384fb])=>{const _0x2d4035=_0x2ba2e0,_0x57b762=_0x2384fb['originalMeta'],_0x48fbe9=p[_0x2d4035(0x120)][_0x2d4035(0x58a)](p[_0x2d4035(0x4ec)](_0x57b762));_0x2384fb[_0x2d4035(0x50b)]=_0x48fbe9;});}return _0x2fb886;}async[_0x49c5a4(0x3c1)](_0x23fd0b,_0x26193b){const _0x58e74a=_0x49c5a4,{unitID:_0x402f25,type:_0x5760fe,blockID:_0x13268d}=_0x26193b,_0x19159d=this['_getAPIPrefix']()+'/'+_0x5760fe+_0x58e74a(0x14b)+_0x402f25+'/block/'+_0x13268d;return(await this['_httpService']['get'](_0x19159d))[_0x58e74a(0x103)];}async[_0x49c5a4(0x522)](_0x2cb880,_0x580479){const _0x38d8ae=_0x49c5a4,{unitID:_0x55910c,type:_0x5c39d0,blockID:_0x4ab9ef}=_0x580479,_0x37f537=this[_0x38d8ae(0x49d)]()+'/block/'+_0x5c39d0+_0x38d8ae(0x14b)+_0x55910c+_0x38d8ae(0x2db)+_0x4ab9ef;return(await this[_0x38d8ae(0x1b4)][_0x38d8ae(0x17e)](_0x37f537))[_0x38d8ae(0x103)];}async[_0x49c5a4(0x1ae)](_0x342fbe,_0x193ef6){const _0x1e9a50=_0x49c5a4,{unitID:_0x35d14b,type:_0x4478f7,from:_0x24de93,to:_0x29156d}=_0x193ef6,_0x65c00c=this[_0x1e9a50(0x49d)]()+'/'+_0x4478f7+'/unit/'+_0x35d14b+_0x1e9a50(0x588)+_0x24de93+_0x1e9a50(0x41f)+_0x29156d;return(await this[_0x1e9a50(0x1b4)]['get'](_0x65c00c))[_0x1e9a50(0x103)];}[_0x49c5a4(0x233)](){const _0x20ca9f=_0x49c5a4;var _0x5dc5c0;return(_0x5dc5c0=this['_configService']['getConfig'](Qt))!=null?_0x5dc5c0:this[_0x20ca9f(0x49d)]();}[_0x49c5a4(0x49d)](){const _0x498a24=_0x49c5a4;var _0x1f784d,_0x138c41;const _0x274958=this['_configService'][_0x498a24(0x162)](Zt),_0xacfd6c=this[_0x498a24(0x369)][_0x498a24(0x162)](ee);return(_0x138c41=(_0x1f784d=_0xacfd6c==null?void 0x0:_0xacfd6c[_0x498a24(0x4f5)])!=null?_0x1f784d:_0x274958)!=null?_0x138c41:Hn;}async[_0x49c5a4(0x399)](_0x6b9685,_0x5ac2c8){const _0x3e1ece=_0x49c5a4,_0x5a3b3d=_0x3e1ece(0x57f)+_0x5ac2c8['type']+_0x3e1ece(0x14b)+_0x5ac2c8['unitID']+_0x3e1ece(0x38d);return(await this[_0x3e1ece(0x1b4)][_0x3e1ece(0x17e)](_0x5a3b3d,{'params':{'resourceId':JSON[_0x3e1ece(0x1f5)](_0x5ac2c8[_0x3e1ece(0x568)])}}))[_0x3e1ece(0x103)];}[_0x49c5a4(0x545)](){const _0x10582b=_0x49c5a4;throw new Error(_0x10582b(0x2ce));}['saveSheetBlock'](){const _0x375c50=_0x49c5a4;throw new Error(_0x375c50(0x2ce));}['saveChangeset'](){const _0x51ae01=_0x49c5a4;throw new Error(_0x51ae01(0x2ce));}[_0x49c5a4(0x437)](){const _0x10d56b=_0x49c5a4;throw new Error(_0x10d56b(0x2ce));}[_0x49c5a4(0x3b0)](){const _0x5f189d=_0x49c5a4;throw new Error(_0x5f189d(0x2ce));}},exports[_0x49c5a4(0x2d0)]=Br([Jt(0x0,a[_0x49c5a4(0x351)]),Jt(0x1,a[_0x49c5a4(0x435)](J[_0x49c5a4(0x4f4)]))],exports[_0x49c5a4(0x2d0)]);var Wr=Object['defineProperty'],Fr=Object[_0x49c5a4(0x3ea)],Vr=(_0x598882,_0x2d1345,_0x25694d,_0xd8968a)=>{const _0x1f450b=_0x49c5a4;for(var _0x1cdd0c=_0xd8968a>0x1?void 0x0:_0xd8968a?Fr(_0x2d1345,_0x25694d):_0x2d1345,_0x345afe=_0x598882[_0x1f450b(0x313)]-0x1,_0x10e4d7;_0x345afe>=0x0;_0x345afe--)(_0x10e4d7=_0x598882[_0x345afe])&&(_0x1cdd0c=(_0xd8968a?_0x10e4d7(_0x2d1345,_0x25694d,_0x1cdd0c):_0x10e4d7(_0x1cdd0c))||_0x1cdd0c);return _0xd8968a&&_0x1cdd0c&&Wr(_0x2d1345,_0x25694d,_0x1cdd0c),_0x1cdd0c;},Ne=(_0x40d689,_0x3b0055)=>(_0x5d5192,_0x56ba0b)=>_0x3b0055(_0x5d5192,_0x56ba0b,_0x40d689);let It=class extends a[_0x49c5a4(0x193)]{constructor(_0x47f852,_0x155f57,_0x39e9cf,_0x69f2f6,_0x18c2b1){const _0x49f986=_0x49c5a4;super(_0x47f852,_0x155f57,_0x39e9cf),this[_0x49f986(0xee)]=_0x69f2f6,this[_0x49f986(0x2eb)]=_0x18c2b1;}['transformUndoRedo'](_0x54db6c,_0x3d2a34){const _0x228a9f=_0x49c5a4,_0x1703dd=this[_0x228a9f(0x26a)](_0x54db6c);if(_0x1703dd)try{const _0x3dd1e2=this['_transformStack'](_0x1703dd,_0x3d2a34);this[_0x228a9f(0x3c9)](_0x54db6c,_0x3dd1e2);}catch(_0x1bda89){this['_logService'][_0x228a9f(0x41d)](_0x228a9f(0x1b9),_0x1bda89),this['_clearUndo'](_0x54db6c);}const _0x12f390=this['_getRedoStack'](_0x54db6c);if(_0x12f390)try{const _0x21423d=this[_0x228a9f(0x40c)](_0x12f390,_0x3d2a34);this[_0x228a9f(0x3b2)](_0x54db6c,_0x21423d);}catch(_0x4713b0){this[_0x228a9f(0x2eb)][_0x228a9f(0x41d)](_0x4713b0),this['_clearRedo'](_0x54db6c);}}[_0x49c5a4(0x260)](_0x3eec85){const _0x5638ed=_0x49c5a4,_0x501dcb=this[_0x5638ed(0x26a)](_0x3eec85);_0x501dcb&&(_0x501dcb[_0x5638ed(0x313)]=0x0,this[_0x5638ed(0x56a)]());}['_clearRedo'](_0x416a5c){const _0x3b94f8=_0x49c5a4,_0x4d4d4c=this[_0x3b94f8(0x4fa)](_0x416a5c);_0x4d4d4c&&(_0x4d4d4c['length']=0x0,this[_0x3b94f8(0x56a)]());}[_0x49c5a4(0x3c9)](_0x3a52e8,_0x514158){const _0x2335e8=_0x49c5a4;this[_0x2335e8(0x48b)]['set'](_0x3a52e8,_0x514158),this['_updateStatus']();}['_substituteRedoStack'](_0x28aea6,_0xedc0da){const _0x201495=_0x49c5a4;this[_0x201495(0x290)][_0x201495(0x384)](_0x28aea6,_0xedc0da),this['_updateStatus']();}[_0x49c5a4(0x40c)](_0x4b0422,_0x38ae98){const _0x107424=_0x49c5a4,_0x512a53=[];let _0x258ec4=_0x38ae98,_0x40aecc=_0x38ae98;for(let _0x52057c=_0x4b0422[_0x107424(0x313)]-0x1;_0x52057c>=0x0;_0x52057c--){const {unitID:_0x4b9b8f,undoMutations:_0x317178,redoMutations:_0x487890}=_0x4b0422[_0x52057c],_0x99e3d8=this[_0x107424(0xee)][_0x107424(0x382)](_0x258ec4,_0x317178),_0x27dc1c=this[_0x107424(0xee)]['transformMutationsWithChangeset'](_0x40aecc,_0x487890);if(p[_0x107424(0x197)](_0x99e3d8)||p[_0x107424(0x197)](_0x27dc1c)){this['_logService'][_0x107424(0x41d)]('[CollaborationUndoRedoService]',_0x107424(0x36d),_0x99e3d8,_0x27dc1c);break;}_0x258ec4=_0x99e3d8['c1Prime'],_0x40aecc=_0x27dc1c[_0x107424(0x529)],_0x512a53[_0x107424(0x1e3)]({'unitID':_0x4b9b8f,'undoMutations':_0x99e3d8[_0x107424(0x4aa)],'redoMutations':_0x27dc1c[_0x107424(0x4aa)]});}return _0x512a53[_0x107424(0x5af)]();}};It=Vr([Ne(0x0,a[_0x49c5a4(0x1ea)]),Ne(0x1,a['ICommandService']),Ne(0x2,a[_0x49c5a4(0x37d)]),Ne(0x3,p[_0x49c5a4(0x169)]),Ne(0x4,a[_0x49c5a4(0x156)])],It);class An extends a['RxDisposable']{constructor(){const _0x3ec87f=_0x49c5a4;super(),I(this,_0x3ec87f(0x1b1)),this[_0x3ec87f(0x1b1)]=A[_0x3ec87f(0x182)](window,'popstate')[_0x3ec87f(0x3d2)](A[_0x3ec87f(0x27e)](this[_0x3ec87f(0x148)]),A[_0x3ec87f(0x3d1)](0x1),A[_0x3ec87f(0x535)](void 0x0));}['setParam'](_0x1a6753,_0x20f9e6,_0x22e389=!0x1){const _0x415c1f=_0x49c5a4,_0x2ca437=new URL(window[_0x415c1f(0x506)][_0x415c1f(0x28b)]);_0x2ca437[_0x415c1f(0x534)][_0x415c1f(0x384)](_0x1a6753,_0x20f9e6),_0x22e389?window['history'][_0x415c1f(0x2ec)]('','',_0x2ca437['toString']()):window['history'][_0x415c1f(0x113)]('','',_0x2ca437[_0x415c1f(0xfb)]());}[_0x49c5a4(0x44f)](_0x2df3b6,_0x120cda=!0x1){const _0x96f65b=_0x49c5a4,_0x142dae=new URL(window[_0x96f65b(0x506)][_0x96f65b(0x28b)]);_0x142dae[_0x96f65b(0x534)][_0x96f65b(0x43c)](_0x2df3b6),_0x120cda?window[_0x96f65b(0x1f2)][_0x96f65b(0x2ec)]('','',_0x142dae[_0x96f65b(0xfb)]()):window[_0x96f65b(0x1f2)]['pushState']('','',_0x142dae[_0x96f65b(0xfb)]());}['getParam'](_0x2856e3){const _0x1c6bf8=_0x49c5a4;var _0x358700;return(_0x358700=new URL(window['location']['href'])['searchParams'][_0x1c6bf8(0x17e)](_0x2856e3))!=null?_0x358700:void 0x0;}}var Nn=Object[_0x49c5a4(0x119)],Gr=Object[_0x49c5a4(0x3ea)],Yr=(_0x556266,_0xbf71ab,_0x41c4c3)=>_0xbf71ab in _0x556266?Nn(_0x556266,_0xbf71ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c4c3}):_0x556266[_0xbf71ab]=_0x41c4c3,Kr=(_0x8e8e11,_0x1a6b4e,_0x32838d,_0xbda426)=>{const _0x45e636=_0x49c5a4;for(var _0x28562d=_0xbda426>0x1?void 0x0:_0xbda426?Gr(_0x1a6b4e,_0x32838d):_0x1a6b4e,_0xd69fdc=_0x8e8e11[_0x45e636(0x313)]-0x1,_0x588f93;_0xd69fdc>=0x0;_0xd69fdc--)(_0x588f93=_0x8e8e11[_0xd69fdc])&&(_0x28562d=(_0xbda426?_0x588f93(_0x1a6b4e,_0x32838d,_0x28562d):_0x588f93(_0x28562d))||_0x28562d);return _0xbda426&&_0x28562d&&Nn(_0x1a6b4e,_0x32838d,_0x28562d),_0x28562d;},He=(_0x18ea59,_0x1763e0)=>(_0x589084,_0x581bf4)=>_0x1763e0(_0x589084,_0x581bf4,_0x18ea59),qr=(_0x113e2f,_0x60700a,_0x7d37b1)=>Yr(_0x113e2f,_0x60700a+'',_0x7d37b1);const zr=_0x49c5a4(0x2be);exports[_0x49c5a4(0x2fa)]=class extends a[_0x49c5a4(0x199)]{constructor(_0x3aabba=Xn,_0x26c773,_0x35a13d,_0x2b6ee1,_0x186142){const _0x7844d0=_0x49c5a4;super(),this[_0x7844d0(0x44b)]=_0x3aabba,this['_logService']=_0x26c773,this[_0x7844d0(0x181)]=_0x35a13d,this[_0x7844d0(0x13d)]=_0x2b6ee1,this[_0x7844d0(0x369)]=_0x186142;const {..._0x4f38bb}=this[_0x7844d0(0x44b)];this['_configService'][_0x7844d0(0x5b3)](ee,_0x4f38bb);}['onStarting'](){const _0x56bee0=_0x49c5a4;this[_0x56bee0(0x363)](),this['_initDependencies']();}['onReady'](){const _0x5b5f51=_0x49c5a4;a['touchDependencies'](this[_0x5b5f51(0x13d)],[[Ve]]);}[_0x49c5a4(0x28d)](){const _0x2c0477=_0x49c5a4;this[_0x2c0477(0x1eb)]();}[_0x49c5a4(0x363)](){const _0x257f01=_0x49c5a4;var _0x30999b,_0xe9cd9d,_0x40422c,_0x2e70e2;this[_0x257f01(0x13d)][_0x257f01(0x23e)](a[_0x257f01(0x55e)])&&this[_0x257f01(0x2eb)][_0x257f01(0x41d)]('[UniverCollaborationClientPlugin]',_0x257f01(0x5a6));const _0x360194=[[a['IUndoRedoService'],{'useClass':It}],[exports[_0x257f01(0x211)]],[Ot],[wt,{'useClass':An}],[exports['MemberService']],[exports[_0x257f01(0x29e)]],[J[_0x257f01(0x25a)]],[Be],[Fe],[ke],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0xe9cd9d=(_0x30999b=this[_0x257f01(0x44b)])==null?void 0x0:_0x30999b['socketService'])!=null?_0xe9cd9d:exports[_0x257f01(0xfd)]}],[p[_0x257f01(0x49e)],{'useClass':exports[_0x257f01(0x2d0)]}],[a[_0x257f01(0x22e)],{'useClass':exports[_0x257f01(0x53c)]}],[ne[_0x257f01(0x2d9)],{'useClass':exports[_0x257f01(0x52a)]}],[exports['CollaborationController']],[exports[_0x257f01(0x21a)]],[exports[_0x257f01(0x458)]],[Ve],[De]];(_0x40422c=this[_0x257f01(0x44b)])!=null&&_0x40422c[_0x257f01(0x164)]&&_0x360194['push']([qe,{'useClass':Di}]),a['registerDependencies'](this[_0x257f01(0x13d)],a[_0x257f01(0x276)](_0x360194,(_0x2e70e2=this[_0x257f01(0x44b)])==null?void 0x0:_0x2e70e2[_0x257f01(0x10a)]));}[_0x49c5a4(0x1eb)](){const _0x519021=_0x49c5a4;this[_0x519021(0x5ad)](this[_0x519021(0x181)]['registerRenderModule'](a[_0x519021(0x11e)][_0x519021(0x466)],[mt])),this[_0x519021(0x5ad)](this[_0x519021(0x181)][_0x519021(0x101)](a[_0x519021(0x11e)][_0x519021(0x50e)],[gt]));}[_0x49c5a4(0x55b)](){const _0x5555e6=_0x49c5a4;var _0x5f18ce,_0x6fe52a;this[_0x5555e6(0x13d)]['get'](J['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':J[_0x5555e6(0x312)]({'maxParallel':0x6})}),(_0x5f18ce=this[_0x5555e6(0x44b)])!=null&&_0x5f18ce[_0x5555e6(0x1df)]||this[_0x5555e6(0x13d)]['get'](exports['LocalCacheService'])[_0x5555e6(0x365)](),(_0x6fe52a=this['_config'])!=null&&_0x6fe52a[_0x5555e6(0x4a6)]&&a[_0x5555e6(0x1c3)](this[_0x5555e6(0x13d)],[[Ge]]),a[_0x5555e6(0x1c3)](this[_0x5555e6(0x13d)],[[Ye],[De],[exports[_0x5555e6(0x21a)]],[exports[_0x5555e6(0x411)]],[exports[_0x5555e6(0x458)]],[Ke]]);}},qr(exports['UniverCollaborationClientPlugin'],'pluginName',zr),exports[_0x49c5a4(0x2fa)]=Kr([a[_0x49c5a4(0x4a2)](p[_0x49c5a4(0x3a7)],J[_0x49c5a4(0x1d2)]),He(0x1,a[_0x49c5a4(0x156)]),He(0x2,K['IRenderManagerService']),He(0x3,a[_0x49c5a4(0x435)](a[_0x49c5a4(0x3d8)])),He(0x4,a[_0x49c5a4(0x351)])],exports['UniverCollaborationClientPlugin']),exports[_0x49c5a4(0x2d5)]=Rn,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=on,exports[_0x49c5a4(0x243)]=en,exports[_0x49c5a4(0x4dc)]=q,exports[_0x49c5a4(0x530)]=Tn,exports[_0x49c5a4(0x249)]=Tt,exports[_0x49c5a4(0x1ac)]=tn,exports[_0x49c5a4(0x3e9)]=Ct,exports[_0x49c5a4(0x515)]=bt,exports['IURLService']=wt,exports['LOCAL_CACHE_INTERVAL_KEY']=rn,exports['LOGIN_URL_KEY']=an,exports[_0x49c5a4(0x35f)]=sn,exports[_0x49c5a4(0x3ef)]=kn,exports[_0x49c5a4(0x4b1)]=Zt,exports[_0x49c5a4(0x429)]=Qt,exports[_0x49c5a4(0x481)]=se,exports[_0x49c5a4(0x457)]=pn,exports['WebURLService']=An,exports['deserializeToCombResponse']=hn,exports['serializeCombRequest']=_n;