@univerjs-pro/collaboration-client 0.5.0-nightly.202411120616 → 0.5.0-nightly.202411121606

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 _0x54516d=_0xe852;(function(_0x5b820e,_0x228bd6){const _0x38c659=_0xe852,_0x17806e=_0x5b820e();while(!![]){try{const _0x2df6f3=parseInt(_0x38c659(0x2d8))/0x1+-parseInt(_0x38c659(0x3cd))/0x2+-parseInt(_0x38c659(0x541))/0x3*(parseInt(_0x38c659(0x4a1))/0x4)+parseInt(_0x38c659(0x326))/0x5+parseInt(_0x38c659(0x3ae))/0x6+-parseInt(_0x38c659(0x4a4))/0x7*(-parseInt(_0x38c659(0x1d4))/0x8)+-parseInt(_0x38c659(0x5ce))/0x9*(parseInt(_0x38c659(0x28d))/0xa);if(_0x2df6f3===_0x228bd6)break;else _0x17806e['push'](_0x17806e['shift']());}catch(_0xeaee63){_0x17806e['push'](_0x17806e['shift']());}}}(_0x47dd,0x7ecbd));var Ln=Object['defineProperty'],xn=(_0x352df8,_0x4444f0,_0x22aaf1)=>_0x4444f0 in _0x352df8?Ln(_0x352df8,_0x4444f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22aaf1}):_0x352df8[_0x4444f0]=_0x22aaf1,I=(_0x3726a5,_0x428124,_0x31464a)=>xn(_0x3726a5,typeof _0x428124!='symbol'?_0x428124+'':_0x428124,_0x31464a);Object[_0x54516d(0x461)](exports,Symbol[_0x54516d(0x26c)],{'value':_0x54516d(0x37a)});const a=require(_0x54516d(0x4f7)),A=require(_0x54516d(0x32b)),V=require('rxjs/operators'),ge=require(_0x54516d(0x361)),ee=require(_0x54516d(0x5ad)),Z=require('@univerjs/network'),S=require(_0x54516d(0x5e2)),jn=require(_0x54516d(0x1d1)),J=require(_0x54516d(0x36f)),k=require(_0x54516d(0x3ba)),K=require('@univerjs/engine-render'),ye=require('@univerjs/docs'),ne=require(_0x54516d(0x3c7)),Pt=require(_0x54516d(0x355)),Re=require(_0x54516d(0x2bd)),ae=require(_0x54516d(0x594)),$n=require(_0x54516d(0x302)),Zt='SNAPSHOT_SERVER_URL_KEY',Hn='/universer-api/snapshot',Qt='SNAPSHOT_URL_KEY',Bn=_0x54516d(0x3fe),kn=0x7d0,en=_0x54516d(0x5af),Wn='ws://127.0.0.1:8000/universer-api/comb/connect',tn='HEARTBEAT_INTERVAL',Fn=0x7530,Ct=_0x54516d(0x612),nn=0x4e20,Vn=0x4e20,sn=_0x54516d(0x16d),Gn=0x3,rn='LOCAL_CACHE_INTERVAL',Yn=0x3e8,on=_0x54516d(0x51b),Kn=_0x54516d(0x5e9),an=_0x54516d(0x482),qn=_0x54516d(0x576);var cn=(_0xd9adbb=>(_0xd9adbb[_0xd9adbb[_0x54516d(0x1f9)]=0x0]=_0x54516d(0x1f9),_0xd9adbb[_0xd9adbb['OK']=0x1]='OK',_0xd9adbb[_0xd9adbb[_0x54516d(0x39c)]=0x2]=_0x54516d(0x39c),_0xd9adbb[_0xd9adbb[_0x54516d(0x20f)]=0x3]='PERMISSION_DENIED',_0xd9adbb[_0xd9adbb[_0x54516d(0x33b)]=0x4]='NOT_FOUND',_0xd9adbb[_0xd9adbb[_0x54516d(0x5c8)]=0x5]=_0x54516d(0x5c8),_0xd9adbb[_0xd9adbb[_0x54516d(0x2fb)]=0x6]=_0x54516d(0x2fb),_0xd9adbb[_0xd9adbb[_0x54516d(0x3bd)]=0x7]=_0x54516d(0x3bd),_0xd9adbb[_0xd9adbb[_0x54516d(0x24c)]=0x8]=_0x54516d(0x24c),_0xd9adbb[_0xd9adbb['COMPLETION_FINISHED']=0x9]=_0x54516d(0x520),_0xd9adbb[_0xd9adbb['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x54516d(0x235),_0xd9adbb[_0xd9adbb['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x54516d(0x2ec),_0xd9adbb[_0xd9adbb['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x54516d(0x5fd),_0xd9adbb[_0xd9adbb[_0x54516d(0x237)]=0x1773]=_0x54516d(0x237),_0xd9adbb[_0xd9adbb[_0x54516d(0x36b)]=0x1b59]=_0x54516d(0x36b),_0xd9adbb[_0xd9adbb[_0x54516d(0x27f)]=0x1b5a]=_0x54516d(0x27f),_0xd9adbb[_0xd9adbb[_0x54516d(0x295)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xd9adbb[_0xd9adbb[_0x54516d(0x4d2)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xd9adbb[_0xd9adbb['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0xd9adbb[_0xd9adbb[_0x54516d(0x5e0)]=0x1f41]=_0x54516d(0x5e0),_0xd9adbb[_0xd9adbb[_0x54516d(0x470)]=0x2329]=_0x54516d(0x470),_0xd9adbb[_0xd9adbb['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xd9adbb[_0xd9adbb[_0x54516d(0x572)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xd9adbb[_0xd9adbb['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xd9adbb[_0xd9adbb[_0x54516d(0x5d7)]=0x232d]=_0x54516d(0x5d7),_0xd9adbb[_0xd9adbb[_0x54516d(0x200)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xd9adbb[_0xd9adbb[_0x54516d(0x412)]=0x2712]=_0x54516d(0x412),_0xd9adbb[_0xd9adbb['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x54516d(0x270),_0xd9adbb[_0xd9adbb[_0x54516d(0x2cc)]=0x2714]=_0x54516d(0x2cc),_0xd9adbb[_0xd9adbb[_0x54516d(0x3f3)]=-0x1]=_0x54516d(0x3f3),_0xd9adbb))(cn||{}),ie=(_0xa1c4e=>(_0xa1c4e[_0xa1c4e[_0x54516d(0x3d4)]=0x0]=_0x54516d(0x3d4),_0xa1c4e[_0xa1c4e['UNIVER_DOC']=0x1]=_0x54516d(0x60e),_0xa1c4e[_0xa1c4e[_0x54516d(0x299)]=0x2]=_0x54516d(0x299),_0xa1c4e[_0xa1c4e[_0x54516d(0x2e8)]=0x3]='UNIVER_SLIDE',_0xa1c4e[_0xa1c4e[_0x54516d(0x3ad)]=0x4]='UNIVER_PROJECT',_0xa1c4e[_0xa1c4e[_0x54516d(0x3f3)]=-0x1]='UNRECOGNIZED',_0xa1c4e))(ie||{}),G=(_0x49d7d9=>(_0x49d7d9[_0x49d7d9['UNKNOWN_CMD']=0x0]=_0x54516d(0x49b),_0x49d7d9[_0x49d7d9['HELLO']=0x1]=_0x54516d(0x1d7),_0x49d7d9[_0x49d7d9['JOIN']=0x2]=_0x54516d(0x2e0),_0x49d7d9[_0x49d7d9['LEAVE']=0x3]=_0x54516d(0x259),_0x49d7d9[_0x49d7d9['INGEST']=0x4]=_0x54516d(0x2f7),_0x49d7d9[_0x49d7d9[_0x54516d(0x25f)]=0x5]=_0x54516d(0x25f),_0x49d7d9[_0x49d7d9[_0x54516d(0x54c)]=0x6]=_0x54516d(0x54c),_0x49d7d9[_0x49d7d9[_0x54516d(0x3f3)]=-0x1]='UNRECOGNIZED',_0x49d7d9))(G||{}),Et=(_0xb6291=>(_0xb6291[_0xb6291['UNKNOWN_CODE']=0x0]=_0x54516d(0x3e5),_0xb6291[_0xb6291['OK']=0x1]='OK',_0xb6291[_0xb6291['FAIL']=0x2]='FAIL',_0xb6291[_0xb6291[_0x54516d(0x3f3)]=-0x1]=_0x54516d(0x3f3),_0xb6291))(Et||{}),ln=(_0x5f2a16=>(_0x5f2a16[_0x5f2a16['Undefined']=0x0]=_0x54516d(0x204),_0x5f2a16[_0x5f2a16[_0x54516d(0x502)]=0x1]=_0x54516d(0x502),_0x5f2a16[_0x5f2a16[_0x54516d(0x460)]=0x2]='HttpExport',_0x5f2a16[_0x5f2a16[_0x54516d(0x3a0)]=0x3]=_0x54516d(0x3a0),_0x5f2a16[_0x5f2a16[_0x54516d(0x177)]=0x4]='UnitSnapshot',_0x5f2a16[_0x5f2a16[_0x54516d(0x3f3)]=-0x1]=_0x54516d(0x3f3),_0x5f2a16))(ln||{});const te='collaboration-client.config',zn={};function hn(_0x572c59){const _0x3ae7cf=_0x54516d;var _0x5be96b,_0x26e992,_0x33759b,_0x36d11a,_0x4cc4b1;const _0x4b03a4=_0x572c59[_0x3ae7cf(0x547)],_0x4b005e=JSON[_0x3ae7cf(0x2a0)](_0x4b03a4);switch(_0x4b005e[_0x3ae7cf(0x263)]){case G[_0x3ae7cf(0x25f)]:case G[_0x3ae7cf(0x1d7)]:{const _0x3fb103=_0x4b005e[_0x3ae7cf(0x4a7)];return{..._0x4b005e,'data':_0x3fb103,'cmd':_0x4b005e[_0x3ae7cf(0x263)]};}case G[_0x3ae7cf(0x2e0)]:{const _0x284ff5=_0x4b005e[_0x3ae7cf(0x581)];return{..._0x4b005e,'data':_0x284ff5,'cmd':_0x4b005e[_0x3ae7cf(0x263)]};}case G[_0x3ae7cf(0x54c)]:{const _0x4a9342=_0x4b005e[_0x3ae7cf(0x596)];switch(_0x4a9342['eventID']){case S[_0x3ae7cf(0x5de)]['PERMISSION_REJ']:return{..._0x4b005e,'data':{..._0x4a9342,'data':(_0x5be96b=_0x4a9342[_0x3ae7cf(0x30d)])==null?void 0x0:_0x5be96b['cs']},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x5b3)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':(_0x26e992=_0x4a9342[_0x3ae7cf(0x3d1)])==null?void 0x0:_0x26e992['cs']},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x33c)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':(_0x33759b=_0x4a9342[_0x3ae7cf(0x29c)])==null?void 0x0:_0x33759b['cs']},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x477)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':(_0x36d11a=_0x4a9342['csRejEvent'])==null?void 0x0:_0x36d11a['cs']},'cmd':_0x4b005e['cmd']};case S['CollaborationEvent'][_0x3ae7cf(0x1b8)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':(_0x4cc4b1=_0x4a9342[_0x3ae7cf(0x402)])==null?void 0x0:_0x4cc4b1['cs']},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x485)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x41b)]},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x4c6)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x46c)]},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x58b)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x35b)]},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S[_0x3ae7cf(0x5de)]['LIVESHARE_NEW_HOST']:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x2ff)]},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)]['LIVESHARE_FETCH_OPERATIONS']:case S['CollaborationEvent'][_0x3ae7cf(0x512)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x51c)]},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x5a4)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x2ff)]},'cmd':_0x4b005e['cmd']};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x191)]:return{..._0x4b005e,'data':_0x4a9342,'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S['CollaborationEvent'][_0x3ae7cf(0x32d)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x41d)]},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x2d4)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x55f)]},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};case S[_0x3ae7cf(0x5de)][_0x3ae7cf(0x325)]:return{..._0x4b005e,'data':{..._0x4a9342,'data':_0x4a9342[_0x3ae7cf(0x2a9)]},'cmd':_0x4b005e[_0x3ae7cf(0x263)]};default:return _0x4b005e;}}default:return _0x4b005e;}}function _n(_0x552190){const _0x354077=_0x54516d;switch(_0x552190[_0x354077(0x263)]){case G['HEARTBEAT']:case G['HELLO']:return JSON['stringify']({'cmd':_0x552190['cmd'],'routeKey':_0x552190[_0x354077(0x43b)]});case G[_0x354077(0x2f7)]:{let _0x4df7ff;switch(_0x552190[_0x354077(0x547)][_0x354077(0x4aa)]){case S[_0x354077(0x5de)][_0x354077(0x485)]:{_0x4df7ff={'eventID':S['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x552190['data'][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)][_0x354077(0x58b)]:{_0x4df7ff={'eventID':S[_0x354077(0x5de)][_0x354077(0x58b)],'leaveEvent':_0x552190['data'][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)][_0x354077(0x4c6)]:{_0x4df7ff={'eventID':S['CollaborationEvent'][_0x354077(0x4c6)],'joinEvent':_0x552190[_0x354077(0x547)][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)][_0x354077(0x4f9)]:{_0x4df7ff={'eventID':S[_0x354077(0x5de)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x552190[_0x354077(0x547)][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)][_0x354077(0x512)]:{_0x4df7ff={'eventID':S[_0x354077(0x5de)][_0x354077(0x512)],'liveShareOperation':_0x552190[_0x354077(0x547)][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)][_0x354077(0x5a4)]:{_0x4df7ff={'eventID':S['CollaborationEvent'][_0x354077(0x5a4)],'liveShareTerminate':_0x552190[_0x354077(0x547)][_0x354077(0x547)]};break;}case S['CollaborationEvent'][_0x354077(0x5a5)]:{_0x4df7ff={'eventID':S[_0x354077(0x5de)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x552190[_0x354077(0x547)][_0x354077(0x547)]};break;}case S[_0x354077(0x5de)]['LIVESHARE_FETCH_OPERATIONS']:{_0x4df7ff={'eventID':S[_0x354077(0x5de)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x4df7ff={'eventID':_0x552190[_0x354077(0x547)][_0x354077(0x4aa)]};}return JSON[_0x354077(0x4c1)]({'cmd':_0x552190[_0x354077(0x263)],'routeKey':_0x552190[_0x354077(0x43b)],'collaMsg':_0x4df7ff});}case G[_0x354077(0x2e0)]:return JSON[_0x354077(0x4c1)]({'cmd':_0x552190[_0x354077(0x263)],'routeKey':_0x552190[_0x354077(0x43b)],'joinReq':_0x552190[_0x354077(0x547)]});case G['LEAVE']:return JSON[_0x354077(0x4c1)]({'cmd':_0x552190['cmd'],'routeKey':_0x552190[_0x354077(0x43b)],'leaveReq':_0x552190['data']});default:throw new Error(_0x354077(0x3cc));}}var Xn=Object[_0x54516d(0x461)],Jn=Object['getOwnPropertyDescriptor'],Zn=(_0x33dd8a,_0x578bc7,_0x432ad3,_0x4879bd)=>{const _0x403ab0=_0x54516d;for(var _0xc5f924=_0x4879bd>0x1?void 0x0:_0x4879bd?Jn(_0x578bc7,_0x432ad3):_0x578bc7,_0x52e484=_0x33dd8a[_0x403ab0(0x5e8)]-0x1,_0x5df242;_0x52e484>=0x0;_0x52e484--)(_0x5df242=_0x33dd8a[_0x52e484])&&(_0xc5f924=(_0x4879bd?_0x5df242(_0x578bc7,_0x432ad3,_0xc5f924):_0x5df242(_0xc5f924))||_0xc5f924);return _0x4879bd&&_0xc5f924&&Xn(_0x578bc7,_0x432ad3,_0xc5f924),_0xc5f924;},we=(_0x4504d2,_0x26b638)=>(_0x18e07b,_0x4a3976)=>_0x26b638(_0x18e07b,_0x4a3976,_0x4504d2);const bt=a[_0x54516d(0x528)](_0x54516d(0x4b6));function Qn(_0x11f89c,_0x89f412,_0x214406){const _0x361c47=_0x54516d;return _0x11f89c+'/'+_0x89f412+'/unit/'+_0x214406+_0x361c47(0x1af);}exports[_0x54516d(0x418)]=class extends a[_0x54516d(0x25e)]{constructor(_0x1309e2,_0x4a15ce,_0x5791dd,_0x1a4924,_0x3439eb){const _0x5cc681=_0x54516d;super(),this['_http']=_0x1309e2,this['_ws']=_0x4a15ce,this[_0x5cc681(0x2a3)]=_0x5791dd,this[_0x5cc681(0x241)]=_0x1a4924,this[_0x5cc681(0x53b)]=_0x3439eb;}[_0x54516d(0x290)](_0x428c2c){const _0x4d43eb=_0x54516d,_0x39cd4d=this[_0x4d43eb(0x264)][_0x4d43eb(0x290)](_0x428c2c);if(!_0x39cd4d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4006c1=new a[(_0x4d43eb(0x1b5))](),_0x512d0b=new A[(_0x4d43eb(0x465))]();_0x4006c1[_0x4d43eb(0x2ba)](_0x39cd4d[_0x4d43eb(0x397)][_0x4d43eb(0x4d6)](_0x414f53=>_0x512d0b[_0x4d43eb(0x4bd)](_0x414f53))),_0x4006c1['add'](a[_0x4d43eb(0x562)](()=>_0x512d0b[_0x4d43eb(0x28e)]()));const _0x191694=new A[(_0x4d43eb(0x465))]();_0x4006c1[_0x4d43eb(0x2ba)](_0x39cd4d[_0x4d43eb(0x534)][_0x4d43eb(0x4d6)](_0x424291=>_0x191694[_0x4d43eb(0x4bd)](_0x424291))),_0x4006c1[_0x4d43eb(0x2ba)](a[_0x4d43eb(0x562)](()=>_0x191694[_0x4d43eb(0x28e)]()));const _0x42a783=new A[(_0x4d43eb(0x465))]();_0x4006c1[_0x4d43eb(0x2ba)](_0x39cd4d[_0x4d43eb(0x40e)][_0x4d43eb(0x4d6)](_0x8131dc=>{const _0x520e4d=hn(_0x8131dc);_0x42a783['next'](_0x520e4d);})),_0x4006c1['add'](a[_0x4d43eb(0x562)](()=>_0x42a783[_0x4d43eb(0x28e)]()));let _0x42682a;const _0x27f62a=()=>{const _0x3bb556=_0x4d43eb;_0x191694[_0x3bb556(0x4bd)](new Event(_0x3bb556(0x443))),_0x512d0b[_0x3bb556(0x4bd)](new CloseEvent('connection\x20error')),_0x42682a[_0x3bb556(0x575)]();};return _0x42682a={'memberID':'','close$':_0x512d0b['asObservable'](),'error$':_0x191694[_0x4d43eb(0x1a1)](),'open$':_0x39cd4d[_0x4d43eb(0x1a6)],'message$':_0x42a783['asObservable'](),'send':_0x2b242d=>{const _0x3edd2d=_0x4d43eb;if(_0x2b242d[_0x3edd2d(0x263)]===G['INGEST']){if(_0x2b242d[_0x3edd2d(0x547)][_0x3edd2d(0x4aa)]===S[_0x3edd2d(0x5de)][_0x3edd2d(0x3e6)]){this['_submitChangeset'](_0x42682a,_0x2b242d[_0x3edd2d(0x547)])[_0x3edd2d(0x618)](_0x293686=>{const _0xc12f8=_0x3edd2d;this[_0xc12f8(0x241)][_0xc12f8(0x29f)](_0x293686),_0x27f62a();});return;}if(_0x2b242d['data'][_0x3edd2d(0x4aa)]===S['CollaborationEvent']['FETCH_MISSING']){const _0x308bd5=_0x2b242d[_0x3edd2d(0x547)];this['_fetchMissChangesets'](_0x308bd5)[_0x3edd2d(0x182)](_0x12a6b2=>{const _0x1ffe55=_0x3edd2d;_0x42a783[_0x1ffe55(0x4bd)]({'cmd':G['RECV'],'code':Et['OK'],'routeKey':_0x308bd5['data'][_0x1ffe55(0x351)],'routeType':'','data':{'eventID':S['CollaborationEvent'][_0x1ffe55(0x5b0)],'data':{'changesets':_0x12a6b2}}});})[_0x3edd2d(0x618)](_0x5a699c=>{const _0x5030a1=_0x3edd2d;this['_logService'][_0x5030a1(0x29f)](_0x5a699c),_0x27f62a();});return;}}_0x39cd4d[_0x3edd2d(0x43c)](_n(_0x2b242d));},'close':()=>{const _0x3e0b71=_0x4d43eb;_0x39cd4d[_0x3e0b71(0x575)](),_0x4006c1[_0x3e0b71(0x417)]();}},_0x42682a;}async['_submitChangeset'](_0x174515,_0x216b8d){const _0xc802be=_0x54516d;var _0x23ee9c,_0x37593c;const {unitType:_0x305bfe,unitID:_0x478f85,changeset:_0x12971b}=_0x216b8d[_0xc802be(0x547)],_0x3ffc72={'unitID':_0x478f85,'memberID':_0x174515[_0xc802be(0x24b)],'type':_0x305bfe,'changeset':S['parseChangesetToProtocol'](_0x12971b)},_0x4e2bbf=this[_0xc802be(0x2a3)][_0xc802be(0x21d)](on),_0x40a069=this['_configService'][_0xc802be(0x21d)](te),_0x1b556a=Qn((_0x37593c=(_0x23ee9c=_0x40a069==null?void 0x0:_0x40a069[_0xc802be(0x21e)])!=null?_0x23ee9c:_0x4e2bbf)!=null?_0x37593c:Kn,_0x305bfe,_0x478f85);try{await this[_0xc802be(0x24d)][_0xc802be(0x486)](_0x1b556a,{'body':_0x3ffc72});}catch(_0xe831b2){throw this[_0xc802be(0x241)][_0xc802be(0x29f)](_0xc802be(0x316),_0xc802be(0x3e3)),_0xe831b2;}}async[_0x54516d(0x5a8)](_0x415b29){const _0x433e68=_0x54516d,{unitID:_0x449740,from:_0x26d63b,to:_0x38fcf0,unitType:_0x4ceaa3}=_0x415b29[_0x433e68(0x547)];return(await this[_0x433e68(0x53b)][_0x433e68(0x565)]({'metadata':void 0x0},{'unitID':_0x449740,'type':_0x4ceaa3,'from':_0x26d63b,'to':_0x38fcf0}))[_0x433e68(0x4e5)];}},exports['CollaborationSocketService']=Zn([we(0x0,a['Inject'](Z[_0x54516d(0x180)])),we(0x1,a[_0x54516d(0x573)](Z[_0x54516d(0x431)])),we(0x2,a['IConfigService']),we(0x3,a['ILogService']),we(0x4,S[_0x54516d(0x4e0)])],exports[_0x54516d(0x418)]);const ei=_0x54516d(0x16f);function ti(_0x4ba24f){const _0x44ad56=_0x54516d;return JSON['stringify'](_0x4ba24f)[_0x44ad56(0x5e8)];}class Tt{constructor(){const _0x5d2bc7=_0x54516d;I(this,_0x5d2bc7(0x26a),new A['Subject']()),I(this,'commentUpdate$',this[_0x5d2bc7(0x26a)][_0x5d2bc7(0x1a1)]());}[_0x54516d(0x451)](_0x24ed42){const _0x429d0d=_0x54516d;this[_0x429d0d(0x26a)][_0x429d0d(0x4bd)](_0x24ed42);}}var ni=Object['defineProperty'],ii=Object[_0x54516d(0x363)],si=(_0x151033,_0x30128,_0x53f675,_0x29fdb1)=>{const _0x5065d8=_0x54516d;for(var _0xe9768d=_0x29fdb1>0x1?void 0x0:_0x29fdb1?ii(_0x30128,_0x53f675):_0x30128,_0x52995c=_0x151033[_0x5065d8(0x5e8)]-0x1,_0x4d04b1;_0x52995c>=0x0;_0x52995c--)(_0x4d04b1=_0x151033[_0x52995c])&&(_0xe9768d=(_0x29fdb1?_0x4d04b1(_0x30128,_0x53f675,_0xe9768d):_0x4d04b1(_0xe9768d))||_0xe9768d);return _0x29fdb1&&_0xe9768d&&ni(_0x30128,_0x53f675,_0xe9768d),_0xe9768d;},Ut=(_0x2259ca,_0x36c484)=>(_0x9cd4c3,_0x440283)=>_0x36c484(_0x9cd4c3,_0x440283,_0x2259ca);exports[_0x54516d(0x3a8)]=class extends a['Disposable']{constructor(_0x51c75b,_0x38f847){const _0x42267a=_0x54516d;super(),I(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x51c75b,this[_0x42267a(0x2f3)]=_0x38f847,this[_0x42267a(0x55b)](a['toDisposable'](A[_0x42267a(0x349)](this[_0x42267a(0x228)][_0x42267a(0x2f8)](a[_0x42267a(0x2f2)][_0x42267a(0x299)])[_0x42267a(0x5f2)](V['map'](_0x1495dd=>_0x1495dd[_0x42267a(0x2c5)]())),this[_0x42267a(0x228)]['getTypeOfUnitDisposed$'](a[_0x42267a(0x2f2)][_0x42267a(0x60e)])[_0x42267a(0x5f2)](V['map'](_0x4bc7a6=>_0x4bc7a6[_0x42267a(0x2c5)]())),this[_0x42267a(0x228)][_0x42267a(0x2f8)](a[_0x42267a(0x2f2)][_0x42267a(0x2e8)])[_0x42267a(0x5f2)](V['map'](_0x171111=>_0x171111[_0x42267a(0x2c5)]())))[_0x42267a(0x4d6)](_0x5ddc03=>this[_0x42267a(0x210)](_0x5ddc03)))));}[_0x54516d(0x372)](_0x2de5a0){const _0x412aee=_0x54516d;this[_0x412aee(0x2f3)]['setCurrentUser'](_0x2de5a0);}[_0x54516d(0x496)](){return this['_userManagerService']['getCurrentUser']();}[_0x54516d(0x364)](_0x260508,_0x3abd24){const _0x282617=_0x54516d;let _0x4daf88=this[_0x282617(0x4ca)]['get'](_0x260508);_0x4daf88||(_0x4daf88=new ri(),this['_roomMembers'][_0x282617(0x36d)](_0x260508,_0x4daf88)),_0x4daf88[_0x282617(0x364)](_0x3abd24);}[_0x54516d(0x328)](_0x41e5ad,_0x1913b4){const _0x1b2084=_0x54516d,_0x362d7a=this['_roomMembers'][_0x1b2084(0x3b1)](_0x41e5ad);_0x362d7a&&_0x362d7a[_0x1b2084(0x328)](_0x1913b4);}['getRoom'](_0xff65e8){const _0x1fb6d7=_0x54516d;return this[_0x1fb6d7(0x4ca)][_0x1fb6d7(0x3b1)](_0xff65e8);}[_0x54516d(0x2d0)](_0x3a7d26,_0x102951){const _0x13d223=_0x54516d,_0x14151d=this[_0x13d223(0x4ca)][_0x13d223(0x3b1)](_0x3a7d26);if(_0x14151d)return _0x14151d[_0x13d223(0x2d0)](_0x102951);}[_0x54516d(0x210)](_0x466bee){const _0x5faa99=_0x54516d,_0x25878b=this['_roomMembers'][_0x5faa99(0x3b1)](_0x466bee);_0x25878b&&(_0x25878b[_0x5faa99(0x417)](),this[_0x5faa99(0x4ca)]['delete'](_0x466bee));}['dispose'](){const _0x125153=_0x54516d;this[_0x125153(0x4ca)][_0x125153(0x1ba)](_0xcec38d=>_0xcec38d['dispose']()),this[_0x125153(0x4ca)][_0x125153(0x202)]();}},exports['MemberService']=si([Ut(0x0,a[_0x54516d(0x4e2)]),Ut(0x1,a['Inject'](a['UserManagerService']))],exports[_0x54516d(0x3a8)]);class ri extends a[_0x54516d(0x25e)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x54516d(0x417)](){const _0x46219f=_0x54516d;this[_0x46219f(0x5c5)][_0x46219f(0x202)]();}[_0x54516d(0x364)](_0xb13769){const _0x24a3a5=_0x54516d;this['_members'][_0x24a3a5(0x36d)](_0xb13769[_0x24a3a5(0x24b)],_0xb13769);}['removeMember'](_0x264e19){const _0x1bc175=_0x54516d;this[_0x1bc175(0x5c5)]['delete'](_0x264e19);}['getMember'](_0x3192bc){const _0x2485b9=_0x54516d;return this['_members'][_0x2485b9(0x3b1)](_0x3192bc);}[_0x54516d(0x3fd)](){const _0x3e5b7a=_0x54516d;return Array[_0x3e5b7a(0x36a)](this[_0x3e5b7a(0x5c5)][_0x3e5b7a(0x221)]());}}var oi=Object[_0x54516d(0x461)],ai=Object['getOwnPropertyDescriptor'],ci=(_0x5547da,_0x19fbc4,_0x3a2846,_0x48dbf8)=>{const _0x54b3a9=_0x54516d;for(var _0x1da22e=_0x48dbf8>0x1?void 0x0:_0x48dbf8?ai(_0x19fbc4,_0x3a2846):_0x19fbc4,_0x5563c2=_0x5547da[_0x54b3a9(0x5e8)]-0x1,_0x1a2e93;_0x5563c2>=0x0;_0x5563c2--)(_0x1a2e93=_0x5547da[_0x5563c2])&&(_0x1da22e=(_0x48dbf8?_0x1a2e93(_0x19fbc4,_0x3a2846,_0x1da22e):_0x1a2e93(_0x1da22e))||_0x1da22e);return _0x48dbf8&&_0x1da22e&&oi(_0x19fbc4,_0x3a2846,_0x1da22e),_0x1da22e;},de=(_0x54bd42,_0x247f3c)=>(_0x33a577,_0x5e06ea)=>_0x247f3c(_0x33a577,_0x5e06ea,_0x54bd42),se=(_0x534fc5=>(_0x534fc5[_0x534fc5['IDLE']=0x0]=_0x54516d(0x375),_0x534fc5[_0x534fc5[_0x54516d(0x58e)]=0x1]='JOINING',_0x534fc5[_0x534fc5[_0x54516d(0x44b)]=0x2]=_0x54516d(0x44b),_0x534fc5[_0x534fc5[_0x54516d(0x608)]=0x3]=_0x54516d(0x608),_0x534fc5))(se||{});exports[_0x54516d(0x39e)]=class extends a[_0x54516d(0x1d6)]{constructor(_0x22fee2,_0x208858,_0x310202,_0x793cd4,_0x459ba3,_0x528d00,_0x5da2ed,_0x4f3717,_0x4e68e7,_0x7521a0){const _0x3615de=_0x54516d;super(),I(this,_0x3615de(0x557),new A[(_0x3615de(0x598))](0x0)),I(this,_0x3615de(0x415),this[_0x3615de(0x557)][_0x3615de(0x1a1)]()),I(this,_0x3615de(0x2eb),new A[(_0x3615de(0x465))]()),I(this,'event$',this['_event$']['asObservable']()),I(this,_0x3615de(0x2a8)),I(this,_0x3615de(0x52b)),I(this,_0x3615de(0x406)),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x3615de(0x2e5),null),(this[_0x3615de(0x4f8)]=_0x22fee2,this[_0x3615de(0x241)]=_0x310202,this['_beforeCloseService']=_0x793cd4,this[_0x3615de(0x564)]=_0x459ba3,this[_0x3615de(0x2a3)]=_0x528d00,this[_0x3615de(0x422)]=_0x5da2ed,this[_0x3615de(0x543)]=_0x4f3717,this[_0x3615de(0x5f7)]=_0x4e68e7,this[_0x3615de(0x515)]=_0x7521a0,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x208858[_0x3615de(0x5f2)](A[_0x3615de(0x42d)](this['dispose$']))[_0x3615de(0x4d6)](_0x399b1b=>{const _0x3e54f4=_0x3615de;var _0x16ef86;typeof _0x399b1b>'u'||(this[_0x3e54f4(0x2a8)]=_0x399b1b,_0x399b1b?(this['_joinRoom'](_0x399b1b),this[_0x3e54f4(0x52b)]=_0x399b1b['message$']['subscribe'](_0x4d094e=>{const _0x374dea=_0x3e54f4;_0x4d094e[_0x374dea(0x43b)]===this[_0x374dea(0x4f8)]&&this['_onCombEvent'](_0x4d094e);})):(this[_0x3e54f4(0x185)](),this[_0x3e54f4(0x557)]['next'](0x2),(_0x16ef86=this[_0x3e54f4(0x52b)])==null||_0x16ef86['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x3615de(0x227)]['registerOnClose'](()=>{const _0x103871=_0x3615de;var _0x6618de;(_0x6618de=this[_0x103871(0x2a8)])==null||_0x6618de['send']({'cmd':G['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x54516d(0x3af)](){const _0x1dffd2=_0x54516d;return this[_0x1dffd2(0x557)][_0x1dffd2(0x371)]();}['getMemberID'](){const _0x37204b=_0x54516d;var _0x1538cd,_0x3690bc;return(_0x3690bc=(_0x1538cd=this[_0x37204b(0x2a8)])==null?void 0x0:_0x1538cd[_0x37204b(0x24b)])!=null?_0x3690bc:null;}['dispose'](){const _0x2468b2=_0x54516d;super['dispose'](),this['dispose$'][_0x2468b2(0x4bd)](),this[_0x2468b2(0x610)]['complete']();}[_0x54516d(0x575)](){const _0x2493ee=_0x54516d;var _0x5983ad,_0x752eea;this[_0x2493ee(0x185)](),(_0x5983ad=this['_socket'])==null||_0x5983ad[_0x2493ee(0x43c)]({'cmd':G[_0x2493ee(0x259)],'data':{'roomID':this[_0x2493ee(0x4f8)]}}),(_0x752eea=this['_socket'])==null||_0x752eea[_0x2493ee(0x575)](),this[_0x2493ee(0x2eb)][_0x2493ee(0x28e)](),this[_0x2493ee(0x557)][_0x2493ee(0x28e)](),this[_0x2493ee(0x417)]();}[_0x54516d(0x42f)](_0x33d4b8){const _0x478acc=_0x54516d;_0x33d4b8[_0x478acc(0x263)]===G[_0x478acc(0x2e0)]?this[_0x478acc(0x5bb)](_0x33d4b8):_0x33d4b8['cmd']===G[_0x478acc(0x54c)]&&this[_0x478acc(0x514)](_0x33d4b8);}[_0x54516d(0x4fb)](_0x52dbae){const _0x159e3b=_0x54516d;this['_sessionStatus$'][_0x159e3b(0x4bd)](0x1),_0x52dbae['send']({'cmd':G[_0x159e3b(0x2e0)],'routeKey':this[_0x159e3b(0x4f8)],'routeType':'','data':{'rooms':[{'roomID':this[_0x159e3b(0x4f8)]}]}});}[_0x54516d(0x5bb)](_0xcdcc68){const _0x10a977=_0x54516d;var _0x57778c;if(_0xcdcc68[_0x10a977(0x27c)]===Et[_0x10a977(0x285)]){this[_0x10a977(0x564)][_0x10a977(0x5e3)]({'type':ge[_0x10a977(0x3a7)][_0x10a977(0x354)],'content':this[_0x10a977(0x422)]['t'](_0x10a977(0x3e8))}),this[_0x10a977(0x557)]['next'](0x2);return;}this[_0x10a977(0x557)]['next'](0x3);const _0x13139c=(_0x57778c=_0xcdcc68[_0x10a977(0x547)][_0x10a977(0x214)][this[_0x10a977(0x4f8)]])==null?void 0x0:_0x57778c[_0x10a977(0x4a8)];_0x13139c&&_0x13139c['forEach'](_0x5a09f5=>this[_0x10a977(0x543)][_0x10a977(0x364)](this['_unitID'],_0x5a09f5));}[_0x54516d(0x514)](_0x64602e){const _0x2a1d44=_0x54516d;try{const _0x4ea22e=_0x64602e[_0x2a1d44(0x547)];switch(_0x4ea22e[_0x2a1d44(0x4aa)]){case S[_0x2a1d44(0x5de)]['USERS_ENTER']:this[_0x2a1d44(0x244)](_0x4ea22e),this[_0x2a1d44(0x2eb)]['next'](_0x4ea22e);break;case S[_0x2a1d44(0x5de)][_0x2a1d44(0x58b)]:this['_onUserLeave'](_0x4ea22e),this[_0x2a1d44(0x2eb)][_0x2a1d44(0x4bd)](_0x4ea22e);break;case S['CollaborationEvent'][_0x2a1d44(0x5b3)]:case S[_0x2a1d44(0x5de)][_0x2a1d44(0x1b8)]:this[_0x2a1d44(0x588)](),this[_0x2a1d44(0x308)](),this[_0x2a1d44(0x2eb)]['next'](_0x4ea22e);break;case S['CollaborationEvent'][_0x2a1d44(0x191)]:this[_0x2a1d44(0x241)]['error'](_0x2a1d44(0x1e8)+JSON[_0x2a1d44(0x4c1)](_0x4ea22e)),this[_0x2a1d44(0x2eb)]['next'](_0x4ea22e);break;case S[_0x2a1d44(0x5de)][_0x2a1d44(0x32d)]:this['_commentService']['onCommentUpdate'](_0x4ea22e[_0x2a1d44(0x547)]),this[_0x2a1d44(0x2eb)][_0x2a1d44(0x4bd)](_0x4ea22e);break;default:this[_0x2a1d44(0x2eb)][_0x2a1d44(0x4bd)](_0x4ea22e);}}catch(_0x634177){this[_0x2a1d44(0x241)][_0x2a1d44(0x29f)](_0x634177,_0x64602e);}}['_onUserJoin'](_0x58f951){const _0x4da3b5=_0x54516d;this[_0x4da3b5(0x543)][_0x4da3b5(0x364)](this[_0x4da3b5(0x4f8)],_0x58f951[_0x4da3b5(0x547)]);}[_0x54516d(0x336)](_0x3f8ee7){const _0x2f1301=_0x54516d;this['_memberService'][_0x2f1301(0x328)](this['_unitID'],_0x3f8ee7[_0x2f1301(0x547)][_0x2f1301(0x24b)]);}async[_0x54516d(0x43c)](_0x41ccbf,_0x423983){const _0x2bcc3f=_0x54516d;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x2bcc3f(0x230));try{_0x41ccbf[_0x2bcc3f(0x4aa)]===S[_0x2bcc3f(0x5de)][_0x2bcc3f(0x3e6)]&&(this[_0x2bcc3f(0x4b8)](),this[_0x2bcc3f(0x282)](_0x41ccbf)),this[_0x2bcc3f(0x2a8)][_0x2bcc3f(0x43c)]({'cmd':G[_0x2bcc3f(0x2f7)],'routeKey':_0x423983,'routeType':'','data':_0x41ccbf});}catch(_0x7e817){this[_0x2bcc3f(0x241)][_0x2bcc3f(0x29f)](_0x7e817);}}[_0x54516d(0x4b8)](){const _0x555eca=_0x54516d;var _0x51ca3e;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x1f08d6=_0xe852;this[_0x1f08d6(0x406)]=null,this[_0x1f08d6(0x564)]['show']({'type':ge[_0x1f08d6(0x3a7)][_0x1f08d6(0x30f)],'content':this['_localeService']['t'](_0x1f08d6(0x590))});},(_0x51ca3e=this[_0x555eca(0x2a3)]['getConfig'](Ct))!=null?_0x51ca3e:nn);}[_0x54516d(0x308)](){const _0x31d186=_0x54516d;this[_0x31d186(0x406)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x31d186(0x406)]=null);}[_0x54516d(0x282)](_0x2fff25){const _0x3f3b84=_0x54516d;if(!this[_0x3f3b84(0x4c9)])return;const {data:_0x2147e2}=_0x2fff25,{unitID:_0x18d7dc,changeset:_0x1a9bd5}=_0x2147e2,{mutations:_0x5acdbc,type:_0x245d0a}=_0x1a9bd5;this[_0x3f3b84(0x2e5)]={'unitId':_0x18d7dc,'type':_0x245d0a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ti(_0x5acdbc)};}[_0x54516d(0x588)](){const _0x3ce541=_0x54516d;if(this[_0x3ce541(0x4c9)]){if(!this[_0x3ce541(0x2e5)]){this[_0x3ce541(0x241)][_0x3ce541(0x29f)]('[CollaborationSession]',_0x3ce541(0x56e));return;}this[_0x3ce541(0x2e5)][_0x3ce541(0x1e0)]=performance[_0x3ce541(0x331)](),this['_telemetryInfo'][_0x3ce541(0x44f)]=this['_telemetryInfo'][_0x3ce541(0x1e0)]-this[_0x3ce541(0x2e5)][_0x3ce541(0x5eb)],this[_0x3ce541(0x515)][_0x3ce541(0x229)](ei,this[_0x3ce541(0x2e5)]),this[_0x3ce541(0x2e5)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports[_0x54516d(0x39e)]=ci([de(0x2,a['ILogService']),de(0x3,ee[_0x54516d(0x211)]),de(0x4,ee[_0x54516d(0x3ce)]),de(0x5,a['IConfigService']),de(0x6,a[_0x54516d(0x573)](a[_0x54516d(0x2a1)])),de(0x7,a[_0x54516d(0x573)](exports[_0x54516d(0x3a8)])),de(0x8,a['Inject'](Tt)),de(0x9,a['Optional'](jn[_0x54516d(0x3ff)]))],exports[_0x54516d(0x39e)]);var li=Object['defineProperty'],hi=Object[_0x54516d(0x363)],_i=(_0x1a2ee1,_0x43f88e,_0x2a006c,_0x22cb7)=>{const _0x9d91e3=_0x54516d;for(var _0x4bfaf3=_0x22cb7>0x1?void 0x0:_0x22cb7?hi(_0x43f88e,_0x2a006c):_0x43f88e,_0x4fe99f=_0x1a2ee1[_0x9d91e3(0x5e8)]-0x1,_0x3f1d8a;_0x4fe99f>=0x0;_0x4fe99f--)(_0x3f1d8a=_0x1a2ee1[_0x4fe99f])&&(_0x4bfaf3=(_0x22cb7?_0x3f1d8a(_0x43f88e,_0x2a006c,_0x4bfaf3):_0x3f1d8a(_0x4bfaf3))||_0x4bfaf3);return _0x22cb7&&_0x4bfaf3&&li(_0x43f88e,_0x2a006c,_0x4bfaf3),_0x4bfaf3;},Ee=(_0x2f94a5,_0x4b8d44)=>(_0x5a09d7,_0x4ab2a9)=>_0x4b8d44(_0x5a09d7,_0x4ab2a9,_0x2f94a5);exports[_0x54516d(0x580)]=class extends a[_0x54516d(0x25e)]{constructor(_0x2dff1e,_0x32e603,_0x302b35,_0x113dc6,_0x5bfd8e,_0x443b02){const _0x4aef9a=_0x54516d;super(),I(this,_0x4aef9a(0x32a),new A[(_0x4aef9a(0x598))](void 0x0)),I(this,_0x4aef9a(0x400),this[_0x4aef9a(0x32a)][_0x4aef9a(0x1a1)]()),I(this,_0x4aef9a(0x301),null),I(this,_0x4aef9a(0x32c),new Map()),I(this,'_status$',new A[(_0x4aef9a(0x598))](se[_0x4aef9a(0x375)])),I(this,_0x4aef9a(0x4d4),this[_0x4aef9a(0x59e)]['asObservable']()),I(this,_0x4aef9a(0x215),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x4aef9a(0x3ee),0x0),I(this,_0x4aef9a(0x3c1)),I(this,_0x4aef9a(0x556)),(this[_0x4aef9a(0x47c)]=_0x2dff1e,this['_localeService']=_0x32e603,this[_0x4aef9a(0x564)]=_0x302b35,this[_0x4aef9a(0x241)]=_0x113dc6,this['_configService']=_0x5bfd8e,this[_0x4aef9a(0x4f2)]=_0x443b02,this['_initEventListeners']());}get['_socket'](){const _0x1156aa=_0x54516d;return this['_socket$'][_0x1156aa(0x371)]();}['_initEventListeners'](){const _0x2102b3=_0x54516d;this['_listenToOfflineEvent'](),this[_0x2102b3(0x3df)]();}[_0x54516d(0x417)](){const _0x38c67b=_0x54516d;super[_0x38c67b(0x417)](),this[_0x38c67b(0x32c)][_0x38c67b(0x1ba)](_0x2690e2=>_0x2690e2['dispose']()),this['_sessions'][_0x38c67b(0x202)](),this[_0x38c67b(0x59e)][_0x38c67b(0x28e)]();}async[_0x54516d(0x2fd)](_0x226634){const _0x40e666=_0x54516d;if(this[_0x40e666(0x32c)][_0x40e666(0x468)](_0x226634))return this[_0x40e666(0x32c)][_0x40e666(0x3b1)](_0x226634);this['_tryEnsureSocket']();const _0x39fe5d=this[_0x40e666(0x47c)][_0x40e666(0x5d2)](exports[_0x40e666(0x39e)],_0x226634,this[_0x40e666(0x32a)][_0x40e666(0x1a1)]());return this[_0x40e666(0x32c)][_0x40e666(0x36d)](_0x226634,_0x39fe5d),_0x39fe5d;}[_0x54516d(0x51d)](_0x165d65){const _0xffe2fd=_0x54516d;var _0x3d23ba;const _0x1135cb=this[_0xffe2fd(0x32c)][_0xffe2fd(0x3b1)](_0x165d65);_0x1135cb&&(this[_0xffe2fd(0x32c)][_0xffe2fd(0x1c4)](_0x165d65),_0x1135cb[_0xffe2fd(0x575)]()),this[_0xffe2fd(0x32c)]['size']||(_0x3d23ba=this[_0xffe2fd(0x2a8)])==null||_0x3d23ba['close']();}[_0x54516d(0x27b)](){const _0x59fe5f=_0x54516d;this[_0x59fe5f(0x3ee)]=0x0,this[_0x59fe5f(0x3e7)]!=null&&(clearTimeout(this[_0x59fe5f(0x3e7)]),this[_0x59fe5f(0x3e7)]=null),this[_0x59fe5f(0x2e1)]();}[_0x54516d(0x1b2)](){const _0x23ac51=_0x54516d;var _0x298336,_0x1539dd;const _0x2355d7=this[_0x23ac51(0x2a3)][_0x23ac51(0x21d)](en),_0x5a04fc=this[_0x23ac51(0x2a3)]['getConfig'](te),_0xc21411=(_0x1539dd=(_0x298336=_0x5a04fc==null?void 0x0:_0x5a04fc[_0x23ac51(0x171)])!=null?_0x298336:_0x2355d7)!=null?_0x1539dd:Wn,_0x465c02=this['_socketService'][_0x23ac51(0x290)](_0xc21411);return this[_0x23ac51(0x301)]=_0x465c02,_0x465c02;}[_0x54516d(0x490)](){const _0x1e4828=_0x54516d;var _0x594cdd,_0x37cd54;try{const _0xb14162=(_0x37cd54=(_0x594cdd=this['_socket'])!=null?_0x594cdd:this[_0x1e4828(0x301)])!=null?_0x37cd54:this[_0x1e4828(0x1b2)]();if(_0xb14162){const _0x2da331=_0xb14162[_0x1e4828(0x43c)];_0xb14162['send']=_0x5a9188=>(this[_0x1e4828(0x374)](),_0x2da331['apply'](_0xb14162,[_0x5a9188])),_0xb14162[_0x1e4828(0x40e)][_0x1e4828(0x4d6)](_0x587de2=>this[_0x1e4828(0x192)](_0xb14162,_0x587de2)),_0xb14162[_0x1e4828(0x534)]['pipe'](V[_0x1e4828(0x46a)](0x1))[_0x1e4828(0x4d6)](_0x31ddc0=>this[_0x1e4828(0x241)][_0x1e4828(0x29f)]('[CollaborationSessionService]:\x20socket\x20error',_0x31ddc0)),_0xb14162[_0x1e4828(0x1a6)][_0x1e4828(0x5f2)](V[_0x1e4828(0x46a)](0x1))[_0x1e4828(0x4d6)](()=>{const _0x48519b=_0x1e4828;this[_0x48519b(0x47d)](_0xb14162);}),_0xb14162[_0x1e4828(0x397)][_0x1e4828(0x5f2)](V['take'](0x1))[_0x1e4828(0x4d6)](_0x12a9db=>{const _0xc86d62=_0x1e4828;this[_0xc86d62(0x241)][_0xc86d62(0x583)]('[CollaborationSessionService]','socket\x20close',_0x12a9db),this[_0xc86d62(0x54f)]();});}}catch(_0x38df0d){this[_0x1e4828(0x241)][_0x1e4828(0x29f)](_0x38df0d),this['_onConnectionFailed']();}}[_0x54516d(0x47d)](_0x2c4625){const _0x13203d=_0x54516d;this['_logService']['debug'](_0x13203d(0x1a5),_0x13203d(0x271)),_0x2c4625[_0x13203d(0x43c)]({'cmd':G['HELLO']}),this['_rescheduleHeartbeat']();}[_0x54516d(0x19b)](){const _0x19a657=_0x54516d;window[_0x19a657(0x40b)](_0x19a657(0x444),()=>this[_0x19a657(0x3bb)]());}[_0x54516d(0x3bb)](){const _0x41bc0a=_0x54516d;this[_0x41bc0a(0x215)]=!0x1,this[_0x41bc0a(0x301)]=null,this[_0x41bc0a(0x59e)][_0x41bc0a(0x4bd)](se['OFFLINE']),this[_0x41bc0a(0x32a)]['next'](null),this[_0x41bc0a(0x4d5)](),this['_clearHeartbeatTimer']();}[_0x54516d(0x54f)](){const _0x3ece5c=_0x54516d;var _0x102be4;this[_0x3ece5c(0x3bb)](),this['_retryCount']<((_0x102be4=this[_0x3ece5c(0x2a3)][_0x3ece5c(0x21d)](sn))!=null?_0x102be4:Gn)?(this[_0x3ece5c(0x564)][_0x3ece5c(0x5e3)]({'key':_0x3ece5c(0x18e),'type':ge[_0x3ece5c(0x3a7)][_0x3ece5c(0x354)],'content':this['_localeService']['t'](_0x3ece5c(0x549))}),this[_0x3ece5c(0x2e1)]()):this[_0x3ece5c(0x564)]['show']({'key':_0x3ece5c(0x18e),'type':ge[_0x3ece5c(0x3a7)][_0x3ece5c(0x30f)],'content':this[_0x3ece5c(0x422)]['t'](_0x3ece5c(0x1bc))});}[_0x54516d(0x3df)](){const _0x33bfb2=_0x54516d,_0x434b2c=()=>{const _0x1e63fa=_0xe852;this[_0x1e63fa(0x2a8)]||this[_0x1e63fa(0x27b)]();},_0x1cf8e3=()=>{const _0x50754b=_0xe852;this[_0x50754b(0x2a8)]||document[_0x50754b(0x616)]===_0x50754b(0x5b7)||this[_0x50754b(0x27b)]();};window[_0x33bfb2(0x40b)]('online',_0x434b2c),document[_0x33bfb2(0x40b)](_0x33bfb2(0x203),_0x1cf8e3);}[_0x54516d(0x2e1)](){const _0x1e962b=_0x54516d;var _0x360e87;const _0x244f6d=this[_0x1e962b(0x3ee)],_0x4417e2=this[_0x1e962b(0x2a3)]['getConfig'](te),_0x294153=_0x244f6d===0x0?0x0:((_0x360e87=_0x4417e2==null?void 0x0:_0x4417e2['retryConnectingInterval'])!=null?_0x360e87:Vn)*0x2**_0x244f6d;this[_0x1e962b(0x3e7)]=window['setTimeout'](()=>{const _0x4a1aeb=_0x1e962b;clearTimeout(this[_0x4a1aeb(0x3e7)]),this[_0x4a1aeb(0x3e7)]=null,this[_0x4a1aeb(0x490)]();},_0x294153),this[_0x1e962b(0x3ee)]+=0x1;}[_0x54516d(0x192)](_0x2d2ce6,_0x18d917){const _0x232da3=_0x54516d,{cmd:_0x1e9be9}=_0x18d917;_0x1e9be9===G[_0x232da3(0x1d7)]&&!this[_0x232da3(0x215)]&&(_0x2d2ce6[_0x232da3(0x24b)]=_0x18d917['data'][_0x232da3(0x24b)],this['_socket$'][_0x232da3(0x4bd)](_0x2d2ce6),this['_status$'][_0x232da3(0x4bd)](se[_0x232da3(0x608)]),this['_socketReady']=!0x0,this[_0x232da3(0x301)]=null),_0x1e9be9===G[_0x232da3(0x25f)]&&this[_0x232da3(0x4d5)](),this[_0x232da3(0x374)]();}[_0x54516d(0x374)](){const _0x2b7faa=_0x54516d;var _0x4ff835;this[_0x2b7faa(0x5ae)](),this[_0x2b7faa(0x3c1)]=window[_0x2b7faa(0x1ae)](()=>this[_0x2b7faa(0x321)](),(_0x4ff835=this[_0x2b7faa(0x2a3)][_0x2b7faa(0x21d)](tn))!=null?_0x4ff835:Fn);}[_0x54516d(0x321)](){const _0x38e7cf=_0x54516d;this[_0x38e7cf(0x2a8)][_0x38e7cf(0x43c)]({'cmd':G[_0x38e7cf(0x25f)]}),this[_0x38e7cf(0x58d)]();}[_0x54516d(0x58d)](){const _0x3b7ff5=_0x54516d;var _0x349c77;this[_0x3b7ff5(0x556)]=window['setTimeout'](()=>this[_0x3b7ff5(0x54f)](),(_0x349c77=this['_configService']['getConfig'](Ct))!=null?_0x349c77:nn);}[_0x54516d(0x5ae)](){const _0x2b310d=_0x54516d;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2b310d(0x3c1)]),this[_0x2b310d(0x3c1)]=null);}[_0x54516d(0x4d5)](){const _0x3f7e80=_0x54516d;this[_0x3f7e80(0x556)]!=null&&(clearTimeout(this[_0x3f7e80(0x556)]),this[_0x3f7e80(0x556)]=null);}},exports['CollaborationSessionService']=_i([Ee(0x0,a[_0x54516d(0x573)](a['Injector'])),Ee(0x1,a[_0x54516d(0x573)](a['LocaleService'])),Ee(0x2,ee[_0x54516d(0x3ce)]),Ee(0x3,a[_0x54516d(0x4ee)]),Ee(0x4,a[_0x54516d(0x208)]),Ee(0x5,bt)],exports[_0x54516d(0x580)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x54516d(0x26e)]((s+0x100)[_0x54516d(0x481)](0x10)['slice'](0x1));function ui(_0x58cb84,_0x430459=0x0){return(Y[_0x58cb84[_0x430459+0x0]]+Y[_0x58cb84[_0x430459+0x1]]+Y[_0x58cb84[_0x430459+0x2]]+Y[_0x58cb84[_0x430459+0x3]]+'-'+Y[_0x58cb84[_0x430459+0x4]]+Y[_0x58cb84[_0x430459+0x5]]+'-'+Y[_0x58cb84[_0x430459+0x6]]+Y[_0x58cb84[_0x430459+0x7]]+'-'+Y[_0x58cb84[_0x430459+0x8]]+Y[_0x58cb84[_0x430459+0x9]]+'-'+Y[_0x58cb84[_0x430459+0xa]]+Y[_0x58cb84[_0x430459+0xb]]+Y[_0x58cb84[_0x430459+0xc]]+Y[_0x58cb84[_0x430459+0xd]]+Y[_0x58cb84[_0x430459+0xe]]+Y[_0x58cb84[_0x430459+0xf]])['toLowerCase']();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x4ff8cf=_0x54516d;if(!Je){if(typeof crypto>'u'||!crypto[_0x4ff8cf(0x505)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');Je=crypto[_0x4ff8cf(0x505)][_0x4ff8cf(0x2ef)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto[_0x54516d(0x525)]&&crypto[_0x54516d(0x525)][_0x54516d(0x2ef)](crypto),Mt={'randomUUID':vi};function mi(_0x390650,_0x4c0055,_0x4b45c4){const _0x9a3eec=_0x54516d;if(Mt[_0x9a3eec(0x525)]&&!_0x4c0055&&!_0x390650)return Mt[_0x9a3eec(0x525)]();_0x390650=_0x390650||{};const _0x513fa7=_0x390650[_0x9a3eec(0x35c)]||(_0x390650[_0x9a3eec(0x342)]||fi)();return _0x513fa7[0x6]=_0x513fa7[0x6]&0xf|0x40,_0x513fa7[0x8]=_0x513fa7[0x8]&0x3f|0x80,ui(_0x513fa7);}var Si=Object['defineProperty'],pi=Object[_0x54516d(0x363)],gi=(_0x3a77b0,_0x374432,_0x38f58e,_0x3047af)=>{const _0x2873f0=_0x54516d;for(var _0x4a5321=_0x3047af>0x1?void 0x0:_0x3047af?pi(_0x374432,_0x38f58e):_0x374432,_0x284912=_0x3a77b0[_0x2873f0(0x5e8)]-0x1,_0x3dee33;_0x284912>=0x0;_0x284912--)(_0x3dee33=_0x3a77b0[_0x284912])&&(_0x4a5321=(_0x3047af?_0x3dee33(_0x374432,_0x38f58e,_0x4a5321):_0x3dee33(_0x4a5321))||_0x4a5321);return _0x3047af&&_0x4a5321&&Si(_0x374432,_0x38f58e,_0x4a5321),_0x4a5321;},Ze=(_0x284a8c,_0x49b595)=>(_0x17f5e9,_0x3dfe50)=>_0x49b595(_0x17f5e9,_0x3dfe50,_0x284a8c);let Be=class{constructor(_0x4fb5fc,_0x1c2ce2,_0x537a9d){const _0x312056=_0x54516d;this['_injector']=_0x4fb5fc,this[_0x312056(0x579)]=_0x1c2ce2,this[_0x312056(0x250)]=_0x537a9d;}[_0x54516d(0x4a6)](_0x23f090){const _0x30cedd=_0x54516d;this[_0x30cedd(0x1a2)](_0x23f090),this[_0x30cedd(0x18c)](_0x23f090);}[_0x54516d(0x5e6)](_0x37a8e9){const _0x472e27=_0x54516d,{unitID:_0x38c4e0}=_0x37a8e9,_0x7a14eb=this[_0x472e27(0x250)][_0x472e27(0x2ee)](_0x38c4e0)['with'](J[_0x472e27(0x35f)]),{redoCache:_0x359463}=_0x7a14eb[_0x472e27(0x383)]();if(_0x359463[_0x472e27(0x5e8)]===0x0)return _0x37a8e9;let _0x215b96=a[_0x472e27(0x3eb)][_0x472e27(0x330)](_0x37a8e9[_0x472e27(0x1f3)][0x0]);for(let _0xbc42cd=0x0;_0xbc42cd<_0x359463[_0x472e27(0x5e8)];_0xbc42cd++){const _0x52ea3f={'id':_0x472e27(0x47f),'params':{..._0x359463[_0xbc42cd]}},_0x3a9bb7=this[_0x472e27(0x579)][_0x472e27(0x4bb)](_0x215b96,_0x52ea3f,!0x1);if(S[_0x472e27(0x311)](_0x3a9bb7))throw _0x3a9bb7[_0x472e27(0x29f)];_0x215b96=_0x3a9bb7[_0x472e27(0x401)];}return{...a[_0x472e27(0x3eb)][_0x472e27(0x330)](_0x37a8e9),'mutations':[_0x215b96]};}[_0x54516d(0x1a2)](_0x3319a9){const _0x2ae218=_0x54516d,{unitID:_0x510f4b}=_0x3319a9,_0xdb3d0b=this[_0x2ae218(0x250)][_0x2ae218(0x2ee)](_0x510f4b)[_0x2ae218(0x4ff)](J['DocIMEInputManagerService']),{undoCache:_0xa7eea4,redoCache:_0x2e01e4}=_0xdb3d0b[_0x2ae218(0x383)]();if(_0xa7eea4[_0x2ae218(0x5e8)]===0x0||_0x2e01e4[_0x2ae218(0x5e8)]===0x0)return;const _0x3235d1=[],_0x5e2648=[];let _0x2908ed=a['Tools']['deepClone'](_0x3319a9[_0x2ae218(0x1f3)][0x0]),_0x2643ea=a[_0x2ae218(0x3eb)][_0x2ae218(0x330)](_0x3319a9[_0x2ae218(0x1f3)][0x0]);for(let _0x271626=_0xa7eea4['length']-0x1;_0x271626>=0x0;_0x271626--){const _0x11d774={'id':_0x2ae218(0x47f),'params':{..._0xa7eea4[_0x271626]}},_0x198e77={'id':_0x2ae218(0x47f),'params':{..._0x2e01e4[_0x271626]}},_0x3c6ce3=this['_transformService']['transformMutation'](_0x2908ed,_0x11d774,!0x1),_0x3a1e3b=this[_0x2ae218(0x579)]['transformMutation'](_0x2643ea,_0x198e77,!0x1);if(S['isTransformMutationFailure'](_0x3c6ce3))throw _0x3c6ce3[_0x2ae218(0x29f)];if(S[_0x2ae218(0x311)](_0x3a1e3b))throw _0x3a1e3b['error'];_0x3235d1[_0x2ae218(0x4b3)](_0x3c6ce3[_0x2ae218(0x46b)][_0x2ae218(0x601)]),_0x5e2648[_0x2ae218(0x4b3)](_0x3a1e3b[_0x2ae218(0x46b)][_0x2ae218(0x601)]),_0x2908ed=_0x3c6ce3['m1Prime'],_0x2643ea=_0x3a1e3b[_0x2ae218(0x401)];}_0xdb3d0b[_0x2ae218(0x38e)]({'undoCache':_0x3235d1,'redoCache':_0x5e2648});}[_0x54516d(0x18c)](_0x2b028c){const _0x59cc9e=_0x54516d,{unitID:_0x2b25de}=_0x2b028c,_0x3e3ee9=this[_0x59cc9e(0x250)]['getRenderById'](_0x2b25de)['with'](J['DocIMEInputManagerService']),_0x23517d=_0x3e3ee9[_0x59cc9e(0x4e8)]();if(_0x23517d==null)return;const _0x2ee213=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b028c[_0x59cc9e(0x351)],'actions':null,'textRanges':[_0x23517d]}}],_0x98fdb1=this[_0x59cc9e(0x579)]['transformMutationsWithChangeset'](_0x2b028c,_0x2ee213);if(!S[_0x59cc9e(0x5da)](_0x98fdb1))throw _0x98fdb1['error'];const _0x50927b=_0x98fdb1['m2Prime'][0x0][_0x59cc9e(0x601)][_0x59cc9e(0x329)];Array[_0x59cc9e(0x5a7)](_0x50927b)&&_0x50927b['length']&&_0x3e3ee9[_0x59cc9e(0x4ab)](_0x50927b[0x0]);}};Be=gi([Ze(0x0,a[_0x54516d(0x573)](a['Injector'])),Ze(0x1,S['ITransformService']),Ze(0x2,K[_0x54516d(0x387)])],Be);var Ii=Object[_0x54516d(0x461)],Ci=Object[_0x54516d(0x363)],Ei=(_0x2fe8a3,_0xc8f734,_0x5307db,_0x6130b4)=>{const _0x4e93f3=_0x54516d;for(var _0x4d4adf=_0x6130b4>0x1?void 0x0:_0x6130b4?Ci(_0xc8f734,_0x5307db):_0xc8f734,_0x147d98=_0x2fe8a3[_0x4e93f3(0x5e8)]-0x1,_0x330eea;_0x147d98>=0x0;_0x147d98--)(_0x330eea=_0x2fe8a3[_0x147d98])&&(_0x4d4adf=(_0x6130b4?_0x330eea(_0xc8f734,_0x5307db,_0x4d4adf):_0x330eea(_0x4d4adf))||_0x4d4adf);return _0x6130b4&&_0x4d4adf&&Ii(_0xc8f734,_0x5307db,_0x4d4adf),_0x4d4adf;},Pe=(_0x37001f,_0x25259e)=>(_0x59af7f,_0x14cd2a)=>_0x25259e(_0x59af7f,_0x14cd2a,_0x37001f);exports[_0x54516d(0x5ef)]=class extends a['Disposable']{constructor(_0x38bb89,_0x131082,_0x2828f7,_0x1c9a26,_0x18b2ea){const _0x499f24=_0x54516d;super(),I(this,_0x499f24(0x186),new Map()),I(this,_0x499f24(0x59a),new Map()),I(this,_0x499f24(0x2d2),!0x1),(this[_0x499f24(0x2a3)]=_0x38bb89,this[_0x499f24(0x274)]=_0x131082,this[_0x499f24(0x227)]=_0x2828f7,this['_localeService']=_0x1c9a26,this[_0x499f24(0x1cc)]=_0x18b2ea,this[_0x499f24(0x4e7)]());}[_0x54516d(0x552)](){const _0x195ba6=_0x54516d;this[_0x195ba6(0x2d2)]=!0x0;}[_0x54516d(0x559)](){const _0x20724f=_0x54516d;this[_0x20724f(0x2d2)]=!0x1;}['dispose'](){const _0x5d8488=_0x54516d;this[_0x5d8488(0x4c4)]()[_0x5d8488(0x182)](()=>super[_0x5d8488(0x417)]());}async[_0x54516d(0x456)](_0x59e542){const _0x2d4c54=_0x54516d;return this[_0x2d4c54(0x2d2)]?null:this[_0x2d4c54(0x274)][_0x2d4c54(0x260)](At(_0x59e542));}async[_0x54516d(0x181)](_0x50df2f,_0x5a7e9a){const _0x36c3d6=_0x54516d;return!!this[_0x36c3d6(0x274)][_0x36c3d6(0x399)](_0x50df2f,_0x5a7e9a);}[_0x54516d(0x1fb)](_0x48858a,_0xd97606,_0x2b08a0,_0x2ac41a){const _0x26226f=_0x54516d,_0x50a278=this[_0x26226f(0x1cc)][_0x26226f(0x419)](_0x48858a);this[_0x26226f(0x186)]['set'](_0x48858a,{'unitID':_0x48858a,'type':_0xd97606,'awaitingChangeset':_0x2b08a0,'mutations':_0x2ac41a,'rev':_0x50a278}),this['_saveTaskMap'][_0x26226f(0x468)](_0x48858a)||this[_0x26226f(0x3ef)](_0x48858a);}['_scheduleSaving'](_0x92c05f){const _0x1c53a2=_0x54516d,_0x31d32a=this[_0x1c53a2(0x22a)]();_0x31d32a===0x0?this['_saveCache'](_0x92c05f):this[_0x1c53a2(0x59a)]['set'](_0x92c05f,setTimeout(()=>this[_0x1c53a2(0x238)](_0x92c05f),_0x31d32a));}[_0x54516d(0x22a)](){const _0x24ca12=_0x54516d;var _0xee263;return(_0xee263=this['_configService'][_0x24ca12(0x21d)](rn))!=null?_0xee263:Yn;}[_0x54516d(0x238)](_0x3f505a){const _0xa33b34=_0x54516d,_0x911770=this[_0xa33b34(0x59a)][_0xa33b34(0x3b1)](_0x3f505a);return _0x911770!==void 0x0&&window[_0xa33b34(0x289)](_0x911770),this[_0xa33b34(0x274)]['setItem'](At(_0x3f505a),this[_0xa33b34(0x186)][_0xa33b34(0x3b1)](_0x3f505a))['then'](()=>this[_0xa33b34(0x59a)][_0xa33b34(0x1c4)](_0x3f505a));}async[_0x54516d(0x4c4)](){const _0x46a631=_0x54516d,_0x4b2e00=[];this[_0x46a631(0x59a)][_0x46a631(0x1ba)]((_0x294e32,_0x2a0369)=>{const _0x1b33a3=_0x46a631;window[_0x1b33a3(0x289)](_0x294e32),_0x4b2e00[_0x1b33a3(0x26e)](this[_0x1b33a3(0x238)](_0x2a0369)[_0x1b33a3(0x182)](()=>{const _0x40be1a=_0x1b33a3;this[_0x40be1a(0x59a)][_0x40be1a(0x1c4)](_0x2a0369);}));}),await Promise[_0x46a631(0x614)](_0x4b2e00);}[_0x54516d(0x4e7)](){const _0xeec893=_0x54516d;this['disposeWithMe'](this[_0xeec893(0x227)][_0xeec893(0x478)](()=>{const _0x18d436=_0xeec893;if(this[_0x18d436(0x59a)][_0x18d436(0x5c0)])return this[_0x18d436(0x422)]['t'](_0x18d436(0x1d2));}));}},exports[_0x54516d(0x5ef)]=Ei([Pe(0x0,a[_0x54516d(0x208)]),Pe(0x1,a[_0x54516d(0x53d)]),Pe(0x2,ee['IBeforeCloseService']),Pe(0x3,a[_0x54516d(0x573)](a[_0x54516d(0x2a1)])),Pe(0x4,a[_0x54516d(0x573)](S[_0x54516d(0x35a)]))],exports[_0x54516d(0x5ef)]);function _0x47dd(){const _0x254fb3=['div','session.collaboration-timeout','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','react','c2Prime','collaMsg','_append','BehaviorSubject','HMAC','_saveTaskMap','url(#off-line-single_clip0_910_343)','collabStatus.syncing','univer-offline','_status$','transformChangesets','_getUploadFileURL','_clearLocalCache','_uiPartsService','enableSingleActiveInstanceLock','LIVESHARE_TERMINATE','LIVESHARE_REQUEST_HOST','image/gif','isArray','_fetchMissChangesets','translate(.97)','setShowComponents','collaboration.single-unit.warning','_resendTimer','@univerjs/ui','_clearHeartbeatTimer','COLLAB_WEB_SOCKET_URL','PSEUDO_FETCH_MISSING_RESULT','removeParam','_updateCollabCursors','CHANGESET_ACK','Base','RefRangeService','reqId','hidden','_startCollaboration','IUndoRedoService','IContextService','_onJoinRoomEvent','fetching\x20missing\x20changesets\x20from\x20','ITransformService','CollaborationStatusDisplay','_cipher','size','awaiting_with_pending','getUniverSheetInstance','onMouseMove','_oKey','_members','InsertColCommandId','[CollaborationState]:\x20apply\x20error!','UNAUTHENTICATED','getUnitType','fromCharCode','object','disposeUnit','requestParams','4442490Whxcvq','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','collab-rect-range-','blockSize','createInstance','_scheduleClearOtherTimer','fetchMiss','transformUndoRedo','_unitOnClients','LICENSE_DISTRO_REJECTED','_onRefRangeChange','_sendingTimer','isTransformMutationsWithChangesetSuccess','getCoordByCell','getCurrentSelections','put','CollaborationEvent','getCollabEntity$','CONNECTOR_DATA_TOO_LARGE','_docSkeletonManagerService','@univerjs-pro/collaboration','show','IAuthzIoService','isActive','transformRemoteChangeset','fetchThroughInterceptors','length','/universer-api/comb','fromEventSubject','startTime','_nDataBytes','none','LOCAL_CACHE_INTERVAL_KEY','LocalCacheService','getSheetBlock','getRangePointData','pipe','key','_pendingMutations','defs','{fileID}','_commentService','IURLService','MUTATION','name','hostname','FETCH_MISS','SNAPSHOT_HAS_BEEN_REMOVED','updateCollaborator','conflict','uni.network.url-service','params','COMPRESS_MUTATION_APPLY','syncEditingCollabCursor','handleInsertRangeMoveDown','jsx','_process','_hover','ONLINE','_registerDependencies','throttleTime','_getDownloadEndpointURL','beginPath','originalMeta','UNIVER_DOC','ERROR_IMAGE_TYPE','dispose$','_anchor','HEARTBEAT_TIMEOUT','apply','all','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','visibilityState','top','catch','FromArray','univer-online','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_snapshotService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_incrementRevisionNumber','_changesetReqId','_imageSourceCache','clearInterval','RETRY_CONNECTING_MAX_COUNT','extend','collaboration_new_changeset','_config','collabWebSocketUrl','onMissingChangesets','CommentService','round','$super','_drawRectRange','UnitSnapshot','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_awaitingChangeset','ACTIVE_UNIT_EVENT_CHANNEL','useRef','_initRequestHeader','x-univer-host','setParam','InsertRowCommandId','HTTPService','saveOfflineData','then','serializeCombRequest','SNAPSHOT_URL_KEY','_throwTelemetryCollaborationNewChangeset','_cachedData','transformByState','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collab-text-range-','ICommandService','pending','_transformPreviousActiveRange','RegularPolygon','collaboration-session-retry','off-line-single_clip0_910_343','OffLineSingle','MSG_FOR_ERROR','_onMessage','_updateURLWithCurrentState','pauseCollaboration','mixIn','_cursor','flatMap','M0\x200H16V16H0z','engine','sigBytes','_listenToOfflineEvent','CollaborationController','BlockCipherMode','/role','hovered','_getSendChangesetTimeout','asObservable','_transformUndoRedoStack','not_collab','downloadEndpointUrl','[CollaborationSessionService]','open$','_unlockTransition','jsxs','gold400','COLLAB_SUBMIT_CHANGESET_URL_KEY','onTransformState','_hasher','_removeCollabCursors','setTimeout','/new_changes','override','_replayCachedMutations','_createSocket','_hovered','univer-online-status-title','DisposableCollection','ImageSourceType','_getMergeRange','CHANGESET_SHOULD_RETRY','conflict.title','forEach','unsubscribe','session.connection-failed','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','Univer','arc','row','react.element','className','_getSheetObject','delete','_createInitialState','Cipher','state$','appendMutation','FileId','_commandService','byteOffset','_revisionService','transformMutationsWithChangeset','width','Malformed\x20UTF-8\x20data','mapTo','@univerjs/telemetry','collaboration-client.offline-data-not-saved','Rectangle','10024lMuXpW','_id','RxDisposable','HELLO','onPointerLeave$','resize','_getAnchorBounding','Unknown\x20user','_handleLeaveEvent','concatMap','_colorIndex','subscribeEvent','stopTime','addImageSourceCache','reject','UNIVER_COLLABORATION_CLIENT_PLUGIN','PENDING','_onFetchMissResult','/universer-api/stream/file/upload','_reverseMap','save\x20fail\x20reason\x20is\x20','mapDocumentTypeToUniverType','_collaborationController','_isPermissionRej','textEncoder','_doFinalize','Optional','TEXT','DeleteRangeMoveUpCommandId','SerializableCipher','getUnhiddenWorksheets','mutations','collaboratorID','encodeURIComponent','replace','charAt','\x0aAfter:\x20','UNDEFINED','_initUnitPermissionChange','updateOfflineData','_compressMutationService','SYNCED','distinctUntilChanged','getRelativeToViewportCoord','YUUMI_UNABLE_LOAD_URL','refreshPermission','clear','visibilitychange','Undefined','DependentOn','b64DecodeUnicode','[CollaborationUndoRedoService]','IConfigService','startsWith','urlChange$','_schedule','for','_exhaustRemoteChangesetQueue','onlineStatus','PERMISSION_DENIED','_removeRoom','IBeforeCloseService','batchAllowed','concat','roomInfos','_socketReady','_transformIMECache','use','_ensureSubject','_handleHeartbeatEvent','SEND_CHANGESET_TIMEOUT_KEY','_transformStack','defaultProps','getConfig','collabSubmitChangesetUrl','_anchorDot','registerHTTPInterceptor','values','toggleOnline','_transformSelections','_remoteChangesetQueue','history','Rect','_beforeCloseService','_univerInstanceService','capture','_getSaveTimeout','FETCH_MISSING','redoState','backgroundColor','TEXT_RANGE_LAYER_INDEX','_minBufferSize','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RECT','WorkbookEditablePermission','onlineStatusTitle','[OfflineState]:\x20received\x20rejection.','CHANGESET_REVISION_CONFILICT','_onCursorUpdate','ENSURE_SNAPSHOT_EXECUTION','_saveCache','join','number','_keyPriorReset','_state','Decryptor','setAlpha','decrypt','withCredentials','_logService','type','resend','_onUserJoin','ERROR_IMAGE','_ENC_XFORM_MODE','algo','_httpService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','mergeOverrideWithDependencies','memberID','TOO_MANY_REQUESTS','_http','encrypt','_transformStateCache','_renderManagerService','restore','PasswordBasedCipher','NoPadding','_roomMembers$','JSONX','getUnitStatus$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ciphertext','LEAVE','fetch_missing','getUnit','IImageIoService','_toggleOffline','Disposable','HEARTBEAT','getItem','_disableEditing','_online','cmd','_ws','snapshotServerUrl','awaiting','target','trim','onTransformIME','_commentUpdate$','/-/object/list','toStringTag','_mode','push','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','YUUMI_RATE_OVER_LIMIT','socket\x20open.','_colorAssignService','/-/object/-/batch_allowed','_localStorageService','substr','_applyRemoteChangeset','Encryptor','forwardRef','sheetId','onSyncEditingCollabCursor','reconnect','code','_urlService','getDocRanges','APPLY_NON_SEQUENTIAL_REVISION','CollaborationStatus','lineTo','_startTelemetryCollaborationNewChangeset','substring','hasOwnProperty','FAIL','addObject','_createHandler','_cursors','clearTimeout','localeService','_removeClearOtherTimer','getSheetBySheetId','10fbUvXR','complete','1em','createSocket','__creator','filter','ImageIoService','_collabCursorState$','APPLY_REVISION_CONFILICT','putCollaborators','getSheetId','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','UNIVER_SHEET','defIds','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','newCsEvent','AES','_context','error','parse','LocaleService','cursorInfo$','_configService','image/png','call','ThemeService','contains','_socket','shouldCloseConn','onCommandExecuted','&source=','_executeRemoteChangeset','collabCursorState$','selections','transformStateCache','MD5','includes','_loadDoc','touchDependencies','searchParams','_hash','setInterval','combineLatest','unitId\x20is\x20not\x20found','_startDocCollabCursor','add','replaceState','transformSelections','@univerjs/sheets-ui','WebURLService','getCollabCursors$','getMergeData','onRemoteRej','map','_initDependencies','_onLocalMutation','getUnitId','subunit','keySize','_map','addObjects','_drawTextRange','CBC','YUUMI_SUBSCRIPTION_NOT_FOUND','copyFileMeta','_permissionService','ImageUploadStatusType','getMember','_getSnapshotAPIPrefix','_disabled','_heartbeatTimer','UPDATE_PERMISSION_OBJ','status','handleIRemoveRow','_transitionLocked','332395eZyvRz','_singleActiveUnitService','location','editing\x20status\x20changed\x20to','onStateChange','_initStatusComponent','_updateSubUnitFromURLParams','_docStateChangeManagerService','JOIN','_tryReconnect','image/jpeg','isTransformMutationsWithChangesetFailure','getTime','_telemetryInfo','hide','_xformMode','UNIVER_SLIDE','DeleteRangeMoveLeftCommandId','Vector2','_event$','SNAPSHOT_INVALID_SNAPSHOT','crypto','getRenderById','bind','debounceTime','EffectRefRangId','UniverInstanceType','_userManagerService','repeat','VIEW_MAIN','[OfflineState]:\x20received\x20acknowledgement.','INGEST','getTypeOfUnitDisposed$','transformStack\x20failed!','getWorkbookSelections','ALREADY_EXISTS','editingUnit','requireSession','_iKey','liveShareNewHost','append','_candidateSocket','@univerjs/rpc','0\x200\x2017\x2016','OpenSSL','_initCommandExecutedListener','_doProcessBlock','_clearUndo','_clearCollaborationTimeoutTimer','_lastPointer','change$','purple300','function','permissionRejEvent','revision','Error','getFocusedUnit','isTransformMutationFailure','_syncEditingCollabCursorService','_shapes','_send','fromCollab','[CollaborationSession]','_document','\x0aCurrent:\x20','RemoveColCommandId','[OfflineState]:\x20received\x20changeset.','Utf8','_startSheetCollabCursor','indexOf','DocCollaborationEntity','cursorInfo','pushState','_sendHeartbeat','json','snapshot','msCrypto','SHOULD_CLOSE_CONN','3160195zUhCKz','pad','removeMember','textRanges','_socket$','rxjs','_sessions','COMMENT_UPDATE','_updateLocalCursor','default','deepClone','now','initWorkbookPermissionChange','SetDocZoomRatioOperation','replaceDocRanges','_sheetSkeletonManagerService','_onUserLeave','onPointerMove$','_onRemoteRejected','encryptBlock','Injector','NOT_FOUND','NEW_CHANGESETS','InsertRangeMoveDownCommandId','saveSheetBlock','AuthzIoHttpService','[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.','ceil','rng','collaboration.closeRoom','collabStatus.notCollab','collab-client.tooltip.reconnect','toRgbString','kdf','readAsDataURL','merge','/block/','enc','min','charCodeAt','_iv','file','loginUrlKey','unitID','Hex','execute','Warning','@univerjs/engine-formula','responseType','HEARTBEAT_INTERVAL_KEY','_labelPosition','exports','RevisionService','leaveEvent','random','actions','/allowed','DocIMEInputManagerService','synced','@univerjs/design','fromEvent','getOwnPropertyDescriptor','updateMember','_keySchedule','bottom','url(#on-line-single_clip0_910_349)','fillText','IPermissionService','from','APPLY_REJECT','getMemberID','set','DesktopCollaborationStatusDisplayController','@univerjs/docs-ui','getInterceptPoints','getValue','setCurrentUser','_changesetSessionId','_rescheduleHeartbeat','IDLE','IRemoteInstanceService','objectID','format','baseRev','Module','0\x200\x2016\x2016','drawWith','_name','moveTo','RETRY_CONNECTING_MAX_COUNT_KEY','_session','_clearRedo','collab-text-anchor-','getUndoRedoMutationParamsCache','_doReset','[SyncedState]:\x20received\x20acknowledgement.','objectType','IRenderManagerService','confirm','useDependency','storage','endRow','ReactCurrentOwner','save','setUndoRedoMutationParamsCache','jiqing500','_cursorShapes','equals','every','getActiveSheet','lib','patch','AWAITING_WITH_PENDING','close$','SheetsSelectionsService','setItem','Tooltip','getAncestorScale','INTERNAL_ERROR','clone','CollaborationSession','_initResize','UnitEmbedded','CollaborationEntity','_unitStatus','generateRandomId','labelPosition','EmptyMutation','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','MessageType','MemberService','/rev/','string','_getUndoStack','sid','UNIVER_PROJECT','4328910xhmTyU','sessionStatus','getImageSourceCache','get','_getRedoStack','result','idSuffix','method','_onConflict','on-line-single_clip0_910_349','enableOfflineEditing','_collabSessionService','@univerjs/sheets','_onOffline','url','INVALID_ARGUMENT','popstate','_localCacheService','makeDirty','_sendHeartbeatTimer','LocalUndoRedoService','handleInsertCol','getViewport','RichTextEditingMutation','createEncryptor','@univerjs/drawing','_entities','resolve','/collaborator','_cursorInfo$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','1079944NCYEkT','IMessageService','onTransformRemoteChangesetByStateCache','/object/','csAckEvent','_clearOtherTimers','_collabCursorController','UNIVER_UNKNOWN','_handler','_themeService','_invKeySchedule','NodePositionConvertToRectRange','SHA1','getCollabEntity','undoState','currentTheme$','objectActions','NO_OTHER_CLIENTS_EDITING','_listenToOnlineEvent','focused$','onRemoteAck','_DEC_XFORM_MODE','submit\x20changeset\x20error!','SetWorksheetActivateCommand','UNKNOWN_CODE','SUBMIT_CHANGESET','_retryConnectingTimer','session.room-full','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','whenReady','Tools','color','_doCryptBlock','_retryCount','_scheduleSaving','onPointerEnter$','getTypeOfUnitAdded$','assign','UNRECOGNIZED','handleDeleteRangeMoveUp','session','registerDependencies','font','_syncEditingCollabCursor','onlineStatusIcon','selection','awaitingChangeset','_sheetTransformSelectionsService','getAllMembers','SEND_CHANGESET_TIMEOUT','ITelemetryService','socket$','m1Prime','csShouldRetryEvent','COMPRESS_MUTATION_SEND','useCallback','assignAColorForMemberID','_collaborationTimeoutTimer','words','finalize','_docSyncEditingCollabCursorService','listCollaborators','addEventListener','byteLength','shareReplay','message$','NOT_COLLAB','RemoveRowCommandId','propertyIsEnumerable','YUUMI_URL_COL_OUT_OF_RANGE','onTransformSelections','onRemoteChangeset','sessionStatus$','ranges','dispose','CollaborationSocketService','getCurrentRevOfUnit','displayName','updateCursorEvent','#fff','commentUpdateEvent','roomMembers$','_HTTPService','DocStateChangeManagerService','isTransformChangesetsSuccess','_localeService','/universer-api/authz','Plugin','_onRemoteChangeset','clamp','unitId','onRemoteRetry','onTransformRemoteChangesetByIMECache','startRow','_decreaseWaiting','_hideTimer','takeUntil','handleMoveRange','_onCombEvent','handleDeleteRangeMoveLeft','WebSocketService','ERROR_EXCEED_SIZE','[DataLoaderController]','roles','_showConflictNotification','hasher','_handleJoinEvent','_scene','action','EvpKDF','routeKey','send','SnapshotServerOverHTTPService','BuiltInUIPart','_sender','_docTransformStateCacheService','subUnitId','listRoles','connection\x20error','offline','image/jpg','_undoRedoService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','loadSheet','mode','/resources','OFFLINE','reset','randomBytes','closePath','duration','_color','onCommentUpdate','_checkMissing','compose','createElement','event$','loadOfflineData','PERMISSION_REJ','ivSize','_registerRenderDependencies','sequenceExecute','transform','_toggleOnline','_initStatusListener','off-line-single','tag','HttpExport','defineProperty','_scheduleTimestamp','Base64','padding','Subject','create','CONFLICT','has','icon','take','m2Prime','joinEvent','CipherParams','[PendingState]:\x20received\x20rejection.','getVpScrollXYInfoByPosToVp','LICENSE_MAX_UNITS_EXCEEDED','_instanceService','unknown','ReplaySubject','#FFF','userID','_createHmacHelper','CHANGESET_REJ','registerBeforeClose','getParam','_render','_queuedRemoteChangesets','_injector','_onConnectionOpen','UniverNetworkPlugin','doc.mutation.rich-text-editing','_assignedColors','toString','LOGIN_URL_KEY','compute','attrs','UPDATE_CURSOR','post','_key','_init','HEADER_MENU','_getLoginPath','_getCtorByUniverType','onStarting','toggleOffline','SUCCUSS','reduce','_tryEnsureSocket','sheets','currentColor','update','prototype','permission.content','getCurrentUser','_collaborationSessionService','executeCommand','COLORS','collabStatus.conflict','UNKNOWN_CMD','xlink:href','isPermissionRej','newValue','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','registerRenderModule','80WwchIA','splice','Hasher','1120QwAIEQ','_transformRemoteChangesetByIMECache','transformIMECache','infoRsp','members','OTHER_CLIENTS_EDITING','eventID','setActiveRange','HTTPRequest','IUIPartsService','_onRemoteACK','?size=','max','isInternalEditorID','sendChangesetTimeout','unshift','findNodePositionByCharIndex','HEARTBEAT_TIMEOUT_KEY','univer-pro.collaboration-client-socket-service','_docTransformSelectionsService','_scheduleCollaborationTimeoutTimer','SetSelectionsOperation','body','transformMutation','HmacSHA1','next','encode','SheetCollaborationEntity','fill','stringify','_getScale','getImage','exhaustSavingTask','getOwnPropertySymbols','USERS_ENTER','_backgroundColor','_getAPIPrefixPath','_shouldReportTelemetry','_roomMembers','switchMap','_updateState','state','StreamCipher','_getSignURL','POST','find','APPLY_PERMISSION_DENIED','DocSelectionManagerService','status$','_clearTimeoutTimer','subscribe','ThresholdInterceptorFactory','interceptor','_docSkeleton','_resendWithTimeout','\x20in\x20_schedule.','AUTHZ_URL_KEY','_collaborationPaused','headers','Error\x20on\x20receiving\x20event','ISnapshotServerService','_entityInit$','IUniverInstanceService','_parse','evenodd','changesets','_getAPIPrefix','_setupBeforeClosingHandler','getActiveRange','_notificationService','range','init','loadDoc','buffer','ILogService','c1Prime','_state$','slice','_socketService','UniverCollaborationClientPlugin','\x20-\x20','registerComponent','_transformHistoryAndStateStack','@univerjs/core','_unitID','LIVESHARE_NEW_HOST','_createInitialStateImpl','_joinRoom','univerjs-icon\x20univerjs-icon-','[PendingState]:\x20received\x20acknowledgement.','collaborators','with','split','createCollaborator','HttpImport','_change$','createDecryptor','getRandomValues','onRendered','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','url(#$1','parseProtocolChangeset','_transformRemoteChangesetByStateCache','collabStatus.synced','abs','_draw','SetTextSelectionsOperation','_resendTimeout','_lockTransition','ref','LIVESHARE_OPERATION','current','_onRecvEvent','_telemetryService','WordArray','_scheduleHeartbeat','fillStyle','_onCursorDelete','_handleHover','COLLAB_SUBMIT_CHANGESET_URL','liveShareOperation','closeSession','_selfUnitIDs','black','COMPLETION_FINISHED','_replaceFileID','_handleEvent','workbook','authzUrl','randomUUID','updatePermissionPoint','_prevBlock','createIdentifier','permission.title','_loadSheet','_socketMessageSubscription','CommandType','saveChangeset','connectInjector','getColor','?url=','sheetID','onTransformChange$','_updateLocalCache','error$','_type','getSkeleton','rev','/object','deserializeRangeWithSheet','_range','_snapshotServerService','serializeRangeWithSheet','ILocalStorageService','text','triggerDblclick','/fetchmissing?from=','50019wrzZZX','children','_memberService','...','path','signUrlServerUrl','data','handleIRemoveCol','session.will-retry','rgba(255,\x20255,\x20255,\x200.01)','deleteCollaborator','RECV','DataLoaderController','blue400','_onConnectionFailed','_substituteRedoStack','_clearScheduledTask','disableLocalCache','UniverIcon','DOC_RANGE_TYPE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_timeoutTimer','_sessionStatus$','onload','enableLocalCache','univer-online-status-icon','disposeWithMe','_docTransformIMECacheService','onSendChangeset','_textBubble','updatePermissionObjEvent','_acknowledgedAwaitingChangeset','debounce','toDisposable','iterations','_messageService','fetchMissingChangesets','_updateStatus','verdancy600','_createHelper','/unit/','onMissedChangesetFetched','floor','allowed','href','telemetry\x20info\x20is\x20not\x20initialized','saveImage','UniverCollaborationPlugin','CompressMutationService','LICENSE_IMPORT_SIZE_EXCEEDED','Inject','setWaitCount','close','/universer-api/oidc/authpage','setShapeProps','_data','_transformService','react.fragment','_nRounds','image/bmp','_eventUnsubscribe','entries','cfg','CollaborationSessionService','joinRsp','_waitCount','debug','colorChannel1','_substituteUndoStack','_getCurrentRevision','[CollaborationEntity]','_stopTelemetryCollaborationNewChangeset','DEFAULT_FILE_NAME','SnapshotService','USERS_LEAVE','ColorKit','_waitForHeartbeatResponse','JOINING'];_0x47dd=function(){return _0x254fb3;};return _0x47dd();}function At(_0x5af0ba){return'unit-cache-'+_0x5af0ba;}var bi=Object[_0x54516d(0x461)],Ti=Object[_0x54516d(0x363)],Ri=(_0x402b22,_0x41aca8,_0x43eb07,_0x5f2205)=>{const _0x16ff40=_0x54516d;for(var _0x511144=_0x5f2205>0x1?void 0x0:_0x5f2205?Ti(_0x41aca8,_0x43eb07):_0x41aca8,_0x6ff59e=_0x402b22[_0x16ff40(0x5e8)]-0x1,_0x821b48;_0x6ff59e>=0x0;_0x6ff59e--)(_0x821b48=_0x402b22[_0x6ff59e])&&(_0x511144=(_0x5f2205?_0x821b48(_0x41aca8,_0x43eb07,_0x511144):_0x821b48(_0x511144))||_0x511144);return _0x5f2205&&_0x511144&&bi(_0x41aca8,_0x43eb07,_0x511144),_0x511144;},Qe=(_0x2c1096,_0xf896fd)=>(_0x5a920c,_0x5c0a6d)=>_0xf896fd(_0x5a920c,_0x5c0a6d,_0x2c1096);function yi(_0x6ef84d){const _0x393e3c=_0x54516d,{unitID:_0x2acccc,mutations:_0x1d57b6}=_0x6ef84d;return{'unitId':_0x2acccc,'subUnitId':_0x1d57b6[0x0][_0x393e3c(0x601)][_0x393e3c(0x441)]};}let ke=class{constructor(_0x3d3cfc,_0x3a414e,_0xbe94cc){const _0x15508f=_0x54516d;this[_0x15508f(0x47c)]=_0x3d3cfc,this[_0x15508f(0x579)]=_0x3a414e,this[_0x15508f(0x471)]=_0xbe94cc;}[_0x54516d(0x2bc)](_0x1415ef){const _0x143ac6=_0x54516d;var _0x54ac57,_0x1b69b9,_0x4c77de,_0x51ef61;const _0x45121e=this['_injector'][_0x143ac6(0x3b1)](k[_0x143ac6(0x398)]),{unitId:_0x42dccc,subUnitId:_0xda7310}=yi(_0x1415ef),_0xdd77ac=_0x45121e[_0x143ac6(0x2fa)](_0x42dccc)[_0x143ac6(0x5dc)](),_0x298fbc=(_0x1b69b9=(_0x54ac57=this['_instanceService'][_0x143ac6(0x25b)](_0x42dccc))==null?void 0x0:_0x54ac57[_0x143ac6(0x393)]())==null?void 0x0:_0x1b69b9[_0x143ac6(0x297)]();if(_0xdd77ac[_0x143ac6(0x5e8)]===0x0||!_0x42dccc||!_0xda7310)return;const _0x55e8a2=[{'id':k[_0x143ac6(0x4b9)]['id'],'params':{'unitId':_0x42dccc,'subUnitId':_0x298fbc,'selections':a[_0x143ac6(0x3eb)][_0x143ac6(0x330)](_0xdd77ac)}}],_0x3215f3=this[_0x143ac6(0x579)][_0x143ac6(0x1cd)](_0x1415ef,_0x55e8a2);if(!S['isTransformMutationsWithChangesetSuccess'](_0x3215f3))throw _0x3215f3[_0x143ac6(0x29f)];const _0x261f2a=(_0x51ef61=(_0x4c77de=_0x3215f3['m2Prime'][0x0])==null?void 0x0:_0x4c77de['params'])==null?void 0x0:_0x51ef61[_0x143ac6(0x2ae)];if(Array[_0x143ac6(0x5a7)](_0x261f2a)&&_0x261f2a[_0x143ac6(0x5e8)]){if(_0x261f2a['length']===_0x55e8a2[0x0][_0x143ac6(0x601)][_0x143ac6(0x2ae)][_0x143ac6(0x5e8)]&&_0x261f2a[_0x143ac6(0x392)]((_0x1eb2e9,_0xd08515)=>a[_0x143ac6(0x1d3)][_0x143ac6(0x391)](_0x1eb2e9[_0x143ac6(0x4ea)],_0x55e8a2[0x0][_0x143ac6(0x601)]['selections'][_0xd08515][_0x143ac6(0x4ea)])))return;this[_0x143ac6(0x47c)]['get'](a[_0x143ac6(0x18a)])[_0x143ac6(0x498)](k[_0x143ac6(0x4b9)]['id'],{'unitId':_0x42dccc,'subUnitId':_0x298fbc,'selections':_0x261f2a});}}};ke=Ri([Qe(0x0,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),Qe(0x1,S[_0x54516d(0x5bd)]),Qe(0x2,a[_0x54516d(0x4e2)])],ke);const qe=a['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var un=(_0x4fdd54=>(_0x4fdd54[_0x4fdd54[_0x54516d(0x3de)]=0x0]=_0x54516d(0x3de),_0x4fdd54[_0x4fdd54[_0x54516d(0x4a9)]=0x1]=_0x54516d(0x4a9),_0x4fdd54))(un||{});const Nt=0x7530,Lt=_0x54516d(0x17a);class Oi extends a[_0x54516d(0x25e)]{constructor(){const _0x280263=_0x54516d;super(),I(this,_0x280263(0x1d5),a[_0x280263(0x3eb)]['generateRandomId']()),I(this,_0x280263(0x51e),new Set()),I(this,_0x280263(0x5d6),new Map()),I(this,_0x280263(0x2d3),null),I(this,_0x280263(0x3d2),new Map()),I(this,_0x280263(0x3a2),new Map()),this['_init']();}['dispose'](){const _0x22a1e5=_0x54516d;super['dispose'](),this[_0x22a1e5(0x3d2)][_0x22a1e5(0x1ba)]((_0x51fd15,_0x59cca9)=>this[_0x22a1e5(0x28b)](_0x59cca9)),this[_0x22a1e5(0x2d3)]&&window[_0x22a1e5(0x621)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3788f2){const _0x5ca083=_0x54516d;return this['_ensureSubject'](_0x3788f2)['pipe'](A[_0x5ca083(0x1fe)]());}['editingUnit'](_0x33a080){const _0x564b70=_0x54516d;this['_selfUnitIDs'][_0x564b70(0x5c0)]===0x0&&this[_0x564b70(0x517)](),this[_0x564b70(0x51e)][_0x564b70(0x2ba)](_0x33a080),this['_send']({'type':0x0,'memberID':this[_0x564b70(0x1d5)],'unitIDs':[_0x33a080],'isForwarded':!0x1});}[_0x54516d(0x5cc)](_0x4eb2be){const _0x32973a=_0x54516d;this[_0x32973a(0x51e)]['delete'](_0x4eb2be),this[_0x32973a(0x51e)]['size']===0x0&&this[_0x32973a(0x2d3)]&&window['clearInterval'](this[_0x32973a(0x2d3)]);}[_0x54516d(0x488)](){const _0x309394=_0x54516d;this['disposeWithMe'](a[_0x309394(0x562)](A[_0x309394(0x362)](window,_0x309394(0x38a))[_0x309394(0x4d6)](_0x62c7fc=>{const _0x5956fc=_0x309394;if(_0x62c7fc[_0x5956fc(0x5f3)]!==Lt||!_0x62c7fc[_0x5956fc(0x49e)])return;const _0x54592a=JSON[_0x5956fc(0x2a0)](_0x62c7fc[_0x5956fc(0x49e)]);this[_0x5956fc(0x522)](_0x54592a);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x309394(0x1d5)],'unitIDs':Array[_0x309394(0x36a)](this[_0x309394(0x51e)])}));}[_0x54516d(0x522)](_0x58f8cf){const _0x5fa78e=_0x54516d;switch(_0x58f8cf[_0x5fa78e(0x242)]){case 0x0:this[_0x5fa78e(0x437)](_0x58f8cf);break;case 0x1:this['_handleLeaveEvent'](_0x58f8cf);break;case 0x2:this[_0x5fa78e(0x219)](_0x58f8cf);break;}}[_0x54516d(0x437)](_0x36f5ea){const _0x50b858=_0x54516d,{unitIDs:_0x55efc0,memberID:_0x3f31b1,isForwarded:_0x542d75}=_0x36f5ea;_0x55efc0[_0x50b858(0x1ba)](_0x2c5bb3=>{const _0x85fafd=_0x50b858;if(!_0x542d75&&this[_0x85fafd(0x5d6)][_0x85fafd(0x468)](_0x2c5bb3)&&this[_0x85fafd(0x218)](_0x2c5bb3)['next'](0x1),!this[_0x85fafd(0x5d6)][_0x85fafd(0x468)](_0x2c5bb3)||!this['_unitOnClients'][_0x85fafd(0x3b1)](_0x2c5bb3)[_0x85fafd(0x468)](_0x3f31b1)){const _0x536343=this['_unitOnClients'][_0x85fafd(0x3b1)](_0x2c5bb3)||new Set();_0x536343[_0x85fafd(0x2ba)](_0x3f31b1),this[_0x85fafd(0x5d6)]['set'](_0x2c5bb3,_0x536343),this[_0x85fafd(0x5d3)](_0x3f31b1);}}),_0x542d75||this[_0x50b858(0x314)]({'type':0x0,'memberID':this[_0x50b858(0x1d5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x54516d(0x5d3)](_0x24d5f8){const _0x4bac8c=_0x54516d;this[_0x4bac8c(0x28b)](_0x24d5f8);const _0x2b111f=window[_0x4bac8c(0x1ae)](()=>{const _0x2fbfb2=_0x4bac8c;this[_0x2fbfb2(0x5d6)][_0x2fbfb2(0x1ba)](_0x14b7a9=>{const _0xca1aaa=_0x2fbfb2;_0x14b7a9[_0xca1aaa(0x1c4)](_0x24d5f8);});},Nt*0x2);this['_clearOtherTimers'][_0x4bac8c(0x36d)](_0x24d5f8,_0x2b111f);}[_0x54516d(0x28b)](_0x4f9aea){const _0x20996f=_0x54516d;if(this[_0x20996f(0x3d2)][_0x20996f(0x468)](_0x4f9aea)){const _0x123afa=this[_0x20996f(0x3d2)]['get'](_0x4f9aea);_0x123afa&&window[_0x20996f(0x289)](_0x123afa),this[_0x20996f(0x3d2)][_0x20996f(0x36d)](_0x4f9aea,null);}}[_0x54516d(0x1dc)](_0x51a343){const _0x515ea4=_0x54516d,{memberID:_0x45edeb,unitIDs:_0x2178a6}=_0x51a343;_0x2178a6[_0x515ea4(0x1ba)](_0x2d7979=>{const _0xd4ad48=_0x515ea4;var _0x485662;const _0x2e9d3c=this[_0xd4ad48(0x5d6)][_0xd4ad48(0x3b1)](_0x2d7979);_0x2e9d3c&&(_0x2e9d3c[_0xd4ad48(0x1c4)](_0x45edeb),(_0x485662=this['_ensureSubject'](_0x2d7979))==null||_0x485662[_0xd4ad48(0x4bd)](_0x2e9d3c[_0xd4ad48(0x5c0)]===0x0?0x0:0x1));}),this[_0x515ea4(0x28b)](_0x45edeb);}[_0x54516d(0x219)](_0xddf58b){const _0x4d0587=_0x54516d;this[_0x4d0587(0x5d3)](_0xddf58b['memberID']);}[_0x54516d(0x314)](_0x14eb3c){const _0x16fb66=_0x54516d;localStorage[_0x16fb66(0x399)](Lt,JSON[_0x16fb66(0x4c1)](_0x14eb3c));}[_0x54516d(0x517)](){const _0x210bca=_0x54516d;this[_0x210bca(0x2d3)]=window[_0x210bca(0x2b6)](()=>{const _0x1ca3dd=_0x210bca;this[_0x1ca3dd(0x314)]({'type':0x2,'memberID':this[_0x1ca3dd(0x1d5)]});},Nt);}[_0x54516d(0x218)](_0x54d4ee){const _0x59642b=_0x54516d;return this[_0x59642b(0x3a2)][_0x59642b(0x468)](_0x54d4ee)||this[_0x59642b(0x3a2)]['set'](_0x54d4ee,new A[(_0x59642b(0x598))](0x0)),this[_0x59642b(0x3a2)]['get'](_0x54d4ee);}}var Di=Object[_0x54516d(0x461)],wi=Object[_0x54516d(0x363)],Pi=(_0x643ccd,_0x30be36,_0x324b07,_0x54565b)=>{const _0x136898=_0x54516d;for(var _0x1b4133=_0x54565b>0x1?void 0x0:_0x54565b?wi(_0x30be36,_0x324b07):_0x30be36,_0x48ca37=_0x643ccd[_0x136898(0x5e8)]-0x1,_0x416c4a;_0x48ca37>=0x0;_0x48ca37--)(_0x416c4a=_0x643ccd[_0x48ca37])&&(_0x1b4133=(_0x54565b?_0x416c4a(_0x30be36,_0x324b07,_0x1b4133):_0x416c4a(_0x1b4133))||_0x1b4133);return _0x54565b&&_0x1b4133&&Di(_0x30be36,_0x324b07,_0x1b4133),_0x1b4133;},et=(_0xe8e353,_0x1c6d6b)=>(_0x5804fb,_0x1b22e1)=>_0x1c6d6b(_0x5804fb,_0x1b22e1,_0xe8e353);let We=class{constructor(_0x201d28,_0xb958b2,_0x2ea565){const _0x3b3097=_0x54516d;this['_injector']=_0x201d28,this[_0x3b3097(0x579)]=_0xb958b2,this[_0x3b3097(0x2df)]=_0x2ea565;}['transformStateCache'](_0x48b824){const _0x155028=_0x54516d;this[_0x155028(0x4f6)](_0x48b824);}[_0x54516d(0x5e6)](_0x43c59b){const _0x21e47e=_0x54516d,{unitID:_0x29803e}=_0x43c59b,{collaboration:_0x31a22f}=this[_0x21e47e(0x2df)]['getStateCache'](_0x29803e);if(_0x31a22f[_0x21e47e(0x5e8)]===0x0)return _0x43c59b;let _0x39b7d7=a['Tools'][_0x21e47e(0x330)](_0x43c59b[_0x21e47e(0x1f3)][0x0]);for(let _0x35f4e8=0x0;_0x35f4e8<_0x31a22f[_0x21e47e(0x5e8)];_0x35f4e8++){const _0x1cd873={'id':_0x21e47e(0x47f),'params':{'unitId':_0x31a22f[_0x35f4e8][_0x21e47e(0x427)],..._0x31a22f[_0x35f4e8][_0x21e47e(0x22c)]}},_0x1d241c=this[_0x21e47e(0x579)][_0x21e47e(0x4bb)](_0x39b7d7,_0x1cd873,!0x1);if(S[_0x21e47e(0x311)](_0x1d241c))throw _0x1d241c[_0x21e47e(0x29f)];_0x39b7d7=_0x1d241c[_0x21e47e(0x401)];}return{...a[_0x21e47e(0x3eb)][_0x21e47e(0x330)](_0x43c59b),'mutations':[_0x39b7d7]};}['_transformHistoryAndStateStack'](_0x6fa5cc){const _0x10c549=_0x54516d,{unitID:_0x3e9116}=_0x6fa5cc,{history:_0x5be158,collaboration:_0x57efd3}=this[_0x10c549(0x2df)]['getStateCache'](_0x3e9116);if(_0x5be158['length']===0x0&&_0x57efd3[_0x10c549(0x5e8)]===0x0)return;const _0x1083f3=[],_0x30bcad=[];let _0x27df90=a[_0x10c549(0x3eb)]['deepClone'](_0x6fa5cc['mutations'][0x0]),_0x38646f=a[_0x10c549(0x3eb)]['deepClone'](_0x6fa5cc[_0x10c549(0x1f3)][0x0]);for(let _0x333fd4=_0x5be158['length']-0x1;_0x333fd4>=0x0;_0x333fd4--){const _0xbba0fa={'id':_0x10c549(0x47f),'params':{'unitId':_0x5be158[_0x333fd4][_0x10c549(0x427)],..._0x5be158[_0x333fd4][_0x10c549(0x3db)]}},_0x5c403e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5be158[_0x333fd4][_0x10c549(0x427)],..._0x5be158[_0x333fd4]['redoState']}},_0x4de10a=this[_0x10c549(0x579)]['transformMutation'](_0x27df90,_0xbba0fa,!0x1),_0x410706=this['_transformService'][_0x10c549(0x4bb)](_0x38646f,_0x5c403e,!0x1);if(S['isTransformMutationFailure'](_0x4de10a))throw _0x4de10a['error'];if(S[_0x10c549(0x311)](_0x410706))throw _0x410706['error'];_0x1083f3[_0x10c549(0x4b3)]({..._0x5be158[_0x333fd4],'undoState':_0x4de10a[_0x10c549(0x46b)][_0x10c549(0x601)],'redoState':_0x410706[_0x10c549(0x46b)][_0x10c549(0x601)]}),_0x27df90=_0x4de10a[_0x10c549(0x401)],_0x38646f=_0x410706[_0x10c549(0x401)];}_0x27df90=a[_0x10c549(0x3eb)][_0x10c549(0x330)](_0x6fa5cc[_0x10c549(0x1f3)][0x0]),_0x38646f=a[_0x10c549(0x3eb)]['deepClone'](_0x6fa5cc[_0x10c549(0x1f3)][0x0]);for(let _0x4402d2=_0x57efd3[_0x10c549(0x5e8)]-0x1;_0x4402d2>=0x0;_0x4402d2--){const _0x25d13e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57efd3[_0x4402d2][_0x10c549(0x427)],..._0x57efd3[_0x4402d2]['undoState']}},_0x59212f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57efd3[_0x4402d2][_0x10c549(0x427)],..._0x57efd3[_0x4402d2][_0x10c549(0x22c)]}},_0x4ce841=this[_0x10c549(0x579)]['transformMutation'](_0x27df90,_0x25d13e,!0x1),_0xc6d1d9=this[_0x10c549(0x579)][_0x10c549(0x4bb)](_0x38646f,_0x59212f,!0x1);if(S[_0x10c549(0x311)](_0x4ce841))throw _0x4ce841['error'];if(S[_0x10c549(0x311)](_0xc6d1d9))throw _0xc6d1d9[_0x10c549(0x29f)];_0x30bcad[_0x10c549(0x4b3)]({..._0x57efd3[_0x4402d2],'undoState':_0x4ce841[_0x10c549(0x46b)][_0x10c549(0x601)],'redoState':_0xc6d1d9[_0x10c549(0x46b)][_0x10c549(0x601)]}),_0x27df90=_0x4ce841[_0x10c549(0x401)],_0x38646f=_0xc6d1d9[_0x10c549(0x401)];}this[_0x10c549(0x2df)]['setStateCache'](_0x3e9116,{'history':_0x1083f3,'collaboration':_0x30bcad});}};We=Pi([et(0x0,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),et(0x1,S[_0x54516d(0x5bd)]),et(0x2,a[_0x54516d(0x573)](J['DocStateChangeManagerService']))],We);function dn(_0x4ef499){const _0x5923e3=_0x54516d;let _0x6b6b2c='';for(const _0x55fcd8 of _0x4ef499){const {startOffset:_0x2bbcf6,endOffset:_0x180f66,isActive:_0x21b82a,rangeType:_0x55c497,segmentId:_0x34457f,segmentPage:_0x1b39ec}=_0x55fcd8;_0x6b6b2c[_0x5923e3(0x5e8)]&&(_0x6b6b2c+=','),_0x6b6b2c+=_0x2bbcf6+':'+_0x180f66+':'+(_0x21b82a?'1':'0')+':'+_0x55c497+':'+_0x34457f+':'+_0x1b39ec;}return _0x6b6b2c;}function Ui(_0x45c80f){const _0x3707f3=_0x54516d,_0x5278db=_0x45c80f[_0x3707f3(0x500)](','),_0x572b42=[];for(const _0x4f78f8 of _0x5278db){const [_0x4a5d55,_0x42d6f6,_0x56c196,_0x5d82cb,_0x5e28ca,_0x3dc229]=_0x4f78f8[_0x3707f3(0x500)](':');_0x572b42[_0x3707f3(0x26e)]({'startOffset':Number(_0x4a5d55),'endOffset':Number(_0x42d6f6),'collapsed':_0x4a5d55===_0x42d6f6,'isActive':_0x56c196==='1','rangeType':_0x5d82cb===a[_0x3707f3(0x554)][_0x3707f3(0x1ef)]?a[_0x3707f3(0x554)]['TEXT']:a[_0x3707f3(0x554)]['RECT'],'segmentId':typeof _0x5e28ca=='string'?String(_0x5e28ca):'','segmentPage':Number(_0x3dc229!=null?_0x3dc229:-0x1)});}return _0x572b42['some'](_0x3cfdd0=>_0x3cfdd0[_0x3707f3(0x5e5)])||(_0x572b42[0x0][_0x3707f3(0x5e5)]=!0x0),_0x572b42;}class Rt extends a[_0x54516d(0x1d6)]{constructor(){const _0x2d06c9=_0x54516d;super(...arguments),I(this,_0x2d06c9(0x294),new A[(_0x2d06c9(0x598))](null)),I(this,_0x2d06c9(0x2ad),this[_0x2d06c9(0x294)]['asObservable']());}[_0x54516d(0x603)](_0x80cbe){const _0x32f2a4=_0x54516d,{unitID:_0x3e519c,memberID:_0x43dd58,textRanges:_0x32539c}=_0x80cbe,_0x49a336=dn(_0x32539c);if(_0x49a336==='')return;const _0x2cf5ec={'unitID':_0x3e519c,'memberID':_0x43dd58,'selection':_0x49a336};this[_0x32f2a4(0x294)]['next'](_0x2cf5ec);}}var Mi=Object['defineProperty'],Ai=Object[_0x54516d(0x363)],Ni=(_0xd22645,_0x185620,_0x3addc5,_0x5d54b4)=>{const _0x15062c=_0x54516d;for(var _0x25a87b=_0x5d54b4>0x1?void 0x0:_0x5d54b4?Ai(_0x185620,_0x3addc5):_0x185620,_0x243732=_0xd22645[_0x15062c(0x5e8)]-0x1,_0x48f6ce;_0x243732>=0x0;_0x243732--)(_0x48f6ce=_0xd22645[_0x243732])&&(_0x25a87b=(_0x5d54b4?_0x48f6ce(_0x185620,_0x3addc5,_0x25a87b):_0x48f6ce(_0x25a87b))||_0x25a87b);return _0x5d54b4&&_0x25a87b&&Mi(_0x185620,_0x3addc5,_0x25a87b),_0x25a87b;},xt=(_0x3bacb7,_0x287186)=>(_0x30b129,_0x375e31)=>_0x287186(_0x30b129,_0x375e31,_0x3bacb7);let Fe=class{constructor(_0x21c48a,_0x1438a0){const _0x300e05=_0x54516d;this[_0x300e05(0x47c)]=_0x21c48a,this[_0x300e05(0x579)]=_0x1438a0;}['transformSelections'](_0x3e9796){const _0x13d773=_0x54516d;var _0x592369;const _0x2ebfbd=this[_0x13d773(0x47c)][_0x13d773(0x3b1)](ye['DocSelectionManagerService']),_0x4c58e0=(_0x592369=_0x2ebfbd[_0x13d773(0x27e)]())!=null?_0x592369:[];if(_0x4c58e0['length']===0x0)return;const _0x2b3651=_0x3e9796['unitID'],_0x3bbc6f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b3651,'actions':null,'textRanges':_0x4c58e0}}],_0x3a7654=this[_0x13d773(0x579)][_0x13d773(0x1cd)](_0x3e9796,_0x3bbc6f);if(!S[_0x13d773(0x5da)](_0x3a7654))throw _0x3a7654[_0x13d773(0x29f)];const _0x18659f=_0x3a7654['m2Prime'][0x0][_0x13d773(0x601)][_0x13d773(0x329)];Array[_0x13d773(0x5a7)](_0x18659f)&&_0x18659f[_0x13d773(0x5e8)]&&_0x2ebfbd[_0x13d773(0x334)](_0x18659f,{'unitId':_0x2b3651,'subUnitId':_0x2b3651},!0x1);}};Fe=Ni([xt(0x0,a['Inject'](a[_0x54516d(0x33a)])),xt(0x1,S[_0x54516d(0x5bd)])],Fe);const Li=new Set([k['InsertSheetMutation']['id']]);function jt(_0x4574fb,_0x5aa872,_0x2b812d,_0x184611,_0x52508d){const _0x172f3a=_0x54516d;var _0x16f9d7,_0x851f0f,_0x14ddd0,_0x1ad0a0;const _0x41d603=[];for(const _0x4607d2 of _0x4574fb)if(Li['has'](_0x4607d2['id'])){if(_0x41d603[_0x172f3a(0x5e8)]>0x0)break;_0x41d603[_0x172f3a(0x26e)](_0x4607d2);break;}else _0x41d603[_0x172f3a(0x26e)](_0x4607d2);const _0x1b94d8=(_0x851f0f=(_0x16f9d7=_0x52508d[_0x172f3a(0x496)]())==null?void 0x0:_0x16f9d7[_0x172f3a(0x475)])!=null?_0x851f0f:_0x172f3a(0x472),_0x2ae54e=(_0x1ad0a0=(_0x14ddd0=_0x52508d[_0x172f3a(0x496)]())==null?void 0x0:_0x14ddd0[_0x172f3a(0x24b)])!=null?_0x1ad0a0:'unknown';return{'changeset':{'unitID':_0x5aa872,'type':S[_0x172f3a(0x1e9)](_0x2b812d[_0x172f3a(0x5c9)](_0x5aa872)),'baseRev':_0x184611[_0x172f3a(0x419)](_0x5aa872),'revision':0x0,'userID':_0x1b94d8,'memberID':_0x2ae54e,'mutations':_0x41d603},'pendingMutations':_0x4574fb['slice'](_0x41d603[_0x172f3a(0x5e8)])};}function xi(_0x5241ec,_0x40b83e,_0x5afd7a,_0x118058,_0x2e0d11){const _0x33a83e=_0x54516d;var _0x56758f,_0x22abd4,_0x175e91,_0x17ae3a;const _0x3e0403=[_0x5241ec[_0x33a83e(0x48f)]((_0x39e5c7,_0x3a412b)=>{const _0x1c9060=_0x33a83e;var _0xc0ff53;const {id:_0x43ac9d}=_0x39e5c7,{id:_0x1eff9a,type:_0x3cdc46}=_0x3a412b,_0x4893f7=(_0xc0ff53=_0x39e5c7['params'])!=null?_0xc0ff53:{'actions':null},_0x3359f8=_0x3a412b[_0x1c9060(0x601)];if(_0x43ac9d&&_0x43ac9d!==_0x1eff9a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x43ac9d+_0x1c9060(0x4f4)+_0x1eff9a+'.');return{..._0x39e5c7,'id':_0x1eff9a,'type':_0x3cdc46,'params':{'unitId':_0x3359f8['unitId'],'textRanges':_0x3359f8[_0x1c9060(0x329)],'actions':a[_0x1c9060(0x255)][_0x1c9060(0x453)](_0x4893f7['actions'],_0x3359f8[_0x1c9060(0x35d)])}};},{})],_0x519d86=(_0x22abd4=(_0x56758f=_0x2e0d11[_0x33a83e(0x496)]())==null?void 0x0:_0x56758f['userID'])!=null?_0x22abd4:_0x33a83e(0x472),_0x30691a=(_0x17ae3a=(_0x175e91=_0x2e0d11['getCurrentUser']())==null?void 0x0:_0x175e91['memberID'])!=null?_0x17ae3a:'unknown';return{'changeset':{'unitID':_0x40b83e,'type':S[_0x33a83e(0x1e9)](_0x5afd7a['getUnitType'](_0x40b83e)),'baseRev':_0x118058[_0x33a83e(0x419)](_0x40b83e),'revision':0x0,'userID':_0x519d86,'memberID':_0x30691a,'mutations':_0x3e0403},'pendingMutations':[]};}function fn(_0xea416d,_0x35321c){const _0x5434c6=_0x54516d,_0x3427b3=new A[(_0x5434c6(0x473))](0x1);return setTimeout(()=>_0x3427b3[_0x5434c6(0x4bd)](_0x35321c),_0xea416d),_0x3427b3['asObservable']()[_0x5434c6(0x5f2)](A[_0x5434c6(0x46a)](0x1));}const ji={'id':k[_0x54516d(0x3a5)]['id'],'type':a[_0x54516d(0x52c)][_0x54516d(0x5f9)],'params':{}};var $i=Object[_0x54516d(0x461)],Hi=Object['getOwnPropertyDescriptor'],Ie=(_0x192435,_0x5857fc,_0x57079b,_0x3d618e)=>{const _0x360815=_0x54516d;for(var _0x51055a=_0x3d618e>0x1?void 0x0:_0x3d618e?Hi(_0x5857fc,_0x57079b):_0x5857fc,_0x46cf6c=_0x192435[_0x360815(0x5e8)]-0x1,_0x453e6f;_0x46cf6c>=0x0;_0x46cf6c--)(_0x453e6f=_0x192435[_0x46cf6c])&&(_0x51055a=(_0x3d618e?_0x453e6f(_0x5857fc,_0x57079b,_0x51055a):_0x453e6f(_0x51055a))||_0x51055a);return _0x3d618e&&_0x51055a&&$i(_0x5857fc,_0x57079b,_0x51055a),_0x51055a;},N=(_0x1cf7c9,_0x4a5118)=>(_0x30e51a,_0x14e2bf)=>_0x4a5118(_0x30e51a,_0x14e2bf,_0x1cf7c9),q=(_0x8f97d7=>(_0x8f97d7['NOT_COLLAB']=_0x54516d(0x1a3),_0x8f97d7[_0x54516d(0x1fd)]=_0x54516d(0x360),_0x8f97d7[_0x54516d(0x1e4)]='pending',_0x8f97d7['AWAITING']=_0x54516d(0x266),_0x8f97d7[_0x54516d(0x396)]='awaiting_with_pending',_0x8f97d7['FETCH_MISS']=_0x54516d(0x25a),_0x8f97d7[_0x54516d(0x467)]=_0x54516d(0x5ff),_0x8f97d7[_0x54516d(0x44b)]=_0x54516d(0x444),_0x8f97d7))(q||{});const vn=0xea60;class Ce{constructor(_0xc61314,_0x4ee32b,_0x4178d2,_0x2ab749,_0xf51d4f,_0x36feb7,_0x64b9d0,_0x55f76f,_0x421e23){const _0x4217b5=_0x54516d;I(this,'_awaitingChangeset',null),I(this,'_pendingMutations',[]),(this[_0x4217b5(0x351)]=_0xc61314,this[_0x4217b5(0x242)]=_0x4ee32b,this[_0x4217b5(0x3d5)]=_0xf51d4f,this[_0x4217b5(0x1ca)]=_0x36feb7,this[_0x4217b5(0x446)]=_0x64b9d0,this['_revisionService']=_0x55f76f,this[_0x4217b5(0x3bf)]=_0x421e23,this[_0x4217b5(0x179)]=_0x4178d2,this[_0x4217b5(0x5f4)]=_0x2ab749);}['_checkMissing'](_0xcec956){const _0x35d94c=_0x54516d,_0x1d9846=this['_revisionService']['getCurrentRevOfUnit'](this[_0x35d94c(0x351)]);return _0xcec956[_0x35d94c(0x30e)]>_0x1d9846+0x1?(this[_0x35d94c(0x3d5)][_0x35d94c(0x172)]({'from':_0x1d9846,'to':_0xcec956[_0x35d94c(0x30e)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x5cef80){const _0x859dad=_0x54516d;this[_0x859dad(0x446)]['transformUndoRedo'](this[_0x859dad(0x351)],_0x5cef80);}['_transformSelections'](_0x5b66ac){const _0x20d373=_0x54516d;var _0x64afa1,_0x55e67c;(_0x55e67c=(_0x64afa1=this[_0x20d373(0x3d5)])[_0x20d373(0x413)])==null||_0x55e67c['call'](_0x64afa1,_0x5b66ac);}['_transformIMECache'](_0x22c2ff){const _0x4344f5=_0x54516d;var _0x4ffe8b,_0x21d04e;return(_0x21d04e=(_0x4ffe8b=this[_0x4344f5(0x3d5)])[_0x4344f5(0x269)])==null?void 0x0:_0x21d04e['call'](_0x4ffe8b,_0x22c2ff);}[_0x54516d(0x24f)](_0x3d16b3){var _0xa72c64,_0x1c0ead;return(_0x1c0ead=(_0xa72c64=this['_handler'])['onTransformState'])==null?void 0x0:_0x1c0ead['call'](_0xa72c64,_0x3d16b3);}[_0x54516d(0x4a5)](_0x1b8554){const _0x123a13=_0x54516d;var _0x3f4068,_0x1ce7da,_0x42fbe6;return(_0x42fbe6=(_0x1ce7da=(_0x3f4068=this[_0x123a13(0x3d5)])[_0x123a13(0x429)])==null?void 0x0:_0x1ce7da[_0x123a13(0x2a5)](_0x3f4068,_0x1b8554))!=null?_0x42fbe6:_0x1b8554;}[_0x54516d(0x50a)](_0x4dc2eb){const _0x51dd5e=_0x54516d;var _0x56b886,_0x369c1d,_0x37341b;return(_0x37341b=(_0x369c1d=(_0x56b886=this[_0x51dd5e(0x3d5)])[_0x51dd5e(0x3cf)])==null?void 0x0:_0x369c1d['call'](_0x56b886,_0x4dc2eb))!=null?_0x37341b:_0x4dc2eb;}[_0x54516d(0x3f8)](_0x49d3cf){const _0x2ca9c2=_0x54516d;var _0x3ff622,_0x33197c;if(this[_0x2ca9c2(0x242)]===ie[_0x2ca9c2(0x60e)]){const {unitID:_0x2dcdbe,mutations:_0x4029a8,memberID:_0x2c8012}=_0x49d3cf,_0x4a4f8e=_0x4029a8[0x0][_0x2ca9c2(0x601)][_0x2ca9c2(0x329)];Array[_0x2ca9c2(0x5a7)](_0x4a4f8e)&&_0x4a4f8e[_0x2ca9c2(0x5e8)]>0x0&&((_0x33197c=(_0x3ff622=this[_0x2ca9c2(0x3d5)])['onSyncEditingCollabCursor'])==null||_0x33197c[_0x2ca9c2(0x2a5)](_0x3ff622,{'unitID':_0x2dcdbe,'memberID':_0x2c8012,'textRanges':_0x4a4f8e}));}}[_0x54516d(0x533)](){const _0x4a9984=_0x54516d;this[_0x4a9984(0x3bf)][_0x4a9984(0x1fb)](this[_0x4a9984(0x351)],this[_0x4a9984(0x242)],this[_0x4a9984(0x179)],this['_pendingMutations']);}[_0x54516d(0x586)](){const _0x4e3c07=_0x54516d;return this['_revisionService'][_0x4e3c07(0x419)](this[_0x4e3c07(0x351)]);}[_0x54516d(0x61e)](){const _0x5153ae=_0x54516d;this['_revisionService']['incrementRevOfUnit'](this[_0x5153ae(0x351)]);}[_0x54516d(0x2ac)](_0x474336){const _0x5736d2=_0x54516d;var _0x29ea86;let _0x5a6e8e=this[_0x5736d2(0x4a5)](_0x474336);_0x5a6e8e=this[_0x5736d2(0x50a)](_0x5a6e8e);const _0x431c1c=a[_0x5736d2(0x45a)](_0x5a6e8e[_0x5736d2(0x1f3)],this['_commandService'],{'fromCollab':!0x0});if(!_0x431c1c['result'])throw _0x431c1c[_0x5736d2(0x29f)]instanceof Error?_0x431c1c[_0x5736d2(0x29f)]:new Error((_0x29ea86=_0x431c1c['error'])!=null?_0x29ea86:_0x5736d2(0x5c7));this[_0x5736d2(0x216)](_0x5a6e8e),this[_0x5736d2(0x24f)](_0x5a6e8e),this['_transformUndoredo'](_0x474336),this[_0x5736d2(0x223)](_0x5a6e8e),this[_0x5736d2(0x3f8)](_0x5a6e8e),this[_0x5736d2(0x61e)]();}}let Oe=class extends Ce{constructor(_0xf18a3e,_0x380905,_0x191f28,_0x5bf33a,_0x3ec0c5,_0x30828f,_0x48d66c,_0x1de318,_0x384ff6,_0x161de7){const _0x4d9888=_0x54516d;super(_0xf18a3e,_0x380905,null,[],_0x191f28,_0x1de318,_0x48d66c,_0x5bf33a,_0x3ec0c5),I(this,'status',_0x4d9888(0x360)),(this[_0x4d9888(0x47c)]=_0x30828f,this['_logService']=_0x384ff6,this['_transformService']=_0x161de7);}[_0x54516d(0x1c8)](_0x399781){const _0x497d65=_0x54516d,_0x20709c=this['_injector'][_0x497d65(0x5d2)](ce,this['unitID'],this[_0x497d65(0x242)],[_0x399781],this[_0x497d65(0x3d5)]);return _0x20709c['_schedule'](),_0x20709c[_0x497d65(0x533)](),_0x20709c;}[_0x54516d(0x414)](_0xadcb9){const _0x8f2abb=_0x54516d;if(this[_0x8f2abb(0x452)](_0xadcb9))return this[_0x8f2abb(0x47c)][_0x8f2abb(0x5d2)](re,this[_0x8f2abb(0x351)],this[_0x8f2abb(0x242)],null,[],null,[_0xadcb9],this['_handler']);try{const _0x1b3926=this['_transformService'][_0x8f2abb(0x1cd)](_0xadcb9,[ji]);if(S[_0x8f2abb(0x5da)](_0x1b3926)){const {c1Prime:_0x27f492}=_0x1b3926;return this['_executeRemoteChangeset'](_0x27f492),this;}throw _0x1b3926[_0x8f2abb(0x29f)];}catch(_0x5cf690){return this[_0x8f2abb(0x241)]['error'](_0x5cf690),this[_0x8f2abb(0x3b6)](!0x1);}}[_0x54516d(0x3b6)](_0x6e5b4a){const _0x39bcef=_0x54516d;return this[_0x39bcef(0x47c)][_0x39bcef(0x5d2)](ve,this[_0x39bcef(0x351)],this['type'],null,[],this['_handler'],_0x6e5b4a);}[_0x54516d(0x3e1)](){const _0x570f7c=_0x54516d;throw new Error(_0x570f7c(0x385));}[_0x54516d(0x2c1)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x4ff3fc=_0x54516d;return this['_injector'][_0x4ff3fc(0x5d2)](me,this['unitID'],this[_0x4ff3fc(0x242)],null,[],this[_0x4ff3fc(0x3d5)]);}[_0x54516d(0x222)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x54516d(0x5d4)](){const _0x2d5c31=_0x54516d,_0x145561=this[_0x2d5c31(0x1cc)][_0x2d5c31(0x419)](this['unitID']);return this[_0x2d5c31(0x3d5)][_0x2d5c31(0x172)]({'from':_0x145561,'to':0x0}),this[_0x2d5c31(0x47c)][_0x2d5c31(0x5d2)](re,this['unitID'],this[_0x2d5c31(0x242)],null,[],null,[],this[_0x2d5c31(0x3d5)]);}};Oe=Ie([N(0x3,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),N(0x4,a[_0x54516d(0x573)](exports['LocalCacheService'])),N(0x5,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),N(0x6,a['IUndoRedoService']),N(0x7,a[_0x54516d(0x18a)]),N(0x8,a['ILogService']),N(0x9,S['ITransformService'])],Oe);let ce=class extends Ce{constructor(_0x34443f,_0x67d702,_0x20fda4,_0x49b06b,_0x7c3582,_0x8795d5,_0x33a08a,_0x376b66,_0x576bd0,_0x3f5234,_0x2bafca,_0x2593f7,_0x1044df,_0x250938){const _0x4ad3b1=_0x54516d;super(_0x34443f,_0x67d702,null,_0x20fda4,_0x49b06b,_0x3f5234,_0x250938,_0x8795d5,_0x33a08a),I(this,'status',_0x4ad3b1(0x18b)),I(this,_0x4ad3b1(0x462),null),I(this,_0x4ad3b1(0x5d9),null),(this[_0x4ad3b1(0x47c)]=_0x7c3582,this['_memberService']=_0x376b66,this[_0x4ad3b1(0x241)]=_0x576bd0,this[_0x4ad3b1(0x2a3)]=_0x2bafca,this[_0x4ad3b1(0x579)]=_0x2593f7,this[_0x4ad3b1(0x228)]=_0x1044df);}[_0x54516d(0x1c8)](_0x4f6d1f){const _0x28623e=_0x54516d;return this[_0x28623e(0x5f4)][_0x28623e(0x26e)](_0x4f6d1f),this[_0x28623e(0x533)](),this;}[_0x54516d(0x414)](_0x4ef884){const _0x539ea9=_0x54516d;if(this[_0x539ea9(0x452)](_0x4ef884))return this[_0x539ea9(0x551)](),this[_0x539ea9(0x47c)][_0x539ea9(0x5d2)](re,this['unitID'],this[_0x539ea9(0x242)],null,this[_0x539ea9(0x5f4)],null,[_0x4ef884],this[_0x539ea9(0x3d5)]);try{const _0x379e1c=this[_0x539ea9(0x579)][_0x539ea9(0x1cd)](_0x4ef884,this[_0x539ea9(0x5f4)]);if(S[_0x539ea9(0x5da)](_0x379e1c)){const {c1Prime:_0x4bf12a,m2Prime:_0x389cd6}=_0x379e1c;this[_0x539ea9(0x2ac)](_0x4bf12a);const _0x1613d0=this[_0x539ea9(0x47c)][_0x539ea9(0x5d2)](ce,this[_0x539ea9(0x351)],this[_0x539ea9(0x242)],_0x389cd6,this['_handler']);return this[_0x539ea9(0x551)](),_0x1613d0[_0x539ea9(0x20b)](this['_scheduleTimestamp']?Math[_0x539ea9(0x4b0)](0x0,new Date()['getTime']()-this[_0x539ea9(0x462)]):this[_0x539ea9(0x1a0)]()),_0x1613d0;}throw _0x379e1c['error'];}catch(_0x548cf4){return this[_0x539ea9(0x241)][_0x539ea9(0x29f)](_0x548cf4),this['_onConflict'](!0x1);}}[_0x54516d(0x3e1)](){const _0x21b4b6=_0x54516d;throw new Error(_0x21b4b6(0x4fd));}[_0x54516d(0x2c1)](){const _0x3df905=_0x54516d;throw new Error(_0x3df905(0x46e));}[_0x54516d(0x428)](){return this;}[_0x54516d(0x48d)](){const _0x802d20=_0x54516d;return this[_0x802d20(0x551)](),this[_0x802d20(0x47c)][_0x802d20(0x5d2)](me,this[_0x802d20(0x351)],this[_0x802d20(0x242)],null,this[_0x802d20(0x5f4)],this[_0x802d20(0x3d5)]);}[_0x54516d(0x222)](){return this;}[_0x54516d(0x20b)](_0x20d3ff){const _0x21d9fc=_0x54516d,_0x59638e=_0x20d3ff!=null?_0x20d3ff:this[_0x21d9fc(0x1a0)]();this[_0x21d9fc(0x462)]=new Date()[_0x21d9fc(0x2e4)](),this[_0x21d9fc(0x5d9)]=window[_0x21d9fc(0x1ae)](()=>{const _0x53a88d=_0x21d9fc;this[_0x53a88d(0x551)]();let _0x10ad11=null;switch(this[_0x53a88d(0x242)]){case ie['UNIVER_SHEET']:{_0x10ad11=jt(this[_0x53a88d(0x5f4)],this[_0x53a88d(0x351)],this[_0x53a88d(0x228)],this[_0x53a88d(0x1cc)],this['_memberService']);break;}case ie[_0x53a88d(0x60e)]:{this[_0x53a88d(0x5f4)][_0x53a88d(0x392)](_0x2dac6b=>_0x2dac6b['id']===ye[_0x53a88d(0x3c5)]['id'])?_0x10ad11=xi(this[_0x53a88d(0x5f4)],this['unitID'],this[_0x53a88d(0x228)],this[_0x53a88d(0x1cc)],this['_memberService']):_0x10ad11=jt(this[_0x53a88d(0x5f4)],this[_0x53a88d(0x351)],this[_0x53a88d(0x228)],this[_0x53a88d(0x1cc)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53a88d(0x242)]+_0x53a88d(0x4db));}const {changeset:_0x537f64,pendingMutations:_0x35f70b}=_0x10ad11;this['_handler'][_0x53a88d(0x55d)](_0x537f64);const _0x985eab=_0x35f70b['length']?this[_0x53a88d(0x47c)]['createInstance'](le,this['unitID'],this[_0x53a88d(0x242)],_0x537f64,_0x35f70b,this[_0x53a88d(0x3d5)],void 0x0):this[_0x53a88d(0x47c)][_0x53a88d(0x5d2)](fe,this['unitID'],this[_0x53a88d(0x242)],_0x537f64,this[_0x53a88d(0x3d5)]);_0x985eab[_0x53a88d(0x533)](),this[_0x53a88d(0x3d5)][_0x53a88d(0x2dc)](this,_0x985eab);},_0x59638e);}[_0x54516d(0x1a0)](){const _0x21b123=_0x54516d;var _0x3ba4a3;const _0x47843d=this[_0x21b123(0x2a3)][_0x21b123(0x21d)](te);return(_0x3ba4a3=_0x47843d==null?void 0x0:_0x47843d[_0x21b123(0x4b2)])!=null?_0x3ba4a3:kn;}[_0x54516d(0x243)](){const _0x23604c=_0x54516d;throw new Error(_0x23604c(0x507));}[_0x54516d(0x551)](){const _0x5885dc=_0x54516d;this[_0x5885dc(0x5d9)]!=null&&(clearTimeout(this[_0x5885dc(0x5d9)]),this[_0x5885dc(0x5d9)]=null);}['_onConflict'](_0x3362a6){const _0x2d47b4=_0x54516d;return this[_0x2d47b4(0x551)](),this[_0x2d47b4(0x47c)]['createInstance'](ve,this['unitID'],this[_0x2d47b4(0x242)],null,this['_pendingMutations'],this[_0x2d47b4(0x3d5)],_0x3362a6);}};ce=Ie([N(0x4,a[_0x54516d(0x573)](a['Injector'])),N(0x5,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),N(0x6,a['Inject'](exports['LocalCacheService'])),N(0x7,a[_0x54516d(0x573)](exports[_0x54516d(0x3a8)])),N(0x8,a[_0x54516d(0x4ee)]),N(0x9,a[_0x54516d(0x18a)]),N(0xa,a[_0x54516d(0x208)]),N(0xb,S[_0x54516d(0x5bd)]),N(0xc,a[_0x54516d(0x4e2)]),N(0xd,a[_0x54516d(0x5b9)])],ce);let fe=class extends Ce{constructor(_0xdb2e0b,_0x31c9fc,_0x4058e1,_0x3871c0,_0x1cb914,_0x356f96,_0x19390a,_0x254d37,_0x1487ac,_0x5bd96c,_0x32a5b2){const _0x53babb=_0x54516d;super(_0xdb2e0b,_0x31c9fc,_0x4058e1,[],_0x3871c0,_0x254d37,_0x32a5b2,_0x356f96,_0x19390a),I(this,_0x53babb(0x2d5),'awaiting'),I(this,'_resendTimeout',0x0),I(this,_0x53babb(0x5ac)),I(this,_0x53babb(0x43f)),(this[_0x53babb(0x47c)]=_0x1cb914,this[_0x53babb(0x241)]=_0x1487ac,this['_transformService']=_0x5bd96c);}[_0x54516d(0x1c8)](_0x101eba){const _0x493b9e=_0x54516d;this['_clearScheduledTask']();const _0x1d6f35=this[_0x493b9e(0x47c)][_0x493b9e(0x5d2)](le,this[_0x493b9e(0x351)],this['type'],this[_0x493b9e(0x179)],[_0x101eba],this[_0x493b9e(0x3d5)],this[_0x493b9e(0x5ac)]);return _0x1d6f35[_0x493b9e(0x533)](),_0x1d6f35;}[_0x54516d(0x414)](_0x75921f){const _0x5289f7=_0x54516d;if(this[_0x5289f7(0x452)](_0x75921f))return this[_0x5289f7(0x551)](),this[_0x5289f7(0x47c)][_0x5289f7(0x5d2)](re,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x75921f],this[_0x5289f7(0x3d5)]);try{const _0x28bb95=this[_0x5289f7(0x579)][_0x5289f7(0x59f)]([_0x75921f],[this[_0x5289f7(0x179)]],!0x1);if(S['isTransformChangesetsSuccess'](_0x28bb95)){const {c1Prime:_0x1cc988,c2Prime:_0x578636}=_0x28bb95;this[_0x5289f7(0x2ac)](_0x1cc988[0x0]),_0x578636[0x0][_0x5289f7(0x379)]=this['_getCurrentRevision'](),this[_0x5289f7(0x551)]();const _0x8f7bfe=this['_injector'][_0x5289f7(0x5d2)](fe,this['unitID'],this[_0x5289f7(0x242)],_0x578636[0x0],this[_0x5289f7(0x3d5)]);return _0x8f7bfe['_updateLocalCache'](),_0x8f7bfe;}return this[_0x5289f7(0x3b6)](!0x1);}catch(_0x4a197f){return this['_logService'][_0x5289f7(0x29f)](_0x4a197f),this['_onConflict'](!0x1);}}[_0x54516d(0x3e1)](_0x514240){const _0x149a1e=_0x54516d;this[_0x149a1e(0x551)]();const _0x4a8b9b=this[_0x149a1e(0x1cc)][_0x149a1e(0x419)](this[_0x149a1e(0x351)]);if(_0x514240['revision']<_0x4a8b9b-0x1)return this;if(this[_0x149a1e(0x452)](_0x514240))return this[_0x149a1e(0x47c)]['createInstance'](re,this['unitID'],this['type'],null,[],this[_0x149a1e(0x179)],[],this[_0x149a1e(0x3d5)]);this[_0x149a1e(0x61e)]();const _0x35d023=this[_0x149a1e(0x47c)][_0x149a1e(0x5d2)](Oe,this[_0x149a1e(0x351)],this['type'],this[_0x149a1e(0x3d5)]);return _0x35d023[_0x149a1e(0x533)](),_0x35d023;}[_0x54516d(0x2c1)](_0x74a020){const _0x2f44a4=_0x54516d;return this[_0x2f44a4(0x3b6)](!!(_0x74a020!=null&&_0x74a020[_0x2f44a4(0x49d)]));}[_0x54516d(0x428)](_0x208689){const _0x11c33d=_0x54516d;return this[_0x11c33d(0x50f)]>vn?this[_0x11c33d(0x48d)]():(this[_0x11c33d(0x5ac)]=fn(this[_0x11c33d(0x50f)],{'timeout':this['_resendTimeout'],'reqId':_0x208689[_0x11c33d(0x5b6)]}),this[_0x11c33d(0x43f)]=this[_0x11c33d(0x5ac)]['subscribe'](({reqId:_0x40ab0b,timeout:_0x5ddcaf})=>{this['_resendWithTimeout'](_0x40ab0b,_0x5ddcaf);}),this);}[_0x54516d(0x48d)](){const _0x1d4013=_0x54516d;return this['_clearScheduledTask'](),this['_injector'][_0x1d4013(0x5d2)](me,this[_0x1d4013(0x351)],this[_0x1d4013(0x242)],this['_awaitingChangeset'],[],this[_0x1d4013(0x3d5)]);}[_0x54516d(0x222)](){return this;}['resend'](){const _0x3a56c4=_0x54516d;this[_0x3a56c4(0x3d5)]['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x58a2b3){const _0x25e20f=_0x54516d;return this[_0x25e20f(0x551)](),this['_injector'][_0x25e20f(0x5d2)](ve,this[_0x25e20f(0x351)],this[_0x25e20f(0x242)],this[_0x25e20f(0x179)],[],this[_0x25e20f(0x3d5)],_0x58a2b3);}[_0x54516d(0x4da)](_0x48afd0,_0x59555c){const _0x2aa996=_0x54516d;var _0x2e43ec;_0x48afd0===((_0x2e43ec=this[_0x2aa996(0x179)])==null?void 0x0:_0x2e43ec[_0x2aa996(0x5b6)])&&(this['resend'](),this[_0x2aa996(0x50f)]=_0x59555c===0x0?0x3e8:_0x59555c*0x2);}['_clearScheduledTask'](){const _0x16c61c=_0x54516d;var _0x370213;(_0x370213=this[_0x16c61c(0x43f)])==null||_0x370213['unsubscribe'](),this[_0x16c61c(0x50f)]=0x0;}};fe=Ie([N(0x4,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),N(0x5,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),N(0x6,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),N(0x7,a[_0x54516d(0x18a)]),N(0x8,a[_0x54516d(0x4ee)]),N(0x9,S[_0x54516d(0x5bd)]),N(0xa,a['IUndoRedoService'])],fe);let le=class extends Ce{constructor(_0xa3fa0,_0x4a0ff3,_0x27345d,_0x59400a,_0x3bcaa3,_0x44e26d,_0x2bd86,_0x3b803f,_0x21667e,_0x5803e6,_0x1179ba,_0x5dc153,_0x32cea2){const _0x44e9b5=_0x54516d;super(_0xa3fa0,_0x4a0ff3,_0x27345d,_0x59400a,_0x3bcaa3,_0x5803e6,_0x32cea2,_0x3b803f,_0x21667e),I(this,_0x44e9b5(0x2d5),_0x44e9b5(0x5c1)),I(this,_0x44e9b5(0x50f),0x0),I(this,_0x44e9b5(0x5ac)),I(this,_0x44e9b5(0x43f)),(this[_0x44e9b5(0x47c)]=_0x2bd86,this[_0x44e9b5(0x241)]=_0x1179ba,this[_0x44e9b5(0x579)]=_0x5dc153,_0x44e26d&&(this[_0x44e9b5(0x5ac)]=_0x44e26d,this[_0x44e9b5(0x43f)]=this[_0x44e9b5(0x5ac)][_0x44e9b5(0x4d6)](({reqId:_0xf03a27,timeout:_0x31eb07})=>{const _0x1bf069=_0x44e9b5;this[_0x1bf069(0x4da)](_0xf03a27,_0x31eb07);})));}[_0x54516d(0x1c8)](_0x11e9a2){const _0x355f04=_0x54516d;return this[_0x355f04(0x5f4)]['push'](_0x11e9a2),this;}['onRemoteChangeset'](_0x49c042){const _0x316f6b=_0x54516d;if(this[_0x316f6b(0x452)](_0x49c042))return this[_0x316f6b(0x551)](),this[_0x316f6b(0x47c)][_0x316f6b(0x5d2)](re,this[_0x316f6b(0x351)],this[_0x316f6b(0x242)],this[_0x316f6b(0x179)],this[_0x316f6b(0x5f4)],null,[_0x49c042],this[_0x316f6b(0x3d5)]);try{const _0x5be3c9=this[_0x316f6b(0x579)][_0x316f6b(0x59f)]([_0x49c042],[this[_0x316f6b(0x179)]],!0x1);if(S[_0x316f6b(0x421)](_0x5be3c9)){const {c1Prime:_0x4e12c3,c2Prime:_0x403d0b}=_0x5be3c9,_0x3c9b78=this['_transformService'][_0x316f6b(0x1cd)](_0x4e12c3[0x0],this[_0x316f6b(0x5f4)]);if(S['isTransformMutationsWithChangesetSuccess'](_0x3c9b78)){const {c1Prime:_0xf48471,m2Prime:_0x3d5b38}=_0x3c9b78;return this['_executeRemoteChangeset'](_0xf48471),_0x403d0b[0x0]['baseRev']=this[_0x316f6b(0x586)](),this[_0x316f6b(0x551)](),this[_0x316f6b(0x47c)]['createInstance'](le,this[_0x316f6b(0x351)],this[_0x316f6b(0x242)],_0x403d0b[0x0],_0x3d5b38,this[_0x316f6b(0x3d5)],void 0x0);}throw _0x3c9b78[_0x316f6b(0x29f)];}throw _0x5be3c9[_0x316f6b(0x29f)];}catch(_0x39fe77){return this[_0x316f6b(0x241)][_0x316f6b(0x29f)](_0x39fe77),this[_0x316f6b(0x3b6)](!0x1);}}[_0x54516d(0x3e1)](_0x4bbb23){const _0x31133f=_0x54516d;if(this['_clearScheduledTask'](),this[_0x31133f(0x452)](_0x4bbb23))return this[_0x31133f(0x47c)]['createInstance'](re,this[_0x31133f(0x351)],this['type'],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x31133f(0x3d5)]);this[_0x31133f(0x61e)]();const _0x78b6cf=this['_injector']['createInstance'](ce,this['unitID'],this[_0x31133f(0x242)],this[_0x31133f(0x5f4)],this[_0x31133f(0x3d5)]);return _0x78b6cf[_0x31133f(0x20b)](),_0x78b6cf[_0x31133f(0x533)](),_0x78b6cf;}[_0x54516d(0x2c1)](_0x2b65a1){const _0x56af4d=_0x54516d;return this[_0x56af4d(0x3b6)](!!(_0x2b65a1!=null&&_0x2b65a1[_0x56af4d(0x49d)]));}[_0x54516d(0x428)](_0x450056){const _0x5056b5=_0x54516d;return this[_0x5056b5(0x50f)]>vn?this['toggleOffline']():(this['_resendTimer']=fn(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x450056['reqId']}),this[_0x5056b5(0x43f)]=this[_0x5056b5(0x5ac)][_0x5056b5(0x4d6)](({reqId:_0x125462,timeout:_0x40fbe2})=>{this['_resendWithTimeout'](_0x125462,_0x40fbe2);}),this);}['toggleOffline'](){const _0x26d1e9=_0x54516d;return this[_0x26d1e9(0x551)](),this[_0x26d1e9(0x47c)]['createInstance'](me,this[_0x26d1e9(0x351)],this[_0x26d1e9(0x242)],this[_0x26d1e9(0x179)],this[_0x26d1e9(0x5f4)],this[_0x26d1e9(0x3d5)]);}[_0x54516d(0x222)](){return this;}[_0x54516d(0x243)](){const _0x2a120d=_0x54516d;this[_0x2a120d(0x3d5)][_0x2a120d(0x55d)](this[_0x2a120d(0x179)]);}['_onConflict'](_0x4bd15b){const _0x2541c3=_0x54516d;return this[_0x2541c3(0x551)](),this[_0x2541c3(0x47c)][_0x2541c3(0x5d2)](ve,this[_0x2541c3(0x351)],this[_0x2541c3(0x242)],null,this[_0x2541c3(0x5f4)],this[_0x2541c3(0x3d5)],_0x4bd15b);}[_0x54516d(0x4da)](_0x24d254,_0x1e2f94){const _0x40a20d=_0x54516d;var _0x3023ad;_0x24d254===((_0x3023ad=this[_0x40a20d(0x179)])==null?void 0x0:_0x3023ad['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x1e2f94===0x0?0x3e8:_0x1e2f94*0x2);}[_0x54516d(0x551)](){const _0x2ad3b5=_0x54516d;var _0x2dba45;(_0x2dba45=this[_0x2ad3b5(0x43f)])==null||_0x2dba45['unsubscribe'](),this[_0x2ad3b5(0x50f)]=0x0;}};le=Ie([N(0x6,a['Inject'](a[_0x54516d(0x33a)])),N(0x7,a[_0x54516d(0x573)](S['RevisionService'])),N(0x8,a[_0x54516d(0x573)](exports['LocalCacheService'])),N(0x9,a[_0x54516d(0x18a)]),N(0xa,a[_0x54516d(0x4ee)]),N(0xb,S['ITransformService']),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ce{constructor(_0x28bf34,_0x3c90ba,_0x224238,_0x2240c2,_0x44d031,_0x509340=!0x1,_0x3b6525,_0x2de39c,_0x483a39,_0x34b224,_0xa07602,_0x5de2ce,_0x467747){const _0x59dc53=_0x54516d;super(_0x28bf34,_0x3c90ba,_0x224238,_0x2240c2,_0x44d031,_0x2de39c,_0x483a39,_0xa07602,_0x34b224),I(this,_0x59dc53(0x2d5),'conflict'),(this[_0x59dc53(0x1eb)]=_0x509340,this['_permissionService']=_0x3b6525,this[_0x59dc53(0x422)]=_0x5de2ce,this[_0x59dc53(0x4e9)]=_0x467747,this[_0x59dc53(0x435)](),this[_0x59dc53(0x5a1)](),this[_0x59dc53(0x261)]());}[_0x54516d(0x1c8)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x54516d(0x2c1)](){return this;}[_0x54516d(0x428)](){return this;}['toggleOffline'](){return this;}[_0x54516d(0x222)](){return this;}[_0x54516d(0x243)](){const _0xa592bf=_0x54516d;throw new Error(_0xa592bf(0x615));}[_0x54516d(0x5a1)](){const _0x106ff1=_0x54516d;this[_0x106ff1(0x3bf)][_0x106ff1(0x1fb)](this[_0x106ff1(0x351)],this[_0x106ff1(0x242)],null,[]);}['_showConflictNotification'](){const _0x151a4e=_0x54516d;this[_0x151a4e(0x1eb)]?this[_0x151a4e(0x4e9)]['show']({'title':this['_localeService']['t'](_0x151a4e(0x529)),'content':this['_localeService']['t'](_0x151a4e(0x495)),'type':_0x151a4e(0x29f),'duration':0x0}):this[_0x151a4e(0x4e9)]['show']({'title':this[_0x151a4e(0x422)]['t'](_0x151a4e(0x1b9)),'content':this['_localeService']['t']('conflict.content'),'type':_0x151a4e(0x29f),'duration':0x0});}[_0x54516d(0x261)](){const _0x28c8c0=_0x54516d;this[_0x28c8c0(0x2ce)][_0x28c8c0(0x526)](new k[(_0x28c8c0(0x232))](this['unitID'])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a[_0x54516d(0x369)])),N(0x7,a[_0x54516d(0x18a)]),N(0x8,a[_0x54516d(0x5b9)]),N(0x9,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),N(0xa,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),N(0xb,a[_0x54516d(0x573)](a['LocaleService'])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x4bd664,_0x43c386,_0x39695b,_0x4d7787,_0x4b0883,_0x5c669a,_0x244805,_0x86c2f7,_0x25c7b2,_0x45b7e5){const _0x3cb8a9=_0x54516d;super(_0x4bd664,_0x43c386,_0x39695b,_0x4d7787,_0x4b0883,_0x25c7b2,_0x45b7e5,_0x244805,_0x86c2f7),I(this,_0x3cb8a9(0x2d5),_0x3cb8a9(0x444)),this[_0x3cb8a9(0x47c)]=_0x5c669a;}['appendMutation'](_0x47b17d){const _0x4707b7=_0x54516d;return this[_0x4707b7(0x5f4)][_0x4707b7(0x26e)](_0x47b17d),this[_0x4707b7(0x533)](),this;}[_0x54516d(0x414)](_0x1c6442){const _0x343d57=_0x54516d;throw new Error(_0x343d57(0x31a));}['onRemoteAck'](){const _0x59f69f=_0x54516d;throw new Error(_0x59f69f(0x2f6));}[_0x54516d(0x2c1)](){const _0xc57597=_0x54516d;throw new Error(_0xc57597(0x234));}['onRemoteRetry'](){return this;}[_0x54516d(0x48d)](){return this;}[_0x54516d(0x222)](){const _0x461ad4=_0x54516d,{_injector:_0x4f55dd,_pendingMutations:_0x3ba440,_awaitingChangeset:_0x5b2bfa,unitID:_0x571cb8,_handler:_0x412cd2,type:_0x1c88fa}=this,_0x27158e=mn(_0x4f55dd,_0x571cb8,_0x1c88fa,_0x5b2bfa,_0x3ba440,_0x412cd2);return _0x27158e instanceof ce?_0x27158e[_0x461ad4(0x20b)]():(_0x27158e instanceof le||_0x27158e instanceof fe)&&_0x27158e[_0x461ad4(0x243)](),_0x27158e;}[_0x54516d(0x243)](){const _0x488828=_0x54516d;throw new Error(_0x488828(0x5cf));}};me=Ie([N(0x5,a['Inject'](a[_0x54516d(0x33a)])),N(0x6,a[_0x54516d(0x573)](S['RevisionService'])),N(0x7,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),N(0x8,a[_0x54516d(0x18a)]),N(0x9,a[_0x54516d(0x5b9)])],me);let re=class extends Ce{constructor(_0x5577fb,_0x15ea3b,_0x3402b1,_0x16b9fd,_0x347830,_0x3ad3c9,_0x5c805f,_0xb5f7a9,_0x320963,_0x1d1503,_0x41a515,_0x4021c9,_0x268585,_0x1edf8f){const _0x88c250=_0x54516d;super(_0x5577fb,_0x15ea3b,_0x3402b1,_0x16b9fd,_0x5c805f,_0x4021c9,_0x268585,_0x320963,_0x1d1503),I(this,_0x88c250(0x2d5),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x347830,this[_0x88c250(0x47b)]=_0x3ad3c9,this[_0x88c250(0x47c)]=_0xb5f7a9,this[_0x88c250(0x241)]=_0x41a515,this[_0x88c250(0x579)]=_0x1edf8f);}[_0x54516d(0x56a)](_0x355753){const _0xb360b2=_0x54516d;try{const _0x4081fe=[..._0x355753,...this['_queuedRemoteChangesets']],_0x3f5c92=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0xe0b0aa=>!!_0xe0b0aa);let _0x536523,_0x5d62ce;if(_0x3f5c92[_0xb360b2(0x5e8)]){const _0x9c9450=this[_0xb360b2(0x579)][_0xb360b2(0x59f)](_0x4081fe,_0x3f5c92,!0x1);if(!S[_0xb360b2(0x421)](_0x9c9450))throw _0x9c9450['error'];_0x536523=_0x9c9450[_0xb360b2(0x4ef)],_0x5d62ce=_0x9c9450[_0xb360b2(0x595)];}else _0x536523=_0x4081fe,_0x5d62ce=[];let _0x22ac02=this['_pendingMutations'];_0x536523[_0xb360b2(0x1ba)](_0x192f3c=>{const _0x40c19f=_0xb360b2;let _0x575576;if(_0x22ac02[_0x40c19f(0x5e8)]){const _0xc05a5d=this[_0x40c19f(0x579)][_0x40c19f(0x1cd)](_0x192f3c,_0x22ac02);if(!S['isTransformMutationsWithChangesetSuccess'](_0xc05a5d))throw _0xc05a5d['error'];_0x575576=_0xc05a5d[_0x40c19f(0x4ef)],_0x22ac02=_0xc05a5d[_0x40c19f(0x46b)];}else _0x575576=_0x192f3c;this['_executeRemoteChangeset'](_0x575576);}),this[_0xb360b2(0x560)]&&this[_0xb360b2(0x61e)](),this['_awaitingChangeset']&&_0x5d62ce['length']&&(_0x5d62ce[0x0][_0xb360b2(0x379)]=this['_getCurrentRevision']());let _0x5f0b9c;if(this[_0xb360b2(0x179)]&&_0x22ac02[_0xb360b2(0x5e8)]!==0x0)_0x5f0b9c=this[_0xb360b2(0x47c)][_0xb360b2(0x5d2)](le,this[_0xb360b2(0x351)],this[_0xb360b2(0x242)],_0x5d62ce[0x0],_0x22ac02,this[_0xb360b2(0x3d5)],void 0x0);else{if(this['_awaitingChangeset']&&_0x22ac02[_0xb360b2(0x5e8)]===0x0)_0x5d62ce[0x0]['baseRev']=this[_0xb360b2(0x586)](),_0x5f0b9c=this[_0xb360b2(0x47c)][_0xb360b2(0x5d2)](fe,this['unitID'],this[_0xb360b2(0x242)],_0x5d62ce[0x0],this[_0xb360b2(0x3d5)]);else{if(_0x22ac02[_0xb360b2(0x5e8)]!==0x0){const _0x1f131a=this[_0xb360b2(0x47c)][_0xb360b2(0x5d2)](ce,this[_0xb360b2(0x351)],this[_0xb360b2(0x242)],_0x22ac02,this[_0xb360b2(0x3d5)]);_0x1f131a['_schedule'](),_0x5f0b9c=_0x1f131a;}else _0x5f0b9c=this['_injector']['createInstance'](Oe,this[_0xb360b2(0x351)],this[_0xb360b2(0x242)],this[_0xb360b2(0x3d5)]);}}return _0x5f0b9c[_0xb360b2(0x533)](),_0x5f0b9c;}catch(_0x4d6db7){return this[_0xb360b2(0x241)][_0xb360b2(0x29f)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4d6db7),this['_injector'][_0xb360b2(0x5d2)](ve,this['unitID'],this[_0xb360b2(0x242)],this[_0xb360b2(0x179)],this[_0xb360b2(0x5f4)],this[_0xb360b2(0x3d5)],!0x1);}}[_0x54516d(0x243)](){const _0x2fa937=_0x54516d;throw new Error(_0x2fa937(0x3e9));}[_0x54516d(0x1c8)](_0x453bc1){const _0x2ade22=_0x54516d;return this['_pendingMutations'][_0x2ade22(0x26e)](_0x453bc1),this;}[_0x54516d(0x414)](_0x4121dd){const _0x13778d=_0x54516d;return this[_0x13778d(0x47b)][_0x13778d(0x26e)](_0x4121dd),this;}[_0x54516d(0x3e1)](_0xbb236f){const _0x470044=_0x54516d;if(this[_0x470044(0x179)])return this['_acknowledgedAwaitingChangeset']=this[_0x470044(0x179)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x49ac6a){const _0x543f17=_0x54516d;return this[_0x543f17(0x3b6)](!!(_0x49ac6a!=null&&_0x49ac6a[_0x543f17(0x49d)]));}[_0x54516d(0x428)](){return this;}[_0x54516d(0x48d)](){const _0xd807=_0x54516d;return this[_0xd807(0x47c)][_0xd807(0x5d2)](me,this['unitID'],this[_0xd807(0x242)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x54516d(0x222)](){return this;}[_0x54516d(0x3b6)](_0x28f75f){const _0x52a186=_0x54516d;return this[_0x52a186(0x47c)][_0x52a186(0x5d2)](ve,this[_0x52a186(0x351)],this[_0x52a186(0x242)],this[_0x52a186(0x179)],this[_0x52a186(0x5f4)],this[_0x52a186(0x3d5)],_0x28f75f);}};re=Ie([N(0x7,a['Inject'](a[_0x54516d(0x33a)])),N(0x8,a['Inject'](S[_0x54516d(0x35a)])),N(0x9,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),N(0xa,a[_0x54516d(0x4ee)]),N(0xb,a[_0x54516d(0x18a)]),N(0xc,a[_0x54516d(0x5b9)]),N(0xd,S[_0x54516d(0x5bd)])],re);function mn(_0x53bef1,_0x5bb51e,_0x1e5bd0,_0x3157fa,_0x460508,_0x6da7eb){const _0x55163a=_0x54516d;return _0x3157fa&&_0x460508['length']?_0x53bef1[_0x55163a(0x5d2)](le,_0x5bb51e,_0x1e5bd0,_0x3157fa,_0x460508,_0x6da7eb,void 0x0):_0x3157fa?_0x53bef1[_0x55163a(0x5d2)](fe,_0x5bb51e,_0x1e5bd0,_0x3157fa,_0x6da7eb):_0x460508['length']?_0x53bef1[_0x55163a(0x5d2)](ce,_0x5bb51e,_0x1e5bd0,_0x460508,_0x6da7eb):_0x53bef1[_0x55163a(0x5d2)](Oe,_0x5bb51e,_0x1e5bd0,_0x6da7eb);}var Bi=Object['defineProperty'],ki=Object[_0x54516d(0x363)],yt=(_0x33fc58,_0x5a5c6d,_0xcbd757,_0x80f292)=>{const _0x20ddde=_0x54516d;for(var _0x5333ff=_0x80f292>0x1?void 0x0:_0x80f292?ki(_0x5a5c6d,_0xcbd757):_0x5a5c6d,_0x54cc63=_0x33fc58[_0x20ddde(0x5e8)]-0x1,_0xa27a8d;_0x54cc63>=0x0;_0x54cc63--)(_0xa27a8d=_0x33fc58[_0x54cc63])&&(_0x5333ff=(_0x80f292?_0xa27a8d(_0x5a5c6d,_0xcbd757,_0x5333ff):_0xa27a8d(_0x5333ff))||_0x5333ff);return _0x80f292&&_0x5333ff&&Bi(_0x5a5c6d,_0xcbd757,_0x5333ff),_0x5333ff;},H=(_0x49f6ab,_0x34203e)=>(_0x312b69,_0x10aa7a)=>_0x34203e(_0x312b69,_0x10aa7a,_0x49f6ab);exports['CollaborationEntity']=class extends a[_0x54516d(0x1d6)]{constructor(_0x1ce4fb,_0x520296,_0xbd58a3,_0x50b1dc,_0x4465f2,_0x469e6f,_0x1990bf,_0x151c4f,_0x276c02,_0x402cce,_0x37b368,_0x31ddcf,_0x5aa13a){const _0x28b091=_0x54516d;super(),I(this,_0x28b091(0x4f0),new A[(_0x28b091(0x598))](null)),I(this,_0x28b091(0x1c7),this[_0x28b091(0x4f0)]['asObservable']()),I(this,'_state'),I(this,'_collaborationPaused',!0x1),I(this,_0x28b091(0x373),''),I(this,_0x28b091(0x61f),0x0),I(this,_0x28b091(0x4d4),this[_0x28b091(0x1c7)]['pipe'](A[_0x28b091(0x2c2)](_0x5201fd=>_0x5201fd?_0x5201fd[_0x28b091(0x2d5)]:q['OFFLINE']),A[_0x28b091(0x40d)](0x1))),I(this,_0x28b091(0x2d7),!0x1),I(this,_0x28b091(0x224),[]),(this[_0x28b091(0x351)]=_0x1ce4fb,this[_0x28b091(0x3f5)]=_0x520296,this[_0x28b091(0x535)]=_0xbd58a3,this[_0x28b091(0x47c)]=_0x50b1dc,this['_localCacheService']=_0x4465f2,this[_0x28b091(0x1fc)]=_0x469e6f,this[_0x28b091(0x422)]=_0x1990bf,this['_revisionService']=_0x151c4f,this['_logService']=_0x276c02,this[_0x28b091(0x1ca)]=_0x402cce,this[_0x28b091(0x564)]=_0x37b368,this[_0x28b091(0x2ce)]=_0x31ddcf,this[_0x28b091(0x2d9)]=_0x5aa13a);}get[_0x54516d(0x4cd)](){return this['_state'];}async[_0x54516d(0x4eb)](){const _0x56ccb9=_0x54516d;if(this[_0x56ccb9(0x4cd)])throw new Error(_0x56ccb9(0x26f));await this[_0x56ccb9(0x488)]();}[_0x54516d(0x194)](){const _0x440b3d=_0x54516d;return this[_0x440b3d(0x4dd)]=!0x0,a[_0x440b3d(0x562)](()=>{const _0x4cb1d8=_0x440b3d;this[_0x4cb1d8(0x4dd)]=!0x1,this[_0x4cb1d8(0x20d)]();});}[_0x54516d(0x4cc)](_0x50a85a){const _0x2b40cb=_0x54516d;this[_0x2b40cb(0x23c)]=_0x50a85a,this[_0x2b40cb(0x4f0)]['next'](_0x50a85a);}async[_0x54516d(0x488)](){const _0x3f5638=_0x54516d;var _0x5d7a8a;this[_0x3f5638(0x4cc)](await this[_0x3f5638(0x1c5)]()),this['_singleActiveUnitService']&&((_0x5d7a8a=this[_0x3f5638(0x2d9)])==null||_0x5d7a8a[_0x3f5638(0x2fc)](this[_0x3f5638(0x351)]),this[_0x3f5638(0x55b)](this['_singleActiveUnitService'][_0x3f5638(0x256)](this[_0x3f5638(0x351)])[_0x3f5638(0x4d6)](_0x2bbe4f=>{const _0x2d9417=_0x3f5638;this[_0x2d9417(0x241)][_0x2d9417(0x583)](_0x2d9417(0x587),_0x2d9417(0x2db),_0x2bbe4f),_0x2bbe4f===un[_0x2d9417(0x4a9)]?(this[_0x2d9417(0x564)][_0x2d9417(0x5e3)]({'content':this[_0x2d9417(0x422)]['t'](_0x2d9417(0x5ab)),'type':ge['MessageType'][_0x2d9417(0x354)]}),this[_0x2d9417(0x2ce)][_0x2d9417(0x526)](new k['WorkbookEditablePermission'](this[_0x2d9417(0x351)])['id'],!0x1),this[_0x2d9417(0x2ce)][_0x2d9417(0x5aa)](!0x1)):(this[_0x2d9417(0x2ce)][_0x2d9417(0x526)](new k[(_0x2d9417(0x232))](this['unitID'])['id'],!0x0),this['_permissionService'][_0x2d9417(0x5aa)](!0x0));})));let _0xf662cd=!0x1;return this[_0x3f5638(0x55b)](this[_0x3f5638(0x3f5)][_0x3f5638(0x415)][_0x3f5638(0x4d6)](_0x271be9=>{const _0x4374b9=_0x3f5638;_0x271be9===se[_0x4374b9(0x608)]?this['_toggleOnline'](_0xf662cd):_0x271be9===se[_0x4374b9(0x44b)]&&(_0xf662cd=!0x0,this[_0x4374b9(0x25d)]());})),this[_0x3f5638(0x55b)](this['session'][_0x3f5638(0x455)][_0x3f5638(0x4d6)](_0x468770=>{const _0x101633=_0x3f5638;try{switch(_0x468770[_0x101633(0x4aa)]){case S[_0x101633(0x5de)]['NEW_CHANGESETS']:{this[_0x101633(0x425)](S[_0x101633(0x509)](_0x468770[_0x101633(0x547)]));break;}case S['CollaborationEvent'][_0x101633(0x5b3)]:{this[_0x101633(0x4ae)](_0x468770[_0x101633(0x547)]);break;}case S[_0x101633(0x5de)]['CHANGESET_REJ']:{this[_0x101633(0x338)]();break;}case S[_0x101633(0x5de)][_0x101633(0x1b8)]:{this['_onRemoteRetry'](_0x468770[_0x101633(0x547)]);break;}case S['CollaborationEvent'][_0x101633(0x5b0)]:{this['_onFetchMissResult'](_0x468770[_0x101633(0x547)][_0x101633(0x4e5)][_0x101633(0x2c2)](_0x42e7ee=>S['parseProtocolChangeset'](_0x42e7ee)));break;}case S[_0x101633(0x5de)][_0x101633(0x457)]:this[_0x101633(0x338)]({'isPermissionRej':!0x0});}}catch(_0x1b6299){throw console[_0x101633(0x29f)](_0x101633(0x4df),_0x1b6299),_0x1b6299;}})),this[_0x3f5638(0x23c)];}[_0x54516d(0x1a7)](){const _0x1b50e2=_0x54516d;this[_0x1b50e2(0x2d7)]=!0x1;}[_0x54516d(0x510)](){const _0x36f89e=_0x54516d;if(this[_0x36f89e(0x2d7)])throw new Error(_0x36f89e(0x340));this['_transitionLocked']=!0x0;}[_0x54516d(0x2c4)](_0x2f6775){const _0x28f08d=_0x54516d;this['_lockTransition'](),this['_updateState'](this[_0x28f08d(0x23c)]['appendMutation'](_0x2f6775)),this[_0x28f08d(0x1a7)]();}[_0x54516d(0x425)](_0x2e7b43){const _0x4fb3c5=_0x54516d;if(!(_0x2e7b43['revision']<=this[_0x4fb3c5(0x1cc)]['getCurrentRevOfUnit'](this[_0x4fb3c5(0x351)]))){if(this[_0x4fb3c5(0x4dd)]){this['_remoteChangesetQueue']['push'](_0x2e7b43);return;}this[_0x4fb3c5(0x276)](_0x2e7b43);}}['_exhaustRemoteChangesetQueue'](){const _0x5510e6=_0x54516d;this[_0x5510e6(0x224)][_0x5510e6(0x1ba)](_0x371fce=>this['_applyRemoteChangeset'](_0x371fce)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x1e00b2){const _0x29781d=_0x54516d,_0x529b27=this[_0x29781d(0x1fc)]['interceptor'][_0x29781d(0x5e7)](this[_0x29781d(0x1fc)][_0x29781d(0x4d8)][_0x29781d(0x370)]()[_0x29781d(0x602)])(_0x1e00b2[_0x29781d(0x1f3)],null)||_0x1e00b2['mutations'],_0x194065={..._0x1e00b2,'mutations':_0x529b27};this[_0x29781d(0x510)](),this[_0x29781d(0x4cc)](this[_0x29781d(0x23c)][_0x29781d(0x414)](_0x194065)),this[_0x29781d(0x1a7)]();}[_0x54516d(0x4ae)](_0x2150ab){const _0xc2116a=_0x54516d;this[_0xc2116a(0x510)](),this[_0xc2116a(0x4cc)](this[_0xc2116a(0x23c)][_0xc2116a(0x3e1)](_0x2150ab)),this[_0xc2116a(0x1a7)]();}['_onRemoteRejected'](_0x278f3a){const _0x241317=_0x54516d;this[_0x241317(0x510)](),this[_0x241317(0x4cc)](this['_state']['onRemoteRej'](_0x278f3a)),this[_0x241317(0x1a7)]();}['_onRemoteRetry'](_0x148cb8){const _0x8f8605=_0x54516d;this[_0x8f8605(0x510)](),this[_0x8f8605(0x4cc)](this[_0x8f8605(0x23c)][_0x8f8605(0x428)](_0x148cb8)),this[_0x8f8605(0x1a7)]();}[_0x54516d(0x1e5)](_0x5d2c2f){const _0x3daaed=_0x54516d;if(!(this[_0x3daaed(0x23c)]instanceof re))throw new TypeError(_0x3daaed(0x178));const _0x31e1bc=_0x5d2c2f[_0x3daaed(0x2c2)](_0x40182e=>{const _0x3d78e3=_0x3daaed,_0x4d69d9=this[_0x3d78e3(0x1fc)]['interceptor'][_0x3d78e3(0x5e7)](this['_compressMutationService'][_0x3d78e3(0x4d8)][_0x3d78e3(0x370)]()['COMPRESS_MUTATION_APPLY'])(_0x40182e[_0x3d78e3(0x1f3)],null)||_0x40182e[_0x3d78e3(0x1f3)];return{..._0x40182e,'mutations':_0x4d69d9};});this[_0x3daaed(0x510)](),this[_0x3daaed(0x4cc)](this[_0x3daaed(0x23c)][_0x3daaed(0x56a)](_0x31e1bc)),this[_0x3daaed(0x1a7)]();}['_toggleOffline'](){const _0x568ccf=_0x54516d;this[_0x568ccf(0x510)](),this[_0x568ccf(0x4cc)](this[_0x568ccf(0x23c)][_0x568ccf(0x48d)]()),this[_0x568ccf(0x1a7)]();}[_0x54516d(0x45c)](_0x5b83b6=!0x1){const _0x35f41f=_0x54516d;this['_lockTransition'](),this['_updateState'](this['_state']['toggleOnline']()),this[_0x35f41f(0x1a7)]();const _0xbc9f68=this[_0x35f41f(0x23c)];_0x5b83b6&&_0xbc9f68 instanceof Oe&&(this[_0x35f41f(0x510)](),this[_0x35f41f(0x4cc)](_0xbc9f68[_0x35f41f(0x5d4)]()),this[_0x35f41f(0x1a7)]());}async['_createInitialState'](){return new Promise(_0x299cb2=>{const _0x1bec59=_0xe852;this[_0x1bec59(0x3f5)][_0x1bec59(0x415)][_0x1bec59(0x5f2)](A['take'](0x1))[_0x1bec59(0x4d6)](async _0x1ad684=>{const _0x39a231=_0x1bec59;_0x299cb2(await this[_0x39a231(0x4fa)](_0x1ad684===se['ONLINE']));});});}[_0x54516d(0x287)](){const _0x1559de=this['unitID'];return{'onStateChange':(_0x423c29,_0x40738d)=>{const _0x15243a=_0xe852;if(_0x423c29!==this['_state'])throw new Error(_0x15243a(0x555)+_0x423c29[_0x15243a(0x2d5)]+_0x15243a(0x1f8)+_0x40738d[_0x15243a(0x2d5)]+_0x15243a(0x318)+this['_state'][_0x15243a(0x2d5)]);this['_updateState'](_0x40738d);},'onSendChangeset':_0x30517b=>{const _0x537bde=_0xe852;_0x30517b[_0x537bde(0x3ac)]||(_0x30517b[_0x537bde(0x3ac)]=this['_changesetSessionId'],_0x30517b[_0x537bde(0x5b6)]=++this[_0x537bde(0x61f)]);const _0xd8dedf={'eventID':S[_0x537bde(0x5de)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x30517b[_0x537bde(0x351)],'unitType':this[_0x537bde(0x535)],'changeset':_0x30517b,'memberID':this[_0x537bde(0x3f5)]['getMemberID']()}};this[_0x537bde(0x3f5)][_0x537bde(0x43c)](_0xd8dedf,this[_0x537bde(0x351)]);},'onMissingChangesets':({from:_0x1b725a,to:_0x5d0ade})=>{const _0x4ca440=_0xe852;this['_logService']['debug'](_0x4ca440(0x587),_0x4ca440(0x5bc)+_0x1b725a+'\x20to\x20'+_0x5d0ade);const _0x185718={'eventID':S[_0x4ca440(0x5de)][_0x4ca440(0x22b)],'data':{'unitID':_0x1559de,'unitType':this[_0x4ca440(0x535)],'from':_0x1b725a,'to':_0x5d0ade}};this['session'][_0x4ca440(0x43c)](_0x185718,this[_0x4ca440(0x351)]);}};}async[_0x54516d(0x4fa)](_0x30000d){const _0x2f321d=_0x54516d;var _0x4b0707,_0x2b70d0;const _0x25929a=await this[_0x2f321d(0x3bf)][_0x2f321d(0x456)](this[_0x2f321d(0x351)]),_0x5f03e5=(_0x4b0707=_0x25929a==null?void 0x0:_0x25929a[_0x2f321d(0x1f3)])!=null?_0x4b0707:[],_0x464526=(_0x2b70d0=_0x25929a==null?void 0x0:_0x25929a[_0x2f321d(0x3fb)])!=null?_0x2b70d0:null,_0x1fc78a=!!(_0x464526!=null&&_0x464526[_0x2f321d(0x3ac)])&&!!(_0x464526!=null&&_0x464526[_0x2f321d(0x5b6)]);this[_0x2f321d(0x373)]=_0x1fc78a?_0x464526[_0x2f321d(0x3ac)]:mi(),this['_changesetReqId']=_0x1fc78a?_0x464526[_0x2f321d(0x5b6)]:0x0;const _0x253202=this[_0x2f321d(0x351)];try{this[_0x2f321d(0x1b1)](_0x464526,_0x5f03e5);}catch(_0x5dd379){this[_0x2f321d(0x241)]['error'](_0x5dd379);}const _0xd5d08d=this['_createHandler']();if(_0x30000d){const _0x582369=mn(this[_0x2f321d(0x47c)],_0x253202,this[_0x2f321d(0x535)],_0x464526,_0x5f03e5,_0xd5d08d);return _0x582369 instanceof ce?_0x582369[_0x2f321d(0x20b)]():(_0x582369 instanceof le||_0x582369 instanceof fe)&&_0x582369[_0x2f321d(0x243)](),_0x582369;}return this['_injector'][_0x2f321d(0x5d2)](me,_0x253202,this[_0x2f321d(0x535)],_0x464526,_0x5f03e5,_0xd5d08d);}[_0x54516d(0x1b1)](_0x3c99d3,_0x53aacc){const _0x353488=_0x54516d;var _0x15260e,_0x115329;const _0x67ea88=this['_compressMutationService']['interceptor'][_0x353488(0x5e7)](this[_0x353488(0x1fc)]['interceptor'][_0x353488(0x370)]()[_0x353488(0x602)]);(_0x15260e=_0x67ea88((_0x3c99d3==null?void 0x0:_0x3c99d3[_0x353488(0x1f3)])||[],null))==null||_0x15260e[_0x353488(0x1ba)](_0x480d24=>this[_0x353488(0x1ca)]['executeCommand'](_0x480d24['id'],_0x480d24[_0x353488(0x601)])),(_0x115329=_0x67ea88(_0x53aacc||[],null))==null||_0x115329[_0x353488(0x1ba)](_0x6fff1e=>this[_0x353488(0x1ca)][_0x353488(0x498)](_0x6fff1e['id'],_0x6fff1e[_0x353488(0x601)]));}},exports[_0x54516d(0x3a1)]=yt([H(0x3,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),H(0x4,a['Inject'](exports[_0x54516d(0x5ef)])),H(0x5,a['Inject'](S[_0x54516d(0x571)])),H(0x6,a['Inject'](a[_0x54516d(0x2a1)])),H(0x7,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),H(0x8,a['ILogService']),H(0x9,a[_0x54516d(0x18a)]),H(0xa,ee[_0x54516d(0x3ce)]),H(0xb,a['IPermissionService']),H(0xc,a['Optional'](qe))],exports[_0x54516d(0x3a1)]),exports[_0x54516d(0x31e)]=class extends exports[_0x54516d(0x3a1)]{constructor(_0x4ce199,_0x286092,_0x1ace3b,_0x5b46ec,_0x38362e,_0x59f06a,_0x2658ef,_0x46cab0,_0x3456f3,_0x4d3106,_0x1d2b39,_0x29647e,_0x96a82e,_0x290090,_0x454a81,_0xdcf7f6,_0x5c4565,_0x32630f){const _0x446acd=_0x54516d;super(_0x4ce199,_0x1ace3b,_0x286092,_0x5b46ec,_0x38362e,_0x59f06a,_0x2658ef,_0x46cab0,_0x290090,_0x454a81,_0xdcf7f6,_0x5c4565,_0x32630f),this['unitID']=_0x4ce199,this[_0x446acd(0x242)]=_0x286092,this[_0x446acd(0x2df)]=_0x3456f3,this[_0x446acd(0x55c)]=_0x4d3106,this[_0x446acd(0x440)]=_0x1d2b39,this['_docTransformSelectionsService']=_0x29647e,this[_0x446acd(0x409)]=_0x96a82e;}[_0x54516d(0x287)](){const _0x4268e2=_0x54516d,_0x1930b3=super[_0x4268e2(0x287)]();return _0x1930b3[_0x4268e2(0x269)]=_0x5b7d84=>this[_0x4268e2(0x55c)][_0x4268e2(0x4a6)](_0x5b7d84),_0x1930b3[_0x4268e2(0x1ab)]=_0x1dff46=>this[_0x4268e2(0x440)][_0x4268e2(0x2af)](_0x1dff46),_0x1930b3[_0x4268e2(0x413)]=_0x40b717=>this[_0x4268e2(0x4b7)][_0x4268e2(0x2bc)](_0x40b717),_0x1930b3[_0x4268e2(0x27a)]=_0x566be9=>this[_0x4268e2(0x409)][_0x4268e2(0x603)](_0x566be9),_0x1930b3[_0x4268e2(0x429)]=_0x5695a6=>this[_0x4268e2(0x55c)]['transformRemoteChangeset'](_0x5695a6),_0x1930b3[_0x4268e2(0x3cf)]=_0x2bcb80=>this[_0x4268e2(0x440)]['transformRemoteChangeset'](_0x2bcb80),_0x1930b3;}async[_0x54516d(0x488)](){const _0x5e902f=_0x54516d,_0x2a0a1f=await super[_0x5e902f(0x488)]();return this[_0x5e902f(0x2df)]['docStateChange$'][_0x5e902f(0x5f2)](A[_0x5e902f(0x42d)](this[_0x5e902f(0x610)]))[_0x5e902f(0x4d6)](_0x30aaf2=>{const _0x359121=_0x5e902f;if(_0x30aaf2==null)return;const {unitId:_0x3fb4d2,redoState:_0x1b6655,commandId:_0x49c77e}=_0x30aaf2;if(_0x3fb4d2!==this[_0x359121(0x351)])return;const _0x4ece27={'id':_0x49c77e,'type':a[_0x359121(0x52c)][_0x359121(0x5f9)],'params':{'unitId':_0x3fb4d2,'actions':_0x1b6655[_0x359121(0x35d)],'textRanges':null}};this[_0x359121(0x2c4)](_0x4ece27);}),_0x2a0a1f;}},exports[_0x54516d(0x31e)]=yt([H(0x3,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),H(0x4,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),H(0x5,a[_0x54516d(0x573)](S[_0x54516d(0x571)])),H(0x6,a['Inject'](a[_0x54516d(0x2a1)])),H(0x7,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),H(0x8,a['Inject'](J[_0x54516d(0x420)])),H(0x9,a[_0x54516d(0x573)](Be)),H(0xa,a[_0x54516d(0x573)](We)),H(0xb,a[_0x54516d(0x573)](Fe)),H(0xc,a[_0x54516d(0x573)](Rt)),H(0xd,a[_0x54516d(0x4ee)]),H(0xe,a[_0x54516d(0x18a)]),H(0xf,ee[_0x54516d(0x3ce)]),H(0x10,a[_0x54516d(0x369)]),H(0x11,a[_0x54516d(0x1ee)](qe))],exports[_0x54516d(0x31e)]),exports['SheetCollaborationEntity']=class extends exports[_0x54516d(0x3a1)]{constructor(_0x3323f9,_0x12960a,_0x2a9645,_0x10cb83,_0xc214b6,_0xc797bb,_0x5ac646,_0x155b67,_0x575e18,_0x24f23e,_0x1585ca,_0x5e58dc,_0xbabb4d,_0x30b7b1){const _0x5b5be3=_0x54516d;super(_0x3323f9,_0x2a9645,_0x12960a,_0x10cb83,_0xc214b6,_0xc797bb,_0x5ac646,_0x155b67,_0x24f23e,_0x1585ca,_0x5e58dc,_0xbabb4d,_0x30b7b1),this[_0x5b5be3(0x351)]=_0x3323f9,this[_0x5b5be3(0x242)]=_0x12960a,this[_0x5b5be3(0x3fc)]=_0x575e18;}[_0x54516d(0x287)](){const _0x46b36b=_0x54516d,_0x56549a=super['_createHandler']();return _0x56549a[_0x46b36b(0x413)]=_0x74bad4=>this['_sheetTransformSelectionsService'][_0x46b36b(0x2bc)](_0x74bad4),_0x56549a;}async[_0x54516d(0x488)](){const _0x327e3a=_0x54516d,_0x2f7e63=await super[_0x327e3a(0x488)]();return this[_0x327e3a(0x55b)](this[_0x327e3a(0x1ca)][_0x327e3a(0x2aa)]((_0x1f69f6,_0x5be50d)=>{const _0x1cb2eb=_0x327e3a;if(_0x1f69f6['type']!==a[_0x1cb2eb(0x52c)][_0x1cb2eb(0x5f9)]||_0x5be50d!=null&&_0x5be50d[_0x1cb2eb(0x315)]||_0x5be50d!=null&&_0x5be50d['onlyLocal'])return;const _0x32585b=_0x1f69f6[_0x1cb2eb(0x601)];if((_0x32585b==null?void 0x0:_0x32585b[_0x1cb2eb(0x427)])!==this[_0x1cb2eb(0x351)])return;const _0xcfcfbf=_0x1f69f6,_0xe53c0f=this['_compressMutationService'][_0x1cb2eb(0x4d8)][_0x1cb2eb(0x5e7)](this[_0x1cb2eb(0x1fc)][_0x1cb2eb(0x4d8)][_0x1cb2eb(0x370)]()[_0x1cb2eb(0x403)])([_0xcfcfbf],null)||[_0xcfcfbf];this[_0x1cb2eb(0x2c4)](_0xe53c0f[0x0]);})),_0x2f7e63;}},exports['SheetCollaborationEntity']=yt([H(0x3,a['Inject'](a[_0x54516d(0x33a)])),H(0x4,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),H(0x5,a[_0x54516d(0x573)](S[_0x54516d(0x571)])),H(0x6,a['Inject'](a['LocaleService'])),H(0x7,a[_0x54516d(0x573)](S[_0x54516d(0x35a)])),H(0x8,a[_0x54516d(0x573)](ke)),H(0x9,a[_0x54516d(0x4ee)]),H(0xa,a[_0x54516d(0x18a)]),H(0xb,ee[_0x54516d(0x3ce)]),H(0xc,a[_0x54516d(0x369)]),H(0xd,a[_0x54516d(0x1ee)](qe))],exports[_0x54516d(0x4bf)]);var Wi=Object['defineProperty'],Fi=Object['getOwnPropertyDescriptor'],Vi=(_0x359b98,_0x5a416c,_0x1cd9a9,_0x370031)=>{for(var _0x571a21=_0x370031>0x1?void 0x0:_0x370031?Fi(_0x5a416c,_0x1cd9a9):_0x5a416c,_0x286509=_0x359b98['length']-0x1,_0x34eacb;_0x286509>=0x0;_0x286509--)(_0x34eacb=_0x359b98[_0x286509])&&(_0x571a21=(_0x370031?_0x34eacb(_0x5a416c,_0x1cd9a9,_0x571a21):_0x34eacb(_0x571a21))||_0x571a21);return _0x370031&&_0x571a21&&Wi(_0x5a416c,_0x1cd9a9,_0x571a21),_0x571a21;},tt=(_0xb4a71d,_0x5cd3fe)=>(_0x579f1e,_0x34cf84)=>_0x5cd3fe(_0x579f1e,_0x34cf84,_0xb4a71d);exports['CollaborationController']=class extends a[_0x54516d(0x1d6)]{constructor(_0xc48bdf,_0x57028f,_0x14734a){const _0x373232=_0x54516d;super(),I(this,_0x373232(0x3c8),new Map()),I(this,_0x373232(0x4e1),new A['Subject']()),(this[_0x373232(0x47c)]=_0xc48bdf,this['_collabSessionService']=_0x57028f,this[_0x373232(0x228)]=_0x14734a,this[_0x373232(0x488)]());}[_0x54516d(0x417)](){const _0x42cd92=_0x54516d;super[_0x42cd92(0x417)](),this[_0x42cd92(0x3c8)][_0x42cd92(0x1ba)](_0x46f28b=>_0x46f28b[_0x42cd92(0x417)]()),this['_entities'][_0x42cd92(0x202)]();}[_0x54516d(0x3da)](_0x407462){const _0x2a220a=_0x54516d;var _0x5b7a04;return(_0x5b7a04=this[_0x2a220a(0x3c8)][_0x2a220a(0x3b1)](_0x407462))!=null?_0x5b7a04:null;}[_0x54516d(0x5df)](_0x554062){const _0x2234ec=_0x54516d,_0x5b893b=this[_0x2234ec(0x3da)](_0x554062);return _0x5b893b?A['of'](_0x5b893b):this['_entityInit$'][_0x2234ec(0x5f2)](V['filter'](_0x5cb23c=>_0x5cb23c[_0x2234ec(0x351)]===_0x554062));}[_0x54516d(0x488)](){const _0x328272=_0x54516d;this['_univerInstanceService'][_0x328272(0x3f1)](a[_0x328272(0x2f2)][_0x328272(0x299)])['pipe'](A[_0x328272(0x42d)](this[_0x328272(0x610)]),V['delay'](0x10))[_0x328272(0x4d6)](async _0xc9bcae=>{const _0xc80b1d=_0x328272,_0x149474=_0xc9bcae[_0xc80b1d(0x2c5)](),_0x277add=await this[_0xc80b1d(0x5b8)](_0x149474,ie['UNIVER_SHEET']);this['_entities']['set'](_0x149474,_0x277add);}),this[_0x328272(0x228)][_0x328272(0x3f1)](a[_0x328272(0x2f2)]['UNIVER_DOC'])['pipe'](A[_0x328272(0x42d)](this[_0x328272(0x610)]),V['delay'](0x10))['pipe'](V[_0x328272(0x292)](_0x136bba=>!_0x136bba[_0x328272(0x2c5)]()['startsWith']('__')))['subscribe'](async _0x569610=>{const _0x3e0eab=_0x328272,_0x5e5e81=_0x569610[_0x3e0eab(0x2c5)](),_0x571cb9=await this[_0x3e0eab(0x5b8)](_0x5e5e81,ie[_0x3e0eab(0x60e)]);this[_0x3e0eab(0x3c8)][_0x3e0eab(0x36d)](_0x5e5e81,_0x571cb9);}),A[_0x328272(0x349)](this[_0x328272(0x228)][_0x328272(0x2f8)](a[_0x328272(0x2f2)][_0x328272(0x299)]),this[_0x328272(0x228)][_0x328272(0x2f8)](a[_0x328272(0x2f2)][_0x328272(0x60e)]))[_0x328272(0x5f2)](A[_0x328272(0x42d)](this[_0x328272(0x610)]))['subscribe'](_0x410714=>{const _0x40bcab=_0x328272,_0xb27c44=_0x410714['getUnitId'](),_0x2d21b3=this[_0x40bcab(0x3c8)][_0x40bcab(0x3b1)](_0xb27c44);_0x2d21b3&&(_0x2d21b3['dispose'](),this[_0x40bcab(0x3c8)][_0x40bcab(0x1c4)](_0xb27c44));});}async[_0x54516d(0x5b8)](_0x448108,_0x75289e){const _0x3cc375=_0x54516d,_0x265925=await this[_0x3cc375(0x3b9)]['requireSession'](_0x448108),_0x26e075=this['_injector'][_0x3cc375(0x5d2)](this['_getCtorByUniverType'](_0x75289e),_0x448108,_0x75289e,_0x265925);return await _0x26e075[_0x3cc375(0x4eb)](),this['_entityInit$'][_0x3cc375(0x4bd)](_0x26e075),_0x26e075;}[_0x54516d(0x48b)](_0x184792){const _0x54df5f=_0x54516d;switch(_0x184792){case ie[_0x54df5f(0x60e)]:return exports[_0x54df5f(0x31e)];case ie[_0x54df5f(0x299)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x54df5f(0x61d)+_0x184792);}}},exports['CollaborationController']=Vi([tt(0x0,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),tt(0x1,a[_0x54516d(0x573)](exports[_0x54516d(0x580)])),tt(0x2,a[_0x54516d(0x4e2)])],exports['CollaborationController']);const $t=[_0x54516d(0x30b),_0x54516d(0x38f),_0x54516d(0x567),'red300',_0x54516d(0x54e),_0x54516d(0x1a9)];class Ot extends a[_0x54516d(0x25e)]{constructor(){const _0x4cfdd3=_0x54516d;super(...arguments),I(this,_0x4cfdd3(0x480),new Map()),I(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x51c7dc){const _0x506a67=_0x54516d;if(this[_0x506a67(0x480)][_0x506a67(0x468)](_0x51c7dc))return this[_0x506a67(0x480)]['get'](_0x51c7dc);const _0x495425=$t[this[_0x506a67(0x1de)]];return this[_0x506a67(0x1de)]=(this[_0x506a67(0x1de)]+0x1)%$t[_0x506a67(0x5e8)],this[_0x506a67(0x480)][_0x506a67(0x36d)](_0x51c7dc,_0x495425),_0x495425;}}var Gi=Object[_0x54516d(0x461)],Yi=Object[_0x54516d(0x363)],Ki=(_0xdaef18,_0x5f2df1,_0x1067b9,_0x524750)=>{for(var _0x121754=_0x524750>0x1?void 0x0:_0x524750?Yi(_0x5f2df1,_0x1067b9):_0x5f2df1,_0xf56ab3=_0xdaef18['length']-0x1,_0x1a3aa3;_0xf56ab3>=0x0;_0xf56ab3--)(_0x1a3aa3=_0xdaef18[_0xf56ab3])&&(_0x121754=(_0x524750?_0x1a3aa3(_0x5f2df1,_0x1067b9,_0x121754):_0x1a3aa3(_0x121754))||_0x121754);return _0x524750&&_0x121754&&Gi(_0x5f2df1,_0x1067b9,_0x121754),_0x121754;},Se=(_0x57afb5,_0x2d1625)=>(_0x191dd1,_0x15f775)=>_0x2d1625(_0x191dd1,_0x15f775,_0x57afb5);const qi=0x12c,zi=0x64;let mt=class extends a[_0x54516d(0x1d6)]{constructor(_0x513253,_0x430096,_0x525d05,_0x3788dc,_0x493b50,_0x3a91bf,_0x4c7418,_0x456e0c,_0x4add1b){const _0x3f20c8=_0x54516d;super(),I(this,_0x3f20c8(0x262),!0x1),I(this,'_init',!0x1),I(this,_0x3f20c8(0x3cb),new A['BehaviorSubject'](new Map())),I(this,_0x3f20c8(0x2a2),this[_0x3f20c8(0x3cb)][_0x3f20c8(0x1a1)]()),I(this,_0x3f20c8(0x254),new A[(_0x3f20c8(0x598))]([])),I(this,_0x3f20c8(0x41e),this[_0x3f20c8(0x254)][_0x3f20c8(0x5f2)](A[_0x3f20c8(0x2f0)](qi))),I(this,'_updateLocalCursor',a[_0x3f20c8(0x561)](_0x595955=>{const _0x3cf67f=_0x3f20c8,_0xd7f4ac={'eventID':S[_0x3cf67f(0x5de)][_0x3cf67f(0x485)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cf67f(0x380)][_0x3cf67f(0x36c)](),'selection':dn(_0x595955)}};this[_0x3cf67f(0x380)][_0x3cf67f(0x43c)](_0xd7f4ac,this[_0x3cf67f(0x351)]);},zi)),(this[_0x3f20c8(0x351)]=_0x513253,this[_0x3f20c8(0x380)]=_0x430096,this[_0x3f20c8(0x47c)]=_0x525d05,this[_0x3f20c8(0x272)]=_0x3788dc,this['_memberService']=_0x493b50,this[_0x3f20c8(0x312)]=_0x3a91bf,this[_0x3f20c8(0x579)]=_0x4c7418,this[_0x3f20c8(0x228)]=_0x456e0c,this[_0x3f20c8(0x1ca)]=_0x4add1b);}get[_0x54516d(0x31f)](){const _0x3f8422=_0x54516d;return this['_cursorInfo$'][_0x3f8422(0x371)]();}get['roomMembers'](){const _0x57f1e8=_0x54516d;return this[_0x57f1e8(0x254)][_0x57f1e8(0x371)]();}[_0x54516d(0x417)](){const _0xdbd521=_0x54516d;super[_0xdbd521(0x417)](),this['_cursorInfo$'][_0xdbd521(0x4bd)](new Map()),this['_cursorInfo$'][_0xdbd521(0x28e)](),this[_0xdbd521(0x254)][_0xdbd521(0x4bd)]([]),this['_roomMembers$'][_0xdbd521(0x28e)]();}[_0x54516d(0x4eb)](){const _0x3ea275=_0x54516d;this[_0x3ea275(0x488)]||(this[_0x3ea275(0x488)]=!0x0,this[_0x3ea275(0x380)][_0x3ea275(0x415)][_0x3ea275(0x5f2)](A['takeUntil'](this[_0x3ea275(0x610)]))['subscribe'](_0x30c298=>{const _0x24151c=_0x3ea275;_0x30c298===se[_0x24151c(0x608)]?this[_0x24151c(0x45c)]():this['_toggleOffline']();}),this[_0x3ea275(0x380)]['event$'][_0x3ea275(0x5f2)](A[_0x3ea275(0x42d)](this[_0x3ea275(0x610)]))[_0x3ea275(0x4d6)](_0x38d638=>{const _0x284e52=_0x3ea275,_0x8a6406=_0x38d638[_0x284e52(0x4aa)];_0x8a6406===S[_0x284e52(0x5de)][_0x284e52(0x485)]&&this[_0x284e52(0x236)](_0x38d638),_0x8a6406===S[_0x284e52(0x5de)]['USERS_LEAVE']&&this[_0x284e52(0x519)](_0x38d638);}),this[_0x3ea275(0x55b)](this[_0x3ea275(0x1ca)][_0x3ea275(0x2aa)](_0x1cc80c=>{const _0x3c0328=_0x3ea275,_0x3c28c2=_0x1cc80c[_0x3c0328(0x601)];_0x3c28c2!=null&&this[_0x3c0328(0x262)]&&_0x1cc80c['id']===ye[_0x3c0328(0x50e)]['id']&&_0x3c28c2[_0x3c0328(0x427)]===this[_0x3c0328(0x351)]&&_0x3c28c2['isEditing']===!0x1&&_0x3c28c2['ranges'][_0x3c0328(0x5e8)]>0x0&&this[_0x3c0328(0x32e)](_0x3c28c2[_0x3c0328(0x416)]);})),this['_syncEditingCollabCursorService'][_0x3ea275(0x2ad)][_0x3ea275(0x5f2)](A['takeUntil'](this[_0x3ea275(0x610)]))[_0x3ea275(0x4d6)](_0x18e3a3=>{const _0x3627e5=_0x3ea275;if((_0x18e3a3==null?void 0x0:_0x18e3a3[_0x3627e5(0x351)])!==this['unitID'])return;const _0x2e70e9={'eventID':S[_0x3627e5(0x5de)][_0x3627e5(0x485)],'data':_0x18e3a3};this[_0x3627e5(0x236)](_0x2e70e9);}),this['disposeWithMe'](this[_0x3ea275(0x1ca)][_0x3ea275(0x2aa)](_0x5be290=>{const _0x37c3bb=_0x3ea275;if(_0x5be290[_0x37c3bb(0x601)]==null)return;const _0x9d2924=_0x5be290[_0x37c3bb(0x601)];if(_0x5be290['id']!==ye['RichTextEditingMutation']['id']||_0x9d2924['unitId']!==this[_0x37c3bb(0x351)])return;const _0x1fff02={'id':_0x37c3bb(0x47f),'params':_0x9d2924},_0x1aa83d=this[_0x37c3bb(0x31f)];for(const [_0x150a84,_0x5158e0]of _0x1aa83d){const _0x43f332={'id':_0x37c3bb(0x47f),'params':{'unitId':this[_0x37c3bb(0x351)],'actions':null,'textRanges':_0x5158e0[_0x37c3bb(0x416)]}},_0x411714=this[_0x37c3bb(0x579)][_0x37c3bb(0x4bb)](_0x1fff02,_0x43f332,!0x1);if(S[_0x37c3bb(0x311)](_0x411714))throw _0x411714[_0x37c3bb(0x29f)];_0x1aa83d[_0x37c3bb(0x36d)](_0x150a84,{..._0x5158e0,'ranges':_0x411714['m2Prime']['params'][_0x37c3bb(0x329)]});}queueMicrotask(()=>{const _0x3c4605=_0x37c3bb;this[_0x3c4605(0x3cb)][_0x3c4605(0x4bd)](_0x1aa83d);});})));}[_0x54516d(0x236)](_0x2c9844){const _0x4a71c5=_0x54516d;var _0xbca48b,_0x42cf74;const {memberID:_0x18e390,selection:_0x4e1b15}=_0x2c9844[_0x4a71c5(0x547)],_0xbc366e=Ui(_0x4e1b15),_0x1ab4a3=(_0x42cf74=(_0xbca48b=this['_memberService'][_0x4a71c5(0x2d0)](this[_0x4a71c5(0x351)],_0x18e390))==null?void 0x0:_0xbca48b[_0x4a71c5(0x5fa)])!=null?_0x42cf74:_0x4a71c5(0x1db),_0x2d7d49={'color':this[_0x4a71c5(0x272)]['assignAColorForMemberID'](_0x18e390),'name':_0x1ab4a3,'ranges':_0xbc366e},_0x47908a=this[_0x4a71c5(0x31f)];_0x47908a[_0x4a71c5(0x36d)](_0x18e390,_0x2d7d49),this['_cursorInfo$'][_0x4a71c5(0x4bd)](_0x47908a);}[_0x54516d(0x519)](_0x540b6f){const _0x5a6600=_0x54516d,{memberID:_0x16fdcb}=_0x540b6f[_0x5a6600(0x547)],_0x14c70d=this[_0x5a6600(0x31f)];_0x14c70d[_0x5a6600(0x1c4)](_0x16fdcb),this[_0x5a6600(0x3cb)][_0x5a6600(0x4bd)](_0x14c70d);}[_0x54516d(0x45c)](){const _0x1c2c9a=_0x54516d;var _0x2e484b;if(this[_0x1c2c9a(0x262)]=!0x0,((_0x2e484b=this[_0x1c2c9a(0x228)]['getFocusedUnit']())==null?void 0x0:_0x2e484b['getUnitId']())!==this[_0x1c2c9a(0x351)])return;const _0x32aeb8=this[_0x1c2c9a(0x47c)]['get'](ye[_0x1c2c9a(0x4d3)])[_0x1c2c9a(0x27e)]();Array[_0x1c2c9a(0x5a7)](_0x32aeb8)&&_0x32aeb8[_0x1c2c9a(0x5e8)]>0x0&&this[_0x1c2c9a(0x32e)](_0x32aeb8);}[_0x54516d(0x25d)](){const _0x22e3a4=_0x54516d;this[_0x22e3a4(0x262)]=!0x1;}};mt=Ki([Se(0x2,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),Se(0x3,a['Inject'](Ot)),Se(0x4,a[_0x54516d(0x573)](exports[_0x54516d(0x3a8)])),Se(0x5,a[_0x54516d(0x573)](Rt)),Se(0x6,S['ITransformService']),Se(0x7,a[_0x54516d(0x4e2)]),Se(0x8,a[_0x54516d(0x18a)])],mt);var Xi=Object['defineProperty'],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x289fe2,_0x4755f9,_0x2fc7d6,_0x1b1eb4)=>{const _0x377ee6=_0x54516d;for(var _0x467653=_0x1b1eb4>0x1?void 0x0:_0x1b1eb4?Ji(_0x4755f9,_0x2fc7d6):_0x4755f9,_0x1c6afb=_0x289fe2[_0x377ee6(0x5e8)]-0x1,_0x1e5ba5;_0x1c6afb>=0x0;_0x1c6afb--)(_0x1e5ba5=_0x289fe2[_0x1c6afb])&&(_0x467653=(_0x1b1eb4?_0x1e5ba5(_0x4755f9,_0x2fc7d6,_0x467653):_0x1e5ba5(_0x467653))||_0x467653);return _0x1b1eb4&&_0x467653&&Xi(_0x4755f9,_0x2fc7d6,_0x467653),_0x467653;},be=(_0x9c2cf0,_0x5a81f3)=>(_0x444d49,_0x345583)=>_0x5a81f3(_0x444d49,_0x345583,_0x9c2cf0);const Qi=0x12c,es=0x64,ts=()=>{let _0x19a3fc=[],_0x442926=!0x1;return _0x2b4171=>{const _0x5f1bbf=_0xe852;_0x19a3fc[_0x5f1bbf(0x26e)](_0x2b4171),_0x442926||(_0x442926=!0x0,setTimeout(()=>{const _0x18c94d=_0x5f1bbf;_0x19a3fc[_0x18c94d(0x1ba)](_0x27d158=>_0x27d158()),_0x19a3fc=[],_0x442926=!0x1;}));};};let St=class extends a['RxDisposable']{constructor(_0x2c8fb0,_0x140176,_0x42a45b,_0xa15b04,_0x5a0189,_0x57d4cf,_0x41d3e6,_0x518f62){const _0x454969=_0x54516d;super(),I(this,'_online',!0x1),I(this,'_init',!0x1),I(this,_0x454969(0x3cb),new A[(_0x454969(0x598))](new Map())),I(this,_0x454969(0x2a2),this[_0x454969(0x3cb)][_0x454969(0x1a1)]()),I(this,_0x454969(0x254),new A['BehaviorSubject']([])),I(this,_0x454969(0x41e),this[_0x454969(0x254)][_0x454969(0x5f2)](A[_0x454969(0x2f0)](Qi))),I(this,_0x454969(0x32e),a[_0x454969(0x561)]((_0x3db3df,_0x22b75d)=>{const _0x22f9e7=_0x454969,_0x5355a1={'eventID':S[_0x22f9e7(0x5de)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x22f9e7(0x351)],'memberID':this[_0x22f9e7(0x380)][_0x22f9e7(0x36c)](),'selection':Pt[_0x22f9e7(0x53c)](_0x3db3df,_0x22b75d['range'])}};this[_0x22f9e7(0x380)][_0x22f9e7(0x43c)](_0x5355a1,this['unitID']);},es)),(this[_0x454969(0x351)]=_0x2c8fb0,this['_session']=_0x140176,this[_0x454969(0x47c)]=_0x42a45b,this[_0x454969(0x272)]=_0xa15b04,this[_0x454969(0x543)]=_0x5a0189,this[_0x454969(0x228)]=_0x57d4cf,this[_0x454969(0x1ca)]=_0x41d3e6,this['_refRangeService']=_0x518f62);}get[_0x54516d(0x31f)](){const _0x220394=_0x54516d;return this[_0x220394(0x3cb)][_0x220394(0x371)]();}get['roomMembers'](){const _0x3edd4b=_0x54516d;return this[_0x3edd4b(0x254)]['getValue']();}['dispose'](){const _0x55e8c4=_0x54516d;super[_0x55e8c4(0x417)](),this[_0x55e8c4(0x3cb)][_0x55e8c4(0x4bd)](new Map()),this[_0x55e8c4(0x3cb)][_0x55e8c4(0x28e)](),this['_roomMembers$'][_0x55e8c4(0x4bd)]([]),this[_0x55e8c4(0x254)][_0x55e8c4(0x28e)]();}['init'](){const _0x55cdd4=_0x54516d;this[_0x55cdd4(0x488)]||(this[_0x55cdd4(0x488)]=!0x0,this[_0x55cdd4(0x380)][_0x55cdd4(0x415)][_0x55cdd4(0x5f2)](A[_0x55cdd4(0x42d)](this['dispose$']))[_0x55cdd4(0x4d6)](_0x205a98=>{const _0x7f4ff4=_0x55cdd4;_0x205a98===se[_0x7f4ff4(0x608)]?this[_0x7f4ff4(0x45c)]():this['_toggleOffline']();}),this['_session']['event$'][_0x55cdd4(0x5f2)](A[_0x55cdd4(0x42d)](this[_0x55cdd4(0x610)]))[_0x55cdd4(0x4d6)](_0x3f9698=>{const _0x62685f=_0x55cdd4,_0x1213a2=_0x3f9698[_0x62685f(0x4aa)];_0x1213a2===S[_0x62685f(0x5de)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3f9698),_0x1213a2===S[_0x62685f(0x5de)][_0x62685f(0x58b)]&&this[_0x62685f(0x519)](_0x3f9698);}),this[_0x55cdd4(0x5d8)](),this[_0x55cdd4(0x55b)](this[_0x55cdd4(0x1ca)]['onCommandExecuted'](_0x3b295b=>{const _0x3b170c=_0x55cdd4;if(this[_0x3b170c(0x262)]&&_0x3b295b['id']===k[_0x3b170c(0x4b9)]['id']&&_0x3b295b[_0x3b170c(0x601)][_0x3b170c(0x427)]===this['unitID']){const _0x3819c3=_0x3b295b[_0x3b170c(0x601)];this[_0x3b170c(0x32e)](_0x3819c3['subUnitId'],_0x3819c3['selections'][0x0]);}})));}[_0x54516d(0x236)](_0x316cc1){const _0x205842=_0x54516d;var _0x935805,_0x30eec7;const {memberID:_0x28baee,selection:_0x2d5abc}=_0x316cc1[_0x205842(0x547)],{sheetName:_0x4c1c75,range:_0x220aa4}=Pt[_0x205842(0x539)](_0x2d5abc),_0x4c25b1={'name':(_0x30eec7=(_0x935805=this[_0x205842(0x543)][_0x205842(0x2d0)](this[_0x205842(0x351)],_0x28baee))==null?void 0x0:_0x935805[_0x205842(0x5fa)])!=null?_0x30eec7:'Unknown\x20user','range':this[_0x205842(0x1b7)](_0x4c1c75,_0x220aa4),'sheetID':_0x4c1c75,'color':this['_colorAssignService'][_0x205842(0x405)](_0x28baee),'selection':_0x2d5abc},_0x2b25a4=this[_0x205842(0x31f)];_0x2b25a4[_0x205842(0x36d)](_0x28baee,_0x4c25b1),this[_0x205842(0x3cb)][_0x205842(0x4bd)](_0x2b25a4);}['_onCursorDelete'](_0x42db7a){const _0x432233=_0x54516d,{memberID:_0xdf1643}=_0x42db7a['data'],_0x357f08=this[_0x432233(0x31f)];_0x357f08[_0x432233(0x1c4)](_0xdf1643),this[_0x432233(0x3cb)][_0x432233(0x4bd)](_0x357f08);}[_0x54516d(0x1b7)](_0x32c8ab,_0x4e97cf){const _0x5afaa5=_0x54516d;var _0xa4c14b,_0x491637;const _0x148b66=(_0x491637=(_0xa4c14b=this[_0x5afaa5(0x228)][_0x5afaa5(0x5c2)](this[_0x5afaa5(0x351)]))==null?void 0x0:_0xa4c14b[_0x5afaa5(0x28c)](_0x32c8ab))==null?void 0x0:_0x491637[_0x5afaa5(0x2c0)]();return(_0x148b66==null?void 0x0:_0x148b66[_0x5afaa5(0x4d1)](_0x1f2771=>a['Rectangle'][_0x5afaa5(0x2a7)](_0x1f2771,_0x4e97cf)))||_0x4e97cf;}[_0x54516d(0x5d8)](){const _0x7c0e14=_0x54516d,_0x1a8f58=new a[(_0x7c0e14(0x1b5))](),_0x2b09eb=ts(),_0x2a30f8=()=>{const _0x2ca5df=_0x7c0e14;_0x1a8f58[_0x2ca5df(0x417)]();const _0x4e78ee=(_0x381350,_0x46d688,_0x3653cc,_0x48bc41)=>{const _0x2b7a77=_0x2ca5df;let _0x2ea7d7=[];switch(_0x381350['id']){case k[_0x2b7a77(0x2f1)][_0x2b7a77(0x2e9)]:{_0x2ea7d7=k[_0x2b7a77(0x430)](_0x381350,_0x48bc41);break;}case k[_0x2b7a77(0x2f1)][_0x2b7a77(0x1f0)]:{_0x2ea7d7=k[_0x2b7a77(0x3f4)](_0x381350,_0x48bc41);break;}case k[_0x2b7a77(0x2f1)][_0x2b7a77(0x5c6)]:{_0x2ea7d7=k[_0x2b7a77(0x3c3)](_0x381350,_0x48bc41);break;}case k[_0x2b7a77(0x2f1)][_0x2b7a77(0x33d)]:{_0x2ea7d7=k[_0x2b7a77(0x604)](_0x381350,_0x48bc41);break;}case k['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2ea7d7=k['handleInsertRangeMoveRight'](_0x381350,_0x48bc41);break;}case k['EffectRefRangId'][_0x2b7a77(0x17f)]:{_0x2ea7d7=k['handleInsertRow'](_0x381350,_0x48bc41);break;}case k[_0x2b7a77(0x2f1)]['MoveRangeCommandId']:{_0x2ea7d7=k[_0x2b7a77(0x42e)](_0x381350,_0x48bc41);break;}case k['EffectRefRangId'][_0x2b7a77(0x319)]:{_0x2ea7d7=k[_0x2b7a77(0x548)](_0x381350,_0x48bc41);break;}case k[_0x2b7a77(0x2f1)][_0x2b7a77(0x410)]:{_0x2ea7d7=k[_0x2b7a77(0x2d6)](_0x381350,_0x48bc41);break;}}const _0x15c3e5=k['runRefRangeMutations'](_0x2ea7d7,_0x48bc41),_0x54bbad=this[_0x2b7a77(0x31f)][_0x2b7a77(0x3b1)](_0x46d688);if(_0x54bbad&&_0x15c3e5){const _0x3d0ca0={..._0x54bbad,'range':_0x15c3e5};this['cursorInfo']['set'](_0x46d688,_0x3d0ca0),_0x2b09eb(()=>{const _0x4b8f74=_0x2b7a77,_0x2257d6=this['_refRangeService']['registerRefRange'](_0x15c3e5,_0x54497f=>(_0x2257d6[_0x4b8f74(0x417)](),_0x4e78ee(_0x54497f,_0x46d688,_0x3653cc,_0x15c3e5)));_0x1a8f58[_0x4b8f74(0x2ba)](_0x2257d6);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x39d119,_0x99892c)=>{const _0x48211c=_0x2ca5df,{range:_0xbfdb2e,sheetID:_0x233c4c}=_0x39d119,_0x100aa7=this['_refRangeService']['registerRefRange'](_0xbfdb2e,_0x31a941=>(_0x100aa7[_0x48211c(0x417)](),_0x4e78ee(_0x31a941,_0x99892c,_0x233c4c,_0xbfdb2e)));_0x1a8f58[_0x48211c(0x2ba)](_0x100aa7);});};this[_0x7c0e14(0x55b)](a[_0x7c0e14(0x562)](this['_cursorInfo$'][_0x7c0e14(0x4d6)](()=>{_0x2a30f8();})));}[_0x54516d(0x45c)](){const _0xf4eda6=_0x54516d;var _0x54f790,_0x874c90;if(this[_0xf4eda6(0x262)]=!0x0,((_0x54f790=this[_0xf4eda6(0x228)][_0xf4eda6(0x310)]())==null?void 0x0:_0x54f790[_0xf4eda6(0x2c5)]())!==this['unitID'])return;const _0x3093f6=(_0x874c90=this[_0xf4eda6(0x47c)]['get'](k[_0xf4eda6(0x398)])[_0xf4eda6(0x5dc)]())==null?void 0x0:_0x874c90[0x0],_0x43f431=this[_0xf4eda6(0x228)]['getCurrentUnitForType'](a[_0xf4eda6(0x2f2)][_0xf4eda6(0x299)])['getActiveSheet']();_0x3093f6&&_0x43f431&&this[_0xf4eda6(0x32e)](_0x43f431[_0xf4eda6(0x297)](),_0x3093f6);}[_0x54516d(0x25d)](){const _0x5b54ee=_0x54516d;this[_0x5b54ee(0x262)]=!0x1;}};St=Zi([be(0x2,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),be(0x3,a[_0x54516d(0x573)](Ot)),be(0x4,a[_0x54516d(0x573)](exports['MemberService'])),be(0x5,a[_0x54516d(0x4e2)]),be(0x6,a['ICommandService']),be(0x7,a[_0x54516d(0x573)](k[_0x54516d(0x5b5)]))],St);var ns=Object[_0x54516d(0x461)],is=Object['getOwnPropertyDescriptor'],ss=(_0xadde73,_0x533abf,_0x26e62f,_0x4b2532)=>{const _0x59acd8=_0x54516d;for(var _0x2cab9e=_0x4b2532>0x1?void 0x0:_0x4b2532?is(_0x533abf,_0x26e62f):_0x533abf,_0x350267=_0xadde73[_0x59acd8(0x5e8)]-0x1,_0x5cf045;_0x350267>=0x0;_0x350267--)(_0x5cf045=_0xadde73[_0x350267])&&(_0x2cab9e=(_0x4b2532?_0x5cf045(_0x533abf,_0x26e62f,_0x2cab9e):_0x5cf045(_0x2cab9e))||_0x2cab9e);return _0x4b2532&&_0x2cab9e&&ns(_0x533abf,_0x26e62f,_0x2cab9e),_0x2cab9e;},nt=(_0xaa448b,_0x1ba141)=>(_0x5e2417,_0x5e151d)=>_0x1ba141(_0x5e2417,_0x5e151d,_0xaa448b);let De=class extends a['RxDisposable']{constructor(_0x528da2,_0xcee286,_0x47b2b7){const _0x1ae52d=_0x54516d;super(),I(this,_0x1ae52d(0x3c8),new Map()),I(this,_0x1ae52d(0x4e1),new A[(_0x1ae52d(0x465))]()),(this[_0x1ae52d(0x228)]=_0x528da2,this[_0x1ae52d(0x47c)]=_0xcee286,this[_0x1ae52d(0x3b9)]=_0x47b2b7,this[_0x1ae52d(0x488)]());}[_0x54516d(0x417)](){const _0x475e09=_0x54516d;super[_0x475e09(0x417)](),this['_entityInit$'][_0x475e09(0x28e)](),this['_entities']['forEach'](_0x5e6e01=>_0x5e6e01[_0x475e09(0x417)]());}[_0x54516d(0x2bf)](_0x24a7ec){const _0x3d9e8a=_0x54516d;return this[_0x3d9e8a(0x3c8)][_0x3d9e8a(0x468)](_0x24a7ec)?this[_0x3d9e8a(0x3c8)][_0x3d9e8a(0x3b1)](_0x24a7ec)['cursorInfo$']:this[_0x3d9e8a(0x4e1)]['pipe'](A[_0x3d9e8a(0x292)](_0x262e6b=>_0x262e6b['unitID']===_0x24a7ec),A['switchMap'](_0x5f5da4=>_0x5f5da4[_0x3d9e8a(0x2a2)]));}[_0x54516d(0x488)](){const _0x594168=_0x54516d;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x594168(0x2f2)][_0x594168(0x299)])['pipe'](A[_0x594168(0x42d)](this[_0x594168(0x610)]))[_0x594168(0x4d6)](async _0x4bb64f=>{const _0x2d4f91=_0x594168,_0x2166a1=_0x4bb64f[_0x2d4f91(0x2c5)](),_0x2ac9fb=await this['_startSheetCollabCursor'](_0x2166a1);this['_entityInit$']['next'](_0x2ac9fb),this[_0x2d4f91(0x3c8)][_0x2d4f91(0x36d)](_0x2166a1,_0x2ac9fb);}),this[_0x594168(0x228)][_0x594168(0x3f1)](a['UniverInstanceType'][_0x594168(0x60e)])[_0x594168(0x5f2)](A[_0x594168(0x42d)](this[_0x594168(0x610)]))[_0x594168(0x5f2)](A[_0x594168(0x292)](_0xab48be=>!_0xab48be[_0x594168(0x2c5)]()[_0x594168(0x209)]('__')))[_0x594168(0x4d6)](async _0x34b5d8=>{const _0x13f44a=_0x594168,_0x4e10de=_0x34b5d8[_0x13f44a(0x2c5)](),_0x56ce62=await this[_0x13f44a(0x2b9)](_0x4e10de);this[_0x13f44a(0x4e1)][_0x13f44a(0x4bd)](_0x56ce62),this[_0x13f44a(0x3c8)][_0x13f44a(0x36d)](_0x4e10de,_0x56ce62);}),A[_0x594168(0x349)](this[_0x594168(0x228)][_0x594168(0x2f8)](a[_0x594168(0x2f2)]['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x594168(0x2f2)][_0x594168(0x299)]))[_0x594168(0x5f2)](A[_0x594168(0x42d)](this['dispose$']))[_0x594168(0x4d6)](_0x3da0f3=>{const _0x329bc5=_0x594168,_0x4517cf=_0x3da0f3[_0x329bc5(0x2c5)](),_0x293dcf=this[_0x329bc5(0x3c8)][_0x329bc5(0x3b1)](_0x4517cf);_0x293dcf&&(_0x293dcf[_0x329bc5(0x417)](),this[_0x329bc5(0x3c8)][_0x329bc5(0x1c4)](_0x4517cf));});}async[_0x54516d(0x31c)](_0x8cb7eb){const _0x56fd61=_0x54516d,_0x472158=await this[_0x56fd61(0x3b9)][_0x56fd61(0x2fd)](_0x8cb7eb),_0x53dff5=this[_0x56fd61(0x47c)][_0x56fd61(0x5d2)](St,_0x8cb7eb,_0x472158);return _0x53dff5[_0x56fd61(0x4eb)](),_0x53dff5;}async[_0x54516d(0x2b9)](_0x4bb5c5){const _0x2a2d79=_0x54516d,_0x347ceb=await this[_0x2a2d79(0x3b9)][_0x2a2d79(0x2fd)](_0x4bb5c5),_0x4c3589=this[_0x2a2d79(0x47c)]['createInstance'](mt,_0x4bb5c5,_0x347ceb);return _0x4c3589['init'](),_0x4c3589;}};De=ss([nt(0x0,a[_0x54516d(0x4e2)]),nt(0x1,a[_0x54516d(0x573)](a['Injector'])),nt(0x2,a['Inject'](exports[_0x54516d(0x580)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x28703e,_0x468761){const _0x5f5513=_0x54516d;let {radius:_0x58a427,width:_0x594c63,height:_0x22bbe6}=_0x468761;_0x58a427=_0x58a427!=null?_0x58a427:0x0,_0x594c63=_0x594c63!=null?_0x594c63:0x1e,_0x22bbe6=_0x22bbe6!=null?_0x22bbe6:0x1e;let _0x482829=0x0,_0x2ee1b9=0x0,_0x404e96=0x0;_0x482829=_0x2ee1b9=_0x404e96=Math['min'](_0x58a427,_0x594c63/0x2,_0x22bbe6/0x2),_0x28703e[_0x5f5513(0x60c)](),_0x28703e[_0x5f5513(0x37e)](_0x482829,0x0),_0x28703e[_0x5f5513(0x281)](_0x594c63-_0x2ee1b9,0x0),_0x28703e[_0x5f5513(0x1bf)](_0x594c63-_0x2ee1b9,_0x2ee1b9,_0x2ee1b9,Math['PI']*0x3/0x2,0x0,!0x1),_0x28703e[_0x5f5513(0x281)](_0x594c63,_0x22bbe6-_0x404e96),_0x28703e[_0x5f5513(0x1bf)](_0x594c63-_0x404e96,_0x22bbe6-_0x404e96,_0x404e96,0x0,Math['PI']/0x2,!0x1),_0x28703e['lineTo'](0x0,_0x22bbe6),_0x28703e[_0x5f5513(0x281)](0x0,_0x482829),_0x28703e[_0x5f5513(0x1bf)](_0x482829,_0x482829,_0x482829,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28703e[_0x5f5513(0x44e)](),_0x468761[_0x5f5513(0x4c0)]&&(_0x28703e[_0x5f5513(0x38d)](),_0x28703e[_0x5f5513(0x518)]=_0x468761[_0x5f5513(0x4c0)],_0x468761['fillRule']==='evenodd'?_0x28703e[_0x5f5513(0x4c0)](_0x5f5513(0x4e4)):_0x28703e[_0x5f5513(0x4c0)](),_0x28703e['restore']());}class ze extends K['Shape']{constructor(_0x139c33,_0x2ef0b7){const _0x41b975=_0x54516d;super(_0x139c33,_0x2ef0b7),I(this,_0x41b975(0x3ec)),I(this,_0x41b975(0x53e)),(this['color']=_0x2ef0b7==null?void 0x0:_0x2ef0b7[_0x41b975(0x3ec)],this[_0x41b975(0x53e)]=_0x2ef0b7==null?void 0x0:_0x2ef0b7[_0x41b975(0x53e)]);}static[_0x54516d(0x37c)](_0x8554f,_0x118830){const _0x28efaf=_0x54516d,{text:_0x375862,color:_0x2f52b2}=_0x118830;_0x8554f[_0x28efaf(0x38d)](),_0x8554f[_0x28efaf(0x3f7)]=_0x28efaf(0x593);const _0x4765c7=_0x8554f['measureText'](_0x375862)[_0x28efaf(0x1ce)],_0x169b44=Math[_0x28efaf(0x34c)](_0x4765c7+0x2*it,Ht);os(_0x8554f,{'height':Le,'radius':0x4,'width':_0x169b44,'fill':_0x2f52b2,'evented':!0x1}),_0x8554f[_0x28efaf(0x518)]=_0x28efaf(0x474);const _0x400fc5=it,_0x117d95=Le-rs,_0xa9af1d=Ht-0x2*it;if(_0x4765c7>_0xa9af1d){let _0xf307e2='',_0x469a69=0x0;for(const _0x177b36 of _0x375862){const _0x157b99=_0x8554f['measureText'](_0x177b36)[_0x28efaf(0x1ce)];if(_0x469a69+_0x157b99<=_0xa9af1d-_0x8554f['measureText'](_0x28efaf(0x544))[_0x28efaf(0x1ce)])_0xf307e2+=_0x177b36,_0x469a69+=_0x157b99;else{_0xf307e2+=_0x28efaf(0x544);break;}}_0x8554f['fillText'](_0xf307e2,_0x400fc5,_0x117d95);}else _0x8554f[_0x28efaf(0x368)](_0x375862,_0x400fc5,_0x117d95);_0x8554f['restore']();}[_0x54516d(0x50d)](_0x202295){const _0x1a2975=_0x54516d;ze[_0x1a2975(0x37c)](_0x202295,this);}}const st=_0x54516d(0x382),as=_0x54516d(0x189),cs=_0x54516d(0x5d0),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x54516d(0x54a);class Bt{constructor(_0xd762e4,_0x1e56ef,_0xeca645,_0x531475){const _0x79784f=_0x54516d;I(this,_0x79784f(0x313),[]),I(this,_0x79784f(0x611),null),I(this,_0x79784f(0x55e),null),I(this,_0x79784f(0x21f),null),I(this,_0x79784f(0x42c),null),I(this,_0x79784f(0x57d),null),(this[_0x79784f(0x196)]=_0xd762e4,this[_0x79784f(0x438)]=_0x1e56ef,this[_0x79784f(0x4d9)]=_0xeca645,this[_0x79784f(0x317)]=_0x531475,this[_0x79784f(0x47a)]());}set[_0x54516d(0x607)](_0x414183){const _0xf01249=_0x54516d;_0x414183?(this[_0xf01249(0x21f)]&&this['_anchorDot'][_0xf01249(0x2e6)](),this[_0xf01249(0x55e)]&&this[_0xf01249(0x55e)][_0xf01249(0x5e3)]()):(this['_anchorDot']&&this[_0xf01249(0x21f)]['show'](),this[_0xf01249(0x55e)]&&this[_0xf01249(0x55e)]['hide']());}[_0x54516d(0x417)](){const _0x34781f=_0x54516d;for(const _0x5603a0 of this[_0x34781f(0x313)])_0x5603a0[_0x34781f(0x417)]();this[_0x34781f(0x55e)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x34781f(0x417)](),this['_anchor']&&this['_anchor'][_0x34781f(0x417)](),this[_0x34781f(0x57d)]&&this[_0x34781f(0x57d)]();}[_0x54516d(0x47a)](){const _0x5dd2e0=_0x54516d;var _0x1cbc7f;const {_docSkeleton:_0x278c5a,_document:_0x4baff7}=this,{color:_0x3a6d07,name:_0x31155d,ranges:_0x13d86c}=this['_cursor'],_0x4c6955=_0x4baff7['getOffsetConfig'](),{docsLeft:_0x1fa31d,docsTop:_0x13a387}=_0x4c6955,_0x41e54f=new J['NodePositionConvertToCursor'](_0x4c6955,_0x278c5a);for(const {startOffset:_0x464ab0,endOffset:_0x442144,rangeType:_0x55432f,segmentId:_0x3a8a26,segmentPage:_0x998f45,collapsed:_0x48c504,isActive:_0x3704c2}of _0x13d86c){const _0x581c56=_0x278c5a['findNodePositionByCharIndex'](_0x464ab0,!0x0,_0x3a8a26,_0x998f45);let _0x56b2eb=_0x278c5a[_0x5dd2e0(0x4b4)](_0x442144,!0x0,_0x3a8a26,_0x998f45);if(_0x56b2eb==null&&(_0x56b2eb=_0x278c5a[_0x5dd2e0(0x4b4)](_0x442144-0x1,!0x1,_0x3a8a26,_0x998f45)),_0x3704c2){const {contentBoxPointGroup:_0xc7e77d}=_0x41e54f['getRangePointData'](_0x56b2eb,_0x56b2eb);if(_0xc7e77d[_0x5dd2e0(0x5e8)]===0x0)continue;this['_drawAnchor'](_0x3a6d07,_0xc7e77d,_0x1fa31d,_0x13a387,_0x31155d),this[_0x5dd2e0(0x57d)]=this[_0x5dd2e0(0x51a)]();}if(_0x581c56&&_0x56b2eb){if(_0x55432f===a[_0x5dd2e0(0x554)][_0x5dd2e0(0x231)]){const _0x53816c=new J[(_0x5dd2e0(0x3d8))](_0x4c6955,_0x278c5a),{pointGroup:_0x269b13}=(_0x1cbc7f=_0x53816c[_0x5dd2e0(0x5f1)](_0x581c56,_0x56b2eb))!=null?_0x1cbc7f:{};if(_0x269b13==null||_0x269b13[_0x5dd2e0(0x5e8)]===0x0)continue;this['_drawRectRange'](_0x3a6d07,_0x269b13,_0x1fa31d,_0x13a387);}else{if(!_0x48c504){const {borderBoxPointGroup:_0x51c9df}=_0x41e54f[_0x5dd2e0(0x5f1)](_0x581c56,_0x56b2eb);if(_0x51c9df[_0x5dd2e0(0x5e8)]===0x0)continue;this[_0x5dd2e0(0x2ca)](_0x3a6d07,_0x51c9df,_0x1fa31d,_0x13a387);}}}}}['_drawAnchor'](_0x3442e8,_0x45e3fe,_0x2e7cdf,_0x35bc5b,_0x8f8791){const _0x11a0b8=_0x54516d,_0x4a5c5e=this[_0x11a0b8(0x1da)](_0x45e3fe),{left:_0x4e1b68,top:_0x3f6a67,height:_0xc62e7e}=_0x4a5c5e,_0x53fef8=this[_0x11a0b8(0x4c2)](),_0x3136a4=hs/_0x53fef8,_0x2627f8=new K[(_0x11a0b8(0x226))](st+a[_0x11a0b8(0x3eb)][_0x11a0b8(0x3a3)](Ue),{'left':_0x4e1b68+_0x2e7cdf-_0x3136a4,'top':_0x3f6a67+_0x35bc5b,'height':_0xc62e7e,'width':ls,'fill':_0x3442e8||K['getColor'](a[_0x11a0b8(0x499)][_0x11a0b8(0x51f)],0x0),'strokeWidth':_0x3136a4,'stroke':_s,'evented':!0x0});this['_anchor']=_0x2627f8,this['_scene'][_0x11a0b8(0x286)](_0x2627f8,J[_0x11a0b8(0x22e)]);const _0x14fac2=new K[(_0x11a0b8(0x226))](st+a[_0x11a0b8(0x3eb)][_0x11a0b8(0x3a3)](Ue),{'left':_0x4e1b68+_0x2e7cdf-_0x3136a4,'top':_0x3f6a67+_0x35bc5b-rt/0x2,'height':rt,'width':rt,'fill':_0x3442e8||K[_0x11a0b8(0x52f)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3442e8||K[_0x11a0b8(0x52f)](a[_0x11a0b8(0x499)][_0x11a0b8(0x51f)],0x0),'evented':!0x1});this[_0x11a0b8(0x21f)]=_0x14fac2,this[_0x11a0b8(0x438)][_0x11a0b8(0x286)](_0x14fac2,J['TEXT_RANGE_LAYER_INDEX']);const _0x4082e=new ze(st+a[_0x11a0b8(0x3eb)][_0x11a0b8(0x3a3)](Ue),{'left':_0x4e1b68+_0x2e7cdf-_0x3136a4,'top':_0x3f6a67+_0x35bc5b-Le,'text':_0x8f8791,'color':_0x3442e8});this['_textBubble']=_0x4082e,this[_0x11a0b8(0x438)][_0x11a0b8(0x286)](_0x4082e,J[_0x11a0b8(0x22e)]),this[_0x11a0b8(0x607)]=!0x1;}[_0x54516d(0x51a)](){const _0x231825=_0x54516d,_0x1ecfdb=this[_0x231825(0x611)][_0x231825(0x3f0)][_0x231825(0x1df)](()=>{const _0x34932d=_0x231825;this[_0x34932d(0x607)]=!0x0;}),_0x3b967c=this['_anchor'][_0x231825(0x1d8)]['subscribeEvent'](()=>{const _0x28f74e=_0x231825;this['_hideTimer']&&clearTimeout(this[_0x28f74e(0x42c)]),this[_0x28f74e(0x42c)]=setTimeout(()=>{const _0x1495a4=_0x28f74e;this[_0x1495a4(0x607)]=!0x1;},0x7d0);});return()=>{const _0x41b202=_0x231825;_0x1ecfdb['unsubscribe'](),_0x3b967c[_0x41b202(0x1bb)]();};}[_0x54516d(0x2ca)](_0x432629,_0x5696d0,_0x485365,_0x50f163){const _0x45ec2e=_0x54516d,_0x9afd9b=new a[(_0x45ec2e(0x58c))](_0x432629)[_0x45ec2e(0x23e)](0.2)[_0x45ec2e(0x346)](),_0x4070f3=new K['RegularPolygon'](as+a[_0x45ec2e(0x3eb)]['generateRandomId'](Ue),{'pointsGroup':_0x5696d0,'fill':_0x9afd9b||K[_0x45ec2e(0x52f)](a[_0x45ec2e(0x499)][_0x45ec2e(0x51f)],0.2),'left':_0x485365,'top':_0x50f163,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x45ec2e(0x313)][_0x45ec2e(0x26e)](_0x4070f3),this[_0x45ec2e(0x438)]['addObject'](_0x4070f3,J['TEXT_RANGE_LAYER_INDEX']);}[_0x54516d(0x176)](_0x37058a,_0x4a79a0,_0x217bff,_0x2fa564){const _0x4ef792=_0x54516d,_0x2cc01d=new a[(_0x4ef792(0x58c))](_0x37058a)[_0x4ef792(0x23e)](0.2)[_0x4ef792(0x346)](),_0x4ce4ed=new K[(_0x4ef792(0x18d))](cs+a[_0x4ef792(0x3eb)]['generateRandomId'](Ue),{'pointsGroup':_0x4a79a0,'fill':_0x2cc01d||K[_0x4ef792(0x52f)](a['COLORS'][_0x4ef792(0x51f)],0.2),'left':_0x217bff,'top':_0x2fa564,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ef792(0x313)][_0x4ef792(0x26e)](_0x4ce4ed),this[_0x4ef792(0x438)][_0x4ef792(0x286)](_0x4ce4ed,J[_0x4ef792(0x22e)]);}[_0x54516d(0x1da)](_0x421391){const _0x34df19=_0x421391[0x0],_0x17f5f3=_0x34df19[0x0],_0x1fb9f3=_0x34df19[0x2],{x:_0x321f5a,y:_0x5629d7}=_0x17f5f3,{x:_0xc6436b,y:_0x28fadb}=_0x1fb9f3;return{'left':_0x321f5a,'top':_0x5629d7,'width':_0xc6436b-_0x321f5a,'height':_0x28fadb-_0x5629d7};}['_getScale'](){const _0x2841b6=_0x54516d,{scaleX:_0x7de9cd,scaleY:_0x354aed}=this[_0x2841b6(0x438)][_0x2841b6(0x39b)]();return Math[_0x2841b6(0x4b0)](_0x7de9cd,_0x354aed);}}var us=Object[_0x54516d(0x461)],ds=Object[_0x54516d(0x363)],fs=(_0x5de389,_0x20ce8e,_0x2734ba,_0x1d8526)=>{const _0x2e3094=_0x54516d;for(var _0x5db2c8=_0x1d8526>0x1?void 0x0:_0x1d8526?ds(_0x20ce8e,_0x2734ba):_0x20ce8e,_0xfeb60a=_0x5de389[_0x2e3094(0x5e8)]-0x1,_0x3a221f;_0xfeb60a>=0x0;_0xfeb60a--)(_0x3a221f=_0x5de389[_0xfeb60a])&&(_0x5db2c8=(_0x1d8526?_0x3a221f(_0x20ce8e,_0x2734ba,_0x5db2c8):_0x3a221f(_0x5db2c8))||_0x5db2c8);return _0x1d8526&&_0x5db2c8&&us(_0x20ce8e,_0x2734ba,_0x5db2c8),_0x5db2c8;},je=(_0x204d5f,_0x317efd)=>(_0x16d0b3,_0x1da4d3)=>_0x317efd(_0x16d0b3,_0x1da4d3,_0x204d5f);let pt=class extends a[_0x54516d(0x1d6)]{constructor(_0xf9b8d6,_0x1cb2af,_0x28f6eb,_0x2b5fd6,_0x293190){const _0x4c72b9=_0x54516d;super(),I(this,_0x4c72b9(0x390),[]),I(this,_0x4c72b9(0x288),[]),(this[_0x4c72b9(0x29e)]=_0xf9b8d6,this['_docSkeletonManagerService']=_0x1cb2af,this[_0x4c72b9(0x3d3)]=_0x28f6eb,this[_0x4c72b9(0x1ca)]=_0x2b5fd6,this[_0x4c72b9(0x3d6)]=_0x293190,this['_init']());}[_0x54516d(0x488)](){const _0x467f72=_0x54516d,_0x553e88=this[_0x467f72(0x29e)][_0x467f72(0x427)],_0x200875=this[_0x467f72(0x5e1)];this['disposeWithMe'](A[_0x467f72(0x2b7)]([this[_0x467f72(0x3d3)][_0x467f72(0x2bf)](_0x553e88),this[_0x467f72(0x3d6)][_0x467f72(0x3dc)]])[_0x467f72(0x5f2)](V['map'](([_0x361cfd,_0x597f92])=>({'skeleton':_0x200875['getSkeleton'](),'cursors':[..._0x361cfd[_0x467f72(0x221)]()][_0x467f72(0x197)](_0x28e072=>({..._0x28e072,'color':_0x597f92[_0x28e072[_0x467f72(0x3ec)]]}))})))[_0x467f72(0x4d6)](_0x1d346c=>{const _0x46e5d4=_0x467f72;if(this[_0x46e5d4(0x1ad)](),_0x1d346c){const {skeleton:_0x408a04,cursors:_0x50d4c5}=_0x1d346c;this[_0x46e5d4(0x5b2)](_0x408a04,_0x50d4c5);}})),this['_initResize'](),this[_0x467f72(0x305)]();}['_updateCollabCursors'](_0x40678a,_0x3cd4b9){const _0xa732a3=_0x54516d,{scene:_0xecca91,mainComponent:_0x1f48df}=this[_0xa732a3(0x29e)],_0x4bfb98=_0x3cd4b9[_0xa732a3(0x2c2)](_0x59e446=>new Bt(_0x59e446,_0xecca91,_0x40678a,_0x1f48df));this[_0xa732a3(0x390)]=_0x4bfb98,this[_0xa732a3(0x288)]=_0x3cd4b9;}['_refreshCollabCursors'](){const _0x38b046=_0x54516d;this[_0x38b046(0x1ad)]();const {scene:_0x427fdc,mainComponent:_0x447f2b}=this[_0x38b046(0x29e)],_0x41a0c3=this[_0x38b046(0x5e1)][_0x38b046(0x536)](),_0x4c281b=this[_0x38b046(0x288)][_0x38b046(0x2c2)](_0x4c2de5=>new Bt(_0x4c2de5,_0x427fdc,_0x41a0c3,_0x447f2b));this[_0x38b046(0x390)]=_0x4c281b;}[_0x54516d(0x1ad)](){const _0x50b3a4=_0x54516d;this['_cursorShapes'][_0x50b3a4(0x1ba)](_0x41e463=>_0x41e463[_0x50b3a4(0x417)]()),this[_0x50b3a4(0x390)]=[];}[_0x54516d(0x305)](){const _0xb71f36=_0x54516d,_0x5633b3=[J[_0xb71f36(0x333)]['id']];this[_0xb71f36(0x55b)](this[_0xb71f36(0x1ca)]['onCommandExecuted'](_0x285c56=>{const _0x216fc2=_0xb71f36;_0x5633b3[_0x216fc2(0x2b1)](_0x285c56['id'])&&_0x285c56['params'][_0x216fc2(0x427)]===this[_0x216fc2(0x29e)][_0x216fc2(0x427)]&&this['_refreshCollabCursors']();}));}[_0x54516d(0x39f)](){const _0x16b6da=_0x54516d;this[_0x16b6da(0x55b)](a[_0x16b6da(0x5ea)](this[_0x16b6da(0x29e)][_0x16b6da(0x199)][_0x16b6da(0x532)])['pipe'](V[_0x16b6da(0x292)](_0x40d22f=>_0x40d22f[_0x16b6da(0x242)]===K[_0x16b6da(0x257)][_0x16b6da(0x1d9)]),V[_0x16b6da(0x60a)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};pt=fs([je(0x1,a['Inject'](ye['DocSkeletonManagerService'])),je(0x2,a['Inject'](De)),je(0x3,a[_0x54516d(0x18a)]),je(0x4,a[_0x54516d(0x573)](a[_0x54516d(0x2a6)]))],pt);const vs=0x1,ms=1.5;class Sn extends K['Shape']{constructor(_0x1a2333,_0x9cfebd){const _0x4ec097=_0x54516d;super(_0x1a2333,_0x9cfebd),I(this,_0x4ec097(0x450)),I(this,_0x4ec097(0x1b3),!0x1),I(this,_0x4ec097(0x53a)),I(this,_0x4ec097(0x37d),''),I(this,_0x4ec097(0x358),'top'),I(this,_0x4ec097(0x4c7)),(_0x9cfebd&&this[_0x4ec097(0x577)](_0x9cfebd),this[_0x4ec097(0x3f0)][_0x4ec097(0x1df)](()=>this[_0x4ec097(0x577)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4ec097(0x1df)](()=>this[_0x4ec097(0x577)]({'hovered':!0x1})));}[_0x54516d(0x577)](_0x2a0242){const _0x17e478=_0x54516d;var _0x33a694,_0x4e071f,_0x416495,_0x2d07cc,_0x48b0d4,_0x2bc94e;this[_0x17e478(0x450)]=(_0x33a694=_0x2a0242[_0x17e478(0x3ec)])!=null?_0x33a694:this[_0x17e478(0x450)],this[_0x17e478(0x1b3)]=(_0x4e071f=_0x2a0242[_0x17e478(0x19f)])!=null?_0x4e071f:this[_0x17e478(0x1b3)],this[_0x17e478(0x53a)]=(_0x416495=_0x2a0242[_0x17e478(0x4ea)])!=null?_0x416495:this['_range'],this[_0x17e478(0x37d)]=(_0x2d07cc=_0x2a0242[_0x17e478(0x5fa)])!=null?_0x2d07cc:this[_0x17e478(0x37d)],this[_0x17e478(0x358)]=(_0x48b0d4=_0x2a0242[_0x17e478(0x3a4)])!=null?_0x48b0d4:this[_0x17e478(0x358)],this['_backgroundColor']=(_0x2bc94e=_0x2a0242[_0x17e478(0x22d)])!=null?_0x2bc94e:this[_0x17e478(0x4c7)],this[_0x17e478(0x187)]({'width':_0x2a0242[_0x17e478(0x1ce)],'height':_0x2a0242['height']});}[_0x54516d(0x5c3)](_0x37af2d){const _0x41f0ae=_0x54516d,{row:_0x454cdd,column:_0xcf3e9b}=_0x37af2d;if(_0x454cdd>=this[_0x41f0ae(0x53a)][_0x41f0ae(0x42a)]&&_0x454cdd<=this[_0x41f0ae(0x53a)][_0x41f0ae(0x38b)]&&_0xcf3e9b>=this[_0x41f0ae(0x53a)]['startColumn']&&_0xcf3e9b<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x41f0ae(0x577)]({'hovered':!0x1});}[_0x54516d(0x53f)](_0x552f32){return!0x1;}[_0x54516d(0x50d)](_0x272d80){const _0xec8253=_0x54516d;K[_0xec8253(0x226)]['drawWith'](_0x272d80,{'width':this[_0xec8253(0x1ce)],'height':this['height'],'strokeWidth':ms,'stroke':this[_0xec8253(0x450)],'evented':!0x1,'fill':this[_0xec8253(0x4c7)]}),this[_0xec8253(0x1b3)]&&(_0x272d80[_0xec8253(0x38d)](),_0x272d80[_0xec8253(0x45b)](0x1,0x0,0x0,0x1,this[_0xec8253(0x1ce)],this[_0xec8253(0x358)]===_0xec8253(0x366)?0x0:-Le),ze['drawWith'](_0x272d80,{'text':this[_0xec8253(0x37d)],'color':this['_color']}),_0x272d80[_0xec8253(0x251)]());}}var Ss=Object[_0x54516d(0x461)],ps=Object[_0x54516d(0x363)],gs=(_0x2cba24,_0xf01034,_0x376c66,_0xd6f6ae)=>{const _0x46aff1=_0x54516d;for(var _0x2cf097=_0xd6f6ae>0x1?void 0x0:_0xd6f6ae?ps(_0xf01034,_0x376c66):_0xf01034,_0x3cdd72=_0x2cba24[_0x46aff1(0x5e8)]-0x1,_0x2354c7;_0x3cdd72>=0x0;_0x3cdd72--)(_0x2354c7=_0x2cba24[_0x3cdd72])&&(_0x2cf097=(_0xd6f6ae?_0x2354c7(_0xf01034,_0x376c66,_0x2cf097):_0x2354c7(_0x2cf097))||_0x2cf097);return _0xd6f6ae&&_0x2cf097&&Ss(_0xf01034,_0x376c66,_0x2cf097),_0x2cf097;},ot=(_0x498fae,_0x1c4eb3)=>(_0x67ae05,_0x1c7637)=>_0x1c4eb3(_0x67ae05,_0x1c7637,_0x498fae);const Is=0x1389;let gt=class extends a[_0x54516d(0x1d6)]{constructor(_0x26dc96,_0x4cd01c,_0x522790,_0x4e4179){const _0x2eb4d1=_0x54516d;super(),I(this,'_cursors',new Set()),I(this,'_lastPointer',null),(this[_0x2eb4d1(0x29e)]=_0x26dc96,this[_0x2eb4d1(0x335)]=_0x4cd01c,this['_collabCursorController']=_0x522790,this['_themeService']=_0x4e4179,this[_0x2eb4d1(0x488)]());}[_0x54516d(0x488)](){const _0xbbad85=_0x54516d;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0xbbad85(0x5f2)](V[_0xbbad85(0x42d)](this['dispose$']),V[_0xbbad85(0x4cb)](_0x40b76b=>{const _0x358493=_0xbbad85;if(_0x40b76b){const _0x4a07a1=_0x40b76b[_0x358493(0x279)];return A[_0x358493(0x2b7)](this['_collabCursorController'][_0x358493(0x2bf)](this[_0x358493(0x29e)]['unitId']),this[_0x358493(0x3d6)][_0x358493(0x3dc)])[_0x358493(0x5f2)](V[_0x358493(0x2c2)](([_0x51a068,_0x14aeab])=>{const _0x365e03=new Map();return _0x51a068['forEach']((_0x884550,_0x31e67c)=>{const _0x49cf31=_0xe852;if(_0x884550[_0x49cf31(0x531)]===_0x4a07a1){const _0x4b50e8={..._0x884550};_0x4b50e8[_0x49cf31(0x3ec)]=_0x14aeab[_0x884550['color']],_0x365e03[_0x49cf31(0x36d)](_0x31e67c,_0x4b50e8);}}),{'skeleton':_0x40b76b,'cursors':_0x365e03};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x14fbca,cursors:_0x48f907})=>{const _0x145cd0=_0xbbad85;this[_0x145cd0(0x1ad)](),_0x14fbca&&this[_0x145cd0(0x5b2)](_0x14fbca,_0x48f907);}),this[_0xbbad85(0x335)]['currentSkeleton$'][_0xbbad85(0x4d6)](_0x215326=>{const _0xeb7cfc=_0xbbad85;if(_0x215326==null)return;const {skeleton:_0x350f79}=_0x215326,{scene:_0xb1afb0}=this[_0xeb7cfc(0x29e)];_0xb1afb0[_0xeb7cfc(0x337)]['subscribeEvent'](a[_0xeb7cfc(0x561)](_0x26eb5e=>{const _0x4defef=_0xeb7cfc;var _0x570d3e,_0x2c2551;const {offsetX:_0x48c948,offsetY:_0xb862f8}=_0x26eb5e,{x:_0x47d380,y:_0x4511cc}=_0xb1afb0[_0x4defef(0x1ff)](K[_0x4defef(0x2ea)]['FromArray']([_0x48c948,_0xb862f8])),{scaleX:_0x1a319a,scaleY:_0x5459cf}=_0xb1afb0[_0x4defef(0x39b)](),_0x33d3f3=_0xb1afb0[_0x4defef(0x3c4)](Re['VIEWPORT_KEY'][_0x4defef(0x2f5)]),_0x45903f=_0xb1afb0[_0x4defef(0x46f)](K[_0x4defef(0x2ea)][_0x4defef(0x619)]([_0x47d380,_0x4511cc]),_0x33d3f3),_0x3d9ec0=_0x350f79['getCellPositionByOffset'](_0x48c948,_0xb862f8,_0x1a319a,_0x5459cf,_0x45903f);((_0x570d3e=this[_0x4defef(0x309)])==null?void 0x0:_0x570d3e['column'])===_0x3d9ec0['column']&&((_0x2c2551=this['_lastPointer'])==null?void 0x0:_0x2c2551[_0x4defef(0x1c0)])===_0x3d9ec0[_0x4defef(0x1c0)]||this[_0x4defef(0x288)][_0x4defef(0x1ba)](_0x42946c=>{_0x42946c['onMouseMove'](_0x3d9ec0);});},0x64));});}[_0x54516d(0x5b2)](_0x4e3be1,_0xebc5bd){const _0x218f75=_0x54516d;var _0x27aa65;const _0x519eb0=(_0x27aa65=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x27aa65['skeleton'];if(!_0x519eb0)return;const _0x144d8a=this[_0x218f75(0x1c3)]();if(!_0x144d8a)return;this[_0x218f75(0x288)][_0x218f75(0x1ba)](_0x55fef4=>{const _0xe4f490=_0x218f75;_0x55fef4[_0xe4f490(0x3c0)]();});const {scene:_0x57585b}=_0x144d8a,_0xdab169=Cs(Array[_0x218f75(0x36a)](_0xebc5bd[_0x218f75(0x221)]()))['map'](_0x17db6a=>{const _0x3af30c=_0x218f75,{color:_0x48c043,range:_0x47df26,name:_0xfdd70e,selection:_0x2c20a5,sheetID:_0xa59d96}=_0x17db6a,{startColumn:_0x59d07e,startRow:_0x3fa526,endColumn:_0x5138a0,endRow:_0x24db5f}=_0x47df26,_0x1c9d2f=Re[_0x3af30c(0x5db)](_0x3fa526,_0x59d07e,_0x57585b,_0x519eb0),_0xedf7=Re[_0x3af30c(0x5db)](_0x24db5f,_0x5138a0,_0x57585b,_0x519eb0),{columnHeaderHeightAndMarginTop:_0x28a81e}=_0x519eb0,{startX:_0x5a99ae,startY:_0x4b5e52}=_0x1c9d2f,{endX:_0x685aa9,endY:_0x379ccd}=_0xedf7,_0x4451c8=_0x685aa9-_0x5a99ae,_0x3f3b95=_0x379ccd-_0x4b5e52,_0x15964e={'labelPosition':_0x4b5e52-_0x28a81e>=Le?_0x3af30c(0x617):'bottom','sheetID':_0xa59d96,'range':_0x47df26,'color':_0x48c043,'name':_0xfdd70e,'selection':_0x2c20a5,'left':_0x5a99ae,'top':_0x4b5e52,'width':_0x4451c8,'height':_0x3f3b95,'evented':!0x1,'zIndex':Is};return new Sn(_0xfdd70e,_0x15964e);});_0x57585b[_0x218f75(0x2c9)](_0xdab169,vs),this[_0x218f75(0x288)]=new Set(_0xdab169);}[_0x54516d(0x1ad)](){const _0x8fc49=_0x54516d;var _0x1560b9;(_0x1560b9=this[_0x8fc49(0x288)])==null||_0x1560b9[_0x8fc49(0x1ba)](_0x584e34=>_0x584e34[_0x8fc49(0x417)]());}[_0x54516d(0x1c3)](){const _0x31c479=_0x54516d;return Re['getSheetObject'](this['_context'][_0x31c479(0x592)],this[_0x31c479(0x29e)]);}};gt=gs([ot(0x1,a[_0x54516d(0x573)](Re['SheetSkeletonManagerService'])),ot(0x2,a['Inject'](De)),ot(0x3,a[_0x54516d(0x573)](a[_0x54516d(0x2a6)]))],gt);function Cs(_0x302767){const _0xac174=_0x54516d,_0x309db9=new Map();return _0x302767[_0xac174(0x1ba)](_0x13baa5=>{const _0x1e17f2=_0xac174;if(_0x309db9[_0x1e17f2(0x468)](_0x13baa5['selection'])){const _0x5e4079=_0x309db9[_0x1e17f2(0x3b1)](_0x13baa5['selection']);_0x5e4079['name']+=',\x20'+_0x13baa5[_0x1e17f2(0x5fa)];}else _0x309db9[_0x1e17f2(0x36d)](_0x13baa5[_0x1e17f2(0x3fa)],_0x13baa5);}),Array['from'](_0x309db9[_0xac174(0x221)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x4d9acf){const _0x354d35=_0x54516d;return _0x4d9acf&&_0x4d9acf['__esModule']&&Object[_0x354d35(0x494)]['hasOwnProperty'][_0x354d35(0x2a5)](_0x4d9acf,_0x354d35(0x32f))?_0x4d9acf['default']:_0x4d9acf;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol[_0x54516d(0x20c)](_0x54516d(0x1c1)),Ts=Symbol[_0x54516d(0x20c)](_0x54516d(0x57a)),Rs=Object[_0x54516d(0x494)][_0x54516d(0x284)],ys=Es['__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED'][_0x54516d(0x38c)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x367286,_0x45b9c6,_0x387725){const _0x796a3a=_0x54516d;var _0x23f08b,_0x5927a8={},_0x2891b6=null,_0x58ee9a=null;_0x387725!==void 0x0&&(_0x2891b6=''+_0x387725),_0x45b9c6[_0x796a3a(0x5f3)]!==void 0x0&&(_0x2891b6=''+_0x45b9c6[_0x796a3a(0x5f3)]),_0x45b9c6[_0x796a3a(0x511)]!==void 0x0&&(_0x58ee9a=_0x45b9c6[_0x796a3a(0x511)]);for(_0x23f08b in _0x45b9c6)Rs[_0x796a3a(0x2a5)](_0x45b9c6,_0x23f08b)&&!Os[_0x796a3a(0x284)](_0x23f08b)&&(_0x5927a8[_0x23f08b]=_0x45b9c6[_0x23f08b]);if(_0x367286&&_0x367286[_0x796a3a(0x21c)]){for(_0x23f08b in(_0x45b9c6=_0x367286['defaultProps'],_0x45b9c6))_0x5927a8[_0x23f08b]===void 0x0&&(_0x5927a8[_0x23f08b]=_0x45b9c6[_0x23f08b]);}return{'$$typeof':bs,'type':_0x367286,'key':_0x2891b6,'ref':_0x58ee9a,'props':_0x5927a8,'_owner':ys[_0x796a3a(0x513)]};}Xe['Fragment']=Ts,Xe[_0x54516d(0x605)]=gn,Xe[_0x54516d(0x1a8)]=gn,pn[_0x54516d(0x359)]=Xe;var pe=pn[_0x54516d(0x359)],Q=function(){const _0x1e073c=_0x54516d;return Q=Object[_0x1e073c(0x3f2)]||function(_0x17342e){const _0x1a03f2=_0x1e073c;for(var _0x59664c,_0x28042e=0x1,_0x2f2524=arguments[_0x1a03f2(0x5e8)];_0x28042e<_0x2f2524;_0x28042e++){_0x59664c=arguments[_0x28042e];for(var _0x5c2043 in _0x59664c)Object['prototype'][_0x1a03f2(0x284)]['call'](_0x59664c,_0x5c2043)&&(_0x17342e[_0x5c2043]=_0x59664c[_0x5c2043]);}return _0x17342e;},Q[_0x1e073c(0x613)](this,arguments);},Ds=function(_0x601f02,_0x511b18){const _0x1830c6=_0x54516d;var _0x51d77e={};for(var _0x58c98b in _0x601f02)Object[_0x1830c6(0x494)][_0x1830c6(0x284)][_0x1830c6(0x2a5)](_0x601f02,_0x58c98b)&&_0x511b18['indexOf'](_0x58c98b)<0x0&&(_0x51d77e[_0x58c98b]=_0x601f02[_0x58c98b]);if(_0x601f02!=null&&typeof Object[_0x1830c6(0x4c5)]==_0x1830c6(0x30c)){for(var _0x5560e7=0x0,_0x58c98b=Object['getOwnPropertySymbols'](_0x601f02);_0x5560e7<_0x58c98b['length'];_0x5560e7++)_0x511b18[_0x1830c6(0x31d)](_0x58c98b[_0x5560e7])<0x0&&Object[_0x1830c6(0x494)][_0x1830c6(0x411)][_0x1830c6(0x2a5)](_0x601f02,_0x58c98b[_0x5560e7])&&(_0x51d77e[_0x58c98b[_0x5560e7]]=_0x601f02[_0x58c98b[_0x5560e7]]);}return _0x51d77e;},Dt=ae[_0x54516d(0x278)](function(_0x3ba03a,_0x2b10d3){const _0x21d7c9=_0x54516d;var _0xe72f65=_0x3ba03a['icon'],_0x5b1ee3=_0x3ba03a['id'],_0x3c69e8=_0x3ba03a[_0x21d7c9(0x1c2)],_0x5759e4=_0x3ba03a[_0x21d7c9(0x16e)],_0x39f68c=Ds(_0x3ba03a,[_0x21d7c9(0x469),'id','className',_0x21d7c9(0x16e)]),_0x473929=_0x21d7c9(0x4fc)['concat'](_0x5b1ee3,'\x20')[_0x21d7c9(0x213)](_0x3c69e8||'')[_0x21d7c9(0x268)](),_0x1e86fd=ae[_0x21d7c9(0x17b)]('_'[_0x21d7c9(0x213)](Us()));return In(_0xe72f65,''[_0x21d7c9(0x213)](_0x5b1ee3),{'defIds':_0xe72f65['defIds'],'idSuffix':_0x1e86fd[_0x21d7c9(0x513)]},Q({'ref':_0x2b10d3,'className':_0x473929},_0x39f68c),_0x5759e4);});function In(_0x57cf76,_0x58e03b,_0x573c70,_0x444f9e,_0x28e98d){const _0x3e12d0=_0x54516d;return ae[_0x3e12d0(0x454)](_0x57cf76[_0x3e12d0(0x45f)],Q(Q({'key':_0x58e03b},ws(_0x57cf76,_0x573c70,_0x28e98d)),_0x444f9e),(Ps(_0x57cf76,_0x573c70)[_0x3e12d0(0x542)]||[])[_0x3e12d0(0x2c2)](function(_0x3fe37a,_0x246960){const _0x192fd7=_0x3e12d0;return In(_0x3fe37a,''[_0x192fd7(0x213)](_0x58e03b,'-')[_0x192fd7(0x213)](_0x57cf76[_0x192fd7(0x45f)],'-')[_0x192fd7(0x213)](_0x246960),_0x573c70,void 0x0,_0x28e98d);}));}function ws(_0x3134d4,_0x525536,_0x512b48){const _0x386f04=_0x54516d;var _0x2ac400=Q({},_0x3134d4[_0x386f04(0x484)]);_0x512b48!=null&&_0x512b48['colorChannel1']&&_0x2ac400[_0x386f04(0x4c0)]===_0x386f04(0x584)&&(_0x2ac400['fill']=_0x512b48[_0x386f04(0x584)]);var _0x1a48c2=_0x525536[_0x386f04(0x29a)];return!_0x1a48c2||_0x1a48c2['length']===0x0||(_0x3134d4[_0x386f04(0x45f)]===_0x386f04(0x217)&&_0x2ac400[_0x386f04(0x49c)]&&(_0x2ac400['xlink:href']=_0x2ac400[_0x386f04(0x49c)]+_0x525536[_0x386f04(0x3b4)]),Object[_0x386f04(0x57e)](_0x2ac400)[_0x386f04(0x1ba)](function(_0x4e76fe){const _0x9d8bee=_0x386f04;var _0x1349e4=_0x4e76fe[0x0],_0x4ee927=_0x4e76fe[0x1];typeof _0x4ee927==_0x9d8bee(0x3aa)&&(_0x2ac400[_0x1349e4]=_0x4ee927['replace'](/url\(#(.*)\)/,_0x9d8bee(0x508)['concat'](_0x525536[_0x9d8bee(0x3b4)],')')));})),_0x2ac400;}function Ps(_0x4b60f1,_0x447b7a){const _0xcbe9ec=_0x54516d;var _0x2ff522,_0x4bef31=_0x447b7a[_0xcbe9ec(0x29a)];return!_0x4bef31||_0x4bef31['length']===0x0?_0x4b60f1:_0x4b60f1[_0xcbe9ec(0x45f)]===_0xcbe9ec(0x5f5)&&(!((_0x2ff522=_0x4b60f1[_0xcbe9ec(0x542)])===null||_0x2ff522===void 0x0)&&_0x2ff522[_0xcbe9ec(0x5e8)])?Q(Q({},_0x4b60f1),{'children':_0x4b60f1[_0xcbe9ec(0x542)][_0xcbe9ec(0x2c2)](function(_0x42de2e){const _0x19493c=_0xcbe9ec;return typeof _0x42de2e[_0x19493c(0x484)]['id']==_0x19493c(0x3aa)&&_0x4bef31&&_0x4bef31['indexOf'](_0x42de2e[_0x19493c(0x484)]['id'])>-0x1?Q(Q({},_0x42de2e),{'attrs':Q(Q({},_0x42de2e[_0x19493c(0x484)]),{'id':_0x42de2e[_0x19493c(0x484)]['id']+_0x447b7a['idSuffix']})}):_0x42de2e;})}):_0x4b60f1;}function Us(){const _0x3feb25=_0x54516d;return Math[_0x3feb25(0x35c)]()[_0x3feb25(0x481)](0x24)[_0x3feb25(0x283)](0x2,0x8);}Dt[_0x54516d(0x41a)]=_0x54516d(0x553);var Ms={'tag':'svg','attrs':{'fill':_0x54516d(0x5ed),'viewBox':_0x54516d(0x37b),'width':'1em','height':_0x54516d(0x28f)},'children':[{'tag':'g','attrs':{'clipPath':_0x54516d(0x59b)},'children':[{'tag':_0x54516d(0x545),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x54516d(0x174),'strokeWidth':1.2}}]},{'tag':_0x54516d(0x5f5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x54516d(0x18f)},'children':[{'tag':'path','attrs':{'fill':_0x54516d(0x41c),'d':_0x54516d(0x198)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Cn=ae['forwardRef'](function(_0x3c637a,_0x547617){const _0x5cc9de=_0x54516d;return ae[_0x5cc9de(0x454)](Dt,Object[_0x5cc9de(0x3f2)]({},_0x3c637a,{'id':_0x5cc9de(0x45e),'ref':_0x547617,'icon':Ms}));});Cn[_0x54516d(0x41a)]=_0x54516d(0x190);var As={'tag':'svg','attrs':{'fill':'none','viewBox':_0x54516d(0x303),'width':'1em','height':_0x54516d(0x28f)},'children':[{'tag':'g','attrs':{'clipPath':_0x54516d(0x367)},'children':[{'tag':_0x54516d(0x545),'attrs':{'stroke':_0x54516d(0x492),'d':_0x54516d(0x298),'strokeLinecap':_0x54516d(0x174),'strokeLinejoin':_0x54516d(0x174),'strokeWidth':1.2}}]},{'tag':_0x54516d(0x5f5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x54516d(0x3b7)},'children':[{'tag':_0x54516d(0x545),'attrs':{'fill':_0x54516d(0x41c),'d':_0x54516d(0x198),'transform':_0x54516d(0x5a9)}}]}]}],'defIds':[_0x54516d(0x3b7)]},En=ae[_0x54516d(0x278)](function(_0x3a84eb,_0x458237){const _0x1de0b7=_0x54516d;return ae[_0x1de0b7(0x454)](Dt,Object[_0x1de0b7(0x3f2)]({},_0x3a84eb,{'id':'on-line-single','ref':_0x458237,'icon':As}));});En['displayName']='OnLineSingle';function bn(_0x12038e){const _0x2ab97d=_0x54516d;var _0x439a2f,_0x258dde,_0x19691a='';if(typeof _0x12038e=='string'||typeof _0x12038e==_0x2ab97d(0x23a))_0x19691a+=_0x12038e;else{if(typeof _0x12038e==_0x2ab97d(0x5cb)){if(Array[_0x2ab97d(0x5a7)](_0x12038e)){var _0x3f520b=_0x12038e[_0x2ab97d(0x5e8)];for(_0x439a2f=0x0;_0x439a2f<_0x3f520b;_0x439a2f++)_0x12038e[_0x439a2f]&&(_0x258dde=bn(_0x12038e[_0x439a2f]))&&(_0x19691a&&(_0x19691a+='\x20'),_0x19691a+=_0x258dde);}else{for(_0x258dde in _0x12038e)_0x12038e[_0x258dde]&&(_0x19691a&&(_0x19691a+='\x20'),_0x19691a+=_0x258dde);}}}return _0x19691a;}function Ns(){for(var _0x3bbdc7,_0xb08e44,_0x56f2ee=0x0,_0x2f97b0='',_0x2d9a87=arguments['length'];_0x56f2ee<_0x2d9a87;_0x56f2ee++)(_0x3bbdc7=arguments[_0x56f2ee])&&(_0xb08e44=bn(_0x3bbdc7))&&(_0x2f97b0&&(_0x2f97b0+='\x20'),_0x2f97b0+=_0xb08e44);return _0x2f97b0;}const Ls=_0x54516d(0x55a),xs=_0x54516d(0x1b4),js='univer-online-status',$s=_0x54516d(0x61a),Hs=_0x54516d(0x59d),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x4be1c4){const _0x45c793=_0x54516d;switch(_0x4be1c4){case q['OFFLINE']:return'collabStatus.offline';case q[_0x45c793(0x467)]:return _0x45c793(0x49a);case q[_0x45c793(0x5fc)]:return'collabStatus.fetchMiss';case q[_0x45c793(0x40f)]:return _0x45c793(0x344);case q['AWAITING']:case q[_0x45c793(0x396)]:return _0x45c793(0x59c);case q[_0x45c793(0x1fd)]:case q[_0x45c793(0x1e4)]:return _0x45c793(0x50b);}}function Tn(_0x301411){const _0x948c3e=_0x54516d,{status$:_0x3ce823}=_0x301411,_0x1ba9ba=ee['useObservable'](_0x3ce823,q[_0x948c3e(0x40f)]),_0x1ff21d=a[_0x948c3e(0x389)](a[_0x948c3e(0x2a1)]),_0x21c487=a['useDependency'](exports[_0x948c3e(0x580)]),_0x5b7e16=_0x1ba9ba!==q['OFFLINE'],_0x82373=_0x1ff21d['t'](Bs(_0x1ba9ba)),_0x2977b2=Ns(Me[_0x948c3e(0x20e)],{[Me['online']]:_0x5b7e16,[Me[_0x948c3e(0x444)]]:!_0x5b7e16}),_0x21f3ca=_0x5b7e16?pe['jsx'](En,{}):pe[_0x948c3e(0x605)](Cn,{}),_0x4ff62b=ae[_0x948c3e(0x404)](()=>{_0x5b7e16||_0x21c487['reconnect']();},[_0x5b7e16,_0x21c487]);function _0x9d8522(){const _0x11375f=_0x948c3e;return pe['jsxs'](_0x11375f(0x58f),{'className':_0x2977b2,'onClick':_0x4ff62b,'children':[pe[_0x11375f(0x605)](_0x11375f(0x58f),{'className':Me[_0x11375f(0x3f9)],'children':_0x21f3ca}),pe[_0x11375f(0x605)](_0x11375f(0x58f),{'className':Me[_0x11375f(0x233)],'children':_0x82373})]});}return _0x5b7e16?_0x9d8522():pe[_0x948c3e(0x605)](ge[_0x948c3e(0x39a)],{'title':_0x1ff21d['t'](_0x948c3e(0x345)),'children':_0x9d8522()});}var ks=Object[_0x54516d(0x461)],Ws=Object[_0x54516d(0x363)],Fs=(_0x7eebd3,_0x360920,_0xd335b1,_0x1b2d3a)=>{const _0x1f8c0a=_0x54516d;for(var _0x53a541=_0x1b2d3a>0x1?void 0x0:_0x1b2d3a?Ws(_0x360920,_0xd335b1):_0x360920,_0x2f2fa7=_0x7eebd3[_0x1f8c0a(0x5e8)]-0x1,_0x16a25e;_0x2f2fa7>=0x0;_0x2f2fa7--)(_0x16a25e=_0x7eebd3[_0x2f2fa7])&&(_0x53a541=(_0x1b2d3a?_0x16a25e(_0x360920,_0xd335b1,_0x53a541):_0x16a25e(_0x53a541))||_0x53a541);return _0x1b2d3a&&_0x53a541&&ks(_0x360920,_0xd335b1,_0x53a541),_0x53a541;},$e=(_0x1ee9d0,_0x11714d)=>(_0x50b8b2,_0x3bbf8e)=>_0x11714d(_0x50b8b2,_0x3bbf8e,_0x1ee9d0);exports[_0x54516d(0x36e)]=class extends a['Disposable']{constructor(_0x539195,_0x24afe9,_0x4d2ef3,_0x5fcb47){const _0x205423=_0x54516d;super(),I(this,_0x205423(0x59e),new A[(_0x205423(0x598))](q['NOT_COLLAB'])),(this[_0x205423(0x228)]=_0x539195,this[_0x205423(0x5a2)]=_0x24afe9,this[_0x205423(0x47c)]=_0x4d2ef3,this[_0x205423(0x1ea)]=_0x5fcb47,this[_0x205423(0x2dd)](),this[_0x205423(0x45d)]());}[_0x54516d(0x45d)](){const _0x20136f=_0x54516d;this[_0x20136f(0x55b)](this[_0x20136f(0x228)][_0x20136f(0x3e0)][_0x20136f(0x5f2)](A[_0x20136f(0x4cb)](()=>{const _0x2af8dd=_0x20136f,_0x513a4c=this[_0x2af8dd(0x228)][_0x2af8dd(0x310)]();return _0x513a4c?this[_0x2af8dd(0x1ea)][_0x2af8dd(0x5df)](_0x513a4c[_0x2af8dd(0x2c5)]()):A['of'](null);}),A[_0x20136f(0x4cb)](_0x41a305=>_0x41a305?_0x41a305[_0x20136f(0x4d4)]:A['of'](q['NOT_COLLAB'])))['subscribe'](_0x5a249d=>{const _0x467af1=_0x20136f;this[_0x467af1(0x59e)][_0x467af1(0x4bd)](_0x5a249d);}));}[_0x54516d(0x2dd)](){const _0x343991=_0x54516d;this['disposeWithMe'](this[_0x343991(0x5a2)][_0x343991(0x4f5)](ee[_0x343991(0x43e)][_0x343991(0x489)],()=>a[_0x343991(0x52e)](Vs({'status$':this['_status$']['asObservable']()}),this[_0x343991(0x47c)])));}},exports[_0x54516d(0x36e)]=Fs([$e(0x0,a[_0x54516d(0x4e2)]),$e(0x1,ee[_0x54516d(0x4ad)]),$e(0x2,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),$e(0x3,a[_0x54516d(0x573)](exports[_0x54516d(0x19c)]))],exports[_0x54516d(0x36e)]);function Vs(_0x15006d){const {status$:_0x15d776}=_0x15006d;return function(){const _0x53e895=_0xe852;return pe[_0x53e895(0x605)](Tn,{'status$':_0x15d776});};}const wt=a[_0x54516d(0x528)](_0x54516d(0x600));var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x42f7c2,_0x177eae,_0x51d7de,_0xeb6936)=>{const _0x400c87=_0x54516d;for(var _0x2085c2=_0xeb6936>0x1?void 0x0:_0xeb6936?Ys(_0x177eae,_0x51d7de):_0x177eae,_0x464582=_0x42f7c2[_0x400c87(0x5e8)]-0x1,_0x5da3df;_0x464582>=0x0;_0x464582--)(_0x5da3df=_0x42f7c2[_0x464582])&&(_0x2085c2=(_0xeb6936?_0x5da3df(_0x177eae,_0x51d7de,_0x2085c2):_0x5da3df(_0x2085c2))||_0x2085c2);return _0xeb6936&&_0x2085c2&&Gs(_0x177eae,_0x51d7de,_0x2085c2),_0x2085c2;},Te=(_0x314ccb,_0x4bc22d)=>(_0x2153eb,_0x266f88)=>_0x4bc22d(_0x2153eb,_0x266f88,_0x314ccb);exports[_0x54516d(0x54d)]=class extends a['RxDisposable']{constructor(_0x42a0db,_0x3a16d4,_0x2dfc0e,_0x9a42eb,_0x3c7016,_0xba6036){const _0x1ec22d=_0x54516d;super(),this['_urlService']=_0x42a0db,this['_logService']=_0x3a16d4,this['_commandService']=_0x2dfc0e,this['_localCacheService']=_0x9a42eb,this[_0x1ec22d(0x61c)]=_0x3c7016,_0xba6036?_0xba6036==null||_0xba6036[_0x1ec22d(0x3ea)]()[_0x1ec22d(0x182)](()=>this['_init']()):(this[_0x1ec22d(0x241)][_0x1ec22d(0x583)]('[DataLoaderController]',_0x1ec22d(0x29b)),this[_0x1ec22d(0x488)]());}async[_0x54516d(0x488)](){const _0x20b82e=_0x54516d,_0x3307ba=this[_0x20b82e(0x27d)][_0x20b82e(0x479)](_0x20b82e(0x592)),_0x10655d=this[_0x20b82e(0x27d)][_0x20b82e(0x479)](_0x20b82e(0x242));if(!_0x3307ba||!_0x10655d){this['_logService'][_0x20b82e(0x583)](_0x20b82e(0x433),_0x20b82e(0x591));return;}switch(Number(_0x10655d)){case ie[_0x20b82e(0x299)]:{const _0x3f9eeb=await this['_loadSheet'](_0x3307ba);this['_setupSubUnitSync'](_0x3f9eeb);break;}case ie[_0x20b82e(0x60e)]:{await this['_loadDoc'](_0x3307ba);break;}default:{this[_0x20b82e(0x241)][_0x20b82e(0x29f)](_0x20b82e(0x433),_0x20b82e(0x188));break;}}}async['_setupSubUnitSync'](_0x143831){const _0x1a470f=_0x54516d;await this[_0x1a470f(0x2de)](_0x143831),_0x143831['activeSheet$'][_0x1a470f(0x5f2)](A[_0x1a470f(0x42d)](this[_0x1a470f(0x610)]))[_0x1a470f(0x4d6)](_0x306a6f=>{const _0x1f7769=_0x1a470f;_0x306a6f&&this[_0x1f7769(0x193)](_0x306a6f);}),this[_0x1a470f(0x27d)]['urlChange$'][_0x1a470f(0x5f2)](A['takeUntil'](this[_0x1a470f(0x610)]))[_0x1a470f(0x4d6)](()=>this['_updateSubUnitFromURLParams'](_0x143831));}[_0x54516d(0x193)](_0x2373c3,_0x232146=!0x1){const _0x45a736=_0x54516d,_0x4eccdd=this['_urlService']['getParam'](_0x45a736(0x2c6));_0x2373c3[_0x45a736(0x297)]()!==_0x4eccdd&&this[_0x45a736(0x27d)][_0x45a736(0x17e)](_0x45a736(0x2c6),_0x2373c3[_0x45a736(0x297)](),_0x232146);}async[_0x54516d(0x2de)](_0x261d98){const _0x1ea7fc=_0x54516d;var _0x338a59;const _0x4c0939=this['_urlService']['getParam'](_0x1ea7fc(0x2c6));if(!_0x4c0939||!_0x261d98['getSheetBySheetId'](_0x4c0939)){const _0x1b3305=_0x261d98[_0x1ea7fc(0x1f2)]()[0x0],_0x2b8442=_0x261d98['getSheetBySheetId'](_0x1b3305);if(!_0x2b8442)return;this[_0x1ea7fc(0x193)](_0x2b8442,!0x0),await this[_0x1ea7fc(0x1ca)][_0x1ea7fc(0x498)](k[_0x1ea7fc(0x3e4)]['id'],{'unitId':_0x261d98['getUnitId'](),'subUnitId':_0x1b3305});return;}((_0x338a59=_0x261d98['getActiveSheet']())==null?void 0x0:_0x338a59[_0x1ea7fc(0x297)]())!==_0x4c0939&&await this[_0x1ea7fc(0x1ca)]['executeCommand'](k[_0x1ea7fc(0x3e4)]['id'],{'unitId':_0x261d98[_0x1ea7fc(0x2c5)](),'subUnitId':_0x4c0939});}async[_0x54516d(0x52a)](_0x555adb){const _0x1b9606=_0x54516d;let _0x396f42=0x0;const _0x4c4d6c=await this[_0x1b9606(0x3bf)]['loadOfflineData'](_0x555adb);return _0x4c4d6c&&(_0x4c4d6c[_0x1b9606(0x3fb)]||_0x4c4d6c[_0x1b9606(0x1f3)][_0x1b9606(0x5e8)]!==0x0)&&(_0x396f42=_0x4c4d6c[_0x1b9606(0x537)]),_0x396f42===0x0&&this[_0x1b9606(0x241)][_0x1b9606(0x583)]('[DataLoaderController]',_0x1b9606(0x1bd)),this[_0x1b9606(0x61c)][_0x1b9606(0x448)](_0x555adb,_0x396f42);}async[_0x54516d(0x2b2)](_0x5ebf18){const _0x36a8ee=_0x54516d;let _0x321f69=0x0;const _0x66454d=await this[_0x36a8ee(0x3bf)][_0x36a8ee(0x456)](_0x5ebf18);return _0x66454d&&(_0x66454d[_0x36a8ee(0x3fb)]||_0x66454d['mutations'][_0x36a8ee(0x5e8)]!==0x0)&&(_0x321f69=_0x66454d[_0x36a8ee(0x537)]),_0x321f69===0x0&&this['_logService'][_0x36a8ee(0x583)](_0x36a8ee(0x433),_0x36a8ee(0x1bd)),this[_0x36a8ee(0x61c)][_0x36a8ee(0x4ec)](_0x5ebf18,_0x321f69);}},exports[_0x54516d(0x54d)]=Ks([Te(0x0,wt),Te(0x1,a[_0x54516d(0x4ee)]),Te(0x2,a[_0x54516d(0x18a)]),Te(0x3,a[_0x54516d(0x573)](exports[_0x54516d(0x5ef)])),Te(0x4,a[_0x54516d(0x573)](S[_0x54516d(0x58a)])),Te(0x5,a[_0x54516d(0x1ee)]($n[_0x54516d(0x376)]))],exports[_0x54516d(0x54d)]);var qs=Object[_0x54516d(0x461)],zs=Object['getOwnPropertyDescriptor'],Xs=(_0x2bf266,_0x3d40ec,_0x1586ba,_0x5e5c8d)=>{for(var _0x510c58=_0x5e5c8d>0x1?void 0x0:_0x5e5c8d?zs(_0x3d40ec,_0x1586ba):_0x3d40ec,_0x1cd646=_0x2bf266['length']-0x1,_0x2260b9;_0x1cd646>=0x0;_0x1cd646--)(_0x2260b9=_0x2bf266[_0x1cd646])&&(_0x510c58=(_0x5e5c8d?_0x2260b9(_0x3d40ec,_0x1586ba,_0x510c58):_0x2260b9(_0x510c58))||_0x510c58);return _0x5e5c8d&&_0x510c58&&qs(_0x3d40ec,_0x1586ba,_0x510c58),_0x510c58;},kt=(_0x409db7,_0x2be391)=>(_0x5d6a14,_0x5dae6d)=>_0x2be391(_0x5d6a14,_0x5dae6d,_0x409db7);const Js=_0x54516d(0x589),Zs=_0x54516d(0x1be);let Ve=class extends a[_0x54516d(0x25e)]{constructor(_0x17f91d,_0x2600ae){const _0x2c72fe=_0x54516d;super(),this['_univerInstanceService']=_0x17f91d,this[_0x2c72fe(0x2a3)]=_0x2600ae,this[_0x2c72fe(0x488)]();}[_0x54516d(0x488)](){const _0x5743df=_0x54516d;this[_0x5743df(0x55b)](this[_0x5743df(0x228)][_0x5743df(0x3e0)][_0x5743df(0x4d6)](()=>{const _0x41e7fe=_0x5743df;var _0x560582;const _0x2505fc=this[_0x41e7fe(0x228)][_0x41e7fe(0x310)]();let _0x3dac0e=(_0x560582=this[_0x41e7fe(0x2a3)][_0x41e7fe(0x21d)](Js))!=null?_0x560582:Zs;_0x2505fc instanceof a['Workbook']&&(_0x3dac0e=_0x2505fc[_0x41e7fe(0x5fa)]),document['title']=_0x3dac0e;}));}};Ve=Xs([kt(0x0,a[_0x54516d(0x4e2)]),kt(0x1,a[_0x54516d(0x208)])],Ve);var Qs=Object[_0x54516d(0x461)],er=Object[_0x54516d(0x363)],tr=(_0x464a8a,_0x24aafb,_0x98ff10,_0x52233d)=>{const _0x51d578=_0x54516d;for(var _0x18515d=_0x52233d>0x1?void 0x0:_0x52233d?er(_0x24aafb,_0x98ff10):_0x24aafb,_0x5570a6=_0x464a8a[_0x51d578(0x5e8)]-0x1,_0xaa2793;_0x5570a6>=0x0;_0x5570a6--)(_0xaa2793=_0x464a8a[_0x5570a6])&&(_0x18515d=(_0x52233d?_0xaa2793(_0x24aafb,_0x98ff10,_0x18515d):_0xaa2793(_0x18515d))||_0x18515d);return _0x52233d&&_0x18515d&&Qs(_0x24aafb,_0x98ff10,_0x18515d),_0x18515d;},at=(_0x5c7500,_0x5b8929)=>(_0x2049f4,_0x8876f7)=>_0x5b8929(_0x2049f4,_0x8876f7,_0x5c7500);let Ge=class{constructor(_0x5c5f61,_0x3ad6ca,_0x1f59b4){const _0xe5bb51=_0x54516d;this[_0xe5bb51(0x2a3)]=_0x5c5f61,this['_httpService']=_0x3ad6ca,this[_0xe5bb51(0x28a)]=_0x1f59b4,this[_0xe5bb51(0x4eb)]();}[_0x54516d(0x4eb)](){const _0x5e478b=_0x54516d;this[_0x5e478b(0x248)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x50f8ee,_0x3d9e21)=>_0x3d9e21(_0x50f8ee)[_0x5e478b(0x5f2)](A[_0x5e478b(0x1dd)](async _0x102854=>{const _0xa0eff1=_0x5e478b,_0x543075=_0x102854;if(_0x543075[_0xa0eff1(0x2d5)]===0x191&&window[_0xa0eff1(0x388)](this[_0xa0eff1(0x28a)]['t']('auth.needGotoLoginAlert'))){const _0x57a672=window[_0xa0eff1(0x1f5)](window[_0xa0eff1(0x2da)][_0xa0eff1(0x56d)]);window['location'][_0xa0eff1(0x56d)]=this['_getLoginPath']()+_0xa0eff1(0x530)+_0x57a672;}return _0x543075;}))});}[_0x54516d(0x48a)](){const _0x5707ad=_0x54516d;var _0x48512f,_0x5965ae;const _0x4e3b30=this['_configService'][_0x5707ad(0x21d)](an),_0x3e59dd=this['_configService'][_0x5707ad(0x21d)](te);return(_0x5965ae=(_0x48512f=_0x3e59dd==null?void 0x0:_0x3e59dd[_0x5707ad(0x350)])!=null?_0x48512f:_0x4e3b30)!=null?_0x5965ae:qn;}};Ge=tr([at(0x0,a[_0x54516d(0x208)]),at(0x1,a['Inject'](Z['HTTPService'])),at(0x2,a[_0x54516d(0x573)](a[_0x54516d(0x2a1)]))],Ge);var nr=Object[_0x54516d(0x461)],ir=Object[_0x54516d(0x363)],sr=(_0x59583b,_0x54eb0a,_0x350008,_0x22e960)=>{const _0x974e1e=_0x54516d;for(var _0x12c614=_0x22e960>0x1?void 0x0:_0x22e960?ir(_0x54eb0a,_0x350008):_0x54eb0a,_0x4e4298=_0x59583b[_0x974e1e(0x5e8)]-0x1,_0x1de40d;_0x4e4298>=0x0;_0x4e4298--)(_0x1de40d=_0x59583b[_0x4e4298])&&(_0x12c614=(_0x22e960?_0x1de40d(_0x54eb0a,_0x350008,_0x12c614):_0x1de40d(_0x12c614))||_0x12c614);return _0x22e960&&_0x12c614&&nr(_0x54eb0a,_0x350008,_0x12c614),_0x12c614;},Wt=(_0x23a611,_0x3a59c4)=>(_0x5433ab,_0x47eb1d)=>_0x3a59c4(_0x5433ab,_0x47eb1d,_0x23a611);const Rn=_0x54516d(0x4dc),rr=_0x54516d(0x423);exports[_0x54516d(0x33f)]=class extends a[_0x54516d(0x25e)]{constructor(_0x4f6eac,_0x4fc12c){const _0x32c8b2=_0x54516d;super(),this[_0x32c8b2(0x41f)]=_0x4f6eac,this[_0x32c8b2(0x2a3)]=_0x4fc12c,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0xf974e1=_0x54516d,_0x319640=this;this[_0xf974e1(0x55b)](this['_HTTPService'][_0xf974e1(0x220)]({'priority':0x3e7,'interceptor':Z['MergeInterceptorFactory']({'isMatch'(_0xb7c66d){const _0x5c13a6=_0xf974e1;var _0x571202;if(_0xb7c66d[_0x5c13a6(0x3b5)]===_0x5c13a6(0x4d0)&&((_0x571202=_0xb7c66d[_0x5c13a6(0x5cd)])!=null&&_0x571202[_0x5c13a6(0x4ba)])){const {objectID:_0x4070e9,objectType:_0x543ca3}=_0xb7c66d['requestParams'][_0x5c13a6(0x4ba)]||{};if(!_0x4070e9||_0x543ca3===void 0x0)return!0x1;const _0x10ad9b=_0x319640[_0x5c13a6(0x4c8)]()+'/'+_0x543ca3+'/object/'+_0x4070e9+_0x5c13a6(0x35e);if(_0xb7c66d[_0x5c13a6(0x3bc)]===_0x10ad9b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x265774){const _0x423303=_0xf974e1;var _0x3f9574;return(_0x3f9574=_0x265774[_0x423303(0x5cd)])==null?void 0x0:_0x3f9574['body'];},'mergeParamsToRequest'(_0x5a4a87,_0x405ea4){const _0x2f61ec=_0xf974e1,_0x5b5d41=_0x319640[_0x2f61ec(0x4c8)]()+_0x2f61ec(0x273),_0x257cbd=_0x5a4a87['reduce']((_0x206f4c,_0x39f0f4)=>{const _0x205c55=_0x2f61ec,{unitID:_0x24d718,objectID:_0x46fa84,objectType:_0x474bd0,actions:_0xdbc8f3}=_0x39f0f4;return _0x206f4c[_0x24d718]||(_0x206f4c[_0x24d718]={}),_0x206f4c[_0x24d718][_0x46fa84]||(_0x206f4c[_0x24d718][_0x46fa84]={'objectID':_0x46fa84,'objectType':_0x474bd0,'actions':[]}),_0x206f4c[_0x24d718][_0x46fa84]['actions'][_0x205c55(0x26e)](..._0xdbc8f3),_0x206f4c;},{}),_0x59c6f2=[];for(const _0x4bfab2 in _0x257cbd)for(const _0x3c40cb in _0x257cbd[_0x4bfab2]){const {actions:_0x1abda5,objectType:_0x13e058}=_0x257cbd[_0x4bfab2][_0x3c40cb],_0x54cce1=[...new Set(_0x1abda5)];_0x59c6f2[_0x2f61ec(0x26e)]({'unitID':_0x4bfab2,'objectID':_0x3c40cb,'objectType':_0x13e058,'actions':_0x54cce1});}return new Z[(_0x2f61ec(0x4ac))](_0x2f61ec(0x4d0),_0x5b5d41,{'headers':_0x405ea4[_0x2f61ec(0x4de)],'withCredentials':_0x405ea4[_0x2f61ec(0x240)],'responseType':_0x405ea4[_0x2f61ec(0x356)],'body':{'requests':_0x59c6f2}});}},{'distributeResult'(_0xbc9f2f,_0x332f8e){const {objectActions:_0x185fa3}=_0xbc9f2f;return _0x332f8e['map'](_0x272e21=>{const _0x43ac0b=_0xe852,{unitID:_0x340b4,objectID:_0x1c8536,actions:_0x343132}=_0x272e21,_0x19fe06=_0x185fa3['find'](_0x354eb4=>_0x354eb4['unitID']===_0x340b4&&_0x354eb4[_0x43ac0b(0x377)]===_0x1c8536),_0x3b540d=_0x343132[_0x43ac0b(0x2c2)](_0x13db6f=>_0x19fe06==null?void 0x0:_0x19fe06[_0x43ac0b(0x35d)][_0x43ac0b(0x4d1)](_0x20929c=>_0x20929c[_0x43ac0b(0x439)]===_0x13db6f))[_0x43ac0b(0x292)](_0x144f7d=>!!_0x144f7d);return{'config':_0x272e21,'result':{'actions':_0x3b540d,'error':_0xbc9f2f[_0x43ac0b(0x29f)]}};});}})}));}[_0x54516d(0x4c8)](){const _0x53b5f7=_0x54516d;var _0x196df2,_0x3fb3c6;const _0x26e8d7=this[_0x53b5f7(0x2a3)][_0x53b5f7(0x21d)](Rn),_0x1a42f5=this[_0x53b5f7(0x2a3)][_0x53b5f7(0x21d)](te);return(_0x3fb3c6=(_0x196df2=_0x1a42f5==null?void 0x0:_0x1a42f5[_0x53b5f7(0x524)])!=null?_0x196df2:_0x26e8d7)!=null?_0x3fb3c6:rr;}async[_0x54516d(0x466)](_0x26a845){const _0x54ee37=_0x54516d,_0x2bccd1=this[_0x54ee37(0x4c8)]()+'/'+_0x26a845[_0x54ee37(0x386)]+_0x54ee37(0x538);return(await this[_0x54ee37(0x41f)][_0x54ee37(0x486)](_0x2bccd1,{'body':_0x26a845}))[_0x54ee37(0x4ba)]['objectID']||'';}async['list'](_0x1a304d){const _0x370ccd=_0x54516d,_0xdea3c1=this['_getAPIPrefixPath']()+_0x370ccd(0x26b);return(await this[_0x370ccd(0x41f)][_0x370ccd(0x486)](_0xdea3c1,{'body':_0x1a304d}))['body']['objects'];}async['update'](_0x7a67f){const _0x219b74=_0x54516d,_0xecacc7=this['_getAPIPrefixPath']()+'/'+_0x7a67f[_0x219b74(0x386)]+'/object/'+_0x7a67f[_0x219b74(0x377)];await this[_0x219b74(0x41f)][_0x219b74(0x5dd)](_0xecacc7,{'body':_0x7a67f});}async[_0x54516d(0x56c)](_0x3b1f44){const _0x430009=_0x54516d,_0xdd9a26=this[_0x430009(0x4c8)]()+'/'+_0x3b1f44['objectType']+_0x430009(0x3d0)+_0x3b1f44[_0x430009(0x377)]+_0x430009(0x35e);return(await this[_0x430009(0x41f)][_0x430009(0x486)](_0xdd9a26,{'body':_0x3b1f44}))[_0x430009(0x4ba)][_0x430009(0x35d)];}async[_0x54516d(0x212)](_0x11324c){const _0x5dcee1=_0x54516d,_0xac6bba=this['_getAPIPrefixPath']()+_0x5dcee1(0x273);return(await this[_0x5dcee1(0x41f)][_0x5dcee1(0x486)](_0xac6bba,{'body':{'requests':_0x11324c}}))['body'][_0x5dcee1(0x3dd)];}async[_0x54516d(0x442)](_0x283993){const _0x5d7b38=_0x54516d,_0x2ddaba=this['_getAPIPrefixPath']()+'/'+_0x283993['objectType']+_0x5d7b38(0x19e),_0x29ce1e=await this[_0x5d7b38(0x41f)][_0x5d7b38(0x486)](_0x2ddaba,{'body':_0x283993});return{'roles':_0x29ce1e[_0x5d7b38(0x4ba)][_0x5d7b38(0x434)],'actions':_0x29ce1e[_0x5d7b38(0x4ba)][_0x5d7b38(0x35d)]};}async[_0x54516d(0x54b)](_0x754de6){const _0x290e12=_0x54516d,_0x566d92=this[_0x290e12(0x4c8)]()+_0x290e12(0x3ca);await this[_0x290e12(0x41f)][_0x290e12(0x1c4)](_0x566d92,{'params':{'collaboratorID':_0x754de6[_0x290e12(0x1f4)],'objectID':_0x754de6[_0x290e12(0x377)],'unitID':_0x754de6[_0x290e12(0x351)]}});}async[_0x54516d(0x5fe)](_0x885adc){const _0x519f16=_0x54516d,_0x2db5e4=this['_getAPIPrefixPath']()+_0x519f16(0x3ca);await this[_0x519f16(0x41f)][_0x519f16(0x395)](_0x2db5e4,{'body':_0x885adc});}async[_0x54516d(0x501)](_0x39b4f4){const _0x473dc6=_0x54516d,_0x549b82=this[_0x473dc6(0x4c8)]()+'/collaborator';await this['_HTTPService'][_0x473dc6(0x486)](_0x549b82,{'body':_0x39b4f4});}async[_0x54516d(0x40a)](_0x542f70){const _0x2393c7=_0x54516d,_0x4c053d=this['_getAPIPrefixPath']()+_0x2393c7(0x3ca);return(await this[_0x2393c7(0x41f)]['get'](_0x4c053d,{'params':{'objectID':_0x542f70[_0x2393c7(0x377)],'unitID':_0x542f70[_0x2393c7(0x351)]}}))['body'][_0x2393c7(0x4fe)];}async[_0x54516d(0x296)](_0xe82f50){const _0x1706f4=_0x54516d,_0x1cad65=this[_0x1706f4(0x4c8)]()+_0x1706f4(0x3ca);await this['_HTTPService']['put'](_0x1cad65,{'body':_0xe82f50});}},exports[_0x54516d(0x33f)]=sr([Wt(0x0,a[_0x54516d(0x573)](Z[_0x54516d(0x180)])),Wt(0x1,a[_0x54516d(0x573)](a[_0x54516d(0x208)]))],exports[_0x54516d(0x33f)]);var yn={'exports':{}};function or(_0x160389){throw new Error('Could\x20not\x20dynamically\x20require\x20\x22'+_0x160389+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var ct={'exports':{}},Ft;function oe(){const _0x478814=_0x54516d;return Ft||(Ft=0x1,function(_0x3d16f4,_0x55b1e3){(function(_0x59ce01,_0x265acd){const _0xec2e18=_0xe852;_0x3d16f4[_0xec2e18(0x359)]=_0x265acd();}(X,function(){var _0xe7ac7b=_0xe7ac7b||function(_0x511874,_0x4f84e1){const _0x28a44a=_0xe852;var _0xdb988e;if(typeof window<'u'&&window['crypto']&&(_0xdb988e=window['crypto']),typeof self<'u'&&self[_0x28a44a(0x2ed)]&&(_0xdb988e=self['crypto']),typeof globalThis<'u'&&globalThis[_0x28a44a(0x2ed)]&&(_0xdb988e=globalThis['crypto']),!_0xdb988e&&typeof window<'u'&&window[_0x28a44a(0x324)]&&(_0xdb988e=window[_0x28a44a(0x324)]),!_0xdb988e&&typeof X<'u'&&X[_0x28a44a(0x2ed)]&&(_0xdb988e=X[_0x28a44a(0x2ed)]),!_0xdb988e&&typeof or=='function')try{_0xdb988e=require('crypto');}catch{}var _0x5c4a8c=function(){const _0x49e769=_0x28a44a;if(_0xdb988e){if(typeof _0xdb988e[_0x49e769(0x505)]==_0x49e769(0x30c))try{return _0xdb988e['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xdb988e[_0x49e769(0x44d)]=='function')try{return _0xdb988e['randomBytes'](0x4)['readInt32LE']();}catch{}}throw new Error(_0x49e769(0x3a6));},_0x12e760=Object[_0x28a44a(0x466)]||(function(){function _0x503e8f(){}return function(_0x1a7496){var _0x3e0576;return _0x503e8f['prototype']=_0x1a7496,_0x3e0576=new _0x503e8f(),_0x503e8f['prototype']=null,_0x3e0576;};}()),_0x4641d5={},_0x425fa7=_0x4641d5[_0x28a44a(0x394)]={},_0x420377=_0x425fa7[_0x28a44a(0x5b4)]=(function(){return{'extend':function(_0x2dea3f){const _0x137c47=_0xe852;var _0x201568=_0x12e760(this);return _0x2dea3f&&_0x201568[_0x137c47(0x195)](_0x2dea3f),(!_0x201568['hasOwnProperty'](_0x137c47(0x4eb))||this[_0x137c47(0x4eb)]===_0x201568['init'])&&(_0x201568[_0x137c47(0x4eb)]=function(){const _0x154ae8=_0x137c47;_0x201568['$super'][_0x154ae8(0x4eb)]['apply'](this,arguments);}),_0x201568[_0x137c47(0x4eb)][_0x137c47(0x494)]=_0x201568,_0x201568[_0x137c47(0x175)]=this,_0x201568;},'create':function(){const _0x541162=_0xe852;var _0x39e094=this[_0x541162(0x16e)]();return _0x39e094[_0x541162(0x4eb)][_0x541162(0x613)](_0x39e094,arguments),_0x39e094;},'init':function(){},'mixIn':function(_0x335f09){const _0x387d63=_0xe852;for(var _0x245bd4 in _0x335f09)_0x335f09[_0x387d63(0x284)](_0x245bd4)&&(this[_0x245bd4]=_0x335f09[_0x245bd4]);_0x335f09[_0x387d63(0x284)](_0x387d63(0x481))&&(this[_0x387d63(0x481)]=_0x335f09['toString']);},'clone':function(){const _0x116636=_0xe852;return this[_0x116636(0x4eb)][_0x116636(0x494)]['extend'](this);}};}()),_0xeb3b7c=_0x425fa7[_0x28a44a(0x516)]=_0x420377[_0x28a44a(0x16e)]({'init':function(_0x38766d,_0x319cfd){const _0x497498=_0x28a44a;_0x38766d=this[_0x497498(0x407)]=_0x38766d||[],_0x319cfd!=_0x4f84e1?this[_0x497498(0x19a)]=_0x319cfd:this[_0x497498(0x19a)]=_0x38766d[_0x497498(0x5e8)]*0x4;},'toString':function(_0x36082a){const _0x271429=_0x28a44a;return(_0x36082a||_0x48dccf)[_0x271429(0x4c1)](this);},'concat':function(_0x4e0b91){const _0x3be161=_0x28a44a;var _0x859901=this[_0x3be161(0x407)],_0x34a012=_0x4e0b91[_0x3be161(0x407)],_0x29cc01=this['sigBytes'],_0x93ad8b=_0x4e0b91[_0x3be161(0x19a)];if(this[_0x3be161(0x426)](),_0x29cc01%0x4)for(var _0x5da072=0x0;_0x5da072<_0x93ad8b;_0x5da072++){var _0x2e036f=_0x34a012[_0x5da072>>>0x2]>>>0x18-_0x5da072%0x4*0x8&0xff;_0x859901[_0x29cc01+_0x5da072>>>0x2]|=_0x2e036f<<0x18-(_0x29cc01+_0x5da072)%0x4*0x8;}else{for(var _0xe90f92=0x0;_0xe90f92<_0x93ad8b;_0xe90f92+=0x4)_0x859901[_0x29cc01+_0xe90f92>>>0x2]=_0x34a012[_0xe90f92>>>0x2];}return this[_0x3be161(0x19a)]+=_0x93ad8b,this;},'clamp':function(){const _0x26eac8=_0x28a44a;var _0x232887=this['words'],_0x460ef8=this[_0x26eac8(0x19a)];_0x232887[_0x460ef8>>>0x2]&=0xffffffff<<0x20-_0x460ef8%0x4*0x8,_0x232887[_0x26eac8(0x5e8)]=_0x511874[_0x26eac8(0x341)](_0x460ef8/0x4);},'clone':function(){const _0xa96017=_0x28a44a;var _0x368ec4=_0x420377[_0xa96017(0x39d)][_0xa96017(0x2a5)](this);return _0x368ec4['words']=this[_0xa96017(0x407)][_0xa96017(0x4f1)](0x0),_0x368ec4;},'random':function(_0x1201c5){const _0x191f30=_0x28a44a;for(var _0x4be020=[],_0x1fa1a5=0x0;_0x1fa1a5<_0x1201c5;_0x1fa1a5+=0x4)_0x4be020[_0x191f30(0x26e)](_0x5c4a8c());return new _0xeb3b7c[(_0x191f30(0x4eb))](_0x4be020,_0x1201c5);}}),_0x289a06=_0x4641d5[_0x28a44a(0x34b)]={},_0x48dccf=_0x289a06[_0x28a44a(0x352)]={'stringify':function(_0x3b99a0){const _0x508d23=_0x28a44a;for(var _0x48786c=_0x3b99a0[_0x508d23(0x407)],_0x4d2e65=_0x3b99a0[_0x508d23(0x19a)],_0x316eba=[],_0x1f8345=0x0;_0x1f8345<_0x4d2e65;_0x1f8345++){var _0x544fe3=_0x48786c[_0x1f8345>>>0x2]>>>0x18-_0x1f8345%0x4*0x8&0xff;_0x316eba[_0x508d23(0x26e)]((_0x544fe3>>>0x4)[_0x508d23(0x481)](0x10)),_0x316eba[_0x508d23(0x26e)]((_0x544fe3&0xf)[_0x508d23(0x481)](0x10));}return _0x316eba['join']('');},'parse':function(_0x395431){const _0x401417=_0x28a44a;for(var _0x3b28ea=_0x395431[_0x401417(0x5e8)],_0x3eaf7b=[],_0x453f33=0x0;_0x453f33<_0x3b28ea;_0x453f33+=0x2)_0x3eaf7b[_0x453f33>>>0x3]|=parseInt(_0x395431[_0x401417(0x275)](_0x453f33,0x2),0x10)<<0x18-_0x453f33%0x8*0x4;return new _0xeb3b7c[(_0x401417(0x4eb))](_0x3eaf7b,_0x3b28ea/0x2);}},_0x5448a1=_0x289a06['Latin1']={'stringify':function(_0x45910d){const _0x513fc3=_0x28a44a;for(var _0x40627a=_0x45910d[_0x513fc3(0x407)],_0x1e64a9=_0x45910d[_0x513fc3(0x19a)],_0x270e4b=[],_0x1addb4=0x0;_0x1addb4<_0x1e64a9;_0x1addb4++){var _0x163092=_0x40627a[_0x1addb4>>>0x2]>>>0x18-_0x1addb4%0x4*0x8&0xff;_0x270e4b[_0x513fc3(0x26e)](String[_0x513fc3(0x5ca)](_0x163092));}return _0x270e4b[_0x513fc3(0x239)]('');},'parse':function(_0x5f31b5){const _0x31af8a=_0x28a44a;for(var _0x22cdfa=_0x5f31b5[_0x31af8a(0x5e8)],_0x2b8382=[],_0x4a7154=0x0;_0x4a7154<_0x22cdfa;_0x4a7154++)_0x2b8382[_0x4a7154>>>0x2]|=(_0x5f31b5[_0x31af8a(0x34d)](_0x4a7154)&0xff)<<0x18-_0x4a7154%0x4*0x8;return new _0xeb3b7c[(_0x31af8a(0x4eb))](_0x2b8382,_0x22cdfa);}},_0x1a33af=_0x289a06[_0x28a44a(0x31b)]={'stringify':function(_0xfbd2e7){const _0x14216e=_0x28a44a;try{return decodeURIComponent(escape(_0x5448a1[_0x14216e(0x4c1)](_0xfbd2e7)));}catch{throw new Error(_0x14216e(0x1cf));}},'parse':function(_0x533969){const _0xae45f0=_0x28a44a;return _0x5448a1[_0xae45f0(0x2a0)](unescape(encodeURIComponent(_0x533969)));}},_0x531fdd=_0x425fa7['BufferedBlockAlgorithm']=_0x420377[_0x28a44a(0x16e)]({'reset':function(){const _0x14e6d0=_0x28a44a;this[_0x14e6d0(0x578)]=new _0xeb3b7c[(_0x14e6d0(0x4eb))](),this[_0x14e6d0(0x5ec)]=0x0;},'_append':function(_0x3af5d1){const _0x40c525=_0x28a44a;typeof _0x3af5d1==_0x40c525(0x3aa)&&(_0x3af5d1=_0x1a33af[_0x40c525(0x2a0)](_0x3af5d1)),this[_0x40c525(0x578)][_0x40c525(0x213)](_0x3af5d1),this[_0x40c525(0x5ec)]+=_0x3af5d1[_0x40c525(0x19a)];},'_process':function(_0x40e846){const _0x1c3758=_0x28a44a;var _0x4dd486,_0x3c9f1e=this[_0x1c3758(0x578)],_0x3aaf6f=_0x3c9f1e[_0x1c3758(0x407)],_0x1acb6f=_0x3c9f1e['sigBytes'],_0x1f7d26=this[_0x1c3758(0x5d1)],_0x5570e3=_0x1f7d26*0x4,_0x5c57dc=_0x1acb6f/_0x5570e3;_0x40e846?_0x5c57dc=_0x511874['ceil'](_0x5c57dc):_0x5c57dc=_0x511874['max']((_0x5c57dc|0x0)-this[_0x1c3758(0x22f)],0x0);var _0x21e8f4=_0x5c57dc*_0x1f7d26,_0x30ba03=_0x511874['min'](_0x21e8f4*0x4,_0x1acb6f);if(_0x21e8f4){for(var _0x5cb110=0x0;_0x5cb110<_0x21e8f4;_0x5cb110+=_0x1f7d26)this[_0x1c3758(0x306)](_0x3aaf6f,_0x5cb110);_0x4dd486=_0x3aaf6f[_0x1c3758(0x4a2)](0x0,_0x21e8f4),_0x3c9f1e['sigBytes']-=_0x30ba03;}return new _0xeb3b7c[(_0x1c3758(0x4eb))](_0x4dd486,_0x30ba03);},'clone':function(){const _0x18c67a=_0x28a44a;var _0x373499=_0x420377['clone'][_0x18c67a(0x2a5)](this);return _0x373499[_0x18c67a(0x578)]=this[_0x18c67a(0x578)]['clone'](),_0x373499;},'_minBufferSize':0x0});_0x425fa7[_0x28a44a(0x4a3)]=_0x531fdd[_0x28a44a(0x16e)]({'cfg':_0x420377['extend'](),'init':function(_0x4798ad){const _0x55eac8=_0x28a44a;this[_0x55eac8(0x57f)]=this[_0x55eac8(0x57f)][_0x55eac8(0x16e)](_0x4798ad),this[_0x55eac8(0x44c)]();},'reset':function(){const _0x3a4c9d=_0x28a44a;_0x531fdd[_0x3a4c9d(0x44c)][_0x3a4c9d(0x2a5)](this),this[_0x3a4c9d(0x384)]();},'update':function(_0x41d7d2){const _0x2c3fa2=_0x28a44a;return this[_0x2c3fa2(0x597)](_0x41d7d2),this[_0x2c3fa2(0x606)](),this;},'finalize':function(_0x506ce){const _0x42ccca=_0x28a44a;_0x506ce&&this[_0x42ccca(0x597)](_0x506ce);var _0x25c47c=this[_0x42ccca(0x1ed)]();return _0x25c47c;},'blockSize':0x10,'_createHelper':function(_0x445021){return function(_0x1a563d,_0x11a28f){const _0x671546=_0xe852;return new _0x445021['init'](_0x11a28f)[_0x671546(0x408)](_0x1a563d);};},'_createHmacHelper':function(_0x203552){return function(_0x19062f,_0x42a461){const _0x38bb1e=_0xe852;return new _0x5af3a8[(_0x38bb1e(0x599))][(_0x38bb1e(0x4eb))](_0x203552,_0x42a461)[_0x38bb1e(0x408)](_0x19062f);};}});var _0x5af3a8=_0x4641d5[_0x28a44a(0x247)]={};return _0x4641d5;}(Math);return _0xe7ac7b;}));}(ct)),ct[_0x478814(0x359)];}var lt={'exports':{}},Vt;function On(){const _0x25fdc6=_0x54516d;return Vt||(Vt=0x1,function(_0x1b404a,_0x3a01d2){(function(_0x5b5eaa,_0x55128f){const _0x5f186a=_0xe852;_0x1b404a[_0x5f186a(0x359)]=_0x55128f(oe());}(X,function(_0x4afbed){const _0x1650aa=_0xe852;return(function(){const _0x457669=_0xe852;var _0x1ed779=_0x4afbed,_0x385f6f=_0x1ed779[_0x457669(0x394)],_0x3459a6=_0x385f6f[_0x457669(0x516)],_0x2c22ec=_0x1ed779[_0x457669(0x34b)];_0x2c22ec['Base64']={'stringify':function(_0x4f4415){const _0x3ce0ef=_0x457669;var _0x32d176=_0x4f4415[_0x3ce0ef(0x407)],_0x4381b5=_0x4f4415[_0x3ce0ef(0x19a)],_0x358eb4=this['_map'];_0x4f4415[_0x3ce0ef(0x426)]();for(var _0x4afc10=[],_0x43cc77=0x0;_0x43cc77<_0x4381b5;_0x43cc77+=0x3)for(var _0x92737c=_0x32d176[_0x43cc77>>>0x2]>>>0x18-_0x43cc77%0x4*0x8&0xff,_0x4f6c20=_0x32d176[_0x43cc77+0x1>>>0x2]>>>0x18-(_0x43cc77+0x1)%0x4*0x8&0xff,_0x464194=_0x32d176[_0x43cc77+0x2>>>0x2]>>>0x18-(_0x43cc77+0x2)%0x4*0x8&0xff,_0x4cc18e=_0x92737c<<0x10|_0x4f6c20<<0x8|_0x464194,_0x49f36b=0x0;_0x49f36b<0x4&&_0x43cc77+_0x49f36b*0.75<_0x4381b5;_0x49f36b++)_0x4afc10['push'](_0x358eb4[_0x3ce0ef(0x1f7)](_0x4cc18e>>>0x6*(0x3-_0x49f36b)&0x3f));var _0x595640=_0x358eb4['charAt'](0x40);if(_0x595640){for(;_0x4afc10[_0x3ce0ef(0x5e8)]%0x4;)_0x4afc10['push'](_0x595640);}return _0x4afc10[_0x3ce0ef(0x239)]('');},'parse':function(_0x1f9aa0){const _0x3bd4f0=_0x457669;var _0x262499=_0x1f9aa0[_0x3bd4f0(0x5e8)],_0x129868=this[_0x3bd4f0(0x2c8)],_0x18c4a9=this[_0x3bd4f0(0x1e7)];if(!_0x18c4a9){_0x18c4a9=this['_reverseMap']=[];for(var _0x38742b=0x0;_0x38742b<_0x129868[_0x3bd4f0(0x5e8)];_0x38742b++)_0x18c4a9[_0x129868[_0x3bd4f0(0x34d)](_0x38742b)]=_0x38742b;}var _0x2521a8=_0x129868['charAt'](0x40);if(_0x2521a8){var _0x1273a6=_0x1f9aa0[_0x3bd4f0(0x31d)](_0x2521a8);_0x1273a6!==-0x1&&(_0x262499=_0x1273a6);}return _0x5c29a4(_0x1f9aa0,_0x262499,_0x18c4a9);},'_map':_0x457669(0x49f)};function _0x5c29a4(_0x44cbc5,_0x1da358,_0x44fbef){const _0x12d070=_0x457669;for(var _0x2d99f5=[],_0x3f3f33=0x0,_0x305a15=0x0;_0x305a15<_0x1da358;_0x305a15++)if(_0x305a15%0x4){var _0x2db90d=_0x44fbef[_0x44cbc5['charCodeAt'](_0x305a15-0x1)]<<_0x305a15%0x4*0x2,_0x369b2b=_0x44fbef[_0x44cbc5[_0x12d070(0x34d)](_0x305a15)]>>>0x6-_0x305a15%0x4*0x2,_0x164006=_0x2db90d|_0x369b2b;_0x2d99f5[_0x3f3f33>>>0x2]|=_0x164006<<0x18-_0x3f3f33%0x4*0x8,_0x3f3f33++;}return _0x3459a6[_0x12d070(0x466)](_0x2d99f5,_0x3f3f33);}}()),_0x4afbed['enc'][_0x1650aa(0x463)];}));}(lt)),lt[_0x25fdc6(0x359)];}var ht={'exports':{}},Gt;function ar(){const _0x5da71d=_0x54516d;return Gt||(Gt=0x1,function(_0x1a3da7,_0x3e972c){(function(_0x2c2a0a,_0x3163a6){_0x1a3da7['exports']=_0x3163a6(oe());}(X,function(_0x392459){return function(_0x1d8227){const _0x1c7023=_0xe852;var _0x2498af=_0x392459,_0x27ee1a=_0x2498af[_0x1c7023(0x394)],_0x3a3261=_0x27ee1a[_0x1c7023(0x516)],_0x31c127=_0x27ee1a[_0x1c7023(0x4a3)],_0x3c4811=_0x2498af[_0x1c7023(0x247)],_0x5a36f4=[];(function(){const _0x16f8c8=_0x1c7023;for(var _0x149fe5=0x0;_0x149fe5<0x40;_0x149fe5++)_0x5a36f4[_0x149fe5]=_0x1d8227[_0x16f8c8(0x50c)](_0x1d8227['sin'](_0x149fe5+0x1))*0x100000000|0x0;}());var _0x52cc8b=_0x3c4811[_0x1c7023(0x2b0)]=_0x31c127[_0x1c7023(0x16e)]({'_doReset':function(){const _0x52eb05=_0x1c7023;this[_0x52eb05(0x2b5)]=new _0x3a3261[(_0x52eb05(0x4eb))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x4045b8,_0x48bb48){for(var _0x2e49d5=0x0;_0x2e49d5<0x10;_0x2e49d5++){var _0x3dd6bc=_0x48bb48+_0x2e49d5,_0x12d1d3=_0x4045b8[_0x3dd6bc];_0x4045b8[_0x3dd6bc]=(_0x12d1d3<<0x8|_0x12d1d3>>>0x18)&0xff00ff|(_0x12d1d3<<0x18|_0x12d1d3>>>0x8)&0xff00ff00;}var _0x778b38=this['_hash']['words'],_0x439bcb=_0x4045b8[_0x48bb48+0x0],_0x5927e6=_0x4045b8[_0x48bb48+0x1],_0x5d7332=_0x4045b8[_0x48bb48+0x2],_0x1f808c=_0x4045b8[_0x48bb48+0x3],_0x526cac=_0x4045b8[_0x48bb48+0x4],_0x49016c=_0x4045b8[_0x48bb48+0x5],_0x1b2be1=_0x4045b8[_0x48bb48+0x6],_0x558604=_0x4045b8[_0x48bb48+0x7],_0x3647de=_0x4045b8[_0x48bb48+0x8],_0x532f59=_0x4045b8[_0x48bb48+0x9],_0x481913=_0x4045b8[_0x48bb48+0xa],_0x466da1=_0x4045b8[_0x48bb48+0xb],_0x12755a=_0x4045b8[_0x48bb48+0xc],_0x3f8ee8=_0x4045b8[_0x48bb48+0xd],_0x1c6d93=_0x4045b8[_0x48bb48+0xe],_0x1214a5=_0x4045b8[_0x48bb48+0xf],_0x1f0876=_0x778b38[0x0],_0x16a37f=_0x778b38[0x1],_0x2b04ca=_0x778b38[0x2],_0x2bd87b=_0x778b38[0x3];_0x1f0876=_0x4ae833(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x439bcb,0x7,_0x5a36f4[0x0]),_0x2bd87b=_0x4ae833(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x5927e6,0xc,_0x5a36f4[0x1]),_0x2b04ca=_0x4ae833(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x5d7332,0x11,_0x5a36f4[0x2]),_0x16a37f=_0x4ae833(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x1f808c,0x16,_0x5a36f4[0x3]),_0x1f0876=_0x4ae833(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x526cac,0x7,_0x5a36f4[0x4]),_0x2bd87b=_0x4ae833(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x49016c,0xc,_0x5a36f4[0x5]),_0x2b04ca=_0x4ae833(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1b2be1,0x11,_0x5a36f4[0x6]),_0x16a37f=_0x4ae833(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x558604,0x16,_0x5a36f4[0x7]),_0x1f0876=_0x4ae833(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x3647de,0x7,_0x5a36f4[0x8]),_0x2bd87b=_0x4ae833(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x532f59,0xc,_0x5a36f4[0x9]),_0x2b04ca=_0x4ae833(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x481913,0x11,_0x5a36f4[0xa]),_0x16a37f=_0x4ae833(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x466da1,0x16,_0x5a36f4[0xb]),_0x1f0876=_0x4ae833(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x12755a,0x7,_0x5a36f4[0xc]),_0x2bd87b=_0x4ae833(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x3f8ee8,0xc,_0x5a36f4[0xd]),_0x2b04ca=_0x4ae833(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1c6d93,0x11,_0x5a36f4[0xe]),_0x16a37f=_0x4ae833(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x1214a5,0x16,_0x5a36f4[0xf]),_0x1f0876=_0x48915a(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x5927e6,0x5,_0x5a36f4[0x10]),_0x2bd87b=_0x48915a(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x1b2be1,0x9,_0x5a36f4[0x11]),_0x2b04ca=_0x48915a(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x466da1,0xe,_0x5a36f4[0x12]),_0x16a37f=_0x48915a(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x439bcb,0x14,_0x5a36f4[0x13]),_0x1f0876=_0x48915a(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x49016c,0x5,_0x5a36f4[0x14]),_0x2bd87b=_0x48915a(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x481913,0x9,_0x5a36f4[0x15]),_0x2b04ca=_0x48915a(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1214a5,0xe,_0x5a36f4[0x16]),_0x16a37f=_0x48915a(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x526cac,0x14,_0x5a36f4[0x17]),_0x1f0876=_0x48915a(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x532f59,0x5,_0x5a36f4[0x18]),_0x2bd87b=_0x48915a(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x1c6d93,0x9,_0x5a36f4[0x19]),_0x2b04ca=_0x48915a(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1f808c,0xe,_0x5a36f4[0x1a]),_0x16a37f=_0x48915a(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x3647de,0x14,_0x5a36f4[0x1b]),_0x1f0876=_0x48915a(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x3f8ee8,0x5,_0x5a36f4[0x1c]),_0x2bd87b=_0x48915a(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x5d7332,0x9,_0x5a36f4[0x1d]),_0x2b04ca=_0x48915a(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x558604,0xe,_0x5a36f4[0x1e]),_0x16a37f=_0x48915a(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x12755a,0x14,_0x5a36f4[0x1f]),_0x1f0876=_0x11ec17(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x49016c,0x4,_0x5a36f4[0x20]),_0x2bd87b=_0x11ec17(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x3647de,0xb,_0x5a36f4[0x21]),_0x2b04ca=_0x11ec17(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x466da1,0x10,_0x5a36f4[0x22]),_0x16a37f=_0x11ec17(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x1c6d93,0x17,_0x5a36f4[0x23]),_0x1f0876=_0x11ec17(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x5927e6,0x4,_0x5a36f4[0x24]),_0x2bd87b=_0x11ec17(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x526cac,0xb,_0x5a36f4[0x25]),_0x2b04ca=_0x11ec17(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x558604,0x10,_0x5a36f4[0x26]),_0x16a37f=_0x11ec17(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x481913,0x17,_0x5a36f4[0x27]),_0x1f0876=_0x11ec17(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x3f8ee8,0x4,_0x5a36f4[0x28]),_0x2bd87b=_0x11ec17(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x439bcb,0xb,_0x5a36f4[0x29]),_0x2b04ca=_0x11ec17(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1f808c,0x10,_0x5a36f4[0x2a]),_0x16a37f=_0x11ec17(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x1b2be1,0x17,_0x5a36f4[0x2b]),_0x1f0876=_0x11ec17(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x532f59,0x4,_0x5a36f4[0x2c]),_0x2bd87b=_0x11ec17(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x12755a,0xb,_0x5a36f4[0x2d]),_0x2b04ca=_0x11ec17(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1214a5,0x10,_0x5a36f4[0x2e]),_0x16a37f=_0x11ec17(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x5d7332,0x17,_0x5a36f4[0x2f]),_0x1f0876=_0x443821(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x439bcb,0x6,_0x5a36f4[0x30]),_0x2bd87b=_0x443821(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x558604,0xa,_0x5a36f4[0x31]),_0x2b04ca=_0x443821(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1c6d93,0xf,_0x5a36f4[0x32]),_0x16a37f=_0x443821(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x49016c,0x15,_0x5a36f4[0x33]),_0x1f0876=_0x443821(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x12755a,0x6,_0x5a36f4[0x34]),_0x2bd87b=_0x443821(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x1f808c,0xa,_0x5a36f4[0x35]),_0x2b04ca=_0x443821(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x481913,0xf,_0x5a36f4[0x36]),_0x16a37f=_0x443821(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x5927e6,0x15,_0x5a36f4[0x37]),_0x1f0876=_0x443821(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x3647de,0x6,_0x5a36f4[0x38]),_0x2bd87b=_0x443821(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x1214a5,0xa,_0x5a36f4[0x39]),_0x2b04ca=_0x443821(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x1b2be1,0xf,_0x5a36f4[0x3a]),_0x16a37f=_0x443821(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x3f8ee8,0x15,_0x5a36f4[0x3b]),_0x1f0876=_0x443821(_0x1f0876,_0x16a37f,_0x2b04ca,_0x2bd87b,_0x526cac,0x6,_0x5a36f4[0x3c]),_0x2bd87b=_0x443821(_0x2bd87b,_0x1f0876,_0x16a37f,_0x2b04ca,_0x466da1,0xa,_0x5a36f4[0x3d]),_0x2b04ca=_0x443821(_0x2b04ca,_0x2bd87b,_0x1f0876,_0x16a37f,_0x5d7332,0xf,_0x5a36f4[0x3e]),_0x16a37f=_0x443821(_0x16a37f,_0x2b04ca,_0x2bd87b,_0x1f0876,_0x532f59,0x15,_0x5a36f4[0x3f]),_0x778b38[0x0]=_0x778b38[0x0]+_0x1f0876|0x0,_0x778b38[0x1]=_0x778b38[0x1]+_0x16a37f|0x0,_0x778b38[0x2]=_0x778b38[0x2]+_0x2b04ca|0x0,_0x778b38[0x3]=_0x778b38[0x3]+_0x2bd87b|0x0;},'_doFinalize':function(){const _0x2bf386=_0x1c7023;var _0x4cada1=this[_0x2bf386(0x578)],_0x5acd0c=_0x4cada1[_0x2bf386(0x407)],_0x32c827=this['_nDataBytes']*0x8,_0x4a71d4=_0x4cada1[_0x2bf386(0x19a)]*0x8;_0x5acd0c[_0x4a71d4>>>0x5]|=0x80<<0x18-_0x4a71d4%0x20;var _0x36007d=_0x1d8227[_0x2bf386(0x56b)](_0x32c827/0x100000000),_0x1c2f2e=_0x32c827;_0x5acd0c[(_0x4a71d4+0x40>>>0x9<<0x4)+0xf]=(_0x36007d<<0x8|_0x36007d>>>0x18)&0xff00ff|(_0x36007d<<0x18|_0x36007d>>>0x8)&0xff00ff00,_0x5acd0c[(_0x4a71d4+0x40>>>0x9<<0x4)+0xe]=(_0x1c2f2e<<0x8|_0x1c2f2e>>>0x18)&0xff00ff|(_0x1c2f2e<<0x18|_0x1c2f2e>>>0x8)&0xff00ff00,_0x4cada1[_0x2bf386(0x19a)]=(_0x5acd0c[_0x2bf386(0x5e8)]+0x1)*0x4,this[_0x2bf386(0x606)]();for(var _0x320144=this[_0x2bf386(0x2b5)],_0x5ad957=_0x320144[_0x2bf386(0x407)],_0x13be44=0x0;_0x13be44<0x4;_0x13be44++){var _0x502fe6=_0x5ad957[_0x13be44];_0x5ad957[_0x13be44]=(_0x502fe6<<0x8|_0x502fe6>>>0x18)&0xff00ff|(_0x502fe6<<0x18|_0x502fe6>>>0x8)&0xff00ff00;}return _0x320144;},'clone':function(){const _0x7b1808=_0x1c7023;var _0x3895fc=_0x31c127[_0x7b1808(0x39d)][_0x7b1808(0x2a5)](this);return _0x3895fc[_0x7b1808(0x2b5)]=this[_0x7b1808(0x2b5)]['clone'](),_0x3895fc;}});function _0x4ae833(_0x5cac38,_0x550348,_0x4349e1,_0x45c6d2,_0x3fa04b,_0x2c3506,_0x54598f){var _0x469023=_0x5cac38+(_0x550348&_0x4349e1|~_0x550348&_0x45c6d2)+_0x3fa04b+_0x54598f;return(_0x469023<<_0x2c3506|_0x469023>>>0x20-_0x2c3506)+_0x550348;}function _0x48915a(_0x5767c3,_0x54a007,_0x3f776a,_0x39c20a,_0x35ae04,_0x2ff7bf,_0x5c3f71){var _0xd5ee95=_0x5767c3+(_0x54a007&_0x39c20a|_0x3f776a&~_0x39c20a)+_0x35ae04+_0x5c3f71;return(_0xd5ee95<<_0x2ff7bf|_0xd5ee95>>>0x20-_0x2ff7bf)+_0x54a007;}function _0x11ec17(_0x19e3ae,_0x5496cb,_0x208658,_0x3511cf,_0x149ce6,_0x5b1179,_0x5149ce){var _0x55d604=_0x19e3ae+(_0x5496cb^_0x208658^_0x3511cf)+_0x149ce6+_0x5149ce;return(_0x55d604<<_0x5b1179|_0x55d604>>>0x20-_0x5b1179)+_0x5496cb;}function _0x443821(_0xa5a65,_0x2ca53b,_0x612c90,_0x418e98,_0x75384e,_0x30e2fb,_0x248e23){var _0x321b80=_0xa5a65+(_0x612c90^(_0x2ca53b|~_0x418e98))+_0x75384e+_0x248e23;return(_0x321b80<<_0x30e2fb|_0x321b80>>>0x20-_0x30e2fb)+_0x2ca53b;}_0x2498af[_0x1c7023(0x2b0)]=_0x31c127[_0x1c7023(0x568)](_0x52cc8b),_0x2498af['HmacMD5']=_0x31c127[_0x1c7023(0x476)](_0x52cc8b);}(Math),_0x392459['MD5'];}));}(ht)),ht[_0x5da71d(0x359)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x2e5625=_0x54516d;return Yt||(Yt=0x1,function(_0x183ded,_0x2fe3a9){(function(_0xa86169,_0x1f262e){const _0x4ba214=_0xe852;_0x183ded[_0x4ba214(0x359)]=_0x1f262e(oe());}(X,function(_0x386bbe){const _0x219753=_0xe852;return(function(){const _0x2e6b5b=_0xe852;var _0x547de3=_0x386bbe,_0x4396e3=_0x547de3[_0x2e6b5b(0x394)],_0x18701b=_0x4396e3[_0x2e6b5b(0x516)],_0x4db062=_0x4396e3['Hasher'],_0xc568af=_0x547de3[_0x2e6b5b(0x247)],_0x4d506c=[],_0x9a1bf6=_0xc568af[_0x2e6b5b(0x3d9)]=_0x4db062[_0x2e6b5b(0x16e)]({'_doReset':function(){const _0x47b181=_0x2e6b5b;this[_0x47b181(0x2b5)]=new _0x18701b['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0xf577c0,_0x282388){const _0x21c7e6=_0x2e6b5b;for(var _0x42dff2=this[_0x21c7e6(0x2b5)][_0x21c7e6(0x407)],_0x5a27a1=_0x42dff2[0x0],_0x435460=_0x42dff2[0x1],_0xf16852=_0x42dff2[0x2],_0x1d24dd=_0x42dff2[0x3],_0xb29da=_0x42dff2[0x4],_0x22a863=0x0;_0x22a863<0x50;_0x22a863++){if(_0x22a863<0x10)_0x4d506c[_0x22a863]=_0xf577c0[_0x282388+_0x22a863]|0x0;else{var _0x4c451c=_0x4d506c[_0x22a863-0x3]^_0x4d506c[_0x22a863-0x8]^_0x4d506c[_0x22a863-0xe]^_0x4d506c[_0x22a863-0x10];_0x4d506c[_0x22a863]=_0x4c451c<<0x1|_0x4c451c>>>0x1f;}var _0x44ecda=(_0x5a27a1<<0x5|_0x5a27a1>>>0x1b)+_0xb29da+_0x4d506c[_0x22a863];_0x22a863<0x14?_0x44ecda+=(_0x435460&_0xf16852|~_0x435460&_0x1d24dd)+0x5a827999:_0x22a863<0x28?_0x44ecda+=(_0x435460^_0xf16852^_0x1d24dd)+0x6ed9eba1:_0x22a863<0x3c?_0x44ecda+=(_0x435460&_0xf16852|_0x435460&_0x1d24dd|_0xf16852&_0x1d24dd)-0x70e44324:_0x44ecda+=(_0x435460^_0xf16852^_0x1d24dd)-0x359d3e2a,_0xb29da=_0x1d24dd,_0x1d24dd=_0xf16852,_0xf16852=_0x435460<<0x1e|_0x435460>>>0x2,_0x435460=_0x5a27a1,_0x5a27a1=_0x44ecda;}_0x42dff2[0x0]=_0x42dff2[0x0]+_0x5a27a1|0x0,_0x42dff2[0x1]=_0x42dff2[0x1]+_0x435460|0x0,_0x42dff2[0x2]=_0x42dff2[0x2]+_0xf16852|0x0,_0x42dff2[0x3]=_0x42dff2[0x3]+_0x1d24dd|0x0,_0x42dff2[0x4]=_0x42dff2[0x4]+_0xb29da|0x0;},'_doFinalize':function(){const _0x19e725=_0x2e6b5b;var _0x596455=this[_0x19e725(0x578)],_0x51d7bb=_0x596455['words'],_0x2c807b=this[_0x19e725(0x5ec)]*0x8,_0x4cd6fb=_0x596455['sigBytes']*0x8;return _0x51d7bb[_0x4cd6fb>>>0x5]|=0x80<<0x18-_0x4cd6fb%0x20,_0x51d7bb[(_0x4cd6fb+0x40>>>0x9<<0x4)+0xe]=Math[_0x19e725(0x56b)](_0x2c807b/0x100000000),_0x51d7bb[(_0x4cd6fb+0x40>>>0x9<<0x4)+0xf]=_0x2c807b,_0x596455[_0x19e725(0x19a)]=_0x51d7bb[_0x19e725(0x5e8)]*0x4,this[_0x19e725(0x606)](),this[_0x19e725(0x2b5)];},'clone':function(){const _0x30bc26=_0x2e6b5b;var _0x461ca4=_0x4db062[_0x30bc26(0x39d)]['call'](this);return _0x461ca4[_0x30bc26(0x2b5)]=this['_hash'][_0x30bc26(0x39d)](),_0x461ca4;}});_0x547de3[_0x2e6b5b(0x3d9)]=_0x4db062[_0x2e6b5b(0x568)](_0x9a1bf6),_0x547de3[_0x2e6b5b(0x4bc)]=_0x4db062[_0x2e6b5b(0x476)](_0x9a1bf6);}()),_0x386bbe[_0x219753(0x3d9)];}));}(ut)),ut[_0x2e5625(0x359)];}var dt={'exports':{}},Kt;function lr(){const _0x11335f=_0x54516d;return Kt||(Kt=0x1,function(_0x1d3c2c,_0xdd5575){(function(_0x5112c6,_0x5a663f){const _0x2efdb5=_0xe852;_0x1d3c2c[_0x2efdb5(0x359)]=_0x5a663f(oe());}(X,function(_0x272d59){(function(){const _0x557456=_0xe852;var _0x3a7a86=_0x272d59,_0xb94294=_0x3a7a86[_0x557456(0x394)],_0x1305e9=_0xb94294[_0x557456(0x5b4)],_0x411d27=_0x3a7a86[_0x557456(0x34b)],_0x3bafd7=_0x411d27[_0x557456(0x31b)],_0x27b154=_0x3a7a86[_0x557456(0x247)];_0x27b154[_0x557456(0x599)]=_0x1305e9[_0x557456(0x16e)]({'init':function(_0x30515b,_0x3c8329){const _0x3c278d=_0x557456;_0x30515b=this[_0x3c278d(0x1ac)]=new _0x30515b['init'](),typeof _0x3c8329=='string'&&(_0x3c8329=_0x3bafd7[_0x3c278d(0x2a0)](_0x3c8329));var _0x2f3be6=_0x30515b[_0x3c278d(0x5d1)],_0x3c82d0=_0x2f3be6*0x4;_0x3c8329['sigBytes']>_0x3c82d0&&(_0x3c8329=_0x30515b[_0x3c278d(0x408)](_0x3c8329)),_0x3c8329['clamp']();for(var _0xd4179d=this[_0x3c278d(0x5c4)]=_0x3c8329['clone'](),_0x10f65a=this[_0x3c278d(0x2fe)]=_0x3c8329[_0x3c278d(0x39d)](),_0x4b1620=_0xd4179d[_0x3c278d(0x407)],_0x325696=_0x10f65a[_0x3c278d(0x407)],_0x545ec5=0x0;_0x545ec5<_0x2f3be6;_0x545ec5++)_0x4b1620[_0x545ec5]^=0x5c5c5c5c,_0x325696[_0x545ec5]^=0x36363636;_0xd4179d[_0x3c278d(0x19a)]=_0x10f65a[_0x3c278d(0x19a)]=_0x3c82d0,this['reset']();},'reset':function(){const _0x43ff7c=_0x557456;var _0x94b57e=this[_0x43ff7c(0x1ac)];_0x94b57e[_0x43ff7c(0x44c)](),_0x94b57e[_0x43ff7c(0x493)](this['_iKey']);},'update':function(_0x278812){const _0x53df7b=_0x557456;return this[_0x53df7b(0x1ac)][_0x53df7b(0x493)](_0x278812),this;},'finalize':function(_0x44aa0d){const _0x3ec79d=_0x557456;var _0x13bbf3=this[_0x3ec79d(0x1ac)],_0x31392e=_0x13bbf3[_0x3ec79d(0x408)](_0x44aa0d);_0x13bbf3[_0x3ec79d(0x44c)]();var _0xab013=_0x13bbf3[_0x3ec79d(0x408)](this[_0x3ec79d(0x5c4)]['clone']()[_0x3ec79d(0x213)](_0x31392e));return _0xab013;}});}());}));}(dt)),dt[_0x11335f(0x359)];}var qt;function _0xe852(_0x5197e7,_0x1a051a){const _0x47dd08=_0x47dd();return _0xe852=function(_0xe85220,_0x5b135c){_0xe85220=_0xe85220-0x16d;let _0xc5fd11=_0x47dd08[_0xe85220];return _0xc5fd11;},_0xe852(_0x5197e7,_0x1a051a);}function Dn(){const _0x5b3a0a=_0x54516d;return qt||(qt=0x1,function(_0x471de7,_0xafe8bc){(function(_0xf3be6c,_0x2c03c8,_0x1d2263){const _0x3d89e1=_0xe852;_0x471de7[_0x3d89e1(0x359)]=_0x2c03c8(oe(),cr(),lr());}(X,function(_0x4c6570){const _0x59c4e0=_0xe852;return(function(){const _0x32a8f9=_0xe852;var _0x64d339=_0x4c6570,_0x2316ce=_0x64d339[_0x32a8f9(0x394)],_0x535ccc=_0x2316ce[_0x32a8f9(0x5b4)],_0x5eee94=_0x2316ce[_0x32a8f9(0x516)],_0x446cdc=_0x64d339['algo'],_0x28fb4f=_0x446cdc[_0x32a8f9(0x2b0)],_0x20ffcf=_0x446cdc[_0x32a8f9(0x43a)]=_0x535ccc['extend']({'cfg':_0x535ccc[_0x32a8f9(0x16e)]({'keySize':0x80/0x20,'hasher':_0x28fb4f,'iterations':0x1}),'init':function(_0x28edf7){const _0x37796f=_0x32a8f9;this[_0x37796f(0x57f)]=this['cfg'][_0x37796f(0x16e)](_0x28edf7);},'compute':function(_0x29039e,_0x1abc76){const _0xe26c3=_0x32a8f9;for(var _0x1343d8,_0x434813=this[_0xe26c3(0x57f)],_0x398ad3=_0x434813[_0xe26c3(0x436)][_0xe26c3(0x466)](),_0x3e9042=_0x5eee94[_0xe26c3(0x466)](),_0x58c7af=_0x3e9042[_0xe26c3(0x407)],_0x16ed1c=_0x434813['keySize'],_0x1c8cea=_0x434813[_0xe26c3(0x563)];_0x58c7af[_0xe26c3(0x5e8)]<_0x16ed1c;){_0x1343d8&&_0x398ad3['update'](_0x1343d8),_0x1343d8=_0x398ad3['update'](_0x29039e)[_0xe26c3(0x408)](_0x1abc76),_0x398ad3['reset']();for(var _0x3fc2b3=0x1;_0x3fc2b3<_0x1c8cea;_0x3fc2b3++)_0x1343d8=_0x398ad3[_0xe26c3(0x408)](_0x1343d8),_0x398ad3['reset']();_0x3e9042[_0xe26c3(0x213)](_0x1343d8);}return _0x3e9042[_0xe26c3(0x19a)]=_0x16ed1c*0x4,_0x3e9042;}});_0x64d339['EvpKDF']=function(_0x32ad37,_0x421c04,_0x179be3){const _0x57caff=_0x32a8f9;return _0x20ffcf[_0x57caff(0x466)](_0x179be3)[_0x57caff(0x483)](_0x32ad37,_0x421c04);};}()),_0x4c6570[_0x59c4e0(0x43a)];}));}(_t)),_t[_0x5b3a0a(0x359)];}var ft={'exports':{}},zt;function wn(){const _0x514574=_0x54516d;return zt||(zt=0x1,function(_0x7ea10b,_0x278245){(function(_0xbd12be,_0xa895cd,_0x81b24){_0x7ea10b['exports']=_0xa895cd(oe(),Dn());}(X,function(_0xe1af34){const _0x235ac6=_0xe852;_0xe1af34[_0x235ac6(0x394)][_0x235ac6(0x1c6)]||function(_0x370d5a){const _0x401151=_0x235ac6;var _0x21a02d=_0xe1af34,_0x1d7046=_0x21a02d[_0x401151(0x394)],_0x259a1e=_0x1d7046[_0x401151(0x5b4)],_0x72af35=_0x1d7046[_0x401151(0x516)],_0x461f94=_0x1d7046['BufferedBlockAlgorithm'],_0x4b5f63=_0x21a02d[_0x401151(0x34b)];_0x4b5f63[_0x401151(0x31b)];var _0x26a6e8=_0x4b5f63['Base64'],_0x5010c3=_0x21a02d[_0x401151(0x247)],_0x3d542e=_0x5010c3['EvpKDF'],_0x546367=_0x1d7046['Cipher']=_0x461f94[_0x401151(0x16e)]({'cfg':_0x259a1e[_0x401151(0x16e)](),'createEncryptor':function(_0x13b4bd,_0x2e5464){const _0x466235=_0x401151;return this['create'](this[_0x466235(0x246)],_0x13b4bd,_0x2e5464);},'createDecryptor':function(_0x36d31b,_0x2a8bda){const _0x5ef80a=_0x401151;return this[_0x5ef80a(0x466)](this[_0x5ef80a(0x3e2)],_0x36d31b,_0x2a8bda);},'init':function(_0x5c23f4,_0x8e79b2,_0x194ff8){const _0x3edaaa=_0x401151;this[_0x3edaaa(0x57f)]=this['cfg'][_0x3edaaa(0x16e)](_0x194ff8),this[_0x3edaaa(0x2e7)]=_0x5c23f4,this[_0x3edaaa(0x487)]=_0x8e79b2,this[_0x3edaaa(0x44c)]();},'reset':function(){const _0x4333d3=_0x401151;_0x461f94[_0x4333d3(0x44c)][_0x4333d3(0x2a5)](this),this['_doReset']();},'process':function(_0x2c0bb1){const _0x97b366=_0x401151;return this[_0x97b366(0x597)](_0x2c0bb1),this[_0x97b366(0x606)]();},'finalize':function(_0x316213){const _0x4fae13=_0x401151;_0x316213&&this[_0x4fae13(0x597)](_0x316213);var _0x257db8=this[_0x4fae13(0x1ed)]();return _0x257db8;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x3b083b(_0x4e2cf6){return typeof _0x4e2cf6=='string'?_0x43d522:_0x2148ec;}return function(_0x347347){return{'encrypt':function(_0x46872a,_0x3902c9,_0xa73e22){const _0x5cadc4=_0xe852;return _0x3b083b(_0x3902c9)[_0x5cadc4(0x24e)](_0x347347,_0x46872a,_0x3902c9,_0xa73e22);},'decrypt':function(_0x588a7f,_0x374e18,_0x240859){const _0x358992=_0xe852;return _0x3b083b(_0x374e18)[_0x358992(0x23f)](_0x347347,_0x588a7f,_0x374e18,_0x240859);}};};}())});_0x1d7046[_0x401151(0x4ce)]=_0x546367[_0x401151(0x16e)]({'_doFinalize':function(){var _0x5b35ff=this['_process'](!0x0);return _0x5b35ff;},'blockSize':0x1});var _0x314af1=_0x21a02d[_0x401151(0x449)]={},_0x252979=_0x1d7046[_0x401151(0x19d)]=_0x259a1e[_0x401151(0x16e)]({'createEncryptor':function(_0x4b818d,_0x27f0d6){const _0x5e19a8=_0x401151;return this[_0x5e19a8(0x277)][_0x5e19a8(0x466)](_0x4b818d,_0x27f0d6);},'createDecryptor':function(_0x3da957,_0x1be46a){const _0x246f29=_0x401151;return this[_0x246f29(0x23d)]['create'](_0x3da957,_0x1be46a);},'init':function(_0x37b11a,_0x428316){const _0x197bc4=_0x401151;this['_cipher']=_0x37b11a,this[_0x197bc4(0x34e)]=_0x428316;}}),_0x2f4fc7=_0x314af1[_0x401151(0x2cb)]=(function(){const _0x353d04=_0x401151;var _0x36404d=_0x252979[_0x353d04(0x16e)]();_0x36404d[_0x353d04(0x277)]=_0x36404d['extend']({'processBlock':function(_0x5689ff,_0x2584aa){const _0x5e06ad=_0x353d04;var _0x3dc3e4=this[_0x5e06ad(0x5bf)],_0x26168e=_0x3dc3e4[_0x5e06ad(0x5d1)];_0x555bb2[_0x5e06ad(0x2a5)](this,_0x5689ff,_0x2584aa,_0x26168e),_0x3dc3e4[_0x5e06ad(0x339)](_0x5689ff,_0x2584aa),this[_0x5e06ad(0x527)]=_0x5689ff[_0x5e06ad(0x4f1)](_0x2584aa,_0x2584aa+_0x26168e);}}),_0x36404d[_0x353d04(0x23d)]=_0x36404d[_0x353d04(0x16e)]({'processBlock':function(_0x467f61,_0x5b36a3){const _0x2afc74=_0x353d04;var _0x5e8b98=this[_0x2afc74(0x5bf)],_0x211aaa=_0x5e8b98['blockSize'],_0x2adbd7=_0x467f61[_0x2afc74(0x4f1)](_0x5b36a3,_0x5b36a3+_0x211aaa);_0x5e8b98['decryptBlock'](_0x467f61,_0x5b36a3),_0x555bb2['call'](this,_0x467f61,_0x5b36a3,_0x211aaa),this['_prevBlock']=_0x2adbd7;}});function _0x555bb2(_0x2b2a20,_0x3c55db,_0x394a4f){const _0x232121=_0x353d04;var _0xd5bc7,_0x3f585d=this[_0x232121(0x34e)];_0x3f585d?(_0xd5bc7=_0x3f585d,this[_0x232121(0x34e)]=_0x370d5a):_0xd5bc7=this[_0x232121(0x527)];for(var _0x5a10f3=0x0;_0x5a10f3<_0x394a4f;_0x5a10f3++)_0x2b2a20[_0x3c55db+_0x5a10f3]^=_0xd5bc7[_0x5a10f3];}return _0x36404d;}()),_0x50c683=_0x21a02d['pad']={},_0x1e3491=_0x50c683['Pkcs7']={'pad':function(_0x4d0a68,_0xd481df){const _0x54d1d4=_0x401151;for(var _0x12468c=_0xd481df*0x4,_0x594e92=_0x12468c-_0x4d0a68[_0x54d1d4(0x19a)]%_0x12468c,_0x5b9e41=_0x594e92<<0x18|_0x594e92<<0x10|_0x594e92<<0x8|_0x594e92,_0x33eefe=[],_0xb01293=0x0;_0xb01293<_0x594e92;_0xb01293+=0x4)_0x33eefe[_0x54d1d4(0x26e)](_0x5b9e41);var _0x157ee3=_0x72af35[_0x54d1d4(0x466)](_0x33eefe,_0x594e92);_0x4d0a68[_0x54d1d4(0x213)](_0x157ee3);},'unpad':function(_0x12a2a6){const _0x4a5a34=_0x401151;var _0x44e5f6=_0x12a2a6[_0x4a5a34(0x407)][_0x12a2a6[_0x4a5a34(0x19a)]-0x1>>>0x2]&0xff;_0x12a2a6[_0x4a5a34(0x19a)]-=_0x44e5f6;}};_0x1d7046['BlockCipher']=_0x546367[_0x401151(0x16e)]({'cfg':_0x546367['cfg'][_0x401151(0x16e)]({'mode':_0x2f4fc7,'padding':_0x1e3491}),'reset':function(){const _0x4231c6=_0x401151;var _0x5d8a18;_0x546367[_0x4231c6(0x44c)]['call'](this);var _0x305ff2=this[_0x4231c6(0x57f)],_0x274bee=_0x305ff2['iv'],_0x12370a=_0x305ff2['mode'];this[_0x4231c6(0x2e7)]==this[_0x4231c6(0x246)]?_0x5d8a18=_0x12370a[_0x4231c6(0x3c6)]:(_0x5d8a18=_0x12370a['createDecryptor'],this[_0x4231c6(0x22f)]=0x1),this[_0x4231c6(0x26d)]&&this[_0x4231c6(0x26d)][_0x4231c6(0x291)]==_0x5d8a18?this[_0x4231c6(0x26d)][_0x4231c6(0x4eb)](this,_0x274bee&&_0x274bee[_0x4231c6(0x407)]):(this[_0x4231c6(0x26d)]=_0x5d8a18[_0x4231c6(0x2a5)](_0x12370a,this,_0x274bee&&_0x274bee[_0x4231c6(0x407)]),this[_0x4231c6(0x26d)][_0x4231c6(0x291)]=_0x5d8a18);},'_doProcessBlock':function(_0x18166c,_0x1da143){this['_mode']['processBlock'](_0x18166c,_0x1da143);},'_doFinalize':function(){const _0x1d41f8=_0x401151;var _0x353672,_0x27968b=this[_0x1d41f8(0x57f)][_0x1d41f8(0x464)];return this['_xformMode']==this[_0x1d41f8(0x246)]?(_0x27968b[_0x1d41f8(0x327)](this[_0x1d41f8(0x578)],this[_0x1d41f8(0x5d1)]),_0x353672=this[_0x1d41f8(0x606)](!0x0)):(_0x353672=this[_0x1d41f8(0x606)](!0x0),_0x27968b['unpad'](_0x353672)),_0x353672;},'blockSize':0x80/0x20});var _0x530b02=_0x1d7046[_0x401151(0x46d)]=_0x259a1e[_0x401151(0x16e)]({'init':function(_0xa12628){const _0x3a16d2=_0x401151;this[_0x3a16d2(0x195)](_0xa12628);},'toString':function(_0x5470ab){const _0x1e31a4=_0x401151;return(_0x5470ab||this['formatter'])[_0x1e31a4(0x4c1)](this);}}),_0x44232b=_0x21a02d[_0x401151(0x378)]={},_0xc6a092=_0x44232b['OpenSSL']={'stringify':function(_0x3fcd0f){const _0x2828f3=_0x401151;var _0x37147b,_0x412d01=_0x3fcd0f['ciphertext'],_0x197de2=_0x3fcd0f['salt'];return _0x197de2?_0x37147b=_0x72af35[_0x2828f3(0x466)]([0x53616c74,0x65645f5f])[_0x2828f3(0x213)](_0x197de2)[_0x2828f3(0x213)](_0x412d01):_0x37147b=_0x412d01,_0x37147b[_0x2828f3(0x481)](_0x26a6e8);},'parse':function(_0x214159){const _0x51251a=_0x401151;var _0xe8d919,_0x3bad4c=_0x26a6e8[_0x51251a(0x2a0)](_0x214159),_0x5ceca8=_0x3bad4c['words'];return _0x5ceca8[0x0]==0x53616c74&&_0x5ceca8[0x1]==0x65645f5f&&(_0xe8d919=_0x72af35[_0x51251a(0x466)](_0x5ceca8['slice'](0x2,0x4)),_0x5ceca8[_0x51251a(0x4a2)](0x0,0x4),_0x3bad4c[_0x51251a(0x19a)]-=0x10),_0x530b02[_0x51251a(0x466)]({'ciphertext':_0x3bad4c,'salt':_0xe8d919});}},_0x2148ec=_0x1d7046[_0x401151(0x1f1)]=_0x259a1e['extend']({'cfg':_0x259a1e[_0x401151(0x16e)]({'format':_0xc6a092}),'encrypt':function(_0x33d991,_0x1f5b49,_0xf375a9,_0x1ca3b7){const _0x3b3d26=_0x401151;_0x1ca3b7=this['cfg'][_0x3b3d26(0x16e)](_0x1ca3b7);var _0x3cd2a2=_0x33d991[_0x3b3d26(0x3c6)](_0xf375a9,_0x1ca3b7),_0x45203c=_0x3cd2a2[_0x3b3d26(0x408)](_0x1f5b49),_0x492be2=_0x3cd2a2['cfg'];return _0x530b02[_0x3b3d26(0x466)]({'ciphertext':_0x45203c,'key':_0xf375a9,'iv':_0x492be2['iv'],'algorithm':_0x33d991,'mode':_0x492be2[_0x3b3d26(0x449)],'padding':_0x492be2[_0x3b3d26(0x464)],'blockSize':_0x33d991['blockSize'],'formatter':_0x1ca3b7[_0x3b3d26(0x378)]});},'decrypt':function(_0x52889b,_0x49609d,_0x2d4457,_0x3e04f7){const _0x4f6621=_0x401151;_0x3e04f7=this[_0x4f6621(0x57f)][_0x4f6621(0x16e)](_0x3e04f7),_0x49609d=this[_0x4f6621(0x4e3)](_0x49609d,_0x3e04f7[_0x4f6621(0x378)]);var _0x811b47=_0x52889b[_0x4f6621(0x504)](_0x2d4457,_0x3e04f7)[_0x4f6621(0x408)](_0x49609d[_0x4f6621(0x258)]);return _0x811b47;},'_parse':function(_0x192f82,_0x1cef7b){const _0x373de8=_0x401151;return typeof _0x192f82==_0x373de8(0x3aa)?_0x1cef7b[_0x373de8(0x2a0)](_0x192f82,this):_0x192f82;}}),_0x5a8780=_0x21a02d[_0x401151(0x347)]={},_0x1dc3fe=_0x5a8780[_0x401151(0x304)]={'execute':function(_0xe63901,_0x4c6165,_0x5dc1db,_0xa21e9a,_0x191e6d){const _0x4996b5=_0x401151;if(_0xa21e9a||(_0xa21e9a=_0x72af35[_0x4996b5(0x35c)](0x40/0x8)),_0x191e6d)var _0x2997dd=_0x3d542e[_0x4996b5(0x466)]({'keySize':_0x4c6165+_0x5dc1db,'hasher':_0x191e6d})[_0x4996b5(0x483)](_0xe63901,_0xa21e9a);else var _0x2997dd=_0x3d542e[_0x4996b5(0x466)]({'keySize':_0x4c6165+_0x5dc1db})[_0x4996b5(0x483)](_0xe63901,_0xa21e9a);var _0x4e4196=_0x72af35['create'](_0x2997dd[_0x4996b5(0x407)][_0x4996b5(0x4f1)](_0x4c6165),_0x5dc1db*0x4);return _0x2997dd[_0x4996b5(0x19a)]=_0x4c6165*0x4,_0x530b02[_0x4996b5(0x466)]({'key':_0x2997dd,'iv':_0x4e4196,'salt':_0xa21e9a});}},_0x43d522=_0x1d7046[_0x401151(0x252)]=_0x2148ec['extend']({'cfg':_0x2148ec[_0x401151(0x57f)][_0x401151(0x16e)]({'kdf':_0x1dc3fe}),'encrypt':function(_0x53ce4c,_0x2d8502,_0x321237,_0x5ee45f){const _0x3e95a6=_0x401151;_0x5ee45f=this['cfg'][_0x3e95a6(0x16e)](_0x5ee45f);var _0x55e985=_0x5ee45f['kdf'][_0x3e95a6(0x353)](_0x321237,_0x53ce4c[_0x3e95a6(0x2c7)],_0x53ce4c[_0x3e95a6(0x458)],_0x5ee45f['salt'],_0x5ee45f['hasher']);_0x5ee45f['iv']=_0x55e985['iv'];var _0x124727=_0x2148ec[_0x3e95a6(0x24e)][_0x3e95a6(0x2a5)](this,_0x53ce4c,_0x2d8502,_0x55e985['key'],_0x5ee45f);return _0x124727[_0x3e95a6(0x195)](_0x55e985),_0x124727;},'decrypt':function(_0x503065,_0x1156e1,_0x5461f7,_0x530ade){const _0x2ae8f=_0x401151;_0x530ade=this[_0x2ae8f(0x57f)][_0x2ae8f(0x16e)](_0x530ade),_0x1156e1=this[_0x2ae8f(0x4e3)](_0x1156e1,_0x530ade[_0x2ae8f(0x378)]);var _0x1dd39e=_0x530ade[_0x2ae8f(0x347)][_0x2ae8f(0x353)](_0x5461f7,_0x503065[_0x2ae8f(0x2c7)],_0x503065[_0x2ae8f(0x458)],_0x1156e1['salt'],_0x530ade['hasher']);_0x530ade['iv']=_0x1dd39e['iv'];var _0x16daa3=_0x2148ec[_0x2ae8f(0x23f)][_0x2ae8f(0x2a5)](this,_0x503065,_0x1156e1,_0x1dd39e[_0x2ae8f(0x5f3)],_0x530ade);return _0x16daa3;}});}();}));}(ft)),ft[_0x514574(0x359)];}(function(_0x50269b,_0x1b40e7){(function(_0x246088,_0x3bb811,_0x43f294){const _0x3d2bfb=_0xe852;_0x50269b[_0x3d2bfb(0x359)]=_0x3bb811(oe(),On(),ar(),Dn(),wn());}(X,function(_0x11ef27){const _0x543d3e=_0xe852;return(function(){const _0x11e8cd=_0xe852;var _0x2bc991=_0x11ef27,_0xee84f6=_0x2bc991[_0x11e8cd(0x394)],_0x3747be=_0xee84f6['BlockCipher'],_0x5e0147=_0x2bc991[_0x11e8cd(0x247)],_0x4e7a91=[],_0x3a4053=[],_0x34578a=[],_0x2bc9c5=[],_0x150fc0=[],_0x5dee5f=[],_0xb7930f=[],_0x43c98e=[],_0x3d55dd=[],_0x1de4ae=[];(function(){for(var _0x174270=[],_0xa94c75=0x0;_0xa94c75<0x100;_0xa94c75++)_0xa94c75<0x80?_0x174270[_0xa94c75]=_0xa94c75<<0x1:_0x174270[_0xa94c75]=_0xa94c75<<0x1^0x11b;for(var _0x29923b=0x0,_0x230b62=0x0,_0xa94c75=0x0;_0xa94c75<0x100;_0xa94c75++){var _0x3502e8=_0x230b62^_0x230b62<<0x1^_0x230b62<<0x2^_0x230b62<<0x3^_0x230b62<<0x4;_0x3502e8=_0x3502e8>>>0x8^_0x3502e8&0xff^0x63,_0x4e7a91[_0x29923b]=_0x3502e8,_0x3a4053[_0x3502e8]=_0x29923b;var _0xa9896d=_0x174270[_0x29923b],_0x56691e=_0x174270[_0xa9896d],_0x4dd4db=_0x174270[_0x56691e],_0x1c3add=_0x174270[_0x3502e8]*0x101^_0x3502e8*0x1010100;_0x34578a[_0x29923b]=_0x1c3add<<0x18|_0x1c3add>>>0x8,_0x2bc9c5[_0x29923b]=_0x1c3add<<0x10|_0x1c3add>>>0x10,_0x150fc0[_0x29923b]=_0x1c3add<<0x8|_0x1c3add>>>0x18,_0x5dee5f[_0x29923b]=_0x1c3add;var _0x1c3add=_0x4dd4db*0x1010101^_0x56691e*0x10001^_0xa9896d*0x101^_0x29923b*0x1010100;_0xb7930f[_0x3502e8]=_0x1c3add<<0x18|_0x1c3add>>>0x8,_0x43c98e[_0x3502e8]=_0x1c3add<<0x10|_0x1c3add>>>0x10,_0x3d55dd[_0x3502e8]=_0x1c3add<<0x8|_0x1c3add>>>0x18,_0x1de4ae[_0x3502e8]=_0x1c3add,_0x29923b?(_0x29923b=_0xa9896d^_0x174270[_0x174270[_0x174270[_0x4dd4db^_0xa9896d]]],_0x230b62^=_0x174270[_0x174270[_0x230b62]]):_0x29923b=_0x230b62=0x1;}}());var _0x50ef10=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x423614=_0x5e0147[_0x11e8cd(0x29d)]=_0x3747be[_0x11e8cd(0x16e)]({'_doReset':function(){const _0x535679=_0x11e8cd;var _0x488810;if(!(this['_nRounds']&&this['_keyPriorReset']===this[_0x535679(0x487)])){for(var _0x4f9e73=this[_0x535679(0x23b)]=this['_key'],_0x3344c6=_0x4f9e73[_0x535679(0x407)],_0x539356=_0x4f9e73[_0x535679(0x19a)]/0x4,_0x2d7ae1=this['_nRounds']=_0x539356+0x6,_0x533dd5=(_0x2d7ae1+0x1)*0x4,_0x1533ae=this[_0x535679(0x365)]=[],_0x15d3b4=0x0;_0x15d3b4<_0x533dd5;_0x15d3b4++)_0x15d3b4<_0x539356?_0x1533ae[_0x15d3b4]=_0x3344c6[_0x15d3b4]:(_0x488810=_0x1533ae[_0x15d3b4-0x1],_0x15d3b4%_0x539356?_0x539356>0x6&&_0x15d3b4%_0x539356==0x4&&(_0x488810=_0x4e7a91[_0x488810>>>0x18]<<0x18|_0x4e7a91[_0x488810>>>0x10&0xff]<<0x10|_0x4e7a91[_0x488810>>>0x8&0xff]<<0x8|_0x4e7a91[_0x488810&0xff]):(_0x488810=_0x488810<<0x8|_0x488810>>>0x18,_0x488810=_0x4e7a91[_0x488810>>>0x18]<<0x18|_0x4e7a91[_0x488810>>>0x10&0xff]<<0x10|_0x4e7a91[_0x488810>>>0x8&0xff]<<0x8|_0x4e7a91[_0x488810&0xff],_0x488810^=_0x50ef10[_0x15d3b4/_0x539356|0x0]<<0x18),_0x1533ae[_0x15d3b4]=_0x1533ae[_0x15d3b4-_0x539356]^_0x488810);for(var _0x5aad25=this[_0x535679(0x3d7)]=[],_0xf05c18=0x0;_0xf05c18<_0x533dd5;_0xf05c18++){var _0x15d3b4=_0x533dd5-_0xf05c18;if(_0xf05c18%0x4)var _0x488810=_0x1533ae[_0x15d3b4];else var _0x488810=_0x1533ae[_0x15d3b4-0x4];_0xf05c18<0x4||_0x15d3b4<=0x4?_0x5aad25[_0xf05c18]=_0x488810:_0x5aad25[_0xf05c18]=_0xb7930f[_0x4e7a91[_0x488810>>>0x18]]^_0x43c98e[_0x4e7a91[_0x488810>>>0x10&0xff]]^_0x3d55dd[_0x4e7a91[_0x488810>>>0x8&0xff]]^_0x1de4ae[_0x4e7a91[_0x488810&0xff]];}}},'encryptBlock':function(_0x197a7b,_0x366016){const _0x304082=_0x11e8cd;this['_doCryptBlock'](_0x197a7b,_0x366016,this[_0x304082(0x365)],_0x34578a,_0x2bc9c5,_0x150fc0,_0x5dee5f,_0x4e7a91);},'decryptBlock':function(_0x5afdd4,_0xe25771){const _0xef585=_0x11e8cd;var _0x4aed1e=_0x5afdd4[_0xe25771+0x1];_0x5afdd4[_0xe25771+0x1]=_0x5afdd4[_0xe25771+0x3],_0x5afdd4[_0xe25771+0x3]=_0x4aed1e,this[_0xef585(0x3ed)](_0x5afdd4,_0xe25771,this['_invKeySchedule'],_0xb7930f,_0x43c98e,_0x3d55dd,_0x1de4ae,_0x3a4053);var _0x4aed1e=_0x5afdd4[_0xe25771+0x1];_0x5afdd4[_0xe25771+0x1]=_0x5afdd4[_0xe25771+0x3],_0x5afdd4[_0xe25771+0x3]=_0x4aed1e;},'_doCryptBlock':function(_0x292923,_0x51efff,_0x48d273,_0x48ae19,_0x39ed2b,_0x483405,_0xa1f691,_0x1eb52c){const _0x5a5e15=_0x11e8cd;for(var _0x195389=this[_0x5a5e15(0x57b)],_0x127cb9=_0x292923[_0x51efff]^_0x48d273[0x0],_0x1058cd=_0x292923[_0x51efff+0x1]^_0x48d273[0x1],_0x180f4a=_0x292923[_0x51efff+0x2]^_0x48d273[0x2],_0x3889bd=_0x292923[_0x51efff+0x3]^_0x48d273[0x3],_0x168e71=0x4,_0x4b64c4=0x1;_0x4b64c4<_0x195389;_0x4b64c4++){var _0x3f04d7=_0x48ae19[_0x127cb9>>>0x18]^_0x39ed2b[_0x1058cd>>>0x10&0xff]^_0x483405[_0x180f4a>>>0x8&0xff]^_0xa1f691[_0x3889bd&0xff]^_0x48d273[_0x168e71++],_0x6e06d8=_0x48ae19[_0x1058cd>>>0x18]^_0x39ed2b[_0x180f4a>>>0x10&0xff]^_0x483405[_0x3889bd>>>0x8&0xff]^_0xa1f691[_0x127cb9&0xff]^_0x48d273[_0x168e71++],_0x50c08a=_0x48ae19[_0x180f4a>>>0x18]^_0x39ed2b[_0x3889bd>>>0x10&0xff]^_0x483405[_0x127cb9>>>0x8&0xff]^_0xa1f691[_0x1058cd&0xff]^_0x48d273[_0x168e71++],_0x26a9a5=_0x48ae19[_0x3889bd>>>0x18]^_0x39ed2b[_0x127cb9>>>0x10&0xff]^_0x483405[_0x1058cd>>>0x8&0xff]^_0xa1f691[_0x180f4a&0xff]^_0x48d273[_0x168e71++];_0x127cb9=_0x3f04d7,_0x1058cd=_0x6e06d8,_0x180f4a=_0x50c08a,_0x3889bd=_0x26a9a5;}var _0x3f04d7=(_0x1eb52c[_0x127cb9>>>0x18]<<0x18|_0x1eb52c[_0x1058cd>>>0x10&0xff]<<0x10|_0x1eb52c[_0x180f4a>>>0x8&0xff]<<0x8|_0x1eb52c[_0x3889bd&0xff])^_0x48d273[_0x168e71++],_0x6e06d8=(_0x1eb52c[_0x1058cd>>>0x18]<<0x18|_0x1eb52c[_0x180f4a>>>0x10&0xff]<<0x10|_0x1eb52c[_0x3889bd>>>0x8&0xff]<<0x8|_0x1eb52c[_0x127cb9&0xff])^_0x48d273[_0x168e71++],_0x50c08a=(_0x1eb52c[_0x180f4a>>>0x18]<<0x18|_0x1eb52c[_0x3889bd>>>0x10&0xff]<<0x10|_0x1eb52c[_0x127cb9>>>0x8&0xff]<<0x8|_0x1eb52c[_0x1058cd&0xff])^_0x48d273[_0x168e71++],_0x26a9a5=(_0x1eb52c[_0x3889bd>>>0x18]<<0x18|_0x1eb52c[_0x127cb9>>>0x10&0xff]<<0x10|_0x1eb52c[_0x1058cd>>>0x8&0xff]<<0x8|_0x1eb52c[_0x180f4a&0xff])^_0x48d273[_0x168e71++];_0x292923[_0x51efff]=_0x3f04d7,_0x292923[_0x51efff+0x1]=_0x6e06d8,_0x292923[_0x51efff+0x2]=_0x50c08a,_0x292923[_0x51efff+0x3]=_0x26a9a5;},'keySize':0x100/0x20});_0x2bc991[_0x11e8cd(0x29d)]=_0x3747be[_0x11e8cd(0x568)](_0x423614);}()),_0x11ef27[_0x543d3e(0x29d)];}));}(yn));var hr=yn[_0x54516d(0x359)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0xe58ce3,_0x4a8386){(function(_0x5ae58c,_0x428e81){_0xe58ce3['exports']=_0x428e81(oe());}(X,function(_0x481b08){const _0x5da5c3=_0xe852;return _0x481b08[_0x5da5c3(0x34b)][_0x5da5c3(0x31b)];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x44ef02,_0x1de64d){(function(_0x5c3fa6,_0x30d0f3){const _0x34d6c8=_0xe852;_0x44ef02[_0x34d6c8(0x359)]=_0x30d0f3(oe());}(X,function(_0x54df41){const _0x418a6a=_0xe852;return(function(){const _0x269e73=_0xe852;if(typeof ArrayBuffer=='function'){var _0x320b94=_0x54df41,_0x5ca9ce=_0x320b94['lib'],_0x3c1a2f=_0x5ca9ce[_0x269e73(0x516)],_0x231ca2=_0x3c1a2f['init'],_0x3c603a=_0x3c1a2f[_0x269e73(0x4eb)]=function(_0x5c4ca6){const _0x6a6d7d=_0x269e73;if(_0x5c4ca6 instanceof ArrayBuffer&&(_0x5c4ca6=new Uint8Array(_0x5c4ca6)),(_0x5c4ca6 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5c4ca6 instanceof Uint8ClampedArray||_0x5c4ca6 instanceof Int16Array||_0x5c4ca6 instanceof Uint16Array||_0x5c4ca6 instanceof Int32Array||_0x5c4ca6 instanceof Uint32Array||_0x5c4ca6 instanceof Float32Array||_0x5c4ca6 instanceof Float64Array)&&(_0x5c4ca6=new Uint8Array(_0x5c4ca6[_0x6a6d7d(0x4ed)],_0x5c4ca6[_0x6a6d7d(0x1cb)],_0x5c4ca6['byteLength'])),_0x5c4ca6 instanceof Uint8Array){for(var _0x5a3e13=_0x5c4ca6[_0x6a6d7d(0x40c)],_0x299e34=[],_0x2a5813=0x0;_0x2a5813<_0x5a3e13;_0x2a5813++)_0x299e34[_0x2a5813>>>0x2]|=_0x5c4ca6[_0x2a5813]<<0x18-_0x2a5813%0x4*0x8;_0x231ca2['call'](this,_0x299e34,_0x5a3e13);}else _0x231ca2['apply'](this,arguments);};_0x3c603a['prototype']=_0x3c1a2f;}}()),_0x54df41['lib'][_0x418a6a(0x516)];}));}(Un));var vr=Un['exports'];const mr=xe(vr);var Mn={'exports':{}};(function(_0x495364,_0x1ac734){(function(_0x52caba,_0x1f24b8,_0x2b1c12){_0x495364['exports']=_0x1f24b8(oe(),wn());}(X,function(_0x23f996){const _0x3ef408=_0xe852;return _0x23f996[_0x3ef408(0x327)][_0x3ef408(0x253)]={'pad':function(){},'unpad':function(){}},_0x23f996[_0x3ef408(0x327)][_0x3ef408(0x253)];}));}(Mn));var Sr=Mn['exports'];const pr=xe(Sr);function gr(_0x2fe696,_0x473b5b){const _0xafb3c1=_0x54516d,_0x51bb94=_0x473b5b-_0x2fe696[_0xafb3c1(0x5e8)]%_0x473b5b,_0x1428e9=String[_0xafb3c1(0x5ca)](_0x51bb94)[_0xafb3c1(0x2f4)](_0x51bb94);return _0x2fe696+_0x1428e9;}function Ir(_0x23f25d,_0x32745c){const _0x1032f1=_0x54516d,_0x4f7321=mr[_0x1032f1(0x35c)](0x10),_0x54a69c=gr(_0x23f25d,0x10),_0x35d5b5=_r['encrypt'](fr[_0x1032f1(0x2a0)](_0x54a69c),Xt[_0x1032f1(0x2a0)](_0x32745c),{'iv':_0x4f7321,'padding':pr});return _0x4f7321[_0x1032f1(0x213)](_0x35d5b5['ciphertext'])[_0x1032f1(0x481)](Xt);}function Cr(){const _0x5bbb0c=_0x54516d,_0x8a0d0=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x8a0d0){const _0x1cf052={'time':Math[_0x5bbb0c(0x56b)](Date[_0x5bbb0c(0x331)]()/0x3e8),'domain':location[_0x5bbb0c(0x5fb)]};return Ir(JSON[_0x5bbb0c(0x4c1)](_0x1cf052),_0x8a0d0);}}var Er=Object[_0x54516d(0x461)],br=Object[_0x54516d(0x363)],Tr=(_0x1496b5,_0x4062fa,_0x33416d,_0x403f33)=>{for(var _0x26f8d9=_0x403f33>0x1?void 0x0:_0x403f33?br(_0x4062fa,_0x33416d):_0x4062fa,_0x317cde=_0x1496b5['length']-0x1,_0x2ad033;_0x317cde>=0x0;_0x317cde--)(_0x2ad033=_0x1496b5[_0x317cde])&&(_0x26f8d9=(_0x403f33?_0x2ad033(_0x4062fa,_0x33416d,_0x26f8d9):_0x2ad033(_0x26f8d9))||_0x26f8d9);return _0x403f33&&_0x26f8d9&&Er(_0x4062fa,_0x33416d,_0x26f8d9),_0x26f8d9;},Rr=(_0x585b31,_0xa6f8f2)=>(_0x23b0b0,_0x295f44)=>_0xa6f8f2(_0x23b0b0,_0x295f44,_0x585b31);let Ye=class{constructor(_0x2f88d8){const _0x535d01=_0x54516d;this[_0x535d01(0x248)]=_0x2f88d8,this[_0x535d01(0x17c)]();}['_initRequestHeader'](){const _0x46611d=_0x54516d;this[_0x46611d(0x248)][_0x46611d(0x220)]({'interceptor':(_0x119b73,_0x1ec094)=>{const _0x5ac8b7=_0x46611d,_0x4bc6f0=_0x119b73[_0x5ac8b7(0x4de)],_0x588114=Cr();return _0x588114&&_0x4bc6f0[_0x5ac8b7(0x36d)](_0x5ac8b7(0x17d),_0x588114),_0x1ec094(_0x119b73);}});}};Ye=Tr([Rr(0x0,a[_0x54516d(0x573)](Z[_0x54516d(0x180)]))],Ye);var yr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x5b0716,_0x524798,_0x2087fa,_0x2fab1a)=>{for(var _0x1da4f9=_0x2fab1a>0x1?void 0x0:_0x2fab1a?Or(_0x524798,_0x2087fa):_0x524798,_0x36d976=_0x5b0716['length']-0x1,_0x3a1d80;_0x36d976>=0x0;_0x36d976--)(_0x3a1d80=_0x5b0716[_0x36d976])&&(_0x1da4f9=(_0x2fab1a?_0x3a1d80(_0x524798,_0x2087fa,_0x1da4f9):_0x3a1d80(_0x1da4f9))||_0x1da4f9);return _0x2fab1a&&_0x1da4f9&&yr(_0x524798,_0x2087fa,_0x1da4f9),_0x1da4f9;},vt=(_0x1a01f2,_0x5443ef)=>(_0x22f667,_0x1bc154)=>_0x5443ef(_0x22f667,_0x1bc154,_0x1a01f2);const wr=[_0x54516d(0x2a4),_0x54516d(0x2e2),_0x54516d(0x445),_0x54516d(0x5a6),_0x54516d(0x57c)],Pr=0x5*0x400*0x400,Ur=_0x54516d(0x447),Mr=_0x54516d(0x1e6),Ar=_0x54516d(0x249),Nr='/universer-api/file/{fileID}/sign-url';exports[_0x54516d(0x293)]=class{constructor(_0x49729a,_0x2d0648,_0x767b0a){const _0x1cef29=_0x54516d;I(this,_0x1cef29(0x582),0x0),I(this,_0x1cef29(0x503),new A['Subject']()),I(this,_0x1cef29(0x30a),this[_0x1cef29(0x503)]),I(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x49729a,this[_0x1cef29(0x2a3)]=_0x2d0648,this['_univerInstanceService']=_0x767b0a);}[_0x54516d(0x574)](_0x508b2d){const _0x41b2ed=_0x54516d;this[_0x41b2ed(0x582)]=_0x508b2d,this[_0x41b2ed(0x503)][_0x41b2ed(0x4bd)](_0x508b2d);}[_0x54516d(0x3b0)](_0x300ade,_0x874209){const _0x16834c=_0x54516d;if(_0x874209===ne[_0x16834c(0x1b6)]['BASE64']){const _0x163d43=new Image();return _0x163d43['src']=_0x300ade,_0x163d43;}return this['_imageSourceCache'][_0x16834c(0x3b1)](_0x300ade);}[_0x54516d(0x1e1)](_0x24bff5,_0xd230c,_0x5ae9c5){const _0x273456=_0x54516d;_0xd230c===ne[_0x273456(0x1b6)]['BASE64']||_0x5ae9c5==null||this[_0x273456(0x620)][_0x273456(0x36d)](_0x24bff5,_0x5ae9c5);}async[_0x54516d(0x4c3)](_0x1b84a8){const _0x1b8eb6=_0x54516d;try{const _0x47aa34=this['_replaceFileID'](this[_0x1b8eb6(0x4cf)](),''+_0x1b84a8),_0xd2699=(await this[_0x1b8eb6(0x248)][_0x1b8eb6(0x3b1)](_0x47aa34))[_0x1b8eb6(0x4ba)];if(_0xd2699['error']&&_0xd2699['error'][_0x1b8eb6(0x27c)]===cn['OK']){const _0x16bbcb=new URL(_0xd2699['url'],this[_0x1b8eb6(0x60b)]())[_0x1b8eb6(0x481)]();return Promise[_0x1b8eb6(0x3c9)](_0x16bbcb);}return Promise['reject'](_0xd2699[_0x1b8eb6(0x29f)]);}catch(_0x3f4a16){return Promise[_0x1b8eb6(0x1e2)](_0x3f4a16);}}async[_0x54516d(0x56f)](_0xc877ab){const _0x2bef55=_0x54516d;let _0x4b4687='';if(!wr['includes'](_0xc877ab[_0x2bef55(0x242)]))return this[_0x2bef55(0x42b)](),Promise[_0x2bef55(0x1e2)](new Error(ne[_0x2bef55(0x2cf)][_0x2bef55(0x60f)]));if(_0xc877ab['size']>Pr)return this[_0x2bef55(0x42b)](),Promise[_0x2bef55(0x1e2)](new Error(ne[_0x2bef55(0x2cf)][_0x2bef55(0x432)]));try{const _0x5e321b=new FormData();_0x5e321b[_0x2bef55(0x300)](_0x2bef55(0x34f),_0xc877ab);const _0x4fa54c=this[_0x2bef55(0x228)][_0x2bef55(0x310)](),_0x4b25c3=_0x4fa54c==null?void 0x0:_0x4fa54c[_0x2bef55(0x2c5)]();if(!_0x4b25c3)throw new Error(_0x2bef55(0x2b8));const _0x120f64=this[_0x2bef55(0x5a0)]()+_0x2bef55(0x4af)+_0xc877ab[_0x2bef55(0x5c0)][_0x2bef55(0x481)]()+_0x2bef55(0x2ab)+ln[_0x2bef55(0x3a0)]+'&assign='+encodeURIComponent(_0x4b25c3),_0x49f9b0=await(await fetch(_0x120f64,{'method':_0x2bef55(0x4d0),'body':_0x5e321b}))[_0x2bef55(0x322)]();if(typeof _0x49f9b0[_0x2bef55(0x1c9)]!=_0x2bef55(0x3aa))return this[_0x2bef55(0x42b)](),Promise[_0x2bef55(0x1e2)](new Error(ne[_0x2bef55(0x2cf)][_0x2bef55(0x245)]));_0x4b4687=_0x49f9b0[_0x2bef55(0x1c9)];}catch{return this[_0x2bef55(0x42b)](),Promise[_0x2bef55(0x1e2)](new Error(ne[_0x2bef55(0x2cf)][_0x2bef55(0x245)]));}return new Promise((_0x5488e9,_0x3461fd)=>{const _0x40038b=_0x2bef55,_0x30f66e=new FileReader();_0x30f66e[_0x40038b(0x348)](_0xc877ab),_0x30f66e[_0x40038b(0x558)]=_0x3df07b=>{const _0x48813c=_0x40038b;var _0x3aa61d;const _0x54efaa=(_0x3aa61d=_0x3df07b[_0x48813c(0x267)])==null?void 0x0:_0x3aa61d[_0x48813c(0x3b3)];if(_0x54efaa==null){this[_0x48813c(0x42b)](),_0x3461fd(new Error(ne[_0x48813c(0x2cf)]['ERROR_IMAGE']));return;}const _0x2ed576=a[_0x48813c(0x3eb)][_0x48813c(0x3a3)](0x6);_0x5488e9({'imageId':_0x2ed576,'imageSourceType':ne[_0x48813c(0x1b6)]['UUID'],'source':_0x4b4687,'base64Cache':_0x54efaa,'status':ne['ImageUploadStatusType'][_0x48813c(0x48e)]}),this[_0x48813c(0x42b)]();};});}[_0x54516d(0x5a0)](){const _0x1c39f8=_0x54516d;var _0x14b908,_0x3ef68d;const _0x53dac4=this[_0x1c39f8(0x2a3)][_0x1c39f8(0x21d)](Ur),_0x4aed7e=this[_0x1c39f8(0x2a3)][_0x1c39f8(0x21d)](te);return(_0x3ef68d=(_0x14b908=_0x4aed7e==null?void 0x0:_0x4aed7e['uploadFileServerUrl'])!=null?_0x14b908:_0x53dac4)!=null?_0x3ef68d:Mr;}[_0x54516d(0x4cf)](){const _0x566cb6=_0x54516d;var _0x5e9376,_0xd341e;const _0x381430=this[_0x566cb6(0x2a3)][_0x566cb6(0x21d)](Ar),_0x1dd4f8=this['_configService'][_0x566cb6(0x21d)](te);return(_0xd341e=(_0x5e9376=_0x1dd4f8==null?void 0x0:_0x1dd4f8[_0x566cb6(0x546)])!=null?_0x5e9376:_0x381430)!=null?_0xd341e:Nr;}[_0x54516d(0x60b)](){const _0x1f197a=_0x54516d;var _0x5a4305;const _0x49e3b0=this[_0x1f197a(0x2a3)][_0x1f197a(0x21d)](te);return(_0x5a4305=_0x49e3b0==null?void 0x0:_0x49e3b0[_0x1f197a(0x1a4)])!=null?_0x5a4305:location['origin'];}[_0x54516d(0x521)](_0x3bd9ce,_0xc2d7b4){const _0x431096=_0x54516d;return _0x3bd9ce[_0x431096(0x1f6)](_0x431096(0x5f6),_0xc2d7b4);}[_0x54516d(0x42b)](){const _0x16a19b=_0x54516d;this[_0x16a19b(0x582)]-=0x1,this[_0x16a19b(0x503)]['next'](this[_0x16a19b(0x582)]);}},exports['ImageIoService']=Dr([vt(0x0,a[_0x54516d(0x573)](Z[_0x54516d(0x180)])),vt(0x1,a[_0x54516d(0x208)]),vt(0x2,a[_0x54516d(0x573)](a[_0x54516d(0x4e2)]))],exports[_0x54516d(0x293)]);var Lr=Object[_0x54516d(0x461)],xr=Object[_0x54516d(0x363)],jr=(_0x49d3fc,_0x196308,_0x1b6a70,_0x9ae92f)=>{const _0x33c5e6=_0x54516d;for(var _0x3e94d1=_0x9ae92f>0x1?void 0x0:_0x9ae92f?xr(_0x196308,_0x1b6a70):_0x196308,_0x307be4=_0x49d3fc[_0x33c5e6(0x5e8)]-0x1,_0x462d7b;_0x307be4>=0x0;_0x307be4--)(_0x462d7b=_0x49d3fc[_0x307be4])&&(_0x3e94d1=(_0x9ae92f?_0x462d7b(_0x196308,_0x1b6a70,_0x3e94d1):_0x462d7b(_0x3e94d1))||_0x3e94d1);return _0x9ae92f&&_0x3e94d1&&Lr(_0x196308,_0x1b6a70,_0x3e94d1),_0x3e94d1;},Ae=(_0x22a724,_0x589a82)=>(_0x45089f,_0x514399)=>_0x589a82(_0x45089f,_0x514399,_0x22a724);let Ke=class extends a[_0x54516d(0x1d6)]{constructor(_0x39eef3,_0x1c7bc4,_0x4ef2b2,_0x5cccca,_0x2434b0){const _0xa2ee46=_0x54516d;super(),this[_0xa2ee46(0x47c)]=_0x39eef3,this['_univerInstanceService']=_0x1c7bc4,this[_0xa2ee46(0x2ce)]=_0x4ef2b2,this[_0xa2ee46(0x497)]=_0x5cccca,this[_0xa2ee46(0x422)]=_0x2434b0,this[_0xa2ee46(0x1fa)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x40a537=_0x54516d,_0x258649=async _0x3b500a=>{const _0x3476a9=_0xe852;(await this[_0x3476a9(0x497)][_0x3476a9(0x2fd)](_0x3b500a))['event$'][_0x3476a9(0x5f2)](V[_0x3476a9(0x292)](_0x5ea34c=>_0x5ea34c[_0x3476a9(0x4aa)]===S[_0x3476a9(0x5de)][_0x3476a9(0x325)]),V['takeUntil'](this['dispose$']))['subscribe'](_0x168226=>{const _0xbf0c3c=_0x3476a9,_0x455851=_0x168226,{reason:_0x315d41}=_0x455851[_0xbf0c3c(0x547)];this[_0xbf0c3c(0x47c)][_0xbf0c3c(0x3b1)](ee[_0xbf0c3c(0x3ce)])[_0xbf0c3c(0x5e3)]({'type':ge[_0xbf0c3c(0x3a7)][_0xbf0c3c(0x30f)],'content':this['_localeService']['t'](_0xbf0c3c(0x343))+'('+_0x315d41+')'}),this[_0xbf0c3c(0x2ce)][_0xbf0c3c(0x526)](new k[(_0xbf0c3c(0x232))](_0x3b500a)['id'],!0x1),this[_0xbf0c3c(0x497)][_0xbf0c3c(0x51d)](_0x3b500a);});};A[_0x40a537(0x349)](this['_univerInstanceService'][_0x40a537(0x3f1)](a['UniverInstanceType'][_0x40a537(0x299)]),this['_univerInstanceService'][_0x40a537(0x3f1)](a['UniverInstanceType'][_0x40a537(0x60e)]))[_0x40a537(0x5f2)](V['map'](_0x4272c4=>_0x4272c4[_0x40a537(0x2c5)]()),V['filter'](_0x153b57=>!a[_0x40a537(0x4b1)](_0x153b57)),V[_0x40a537(0x42d)](this['dispose$']))['subscribe'](_0x3929f0=>{_0x258649(_0x3929f0);});}[_0x54516d(0x1fa)](){const _0x1d07c4=_0x54516d,_0x4aa380=async _0x4c8111=>{const _0x167d75=_0xe852;(await this[_0x167d75(0x497)][_0x167d75(0x2fd)](_0x4c8111))['event$'][_0x167d75(0x5f2)](V[_0x167d75(0x292)](_0x436b12=>_0x436b12[_0x167d75(0x4aa)]===S['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),V[_0x167d75(0x42d)](this['dispose$']))[_0x167d75(0x4d6)](_0x297d2f=>{const _0x1b38b0=_0x167d75,_0x396618=_0x297d2f,{objectId:_0x16b59a}=_0x396618['data'],_0x163ca3=this[_0x1b38b0(0x47c)]['get'](Re['SheetPermissionInitController']);_0x16b59a===_0x4c8111?_0x163ca3[_0x1b38b0(0x332)](_0x4c8111):_0x163ca3[_0x1b38b0(0x201)](_0x4c8111,_0x16b59a);});};A['merge'](this[_0x1d07c4(0x228)][_0x1d07c4(0x3f1)](a[_0x1d07c4(0x2f2)][_0x1d07c4(0x299)]),this['_univerInstanceService'][_0x1d07c4(0x3f1)](a['UniverInstanceType'][_0x1d07c4(0x60e)]))['pipe'](V['map'](_0x40aaa9=>_0x40aaa9[_0x1d07c4(0x2c5)]()),V['filter'](_0x2de091=>!a[_0x1d07c4(0x4b1)](_0x2de091)),V['takeUntil'](this['dispose$']))['subscribe'](_0x35b8a1=>{_0x4aa380(_0x35b8a1);});}};Ke=jr([Ae(0x0,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),Ae(0x1,a[_0x54516d(0x4e2)]),Ae(0x2,a[_0x54516d(0x369)]),Ae(0x3,a['Inject'](exports[_0x54516d(0x580)])),Ae(0x4,a[_0x54516d(0x573)](a['LocaleService']))],Ke);var $r=Object[_0x54516d(0x461)],Hr=Object[_0x54516d(0x363)],Br=(_0x27a938,_0x2f8e9a,_0xafbcbc,_0x2a1c82)=>{const _0x5068b9=_0x54516d;for(var _0x3a37c7=_0x2a1c82>0x1?void 0x0:_0x2a1c82?Hr(_0x2f8e9a,_0xafbcbc):_0x2f8e9a,_0x3379ac=_0x27a938[_0x5068b9(0x5e8)]-0x1,_0x287b99;_0x3379ac>=0x0;_0x3379ac--)(_0x287b99=_0x27a938[_0x3379ac])&&(_0x3a37c7=(_0x2a1c82?_0x287b99(_0x2f8e9a,_0xafbcbc,_0x3a37c7):_0x287b99(_0x3a37c7))||_0x3a37c7);return _0x2a1c82&&_0x3a37c7&&$r(_0x2f8e9a,_0xafbcbc,_0x3a37c7),_0x3a37c7;},Jt=(_0x584cbc,_0x51ab4f)=>(_0x5abaa2,_0x3c18f3)=>_0x51ab4f(_0x5abaa2,_0x3c18f3,_0x584cbc);exports[_0x54516d(0x43d)]=class{constructor(_0x537f85,_0x598258){this['_configService']=_0x537f85,this['_httpService']=_0x598258;}async['getUnitOnRev'](_0x5e008e,_0x220b5f){const _0xe8a0e8=_0x54516d;var _0x119e20;const {unitID:_0x226a20,type:_0x51a758,revision:_0xcb6f9a=0x0}=_0x220b5f,_0x5a7e95=this[_0xe8a0e8(0x2d1)]()+'/'+_0x51a758+_0xe8a0e8(0x569)+_0x226a20+_0xe8a0e8(0x3a9)+_0xcb6f9a,_0x4e0b44=(await this[_0xe8a0e8(0x248)][_0xe8a0e8(0x3b1)](_0x5a7e95))['body'],_0x3cf39a=(_0x119e20=_0x4e0b44[_0xe8a0e8(0x323)])==null?void 0x0:_0x119e20[_0xe8a0e8(0x523)];if(_0x3cf39a){const _0x26c628=_0x3cf39a==null?void 0x0:_0x3cf39a['originalMeta'],_0x282668=S[_0xe8a0e8(0x1ec)][_0xe8a0e8(0x4be)](S[_0xe8a0e8(0x206)](_0x26c628));_0x3cf39a[_0xe8a0e8(0x60d)]=_0x282668,Object[_0xe8a0e8(0x57e)](_0x3cf39a[_0xe8a0e8(0x491)])[_0xe8a0e8(0x1ba)](([,_0x4e1824])=>{const _0x24ae57=_0xe8a0e8,_0x526947=_0x4e1824[_0x24ae57(0x60d)],_0x287927=S[_0x24ae57(0x1ec)][_0x24ae57(0x4be)](S[_0x24ae57(0x206)](_0x526947));_0x4e1824[_0x24ae57(0x60d)]=_0x287927;});}return _0x4e0b44;}async[_0x54516d(0x5f0)](_0x302f7a,_0x54d81d){const _0xa4870f=_0x54516d,{unitID:_0x4c9766,type:_0x1e7952,blockID:_0x152d14}=_0x54d81d,_0x498075=this['_getAPIPrefix']()+'/'+_0x1e7952+'/unit/'+_0x4c9766+_0xa4870f(0x34a)+_0x152d14;return(await this[_0xa4870f(0x248)][_0xa4870f(0x3b1)](_0x498075))[_0xa4870f(0x4ba)];}async['getDeserializedSheetBlock'](_0x660de2,_0x56d44a){const _0x4200c8=_0x54516d,{unitID:_0x53b83f,type:_0x433fd5,blockID:_0x35bb34}=_0x56d44a,_0x36b341=this[_0x4200c8(0x4e6)]()+'/block/'+_0x433fd5+_0x4200c8(0x569)+_0x53b83f+_0x4200c8(0x34a)+_0x35bb34;return(await this[_0x4200c8(0x248)][_0x4200c8(0x3b1)](_0x36b341))[_0x4200c8(0x4ba)];}async[_0x54516d(0x565)](_0x37e7d7,_0x159253){const _0x16c291=_0x54516d,{unitID:_0x2f8164,type:_0x143e02,from:_0x59ea3e,to:_0xda475}=_0x159253,_0x161c21=this[_0x16c291(0x4e6)]()+'/'+_0x143e02+_0x16c291(0x569)+_0x2f8164+_0x16c291(0x540)+_0x59ea3e+'&to='+_0xda475;return(await this[_0x16c291(0x248)]['get'](_0x161c21))[_0x16c291(0x4ba)];}['_getSnapshotAPIPrefix'](){const _0x1ea4ae=_0x54516d;var _0x3c31ae;return(_0x3c31ae=this[_0x1ea4ae(0x2a3)][_0x1ea4ae(0x21d)](Qt))!=null?_0x3c31ae:this[_0x1ea4ae(0x4e6)]();}[_0x54516d(0x4e6)](){const _0x2e8a7d=_0x54516d;var _0x5ce2bd,_0x2ae316;const _0x44a4c8=this['_configService'][_0x2e8a7d(0x21d)](Zt),_0x5b723f=this['_configService']['getConfig'](te);return(_0x2ae316=(_0x5ce2bd=_0x5b723f==null?void 0x0:_0x5b723f[_0x2e8a7d(0x265)])!=null?_0x5ce2bd:_0x44a4c8)!=null?_0x2ae316:Hn;}async['getResourcesRequest'](_0x1059a9,_0x55a282){const _0x3e46b4=_0x54516d,_0x3684a5='/universer-api/snapshot/'+_0x55a282[_0x3e46b4(0x242)]+_0x3e46b4(0x569)+_0x55a282[_0x3e46b4(0x351)]+_0x3e46b4(0x44a);return(await this[_0x3e46b4(0x248)][_0x3e46b4(0x3b1)](_0x3684a5,{'params':{'resourceId':JSON[_0x3e46b4(0x4c1)](_0x55a282['resourceIDs'])}}))[_0x3e46b4(0x4ba)];}['saveSnapshot'](){const _0x2af567=_0x54516d;throw new Error(_0x2af567(0x61b));}[_0x54516d(0x33e)](){const _0x38ee01=_0x54516d;throw new Error(_0x38ee01(0x61b));}[_0x54516d(0x52d)](){const _0x41ea5f=_0x54516d;throw new Error(_0x41ea5f(0x61b));}[_0x54516d(0x2cd)](){const _0x1459fb=_0x54516d;throw new Error(_0x1459fb(0x61b));}['getLatestCsReqIdBySid'](){const _0x5dbe54=_0x54516d;throw new Error(_0x5dbe54(0x61b));}},exports[_0x54516d(0x43d)]=Br([Jt(0x0,a[_0x54516d(0x208)]),Jt(0x1,a['Inject'](Z['HTTPService']))],exports[_0x54516d(0x43d)]);var kr=Object[_0x54516d(0x461)],Wr=Object[_0x54516d(0x363)],Fr=(_0x495812,_0x2782c7,_0x666e59,_0x164561)=>{const _0xdf7a75=_0x54516d;for(var _0x4418ff=_0x164561>0x1?void 0x0:_0x164561?Wr(_0x2782c7,_0x666e59):_0x2782c7,_0x495bfa=_0x495812[_0xdf7a75(0x5e8)]-0x1,_0x1d9faf;_0x495bfa>=0x0;_0x495bfa--)(_0x1d9faf=_0x495812[_0x495bfa])&&(_0x4418ff=(_0x164561?_0x1d9faf(_0x2782c7,_0x666e59,_0x4418ff):_0x1d9faf(_0x4418ff))||_0x4418ff);return _0x164561&&_0x4418ff&&kr(_0x2782c7,_0x666e59,_0x4418ff),_0x4418ff;},Ne=(_0x56782d,_0x284379)=>(_0x36991b,_0x3bb0c6)=>_0x284379(_0x36991b,_0x3bb0c6,_0x56782d);let It=class extends a[_0x54516d(0x3c2)]{constructor(_0x367bd5,_0x373ade,_0x5c3fdf,_0x54790b,_0x45dc7f){const _0x479fb7=_0x54516d;super(_0x367bd5,_0x373ade,_0x5c3fdf),this[_0x479fb7(0x579)]=_0x54790b,this[_0x479fb7(0x241)]=_0x45dc7f;}[_0x54516d(0x5d5)](_0x684283,_0x277c0d){const _0x3c565e=_0x54516d,_0x4d0895=this[_0x3c565e(0x3ab)](_0x684283);if(_0x4d0895)try{const _0xdf694b=this['_transformStack'](_0x4d0895,_0x277c0d);this[_0x3c565e(0x585)](_0x684283,_0xdf694b);}catch(_0x3e38f6){this[_0x3c565e(0x241)]['error']('[CollaborationUndoRedoService]',_0x3e38f6),this[_0x3c565e(0x307)](_0x684283);}const _0x46bdf0=this[_0x3c565e(0x3b2)](_0x684283);if(_0x46bdf0)try{const _0x2a19a3=this[_0x3c565e(0x21b)](_0x46bdf0,_0x277c0d);this[_0x3c565e(0x550)](_0x684283,_0x2a19a3);}catch(_0x1fc0c0){this[_0x3c565e(0x241)][_0x3c565e(0x29f)](_0x1fc0c0),this[_0x3c565e(0x381)](_0x684283);}}['_clearUndo'](_0x12a67f){const _0x315d4d=_0x54516d,_0x260f1b=this[_0x315d4d(0x3ab)](_0x12a67f);_0x260f1b&&(_0x260f1b['length']=0x0,this[_0x315d4d(0x566)]());}['_clearRedo'](_0x148064){const _0x34381f=_0x54516d,_0x152d96=this[_0x34381f(0x3b2)](_0x148064);_0x152d96&&(_0x152d96[_0x34381f(0x5e8)]=0x0,this[_0x34381f(0x566)]());}['_substituteUndoStack'](_0x4b52f3,_0x1a9f8e){const _0x573519=_0x54516d;this['_undoStacks'][_0x573519(0x36d)](_0x4b52f3,_0x1a9f8e),this[_0x573519(0x566)]();}[_0x54516d(0x550)](_0x3378b4,_0x328854){const _0x20e3a6=_0x54516d;this['_redoStacks']['set'](_0x3378b4,_0x328854),this[_0x20e3a6(0x566)]();}[_0x54516d(0x21b)](_0x181d6e,_0x12105c){const _0x32955a=_0x54516d,_0x42ec7e=[];let _0x32f9a3=_0x12105c,_0x59f6b7=_0x12105c;for(let _0x282b6f=_0x181d6e['length']-0x1;_0x282b6f>=0x0;_0x282b6f--){const {unitID:_0x361c6a,undoMutations:_0x4005cd,redoMutations:_0x39c235}=_0x181d6e[_0x282b6f],_0x247771=this['_transformService'][_0x32955a(0x1cd)](_0x32f9a3,_0x4005cd),_0x45fc98=this[_0x32955a(0x579)][_0x32955a(0x1cd)](_0x59f6b7,_0x39c235);if(S['isTransformMutationsWithChangesetFailure'](_0x247771)||S[_0x32955a(0x2e3)](_0x45fc98)){this[_0x32955a(0x241)]['error'](_0x32955a(0x207),_0x32955a(0x2f9),_0x247771,_0x45fc98);break;}_0x32f9a3=_0x247771[_0x32955a(0x4ef)],_0x59f6b7=_0x45fc98[_0x32955a(0x4ef)],_0x42ec7e[_0x32955a(0x26e)]({'unitID':_0x361c6a,'undoMutations':_0x247771[_0x32955a(0x46b)],'redoMutations':_0x45fc98[_0x32955a(0x46b)]});}return _0x42ec7e['reverse']();}};It=Fr([Ne(0x0,a['IUniverInstanceService']),Ne(0x1,a[_0x54516d(0x18a)]),Ne(0x2,a[_0x54516d(0x5ba)]),Ne(0x3,S[_0x54516d(0x5bd)]),Ne(0x4,a['ILogService'])],It);class An extends a[_0x54516d(0x1d6)]{constructor(){const _0x293b88=_0x54516d;super(),I(this,'urlChange$'),this[_0x293b88(0x20a)]=A[_0x293b88(0x362)](window,_0x293b88(0x3be))[_0x293b88(0x5f2)](A[_0x293b88(0x42d)](this[_0x293b88(0x610)]),A[_0x293b88(0x40d)](0x1),A[_0x293b88(0x1d0)](void 0x0));}[_0x54516d(0x17e)](_0x2b095e,_0x509ae9,_0x573b60=!0x1){const _0x697b9a=_0x54516d,_0x2339ba=new URL(window[_0x697b9a(0x2da)][_0x697b9a(0x56d)]);_0x2339ba['searchParams'][_0x697b9a(0x36d)](_0x2b095e,_0x509ae9),_0x573b60?window[_0x697b9a(0x225)][_0x697b9a(0x2bb)]('','',_0x2339ba[_0x697b9a(0x481)]()):window[_0x697b9a(0x225)][_0x697b9a(0x320)]('','',_0x2339ba[_0x697b9a(0x481)]());}[_0x54516d(0x5b1)](_0x11a108,_0x4d7d05=!0x1){const _0x55e410=_0x54516d,_0xb0e7de=new URL(window[_0x55e410(0x2da)][_0x55e410(0x56d)]);_0xb0e7de['searchParams'][_0x55e410(0x1c4)](_0x11a108),_0x4d7d05?window['history']['replaceState']('','',_0xb0e7de[_0x55e410(0x481)]()):window['history'][_0x55e410(0x320)]('','',_0xb0e7de[_0x55e410(0x481)]());}[_0x54516d(0x479)](_0xb753ab){const _0x5ce790=_0x54516d;var _0x23aead;return(_0x23aead=new URL(window[_0x5ce790(0x2da)][_0x5ce790(0x56d)])[_0x5ce790(0x2b4)][_0x5ce790(0x3b1)](_0xb753ab))!=null?_0x23aead:void 0x0;}}var Nn=Object[_0x54516d(0x461)],Vr=Object['getOwnPropertyDescriptor'],Gr=(_0x3db4a1,_0x5723c9,_0x5b2c37)=>_0x5723c9 in _0x3db4a1?Nn(_0x3db4a1,_0x5723c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2c37}):_0x3db4a1[_0x5723c9]=_0x5b2c37,Yr=(_0x335b16,_0x40a5d3,_0x1f90e2,_0x37caed)=>{const _0x54009d=_0x54516d;for(var _0x467048=_0x37caed>0x1?void 0x0:_0x37caed?Vr(_0x40a5d3,_0x1f90e2):_0x40a5d3,_0x2ec476=_0x335b16[_0x54009d(0x5e8)]-0x1,_0x31e024;_0x2ec476>=0x0;_0x2ec476--)(_0x31e024=_0x335b16[_0x2ec476])&&(_0x467048=(_0x37caed?_0x31e024(_0x40a5d3,_0x1f90e2,_0x467048):_0x31e024(_0x467048))||_0x467048);return _0x37caed&&_0x467048&&Nn(_0x40a5d3,_0x1f90e2,_0x467048),_0x467048;},He=(_0x38c4c2,_0xfd0f68)=>(_0x1bd941,_0x1aa550)=>_0xfd0f68(_0x1bd941,_0x1aa550,_0x38c4c2),Kr=(_0x273ffc,_0x6f0047,_0x78c0a6)=>Gr(_0x273ffc,_0x6f0047+'',_0x78c0a6);const qr=_0x54516d(0x1e3);exports['UniverCollaborationClientPlugin']=class extends a[_0x54516d(0x424)]{constructor(_0x557108=zn,_0x374711,_0x13fb1c,_0x4b06f5,_0x4ccf68){const _0x34d04a=_0x54516d;super(),this['_config']=_0x557108,this[_0x34d04a(0x241)]=_0x374711,this['_renderManagerService']=_0x13fb1c,this[_0x34d04a(0x47c)]=_0x4b06f5,this[_0x34d04a(0x2a3)]=_0x4ccf68;const {..._0x3f87e1}=this[_0x34d04a(0x170)];this[_0x34d04a(0x2a3)]['setConfig'](te,_0x3f87e1);}[_0x54516d(0x48c)](){const _0xe02e95=_0x54516d;this[_0xe02e95(0x609)](),this['_initDependencies']();}['onReady'](){a['touchDependencies'](this['_injector'],[[Ve]]);}[_0x54516d(0x506)](){this['_registerRenderDependencies']();}[_0x54516d(0x609)](){const _0x40569d=_0x54516d;var _0x43f863,_0x48636a,_0x37d632,_0x5e7cdc;this[_0x40569d(0x47c)][_0x40569d(0x468)](a[_0x40569d(0x5b9)])&&this[_0x40569d(0x241)][_0x40569d(0x29f)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x111f1e=[[a['IUndoRedoService'],{'useClass':It}],[exports['CollaborationSessionService']],[Ot],[wt,{'useClass':An}],[exports[_0x40569d(0x3a8)]],[exports[_0x40569d(0x5ef)]],[Z[_0x40569d(0x431)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0x48636a=(_0x43f863=this['_config'])==null?void 0x0:_0x43f863['socketService'])!=null?_0x48636a:exports[_0x40569d(0x418)]}],[S[_0x40569d(0x4e0)],{'useClass':exports[_0x40569d(0x43d)]}],[a[_0x40569d(0x5e4)],{'useClass':exports['AuthzIoHttpService']}],[ne[_0x40569d(0x25c)],{'useClass':exports['ImageIoService']}],[exports[_0x40569d(0x19c)]],[exports[_0x40569d(0x54d)]],[exports[_0x40569d(0x36e)]],[Ve],[De]];(_0x37d632=this['_config'])!=null&&_0x37d632[_0x40569d(0x5a3)]&&_0x111f1e[_0x40569d(0x26e)]([qe,{'useClass':Oi}]),a[_0x40569d(0x3f6)](this[_0x40569d(0x47c)],a[_0x40569d(0x24a)](_0x111f1e,(_0x5e7cdc=this['_config'])==null?void 0x0:_0x5e7cdc[_0x40569d(0x1b0)]));}[_0x54516d(0x459)](){const _0x48e8bc=_0x54516d;this[_0x48e8bc(0x55b)](this[_0x48e8bc(0x250)][_0x48e8bc(0x4a0)](a[_0x48e8bc(0x2f2)]['UNIVER_DOC'],[pt])),this[_0x48e8bc(0x55b)](this['_renderManagerService'][_0x48e8bc(0x4a0)](a[_0x48e8bc(0x2f2)][_0x48e8bc(0x299)],[gt]));}[_0x54516d(0x2c3)](){const _0x5888fa=_0x54516d;var _0x90afa5,_0x59c1f1;this[_0x5888fa(0x47c)]['get'](Z['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Z[_0x5888fa(0x4d7)]({'maxParallel':0x6})}),(_0x90afa5=this['_config'])!=null&&_0x90afa5[_0x5888fa(0x3b8)]||this['_injector']['get'](exports[_0x5888fa(0x5ef)])['disableLocalCache'](),(_0x59c1f1=this[_0x5888fa(0x170)])!=null&&_0x59c1f1['enableAuthServer']&&a[_0x5888fa(0x2b3)](this[_0x5888fa(0x47c)],[[Ge]]),a[_0x5888fa(0x2b3)](this['_injector'],[[Ye],[De],[exports['DataLoaderController']],[exports[_0x5888fa(0x19c)]],[exports[_0x5888fa(0x36e)]],[Ke]]);}},Kr(exports[_0x54516d(0x4f3)],'pluginName',qr),exports[_0x54516d(0x4f3)]=Yr([a[_0x54516d(0x205)](S[_0x54516d(0x570)],Z[_0x54516d(0x47e)]),He(0x1,a['ILogService']),He(0x2,K[_0x54516d(0x387)]),He(0x3,a[_0x54516d(0x573)](a[_0x54516d(0x33a)])),He(0x4,a[_0x54516d(0x208)])],exports[_0x54516d(0x4f3)]),exports[_0x54516d(0x4dc)]=Rn,exports[_0x54516d(0x1aa)]=on,exports['COLLAB_WEB_SOCKET_URL_KEY']=en,exports[_0x54516d(0x280)]=q,exports[_0x54516d(0x5be)]=Tn,exports[_0x54516d(0x173)]=Tt,exports[_0x54516d(0x357)]=tn,exports[_0x54516d(0x4b5)]=Ct,exports['ICollaborationSocketService']=bt,exports[_0x54516d(0x5f8)]=wt,exports[_0x54516d(0x5ee)]=rn,exports[_0x54516d(0x482)]=an,exports[_0x54516d(0x37f)]=sn,exports[_0x54516d(0x21a)]=Bn,exports['SNAPSHOT_SERVER_URL_KEY']=Zt,exports[_0x54516d(0x184)]=Qt,exports['SessionStatus']=se,exports['SheetCollabCursorShape']=Sn,exports[_0x54516d(0x2be)]=An,exports['deserializeToCombResponse']=hn,exports[_0x54516d(0x183)]=_n;
1
+ 'use strict';const _0x3b224c=_0x1276;(function(_0x3f645f,_0x69881d){const _0x1b9ed9=_0x1276,_0x57d6e1=_0x3f645f();while(!![]){try{const _0x19bdf2=-parseInt(_0x1b9ed9(0x20a))/0x1*(parseInt(_0x1b9ed9(0x375))/0x2)+parseInt(_0x1b9ed9(0x352))/0x3*(-parseInt(_0x1b9ed9(0x456))/0x4)+parseInt(_0x1b9ed9(0x413))/0x5*(-parseInt(_0x1b9ed9(0x362))/0x6)+-parseInt(_0x1b9ed9(0x427))/0x7+-parseInt(_0x1b9ed9(0x37a))/0x8+-parseInt(_0x1b9ed9(0x59f))/0x9*(parseInt(_0x1b9ed9(0x1dc))/0xa)+parseInt(_0x1b9ed9(0x268))/0xb;if(_0x19bdf2===_0x69881d)break;else _0x57d6e1['push'](_0x57d6e1['shift']());}catch(_0x581676){_0x57d6e1['push'](_0x57d6e1['shift']());}}}(_0xce47,0x4e711));function _0x1276(_0x59fd45,_0x131081){const _0xce47ad=_0xce47();return _0x1276=function(_0x12768c,_0x2a11aa){_0x12768c=_0x12768c-0x12f;let _0x132026=_0xce47ad[_0x12768c];return _0x132026;},_0x1276(_0x59fd45,_0x131081);}var Ln=Object[_0x3b224c(0x209)],xn=(_0x34ad38,_0x1032c1,_0x30f068)=>_0x1032c1 in _0x34ad38?Ln(_0x34ad38,_0x1032c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f068}):_0x34ad38[_0x1032c1]=_0x30f068,I=(_0xa14455,_0x485542,_0x17d537)=>xn(_0xa14455,typeof _0x485542!=_0x3b224c(0x3d2)?_0x485542+'':_0x485542,_0x17d537);Object[_0x3b224c(0x209)](exports,Symbol['toStringTag'],{'value':_0x3b224c(0x186)});const a=require(_0x3b224c(0x245)),A=require(_0x3b224c(0x3f7)),V=require(_0x3b224c(0x322)),ge=require(_0x3b224c(0x282)),ee=require('@univerjs/ui'),Z=require(_0x3b224c(0x385)),S=require(_0x3b224c(0x5e3)),jn=require(_0x3b224c(0x5cc)),J=require('@univerjs/docs-ui'),k=require(_0x3b224c(0x459)),K=require('@univerjs/engine-render'),ye=require(_0x3b224c(0x4f5)),ne=require(_0x3b224c(0x19e)),Pt=require(_0x3b224c(0x433)),Re=require(_0x3b224c(0x260)),ae=require('react'),$n=require(_0x3b224c(0x173)),Zt=_0x3b224c(0x4c1),Hn=_0x3b224c(0x447),Qt='SNAPSHOT_URL_KEY',Bn=_0x3b224c(0x573),kn=0x7d0,en='COLLAB_WEB_SOCKET_URL',Wn=_0x3b224c(0x36f),tn='HEARTBEAT_INTERVAL',Fn=0x7530,Ct=_0x3b224c(0x2c9),nn=0x4e20,Vn=0x4e20,sn=_0x3b224c(0x414),Gn=0x3,rn=_0x3b224c(0x29c),Yn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',Kn='/universer-api/comb',an=_0x3b224c(0x462),qn='/universer-api/oidc/authpage';var cn=(_0x55dfd2=>(_0x55dfd2[_0x55dfd2[_0x3b224c(0x312)]=0x0]=_0x3b224c(0x312),_0x55dfd2[_0x55dfd2['OK']=0x1]='OK',_0x55dfd2[_0x55dfd2[_0x3b224c(0x579)]=0x2]=_0x3b224c(0x579),_0x55dfd2[_0x55dfd2['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x55dfd2[_0x55dfd2['NOT_FOUND']=0x4]=_0x3b224c(0x1f1),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3a8)]=0x5]=_0x3b224c(0x3a8),_0x55dfd2[_0x55dfd2[_0x3b224c(0x494)]=0x6]='ALREADY_EXISTS',_0x55dfd2[_0x55dfd2['INVALID_ARGUMENT']=0x7]=_0x3b224c(0x392),_0x55dfd2[_0x55dfd2[_0x3b224c(0x431)]=0x8]=_0x3b224c(0x431),_0x55dfd2[_0x55dfd2[_0x3b224c(0x488)]=0x9]=_0x3b224c(0x488),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5b3)]=0x1389]=_0x3b224c(0x5b3),_0x55dfd2[_0x55dfd2['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b224c(0x14a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x33a)]=0x1772]=_0x3b224c(0x33a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5a9)]=0x1773]=_0x3b224c(0x5a9),_0x55dfd2[_0x55dfd2[_0x3b224c(0x4f4)]=0x1b59]=_0x3b224c(0x4f4),_0x55dfd2[_0x55dfd2[_0x3b224c(0x48a)]=0x1b5a]=_0x3b224c(0x48a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x53a)]=0x1b5b]=_0x3b224c(0x53a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x170)]=0x1b5c]=_0x3b224c(0x170),_0x55dfd2[_0x55dfd2[_0x3b224c(0x37e)]=0x1b5d]='APPLY_DUPLICATED',_0x55dfd2[_0x55dfd2[_0x3b224c(0x1ac)]=0x1f41]=_0x3b224c(0x1ac),_0x55dfd2[_0x55dfd2[_0x3b224c(0x13d)]=0x2329]=_0x3b224c(0x13d),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5da)]=0x232a]=_0x3b224c(0x5da),_0x55dfd2[_0x55dfd2[_0x3b224c(0x174)]=0x232b]=_0x3b224c(0x174),_0x55dfd2[_0x55dfd2['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3b224c(0x132),_0x55dfd2[_0x55dfd2[_0x3b224c(0x583)]=0x232d]=_0x3b224c(0x583),_0x55dfd2[_0x55dfd2[_0x3b224c(0x2a4)]=0x2711]=_0x3b224c(0x2a4),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3fc)]=0x2712]=_0x3b224c(0x3fc),_0x55dfd2[_0x55dfd2[_0x3b224c(0x1d8)]=0x2713]=_0x3b224c(0x1d8),_0x55dfd2[_0x55dfd2[_0x3b224c(0x438)]=0x2714]=_0x3b224c(0x438),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x55dfd2))(cn||{}),ie=(_0x407cfe=>(_0x407cfe[_0x407cfe[_0x3b224c(0x373)]=0x0]=_0x3b224c(0x373),_0x407cfe[_0x407cfe['UNIVER_DOC']=0x1]=_0x3b224c(0x508),_0x407cfe[_0x407cfe[_0x3b224c(0x460)]=0x2]=_0x3b224c(0x460),_0x407cfe[_0x407cfe[_0x3b224c(0x4b3)]=0x3]=_0x3b224c(0x4b3),_0x407cfe[_0x407cfe[_0x3b224c(0x31a)]=0x4]='UNIVER_PROJECT',_0x407cfe[_0x407cfe['UNRECOGNIZED']=-0x1]=_0x3b224c(0x3b4),_0x407cfe))(ie||{}),G=(_0x3fc5b8=>(_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x2bf)]=0x0]='UNKNOWN_CMD',_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x1a3)]=0x1]=_0x3b224c(0x1a3),_0x3fc5b8[_0x3fc5b8['JOIN']=0x2]=_0x3b224c(0x1bc),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x582)]=0x3]=_0x3b224c(0x582),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x20f)]=0x4]=_0x3b224c(0x20f),_0x3fc5b8[_0x3fc5b8['HEARTBEAT']=0x5]='HEARTBEAT',_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x4d8)]=0x6]=_0x3b224c(0x4d8),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x3fc5b8))(G||{}),Et=(_0x508653=>(_0x508653[_0x508653['UNKNOWN_CODE']=0x0]=_0x3b224c(0x545),_0x508653[_0x508653['OK']=0x1]='OK',_0x508653[_0x508653[_0x3b224c(0x2f3)]=0x2]='FAIL',_0x508653[_0x508653['UNRECOGNIZED']=-0x1]=_0x3b224c(0x3b4),_0x508653))(Et||{}),ln=(_0x28068a=>(_0x28068a[_0x28068a[_0x3b224c(0x4ad)]=0x0]=_0x3b224c(0x4ad),_0x28068a[_0x28068a[_0x3b224c(0x5ca)]=0x1]=_0x3b224c(0x5ca),_0x28068a[_0x28068a[_0x3b224c(0x152)]=0x2]=_0x3b224c(0x152),_0x28068a[_0x28068a[_0x3b224c(0x2a5)]=0x3]=_0x3b224c(0x2a5),_0x28068a[_0x28068a[_0x3b224c(0x587)]=0x4]=_0x3b224c(0x587),_0x28068a[_0x28068a[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x28068a))(ln||{});const te=_0x3b224c(0x3f3),zn={};function hn(_0x53a563){const _0x5882c7=_0x3b224c;var _0x705e9f,_0x203656,_0x8feb63,_0x48b4f1,_0x1f972c;const _0x36673b=_0x53a563[_0x5882c7(0x34e)],_0x372f9f=JSON[_0x5882c7(0x3d3)](_0x36673b);switch(_0x372f9f[_0x5882c7(0x21d)]){case G['HEARTBEAT']:case G['HELLO']:{const _0x203a2d=_0x372f9f[_0x5882c7(0x227)];return{..._0x372f9f,'data':_0x203a2d,'cmd':_0x372f9f['cmd']};}case G['JOIN']:{const _0x929f80=_0x372f9f[_0x5882c7(0x50e)];return{..._0x372f9f,'data':_0x929f80,'cmd':_0x372f9f[_0x5882c7(0x21d)]};}case G[_0x5882c7(0x4d8)]:{const _0x110d58=_0x372f9f[_0x5882c7(0x2bc)];switch(_0x110d58[_0x5882c7(0x4a9)]){case S[_0x5882c7(0x136)][_0x5882c7(0x4fc)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x705e9f=_0x110d58['permissionRejEvent'])==null?void 0x0:_0x705e9f['cs']},'cmd':_0x372f9f['cmd']};case S['CollaborationEvent'][_0x5882c7(0x35e)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x203656=_0x110d58[_0x5882c7(0x5bd)])==null?void 0x0:_0x203656['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x48f)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x8feb63=_0x110d58[_0x5882c7(0x211)])==null?void 0x0:_0x8feb63['cs']},'cmd':_0x372f9f['cmd']};case S[_0x5882c7(0x136)]['CHANGESET_REJ']:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x48b4f1=_0x110d58['csRejEvent'])==null?void 0x0:_0x48b4f1['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x26a)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x1f972c=_0x110d58[_0x5882c7(0x453)])==null?void 0x0:_0x1f972c['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x182)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x2d1)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)]['USERS_ENTER']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['joinEvent']},'cmd':_0x372f9f['cmd']};case S[_0x5882c7(0x136)][_0x5882c7(0x502)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['leaveEvent']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)]['LIVESHARE_NEW_HOST']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x4c0)]},'cmd':_0x372f9f['cmd']};case S['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case S[_0x5882c7(0x136)]['LIVESHARE_OPERATION']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x21e)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x38e)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['liveShareNewHost']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x1d1)]:return{..._0x372f9f,'data':_0x110d58,'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x2c1)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x40f)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x31c)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x5d0)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x4e7)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x528)]},'cmd':_0x372f9f['cmd']};default:return _0x372f9f;}}default:return _0x372f9f;}}function _n(_0x2883ce){const _0x1dcb47=_0x3b224c;switch(_0x2883ce['cmd']){case G[_0x1dcb47(0x2e7)]:case G[_0x1dcb47(0x1a3)]:return JSON['stringify']({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce[_0x1dcb47(0x2e9)]});case G[_0x1dcb47(0x20f)]:{let _0x100790;switch(_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x4a9)]){case S['CollaborationEvent'][_0x1dcb47(0x182)]:{_0x100790={'eventID':S['CollaborationEvent'][_0x1dcb47(0x182)],'updateCursorEvent':_0x2883ce['data'][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x502)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)]['USERS_LEAVE'],'leaveEvent':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S['CollaborationEvent']['USERS_ENTER']:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x31b)],'joinEvent':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S['CollaborationEvent'][_0x1dcb47(0x27c)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x1b9)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x1b9)],'liveShareOperation':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x38e)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x38e)],'liveShareTerminate':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)]['LIVESHARE_REQUEST_HOST']:{_0x100790={'eventID':S['CollaborationEvent'][_0x1dcb47(0x2ca)],'liveShareRequestHost':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x2e4)]:{_0x100790={'eventID':S['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x100790={'eventID':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x4a9)]};}return JSON['stringify']({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce[_0x1dcb47(0x2e9)],'collaMsg':_0x100790});}case G[_0x1dcb47(0x1bc)]:return JSON[_0x1dcb47(0x52a)]({'cmd':_0x2883ce['cmd'],'routeKey':_0x2883ce['routeKey'],'joinReq':_0x2883ce[_0x1dcb47(0x34e)]});case G[_0x1dcb47(0x582)]:return JSON[_0x1dcb47(0x52a)]({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce['routeKey'],'leaveReq':_0x2883ce[_0x1dcb47(0x34e)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Xn=Object[_0x3b224c(0x209)],Jn=Object[_0x3b224c(0x233)],Zn=(_0x5ba0ce,_0x4c0b9d,_0x2e5307,_0x4fca36)=>{const _0x1045a7=_0x3b224c;for(var _0x518a95=_0x4fca36>0x1?void 0x0:_0x4fca36?Jn(_0x4c0b9d,_0x2e5307):_0x4c0b9d,_0x3ff886=_0x5ba0ce[_0x1045a7(0x2a8)]-0x1,_0xe0d121;_0x3ff886>=0x0;_0x3ff886--)(_0xe0d121=_0x5ba0ce[_0x3ff886])&&(_0x518a95=(_0x4fca36?_0xe0d121(_0x4c0b9d,_0x2e5307,_0x518a95):_0xe0d121(_0x518a95))||_0x518a95);return _0x4fca36&&_0x518a95&&Xn(_0x4c0b9d,_0x2e5307,_0x518a95),_0x518a95;},we=(_0x541a90,_0x105ea7)=>(_0xbbb00,_0x3de894)=>_0x105ea7(_0xbbb00,_0x3de894,_0x541a90);const bt=a[_0x3b224c(0x2da)](_0x3b224c(0x497));function Qn(_0x1d8667,_0x584594,_0x57e72c){const _0x54befa=_0x3b224c;return _0x1d8667+'/'+_0x584594+_0x54befa(0x4b1)+_0x57e72c+_0x54befa(0x4be);}exports[_0x3b224c(0x446)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x4ae66e,_0x39e3f7,_0x293707,_0x15c287,_0x1bbdfa){const _0x12b324=_0x3b224c;super(),this[_0x12b324(0x3a6)]=_0x4ae66e,this['_ws']=_0x39e3f7,this[_0x12b324(0x142)]=_0x293707,this[_0x12b324(0x13a)]=_0x15c287,this[_0x12b324(0x56e)]=_0x1bbdfa;}[_0x3b224c(0x235)](_0x189485){const _0x1694d7=_0x3b224c,_0x1052ff=this[_0x1694d7(0x510)][_0x1694d7(0x235)](_0x189485);if(!_0x1052ff)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x70bd86=new a[(_0x1694d7(0x194))](),_0x230523=new A['Subject']();_0x70bd86[_0x1694d7(0x594)](_0x1052ff[_0x1694d7(0x1bf)][_0x1694d7(0x2de)](_0x48c17e=>_0x230523[_0x1694d7(0x1e1)](_0x48c17e))),_0x70bd86[_0x1694d7(0x594)](a['toDisposable'](()=>_0x230523['complete']()));const _0x4b17cc=new A[(_0x1694d7(0x13f))]();_0x70bd86[_0x1694d7(0x594)](_0x1052ff['error$'][_0x1694d7(0x2de)](_0x46d5f9=>_0x4b17cc[_0x1694d7(0x1e1)](_0x46d5f9))),_0x70bd86['add'](a[_0x1694d7(0x597)](()=>_0x4b17cc[_0x1694d7(0x163)]()));const _0x438fef=new A['Subject']();_0x70bd86['add'](_0x1052ff[_0x1694d7(0x4c6)][_0x1694d7(0x2de)](_0xccadc8=>{const _0x12c6a2=_0x1694d7,_0x44dc88=hn(_0xccadc8);_0x438fef[_0x12c6a2(0x1e1)](_0x44dc88);})),_0x70bd86['add'](a[_0x1694d7(0x597)](()=>_0x438fef[_0x1694d7(0x163)]()));let _0x32aa13;const _0x26b020=()=>{const _0x2ff069=_0x1694d7;_0x4b17cc[_0x2ff069(0x1e1)](new Event(_0x2ff069(0x25b))),_0x230523[_0x2ff069(0x1e1)](new CloseEvent(_0x2ff069(0x25b))),_0x32aa13[_0x2ff069(0x1b3)]();};return _0x32aa13={'memberID':'','close$':_0x230523[_0x1694d7(0x4f7)](),'error$':_0x4b17cc[_0x1694d7(0x4f7)](),'open$':_0x1052ff[_0x1694d7(0x288)],'message$':_0x438fef[_0x1694d7(0x4f7)](),'send':_0x2ca2e2=>{const _0x56d536=_0x1694d7;if(_0x2ca2e2[_0x56d536(0x21d)]===G[_0x56d536(0x20f)]){if(_0x2ca2e2[_0x56d536(0x34e)][_0x56d536(0x4a9)]===S[_0x56d536(0x136)][_0x56d536(0x2df)]){this[_0x56d536(0x565)](_0x32aa13,_0x2ca2e2[_0x56d536(0x34e)])[_0x56d536(0x1f4)](_0x5555fb=>{const _0x461db6=_0x56d536;this[_0x461db6(0x13a)][_0x461db6(0x423)](_0x5555fb),_0x26b020();});return;}if(_0x2ca2e2['data'][_0x56d536(0x4a9)]===S[_0x56d536(0x136)]['FETCH_MISSING']){const _0x5d05c8=_0x2ca2e2[_0x56d536(0x34e)];this[_0x56d536(0x441)](_0x5d05c8)[_0x56d536(0x55b)](_0x587e73=>{const _0x21c9e9=_0x56d536;_0x438fef[_0x21c9e9(0x1e1)]({'cmd':G[_0x21c9e9(0x4d8)],'code':Et['OK'],'routeKey':_0x5d05c8['data']['unitID'],'routeType':'','data':{'eventID':S[_0x21c9e9(0x136)][_0x21c9e9(0x50a)],'data':{'changesets':_0x587e73}}});})[_0x56d536(0x1f4)](_0x98046f=>{const _0x227292=_0x56d536;this[_0x227292(0x13a)]['error'](_0x98046f),_0x26b020();});return;}}_0x1052ff[_0x56d536(0x50d)](_n(_0x2ca2e2));},'close':()=>{const _0x584327=_0x1694d7;_0x1052ff[_0x584327(0x1b3)](),_0x70bd86[_0x584327(0x2fa)]();}},_0x32aa13;}async['_submitChangeset'](_0x514a6a,_0x4098d1){const _0x11f8d1=_0x3b224c;var _0xa86b8d,_0x2d85df;const {unitType:_0x2b3bd5,unitID:_0x8f5539,changeset:_0x40dfe9}=_0x4098d1['data'],_0x3c9b62={'unitID':_0x8f5539,'memberID':_0x514a6a[_0x11f8d1(0x5ba)],'type':_0x2b3bd5,'changeset':S[_0x11f8d1(0x3a1)](_0x40dfe9)},_0xd1ebf4=this['_configService'][_0x11f8d1(0x469)](on),_0x535a24=this[_0x11f8d1(0x142)][_0x11f8d1(0x469)](te),_0x28acc4=Qn((_0x2d85df=(_0xa86b8d=_0x535a24==null?void 0x0:_0x535a24[_0x11f8d1(0x269)])!=null?_0xa86b8d:_0xd1ebf4)!=null?_0x2d85df:Kn,_0x2b3bd5,_0x8f5539);try{await this[_0x11f8d1(0x3a6)][_0x11f8d1(0x192)](_0x28acc4,{'body':_0x3c9b62});}catch(_0x34c927){throw this[_0x11f8d1(0x13a)]['error'](_0x11f8d1(0x199),'submit\x20changeset\x20error!'),_0x34c927;}}async['_fetchMissChangesets'](_0x49b862){const _0x11cab5=_0x3b224c,{unitID:_0x46fe50,from:_0x31f95f,to:_0x440f5c,unitType:_0x3db4f6}=_0x49b862[_0x11cab5(0x34e)];return(await this[_0x11cab5(0x56e)][_0x11cab5(0x523)]({'metadata':void 0x0},{'unitID':_0x46fe50,'type':_0x3db4f6,'from':_0x31f95f,'to':_0x440f5c}))['changesets'];}},exports[_0x3b224c(0x446)]=Zn([we(0x0,a[_0x3b224c(0x556)](Z['HTTPService'])),we(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x350)])),we(0x2,a[_0x3b224c(0x160)]),we(0x3,a[_0x3b224c(0x5ae)]),we(0x4,S['ISnapshotServerService'])],exports[_0x3b224c(0x446)]);const ei=_0x3b224c(0x3d0);function ti(_0x1ea1d2){const _0x8d0cec=_0x3b224c;return JSON[_0x8d0cec(0x52a)](_0x1ea1d2)['length'];}class Tt{constructor(){const _0x156ebd=_0x3b224c;I(this,_0x156ebd(0x55a),new A[(_0x156ebd(0x13f))]()),I(this,_0x156ebd(0x17d),this[_0x156ebd(0x55a)]['asObservable']());}[_0x3b224c(0x238)](_0x5db99a){const _0x675e02=_0x3b224c;this[_0x675e02(0x55a)]['next'](_0x5db99a);}}var ni=Object[_0x3b224c(0x209)],ii=Object[_0x3b224c(0x233)],si=(_0x475405,_0x3680f5,_0x3dc566,_0x2750b1)=>{const _0x420f99=_0x3b224c;for(var _0x3723f5=_0x2750b1>0x1?void 0x0:_0x2750b1?ii(_0x3680f5,_0x3dc566):_0x3680f5,_0x5a5802=_0x475405[_0x420f99(0x2a8)]-0x1,_0x178cc1;_0x5a5802>=0x0;_0x5a5802--)(_0x178cc1=_0x475405[_0x5a5802])&&(_0x3723f5=(_0x2750b1?_0x178cc1(_0x3680f5,_0x3dc566,_0x3723f5):_0x178cc1(_0x3723f5))||_0x3723f5);return _0x2750b1&&_0x3723f5&&ni(_0x3680f5,_0x3dc566,_0x3723f5),_0x3723f5;},Ut=(_0x786b77,_0x51f824)=>(_0x3ca4f,_0xad8e21)=>_0x51f824(_0x3ca4f,_0xad8e21,_0x786b77);exports[_0x3b224c(0x5db)]=class extends a['Disposable']{constructor(_0x561f5a,_0x351230){const _0x53044f=_0x3b224c;super(),I(this,'_roomMembers',new Map()),(this[_0x53044f(0x15e)]=_0x561f5a,this['_userManagerService']=_0x351230,this[_0x53044f(0x220)](a[_0x53044f(0x597)](A[_0x53044f(0x3d6)](this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)]['UNIVER_SHEET'])['pipe'](V[_0x53044f(0x283)](_0x3798cb=>_0x3798cb[_0x53044f(0x22d)]())),this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)][_0x53044f(0x508)])['pipe'](V['map'](_0x3b5439=>_0x3b5439['getUnitId']())),this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)][_0x53044f(0x4b3)])[_0x53044f(0x3cc)](V[_0x53044f(0x283)](_0x1bbd5c=>_0x1bbd5c[_0x53044f(0x22d)]())))[_0x53044f(0x2de)](_0x153cad=>this[_0x53044f(0x41a)](_0x153cad)))));}[_0x3b224c(0x27a)](_0x37bbfa){this['_userManagerService']['setCurrentUser'](_0x37bbfa);}['getCurrentUser'](){const _0x21b64f=_0x3b224c;return this[_0x21b64f(0x516)][_0x21b64f(0x349)]();}[_0x3b224c(0x193)](_0x27f48b,_0x38aed9){const _0x1053d8=_0x3b224c;let _0x2edf5b=this['_roomMembers'][_0x1053d8(0x273)](_0x27f48b);_0x2edf5b||(_0x2edf5b=new ri(),this[_0x1053d8(0x54b)]['set'](_0x27f48b,_0x2edf5b)),_0x2edf5b[_0x1053d8(0x193)](_0x38aed9);}[_0x3b224c(0x2e8)](_0x4f3432,_0x3521a0){const _0x114d87=_0x3b224c,_0x5b5ba0=this[_0x114d87(0x54b)][_0x114d87(0x273)](_0x4f3432);_0x5b5ba0&&_0x5b5ba0[_0x114d87(0x2e8)](_0x3521a0);}['getRoom'](_0x5168de){const _0x371bba=_0x3b224c;return this[_0x371bba(0x54b)][_0x371bba(0x273)](_0x5168de);}['getMember'](_0xb952fc,_0x3eaccc){const _0x21de51=_0x3b224c,_0x2f19ad=this[_0x21de51(0x54b)]['get'](_0xb952fc);if(_0x2f19ad)return _0x2f19ad['getMember'](_0x3eaccc);}[_0x3b224c(0x41a)](_0x3d0348){const _0x169aba=_0x3b224c,_0x4081a2=this[_0x169aba(0x54b)][_0x169aba(0x273)](_0x3d0348);_0x4081a2&&(_0x4081a2[_0x169aba(0x2fa)](),this['_roomMembers'][_0x169aba(0x463)](_0x3d0348));}[_0x3b224c(0x2fa)](){const _0x4ce4e5=_0x3b224c;this[_0x4ce4e5(0x54b)][_0x4ce4e5(0x54f)](_0x5277b3=>_0x5277b3[_0x4ce4e5(0x2fa)]()),this['_roomMembers'][_0x4ce4e5(0x3b6)]();}},exports[_0x3b224c(0x5db)]=si([Ut(0x0,a[_0x3b224c(0x5a1)]),Ut(0x1,a[_0x3b224c(0x556)](a[_0x3b224c(0x4e3)]))],exports[_0x3b224c(0x5db)]);class ri extends a[_0x3b224c(0x52b)]{constructor(){const _0x546886=_0x3b224c;super(...arguments),I(this,_0x546886(0x3af),new Map());}['dispose'](){const _0x16afe7=_0x3b224c;this[_0x16afe7(0x3af)][_0x16afe7(0x3b6)]();}[_0x3b224c(0x193)](_0x1ffbaf){const _0x4e7df0=_0x3b224c;this[_0x4e7df0(0x3af)][_0x4e7df0(0x437)](_0x1ffbaf[_0x4e7df0(0x5ba)],_0x1ffbaf);}[_0x3b224c(0x2e8)](_0x109888){this['_members']['delete'](_0x109888);}['getMember'](_0x1e7836){const _0x11e572=_0x3b224c;return this[_0x11e572(0x3af)][_0x11e572(0x273)](_0x1e7836);}[_0x3b224c(0x321)](){const _0x4f596c=_0x3b224c;return Array[_0x4f596c(0x2ed)](this['_members']['values']());}}var oi=Object[_0x3b224c(0x209)],ai=Object[_0x3b224c(0x233)],ci=(_0x5d8e10,_0x20fa55,_0x42322d,_0x21d53a)=>{for(var _0x1ed8b6=_0x21d53a>0x1?void 0x0:_0x21d53a?ai(_0x20fa55,_0x42322d):_0x20fa55,_0x2aea79=_0x5d8e10['length']-0x1,_0x3ab3e9;_0x2aea79>=0x0;_0x2aea79--)(_0x3ab3e9=_0x5d8e10[_0x2aea79])&&(_0x1ed8b6=(_0x21d53a?_0x3ab3e9(_0x20fa55,_0x42322d,_0x1ed8b6):_0x3ab3e9(_0x1ed8b6))||_0x1ed8b6);return _0x21d53a&&_0x1ed8b6&&oi(_0x20fa55,_0x42322d,_0x1ed8b6),_0x1ed8b6;},de=(_0x5adc7d,_0x3d57d4)=>(_0x44826d,_0x64c8b8)=>_0x3d57d4(_0x44826d,_0x64c8b8,_0x5adc7d),se=(_0x15a01a=>(_0x15a01a[_0x15a01a['IDLE']=0x0]=_0x3b224c(0x5a5),_0x15a01a[_0x15a01a[_0x3b224c(0x24a)]=0x1]='JOINING',_0x15a01a[_0x15a01a[_0x3b224c(0x4e2)]=0x2]='OFFLINE',_0x15a01a[_0x15a01a['ONLINE']=0x3]=_0x3b224c(0x3a3),_0x15a01a))(se||{});exports[_0x3b224c(0x466)]=class extends a[_0x3b224c(0x274)]{constructor(_0xb10e25,_0x32ae3b,_0x5e090b,_0x1f1c03,_0x2d6130,_0x25a558,_0x2ddbc2,_0x22e144,_0x177a8c,_0x2164fe){const _0x1cc180=_0x3b224c;super(),I(this,'_sessionStatus$',new A[(_0x1cc180(0x33e))](0x0)),I(this,_0x1cc180(0x480),this[_0x1cc180(0x18d)][_0x1cc180(0x4f7)]()),I(this,_0x1cc180(0x3f0),new A[(_0x1cc180(0x13f))]()),I(this,_0x1cc180(0x396),this[_0x1cc180(0x3f0)][_0x1cc180(0x4f7)]()),I(this,_0x1cc180(0x41c)),I(this,_0x1cc180(0x484)),I(this,_0x1cc180(0x25f)),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x1cc180(0x279),null),(this[_0x1cc180(0x5d3)]=_0xb10e25,this[_0x1cc180(0x13a)]=_0x5e090b,this[_0x1cc180(0x4d7)]=_0x1f1c03,this['_messageService']=_0x2d6130,this['_configService']=_0x25a558,this['_localeService']=_0x2ddbc2,this[_0x1cc180(0x486)]=_0x22e144,this[_0x1cc180(0x54a)]=_0x177a8c,this[_0x1cc180(0x51d)]=_0x2164fe,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x32ae3b[_0x1cc180(0x3cc)](A[_0x1cc180(0x58f)](this[_0x1cc180(0x19d)]))[_0x1cc180(0x2de)](_0x57b6dd=>{const _0x7536b3=_0x1cc180;var _0x34bba2;typeof _0x57b6dd>'u'||(this[_0x7536b3(0x41c)]=_0x57b6dd,_0x57b6dd?(this[_0x7536b3(0x1a0)](_0x57b6dd),this[_0x7536b3(0x484)]=_0x57b6dd['message$'][_0x7536b3(0x2de)](_0xb25dff=>{const _0x31db66=_0x7536b3;_0xb25dff['routeKey']===this[_0x31db66(0x5d3)]&&this[_0x31db66(0x141)](_0xb25dff);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x7536b3(0x18d)][_0x7536b3(0x1e1)](0x2),(_0x34bba2=this[_0x7536b3(0x484)])==null||_0x34bba2[_0x7536b3(0x272)](),this[_0x7536b3(0x484)]=null));}),this[_0x1cc180(0x220)](this[_0x1cc180(0x4d7)][_0x1cc180(0x1c2)](()=>{const _0x410ceb=_0x1cc180;var _0x1a36ef;(_0x1a36ef=this[_0x410ceb(0x41c)])==null||_0x1a36ef[_0x410ceb(0x50d)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x410ceb(0x5d3)]}});})));}get['sessionStatus'](){const _0x3f8ee6=_0x3b224c;return this[_0x3f8ee6(0x18d)]['getValue']();}[_0x3b224c(0x3b8)](){const _0x8a27d2=_0x3b224c;var _0x4bfb75,_0x49b363;return(_0x49b363=(_0x4bfb75=this[_0x8a27d2(0x41c)])==null?void 0x0:_0x4bfb75[_0x8a27d2(0x5ba)])!=null?_0x49b363:null;}[_0x3b224c(0x2fa)](){const _0x350c5e=_0x3b224c;super[_0x350c5e(0x2fa)](),this[_0x350c5e(0x19d)][_0x350c5e(0x1e1)](),this['dispose$'][_0x350c5e(0x163)]();}[_0x3b224c(0x1b3)](){const _0x563a11=_0x3b224c;var _0x49beea,_0x352afe;this[_0x563a11(0x131)](),(_0x49beea=this[_0x563a11(0x41c)])==null||_0x49beea[_0x563a11(0x50d)]({'cmd':G[_0x563a11(0x582)],'data':{'roomID':this[_0x563a11(0x5d3)]}}),(_0x352afe=this[_0x563a11(0x41c)])==null||_0x352afe[_0x563a11(0x1b3)](),this['_event$']['complete'](),this['_sessionStatus$'][_0x563a11(0x163)](),this[_0x563a11(0x2fa)]();}[_0x3b224c(0x141)](_0x2c87a9){const _0x3922d9=_0x3b224c;_0x2c87a9[_0x3922d9(0x21d)]===G[_0x3922d9(0x1bc)]?this[_0x3922d9(0x429)](_0x2c87a9):_0x2c87a9['cmd']===G['RECV']&&this[_0x3922d9(0x2b7)](_0x2c87a9);}['_joinRoom'](_0x589ebe){const _0xf76ff0=_0x3b224c;this[_0xf76ff0(0x18d)]['next'](0x1),_0x589ebe['send']({'cmd':G['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xf76ff0(0x5d3)]}]}});}['_onJoinRoomEvent'](_0x575c8e){const _0x4c33f1=_0x3b224c;var _0x3fdad0;if(_0x575c8e[_0x4c33f1(0x4ef)]===Et['FAIL']){this[_0x4c33f1(0x1ca)][_0x4c33f1(0x134)]({'type':ge[_0x4c33f1(0x1a6)]['Warning'],'content':this['_localeService']['t'](_0x4c33f1(0x590))}),this[_0x4c33f1(0x18d)][_0x4c33f1(0x1e1)](0x2);return;}this[_0x4c33f1(0x18d)][_0x4c33f1(0x1e1)](0x3);const _0x28501a=(_0x3fdad0=_0x575c8e[_0x4c33f1(0x34e)][_0x4c33f1(0x2b6)][this[_0x4c33f1(0x5d3)]])==null?void 0x0:_0x3fdad0[_0x4c33f1(0x43a)];_0x28501a&&_0x28501a['forEach'](_0x4759a7=>this[_0x4c33f1(0x486)]['updateMember'](this[_0x4c33f1(0x5d3)],_0x4759a7));}[_0x3b224c(0x2b7)](_0x93b5a0){const _0x19a948=_0x3b224c;try{const _0x2748fc=_0x93b5a0['data'];switch(_0x2748fc[_0x19a948(0x4a9)]){case S[_0x19a948(0x136)][_0x19a948(0x31b)]:this[_0x19a948(0x5c6)](_0x2748fc),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x502)]:this[_0x19a948(0x3d8)](_0x2748fc),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x35e)]:case S[_0x19a948(0x136)][_0x19a948(0x26a)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x19a948(0x308)](),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x1d1)]:this[_0x19a948(0x13a)][_0x19a948(0x423)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x19a948(0x52a)](_0x2748fc)),this[_0x19a948(0x3f0)]['next'](_0x2748fc);break;case S[_0x19a948(0x136)]['COMMENT_UPDATE']:this[_0x19a948(0x54a)][_0x19a948(0x238)](_0x2748fc[_0x19a948(0x34e)]),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;default:this['_event$'][_0x19a948(0x1e1)](_0x2748fc);}}catch(_0x546fdf){this[_0x19a948(0x13a)]['error'](_0x546fdf,_0x93b5a0);}}[_0x3b224c(0x5c6)](_0x545369){const _0x1b37f7=_0x3b224c;this[_0x1b37f7(0x486)][_0x1b37f7(0x193)](this[_0x1b37f7(0x5d3)],_0x545369[_0x1b37f7(0x34e)]);}['_onUserLeave'](_0x16975c){const _0x4f6458=_0x3b224c;this['_memberService'][_0x4f6458(0x2e8)](this[_0x4f6458(0x5d3)],_0x16975c[_0x4f6458(0x34e)][_0x4f6458(0x5ba)]);}async[_0x3b224c(0x50d)](_0x2c969d,_0x39fa67){const _0x1a001a=_0x3b224c;if(this[_0x1a001a(0x543)]!==0x3||!this['_socket'])throw new Error(_0x1a001a(0x38b));try{_0x2c969d[_0x1a001a(0x4a9)]===S[_0x1a001a(0x136)][_0x1a001a(0x2df)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x1a001a(0x596)](_0x2c969d)),this[_0x1a001a(0x41c)][_0x1a001a(0x50d)]({'cmd':G[_0x1a001a(0x20f)],'routeKey':_0x39fa67,'routeType':'','data':_0x2c969d});}catch(_0x5a18c4){this['_logService'][_0x1a001a(0x423)](_0x5a18c4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3afd02=_0x3b224c;var _0x28fdaf;this[_0x3afd02(0x25f)]=window[_0x3afd02(0x325)](()=>{const _0x5b5348=_0x3afd02;this[_0x5b5348(0x25f)]=null,this['_messageService'][_0x5b5348(0x134)]({'type':ge[_0x5b5348(0x1a6)][_0x5b5348(0x187)],'content':this[_0x5b5348(0x57b)]['t'](_0x5b5348(0x54d))});},(_0x28fdaf=this[_0x3afd02(0x142)][_0x3afd02(0x469)](Ct))!=null?_0x28fdaf:nn);}[_0x3b224c(0x308)](){const _0x2cef7f=_0x3b224c;this[_0x2cef7f(0x25f)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x2cef7f(0x25f)]=null);}[_0x3b224c(0x596)](_0x20c203){const _0x2d48a2=_0x3b224c;if(!this['_shouldReportTelemetry'])return;const {data:_0x520c21}=_0x20c203,{unitID:_0x3adc23,changeset:_0xe22dce}=_0x520c21,{mutations:_0xae2725,type:_0x2ef03f}=_0xe22dce;this[_0x2d48a2(0x279)]={'unitId':_0x3adc23,'type':_0x2ef03f,'startTime':performance[_0x2d48a2(0x419)](),'stopTime':0x0,'duration':0x0,'size':ti(_0xae2725)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3d866a=_0x3b224c;if(this[_0x3d866a(0x580)]){if(!this[_0x3d866a(0x279)]){this['_logService']['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x3d866a(0x279)][_0x3d866a(0x2cd)]=performance[_0x3d866a(0x419)](),this[_0x3d866a(0x279)][_0x3d866a(0x4bf)]=this['_telemetryInfo'][_0x3d866a(0x2cd)]-this['_telemetryInfo'][_0x3d866a(0x5c5)],this['_telemetryService'][_0x3d866a(0x405)](ei,this[_0x3d866a(0x279)]),this['_telemetryInfo']=null;}}[_0x3b224c(0x131)](){const _0x1f20e2=_0x3b224c;this[_0x1f20e2(0x279)]=null;}},exports[_0x3b224c(0x466)]=ci([de(0x2,a['ILogService']),de(0x3,ee[_0x3b224c(0x23a)]),de(0x4,ee[_0x3b224c(0x2d5)]),de(0x5,a[_0x3b224c(0x160)]),de(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),de(0x7,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5db)])),de(0x8,a[_0x3b224c(0x556)](Tt)),de(0x9,a[_0x3b224c(0x3e1)](jn[_0x3b224c(0x525)]))],exports['CollaborationSession']);var li=Object['defineProperty'],hi=Object['getOwnPropertyDescriptor'],_i=(_0x366c57,_0x3a2823,_0x11393c,_0x16a1c9)=>{for(var _0x215c47=_0x16a1c9>0x1?void 0x0:_0x16a1c9?hi(_0x3a2823,_0x11393c):_0x3a2823,_0x1572ed=_0x366c57['length']-0x1,_0x1e4e27;_0x1572ed>=0x0;_0x1572ed--)(_0x1e4e27=_0x366c57[_0x1572ed])&&(_0x215c47=(_0x16a1c9?_0x1e4e27(_0x3a2823,_0x11393c,_0x215c47):_0x1e4e27(_0x215c47))||_0x215c47);return _0x16a1c9&&_0x215c47&&li(_0x3a2823,_0x11393c,_0x215c47),_0x215c47;},Ee=(_0x368378,_0x50f616)=>(_0x2ef4f2,_0x298057)=>_0x50f616(_0x2ef4f2,_0x298057,_0x368378);exports[_0x3b224c(0x5d8)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x1cee7c,_0x54849a,_0x3f13b2,_0x4d7e93,_0x1fa363,_0x42c7d7){const _0x2a1bc0=_0x3b224c;super(),I(this,'_socket$',new A[(_0x2a1bc0(0x33e))](void 0x0)),I(this,'socket$',this[_0x2a1bc0(0x5b5)][_0x2a1bc0(0x4f7)]()),I(this,_0x2a1bc0(0x57d),null),I(this,_0x2a1bc0(0x221),new Map()),I(this,_0x2a1bc0(0x183),new A[(_0x2a1bc0(0x33e))](se[_0x2a1bc0(0x5a5)])),I(this,_0x2a1bc0(0x47e),this['_status$']['asObservable']()),I(this,_0x2a1bc0(0x52c),!0x1),I(this,_0x2a1bc0(0x39a)),I(this,_0x2a1bc0(0x176),0x0),I(this,'_sendHeartbeatTimer'),I(this,'_timeoutTimer'),(this[_0x2a1bc0(0x495)]=_0x1cee7c,this[_0x2a1bc0(0x57b)]=_0x54849a,this['_messageService']=_0x3f13b2,this[_0x2a1bc0(0x13a)]=_0x4d7e93,this['_configService']=_0x1fa363,this[_0x2a1bc0(0x202)]=_0x42c7d7,this[_0x2a1bc0(0x29d)]());}get[_0x3b224c(0x41c)](){const _0x644f9e=_0x3b224c;return this[_0x644f9e(0x5b5)][_0x644f9e(0x3df)]();}[_0x3b224c(0x29d)](){const _0x2a9e6c=_0x3b224c;this['_listenToOfflineEvent'](),this[_0x2a9e6c(0x303)]();}[_0x3b224c(0x2fa)](){const _0x13206=_0x3b224c;super['dispose'](),this[_0x13206(0x221)][_0x13206(0x54f)](_0x9af242=>_0x9af242['dispose']()),this[_0x13206(0x221)]['clear'](),this['_status$'][_0x13206(0x163)]();}async[_0x3b224c(0x376)](_0x3bb654){const _0x5ad8cd=_0x3b224c;if(this[_0x5ad8cd(0x221)][_0x5ad8cd(0x339)](_0x3bb654))return this[_0x5ad8cd(0x221)]['get'](_0x3bb654);this[_0x5ad8cd(0x527)]();const _0xdd25cb=this['_injector'][_0x5ad8cd(0x560)](exports[_0x5ad8cd(0x466)],_0x3bb654,this[_0x5ad8cd(0x5b5)][_0x5ad8cd(0x4f7)]());return this['_sessions'][_0x5ad8cd(0x437)](_0x3bb654,_0xdd25cb),_0xdd25cb;}[_0x3b224c(0x1de)](_0x5e328a){const _0x1c7fc2=_0x3b224c;var _0x59f21a;const _0x397604=this['_sessions']['get'](_0x5e328a);_0x397604&&(this[_0x1c7fc2(0x221)][_0x1c7fc2(0x463)](_0x5e328a),_0x397604[_0x1c7fc2(0x1b3)]()),this['_sessions'][_0x1c7fc2(0x14d)]||(_0x59f21a=this[_0x1c7fc2(0x41c)])==null||_0x59f21a[_0x1c7fc2(0x1b3)]();}[_0x3b224c(0x365)](){const _0x5262d7=_0x3b224c;this[_0x5262d7(0x176)]=0x0,this[_0x5262d7(0x39a)]!=null&&(clearTimeout(this[_0x5262d7(0x39a)]),this[_0x5262d7(0x39a)]=null),this[_0x5262d7(0x297)]();}['_createSocket'](){const _0xdd1c55=_0x3b224c;var _0x2c1448,_0x4f7da5;const _0x2747c7=this[_0xdd1c55(0x142)]['getConfig'](en),_0x3d66c5=this['_configService']['getConfig'](te),_0x177af2=(_0x4f7da5=(_0x2c1448=_0x3d66c5==null?void 0x0:_0x3d66c5[_0xdd1c55(0x24e)])!=null?_0x2c1448:_0x2747c7)!=null?_0x4f7da5:Wn,_0x4194aa=this[_0xdd1c55(0x202)][_0xdd1c55(0x235)](_0x177af2);return this['_candidateSocket']=_0x4194aa,_0x4194aa;}[_0x3b224c(0x527)](){const _0x330b42=_0x3b224c;var _0x3c323e,_0x1d34f9;try{const _0x5e4fce=(_0x1d34f9=(_0x3c323e=this[_0x330b42(0x41c)])!=null?_0x3c323e:this[_0x330b42(0x57d)])!=null?_0x1d34f9:this[_0x330b42(0x3e4)]();if(_0x5e4fce){const _0x4349cd=_0x5e4fce['send'];_0x5e4fce[_0x330b42(0x50d)]=_0x311bf2=>(this[_0x330b42(0x24b)](),_0x4349cd[_0x330b42(0x44a)](_0x5e4fce,[_0x311bf2])),_0x5e4fce[_0x330b42(0x4c6)][_0x330b42(0x2de)](_0x8d03ea=>this[_0x330b42(0x323)](_0x5e4fce,_0x8d03ea)),_0x5e4fce[_0x330b42(0x330)][_0x330b42(0x3cc)](V['take'](0x1))[_0x330b42(0x2de)](_0x49682d=>this[_0x330b42(0x13a)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x49682d)),_0x5e4fce[_0x330b42(0x288)]['pipe'](V[_0x330b42(0x189)](0x1))[_0x330b42(0x2de)](()=>{const _0x16d88d=_0x330b42;this[_0x16d88d(0x2f9)](_0x5e4fce);}),_0x5e4fce[_0x330b42(0x1bf)][_0x330b42(0x3cc)](V[_0x330b42(0x189)](0x1))['subscribe'](_0x5c625e=>{const _0x34d46c=_0x330b42;this['_logService'][_0x34d46c(0x241)](_0x34d46c(0x292),_0x34d46c(0x53d),_0x5c625e),this['_onConnectionFailed']();});}}catch(_0x4c6c1d){this['_logService'][_0x330b42(0x423)](_0x4c6c1d),this[_0x330b42(0x44b)]();}}[_0x3b224c(0x2f9)](_0x56d35d){const _0x27c506=_0x3b224c;this[_0x27c506(0x13a)][_0x27c506(0x241)](_0x27c506(0x292),_0x27c506(0x2a2)),_0x56d35d[_0x27c506(0x50d)]({'cmd':G['HELLO']}),this[_0x27c506(0x24b)]();}['_listenToOfflineEvent'](){const _0x823cb=_0x3b224c;window['addEventListener'](_0x823cb(0x3e9),()=>this['_onOffline']());}['_onOffline'](){const _0x3cd47e=_0x3b224c;this['_socketReady']=!0x1,this[_0x3cd47e(0x57d)]=null,this['_status$'][_0x3cd47e(0x1e1)](se[_0x3cd47e(0x4e2)]),this[_0x3cd47e(0x5b5)]['next'](null),this[_0x3cd47e(0x216)](),this['_clearHeartbeatTimer']();}[_0x3b224c(0x44b)](){const _0x1686d5=_0x3b224c;var _0x35252b;this[_0x1686d5(0x1bd)](),this[_0x1686d5(0x176)]<((_0x35252b=this['_configService'][_0x1686d5(0x469)](sn))!=null?_0x35252b:Gn)?(this[_0x1686d5(0x1ca)]['show']({'key':_0x1686d5(0x470),'type':ge[_0x1686d5(0x1a6)][_0x1686d5(0x177)],'content':this['_localeService']['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x1686d5(0x1ca)][_0x1686d5(0x134)]({'key':_0x1686d5(0x470),'type':ge[_0x1686d5(0x1a6)]['Error'],'content':this[_0x1686d5(0x57b)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x155adc=_0x3b224c,_0x51842d=()=>{const _0x2eaadc=_0x1276;this[_0x2eaadc(0x41c)]||this[_0x2eaadc(0x365)]();},_0x47a72f=()=>{const _0x26922a=_0x1276;this[_0x26922a(0x41c)]||document['visibilityState']===_0x26922a(0x1df)||this[_0x26922a(0x365)]();};window[_0x155adc(0x240)](_0x155adc(0x3d5),_0x51842d),document[_0x155adc(0x240)]('visibilitychange',_0x47a72f);}[_0x3b224c(0x297)](){const _0x47b704=_0x3b224c;var _0x165a6c;const _0xdb214=this[_0x47b704(0x176)],_0x29a3c3=this[_0x47b704(0x142)][_0x47b704(0x469)](te),_0x4aa307=_0xdb214===0x0?0x0:((_0x165a6c=_0x29a3c3==null?void 0x0:_0x29a3c3[_0x47b704(0x2c7)])!=null?_0x165a6c:Vn)*0x2**_0xdb214;this[_0x47b704(0x39a)]=window['setTimeout'](()=>{const _0xb5377c=_0x47b704;clearTimeout(this['_retryConnectingTimer']),this[_0xb5377c(0x39a)]=null,this['_tryEnsureSocket']();},_0x4aa307),this[_0x47b704(0x176)]+=0x1;}[_0x3b224c(0x323)](_0x516c21,_0x4f0114){const _0x17811c=_0x3b224c,{cmd:_0x1f5b57}=_0x4f0114;_0x1f5b57===G['HELLO']&&!this[_0x17811c(0x52c)]&&(_0x516c21[_0x17811c(0x5ba)]=_0x4f0114[_0x17811c(0x34e)][_0x17811c(0x5ba)],this[_0x17811c(0x5b5)]['next'](_0x516c21),this[_0x17811c(0x183)][_0x17811c(0x1e1)](se['ONLINE']),this[_0x17811c(0x52c)]=!0x0,this['_candidateSocket']=null),_0x1f5b57===G[_0x17811c(0x2e7)]&&this[_0x17811c(0x216)](),this[_0x17811c(0x24b)]();}[_0x3b224c(0x24b)](){const _0x513f88=_0x3b224c;var _0x47589e;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x513f88(0x53b)](),(_0x47589e=this[_0x513f88(0x142)][_0x513f88(0x469)](tn))!=null?_0x47589e:Fn);}[_0x3b224c(0x53b)](){const _0x2e8ecf=_0x3b224c;this[_0x2e8ecf(0x41c)][_0x2e8ecf(0x50d)]({'cmd':G[_0x2e8ecf(0x2e7)]}),this[_0x2e8ecf(0x575)]();}[_0x3b224c(0x575)](){const _0x1b6a62=_0x3b224c;var _0x51ae21;this[_0x1b6a62(0x3db)]=window[_0x1b6a62(0x325)](()=>this[_0x1b6a62(0x44b)](),(_0x51ae21=this[_0x1b6a62(0x142)][_0x1b6a62(0x469)](Ct))!=null?_0x51ae21:nn);}['_clearHeartbeatTimer'](){const _0x49176=_0x3b224c;this[_0x49176(0x377)]!=null&&(clearTimeout(this[_0x49176(0x377)]),this[_0x49176(0x377)]=null);}[_0x3b224c(0x216)](){const _0x445936=_0x3b224c;this[_0x445936(0x3db)]!=null&&(clearTimeout(this[_0x445936(0x3db)]),this[_0x445936(0x3db)]=null);}},exports[_0x3b224c(0x5d8)]=_i([Ee(0x0,a['Inject'](a['Injector'])),Ee(0x1,a['Inject'](a[_0x3b224c(0x4ae)])),Ee(0x2,ee[_0x3b224c(0x2d5)]),Ee(0x3,a[_0x3b224c(0x5ae)]),Ee(0x4,a['IConfigService']),Ee(0x5,bt)],exports[_0x3b224c(0x5d8)]);const Y=[];for(let s=0x0;s<0x100;++s)Y['push']((s+0x100)[_0x3b224c(0x4cf)](0x10)['slice'](0x1));function ui(_0x32632b,_0x20d7e5=0x0){const _0x239428=_0x3b224c;return(Y[_0x32632b[_0x20d7e5+0x0]]+Y[_0x32632b[_0x20d7e5+0x1]]+Y[_0x32632b[_0x20d7e5+0x2]]+Y[_0x32632b[_0x20d7e5+0x3]]+'-'+Y[_0x32632b[_0x20d7e5+0x4]]+Y[_0x32632b[_0x20d7e5+0x5]]+'-'+Y[_0x32632b[_0x20d7e5+0x6]]+Y[_0x32632b[_0x20d7e5+0x7]]+'-'+Y[_0x32632b[_0x20d7e5+0x8]]+Y[_0x32632b[_0x20d7e5+0x9]]+'-'+Y[_0x32632b[_0x20d7e5+0xa]]+Y[_0x32632b[_0x20d7e5+0xb]]+Y[_0x32632b[_0x20d7e5+0xc]]+Y[_0x32632b[_0x20d7e5+0xd]]+Y[_0x32632b[_0x20d7e5+0xe]]+Y[_0x32632b[_0x20d7e5+0xf]])[_0x239428(0x476)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x1d9e36=_0x3b224c;if(!Je){if(typeof crypto>'u'||!crypto[_0x1d9e36(0x458)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');Je=crypto[_0x1d9e36(0x458)][_0x1d9e36(0x264)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto[_0x3b224c(0x49c)]&&crypto['randomUUID'][_0x3b224c(0x264)](crypto),Mt={'randomUUID':vi};function mi(_0x504804,_0x3396f3,_0x745dff){const _0x373659=_0x3b224c;if(Mt[_0x373659(0x49c)]&&!_0x3396f3&&!_0x504804)return Mt[_0x373659(0x49c)]();_0x504804=_0x504804||{};const _0x3ca9ab=_0x504804[_0x373659(0x4cb)]||(_0x504804[_0x373659(0x448)]||fi)();return _0x3ca9ab[0x6]=_0x3ca9ab[0x6]&0xf|0x40,_0x3ca9ab[0x8]=_0x3ca9ab[0x8]&0x3f|0x80,ui(_0x3ca9ab);}var Si=Object['defineProperty'],pi=Object[_0x3b224c(0x233)],gi=(_0x193f32,_0x485b0f,_0x370895,_0x261f52)=>{for(var _0x23bbc5=_0x261f52>0x1?void 0x0:_0x261f52?pi(_0x485b0f,_0x370895):_0x485b0f,_0x25e3f7=_0x193f32['length']-0x1,_0xf9bd8e;_0x25e3f7>=0x0;_0x25e3f7--)(_0xf9bd8e=_0x193f32[_0x25e3f7])&&(_0x23bbc5=(_0x261f52?_0xf9bd8e(_0x485b0f,_0x370895,_0x23bbc5):_0xf9bd8e(_0x23bbc5))||_0x23bbc5);return _0x261f52&&_0x23bbc5&&Si(_0x485b0f,_0x370895,_0x23bbc5),_0x23bbc5;},Ze=(_0x172431,_0x446a14)=>(_0x1d9403,_0x3e1cbb)=>_0x446a14(_0x1d9403,_0x3e1cbb,_0x172431);let Be=class{constructor(_0x267001,_0x1c43b5,_0x2c5ab9){const _0x3cbcab=_0x3b224c;this[_0x3cbcab(0x495)]=_0x267001,this[_0x3cbcab(0x5c9)]=_0x1c43b5,this[_0x3cbcab(0x243)]=_0x2c5ab9;}[_0x3b224c(0x57c)](_0x165b28){const _0xf6936a=_0x3b224c;this['_transformUndoRedoStack'](_0x165b28),this[_0xf6936a(0x485)](_0x165b28);}['transformRemoteChangeset'](_0x4afa51){const _0x458a36=_0x3b224c,{unitID:_0x2d67f7}=_0x4afa51,_0x4edb53=this[_0x458a36(0x243)]['getRenderById'](_0x2d67f7)[_0x458a36(0x36a)](J['DocIMEInputManagerService']),{redoCache:_0x4e7836}=_0x4edb53[_0x458a36(0x172)]();if(_0x4e7836[_0x458a36(0x2a8)]===0x0)return _0x4afa51;let _0x30a402=a['Tools']['deepClone'](_0x4afa51['mutations'][0x0]);for(let _0x5701b2=0x0;_0x5701b2<_0x4e7836[_0x458a36(0x2a8)];_0x5701b2++){const _0x2dbf51={'id':_0x458a36(0x59c),'params':{..._0x4e7836[_0x5701b2]}},_0x1c1e33=this['_transformService']['transformMutation'](_0x30a402,_0x2dbf51,!0x1);if(S[_0x458a36(0x290)](_0x1c1e33))throw _0x1c1e33[_0x458a36(0x423)];_0x30a402=_0x1c1e33['m1Prime'];}return{...a[_0x458a36(0x3b9)][_0x458a36(0x4d6)](_0x4afa51),'mutations':[_0x30a402]};}[_0x3b224c(0x51b)](_0x5128b2){const _0x418ed4=_0x3b224c,{unitID:_0x1814a7}=_0x5128b2,_0x880a8d=this[_0x418ed4(0x243)][_0x418ed4(0x335)](_0x1814a7)[_0x418ed4(0x36a)](J['DocIMEInputManagerService']),{undoCache:_0x492200,redoCache:_0x5cf899}=_0x880a8d[_0x418ed4(0x172)]();if(_0x492200[_0x418ed4(0x2a8)]===0x0||_0x5cf899['length']===0x0)return;const _0x219842=[],_0x2f365d=[];let _0x5437ad=a['Tools']['deepClone'](_0x5128b2[_0x418ed4(0x229)][0x0]),_0x1e3dfc=a[_0x418ed4(0x3b9)]['deepClone'](_0x5128b2[_0x418ed4(0x229)][0x0]);for(let _0x275bfa=_0x492200[_0x418ed4(0x2a8)]-0x1;_0x275bfa>=0x0;_0x275bfa--){const _0x148b17={'id':'doc.mutation.rich-text-editing','params':{..._0x492200[_0x275bfa]}},_0x66116a={'id':_0x418ed4(0x59c),'params':{..._0x5cf899[_0x275bfa]}},_0x3a527c=this[_0x418ed4(0x5c9)][_0x418ed4(0x38c)](_0x5437ad,_0x148b17,!0x1),_0x307a83=this[_0x418ed4(0x5c9)]['transformMutation'](_0x1e3dfc,_0x66116a,!0x1);if(S[_0x418ed4(0x290)](_0x3a527c))throw _0x3a527c[_0x418ed4(0x423)];if(S['isTransformMutationFailure'](_0x307a83))throw _0x307a83[_0x418ed4(0x423)];_0x219842[_0x418ed4(0x5c8)](_0x3a527c[_0x418ed4(0x3f1)][_0x418ed4(0x2be)]),_0x2f365d[_0x418ed4(0x5c8)](_0x307a83[_0x418ed4(0x3f1)][_0x418ed4(0x2be)]),_0x5437ad=_0x3a527c[_0x418ed4(0x1d5)],_0x1e3dfc=_0x307a83[_0x418ed4(0x1d5)];}_0x880a8d['setUndoRedoMutationParamsCache']({'undoCache':_0x219842,'redoCache':_0x2f365d});}[_0x3b224c(0x485)](_0x48e81d){const _0x3aad93=_0x3b224c,{unitID:_0x4d5a03}=_0x48e81d,_0xa4d850=this['_renderManagerService'][_0x3aad93(0x335)](_0x4d5a03)['with'](J[_0x3aad93(0x144)]),_0x1ffb60=_0xa4d850[_0x3aad93(0x16e)]();if(_0x1ffb60==null)return;const _0x63cf42=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48e81d[_0x3aad93(0x236)],'actions':null,'textRanges':[_0x1ffb60]}}],_0x4ebee9=this[_0x3aad93(0x5c9)][_0x3aad93(0x16d)](_0x48e81d,_0x63cf42);if(!S['isTransformMutationsWithChangesetSuccess'](_0x4ebee9))throw _0x4ebee9['error'];const _0xb3f823=_0x4ebee9[_0x3aad93(0x3f1)][0x0]['params'][_0x3aad93(0x4a8)];Array[_0x3aad93(0x34b)](_0xb3f823)&&_0xb3f823[_0x3aad93(0x2a8)]&&_0xa4d850[_0x3aad93(0x2c5)](_0xb3f823[0x0]);}};Be=gi([Ze(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Ze(0x1,S[_0x3b224c(0x180)]),Ze(0x2,K[_0x3b224c(0x569)])],Be);var Ii=Object[_0x3b224c(0x209)],Ci=Object[_0x3b224c(0x233)],Ei=(_0x4ed58b,_0x47077f,_0x40828e,_0x1b4bae)=>{const _0x4313cc=_0x3b224c;for(var _0x2d8c52=_0x1b4bae>0x1?void 0x0:_0x1b4bae?Ci(_0x47077f,_0x40828e):_0x47077f,_0x54da88=_0x4ed58b[_0x4313cc(0x2a8)]-0x1,_0x2cac81;_0x54da88>=0x0;_0x54da88--)(_0x2cac81=_0x4ed58b[_0x54da88])&&(_0x2d8c52=(_0x1b4bae?_0x2cac81(_0x47077f,_0x40828e,_0x2d8c52):_0x2cac81(_0x2d8c52))||_0x2d8c52);return _0x1b4bae&&_0x2d8c52&&Ii(_0x47077f,_0x40828e,_0x2d8c52),_0x2d8c52;},Pe=(_0x11d10f,_0x3c4330)=>(_0x44c08d,_0x11a8c5)=>_0x3c4330(_0x44c08d,_0x11a8c5,_0x11d10f);exports[_0x3b224c(0x42a)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x3699d0,_0x26c409,_0x4226ac,_0x29f9ec,_0x478383){const _0x22d469=_0x3b224c;super(),I(this,_0x22d469(0x5a3),new Map()),I(this,'_saveTaskMap',new Map()),I(this,_0x22d469(0x347),!0x1),(this[_0x22d469(0x142)]=_0x3699d0,this[_0x22d469(0x15a)]=_0x26c409,this[_0x22d469(0x4d7)]=_0x4226ac,this['_localeService']=_0x29f9ec,this[_0x22d469(0x2dc)]=_0x478383,this[_0x22d469(0x4ba)]());}[_0x3b224c(0x262)](){const _0x1296e1=_0x3b224c;this[_0x1296e1(0x347)]=!0x0;}['enableLocalCache'](){const _0x474d0b=_0x3b224c;this[_0x474d0b(0x347)]=!0x1;}[_0x3b224c(0x2fa)](){const _0x5d7ced=_0x3b224c;this['exhaustSavingTask']()['then'](()=>super[_0x5d7ced(0x2fa)]());}async['loadOfflineData'](_0x16ca24){const _0x5a3248=_0x3b224c;return this[_0x5a3248(0x347)]?null:this[_0x5a3248(0x15a)][_0x5a3248(0x1be)](At(_0x16ca24));}async[_0x3b224c(0x278)](_0x300356,_0x140b48){const _0x46471d=_0x3b224c;return!!this[_0x46471d(0x15a)][_0x46471d(0x4c7)](_0x300356,_0x140b48);}[_0x3b224c(0x2a7)](_0x530f84,_0xfa7475,_0x2a3c5e,_0x1e8538){const _0x22d648=_0x3b224c,_0x2f9ad2=this[_0x22d648(0x2dc)][_0x22d648(0x58d)](_0x530f84);this[_0x22d648(0x5a3)]['set'](_0x530f84,{'unitID':_0x530f84,'type':_0xfa7475,'awaitingChangeset':_0x2a3c5e,'mutations':_0x1e8538,'rev':_0x2f9ad2}),this[_0x22d648(0x541)][_0x22d648(0x339)](_0x530f84)||this[_0x22d648(0x47c)](_0x530f84);}[_0x3b224c(0x47c)](_0x274d6f){const _0x16cf0d=_0x3b224c,_0xe93074=this[_0x16cf0d(0x3ff)]();_0xe93074===0x0?this[_0x16cf0d(0x41f)](_0x274d6f):this[_0x16cf0d(0x541)][_0x16cf0d(0x437)](_0x274d6f,setTimeout(()=>this[_0x16cf0d(0x41f)](_0x274d6f),_0xe93074));}[_0x3b224c(0x3ff)](){const _0x6c4bc7=_0x3b224c;var _0x462491;return(_0x462491=this['_configService'][_0x6c4bc7(0x469)](rn))!=null?_0x462491:Yn;}['_saveCache'](_0x29d5bf){const _0x5e0b3d=_0x3b224c,_0x2f774e=this[_0x5e0b3d(0x541)]['get'](_0x29d5bf);return _0x2f774e!==void 0x0&&window[_0x5e0b3d(0x598)](_0x2f774e),this[_0x5e0b3d(0x15a)][_0x5e0b3d(0x4c7)](At(_0x29d5bf),this['_cachedData']['get'](_0x29d5bf))[_0x5e0b3d(0x55b)](()=>this[_0x5e0b3d(0x541)][_0x5e0b3d(0x463)](_0x29d5bf));}async[_0x3b224c(0x191)](){const _0x40830d=_0x3b224c,_0x337e7f=[];this[_0x40830d(0x541)]['forEach']((_0x5af5e4,_0x2327b6)=>{const _0x296a47=_0x40830d;window[_0x296a47(0x598)](_0x5af5e4),_0x337e7f[_0x296a47(0x1a8)](this[_0x296a47(0x41f)](_0x2327b6)[_0x296a47(0x55b)](()=>{const _0x55c9f7=_0x296a47;this[_0x55c9f7(0x541)][_0x55c9f7(0x463)](_0x2327b6);}));}),await Promise[_0x40830d(0x31d)](_0x337e7f);}[_0x3b224c(0x4ba)](){const _0x19b205=_0x3b224c;this[_0x19b205(0x220)](this['_beforeCloseService'][_0x19b205(0x49a)](()=>{const _0x161e3d=_0x19b205;if(this['_saveTaskMap'][_0x161e3d(0x14d)])return this[_0x161e3d(0x57b)]['t'](_0x161e3d(0x38d));}));}},exports[_0x3b224c(0x42a)]=Ei([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x3b224c(0x599)]),Pe(0x2,ee[_0x3b224c(0x23a)]),Pe(0x3,a['Inject'](a['LocaleService'])),Pe(0x4,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)]))],exports[_0x3b224c(0x42a)]);function At(_0x9d449){const _0x25c53c=_0x3b224c;return _0x25c53c(0x5c4)+_0x9d449;}var bi=Object[_0x3b224c(0x209)],Ti=Object['getOwnPropertyDescriptor'],Ri=(_0x262777,_0x435248,_0x51b6db,_0x503f5a)=>{const _0x38e6c1=_0x3b224c;for(var _0x570deb=_0x503f5a>0x1?void 0x0:_0x503f5a?Ti(_0x435248,_0x51b6db):_0x435248,_0x541753=_0x262777[_0x38e6c1(0x2a8)]-0x1,_0x45d825;_0x541753>=0x0;_0x541753--)(_0x45d825=_0x262777[_0x541753])&&(_0x570deb=(_0x503f5a?_0x45d825(_0x435248,_0x51b6db,_0x570deb):_0x45d825(_0x570deb))||_0x570deb);return _0x503f5a&&_0x570deb&&bi(_0x435248,_0x51b6db,_0x570deb),_0x570deb;},Qe=(_0x5314a0,_0x4f22ac)=>(_0x2afb20,_0x3d4d11)=>_0x4f22ac(_0x2afb20,_0x3d4d11,_0x5314a0);function yi(_0x193b41){const _0x10bc5d=_0x3b224c,{unitID:_0x41e9be,mutations:_0x57212e}=_0x193b41;return{'unitId':_0x41e9be,'subUnitId':_0x57212e[0x0][_0x10bc5d(0x2be)][_0x10bc5d(0x4b4)]};}let ke=class{constructor(_0x306cf8,_0x293644,_0x36932b){const _0x1db4f9=_0x3b224c;this[_0x1db4f9(0x495)]=_0x306cf8,this[_0x1db4f9(0x5c9)]=_0x293644,this[_0x1db4f9(0x223)]=_0x36932b;}[_0x3b224c(0x372)](_0x5adf46){const _0x28c2cd=_0x3b224c;var _0x58f873,_0x133ea3,_0xaa190e,_0x124caa;const _0x4c13d9=this['_injector'][_0x28c2cd(0x273)](k[_0x28c2cd(0x5a7)]),{unitId:_0x20c513,subUnitId:_0x2941b0}=yi(_0x5adf46),_0x1e1694=_0x4c13d9[_0x28c2cd(0x32c)](_0x20c513)[_0x28c2cd(0x16f)](),_0x4b6c59=(_0x133ea3=(_0x58f873=this[_0x28c2cd(0x223)]['getUnit'](_0x20c513))==null?void 0x0:_0x58f873[_0x28c2cd(0x280)]())==null?void 0x0:_0x133ea3[_0x28c2cd(0x244)]();if(_0x1e1694['length']===0x0||!_0x20c513||!_0x2941b0)return;const _0x484ff5=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0x20c513,'subUnitId':_0x4b6c59,'selections':a[_0x28c2cd(0x3b9)][_0x28c2cd(0x4d6)](_0x1e1694)}}],_0x1df806=this['_transformService'][_0x28c2cd(0x16d)](_0x5adf46,_0x484ff5);if(!S[_0x28c2cd(0x4de)](_0x1df806))throw _0x1df806['error'];const _0x411552=(_0x124caa=(_0xaa190e=_0x1df806['m2Prime'][0x0])==null?void 0x0:_0xaa190e[_0x28c2cd(0x2be)])==null?void 0x0:_0x124caa['selections'];if(Array[_0x28c2cd(0x34b)](_0x411552)&&_0x411552['length']){if(_0x411552[_0x28c2cd(0x2a8)]===_0x484ff5[0x0][_0x28c2cd(0x2be)]['selections'][_0x28c2cd(0x2a8)]&&_0x411552[_0x28c2cd(0x49f)]((_0x2cd4aa,_0x4361e7)=>a[_0x28c2cd(0x44c)][_0x28c2cd(0x40d)](_0x2cd4aa[_0x28c2cd(0x40c)],_0x484ff5[0x0][_0x28c2cd(0x2be)]['selections'][_0x4361e7][_0x28c2cd(0x40c)])))return;this[_0x28c2cd(0x495)][_0x28c2cd(0x273)](a[_0x28c2cd(0x3d4)])[_0x28c2cd(0x5ad)](k['SetSelectionsOperation']['id'],{'unitId':_0x20c513,'subUnitId':_0x4b6c59,'selections':_0x411552});}}};ke=Ri([Qe(0x0,a[_0x3b224c(0x556)](a['Injector'])),Qe(0x1,S[_0x3b224c(0x180)]),Qe(0x2,a[_0x3b224c(0x5a1)])],ke);const qe=a[_0x3b224c(0x2da)]('univer-pro.collaboration-client.single-active-unit-service');var un=(_0x4ee732=>(_0x4ee732[_0x4ee732['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b224c(0x4df),_0x4ee732[_0x4ee732[_0x3b224c(0x266)]=0x1]=_0x3b224c(0x266),_0x4ee732))(un||{});const Nt=0x7530,Lt='ACTIVE_UNIT_EVENT_CHANNEL';class Oi extends a[_0x3b224c(0x52b)]{constructor(){const _0x52454a=_0x3b224c;super(),I(this,_0x52454a(0x1c6),a['Tools'][_0x52454a(0x143)]()),I(this,_0x52454a(0x4e6),new Set()),I(this,_0x52454a(0x40e),new Map()),I(this,'_heartbeatTimer',null),I(this,_0x52454a(0x394),new Map()),I(this,_0x52454a(0x45f),new Map()),this[_0x52454a(0x578)]();}[_0x3b224c(0x2fa)](){const _0x5a4dc8=_0x3b224c;super[_0x5a4dc8(0x2fa)](),this['_clearOtherTimers'][_0x5a4dc8(0x54f)]((_0xc1eba2,_0x3b28c2)=>this[_0x5a4dc8(0x29f)](_0x3b28c2)),this[_0x5a4dc8(0x420)]&&window[_0x5a4dc8(0x491)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x2ee4af){const _0x586eef=_0x3b224c;return this['_ensureSubject'](_0x2ee4af)[_0x586eef(0x3cc)](A[_0x586eef(0x1ee)]());}[_0x3b224c(0x2f5)](_0xd9daf7){const _0x8e3dd9=_0x3b224c;this['_selfUnitIDs'][_0x8e3dd9(0x14d)]===0x0&&this[_0x8e3dd9(0x20e)](),this[_0x8e3dd9(0x4e6)][_0x8e3dd9(0x594)](_0xd9daf7),this[_0x8e3dd9(0x2c3)]({'type':0x0,'memberID':this[_0x8e3dd9(0x1c6)],'unitIDs':[_0xd9daf7],'isForwarded':!0x1});}['disposeUnit'](_0x916d00){const _0x4f1d5a=_0x3b224c;this[_0x4f1d5a(0x4e6)][_0x4f1d5a(0x463)](_0x916d00),this['_selfUnitIDs']['size']===0x0&&this[_0x4f1d5a(0x420)]&&window['clearInterval'](this[_0x4f1d5a(0x420)]);}[_0x3b224c(0x578)](){const _0x5e5d0d=_0x3b224c;this[_0x5e5d0d(0x220)](a[_0x5e5d0d(0x597)](A[_0x5e5d0d(0x380)](window,'storage')[_0x5e5d0d(0x2de)](_0xd3cb4f=>{const _0x392750=_0x5e5d0d;if(_0xd3cb4f[_0x392750(0x217)]!==Lt||!_0xd3cb4f[_0x392750(0x3ac)])return;const _0x11ae45=JSON[_0x392750(0x3d3)](_0xd3cb4f['newValue']);this[_0x392750(0x5b8)](_0x11ae45);}))),window[_0x5e5d0d(0x240)]('unload',()=>this[_0x5e5d0d(0x2c3)]({'type':0x1,'memberID':this[_0x5e5d0d(0x1c6)],'unitIDs':Array['from'](this[_0x5e5d0d(0x4e6)])}));}[_0x3b224c(0x5b8)](_0x4e064b){const _0xcc9895=_0x3b224c;switch(_0x4e064b[_0xcc9895(0x5bb)]){case 0x0:this[_0xcc9895(0x368)](_0x4e064b);break;case 0x1:this[_0xcc9895(0x4c9)](_0x4e064b);break;case 0x2:this['_handleHeartbeatEvent'](_0x4e064b);break;}}[_0x3b224c(0x368)](_0x228fa9){const _0x2ed05f=_0x3b224c,{unitIDs:_0x23c843,memberID:_0x47c7cb,isForwarded:_0x1c8da3}=_0x228fa9;_0x23c843[_0x2ed05f(0x54f)](_0x175b5e=>{const _0x5bde44=_0x2ed05f;if(!_0x1c8da3&&this[_0x5bde44(0x40e)][_0x5bde44(0x339)](_0x175b5e)&&this[_0x5bde44(0x503)](_0x175b5e)[_0x5bde44(0x1e1)](0x1),!this[_0x5bde44(0x40e)][_0x5bde44(0x339)](_0x175b5e)||!this[_0x5bde44(0x40e)][_0x5bde44(0x273)](_0x175b5e)[_0x5bde44(0x339)](_0x47c7cb)){const _0x2c7d37=this[_0x5bde44(0x40e)]['get'](_0x175b5e)||new Set();_0x2c7d37[_0x5bde44(0x594)](_0x47c7cb),this[_0x5bde44(0x40e)][_0x5bde44(0x437)](_0x175b5e,_0x2c7d37),this['_scheduleClearOtherTimer'](_0x47c7cb);}}),_0x1c8da3||this[_0x2ed05f(0x2c3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2ed05f(0x4e6)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x61a46b){const _0x33c23c=_0x3b224c;this[_0x33c23c(0x29f)](_0x61a46b);const _0xd1eea4=window['setTimeout'](()=>{const _0x16b904=_0x33c23c;this[_0x16b904(0x40e)][_0x16b904(0x54f)](_0x4be683=>{const _0x1e24be=_0x16b904;_0x4be683[_0x1e24be(0x463)](_0x61a46b);});},Nt*0x2);this['_clearOtherTimers'][_0x33c23c(0x437)](_0x61a46b,_0xd1eea4);}['_removeClearOtherTimer'](_0x570b59){const _0x5b79f0=_0x3b224c;if(this['_clearOtherTimers'][_0x5b79f0(0x339)](_0x570b59)){const _0x35280a=this[_0x5b79f0(0x394)][_0x5b79f0(0x273)](_0x570b59);_0x35280a&&window[_0x5b79f0(0x598)](_0x35280a),this['_clearOtherTimers'][_0x5b79f0(0x437)](_0x570b59,null);}}['_handleLeaveEvent'](_0x4ea01b){const _0x2d81f2=_0x3b224c,{memberID:_0x394ee6,unitIDs:_0x195873}=_0x4ea01b;_0x195873[_0x2d81f2(0x54f)](_0x3a8a1c=>{const _0x340adc=_0x2d81f2;var _0x5f2ba8;const _0x131af3=this[_0x340adc(0x40e)][_0x340adc(0x273)](_0x3a8a1c);_0x131af3&&(_0x131af3[_0x340adc(0x463)](_0x394ee6),(_0x5f2ba8=this['_ensureSubject'](_0x3a8a1c))==null||_0x5f2ba8['next'](_0x131af3[_0x340adc(0x14d)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x394ee6);}['_handleHeartbeatEvent'](_0x5243fb){const _0x424576=_0x3b224c;this[_0x424576(0x467)](_0x5243fb['memberID']);}[_0x3b224c(0x2c3)](_0x2a418f){const _0x4b0677=_0x3b224c;localStorage['setItem'](Lt,JSON[_0x4b0677(0x52a)](_0x2a418f));}[_0x3b224c(0x20e)](){const _0x503ff4=_0x3b224c;this[_0x503ff4(0x420)]=window[_0x503ff4(0x164)](()=>{const _0x4e9180=_0x503ff4;this[_0x4e9180(0x2c3)]({'type':0x2,'memberID':this[_0x4e9180(0x1c6)]});},Nt);}[_0x3b224c(0x503)](_0x32e5d7){const _0x18f06d=_0x3b224c;return this[_0x18f06d(0x45f)][_0x18f06d(0x339)](_0x32e5d7)||this[_0x18f06d(0x45f)][_0x18f06d(0x437)](_0x32e5d7,new A[(_0x18f06d(0x33e))](0x0)),this['_unitStatus'][_0x18f06d(0x273)](_0x32e5d7);}}var Di=Object[_0x3b224c(0x209)],wi=Object[_0x3b224c(0x233)],Pi=(_0x144755,_0x55050e,_0x30572c,_0x899d40)=>{for(var _0xee9d7b=_0x899d40>0x1?void 0x0:_0x899d40?wi(_0x55050e,_0x30572c):_0x55050e,_0x4ac745=_0x144755['length']-0x1,_0x22efdf;_0x4ac745>=0x0;_0x4ac745--)(_0x22efdf=_0x144755[_0x4ac745])&&(_0xee9d7b=(_0x899d40?_0x22efdf(_0x55050e,_0x30572c,_0xee9d7b):_0x22efdf(_0xee9d7b))||_0xee9d7b);return _0x899d40&&_0xee9d7b&&Di(_0x55050e,_0x30572c,_0xee9d7b),_0xee9d7b;},et=(_0x3de419,_0x5327fd)=>(_0x2c7f79,_0x4bb80b)=>_0x5327fd(_0x2c7f79,_0x4bb80b,_0x3de419);let We=class{constructor(_0x1b2a0b,_0x25ff11,_0x520c3b){const _0x4e81f5=_0x3b224c;this[_0x4e81f5(0x495)]=_0x1b2a0b,this[_0x4e81f5(0x5c9)]=_0x25ff11,this[_0x4e81f5(0x1e7)]=_0x520c3b;}[_0x3b224c(0x399)](_0x276b53){const _0x3eca71=_0x3b224c;this[_0x3eca71(0x169)](_0x276b53);}[_0x3b224c(0x37f)](_0x3849e9){const _0x30ea83=_0x3b224c,{unitID:_0x392bdc}=_0x3849e9,{collaboration:_0x237c64}=this[_0x30ea83(0x1e7)][_0x30ea83(0x3ce)](_0x392bdc);if(_0x237c64[_0x30ea83(0x2a8)]===0x0)return _0x3849e9;let _0x1d4849=a[_0x30ea83(0x3b9)]['deepClone'](_0x3849e9[_0x30ea83(0x229)][0x0]);for(let _0x4d1f44=0x0;_0x4d1f44<_0x237c64[_0x30ea83(0x2a8)];_0x4d1f44++){const _0xfd03cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x237c64[_0x4d1f44][_0x30ea83(0x242)],..._0x237c64[_0x4d1f44][_0x30ea83(0x457)]}},_0x4ad44e=this[_0x30ea83(0x5c9)][_0x30ea83(0x38c)](_0x1d4849,_0xfd03cb,!0x1);if(S[_0x30ea83(0x290)](_0x4ad44e))throw _0x4ad44e['error'];_0x1d4849=_0x4ad44e[_0x30ea83(0x1d5)];}return{...a[_0x30ea83(0x3b9)][_0x30ea83(0x4d6)](_0x3849e9),'mutations':[_0x1d4849]};}[_0x3b224c(0x169)](_0xac80cb){const _0x17ed43=_0x3b224c,{unitID:_0x1b870c}=_0xac80cb,{history:_0x555339,collaboration:_0x5568cc}=this[_0x17ed43(0x1e7)]['getStateCache'](_0x1b870c);if(_0x555339['length']===0x0&&_0x5568cc['length']===0x0)return;const _0x10a8c9=[],_0x57c5f5=[];let _0x409add=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]),_0xd4902c=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]);for(let _0x379c9f=_0x555339[_0x17ed43(0x2a8)]-0x1;_0x379c9f>=0x0;_0x379c9f--){const _0x1f0ba4={'id':_0x17ed43(0x59c),'params':{'unitId':_0x555339[_0x379c9f][_0x17ed43(0x242)],..._0x555339[_0x379c9f]['undoState']}},_0x4a462d={'id':_0x17ed43(0x59c),'params':{'unitId':_0x555339[_0x379c9f]['unitId'],..._0x555339[_0x379c9f]['redoState']}},_0x55e39a=this['_transformService'][_0x17ed43(0x38c)](_0x409add,_0x1f0ba4,!0x1),_0x314463=this['_transformService'][_0x17ed43(0x38c)](_0xd4902c,_0x4a462d,!0x1);if(S[_0x17ed43(0x290)](_0x55e39a))throw _0x55e39a[_0x17ed43(0x423)];if(S['isTransformMutationFailure'](_0x314463))throw _0x314463[_0x17ed43(0x423)];_0x10a8c9[_0x17ed43(0x5c8)]({..._0x555339[_0x379c9f],'undoState':_0x55e39a[_0x17ed43(0x3f1)][_0x17ed43(0x2be)],'redoState':_0x314463['m2Prime'][_0x17ed43(0x2be)]}),_0x409add=_0x55e39a[_0x17ed43(0x1d5)],_0xd4902c=_0x314463['m1Prime'];}_0x409add=a['Tools'][_0x17ed43(0x4d6)](_0xac80cb['mutations'][0x0]),_0xd4902c=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]);for(let _0x47a2cc=_0x5568cc[_0x17ed43(0x2a8)]-0x1;_0x47a2cc>=0x0;_0x47a2cc--){const _0x1d27d5={'id':_0x17ed43(0x59c),'params':{'unitId':_0x5568cc[_0x47a2cc][_0x17ed43(0x242)],..._0x5568cc[_0x47a2cc]['undoState']}},_0x458b23={'id':_0x17ed43(0x59c),'params':{'unitId':_0x5568cc[_0x47a2cc][_0x17ed43(0x242)],..._0x5568cc[_0x47a2cc][_0x17ed43(0x457)]}},_0xaa3885=this['_transformService']['transformMutation'](_0x409add,_0x1d27d5,!0x1),_0x5aeab3=this['_transformService']['transformMutation'](_0xd4902c,_0x458b23,!0x1);if(S[_0x17ed43(0x290)](_0xaa3885))throw _0xaa3885[_0x17ed43(0x423)];if(S[_0x17ed43(0x290)](_0x5aeab3))throw _0x5aeab3[_0x17ed43(0x423)];_0x57c5f5[_0x17ed43(0x5c8)]({..._0x5568cc[_0x47a2cc],'undoState':_0xaa3885[_0x17ed43(0x3f1)][_0x17ed43(0x2be)],'redoState':_0x5aeab3[_0x17ed43(0x3f1)][_0x17ed43(0x2be)]}),_0x409add=_0xaa3885[_0x17ed43(0x1d5)],_0xd4902c=_0x5aeab3[_0x17ed43(0x1d5)];}this[_0x17ed43(0x1e7)]['setStateCache'](_0x1b870c,{'history':_0x10a8c9,'collaboration':_0x57c5f5});}};We=Pi([et(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),et(0x1,S['ITransformService']),et(0x2,a[_0x3b224c(0x556)](J['DocStateChangeManagerService']))],We);function dn(_0x299080){const _0x24f878=_0x3b224c;let _0x2bcc47='';for(const _0x12c24f of _0x299080){const {startOffset:_0x2e1c89,endOffset:_0x1e0dc4,isActive:_0x9f1b2a,rangeType:_0x2eeb99,segmentId:_0x17ceb5,segmentPage:_0x2a16f1}=_0x12c24f;_0x2bcc47[_0x24f878(0x2a8)]&&(_0x2bcc47+=','),_0x2bcc47+=_0x2e1c89+':'+_0x1e0dc4+':'+(_0x9f1b2a?'1':'0')+':'+_0x2eeb99+':'+_0x17ceb5+':'+_0x2a16f1;}return _0x2bcc47;}function Ui(_0x2d644b){const _0x5baf9f=_0x3b224c,_0x19e58f=_0x2d644b[_0x5baf9f(0x32b)](','),_0x48e1ef=[];for(const _0xece1fc of _0x19e58f){const [_0x1baf91,_0x20f4e4,_0x1273d1,_0x4dc1f1,_0x10b1eb,_0x1898ba]=_0xece1fc[_0x5baf9f(0x32b)](':');_0x48e1ef[_0x5baf9f(0x1a8)]({'startOffset':Number(_0x1baf91),'endOffset':Number(_0x20f4e4),'collapsed':_0x1baf91===_0x20f4e4,'isActive':_0x1273d1==='1','rangeType':_0x4dc1f1===a[_0x5baf9f(0x3dd)][_0x5baf9f(0x4a2)]?a[_0x5baf9f(0x3dd)][_0x5baf9f(0x4a2)]:a['DOC_RANGE_TYPE'][_0x5baf9f(0x52f)],'segmentId':typeof _0x10b1eb==_0x5baf9f(0x404)?String(_0x10b1eb):'','segmentPage':Number(_0x1898ba!=null?_0x1898ba:-0x1)});}return _0x48e1ef[_0x5baf9f(0x417)](_0x5f3fd0=>_0x5f3fd0[_0x5baf9f(0x592)])||(_0x48e1ef[0x0][_0x5baf9f(0x592)]=!0x0),_0x48e1ef;}class Rt extends a[_0x3b224c(0x274)]{constructor(){const _0x1ea62a=_0x3b224c;super(...arguments),I(this,_0x1ea62a(0x39b),new A[(_0x1ea62a(0x33e))](null)),I(this,_0x1ea62a(0x14c),this['_collabCursorState$'][_0x1ea62a(0x4f7)]());}[_0x3b224c(0x46a)](_0x200083){const _0x159349=_0x3b224c,{unitID:_0x4922e2,memberID:_0x541566,textRanges:_0x2ec12f}=_0x200083,_0x1dc443=dn(_0x2ec12f);if(_0x1dc443==='')return;const _0x3bcd51={'unitID':_0x4922e2,'memberID':_0x541566,'selection':_0x1dc443};this[_0x159349(0x39b)][_0x159349(0x1e1)](_0x3bcd51);}}function _0xce47(){const _0x1e18c5=['getConfig','syncEditingCollabCursor','charAt','_minBufferSize','_iv','_singleActiveUnitService','_resendTimer','collaboration-session-retry','react.element','cfg','originalMeta','find','setWaitCount','toLowerCase','override','onTransformSelections','unit','url','_resendWithTimeout','_scheduleSaving','x-univer-host','status$','OnLineSingle','sessionStatus$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','roles','UUID','_socketMessageSubscription','_transformPreviousActiveRange','_memberService','onlineStatusTitle','COMPLETION_FINISHED','_getScale','APPLY_NON_SEQUENTIAL_REVISION','BlockCipherMode','createElement','getParam','_queuedRemoteChangesets','NEW_CHANGESETS','_localCacheService','clearInterval','_doReset','CommentService','ALREADY_EXISTS','_injector','[PendingState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','interceptor','getFocusedUnit','registerBeforeClose','setShapeProps','randomUUID','BuiltInUIPart','0\x200\x2017\x2016','every','selections','not_collab','TEXT','collaboration.closeRoom','change$','getColor','WebURLService','_schedule','textRanges','eventID','\x20-\x20','save','_anchor','Undefined','LocaleService','beginPath','ceil','/unit/','RefRangeService','UNIVER_SLIDE','subUnitId','_setupSubUnitSync','AWAITING','encode','_removeCollabCursors','_refRangeService','_setupBeforeClosingHandler','Could\x20not\x20dynamically\x20require\x20\x22','iterations','_toggleOnline','/new_changes','duration','liveShareNewHost','SNAPSHOT_SERVER_URL_KEY','univer-offline','getCurrentUnitForType','incrementRevOfUnit','getResourcesRequest','message$','setItem','getCollabEntity$','_handleLeaveEvent','_transformRemoteChangesetByStateCache','random','unknown','concatMap','body','toString','\x0aAfter:\x20','_colorIndex','font','Tooltip','startsWith','getTime','deepClone','_beforeCloseService','RECV','BASE64','algo','_oKey','Utf8','sheetId','isTransformMutationsWithChangesetSuccess','NO_OTHER_CLIENTS_EDITING','synced','_color','OFFLINE','UserManagerService','...','getOffsetConfig','_selfUnitIDs','SHOULD_CLOSE_CONN','mapDocumentTypeToUniverType','encryptBlock','_loadSheet','keySize','create','COMPRESS_MUTATION_SEND','listRoles','code','LOCAL_CACHE_INTERVAL_KEY','transformByState','resend','_httpService','APPLY_REJECT','@univerjs/docs','randomBytes','asObservable','InsertRowCommandId','_sheetTransformSelectionsService','restore','currentSkeleton$','PERMISSION_REJ','WorkbookEditablePermission','/role','_transformStack','text','charCodeAt','USERS_LEAVE','_ensureSubject','COMPRESS_MUTATION_APPLY','_onCursorUpdate','execute','CollaborationStatus','UNIVER_DOC','_initCloseConn','PSEUDO_FETCH_MISSING_RESULT','substr','_clearLocalCache','send','joinRsp','serializeCombRequest','_ws','AuthzIoHttpService','mapTo','name','_hasher','isTransformChangesetsSuccess','_userManagerService','registerHTTPInterceptor','fromEventSubject','title','_backgroundColor','_transformUndoRedoStack','_nDataBytes','_telemetryService','SheetCollaborationEntity','width','decrypt','socketService','verdancy600','fetchMissingChangesets','enableAuthServer','ITelemetryService','_createInitialStateImpl','_tryEnsureSocket','shouldCloseConn','pluginName','stringify','Disposable','_socketReady','onMissedChangesetFetched','onRemoteChangeset','RECT','getCollabEntity','_online','debounceTime','blockSize','ImageUploadStatusType','_getAnchorBounding','ColorKit','call','docStateChange$','deserializeRangeWithSheet','APPLY_REVISION_CONFILICT','_sendHeartbeat','onTransformState','socket\x20close','searchParams','conflict','awaiting_with_pending','_saveTaskMap','{fileID}','sessionStatus','triggerDblclick','UNKNOWN_CODE','AWAITING_WITH_PENDING','handleInsertRangeMoveDown','registerComponent','CommandType','_commentService','_roomMembers','toRgbString','session.collaboration-timeout','compose','forEach','engine','enc','_exhaustRemoteChangesetQueue','_substituteRedoStack','function','_syncEditingCollabCursorService','Inject','/-/object/list','height','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_commentUpdate$','then','entries','useRef','jsxs','IURLService','createInstance','_cursor','fillText','Decryptor','_getAPIPrefix','_submitChangeset','handleMoveRange','filter','collabStatus.conflict','IRenderManagerService','DeleteRangeMoveUpCommandId','_getLoginPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','readAsDataURL','_snapshotServerService','[UniverCollaborationClientPlugin]','_initDependencies','HEADER_MENU','_notificationService','SEND_CHANGESET_TIMEOUT','getSheetBySheetId','_waitForHeartbeatResponse','Latin1','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_init','INTERNAL_ERROR','_getSendChangesetTimeout','_localeService','transformIMECache','_candidateSocket','MUTATION','handleInsertCol','_shouldReportTelemetry','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','LEAVE','LICENSE_DISTRO_REJECTED','Rect','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','__creator','UnitSnapshot','_remoteChangesetQueue','div','DesktopCollaborationStatusDisplayController','_drawRectRange','_key','getCurrentRevOfUnit','onRemoteAck','takeUntil','session.room-full','setParam','isActive','round','add','univer-online','_startTelemetryCollaborationNewChangeset','toDisposable','clearTimeout','ILocalStorageService','_undoStacks','red300','doc.mutation.rich-text-editing','_isPermissionRej','ThresholdInterceptorFactory','18PjdWDx','_initRequestHeader','IUniverInstanceService','backgroundColor','_cachedData','_replaceFileID','IDLE','_getDownloadEndpointURL','SheetsSelectionsService','processBlock','ENSURE_SNAPSHOT_EXECUTION','patch','FromArray','transformStack\x20failed!','executeCommand','ILogService','lib','_change$','on-line-single','c2Prime','CHANGESET_REVISION_CONFILICT','forwardRef','_socket$','[OfflineState]:\x20received\x20changeset.','reduce','_handleEvent','pending','memberID','type','createEncryptor','csAckEvent','displayName','_refreshCollabCursors','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','UniverCollaborationClientPlugin','replaceState','_sendingTimer','unit-cache-','startTime','_onUserJoin','MoveRangeCommandId','unshift','_transformService','HttpImport','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','@univerjs/telemetry','Fragment','_changesetReqId','_sheetSkeletonManagerService','updatePermissionObjEvent','pad','revision','_unitID','\x0aCurrent:\x20','resourceIDs','Base64','jsx','CollaborationSessionService','UniverNetworkPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MemberService','focused$','attrs','onTransformRemoteChangesetByStateCache','requestParams','conflict.content','_prevBlock','collaboratorID','@univerjs-pro/collaboration','BufferedBlockAlgorithm','DocSelectionManagerService','_throwTelemetryCollaborationNewChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','listCollaborators','show','result','CollaborationEvent','/rev/','objects','getViewport','_logService','for','json','LICENSE_MAX_UNITS_EXCEEDED','hide','Subject','saveSnapshot','_onCombEvent','_configService','generateRandomId','DocIMEInputManagerService','_clearRedo','registerDependencies','collaborators','onReady','unitId\x20is\x20not\x20found','SNAPSHOT_INVALID_SNAPSHOT','_createHelper','collabCursorState$','size','[FetchMissState]','awaiting','/allowed','DataLoaderController','HttpExport','toggleOffline','_handler','_permissionService','fromCharCode','Injector','getSheetBlock','BlockCipher','_localStorageService','salt','none','HTTPService','_univerInstanceService','sheets','IConfigService','loadDoc','gold400','complete','setInterval','_iKey','urlChange$','ERROR_IMAGE','_acknowledgedAwaitingChangeset','_transformHistoryAndStateStack','NoPadding','makeDirty','_onRemoteRetry','transformMutationsWithChangeset','getActiveRange','getCurrentSelections','APPLY_PERMISSION_DENIED','SnapshotService','getUndoRedoMutationParamsCache','@univerjs/rpc','LICENSE_IMPORT_SIZE_EXCEEDED','_cursorShapes','_retryCount','Warning','measureText','_transformIMECache','_updateCollabCursors','object','clone','commentUpdate$','POST','append','ITransformService','HEARTBEAT_TIMEOUT_KEY','UPDATE_CURSOR','_status$','VIEWPORT_KEY','IRemoteInstanceService','Module','Error','Cipher','take','MergeInterceptorFactory','list','reject','_sessionStatus$','_onRefRangeChange','__esModule','_xformMode','exhaustSavingTask','post','updateMember','DisposableCollection','padding','_decreaseWaiting','enableOfflineEditing','concat','[CollaborationSession]','saveImage','onStateChange','currentTheme$','dispose$','@univerjs/drawing','RichTextEditingMutation','_joinRoom','downloadEndpointUrl','authzUrl','HELLO','indexOf','fetchMiss','MessageType','mergeOverrideWithDependencies','push','SessionStatus','blue400','getVpScrollXYInfoByPosToVp','CONNECTOR_DATA_TOO_LARGE','_onRemoteRejected','HMAC','prototype','HmacSHA1','_disableEditing','_getCurrentRevision','close','deserializeToCombResponse','objectActions','getLatestCsReqIdBySid','fill','saveChangeset','LIVESHARE_OPERATION','_changesetSessionId','debounce','JOIN','_onOffline','getItem','close$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getDocRanges','registerOnClose','addObject','_checkMissing','InsertSheetMutation','_id','transformChangesets','getTypeOfUnitDisposed$','_collabSessionService','_messageService','number','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','1em','_incrementRevisionNumber','encodeURIComponent','CollaborationController','MSG_FOR_ERROR','resolve','InsertColCommandId','getMergeData','m1Prime','textEncoder','getUnitType','YUUMI_RATE_OVER_LIMIT','Base','uploadFileServerUrl','_updateLocalCursor','2765020dPfJeo','fromCollab','closeSession','hidden','getDeserializedSheetBlock','next','ciphertext','DEFAULT_FILE_NAME','cursorInfo','WordArray','UniverIcon','_docStateChangeManagerService','0\x200\x2016\x2016','onSendChangeset','c1Prime','permission.title','reset','CollaborationEntity','distinctUntilChanged','finalize','actions','NOT_FOUND','_roomMembers$','_executeRemoteChangeset','catch','_transformUndoredo','endColumn','propertyIsEnumerable','_name','updatePermissionPoint','_sender','DocStateChangeManagerService','addObjects','startRow','hasOwnProperty','Hex','NOT_COLLAB','registerRefRange','_socketService','url(#on-line-single_clip0_910_349)','getInterceptPoints','fetchThroughInterceptors','ReplaySubject','crypto','image/jpg','defineProperty','1MYCGHE','init','xlink:href','confirm','_scheduleHeartbeat','INGEST','collabStatus.synced','newCsEvent','_append','ivSize','collab-rect-range-','_drawAnchor','_clearTimeoutTimer','key','_createHmacHelper','_DEC_XFORM_MODE','univerjs-icon\x20univerjs-icon-','_scheduleTimestamp','clipPath','cmd','liveShareOperation','CHANGESET_REJ','disposeWithMe','_sessions','words','_instanceService','onPointerEnter$','EvpKDF','createDecryptor','infoRsp','getImage','mutations','/object/','_collabCursorController','_initStatusListener','getUnitId','SheetCollabCursorShape','updateCollaborator','_substituteUndoStack','_entityInit$','__Key__','getOwnPropertyDescriptor','Shape','createSocket','unitID','pushState','onCommentUpdate','snapshotServerUrl','IBeforeCloseService','SheetSkeletonManagerService','_invKeySchedule','_session','onMouseMove','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','addEventListener','debug','unitId','_renderManagerService','getSheetId','@univerjs/core','?url=','_assignedColors','[SyncedState]:\x20received\x20acknowledgement.','PENDING','JOINING','_rescheduleHeartbeat','onload','extend','collabWebSocketUrl','icon','reqId','_getRedoStack','refreshPermission','mode','includes','_startCollaboration','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','current','MD5','objectType','parseProtocolChangeset','connection\x20error','sigBytes','#fff','getSheetObject','_collaborationTimeoutTimer','@univerjs/sheets-ui','target','disableLocalCache','Vector2','bind','fillStyle','OTHER_CLIENTS_EDITING','_textBubble','22811041CsDCZq','collabSubmitChangesetUrl','CHANGESET_SHOULD_RETRY','onTransformIME','/universer-api/authz','image/jpeg','HTTPRequest','_initMergeInterceptor','_getSheetObject','format','unsubscribe','get','RxDisposable','touchDependencies','state','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','saveOfflineData','_telemetryInfo','setCurrentUser','handleInsertRangeMoveRight','LIVESHARE_NEW_HOST','href','/-/object/-/batch_allowed','_state$','getActiveSheet','fetch_missing','@univerjs/design','map','univer-online-status-title','handleInsertRow','colorChannel1','?size=','open$','EffectRefRangId','_mode','&source=','flatMap','_replayCachedMutations','onPointerMove$','drawWith','isTransformMutationFailure','getTypeOfUnitAdded$','[CollaborationSessionService]','readInt32LE','defs','method','_lockTransition','_tryReconnect','toggleOnline','RETRY_CONNECTING_MAX_COUNT_KEY','_draw','[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.','LOCAL_CACHE_INTERVAL','_initEventListeners','getCoordByCell','_removeClearOtherTimer','subunit','delay','socket\x20open.','loadOfflineData','YUUMI_UNABLE_LOAD_URL','UnitEmbedded','_shapes','updateOfflineData','length','_awaitingChangeset','_createHandler','_collaborationSessionService','fillRule','combineLatest','_updateURLWithCurrentState','getMember','IUndoRedoService','_commandService','&to=','findNodePositionByCharIndex','TEXT_RANGE_LAYER_INDEX','HmacMD5','roomInfos','_onRecvEvent','InsertRangeMoveRightCommandId','_range','_initCommandExecutedListener','_onLocalMutation','collaMsg','currentColor','params','UNKNOWN_CMD','min','COMMENT_UPDATE','SerializableCipher','_send','_pendingMutations','setActiveRange','_resendTimeout','retryConnectingInterval','row','HEARTBEAT_TIMEOUT','LIVESHARE_REQUEST_HOST','repeat','assign','stopTime','[OfflineState]:\x20received\x20rejection.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','sid','updateCursorEvent','RemoveColCommandId','OpenSSL','_document','IMessageService','hasher','_transformRemoteChangesetByIMECache','onTransformRemoteChangesetByIMECache','saveSheetBlock','createIdentifier','status','_revisionService','_getSnapshotAPIPrefix','subscribe','SUBMIT_CHANGESET','_hover','_imageSourceCache','SnapshotServerOverHTTPService','_registerDependencies','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActivateCommand','permission.content','HEARTBEAT','removeMember','routeKey','hostname','_loadDoc','[OfflineState]:\x20received\x20acknowledgement.','from','$super','_onConflict','bottom','_updateSubUnitFromURLParams','getCollabCursors$','FAIL','removeParam','editingUnit','_doFinalize','AUTHZ_URL_KEY','deleteCollaborator','_onConnectionOpen','dispose','cursorInfo$','exports','Univer','_compressMutationService','skeleton','onlineStatusIcon','/collaborator','Plugin','_listenToOnlineEvent','slice','endRow','setAlpha','shareReplay','_clearCollaborationTimeoutTimer','onSyncEditingCollabCursor','ImageIoService','getCellPositionByOffset','_snapshotService','_toggleOffline','_docTransformSelectionsService','off-line-single_clip0_910_343','unpad','_updateLocalCache','UNDEFINED','objectID','switchMap','mixIn','decryptBlock','_registerRenderDependencies','floor','_unlockTransition','UNIVER_PROJECT','USERS_ENTER','UPDATE_PERMISSION_OBJ','all','Unknown\x20user','_cursorInfo$','on-line-single_clip0_910_349','getAllMembers','rxjs/operators','_onMessage','SetSelectionsOperation','setTimeout','assignAColorForMemberID','VIEW_MAIN','contains','appendMutation','transform','split','getWorkbookSelections','Encryptor','_doCryptBlock','handleDeleteRangeMoveUp','error$','onlyLocal','transformUndoRedo','collab-text-range-','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getRenderById','&assign=','SEND_CHANGESET_TIMEOUT_KEY','clamp','has','SNAPSHOT_HAS_BEEN_REMOVED','allowed','collabStatus.fetchMiss','collabStatus.notCollab','BehaviorSubject','RevisionService','lineTo','_clearUndo','put','_context','\x20to\x20','univer-online-status','onRemoteRetry','_disabled','_collaborationController','getCurrentUser','[PendingState]:\x20received\x20acknowledgement.','isArray','CONFLICT','ImageSourceType','data','ERROR_IMAGE_TYPE','WebSocketService','off-line-single','51393YmuyJL','userID','sequenceExecute','_uiPartsService','tag','_initResize','/fetchmissing?from=','SHA1','useDependency','substring','/resources','isTransformMutationsWithChangesetFailure','CHANGESET_ACK','putCollaborators','getOwnPropertySymbols','_urlService','6ihhdBi','_getMergeRange','_clearScheduledTask','reconnect','getSkeleton','update','_handleJoinEvent','setConfig','with','defaultProps','IUIPartsService','_startDocCollabCursor','IPermissionService','ws://127.0.0.1:8000/universer-api/comb/connect','compute','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','transformSelections','UNIVER_UNKNOWN','_getAPIPrefixPath','2246SqwlXr','requireSession','_sendHeartbeatTimer','_state','setShowComponents','3516784GLeXHw','url(#off-line-single_clip0_910_343)','responseType','ERROR_EXCEED_SIZE','APPLY_DUPLICATED','transformRemoteChangeset','fromEvent','column','ReactCurrentOwner','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','max','@univerjs/network','ranges','_onCursorDelete','getUnhiddenWorksheets','labelPosition','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','transformMutation','collaboration-client.offline-data-not-saved','LIVESHARE_TERMINATE','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','getRangePointData','_type','INVALID_ARGUMENT','reverse','_clearOtherTimers','SUCCUSS','event$','svg','subscribeEvent','transformStateCache','_retryConnectingTimer','_collabCursorState$','M0\x200H16V16H0z','onStarting','handleDeleteRangeMoveLeft','sin','/block/','parseChangesetToProtocol','_docTransformStateCacheService','ONLINE','collaboration.single-unit.warning','isPermissionRej','_http','_collaborationPaused','UNAUTHENTICATED','_process','onRemoteRej','color','newValue','state$','/universer-api/stream/file/upload','_members','PasswordBasedCipher','UniverInstanceType','connectInjector','collab-client.tooltip.reconnect','UNRECOGNIZED','_docSyncEditingCollabCursorService','clear','_data','getMemberID','Tools','_drawTextRange','_transformStateCache','translate(.97)','_createInitialState','COLLAB_SUBMIT_CHANGESET_URL_KEY','src','_applyRemoteChangeset','baseRev','location','awaitingChangeset','Error\x20on\x20receiving\x20event','_keyPriorReset','_themeService','arc','_hideTimer','/object','session','_showConflictNotification','pipe','_scene','getStateCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collaboration_new_changeset','_updateStatus','symbol','parse','ICommandService','online','merge','values','_onUserLeave','_onFetchMissResult','[DataLoaderController]','_timeoutTimer','history','DOC_RANGE_TYPE','univer-online-status-icon','getValue','ThemeService','Optional','idSuffix','signUrlServerUrl','_createSocket','_initUnitPermissionChange','_hovered','defIds','editing\x20status\x20changed\x20to','offline','path','msCrypto','_waitCount','rgba(255,\x20255,\x20255,\x200.01)','black','ISnapshotServerService','_event$','m2Prime','_handleHover','collaboration-client.config','registerRenderModule','addImageSourceCache','_entities','rxjs','onlineStatus','_map','_labelPosition','_getUndoStack','YUUMI_URL_COL_OUT_OF_RANGE','SYNCED','onCommandExecuted','_getSaveTimeout','_hash','RemoveRowCommandId','className','_undoRedoService','string','capture','SetDocZoomRatioOperation','CompressMutationService','AES','_getSignURL','_eventUnsubscribe','children','range','equals','_unitOnClients','commentUpdateEvent','selection','_lastPointer','getAncestorScale','470230exPyUq','RETRY_CONNECTING_MAX_COUNT','_updateState','_transitionLocked','some','_transformSelections','now','_removeRoom','_cursors','_socket','StreamCipher','FileId','_saveCache','_heartbeatTimer','useObservable','localeService','error','replace','roomMembers$','byteLength','4053056oQbuqy','_getCtorByUniverType','_onJoinRoomEvent','LocalCacheService','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_doProcessBlock','_reverseMap','CipherParams','encrypt','IImageIoService','TOO_MANY_REQUESTS','default','@univerjs/engine-formula','_docTransformIMECacheService','RegularPolygon','_cipher','set','YUUMI_SUBSCRIPTION_NOT_FOUND','EXCHANGE_SIGN_URL_SERVER_URL_KEY','members','kdf','file','_initStatusComponent','image/bmp','_anchorDot','auth.needGotoLoginAlert','_fetchMissChangesets','Hasher','buffer','ref','SetTextSelectionsOperation','CollaborationSocketService','/universer-api/snapshot','rng','_ENC_XFORM_MODE','apply','_onConnectionFailed','Rectangle','_keySchedule','pauseCollaboration','_onRemoteACK','_colorAssignService','DocCollaborationEntity','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','csShouldRetryEvent','COLORS','_onRemoteChangeset','20GVqUgu','redoState','getRandomValues','@univerjs/sheets','jiqing500','startColumn','splice','\x20in\x20_schedule.','join','_unitStatus','UNIVER_SHEET','_HTTPService','LOGIN_URL_KEY','delete','DeleteRangeMoveLeftCommandId','_docSkeletonManagerService','CollaborationSession','_scheduleClearOtherTimer','FETCH_MISSING'];_0xce47=function(){return _0x1e18c5;};return _0xce47();}var Mi=Object[_0x3b224c(0x209)],Ai=Object[_0x3b224c(0x233)],Ni=(_0x11ce51,_0x1eba6f,_0x190ba4,_0x1c2f6b)=>{const _0x34d155=_0x3b224c;for(var _0x33382b=_0x1c2f6b>0x1?void 0x0:_0x1c2f6b?Ai(_0x1eba6f,_0x190ba4):_0x1eba6f,_0x38ae9b=_0x11ce51[_0x34d155(0x2a8)]-0x1,_0x5c1cb2;_0x38ae9b>=0x0;_0x38ae9b--)(_0x5c1cb2=_0x11ce51[_0x38ae9b])&&(_0x33382b=(_0x1c2f6b?_0x5c1cb2(_0x1eba6f,_0x190ba4,_0x33382b):_0x5c1cb2(_0x33382b))||_0x33382b);return _0x1c2f6b&&_0x33382b&&Mi(_0x1eba6f,_0x190ba4,_0x33382b),_0x33382b;},xt=(_0x303fd1,_0x4576fc)=>(_0x15cbcf,_0x42df73)=>_0x4576fc(_0x15cbcf,_0x42df73,_0x303fd1);let Fe=class{constructor(_0x202f54,_0x43703f){const _0x3cdc74=_0x3b224c;this[_0x3cdc74(0x495)]=_0x202f54,this[_0x3cdc74(0x5c9)]=_0x43703f;}[_0x3b224c(0x372)](_0x4343de){const _0x275d7f=_0x3b224c;var _0x4b2f36;const _0x4f1693=this['_injector'][_0x275d7f(0x273)](ye[_0x275d7f(0x130)]),_0x252d78=(_0x4b2f36=_0x4f1693[_0x275d7f(0x1c1)]())!=null?_0x4b2f36:[];if(_0x252d78[_0x275d7f(0x2a8)]===0x0)return;const _0x3d4529=_0x4343de[_0x275d7f(0x236)],_0x2902b2=[{'id':_0x275d7f(0x59c),'params':{'unitId':_0x3d4529,'actions':null,'textRanges':_0x252d78}}],_0x406d73=this[_0x275d7f(0x5c9)][_0x275d7f(0x16d)](_0x4343de,_0x2902b2);if(!S[_0x275d7f(0x4de)](_0x406d73))throw _0x406d73[_0x275d7f(0x423)];const _0x1066ed=_0x406d73[_0x275d7f(0x3f1)][0x0][_0x275d7f(0x2be)][_0x275d7f(0x4a8)];Array[_0x275d7f(0x34b)](_0x1066ed)&&_0x1066ed[_0x275d7f(0x2a8)]&&_0x4f1693['replaceDocRanges'](_0x1066ed,{'unitId':_0x3d4529,'subUnitId':_0x3d4529},!0x1);}};Fe=Ni([xt(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),xt(0x1,S[_0x3b224c(0x180)])],Fe);const Li=new Set([k[_0x3b224c(0x1c5)]['id']]);function jt(_0x4a9945,_0x2a9c86,_0x33a4d6,_0x5b269a,_0x5375f6){const _0x2e7e1e=_0x3b224c;var _0x559912,_0x39abae,_0x26c1b0,_0x7c0ffc;const _0xa184ca=[];for(const _0x527b91 of _0x4a9945)if(Li[_0x2e7e1e(0x339)](_0x527b91['id'])){if(_0xa184ca[_0x2e7e1e(0x2a8)]>0x0)break;_0xa184ca[_0x2e7e1e(0x1a8)](_0x527b91);break;}else _0xa184ca[_0x2e7e1e(0x1a8)](_0x527b91);const _0x4a3428=(_0x39abae=(_0x559912=_0x5375f6['getCurrentUser']())==null?void 0x0:_0x559912[_0x2e7e1e(0x353)])!=null?_0x39abae:_0x2e7e1e(0x4cc),_0x9036c6=(_0x7c0ffc=(_0x26c1b0=_0x5375f6[_0x2e7e1e(0x349)]())==null?void 0x0:_0x26c1b0[_0x2e7e1e(0x5ba)])!=null?_0x7c0ffc:'unknown';return{'changeset':{'unitID':_0x2a9c86,'type':S['mapDocumentTypeToUniverType'](_0x33a4d6[_0x2e7e1e(0x1d7)](_0x2a9c86)),'baseRev':_0x5b269a[_0x2e7e1e(0x58d)](_0x2a9c86),'revision':0x0,'userID':_0x4a3428,'memberID':_0x9036c6,'mutations':_0xa184ca},'pendingMutations':_0x4a9945[_0x2e7e1e(0x304)](_0xa184ca[_0x2e7e1e(0x2a8)])};}function xi(_0x48c5a2,_0x1a7caa,_0x6a8cbd,_0xee3443,_0x1ec09b){const _0x3eccd0=_0x3b224c;var _0x3e722d,_0x5db658,_0x40035d,_0x28e695;const _0x27ff59=[_0x48c5a2['reduce']((_0x50036c,_0xbdcf0c)=>{const _0x2e46ae=_0x1276;var _0x1600e7;const {id:_0x446ca8}=_0x50036c,{id:_0x5be8d0,type:_0x58d678}=_0xbdcf0c,_0x55ec1c=(_0x1600e7=_0x50036c[_0x2e46ae(0x2be)])!=null?_0x1600e7:{'actions':null},_0x3e6ca7=_0xbdcf0c[_0x2e46ae(0x2be)];if(_0x446ca8&&_0x446ca8!==_0x5be8d0)throw new Error(_0x2e46ae(0x2cf)+_0x446ca8+_0x2e46ae(0x4aa)+_0x5be8d0+'.');return{..._0x50036c,'id':_0x5be8d0,'type':_0x58d678,'params':{'unitId':_0x3e6ca7[_0x2e46ae(0x242)],'textRanges':_0x3e6ca7[_0x2e46ae(0x4a8)],'actions':a['JSONX'][_0x2e46ae(0x54e)](_0x55ec1c[_0x2e46ae(0x1f0)],_0x3e6ca7[_0x2e46ae(0x1f0)])}};},{})],_0x4c2c6e=(_0x5db658=(_0x3e722d=_0x1ec09b['getCurrentUser']())==null?void 0x0:_0x3e722d['userID'])!=null?_0x5db658:_0x3eccd0(0x4cc),_0x3b6556=(_0x28e695=(_0x40035d=_0x1ec09b[_0x3eccd0(0x349)]())==null?void 0x0:_0x40035d[_0x3eccd0(0x5ba)])!=null?_0x28e695:_0x3eccd0(0x4cc);return{'changeset':{'unitID':_0x1a7caa,'type':S[_0x3eccd0(0x4e8)](_0x6a8cbd['getUnitType'](_0x1a7caa)),'baseRev':_0xee3443[_0x3eccd0(0x58d)](_0x1a7caa),'revision':0x0,'userID':_0x4c2c6e,'memberID':_0x3b6556,'mutations':_0x27ff59},'pendingMutations':[]};}function fn(_0x35e54f,_0x1c1d9d){const _0xc604c8=_0x3b224c,_0x62addf=new A[(_0xc604c8(0x206))](0x1);return setTimeout(()=>_0x62addf[_0xc604c8(0x1e1)](_0x1c1d9d),_0x35e54f),_0x62addf[_0xc604c8(0x4f7)]()[_0xc604c8(0x3cc)](A[_0xc604c8(0x189)](0x1));}const ji={'id':k['EmptyMutation']['id'],'type':a[_0x3b224c(0x549)][_0x3b224c(0x57e)],'params':{}};var $i=Object[_0x3b224c(0x209)],Hi=Object[_0x3b224c(0x233)],Ie=(_0x19d34e,_0x3b585f,_0x39cc75,_0x119a63)=>{const _0x303ab9=_0x3b224c;for(var _0x5d0e11=_0x119a63>0x1?void 0x0:_0x119a63?Hi(_0x3b585f,_0x39cc75):_0x3b585f,_0x4ab2e2=_0x19d34e[_0x303ab9(0x2a8)]-0x1,_0x123255;_0x4ab2e2>=0x0;_0x4ab2e2--)(_0x123255=_0x19d34e[_0x4ab2e2])&&(_0x5d0e11=(_0x119a63?_0x123255(_0x3b585f,_0x39cc75,_0x5d0e11):_0x123255(_0x5d0e11))||_0x5d0e11);return _0x119a63&&_0x5d0e11&&$i(_0x3b585f,_0x39cc75,_0x5d0e11),_0x5d0e11;},N=(_0x3a36a8,_0x9edd4b)=>(_0x46a3e5,_0x5825bb)=>_0x9edd4b(_0x46a3e5,_0x5825bb,_0x3a36a8),q=(_0x3ee73c=>(_0x3ee73c['NOT_COLLAB']=_0x3b224c(0x4a1),_0x3ee73c['SYNCED']=_0x3b224c(0x4e0),_0x3ee73c[_0x3b224c(0x249)]=_0x3b224c(0x5b9),_0x3ee73c[_0x3b224c(0x4b6)]='awaiting',_0x3ee73c['AWAITING_WITH_PENDING']=_0x3b224c(0x540),_0x3ee73c['FETCH_MISS']=_0x3b224c(0x281),_0x3ee73c[_0x3b224c(0x34c)]='conflict',_0x3ee73c[_0x3b224c(0x4e2)]=_0x3b224c(0x3e9),_0x3ee73c))(q||{});const vn=0xea60;class Ce{constructor(_0x4e139e,_0x14c46d,_0x3f3afe,_0x11b34e,_0x1fe22f,_0x5cab7d,_0x5e1fff,_0x9e40fd,_0x3a558f){const _0x372050=_0x3b224c;I(this,_0x372050(0x2a9),null),I(this,_0x372050(0x2c4),[]),(this[_0x372050(0x236)]=_0x4e139e,this[_0x372050(0x5bb)]=_0x14c46d,this[_0x372050(0x154)]=_0x1fe22f,this[_0x372050(0x2b1)]=_0x5cab7d,this[_0x372050(0x403)]=_0x5e1fff,this['_revisionService']=_0x9e40fd,this[_0x372050(0x490)]=_0x3a558f,this[_0x372050(0x2a9)]=_0x3f3afe,this[_0x372050(0x2c4)]=_0x11b34e);}[_0x3b224c(0x1c4)](_0x1bc409){const _0x2ec532=_0x3b224c,_0x224d16=this[_0x2ec532(0x2dc)][_0x2ec532(0x58d)](this[_0x2ec532(0x236)]);return _0x1bc409[_0x2ec532(0x5d2)]>_0x224d16+0x1?(this[_0x2ec532(0x154)]['onMissingChangesets']({'from':_0x224d16,'to':_0x1bc409[_0x2ec532(0x5d2)]-0x1}),!0x0):!0x1;}[_0x3b224c(0x1f5)](_0x14ff29){const _0x43425b=_0x3b224c;this[_0x43425b(0x403)]['transformUndoRedo'](this[_0x43425b(0x236)],_0x14ff29);}[_0x3b224c(0x418)](_0x42505d){const _0x5e8bdc=_0x3b224c;var _0x383051,_0x411055;(_0x411055=(_0x383051=this[_0x5e8bdc(0x154)])[_0x5e8bdc(0x478)])==null||_0x411055[_0x5e8bdc(0x537)](_0x383051,_0x42505d);}[_0x3b224c(0x179)](_0x4b0117){const _0x1a794d=_0x3b224c;var _0x1a8097,_0xcb4495;return(_0xcb4495=(_0x1a8097=this[_0x1a794d(0x154)])[_0x1a794d(0x26b)])==null?void 0x0:_0xcb4495[_0x1a794d(0x537)](_0x1a8097,_0x4b0117);}[_0x3b224c(0x3bb)](_0x1e13ef){const _0x1f3122=_0x3b224c;var _0x5ad31a,_0xa7fcae;return(_0xa7fcae=(_0x5ad31a=this['_handler'])['onTransformState'])==null?void 0x0:_0xa7fcae[_0x1f3122(0x537)](_0x5ad31a,_0x1e13ef);}[_0x3b224c(0x2d7)](_0x513311){const _0x2bcc7f=_0x3b224c;var _0x38f536,_0x4f9c83,_0x28ab82;return(_0x28ab82=(_0x4f9c83=(_0x38f536=this[_0x2bcc7f(0x154)])[_0x2bcc7f(0x2d8)])==null?void 0x0:_0x4f9c83['call'](_0x38f536,_0x513311))!=null?_0x28ab82:_0x513311;}['_transformRemoteChangesetByStateCache'](_0x3a4543){const _0x526b90=_0x3b224c;var _0x165c0f,_0x48df30,_0x53f68e;return(_0x53f68e=(_0x48df30=(_0x165c0f=this[_0x526b90(0x154)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x48df30[_0x526b90(0x537)](_0x165c0f,_0x3a4543))!=null?_0x53f68e:_0x3a4543;}['_syncEditingCollabCursor'](_0x190ea2){const _0x34b7d0=_0x3b224c;var _0x4bd861,_0x13d451;if(this[_0x34b7d0(0x5bb)]===ie['UNIVER_DOC']){const {unitID:_0x7bf862,mutations:_0x512de3,memberID:_0x2ba7a1}=_0x190ea2,_0x56e2a3=_0x512de3[0x0]['params'][_0x34b7d0(0x4a8)];Array[_0x34b7d0(0x34b)](_0x56e2a3)&&_0x56e2a3[_0x34b7d0(0x2a8)]>0x0&&((_0x13d451=(_0x4bd861=this[_0x34b7d0(0x154)])['onSyncEditingCollabCursor'])==null||_0x13d451['call'](_0x4bd861,{'unitID':_0x7bf862,'memberID':_0x2ba7a1,'textRanges':_0x56e2a3}));}}[_0x3b224c(0x311)](){const _0x138caa=_0x3b224c;this['_localCacheService'][_0x138caa(0x2a7)](this[_0x138caa(0x236)],this['type'],this[_0x138caa(0x2a9)],this[_0x138caa(0x2c4)]);}['_getCurrentRevision'](){const _0x398db2=_0x3b224c;return this[_0x398db2(0x2dc)][_0x398db2(0x58d)](this['unitID']);}['_incrementRevisionNumber'](){const _0x22391a=_0x3b224c;this[_0x22391a(0x2dc)][_0x22391a(0x4c4)](this['unitID']);}[_0x3b224c(0x1f3)](_0x5c61cb){const _0x4a62e3=_0x3b224c;var _0x1a2b38;let _0x33a3ea=this[_0x4a62e3(0x2d7)](_0x5c61cb);_0x33a3ea=this[_0x4a62e3(0x4ca)](_0x33a3ea);const _0x586f92=a[_0x4a62e3(0x354)](_0x33a3ea[_0x4a62e3(0x229)],this['_commandService'],{'fromCollab':!0x0});if(!_0x586f92['result'])throw _0x586f92[_0x4a62e3(0x423)]instanceof Error?_0x586f92[_0x4a62e3(0x423)]:new Error((_0x1a2b38=_0x586f92[_0x4a62e3(0x423)])!=null?_0x1a2b38:'[CollaborationState]:\x20apply\x20error!');this[_0x4a62e3(0x179)](_0x33a3ea),this[_0x4a62e3(0x3bb)](_0x33a3ea),this['_transformUndoredo'](_0x5c61cb),this[_0x4a62e3(0x418)](_0x33a3ea),this['_syncEditingCollabCursor'](_0x33a3ea),this[_0x4a62e3(0x1ce)]();}}let Oe=class extends Ce{constructor(_0x328fa7,_0x378bbe,_0x15a8a9,_0x2ce677,_0x57b371,_0x842f8c,_0x16bfd3,_0x5efc09,_0x21a52c,_0x57ce31){const _0x1ca491=_0x3b224c;super(_0x328fa7,_0x378bbe,null,[],_0x15a8a9,_0x5efc09,_0x16bfd3,_0x2ce677,_0x57b371),I(this,_0x1ca491(0x2db),_0x1ca491(0x4e0)),(this[_0x1ca491(0x495)]=_0x842f8c,this[_0x1ca491(0x13a)]=_0x21a52c,this[_0x1ca491(0x5c9)]=_0x57ce31);}[_0x3b224c(0x329)](_0x3369a5){const _0x321775=_0x3b224c,_0x3e2609=this[_0x321775(0x495)]['createInstance'](ce,this[_0x321775(0x236)],this[_0x321775(0x5bb)],[_0x3369a5],this[_0x321775(0x154)]);return _0x3e2609['_schedule'](),_0x3e2609[_0x321775(0x311)](),_0x3e2609;}[_0x3b224c(0x52e)](_0x5f376e){const _0x37a195=_0x3b224c;if(this[_0x37a195(0x1c4)](_0x5f376e))return this[_0x37a195(0x495)][_0x37a195(0x560)](re,this[_0x37a195(0x236)],this[_0x37a195(0x5bb)],null,[],null,[_0x5f376e],this[_0x37a195(0x154)]);try{const _0x25cc91=this[_0x37a195(0x5c9)]['transformMutationsWithChangeset'](_0x5f376e,[ji]);if(S[_0x37a195(0x4de)](_0x25cc91)){const {c1Prime:_0x31d359}=_0x25cc91;return this['_executeRemoteChangeset'](_0x31d359),this;}throw _0x25cc91[_0x37a195(0x423)];}catch(_0x1a9f88){return this[_0x37a195(0x13a)][_0x37a195(0x423)](_0x1a9f88),this[_0x37a195(0x2ef)](!0x1);}}[_0x3b224c(0x2ef)](_0x3431a5){const _0x445a76=_0x3b224c;return this[_0x445a76(0x495)][_0x445a76(0x560)](ve,this['unitID'],this['type'],null,[],this[_0x445a76(0x154)],_0x3431a5);}[_0x3b224c(0x58e)](){const _0x1aa735=_0x3b224c;throw new Error(_0x1aa735(0x248));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3b224c(0x153)](){const _0x39fcb1=_0x3b224c;return this[_0x39fcb1(0x495)]['createInstance'](me,this[_0x39fcb1(0x236)],this[_0x39fcb1(0x5bb)],null,[],this[_0x39fcb1(0x154)]);}[_0x3b224c(0x298)](){return this;}[_0x3b224c(0x4f2)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b224c(0x1a5)](){const _0x4895e9=_0x3b224c,_0x2c9d53=this[_0x4895e9(0x2dc)][_0x4895e9(0x58d)](this[_0x4895e9(0x236)]);return this['_handler']['onMissingChangesets']({'from':_0x2c9d53,'to':0x0}),this[_0x4895e9(0x495)]['createInstance'](re,this[_0x4895e9(0x236)],this['type'],null,[],null,[],this[_0x4895e9(0x154)]);}};Oe=Ie([N(0x3,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x4,a['Inject'](exports['LocalCacheService'])),N(0x5,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x6,a[_0x3b224c(0x2b0)]),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,S[_0x3b224c(0x180)])],Oe);let ce=class extends Ce{constructor(_0x1f194b,_0x153b5a,_0x24c3c1,_0x3ba0bf,_0xacaed7,_0x1c9fd2,_0x3a7042,_0x2a6bcf,_0x4f47c4,_0x12e412,_0x569242,_0x4066ba,_0x1f8a6e,_0x323d7f){const _0x2dc336=_0x3b224c;super(_0x1f194b,_0x153b5a,null,_0x24c3c1,_0x3ba0bf,_0x12e412,_0x323d7f,_0x1c9fd2,_0x3a7042),I(this,_0x2dc336(0x2db),_0x2dc336(0x5b9)),I(this,_0x2dc336(0x21b),null),I(this,_0x2dc336(0x5c3),null),(this[_0x2dc336(0x495)]=_0xacaed7,this[_0x2dc336(0x486)]=_0x2a6bcf,this['_logService']=_0x4f47c4,this[_0x2dc336(0x142)]=_0x569242,this[_0x2dc336(0x5c9)]=_0x4066ba,this[_0x2dc336(0x15e)]=_0x1f8a6e);}[_0x3b224c(0x329)](_0xf4cfd9){const _0x41988f=_0x3b224c;return this[_0x41988f(0x2c4)][_0x41988f(0x1a8)](_0xf4cfd9),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x13f6df){const _0x1605c3=_0x3b224c;if(this[_0x1605c3(0x1c4)](_0x13f6df))return this['_clearScheduledTask'](),this[_0x1605c3(0x495)][_0x1605c3(0x560)](re,this[_0x1605c3(0x236)],this[_0x1605c3(0x5bb)],null,this[_0x1605c3(0x2c4)],null,[_0x13f6df],this[_0x1605c3(0x154)]);try{const _0x4249d7=this['_transformService'][_0x1605c3(0x16d)](_0x13f6df,this['_pendingMutations']);if(S['isTransformMutationsWithChangesetSuccess'](_0x4249d7)){const {c1Prime:_0x44ead7,m2Prime:_0x57b6f2}=_0x4249d7;this[_0x1605c3(0x1f3)](_0x44ead7);const _0x4e46c7=this[_0x1605c3(0x495)][_0x1605c3(0x560)](ce,this[_0x1605c3(0x236)],this[_0x1605c3(0x5bb)],_0x57b6f2,this[_0x1605c3(0x154)]);return this[_0x1605c3(0x364)](),_0x4e46c7['_schedule'](this[_0x1605c3(0x21b)]?Math['max'](0x0,new Date()[_0x1605c3(0x4d5)]()-this[_0x1605c3(0x21b)]):this[_0x1605c3(0x57a)]()),_0x4e46c7;}throw _0x4249d7[_0x1605c3(0x423)];}catch(_0x98d302){return this[_0x1605c3(0x13a)][_0x1605c3(0x423)](_0x98d302),this[_0x1605c3(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](){const _0x2e616f=_0x3b224c;throw new Error(_0x2e616f(0x34a));}[_0x3b224c(0x3aa)](){const _0x5f2b34=_0x3b224c;throw new Error(_0x5f2b34(0x496));}[_0x3b224c(0x346)](){return this;}[_0x3b224c(0x153)](){const _0x27ad46=_0x3b224c;return this[_0x27ad46(0x364)](),this['_injector'][_0x27ad46(0x560)](me,this[_0x27ad46(0x236)],this[_0x27ad46(0x5bb)],null,this[_0x27ad46(0x2c4)],this['_handler']);}['toggleOnline'](){return this;}[_0x3b224c(0x4a7)](_0x1205c9){const _0x33cd10=_0x3b224c,_0x145284=_0x1205c9!=null?_0x1205c9:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x33cd10(0x4d5)](),this[_0x33cd10(0x5c3)]=window[_0x33cd10(0x325)](()=>{const _0x3569d7=_0x33cd10;this[_0x3569d7(0x364)]();let _0x44a401=null;switch(this[_0x3569d7(0x5bb)]){case ie[_0x3569d7(0x460)]:{_0x44a401=jt(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this[_0x3569d7(0x486)]);break;}case ie[_0x3569d7(0x508)]:{this['_pendingMutations']['every'](_0x57fc87=>_0x57fc87['id']===ye[_0x3569d7(0x19f)]['id'])?_0x44a401=xi(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this['_memberService']):_0x44a401=jt(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this[_0x3569d7(0x486)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x3569d7(0x45d));}const {changeset:_0xecfdbd,pendingMutations:_0x5ce3ef}=_0x44a401;this[_0x3569d7(0x154)][_0x3569d7(0x1e9)](_0xecfdbd);const _0x1f0379=_0x5ce3ef[_0x3569d7(0x2a8)]?this[_0x3569d7(0x495)][_0x3569d7(0x560)](le,this[_0x3569d7(0x236)],this['type'],_0xecfdbd,_0x5ce3ef,this[_0x3569d7(0x154)],void 0x0):this['_injector'][_0x3569d7(0x560)](fe,this['unitID'],this[_0x3569d7(0x5bb)],_0xecfdbd,this[_0x3569d7(0x154)]);_0x1f0379[_0x3569d7(0x311)](),this[_0x3569d7(0x154)][_0x3569d7(0x19b)](this,_0x1f0379);},_0x145284);}[_0x3b224c(0x57a)](){const _0x391f46=_0x3b224c;var _0x2e4654;const _0x39beaf=this[_0x391f46(0x142)][_0x391f46(0x469)](te);return(_0x2e4654=_0x39beaf==null?void 0x0:_0x39beaf['sendChangesetTimeout'])!=null?_0x2e4654:kn;}[_0x3b224c(0x4f2)](){const _0x59b253=_0x3b224c;throw new Error(_0x59b253(0x56c));}['_clearScheduledTask'](){const _0x2549f4=_0x3b224c;this[_0x2549f4(0x5c3)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2549f4(0x5c3)]=null);}[_0x3b224c(0x2ef)](_0x1cb6be){const _0x72ca12=_0x3b224c;return this[_0x72ca12(0x364)](),this['_injector'][_0x72ca12(0x560)](ve,this[_0x72ca12(0x236)],this[_0x72ca12(0x5bb)],null,this[_0x72ca12(0x2c4)],this['_handler'],_0x1cb6be);}};ce=Ie([N(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x6,a['Inject'](exports['LocalCacheService'])),N(0x7,a[_0x3b224c(0x556)](exports['MemberService'])),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,a[_0x3b224c(0x3d4)]),N(0xa,a[_0x3b224c(0x160)]),N(0xb,S[_0x3b224c(0x180)]),N(0xc,a[_0x3b224c(0x5a1)]),N(0xd,a[_0x3b224c(0x2b0)])],ce);let fe=class extends Ce{constructor(_0x3c214f,_0x2bc6d8,_0x13c104,_0x8154ad,_0x4bbd48,_0x170bb1,_0xc4e581,_0x18dffb,_0x3d534f,_0x52a6ff,_0x11b229){const _0x3f795f=_0x3b224c;super(_0x3c214f,_0x2bc6d8,_0x13c104,[],_0x8154ad,_0x18dffb,_0x11b229,_0x170bb1,_0xc4e581),I(this,_0x3f795f(0x2db),_0x3f795f(0x14f)),I(this,_0x3f795f(0x2c6),0x0),I(this,_0x3f795f(0x46f)),I(this,'_sender'),(this['_injector']=_0x4bbd48,this[_0x3f795f(0x13a)]=_0x3d534f,this[_0x3f795f(0x5c9)]=_0x52a6ff);}[_0x3b224c(0x329)](_0x44c3f7){const _0x137738=_0x3b224c;this['_clearScheduledTask']();const _0x17075b=this[_0x137738(0x495)][_0x137738(0x560)](le,this[_0x137738(0x236)],this[_0x137738(0x5bb)],this[_0x137738(0x2a9)],[_0x44c3f7],this[_0x137738(0x154)],this[_0x137738(0x46f)]);return _0x17075b['_updateLocalCache'](),_0x17075b;}[_0x3b224c(0x52e)](_0x5c6497){const _0xb67479=_0x3b224c;if(this[_0xb67479(0x1c4)](_0x5c6497))return this['_clearScheduledTask'](),this['_injector'][_0xb67479(0x560)](re,this['unitID'],this[_0xb67479(0x5bb)],this[_0xb67479(0x2a9)],[],null,[_0x5c6497],this[_0xb67479(0x154)]);try{const _0x94a566=this['_transformService'][_0xb67479(0x1c7)]([_0x5c6497],[this[_0xb67479(0x2a9)]],!0x1);if(S[_0xb67479(0x515)](_0x94a566)){const {c1Prime:_0x3cc7d8,c2Prime:_0x163501}=_0x94a566;this[_0xb67479(0x1f3)](_0x3cc7d8[0x0]),_0x163501[0x0][_0xb67479(0x3c1)]=this[_0xb67479(0x1b2)](),this[_0xb67479(0x364)]();const _0x2782eb=this[_0xb67479(0x495)][_0xb67479(0x560)](fe,this[_0xb67479(0x236)],this[_0xb67479(0x5bb)],_0x163501[0x0],this[_0xb67479(0x154)]);return _0x2782eb[_0xb67479(0x311)](),_0x2782eb;}return this[_0xb67479(0x2ef)](!0x1);}catch(_0x1593e1){return this[_0xb67479(0x13a)][_0xb67479(0x423)](_0x1593e1),this[_0xb67479(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](_0x2c080e){const _0x2c9fcb=_0x3b224c;this[_0x2c9fcb(0x364)]();const _0x2404ab=this[_0x2c9fcb(0x2dc)][_0x2c9fcb(0x58d)](this[_0x2c9fcb(0x236)]);if(_0x2c080e[_0x2c9fcb(0x5d2)]<_0x2404ab-0x1)return this;if(this[_0x2c9fcb(0x1c4)](_0x2c080e))return this[_0x2c9fcb(0x495)]['createInstance'](re,this[_0x2c9fcb(0x236)],this['type'],null,[],this[_0x2c9fcb(0x2a9)],[],this[_0x2c9fcb(0x154)]);this[_0x2c9fcb(0x1ce)]();const _0x4f026d=this[_0x2c9fcb(0x495)][_0x2c9fcb(0x560)](Oe,this[_0x2c9fcb(0x236)],this[_0x2c9fcb(0x5bb)],this[_0x2c9fcb(0x154)]);return _0x4f026d['_updateLocalCache'](),_0x4f026d;}[_0x3b224c(0x3aa)](_0x1e377e){const _0x469bac=_0x3b224c;return this['_onConflict'](!!(_0x1e377e!=null&&_0x1e377e[_0x469bac(0x3a5)]));}[_0x3b224c(0x346)](_0x16bee2){const _0x484f68=_0x3b224c;return this[_0x484f68(0x2c6)]>vn?this[_0x484f68(0x153)]():(this[_0x484f68(0x46f)]=fn(this[_0x484f68(0x2c6)],{'timeout':this[_0x484f68(0x2c6)],'reqId':_0x16bee2[_0x484f68(0x250)]}),this[_0x484f68(0x1fa)]=this['_resendTimer'][_0x484f68(0x2de)](({reqId:_0x25b585,timeout:_0x1c58e4})=>{const _0x144e02=_0x484f68;this[_0x144e02(0x47b)](_0x25b585,_0x1c58e4);}),this);}[_0x3b224c(0x153)](){const _0x24c3be=_0x3b224c;return this[_0x24c3be(0x364)](),this[_0x24c3be(0x495)][_0x24c3be(0x560)](me,this[_0x24c3be(0x236)],this[_0x24c3be(0x5bb)],this[_0x24c3be(0x2a9)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x3b224c(0x4f2)](){const _0x31effb=_0x3b224c;this[_0x31effb(0x154)][_0x31effb(0x1e9)](this[_0x31effb(0x2a9)]);}[_0x3b224c(0x2ef)](_0x2dcf9b){const _0x588fd2=_0x3b224c;return this[_0x588fd2(0x364)](),this[_0x588fd2(0x495)][_0x588fd2(0x560)](ve,this[_0x588fd2(0x236)],this[_0x588fd2(0x5bb)],this[_0x588fd2(0x2a9)],[],this[_0x588fd2(0x154)],_0x2dcf9b);}[_0x3b224c(0x47b)](_0x19c5ce,_0x4bbb89){const _0x5bfe77=_0x3b224c;var _0x590372;_0x19c5ce===((_0x590372=this[_0x5bfe77(0x2a9)])==null?void 0x0:_0x590372[_0x5bfe77(0x250)])&&(this[_0x5bfe77(0x4f2)](),this[_0x5bfe77(0x2c6)]=_0x4bbb89===0x0?0x3e8:_0x4bbb89*0x2);}['_clearScheduledTask'](){const _0x83d9bc=_0x3b224c;var _0x41a5e5;(_0x41a5e5=this[_0x83d9bc(0x1fa)])==null||_0x41a5e5[_0x83d9bc(0x272)](),this[_0x83d9bc(0x2c6)]=0x0;}};fe=Ie([N(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x6,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,S['ITransformService']),N(0xa,a[_0x3b224c(0x2b0)])],fe);let le=class extends Ce{constructor(_0x11442b,_0x40e887,_0x3896b7,_0x53b39c,_0x31267e,_0x2e8db7,_0x2dbeed,_0x2a6827,_0x4cb84a,_0x4f2490,_0x30b27f,_0x2c0b0d,_0x450752){const _0x4d0a25=_0x3b224c;super(_0x11442b,_0x40e887,_0x3896b7,_0x53b39c,_0x31267e,_0x4f2490,_0x450752,_0x2a6827,_0x4cb84a),I(this,_0x4d0a25(0x2db),_0x4d0a25(0x540)),I(this,_0x4d0a25(0x2c6),0x0),I(this,'_resendTimer'),I(this,_0x4d0a25(0x1fa)),(this[_0x4d0a25(0x495)]=_0x2dbeed,this[_0x4d0a25(0x13a)]=_0x30b27f,this[_0x4d0a25(0x5c9)]=_0x2c0b0d,_0x2e8db7&&(this[_0x4d0a25(0x46f)]=_0x2e8db7,this[_0x4d0a25(0x1fa)]=this['_resendTimer'][_0x4d0a25(0x2de)](({reqId:_0x38a7fa,timeout:_0x96437e})=>{const _0x4f27a9=_0x4d0a25;this[_0x4f27a9(0x47b)](_0x38a7fa,_0x96437e);})));}[_0x3b224c(0x329)](_0x40bd31){return this['_pendingMutations']['push'](_0x40bd31),this;}[_0x3b224c(0x52e)](_0x4234bc){const _0x11f44e=_0x3b224c;if(this[_0x11f44e(0x1c4)](_0x4234bc))return this['_clearScheduledTask'](),this[_0x11f44e(0x495)][_0x11f44e(0x560)](re,this[_0x11f44e(0x236)],this['type'],this[_0x11f44e(0x2a9)],this['_pendingMutations'],null,[_0x4234bc],this['_handler']);try{const _0x1d9515=this[_0x11f44e(0x5c9)]['transformChangesets']([_0x4234bc],[this['_awaitingChangeset']],!0x1);if(S[_0x11f44e(0x515)](_0x1d9515)){const {c1Prime:_0x40151a,c2Prime:_0x34c922}=_0x1d9515,_0x43cbdf=this[_0x11f44e(0x5c9)][_0x11f44e(0x16d)](_0x40151a[0x0],this[_0x11f44e(0x2c4)]);if(S[_0x11f44e(0x4de)](_0x43cbdf)){const {c1Prime:_0x27f1c7,m2Prime:_0x44ccf8}=_0x43cbdf;return this['_executeRemoteChangeset'](_0x27f1c7),_0x34c922[0x0]['baseRev']=this[_0x11f44e(0x1b2)](),this[_0x11f44e(0x364)](),this[_0x11f44e(0x495)][_0x11f44e(0x560)](le,this[_0x11f44e(0x236)],this[_0x11f44e(0x5bb)],_0x34c922[0x0],_0x44ccf8,this[_0x11f44e(0x154)],void 0x0);}throw _0x43cbdf[_0x11f44e(0x423)];}throw _0x1d9515[_0x11f44e(0x423)];}catch(_0x52258c){return this[_0x11f44e(0x13a)][_0x11f44e(0x423)](_0x52258c),this[_0x11f44e(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](_0x565764){const _0x2bde12=_0x3b224c;if(this[_0x2bde12(0x364)](),this[_0x2bde12(0x1c4)](_0x565764))return this[_0x2bde12(0x495)][_0x2bde12(0x560)](re,this['unitID'],this[_0x2bde12(0x5bb)],null,this[_0x2bde12(0x2c4)],this[_0x2bde12(0x2a9)],[],this[_0x2bde12(0x154)]);this[_0x2bde12(0x1ce)]();const _0x2bee93=this[_0x2bde12(0x495)]['createInstance'](ce,this[_0x2bde12(0x236)],this['type'],this[_0x2bde12(0x2c4)],this[_0x2bde12(0x154)]);return _0x2bee93['_schedule'](),_0x2bee93['_updateLocalCache'](),_0x2bee93;}[_0x3b224c(0x3aa)](_0x2fd67e){const _0x54375a=_0x3b224c;return this[_0x54375a(0x2ef)](!!(_0x2fd67e!=null&&_0x2fd67e['isPermissionRej']));}[_0x3b224c(0x346)](_0x5ed9f9){const _0x3691ab=_0x3b224c;return this[_0x3691ab(0x2c6)]>vn?this[_0x3691ab(0x153)]():(this[_0x3691ab(0x46f)]=fn(this['_resendTimeout'],{'timeout':this[_0x3691ab(0x2c6)],'reqId':_0x5ed9f9['reqId']}),this['_sender']=this[_0x3691ab(0x46f)][_0x3691ab(0x2de)](({reqId:_0x1a7395,timeout:_0x9a8843})=>{const _0x5eaf82=_0x3691ab;this[_0x5eaf82(0x47b)](_0x1a7395,_0x9a8843);}),this);}[_0x3b224c(0x153)](){const _0x5eccf4=_0x3b224c;return this['_clearScheduledTask'](),this['_injector'][_0x5eccf4(0x560)](me,this[_0x5eccf4(0x236)],this[_0x5eccf4(0x5bb)],this[_0x5eccf4(0x2a9)],this[_0x5eccf4(0x2c4)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x3b224c(0x2ef)](_0x13551d){const _0x3f80dc=_0x3b224c;return this[_0x3f80dc(0x364)](),this[_0x3f80dc(0x495)][_0x3f80dc(0x560)](ve,this[_0x3f80dc(0x236)],this[_0x3f80dc(0x5bb)],null,this[_0x3f80dc(0x2c4)],this[_0x3f80dc(0x154)],_0x13551d);}[_0x3b224c(0x47b)](_0x56d7fa,_0x5336db){const _0x35e775=_0x3b224c;var _0x4b8942;_0x56d7fa===((_0x4b8942=this[_0x35e775(0x2a9)])==null?void 0x0:_0x4b8942['reqId'])&&(this[_0x35e775(0x4f2)](),this[_0x35e775(0x2c6)]=_0x5336db===0x0?0x3e8:_0x5336db*0x2);}[_0x3b224c(0x364)](){const _0x208987=_0x3b224c;var _0xfcc8d6;(_0xfcc8d6=this[_0x208987(0x1fa)])==null||_0xfcc8d6[_0x208987(0x272)](),this['_resendTimeout']=0x0;}};le=Ie([N(0x6,a['Inject'](a[_0x3b224c(0x157)])),N(0x7,a['Inject'](S[_0x3b224c(0x33f)])),N(0x8,a['Inject'](exports['LocalCacheService'])),N(0x9,a[_0x3b224c(0x3d4)]),N(0xa,a['ILogService']),N(0xb,S['ITransformService']),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ce{constructor(_0x5b9ea5,_0x1c9999,_0x3395e7,_0x3d24ca,_0x30aa55,_0x1dc90f=!0x1,_0x5515b0,_0xdf0ab6,_0x2a5717,_0x1f8331,_0x6a926d,_0x4347a4,_0x902d5d){const _0x34a56f=_0x3b224c;super(_0x5b9ea5,_0x1c9999,_0x3395e7,_0x3d24ca,_0x30aa55,_0xdf0ab6,_0x2a5717,_0x6a926d,_0x1f8331),I(this,'status',_0x34a56f(0x53f)),(this[_0x34a56f(0x59d)]=_0x1dc90f,this['_permissionService']=_0x5515b0,this[_0x34a56f(0x57b)]=_0x4347a4,this[_0x34a56f(0x572)]=_0x902d5d,this['_showConflictNotification'](),this[_0x34a56f(0x50c)](),this[_0x34a56f(0x1b1)]());}[_0x3b224c(0x329)](){return this;}[_0x3b224c(0x52e)](){return this;}[_0x3b224c(0x58e)](){return this;}['onRemoteRej'](){return this;}[_0x3b224c(0x346)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x253e86=_0x3b224c;throw new Error(_0x253e86(0x481));}[_0x3b224c(0x50c)](){const _0x192fcb=_0x3b224c;this['_localCacheService'][_0x192fcb(0x2a7)](this['unitID'],this['type'],null,[]);}[_0x3b224c(0x3cb)](){const _0x257f40=_0x3b224c;this[_0x257f40(0x59d)]?this[_0x257f40(0x572)][_0x257f40(0x134)]({'title':this['_localeService']['t'](_0x257f40(0x1eb)),'content':this[_0x257f40(0x57b)]['t'](_0x257f40(0x2e6)),'type':_0x257f40(0x423),'duration':0x0}):this[_0x257f40(0x572)][_0x257f40(0x134)]({'title':this[_0x257f40(0x57b)]['t']('conflict.title'),'content':this[_0x257f40(0x57b)]['t'](_0x257f40(0x5e0)),'type':_0x257f40(0x423),'duration':0x0});}[_0x3b224c(0x1b1)](){const _0x3735b9=_0x3b224c;this['_permissionService'][_0x3735b9(0x1f9)](new k[(_0x3735b9(0x4fd))](this['unitID'])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a['IPermissionService'])),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x2b0)]),N(0x9,a[_0x3b224c(0x556)](exports['LocalCacheService'])),N(0xa,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0xb,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x829a7c,_0x21fee9,_0x90ddeb,_0x48fa92,_0x170c14,_0x1f9c6b,_0x1b1fdf,_0x14fa97,_0x43f4c7,_0x18a2c2){const _0x3b2298=_0x3b224c;super(_0x829a7c,_0x21fee9,_0x90ddeb,_0x48fa92,_0x170c14,_0x43f4c7,_0x18a2c2,_0x1b1fdf,_0x14fa97),I(this,_0x3b2298(0x2db),'offline'),this['_injector']=_0x1f9c6b;}[_0x3b224c(0x329)](_0x38990f){const _0x5d4b60=_0x3b224c;return this[_0x5d4b60(0x2c4)][_0x5d4b60(0x1a8)](_0x38990f),this['_updateLocalCache'](),this;}[_0x3b224c(0x52e)](_0x4a121d){const _0x15a340=_0x3b224c;throw new Error(_0x15a340(0x5b6));}[_0x3b224c(0x58e)](){const _0x4370c7=_0x3b224c;throw new Error(_0x4370c7(0x2ec));}[_0x3b224c(0x3aa)](){const _0x21caee=_0x3b224c;throw new Error(_0x21caee(0x2ce));}[_0x3b224c(0x346)](){return this;}[_0x3b224c(0x153)](){return this;}[_0x3b224c(0x298)](){const _0x208484=_0x3b224c,{_injector:_0x333e8d,_pendingMutations:_0x4e65cf,_awaitingChangeset:_0x2aac86,unitID:_0x222464,_handler:_0x292654,type:_0x1848ad}=this,_0x2bb0e8=mn(_0x333e8d,_0x222464,_0x1848ad,_0x2aac86,_0x4e65cf,_0x292654);return _0x2bb0e8 instanceof ce?_0x2bb0e8[_0x208484(0x4a7)]():(_0x2bb0e8 instanceof le||_0x2bb0e8 instanceof fe)&&_0x2bb0e8[_0x208484(0x4f2)](),_0x2bb0e8;}[_0x3b224c(0x4f2)](){const _0x4a8a6b=_0x3b224c;throw new Error(_0x4a8a6b(0x577));}};me=Ie([N(0x5,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x6,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x7,a['Inject'](exports[_0x3b224c(0x42a)])),N(0x8,a[_0x3b224c(0x3d4)]),N(0x9,a['IUndoRedoService'])],me);let re=class extends Ce{constructor(_0x2f8675,_0x4e80a8,_0x27029c,_0x1826ed,_0xad3ca1,_0x48bc4d,_0x16797c,_0x4e90bb,_0x2852a7,_0x9b4744,_0x493360,_0x415b4e,_0x446009,_0x20484c){const _0xacbd7d=_0x3b224c;super(_0x2f8675,_0x4e80a8,_0x27029c,_0x1826ed,_0x16797c,_0x415b4e,_0x446009,_0x2852a7,_0x9b4744),I(this,'status',_0xacbd7d(0x281)),(this['_acknowledgedAwaitingChangeset']=_0xad3ca1,this[_0xacbd7d(0x48e)]=_0x48bc4d,this['_injector']=_0x4e90bb,this[_0xacbd7d(0x13a)]=_0x493360,this[_0xacbd7d(0x5c9)]=_0x20484c);}[_0x3b224c(0x52d)](_0x4ab857){const _0x32f492=_0x3b224c;try{const _0x5e4116=[..._0x4ab857,...this['_queuedRemoteChangesets']],_0x30bc3e=[this[_0x32f492(0x2a9)]||this[_0x32f492(0x168)]][_0x32f492(0x567)](_0x48cac2=>!!_0x48cac2);let _0x3a1254,_0x3b2622;if(_0x30bc3e[_0x32f492(0x2a8)]){const _0x254c59=this[_0x32f492(0x5c9)][_0x32f492(0x1c7)](_0x5e4116,_0x30bc3e,!0x1);if(!S[_0x32f492(0x515)](_0x254c59))throw _0x254c59[_0x32f492(0x423)];_0x3a1254=_0x254c59[_0x32f492(0x1ea)],_0x3b2622=_0x254c59[_0x32f492(0x5b2)];}else _0x3a1254=_0x5e4116,_0x3b2622=[];let _0x4eec08=this[_0x32f492(0x2c4)];_0x3a1254['forEach'](_0x2ffc9f=>{const _0x30b021=_0x32f492;let _0x250564;if(_0x4eec08[_0x30b021(0x2a8)]){const _0x28955e=this[_0x30b021(0x5c9)]['transformMutationsWithChangeset'](_0x2ffc9f,_0x4eec08);if(!S[_0x30b021(0x4de)](_0x28955e))throw _0x28955e[_0x30b021(0x423)];_0x250564=_0x28955e[_0x30b021(0x1ea)],_0x4eec08=_0x28955e[_0x30b021(0x3f1)];}else _0x250564=_0x2ffc9f;this[_0x30b021(0x1f3)](_0x250564);}),this[_0x32f492(0x168)]&&this[_0x32f492(0x1ce)](),this[_0x32f492(0x2a9)]&&_0x3b2622[_0x32f492(0x2a8)]&&(_0x3b2622[0x0][_0x32f492(0x3c1)]=this['_getCurrentRevision']());let _0x4c021e;if(this[_0x32f492(0x2a9)]&&_0x4eec08[_0x32f492(0x2a8)]!==0x0)_0x4c021e=this[_0x32f492(0x495)][_0x32f492(0x560)](le,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],_0x3b2622[0x0],_0x4eec08,this[_0x32f492(0x154)],void 0x0);else{if(this[_0x32f492(0x2a9)]&&_0x4eec08[_0x32f492(0x2a8)]===0x0)_0x3b2622[0x0][_0x32f492(0x3c1)]=this[_0x32f492(0x1b2)](),_0x4c021e=this['_injector'][_0x32f492(0x560)](fe,this['unitID'],this['type'],_0x3b2622[0x0],this['_handler']);else{if(_0x4eec08[_0x32f492(0x2a8)]!==0x0){const _0x4ea930=this[_0x32f492(0x495)][_0x32f492(0x560)](ce,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],_0x4eec08,this[_0x32f492(0x154)]);_0x4ea930['_schedule'](),_0x4c021e=_0x4ea930;}else _0x4c021e=this[_0x32f492(0x495)][_0x32f492(0x560)](Oe,this['unitID'],this[_0x32f492(0x5bb)],this[_0x32f492(0x154)]);}}return _0x4c021e[_0x32f492(0x311)](),_0x4c021e;}catch(_0x5e4584){return this[_0x32f492(0x13a)][_0x32f492(0x423)](_0x32f492(0x14e),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5e4584),this[_0x32f492(0x495)][_0x32f492(0x560)](ve,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],this[_0x32f492(0x2a9)],this[_0x32f492(0x2c4)],this[_0x32f492(0x154)],!0x1);}}[_0x3b224c(0x4f2)](){const _0x257134=_0x3b224c;throw new Error(_0x257134(0x371));}['appendMutation'](_0x3f8b83){const _0x2a4e5f=_0x3b224c;return this[_0x2a4e5f(0x2c4)][_0x2a4e5f(0x1a8)](_0x3f8b83),this;}[_0x3b224c(0x52e)](_0x39ba56){return this['_queuedRemoteChangesets']['push'](_0x39ba56),this;}[_0x3b224c(0x58e)](_0x1f7002){const _0x3f9fd5=_0x3b224c;if(this[_0x3f9fd5(0x2a9)])return this[_0x3f9fd5(0x168)]=this['_awaitingChangeset'],this[_0x3f9fd5(0x2a9)]=null,this;throw new Error(_0x3f9fd5(0x334));}[_0x3b224c(0x3aa)](_0x1dbb55){const _0x99fdab=_0x3b224c;return this[_0x99fdab(0x2ef)](!!(_0x1dbb55!=null&&_0x1dbb55[_0x99fdab(0x3a5)]));}[_0x3b224c(0x346)](){return this;}['toggleOffline'](){const _0x5e3b7b=_0x3b224c;return this[_0x5e3b7b(0x495)]['createInstance'](me,this['unitID'],this[_0x5e3b7b(0x5bb)],this[_0x5e3b7b(0x2a9)],this[_0x5e3b7b(0x2c4)],this[_0x5e3b7b(0x154)]);}['toggleOnline'](){return this;}[_0x3b224c(0x2ef)](_0x4fccd6){const _0x2f6646=_0x3b224c;return this[_0x2f6646(0x495)][_0x2f6646(0x560)](ve,this[_0x2f6646(0x236)],this['type'],this[_0x2f6646(0x2a9)],this[_0x2f6646(0x2c4)],this[_0x2f6646(0x154)],_0x4fccd6);}};re=Ie([N(0x7,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x8,a[_0x3b224c(0x556)](S['RevisionService'])),N(0x9,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),N(0xa,a['ILogService']),N(0xb,a[_0x3b224c(0x3d4)]),N(0xc,a[_0x3b224c(0x2b0)]),N(0xd,S['ITransformService'])],re);function mn(_0x47923d,_0x56296d,_0x48265f,_0x41cf7b,_0x205fba,_0x180625){const _0x5ef958=_0x3b224c;return _0x41cf7b&&_0x205fba[_0x5ef958(0x2a8)]?_0x47923d[_0x5ef958(0x560)](le,_0x56296d,_0x48265f,_0x41cf7b,_0x205fba,_0x180625,void 0x0):_0x41cf7b?_0x47923d['createInstance'](fe,_0x56296d,_0x48265f,_0x41cf7b,_0x180625):_0x205fba[_0x5ef958(0x2a8)]?_0x47923d['createInstance'](ce,_0x56296d,_0x48265f,_0x205fba,_0x180625):_0x47923d['createInstance'](Oe,_0x56296d,_0x48265f,_0x180625);}var Bi=Object[_0x3b224c(0x209)],ki=Object['getOwnPropertyDescriptor'],yt=(_0x409b56,_0x570750,_0x1c5beb,_0x162d65)=>{const _0x242d44=_0x3b224c;for(var _0x1a5161=_0x162d65>0x1?void 0x0:_0x162d65?ki(_0x570750,_0x1c5beb):_0x570750,_0x19ca7c=_0x409b56[_0x242d44(0x2a8)]-0x1,_0x4dee64;_0x19ca7c>=0x0;_0x19ca7c--)(_0x4dee64=_0x409b56[_0x19ca7c])&&(_0x1a5161=(_0x162d65?_0x4dee64(_0x570750,_0x1c5beb,_0x1a5161):_0x4dee64(_0x1a5161))||_0x1a5161);return _0x162d65&&_0x1a5161&&Bi(_0x570750,_0x1c5beb,_0x1a5161),_0x1a5161;},H=(_0x2bc83b,_0xc2694e)=>(_0x417417,_0x4b8482)=>_0xc2694e(_0x417417,_0x4b8482,_0x2bc83b);exports[_0x3b224c(0x1ed)]=class extends a[_0x3b224c(0x274)]{constructor(_0x1b0a36,_0x36356b,_0x500aa1,_0x60a40,_0x2334ed,_0x19f56c,_0x86b533,_0x1b2841,_0xbd74ff,_0x8ab70d,_0x573e09,_0x27e9d3,_0x1fe6e4){const _0x44db20=_0x3b224c;super(),I(this,_0x44db20(0x27f),new A[(_0x44db20(0x33e))](null)),I(this,'state$',this['_state$'][_0x44db20(0x4f7)]()),I(this,_0x44db20(0x378)),I(this,_0x44db20(0x3a7),!0x1),I(this,_0x44db20(0x1ba),''),I(this,'_changesetReqId',0x0),I(this,_0x44db20(0x47e),this[_0x44db20(0x3ad)][_0x44db20(0x3cc)](A[_0x44db20(0x283)](_0x5893b4=>_0x5893b4?_0x5893b4['status']:q[_0x44db20(0x4e2)]),A[_0x44db20(0x307)](0x1))),I(this,_0x44db20(0x416),!0x1),I(this,_0x44db20(0x588),[]),(this[_0x44db20(0x236)]=_0x1b0a36,this[_0x44db20(0x3ca)]=_0x36356b,this[_0x44db20(0x391)]=_0x500aa1,this[_0x44db20(0x495)]=_0x60a40,this[_0x44db20(0x490)]=_0x2334ed,this[_0x44db20(0x2fe)]=_0x19f56c,this[_0x44db20(0x57b)]=_0x86b533,this[_0x44db20(0x2dc)]=_0x1b2841,this[_0x44db20(0x13a)]=_0xbd74ff,this[_0x44db20(0x2b1)]=_0x8ab70d,this['_messageService']=_0x573e09,this['_permissionService']=_0x27e9d3,this['_singleActiveUnitService']=_0x1fe6e4);}get[_0x3b224c(0x276)](){const _0x26708b=_0x3b224c;return this[_0x26708b(0x378)];}async[_0x3b224c(0x20b)](){const _0x435870=_0x3b224c;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x435870(0x578)]();}[_0x3b224c(0x44e)](){const _0x2998fd=_0x3b224c;return this[_0x2998fd(0x3a7)]=!0x0,a[_0x2998fd(0x597)](()=>{const _0x3168cd=_0x2998fd;this['_collaborationPaused']=!0x1,this[_0x3168cd(0x552)]();});}[_0x3b224c(0x415)](_0x2358c6){const _0xd294b6=_0x3b224c;this[_0xd294b6(0x378)]=_0x2358c6,this[_0xd294b6(0x27f)]['next'](_0x2358c6);}async[_0x3b224c(0x578)](){const _0x1761e1=_0x3b224c;var _0x1df711;this['_updateState'](await this[_0x1761e1(0x3bd)]()),this[_0x1761e1(0x46e)]&&((_0x1df711=this['_singleActiveUnitService'])==null||_0x1df711[_0x1761e1(0x2f5)](this[_0x1761e1(0x236)]),this[_0x1761e1(0x220)](this[_0x1761e1(0x46e)]['getUnitStatus$'](this[_0x1761e1(0x236)])[_0x1761e1(0x2de)](_0x4034c7=>{const _0x2c0579=_0x1761e1;this[_0x2c0579(0x13a)][_0x2c0579(0x241)]('[CollaborationEntity]',_0x2c0579(0x3e8),_0x4034c7),_0x4034c7===un[_0x2c0579(0x266)]?(this[_0x2c0579(0x1ca)][_0x2c0579(0x134)]({'content':this[_0x2c0579(0x57b)]['t'](_0x2c0579(0x3a4)),'type':ge['MessageType']['Warning']}),this[_0x2c0579(0x155)][_0x2c0579(0x1f9)](new k[(_0x2c0579(0x4fd))](this['unitID'])['id'],!0x1),this[_0x2c0579(0x155)][_0x2c0579(0x379)](!0x1)):(this[_0x2c0579(0x155)][_0x2c0579(0x1f9)](new k[(_0x2c0579(0x4fd))](this[_0x2c0579(0x236)])['id'],!0x0),this[_0x2c0579(0x155)][_0x2c0579(0x379)](!0x0));})));let _0xcbe8c9=!0x1;return this[_0x1761e1(0x220)](this[_0x1761e1(0x3ca)]['sessionStatus$'][_0x1761e1(0x2de)](_0x2b3cb3=>{const _0x5399f6=_0x1761e1;_0x2b3cb3===se[_0x5399f6(0x3a3)]?this[_0x5399f6(0x4bd)](_0xcbe8c9):_0x2b3cb3===se[_0x5399f6(0x4e2)]&&(_0xcbe8c9=!0x0,this[_0x5399f6(0x30d)]());})),this['disposeWithMe'](this[_0x1761e1(0x3ca)][_0x1761e1(0x396)][_0x1761e1(0x2de)](_0x6b0707=>{const _0x424964=_0x1761e1;try{switch(_0x6b0707['eventID']){case S[_0x424964(0x136)][_0x424964(0x48f)]:{this[_0x424964(0x455)](S['parseProtocolChangeset'](_0x6b0707[_0x424964(0x34e)]));break;}case S[_0x424964(0x136)][_0x424964(0x35e)]:{this[_0x424964(0x44f)](_0x6b0707[_0x424964(0x34e)]);break;}case S[_0x424964(0x136)][_0x424964(0x21f)]:{this[_0x424964(0x1ad)]();break;}case S['CollaborationEvent'][_0x424964(0x26a)]:{this[_0x424964(0x16c)](_0x6b0707[_0x424964(0x34e)]);break;}case S[_0x424964(0x136)][_0x424964(0x50a)]:{this[_0x424964(0x3d9)](_0x6b0707['data']['changesets'][_0x424964(0x283)](_0x239a59=>S[_0x424964(0x25a)](_0x239a59)));break;}case S['CollaborationEvent'][_0x424964(0x4fc)]:this[_0x424964(0x1ad)]({'isPermissionRej':!0x0});}}catch(_0xe436ef){throw console[_0x424964(0x423)](_0x424964(0x3c4),_0xe436ef),_0xe436ef;}})),this['_state'];}[_0x3b224c(0x319)](){const _0x20eee3=_0x3b224c;this[_0x20eee3(0x416)]=!0x1;}['_lockTransition'](){const _0x13e5ad=_0x3b224c;if(this[_0x13e5ad(0x416)])throw new Error(_0x13e5ad(0x29b));this[_0x13e5ad(0x416)]=!0x0;}[_0x3b224c(0x2bb)](_0x55b820){const _0x5ab145=_0x3b224c;this[_0x5ab145(0x296)](),this['_updateState'](this[_0x5ab145(0x378)][_0x5ab145(0x329)](_0x55b820)),this[_0x5ab145(0x319)]();}[_0x3b224c(0x455)](_0x94b27a){const _0x10afa6=_0x3b224c;if(!(_0x94b27a[_0x10afa6(0x5d2)]<=this['_revisionService'][_0x10afa6(0x58d)](this[_0x10afa6(0x236)]))){if(this['_collaborationPaused']){this[_0x10afa6(0x588)][_0x10afa6(0x1a8)](_0x94b27a);return;}this[_0x10afa6(0x3c0)](_0x94b27a);}}[_0x3b224c(0x552)](){const _0x21f1ea=_0x3b224c;this[_0x21f1ea(0x588)][_0x21f1ea(0x54f)](_0x21f13c=>this[_0x21f1ea(0x3c0)](_0x21f13c)),this['_remoteChangesetQueue']=[];}[_0x3b224c(0x3c0)](_0x527a76){const _0x5b2267=_0x3b224c,_0x11d61e=this[_0x5b2267(0x2fe)]['interceptor'][_0x5b2267(0x205)](this[_0x5b2267(0x2fe)]['interceptor'][_0x5b2267(0x204)]()['COMPRESS_MUTATION_APPLY'])(_0x527a76[_0x5b2267(0x229)],null)||_0x527a76[_0x5b2267(0x229)],_0x49bbec={..._0x527a76,'mutations':_0x11d61e};this['_lockTransition'](),this[_0x5b2267(0x415)](this[_0x5b2267(0x378)][_0x5b2267(0x52e)](_0x49bbec)),this[_0x5b2267(0x319)]();}[_0x3b224c(0x44f)](_0x6fa896){const _0x5244bc=_0x3b224c;this[_0x5244bc(0x296)](),this[_0x5244bc(0x415)](this['_state'][_0x5244bc(0x58e)](_0x6fa896)),this['_unlockTransition']();}[_0x3b224c(0x1ad)](_0x263281){const _0x4854d2=_0x3b224c;this['_lockTransition'](),this['_updateState'](this['_state']['onRemoteRej'](_0x263281)),this[_0x4854d2(0x319)]();}[_0x3b224c(0x16c)](_0x3d79a1){const _0x23f187=_0x3b224c;this[_0x23f187(0x296)](),this[_0x23f187(0x415)](this[_0x23f187(0x378)]['onRemoteRetry'](_0x3d79a1)),this[_0x23f187(0x319)]();}[_0x3b224c(0x3d9)](_0x6ac701){const _0x2e52c7=_0x3b224c;if(!(this[_0x2e52c7(0x378)]instanceof re))throw new TypeError(_0x2e52c7(0x585));const _0x27cc42=_0x6ac701[_0x2e52c7(0x283)](_0x2e73a4=>{const _0x4dc8b4=_0x2e52c7,_0xae9d6=this['_compressMutationService'][_0x4dc8b4(0x498)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x4dc8b4(0x504)])(_0x2e73a4[_0x4dc8b4(0x229)],null)||_0x2e73a4['mutations'];return{..._0x2e73a4,'mutations':_0xae9d6};});this[_0x2e52c7(0x296)](),this['_updateState'](this[_0x2e52c7(0x378)][_0x2e52c7(0x52d)](_0x27cc42)),this[_0x2e52c7(0x319)]();}[_0x3b224c(0x30d)](){const _0xf60a6a=_0x3b224c;this[_0xf60a6a(0x296)](),this[_0xf60a6a(0x415)](this[_0xf60a6a(0x378)][_0xf60a6a(0x153)]()),this[_0xf60a6a(0x319)]();}['_toggleOnline'](_0x4476a8=!0x1){const _0x1f7684=_0x3b224c;this['_lockTransition'](),this[_0x1f7684(0x415)](this['_state'][_0x1f7684(0x298)]()),this['_unlockTransition']();const _0x415167=this[_0x1f7684(0x378)];_0x4476a8&&_0x415167 instanceof Oe&&(this[_0x1f7684(0x296)](),this[_0x1f7684(0x415)](_0x415167[_0x1f7684(0x1a5)]()),this[_0x1f7684(0x319)]());}async[_0x3b224c(0x3bd)](){return new Promise(_0x32977e=>{const _0x20c020=_0x1276;this['session'][_0x20c020(0x480)][_0x20c020(0x3cc)](A[_0x20c020(0x189)](0x1))['subscribe'](async _0x4b335e=>{const _0x47efa3=_0x20c020;_0x32977e(await this[_0x47efa3(0x526)](_0x4b335e===se[_0x47efa3(0x3a3)]));});});}['_createHandler'](){const _0x17ff83=_0x3b224c,_0x1df70d=this[_0x17ff83(0x236)];return{'onStateChange':(_0xcc5f48,_0xc43af1)=>{const _0x45649e=_0x17ff83;if(_0xcc5f48!==this['_state'])throw new Error(_0x45649e(0x1cc)+_0xcc5f48[_0x45649e(0x2db)]+_0x45649e(0x4d0)+_0xc43af1[_0x45649e(0x2db)]+_0x45649e(0x5d4)+this[_0x45649e(0x378)][_0x45649e(0x2db)]);this[_0x45649e(0x415)](_0xc43af1);},'onSendChangeset':_0x2e5116=>{const _0x41491c=_0x17ff83;_0x2e5116[_0x41491c(0x2d0)]||(_0x2e5116[_0x41491c(0x2d0)]=this[_0x41491c(0x1ba)],_0x2e5116[_0x41491c(0x250)]=++this[_0x41491c(0x5ce)]);const _0x56c02a={'eventID':S[_0x41491c(0x136)][_0x41491c(0x2df)],'data':{'unitID':_0x2e5116[_0x41491c(0x236)],'unitType':this['_type'],'changeset':_0x2e5116,'memberID':this['session'][_0x41491c(0x3b8)]()}};this[_0x41491c(0x3ca)]['send'](_0x56c02a,this[_0x41491c(0x236)]);},'onMissingChangesets':({from:_0x4dffb1,to:_0x2a40d2})=>{const _0x3401ce=_0x17ff83;this[_0x3401ce(0x13a)][_0x3401ce(0x241)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x4dffb1+_0x3401ce(0x344)+_0x2a40d2);const _0x3c07d7={'eventID':S['CollaborationEvent'][_0x3401ce(0x468)],'data':{'unitID':_0x1df70d,'unitType':this['_type'],'from':_0x4dffb1,'to':_0x2a40d2}};this['session'][_0x3401ce(0x50d)](_0x3c07d7,this['unitID']);}};}async[_0x3b224c(0x526)](_0x10059a){const _0x47d308=_0x3b224c;var _0x331828,_0x2bcf68;const _0x316476=await this[_0x47d308(0x490)][_0x47d308(0x2a3)](this[_0x47d308(0x236)]),_0x1db9d1=(_0x331828=_0x316476==null?void 0x0:_0x316476[_0x47d308(0x229)])!=null?_0x331828:[],_0x4782a4=(_0x2bcf68=_0x316476==null?void 0x0:_0x316476[_0x47d308(0x3c3)])!=null?_0x2bcf68:null,_0x534a67=!!(_0x4782a4!=null&&_0x4782a4[_0x47d308(0x2d0)])&&!!(_0x4782a4!=null&&_0x4782a4[_0x47d308(0x250)]);this['_changesetSessionId']=_0x534a67?_0x4782a4[_0x47d308(0x2d0)]:mi(),this[_0x47d308(0x5ce)]=_0x534a67?_0x4782a4[_0x47d308(0x250)]:0x0;const _0x54a9fb=this[_0x47d308(0x236)];try{this[_0x47d308(0x28d)](_0x4782a4,_0x1db9d1);}catch(_0x9cc44e){this['_logService'][_0x47d308(0x423)](_0x9cc44e);}const _0x52d754=this[_0x47d308(0x2aa)]();if(_0x10059a){const _0x4e5f04=mn(this[_0x47d308(0x495)],_0x54a9fb,this['_type'],_0x4782a4,_0x1db9d1,_0x52d754);return _0x4e5f04 instanceof ce?_0x4e5f04['_schedule']():(_0x4e5f04 instanceof le||_0x4e5f04 instanceof fe)&&_0x4e5f04['resend'](),_0x4e5f04;}return this[_0x47d308(0x495)][_0x47d308(0x560)](me,_0x54a9fb,this[_0x47d308(0x391)],_0x4782a4,_0x1db9d1,_0x52d754);}[_0x3b224c(0x28d)](_0x5767d9,_0x5e5299){const _0x58a164=_0x3b224c;var _0x37d212,_0x18d05a;const _0x2b80b=this[_0x58a164(0x2fe)]['interceptor'][_0x58a164(0x205)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x37d212=_0x2b80b((_0x5767d9==null?void 0x0:_0x5767d9[_0x58a164(0x229)])||[],null))==null||_0x37d212[_0x58a164(0x54f)](_0x528fa2=>this[_0x58a164(0x2b1)][_0x58a164(0x5ad)](_0x528fa2['id'],_0x528fa2[_0x58a164(0x2be)])),(_0x18d05a=_0x2b80b(_0x5e5299||[],null))==null||_0x18d05a[_0x58a164(0x54f)](_0xc20e6b=>this['_commandService'][_0x58a164(0x5ad)](_0xc20e6b['id'],_0xc20e6b[_0x58a164(0x2be)]));}},exports[_0x3b224c(0x1ed)]=yt([H(0x3,a[_0x3b224c(0x556)](a['Injector'])),H(0x4,a['Inject'](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x407)])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S['RevisionService'])),H(0x8,a['ILogService']),H(0x9,a['ICommandService']),H(0xa,ee[_0x3b224c(0x2d5)]),H(0xb,a[_0x3b224c(0x36e)]),H(0xc,a[_0x3b224c(0x3e1)](qe))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x58eb97,_0x8b9720,_0x304e81,_0x4d9fb3,_0x44dcb5,_0x481fb0,_0x21af68,_0x6d2c4b,_0x31cebf,_0x4d9bca,_0x17aa1a,_0xf023f1,_0x430472,_0x4b1a59,_0x46b120,_0xa85cc2,_0xa4910a,_0x2a1f33){const _0x342843=_0x3b224c;super(_0x58eb97,_0x304e81,_0x8b9720,_0x4d9fb3,_0x44dcb5,_0x481fb0,_0x21af68,_0x6d2c4b,_0x4b1a59,_0x46b120,_0xa85cc2,_0xa4910a,_0x2a1f33),this['unitID']=_0x58eb97,this['type']=_0x8b9720,this[_0x342843(0x1e7)]=_0x31cebf,this['_docTransformIMECacheService']=_0x4d9bca,this[_0x342843(0x3a2)]=_0x17aa1a,this[_0x342843(0x30e)]=_0xf023f1,this[_0x342843(0x3b5)]=_0x430472;}[_0x3b224c(0x2aa)](){const _0x79faae=_0x3b224c,_0xd73401=super[_0x79faae(0x2aa)]();return _0xd73401['onTransformIME']=_0x5496b7=>this['_docTransformIMECacheService'][_0x79faae(0x57c)](_0x5496b7),_0xd73401[_0x79faae(0x53c)]=_0x422a7f=>this[_0x79faae(0x3a2)][_0x79faae(0x399)](_0x422a7f),_0xd73401['onTransformSelections']=_0x5c20ef=>this[_0x79faae(0x30e)][_0x79faae(0x372)](_0x5c20ef),_0xd73401[_0x79faae(0x309)]=_0x54c142=>this[_0x79faae(0x3b5)][_0x79faae(0x46a)](_0x54c142),_0xd73401[_0x79faae(0x2d8)]=_0x453ad0=>this[_0x79faae(0x434)][_0x79faae(0x37f)](_0x453ad0),_0xd73401[_0x79faae(0x5de)]=_0x128556=>this[_0x79faae(0x3a2)][_0x79faae(0x37f)](_0x128556),_0xd73401;}async[_0x3b224c(0x578)](){const _0x45c624=_0x3b224c,_0x538935=await super[_0x45c624(0x578)]();return this[_0x45c624(0x1e7)][_0x45c624(0x538)][_0x45c624(0x3cc)](A[_0x45c624(0x58f)](this['dispose$']))[_0x45c624(0x2de)](_0x507c55=>{const _0x367b7b=_0x45c624;if(_0x507c55==null)return;const {unitId:_0x17d315,redoState:_0x5ec444,commandId:_0x277714}=_0x507c55;if(_0x17d315!==this[_0x367b7b(0x236)])return;const _0x32dc05={'id':_0x277714,'type':a[_0x367b7b(0x549)][_0x367b7b(0x57e)],'params':{'unitId':_0x17d315,'actions':_0x5ec444['actions'],'textRanges':null}};this['_onLocalMutation'](_0x32dc05);}),_0x538935;}},exports[_0x3b224c(0x451)]=yt([H(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),H(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x407)])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),H(0x8,a['Inject'](J[_0x3b224c(0x1fb)])),H(0x9,a[_0x3b224c(0x556)](Be)),H(0xa,a[_0x3b224c(0x556)](We)),H(0xb,a[_0x3b224c(0x556)](Fe)),H(0xc,a[_0x3b224c(0x556)](Rt)),H(0xd,a['ILogService']),H(0xe,a[_0x3b224c(0x3d4)]),H(0xf,ee[_0x3b224c(0x2d5)]),H(0x10,a[_0x3b224c(0x36e)]),H(0x11,a[_0x3b224c(0x3e1)](qe))],exports[_0x3b224c(0x451)]),exports['SheetCollaborationEntity']=class extends exports[_0x3b224c(0x1ed)]{constructor(_0x386852,_0x8d465d,_0x401998,_0x411d0e,_0x5eb0c0,_0x2f1c61,_0x492fa3,_0x2dbcb6,_0xa1cd60,_0x41c8f6,_0x38b927,_0x43cd6d,_0x29ff48,_0x5d4fd9){const _0x556394=_0x3b224c;super(_0x386852,_0x401998,_0x8d465d,_0x411d0e,_0x5eb0c0,_0x2f1c61,_0x492fa3,_0x2dbcb6,_0x41c8f6,_0x38b927,_0x43cd6d,_0x29ff48,_0x5d4fd9),this[_0x556394(0x236)]=_0x386852,this[_0x556394(0x5bb)]=_0x8d465d,this[_0x556394(0x4f9)]=_0xa1cd60;}['_createHandler'](){const _0x562f2f=_0x3b224c,_0x4752cc=super[_0x562f2f(0x2aa)]();return _0x4752cc[_0x562f2f(0x478)]=_0x39549e=>this[_0x562f2f(0x4f9)]['transformSelections'](_0x39549e),_0x4752cc;}async[_0x3b224c(0x578)](){const _0x26fb92=_0x3b224c,_0x9c769c=await super[_0x26fb92(0x578)]();return this[_0x26fb92(0x220)](this['_commandService'][_0x26fb92(0x3fe)]((_0x56764c,_0xdbf211)=>{const _0x3b9129=_0x26fb92;if(_0x56764c[_0x3b9129(0x5bb)]!==a[_0x3b9129(0x549)][_0x3b9129(0x57e)]||_0xdbf211!=null&&_0xdbf211[_0x3b9129(0x1dd)]||_0xdbf211!=null&&_0xdbf211[_0x3b9129(0x331)])return;const _0x35178f=_0x56764c['params'];if((_0x35178f==null?void 0x0:_0x35178f[_0x3b9129(0x242)])!==this[_0x3b9129(0x236)])return;const _0x14378c=_0x56764c,_0x22ce4e=this[_0x3b9129(0x2fe)][_0x3b9129(0x498)][_0x3b9129(0x205)](this[_0x3b9129(0x2fe)][_0x3b9129(0x498)]['getInterceptPoints']()[_0x3b9129(0x4ed)])([_0x14378c],null)||[_0x14378c];this['_onLocalMutation'](_0x22ce4e[0x0]);})),_0x9c769c;}},exports[_0x3b224c(0x51e)]=yt([H(0x3,a[_0x3b224c(0x556)](a['Injector'])),H(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S['CompressMutationService'])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x3b224c(0x5ae)]),H(0xa,a['ICommandService']),H(0xb,ee['IMessageService']),H(0xc,a[_0x3b224c(0x36e)]),H(0xd,a['Optional'](qe))],exports[_0x3b224c(0x51e)]);var Wi=Object[_0x3b224c(0x209)],Fi=Object[_0x3b224c(0x233)],Vi=(_0x11bb12,_0x341e8c,_0x1fd6b4,_0x5f814e)=>{for(var _0x97345f=_0x5f814e>0x1?void 0x0:_0x5f814e?Fi(_0x341e8c,_0x1fd6b4):_0x341e8c,_0x3a0cbd=_0x11bb12['length']-0x1,_0x541a66;_0x3a0cbd>=0x0;_0x3a0cbd--)(_0x541a66=_0x11bb12[_0x3a0cbd])&&(_0x97345f=(_0x5f814e?_0x541a66(_0x341e8c,_0x1fd6b4,_0x97345f):_0x541a66(_0x97345f))||_0x97345f);return _0x5f814e&&_0x97345f&&Wi(_0x341e8c,_0x1fd6b4,_0x97345f),_0x97345f;},tt=(_0x295da2,_0x57ac7f)=>(_0x1535a3,_0xdab8c7)=>_0x57ac7f(_0x1535a3,_0xdab8c7,_0x295da2);exports[_0x3b224c(0x1d0)]=class extends a[_0x3b224c(0x274)]{constructor(_0x7e517a,_0x963ea8,_0x3479f1){const _0x1b74a8=_0x3b224c;super(),I(this,_0x1b74a8(0x3f6),new Map()),I(this,_0x1b74a8(0x231),new A[(_0x1b74a8(0x13f))]()),(this[_0x1b74a8(0x495)]=_0x7e517a,this[_0x1b74a8(0x1c9)]=_0x963ea8,this['_univerInstanceService']=_0x3479f1,this[_0x1b74a8(0x578)]());}[_0x3b224c(0x2fa)](){const _0x16f03c=_0x3b224c;super[_0x16f03c(0x2fa)](),this[_0x16f03c(0x3f6)][_0x16f03c(0x54f)](_0x1798c5=>_0x1798c5[_0x16f03c(0x2fa)]()),this['_entities'][_0x16f03c(0x3b6)]();}[_0x3b224c(0x530)](_0x14b56a){const _0x416c8a=_0x3b224c;var _0x4db12d;return(_0x4db12d=this[_0x416c8a(0x3f6)][_0x416c8a(0x273)](_0x14b56a))!=null?_0x4db12d:null;}[_0x3b224c(0x4c8)](_0x17cb59){const _0x4c6ed7=_0x3b224c,_0x587cc3=this[_0x4c6ed7(0x530)](_0x17cb59);return _0x587cc3?A['of'](_0x587cc3):this[_0x4c6ed7(0x231)][_0x4c6ed7(0x3cc)](V[_0x4c6ed7(0x567)](_0x1b5eb3=>_0x1b5eb3[_0x4c6ed7(0x236)]===_0x17cb59));}[_0x3b224c(0x578)](){const _0x3652b3=_0x3b224c;this[_0x3652b3(0x15e)][_0x3652b3(0x291)](a[_0x3652b3(0x3b1)][_0x3652b3(0x460)])['pipe'](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]),V[_0x3652b3(0x2a1)](0x10))[_0x3652b3(0x2de)](async _0x289c4c=>{const _0x1c0d5b=_0x3652b3,_0x46fb16=_0x289c4c[_0x1c0d5b(0x22d)](),_0x27bfce=await this['_startCollaboration'](_0x46fb16,ie[_0x1c0d5b(0x460)]);this[_0x1c0d5b(0x3f6)][_0x1c0d5b(0x437)](_0x46fb16,_0x27bfce);}),this['_univerInstanceService'][_0x3652b3(0x291)](a['UniverInstanceType'][_0x3652b3(0x508)])['pipe'](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]),V['delay'](0x10))[_0x3652b3(0x3cc)](V[_0x3652b3(0x567)](_0x5f2a09=>!_0x5f2a09[_0x3652b3(0x22d)]()[_0x3652b3(0x4d4)]('__')))['subscribe'](async _0x32ca4c=>{const _0x294a1a=_0x3652b3,_0x3605b4=_0x32ca4c['getUnitId'](),_0x15e080=await this[_0x294a1a(0x255)](_0x3605b4,ie[_0x294a1a(0x508)]);this[_0x294a1a(0x3f6)][_0x294a1a(0x437)](_0x3605b4,_0x15e080);}),A[_0x3652b3(0x3d6)](this[_0x3652b3(0x15e)][_0x3652b3(0x1c8)](a['UniverInstanceType'][_0x3652b3(0x460)]),this[_0x3652b3(0x15e)][_0x3652b3(0x1c8)](a[_0x3652b3(0x3b1)]['UNIVER_DOC']))[_0x3652b3(0x3cc)](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]))[_0x3652b3(0x2de)](_0x4cb0a3=>{const _0x2115c2=_0x3652b3,_0x326108=_0x4cb0a3[_0x2115c2(0x22d)](),_0x4a6a6e=this[_0x2115c2(0x3f6)][_0x2115c2(0x273)](_0x326108);_0x4a6a6e&&(_0x4a6a6e['dispose'](),this['_entities']['delete'](_0x326108));});}async[_0x3b224c(0x255)](_0x449c77,_0x122c8e){const _0x136aff=_0x3b224c,_0x40f2f4=await this[_0x136aff(0x1c9)][_0x136aff(0x376)](_0x449c77),_0x2401df=this[_0x136aff(0x495)][_0x136aff(0x560)](this[_0x136aff(0x428)](_0x122c8e),_0x449c77,_0x122c8e,_0x40f2f4);return await _0x2401df['init'](),this['_entityInit$'][_0x136aff(0x1e1)](_0x2401df),_0x2401df;}[_0x3b224c(0x428)](_0xdbd002){const _0x5a4050=_0x3b224c;switch(_0xdbd002){case ie[_0x5a4050(0x508)]:return exports['DocCollaborationEntity'];case ie[_0x5a4050(0x460)]:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xdbd002);}}},exports[_0x3b224c(0x1d0)]=Vi([tt(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),tt(0x1,a['Inject'](exports[_0x3b224c(0x5d8)])),tt(0x2,a[_0x3b224c(0x5a1)])],exports[_0x3b224c(0x1d0)]);const $t=['purple300',_0x3b224c(0x45a),_0x3b224c(0x522),_0x3b224c(0x59b),_0x3b224c(0x1aa),_0x3b224c(0x162)];class Ot extends a[_0x3b224c(0x52b)]{constructor(){const _0x5d747c=_0x3b224c;super(...arguments),I(this,_0x5d747c(0x247),new Map()),I(this,_0x5d747c(0x4d1),0x0);}[_0x3b224c(0x326)](_0x347f4d){const _0x585f73=_0x3b224c;if(this[_0x585f73(0x247)][_0x585f73(0x339)](_0x347f4d))return this['_assignedColors'][_0x585f73(0x273)](_0x347f4d);const _0x404019=$t[this[_0x585f73(0x4d1)]];return this[_0x585f73(0x4d1)]=(this[_0x585f73(0x4d1)]+0x1)%$t[_0x585f73(0x2a8)],this['_assignedColors'][_0x585f73(0x437)](_0x347f4d,_0x404019),_0x404019;}}var Gi=Object[_0x3b224c(0x209)],Yi=Object[_0x3b224c(0x233)],Ki=(_0x3a4da4,_0x1b81ec,_0x52a05c,_0x5ac5fc)=>{const _0x50b277=_0x3b224c;for(var _0x427b4b=_0x5ac5fc>0x1?void 0x0:_0x5ac5fc?Yi(_0x1b81ec,_0x52a05c):_0x1b81ec,_0x2430c8=_0x3a4da4[_0x50b277(0x2a8)]-0x1,_0x1afb73;_0x2430c8>=0x0;_0x2430c8--)(_0x1afb73=_0x3a4da4[_0x2430c8])&&(_0x427b4b=(_0x5ac5fc?_0x1afb73(_0x1b81ec,_0x52a05c,_0x427b4b):_0x1afb73(_0x427b4b))||_0x427b4b);return _0x5ac5fc&&_0x427b4b&&Gi(_0x1b81ec,_0x52a05c,_0x427b4b),_0x427b4b;},Se=(_0x1b2ccf,_0x58c1cf)=>(_0x3ed84c,_0x2d9bfa)=>_0x58c1cf(_0x3ed84c,_0x2d9bfa,_0x1b2ccf);const qi=0x12c,zi=0x64;let mt=class extends a[_0x3b224c(0x274)]{constructor(_0x447aa9,_0x47b74c,_0x5c6c23,_0x106561,_0x2cc73f,_0x3cd7e6,_0x52d472,_0x44547b,_0x10e837){const _0x1bb9c2=_0x3b224c;super(),I(this,'_online',!0x1),I(this,_0x1bb9c2(0x578),!0x1),I(this,_0x1bb9c2(0x31f),new A[(_0x1bb9c2(0x33e))](new Map())),I(this,_0x1bb9c2(0x2fb),this[_0x1bb9c2(0x31f)][_0x1bb9c2(0x4f7)]()),I(this,_0x1bb9c2(0x1f2),new A[(_0x1bb9c2(0x33e))]([])),I(this,'roomMembers$',this[_0x1bb9c2(0x1f2)]['pipe'](A[_0x1bb9c2(0x532)](qi))),I(this,_0x1bb9c2(0x1db),a[_0x1bb9c2(0x1bb)](_0x1cc2ca=>{const _0x2adbbd=_0x1bb9c2,_0x2ed1c3={'eventID':S[_0x2adbbd(0x136)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2adbbd(0x236)],'memberID':this['_session']['getMemberID'](),'selection':dn(_0x1cc2ca)}};this['_session'][_0x2adbbd(0x50d)](_0x2ed1c3,this['unitID']);},zi)),(this[_0x1bb9c2(0x236)]=_0x447aa9,this[_0x1bb9c2(0x23d)]=_0x47b74c,this[_0x1bb9c2(0x495)]=_0x5c6c23,this[_0x1bb9c2(0x450)]=_0x106561,this[_0x1bb9c2(0x486)]=_0x2cc73f,this[_0x1bb9c2(0x555)]=_0x3cd7e6,this[_0x1bb9c2(0x5c9)]=_0x52d472,this['_univerInstanceService']=_0x44547b,this[_0x1bb9c2(0x2b1)]=_0x10e837);}get[_0x3b224c(0x1e4)](){const _0x37ea87=_0x3b224c;return this[_0x37ea87(0x31f)]['getValue']();}get['roomMembers'](){const _0x4b35ea=_0x3b224c;return this['_roomMembers$'][_0x4b35ea(0x3df)]();}[_0x3b224c(0x2fa)](){const _0x3e6a19=_0x3b224c;super[_0x3e6a19(0x2fa)](),this[_0x3e6a19(0x31f)]['next'](new Map()),this['_cursorInfo$'][_0x3e6a19(0x163)](),this[_0x3e6a19(0x1f2)][_0x3e6a19(0x1e1)]([]),this['_roomMembers$']['complete']();}[_0x3b224c(0x20b)](){const _0x1082f2=_0x3b224c;this['_init']||(this[_0x1082f2(0x578)]=!0x0,this[_0x1082f2(0x23d)][_0x1082f2(0x480)][_0x1082f2(0x3cc)](A[_0x1082f2(0x58f)](this['dispose$']))[_0x1082f2(0x2de)](_0xcab965=>{const _0xf02903=_0x1082f2;_0xcab965===se[_0xf02903(0x3a3)]?this[_0xf02903(0x4bd)]():this[_0xf02903(0x30d)]();}),this[_0x1082f2(0x23d)][_0x1082f2(0x396)]['pipe'](A[_0x1082f2(0x58f)](this[_0x1082f2(0x19d)]))[_0x1082f2(0x2de)](_0x139aa7=>{const _0x26cc81=_0x1082f2,_0x4063a5=_0x139aa7[_0x26cc81(0x4a9)];_0x4063a5===S['CollaborationEvent'][_0x26cc81(0x182)]&&this[_0x26cc81(0x505)](_0x139aa7),_0x4063a5===S[_0x26cc81(0x136)][_0x26cc81(0x502)]&&this['_onCursorDelete'](_0x139aa7);}),this['disposeWithMe'](this[_0x1082f2(0x2b1)][_0x1082f2(0x3fe)](_0x4aee4a=>{const _0x540904=_0x1082f2,_0x1e9a83=_0x4aee4a[_0x540904(0x2be)];_0x1e9a83!=null&&this['_online']&&_0x4aee4a['id']===ye[_0x540904(0x445)]['id']&&_0x1e9a83[_0x540904(0x242)]===this[_0x540904(0x236)]&&_0x1e9a83['isEditing']===!0x1&&_0x1e9a83[_0x540904(0x386)][_0x540904(0x2a8)]>0x0&&this['_updateLocalCursor'](_0x1e9a83[_0x540904(0x386)]);})),this[_0x1082f2(0x555)][_0x1082f2(0x14c)][_0x1082f2(0x3cc)](A['takeUntil'](this[_0x1082f2(0x19d)]))[_0x1082f2(0x2de)](_0x32df46=>{const _0x5881f0=_0x1082f2;if((_0x32df46==null?void 0x0:_0x32df46['unitID'])!==this[_0x5881f0(0x236)])return;const _0x4d8c33={'eventID':S[_0x5881f0(0x136)][_0x5881f0(0x182)],'data':_0x32df46};this[_0x5881f0(0x505)](_0x4d8c33);}),this[_0x1082f2(0x220)](this['_commandService'][_0x1082f2(0x3fe)](_0x1d5b06=>{const _0x50b594=_0x1082f2;if(_0x1d5b06[_0x50b594(0x2be)]==null)return;const _0x3b9bbf=_0x1d5b06[_0x50b594(0x2be)];if(_0x1d5b06['id']!==ye[_0x50b594(0x19f)]['id']||_0x3b9bbf['unitId']!==this[_0x50b594(0x236)])return;const _0x4086bc={'id':_0x50b594(0x59c),'params':_0x3b9bbf},_0x2ee308=this[_0x50b594(0x1e4)];for(const [_0x1df0f8,_0x2129ba]of _0x2ee308){const _0x28812c={'id':_0x50b594(0x59c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2129ba[_0x50b594(0x386)]}},_0x25c10e=this[_0x50b594(0x5c9)][_0x50b594(0x38c)](_0x4086bc,_0x28812c,!0x1);if(S['isTransformMutationFailure'](_0x25c10e))throw _0x25c10e[_0x50b594(0x423)];_0x2ee308[_0x50b594(0x437)](_0x1df0f8,{..._0x2129ba,'ranges':_0x25c10e[_0x50b594(0x3f1)][_0x50b594(0x2be)]['textRanges']});}queueMicrotask(()=>{const _0x1f21aa=_0x50b594;this[_0x1f21aa(0x31f)][_0x1f21aa(0x1e1)](_0x2ee308);});})));}[_0x3b224c(0x505)](_0x23017d){const _0x28a628=_0x3b224c;var _0x4cace2,_0x51c7b9;const {memberID:_0x1b4196,selection:_0x827e8f}=_0x23017d[_0x28a628(0x34e)],_0x109a7d=Ui(_0x827e8f),_0x243c4f=(_0x51c7b9=(_0x4cace2=this[_0x28a628(0x486)][_0x28a628(0x2af)](this[_0x28a628(0x236)],_0x1b4196))==null?void 0x0:_0x4cace2[_0x28a628(0x513)])!=null?_0x51c7b9:_0x28a628(0x31e),_0x2ba253={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1b4196),'name':_0x243c4f,'ranges':_0x109a7d},_0x3ad1a9=this[_0x28a628(0x1e4)];_0x3ad1a9['set'](_0x1b4196,_0x2ba253),this[_0x28a628(0x31f)][_0x28a628(0x1e1)](_0x3ad1a9);}['_onCursorDelete'](_0x297e21){const _0x10f148=_0x3b224c,{memberID:_0x154957}=_0x297e21[_0x10f148(0x34e)],_0x590adc=this[_0x10f148(0x1e4)];_0x590adc[_0x10f148(0x463)](_0x154957),this[_0x10f148(0x31f)]['next'](_0x590adc);}[_0x3b224c(0x4bd)](){const _0x359630=_0x3b224c;var _0x590053;if(this[_0x359630(0x531)]=!0x0,((_0x590053=this[_0x359630(0x15e)][_0x359630(0x499)]())==null?void 0x0:_0x590053[_0x359630(0x22d)]())!==this[_0x359630(0x236)])return;const _0x493553=this[_0x359630(0x495)]['get'](ye[_0x359630(0x130)])[_0x359630(0x1c1)]();Array['isArray'](_0x493553)&&_0x493553[_0x359630(0x2a8)]>0x0&&this[_0x359630(0x1db)](_0x493553);}[_0x3b224c(0x30d)](){this['_online']=!0x1;}};mt=Ki([Se(0x2,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Se(0x3,a['Inject'](Ot)),Se(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5db)])),Se(0x5,a['Inject'](Rt)),Se(0x6,S[_0x3b224c(0x180)]),Se(0x7,a[_0x3b224c(0x5a1)]),Se(0x8,a[_0x3b224c(0x3d4)])],mt);var Xi=Object[_0x3b224c(0x209)],Ji=Object[_0x3b224c(0x233)],Zi=(_0x5c5a81,_0x41e695,_0x2520e2,_0x3873e9)=>{for(var _0x3de93f=_0x3873e9>0x1?void 0x0:_0x3873e9?Ji(_0x41e695,_0x2520e2):_0x41e695,_0x253589=_0x5c5a81['length']-0x1,_0x2d194b;_0x253589>=0x0;_0x253589--)(_0x2d194b=_0x5c5a81[_0x253589])&&(_0x3de93f=(_0x3873e9?_0x2d194b(_0x41e695,_0x2520e2,_0x3de93f):_0x2d194b(_0x3de93f))||_0x3de93f);return _0x3873e9&&_0x3de93f&&Xi(_0x41e695,_0x2520e2,_0x3de93f),_0x3de93f;},be=(_0x58c82f,_0x477580)=>(_0x1ad579,_0x6d37d6)=>_0x477580(_0x1ad579,_0x6d37d6,_0x58c82f);const Qi=0x12c,es=0x64,ts=()=>{let _0x4a2938=[],_0x2a03a7=!0x1;return _0x2584e6=>{const _0x5376ab=_0x1276;_0x4a2938[_0x5376ab(0x1a8)](_0x2584e6),_0x2a03a7||(_0x2a03a7=!0x0,setTimeout(()=>{const _0x312797=_0x5376ab;_0x4a2938[_0x312797(0x54f)](_0x2d030f=>_0x2d030f()),_0x4a2938=[],_0x2a03a7=!0x1;}));};};let St=class extends a[_0x3b224c(0x274)]{constructor(_0x90b692,_0x311025,_0x17ad31,_0x393c47,_0x552629,_0x2546c5,_0x52b8e5,_0x243767){const _0x4373d6=_0x3b224c;super(),I(this,_0x4373d6(0x531),!0x1),I(this,_0x4373d6(0x578),!0x1),I(this,'_cursorInfo$',new A[(_0x4373d6(0x33e))](new Map())),I(this,_0x4373d6(0x2fb),this['_cursorInfo$'][_0x4373d6(0x4f7)]()),I(this,_0x4373d6(0x1f2),new A[(_0x4373d6(0x33e))]([])),I(this,_0x4373d6(0x425),this[_0x4373d6(0x1f2)][_0x4373d6(0x3cc)](A[_0x4373d6(0x532)](Qi))),I(this,_0x4373d6(0x1db),a[_0x4373d6(0x1bb)]((_0xeceebd,_0x17e59d)=>{const _0x17887a=_0x4373d6,_0x471c2e={'eventID':S[_0x17887a(0x136)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17887a(0x236)],'memberID':this[_0x17887a(0x23d)]['getMemberID'](),'selection':Pt['serializeRangeWithSheet'](_0xeceebd,_0x17e59d['range'])}};this['_session'][_0x17887a(0x50d)](_0x471c2e,this[_0x17887a(0x236)]);},es)),(this[_0x4373d6(0x236)]=_0x90b692,this[_0x4373d6(0x23d)]=_0x311025,this[_0x4373d6(0x495)]=_0x17ad31,this[_0x4373d6(0x450)]=_0x393c47,this[_0x4373d6(0x486)]=_0x552629,this[_0x4373d6(0x15e)]=_0x2546c5,this[_0x4373d6(0x2b1)]=_0x52b8e5,this[_0x4373d6(0x4b9)]=_0x243767);}get[_0x3b224c(0x1e4)](){const _0x2771e3=_0x3b224c;return this[_0x2771e3(0x31f)]['getValue']();}get['roomMembers'](){const _0x3f24ad=_0x3b224c;return this[_0x3f24ad(0x1f2)][_0x3f24ad(0x3df)]();}[_0x3b224c(0x2fa)](){const _0x1e0d15=_0x3b224c;super[_0x1e0d15(0x2fa)](),this[_0x1e0d15(0x31f)][_0x1e0d15(0x1e1)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1e0d15(0x1f2)][_0x1e0d15(0x1e1)]([]),this[_0x1e0d15(0x1f2)][_0x1e0d15(0x163)]();}[_0x3b224c(0x20b)](){const _0xce183f=_0x3b224c;this[_0xce183f(0x578)]||(this[_0xce183f(0x578)]=!0x0,this[_0xce183f(0x23d)]['sessionStatus$'][_0xce183f(0x3cc)](A[_0xce183f(0x58f)](this[_0xce183f(0x19d)]))[_0xce183f(0x2de)](_0x3f5157=>{const _0x2531bb=_0xce183f;_0x3f5157===se[_0x2531bb(0x3a3)]?this[_0x2531bb(0x4bd)]():this[_0x2531bb(0x30d)]();}),this[_0xce183f(0x23d)][_0xce183f(0x396)][_0xce183f(0x3cc)](A[_0xce183f(0x58f)](this[_0xce183f(0x19d)]))[_0xce183f(0x2de)](_0x18010c=>{const _0x31133e=_0xce183f,_0x2fba46=_0x18010c[_0x31133e(0x4a9)];_0x2fba46===S[_0x31133e(0x136)]['UPDATE_CURSOR']&&this[_0x31133e(0x505)](_0x18010c),_0x2fba46===S[_0x31133e(0x136)][_0x31133e(0x502)]&&this[_0x31133e(0x387)](_0x18010c);}),this[_0xce183f(0x18e)](),this[_0xce183f(0x220)](this[_0xce183f(0x2b1)][_0xce183f(0x3fe)](_0x5b2395=>{const _0x1b9200=_0xce183f;if(this[_0x1b9200(0x531)]&&_0x5b2395['id']===k[_0x1b9200(0x324)]['id']&&_0x5b2395[_0x1b9200(0x2be)][_0x1b9200(0x242)]===this[_0x1b9200(0x236)]){const _0x41cbff=_0x5b2395[_0x1b9200(0x2be)];this[_0x1b9200(0x1db)](_0x41cbff[_0x1b9200(0x4b4)],_0x41cbff[_0x1b9200(0x4a0)][0x0]);}})));}['_onCursorUpdate'](_0x250ea9){const _0x101e9c=_0x3b224c;var _0x4b5d96,_0x13e3b4;const {memberID:_0x4a2afe,selection:_0x2e04d1}=_0x250ea9[_0x101e9c(0x34e)],{sheetName:_0x36a989,range:_0x32ce0c}=Pt[_0x101e9c(0x539)](_0x2e04d1),_0x50d580={'name':(_0x13e3b4=(_0x4b5d96=this[_0x101e9c(0x486)][_0x101e9c(0x2af)](this['unitID'],_0x4a2afe))==null?void 0x0:_0x4b5d96[_0x101e9c(0x513)])!=null?_0x13e3b4:_0x101e9c(0x31e),'range':this[_0x101e9c(0x363)](_0x36a989,_0x32ce0c),'sheetID':_0x36a989,'color':this[_0x101e9c(0x450)][_0x101e9c(0x326)](_0x4a2afe),'selection':_0x2e04d1},_0x30e138=this['cursorInfo'];_0x30e138[_0x101e9c(0x437)](_0x4a2afe,_0x50d580),this[_0x101e9c(0x31f)][_0x101e9c(0x1e1)](_0x30e138);}[_0x3b224c(0x387)](_0x197173){const _0x2ed41d=_0x3b224c,{memberID:_0x54daae}=_0x197173[_0x2ed41d(0x34e)],_0x55d267=this['cursorInfo'];_0x55d267['delete'](_0x54daae),this[_0x2ed41d(0x31f)][_0x2ed41d(0x1e1)](_0x55d267);}[_0x3b224c(0x363)](_0x5f3073,_0x57cef7){const _0x433884=_0x3b224c;var _0x1cfed6,_0x5d9267;const _0xccab81=(_0x5d9267=(_0x1cfed6=this[_0x433884(0x15e)]['getUniverSheetInstance'](this[_0x433884(0x236)]))==null?void 0x0:_0x1cfed6[_0x433884(0x574)](_0x5f3073))==null?void 0x0:_0x5d9267[_0x433884(0x1d4)]();return(_0xccab81==null?void 0x0:_0xccab81['find'](_0x347ee3=>a[_0x433884(0x44c)][_0x433884(0x328)](_0x347ee3,_0x57cef7)))||_0x57cef7;}[_0x3b224c(0x18e)](){const _0x551edd=_0x3b224c,_0x23a541=new a[(_0x551edd(0x194))](),_0x1d25c5=ts(),_0x2826c5=()=>{const _0x285922=_0x551edd;_0x23a541[_0x285922(0x2fa)]();const _0xee4a37=(_0x377603,_0x17ea1c,_0x35ad9a,_0x190a13)=>{const _0x47b6b9=_0x285922;let _0x11eecf=[];switch(_0x377603['id']){case k['EffectRefRangId'][_0x47b6b9(0x464)]:{_0x11eecf=k[_0x47b6b9(0x39e)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x56a)]:{_0x11eecf=k[_0x47b6b9(0x32f)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x1d3)]:{_0x11eecf=k[_0x47b6b9(0x57f)](_0x377603,_0x190a13);break;}case k['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x11eecf=k[_0x47b6b9(0x547)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x2b8)]:{_0x11eecf=k[_0x47b6b9(0x27b)](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x4f8)]:{_0x11eecf=k[_0x47b6b9(0x285)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x5c7)]:{_0x11eecf=k[_0x47b6b9(0x566)](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x2d2)]:{_0x11eecf=k['handleIRemoveCol'](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x401)]:{_0x11eecf=k['handleIRemoveRow'](_0x377603,_0x190a13);break;}}const _0x1e478f=k['runRefRangeMutations'](_0x11eecf,_0x190a13),_0x3e4692=this['cursorInfo'][_0x47b6b9(0x273)](_0x17ea1c);if(_0x3e4692&&_0x1e478f){const _0x2d1ba6={..._0x3e4692,'range':_0x1e478f};this[_0x47b6b9(0x1e4)]['set'](_0x17ea1c,_0x2d1ba6),_0x1d25c5(()=>{const _0x272188=_0x47b6b9,_0x131c8a=this[_0x272188(0x4b9)][_0x272188(0x201)](_0x1e478f,_0x865e05=>(_0x131c8a[_0x272188(0x2fa)](),_0xee4a37(_0x865e05,_0x17ea1c,_0x35ad9a,_0x1e478f)));_0x23a541[_0x272188(0x594)](_0x131c8a);});}return{'redos':[],'undos':[]};};this[_0x285922(0x1e4)][_0x285922(0x54f)]((_0x3b2b63,_0x25d51b)=>{const _0xd727b=_0x285922,{range:_0x930eec,sheetID:_0x16249b}=_0x3b2b63,_0x5f4ab0=this[_0xd727b(0x4b9)][_0xd727b(0x201)](_0x930eec,_0x2cf46f=>(_0x5f4ab0[_0xd727b(0x2fa)](),_0xee4a37(_0x2cf46f,_0x25d51b,_0x16249b,_0x930eec)));_0x23a541['add'](_0x5f4ab0);});};this[_0x551edd(0x220)](a[_0x551edd(0x597)](this[_0x551edd(0x31f)][_0x551edd(0x2de)](()=>{_0x2826c5();})));}[_0x3b224c(0x4bd)](){const _0x3a2b10=_0x3b224c;var _0x3de522,_0x11b06d;if(this[_0x3a2b10(0x531)]=!0x0,((_0x3de522=this[_0x3a2b10(0x15e)][_0x3a2b10(0x499)]())==null?void 0x0:_0x3de522[_0x3a2b10(0x22d)]())!==this[_0x3a2b10(0x236)])return;const _0x465054=(_0x11b06d=this[_0x3a2b10(0x495)][_0x3a2b10(0x273)](k['SheetsSelectionsService'])[_0x3a2b10(0x16f)]())==null?void 0x0:_0x11b06d[0x0],_0x130e70=this[_0x3a2b10(0x15e)][_0x3a2b10(0x4c3)](a[_0x3a2b10(0x3b1)][_0x3a2b10(0x460)])['getActiveSheet']();_0x465054&&_0x130e70&&this[_0x3a2b10(0x1db)](_0x130e70['getSheetId'](),_0x465054);}[_0x3b224c(0x30d)](){const _0xdfa0d=_0x3b224c;this[_0xdfa0d(0x531)]=!0x1;}};St=Zi([be(0x2,a['Inject'](a[_0x3b224c(0x157)])),be(0x3,a[_0x3b224c(0x556)](Ot)),be(0x4,a[_0x3b224c(0x556)](exports['MemberService'])),be(0x5,a[_0x3b224c(0x5a1)]),be(0x6,a[_0x3b224c(0x3d4)]),be(0x7,a[_0x3b224c(0x556)](k[_0x3b224c(0x4b2)]))],St);var ns=Object[_0x3b224c(0x209)],is=Object[_0x3b224c(0x233)],ss=(_0x1beaf1,_0x38dde2,_0x20bdb8,_0x20301c)=>{for(var _0x5f1f95=_0x20301c>0x1?void 0x0:_0x20301c?is(_0x38dde2,_0x20bdb8):_0x38dde2,_0x46fe42=_0x1beaf1['length']-0x1,_0x2914df;_0x46fe42>=0x0;_0x46fe42--)(_0x2914df=_0x1beaf1[_0x46fe42])&&(_0x5f1f95=(_0x20301c?_0x2914df(_0x38dde2,_0x20bdb8,_0x5f1f95):_0x2914df(_0x5f1f95))||_0x5f1f95);return _0x20301c&&_0x5f1f95&&ns(_0x38dde2,_0x20bdb8,_0x5f1f95),_0x5f1f95;},nt=(_0x45a31c,_0x33fd8e)=>(_0x2b2773,_0x5c82d6)=>_0x33fd8e(_0x2b2773,_0x5c82d6,_0x45a31c);let De=class extends a[_0x3b224c(0x274)]{constructor(_0x2e303f,_0x6ebedd,_0x167d03){const _0x53c63b=_0x3b224c;super(),I(this,_0x53c63b(0x3f6),new Map()),I(this,_0x53c63b(0x231),new A[(_0x53c63b(0x13f))]()),(this[_0x53c63b(0x15e)]=_0x2e303f,this[_0x53c63b(0x495)]=_0x6ebedd,this[_0x53c63b(0x1c9)]=_0x167d03,this[_0x53c63b(0x578)]());}['dispose'](){const _0x118ab8=_0x3b224c;super[_0x118ab8(0x2fa)](),this[_0x118ab8(0x231)][_0x118ab8(0x163)](),this[_0x118ab8(0x3f6)][_0x118ab8(0x54f)](_0x4aa086=>_0x4aa086[_0x118ab8(0x2fa)]());}[_0x3b224c(0x2f2)](_0xdeb04e){const _0x54ce32=_0x3b224c;return this[_0x54ce32(0x3f6)]['has'](_0xdeb04e)?this[_0x54ce32(0x3f6)][_0x54ce32(0x273)](_0xdeb04e)[_0x54ce32(0x2fb)]:this['_entityInit$'][_0x54ce32(0x3cc)](A[_0x54ce32(0x567)](_0x5c7535=>_0x5c7535['unitID']===_0xdeb04e),A[_0x54ce32(0x314)](_0x83182=>_0x83182[_0x54ce32(0x2fb)]));}[_0x3b224c(0x578)](){const _0x287859=_0x3b224c;this[_0x287859(0x15e)][_0x287859(0x291)](a[_0x287859(0x3b1)][_0x287859(0x460)])[_0x287859(0x3cc)](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))['subscribe'](async _0x23a329=>{const _0x3a12c4=_0x287859,_0x111d90=_0x23a329[_0x3a12c4(0x22d)](),_0x5a703e=await this['_startSheetCollabCursor'](_0x111d90);this[_0x3a12c4(0x231)][_0x3a12c4(0x1e1)](_0x5a703e),this[_0x3a12c4(0x3f6)][_0x3a12c4(0x437)](_0x111d90,_0x5a703e);}),this[_0x287859(0x15e)][_0x287859(0x291)](a[_0x287859(0x3b1)][_0x287859(0x508)])[_0x287859(0x3cc)](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))[_0x287859(0x3cc)](A['filter'](_0x149110=>!_0x149110[_0x287859(0x22d)]()[_0x287859(0x4d4)]('__')))[_0x287859(0x2de)](async _0x564dbe=>{const _0x5182f0=_0x287859,_0x1bf3c1=_0x564dbe[_0x5182f0(0x22d)](),_0x5cdf14=await this[_0x5182f0(0x36d)](_0x1bf3c1);this[_0x5182f0(0x231)][_0x5182f0(0x1e1)](_0x5cdf14),this[_0x5182f0(0x3f6)][_0x5182f0(0x437)](_0x1bf3c1,_0x5cdf14);}),A[_0x287859(0x3d6)](this['_univerInstanceService'][_0x287859(0x1c8)](a[_0x287859(0x3b1)][_0x287859(0x508)]),this[_0x287859(0x15e)][_0x287859(0x1c8)](a[_0x287859(0x3b1)][_0x287859(0x460)]))['pipe'](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))[_0x287859(0x2de)](_0x1282bc=>{const _0x136bec=_0x287859,_0x501245=_0x1282bc[_0x136bec(0x22d)](),_0x5b5e37=this[_0x136bec(0x3f6)]['get'](_0x501245);_0x5b5e37&&(_0x5b5e37[_0x136bec(0x2fa)](),this[_0x136bec(0x3f6)][_0x136bec(0x463)](_0x501245));});}async['_startSheetCollabCursor'](_0x2758de){const _0x4d5e8b=_0x3b224c,_0x404e45=await this['_collabSessionService'][_0x4d5e8b(0x376)](_0x2758de),_0x3a73f5=this[_0x4d5e8b(0x495)]['createInstance'](St,_0x2758de,_0x404e45);return _0x3a73f5[_0x4d5e8b(0x20b)](),_0x3a73f5;}async['_startDocCollabCursor'](_0xcda9b8){const _0x35f252=_0x3b224c,_0x3a9a8c=await this[_0x35f252(0x1c9)]['requireSession'](_0xcda9b8),_0xf37011=this[_0x35f252(0x495)][_0x35f252(0x560)](mt,_0xcda9b8,_0x3a9a8c);return _0xf37011[_0x35f252(0x20b)](),_0xf37011;}};De=ss([nt(0x0,a[_0x3b224c(0x5a1)]),nt(0x1,a[_0x3b224c(0x556)](a['Injector'])),nt(0x2,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5d8)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x51b107,_0x3d2128){const _0x574951=_0x3b224c;let {radius:_0x4f8381,width:_0x5b6c43,height:_0xf8492d}=_0x3d2128;_0x4f8381=_0x4f8381!=null?_0x4f8381:0x0,_0x5b6c43=_0x5b6c43!=null?_0x5b6c43:0x1e,_0xf8492d=_0xf8492d!=null?_0xf8492d:0x1e;let _0x425e4e=0x0,_0xa14c=0x0,_0x2499c8=0x0;_0x425e4e=_0xa14c=_0x2499c8=Math[_0x574951(0x2c0)](_0x4f8381,_0x5b6c43/0x2,_0xf8492d/0x2),_0x51b107[_0x574951(0x4af)](),_0x51b107['moveTo'](_0x425e4e,0x0),_0x51b107[_0x574951(0x340)](_0x5b6c43-_0xa14c,0x0),_0x51b107[_0x574951(0x3c7)](_0x5b6c43-_0xa14c,_0xa14c,_0xa14c,Math['PI']*0x3/0x2,0x0,!0x1),_0x51b107[_0x574951(0x340)](_0x5b6c43,_0xf8492d-_0x2499c8),_0x51b107['arc'](_0x5b6c43-_0x2499c8,_0xf8492d-_0x2499c8,_0x2499c8,0x0,Math['PI']/0x2,!0x1),_0x51b107['lineTo'](0x0,_0xf8492d),_0x51b107['lineTo'](0x0,_0x425e4e),_0x51b107[_0x574951(0x3c7)](_0x425e4e,_0x425e4e,_0x425e4e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x51b107['closePath'](),_0x3d2128[_0x574951(0x1b7)]&&(_0x51b107[_0x574951(0x4ab)](),_0x51b107[_0x574951(0x265)]=_0x3d2128['fill'],_0x3d2128[_0x574951(0x2ac)]==='evenodd'?_0x51b107[_0x574951(0x1b7)]('evenodd'):_0x51b107[_0x574951(0x1b7)](),_0x51b107['restore']());}class ze extends K['Shape']{constructor(_0x51413d,_0x5f1af1){const _0x3de942=_0x3b224c;super(_0x51413d,_0x5f1af1),I(this,_0x3de942(0x3ab)),I(this,_0x3de942(0x500)),(this[_0x3de942(0x3ab)]=_0x5f1af1==null?void 0x0:_0x5f1af1[_0x3de942(0x3ab)],this['text']=_0x5f1af1==null?void 0x0:_0x5f1af1[_0x3de942(0x500)]);}static[_0x3b224c(0x28f)](_0x28c04c,_0x3668f1){const _0x17f900=_0x3b224c,{text:_0x30a07d,color:_0x4659d4}=_0x3668f1;_0x28c04c['save'](),_0x28c04c[_0x17f900(0x4d2)]=_0x17f900(0x452);const _0x279299=_0x28c04c['measureText'](_0x30a07d)['width'],_0x532721=Math[_0x17f900(0x2c0)](_0x279299+0x2*it,Ht);os(_0x28c04c,{'height':Le,'radius':0x4,'width':_0x532721,'fill':_0x4659d4,'evented':!0x1}),_0x28c04c[_0x17f900(0x265)]='#FFF';const _0x2e276b=it,_0x208b8e=Le-rs,_0x1168c4=Ht-0x2*it;if(_0x279299>_0x1168c4){let _0x4911ff='',_0x178c93=0x0;for(const _0x4b2048 of _0x30a07d){const _0x54a932=_0x28c04c[_0x17f900(0x178)](_0x4b2048)['width'];if(_0x178c93+_0x54a932<=_0x1168c4-_0x28c04c[_0x17f900(0x178)](_0x17f900(0x4e4))['width'])_0x4911ff+=_0x4b2048,_0x178c93+=_0x54a932;else{_0x4911ff+='...';break;}}_0x28c04c[_0x17f900(0x562)](_0x4911ff,_0x2e276b,_0x208b8e);}else _0x28c04c['fillText'](_0x30a07d,_0x2e276b,_0x208b8e);_0x28c04c['restore']();}[_0x3b224c(0x29a)](_0x3e451e){const _0x3f2244=_0x3b224c;ze[_0x3f2244(0x28f)](_0x3e451e,this);}}const st='collab-text-anchor-',as=_0x3b224c(0x333),cs=_0x3b224c(0x214),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x3b224c(0x3ed);class Bt{constructor(_0x3ef7ab,_0x17c075,_0x442fd6,_0x5d3b66){const _0x3954b0=_0x3b224c;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,_0x3954b0(0x267),null),I(this,_0x3954b0(0x43f),null),I(this,'_hideTimer',null),I(this,_0x3954b0(0x40a),null),(this[_0x3954b0(0x561)]=_0x3ef7ab,this['_scene']=_0x17c075,this['_docSkeleton']=_0x442fd6,this[_0x3954b0(0x2d4)]=_0x5d3b66,this['_render']());}set[_0x3b224c(0x2e0)](_0x1d9311){const _0x2264c7=_0x3b224c;_0x1d9311?(this[_0x2264c7(0x43f)]&&this[_0x2264c7(0x43f)][_0x2264c7(0x13e)](),this[_0x2264c7(0x267)]&&this['_textBubble'][_0x2264c7(0x134)]()):(this[_0x2264c7(0x43f)]&&this['_anchorDot'][_0x2264c7(0x134)](),this[_0x2264c7(0x267)]&&this['_textBubble']['hide']());}[_0x3b224c(0x2fa)](){const _0x5460d1=_0x3b224c;for(const _0x522c88 of this[_0x5460d1(0x2a6)])_0x522c88[_0x5460d1(0x2fa)]();this[_0x5460d1(0x267)]&&this[_0x5460d1(0x267)][_0x5460d1(0x2fa)](),this[_0x5460d1(0x43f)]&&this['_anchorDot'][_0x5460d1(0x2fa)](),this[_0x5460d1(0x4ac)]&&this[_0x5460d1(0x4ac)]['dispose'](),this[_0x5460d1(0x40a)]&&this[_0x5460d1(0x40a)]();}['_render'](){const _0xa80503=_0x3b224c;var _0x3938e3;const {_docSkeleton:_0x17d776,_document:_0x42f519}=this,{color:_0xee4f3d,name:_0x33d90e,ranges:_0x1a9858}=this[_0xa80503(0x561)],_0x1e0ce2=_0x42f519[_0xa80503(0x4e5)](),{docsLeft:_0x430c52,docsTop:_0x5d1250}=_0x1e0ce2,_0x130213=new J['NodePositionConvertToCursor'](_0x1e0ce2,_0x17d776);for(const {startOffset:_0x5e55bf,endOffset:_0x52c3f7,rangeType:_0x4bd0a3,segmentId:_0x2036f5,segmentPage:_0x415168,collapsed:_0xdfc58f,isActive:_0x537c64}of _0x1a9858){const _0x2dccb2=_0x17d776['findNodePositionByCharIndex'](_0x5e55bf,!0x0,_0x2036f5,_0x415168);let _0x174a2f=_0x17d776[_0xa80503(0x2b3)](_0x52c3f7,!0x0,_0x2036f5,_0x415168);if(_0x174a2f==null&&(_0x174a2f=_0x17d776['findNodePositionByCharIndex'](_0x52c3f7-0x1,!0x1,_0x2036f5,_0x415168)),_0x537c64){const {contentBoxPointGroup:_0x49dd44}=_0x130213[_0xa80503(0x390)](_0x174a2f,_0x174a2f);if(_0x49dd44['length']===0x0)continue;this['_drawAnchor'](_0xee4f3d,_0x49dd44,_0x430c52,_0x5d1250,_0x33d90e),this[_0xa80503(0x40a)]=this[_0xa80503(0x3f2)]();}if(_0x2dccb2&&_0x174a2f){if(_0x4bd0a3===a[_0xa80503(0x3dd)][_0xa80503(0x52f)]){const _0x251b60=new J['NodePositionConvertToRectRange'](_0x1e0ce2,_0x17d776),{pointGroup:_0x549140}=(_0x3938e3=_0x251b60[_0xa80503(0x390)](_0x2dccb2,_0x174a2f))!=null?_0x3938e3:{};if(_0x549140==null||_0x549140['length']===0x0)continue;this[_0xa80503(0x58b)](_0xee4f3d,_0x549140,_0x430c52,_0x5d1250);}else{if(!_0xdfc58f){const {borderBoxPointGroup:_0x4eae8b}=_0x130213[_0xa80503(0x390)](_0x2dccb2,_0x174a2f);if(_0x4eae8b[_0xa80503(0x2a8)]===0x0)continue;this[_0xa80503(0x3ba)](_0xee4f3d,_0x4eae8b,_0x430c52,_0x5d1250);}}}}}[_0x3b224c(0x215)](_0x702de,_0x56998b,_0x2d07fa,_0x242cb3,_0x299cfe){const _0x4324f6=_0x3b224c,_0x40eca5=this[_0x4324f6(0x535)](_0x56998b),{left:_0x581b55,top:_0x32f5d5,height:_0x5f57c2}=_0x40eca5,_0x5ce12f=this[_0x4324f6(0x489)](),_0x1fe30e=hs/_0x5ce12f,_0x18efe0=new K[(_0x4324f6(0x584))](st+a['Tools']['generateRandomId'](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3,'height':_0x5f57c2,'width':ls,'fill':_0x702de||K[_0x4324f6(0x4a5)](a[_0x4324f6(0x454)][_0x4324f6(0x3ee)],0x0),'strokeWidth':_0x1fe30e,'stroke':_s,'evented':!0x0});this[_0x4324f6(0x4ac)]=_0x18efe0,this[_0x4324f6(0x3cd)]['addObject'](_0x18efe0,J[_0x4324f6(0x2b4)]);const _0x54d108=new K[(_0x4324f6(0x584))](st+a[_0x4324f6(0x3b9)][_0x4324f6(0x143)](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3-rt/0x2,'height':rt,'width':rt,'fill':_0x702de||K[_0x4324f6(0x4a5)](a[_0x4324f6(0x454)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x702de||K['getColor'](a[_0x4324f6(0x454)][_0x4324f6(0x3ee)],0x0),'evented':!0x1});this[_0x4324f6(0x43f)]=_0x54d108,this['_scene']['addObject'](_0x54d108,J[_0x4324f6(0x2b4)]);const _0x450fff=new ze(st+a[_0x4324f6(0x3b9)]['generateRandomId'](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3-Le,'text':_0x299cfe,'color':_0x702de});this[_0x4324f6(0x267)]=_0x450fff,this[_0x4324f6(0x3cd)]['addObject'](_0x450fff,J[_0x4324f6(0x2b4)]),this[_0x4324f6(0x2e0)]=!0x1;}[_0x3b224c(0x3f2)](){const _0x24a84d=_0x3b224c,_0x423e44=this['_anchor']['onPointerEnter$'][_0x24a84d(0x398)](()=>{this['_hover']=!0x0;}),_0x484cd7=this[_0x24a84d(0x4ac)]['onPointerLeave$'][_0x24a84d(0x398)](()=>{const _0x253457=_0x24a84d;this[_0x253457(0x3c8)]&&clearTimeout(this[_0x253457(0x3c8)]),this[_0x253457(0x3c8)]=setTimeout(()=>{const _0x371f2c=_0x253457;this[_0x371f2c(0x2e0)]=!0x1;},0x7d0);});return()=>{const _0x4c6d0e=_0x24a84d;_0x423e44[_0x4c6d0e(0x272)](),_0x484cd7['unsubscribe']();};}[_0x3b224c(0x3ba)](_0x949288,_0x128928,_0x1c4322,_0x33767f){const _0x902696=_0x3b224c,_0x13a444=new a[(_0x902696(0x536))](_0x949288)[_0x902696(0x306)](0.2)[_0x902696(0x54c)](),_0x2ff595=new K[(_0x902696(0x435))](as+a[_0x902696(0x3b9)][_0x902696(0x143)](Ue),{'pointsGroup':_0x128928,'fill':_0x13a444||K[_0x902696(0x4a5)](a[_0x902696(0x454)]['black'],0.2),'left':_0x1c4322,'top':_0x33767f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x902696(0x2a6)]['push'](_0x2ff595),this[_0x902696(0x3cd)][_0x902696(0x1c3)](_0x2ff595,J[_0x902696(0x2b4)]);}[_0x3b224c(0x58b)](_0x34c42d,_0x2c065b,_0x23038b,_0x1626d6){const _0x171cea=_0x3b224c,_0x24cac5=new a[(_0x171cea(0x536))](_0x34c42d)['setAlpha'](0.2)['toRgbString'](),_0x27b4aa=new K['RegularPolygon'](cs+a[_0x171cea(0x3b9)]['generateRandomId'](Ue),{'pointsGroup':_0x2c065b,'fill':_0x24cac5||K['getColor'](a[_0x171cea(0x454)][_0x171cea(0x3ee)],0.2),'left':_0x23038b,'top':_0x1626d6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x171cea(0x2a6)][_0x171cea(0x1a8)](_0x27b4aa),this[_0x171cea(0x3cd)][_0x171cea(0x1c3)](_0x27b4aa,J[_0x171cea(0x2b4)]);}[_0x3b224c(0x535)](_0x335fd7){const _0x288055=_0x335fd7[0x0],_0x138b30=_0x288055[0x0],_0xf22e56=_0x288055[0x2],{x:_0x11f375,y:_0x5d03eb}=_0x138b30,{x:_0x865380,y:_0x5a2737}=_0xf22e56;return{'left':_0x11f375,'top':_0x5d03eb,'width':_0x865380-_0x11f375,'height':_0x5a2737-_0x5d03eb};}[_0x3b224c(0x489)](){const _0x502d4f=_0x3b224c,{scaleX:_0x5685c0,scaleY:_0x5f1a73}=this[_0x502d4f(0x3cd)]['getAncestorScale']();return Math[_0x502d4f(0x384)](_0x5685c0,_0x5f1a73);}}var us=Object[_0x3b224c(0x209)],ds=Object['getOwnPropertyDescriptor'],fs=(_0x14cadc,_0x49ff8f,_0x2b30a6,_0x34624c)=>{const _0x22c630=_0x3b224c;for(var _0x68079c=_0x34624c>0x1?void 0x0:_0x34624c?ds(_0x49ff8f,_0x2b30a6):_0x49ff8f,_0x467aa3=_0x14cadc[_0x22c630(0x2a8)]-0x1,_0x49d51e;_0x467aa3>=0x0;_0x467aa3--)(_0x49d51e=_0x14cadc[_0x467aa3])&&(_0x68079c=(_0x34624c?_0x49d51e(_0x49ff8f,_0x2b30a6,_0x68079c):_0x49d51e(_0x68079c))||_0x68079c);return _0x34624c&&_0x68079c&&us(_0x49ff8f,_0x2b30a6,_0x68079c),_0x68079c;},je=(_0x5d2957,_0xbf20ac)=>(_0x4111ab,_0x45ecc4)=>_0xbf20ac(_0x4111ab,_0x45ecc4,_0x5d2957);let pt=class extends a[_0x3b224c(0x274)]{constructor(_0x37f8f7,_0x504221,_0x41f1b2,_0x5a000b,_0xe48888){const _0xf53ff6=_0x3b224c;super(),I(this,_0xf53ff6(0x175),[]),I(this,'_cursors',[]),(this[_0xf53ff6(0x343)]=_0x37f8f7,this[_0xf53ff6(0x465)]=_0x504221,this[_0xf53ff6(0x22b)]=_0x41f1b2,this['_commandService']=_0x5a000b,this['_themeService']=_0xe48888,this[_0xf53ff6(0x578)]());}[_0x3b224c(0x578)](){const _0x483c9a=_0x3b224c,_0x51047b=this['_context']['unitId'],_0x2be283=this[_0x483c9a(0x465)];this['disposeWithMe'](A[_0x483c9a(0x2ad)]([this['_collabCursorController']['getCollabCursors$'](_0x51047b),this[_0x483c9a(0x3c6)]['currentTheme$']])[_0x483c9a(0x3cc)](V[_0x483c9a(0x283)](([_0xf70c56,_0x5c39da])=>({'skeleton':_0x2be283[_0x483c9a(0x366)](),'cursors':[..._0xf70c56[_0x483c9a(0x3d7)]()][_0x483c9a(0x28c)](_0x54f5d4=>({..._0x54f5d4,'color':_0x5c39da[_0x54f5d4[_0x483c9a(0x3ab)]]}))})))[_0x483c9a(0x2de)](_0x2c6677=>{if(this['_removeCollabCursors'](),_0x2c6677){const {skeleton:_0xd4cd48,cursors:_0x565434}=_0x2c6677;this['_updateCollabCursors'](_0xd4cd48,_0x565434);}})),this[_0x483c9a(0x357)](),this['_initCommandExecutedListener']();}[_0x3b224c(0x17a)](_0x1bb616,_0x32d743){const _0x328b74=_0x3b224c,{scene:_0x12f82b,mainComponent:_0x15908f}=this[_0x328b74(0x343)],_0x1e9298=_0x32d743[_0x328b74(0x283)](_0x962ea8=>new Bt(_0x962ea8,_0x12f82b,_0x1bb616,_0x15908f));this[_0x328b74(0x175)]=_0x1e9298,this['_cursors']=_0x32d743;}[_0x3b224c(0x5bf)](){const _0x162618=_0x3b224c;this[_0x162618(0x4b8)]();const {scene:_0x17b56e,mainComponent:_0x184542}=this[_0x162618(0x343)],_0x1601e8=this[_0x162618(0x465)][_0x162618(0x366)](),_0x1cb0d9=this[_0x162618(0x41b)][_0x162618(0x283)](_0x31e5cb=>new Bt(_0x31e5cb,_0x17b56e,_0x1601e8,_0x184542));this[_0x162618(0x175)]=_0x1cb0d9;}['_removeCollabCursors'](){const _0x5aeb59=_0x3b224c;this[_0x5aeb59(0x175)][_0x5aeb59(0x54f)](_0x7798e1=>_0x7798e1[_0x5aeb59(0x2fa)]()),this[_0x5aeb59(0x175)]=[];}[_0x3b224c(0x2ba)](){const _0x3cea42=_0x3b224c,_0x9d0e28=[J[_0x3cea42(0x406)]['id']];this[_0x3cea42(0x220)](this['_commandService'][_0x3cea42(0x3fe)](_0x184d5d=>{const _0x578ead=_0x3cea42;_0x9d0e28[_0x578ead(0x254)](_0x184d5d['id'])&&_0x184d5d[_0x578ead(0x2be)][_0x578ead(0x242)]===this[_0x578ead(0x343)][_0x578ead(0x242)]&&this[_0x578ead(0x5bf)]();}));}[_0x3b224c(0x357)](){const _0x385b1a=_0x3b224c;this['disposeWithMe'](a[_0x385b1a(0x518)](this[_0x385b1a(0x343)][_0x385b1a(0x550)]['onTransformChange$'])[_0x385b1a(0x3cc)](V[_0x385b1a(0x567)](_0x5b9ceb=>_0x5b9ceb[_0x385b1a(0x5bb)]===K['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),V['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};pt=fs([je(0x1,a[_0x3b224c(0x556)](ye['DocSkeletonManagerService'])),je(0x2,a[_0x3b224c(0x556)](De)),je(0x3,a[_0x3b224c(0x3d4)]),je(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x3e0)]))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x3b224c(0x234)]{constructor(_0x288f0a,_0x1da74b){const _0x26a145=_0x3b224c;super(_0x288f0a,_0x1da74b),I(this,'_color'),I(this,'_hovered',!0x1),I(this,'_range'),I(this,_0x26a145(0x1f8),''),I(this,_0x26a145(0x3fa),'top'),I(this,_0x26a145(0x51a)),(_0x1da74b&&this['setShapeProps'](_0x1da74b),this[_0x26a145(0x224)][_0x26a145(0x398)](()=>this[_0x26a145(0x49b)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x5bc9e2){const _0x5c1e41=_0x3b224c;var _0x273859,_0x2d4348,_0x3a6996,_0x401b01,_0x4297a,_0xba60e2;this[_0x5c1e41(0x4e1)]=(_0x273859=_0x5bc9e2[_0x5c1e41(0x3ab)])!=null?_0x273859:this[_0x5c1e41(0x4e1)],this['_hovered']=(_0x2d4348=_0x5bc9e2['hovered'])!=null?_0x2d4348:this[_0x5c1e41(0x3e6)],this[_0x5c1e41(0x2b9)]=(_0x3a6996=_0x5bc9e2[_0x5c1e41(0x40c)])!=null?_0x3a6996:this[_0x5c1e41(0x2b9)],this['_name']=(_0x401b01=_0x5bc9e2[_0x5c1e41(0x513)])!=null?_0x401b01:this[_0x5c1e41(0x1f8)],this[_0x5c1e41(0x3fa)]=(_0x4297a=_0x5bc9e2[_0x5c1e41(0x389)])!=null?_0x4297a:this[_0x5c1e41(0x3fa)],this[_0x5c1e41(0x51a)]=(_0xba60e2=_0x5bc9e2[_0x5c1e41(0x5a2)])!=null?_0xba60e2:this[_0x5c1e41(0x51a)],this[_0x5c1e41(0x4f1)]({'width':_0x5bc9e2[_0x5c1e41(0x51f)],'height':_0x5bc9e2[_0x5c1e41(0x558)]});}[_0x3b224c(0x23e)](_0x4dc590){const _0x41d31e=_0x3b224c,{row:_0x4da132,column:_0x5ae962}=_0x4dc590;if(_0x4da132>=this[_0x41d31e(0x2b9)][_0x41d31e(0x1fd)]&&_0x4da132<=this['_range'][_0x41d31e(0x305)]&&_0x5ae962>=this['_range'][_0x41d31e(0x45b)]&&_0x5ae962<=this['_range'][_0x41d31e(0x1f6)]){this[_0x41d31e(0x49b)]({'hovered':!0x0});return;}this[_0x41d31e(0x49b)]({'hovered':!0x1});}[_0x3b224c(0x544)](_0x255128){return!0x1;}[_0x3b224c(0x29a)](_0x25c487){const _0x3908df=_0x3b224c;K[_0x3908df(0x584)][_0x3908df(0x28f)](_0x25c487,{'width':this['width'],'height':this[_0x3908df(0x558)],'strokeWidth':ms,'stroke':this[_0x3908df(0x4e1)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3908df(0x3e6)]&&(_0x25c487[_0x3908df(0x4ab)](),_0x25c487[_0x3908df(0x32a)](0x1,0x0,0x0,0x1,this[_0x3908df(0x51f)],this['_labelPosition']===_0x3908df(0x2f0)?0x0:-Le),ze['drawWith'](_0x25c487,{'text':this[_0x3908df(0x1f8)],'color':this[_0x3908df(0x4e1)]}),_0x25c487[_0x3908df(0x4fa)]());}}var Ss=Object['defineProperty'],ps=Object[_0x3b224c(0x233)],gs=(_0x3f9b38,_0x443374,_0x2e2c45,_0x4f331f)=>{for(var _0x2759d3=_0x4f331f>0x1?void 0x0:_0x4f331f?ps(_0x443374,_0x2e2c45):_0x443374,_0x1ad0ee=_0x3f9b38['length']-0x1,_0x4b292d;_0x1ad0ee>=0x0;_0x1ad0ee--)(_0x4b292d=_0x3f9b38[_0x1ad0ee])&&(_0x2759d3=(_0x4f331f?_0x4b292d(_0x443374,_0x2e2c45,_0x2759d3):_0x4b292d(_0x2759d3))||_0x2759d3);return _0x4f331f&&_0x2759d3&&Ss(_0x443374,_0x2e2c45,_0x2759d3),_0x2759d3;},ot=(_0x26459a,_0x31a434)=>(_0xb66bf8,_0x37ffa4)=>_0x31a434(_0xb66bf8,_0x37ffa4,_0x26459a);const Is=0x1389;let gt=class extends a['RxDisposable']{constructor(_0x400fad,_0xbb5c65,_0x5478af,_0x52de0f){const _0x184ed9=_0x3b224c;super(),I(this,'_cursors',new Set()),I(this,'_lastPointer',null),(this['_context']=_0x400fad,this[_0x184ed9(0x5cf)]=_0xbb5c65,this['_collabCursorController']=_0x5478af,this[_0x184ed9(0x3c6)]=_0x52de0f,this[_0x184ed9(0x578)]());}[_0x3b224c(0x578)](){const _0x1e6b0d=_0x3b224c;this[_0x1e6b0d(0x5cf)]['currentSkeleton$'][_0x1e6b0d(0x3cc)](V[_0x1e6b0d(0x58f)](this['dispose$']),V[_0x1e6b0d(0x314)](_0xe16bc4=>{const _0x598f7b=_0x1e6b0d;if(_0xe16bc4){const _0x41cbb4=_0xe16bc4[_0x598f7b(0x4dd)];return A[_0x598f7b(0x2ad)](this[_0x598f7b(0x22b)]['getCollabCursors$'](this[_0x598f7b(0x343)]['unitId']),this['_themeService'][_0x598f7b(0x19c)])['pipe'](V[_0x598f7b(0x283)](([_0x4ae378,_0x5cfc10])=>{const _0x24583d=_0x598f7b,_0x24d815=new Map();return _0x4ae378[_0x24583d(0x54f)]((_0x3a223d,_0x4c855f)=>{const _0x79385b=_0x24583d;if(_0x3a223d['sheetID']===_0x41cbb4){const _0x1383f4={..._0x3a223d};_0x1383f4[_0x79385b(0x3ab)]=_0x5cfc10[_0x3a223d[_0x79385b(0x3ab)]],_0x24d815['set'](_0x4c855f,_0x1383f4);}}),{'skeleton':_0xe16bc4,'cursors':_0x24d815};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x1e6b0d(0x2de)](({skeleton:_0x345e30,cursors:_0xb172bb})=>{const _0x38ef7d=_0x1e6b0d;this[_0x38ef7d(0x4b8)](),_0x345e30&&this[_0x38ef7d(0x17a)](_0x345e30,_0xb172bb);}),this['_sheetSkeletonManagerService'][_0x1e6b0d(0x4fb)][_0x1e6b0d(0x2de)](_0x1344bb=>{const _0x6d2d97=_0x1e6b0d;if(_0x1344bb==null)return;const {skeleton:_0x2d62d0}=_0x1344bb,{scene:_0x861ae8}=this['_context'];_0x861ae8[_0x6d2d97(0x28e)][_0x6d2d97(0x398)](a[_0x6d2d97(0x1bb)](_0x43c946=>{const _0x1672b8=_0x6d2d97;var _0x29828b,_0x1d3216;const {offsetX:_0xd68e81,offsetY:_0x4edbd5}=_0x43c946,{x:_0x3c0b90,y:_0x5e434a}=_0x861ae8['getRelativeToViewportCoord'](K[_0x1672b8(0x263)][_0x1672b8(0x5ab)]([_0xd68e81,_0x4edbd5])),{scaleX:_0x33c5b6,scaleY:_0x21485a}=_0x861ae8[_0x1672b8(0x412)](),_0x18b022=_0x861ae8[_0x1672b8(0x139)](Re[_0x1672b8(0x184)][_0x1672b8(0x327)]),_0x20123b=_0x861ae8[_0x1672b8(0x1ab)](K[_0x1672b8(0x263)][_0x1672b8(0x5ab)]([_0x3c0b90,_0x5e434a]),_0x18b022),_0xee1f0b=_0x2d62d0[_0x1672b8(0x30b)](_0xd68e81,_0x4edbd5,_0x33c5b6,_0x21485a,_0x20123b);((_0x29828b=this['_lastPointer'])==null?void 0x0:_0x29828b['column'])===_0xee1f0b[_0x1672b8(0x381)]&&((_0x1d3216=this[_0x1672b8(0x411)])==null?void 0x0:_0x1d3216[_0x1672b8(0x2c8)])===_0xee1f0b[_0x1672b8(0x2c8)]||this[_0x1672b8(0x41b)][_0x1672b8(0x54f)](_0x38ff71=>{const _0x4ff73f=_0x1672b8;_0x38ff71[_0x4ff73f(0x23e)](_0xee1f0b);});},0x64));});}[_0x3b224c(0x17a)](_0x26bf5d,_0x4a8e4f){const _0x42ef74=_0x3b224c;var _0x8827cf;const _0x4d4863=(_0x8827cf=this[_0x42ef74(0x5cf)]['getCurrent']())==null?void 0x0:_0x8827cf[_0x42ef74(0x2ff)];if(!_0x4d4863)return;const _0x4c89e3=this[_0x42ef74(0x270)]();if(!_0x4c89e3)return;this['_cursors']['forEach'](_0x5be1f1=>{const _0x1f9dbb=_0x42ef74;_0x5be1f1[_0x1f9dbb(0x16b)]();});const {scene:_0x30bcf7}=_0x4c89e3,_0x243c4c=Cs(Array['from'](_0x4a8e4f['values']()))[_0x42ef74(0x283)](_0x2d5ec4=>{const _0x47d674=_0x42ef74,{color:_0xf62219,range:_0x1537b6,name:_0x404784,selection:_0x5b482,sheetID:_0x4e344d}=_0x2d5ec4,{startColumn:_0x954a16,startRow:_0x253a66,endColumn:_0x4643ed,endRow:_0x33773f}=_0x1537b6,_0x4da21c=Re[_0x47d674(0x29e)](_0x253a66,_0x954a16,_0x30bcf7,_0x4d4863),_0x4bed67=Re[_0x47d674(0x29e)](_0x33773f,_0x4643ed,_0x30bcf7,_0x4d4863),{columnHeaderHeightAndMarginTop:_0x3ba072}=_0x4d4863,{startX:_0x2b83bc,startY:_0x572e3a}=_0x4da21c,{endX:_0x3f87c0,endY:_0x239b54}=_0x4bed67,_0x3fa9f7=_0x3f87c0-_0x2b83bc,_0x1da103=_0x239b54-_0x572e3a,_0x1451ae={'labelPosition':_0x572e3a-_0x3ba072>=Le?'top':_0x47d674(0x2f0),'sheetID':_0x4e344d,'range':_0x1537b6,'color':_0xf62219,'name':_0x404784,'selection':_0x5b482,'left':_0x2b83bc,'top':_0x572e3a,'width':_0x3fa9f7,'height':_0x1da103,'evented':!0x1,'zIndex':Is};return new Sn(_0x404784,_0x1451ae);});_0x30bcf7[_0x42ef74(0x1fc)](_0x243c4c,vs),this[_0x42ef74(0x41b)]=new Set(_0x243c4c);}['_removeCollabCursors'](){const _0x3f946d=_0x3b224c;var _0x2bcebc;(_0x2bcebc=this['_cursors'])==null||_0x2bcebc[_0x3f946d(0x54f)](_0x541667=>_0x541667[_0x3f946d(0x2fa)]());}[_0x3b224c(0x270)](){const _0x2a4bac=_0x3b224c;return Re[_0x2a4bac(0x25e)](this[_0x2a4bac(0x343)][_0x2a4bac(0x479)],this['_context']);}};gt=gs([ot(0x1,a[_0x3b224c(0x556)](Re[_0x3b224c(0x23b)])),ot(0x2,a[_0x3b224c(0x556)](De)),ot(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x3e0)]))],gt);function Cs(_0x179f7b){const _0x441c3f=_0x3b224c,_0xa95e3e=new Map();return _0x179f7b[_0x441c3f(0x54f)](_0xb180d5=>{const _0x3b5bfa=_0x441c3f;if(_0xa95e3e[_0x3b5bfa(0x339)](_0xb180d5[_0x3b5bfa(0x410)])){const _0x5b0083=_0xa95e3e[_0x3b5bfa(0x273)](_0xb180d5[_0x3b5bfa(0x410)]);_0x5b0083[_0x3b5bfa(0x513)]+=',\x20'+_0xb180d5[_0x3b5bfa(0x513)];}else _0xa95e3e['set'](_0xb180d5[_0x3b5bfa(0x410)],_0xb180d5);}),Array['from'](_0xa95e3e[_0x441c3f(0x3d7)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x398046){const _0x152d51=_0x3b224c;return _0x398046&&_0x398046[_0x152d51(0x18f)]&&Object[_0x152d51(0x1af)][_0x152d51(0x1fe)][_0x152d51(0x537)](_0x398046,_0x152d51(0x432))?_0x398046[_0x152d51(0x432)]:_0x398046;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol[_0x3b224c(0x13b)](_0x3b224c(0x471)),Ts=Symbol['for']('react.fragment'),Rs=Object[_0x3b224c(0x1af)][_0x3b224c(0x1fe)],ys=Es[_0x3b224c(0x5cb)][_0x3b224c(0x382)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x1794ac,_0x1408c4,_0x1a2532){const _0x51d866=_0x3b224c;var _0x3e5562,_0x3c8268={},_0x920ec2=null,_0x2fe045=null;_0x1a2532!==void 0x0&&(_0x920ec2=''+_0x1a2532),_0x1408c4[_0x51d866(0x217)]!==void 0x0&&(_0x920ec2=''+_0x1408c4[_0x51d866(0x217)]),_0x1408c4[_0x51d866(0x444)]!==void 0x0&&(_0x2fe045=_0x1408c4[_0x51d866(0x444)]);for(_0x3e5562 in _0x1408c4)Rs[_0x51d866(0x537)](_0x1408c4,_0x3e5562)&&!Os[_0x51d866(0x1fe)](_0x3e5562)&&(_0x3c8268[_0x3e5562]=_0x1408c4[_0x3e5562]);if(_0x1794ac&&_0x1794ac[_0x51d866(0x36b)]){for(_0x3e5562 in(_0x1408c4=_0x1794ac['defaultProps'],_0x1408c4))_0x3c8268[_0x3e5562]===void 0x0&&(_0x3c8268[_0x3e5562]=_0x1408c4[_0x3e5562]);}return{'$$typeof':bs,'type':_0x1794ac,'key':_0x920ec2,'ref':_0x2fe045,'props':_0x3c8268,'_owner':ys[_0x51d866(0x257)]};}Xe[_0x3b224c(0x5cd)]=Ts,Xe[_0x3b224c(0x5d7)]=gn,Xe[_0x3b224c(0x55e)]=gn,pn[_0x3b224c(0x2fc)]=Xe;var pe=pn[_0x3b224c(0x2fc)],Q=function(){const _0x315574=_0x3b224c;return Q=Object['assign']||function(_0x26b74f){const _0x500da4=_0x1276;for(var _0x4e2223,_0x178fec=0x1,_0x445863=arguments[_0x500da4(0x2a8)];_0x178fec<_0x445863;_0x178fec++){_0x4e2223=arguments[_0x178fec];for(var _0x4c3946 in _0x4e2223)Object[_0x500da4(0x1af)]['hasOwnProperty'][_0x500da4(0x537)](_0x4e2223,_0x4c3946)&&(_0x26b74f[_0x4c3946]=_0x4e2223[_0x4c3946]);}return _0x26b74f;},Q[_0x315574(0x44a)](this,arguments);},Ds=function(_0x309735,_0x29ba13){const _0x5ba027=_0x3b224c;var _0x2b70a0={};for(var _0x232185 in _0x309735)Object['prototype'][_0x5ba027(0x1fe)][_0x5ba027(0x537)](_0x309735,_0x232185)&&_0x29ba13[_0x5ba027(0x1a4)](_0x232185)<0x0&&(_0x2b70a0[_0x232185]=_0x309735[_0x232185]);if(_0x309735!=null&&typeof Object[_0x5ba027(0x360)]=='function'){for(var _0x5df417=0x0,_0x232185=Object['getOwnPropertySymbols'](_0x309735);_0x5df417<_0x232185[_0x5ba027(0x2a8)];_0x5df417++)_0x29ba13[_0x5ba027(0x1a4)](_0x232185[_0x5df417])<0x0&&Object[_0x5ba027(0x1af)][_0x5ba027(0x1f7)][_0x5ba027(0x537)](_0x309735,_0x232185[_0x5df417])&&(_0x2b70a0[_0x232185[_0x5df417]]=_0x309735[_0x232185[_0x5df417]]);}return _0x2b70a0;},Dt=ae[_0x3b224c(0x5b4)](function(_0xba1e31,_0x23fc4f){const _0x45d433=_0x3b224c;var _0x23103d=_0xba1e31[_0x45d433(0x24f)],_0x578574=_0xba1e31['id'],_0x455aff=_0xba1e31[_0x45d433(0x402)],_0x3ff208=_0xba1e31[_0x45d433(0x24d)],_0x4f5001=Ds(_0xba1e31,[_0x45d433(0x24f),'id',_0x45d433(0x402),_0x45d433(0x24d)]),_0x3fb147=_0x45d433(0x21a)[_0x45d433(0x198)](_0x578574,'\x20')[_0x45d433(0x198)](_0x455aff||'')['trim'](),_0x5cf082=ae[_0x45d433(0x55d)]('_'[_0x45d433(0x198)](Us()));return In(_0x23103d,''[_0x45d433(0x198)](_0x578574),{'defIds':_0x23103d['defIds'],'idSuffix':_0x5cf082[_0x45d433(0x257)]},Q({'ref':_0x23fc4f,'className':_0x3fb147},_0x4f5001),_0x3ff208);});function In(_0x53c8de,_0x8f4799,_0x16b5e4,_0x567b10,_0x3b711f){const _0x157ddb=_0x3b224c;return ae[_0x157ddb(0x48c)](_0x53c8de['tag'],Q(Q({'key':_0x8f4799},ws(_0x53c8de,_0x16b5e4,_0x3b711f)),_0x567b10),(Ps(_0x53c8de,_0x16b5e4)[_0x157ddb(0x40b)]||[])[_0x157ddb(0x283)](function(_0x38f080,_0xdef08b){const _0x440b26=_0x157ddb;return In(_0x38f080,''[_0x440b26(0x198)](_0x8f4799,'-')['concat'](_0x53c8de[_0x440b26(0x356)],'-')[_0x440b26(0x198)](_0xdef08b),_0x16b5e4,void 0x0,_0x3b711f);}));}function ws(_0x2e3b05,_0x1b352a,_0xe95068){const _0x1deae6=_0x3b224c;var _0x33ac7f=Q({},_0x2e3b05[_0x1deae6(0x5dd)]);_0xe95068!=null&&_0xe95068[_0x1deae6(0x286)]&&_0x33ac7f[_0x1deae6(0x1b7)]==='colorChannel1'&&(_0x33ac7f[_0x1deae6(0x1b7)]=_0xe95068[_0x1deae6(0x286)]);var _0x5a961b=_0x1b352a[_0x1deae6(0x3e7)];return!_0x5a961b||_0x5a961b[_0x1deae6(0x2a8)]===0x0||(_0x2e3b05[_0x1deae6(0x356)]==='use'&&_0x33ac7f[_0x1deae6(0x20c)]&&(_0x33ac7f[_0x1deae6(0x20c)]=_0x33ac7f['xlink:href']+_0x1b352a[_0x1deae6(0x3e2)]),Object[_0x1deae6(0x55c)](_0x33ac7f)[_0x1deae6(0x54f)](function(_0x3e020a){const _0x3f3d72=_0x1deae6;var _0x1901be=_0x3e020a[0x0],_0x11ff20=_0x3e020a[0x1];typeof _0x11ff20==_0x3f3d72(0x404)&&(_0x33ac7f[_0x1901be]=_0x11ff20[_0x3f3d72(0x424)](/url\(#(.*)\)/,'url(#$1'[_0x3f3d72(0x198)](_0x1b352a[_0x3f3d72(0x3e2)],')')));})),_0x33ac7f;}function Ps(_0x3e97bf,_0x3667ca){const _0x1e656e=_0x3b224c;var _0x469deb,_0x3b6bd8=_0x3667ca[_0x1e656e(0x3e7)];return!_0x3b6bd8||_0x3b6bd8[_0x1e656e(0x2a8)]===0x0?_0x3e97bf:_0x3e97bf[_0x1e656e(0x356)]==='defs'&&(!((_0x469deb=_0x3e97bf[_0x1e656e(0x40b)])===null||_0x469deb===void 0x0)&&_0x469deb[_0x1e656e(0x2a8)])?Q(Q({},_0x3e97bf),{'children':_0x3e97bf[_0x1e656e(0x40b)][_0x1e656e(0x283)](function(_0x4cc09c){const _0x37ffbc=_0x1e656e;return typeof _0x4cc09c[_0x37ffbc(0x5dd)]['id']==_0x37ffbc(0x404)&&_0x3b6bd8&&_0x3b6bd8[_0x37ffbc(0x1a4)](_0x4cc09c[_0x37ffbc(0x5dd)]['id'])>-0x1?Q(Q({},_0x4cc09c),{'attrs':Q(Q({},_0x4cc09c[_0x37ffbc(0x5dd)]),{'id':_0x4cc09c['attrs']['id']+_0x3667ca[_0x37ffbc(0x3e2)]})}):_0x4cc09c;})}):_0x3e97bf;}function Us(){const _0x416665=_0x3b224c;return Math['random']()[_0x416665(0x4cf)](0x24)[_0x416665(0x35b)](0x2,0x8);}Dt[_0x3b224c(0x5be)]=_0x3b224c(0x1e6);var Ms={'tag':'svg','attrs':{'fill':_0x3b224c(0x15c),'viewBox':_0x3b224c(0x1e8),'width':_0x3b224c(0x1cd),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b224c(0x37b)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'stroke':'currentColor','d':_0x3b224c(0x38f),'strokeLinecap':_0x3b224c(0x593),'strokeLinejoin':_0x3b224c(0x593),'strokeWidth':1.2}}]},{'tag':_0x3b224c(0x294),'attrs':{},'children':[{'tag':_0x3b224c(0x21c),'attrs':{'id':_0x3b224c(0x30f)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'fill':'#fff','d':_0x3b224c(0x39c)}}]}]}],'defIds':[_0x3b224c(0x30f)]},Cn=ae['forwardRef'](function(_0x46ba1c,_0x78fb59){const _0x229c05=_0x3b224c;return ae['createElement'](Dt,Object['assign']({},_0x46ba1c,{'id':_0x229c05(0x351),'ref':_0x78fb59,'icon':Ms}));});Cn['displayName']='OffLineSingle';var As={'tag':_0x3b224c(0x397),'attrs':{'fill':_0x3b224c(0x15c),'viewBox':_0x3b224c(0x49e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b224c(0x203)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'stroke':_0x3b224c(0x2bd),'d':_0x3b224c(0x5c0),'strokeLinecap':_0x3b224c(0x593),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3b224c(0x294),'attrs':{},'children':[{'tag':_0x3b224c(0x21c),'attrs':{'id':_0x3b224c(0x320)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'fill':_0x3b224c(0x25d),'d':_0x3b224c(0x39c),'transform':_0x3b224c(0x3bc)}}]}]}],'defIds':[_0x3b224c(0x320)]},En=ae[_0x3b224c(0x5b4)](function(_0xf997fa,_0xcfae6b){const _0x53312e=_0x3b224c;return ae[_0x53312e(0x48c)](Dt,Object[_0x53312e(0x2cc)]({},_0xf997fa,{'id':_0x53312e(0x5b1),'ref':_0xcfae6b,'icon':As}));});En['displayName']=_0x3b224c(0x47f);function bn(_0x40a437){const _0x19cf8b=_0x3b224c;var _0x474435,_0x539897,_0x279360='';if(typeof _0x40a437=='string'||typeof _0x40a437==_0x19cf8b(0x1cb))_0x279360+=_0x40a437;else{if(typeof _0x40a437==_0x19cf8b(0x17b)){if(Array['isArray'](_0x40a437)){var _0x1846e=_0x40a437['length'];for(_0x474435=0x0;_0x474435<_0x1846e;_0x474435++)_0x40a437[_0x474435]&&(_0x539897=bn(_0x40a437[_0x474435]))&&(_0x279360&&(_0x279360+='\x20'),_0x279360+=_0x539897);}else{for(_0x539897 in _0x40a437)_0x40a437[_0x539897]&&(_0x279360&&(_0x279360+='\x20'),_0x279360+=_0x539897);}}}return _0x279360;}function Ns(){for(var _0x501f06,_0x43414a,_0x63902e=0x0,_0x4f6474='',_0x282d08=arguments['length'];_0x63902e<_0x282d08;_0x63902e++)(_0x501f06=arguments[_0x63902e])&&(_0x43414a=bn(_0x501f06))&&(_0x4f6474&&(_0x4f6474+='\x20'),_0x4f6474+=_0x43414a);return _0x4f6474;}const Ls=_0x3b224c(0x3de),xs=_0x3b224c(0x284),js=_0x3b224c(0x345),$s=_0x3b224c(0x595),Hs=_0x3b224c(0x4c2),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x439752){const _0x3e6603=_0x3b224c;switch(_0x439752){case q[_0x3e6603(0x4e2)]:return'collabStatus.offline';case q[_0x3e6603(0x34c)]:return _0x3e6603(0x568);case q['FETCH_MISS']:return _0x3e6603(0x33c);case q[_0x3e6603(0x200)]:return _0x3e6603(0x33d);case q[_0x3e6603(0x4b6)]:case q[_0x3e6603(0x546)]:return'collabStatus.syncing';case q[_0x3e6603(0x3fd)]:case q['PENDING']:return _0x3e6603(0x210);}}function Tn(_0x319167){const _0x1583c6=_0x3b224c,{status$:_0x5ed915}=_0x319167,_0x4886e8=ee[_0x1583c6(0x421)](_0x5ed915,q[_0x1583c6(0x200)]),_0x14bb2c=a[_0x1583c6(0x35a)](a[_0x1583c6(0x4ae)]),_0x54c6eb=a[_0x1583c6(0x35a)](exports[_0x1583c6(0x5d8)]),_0x48160f=_0x4886e8!==q[_0x1583c6(0x4e2)],_0x54b36d=_0x14bb2c['t'](Bs(_0x4886e8)),_0x4a1bc9=Ns(Me[_0x1583c6(0x3f8)],{[Me['online']]:_0x48160f,[Me['offline']]:!_0x48160f}),_0x36bf69=_0x48160f?pe['jsx'](En,{}):pe['jsx'](Cn,{}),_0x4176b1=ae['useCallback'](()=>{const _0x27859c=_0x1583c6;_0x48160f||_0x54c6eb[_0x27859c(0x365)]();},[_0x48160f,_0x54c6eb]);function _0x4c4228(){const _0x79f8ea=_0x1583c6;return pe[_0x79f8ea(0x55e)](_0x79f8ea(0x589),{'className':_0x4a1bc9,'onClick':_0x4176b1,'children':[pe['jsx']('div',{'className':Me[_0x79f8ea(0x300)],'children':_0x36bf69}),pe['jsx'](_0x79f8ea(0x589),{'className':Me[_0x79f8ea(0x487)],'children':_0x54b36d})]});}return _0x48160f?_0x4c4228():pe[_0x1583c6(0x5d7)](ge[_0x1583c6(0x4d3)],{'title':_0x14bb2c['t'](_0x1583c6(0x3b3)),'children':_0x4c4228()});}var ks=Object['defineProperty'],Ws=Object[_0x3b224c(0x233)],Fs=(_0x408436,_0x539f61,_0x1757e7,_0x24f1d1)=>{const _0x50d89c=_0x3b224c;for(var _0x4e0c34=_0x24f1d1>0x1?void 0x0:_0x24f1d1?Ws(_0x539f61,_0x1757e7):_0x539f61,_0x80e3a4=_0x408436[_0x50d89c(0x2a8)]-0x1,_0x353fb7;_0x80e3a4>=0x0;_0x80e3a4--)(_0x353fb7=_0x408436[_0x80e3a4])&&(_0x4e0c34=(_0x24f1d1?_0x353fb7(_0x539f61,_0x1757e7,_0x4e0c34):_0x353fb7(_0x4e0c34))||_0x4e0c34);return _0x24f1d1&&_0x4e0c34&&ks(_0x539f61,_0x1757e7,_0x4e0c34),_0x4e0c34;},$e=(_0x567b9c,_0x3e1e20)=>(_0x45726b,_0x14fc23)=>_0x3e1e20(_0x45726b,_0x14fc23,_0x567b9c);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3b224c(0x52b)]{constructor(_0xe25194,_0x13261c,_0x2e4783,_0x53f3e5){const _0x8972b0=_0x3b224c;super(),I(this,_0x8972b0(0x183),new A[(_0x8972b0(0x33e))](q[_0x8972b0(0x200)])),(this[_0x8972b0(0x15e)]=_0xe25194,this[_0x8972b0(0x355)]=_0x13261c,this[_0x8972b0(0x495)]=_0x2e4783,this['_collaborationController']=_0x53f3e5,this[_0x8972b0(0x43d)](),this[_0x8972b0(0x22c)]());}[_0x3b224c(0x22c)](){const _0x2cc1b1=_0x3b224c;this[_0x2cc1b1(0x220)](this['_univerInstanceService']['focused$']['pipe'](A[_0x2cc1b1(0x314)](()=>{const _0x488cd8=_0x2cc1b1,_0x22dcbb=this[_0x488cd8(0x15e)]['getFocusedUnit']();return _0x22dcbb?this[_0x488cd8(0x348)]['getCollabEntity$'](_0x22dcbb[_0x488cd8(0x22d)]()):A['of'](null);}),A[_0x2cc1b1(0x314)](_0x31e914=>_0x31e914?_0x31e914['status$']:A['of'](q[_0x2cc1b1(0x200)])))[_0x2cc1b1(0x2de)](_0x35b9b1=>{const _0xa74f08=_0x2cc1b1;this[_0xa74f08(0x183)][_0xa74f08(0x1e1)](_0x35b9b1);}));}['_initStatusComponent'](){const _0x2119ce=_0x3b224c;this[_0x2119ce(0x220)](this[_0x2119ce(0x355)][_0x2119ce(0x548)](ee[_0x2119ce(0x49d)][_0x2119ce(0x571)],()=>a[_0x2119ce(0x3b2)](Vs({'status$':this[_0x2119ce(0x183)][_0x2119ce(0x4f7)]()}),this[_0x2119ce(0x495)])));}},exports[_0x3b224c(0x58a)]=Fs([$e(0x0,a['IUniverInstanceService']),$e(0x1,ee[_0x3b224c(0x36c)]),$e(0x2,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),$e(0x3,a[_0x3b224c(0x556)](exports[_0x3b224c(0x1d0)]))],exports[_0x3b224c(0x58a)]);function Vs(_0x363474){const {status$:_0x1ad0a2}=_0x363474;return function(){const _0x3fe37a=_0x1276;return pe[_0x3fe37a(0x5d7)](Tn,{'status$':_0x1ad0a2});};}const wt=a[_0x3b224c(0x2da)]('uni.network.url-service');var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x41f08a,_0x30a821,_0x452188,_0x3d5ec0)=>{const _0x31b5eb=_0x3b224c;for(var _0x6ede7f=_0x3d5ec0>0x1?void 0x0:_0x3d5ec0?Ys(_0x30a821,_0x452188):_0x30a821,_0x2a4d04=_0x41f08a[_0x31b5eb(0x2a8)]-0x1,_0x5de0b9;_0x2a4d04>=0x0;_0x2a4d04--)(_0x5de0b9=_0x41f08a[_0x2a4d04])&&(_0x6ede7f=(_0x3d5ec0?_0x5de0b9(_0x30a821,_0x452188,_0x6ede7f):_0x5de0b9(_0x6ede7f))||_0x6ede7f);return _0x3d5ec0&&_0x6ede7f&&Gs(_0x30a821,_0x452188,_0x6ede7f),_0x6ede7f;},Te=(_0x2b11c3,_0x4a906e)=>(_0x33e2fe,_0x3a9a82)=>_0x4a906e(_0x33e2fe,_0x3a9a82,_0x2b11c3);exports[_0x3b224c(0x151)]=class extends a[_0x3b224c(0x274)]{constructor(_0x4e0e0d,_0x4fbfe1,_0x5c6efc,_0x435404,_0x12e3f1,_0x58bcf4){const _0x57c098=_0x3b224c;super(),this[_0x57c098(0x361)]=_0x4e0e0d,this['_logService']=_0x4fbfe1,this['_commandService']=_0x5c6efc,this['_localCacheService']=_0x435404,this[_0x57c098(0x30c)]=_0x12e3f1,_0x58bcf4?_0x58bcf4==null||_0x58bcf4['whenReady']()[_0x57c098(0x55b)](()=>this[_0x57c098(0x578)]()):(this['_logService'][_0x57c098(0x241)]('[DataLoaderController]',_0x57c098(0x581)),this['_init']());}async[_0x3b224c(0x578)](){const _0x466149=_0x3b224c,_0x58d43b=this['_urlService'][_0x466149(0x48d)](_0x466149(0x479)),_0x4ab29a=this[_0x466149(0x361)][_0x466149(0x48d)]('type');if(!_0x58d43b||!_0x4ab29a){this['_logService'][_0x466149(0x241)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4ab29a)){case ie['UNIVER_SHEET']:{const _0x37be45=await this[_0x466149(0x4ea)](_0x58d43b);this['_setupSubUnitSync'](_0x37be45);break;}case ie[_0x466149(0x508)]:{await this['_loadDoc'](_0x58d43b);break;}default:{this[_0x466149(0x13a)][_0x466149(0x423)]('[DataLoaderController]',_0x466149(0x23f));break;}}}async[_0x3b224c(0x4b5)](_0xfb8a8b){const _0x553a71=_0x3b224c;await this[_0x553a71(0x2f1)](_0xfb8a8b),_0xfb8a8b['activeSheet$'][_0x553a71(0x3cc)](A['takeUntil'](this[_0x553a71(0x19d)]))[_0x553a71(0x2de)](_0x29c1dd=>{const _0x49fd8d=_0x553a71;_0x29c1dd&&this[_0x49fd8d(0x2ae)](_0x29c1dd);}),this[_0x553a71(0x361)][_0x553a71(0x166)]['pipe'](A[_0x553a71(0x58f)](this[_0x553a71(0x19d)]))[_0x553a71(0x2de)](()=>this[_0x553a71(0x2f1)](_0xfb8a8b));}[_0x3b224c(0x2ae)](_0x2b5101,_0x2b9cef=!0x1){const _0x2ecd6b=_0x3b224c,_0x24c6b6=this[_0x2ecd6b(0x361)][_0x2ecd6b(0x48d)]('subunit');_0x2b5101['getSheetId']()!==_0x24c6b6&&this[_0x2ecd6b(0x361)]['setParam'](_0x2ecd6b(0x2a0),_0x2b5101[_0x2ecd6b(0x244)](),_0x2b9cef);}async[_0x3b224c(0x2f1)](_0x228c2f){const _0xbf11e0=_0x3b224c;var _0x33f240;const _0x1decb7=this[_0xbf11e0(0x361)]['getParam'](_0xbf11e0(0x2a0));if(!_0x1decb7||!_0x228c2f[_0xbf11e0(0x574)](_0x1decb7)){const _0x465e21=_0x228c2f[_0xbf11e0(0x388)]()[0x0],_0x4216e3=_0x228c2f[_0xbf11e0(0x574)](_0x465e21);if(!_0x4216e3)return;this[_0xbf11e0(0x2ae)](_0x4216e3,!0x0),await this[_0xbf11e0(0x2b1)][_0xbf11e0(0x5ad)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x228c2f['getUnitId'](),'subUnitId':_0x465e21});return;}((_0x33f240=_0x228c2f['getActiveSheet']())==null?void 0x0:_0x33f240[_0xbf11e0(0x244)]())!==_0x1decb7&&await this[_0xbf11e0(0x2b1)]['executeCommand'](k[_0xbf11e0(0x2e5)]['id'],{'unitId':_0x228c2f[_0xbf11e0(0x22d)](),'subUnitId':_0x1decb7});}async[_0x3b224c(0x4ea)](_0x395f46){const _0xa66a85=_0x3b224c;let _0x34c025=0x0;const _0x4d4362=await this[_0xa66a85(0x490)][_0xa66a85(0x2a3)](_0x395f46);return _0x4d4362&&(_0x4d4362[_0xa66a85(0x3c3)]||_0x4d4362['mutations']['length']!==0x0)&&(_0x34c025=_0x4d4362['rev']),_0x34c025===0x0&&this[_0xa66a85(0x13a)][_0xa66a85(0x241)](_0xa66a85(0x3da),_0xa66a85(0x3cf)),this[_0xa66a85(0x30c)]['loadSheet'](_0x395f46,_0x34c025);}async[_0x3b224c(0x2eb)](_0x1c362b){const _0xaf6d98=_0x3b224c;let _0x253444=0x0;const _0x3305a=await this[_0xaf6d98(0x490)][_0xaf6d98(0x2a3)](_0x1c362b);return _0x3305a&&(_0x3305a[_0xaf6d98(0x3c3)]||_0x3305a[_0xaf6d98(0x229)][_0xaf6d98(0x2a8)]!==0x0)&&(_0x253444=_0x3305a['rev']),_0x253444===0x0&&this[_0xaf6d98(0x13a)][_0xaf6d98(0x241)](_0xaf6d98(0x3da),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xaf6d98(0x30c)][_0xaf6d98(0x161)](_0x1c362b,_0x253444);}},exports['DataLoaderController']=Ks([Te(0x0,wt),Te(0x1,a[_0x3b224c(0x5ae)]),Te(0x2,a[_0x3b224c(0x3d4)]),Te(0x3,a['Inject'](exports[_0x3b224c(0x42a)])),Te(0x4,a[_0x3b224c(0x556)](S[_0x3b224c(0x171)])),Te(0x5,a[_0x3b224c(0x3e1)]($n[_0x3b224c(0x185)]))],exports[_0x3b224c(0x151)]);var qs=Object[_0x3b224c(0x209)],zs=Object[_0x3b224c(0x233)],Xs=(_0x2b7ca8,_0x3be938,_0x42621f,_0x28eee5)=>{const _0xa389bc=_0x3b224c;for(var _0x34e666=_0x28eee5>0x1?void 0x0:_0x28eee5?zs(_0x3be938,_0x42621f):_0x3be938,_0x4d88dd=_0x2b7ca8[_0xa389bc(0x2a8)]-0x1,_0x4de670;_0x4d88dd>=0x0;_0x4d88dd--)(_0x4de670=_0x2b7ca8[_0x4d88dd])&&(_0x34e666=(_0x28eee5?_0x4de670(_0x3be938,_0x42621f,_0x34e666):_0x4de670(_0x34e666))||_0x34e666);return _0x28eee5&&_0x34e666&&qs(_0x3be938,_0x42621f,_0x34e666),_0x34e666;},kt=(_0x25fd3b,_0x18e10f)=>(_0x25ebf3,_0x3512fc)=>_0x18e10f(_0x25ebf3,_0x3512fc,_0x25fd3b);const Js=_0x3b224c(0x1e3),Zs=_0x3b224c(0x2fd);let Ve=class extends a[_0x3b224c(0x52b)]{constructor(_0x4ff428,_0x1c26b9){const _0x5dce6b=_0x3b224c;super(),this[_0x5dce6b(0x15e)]=_0x4ff428,this[_0x5dce6b(0x142)]=_0x1c26b9,this[_0x5dce6b(0x578)]();}[_0x3b224c(0x578)](){const _0x3b1268=_0x3b224c;this['disposeWithMe'](this[_0x3b1268(0x15e)][_0x3b1268(0x5dc)][_0x3b1268(0x2de)](()=>{const _0x3b9f3f=_0x3b1268;var _0x231c4e;const _0x4ce2d4=this['_univerInstanceService'][_0x3b9f3f(0x499)]();let _0x6b707d=(_0x231c4e=this[_0x3b9f3f(0x142)][_0x3b9f3f(0x469)](Js))!=null?_0x231c4e:Zs;_0x4ce2d4 instanceof a['Workbook']&&(_0x6b707d=_0x4ce2d4[_0x3b9f3f(0x513)]),document[_0x3b9f3f(0x519)]=_0x6b707d;}));}};Ve=Xs([kt(0x0,a[_0x3b224c(0x5a1)]),kt(0x1,a['IConfigService'])],Ve);var Qs=Object[_0x3b224c(0x209)],er=Object[_0x3b224c(0x233)],tr=(_0x17b944,_0x389540,_0x4f04fb,_0x5e9bf1)=>{const _0x30d187=_0x3b224c;for(var _0xbb885f=_0x5e9bf1>0x1?void 0x0:_0x5e9bf1?er(_0x389540,_0x4f04fb):_0x389540,_0x5a805a=_0x17b944[_0x30d187(0x2a8)]-0x1,_0x436db5;_0x5a805a>=0x0;_0x5a805a--)(_0x436db5=_0x17b944[_0x5a805a])&&(_0xbb885f=(_0x5e9bf1?_0x436db5(_0x389540,_0x4f04fb,_0xbb885f):_0x436db5(_0xbb885f))||_0xbb885f);return _0x5e9bf1&&_0xbb885f&&Qs(_0x389540,_0x4f04fb,_0xbb885f),_0xbb885f;},at=(_0x164877,_0x58c5df)=>(_0x5003e7,_0x14d446)=>_0x58c5df(_0x5003e7,_0x14d446,_0x164877);let Ge=class{constructor(_0x2bc9fe,_0x4ae4f5,_0x422001){const _0x5b2914=_0x3b224c;this[_0x5b2914(0x142)]=_0x2bc9fe,this[_0x5b2914(0x4f3)]=_0x4ae4f5,this[_0x5b2914(0x422)]=_0x422001,this[_0x5b2914(0x20b)]();}[_0x3b224c(0x20b)](){const _0x4fac41=_0x3b224c;this[_0x4fac41(0x4f3)][_0x4fac41(0x517)]({'priority':0x1,'interceptor':(_0x258bda,_0x440d7c)=>_0x440d7c(_0x258bda)[_0x4fac41(0x3cc)](A[_0x4fac41(0x4cd)](async _0x1a7be4=>{const _0x5038ab=_0x4fac41,_0x3e2942=_0x1a7be4;if(_0x3e2942['status']===0x191&&window[_0x5038ab(0x20d)](this[_0x5038ab(0x422)]['t'](_0x5038ab(0x440)))){const _0x5ae6ea=window[_0x5038ab(0x1cf)](window[_0x5038ab(0x3c2)]['href']);window[_0x5038ab(0x3c2)][_0x5038ab(0x27d)]=this[_0x5038ab(0x56b)]()+_0x5038ab(0x246)+_0x5ae6ea;}return _0x3e2942;}))});}[_0x3b224c(0x56b)](){const _0x49e17c=_0x3b224c;var _0x2f821f,_0x2cf52a;const _0x508421=this[_0x49e17c(0x142)]['getConfig'](an),_0x48188c=this[_0x49e17c(0x142)][_0x49e17c(0x469)](te);return(_0x2cf52a=(_0x2f821f=_0x48188c==null?void 0x0:_0x48188c['loginUrlKey'])!=null?_0x2f821f:_0x508421)!=null?_0x2cf52a:qn;}};Ge=tr([at(0x0,a[_0x3b224c(0x160)]),at(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)])),at(0x2,a['Inject'](a[_0x3b224c(0x4ae)]))],Ge);var nr=Object[_0x3b224c(0x209)],ir=Object[_0x3b224c(0x233)],sr=(_0x2aa440,_0x3f2dc1,_0x3a84f0,_0x45068e)=>{for(var _0x2a2153=_0x45068e>0x1?void 0x0:_0x45068e?ir(_0x3f2dc1,_0x3a84f0):_0x3f2dc1,_0x52cea8=_0x2aa440['length']-0x1,_0x507faf;_0x52cea8>=0x0;_0x52cea8--)(_0x507faf=_0x2aa440[_0x52cea8])&&(_0x2a2153=(_0x45068e?_0x507faf(_0x3f2dc1,_0x3a84f0,_0x2a2153):_0x507faf(_0x2a2153))||_0x2a2153);return _0x45068e&&_0x2a2153&&nr(_0x3f2dc1,_0x3a84f0,_0x2a2153),_0x2a2153;},Wt=(_0x449411,_0x1ec1ef)=>(_0x52e356,_0x480455)=>_0x1ec1ef(_0x52e356,_0x480455,_0x449411);const Rn='AUTHZ_URL_KEY',rr=_0x3b224c(0x26c);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x2123ec,_0x129630){const _0x5071e8=_0x3b224c;super(),this[_0x5071e8(0x461)]=_0x2123ec,this[_0x5071e8(0x142)]=_0x129630,this[_0x5071e8(0x26f)]();}['_initMergeInterceptor'](){const _0x57b4ba=_0x3b224c,_0x3b61ef=this;this[_0x57b4ba(0x220)](this[_0x57b4ba(0x461)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':Z[_0x57b4ba(0x18a)]({'isMatch'(_0x4b31e){const _0x334845=_0x57b4ba;var _0x8886b;if(_0x4b31e[_0x334845(0x295)]===_0x334845(0x17e)&&((_0x8886b=_0x4b31e[_0x334845(0x5df)])!=null&&_0x8886b[_0x334845(0x4ce)])){const {objectID:_0x38a6be,objectType:_0x2f29d4}=_0x4b31e[_0x334845(0x5df)]['body']||{};if(!_0x38a6be||_0x2f29d4===void 0x0)return!0x1;const _0x48f07e=_0x3b61ef['_getAPIPrefixPath']()+'/'+_0x2f29d4+'/object/'+_0x38a6be+_0x334845(0x150);if(_0x4b31e[_0x334845(0x47a)]===_0x48f07e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xef08d4){const _0x2c7dc2=_0x57b4ba;var _0x51d033;return(_0x51d033=_0xef08d4[_0x2c7dc2(0x5df)])==null?void 0x0:_0x51d033[_0x2c7dc2(0x4ce)];},'mergeParamsToRequest'(_0x35f389,_0x450135){const _0x47d3a2=_0x57b4ba,_0x1863e4=_0x3b61ef[_0x47d3a2(0x374)]()+'/-/object/-/batch_allowed',_0xc391fd=_0x35f389[_0x47d3a2(0x5b7)]((_0x3fe96b,_0x5aa58b)=>{const _0x2cb9ef=_0x47d3a2,{unitID:_0x4e02de,objectID:_0x2e4593,objectType:_0x104950,actions:_0x3730a3}=_0x5aa58b;return _0x3fe96b[_0x4e02de]||(_0x3fe96b[_0x4e02de]={}),_0x3fe96b[_0x4e02de][_0x2e4593]||(_0x3fe96b[_0x4e02de][_0x2e4593]={'objectID':_0x2e4593,'objectType':_0x104950,'actions':[]}),_0x3fe96b[_0x4e02de][_0x2e4593][_0x2cb9ef(0x1f0)]['push'](..._0x3730a3),_0x3fe96b;},{}),_0x4f88fa=[];for(const _0x24c427 in _0xc391fd)for(const _0x348e3c in _0xc391fd[_0x24c427]){const {actions:_0x52adbc,objectType:_0x31837f}=_0xc391fd[_0x24c427][_0x348e3c],_0x35a1af=[...new Set(_0x52adbc)];_0x4f88fa[_0x47d3a2(0x1a8)]({'unitID':_0x24c427,'objectID':_0x348e3c,'objectType':_0x31837f,'actions':_0x35a1af});}return new Z[(_0x47d3a2(0x26e))](_0x47d3a2(0x17e),_0x1863e4,{'headers':_0x450135['headers'],'withCredentials':_0x450135['withCredentials'],'responseType':_0x450135[_0x47d3a2(0x37c)],'body':{'requests':_0x4f88fa}});}},{'distributeResult'(_0x3da413,_0x57144b){const _0x5ece46=_0x57b4ba,{objectActions:_0x315f86}=_0x3da413;return _0x57144b[_0x5ece46(0x283)](_0xea0289=>{const _0x6930cd=_0x5ece46,{unitID:_0x2c36a2,objectID:_0x4d8c0b,actions:_0x5ce6eb}=_0xea0289,_0x10be38=_0x315f86[_0x6930cd(0x474)](_0x1f93a5=>_0x1f93a5[_0x6930cd(0x236)]===_0x2c36a2&&_0x1f93a5[_0x6930cd(0x313)]===_0x4d8c0b),_0x57e7be=_0x5ce6eb['map'](_0x447c2c=>_0x10be38==null?void 0x0:_0x10be38[_0x6930cd(0x1f0)][_0x6930cd(0x474)](_0xe65695=>_0xe65695['action']===_0x447c2c))[_0x6930cd(0x567)](_0x2382c8=>!!_0x2382c8);return{'config':_0xea0289,'result':{'actions':_0x57e7be,'error':_0x3da413[_0x6930cd(0x423)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1bc168=_0x3b224c;var _0x415d55,_0x226103;const _0x5403b0=this['_configService']['getConfig'](Rn),_0x352aba=this[_0x1bc168(0x142)][_0x1bc168(0x469)](te);return(_0x226103=(_0x415d55=_0x352aba==null?void 0x0:_0x352aba[_0x1bc168(0x1a2)])!=null?_0x415d55:_0x5403b0)!=null?_0x226103:rr;}async['create'](_0x16a6ec){const _0x48afd4=_0x3b224c,_0x53ee37=this[_0x48afd4(0x374)]()+'/'+_0x16a6ec[_0x48afd4(0x259)]+_0x48afd4(0x3c9);return(await this['_HTTPService']['post'](_0x53ee37,{'body':_0x16a6ec}))[_0x48afd4(0x4ce)][_0x48afd4(0x313)]||'';}async[_0x3b224c(0x18b)](_0x43e7d1){const _0x418b44=_0x3b224c,_0x41214d=this[_0x418b44(0x374)]()+_0x418b44(0x557);return(await this[_0x418b44(0x461)][_0x418b44(0x192)](_0x41214d,{'body':_0x43e7d1}))[_0x418b44(0x4ce)][_0x418b44(0x138)];}async[_0x3b224c(0x367)](_0x37d6a2){const _0x175ad0=_0x3b224c,_0x82a377=this[_0x175ad0(0x374)]()+'/'+_0x37d6a2[_0x175ad0(0x259)]+_0x175ad0(0x22a)+_0x37d6a2[_0x175ad0(0x313)];await this[_0x175ad0(0x461)][_0x175ad0(0x342)](_0x82a377,{'body':_0x37d6a2});}async[_0x3b224c(0x33b)](_0x1884a9){const _0x54112e=_0x3b224c,_0x29ac24=this[_0x54112e(0x374)]()+'/'+_0x1884a9[_0x54112e(0x259)]+_0x54112e(0x22a)+_0x1884a9['objectID']+_0x54112e(0x150);return(await this[_0x54112e(0x461)][_0x54112e(0x192)](_0x29ac24,{'body':_0x1884a9}))[_0x54112e(0x4ce)]['actions'];}async['batchAllowed'](_0x18cc32){const _0x2328b5=_0x3b224c,_0x20d544=this['_getAPIPrefixPath']()+_0x2328b5(0x27e);return(await this[_0x2328b5(0x461)][_0x2328b5(0x192)](_0x20d544,{'body':{'requests':_0x18cc32}}))[_0x2328b5(0x4ce)][_0x2328b5(0x1b5)];}async[_0x3b224c(0x4ee)](_0x1c3217){const _0x2e8006=_0x3b224c,_0x9413df=this[_0x2e8006(0x374)]()+'/'+_0x1c3217['objectType']+_0x2e8006(0x4fe),_0x32abf1=await this[_0x2e8006(0x461)][_0x2e8006(0x192)](_0x9413df,{'body':_0x1c3217});return{'roles':_0x32abf1[_0x2e8006(0x4ce)][_0x2e8006(0x482)],'actions':_0x32abf1[_0x2e8006(0x4ce)][_0x2e8006(0x1f0)]};}async[_0x3b224c(0x2f8)](_0xd894e5){const _0x5aa370=_0x3b224c,_0x2daeb3=this[_0x5aa370(0x374)]()+_0x5aa370(0x301);await this[_0x5aa370(0x461)][_0x5aa370(0x463)](_0x2daeb3,{'params':{'collaboratorID':_0xd894e5[_0x5aa370(0x5e2)],'objectID':_0xd894e5[_0x5aa370(0x313)],'unitID':_0xd894e5[_0x5aa370(0x236)]}});}async[_0x3b224c(0x22f)](_0x40ea76){const _0x45a21e=_0x3b224c,_0x1577ce=this['_getAPIPrefixPath']()+_0x45a21e(0x301);await this['_HTTPService'][_0x45a21e(0x5aa)](_0x1577ce,{'body':_0x40ea76});}async['createCollaborator'](_0x3817d0){const _0x56c382=_0x3b224c,_0x658c5a=this[_0x56c382(0x374)]()+'/collaborator';await this[_0x56c382(0x461)]['post'](_0x658c5a,{'body':_0x3817d0});}async[_0x3b224c(0x133)](_0x1b7eec){const _0x260379=_0x3b224c,_0x318c4b=this[_0x260379(0x374)]()+'/collaborator';return(await this[_0x260379(0x461)][_0x260379(0x273)](_0x318c4b,{'params':{'objectID':_0x1b7eec[_0x260379(0x313)],'unitID':_0x1b7eec[_0x260379(0x236)]}}))[_0x260379(0x4ce)][_0x260379(0x147)];}async[_0x3b224c(0x35f)](_0x283c71){const _0x139d37=_0x3b224c,_0x53141d=this[_0x139d37(0x374)]()+_0x139d37(0x301);await this[_0x139d37(0x461)][_0x139d37(0x342)](_0x53141d,{'body':_0x283c71});}},exports[_0x3b224c(0x511)]=sr([Wt(0x0,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)])),Wt(0x1,a[_0x3b224c(0x556)](a['IConfigService']))],exports[_0x3b224c(0x511)]);var yn={'exports':{}};function or(_0x4fb42c){const _0x380f51=_0x3b224c;throw new Error(_0x380f51(0x4bb)+_0x4fb42c+_0x380f51(0x42b));}var ct={'exports':{}},Ft;function oe(){return Ft||(Ft=0x1,function(_0x26b7ed,_0x248825){(function(_0x3ce1d8,_0x2fd265){const _0x38ac79=_0x1276;_0x26b7ed[_0x38ac79(0x2fc)]=_0x2fd265();}(X,function(){var _0x4a9e22=_0x4a9e22||function(_0x14dc5f,_0x4e54f9){const _0x409e4f=_0x1276;var _0x4e153e;if(typeof window<'u'&&window['crypto']&&(_0x4e153e=window['crypto']),typeof self<'u'&&self[_0x409e4f(0x207)]&&(_0x4e153e=self['crypto']),typeof globalThis<'u'&&globalThis[_0x409e4f(0x207)]&&(_0x4e153e=globalThis[_0x409e4f(0x207)]),!_0x4e153e&&typeof window<'u'&&window[_0x409e4f(0x3eb)]&&(_0x4e153e=window[_0x409e4f(0x3eb)]),!_0x4e153e&&typeof X<'u'&&X[_0x409e4f(0x207)]&&(_0x4e153e=X[_0x409e4f(0x207)]),!_0x4e153e&&typeof or=='function')try{_0x4e153e=require('crypto');}catch{}var _0x251d92=function(){const _0x573a82=_0x409e4f;if(_0x4e153e){if(typeof _0x4e153e[_0x573a82(0x458)]==_0x573a82(0x554))try{return _0x4e153e[_0x573a82(0x458)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4e153e[_0x573a82(0x4f6)]==_0x573a82(0x554))try{return _0x4e153e[_0x573a82(0x4f6)](0x4)[_0x573a82(0x293)]();}catch{}}throw new Error(_0x573a82(0x277));},_0x48bc3d=Object[_0x409e4f(0x4ec)]||(function(){function _0x88e223(){}return function(_0x48afe5){const _0x37e0ae=_0x1276;var _0x2c057b;return _0x88e223[_0x37e0ae(0x1af)]=_0x48afe5,_0x2c057b=new _0x88e223(),_0x88e223[_0x37e0ae(0x1af)]=null,_0x2c057b;};}()),_0x415ee6={},_0x199d5b=_0x415ee6[_0x409e4f(0x5af)]={},_0x56506f=_0x199d5b[_0x409e4f(0x1d9)]=(function(){return{'extend':function(_0xfbd65f){const _0x20011f=_0x1276;var _0x1e43db=_0x48bc3d(this);return _0xfbd65f&&_0x1e43db[_0x20011f(0x315)](_0xfbd65f),(!_0x1e43db[_0x20011f(0x1fe)](_0x20011f(0x20b))||this[_0x20011f(0x20b)]===_0x1e43db[_0x20011f(0x20b)])&&(_0x1e43db['init']=function(){const _0x3753eb=_0x20011f;_0x1e43db[_0x3753eb(0x2ee)]['init'][_0x3753eb(0x44a)](this,arguments);}),_0x1e43db[_0x20011f(0x20b)][_0x20011f(0x1af)]=_0x1e43db,_0x1e43db[_0x20011f(0x2ee)]=this,_0x1e43db;},'create':function(){const _0x1f893e=_0x1276;var _0x4b09fb=this['extend']();return _0x4b09fb[_0x1f893e(0x20b)][_0x1f893e(0x44a)](_0x4b09fb,arguments),_0x4b09fb;},'init':function(){},'mixIn':function(_0x52be11){const _0x36a6f2=_0x1276;for(var _0x66db55 in _0x52be11)_0x52be11[_0x36a6f2(0x1fe)](_0x66db55)&&(this[_0x66db55]=_0x52be11[_0x66db55]);_0x52be11[_0x36a6f2(0x1fe)](_0x36a6f2(0x4cf))&&(this[_0x36a6f2(0x4cf)]=_0x52be11[_0x36a6f2(0x4cf)]);},'clone':function(){const _0x24143b=_0x1276;return this[_0x24143b(0x20b)][_0x24143b(0x1af)][_0x24143b(0x24d)](this);}};}()),_0x196c5f=_0x199d5b[_0x409e4f(0x1e5)]=_0x56506f[_0x409e4f(0x24d)]({'init':function(_0x3be007,_0x2a00a9){const _0x56463b=_0x409e4f;_0x3be007=this[_0x56463b(0x222)]=_0x3be007||[],_0x2a00a9!=_0x4e54f9?this[_0x56463b(0x25c)]=_0x2a00a9:this['sigBytes']=_0x3be007[_0x56463b(0x2a8)]*0x4;},'toString':function(_0x3a9145){const _0x205a56=_0x409e4f;return(_0x3a9145||_0x4c4b0e)[_0x205a56(0x52a)](this);},'concat':function(_0xd5d088){const _0x36d884=_0x409e4f;var _0x3d0226=this[_0x36d884(0x222)],_0x3a2515=_0xd5d088[_0x36d884(0x222)],_0x4d1cea=this[_0x36d884(0x25c)],_0x88ca8d=_0xd5d088[_0x36d884(0x25c)];if(this[_0x36d884(0x338)](),_0x4d1cea%0x4)for(var _0x5c7936=0x0;_0x5c7936<_0x88ca8d;_0x5c7936++){var _0x542607=_0x3a2515[_0x5c7936>>>0x2]>>>0x18-_0x5c7936%0x4*0x8&0xff;_0x3d0226[_0x4d1cea+_0x5c7936>>>0x2]|=_0x542607<<0x18-(_0x4d1cea+_0x5c7936)%0x4*0x8;}else{for(var _0x59c136=0x0;_0x59c136<_0x88ca8d;_0x59c136+=0x4)_0x3d0226[_0x4d1cea+_0x59c136>>>0x2]=_0x3a2515[_0x59c136>>>0x2];}return this[_0x36d884(0x25c)]+=_0x88ca8d,this;},'clamp':function(){const _0x90658f=_0x409e4f;var _0x3d326c=this[_0x90658f(0x222)],_0x52b729=this['sigBytes'];_0x3d326c[_0x52b729>>>0x2]&=0xffffffff<<0x20-_0x52b729%0x4*0x8,_0x3d326c[_0x90658f(0x2a8)]=_0x14dc5f[_0x90658f(0x4b0)](_0x52b729/0x4);},'clone':function(){const _0x5930f0=_0x409e4f;var _0x1be674=_0x56506f['clone']['call'](this);return _0x1be674[_0x5930f0(0x222)]=this[_0x5930f0(0x222)]['slice'](0x0),_0x1be674;},'random':function(_0x54f458){const _0x304e41=_0x409e4f;for(var _0x1c4dcf=[],_0x21c76f=0x0;_0x21c76f<_0x54f458;_0x21c76f+=0x4)_0x1c4dcf[_0x304e41(0x1a8)](_0x251d92());return new _0x196c5f[(_0x304e41(0x20b))](_0x1c4dcf,_0x54f458);}}),_0x5f02cb=_0x415ee6[_0x409e4f(0x551)]={},_0x4c4b0e=_0x5f02cb[_0x409e4f(0x1ff)]={'stringify':function(_0x4137f0){const _0x419699=_0x409e4f;for(var _0x3e4593=_0x4137f0[_0x419699(0x222)],_0x1e7b36=_0x4137f0['sigBytes'],_0x1ba5ec=[],_0x3eca73=0x0;_0x3eca73<_0x1e7b36;_0x3eca73++){var _0x1b5ddf=_0x3e4593[_0x3eca73>>>0x2]>>>0x18-_0x3eca73%0x4*0x8&0xff;_0x1ba5ec['push']((_0x1b5ddf>>>0x4)[_0x419699(0x4cf)](0x10)),_0x1ba5ec[_0x419699(0x1a8)]((_0x1b5ddf&0xf)[_0x419699(0x4cf)](0x10));}return _0x1ba5ec[_0x419699(0x45e)]('');},'parse':function(_0x4c4466){const _0x4f9c35=_0x409e4f;for(var _0x167110=_0x4c4466[_0x4f9c35(0x2a8)],_0x41a5c3=[],_0x743df3=0x0;_0x743df3<_0x167110;_0x743df3+=0x2)_0x41a5c3[_0x743df3>>>0x3]|=parseInt(_0x4c4466[_0x4f9c35(0x50b)](_0x743df3,0x2),0x10)<<0x18-_0x743df3%0x8*0x4;return new _0x196c5f[(_0x4f9c35(0x20b))](_0x41a5c3,_0x167110/0x2);}},_0x232c51=_0x5f02cb[_0x409e4f(0x576)]={'stringify':function(_0x254c9b){const _0x293dc2=_0x409e4f;for(var _0x13c47b=_0x254c9b[_0x293dc2(0x222)],_0x18e717=_0x254c9b[_0x293dc2(0x25c)],_0x4f64b7=[],_0x4a306d=0x0;_0x4a306d<_0x18e717;_0x4a306d++){var _0x520bba=_0x13c47b[_0x4a306d>>>0x2]>>>0x18-_0x4a306d%0x4*0x8&0xff;_0x4f64b7[_0x293dc2(0x1a8)](String['fromCharCode'](_0x520bba));}return _0x4f64b7[_0x293dc2(0x45e)]('');},'parse':function(_0x42cd7f){const _0x841be1=_0x409e4f;for(var _0x13e4f8=_0x42cd7f[_0x841be1(0x2a8)],_0x47a5e7=[],_0x1deb84=0x0;_0x1deb84<_0x13e4f8;_0x1deb84++)_0x47a5e7[_0x1deb84>>>0x2]|=(_0x42cd7f[_0x841be1(0x501)](_0x1deb84)&0xff)<<0x18-_0x1deb84%0x4*0x8;return new _0x196c5f[(_0x841be1(0x20b))](_0x47a5e7,_0x13e4f8);}},_0x14b993=_0x5f02cb[_0x409e4f(0x4dc)]={'stringify':function(_0x5dac28){try{return decodeURIComponent(escape(_0x232c51['stringify'](_0x5dac28)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x8f30a2){const _0x2599e7=_0x409e4f;return _0x232c51[_0x2599e7(0x3d3)](unescape(encodeURIComponent(_0x8f30a2)));}},_0x5b62fa=_0x199d5b[_0x409e4f(0x12f)]=_0x56506f['extend']({'reset':function(){const _0x5bbed1=_0x409e4f;this[_0x5bbed1(0x3b7)]=new _0x196c5f[(_0x5bbed1(0x20b))](),this['_nDataBytes']=0x0;},'_append':function(_0x1beaa7){const _0x4b8890=_0x409e4f;typeof _0x1beaa7==_0x4b8890(0x404)&&(_0x1beaa7=_0x14b993[_0x4b8890(0x3d3)](_0x1beaa7)),this[_0x4b8890(0x3b7)][_0x4b8890(0x198)](_0x1beaa7),this[_0x4b8890(0x51c)]+=_0x1beaa7[_0x4b8890(0x25c)];},'_process':function(_0x3764f5){const _0x1934ee=_0x409e4f;var _0x4da47f,_0x749f84=this[_0x1934ee(0x3b7)],_0x42d1bf=_0x749f84[_0x1934ee(0x222)],_0x190ebd=_0x749f84[_0x1934ee(0x25c)],_0x39a9f6=this['blockSize'],_0x4ea4ed=_0x39a9f6*0x4,_0x5211ca=_0x190ebd/_0x4ea4ed;_0x3764f5?_0x5211ca=_0x14dc5f[_0x1934ee(0x4b0)](_0x5211ca):_0x5211ca=_0x14dc5f['max']((_0x5211ca|0x0)-this['_minBufferSize'],0x0);var _0x4dd274=_0x5211ca*_0x39a9f6,_0x4b4e35=_0x14dc5f['min'](_0x4dd274*0x4,_0x190ebd);if(_0x4dd274){for(var _0x54d5b4=0x0;_0x54d5b4<_0x4dd274;_0x54d5b4+=_0x39a9f6)this[_0x1934ee(0x42c)](_0x42d1bf,_0x54d5b4);_0x4da47f=_0x42d1bf[_0x1934ee(0x45c)](0x0,_0x4dd274),_0x749f84['sigBytes']-=_0x4b4e35;}return new _0x196c5f['init'](_0x4da47f,_0x4b4e35);},'clone':function(){const _0x4a92ac=_0x409e4f;var _0x40e3e6=_0x56506f['clone'][_0x4a92ac(0x537)](this);return _0x40e3e6[_0x4a92ac(0x3b7)]=this[_0x4a92ac(0x3b7)]['clone'](),_0x40e3e6;},'_minBufferSize':0x0});_0x199d5b[_0x409e4f(0x442)]=_0x5b62fa['extend']({'cfg':_0x56506f[_0x409e4f(0x24d)](),'init':function(_0x6e3db3){const _0x33c644=_0x409e4f;this[_0x33c644(0x472)]=this[_0x33c644(0x472)][_0x33c644(0x24d)](_0x6e3db3),this[_0x33c644(0x1ec)]();},'reset':function(){const _0x36764a=_0x409e4f;_0x5b62fa[_0x36764a(0x1ec)][_0x36764a(0x537)](this),this[_0x36764a(0x492)]();},'update':function(_0x333156){const _0x19223d=_0x409e4f;return this['_append'](_0x333156),this[_0x19223d(0x3a9)](),this;},'finalize':function(_0x261a33){const _0x238e05=_0x409e4f;_0x261a33&&this['_append'](_0x261a33);var _0x5e7ebc=this[_0x238e05(0x2f6)]();return _0x5e7ebc;},'blockSize':0x10,'_createHelper':function(_0x27c29a){return function(_0x2e153a,_0xe45e88){return new _0x27c29a['init'](_0xe45e88)['finalize'](_0x2e153a);};},'_createHmacHelper':function(_0x5e4763){return function(_0x273615,_0x171222){const _0x317699=_0x1276;return new _0x42f986[(_0x317699(0x1ae))][(_0x317699(0x20b))](_0x5e4763,_0x171222)['finalize'](_0x273615);};}});var _0x42f986=_0x415ee6['algo']={};return _0x415ee6;}(Math);return _0x4a9e22;}));}(ct)),ct['exports'];}var lt={'exports':{}},Vt;function On(){return Vt||(Vt=0x1,function(_0x58a475,_0x573661){(function(_0x3f03fe,_0x166317){const _0x34bcbd=_0x1276;_0x58a475[_0x34bcbd(0x2fc)]=_0x166317(oe());}(X,function(_0x1fd3d5){const _0xce26b=_0x1276;return(function(){const _0x9fb5ee=_0x1276;var _0x556672=_0x1fd3d5,_0x359ccd=_0x556672['lib'],_0x48f066=_0x359ccd['WordArray'],_0x2eaec4=_0x556672[_0x9fb5ee(0x551)];_0x2eaec4[_0x9fb5ee(0x5d6)]={'stringify':function(_0x5cf252){const _0x1c17dc=_0x9fb5ee;var _0x58913a=_0x5cf252[_0x1c17dc(0x222)],_0x5c3508=_0x5cf252[_0x1c17dc(0x25c)],_0x326441=this[_0x1c17dc(0x3f9)];_0x5cf252['clamp']();for(var _0x38e437=[],_0x15b97c=0x0;_0x15b97c<_0x5c3508;_0x15b97c+=0x3)for(var _0x599d53=_0x58913a[_0x15b97c>>>0x2]>>>0x18-_0x15b97c%0x4*0x8&0xff,_0x5377b5=_0x58913a[_0x15b97c+0x1>>>0x2]>>>0x18-(_0x15b97c+0x1)%0x4*0x8&0xff,_0x1204f9=_0x58913a[_0x15b97c+0x2>>>0x2]>>>0x18-(_0x15b97c+0x2)%0x4*0x8&0xff,_0x1c2ee2=_0x599d53<<0x10|_0x5377b5<<0x8|_0x1204f9,_0x5aa06e=0x0;_0x5aa06e<0x4&&_0x15b97c+_0x5aa06e*0.75<_0x5c3508;_0x5aa06e++)_0x38e437['push'](_0x326441['charAt'](_0x1c2ee2>>>0x6*(0x3-_0x5aa06e)&0x3f));var _0x15e34f=_0x326441['charAt'](0x40);if(_0x15e34f){for(;_0x38e437[_0x1c17dc(0x2a8)]%0x4;)_0x38e437['push'](_0x15e34f);}return _0x38e437[_0x1c17dc(0x45e)]('');},'parse':function(_0x1dfadb){const _0x55a4c3=_0x9fb5ee;var _0xcf7748=_0x1dfadb[_0x55a4c3(0x2a8)],_0x3d1a8a=this['_map'],_0x52cabc=this[_0x55a4c3(0x42d)];if(!_0x52cabc){_0x52cabc=this[_0x55a4c3(0x42d)]=[];for(var _0x5c165b=0x0;_0x5c165b<_0x3d1a8a[_0x55a4c3(0x2a8)];_0x5c165b++)_0x52cabc[_0x3d1a8a[_0x55a4c3(0x501)](_0x5c165b)]=_0x5c165b;}var _0x1caa20=_0x3d1a8a[_0x55a4c3(0x46b)](0x40);if(_0x1caa20){var _0x2a2602=_0x1dfadb['indexOf'](_0x1caa20);_0x2a2602!==-0x1&&(_0xcf7748=_0x2a2602);}return _0x55b6a3(_0x1dfadb,_0xcf7748,_0x52cabc);},'_map':_0x9fb5ee(0x383)};function _0x55b6a3(_0x5e660f,_0xeed012,_0xd027c9){const _0x565a98=_0x9fb5ee;for(var _0x474a5d=[],_0x418685=0x0,_0x54863f=0x0;_0x54863f<_0xeed012;_0x54863f++)if(_0x54863f%0x4){var _0x1841a9=_0xd027c9[_0x5e660f[_0x565a98(0x501)](_0x54863f-0x1)]<<_0x54863f%0x4*0x2,_0x4b6f99=_0xd027c9[_0x5e660f[_0x565a98(0x501)](_0x54863f)]>>>0x6-_0x54863f%0x4*0x2,_0x150de2=_0x1841a9|_0x4b6f99;_0x474a5d[_0x418685>>>0x2]|=_0x150de2<<0x18-_0x418685%0x4*0x8,_0x418685++;}return _0x48f066['create'](_0x474a5d,_0x418685);}}()),_0x1fd3d5[_0xce26b(0x551)][_0xce26b(0x5d6)];}));}(lt)),lt['exports'];}var ht={'exports':{}},Gt;function ar(){const _0x30885b=_0x3b224c;return Gt||(Gt=0x1,function(_0x3372c9,_0x3fc529){(function(_0x228dea,_0xcfb842){const _0xbdf203=_0x1276;_0x3372c9[_0xbdf203(0x2fc)]=_0xcfb842(oe());}(X,function(_0x1fcbc1){const _0x338fe2=_0x1276;return function(_0x3e7cfa){const _0x599b2a=_0x1276;var _0x5295c5=_0x1fcbc1,_0x34f142=_0x5295c5[_0x599b2a(0x5af)],_0x22c1ff=_0x34f142[_0x599b2a(0x1e5)],_0x3f2a40=_0x34f142[_0x599b2a(0x442)],_0x4dd83f=_0x5295c5[_0x599b2a(0x4da)],_0x574020=[];(function(){const _0x5d2bca=_0x599b2a;for(var _0x12d8f2=0x0;_0x12d8f2<0x40;_0x12d8f2++)_0x574020[_0x12d8f2]=_0x3e7cfa['abs'](_0x3e7cfa[_0x5d2bca(0x39f)](_0x12d8f2+0x1))*0x100000000|0x0;}());var _0x403c3d=_0x4dd83f[_0x599b2a(0x258)]=_0x3f2a40[_0x599b2a(0x24d)]({'_doReset':function(){const _0x2f90ba=_0x599b2a;this[_0x2f90ba(0x400)]=new _0x22c1ff[(_0x2f90ba(0x20b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x1edfe1,_0x242a58){const _0x2a1d4f=_0x599b2a;for(var _0x110451=0x0;_0x110451<0x10;_0x110451++){var _0x3f7bf1=_0x242a58+_0x110451,_0x3746cd=_0x1edfe1[_0x3f7bf1];_0x1edfe1[_0x3f7bf1]=(_0x3746cd<<0x8|_0x3746cd>>>0x18)&0xff00ff|(_0x3746cd<<0x18|_0x3746cd>>>0x8)&0xff00ff00;}var _0x126367=this[_0x2a1d4f(0x400)][_0x2a1d4f(0x222)],_0x4547d2=_0x1edfe1[_0x242a58+0x0],_0x169df6=_0x1edfe1[_0x242a58+0x1],_0x1a9624=_0x1edfe1[_0x242a58+0x2],_0x3d7e29=_0x1edfe1[_0x242a58+0x3],_0x2889db=_0x1edfe1[_0x242a58+0x4],_0x2581f8=_0x1edfe1[_0x242a58+0x5],_0x6f7953=_0x1edfe1[_0x242a58+0x6],_0x259d7e=_0x1edfe1[_0x242a58+0x7],_0x2b4246=_0x1edfe1[_0x242a58+0x8],_0x1ab447=_0x1edfe1[_0x242a58+0x9],_0x599c2b=_0x1edfe1[_0x242a58+0xa],_0x486f56=_0x1edfe1[_0x242a58+0xb],_0x40cc2b=_0x1edfe1[_0x242a58+0xc],_0x42497f=_0x1edfe1[_0x242a58+0xd],_0x338cd1=_0x1edfe1[_0x242a58+0xe],_0x50e671=_0x1edfe1[_0x242a58+0xf],_0x3799fd=_0x126367[0x0],_0x175102=_0x126367[0x1],_0x3d7232=_0x126367[0x2],_0x3c3a8d=_0x126367[0x3];_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x4547d2,0x7,_0x574020[0x0]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x169df6,0xc,_0x574020[0x1]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x1a9624,0x11,_0x574020[0x2]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x3d7e29,0x16,_0x574020[0x3]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2889db,0x7,_0x574020[0x4]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2581f8,0xc,_0x574020[0x5]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x6f7953,0x11,_0x574020[0x6]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x259d7e,0x16,_0x574020[0x7]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2b4246,0x7,_0x574020[0x8]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x1ab447,0xc,_0x574020[0x9]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x599c2b,0x11,_0x574020[0xa]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x486f56,0x16,_0x574020[0xb]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x40cc2b,0x7,_0x574020[0xc]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x42497f,0xc,_0x574020[0xd]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x338cd1,0x11,_0x574020[0xe]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x50e671,0x16,_0x574020[0xf]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x169df6,0x5,_0x574020[0x10]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x6f7953,0x9,_0x574020[0x11]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x486f56,0xe,_0x574020[0x12]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x4547d2,0x14,_0x574020[0x13]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2581f8,0x5,_0x574020[0x14]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x599c2b,0x9,_0x574020[0x15]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x50e671,0xe,_0x574020[0x16]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2889db,0x14,_0x574020[0x17]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x1ab447,0x5,_0x574020[0x18]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x338cd1,0x9,_0x574020[0x19]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7e29,0xe,_0x574020[0x1a]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2b4246,0x14,_0x574020[0x1b]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x42497f,0x5,_0x574020[0x1c]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x1a9624,0x9,_0x574020[0x1d]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x259d7e,0xe,_0x574020[0x1e]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x40cc2b,0x14,_0x574020[0x1f]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2581f8,0x4,_0x574020[0x20]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2b4246,0xb,_0x574020[0x21]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x486f56,0x10,_0x574020[0x22]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x338cd1,0x17,_0x574020[0x23]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x169df6,0x4,_0x574020[0x24]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2889db,0xb,_0x574020[0x25]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x259d7e,0x10,_0x574020[0x26]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x599c2b,0x17,_0x574020[0x27]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x42497f,0x4,_0x574020[0x28]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x4547d2,0xb,_0x574020[0x29]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7e29,0x10,_0x574020[0x2a]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x6f7953,0x17,_0x574020[0x2b]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x1ab447,0x4,_0x574020[0x2c]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x40cc2b,0xb,_0x574020[0x2d]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x50e671,0x10,_0x574020[0x2e]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x1a9624,0x17,_0x574020[0x2f]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x4547d2,0x6,_0x574020[0x30]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x259d7e,0xa,_0x574020[0x31]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x338cd1,0xf,_0x574020[0x32]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2581f8,0x15,_0x574020[0x33]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x40cc2b,0x6,_0x574020[0x34]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x3d7e29,0xa,_0x574020[0x35]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x599c2b,0xf,_0x574020[0x36]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x169df6,0x15,_0x574020[0x37]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2b4246,0x6,_0x574020[0x38]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x50e671,0xa,_0x574020[0x39]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x6f7953,0xf,_0x574020[0x3a]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x42497f,0x15,_0x574020[0x3b]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2889db,0x6,_0x574020[0x3c]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x486f56,0xa,_0x574020[0x3d]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x1a9624,0xf,_0x574020[0x3e]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x1ab447,0x15,_0x574020[0x3f]),_0x126367[0x0]=_0x126367[0x0]+_0x3799fd|0x0,_0x126367[0x1]=_0x126367[0x1]+_0x175102|0x0,_0x126367[0x2]=_0x126367[0x2]+_0x3d7232|0x0,_0x126367[0x3]=_0x126367[0x3]+_0x3c3a8d|0x0;},'_doFinalize':function(){const _0x4f2d58=_0x599b2a;var _0x36fec4=this[_0x4f2d58(0x3b7)],_0x3ea60d=_0x36fec4['words'],_0x47c148=this['_nDataBytes']*0x8,_0x313e0e=_0x36fec4[_0x4f2d58(0x25c)]*0x8;_0x3ea60d[_0x313e0e>>>0x5]|=0x80<<0x18-_0x313e0e%0x20;var _0x49eea4=_0x3e7cfa[_0x4f2d58(0x318)](_0x47c148/0x100000000),_0x2949c1=_0x47c148;_0x3ea60d[(_0x313e0e+0x40>>>0x9<<0x4)+0xf]=(_0x49eea4<<0x8|_0x49eea4>>>0x18)&0xff00ff|(_0x49eea4<<0x18|_0x49eea4>>>0x8)&0xff00ff00,_0x3ea60d[(_0x313e0e+0x40>>>0x9<<0x4)+0xe]=(_0x2949c1<<0x8|_0x2949c1>>>0x18)&0xff00ff|(_0x2949c1<<0x18|_0x2949c1>>>0x8)&0xff00ff00,_0x36fec4[_0x4f2d58(0x25c)]=(_0x3ea60d['length']+0x1)*0x4,this[_0x4f2d58(0x3a9)]();for(var _0x5e108d=this[_0x4f2d58(0x400)],_0x21eeb7=_0x5e108d[_0x4f2d58(0x222)],_0x3d5c55=0x0;_0x3d5c55<0x4;_0x3d5c55++){var _0x419bf2=_0x21eeb7[_0x3d5c55];_0x21eeb7[_0x3d5c55]=(_0x419bf2<<0x8|_0x419bf2>>>0x18)&0xff00ff|(_0x419bf2<<0x18|_0x419bf2>>>0x8)&0xff00ff00;}return _0x5e108d;},'clone':function(){const _0x4d3b0c=_0x599b2a;var _0x1873c5=_0x3f2a40[_0x4d3b0c(0x17c)][_0x4d3b0c(0x537)](this);return _0x1873c5[_0x4d3b0c(0x400)]=this[_0x4d3b0c(0x400)]['clone'](),_0x1873c5;}});function _0x177c49(_0x89d451,_0x210c1f,_0x427d94,_0x5f1816,_0x5316a0,_0xa46e7d,_0x1cf49b){var _0x47a7a2=_0x89d451+(_0x210c1f&_0x427d94|~_0x210c1f&_0x5f1816)+_0x5316a0+_0x1cf49b;return(_0x47a7a2<<_0xa46e7d|_0x47a7a2>>>0x20-_0xa46e7d)+_0x210c1f;}function _0x15e947(_0x38dac3,_0x4ebcf0,_0x4064aa,_0x39b1aa,_0xa92756,_0xa4446b,_0x15d9b3){var _0x2fd971=_0x38dac3+(_0x4ebcf0&_0x39b1aa|_0x4064aa&~_0x39b1aa)+_0xa92756+_0x15d9b3;return(_0x2fd971<<_0xa4446b|_0x2fd971>>>0x20-_0xa4446b)+_0x4ebcf0;}function _0x56ae57(_0xc51211,_0x1ab8a6,_0x3f4b69,_0x425ed3,_0x1e8f82,_0x315f81,_0x49c4a2){var _0x8cdba9=_0xc51211+(_0x1ab8a6^_0x3f4b69^_0x425ed3)+_0x1e8f82+_0x49c4a2;return(_0x8cdba9<<_0x315f81|_0x8cdba9>>>0x20-_0x315f81)+_0x1ab8a6;}function _0x358f1e(_0x1121eb,_0x46c588,_0x5a609d,_0x90d2c1,_0x401719,_0x166fa4,_0x106819){var _0x4e46f2=_0x1121eb+(_0x5a609d^(_0x46c588|~_0x90d2c1))+_0x401719+_0x106819;return(_0x4e46f2<<_0x166fa4|_0x4e46f2>>>0x20-_0x166fa4)+_0x46c588;}_0x5295c5['MD5']=_0x3f2a40[_0x599b2a(0x14b)](_0x403c3d),_0x5295c5[_0x599b2a(0x2b5)]=_0x3f2a40[_0x599b2a(0x218)](_0x403c3d);}(Math),_0x1fcbc1[_0x338fe2(0x258)];}));}(ht)),ht[_0x30885b(0x2fc)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x178d93=_0x3b224c;return Yt||(Yt=0x1,function(_0x1133bf,_0xd70c45){(function(_0x4d59de,_0x441523){const _0x26b66e=_0x1276;_0x1133bf[_0x26b66e(0x2fc)]=_0x441523(oe());}(X,function(_0x2cb8ba){return(function(){const _0x2f0ff4=_0x1276;var _0x37c1d9=_0x2cb8ba,_0x3b8a9d=_0x37c1d9[_0x2f0ff4(0x5af)],_0x121320=_0x3b8a9d[_0x2f0ff4(0x1e5)],_0x2e1f27=_0x3b8a9d[_0x2f0ff4(0x442)],_0x39b8b0=_0x37c1d9['algo'],_0x460b1c=[],_0x3a050f=_0x39b8b0['SHA1']=_0x2e1f27[_0x2f0ff4(0x24d)]({'_doReset':function(){const _0x720412=_0x2f0ff4;this[_0x720412(0x400)]=new _0x121320['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x49fc71,_0x8eea63){const _0x33bd39=_0x2f0ff4;for(var _0x1e1824=this[_0x33bd39(0x400)][_0x33bd39(0x222)],_0x18498b=_0x1e1824[0x0],_0x1441b5=_0x1e1824[0x1],_0x4d13ae=_0x1e1824[0x2],_0x3f53a9=_0x1e1824[0x3],_0x3b117d=_0x1e1824[0x4],_0x4ec282=0x0;_0x4ec282<0x50;_0x4ec282++){if(_0x4ec282<0x10)_0x460b1c[_0x4ec282]=_0x49fc71[_0x8eea63+_0x4ec282]|0x0;else{var _0x5207d6=_0x460b1c[_0x4ec282-0x3]^_0x460b1c[_0x4ec282-0x8]^_0x460b1c[_0x4ec282-0xe]^_0x460b1c[_0x4ec282-0x10];_0x460b1c[_0x4ec282]=_0x5207d6<<0x1|_0x5207d6>>>0x1f;}var _0x195240=(_0x18498b<<0x5|_0x18498b>>>0x1b)+_0x3b117d+_0x460b1c[_0x4ec282];_0x4ec282<0x14?_0x195240+=(_0x1441b5&_0x4d13ae|~_0x1441b5&_0x3f53a9)+0x5a827999:_0x4ec282<0x28?_0x195240+=(_0x1441b5^_0x4d13ae^_0x3f53a9)+0x6ed9eba1:_0x4ec282<0x3c?_0x195240+=(_0x1441b5&_0x4d13ae|_0x1441b5&_0x3f53a9|_0x4d13ae&_0x3f53a9)-0x70e44324:_0x195240+=(_0x1441b5^_0x4d13ae^_0x3f53a9)-0x359d3e2a,_0x3b117d=_0x3f53a9,_0x3f53a9=_0x4d13ae,_0x4d13ae=_0x1441b5<<0x1e|_0x1441b5>>>0x2,_0x1441b5=_0x18498b,_0x18498b=_0x195240;}_0x1e1824[0x0]=_0x1e1824[0x0]+_0x18498b|0x0,_0x1e1824[0x1]=_0x1e1824[0x1]+_0x1441b5|0x0,_0x1e1824[0x2]=_0x1e1824[0x2]+_0x4d13ae|0x0,_0x1e1824[0x3]=_0x1e1824[0x3]+_0x3f53a9|0x0,_0x1e1824[0x4]=_0x1e1824[0x4]+_0x3b117d|0x0;},'_doFinalize':function(){const _0x319d8d=_0x2f0ff4;var _0x59945d=this['_data'],_0x4527ac=_0x59945d[_0x319d8d(0x222)],_0x4670cc=this[_0x319d8d(0x51c)]*0x8,_0x3cae30=_0x59945d[_0x319d8d(0x25c)]*0x8;return _0x4527ac[_0x3cae30>>>0x5]|=0x80<<0x18-_0x3cae30%0x20,_0x4527ac[(_0x3cae30+0x40>>>0x9<<0x4)+0xe]=Math[_0x319d8d(0x318)](_0x4670cc/0x100000000),_0x4527ac[(_0x3cae30+0x40>>>0x9<<0x4)+0xf]=_0x4670cc,_0x59945d[_0x319d8d(0x25c)]=_0x4527ac['length']*0x4,this[_0x319d8d(0x3a9)](),this[_0x319d8d(0x400)];},'clone':function(){const _0x3f67d8=_0x2f0ff4;var _0x1da5fd=_0x2e1f27[_0x3f67d8(0x17c)]['call'](this);return _0x1da5fd[_0x3f67d8(0x400)]=this['_hash'][_0x3f67d8(0x17c)](),_0x1da5fd;}});_0x37c1d9[_0x2f0ff4(0x359)]=_0x2e1f27['_createHelper'](_0x3a050f),_0x37c1d9[_0x2f0ff4(0x1b0)]=_0x2e1f27[_0x2f0ff4(0x218)](_0x3a050f);}()),_0x2cb8ba['SHA1'];}));}(ut)),ut[_0x178d93(0x2fc)];}var dt={'exports':{}},Kt;function lr(){return Kt||(Kt=0x1,function(_0x2a1ab0,_0x2ff5b4){(function(_0x54e0ac,_0x55eab7){const _0x209745=_0x1276;_0x2a1ab0[_0x209745(0x2fc)]=_0x55eab7(oe());}(X,function(_0xbc301c){(function(){const _0x318c7c=_0x1276;var _0x56d660=_0xbc301c,_0x403665=_0x56d660[_0x318c7c(0x5af)],_0x45b131=_0x403665[_0x318c7c(0x1d9)],_0xacf10b=_0x56d660[_0x318c7c(0x551)],_0x14b5ca=_0xacf10b[_0x318c7c(0x4dc)],_0x2f2cb5=_0x56d660[_0x318c7c(0x4da)];_0x2f2cb5[_0x318c7c(0x1ae)]=_0x45b131[_0x318c7c(0x24d)]({'init':function(_0x103975,_0x55c3ed){const _0x44c3c8=_0x318c7c;_0x103975=this[_0x44c3c8(0x514)]=new _0x103975[(_0x44c3c8(0x20b))](),typeof _0x55c3ed=='string'&&(_0x55c3ed=_0x14b5ca[_0x44c3c8(0x3d3)](_0x55c3ed));var _0x216c65=_0x103975['blockSize'],_0x20fc48=_0x216c65*0x4;_0x55c3ed[_0x44c3c8(0x25c)]>_0x20fc48&&(_0x55c3ed=_0x103975[_0x44c3c8(0x1ef)](_0x55c3ed)),_0x55c3ed['clamp']();for(var _0x11b64c=this[_0x44c3c8(0x4db)]=_0x55c3ed[_0x44c3c8(0x17c)](),_0x5a25ac=this[_0x44c3c8(0x165)]=_0x55c3ed[_0x44c3c8(0x17c)](),_0x25ac9b=_0x11b64c[_0x44c3c8(0x222)],_0x3a3da0=_0x5a25ac[_0x44c3c8(0x222)],_0x4acc2d=0x0;_0x4acc2d<_0x216c65;_0x4acc2d++)_0x25ac9b[_0x4acc2d]^=0x5c5c5c5c,_0x3a3da0[_0x4acc2d]^=0x36363636;_0x11b64c[_0x44c3c8(0x25c)]=_0x5a25ac['sigBytes']=_0x20fc48,this['reset']();},'reset':function(){const _0xe768e3=_0x318c7c;var _0x1e7eec=this[_0xe768e3(0x514)];_0x1e7eec[_0xe768e3(0x1ec)](),_0x1e7eec[_0xe768e3(0x367)](this[_0xe768e3(0x165)]);},'update':function(_0x177188){const _0x14caf3=_0x318c7c;return this[_0x14caf3(0x514)][_0x14caf3(0x367)](_0x177188),this;},'finalize':function(_0xe932c3){const _0x305c2f=_0x318c7c;var _0x124d60=this['_hasher'],_0x5c8108=_0x124d60['finalize'](_0xe932c3);_0x124d60[_0x305c2f(0x1ec)]();var _0x4c06e8=_0x124d60[_0x305c2f(0x1ef)](this[_0x305c2f(0x4db)][_0x305c2f(0x17c)]()[_0x305c2f(0x198)](_0x5c8108));return _0x4c06e8;}});}());}));}(dt)),dt['exports'];}var qt;function Dn(){const _0x361a45=_0x3b224c;return qt||(qt=0x1,function(_0x3e0aec,_0x4b3559){(function(_0x4f6965,_0x2845d0,_0x20e763){const _0x174746=_0x1276;_0x3e0aec[_0x174746(0x2fc)]=_0x2845d0(oe(),cr(),lr());}(X,function(_0x15adf7){return(function(){const _0x2cae4b=_0x1276;var _0x4e64be=_0x15adf7,_0x33e586=_0x4e64be[_0x2cae4b(0x5af)],_0x505c36=_0x33e586[_0x2cae4b(0x1d9)],_0x42fcf0=_0x33e586[_0x2cae4b(0x1e5)],_0x249d4d=_0x4e64be[_0x2cae4b(0x4da)],_0x348d16=_0x249d4d[_0x2cae4b(0x258)],_0x21bdf5=_0x249d4d[_0x2cae4b(0x225)]=_0x505c36['extend']({'cfg':_0x505c36['extend']({'keySize':0x80/0x20,'hasher':_0x348d16,'iterations':0x1}),'init':function(_0x560e6e){const _0x52749b=_0x2cae4b;this['cfg']=this[_0x52749b(0x472)][_0x52749b(0x24d)](_0x560e6e);},'compute':function(_0xfb0c80,_0x450927){const _0x3c7824=_0x2cae4b;for(var _0x9f7286,_0x266842=this[_0x3c7824(0x472)],_0xab830b=_0x266842[_0x3c7824(0x2d6)][_0x3c7824(0x4ec)](),_0x36f9b7=_0x42fcf0['create'](),_0x1cfd3d=_0x36f9b7['words'],_0x37311c=_0x266842['keySize'],_0x3e2460=_0x266842[_0x3c7824(0x4bc)];_0x1cfd3d[_0x3c7824(0x2a8)]<_0x37311c;){_0x9f7286&&_0xab830b[_0x3c7824(0x367)](_0x9f7286),_0x9f7286=_0xab830b[_0x3c7824(0x367)](_0xfb0c80)['finalize'](_0x450927),_0xab830b[_0x3c7824(0x1ec)]();for(var _0x42fbf3=0x1;_0x42fbf3<_0x3e2460;_0x42fbf3++)_0x9f7286=_0xab830b[_0x3c7824(0x1ef)](_0x9f7286),_0xab830b[_0x3c7824(0x1ec)]();_0x36f9b7['concat'](_0x9f7286);}return _0x36f9b7[_0x3c7824(0x25c)]=_0x37311c*0x4,_0x36f9b7;}});_0x4e64be[_0x2cae4b(0x225)]=function(_0x254295,_0x5cd5c1,_0x1c826b){const _0x37df6a=_0x2cae4b;return _0x21bdf5[_0x37df6a(0x4ec)](_0x1c826b)[_0x37df6a(0x370)](_0x254295,_0x5cd5c1);};}()),_0x15adf7['EvpKDF'];}));}(_t)),_t[_0x361a45(0x2fc)];}var ft={'exports':{}},zt;function wn(){const _0x512be0=_0x3b224c;return zt||(zt=0x1,function(_0xfa2a50,_0x1cd93e){(function(_0x1b8f80,_0x3dfc1c,_0x2f3718){const _0x1d1a58=_0x1276;_0xfa2a50[_0x1d1a58(0x2fc)]=_0x3dfc1c(oe(),Dn());}(X,function(_0x2c3b43){const _0x161650=_0x1276;_0x2c3b43['lib'][_0x161650(0x188)]||function(_0x893039){const _0x484ecb=_0x161650;var _0x53b839=_0x2c3b43,_0x531d1b=_0x53b839['lib'],_0x28ed6f=_0x531d1b['Base'],_0x4fb6b7=_0x531d1b[_0x484ecb(0x1e5)],_0x10851b=_0x531d1b['BufferedBlockAlgorithm'],_0x4117d3=_0x53b839[_0x484ecb(0x551)];_0x4117d3['Utf8'];var _0x3d5bda=_0x4117d3[_0x484ecb(0x5d6)],_0x538178=_0x53b839['algo'],_0x63767=_0x538178[_0x484ecb(0x225)],_0x2aa357=_0x531d1b[_0x484ecb(0x188)]=_0x10851b[_0x484ecb(0x24d)]({'cfg':_0x28ed6f[_0x484ecb(0x24d)](),'createEncryptor':function(_0xb1e405,_0x2ad383){const _0x1eae12=_0x484ecb;return this[_0x1eae12(0x4ec)](this[_0x1eae12(0x449)],_0xb1e405,_0x2ad383);},'createDecryptor':function(_0x102ecf,_0x24d547){const _0x5782ed=_0x484ecb;return this[_0x5782ed(0x4ec)](this[_0x5782ed(0x219)],_0x102ecf,_0x24d547);},'init':function(_0x408e48,_0x16bf6f,_0x287dc1){const _0x178f21=_0x484ecb;this['cfg']=this['cfg']['extend'](_0x287dc1),this[_0x178f21(0x190)]=_0x408e48,this[_0x178f21(0x58c)]=_0x16bf6f,this[_0x178f21(0x1ec)]();},'reset':function(){const _0x5b8701=_0x484ecb;_0x10851b[_0x5b8701(0x1ec)]['call'](this),this['_doReset']();},'process':function(_0x278b87){const _0x34137f=_0x484ecb;return this[_0x34137f(0x212)](_0x278b87),this[_0x34137f(0x3a9)]();},'finalize':function(_0x396aa4){const _0x11e4ab=_0x484ecb;_0x396aa4&&this[_0x11e4ab(0x212)](_0x396aa4);var _0x324f4b=this['_doFinalize']();return _0x324f4b;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x1db2bb(_0x35bdb3){const _0x55b72f=_0x1276;return typeof _0x35bdb3==_0x55b72f(0x404)?_0x1a90b6:_0x4e04ee;}return function(_0x15fa35){return{'encrypt':function(_0x447db4,_0x4c4b26,_0x5b5ab2){const _0x136dc5=_0x1276;return _0x1db2bb(_0x4c4b26)[_0x136dc5(0x42f)](_0x15fa35,_0x447db4,_0x4c4b26,_0x5b5ab2);},'decrypt':function(_0x4d5879,_0x3af09e,_0x269176){const _0x52e580=_0x1276;return _0x1db2bb(_0x3af09e)[_0x52e580(0x520)](_0x15fa35,_0x4d5879,_0x3af09e,_0x269176);}};};}())});_0x531d1b[_0x484ecb(0x41d)]=_0x2aa357['extend']({'_doFinalize':function(){const _0x1ba00c=_0x484ecb;var _0x40324e=this[_0x1ba00c(0x3a9)](!0x0);return _0x40324e;},'blockSize':0x1});var _0x137a7d=_0x53b839[_0x484ecb(0x253)]={},_0x587c49=_0x531d1b[_0x484ecb(0x48b)]=_0x28ed6f['extend']({'createEncryptor':function(_0x5e6f09,_0x305d6e){const _0x145870=_0x484ecb;return this[_0x145870(0x32d)][_0x145870(0x4ec)](_0x5e6f09,_0x305d6e);},'createDecryptor':function(_0x3d268b,_0x573ba6){const _0x11d078=_0x484ecb;return this[_0x11d078(0x563)][_0x11d078(0x4ec)](_0x3d268b,_0x573ba6);},'init':function(_0x3fe120,_0x22c26c){const _0x5c75f9=_0x484ecb;this['_cipher']=_0x3fe120,this[_0x5c75f9(0x46d)]=_0x22c26c;}}),_0x3e57e5=_0x137a7d['CBC']=(function(){const _0x1811b9=_0x484ecb;var _0x4e613c=_0x587c49[_0x1811b9(0x24d)]();_0x4e613c['Encryptor']=_0x4e613c['extend']({'processBlock':function(_0x53cd45,_0x56b6d1){const _0x1f9045=_0x1811b9;var _0x5a9879=this['_cipher'],_0x46823e=_0x5a9879['blockSize'];_0x51a426[_0x1f9045(0x537)](this,_0x53cd45,_0x56b6d1,_0x46823e),_0x5a9879[_0x1f9045(0x4e9)](_0x53cd45,_0x56b6d1),this[_0x1f9045(0x5e1)]=_0x53cd45['slice'](_0x56b6d1,_0x56b6d1+_0x46823e);}}),_0x4e613c[_0x1811b9(0x563)]=_0x4e613c[_0x1811b9(0x24d)]({'processBlock':function(_0x14872a,_0x276025){const _0x4cdd50=_0x1811b9;var _0x319580=this[_0x4cdd50(0x436)],_0x39d801=_0x319580[_0x4cdd50(0x533)],_0x14a8fd=_0x14872a[_0x4cdd50(0x304)](_0x276025,_0x276025+_0x39d801);_0x319580[_0x4cdd50(0x316)](_0x14872a,_0x276025),_0x51a426['call'](this,_0x14872a,_0x276025,_0x39d801),this[_0x4cdd50(0x5e1)]=_0x14a8fd;}});function _0x51a426(_0x316390,_0x5c67a3,_0x4f7dc4){const _0x56ad5d=_0x1811b9;var _0x4a4368,_0x3d3606=this[_0x56ad5d(0x46d)];_0x3d3606?(_0x4a4368=_0x3d3606,this[_0x56ad5d(0x46d)]=_0x893039):_0x4a4368=this[_0x56ad5d(0x5e1)];for(var _0x43d4f9=0x0;_0x43d4f9<_0x4f7dc4;_0x43d4f9++)_0x316390[_0x5c67a3+_0x43d4f9]^=_0x4a4368[_0x43d4f9];}return _0x4e613c;}()),_0x9786c0=_0x53b839['pad']={},_0x33a805=_0x9786c0['Pkcs7']={'pad':function(_0x277e45,_0x5a7128){const _0xc0b31e=_0x484ecb;for(var _0x24d5cc=_0x5a7128*0x4,_0x374641=_0x24d5cc-_0x277e45[_0xc0b31e(0x25c)]%_0x24d5cc,_0x1e0351=_0x374641<<0x18|_0x374641<<0x10|_0x374641<<0x8|_0x374641,_0x290e8a=[],_0xc3f7f1=0x0;_0xc3f7f1<_0x374641;_0xc3f7f1+=0x4)_0x290e8a[_0xc0b31e(0x1a8)](_0x1e0351);var _0x128535=_0x4fb6b7[_0xc0b31e(0x4ec)](_0x290e8a,_0x374641);_0x277e45[_0xc0b31e(0x198)](_0x128535);},'unpad':function(_0x50575d){const _0x42ffad=_0x484ecb;var _0x22dd1b=_0x50575d[_0x42ffad(0x222)][_0x50575d[_0x42ffad(0x25c)]-0x1>>>0x2]&0xff;_0x50575d[_0x42ffad(0x25c)]-=_0x22dd1b;}};_0x531d1b[_0x484ecb(0x159)]=_0x2aa357['extend']({'cfg':_0x2aa357[_0x484ecb(0x472)][_0x484ecb(0x24d)]({'mode':_0x3e57e5,'padding':_0x33a805}),'reset':function(){const _0x95f090=_0x484ecb;var _0x1546b;_0x2aa357[_0x95f090(0x1ec)][_0x95f090(0x537)](this);var _0x34b913=this['cfg'],_0x433cb1=_0x34b913['iv'],_0x4131f6=_0x34b913[_0x95f090(0x253)];this[_0x95f090(0x190)]==this[_0x95f090(0x449)]?_0x1546b=_0x4131f6['createEncryptor']:(_0x1546b=_0x4131f6[_0x95f090(0x226)],this[_0x95f090(0x46c)]=0x1),this['_mode']&&this[_0x95f090(0x28a)]['__creator']==_0x1546b?this['_mode'][_0x95f090(0x20b)](this,_0x433cb1&&_0x433cb1[_0x95f090(0x222)]):(this['_mode']=_0x1546b[_0x95f090(0x537)](_0x4131f6,this,_0x433cb1&&_0x433cb1['words']),this['_mode'][_0x95f090(0x586)]=_0x1546b);},'_doProcessBlock':function(_0x194ac8,_0x134c90){const _0x3d6f60=_0x484ecb;this[_0x3d6f60(0x28a)][_0x3d6f60(0x5a8)](_0x194ac8,_0x134c90);},'_doFinalize':function(){const _0x1a235a=_0x484ecb;var _0x3e1815,_0xafc31d=this[_0x1a235a(0x472)][_0x1a235a(0x195)];return this[_0x1a235a(0x190)]==this[_0x1a235a(0x449)]?(_0xafc31d[_0x1a235a(0x5d1)](this[_0x1a235a(0x3b7)],this[_0x1a235a(0x533)]),_0x3e1815=this[_0x1a235a(0x3a9)](!0x0)):(_0x3e1815=this[_0x1a235a(0x3a9)](!0x0),_0xafc31d[_0x1a235a(0x310)](_0x3e1815)),_0x3e1815;},'blockSize':0x80/0x20});var _0x594195=_0x531d1b[_0x484ecb(0x42e)]=_0x28ed6f['extend']({'init':function(_0x24f478){const _0xcaac72=_0x484ecb;this[_0xcaac72(0x315)](_0x24f478);},'toString':function(_0x3c50e6){const _0x52fe97=_0x484ecb;return(_0x3c50e6||this['formatter'])[_0x52fe97(0x52a)](this);}}),_0x37650c=_0x53b839[_0x484ecb(0x271)]={},_0x1d4a0d=_0x37650c[_0x484ecb(0x2d3)]={'stringify':function(_0x198e8e){const _0x3a2767=_0x484ecb;var _0x170223,_0x52d28c=_0x198e8e[_0x3a2767(0x1e2)],_0x3943af=_0x198e8e['salt'];return _0x3943af?_0x170223=_0x4fb6b7['create']([0x53616c74,0x65645f5f])[_0x3a2767(0x198)](_0x3943af)[_0x3a2767(0x198)](_0x52d28c):_0x170223=_0x52d28c,_0x170223[_0x3a2767(0x4cf)](_0x3d5bda);},'parse':function(_0x571311){const _0x57a775=_0x484ecb;var _0x491c3c,_0x18ea57=_0x3d5bda[_0x57a775(0x3d3)](_0x571311),_0x52823b=_0x18ea57[_0x57a775(0x222)];return _0x52823b[0x0]==0x53616c74&&_0x52823b[0x1]==0x65645f5f&&(_0x491c3c=_0x4fb6b7['create'](_0x52823b[_0x57a775(0x304)](0x2,0x4)),_0x52823b[_0x57a775(0x45c)](0x0,0x4),_0x18ea57[_0x57a775(0x25c)]-=0x10),_0x594195[_0x57a775(0x4ec)]({'ciphertext':_0x18ea57,'salt':_0x491c3c});}},_0x4e04ee=_0x531d1b[_0x484ecb(0x2c2)]=_0x28ed6f[_0x484ecb(0x24d)]({'cfg':_0x28ed6f[_0x484ecb(0x24d)]({'format':_0x1d4a0d}),'encrypt':function(_0x1f4236,_0x161455,_0x15250a,_0x3796d5){const _0x55751d=_0x484ecb;_0x3796d5=this[_0x55751d(0x472)]['extend'](_0x3796d5);var _0x4e2fb5=_0x1f4236[_0x55751d(0x5bc)](_0x15250a,_0x3796d5),_0x5e73a1=_0x4e2fb5[_0x55751d(0x1ef)](_0x161455),_0x207e6b=_0x4e2fb5['cfg'];return _0x594195['create']({'ciphertext':_0x5e73a1,'key':_0x15250a,'iv':_0x207e6b['iv'],'algorithm':_0x1f4236,'mode':_0x207e6b[_0x55751d(0x253)],'padding':_0x207e6b[_0x55751d(0x195)],'blockSize':_0x1f4236[_0x55751d(0x533)],'formatter':_0x3796d5['format']});},'decrypt':function(_0x42a482,_0x4de9ed,_0x511e82,_0x1adac4){const _0x125c89=_0x484ecb;_0x1adac4=this[_0x125c89(0x472)][_0x125c89(0x24d)](_0x1adac4),_0x4de9ed=this['_parse'](_0x4de9ed,_0x1adac4[_0x125c89(0x271)]);var _0x140f13=_0x42a482['createDecryptor'](_0x511e82,_0x1adac4)[_0x125c89(0x1ef)](_0x4de9ed['ciphertext']);return _0x140f13;},'_parse':function(_0x4f98d7,_0x561bc4){const _0x8e415c=_0x484ecb;return typeof _0x4f98d7==_0x8e415c(0x404)?_0x561bc4[_0x8e415c(0x3d3)](_0x4f98d7,this):_0x4f98d7;}}),_0x8f9d48=_0x53b839[_0x484ecb(0x43b)]={},_0x1418e1=_0x8f9d48[_0x484ecb(0x2d3)]={'execute':function(_0x4af9c7,_0x43c269,_0x398a7f,_0x2942f8,_0x357fe8){const _0x16119b=_0x484ecb;if(_0x2942f8||(_0x2942f8=_0x4fb6b7[_0x16119b(0x4cb)](0x40/0x8)),_0x357fe8)var _0x124c44=_0x63767['create']({'keySize':_0x43c269+_0x398a7f,'hasher':_0x357fe8})[_0x16119b(0x370)](_0x4af9c7,_0x2942f8);else var _0x124c44=_0x63767['create']({'keySize':_0x43c269+_0x398a7f})[_0x16119b(0x370)](_0x4af9c7,_0x2942f8);var _0x7ac0a8=_0x4fb6b7[_0x16119b(0x4ec)](_0x124c44[_0x16119b(0x222)]['slice'](_0x43c269),_0x398a7f*0x4);return _0x124c44['sigBytes']=_0x43c269*0x4,_0x594195[_0x16119b(0x4ec)]({'key':_0x124c44,'iv':_0x7ac0a8,'salt':_0x2942f8});}},_0x1a90b6=_0x531d1b[_0x484ecb(0x3b0)]=_0x4e04ee['extend']({'cfg':_0x4e04ee[_0x484ecb(0x472)][_0x484ecb(0x24d)]({'kdf':_0x1418e1}),'encrypt':function(_0x1f212b,_0x5955a7,_0x107272,_0xe8c142){const _0x3f2294=_0x484ecb;_0xe8c142=this[_0x3f2294(0x472)]['extend'](_0xe8c142);var _0xde8128=_0xe8c142[_0x3f2294(0x43b)][_0x3f2294(0x506)](_0x107272,_0x1f212b[_0x3f2294(0x4eb)],_0x1f212b[_0x3f2294(0x213)],_0xe8c142[_0x3f2294(0x15b)],_0xe8c142[_0x3f2294(0x2d6)]);_0xe8c142['iv']=_0xde8128['iv'];var _0x6a8be7=_0x4e04ee['encrypt'][_0x3f2294(0x537)](this,_0x1f212b,_0x5955a7,_0xde8128[_0x3f2294(0x217)],_0xe8c142);return _0x6a8be7['mixIn'](_0xde8128),_0x6a8be7;},'decrypt':function(_0x2c4700,_0x2a89e7,_0x295053,_0x348d88){const _0x347b18=_0x484ecb;_0x348d88=this['cfg'][_0x347b18(0x24d)](_0x348d88),_0x2a89e7=this['_parse'](_0x2a89e7,_0x348d88['format']);var _0x471524=_0x348d88[_0x347b18(0x43b)][_0x347b18(0x506)](_0x295053,_0x2c4700[_0x347b18(0x4eb)],_0x2c4700[_0x347b18(0x213)],_0x2a89e7[_0x347b18(0x15b)],_0x348d88[_0x347b18(0x2d6)]);_0x348d88['iv']=_0x471524['iv'];var _0x36a0c9=_0x4e04ee[_0x347b18(0x520)][_0x347b18(0x537)](this,_0x2c4700,_0x2a89e7,_0x471524[_0x347b18(0x217)],_0x348d88);return _0x36a0c9;}});}();}));}(ft)),ft[_0x512be0(0x2fc)];}(function(_0x4d9bf8,_0x57f3a0){(function(_0x35128e,_0x53d5b8,_0x396366){const _0x4922d=_0x1276;_0x4d9bf8[_0x4922d(0x2fc)]=_0x53d5b8(oe(),On(),ar(),Dn(),wn());}(X,function(_0x577be5){return(function(){const _0x22607a=_0x1276;var _0x538cc0=_0x577be5,_0xd40ee5=_0x538cc0[_0x22607a(0x5af)],_0xa78883=_0xd40ee5['BlockCipher'],_0x5462e5=_0x538cc0[_0x22607a(0x4da)],_0x1b6d98=[],_0x3542b4=[],_0x244c49=[],_0x4f98a4=[],_0x53dfe4=[],_0x1480d6=[],_0x4a3649=[],_0x4e3753=[],_0xe54d93=[],_0x47c4e0=[];(function(){for(var _0x294202=[],_0x373b8f=0x0;_0x373b8f<0x100;_0x373b8f++)_0x373b8f<0x80?_0x294202[_0x373b8f]=_0x373b8f<<0x1:_0x294202[_0x373b8f]=_0x373b8f<<0x1^0x11b;for(var _0x92ff65=0x0,_0xb60474=0x0,_0x373b8f=0x0;_0x373b8f<0x100;_0x373b8f++){var _0x18c156=_0xb60474^_0xb60474<<0x1^_0xb60474<<0x2^_0xb60474<<0x3^_0xb60474<<0x4;_0x18c156=_0x18c156>>>0x8^_0x18c156&0xff^0x63,_0x1b6d98[_0x92ff65]=_0x18c156,_0x3542b4[_0x18c156]=_0x92ff65;var _0x1d027a=_0x294202[_0x92ff65],_0x5361e5=_0x294202[_0x1d027a],_0x4eb7b1=_0x294202[_0x5361e5],_0x52e554=_0x294202[_0x18c156]*0x101^_0x18c156*0x1010100;_0x244c49[_0x92ff65]=_0x52e554<<0x18|_0x52e554>>>0x8,_0x4f98a4[_0x92ff65]=_0x52e554<<0x10|_0x52e554>>>0x10,_0x53dfe4[_0x92ff65]=_0x52e554<<0x8|_0x52e554>>>0x18,_0x1480d6[_0x92ff65]=_0x52e554;var _0x52e554=_0x4eb7b1*0x1010101^_0x5361e5*0x10001^_0x1d027a*0x101^_0x92ff65*0x1010100;_0x4a3649[_0x18c156]=_0x52e554<<0x18|_0x52e554>>>0x8,_0x4e3753[_0x18c156]=_0x52e554<<0x10|_0x52e554>>>0x10,_0xe54d93[_0x18c156]=_0x52e554<<0x8|_0x52e554>>>0x18,_0x47c4e0[_0x18c156]=_0x52e554,_0x92ff65?(_0x92ff65=_0x1d027a^_0x294202[_0x294202[_0x294202[_0x4eb7b1^_0x1d027a]]],_0xb60474^=_0x294202[_0x294202[_0xb60474]]):_0x92ff65=_0xb60474=0x1;}}());var _0x4764b0=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x241723=_0x5462e5[_0x22607a(0x408)]=_0xa78883[_0x22607a(0x24d)]({'_doReset':function(){const _0x40d77a=_0x22607a;var _0x23a674;if(!(this['_nRounds']&&this[_0x40d77a(0x3c5)]===this[_0x40d77a(0x58c)])){for(var _0x1c31ec=this[_0x40d77a(0x3c5)]=this[_0x40d77a(0x58c)],_0x93f636=_0x1c31ec[_0x40d77a(0x222)],_0x567ec4=_0x1c31ec['sigBytes']/0x4,_0x4f63f2=this['_nRounds']=_0x567ec4+0x6,_0x4d484b=(_0x4f63f2+0x1)*0x4,_0x123ce9=this[_0x40d77a(0x44d)]=[],_0x30cc4b=0x0;_0x30cc4b<_0x4d484b;_0x30cc4b++)_0x30cc4b<_0x567ec4?_0x123ce9[_0x30cc4b]=_0x93f636[_0x30cc4b]:(_0x23a674=_0x123ce9[_0x30cc4b-0x1],_0x30cc4b%_0x567ec4?_0x567ec4>0x6&&_0x30cc4b%_0x567ec4==0x4&&(_0x23a674=_0x1b6d98[_0x23a674>>>0x18]<<0x18|_0x1b6d98[_0x23a674>>>0x10&0xff]<<0x10|_0x1b6d98[_0x23a674>>>0x8&0xff]<<0x8|_0x1b6d98[_0x23a674&0xff]):(_0x23a674=_0x23a674<<0x8|_0x23a674>>>0x18,_0x23a674=_0x1b6d98[_0x23a674>>>0x18]<<0x18|_0x1b6d98[_0x23a674>>>0x10&0xff]<<0x10|_0x1b6d98[_0x23a674>>>0x8&0xff]<<0x8|_0x1b6d98[_0x23a674&0xff],_0x23a674^=_0x4764b0[_0x30cc4b/_0x567ec4|0x0]<<0x18),_0x123ce9[_0x30cc4b]=_0x123ce9[_0x30cc4b-_0x567ec4]^_0x23a674);for(var _0x44e183=this[_0x40d77a(0x23c)]=[],_0x3f6575=0x0;_0x3f6575<_0x4d484b;_0x3f6575++){var _0x30cc4b=_0x4d484b-_0x3f6575;if(_0x3f6575%0x4)var _0x23a674=_0x123ce9[_0x30cc4b];else var _0x23a674=_0x123ce9[_0x30cc4b-0x4];_0x3f6575<0x4||_0x30cc4b<=0x4?_0x44e183[_0x3f6575]=_0x23a674:_0x44e183[_0x3f6575]=_0x4a3649[_0x1b6d98[_0x23a674>>>0x18]]^_0x4e3753[_0x1b6d98[_0x23a674>>>0x10&0xff]]^_0xe54d93[_0x1b6d98[_0x23a674>>>0x8&0xff]]^_0x47c4e0[_0x1b6d98[_0x23a674&0xff]];}}},'encryptBlock':function(_0x4ae653,_0x53136e){const _0x150f0c=_0x22607a;this[_0x150f0c(0x32e)](_0x4ae653,_0x53136e,this[_0x150f0c(0x44d)],_0x244c49,_0x4f98a4,_0x53dfe4,_0x1480d6,_0x1b6d98);},'decryptBlock':function(_0x3910cb,_0x5711c1){var _0x408b57=_0x3910cb[_0x5711c1+0x1];_0x3910cb[_0x5711c1+0x1]=_0x3910cb[_0x5711c1+0x3],_0x3910cb[_0x5711c1+0x3]=_0x408b57,this['_doCryptBlock'](_0x3910cb,_0x5711c1,this['_invKeySchedule'],_0x4a3649,_0x4e3753,_0xe54d93,_0x47c4e0,_0x3542b4);var _0x408b57=_0x3910cb[_0x5711c1+0x1];_0x3910cb[_0x5711c1+0x1]=_0x3910cb[_0x5711c1+0x3],_0x3910cb[_0x5711c1+0x3]=_0x408b57;},'_doCryptBlock':function(_0x192160,_0x358d5b,_0x271c50,_0x2a7c1e,_0x26023b,_0x492163,_0x24f1e2,_0x2df0f7){for(var _0x9bf5ce=this['_nRounds'],_0x4d5afb=_0x192160[_0x358d5b]^_0x271c50[0x0],_0x1f8860=_0x192160[_0x358d5b+0x1]^_0x271c50[0x1],_0x2b4821=_0x192160[_0x358d5b+0x2]^_0x271c50[0x2],_0x2ef7f9=_0x192160[_0x358d5b+0x3]^_0x271c50[0x3],_0x46de56=0x4,_0x23cc54=0x1;_0x23cc54<_0x9bf5ce;_0x23cc54++){var _0x120f58=_0x2a7c1e[_0x4d5afb>>>0x18]^_0x26023b[_0x1f8860>>>0x10&0xff]^_0x492163[_0x2b4821>>>0x8&0xff]^_0x24f1e2[_0x2ef7f9&0xff]^_0x271c50[_0x46de56++],_0x3f7486=_0x2a7c1e[_0x1f8860>>>0x18]^_0x26023b[_0x2b4821>>>0x10&0xff]^_0x492163[_0x2ef7f9>>>0x8&0xff]^_0x24f1e2[_0x4d5afb&0xff]^_0x271c50[_0x46de56++],_0x49a566=_0x2a7c1e[_0x2b4821>>>0x18]^_0x26023b[_0x2ef7f9>>>0x10&0xff]^_0x492163[_0x4d5afb>>>0x8&0xff]^_0x24f1e2[_0x1f8860&0xff]^_0x271c50[_0x46de56++],_0x1a0a4b=_0x2a7c1e[_0x2ef7f9>>>0x18]^_0x26023b[_0x4d5afb>>>0x10&0xff]^_0x492163[_0x1f8860>>>0x8&0xff]^_0x24f1e2[_0x2b4821&0xff]^_0x271c50[_0x46de56++];_0x4d5afb=_0x120f58,_0x1f8860=_0x3f7486,_0x2b4821=_0x49a566,_0x2ef7f9=_0x1a0a4b;}var _0x120f58=(_0x2df0f7[_0x4d5afb>>>0x18]<<0x18|_0x2df0f7[_0x1f8860>>>0x10&0xff]<<0x10|_0x2df0f7[_0x2b4821>>>0x8&0xff]<<0x8|_0x2df0f7[_0x2ef7f9&0xff])^_0x271c50[_0x46de56++],_0x3f7486=(_0x2df0f7[_0x1f8860>>>0x18]<<0x18|_0x2df0f7[_0x2b4821>>>0x10&0xff]<<0x10|_0x2df0f7[_0x2ef7f9>>>0x8&0xff]<<0x8|_0x2df0f7[_0x4d5afb&0xff])^_0x271c50[_0x46de56++],_0x49a566=(_0x2df0f7[_0x2b4821>>>0x18]<<0x18|_0x2df0f7[_0x2ef7f9>>>0x10&0xff]<<0x10|_0x2df0f7[_0x4d5afb>>>0x8&0xff]<<0x8|_0x2df0f7[_0x1f8860&0xff])^_0x271c50[_0x46de56++],_0x1a0a4b=(_0x2df0f7[_0x2ef7f9>>>0x18]<<0x18|_0x2df0f7[_0x4d5afb>>>0x10&0xff]<<0x10|_0x2df0f7[_0x1f8860>>>0x8&0xff]<<0x8|_0x2df0f7[_0x2b4821&0xff])^_0x271c50[_0x46de56++];_0x192160[_0x358d5b]=_0x120f58,_0x192160[_0x358d5b+0x1]=_0x3f7486,_0x192160[_0x358d5b+0x2]=_0x49a566,_0x192160[_0x358d5b+0x3]=_0x1a0a4b;},'keySize':0x100/0x20});_0x538cc0[_0x22607a(0x408)]=_0xa78883[_0x22607a(0x14b)](_0x241723);}()),_0x577be5['AES'];}));}(yn));var hr=yn[_0x3b224c(0x2fc)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x136214,_0x14e5ab){(function(_0xf17e5f,_0x2b4c51){const _0xc888d3=_0x1276;_0x136214[_0xc888d3(0x2fc)]=_0x2b4c51(oe());}(X,function(_0x5bbfed){const _0x4e3b92=_0x1276;return _0x5bbfed[_0x4e3b92(0x551)][_0x4e3b92(0x4dc)];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x447abc,_0x17164e){(function(_0x22f23a,_0x4822cf){const _0x1c3e25=_0x1276;_0x447abc[_0x1c3e25(0x2fc)]=_0x4822cf(oe());}(X,function(_0x54e990){const _0x4add5a=_0x1276;return(function(){const _0x101294=_0x1276;if(typeof ArrayBuffer=='function'){var _0x361122=_0x54e990,_0x247b7d=_0x361122[_0x101294(0x5af)],_0x4b846e=_0x247b7d[_0x101294(0x1e5)],_0x2c7411=_0x4b846e[_0x101294(0x20b)],_0x1cafe2=_0x4b846e[_0x101294(0x20b)]=function(_0xfdd239){const _0x19dfa0=_0x101294;if(_0xfdd239 instanceof ArrayBuffer&&(_0xfdd239=new Uint8Array(_0xfdd239)),(_0xfdd239 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xfdd239 instanceof Uint8ClampedArray||_0xfdd239 instanceof Int16Array||_0xfdd239 instanceof Uint16Array||_0xfdd239 instanceof Int32Array||_0xfdd239 instanceof Uint32Array||_0xfdd239 instanceof Float32Array||_0xfdd239 instanceof Float64Array)&&(_0xfdd239=new Uint8Array(_0xfdd239[_0x19dfa0(0x443)],_0xfdd239['byteOffset'],_0xfdd239[_0x19dfa0(0x426)])),_0xfdd239 instanceof Uint8Array){for(var _0x3a65e9=_0xfdd239['byteLength'],_0x82b3a0=[],_0x4976b3=0x0;_0x4976b3<_0x3a65e9;_0x4976b3++)_0x82b3a0[_0x4976b3>>>0x2]|=_0xfdd239[_0x4976b3]<<0x18-_0x4976b3%0x4*0x8;_0x2c7411[_0x19dfa0(0x537)](this,_0x82b3a0,_0x3a65e9);}else _0x2c7411[_0x19dfa0(0x44a)](this,arguments);};_0x1cafe2[_0x101294(0x1af)]=_0x4b846e;}}()),_0x54e990[_0x4add5a(0x5af)][_0x4add5a(0x1e5)];}));}(Un));var vr=Un['exports'];const mr=xe(vr);var Mn={'exports':{}};(function(_0x5236a5,_0x56b7eb){(function(_0x56fab5,_0x50ec38,_0x4d5fcf){const _0x14d5ee=_0x1276;_0x5236a5[_0x14d5ee(0x2fc)]=_0x50ec38(oe(),wn());}(X,function(_0x42d4e8){const _0xa1b5e3=_0x1276;return _0x42d4e8[_0xa1b5e3(0x5d1)][_0xa1b5e3(0x16a)]={'pad':function(){},'unpad':function(){}},_0x42d4e8[_0xa1b5e3(0x5d1)][_0xa1b5e3(0x16a)];}));}(Mn));var Sr=Mn[_0x3b224c(0x2fc)];const pr=xe(Sr);function gr(_0x31a7c6,_0xde70ab){const _0x307c14=_0x3b224c,_0xb916f0=_0xde70ab-_0x31a7c6[_0x307c14(0x2a8)]%_0xde70ab,_0x41f739=String[_0x307c14(0x156)](_0xb916f0)[_0x307c14(0x2cb)](_0xb916f0);return _0x31a7c6+_0x41f739;}function Ir(_0x814294,_0x29e3fa){const _0x26e2db=_0x3b224c,_0xbcd6df=mr[_0x26e2db(0x4cb)](0x10),_0x30006f=gr(_0x814294,0x10),_0x1626b0=_r[_0x26e2db(0x42f)](fr[_0x26e2db(0x3d3)](_0x30006f),Xt[_0x26e2db(0x3d3)](_0x29e3fa),{'iv':_0xbcd6df,'padding':pr});return _0xbcd6df[_0x26e2db(0x198)](_0x1626b0['ciphertext'])[_0x26e2db(0x4cf)](Xt);}function Cr(){const _0x37d7c1=_0x3b224c,_0x4b804b=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x37d7c1(0x232)];if(_0x4b804b){const _0x25fbff={'time':Math[_0x37d7c1(0x318)](Date[_0x37d7c1(0x419)]()/0x3e8),'domain':location[_0x37d7c1(0x2ea)]};return Ir(JSON[_0x37d7c1(0x52a)](_0x25fbff),_0x4b804b);}}var Er=Object[_0x3b224c(0x209)],br=Object[_0x3b224c(0x233)],Tr=(_0x238ff1,_0x21ec5a,_0x5f15df,_0x10b48b)=>{const _0x3e2279=_0x3b224c;for(var _0x457b44=_0x10b48b>0x1?void 0x0:_0x10b48b?br(_0x21ec5a,_0x5f15df):_0x21ec5a,_0xb0cedd=_0x238ff1[_0x3e2279(0x2a8)]-0x1,_0x3053a5;_0xb0cedd>=0x0;_0xb0cedd--)(_0x3053a5=_0x238ff1[_0xb0cedd])&&(_0x457b44=(_0x10b48b?_0x3053a5(_0x21ec5a,_0x5f15df,_0x457b44):_0x3053a5(_0x457b44))||_0x457b44);return _0x10b48b&&_0x457b44&&Er(_0x21ec5a,_0x5f15df,_0x457b44),_0x457b44;},Rr=(_0x2c42bc,_0x929c03)=>(_0x1920f7,_0x56a475)=>_0x929c03(_0x1920f7,_0x56a475,_0x2c42bc);let Ye=class{constructor(_0x14840f){const _0x46aa6d=_0x3b224c;this['_httpService']=_0x14840f,this[_0x46aa6d(0x5a0)]();}[_0x3b224c(0x5a0)](){const _0x31a209=_0x3b224c;this[_0x31a209(0x4f3)][_0x31a209(0x517)]({'interceptor':(_0x44c556,_0xcd340c)=>{const _0x56a388=_0x31a209,_0x5aa69f=_0x44c556['headers'],_0xc901f2=Cr();return _0xc901f2&&_0x5aa69f[_0x56a388(0x437)](_0x56a388(0x47d),_0xc901f2),_0xcd340c(_0x44c556);}});}};Ye=Tr([Rr(0x0,a[_0x3b224c(0x556)](Z['HTTPService']))],Ye);var yr=Object[_0x3b224c(0x209)],Or=Object[_0x3b224c(0x233)],Dr=(_0x61827b,_0x1eff99,_0x3656f3,_0x4734ad)=>{for(var _0x337164=_0x4734ad>0x1?void 0x0:_0x4734ad?Or(_0x1eff99,_0x3656f3):_0x1eff99,_0x3dfa26=_0x61827b['length']-0x1,_0x49f6a4;_0x3dfa26>=0x0;_0x3dfa26--)(_0x49f6a4=_0x61827b[_0x3dfa26])&&(_0x337164=(_0x4734ad?_0x49f6a4(_0x1eff99,_0x3656f3,_0x337164):_0x49f6a4(_0x337164))||_0x337164);return _0x4734ad&&_0x337164&&yr(_0x1eff99,_0x3656f3,_0x337164),_0x337164;},vt=(_0x56c93d,_0x3b8c6d)=>(_0x80e64c,_0x28c3db)=>_0x3b8c6d(_0x80e64c,_0x28c3db,_0x56c93d);const wr=['image/png',_0x3b224c(0x26d),_0x3b224c(0x208),'image/gif',_0x3b224c(0x43e)],Pr=0x5*0x400*0x400,Ur=_0x3b224c(0x256),Mr=_0x3b224c(0x3ae),Ar=_0x3b224c(0x439),Nr='/universer-api/file/{fileID}/sign-url';exports[_0x3b224c(0x30a)]=class{constructor(_0x2bf5a1,_0x396441,_0x3493de){const _0x136349=_0x3b224c;I(this,_0x136349(0x3ec),0x0),I(this,_0x136349(0x5b0),new A[(_0x136349(0x13f))]()),I(this,_0x136349(0x4a4),this[_0x136349(0x5b0)]),I(this,_0x136349(0x2e1),new Map()),(this[_0x136349(0x4f3)]=_0x2bf5a1,this[_0x136349(0x142)]=_0x396441,this[_0x136349(0x15e)]=_0x3493de);}[_0x3b224c(0x475)](_0x4159a7){const _0x2be15e=_0x3b224c;this[_0x2be15e(0x3ec)]=_0x4159a7,this[_0x2be15e(0x5b0)][_0x2be15e(0x1e1)](_0x4159a7);}['getImageSourceCache'](_0x450774,_0x4a3ccc){const _0x3c912d=_0x3b224c;if(_0x4a3ccc===ne[_0x3c912d(0x34d)][_0x3c912d(0x4d9)]){const _0x36faea=new Image();return _0x36faea[_0x3c912d(0x3bf)]=_0x450774,_0x36faea;}return this['_imageSourceCache'][_0x3c912d(0x273)](_0x450774);}[_0x3b224c(0x3f5)](_0x7e3e77,_0x2c6422,_0x5ebf5a){const _0x4a924a=_0x3b224c;_0x2c6422===ne['ImageSourceType'][_0x4a924a(0x4d9)]||_0x5ebf5a==null||this[_0x4a924a(0x2e1)][_0x4a924a(0x437)](_0x7e3e77,_0x5ebf5a);}async[_0x3b224c(0x228)](_0x72d9de){const _0x5ab8df=_0x3b224c;try{const _0x153fbc=this['_replaceFileID'](this[_0x5ab8df(0x409)](),''+_0x72d9de),_0x5137b0=(await this[_0x5ab8df(0x4f3)][_0x5ab8df(0x273)](_0x153fbc))[_0x5ab8df(0x4ce)];if(_0x5137b0['error']&&_0x5137b0[_0x5ab8df(0x423)][_0x5ab8df(0x4ef)]===cn['OK']){const _0x2e4b37=new URL(_0x5137b0['url'],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x5ab8df(0x1d2)](_0x2e4b37);}return Promise[_0x5ab8df(0x18c)](_0x5137b0[_0x5ab8df(0x423)]);}catch(_0x1484c7){return Promise[_0x5ab8df(0x18c)](_0x1484c7);}}async[_0x3b224c(0x19a)](_0x59398a){const _0x1c0130=_0x3b224c;let _0x59bb0c='';if(!wr[_0x1c0130(0x254)](_0x59398a[_0x1c0130(0x5bb)]))return this['_decreaseWaiting'](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)][_0x1c0130(0x34f)]));if(_0x59398a['size']>Pr)return this[_0x1c0130(0x196)](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)][_0x1c0130(0x37d)]));try{const _0x5d6d5c=new FormData();_0x5d6d5c[_0x1c0130(0x17f)](_0x1c0130(0x43c),_0x59398a);const _0x2b2d3c=this[_0x1c0130(0x15e)][_0x1c0130(0x499)](),_0x5d617e=_0x2b2d3c==null?void 0x0:_0x2b2d3c[_0x1c0130(0x22d)]();if(!_0x5d617e)throw new Error(_0x1c0130(0x149));const _0xefe2e3=this['_getUploadFileURL']()+_0x1c0130(0x287)+_0x59398a['size'][_0x1c0130(0x4cf)]()+_0x1c0130(0x28b)+ln['UnitEmbedded']+_0x1c0130(0x336)+encodeURIComponent(_0x5d617e),_0xfb3f58=await(await fetch(_0xefe2e3,{'method':_0x1c0130(0x17e),'body':_0x5d6d5c}))[_0x1c0130(0x13c)]();if(typeof _0xfb3f58['FileId']!=_0x1c0130(0x404))return this['_decreaseWaiting'](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)]['ERROR_IMAGE']));_0x59bb0c=_0xfb3f58[_0x1c0130(0x41e)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(ne[_0x1c0130(0x534)]['ERROR_IMAGE']));}return new Promise((_0x2eae17,_0x12783a)=>{const _0x355cd9=_0x1c0130,_0x5d226c=new FileReader();_0x5d226c[_0x355cd9(0x56d)](_0x59398a),_0x5d226c[_0x355cd9(0x24c)]=_0x33e697=>{const _0x169e38=_0x355cd9;var _0x2797c0;const _0x2b55de=(_0x2797c0=_0x33e697[_0x169e38(0x261)])==null?void 0x0:_0x2797c0[_0x169e38(0x135)];if(_0x2b55de==null){this[_0x169e38(0x196)](),_0x12783a(new Error(ne['ImageUploadStatusType'][_0x169e38(0x167)]));return;}const _0x5b7379=a['Tools']['generateRandomId'](0x6);_0x2eae17({'imageId':_0x5b7379,'imageSourceType':ne[_0x169e38(0x34d)][_0x169e38(0x483)],'source':_0x59bb0c,'base64Cache':_0x2b55de,'status':ne['ImageUploadStatusType'][_0x169e38(0x395)]}),this[_0x169e38(0x196)]();};});}['_getUploadFileURL'](){const _0xcfa2ec=_0x3b224c;var _0x45ce1e,_0x487028;const _0x3c9249=this['_configService'][_0xcfa2ec(0x469)](Ur),_0x26ebb9=this[_0xcfa2ec(0x142)][_0xcfa2ec(0x469)](te);return(_0x487028=(_0x45ce1e=_0x26ebb9==null?void 0x0:_0x26ebb9[_0xcfa2ec(0x1da)])!=null?_0x45ce1e:_0x3c9249)!=null?_0x487028:Mr;}[_0x3b224c(0x409)](){const _0x48fac3=_0x3b224c;var _0x271250,_0x12adef;const _0x3c2b6a=this[_0x48fac3(0x142)][_0x48fac3(0x469)](Ar),_0x45077d=this[_0x48fac3(0x142)][_0x48fac3(0x469)](te);return(_0x12adef=(_0x271250=_0x45077d==null?void 0x0:_0x45077d[_0x48fac3(0x3e3)])!=null?_0x271250:_0x3c2b6a)!=null?_0x12adef:Nr;}[_0x3b224c(0x5a6)](){const _0x42c963=_0x3b224c;var _0x5e2490;const _0x42fa75=this['_configService'][_0x42c963(0x469)](te);return(_0x5e2490=_0x42fa75==null?void 0x0:_0x42fa75[_0x42c963(0x1a1)])!=null?_0x5e2490:location['origin'];}[_0x3b224c(0x5a4)](_0x4071ca,_0xf04b1f){const _0x10acc1=_0x3b224c;return _0x4071ca[_0x10acc1(0x424)](_0x10acc1(0x542),_0xf04b1f);}[_0x3b224c(0x196)](){const _0x111f7f=_0x3b224c;this[_0x111f7f(0x3ec)]-=0x1,this[_0x111f7f(0x5b0)][_0x111f7f(0x1e1)](this[_0x111f7f(0x3ec)]);}},exports['ImageIoService']=Dr([vt(0x0,a['Inject'](Z[_0x3b224c(0x15d)])),vt(0x1,a['IConfigService']),vt(0x2,a['Inject'](a['IUniverInstanceService']))],exports[_0x3b224c(0x30a)]);var Lr=Object[_0x3b224c(0x209)],xr=Object[_0x3b224c(0x233)],jr=(_0x4d9f99,_0x5ccf9c,_0x35ee4e,_0x1385fc)=>{const _0x2cdcd7=_0x3b224c;for(var _0x2a98be=_0x1385fc>0x1?void 0x0:_0x1385fc?xr(_0x5ccf9c,_0x35ee4e):_0x5ccf9c,_0x49a0ab=_0x4d9f99[_0x2cdcd7(0x2a8)]-0x1,_0x2a6d74;_0x49a0ab>=0x0;_0x49a0ab--)(_0x2a6d74=_0x4d9f99[_0x49a0ab])&&(_0x2a98be=(_0x1385fc?_0x2a6d74(_0x5ccf9c,_0x35ee4e,_0x2a98be):_0x2a6d74(_0x2a98be))||_0x2a98be);return _0x1385fc&&_0x2a98be&&Lr(_0x5ccf9c,_0x35ee4e,_0x2a98be),_0x2a98be;},Ae=(_0x284aad,_0x2b102b)=>(_0x4b0a18,_0x239d07)=>_0x2b102b(_0x4b0a18,_0x239d07,_0x284aad);let Ke=class extends a[_0x3b224c(0x274)]{constructor(_0x2d0062,_0x5e09bb,_0x2df580,_0x377185,_0x1d8000){const _0xf05332=_0x3b224c;super(),this['_injector']=_0x2d0062,this[_0xf05332(0x15e)]=_0x5e09bb,this[_0xf05332(0x155)]=_0x2df580,this['_collaborationSessionService']=_0x377185,this[_0xf05332(0x57b)]=_0x1d8000,this[_0xf05332(0x3e5)](),this[_0xf05332(0x509)]();}[_0x3b224c(0x509)](){const _0x5b7013=_0x3b224c,_0xd4f164=async _0x3abf48=>{const _0xf9872f=_0x1276;(await this[_0xf9872f(0x2ab)][_0xf9872f(0x376)](_0x3abf48))['event$'][_0xf9872f(0x3cc)](V[_0xf9872f(0x567)](_0x5a23e0=>_0x5a23e0['eventID']===S['CollaborationEvent']['SHOULD_CLOSE_CONN']),V[_0xf9872f(0x58f)](this['dispose$']))[_0xf9872f(0x2de)](_0xe0e825=>{const _0x577f31=_0xf9872f,_0x5b8d67=_0xe0e825,{reason:_0xe4d677}=_0x5b8d67[_0x577f31(0x34e)];this[_0x577f31(0x495)][_0x577f31(0x273)](ee['IMessageService'])[_0x577f31(0x134)]({'type':ge[_0x577f31(0x1a6)][_0x577f31(0x187)],'content':this['_localeService']['t'](_0x577f31(0x4a3))+'('+_0xe4d677+')'}),this[_0x577f31(0x155)]['updatePermissionPoint'](new k[(_0x577f31(0x4fd))](_0x3abf48)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x3abf48);});};A[_0x5b7013(0x3d6)](this[_0x5b7013(0x15e)][_0x5b7013(0x291)](a[_0x5b7013(0x3b1)][_0x5b7013(0x460)]),this[_0x5b7013(0x15e)][_0x5b7013(0x291)](a['UniverInstanceType'][_0x5b7013(0x508)]))[_0x5b7013(0x3cc)](V[_0x5b7013(0x283)](_0x14c452=>_0x14c452[_0x5b7013(0x22d)]()),V[_0x5b7013(0x567)](_0x334b2d=>!a['isInternalEditorID'](_0x334b2d)),V[_0x5b7013(0x58f)](this['dispose$']))['subscribe'](_0x1150db=>{_0xd4f164(_0x1150db);});}[_0x3b224c(0x3e5)](){const _0x1f408d=_0x3b224c,_0xd4b3ef=async _0x2f9fea=>{const _0x255503=_0x1276;(await this['_collaborationSessionService'][_0x255503(0x376)](_0x2f9fea))[_0x255503(0x396)]['pipe'](V[_0x255503(0x567)](_0x49507f=>_0x49507f[_0x255503(0x4a9)]===S['CollaborationEvent'][_0x255503(0x31c)]),V[_0x255503(0x58f)](this[_0x255503(0x19d)]))[_0x255503(0x2de)](_0xfee65d=>{const _0x549e45=_0x255503,_0x53e658=_0xfee65d,{objectId:_0x2bbd50}=_0x53e658[_0x549e45(0x34e)],_0x19af48=this[_0x549e45(0x495)]['get'](Re['SheetPermissionInitController']);_0x2bbd50===_0x2f9fea?_0x19af48['initWorkbookPermissionChange'](_0x2f9fea):_0x19af48[_0x549e45(0x252)](_0x2f9fea,_0x2bbd50);});};A[_0x1f408d(0x3d6)](this[_0x1f408d(0x15e)][_0x1f408d(0x291)](a['UniverInstanceType'][_0x1f408d(0x460)]),this[_0x1f408d(0x15e)][_0x1f408d(0x291)](a[_0x1f408d(0x3b1)][_0x1f408d(0x508)]))[_0x1f408d(0x3cc)](V[_0x1f408d(0x283)](_0x5f2374=>_0x5f2374[_0x1f408d(0x22d)]()),V[_0x1f408d(0x567)](_0x12a15d=>!a['isInternalEditorID'](_0x12a15d)),V[_0x1f408d(0x58f)](this['dispose$']))['subscribe'](_0x4ca4be=>{_0xd4b3ef(_0x4ca4be);});}};Ke=jr([Ae(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Ae(0x1,a[_0x3b224c(0x5a1)]),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5d8)])),Ae(0x4,a[_0x3b224c(0x556)](a['LocaleService']))],Ke);var $r=Object['defineProperty'],Hr=Object[_0x3b224c(0x233)],Br=(_0x7c7dc1,_0x2b1728,_0x2bff0d,_0xe54e70)=>{const _0xda39bc=_0x3b224c;for(var _0x3f909a=_0xe54e70>0x1?void 0x0:_0xe54e70?Hr(_0x2b1728,_0x2bff0d):_0x2b1728,_0x46f8c0=_0x7c7dc1[_0xda39bc(0x2a8)]-0x1,_0x461f8f;_0x46f8c0>=0x0;_0x46f8c0--)(_0x461f8f=_0x7c7dc1[_0x46f8c0])&&(_0x3f909a=(_0xe54e70?_0x461f8f(_0x2b1728,_0x2bff0d,_0x3f909a):_0x461f8f(_0x3f909a))||_0x3f909a);return _0xe54e70&&_0x3f909a&&$r(_0x2b1728,_0x2bff0d,_0x3f909a),_0x3f909a;},Jt=(_0x233b93,_0x2dfd5d)=>(_0x315e2,_0x3f172d)=>_0x2dfd5d(_0x315e2,_0x3f172d,_0x233b93);exports['SnapshotServerOverHTTPService']=class{constructor(_0x391ec0,_0x495373){const _0x3c5cb6=_0x3b224c;this[_0x3c5cb6(0x142)]=_0x391ec0,this[_0x3c5cb6(0x4f3)]=_0x495373;}async['getUnitOnRev'](_0x72f006,_0x1e7278){const _0x135978=_0x3b224c;var _0x200dcf;const {unitID:_0x17a8c1,type:_0x3c274d,revision:_0x57fb7d=0x0}=_0x1e7278,_0x1f122e=this[_0x135978(0x2dd)]()+'/'+_0x3c274d+'/unit/'+_0x17a8c1+_0x135978(0x137)+_0x57fb7d,_0x5d310a=(await this[_0x135978(0x4f3)][_0x135978(0x273)](_0x1f122e))['body'],_0xf993=(_0x200dcf=_0x5d310a['snapshot'])==null?void 0x0:_0x200dcf['workbook'];if(_0xf993){const _0x3c4716=_0xf993==null?void 0x0:_0xf993['originalMeta'],_0x50bdf1=S['textEncoder']['encode'](S['b64DecodeUnicode'](_0x3c4716));_0xf993[_0x135978(0x473)]=_0x50bdf1,Object[_0x135978(0x55c)](_0xf993[_0x135978(0x15f)])[_0x135978(0x54f)](([,_0x52c7f9])=>{const _0x49c765=_0x135978,_0xfcfff8=_0x52c7f9[_0x49c765(0x473)],_0x504f55=S[_0x49c765(0x1d6)][_0x49c765(0x4b7)](S['b64DecodeUnicode'](_0xfcfff8));_0x52c7f9[_0x49c765(0x473)]=_0x504f55;});}return _0x5d310a;}async[_0x3b224c(0x158)](_0x108175,_0x464287){const _0x31649b=_0x3b224c,{unitID:_0x593795,type:_0x16f3c7,blockID:_0x350389}=_0x464287,_0x24a077=this[_0x31649b(0x564)]()+'/'+_0x16f3c7+_0x31649b(0x4b1)+_0x593795+_0x31649b(0x3a0)+_0x350389;return(await this[_0x31649b(0x4f3)][_0x31649b(0x273)](_0x24a077))[_0x31649b(0x4ce)];}async[_0x3b224c(0x1e0)](_0x3dc6f3,_0x1c7d88){const _0x1d54a4=_0x3b224c,{unitID:_0x107426,type:_0x19c67c,blockID:_0x202d4d}=_0x1c7d88,_0x3ffa89=this[_0x1d54a4(0x564)]()+_0x1d54a4(0x3a0)+_0x19c67c+_0x1d54a4(0x4b1)+_0x107426+_0x1d54a4(0x3a0)+_0x202d4d;return(await this['_httpService'][_0x1d54a4(0x273)](_0x3ffa89))[_0x1d54a4(0x4ce)];}async[_0x3b224c(0x523)](_0xdfd3d3,_0x41c7d0){const _0x35ccc4=_0x3b224c,{unitID:_0x3c2537,type:_0x43ca7d,from:_0x2ca239,to:_0xe24998}=_0x41c7d0,_0x4e49a0=this[_0x35ccc4(0x564)]()+'/'+_0x43ca7d+_0x35ccc4(0x4b1)+_0x3c2537+_0x35ccc4(0x358)+_0x2ca239+_0x35ccc4(0x2b2)+_0xe24998;return(await this[_0x35ccc4(0x4f3)][_0x35ccc4(0x273)](_0x4e49a0))[_0x35ccc4(0x4ce)];}['_getSnapshotAPIPrefix'](){const _0x566497=_0x3b224c;var _0x3309c1;return(_0x3309c1=this[_0x566497(0x142)][_0x566497(0x469)](Qt))!=null?_0x3309c1:this[_0x566497(0x564)]();}[_0x3b224c(0x564)](){const _0x32d2c8=_0x3b224c;var _0x3f1e8f,_0x3420a4;const _0x7bf89=this[_0x32d2c8(0x142)][_0x32d2c8(0x469)](Zt),_0x26c627=this[_0x32d2c8(0x142)][_0x32d2c8(0x469)](te);return(_0x3420a4=(_0x3f1e8f=_0x26c627==null?void 0x0:_0x26c627[_0x32d2c8(0x239)])!=null?_0x3f1e8f:_0x7bf89)!=null?_0x3420a4:Hn;}async[_0x3b224c(0x4c5)](_0x57b854,_0x2c3122){const _0x358978=_0x3b224c,_0x138677='/universer-api/snapshot/'+_0x2c3122[_0x358978(0x5bb)]+_0x358978(0x4b1)+_0x2c3122[_0x358978(0x236)]+_0x358978(0x35c);return(await this[_0x358978(0x4f3)][_0x358978(0x273)](_0x138677,{'params':{'resourceId':JSON[_0x358978(0x52a)](_0x2c3122[_0x358978(0x5d5)])}}))[_0x358978(0x4ce)];}[_0x3b224c(0x140)](){const _0x2d9a0a=_0x3b224c;throw new Error(_0x2d9a0a(0x559));}[_0x3b224c(0x2d9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b224c(0x1b8)](){const _0x2293cf=_0x3b224c;throw new Error(_0x2293cf(0x559));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b224c(0x1b6)](){const _0x2e569a=_0x3b224c;throw new Error(_0x2e569a(0x559));}},exports[_0x3b224c(0x2e2)]=Br([Jt(0x0,a[_0x3b224c(0x160)]),Jt(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)]))],exports[_0x3b224c(0x2e2)]);var kr=Object[_0x3b224c(0x209)],Wr=Object[_0x3b224c(0x233)],Fr=(_0x5b1fb3,_0x4530bd,_0x724859,_0x1a9bff)=>{const _0xc63e2b=_0x3b224c;for(var _0x17db7f=_0x1a9bff>0x1?void 0x0:_0x1a9bff?Wr(_0x4530bd,_0x724859):_0x4530bd,_0x7bbd19=_0x5b1fb3[_0xc63e2b(0x2a8)]-0x1,_0x6701d1;_0x7bbd19>=0x0;_0x7bbd19--)(_0x6701d1=_0x5b1fb3[_0x7bbd19])&&(_0x17db7f=(_0x1a9bff?_0x6701d1(_0x4530bd,_0x724859,_0x17db7f):_0x6701d1(_0x17db7f))||_0x17db7f);return _0x1a9bff&&_0x17db7f&&kr(_0x4530bd,_0x724859,_0x17db7f),_0x17db7f;},Ne=(_0x5685c1,_0x318340)=>(_0xdc1f09,_0x17e261)=>_0x318340(_0xdc1f09,_0x17e261,_0x5685c1);let It=class extends a['LocalUndoRedoService']{constructor(_0x3f4283,_0x2e99c4,_0x6a85c7,_0x351739,_0x238413){const _0x4b6c23=_0x3b224c;super(_0x3f4283,_0x2e99c4,_0x6a85c7),this[_0x4b6c23(0x5c9)]=_0x351739,this[_0x4b6c23(0x13a)]=_0x238413;}[_0x3b224c(0x332)](_0x1dba0a,_0x133285){const _0x338abc=_0x3b224c,_0x5e5c8c=this[_0x338abc(0x3fb)](_0x1dba0a);if(_0x5e5c8c)try{const _0x3d7391=this[_0x338abc(0x4ff)](_0x5e5c8c,_0x133285);this[_0x338abc(0x230)](_0x1dba0a,_0x3d7391);}catch(_0x17fcfe){this[_0x338abc(0x13a)][_0x338abc(0x423)]('[CollaborationUndoRedoService]',_0x17fcfe),this[_0x338abc(0x341)](_0x1dba0a);}const _0x1aa2f3=this[_0x338abc(0x251)](_0x1dba0a);if(_0x1aa2f3)try{const _0x2649b9=this[_0x338abc(0x4ff)](_0x1aa2f3,_0x133285);this[_0x338abc(0x553)](_0x1dba0a,_0x2649b9);}catch(_0x570567){this[_0x338abc(0x13a)][_0x338abc(0x423)](_0x570567),this[_0x338abc(0x145)](_0x1dba0a);}}[_0x3b224c(0x341)](_0x33a742){const _0x1bbe2e=_0x3b224c,_0x255563=this[_0x1bbe2e(0x3fb)](_0x33a742);_0x255563&&(_0x255563[_0x1bbe2e(0x2a8)]=0x0,this[_0x1bbe2e(0x3d1)]());}[_0x3b224c(0x145)](_0x16231c){const _0x1919f3=_0x3b224c,_0x539ef8=this[_0x1919f3(0x251)](_0x16231c);_0x539ef8&&(_0x539ef8['length']=0x0,this[_0x1919f3(0x3d1)]());}[_0x3b224c(0x230)](_0x341d77,_0x5c5fc5){const _0x2aa29f=_0x3b224c;this[_0x2aa29f(0x59a)][_0x2aa29f(0x437)](_0x341d77,_0x5c5fc5),this['_updateStatus']();}[_0x3b224c(0x553)](_0x42caea,_0x534d68){const _0x4add8b=_0x3b224c;this['_redoStacks'][_0x4add8b(0x437)](_0x42caea,_0x534d68),this['_updateStatus']();}[_0x3b224c(0x4ff)](_0xf6c2d5,_0x4b0dde){const _0x507fb1=_0x3b224c,_0x31ea00=[];let _0x23319e=_0x4b0dde,_0x970a65=_0x4b0dde;for(let _0x184132=_0xf6c2d5[_0x507fb1(0x2a8)]-0x1;_0x184132>=0x0;_0x184132--){const {unitID:_0x39c90e,undoMutations:_0x49fbe2,redoMutations:_0x201303}=_0xf6c2d5[_0x184132],_0xd89251=this['_transformService']['transformMutationsWithChangeset'](_0x23319e,_0x49fbe2),_0x270ea1=this[_0x507fb1(0x5c9)]['transformMutationsWithChangeset'](_0x970a65,_0x201303);if(S[_0x507fb1(0x35d)](_0xd89251)||S[_0x507fb1(0x35d)](_0x270ea1)){this['_logService'][_0x507fb1(0x423)]('[CollaborationUndoRedoService]',_0x507fb1(0x5ac),_0xd89251,_0x270ea1);break;}_0x23319e=_0xd89251[_0x507fb1(0x1ea)],_0x970a65=_0x270ea1[_0x507fb1(0x1ea)],_0x31ea00[_0x507fb1(0x1a8)]({'unitID':_0x39c90e,'undoMutations':_0xd89251[_0x507fb1(0x3f1)],'redoMutations':_0x270ea1[_0x507fb1(0x3f1)]});}return _0x31ea00[_0x507fb1(0x393)]();}};It=Fr([Ne(0x0,a[_0x3b224c(0x5a1)]),Ne(0x1,a[_0x3b224c(0x3d4)]),Ne(0x2,a['IContextService']),Ne(0x3,S[_0x3b224c(0x180)]),Ne(0x4,a[_0x3b224c(0x5ae)])],It);class An extends a['RxDisposable']{constructor(){const _0xe1804a=_0x3b224c;super(),I(this,'urlChange$'),this['urlChange$']=A['fromEvent'](window,'popstate')[_0xe1804a(0x3cc)](A[_0xe1804a(0x58f)](this[_0xe1804a(0x19d)]),A[_0xe1804a(0x307)](0x1),A[_0xe1804a(0x512)](void 0x0));}[_0x3b224c(0x591)](_0x2e1e02,_0x3c8370,_0x39c81d=!0x1){const _0x3b789c=_0x3b224c,_0x312b43=new URL(window[_0x3b789c(0x3c2)][_0x3b789c(0x27d)]);_0x312b43[_0x3b789c(0x53e)][_0x3b789c(0x437)](_0x2e1e02,_0x3c8370),_0x39c81d?window['history'][_0x3b789c(0x5c2)]('','',_0x312b43['toString']()):window[_0x3b789c(0x3dc)][_0x3b789c(0x237)]('','',_0x312b43[_0x3b789c(0x4cf)]());}[_0x3b224c(0x2f4)](_0x35cf9e,_0x145f0b=!0x1){const _0x4c1526=_0x3b224c,_0x332c95=new URL(window[_0x4c1526(0x3c2)][_0x4c1526(0x27d)]);_0x332c95[_0x4c1526(0x53e)][_0x4c1526(0x463)](_0x35cf9e),_0x145f0b?window[_0x4c1526(0x3dc)][_0x4c1526(0x5c2)]('','',_0x332c95[_0x4c1526(0x4cf)]()):window[_0x4c1526(0x3dc)][_0x4c1526(0x237)]('','',_0x332c95['toString']());}['getParam'](_0xe2e1b9){const _0x231750=_0x3b224c;var _0x17f59b;return(_0x17f59b=new URL(window['location'][_0x231750(0x27d)])[_0x231750(0x53e)][_0x231750(0x273)](_0xe2e1b9))!=null?_0x17f59b:void 0x0;}}var Nn=Object[_0x3b224c(0x209)],Vr=Object[_0x3b224c(0x233)],Gr=(_0x3ba827,_0x4582eb,_0x49b088)=>_0x4582eb in _0x3ba827?Nn(_0x3ba827,_0x4582eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b088}):_0x3ba827[_0x4582eb]=_0x49b088,Yr=(_0x17b824,_0x3417db,_0xed87eb,_0x2cdb4a)=>{for(var _0xfca1b1=_0x2cdb4a>0x1?void 0x0:_0x2cdb4a?Vr(_0x3417db,_0xed87eb):_0x3417db,_0x568c74=_0x17b824['length']-0x1,_0x213bf1;_0x568c74>=0x0;_0x568c74--)(_0x213bf1=_0x17b824[_0x568c74])&&(_0xfca1b1=(_0x2cdb4a?_0x213bf1(_0x3417db,_0xed87eb,_0xfca1b1):_0x213bf1(_0xfca1b1))||_0xfca1b1);return _0x2cdb4a&&_0xfca1b1&&Nn(_0x3417db,_0xed87eb,_0xfca1b1),_0xfca1b1;},He=(_0x25f477,_0x1a74db)=>(_0xc3080b,_0x9f9c5d)=>_0x1a74db(_0xc3080b,_0x9f9c5d,_0x25f477),Kr=(_0x2020e2,_0x3f56f1,_0x2376fa)=>Gr(_0x2020e2,_0x3f56f1+'',_0x2376fa);const qr='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b224c(0x5c1)]=class extends a[_0x3b224c(0x302)]{constructor(_0x3a582d=zn,_0x1605a5,_0x1a5b75,_0x4f165a,_0x3d6f82){const _0x306d8a=_0x3b224c;super(),this[_0x306d8a(0x38a)]=_0x3a582d,this[_0x306d8a(0x13a)]=_0x1605a5,this[_0x306d8a(0x243)]=_0x1a5b75,this[_0x306d8a(0x495)]=_0x4f165a,this[_0x306d8a(0x142)]=_0x3d6f82;const {..._0x4b8e88}=this[_0x306d8a(0x38a)];this[_0x306d8a(0x142)][_0x306d8a(0x369)](te,_0x4b8e88);}[_0x3b224c(0x39d)](){const _0x37d488=_0x3b224c;this[_0x37d488(0x2e3)](),this[_0x37d488(0x570)]();}[_0x3b224c(0x148)](){const _0x237dec=_0x3b224c;a[_0x237dec(0x275)](this[_0x237dec(0x495)],[[Ve]]);}['onRendered'](){const _0x3370e9=_0x3b224c;this[_0x3370e9(0x317)]();}[_0x3b224c(0x2e3)](){const _0x6c6956=_0x3b224c;var _0x3e5dc1,_0x52b182,_0x4d7d96,_0x1a02d0;this[_0x6c6956(0x495)][_0x6c6956(0x339)](a['IUndoRedoService'])&&this[_0x6c6956(0x13a)][_0x6c6956(0x423)](_0x6c6956(0x56f),_0x6c6956(0x1c0));const _0x1e3300=[[a[_0x6c6956(0x2b0)],{'useClass':It}],[exports['CollaborationSessionService']],[Ot],[wt,{'useClass':An}],[exports[_0x6c6956(0x5db)]],[exports[_0x6c6956(0x42a)]],[Z[_0x6c6956(0x350)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0x52b182=(_0x3e5dc1=this[_0x6c6956(0x38a)])==null?void 0x0:_0x3e5dc1[_0x6c6956(0x521)])!=null?_0x52b182:exports[_0x6c6956(0x446)]}],[S[_0x6c6956(0x3ef)],{'useClass':exports[_0x6c6956(0x2e2)]}],[a['IAuthzIoService'],{'useClass':exports['AuthzIoHttpService']}],[ne[_0x6c6956(0x430)],{'useClass':exports['ImageIoService']}],[exports[_0x6c6956(0x1d0)]],[exports[_0x6c6956(0x151)]],[exports[_0x6c6956(0x58a)]],[Ve],[De]];(_0x4d7d96=this['_config'])!=null&&_0x4d7d96['enableSingleActiveInstanceLock']&&_0x1e3300[_0x6c6956(0x1a8)]([qe,{'useClass':Oi}]),a[_0x6c6956(0x146)](this['_injector'],a[_0x6c6956(0x1a7)](_0x1e3300,(_0x1a02d0=this['_config'])==null?void 0x0:_0x1a02d0[_0x6c6956(0x477)]));}['_registerRenderDependencies'](){const _0x268b94=_0x3b224c;this[_0x268b94(0x220)](this[_0x268b94(0x243)][_0x268b94(0x3f4)](a[_0x268b94(0x3b1)][_0x268b94(0x508)],[pt])),this[_0x268b94(0x220)](this[_0x268b94(0x243)][_0x268b94(0x3f4)](a[_0x268b94(0x3b1)][_0x268b94(0x460)],[gt]));}[_0x3b224c(0x570)](){const _0x3a476c=_0x3b224c;var _0x4baa3b,_0x370d71;this[_0x3a476c(0x495)]['get'](Z[_0x3a476c(0x15d)])[_0x3a476c(0x517)]({'priority':0x14,'interceptor':Z[_0x3a476c(0x59e)]({'maxParallel':0x6})}),(_0x4baa3b=this[_0x3a476c(0x38a)])!=null&&_0x4baa3b[_0x3a476c(0x197)]||this[_0x3a476c(0x495)][_0x3a476c(0x273)](exports[_0x3a476c(0x42a)])[_0x3a476c(0x262)](),(_0x370d71=this['_config'])!=null&&_0x370d71[_0x3a476c(0x524)]&&a['touchDependencies'](this[_0x3a476c(0x495)],[[Ge]]),a[_0x3a476c(0x275)](this[_0x3a476c(0x495)],[[Ye],[De],[exports[_0x3a476c(0x151)]],[exports[_0x3a476c(0x1d0)]],[exports[_0x3a476c(0x58a)]],[Ke]]);}},Kr(exports[_0x3b224c(0x5c1)],_0x3b224c(0x529),qr),exports[_0x3b224c(0x5c1)]=Yr([a['DependentOn'](S['UniverCollaborationPlugin'],Z[_0x3b224c(0x5d9)]),He(0x1,a['ILogService']),He(0x2,K[_0x3b224c(0x569)]),He(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),He(0x4,a[_0x3b224c(0x160)])],exports[_0x3b224c(0x5c1)]),exports[_0x3b224c(0x2f7)]=Rn,exports[_0x3b224c(0x3be)]=on,exports['COLLAB_WEB_SOCKET_URL_KEY']=en,exports[_0x3b224c(0x507)]=q,exports['CollaborationStatusDisplay']=Tn,exports[_0x3b224c(0x493)]=Tt,exports['HEARTBEAT_INTERVAL_KEY']=tn,exports[_0x3b224c(0x181)]=Ct,exports['ICollaborationSocketService']=bt,exports[_0x3b224c(0x55f)]=wt,exports[_0x3b224c(0x4f0)]=rn,exports[_0x3b224c(0x462)]=an,exports[_0x3b224c(0x299)]=sn,exports[_0x3b224c(0x337)]=Bn,exports[_0x3b224c(0x4c1)]=Zt,exports['SNAPSHOT_URL_KEY']=Qt,exports[_0x3b224c(0x1a9)]=se,exports[_0x3b224c(0x22e)]=Sn,exports[_0x3b224c(0x4a6)]=An,exports[_0x3b224c(0x1b4)]=hn,exports[_0x3b224c(0x50f)]=_n;