@univerjs-pro/collaboration-client 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/index.d.ts +3 -2
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +7 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +6 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -21
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x29ff00=_0x2f26;(function(_0x1ea1f0,_0x431e41){const _0x52c6a0=_0x2f26,_0x5babec=_0x1ea1f0();while(!![]){try{const _0x2df604=parseInt(_0x52c6a0(0x51a))/0x1+-parseInt(_0x52c6a0(0x286))/0x2+parseInt(_0x52c6a0(0x494))/0x3+-parseInt(_0x52c6a0(0x474))/0x4*(-parseInt(_0x52c6a0(0x4ee))/0x5)+parseInt(_0x52c6a0(0x566))/0x6*(parseInt(_0x52c6a0(0x258))/0x7)+parseInt(_0x52c6a0(0x383))/0x8*(parseInt(_0x52c6a0(0x28f))/0x9)+-parseInt(_0x52c6a0(0x63d))/0xa;if(_0x2df604===_0x431e41)break;else _0x5babec['push'](_0x5babec['shift']());}catch(_0x3fd352){_0x5babec['push'](_0x5babec['shift']());}}}(_0x595e,0x392b8));var ji=Object['defineProperty'],$i=(_0x1d18dd,_0x44009b,_0x391e08)=>_0x44009b in _0x1d18dd?ji(_0x1d18dd,_0x44009b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x391e08}):_0x1d18dd[_0x44009b]=_0x391e08,I=(_0x53e59c,_0x15269d,_0x45e920)=>$i(_0x53e59c,typeof _0x15269d!=_0x29ff00(0x241)?_0x15269d+'':_0x15269d,_0x45e920);Object[_0x29ff00(0x64a)](exports,Symbol['toStringTag'],{'value':_0x29ff00(0x617)});const a=require('@univerjs/core'),A=require(_0x29ff00(0x60c)),V=require('rxjs/operators'),Ce=require('@univerjs/design'),z=require(_0x29ff00(0x4e2)),te=require(_0x29ff00(0x386)),p=require(_0x29ff00(0x3e1)),Hi=require(_0x29ff00(0x3d9)),Ie=require(_0x29ff00(0x5e4)),J=require(_0x29ff00(0x34c)),k=require(_0x29ff00(0x2e8)),K=require(_0x29ff00(0x541)),ie=require(_0x29ff00(0x403)),Mt=require(_0x29ff00(0x5a0)),ye=require(_0x29ff00(0x4d2)),ae=require(_0x29ff00(0x381)),Bi=require('@univerjs/rpc'),ii='SNAPSHOT_SERVER_URL_KEY',ki=_0x29ff00(0x5dc),ni='SNAPSHOT_URL_KEY',Wi='SEND_CHANGESET_TIMEOUT',Fi=0x7d0,si='COLLAB_WEB_SOCKET_URL',Vi=_0x29ff00(0x44c),Gi=_0x29ff00(0x3c7),ri=_0x29ff00(0x4aa),Yi=0x7530,Et=_0x29ff00(0x423),oi=0x4e20,Ki=0x4e20,ai='RETRY_CONNECTING_MAX_COUNT',qi=0x3,ci=_0x29ff00(0x575),zi=0x3e8,li=_0x29ff00(0x2a0),Xi='/universer-api/comb',hi=_0x29ff00(0x5e1),Ji=_0x29ff00(0x591);var _i=(_0x3e5b6a=>(_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x64f)]=0x0]=_0x29ff00(0x64f),_0x3e5b6a[_0x3e5b6a['OK']=0x1]='OK',_0x3e5b6a[_0x3e5b6a['INTERNAL_ERROR']=0x2]=_0x29ff00(0x28a),_0x3e5b6a[_0x3e5b6a['PERMISSION_DENIED']=0x3]=_0x29ff00(0x3be),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x2f5)]=0x4]='NOT_FOUND',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x563)]=0x5]=_0x29ff00(0x563),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x2b8)]=0x6]=_0x29ff00(0x2b8),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x1cf)]=0x7]=_0x29ff00(0x1cf),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x2bb)]=0x8]='TOO_MANY_REQUESTS',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x63b)]=0x9]=_0x29ff00(0x63b),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x23a)]=0x1389]=_0x29ff00(0x23a),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x3cf)]=0x1771]=_0x29ff00(0x3cf),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x62d)]=0x1772]=_0x29ff00(0x62d),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x1cd)]=0x1773]=_0x29ff00(0x1cd),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x1f3)]=0x1b59]='APPLY_REJECT',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x511)]=0x1b5a]=_0x29ff00(0x511),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x2da)]=0x1b5b]=_0x29ff00(0x2da),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x2cb)]=0x1b5c]=_0x29ff00(0x2cb),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x4cc)]=0x1b5d]=_0x29ff00(0x4cc),_0x3e5b6a[_0x3e5b6a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x29ff00(0x206),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x3e0)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x34e)]=0x232a]=_0x29ff00(0x34e),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x57b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x32f)]=0x232c]=_0x29ff00(0x32f),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x3a2)]=0x232d]=_0x29ff00(0x3a2),_0x3e5b6a[_0x3e5b6a['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x29ff00(0x5f2),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x4ce)]=0x2712]=_0x29ff00(0x4ce),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x23c)]=0x2713]=_0x29ff00(0x23c),_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x21f)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3e5b6a[_0x3e5b6a[_0x29ff00(0x419)]=-0x1]=_0x29ff00(0x419),_0x3e5b6a))(_i||{}),ne=(_0x2b5f98=>(_0x2b5f98[_0x2b5f98[_0x29ff00(0x3b3)]=0x0]='UNIVER_UNKNOWN',_0x2b5f98[_0x2b5f98['UNIVER_DOC']=0x1]=_0x29ff00(0x4f0),_0x2b5f98[_0x2b5f98['UNIVER_SHEET']=0x2]=_0x29ff00(0x3d0),_0x2b5f98[_0x2b5f98[_0x29ff00(0x625)]=0x3]=_0x29ff00(0x625),_0x2b5f98[_0x2b5f98[_0x29ff00(0x5cf)]=0x4]='UNIVER_PROJECT',_0x2b5f98[_0x2b5f98[_0x29ff00(0x419)]=-0x1]=_0x29ff00(0x419),_0x2b5f98))(ne||{}),G=(_0x158be7=>(_0x158be7[_0x158be7[_0x29ff00(0x638)]=0x0]='UNKNOWN_CMD',_0x158be7[_0x158be7['HELLO']=0x1]='HELLO',_0x158be7[_0x158be7['JOIN']=0x2]=_0x29ff00(0x48f),_0x158be7[_0x158be7[_0x29ff00(0x56d)]=0x3]=_0x29ff00(0x56d),_0x158be7[_0x158be7[_0x29ff00(0x514)]=0x4]=_0x29ff00(0x514),_0x158be7[_0x158be7['HEARTBEAT']=0x5]=_0x29ff00(0x5c6),_0x158be7[_0x158be7[_0x29ff00(0x275)]=0x6]=_0x29ff00(0x275),_0x158be7[_0x158be7[_0x29ff00(0x419)]=-0x1]=_0x29ff00(0x419),_0x158be7))(G||{}),bt=(_0x1d71c2=>(_0x1d71c2[_0x1d71c2[_0x29ff00(0x609)]=0x0]=_0x29ff00(0x609),_0x1d71c2[_0x1d71c2['OK']=0x1]='OK',_0x1d71c2[_0x1d71c2['FAIL']=0x2]=_0x29ff00(0x52a),_0x1d71c2[_0x1d71c2[_0x29ff00(0x61a)]=0x3e9]='JOIN_ROOM_FULL',_0x1d71c2[_0x1d71c2[_0x29ff00(0x215)]=0x3ea]='JOIN_ROOM_NOT_ALLOWED',_0x1d71c2[_0x1d71c2['UNRECOGNIZED']=-0x1]=_0x29ff00(0x419),_0x1d71c2))(bt||{}),ui=(_0x17591d=>(_0x17591d[_0x17591d[_0x29ff00(0x559)]=0x0]=_0x29ff00(0x559),_0x17591d[_0x17591d[_0x29ff00(0x4d0)]=0x1]=_0x29ff00(0x4d0),_0x17591d[_0x17591d[_0x29ff00(0x582)]=0x2]=_0x29ff00(0x582),_0x17591d[_0x17591d[_0x29ff00(0x358)]=0x3]='UnitEmbedded',_0x17591d[_0x17591d[_0x29ff00(0x557)]=0x4]=_0x29ff00(0x557),_0x17591d[_0x17591d[_0x29ff00(0x419)]=-0x1]=_0x29ff00(0x419),_0x17591d))(ui||{});const Q=_0x29ff00(0x602),Zi={};function di(_0x1360bb){const _0x4bfee1=_0x29ff00;var _0xaab78a,_0x413c2b,_0x5c1845,_0x220bf4,_0x34e23b;const _0x4a4dcb=_0x1360bb[_0x4bfee1(0x3eb)],_0x5d258e=JSON['parse'](_0x4a4dcb);switch(_0x5d258e[_0x4bfee1(0x4a0)]){case G[_0x4bfee1(0x5c6)]:case G[_0x4bfee1(0x2ad)]:{const _0x7cd38b=_0x5d258e[_0x4bfee1(0x495)];return{..._0x5d258e,'data':_0x7cd38b,'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};}case G[_0x4bfee1(0x48f)]:{const _0xc8635a=_0x5d258e[_0x4bfee1(0x2c7)];return{..._0x5d258e,'data':_0xc8635a,'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};}case G[_0x4bfee1(0x275)]:{const _0x20984a=_0x5d258e['collaMsg'];switch(_0x20984a[_0x4bfee1(0x55b)]){case p[_0x4bfee1(0x259)]['PERMISSION_REJ']:return{..._0x5d258e,'data':{..._0x20984a,'data':(_0xaab78a=_0x20984a['permissionRejEvent'])==null?void 0x0:_0xaab78a['cs']},'cmd':_0x5d258e['cmd']};case p[_0x4bfee1(0x259)][_0x4bfee1(0x249)]:return{..._0x5d258e,'data':{..._0x20984a,'data':(_0x413c2b=_0x20984a['csAckEvent'])==null?void 0x0:_0x413c2b['cs']},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x402)]:return{..._0x5d258e,'data':{..._0x20984a,'data':(_0x5c1845=_0x20984a[_0x4bfee1(0x1b7)])==null?void 0x0:_0x5c1845['cs']},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)]['CHANGESET_REJ']:return{..._0x5d258e,'data':{..._0x20984a,'data':(_0x220bf4=_0x20984a[_0x4bfee1(0x4ec)])==null?void 0x0:_0x220bf4['cs']},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x2ce)]:return{..._0x5d258e,'data':{..._0x20984a,'data':(_0x34e23b=_0x20984a[_0x4bfee1(0x444)])==null?void 0x0:_0x34e23b['cs']},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)]['UPDATE_CURSOR']:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x4a2)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)]['USERS_ENTER']:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x5db)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x5a1)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x2db)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x313)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x28c)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x42b)]:case p[_0x4bfee1(0x259)][_0x4bfee1(0x448)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x284)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p['CollaborationEvent'][_0x4bfee1(0x216)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a['liveShareNewHost']},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x5cc)]:return{..._0x5d258e,'data':_0x20984a,'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x492)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x29a)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x410)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x3fe)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};case p[_0x4bfee1(0x259)][_0x4bfee1(0x44d)]:return{..._0x5d258e,'data':{..._0x20984a,'data':_0x20984a[_0x4bfee1(0x1b8)]},'cmd':_0x5d258e[_0x4bfee1(0x4a0)]};default:return _0x5d258e;}}default:return _0x5d258e;}}function fi(_0x31fafc){const _0x978bf4=_0x29ff00;switch(_0x31fafc[_0x978bf4(0x4a0)]){case G[_0x978bf4(0x5c6)]:case G[_0x978bf4(0x2ad)]:return JSON['stringify']({'cmd':_0x31fafc[_0x978bf4(0x4a0)],'routeKey':_0x31fafc[_0x978bf4(0x4fa)]});case G[_0x978bf4(0x514)]:{let _0x8b32e9;switch(_0x31fafc[_0x978bf4(0x3eb)][_0x978bf4(0x55b)]){case p[_0x978bf4(0x259)]['UPDATE_CURSOR']:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)]['UPDATE_CURSOR'],'updateCursorEvent':_0x31fafc[_0x978bf4(0x3eb)]['data']};break;}case p['CollaborationEvent'][_0x978bf4(0x5a1)]:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)][_0x978bf4(0x5a1)],'leaveEvent':_0x31fafc[_0x978bf4(0x3eb)][_0x978bf4(0x3eb)]};break;}case p[_0x978bf4(0x259)][_0x978bf4(0x5bc)]:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)][_0x978bf4(0x5bc)],'joinEvent':_0x31fafc[_0x978bf4(0x3eb)]['data']};break;}case p[_0x978bf4(0x259)][_0x978bf4(0x313)]:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)][_0x978bf4(0x313)],'liveShareNewHost':_0x31fafc[_0x978bf4(0x3eb)][_0x978bf4(0x3eb)]};break;}case p[_0x978bf4(0x259)][_0x978bf4(0x448)]:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x31fafc[_0x978bf4(0x3eb)]['data']};break;}case p[_0x978bf4(0x259)]['LIVESHARE_TERMINATE']:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x31fafc[_0x978bf4(0x3eb)]['data']};break;}case p['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x31fafc[_0x978bf4(0x3eb)][_0x978bf4(0x3eb)]};break;}case p[_0x978bf4(0x259)]['LIVESHARE_FETCH_OPERATIONS']:{_0x8b32e9={'eventID':p[_0x978bf4(0x259)][_0x978bf4(0x42b)]};break;}default:_0x8b32e9={'eventID':_0x31fafc['data'][_0x978bf4(0x55b)]};}return JSON[_0x978bf4(0x65e)]({'cmd':_0x31fafc['cmd'],'routeKey':_0x31fafc['routeKey'],'collaMsg':_0x8b32e9});}case G[_0x978bf4(0x48f)]:return JSON[_0x978bf4(0x65e)]({'cmd':_0x31fafc[_0x978bf4(0x4a0)],'routeKey':_0x31fafc[_0x978bf4(0x4fa)],'joinReq':_0x31fafc[_0x978bf4(0x3eb)]});case G[_0x978bf4(0x56d)]:return JSON[_0x978bf4(0x65e)]({'cmd':_0x31fafc[_0x978bf4(0x4a0)],'routeKey':_0x31fafc['routeKey'],'leaveReq':_0x31fafc[_0x978bf4(0x3eb)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Qi=Object[_0x29ff00(0x64a)],en=Object[_0x29ff00(0x316)],tn=(_0x4584e5,_0x54e03c,_0x38b276,_0xafdec2)=>{const _0x3d75a1=_0x29ff00;for(var _0x39d498=_0xafdec2>0x1?void 0x0:_0xafdec2?en(_0x54e03c,_0x38b276):_0x54e03c,_0x324b9e=_0x4584e5[_0x3d75a1(0x5e7)]-0x1,_0x368764;_0x324b9e>=0x0;_0x324b9e--)(_0x368764=_0x4584e5[_0x324b9e])&&(_0x39d498=(_0xafdec2?_0x368764(_0x54e03c,_0x38b276,_0x39d498):_0x368764(_0x39d498))||_0x39d498);return _0xafdec2&&_0x39d498&&Qi(_0x54e03c,_0x38b276,_0x39d498),_0x39d498;},Pe=(_0x4de191,_0x78e65)=>(_0xfde4af,_0x33b6c8)=>_0x78e65(_0xfde4af,_0x33b6c8,_0x4de191);const Tt=a[_0x29ff00(0x369)]('univer-pro.collaboration-client-socket-service');function nn(_0x3c3e05,_0xcb953e,_0xb8a45e){return _0x3c3e05+'/'+_0xcb953e+'/unit/'+_0xb8a45e+'/new_changes';}exports['CollaborationSocketService']=class extends a['Disposable']{constructor(_0x203ea0,_0x4af609,_0x4c4d79,_0x2582d0,_0x17744a){const _0x4556da=_0x29ff00;super(),this[_0x4556da(0x58a)]=_0x203ea0,this['_ws']=_0x4af609,this[_0x4556da(0x4ea)]=_0x4c4d79,this[_0x4556da(0x328)]=_0x2582d0,this[_0x4556da(0x1dc)]=_0x17744a;}[_0x29ff00(0x62b)](_0x29f4d1){const _0x2415ec=_0x29ff00,_0x271d13=this[_0x2415ec(0x5ab)][_0x2415ec(0x62b)](_0x29f4d1);if(!_0x271d13)throw new Error(_0x2415ec(0x45e));const _0x21bf5b=new a[(_0x2415ec(0x546))](),_0xfb78c0=new A['Subject']();_0x21bf5b['add'](_0x271d13[_0x2415ec(0x642)]['subscribe'](_0x4194a1=>_0xfb78c0[_0x2415ec(0x49f)](_0x4194a1))),_0x21bf5b[_0x2415ec(0x231)](a[_0x2415ec(0x372)](()=>_0xfb78c0[_0x2415ec(0x22e)]()));const _0x108082=new A['Subject']();_0x21bf5b['add'](_0x271d13[_0x2415ec(0x1c3)]['subscribe'](_0xb265df=>_0x108082[_0x2415ec(0x49f)](_0xb265df))),_0x21bf5b[_0x2415ec(0x231)](a['toDisposable'](()=>_0x108082[_0x2415ec(0x22e)]()));const _0x3d8201=new A[(_0x2415ec(0x534))]();_0x21bf5b[_0x2415ec(0x231)](_0x271d13[_0x2415ec(0x27b)][_0x2415ec(0x58f)](_0x52c81d=>{const _0x4f9270=_0x2415ec,_0x1eca69=di(_0x52c81d);_0x3d8201[_0x4f9270(0x49f)](_0x1eca69);})),_0x21bf5b[_0x2415ec(0x231)](a[_0x2415ec(0x372)](()=>_0x3d8201[_0x2415ec(0x22e)]()));let _0x42df77;const _0x3efe67=()=>{const _0x31dae2=_0x2415ec;_0x108082['next'](new Event(_0x31dae2(0x335))),_0xfb78c0[_0x31dae2(0x49f)](new CloseEvent('connection\x20error')),_0x42df77[_0x31dae2(0x499)]();};return _0x42df77={'memberID':'','close$':_0xfb78c0['asObservable'](),'error$':_0x108082[_0x2415ec(0x4c6)](),'open$':_0x271d13[_0x2415ec(0x418)],'message$':_0x3d8201['asObservable'](),'send':_0x5cdd3a=>{const _0xa5e4e5=_0x2415ec;if(_0x5cdd3a[_0xa5e4e5(0x4a0)]===G[_0xa5e4e5(0x514)]){if(_0x5cdd3a[_0xa5e4e5(0x3eb)]['eventID']===p[_0xa5e4e5(0x259)][_0xa5e4e5(0x2c8)]){this['_submitChangeset'](_0x42df77,_0x5cdd3a['data'])[_0xa5e4e5(0x49d)](_0xa69cd=>{const _0x30c772=_0xa5e4e5;this[_0x30c772(0x328)][_0x30c772(0x27a)](_0xa69cd),_0x3efe67();});return;}if(_0x5cdd3a[_0xa5e4e5(0x3eb)][_0xa5e4e5(0x55b)]===p[_0xa5e4e5(0x259)]['FETCH_MISSING']){const _0xc9b3b3=_0x5cdd3a[_0xa5e4e5(0x3eb)];this[_0xa5e4e5(0x654)](_0xc9b3b3)[_0xa5e4e5(0x5bf)](_0x3077ee=>{const _0x35e25f=_0xa5e4e5;_0x3d8201[_0x35e25f(0x49f)]({'cmd':G[_0x35e25f(0x275)],'code':bt['OK'],'routeKey':_0xc9b3b3[_0x35e25f(0x3eb)]['unitID'],'routeType':'','data':{'eventID':p[_0x35e25f(0x259)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3077ee}}});})['catch'](_0x5c65b0=>{const _0x164b11=_0xa5e4e5;this[_0x164b11(0x328)][_0x164b11(0x27a)](_0x5c65b0),_0x3efe67();});return;}}_0x271d13[_0xa5e4e5(0x385)](fi(_0x5cdd3a));},'close':()=>{const _0x476a06=_0x2415ec;_0x271d13[_0x476a06(0x499)](),_0x21bf5b[_0x476a06(0x5e6)]();}},_0x42df77;}async[_0x29ff00(0x33a)](_0x2e58db,_0x5004fc){const _0x5b5007=_0x29ff00;var _0xf4212,_0x40f664;const {unitType:_0x334b15,unitID:_0x232a0c,changeset:_0x7958b5}=_0x5004fc[_0x5b5007(0x3eb)],_0x4d7ab1={'unitID':_0x232a0c,'memberID':_0x2e58db[_0x5b5007(0x35e)],'type':_0x334b15,'changeset':p[_0x5b5007(0x26f)](_0x7958b5)},_0x52659d=this[_0x5b5007(0x4ea)]['getConfig'](li),_0x3988e6=this[_0x5b5007(0x4ea)][_0x5b5007(0x1ea)](Q),_0x29ddda=nn((_0x40f664=(_0xf4212=_0x3988e6==null?void 0x0:_0x3988e6[_0x5b5007(0x29d)])!=null?_0xf4212:_0x52659d)!=null?_0x40f664:Xi,_0x334b15,_0x232a0c);try{await this[_0x5b5007(0x58a)][_0x5b5007(0x515)](_0x29ddda,{'body':_0x4d7ab1});}catch(_0x24faa2){throw this[_0x5b5007(0x328)][_0x5b5007(0x27a)](_0x5b5007(0x4a6),_0x5b5007(0x2ba)),_0x24faa2;}}async[_0x29ff00(0x654)](_0x5e07b9){const _0x595385=_0x29ff00,{unitID:_0x3e6dad,from:_0x23239b,to:_0x48f2ab,unitType:_0x1d2727}=_0x5e07b9[_0x595385(0x3eb)];return(await this[_0x595385(0x1dc)][_0x595385(0x379)]({'metadata':void 0x0},{'unitID':_0x3e6dad,'type':_0x1d2727,'from':_0x23239b,'to':_0x48f2ab}))[_0x595385(0x684)];}},exports[_0x29ff00(0x374)]=tn([Pe(0x0,a['Inject'](z[_0x29ff00(0x1be)])),Pe(0x1,a[_0x29ff00(0x493)](z[_0x29ff00(0x287)])),Pe(0x2,a[_0x29ff00(0x64d)]),Pe(0x3,a[_0x29ff00(0x4ac)]),Pe(0x4,p[_0x29ff00(0x426)])],exports[_0x29ff00(0x374)]);const sn=_0x29ff00(0x36a);function rn(_0xc3eaf0){const _0x1189c6=_0x29ff00;return JSON[_0x1189c6(0x65e)](_0xc3eaf0)['length'];}class Rt{constructor(){const _0x231cea=_0x29ff00;I(this,_0x231cea(0x2f2),new A[(_0x231cea(0x534))]()),I(this,_0x231cea(0x22a),this[_0x231cea(0x2f2)][_0x231cea(0x4c6)]());}['onCommentUpdate'](_0x3f9cb9){const _0x50b1d1=_0x29ff00;this[_0x50b1d1(0x2f2)][_0x50b1d1(0x49f)](_0x3f9cb9);}}var on=Object[_0x29ff00(0x64a)],an=Object[_0x29ff00(0x316)],cn=(_0x224925,_0x239194,_0x59e802,_0x4f58c6)=>{const _0x1c56f4=_0x29ff00;for(var _0xd16ee0=_0x4f58c6>0x1?void 0x0:_0x4f58c6?an(_0x239194,_0x59e802):_0x239194,_0x599809=_0x224925[_0x1c56f4(0x5e7)]-0x1,_0x310afd;_0x599809>=0x0;_0x599809--)(_0x310afd=_0x224925[_0x599809])&&(_0xd16ee0=(_0x4f58c6?_0x310afd(_0x239194,_0x59e802,_0xd16ee0):_0x310afd(_0xd16ee0))||_0xd16ee0);return _0x4f58c6&&_0xd16ee0&&on(_0x239194,_0x59e802,_0xd16ee0),_0xd16ee0;},At=(_0x23ecc5,_0x45412a)=>(_0x31650e,_0x2c0b4a)=>_0x45412a(_0x31650e,_0x2c0b4a,_0x23ecc5);exports[_0x29ff00(0x1d6)]=class extends a[_0x29ff00(0x331)]{constructor(_0x24c8c3,_0x373a20){const _0x149909=_0x29ff00;super(),I(this,_0x149909(0x542),new Map()),(this['_univerInstanceService']=_0x24c8c3,this[_0x149909(0x345)]=_0x373a20,this[_0x149909(0x665)](a[_0x149909(0x372)](A[_0x149909(0x5ed)](this[_0x149909(0x600)][_0x149909(0x365)](a[_0x149909(0x5ce)][_0x149909(0x3d0)])['pipe'](V['map'](_0x19b1f3=>_0x19b1f3[_0x149909(0x621)]())),this[_0x149909(0x600)]['getTypeOfUnitDisposed$'](a[_0x149909(0x5ce)][_0x149909(0x4f0)])[_0x149909(0x619)](V[_0x149909(0x4db)](_0x17a884=>_0x17a884[_0x149909(0x621)]())),this[_0x149909(0x600)][_0x149909(0x365)](a['UniverInstanceType'][_0x149909(0x625)])['pipe'](V[_0x149909(0x4db)](_0x46fc8a=>_0x46fc8a[_0x149909(0x621)]())))[_0x149909(0x58f)](_0x5f6ac=>this[_0x149909(0x554)](_0x5f6ac)))));}[_0x29ff00(0x5c7)](_0x1b5f2b){const _0x22330f=_0x29ff00;this['_userManagerService'][_0x22330f(0x5c7)](_0x1b5f2b);}[_0x29ff00(0x5d8)](){const _0x3397d7=_0x29ff00;return this[_0x3397d7(0x345)][_0x3397d7(0x5d8)]();}[_0x29ff00(0x3f3)](_0x51bcf8,_0xf48690){const _0x41cc6a=_0x29ff00;let _0x47956a=this[_0x41cc6a(0x542)]['get'](_0x51bcf8);_0x47956a||(_0x47956a=new ln(),this[_0x41cc6a(0x542)][_0x41cc6a(0x20a)](_0x51bcf8,_0x47956a)),_0x47956a[_0x41cc6a(0x3f3)](_0xf48690);}[_0x29ff00(0x578)](_0x234958,_0x359e74){const _0x5cadbf=_0x29ff00,_0x4b1f76=this[_0x5cadbf(0x542)][_0x5cadbf(0x2ef)](_0x234958);_0x4b1f76&&_0x4b1f76[_0x5cadbf(0x578)](_0x359e74);}[_0x29ff00(0x4cb)](_0x41ae49){const _0x3cef7f=_0x29ff00;return this[_0x3cef7f(0x542)]['get'](_0x41ae49);}[_0x29ff00(0x5b8)](_0x3b9718,_0x130bb5){const _0x26a607=_0x29ff00,_0x6e829c=this[_0x26a607(0x542)][_0x26a607(0x2ef)](_0x3b9718);if(_0x6e829c)return _0x6e829c[_0x26a607(0x5b8)](_0x130bb5);}[_0x29ff00(0x554)](_0x332dae){const _0x2be6d7=_0x29ff00,_0x5df38c=this[_0x2be6d7(0x542)][_0x2be6d7(0x2ef)](_0x332dae);_0x5df38c&&(_0x5df38c[_0x2be6d7(0x5e6)](),this[_0x2be6d7(0x542)]['delete'](_0x332dae));}[_0x29ff00(0x5e6)](){const _0x2e4af4=_0x29ff00;this['_roomMembers'][_0x2e4af4(0x3a1)](_0x5b7354=>_0x5b7354[_0x2e4af4(0x5e6)]()),this['_roomMembers'][_0x2e4af4(0x641)]();}},exports[_0x29ff00(0x1d6)]=cn([At(0x0,a[_0x29ff00(0x37f)]),At(0x1,a[_0x29ff00(0x493)](a[_0x29ff00(0x60f)]))],exports[_0x29ff00(0x1d6)]);class ln extends a[_0x29ff00(0x331)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x29ff00(0x5e6)](){const _0x419909=_0x29ff00;this['_members'][_0x419909(0x641)]();}['updateMember'](_0x2adca0){const _0x10ed13=_0x29ff00;this['_members']['set'](_0x2adca0[_0x10ed13(0x35e)],_0x2adca0);}['removeMember'](_0x574fbf){const _0x580929=_0x29ff00;this['_members'][_0x580929(0x3dc)](_0x574fbf);}['getMember'](_0x2380d4){const _0x145bd0=_0x29ff00;return this[_0x145bd0(0x272)][_0x145bd0(0x2ef)](_0x2380d4);}[_0x29ff00(0x2d7)](){const _0x4e8f2c=_0x29ff00;return Array[_0x4e8f2c(0x4e3)](this['_members']['values']());}}var hn=Object['defineProperty'],_n=Object[_0x29ff00(0x316)],un=(_0x212c52,_0x5e0053,_0x3bfa24,_0x300604)=>{const _0xa1e719=_0x29ff00;for(var _0xbfceec=_0x300604>0x1?void 0x0:_0x300604?_n(_0x5e0053,_0x3bfa24):_0x5e0053,_0xf035f2=_0x212c52[_0xa1e719(0x5e7)]-0x1,_0x5968b7;_0xf035f2>=0x0;_0xf035f2--)(_0x5968b7=_0x212c52[_0xf035f2])&&(_0xbfceec=(_0x300604?_0x5968b7(_0x5e0053,_0x3bfa24,_0xbfceec):_0x5968b7(_0xbfceec))||_0xbfceec);return _0x300604&&_0xbfceec&&hn(_0x5e0053,_0x3bfa24,_0xbfceec),_0xbfceec;},de=(_0x111444,_0x54af0c)=>(_0x3b479d,_0x4e966b)=>_0x54af0c(_0x3b479d,_0x4e966b,_0x111444),se=(_0x24621c=>(_0x24621c[_0x24621c[_0x29ff00(0x281)]=0x0]='IDLE',_0x24621c[_0x24621c['JOINING']=0x1]=_0x29ff00(0x377),_0x24621c[_0x24621c[_0x29ff00(0x548)]=0x2]='OFFLINE',_0x24621c[_0x24621c[_0x29ff00(0x572)]=0x3]='ONLINE',_0x24621c))(se||{});exports[_0x29ff00(0x679)]=class extends a[_0x29ff00(0x4b0)]{constructor(_0x227b21,_0x398803,_0x15d302,_0x3101dc,_0x21f5a9,_0x249e1c,_0xcc6a46,_0x52e18e,_0x485d18,_0x42fa55){const _0xbc6442=_0x29ff00;super(),I(this,_0xbc6442(0x439),new A[(_0xbc6442(0x26c))](0x0)),I(this,_0xbc6442(0x299),this[_0xbc6442(0x439)][_0xbc6442(0x4c6)]()),I(this,_0xbc6442(0x245),new A[(_0xbc6442(0x534))]()),I(this,_0xbc6442(0x48a),this[_0xbc6442(0x245)][_0xbc6442(0x4c6)]()),I(this,_0xbc6442(0x491)),I(this,_0xbc6442(0x24e)),I(this,_0xbc6442(0x497)),I(this,_0xbc6442(0x47d),!0x1),I(this,_0xbc6442(0x296),null),(this['_unitID']=_0x227b21,this[_0xbc6442(0x328)]=_0x15d302,this[_0xbc6442(0x1c0)]=_0x3101dc,this['_messageService']=_0x21f5a9,this[_0xbc6442(0x4ea)]=_0x249e1c,this[_0xbc6442(0x20f)]=_0xcc6a46,this[_0xbc6442(0x427)]=_0x52e18e,this[_0xbc6442(0x3df)]=_0x485d18,this['_telemetryService']=_0x42fa55,this[_0xbc6442(0x47d)]=!!this['_telemetryService'],_0x398803['pipe'](A['takeUntil'](this[_0xbc6442(0x2b6)]))['subscribe'](_0x128c12=>{const _0x1e03ad=_0xbc6442;var _0x18ee46;typeof _0x128c12>'u'||(this[_0x1e03ad(0x491)]=_0x128c12,_0x128c12?(this['_joinRoom'](_0x128c12),this[_0x1e03ad(0x24e)]=_0x128c12[_0x1e03ad(0x27b)][_0x1e03ad(0x58f)](_0x4fc6a2=>{const _0x5f6463=_0x1e03ad;_0x4fc6a2['routeKey']===this[_0x5f6463(0x33d)]&&this[_0x5f6463(0x261)](_0x4fc6a2);})):(this[_0x1e03ad(0x363)](),this['_sessionStatus$']['next'](0x2),(_0x18ee46=this[_0x1e03ad(0x24e)])==null||_0x18ee46[_0x1e03ad(0x4eb)](),this[_0x1e03ad(0x24e)]=null));}),this[_0xbc6442(0x665)](this[_0xbc6442(0x1c0)][_0xbc6442(0x23d)](()=>{const _0xfe612c=_0xbc6442;var _0xf28e07;(_0xf28e07=this[_0xfe612c(0x491)])==null||_0xf28e07['send']({'cmd':G['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x36e572=_0x29ff00;return this[_0x36e572(0x439)][_0x36e572(0x42e)]();}[_0x29ff00(0x40a)](){const _0x326523=_0x29ff00;var _0x27f087,_0x5c318d;return(_0x5c318d=(_0x27f087=this['_socket'])==null?void 0x0:_0x27f087[_0x326523(0x35e)])!=null?_0x5c318d:null;}[_0x29ff00(0x5e6)](){const _0x3d271f=_0x29ff00;super[_0x3d271f(0x5e6)](),this[_0x3d271f(0x2b6)][_0x3d271f(0x49f)](),this['dispose$'][_0x3d271f(0x22e)]();}[_0x29ff00(0x499)](){const _0x4abd27=_0x29ff00;var _0x7c3d4,_0x4ee22a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x7c3d4=this[_0x4abd27(0x491)])==null||_0x7c3d4[_0x4abd27(0x385)]({'cmd':G[_0x4abd27(0x56d)],'data':{'roomID':this[_0x4abd27(0x33d)]}}),(_0x4ee22a=this[_0x4abd27(0x491)])==null||_0x4ee22a['close'](),this[_0x4abd27(0x245)]['complete'](),this['_sessionStatus$'][_0x4abd27(0x22e)](),this['dispose']();}[_0x29ff00(0x261)](_0x556f34){const _0x30cce3=_0x29ff00;_0x556f34[_0x30cce3(0x4a0)]===G['JOIN']?this['_onJoinRoomEvent'](_0x556f34):_0x556f34[_0x30cce3(0x4a0)]===G['RECV']&&this[_0x30cce3(0x57a)](_0x556f34);}[_0x29ff00(0x618)](_0x435182){const _0x1cd1a1=_0x29ff00;this['_sessionStatus$']['next'](0x1),_0x435182[_0x1cd1a1(0x385)]({'cmd':G['JOIN'],'routeKey':this[_0x1cd1a1(0x33d)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1cd1a1(0x33d)]}]}});}[_0x29ff00(0x28d)](_0x3894ff){const _0x48bdbe=_0x29ff00;var _0x5bba3c;if(_0x3894ff[_0x48bdbe(0x25d)]===bt[_0x48bdbe(0x52a)]){this[_0x48bdbe(0x47e)][_0x48bdbe(0x318)]({'type':Ce['MessageType'][_0x48bdbe(0x390)],'content':this[_0x48bdbe(0x20f)]['t']('session.room-full')}),this['_sessionStatus$'][_0x48bdbe(0x49f)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x15c3e7=(_0x5bba3c=_0x3894ff[_0x48bdbe(0x3eb)]['roomInfos'][this[_0x48bdbe(0x33d)]])==null?void 0x0:_0x5bba3c['members'];_0x15c3e7&&_0x15c3e7[_0x48bdbe(0x3a1)](_0x14540b=>this[_0x48bdbe(0x427)][_0x48bdbe(0x3f3)](this[_0x48bdbe(0x33d)],_0x14540b));}[_0x29ff00(0x57a)](_0x49a672){const _0x49ab31=_0x29ff00;try{const _0x1b00b5=_0x49a672[_0x49ab31(0x3eb)];switch(_0x1b00b5[_0x49ab31(0x55b)]){case p[_0x49ab31(0x259)]['USERS_ENTER']:this[_0x49ab31(0x22d)](_0x1b00b5),this[_0x49ab31(0x245)][_0x49ab31(0x49f)](_0x1b00b5);break;case p[_0x49ab31(0x259)]['USERS_LEAVE']:this[_0x49ab31(0x5d0)](_0x1b00b5),this[_0x49ab31(0x245)][_0x49ab31(0x49f)](_0x1b00b5);break;case p[_0x49ab31(0x259)]['CHANGESET_ACK']:case p[_0x49ab31(0x259)]['CHANGESET_SHOULD_RETRY']:this[_0x49ab31(0x202)](),this[_0x49ab31(0x50e)](),this[_0x49ab31(0x245)][_0x49ab31(0x49f)](_0x1b00b5);break;case p['CollaborationEvent'][_0x49ab31(0x5cc)]:this['_logService'][_0x49ab31(0x27a)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x49ab31(0x65e)](_0x1b00b5)),this[_0x49ab31(0x245)][_0x49ab31(0x49f)](_0x1b00b5);break;case p[_0x49ab31(0x259)][_0x49ab31(0x492)]:this['_commentService'][_0x49ab31(0x4a8)](_0x1b00b5['data']),this[_0x49ab31(0x245)]['next'](_0x1b00b5);break;default:this['_event$'][_0x49ab31(0x49f)](_0x1b00b5);}}catch(_0x2ddcfa){this[_0x49ab31(0x328)]['error'](_0x2ddcfa,_0x49a672);}}['_onUserJoin'](_0x2ed97a){const _0x77e776=_0x29ff00;this['_memberService']['updateMember'](this[_0x77e776(0x33d)],_0x2ed97a['data']);}[_0x29ff00(0x5d0)](_0x2db0da){const _0x426aa0=_0x29ff00;this[_0x426aa0(0x427)][_0x426aa0(0x578)](this[_0x426aa0(0x33d)],_0x2db0da[_0x426aa0(0x3eb)][_0x426aa0(0x35e)]);}async['send'](_0x2b7866,_0x9a8c54){const _0x4ed4a4=_0x29ff00;if(this[_0x4ed4a4(0x2ff)]!==0x3||!this[_0x4ed4a4(0x491)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2b7866['eventID']===p['CollaborationEvent'][_0x4ed4a4(0x2c8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4ed4a4(0x353)](_0x2b7866)),this['_socket'][_0x4ed4a4(0x385)]({'cmd':G[_0x4ed4a4(0x514)],'routeKey':_0x9a8c54,'routeType':'','data':_0x2b7866});}catch(_0x2c8f81){this[_0x4ed4a4(0x328)][_0x4ed4a4(0x27a)](_0x2c8f81);}}['_scheduleCollaborationTimeoutTimer'](){const _0x10dbe9=_0x29ff00;var _0x3dc40d;this[_0x10dbe9(0x497)]=window[_0x10dbe9(0x34a)](()=>{const _0x3e0b8b=_0x10dbe9;this[_0x3e0b8b(0x497)]=null,this[_0x3e0b8b(0x47e)][_0x3e0b8b(0x318)]({'type':Ce[_0x3e0b8b(0x506)][_0x3e0b8b(0x341)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x3dc40d=this[_0x10dbe9(0x4ea)][_0x10dbe9(0x1ea)](Et))!=null?_0x3dc40d:oi);}[_0x29ff00(0x50e)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x29ff00(0x353)](_0x356198){const _0x524f9a=_0x29ff00;if(!this[_0x524f9a(0x47d)])return;const {data:_0x243d8e}=_0x356198,{unitID:_0x4286d7,changeset:_0x13e74b}=_0x243d8e,{mutations:_0x32eb48,type:_0x447499}=_0x13e74b;this[_0x524f9a(0x296)]={'unitId':_0x4286d7,'type':_0x447499,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':rn(_0x32eb48)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x11a1f6=_0x29ff00;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x11a1f6(0x328)]['error']('[CollaborationSession]',_0x11a1f6(0x571));return;}this[_0x11a1f6(0x296)][_0x11a1f6(0x3a8)]=performance['now'](),this[_0x11a1f6(0x296)][_0x11a1f6(0x24f)]=this[_0x11a1f6(0x296)][_0x11a1f6(0x3a8)]-this['_telemetryInfo'][_0x11a1f6(0x524)],this[_0x11a1f6(0x283)]['capture'](sn,this[_0x11a1f6(0x296)]),this[_0x11a1f6(0x296)]=null;}}[_0x29ff00(0x363)](){const _0x742a10=_0x29ff00;this[_0x742a10(0x296)]=null;}},exports['CollaborationSession']=un([de(0x2,a[_0x29ff00(0x4ac)]),de(0x3,te['IBeforeCloseService']),de(0x4,te['IMessageService']),de(0x5,a[_0x29ff00(0x64d)]),de(0x6,a[_0x29ff00(0x493)](a[_0x29ff00(0x430)])),de(0x7,a[_0x29ff00(0x493)](exports[_0x29ff00(0x1d6)])),de(0x8,a[_0x29ff00(0x493)](Rt)),de(0x9,a[_0x29ff00(0x437)](Hi[_0x29ff00(0x1e9)]))],exports['CollaborationSession']);var dn=Object['defineProperty'],fn=Object[_0x29ff00(0x316)],vn=(_0x5aee8c,_0x4ad513,_0x4af432,_0x2db095)=>{for(var _0x48e29e=_0x2db095>0x1?void 0x0:_0x2db095?fn(_0x4ad513,_0x4af432):_0x4ad513,_0x13d8bf=_0x5aee8c['length']-0x1,_0x53fff8;_0x13d8bf>=0x0;_0x13d8bf--)(_0x53fff8=_0x5aee8c[_0x13d8bf])&&(_0x48e29e=(_0x2db095?_0x53fff8(_0x4ad513,_0x4af432,_0x48e29e):_0x53fff8(_0x48e29e))||_0x48e29e);return _0x2db095&&_0x48e29e&&dn(_0x4ad513,_0x4af432,_0x48e29e),_0x48e29e;},pe=(_0x3d2753,_0xc51ae3)=>(_0x180548,_0x2069b5)=>_0xc51ae3(_0x180548,_0x2069b5,_0x3d2753);exports[_0x29ff00(0x5ea)]=class extends a[_0x29ff00(0x331)]{constructor(_0x1b4857,_0x50e375,_0x18415c,_0x33f16f,_0x2a129b,_0x2e8605,_0x4bea1e){const _0x2288fe=_0x29ff00;super(),I(this,'_socket$',new A[(_0x2288fe(0x26c))](void 0x0)),I(this,_0x2288fe(0x39e),this[_0x2288fe(0x337)][_0x2288fe(0x4c6)]()),I(this,'_candidateSocket',null),I(this,'_sessions',new Map()),I(this,_0x2288fe(0x1f8),new A['BehaviorSubject'](se[_0x2288fe(0x281)])),I(this,_0x2288fe(0x405),this['_status$'][_0x2288fe(0x4c6)]()),I(this,_0x2288fe(0x21a),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x2288fe(0x62f),0x0),I(this,_0x2288fe(0x25f)),I(this,_0x2288fe(0x622)),(this[_0x2288fe(0x1c1)]=_0x1b4857,this[_0x2288fe(0x20f)]=_0x50e375,this[_0x2288fe(0x47e)]=_0x18415c,this['_logService']=_0x33f16f,this[_0x2288fe(0x4ea)]=_0x2a129b,this[_0x2288fe(0x292)]=_0x2e8605,this[_0x2288fe(0x620)]=_0x4bea1e,this[_0x2288fe(0x4d5)]());}get['_socket'](){const _0x2cdee6=_0x29ff00;return this[_0x2cdee6(0x337)][_0x2cdee6(0x42e)]();}[_0x29ff00(0x4d5)](){const _0x4ff15f=_0x29ff00;this['_listenToOfflineEvent'](),this[_0x4ff15f(0x32d)]();}[_0x29ff00(0x5e6)](){const _0x3d41c4=_0x29ff00;super[_0x3d41c4(0x5e6)](),this[_0x3d41c4(0x2b7)][_0x3d41c4(0x3a1)](_0x183f82=>_0x183f82[_0x3d41c4(0x5e6)]()),this[_0x3d41c4(0x2b7)][_0x3d41c4(0x641)](),this[_0x3d41c4(0x1f8)][_0x3d41c4(0x22e)]();}async[_0x29ff00(0x429)](_0x5d478d){const _0xe921e8=_0x29ff00;if(this['_sessions']['has'](_0x5d478d))return this[_0xe921e8(0x2b7)][_0xe921e8(0x2ef)](_0x5d478d);this[_0xe921e8(0x513)]();const _0x81c15b=this['_injector']['createInstance'](exports[_0xe921e8(0x679)],_0x5d478d,this[_0xe921e8(0x337)][_0xe921e8(0x4c6)]());return this[_0xe921e8(0x2b7)][_0xe921e8(0x20a)](_0x5d478d,_0x81c15b),_0x81c15b;}[_0x29ff00(0x452)](_0x469f81){const _0x215a09=_0x29ff00;var _0x4be13f;const _0x3a2470=this['_sessions']['get'](_0x469f81);_0x3a2470&&(this['_sessions'][_0x215a09(0x3dc)](_0x469f81),_0x3a2470['close']()),this['_sessions'][_0x215a09(0x62a)]||(_0x4be13f=this[_0x215a09(0x491)])==null||_0x4be13f[_0x215a09(0x499)]();}[_0x29ff00(0x267)](){const _0x339a2a=_0x29ff00;this[_0x339a2a(0x62f)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x339a2a(0x5d2)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}async[_0x29ff00(0x434)](){const _0x5bba6e=_0x29ff00;var _0x3c75e7,_0x365ebc,_0x838ddb;const _0x35264c=this['_configService']['getConfig'](Q),_0x2ce67e=(_0x3c75e7=_0x35264c==null?void 0x0:_0x35264c[_0x5bba6e(0x27e)])!=null?_0x3c75e7:Gi;return(_0x838ddb=(_0x365ebc=(await this['_httpService'][_0x5bba6e(0x2ef)](_0x2ce67e,{'headers':{'Content-Type':_0x5bba6e(0x2bc)}}))[_0x5bba6e(0x55d)])==null?void 0x0:_0x365ebc[_0x5bba6e(0x352)])!=null?_0x838ddb:'';}['_createSocketURL'](_0x2cb635){const _0x1cc28b=_0x29ff00;var _0x18af17,_0x431eb7;const _0x257cf7=this[_0x1cc28b(0x4ea)][_0x1cc28b(0x1ea)](si),_0x574027=this[_0x1cc28b(0x4ea)][_0x1cc28b(0x1ea)](Q),_0xe221b8=(_0x431eb7=(_0x18af17=_0x574027==null?void 0x0:_0x574027[_0x1cc28b(0x50b)])!=null?_0x18af17:_0x257cf7)!=null?_0x431eb7:Vi,_0x319a42=new URL(_0xe221b8,window[_0x1cc28b(0x60d)][_0x1cc28b(0x655)]);return _0x319a42[_0x1cc28b(0x570)][_0x1cc28b(0x20a)](_0x1cc28b(0x528),_0x2cb635),_0x319a42['toString']();}async[_0x29ff00(0x3e8)](){const _0x40354a=_0x29ff00,_0x550578=await this['_getSessionTicket'](),_0x5e92e4=this[_0x40354a(0x327)](_0x550578),_0x45bc4f=this[_0x40354a(0x292)]['createSocket'](_0x5e92e4);return this['_candidateSocket']=_0x45bc4f,_0x45bc4f;}async[_0x29ff00(0x513)](){const _0x428971=_0x29ff00;var _0x5b9ad5,_0x38b98f;try{const _0x27484b=(_0x38b98f=(_0x5b9ad5=this[_0x428971(0x491)])!=null?_0x5b9ad5:this['_candidateSocket'])!=null?_0x38b98f:await this[_0x428971(0x3e8)]();if(_0x27484b){const _0x19d51b=_0x27484b[_0x428971(0x385)];_0x27484b[_0x428971(0x385)]=_0x3cfe83=>(this['_rescheduleHeartbeat'](),_0x19d51b[_0x428971(0x567)](_0x27484b,[_0x3cfe83])),_0x27484b['message$'][_0x428971(0x58f)](_0x2bf2e1=>this[_0x428971(0x399)](_0x27484b,_0x2bf2e1)),_0x27484b[_0x428971(0x1c3)][_0x428971(0x619)](V['take'](0x1))[_0x428971(0x58f)](_0x5f360a=>this['_logService'][_0x428971(0x27a)](_0x428971(0x5df),_0x5f360a)),_0x27484b['open$'][_0x428971(0x619)](V[_0x428971(0x3d7)](0x1))[_0x428971(0x58f)](()=>{const _0x3b4e3d=_0x428971;this[_0x3b4e3d(0x5e5)](_0x27484b);}),_0x27484b[_0x428971(0x642)]['pipe'](V[_0x428971(0x3d7)](0x1))[_0x428971(0x58f)](_0x5702d6=>{const _0x112ab9=_0x428971;this['_logService']['debug'](_0x112ab9(0x31d),'socket\x20close',_0x5702d6),this[_0x112ab9(0x614)]();});}}catch(_0x515c40){this[_0x428971(0x328)]['error'](_0x515c40),this[_0x428971(0x614)]();}}[_0x29ff00(0x5e5)](_0xccbcd2){const _0x51c870=_0x29ff00;this[_0x51c870(0x328)][_0x51c870(0x226)](_0x51c870(0x31d),_0x51c870(0x31c)),_0xccbcd2[_0x51c870(0x385)]({'cmd':G[_0x51c870(0x2ad)]}),this[_0x51c870(0x50d)]();}['_listenToOfflineEvent'](){const _0x46e64d=_0x29ff00;window[_0x46e64d(0x246)](_0x46e64d(0x4e0),()=>this[_0x46e64d(0x324)]());}[_0x29ff00(0x324)](){const _0x33d256=_0x29ff00;this[_0x33d256(0x21a)]=!0x1,this[_0x33d256(0x22c)]=null,this['_status$'][_0x33d256(0x49f)](se[_0x33d256(0x548)]),this[_0x33d256(0x337)][_0x33d256(0x49f)](null),this[_0x33d256(0x1b6)](),this['_clearHeartbeatTimer']();}[_0x29ff00(0x614)](){const _0x1e57dd=_0x29ff00;var _0x86cb2e;this[_0x1e57dd(0x324)](),this[_0x1e57dd(0x62f)]<((_0x86cb2e=this['_configService'][_0x1e57dd(0x1ea)](ai))!=null?_0x86cb2e:qi)?(this[_0x1e57dd(0x47e)][_0x1e57dd(0x318)]({'key':_0x1e57dd(0x589),'type':Ce['MessageType'][_0x1e57dd(0x390)],'content':this[_0x1e57dd(0x20f)]['t'](_0x1e57dd(0x443))}),this[_0x1e57dd(0x1c9)]()):this['_messageService'][_0x1e57dd(0x318)]({'key':_0x1e57dd(0x589),'type':Ce['MessageType'][_0x1e57dd(0x341)],'content':this['_localeService']['t'](_0x1e57dd(0x5b5))});}[_0x29ff00(0x32d)](){const _0x593243=_0x29ff00,_0x3adfbb=()=>{const _0x580388=_0x2f26;this[_0x580388(0x491)]||this[_0x580388(0x267)]();},_0x47d19b=()=>{const _0x36a2cc=_0x2f26;this['_socket']||document['visibilityState']===_0x36a2cc(0x30e)||this[_0x36a2cc(0x267)]();};window[_0x593243(0x246)](_0x593243(0x436),_0x3adfbb),document[_0x593243(0x246)](_0x593243(0x371),_0x47d19b);}['_tryReconnect'](){const _0x358106=_0x29ff00;var _0x31d9f6;const _0x5d33db=this[_0x358106(0x62f)],_0x227765=this[_0x358106(0x4ea)]['getConfig'](Q),_0x398337=_0x5d33db===0x0?0x0:((_0x31d9f6=_0x227765==null?void 0x0:_0x227765['retryConnectingInterval'])!=null?_0x31d9f6:Ki)*0x2**_0x5d33db;this['_retryConnectingTimer']=window[_0x358106(0x34a)](()=>{const _0x1f075d=_0x358106;clearTimeout(this[_0x1f075d(0x5d2)]),this[_0x1f075d(0x5d2)]=null,this[_0x1f075d(0x513)]();},_0x398337),this['_retryCount']+=0x1;}[_0x29ff00(0x399)](_0x3547ab,_0x5c7833){const _0x208a38=_0x29ff00,{cmd:_0x441177}=_0x5c7833;_0x441177===G['HELLO']&&!this[_0x208a38(0x21a)]&&(_0x3547ab[_0x208a38(0x35e)]=_0x5c7833[_0x208a38(0x3eb)][_0x208a38(0x35e)],this[_0x208a38(0x337)][_0x208a38(0x49f)](_0x3547ab),this[_0x208a38(0x1f8)]['next'](se[_0x208a38(0x572)]),this[_0x208a38(0x21a)]=!0x0,this[_0x208a38(0x22c)]=null),_0x441177===G[_0x208a38(0x5c6)]&&this[_0x208a38(0x1b6)](),this[_0x208a38(0x50d)]();}[_0x29ff00(0x50d)](){const _0x3b8240=_0x29ff00;var _0x4e1d88;this[_0x3b8240(0x1e6)](),this[_0x3b8240(0x25f)]=window[_0x3b8240(0x34a)](()=>this[_0x3b8240(0x422)](),(_0x4e1d88=this[_0x3b8240(0x4ea)][_0x3b8240(0x1ea)](ri))!=null?_0x4e1d88:Yi);}['_sendHeartbeat'](){const _0x2ae410=_0x29ff00;this[_0x2ae410(0x491)][_0x2ae410(0x385)]({'cmd':G['HEARTBEAT']}),this[_0x2ae410(0x3bf)]();}[_0x29ff00(0x3bf)](){const _0x96acf8=_0x29ff00;var _0x22b010;this[_0x96acf8(0x622)]=window[_0x96acf8(0x34a)](()=>this[_0x96acf8(0x614)](),(_0x22b010=this[_0x96acf8(0x4ea)][_0x96acf8(0x1ea)](Et))!=null?_0x22b010:oi);}['_clearHeartbeatTimer'](){const _0x204035=_0x29ff00;this[_0x204035(0x25f)]!=null&&(clearTimeout(this[_0x204035(0x25f)]),this[_0x204035(0x25f)]=null);}[_0x29ff00(0x1b6)](){const _0x5eaad4=_0x29ff00;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x5eaad4(0x622)]),this[_0x5eaad4(0x622)]=null);}},exports['CollaborationSessionService']=vn([pe(0x0,a['Inject'](a[_0x29ff00(0x615)])),pe(0x1,a[_0x29ff00(0x493)](a[_0x29ff00(0x430)])),pe(0x2,te[_0x29ff00(0x47f)]),pe(0x3,a[_0x29ff00(0x4ac)]),pe(0x4,a[_0x29ff00(0x64d)]),pe(0x5,Tt),pe(0x6,a[_0x29ff00(0x493)](z[_0x29ff00(0x1be)]))],exports[_0x29ff00(0x5ea)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x29ff00(0x3bc)]((s+0x100)[_0x29ff00(0x3ef)](0x10)[_0x29ff00(0x3bb)](0x1));function Sn(_0x45d725,_0x4b54aa=0x0){return(Y[_0x45d725[_0x4b54aa+0x0]]+Y[_0x45d725[_0x4b54aa+0x1]]+Y[_0x45d725[_0x4b54aa+0x2]]+Y[_0x45d725[_0x4b54aa+0x3]]+'-'+Y[_0x45d725[_0x4b54aa+0x4]]+Y[_0x45d725[_0x4b54aa+0x5]]+'-'+Y[_0x45d725[_0x4b54aa+0x6]]+Y[_0x45d725[_0x4b54aa+0x7]]+'-'+Y[_0x45d725[_0x4b54aa+0x8]]+Y[_0x45d725[_0x4b54aa+0x9]]+'-'+Y[_0x45d725[_0x4b54aa+0xa]]+Y[_0x45d725[_0x4b54aa+0xb]]+Y[_0x45d725[_0x4b54aa+0xc]]+Y[_0x45d725[_0x4b54aa+0xd]]+Y[_0x45d725[_0x4b54aa+0xe]]+Y[_0x45d725[_0x4b54aa+0xf]])['toLowerCase']();}let Ze;const pn=new Uint8Array(0x10);function mn(){const _0xbe7b43=_0x29ff00;if(!Ze){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0xbe7b43(0x2e7));Ze=crypto['getRandomValues'][_0xbe7b43(0x4da)](crypto);}return Ze(pn);}const gn=typeof crypto<'u'&&crypto[_0x29ff00(0x540)]&&crypto[_0x29ff00(0x540)][_0x29ff00(0x4da)](crypto),Nt={'randomUUID':gn};function In(_0x366a00,_0x4ccf8b,_0x596d03){const _0x5ad740=_0x29ff00;if(Nt[_0x5ad740(0x540)]&&!_0x4ccf8b&&!_0x366a00)return Nt[_0x5ad740(0x540)]();_0x366a00=_0x366a00||{};const _0x1e7084=_0x366a00[_0x5ad740(0x581)]||(_0x366a00[_0x5ad740(0x5ff)]||mn)();return _0x1e7084[0x6]=_0x1e7084[0x6]&0xf|0x40,_0x1e7084[0x8]=_0x1e7084[0x8]&0x3f|0x80,Sn(_0x1e7084);}var Cn=Object['defineProperty'],En=Object[_0x29ff00(0x316)],bn=(_0x4093bf,_0x4e4a52,_0x364531,_0x3f95f3)=>{const _0x1d0b5d=_0x29ff00;for(var _0x263812=_0x3f95f3>0x1?void 0x0:_0x3f95f3?En(_0x4e4a52,_0x364531):_0x4e4a52,_0xa4a62=_0x4093bf[_0x1d0b5d(0x5e7)]-0x1,_0x15b905;_0xa4a62>=0x0;_0xa4a62--)(_0x15b905=_0x4093bf[_0xa4a62])&&(_0x263812=(_0x3f95f3?_0x15b905(_0x4e4a52,_0x364531,_0x263812):_0x15b905(_0x263812))||_0x263812);return _0x3f95f3&&_0x263812&&Cn(_0x4e4a52,_0x364531,_0x263812),_0x263812;},Qe=(_0x1fa657,_0x51b8ff)=>(_0x44c807,_0x29ea4e)=>_0x51b8ff(_0x44c807,_0x29ea4e,_0x1fa657);let Be=class{constructor(_0x2e6edf,_0x9d7171,_0x3baa1a){const _0x2171c7=_0x29ff00;this[_0x2171c7(0x1c1)]=_0x2e6edf,this[_0x2171c7(0x449)]=_0x9d7171,this[_0x2171c7(0x4bc)]=_0x3baa1a;}[_0x29ff00(0x350)](_0x309981){const _0x5d4e85=_0x29ff00;this[_0x5d4e85(0x273)](_0x309981),this[_0x5d4e85(0x469)](_0x309981);}['transformRemoteChangeset'](_0x69e750){const _0x52d778=_0x29ff00,{unitID:_0x2295a1}=_0x69e750,_0xa657b1=this[_0x52d778(0x4bc)][_0x52d778(0x40c)](_0x2295a1)[_0x52d778(0x314)](J[_0x52d778(0x320)]),{redoCache:_0x3ab822}=_0xa657b1[_0x52d778(0x1fc)]();if(_0x3ab822[_0x52d778(0x5e7)]===0x0)return _0x69e750;let _0x42b173=a[_0x52d778(0x302)]['deepClone'](_0x69e750['mutations'][0x0]);for(let _0x527c08=0x0;_0x527c08<_0x3ab822[_0x52d778(0x5e7)];_0x527c08++){const _0x13e910={'id':_0x52d778(0x356),'params':{..._0x3ab822[_0x527c08]}},_0x2d62a8=this[_0x52d778(0x449)][_0x52d778(0x43c)](_0x42b173,_0x13e910,!0x1);if(p[_0x52d778(0x4b4)](_0x2d62a8))throw _0x2d62a8[_0x52d778(0x27a)];_0x42b173=_0x2d62a8[_0x52d778(0x475)];}return{...a[_0x52d778(0x302)][_0x52d778(0x64e)](_0x69e750),'mutations':[_0x42b173]};}[_0x29ff00(0x273)](_0x1943bb){const _0x1a5d2d=_0x29ff00,{unitID:_0x2640c7}=_0x1943bb,_0x17aa59=this[_0x1a5d2d(0x4bc)]['getRenderById'](_0x2640c7)[_0x1a5d2d(0x314)](J[_0x1a5d2d(0x320)]),{undoCache:_0x56cd42,redoCache:_0x2d2eb4}=_0x17aa59[_0x1a5d2d(0x1fc)]();if(_0x56cd42[_0x1a5d2d(0x5e7)]===0x0||_0x2d2eb4['length']===0x0)return;const _0xeda61e=[],_0x180734=[];let _0xf77d9d=a[_0x1a5d2d(0x302)][_0x1a5d2d(0x64e)](_0x1943bb[_0x1a5d2d(0x219)][0x0]),_0x51c98d=a['Tools'][_0x1a5d2d(0x64e)](_0x1943bb['mutations'][0x0]);for(let _0x2b0943=_0x56cd42[_0x1a5d2d(0x5e7)]-0x1;_0x2b0943>=0x0;_0x2b0943--){const _0x5274fc={'id':'doc.mutation.rich-text-editing','params':{..._0x56cd42[_0x2b0943]}},_0x346fd6={'id':_0x1a5d2d(0x356),'params':{..._0x2d2eb4[_0x2b0943]}},_0x483e33=this[_0x1a5d2d(0x449)][_0x1a5d2d(0x43c)](_0xf77d9d,_0x5274fc,!0x1),_0x64f0c6=this[_0x1a5d2d(0x449)]['transformMutation'](_0x51c98d,_0x346fd6,!0x1);if(p[_0x1a5d2d(0x4b4)](_0x483e33))throw _0x483e33[_0x1a5d2d(0x27a)];if(p['isTransformMutationFailure'](_0x64f0c6))throw _0x64f0c6[_0x1a5d2d(0x27a)];_0xeda61e['unshift'](_0x483e33['m2Prime'][_0x1a5d2d(0x447)]),_0x180734[_0x1a5d2d(0x24b)](_0x64f0c6[_0x1a5d2d(0x239)]['params']),_0xf77d9d=_0x483e33[_0x1a5d2d(0x475)],_0x51c98d=_0x64f0c6[_0x1a5d2d(0x475)];}_0x17aa59[_0x1a5d2d(0x38a)]({'undoCache':_0xeda61e,'redoCache':_0x180734});}[_0x29ff00(0x469)](_0x5122c9){const _0x14379e=_0x29ff00,{unitID:_0x1f16af}=_0x5122c9,_0x18d308=this['_renderManagerService']['getRenderById'](_0x1f16af)[_0x14379e(0x314)](J[_0x14379e(0x320)]),_0x2991fe=_0x18d308[_0x14379e(0x32b)]();if(_0x2991fe==null)return;const _0x8eeca7=[{'id':_0x14379e(0x356),'params':{'unitId':_0x5122c9['unitID'],'actions':null,'textRanges':[_0x2991fe]}}],_0x444d11=this[_0x14379e(0x449)][_0x14379e(0x268)](_0x5122c9,_0x8eeca7);if(!p['isTransformMutationsWithChangesetSuccess'](_0x444d11))throw _0x444d11[_0x14379e(0x27a)];const _0x483af9=_0x444d11[_0x14379e(0x239)][0x0][_0x14379e(0x447)][_0x14379e(0x49e)];Array[_0x14379e(0x400)](_0x483af9)&&_0x483af9[_0x14379e(0x5e7)]&&_0x18d308[_0x14379e(0x393)](_0x483af9[0x0]);}};Be=bn([Qe(0x0,a[_0x29ff00(0x493)](a['Injector'])),Qe(0x1,p[_0x29ff00(0x38f)]),Qe(0x2,K[_0x29ff00(0x5b7)])],Be);var Tn=Object[_0x29ff00(0x64a)],Rn=Object[_0x29ff00(0x316)],yn=(_0xd576ab,_0x397981,_0x31cd4b,_0x3449bd)=>{const _0x42ccc0=_0x29ff00;for(var _0x12630f=_0x3449bd>0x1?void 0x0:_0x3449bd?Rn(_0x397981,_0x31cd4b):_0x397981,_0x5daa2c=_0xd576ab[_0x42ccc0(0x5e7)]-0x1,_0x43faeb;_0x5daa2c>=0x0;_0x5daa2c--)(_0x43faeb=_0xd576ab[_0x5daa2c])&&(_0x12630f=(_0x3449bd?_0x43faeb(_0x397981,_0x31cd4b,_0x12630f):_0x43faeb(_0x12630f))||_0x12630f);return _0x3449bd&&_0x12630f&&Tn(_0x397981,_0x31cd4b,_0x12630f),_0x12630f;},we=(_0x3b30af,_0x305e30)=>(_0x4d6aea,_0x27dff5)=>_0x305e30(_0x4d6aea,_0x27dff5,_0x3b30af);exports[_0x29ff00(0x46a)]=class extends a[_0x29ff00(0x331)]{constructor(_0xf891fb,_0x13de26,_0xda5b12,_0x2f6290,_0x576c91){const _0x5cba76=_0x29ff00;super(),I(this,_0x5cba76(0x656),new Map()),I(this,_0x5cba76(0x233),new Map()),I(this,'_disabled',!0x1),(this['_configService']=_0xf891fb,this['_localStorageService']=_0x13de26,this[_0x5cba76(0x1c0)]=_0xda5b12,this['_localeService']=_0x2f6290,this[_0x5cba76(0x2a8)]=_0x576c91,this[_0x5cba76(0x637)]());}[_0x29ff00(0x2d9)](){const _0x4c117c=_0x29ff00;this[_0x4c117c(0x1f2)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x29ff00(0x5e6)](){const _0x125a45=_0x29ff00;this[_0x125a45(0x312)]()['then'](()=>super[_0x125a45(0x5e6)]());}async[_0x29ff00(0x26d)](_0x26e995){const _0x102fee=_0x29ff00;return this[_0x102fee(0x1f2)]?null:this[_0x102fee(0x254)][_0x102fee(0x62e)](Lt(_0x26e995));}async[_0x29ff00(0x5c2)](_0x5b80ce,_0x251968){const _0x4a2737=_0x29ff00;return!!this[_0x4a2737(0x254)][_0x4a2737(0x28e)](_0x5b80ce,_0x251968);}['updateOfflineData'](_0x2411d4,_0x4da575,_0x2ba78c,_0x501a90){const _0x5f5c9c=_0x29ff00,_0x4cc35a=this[_0x5f5c9c(0x2a8)][_0x5f5c9c(0x309)](_0x2411d4);this[_0x5f5c9c(0x656)][_0x5f5c9c(0x20a)](_0x2411d4,{'unitID':_0x2411d4,'type':_0x4da575,'awaitingChangeset':_0x2ba78c,'mutations':_0x501a90,'rev':_0x4cc35a}),this['_saveTaskMap'][_0x5f5c9c(0x38d)](_0x2411d4)||this[_0x5f5c9c(0x5a5)](_0x2411d4);}[_0x29ff00(0x5a5)](_0x172202){const _0x447864=_0x29ff00,_0x5e1bd3=this[_0x447864(0x5f7)]();_0x5e1bd3===0x0?this[_0x447864(0x25a)](_0x172202):this['_saveTaskMap'][_0x447864(0x20a)](_0x172202,setTimeout(()=>this[_0x447864(0x25a)](_0x172202),_0x5e1bd3));}[_0x29ff00(0x5f7)](){const _0x52c798=_0x29ff00;var _0x47672d;return(_0x47672d=this[_0x52c798(0x4ea)][_0x52c798(0x1ea)](ci))!=null?_0x47672d:zi;}[_0x29ff00(0x25a)](_0x2efd93){const _0x4c1407=_0x29ff00,_0x3662e8=this[_0x4c1407(0x233)][_0x4c1407(0x2ef)](_0x2efd93);return _0x3662e8!==void 0x0&&window[_0x4c1407(0x453)](_0x3662e8),this['_localStorageService'][_0x4c1407(0x28e)](Lt(_0x2efd93),this[_0x4c1407(0x656)][_0x4c1407(0x2ef)](_0x2efd93))[_0x4c1407(0x5bf)](()=>this[_0x4c1407(0x233)][_0x4c1407(0x3dc)](_0x2efd93));}async[_0x29ff00(0x312)](){const _0x1a870d=_0x29ff00,_0x1c9cf8=[];this[_0x1a870d(0x233)][_0x1a870d(0x3a1)]((_0xfbc44d,_0x1cea38)=>{const _0x3d971f=_0x1a870d;window['clearTimeout'](_0xfbc44d),_0x1c9cf8[_0x3d971f(0x3bc)](this['_saveCache'](_0x1cea38)[_0x3d971f(0x5bf)](()=>{const _0x337ceb=_0x3d971f;this[_0x337ceb(0x233)][_0x337ceb(0x3dc)](_0x1cea38);}));}),await Promise[_0x1a870d(0x307)](_0x1c9cf8);}[_0x29ff00(0x637)](){const _0x3c28c8=_0x29ff00;this[_0x3c28c8(0x665)](this['_beforeCloseService'][_0x3c28c8(0x3f9)](()=>{const _0x4c6727=_0x3c28c8;if(this[_0x4c6727(0x233)][_0x4c6727(0x62a)])return this[_0x4c6727(0x20f)]['t'](_0x4c6727(0x3ac));}));}},exports[_0x29ff00(0x46a)]=yn([we(0x0,a[_0x29ff00(0x64d)]),we(0x1,a[_0x29ff00(0x43a)]),we(0x2,te[_0x29ff00(0x670)]),we(0x3,a[_0x29ff00(0x493)](a['LocaleService'])),we(0x4,a[_0x29ff00(0x493)](p[_0x29ff00(0x59a)]))],exports[_0x29ff00(0x46a)]);function Lt(_0x1f8859){const _0x20cb22=_0x29ff00;return _0x20cb22(0x43f)+_0x1f8859;}var On=Object[_0x29ff00(0x64a)],Dn=Object[_0x29ff00(0x316)],Pn=(_0x290510,_0x5bdc46,_0x527a49,_0x3a30cf)=>{for(var _0x13f376=_0x3a30cf>0x1?void 0x0:_0x3a30cf?Dn(_0x5bdc46,_0x527a49):_0x5bdc46,_0x1953f6=_0x290510['length']-0x1,_0x4e8705;_0x1953f6>=0x0;_0x1953f6--)(_0x4e8705=_0x290510[_0x1953f6])&&(_0x13f376=(_0x3a30cf?_0x4e8705(_0x5bdc46,_0x527a49,_0x13f376):_0x4e8705(_0x13f376))||_0x13f376);return _0x3a30cf&&_0x13f376&&On(_0x5bdc46,_0x527a49,_0x13f376),_0x13f376;},et=(_0x4776bf,_0x50d005)=>(_0x531141,_0x1a1ba6)=>_0x50d005(_0x531141,_0x1a1ba6,_0x4776bf);function wn(_0x4c1c6a){const {unitID:_0x2e6953,mutations:_0x543334}=_0x4c1c6a;return{'unitId':_0x2e6953,'subUnitId':_0x543334[0x0]['params']['subUnitId']};}let ke=class{constructor(_0x5857dc,_0x27485d,_0x16c2d7){const _0x21c029=_0x29ff00;this[_0x21c029(0x1c1)]=_0x5857dc,this[_0x21c029(0x449)]=_0x27485d,this[_0x21c029(0x4a1)]=_0x16c2d7;}[_0x29ff00(0x2c1)](_0x41ff13){const _0x3fea0e=_0x29ff00;var _0x100d03,_0x5e9b70,_0x1ffcb1,_0x592413;const _0x469e7f=this[_0x3fea0e(0x1c1)][_0x3fea0e(0x2ef)](k[_0x3fea0e(0x210)]),{unitId:_0x18d056,subUnitId:_0x2b88c9}=wn(_0x41ff13),_0x301c97=_0x469e7f['getWorkbookSelections'](_0x18d056)[_0x3fea0e(0x5d6)](),_0x3a0bc7=(_0x5e9b70=(_0x100d03=this['_instanceService'][_0x3fea0e(0x3ad)](_0x18d056))==null?void 0x0:_0x100d03[_0x3fea0e(0x42c)]())==null?void 0x0:_0x5e9b70[_0x3fea0e(0x360)]();if(_0x301c97[_0x3fea0e(0x5e7)]===0x0||!_0x18d056||!_0x2b88c9)return;const _0x35de81=[{'id':k[_0x3fea0e(0x23f)]['id'],'params':{'unitId':_0x18d056,'subUnitId':_0x3a0bc7,'selections':a[_0x3fea0e(0x302)][_0x3fea0e(0x64e)](_0x301c97)}}],_0x2f6447=this['_transformService'][_0x3fea0e(0x268)](_0x41ff13,_0x35de81);if(!p['isTransformMutationsWithChangesetSuccess'](_0x2f6447))throw _0x2f6447['error'];const _0x11955a=(_0x592413=(_0x1ffcb1=_0x2f6447['m2Prime'][0x0])==null?void 0x0:_0x1ffcb1[_0x3fea0e(0x447)])==null?void 0x0:_0x592413[_0x3fea0e(0x338)];if(Array[_0x3fea0e(0x400)](_0x11955a)&&_0x11955a[_0x3fea0e(0x5e7)]){if(_0x11955a[_0x3fea0e(0x5e7)]===_0x35de81[0x0][_0x3fea0e(0x447)][_0x3fea0e(0x338)][_0x3fea0e(0x5e7)]&&_0x11955a[_0x3fea0e(0x332)]((_0x36400f,_0x16bacb)=>a[_0x3fea0e(0x5a6)]['equals'](_0x36400f[_0x3fea0e(0x3ff)],_0x35de81[0x0]['params']['selections'][_0x16bacb][_0x3fea0e(0x3ff)])))return;this['_injector'][_0x3fea0e(0x2ef)](a[_0x3fea0e(0x587)])['executeCommand'](k[_0x3fea0e(0x23f)]['id'],{'unitId':_0x18d056,'subUnitId':_0x3a0bc7,'selections':_0x11955a});}}};ke=Pn([et(0x0,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),et(0x1,p[_0x29ff00(0x38f)]),et(0x2,a[_0x29ff00(0x37f)])],ke);const ze=a['createIdentifier'](_0x29ff00(0x230));var vi=(_0x39fef5=>(_0x39fef5[_0x39fef5['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x29ff00(0x27d),_0x39fef5[_0x39fef5['OTHER_CLIENTS_EDITING']=0x1]=_0x29ff00(0x574),_0x39fef5))(vi||{});const xt=0x7530,jt='ACTIVE_UNIT_EVENT_CHANNEL';class Un extends a['Disposable']{constructor(){const _0x119cb6=_0x29ff00;super(),I(this,_0x119cb6(0x1e1),a['Tools'][_0x119cb6(0x512)]()),I(this,_0x119cb6(0x4d7),new Set()),I(this,_0x119cb6(0x57c),new Map()),I(this,_0x119cb6(0x3ba),null),I(this,'_clearOtherTimers',new Map()),I(this,_0x119cb6(0x5fc),new Map()),this['_init']();}[_0x29ff00(0x5e6)](){const _0x508635=_0x29ff00;super[_0x508635(0x5e6)](),this[_0x508635(0x66c)]['forEach']((_0x58f607,_0x3d1557)=>this[_0x508635(0x209)](_0x3d1557)),this[_0x508635(0x3ba)]&&window[_0x508635(0x634)](this[_0x508635(0x3ba)]);}[_0x29ff00(0x1ff)](_0x36b855){const _0xbba253=_0x29ff00;return this[_0xbba253(0x4a9)](_0x36b855)[_0xbba253(0x619)](A[_0xbba253(0x484)]());}[_0x29ff00(0x607)](_0x51afed){const _0x10754d=_0x29ff00;this[_0x10754d(0x4d7)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x10754d(0x4d7)]['add'](_0x51afed),this[_0x10754d(0x2aa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x51afed],'isForwarded':!0x1});}[_0x29ff00(0x270)](_0x13c5cf){const _0x542361=_0x29ff00;this[_0x542361(0x4d7)][_0x542361(0x3dc)](_0x13c5cf),this['_selfUnitIDs'][_0x542361(0x62a)]===0x0&&this[_0x542361(0x3ba)]&&window[_0x542361(0x634)](this[_0x542361(0x3ba)]);}['_init'](){const _0xffb28a=_0x29ff00;this[_0xffb28a(0x665)](a[_0xffb28a(0x372)](A[_0xffb28a(0x61c)](window,'storage')[_0xffb28a(0x58f)](_0x57b045=>{const _0x54f6a1=_0xffb28a;if(_0x57b045[_0x54f6a1(0x425)]!==jt||!_0x57b045[_0x54f6a1(0x67e)])return;const _0x1f9798=JSON[_0x54f6a1(0x1c4)](_0x57b045[_0x54f6a1(0x67e)]);this[_0x54f6a1(0x1c2)](_0x1f9798);}))),window[_0xffb28a(0x246)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xffb28a(0x4e3)](this[_0xffb28a(0x4d7)])}));}[_0x29ff00(0x1c2)](_0x2a0aa1){const _0x3705dd=_0x29ff00;switch(_0x2a0aa1[_0x3705dd(0x2eb)]){case 0x0:this['_handleJoinEvent'](_0x2a0aa1);break;case 0x1:this[_0x3705dd(0x4d4)](_0x2a0aa1);break;case 0x2:this[_0x3705dd(0x457)](_0x2a0aa1);break;}}['_handleJoinEvent'](_0x72f7a0){const {unitIDs:_0x7b4deb,memberID:_0x23ec5e,isForwarded:_0x27dd86}=_0x72f7a0;_0x7b4deb['forEach'](_0x9a5603=>{const _0x23cb52=_0x2f26;if(!_0x27dd86&&this[_0x23cb52(0x57c)][_0x23cb52(0x38d)](_0x9a5603)&&this[_0x23cb52(0x4a9)](_0x9a5603)['next'](0x1),!this[_0x23cb52(0x57c)][_0x23cb52(0x38d)](_0x9a5603)||!this[_0x23cb52(0x57c)][_0x23cb52(0x2ef)](_0x9a5603)[_0x23cb52(0x38d)](_0x23ec5e)){const _0x5c0d34=this['_unitOnClients'][_0x23cb52(0x2ef)](_0x9a5603)||new Set();_0x5c0d34['add'](_0x23ec5e),this[_0x23cb52(0x57c)][_0x23cb52(0x20a)](_0x9a5603,_0x5c0d34),this['_scheduleClearOtherTimer'](_0x23ec5e);}}),_0x27dd86||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x29ff00(0x24d)](_0x1fd227){const _0x17f71f=_0x29ff00;this[_0x17f71f(0x209)](_0x1fd227);const _0x5ebdf7=window[_0x17f71f(0x34a)](()=>{const _0x56cdef=_0x17f71f;this[_0x56cdef(0x57c)][_0x56cdef(0x3a1)](_0x15e089=>{const _0x245477=_0x56cdef;_0x15e089[_0x245477(0x3dc)](_0x1fd227);});},xt*0x2);this['_clearOtherTimers'][_0x17f71f(0x20a)](_0x1fd227,_0x5ebdf7);}[_0x29ff00(0x209)](_0x3fd807){const _0x4aeef9=_0x29ff00;if(this[_0x4aeef9(0x66c)][_0x4aeef9(0x38d)](_0x3fd807)){const _0x2a4d7e=this[_0x4aeef9(0x66c)][_0x4aeef9(0x2ef)](_0x3fd807);_0x2a4d7e&&window[_0x4aeef9(0x453)](_0x2a4d7e),this[_0x4aeef9(0x66c)][_0x4aeef9(0x20a)](_0x3fd807,null);}}[_0x29ff00(0x4d4)](_0x5d91e7){const _0x20ae62=_0x29ff00,{memberID:_0x1239ab,unitIDs:_0x110a81}=_0x5d91e7;_0x110a81[_0x20ae62(0x3a1)](_0x117d90=>{const _0x21cb8d=_0x20ae62;var _0x43429b;const _0x4fde8d=this['_unitOnClients'][_0x21cb8d(0x2ef)](_0x117d90);_0x4fde8d&&(_0x4fde8d[_0x21cb8d(0x3dc)](_0x1239ab),(_0x43429b=this['_ensureSubject'](_0x117d90))==null||_0x43429b[_0x21cb8d(0x49f)](_0x4fde8d[_0x21cb8d(0x62a)]===0x0?0x0:0x1));}),this[_0x20ae62(0x209)](_0x1239ab);}['_handleHeartbeatEvent'](_0x4adb85){const _0x3a106b=_0x29ff00;this[_0x3a106b(0x24d)](_0x4adb85[_0x3a106b(0x35e)]);}[_0x29ff00(0x2aa)](_0x4e96df){const _0x4f16a1=_0x29ff00;localStorage[_0x4f16a1(0x28e)](jt,JSON[_0x4f16a1(0x65e)](_0x4e96df));}[_0x29ff00(0x610)](){const _0x4f5d35=_0x29ff00;this[_0x4f5d35(0x3ba)]=window[_0x4f5d35(0x2de)](()=>{const _0x49f8ab=_0x4f5d35;this[_0x49f8ab(0x2aa)]({'type':0x2,'memberID':this[_0x49f8ab(0x1e1)]});},xt);}['_ensureSubject'](_0x43b522){const _0x3f99a5=_0x29ff00;return this['_unitStatus']['has'](_0x43b522)||this['_unitStatus'][_0x3f99a5(0x20a)](_0x43b522,new A[(_0x3f99a5(0x26c))](0x0)),this[_0x3f99a5(0x5fc)][_0x3f99a5(0x2ef)](_0x43b522);}}var Mn=Object[_0x29ff00(0x64a)],An=Object['getOwnPropertyDescriptor'],Nn=(_0x411315,_0x2ef8d2,_0x3d5b05,_0x3b8c67)=>{const _0x4711b1=_0x29ff00;for(var _0x23c6a0=_0x3b8c67>0x1?void 0x0:_0x3b8c67?An(_0x2ef8d2,_0x3d5b05):_0x2ef8d2,_0x33c498=_0x411315[_0x4711b1(0x5e7)]-0x1,_0x85cd2f;_0x33c498>=0x0;_0x33c498--)(_0x85cd2f=_0x411315[_0x33c498])&&(_0x23c6a0=(_0x3b8c67?_0x85cd2f(_0x2ef8d2,_0x3d5b05,_0x23c6a0):_0x85cd2f(_0x23c6a0))||_0x23c6a0);return _0x3b8c67&&_0x23c6a0&&Mn(_0x2ef8d2,_0x3d5b05,_0x23c6a0),_0x23c6a0;},tt=(_0x54ed15,_0x5c6552)=>(_0x1bc32a,_0x2736e1)=>_0x5c6552(_0x1bc32a,_0x2736e1,_0x54ed15);let We=class{constructor(_0x413ab4,_0x1d58c9,_0x206033){const _0x4f71f7=_0x29ff00;this['_injector']=_0x413ab4,this[_0x4f71f7(0x449)]=_0x1d58c9,this[_0x4f71f7(0x1cc)]=_0x206033;}['transformStateCache'](_0x9782c6){const _0x21a298=_0x29ff00;this[_0x21a298(0x4b6)](_0x9782c6);}[_0x29ff00(0x5ef)](_0x307627){const _0x4412b5=_0x29ff00,{unitID:_0x32f9f9}=_0x307627,{collaboration:_0x467b9d}=this[_0x4412b5(0x1cc)][_0x4412b5(0x66f)](_0x32f9f9);if(_0x467b9d['length']===0x0)return _0x307627;let _0x16d714=a[_0x4412b5(0x302)]['deepClone'](_0x307627['mutations'][0x0]);for(let _0x38d82c=0x0;_0x38d82c<_0x467b9d[_0x4412b5(0x5e7)];_0x38d82c++){const _0x2d5d54={'id':_0x4412b5(0x356),'params':{'unitId':_0x467b9d[_0x38d82c]['unitId'],..._0x467b9d[_0x38d82c][_0x4412b5(0x44f)]}},_0x290b5f=this[_0x4412b5(0x449)][_0x4412b5(0x43c)](_0x16d714,_0x2d5d54,!0x1);if(p[_0x4412b5(0x4b4)](_0x290b5f))throw _0x290b5f[_0x4412b5(0x27a)];_0x16d714=_0x290b5f[_0x4412b5(0x475)];}return{...a['Tools']['deepClone'](_0x307627),'mutations':[_0x16d714]};}[_0x29ff00(0x4b6)](_0xf20c1b){const _0x41359a=_0x29ff00,{unitID:_0x3147b4}=_0xf20c1b,{history:_0x2db7f4,collaboration:_0xc93e56}=this[_0x41359a(0x1cc)][_0x41359a(0x66f)](_0x3147b4);if(_0x2db7f4[_0x41359a(0x5e7)]===0x0&&_0xc93e56['length']===0x0)return;const _0x54b3cc=[],_0x177771=[];let _0x2d4dc2=a[_0x41359a(0x302)][_0x41359a(0x64e)](_0xf20c1b[_0x41359a(0x219)][0x0]),_0x1fa874=a[_0x41359a(0x302)][_0x41359a(0x64e)](_0xf20c1b[_0x41359a(0x219)][0x0]);for(let _0x12c113=_0x2db7f4[_0x41359a(0x5e7)]-0x1;_0x12c113>=0x0;_0x12c113--){const _0x2d940a={'id':_0x41359a(0x356),'params':{'unitId':_0x2db7f4[_0x12c113]['unitId'],..._0x2db7f4[_0x12c113][_0x41359a(0x1c8)]}},_0x23053a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2db7f4[_0x12c113][_0x41359a(0x21b)],..._0x2db7f4[_0x12c113][_0x41359a(0x44f)]}},_0x37eadf=this[_0x41359a(0x449)]['transformMutation'](_0x2d4dc2,_0x2d940a,!0x1),_0x57c1c8=this['_transformService'][_0x41359a(0x43c)](_0x1fa874,_0x23053a,!0x1);if(p[_0x41359a(0x4b4)](_0x37eadf))throw _0x37eadf[_0x41359a(0x27a)];if(p[_0x41359a(0x4b4)](_0x57c1c8))throw _0x57c1c8[_0x41359a(0x27a)];_0x54b3cc['unshift']({..._0x2db7f4[_0x12c113],'undoState':_0x37eadf[_0x41359a(0x239)][_0x41359a(0x447)],'redoState':_0x57c1c8[_0x41359a(0x239)][_0x41359a(0x447)]}),_0x2d4dc2=_0x37eadf[_0x41359a(0x475)],_0x1fa874=_0x57c1c8[_0x41359a(0x475)];}_0x2d4dc2=a[_0x41359a(0x302)][_0x41359a(0x64e)](_0xf20c1b[_0x41359a(0x219)][0x0]),_0x1fa874=a[_0x41359a(0x302)][_0x41359a(0x64e)](_0xf20c1b[_0x41359a(0x219)][0x0]);for(let _0x4cd462=_0xc93e56['length']-0x1;_0x4cd462>=0x0;_0x4cd462--){const _0x5d6715={'id':_0x41359a(0x356),'params':{'unitId':_0xc93e56[_0x4cd462]['unitId'],..._0xc93e56[_0x4cd462]['undoState']}},_0x44078b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc93e56[_0x4cd462][_0x41359a(0x21b)],..._0xc93e56[_0x4cd462][_0x41359a(0x44f)]}},_0x1d085e=this['_transformService']['transformMutation'](_0x2d4dc2,_0x5d6715,!0x1),_0x3a0f89=this[_0x41359a(0x449)]['transformMutation'](_0x1fa874,_0x44078b,!0x1);if(p[_0x41359a(0x4b4)](_0x1d085e))throw _0x1d085e[_0x41359a(0x27a)];if(p[_0x41359a(0x4b4)](_0x3a0f89))throw _0x3a0f89[_0x41359a(0x27a)];_0x177771['unshift']({..._0xc93e56[_0x4cd462],'undoState':_0x1d085e[_0x41359a(0x239)][_0x41359a(0x447)],'redoState':_0x3a0f89[_0x41359a(0x239)][_0x41359a(0x447)]}),_0x2d4dc2=_0x1d085e[_0x41359a(0x475)],_0x1fa874=_0x3a0f89['m1Prime'];}this[_0x41359a(0x1cc)][_0x41359a(0x293)](_0x3147b4,{'history':_0x54b3cc,'collaboration':_0x177771});}};We=Nn([tt(0x0,a[_0x29ff00(0x493)](a['Injector'])),tt(0x1,p[_0x29ff00(0x38f)]),tt(0x2,a[_0x29ff00(0x493)](J[_0x29ff00(0x243)]))],We);function Si(_0x687f72){const _0x540f97=_0x29ff00;let _0x304a70='';for(const _0x1c4447 of _0x687f72){const {startOffset:_0x87ac30,endOffset:_0x3f7392,isActive:_0xfff450,rangeType:_0x2e1de2,segmentId:_0x3e568a,segmentPage:_0x399eb8}=_0x1c4447;_0x304a70[_0x540f97(0x5e7)]&&(_0x304a70+=','),_0x304a70+=_0x87ac30+':'+_0x3f7392+':'+(_0xfff450?'1':'0')+':'+_0x2e1de2+':'+_0x3e568a+':'+_0x399eb8;}return _0x304a70;}function Ln(_0x268fd5){const _0x518b07=_0x29ff00,_0x585ec9=_0x268fd5['split'](','),_0x521dfb=[];for(const _0x54084a of _0x585ec9){const [_0x4d6b08,_0x3be196,_0x200cc1,_0x1ffaf9,_0x1e1ba1,_0x1dc926]=_0x54084a[_0x518b07(0x5c0)](':');_0x521dfb[_0x518b07(0x3bc)]({'startOffset':Number(_0x4d6b08),'endOffset':Number(_0x3be196),'collapsed':_0x4d6b08===_0x3be196,'isActive':_0x200cc1==='1','rangeType':_0x1ffaf9===a[_0x518b07(0x380)][_0x518b07(0x4ff)]?a[_0x518b07(0x380)][_0x518b07(0x4ff)]:a[_0x518b07(0x380)][_0x518b07(0x36c)],'segmentId':typeof _0x1e1ba1==_0x518b07(0x291)?String(_0x1e1ba1):'','segmentPage':Number(_0x1dc926!=null?_0x1dc926:-0x1)});}return _0x521dfb[_0x518b07(0x355)](_0x4af847=>_0x4af847[_0x518b07(0x4b8)])||(_0x521dfb[0x0][_0x518b07(0x4b8)]=!0x0),_0x521dfb;}class yt extends a[_0x29ff00(0x4b0)]{constructor(){const _0x249cb4=_0x29ff00;super(...arguments),I(this,'_collabCursorState$',new A[(_0x249cb4(0x26c))](null)),I(this,_0x249cb4(0x41b),this[_0x249cb4(0x483)][_0x249cb4(0x4c6)]());}[_0x29ff00(0x329)](_0x1f9ea7){const _0x53e5d2=_0x29ff00,{unitID:_0x1e6bd1,memberID:_0x24e812,textRanges:_0x329636}=_0x1f9ea7,_0x1e5eee=Si(_0x329636);if(_0x1e5eee==='')return;const _0x1a31b3={'unitID':_0x1e6bd1,'memberID':_0x24e812,'selection':_0x1e5eee};this[_0x53e5d2(0x483)][_0x53e5d2(0x49f)](_0x1a31b3);}}var xn=Object['defineProperty'],jn=Object['getOwnPropertyDescriptor'],$n=(_0x236706,_0x33dfb0,_0x414b8f,_0xb69058)=>{const _0x4d2267=_0x29ff00;for(var _0x26c889=_0xb69058>0x1?void 0x0:_0xb69058?jn(_0x33dfb0,_0x414b8f):_0x33dfb0,_0x4d82d1=_0x236706[_0x4d2267(0x5e7)]-0x1,_0x4df46f;_0x4d82d1>=0x0;_0x4d82d1--)(_0x4df46f=_0x236706[_0x4d82d1])&&(_0x26c889=(_0xb69058?_0x4df46f(_0x33dfb0,_0x414b8f,_0x26c889):_0x4df46f(_0x26c889))||_0x26c889);return _0xb69058&&_0x26c889&&xn(_0x33dfb0,_0x414b8f,_0x26c889),_0x26c889;},$t=(_0x25178c,_0x110db1)=>(_0x424174,_0x2d41dd)=>_0x110db1(_0x424174,_0x2d41dd,_0x25178c);let Fe=class{constructor(_0x38e60b,_0x19bdf7){const _0x20ef29=_0x29ff00;this['_injector']=_0x38e60b,this[_0x20ef29(0x449)]=_0x19bdf7;}[_0x29ff00(0x2c1)](_0x4ae35c){const _0x17eef0=_0x29ff00;var _0x273634;const _0x436221=this[_0x17eef0(0x1c1)][_0x17eef0(0x2ef)](Ie[_0x17eef0(0x64b)]),_0x3f6da5=(_0x273634=_0x436221[_0x17eef0(0x526)]())!=null?_0x273634:[];if(_0x3f6da5[_0x17eef0(0x5e7)]===0x0)return;const _0x586d19=_0x4ae35c[_0x17eef0(0x553)],_0x43ab2b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x586d19,'actions':null,'textRanges':_0x3f6da5}}],_0x333500=this[_0x17eef0(0x449)]['transformMutationsWithChangeset'](_0x4ae35c,_0x43ab2b);if(!p['isTransformMutationsWithChangesetSuccess'](_0x333500))throw _0x333500[_0x17eef0(0x27a)];const _0x3e1d12=_0x333500['m2Prime'][0x0][_0x17eef0(0x447)][_0x17eef0(0x49e)];Array[_0x17eef0(0x400)](_0x3e1d12)&&_0x3e1d12[_0x17eef0(0x5e7)]&&_0x436221[_0x17eef0(0x308)](_0x3e1d12,{'unitId':_0x586d19,'subUnitId':_0x586d19},!0x1);}};Fe=$n([$t(0x0,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),$t(0x1,p[_0x29ff00(0x38f)])],Fe);const Hn=new Set([k[_0x29ff00(0x672)]['id']]);function Ht(_0xbe1ae6,_0x1c06dc,_0x17ef4c,_0x116dff,_0x2d46f6){const _0x367b4e=_0x29ff00;var _0x26a965,_0x10a046,_0xd380af,_0x2518a3;const _0x310521=[];for(const _0x204de5 of _0xbe1ae6)if(Hn['has'](_0x204de5['id'])){if(_0x310521['length']>0x0)break;_0x310521[_0x367b4e(0x3bc)](_0x204de5);break;}else _0x310521[_0x367b4e(0x3bc)](_0x204de5);const _0x3bb4b6=(_0x10a046=(_0x26a965=_0x2d46f6[_0x367b4e(0x5d8)]())==null?void 0x0:_0x26a965[_0x367b4e(0x52b)])!=null?_0x10a046:'unknown',_0x2c99b1=(_0x2518a3=(_0xd380af=_0x2d46f6[_0x367b4e(0x5d8)]())==null?void 0x0:_0xd380af[_0x367b4e(0x35e)])!=null?_0x2518a3:_0x367b4e(0x1f6);return{'changeset':{'unitID':_0x1c06dc,'type':p['mapDocumentTypeToUniverType'](_0x17ef4c[_0x367b4e(0x2e0)](_0x1c06dc)),'baseRev':_0x116dff[_0x367b4e(0x309)](_0x1c06dc),'revision':0x0,'userID':_0x3bb4b6,'memberID':_0x2c99b1,'mutations':_0x310521},'pendingMutations':_0xbe1ae6[_0x367b4e(0x3bb)](_0x310521[_0x367b4e(0x5e7)])};}function Bn(_0x19ca96,_0x1fcffd,_0x4a5462,_0xd7fc1a,_0x2d17a6){const _0x5d1f8d=_0x29ff00;var _0x2e5a84,_0x5338e2,_0x2ce30c,_0x513299;const _0x453960=[_0x19ca96['reduce']((_0x40525e,_0x35b055)=>{const _0x421736=_0x2f26;var _0x14a598;const {id:_0x428699}=_0x40525e,{id:_0x16ea0e,type:_0x5e6bce}=_0x35b055,_0x251030=(_0x14a598=_0x40525e[_0x421736(0x447)])!=null?_0x14a598:{'actions':null},_0x2a67ed=_0x35b055[_0x421736(0x447)];if(_0x428699&&_0x428699!==_0x16ea0e)throw new Error(_0x421736(0x532)+_0x428699+_0x421736(0x5ae)+_0x16ea0e+'.');return{..._0x40525e,'id':_0x16ea0e,'type':_0x5e6bce,'params':{'unitId':_0x2a67ed[_0x421736(0x21b)],'textRanges':_0x2a67ed[_0x421736(0x49e)],'actions':a[_0x421736(0x60a)][_0x421736(0x53f)](_0x251030['actions'],_0x2a67ed[_0x421736(0x4fc)])}};},{})],_0x2b43ae=(_0x5338e2=(_0x2e5a84=_0x2d17a6['getCurrentUser']())==null?void 0x0:_0x2e5a84[_0x5d1f8d(0x52b)])!=null?_0x5338e2:'unknown',_0x445be1=(_0x513299=(_0x2ce30c=_0x2d17a6['getCurrentUser']())==null?void 0x0:_0x2ce30c[_0x5d1f8d(0x35e)])!=null?_0x513299:_0x5d1f8d(0x1f6);return{'changeset':{'unitID':_0x1fcffd,'type':p[_0x5d1f8d(0x1bb)](_0x4a5462[_0x5d1f8d(0x2e0)](_0x1fcffd)),'baseRev':_0xd7fc1a['getCurrentRevOfUnit'](_0x1fcffd),'revision':0x0,'userID':_0x2b43ae,'memberID':_0x445be1,'mutations':_0x453960},'pendingMutations':[]};}function pi(_0x21182c,_0x4a23ae){const _0x6af775=_0x29ff00,_0x34cf03=new A[(_0x6af775(0x24c))](0x1);return setTimeout(()=>_0x34cf03[_0x6af775(0x49f)](_0x4a23ae),_0x21182c),_0x34cf03['asObservable']()['pipe'](A['take'](0x1));}const kn={'id':k['EmptyMutation']['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Wn=Object[_0x29ff00(0x64a)],Fn=Object[_0x29ff00(0x316)],Ee=(_0x4b0437,_0x486486,_0x10e017,_0x28eb28)=>{for(var _0x14bec6=_0x28eb28>0x1?void 0x0:_0x28eb28?Fn(_0x486486,_0x10e017):_0x486486,_0x2ee05b=_0x4b0437['length']-0x1,_0x304864;_0x2ee05b>=0x0;_0x2ee05b--)(_0x304864=_0x4b0437[_0x2ee05b])&&(_0x14bec6=(_0x28eb28?_0x304864(_0x486486,_0x10e017,_0x14bec6):_0x304864(_0x14bec6))||_0x14bec6);return _0x28eb28&&_0x14bec6&&Wn(_0x486486,_0x10e017,_0x14bec6),_0x14bec6;},N=(_0x51cb22,_0x478f7d)=>(_0x52f600,_0x2edaee)=>_0x478f7d(_0x52f600,_0x2edaee,_0x51cb22),q=(_0x1d2d03=>(_0x1d2d03['NOT_COLLAB']='not_collab',_0x1d2d03['SYNCED']=_0x29ff00(0x1ed),_0x1d2d03[_0x29ff00(0x1c5)]=_0x29ff00(0x496),_0x1d2d03['AWAITING']=_0x29ff00(0x4d6),_0x1d2d03[_0x29ff00(0x290)]='awaiting_with_pending',_0x1d2d03['FETCH_MISS']=_0x29ff00(0x225),_0x1d2d03['CONFLICT']='conflict',_0x1d2d03[_0x29ff00(0x548)]=_0x29ff00(0x4e0),_0x1d2d03))(q||{});const mi=0xea60;class be{constructor(_0x4c3895,_0x538e2c,_0x16d051,_0x22488f,_0x521e92,_0x3ae4b9,_0x55e13f,_0x3ec60c,_0x2be227){const _0xa789a7=_0x29ff00;I(this,'_awaitingChangeset',null),I(this,_0xa789a7(0x32a),[]),(this[_0xa789a7(0x553)]=_0x4c3895,this[_0xa789a7(0x2eb)]=_0x538e2c,this[_0xa789a7(0x467)]=_0x521e92,this['_commandService']=_0x3ae4b9,this[_0xa789a7(0x462)]=_0x55e13f,this[_0xa789a7(0x2a8)]=_0x3ec60c,this['_localCacheService']=_0x2be227,this[_0xa789a7(0x416)]=_0x16d051,this[_0xa789a7(0x32a)]=_0x22488f);}[_0x29ff00(0x3cb)](_0x1c0fa7){const _0x199d3d=_0x29ff00,_0x27cf3e=this[_0x199d3d(0x2a8)][_0x199d3d(0x309)](this['unitID']);return _0x1c0fa7[_0x199d3d(0x5fe)]>_0x27cf3e+0x1?(this[_0x199d3d(0x467)][_0x199d3d(0x203)]({'from':_0x27cf3e,'to':_0x1c0fa7[_0x199d3d(0x5fe)]-0x1}),!0x0):!0x1;}[_0x29ff00(0x4d8)](_0x6b2ccf){const _0x592030=_0x29ff00;this[_0x592030(0x462)][_0x592030(0x2a1)](this[_0x592030(0x553)],_0x6b2ccf);}[_0x29ff00(0x1d4)](_0x308725){const _0x1d333d=_0x29ff00;var _0x19794e,_0x3dd3a1;(_0x3dd3a1=(_0x19794e=this[_0x1d333d(0x467)])[_0x1d333d(0x289)])==null||_0x3dd3a1[_0x1d333d(0x1d5)](_0x19794e,_0x308725);}[_0x29ff00(0x63e)](_0x20e365){const _0x3f68a5=_0x29ff00;var _0x39640f,_0x2b0a20;return(_0x2b0a20=(_0x39640f=this[_0x3f68a5(0x467)])[_0x3f68a5(0x420)])==null?void 0x0:_0x2b0a20[_0x3f68a5(0x1d5)](_0x39640f,_0x20e365);}[_0x29ff00(0x456)](_0x48b385){const _0x400246=_0x29ff00;var _0x3d9a06,_0x5853c8;return(_0x5853c8=(_0x3d9a06=this[_0x400246(0x467)])[_0x400246(0x66d)])==null?void 0x0:_0x5853c8[_0x400246(0x1d5)](_0x3d9a06,_0x48b385);}['_transformRemoteChangesetByIMECache'](_0x32cb17){const _0x4f82b3=_0x29ff00;var _0x1c5dba,_0xb9748c,_0x304b1f;return(_0x304b1f=(_0xb9748c=(_0x1c5dba=this['_handler'])[_0x4f82b3(0x428)])==null?void 0x0:_0xb9748c[_0x4f82b3(0x1d5)](_0x1c5dba,_0x32cb17))!=null?_0x304b1f:_0x32cb17;}['_transformRemoteChangesetByStateCache'](_0x4a32fd){const _0x38c364=_0x29ff00;var _0x9461bd,_0x323670,_0x43e88a;return(_0x43e88a=(_0x323670=(_0x9461bd=this[_0x38c364(0x467)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x323670[_0x38c364(0x1d5)](_0x9461bd,_0x4a32fd))!=null?_0x43e88a:_0x4a32fd;}[_0x29ff00(0x41f)](_0x149f71){const _0x4082b7=_0x29ff00;var _0x36eba6,_0x549bd7;if(this['type']===ne['UNIVER_DOC']){const {unitID:_0x5405ee,mutations:_0x9506c5,memberID:_0x5eb51b}=_0x149f71,_0x353f35=_0x9506c5[0x0][_0x4082b7(0x447)][_0x4082b7(0x49e)];Array[_0x4082b7(0x400)](_0x353f35)&&_0x353f35['length']>0x0&&((_0x549bd7=(_0x36eba6=this[_0x4082b7(0x467)])[_0x4082b7(0x46b)])==null||_0x549bd7[_0x4082b7(0x1d5)](_0x36eba6,{'unitID':_0x5405ee,'memberID':_0x5eb51b,'textRanges':_0x353f35}));}}[_0x29ff00(0x611)](){const _0x6b5dab=_0x29ff00;this[_0x6b5dab(0x34f)][_0x6b5dab(0x4cf)](this[_0x6b5dab(0x553)],this['type'],this[_0x6b5dab(0x416)],this[_0x6b5dab(0x32a)]);}[_0x29ff00(0x1d0)](){const _0x3a839f=_0x29ff00;return this[_0x3a839f(0x2a8)][_0x3a839f(0x309)](this[_0x3a839f(0x553)]);}['_incrementRevisionNumber'](){const _0x3350a8=_0x29ff00;this[_0x3350a8(0x2a8)][_0x3350a8(0x29b)](this[_0x3350a8(0x553)]);}[_0x29ff00(0x3de)](_0x5cab1d){const _0x3910ad=_0x29ff00;var _0x3e31b8;let _0x5ef8d8=this['_transformRemoteChangesetByIMECache'](_0x5cab1d);_0x5ef8d8=this[_0x3910ad(0x2c5)](_0x5ef8d8);const _0x419e90=a[_0x3910ad(0x2f6)](_0x5ef8d8[_0x3910ad(0x219)],this[_0x3910ad(0x5b4)],{'fromCollab':!0x0});if(!_0x419e90[_0x3910ad(0x675)])throw _0x419e90[_0x3910ad(0x27a)]instanceof Error?_0x419e90[_0x3910ad(0x27a)]:new Error((_0x3e31b8=_0x419e90[_0x3910ad(0x27a)])!=null?_0x3e31b8:_0x3910ad(0x368));this['_transformIMECache'](_0x5ef8d8),this[_0x3910ad(0x456)](_0x5ef8d8),this['_transformUndoredo'](_0x5cab1d),this[_0x3910ad(0x1d4)](_0x5ef8d8),this[_0x3910ad(0x41f)](_0x5ef8d8),this[_0x3910ad(0x5c1)]();}}let Oe=class extends be{constructor(_0x1eb08b,_0x54819f,_0x2de96a,_0x4c1390,_0x190da2,_0x21086a,_0x4870d8,_0x44c0a1,_0x397e2f,_0x45bb75){const _0x45be47=_0x29ff00;super(_0x1eb08b,_0x54819f,null,[],_0x2de96a,_0x44c0a1,_0x4870d8,_0x4c1390,_0x190da2),I(this,'status','synced'),(this[_0x45be47(0x1c1)]=_0x21086a,this['_logService']=_0x397e2f,this[_0x45be47(0x449)]=_0x45bb75);}[_0x29ff00(0x5af)](_0x31156f){const _0x56c65a=_0x29ff00,_0x3a040e=this[_0x56c65a(0x1c1)][_0x56c65a(0x527)](ce,this['unitID'],this[_0x56c65a(0x2eb)],[_0x31156f],this[_0x56c65a(0x467)]);return _0x3a040e[_0x56c65a(0x490)](),_0x3a040e[_0x56c65a(0x611)](),_0x3a040e;}[_0x29ff00(0x4c5)](_0x4ef6c1){const _0xdbaa51=_0x29ff00;if(this[_0xdbaa51(0x3cb)](_0x4ef6c1))return this[_0xdbaa51(0x1c1)][_0xdbaa51(0x527)](re,this[_0xdbaa51(0x553)],this[_0xdbaa51(0x2eb)],null,[],null,[_0x4ef6c1],this['_handler']);try{const _0x2d7bf0=this[_0xdbaa51(0x449)][_0xdbaa51(0x268)](_0x4ef6c1,[kn]);if(p[_0xdbaa51(0x5ba)](_0x2d7bf0)){const {c1Prime:_0x285e73}=_0x2d7bf0;return this[_0xdbaa51(0x3de)](_0x285e73),this;}throw _0x2d7bf0[_0xdbaa51(0x27a)];}catch(_0x2fdfd5){return this[_0xdbaa51(0x328)][_0xdbaa51(0x27a)](_0x2fdfd5),this[_0xdbaa51(0x2c4)](!0x1);}}['_onConflict'](_0x41cd83){const _0xa068b4=_0x29ff00;return this[_0xa068b4(0x1c1)][_0xa068b4(0x527)](ve,this[_0xa068b4(0x553)],this[_0xa068b4(0x2eb)],null,[],this[_0xa068b4(0x467)],_0x41cd83);}[_0x29ff00(0x3fb)](){const _0x2450db=_0x29ff00;throw new Error(_0x2450db(0x40b));}[_0x29ff00(0x520)](){const _0x3fac84=_0x29ff00;throw new Error(_0x3fac84(0x454));}[_0x29ff00(0x396)](){return this;}[_0x29ff00(0x2f3)](){const _0x30a258=_0x29ff00;return this[_0x30a258(0x1c1)][_0x30a258(0x527)](Se,this['unitID'],this[_0x30a258(0x2eb)],null,[],this[_0x30a258(0x467)]);}['toggleOnline'](){return this;}[_0x29ff00(0x2d1)](){const _0xff663b=_0x29ff00;throw new Error(_0xff663b(0x2b2));}['fetchMiss'](){const _0x117056=_0x29ff00,_0x14382c=this['_revisionService']['getCurrentRevOfUnit'](this[_0x117056(0x553)]);return this[_0x117056(0x467)][_0x117056(0x203)]({'from':_0x14382c,'to':0x0}),this['_injector'][_0x117056(0x527)](re,this['unitID'],this[_0x117056(0x2eb)],null,[],null,[],this['_handler']);}};Oe=Ee([N(0x3,a[_0x29ff00(0x493)](p['RevisionService'])),N(0x4,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),N(0x5,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x6,a[_0x29ff00(0x325)]),N(0x7,a[_0x29ff00(0x587)]),N(0x8,a['ILogService']),N(0x9,p[_0x29ff00(0x38f)])],Oe);let ce=class extends be{constructor(_0x1a0bcd,_0x49385e,_0x130d9f,_0x15ff73,_0x562b8c,_0x20f138,_0x45c695,_0x1e14cc,_0x1b973a,_0x5a7ed5,_0x176165,_0x3e2a93,_0x40e977,_0xa12296){const _0x31c306=_0x29ff00;super(_0x1a0bcd,_0x49385e,null,_0x130d9f,_0x15ff73,_0x5a7ed5,_0xa12296,_0x20f138,_0x45c695),I(this,_0x31c306(0x2be),_0x31c306(0x496)),I(this,_0x31c306(0x42f),null),I(this,_0x31c306(0x4dd),null),(this[_0x31c306(0x1c1)]=_0x562b8c,this[_0x31c306(0x427)]=_0x1e14cc,this[_0x31c306(0x328)]=_0x1b973a,this[_0x31c306(0x4ea)]=_0x176165,this[_0x31c306(0x449)]=_0x3e2a93,this[_0x31c306(0x600)]=_0x40e977);}[_0x29ff00(0x5af)](_0x215bc3){const _0x460d20=_0x29ff00;return this['_pendingMutations'][_0x460d20(0x3bc)](_0x215bc3),this[_0x460d20(0x611)](),this;}['onRemoteChangeset'](_0x1a1269){const _0x38c39e=_0x29ff00;if(this[_0x38c39e(0x3cb)](_0x1a1269))return this[_0x38c39e(0x466)](),this['_injector'][_0x38c39e(0x527)](re,this[_0x38c39e(0x553)],this[_0x38c39e(0x2eb)],null,this['_pendingMutations'],null,[_0x1a1269],this['_handler']);try{const _0xf6b9f2=this[_0x38c39e(0x449)]['transformMutationsWithChangeset'](_0x1a1269,this[_0x38c39e(0x32a)]);if(p['isTransformMutationsWithChangesetSuccess'](_0xf6b9f2)){const {c1Prime:_0x4b6c5a,m2Prime:_0x214bad}=_0xf6b9f2;this[_0x38c39e(0x3de)](_0x4b6c5a);const _0x32e158=this[_0x38c39e(0x1c1)][_0x38c39e(0x527)](ce,this['unitID'],this['type'],_0x214bad,this[_0x38c39e(0x467)]);return this[_0x38c39e(0x466)](),_0x32e158['_schedule'](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x38c39e(0x54f)]()-this[_0x38c39e(0x42f)]):this['_getSendChangesetTimeout']()),_0x32e158;}throw _0xf6b9f2[_0x38c39e(0x27a)];}catch(_0x29fc6d){return this[_0x38c39e(0x328)][_0x38c39e(0x27a)](_0x29fc6d),this[_0x38c39e(0x2c4)](!0x1);}}[_0x29ff00(0x3fb)](){const _0x5347d3=_0x29ff00;throw new Error(_0x5347d3(0x5ac));}[_0x29ff00(0x520)](){const _0x471de7=_0x29ff00;throw new Error(_0x471de7(0x1bd));}[_0x29ff00(0x396)](){return this;}[_0x29ff00(0x2f3)](){const _0x43b663=_0x29ff00;return this['_clearScheduledTask'](),this[_0x43b663(0x1c1)][_0x43b663(0x527)](Se,this[_0x43b663(0x553)],this[_0x43b663(0x2eb)],null,this[_0x43b663(0x32a)],this[_0x43b663(0x467)]);}[_0x29ff00(0x4b5)](){return this;}['_schedule'](_0x1bfa24){const _0x3f1214=_0x29ff00,_0x2b474d=_0x1bfa24!=null?_0x1bfa24:this['_getSendChangesetTimeout']();this[_0x3f1214(0x42f)]=new Date()[_0x3f1214(0x54f)](),this['_sendingTimer']=window[_0x3f1214(0x34a)](()=>{const _0xe24137=_0x3f1214;this['_clearScheduledTask']();let _0x21fffd=null;switch(this['type']){case ne[_0xe24137(0x3d0)]:{_0x21fffd=Ht(this[_0xe24137(0x32a)],this[_0xe24137(0x553)],this[_0xe24137(0x600)],this[_0xe24137(0x2a8)],this['_memberService']);break;}case ne[_0xe24137(0x4f0)]:{this[_0xe24137(0x32a)]['every'](_0x1d0a5e=>_0x1d0a5e['id']===Ie['RichTextEditingMutation']['id'])?_0x21fffd=Bn(this[_0xe24137(0x32a)],this[_0xe24137(0x553)],this[_0xe24137(0x600)],this['_revisionService'],this[_0xe24137(0x427)]):_0x21fffd=Ht(this['_pendingMutations'],this['unitID'],this[_0xe24137(0x600)],this[_0xe24137(0x2a8)],this[_0xe24137(0x427)]);break;}default:throw new Error(_0xe24137(0x450)+this[_0xe24137(0x2eb)]+_0xe24137(0x471));}const {changeset:_0x1fdc9d,pendingMutations:_0x40810d}=_0x21fffd;this[_0xe24137(0x467)][_0xe24137(0x686)](_0x1fdc9d);const _0x472221=_0x40810d['length']?this[_0xe24137(0x1c1)][_0xe24137(0x527)](le,this[_0xe24137(0x553)],this[_0xe24137(0x2eb)],_0x1fdc9d,_0x40810d,this[_0xe24137(0x467)],void 0x0):this['_injector']['createInstance'](fe,this[_0xe24137(0x553)],this[_0xe24137(0x2eb)],_0x1fdc9d,this[_0xe24137(0x467)]);_0x472221[_0xe24137(0x611)](),this[_0xe24137(0x467)][_0xe24137(0x42d)](this,_0x472221);},_0x2b474d);}[_0x29ff00(0x598)](){const _0x2c6550=_0x29ff00;var _0x27e345;const _0x246dc0=this['_configService'][_0x2c6550(0x1ea)](Q);return(_0x27e345=_0x246dc0==null?void 0x0:_0x246dc0['sendChangesetTimeout'])!=null?_0x27e345:Fi;}[_0x29ff00(0x2d1)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x29ff00(0x466)](){const _0x1d9e1b=_0x29ff00;this[_0x1d9e1b(0x4dd)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1d9e1b(0x4dd)]=null);}[_0x29ff00(0x2c4)](_0x97184){const _0xf24814=_0x29ff00;return this[_0xf24814(0x466)](),this['_injector'][_0xf24814(0x527)](ve,this[_0xf24814(0x553)],this['type'],null,this[_0xf24814(0x32a)],this[_0xf24814(0x467)],_0x97184);}};ce=Ee([N(0x4,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x5,a[_0x29ff00(0x493)](p[_0x29ff00(0x59a)])),N(0x6,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),N(0x7,a['Inject'](exports[_0x29ff00(0x1d6)])),N(0x8,a[_0x29ff00(0x4ac)]),N(0x9,a[_0x29ff00(0x587)]),N(0xa,a[_0x29ff00(0x64d)]),N(0xb,p['ITransformService']),N(0xc,a[_0x29ff00(0x37f)]),N(0xd,a[_0x29ff00(0x325)])],ce);let fe=class extends be{constructor(_0x50aee9,_0x447f59,_0x118fc4,_0x338889,_0x6eb3e6,_0x5b91e2,_0x575115,_0x2fda3f,_0x2a6a52,_0x12058c,_0x21f1be){const _0x31f72b=_0x29ff00;super(_0x50aee9,_0x447f59,_0x118fc4,[],_0x338889,_0x2fda3f,_0x21f1be,_0x5b91e2,_0x575115),I(this,_0x31f72b(0x2be),_0x31f72b(0x4d6)),I(this,_0x31f72b(0x66b),0x0),I(this,'_resendTimer'),I(this,_0x31f72b(0x5b0)),(this[_0x31f72b(0x1c1)]=_0x6eb3e6,this[_0x31f72b(0x328)]=_0x2a6a52,this[_0x31f72b(0x449)]=_0x12058c);}[_0x29ff00(0x5af)](_0x5784cd){const _0x44c1f9=_0x29ff00;this['_clearScheduledTask']();const _0x5bfa84=this[_0x44c1f9(0x1c1)][_0x44c1f9(0x527)](le,this[_0x44c1f9(0x553)],this[_0x44c1f9(0x2eb)],this[_0x44c1f9(0x416)],[_0x5784cd],this[_0x44c1f9(0x467)],this[_0x44c1f9(0x4a4)]);return _0x5bfa84[_0x44c1f9(0x611)](),_0x5bfa84;}[_0x29ff00(0x4c5)](_0x3d6fa1){const _0x17bed4=_0x29ff00;if(this[_0x17bed4(0x3cb)](_0x3d6fa1))return this[_0x17bed4(0x466)](),this[_0x17bed4(0x1c1)]['createInstance'](re,this[_0x17bed4(0x553)],this[_0x17bed4(0x2eb)],this[_0x17bed4(0x416)],[],null,[_0x3d6fa1],this['_handler']);try{const _0x183ad5=this[_0x17bed4(0x449)]['transformChangesets']([_0x3d6fa1],[this['_awaitingChangeset']],!0x1);if(p[_0x17bed4(0x4c2)](_0x183ad5)){const {c1Prime:_0x1f23dd,c2Prime:_0x5a3de5}=_0x183ad5;this['_executeRemoteChangeset'](_0x1f23dd[0x0]),_0x5a3de5[0x0][_0x17bed4(0x573)]=this[_0x17bed4(0x1d0)](),this[_0x17bed4(0x466)]();const _0x3fcb2d=this[_0x17bed4(0x1c1)]['createInstance'](fe,this['unitID'],this[_0x17bed4(0x2eb)],_0x5a3de5[0x0],this[_0x17bed4(0x467)]);return _0x3fcb2d[_0x17bed4(0x611)](),_0x3fcb2d;}return this['_onConflict'](!0x1);}catch(_0x19f54f){return this[_0x17bed4(0x328)][_0x17bed4(0x27a)](_0x19f54f),this[_0x17bed4(0x2c4)](!0x1);}}[_0x29ff00(0x3fb)](_0x49da80){const _0x1e609a=_0x29ff00;this[_0x1e609a(0x466)]();const _0x3dfcc2=this[_0x1e609a(0x2a8)][_0x1e609a(0x309)](this[_0x1e609a(0x553)]);if(_0x49da80['revision']<_0x3dfcc2-0x1)return this;if(this[_0x1e609a(0x3cb)](_0x49da80))return this['_injector'][_0x1e609a(0x527)](re,this['unitID'],this[_0x1e609a(0x2eb)],null,[],this['_awaitingChangeset'],[],this[_0x1e609a(0x467)]);this[_0x1e609a(0x5c1)]();const _0x5d4a26=this[_0x1e609a(0x1c1)][_0x1e609a(0x527)](Oe,this['unitID'],this[_0x1e609a(0x2eb)],this[_0x1e609a(0x467)]);return _0x5d4a26['_updateLocalCache'](),_0x5d4a26;}[_0x29ff00(0x520)](_0x127b07){const _0x5926ca=_0x29ff00;return this[_0x5926ca(0x2c4)](!!(_0x127b07!=null&&_0x127b07[_0x5926ca(0x300)]));}['onRemoteRetry'](_0x29ce55){const _0x4b0271=_0x29ff00;return this[_0x4b0271(0x66b)]>mi?this[_0x4b0271(0x2f3)]():(this[_0x4b0271(0x4a4)]=pi(this[_0x4b0271(0x66b)],{'timeout':this['_resendTimeout'],'reqId':_0x29ce55[_0x4b0271(0x44e)]}),this['_sender']=this[_0x4b0271(0x4a4)][_0x4b0271(0x58f)](({reqId:_0x5f1b0d,timeout:_0x5d7e28})=>{const _0x5652be=_0x4b0271;this[_0x5652be(0x5fb)](_0x5f1b0d,_0x5d7e28);}),this);}['toggleOffline'](){const _0x2c06e2=_0x29ff00;return this[_0x2c06e2(0x466)](),this['_injector'][_0x2c06e2(0x527)](Se,this[_0x2c06e2(0x553)],this[_0x2c06e2(0x2eb)],this[_0x2c06e2(0x416)],[],this[_0x2c06e2(0x467)]);}[_0x29ff00(0x4b5)](){return this;}[_0x29ff00(0x2d1)](){const _0x4337e8=_0x29ff00;this['_handler'][_0x4337e8(0x686)](this[_0x4337e8(0x416)]);}[_0x29ff00(0x2c4)](_0x36a77a){const _0xee938=_0x29ff00;return this[_0xee938(0x466)](),this[_0xee938(0x1c1)][_0xee938(0x527)](ve,this[_0xee938(0x553)],this['type'],this[_0xee938(0x416)],[],this[_0xee938(0x467)],_0x36a77a);}[_0x29ff00(0x5fb)](_0x4be28d,_0x2179be){const _0x2fbd67=_0x29ff00;var _0x572b43;_0x4be28d===((_0x572b43=this[_0x2fbd67(0x416)])==null?void 0x0:_0x572b43[_0x2fbd67(0x44e)])&&(this[_0x2fbd67(0x2d1)](),this[_0x2fbd67(0x66b)]=_0x2179be===0x0?0x3e8:_0x2179be*0x2);}['_clearScheduledTask'](){const _0x8adc5b=_0x29ff00;var _0x119d39;(_0x119d39=this[_0x8adc5b(0x5b0)])==null||_0x119d39[_0x8adc5b(0x4eb)](),this[_0x8adc5b(0x66b)]=0x0;}};fe=Ee([N(0x4,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x5,a[_0x29ff00(0x493)](p['RevisionService'])),N(0x6,a[_0x29ff00(0x493)](exports['LocalCacheService'])),N(0x7,a[_0x29ff00(0x587)]),N(0x8,a['ILogService']),N(0x9,p['ITransformService']),N(0xa,a[_0x29ff00(0x325)])],fe);let le=class extends be{constructor(_0x192728,_0x2419bc,_0x1609ac,_0x29753c,_0x12ccb8,_0xcd4898,_0x4fec84,_0x2238f7,_0x4bd892,_0x3b1e0f,_0x478b12,_0x5f1579,_0x526f5c){const _0x2219ac=_0x29ff00;super(_0x192728,_0x2419bc,_0x1609ac,_0x29753c,_0x12ccb8,_0x3b1e0f,_0x526f5c,_0x2238f7,_0x4bd892),I(this,'status',_0x2219ac(0x4ba)),I(this,_0x2219ac(0x66b),0x0),I(this,_0x2219ac(0x4a4)),I(this,'_sender'),(this[_0x2219ac(0x1c1)]=_0x4fec84,this[_0x2219ac(0x328)]=_0x478b12,this[_0x2219ac(0x449)]=_0x5f1579,_0xcd4898&&(this[_0x2219ac(0x4a4)]=_0xcd4898,this[_0x2219ac(0x5b0)]=this['_resendTimer'][_0x2219ac(0x58f)](({reqId:_0xdc5ba1,timeout:_0x5131d5})=>{const _0x115c4c=_0x2219ac;this[_0x115c4c(0x5fb)](_0xdc5ba1,_0x5131d5);})));}[_0x29ff00(0x5af)](_0x22be83){const _0x6213e2=_0x29ff00;return this[_0x6213e2(0x32a)][_0x6213e2(0x3bc)](_0x22be83),this;}[_0x29ff00(0x4c5)](_0x5cd87d){const _0x57d1f0=_0x29ff00;if(this[_0x57d1f0(0x3cb)](_0x5cd87d))return this[_0x57d1f0(0x466)](),this['_injector'][_0x57d1f0(0x527)](re,this[_0x57d1f0(0x553)],this['type'],this[_0x57d1f0(0x416)],this[_0x57d1f0(0x32a)],null,[_0x5cd87d],this['_handler']);try{const _0x26897b=this[_0x57d1f0(0x449)][_0x57d1f0(0x507)]([_0x5cd87d],[this[_0x57d1f0(0x416)]],!0x1);if(p[_0x57d1f0(0x4c2)](_0x26897b)){const {c1Prime:_0x154565,c2Prime:_0x2d47e9}=_0x26897b,_0x1d8d8e=this['_transformService'][_0x57d1f0(0x268)](_0x154565[0x0],this[_0x57d1f0(0x32a)]);if(p[_0x57d1f0(0x5ba)](_0x1d8d8e)){const {c1Prime:_0x4f490b,m2Prime:_0x29a623}=_0x1d8d8e;return this[_0x57d1f0(0x3de)](_0x4f490b),_0x2d47e9[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x57d1f0(0x1c1)][_0x57d1f0(0x527)](le,this[_0x57d1f0(0x553)],this[_0x57d1f0(0x2eb)],_0x2d47e9[0x0],_0x29a623,this[_0x57d1f0(0x467)],void 0x0);}throw _0x1d8d8e[_0x57d1f0(0x27a)];}throw _0x26897b[_0x57d1f0(0x27a)];}catch(_0x2eadb1){return this[_0x57d1f0(0x328)][_0x57d1f0(0x27a)](_0x2eadb1),this[_0x57d1f0(0x2c4)](!0x1);}}[_0x29ff00(0x3fb)](_0x4866ad){const _0x46a77b=_0x29ff00;if(this[_0x46a77b(0x466)](),this[_0x46a77b(0x3cb)](_0x4866ad))return this[_0x46a77b(0x1c1)][_0x46a77b(0x527)](re,this[_0x46a77b(0x553)],this[_0x46a77b(0x2eb)],null,this[_0x46a77b(0x32a)],this[_0x46a77b(0x416)],[],this[_0x46a77b(0x467)]);this[_0x46a77b(0x5c1)]();const _0x4fadf1=this[_0x46a77b(0x1c1)][_0x46a77b(0x527)](ce,this[_0x46a77b(0x553)],this[_0x46a77b(0x2eb)],this[_0x46a77b(0x32a)],this[_0x46a77b(0x467)]);return _0x4fadf1[_0x46a77b(0x490)](),_0x4fadf1[_0x46a77b(0x611)](),_0x4fadf1;}[_0x29ff00(0x520)](_0x1ec661){const _0x3e8754=_0x29ff00;return this[_0x3e8754(0x2c4)](!!(_0x1ec661!=null&&_0x1ec661['isPermissionRej']));}[_0x29ff00(0x396)](_0x2fea98){const _0x28bd20=_0x29ff00;return this[_0x28bd20(0x66b)]>mi?this[_0x28bd20(0x2f3)]():(this[_0x28bd20(0x4a4)]=pi(this[_0x28bd20(0x66b)],{'timeout':this['_resendTimeout'],'reqId':_0x2fea98[_0x28bd20(0x44e)]}),this['_sender']=this[_0x28bd20(0x4a4)][_0x28bd20(0x58f)](({reqId:_0x565145,timeout:_0x439ba1})=>{const _0x2ad838=_0x28bd20;this[_0x2ad838(0x5fb)](_0x565145,_0x439ba1);}),this);}['toggleOffline'](){const _0x50e7da=_0x29ff00;return this['_clearScheduledTask'](),this[_0x50e7da(0x1c1)][_0x50e7da(0x527)](Se,this[_0x50e7da(0x553)],this[_0x50e7da(0x2eb)],this[_0x50e7da(0x416)],this[_0x50e7da(0x32a)],this['_handler']);}[_0x29ff00(0x4b5)](){return this;}[_0x29ff00(0x2d1)](){const _0x2e4190=_0x29ff00;this[_0x2e4190(0x467)][_0x2e4190(0x686)](this['_awaitingChangeset']);}[_0x29ff00(0x2c4)](_0x3db1d1){const _0x3d1148=_0x29ff00;return this[_0x3d1148(0x466)](),this['_injector']['createInstance'](ve,this[_0x3d1148(0x553)],this[_0x3d1148(0x2eb)],null,this[_0x3d1148(0x32a)],this[_0x3d1148(0x467)],_0x3db1d1);}[_0x29ff00(0x5fb)](_0x1a4de8,_0x86e549){const _0xd81240=_0x29ff00;var _0x51d7d7;_0x1a4de8===((_0x51d7d7=this[_0xd81240(0x416)])==null?void 0x0:_0x51d7d7['reqId'])&&(this[_0xd81240(0x2d1)](),this[_0xd81240(0x66b)]=_0x86e549===0x0?0x3e8:_0x86e549*0x2);}[_0x29ff00(0x466)](){const _0x43e9d2=_0x29ff00;var _0xfbf03f;(_0xfbf03f=this[_0x43e9d2(0x5b0)])==null||_0xfbf03f['unsubscribe'](),this[_0x43e9d2(0x66b)]=0x0;}};le=Ee([N(0x6,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x7,a['Inject'](p['RevisionService'])),N(0x8,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),N(0x9,a['ICommandService']),N(0xa,a[_0x29ff00(0x4ac)]),N(0xb,p[_0x29ff00(0x38f)]),N(0xc,a[_0x29ff00(0x325)])],le);let ve=class extends be{constructor(_0x274b2b,_0x16baf5,_0x5f55f9,_0x40e0eb,_0x5e287,_0x3be103=!0x1,_0x3990cf,_0x1a6a2e,_0x4ebc39,_0x148e18,_0x5b3c4a,_0x1857d3,_0x581638){const _0xe47095=_0x29ff00;super(_0x274b2b,_0x16baf5,_0x5f55f9,_0x40e0eb,_0x5e287,_0x1a6a2e,_0x4ebc39,_0x5b3c4a,_0x148e18),I(this,_0xe47095(0x2be),_0xe47095(0x3b4)),(this[_0xe47095(0x535)]=_0x3be103,this[_0xe47095(0x590)]=_0x3990cf,this[_0xe47095(0x20f)]=_0x1857d3,this[_0xe47095(0x612)]=_0x581638,this[_0xe47095(0x47a)](),this[_0xe47095(0x41d)](),this['_disableEditing']());}[_0x29ff00(0x5af)](){return this;}['onRemoteChangeset'](){return this;}[_0x29ff00(0x3fb)](){return this;}[_0x29ff00(0x520)](){return this;}[_0x29ff00(0x396)](){return this;}[_0x29ff00(0x2f3)](){return this;}[_0x29ff00(0x4b5)](){return this;}['resend'](){const _0x20b983=_0x29ff00;throw new Error(_0x20b983(0x276));}[_0x29ff00(0x41d)](){const _0x38d714=_0x29ff00;this['_localCacheService'][_0x38d714(0x4cf)](this['unitID'],this[_0x38d714(0x2eb)],null,[]);}[_0x29ff00(0x47a)](){const _0x39970c=_0x29ff00;this[_0x39970c(0x535)]?this['_notificationService'][_0x39970c(0x318)]({'title':this[_0x39970c(0x20f)]['t'](_0x39970c(0x50a)),'content':this[_0x39970c(0x20f)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x39970c(0x612)][_0x39970c(0x318)]({'title':this[_0x39970c(0x20f)]['t'](_0x39970c(0x39c)),'content':this[_0x39970c(0x20f)]['t'](_0x39970c(0x54c)),'type':_0x39970c(0x27a),'duration':0x0});}[_0x29ff00(0x677)](){const _0x381029=_0x29ff00;this[_0x381029(0x590)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};ve=Ee([N(0x6,a['Inject'](a[_0x29ff00(0x3d1)])),N(0x7,a[_0x29ff00(0x587)]),N(0x8,a['IUndoRedoService']),N(0x9,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),N(0xa,a[_0x29ff00(0x493)](p[_0x29ff00(0x59a)])),N(0xb,a[_0x29ff00(0x493)](a['LocaleService'])),N(0xc,te[_0x29ff00(0x351)])],ve);let Se=class extends be{constructor(_0x4981f7,_0xfae497,_0x15103f,_0xdc2e26,_0x28e954,_0x5e99ca,_0x29b50a,_0x3660c2,_0x53d624,_0x217f8f){const _0x33999a=_0x29ff00;super(_0x4981f7,_0xfae497,_0x15103f,_0xdc2e26,_0x28e954,_0x53d624,_0x217f8f,_0x29b50a,_0x3660c2),I(this,_0x33999a(0x2be),_0x33999a(0x4e0)),this[_0x33999a(0x1c1)]=_0x5e99ca;}[_0x29ff00(0x5af)](_0x25ea68){const _0x222f99=_0x29ff00;return this[_0x222f99(0x32a)][_0x222f99(0x3bc)](_0x25ea68),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x169765){const _0x401cd0=_0x29ff00;throw new Error(_0x401cd0(0x3fa));}[_0x29ff00(0x3fb)](){const _0x48df7c=_0x29ff00;throw new Error(_0x48df7c(0x632));}[_0x29ff00(0x520)](){const _0x283769=_0x29ff00;throw new Error(_0x283769(0x487));}[_0x29ff00(0x396)](){return this;}[_0x29ff00(0x2f3)](){return this;}[_0x29ff00(0x4b5)](){const _0xdaa558=_0x29ff00,{_injector:_0xc6e8a,_pendingMutations:_0x575469,_awaitingChangeset:_0x1904b7,unitID:_0x3df2c7,_handler:_0x15ed55,type:_0x38407b}=this,_0x313d20=gi(_0xc6e8a,_0x3df2c7,_0x38407b,_0x1904b7,_0x575469,_0x15ed55);return _0x313d20 instanceof ce?_0x313d20[_0xdaa558(0x490)]():(_0x313d20 instanceof le||_0x313d20 instanceof fe)&&_0x313d20[_0xdaa558(0x2d1)](),_0x313d20;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Se=Ee([N(0x5,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x6,a[_0x29ff00(0x493)](p[_0x29ff00(0x59a)])),N(0x7,a['Inject'](exports['LocalCacheService'])),N(0x8,a[_0x29ff00(0x587)]),N(0x9,a['IUndoRedoService'])],Se);let re=class extends be{constructor(_0x411227,_0x4be719,_0x57ea8f,_0x248148,_0x273f24,_0x3a4908,_0x17db0a,_0x422dbe,_0x123b6e,_0xbba7bd,_0x4cfb4d,_0x268369,_0x2b3578,_0x11c508){const _0xb0395=_0x29ff00;super(_0x411227,_0x4be719,_0x57ea8f,_0x248148,_0x17db0a,_0x268369,_0x2b3578,_0x123b6e,_0xbba7bd),I(this,_0xb0395(0x2be),_0xb0395(0x225)),(this[_0xb0395(0x1ce)]=_0x273f24,this[_0xb0395(0x2ca)]=_0x3a4908,this[_0xb0395(0x1c1)]=_0x422dbe,this[_0xb0395(0x328)]=_0x4cfb4d,this['_transformService']=_0x11c508);}['onMissedChangesetFetched'](_0x7970cc){const _0x241b53=_0x29ff00;try{const _0x50c27e=[..._0x7970cc,...this[_0x241b53(0x2ca)]],_0x5dea74=[this[_0x241b53(0x416)]||this[_0x241b53(0x1ce)]]['filter'](_0x31a0af=>!!_0x31a0af);let _0x38db80,_0x1c9166;if(_0x5dea74[_0x241b53(0x5e7)]){const _0x51ece8=this['_transformService'][_0x241b53(0x507)](_0x50c27e,_0x5dea74,!0x1);if(!p['isTransformChangesetsSuccess'](_0x51ece8))throw _0x51ece8[_0x241b53(0x27a)];_0x38db80=_0x51ece8[_0x241b53(0x315)],_0x1c9166=_0x51ece8[_0x241b53(0x4c3)];}else _0x38db80=_0x50c27e,_0x1c9166=[];let _0x40ffcd=this[_0x241b53(0x32a)];_0x38db80[_0x241b53(0x3a1)](_0x258df9=>{const _0xe0b1b3=_0x241b53;let _0x57e478;if(_0x40ffcd[_0xe0b1b3(0x5e7)]){const _0x5974b2=this[_0xe0b1b3(0x449)][_0xe0b1b3(0x268)](_0x258df9,_0x40ffcd);if(!p['isTransformMutationsWithChangesetSuccess'](_0x5974b2))throw _0x5974b2['error'];_0x57e478=_0x5974b2[_0xe0b1b3(0x315)],_0x40ffcd=_0x5974b2[_0xe0b1b3(0x239)];}else _0x57e478=_0x258df9;this[_0xe0b1b3(0x3de)](_0x57e478);}),this[_0x241b53(0x1ce)]&&this[_0x241b53(0x5c1)](),this[_0x241b53(0x416)]&&_0x1c9166[_0x241b53(0x5e7)]&&(_0x1c9166[0x0][_0x241b53(0x573)]=this[_0x241b53(0x1d0)]());let _0xfe1b83;if(this[_0x241b53(0x416)]&&_0x40ffcd[_0x241b53(0x5e7)]!==0x0)_0xfe1b83=this[_0x241b53(0x1c1)]['createInstance'](le,this[_0x241b53(0x553)],this[_0x241b53(0x2eb)],_0x1c9166[0x0],_0x40ffcd,this['_handler'],void 0x0);else{if(this[_0x241b53(0x416)]&&_0x40ffcd[_0x241b53(0x5e7)]===0x0)_0x1c9166[0x0][_0x241b53(0x573)]=this[_0x241b53(0x1d0)](),_0xfe1b83=this[_0x241b53(0x1c1)][_0x241b53(0x527)](fe,this['unitID'],this[_0x241b53(0x2eb)],_0x1c9166[0x0],this[_0x241b53(0x467)]);else{if(_0x40ffcd[_0x241b53(0x5e7)]!==0x0){const _0x46ff36=this['_injector'][_0x241b53(0x527)](ce,this[_0x241b53(0x553)],this[_0x241b53(0x2eb)],_0x40ffcd,this[_0x241b53(0x467)]);_0x46ff36[_0x241b53(0x490)](),_0xfe1b83=_0x46ff36;}else _0xfe1b83=this['_injector']['createInstance'](Oe,this[_0x241b53(0x553)],this[_0x241b53(0x2eb)],this['_handler']);}}return _0xfe1b83[_0x241b53(0x611)](),_0xfe1b83;}catch(_0x5effc5){return this[_0x241b53(0x328)]['error'](_0x241b53(0x4ae),_0x241b53(0x2c6),_0x5effc5),this[_0x241b53(0x1c1)]['createInstance'](ve,this[_0x241b53(0x553)],this[_0x241b53(0x2eb)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x29ff00(0x2d1)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x29ff00(0x5af)](_0xbff9a3){const _0x21c9b9=_0x29ff00;return this[_0x21c9b9(0x32a)][_0x21c9b9(0x3bc)](_0xbff9a3),this;}['onRemoteChangeset'](_0xac903b){const _0x51b26f=_0x29ff00;return this[_0x51b26f(0x2ca)][_0x51b26f(0x3bc)](_0xac903b),this;}['onRemoteAck'](_0x4a4542){const _0x9795f6=_0x29ff00;if(this[_0x9795f6(0x416)])return this['_acknowledgedAwaitingChangeset']=this[_0x9795f6(0x416)],this[_0x9795f6(0x416)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x1b22b8){const _0x573d47=_0x29ff00;return this[_0x573d47(0x2c4)](!!(_0x1b22b8!=null&&_0x1b22b8[_0x573d47(0x300)]));}[_0x29ff00(0x396)](){return this;}[_0x29ff00(0x2f3)](){const _0x14a6f5=_0x29ff00;return this[_0x14a6f5(0x1c1)]['createInstance'](Se,this[_0x14a6f5(0x553)],this[_0x14a6f5(0x2eb)],this[_0x14a6f5(0x416)],this[_0x14a6f5(0x32a)],this[_0x14a6f5(0x467)]);}[_0x29ff00(0x4b5)](){return this;}['_onConflict'](_0x453e53){const _0x84bf73=_0x29ff00;return this[_0x84bf73(0x1c1)]['createInstance'](ve,this[_0x84bf73(0x553)],this['type'],this[_0x84bf73(0x416)],this[_0x84bf73(0x32a)],this[_0x84bf73(0x467)],_0x453e53);}};re=Ee([N(0x7,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),N(0x8,a[_0x29ff00(0x493)](p['RevisionService'])),N(0x9,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),N(0xa,a[_0x29ff00(0x4ac)]),N(0xb,a[_0x29ff00(0x587)]),N(0xc,a[_0x29ff00(0x325)]),N(0xd,p[_0x29ff00(0x38f)])],re);function gi(_0x15c78c,_0x5e68db,_0x14eea8,_0x1b5f89,_0x45ea5b,_0x4bc5eb){const _0x54876b=_0x29ff00;return _0x1b5f89&&_0x45ea5b[_0x54876b(0x5e7)]?_0x15c78c[_0x54876b(0x527)](le,_0x5e68db,_0x14eea8,_0x1b5f89,_0x45ea5b,_0x4bc5eb,void 0x0):_0x1b5f89?_0x15c78c[_0x54876b(0x527)](fe,_0x5e68db,_0x14eea8,_0x1b5f89,_0x4bc5eb):_0x45ea5b['length']?_0x15c78c[_0x54876b(0x527)](ce,_0x5e68db,_0x14eea8,_0x45ea5b,_0x4bc5eb):_0x15c78c['createInstance'](Oe,_0x5e68db,_0x14eea8,_0x4bc5eb);}var Vn=Object[_0x29ff00(0x64a)],Gn=Object['getOwnPropertyDescriptor'],Ot=(_0x58fba9,_0x1705d8,_0x138832,_0x41f3f7)=>{const _0x266ccb=_0x29ff00;for(var _0x2aa65d=_0x41f3f7>0x1?void 0x0:_0x41f3f7?Gn(_0x1705d8,_0x138832):_0x1705d8,_0x3ed92b=_0x58fba9[_0x266ccb(0x5e7)]-0x1,_0x4a09eb;_0x3ed92b>=0x0;_0x3ed92b--)(_0x4a09eb=_0x58fba9[_0x3ed92b])&&(_0x2aa65d=(_0x41f3f7?_0x4a09eb(_0x1705d8,_0x138832,_0x2aa65d):_0x4a09eb(_0x2aa65d))||_0x2aa65d);return _0x41f3f7&&_0x2aa65d&&Vn(_0x1705d8,_0x138832,_0x2aa65d),_0x2aa65d;},H=(_0x22d736,_0x59a6f0)=>(_0x4fffd9,_0x4823c0)=>_0x59a6f0(_0x4fffd9,_0x4823c0,_0x22d736);exports[_0x29ff00(0x21e)]=class extends a['RxDisposable']{constructor(_0x2833ce,_0x160a5c,_0x4e7378,_0x430d1c,_0x2f5447,_0x5415a7,_0x346243,_0x303cf1,_0x20bd19,_0x3a0dd8,_0x347aac,_0x427877,_0x4457e4){const _0x1047fc=_0x29ff00;super(),I(this,'_state$',new A[(_0x1047fc(0x26c))](null)),I(this,_0x1047fc(0x4bf),this[_0x1047fc(0x36d)][_0x1047fc(0x4c6)]()),I(this,'_state'),I(this,'_collaborationPaused',!0x1),I(this,_0x1047fc(0x3d8),''),I(this,_0x1047fc(0x3b5),0x0),I(this,_0x1047fc(0x405),this[_0x1047fc(0x4bf)]['pipe'](A[_0x1047fc(0x4db)](_0x34648d=>_0x34648d?_0x34648d[_0x1047fc(0x2be)]:q['OFFLINE']),A['shareReplay'](0x1))),I(this,_0x1047fc(0x673),!0x1),I(this,'_remoteChangesetQueue',[]),(this[_0x1047fc(0x553)]=_0x2833ce,this['session']=_0x160a5c,this[_0x1047fc(0x201)]=_0x4e7378,this[_0x1047fc(0x1c1)]=_0x430d1c,this['_localCacheService']=_0x2f5447,this['_compressMutationService']=_0x5415a7,this[_0x1047fc(0x20f)]=_0x346243,this[_0x1047fc(0x2a8)]=_0x303cf1,this[_0x1047fc(0x328)]=_0x20bd19,this['_commandService']=_0x3a0dd8,this['_messageService']=_0x347aac,this[_0x1047fc(0x590)]=_0x427877,this['_singleActiveUnitService']=_0x4457e4);}get[_0x29ff00(0x1d2)](){const _0x253cf1=_0x29ff00;return this[_0x253cf1(0x5d1)];}async[_0x29ff00(0x334)](){const _0x4fac84=_0x29ff00;if(this[_0x4fac84(0x1d2)])throw new Error(_0x4fac84(0x4d3));await this[_0x4fac84(0x5c4)]();}[_0x29ff00(0x304)](){const _0x4a32dc=_0x29ff00;return this[_0x4a32dc(0x2a4)]=!0x0,a['toDisposable'](()=>{const _0x58c8eb=_0x4a32dc;this['_collaborationPaused']=!0x1,this[_0x58c8eb(0x21c)]();});}[_0x29ff00(0x1f0)](_0x5d43b3){const _0x4d5731=_0x29ff00;this['_state']=_0x5d43b3,this['_state$'][_0x4d5731(0x49f)](_0x5d43b3);}async[_0x29ff00(0x5c4)](){const _0x2ef1db=_0x29ff00;var _0x591a96;this[_0x2ef1db(0x1f0)](await this[_0x2ef1db(0x269)]()),this[_0x2ef1db(0x2d5)]&&((_0x591a96=this[_0x2ef1db(0x2d5)])==null||_0x591a96['editingUnit'](this[_0x2ef1db(0x553)]),this['disposeWithMe'](this[_0x2ef1db(0x2d5)][_0x2ef1db(0x1ff)](this[_0x2ef1db(0x553)])[_0x2ef1db(0x58f)](_0x468bf6=>{const _0x564c84=_0x2ef1db;this[_0x564c84(0x328)][_0x564c84(0x226)](_0x564c84(0x502),_0x564c84(0x5e2),_0x468bf6),_0x468bf6===vi['OTHER_CLIENTS_EDITING']?(this[_0x564c84(0x47e)][_0x564c84(0x318)]({'content':this['_localeService']['t'](_0x564c84(0x3c1)),'type':Ce[_0x564c84(0x506)]['Warning']}),this[_0x564c84(0x590)][_0x564c84(0x366)](new k[(_0x564c84(0x58d))](this[_0x564c84(0x553)])['id'],!0x1),this[_0x564c84(0x590)][_0x564c84(0x357)](!0x1)):(this[_0x564c84(0x590)]['updatePermissionPoint'](new k[(_0x564c84(0x58d))](this[_0x564c84(0x553)])['id'],!0x0),this[_0x564c84(0x590)]['setShowComponents'](!0x0));})));let _0xb824b=!0x1;return this['disposeWithMe'](this[_0x2ef1db(0x257)]['sessionStatus$']['subscribe'](_0x52fb5f=>{const _0x1ad996=_0x2ef1db;_0x52fb5f===se['ONLINE']?this['_toggleOnline'](_0xb824b):_0x52fb5f===se[_0x1ad996(0x548)]&&(_0xb824b=!0x0,this[_0x1ad996(0x223)]());})),this['disposeWithMe'](this[_0x2ef1db(0x257)][_0x2ef1db(0x48a)][_0x2ef1db(0x58f)](_0x590954=>{const _0x3d26d6=_0x2ef1db;try{switch(_0x590954[_0x3d26d6(0x55b)]){case p[_0x3d26d6(0x259)][_0x3d26d6(0x402)]:{this[_0x3d26d6(0x212)](p[_0x3d26d6(0x608)](_0x590954['data']));break;}case p['CollaborationEvent'][_0x3d26d6(0x249)]:{this['_onRemoteACK'](_0x590954[_0x3d26d6(0x3eb)]);break;}case p['CollaborationEvent'][_0x3d26d6(0x55a)]:{this[_0x3d26d6(0x480)]();break;}case p[_0x3d26d6(0x259)]['CHANGESET_SHOULD_RETRY']:{this[_0x3d26d6(0x4be)](_0x590954[_0x3d26d6(0x3eb)]);break;}case p[_0x3d26d6(0x259)][_0x3d26d6(0x4e6)]:{this[_0x3d26d6(0x28b)](_0x590954['data'][_0x3d26d6(0x684)][_0x3d26d6(0x4db)](_0x10ed70=>p['parseProtocolChangeset'](_0x10ed70)));break;}case p[_0x3d26d6(0x259)][_0x3d26d6(0x4f1)]:this[_0x3d26d6(0x480)]({'isPermissionRej':!0x0});}}catch(_0x3047a3){throw console[_0x3d26d6(0x27a)]('Error\x20on\x20receiving\x20event',_0x3047a3),_0x3047a3;}})),this['_state'];}[_0x29ff00(0x652)](){this['_transitionLocked']=!0x1;}[_0x29ff00(0x531)](){const _0x3337c7=_0x29ff00;if(this[_0x3337c7(0x673)])throw new Error(_0x3337c7(0x340));this[_0x3337c7(0x673)]=!0x0;}[_0x29ff00(0x65a)](_0x2d1265){const _0x8ad526=_0x29ff00;this[_0x8ad526(0x531)](),this[_0x8ad526(0x1f0)](this[_0x8ad526(0x5d1)]['appendMutation'](_0x2d1265)),this[_0x8ad526(0x652)]();}[_0x29ff00(0x212)](_0x545890){const _0x48ecab=_0x29ff00;if(!(_0x545890[_0x48ecab(0x5fe)]<=this[_0x48ecab(0x2a8)][_0x48ecab(0x309)](this[_0x48ecab(0x553)]))){if(this[_0x48ecab(0x2a4)]){this[_0x48ecab(0x4e8)]['push'](_0x545890);return;}this[_0x48ecab(0x65b)](_0x545890);}}[_0x29ff00(0x21c)](){const _0x39aced=_0x29ff00;this[_0x39aced(0x4e8)][_0x39aced(0x3a1)](_0x3e31b6=>this[_0x39aced(0x65b)](_0x3e31b6)),this[_0x39aced(0x4e8)]=[];}[_0x29ff00(0x65b)](_0x10dc7c){const _0x1b1f00=_0x29ff00,_0xfdc15=this[_0x1b1f00(0x5f5)]['interceptor'][_0x1b1f00(0x5f0)](this[_0x1b1f00(0x5f5)][_0x1b1f00(0x48d)]['getInterceptPoints']()[_0x1b1f00(0x56b)])(_0x10dc7c[_0x1b1f00(0x219)],null)||_0x10dc7c[_0x1b1f00(0x219)],_0x585e2e={..._0x10dc7c,'mutations':_0xfdc15};this['_lockTransition'](),this['_updateState'](this[_0x1b1f00(0x5d1)][_0x1b1f00(0x4c5)](_0x585e2e)),this['_unlockTransition']();}[_0x29ff00(0x2a9)](_0x2da6fe){const _0x41dc0e=_0x29ff00;this['_lockTransition'](),this[_0x41dc0e(0x1f0)](this[_0x41dc0e(0x5d1)][_0x41dc0e(0x3fb)](_0x2da6fe)),this[_0x41dc0e(0x652)]();}[_0x29ff00(0x480)](_0x514e1c){const _0x20a084=_0x29ff00;this[_0x20a084(0x531)](),this[_0x20a084(0x1f0)](this['_state'][_0x20a084(0x520)](_0x514e1c)),this['_unlockTransition']();}[_0x29ff00(0x4be)](_0x3024fd){const _0x3f4642=_0x29ff00;this['_lockTransition'](),this['_updateState'](this[_0x3f4642(0x5d1)][_0x3f4642(0x396)](_0x3024fd)),this[_0x3f4642(0x652)]();}[_0x29ff00(0x28b)](_0x30f4f9){const _0x3a1fa5=_0x29ff00;if(!(this[_0x3a1fa5(0x5d1)]instanceof re))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x11196e=_0x30f4f9['map'](_0x4d1992=>{const _0x15dd66=_0x3a1fa5,_0x28ec67=this[_0x15dd66(0x5f5)]['interceptor']['fetchThroughInterceptors'](this[_0x15dd66(0x5f5)]['interceptor'][_0x15dd66(0x5f4)]()[_0x15dd66(0x56b)])(_0x4d1992[_0x15dd66(0x219)],null)||_0x4d1992[_0x15dd66(0x219)];return{..._0x4d1992,'mutations':_0x28ec67};});this[_0x3a1fa5(0x531)](),this[_0x3a1fa5(0x1f0)](this[_0x3a1fa5(0x5d1)][_0x3a1fa5(0x584)](_0x11196e)),this[_0x3a1fa5(0x652)]();}[_0x29ff00(0x223)](){const _0x19b900=_0x29ff00;this['_lockTransition'](),this[_0x19b900(0x1f0)](this[_0x19b900(0x5d1)][_0x19b900(0x2f3)]()),this[_0x19b900(0x652)]();}[_0x29ff00(0x5d4)](_0x50cfb5=!0x1){const _0x184b21=_0x29ff00;this['_lockTransition'](),this['_updateState'](this[_0x184b21(0x5d1)]['toggleOnline']()),this['_unlockTransition']();const _0x3cd8b1=this[_0x184b21(0x5d1)];_0x50cfb5&&_0x3cd8b1 instanceof Oe&&(this[_0x184b21(0x531)](),this[_0x184b21(0x1f0)](_0x3cd8b1['fetchMiss']()),this[_0x184b21(0x652)]());}async['_createInitialState'](){return new Promise(_0x50074b=>{const _0x3e4404=_0x2f26;this['session'][_0x3e4404(0x299)]['pipe'](A[_0x3e4404(0x3d7)](0x1))[_0x3e4404(0x58f)](async _0x408361=>{const _0x1196df=_0x3e4404;_0x50074b(await this[_0x1196df(0x319)](_0x408361===se[_0x1196df(0x572)]));});});}[_0x29ff00(0x2a3)](){const _0xc131cc=_0x29ff00,_0x49b60e=this[_0xc131cc(0x553)];return{'onStateChange':(_0x1f1143,_0x35c35f)=>{const _0x4583b3=_0xc131cc;if(_0x1f1143!==this[_0x4583b3(0x5d1)])throw new Error(_0x4583b3(0x389)+_0x1f1143[_0x4583b3(0x2be)]+'\x0aAfter:\x20'+_0x35c35f[_0x4583b3(0x2be)]+_0x4583b3(0x33e)+this[_0x4583b3(0x5d1)]['status']);this[_0x4583b3(0x1f0)](_0x35c35f);},'onSendChangeset':_0x1ceaa0=>{const _0x42f0df=_0xc131cc;_0x1ceaa0[_0x42f0df(0x585)]||(_0x1ceaa0['sid']=this[_0x42f0df(0x3d8)],_0x1ceaa0[_0x42f0df(0x44e)]=++this['_changesetReqId']);const _0x331243={'eventID':p[_0x42f0df(0x259)][_0x42f0df(0x2c8)],'data':{'unitID':_0x1ceaa0[_0x42f0df(0x553)],'unitType':this[_0x42f0df(0x201)],'changeset':_0x1ceaa0,'memberID':this[_0x42f0df(0x257)][_0x42f0df(0x40a)]()}};this[_0x42f0df(0x257)][_0x42f0df(0x385)](_0x331243,this[_0x42f0df(0x553)]);},'onMissingChangesets':({from:_0x1f4820,to:_0x384e91})=>{const _0x4339a6=_0xc131cc;this['_logService'][_0x4339a6(0x226)](_0x4339a6(0x502),_0x4339a6(0x4e4)+_0x1f4820+_0x4339a6(0x446)+_0x384e91);const _0x3b7798={'eventID':p[_0x4339a6(0x259)][_0x4339a6(0x414)],'data':{'unitID':_0x49b60e,'unitType':this[_0x4339a6(0x201)],'from':_0x1f4820,'to':_0x384e91}};this['session']['send'](_0x3b7798,this[_0x4339a6(0x553)]);}};}async[_0x29ff00(0x319)](_0x2104c2){const _0x4c94e1=_0x29ff00;var _0x3e71e6,_0x1f7181;const _0x2e1505=await this['_localCacheService'][_0x4c94e1(0x26d)](this[_0x4c94e1(0x553)]),_0x4888f4=(_0x3e71e6=_0x2e1505==null?void 0x0:_0x2e1505[_0x4c94e1(0x219)])!=null?_0x3e71e6:[],_0xcb74de=(_0x1f7181=_0x2e1505==null?void 0x0:_0x2e1505[_0x4c94e1(0x247)])!=null?_0x1f7181:null,_0x467acb=!!(_0xcb74de!=null&&_0xcb74de[_0x4c94e1(0x585)])&&!!(_0xcb74de!=null&&_0xcb74de[_0x4c94e1(0x44e)]);this['_changesetSessionId']=_0x467acb?_0xcb74de['sid']:In(),this['_changesetReqId']=_0x467acb?_0xcb74de[_0x4c94e1(0x44e)]:0x0;const _0x5b7926=this[_0x4c94e1(0x553)];try{this[_0x4c94e1(0x680)](_0xcb74de,_0x4888f4);}catch(_0x410a20){this[_0x4c94e1(0x328)][_0x4c94e1(0x27a)](_0x410a20);}const _0x27a4de=this[_0x4c94e1(0x2a3)]();if(_0x2104c2){const _0x38fecd=gi(this[_0x4c94e1(0x1c1)],_0x5b7926,this[_0x4c94e1(0x201)],_0xcb74de,_0x4888f4,_0x27a4de);return _0x38fecd instanceof ce?_0x38fecd[_0x4c94e1(0x490)]():(_0x38fecd instanceof le||_0x38fecd instanceof fe)&&_0x38fecd['resend'](),_0x38fecd;}return this['_injector'][_0x4c94e1(0x527)](Se,_0x5b7926,this['_type'],_0xcb74de,_0x4888f4,_0x27a4de);}[_0x29ff00(0x680)](_0x4324ec,_0xc36787){const _0x2c33ce=_0x29ff00;var _0x29ca63,_0x5edd86;const _0x2709e6=this[_0x2c33ce(0x5f5)]['interceptor']['fetchThroughInterceptors'](this[_0x2c33ce(0x5f5)]['interceptor']['getInterceptPoints']()[_0x2c33ce(0x56b)]);(_0x29ca63=_0x2709e6((_0x4324ec==null?void 0x0:_0x4324ec[_0x2c33ce(0x219)])||[],null))==null||_0x29ca63[_0x2c33ce(0x3a1)](_0x1aea94=>this[_0x2c33ce(0x5b4)]['executeCommand'](_0x1aea94['id'],_0x1aea94[_0x2c33ce(0x447)])),(_0x5edd86=_0x2709e6(_0xc36787||[],null))==null||_0x5edd86[_0x2c33ce(0x3a1)](_0x34f8e2=>this[_0x2c33ce(0x5b4)][_0x2c33ce(0x645)](_0x34f8e2['id'],_0x34f8e2[_0x2c33ce(0x447)]));}},exports[_0x29ff00(0x21e)]=Ot([H(0x3,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),H(0x4,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),H(0x5,a[_0x29ff00(0x493)](p[_0x29ff00(0x31b)])),H(0x6,a['Inject'](a[_0x29ff00(0x430)])),H(0x7,a[_0x29ff00(0x493)](p[_0x29ff00(0x59a)])),H(0x8,a[_0x29ff00(0x4ac)]),H(0x9,a['ICommandService']),H(0xa,te[_0x29ff00(0x47f)]),H(0xb,a[_0x29ff00(0x3d1)]),H(0xc,a[_0x29ff00(0x437)](ze))],exports[_0x29ff00(0x21e)]),exports[_0x29ff00(0x5dd)]=class extends exports['CollaborationEntity']{constructor(_0x8c973c,_0x424c0a,_0x16e92f,_0x2fa510,_0x231082,_0x5836a9,_0x5f0b98,_0x24401e,_0x3a7ecf,_0x1e2d26,_0x4776ed,_0x5e2454,_0x1c91bd,_0x57590e,_0xb9bf2b,_0x185eab,_0x288ee9,_0x182037){const _0x57341b=_0x29ff00;super(_0x8c973c,_0x16e92f,_0x424c0a,_0x2fa510,_0x231082,_0x5836a9,_0x5f0b98,_0x24401e,_0x57590e,_0xb9bf2b,_0x185eab,_0x288ee9,_0x182037),this[_0x57341b(0x553)]=_0x8c973c,this['type']=_0x424c0a,this[_0x57341b(0x1cc)]=_0x3a7ecf,this[_0x57341b(0x2ed)]=_0x1e2d26,this[_0x57341b(0x5eb)]=_0x4776ed,this[_0x57341b(0x330)]=_0x5e2454,this['_docSyncEditingCollabCursorService']=_0x1c91bd;}[_0x29ff00(0x2a3)](){const _0x20ff1c=_0x29ff00,_0x532888=super['_createHandler']();return _0x532888[_0x20ff1c(0x420)]=_0x25ad31=>this[_0x20ff1c(0x2ed)]['transformIMECache'](_0x25ad31),_0x532888['onTransformState']=_0x2d6233=>this[_0x20ff1c(0x5eb)][_0x20ff1c(0x46f)](_0x2d6233),_0x532888['onTransformSelections']=_0x145c90=>this[_0x20ff1c(0x330)][_0x20ff1c(0x2c1)](_0x145c90),_0x532888[_0x20ff1c(0x46b)]=_0x56b722=>this[_0x20ff1c(0x1f7)][_0x20ff1c(0x329)](_0x56b722),_0x532888['onTransformRemoteChangesetByIMECache']=_0x2c5a17=>this['_docTransformIMECacheService'][_0x20ff1c(0x5ef)](_0x2c5a17),_0x532888['onTransformRemoteChangesetByStateCache']=_0x1023ba=>this[_0x20ff1c(0x5eb)]['transformRemoteChangeset'](_0x1023ba),_0x532888;}async[_0x29ff00(0x5c4)](){const _0x73d7d6=_0x29ff00,_0x462d98=await super['_init']();return this[_0x73d7d6(0x665)](this[_0x73d7d6(0x1cc)]['docStateChange$'][_0x73d7d6(0x619)](A[_0x73d7d6(0x264)](this['dispose$']))['subscribe'](_0x37543f=>{const _0x2a254b=_0x73d7d6;if(_0x37543f==null)return;const {unitId:_0x1c94a4,redoState:_0x2fc778,commandId:_0x40a3b0}=_0x37543f;if(_0x1c94a4!==this['unitID'])return;const _0x118cef={'id':_0x40a3b0,'type':a[_0x2a254b(0x688)][_0x2a254b(0x501)],'params':{'unitId':_0x1c94a4,'actions':_0x2fc778[_0x2a254b(0x4fc)],'textRanges':null}};this[_0x2a254b(0x65a)](_0x118cef);})),this['disposeWithMe'](this[_0x73d7d6(0x5b4)][_0x73d7d6(0x3f0)]((_0x328fbc,_0x26ec82)=>{const _0x2bd4d4=_0x73d7d6;if(_0x328fbc[_0x2bd4d4(0x2eb)]!==a[_0x2bd4d4(0x688)]['MUTATION']||_0x26ec82!=null&&_0x26ec82[_0x2bd4d4(0x2ea)]||_0x26ec82!=null&&_0x26ec82[_0x2bd4d4(0x205)]||_0x328fbc['id']===Ie[_0x2bd4d4(0x344)]['id'])return;const _0xe80703=_0x328fbc[_0x2bd4d4(0x447)];if((_0xe80703==null?void 0x0:_0xe80703['unitId'])!==this['unitID'])return;const _0x506afa=_0x328fbc,_0x2ff636=this[_0x2bd4d4(0x5f5)][_0x2bd4d4(0x48d)][_0x2bd4d4(0x5f0)](this[_0x2bd4d4(0x5f5)][_0x2bd4d4(0x48d)][_0x2bd4d4(0x5f4)]()[_0x2bd4d4(0x57f)])([_0x506afa],null)||[_0x506afa];this['_onLocalMutation'](_0x2ff636[0x0]);})),_0x462d98;}},exports['DocCollaborationEntity']=Ot([H(0x3,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),H(0x4,a['Inject'](exports[_0x29ff00(0x46a)])),H(0x5,a[_0x29ff00(0x493)](p[_0x29ff00(0x31b)])),H(0x6,a[_0x29ff00(0x493)](a[_0x29ff00(0x430)])),H(0x7,a['Inject'](p[_0x29ff00(0x59a)])),H(0x8,a[_0x29ff00(0x493)](J['DocStateChangeManagerService'])),H(0x9,a[_0x29ff00(0x493)](Be)),H(0xa,a[_0x29ff00(0x493)](We)),H(0xb,a[_0x29ff00(0x493)](Fe)),H(0xc,a[_0x29ff00(0x493)](yt)),H(0xd,a[_0x29ff00(0x4ac)]),H(0xe,a['ICommandService']),H(0xf,te['IMessageService']),H(0x10,a[_0x29ff00(0x3d1)]),H(0x11,a[_0x29ff00(0x437)](ze))],exports[_0x29ff00(0x5dd)]),exports['SheetCollaborationEntity']=class extends exports[_0x29ff00(0x21e)]{constructor(_0x572828,_0x176339,_0x2ff00,_0x347df6,_0x3defdc,_0x525edd,_0x495dcb,_0x5b3b78,_0x4f85fd,_0xb954f8,_0x31277d,_0x5c90d2,_0x3ecd55,_0x1c6b3a){const _0x3c8dc8=_0x29ff00;super(_0x572828,_0x2ff00,_0x176339,_0x347df6,_0x3defdc,_0x525edd,_0x495dcb,_0x5b3b78,_0xb954f8,_0x31277d,_0x5c90d2,_0x3ecd55,_0x1c6b3a),this[_0x3c8dc8(0x553)]=_0x572828,this['type']=_0x176339,this[_0x3c8dc8(0x4df)]=_0x4f85fd;}['_createHandler'](){const _0x41209a=_0x29ff00,_0xc49e7e=super[_0x41209a(0x2a3)]();return _0xc49e7e[_0x41209a(0x289)]=_0x38b6f1=>this['_sheetTransformSelectionsService'][_0x41209a(0x2c1)](_0x38b6f1),_0xc49e7e;}async['_init'](){const _0x20126d=_0x29ff00,_0xc095bb=await super['_init']();return this[_0x20126d(0x665)](this[_0x20126d(0x5b4)][_0x20126d(0x3f0)]((_0x1d764e,_0x53d194)=>{const _0x3818b4=_0x20126d;if(_0x1d764e[_0x3818b4(0x2eb)]!==a[_0x3818b4(0x688)]['MUTATION']||_0x53d194!=null&&_0x53d194[_0x3818b4(0x2ea)]||_0x53d194!=null&&_0x53d194[_0x3818b4(0x205)])return;const _0x422768=_0x1d764e[_0x3818b4(0x447)];if((_0x422768==null?void 0x0:_0x422768[_0x3818b4(0x21b)])!==this[_0x3818b4(0x553)])return;const _0x50fa92=_0x1d764e,_0xcb9060=this[_0x3818b4(0x5f5)]['interceptor'][_0x3818b4(0x5f0)](this['_compressMutationService'][_0x3818b4(0x48d)]['getInterceptPoints']()[_0x3818b4(0x57f)])([_0x50fa92],null)||[_0x50fa92];this['_onLocalMutation'](_0xcb9060[0x0]);})),_0xc095bb;}},exports[_0x29ff00(0x5cd)]=Ot([H(0x3,a['Inject'](a[_0x29ff00(0x615)])),H(0x4,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),H(0x5,a[_0x29ff00(0x493)](p[_0x29ff00(0x31b)])),H(0x6,a[_0x29ff00(0x493)](a[_0x29ff00(0x430)])),H(0x7,a['Inject'](p[_0x29ff00(0x59a)])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x29ff00(0x4ac)]),H(0xa,a[_0x29ff00(0x587)]),H(0xb,te[_0x29ff00(0x47f)]),H(0xc,a['IPermissionService']),H(0xd,a['Optional'](ze))],exports[_0x29ff00(0x5cd)]);var Yn=Object[_0x29ff00(0x64a)],Kn=Object['getOwnPropertyDescriptor'],qn=(_0x5db910,_0x5ef03e,_0x3b3cb6,_0xd372f1)=>{const _0x39828b=_0x29ff00;for(var _0x1a784f=_0xd372f1>0x1?void 0x0:_0xd372f1?Kn(_0x5ef03e,_0x3b3cb6):_0x5ef03e,_0x42d3cc=_0x5db910[_0x39828b(0x5e7)]-0x1,_0xa4d0ed;_0x42d3cc>=0x0;_0x42d3cc--)(_0xa4d0ed=_0x5db910[_0x42d3cc])&&(_0x1a784f=(_0xd372f1?_0xa4d0ed(_0x5ef03e,_0x3b3cb6,_0x1a784f):_0xa4d0ed(_0x1a784f))||_0x1a784f);return _0xd372f1&&_0x1a784f&&Yn(_0x5ef03e,_0x3b3cb6,_0x1a784f),_0x1a784f;},it=(_0x51545e,_0x3d2ae7)=>(_0x1af94e,_0x3b7fe5)=>_0x3d2ae7(_0x1af94e,_0x3b7fe5,_0x51545e);exports['CollaborationController']=class extends a['RxDisposable']{constructor(_0x30aca5,_0x1d0196,_0x403a3e){const _0x33b534=_0x29ff00;super(),I(this,_0x33b534(0x221),new Map()),I(this,_0x33b534(0x23b),new A[(_0x33b534(0x534))]()),(this['_injector']=_0x30aca5,this[_0x33b534(0x653)]=_0x1d0196,this[_0x33b534(0x600)]=_0x403a3e,this[_0x33b534(0x5c4)]());}['dispose'](){const _0x227e53=_0x29ff00;super[_0x227e53(0x5e6)](),this[_0x227e53(0x221)][_0x227e53(0x3a1)](_0x13d72e=>_0x13d72e['dispose']()),this[_0x227e53(0x221)]['clear']();}[_0x29ff00(0x55f)](_0x14703f){const _0x479e27=_0x29ff00;var _0x1dfe32;return(_0x1dfe32=this[_0x479e27(0x221)][_0x479e27(0x2ef)](_0x14703f))!=null?_0x1dfe32:null;}[_0x29ff00(0x388)](_0x3a4b09){const _0xe7e556=_0x29ff00,_0x5c9441=this[_0xe7e556(0x55f)](_0x3a4b09);return _0x5c9441?A['of'](_0x5c9441):this[_0xe7e556(0x23b)][_0xe7e556(0x619)](V[_0xe7e556(0x604)](_0x51994f=>_0x51994f[_0xe7e556(0x553)]===_0x3a4b09));}[_0x29ff00(0x5c4)](){const _0xa202e7=_0x29ff00;this[_0xa202e7(0x600)][_0xa202e7(0x460)](a['UniverInstanceType'][_0xa202e7(0x3d0)])['pipe'](A[_0xa202e7(0x264)](this[_0xa202e7(0x2b6)]),V[_0xa202e7(0x3bd)](0x10))[_0xa202e7(0x58f)](async _0x4e9243=>{const _0x14b4e8=_0xa202e7,_0x29830f=_0x4e9243[_0x14b4e8(0x621)](),_0x38bbf2=await this[_0x14b4e8(0x500)](_0x29830f,ne['UNIVER_SHEET']);this['_entities'][_0x14b4e8(0x20a)](_0x29830f,_0x38bbf2);}),this[_0xa202e7(0x600)][_0xa202e7(0x460)](a[_0xa202e7(0x5ce)][_0xa202e7(0x4f0)])[_0xa202e7(0x619)](A[_0xa202e7(0x264)](this[_0xa202e7(0x2b6)]),V[_0xa202e7(0x3bd)](0x10))[_0xa202e7(0x619)](V[_0xa202e7(0x604)](_0x16b6cb=>!_0x16b6cb[_0xa202e7(0x621)]()[_0xa202e7(0x66a)]('__')))[_0xa202e7(0x58f)](async _0x1a6cd1=>{const _0x17f0e1=_0xa202e7,_0x4ff208=_0x1a6cd1[_0x17f0e1(0x621)](),_0x1f80ed=await this[_0x17f0e1(0x500)](_0x4ff208,ne[_0x17f0e1(0x4f0)]);this[_0x17f0e1(0x221)]['set'](_0x4ff208,_0x1f80ed);}),A[_0xa202e7(0x5ed)](this['_univerInstanceService'][_0xa202e7(0x365)](a[_0xa202e7(0x5ce)][_0xa202e7(0x3d0)]),this[_0xa202e7(0x600)][_0xa202e7(0x365)](a['UniverInstanceType'][_0xa202e7(0x4f0)]))[_0xa202e7(0x619)](A[_0xa202e7(0x264)](this[_0xa202e7(0x2b6)]))[_0xa202e7(0x58f)](_0x143754=>{const _0xeedd2=_0xa202e7,_0x50b74b=_0x143754[_0xeedd2(0x621)](),_0x5a1b1e=this['_entities'][_0xeedd2(0x2ef)](_0x50b74b);_0x5a1b1e&&(_0x5a1b1e[_0xeedd2(0x5e6)](),this[_0xeedd2(0x221)][_0xeedd2(0x3dc)](_0x50b74b));});}async['_startCollaboration'](_0x353db0,_0x1e7c5e){const _0x263b0c=_0x29ff00,_0x3c4baa=await this[_0x263b0c(0x653)]['requireSession'](_0x353db0),_0x149bbe=this[_0x263b0c(0x1c1)][_0x263b0c(0x527)](this[_0x263b0c(0x47b)](_0x1e7c5e),_0x353db0,_0x1e7c5e,_0x3c4baa);return await _0x149bbe[_0x263b0c(0x334)](),this[_0x263b0c(0x23b)][_0x263b0c(0x49f)](_0x149bbe),_0x149bbe;}[_0x29ff00(0x47b)](_0x3bcdd2){const _0x36a95b=_0x29ff00;switch(_0x3bcdd2){case ne[_0x36a95b(0x4f0)]:return exports['DocCollaborationEntity'];case ne[_0x36a95b(0x3d0)]:return exports[_0x36a95b(0x5cd)];default:throw new Error(_0x36a95b(0x4fb)+_0x3bcdd2);}}},exports[_0x29ff00(0x323)]=qn([it(0x0,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),it(0x1,a[_0x29ff00(0x493)](exports['CollaborationSessionService'])),it(0x2,a['IUniverInstanceService'])],exports[_0x29ff00(0x323)]);var zn=Object[_0x29ff00(0x64a)],Xn=Object[_0x29ff00(0x316)],Jn=(_0x691a60,_0x18168a,_0x3a2ae0,_0x5316ed)=>{const _0x5cb4a0=_0x29ff00;for(var _0x4fb858=_0x5316ed>0x1?void 0x0:_0x5316ed?Xn(_0x18168a,_0x3a2ae0):_0x18168a,_0x4379de=_0x691a60[_0x5cb4a0(0x5e7)]-0x1,_0x4233e0;_0x4379de>=0x0;_0x4379de--)(_0x4233e0=_0x691a60[_0x4379de])&&(_0x4fb858=(_0x5316ed?_0x4233e0(_0x18168a,_0x3a2ae0,_0x4fb858):_0x4233e0(_0x4fb858))||_0x4fb858);return _0x5316ed&&_0x4fb858&&zn(_0x18168a,_0x3a2ae0,_0x4fb858),_0x4fb858;},Bt=(_0x16ad59,_0x2478cb)=>(_0x39d78e,_0x45a125)=>_0x2478cb(_0x39d78e,_0x45a125,_0x16ad59);let Ve=class extends a[_0x29ff00(0x4b0)]{constructor(_0x637dd5,_0x22b9c3){const _0x1344e0=_0x29ff00;super(),this[_0x1344e0(0x51e)]=_0x637dd5,this[_0x1344e0(0x433)]=_0x22b9c3,this['_init']();}['_init'](){const _0x12dac7=_0x29ff00,_0x41faea=this;this[_0x12dac7(0x665)](this[_0x12dac7(0x51e)][_0x12dac7(0x586)]({'onBeforePasteImage':async _0x162c36=>{const _0x41eaf1=_0x12dac7,_0x496761=await _0x41faea[_0x41eaf1(0x433)][_0x41eaf1(0x3f6)](_0x162c36);return _0x496761?{'source':_0x496761[_0x41eaf1(0x214)],'imageSourceType':_0x496761[_0x41eaf1(0x248)]}:null;}}));}};Ve=Jn([Bt(0x0,J[_0x29ff00(0x222)]),Bt(0x1,ie[_0x29ff00(0x509)])],Ve);const kt=[_0x29ff00(0x2b9),_0x29ff00(0x333),_0x29ff00(0x46d),'red300',_0x29ff00(0x362),_0x29ff00(0x1f5)];class Dt extends a[_0x29ff00(0x331)]{constructor(){const _0x408b51=_0x29ff00;super(...arguments),I(this,'_assignedColors',new Map()),I(this,_0x408b51(0x668),0x0);}[_0x29ff00(0x255)](_0x4a0403){const _0x4b46f5=_0x29ff00;if(this[_0x4b46f5(0x67f)][_0x4b46f5(0x38d)](_0x4a0403))return this['_assignedColors'][_0x4b46f5(0x2ef)](_0x4a0403);const _0x391d74=kt[this['_colorIndex']];return this[_0x4b46f5(0x668)]=(this[_0x4b46f5(0x668)]+0x1)%kt[_0x4b46f5(0x5e7)],this['_assignedColors'][_0x4b46f5(0x20a)](_0x4a0403,_0x391d74),_0x391d74;}}var Zn=Object['defineProperty'],Qn=Object[_0x29ff00(0x316)],es=(_0x3e5b2e,_0xdab1f8,_0xfb0ff3,_0x152f39)=>{const _0x34b3cf=_0x29ff00;for(var _0x31afd2=_0x152f39>0x1?void 0x0:_0x152f39?Qn(_0xdab1f8,_0xfb0ff3):_0xdab1f8,_0x2b230b=_0x3e5b2e[_0x34b3cf(0x5e7)]-0x1,_0x4908ce;_0x2b230b>=0x0;_0x2b230b--)(_0x4908ce=_0x3e5b2e[_0x2b230b])&&(_0x31afd2=(_0x152f39?_0x4908ce(_0xdab1f8,_0xfb0ff3,_0x31afd2):_0x4908ce(_0x31afd2))||_0x31afd2);return _0x152f39&&_0x31afd2&&Zn(_0xdab1f8,_0xfb0ff3,_0x31afd2),_0x31afd2;},me=(_0x3297cf,_0x20c8a2)=>(_0x149733,_0x478241)=>_0x20c8a2(_0x149733,_0x478241,_0x3297cf);const ts=0x12c,is=0x64;let pt=class extends a[_0x29ff00(0x4b0)]{constructor(_0xfa4228,_0x5c7009,_0x2e0e7b,_0x2c5356,_0x4ec6af,_0x203397,_0x48dfd9,_0xc30461,_0x33d35d){const _0x3dfdf0=_0x29ff00;super(),I(this,_0x3dfdf0(0x35c),!0x1),I(this,_0x3dfdf0(0x5c4),!0x1),I(this,_0x3dfdf0(0x278),new A[(_0x3dfdf0(0x26c))](new Map())),I(this,_0x3dfdf0(0x36e),this[_0x3dfdf0(0x278)][_0x3dfdf0(0x4c6)]()),I(this,'_roomMembers$',new A[(_0x3dfdf0(0x26c))]([])),I(this,_0x3dfdf0(0x647),this[_0x3dfdf0(0x5e9)][_0x3dfdf0(0x619)](A[_0x3dfdf0(0x54d)](ts))),I(this,'_updateLocalCursor',a[_0x3dfdf0(0x242)](_0x1ee67a=>{const _0x17a37f=_0x3dfdf0,_0x4cbeb6={'eventID':p[_0x17a37f(0x259)][_0x17a37f(0x435)],'data':{'unitID':this['unitID'],'memberID':this[_0x17a37f(0x37d)][_0x17a37f(0x40a)](),'selection':Si(_0x1ee67a)}};this['_session']['send'](_0x4cbeb6,this[_0x17a37f(0x553)]);},is)),(this[_0x3dfdf0(0x553)]=_0xfa4228,this[_0x3dfdf0(0x37d)]=_0x5c7009,this[_0x3dfdf0(0x1c1)]=_0x2e0e7b,this[_0x3dfdf0(0x4e1)]=_0x2c5356,this['_memberService']=_0x4ec6af,this['_syncEditingCollabCursorService']=_0x203397,this['_transformService']=_0x48dfd9,this['_univerInstanceService']=_0xc30461,this[_0x3dfdf0(0x5b4)]=_0x33d35d);}get[_0x29ff00(0x3ec)](){const _0x37d75b=_0x29ff00;return this[_0x37d75b(0x278)][_0x37d75b(0x42e)]();}get[_0x29ff00(0x25e)](){const _0x3dd6ad=_0x29ff00;return this[_0x3dd6ad(0x5e9)][_0x3dd6ad(0x42e)]();}['dispose'](){const _0x47ece9=_0x29ff00;super[_0x47ece9(0x5e6)](),this[_0x47ece9(0x278)][_0x47ece9(0x49f)](new Map()),this[_0x47ece9(0x278)][_0x47ece9(0x22e)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x47ece9(0x22e)]();}[_0x29ff00(0x334)](){const _0x5bd68f=_0x29ff00;this[_0x5bd68f(0x5c4)]||(this[_0x5bd68f(0x5c4)]=!0x0,this['_session'][_0x5bd68f(0x299)][_0x5bd68f(0x619)](A[_0x5bd68f(0x264)](this[_0x5bd68f(0x2b6)]))[_0x5bd68f(0x58f)](_0xbed8c4=>{const _0x348f3a=_0x5bd68f;_0xbed8c4===se[_0x348f3a(0x572)]?this['_toggleOnline']():this[_0x348f3a(0x223)]();}),this[_0x5bd68f(0x37d)][_0x5bd68f(0x48a)]['pipe'](A[_0x5bd68f(0x264)](this['dispose$']))[_0x5bd68f(0x58f)](_0x470648=>{const _0x3c00d9=_0x5bd68f,_0x8b80c8=_0x470648['eventID'];_0x8b80c8===p[_0x3c00d9(0x259)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x470648),_0x8b80c8===p[_0x3c00d9(0x259)][_0x3c00d9(0x5a1)]&&this['_onCursorDelete'](_0x470648);}),this[_0x5bd68f(0x665)](this[_0x5bd68f(0x5b4)][_0x5bd68f(0x3f0)](_0x515e41=>{const _0x1462df=_0x5bd68f,_0x508fca=_0x515e41[_0x1462df(0x447)];_0x508fca!=null&&this['_online']&&_0x515e41['id']===Ie[_0x1462df(0x592)]['id']&&_0x508fca[_0x1462df(0x21b)]===this[_0x1462df(0x553)]&&_0x508fca[_0x1462df(0x640)]===!0x1&&_0x508fca[_0x1462df(0x476)][_0x1462df(0x5e7)]>0x0&&this['_updateLocalCursor'](_0x508fca[_0x1462df(0x476)]);})),this[_0x5bd68f(0x1b5)][_0x5bd68f(0x41b)][_0x5bd68f(0x619)](A[_0x5bd68f(0x264)](this['dispose$']))[_0x5bd68f(0x58f)](_0x23a7a1=>{const _0x11b134=_0x5bd68f;if((_0x23a7a1==null?void 0x0:_0x23a7a1[_0x11b134(0x553)])!==this['unitID'])return;const _0xd04743={'eventID':p[_0x11b134(0x259)][_0x11b134(0x435)],'data':_0x23a7a1};this['_onCursorUpdate'](_0xd04743);}),this[_0x5bd68f(0x665)](this[_0x5bd68f(0x5b4)]['onCommandExecuted'](_0x574c18=>{const _0x201f7d=_0x5bd68f;if(_0x574c18[_0x201f7d(0x447)]==null)return;const _0x4fe055=_0x574c18[_0x201f7d(0x447)];if(_0x574c18['id']!==Ie[_0x201f7d(0x344)]['id']||_0x4fe055[_0x201f7d(0x21b)]!==this[_0x201f7d(0x553)])return;const _0x33b065={'id':_0x201f7d(0x356),'params':_0x4fe055},_0x2d6737=this[_0x201f7d(0x3ec)];for(const [_0x1557ba,_0x10394e]of _0x2d6737){const _0x35ad38={'id':_0x201f7d(0x356),'params':{'unitId':this[_0x201f7d(0x553)],'actions':null,'textRanges':_0x10394e['ranges']}},_0x2a61e4=this[_0x201f7d(0x449)][_0x201f7d(0x43c)](_0x33b065,_0x35ad38,!0x1);if(p[_0x201f7d(0x4b4)](_0x2a61e4))throw _0x2a61e4[_0x201f7d(0x27a)];_0x2d6737[_0x201f7d(0x20a)](_0x1557ba,{..._0x10394e,'ranges':_0x2a61e4[_0x201f7d(0x239)][_0x201f7d(0x447)][_0x201f7d(0x49e)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x2d6737);});})));}[_0x29ff00(0x1e3)](_0x3052d3){const _0x2a43ff=_0x29ff00;var _0x122d0d,_0x13e0b2;const {memberID:_0x27bef0,selection:_0x1f5707}=_0x3052d3[_0x2a43ff(0x3eb)],_0x49bfac=Ln(_0x1f5707),_0x557a99=(_0x13e0b2=(_0x122d0d=this['_memberService'][_0x2a43ff(0x5b8)](this[_0x2a43ff(0x553)],_0x27bef0))==null?void 0x0:_0x122d0d[_0x2a43ff(0x2cd)])!=null?_0x13e0b2:_0x2a43ff(0x27c),_0x33d238={'color':this[_0x2a43ff(0x4e1)][_0x2a43ff(0x255)](_0x27bef0),'name':_0x557a99,'ranges':_0x49bfac},_0x57be45=this['cursorInfo'];_0x57be45[_0x2a43ff(0x20a)](_0x27bef0,_0x33d238),this[_0x2a43ff(0x278)][_0x2a43ff(0x49f)](_0x57be45);}[_0x29ff00(0x22f)](_0x209e83){const _0x381f82=_0x29ff00,{memberID:_0x35b913}=_0x209e83[_0x381f82(0x3eb)],_0x44321b=this[_0x381f82(0x3ec)];_0x44321b[_0x381f82(0x3dc)](_0x35b913),this[_0x381f82(0x278)][_0x381f82(0x49f)](_0x44321b);}[_0x29ff00(0x5d4)](){const _0x5b7c49=_0x29ff00;var _0x2f2491;if(this[_0x5b7c49(0x35c)]=!0x0,((_0x2f2491=this[_0x5b7c49(0x600)][_0x5b7c49(0x498)]())==null?void 0x0:_0x2f2491[_0x5b7c49(0x621)]())!==this[_0x5b7c49(0x553)])return;const _0x3249e5=this[_0x5b7c49(0x1c1)][_0x5b7c49(0x2ef)](Ie['DocSelectionManagerService'])[_0x5b7c49(0x526)]();Array['isArray'](_0x3249e5)&&_0x3249e5[_0x5b7c49(0x5e7)]>0x0&&this[_0x5b7c49(0x660)](_0x3249e5);}[_0x29ff00(0x223)](){const _0x517ecd=_0x29ff00;this[_0x517ecd(0x35c)]=!0x1;}};pt=es([me(0x2,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),me(0x3,a[_0x29ff00(0x493)](Dt)),me(0x4,a[_0x29ff00(0x493)](exports[_0x29ff00(0x1d6)])),me(0x5,a[_0x29ff00(0x493)](yt)),me(0x6,p[_0x29ff00(0x38f)]),me(0x7,a[_0x29ff00(0x37f)]),me(0x8,a[_0x29ff00(0x587)])],pt);var ns=Object[_0x29ff00(0x64a)],ss=Object[_0x29ff00(0x316)],rs=(_0x39965a,_0x297a1c,_0x40f2e9,_0x34f85f)=>{const _0x30fb04=_0x29ff00;for(var _0x277712=_0x34f85f>0x1?void 0x0:_0x34f85f?ss(_0x297a1c,_0x40f2e9):_0x297a1c,_0x7fad71=_0x39965a[_0x30fb04(0x5e7)]-0x1,_0x5b4c25;_0x7fad71>=0x0;_0x7fad71--)(_0x5b4c25=_0x39965a[_0x7fad71])&&(_0x277712=(_0x34f85f?_0x5b4c25(_0x297a1c,_0x40f2e9,_0x277712):_0x5b4c25(_0x277712))||_0x277712);return _0x34f85f&&_0x277712&&ns(_0x297a1c,_0x40f2e9,_0x277712),_0x277712;},Te=(_0x29e2fe,_0x40b285)=>(_0x2e5836,_0xb9a60f)=>_0x40b285(_0x2e5836,_0xb9a60f,_0x29e2fe);const os=0x12c,as=0x64,cs=()=>{let _0x2fcba5=[],_0x505757=!0x1;return _0x18c09b=>{const _0x54c478=_0x2f26;_0x2fcba5[_0x54c478(0x3bc)](_0x18c09b),_0x505757||(_0x505757=!0x0,setTimeout(()=>{const _0x1c5127=_0x54c478;_0x2fcba5[_0x1c5127(0x3a1)](_0x502270=>_0x502270()),_0x2fcba5=[],_0x505757=!0x1;}));};};let mt=class extends a[_0x29ff00(0x4b0)]{constructor(_0x239abf,_0x5ab5c8,_0x3f4781,_0x541b62,_0x206d1a,_0x2be6e8,_0x4d15c5,_0x492dcf){const _0xed67b0=_0x29ff00;super(),I(this,_0xed67b0(0x35c),!0x1),I(this,_0xed67b0(0x5c4),!0x1),I(this,'_cursorInfo$',new A[(_0xed67b0(0x26c))](new Map())),I(this,_0xed67b0(0x36e),this[_0xed67b0(0x278)]['asObservable']()),I(this,'_roomMembers$',new A[(_0xed67b0(0x26c))]([])),I(this,_0xed67b0(0x647),this['_roomMembers$'][_0xed67b0(0x619)](A['debounceTime'](os))),I(this,_0xed67b0(0x660),a[_0xed67b0(0x242)]((_0x2d7279,_0x4b0bba)=>{const _0x3d6c81=_0xed67b0,_0x26de76={'eventID':p[_0x3d6c81(0x259)][_0x3d6c81(0x435)],'data':{'unitID':this[_0x3d6c81(0x553)],'memberID':this['_session'][_0x3d6c81(0x40a)](),'selection':Mt[_0x3d6c81(0x562)](_0x2d7279,_0x4b0bba[_0x3d6c81(0x3ff)])}};this[_0x3d6c81(0x37d)]['send'](_0x26de76,this['unitID']);},as)),(this[_0xed67b0(0x553)]=_0x239abf,this[_0xed67b0(0x37d)]=_0x5ab5c8,this[_0xed67b0(0x1c1)]=_0x3f4781,this[_0xed67b0(0x4e1)]=_0x541b62,this[_0xed67b0(0x427)]=_0x206d1a,this[_0xed67b0(0x600)]=_0x2be6e8,this[_0xed67b0(0x5b4)]=_0x4d15c5,this[_0xed67b0(0x2e5)]=_0x492dcf);}get[_0x29ff00(0x3ec)](){const _0x5e0805=_0x29ff00;return this['_cursorInfo$'][_0x5e0805(0x42e)]();}get[_0x29ff00(0x25e)](){const _0x115400=_0x29ff00;return this[_0x115400(0x5e9)]['getValue']();}[_0x29ff00(0x5e6)](){const _0x4134b0=_0x29ff00;super[_0x4134b0(0x5e6)](),this[_0x4134b0(0x278)]['next'](new Map()),this[_0x4134b0(0x278)][_0x4134b0(0x22e)](),this[_0x4134b0(0x5e9)][_0x4134b0(0x49f)]([]),this[_0x4134b0(0x5e9)][_0x4134b0(0x22e)]();}[_0x29ff00(0x334)](){const _0x17f8cb=_0x29ff00;this[_0x17f8cb(0x5c4)]||(this[_0x17f8cb(0x5c4)]=!0x0,this[_0x17f8cb(0x37d)][_0x17f8cb(0x299)][_0x17f8cb(0x619)](A['takeUntil'](this[_0x17f8cb(0x2b6)]))['subscribe'](_0x4a7253=>{const _0x55c98e=_0x17f8cb;_0x4a7253===se[_0x55c98e(0x572)]?this[_0x55c98e(0x5d4)]():this[_0x55c98e(0x223)]();}),this[_0x17f8cb(0x37d)]['event$']['pipe'](A[_0x17f8cb(0x264)](this['dispose$']))[_0x17f8cb(0x58f)](_0x5eba2c=>{const _0x3e0c62=_0x17f8cb,_0x5f3f09=_0x5eba2c[_0x3e0c62(0x55b)];_0x5f3f09===p[_0x3e0c62(0x259)][_0x3e0c62(0x435)]&&this[_0x3e0c62(0x1e3)](_0x5eba2c),_0x5f3f09===p[_0x3e0c62(0x259)][_0x3e0c62(0x5a1)]&&this['_onCursorDelete'](_0x5eba2c);}),this[_0x17f8cb(0x347)](),this[_0x17f8cb(0x665)](this[_0x17f8cb(0x5b4)][_0x17f8cb(0x3f0)](_0x1f217f=>{const _0x4843b6=_0x17f8cb;if(this[_0x4843b6(0x35c)]&&_0x1f217f['id']===k['SetSelectionsOperation']['id']&&_0x1f217f[_0x4843b6(0x447)]['unitId']===this['unitID']){const _0x1da2a2=_0x1f217f[_0x4843b6(0x447)];this[_0x4843b6(0x660)](_0x1da2a2[_0x4843b6(0x3da)],_0x1da2a2[_0x4843b6(0x338)][0x0]);}})));}[_0x29ff00(0x1e3)](_0x129d17){const _0x38b612=_0x29ff00;var _0x2e2425,_0x19f0ee;const {memberID:_0x51b1a1,selection:_0x582c0c}=_0x129d17[_0x38b612(0x3eb)],{sheetName:_0x2c21f2,range:_0x4d3c60}=Mt[_0x38b612(0x54b)](_0x582c0c),_0xbad939={'name':(_0x19f0ee=(_0x2e2425=this[_0x38b612(0x427)][_0x38b612(0x5b8)](this[_0x38b612(0x553)],_0x51b1a1))==null?void 0x0:_0x2e2425[_0x38b612(0x2cd)])!=null?_0x19f0ee:_0x38b612(0x27c),'range':this['_getMergeRange'](_0x2c21f2,_0x4d3c60),'sheetID':_0x2c21f2,'color':this[_0x38b612(0x4e1)][_0x38b612(0x255)](_0x51b1a1),'selection':_0x582c0c},_0x462d5a=this[_0x38b612(0x3ec)];_0x462d5a[_0x38b612(0x20a)](_0x51b1a1,_0xbad939),this[_0x38b612(0x278)][_0x38b612(0x49f)](_0x462d5a);}[_0x29ff00(0x22f)](_0x2ec1d3){const _0x45d964=_0x29ff00,{memberID:_0x230324}=_0x2ec1d3[_0x45d964(0x3eb)],_0x71e8cd=this[_0x45d964(0x3ec)];_0x71e8cd[_0x45d964(0x3dc)](_0x230324),this[_0x45d964(0x278)][_0x45d964(0x49f)](_0x71e8cd);}[_0x29ff00(0x21d)](_0x2e877d,_0x51e7e9){const _0x368b7b=_0x29ff00;var _0xe9e8bb,_0x28170a;const _0x3ef6fb=(_0x28170a=(_0xe9e8bb=this[_0x368b7b(0x600)][_0x368b7b(0x463)](this[_0x368b7b(0x553)]))==null?void 0x0:_0xe9e8bb[_0x368b7b(0x50c)](_0x2e877d))==null?void 0x0:_0x28170a[_0x368b7b(0x547)]();return(_0x3ef6fb==null?void 0x0:_0x3ef6fb[_0x368b7b(0x58b)](_0x422e6a=>a[_0x368b7b(0x5a6)][_0x368b7b(0x373)](_0x422e6a,_0x51e7e9)))||_0x51e7e9;}[_0x29ff00(0x347)](){const _0x288be2=_0x29ff00,_0x232265=new a[(_0x288be2(0x546))](),_0x5a44d9=cs(),_0x7d1134=()=>{const _0x51d4ec=_0x288be2;_0x232265[_0x51d4ec(0x5e6)]();const _0x740e44=(_0x2f55cc,_0x23be84,_0x11b1b2,_0x315891)=>{const _0x1afb9d=_0x51d4ec;let _0x518b3f=[];switch(_0x2f55cc['id']){case k[_0x1afb9d(0x411)]['DeleteRangeMoveLeftCommandId']:{_0x518b3f=k[_0x1afb9d(0x236)](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)][_0x1afb9d(0x5c5)]:{_0x518b3f=k['handleDeleteRangeMoveUp'](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)][_0x1afb9d(0x661)]:{_0x518b3f=k['handleInsertCol'](_0x2f55cc,_0x315891);break;}case k['EffectRefRangId'][_0x1afb9d(0x3a5)]:{_0x518b3f=k['handleInsertRangeMoveDown'](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)][_0x1afb9d(0x667)]:{_0x518b3f=k['handleInsertRangeMoveRight'](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)]['InsertRowCommandId']:{_0x518b3f=k[_0x1afb9d(0x59b)](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)][_0x1afb9d(0x26a)]:{_0x518b3f=k[_0x1afb9d(0x2fc)](_0x2f55cc,_0x315891);break;}case k['EffectRefRangId'][_0x1afb9d(0x413)]:{_0x518b3f=k[_0x1afb9d(0x20b)](_0x2f55cc,_0x315891);break;}case k[_0x1afb9d(0x411)][_0x1afb9d(0x51c)]:{_0x518b3f=k[_0x1afb9d(0x5e8)](_0x2f55cc,_0x315891);break;}}const _0x278a5f=k[_0x1afb9d(0x415)](_0x518b3f,_0x315891),_0x136ade=this['cursorInfo'][_0x1afb9d(0x2ef)](_0x23be84);if(_0x136ade&&_0x278a5f){const _0x4ba5a8={..._0x136ade,'range':_0x278a5f};this['cursorInfo'][_0x1afb9d(0x20a)](_0x23be84,_0x4ba5a8),_0x5a44d9(()=>{const _0x45ec86=_0x1afb9d,_0x5e8b14=this['_refRangeService'][_0x45ec86(0x2e9)](_0x278a5f,_0x22733f=>(_0x5e8b14[_0x45ec86(0x5e6)](),_0x740e44(_0x22733f,_0x23be84,_0x11b1b2,_0x278a5f)));_0x232265['add'](_0x5e8b14);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x51d4ec(0x3a1)]((_0x38a40f,_0x5022f5)=>{const _0x41cc96=_0x51d4ec,{range:_0xa935e0,sheetID:_0x5da660}=_0x38a40f,_0x4d5f85=this[_0x41cc96(0x2e5)][_0x41cc96(0x2e9)](_0xa935e0,_0x3881f1=>(_0x4d5f85[_0x41cc96(0x5e6)](),_0x740e44(_0x3881f1,_0x5022f5,_0x5da660,_0xa935e0)));_0x232265[_0x41cc96(0x231)](_0x4d5f85);});};this[_0x288be2(0x665)](a[_0x288be2(0x372)](this[_0x288be2(0x278)][_0x288be2(0x58f)](()=>{_0x7d1134();})));}[_0x29ff00(0x5d4)](){const _0x1d314d=_0x29ff00;var _0x29b342,_0x429b63;if(this[_0x1d314d(0x35c)]=!0x0,((_0x29b342=this[_0x1d314d(0x600)][_0x1d314d(0x498)]())==null?void 0x0:_0x29b342[_0x1d314d(0x621)]())!==this[_0x1d314d(0x553)])return;const _0x5e8f98=(_0x429b63=this[_0x1d314d(0x1c1)][_0x1d314d(0x2ef)](k[_0x1d314d(0x210)])['getCurrentSelections']())==null?void 0x0:_0x429b63[0x0],_0x9ba84f=this[_0x1d314d(0x600)][_0x1d314d(0x5b1)](a[_0x1d314d(0x5ce)][_0x1d314d(0x3d0)])['getActiveSheet']();_0x5e8f98&&_0x9ba84f&&this[_0x1d314d(0x660)](_0x9ba84f[_0x1d314d(0x360)](),_0x5e8f98);}[_0x29ff00(0x223)](){const _0x3a0030=_0x29ff00;this[_0x3a0030(0x35c)]=!0x1;}};mt=rs([Te(0x2,a['Inject'](a['Injector'])),Te(0x3,a[_0x29ff00(0x493)](Dt)),Te(0x4,a[_0x29ff00(0x493)](exports[_0x29ff00(0x1d6)])),Te(0x5,a[_0x29ff00(0x37f)]),Te(0x6,a[_0x29ff00(0x587)]),Te(0x7,a[_0x29ff00(0x493)](k[_0x29ff00(0x624)]))],mt);var ls=Object['defineProperty'],hs=Object[_0x29ff00(0x316)],_s=(_0x59c977,_0x3ef802,_0x3cc72a,_0x167dd1)=>{const _0x2d30ed=_0x29ff00;for(var _0x5312db=_0x167dd1>0x1?void 0x0:_0x167dd1?hs(_0x3ef802,_0x3cc72a):_0x3ef802,_0x54519c=_0x59c977[_0x2d30ed(0x5e7)]-0x1,_0x53b6ad;_0x54519c>=0x0;_0x54519c--)(_0x53b6ad=_0x59c977[_0x54519c])&&(_0x5312db=(_0x167dd1?_0x53b6ad(_0x3ef802,_0x3cc72a,_0x5312db):_0x53b6ad(_0x5312db))||_0x5312db);return _0x167dd1&&_0x5312db&&ls(_0x3ef802,_0x3cc72a,_0x5312db),_0x5312db;},nt=(_0x23a501,_0x4cc1b8)=>(_0x5b92b6,_0x46fbbe)=>_0x4cc1b8(_0x5b92b6,_0x46fbbe,_0x23a501);let De=class extends a[_0x29ff00(0x4b0)]{constructor(_0x2cd09f,_0x28506f,_0x3ad62b){const _0x31c7f1=_0x29ff00;super(),I(this,_0x31c7f1(0x221),new Map()),I(this,'_entityInit$',new A[(_0x31c7f1(0x534))]()),(this['_univerInstanceService']=_0x2cd09f,this[_0x31c7f1(0x1c1)]=_0x28506f,this[_0x31c7f1(0x653)]=_0x3ad62b,this[_0x31c7f1(0x5c4)]());}[_0x29ff00(0x5e6)](){const _0x43d892=_0x29ff00;super[_0x43d892(0x5e6)](),this['_entityInit$'][_0x43d892(0x22e)](),this[_0x43d892(0x221)][_0x43d892(0x3a1)](_0x59a6a8=>_0x59a6a8[_0x43d892(0x5e6)]());}[_0x29ff00(0x455)](_0xb23c1b){const _0x166cb5=_0x29ff00;return this['_entities'][_0x166cb5(0x38d)](_0xb23c1b)?this['_entities'][_0x166cb5(0x2ef)](_0xb23c1b)['cursorInfo$']:this[_0x166cb5(0x23b)]['pipe'](A[_0x166cb5(0x604)](_0x723fb5=>_0x723fb5[_0x166cb5(0x553)]===_0xb23c1b),A[_0x166cb5(0x53a)](_0x210442=>_0x210442[_0x166cb5(0x36e)]));}[_0x29ff00(0x5c4)](){const _0x133f50=_0x29ff00;this[_0x133f50(0x600)][_0x133f50(0x460)](a[_0x133f50(0x5ce)]['UNIVER_SHEET'])[_0x133f50(0x619)](A['takeUntil'](this[_0x133f50(0x2b6)]))[_0x133f50(0x58f)](async _0x231c23=>{const _0xb2be3a=_0x133f50,_0x366f7b=_0x231c23[_0xb2be3a(0x621)](),_0x529661=await this[_0xb2be3a(0x232)](_0x366f7b);this['_entityInit$']['next'](_0x529661),this['_entities'][_0xb2be3a(0x20a)](_0x366f7b,_0x529661);}),this[_0x133f50(0x600)]['getTypeOfUnitAdded$'](a[_0x133f50(0x5ce)]['UNIVER_DOC'])[_0x133f50(0x619)](A[_0x133f50(0x264)](this[_0x133f50(0x2b6)]))['pipe'](A['filter'](_0x454505=>!_0x454505[_0x133f50(0x621)]()['startsWith']('__')))[_0x133f50(0x58f)](async _0x1aa054=>{const _0x2b95ab=_0x133f50,_0x222bc5=_0x1aa054[_0x2b95ab(0x621)](),_0x18b36a=await this[_0x2b95ab(0x67a)](_0x222bc5);this[_0x2b95ab(0x23b)][_0x2b95ab(0x49f)](_0x18b36a),this[_0x2b95ab(0x221)][_0x2b95ab(0x20a)](_0x222bc5,_0x18b36a);}),A[_0x133f50(0x5ed)](this[_0x133f50(0x600)][_0x133f50(0x365)](a[_0x133f50(0x5ce)][_0x133f50(0x4f0)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x133f50(0x3d0)]))['pipe'](A[_0x133f50(0x264)](this[_0x133f50(0x2b6)]))[_0x133f50(0x58f)](_0xeffda9=>{const _0x5938d5=_0x133f50,_0x3e00af=_0xeffda9['getUnitId'](),_0x270604=this[_0x5938d5(0x221)][_0x5938d5(0x2ef)](_0x3e00af);_0x270604&&(_0x270604[_0x5938d5(0x5e6)](),this[_0x5938d5(0x221)][_0x5938d5(0x3dc)](_0x3e00af));});}async[_0x29ff00(0x232)](_0x49c4d0){const _0x2de8cd=_0x29ff00,_0x3a1667=await this['_collabSessionService'][_0x2de8cd(0x429)](_0x49c4d0),_0x1e8529=this[_0x2de8cd(0x1c1)][_0x2de8cd(0x527)](mt,_0x49c4d0,_0x3a1667);return _0x1e8529['init'](),_0x1e8529;}async[_0x29ff00(0x67a)](_0x1309d7){const _0x1f49ab=_0x29ff00,_0xe1924e=await this[_0x1f49ab(0x653)][_0x1f49ab(0x429)](_0x1309d7),_0x3646c7=this[_0x1f49ab(0x1c1)][_0x1f49ab(0x527)](pt,_0x1309d7,_0xe1924e);return _0x3646c7[_0x1f49ab(0x334)](),_0x3646c7;}};De=_s([nt(0x0,a[_0x29ff00(0x37f)]),nt(0x1,a[_0x29ff00(0x493)](a[_0x29ff00(0x615)])),nt(0x2,a[_0x29ff00(0x493)](exports[_0x29ff00(0x5ea)]))],De);const Le=0x14,Wt=0xc8,st=0x4,us=0x5;function ds(_0x1fc81f,_0x5b9dbf){const _0x150f6e=_0x29ff00;let {radius:_0x19cfc8,width:_0x37311f,height:_0x45e331}=_0x5b9dbf;_0x19cfc8=_0x19cfc8!=null?_0x19cfc8:0x0,_0x37311f=_0x37311f!=null?_0x37311f:0x1e,_0x45e331=_0x45e331!=null?_0x45e331:0x1e;let _0xd06686=0x0,_0x18d690=0x0,_0x3dae45=0x0;_0xd06686=_0x18d690=_0x3dae45=Math[_0x150f6e(0x3b8)](_0x19cfc8,_0x37311f/0x2,_0x45e331/0x2),_0x1fc81f[_0x150f6e(0x285)](),_0x1fc81f[_0x150f6e(0x4ab)](_0xd06686,0x0),_0x1fc81f['lineTo'](_0x37311f-_0x18d690,0x0),_0x1fc81f[_0x150f6e(0x29e)](_0x37311f-_0x18d690,_0x18d690,_0x18d690,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fc81f[_0x150f6e(0x5aa)](_0x37311f,_0x45e331-_0x3dae45),_0x1fc81f[_0x150f6e(0x29e)](_0x37311f-_0x3dae45,_0x45e331-_0x3dae45,_0x3dae45,0x0,Math['PI']/0x2,!0x1),_0x1fc81f[_0x150f6e(0x5aa)](0x0,_0x45e331),_0x1fc81f[_0x150f6e(0x5aa)](0x0,_0xd06686),_0x1fc81f[_0x150f6e(0x29e)](_0xd06686,_0xd06686,_0xd06686,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fc81f[_0x150f6e(0x404)](),_0x5b9dbf[_0x150f6e(0x53e)]&&(_0x1fc81f['save'](),_0x1fc81f[_0x150f6e(0x211)]=_0x5b9dbf[_0x150f6e(0x53e)],_0x5b9dbf[_0x150f6e(0x3e7)]===_0x150f6e(0x294)?_0x1fc81f[_0x150f6e(0x53e)](_0x150f6e(0x294)):_0x1fc81f[_0x150f6e(0x53e)](),_0x1fc81f[_0x150f6e(0x2a5)]());}class Xe extends K[_0x29ff00(0x674)]{constructor(_0x4fb1b0,_0x57eee8){const _0x524e99=_0x29ff00;super(_0x4fb1b0,_0x57eee8),I(this,_0x524e99(0x375)),I(this,_0x524e99(0x3aa)),(this[_0x524e99(0x375)]=_0x57eee8==null?void 0x0:_0x57eee8[_0x524e99(0x375)],this['text']=_0x57eee8==null?void 0x0:_0x57eee8[_0x524e99(0x3aa)]);}static['drawWith'](_0x4a83c5,_0x25a955){const _0x2b7317=_0x29ff00,{text:_0x360858,color:_0x97c786}=_0x25a955;_0x4a83c5[_0x2b7317(0x488)](),_0x4a83c5[_0x2b7317(0x4b3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4ee01b=_0x4a83c5[_0x2b7317(0x1e0)](_0x360858)[_0x2b7317(0x367)],_0x4c794d=Math['min'](_0x4ee01b+0x2*st,Wt);ds(_0x4a83c5,{'height':Le,'radius':0x4,'width':_0x4c794d,'fill':_0x97c786,'evented':!0x1}),_0x4a83c5['fillStyle']=_0x2b7317(0x3c2);const _0x37fdeb=st,_0x30ea8f=Le-us,_0x429a1c=Wt-0x2*st;if(_0x4ee01b>_0x429a1c){let _0x442aa8='',_0x148eb8=0x0;for(const _0x51da70 of _0x360858){const _0x2b27f6=_0x4a83c5['measureText'](_0x51da70)['width'];if(_0x148eb8+_0x2b27f6<=_0x429a1c-_0x4a83c5['measureText']('...')[_0x2b7317(0x367)])_0x442aa8+=_0x51da70,_0x148eb8+=_0x2b27f6;else{_0x442aa8+=_0x2b7317(0x65f);break;}}_0x4a83c5[_0x2b7317(0x49c)](_0x442aa8,_0x37fdeb,_0x30ea8f);}else _0x4a83c5['fillText'](_0x360858,_0x37fdeb,_0x30ea8f);_0x4a83c5['restore']();}['_draw'](_0x5220ca){const _0x26267e=_0x29ff00;Xe[_0x26267e(0x3e4)](_0x5220ca,this);}}const rt=_0x29ff00(0x56e),fs=_0x29ff00(0x689),vs=_0x29ff00(0x387),Ue=0x6,Ss=1.5,ot=0x4,ps=1.5,ms=_0x29ff00(0x2b5);class Ft{constructor(_0x495eb5,_0xdf0f5f,_0x594a1b,_0x2d44a3){const _0x3b85eb=_0x29ff00;I(this,_0x3b85eb(0x30b),[]),I(this,_0x3b85eb(0x34d),null),I(this,_0x3b85eb(0x479),null),I(this,_0x3b85eb(0x3c3),null),I(this,'_hideTimer',null),I(this,_0x3b85eb(0x639),null),(this[_0x3b85eb(0x3e2)]=_0x495eb5,this[_0x3b85eb(0x3cc)]=_0xdf0f5f,this['_docSkeleton']=_0x594a1b,this[_0x3b85eb(0x45d)]=_0x2d44a3,this['_render']());}set[_0x29ff00(0x465)](_0x25cb00){const _0x2d2914=_0x29ff00;_0x25cb00?(this[_0x2d2914(0x3c3)]&&this['_anchorDot'][_0x2d2914(0x519)](),this[_0x2d2914(0x479)]&&this[_0x2d2914(0x479)][_0x2d2914(0x318)]()):(this[_0x2d2914(0x3c3)]&&this[_0x2d2914(0x3c3)][_0x2d2914(0x318)](),this['_textBubble']&&this[_0x2d2914(0x479)][_0x2d2914(0x519)]());}[_0x29ff00(0x5e6)](){const _0x5e2390=_0x29ff00;for(const _0xb0b278 of this['_shapes'])_0xb0b278[_0x5e2390(0x5e6)]();this[_0x5e2390(0x479)]&&this[_0x5e2390(0x479)]['dispose'](),this[_0x5e2390(0x3c3)]&&this[_0x5e2390(0x3c3)][_0x5e2390(0x5e6)](),this[_0x5e2390(0x34d)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x5e2390(0x639)]();}[_0x29ff00(0x5d9)](){const _0x3e02ee=_0x29ff00;var _0x20b07c;const {_docSkeleton:_0x488934,_document:_0xbb4ab8}=this,{color:_0x1d028a,name:_0x544587,ranges:_0x3a4e48}=this[_0x3e02ee(0x3e2)],_0x445ec5=_0xbb4ab8[_0x3e02ee(0x5f3)](),{docsLeft:_0x578cf6,docsTop:_0x312cb3}=_0x445ec5,_0x2416f9=new J['NodePositionConvertToCursor'](_0x445ec5,_0x488934);for(const {startOffset:_0x8d6692,endOffset:_0x328aa5,rangeType:_0x5df6e5,segmentId:_0x585491,segmentPage:_0x2e599f,collapsed:_0x38722c,isActive:_0x51122b}of _0x3a4e48){const _0x23a109=_0x488934['findNodePositionByCharIndex'](_0x8d6692,!0x0,_0x585491,_0x2e599f);let _0xc0146c=_0x488934[_0x3e02ee(0x361)](_0x328aa5,!0x0,_0x585491,_0x2e599f);if(_0xc0146c==null&&(_0xc0146c=_0x488934[_0x3e02ee(0x361)](_0x328aa5-0x1,!0x1,_0x585491,_0x2e599f)),_0x51122b){const {contentBoxPointGroup:_0x162ace}=_0x2416f9[_0x3e02ee(0x3a6)](_0xc0146c,_0xc0146c);if(_0x162ace[_0x3e02ee(0x5e7)]===0x0)continue;this[_0x3e02ee(0x5cb)](_0x1d028a,_0x162ace,_0x578cf6,_0x312cb3,_0x544587),this[_0x3e02ee(0x639)]=this[_0x3e02ee(0x33c)]();}if(_0x23a109&&_0xc0146c){if(_0x5df6e5===a[_0x3e02ee(0x380)][_0x3e02ee(0x36c)]){const _0x2a5e87=new J[(_0x3e02ee(0x408))](_0x445ec5,_0x488934),{pointGroup:_0x36159b}=(_0x20b07c=_0x2a5e87['getRangePointData'](_0x23a109,_0xc0146c))!=null?_0x20b07c:{};if(_0x36159b==null||_0x36159b['length']===0x0)continue;this[_0x3e02ee(0x38c)](_0x1d028a,_0x36159b,_0x578cf6,_0x312cb3);}else{if(!_0x38722c){const {borderBoxPointGroup:_0x29c5ce}=_0x2416f9[_0x3e02ee(0x3a6)](_0x23a109,_0xc0146c);if(_0x29c5ce['length']===0x0)continue;this['_drawTextRange'](_0x1d028a,_0x29c5ce,_0x578cf6,_0x312cb3);}}}}}['_drawAnchor'](_0x22abba,_0x1f70ba,_0x195fa7,_0x1f777f,_0x56b646){const _0x9e08e4=_0x29ff00,_0x1e3600=this[_0x9e08e4(0x3d3)](_0x1f70ba),{left:_0x16d9b7,top:_0x205f70,height:_0x2557b1}=_0x1e3600,_0x2ff630=this[_0x9e08e4(0x277)](),_0x4d432a=ps/_0x2ff630,_0x250ba7=new K[(_0x9e08e4(0x606))](rt+a['Tools'][_0x9e08e4(0x512)](Ue),{'left':_0x16d9b7+_0x195fa7-_0x4d432a,'top':_0x205f70+_0x1f777f,'height':_0x2557b1,'width':Ss,'fill':_0x22abba||K[_0x9e08e4(0x2fe)](a[_0x9e08e4(0x4f4)][_0x9e08e4(0x61e)],0x0),'strokeWidth':_0x4d432a,'stroke':ms,'evented':!0x0});this[_0x9e08e4(0x34d)]=_0x250ba7,this[_0x9e08e4(0x3cc)][_0x9e08e4(0x518)](_0x250ba7,J['TEXT_RANGE_LAYER_INDEX']);const _0x109dc6=new K['Rect'](rt+a[_0x9e08e4(0x302)][_0x9e08e4(0x512)](Ue),{'left':_0x16d9b7+_0x195fa7-_0x4d432a,'top':_0x205f70+_0x1f777f-ot/0x2,'height':ot,'width':ot,'fill':_0x22abba||K[_0x9e08e4(0x2fe)](a[_0x9e08e4(0x4f4)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x22abba||K['getColor'](a[_0x9e08e4(0x4f4)][_0x9e08e4(0x61e)],0x0),'evented':!0x1});this[_0x9e08e4(0x3c3)]=_0x109dc6,this[_0x9e08e4(0x3cc)][_0x9e08e4(0x518)](_0x109dc6,J['TEXT_RANGE_LAYER_INDEX']);const _0x171dd4=new Xe(rt+a[_0x9e08e4(0x302)][_0x9e08e4(0x512)](Ue),{'left':_0x16d9b7+_0x195fa7-_0x4d432a,'top':_0x205f70+_0x1f777f-Le,'text':_0x56b646,'color':_0x22abba});this['_textBubble']=_0x171dd4,this[_0x9e08e4(0x3cc)][_0x9e08e4(0x518)](_0x171dd4,J['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x29ff00(0x33c)](){const _0x12d6be=_0x29ff00,_0x26ea8b=this[_0x12d6be(0x34d)]['onPointerEnter$'][_0x12d6be(0x53c)](()=>{this['_hover']=!0x0;}),_0x11950=this[_0x12d6be(0x34d)]['onPointerLeave$'][_0x12d6be(0x53c)](()=>{const _0x3630c8=_0x12d6be;this[_0x3630c8(0x2bf)]&&clearTimeout(this['_hideTimer']),this[_0x3630c8(0x2bf)]=setTimeout(()=>{const _0x473fd1=_0x3630c8;this[_0x473fd1(0x465)]=!0x1;},0x7d0);});return()=>{const _0x14ab8c=_0x12d6be;_0x26ea8b[_0x14ab8c(0x4eb)](),_0x11950[_0x14ab8c(0x4eb)]();};}[_0x29ff00(0x4d9)](_0x5cba30,_0x4c35fd,_0x45ef52,_0xa3a72c){const _0x90a04b=_0x29ff00,_0x3d1170=new a['ColorKit'](_0x5cba30)[_0x90a04b(0x478)](0.2)[_0x90a04b(0x576)](),_0x182554=new K['RegularPolygon'](fs+a[_0x90a04b(0x302)][_0x90a04b(0x512)](Ue),{'pointsGroup':_0x4c35fd,'fill':_0x3d1170||K[_0x90a04b(0x2fe)](a[_0x90a04b(0x4f4)][_0x90a04b(0x61e)],0.2),'left':_0x45ef52,'top':_0xa3a72c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x90a04b(0x30b)]['push'](_0x182554),this[_0x90a04b(0x3cc)][_0x90a04b(0x518)](_0x182554,J['TEXT_RANGE_LAYER_INDEX']);}[_0x29ff00(0x38c)](_0x23bddb,_0x1ff001,_0x4e7f0a,_0x5087be){const _0xaf7da6=_0x29ff00,_0x43c0fa=new a['ColorKit'](_0x23bddb)['setAlpha'](0.2)[_0xaf7da6(0x576)](),_0x5000ad=new K['RegularPolygon'](vs+a[_0xaf7da6(0x302)][_0xaf7da6(0x512)](Ue),{'pointsGroup':_0x1ff001,'fill':_0x43c0fa||K['getColor'](a['COLORS'][_0xaf7da6(0x61e)],0.2),'left':_0x4e7f0a,'top':_0x5087be,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xaf7da6(0x30b)][_0xaf7da6(0x3bc)](_0x5000ad),this['_scene'][_0xaf7da6(0x518)](_0x5000ad,J['TEXT_RANGE_LAYER_INDEX']);}[_0x29ff00(0x3d3)](_0x2a1602){const _0x1f4871=_0x2a1602[0x0],_0x332030=_0x1f4871[0x0],_0xe0ac6b=_0x1f4871[0x2],{x:_0x508b5c,y:_0x8266ae}=_0x332030,{x:_0x49e8,y:_0x3adc4c}=_0xe0ac6b;return{'left':_0x508b5c,'top':_0x8266ae,'width':_0x49e8-_0x508b5c,'height':_0x3adc4c-_0x8266ae};}['_getScale'](){const _0x34b3f2=_0x29ff00,{scaleX:_0x894a3,scaleY:_0x38b084}=this[_0x34b3f2(0x3cc)][_0x34b3f2(0x3f4)]();return Math[_0x34b3f2(0x1b9)](_0x894a3,_0x38b084);}}var gs=Object[_0x29ff00(0x64a)],Is=Object[_0x29ff00(0x316)],Cs=(_0x48bdb2,_0x4db565,_0x21a16c,_0x2bb2d)=>{for(var _0x9f5c04=_0x2bb2d>0x1?void 0x0:_0x2bb2d?Is(_0x4db565,_0x21a16c):_0x4db565,_0xbbfc3e=_0x48bdb2['length']-0x1,_0x331576;_0xbbfc3e>=0x0;_0xbbfc3e--)(_0x331576=_0x48bdb2[_0xbbfc3e])&&(_0x9f5c04=(_0x2bb2d?_0x331576(_0x4db565,_0x21a16c,_0x9f5c04):_0x331576(_0x9f5c04))||_0x9f5c04);return _0x2bb2d&&_0x9f5c04&&gs(_0x4db565,_0x21a16c,_0x9f5c04),_0x9f5c04;},je=(_0x706aa2,_0x170b73)=>(_0x2a1727,_0x388e63)=>_0x170b73(_0x2a1727,_0x388e63,_0x706aa2);let gt=class extends a[_0x29ff00(0x4b0)]{constructor(_0xa6545c,_0x95691,_0x7025fe,_0x3e9903,_0x54ed7d){const _0x1a8fb7=_0x29ff00;super(),I(this,_0x1a8fb7(0x5b6),[]),I(this,_0x1a8fb7(0x4fd),[]),(this[_0x1a8fb7(0x220)]=_0xa6545c,this[_0x1a8fb7(0x2fa)]=_0x95691,this['_collabCursorController']=_0x7025fe,this['_commandService']=_0x3e9903,this[_0x1a8fb7(0x48e)]=_0x54ed7d,this[_0x1a8fb7(0x5c4)]());}[_0x29ff00(0x5c4)](){const _0x2a45e0=_0x29ff00,_0x80e539=this['_context']['unitId'],_0x3840b0=this[_0x2a45e0(0x2fa)];this['disposeWithMe'](A['combineLatest']([this[_0x2a45e0(0x516)][_0x2a45e0(0x455)](_0x80e539),this[_0x2a45e0(0x48e)][_0x2a45e0(0x44b)]])['pipe'](V[_0x2a45e0(0x4db)](([_0x2f16d9,_0xa0182f])=>({'skeleton':_0x3840b0[_0x2a45e0(0x4b1)](),'cursors':[..._0x2f16d9['values']()][_0x2a45e0(0x2ae)](_0x32e557=>({..._0x32e557,'color':_0xa0182f[_0x32e557[_0x2a45e0(0x375)]]}))})))['subscribe'](_0xb72d6a=>{if(this['_removeCollabCursors'](),_0xb72d6a){const {skeleton:_0x558926,cursors:_0x27bf1d}=_0xb72d6a;this['_updateCollabCursors'](_0x558926,_0x27bf1d);}})),this[_0x2a45e0(0x2b1)](),this[_0x2a45e0(0x596)]();}['_updateCollabCursors'](_0x30bd65,_0xc39507){const _0x249585=_0x29ff00,{scene:_0x1876af,mainComponent:_0x16341a}=this[_0x249585(0x220)],_0x5ab6b8=_0xc39507[_0x249585(0x4db)](_0x50e14c=>new Ft(_0x50e14c,_0x1876af,_0x30bd65,_0x16341a));this[_0x249585(0x5b6)]=_0x5ab6b8,this['_cursors']=_0xc39507;}[_0x29ff00(0x468)](){const _0x143c57=_0x29ff00;this[_0x143c57(0x51b)]();const {scene:_0x186913,mainComponent:_0x29f185}=this[_0x143c57(0x220)],_0x219235=this[_0x143c57(0x2fa)][_0x143c57(0x4b1)](),_0xb3304c=this['_cursors'][_0x143c57(0x4db)](_0x3e726d=>new Ft(_0x3e726d,_0x186913,_0x219235,_0x29f185));this['_cursorShapes']=_0xb3304c;}['_removeCollabCursors'](){const _0x50c4f2=_0x29ff00;this[_0x50c4f2(0x5b6)][_0x50c4f2(0x3a1)](_0x39ff34=>_0x39ff34[_0x50c4f2(0x5e6)]()),this[_0x50c4f2(0x5b6)]=[];}[_0x29ff00(0x596)](){const _0x3f3494=_0x29ff00,_0x4641ee=[J[_0x3f3494(0x579)]['id']];this[_0x3f3494(0x665)](this[_0x3f3494(0x5b4)][_0x3f3494(0x3f0)](_0x484581=>{const _0x45a81c=_0x3f3494;_0x4641ee['includes'](_0x484581['id'])&&_0x484581[_0x45a81c(0x447)]['unitId']===this[_0x45a81c(0x220)]['unitId']&&this[_0x45a81c(0x468)]();}));}[_0x29ff00(0x2b1)](){const _0xd7aa61=_0x29ff00;this[_0xd7aa61(0x665)](a[_0xd7aa61(0x1ba)](this['_context']['engine']['onTransformChange$'])[_0xd7aa61(0x619)](V[_0xd7aa61(0x604)](_0x382019=>_0x382019[_0xd7aa61(0x2eb)]===K[_0xd7aa61(0x2a6)][_0xd7aa61(0x5b9)]),V[_0xd7aa61(0x3d2)](0x10))['subscribe'](()=>{const _0x4e676c=_0xd7aa61;this[_0x4e676c(0x468)]();}));}};gt=Cs([je(0x1,a['Inject'](Ie[_0x29ff00(0x229)])),je(0x2,a[_0x29ff00(0x493)](De)),je(0x3,a[_0x29ff00(0x587)]),je(0x4,a[_0x29ff00(0x493)](a[_0x29ff00(0x438)]))],gt);const Es=0x1,bs=1.5;class Ii extends K['Shape']{constructor(_0x597d4b,_0x3e8298){const _0x3e0111=_0x29ff00;super(_0x597d4b,_0x3e8298),I(this,_0x3e0111(0x1e4)),I(this,_0x3e0111(0x3db),!0x1),I(this,'_range'),I(this,_0x3e0111(0x62c),''),I(this,_0x3e0111(0x601),_0x3e0111(0x1fb)),I(this,'_backgroundColor'),(_0x3e8298&&this[_0x3e0111(0x3ca)](_0x3e8298),this[_0x3e0111(0x256)][_0x3e0111(0x53c)](()=>this[_0x3e0111(0x3ca)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3e0111(0x53c)](()=>this[_0x3e0111(0x3ca)]({'hovered':!0x1})));}[_0x29ff00(0x3ca)](_0x1df77d){const _0x2f0133=_0x29ff00;var _0x2bb00b,_0x27b28e,_0x46fe45,_0x175b0f,_0x675dee,_0x354fde;this['_color']=(_0x2bb00b=_0x1df77d[_0x2f0133(0x375)])!=null?_0x2bb00b:this[_0x2f0133(0x1e4)],this[_0x2f0133(0x3db)]=(_0x27b28e=_0x1df77d[_0x2f0133(0x68a)])!=null?_0x27b28e:this['_hovered'],this['_range']=(_0x46fe45=_0x1df77d[_0x2f0133(0x3ff)])!=null?_0x46fe45:this['_range'],this[_0x2f0133(0x62c)]=(_0x175b0f=_0x1df77d[_0x2f0133(0x2cd)])!=null?_0x175b0f:this[_0x2f0133(0x62c)],this[_0x2f0133(0x601)]=(_0x675dee=_0x1df77d[_0x2f0133(0x544)])!=null?_0x675dee:this['_labelPosition'],this['_backgroundColor']=(_0x354fde=_0x1df77d['backgroundColor'])!=null?_0x354fde:this['_backgroundColor'],this[_0x2f0133(0x676)]({'width':_0x1df77d['width'],'height':_0x1df77d['height']});}[_0x29ff00(0x2dc)](_0x5c96b1){const _0x4ffa58=_0x29ff00,{row:_0x152fbd,column:_0x49e2ed}=_0x5c96b1;if(_0x152fbd>=this[_0x4ffa58(0x464)]['startRow']&&_0x152fbd<=this['_range']['endRow']&&_0x49e2ed>=this[_0x4ffa58(0x464)][_0x4ffa58(0x564)]&&_0x49e2ed<=this[_0x4ffa58(0x464)][_0x4ffa58(0x20e)]){this[_0x4ffa58(0x3ca)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x29ff00(0x2ab)](_0x5609d9){return!0x1;}['_draw'](_0x4b4a13){const _0x445156=_0x29ff00;K[_0x445156(0x606)][_0x445156(0x3e4)](_0x4b4a13,{'width':this[_0x445156(0x367)],'height':this[_0x445156(0x376)],'strokeWidth':bs,'stroke':this[_0x445156(0x1e4)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x445156(0x3db)]&&(_0x4b4a13['save'](),_0x4b4a13[_0x445156(0x310)](0x1,0x0,0x0,0x1,this[_0x445156(0x367)],this[_0x445156(0x601)]==='bottom'?0x0:-Le),Xe[_0x445156(0x3e4)](_0x4b4a13,{'text':this['_name'],'color':this[_0x445156(0x1e4)]}),_0x4b4a13[_0x445156(0x2a5)]());}}var Ts=Object[_0x29ff00(0x64a)],Rs=Object[_0x29ff00(0x316)],ys=(_0x4b4d1e,_0x51b8ab,_0x12d8b4,_0x460184)=>{const _0x1ba24e=_0x29ff00;for(var _0x4d690d=_0x460184>0x1?void 0x0:_0x460184?Rs(_0x51b8ab,_0x12d8b4):_0x51b8ab,_0x333536=_0x4b4d1e[_0x1ba24e(0x5e7)]-0x1,_0x472a87;_0x333536>=0x0;_0x333536--)(_0x472a87=_0x4b4d1e[_0x333536])&&(_0x4d690d=(_0x460184?_0x472a87(_0x51b8ab,_0x12d8b4,_0x4d690d):_0x472a87(_0x4d690d))||_0x4d690d);return _0x460184&&_0x4d690d&&Ts(_0x51b8ab,_0x12d8b4,_0x4d690d),_0x4d690d;},at=(_0x1f6fff,_0x3982eb)=>(_0x89995d,_0x1611bc)=>_0x3982eb(_0x89995d,_0x1611bc,_0x1f6fff);const Os=0x1389;let It=class extends a[_0x29ff00(0x4b0)]{constructor(_0x1a2d60,_0x1c8eb1,_0x3e16c4,_0x55cd4b){const _0x4af585=_0x29ff00;super(),I(this,'_cursors',new Set()),I(this,_0x4af585(0x1ec),null),(this[_0x4af585(0x220)]=_0x1a2d60,this[_0x4af585(0x613)]=_0x1c8eb1,this[_0x4af585(0x516)]=_0x3e16c4,this[_0x4af585(0x48e)]=_0x55cd4b,this[_0x4af585(0x5c4)]());}[_0x29ff00(0x5c4)](){const _0x53bc12=_0x29ff00;this[_0x53bc12(0x613)][_0x53bc12(0x39f)][_0x53bc12(0x619)](V[_0x53bc12(0x264)](this[_0x53bc12(0x2b6)]),V[_0x53bc12(0x53a)](_0x55278e=>{const _0x3445ee=_0x53bc12;if(_0x55278e){const _0x3b9b92=_0x55278e[_0x3445ee(0x5a7)];return A[_0x3445ee(0x4c4)](this[_0x3445ee(0x516)][_0x3445ee(0x455)](this[_0x3445ee(0x220)][_0x3445ee(0x21b)]),this['_themeService'][_0x3445ee(0x44b)])[_0x3445ee(0x619)](V['map'](([_0x486aff,_0x328c6b])=>{const _0x50fa35=_0x3445ee,_0x123d34=new Map();return _0x486aff[_0x50fa35(0x3a1)]((_0x450513,_0x365eab)=>{const _0x51985=_0x50fa35;if(_0x450513['sheetID']===_0x3b9b92){const _0x1a3058={..._0x450513};_0x1a3058[_0x51985(0x375)]=_0x328c6b[_0x450513[_0x51985(0x375)]],_0x123d34['set'](_0x365eab,_0x1a3058);}}),{'skeleton':_0x55278e,'cursors':_0x123d34};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x366eb8,cursors:_0x265b78})=>{const _0x280c42=_0x53bc12;this[_0x280c42(0x51b)](),_0x366eb8&&this[_0x280c42(0x266)](_0x366eb8,_0x265b78);}),this[_0x53bc12(0x613)][_0x53bc12(0x39f)][_0x53bc12(0x58f)](_0x5cbd85=>{const _0x3a2a25=_0x53bc12;if(_0x5cbd85==null)return;const {skeleton:_0x2837fb}=_0x5cbd85,{scene:_0x5abe70}=this[_0x3a2a25(0x220)];_0x5abe70[_0x3a2a25(0x2a7)][_0x3a2a25(0x53c)](a[_0x3a2a25(0x242)](_0x34ed4a=>{const _0x53af27=_0x3a2a25;var _0x48c7e6,_0x51a5df;const {offsetX:_0x429588,offsetY:_0x4592e8}=_0x34ed4a,{x:_0xf9701b,y:_0x56061a}=_0x5abe70[_0x53af27(0x1f1)](K['Vector2']['FromArray']([_0x429588,_0x4592e8])),{scaleX:_0x37eb2b,scaleY:_0x52d6e8}=_0x5abe70[_0x53af27(0x3f4)](),_0x3507e1=_0x5abe70[_0x53af27(0x2b4)](ye[_0x53af27(0x56f)][_0x53af27(0x52d)]),_0x510d13=_0x5abe70[_0x53af27(0x5b2)](K[_0x53af27(0x27f)]['FromArray']([_0xf9701b,_0x56061a]),_0x3507e1),_0x5575ab=_0x2837fb['getCellPositionByOffset'](_0x429588,_0x4592e8,_0x37eb2b,_0x52d6e8,_0x510d13);((_0x48c7e6=this[_0x53af27(0x1ec)])==null?void 0x0:_0x48c7e6[_0x53af27(0x2f4)])===_0x5575ab[_0x53af27(0x2f4)]&&((_0x51a5df=this[_0x53af27(0x1ec)])==null?void 0x0:_0x51a5df[_0x53af27(0x43d)])===_0x5575ab[_0x53af27(0x43d)]||this[_0x53af27(0x4fd)]['forEach'](_0x701cd3=>{const _0x2b43b8=_0x53af27;_0x701cd3[_0x2b43b8(0x2dc)](_0x5575ab);});},0x64));});}[_0x29ff00(0x266)](_0x2660b4,_0x3488ae){const _0x3371d6=_0x29ff00;var _0x4908b5;const _0x289104=(_0x4908b5=this[_0x3371d6(0x613)]['getCurrent']())==null?void 0x0:_0x4908b5[_0x3371d6(0x4a3)];if(!_0x289104)return;const _0xabbb82=this['_getSheetObject']();if(!_0xabbb82)return;this[_0x3371d6(0x4fd)]['forEach'](_0x2ebe94=>{const _0xe97810=_0x3371d6;_0x2ebe94[_0xe97810(0x391)]();});const {scene:_0x322511}=_0xabbb82,_0x4a53ba=Ds(Array[_0x3371d6(0x4e3)](_0x3488ae[_0x3371d6(0x326)]()))['map'](_0x245af1=>{const _0x24e873=_0x3371d6,{color:_0x55c44e,range:_0x1792b9,name:_0x4ccfb6,selection:_0x333be6,sheetID:_0x2e3c01}=_0x245af1,{startColumn:_0x712586,startRow:_0x24ffc9,endColumn:_0x4c2158,endRow:_0xd4f0b1}=_0x1792b9,_0x22d08a=ye['getCoordByCell'](_0x24ffc9,_0x712586,_0x322511,_0x289104),_0x5bc025=ye[_0x24e873(0x279)](_0xd4f0b1,_0x4c2158,_0x322511,_0x289104),{columnHeaderHeightAndMarginTop:_0x48e751}=_0x289104,{startX:_0x272cf6,startY:_0xa0f535}=_0x22d08a,{endX:_0x26ac4c,endY:_0x4a1f5e}=_0x5bc025,_0xe90165=_0x26ac4c-_0x272cf6,_0x2a5b3a=_0x4a1f5e-_0xa0f535,_0x5a8c6b={'labelPosition':_0xa0f535-_0x48e751>=Le?_0x24e873(0x1fb):_0x24e873(0x5f8),'sheetID':_0x2e3c01,'range':_0x1792b9,'color':_0x55c44e,'name':_0x4ccfb6,'selection':_0x333be6,'left':_0x272cf6,'top':_0xa0f535,'width':_0xe90165,'height':_0x2a5b3a,'evented':!0x1,'zIndex':Os};return new Ii(_0x4ccfb6,_0x5a8c6b);});_0x322511[_0x3371d6(0x2f9)](_0x4a53ba,Es),this['_cursors']=new Set(_0x4a53ba);}[_0x29ff00(0x51b)](){const _0x2d017b=_0x29ff00;var _0xdb7e60;(_0xdb7e60=this['_cursors'])==null||_0xdb7e60[_0x2d017b(0x3a1)](_0x1846a6=>_0x1846a6['dispose']());}['_getSheetObject'](){const _0x13a655=_0x29ff00;return ye[_0x13a655(0x20c)](this[_0x13a655(0x220)][_0x13a655(0x4f6)],this['_context']);}};It=ys([at(0x1,a[_0x29ff00(0x493)](ye[_0x29ff00(0x2ee)])),at(0x2,a['Inject'](De)),at(0x3,a[_0x29ff00(0x493)](a[_0x29ff00(0x438)]))],It);function _0x2f26(_0x1d15a3,_0x6fdb30){const _0x595e3c=_0x595e();return _0x2f26=function(_0x2f26ed,_0x8f87d4){_0x2f26ed=_0x2f26ed-0x1b5;let _0x31ff46=_0x595e3c[_0x2f26ed];return _0x31ff46;},_0x2f26(_0x1d15a3,_0x6fdb30);}function Ds(_0x5d81ab){const _0x44e12b=_0x29ff00,_0x56483e=new Map();return _0x5d81ab[_0x44e12b(0x3a1)](_0x18a632=>{const _0x25488a=_0x44e12b;if(_0x56483e[_0x25488a(0x38d)](_0x18a632[_0x25488a(0x3ee)])){const _0x25c2f0=_0x56483e[_0x25488a(0x2ef)](_0x18a632[_0x25488a(0x3ee)]);_0x25c2f0[_0x25488a(0x2cd)]+=',\x20'+_0x18a632[_0x25488a(0x2cd)];}else _0x56483e['set'](_0x18a632[_0x25488a(0x3ee)],_0x18a632);}),Array[_0x44e12b(0x4e3)](_0x56483e[_0x44e12b(0x326)]());}var Z=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x26d59e){const _0x403af5=_0x29ff00;return _0x26d59e&&_0x26d59e['__esModule']&&Object[_0x403af5(0x1fe)][_0x403af5(0x5d7)][_0x403af5(0x1d5)](_0x26d59e,_0x403af5(0x659))?_0x26d59e[_0x403af5(0x659)]:_0x26d59e;}var Ci={'exports':{}},Je={},Ps=ae,ws=Symbol[_0x29ff00(0x2a2)](_0x29ff00(0x228)),Us=Symbol['for'](_0x29ff00(0x34b)),Ms=Object[_0x29ff00(0x1fe)][_0x29ff00(0x5d7)],As=Ps[_0x29ff00(0x30c)][_0x29ff00(0x504)],Ns={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function Ei(_0x43dcd1,_0x2a3d3d,_0x37d99d){const _0x2c245f=_0x29ff00;var _0x1c01b4,_0x2deeec={},_0x42cc53=null,_0x28b5da=null;_0x37d99d!==void 0x0&&(_0x42cc53=''+_0x37d99d),_0x2a3d3d['key']!==void 0x0&&(_0x42cc53=''+_0x2a3d3d['key']),_0x2a3d3d[_0x2c245f(0x486)]!==void 0x0&&(_0x28b5da=_0x2a3d3d[_0x2c245f(0x486)]);for(_0x1c01b4 in _0x2a3d3d)Ms[_0x2c245f(0x1d5)](_0x2a3d3d,_0x1c01b4)&&!Ns[_0x2c245f(0x5d7)](_0x1c01b4)&&(_0x2deeec[_0x1c01b4]=_0x2a3d3d[_0x1c01b4]);if(_0x43dcd1&&_0x43dcd1['defaultProps']){for(_0x1c01b4 in(_0x2a3d3d=_0x43dcd1[_0x2c245f(0x5fd)],_0x2a3d3d))_0x2deeec[_0x1c01b4]===void 0x0&&(_0x2deeec[_0x1c01b4]=_0x2a3d3d[_0x1c01b4]);}return{'$$typeof':ws,'type':_0x43dcd1,'key':_0x42cc53,'ref':_0x28b5da,'props':_0x2deeec,'_owner':As[_0x2c245f(0x20d)]};}Je[_0x29ff00(0x32c)]=Us,Je[_0x29ff00(0x3dd)]=Ei,Je[_0x29ff00(0x5bb)]=Ei,Ci['exports']=Je;var ge=Ci[_0x29ff00(0x5a4)],ee=function(){const _0x399978=_0x29ff00;return ee=Object[_0x399978(0x306)]||function(_0x1ddeb5){const _0x5d57c8=_0x399978;for(var _0x30b5e0,_0x52925d=0x1,_0x340a9d=arguments['length'];_0x52925d<_0x340a9d;_0x52925d++){_0x30b5e0=arguments[_0x52925d];for(var _0x383ebf in _0x30b5e0)Object[_0x5d57c8(0x1fe)][_0x5d57c8(0x5d7)][_0x5d57c8(0x1d5)](_0x30b5e0,_0x383ebf)&&(_0x1ddeb5[_0x383ebf]=_0x30b5e0[_0x383ebf]);}return _0x1ddeb5;},ee[_0x399978(0x567)](this,arguments);},Ls=function(_0x2a29c6,_0x35672f){const _0x31672d=_0x29ff00;var _0x64131={};for(var _0x57fb30 in _0x2a29c6)Object['prototype'][_0x31672d(0x5d7)][_0x31672d(0x1d5)](_0x2a29c6,_0x57fb30)&&_0x35672f[_0x31672d(0x1c6)](_0x57fb30)<0x0&&(_0x64131[_0x57fb30]=_0x2a29c6[_0x57fb30]);if(_0x2a29c6!=null&&typeof Object[_0x31672d(0x2e3)]==_0x31672d(0x5a8)){for(var _0x1a8d41=0x0,_0x57fb30=Object[_0x31672d(0x2e3)](_0x2a29c6);_0x1a8d41<_0x57fb30[_0x31672d(0x5e7)];_0x1a8d41++)_0x35672f[_0x31672d(0x1c6)](_0x57fb30[_0x1a8d41])<0x0&&Object[_0x31672d(0x1fe)]['propertyIsEnumerable'][_0x31672d(0x1d5)](_0x2a29c6,_0x57fb30[_0x1a8d41])&&(_0x64131[_0x57fb30[_0x1a8d41]]=_0x2a29c6[_0x57fb30[_0x1a8d41]]);}return _0x64131;},Pt=ae[_0x29ff00(0x644)](function(_0x5c84e0,_0x3d1507){const _0x32f7fd=_0x29ff00;var _0x493f10=_0x5c84e0['icon'],_0x2b1078=_0x5c84e0['id'],_0x527b34=_0x5c84e0[_0x32f7fd(0x39a)],_0x2a0011=_0x5c84e0[_0x32f7fd(0x30f)],_0x490e3b=Ls(_0x5c84e0,['icon','id',_0x32f7fd(0x39a),'extend']),_0x52efc1=_0x32f7fd(0x2fb)[_0x32f7fd(0x2c9)](_0x2b1078,'\x20')[_0x32f7fd(0x2c9)](_0x527b34||'')[_0x32f7fd(0x3f5)](),_0xc265ce=ae[_0x32f7fd(0x5e3)]('_'[_0x32f7fd(0x2c9)]($s()));return bi(_0x493f10,''[_0x32f7fd(0x2c9)](_0x2b1078),{'defIds':_0x493f10[_0x32f7fd(0x666)],'idSuffix':_0xc265ce['current']},ee({'ref':_0x3d1507,'className':_0x52efc1},_0x490e3b),_0x2a0011);});function bi(_0x20b064,_0x12bcfa,_0x380f1e,_0x119019,_0x18f7e8){const _0x560733=_0x29ff00;return ae[_0x560733(0x1e5)](_0x20b064[_0x560733(0x5ca)],ee(ee({'key':_0x12bcfa},xs(_0x20b064,_0x380f1e,_0x18f7e8)),_0x119019),(js(_0x20b064,_0x380f1e)['children']||[])[_0x560733(0x4db)](function(_0x33ff71,_0x550895){const _0x25cb3d=_0x560733;return bi(_0x33ff71,''[_0x25cb3d(0x2c9)](_0x12bcfa,'-')['concat'](_0x20b064[_0x25cb3d(0x5ca)],'-')['concat'](_0x550895),_0x380f1e,void 0x0,_0x18f7e8);}));}function xs(_0x401117,_0x4a0abf,_0x5212ae){const _0x909d66=_0x29ff00;var _0x2615e1=ee({},_0x401117[_0x909d66(0x627)]);_0x5212ae!=null&&_0x5212ae[_0x909d66(0x552)]&&_0x2615e1[_0x909d66(0x53e)]===_0x909d66(0x552)&&(_0x2615e1['fill']=_0x5212ae[_0x909d66(0x552)]);var _0x27c26f=_0x4a0abf['defIds'];return!_0x27c26f||_0x27c26f[_0x909d66(0x5e7)]===0x0||(_0x401117[_0x909d66(0x5ca)]===_0x909d66(0x643)&&_0x2615e1[_0x909d66(0x359)]&&(_0x2615e1[_0x909d66(0x359)]=_0x2615e1[_0x909d66(0x359)]+_0x4a0abf[_0x909d66(0x3ab)]),Object[_0x909d66(0x432)](_0x2615e1)['forEach'](function(_0x519d34){const _0x593998=_0x909d66;var _0x57d2ea=_0x519d34[0x0],_0x5a8d7b=_0x519d34[0x1];typeof _0x5a8d7b=='string'&&(_0x2615e1[_0x57d2ea]=_0x5a8d7b[_0x593998(0x43e)](/url\(#(.*)\)/,_0x593998(0x54e)[_0x593998(0x2c9)](_0x4a0abf[_0x593998(0x3ab)],')')));})),_0x2615e1;}function js(_0x3995de,_0x9573c0){const _0x50f95e=_0x29ff00;var _0x4f0ac0,_0x5ce180=_0x9573c0[_0x50f95e(0x666)];return!_0x5ce180||_0x5ce180[_0x50f95e(0x5e7)]===0x0?_0x3995de:_0x3995de[_0x50f95e(0x5ca)]===_0x50f95e(0x56a)&&(!((_0x4f0ac0=_0x3995de[_0x50f95e(0x1fd)])===null||_0x4f0ac0===void 0x0)&&_0x4f0ac0[_0x50f95e(0x5e7)])?ee(ee({},_0x3995de),{'children':_0x3995de[_0x50f95e(0x1fd)]['map'](function(_0x27c3a9){const _0x57b6b5=_0x50f95e;return typeof _0x27c3a9[_0x57b6b5(0x627)]['id']==_0x57b6b5(0x291)&&_0x5ce180&&_0x5ce180['indexOf'](_0x27c3a9['attrs']['id'])>-0x1?ee(ee({},_0x27c3a9),{'attrs':ee(ee({},_0x27c3a9[_0x57b6b5(0x627)]),{'id':_0x27c3a9[_0x57b6b5(0x627)]['id']+_0x9573c0[_0x57b6b5(0x3ab)]})}):_0x27c3a9;})}):_0x3995de;}function $s(){const _0x2c5cd7=_0x29ff00;return Math[_0x2c5cd7(0x581)]()[_0x2c5cd7(0x3ef)](0x24)[_0x2c5cd7(0x1da)](0x2,0x8);}Pt[_0x29ff00(0x580)]='UniverIcon';var Hs={'tag':'svg','attrs':{'fill':_0x29ff00(0x63c),'viewBox':'0\x200\x2016\x2016','width':_0x29ff00(0x295),'height':_0x29ff00(0x295)},'children':[{'tag':'g','attrs':{'clipPath':_0x29ff00(0x370)},'children':[{'tag':_0x29ff00(0x683),'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':_0x29ff00(0x5f9),'strokeLinejoin':_0x29ff00(0x5f9),'strokeWidth':1.2}}]},{'tag':_0x29ff00(0x56a),'attrs':{},'children':[{'tag':_0x29ff00(0x253),'attrs':{'id':_0x29ff00(0x1db)},'children':[{'tag':_0x29ff00(0x683),'attrs':{'fill':_0x29ff00(0x29f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x29ff00(0x1db)]},Ti=ae[_0x29ff00(0x644)](function(_0x17f6e2,_0x14538d){const _0x3fe1bf=_0x29ff00;return ae[_0x3fe1bf(0x1e5)](Pt,Object[_0x3fe1bf(0x306)]({},_0x17f6e2,{'id':_0x3fe1bf(0x5fa),'ref':_0x14538d,'icon':Hs}));});Ti[_0x29ff00(0x580)]=_0x29ff00(0x648);var Bs={'tag':_0x29ff00(0x35f),'attrs':{'fill':_0x29ff00(0x63c),'viewBox':'0\x200\x2017\x2016','width':_0x29ff00(0x295),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x29ff00(0x683),'attrs':{'stroke':_0x29ff00(0x4cd),'d':_0x29ff00(0x235),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x29ff00(0x56a),'attrs':{},'children':[{'tag':_0x29ff00(0x253),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29ff00(0x683),'attrs':{'fill':_0x29ff00(0x29f),'d':_0x29ff00(0x489),'transform':_0x29ff00(0x48c)}}]}]}],'defIds':[_0x29ff00(0x1e8)]},Ri=ae[_0x29ff00(0x644)](function(_0x3e10f1,_0x2560ef){const _0x2afa87=_0x29ff00;return ae['createElement'](Pt,Object['assign']({},_0x3e10f1,{'id':_0x2afa87(0x265),'ref':_0x2560ef,'icon':Bs}));});Ri['displayName']=_0x29ff00(0x1cb);function yi(_0x8921ca){const _0x5920d7=_0x29ff00;var _0x32490b,_0x561685,_0x42931a='';if(typeof _0x8921ca=='string'||typeof _0x8921ca==_0x5920d7(0x36b))_0x42931a+=_0x8921ca;else{if(typeof _0x8921ca=='object'){if(Array['isArray'](_0x8921ca)){var _0x1dc081=_0x8921ca[_0x5920d7(0x5e7)];for(_0x32490b=0x0;_0x32490b<_0x1dc081;_0x32490b++)_0x8921ca[_0x32490b]&&(_0x561685=yi(_0x8921ca[_0x32490b]))&&(_0x42931a&&(_0x42931a+='\x20'),_0x42931a+=_0x561685);}else{for(_0x561685 in _0x8921ca)_0x8921ca[_0x561685]&&(_0x42931a&&(_0x42931a+='\x20'),_0x42931a+=_0x561685);}}}return _0x42931a;}function ks(){const _0x2da0c7=_0x29ff00;for(var _0x1559af,_0x365fda,_0x48d60a=0x0,_0x380ce4='',_0x3f8c98=arguments[_0x2da0c7(0x5e7)];_0x48d60a<_0x3f8c98;_0x48d60a++)(_0x1559af=arguments[_0x48d60a])&&(_0x365fda=yi(_0x1559af))&&(_0x380ce4&&(_0x380ce4+='\x20'),_0x380ce4+=_0x365fda);return _0x380ce4;}const Ws=_0x29ff00(0x51d),Fs=_0x29ff00(0x4de),Vs=_0x29ff00(0x59f),Gs=_0x29ff00(0x274),Ys=_0x29ff00(0x35b),Me={'onlineStatusIcon':Ws,'onlineStatusTitle':Fs,'onlineStatus':Vs,'online':Gs,'offline':Ys};function Ks(_0x4b5f97){const _0x14207c=_0x29ff00;switch(_0x4b5f97){case q['OFFLINE']:return _0x14207c(0x1d7);case q[_0x14207c(0x2df)]:return _0x14207c(0x321);case q[_0x14207c(0x339)]:return _0x14207c(0x22b);case q[_0x14207c(0x3d4)]:return _0x14207c(0x3c8);case q[_0x14207c(0x505)]:case q[_0x14207c(0x290)]:return _0x14207c(0x2ac);case q[_0x14207c(0x301)]:case q[_0x14207c(0x1c5)]:return _0x14207c(0x3b6);}}function Oi(_0x2d0fef){const _0x39f27c=_0x29ff00,{status$:_0x1f68d0}=_0x2d0fef,_0x47c9e5=te[_0x39f27c(0x25b)](_0x1f68d0,q[_0x39f27c(0x3d4)]),_0x3d204f=a['useDependency'](a['LocaleService']),_0x4589eb=a[_0x39f27c(0x2af)](exports['CollaborationSessionService']),_0x8aafcf=_0x47c9e5!==q[_0x39f27c(0x548)],_0x1a34e5=_0x3d204f['t'](Ks(_0x47c9e5)),_0x1d9975=ks(Me[_0x39f27c(0x549)],{[Me['online']]:_0x8aafcf,[Me['offline']]:!_0x8aafcf}),_0x3a7de4=_0x8aafcf?ge['jsx'](Ri,{}):ge[_0x39f27c(0x3dd)](Ti,{}),_0x360e5e=ae[_0x39f27c(0x3a3)](()=>{_0x8aafcf||_0x4589eb['reconnect']();},[_0x8aafcf,_0x4589eb]);function _0x54c19f(){const _0x56a685=_0x39f27c;return ge['jsxs'](_0x56a685(0x52c),{'className':_0x1d9975,'onClick':_0x360e5e,'children':[ge[_0x56a685(0x3dd)](_0x56a685(0x52c),{'className':Me['onlineStatusIcon'],'children':_0x3a7de4}),ge['jsx']('div',{'className':Me[_0x56a685(0x42a)],'children':_0x1a34e5})]});}return _0x8aafcf?_0x54c19f():ge[_0x39f27c(0x3dd)](Ce['Tooltip'],{'title':_0x3d204f['t'](_0x39f27c(0x65d)),'children':_0x54c19f()});}var qs=Object[_0x29ff00(0x64a)],zs=Object['getOwnPropertyDescriptor'],Xs=(_0x41afc9,_0xa79fb4,_0x118243,_0x290294)=>{const _0x48cbee=_0x29ff00;for(var _0x5fb287=_0x290294>0x1?void 0x0:_0x290294?zs(_0xa79fb4,_0x118243):_0xa79fb4,_0x45468b=_0x41afc9[_0x48cbee(0x5e7)]-0x1,_0x854c1f;_0x45468b>=0x0;_0x45468b--)(_0x854c1f=_0x41afc9[_0x45468b])&&(_0x5fb287=(_0x290294?_0x854c1f(_0xa79fb4,_0x118243,_0x5fb287):_0x854c1f(_0x5fb287))||_0x5fb287);return _0x290294&&_0x5fb287&&qs(_0xa79fb4,_0x118243,_0x5fb287),_0x5fb287;},$e=(_0x588346,_0x4caadd)=>(_0x5dc16e,_0x407f55)=>_0x4caadd(_0x5dc16e,_0x407f55,_0x588346);exports[_0x29ff00(0x4b2)]=class extends a[_0x29ff00(0x331)]{constructor(_0x3c5496,_0x415880,_0x4cfedf,_0x372251){const _0x505e2d=_0x29ff00;super(),I(this,'_status$',new A[(_0x505e2d(0x26c))](q[_0x505e2d(0x3d4)])),(this[_0x505e2d(0x600)]=_0x3c5496,this[_0x505e2d(0x646)]=_0x415880,this[_0x505e2d(0x1c1)]=_0x4cfedf,this[_0x505e2d(0x421)]=_0x372251,this[_0x505e2d(0x633)](),this[_0x505e2d(0x550)]());}['_initStatusListener'](){const _0xbd2d90=_0x29ff00;this[_0xbd2d90(0x665)](this[_0xbd2d90(0x600)][_0xbd2d90(0x200)][_0xbd2d90(0x619)](A[_0xbd2d90(0x53a)](()=>{const _0x194e10=_0xbd2d90,_0x25520f=this[_0x194e10(0x600)][_0x194e10(0x498)]();return _0x25520f?this['_collaborationController'][_0x194e10(0x388)](_0x25520f[_0x194e10(0x621)]()):A['of'](null);}),A[_0xbd2d90(0x53a)](_0x53ad1d=>_0x53ad1d?_0x53ad1d[_0xbd2d90(0x405)]:A['of'](q[_0xbd2d90(0x3d4)])))[_0xbd2d90(0x58f)](_0x377113=>{const _0x212c14=_0xbd2d90;this[_0x212c14(0x1f8)][_0x212c14(0x49f)](_0x377113);}));}['_initStatusComponent'](){const _0x242dec=_0x29ff00;this['disposeWithMe'](this['_uiPartsService'][_0x242dec(0x4c0)](te['BuiltInUIPart']['HEADER_MENU'],()=>a[_0x242dec(0x298)](Js({'status$':this['_status$'][_0x242dec(0x4c6)]()}),this[_0x242dec(0x1c1)])));}},exports[_0x29ff00(0x4b2)]=Xs([$e(0x0,a[_0x29ff00(0x37f)]),$e(0x1,te[_0x29ff00(0x485)]),$e(0x2,a['Inject'](a[_0x29ff00(0x615)])),$e(0x3,a['Inject'](exports[_0x29ff00(0x323)]))],exports['DesktopCollaborationStatusDisplayController']);function Js(_0x5e8dba){const {status$:_0x2c8777}=_0x5e8dba;return function(){const _0x1cb4f6=_0x2f26;return ge[_0x1cb4f6(0x3dd)](Oi,{'status$':_0x2c8777});};}const wt=a[_0x29ff00(0x369)]('uni.network.url-service');var Zs=Object[_0x29ff00(0x64a)],Qs=Object[_0x29ff00(0x316)],er=(_0x517c2c,_0x5389a0,_0x2456f7,_0x553e80)=>{const _0x573ce9=_0x29ff00;for(var _0xc67ac=_0x553e80>0x1?void 0x0:_0x553e80?Qs(_0x5389a0,_0x2456f7):_0x5389a0,_0xe68ee9=_0x517c2c[_0x573ce9(0x5e7)]-0x1,_0x381159;_0xe68ee9>=0x0;_0xe68ee9--)(_0x381159=_0x517c2c[_0xe68ee9])&&(_0xc67ac=(_0x553e80?_0x381159(_0x5389a0,_0x2456f7,_0xc67ac):_0x381159(_0xc67ac))||_0xc67ac);return _0x553e80&&_0xc67ac&&Zs(_0x5389a0,_0x2456f7,_0xc67ac),_0xc67ac;},Re=(_0x591441,_0x1776e6)=>(_0x3d30cc,_0x42e0b9)=>_0x1776e6(_0x3d30cc,_0x42e0b9,_0x591441);exports[_0x29ff00(0x61f)]=class extends a[_0x29ff00(0x4b0)]{constructor(_0x116520,_0x23e80b,_0x372a14,_0x4c9755,_0x12dbbe,_0x14112b){const _0x2808d=_0x29ff00;super(),this[_0x2808d(0x5ec)]=_0x116520,this[_0x2808d(0x328)]=_0x23e80b,this[_0x2808d(0x5b4)]=_0x372a14,this['_localCacheService']=_0x4c9755,this[_0x2808d(0x394)]=_0x12dbbe,_0x14112b?_0x14112b==null||_0x14112b[_0x2808d(0x31e)]()['then'](()=>this[_0x2808d(0x5c4)]()):(this[_0x2808d(0x328)]['debug'](_0x2808d(0x36f),_0x2808d(0x24a)),this['_init']());}async[_0x29ff00(0x5c4)](){const _0x52b8e3=_0x29ff00,_0x3ba6bc=this[_0x52b8e3(0x5ec)][_0x52b8e3(0x56c)](_0x52b8e3(0x4f6)),_0x58eb45=this['_urlService'][_0x52b8e3(0x56c)](_0x52b8e3(0x2eb));if(!_0x3ba6bc||!_0x58eb45){this['_logService'][_0x52b8e3(0x226)]('[DataLoaderController]',_0x52b8e3(0x4f2));return;}switch(Number(_0x58eb45)){case ne[_0x52b8e3(0x3d0)]:{const _0x4f97b7=await this[_0x52b8e3(0x40f)](_0x3ba6bc);this[_0x52b8e3(0x26b)](_0x4f97b7);break;}case ne[_0x52b8e3(0x4f0)]:{await this[_0x52b8e3(0x599)](_0x3ba6bc);break;}default:{this[_0x52b8e3(0x328)][_0x52b8e3(0x27a)](_0x52b8e3(0x36f),_0x52b8e3(0x556));break;}}}async[_0x29ff00(0x26b)](_0x17c2f8){const _0x2c2419=_0x29ff00;await this[_0x2c2419(0x5ad)](_0x17c2f8),_0x17c2f8[_0x2c2419(0x342)][_0x2c2419(0x619)](A[_0x2c2419(0x264)](this[_0x2c2419(0x2b6)]))[_0x2c2419(0x58f)](_0x1c6bba=>{const _0x4c4cc8=_0x2c2419;_0x1c6bba&&this[_0x4c4cc8(0x2e6)](_0x1c6bba);}),this[_0x2c2419(0x5ec)]['urlChange$'][_0x2c2419(0x619)](A['takeUntil'](this[_0x2c2419(0x2b6)]))[_0x2c2419(0x58f)](()=>this['_updateSubUnitFromURLParams'](_0x17c2f8));}[_0x29ff00(0x2e6)](_0xa7dedd,_0x141737=!0x1){const _0x1aae71=_0x29ff00,_0x4a83d4=this[_0x1aae71(0x5ec)][_0x1aae71(0x56c)]('subunit');_0xa7dedd[_0x1aae71(0x360)]()!==_0x4a83d4&&this[_0x1aae71(0x5ec)][_0x1aae71(0x4c7)](_0x1aae71(0x3c5),_0xa7dedd[_0x1aae71(0x360)](),_0x141737);}async['_updateSubUnitFromURLParams'](_0x303b7f){const _0xc14a4f=_0x29ff00;var _0x1f44b3;const _0x14c417=this[_0xc14a4f(0x5ec)][_0xc14a4f(0x56c)](_0xc14a4f(0x3c5));if(!_0x14c417||!_0x303b7f[_0xc14a4f(0x50c)](_0x14c417)){const _0x5ea3cc=_0x303b7f['getUnhiddenWorksheets']()[0x0],_0xaa854c=_0x303b7f['getSheetBySheetId'](_0x5ea3cc);if(!_0xaa854c)return;this[_0xc14a4f(0x2e6)](_0xaa854c,!0x0),await this[_0xc14a4f(0x5b4)][_0xc14a4f(0x645)](k[_0xc14a4f(0x3e3)]['id'],{'unitId':_0x303b7f[_0xc14a4f(0x621)](),'subUnitId':_0x5ea3cc});return;}((_0x1f44b3=_0x303b7f[_0xc14a4f(0x42c)]())==null?void 0x0:_0x1f44b3[_0xc14a4f(0x360)]())!==_0x14c417&&await this[_0xc14a4f(0x5b4)][_0xc14a4f(0x645)](k[_0xc14a4f(0x3e3)]['id'],{'unitId':_0x303b7f['getUnitId'](),'subUnitId':_0x14c417});}async[_0x29ff00(0x40f)](_0x2e10ff){const _0x5c5e56=_0x29ff00;let _0x59e430=0x0;const _0x4290b7=await this[_0x5c5e56(0x34f)][_0x5c5e56(0x26d)](_0x2e10ff);return _0x4290b7&&(_0x4290b7[_0x5c5e56(0x247)]||_0x4290b7[_0x5c5e56(0x219)]['length']!==0x0)&&(_0x59e430=_0x4290b7[_0x5c5e56(0x3a4)]),_0x59e430===0x0&&this[_0x5c5e56(0x328)][_0x5c5e56(0x226)](_0x5c5e56(0x36f),_0x5c5e56(0x204)),this['_snapshotService'][_0x5c5e56(0x30d)](_0x2e10ff,_0x59e430);}async[_0x29ff00(0x599)](_0x4dfe5e){const _0x6dcf8=_0x29ff00;let _0x3cb721=0x0;const _0x3e7faa=await this['_localCacheService']['loadOfflineData'](_0x4dfe5e);return _0x3e7faa&&(_0x3e7faa[_0x6dcf8(0x247)]||_0x3e7faa['mutations'][_0x6dcf8(0x5e7)]!==0x0)&&(_0x3cb721=_0x3e7faa['rev']),_0x3cb721===0x0&&this['_logService']['debug'](_0x6dcf8(0x36f),_0x6dcf8(0x204)),this['_snapshotService'][_0x6dcf8(0x517)](_0x4dfe5e,_0x3cb721);}},exports[_0x29ff00(0x61f)]=er([Re(0x0,wt),Re(0x1,a['ILogService']),Re(0x2,a[_0x29ff00(0x587)]),Re(0x3,a[_0x29ff00(0x493)](exports[_0x29ff00(0x46a)])),Re(0x4,a[_0x29ff00(0x493)](p[_0x29ff00(0x63f)])),Re(0x5,a[_0x29ff00(0x437)](Bi['IRemoteInstanceService']))],exports[_0x29ff00(0x61f)]);var tr=Object[_0x29ff00(0x64a)],ir=Object[_0x29ff00(0x316)],nr=(_0x145082,_0x2e52b0,_0x1260f5,_0x5b6cb9)=>{const _0x2ede02=_0x29ff00;for(var _0x448313=_0x5b6cb9>0x1?void 0x0:_0x5b6cb9?ir(_0x2e52b0,_0x1260f5):_0x2e52b0,_0x341445=_0x145082[_0x2ede02(0x5e7)]-0x1,_0x526168;_0x341445>=0x0;_0x341445--)(_0x526168=_0x145082[_0x341445])&&(_0x448313=(_0x5b6cb9?_0x526168(_0x2e52b0,_0x1260f5,_0x448313):_0x526168(_0x448313))||_0x448313);return _0x5b6cb9&&_0x448313&&tr(_0x2e52b0,_0x1260f5,_0x448313),_0x448313;},Vt=(_0x4bf917,_0x50591f)=>(_0x1d1a69,_0xc68603)=>_0x50591f(_0x1d1a69,_0xc68603,_0x4bf917);const sr='DEFAULT_FILE_NAME',rr=_0x29ff00(0x33f);let Ge=class extends a['Disposable']{constructor(_0x53aadc,_0x3a64f3){const _0x19cdbb=_0x29ff00;super(),this[_0x19cdbb(0x600)]=_0x53aadc,this[_0x19cdbb(0x4ea)]=_0x3a64f3,this[_0x19cdbb(0x5c4)]();}[_0x29ff00(0x5c4)](){const _0x2a2e19=_0x29ff00;this['disposeWithMe'](this['_univerInstanceService'][_0x2a2e19(0x200)][_0x2a2e19(0x58f)](()=>{const _0x315a64=_0x2a2e19;var _0x40c83d;const _0x354078=this['_univerInstanceService']['getFocusedUnit']();let _0x5b0c9c=(_0x40c83d=this['_configService'][_0x315a64(0x1ea)](sr))!=null?_0x40c83d:rr;_0x354078 instanceof a[_0x315a64(0x2d0)]&&(_0x5b0c9c=_0x354078['name']),document['title']=_0x5b0c9c;}));}};Ge=nr([Vt(0x0,a['IUniverInstanceService']),Vt(0x1,a[_0x29ff00(0x64d)])],Ge);var or=Object[_0x29ff00(0x64a)],ar=Object[_0x29ff00(0x316)],cr=(_0x20c423,_0x193825,_0x439adf,_0x2f2aa9)=>{const _0x5453c5=_0x29ff00;for(var _0x3e0016=_0x2f2aa9>0x1?void 0x0:_0x2f2aa9?ar(_0x193825,_0x439adf):_0x193825,_0xda4f75=_0x20c423[_0x5453c5(0x5e7)]-0x1,_0x1a69f8;_0xda4f75>=0x0;_0xda4f75--)(_0x1a69f8=_0x20c423[_0xda4f75])&&(_0x3e0016=(_0x2f2aa9?_0x1a69f8(_0x193825,_0x439adf,_0x3e0016):_0x1a69f8(_0x3e0016))||_0x3e0016);return _0x2f2aa9&&_0x3e0016&&or(_0x193825,_0x439adf,_0x3e0016),_0x3e0016;},ct=(_0x5e353b,_0x3fd0cf)=>(_0x361e9d,_0x52e994)=>_0x3fd0cf(_0x361e9d,_0x52e994,_0x5e353b);let Ye=class{constructor(_0x30a2ce,_0x5d4afb,_0x30236e){const _0x50ba2c=_0x29ff00;this[_0x50ba2c(0x4ea)]=_0x30a2ce,this['_httpService']=_0x5d4afb,this[_0x50ba2c(0x649)]=_0x30236e,this[_0x50ba2c(0x334)]();}[_0x29ff00(0x334)](){const _0x11df2c=_0x29ff00;this[_0x11df2c(0x620)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3367d4,_0x512d9e)=>_0x512d9e(_0x3367d4)[_0x11df2c(0x619)](A['concatMap'](async _0x520ace=>{const _0x4bcc28=_0x11df2c,_0x3c1f1d=_0x520ace;if(_0x3c1f1d[_0x4bcc28(0x2be)]===0x191&&window[_0x4bcc28(0x3e5)](this[_0x4bcc28(0x649)]['t'](_0x4bcc28(0x4bb)))){const _0x91bdbd=window[_0x4bcc28(0x61d)](window[_0x4bcc28(0x60d)]['href']);window[_0x4bcc28(0x60d)][_0x4bcc28(0x244)]=this[_0x4bcc28(0x60b)]()+_0x4bcc28(0x4c1)+_0x91bdbd;}return _0x3c1f1d;}))});}['_getLoginPath'](){const _0x3728e2=_0x29ff00;var _0x2fee53,_0x21d9ec;const _0x431409=this['_configService']['getConfig'](hi),_0x2d7acd=this['_configService'][_0x3728e2(0x1ea)](Q);return(_0x21d9ec=(_0x2fee53=_0x2d7acd==null?void 0x0:_0x2d7acd['loginUrlKey'])!=null?_0x2fee53:_0x431409)!=null?_0x21d9ec:Ji;}};Ye=cr([ct(0x0,a[_0x29ff00(0x64d)]),ct(0x1,a[_0x29ff00(0x493)](z['HTTPService'])),ct(0x2,a['Inject'](a[_0x29ff00(0x430)]))],Ye);var lr=Object['defineProperty'],hr=Object[_0x29ff00(0x316)],_r=(_0x5966d0,_0x487395,_0x46c0d0,_0x3cf26c)=>{for(var _0x50f6ae=_0x3cf26c>0x1?void 0x0:_0x3cf26c?hr(_0x487395,_0x46c0d0):_0x487395,_0x5c1597=_0x5966d0['length']-0x1,_0x351941;_0x5c1597>=0x0;_0x5c1597--)(_0x351941=_0x5966d0[_0x5c1597])&&(_0x50f6ae=(_0x3cf26c?_0x351941(_0x487395,_0x46c0d0,_0x50f6ae):_0x351941(_0x50f6ae))||_0x50f6ae);return _0x3cf26c&&_0x50f6ae&&lr(_0x487395,_0x46c0d0,_0x50f6ae),_0x50f6ae;},Gt=(_0x4b40f7,_0x267177)=>(_0x4bd7c5,_0x7a8a01)=>_0x267177(_0x4bd7c5,_0x7a8a01,_0x4b40f7);function _0x595e(){const _0x1b99cf=['generateRandomId','_tryEnsureSocket','INGEST','post','_collabCursorController','loadDoc','addObject','hide','418748mXHXMQ','_removeCollabCursors','RemoveRowCommandId','univer-online-status-icon','_docClipboardService','authzUrl','onRemoteRej','_keySchedule','_undoStacks','_getAPIPrefixPath','startTime','sin','getDocRanges','createInstance','sessionTicket','OpenSSL','FAIL','userID','div','VIEW_MAIN','saveSnapshot','hasher','lib','_lockTransition','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[UniverCollaborationClientPlugin]','Subject','_isPermissionRej','list','_transformStack','_reverseMap','_HTTPService','switchMap','now','subscribeEvent','clamp','fill','compose','randomUUID','@univerjs/engine-render','_roomMembers','_substituteUndoStack','labelPosition','Hasher','DisposableCollection','getMergeData','OFFLINE','onlineStatus','_minBufferSize','deserializeRangeWithSheet','conflict.content','debounceTime','url(#$1','getTime','_initStatusListener','update','colorChannel1','unitID','_removeRoom','/collaborator','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UnitSnapshot','_DEC_XFORM_MODE','Undefined','CHANGESET_REJ','eventID','FileId','body','createEncryptor','getCollabEntity','HmacMD5','_initUnitPermissionChange','serializeRangeWithSheet','UNAUTHENTICATED','startColumn','WebURLService','133872AEvWyF','apply','_getRedoStack','DependentOn','defs','COMPRESS_MUTATION_APPLY','getParam','LEAVE','collab-text-anchor-','VIEWPORT_KEY','searchParams','telemetry\x20info\x20is\x20not\x20initialized','ONLINE','baseRev','OTHER_CLIENTS_EDITING','LOCAL_CACHE_INTERVAL','toRgbString','listCollaborators','removeMember','SetDocZoomRatioOperation','_onRecvEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_unitOnClients','iterations','StreamCipher','COMPRESS_MUTATION_SEND','displayName','random','HttpExport','_getSnapshotAPIPrefix','onMissedChangesetFetched','sid','addClipboardHook','ICommandService','ceil','collaboration-session-retry','_http','find','/universer-api/authz','WorkbookEditablePermission','initWorkbookPermissionChange','subscribe','_permissionService','/universer-api/oidc/authpage','SetTextSelectionsOperation','listRoles','enableAuthServer','registerHTTPInterceptor','_initCommandExecutedListener','encode','_getSendChangesetTimeout','_loadDoc','RevisionService','handleInsertRow','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','byteOffset','_mode','univer-online-status','@univerjs/engine-formula','USERS_LEAVE','image/png','Encryptor','exports','_scheduleSaving','Rectangle','sheetId','function','_waitCount','lineTo','_ws','[PendingState]:\x20received\x20acknowledgement.','_updateSubUnitFromURLParams','\x20-\x20','appendMutation','_sender','getCurrentUnitForType','getVpScrollXYInfoByPosToVp','ImageSourceType','_commandService','session.connection-failed','_cursorShapes','IRenderManagerService','getMember','resize','isTransformMutationsWithChangesetSuccess','jsxs','USERS_ENTER','randomBytes','action','then','split','_incrementRevisionNumber','saveOfflineData','clone','_init','DeleteRangeMoveUpCommandId','HEARTBEAT','setCurrentUser','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SheetCollabCursorShape','tag','_drawAnchor','MSG_FOR_ERROR','SheetCollaborationEntity','UniverInstanceType','UNIVER_PROJECT','_onUserLeave','_state','_retryConnectingTimer','originalMeta','_toggleOnline','/allowed','getCurrentSelections','hasOwnProperty','getCurrentUser','_render','ERROR_IMAGE','joinEvent','/universer-api/snapshot','DocCollaborationEntity','_replaceFileID','[CollaborationSessionService]:\x20socket\x20error','SHA1','LOGIN_URL_KEY','editing\x20status\x20changed\x20to','useRef','@univerjs/docs','_onConnectionOpen','dispose','length','handleIRemoveRow','_roomMembers$','CollaborationSessionService','_docTransformStateCacheService','_urlService','merge','AuthzIoHttpService','transformRemoteChangeset','fetchThroughInterceptors','AUTHZ_URL_KEY','YUUMI_UNABLE_LOAD_URL','getOffsetConfig','getInterceptPoints','_compressMutationService','hostname','_getSaveTimeout','bottom','round','off-line-single','_resendWithTimeout','_unitStatus','defaultProps','revision','rng','_univerInstanceService','_labelPosition','collaboration-client.config','_hasher','filter','IAuthzIoService','Rect','editingUnit','parseProtocolChangeset','UNKNOWN_CODE','JSONX','_getLoginPath','rxjs','location','objectActions','UserManagerService','_scheduleHeartbeat','_updateLocalCache','_notificationService','_sheetSkeletonManagerService','_onConnectionFailed','Injector','_initRequestHeader','Module','_joinRoom','pipe','JOIN_ROOM_FULL','PERSON','fromEvent','encodeURIComponent','black','DataLoaderController','_httpService','getUnitId','_timeoutTimer','createCollaborator','RefRangeService','UNIVER_SLIDE','blockSize','attrs','Base','target','size','createSocket','_name','SNAPSHOT_HAS_BEEN_REMOVED','getItem','_retryCount','/universer-api/stream/file/upload','NoPadding','[OfflineState]:\x20received\x20acknowledgement.','_initStatusComponent','clearInterval','_getDownloadEndpointURL','UniverCollaborationPlugin','_setupBeforeClosingHandler','UNKNOWN_CMD','_eventUnsubscribe','UniverCollaborationClientPlugin','COMPLETION_FINISHED','none','11802990PhpVYZ','_transformIMECache','SnapshotService','isEditing','clear','close$','use','forwardRef','executeCommand','_uiPartsService','roomMembers$','OffLineSingle','localeService','defineProperty','DocSelectionManagerService','objectType','IConfigService','deepClone','UNDEFINED','objects','unpad','_unlockTransition','_collabSessionService','_fetchMissChangesets','origin','_cachedData','image/jpg','BlockCipherMode','default','_onLocalMutation','_applyRemoteChangeset','collaborators','collab-client.tooltip.reconnect','stringify','...','_updateLocalCursor','InsertColCommandId','ImageUploadStatusType','HMAC','_doCryptBlock','disposeWithMe','defIds','InsertRangeMoveRightCommandId','_colorIndex','EvpKDF','startsWith','_resendTimeout','_clearOtherTimers','onTransformState','deserializeToCombResponse','getStateCache','IBeforeCloseService','BlockCipher','InsertSheetMutation','_transitionLocked','Shape','result','transformByState','_disableEditing','socketService','CollaborationSession','_startDocCollabCursor','Malformed\x20UTF-8\x20data','method','salt','newValue','_assignedColors','_replayCachedMutations','file','updateCollaborator','path','changesets','_append','onSendChangeset','_doProcessBlock','CommandType','collab-text-range-','hovered','_syncEditingCollabCursorService','_clearTimeoutTimer','newCsEvent','shouldCloseConn','max','fromEventSubject','mapDocumentTypeToUniverType','objectID','[PendingState]:\x20received\x20rejection.','HTTPService','subject','_beforeCloseService','_injector','_handleEvent','error$','parse','PENDING','indexOf','snapshot','undoState','_tryReconnect','getUnitOnRev','OnLineSingle','_docStateChangeManagerService','ENSURE_SNAPSHOT_EXECUTION','_acknowledgedAwaitingChangeset','INVALID_ARGUMENT','_getCurrentRevision','_substituteRedoStack','state','_initDependencies','_transformSelections','call','MemberService','collabStatus.offline','words','createDecryptor','substring','off-line-single_clip0_910_343','_snapshotServerService','COLLAB_SUBMIT_CHANGESET_URL_KEY','addImageSourceCache','fromCharCode','measureText','_id','WordArray','_onCursorUpdate','_color','createElement','_clearHeartbeatTimer','/universer-api/snapshot/','on-line-single_clip0_910_349','ITelemetryService','getConfig','_collaborationSessionService','_lastPointer','synced','encryptBlock','&source=','_updateState','getRelativeToViewportCoord','_disabled','APPLY_REJECT','isInternalEditorID','gold400','unknown','_docSyncEditingCollabCursorService','_status$','HEARTBEAT_INTERVAL_KEY','isTransformMutationsWithChangesetFailure','top','getUndoRedoMutationParamsCache','children','prototype','getUnitStatus$','focused$','_type','_stopTelemetryCollaborationNewChangeset','onMissingChangesets','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onlyLocal','CONNECTOR_DATA_TOO_LARGE','deleteCollaborator','_nDataBytes','_removeClearOtherTimer','set','handleIRemoveCol','getSheetObject','current','endColumn','_localeService','SheetsSelectionsService','fillStyle','_onRemoteChangeset','image/jpeg','source','JOIN_ROOM_NOT_ALLOWED','LIVESHARE_TERMINATE','_xformMode','COLLAB_CLIENT_CONFIG_KEY','mutations','_socketReady','unitId','_exhaustRemoteChangesetQueue','_getMergeRange','CollaborationEntity','YUUMI_SUBSCRIPTION_NOT_FOUND','_context','_entities','IDocClipboardService','_toggleOffline','__Key__','fetch_missing','debug','getRandomValues','react.element','DocSkeletonManagerService','commentUpdate$','collabStatus.fetchMiss','_candidateSocket','_onUserJoin','complete','_onCursorDelete','univer-pro.collaboration-client.single-active-unit-service','add','_startSheetCollabCursor','_saveTaskMap','Base64','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','handleDeleteRangeMoveLeft','_decreaseWaiting','SNAPSHOT_URL_KEY','m2Prime','CHANGESET_REVISION_CONFILICT','_entityInit$','YUUMI_RATE_OVER_LIMIT','registerOnClose','_getAPIPrefix','SetSelectionsOperation','SessionStatus','symbol','debounce','DocStateChangeManagerService','href','_event$','addEventListener','awaitingChangeset','imageSourceType','CHANGESET_ACK','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unshift','ReplaySubject','_scheduleClearOtherTimer','_socketMessageSubscription','duration','_initCloseConn','crypto','CBC','clipPath','_localStorageService','assignAColorForMemberID','onPointerEnter$','session','21yLBCkT','CollaborationEvent','_saveCache','useObservable','readAsDataURL','code','roomMembers','_sendHeartbeatTimer','byteLength','_onCombEvent','decrypt','includes','takeUntil','on-line-single','_updateCollabCursors','reconnect','transformMutationsWithChangeset','_createInitialState','MoveRangeCommandId','_setupSubUnitSync','BehaviorSubject','loadOfflineData','saveChangeset','parseChangesetToProtocol','disposeUnit','collaboration.closeRoom','_members','_transformUndoRedoStack','univer-online','RECV','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_getScale','_cursorInfo$','getCoordByCell','error','message$','Unknown\x20user','NO_OTHER_CLIENTS_EDITING','wsSessionTicketUrl','Vector2','onRendered','IDLE','compute','_telemetryService','liveShareOperation','beginPath','470538fYcBqL','WebSocketService','$super','onTransformSelections','INTERNAL_ERROR','_onFetchMissResult','liveShareNewHost','_onJoinRoomEvent','setItem','1764AfHGhK','AWAITING_WITH_PENDING','string','_socketService','setStateCache','evenodd','1em','_telemetryInfo','_doReset','connectInjector','sessionStatus$','commentUpdateEvent','incrementRevOfUnit','reset','collabSubmitChangesetUrl','arc','#fff','COLLAB_SUBMIT_CHANGESET_URL','transformUndoRedo','for','_createHandler','_collaborationPaused','restore','TRANSFORM_CHANGE_OBSERVABLE_TYPE','onPointerMove$','_revisionService','_onRemoteACK','_send','triggerDblclick','collabStatus.syncing','HELLO','flatMap','useDependency','&to=','_initResize','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_nRounds','getViewport','rgba(255,\x20255,\x20255,\x200.01)','dispose$','_sessions','ALREADY_EXISTS','purple300','submit\x20changeset\x20error!','TOO_MANY_REQUESTS','application/json','MentionIoHttpService','status','_hideTimer','_invKeySchedule','transformSelections','SUCCUSS','copyFileMeta','_onConflict','_transformRemoteChangesetByStateCache','failed\x20to\x20apply\x20missed\x20changesets!','joinRsp','SUBMIT_CHANGESET','concat','_queuedRemoteChangesets','APPLY_PERMISSION_DENIED','UniverNetworkPlugin','name','CHANGESET_SHOULD_RETRY','repeat','Workbook','resend','avatar','__creator','_iKey','_singleActiveUnitService','HTTPRequest','getAllMembers','LocalUndoRedoService','disableLocalCache','APPLY_REVISION_CONFILICT','leaveEvent','onMouseMove','/rev/','setInterval','CONFLICT','getUnitType','mapTo','padding','getOwnPropertySymbols','msCrypto','_refRangeService','_updateURLWithCurrentState','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','@univerjs/sheets','registerRefRange','fromCollab','type','image/gif','_docTransformIMECacheService','SheetSkeletonManagerService','get','setConfig','_change$','_commentUpdate$','toggleOffline','column','NOT_FOUND','sequenceExecute','collaboratorID','pad','addObjects','_docSkeletonManagerService','univerjs-icon\x20univerjs-icon-','handleMoveRange','b64DecodeUnicode','getColor','sessionStatus','isPermissionRej','SYNCED','Tools','BASE64','pauseCollaboration','x-univer-host','assign','all','replaceDocRanges','getCurrentRevOfUnit','CommentService','_shapes','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','loadSheet','hidden','extend','transform','processBlock','exhaustSavingTask','LIVESHARE_NEW_HOST','with','c1Prime','getOwnPropertyDescriptor','sheets','show','_createInitialStateImpl','append','CompressMutationService','socket\x20open.','[CollaborationSessionService]','whenReady','[CollaborationUndoRedoService]','DocIMEInputManagerService','collabStatus.conflict','/object','CollaborationController','_onOffline','IUndoRedoService','values','_createSocketURL','_logService','syncEditingCollabCursor','_pendingMutations','getActiveRange','Fragment','_listenToOnlineEvent','headers','LICENSE_EXPORT_SIZE_EXCEEDED','_docTransformSelectionsService','Disposable','every','jiqing500','init','connection\x20error','pushState','_socket$','selections','FETCH_MISS','_submitChangeset','downloadEndpointUrl','_handleHover','_unitID','\x0aCurrent:\x20','Univer','[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.','Error','activeSheet$','resolve','RichTextEditingMutation','_userManagerService','snapshotServerUrl','_onRefRangeChange','HmacSHA1','finalize','setTimeout','react.fragment','@univerjs/docs-ui','_anchor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_localCacheService','transformIMECache','INotificationService','ticket','_startTelemetryCollaborationNewChangeset','splice','some','doc.mutation.rich-text-editing','setShowComponents','UnitEmbedded','xlink:href','_iv','univer-offline','_online','ImageIoService','memberID','svg','getSheetId','findNodePositionByCharIndex','blue400','_throwTelemetryCollaborationNewChangeset','Could\x20not\x20dynamically\x20require\x20\x22','getTypeOfUnitDisposed$','updatePermissionPoint','width','[CollaborationState]:\x20apply\x20error!','createIdentifier','collaboration_new_changeset','number','RECT','_state$','cursorInfo$','[DataLoaderController]','url(#off-line-single_clip0_910_343)','visibilitychange','toDisposable','contains','CollaborationSocketService','color','height','JOINING','image/bmp','fetchMissingChangesets','enableSingleActiveInstanceLock','MD5','getSheetBlock','_session','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','IUniverInstanceService','DOC_RANGE_TYPE','react','_registerDependencies','10296GKdblt','substr','send','@univerjs/ui','collab-rect-range-','getCollabEntity$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setUndoRedoMutationParamsCache','CipherParams','_drawRectRange','has','enc','ITransformService','Warning','makeDirty','_process','setActiveRange','_snapshotService','algo','onRemoteRetry','/fetchmissing?from=','IContextService','_onMessage','className','LOCAL_CACHE_INTERVAL_KEY','conflict.title','change$','socket$','currentSkeleton$','getDeserializedSheetBlock','forEach','LICENSE_DISTRO_REJECTED','useCallback','rev','InsertRangeMoveDownCommandId','getRangePointData','/universer-api/file/{fileID}/sign-url','stopTime','_doFinalize','text','idSuffix','collaboration-client.offline-data-not-saved','getUnit','SheetPermissionInitController','/block/','ciphertext','touchDependencies','signUrlServerUrl','UNIVER_UNKNOWN','conflict','_changesetReqId','collabStatus.synced','Plugin','min','onload','_heartbeatTimer','slice','push','delay','PERMISSION_DENIED','_waitForHeartbeatResponse','kdf','collaboration.single-unit.warning','#FFF','_anchorDot','_key','subunit','_getUploadFileURL','/universer-api/user/session-ticket','collabStatus.notCollab','_prevBlock','setShapeProps','_checkMissing','_scene','setWaitCount','abs','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_SHEET','IPermissionService','throttleTime','_getAnchorBounding','NOT_COLLAB','Latin1','workbook','take','_changesetSessionId','@univerjs/telemetry','subUnitId','_hovered','delete','jsx','_executeRemoteChangeset','_commentService','LICENSE_MAX_UNITS_EXCEEDED','@univerjs-pro/collaboration','_cursor','SetWorksheetActivateCommand','drawWith','confirm','Utf8','fillRule','_createSocket','ivSize','registerRenderModule','data','cursorInfo','_imageSourceCache','selection','toString','onCommandExecuted','reduce','withCredentials','updateMember','getAncestorScale','trim','saveImage','create','floor','registerBeforeClose','[OfflineState]:\x20received\x20changeset.','onRemoteAck','join','SNAPSHOT_SERVER_URL_KEY','updatePermissionObjEvent','range','isArray','_ENC_XFORM_MODE','NEW_CHANGESETS','@univerjs/drawing','closePath','status$','_initMergeInterceptor','_hash','NodePositionConvertToRectRange','charCodeAt','getMemberID','[SyncedState]:\x20received\x20acknowledgement.','getRenderById','AES','_clearUndo','_loadSheet','UPDATE_PERMISSION_OBJ','EffectRefRangId','_createHmacHelper','RemoveColCommandId','FETCH_MISSING','runRefRangeMutations','_awaitingChangeset','CollaborationStatusDisplay','open$','UNRECOGNIZED','_cipher','collabCursorState$','SnapshotServerOverHTTPService','_clearLocalCache','BufferedBlockAlgorithm','_syncEditingCollabCursor','onTransformIME','_collaborationController','_sendHeartbeat','HEARTBEAT_TIMEOUT','history','key','ISnapshotServerService','_memberService','onTransformRemoteChangesetByIMECache','requireSession','onlineStatusTitle','LIVESHARE_FETCH_OPERATIONS','getActiveSheet','onStateChange','getValue','_scheduleTimestamp','LocaleService','resourceIDs','entries','_imageIoService','_getSessionTicket','UPDATE_CURSOR','online','Optional','ThemeService','_sessionStatus$','ILocalStorageService','getImage','transformMutation','row','replace','unit-cache-','/unit/','requestParams','encrypt','session.will-retry','csShouldRetryEvent','Decryptor','\x20to\x20','params','LIVESHARE_OPERATION','_transformService','UUID','currentTheme$','ws://127.0.0.1:8000/universer-api/comb/connect','SHOULD_CLOSE_CONN','reqId','redoState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','ERROR_IMAGE_TYPE','closeSession','clearTimeout','[SyncedState]:\x20received\x20rejection.','getCollabCursors$','_transformStateCache','_handleHeartbeatEvent','format','_parse','transformStack\x20failed!','SEND_CHANGESET_TIMEOUT_KEY','sigBytes','_document','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','?size=','getTypeOfUnitAdded$','_data','_undoRedoService','getUniverSheetInstance','_range','_hover','_clearScheduledTask','_handler','_refreshCollabCursors','_transformPreviousActiveRange','LocalCacheService','onSyncEditingCollabCursor','/role','verdancy600','charAt','transformStateCache','_keyPriorReset','\x20in\x20_schedule.','replaceState','HEARTBEAT_TIMEOUT_KEY','8PpsTLa','m1Prime','ranges','COLLAB_WEB_SOCKET_URL_KEY','setAlpha','_textBubble','_showConflictNotification','_getCtorByUniverType','Cipher','_shouldReportTelemetry','_messageService','IMessageService','_onRemoteRejected','onStarting','enableOfflineEditing','_collabCursorState$','distinctUntilChanged','IUIPartsService','ref','[OfflineState]:\x20received\x20rejection.','save','M0\x200H16V16H0z','event$','_redoStacks','translate(.97)','interceptor','_themeService','JOIN','_schedule','_socket','COMMENT_UPDATE','Inject','1349052yIWWrk','infoRsp','pending','_collaborationTimeoutTimer','getFocusedUnit','close','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getUndoStack','fillText','catch','textRanges','next','cmd','_instanceService','updateCursorEvent','skeleton','_resendTimer','SerializableCipher','[CollaborationSession]','execute','onCommentUpdate','_ensureSubject','HEARTBEAT_INTERVAL','moveTo','ILogService','url','[FetchMissState]','reject','RxDisposable','getSkeleton','DesktopCollaborationStatusDisplayController','font','isTransformMutationFailure','toggleOnline','_transformHistoryAndStateStack','POST','isActive','keySize','awaiting_with_pending','auth.needGotoLoginAlert','_renderManagerService','mixIn','_onRemoteRetry','state$','registerComponent','?url=','isTransformChangesetsSuccess','c2Prime','combineLatest','onRemoteChangeset','asObservable','setParam','MergeInterceptorFactory','ThresholdInterceptorFactory','mode','getRoom','APPLY_DUPLICATED','currentColor','YUUMI_URL_COL_OUT_OF_RANGE','updateOfflineData','HttpImport','put','@univerjs/sheets-ui','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_handleLeaveEvent','_initEventListeners','awaiting','_selfUnitIDs','_transformUndoredo','_drawTextRange','bind','map','_oKey','_sendingTimer','univer-online-status-title','_sheetTransformSelectionsService','offline','_colorAssignService','@univerjs/network','from','fetching\x20missing\x20changesets\x20from\x20','reverse','PSEUDO_FETCH_MISSING_RESULT','decryptBlock','_remoteChangesetQueue','/-/object/list','_configService','unsubscribe','csRejEvent','EXCHANGE_SIGN_URL_SERVER_URL_KEY','1155290aOmmEP','_clearRedo','UNIVER_DOC','PERMISSION_REJ','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','People','COLORS','_config','unit','/object/','_updateStatus','override','routeKey','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','actions','_cursors','_createHelper','TEXT','_startCollaboration','MUTATION','[CollaborationEntity]','cfg','ReactCurrentOwner','AWAITING','MessageType','transformChangesets','responseType','IImageIoService','permission.title','collabWebSocketUrl','getSheetBySheetId','_rescheduleHeartbeat','_clearCollaborationTimeoutTimer','_registerRenderDependencies','pluginName','APPLY_NON_SEQUENTIAL_REVISION'];_0x595e=function(){return _0x1b99cf;};return _0x595e();}const Ut=_0x29ff00(0x5f1),ur=_0x29ff00(0x58c);exports[_0x29ff00(0x5ee)]=class extends a[_0x29ff00(0x331)]{constructor(_0xc74f9,_0x1cf93d){const _0x5ce600=_0x29ff00;super(),this['_HTTPService']=_0xc74f9,this[_0x5ce600(0x4ea)]=_0x1cf93d,this[_0x5ce600(0x406)]();}[_0x29ff00(0x406)](){const _0x556677=_0x29ff00,_0x241149=this;this[_0x556677(0x665)](this[_0x556677(0x539)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':z[_0x556677(0x4c8)]({'isMatch'(_0x54e070){const _0x222c9d=_0x556677;var _0x57982c;if(_0x54e070[_0x222c9d(0x67c)]===_0x222c9d(0x4b7)&&((_0x57982c=_0x54e070['requestParams'])!=null&&_0x57982c['body'])){const {objectID:_0x41f8d6,objectType:_0x9ef139}=_0x54e070[_0x222c9d(0x441)][_0x222c9d(0x55d)]||{};if(!_0x41f8d6||_0x9ef139===void 0x0)return!0x1;const _0x54ae06=_0x241149[_0x222c9d(0x523)]()+'/'+_0x9ef139+_0x222c9d(0x4f7)+_0x41f8d6+'/allowed';if(_0x54e070[_0x222c9d(0x4ad)]===_0x54ae06)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a531f){const _0x1b4342=_0x556677;var _0x5ba011;return(_0x5ba011=_0x4a531f[_0x1b4342(0x441)])==null?void 0x0:_0x5ba011['body'];},'mergeParamsToRequest'(_0xb08608,_0x67fcc2){const _0x7cb3d2=_0x556677,_0x1888fa=_0x241149[_0x7cb3d2(0x523)]()+'/-/object/-/batch_allowed',_0x1c1197=_0xb08608[_0x7cb3d2(0x3f1)]((_0x2ce4ac,_0xc170f6)=>{const {unitID:_0x4fe74a,objectID:_0x174e74,objectType:_0x1eb638,actions:_0x3e294}=_0xc170f6;return _0x2ce4ac[_0x4fe74a]||(_0x2ce4ac[_0x4fe74a]={}),_0x2ce4ac[_0x4fe74a][_0x174e74]||(_0x2ce4ac[_0x4fe74a][_0x174e74]={'objectID':_0x174e74,'objectType':_0x1eb638,'actions':[]}),_0x2ce4ac[_0x4fe74a][_0x174e74]['actions']['push'](..._0x3e294),_0x2ce4ac;},{}),_0x1b3776=[];for(const _0x1e2565 in _0x1c1197)for(const _0x20f4a2 in _0x1c1197[_0x1e2565]){const {actions:_0xaef03d,objectType:_0x3c254d}=_0x1c1197[_0x1e2565][_0x20f4a2],_0x26bd72=[...new Set(_0xaef03d)];_0x1b3776[_0x7cb3d2(0x3bc)]({'unitID':_0x1e2565,'objectID':_0x20f4a2,'objectType':_0x3c254d,'actions':_0x26bd72});}return new z[(_0x7cb3d2(0x2d6))](_0x7cb3d2(0x4b7),_0x1888fa,{'headers':_0x67fcc2['headers'],'withCredentials':_0x67fcc2[_0x7cb3d2(0x3f2)],'responseType':_0x67fcc2[_0x7cb3d2(0x508)],'body':{'requests':_0x1b3776}});}},{'distributeResult'(_0x3bd464,_0x50457d){const _0x190609=_0x556677,{objectActions:_0x5efeb2}=_0x3bd464;return _0x50457d[_0x190609(0x4db)](_0x17d89c=>{const _0x333b04=_0x190609,{unitID:_0x206151,objectID:_0x237fde,actions:_0x26280f}=_0x17d89c,_0x2dc7c9=_0x5efeb2[_0x333b04(0x58b)](_0x3992e1=>_0x3992e1[_0x333b04(0x553)]===_0x206151&&_0x3992e1[_0x333b04(0x1bc)]===_0x237fde),_0x2e3313=_0x26280f[_0x333b04(0x4db)](_0x8b3448=>_0x2dc7c9==null?void 0x0:_0x2dc7c9['actions'][_0x333b04(0x58b)](_0x54a2eb=>_0x54a2eb[_0x333b04(0x5be)]===_0x8b3448))['filter'](_0x1cea87=>!!_0x1cea87);return{'config':_0x17d89c,'result':{'actions':_0x2e3313,'error':_0x3bd464[_0x333b04(0x27a)]}};});}})}));}[_0x29ff00(0x523)](){const _0x48c388=_0x29ff00;var _0x2f2999,_0x5e56a0;const _0x33aa43=this[_0x48c388(0x4ea)][_0x48c388(0x1ea)](Ut),_0x1f4233=this[_0x48c388(0x4ea)][_0x48c388(0x1ea)](Q);return(_0x5e56a0=(_0x2f2999=_0x1f4233==null?void 0x0:_0x1f4233['authzUrl'])!=null?_0x2f2999:_0x33aa43)!=null?_0x5e56a0:ur;}async[_0x29ff00(0x3f7)](_0x30ef72){const _0x46e691=_0x29ff00,_0x22c525=this[_0x46e691(0x523)]()+'/'+_0x30ef72[_0x46e691(0x64c)]+_0x46e691(0x322);return(await this['_HTTPService'][_0x46e691(0x515)](_0x22c525,{'body':_0x30ef72}))[_0x46e691(0x55d)]['objectID']||'';}async[_0x29ff00(0x536)](_0x56b0aa){const _0x3f0b36=_0x29ff00,_0xb91c36=this[_0x3f0b36(0x523)]()+_0x3f0b36(0x4e9);return(await this[_0x3f0b36(0x539)][_0x3f0b36(0x515)](_0xb91c36,{'body':_0x56b0aa}))[_0x3f0b36(0x55d)][_0x3f0b36(0x650)];}async[_0x29ff00(0x551)](_0x59f7af){const _0x3085f6=_0x29ff00,_0x47f05a=this[_0x3085f6(0x523)]()+'/'+_0x59f7af[_0x3085f6(0x64c)]+_0x3085f6(0x4f7)+_0x59f7af[_0x3085f6(0x1bc)];await this[_0x3085f6(0x539)]['put'](_0x47f05a,{'body':_0x59f7af});}async['allowed'](_0x32f92b){const _0x2b9246=_0x29ff00,_0x14c6af=this[_0x2b9246(0x523)]()+'/'+_0x32f92b[_0x2b9246(0x64c)]+'/object/'+_0x32f92b[_0x2b9246(0x1bc)]+_0x2b9246(0x5d5);return(await this[_0x2b9246(0x539)][_0x2b9246(0x515)](_0x14c6af,{'body':_0x32f92b}))[_0x2b9246(0x55d)][_0x2b9246(0x4fc)];}async['batchAllowed'](_0x1afbd1){const _0x1bdae3=_0x29ff00,_0x56cd4b=this[_0x1bdae3(0x523)]()+'/-/object/-/batch_allowed';return(await this[_0x1bdae3(0x539)][_0x1bdae3(0x515)](_0x56cd4b,{'body':{'requests':_0x1afbd1}}))[_0x1bdae3(0x55d)][_0x1bdae3(0x60e)];}async[_0x29ff00(0x593)](_0x4c29bd){const _0x45e343=_0x29ff00,_0x41e7a3=this[_0x45e343(0x523)]()+'/'+_0x4c29bd[_0x45e343(0x64c)]+_0x45e343(0x46c),_0x164f56=await this[_0x45e343(0x539)]['post'](_0x41e7a3,{'body':_0x4c29bd});return{'roles':_0x164f56[_0x45e343(0x55d)]['roles'],'actions':_0x164f56[_0x45e343(0x55d)][_0x45e343(0x4fc)]};}async[_0x29ff00(0x207)](_0xbb1f88){const _0x1a3b45=_0x29ff00,_0x5cca23=this[_0x1a3b45(0x523)]()+'/collaborator';await this['_HTTPService'][_0x1a3b45(0x3dc)](_0x5cca23,{'params':{'collaboratorID':_0xbb1f88[_0x1a3b45(0x2f7)],'objectID':_0xbb1f88[_0x1a3b45(0x1bc)],'unitID':_0xbb1f88[_0x1a3b45(0x553)]}});}async[_0x29ff00(0x682)](_0x3bec5e){const _0x161459=_0x29ff00,_0xb7c7e8=this[_0x161459(0x523)]()+_0x161459(0x555);await this[_0x161459(0x539)]['patch'](_0xb7c7e8,{'body':_0x3bec5e});}async[_0x29ff00(0x623)](_0x4a9d48){const _0x5c1ad4=_0x29ff00,_0x2b219a=this[_0x5c1ad4(0x523)]()+'/collaborator';await this[_0x5c1ad4(0x539)][_0x5c1ad4(0x515)](_0x2b219a,{'body':_0x4a9d48});}async[_0x29ff00(0x577)](_0x53a230){const _0x55f7ba=_0x29ff00,_0x370327=this[_0x55f7ba(0x523)]()+_0x55f7ba(0x555);return(await this[_0x55f7ba(0x539)][_0x55f7ba(0x2ef)](_0x370327,{'params':{'objectID':_0x53a230[_0x55f7ba(0x1bc)],'unitID':_0x53a230['unitID']}}))[_0x55f7ba(0x55d)][_0x55f7ba(0x65c)];}async['putCollaborators'](_0x438310){const _0x5d81cb=_0x29ff00,_0x218353=this[_0x5d81cb(0x523)]()+_0x5d81cb(0x555);await this[_0x5d81cb(0x539)][_0x5d81cb(0x4d1)](_0x218353,{'body':_0x438310});}},exports[_0x29ff00(0x5ee)]=_r([Gt(0x0,a[_0x29ff00(0x493)](z['HTTPService'])),Gt(0x1,a['Inject'](a[_0x29ff00(0x64d)]))],exports[_0x29ff00(0x5ee)]);var Di={'exports':{}};function dr(_0x4b4c72){const _0xb2980d=_0x29ff00;throw new Error(_0xb2980d(0x364)+_0x4b4c72+_0xb2980d(0x37e));}var lt={'exports':{}},Yt;function oe(){return Yt||(Yt=0x1,function(_0x241c03,_0xf167e7){(function(_0x21bda6,_0x323b4c){const _0x158b8a=_0x2f26;_0x241c03[_0x158b8a(0x5a4)]=_0x323b4c();}(Z,function(){var _0x2db34b=_0x2db34b||function(_0x325ee7,_0xc87387){const _0x3ca720=_0x2f26;var _0x281cd8;if(typeof window<'u'&&window['crypto']&&(_0x281cd8=window[_0x3ca720(0x251)]),typeof self<'u'&&self[_0x3ca720(0x251)]&&(_0x281cd8=self[_0x3ca720(0x251)]),typeof globalThis<'u'&&globalThis[_0x3ca720(0x251)]&&(_0x281cd8=globalThis[_0x3ca720(0x251)]),!_0x281cd8&&typeof window<'u'&&window[_0x3ca720(0x2e4)]&&(_0x281cd8=window[_0x3ca720(0x2e4)]),!_0x281cd8&&typeof Z<'u'&&Z[_0x3ca720(0x251)]&&(_0x281cd8=Z[_0x3ca720(0x251)]),!_0x281cd8&&typeof dr=='function')try{_0x281cd8=require(_0x3ca720(0x251));}catch{}var _0x343d96=function(){const _0x566297=_0x3ca720;if(_0x281cd8){if(typeof _0x281cd8[_0x566297(0x227)]=='function')try{return _0x281cd8['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x281cd8[_0x566297(0x5bd)]==_0x566297(0x5a8))try{return _0x281cd8[_0x566297(0x5bd)](0x4)['readInt32LE']();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x3e13cd=Object[_0x3ca720(0x3f7)]||(function(){function _0x2cff7c(){}return function(_0x31d5c4){const _0x84fd94=_0x2f26;var _0x3ed1c0;return _0x2cff7c[_0x84fd94(0x1fe)]=_0x31d5c4,_0x3ed1c0=new _0x2cff7c(),_0x2cff7c[_0x84fd94(0x1fe)]=null,_0x3ed1c0;};}()),_0x20e8b5={},_0x22b020=_0x20e8b5['lib']={},_0x206e86=_0x22b020['Base']=(function(){return{'extend':function(_0x37d118){const _0xd68eaf=_0x2f26;var _0x4bd36c=_0x3e13cd(this);return _0x37d118&&_0x4bd36c['mixIn'](_0x37d118),(!_0x4bd36c[_0xd68eaf(0x5d7)](_0xd68eaf(0x334))||this['init']===_0x4bd36c[_0xd68eaf(0x334)])&&(_0x4bd36c['init']=function(){const _0x13b182=_0xd68eaf;_0x4bd36c[_0x13b182(0x288)][_0x13b182(0x334)][_0x13b182(0x567)](this,arguments);}),_0x4bd36c[_0xd68eaf(0x334)]['prototype']=_0x4bd36c,_0x4bd36c[_0xd68eaf(0x288)]=this,_0x4bd36c;},'create':function(){const _0x409928=_0x2f26;var _0x58013e=this[_0x409928(0x30f)]();return _0x58013e['init']['apply'](_0x58013e,arguments),_0x58013e;},'init':function(){},'mixIn':function(_0x5d501a){const _0x12e0d6=_0x2f26;for(var _0x4ee2f3 in _0x5d501a)_0x5d501a[_0x12e0d6(0x5d7)](_0x4ee2f3)&&(this[_0x4ee2f3]=_0x5d501a[_0x4ee2f3]);_0x5d501a[_0x12e0d6(0x5d7)](_0x12e0d6(0x3ef))&&(this[_0x12e0d6(0x3ef)]=_0x5d501a[_0x12e0d6(0x3ef)]);},'clone':function(){const _0x4bc286=_0x2f26;return this[_0x4bc286(0x334)][_0x4bc286(0x1fe)]['extend'](this);}};}()),_0x538720=_0x22b020[_0x3ca720(0x1e2)]=_0x206e86[_0x3ca720(0x30f)]({'init':function(_0x483ba6,_0x5bf17d){const _0x45fa82=_0x3ca720;_0x483ba6=this[_0x45fa82(0x1d8)]=_0x483ba6||[],_0x5bf17d!=_0xc87387?this[_0x45fa82(0x45c)]=_0x5bf17d:this[_0x45fa82(0x45c)]=_0x483ba6[_0x45fa82(0x5e7)]*0x4;},'toString':function(_0x5b748a){return(_0x5b748a||_0x25a59b)['stringify'](this);},'concat':function(_0x1e9ff1){const _0x4a1ed8=_0x3ca720;var _0x5085f0=this[_0x4a1ed8(0x1d8)],_0x4e7d63=_0x1e9ff1[_0x4a1ed8(0x1d8)],_0x43570a=this[_0x4a1ed8(0x45c)],_0x3a3b64=_0x1e9ff1['sigBytes'];if(this[_0x4a1ed8(0x53d)](),_0x43570a%0x4)for(var _0xb1970c=0x0;_0xb1970c<_0x3a3b64;_0xb1970c++){var _0x11cf58=_0x4e7d63[_0xb1970c>>>0x2]>>>0x18-_0xb1970c%0x4*0x8&0xff;_0x5085f0[_0x43570a+_0xb1970c>>>0x2]|=_0x11cf58<<0x18-(_0x43570a+_0xb1970c)%0x4*0x8;}else{for(var _0x884496=0x0;_0x884496<_0x3a3b64;_0x884496+=0x4)_0x5085f0[_0x43570a+_0x884496>>>0x2]=_0x4e7d63[_0x884496>>>0x2];}return this['sigBytes']+=_0x3a3b64,this;},'clamp':function(){const _0x5bda82=_0x3ca720;var _0x13c75a=this[_0x5bda82(0x1d8)],_0x43423d=this[_0x5bda82(0x45c)];_0x13c75a[_0x43423d>>>0x2]&=0xffffffff<<0x20-_0x43423d%0x4*0x8,_0x13c75a['length']=_0x325ee7[_0x5bda82(0x588)](_0x43423d/0x4);},'clone':function(){const _0x31b0ef=_0x3ca720;var _0xd0b76b=_0x206e86[_0x31b0ef(0x5c3)][_0x31b0ef(0x1d5)](this);return _0xd0b76b[_0x31b0ef(0x1d8)]=this['words'][_0x31b0ef(0x3bb)](0x0),_0xd0b76b;},'random':function(_0x3bfdfa){const _0x44c5a7=_0x3ca720;for(var _0x15e902=[],_0x56555d=0x0;_0x56555d<_0x3bfdfa;_0x56555d+=0x4)_0x15e902[_0x44c5a7(0x3bc)](_0x343d96());return new _0x538720[(_0x44c5a7(0x334))](_0x15e902,_0x3bfdfa);}}),_0x1f83cb=_0x20e8b5[_0x3ca720(0x38e)]={},_0x25a59b=_0x1f83cb['Hex']={'stringify':function(_0x32ca31){const _0x111872=_0x3ca720;for(var _0x6d6e63=_0x32ca31['words'],_0x26e868=_0x32ca31['sigBytes'],_0x5a7a32=[],_0x325d74=0x0;_0x325d74<_0x26e868;_0x325d74++){var _0x2a9835=_0x6d6e63[_0x325d74>>>0x2]>>>0x18-_0x325d74%0x4*0x8&0xff;_0x5a7a32[_0x111872(0x3bc)]((_0x2a9835>>>0x4)[_0x111872(0x3ef)](0x10)),_0x5a7a32['push']((_0x2a9835&0xf)['toString'](0x10));}return _0x5a7a32[_0x111872(0x3fc)]('');},'parse':function(_0x34a8ea){const _0xdf04fc=_0x3ca720;for(var _0x40de82=_0x34a8ea[_0xdf04fc(0x5e7)],_0x420bf8=[],_0x52283a=0x0;_0x52283a<_0x40de82;_0x52283a+=0x2)_0x420bf8[_0x52283a>>>0x3]|=parseInt(_0x34a8ea[_0xdf04fc(0x384)](_0x52283a,0x2),0x10)<<0x18-_0x52283a%0x8*0x4;return new _0x538720['init'](_0x420bf8,_0x40de82/0x2);}},_0x40c008=_0x1f83cb[_0x3ca720(0x3d5)]={'stringify':function(_0xc926bf){const _0x4390a9=_0x3ca720;for(var _0x23566b=_0xc926bf[_0x4390a9(0x1d8)],_0x2d5571=_0xc926bf[_0x4390a9(0x45c)],_0x5d6665=[],_0x465a49=0x0;_0x465a49<_0x2d5571;_0x465a49++){var _0x12ad94=_0x23566b[_0x465a49>>>0x2]>>>0x18-_0x465a49%0x4*0x8&0xff;_0x5d6665[_0x4390a9(0x3bc)](String[_0x4390a9(0x1df)](_0x12ad94));}return _0x5d6665['join']('');},'parse':function(_0x2029c4){const _0xc2ac02=_0x3ca720;for(var _0x5e4bed=_0x2029c4[_0xc2ac02(0x5e7)],_0x4792de=[],_0x203280=0x0;_0x203280<_0x5e4bed;_0x203280++)_0x4792de[_0x203280>>>0x2]|=(_0x2029c4[_0xc2ac02(0x409)](_0x203280)&0xff)<<0x18-_0x203280%0x4*0x8;return new _0x538720[(_0xc2ac02(0x334))](_0x4792de,_0x5e4bed);}},_0x2ef613=_0x1f83cb[_0x3ca720(0x3e6)]={'stringify':function(_0x5d73ec){const _0x1b3218=_0x3ca720;try{return decodeURIComponent(escape(_0x40c008[_0x1b3218(0x65e)](_0x5d73ec)));}catch{throw new Error(_0x1b3218(0x67b));}},'parse':function(_0x23031d){return _0x40c008['parse'](unescape(encodeURIComponent(_0x23031d)));}},_0x2abd73=_0x22b020[_0x3ca720(0x41e)]=_0x206e86[_0x3ca720(0x30f)]({'reset':function(){const _0x491409=_0x3ca720;this[_0x491409(0x461)]=new _0x538720['init'](),this['_nDataBytes']=0x0;},'_append':function(_0x4efaab){const _0x24b33a=_0x3ca720;typeof _0x4efaab=='string'&&(_0x4efaab=_0x2ef613['parse'](_0x4efaab)),this[_0x24b33a(0x461)][_0x24b33a(0x2c9)](_0x4efaab),this[_0x24b33a(0x208)]+=_0x4efaab[_0x24b33a(0x45c)];},'_process':function(_0x304c6c){const _0x1c8cc1=_0x3ca720;var _0x4956ea,_0x472afa=this[_0x1c8cc1(0x461)],_0x3f4235=_0x472afa[_0x1c8cc1(0x1d8)],_0x64f385=_0x472afa[_0x1c8cc1(0x45c)],_0x3ef128=this['blockSize'],_0x249582=_0x3ef128*0x4,_0xf9a2b4=_0x64f385/_0x249582;_0x304c6c?_0xf9a2b4=_0x325ee7['ceil'](_0xf9a2b4):_0xf9a2b4=_0x325ee7['max']((_0xf9a2b4|0x0)-this[_0x1c8cc1(0x54a)],0x0);var _0xf05f80=_0xf9a2b4*_0x3ef128,_0x584e08=_0x325ee7[_0x1c8cc1(0x3b8)](_0xf05f80*0x4,_0x64f385);if(_0xf05f80){for(var _0x559af0=0x0;_0x559af0<_0xf05f80;_0x559af0+=_0x3ef128)this[_0x1c8cc1(0x687)](_0x3f4235,_0x559af0);_0x4956ea=_0x3f4235[_0x1c8cc1(0x354)](0x0,_0xf05f80),_0x472afa[_0x1c8cc1(0x45c)]-=_0x584e08;}return new _0x538720['init'](_0x4956ea,_0x584e08);},'clone':function(){const _0x30c5dc=_0x3ca720;var _0xdfe8ff=_0x206e86[_0x30c5dc(0x5c3)][_0x30c5dc(0x1d5)](this);return _0xdfe8ff[_0x30c5dc(0x461)]=this[_0x30c5dc(0x461)][_0x30c5dc(0x5c3)](),_0xdfe8ff;},'_minBufferSize':0x0});_0x22b020[_0x3ca720(0x545)]=_0x2abd73[_0x3ca720(0x30f)]({'cfg':_0x206e86[_0x3ca720(0x30f)](),'init':function(_0xd0f65a){const _0x201a9b=_0x3ca720;this[_0x201a9b(0x503)]=this[_0x201a9b(0x503)][_0x201a9b(0x30f)](_0xd0f65a),this[_0x201a9b(0x29c)]();},'reset':function(){const _0x4a9f3f=_0x3ca720;_0x2abd73[_0x4a9f3f(0x29c)][_0x4a9f3f(0x1d5)](this),this['_doReset']();},'update':function(_0x37767e){const _0x9c9640=_0x3ca720;return this[_0x9c9640(0x685)](_0x37767e),this[_0x9c9640(0x392)](),this;},'finalize':function(_0x35e238){const _0x481104=_0x3ca720;_0x35e238&&this[_0x481104(0x685)](_0x35e238);var _0x2316a5=this[_0x481104(0x3a9)]();return _0x2316a5;},'blockSize':0x10,'_createHelper':function(_0x1a47f3){return function(_0x1c9af7,_0x58c651){const _0x11a44e=_0x2f26;return new _0x1a47f3[(_0x11a44e(0x334))](_0x58c651)['finalize'](_0x1c9af7);};},'_createHmacHelper':function(_0x545028){return function(_0x509710,_0x538781){const _0x427894=_0x2f26;return new _0x108f09[(_0x427894(0x663))][(_0x427894(0x334))](_0x545028,_0x538781)[_0x427894(0x349)](_0x509710);};}});var _0x108f09=_0x20e8b5['algo']={};return _0x20e8b5;}(Math);return _0x2db34b;}));}(lt)),lt['exports'];}var ht={'exports':{}},Kt;function Pi(){const _0x2f0b11=_0x29ff00;return Kt||(Kt=0x1,function(_0x5d87a8,_0x1097f1){(function(_0x52ab83,_0x295fc2){const _0x3dd8fa=_0x2f26;_0x5d87a8[_0x3dd8fa(0x5a4)]=_0x295fc2(oe());}(Z,function(_0x4e1854){const _0x8f6781=_0x2f26;return(function(){const _0x2b4b25=_0x2f26;var _0x2c62ef=_0x4e1854,_0x3b6f3b=_0x2c62ef['lib'],_0x5c75b3=_0x3b6f3b[_0x2b4b25(0x1e2)],_0x44cb66=_0x2c62ef[_0x2b4b25(0x38e)];_0x44cb66[_0x2b4b25(0x234)]={'stringify':function(_0x6c139f){const _0x23b323=_0x2b4b25;var _0x5a32ce=_0x6c139f[_0x23b323(0x1d8)],_0x32688d=_0x6c139f['sigBytes'],_0x23630f=this['_map'];_0x6c139f['clamp']();for(var _0x417b41=[],_0x5dd4ca=0x0;_0x5dd4ca<_0x32688d;_0x5dd4ca+=0x3)for(var _0x4355b6=_0x5a32ce[_0x5dd4ca>>>0x2]>>>0x18-_0x5dd4ca%0x4*0x8&0xff,_0x4b4a3f=_0x5a32ce[_0x5dd4ca+0x1>>>0x2]>>>0x18-(_0x5dd4ca+0x1)%0x4*0x8&0xff,_0x36734b=_0x5a32ce[_0x5dd4ca+0x2>>>0x2]>>>0x18-(_0x5dd4ca+0x2)%0x4*0x8&0xff,_0x2f99d2=_0x4355b6<<0x10|_0x4b4a3f<<0x8|_0x36734b,_0x546a7b=0x0;_0x546a7b<0x4&&_0x5dd4ca+_0x546a7b*0.75<_0x32688d;_0x546a7b++)_0x417b41[_0x23b323(0x3bc)](_0x23630f[_0x23b323(0x46e)](_0x2f99d2>>>0x6*(0x3-_0x546a7b)&0x3f));var _0x2bcb69=_0x23630f[_0x23b323(0x46e)](0x40);if(_0x2bcb69){for(;_0x417b41[_0x23b323(0x5e7)]%0x4;)_0x417b41[_0x23b323(0x3bc)](_0x2bcb69);}return _0x417b41[_0x23b323(0x3fc)]('');},'parse':function(_0x25c103){const _0x3f1a44=_0x2b4b25;var _0x2ce716=_0x25c103[_0x3f1a44(0x5e7)],_0x421c82=this['_map'],_0x3105f2=this['_reverseMap'];if(!_0x3105f2){_0x3105f2=this[_0x3f1a44(0x538)]=[];for(var _0x32e348=0x0;_0x32e348<_0x421c82[_0x3f1a44(0x5e7)];_0x32e348++)_0x3105f2[_0x421c82['charCodeAt'](_0x32e348)]=_0x32e348;}var _0x1c4b7e=_0x421c82['charAt'](0x40);if(_0x1c4b7e){var _0x7b19=_0x25c103['indexOf'](_0x1c4b7e);_0x7b19!==-0x1&&(_0x2ce716=_0x7b19);}return _0x52fb84(_0x25c103,_0x2ce716,_0x3105f2);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x52fb84(_0x2136be,_0x48bc0c,_0x2046b5){const _0xd9e55b=_0x2b4b25;for(var _0x42fe6c=[],_0x4d9120=0x0,_0x22b6e0=0x0;_0x22b6e0<_0x48bc0c;_0x22b6e0++)if(_0x22b6e0%0x4){var _0x2ddbbc=_0x2046b5[_0x2136be['charCodeAt'](_0x22b6e0-0x1)]<<_0x22b6e0%0x4*0x2,_0x481c4c=_0x2046b5[_0x2136be[_0xd9e55b(0x409)](_0x22b6e0)]>>>0x6-_0x22b6e0%0x4*0x2,_0x9d83f3=_0x2ddbbc|_0x481c4c;_0x42fe6c[_0x4d9120>>>0x2]|=_0x9d83f3<<0x18-_0x4d9120%0x4*0x8,_0x4d9120++;}return _0x5c75b3[_0xd9e55b(0x3f7)](_0x42fe6c,_0x4d9120);}}()),_0x4e1854[_0x8f6781(0x38e)][_0x8f6781(0x234)];}));}(ht)),ht[_0x2f0b11(0x5a4)];}var _t={'exports':{}},qt;function fr(){const _0x4a7727=_0x29ff00;return qt||(qt=0x1,function(_0x2eaddb,_0x424495){(function(_0x191767,_0x592d8a){const _0x61252=_0x2f26;_0x2eaddb[_0x61252(0x5a4)]=_0x592d8a(oe());}(Z,function(_0x31392f){return function(_0x3a8a56){const _0x3ffd45=_0x2f26;var _0x24c0f4=_0x31392f,_0x15c1e6=_0x24c0f4[_0x3ffd45(0x530)],_0x47c9d9=_0x15c1e6[_0x3ffd45(0x1e2)],_0x2d6a18=_0x15c1e6[_0x3ffd45(0x545)],_0x2987e9=_0x24c0f4[_0x3ffd45(0x395)],_0x3d0018=[];(function(){const _0xee77e2=_0x3ffd45;for(var _0xa54a41=0x0;_0xa54a41<0x40;_0xa54a41++)_0x3d0018[_0xa54a41]=_0x3a8a56[_0xee77e2(0x3ce)](_0x3a8a56[_0xee77e2(0x525)](_0xa54a41+0x1))*0x100000000|0x0;}());var _0x25563c=_0x2987e9[_0x3ffd45(0x37b)]=_0x2d6a18[_0x3ffd45(0x30f)]({'_doReset':function(){const _0x105e50=_0x3ffd45;this[_0x105e50(0x407)]=new _0x47c9d9[(_0x105e50(0x334))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x303b84,_0x35d582){const _0xfd183b=_0x3ffd45;for(var _0x424761=0x0;_0x424761<0x10;_0x424761++){var _0x1f773e=_0x35d582+_0x424761,_0xe9d34f=_0x303b84[_0x1f773e];_0x303b84[_0x1f773e]=(_0xe9d34f<<0x8|_0xe9d34f>>>0x18)&0xff00ff|(_0xe9d34f<<0x18|_0xe9d34f>>>0x8)&0xff00ff00;}var _0x43a6b0=this[_0xfd183b(0x407)][_0xfd183b(0x1d8)],_0x280dec=_0x303b84[_0x35d582+0x0],_0xef9dd6=_0x303b84[_0x35d582+0x1],_0x349a49=_0x303b84[_0x35d582+0x2],_0x192f64=_0x303b84[_0x35d582+0x3],_0x4d1e94=_0x303b84[_0x35d582+0x4],_0x3fd2c8=_0x303b84[_0x35d582+0x5],_0x23a51a=_0x303b84[_0x35d582+0x6],_0x4dabf4=_0x303b84[_0x35d582+0x7],_0x2df0a0=_0x303b84[_0x35d582+0x8],_0x50f0cf=_0x303b84[_0x35d582+0x9],_0x41386e=_0x303b84[_0x35d582+0xa],_0x416e43=_0x303b84[_0x35d582+0xb],_0x181fca=_0x303b84[_0x35d582+0xc],_0x47a452=_0x303b84[_0x35d582+0xd],_0x3a1633=_0x303b84[_0x35d582+0xe],_0x1cccf6=_0x303b84[_0x35d582+0xf],_0x38669d=_0x43a6b0[0x0],_0xbe71e8=_0x43a6b0[0x1],_0x19a468=_0x43a6b0[0x2],_0x3272d6=_0x43a6b0[0x3];_0x38669d=_0x561336(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x280dec,0x7,_0x3d0018[0x0]),_0x3272d6=_0x561336(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0xef9dd6,0xc,_0x3d0018[0x1]),_0x19a468=_0x561336(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x349a49,0x11,_0x3d0018[0x2]),_0xbe71e8=_0x561336(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x192f64,0x16,_0x3d0018[0x3]),_0x38669d=_0x561336(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x4d1e94,0x7,_0x3d0018[0x4]),_0x3272d6=_0x561336(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x3fd2c8,0xc,_0x3d0018[0x5]),_0x19a468=_0x561336(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x23a51a,0x11,_0x3d0018[0x6]),_0xbe71e8=_0x561336(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x4dabf4,0x16,_0x3d0018[0x7]),_0x38669d=_0x561336(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x2df0a0,0x7,_0x3d0018[0x8]),_0x3272d6=_0x561336(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x50f0cf,0xc,_0x3d0018[0x9]),_0x19a468=_0x561336(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x41386e,0x11,_0x3d0018[0xa]),_0xbe71e8=_0x561336(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x416e43,0x16,_0x3d0018[0xb]),_0x38669d=_0x561336(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x181fca,0x7,_0x3d0018[0xc]),_0x3272d6=_0x561336(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x47a452,0xc,_0x3d0018[0xd]),_0x19a468=_0x561336(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x3a1633,0x11,_0x3d0018[0xe]),_0xbe71e8=_0x561336(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x1cccf6,0x16,_0x3d0018[0xf]),_0x38669d=_0x3d64ec(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0xef9dd6,0x5,_0x3d0018[0x10]),_0x3272d6=_0x3d64ec(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x23a51a,0x9,_0x3d0018[0x11]),_0x19a468=_0x3d64ec(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x416e43,0xe,_0x3d0018[0x12]),_0xbe71e8=_0x3d64ec(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x280dec,0x14,_0x3d0018[0x13]),_0x38669d=_0x3d64ec(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x3fd2c8,0x5,_0x3d0018[0x14]),_0x3272d6=_0x3d64ec(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x41386e,0x9,_0x3d0018[0x15]),_0x19a468=_0x3d64ec(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x1cccf6,0xe,_0x3d0018[0x16]),_0xbe71e8=_0x3d64ec(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x4d1e94,0x14,_0x3d0018[0x17]),_0x38669d=_0x3d64ec(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x50f0cf,0x5,_0x3d0018[0x18]),_0x3272d6=_0x3d64ec(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x3a1633,0x9,_0x3d0018[0x19]),_0x19a468=_0x3d64ec(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x192f64,0xe,_0x3d0018[0x1a]),_0xbe71e8=_0x3d64ec(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x2df0a0,0x14,_0x3d0018[0x1b]),_0x38669d=_0x3d64ec(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x47a452,0x5,_0x3d0018[0x1c]),_0x3272d6=_0x3d64ec(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x349a49,0x9,_0x3d0018[0x1d]),_0x19a468=_0x3d64ec(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x4dabf4,0xe,_0x3d0018[0x1e]),_0xbe71e8=_0x3d64ec(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x181fca,0x14,_0x3d0018[0x1f]),_0x38669d=_0xea0b83(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x3fd2c8,0x4,_0x3d0018[0x20]),_0x3272d6=_0xea0b83(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x2df0a0,0xb,_0x3d0018[0x21]),_0x19a468=_0xea0b83(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x416e43,0x10,_0x3d0018[0x22]),_0xbe71e8=_0xea0b83(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x3a1633,0x17,_0x3d0018[0x23]),_0x38669d=_0xea0b83(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0xef9dd6,0x4,_0x3d0018[0x24]),_0x3272d6=_0xea0b83(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x4d1e94,0xb,_0x3d0018[0x25]),_0x19a468=_0xea0b83(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x4dabf4,0x10,_0x3d0018[0x26]),_0xbe71e8=_0xea0b83(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x41386e,0x17,_0x3d0018[0x27]),_0x38669d=_0xea0b83(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x47a452,0x4,_0x3d0018[0x28]),_0x3272d6=_0xea0b83(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x280dec,0xb,_0x3d0018[0x29]),_0x19a468=_0xea0b83(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x192f64,0x10,_0x3d0018[0x2a]),_0xbe71e8=_0xea0b83(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x23a51a,0x17,_0x3d0018[0x2b]),_0x38669d=_0xea0b83(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x50f0cf,0x4,_0x3d0018[0x2c]),_0x3272d6=_0xea0b83(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x181fca,0xb,_0x3d0018[0x2d]),_0x19a468=_0xea0b83(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x1cccf6,0x10,_0x3d0018[0x2e]),_0xbe71e8=_0xea0b83(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x349a49,0x17,_0x3d0018[0x2f]),_0x38669d=_0x5aa0a0(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x280dec,0x6,_0x3d0018[0x30]),_0x3272d6=_0x5aa0a0(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x4dabf4,0xa,_0x3d0018[0x31]),_0x19a468=_0x5aa0a0(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x3a1633,0xf,_0x3d0018[0x32]),_0xbe71e8=_0x5aa0a0(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x3fd2c8,0x15,_0x3d0018[0x33]),_0x38669d=_0x5aa0a0(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x181fca,0x6,_0x3d0018[0x34]),_0x3272d6=_0x5aa0a0(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x192f64,0xa,_0x3d0018[0x35]),_0x19a468=_0x5aa0a0(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x41386e,0xf,_0x3d0018[0x36]),_0xbe71e8=_0x5aa0a0(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0xef9dd6,0x15,_0x3d0018[0x37]),_0x38669d=_0x5aa0a0(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x2df0a0,0x6,_0x3d0018[0x38]),_0x3272d6=_0x5aa0a0(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x1cccf6,0xa,_0x3d0018[0x39]),_0x19a468=_0x5aa0a0(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x23a51a,0xf,_0x3d0018[0x3a]),_0xbe71e8=_0x5aa0a0(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x47a452,0x15,_0x3d0018[0x3b]),_0x38669d=_0x5aa0a0(_0x38669d,_0xbe71e8,_0x19a468,_0x3272d6,_0x4d1e94,0x6,_0x3d0018[0x3c]),_0x3272d6=_0x5aa0a0(_0x3272d6,_0x38669d,_0xbe71e8,_0x19a468,_0x416e43,0xa,_0x3d0018[0x3d]),_0x19a468=_0x5aa0a0(_0x19a468,_0x3272d6,_0x38669d,_0xbe71e8,_0x349a49,0xf,_0x3d0018[0x3e]),_0xbe71e8=_0x5aa0a0(_0xbe71e8,_0x19a468,_0x3272d6,_0x38669d,_0x50f0cf,0x15,_0x3d0018[0x3f]),_0x43a6b0[0x0]=_0x43a6b0[0x0]+_0x38669d|0x0,_0x43a6b0[0x1]=_0x43a6b0[0x1]+_0xbe71e8|0x0,_0x43a6b0[0x2]=_0x43a6b0[0x2]+_0x19a468|0x0,_0x43a6b0[0x3]=_0x43a6b0[0x3]+_0x3272d6|0x0;},'_doFinalize':function(){const _0x2a63d6=_0x3ffd45;var _0x52cfe3=this[_0x2a63d6(0x461)],_0x150e35=_0x52cfe3[_0x2a63d6(0x1d8)],_0x329f34=this['_nDataBytes']*0x8,_0x27208b=_0x52cfe3['sigBytes']*0x8;_0x150e35[_0x27208b>>>0x5]|=0x80<<0x18-_0x27208b%0x20;var _0x5bf1ef=_0x3a8a56[_0x2a63d6(0x3f8)](_0x329f34/0x100000000),_0x547edd=_0x329f34;_0x150e35[(_0x27208b+0x40>>>0x9<<0x4)+0xf]=(_0x5bf1ef<<0x8|_0x5bf1ef>>>0x18)&0xff00ff|(_0x5bf1ef<<0x18|_0x5bf1ef>>>0x8)&0xff00ff00,_0x150e35[(_0x27208b+0x40>>>0x9<<0x4)+0xe]=(_0x547edd<<0x8|_0x547edd>>>0x18)&0xff00ff|(_0x547edd<<0x18|_0x547edd>>>0x8)&0xff00ff00,_0x52cfe3[_0x2a63d6(0x45c)]=(_0x150e35[_0x2a63d6(0x5e7)]+0x1)*0x4,this[_0x2a63d6(0x392)]();for(var _0x329f92=this[_0x2a63d6(0x407)],_0x4b54f4=_0x329f92[_0x2a63d6(0x1d8)],_0xe1ce9=0x0;_0xe1ce9<0x4;_0xe1ce9++){var _0x191e20=_0x4b54f4[_0xe1ce9];_0x4b54f4[_0xe1ce9]=(_0x191e20<<0x8|_0x191e20>>>0x18)&0xff00ff|(_0x191e20<<0x18|_0x191e20>>>0x8)&0xff00ff00;}return _0x329f92;},'clone':function(){const _0x3d4459=_0x3ffd45;var _0x3010bf=_0x2d6a18[_0x3d4459(0x5c3)][_0x3d4459(0x1d5)](this);return _0x3010bf['_hash']=this[_0x3d4459(0x407)]['clone'](),_0x3010bf;}});function _0x561336(_0x5b5981,_0x18538d,_0x1a81c5,_0x208301,_0x3da583,_0x560849,_0x501f6c){var _0x1fc38c=_0x5b5981+(_0x18538d&_0x1a81c5|~_0x18538d&_0x208301)+_0x3da583+_0x501f6c;return(_0x1fc38c<<_0x560849|_0x1fc38c>>>0x20-_0x560849)+_0x18538d;}function _0x3d64ec(_0x31a52c,_0x3c2813,_0x3c4a67,_0x40280a,_0x784dc,_0x173add,_0x18bfd1){var _0x499065=_0x31a52c+(_0x3c2813&_0x40280a|_0x3c4a67&~_0x40280a)+_0x784dc+_0x18bfd1;return(_0x499065<<_0x173add|_0x499065>>>0x20-_0x173add)+_0x3c2813;}function _0xea0b83(_0x3276cd,_0x399729,_0x2f4d7f,_0x2335d7,_0x19cb32,_0x57e22b,_0x439aae){var _0x1fc1b4=_0x3276cd+(_0x399729^_0x2f4d7f^_0x2335d7)+_0x19cb32+_0x439aae;return(_0x1fc1b4<<_0x57e22b|_0x1fc1b4>>>0x20-_0x57e22b)+_0x399729;}function _0x5aa0a0(_0x4b83f5,_0x2590a0,_0x415373,_0x5aa68f,_0x1b5765,_0x97d153,_0xfa9af6){var _0x24a783=_0x4b83f5+(_0x415373^(_0x2590a0|~_0x5aa68f))+_0x1b5765+_0xfa9af6;return(_0x24a783<<_0x97d153|_0x24a783>>>0x20-_0x97d153)+_0x2590a0;}_0x24c0f4[_0x3ffd45(0x37b)]=_0x2d6a18[_0x3ffd45(0x4fe)](_0x25563c),_0x24c0f4[_0x3ffd45(0x560)]=_0x2d6a18[_0x3ffd45(0x412)](_0x25563c);}(Math),_0x31392f['MD5'];}));}(_t)),_t[_0x4a7727(0x5a4)];}var ut={'exports':{}},dt={'exports':{}},zt;function vr(){return zt||(zt=0x1,function(_0x2c5464,_0x15dd4e){(function(_0xd0cc33,_0x4f7fda){_0x2c5464['exports']=_0x4f7fda(oe());}(Z,function(_0x3c1c7f){const _0x4fc544=_0x2f26;return(function(){const _0x4ac9d7=_0x2f26;var _0x7ef2b7=_0x3c1c7f,_0x32d732=_0x7ef2b7[_0x4ac9d7(0x530)],_0x19c0f4=_0x32d732['WordArray'],_0x144f80=_0x32d732[_0x4ac9d7(0x545)],_0x437ed0=_0x7ef2b7['algo'],_0x5157cc=[],_0x43e654=_0x437ed0[_0x4ac9d7(0x5e0)]=_0x144f80['extend']({'_doReset':function(){const _0x31d671=_0x4ac9d7;this[_0x31d671(0x407)]=new _0x19c0f4[(_0x31d671(0x334))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x27be45,_0x29dd9b){for(var _0x45f95a=this['_hash']['words'],_0x3a1dcd=_0x45f95a[0x0],_0x45e9c3=_0x45f95a[0x1],_0x56731e=_0x45f95a[0x2],_0x4a116c=_0x45f95a[0x3],_0x2505c6=_0x45f95a[0x4],_0x1fefa9=0x0;_0x1fefa9<0x50;_0x1fefa9++){if(_0x1fefa9<0x10)_0x5157cc[_0x1fefa9]=_0x27be45[_0x29dd9b+_0x1fefa9]|0x0;else{var _0x2a6e32=_0x5157cc[_0x1fefa9-0x3]^_0x5157cc[_0x1fefa9-0x8]^_0x5157cc[_0x1fefa9-0xe]^_0x5157cc[_0x1fefa9-0x10];_0x5157cc[_0x1fefa9]=_0x2a6e32<<0x1|_0x2a6e32>>>0x1f;}var _0x1528bc=(_0x3a1dcd<<0x5|_0x3a1dcd>>>0x1b)+_0x2505c6+_0x5157cc[_0x1fefa9];_0x1fefa9<0x14?_0x1528bc+=(_0x45e9c3&_0x56731e|~_0x45e9c3&_0x4a116c)+0x5a827999:_0x1fefa9<0x28?_0x1528bc+=(_0x45e9c3^_0x56731e^_0x4a116c)+0x6ed9eba1:_0x1fefa9<0x3c?_0x1528bc+=(_0x45e9c3&_0x56731e|_0x45e9c3&_0x4a116c|_0x56731e&_0x4a116c)-0x70e44324:_0x1528bc+=(_0x45e9c3^_0x56731e^_0x4a116c)-0x359d3e2a,_0x2505c6=_0x4a116c,_0x4a116c=_0x56731e,_0x56731e=_0x45e9c3<<0x1e|_0x45e9c3>>>0x2,_0x45e9c3=_0x3a1dcd,_0x3a1dcd=_0x1528bc;}_0x45f95a[0x0]=_0x45f95a[0x0]+_0x3a1dcd|0x0,_0x45f95a[0x1]=_0x45f95a[0x1]+_0x45e9c3|0x0,_0x45f95a[0x2]=_0x45f95a[0x2]+_0x56731e|0x0,_0x45f95a[0x3]=_0x45f95a[0x3]+_0x4a116c|0x0,_0x45f95a[0x4]=_0x45f95a[0x4]+_0x2505c6|0x0;},'_doFinalize':function(){const _0xfaf71f=_0x4ac9d7;var _0xb542ef=this['_data'],_0x519757=_0xb542ef[_0xfaf71f(0x1d8)],_0x142d51=this[_0xfaf71f(0x208)]*0x8,_0x2fbce7=_0xb542ef[_0xfaf71f(0x45c)]*0x8;return _0x519757[_0x2fbce7>>>0x5]|=0x80<<0x18-_0x2fbce7%0x20,_0x519757[(_0x2fbce7+0x40>>>0x9<<0x4)+0xe]=Math[_0xfaf71f(0x3f8)](_0x142d51/0x100000000),_0x519757[(_0x2fbce7+0x40>>>0x9<<0x4)+0xf]=_0x142d51,_0xb542ef['sigBytes']=_0x519757['length']*0x4,this[_0xfaf71f(0x392)](),this[_0xfaf71f(0x407)];},'clone':function(){const _0x14becd=_0x4ac9d7;var _0x4d176c=_0x144f80[_0x14becd(0x5c3)][_0x14becd(0x1d5)](this);return _0x4d176c['_hash']=this[_0x14becd(0x407)][_0x14becd(0x5c3)](),_0x4d176c;}});_0x7ef2b7[_0x4ac9d7(0x5e0)]=_0x144f80[_0x4ac9d7(0x4fe)](_0x43e654),_0x7ef2b7[_0x4ac9d7(0x348)]=_0x144f80[_0x4ac9d7(0x412)](_0x43e654);}()),_0x3c1c7f[_0x4fc544(0x5e0)];}));}(dt)),dt['exports'];}var ft={'exports':{}},Xt;function Sr(){return Xt||(Xt=0x1,function(_0x39f1d1,_0x39d3dc){(function(_0x14da53,_0x28e8de){_0x39f1d1['exports']=_0x28e8de(oe());}(Z,function(_0x1d7024){(function(){const _0x18e964=_0x2f26;var _0x300d34=_0x1d7024,_0x4917a0=_0x300d34[_0x18e964(0x530)],_0xa3d089=_0x4917a0[_0x18e964(0x628)],_0x45492a=_0x300d34[_0x18e964(0x38e)],_0x2f3dc0=_0x45492a[_0x18e964(0x3e6)],_0x2b9592=_0x300d34[_0x18e964(0x395)];_0x2b9592[_0x18e964(0x663)]=_0xa3d089[_0x18e964(0x30f)]({'init':function(_0x5ca90d,_0x867aa7){const _0x6aad90=_0x18e964;_0x5ca90d=this[_0x6aad90(0x603)]=new _0x5ca90d['init'](),typeof _0x867aa7==_0x6aad90(0x291)&&(_0x867aa7=_0x2f3dc0['parse'](_0x867aa7));var _0x23e980=_0x5ca90d[_0x6aad90(0x626)],_0x2a7c88=_0x23e980*0x4;_0x867aa7[_0x6aad90(0x45c)]>_0x2a7c88&&(_0x867aa7=_0x5ca90d[_0x6aad90(0x349)](_0x867aa7)),_0x867aa7[_0x6aad90(0x53d)]();for(var _0x3e55bc=this[_0x6aad90(0x4dc)]=_0x867aa7[_0x6aad90(0x5c3)](),_0x31b5a5=this[_0x6aad90(0x2d4)]=_0x867aa7['clone'](),_0x46d938=_0x3e55bc[_0x6aad90(0x1d8)],_0x140348=_0x31b5a5[_0x6aad90(0x1d8)],_0x58b7fa=0x0;_0x58b7fa<_0x23e980;_0x58b7fa++)_0x46d938[_0x58b7fa]^=0x5c5c5c5c,_0x140348[_0x58b7fa]^=0x36363636;_0x3e55bc[_0x6aad90(0x45c)]=_0x31b5a5[_0x6aad90(0x45c)]=_0x2a7c88,this['reset']();},'reset':function(){const _0x164c74=_0x18e964;var _0x125537=this[_0x164c74(0x603)];_0x125537[_0x164c74(0x29c)](),_0x125537[_0x164c74(0x551)](this['_iKey']);},'update':function(_0x1f91ae){const _0x1f49f3=_0x18e964;return this[_0x1f49f3(0x603)][_0x1f49f3(0x551)](_0x1f91ae),this;},'finalize':function(_0x59d9bd){const _0x54ce9f=_0x18e964;var _0x2cb022=this[_0x54ce9f(0x603)],_0x148225=_0x2cb022[_0x54ce9f(0x349)](_0x59d9bd);_0x2cb022[_0x54ce9f(0x29c)]();var _0x2b745b=_0x2cb022[_0x54ce9f(0x349)](this[_0x54ce9f(0x4dc)][_0x54ce9f(0x5c3)]()[_0x54ce9f(0x2c9)](_0x148225));return _0x2b745b;}});}());}));}(ft)),ft['exports'];}var Jt;function wi(){const _0x2e5d80=_0x29ff00;return Jt||(Jt=0x1,function(_0x44e6eb,_0x3045ae){(function(_0x112bb8,_0x476d26,_0x566119){const _0x550b6b=_0x2f26;_0x44e6eb[_0x550b6b(0x5a4)]=_0x476d26(oe(),vr(),Sr());}(Z,function(_0x4826a0){const _0x22fbbb=_0x2f26;return(function(){const _0x21f644=_0x2f26;var _0x26308f=_0x4826a0,_0x1c999b=_0x26308f[_0x21f644(0x530)],_0x563e18=_0x1c999b[_0x21f644(0x628)],_0x275546=_0x1c999b[_0x21f644(0x1e2)],_0x4ba801=_0x26308f[_0x21f644(0x395)],_0x490b2d=_0x4ba801[_0x21f644(0x37b)],_0x215bea=_0x4ba801[_0x21f644(0x669)]=_0x563e18['extend']({'cfg':_0x563e18[_0x21f644(0x30f)]({'keySize':0x80/0x20,'hasher':_0x490b2d,'iterations':0x1}),'init':function(_0x217b59){const _0x229805=_0x21f644;this[_0x229805(0x503)]=this[_0x229805(0x503)]['extend'](_0x217b59);},'compute':function(_0x2b2f3a,_0x1f6fcb){const _0x2947ff=_0x21f644;for(var _0x4abc45,_0x5cd952=this[_0x2947ff(0x503)],_0x2fde64=_0x5cd952[_0x2947ff(0x52f)][_0x2947ff(0x3f7)](),_0x42ea2a=_0x275546[_0x2947ff(0x3f7)](),_0x131751=_0x42ea2a[_0x2947ff(0x1d8)],_0x16a048=_0x5cd952['keySize'],_0x18c5e8=_0x5cd952[_0x2947ff(0x57d)];_0x131751[_0x2947ff(0x5e7)]<_0x16a048;){_0x4abc45&&_0x2fde64[_0x2947ff(0x551)](_0x4abc45),_0x4abc45=_0x2fde64[_0x2947ff(0x551)](_0x2b2f3a)[_0x2947ff(0x349)](_0x1f6fcb),_0x2fde64[_0x2947ff(0x29c)]();for(var _0x55d51e=0x1;_0x55d51e<_0x18c5e8;_0x55d51e++)_0x4abc45=_0x2fde64[_0x2947ff(0x349)](_0x4abc45),_0x2fde64['reset']();_0x42ea2a[_0x2947ff(0x2c9)](_0x4abc45);}return _0x42ea2a[_0x2947ff(0x45c)]=_0x16a048*0x4,_0x42ea2a;}});_0x26308f['EvpKDF']=function(_0x194152,_0x2e24d7,_0x3e7df4){const _0x20a6d4=_0x21f644;return _0x215bea[_0x20a6d4(0x3f7)](_0x3e7df4)['compute'](_0x194152,_0x2e24d7);};}()),_0x4826a0[_0x22fbbb(0x669)];}));}(ut)),ut[_0x2e5d80(0x5a4)];}var vt={'exports':{}},Zt;function Ui(){const _0xf3909b=_0x29ff00;return Zt||(Zt=0x1,function(_0x10a329,_0x4386f3){(function(_0x39785b,_0x13618b,_0x5b9274){_0x10a329['exports']=_0x13618b(oe(),wi());}(Z,function(_0x30bd4f){const _0x165a78=_0x2f26;_0x30bd4f[_0x165a78(0x530)][_0x165a78(0x47c)]||function(_0x7b8458){const _0x116d18=_0x165a78;var _0xea3344=_0x30bd4f,_0x754136=_0xea3344[_0x116d18(0x530)],_0x39796e=_0x754136[_0x116d18(0x628)],_0x2a7950=_0x754136['WordArray'],_0x40acb0=_0x754136[_0x116d18(0x41e)],_0x1ffa57=_0xea3344['enc'];_0x1ffa57['Utf8'];var _0x26d373=_0x1ffa57[_0x116d18(0x234)],_0x16a0f5=_0xea3344['algo'],_0x4ab683=_0x16a0f5[_0x116d18(0x669)],_0x59a483=_0x754136[_0x116d18(0x47c)]=_0x40acb0[_0x116d18(0x30f)]({'cfg':_0x39796e['extend'](),'createEncryptor':function(_0x4963de,_0x1f5fc3){const _0x47e10e=_0x116d18;return this[_0x47e10e(0x3f7)](this[_0x47e10e(0x401)],_0x4963de,_0x1f5fc3);},'createDecryptor':function(_0x2a89c6,_0xb99270){const _0x5bf27b=_0x116d18;return this[_0x5bf27b(0x3f7)](this[_0x5bf27b(0x558)],_0x2a89c6,_0xb99270);},'init':function(_0x407d8e,_0x3bb4e4,_0x4e5a33){const _0x228ddb=_0x116d18;this[_0x228ddb(0x503)]=this['cfg'][_0x228ddb(0x30f)](_0x4e5a33),this[_0x228ddb(0x217)]=_0x407d8e,this['_key']=_0x3bb4e4,this[_0x228ddb(0x29c)]();},'reset':function(){const _0x1a71d5=_0x116d18;_0x40acb0[_0x1a71d5(0x29c)][_0x1a71d5(0x1d5)](this),this[_0x1a71d5(0x297)]();},'process':function(_0x4b4e33){const _0x5f3743=_0x116d18;return this[_0x5f3743(0x685)](_0x4b4e33),this[_0x5f3743(0x392)]();},'finalize':function(_0x2372f2){const _0x570b06=_0x116d18;_0x2372f2&&this[_0x570b06(0x685)](_0x2372f2);var _0x29aad3=this['_doFinalize']();return _0x29aad3;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x54b8c5(_0x476ddd){const _0x2b3706=_0x2f26;return typeof _0x476ddd==_0x2b3706(0x291)?_0x17b682:_0xaf1a0c;}return function(_0x3951d7){return{'encrypt':function(_0x4cbdd2,_0x4b5a37,_0x5f094e){const _0x47340d=_0x2f26;return _0x54b8c5(_0x4b5a37)[_0x47340d(0x442)](_0x3951d7,_0x4cbdd2,_0x4b5a37,_0x5f094e);},'decrypt':function(_0x599fd4,_0x108c43,_0x3d87ee){const _0x4f5475=_0x2f26;return _0x54b8c5(_0x108c43)[_0x4f5475(0x262)](_0x3951d7,_0x599fd4,_0x108c43,_0x3d87ee);}};};}())});_0x754136[_0x116d18(0x57e)]=_0x59a483[_0x116d18(0x30f)]({'_doFinalize':function(){const _0x18d0f9=_0x116d18;var _0x59ddc6=this[_0x18d0f9(0x392)](!0x0);return _0x59ddc6;},'blockSize':0x1});var _0x45bc00=_0xea3344[_0x116d18(0x4ca)]={},_0xc5f7da=_0x754136[_0x116d18(0x658)]=_0x39796e[_0x116d18(0x30f)]({'createEncryptor':function(_0x56fbd9,_0xbf8ed8){const _0x3990e9=_0x116d18;return this[_0x3990e9(0x5a3)][_0x3990e9(0x3f7)](_0x56fbd9,_0xbf8ed8);},'createDecryptor':function(_0x6f2449,_0x10aa5a){const _0xc6b48a=_0x116d18;return this[_0xc6b48a(0x445)][_0xc6b48a(0x3f7)](_0x6f2449,_0x10aa5a);},'init':function(_0x946d87,_0x3b1d7a){const _0x23556e=_0x116d18;this[_0x23556e(0x41a)]=_0x946d87,this[_0x23556e(0x35a)]=_0x3b1d7a;}}),_0x5af990=_0x45bc00[_0x116d18(0x252)]=(function(){const _0x10606a=_0x116d18;var _0x263770=_0xc5f7da[_0x10606a(0x30f)]();_0x263770[_0x10606a(0x5a3)]=_0x263770[_0x10606a(0x30f)]({'processBlock':function(_0x5a2aac,_0x4a2f09){const _0xad5edf=_0x10606a;var _0xef8ac3=this[_0xad5edf(0x41a)],_0x555f8d=_0xef8ac3[_0xad5edf(0x626)];_0x2c9092['call'](this,_0x5a2aac,_0x4a2f09,_0x555f8d),_0xef8ac3[_0xad5edf(0x1ee)](_0x5a2aac,_0x4a2f09),this[_0xad5edf(0x3c9)]=_0x5a2aac[_0xad5edf(0x3bb)](_0x4a2f09,_0x4a2f09+_0x555f8d);}}),_0x263770[_0x10606a(0x445)]=_0x263770[_0x10606a(0x30f)]({'processBlock':function(_0x1a82a6,_0x3a60e5){const _0xc4d95b=_0x10606a;var _0x23526c=this['_cipher'],_0x161581=_0x23526c[_0xc4d95b(0x626)],_0x440704=_0x1a82a6[_0xc4d95b(0x3bb)](_0x3a60e5,_0x3a60e5+_0x161581);_0x23526c[_0xc4d95b(0x4e7)](_0x1a82a6,_0x3a60e5),_0x2c9092[_0xc4d95b(0x1d5)](this,_0x1a82a6,_0x3a60e5,_0x161581),this[_0xc4d95b(0x3c9)]=_0x440704;}});function _0x2c9092(_0x1c7c7e,_0x17f1e7,_0x379307){const _0x257cf9=_0x10606a;var _0x31ca1a,_0x2154d8=this['_iv'];_0x2154d8?(_0x31ca1a=_0x2154d8,this[_0x257cf9(0x35a)]=_0x7b8458):_0x31ca1a=this[_0x257cf9(0x3c9)];for(var _0x2d3e05=0x0;_0x2d3e05<_0x379307;_0x2d3e05++)_0x1c7c7e[_0x17f1e7+_0x2d3e05]^=_0x31ca1a[_0x2d3e05];}return _0x263770;}()),_0xafe5cf=_0xea3344[_0x116d18(0x2f8)]={},_0x32922b=_0xafe5cf['Pkcs7']={'pad':function(_0x2663a1,_0x4f3815){const _0x5bf50e=_0x116d18;for(var _0xbe6b44=_0x4f3815*0x4,_0x5858ae=_0xbe6b44-_0x2663a1[_0x5bf50e(0x45c)]%_0xbe6b44,_0x3020a3=_0x5858ae<<0x18|_0x5858ae<<0x10|_0x5858ae<<0x8|_0x5858ae,_0x1e3dda=[],_0x35bc21=0x0;_0x35bc21<_0x5858ae;_0x35bc21+=0x4)_0x1e3dda[_0x5bf50e(0x3bc)](_0x3020a3);var _0x99c7c1=_0x2a7950['create'](_0x1e3dda,_0x5858ae);_0x2663a1['concat'](_0x99c7c1);},'unpad':function(_0x545a3e){const _0x28808e=_0x116d18;var _0x1dd140=_0x545a3e[_0x28808e(0x1d8)][_0x545a3e[_0x28808e(0x45c)]-0x1>>>0x2]&0xff;_0x545a3e[_0x28808e(0x45c)]-=_0x1dd140;}};_0x754136[_0x116d18(0x671)]=_0x59a483['extend']({'cfg':_0x59a483[_0x116d18(0x503)][_0x116d18(0x30f)]({'mode':_0x5af990,'padding':_0x32922b}),'reset':function(){const _0x4044ca=_0x116d18;var _0x3cf558;_0x59a483[_0x4044ca(0x29c)][_0x4044ca(0x1d5)](this);var _0x2ba811=this['cfg'],_0x3d8225=_0x2ba811['iv'],_0x2a7396=_0x2ba811['mode'];this['_xformMode']==this[_0x4044ca(0x401)]?_0x3cf558=_0x2a7396[_0x4044ca(0x55e)]:(_0x3cf558=_0x2a7396[_0x4044ca(0x1d9)],this[_0x4044ca(0x54a)]=0x1),this[_0x4044ca(0x59e)]&&this[_0x4044ca(0x59e)][_0x4044ca(0x2d3)]==_0x3cf558?this[_0x4044ca(0x59e)][_0x4044ca(0x334)](this,_0x3d8225&&_0x3d8225['words']):(this[_0x4044ca(0x59e)]=_0x3cf558['call'](_0x2a7396,this,_0x3d8225&&_0x3d8225['words']),this[_0x4044ca(0x59e)]['__creator']=_0x3cf558);},'_doProcessBlock':function(_0x6a0a63,_0x12e0f9){const _0x41613f=_0x116d18;this[_0x41613f(0x59e)][_0x41613f(0x311)](_0x6a0a63,_0x12e0f9);},'_doFinalize':function(){const _0x54d32d=_0x116d18;var _0x280d74,_0x32d769=this[_0x54d32d(0x503)][_0x54d32d(0x2e2)];return this['_xformMode']==this[_0x54d32d(0x401)]?(_0x32d769[_0x54d32d(0x2f8)](this[_0x54d32d(0x461)],this[_0x54d32d(0x626)]),_0x280d74=this[_0x54d32d(0x392)](!0x0)):(_0x280d74=this['_process'](!0x0),_0x32d769[_0x54d32d(0x651)](_0x280d74)),_0x280d74;},'blockSize':0x80/0x20});var _0x14b5d8=_0x754136[_0x116d18(0x38b)]=_0x39796e[_0x116d18(0x30f)]({'init':function(_0xf8664e){const _0x4ddb57=_0x116d18;this[_0x4ddb57(0x4bd)](_0xf8664e);},'toString':function(_0x4f0f8f){const _0xdbfcb0=_0x116d18;return(_0x4f0f8f||this['formatter'])[_0xdbfcb0(0x65e)](this);}}),_0x3d0a91=_0xea3344['format']={},_0x211529=_0x3d0a91[_0x116d18(0x529)]={'stringify':function(_0x15cae9){const _0xe801c3=_0x116d18;var _0x2ad47c,_0x488ab4=_0x15cae9[_0xe801c3(0x3b0)],_0x29f9d4=_0x15cae9[_0xe801c3(0x67d)];return _0x29f9d4?_0x2ad47c=_0x2a7950[_0xe801c3(0x3f7)]([0x53616c74,0x65645f5f])[_0xe801c3(0x2c9)](_0x29f9d4)[_0xe801c3(0x2c9)](_0x488ab4):_0x2ad47c=_0x488ab4,_0x2ad47c[_0xe801c3(0x3ef)](_0x26d373);},'parse':function(_0x5a560d){const _0x179a00=_0x116d18;var _0x371143,_0x305223=_0x26d373[_0x179a00(0x1c4)](_0x5a560d),_0xee7b=_0x305223[_0x179a00(0x1d8)];return _0xee7b[0x0]==0x53616c74&&_0xee7b[0x1]==0x65645f5f&&(_0x371143=_0x2a7950[_0x179a00(0x3f7)](_0xee7b[_0x179a00(0x3bb)](0x2,0x4)),_0xee7b[_0x179a00(0x354)](0x0,0x4),_0x305223[_0x179a00(0x45c)]-=0x10),_0x14b5d8[_0x179a00(0x3f7)]({'ciphertext':_0x305223,'salt':_0x371143});}},_0xaf1a0c=_0x754136[_0x116d18(0x4a5)]=_0x39796e['extend']({'cfg':_0x39796e[_0x116d18(0x30f)]({'format':_0x211529}),'encrypt':function(_0x402384,_0x1f4b05,_0x1c2d4e,_0x36f19d){const _0x3ad0e2=_0x116d18;_0x36f19d=this['cfg'][_0x3ad0e2(0x30f)](_0x36f19d);var _0x52a854=_0x402384[_0x3ad0e2(0x55e)](_0x1c2d4e,_0x36f19d),_0x178d28=_0x52a854['finalize'](_0x1f4b05),_0x37087c=_0x52a854['cfg'];return _0x14b5d8['create']({'ciphertext':_0x178d28,'key':_0x1c2d4e,'iv':_0x37087c['iv'],'algorithm':_0x402384,'mode':_0x37087c['mode'],'padding':_0x37087c['padding'],'blockSize':_0x402384['blockSize'],'formatter':_0x36f19d[_0x3ad0e2(0x458)]});},'decrypt':function(_0x32207f,_0x543353,_0x27101f,_0x416d38){const _0x102221=_0x116d18;_0x416d38=this[_0x102221(0x503)][_0x102221(0x30f)](_0x416d38),_0x543353=this[_0x102221(0x459)](_0x543353,_0x416d38[_0x102221(0x458)]);var _0x216ffa=_0x32207f['createDecryptor'](_0x27101f,_0x416d38)[_0x102221(0x349)](_0x543353['ciphertext']);return _0x216ffa;},'_parse':function(_0x4b1413,_0x3c04c0){const _0x812edf=_0x116d18;return typeof _0x4b1413==_0x812edf(0x291)?_0x3c04c0[_0x812edf(0x1c4)](_0x4b1413,this):_0x4b1413;}}),_0x38ffd2=_0xea3344[_0x116d18(0x3c0)]={},_0xd4b3f5=_0x38ffd2[_0x116d18(0x529)]={'execute':function(_0x17a01b,_0x3d3baf,_0x24834c,_0x510486,_0x1278b0){const _0x556549=_0x116d18;if(_0x510486||(_0x510486=_0x2a7950[_0x556549(0x581)](0x40/0x8)),_0x1278b0)var _0x1cc7b9=_0x4ab683[_0x556549(0x3f7)]({'keySize':_0x3d3baf+_0x24834c,'hasher':_0x1278b0})[_0x556549(0x282)](_0x17a01b,_0x510486);else var _0x1cc7b9=_0x4ab683[_0x556549(0x3f7)]({'keySize':_0x3d3baf+_0x24834c})['compute'](_0x17a01b,_0x510486);var _0x351c25=_0x2a7950['create'](_0x1cc7b9[_0x556549(0x1d8)][_0x556549(0x3bb)](_0x3d3baf),_0x24834c*0x4);return _0x1cc7b9[_0x556549(0x45c)]=_0x3d3baf*0x4,_0x14b5d8[_0x556549(0x3f7)]({'key':_0x1cc7b9,'iv':_0x351c25,'salt':_0x510486});}},_0x17b682=_0x754136['PasswordBasedCipher']=_0xaf1a0c[_0x116d18(0x30f)]({'cfg':_0xaf1a0c[_0x116d18(0x503)][_0x116d18(0x30f)]({'kdf':_0xd4b3f5}),'encrypt':function(_0x4be17c,_0x1bcdf6,_0x575887,_0x22dc9c){const _0x17fb48=_0x116d18;_0x22dc9c=this[_0x17fb48(0x503)]['extend'](_0x22dc9c);var _0x1b4a37=_0x22dc9c[_0x17fb48(0x3c0)]['execute'](_0x575887,_0x4be17c[_0x17fb48(0x4b9)],_0x4be17c[_0x17fb48(0x3e9)],_0x22dc9c[_0x17fb48(0x67d)],_0x22dc9c[_0x17fb48(0x52f)]);_0x22dc9c['iv']=_0x1b4a37['iv'];var _0xba342e=_0xaf1a0c[_0x17fb48(0x442)][_0x17fb48(0x1d5)](this,_0x4be17c,_0x1bcdf6,_0x1b4a37['key'],_0x22dc9c);return _0xba342e[_0x17fb48(0x4bd)](_0x1b4a37),_0xba342e;},'decrypt':function(_0x1d843b,_0x3d19e1,_0x292f0f,_0x4aad9b){const _0x37e115=_0x116d18;_0x4aad9b=this['cfg'][_0x37e115(0x30f)](_0x4aad9b),_0x3d19e1=this['_parse'](_0x3d19e1,_0x4aad9b[_0x37e115(0x458)]);var _0x44e9f3=_0x4aad9b[_0x37e115(0x3c0)][_0x37e115(0x4a7)](_0x292f0f,_0x1d843b[_0x37e115(0x4b9)],_0x1d843b[_0x37e115(0x3e9)],_0x3d19e1['salt'],_0x4aad9b[_0x37e115(0x52f)]);_0x4aad9b['iv']=_0x44e9f3['iv'];var _0x52b6ba=_0xaf1a0c[_0x37e115(0x262)][_0x37e115(0x1d5)](this,_0x1d843b,_0x3d19e1,_0x44e9f3[_0x37e115(0x425)],_0x4aad9b);return _0x52b6ba;}});}();}));}(vt)),vt[_0xf3909b(0x5a4)];}(function(_0x55e6a7,_0x367cc2){(function(_0x18364b,_0x2c1521,_0xa42702){_0x55e6a7['exports']=_0x2c1521(oe(),Pi(),fr(),wi(),Ui());}(Z,function(_0x58898c){const _0x4354cf=_0x2f26;return(function(){const _0x2575f2=_0x2f26;var _0x10d5a2=_0x58898c,_0x6018fa=_0x10d5a2[_0x2575f2(0x530)],_0x3493e8=_0x6018fa[_0x2575f2(0x671)],_0x3d7b71=_0x10d5a2['algo'],_0x144606=[],_0xece021=[],_0x1bae05=[],_0xfaf566=[],_0x178db2=[],_0xd37b7c=[],_0x541f77=[],_0x58cdcd=[],_0x64fb74=[],_0x3b01c8=[];(function(){for(var _0xb9a180=[],_0x23ae1c=0x0;_0x23ae1c<0x100;_0x23ae1c++)_0x23ae1c<0x80?_0xb9a180[_0x23ae1c]=_0x23ae1c<<0x1:_0xb9a180[_0x23ae1c]=_0x23ae1c<<0x1^0x11b;for(var _0x43126e=0x0,_0x4a7ba8=0x0,_0x23ae1c=0x0;_0x23ae1c<0x100;_0x23ae1c++){var _0x4e1bb3=_0x4a7ba8^_0x4a7ba8<<0x1^_0x4a7ba8<<0x2^_0x4a7ba8<<0x3^_0x4a7ba8<<0x4;_0x4e1bb3=_0x4e1bb3>>>0x8^_0x4e1bb3&0xff^0x63,_0x144606[_0x43126e]=_0x4e1bb3,_0xece021[_0x4e1bb3]=_0x43126e;var _0x498dfd=_0xb9a180[_0x43126e],_0x558a18=_0xb9a180[_0x498dfd],_0x435a03=_0xb9a180[_0x558a18],_0x340f44=_0xb9a180[_0x4e1bb3]*0x101^_0x4e1bb3*0x1010100;_0x1bae05[_0x43126e]=_0x340f44<<0x18|_0x340f44>>>0x8,_0xfaf566[_0x43126e]=_0x340f44<<0x10|_0x340f44>>>0x10,_0x178db2[_0x43126e]=_0x340f44<<0x8|_0x340f44>>>0x18,_0xd37b7c[_0x43126e]=_0x340f44;var _0x340f44=_0x435a03*0x1010101^_0x558a18*0x10001^_0x498dfd*0x101^_0x43126e*0x1010100;_0x541f77[_0x4e1bb3]=_0x340f44<<0x18|_0x340f44>>>0x8,_0x58cdcd[_0x4e1bb3]=_0x340f44<<0x10|_0x340f44>>>0x10,_0x64fb74[_0x4e1bb3]=_0x340f44<<0x8|_0x340f44>>>0x18,_0x3b01c8[_0x4e1bb3]=_0x340f44,_0x43126e?(_0x43126e=_0x498dfd^_0xb9a180[_0xb9a180[_0xb9a180[_0x435a03^_0x498dfd]]],_0x4a7ba8^=_0xb9a180[_0xb9a180[_0x4a7ba8]]):_0x43126e=_0x4a7ba8=0x1;}}());var _0x28b458=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x580868=_0x3d7b71[_0x2575f2(0x40d)]=_0x3493e8[_0x2575f2(0x30f)]({'_doReset':function(){const _0x10d390=_0x2575f2;var _0x3f1a6d;if(!(this[_0x10d390(0x2b3)]&&this[_0x10d390(0x470)]===this[_0x10d390(0x3c4)])){for(var _0x3ba0e5=this[_0x10d390(0x470)]=this[_0x10d390(0x3c4)],_0xe01ca=_0x3ba0e5['words'],_0x45bd7f=_0x3ba0e5[_0x10d390(0x45c)]/0x4,_0x3af97c=this[_0x10d390(0x2b3)]=_0x45bd7f+0x6,_0x2ade67=(_0x3af97c+0x1)*0x4,_0x1204f8=this['_keySchedule']=[],_0x958e68=0x0;_0x958e68<_0x2ade67;_0x958e68++)_0x958e68<_0x45bd7f?_0x1204f8[_0x958e68]=_0xe01ca[_0x958e68]:(_0x3f1a6d=_0x1204f8[_0x958e68-0x1],_0x958e68%_0x45bd7f?_0x45bd7f>0x6&&_0x958e68%_0x45bd7f==0x4&&(_0x3f1a6d=_0x144606[_0x3f1a6d>>>0x18]<<0x18|_0x144606[_0x3f1a6d>>>0x10&0xff]<<0x10|_0x144606[_0x3f1a6d>>>0x8&0xff]<<0x8|_0x144606[_0x3f1a6d&0xff]):(_0x3f1a6d=_0x3f1a6d<<0x8|_0x3f1a6d>>>0x18,_0x3f1a6d=_0x144606[_0x3f1a6d>>>0x18]<<0x18|_0x144606[_0x3f1a6d>>>0x10&0xff]<<0x10|_0x144606[_0x3f1a6d>>>0x8&0xff]<<0x8|_0x144606[_0x3f1a6d&0xff],_0x3f1a6d^=_0x28b458[_0x958e68/_0x45bd7f|0x0]<<0x18),_0x1204f8[_0x958e68]=_0x1204f8[_0x958e68-_0x45bd7f]^_0x3f1a6d);for(var _0x291415=this['_invKeySchedule']=[],_0x30df81=0x0;_0x30df81<_0x2ade67;_0x30df81++){var _0x958e68=_0x2ade67-_0x30df81;if(_0x30df81%0x4)var _0x3f1a6d=_0x1204f8[_0x958e68];else var _0x3f1a6d=_0x1204f8[_0x958e68-0x4];_0x30df81<0x4||_0x958e68<=0x4?_0x291415[_0x30df81]=_0x3f1a6d:_0x291415[_0x30df81]=_0x541f77[_0x144606[_0x3f1a6d>>>0x18]]^_0x58cdcd[_0x144606[_0x3f1a6d>>>0x10&0xff]]^_0x64fb74[_0x144606[_0x3f1a6d>>>0x8&0xff]]^_0x3b01c8[_0x144606[_0x3f1a6d&0xff]];}}},'encryptBlock':function(_0x21773d,_0x26edd2){const _0x468725=_0x2575f2;this[_0x468725(0x664)](_0x21773d,_0x26edd2,this[_0x468725(0x521)],_0x1bae05,_0xfaf566,_0x178db2,_0xd37b7c,_0x144606);},'decryptBlock':function(_0x3f38a3,_0x335fc1){const _0xfdebe5=_0x2575f2;var _0x5a58b8=_0x3f38a3[_0x335fc1+0x1];_0x3f38a3[_0x335fc1+0x1]=_0x3f38a3[_0x335fc1+0x3],_0x3f38a3[_0x335fc1+0x3]=_0x5a58b8,this[_0xfdebe5(0x664)](_0x3f38a3,_0x335fc1,this[_0xfdebe5(0x2c0)],_0x541f77,_0x58cdcd,_0x64fb74,_0x3b01c8,_0xece021);var _0x5a58b8=_0x3f38a3[_0x335fc1+0x1];_0x3f38a3[_0x335fc1+0x1]=_0x3f38a3[_0x335fc1+0x3],_0x3f38a3[_0x335fc1+0x3]=_0x5a58b8;},'_doCryptBlock':function(_0x1535ec,_0x41de9b,_0xdf9b8,_0xb60c30,_0x3921ec,_0x1b9091,_0x63a666,_0x20d57a){for(var _0x1c3fa2=this['_nRounds'],_0xccaf0f=_0x1535ec[_0x41de9b]^_0xdf9b8[0x0],_0x291c60=_0x1535ec[_0x41de9b+0x1]^_0xdf9b8[0x1],_0x37a0de=_0x1535ec[_0x41de9b+0x2]^_0xdf9b8[0x2],_0x1b8768=_0x1535ec[_0x41de9b+0x3]^_0xdf9b8[0x3],_0xb68ab=0x4,_0x126d5f=0x1;_0x126d5f<_0x1c3fa2;_0x126d5f++){var _0x2da508=_0xb60c30[_0xccaf0f>>>0x18]^_0x3921ec[_0x291c60>>>0x10&0xff]^_0x1b9091[_0x37a0de>>>0x8&0xff]^_0x63a666[_0x1b8768&0xff]^_0xdf9b8[_0xb68ab++],_0x1833ff=_0xb60c30[_0x291c60>>>0x18]^_0x3921ec[_0x37a0de>>>0x10&0xff]^_0x1b9091[_0x1b8768>>>0x8&0xff]^_0x63a666[_0xccaf0f&0xff]^_0xdf9b8[_0xb68ab++],_0x3fb395=_0xb60c30[_0x37a0de>>>0x18]^_0x3921ec[_0x1b8768>>>0x10&0xff]^_0x1b9091[_0xccaf0f>>>0x8&0xff]^_0x63a666[_0x291c60&0xff]^_0xdf9b8[_0xb68ab++],_0x1e2df4=_0xb60c30[_0x1b8768>>>0x18]^_0x3921ec[_0xccaf0f>>>0x10&0xff]^_0x1b9091[_0x291c60>>>0x8&0xff]^_0x63a666[_0x37a0de&0xff]^_0xdf9b8[_0xb68ab++];_0xccaf0f=_0x2da508,_0x291c60=_0x1833ff,_0x37a0de=_0x3fb395,_0x1b8768=_0x1e2df4;}var _0x2da508=(_0x20d57a[_0xccaf0f>>>0x18]<<0x18|_0x20d57a[_0x291c60>>>0x10&0xff]<<0x10|_0x20d57a[_0x37a0de>>>0x8&0xff]<<0x8|_0x20d57a[_0x1b8768&0xff])^_0xdf9b8[_0xb68ab++],_0x1833ff=(_0x20d57a[_0x291c60>>>0x18]<<0x18|_0x20d57a[_0x37a0de>>>0x10&0xff]<<0x10|_0x20d57a[_0x1b8768>>>0x8&0xff]<<0x8|_0x20d57a[_0xccaf0f&0xff])^_0xdf9b8[_0xb68ab++],_0x3fb395=(_0x20d57a[_0x37a0de>>>0x18]<<0x18|_0x20d57a[_0x1b8768>>>0x10&0xff]<<0x10|_0x20d57a[_0xccaf0f>>>0x8&0xff]<<0x8|_0x20d57a[_0x291c60&0xff])^_0xdf9b8[_0xb68ab++],_0x1e2df4=(_0x20d57a[_0x1b8768>>>0x18]<<0x18|_0x20d57a[_0xccaf0f>>>0x10&0xff]<<0x10|_0x20d57a[_0x291c60>>>0x8&0xff]<<0x8|_0x20d57a[_0x37a0de&0xff])^_0xdf9b8[_0xb68ab++];_0x1535ec[_0x41de9b]=_0x2da508,_0x1535ec[_0x41de9b+0x1]=_0x1833ff,_0x1535ec[_0x41de9b+0x2]=_0x3fb395,_0x1535ec[_0x41de9b+0x3]=_0x1e2df4;},'keySize':0x100/0x20});_0x10d5a2[_0x2575f2(0x40d)]=_0x3493e8[_0x2575f2(0x4fe)](_0x580868);}()),_0x58898c[_0x4354cf(0x40d)];}));}(Di));var pr=Di[_0x29ff00(0x5a4)];const mr=xe(pr);var gr=Pi();const Qt=xe(gr);var Mi={'exports':{}};(function(_0xdfeba2,_0x289bd7){(function(_0xd58344,_0x17004b){_0xdfeba2['exports']=_0x17004b(oe());}(Z,function(_0x31a203){const _0x377a9e=_0x2f26;return _0x31a203[_0x377a9e(0x38e)][_0x377a9e(0x3e6)];}));}(Mi));var Ir=Mi[_0x29ff00(0x5a4)];const Cr=xe(Ir);var Ai={'exports':{}};(function(_0x54bf00,_0x50fa45){(function(_0x3cee32,_0x307f10){const _0x1f2c1e=_0x2f26;_0x54bf00[_0x1f2c1e(0x5a4)]=_0x307f10(oe());}(Z,function(_0x44f7c2){const _0x616c07=_0x2f26;return(function(){const _0x5505f1=_0x2f26;if(typeof ArrayBuffer==_0x5505f1(0x5a8)){var _0x58a9aa=_0x44f7c2,_0x384a78=_0x58a9aa[_0x5505f1(0x530)],_0x53005a=_0x384a78['WordArray'],_0x5da649=_0x53005a[_0x5505f1(0x334)],_0x3763a6=_0x53005a[_0x5505f1(0x334)]=function(_0x50259d){const _0x131124=_0x5505f1;if(_0x50259d instanceof ArrayBuffer&&(_0x50259d=new Uint8Array(_0x50259d)),(_0x50259d instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x50259d instanceof Uint8ClampedArray||_0x50259d instanceof Int16Array||_0x50259d instanceof Uint16Array||_0x50259d instanceof Int32Array||_0x50259d instanceof Uint32Array||_0x50259d instanceof Float32Array||_0x50259d instanceof Float64Array)&&(_0x50259d=new Uint8Array(_0x50259d['buffer'],_0x50259d[_0x131124(0x59d)],_0x50259d['byteLength'])),_0x50259d instanceof Uint8Array){for(var _0x12bcaa=_0x50259d[_0x131124(0x260)],_0x46263e=[],_0x578956=0x0;_0x578956<_0x12bcaa;_0x578956++)_0x46263e[_0x578956>>>0x2]|=_0x50259d[_0x578956]<<0x18-_0x578956%0x4*0x8;_0x5da649[_0x131124(0x1d5)](this,_0x46263e,_0x12bcaa);}else _0x5da649[_0x131124(0x567)](this,arguments);};_0x3763a6[_0x5505f1(0x1fe)]=_0x53005a;}}()),_0x44f7c2['lib'][_0x616c07(0x1e2)];}));}(Ai));var Er=Ai['exports'];const br=xe(Er);var Ni={'exports':{}};(function(_0x138c4d,_0x199646){(function(_0x3a7b38,_0x160b03,_0x3ca5a8){const _0x462d71=_0x2f26;_0x138c4d[_0x462d71(0x5a4)]=_0x160b03(oe(),Ui());}(Z,function(_0x306c28){const _0x192a0a=_0x2f26;return _0x306c28[_0x192a0a(0x2f8)][_0x192a0a(0x631)]={'pad':function(){},'unpad':function(){}},_0x306c28[_0x192a0a(0x2f8)][_0x192a0a(0x631)];}));}(Ni));var Tr=Ni[_0x29ff00(0x5a4)];const Rr=xe(Tr);function yr(_0x234f00,_0x149d08){const _0x46de3c=_0x29ff00,_0x573670=_0x149d08-_0x234f00['length']%_0x149d08,_0x2f2912=String['fromCharCode'](_0x573670)[_0x46de3c(0x2cf)](_0x573670);return _0x234f00+_0x2f2912;}function Or(_0xcbbe8a,_0x35f8cc){const _0x361c44=_0x29ff00,_0x21cf08=br[_0x361c44(0x581)](0x10),_0xbc58a0=yr(_0xcbbe8a,0x10),_0x4af347=mr[_0x361c44(0x442)](Cr['parse'](_0xbc58a0),Qt[_0x361c44(0x1c4)](_0x35f8cc),{'iv':_0x21cf08,'padding':Rr});return _0x21cf08[_0x361c44(0x2c9)](_0x4af347[_0x361c44(0x3b0)])[_0x361c44(0x3ef)](Qt);}function Dr(){const _0x56bc1e=_0x29ff00,_0x566d4d=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x56bc1e(0x224)];if(_0x566d4d){const _0xfd390f={'time':Math[_0x56bc1e(0x3f8)](Date[_0x56bc1e(0x53b)]()/0x3e8),'domain':location[_0x56bc1e(0x5f6)]};return Or(JSON[_0x56bc1e(0x65e)](_0xfd390f),_0x566d4d);}}var Pr=Object[_0x29ff00(0x64a)],wr=Object[_0x29ff00(0x316)],Ur=(_0x515deb,_0x51312e,_0x317b6e,_0x317781)=>{const _0x296a74=_0x29ff00;for(var _0x7af0fe=_0x317781>0x1?void 0x0:_0x317781?wr(_0x51312e,_0x317b6e):_0x51312e,_0x7aae39=_0x515deb[_0x296a74(0x5e7)]-0x1,_0x375b7c;_0x7aae39>=0x0;_0x7aae39--)(_0x375b7c=_0x515deb[_0x7aae39])&&(_0x7af0fe=(_0x317781?_0x375b7c(_0x51312e,_0x317b6e,_0x7af0fe):_0x375b7c(_0x7af0fe))||_0x7af0fe);return _0x317781&&_0x7af0fe&&Pr(_0x51312e,_0x317b6e,_0x7af0fe),_0x7af0fe;},Mr=(_0x428e94,_0x1606c3)=>(_0x46c6bc,_0x4f05c7)=>_0x1606c3(_0x46c6bc,_0x4f05c7,_0x428e94);let Ke=class{constructor(_0x1dea5e){const _0x400d25=_0x29ff00;this[_0x400d25(0x620)]=_0x1dea5e,this[_0x400d25(0x616)]();}['_initRequestHeader'](){const _0x21c89a=_0x29ff00;this[_0x21c89a(0x620)][_0x21c89a(0x595)]({'interceptor':(_0x4ea59a,_0x4e5b43)=>{const _0x5a042e=_0x21c89a,_0x393f65=_0x4ea59a[_0x5a042e(0x32e)],_0x3701e8=Dr();return _0x3701e8&&_0x393f65['set'](_0x5a042e(0x305),_0x3701e8),_0x4e5b43(_0x4ea59a);}});}};Ke=Ur([Mr(0x0,a[_0x29ff00(0x493)](z[_0x29ff00(0x1be)]))],Ke);var Ar=Object[_0x29ff00(0x64a)],Nr=Object[_0x29ff00(0x316)],Lr=(_0x1ac37d,_0xe107c8,_0x57d348,_0x41a80b)=>{const _0x13a182=_0x29ff00;for(var _0x3146dc=_0x41a80b>0x1?void 0x0:_0x41a80b?Nr(_0xe107c8,_0x57d348):_0xe107c8,_0x208fe8=_0x1ac37d[_0x13a182(0x5e7)]-0x1,_0x43c24f;_0x208fe8>=0x0;_0x208fe8--)(_0x43c24f=_0x1ac37d[_0x208fe8])&&(_0x3146dc=(_0x41a80b?_0x43c24f(_0xe107c8,_0x57d348,_0x3146dc):_0x43c24f(_0x3146dc))||_0x3146dc);return _0x41a80b&&_0x3146dc&&Ar(_0xe107c8,_0x57d348,_0x3146dc),_0x3146dc;},St=(_0x1321ec,_0x5b6580)=>(_0x216f77,_0x52603f)=>_0x5b6580(_0x216f77,_0x52603f,_0x1321ec);const xr=[_0x29ff00(0x5a2),_0x29ff00(0x213),_0x29ff00(0x657),_0x29ff00(0x2ec),_0x29ff00(0x378)],jr=0x5*0x400*0x400,$r=_0x29ff00(0x5c8),Hr=_0x29ff00(0x630),Br=_0x29ff00(0x4ed),kr=_0x29ff00(0x3a7);exports[_0x29ff00(0x35d)]=class{constructor(_0x204c9a,_0xb3f3dd,_0x57cd57){const _0x51e5f6=_0x29ff00;I(this,_0x51e5f6(0x5a9),0x0),I(this,_0x51e5f6(0x2f1),new A['Subject']()),I(this,_0x51e5f6(0x39d),this[_0x51e5f6(0x2f1)]),I(this,_0x51e5f6(0x3ed),new Map()),(this['_httpService']=_0x204c9a,this['_configService']=_0xb3f3dd,this[_0x51e5f6(0x600)]=_0x57cd57);}[_0x29ff00(0x3cd)](_0x4adfda){const _0x4f726d=_0x29ff00;this['_waitCount']=_0x4adfda,this[_0x4f726d(0x2f1)][_0x4f726d(0x49f)](_0x4adfda);}['getImageSourceCache'](_0x9c77b2,_0x1ff18e){const _0x2e88ef=_0x29ff00;if(_0x1ff18e===ie[_0x2e88ef(0x5b3)]['BASE64']){const _0x1d0669=new Image();return _0x1d0669['src']=_0x9c77b2,_0x1d0669;}return this[_0x2e88ef(0x3ed)][_0x2e88ef(0x2ef)](_0x9c77b2);}[_0x29ff00(0x1de)](_0x269f4f,_0x5af452,_0x363007){const _0x9693ad=_0x29ff00;_0x5af452===ie[_0x9693ad(0x5b3)][_0x9693ad(0x303)]||_0x363007==null||this['_imageSourceCache']['set'](_0x269f4f,_0x363007);}async[_0x29ff00(0x43b)](_0x31264b){const _0x11ec72=_0x29ff00;try{const _0x44a8f7=this['_replaceFileID'](this['_getSignURL'](),''+_0x31264b),_0x47dd3d=(await this['_httpService'][_0x11ec72(0x2ef)](_0x44a8f7))['body'];if(_0x47dd3d['error']&&_0x47dd3d[_0x11ec72(0x27a)]['code']===_i['OK']){const _0x1ec950=new URL(_0x47dd3d[_0x11ec72(0x4ad)],this[_0x11ec72(0x635)]())['toString']();return Promise[_0x11ec72(0x343)](_0x1ec950);}return Promise[_0x11ec72(0x4af)](_0x47dd3d[_0x11ec72(0x27a)]);}catch(_0x219b25){return Promise[_0x11ec72(0x4af)](_0x219b25);}}async['saveImage'](_0x6c30f7){const _0x34b1b3=_0x29ff00;let _0x38d80f='';if(!xr[_0x34b1b3(0x263)](_0x6c30f7[_0x34b1b3(0x2eb)]))return this[_0x34b1b3(0x237)](),Promise[_0x34b1b3(0x4af)](new Error(ie[_0x34b1b3(0x662)][_0x34b1b3(0x451)]));if(_0x6c30f7['size']>jr)return this['_decreaseWaiting'](),Promise[_0x34b1b3(0x4af)](new Error(ie[_0x34b1b3(0x662)]['ERROR_EXCEED_SIZE']));try{const _0x528990=new FormData();_0x528990[_0x34b1b3(0x31a)](_0x34b1b3(0x681),_0x6c30f7);const _0x8eb1a1=this['_univerInstanceService'][_0x34b1b3(0x498)](),_0xbb813e=_0x8eb1a1==null?void 0x0:_0x8eb1a1[_0x34b1b3(0x621)]();if(!_0xbb813e)throw new Error('unitId\x20is\x20not\x20found');const _0x43549f=this['_getUploadFileURL']()+_0x34b1b3(0x45f)+_0x6c30f7['size'][_0x34b1b3(0x3ef)]()+_0x34b1b3(0x1ef)+ui[_0x34b1b3(0x358)]+'&assign='+encodeURIComponent(_0xbb813e),_0x11b3bd=await(await fetch(_0x43549f,{'method':_0x34b1b3(0x4b7),'body':_0x528990}))['json']();if(typeof _0x11b3bd['FileId']!=_0x34b1b3(0x291))return this[_0x34b1b3(0x237)](),Promise[_0x34b1b3(0x4af)](new Error(ie[_0x34b1b3(0x662)][_0x34b1b3(0x5da)]));_0x38d80f=_0x11b3bd[_0x34b1b3(0x55c)];}catch{return this[_0x34b1b3(0x237)](),Promise['reject'](new Error(ie[_0x34b1b3(0x662)][_0x34b1b3(0x5da)]));}return new Promise((_0x56e355,_0x4c0147)=>{const _0x5f5951=_0x34b1b3,_0x584aa4=new FileReader();_0x584aa4[_0x5f5951(0x25c)](_0x6c30f7),_0x584aa4[_0x5f5951(0x3b9)]=_0x32e861=>{const _0x6022bf=_0x5f5951;var _0x1124f7;const _0x34c00e=(_0x1124f7=_0x32e861[_0x6022bf(0x629)])==null?void 0x0:_0x1124f7['result'];if(_0x34c00e==null){this['_decreaseWaiting'](),_0x4c0147(new Error(ie['ImageUploadStatusType'][_0x6022bf(0x5da)]));return;}const _0x1ec009=a[_0x6022bf(0x302)][_0x6022bf(0x512)](0x6);_0x56e355({'imageId':_0x1ec009,'imageSourceType':ie[_0x6022bf(0x5b3)][_0x6022bf(0x44a)],'source':_0x38d80f,'base64Cache':_0x34c00e,'status':ie[_0x6022bf(0x662)][_0x6022bf(0x2c2)]}),this['_decreaseWaiting']();};});}[_0x29ff00(0x3c6)](){const _0x42d0b6=_0x29ff00;var _0x5462cd,_0xf7d2c0;const _0x5d7616=this[_0x42d0b6(0x4ea)][_0x42d0b6(0x1ea)]($r),_0x42a49c=this[_0x42d0b6(0x4ea)][_0x42d0b6(0x1ea)](Q);return(_0xf7d2c0=(_0x5462cd=_0x42a49c==null?void 0x0:_0x42a49c['uploadFileServerUrl'])!=null?_0x5462cd:_0x5d7616)!=null?_0xf7d2c0:Hr;}['_getSignURL'](){const _0x2fa01f=_0x29ff00;var _0x223537,_0x2c117b;const _0x446b46=this[_0x2fa01f(0x4ea)]['getConfig'](Br),_0x3614c0=this[_0x2fa01f(0x4ea)][_0x2fa01f(0x1ea)](Q);return(_0x2c117b=(_0x223537=_0x3614c0==null?void 0x0:_0x3614c0[_0x2fa01f(0x3b2)])!=null?_0x223537:_0x446b46)!=null?_0x2c117b:kr;}[_0x29ff00(0x635)](){const _0x249d63=_0x29ff00;var _0x832ee6;const _0x5d807e=this[_0x249d63(0x4ea)][_0x249d63(0x1ea)](Q);return(_0x832ee6=_0x5d807e==null?void 0x0:_0x5d807e[_0x249d63(0x33b)])!=null?_0x832ee6:location[_0x249d63(0x655)];}[_0x29ff00(0x5de)](_0x8fad1b,_0xfbefc1){const _0x33f91f=_0x29ff00;return _0x8fad1b[_0x33f91f(0x43e)]('{fileID}',_0xfbefc1);}[_0x29ff00(0x237)](){const _0xf30ef3=_0x29ff00;this['_waitCount']-=0x1,this[_0xf30ef3(0x2f1)]['next'](this[_0xf30ef3(0x5a9)]);}},exports[_0x29ff00(0x35d)]=Lr([St(0x0,a['Inject'](z[_0x29ff00(0x1be)])),St(0x1,a['IConfigService']),St(0x2,a[_0x29ff00(0x493)](a[_0x29ff00(0x37f)]))],exports[_0x29ff00(0x35d)]);var Wr=Object[_0x29ff00(0x64a)],Fr=Object[_0x29ff00(0x316)],Vr=(_0x4cd428,_0x127cfb,_0x7ef1c,_0x52e5a9)=>{const _0x186f8c=_0x29ff00;for(var _0x25fbe6=_0x52e5a9>0x1?void 0x0:_0x52e5a9?Fr(_0x127cfb,_0x7ef1c):_0x127cfb,_0x492d42=_0x4cd428[_0x186f8c(0x5e7)]-0x1,_0x5b5228;_0x492d42>=0x0;_0x492d42--)(_0x5b5228=_0x4cd428[_0x492d42])&&(_0x25fbe6=(_0x52e5a9?_0x5b5228(_0x127cfb,_0x7ef1c,_0x25fbe6):_0x5b5228(_0x25fbe6))||_0x25fbe6);return _0x52e5a9&&_0x25fbe6&&Wr(_0x127cfb,_0x7ef1c,_0x25fbe6),_0x25fbe6;},ei=(_0x537c84,_0x4349b2)=>(_0x5121ee,_0x220ac3)=>_0x4349b2(_0x5121ee,_0x220ac3,_0x537c84);const Gr=_0x29ff00(0x58c);exports[_0x29ff00(0x2bd)]=class{constructor(_0xf6e853,_0x22d309){const _0x3bd8dc=_0x29ff00;this['_configService']=_0xf6e853,this[_0x3bd8dc(0x539)]=_0x22d309;}[_0x29ff00(0x523)](){const _0x60adfa=_0x29ff00;var _0x3fc102,_0x4879a1;const _0x5ee54e=this[_0x60adfa(0x4ea)]['getConfig'](Ut),_0xb5368e=this['_configService'][_0x60adfa(0x1ea)](Q);return(_0x4879a1=(_0x3fc102=_0xb5368e==null?void 0x0:_0xb5368e[_0x60adfa(0x51f)])!=null?_0x3fc102:_0x5ee54e)!=null?_0x4879a1:Gr;}async[_0x29ff00(0x536)](_0x3c18cc){const _0x5bcf06=_0x29ff00,_0x4c6f1f=this[_0x5bcf06(0x523)]()+_0x5bcf06(0x555);return{'list':[{'title':_0x5bcf06(0x4f3),'mentions':(await this[_0x5bcf06(0x539)][_0x5bcf06(0x2ef)](_0x4c6f1f,{'params':{'objectID':_0x3c18cc[_0x5bcf06(0x21b)],'unitID':_0x3c18cc[_0x5bcf06(0x21b)]}}))[_0x5bcf06(0x55d)][_0x5bcf06(0x65c)][_0x5bcf06(0x4db)](_0x2abf5b=>({'objectId':_0x2abf5b['id'],'name':_0x2abf5b[_0x5bcf06(0x1bf)][_0x5bcf06(0x2cd)],'metadata':{'icon':_0x2abf5b[_0x5bcf06(0x1bf)][_0x5bcf06(0x2d2)]},'label':_0x2abf5b['subject']['name'],'objectType':a['MentionType'][_0x5bcf06(0x61b)]})),'metadata':{},'type':a['MentionType'][_0x5bcf06(0x61b)]}]};}},exports[_0x29ff00(0x2bd)]=Vr([ei(0x0,a[_0x29ff00(0x493)](a[_0x29ff00(0x64d)])),ei(0x1,a['Inject'](z[_0x29ff00(0x1be)]))],exports[_0x29ff00(0x2bd)]);var Yr=Object[_0x29ff00(0x64a)],Kr=Object[_0x29ff00(0x316)],qr=(_0x42d5a4,_0x3eebc0,_0x35e8e2,_0x4a80c2)=>{const _0x522e13=_0x29ff00;for(var _0x39215c=_0x4a80c2>0x1?void 0x0:_0x4a80c2?Kr(_0x3eebc0,_0x35e8e2):_0x3eebc0,_0x5d3fd7=_0x42d5a4[_0x522e13(0x5e7)]-0x1,_0x37636a;_0x5d3fd7>=0x0;_0x5d3fd7--)(_0x37636a=_0x42d5a4[_0x5d3fd7])&&(_0x39215c=(_0x4a80c2?_0x37636a(_0x3eebc0,_0x35e8e2,_0x39215c):_0x37636a(_0x39215c))||_0x39215c);return _0x4a80c2&&_0x39215c&&Yr(_0x3eebc0,_0x35e8e2,_0x39215c),_0x39215c;},Ae=(_0x2e715c,_0x2b113d)=>(_0xfb8777,_0x298eaf)=>_0x2b113d(_0xfb8777,_0x298eaf,_0x2e715c);let qe=class extends a['RxDisposable']{constructor(_0xdf4b11,_0x376b4b,_0x853491,_0x3c567f,_0x194a84){const _0x38b006=_0x29ff00;super(),this['_injector']=_0xdf4b11,this['_univerInstanceService']=_0x376b4b,this[_0x38b006(0x590)]=_0x853491,this['_collaborationSessionService']=_0x3c567f,this[_0x38b006(0x20f)]=_0x194a84,this[_0x38b006(0x561)](),this[_0x38b006(0x250)]();}[_0x29ff00(0x250)](){const _0x87cc71=_0x29ff00,_0x4f6952=async _0x19027d=>{const _0x203a31=_0x2f26;(await this[_0x203a31(0x1eb)][_0x203a31(0x429)](_0x19027d))['event$'][_0x203a31(0x619)](V[_0x203a31(0x604)](_0x1fd8a4=>_0x1fd8a4[_0x203a31(0x55b)]===p[_0x203a31(0x259)][_0x203a31(0x44d)]),V[_0x203a31(0x264)](this[_0x203a31(0x2b6)]))[_0x203a31(0x58f)](_0x365975=>{const _0x44407b=_0x203a31,_0x4f5e66=_0x365975,{reason:_0x304eaf}=_0x4f5e66[_0x44407b(0x3eb)];this[_0x44407b(0x1c1)]['get'](te[_0x44407b(0x47f)])[_0x44407b(0x318)]({'type':Ce[_0x44407b(0x506)][_0x44407b(0x341)],'content':this[_0x44407b(0x20f)]['t'](_0x44407b(0x271))+'('+_0x304eaf+')'}),this[_0x44407b(0x590)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](_0x19027d)['id'],!0x1),this['_collaborationSessionService'][_0x44407b(0x452)](_0x19027d);});};A['merge'](this[_0x87cc71(0x600)][_0x87cc71(0x460)](a[_0x87cc71(0x5ce)][_0x87cc71(0x3d0)]),this[_0x87cc71(0x600)][_0x87cc71(0x460)](a['UniverInstanceType'][_0x87cc71(0x4f0)]))[_0x87cc71(0x619)](V[_0x87cc71(0x4db)](_0x2ffa6d=>_0x2ffa6d[_0x87cc71(0x621)]()),V[_0x87cc71(0x604)](_0x17ddb8=>!a[_0x87cc71(0x1f4)](_0x17ddb8)),V['takeUntil'](this[_0x87cc71(0x2b6)]))[_0x87cc71(0x58f)](_0x42cfbd=>{_0x4f6952(_0x42cfbd);});}[_0x29ff00(0x561)](){const _0x5ceb47=_0x29ff00,_0x383501=async _0x4d22fa=>{const _0x22fea7=_0x2f26;(await this[_0x22fea7(0x1eb)]['requireSession'](_0x4d22fa))[_0x22fea7(0x48a)][_0x22fea7(0x619)](V[_0x22fea7(0x604)](_0x2efb67=>_0x2efb67['eventID']===p['CollaborationEvent'][_0x22fea7(0x410)]),V[_0x22fea7(0x264)](this[_0x22fea7(0x2b6)]))['subscribe'](_0x599d6e=>{const _0xb6c71e=_0x22fea7,_0x30e274=_0x599d6e,{objectId:_0xf17e9d}=_0x30e274[_0xb6c71e(0x3eb)],_0x4ac9ae=this['_injector'][_0xb6c71e(0x2ef)](ye[_0xb6c71e(0x3ae)]);_0xf17e9d===_0x4d22fa?_0x4ac9ae[_0xb6c71e(0x58e)](_0x4d22fa):_0x4ac9ae['refreshPermission'](_0x4d22fa,_0xf17e9d);});};A[_0x5ceb47(0x5ed)](this[_0x5ceb47(0x600)][_0x5ceb47(0x460)](a[_0x5ceb47(0x5ce)][_0x5ceb47(0x3d0)]),this[_0x5ceb47(0x600)][_0x5ceb47(0x460)](a[_0x5ceb47(0x5ce)]['UNIVER_DOC']))[_0x5ceb47(0x619)](V[_0x5ceb47(0x4db)](_0x5f215b=>_0x5f215b[_0x5ceb47(0x621)]()),V['filter'](_0x1d7f78=>!a[_0x5ceb47(0x1f4)](_0x1d7f78)),V['takeUntil'](this[_0x5ceb47(0x2b6)]))[_0x5ceb47(0x58f)](_0x576e2d=>{_0x383501(_0x576e2d);});}};qe=qr([Ae(0x0,a[_0x29ff00(0x493)](a['Injector'])),Ae(0x1,a[_0x29ff00(0x37f)]),Ae(0x2,a[_0x29ff00(0x3d1)]),Ae(0x3,a['Inject'](exports[_0x29ff00(0x5ea)])),Ae(0x4,a['Inject'](a[_0x29ff00(0x430)]))],qe);var zr=Object[_0x29ff00(0x64a)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x2d0db1,_0x195147,_0x23b156,_0x9de0e7)=>{const _0xb7c002=_0x29ff00;for(var _0x405747=_0x9de0e7>0x1?void 0x0:_0x9de0e7?Xr(_0x195147,_0x23b156):_0x195147,_0x59aac6=_0x2d0db1[_0xb7c002(0x5e7)]-0x1,_0x288dfd;_0x59aac6>=0x0;_0x59aac6--)(_0x288dfd=_0x2d0db1[_0x59aac6])&&(_0x405747=(_0x9de0e7?_0x288dfd(_0x195147,_0x23b156,_0x405747):_0x288dfd(_0x405747))||_0x405747);return _0x9de0e7&&_0x405747&&zr(_0x195147,_0x23b156,_0x405747),_0x405747;},ti=(_0xad5a9f,_0x2ebe66)=>(_0x4b0cab,_0x926fba)=>_0x2ebe66(_0x4b0cab,_0x926fba,_0xad5a9f);exports['SnapshotServerOverHTTPService']=class{constructor(_0x3dba19,_0x4681c7){const _0xc41ff1=_0x29ff00;this[_0xc41ff1(0x4ea)]=_0x3dba19,this[_0xc41ff1(0x620)]=_0x4681c7;}async[_0x29ff00(0x1ca)](_0x228661,_0x110178){const _0x2bdaed=_0x29ff00;var _0x2a2df4;const {unitID:_0x502e3e,type:_0x326a1b,revision:_0x360c91=0x0}=_0x110178,_0x22d945=this['_getSnapshotAPIPrefix']()+'/'+_0x326a1b+_0x2bdaed(0x440)+_0x502e3e+_0x2bdaed(0x2dd)+_0x360c91,_0x11e9d1=(await this[_0x2bdaed(0x620)]['get'](_0x22d945))['body'],_0x5e9f56=(_0x2a2df4=_0x11e9d1[_0x2bdaed(0x1c7)])==null?void 0x0:_0x2a2df4[_0x2bdaed(0x3d6)];if(_0x5e9f56){const _0x4b8d23=_0x5e9f56==null?void 0x0:_0x5e9f56[_0x2bdaed(0x5d3)],_0x5b77e2=p['textEncoder'][_0x2bdaed(0x597)](p['b64DecodeUnicode'](_0x4b8d23));_0x5e9f56['originalMeta']=_0x5b77e2,Object[_0x2bdaed(0x432)](_0x5e9f56[_0x2bdaed(0x317)])['forEach'](([,_0x4c52de])=>{const _0xba1446=_0x2bdaed,_0x2c47bd=_0x4c52de[_0xba1446(0x5d3)],_0x1f95fa=p['textEncoder'][_0xba1446(0x597)](p[_0xba1446(0x2fd)](_0x2c47bd));_0x4c52de[_0xba1446(0x5d3)]=_0x1f95fa;});}return _0x11e9d1;}async[_0x29ff00(0x37c)](_0x44b3fe,_0x5bcb42){const _0x10148b=_0x29ff00,{unitID:_0x3feed1,type:_0xda1f84,blockID:_0x4a7a34}=_0x5bcb42,_0x13d40a=this[_0x10148b(0x23e)]()+'/'+_0xda1f84+_0x10148b(0x440)+_0x3feed1+'/block/'+_0x4a7a34;return(await this[_0x10148b(0x620)][_0x10148b(0x2ef)](_0x13d40a))[_0x10148b(0x55d)];}async[_0x29ff00(0x3a0)](_0x2cc727,_0x42144a){const _0x441829=_0x29ff00,{unitID:_0xf9e68,type:_0x38dffa,blockID:_0x16e1bc}=_0x42144a,_0x450ea0=this[_0x441829(0x23e)]()+_0x441829(0x3af)+_0x38dffa+'/unit/'+_0xf9e68+'/block/'+_0x16e1bc;return(await this[_0x441829(0x620)]['get'](_0x450ea0))[_0x441829(0x55d)];}async['fetchMissingChangesets'](_0x478726,_0x8d74ab){const _0x50d409=_0x29ff00,{unitID:_0x59c713,type:_0x47ab8a,from:_0x13c9a4,to:_0x396a63}=_0x8d74ab,_0x11c988=this[_0x50d409(0x23e)]()+'/'+_0x47ab8a+_0x50d409(0x440)+_0x59c713+_0x50d409(0x397)+_0x13c9a4+_0x50d409(0x2b0)+_0x396a63;return(await this[_0x50d409(0x620)]['get'](_0x11c988))[_0x50d409(0x55d)];}[_0x29ff00(0x583)](){const _0x53ed81=_0x29ff00;var _0x1b2613;return(_0x1b2613=this['_configService'][_0x53ed81(0x1ea)](ni))!=null?_0x1b2613:this[_0x53ed81(0x23e)]();}[_0x29ff00(0x23e)](){const _0x3210cf=_0x29ff00;var _0x169ad0,_0x49344a;const _0x256bcf=this[_0x3210cf(0x4ea)][_0x3210cf(0x1ea)](ii),_0x106de9=this['_configService'][_0x3210cf(0x1ea)](Q);return(_0x49344a=(_0x169ad0=_0x106de9==null?void 0x0:_0x106de9[_0x3210cf(0x346)])!=null?_0x169ad0:_0x256bcf)!=null?_0x49344a:ki;}async['getResourcesRequest'](_0x5f2091,_0x9b1d96){const _0x36af8f=_0x29ff00,_0x306535=_0x36af8f(0x1e7)+_0x9b1d96[_0x36af8f(0x2eb)]+'/unit/'+_0x9b1d96[_0x36af8f(0x553)]+'/resources';return(await this[_0x36af8f(0x620)][_0x36af8f(0x2ef)](_0x306535,{'params':{'resourceId':JSON[_0x36af8f(0x65e)](_0x9b1d96[_0x36af8f(0x431)])}}))[_0x36af8f(0x55d)];}[_0x29ff00(0x52e)](){const _0x29ff72=_0x29ff00;throw new Error(_0x29ff72(0x49a));}['saveSheetBlock'](){const _0x2c3049=_0x29ff00;throw new Error(_0x2c3049(0x49a));}[_0x29ff00(0x26e)](){const _0x4e7493=_0x29ff00;throw new Error(_0x4e7493(0x49a));}[_0x29ff00(0x2c3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x47a3a3=_0x29ff00;throw new Error(_0x47a3a3(0x49a));}},exports[_0x29ff00(0x41c)]=Jr([ti(0x0,a['IConfigService']),ti(0x1,a[_0x29ff00(0x493)](z['HTTPService']))],exports[_0x29ff00(0x41c)]);var Zr=Object[_0x29ff00(0x64a)],Qr=Object['getOwnPropertyDescriptor'],eo=(_0x5c4b92,_0x45d5da,_0x4593f0,_0x3021bc)=>{for(var _0x2462fa=_0x3021bc>0x1?void 0x0:_0x3021bc?Qr(_0x45d5da,_0x4593f0):_0x45d5da,_0x2346d0=_0x5c4b92['length']-0x1,_0x57bd9e;_0x2346d0>=0x0;_0x2346d0--)(_0x57bd9e=_0x5c4b92[_0x2346d0])&&(_0x2462fa=(_0x3021bc?_0x57bd9e(_0x45d5da,_0x4593f0,_0x2462fa):_0x57bd9e(_0x2462fa))||_0x2462fa);return _0x3021bc&&_0x2462fa&&Zr(_0x45d5da,_0x4593f0,_0x2462fa),_0x2462fa;},Ne=(_0x3b0799,_0x2e0374)=>(_0x3d6b64,_0x25bbee)=>_0x2e0374(_0x3d6b64,_0x25bbee,_0x3b0799);let Ct=class extends a[_0x29ff00(0x2d8)]{constructor(_0x4e8990,_0x50d33d,_0xedd959,_0x4a9312,_0x25b599){const _0xb8b45c=_0x29ff00;super(_0x4e8990,_0x50d33d,_0xedd959),this['_transformService']=_0x4a9312,this[_0xb8b45c(0x328)]=_0x25b599;}[_0x29ff00(0x2a1)](_0x211a4a,_0x51119b){const _0x226465=_0x29ff00,_0x16b16f=this['_getUndoStack'](_0x211a4a);if(_0x16b16f)try{const _0x4bc245=this[_0x226465(0x537)](_0x16b16f,_0x51119b);this[_0x226465(0x543)](_0x211a4a,_0x4bc245);}catch(_0x589fe9){this[_0x226465(0x328)][_0x226465(0x27a)]('[CollaborationUndoRedoService]',_0x589fe9),this[_0x226465(0x40e)](_0x211a4a);}const _0x4fddb9=this['_getRedoStack'](_0x211a4a);if(_0x4fddb9)try{const _0x1a6132=this['_transformStack'](_0x4fddb9,_0x51119b);this['_substituteRedoStack'](_0x211a4a,_0x1a6132);}catch(_0x19e25d){this[_0x226465(0x328)][_0x226465(0x27a)](_0x19e25d),this[_0x226465(0x4ef)](_0x211a4a);}}['_clearUndo'](_0x2cd38f){const _0x408546=_0x29ff00,_0x4c7e5e=this[_0x408546(0x49b)](_0x2cd38f);_0x4c7e5e&&(_0x4c7e5e['length']=0x0,this[_0x408546(0x4f8)]());}['_clearRedo'](_0x5b5867){const _0x328f1c=_0x29ff00,_0x2bd96c=this[_0x328f1c(0x568)](_0x5b5867);_0x2bd96c&&(_0x2bd96c[_0x328f1c(0x5e7)]=0x0,this[_0x328f1c(0x4f8)]());}[_0x29ff00(0x543)](_0x37485c,_0x21647b){const _0x317c06=_0x29ff00;this[_0x317c06(0x522)][_0x317c06(0x20a)](_0x37485c,_0x21647b),this[_0x317c06(0x4f8)]();}[_0x29ff00(0x1d1)](_0x29eaea,_0x190e20){const _0x8bb57f=_0x29ff00;this[_0x8bb57f(0x48b)][_0x8bb57f(0x20a)](_0x29eaea,_0x190e20),this[_0x8bb57f(0x4f8)]();}['_transformStack'](_0x349a8a,_0x364b13){const _0x216f67=_0x29ff00,_0x2ebc61=[];let _0x146e6d=_0x364b13,_0x3ba12b=_0x364b13;for(let _0x587d37=_0x349a8a[_0x216f67(0x5e7)]-0x1;_0x587d37>=0x0;_0x587d37--){const {unitID:_0x4cd42a,undoMutations:_0x6688d4,redoMutations:_0x2a8b9e}=_0x349a8a[_0x587d37],_0x3cdb88=this[_0x216f67(0x449)]['transformMutationsWithChangeset'](_0x146e6d,_0x6688d4),_0x56aea6=this[_0x216f67(0x449)][_0x216f67(0x268)](_0x3ba12b,_0x2a8b9e);if(p[_0x216f67(0x1fa)](_0x3cdb88)||p[_0x216f67(0x1fa)](_0x56aea6)){this[_0x216f67(0x328)][_0x216f67(0x27a)](_0x216f67(0x31f),_0x216f67(0x45a),_0x3cdb88,_0x56aea6);break;}_0x146e6d=_0x3cdb88[_0x216f67(0x315)],_0x3ba12b=_0x56aea6[_0x216f67(0x315)],_0x2ebc61[_0x216f67(0x3bc)]({'unitID':_0x4cd42a,'undoMutations':_0x3cdb88[_0x216f67(0x239)],'redoMutations':_0x56aea6[_0x216f67(0x239)]});}return _0x2ebc61[_0x216f67(0x4e5)]();}};Ct=eo([Ne(0x0,a['IUniverInstanceService']),Ne(0x1,a[_0x29ff00(0x587)]),Ne(0x2,a[_0x29ff00(0x398)]),Ne(0x3,p[_0x29ff00(0x38f)]),Ne(0x4,a[_0x29ff00(0x4ac)])],Ct);class Li extends a[_0x29ff00(0x4b0)]{constructor(){const _0x2a08d3=_0x29ff00;super(),I(this,'urlChange$'),this['urlChange$']=A[_0x2a08d3(0x61c)](window,'popstate')[_0x2a08d3(0x619)](A[_0x2a08d3(0x264)](this[_0x2a08d3(0x2b6)]),A['shareReplay'](0x1),A[_0x2a08d3(0x2e1)](void 0x0));}[_0x29ff00(0x4c7)](_0x2fe037,_0xb68fd3,_0x279445=!0x1){const _0x3c2d57=_0x29ff00,_0x15f2d7=new URL(window[_0x3c2d57(0x60d)][_0x3c2d57(0x244)]);_0x15f2d7[_0x3c2d57(0x570)][_0x3c2d57(0x20a)](_0x2fe037,_0xb68fd3),_0x279445?window[_0x3c2d57(0x424)][_0x3c2d57(0x472)]('','',_0x15f2d7[_0x3c2d57(0x3ef)]()):window[_0x3c2d57(0x424)]['pushState']('','',_0x15f2d7['toString']());}['removeParam'](_0x150ae3,_0x286dd7=!0x1){const _0x48308a=_0x29ff00,_0x39c83b=new URL(window[_0x48308a(0x60d)][_0x48308a(0x244)]);_0x39c83b[_0x48308a(0x570)][_0x48308a(0x3dc)](_0x150ae3),_0x286dd7?window[_0x48308a(0x424)][_0x48308a(0x472)]('','',_0x39c83b[_0x48308a(0x3ef)]()):window[_0x48308a(0x424)][_0x48308a(0x336)]('','',_0x39c83b['toString']());}['getParam'](_0x274bfc){const _0xd22426=_0x29ff00;var _0x2c8634;return(_0x2c8634=new URL(window[_0xd22426(0x60d)][_0xd22426(0x244)])[_0xd22426(0x570)][_0xd22426(0x2ef)](_0x274bfc))!=null?_0x2c8634:void 0x0;}}var xi=Object['defineProperty'],to=Object[_0x29ff00(0x316)],io=(_0x3685a3,_0x56e194,_0x317157)=>_0x56e194 in _0x3685a3?xi(_0x3685a3,_0x56e194,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x317157}):_0x3685a3[_0x56e194]=_0x317157,no=(_0x3009f7,_0x2f8a5d,_0x3df48f,_0xb9cbff)=>{const _0x8f15fa=_0x29ff00;for(var _0x2b786b=_0xb9cbff>0x1?void 0x0:_0xb9cbff?to(_0x2f8a5d,_0x3df48f):_0x2f8a5d,_0x218b76=_0x3009f7[_0x8f15fa(0x5e7)]-0x1,_0x2e7493;_0x218b76>=0x0;_0x218b76--)(_0x2e7493=_0x3009f7[_0x218b76])&&(_0x2b786b=(_0xb9cbff?_0x2e7493(_0x2f8a5d,_0x3df48f,_0x2b786b):_0x2e7493(_0x2b786b))||_0x2b786b);return _0xb9cbff&&_0x2b786b&&xi(_0x2f8a5d,_0x3df48f,_0x2b786b),_0x2b786b;},He=(_0x2eafb3,_0x2af8e8)=>(_0x852c0b,_0x1d3d83)=>_0x2af8e8(_0x852c0b,_0x1d3d83,_0x2eafb3),so=(_0x49f3c3,_0x3daad3,_0x2ccc3c)=>io(_0x49f3c3,_0x3daad3+'',_0x2ccc3c);const ro='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x29ff00(0x63a)]=class extends a[_0x29ff00(0x3b7)]{constructor(_0x1d9a43=Zi,_0x11a497,_0x5e636e,_0x2d1d59,_0x1e2e46){const _0x2aefc5=_0x29ff00;super(),this[_0x2aefc5(0x4f5)]=_0x1d9a43,this[_0x2aefc5(0x328)]=_0x11a497,this[_0x2aefc5(0x4bc)]=_0x5e636e,this[_0x2aefc5(0x1c1)]=_0x2d1d59,this['_configService']=_0x1e2e46;const {..._0x2d2b7a}=this[_0x2aefc5(0x4f5)];this['_configService'][_0x2aefc5(0x2f0)](Q,_0x2d2b7a);}[_0x29ff00(0x481)](){const _0x5278ca=_0x29ff00;this['_registerDependencies'](),this[_0x5278ca(0x1d3)]();}['onReady'](){const _0x231975=_0x29ff00;a[_0x231975(0x3b1)](this[_0x231975(0x1c1)],[[Ge],[Ve]]);}[_0x29ff00(0x280)](){const _0x3105eb=_0x29ff00;this[_0x3105eb(0x50f)]();}[_0x29ff00(0x382)](){const _0x37aa0e=_0x29ff00;var _0x7114b3,_0x1c43ba,_0x580a89,_0x2f5234;this[_0x37aa0e(0x1c1)][_0x37aa0e(0x38d)](a[_0x37aa0e(0x325)])&&this[_0x37aa0e(0x328)][_0x37aa0e(0x27a)](_0x37aa0e(0x533),_0x37aa0e(0x59c));const _0x2eedbc=[[a[_0x37aa0e(0x325)],{'useClass':Ct}],[exports[_0x37aa0e(0x5ea)]],[Dt],[wt,{'useClass':Li}],[exports[_0x37aa0e(0x1d6)]],[exports[_0x37aa0e(0x46a)]],[z[_0x37aa0e(0x287)]],[ke],[Fe],[Be],[We],[yt],[Ye],[Ke],[Rt],[qe],[Tt,{'useClass':(_0x1c43ba=(_0x7114b3=this['_config'])==null?void 0x0:_0x7114b3[_0x37aa0e(0x678)])!=null?_0x1c43ba:exports[_0x37aa0e(0x374)]}],[p[_0x37aa0e(0x426)],{'useClass':exports[_0x37aa0e(0x41c)]}],[a[_0x37aa0e(0x605)],{'useClass':exports['AuthzIoHttpService']}],[ie['IImageIoService'],{'useClass':exports['ImageIoService']}],[a['IMentionIOService'],{'useClass':exports[_0x37aa0e(0x2bd)]}],[exports[_0x37aa0e(0x323)]],[exports[_0x37aa0e(0x61f)]],[exports[_0x37aa0e(0x4b2)]],[Ge],[De],[Ve]];(_0x580a89=this[_0x37aa0e(0x4f5)])!=null&&_0x580a89[_0x37aa0e(0x37a)]&&_0x2eedbc[_0x37aa0e(0x3bc)]([ze,{'useClass':Un}]),a['registerDependencies'](this[_0x37aa0e(0x1c1)],a['mergeOverrideWithDependencies'](_0x2eedbc,(_0x2f5234=this['_config'])==null?void 0x0:_0x2f5234[_0x37aa0e(0x4f9)]));}[_0x29ff00(0x50f)](){const _0x332e13=_0x29ff00;this['disposeWithMe'](this[_0x332e13(0x4bc)][_0x332e13(0x3ea)](a[_0x332e13(0x5ce)]['UNIVER_DOC'],[gt])),this[_0x332e13(0x665)](this[_0x332e13(0x4bc)][_0x332e13(0x3ea)](a[_0x332e13(0x5ce)][_0x332e13(0x3d0)],[It]));}[_0x29ff00(0x1d3)](){const _0x59ab9d=_0x29ff00;var _0x4a0a1b,_0x58c34a;this[_0x59ab9d(0x1c1)][_0x59ab9d(0x2ef)](z[_0x59ab9d(0x1be)])[_0x59ab9d(0x595)]({'priority':0x14,'interceptor':z[_0x59ab9d(0x4c9)]({'maxParallel':0x6})}),(_0x4a0a1b=this['_config'])!=null&&_0x4a0a1b[_0x59ab9d(0x482)]||this[_0x59ab9d(0x1c1)][_0x59ab9d(0x2ef)](exports[_0x59ab9d(0x46a)])['disableLocalCache'](),(_0x58c34a=this[_0x59ab9d(0x4f5)])!=null&&_0x58c34a[_0x59ab9d(0x594)]&&a[_0x59ab9d(0x3b1)](this[_0x59ab9d(0x1c1)],[[Ye]]),a[_0x59ab9d(0x3b1)](this['_injector'],[[Ke],[De],[exports['DataLoaderController']],[exports[_0x59ab9d(0x323)]],[exports[_0x59ab9d(0x4b2)]],[qe]]);}},so(exports['UniverCollaborationClientPlugin'],_0x29ff00(0x510),ro),exports[_0x29ff00(0x63a)]=no([a[_0x29ff00(0x569)](p[_0x29ff00(0x636)],z[_0x29ff00(0x2cc)]),He(0x1,a[_0x29ff00(0x4ac)]),He(0x2,K[_0x29ff00(0x5b7)]),He(0x3,a['Inject'](a[_0x29ff00(0x615)])),He(0x4,a['IConfigService'])],exports['UniverCollaborationClientPlugin']),exports[_0x29ff00(0x5f1)]=Ut,exports[_0x29ff00(0x218)]=Q,exports[_0x29ff00(0x1dd)]=li,exports[_0x29ff00(0x477)]=si,exports['CollaborationStatus']=q,exports[_0x29ff00(0x417)]=Oi,exports[_0x29ff00(0x30a)]=Rt,exports[_0x29ff00(0x1f9)]=ri,exports[_0x29ff00(0x473)]=Et,exports['ICollaborationSocketService']=Tt,exports['IURLService']=wt,exports[_0x29ff00(0x39b)]=ci,exports[_0x29ff00(0x5e1)]=hi,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=ai,exports[_0x29ff00(0x45b)]=Wi,exports[_0x29ff00(0x3fd)]=ii,exports[_0x29ff00(0x238)]=ni,exports[_0x29ff00(0x240)]=se,exports[_0x29ff00(0x5c9)]=Ii,exports[_0x29ff00(0x565)]=Li,exports[_0x29ff00(0x66e)]=di,exports['serializeCombRequest']=fi;
|
1
|
+
'use strict';const _0x2399be=_0x52c2;(function(_0x3b8414,_0x631f38){const _0x3e8ac1=_0x52c2,_0x5b0110=_0x3b8414();while(!![]){try{const _0x5a9371=-parseInt(_0x3e8ac1(0x327))/0x1+parseInt(_0x3e8ac1(0x4fc))/0x2*(-parseInt(_0x3e8ac1(0x437))/0x3)+parseInt(_0x3e8ac1(0x479))/0x4+parseInt(_0x3e8ac1(0x35b))/0x5*(parseInt(_0x3e8ac1(0x624))/0x6)+parseInt(_0x3e8ac1(0x4ed))/0x7+-parseInt(_0x3e8ac1(0x5fe))/0x8+parseInt(_0x3e8ac1(0x4ad))/0x9*(parseInt(_0x3e8ac1(0x314))/0xa);if(_0x5a9371===_0x631f38)break;else _0x5b0110['push'](_0x5b0110['shift']());}catch(_0x76b364){_0x5b0110['push'](_0x5b0110['shift']());}}}(_0x1d6f,0x23373));var Fi=Object[_0x2399be(0x28d)],Vi=(_0x532b76,_0x52357e,_0x393e82)=>_0x52357e in _0x532b76?Fi(_0x532b76,_0x52357e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x393e82}):_0x532b76[_0x52357e]=_0x393e82,I=(_0x3af5b5,_0x15f605,_0xfe0b15)=>Vi(_0x3af5b5,typeof _0x15f605!=_0x2399be(0x192)?_0x15f605+'':_0x15f605,_0xfe0b15);Object[_0x2399be(0x28d)](exports,Symbol[_0x2399be(0x507)],{'value':_0x2399be(0x198)});const a=require(_0x2399be(0x4b4)),N=require(_0x2399be(0x462)),V=require(_0x2399be(0x374)),Ce=require(_0x2399be(0x48a)),z=require(_0x2399be(0x43f)),ee=require('@univerjs/ui'),m=require(_0x2399be(0x263)),Gi=require(_0x2399be(0x201)),Ie=require('@univerjs/docs'),J=require(_0x2399be(0x309)),k=require(_0x2399be(0x490)),Y=require(_0x2399be(0x1e7)),te=require('@univerjs/drawing'),$t=require(_0x2399be(0x603)),Le=require(_0x2399be(0x235)),oe=require(_0x2399be(0x4ba)),Yi=require('@univerjs/rpc'),fi='SNAPSHOT_SERVER_URL_KEY',qi=_0x2399be(0x482),vi=_0x2399be(0x5b8),Ki=_0x2399be(0x282),zi=0x7d0,Si=_0x2399be(0x2b4),Xi='ws://127.0.0.1:8000/universer-api/comb/connect',Ji=_0x2399be(0x494),pi='HEARTBEAT_INTERVAL',Zi=0x7530,Dt=_0x2399be(0x2ea),mi=0x4e20,Qi=0x4e20,gi=_0x2399be(0x32a),en=0x3,Ii=_0x2399be(0x4e0),tn=0x3e8,Ci='COLLAB_SUBMIT_CHANGESET_URL',nn=_0x2399be(0x5a0),Ei=_0x2399be(0x4ab),rn=_0x2399be(0x508);var bi=(_0x543230=>(_0x543230[_0x543230[_0x2399be(0x523)]=0x0]=_0x2399be(0x523),_0x543230[_0x543230['OK']=0x1]='OK',_0x543230[_0x543230[_0x2399be(0x1f6)]=0x2]='INTERNAL_ERROR',_0x543230[_0x543230[_0x2399be(0x272)]=0x3]='PERMISSION_DENIED',_0x543230[_0x543230[_0x2399be(0x404)]=0x4]=_0x2399be(0x404),_0x543230[_0x543230[_0x2399be(0x623)]=0x5]=_0x2399be(0x623),_0x543230[_0x543230[_0x2399be(0x183)]=0x6]=_0x2399be(0x183),_0x543230[_0x543230[_0x2399be(0x384)]=0x7]='INVALID_ARGUMENT',_0x543230[_0x543230[_0x2399be(0x440)]=0x8]=_0x2399be(0x440),_0x543230[_0x543230[_0x2399be(0x1e4)]=0x9]='COMPLETION_FINISHED',_0x543230[_0x543230[_0x2399be(0x424)]=0x1389]=_0x2399be(0x424),_0x543230[_0x543230[_0x2399be(0x5a3)]=0x1771]=_0x2399be(0x5a3),_0x543230[_0x543230[_0x2399be(0x25f)]=0x1772]=_0x2399be(0x25f),_0x543230[_0x543230[_0x2399be(0x5ce)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x543230[_0x543230[_0x2399be(0x2b5)]=0x1b59]='APPLY_REJECT',_0x543230[_0x543230['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2399be(0x3fb),_0x543230[_0x543230['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2399be(0x4af),_0x543230[_0x543230[_0x2399be(0x377)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x543230[_0x543230[_0x2399be(0x3e8)]=0x1b5d]=_0x2399be(0x3e8),_0x543230[_0x543230['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2399be(0x321),_0x543230[_0x543230[_0x2399be(0x4df)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x543230[_0x543230[_0x2399be(0x40c)]=0x232a]=_0x2399be(0x40c),_0x543230[_0x543230[_0x2399be(0x4ac)]=0x232b]=_0x2399be(0x4ac),_0x543230[_0x543230[_0x2399be(0x335)]=0x232c]=_0x2399be(0x335),_0x543230[_0x543230['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2399be(0x571),_0x543230[_0x543230['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x543230[_0x543230['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2399be(0x631),_0x543230[_0x543230['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2399be(0x5cd),_0x543230[_0x543230[_0x2399be(0x1b2)]=0x2714]=_0x2399be(0x1b2),_0x543230[_0x543230[_0x2399be(0x194)]=-0x1]=_0x2399be(0x194),_0x543230))(bi||{}),ie=(_0x3bb0a5=>(_0x3bb0a5[_0x3bb0a5[_0x2399be(0x1cf)]=0x0]=_0x2399be(0x1cf),_0x3bb0a5[_0x3bb0a5[_0x2399be(0x4f4)]=0x1]=_0x2399be(0x4f4),_0x3bb0a5[_0x3bb0a5[_0x2399be(0x52f)]=0x2]=_0x2399be(0x52f),_0x3bb0a5[_0x3bb0a5[_0x2399be(0x417)]=0x3]=_0x2399be(0x417),_0x3bb0a5[_0x3bb0a5[_0x2399be(0x39b)]=0x4]=_0x2399be(0x39b),_0x3bb0a5[_0x3bb0a5['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3bb0a5))(ie||{}),G=(_0x13def4=>(_0x13def4[_0x13def4[_0x2399be(0x31e)]=0x0]='UNKNOWN_CMD',_0x13def4[_0x13def4['HELLO']=0x1]=_0x2399be(0x602),_0x13def4[_0x13def4[_0x2399be(0x40b)]=0x2]='JOIN',_0x13def4[_0x13def4[_0x2399be(0x3d3)]=0x3]=_0x2399be(0x3d3),_0x13def4[_0x13def4[_0x2399be(0x439)]=0x4]='INGEST',_0x13def4[_0x13def4[_0x2399be(0x54a)]=0x5]=_0x2399be(0x54a),_0x13def4[_0x13def4[_0x2399be(0x2e0)]=0x6]=_0x2399be(0x2e0),_0x13def4[_0x13def4[_0x2399be(0x194)]=-0x1]=_0x2399be(0x194),_0x13def4))(G||{}),ge=(_0x1a4e59=>(_0x1a4e59[_0x1a4e59[_0x2399be(0x21b)]=0x0]=_0x2399be(0x21b),_0x1a4e59[_0x1a4e59['OK']=0x1]='OK',_0x1a4e59[_0x1a4e59[_0x2399be(0x1a9)]=0x2]=_0x2399be(0x1a9),_0x1a4e59[_0x1a4e59[_0x2399be(0x48f)]=0x3e9]=_0x2399be(0x48f),_0x1a4e59[_0x1a4e59[_0x2399be(0x255)]=0x3ea]=_0x2399be(0x255),_0x1a4e59[_0x1a4e59['JOIN_ROOM_PERMISSION_DENIED']=0x3eb]=_0x2399be(0x45d),_0x1a4e59[_0x1a4e59[_0x2399be(0x647)]=0x3ec]=_0x2399be(0x647),_0x1a4e59[_0x1a4e59[_0x2399be(0x194)]=-0x1]='UNRECOGNIZED',_0x1a4e59))(ge||{}),Ti=(_0x1137b3=>(_0x1137b3[_0x1137b3[_0x2399be(0x211)]=0x0]='Undefined',_0x1137b3[_0x1137b3[_0x2399be(0x601)]=0x1]='HttpImport',_0x1137b3[_0x1137b3['HttpExport']=0x2]=_0x2399be(0x470),_0x1137b3[_0x1137b3[_0x2399be(0x5eb)]=0x3]=_0x2399be(0x5eb),_0x1137b3[_0x1137b3['UnitSnapshot']=0x4]=_0x2399be(0x32e),_0x1137b3[_0x1137b3[_0x2399be(0x194)]=-0x1]=_0x2399be(0x194),_0x1137b3))(Ti||{});const Z=_0x2399be(0x3c9),sn={};function Ri(_0x4c765b){const _0x479a11=_0x2399be;var _0x110233,_0x55eeeb,_0x19cf16,_0x6e1818,_0x4b337f;const _0x23b08f=_0x4c765b[_0x479a11(0x3fa)],_0x512b86=JSON[_0x479a11(0x62e)](_0x23b08f);switch(_0x512b86[_0x479a11(0x567)]){case G['HEARTBEAT']:case G[_0x479a11(0x602)]:{const _0x2f0793=_0x512b86['infoRsp'];return{..._0x512b86,'data':_0x2f0793,'cmd':_0x512b86[_0x479a11(0x567)]};}case G[_0x479a11(0x40b)]:{const _0x1f41e7=_0x512b86[_0x479a11(0x606)];return{..._0x512b86,'data':_0x1f41e7,'cmd':_0x512b86['cmd']};}case G['RECV']:{const _0x1a73b1=_0x512b86[_0x479a11(0x32f)];switch(_0x1a73b1['eventID']){case m[_0x479a11(0x563)]['PERMISSION_REJ']:return{..._0x512b86,'data':{..._0x1a73b1,'data':(_0x110233=_0x1a73b1[_0x479a11(0x545)])==null?void 0x0:_0x110233['cs']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)][_0x479a11(0x610)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':(_0x55eeeb=_0x1a73b1['csAckEvent'])==null?void 0x0:_0x55eeeb['cs']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)]['NEW_CHANGESETS']:return{..._0x512b86,'data':{..._0x1a73b1,'data':(_0x19cf16=_0x1a73b1[_0x479a11(0x2d3)])==null?void 0x0:_0x19cf16['cs']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)][_0x479a11(0x2d9)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':(_0x6e1818=_0x1a73b1[_0x479a11(0x2c3)])==null?void 0x0:_0x6e1818['cs']},'cmd':_0x512b86['cmd']};case m[_0x479a11(0x563)][_0x479a11(0x2a3)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':(_0x4b337f=_0x1a73b1[_0x479a11(0x5b6)])==null?void 0x0:_0x4b337f['cs']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)]['UPDATE_CURSOR']:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1[_0x479a11(0x296)]},'cmd':_0x512b86[_0x479a11(0x567)]};case m['CollaborationEvent']['USERS_ENTER']:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1['joinEvent']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)]['USERS_LEAVE']:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1['leaveEvent']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)][_0x479a11(0x3d2)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1['liveShareNewHost']},'cmd':_0x512b86[_0x479a11(0x567)]};case m['CollaborationEvent'][_0x479a11(0x26b)]:case m['CollaborationEvent'][_0x479a11(0x3b8)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1[_0x479a11(0x564)]},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)][_0x479a11(0x316)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1['liveShareNewHost']},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)][_0x479a11(0x47f)]:return{..._0x512b86,'data':_0x1a73b1,'cmd':_0x512b86['cmd']};case m[_0x479a11(0x563)][_0x479a11(0x33e)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1[_0x479a11(0x2eb)]},'cmd':_0x512b86['cmd']};case m[_0x479a11(0x563)][_0x479a11(0x40a)]:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1[_0x479a11(0x3ea)]},'cmd':_0x512b86[_0x479a11(0x567)]};case m[_0x479a11(0x563)]['SHOULD_CLOSE_CONN']:return{..._0x512b86,'data':{..._0x1a73b1,'data':_0x1a73b1['shouldCloseConn']},'cmd':_0x512b86[_0x479a11(0x567)]};default:return _0x512b86;}}default:return _0x512b86;}}function Oi(_0x402efc){const _0x2cbd85=_0x2399be;switch(_0x402efc[_0x2cbd85(0x567)]){case G['HEARTBEAT']:case G[_0x2cbd85(0x602)]:return JSON['stringify']({'cmd':_0x402efc[_0x2cbd85(0x567)],'routeKey':_0x402efc['routeKey']});case G['INGEST']:{let _0x1dae7e;switch(_0x402efc['data'][_0x2cbd85(0x1e9)]){case m[_0x2cbd85(0x563)][_0x2cbd85(0x574)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)]['UPDATE_CURSOR'],'updateCursorEvent':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m[_0x2cbd85(0x563)][_0x2cbd85(0x5a4)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)][_0x2cbd85(0x5a4)],'leaveEvent':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m['CollaborationEvent'][_0x2cbd85(0x578)]:{_0x1dae7e={'eventID':m['CollaborationEvent'][_0x2cbd85(0x578)],'joinEvent':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m[_0x2cbd85(0x563)][_0x2cbd85(0x3d2)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)][_0x2cbd85(0x3d2)],'liveShareNewHost':_0x402efc[_0x2cbd85(0x3fa)]['data']};break;}case m[_0x2cbd85(0x563)][_0x2cbd85(0x3b8)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)][_0x2cbd85(0x3b8)],'liveShareOperation':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m[_0x2cbd85(0x563)][_0x2cbd85(0x185)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)][_0x2cbd85(0x185)],'liveShareRequestHost':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x3fa)]};break;}case m[_0x2cbd85(0x563)][_0x2cbd85(0x26b)]:{_0x1dae7e={'eventID':m[_0x2cbd85(0x563)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1dae7e={'eventID':_0x402efc[_0x2cbd85(0x3fa)][_0x2cbd85(0x1e9)]};}return JSON[_0x2cbd85(0x4e1)]({'cmd':_0x402efc[_0x2cbd85(0x567)],'routeKey':_0x402efc['routeKey'],'collaMsg':_0x1dae7e});}case G[_0x2cbd85(0x40b)]:return JSON['stringify']({'cmd':_0x402efc[_0x2cbd85(0x567)],'routeKey':_0x402efc['routeKey'],'joinReq':_0x402efc[_0x2cbd85(0x3fa)]});case G[_0x2cbd85(0x3d3)]:return JSON[_0x2cbd85(0x4e1)]({'cmd':_0x402efc[_0x2cbd85(0x567)],'routeKey':_0x402efc[_0x2cbd85(0x498)],'leaveReq':_0x402efc[_0x2cbd85(0x3fa)]});default:throw new Error(_0x2cbd85(0x278));}}var on=Object['defineProperty'],an=Object[_0x2399be(0x398)],cn=(_0x3808b9,_0x2ec1a5,_0x5aefc6,_0x16ae50)=>{for(var _0x3afc55=_0x16ae50>0x1?void 0x0:_0x16ae50?an(_0x2ec1a5,_0x5aefc6):_0x2ec1a5,_0x5e5865=_0x3808b9['length']-0x1,_0x3b93b2;_0x5e5865>=0x0;_0x5e5865--)(_0x3b93b2=_0x3808b9[_0x5e5865])&&(_0x3afc55=(_0x16ae50?_0x3b93b2(_0x2ec1a5,_0x5aefc6,_0x3afc55):_0x3b93b2(_0x3afc55))||_0x3afc55);return _0x16ae50&&_0x3afc55&&on(_0x2ec1a5,_0x5aefc6,_0x3afc55),_0x3afc55;},De=(_0x348671,_0x333174)=>(_0x199987,_0x262c5d)=>_0x333174(_0x199987,_0x262c5d,_0x348671);const Pt=a[_0x2399be(0x443)](_0x2399be(0x480));function ln(_0x300508,_0x470585,_0x1429cb){const _0x162398=_0x2399be;return _0x300508+'/'+_0x470585+_0x162398(0x451)+_0x1429cb+_0x162398(0x515);}exports[_0x2399be(0x392)]=class extends a[_0x2399be(0x597)]{constructor(_0x7efb45,_0x16bf5c,_0x13be74,_0x57e95c,_0x3b997e){const _0x407627=_0x2399be;super(),this[_0x407627(0x455)]=_0x7efb45,this[_0x407627(0x1c7)]=_0x16bf5c,this[_0x407627(0x2a2)]=_0x13be74,this[_0x407627(0x364)]=_0x57e95c,this[_0x407627(0x244)]=_0x3b997e;}[_0x2399be(0x403)](_0x5001b5){const _0x202b1a=_0x2399be,_0x20a49a=this[_0x202b1a(0x1c7)][_0x202b1a(0x403)](_0x5001b5);if(!_0x20a49a)throw new Error(_0x202b1a(0x4aa));const _0x4384c8=new a['DisposableCollection'](),_0x100f91=new N['Subject']();_0x4384c8[_0x202b1a(0x280)](_0x20a49a[_0x202b1a(0x55a)][_0x202b1a(0x468)](_0x29968b=>_0x100f91['next'](_0x29968b))),_0x4384c8['add'](a['toDisposable'](()=>_0x100f91[_0x202b1a(0x52b)]()));const _0x438573=new N['Subject']();_0x4384c8[_0x202b1a(0x280)](_0x20a49a[_0x202b1a(0x27b)]['subscribe'](_0x5ec621=>_0x438573['next'](_0x5ec621))),_0x4384c8[_0x202b1a(0x280)](a['toDisposable'](()=>_0x438573['complete']()));const _0x385ce7=new N['Subject']();_0x4384c8[_0x202b1a(0x280)](_0x20a49a[_0x202b1a(0x5e7)][_0x202b1a(0x468)](_0x2ea60c=>{const _0xb9462f=_0x202b1a,_0x18e1a4=Ri(_0x2ea60c);_0x385ce7[_0xb9462f(0x4db)](_0x18e1a4);})),_0x4384c8['add'](a[_0x202b1a(0x518)](()=>_0x385ce7[_0x202b1a(0x52b)]()));let _0x1073a2;const _0x346c14=()=>{const _0x3e41e8=_0x202b1a;_0x438573['next'](new Event('connection\x20error')),_0x100f91[_0x3e41e8(0x4db)](new CloseEvent(_0x3e41e8(0x456))),_0x1073a2[_0x3e41e8(0x3ce)]();};return _0x1073a2={'memberID':'','close$':_0x100f91[_0x202b1a(0x295)](),'error$':_0x438573[_0x202b1a(0x295)](),'open$':_0x20a49a[_0x202b1a(0x5ca)],'message$':_0x385ce7['asObservable'](),'send':_0x3d7c7c=>{const _0x46d993=_0x202b1a;if(_0x3d7c7c[_0x46d993(0x567)]===G[_0x46d993(0x439)]){if(_0x3d7c7c['data'][_0x46d993(0x1e9)]===m[_0x46d993(0x563)][_0x46d993(0x271)]){this['_submitChangeset'](_0x1073a2,_0x3d7c7c[_0x46d993(0x3fa)])[_0x46d993(0x5e1)](_0x402700=>{const _0x291916=_0x46d993;this[_0x291916(0x364)][_0x291916(0x3b0)](_0x402700),_0x346c14();});return;}if(_0x3d7c7c[_0x46d993(0x3fa)][_0x46d993(0x1e9)]===m[_0x46d993(0x563)][_0x46d993(0x4f3)]){const _0x1cbb7c=_0x3d7c7c[_0x46d993(0x3fa)];this[_0x46d993(0x37d)](_0x1cbb7c)[_0x46d993(0x561)](_0x578fcc=>{const _0x8a6e58=_0x46d993;_0x385ce7[_0x8a6e58(0x4db)]({'cmd':G[_0x8a6e58(0x2e0)],'code':ge['OK'],'routeKey':_0x1cbb7c[_0x8a6e58(0x3fa)][_0x8a6e58(0x533)],'routeType':'','data':{'eventID':m[_0x8a6e58(0x563)][_0x8a6e58(0x24c)],'data':{'changesets':_0x578fcc}}});})[_0x46d993(0x5e1)](_0x55c7be=>{const _0x63e229=_0x46d993;this[_0x63e229(0x364)]['error'](_0x55c7be),_0x346c14();});return;}}_0x20a49a[_0x46d993(0x315)](Oi(_0x3d7c7c));},'close':()=>{const _0x4065cb=_0x202b1a;_0x20a49a[_0x4065cb(0x3ce)](),_0x4384c8[_0x4065cb(0x5f4)]();}},_0x1073a2;}async[_0x2399be(0x5d5)](_0x5a7cc0,_0x55d835){const _0x41b330=_0x2399be;var _0x3e265a,_0x5b2113;const {unitType:_0x2dfdaf,unitID:_0x1a39e2,changeset:_0x388ac6}=_0x55d835[_0x41b330(0x3fa)],_0x324955={'unitID':_0x1a39e2,'memberID':_0x5a7cc0['memberID'],'type':_0x2dfdaf,'changeset':m['parseChangesetToProtocol'](_0x388ac6)},_0x12b456=this[_0x41b330(0x2a2)]['getConfig'](Ci),_0x23f5d0=this[_0x41b330(0x2a2)][_0x41b330(0x2c1)](Z),_0x2e9e0d=ln((_0x5b2113=(_0x3e265a=_0x23f5d0==null?void 0x0:_0x23f5d0[_0x41b330(0x50c)])!=null?_0x3e265a:_0x12b456)!=null?_0x5b2113:nn,_0x2dfdaf,_0x1a39e2);try{await this[_0x41b330(0x455)]['post'](_0x2e9e0d,{'body':_0x324955});}catch(_0x2c66eb){throw this[_0x41b330(0x364)][_0x41b330(0x3b0)]('[CollaborationSession]',_0x41b330(0x3b2)),_0x2c66eb;}}async[_0x2399be(0x37d)](_0x575235){const _0x1a38e0=_0x2399be,{unitID:_0x1146a4,from:_0x4ae86e,to:_0x1474b1,unitType:_0x51a3f1}=_0x575235['data'];return(await this[_0x1a38e0(0x244)][_0x1a38e0(0x5f6)]({'metadata':void 0x0},{'unitID':_0x1146a4,'type':_0x51a3f1,'from':_0x4ae86e,'to':_0x1474b1}))['changesets'];}},exports[_0x2399be(0x392)]=cn([De(0x0,a[_0x2399be(0x24b)](z['HTTPService'])),De(0x1,a[_0x2399be(0x24b)](z[_0x2399be(0x1ed)])),De(0x2,a[_0x2399be(0x5b1)]),De(0x3,a[_0x2399be(0x373)]),De(0x4,m[_0x2399be(0x430)])],exports[_0x2399be(0x392)]);const hn=_0x2399be(0x2c2);function _n(_0xb44ed8){const _0x559dda=_0x2399be;return JSON['stringify'](_0xb44ed8)[_0x559dda(0x477)];}class wt{constructor(){const _0x45de3c=_0x2399be;I(this,'_commentUpdate$',new N[(_0x45de3c(0x512))]()),I(this,'commentUpdate$',this[_0x45de3c(0x632)][_0x45de3c(0x295)]());}[_0x2399be(0x62c)](_0x1fd3a2){const _0x46c2be=_0x2399be;this[_0x46c2be(0x632)]['next'](_0x1fd3a2);}}var un=Object[_0x2399be(0x28d)],dn=Object[_0x2399be(0x398)],fn=(_0x526990,_0x4b4922,_0x508ead,_0x29dfa2)=>{const _0x986ed1=_0x2399be;for(var _0x174aeb=_0x29dfa2>0x1?void 0x0:_0x29dfa2?dn(_0x4b4922,_0x508ead):_0x4b4922,_0x208707=_0x526990[_0x986ed1(0x477)]-0x1,_0x3389ff;_0x208707>=0x0;_0x208707--)(_0x3389ff=_0x526990[_0x208707])&&(_0x174aeb=(_0x29dfa2?_0x3389ff(_0x4b4922,_0x508ead,_0x174aeb):_0x3389ff(_0x174aeb))||_0x174aeb);return _0x29dfa2&&_0x174aeb&&un(_0x4b4922,_0x508ead,_0x174aeb),_0x174aeb;},jt=(_0x50d8c3,_0x1d4356)=>(_0x46650f,_0x495235)=>_0x1d4356(_0x46650f,_0x495235,_0x50d8c3);exports['MemberService']=class extends a[_0x2399be(0x597)]{constructor(_0x1b941b,_0x5b109f){const _0x191353=_0x2399be;super(),I(this,_0x191353(0x617),new Map()),(this[_0x191353(0x435)]=_0x1b941b,this[_0x191353(0x51e)]=_0x5b109f,this['disposeWithMe'](a['toDisposable'](N['merge'](this['_univerInstanceService'][_0x191353(0x5c2)](a[_0x191353(0x2e6)][_0x191353(0x52f)])[_0x191353(0x527)](V[_0x191353(0x302)](_0x4198f5=>_0x4198f5[_0x191353(0x27c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x191353(0x2e6)][_0x191353(0x4f4)])[_0x191353(0x527)](V[_0x191353(0x302)](_0xb581e1=>_0xb581e1[_0x191353(0x27c)]())),this[_0x191353(0x435)][_0x191353(0x5c2)](a[_0x191353(0x2e6)][_0x191353(0x417)])[_0x191353(0x527)](V[_0x191353(0x302)](_0x1b271e=>_0x1b271e[_0x191353(0x27c)]())))[_0x191353(0x468)](_0x26f438=>this[_0x191353(0x59e)](_0x26f438)))));}[_0x2399be(0x334)](_0x1dc678){const _0x43e53=_0x2399be;this[_0x43e53(0x51e)][_0x43e53(0x334)](_0x1dc678);}[_0x2399be(0x64f)](){const _0x5d3365=_0x2399be;return this[_0x5d3365(0x51e)][_0x5d3365(0x64f)]();}[_0x2399be(0x22b)](_0x583d1b,_0x4e0ce9){const _0x2a13a0=_0x2399be;let _0x2fc904=this[_0x2a13a0(0x617)][_0x2a13a0(0x654)](_0x583d1b);_0x2fc904||(_0x2fc904=new vn(),this[_0x2a13a0(0x617)][_0x2a13a0(0x593)](_0x583d1b,_0x2fc904)),_0x2fc904[_0x2a13a0(0x22b)](_0x4e0ce9);}[_0x2399be(0x579)](_0x15e4d9,_0x28ac58){const _0x16f4dc=_0x2399be,_0x527b42=this[_0x16f4dc(0x617)][_0x16f4dc(0x654)](_0x15e4d9);_0x527b42&&_0x527b42[_0x16f4dc(0x579)](_0x28ac58);}[_0x2399be(0x2d2)](_0x2b1c0d){const _0x3c5fb7=_0x2399be;return this['_roomMembers'][_0x3c5fb7(0x654)](_0x2b1c0d);}[_0x2399be(0x224)](_0x48c0fe,_0x16096d){const _0x5a61b5=_0x2399be,_0x256bf5=this[_0x5a61b5(0x617)][_0x5a61b5(0x654)](_0x48c0fe);if(_0x256bf5)return _0x256bf5[_0x5a61b5(0x224)](_0x16096d);}[_0x2399be(0x59e)](_0xcd7898){const _0x972d30=_0x2399be,_0x596fe7=this['_roomMembers'][_0x972d30(0x654)](_0xcd7898);_0x596fe7&&(_0x596fe7['dispose'](),this[_0x972d30(0x617)]['delete'](_0xcd7898));}[_0x2399be(0x5f4)](){const _0x24d4fe=_0x2399be;this[_0x24d4fe(0x617)][_0x24d4fe(0x306)](_0x1c71bd=>_0x1c71bd[_0x24d4fe(0x5f4)]()),this[_0x24d4fe(0x617)][_0x24d4fe(0x40e)]();}},exports[_0x2399be(0x4e4)]=fn([jt(0x0,a[_0x2399be(0x53e)]),jt(0x1,a[_0x2399be(0x24b)](a['UserManagerService']))],exports[_0x2399be(0x4e4)]);class vn extends a['Disposable']{constructor(){const _0x17cf6f=_0x2399be;super(...arguments),I(this,_0x17cf6f(0x5ad),new Map());}['dispose'](){const _0x8fbdd7=_0x2399be;this[_0x8fbdd7(0x5ad)]['clear']();}[_0x2399be(0x22b)](_0x2bea88){const _0x50abe3=_0x2399be;this[_0x50abe3(0x5ad)]['set'](_0x2bea88[_0x50abe3(0x28f)],_0x2bea88);}['removeMember'](_0x16da78){const _0x1ca823=_0x2399be;this['_members'][_0x1ca823(0x240)](_0x16da78);}['getMember'](_0x3332f8){const _0xc4c00c=_0x2399be;return this['_members'][_0xc4c00c(0x654)](_0x3332f8);}[_0x2399be(0x57d)](){const _0x1e87cc=_0x2399be;return Array['from'](this[_0x1e87cc(0x5ad)][_0x1e87cc(0x559)]());}}var Sn=Object['defineProperty'],pn=Object['getOwnPropertyDescriptor'],mn=(_0x13c2c1,_0x121710,_0x265ed2,_0x158629)=>{const _0x2a8abc=_0x2399be;for(var _0x12cefc=_0x158629>0x1?void 0x0:_0x158629?pn(_0x121710,_0x265ed2):_0x121710,_0x13c8db=_0x13c2c1[_0x2a8abc(0x477)]-0x1,_0x428a70;_0x13c8db>=0x0;_0x13c8db--)(_0x428a70=_0x13c2c1[_0x13c8db])&&(_0x12cefc=(_0x158629?_0x428a70(_0x121710,_0x265ed2,_0x12cefc):_0x428a70(_0x12cefc))||_0x12cefc);return _0x158629&&_0x12cefc&&Sn(_0x121710,_0x265ed2,_0x12cefc),_0x12cefc;},ue=(_0x210d30,_0x44e05)=>(_0x1af41c,_0x19b528)=>_0x44e05(_0x1af41c,_0x19b528,_0x210d30),ne=(_0x5a2b0d=>(_0x5a2b0d[_0x5a2b0d['IDLE']=0x0]='IDLE',_0x5a2b0d[_0x5a2b0d['JOINING']=0x1]=_0x2399be(0x2a4),_0x5a2b0d[_0x5a2b0d[_0x2399be(0x3ee)]=0x2]=_0x2399be(0x3ee),_0x5a2b0d[_0x5a2b0d['ONLINE']=0x3]=_0x2399be(0x60b),_0x5a2b0d))(ne||{});const Ht={[ge[_0x2399be(0x1a9)]]:'session.join-failed',[ge[_0x2399be(0x48f)]]:_0x2399be(0x305),[ge[_0x2399be(0x255)]]:_0x2399be(0x3b1),[ge[_0x2399be(0x45d)]]:'session.room-permission-denied',[ge[_0x2399be(0x647)]]:'session.room-cnt-exceeds'};exports[_0x2399be(0x307)]=class extends a[_0x2399be(0x551)]{constructor(_0x30f4c8,_0x57424f,_0x302676,_0x1ad6ce,_0x543bf9,_0x115565,_0x4864c5,_0x583fc7,_0x109409,_0x12dae5){const _0x33526f=_0x2399be;super(),I(this,'_sessionStatus$',new N['BehaviorSubject'](0x0)),I(this,_0x33526f(0x22e),this[_0x33526f(0x4b6)][_0x33526f(0x295)]()),I(this,_0x33526f(0x29f),new N['Subject']()),I(this,_0x33526f(0x29c),this[_0x33526f(0x29f)][_0x33526f(0x295)]()),I(this,'_socket'),I(this,_0x33526f(0x3db)),I(this,_0x33526f(0x396)),I(this,_0x33526f(0x1a1),!0x1),I(this,_0x33526f(0x2b1),null),(this[_0x33526f(0x1e8)]=_0x30f4c8,this[_0x33526f(0x364)]=_0x302676,this['_beforeCloseService']=_0x1ad6ce,this[_0x33526f(0x50b)]=_0x543bf9,this[_0x33526f(0x2a2)]=_0x115565,this[_0x33526f(0x1b1)]=_0x4864c5,this[_0x33526f(0x2ed)]=_0x583fc7,this[_0x33526f(0x26d)]=_0x109409,this[_0x33526f(0x43a)]=_0x12dae5,this[_0x33526f(0x1a1)]=!!this[_0x33526f(0x43a)],_0x57424f[_0x33526f(0x527)](N[_0x33526f(0x30c)](this[_0x33526f(0x33b)]))[_0x33526f(0x468)](_0x30d5a3=>{const _0x255132=_0x33526f;var _0x264090;typeof _0x30d5a3>'u'||(this[_0x255132(0x5cb)]=_0x30d5a3,_0x30d5a3?(this[_0x255132(0x423)](_0x30d5a3),this[_0x255132(0x3db)]=_0x30d5a3['message$'][_0x255132(0x468)](_0x12045d=>{const _0x454b76=_0x255132;_0x12045d['routeKey']===this[_0x454b76(0x1e8)]&&this[_0x454b76(0x540)](_0x12045d);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x255132(0x4b6)][_0x255132(0x4db)](0x2),(_0x264090=this[_0x255132(0x3db)])==null||_0x264090[_0x255132(0x269)](),this['_socketMessageSubscription']=null));}),this[_0x33526f(0x228)](this[_0x33526f(0x549)]['registerOnClose'](()=>{const _0x54890d=_0x33526f;var _0x3f43f4;(_0x3f43f4=this['_socket'])==null||_0x3f43f4[_0x54890d(0x315)]({'cmd':G[_0x54890d(0x3d3)],'data':{'roomID':this[_0x54890d(0x1e8)]}});})));}get[_0x2399be(0x3e7)](){const _0x1c86fb=_0x2399be;return this[_0x1c86fb(0x4b6)][_0x1c86fb(0x1b0)]();}[_0x2399be(0x473)](){const _0x17ce11=_0x2399be;var _0x82d49c,_0x463901;return(_0x463901=(_0x82d49c=this[_0x17ce11(0x5cb)])==null?void 0x0:_0x82d49c[_0x17ce11(0x28f)])!=null?_0x463901:null;}[_0x2399be(0x5f4)](){const _0x3e7ae4=_0x2399be;super[_0x3e7ae4(0x5f4)](),this[_0x3e7ae4(0x33b)][_0x3e7ae4(0x4db)](),this[_0x3e7ae4(0x33b)]['complete']();}['close'](){const _0x43f404=_0x2399be;var _0x47a8bd,_0x2292aa;this[_0x43f404(0x3c4)](),(_0x47a8bd=this[_0x43f404(0x5cb)])==null||_0x47a8bd[_0x43f404(0x315)]({'cmd':G[_0x43f404(0x3d3)],'data':{'roomID':this[_0x43f404(0x1e8)]}}),(_0x2292aa=this[_0x43f404(0x5cb)])==null||_0x2292aa[_0x43f404(0x3ce)](),this[_0x43f404(0x29f)][_0x43f404(0x52b)](),this[_0x43f404(0x4b6)][_0x43f404(0x52b)](),this['dispose']();}[_0x2399be(0x540)](_0x2b0b39){const _0x5530cb=_0x2399be;_0x2b0b39[_0x5530cb(0x567)]===G['JOIN']?this[_0x5530cb(0x491)](_0x2b0b39):_0x2b0b39[_0x5530cb(0x567)]===G[_0x5530cb(0x2e0)]&&this[_0x5530cb(0x18c)](_0x2b0b39);}[_0x2399be(0x423)](_0x509fc0){const _0xdf418d=_0x2399be;this[_0xdf418d(0x4b6)][_0xdf418d(0x4db)](0x1),_0x509fc0[_0xdf418d(0x315)]({'cmd':G[_0xdf418d(0x40b)],'routeKey':this[_0xdf418d(0x1e8)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2399be(0x491)](_0x5da577){const _0x18bf00=_0x2399be;var _0x2941d0;if(_0x5da577[_0x18bf00(0x358)]in Ht){this[_0x18bf00(0x50b)][_0x18bf00(0x4bf)]({'type':Ce[_0x18bf00(0x38e)][_0x18bf00(0x5c0)],'content':this['_localeService']['t'](Ht[_0x5da577[_0x18bf00(0x358)]])}),this[_0x18bf00(0x4b6)][_0x18bf00(0x4db)](0x2);return;}this[_0x18bf00(0x4b6)][_0x18bf00(0x4db)](0x3);const _0xf9751f=(_0x2941d0=_0x5da577[_0x18bf00(0x3fa)][_0x18bf00(0x294)][this[_0x18bf00(0x1e8)]])==null?void 0x0:_0x2941d0[_0x18bf00(0x261)];_0xf9751f&&_0xf9751f[_0x18bf00(0x306)](_0x41e1ea=>this[_0x18bf00(0x2ed)][_0x18bf00(0x22b)](this[_0x18bf00(0x1e8)],_0x41e1ea));}['_onRecvEvent'](_0x31c27b){const _0x4aa609=_0x2399be;try{const _0x35d000=_0x31c27b[_0x4aa609(0x3fa)];switch(_0x35d000['eventID']){case m[_0x4aa609(0x563)][_0x4aa609(0x578)]:this[_0x4aa609(0x2b2)](_0x35d000),this[_0x4aa609(0x29f)][_0x4aa609(0x4db)](_0x35d000);break;case m[_0x4aa609(0x563)][_0x4aa609(0x5a4)]:this[_0x4aa609(0x245)](_0x35d000),this[_0x4aa609(0x29f)]['next'](_0x35d000);break;case m['CollaborationEvent'][_0x4aa609(0x610)]:case m[_0x4aa609(0x563)][_0x4aa609(0x2a3)]:this[_0x4aa609(0x221)](),this['_clearCollaborationTimeoutTimer'](),this['_event$']['next'](_0x35d000);break;case m[_0x4aa609(0x563)][_0x4aa609(0x47f)]:this['_logService'][_0x4aa609(0x3b0)](_0x4aa609(0x312)+JSON[_0x4aa609(0x4e1)](_0x35d000)),this[_0x4aa609(0x29f)][_0x4aa609(0x4db)](_0x35d000);break;case m['CollaborationEvent'][_0x4aa609(0x33e)]:this[_0x4aa609(0x26d)][_0x4aa609(0x62c)](_0x35d000['data']),this[_0x4aa609(0x29f)][_0x4aa609(0x4db)](_0x35d000);break;default:this[_0x4aa609(0x29f)][_0x4aa609(0x4db)](_0x35d000);}}catch(_0x14976a){this['_logService'][_0x4aa609(0x3b0)](_0x14976a,_0x31c27b);}}[_0x2399be(0x2b2)](_0x47418a){const _0x4a6c72=_0x2399be;this['_memberService'][_0x4a6c72(0x22b)](this[_0x4a6c72(0x1e8)],_0x47418a[_0x4a6c72(0x3fa)]);}[_0x2399be(0x245)](_0x585a93){const _0x537afa=_0x2399be;this[_0x537afa(0x2ed)][_0x537afa(0x579)](this[_0x537afa(0x1e8)],_0x585a93[_0x537afa(0x3fa)][_0x537afa(0x28f)]);}async[_0x2399be(0x315)](_0x14a6ac,_0xe8d2ff){const _0x44a8c0=_0x2399be;if(this[_0x44a8c0(0x3e7)]!==0x3||!this['_socket'])throw new Error(_0x44a8c0(0x2b8));try{_0x14a6ac[_0x44a8c0(0x1e9)]===m[_0x44a8c0(0x563)][_0x44a8c0(0x271)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x44a8c0(0x2a5)](_0x14a6ac)),this[_0x44a8c0(0x5cb)][_0x44a8c0(0x315)]({'cmd':G['INGEST'],'routeKey':_0xe8d2ff,'routeType':'','data':_0x14a6ac});}catch(_0x487771){this[_0x44a8c0(0x364)]['error'](_0x487771);}}[_0x2399be(0x52a)](){const _0x6b0073=_0x2399be;var _0xb1cb0a;this['_collaborationTimeoutTimer']=window[_0x6b0073(0x232)](()=>{const _0x2c4cda=_0x6b0073;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x2c4cda(0x4bf)]({'type':Ce[_0x2c4cda(0x38e)]['Error'],'content':this[_0x2c4cda(0x1b1)]['t']('session.collaboration-timeout')});},(_0xb1cb0a=this['_configService'][_0x6b0073(0x2c1)](Dt))!=null?_0xb1cb0a:mi);}[_0x2399be(0x27d)](){const _0x1a29d1=_0x2399be;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x1a29d1(0x396)]),this[_0x1a29d1(0x396)]=null);}[_0x2399be(0x2a5)](_0x553f35){const _0x28614d=_0x2399be;if(!this[_0x28614d(0x1a1)])return;const {data:_0x325229}=_0x553f35,{unitID:_0x47d3b0,changeset:_0xc52c3f}=_0x325229,{mutations:_0xc68c02,type:_0x31ecb4}=_0xc52c3f;this[_0x28614d(0x2b1)]={'unitId':_0x47d3b0,'type':_0x31ecb4,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_n(_0xc68c02)};}[_0x2399be(0x221)](){const _0x55f96a=_0x2399be;if(this['_shouldReportTelemetry']){if(!this[_0x55f96a(0x2b1)]){this[_0x55f96a(0x364)][_0x55f96a(0x3b0)]('[CollaborationSession]',_0x55f96a(0x3a4));return;}this['_telemetryInfo']['stopTime']=performance[_0x55f96a(0x4d4)](),this[_0x55f96a(0x2b1)][_0x55f96a(0x2db)]=this[_0x55f96a(0x2b1)]['stopTime']-this[_0x55f96a(0x2b1)][_0x55f96a(0x47d)],this[_0x55f96a(0x43a)][_0x55f96a(0x3b9)](hn,this[_0x55f96a(0x2b1)]),this[_0x55f96a(0x2b1)]=null;}}[_0x2399be(0x3c4)](){const _0x250a9e=_0x2399be;this[_0x250a9e(0x2b1)]=null;}},exports[_0x2399be(0x307)]=mn([ue(0x2,a[_0x2399be(0x373)]),ue(0x3,ee[_0x2399be(0x500)]),ue(0x4,ee[_0x2399be(0x58b)]),ue(0x5,a['IConfigService']),ue(0x6,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)])),ue(0x7,a[_0x2399be(0x24b)](exports[_0x2399be(0x4e4)])),ue(0x8,a['Inject'](wt)),ue(0x9,a[_0x2399be(0x344)](Gi[_0x2399be(0x3a7)]))],exports[_0x2399be(0x307)]);var gn=Object[_0x2399be(0x28d)],In=Object[_0x2399be(0x398)],Cn=(_0x65a175,_0x262724,_0x5812ec,_0x45c131)=>{const _0x302d65=_0x2399be;for(var _0x3d496a=_0x45c131>0x1?void 0x0:_0x45c131?In(_0x262724,_0x5812ec):_0x262724,_0x548751=_0x65a175[_0x302d65(0x477)]-0x1,_0x57e171;_0x548751>=0x0;_0x548751--)(_0x57e171=_0x65a175[_0x548751])&&(_0x3d496a=(_0x45c131?_0x57e171(_0x262724,_0x5812ec,_0x3d496a):_0x57e171(_0x3d496a))||_0x3d496a);return _0x45c131&&_0x3d496a&&gn(_0x262724,_0x5812ec,_0x3d496a),_0x3d496a;},Se=(_0x55eceb,_0x5198e0)=>(_0x128ca5,_0x96f1fc)=>_0x5198e0(_0x128ca5,_0x96f1fc,_0x55eceb);exports['CollaborationSessionService']=class extends a[_0x2399be(0x597)]{constructor(_0x470b67,_0xde1d74,_0x2d0cd9,_0x228077,_0x4f09ee,_0x66b39d,_0x51b16c){const _0x12c68a=_0x2399be;super(),I(this,_0x12c68a(0x459),new N['BehaviorSubject'](void 0x0)),I(this,'socket$',this['_socket$'][_0x12c68a(0x295)]()),I(this,'_candidateSocket',null),I(this,_0x12c68a(0x628),new Map()),I(this,_0x12c68a(0x1d5),new N['BehaviorSubject'](ne[_0x12c68a(0x5c5)])),I(this,_0x12c68a(0x342),this['_status$'][_0x12c68a(0x295)]()),I(this,'_socketReady',!0x1),I(this,_0x12c68a(0x5ef)),I(this,'_retryCount',0x0),I(this,'_sendHeartbeatTimer'),I(this,_0x12c68a(0x207)),(this[_0x12c68a(0x39d)]=_0x470b67,this['_localeService']=_0xde1d74,this[_0x12c68a(0x50b)]=_0x2d0cd9,this['_logService']=_0x228077,this[_0x12c68a(0x2a2)]=_0x4f09ee,this[_0x12c68a(0x38c)]=_0x66b39d,this[_0x12c68a(0x46e)]=_0x51b16c,this[_0x12c68a(0x33d)]());}get[_0x2399be(0x5cb)](){const _0x54901f=_0x2399be;return this[_0x54901f(0x459)]['getValue']();}[_0x2399be(0x33d)](){const _0x4eec46=_0x2399be;this[_0x4eec46(0x47c)](),this[_0x4eec46(0x510)]();}[_0x2399be(0x5f4)](){const _0x2ecd82=_0x2399be;super['dispose'](),this[_0x2ecd82(0x628)][_0x2ecd82(0x306)](_0x5f29e5=>_0x5f29e5['dispose']()),this['_sessions'][_0x2ecd82(0x40e)](),this['_status$'][_0x2ecd82(0x52b)]();}async[_0x2399be(0x513)](_0x5f3d0f){const _0x18c684=_0x2399be;if(this['_sessions'][_0x18c684(0x2e1)](_0x5f3d0f))return this[_0x18c684(0x628)]['get'](_0x5f3d0f);this['_tryEnsureSocket']();const _0xb75d58=this[_0x18c684(0x39d)][_0x18c684(0x359)](exports[_0x18c684(0x307)],_0x5f3d0f,this[_0x18c684(0x459)]['asObservable']());return this[_0x18c684(0x628)]['set'](_0x5f3d0f,_0xb75d58),_0xb75d58;}['closeSession'](_0x35b8f3){const _0x5ef5ba=_0x2399be;var _0x18fdf7;const _0x22f601=this[_0x5ef5ba(0x628)][_0x5ef5ba(0x654)](_0x35b8f3);_0x22f601&&(this['_sessions'][_0x5ef5ba(0x240)](_0x35b8f3),_0x22f601[_0x5ef5ba(0x3ce)]()),this[_0x5ef5ba(0x628)][_0x5ef5ba(0x19c)]||(_0x18fdf7=this[_0x5ef5ba(0x5cb)])==null||_0x18fdf7['close']();}[_0x2399be(0x63c)](){const _0x3fdc08=_0x2399be;this[_0x3fdc08(0x638)]=0x0,this[_0x3fdc08(0x5ef)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x3fdc08(0x5ef)]=null),this[_0x3fdc08(0x1fb)]();}async[_0x2399be(0x1b5)](){const _0x4a0b2e=_0x2399be;var _0x5a7b31,_0x8ebb40,_0x19f431;const _0x367448=this[_0x4a0b2e(0x2a2)]['getConfig'](Z),_0x475ce9=(_0x5a7b31=_0x367448==null?void 0x0:_0x367448['wsSessionTicketUrl'])!=null?_0x5a7b31:Ji;return(_0x19f431=(_0x8ebb40=(await this['_httpService'][_0x4a0b2e(0x654)](_0x475ce9,{'headers':{'Content-Type':_0x4a0b2e(0x544)}}))[_0x4a0b2e(0x53c)])==null?void 0x0:_0x8ebb40[_0x4a0b2e(0x257)])!=null?_0x19f431:'';}[_0x2399be(0x5d2)](_0x49b9b7){const _0x565d00=_0x2399be;var _0x548562,_0x128faf;const _0x413f53=this[_0x565d00(0x2a2)][_0x565d00(0x2c1)](Si),_0x1fff60=this[_0x565d00(0x2a2)]['getConfig'](Z),_0x4956ff=(_0x128faf=(_0x548562=_0x1fff60==null?void 0x0:_0x1fff60[_0x565d00(0x2c8)])!=null?_0x548562:_0x413f53)!=null?_0x128faf:Xi,_0x595fb9=new URL(_0x4956ff,window[_0x565d00(0x29e)]['origin']);return _0x595fb9['searchParams'][_0x565d00(0x593)](_0x565d00(0x4b8),_0x49b9b7),_0x595fb9[_0x565d00(0x24a)]();}async[_0x2399be(0x326)](){const _0x59eedc=_0x2399be,_0x1fb663=await this[_0x59eedc(0x1b5)](),_0x54d41b=this['_createSocketURL'](_0x1fb663),_0x12923c=this[_0x59eedc(0x38c)][_0x59eedc(0x403)](_0x54d41b);return this['_candidateSocket']=_0x12923c,_0x12923c;}async[_0x2399be(0x1a7)](){const _0x4c103f=_0x2399be;var _0x29092e,_0x39b52c;try{const _0x9eb22b=(_0x39b52c=(_0x29092e=this[_0x4c103f(0x5cb)])!=null?_0x29092e:this[_0x4c103f(0x310)])!=null?_0x39b52c:await this[_0x4c103f(0x326)]();if(_0x9eb22b){const _0x829062=_0x9eb22b['send'];_0x9eb22b[_0x4c103f(0x315)]=_0x528bcc=>(this['_rescheduleHeartbeat'](),_0x829062[_0x4c103f(0x30d)](_0x9eb22b,[_0x528bcc])),_0x9eb22b[_0x4c103f(0x5e7)][_0x4c103f(0x468)](_0x526599=>this[_0x4c103f(0x2f4)](_0x9eb22b,_0x526599)),_0x9eb22b[_0x4c103f(0x27b)]['pipe'](V[_0x4c103f(0x611)](0x1))['subscribe'](_0x2ae2ce=>this[_0x4c103f(0x364)][_0x4c103f(0x3b0)](_0x4c103f(0x195),_0x2ae2ce)),_0x9eb22b[_0x4c103f(0x5ca)][_0x4c103f(0x527)](V['take'](0x1))[_0x4c103f(0x468)](()=>{this['_onConnectionOpen'](_0x9eb22b);}),_0x9eb22b['close$']['pipe'](V[_0x4c103f(0x611)](0x1))[_0x4c103f(0x468)](_0x528ed0=>{const _0x3dedaa=_0x4c103f;this['_logService'][_0x3dedaa(0x425)]('[CollaborationSessionService]',_0x3dedaa(0x56c),_0x528ed0),this[_0x3dedaa(0x27f)]();});}}catch(_0x464fe1){this['_logService'][_0x4c103f(0x3b0)](_0x464fe1),this[_0x4c103f(0x27f)]();}}[_0x2399be(0x63e)](_0x36bf38){const _0x4cd0a2=_0x2399be;this[_0x4cd0a2(0x364)]['debug'](_0x4cd0a2(0x4f7),'socket\x20open.'),_0x36bf38[_0x4cd0a2(0x315)]({'cmd':G['HELLO']}),this[_0x4cd0a2(0x267)]();}[_0x2399be(0x47c)](){const _0x362b2e=_0x2399be;window['addEventListener'](_0x362b2e(0x465),()=>this['_onOffline']());}[_0x2399be(0x34d)](){const _0x16f802=_0x2399be;this[_0x16f802(0x55d)]=!0x1,this['_candidateSocket']=null,this[_0x16f802(0x1d5)][_0x16f802(0x4db)](ne[_0x16f802(0x3ee)]),this[_0x16f802(0x459)][_0x16f802(0x4db)](null),this[_0x16f802(0x25e)](),this[_0x16f802(0x560)]();}[_0x2399be(0x27f)](){const _0x23eafb=_0x2399be;var _0x59b2c7;this['_onOffline'](),this[_0x23eafb(0x638)]<((_0x59b2c7=this[_0x23eafb(0x2a2)][_0x23eafb(0x2c1)](gi))!=null?_0x59b2c7:en)?(this['_messageService'][_0x23eafb(0x4bf)]({'key':_0x23eafb(0x411),'type':Ce[_0x23eafb(0x38e)][_0x23eafb(0x5c0)],'content':this[_0x23eafb(0x1b1)]['t'](_0x23eafb(0x646))}),this[_0x23eafb(0x1fb)]()):this[_0x23eafb(0x50b)][_0x23eafb(0x4bf)]({'key':'collaboration-session-retry','type':Ce[_0x23eafb(0x38e)][_0x23eafb(0x599)],'content':this[_0x23eafb(0x1b1)]['t'](_0x23eafb(0x31c))});}[_0x2399be(0x510)](){const _0x1f5117=_0x2399be,_0x124caa=()=>{const _0x3b5d14=_0x52c2;this[_0x3b5d14(0x5cb)]||this[_0x3b5d14(0x63c)]();},_0x991cf3=()=>{const _0x441e5d=_0x52c2;this[_0x441e5d(0x5cb)]||document[_0x441e5d(0x2d1)]===_0x441e5d(0x503)||this['reconnect']();};window[_0x1f5117(0x2d4)](_0x1f5117(0x40d),_0x124caa),document[_0x1f5117(0x2d4)](_0x1f5117(0x265),_0x991cf3);}[_0x2399be(0x1fb)](){const _0x573c86=_0x2399be;var _0x159678;const _0x2f425c=this[_0x573c86(0x638)],_0x525be4=this[_0x573c86(0x2a2)][_0x573c86(0x2c1)](Z),_0x269fc1=_0x2f425c===0x0?0x0:((_0x159678=_0x525be4==null?void 0x0:_0x525be4['retryConnectingInterval'])!=null?_0x159678:Qi)*0x2**_0x2f425c;this[_0x573c86(0x5ef)]=window[_0x573c86(0x232)](()=>{const _0x1f8f2f=_0x573c86;clearTimeout(this[_0x1f8f2f(0x5ef)]),this[_0x1f8f2f(0x5ef)]=null,this[_0x1f8f2f(0x1a7)]();},_0x269fc1),this[_0x573c86(0x638)]+=0x1;}[_0x2399be(0x2f4)](_0x5d799e,_0x9f8d78){const _0x44ba4b=_0x2399be,{cmd:_0xf808ef}=_0x9f8d78;_0xf808ef===G[_0x44ba4b(0x602)]&&!this[_0x44ba4b(0x55d)]&&(_0x5d799e[_0x44ba4b(0x28f)]=_0x9f8d78['data'][_0x44ba4b(0x28f)],this[_0x44ba4b(0x459)][_0x44ba4b(0x4db)](_0x5d799e),this[_0x44ba4b(0x1d5)]['next'](ne[_0x44ba4b(0x60b)]),this[_0x44ba4b(0x55d)]=!0x0,this[_0x44ba4b(0x310)]=null),_0xf808ef===G[_0x44ba4b(0x54a)]&&this[_0x44ba4b(0x25e)](),this[_0x44ba4b(0x267)]();}[_0x2399be(0x267)](){const _0x5408b9=_0x2399be;var _0x467b4c;this[_0x5408b9(0x560)](),this[_0x5408b9(0x1ee)]=window[_0x5408b9(0x232)](()=>this['_sendHeartbeat'](),(_0x467b4c=this['_configService'][_0x5408b9(0x2c1)](pi))!=null?_0x467b4c:Zi);}[_0x2399be(0x3f1)](){const _0x79e4b7=_0x2399be;this[_0x79e4b7(0x5cb)][_0x79e4b7(0x315)]({'cmd':G['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x2255d0=_0x2399be;var _0x5c044b;this['_timeoutTimer']=window[_0x2255d0(0x232)](()=>this[_0x2255d0(0x27f)](),(_0x5c044b=this['_configService']['getConfig'](Dt))!=null?_0x5c044b:mi);}[_0x2399be(0x560)](){const _0x4bad89=_0x2399be;this[_0x4bad89(0x1ee)]!=null&&(clearTimeout(this[_0x4bad89(0x1ee)]),this[_0x4bad89(0x1ee)]=null);}[_0x2399be(0x25e)](){const _0x4bd90a=_0x2399be;this[_0x4bd90a(0x207)]!=null&&(clearTimeout(this[_0x4bd90a(0x207)]),this[_0x4bd90a(0x207)]=null);}},exports[_0x2399be(0x225)]=Cn([Se(0x0,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),Se(0x1,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)])),Se(0x2,ee[_0x2399be(0x58b)]),Se(0x3,a[_0x2399be(0x373)]),Se(0x4,a['IConfigService']),Se(0x5,Pt),Se(0x6,a[_0x2399be(0x24b)](z['HTTPService']))],exports[_0x2399be(0x225)]);const q=[];for(let r=0x0;r<0x100;++r)q[_0x2399be(0x644)]((r+0x100)[_0x2399be(0x24a)](0x10)['slice'](0x1));function En(_0x2b69b8,_0x35c353=0x0){const _0x326a5c=_0x2399be;return(q[_0x2b69b8[_0x35c353+0x0]]+q[_0x2b69b8[_0x35c353+0x1]]+q[_0x2b69b8[_0x35c353+0x2]]+q[_0x2b69b8[_0x35c353+0x3]]+'-'+q[_0x2b69b8[_0x35c353+0x4]]+q[_0x2b69b8[_0x35c353+0x5]]+'-'+q[_0x2b69b8[_0x35c353+0x6]]+q[_0x2b69b8[_0x35c353+0x7]]+'-'+q[_0x2b69b8[_0x35c353+0x8]]+q[_0x2b69b8[_0x35c353+0x9]]+'-'+q[_0x2b69b8[_0x35c353+0xa]]+q[_0x2b69b8[_0x35c353+0xb]]+q[_0x2b69b8[_0x35c353+0xc]]+q[_0x2b69b8[_0x35c353+0xd]]+q[_0x2b69b8[_0x35c353+0xe]]+q[_0x2b69b8[_0x35c353+0xf]])[_0x326a5c(0x216)]();}let lt;const bn=new Uint8Array(0x10);function Tn(){const _0x169534=_0x2399be;if(!lt){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x169534(0x4c9));lt=crypto[_0x169534(0x31b)][_0x169534(0x2bc)](crypto);}return lt(bn);}function _0x52c2(_0x446d28,_0x30d4b8){const _0x1d6f2d=_0x1d6f();return _0x52c2=function(_0x52c29d,_0x54ddd3){_0x52c29d=_0x52c29d-0x182;let _0x10e49d=_0x1d6f2d[_0x52c29d];return _0x10e49d;},_0x52c2(_0x446d28,_0x30d4b8);}const Rn=typeof crypto<'u'&&crypto[_0x2399be(0x2fa)]&&crypto[_0x2399be(0x2fa)][_0x2399be(0x2bc)](crypto),Bt={'randomUUID':Rn};function On(_0x253779,_0x15f3dd,_0x3966be){const _0x2d4c73=_0x2399be;if(Bt[_0x2d4c73(0x2fa)]&&!_0x15f3dd&&!_0x253779)return Bt[_0x2d4c73(0x2fa)]();_0x253779=_0x253779||{};const _0x38f085=_0x253779['random']||(_0x253779[_0x2d4c73(0x641)]||Tn)();return _0x38f085[0x6]=_0x38f085[0x6]&0xf|0x40,_0x38f085[0x8]=_0x38f085[0x8]&0x3f|0x80,En(_0x38f085);}var yn=Object[_0x2399be(0x28d)],Dn=Object[_0x2399be(0x398)],Pn=(_0x2ef98e,_0x1ed161,_0x37cfeb,_0x4501f6)=>{const _0x5e498b=_0x2399be;for(var _0x2f7321=_0x4501f6>0x1?void 0x0:_0x4501f6?Dn(_0x1ed161,_0x37cfeb):_0x1ed161,_0x4c3734=_0x2ef98e[_0x5e498b(0x477)]-0x1,_0x567716;_0x4c3734>=0x0;_0x4c3734--)(_0x567716=_0x2ef98e[_0x4c3734])&&(_0x2f7321=(_0x4501f6?_0x567716(_0x1ed161,_0x37cfeb,_0x2f7321):_0x567716(_0x2f7321))||_0x2f7321);return _0x4501f6&&_0x2f7321&&yn(_0x1ed161,_0x37cfeb,_0x2f7321),_0x2f7321;},ht=(_0x5210a0,_0x5a7dd7)=>(_0x2a5808,_0x5f167e)=>_0x5a7dd7(_0x2a5808,_0x5f167e,_0x5210a0);let Ze=class{constructor(_0x25f002,_0xc52da4,_0x2afb83){const _0x2aae70=_0x2399be;this[_0x2aae70(0x39d)]=_0x25f002,this[_0x2aae70(0x300)]=_0xc52da4,this[_0x2aae70(0x1a3)]=_0x2afb83;}[_0x2399be(0x487)](_0x547567){const _0x4b217f=_0x2399be;this[_0x4b217f(0x56f)](_0x547567),this[_0x4b217f(0x1b4)](_0x547567);}['transformRemoteChangeset'](_0x23c3ed){const _0x389e54=_0x2399be,{unitID:_0x2634a2}=_0x23c3ed,_0x3ca89a=this['_renderManagerService'][_0x389e54(0x289)](_0x2634a2)['with'](J[_0x389e54(0x1ab)]),{redoCache:_0x448e2a}=_0x3ca89a[_0x389e54(0x400)]();if(_0x448e2a[_0x389e54(0x477)]===0x0)return _0x23c3ed;let _0x393b74=a[_0x389e54(0x1e0)][_0x389e54(0x275)](_0x23c3ed[_0x389e54(0x46b)][0x0]);for(let _0x4f2855=0x0;_0x4f2855<_0x448e2a['length'];_0x4f2855++){const _0x5dba73={'id':_0x389e54(0x234),'params':{..._0x448e2a[_0x4f2855]}},_0x5931a2=this['_transformService'][_0x389e54(0x2ad)](_0x393b74,_0x5dba73,!0x1);if(m[_0x389e54(0x5f5)](_0x5931a2))throw _0x5931a2[_0x389e54(0x3b0)];_0x393b74=_0x5931a2[_0x389e54(0x446)];}return{...a[_0x389e54(0x1e0)]['deepClone'](_0x23c3ed),'mutations':[_0x393b74]};}['_transformUndoRedoStack'](_0x3333aa){const _0x5ef347=_0x2399be,{unitID:_0x39b82b}=_0x3333aa,_0x3b5ce1=this[_0x5ef347(0x1a3)][_0x5ef347(0x289)](_0x39b82b)[_0x5ef347(0x61e)](J[_0x5ef347(0x1ab)]),{undoCache:_0x56c6f9,redoCache:_0x152fb7}=_0x3b5ce1[_0x5ef347(0x400)]();if(_0x56c6f9['length']===0x0||_0x152fb7[_0x5ef347(0x477)]===0x0)return;const _0x315ebb=[],_0xf6080=[];let _0x249083=a[_0x5ef347(0x1e0)][_0x5ef347(0x275)](_0x3333aa[_0x5ef347(0x46b)][0x0]),_0x1bd727=a[_0x5ef347(0x1e0)][_0x5ef347(0x275)](_0x3333aa[_0x5ef347(0x46b)][0x0]);for(let _0x3887c3=_0x56c6f9[_0x5ef347(0x477)]-0x1;_0x3887c3>=0x0;_0x3887c3--){const _0xc48d7c={'id':_0x5ef347(0x234),'params':{..._0x56c6f9[_0x3887c3]}},_0x326a30={'id':'doc.mutation.rich-text-editing','params':{..._0x152fb7[_0x3887c3]}},_0x466cb9=this[_0x5ef347(0x300)][_0x5ef347(0x2ad)](_0x249083,_0xc48d7c,!0x1),_0x2b9bb7=this[_0x5ef347(0x300)][_0x5ef347(0x2ad)](_0x1bd727,_0x326a30,!0x1);if(m[_0x5ef347(0x5f5)](_0x466cb9))throw _0x466cb9[_0x5ef347(0x3b0)];if(m['isTransformMutationFailure'](_0x2b9bb7))throw _0x2b9bb7[_0x5ef347(0x3b0)];_0x315ebb[_0x5ef347(0x569)](_0x466cb9['m2Prime'][_0x5ef347(0x552)]),_0xf6080['unshift'](_0x2b9bb7[_0x5ef347(0x356)]['params']),_0x249083=_0x466cb9[_0x5ef347(0x446)],_0x1bd727=_0x2b9bb7['m1Prime'];}_0x3b5ce1[_0x5ef347(0x60d)]({'undoCache':_0x315ebb,'redoCache':_0xf6080});}['_transformPreviousActiveRange'](_0x4cf512){const _0x38c2a5=_0x2399be,{unitID:_0x18925c}=_0x4cf512,_0x2bb74e=this[_0x38c2a5(0x1a3)][_0x38c2a5(0x289)](_0x18925c)[_0x38c2a5(0x61e)](J[_0x38c2a5(0x1ab)]),_0x24b51a=_0x2bb74e[_0x38c2a5(0x215)]();if(_0x24b51a==null)return;const _0x4ba518=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4cf512[_0x38c2a5(0x533)],'actions':null,'textRanges':[_0x24b51a]}}],_0x53e1e8=this[_0x38c2a5(0x300)][_0x38c2a5(0x63b)](_0x4cf512,_0x4ba518);if(!m[_0x38c2a5(0x432)](_0x53e1e8))throw _0x53e1e8[_0x38c2a5(0x3b0)];const _0x32ec12=_0x53e1e8[_0x38c2a5(0x356)][0x0]['params'][_0x38c2a5(0x32b)];Array[_0x38c2a5(0x1ce)](_0x32ec12)&&_0x32ec12[_0x38c2a5(0x477)]&&_0x2bb74e[_0x38c2a5(0x357)](_0x32ec12[0x0]);}};Ze=Pn([ht(0x0,a[_0x2399be(0x24b)](a['Injector'])),ht(0x1,m[_0x2399be(0x587)]),ht(0x2,Y[_0x2399be(0x1c3)])],Ze);var wn=Object['defineProperty'],Un=Object[_0x2399be(0x398)],Mn=(_0x1dac75,_0x1bff4f,_0xeef610,_0x4a6cff)=>{for(var _0x31ae4c=_0x4a6cff>0x1?void 0x0:_0x4a6cff?Un(_0x1bff4f,_0xeef610):_0x1bff4f,_0x19e335=_0x1dac75['length']-0x1,_0x4e3bbd;_0x19e335>=0x0;_0x19e335--)(_0x4e3bbd=_0x1dac75[_0x19e335])&&(_0x31ae4c=(_0x4a6cff?_0x4e3bbd(_0x1bff4f,_0xeef610,_0x31ae4c):_0x4e3bbd(_0x31ae4c))||_0x31ae4c);return _0x4a6cff&&_0x31ae4c&&wn(_0x1bff4f,_0xeef610,_0x31ae4c),_0x31ae4c;},Pe=(_0xadc016,_0x57c86d)=>(_0x57c0b6,_0x5a5ead)=>_0x57c86d(_0x57c0b6,_0x5a5ead,_0xadc016);exports[_0x2399be(0x596)]=class extends a[_0x2399be(0x597)]{constructor(_0xfbae3b,_0x686d6,_0x38d68b,_0x1286c7,_0x31fe5d){const _0x239bc3=_0x2399be;super(),I(this,'_cachedData',new Map()),I(this,'_saveTaskMap',new Map()),I(this,_0x239bc3(0x55f),!0x1),(this[_0x239bc3(0x2a2)]=_0xfbae3b,this[_0x239bc3(0x301)]=_0x686d6,this[_0x239bc3(0x549)]=_0x38d68b,this[_0x239bc3(0x1b1)]=_0x1286c7,this[_0x239bc3(0x419)]=_0x31fe5d,this[_0x239bc3(0x60f)]());}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x28cb08=_0x2399be;this[_0x28cb08(0x55f)]=!0x1;}[_0x2399be(0x5f4)](){const _0x37a471=_0x2399be;this[_0x37a471(0x49e)]()[_0x37a471(0x561)](()=>super[_0x37a471(0x5f4)]());}async[_0x2399be(0x3c8)](_0x203303){const _0x7ebfca=_0x2399be;return this[_0x7ebfca(0x55f)]?null:this[_0x7ebfca(0x301)][_0x7ebfca(0x204)](kt(_0x203303));}async[_0x2399be(0x18a)](_0x81602e,_0x45add9){const _0x35cd09=_0x2399be;return!!this[_0x35cd09(0x301)][_0x35cd09(0x595)](_0x81602e,_0x45add9);}['updateOfflineData'](_0x462e91,_0x55d612,_0x59c857,_0x367456){const _0x2eb298=_0x2399be,_0x31b7a3=this[_0x2eb298(0x419)][_0x2eb298(0x1d9)](_0x462e91);this['_cachedData'][_0x2eb298(0x593)](_0x462e91,{'unitID':_0x462e91,'type':_0x55d612,'awaitingChangeset':_0x59c857,'mutations':_0x367456,'rev':_0x31b7a3}),this[_0x2eb298(0x45a)][_0x2eb298(0x2e1)](_0x462e91)||this[_0x2eb298(0x346)](_0x462e91);}[_0x2399be(0x346)](_0x27e08c){const _0x1f1a4f=_0x2399be,_0xb34bf1=this[_0x1f1a4f(0x46a)]();_0xb34bf1===0x0?this['_saveCache'](_0x27e08c):this['_saveTaskMap'][_0x1f1a4f(0x593)](_0x27e08c,setTimeout(()=>this[_0x1f1a4f(0x46c)](_0x27e08c),_0xb34bf1));}[_0x2399be(0x46a)](){const _0x17b46a=_0x2399be;var _0x37a927;return(_0x37a927=this[_0x17b46a(0x2a2)][_0x17b46a(0x2c1)](Ii))!=null?_0x37a927:tn;}[_0x2399be(0x46c)](_0xf73fcb){const _0x437781=_0x2399be,_0x36a789=this[_0x437781(0x45a)][_0x437781(0x654)](_0xf73fcb);return _0x36a789!==void 0x0&&window[_0x437781(0x3bc)](_0x36a789),this[_0x437781(0x301)]['setItem'](kt(_0xf73fcb),this[_0x437781(0x621)][_0x437781(0x654)](_0xf73fcb))['then'](()=>this['_saveTaskMap'][_0x437781(0x240)](_0xf73fcb));}async[_0x2399be(0x49e)](){const _0x2623f2=_0x2399be,_0x2107fa=[];this[_0x2623f2(0x45a)][_0x2623f2(0x306)]((_0x4e964d,_0xbda048)=>{const _0x2c9803=_0x2623f2;window[_0x2c9803(0x3bc)](_0x4e964d),_0x2107fa[_0x2c9803(0x644)](this[_0x2c9803(0x46c)](_0xbda048)[_0x2c9803(0x561)](()=>{const _0x3b9c88=_0x2c9803;this['_saveTaskMap'][_0x3b9c88(0x240)](_0xbda048);}));}),await Promise[_0x2623f2(0x5e3)](_0x2107fa);}['_setupBeforeClosingHandler'](){const _0x3dc9ae=_0x2399be;this['disposeWithMe'](this[_0x3dc9ae(0x549)][_0x3dc9ae(0x345)](()=>{const _0x18d617=_0x3dc9ae;if(this['_saveTaskMap']['size'])return this[_0x18d617(0x1b1)]['t'](_0x18d617(0x2c6));}));}},exports['LocalCacheService']=Mn([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x2399be(0x330)]),Pe(0x2,ee[_0x2399be(0x500)]),Pe(0x3,a[_0x2399be(0x24b)](a['LocaleService'])),Pe(0x4,a[_0x2399be(0x24b)](m[_0x2399be(0x52c)]))],exports[_0x2399be(0x596)]);function kt(_0x5d76fa){const _0x1d73eb=_0x2399be;return _0x1d73eb(0x386)+_0x5d76fa;}var Nn=Object[_0x2399be(0x28d)],An=Object[_0x2399be(0x398)],Ln=(_0x21c37b,_0x476ca8,_0x2afc4b,_0x3cbb69)=>{const _0x253396=_0x2399be;for(var _0x2a4ffb=_0x3cbb69>0x1?void 0x0:_0x3cbb69?An(_0x476ca8,_0x2afc4b):_0x476ca8,_0xb35d06=_0x21c37b[_0x253396(0x477)]-0x1,_0xe55263;_0xb35d06>=0x0;_0xb35d06--)(_0xe55263=_0x21c37b[_0xb35d06])&&(_0x2a4ffb=(_0x3cbb69?_0xe55263(_0x476ca8,_0x2afc4b,_0x2a4ffb):_0xe55263(_0x2a4ffb))||_0x2a4ffb);return _0x3cbb69&&_0x2a4ffb&&Nn(_0x476ca8,_0x2afc4b,_0x2a4ffb),_0x2a4ffb;},_t=(_0x1d5c4e,_0x8ca5b3)=>(_0x56c8d8,_0x47dc26)=>_0x8ca5b3(_0x56c8d8,_0x47dc26,_0x1d5c4e);function xn(_0x47998b){const _0x319c28=_0x2399be,{unitID:_0x4a3742,mutations:_0x556c21}=_0x47998b;return{'unitId':_0x4a3742,'subUnitId':_0x556c21[0x0][_0x319c28(0x552)][_0x319c28(0x4d7)]};}let Qe=class{constructor(_0x4dca89,_0x523572,_0x6b58df){const _0x8ba584=_0x2399be;this[_0x8ba584(0x39d)]=_0x4dca89,this[_0x8ba584(0x300)]=_0x523572,this[_0x8ba584(0x2f1)]=_0x6b58df;}[_0x2399be(0x5de)](_0x256ced){const _0x18b90d=_0x2399be;var _0x6688fb,_0x4383c4,_0x39b125,_0x2d24c4;const _0x55a7cb=this[_0x18b90d(0x39d)][_0x18b90d(0x654)](k[_0x18b90d(0x3a8)]),{unitId:_0x306b55,subUnitId:_0x18a4e3}=xn(_0x256ced),_0x2fdd51=_0x55a7cb[_0x18b90d(0x20a)](_0x306b55)['getCurrentSelections'](),_0x3cf80a=(_0x4383c4=(_0x6688fb=this['_instanceService'][_0x18b90d(0x5f9)](_0x306b55))==null?void 0x0:_0x6688fb[_0x18b90d(0x273)]())==null?void 0x0:_0x4383c4[_0x18b90d(0x4f0)]();if(_0x2fdd51[_0x18b90d(0x477)]===0x0||!_0x306b55||!_0x18a4e3)return;const _0x59ff0a=[{'id':k[_0x18b90d(0x1db)]['id'],'params':{'unitId':_0x306b55,'subUnitId':_0x3cf80a,'selections':a[_0x18b90d(0x1e0)][_0x18b90d(0x275)](_0x2fdd51)}}],_0x2e2381=this[_0x18b90d(0x300)][_0x18b90d(0x63b)](_0x256ced,_0x59ff0a);if(!m[_0x18b90d(0x432)](_0x2e2381))throw _0x2e2381[_0x18b90d(0x3b0)];const _0x2fa1db=(_0x2d24c4=(_0x39b125=_0x2e2381[_0x18b90d(0x356)][0x0])==null?void 0x0:_0x39b125[_0x18b90d(0x552)])==null?void 0x0:_0x2d24c4[_0x18b90d(0x42c)];if(Array[_0x18b90d(0x1ce)](_0x2fa1db)&&_0x2fa1db[_0x18b90d(0x477)]){if(_0x2fa1db['length']===_0x59ff0a[0x0][_0x18b90d(0x552)][_0x18b90d(0x42c)]['length']&&_0x2fa1db['every']((_0x291d2d,_0x4b2aaf)=>a[_0x18b90d(0x428)][_0x18b90d(0x5e9)](_0x291d2d['range'],_0x59ff0a[0x0][_0x18b90d(0x552)]['selections'][_0x4b2aaf][_0x18b90d(0x651)])))return;this['_injector'][_0x18b90d(0x654)](a[_0x18b90d(0x36c)])['executeCommand'](k[_0x18b90d(0x1db)]['id'],{'unitId':_0x306b55,'subUnitId':_0x3cf80a,'selections':_0x2fa1db});}}};Qe=Ln([_t(0x0,a['Inject'](a[_0x2399be(0x3b4)])),_t(0x1,m[_0x2399be(0x587)]),_t(0x2,a[_0x2399be(0x53e)])],Qe);const at=a[_0x2399be(0x443)]('univer-pro.collaboration-client.single-active-unit-service');var yi=(_0x13695d=>(_0x13695d[_0x13695d[_0x2399be(0x5a7)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x13695d[_0x13695d[_0x2399be(0x568)]=0x1]=_0x2399be(0x568),_0x13695d))(yi||{});const Wt=0x7530,Ft=_0x2399be(0x1fc);class $n extends a[_0x2399be(0x597)]{constructor(){const _0x33cf38=_0x2399be;super(),I(this,_0x33cf38(0x4dd),a['Tools'][_0x33cf38(0x1b3)]()),I(this,_0x33cf38(0x483),new Set()),I(this,'_unitOnClients',new Map()),I(this,_0x33cf38(0x64b),null),I(this,_0x33cf38(0x4d0),new Map()),I(this,'_unitStatus',new Map()),this[_0x33cf38(0x50a)]();}[_0x2399be(0x5f4)](){const _0x1d979b=_0x2399be;super[_0x1d979b(0x5f4)](),this['_clearOtherTimers'][_0x1d979b(0x306)]((_0x47b62c,_0x1e453c)=>this[_0x1d979b(0x3c2)](_0x1e453c)),this[_0x1d979b(0x64b)]&&window[_0x1d979b(0x493)](this[_0x1d979b(0x64b)]);}['getUnitStatus$'](_0x22eb3c){const _0x33b6b9=_0x2399be;return this[_0x33b6b9(0x18d)](_0x22eb3c)[_0x33b6b9(0x527)](N[_0x33b6b9(0x24f)]());}[_0x2399be(0x351)](_0x53ca83){const _0x47d8d2=_0x2399be;this['_selfUnitIDs'][_0x47d8d2(0x19c)]===0x0&&this[_0x47d8d2(0x3e9)](),this[_0x47d8d2(0x483)][_0x47d8d2(0x280)](_0x53ca83),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x53ca83],'isForwarded':!0x1});}[_0x2399be(0x5cf)](_0x37916b){const _0x3b1a2d=_0x2399be;this[_0x3b1a2d(0x483)][_0x3b1a2d(0x240)](_0x37916b),this[_0x3b1a2d(0x483)]['size']===0x0&&this[_0x3b1a2d(0x64b)]&&window['clearInterval'](this[_0x3b1a2d(0x64b)]);}['_init'](){const _0x1e8b08=_0x2399be;this[_0x1e8b08(0x228)](a[_0x1e8b08(0x518)](N[_0x1e8b08(0x34a)](window,_0x1e8b08(0x441))[_0x1e8b08(0x468)](_0x4243e1=>{const _0x85dc=_0x1e8b08;if(_0x4243e1[_0x85dc(0x18e)]!==Ft||!_0x4243e1[_0x85dc(0x5c8)])return;const _0x1481f6=JSON[_0x85dc(0x62e)](_0x4243e1['newValue']);this[_0x85dc(0x58f)](_0x1481f6);}))),window['addEventListener'](_0x1e8b08(0x3bb),()=>this[_0x1e8b08(0x570)]({'type':0x1,'memberID':this[_0x1e8b08(0x4dd)],'unitIDs':Array['from'](this[_0x1e8b08(0x483)])}));}[_0x2399be(0x58f)](_0xc2b01f){const _0x1c9132=_0x2399be;switch(_0xc2b01f[_0x1c9132(0x64c)]){case 0x0:this['_handleJoinEvent'](_0xc2b01f);break;case 0x1:this['_handleLeaveEvent'](_0xc2b01f);break;case 0x2:this[_0x1c9132(0x476)](_0xc2b01f);break;}}[_0x2399be(0x48c)](_0x188184){const _0xa02f5e=_0x2399be,{unitIDs:_0x13e4a7,memberID:_0x2aaf84,isForwarded:_0x46e443}=_0x188184;_0x13e4a7[_0xa02f5e(0x306)](_0xb9a208=>{const _0x2d08ef=_0xa02f5e;if(!_0x46e443&&this[_0x2d08ef(0x184)]['has'](_0xb9a208)&&this[_0x2d08ef(0x18d)](_0xb9a208)['next'](0x1),!this[_0x2d08ef(0x184)][_0x2d08ef(0x2e1)](_0xb9a208)||!this[_0x2d08ef(0x184)]['get'](_0xb9a208)['has'](_0x2aaf84)){const _0x447d26=this[_0x2d08ef(0x184)][_0x2d08ef(0x654)](_0xb9a208)||new Set();_0x447d26[_0x2d08ef(0x280)](_0x2aaf84),this[_0x2d08ef(0x184)]['set'](_0xb9a208,_0x447d26),this[_0x2d08ef(0x531)](_0x2aaf84);}}),_0x46e443||this[_0xa02f5e(0x570)]({'type':0x0,'memberID':this[_0xa02f5e(0x4dd)],'unitIDs':[...this[_0xa02f5e(0x483)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2d69f1){const _0x79a1d0=_0x2399be;this[_0x79a1d0(0x3c2)](_0x2d69f1);const _0xf54bc7=window['setTimeout'](()=>{const _0x283da7=_0x79a1d0;this['_unitOnClients'][_0x283da7(0x306)](_0x19c1bb=>{_0x19c1bb['delete'](_0x2d69f1);});},Wt*0x2);this['_clearOtherTimers'][_0x79a1d0(0x593)](_0x2d69f1,_0xf54bc7);}[_0x2399be(0x3c2)](_0x56f181){const _0x1a8326=_0x2399be;if(this['_clearOtherTimers'][_0x1a8326(0x2e1)](_0x56f181)){const _0x2f9453=this[_0x1a8326(0x4d0)][_0x1a8326(0x654)](_0x56f181);_0x2f9453&&window[_0x1a8326(0x3bc)](_0x2f9453),this[_0x1a8326(0x4d0)][_0x1a8326(0x593)](_0x56f181,null);}}['_handleLeaveEvent'](_0x570ca3){const _0xf12c52=_0x2399be,{memberID:_0x22777b,unitIDs:_0x21105e}=_0x570ca3;_0x21105e[_0xf12c52(0x306)](_0x2e48fa=>{const _0x5becae=_0xf12c52;var _0x222699;const _0x24c991=this[_0x5becae(0x184)][_0x5becae(0x654)](_0x2e48fa);_0x24c991&&(_0x24c991['delete'](_0x22777b),(_0x222699=this[_0x5becae(0x18d)](_0x2e48fa))==null||_0x222699[_0x5becae(0x4db)](_0x24c991[_0x5becae(0x19c)]===0x0?0x0:0x1));}),this[_0xf12c52(0x3c2)](_0x22777b);}[_0x2399be(0x476)](_0x3937d5){const _0xa20eb7=_0x2399be;this[_0xa20eb7(0x531)](_0x3937d5[_0xa20eb7(0x28f)]);}[_0x2399be(0x570)](_0x349490){const _0x4460=_0x2399be;localStorage[_0x4460(0x595)](Ft,JSON[_0x4460(0x4e1)](_0x349490));}[_0x2399be(0x3e9)](){const _0x14a1f6=_0x2399be;this['_heartbeatTimer']=window[_0x14a1f6(0x51a)](()=>{const _0x785ff3=_0x14a1f6;this[_0x785ff3(0x570)]({'type':0x2,'memberID':this[_0x785ff3(0x4dd)]});},Wt);}[_0x2399be(0x18d)](_0x3bbe25){const _0x5b7b0a=_0x2399be;return this[_0x5b7b0a(0x528)][_0x5b7b0a(0x2e1)](_0x3bbe25)||this[_0x5b7b0a(0x528)][_0x5b7b0a(0x593)](_0x3bbe25,new N[(_0x5b7b0a(0x57c))](0x0)),this[_0x5b7b0a(0x528)]['get'](_0x3bbe25);}}var jn=Object[_0x2399be(0x28d)],Hn=Object[_0x2399be(0x398)],Bn=(_0x34cf38,_0x188456,_0x2ba734,_0x5ebb0b)=>{for(var _0x4f5ae1=_0x5ebb0b>0x1?void 0x0:_0x5ebb0b?Hn(_0x188456,_0x2ba734):_0x188456,_0x3eb4ba=_0x34cf38['length']-0x1,_0x4a12dc;_0x3eb4ba>=0x0;_0x3eb4ba--)(_0x4a12dc=_0x34cf38[_0x3eb4ba])&&(_0x4f5ae1=(_0x5ebb0b?_0x4a12dc(_0x188456,_0x2ba734,_0x4f5ae1):_0x4a12dc(_0x4f5ae1))||_0x4f5ae1);return _0x5ebb0b&&_0x4f5ae1&&jn(_0x188456,_0x2ba734,_0x4f5ae1),_0x4f5ae1;},ut=(_0x375381,_0x1987f9)=>(_0x24bf96,_0x576b04)=>_0x1987f9(_0x24bf96,_0x576b04,_0x375381);let et=class{constructor(_0x2c7e90,_0x4a640c,_0x2f75cd){const _0x4722cd=_0x2399be;this[_0x4722cd(0x39d)]=_0x2c7e90,this['_transformService']=_0x4a640c,this[_0x4722cd(0x575)]=_0x2f75cd;}[_0x2399be(0x622)](_0x35f0a3){const _0x1deaef=_0x2399be;this[_0x1deaef(0x283)](_0x35f0a3);}['transformRemoteChangeset'](_0x8f4078){const _0x40aa9d=_0x2399be,{unitID:_0x2a8d30}=_0x8f4078,{collaboration:_0x5b6343}=this[_0x40aa9d(0x575)]['getStateCache'](_0x2a8d30);if(_0x5b6343['length']===0x0)return _0x8f4078;let _0x2a4410=a['Tools'][_0x40aa9d(0x275)](_0x8f4078[_0x40aa9d(0x46b)][0x0]);for(let _0x48ab3e=0x0;_0x48ab3e<_0x5b6343[_0x40aa9d(0x477)];_0x48ab3e++){const _0x51ee39={'id':_0x40aa9d(0x234),'params':{'unitId':_0x5b6343[_0x48ab3e][_0x40aa9d(0x54c)],..._0x5b6343[_0x48ab3e]['redoState']}},_0x10532d=this[_0x40aa9d(0x300)]['transformMutation'](_0x2a4410,_0x51ee39,!0x1);if(m[_0x40aa9d(0x5f5)](_0x10532d))throw _0x10532d[_0x40aa9d(0x3b0)];_0x2a4410=_0x10532d[_0x40aa9d(0x446)];}return{...a[_0x40aa9d(0x1e0)]['deepClone'](_0x8f4078),'mutations':[_0x2a4410]};}[_0x2399be(0x283)](_0x46e931){const _0x5b98d8=_0x2399be,{unitID:_0x1f594d}=_0x46e931,{history:_0x234b02,collaboration:_0x5ca22d}=this[_0x5b98d8(0x575)][_0x5b98d8(0x62d)](_0x1f594d);if(_0x234b02['length']===0x0&&_0x5ca22d['length']===0x0)return;const _0xadd057=[],_0x2f3483=[];let _0x57c8cd=a['Tools'][_0x5b98d8(0x275)](_0x46e931[_0x5b98d8(0x46b)][0x0]),_0x45dec3=a[_0x5b98d8(0x1e0)][_0x5b98d8(0x275)](_0x46e931['mutations'][0x0]);for(let _0x28baae=_0x234b02[_0x5b98d8(0x477)]-0x1;_0x28baae>=0x0;_0x28baae--){const _0x260ddc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x234b02[_0x28baae][_0x5b98d8(0x54c)],..._0x234b02[_0x28baae]['undoState']}},_0x2730c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x234b02[_0x28baae][_0x5b98d8(0x54c)],..._0x234b02[_0x28baae]['redoState']}},_0x9e6aa7=this['_transformService'][_0x5b98d8(0x2ad)](_0x57c8cd,_0x260ddc,!0x1),_0x4db5da=this[_0x5b98d8(0x300)][_0x5b98d8(0x2ad)](_0x45dec3,_0x2730c4,!0x1);if(m['isTransformMutationFailure'](_0x9e6aa7))throw _0x9e6aa7[_0x5b98d8(0x3b0)];if(m['isTransformMutationFailure'](_0x4db5da))throw _0x4db5da[_0x5b98d8(0x3b0)];_0xadd057[_0x5b98d8(0x569)]({..._0x234b02[_0x28baae],'undoState':_0x9e6aa7[_0x5b98d8(0x356)]['params'],'redoState':_0x4db5da['m2Prime'][_0x5b98d8(0x552)]}),_0x57c8cd=_0x9e6aa7[_0x5b98d8(0x446)],_0x45dec3=_0x4db5da[_0x5b98d8(0x446)];}_0x57c8cd=a['Tools'][_0x5b98d8(0x275)](_0x46e931[_0x5b98d8(0x46b)][0x0]),_0x45dec3=a[_0x5b98d8(0x1e0)]['deepClone'](_0x46e931[_0x5b98d8(0x46b)][0x0]);for(let _0x47c790=_0x5ca22d[_0x5b98d8(0x477)]-0x1;_0x47c790>=0x0;_0x47c790--){const _0x829c64={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ca22d[_0x47c790][_0x5b98d8(0x54c)],..._0x5ca22d[_0x47c790][_0x5b98d8(0x222)]}},_0x598e63={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ca22d[_0x47c790][_0x5b98d8(0x54c)],..._0x5ca22d[_0x47c790][_0x5b98d8(0x4c8)]}},_0x4b405b=this['_transformService']['transformMutation'](_0x57c8cd,_0x829c64,!0x1),_0x5e4370=this['_transformService'][_0x5b98d8(0x2ad)](_0x45dec3,_0x598e63,!0x1);if(m[_0x5b98d8(0x5f5)](_0x4b405b))throw _0x4b405b[_0x5b98d8(0x3b0)];if(m[_0x5b98d8(0x5f5)](_0x5e4370))throw _0x5e4370[_0x5b98d8(0x3b0)];_0x2f3483[_0x5b98d8(0x569)]({..._0x5ca22d[_0x47c790],'undoState':_0x4b405b['m2Prime'][_0x5b98d8(0x552)],'redoState':_0x5e4370[_0x5b98d8(0x356)][_0x5b98d8(0x552)]}),_0x57c8cd=_0x4b405b['m1Prime'],_0x45dec3=_0x5e4370[_0x5b98d8(0x446)];}this[_0x5b98d8(0x575)][_0x5b98d8(0x2ca)](_0x1f594d,{'history':_0xadd057,'collaboration':_0x2f3483});}};et=Bn([ut(0x0,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),ut(0x1,m[_0x2399be(0x587)]),ut(0x2,a[_0x2399be(0x24b)](J[_0x2399be(0x5a8)]))],et);function Di(_0xc73ae3){let _0x38adc0='';for(const _0x563c75 of _0xc73ae3){const {startOffset:_0x1fbe11,endOffset:_0xcd2365,isActive:_0x3579dc,rangeType:_0x134656,segmentId:_0x418f6b,segmentPage:_0x5c2ed0}=_0x563c75;_0x38adc0['length']&&(_0x38adc0+=','),_0x38adc0+=_0x1fbe11+':'+_0xcd2365+':'+(_0x3579dc?'1':'0')+':'+_0x134656+':'+_0x418f6b+':'+_0x5c2ed0;}return _0x38adc0;}function kn(_0x16ddf3){const _0x3472c1=_0x2399be,_0x252441=_0x16ddf3[_0x3472c1(0x47b)](','),_0x9d81a9=[];for(const _0x143323 of _0x252441){const [_0x1036d8,_0x3f7e1a,_0x269ef3,_0x10e6a3,_0x2cec5d,_0xddea17]=_0x143323[_0x3472c1(0x47b)](':');_0x9d81a9['push']({'startOffset':Number(_0x1036d8),'endOffset':Number(_0x3f7e1a),'collapsed':_0x1036d8===_0x3f7e1a,'isActive':_0x269ef3==='1','rangeType':_0x10e6a3===a['DOC_RANGE_TYPE']['TEXT']?a['DOC_RANGE_TYPE'][_0x3472c1(0x262)]:a[_0x3472c1(0x206)]['RECT'],'segmentId':typeof _0x2cec5d=='string'?String(_0x2cec5d):'','segmentPage':Number(_0xddea17!=null?_0xddea17:-0x1)});}return _0x9d81a9[_0x3472c1(0x38a)](_0x363f56=>_0x363f56['isActive'])||(_0x9d81a9[0x0][_0x3472c1(0x3f4)]=!0x0),_0x9d81a9;}class Ut extends a[_0x2399be(0x551)]{constructor(){const _0x324540=_0x2399be;super(...arguments),I(this,_0x324540(0x217),new N[(_0x324540(0x57c))](null)),I(this,_0x324540(0x57a),this[_0x324540(0x217)][_0x324540(0x295)]());}[_0x2399be(0x576)](_0x365e3a){const _0x5e7a05=_0x2399be,{unitID:_0x2b2d8f,memberID:_0x51fe6b,textRanges:_0x48edb2}=_0x365e3a,_0x1553ed=Di(_0x48edb2);if(_0x1553ed==='')return;const _0x14fce1={'unitID':_0x2b2d8f,'memberID':_0x51fe6b,'selection':_0x1553ed};this[_0x5e7a05(0x217)]['next'](_0x14fce1);}}var Wn=Object[_0x2399be(0x28d)],Fn=Object[_0x2399be(0x398)],Vn=(_0x3e4801,_0x3b27bf,_0x3f19d2,_0x46f040)=>{const _0x36299f=_0x2399be;for(var _0x16f3c7=_0x46f040>0x1?void 0x0:_0x46f040?Fn(_0x3b27bf,_0x3f19d2):_0x3b27bf,_0x3e0dbb=_0x3e4801[_0x36299f(0x477)]-0x1,_0x2e339a;_0x3e0dbb>=0x0;_0x3e0dbb--)(_0x2e339a=_0x3e4801[_0x3e0dbb])&&(_0x16f3c7=(_0x46f040?_0x2e339a(_0x3b27bf,_0x3f19d2,_0x16f3c7):_0x2e339a(_0x16f3c7))||_0x16f3c7);return _0x46f040&&_0x16f3c7&&Wn(_0x3b27bf,_0x3f19d2,_0x16f3c7),_0x16f3c7;},Vt=(_0x8aae6b,_0x28b598)=>(_0x3a378a,_0x2c41be)=>_0x28b598(_0x3a378a,_0x2c41be,_0x8aae6b);let tt=class{constructor(_0x555808,_0x5f6f9f){const _0x3f42a9=_0x2399be;this[_0x3f42a9(0x39d)]=_0x555808,this['_transformService']=_0x5f6f9f;}['transformSelections'](_0x134c65){const _0x52023b=_0x2399be;var _0x22d905;const _0x195b63=this[_0x52023b(0x39d)][_0x52023b(0x654)](Ie[_0x52023b(0x484)]),_0x27851d=(_0x22d905=_0x195b63['getDocRanges']())!=null?_0x22d905:[];if(_0x27851d[_0x52023b(0x477)]===0x0)return;const _0x1c668a=_0x134c65[_0x52023b(0x533)],_0x1d86f2=[{'id':_0x52023b(0x234),'params':{'unitId':_0x1c668a,'actions':null,'textRanges':_0x27851d}}],_0x471d41=this[_0x52023b(0x300)][_0x52023b(0x63b)](_0x134c65,_0x1d86f2);if(!m[_0x52023b(0x432)](_0x471d41))throw _0x471d41[_0x52023b(0x3b0)];const _0x1a2989=_0x471d41['m2Prime'][0x0][_0x52023b(0x552)]['textRanges'];Array['isArray'](_0x1a2989)&&_0x1a2989[_0x52023b(0x477)]&&_0x195b63[_0x52023b(0x21f)](_0x1a2989,{'unitId':_0x1c668a,'subUnitId':_0x1c668a},!0x1);}};tt=Vn([Vt(0x0,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),Vt(0x1,m[_0x2399be(0x587)])],tt);const Gn=new Set([k['InsertSheetMutation']['id']]);function Gt(_0x243f4a,_0x19437e,_0x359f16,_0xa78404,_0x4dfc83){const _0x2c62c8=_0x2399be;var _0x13725c,_0x30cc9d,_0x50a178,_0x170418;const _0xe708e8=[];for(const _0x24770d of _0x243f4a)if(Gn[_0x2c62c8(0x2e1)](_0x24770d['id'])){if(_0xe708e8[_0x2c62c8(0x477)]>0x0)break;_0xe708e8[_0x2c62c8(0x644)](_0x24770d);break;}else _0xe708e8[_0x2c62c8(0x644)](_0x24770d);const _0x3e3bec=(_0x30cc9d=(_0x13725c=_0x4dfc83[_0x2c62c8(0x64f)]())==null?void 0x0:_0x13725c[_0x2c62c8(0x645)])!=null?_0x30cc9d:_0x2c62c8(0x630),_0x335317=(_0x170418=(_0x50a178=_0x4dfc83[_0x2c62c8(0x64f)]())==null?void 0x0:_0x50a178[_0x2c62c8(0x28f)])!=null?_0x170418:_0x2c62c8(0x630);return{'changeset':{'unitID':_0x19437e,'type':m[_0x2c62c8(0x1ac)](_0x359f16[_0x2c62c8(0x322)](_0x19437e)),'baseRev':_0xa78404[_0x2c62c8(0x1d9)](_0x19437e),'revision':0x0,'userID':_0x3e3bec,'memberID':_0x335317,'mutations':_0xe708e8},'pendingMutations':_0x243f4a[_0x2c62c8(0x5a5)](_0xe708e8[_0x2c62c8(0x477)])};}function Yn(_0x71a018,_0x5a5158,_0x22280b,_0x16683b,_0x26b399){const _0x1db8e6=_0x2399be;var _0x2f3680,_0x2cfcea,_0x29bae7,_0x3dea59;const _0x18c474=[_0x71a018[_0x1db8e6(0x5af)]((_0x821e7f,_0x13e244)=>{const _0x2ef6f2=_0x1db8e6;var _0xc69418;const {id:_0x58ef08}=_0x821e7f,{id:_0x1c6615,type:_0x43c6a7}=_0x13e244,_0x3c7299=(_0xc69418=_0x821e7f[_0x2ef6f2(0x552)])!=null?_0xc69418:{'actions':null},_0x4123a1=_0x13e244['params'];if(_0x58ef08&&_0x58ef08!==_0x1c6615)throw new Error(_0x2ef6f2(0x3a2)+_0x58ef08+_0x2ef6f2(0x3d4)+_0x1c6615+'.');return{..._0x821e7f,'id':_0x1c6615,'type':_0x43c6a7,'params':{'unitId':_0x4123a1[_0x2ef6f2(0x54c)],'textRanges':_0x4123a1[_0x2ef6f2(0x32b)],'actions':a[_0x2ef6f2(0x51d)][_0x2ef6f2(0x3ac)](_0x3c7299[_0x2ef6f2(0x20c)],_0x4123a1['actions'])}};},{})],_0x496b8f=(_0x2cfcea=(_0x2f3680=_0x26b399[_0x1db8e6(0x64f)]())==null?void 0x0:_0x2f3680[_0x1db8e6(0x645)])!=null?_0x2cfcea:_0x1db8e6(0x630),_0x90b4da=(_0x3dea59=(_0x29bae7=_0x26b399['getCurrentUser']())==null?void 0x0:_0x29bae7[_0x1db8e6(0x28f)])!=null?_0x3dea59:_0x1db8e6(0x630);return{'changeset':{'unitID':_0x5a5158,'type':m[_0x1db8e6(0x1ac)](_0x22280b['getUnitType'](_0x5a5158)),'baseRev':_0x16683b[_0x1db8e6(0x1d9)](_0x5a5158),'revision':0x0,'userID':_0x496b8f,'memberID':_0x90b4da,'mutations':_0x18c474},'pendingMutations':[]};}function Pi(_0x42a32d,_0x1905f3){const _0x4b0bf8=_0x2399be,_0x43ec9a=new N[(_0x4b0bf8(0x325))](0x1);return setTimeout(()=>_0x43ec9a[_0x4b0bf8(0x4db)](_0x1905f3),_0x42a32d),_0x43ec9a[_0x4b0bf8(0x295)]()['pipe'](N[_0x4b0bf8(0x611)](0x1));}const qn={'id':k[_0x2399be(0x5c1)]['id'],'type':a[_0x2399be(0x4eb)][_0x2399be(0x2b7)],'params':{}};var Kn=Object['defineProperty'],zn=Object[_0x2399be(0x398)],Ee=(_0x5ea366,_0x15e7c8,_0x2a3a17,_0x4e62b9)=>{const _0x235e85=_0x2399be;for(var _0x3a7a41=_0x4e62b9>0x1?void 0x0:_0x4e62b9?zn(_0x15e7c8,_0x2a3a17):_0x15e7c8,_0x286c99=_0x5ea366[_0x235e85(0x477)]-0x1,_0xb1fb08;_0x286c99>=0x0;_0x286c99--)(_0xb1fb08=_0x5ea366[_0x286c99])&&(_0x3a7a41=(_0x4e62b9?_0xb1fb08(_0x15e7c8,_0x2a3a17,_0x3a7a41):_0xb1fb08(_0x3a7a41))||_0x3a7a41);return _0x4e62b9&&_0x3a7a41&&Kn(_0x15e7c8,_0x2a3a17,_0x3a7a41),_0x3a7a41;},A=(_0x5e5eb8,_0x413b7c)=>(_0x5f14ec,_0x52f5a4)=>_0x413b7c(_0x5f14ec,_0x52f5a4,_0x5e5eb8),K=(_0x4285d0=>(_0x4285d0['NOT_COLLAB']='not_collab',_0x4285d0[_0x2399be(0x4ea)]=_0x2399be(0x39e),_0x4285d0[_0x2399be(0x460)]='pending',_0x4285d0[_0x2399be(0x542)]=_0x2399be(0x5c9),_0x4285d0['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x4285d0[_0x2399be(0x2ab)]=_0x2399be(0x395),_0x4285d0[_0x2399be(0x643)]=_0x2399be(0x1ea),_0x4285d0[_0x2399be(0x3ee)]=_0x2399be(0x465),_0x4285d0))(K||{});const wi=0xea60;class be{constructor(_0x260c50,_0x282b7e,_0x3c68ef,_0xfb1724,_0x5c3e8d,_0x25f6f1,_0x52bb49,_0x3b5b49,_0x935eb3){const _0x2bd244=_0x2399be;I(this,_0x2bd244(0x2c4),null),I(this,_0x2bd244(0x53f),[]),(this[_0x2bd244(0x533)]=_0x260c50,this[_0x2bd244(0x64c)]=_0x282b7e,this[_0x2bd244(0x4cc)]=_0x5c3e8d,this[_0x2bd244(0x4a8)]=_0x25f6f1,this[_0x2bd244(0x1be)]=_0x52bb49,this[_0x2bd244(0x419)]=_0x3b5b49,this['_localCacheService']=_0x935eb3,this[_0x2bd244(0x2c4)]=_0x3c68ef,this[_0x2bd244(0x53f)]=_0xfb1724);}[_0x2399be(0x5b4)](_0x5d300c){const _0x341088=_0x2399be,_0x4d9eba=this[_0x341088(0x419)][_0x341088(0x1d9)](this[_0x341088(0x533)]);return _0x5d300c[_0x341088(0x2bf)]>_0x4d9eba+0x1?(this['_handler'][_0x341088(0x5f1)]({'from':_0x4d9eba,'to':_0x5d300c[_0x341088(0x2bf)]-0x1}),!0x0):!0x1;}[_0x2399be(0x354)](_0x15bbb9){const _0x54d69c=_0x2399be;this[_0x54d69c(0x1be)][_0x54d69c(0x61c)](this['unitID'],_0x15bbb9);}['_transformSelections'](_0x3de430){const _0x373d7b=_0x2399be;var _0x1629d7,_0x3b6796;(_0x3b6796=(_0x1629d7=this[_0x373d7b(0x4cc)])['onTransformSelections'])==null||_0x3b6796[_0x373d7b(0x311)](_0x1629d7,_0x3de430);}[_0x2399be(0x4bb)](_0x49b8de){const _0x5e3130=_0x2399be;var _0x38c514,_0x5694c9;return(_0x5694c9=(_0x38c514=this[_0x5e3130(0x4cc)])['onTransformIME'])==null?void 0x0:_0x5694c9[_0x5e3130(0x311)](_0x38c514,_0x49b8de);}[_0x2399be(0x293)](_0x2efec5){const _0x391f26=_0x2399be;var _0x359de2,_0x5d815e;return(_0x5d815e=(_0x359de2=this[_0x391f26(0x4cc)])[_0x391f26(0x5ec)])==null?void 0x0:_0x5d815e['call'](_0x359de2,_0x2efec5);}[_0x2399be(0x1ff)](_0x3189fe){const _0x46b577=_0x2399be;var _0x5bac8d,_0x5d070a,_0x25c2e7;return(_0x25c2e7=(_0x5d070a=(_0x5bac8d=this['_handler'])[_0x46b577(0x3f8)])==null?void 0x0:_0x5d070a[_0x46b577(0x311)](_0x5bac8d,_0x3189fe))!=null?_0x25c2e7:_0x3189fe;}[_0x2399be(0x4f5)](_0x4effa5){const _0x281c6d=_0x2399be;var _0x5181e5,_0x4a3d17,_0x3236d2;return(_0x3236d2=(_0x4a3d17=(_0x5181e5=this['_handler'])[_0x281c6d(0x2e3)])==null?void 0x0:_0x4a3d17[_0x281c6d(0x311)](_0x5181e5,_0x4effa5))!=null?_0x3236d2:_0x4effa5;}[_0x2399be(0x3c1)](_0x3c5c0a){const _0x4c3d2f=_0x2399be;var _0x1d02ac,_0x59397f;if(this[_0x4c3d2f(0x64c)]===ie[_0x4c3d2f(0x4f4)]){const {unitID:_0x37aa96,mutations:_0x51d69e,memberID:_0x348ce2}=_0x3c5c0a,_0x4ef5ee=_0x51d69e[0x0]['params'][_0x4c3d2f(0x32b)];Array[_0x4c3d2f(0x1ce)](_0x4ef5ee)&&_0x4ef5ee['length']>0x0&&((_0x59397f=(_0x1d02ac=this['_handler'])[_0x4c3d2f(0x401)])==null||_0x59397f[_0x4c3d2f(0x311)](_0x1d02ac,{'unitID':_0x37aa96,'memberID':_0x348ce2,'textRanges':_0x4ef5ee}));}}['_updateLocalCache'](){const _0x2b934c=_0x2399be;this[_0x2b934c(0x3da)][_0x2b934c(0x5e0)](this[_0x2b934c(0x533)],this['type'],this[_0x2b934c(0x2c4)],this['_pendingMutations']);}[_0x2399be(0x2f3)](){const _0x1b0fcf=_0x2399be;return this[_0x1b0fcf(0x419)][_0x1b0fcf(0x1d9)](this[_0x1b0fcf(0x533)]);}[_0x2399be(0x4bd)](){const _0x950b92=_0x2399be;this[_0x950b92(0x419)][_0x950b92(0x212)](this[_0x950b92(0x533)]);}[_0x2399be(0x189)](_0x351ce7){const _0x23eea0=_0x2399be;var _0x3f19b5;let _0x49123d=this[_0x23eea0(0x1ff)](_0x351ce7);_0x49123d=this[_0x23eea0(0x4f5)](_0x49123d);const _0x346b6f=a[_0x23eea0(0x45e)](_0x49123d[_0x23eea0(0x46b)],this[_0x23eea0(0x4a8)],{'fromCollab':!0x0});if(!_0x346b6f[_0x23eea0(0x3cc)])throw _0x346b6f['error']instanceof Error?_0x346b6f[_0x23eea0(0x3b0)]:new Error((_0x3f19b5=_0x346b6f[_0x23eea0(0x3b0)])!=null?_0x3f19b5:_0x23eea0(0x254));this[_0x23eea0(0x4bb)](_0x49123d),this['_transformStateCache'](_0x49123d),this[_0x23eea0(0x354)](_0x351ce7),this[_0x23eea0(0x3ad)](_0x49123d),this[_0x23eea0(0x3c1)](_0x49123d),this[_0x23eea0(0x4bd)]();}}let Oe=class extends be{constructor(_0x2d93da,_0x48c14d,_0x4ee661,_0x1ea7d6,_0x34b665,_0x4ca36b,_0x3fa7a4,_0x28bd4f,_0x5eef18,_0x2c26c8){const _0x42acdb=_0x2399be;super(_0x2d93da,_0x48c14d,null,[],_0x4ee661,_0x28bd4f,_0x3fa7a4,_0x1ea7d6,_0x34b665),I(this,_0x42acdb(0x365),_0x42acdb(0x39e)),(this[_0x42acdb(0x39d)]=_0x4ca36b,this[_0x42acdb(0x364)]=_0x5eef18,this[_0x42acdb(0x300)]=_0x2c26c8);}[_0x2399be(0x445)](_0x525128){const _0x2490d0=_0x2399be,_0x5797df=this[_0x2490d0(0x39d)][_0x2490d0(0x359)](ae,this['unitID'],this[_0x2490d0(0x64c)],[_0x525128],this[_0x2490d0(0x4cc)]);return _0x5797df[_0x2490d0(0x1de)](),_0x5797df[_0x2490d0(0x463)](),_0x5797df;}[_0x2399be(0x3cf)](_0x2e7348){const _0x40794f=_0x2399be;if(this[_0x40794f(0x5b4)](_0x2e7348))return this[_0x40794f(0x39d)][_0x40794f(0x359)](re,this[_0x40794f(0x533)],this[_0x40794f(0x64c)],null,[],null,[_0x2e7348],this[_0x40794f(0x4cc)]);try{const _0x24ef31=this[_0x40794f(0x300)][_0x40794f(0x63b)](_0x2e7348,[qn]);if(m['isTransformMutationsWithChangesetSuccess'](_0x24ef31)){const {c1Prime:_0x3620c1}=_0x24ef31;return this[_0x40794f(0x189)](_0x3620c1),this;}throw _0x24ef31[_0x40794f(0x3b0)];}catch(_0x533b35){return this['_logService'][_0x40794f(0x3b0)](_0x533b35),this['_onConflict'](!0x1);}}[_0x2399be(0x5d7)](_0x5ddc4a){const _0x3fda3a=_0x2399be;return this[_0x3fda3a(0x39d)]['createInstance'](fe,this[_0x3fda3a(0x533)],this[_0x3fda3a(0x64c)],null,[],this['_handler'],_0x5ddc4a);}[_0x2399be(0x516)](){const _0x363999=_0x2399be;throw new Error(_0x363999(0x4da));}[_0x2399be(0x376)](){const _0x1bf2bb=_0x2399be;throw new Error(_0x1bf2bb(0x63a));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x103e24=_0x2399be;return this['_injector'][_0x103e24(0x359)](ve,this['unitID'],this['type'],null,[],this[_0x103e24(0x4cc)]);}[_0x2399be(0x319)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2399be(0x550)](){const _0x5dce57=_0x2399be,_0x4bbe0e=this['_revisionService']['getCurrentRevOfUnit'](this[_0x5dce57(0x533)]);return this['_handler'][_0x5dce57(0x5f1)]({'from':_0x4bbe0e,'to':0x0}),this[_0x5dce57(0x39d)][_0x5dce57(0x359)](re,this[_0x5dce57(0x533)],this[_0x5dce57(0x64c)],null,[],null,[],this[_0x5dce57(0x4cc)]);}};Oe=Ee([A(0x3,a[_0x2399be(0x24b)](m['RevisionService'])),A(0x4,a['Inject'](exports[_0x2399be(0x596)])),A(0x5,a['Inject'](a[_0x2399be(0x3b4)])),A(0x6,a['IUndoRedoService']),A(0x7,a[_0x2399be(0x36c)]),A(0x8,a[_0x2399be(0x373)]),A(0x9,m['ITransformService'])],Oe);let ae=class extends be{constructor(_0x1ae2f,_0x2caf86,_0x2cbfef,_0x31c43a,_0x5639b4,_0x3af6aa,_0x495865,_0x11e729,_0x3da59d,_0x3cbe24,_0x5dd814,_0x2e2aed,_0x323715,_0x52e6dd){const _0x200a8f=_0x2399be;super(_0x1ae2f,_0x2caf86,null,_0x2cbfef,_0x31c43a,_0x3cbe24,_0x52e6dd,_0x3af6aa,_0x495865),I(this,_0x200a8f(0x365),_0x200a8f(0x590)),I(this,'_scheduleTimestamp',null),I(this,_0x200a8f(0x264),null),(this['_injector']=_0x5639b4,this[_0x200a8f(0x2ed)]=_0x11e729,this['_logService']=_0x3da59d,this[_0x200a8f(0x2a2)]=_0x5dd814,this[_0x200a8f(0x300)]=_0x2e2aed,this[_0x200a8f(0x435)]=_0x323715);}[_0x2399be(0x445)](_0x5ac416){const _0x3faa6e=_0x2399be;return this[_0x3faa6e(0x53f)][_0x3faa6e(0x644)](_0x5ac416),this[_0x3faa6e(0x463)](),this;}[_0x2399be(0x3cf)](_0x5e3572){const _0x4984fe=_0x2399be;if(this[_0x4984fe(0x5b4)](_0x5e3572))return this[_0x4984fe(0x526)](),this['_injector']['createInstance'](re,this[_0x4984fe(0x533)],this[_0x4984fe(0x64c)],null,this[_0x4984fe(0x53f)],null,[_0x5e3572],this[_0x4984fe(0x4cc)]);try{const _0x111056=this[_0x4984fe(0x300)][_0x4984fe(0x63b)](_0x5e3572,this['_pendingMutations']);if(m[_0x4984fe(0x432)](_0x111056)){const {c1Prime:_0x4aacf2,m2Prime:_0x4d5b47}=_0x111056;this[_0x4984fe(0x189)](_0x4aacf2);const _0x1c54c7=this[_0x4984fe(0x39d)][_0x4984fe(0x359)](ae,this[_0x4984fe(0x533)],this[_0x4984fe(0x64c)],_0x4d5b47,this['_handler']);return this['_clearScheduledTask'](),_0x1c54c7[_0x4984fe(0x1de)](this[_0x4984fe(0x213)]?Math[_0x4984fe(0x584)](0x0,new Date()[_0x4984fe(0x436)]()-this[_0x4984fe(0x213)]):this['_getSendChangesetTimeout']()),_0x1c54c7;}throw _0x111056['error'];}catch(_0x55c5a7){return this['_logService'][_0x4984fe(0x3b0)](_0x55c5a7),this['_onConflict'](!0x1);}}[_0x2399be(0x516)](){const _0x3e39c1=_0x2399be;throw new Error(_0x3e39c1(0x329));}[_0x2399be(0x376)](){const _0x3f1383=_0x2399be;throw new Error(_0x3f1383(0x276));}['onRemoteRetry'](){return this;}[_0x2399be(0x529)](){const _0x42063f=_0x2399be;return this[_0x42063f(0x526)](),this[_0x42063f(0x39d)]['createInstance'](ve,this['unitID'],this[_0x42063f(0x64c)],null,this[_0x42063f(0x53f)],this[_0x42063f(0x4cc)]);}[_0x2399be(0x319)](){return this;}['_schedule'](_0x35f094){const _0x36a62d=_0x2399be,_0x5adbd2=_0x35f094!=null?_0x35f094:this[_0x36a62d(0x55e)]();this[_0x36a62d(0x213)]=new Date()[_0x36a62d(0x436)](),this[_0x36a62d(0x264)]=window[_0x36a62d(0x232)](()=>{const _0x40ee51=_0x36a62d;this[_0x40ee51(0x526)]();let _0x5d5aa4=null;switch(this['type']){case ie['UNIVER_SHEET']:{_0x5d5aa4=Gt(this[_0x40ee51(0x53f)],this[_0x40ee51(0x533)],this[_0x40ee51(0x435)],this[_0x40ee51(0x419)],this['_memberService']);break;}case ie['UNIVER_DOC']:{this[_0x40ee51(0x53f)][_0x40ee51(0x363)](_0xd4a926=>_0xd4a926['id']===Ie['RichTextEditingMutation']['id'])?_0x5d5aa4=Yn(this['_pendingMutations'],this[_0x40ee51(0x533)],this['_univerInstanceService'],this['_revisionService'],this[_0x40ee51(0x2ed)]):_0x5d5aa4=Gt(this[_0x40ee51(0x53f)],this['unitID'],this['_univerInstanceService'],this[_0x40ee51(0x419)],this[_0x40ee51(0x2ed)]);break;}default:throw new Error(_0x40ee51(0x57b)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x3f4c30,pendingMutations:_0x2555f5}=_0x5d5aa4;this['_handler'][_0x40ee51(0x2e9)](_0x3f4c30);const _0x42d783=_0x2555f5[_0x40ee51(0x477)]?this[_0x40ee51(0x39d)]['createInstance'](ce,this[_0x40ee51(0x533)],this[_0x40ee51(0x64c)],_0x3f4c30,_0x2555f5,this[_0x40ee51(0x4cc)],void 0x0):this[_0x40ee51(0x39d)][_0x40ee51(0x359)](de,this[_0x40ee51(0x533)],this[_0x40ee51(0x64c)],_0x3f4c30,this['_handler']);_0x42d783[_0x40ee51(0x463)](),this[_0x40ee51(0x4cc)][_0x40ee51(0x3d0)](this,_0x42d783);},_0x5adbd2);}['_getSendChangesetTimeout'](){const _0x501c7f=_0x2399be;var _0x550d3c;const _0x5e47c0=this[_0x501c7f(0x2a2)][_0x501c7f(0x2c1)](Z);return(_0x550d3c=_0x5e47c0==null?void 0x0:_0x5e47c0[_0x501c7f(0x29b)])!=null?_0x550d3c:zi;}['resend'](){const _0x4285b5=_0x2399be;throw new Error(_0x4285b5(0x223));}[_0x2399be(0x526)](){const _0x1bfedf=_0x2399be;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1bfedf(0x264)]),this['_sendingTimer']=null);}[_0x2399be(0x5d7)](_0x2c1022){const _0x7c60e3=_0x2399be;return this['_clearScheduledTask'](),this[_0x7c60e3(0x39d)]['createInstance'](fe,this[_0x7c60e3(0x533)],this[_0x7c60e3(0x64c)],null,this[_0x7c60e3(0x53f)],this[_0x7c60e3(0x4cc)],_0x2c1022);}};ae=Ee([A(0x4,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),A(0x5,a[_0x2399be(0x24b)](m[_0x2399be(0x52c)])),A(0x6,a[_0x2399be(0x24b)](exports[_0x2399be(0x596)])),A(0x7,a[_0x2399be(0x24b)](exports[_0x2399be(0x4e4)])),A(0x8,a['ILogService']),A(0x9,a['ICommandService']),A(0xa,a[_0x2399be(0x5b1)]),A(0xb,m[_0x2399be(0x587)]),A(0xc,a[_0x2399be(0x53e)]),A(0xd,a[_0x2399be(0x394)])],ae);let de=class extends be{constructor(_0x4aad10,_0xdcde75,_0x3a8004,_0x2098e0,_0x232340,_0x3464d8,_0x2a590e,_0x4720a2,_0x3f2cac,_0x53f445,_0x20636a){const _0xfcff83=_0x2399be;super(_0x4aad10,_0xdcde75,_0x3a8004,[],_0x2098e0,_0x4720a2,_0x20636a,_0x3464d8,_0x2a590e),I(this,'status',_0xfcff83(0x5c9)),I(this,_0xfcff83(0x4d6),0x0),I(this,_0xfcff83(0x336)),I(this,_0xfcff83(0x299)),(this[_0xfcff83(0x39d)]=_0x232340,this[_0xfcff83(0x364)]=_0x3f2cac,this[_0xfcff83(0x300)]=_0x53f445);}[_0x2399be(0x445)](_0x20d069){const _0x50836f=_0x2399be;this[_0x50836f(0x526)]();const _0x58ef84=this['_injector'][_0x50836f(0x359)](ce,this[_0x50836f(0x533)],this[_0x50836f(0x64c)],this[_0x50836f(0x2c4)],[_0x20d069],this[_0x50836f(0x4cc)],this[_0x50836f(0x336)]);return _0x58ef84[_0x50836f(0x463)](),_0x58ef84;}[_0x2399be(0x3cf)](_0x31f39e){const _0x4c03a2=_0x2399be;if(this[_0x4c03a2(0x5b4)](_0x31f39e))return this[_0x4c03a2(0x526)](),this[_0x4c03a2(0x39d)][_0x4c03a2(0x359)](re,this[_0x4c03a2(0x533)],this[_0x4c03a2(0x64c)],this['_awaitingChangeset'],[],null,[_0x31f39e],this[_0x4c03a2(0x4cc)]);try{const _0x22af9b=this[_0x4c03a2(0x300)][_0x4c03a2(0x43e)]([_0x31f39e],[this['_awaitingChangeset']],!0x1);if(m['isTransformChangesetsSuccess'](_0x22af9b)){const {c1Prime:_0x2175f3,c2Prime:_0x1714f6}=_0x22af9b;this['_executeRemoteChangeset'](_0x2175f3[0x0]),_0x1714f6[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x4c03a2(0x526)]();const _0x12c3ed=this[_0x4c03a2(0x39d)][_0x4c03a2(0x359)](de,this[_0x4c03a2(0x533)],this[_0x4c03a2(0x64c)],_0x1714f6[0x0],this[_0x4c03a2(0x4cc)]);return _0x12c3ed[_0x4c03a2(0x463)](),_0x12c3ed;}return this[_0x4c03a2(0x5d7)](!0x1);}catch(_0x498bb8){return this[_0x4c03a2(0x364)][_0x4c03a2(0x3b0)](_0x498bb8),this[_0x4c03a2(0x5d7)](!0x1);}}[_0x2399be(0x516)](_0x172336){const _0x3236ff=_0x2399be;this['_clearScheduledTask']();const _0x1b8e53=this[_0x3236ff(0x419)][_0x3236ff(0x1d9)](this[_0x3236ff(0x533)]);if(_0x172336[_0x3236ff(0x2bf)]<_0x1b8e53-0x1)return this;if(this[_0x3236ff(0x5b4)](_0x172336))return this[_0x3236ff(0x39d)][_0x3236ff(0x359)](re,this[_0x3236ff(0x533)],this[_0x3236ff(0x64c)],null,[],this[_0x3236ff(0x2c4)],[],this[_0x3236ff(0x4cc)]);this[_0x3236ff(0x4bd)]();const _0x3fea2d=this['_injector'][_0x3236ff(0x359)](Oe,this[_0x3236ff(0x533)],this[_0x3236ff(0x64c)],this[_0x3236ff(0x4cc)]);return _0x3fea2d[_0x3236ff(0x463)](),_0x3fea2d;}[_0x2399be(0x376)](_0x1b298b){const _0x2cc3f6=_0x2399be;return this['_onConflict'](!!(_0x1b298b!=null&&_0x1b298b[_0x2cc3f6(0x5a9)]));}[_0x2399be(0x1b9)](_0x1d9c61){const _0x1b0627=_0x2399be;return this['_resendTimeout']>wi?this['toggleOffline']():(this[_0x1b0627(0x336)]=Pi(this['_resendTimeout'],{'timeout':this[_0x1b0627(0x4d6)],'reqId':_0x1d9c61['reqId']}),this['_sender']=this[_0x1b0627(0x336)]['subscribe'](({reqId:_0x3b1807,timeout:_0x20c739})=>{const _0x267518=_0x1b0627;this[_0x267518(0x1b6)](_0x3b1807,_0x20c739);}),this);}['toggleOffline'](){const _0x1c99fc=_0x2399be;return this[_0x1c99fc(0x526)](),this['_injector'][_0x1c99fc(0x359)](ve,this[_0x1c99fc(0x533)],this['type'],this[_0x1c99fc(0x2c4)],[],this[_0x1c99fc(0x4cc)]);}['toggleOnline'](){return this;}[_0x2399be(0x284)](){const _0x507807=_0x2399be;this[_0x507807(0x4cc)][_0x507807(0x2e9)](this[_0x507807(0x2c4)]);}[_0x2399be(0x5d7)](_0x2a4990){const _0xdfbc3=_0x2399be;return this['_clearScheduledTask'](),this[_0xdfbc3(0x39d)][_0xdfbc3(0x359)](fe,this[_0xdfbc3(0x533)],this[_0xdfbc3(0x64c)],this['_awaitingChangeset'],[],this[_0xdfbc3(0x4cc)],_0x2a4990);}[_0x2399be(0x1b6)](_0x2af7f2,_0x1a0fcb){const _0x12311d=_0x2399be;var _0x1b315a;_0x2af7f2===((_0x1b315a=this[_0x12311d(0x2c4)])==null?void 0x0:_0x1b315a[_0x12311d(0x504)])&&(this['resend'](),this[_0x12311d(0x4d6)]=_0x1a0fcb===0x0?0x3e8:_0x1a0fcb*0x2);}[_0x2399be(0x526)](){const _0xc4b1c9=_0x2399be;var _0x29ee09;(_0x29ee09=this[_0xc4b1c9(0x299)])==null||_0x29ee09[_0xc4b1c9(0x269)](),this[_0xc4b1c9(0x4d6)]=0x0;}};de=Ee([A(0x4,a['Inject'](a[_0x2399be(0x3b4)])),A(0x5,a[_0x2399be(0x24b)](m[_0x2399be(0x52c)])),A(0x6,a[_0x2399be(0x24b)](exports[_0x2399be(0x596)])),A(0x7,a[_0x2399be(0x36c)]),A(0x8,a[_0x2399be(0x373)]),A(0x9,m['ITransformService']),A(0xa,a['IUndoRedoService'])],de);let ce=class extends be{constructor(_0x23a295,_0x1e254c,_0x56106d,_0x2a2abb,_0x1415ff,_0x16515f,_0x598569,_0x482f83,_0x4c7896,_0x462cee,_0x18daca,_0x9670d5,_0x195889){const _0x95c251=_0x2399be;super(_0x23a295,_0x1e254c,_0x56106d,_0x2a2abb,_0x1415ff,_0x462cee,_0x195889,_0x482f83,_0x4c7896),I(this,_0x95c251(0x365),_0x95c251(0x4f2)),I(this,_0x95c251(0x4d6),0x0),I(this,'_resendTimer'),I(this,'_sender'),(this[_0x95c251(0x39d)]=_0x598569,this['_logService']=_0x18daca,this[_0x95c251(0x300)]=_0x9670d5,_0x16515f&&(this[_0x95c251(0x336)]=_0x16515f,this[_0x95c251(0x299)]=this[_0x95c251(0x336)][_0x95c251(0x468)](({reqId:_0x48ffcd,timeout:_0x1df011})=>{const _0x4a0444=_0x95c251;this[_0x4a0444(0x1b6)](_0x48ffcd,_0x1df011);})));}[_0x2399be(0x445)](_0x2b0f23){const _0x4dc2d2=_0x2399be;return this[_0x4dc2d2(0x53f)][_0x4dc2d2(0x644)](_0x2b0f23),this;}['onRemoteChangeset'](_0x5e5d01){const _0x449e95=_0x2399be;if(this[_0x449e95(0x5b4)](_0x5e5d01))return this[_0x449e95(0x526)](),this['_injector'][_0x449e95(0x359)](re,this[_0x449e95(0x533)],this[_0x449e95(0x64c)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x5e5d01],this['_handler']);try{const _0x57e3d0=this['_transformService'][_0x449e95(0x43e)]([_0x5e5d01],[this['_awaitingChangeset']],!0x1);if(m[_0x449e95(0x3ed)](_0x57e3d0)){const {c1Prime:_0x4c9259,c2Prime:_0x4b4dc2}=_0x57e3d0,_0x1391c5=this[_0x449e95(0x300)][_0x449e95(0x63b)](_0x4c9259[0x0],this['_pendingMutations']);if(m['isTransformMutationsWithChangesetSuccess'](_0x1391c5)){const {c1Prime:_0x42f52d,m2Prime:_0x225523}=_0x1391c5;return this[_0x449e95(0x189)](_0x42f52d),_0x4b4dc2[0x0][_0x449e95(0x1cc)]=this[_0x449e95(0x2f3)](),this[_0x449e95(0x526)](),this['_injector']['createInstance'](ce,this[_0x449e95(0x533)],this['type'],_0x4b4dc2[0x0],_0x225523,this[_0x449e95(0x4cc)],void 0x0);}throw _0x1391c5['error'];}throw _0x57e3d0[_0x449e95(0x3b0)];}catch(_0x54f7d2){return this[_0x449e95(0x364)][_0x449e95(0x3b0)](_0x54f7d2),this['_onConflict'](!0x1);}}[_0x2399be(0x516)](_0x55cc85){const _0x5ed353=_0x2399be;if(this['_clearScheduledTask'](),this[_0x5ed353(0x5b4)](_0x55cc85))return this['_injector'][_0x5ed353(0x359)](re,this[_0x5ed353(0x533)],this['type'],null,this[_0x5ed353(0x53f)],this['_awaitingChangeset'],[],this[_0x5ed353(0x4cc)]);this['_incrementRevisionNumber']();const _0x34e980=this[_0x5ed353(0x39d)][_0x5ed353(0x359)](ae,this[_0x5ed353(0x533)],this[_0x5ed353(0x64c)],this['_pendingMutations'],this[_0x5ed353(0x4cc)]);return _0x34e980[_0x5ed353(0x1de)](),_0x34e980[_0x5ed353(0x463)](),_0x34e980;}[_0x2399be(0x376)](_0x10435c){const _0x4e8c7b=_0x2399be;return this[_0x4e8c7b(0x5d7)](!!(_0x10435c!=null&&_0x10435c[_0x4e8c7b(0x5a9)]));}['onRemoteRetry'](_0x767ed3){const _0x5db9d4=_0x2399be;return this['_resendTimeout']>wi?this[_0x5db9d4(0x529)]():(this['_resendTimer']=Pi(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x767ed3[_0x5db9d4(0x504)]}),this[_0x5db9d4(0x299)]=this['_resendTimer'][_0x5db9d4(0x468)](({reqId:_0x11eb71,timeout:_0x58fb1d})=>{const _0x502a75=_0x5db9d4;this[_0x502a75(0x1b6)](_0x11eb71,_0x58fb1d);}),this);}[_0x2399be(0x529)](){const _0x1f358a=_0x2399be;return this[_0x1f358a(0x526)](),this[_0x1f358a(0x39d)]['createInstance'](ve,this['unitID'],this[_0x1f358a(0x64c)],this['_awaitingChangeset'],this[_0x1f358a(0x53f)],this[_0x1f358a(0x4cc)]);}[_0x2399be(0x319)](){return this;}[_0x2399be(0x284)](){const _0x137eb3=_0x2399be;this['_handler'][_0x137eb3(0x2e9)](this['_awaitingChangeset']);}[_0x2399be(0x5d7)](_0x40e70d){const _0xa27866=_0x2399be;return this['_clearScheduledTask'](),this[_0xa27866(0x39d)][_0xa27866(0x359)](fe,this[_0xa27866(0x533)],this[_0xa27866(0x64c)],null,this['_pendingMutations'],this[_0xa27866(0x4cc)],_0x40e70d);}[_0x2399be(0x1b6)](_0xdd503c,_0x110a5b){const _0x1b55fe=_0x2399be;var _0x56a7a3;_0xdd503c===((_0x56a7a3=this[_0x1b55fe(0x2c4)])==null?void 0x0:_0x56a7a3[_0x1b55fe(0x504)])&&(this[_0x1b55fe(0x284)](),this[_0x1b55fe(0x4d6)]=_0x110a5b===0x0?0x3e8:_0x110a5b*0x2);}[_0x2399be(0x526)](){const _0xaeeca6=_0x2399be;var _0x12e0b8;(_0x12e0b8=this['_sender'])==null||_0x12e0b8[_0xaeeca6(0x269)](),this[_0xaeeca6(0x4d6)]=0x0;}};ce=Ee([A(0x6,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),A(0x7,a['Inject'](m[_0x2399be(0x52c)])),A(0x8,a[_0x2399be(0x24b)](exports['LocalCacheService'])),A(0x9,a[_0x2399be(0x36c)]),A(0xa,a[_0x2399be(0x373)]),A(0xb,m[_0x2399be(0x587)]),A(0xc,a[_0x2399be(0x394)])],ce);let fe=class extends be{constructor(_0x536879,_0x1b3736,_0x40a717,_0x45e10e,_0x4c2801,_0x398e55=!0x1,_0x24463c,_0x599567,_0x45c50d,_0x4e4949,_0xfb15d7,_0x28e70c,_0x2f4587){const _0x5ec6aa=_0x2399be;super(_0x536879,_0x1b3736,_0x40a717,_0x45e10e,_0x4c2801,_0x599567,_0x45c50d,_0xfb15d7,_0x4e4949),I(this,_0x5ec6aa(0x365),_0x5ec6aa(0x1ea)),(this[_0x5ec6aa(0x34b)]=_0x398e55,this['_permissionService']=_0x24463c,this[_0x5ec6aa(0x1b1)]=_0x28e70c,this['_notificationService']=_0x2f4587,this[_0x5ec6aa(0x416)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x2399be(0x516)](){return this;}[_0x2399be(0x376)](){return this;}[_0x2399be(0x1b9)](){return this;}[_0x2399be(0x529)](){return this;}['toggleOnline'](){return this;}[_0x2399be(0x284)](){const _0x5d766d=_0x2399be;throw new Error(_0x5d766d(0x21d));}[_0x2399be(0x2bd)](){const _0x393676=_0x2399be;this[_0x393676(0x3da)][_0x393676(0x5e0)](this['unitID'],this[_0x393676(0x64c)],null,[]);}[_0x2399be(0x416)](){const _0x403faa=_0x2399be;this[_0x403faa(0x34b)]?this[_0x403faa(0x46f)][_0x403faa(0x4bf)]({'title':this['_localeService']['t'](_0x403faa(0x1d4)),'content':this[_0x403faa(0x1b1)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x403faa(0x46f)][_0x403faa(0x4bf)]({'title':this[_0x403faa(0x1b1)]['t']('conflict.title'),'content':this[_0x403faa(0x1b1)]['t'](_0x403faa(0x274)),'type':_0x403faa(0x3b0),'duration':0x0});}['_disableEditing'](){const _0x5cddad=_0x2399be;this['_permissionService'][_0x5cddad(0x514)](new k[(_0x5cddad(0x238))](this[_0x5cddad(0x533)])['id'],!0x1);}};fe=Ee([A(0x6,a['Inject'](a['IPermissionService'])),A(0x7,a[_0x2399be(0x36c)]),A(0x8,a[_0x2399be(0x394)]),A(0x9,a[_0x2399be(0x24b)](exports[_0x2399be(0x596)])),A(0xa,a[_0x2399be(0x24b)](m[_0x2399be(0x52c)])),A(0xb,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)])),A(0xc,ee[_0x2399be(0x426)])],fe);let ve=class extends be{constructor(_0x3cf1ec,_0x2691e8,_0x3811a4,_0x1d21e5,_0x3780f6,_0x4f74ca,_0x625a7e,_0x14e526,_0x187813,_0x487e85){const _0x5aebc7=_0x2399be;super(_0x3cf1ec,_0x2691e8,_0x3811a4,_0x1d21e5,_0x3780f6,_0x187813,_0x487e85,_0x625a7e,_0x14e526),I(this,'status',_0x5aebc7(0x465)),this[_0x5aebc7(0x39d)]=_0x4f74ca;}['appendMutation'](_0x5a6e5b){const _0x12af3a=_0x2399be;return this[_0x12af3a(0x53f)][_0x12af3a(0x644)](_0x5a6e5b),this['_updateLocalCache'](),this;}[_0x2399be(0x3cf)](_0xca6e1a){const _0x254bd1=_0x2399be;throw new Error(_0x254bd1(0x5ea));}[_0x2399be(0x516)](){const _0x3ea5df=_0x2399be;throw new Error(_0x3ea5df(0x2b6));}[_0x2399be(0x376)](){const _0x23a5e2=_0x2399be;throw new Error(_0x23a5e2(0x3f0));}[_0x2399be(0x1b9)](){return this;}[_0x2399be(0x529)](){return this;}[_0x2399be(0x319)](){const _0xaab0ac=_0x2399be,{_injector:_0x1181ad,_pendingMutations:_0x39c593,_awaitingChangeset:_0x5d78dc,unitID:_0x9e725b,_handler:_0x3be35a,type:_0xa8fc0f}=this,_0x30e5ab=Ui(_0x1181ad,_0x9e725b,_0xa8fc0f,_0x5d78dc,_0x39c593,_0x3be35a);return _0x30e5ab instanceof ae?_0x30e5ab[_0xaab0ac(0x1de)]():(_0x30e5ab instanceof ce||_0x30e5ab instanceof de)&&_0x30e5ab[_0xaab0ac(0x284)](),_0x30e5ab;}[_0x2399be(0x284)](){const _0x31e415=_0x2399be;throw new Error(_0x31e415(0x268));}};ve=Ee([A(0x5,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),A(0x6,a['Inject'](m[_0x2399be(0x52c)])),A(0x7,a[_0x2399be(0x24b)](exports['LocalCacheService'])),A(0x8,a[_0x2399be(0x36c)]),A(0x9,a['IUndoRedoService'])],ve);let re=class extends be{constructor(_0x5793c0,_0x1bdeeb,_0x280fe8,_0x1002b0,_0x169807,_0x5ad7d,_0x2777c1,_0x441456,_0x38c1e8,_0x44502b,_0x5c2123,_0x3e3933,_0x1f488f,_0x1b9c08){const _0x33dc3f=_0x2399be;super(_0x5793c0,_0x1bdeeb,_0x280fe8,_0x1002b0,_0x2777c1,_0x3e3933,_0x1f488f,_0x38c1e8,_0x44502b),I(this,_0x33dc3f(0x365),_0x33dc3f(0x395)),(this[_0x33dc3f(0x2d0)]=_0x169807,this[_0x33dc3f(0x474)]=_0x5ad7d,this[_0x33dc3f(0x39d)]=_0x441456,this[_0x33dc3f(0x364)]=_0x5c2123,this[_0x33dc3f(0x300)]=_0x1b9c08);}['onMissedChangesetFetched'](_0x29ea8f){const _0xbf599c=_0x2399be;try{const _0x9db538=[..._0x29ea8f,...this[_0xbf599c(0x474)]],_0x4f5b86=[this[_0xbf599c(0x2c4)]||this['_acknowledgedAwaitingChangeset']][_0xbf599c(0x522)](_0x5608b3=>!!_0x5608b3);let _0x47f0c6,_0x397b98;if(_0x4f5b86[_0xbf599c(0x477)]){const _0x15d2e0=this['_transformService'][_0xbf599c(0x43e)](_0x9db538,_0x4f5b86,!0x1);if(!m[_0xbf599c(0x3ed)](_0x15d2e0))throw _0x15d2e0[_0xbf599c(0x3b0)];_0x47f0c6=_0x15d2e0['c1Prime'],_0x397b98=_0x15d2e0[_0xbf599c(0x242)];}else _0x47f0c6=_0x9db538,_0x397b98=[];let _0x748d3a=this['_pendingMutations'];_0x47f0c6[_0xbf599c(0x306)](_0x2293e8=>{const _0x27c5e3=_0xbf599c;let _0xb9ff90;if(_0x748d3a['length']){const _0x16cdba=this['_transformService'][_0x27c5e3(0x63b)](_0x2293e8,_0x748d3a);if(!m[_0x27c5e3(0x432)](_0x16cdba))throw _0x16cdba[_0x27c5e3(0x3b0)];_0xb9ff90=_0x16cdba[_0x27c5e3(0x585)],_0x748d3a=_0x16cdba['m2Prime'];}else _0xb9ff90=_0x2293e8;this['_executeRemoteChangeset'](_0xb9ff90);}),this['_acknowledgedAwaitingChangeset']&&this[_0xbf599c(0x4bd)](),this[_0xbf599c(0x2c4)]&&_0x397b98['length']&&(_0x397b98[0x0][_0xbf599c(0x1cc)]=this['_getCurrentRevision']());let _0x3c46f9;if(this[_0xbf599c(0x2c4)]&&_0x748d3a[_0xbf599c(0x477)]!==0x0)_0x3c46f9=this['_injector'][_0xbf599c(0x359)](ce,this[_0xbf599c(0x533)],this[_0xbf599c(0x64c)],_0x397b98[0x0],_0x748d3a,this['_handler'],void 0x0);else{if(this[_0xbf599c(0x2c4)]&&_0x748d3a[_0xbf599c(0x477)]===0x0)_0x397b98[0x0][_0xbf599c(0x1cc)]=this[_0xbf599c(0x2f3)](),_0x3c46f9=this[_0xbf599c(0x39d)][_0xbf599c(0x359)](de,this[_0xbf599c(0x533)],this[_0xbf599c(0x64c)],_0x397b98[0x0],this[_0xbf599c(0x4cc)]);else{if(_0x748d3a[_0xbf599c(0x477)]!==0x0){const _0x2faef0=this[_0xbf599c(0x39d)][_0xbf599c(0x359)](ae,this[_0xbf599c(0x533)],this['type'],_0x748d3a,this['_handler']);_0x2faef0[_0xbf599c(0x1de)](),_0x3c46f9=_0x2faef0;}else _0x3c46f9=this['_injector']['createInstance'](Oe,this[_0xbf599c(0x533)],this[_0xbf599c(0x64c)],this[_0xbf599c(0x4cc)]);}}return _0x3c46f9[_0xbf599c(0x463)](),_0x3c46f9;}catch(_0x17510f){return this[_0xbf599c(0x364)][_0xbf599c(0x3b0)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x17510f),this[_0xbf599c(0x39d)][_0xbf599c(0x359)](fe,this[_0xbf599c(0x533)],this[_0xbf599c(0x64c)],this[_0xbf599c(0x2c4)],this[_0xbf599c(0x53f)],this[_0xbf599c(0x4cc)],!0x1);}}[_0x2399be(0x284)](){const _0x1b210b=_0x2399be;throw new Error(_0x1b210b(0x405));}[_0x2399be(0x445)](_0x168530){const _0x394639=_0x2399be;return this['_pendingMutations'][_0x394639(0x644)](_0x168530),this;}[_0x2399be(0x3cf)](_0x5cac97){const _0x2345b1=_0x2399be;return this[_0x2345b1(0x474)]['push'](_0x5cac97),this;}[_0x2399be(0x516)](_0x3f703f){const _0x583a25=_0x2399be;if(this[_0x583a25(0x2c4)])return this[_0x583a25(0x2d0)]=this[_0x583a25(0x2c4)],this[_0x583a25(0x2c4)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2399be(0x376)](_0x36ef79){const _0x2e1b5e=_0x2399be;return this['_onConflict'](!!(_0x36ef79!=null&&_0x36ef79[_0x2e1b5e(0x5a9)]));}[_0x2399be(0x1b9)](){return this;}[_0x2399be(0x529)](){const _0x1ce7ce=_0x2399be;return this[_0x1ce7ce(0x39d)][_0x1ce7ce(0x359)](ve,this['unitID'],this[_0x1ce7ce(0x64c)],this['_awaitingChangeset'],this[_0x1ce7ce(0x53f)],this[_0x1ce7ce(0x4cc)]);}['toggleOnline'](){return this;}['_onConflict'](_0x210cef){const _0x2bb358=_0x2399be;return this[_0x2bb358(0x39d)][_0x2bb358(0x359)](fe,this[_0x2bb358(0x533)],this['type'],this[_0x2bb358(0x2c4)],this[_0x2bb358(0x53f)],this[_0x2bb358(0x4cc)],_0x210cef);}};re=Ee([A(0x7,a[_0x2399be(0x24b)](a['Injector'])),A(0x8,a[_0x2399be(0x24b)](m['RevisionService'])),A(0x9,a[_0x2399be(0x24b)](exports['LocalCacheService'])),A(0xa,a[_0x2399be(0x373)]),A(0xb,a['ICommandService']),A(0xc,a[_0x2399be(0x394)]),A(0xd,m[_0x2399be(0x587)])],re);function Ui(_0x32143a,_0xf4a653,_0x9f5e65,_0x4c7177,_0x40d3ca,_0x324c48){const _0x501f02=_0x2399be;return _0x4c7177&&_0x40d3ca['length']?_0x32143a[_0x501f02(0x359)](ce,_0xf4a653,_0x9f5e65,_0x4c7177,_0x40d3ca,_0x324c48,void 0x0):_0x4c7177?_0x32143a[_0x501f02(0x359)](de,_0xf4a653,_0x9f5e65,_0x4c7177,_0x324c48):_0x40d3ca[_0x501f02(0x477)]?_0x32143a[_0x501f02(0x359)](ae,_0xf4a653,_0x9f5e65,_0x40d3ca,_0x324c48):_0x32143a[_0x501f02(0x359)](Oe,_0xf4a653,_0x9f5e65,_0x324c48);}var Xn=Object[_0x2399be(0x28d)],Jn=Object['getOwnPropertyDescriptor'],Mt=(_0xea7c9d,_0x5f4f44,_0x2ee0d3,_0x5d6830)=>{const _0x3d1036=_0x2399be;for(var _0x9abb7f=_0x5d6830>0x1?void 0x0:_0x5d6830?Jn(_0x5f4f44,_0x2ee0d3):_0x5f4f44,_0x1e3a05=_0xea7c9d[_0x3d1036(0x477)]-0x1,_0x36f798;_0x1e3a05>=0x0;_0x1e3a05--)(_0x36f798=_0xea7c9d[_0x1e3a05])&&(_0x9abb7f=(_0x5d6830?_0x36f798(_0x5f4f44,_0x2ee0d3,_0x9abb7f):_0x36f798(_0x9abb7f))||_0x9abb7f);return _0x5d6830&&_0x9abb7f&&Xn(_0x5f4f44,_0x2ee0d3,_0x9abb7f),_0x9abb7f;},H=(_0x3d0cac,_0x44e976)=>(_0x385721,_0x5e7967)=>_0x44e976(_0x385721,_0x5e7967,_0x3d0cac);exports['CollaborationEntity']=class extends a[_0x2399be(0x551)]{constructor(_0x958f6b,_0xcb9946,_0x48a5c4,_0x5661cc,_0x21dda2,_0x210e7c,_0x389506,_0x2818ca,_0xb7244a,_0x51263d,_0x154fa6,_0xf419d2,_0x40ab1c){const _0x25055d=_0x2399be;super(),I(this,'_state$',new N[(_0x25055d(0x57c))](null)),I(this,_0x25055d(0x52e),this['_state$'][_0x25055d(0x295)]()),I(this,'_state'),I(this,'_collaborationPaused',!0x1),I(this,_0x25055d(0x24d),''),I(this,_0x25055d(0x1f2),0x0),I(this,_0x25055d(0x342),this[_0x25055d(0x52e)][_0x25055d(0x527)](N[_0x25055d(0x302)](_0x46a359=>_0x46a359?_0x46a359[_0x25055d(0x365)]:K[_0x25055d(0x3ee)]),N['shareReplay'](0x1))),I(this,'_transitionLocked',!0x1),I(this,_0x25055d(0x3e6),[]),(this[_0x25055d(0x533)]=_0x958f6b,this['session']=_0xcb9946,this[_0x25055d(0x2fe)]=_0x48a5c4,this['_injector']=_0x5661cc,this[_0x25055d(0x3da)]=_0x21dda2,this[_0x25055d(0x18f)]=_0x210e7c,this[_0x25055d(0x1b1)]=_0x389506,this[_0x25055d(0x419)]=_0x2818ca,this[_0x25055d(0x364)]=_0xb7244a,this[_0x25055d(0x4a8)]=_0x51263d,this[_0x25055d(0x50b)]=_0x154fa6,this[_0x25055d(0x4a3)]=_0xf419d2,this[_0x25055d(0x5c3)]=_0x40ab1c);}get['state'](){const _0x3eacf8=_0x2399be;return this[_0x3eacf8(0x48d)];}async[_0x2399be(0x324)](){const _0x661907=_0x2399be;if(this['state'])throw new Error(_0x661907(0x1f4));await this[_0x661907(0x50a)]();}[_0x2399be(0x4d8)](){const _0x4d708a=_0x2399be;return this[_0x4d708a(0x612)]=!0x0,a['toDisposable'](()=>{const _0x514532=_0x4d708a;this[_0x514532(0x612)]=!0x1,this[_0x514532(0x41a)]();});}[_0x2399be(0x35e)](_0x3db8d9){const _0x225d10=_0x2399be;this['_state']=_0x3db8d9,this[_0x225d10(0x4c4)][_0x225d10(0x4db)](_0x3db8d9);}async['_init'](){const _0x1d16d3=_0x2399be;var _0x16db54;this[_0x1d16d3(0x35e)](await this[_0x1d16d3(0x2e8)]()),this['_singleActiveUnitService']&&((_0x16db54=this['_singleActiveUnitService'])==null||_0x16db54['editingUnit'](this['unitID']),this[_0x1d16d3(0x228)](this[_0x1d16d3(0x5c3)][_0x1d16d3(0x3f6)](this[_0x1d16d3(0x533)])['subscribe'](_0x4934dc=>{const _0x5f20e8=_0x1d16d3;this[_0x5f20e8(0x364)]['debug'](_0x5f20e8(0x626),_0x5f20e8(0x51f),_0x4934dc),_0x4934dc===yi['OTHER_CLIENTS_EDITING']?(this[_0x5f20e8(0x50b)][_0x5f20e8(0x4bf)]({'content':this[_0x5f20e8(0x1b1)]['t'](_0x5f20e8(0x497)),'type':Ce[_0x5f20e8(0x38e)][_0x5f20e8(0x5c0)]}),this[_0x5f20e8(0x4a3)][_0x5f20e8(0x514)](new k['WorkbookEditablePermission'](this[_0x5f20e8(0x533)])['id'],!0x1),this[_0x5f20e8(0x4a3)]['setShowComponents'](!0x1)):(this[_0x5f20e8(0x4a3)][_0x5f20e8(0x514)](new k[(_0x5f20e8(0x238))](this[_0x5f20e8(0x533)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x3cb2f7=!0x1;return this[_0x1d16d3(0x228)](this[_0x1d16d3(0x2a9)][_0x1d16d3(0x22e)]['subscribe'](_0x305bb4=>{const _0x29d735=_0x1d16d3;_0x305bb4===ne[_0x29d735(0x60b)]?this[_0x29d735(0x47e)](_0x3cb2f7):_0x305bb4===ne[_0x29d735(0x3ee)]&&(_0x3cb2f7=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x1d16d3(0x2a9)]['event$'][_0x1d16d3(0x468)](_0x4a182f=>{const _0x1f209=_0x1d16d3;try{switch(_0x4a182f[_0x1f209(0x1e9)]){case m[_0x1f209(0x563)][_0x1f209(0x2d7)]:{this['_onRemoteChangeset'](m[_0x1f209(0x19f)](_0x4a182f[_0x1f209(0x3fa)]));break;}case m[_0x1f209(0x563)][_0x1f209(0x610)]:{this['_onRemoteACK'](_0x4a182f['data']);break;}case m[_0x1f209(0x563)][_0x1f209(0x2d9)]:{this[_0x1f209(0x4bc)]();break;}case m[_0x1f209(0x563)][_0x1f209(0x2a3)]:{this[_0x1f209(0x317)](_0x4a182f['data']);break;}case m[_0x1f209(0x563)][_0x1f209(0x24c)]:{this[_0x1f209(0x588)](_0x4a182f[_0x1f209(0x3fa)]['changesets'][_0x1f209(0x302)](_0x4be4be=>m[_0x1f209(0x19f)](_0x4be4be)));break;}case m[_0x1f209(0x563)][_0x1f209(0x361)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a915c){throw console['error'](_0x1f209(0x2e2),_0x1a915c),_0x1a915c;}})),this['_state'];}['_unlockTransition'](){const _0x65c70f=_0x2399be;this[_0x65c70f(0x543)]=!0x1;}[_0x2399be(0x3f2)](){const _0x3fe87d=_0x2399be;if(this['_transitionLocked'])throw new Error(_0x3fe87d(0x60e));this[_0x3fe87d(0x543)]=!0x0;}[_0x2399be(0x2dd)](_0x50513e){const _0x385778=_0x2399be;this[_0x385778(0x3f2)](),this[_0x385778(0x35e)](this['_state']['appendMutation'](_0x50513e)),this[_0x385778(0x5d4)]();}[_0x2399be(0x59a)](_0x177060){const _0x18b96b=_0x2399be;if(!(_0x177060[_0x18b96b(0x2bf)]<=this[_0x18b96b(0x419)][_0x18b96b(0x1d9)](this['unitID']))){if(this[_0x18b96b(0x612)]){this['_remoteChangesetQueue'][_0x18b96b(0x644)](_0x177060);return;}this[_0x18b96b(0x1a8)](_0x177060);}}[_0x2399be(0x41a)](){const _0x41c11a=_0x2399be;this['_remoteChangesetQueue'][_0x41c11a(0x306)](_0x172623=>this['_applyRemoteChangeset'](_0x172623)),this[_0x41c11a(0x3e6)]=[];}['_applyRemoteChangeset'](_0x3998ca){const _0xb0a624=_0x2399be,_0x3ecf0a=this[_0xb0a624(0x18f)][_0xb0a624(0x1af)][_0xb0a624(0x586)](this['_compressMutationService'][_0xb0a624(0x1af)][_0xb0a624(0x485)]()[_0xb0a624(0x39c)])(_0x3998ca[_0xb0a624(0x46b)],null)||_0x3998ca['mutations'],_0x349495={..._0x3998ca,'mutations':_0x3ecf0a};this[_0xb0a624(0x3f2)](),this[_0xb0a624(0x35e)](this[_0xb0a624(0x48d)]['onRemoteChangeset'](_0x349495)),this[_0xb0a624(0x5d4)]();}['_onRemoteACK'](_0x5e5e7b){const _0x13eb92=_0x2399be;this['_lockTransition'](),this[_0x13eb92(0x35e)](this['_state'][_0x13eb92(0x516)](_0x5e5e7b)),this[_0x13eb92(0x5d4)]();}['_onRemoteRejected'](_0x2993cb){const _0x219230=_0x2399be;this[_0x219230(0x3f2)](),this[_0x219230(0x35e)](this[_0x219230(0x48d)][_0x219230(0x376)](_0x2993cb)),this[_0x219230(0x5d4)]();}[_0x2399be(0x317)](_0x39d682){const _0x452b03=_0x2399be;this[_0x452b03(0x3f2)](),this[_0x452b03(0x35e)](this[_0x452b03(0x48d)][_0x452b03(0x1b9)](_0x39d682)),this[_0x452b03(0x5d4)]();}['_onFetchMissResult'](_0x826ba1){const _0x2f34ad=_0x2399be;if(!(this[_0x2f34ad(0x48d)]instanceof re))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x55bf58=_0x826ba1[_0x2f34ad(0x302)](_0x1314cd=>{const _0x2a6317=_0x2f34ad,_0x303408=this[_0x2a6317(0x18f)][_0x2a6317(0x1af)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x2a6317(0x1af)][_0x2a6317(0x485)]()[_0x2a6317(0x39c)])(_0x1314cd['mutations'],null)||_0x1314cd[_0x2a6317(0x46b)];return{..._0x1314cd,'mutations':_0x303408};});this[_0x2f34ad(0x3f2)](),this[_0x2f34ad(0x35e)](this['_state'][_0x2f34ad(0x4e8)](_0x55bf58)),this[_0x2f34ad(0x5d4)]();}[_0x2399be(0x566)](){const _0x14d59a=_0x2399be;this[_0x14d59a(0x3f2)](),this[_0x14d59a(0x35e)](this[_0x14d59a(0x48d)][_0x14d59a(0x529)]()),this[_0x14d59a(0x5d4)]();}[_0x2399be(0x47e)](_0x103ea9=!0x1){const _0x31865a=_0x2399be;this['_lockTransition'](),this[_0x31865a(0x35e)](this[_0x31865a(0x48d)][_0x31865a(0x319)]()),this['_unlockTransition']();const _0x458117=this[_0x31865a(0x48d)];_0x103ea9&&_0x458117 instanceof Oe&&(this['_lockTransition'](),this[_0x31865a(0x35e)](_0x458117[_0x31865a(0x550)]()),this['_unlockTransition']());}async[_0x2399be(0x2e8)](){return new Promise(_0x39a6a9=>{const _0x346dfc=_0x52c2;this[_0x346dfc(0x2a9)][_0x346dfc(0x22e)]['pipe'](N['take'](0x1))[_0x346dfc(0x468)](async _0x3f60f9=>{const _0x28724b=_0x346dfc;_0x39a6a9(await this[_0x28724b(0x41c)](_0x3f60f9===ne['ONLINE']));});});}[_0x2399be(0x3af)](){const _0xe413e1=_0x2399be,_0xda5cea=this[_0xe413e1(0x533)];return{'onStateChange':(_0x2df1d9,_0x36dea3)=>{const _0x25d5bf=_0xe413e1;if(_0x2df1d9!==this[_0x25d5bf(0x48d)])throw new Error(_0x25d5bf(0x62b)+_0x2df1d9[_0x25d5bf(0x365)]+_0x25d5bf(0x35f)+_0x36dea3[_0x25d5bf(0x365)]+_0x25d5bf(0x1bd)+this['_state']['status']);this[_0x25d5bf(0x35e)](_0x36dea3);},'onSendChangeset':_0x5122fa=>{const _0x58dde5=_0xe413e1;_0x5122fa['sid']||(_0x5122fa[_0x58dde5(0x1ca)]=this['_changesetSessionId'],_0x5122fa[_0x58dde5(0x504)]=++this[_0x58dde5(0x1f2)]);const _0x2a7b20={'eventID':m[_0x58dde5(0x563)][_0x58dde5(0x271)],'data':{'unitID':_0x5122fa[_0x58dde5(0x533)],'unitType':this[_0x58dde5(0x2fe)],'changeset':_0x5122fa,'memberID':this[_0x58dde5(0x2a9)][_0x58dde5(0x473)]()}};this[_0x58dde5(0x2a9)]['send'](_0x2a7b20,this[_0x58dde5(0x533)]);},'onMissingChangesets':({from:_0x4ffbd9,to:_0x5ad433})=>{const _0x39ac88=_0xe413e1;this[_0x39ac88(0x364)][_0x39ac88(0x425)](_0x39ac88(0x626),_0x39ac88(0x481)+_0x4ffbd9+'\x20to\x20'+_0x5ad433);const _0x32382b={'eventID':m[_0x39ac88(0x563)][_0x39ac88(0x4f3)],'data':{'unitID':_0xda5cea,'unitType':this[_0x39ac88(0x2fe)],'from':_0x4ffbd9,'to':_0x5ad433}};this[_0x39ac88(0x2a9)][_0x39ac88(0x315)](_0x32382b,this['unitID']);}};}async[_0x2399be(0x41c)](_0x5bfabf){const _0x46f9b1=_0x2399be;var _0x296ab0,_0x368d2a;const _0xfab00=await this[_0x46f9b1(0x3da)]['loadOfflineData'](this[_0x46f9b1(0x533)]),_0x258b96=(_0x296ab0=_0xfab00==null?void 0x0:_0xfab00[_0x46f9b1(0x46b)])!=null?_0x296ab0:[],_0x4747e1=(_0x368d2a=_0xfab00==null?void 0x0:_0xfab00['awaitingChangeset'])!=null?_0x368d2a:null,_0x3e2777=!!(_0x4747e1!=null&&_0x4747e1[_0x46f9b1(0x1ca)])&&!!(_0x4747e1!=null&&_0x4747e1[_0x46f9b1(0x504)]);this[_0x46f9b1(0x24d)]=_0x3e2777?_0x4747e1['sid']:On(),this[_0x46f9b1(0x1f2)]=_0x3e2777?_0x4747e1['reqId']:0x0;const _0x4707e0=this[_0x46f9b1(0x533)];try{this['_replayCachedMutations'](_0x4747e1,_0x258b96);}catch(_0x572614){this[_0x46f9b1(0x364)]['error'](_0x572614);}const _0x4b0c1c=this[_0x46f9b1(0x3af)]();if(_0x5bfabf){const _0x9e948e=Ui(this[_0x46f9b1(0x39d)],_0x4707e0,this[_0x46f9b1(0x2fe)],_0x4747e1,_0x258b96,_0x4b0c1c);return _0x9e948e instanceof ae?_0x9e948e[_0x46f9b1(0x1de)]():(_0x9e948e instanceof ce||_0x9e948e instanceof de)&&_0x9e948e[_0x46f9b1(0x284)](),_0x9e948e;}return this['_injector'][_0x46f9b1(0x359)](ve,_0x4707e0,this[_0x46f9b1(0x2fe)],_0x4747e1,_0x258b96,_0x4b0c1c);}[_0x2399be(0x389)](_0x3796d8,_0x45b2ed){const _0x17409e=_0x2399be;var _0x25a255,_0xd73578;const _0x46b0b2=this[_0x17409e(0x18f)][_0x17409e(0x1af)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x17409e(0x1af)][_0x17409e(0x485)]()[_0x17409e(0x39c)]);(_0x25a255=_0x46b0b2((_0x3796d8==null?void 0x0:_0x3796d8[_0x17409e(0x46b)])||[],null))==null||_0x25a255[_0x17409e(0x306)](_0x52f314=>this['_commandService'][_0x17409e(0x277)](_0x52f314['id'],_0x52f314['params'])),(_0xd73578=_0x46b0b2(_0x45b2ed||[],null))==null||_0xd73578[_0x17409e(0x306)](_0x4a012d=>this['_commandService'][_0x17409e(0x277)](_0x4a012d['id'],_0x4a012d[_0x17409e(0x552)]));}},exports[_0x2399be(0x387)]=Mt([H(0x3,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),H(0x4,a[_0x2399be(0x24b)](exports[_0x2399be(0x596)])),H(0x5,a[_0x2399be(0x24b)](m[_0x2399be(0x347)])),H(0x6,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)])),H(0x7,a['Inject'](m['RevisionService'])),H(0x8,a['ILogService']),H(0x9,a[_0x2399be(0x36c)]),H(0xa,ee['IMessageService']),H(0xb,a['IPermissionService']),H(0xc,a['Optional'](at))],exports[_0x2399be(0x387)]),exports[_0x2399be(0x397)]=class extends exports[_0x2399be(0x387)]{constructor(_0xd78bbf,_0x5294b1,_0x3d9d4e,_0x36a67f,_0x258ecc,_0x51deb5,_0x2c3ff9,_0x14b651,_0x14fc2a,_0x582cbd,_0x464c8d,_0x1189d1,_0x23f393,_0x3cdedd,_0x175134,_0x21afd3,_0x297f61,_0x29b15e){const _0x54627f=_0x2399be;super(_0xd78bbf,_0x3d9d4e,_0x5294b1,_0x36a67f,_0x258ecc,_0x51deb5,_0x2c3ff9,_0x14b651,_0x3cdedd,_0x175134,_0x21afd3,_0x297f61,_0x29b15e),this['unitID']=_0xd78bbf,this['type']=_0x5294b1,this['_docStateChangeManagerService']=_0x14fc2a,this['_docTransformIMECacheService']=_0x582cbd,this['_docTransformStateCacheService']=_0x464c8d,this['_docTransformSelectionsService']=_0x1189d1,this[_0x54627f(0x61d)]=_0x23f393;}[_0x2399be(0x3af)](){const _0x284b44=_0x2399be,_0x88c177=super[_0x284b44(0x3af)]();return _0x88c177[_0x284b44(0x1d1)]=_0x293ae7=>this[_0x284b44(0x475)][_0x284b44(0x487)](_0x293ae7),_0x88c177[_0x284b44(0x5ec)]=_0x4ed38c=>this['_docTransformStateCacheService'][_0x284b44(0x622)](_0x4ed38c),_0x88c177[_0x284b44(0x467)]=_0x460c30=>this['_docTransformSelectionsService']['transformSelections'](_0x460c30),_0x88c177[_0x284b44(0x401)]=_0x55f4e5=>this['_docSyncEditingCollabCursorService'][_0x284b44(0x576)](_0x55f4e5),_0x88c177[_0x284b44(0x3f8)]=_0x53f0ff=>this[_0x284b44(0x475)][_0x284b44(0x581)](_0x53f0ff),_0x88c177['onTransformRemoteChangesetByStateCache']=_0x19db9b=>this['_docTransformStateCacheService'][_0x284b44(0x581)](_0x19db9b),_0x88c177;}async[_0x2399be(0x50a)](){const _0x4c8448=_0x2399be,_0x2e64a3=await super[_0x4c8448(0x50a)]();return this[_0x4c8448(0x228)](this[_0x4c8448(0x575)]['docStateChange$']['pipe'](N[_0x4c8448(0x30c)](this[_0x4c8448(0x33b)]))['subscribe'](_0x244666=>{const _0x3ef24d=_0x4c8448;if(_0x244666==null)return;const {unitId:_0x1bf4ba,redoState:_0x208de2,commandId:_0x1304bf}=_0x244666;if(_0x1bf4ba!==this[_0x3ef24d(0x533)])return;const _0x19e3fd={'id':_0x1304bf,'type':a[_0x3ef24d(0x4eb)]['MUTATION'],'params':{'unitId':_0x1bf4ba,'actions':_0x208de2[_0x3ef24d(0x20c)],'textRanges':null}};this['_onLocalMutation'](_0x19e3fd);})),this['disposeWithMe'](this['_commandService'][_0x4c8448(0x4a7)]((_0x287d0d,_0x32ae17)=>{const _0x4aaa54=_0x4c8448;if(_0x287d0d[_0x4aaa54(0x64c)]!==a['CommandType']['MUTATION']||_0x32ae17!=null&&_0x32ae17[_0x4aaa54(0x4f8)]||_0x32ae17!=null&&_0x32ae17[_0x4aaa54(0x26f)]||_0x287d0d['id']===Ie['RichTextEditingMutation']['id'])return;const _0x812216=_0x287d0d[_0x4aaa54(0x552)];if((_0x812216==null?void 0x0:_0x812216[_0x4aaa54(0x54c)])!==this[_0x4aaa54(0x533)])return;const _0x5d6781=_0x287d0d,_0x4aad94=this['_compressMutationService'][_0x4aaa54(0x1af)][_0x4aaa54(0x586)](this['_compressMutationService'][_0x4aaa54(0x1af)][_0x4aaa54(0x485)]()['COMPRESS_MUTATION_SEND'])([_0x5d6781],null)||[_0x5d6781];this[_0x4aaa54(0x2dd)](_0x4aad94[0x0]);})),_0x2e64a3;}},exports[_0x2399be(0x397)]=Mt([H(0x3,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),H(0x4,a[_0x2399be(0x24b)](exports['LocalCacheService'])),H(0x5,a[_0x2399be(0x24b)](m[_0x2399be(0x347)])),H(0x6,a[_0x2399be(0x24b)](a['LocaleService'])),H(0x7,a[_0x2399be(0x24b)](m['RevisionService'])),H(0x8,a[_0x2399be(0x24b)](J[_0x2399be(0x5a8)])),H(0x9,a[_0x2399be(0x24b)](Ze)),H(0xa,a[_0x2399be(0x24b)](et)),H(0xb,a[_0x2399be(0x24b)](tt)),H(0xc,a[_0x2399be(0x24b)](Ut)),H(0xd,a[_0x2399be(0x373)]),H(0xe,a[_0x2399be(0x36c)]),H(0xf,ee[_0x2399be(0x58b)]),H(0x10,a[_0x2399be(0x650)]),H(0x11,a[_0x2399be(0x344)](at))],exports[_0x2399be(0x397)]),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x32ae0e,_0x46ba0e,_0x4661e8,_0x32f6c2,_0x181b2a,_0x1ea794,_0x43420f,_0x71a814,_0x1a25fa,_0x57164a,_0x2262e9,_0x506ac7,_0x2ecd1c,_0x304c72){const _0x5c6a8e=_0x2399be;super(_0x32ae0e,_0x4661e8,_0x46ba0e,_0x32f6c2,_0x181b2a,_0x1ea794,_0x43420f,_0x71a814,_0x57164a,_0x2262e9,_0x506ac7,_0x2ecd1c,_0x304c72),this[_0x5c6a8e(0x533)]=_0x32ae0e,this[_0x5c6a8e(0x64c)]=_0x46ba0e,this[_0x5c6a8e(0x1f7)]=_0x1a25fa;}['_createHandler'](){const _0x314aa8=_0x2399be,_0x40aaed=super['_createHandler']();return _0x40aaed[_0x314aa8(0x467)]=_0x16339e=>this[_0x314aa8(0x1f7)][_0x314aa8(0x5de)](_0x16339e),_0x40aaed;}async[_0x2399be(0x50a)](){const _0x30f7d4=_0x2399be,_0x21052c=await super[_0x30f7d4(0x50a)]();return this[_0x30f7d4(0x228)](this[_0x30f7d4(0x4a8)][_0x30f7d4(0x4a7)]((_0x366ddb,_0xe6e6ec)=>{const _0xd3b2d7=_0x30f7d4;if(_0x366ddb['type']!==a[_0xd3b2d7(0x4eb)][_0xd3b2d7(0x2b7)]||_0xe6e6ec!=null&&_0xe6e6ec['fromCollab']||_0xe6e6ec!=null&&_0xe6e6ec[_0xd3b2d7(0x26f)])return;const _0x355c50=_0x366ddb['params'];if((_0x355c50==null?void 0x0:_0x355c50[_0xd3b2d7(0x54c)])!==this[_0xd3b2d7(0x533)])return;const _0x24e6af=_0x366ddb,_0x3c3f28=this['_compressMutationService']['interceptor'][_0xd3b2d7(0x586)](this[_0xd3b2d7(0x18f)][_0xd3b2d7(0x1af)][_0xd3b2d7(0x485)]()[_0xd3b2d7(0x43d)])([_0x24e6af],null)||[_0x24e6af];this['_onLocalMutation'](_0x3c3f28[0x0]);})),_0x21052c;}},exports[_0x2399be(0x5c6)]=Mt([H(0x3,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),H(0x4,a[_0x2399be(0x24b)](exports['LocalCacheService'])),H(0x5,a[_0x2399be(0x24b)](m[_0x2399be(0x347)])),H(0x6,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)])),H(0x7,a['Inject'](m['RevisionService'])),H(0x8,a[_0x2399be(0x24b)](Qe)),H(0x9,a['ILogService']),H(0xa,a[_0x2399be(0x36c)]),H(0xb,ee[_0x2399be(0x58b)]),H(0xc,a['IPermissionService']),H(0xd,a['Optional'](at))],exports[_0x2399be(0x5c6)]);var Zn=Object['defineProperty'],Qn=Object[_0x2399be(0x398)],er=(_0x5bafd6,_0x5efa55,_0x13c8bc,_0xb5d8e5)=>{const _0x2df5da=_0x2399be;for(var _0xe48299=_0xb5d8e5>0x1?void 0x0:_0xb5d8e5?Qn(_0x5efa55,_0x13c8bc):_0x5efa55,_0x1c3c2f=_0x5bafd6[_0x2df5da(0x477)]-0x1,_0xb2389e;_0x1c3c2f>=0x0;_0x1c3c2f--)(_0xb2389e=_0x5bafd6[_0x1c3c2f])&&(_0xe48299=(_0xb5d8e5?_0xb2389e(_0x5efa55,_0x13c8bc,_0xe48299):_0xb2389e(_0xe48299))||_0xe48299);return _0xb5d8e5&&_0xe48299&&Zn(_0x5efa55,_0x13c8bc,_0xe48299),_0xe48299;},dt=(_0x52d4a1,_0x26b927)=>(_0x158711,_0x59c6ce)=>_0x26b927(_0x158711,_0x59c6ce,_0x52d4a1);exports['CollaborationController']=class extends a[_0x2399be(0x551)]{constructor(_0x3b236b,_0x278e41,_0x4ccc65){const _0x1ab39d=_0x2399be;super(),I(this,_0x1ab39d(0x2f5),new Map()),I(this,_0x1ab39d(0x193),new N[(_0x1ab39d(0x512))]()),(this[_0x1ab39d(0x39d)]=_0x3b236b,this[_0x1ab39d(0x3ff)]=_0x278e41,this[_0x1ab39d(0x435)]=_0x4ccc65,this[_0x1ab39d(0x50a)]());}['dispose'](){const _0x28629c=_0x2399be;super[_0x28629c(0x5f4)](),this['_entities'][_0x28629c(0x306)](_0x44186e=>_0x44186e[_0x28629c(0x5f4)]()),this[_0x28629c(0x2f5)][_0x28629c(0x40e)]();}['getCollabEntity'](_0x233dc6){var _0x521857;return(_0x521857=this['_entities']['get'](_0x233dc6))!=null?_0x521857:null;}[_0x2399be(0x58e)](_0x4c981c){const _0x106b38=_0x2399be,_0x1839b3=this[_0x106b38(0x4ca)](_0x4c981c);return _0x1839b3?N['of'](_0x1839b3):this['_entityInit$'][_0x106b38(0x527)](V[_0x106b38(0x522)](_0x37935c=>_0x37935c[_0x106b38(0x533)]===_0x4c981c));}[_0x2399be(0x50a)](){const _0x50f9d8=_0x2399be;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x50f9d8(0x52f)])['pipe'](N[_0x50f9d8(0x30c)](this[_0x50f9d8(0x33b)]),V[_0x50f9d8(0x3c5)](0x10))['subscribe'](async _0x449196=>{const _0x475147=_0x50f9d8,_0x1ddc05=_0x449196['getUnitId'](),_0x3ced4d=await this[_0x475147(0x629)](_0x1ddc05,ie[_0x475147(0x52f)]);this[_0x475147(0x2f5)]['set'](_0x1ddc05,_0x3ced4d);}),this['_univerInstanceService'][_0x50f9d8(0x2a7)](a[_0x50f9d8(0x2e6)]['UNIVER_DOC'])['pipe'](N[_0x50f9d8(0x30c)](this['dispose$']),V[_0x50f9d8(0x3c5)](0x10))[_0x50f9d8(0x527)](V[_0x50f9d8(0x522)](_0x28693f=>!_0x28693f[_0x50f9d8(0x27c)]()[_0x50f9d8(0x370)]('__')))[_0x50f9d8(0x468)](async _0x2e8ded=>{const _0x28172d=_0x50f9d8,_0x211bd4=_0x2e8ded[_0x28172d(0x27c)](),_0xb1c1d2=await this[_0x28172d(0x629)](_0x211bd4,ie[_0x28172d(0x4f4)]);this[_0x28172d(0x2f5)][_0x28172d(0x593)](_0x211bd4,_0xb1c1d2);}),N[_0x50f9d8(0x5b9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x50f9d8(0x2e6)][_0x50f9d8(0x52f)]),this[_0x50f9d8(0x435)][_0x50f9d8(0x5c2)](a['UniverInstanceType'][_0x50f9d8(0x4f4)]))['pipe'](N['takeUntil'](this[_0x50f9d8(0x33b)]))['subscribe'](_0x17deeb=>{const _0xb96664=_0x50f9d8,_0x5e63ec=_0x17deeb[_0xb96664(0x27c)](),_0x95f406=this[_0xb96664(0x2f5)][_0xb96664(0x654)](_0x5e63ec);_0x95f406&&(_0x95f406[_0xb96664(0x5f4)](),this['_entities'][_0xb96664(0x240)](_0x5e63ec));});}async[_0x2399be(0x629)](_0x923099,_0x3e9907){const _0x3c04ab=_0x2399be,_0x3dc66a=await this[_0x3c04ab(0x3ff)][_0x3c04ab(0x513)](_0x923099),_0x3451ec=this[_0x3c04ab(0x39d)][_0x3c04ab(0x359)](this[_0x3c04ab(0x406)](_0x3e9907),_0x923099,_0x3e9907,_0x3dc66a);return await _0x3451ec[_0x3c04ab(0x324)](),this[_0x3c04ab(0x193)][_0x3c04ab(0x4db)](_0x3451ec),_0x3451ec;}[_0x2399be(0x406)](_0x4d10cc){const _0x5f42e9=_0x2399be;switch(_0x4d10cc){case ie[_0x5f42e9(0x4f4)]:return exports['DocCollaborationEntity'];case ie[_0x5f42e9(0x52f)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x5f42e9(0x2d6)+_0x4d10cc);}}},exports[_0x2399be(0x30e)]=er([dt(0x0,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),dt(0x1,a[_0x2399be(0x24b)](exports[_0x2399be(0x225)])),dt(0x2,a[_0x2399be(0x53e)])],exports[_0x2399be(0x30e)]);var tr=Object[_0x2399be(0x28d)],ir=Object[_0x2399be(0x398)],nr=(_0x139fdc,_0x5e07ed,_0x49cf45,_0x5274a4)=>{const _0x546245=_0x2399be;for(var _0x2c48a7=_0x5274a4>0x1?void 0x0:_0x5274a4?ir(_0x5e07ed,_0x49cf45):_0x5e07ed,_0x1b3609=_0x139fdc[_0x546245(0x477)]-0x1,_0x4c1aec;_0x1b3609>=0x0;_0x1b3609--)(_0x4c1aec=_0x139fdc[_0x1b3609])&&(_0x2c48a7=(_0x5274a4?_0x4c1aec(_0x5e07ed,_0x49cf45,_0x2c48a7):_0x4c1aec(_0x2c48a7))||_0x2c48a7);return _0x5274a4&&_0x2c48a7&&tr(_0x5e07ed,_0x49cf45,_0x2c48a7),_0x2c48a7;},Yt=(_0x2a12a3,_0x33e207)=>(_0x5371d0,_0x429ffc)=>_0x33e207(_0x5371d0,_0x429ffc,_0x2a12a3);let it=class extends a[_0x2399be(0x551)]{constructor(_0x5200ce,_0x62aa38){const _0x239c5a=_0x2399be;super(),this[_0x239c5a(0x349)]=_0x5200ce,this['_imageIoService']=_0x62aa38,this[_0x239c5a(0x50a)]();}[_0x2399be(0x50a)](){const _0x5a5edb=_0x2399be,_0x2ee4e2=this;this[_0x5a5edb(0x228)](this[_0x5a5edb(0x349)][_0x5a5edb(0x304)]({'onBeforePasteImage':async _0x5be3ed=>{const _0x1ee01b=_0x5a5edb,_0x6a7dc1=await _0x2ee4e2[_0x1ee01b(0x3cb)][_0x1ee01b(0x33c)](_0x5be3ed);return _0x6a7dc1?{'source':_0x6a7dc1['source'],'imageSourceType':_0x6a7dc1[_0x1ee01b(0x5b5)]}:null;}}));}};it=nr([Yt(0x0,J[_0x2399be(0x4c6)]),Yt(0x1,te['IImageIoService'])],it);const qt=['purple300',_0x2399be(0x297),_0x2399be(0x2ef),_0x2399be(0x5d1),_0x2399be(0x5c4),'gold400'];class Nt extends a[_0x2399be(0x597)]{constructor(){const _0x193e61=_0x2399be;super(...arguments),I(this,_0x193e61(0x534),new Map()),I(this,_0x193e61(0x3a6),0x0);}[_0x2399be(0x5b7)](_0x3d5cf1){const _0x51312a=_0x2399be;if(this['_assignedColors'][_0x51312a(0x2e1)](_0x3d5cf1))return this[_0x51312a(0x534)][_0x51312a(0x654)](_0x3d5cf1);const _0x26c4fc=qt[this[_0x51312a(0x3a6)]];return this[_0x51312a(0x3a6)]=(this[_0x51312a(0x3a6)]+0x1)%qt[_0x51312a(0x477)],this[_0x51312a(0x534)]['set'](_0x3d5cf1,_0x26c4fc),_0x26c4fc;}}var rr=Object[_0x2399be(0x28d)],sr=Object[_0x2399be(0x398)],or=(_0x850caf,_0x3998ae,_0x195b72,_0x1a1126)=>{const _0x2341d6=_0x2399be;for(var _0x3f5f5a=_0x1a1126>0x1?void 0x0:_0x1a1126?sr(_0x3998ae,_0x195b72):_0x3998ae,_0x4367d7=_0x850caf[_0x2341d6(0x477)]-0x1,_0x167c7d;_0x4367d7>=0x0;_0x4367d7--)(_0x167c7d=_0x850caf[_0x4367d7])&&(_0x3f5f5a=(_0x1a1126?_0x167c7d(_0x3998ae,_0x195b72,_0x3f5f5a):_0x167c7d(_0x3f5f5a))||_0x3f5f5a);return _0x1a1126&&_0x3f5f5a&&rr(_0x3998ae,_0x195b72,_0x3f5f5a),_0x3f5f5a;},pe=(_0x39f777,_0xc3fae4)=>(_0x24b228,_0xd5c3fd)=>_0xc3fae4(_0x24b228,_0xd5c3fd,_0x39f777);const ar=0x12c,cr=0x64;let bt=class extends a[_0x2399be(0x551)]{constructor(_0xf6c775,_0x1870f0,_0x1f0534,_0x14ee56,_0x37cd06,_0x4fc032,_0x9d66e4,_0x231d19,_0x9ad5bc){const _0x5b4773=_0x2399be;super(),I(this,_0x5b4773(0x59b),!0x1),I(this,_0x5b4773(0x50a),!0x1),I(this,_0x5b4773(0x3df),new N['BehaviorSubject'](new Map())),I(this,'cursorInfo$',this[_0x5b4773(0x3df)][_0x5b4773(0x295)]()),I(this,'_roomMembers$',new N[(_0x5b4773(0x57c))]([])),I(this,_0x5b4773(0x431),this[_0x5b4773(0x38b)]['pipe'](N[_0x5b4773(0x52d)](ar))),I(this,_0x5b4773(0x573),a[_0x5b4773(0x42e)](_0x9ed921=>{const _0x44a200=_0x5b4773,_0x24280d={'eventID':m[_0x44a200(0x563)][_0x44a200(0x574)],'data':{'unitID':this[_0x44a200(0x533)],'memberID':this['_session']['getMemberID'](),'selection':Di(_0x9ed921)}};this[_0x44a200(0x5ba)][_0x44a200(0x315)](_0x24280d,this[_0x44a200(0x533)]);},cr)),(this['unitID']=_0xf6c775,this[_0x5b4773(0x5ba)]=_0x1870f0,this[_0x5b4773(0x39d)]=_0x1f0534,this[_0x5b4773(0x226)]=_0x14ee56,this[_0x5b4773(0x2ed)]=_0x37cd06,this['_syncEditingCollabCursorService']=_0x4fc032,this['_transformService']=_0x9d66e4,this['_univerInstanceService']=_0x231d19,this[_0x5b4773(0x4a8)]=_0x9ad5bc);}get[_0x2399be(0x59d)](){const _0x38f04b=_0x2399be;return this[_0x38f04b(0x3df)]['getValue']();}get['roomMembers'](){const _0x42ce47=_0x2399be;return this['_roomMembers$'][_0x42ce47(0x1b0)]();}[_0x2399be(0x5f4)](){const _0x53353e=_0x2399be;super[_0x53353e(0x5f4)](),this[_0x53353e(0x3df)][_0x53353e(0x4db)](new Map()),this[_0x53353e(0x3df)][_0x53353e(0x52b)](),this[_0x53353e(0x38b)][_0x53353e(0x4db)]([]),this[_0x53353e(0x38b)]['complete']();}[_0x2399be(0x324)](){const _0x32711f=_0x2399be;this['_init']||(this[_0x32711f(0x50a)]=!0x0,this['_session'][_0x32711f(0x22e)][_0x32711f(0x527)](N[_0x32711f(0x30c)](this['dispose$']))[_0x32711f(0x468)](_0x16ad7f=>{const _0x1f4a13=_0x32711f;_0x16ad7f===ne[_0x1f4a13(0x60b)]?this[_0x1f4a13(0x47e)]():this['_toggleOffline']();}),this['_session'][_0x32711f(0x29c)][_0x32711f(0x527)](N[_0x32711f(0x30c)](this[_0x32711f(0x33b)]))[_0x32711f(0x468)](_0x5d8ec8=>{const _0x51ef52=_0x32711f,_0x2f66cd=_0x5d8ec8['eventID'];_0x2f66cd===m['CollaborationEvent'][_0x51ef52(0x574)]&&this[_0x51ef52(0x331)](_0x5d8ec8),_0x2f66cd===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x51ef52(0x375)](_0x5d8ec8);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x3ec4ea=>{const _0x1f14e7=_0x32711f,_0x3498b8=_0x3ec4ea[_0x1f14e7(0x552)];_0x3498b8!=null&&this[_0x1f14e7(0x59b)]&&_0x3ec4ea['id']===Ie[_0x1f14e7(0x4de)]['id']&&_0x3498b8[_0x1f14e7(0x54c)]===this[_0x1f14e7(0x533)]&&_0x3498b8['isEditing']===!0x1&&_0x3498b8[_0x1f14e7(0x46d)][_0x1f14e7(0x477)]>0x0&&this[_0x1f14e7(0x573)](_0x3498b8[_0x1f14e7(0x46d)]);})),this['_syncEditingCollabCursorService'][_0x32711f(0x57a)][_0x32711f(0x527)](N[_0x32711f(0x30c)](this[_0x32711f(0x33b)]))[_0x32711f(0x468)](_0x577f55=>{const _0x223cd1=_0x32711f;if((_0x577f55==null?void 0x0:_0x577f55['unitID'])!==this['unitID'])return;const _0x56c894={'eventID':m[_0x223cd1(0x563)][_0x223cd1(0x574)],'data':_0x577f55};this[_0x223cd1(0x331)](_0x56c894);}),this[_0x32711f(0x228)](this[_0x32711f(0x4a8)]['onCommandExecuted'](_0x5bfc93=>{const _0x2f4c6c=_0x32711f;if(_0x5bfc93[_0x2f4c6c(0x552)]==null)return;const _0xbef68b=_0x5bfc93[_0x2f4c6c(0x552)];if(_0x5bfc93['id']!==Ie[_0x2f4c6c(0x492)]['id']||_0xbef68b[_0x2f4c6c(0x54c)]!==this[_0x2f4c6c(0x533)])return;const _0x912ef8={'id':_0x2f4c6c(0x234),'params':_0xbef68b},_0x3c1b4b=this[_0x2f4c6c(0x59d)];for(const [_0x2df520,_0x2c2b34]of _0x3c1b4b){const _0x598372={'id':_0x2f4c6c(0x234),'params':{'unitId':this[_0x2f4c6c(0x533)],'actions':null,'textRanges':_0x2c2b34[_0x2f4c6c(0x46d)]}},_0x42bffe=this[_0x2f4c6c(0x300)][_0x2f4c6c(0x2ad)](_0x912ef8,_0x598372,!0x1);if(m[_0x2f4c6c(0x5f5)](_0x42bffe))throw _0x42bffe['error'];_0x3c1b4b[_0x2f4c6c(0x593)](_0x2df520,{..._0x2c2b34,'ranges':_0x42bffe['m2Prime'][_0x2f4c6c(0x552)][_0x2f4c6c(0x32b)]});}queueMicrotask(()=>{const _0x4423e8=_0x2f4c6c;this['_cursorInfo$'][_0x4423e8(0x4db)](_0x3c1b4b);});})));}[_0x2399be(0x331)](_0x1a5d36){const _0x5b2e21=_0x2399be;var _0x4aeb2f,_0x499fce;const {memberID:_0x384c08,selection:_0x1f6930}=_0x1a5d36[_0x5b2e21(0x3fa)],_0x10eb6b=kn(_0x1f6930),_0x92199f=(_0x499fce=(_0x4aeb2f=this[_0x5b2e21(0x2ed)][_0x5b2e21(0x224)](this[_0x5b2e21(0x533)],_0x384c08))==null?void 0x0:_0x4aeb2f[_0x5b2e21(0x452)])!=null?_0x499fce:'Unknown\x20user',_0x39554e={'color':this[_0x5b2e21(0x226)][_0x5b2e21(0x5b7)](_0x384c08),'name':_0x92199f,'ranges':_0x10eb6b},_0x4656f2=this[_0x5b2e21(0x59d)];_0x4656f2[_0x5b2e21(0x593)](_0x384c08,_0x39554e),this['_cursorInfo$'][_0x5b2e21(0x4db)](_0x4656f2);}[_0x2399be(0x375)](_0x488f9d){const _0x195cd9=_0x2399be,{memberID:_0x203e4b}=_0x488f9d[_0x195cd9(0x3fa)],_0x3677e0=this['cursorInfo'];_0x3677e0['delete'](_0x203e4b),this[_0x195cd9(0x3df)][_0x195cd9(0x4db)](_0x3677e0);}[_0x2399be(0x47e)](){const _0x286dd5=_0x2399be;var _0x1c547b;if(this[_0x286dd5(0x59b)]=!0x0,((_0x1c547b=this['_univerInstanceService'][_0x286dd5(0x19d)]())==null?void 0x0:_0x1c547b[_0x286dd5(0x27c)]())!==this[_0x286dd5(0x533)])return;const _0x359c0d=this[_0x286dd5(0x39d)][_0x286dd5(0x654)](Ie[_0x286dd5(0x484)])[_0x286dd5(0x22c)]();Array[_0x286dd5(0x1ce)](_0x359c0d)&&_0x359c0d['length']>0x0&&this[_0x286dd5(0x573)](_0x359c0d);}['_toggleOffline'](){this['_online']=!0x1;}};bt=or([pe(0x2,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),pe(0x3,a['Inject'](Nt)),pe(0x4,a[_0x2399be(0x24b)](exports[_0x2399be(0x4e4)])),pe(0x5,a[_0x2399be(0x24b)](Ut)),pe(0x6,m[_0x2399be(0x587)]),pe(0x7,a[_0x2399be(0x53e)]),pe(0x8,a[_0x2399be(0x36c)])],bt);var lr=Object[_0x2399be(0x28d)],hr=Object[_0x2399be(0x398)],_r=(_0x336418,_0x421574,_0x471017,_0x28c457)=>{for(var _0x5bbb3e=_0x28c457>0x1?void 0x0:_0x28c457?hr(_0x421574,_0x471017):_0x421574,_0x3c747a=_0x336418['length']-0x1,_0x232706;_0x3c747a>=0x0;_0x3c747a--)(_0x232706=_0x336418[_0x3c747a])&&(_0x5bbb3e=(_0x28c457?_0x232706(_0x421574,_0x471017,_0x5bbb3e):_0x232706(_0x5bbb3e))||_0x5bbb3e);return _0x28c457&&_0x5bbb3e&&lr(_0x421574,_0x471017,_0x5bbb3e),_0x5bbb3e;},Te=(_0x20947c,_0x3763b5)=>(_0xbb8ced,_0x50b869)=>_0x3763b5(_0xbb8ced,_0x50b869,_0x20947c);const ur=0x12c,dr=0x64,fr=()=>{let _0x369baa=[],_0x264f46=!0x1;return _0x6aa641=>{const _0x476ddd=_0x52c2;_0x369baa[_0x476ddd(0x644)](_0x6aa641),_0x264f46||(_0x264f46=!0x0,setTimeout(()=>{_0x369baa['forEach'](_0x300a03=>_0x300a03()),_0x369baa=[],_0x264f46=!0x1;}));};};let Tt=class extends a[_0x2399be(0x551)]{constructor(_0xc28780,_0x42369f,_0x48156c,_0x2c1b1a,_0x200494,_0x5b8bb2,_0x15aeaf,_0x4b50ee){const _0x49cdfc=_0x2399be;super(),I(this,'_online',!0x1),I(this,_0x49cdfc(0x50a),!0x1),I(this,_0x49cdfc(0x3df),new N[(_0x49cdfc(0x57c))](new Map())),I(this,_0x49cdfc(0x26a),this[_0x49cdfc(0x3df)][_0x49cdfc(0x295)]()),I(this,_0x49cdfc(0x38b),new N['BehaviorSubject']([])),I(this,'roomMembers$',this[_0x49cdfc(0x38b)]['pipe'](N[_0x49cdfc(0x52d)](ur))),I(this,_0x49cdfc(0x573),a['debounce']((_0x5ad702,_0x1f7995)=>{const _0x311f2f=_0x49cdfc,_0x20f8d8={'eventID':m[_0x311f2f(0x563)][_0x311f2f(0x574)],'data':{'unitID':this[_0x311f2f(0x533)],'memberID':this[_0x311f2f(0x5ba)][_0x311f2f(0x473)](),'selection':$t[_0x311f2f(0x292)](_0x5ad702,_0x1f7995[_0x311f2f(0x651)])}};this[_0x311f2f(0x5ba)][_0x311f2f(0x315)](_0x20f8d8,this[_0x311f2f(0x533)]);},dr)),(this[_0x49cdfc(0x533)]=_0xc28780,this['_session']=_0x42369f,this[_0x49cdfc(0x39d)]=_0x48156c,this[_0x49cdfc(0x226)]=_0x2c1b1a,this[_0x49cdfc(0x2ed)]=_0x200494,this[_0x49cdfc(0x435)]=_0x5b8bb2,this[_0x49cdfc(0x4a8)]=_0x15aeaf,this[_0x49cdfc(0x5e5)]=_0x4b50ee);}get[_0x2399be(0x59d)](){const _0xbe49bc=_0x2399be;return this[_0xbe49bc(0x3df)][_0xbe49bc(0x1b0)]();}get[_0x2399be(0x5da)](){const _0x6ef1a2=_0x2399be;return this[_0x6ef1a2(0x38b)][_0x6ef1a2(0x1b0)]();}[_0x2399be(0x5f4)](){const _0x5da974=_0x2399be;super[_0x5da974(0x5f4)](),this[_0x5da974(0x3df)][_0x5da974(0x4db)](new Map()),this[_0x5da974(0x3df)][_0x5da974(0x52b)](),this[_0x5da974(0x38b)]['next']([]),this[_0x5da974(0x38b)][_0x5da974(0x52b)]();}['init'](){const _0x50baa4=_0x2399be;this[_0x50baa4(0x50a)]||(this['_init']=!0x0,this[_0x50baa4(0x5ba)][_0x50baa4(0x22e)][_0x50baa4(0x527)](N[_0x50baa4(0x30c)](this[_0x50baa4(0x33b)]))['subscribe'](_0x4bf1d9=>{const _0x30f2e1=_0x50baa4;_0x4bf1d9===ne[_0x30f2e1(0x60b)]?this[_0x30f2e1(0x47e)]():this[_0x30f2e1(0x566)]();}),this[_0x50baa4(0x5ba)][_0x50baa4(0x29c)]['pipe'](N[_0x50baa4(0x30c)](this[_0x50baa4(0x33b)]))[_0x50baa4(0x468)](_0x302947=>{const _0x639756=_0x50baa4,_0x2576a6=_0x302947[_0x639756(0x1e9)];_0x2576a6===m[_0x639756(0x563)][_0x639756(0x574)]&&this[_0x639756(0x331)](_0x302947),_0x2576a6===m['CollaborationEvent'][_0x639756(0x5a4)]&&this[_0x639756(0x375)](_0x302947);}),this[_0x50baa4(0x2fc)](),this[_0x50baa4(0x228)](this[_0x50baa4(0x4a8)]['onCommandExecuted'](_0x23ded0=>{const _0x1d4e63=_0x50baa4;if(this[_0x1d4e63(0x59b)]&&_0x23ded0['id']===k[_0x1d4e63(0x1db)]['id']&&_0x23ded0[_0x1d4e63(0x552)]['unitId']===this['unitID']){const _0x3c6870=_0x23ded0['params'];this[_0x1d4e63(0x573)](_0x3c6870['subUnitId'],_0x3c6870[_0x1d4e63(0x42c)][0x0]);}})));}[_0x2399be(0x331)](_0x31910a){const _0x2f2413=_0x2399be;var _0x38f34f,_0x1b1410;const {memberID:_0x19514e,selection:_0x36a9fe}=_0x31910a['data'],{sheetName:_0x263bad,range:_0x166a71}=$t[_0x2f2413(0x1f9)](_0x36a9fe),_0x4ce3ce={'name':(_0x1b1410=(_0x38f34f=this[_0x2f2413(0x2ed)][_0x2f2413(0x224)](this[_0x2f2413(0x533)],_0x19514e))==null?void 0x0:_0x38f34f[_0x2f2413(0x452)])!=null?_0x1b1410:'Unknown\x20user','range':this[_0x2f2413(0x607)](_0x263bad,_0x166a71),'sheetID':_0x263bad,'color':this[_0x2f2413(0x226)][_0x2f2413(0x5b7)](_0x19514e),'selection':_0x36a9fe},_0xe38c06=this[_0x2f2413(0x59d)];_0xe38c06[_0x2f2413(0x593)](_0x19514e,_0x4ce3ce),this[_0x2f2413(0x3df)]['next'](_0xe38c06);}['_onCursorDelete'](_0x24b66f){const _0x35aab0=_0x2399be,{memberID:_0xc21bc8}=_0x24b66f[_0x35aab0(0x3fa)],_0xbf1af1=this[_0x35aab0(0x59d)];_0xbf1af1['delete'](_0xc21bc8),this['_cursorInfo$'][_0x35aab0(0x4db)](_0xbf1af1);}[_0x2399be(0x607)](_0x4871cf,_0x3ebaad){const _0x517d6c=_0x2399be;var _0x4bdc8c,_0x3b693a;const _0x167be7=(_0x3b693a=(_0x4bdc8c=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x517d6c(0x533)]))==null?void 0x0:_0x4bdc8c['getSheetBySheetId'](_0x4871cf))==null?void 0x0:_0x3b693a[_0x517d6c(0x2c0)]();return(_0x167be7==null?void 0x0:_0x167be7['find'](_0x2a1c96=>a[_0x517d6c(0x428)][_0x517d6c(0x2ba)](_0x2a1c96,_0x3ebaad)))||_0x3ebaad;}[_0x2399be(0x2fc)](){const _0x3d6897=_0x2399be,_0xd7ce88=new a[(_0x3d6897(0x4c5))](),_0x57e8e7=fr(),_0x52579a=()=>{const _0x12b579=_0x3d6897;_0xd7ce88['dispose']();const _0x5f4784=(_0x49caa9,_0x303887,_0xe0bcf8,_0x5900df)=>{const _0x1a7d67=_0x52c2;let _0x41b023=[];switch(_0x49caa9['id']){case k[_0x1a7d67(0x391)][_0x1a7d67(0x627)]:{_0x41b023=k['handleDeleteRangeMoveLeft'](_0x49caa9,_0x5900df);break;}case k['EffectRefRangId'][_0x1a7d67(0x409)]:{_0x41b023=k[_0x1a7d67(0x4cb)](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x249)]:{_0x41b023=k[_0x1a7d67(0x639)](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x229)]:{_0x41b023=k[_0x1a7d67(0x251)](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x637)]:{_0x41b023=k['handleInsertRangeMoveRight'](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x19b)]:{_0x41b023=k[_0x1a7d67(0x640)](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x5d9)]:{_0x41b023=k[_0x1a7d67(0x519)](_0x49caa9,_0x5900df);break;}case k[_0x1a7d67(0x391)][_0x1a7d67(0x556)]:{_0x41b023=k['handleIRemoveCol'](_0x49caa9,_0x5900df);break;}case k['EffectRefRangId'][_0x1a7d67(0x37b)]:{_0x41b023=k[_0x1a7d67(0x583)](_0x49caa9,_0x5900df);break;}}const _0x194f12=k['runRefRangeMutations'](_0x41b023,_0x5900df),_0x54c1fd=this['cursorInfo'][_0x1a7d67(0x654)](_0x303887);if(_0x54c1fd&&_0x194f12){const _0x3c6846={..._0x54c1fd,'range':_0x194f12};this[_0x1a7d67(0x59d)][_0x1a7d67(0x593)](_0x303887,_0x3c6846),_0x57e8e7(()=>{const _0x3b1bac=_0x1a7d67,_0x495f4b=this['_refRangeService'][_0x3b1bac(0x320)](_0x194f12,_0x58feb6=>(_0x495f4b[_0x3b1bac(0x5f4)](),_0x5f4784(_0x58feb6,_0x303887,_0xe0bcf8,_0x194f12)));_0xd7ce88['add'](_0x495f4b);});}return{'redos':[],'undos':[]};};this[_0x12b579(0x59d)]['forEach']((_0xa22b72,_0x1077de)=>{const _0x5d306c=_0x12b579,{range:_0x1eea27,sheetID:_0x18d9f3}=_0xa22b72,_0x10695a=this[_0x5d306c(0x5e5)][_0x5d306c(0x320)](_0x1eea27,_0x3054cd=>(_0x10695a[_0x5d306c(0x5f4)](),_0x5f4784(_0x3054cd,_0x1077de,_0x18d9f3,_0x1eea27)));_0xd7ce88['add'](_0x10695a);});};this[_0x3d6897(0x228)](a[_0x3d6897(0x518)](this[_0x3d6897(0x3df)]['subscribe'](()=>{_0x52579a();})));}[_0x2399be(0x47e)](){const _0x41330d=_0x2399be;var _0x495066,_0x4ef51f;if(this['_online']=!0x0,((_0x495066=this['_univerInstanceService'][_0x41330d(0x19d)]())==null?void 0x0:_0x495066[_0x41330d(0x27c)]())!==this['unitID'])return;const _0x13e550=(_0x4ef51f=this['_injector'][_0x41330d(0x654)](k[_0x41330d(0x3a8)])['getCurrentSelections']())==null?void 0x0:_0x4ef51f[0x0],_0x3a2b01=this[_0x41330d(0x435)]['getCurrentUnitForType'](a[_0x41330d(0x2e6)][_0x41330d(0x52f)])[_0x41330d(0x273)]();_0x13e550&&_0x3a2b01&&this[_0x41330d(0x573)](_0x3a2b01['getSheetId'](),_0x13e550);}['_toggleOffline'](){const _0x1d7997=_0x2399be;this[_0x1d7997(0x59b)]=!0x1;}};Tt=_r([Te(0x2,a['Inject'](a[_0x2399be(0x3b4)])),Te(0x3,a[_0x2399be(0x24b)](Nt)),Te(0x4,a[_0x2399be(0x24b)](exports[_0x2399be(0x4e4)])),Te(0x5,a[_0x2399be(0x53e)]),Te(0x6,a[_0x2399be(0x36c)]),Te(0x7,a[_0x2399be(0x24b)](k[_0x2399be(0x1ba)]))],Tt);var vr=Object[_0x2399be(0x28d)],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x54e196,_0x59fd59,_0x50a726,_0x50791d)=>{const _0x357c45=_0x2399be;for(var _0x10573b=_0x50791d>0x1?void 0x0:_0x50791d?Sr(_0x59fd59,_0x50a726):_0x59fd59,_0x3d470d=_0x54e196[_0x357c45(0x477)]-0x1,_0x1fd093;_0x3d470d>=0x0;_0x3d470d--)(_0x1fd093=_0x54e196[_0x3d470d])&&(_0x10573b=(_0x50791d?_0x1fd093(_0x59fd59,_0x50a726,_0x10573b):_0x1fd093(_0x10573b))||_0x10573b);return _0x50791d&&_0x10573b&&vr(_0x59fd59,_0x50a726,_0x10573b),_0x10573b;},ft=(_0x564e37,_0x8c0e32)=>(_0x341aef,_0xc8d066)=>_0x8c0e32(_0x341aef,_0xc8d066,_0x564e37);let ye=class extends a[_0x2399be(0x551)]{constructor(_0x1fa545,_0x31c262,_0x275e38){const _0x3264a6=_0x2399be;super(),I(this,_0x3264a6(0x2f5),new Map()),I(this,'_entityInit$',new N[(_0x3264a6(0x512))]()),(this['_univerInstanceService']=_0x1fa545,this[_0x3264a6(0x39d)]=_0x31c262,this['_collabSessionService']=_0x275e38,this[_0x3264a6(0x50a)]());}[_0x2399be(0x5f4)](){const _0x2ac69e=_0x2399be;super['dispose'](),this[_0x2ac69e(0x193)][_0x2ac69e(0x52b)](),this[_0x2ac69e(0x2f5)][_0x2ac69e(0x306)](_0x1925ce=>_0x1925ce[_0x2ac69e(0x5f4)]());}[_0x2399be(0x4fd)](_0x4382a9){const _0x4583e2=_0x2399be;return this[_0x4583e2(0x2f5)]['has'](_0x4382a9)?this['_entities'][_0x4583e2(0x654)](_0x4382a9)['cursorInfo$']:this[_0x4583e2(0x193)][_0x4583e2(0x527)](N[_0x4583e2(0x522)](_0x4c2e23=>_0x4c2e23[_0x4583e2(0x533)]===_0x4382a9),N[_0x4583e2(0x252)](_0x2df7c9=>_0x2df7c9['cursorInfo$']));}['_init'](){const _0xb69f0f=_0x2399be;this['_univerInstanceService'][_0xb69f0f(0x2a7)](a['UniverInstanceType']['UNIVER_SHEET'])[_0xb69f0f(0x527)](N[_0xb69f0f(0x30c)](this['dispose$']))[_0xb69f0f(0x468)](async _0x55e174=>{const _0xa3057a=_0xb69f0f,_0x515860=_0x55e174[_0xa3057a(0x27c)](),_0x4a72fc=await this[_0xa3057a(0x57f)](_0x515860);this[_0xa3057a(0x193)][_0xa3057a(0x4db)](_0x4a72fc),this[_0xa3057a(0x2f5)][_0xa3057a(0x593)](_0x515860,_0x4a72fc);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xb69f0f(0x2e6)][_0xb69f0f(0x4f4)])[_0xb69f0f(0x527)](N['takeUntil'](this[_0xb69f0f(0x33b)]))[_0xb69f0f(0x527)](N['filter'](_0x1fe0dd=>!_0x1fe0dd[_0xb69f0f(0x27c)]()['startsWith']('__')))[_0xb69f0f(0x468)](async _0x52cbd7=>{const _0x284973=_0xb69f0f,_0x5f1081=_0x52cbd7[_0x284973(0x27c)](),_0x589823=await this[_0x284973(0x21a)](_0x5f1081);this['_entityInit$']['next'](_0x589823),this['_entities'][_0x284973(0x593)](_0x5f1081,_0x589823);}),N[_0xb69f0f(0x5b9)](this[_0xb69f0f(0x435)]['getTypeOfUnitDisposed$'](a[_0xb69f0f(0x2e6)][_0xb69f0f(0x4f4)]),this[_0xb69f0f(0x435)][_0xb69f0f(0x5c2)](a[_0xb69f0f(0x2e6)][_0xb69f0f(0x52f)]))[_0xb69f0f(0x527)](N[_0xb69f0f(0x30c)](this[_0xb69f0f(0x33b)]))[_0xb69f0f(0x468)](_0x256912=>{const _0x9efc36=_0xb69f0f,_0x18f69e=_0x256912[_0x9efc36(0x27c)](),_0x12845a=this['_entities'][_0x9efc36(0x654)](_0x18f69e);_0x12845a&&(_0x12845a[_0x9efc36(0x5f4)](),this['_entities']['delete'](_0x18f69e));});}async[_0x2399be(0x57f)](_0x5d9c43){const _0x3f8612=_0x2399be,_0x505fdd=await this[_0x3f8612(0x3ff)][_0x3f8612(0x513)](_0x5d9c43),_0x27fd38=this[_0x3f8612(0x39d)][_0x3f8612(0x359)](Tt,_0x5d9c43,_0x505fdd);return _0x27fd38[_0x3f8612(0x324)](),_0x27fd38;}async[_0x2399be(0x21a)](_0x563e5d){const _0x186d5d=_0x2399be,_0x2a1e72=await this['_collabSessionService']['requireSession'](_0x563e5d),_0x2a21fa=this[_0x186d5d(0x39d)][_0x186d5d(0x359)](bt,_0x563e5d,_0x2a1e72);return _0x2a21fa[_0x186d5d(0x324)](),_0x2a21fa;}};ye=pr([ft(0x0,a[_0x2399be(0x53e)]),ft(0x1,a['Inject'](a[_0x2399be(0x3b4)])),ft(0x2,a[_0x2399be(0x24b)](exports['CollaborationSessionService']))],ye);const xe=0x14,Kt=0xc8,vt=0x4,mr=0x5;function gr(_0x17d9a2,_0x5a5fff){const _0x191753=_0x2399be;let {radius:_0x3bbe75,width:_0x4e98ae,height:_0x3d4a85}=_0x5a5fff;_0x3bbe75=_0x3bbe75!=null?_0x3bbe75:0x0,_0x4e98ae=_0x4e98ae!=null?_0x4e98ae:0x1e,_0x3d4a85=_0x3d4a85!=null?_0x3d4a85:0x1e;let _0x3fa52f=0x0,_0x102846=0x0,_0x5889ae=0x0;_0x3fa52f=_0x102846=_0x5889ae=Math[_0x191753(0x41e)](_0x3bbe75,_0x4e98ae/0x2,_0x3d4a85/0x2),_0x17d9a2['beginPath'](),_0x17d9a2[_0x191753(0x555)](_0x3fa52f,0x0),_0x17d9a2[_0x191753(0x23d)](_0x4e98ae-_0x102846,0x0),_0x17d9a2['arc'](_0x4e98ae-_0x102846,_0x102846,_0x102846,Math['PI']*0x3/0x2,0x0,!0x1),_0x17d9a2['lineTo'](_0x4e98ae,_0x3d4a85-_0x5889ae),_0x17d9a2[_0x191753(0x5c7)](_0x4e98ae-_0x5889ae,_0x3d4a85-_0x5889ae,_0x5889ae,0x0,Math['PI']/0x2,!0x1),_0x17d9a2[_0x191753(0x23d)](0x0,_0x3d4a85),_0x17d9a2[_0x191753(0x23d)](0x0,_0x3fa52f),_0x17d9a2[_0x191753(0x5c7)](_0x3fa52f,_0x3fa52f,_0x3fa52f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x17d9a2[_0x191753(0x24e)](),_0x5a5fff[_0x191753(0x26c)]&&(_0x17d9a2[_0x191753(0x48b)](),_0x17d9a2['fillStyle']=_0x5a5fff['fill'],_0x5a5fff[_0x191753(0x636)]==='evenodd'?_0x17d9a2[_0x191753(0x26c)](_0x191753(0x4a6)):_0x17d9a2[_0x191753(0x26c)](),_0x17d9a2[_0x191753(0x4e6)]());}class ct extends Y[_0x2399be(0x348)]{constructor(_0x2d84af,_0x4732b9){const _0x39b2cf=_0x2399be;super(_0x2d84af,_0x4732b9),I(this,_0x39b2cf(0x4b1)),I(this,'text'),(this[_0x39b2cf(0x4b1)]=_0x4732b9==null?void 0x0:_0x4732b9[_0x39b2cf(0x4b1)],this[_0x39b2cf(0x3f7)]=_0x4732b9==null?void 0x0:_0x4732b9[_0x39b2cf(0x3f7)]);}static[_0x2399be(0x2c7)](_0x5b96e2,_0x370aec){const _0x258bba=_0x2399be,{text:_0x1ddbfd,color:_0x26ed0f}=_0x370aec;_0x5b96e2[_0x258bba(0x48b)](),_0x5b96e2['font']=_0x258bba(0x19e);const _0x332648=_0x5b96e2['measureText'](_0x1ddbfd)['width'],_0x24c60f=Math['min'](_0x332648+0x2*vt,Kt);gr(_0x5b96e2,{'height':xe,'radius':0x4,'width':_0x24c60f,'fill':_0x26ed0f,'evented':!0x1}),_0x5b96e2[_0x258bba(0x3fd)]=_0x258bba(0x3a9);const _0x595372=vt,_0x30a273=xe-mr,_0x147947=Kt-0x2*vt;if(_0x332648>_0x147947){let _0x5aab74='',_0x34d89e=0x0;for(const _0x37eace of _0x1ddbfd){const _0x7bb13=_0x5b96e2[_0x258bba(0x1a2)](_0x37eace)[_0x258bba(0x323)];if(_0x34d89e+_0x7bb13<=_0x147947-_0x5b96e2[_0x258bba(0x1a2)](_0x258bba(0x4a1))['width'])_0x5aab74+=_0x37eace,_0x34d89e+=_0x7bb13;else{_0x5aab74+=_0x258bba(0x4a1);break;}}_0x5b96e2[_0x258bba(0x49c)](_0x5aab74,_0x595372,_0x30a273);}else _0x5b96e2[_0x258bba(0x49c)](_0x1ddbfd,_0x595372,_0x30a273);_0x5b96e2[_0x258bba(0x4e6)]();}[_0x2399be(0x2b0)](_0x44d23){const _0x201a8e=_0x2399be;ct[_0x201a8e(0x2c7)](_0x44d23,this);}}const St=_0x2399be(0x442),Ir=_0x2399be(0x461),Cr=_0x2399be(0x2d8),we=0x6,Er=1.5,pt=0x4,br=1.5,Tr=_0x2399be(0x288);class zt{constructor(_0x47b1e5,_0x3f3926,_0x1d5e5a,_0xf7b09c){const _0x57d0d2=_0x2399be;I(this,'_shapes',[]),I(this,_0x57d0d2(0x19a),null),I(this,_0x57d0d2(0x4cf),null),I(this,_0x57d0d2(0x1d0),null),I(this,'_hideTimer',null),I(this,_0x57d0d2(0x572),null),(this['_cursor']=_0x47b1e5,this['_scene']=_0x3f3926,this[_0x57d0d2(0x511)]=_0x1d5e5a,this[_0x57d0d2(0x613)]=_0xf7b09c,this['_render']());}set['_hover'](_0x30e389){const _0x5b5487=_0x2399be;_0x30e389?(this[_0x5b5487(0x1d0)]&&this[_0x5b5487(0x1d0)][_0x5b5487(0x210)](),this[_0x5b5487(0x4cf)]&&this[_0x5b5487(0x4cf)][_0x5b5487(0x4bf)]()):(this['_anchorDot']&&this[_0x5b5487(0x1d0)][_0x5b5487(0x4bf)](),this['_textBubble']&&this[_0x5b5487(0x4cf)][_0x5b5487(0x210)]());}[_0x2399be(0x5f4)](){const _0x534e7d=_0x2399be;for(const _0x15b3fe of this['_shapes'])_0x15b3fe[_0x534e7d(0x5f4)]();this[_0x534e7d(0x4cf)]&&this[_0x534e7d(0x4cf)][_0x534e7d(0x5f4)](),this['_anchorDot']&&this[_0x534e7d(0x1d0)][_0x534e7d(0x5f4)](),this[_0x534e7d(0x19a)]&&this['_anchor'][_0x534e7d(0x5f4)](),this['_eventUnsubscribe']&&this[_0x534e7d(0x572)]();}[_0x2399be(0x2e4)](){const _0x2e20c7=_0x2399be;var _0x503956;const {_docSkeleton:_0x3abb21,_document:_0x54515c}=this,{color:_0x5a99a8,name:_0x4a8c55,ranges:_0x524b62}=this['_cursor'],_0x4ff231=_0x54515c['getOffsetConfig'](),{docsLeft:_0x589151,docsTop:_0x1f8e66}=_0x4ff231,_0x396bd2=new J[(_0x2e20c7(0x4c1))](_0x4ff231,_0x3abb21);for(const {startOffset:_0x4b03ab,endOffset:_0x46befa,rangeType:_0x4b3e5b,segmentId:_0x41cb86,segmentPage:_0x339737,collapsed:_0x32bb5d,isActive:_0x3b3b39}of _0x524b62){const _0x1b5144=_0x3abb21[_0x2e20c7(0x355)](_0x4b03ab,!0x0,_0x41cb86,_0x339737);let _0x560888=_0x3abb21[_0x2e20c7(0x355)](_0x46befa,!0x0,_0x41cb86,_0x339737);if(_0x560888==null&&(_0x560888=_0x3abb21[_0x2e20c7(0x355)](_0x46befa-0x1,!0x1,_0x41cb86,_0x339737)),_0x3b3b39){const {contentBoxPointGroup:_0x5b830e}=_0x396bd2[_0x2e20c7(0x250)](_0x560888,_0x560888);if(_0x5b830e['length']===0x0)continue;this[_0x2e20c7(0x291)](_0x5a99a8,_0x5b830e,_0x589151,_0x1f8e66,_0x4a8c55),this[_0x2e20c7(0x572)]=this['_handleHover']();}if(_0x1b5144&&_0x560888){if(_0x4b3e5b===a['DOC_RANGE_TYPE'][_0x2e20c7(0x57e)]){const _0xec8394=new J[(_0x2e20c7(0x5bc))](_0x4ff231,_0x3abb21),{pointGroup:_0x14957e}=(_0x503956=_0xec8394[_0x2e20c7(0x250)](_0x1b5144,_0x560888))!=null?_0x503956:{};if(_0x14957e==null||_0x14957e[_0x2e20c7(0x477)]===0x0)continue;this['_drawRectRange'](_0x5a99a8,_0x14957e,_0x589151,_0x1f8e66);}else{if(!_0x32bb5d){const {borderBoxPointGroup:_0x4098c4}=_0x396bd2[_0x2e20c7(0x250)](_0x1b5144,_0x560888);if(_0x4098c4['length']===0x0)continue;this[_0x2e20c7(0x218)](_0x5a99a8,_0x4098c4,_0x589151,_0x1f8e66);}}}}}[_0x2399be(0x291)](_0x4dfaa8,_0x36c756,_0x3f1503,_0x1b7b88,_0x1a7252){const _0x26321c=_0x2399be,_0x22f30d=this[_0x26321c(0x182)](_0x36c756),{left:_0x70500e,top:_0x23a6d5,height:_0x2d7614}=_0x22f30d,_0x47ffbb=this[_0x26321c(0x44a)](),_0x53aa18=br/_0x47ffbb,_0x15dcbd=new Y['Rect'](St+a['Tools'][_0x26321c(0x1b3)](we),{'left':_0x70500e+_0x3f1503-_0x53aa18,'top':_0x23a6d5+_0x1b7b88,'height':_0x2d7614,'width':Er,'fill':_0x4dfaa8||Y[_0x26321c(0x233)](a[_0x26321c(0x525)]['black'],0x0),'strokeWidth':_0x53aa18,'stroke':Tr,'evented':!0x0});this[_0x26321c(0x19a)]=_0x15dcbd,this[_0x26321c(0x1bf)][_0x26321c(0x615)](_0x15dcbd,J['TEXT_RANGE_LAYER_INDEX']);const _0x582e82=new Y[(_0x26321c(0x5ae))](St+a['Tools'][_0x26321c(0x1b3)](we),{'left':_0x70500e+_0x3f1503-_0x53aa18,'top':_0x23a6d5+_0x1b7b88-pt/0x2,'height':pt,'width':pt,'fill':_0x4dfaa8||Y['getColor'](a['COLORS'][_0x26321c(0x33f)],0x0),'strokeWidth':0x0,'stroke':_0x4dfaa8||Y[_0x26321c(0x233)](a[_0x26321c(0x525)][_0x26321c(0x33f)],0x0),'evented':!0x1});this[_0x26321c(0x1d0)]=_0x582e82,this[_0x26321c(0x1bf)][_0x26321c(0x615)](_0x582e82,J[_0x26321c(0x608)]);const _0x7f5f7a=new ct(St+a[_0x26321c(0x1e0)][_0x26321c(0x1b3)](we),{'left':_0x70500e+_0x3f1503-_0x53aa18,'top':_0x23a6d5+_0x1b7b88-xe,'text':_0x1a7252,'color':_0x4dfaa8});this['_textBubble']=_0x7f5f7a,this[_0x26321c(0x1bf)][_0x26321c(0x615)](_0x7f5f7a,J[_0x26321c(0x608)]),this[_0x26321c(0x62a)]=!0x1;}[_0x2399be(0x203)](){const _0x4094da=_0x2399be,_0x5e0cf5=this[_0x4094da(0x19a)][_0x4094da(0x5b0)][_0x4094da(0x532)](()=>{this['_hover']=!0x0;}),_0x508fd0=this[_0x4094da(0x19a)]['onPointerLeave$'][_0x4094da(0x532)](()=>{const _0x1fc675=_0x4094da;this[_0x1fc675(0x39a)]&&clearTimeout(this[_0x1fc675(0x39a)]),this[_0x1fc675(0x39a)]=setTimeout(()=>{const _0x515d6f=_0x1fc675;this[_0x515d6f(0x62a)]=!0x1;},0x7d0);});return()=>{const _0x3cef1a=_0x4094da;_0x5e0cf5[_0x3cef1a(0x269)](),_0x508fd0['unsubscribe']();};}['_drawTextRange'](_0x1e6aea,_0x571a05,_0x26524d,_0x243861){const _0x4aad46=_0x2399be,_0x4450c9=new a['ColorKit'](_0x1e6aea)['setAlpha'](0.2)[_0x4aad46(0x5ff)](),_0x4935cb=new Y[(_0x4aad46(0x54b))](Ir+a[_0x4aad46(0x1e0)][_0x4aad46(0x1b3)](we),{'pointsGroup':_0x571a05,'fill':_0x4450c9||Y['getColor'](a[_0x4aad46(0x525)][_0x4aad46(0x33f)],0.2),'left':_0x26524d,'top':_0x243861,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aad46(0x246)][_0x4aad46(0x644)](_0x4935cb),this['_scene'][_0x4aad46(0x615)](_0x4935cb,J[_0x4aad46(0x608)]);}[_0x2399be(0x3ef)](_0x46b943,_0x2922a8,_0x567b88,_0x18bd45){const _0xd7ece4=_0x2399be,_0x210ec3=new a['ColorKit'](_0x46b943)[_0xd7ece4(0x23f)](0.2)[_0xd7ece4(0x5ff)](),_0x12cd76=new Y[(_0xd7ece4(0x54b))](Cr+a[_0xd7ece4(0x1e0)]['generateRandomId'](we),{'pointsGroup':_0x2922a8,'fill':_0x210ec3||Y[_0xd7ece4(0x233)](a[_0xd7ece4(0x525)][_0xd7ece4(0x33f)],0.2),'left':_0x567b88,'top':_0x18bd45,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xd7ece4(0x246)][_0xd7ece4(0x644)](_0x12cd76),this['_scene']['addObject'](_0x12cd76,J[_0xd7ece4(0x608)]);}[_0x2399be(0x182)](_0xf1a86f){const _0x271477=_0xf1a86f[0x0],_0x2138c2=_0x271477[0x0],_0x5d4dd5=_0x271477[0x2],{x:_0x3be091,y:_0x39efa4}=_0x2138c2,{x:_0x27b2d5,y:_0x1034f6}=_0x5d4dd5;return{'left':_0x3be091,'top':_0x39efa4,'width':_0x27b2d5-_0x3be091,'height':_0x1034f6-_0x39efa4};}[_0x2399be(0x44a)](){const _0x251301=_0x2399be,{scaleX:_0x536e84,scaleY:_0x2b33cc}=this['_scene'][_0x251301(0x449)]();return Math[_0x251301(0x584)](_0x536e84,_0x2b33cc);}}var Rr=Object['defineProperty'],Or=Object[_0x2399be(0x398)],yr=(_0x978f42,_0x618841,_0x12b38b,_0x2f3b1b)=>{const _0x2852a0=_0x2399be;for(var _0x1e4dc7=_0x2f3b1b>0x1?void 0x0:_0x2f3b1b?Or(_0x618841,_0x12b38b):_0x618841,_0x3ffa2e=_0x978f42[_0x2852a0(0x477)]-0x1,_0x46a42c;_0x3ffa2e>=0x0;_0x3ffa2e--)(_0x46a42c=_0x978f42[_0x3ffa2e])&&(_0x1e4dc7=(_0x2f3b1b?_0x46a42c(_0x618841,_0x12b38b,_0x1e4dc7):_0x46a42c(_0x1e4dc7))||_0x1e4dc7);return _0x2f3b1b&&_0x1e4dc7&&Rr(_0x618841,_0x12b38b,_0x1e4dc7),_0x1e4dc7;},je=(_0x318b5e,_0x490644)=>(_0x3c4c17,_0x3ec59d)=>_0x490644(_0x3c4c17,_0x3ec59d,_0x318b5e);let Rt=class extends a[_0x2399be(0x551)]{constructor(_0x368224,_0x448aed,_0x106ab1,_0x1e78dd,_0x50a7eb){const _0x1ee5a5=_0x2399be;super(),I(this,_0x1ee5a5(0x4e5),[]),I(this,_0x1ee5a5(0x42a),[]),(this[_0x1ee5a5(0x202)]=_0x368224,this[_0x1ee5a5(0x50d)]=_0x448aed,this['_collabCursorController']=_0x106ab1,this[_0x1ee5a5(0x4a8)]=_0x1e78dd,this[_0x1ee5a5(0x2c9)]=_0x50a7eb,this[_0x1ee5a5(0x50a)]());}['_init'](){const _0x56eddb=_0x2399be,_0x4ff515=this['_context'][_0x56eddb(0x54c)],_0x447005=this[_0x56eddb(0x50d)];this['disposeWithMe'](N[_0x56eddb(0x371)]([this[_0x56eddb(0x453)][_0x56eddb(0x4fd)](_0x4ff515),this['_themeService'][_0x56eddb(0x1f1)]])[_0x56eddb(0x527)](V[_0x56eddb(0x302)](([_0x4b4fdd,_0x1976c6])=>({'skeleton':_0x447005['getSkeleton'](),'cursors':[..._0x4b4fdd[_0x56eddb(0x559)]()][_0x56eddb(0x2de)](_0x22ef8d=>({..._0x22ef8d,'color':_0x1976c6[_0x22ef8d[_0x56eddb(0x4b1)]]}))})))[_0x56eddb(0x468)](_0x242230=>{const _0x3c5ae2=_0x56eddb;if(this[_0x3c5ae2(0x64d)](),_0x242230){const {skeleton:_0x371595,cursors:_0x5437eb}=_0x242230;this['_updateCollabCursors'](_0x371595,_0x5437eb);}})),this[_0x56eddb(0x520)](),this[_0x56eddb(0x1ef)]();}[_0x2399be(0x1dc)](_0x21ac10,_0x2641ed){const _0x195bb9=_0x2399be,{scene:_0x99fd44,mainComponent:_0x2d07db}=this['_context'],_0x597c37=_0x2641ed[_0x195bb9(0x302)](_0x367b3a=>new zt(_0x367b3a,_0x99fd44,_0x21ac10,_0x2d07db));this[_0x195bb9(0x4e5)]=_0x597c37,this[_0x195bb9(0x42a)]=_0x2641ed;}[_0x2399be(0x247)](){const _0x35cadb=_0x2399be;this[_0x35cadb(0x64d)]();const {scene:_0x4914ff,mainComponent:_0x1f3fb2}=this[_0x35cadb(0x202)],_0x28c6fa=this[_0x35cadb(0x50d)][_0x35cadb(0x23c)](),_0xce7514=this[_0x35cadb(0x42a)][_0x35cadb(0x302)](_0x377f1c=>new zt(_0x377f1c,_0x4914ff,_0x28c6fa,_0x1f3fb2));this[_0x35cadb(0x4e5)]=_0xce7514;}[_0x2399be(0x64d)](){const _0x1bb33b=_0x2399be;this['_cursorShapes'][_0x1bb33b(0x306)](_0x6b27fa=>_0x6b27fa[_0x1bb33b(0x5f4)]()),this[_0x1bb33b(0x4e5)]=[];}[_0x2399be(0x1ef)](){const _0x503659=_0x2399be,_0x5ea28e=[J['SetDocZoomRatioOperation']['id']];this[_0x503659(0x228)](this['_commandService']['onCommandExecuted'](_0x16ad67=>{const _0x29f6cb=_0x503659;_0x5ea28e['includes'](_0x16ad67['id'])&&_0x16ad67[_0x29f6cb(0x552)][_0x29f6cb(0x54c)]===this[_0x29f6cb(0x202)][_0x29f6cb(0x54c)]&&this['_refreshCollabCursors']();}));}[_0x2399be(0x520)](){const _0x1af4a7=_0x2399be;this[_0x1af4a7(0x228)](a[_0x1af4a7(0x505)](this[_0x1af4a7(0x202)]['engine'][_0x1af4a7(0x408)])[_0x1af4a7(0x527)](V[_0x1af4a7(0x522)](_0x51ff3f=>_0x51ff3f['type']===Y[_0x1af4a7(0x36b)][_0x1af4a7(0x635)]),V[_0x1af4a7(0x5db)](0x10))['subscribe'](()=>{const _0x857b64=_0x1af4a7;this[_0x857b64(0x247)]();}));}};Rt=yr([je(0x1,a[_0x2399be(0x24b)](Ie['DocSkeletonManagerService'])),je(0x2,a[_0x2399be(0x24b)](ye)),je(0x3,a[_0x2399be(0x36c)]),je(0x4,a[_0x2399be(0x24b)](a[_0x2399be(0x620)]))],Rt);const Dr=0x1,Pr=1.5;class Mi extends Y[_0x2399be(0x348)]{constructor(_0x4936a4,_0x1b867f){const _0x4c0ff7=_0x2399be;super(_0x4936a4,_0x1b867f),I(this,'_color'),I(this,_0x4c0ff7(0x23b),!0x1),I(this,_0x4c0ff7(0x353)),I(this,'_name',''),I(this,'_labelPosition',_0x4c0ff7(0x594)),I(this,_0x4c0ff7(0x187)),(_0x1b867f&&this[_0x4c0ff7(0x3a3)](_0x1b867f),this['onPointerEnter$'][_0x4c0ff7(0x532)](()=>this[_0x4c0ff7(0x3a3)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4c0ff7(0x532)](()=>this[_0x4c0ff7(0x3a3)]({'hovered':!0x1})));}[_0x2399be(0x3a3)](_0x279847){const _0x4f09c6=_0x2399be;var _0x592477,_0x5b0161,_0xefffbc,_0x93d671,_0x31b86f,_0x202d3a;this['_color']=(_0x592477=_0x279847['color'])!=null?_0x592477:this[_0x4f09c6(0x53d)],this['_hovered']=(_0x5b0161=_0x279847[_0x4f09c6(0x5f7)])!=null?_0x5b0161:this[_0x4f09c6(0x23b)],this[_0x4f09c6(0x353)]=(_0xefffbc=_0x279847[_0x4f09c6(0x651)])!=null?_0xefffbc:this[_0x4f09c6(0x353)],this[_0x4f09c6(0x1a6)]=(_0x93d671=_0x279847[_0x4f09c6(0x452)])!=null?_0x93d671:this[_0x4f09c6(0x1a6)],this[_0x4f09c6(0x496)]=(_0x31b86f=_0x279847[_0x4f09c6(0x486)])!=null?_0x31b86f:this['_labelPosition'],this[_0x4f09c6(0x187)]=(_0x202d3a=_0x279847['backgroundColor'])!=null?_0x202d3a:this[_0x4f09c6(0x187)],this['transformByState']({'width':_0x279847['width'],'height':_0x279847[_0x4f09c6(0x3eb)]});}['onMouseMove'](_0x42a748){const _0x6e44b1=_0x2399be,{row:_0x466f9a,column:_0x48c705}=_0x42a748;if(_0x466f9a>=this[_0x6e44b1(0x353)][_0x6e44b1(0x2b9)]&&_0x466f9a<=this[_0x6e44b1(0x353)][_0x6e44b1(0x369)]&&_0x48c705>=this[_0x6e44b1(0x353)][_0x6e44b1(0x256)]&&_0x48c705<=this[_0x6e44b1(0x353)][_0x6e44b1(0x341)]){this[_0x6e44b1(0x3a3)]({'hovered':!0x0});return;}this[_0x6e44b1(0x3a3)]({'hovered':!0x1});}[_0x2399be(0x3d9)](_0x266aa8){return!0x1;}['_draw'](_0x101d23){const _0x57c9b3=_0x2399be;Y[_0x57c9b3(0x5ae)][_0x57c9b3(0x2c7)](_0x101d23,{'width':this[_0x57c9b3(0x323)],'height':this['height'],'strokeWidth':Pr,'stroke':this[_0x57c9b3(0x53d)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x57c9b3(0x23b)]&&(_0x101d23['save'](),_0x101d23['transform'](0x1,0x0,0x0,0x1,this[_0x57c9b3(0x323)],this[_0x57c9b3(0x496)]==='bottom'?0x0:-xe),ct['drawWith'](_0x101d23,{'text':this[_0x57c9b3(0x1a6)],'color':this[_0x57c9b3(0x53d)]}),_0x101d23[_0x57c9b3(0x4e6)]());}}var wr=Object[_0x2399be(0x28d)],Ur=Object[_0x2399be(0x398)],Mr=(_0x2d04c9,_0x5241c8,_0x1bbcac,_0x3d4f3a)=>{const _0x53ca84=_0x2399be;for(var _0x146796=_0x3d4f3a>0x1?void 0x0:_0x3d4f3a?Ur(_0x5241c8,_0x1bbcac):_0x5241c8,_0x22edfa=_0x2d04c9[_0x53ca84(0x477)]-0x1,_0x1ac355;_0x22edfa>=0x0;_0x22edfa--)(_0x1ac355=_0x2d04c9[_0x22edfa])&&(_0x146796=(_0x3d4f3a?_0x1ac355(_0x5241c8,_0x1bbcac,_0x146796):_0x1ac355(_0x146796))||_0x146796);return _0x3d4f3a&&_0x146796&&wr(_0x5241c8,_0x1bbcac,_0x146796),_0x146796;},mt=(_0x48ad50,_0x32d12e)=>(_0x127fc0,_0x453f2c)=>_0x32d12e(_0x127fc0,_0x453f2c,_0x48ad50);const Nr=0x1389;let Ot=class extends a[_0x2399be(0x551)]{constructor(_0x557b24,_0x35da0b,_0x59f978,_0xf13ec8){const _0x1e9984=_0x2399be;super(),I(this,'_cursors',new Set()),I(this,_0x1e9984(0x3d8),null),(this['_context']=_0x557b24,this['_sheetSkeletonManagerService']=_0x35da0b,this[_0x1e9984(0x453)]=_0x59f978,this[_0x1e9984(0x2c9)]=_0xf13ec8,this[_0x1e9984(0x50a)]());}[_0x2399be(0x50a)](){const _0xd43210=_0x2399be;this[_0xd43210(0x1cb)][_0xd43210(0x2f8)]['pipe'](V[_0xd43210(0x30c)](this[_0xd43210(0x33b)]),V[_0xd43210(0x252)](_0x5ba3b6=>{const _0x413a47=_0xd43210;if(_0x5ba3b6){const _0x4816e7=_0x5ba3b6[_0x413a47(0x580)];return N['combineLatest'](this[_0x413a47(0x453)]['getCollabCursors$'](this['_context'][_0x413a47(0x54c)]),this[_0x413a47(0x2c9)][_0x413a47(0x1f1)])[_0x413a47(0x527)](V[_0x413a47(0x302)](([_0x50692b,_0x10a604])=>{const _0x37cb75=_0x413a47,_0x44a62a=new Map();return _0x50692b[_0x37cb75(0x306)]((_0x1cc172,_0x2fb2fc)=>{const _0x5b2aec=_0x37cb75;if(_0x1cc172[_0x5b2aec(0x1d3)]===_0x4816e7){const _0x582a18={..._0x1cc172};_0x582a18['color']=_0x10a604[_0x1cc172[_0x5b2aec(0x4b1)]],_0x44a62a[_0x5b2aec(0x593)](_0x2fb2fc,_0x582a18);}}),{'skeleton':_0x5ba3b6,'cursors':_0x44a62a};}));}return N['of']({'skeleton':null,'cursors':new Map()});}))[_0xd43210(0x468)](({skeleton:_0x2d75a9,cursors:_0x455675})=>{const _0x362013=_0xd43210;this['_removeCollabCursors'](),_0x2d75a9&&this[_0x362013(0x1dc)](_0x2d75a9,_0x455675);}),this[_0xd43210(0x1cb)]['currentSkeleton$']['subscribe'](_0x298c01=>{const _0x23d2f2=_0xd43210;if(_0x298c01==null)return;const {skeleton:_0x4d8080}=_0x298c01,{scene:_0x5e6c8f}=this[_0x23d2f2(0x202)];_0x5e6c8f[_0x23d2f2(0x279)]['subscribeEvent'](a['debounce'](_0x165754=>{const _0xaab57a=_0x23d2f2;var _0x12cf9f,_0x41ccc9;const {offsetX:_0xd15496,offsetY:_0x489965}=_0x165754,{x:_0x39db96,y:_0x3d79c5}=_0x5e6c8f[_0xaab57a(0x653)](Y[_0xaab57a(0x313)]['FromArray']([_0xd15496,_0x489965])),{scaleX:_0x4a5dc5,scaleY:_0x342e8f}=_0x5e6c8f[_0xaab57a(0x449)](),_0x452a42=_0x5e6c8f[_0xaab57a(0x64a)](Y[_0xaab57a(0x38d)][_0xaab57a(0x600)]),_0x55fe78=_0x5e6c8f[_0xaab57a(0x577)](Y[_0xaab57a(0x313)][_0xaab57a(0x2cb)]([_0x39db96,_0x3d79c5]),_0x452a42),_0xa0ccc4=_0x4d8080[_0xaab57a(0x421)](_0xd15496,_0x489965,_0x4a5dc5,_0x342e8f,_0x55fe78);((_0x12cf9f=this[_0xaab57a(0x3d8)])==null?void 0x0:_0x12cf9f['column'])===_0xa0ccc4[_0xaab57a(0x230)]&&((_0x41ccc9=this[_0xaab57a(0x3d8)])==null?void 0x0:_0x41ccc9[_0xaab57a(0x25d)])===_0xa0ccc4[_0xaab57a(0x25d)]||this[_0xaab57a(0x42a)][_0xaab57a(0x306)](_0x4fab47=>{const _0x2e2dca=_0xaab57a;_0x4fab47[_0x2e2dca(0x5f0)](_0xa0ccc4);});},0x64));});}['_updateCollabCursors'](_0x1b6a55,_0x1c8499){const _0x4d7dcb=_0x2399be;var _0x3f77fc;const _0xb616f3=(_0x3f77fc=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3f77fc[_0x4d7dcb(0x2af)];if(!_0xb616f3)return;const _0x5070ad=this[_0x4d7dcb(0x332)]();if(!_0x5070ad)return;this[_0x4d7dcb(0x42a)][_0x4d7dcb(0x306)](_0x3d96e9=>{const _0xe3b185=_0x4d7dcb;_0x3d96e9[_0xe3b185(0x414)]();});const {scene:_0x5db0d7}=_0x5070ad,_0x53a30a=Ar(Array[_0x4d7dcb(0x45f)](_0x1c8499['values']()))[_0x4d7dcb(0x302)](_0x46f04d=>{const _0x19a8f8=_0x4d7dcb,{color:_0x14527e,range:_0x349f81,name:_0x2b9d42,selection:_0x4072bb,sheetID:_0x59af55}=_0x46f04d,{startColumn:_0x2186a0,startRow:_0x210fa2,endColumn:_0x17c2a7,endRow:_0x39f28a}=_0x349f81,_0x24e47a=Le['getCoordByCell'](_0x210fa2,_0x2186a0,_0x5db0d7,_0xb616f3),_0x3e1b95=Le[_0x19a8f8(0x4d1)](_0x39f28a,_0x17c2a7,_0x5db0d7,_0xb616f3),{columnHeaderHeightAndMarginTop:_0x1ec631}=_0xb616f3,{startX:_0x386fa5,startY:_0x2cc81c}=_0x24e47a,{endX:_0xbeccdc,endY:_0x580e0b}=_0x3e1b95,_0x5a8bcc=_0xbeccdc-_0x386fa5,_0x2a1275=_0x580e0b-_0x2cc81c,_0x3b7519={'labelPosition':_0x2cc81c-_0x1ec631>=xe?'top':'bottom','sheetID':_0x59af55,'range':_0x349f81,'color':_0x14527e,'name':_0x2b9d42,'selection':_0x4072bb,'left':_0x386fa5,'top':_0x2cc81c,'width':_0x5a8bcc,'height':_0x2a1275,'evented':!0x1,'zIndex':Nr};return new Mi(_0x2b9d42,_0x3b7519);});_0x5db0d7[_0x4d7dcb(0x1aa)](_0x53a30a,Dr),this[_0x4d7dcb(0x42a)]=new Set(_0x53a30a);}[_0x2399be(0x64d)](){const _0x2416c9=_0x2399be;var _0x5814b1;(_0x5814b1=this['_cursors'])==null||_0x5814b1[_0x2416c9(0x306)](_0x2d96a0=>_0x2d96a0[_0x2416c9(0x5f4)]());}[_0x2399be(0x332)](){const _0x37be27=_0x2399be;return Le[_0x37be27(0x4e2)](this[_0x37be27(0x202)][_0x37be27(0x1a5)],this[_0x37be27(0x202)]);}};Ot=Mr([mt(0x1,a[_0x2399be(0x24b)](Le[_0x2399be(0x3e1)])),mt(0x2,a[_0x2399be(0x24b)](ye)),mt(0x3,a[_0x2399be(0x24b)](a['ThemeService']))],Ot);function Ar(_0x45679c){const _0x154405=_0x2399be,_0x42cb6c=new Map();return _0x45679c['forEach'](_0x512a70=>{const _0x32ad7c=_0x52c2;if(_0x42cb6c[_0x32ad7c(0x2e1)](_0x512a70[_0x32ad7c(0x383)])){const _0x1d1703=_0x42cb6c['get'](_0x512a70[_0x32ad7c(0x383)]);_0x1d1703[_0x32ad7c(0x452)]+=',\x20'+_0x512a70['name'];}else _0x42cb6c[_0x32ad7c(0x593)](_0x512a70[_0x32ad7c(0x383)],_0x512a70);}),Array[_0x154405(0x45f)](_0x42cb6c['values']());}var gt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function $e(_0xdc1e11){const _0x4915ec=_0x2399be;return _0xdc1e11&&_0xdc1e11[_0x4915ec(0x5e6)]&&Object[_0x4915ec(0x5dd)]['hasOwnProperty'][_0x4915ec(0x311)](_0xdc1e11,'default')?_0xdc1e11[_0x4915ec(0x3c0)]:_0xdc1e11;}var It={'exports':{}},Ue={},Xt;function Lr(){const _0x433c25=_0x2399be;if(Xt)return Ue;Xt=0x1;var _0x228623=oe,_0x10faa6=Symbol['for'](_0x433c25(0x380)),_0x141ad7=Symbol[_0x433c25(0x4d9)](_0x433c25(0x44f)),_0x2a7e14=Object[_0x433c25(0x5dd)][_0x433c25(0x4dc)],_0x3b6ef2=_0x228623['__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED'][_0x433c25(0x458)],_0x5ac1b4={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x219690(_0x30f343,_0x1447b3,_0x2d9fbe){const _0x835133=_0x433c25;var _0x1d6d4b,_0x4298e8={},_0x12af37=null,_0x4c6bd0=null;_0x2d9fbe!==void 0x0&&(_0x12af37=''+_0x2d9fbe),_0x1447b3[_0x835133(0x18e)]!==void 0x0&&(_0x12af37=''+_0x1447b3[_0x835133(0x18e)]),_0x1447b3['ref']!==void 0x0&&(_0x4c6bd0=_0x1447b3['ref']);for(_0x1d6d4b in _0x1447b3)_0x2a7e14[_0x835133(0x311)](_0x1447b3,_0x1d6d4b)&&!_0x5ac1b4[_0x835133(0x4dc)](_0x1d6d4b)&&(_0x4298e8[_0x1d6d4b]=_0x1447b3[_0x1d6d4b]);if(_0x30f343&&_0x30f343[_0x835133(0x591)]){for(_0x1d6d4b in(_0x1447b3=_0x30f343['defaultProps'],_0x1447b3))_0x4298e8[_0x1d6d4b]===void 0x0&&(_0x4298e8[_0x1d6d4b]=_0x1447b3[_0x1d6d4b]);}return{'$$typeof':_0x10faa6,'type':_0x30f343,'key':_0x12af37,'ref':_0x4c6bd0,'props':_0x4298e8,'_owner':_0x3b6ef2[_0x835133(0x614)]};}return Ue[_0x433c25(0x60a)]=_0x141ad7,Ue[_0x433c25(0x2be)]=_0x219690,Ue[_0x433c25(0x4b5)]=_0x219690,Ue;}var Jt;function xr(){const _0x519bcb=_0x2399be;return Jt||(Jt=0x1,It['exports']=Lr()),It[_0x519bcb(0x22a)];}var me=xr(),Q=function(){const _0x3e2cba=_0x2399be;return Q=Object[_0x3e2cba(0x4a9)]||function(_0x4a1e1c){const _0x29a79f=_0x3e2cba;for(var _0x475a86,_0x32627e=0x1,_0xce8c1f=arguments[_0x29a79f(0x477)];_0x32627e<_0xce8c1f;_0x32627e++){_0x475a86=arguments[_0x32627e];for(var _0x3c02cc in _0x475a86)Object[_0x29a79f(0x5dd)][_0x29a79f(0x4dc)]['call'](_0x475a86,_0x3c02cc)&&(_0x4a1e1c[_0x3c02cc]=_0x475a86[_0x3c02cc]);}return _0x4a1e1c;},Q['apply'](this,arguments);},$r=function(_0xeb2906,_0x22fbcd){const _0x212b2d=_0x2399be;var _0x548cba={};for(var _0x46e7d6 in _0xeb2906)Object['prototype'][_0x212b2d(0x4dc)]['call'](_0xeb2906,_0x46e7d6)&&_0x22fbcd[_0x212b2d(0x2f6)](_0x46e7d6)<0x0&&(_0x548cba[_0x46e7d6]=_0xeb2906[_0x46e7d6]);if(_0xeb2906!=null&&typeof Object[_0x212b2d(0x37a)]=='function'){for(var _0x3a1b58=0x0,_0x46e7d6=Object['getOwnPropertySymbols'](_0xeb2906);_0x3a1b58<_0x46e7d6[_0x212b2d(0x477)];_0x3a1b58++)_0x22fbcd[_0x212b2d(0x2f6)](_0x46e7d6[_0x3a1b58])<0x0&&Object[_0x212b2d(0x5dd)][_0x212b2d(0x616)]['call'](_0xeb2906,_0x46e7d6[_0x3a1b58])&&(_0x548cba[_0x46e7d6[_0x3a1b58]]=_0xeb2906[_0x46e7d6[_0x3a1b58]]);}return _0x548cba;},At=oe[_0x2399be(0x42d)](function(_0x54d70b,_0x3c9e96){const _0x3b146d=_0x2399be;var _0x3d6b20=_0x54d70b[_0x3b146d(0x270)],_0x526286=_0x54d70b['id'],_0x360d92=_0x54d70b[_0x3b146d(0x2ec)],_0x2116c1=_0x54d70b[_0x3b146d(0x260)],_0x87a20=$r(_0x54d70b,[_0x3b146d(0x270),'id','className','extend']),_0xacf96f=_0x3b146d(0x390)[_0x3b146d(0x381)](_0x526286,'\x20')['concat'](_0x360d92||'')[_0x3b146d(0x625)](),_0x2cf584=oe[_0x3b146d(0x3d1)]('_'[_0x3b146d(0x381)](Br()));return Ni(_0x3d6b20,''[_0x3b146d(0x381)](_0x526286),{'defIds':_0x3d6b20[_0x3b146d(0x36a)],'idSuffix':_0x2cf584['current']},Q({'ref':_0x3c9e96,'className':_0xacf96f},_0x87a20),_0x2116c1);});function Ni(_0x150863,_0x102fe8,_0x45dee9,_0x1d995d,_0x35386d){const _0x478eb5=_0x2399be;return oe[_0x478eb5(0x506)](_0x150863[_0x478eb5(0x44e)],Q(Q({'key':_0x102fe8},jr(_0x150863,_0x45dee9,_0x35386d)),_0x1d995d),(Hr(_0x150863,_0x45dee9)[_0x478eb5(0x447)]||[])[_0x478eb5(0x302)](function(_0x1283ae,_0x42ba00){const _0x1420e8=_0x478eb5;return Ni(_0x1283ae,''[_0x1420e8(0x381)](_0x102fe8,'-')[_0x1420e8(0x381)](_0x150863[_0x1420e8(0x44e)],'-')[_0x1420e8(0x381)](_0x42ba00),_0x45dee9,void 0x0,_0x35386d);}));}function jr(_0xbbb4d7,_0x2dc519,_0x1fff2b){const _0x451641=_0x2399be;var _0xb89df=Q({},_0xbbb4d7[_0x451641(0x3f3)]);_0x1fff2b!=null&&_0x1fff2b['colorChannel1']&&_0xb89df[_0x451641(0x26c)]===_0x451641(0x1f5)&&(_0xb89df[_0x451641(0x26c)]=_0x1fff2b['colorChannel1']);var _0x503170=_0x2dc519[_0x451641(0x36a)];return!_0x503170||_0x503170['length']===0x0||(_0xbbb4d7[_0x451641(0x44e)]===_0x451641(0x2f9)&&_0xb89df[_0x451641(0x3e0)]&&(_0xb89df[_0x451641(0x3e0)]=_0xb89df[_0x451641(0x3e0)]+_0x2dc519[_0x451641(0x4b9)]),Object['entries'](_0xb89df)[_0x451641(0x306)](function(_0x53c697){const _0x43dc0c=_0x451641;var _0x1cece4=_0x53c697[0x0],_0x1e5f66=_0x53c697[0x1];typeof _0x1e5f66==_0x43dc0c(0x44d)&&(_0xb89df[_0x1cece4]=_0x1e5f66[_0x43dc0c(0x3d7)](/url\(#(.*)\)/,_0x43dc0c(0x48e)[_0x43dc0c(0x381)](_0x2dc519['idSuffix'],')')));})),_0xb89df;}function Hr(_0x1571c2,_0x58acbc){const _0x159cfe=_0x2399be;var _0x4d4077,_0x55b25b=_0x58acbc['defIds'];return!_0x55b25b||_0x55b25b[_0x159cfe(0x477)]===0x0?_0x1571c2:_0x1571c2[_0x159cfe(0x44e)]==='defs'&&(!((_0x4d4077=_0x1571c2[_0x159cfe(0x447)])===null||_0x4d4077===void 0x0)&&_0x4d4077[_0x159cfe(0x477)])?Q(Q({},_0x1571c2),{'children':_0x1571c2[_0x159cfe(0x447)][_0x159cfe(0x302)](function(_0x433de){const _0x163744=_0x159cfe;return typeof _0x433de[_0x163744(0x3f3)]['id']=='string'&&_0x55b25b&&_0x55b25b['indexOf'](_0x433de[_0x163744(0x3f3)]['id'])>-0x1?Q(Q({},_0x433de),{'attrs':Q(Q({},_0x433de['attrs']),{'id':_0x433de[_0x163744(0x3f3)]['id']+_0x58acbc['idSuffix']})}):_0x433de;})}):_0x1571c2;}function Br(){const _0x319471=_0x2399be;return Math[_0x319471(0x1c4)]()[_0x319471(0x24a)](0x24)['substring'](0x2,0x8);}At['displayName']=_0x2399be(0x444);var kr={'tag':_0x2399be(0x197),'attrs':{'fill':_0x2399be(0x1c2),'viewBox':_0x2399be(0x4ec),'width':_0x2399be(0x471),'height':_0x2399be(0x471)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2399be(0x190),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2399be(0x220),'attrs':{},'children':[{'tag':_0x2399be(0x1d8),'attrs':{'id':_0x2399be(0x45c)},'children':[{'tag':'path','attrs':{'fill':_0x2399be(0x61b),'d':_0x2399be(0x3f5)}}]}]}],'defIds':[_0x2399be(0x45c)]},Ai=oe[_0x2399be(0x42d)](function(_0x3e9670,_0x379bd1){const _0x4bfeeb=_0x2399be;return oe[_0x4bfeeb(0x506)](At,Object[_0x4bfeeb(0x4a9)]({},_0x3e9670,{'id':_0x4bfeeb(0x1dd),'ref':_0x379bd1,'icon':kr}));});Ai['displayName']='OffLineSingle';var Wr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2399be(0x471),'height':_0x2399be(0x471)},'children':[{'tag':'g','attrs':{'clipPath':_0x2399be(0x1c5)},'children':[{'tag':_0x2399be(0x388),'attrs':{'stroke':_0x2399be(0x36f),'d':_0x2399be(0x5a2),'strokeLinecap':_0x2399be(0x190),'strokeLinejoin':_0x2399be(0x190),'strokeWidth':1.2}}]},{'tag':_0x2399be(0x220),'attrs':{},'children':[{'tag':_0x2399be(0x1d8),'attrs':{'id':_0x2399be(0x1c6)},'children':[{'tag':_0x2399be(0x388),'attrs':{'fill':_0x2399be(0x61b),'d':_0x2399be(0x3f5),'transform':_0x2399be(0x208)}}]}]}],'defIds':[_0x2399be(0x1c6)]},Li=oe['forwardRef'](function(_0x1762af,_0x5a7bdb){const _0x3924f5=_0x2399be;return oe[_0x3924f5(0x506)](At,Object[_0x3924f5(0x4a9)]({},_0x1762af,{'id':_0x3924f5(0x649),'ref':_0x5a7bdb,'icon':Wr}));});Li[_0x2399be(0x191)]='OnLineSingle';function xi(_0x16c9e1){const _0x2e2708=_0x2399be;var _0x53c48a,_0x158f44,_0x332c29='';if(typeof _0x16c9e1==_0x2e2708(0x44d)||typeof _0x16c9e1==_0x2e2708(0x541))_0x332c29+=_0x16c9e1;else{if(typeof _0x16c9e1==_0x2e2708(0x29a)){if(Array[_0x2e2708(0x1ce)](_0x16c9e1)){var _0x1346a0=_0x16c9e1[_0x2e2708(0x477)];for(_0x53c48a=0x0;_0x53c48a<_0x1346a0;_0x53c48a++)_0x16c9e1[_0x53c48a]&&(_0x158f44=xi(_0x16c9e1[_0x53c48a]))&&(_0x332c29&&(_0x332c29+='\x20'),_0x332c29+=_0x158f44);}else{for(_0x158f44 in _0x16c9e1)_0x16c9e1[_0x158f44]&&(_0x332c29&&(_0x332c29+='\x20'),_0x332c29+=_0x158f44);}}}return _0x332c29;}function Fr(){const _0x2e3dc6=_0x2399be;for(var _0x122dd5,_0x9b129,_0x1fa6b5=0x0,_0x18df0b='',_0x2404fc=arguments[_0x2e3dc6(0x477)];_0x1fa6b5<_0x2404fc;_0x1fa6b5++)(_0x122dd5=arguments[_0x1fa6b5])&&(_0x9b129=xi(_0x122dd5))&&(_0x18df0b&&(_0x18df0b+='\x20'),_0x18df0b+=_0x9b129);return _0x18df0b;}const Vr='univer-online-status-icon',Gr=_0x2399be(0x4be),Yr=_0x2399be(0x285),qr=_0x2399be(0x59c),Kr=_0x2399be(0x3be),Me={'onlineStatusIcon':Vr,'onlineStatusTitle':Gr,'onlineStatus':Yr,'online':qr,'offline':Kr};function zr(_0x282898){const _0x45cbf2=_0x2399be;switch(_0x282898){case K['OFFLINE']:return _0x45cbf2(0x237);case K[_0x45cbf2(0x643)]:return _0x45cbf2(0x1e6);case K[_0x45cbf2(0x2ab)]:return _0x45cbf2(0x4fb);case K[_0x45cbf2(0x5fa)]:return'collabStatus.notCollab';case K[_0x45cbf2(0x542)]:case K['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case K[_0x45cbf2(0x4ea)]:case K['PENDING']:return'collabStatus.synced';}}function $i(_0x334dd9){const _0x55c920=_0x2399be,{status$:_0x1188fb}=_0x334dd9,_0x4540fc=ee[_0x55c920(0x199)](_0x1188fb,K[_0x55c920(0x5fa)]),_0x23d3d5=a[_0x55c920(0x231)](a[_0x55c920(0x3b6)]),_0x53cbf3=a[_0x55c920(0x231)](exports[_0x55c920(0x225)]),_0x3e8937=_0x4540fc!==K[_0x55c920(0x3ee)],_0x26d9e6=_0x23d3d5['t'](zr(_0x4540fc)),_0x171804=Fr(Me[_0x55c920(0x589)],{[Me[_0x55c920(0x40d)]]:_0x3e8937,[Me[_0x55c920(0x465)]]:!_0x3e8937}),_0x365a65=_0x3e8937?me['jsx'](Li,{}):me[_0x55c920(0x2be)](Ai,{}),_0x21231d=oe[_0x55c920(0x41f)](()=>{const _0x3e9105=_0x55c920;_0x3e8937||_0x53cbf3[_0x3e9105(0x63c)]();},[_0x3e8937,_0x53cbf3]);function _0x5d7e27(){const _0x2027c8=_0x55c920;return me[_0x2027c8(0x4b5)](_0x2027c8(0x239),{'className':_0x171804,'onClick':_0x21231d,'children':[me['jsx']('div',{'className':Me[_0x2027c8(0x4ce)],'children':_0x365a65}),me[_0x2027c8(0x2be)](_0x2027c8(0x239),{'className':Me[_0x2027c8(0x372)],'children':_0x26d9e6})]});}return _0x3e8937?_0x5d7e27():me[_0x55c920(0x2be)](Ce[_0x55c920(0x2dc)],{'title':_0x23d3d5['t'](_0x55c920(0x4d5)),'children':_0x5d7e27()});}var Xr=Object['defineProperty'],Jr=Object[_0x2399be(0x398)],Zr=(_0x38d51e,_0x33543b,_0x102424,_0x2fbdb5)=>{for(var _0x129e3d=_0x2fbdb5>0x1?void 0x0:_0x2fbdb5?Jr(_0x33543b,_0x102424):_0x33543b,_0x5bece7=_0x38d51e['length']-0x1,_0x2756d6;_0x5bece7>=0x0;_0x5bece7--)(_0x2756d6=_0x38d51e[_0x5bece7])&&(_0x129e3d=(_0x2fbdb5?_0x2756d6(_0x33543b,_0x102424,_0x129e3d):_0x2756d6(_0x129e3d))||_0x129e3d);return _0x2fbdb5&&_0x129e3d&&Xr(_0x33543b,_0x102424,_0x129e3d),_0x129e3d;},He=(_0x1ebbf6,_0x1935e4)=>(_0x644d3d,_0x135062)=>_0x1935e4(_0x644d3d,_0x135062,_0x1ebbf6);exports[_0x2399be(0x5df)]=class extends a[_0x2399be(0x597)]{constructor(_0x22f2e6,_0x20bb3e,_0x21ddfc,_0x48032b){const _0xba138e=_0x2399be;super(),I(this,'_status$',new N['BehaviorSubject'](K['NOT_COLLAB'])),(this[_0xba138e(0x435)]=_0x22f2e6,this[_0xba138e(0x3ca)]=_0x20bb3e,this[_0xba138e(0x39d)]=_0x21ddfc,this[_0xba138e(0x5e4)]=_0x48032b,this[_0xba138e(0x3b3)](),this[_0xba138e(0x25c)]());}[_0x2399be(0x25c)](){const _0x30ff8c=_0x2399be;this[_0x30ff8c(0x228)](this[_0x30ff8c(0x435)][_0x30ff8c(0x1fa)]['pipe'](N[_0x30ff8c(0x252)](()=>{const _0x634a25=_0x30ff8c,_0x4075d3=this[_0x634a25(0x435)][_0x634a25(0x19d)]();return _0x4075d3?this[_0x634a25(0x5e4)]['getCollabEntity$'](_0x4075d3[_0x634a25(0x27c)]()):N['of'](null);}),N[_0x30ff8c(0x252)](_0x41d25a=>_0x41d25a?_0x41d25a[_0x30ff8c(0x342)]:N['of'](K[_0x30ff8c(0x5fa)])))['subscribe'](_0x41217e=>{const _0x35063e=_0x30ff8c;this[_0x35063e(0x1d5)][_0x35063e(0x4db)](_0x41217e);}));}['_initStatusComponent'](){const _0x3f94ac=_0x2399be;this[_0x3f94ac(0x228)](this['_uiPartsService'][_0x3f94ac(0x5ee)](ee[_0x3f94ac(0x58c)]['HEADER_MENU'],()=>a[_0x3f94ac(0x3d6)](Qr({'status$':this[_0x3f94ac(0x1d5)][_0x3f94ac(0x295)]()}),this[_0x3f94ac(0x39d)])));}},exports[_0x2399be(0x5df)]=Zr([He(0x0,a[_0x2399be(0x53e)]),He(0x1,ee[_0x2399be(0x1e1)]),He(0x2,a[_0x2399be(0x24b)](a[_0x2399be(0x3b4)])),He(0x3,a[_0x2399be(0x24b)](exports[_0x2399be(0x30e)]))],exports[_0x2399be(0x5df)]);function Qr(_0x43f0c1){const {status$:_0x13af2a}=_0x43f0c1;return function(){return me['jsx']($i,{'status$':_0x13af2a});};}const Lt=a[_0x2399be(0x443)](_0x2399be(0x4e3));var es=Object[_0x2399be(0x28d)],ts=Object[_0x2399be(0x398)],is=(_0x1672b8,_0x5683cb,_0x454977,_0xf5aafe)=>{for(var _0x2b9369=_0xf5aafe>0x1?void 0x0:_0xf5aafe?ts(_0x5683cb,_0x454977):_0x5683cb,_0x21fda6=_0x1672b8['length']-0x1,_0x302341;_0x21fda6>=0x0;_0x21fda6--)(_0x302341=_0x1672b8[_0x21fda6])&&(_0x2b9369=(_0xf5aafe?_0x302341(_0x5683cb,_0x454977,_0x2b9369):_0x302341(_0x2b9369))||_0x2b9369);return _0xf5aafe&&_0x2b9369&&es(_0x5683cb,_0x454977,_0x2b9369),_0x2b9369;},Re=(_0x5dd72e,_0x14f3ce)=>(_0x10a6c7,_0x2e5acc)=>_0x14f3ce(_0x10a6c7,_0x2e5acc,_0x5dd72e);exports[_0x2399be(0x61a)]=class extends a[_0x2399be(0x551)]{constructor(_0x1a6926,_0x20ecf2,_0x3d24bb,_0x23a3eb,_0x4667f0,_0x47ba4b){const _0x46d011=_0x2399be;super(),this[_0x46d011(0x58d)]=_0x1a6926,this[_0x46d011(0x364)]=_0x20ecf2,this[_0x46d011(0x4a8)]=_0x3d24bb,this[_0x46d011(0x3da)]=_0x23a3eb,this[_0x46d011(0x340)]=_0x4667f0,_0x47ba4b?_0x47ba4b==null||_0x47ba4b[_0x46d011(0x427)]()['then'](()=>this[_0x46d011(0x50a)]()):(this[_0x46d011(0x364)][_0x46d011(0x425)]('[DataLoaderController]',_0x46d011(0x56d)),this[_0x46d011(0x50a)]());}async['_init'](){const _0x3966ac=_0x2399be,_0xca6ca8=this[_0x3966ac(0x58d)][_0x3966ac(0x558)](_0x3966ac(0x1a5)),_0x1c7aee=this[_0x3966ac(0x58d)][_0x3966ac(0x558)]('type');if(!_0xca6ca8||!_0x1c7aee){this[_0x3966ac(0x364)][_0x3966ac(0x425)](_0x3966ac(0x1a4),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x1c7aee)){case ie[_0x3966ac(0x52f)]:{const _0x4e19fe=await this[_0x3966ac(0x489)](_0xca6ca8);this[_0x3966ac(0x3d5)](_0x4e19fe);break;}case ie[_0x3966ac(0x4f4)]:{await this['_loadDoc'](_0xca6ca8);break;}default:{this[_0x3966ac(0x364)][_0x3966ac(0x3b0)](_0x3966ac(0x1a4),_0x3966ac(0x2ee));break;}}}async[_0x2399be(0x3d5)](_0x3a6a61){const _0x2eb798=_0x2399be;await this[_0x2eb798(0x31a)](_0x3a6a61),_0x3a6a61['activeSheet$'][_0x2eb798(0x527)](N[_0x2eb798(0x30c)](this[_0x2eb798(0x33b)]))[_0x2eb798(0x468)](_0x32944f=>{const _0x23f410=_0x2eb798;_0x32944f&&this[_0x23f410(0x368)](_0x32944f);}),this['_urlService'][_0x2eb798(0x18b)][_0x2eb798(0x527)](N[_0x2eb798(0x30c)](this[_0x2eb798(0x33b)]))['subscribe'](()=>this[_0x2eb798(0x31a)](_0x3a6a61));}['_updateURLWithCurrentState'](_0x4ad303,_0x28abfb=!0x1){const _0x546b9a=_0x2399be,_0x2a35ef=this[_0x546b9a(0x58d)]['getParam'](_0x546b9a(0x539));_0x4ad303['getSheetId']()!==_0x2a35ef&&this[_0x546b9a(0x58d)][_0x546b9a(0x27a)](_0x546b9a(0x539),_0x4ad303[_0x546b9a(0x4f0)](),_0x28abfb);}async[_0x2399be(0x31a)](_0x9bd66b){const _0x70c75b=_0x2399be;var _0x5b1413;const _0x185535=this[_0x70c75b(0x58d)][_0x70c75b(0x558)](_0x70c75b(0x539));if(!_0x185535||!_0x9bd66b['getSheetBySheetId'](_0x185535)){const _0x20cf36=_0x9bd66b[_0x70c75b(0x469)]()[0x0],_0x239551=_0x9bd66b[_0x70c75b(0x42f)](_0x20cf36);if(!_0x239551)return;this[_0x70c75b(0x368)](_0x239551,!0x0),await this[_0x70c75b(0x4a8)][_0x70c75b(0x277)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x9bd66b['getUnitId'](),'subUnitId':_0x20cf36});return;}((_0x5b1413=_0x9bd66b[_0x70c75b(0x273)]())==null?void 0x0:_0x5b1413[_0x70c75b(0x4f0)]())!==_0x185535&&await this[_0x70c75b(0x4a8)][_0x70c75b(0x277)](k[_0x70c75b(0x2fb)]['id'],{'unitId':_0x9bd66b[_0x70c75b(0x27c)](),'subUnitId':_0x185535});}async[_0x2399be(0x489)](_0x10c5bb){const _0xd7c2ee=_0x2399be;let _0x1d4076=0x0;const _0x41711c=await this[_0xd7c2ee(0x3da)][_0xd7c2ee(0x3c8)](_0x10c5bb);return _0x41711c&&(_0x41711c[_0xd7c2ee(0x3a1)]||_0x41711c['mutations']['length']!==0x0)&&(_0x1d4076=_0x41711c[_0xd7c2ee(0x5d6)]),_0x1d4076===0x0&&this[_0xd7c2ee(0x364)]['debug']('[DataLoaderController]',_0xd7c2ee(0x4c3)),this['_snapshotService'][_0xd7c2ee(0x1c8)](_0x10c5bb,_0x1d4076);}async[_0x2399be(0x3e5)](_0x4f8ecc){const _0x5c4582=_0x2399be;let _0x5a38fe=0x0;const _0x44cce1=await this[_0x5c4582(0x3da)][_0x5c4582(0x3c8)](_0x4f8ecc);return _0x44cce1&&(_0x44cce1[_0x5c4582(0x3a1)]||_0x44cce1[_0x5c4582(0x46b)]['length']!==0x0)&&(_0x5a38fe=_0x44cce1[_0x5c4582(0x5d6)]),_0x5a38fe===0x0&&this[_0x5c4582(0x364)][_0x5c4582(0x425)](_0x5c4582(0x1a4),_0x5c4582(0x4c3)),this['_snapshotService'][_0x5c4582(0x5a1)](_0x4f8ecc,_0x5a38fe);}},exports[_0x2399be(0x61a)]=is([Re(0x0,Lt),Re(0x1,a[_0x2399be(0x373)]),Re(0x2,a[_0x2399be(0x36c)]),Re(0x3,a[_0x2399be(0x24b)](exports[_0x2399be(0x596)])),Re(0x4,a['Inject'](m['SnapshotService'])),Re(0x5,a['Optional'](Yi[_0x2399be(0x554)]))],exports[_0x2399be(0x61a)]);var ns=Object[_0x2399be(0x28d)],rs=Object[_0x2399be(0x398)],ss=(_0x44e921,_0x37def3,_0x35e00b,_0x52ef8e)=>{for(var _0x246d68=_0x52ef8e>0x1?void 0x0:_0x52ef8e?rs(_0x37def3,_0x35e00b):_0x37def3,_0x573987=_0x44e921['length']-0x1,_0x2e35aa;_0x573987>=0x0;_0x573987--)(_0x2e35aa=_0x44e921[_0x573987])&&(_0x246d68=(_0x52ef8e?_0x2e35aa(_0x37def3,_0x35e00b,_0x246d68):_0x2e35aa(_0x246d68))||_0x246d68);return _0x52ef8e&&_0x246d68&&ns(_0x37def3,_0x35e00b,_0x246d68),_0x246d68;},Zt=(_0x53439d,_0x328ea4)=>(_0x5914c1,_0xf05393)=>_0x328ea4(_0x5914c1,_0xf05393,_0x53439d);const os=_0x2399be(0x4b7),as=_0x2399be(0x2ae);let nt=class extends a[_0x2399be(0x597)]{constructor(_0x1eec11,_0x594309){const _0x526559=_0x2399be;super(),this[_0x526559(0x435)]=_0x1eec11,this[_0x526559(0x2a2)]=_0x594309,this['_init']();}[_0x2399be(0x50a)](){const _0x4fae70=_0x2399be;this[_0x4fae70(0x228)](this[_0x4fae70(0x435)]['focused$'][_0x4fae70(0x468)](()=>{const _0x51b4df=_0x4fae70;var _0x50a79c;const _0x2f1a24=this[_0x51b4df(0x435)][_0x51b4df(0x19d)]();let _0x3334dc=(_0x50a79c=this[_0x51b4df(0x2a2)][_0x51b4df(0x2c1)](os))!=null?_0x50a79c:as;_0x2f1a24 instanceof a['Workbook']&&(_0x3334dc=_0x2f1a24[_0x51b4df(0x452)]),document['title']=_0x3334dc;}));}};nt=ss([Zt(0x0,a['IUniverInstanceService']),Zt(0x1,a[_0x2399be(0x5b1)])],nt);var cs=Object[_0x2399be(0x28d)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x226e1d,_0x35600e,_0x587cf5,_0xa95dcd)=>{const _0x499800=_0x2399be;for(var _0x200c44=_0xa95dcd>0x1?void 0x0:_0xa95dcd?ls(_0x35600e,_0x587cf5):_0x35600e,_0x32c730=_0x226e1d[_0x499800(0x477)]-0x1,_0x3b20ea;_0x32c730>=0x0;_0x32c730--)(_0x3b20ea=_0x226e1d[_0x32c730])&&(_0x200c44=(_0xa95dcd?_0x3b20ea(_0x35600e,_0x587cf5,_0x200c44):_0x3b20ea(_0x200c44))||_0x200c44);return _0xa95dcd&&_0x200c44&&cs(_0x35600e,_0x587cf5,_0x200c44),_0x200c44;},Ct=(_0x350522,_0x133e93)=>(_0x3dd1b7,_0x51a3e3)=>_0x133e93(_0x3dd1b7,_0x51a3e3,_0x350522);let rt=class{constructor(_0x49f78d,_0x3dd429,_0x28975b){const _0x3bb61f=_0x2399be;this[_0x3bb61f(0x2a2)]=_0x49f78d,this[_0x3bb61f(0x46e)]=_0x3dd429,this[_0x3bb61f(0x3ba)]=_0x28975b,this[_0x3bb61f(0x324)]();}[_0x2399be(0x324)](){const _0x1fa74f=_0x2399be;this[_0x1fa74f(0x46e)][_0x1fa74f(0x43b)]({'priority':0x1,'interceptor':(_0x45166b,_0x3a566e)=>_0x3a566e(_0x45166b)[_0x1fa74f(0x527)](N[_0x1fa74f(0x5fb)](async _0x37b650=>{const _0x31e82e=_0x1fa74f,_0x41292e=_0x37b650;if(_0x41292e[_0x31e82e(0x365)]===0x191&&window[_0x31e82e(0x1d6)](this[_0x31e82e(0x3ba)]['t'](_0x31e82e(0x243)))){const _0x5df3e2=window['encodeURIComponent'](window[_0x31e82e(0x29e)][_0x31e82e(0x2a0)]);window[_0x31e82e(0x29e)][_0x31e82e(0x2a0)]=this[_0x31e82e(0x429)]()+_0x31e82e(0x557)+_0x5df3e2;}return _0x41292e;}))});}[_0x2399be(0x429)](){const _0x31e992=_0x2399be;var _0x5c769f,_0x1bef28;const _0x50522d=this[_0x31e992(0x2a2)]['getConfig'](Ei),_0x24f4d6=this[_0x31e992(0x2a2)][_0x31e992(0x2c1)](Z);return(_0x1bef28=(_0x5c769f=_0x24f4d6==null?void 0x0:_0x24f4d6['loginUrlKey'])!=null?_0x5c769f:_0x50522d)!=null?_0x1bef28:rn;}};rt=hs([Ct(0x0,a[_0x2399be(0x5b1)]),Ct(0x1,a['Inject'](z['HTTPService'])),Ct(0x2,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)]))],rt);var _s=Object[_0x2399be(0x28d)],us=Object[_0x2399be(0x398)],ds=(_0x49a6fa,_0x3203f0,_0xb25126,_0x397649)=>{const _0x5cd04e=_0x2399be;for(var _0x4c4dba=_0x397649>0x1?void 0x0:_0x397649?us(_0x3203f0,_0xb25126):_0x3203f0,_0x46cfa4=_0x49a6fa[_0x5cd04e(0x477)]-0x1,_0x36193a;_0x46cfa4>=0x0;_0x46cfa4--)(_0x36193a=_0x49a6fa[_0x46cfa4])&&(_0x4c4dba=(_0x397649?_0x36193a(_0x3203f0,_0xb25126,_0x4c4dba):_0x36193a(_0x4c4dba))||_0x4c4dba);return _0x397649&&_0x4c4dba&&_s(_0x3203f0,_0xb25126,_0x4c4dba),_0x4c4dba;},Qt=(_0x5882f1,_0x344dcc)=>(_0x3f1f72,_0x50c257)=>_0x344dcc(_0x3f1f72,_0x50c257,_0x5882f1);const xt=_0x2399be(0x2e7),fs=_0x2399be(0x41d);exports['AuthzIoHttpService']=class extends a[_0x2399be(0x597)]{constructor(_0x179ff9,_0x59b079){const _0x2ce3ba=_0x2399be;super(),this[_0x2ce3ba(0x407)]=_0x179ff9,this[_0x2ce3ba(0x2a2)]=_0x59b079,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x2cd232=_0x2399be,_0x137b8d=this;this[_0x2cd232(0x228)](this[_0x2cd232(0x407)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':z['MergeInterceptorFactory']({'isMatch'(_0x2c64e0){const _0x495bfb=_0x2cd232;var _0x5505da;if(_0x2c64e0[_0x495bfb(0x1d2)]===_0x495bfb(0x454)&&((_0x5505da=_0x2c64e0['requestParams'])!=null&&_0x5505da['body'])){const {objectID:_0x25caa6,objectType:_0x2c6e14}=_0x2c64e0[_0x495bfb(0x1e3)][_0x495bfb(0x53c)]||{};if(!_0x25caa6||_0x2c6e14===void 0x0)return!0x1;const _0x128d54=_0x137b8d['_getAPIPrefixPath']()+'/'+_0x2c6e14+'/object/'+_0x25caa6+_0x495bfb(0x287);if(_0x2c64e0[_0x495bfb(0x43c)]===_0x128d54)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5a42c4){const _0x52dd54=_0x2cd232;var _0x29df7a;return(_0x29df7a=_0x5a42c4[_0x52dd54(0x1e3)])==null?void 0x0:_0x29df7a['body'];},'mergeParamsToRequest'(_0x47b779,_0x414fbb){const _0x242658=_0x2cd232,_0x431888=_0x137b8d['_getAPIPrefixPath']()+_0x242658(0x253),_0x4e0b97=_0x47b779['reduce']((_0x582e98,_0x1af988)=>{const {unitID:_0x95cda6,objectID:_0x5da28f,objectType:_0x4a3975,actions:_0x457bfa}=_0x1af988;return _0x582e98[_0x95cda6]||(_0x582e98[_0x95cda6]={}),_0x582e98[_0x95cda6][_0x5da28f]||(_0x582e98[_0x95cda6][_0x5da28f]={'objectID':_0x5da28f,'objectType':_0x4a3975,'actions':[]}),_0x582e98[_0x95cda6][_0x5da28f]['actions']['push'](..._0x457bfa),_0x582e98;},{}),_0x238398=[];for(const _0x62a121 in _0x4e0b97)for(const _0x5c7ac2 in _0x4e0b97[_0x62a121]){const {actions:_0x20ee1c,objectType:_0x4f624f}=_0x4e0b97[_0x62a121][_0x5c7ac2],_0x1b24e2=[...new Set(_0x20ee1c)];_0x238398[_0x242658(0x644)]({'unitID':_0x62a121,'objectID':_0x5c7ac2,'objectType':_0x4f624f,'actions':_0x1b24e2});}return new z['HTTPRequest']('POST',_0x431888,{'headers':_0x414fbb[_0x242658(0x32c)],'withCredentials':_0x414fbb['withCredentials'],'responseType':_0x414fbb['responseType'],'body':{'requests':_0x238398}});}},{'distributeResult'(_0x16abb3,_0x104788){const {objectActions:_0x2534af}=_0x16abb3;return _0x104788['map'](_0x49471f=>{const _0x1786b7=_0x52c2,{unitID:_0x239cc5,objectID:_0x2b684f,actions:_0x361869}=_0x49471f,_0x40ecee=_0x2534af[_0x1786b7(0x3fc)](_0x15c38f=>_0x15c38f['unitID']===_0x239cc5&&_0x15c38f[_0x1786b7(0x633)]===_0x2b684f),_0x3bc0a5=_0x361869[_0x1786b7(0x302)](_0x30c866=>_0x40ecee==null?void 0x0:_0x40ecee[_0x1786b7(0x20c)][_0x1786b7(0x3fc)](_0x41d420=>_0x41d420[_0x1786b7(0x2df)]===_0x30c866))[_0x1786b7(0x522)](_0x338581=>!!_0x338581);return{'config':_0x49471f,'result':{'actions':_0x3bc0a5,'error':_0x16abb3[_0x1786b7(0x3b0)]}};});}})}));}[_0x2399be(0x266)](){const _0x34e54f=_0x2399be;var _0x12cc2d,_0x57432c;const _0x26fc4f=this['_configService'][_0x34e54f(0x2c1)](xt),_0x20ea23=this[_0x34e54f(0x2a2)][_0x34e54f(0x2c1)](Z);return(_0x57432c=(_0x12cc2d=_0x20ea23==null?void 0x0:_0x20ea23['authzUrl'])!=null?_0x12cc2d:_0x26fc4f)!=null?_0x57432c:fs;}async[_0x2399be(0x49a)](_0x3455d6){const _0x295279=_0x2399be,_0x5efeb6=this[_0x295279(0x266)]()+'/'+_0x3455d6[_0x295279(0x362)]+_0x295279(0x509);return(await this[_0x295279(0x407)][_0x295279(0x298)](_0x5efeb6,{'body':_0x3455d6}))['body'][_0x295279(0x633)]||'';}async['list'](_0x280a45){const _0x18392a=_0x2399be,_0x872cbc=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x18392a(0x407)][_0x18392a(0x298)](_0x872cbc,{'body':_0x280a45}))[_0x18392a(0x53c)][_0x18392a(0x31d)];}async['update'](_0x279144){const _0x412ae9=_0x2399be,_0x1c554d=this[_0x412ae9(0x266)]()+'/'+_0x279144[_0x412ae9(0x362)]+_0x412ae9(0x3aa)+_0x279144[_0x412ae9(0x633)];await this['_HTTPService'][_0x412ae9(0x21c)](_0x1c554d,{'body':_0x279144});}async[_0x2399be(0x5bb)](_0x452a31){const _0x3cef82=_0x2399be,_0x1f06e7=this[_0x3cef82(0x266)]()+'/'+_0x452a31[_0x3cef82(0x362)]+_0x3cef82(0x3aa)+_0x452a31[_0x3cef82(0x633)]+_0x3cef82(0x287);return(await this[_0x3cef82(0x407)][_0x3cef82(0x298)](_0x1f06e7,{'body':_0x452a31}))[_0x3cef82(0x53c)][_0x3cef82(0x20c)];}async[_0x2399be(0x281)](_0x273335){const _0x13852b=_0x2399be,_0x1ae76e=this[_0x13852b(0x266)]()+_0x13852b(0x253);return(await this[_0x13852b(0x407)][_0x13852b(0x298)](_0x1ae76e,{'body':{'requests':_0x273335}}))['body'][_0x13852b(0x3dd)];}async[_0x2399be(0x28c)](_0x44f29f){const _0x6a6e9d=_0x2399be,_0x2b620c=this[_0x6a6e9d(0x266)]()+'/'+_0x44f29f[_0x6a6e9d(0x362)]+_0x6a6e9d(0x547),_0x2b87c6=await this[_0x6a6e9d(0x407)]['post'](_0x2b620c,{'body':_0x44f29f});return{'roles':_0x2b87c6[_0x6a6e9d(0x53c)][_0x6a6e9d(0x412)],'actions':_0x2b87c6[_0x6a6e9d(0x53c)][_0x6a6e9d(0x20c)]};}async[_0x2399be(0x2cc)](_0x575396){const _0x364f40=_0x2399be,_0x34ae4b=this['_getAPIPrefixPath']()+_0x364f40(0x3ab);await this[_0x364f40(0x407)][_0x364f40(0x240)](_0x34ae4b,{'params':{'collaboratorID':_0x575396[_0x364f40(0x5aa)],'objectID':_0x575396['objectID'],'unitID':_0x575396[_0x364f40(0x533)]}});}async[_0x2399be(0x538)](_0xd925d5){const _0x517fce=_0x2399be,_0x2efba2=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x517fce(0x407)]['patch'](_0x2efba2,{'body':_0xd925d5});}async[_0x2399be(0x3a0)](_0x50bc60){const _0x461ee2=_0x2399be,_0x43a3b7=this[_0x461ee2(0x266)]()+_0x461ee2(0x3ab);await this[_0x461ee2(0x407)][_0x461ee2(0x298)](_0x43a3b7,{'body':_0x50bc60});}async[_0x2399be(0x51c)](_0x1a5731){const _0xf3680a=_0x2399be,_0x232b17=this['_getAPIPrefixPath']()+_0xf3680a(0x3ab);return(await this[_0xf3680a(0x407)][_0xf3680a(0x654)](_0x232b17,{'params':{'objectID':_0x1a5731['objectID'],'unitID':_0x1a5731[_0xf3680a(0x533)]}}))[_0xf3680a(0x53c)][_0xf3680a(0x20b)];}async['putCollaborators'](_0x2cb579){const _0x76a38=_0x2399be,_0x24cd2b=this[_0x76a38(0x266)]()+_0x76a38(0x3ab);await this[_0x76a38(0x407)]['put'](_0x24cd2b,{'body':_0x2cb579});}},exports[_0x2399be(0x5cc)]=ds([Qt(0x0,a[_0x2399be(0x24b)](z['HTTPService'])),Qt(0x1,a[_0x2399be(0x24b)](a['IConfigService']))],exports[_0x2399be(0x5cc)]);var ke={'exports':{}};function vs(_0x3bac90){const _0x3b4fd0=_0x2399be;throw new Error(_0x3b4fd0(0x402)+_0x3bac90+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var We={'exports':{}},Ss=We[_0x2399be(0x22a)],ei;function se(){return ei||(ei=0x1,function(_0x1dc7d9,_0x18baea){(function(_0x5f5c6f,_0x547eda){_0x1dc7d9['exports']=_0x547eda();}(Ss,function(){var _0x343db0=_0x343db0||function(_0x4dc357,_0x1a8324){const _0x2da82e=_0x52c2;var _0x30af43;if(typeof window<'u'&&window[_0x2da82e(0x308)]&&(_0x30af43=window[_0x2da82e(0x308)]),typeof self<'u'&&self[_0x2da82e(0x308)]&&(_0x30af43=self[_0x2da82e(0x308)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0x30af43=globalThis[_0x2da82e(0x308)]),!_0x30af43&&typeof window<'u'&&window[_0x2da82e(0x35a)]&&(_0x30af43=window[_0x2da82e(0x35a)]),!_0x30af43&&typeof gt<'u'&>[_0x2da82e(0x308)]&&(_0x30af43=gt[_0x2da82e(0x308)]),!_0x30af43&&typeof vs==_0x2da82e(0x553))try{_0x30af43=require(_0x2da82e(0x308));}catch{}var _0x3593b6=function(){const _0x471621=_0x2da82e;if(_0x30af43){if(typeof _0x30af43[_0x471621(0x31b)]==_0x471621(0x553))try{return _0x30af43[_0x471621(0x31b)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x30af43[_0x471621(0x5dc)]==_0x471621(0x553))try{return _0x30af43['randomBytes'](0x4)[_0x471621(0x1b8)]();}catch{}}throw new Error(_0x471621(0x3f9));},_0x34a81e=Object[_0x2da82e(0x49a)]||(function(){function _0x1bc607(){}return function(_0x152a80){const _0x2a3355=_0x52c2;var _0x10e5df;return _0x1bc607[_0x2a3355(0x5dd)]=_0x152a80,_0x10e5df=new _0x1bc607(),_0x1bc607[_0x2a3355(0x5dd)]=null,_0x10e5df;};}()),_0x56651c={},_0x3d0778=_0x56651c[_0x2da82e(0x23e)]={},_0x3f324b=_0x3d0778[_0x2da82e(0x4a0)]=(function(){return{'extend':function(_0x2b5676){const _0x1b4ed3=_0x52c2;var _0x24375f=_0x34a81e(this);return _0x2b5676&&_0x24375f[_0x1b4ed3(0x214)](_0x2b5676),(!_0x24375f[_0x1b4ed3(0x4dc)](_0x1b4ed3(0x324))||this['init']===_0x24375f[_0x1b4ed3(0x324)])&&(_0x24375f['init']=function(){const _0x14719d=_0x1b4ed3;_0x24375f[_0x14719d(0x2a1)]['init'][_0x14719d(0x30d)](this,arguments);}),_0x24375f[_0x1b4ed3(0x324)][_0x1b4ed3(0x5dd)]=_0x24375f,_0x24375f['$super']=this,_0x24375f;},'create':function(){const _0x3ba3ff=_0x52c2;var _0x55707c=this[_0x3ba3ff(0x260)]();return _0x55707c[_0x3ba3ff(0x324)]['apply'](_0x55707c,arguments),_0x55707c;},'init':function(){},'mixIn':function(_0xdc7ccb){const _0x21b075=_0x52c2;for(var _0x173620 in _0xdc7ccb)_0xdc7ccb[_0x21b075(0x4dc)](_0x173620)&&(this[_0x173620]=_0xdc7ccb[_0x173620]);_0xdc7ccb['hasOwnProperty'](_0x21b075(0x24a))&&(this[_0x21b075(0x24a)]=_0xdc7ccb[_0x21b075(0x24a)]);},'clone':function(){const _0x4af829=_0x52c2;return this[_0x4af829(0x324)][_0x4af829(0x5dd)][_0x4af829(0x260)](this);}};}()),_0x447588=_0x3d0778[_0x2da82e(0x399)]=_0x3f324b[_0x2da82e(0x260)]({'init':function(_0x1d1ea5,_0x45e2a1){const _0x158e1d=_0x2da82e;_0x1d1ea5=this[_0x158e1d(0x434)]=_0x1d1ea5||[],_0x45e2a1!=_0x1a8324?this[_0x158e1d(0x495)]=_0x45e2a1:this[_0x158e1d(0x495)]=_0x1d1ea5[_0x158e1d(0x477)]*0x4;},'toString':function(_0x581ed1){const _0x473cec=_0x2da82e;return(_0x581ed1||_0x2b8808)[_0x473cec(0x4e1)](this);},'concat':function(_0x57cfa7){const _0x4dd8b4=_0x2da82e;var _0x52e26e=this[_0x4dd8b4(0x434)],_0x198a30=_0x57cfa7[_0x4dd8b4(0x434)],_0x214e66=this[_0x4dd8b4(0x495)],_0x4ab83b=_0x57cfa7[_0x4dd8b4(0x495)];if(this['clamp'](),_0x214e66%0x4)for(var _0x558779=0x0;_0x558779<_0x4ab83b;_0x558779++){var _0x2d44a9=_0x198a30[_0x558779>>>0x2]>>>0x18-_0x558779%0x4*0x8&0xff;_0x52e26e[_0x214e66+_0x558779>>>0x2]|=_0x2d44a9<<0x18-(_0x214e66+_0x558779)%0x4*0x8;}else{for(var _0x334787=0x0;_0x334787<_0x4ab83b;_0x334787+=0x4)_0x52e26e[_0x214e66+_0x334787>>>0x2]=_0x198a30[_0x334787>>>0x2];}return this[_0x4dd8b4(0x495)]+=_0x4ab83b,this;},'clamp':function(){const _0x40d133=_0x2da82e;var _0x49d3b6=this[_0x40d133(0x434)],_0x5db3f8=this[_0x40d133(0x495)];_0x49d3b6[_0x5db3f8>>>0x2]&=0xffffffff<<0x20-_0x5db3f8%0x4*0x8,_0x49d3b6['length']=_0x4dc357[_0x40d133(0x4e7)](_0x5db3f8/0x4);},'clone':function(){const _0x19f56f=_0x2da82e;var _0x31e7ae=_0x3f324b[_0x19f56f(0x55c)]['call'](this);return _0x31e7ae[_0x19f56f(0x434)]=this[_0x19f56f(0x434)][_0x19f56f(0x5a5)](0x0),_0x31e7ae;},'random':function(_0x177ae3){const _0x778a94=_0x2da82e;for(var _0x580d93=[],_0x22711c=0x0;_0x22711c<_0x177ae3;_0x22711c+=0x4)_0x580d93[_0x778a94(0x644)](_0x3593b6());return new _0x447588['init'](_0x580d93,_0x177ae3);}}),_0x87978e=_0x56651c[_0x2da82e(0x438)]={},_0x2b8808=_0x87978e['Hex']={'stringify':function(_0x3b6011){const _0x40af69=_0x2da82e;for(var _0x6989ad=_0x3b6011[_0x40af69(0x434)],_0x228af2=_0x3b6011[_0x40af69(0x495)],_0x5dc9e4=[],_0x71076e=0x0;_0x71076e<_0x228af2;_0x71076e++){var _0xa9b094=_0x6989ad[_0x71076e>>>0x2]>>>0x18-_0x71076e%0x4*0x8&0xff;_0x5dc9e4[_0x40af69(0x644)]((_0xa9b094>>>0x4)[_0x40af69(0x24a)](0x10)),_0x5dc9e4[_0x40af69(0x644)]((_0xa9b094&0xf)[_0x40af69(0x24a)](0x10));}return _0x5dc9e4[_0x40af69(0x27e)]('');},'parse':function(_0x15a098){const _0x494e52=_0x2da82e;for(var _0x588b42=_0x15a098[_0x494e52(0x477)],_0x5d449a=[],_0x44476a=0x0;_0x44476a<_0x588b42;_0x44476a+=0x2)_0x5d449a[_0x44476a>>>0x3]|=parseInt(_0x15a098[_0x494e52(0x37c)](_0x44476a,0x2),0x10)<<0x18-_0x44476a%0x8*0x4;return new _0x447588['init'](_0x5d449a,_0x588b42/0x2);}},_0x3f3ed4=_0x87978e[_0x2da82e(0x36d)]={'stringify':function(_0x4aaba6){const _0x1225f1=_0x2da82e;for(var _0x1547b6=_0x4aaba6[_0x1225f1(0x434)],_0x5cf587=_0x4aaba6[_0x1225f1(0x495)],_0x4027b8=[],_0x18f958=0x0;_0x18f958<_0x5cf587;_0x18f958++){var _0x3adc28=_0x1547b6[_0x18f958>>>0x2]>>>0x18-_0x18f958%0x4*0x8&0xff;_0x4027b8[_0x1225f1(0x644)](String[_0x1225f1(0x32d)](_0x3adc28));}return _0x4027b8[_0x1225f1(0x27e)]('');},'parse':function(_0x58e4e6){const _0x5591a7=_0x2da82e;for(var _0x50df2f=_0x58e4e6['length'],_0x631615=[],_0x49f315=0x0;_0x49f315<_0x50df2f;_0x49f315++)_0x631615[_0x49f315>>>0x2]|=(_0x58e4e6[_0x5591a7(0x634)](_0x49f315)&0xff)<<0x18-_0x49f315%0x4*0x8;return new _0x447588[(_0x5591a7(0x324))](_0x631615,_0x50df2f);}},_0x3b3ea9=_0x87978e[_0x2da82e(0x61f)]={'stringify':function(_0x48097d){const _0x1ef9f3=_0x2da82e;try{return decodeURIComponent(escape(_0x3f3ed4['stringify'](_0x48097d)));}catch{throw new Error(_0x1ef9f3(0x54e));}},'parse':function(_0x75e808){const _0x4e5d1e=_0x2da82e;return _0x3f3ed4[_0x4e5d1e(0x62e)](unescape(encodeURIComponent(_0x75e808)));}},_0xdb237c=_0x3d0778['BufferedBlockAlgorithm']=_0x3f324b[_0x2da82e(0x260)]({'reset':function(){const _0x5c94d8=_0x2da82e;this[_0x5c94d8(0x5b3)]=new _0x447588[(_0x5c94d8(0x324))](),this[_0x5c94d8(0x4a5)]=0x0;},'_append':function(_0x1cbb34){const _0x111209=_0x2da82e;typeof _0x1cbb34==_0x111209(0x44d)&&(_0x1cbb34=_0x3b3ea9[_0x111209(0x62e)](_0x1cbb34)),this['_data'][_0x111209(0x381)](_0x1cbb34),this[_0x111209(0x4a5)]+=_0x1cbb34[_0x111209(0x495)];},'_process':function(_0x4054aa){const _0x3f6408=_0x2da82e;var _0x548f13,_0x3019c6=this[_0x3f6408(0x5b3)],_0x58055f=_0x3019c6['words'],_0x8d81a1=_0x3019c6[_0x3f6408(0x495)],_0x18a80a=this[_0x3f6408(0x619)],_0x43bfe5=_0x18a80a*0x4,_0x2b0177=_0x8d81a1/_0x43bfe5;_0x4054aa?_0x2b0177=_0x4dc357[_0x3f6408(0x4e7)](_0x2b0177):_0x2b0177=_0x4dc357['max']((_0x2b0177|0x0)-this['_minBufferSize'],0x0);var _0x31975b=_0x2b0177*_0x18a80a,_0x1f06d4=_0x4dc357[_0x3f6408(0x41e)](_0x31975b*0x4,_0x8d81a1);if(_0x31975b){for(var _0x34ad88=0x0;_0x34ad88<_0x31975b;_0x34ad88+=_0x18a80a)this[_0x3f6408(0x1ae)](_0x58055f,_0x34ad88);_0x548f13=_0x58055f['splice'](0x0,_0x31975b),_0x3019c6[_0x3f6408(0x495)]-=_0x1f06d4;}return new _0x447588[(_0x3f6408(0x324))](_0x548f13,_0x1f06d4);},'clone':function(){const _0xccd80b=_0x2da82e;var _0x53a8c1=_0x3f324b[_0xccd80b(0x55c)][_0xccd80b(0x311)](this);return _0x53a8c1[_0xccd80b(0x5b3)]=this['_data']['clone'](),_0x53a8c1;},'_minBufferSize':0x0});_0x3d0778[_0x2da82e(0x488)]=_0xdb237c[_0x2da82e(0x260)]({'cfg':_0x3f324b[_0x2da82e(0x260)](),'init':function(_0x721d4f){const _0x4c3795=_0x2da82e;this[_0x4c3795(0x5bd)]=this['cfg']['extend'](_0x721d4f),this[_0x4c3795(0x2b3)]();},'reset':function(){const _0x2870c1=_0x2da82e;_0xdb237c[_0x2870c1(0x2b3)][_0x2870c1(0x311)](this),this[_0x2870c1(0x5e8)]();},'update':function(_0x57b298){const _0x20f3f1=_0x2da82e;return this['_append'](_0x57b298),this[_0x20f3f1(0x3bd)](),this;},'finalize':function(_0x568778){const _0x39b9f4=_0x2da82e;_0x568778&&this[_0x39b9f4(0x3e2)](_0x568778);var _0x256a5e=this[_0x39b9f4(0x1cd)]();return _0x256a5e;},'blockSize':0x10,'_createHelper':function(_0x1f8491){return function(_0x2ba3bb,_0xefb657){const _0x48f77a=_0x52c2;return new _0x1f8491[(_0x48f77a(0x324))](_0xefb657)[_0x48f77a(0x4f1)](_0x2ba3bb);};},'_createHmacHelper':function(_0x5b0ba7){return function(_0x3f5785,_0x50fcd8){const _0x4a77c5=_0x52c2;return new _0x2e2312['HMAC'][(_0x4a77c5(0x324))](_0x5b0ba7,_0x50fcd8)[_0x4a77c5(0x4f1)](_0x3f5785);};}});var _0x2e2312=_0x56651c[_0x2da82e(0x3cd)]={};return _0x56651c;}(Math);return _0x343db0;}));}(We)),We['exports'];}var Fe={'exports':{}},ps=Fe[_0x2399be(0x22a)],ti;function ji(){return ti||(ti=0x1,function(_0x9f1114,_0x22ac7e){(function(_0x512db7,_0x37e725){const _0xb38947=_0x52c2;_0x9f1114[_0xb38947(0x22a)]=_0x37e725(se());}(ps,function(_0xe0e8b5){const _0x406b80=_0x52c2;return(function(){const _0x2906b3=_0x52c2;var _0x512736=_0xe0e8b5,_0x4f6244=_0x512736[_0x2906b3(0x23e)],_0x12ad69=_0x4f6244[_0x2906b3(0x399)],_0x9e7570=_0x512736['enc'];_0x9e7570[_0x2906b3(0x5ed)]={'stringify':function(_0x2a09e8){const _0x1e4842=_0x2906b3;var _0x383c75=_0x2a09e8[_0x1e4842(0x434)],_0x4053bb=_0x2a09e8['sigBytes'],_0x4a340f=this[_0x1e4842(0x5b2)];_0x2a09e8[_0x1e4842(0x337)]();for(var _0x1b6765=[],_0x5cba78=0x0;_0x5cba78<_0x4053bb;_0x5cba78+=0x3)for(var _0x228f4e=_0x383c75[_0x5cba78>>>0x2]>>>0x18-_0x5cba78%0x4*0x8&0xff,_0x184711=_0x383c75[_0x5cba78+0x1>>>0x2]>>>0x18-(_0x5cba78+0x1)%0x4*0x8&0xff,_0x230612=_0x383c75[_0x5cba78+0x2>>>0x2]>>>0x18-(_0x5cba78+0x2)%0x4*0x8&0xff,_0x43842b=_0x228f4e<<0x10|_0x184711<<0x8|_0x230612,_0xe9e17e=0x0;_0xe9e17e<0x4&&_0x5cba78+_0xe9e17e*0.75<_0x4053bb;_0xe9e17e++)_0x1b6765[_0x1e4842(0x644)](_0x4a340f[_0x1e4842(0x40f)](_0x43842b>>>0x6*(0x3-_0xe9e17e)&0x3f));var _0x25f8f8=_0x4a340f[_0x1e4842(0x40f)](0x40);if(_0x25f8f8){for(;_0x1b6765[_0x1e4842(0x477)]%0x4;)_0x1b6765['push'](_0x25f8f8);}return _0x1b6765['join']('');},'parse':function(_0xff1abb){const _0x15ec39=_0x2906b3;var _0x38e811=_0xff1abb[_0x15ec39(0x477)],_0x274ab2=this[_0x15ec39(0x5b2)],_0xf480ff=this['_reverseMap'];if(!_0xf480ff){_0xf480ff=this[_0x15ec39(0x3ec)]=[];for(var _0x5829bd=0x0;_0x5829bd<_0x274ab2['length'];_0x5829bd++)_0xf480ff[_0x274ab2[_0x15ec39(0x634)](_0x5829bd)]=_0x5829bd;}var _0x3b841b=_0x274ab2[_0x15ec39(0x40f)](0x40);if(_0x3b841b){var _0x594f0f=_0xff1abb[_0x15ec39(0x2f6)](_0x3b841b);_0x594f0f!==-0x1&&(_0x38e811=_0x594f0f);}return _0x48be3f(_0xff1abb,_0x38e811,_0xf480ff);},'_map':_0x2906b3(0x422)};function _0x48be3f(_0x4dcfc4,_0x32ee0f,_0x248e06){const _0x5dc92d=_0x2906b3;for(var _0x5afac7=[],_0x15501f=0x0,_0x3e1808=0x0;_0x3e1808<_0x32ee0f;_0x3e1808++)if(_0x3e1808%0x4){var _0x5aa3f6=_0x248e06[_0x4dcfc4[_0x5dc92d(0x634)](_0x3e1808-0x1)]<<_0x3e1808%0x4*0x2,_0x5c6566=_0x248e06[_0x4dcfc4[_0x5dc92d(0x634)](_0x3e1808)]>>>0x6-_0x3e1808%0x4*0x2,_0x5cfe8e=_0x5aa3f6|_0x5c6566;_0x5afac7[_0x15501f>>>0x2]|=_0x5cfe8e<<0x18-_0x15501f%0x4*0x8,_0x15501f++;}return _0x12ad69[_0x5dc92d(0x49a)](_0x5afac7,_0x15501f);}}()),_0xe0e8b5[_0x406b80(0x438)][_0x406b80(0x5ed)];}));}(Fe)),Fe['exports'];}var Ve={'exports':{}},ms=Ve[_0x2399be(0x22a)],ii;function gs(){return ii||(ii=0x1,function(_0x442509,_0x128d84){(function(_0x3505c1,_0x57db2d){const _0x294cce=_0x52c2;_0x442509[_0x294cce(0x22a)]=_0x57db2d(se());}(ms,function(_0x26b621){const _0x5dc1b2=_0x52c2;return function(_0x8e8bf7){const _0x152d8c=_0x52c2;var _0x2ab807=_0x26b621,_0x2bb2a0=_0x2ab807['lib'],_0x4c88f7=_0x2bb2a0[_0x152d8c(0x399)],_0x2f7f28=_0x2bb2a0[_0x152d8c(0x488)],_0x2303ea=_0x2ab807['algo'],_0x530aca=[];(function(){const _0x133426=_0x152d8c;for(var _0x2658f0=0x0;_0x2658f0<0x40;_0x2658f0++)_0x530aca[_0x2658f0]=_0x8e8bf7[_0x133426(0x33a)](_0x8e8bf7['sin'](_0x2658f0+0x1))*0x100000000|0x0;}());var _0x323c50=_0x2303ea[_0x152d8c(0x3c7)]=_0x2f7f28[_0x152d8c(0x260)]({'_doReset':function(){const _0x4cd3f9=_0x152d8c;this[_0x4cd3f9(0x26e)]=new _0x4c88f7['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x427cd0,_0x1df216){const _0x28cd22=_0x152d8c;for(var _0x13efb8=0x0;_0x13efb8<0x10;_0x13efb8++){var _0x2c8e0e=_0x1df216+_0x13efb8,_0x2c2cfd=_0x427cd0[_0x2c8e0e];_0x427cd0[_0x2c8e0e]=(_0x2c2cfd<<0x8|_0x2c2cfd>>>0x18)&0xff00ff|(_0x2c2cfd<<0x18|_0x2c2cfd>>>0x8)&0xff00ff00;}var _0x7f57a3=this['_hash'][_0x28cd22(0x434)],_0x33a318=_0x427cd0[_0x1df216+0x0],_0x5babae=_0x427cd0[_0x1df216+0x1],_0x168147=_0x427cd0[_0x1df216+0x2],_0x2aa085=_0x427cd0[_0x1df216+0x3],_0x19fbaf=_0x427cd0[_0x1df216+0x4],_0x331ca1=_0x427cd0[_0x1df216+0x5],_0x103d7c=_0x427cd0[_0x1df216+0x6],_0x2ee96e=_0x427cd0[_0x1df216+0x7],_0x113359=_0x427cd0[_0x1df216+0x8],_0x458829=_0x427cd0[_0x1df216+0x9],_0x2a25d2=_0x427cd0[_0x1df216+0xa],_0x14edbc=_0x427cd0[_0x1df216+0xb],_0x346f9c=_0x427cd0[_0x1df216+0xc],_0x2879b8=_0x427cd0[_0x1df216+0xd],_0x15aaa5=_0x427cd0[_0x1df216+0xe],_0x3960f9=_0x427cd0[_0x1df216+0xf],_0x4b9502=_0x7f57a3[0x0],_0x80847=_0x7f57a3[0x1],_0x2ef39e=_0x7f57a3[0x2],_0x299011=_0x7f57a3[0x3];_0x4b9502=_0x4e723a(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x33a318,0x7,_0x530aca[0x0]),_0x299011=_0x4e723a(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x5babae,0xc,_0x530aca[0x1]),_0x2ef39e=_0x4e723a(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x168147,0x11,_0x530aca[0x2]),_0x80847=_0x4e723a(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x2aa085,0x16,_0x530aca[0x3]),_0x4b9502=_0x4e723a(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x19fbaf,0x7,_0x530aca[0x4]),_0x299011=_0x4e723a(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x331ca1,0xc,_0x530aca[0x5]),_0x2ef39e=_0x4e723a(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x103d7c,0x11,_0x530aca[0x6]),_0x80847=_0x4e723a(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x2ee96e,0x16,_0x530aca[0x7]),_0x4b9502=_0x4e723a(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x113359,0x7,_0x530aca[0x8]),_0x299011=_0x4e723a(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x458829,0xc,_0x530aca[0x9]),_0x2ef39e=_0x4e723a(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2a25d2,0x11,_0x530aca[0xa]),_0x80847=_0x4e723a(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x14edbc,0x16,_0x530aca[0xb]),_0x4b9502=_0x4e723a(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x346f9c,0x7,_0x530aca[0xc]),_0x299011=_0x4e723a(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x2879b8,0xc,_0x530aca[0xd]),_0x2ef39e=_0x4e723a(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x15aaa5,0x11,_0x530aca[0xe]),_0x80847=_0x4e723a(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x3960f9,0x16,_0x530aca[0xf]),_0x4b9502=_0x1b8b86(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x5babae,0x5,_0x530aca[0x10]),_0x299011=_0x1b8b86(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x103d7c,0x9,_0x530aca[0x11]),_0x2ef39e=_0x1b8b86(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x14edbc,0xe,_0x530aca[0x12]),_0x80847=_0x1b8b86(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x33a318,0x14,_0x530aca[0x13]),_0x4b9502=_0x1b8b86(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x331ca1,0x5,_0x530aca[0x14]),_0x299011=_0x1b8b86(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x2a25d2,0x9,_0x530aca[0x15]),_0x2ef39e=_0x1b8b86(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x3960f9,0xe,_0x530aca[0x16]),_0x80847=_0x1b8b86(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x19fbaf,0x14,_0x530aca[0x17]),_0x4b9502=_0x1b8b86(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x458829,0x5,_0x530aca[0x18]),_0x299011=_0x1b8b86(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x15aaa5,0x9,_0x530aca[0x19]),_0x2ef39e=_0x1b8b86(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2aa085,0xe,_0x530aca[0x1a]),_0x80847=_0x1b8b86(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x113359,0x14,_0x530aca[0x1b]),_0x4b9502=_0x1b8b86(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x2879b8,0x5,_0x530aca[0x1c]),_0x299011=_0x1b8b86(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x168147,0x9,_0x530aca[0x1d]),_0x2ef39e=_0x1b8b86(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2ee96e,0xe,_0x530aca[0x1e]),_0x80847=_0x1b8b86(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x346f9c,0x14,_0x530aca[0x1f]),_0x4b9502=_0x56cf83(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x331ca1,0x4,_0x530aca[0x20]),_0x299011=_0x56cf83(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x113359,0xb,_0x530aca[0x21]),_0x2ef39e=_0x56cf83(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x14edbc,0x10,_0x530aca[0x22]),_0x80847=_0x56cf83(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x15aaa5,0x17,_0x530aca[0x23]),_0x4b9502=_0x56cf83(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x5babae,0x4,_0x530aca[0x24]),_0x299011=_0x56cf83(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x19fbaf,0xb,_0x530aca[0x25]),_0x2ef39e=_0x56cf83(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2ee96e,0x10,_0x530aca[0x26]),_0x80847=_0x56cf83(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x2a25d2,0x17,_0x530aca[0x27]),_0x4b9502=_0x56cf83(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x2879b8,0x4,_0x530aca[0x28]),_0x299011=_0x56cf83(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x33a318,0xb,_0x530aca[0x29]),_0x2ef39e=_0x56cf83(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2aa085,0x10,_0x530aca[0x2a]),_0x80847=_0x56cf83(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x103d7c,0x17,_0x530aca[0x2b]),_0x4b9502=_0x56cf83(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x458829,0x4,_0x530aca[0x2c]),_0x299011=_0x56cf83(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x346f9c,0xb,_0x530aca[0x2d]),_0x2ef39e=_0x56cf83(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x3960f9,0x10,_0x530aca[0x2e]),_0x80847=_0x56cf83(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x168147,0x17,_0x530aca[0x2f]),_0x4b9502=_0x4d5f84(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x33a318,0x6,_0x530aca[0x30]),_0x299011=_0x4d5f84(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x2ee96e,0xa,_0x530aca[0x31]),_0x2ef39e=_0x4d5f84(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x15aaa5,0xf,_0x530aca[0x32]),_0x80847=_0x4d5f84(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x331ca1,0x15,_0x530aca[0x33]),_0x4b9502=_0x4d5f84(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x346f9c,0x6,_0x530aca[0x34]),_0x299011=_0x4d5f84(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x2aa085,0xa,_0x530aca[0x35]),_0x2ef39e=_0x4d5f84(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x2a25d2,0xf,_0x530aca[0x36]),_0x80847=_0x4d5f84(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x5babae,0x15,_0x530aca[0x37]),_0x4b9502=_0x4d5f84(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x113359,0x6,_0x530aca[0x38]),_0x299011=_0x4d5f84(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x3960f9,0xa,_0x530aca[0x39]),_0x2ef39e=_0x4d5f84(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x103d7c,0xf,_0x530aca[0x3a]),_0x80847=_0x4d5f84(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x2879b8,0x15,_0x530aca[0x3b]),_0x4b9502=_0x4d5f84(_0x4b9502,_0x80847,_0x2ef39e,_0x299011,_0x19fbaf,0x6,_0x530aca[0x3c]),_0x299011=_0x4d5f84(_0x299011,_0x4b9502,_0x80847,_0x2ef39e,_0x14edbc,0xa,_0x530aca[0x3d]),_0x2ef39e=_0x4d5f84(_0x2ef39e,_0x299011,_0x4b9502,_0x80847,_0x168147,0xf,_0x530aca[0x3e]),_0x80847=_0x4d5f84(_0x80847,_0x2ef39e,_0x299011,_0x4b9502,_0x458829,0x15,_0x530aca[0x3f]),_0x7f57a3[0x0]=_0x7f57a3[0x0]+_0x4b9502|0x0,_0x7f57a3[0x1]=_0x7f57a3[0x1]+_0x80847|0x0,_0x7f57a3[0x2]=_0x7f57a3[0x2]+_0x2ef39e|0x0,_0x7f57a3[0x3]=_0x7f57a3[0x3]+_0x299011|0x0;},'_doFinalize':function(){const _0x123b39=_0x152d8c;var _0x132272=this[_0x123b39(0x5b3)],_0x39e3ec=_0x132272[_0x123b39(0x434)],_0x3ddd25=this[_0x123b39(0x4a5)]*0x8,_0x20b29d=_0x132272[_0x123b39(0x495)]*0x8;_0x39e3ec[_0x20b29d>>>0x5]|=0x80<<0x18-_0x20b29d%0x20;var _0x570e32=_0x8e8bf7['floor'](_0x3ddd25/0x100000000),_0x45fb61=_0x3ddd25;_0x39e3ec[(_0x20b29d+0x40>>>0x9<<0x4)+0xf]=(_0x570e32<<0x8|_0x570e32>>>0x18)&0xff00ff|(_0x570e32<<0x18|_0x570e32>>>0x8)&0xff00ff00,_0x39e3ec[(_0x20b29d+0x40>>>0x9<<0x4)+0xe]=(_0x45fb61<<0x8|_0x45fb61>>>0x18)&0xff00ff|(_0x45fb61<<0x18|_0x45fb61>>>0x8)&0xff00ff00,_0x132272[_0x123b39(0x495)]=(_0x39e3ec[_0x123b39(0x477)]+0x1)*0x4,this[_0x123b39(0x3bd)]();for(var _0x53d6a4=this[_0x123b39(0x26e)],_0x558c40=_0x53d6a4[_0x123b39(0x434)],_0x489a35=0x0;_0x489a35<0x4;_0x489a35++){var _0x1bf700=_0x558c40[_0x489a35];_0x558c40[_0x489a35]=(_0x1bf700<<0x8|_0x1bf700>>>0x18)&0xff00ff|(_0x1bf700<<0x18|_0x1bf700>>>0x8)&0xff00ff00;}return _0x53d6a4;},'clone':function(){const _0x1b4856=_0x152d8c;var _0x1ac3a4=_0x2f7f28[_0x1b4856(0x55c)]['call'](this);return _0x1ac3a4[_0x1b4856(0x26e)]=this[_0x1b4856(0x26e)][_0x1b4856(0x55c)](),_0x1ac3a4;}});function _0x4e723a(_0x190922,_0x218c97,_0x3286fa,_0x5224bf,_0x4d4d0d,_0x1a0b07,_0x176c7d){var _0x5228f2=_0x190922+(_0x218c97&_0x3286fa|~_0x218c97&_0x5224bf)+_0x4d4d0d+_0x176c7d;return(_0x5228f2<<_0x1a0b07|_0x5228f2>>>0x20-_0x1a0b07)+_0x218c97;}function _0x1b8b86(_0x287799,_0x5b939c,_0x135277,_0x3c218c,_0x39d386,_0x52e77a,_0x1a291e){var _0x1d5b5d=_0x287799+(_0x5b939c&_0x3c218c|_0x135277&~_0x3c218c)+_0x39d386+_0x1a291e;return(_0x1d5b5d<<_0x52e77a|_0x1d5b5d>>>0x20-_0x52e77a)+_0x5b939c;}function _0x56cf83(_0x4c704c,_0x5edd4b,_0x2934e1,_0x2c5bd7,_0x16ab03,_0x76c45a,_0x272278){var _0x40059f=_0x4c704c+(_0x5edd4b^_0x2934e1^_0x2c5bd7)+_0x16ab03+_0x272278;return(_0x40059f<<_0x76c45a|_0x40059f>>>0x20-_0x76c45a)+_0x5edd4b;}function _0x4d5f84(_0x11f45e,_0x423de2,_0x285c59,_0x126b16,_0x2273fb,_0x57fa2e,_0x3cb291){var _0x4aa90c=_0x11f45e+(_0x285c59^(_0x423de2|~_0x126b16))+_0x2273fb+_0x3cb291;return(_0x4aa90c<<_0x57fa2e|_0x4aa90c>>>0x20-_0x57fa2e)+_0x423de2;}_0x2ab807[_0x152d8c(0x3c7)]=_0x2f7f28[_0x152d8c(0x328)](_0x323c50),_0x2ab807[_0x152d8c(0x4a2)]=_0x2f7f28[_0x152d8c(0x3b5)](_0x323c50);}(Math),_0x26b621[_0x5dc1b2(0x3c7)];}));}(Ve)),Ve['exports'];}function _0x1d6f(){const _0x12f1c3=['StreamCipher','getImageSourceCache','getSheetId','finalize','awaiting_with_pending','FETCH_MISSING','UNIVER_DOC','_transformRemoteChangesetByStateCache','Plugin','[CollaborationSessionService]','fromCollab','HTTPService','textEncoder','collabStatus.fetchMiss','88dCnrtV','getCollabCursors$','entries','_config','IBeforeCloseService','_initUnitPermissionChange','resourceIDs','hidden','reqId','fromEventSubject','createElement','toStringTag','/universer-api/oidc/authpage','/object','_init','_messageService','collabSubmitChangesetUrl','_docSkeletonManagerService','_key','SerializableCipher','_listenToOnlineEvent','_docSkeleton','Subject','requireSession','updatePermissionPoint','/new_changes','onRemoteAck','_oKey','toDisposable','handleMoveRange','setInterval','IAuthzIoService','listCollaborators','JSONX','_userManagerService','editing\x20status\x20changed\x20to','_initResize','_parse','filter','UNDEFINED','socketService','COLORS','_clearScheduledTask','pipe','_unitStatus','toggleOffline','_scheduleCollaborationTimeoutTimer','complete','RevisionService','debounceTime','state$','UNIVER_SHEET','initWorkbookPermissionChange','_scheduleClearOtherTimer','subscribeEvent','unitID','_assignedColors','_ENC_XFORM_MODE','/rev/','_getDownloadEndpointURL','updateCollaborator','subunit','enableAuthServer','_substituteRedoStack','body','_color','IUniverInstanceService','_pendingMutations','_onCombEvent','number','AWAITING','_transitionLocked','application/json','permissionRejEvent','_getUploadFileURL','/role','collaboration.closeRoom','_beforeCloseService','HEARTBEAT','RegularPolygon','unitId','_updateStatus','Malformed\x20UTF-8\x20data','kdf','fetchMiss','RxDisposable','params','function','IRemoteInstanceService','moveTo','RemoveColCommandId','?url=','getParam','values','close$','ICollaborationSocketService','clone','_socketReady','_getSendChangesetTimeout','_disabled','_clearHeartbeatTimer','then','EXCHANGE_SIGN_URL_SERVER_URL_KEY','CollaborationEvent','liveShareOperation','_DEC_XFORM_MODE','_toggleOffline','cmd','OTHER_CLIENTS_EDITING','unshift','image/gif','readAsDataURL','socket\x20close','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','downloadEndpointUrl','_transformUndoRedoStack','_send','LICENSE_DISTRO_REJECTED','_eventUnsubscribe','_updateLocalCursor','UPDATE_CURSOR','_docStateChangeManagerService','syncEditingCollabCursor','getVpScrollXYInfoByPosToVp','USERS_ENTER','removeMember','collabCursorState$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','BehaviorSubject','getAllMembers','RECT','_startSheetCollabCursor','sheetId','transformRemoteChangeset','serializeCombRequest','handleIRemoveRow','max','c1Prime','fetchThroughInterceptors','ITransformService','_onFetchMissResult','onlineStatus','searchParams','IMessageService','BuiltInUIPart','_urlService','getCollabEntity$','_handleEvent','pending','defaultProps','_getRedoStack','set','top','setItem','LocalCacheService','Disposable','isTransformMutationsWithChangesetFailure','Error','_onRemoteChangeset','_online','univer-online','cursorInfo','_removeRoom','?size=','/universer-api/comb','loadDoc','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','SNAPSHOT_INVALID_SNAPSHOT','USERS_LEAVE','slice','_collaborationSessionService','NO_OTHER_CLIENTS_EDITING','DocStateChangeManagerService','isPermissionRej','collaboratorID','buffer','SHA1','_members','Rect','reduce','onPointerEnter$','IConfigService','_map','_data','_checkMissing','imageSourceType','csShouldRetryEvent','assignAColorForMemberID','SNAPSHOT_URL_KEY','merge','_session','allowed','NodePositionConvertToRectRange','cfg','UniverNetworkPlugin','PERSON','Warning','EmptyMutation','getTypeOfUnitDisposed$','_singleActiveUnitService','blue400','IDLE','SheetCollaborationEntity','arc','newValue','awaiting','open$','_socket','AuthzIoHttpService','YUUMI_RATE_OVER_LIMIT','ENSURE_SNAPSHOT_EXECUTION','disposeUnit','_getSignURL','red300','_createSocketURL','UniverCollaborationPlugin','_unlockTransition','_submitChangeset','rev','_onConflict','saveSnapshot','MoveRangeCommandId','roomMembers','throttleTime','randomBytes','prototype','transformSelections','DesktopCollaborationStatusDisplayController','updateOfflineData','catch','{fileID}','all','_collaborationController','_refRangeService','__esModule','message$','_doReset','equals','[OfflineState]:\x20received\x20changeset.','UnitEmbedded','onTransformState','Base64','registerComponent','_retryConnectingTimer','onMouseMove','onMissingChangesets','/universer-api/stream/file/upload','mode','dispose','isTransformMutationFailure','fetchMissingChangesets','hovered','SNAPSHOT_SERVER_URL_KEY','getUnit','NOT_COLLAB','concatMap','IMentionIOService','image/jpeg','562720DNEpTw','toRgbString','VIEW_MAIN','HttpImport','HELLO','@univerjs/engine-formula','ERROR_IMAGE_TYPE','getSnapshotAPIPath','joinRsp','_getMergeRange','TEXT_RANGE_LAYER_INDEX','_clearUndo','Fragment','ONLINE','AES','setUndoRedoMutationParamsCache','[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.','_setupBeforeClosingHandler','CHANGESET_ACK','take','_collaborationPaused','_document','current','addObject','propertyIsEnumerable','_roomMembers','&to=','blockSize','DataLoaderController','#fff','transformUndoRedo','_docSyncEditingCollabCursorService','with','Utf8','ThemeService','_cachedData','transformStateCache','UNAUTHENTICATED','18YefYJd','trim','[CollaborationEntity]','DeleteRangeMoveLeftCommandId','_sessions','_startCollaboration','_hover','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onCommentUpdate','getStateCache','parse','_iv','unknown','YUUMI_URL_COL_OUT_OF_RANGE','_commentUpdate$','objectID','charCodeAt','resize','fillRule','InsertRangeMoveRightCommandId','_retryCount','handleInsertCol','[SyncedState]:\x20received\x20rejection.','transformMutationsWithChangeset','reconnect','getLatestCsReqIdBySid','_onConnectionOpen','onload','handleInsertRow','rng','_registerRenderDependencies','CONFLICT','push','userID','session.will-retry','GLOBAL_ROOMS_CNT_EXCEEDS','BlockCipher','on-line-single','getViewport','_heartbeatTimer','type','_removeCollabCursors','shareReplay','getCurrentUser','IPermissionService','range','Cipher','getRelativeToViewportCoord','get','_getAnchorBounding','ALREADY_EXISTS','_unitOnClients','LIVESHARE_REQUEST_HOST','/universer-api/snapshot/','_backgroundColor','json','_executeRemoteChangeset','saveOfflineData','urlChange$','_onRecvEvent','_ensureSubject','key','_compressMutationService','round','displayName','symbol','_entityInit$','UNRECOGNIZED','[CollaborationSessionService]:\x20socket\x20error','createEncryptor','svg','Module','useObservable','_anchor','InsertRowCommandId','size','getFocusedUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','parseProtocolChangeset','_getAPIPrefix','_shouldReportTelemetry','measureText','_renderManagerService','[DataLoaderController]','unit','_name','_tryEnsureSocket','_applyRemoteChangeset','FAIL','addObjects','DocIMEInputManagerService','mapDocumentTypeToUniverType','CBC','_doProcessBlock','interceptor','getValue','_localeService','YUUMI_SUBSCRIPTION_NOT_FOUND','generateRandomId','_transformPreviousActiveRange','_getSessionTicket','_resendWithTimeout','_mode','readInt32LE','onRemoteRetry','RefRangeService','x-univer-host','unitId\x20is\x20not\x20found','\x0aCurrent:\x20','_undoRedoService','_scene','_xformMode','enableOfflineEditing','none','IRenderManagerService','random','url(#on-line-single_clip0_910_349)','on-line-single_clip0_910_349','_ws','loadSheet','file','sid','_sheetSkeletonManagerService','baseRev','_doFinalize','isArray','UNIVER_UNKNOWN','_anchorDot','onTransformIME','method','sheetID','permission.title','_status$','confirm','_substituteUndoStack','clipPath','getCurrentRevOfUnit','repeat','SetSelectionsOperation','_updateCollabCursors','off-line-single','_schedule','deserializeToCombResponse','Tools','IUIPartsService','_getUndoStack','requestParams','COMPLETION_FINISHED','[CollaborationUndoRedoService]','collabStatus.conflict','@univerjs/engine-render','_unitID','eventID','conflict','ImageSourceType','_registerDependencies','WebSocketService','_sendHeartbeatTimer','_initCommandExecutedListener','ERROR_IMAGE','currentTheme$','_changesetReqId','touchDependencies','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','colorChannel1','INTERNAL_ERROR','_sheetTransformSelectionsService','_initDependencies','deserializeRangeWithSheet','focused$','_tryReconnect','ACTIVE_UNIT_EVENT_CHANNEL','history','/block/','_transformRemoteChangesetByIMECache','unpad','@univerjs/telemetry','_context','_handleHover','getItem','format','DOC_RANGE_TYPE','_timeoutTimer','translate(.97)','update','getWorkbookSelections','collaborators','actions','FileId','removeParam','registerRenderModule','hide','Undefined','incrementRevOfUnit','_scheduleTimestamp','mixIn','getActiveRange','toLowerCase','_collabCursorState$','_drawTextRange','processBlock','_startDocCollabCursor','UNKNOWN_CODE','put','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ERROR_EXCEED_SIZE','replaceDocRanges','defs','_stopTelemetryCollaborationNewChangeset','undoState','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getMember','CollaborationSessionService','_colorAssignService','LOCAL_CACHE_INTERVAL_KEY','disposeWithMe','InsertRangeMoveDownCommandId','exports','updateMember','getDocRanges','padding','sessionStatus$','addImageSourceCache','column','useDependency','setTimeout','getColor','doc.mutation.rich-text-editing','@univerjs/sheets-ui','execute','collabStatus.offline','WorkbookEditablePermission','div','src','_hovered','getSkeleton','lineTo','lib','setAlpha','delete','_initCloseConn','c2Prime','auth.needGotoLoginAlert','_snapshotServerService','_onUserLeave','_shapes','_refreshCollabCursors','byteLength','InsertColCommandId','toString','Inject','PSEUDO_FETCH_MISSING_RESULT','_changesetSessionId','closePath','distinctUntilChanged','getRangePointData','handleInsertRangeMoveDown','switchMap','/-/object/-/batch_allowed','[CollaborationState]:\x20apply\x20error!','JOIN_ROOM_NOT_EXISTS','startColumn','ticket','WebURLService','_iKey','originalMeta','workbook','_initStatusListener','row','_clearTimeoutTimer','SNAPSHOT_HAS_BEEN_REMOVED','extend','members','TEXT','@univerjs-pro/collaboration','_sendingTimer','visibilitychange','_getAPIPrefixPath','_rescheduleHeartbeat','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unsubscribe','cursorInfo$','LIVESHARE_FETCH_OPERATIONS','fill','_commentService','_hash','onlyLocal','icon','SUBMIT_CHANGESET','PERMISSION_DENIED','getActiveSheet','conflict.content','deepClone','[PendingState]:\x20received\x20rejection.','executeCommand','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onPointerMove$','setParam','error$','getUnitId','_clearCollaborationTimeoutTimer','join','_onConnectionFailed','add','batchAllowed','SEND_CHANGESET_TIMEOUT','_transformHistoryAndStateStack','resend','univer-online-status','__creator','/allowed','rgba(255,\x20255,\x20255,\x200.01)','getRenderById','closeSession','UUID','listRoles','defineProperty','UNIVER_COLLABORATION_CLIENT_PLUGIN','memberID','&source=','_drawAnchor','serializeRangeWithSheet','_transformStateCache','roomInfos','asObservable','updateCursorEvent','jiqing500','post','_sender','object','sendChangesetTimeout','event$','registerDependencies','location','_event$','href','$super','_configService','CHANGESET_SHOULD_RETRY','JOINING','_startTelemetryCollaborationNewChangeset','_keySchedule','getTypeOfUnitAdded$','SUCCUSS','session','setWaitCount','FETCH_MISS','COLLAB_SUBMIT_CHANGESET_URL_KEY','transformMutation','Univer','skeleton','_draw','_telemetryInfo','_onUserJoin','reset','COLLAB_WEB_SOCKET_URL','APPLY_REJECT','[OfflineState]:\x20received\x20acknowledgement.','MUTATION','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','startRow','contains','_waitCount','bind','_clearLocalCache','jsx','revision','getMergeData','getConfig','collaboration_new_changeset','csRejEvent','_awaitingChangeset','_doCryptBlock','collaboration-client.offline-data-not-saved','drawWith','collabWebSocketUrl','_themeService','setStateCache','FromArray','deleteCollaborator','getSheetBlock','salt','iterations','_acknowledgedAwaitingChangeset','visibilityState','getRoom','newCsEvent','addEventListener','origin','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','NEW_CHANGESETS','collab-rect-range-','CHANGESET_REJ','subject','duration','Tooltip','_onLocalMutation','flatMap','action','RECV','has','Error\x20on\x20receiving\x20event','onTransformRemoteChangesetByStateCache','_render','b64DecodeUnicode','UniverInstanceType','AUTHZ_URL_KEY','_createInitialState','onSendChangeset','HEARTBEAT_TIMEOUT','commentUpdateEvent','className','_memberService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','verdancy600','onRendered','_instanceService','disableLocalCache','_getCurrentRevision','_onMessage','_entities','indexOf','RETRY_CONNECTING_MAX_COUNT_KEY','currentSkeleton$','use','randomUUID','SetWorksheetActivateCommand','_onRefRangeChange','IImageIoService','_type','NoPadding','_transformService','_localStorageService','map','CollabrationImageIoService','addClipboardHook','session.room-full','forEach','CollaborationSession','crypto','@univerjs/docs-ui','_initRequestHeader','saveChangeset','takeUntil','apply','CollaborationController','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_candidateSocket','call','save\x20fail\x20reason\x20is\x20','Vector2','30YnwvMF','send','LIVESHARE_TERMINATE','_onRemoteRetry','BufferedBlockAlgorithm','toggleOnline','_updateSubUnitFromURLParams','getRandomValues','session.connection-failed','objects','UNKNOWN_CMD','People','registerRefRange','CONNECTOR_DATA_TOO_LARGE','getUnitType','width','init','ReplaySubject','_createSocket','131755YDQlYz','_createHelper','[PendingState]:\x20received\x20acknowledgement.','RETRY_CONNECTING_MAX_COUNT','textRanges','headers','fromCharCode','UnitSnapshot','collaMsg','ILocalStorageService','_onCursorUpdate','_getSheetObject','MentionType','setCurrentUser','LICENSE_EXPORT_SIZE_EXCEEDED','_resendTimer','clamp','ivSize','hasher','abs','dispose$','saveImage','_initEventListeners','COMMENT_UPDATE','black','_snapshotService','endColumn','status$','append','Optional','registerBeforeClose','_scheduleSaving','CompressMutationService','Shape','_docClipboardService','fromEvent','_isPermissionRej','CommentService','_onOffline','encryptBlock','getImage','image/bmp','editingUnit','/resources','_range','_transformUndoredo','findNodePositionByCharIndex','m2Prime','setActiveRange','code','createInstance','msCrypto','283325TuOloq','pad','replaceState','_updateState','\x0aAfter:\x20','SheetPermissionInitController','PERMISSION_REJ','objectType','every','_logService','status','_redoStacks','pluginName','_updateURLWithCurrentState','endRow','defIds','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ICommandService','Latin1','encode','currentColor','startsWith','combineLatest','onlineStatusTitle','ILogService','rxjs/operators','_onCursorDelete','onRemoteRej','APPLY_PERMISSION_DENIED','_replaceFileID','reject','getOwnPropertySymbols','RemoveRowCommandId','substr','_fetchMissChangesets','SessionStatus','saveSheetBlock','react.element','concat','PasswordBasedCipher','selection','INVALID_ARGUMENT','isInternalEditorID','unit-cache-','CollaborationEntity','path','_replayCachedMutations','some','_roomMembers$','_socketService','SHEET_VIEWPORT_KEY','MessageType','_clearRedo','univerjs-icon\x20univerjs-icon-','EffectRefRangId','CollaborationSocketService','_cipher','IUndoRedoService','fetch_missing','_collaborationTimeoutTimer','DocCollaborationEntity','getOwnPropertyDescriptor','WordArray','_hideTimer','UNIVER_PROJECT','COMPRESS_MUTATION_APPLY','_injector','synced','includes','createCollaborator','awaitingChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','setShapeProps','telemetry\x20info\x20is\x20not\x20initialized','_nRounds','_colorIndex','ITelemetryService','SheetsSelectionsService','#FFF','/object/','/collaborator','compose','_transformSelections','decrypt','_createHandler','error','session.room-not-exists','submit\x20changeset\x20error!','_initStatusComponent','Injector','_createHmacHelper','LocaleService','ciphertext','LIVESHARE_OPERATION','capture','localeService','unload','clearTimeout','_process','univer-offline','popstate','default','_syncEditingCollabCursor','_removeClearOtherTimer','copyFileMeta','_throwTelemetryCollaborationNewChangeset','delay','_imageSourceCache','MD5','loadOfflineData','collaboration-client.config','_uiPartsService','_imageIoService','result','algo','close','onRemoteChangeset','onStateChange','useRef','LIVESHARE_NEW_HOST','LEAVE','\x20-\x20','_setupSubUnitSync','connectInjector','replace','_lastPointer','triggerDblclick','_localCacheService','_socketMessageSubscription','CollaborationStatusDisplay','objectActions','_change$','_cursorInfo$','xlink:href','SheetSkeletonManagerService','_append','hostname','_keyPriorReset','_loadDoc','_remoteChangesetQueue','sessionStatus','APPLY_DUPLICATED','_scheduleHeartbeat','updatePermissionObjEvent','height','_reverseMap','isTransformChangesetsSuccess','OFFLINE','_drawRectRange','[OfflineState]:\x20received\x20rejection.','_sendHeartbeat','_lockTransition','attrs','isActive','M0\x200H16V16H0z','getUnitStatus$','text','onTransformRemoteChangesetByIMECache','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','data','APPLY_NON_SEQUENTIAL_REVISION','find','fillStyle','encrypt','_collabSessionService','getUndoRedoMutationParamsCache','onSyncEditingCollabCursor','Could\x20not\x20dynamically\x20require\x20\x22','createSocket','NOT_FOUND','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_getCtorByUniverType','_HTTPService','onTransformChange$','DeleteRangeMoveUpCommandId','UPDATE_PERMISSION_OBJ','JOIN','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','online','clear','charAt','_undoStacks','collaboration-session-retry','roles','_decreaseWaiting','makeDirty','BASE64','_showConflictNotification','UNIVER_SLIDE','IURLService','_revisionService','_exhaustRemoteChangesetQueue','createDecryptor','_createInitialStateImpl','/universer-api/authz','min','useCallback','list','getCellPositionByOffset','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_joinRoom','CHANGESET_REVISION_CONFILICT','debug','INotificationService','whenReady','Rectangle','_getLoginPath','_cursors','_transformStack','selections','forwardRef','debounce','getSheetBySheetId','ISnapshotServerService','roomMembers$','isTransformMutationsWithChangesetSuccess','HMAC','words','_univerInstanceService','getTime','10398CwHVue','enc','INGEST','_telemetryService','registerHTTPInterceptor','url','COMPRESS_MUTATION_SEND','transformChangesets','@univerjs/network','TOO_MANY_REQUESTS','storage','collab-text-anchor-','createIdentifier','UniverIcon','appendMutation','m1Prime','children','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getAncestorScale','_getScale','snapshotServerUrl','MentionIoHttpService','string','tag','react.fragment','UniverCollaborationClientPlugin','/unit/','name','_collabCursorController','POST','_http','connection\x20error','ImageUploadStatusType','ReactCurrentOwner','_socket$','_saveTaskMap','Encryptor','off-line-single_clip0_910_343','JOIN_ROOM_PERMISSION_DENIED','sequenceExecute','from','PENDING','collab-text-range-','rxjs','_updateLocalCache','onStarting','offline','compute','onTransformSelections','subscribe','getUnhiddenWorksheets','_getSaveTimeout','mutations','_saveCache','ranges','_httpService','_notificationService','HttpExport','1em','SnapshotServerOverHTTPService','getMemberID','_queuedRemoteChangesets','_docTransformIMECacheService','_handleHeartbeatEvent','length','mergeOverrideWithDependencies','482328Oxxjau','OpenSSL','split','_listenToOfflineEvent','startTime','_toggleOnline','MSG_FOR_ERROR','univer-pro.collaboration-client-socket-service','fetching\x20missing\x20changesets\x20from\x20','/universer-api/snapshot','_selfUnitIDs','DocSelectionManagerService','getInterceptPoints','labelPosition','transformIMECache','Hasher','_loadSheet','@univerjs/design','save','_handleJoinEvent','_state','url(#$1','JOIN_ROOM_FULL','@univerjs/sheets','_onJoinRoomEvent','RichTextEditingMutation','clearInterval','/universer-api/user/session-ticket','sigBytes','_labelPosition','collaboration.single-unit.warning','routeKey','BlockCipherMode','create','_prevBlock','fillText','keySize','exhaustSavingTask','_hasher','Base','...','HmacMD5','_permissionService','decryptBlock','_nDataBytes','evenodd','onCommandExecuted','_commandService','assign','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LOGIN_URL_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','480033TqlMkK','/fetchmissing?from=','APPLY_REVISION_CONFILICT','/universer-api/file/{fileID}/sign-url','color','target','ThresholdInterceptorFactory','@univerjs/core','jsxs','_sessionStatus$','DEFAULT_FILE_NAME','sessionTicket','idSuffix','react','_transformIMECache','_onRemoteRejected','_incrementRevisionNumber','univer-online-status-title','show','_invKeySchedule','NodePositionConvertToCursor','image/jpg','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_state$','DisposableCollection','IDocClipboardService','avatar','redoState','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','getCollabEntity','handleDeleteRangeMoveUp','_handler','[UniverCollaborationClientPlugin]','onlineStatusIcon','_textBubble','_clearOtherTimers','getCoordByCell','pushState','EvpKDF','now','collab-client.tooltip.reconnect','_resendTimeout','subUnitId','pauseCollaboration','for','[SyncedState]:\x20received\x20acknowledgement.','next','hasOwnProperty','_id','SetTextSelectionsOperation','LICENSE_MAX_UNITS_EXCEEDED','LOCAL_CACHE_INTERVAL','stringify','getSheetObject','uni.network.url-service','MemberService','_cursorShapes','restore','ceil','onMissedChangesetFetched','CollaborationStatus','SYNCED','CommandType','0\x200\x2016\x2016','337778teTVgJ'];_0x1d6f=function(){return _0x12f1c3;};return _0x1d6f();}var Ge={'exports':{}},Ye={'exports':{}},Is=Ye['exports'],ni;function Cs(){const _0x9f9e75=_0x2399be;return ni||(ni=0x1,function(_0x4b1b13,_0x565ee5){(function(_0x39c359,_0x3a10e){const _0x33cb5b=_0x52c2;_0x4b1b13[_0x33cb5b(0x22a)]=_0x3a10e(se());}(Is,function(_0x3ff8a7){const _0x558f8a=_0x52c2;return(function(){const _0x3a9dcd=_0x52c2;var _0x5a44eb=_0x3ff8a7,_0x4f7d3f=_0x5a44eb[_0x3a9dcd(0x23e)],_0x29ff0e=_0x4f7d3f[_0x3a9dcd(0x399)],_0x24c4fe=_0x4f7d3f['Hasher'],_0x446d0e=_0x5a44eb[_0x3a9dcd(0x3cd)],_0x138497=[],_0x111449=_0x446d0e[_0x3a9dcd(0x5ac)]=_0x24c4fe['extend']({'_doReset':function(){const _0x382b67=_0x3a9dcd;this['_hash']=new _0x29ff0e[(_0x382b67(0x324))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x1d7b6f,_0x409af1){const _0x4f7aab=_0x3a9dcd;for(var _0xf4a608=this[_0x4f7aab(0x26e)][_0x4f7aab(0x434)],_0x378e4a=_0xf4a608[0x0],_0x55a2a1=_0xf4a608[0x1],_0x564933=_0xf4a608[0x2],_0x259a06=_0xf4a608[0x3],_0x4e0845=_0xf4a608[0x4],_0x5a5c56=0x0;_0x5a5c56<0x50;_0x5a5c56++){if(_0x5a5c56<0x10)_0x138497[_0x5a5c56]=_0x1d7b6f[_0x409af1+_0x5a5c56]|0x0;else{var _0x262e8f=_0x138497[_0x5a5c56-0x3]^_0x138497[_0x5a5c56-0x8]^_0x138497[_0x5a5c56-0xe]^_0x138497[_0x5a5c56-0x10];_0x138497[_0x5a5c56]=_0x262e8f<<0x1|_0x262e8f>>>0x1f;}var _0x803f2e=(_0x378e4a<<0x5|_0x378e4a>>>0x1b)+_0x4e0845+_0x138497[_0x5a5c56];_0x5a5c56<0x14?_0x803f2e+=(_0x55a2a1&_0x564933|~_0x55a2a1&_0x259a06)+0x5a827999:_0x5a5c56<0x28?_0x803f2e+=(_0x55a2a1^_0x564933^_0x259a06)+0x6ed9eba1:_0x5a5c56<0x3c?_0x803f2e+=(_0x55a2a1&_0x564933|_0x55a2a1&_0x259a06|_0x564933&_0x259a06)-0x70e44324:_0x803f2e+=(_0x55a2a1^_0x564933^_0x259a06)-0x359d3e2a,_0x4e0845=_0x259a06,_0x259a06=_0x564933,_0x564933=_0x55a2a1<<0x1e|_0x55a2a1>>>0x2,_0x55a2a1=_0x378e4a,_0x378e4a=_0x803f2e;}_0xf4a608[0x0]=_0xf4a608[0x0]+_0x378e4a|0x0,_0xf4a608[0x1]=_0xf4a608[0x1]+_0x55a2a1|0x0,_0xf4a608[0x2]=_0xf4a608[0x2]+_0x564933|0x0,_0xf4a608[0x3]=_0xf4a608[0x3]+_0x259a06|0x0,_0xf4a608[0x4]=_0xf4a608[0x4]+_0x4e0845|0x0;},'_doFinalize':function(){const _0x307acd=_0x3a9dcd;var _0xc6d520=this[_0x307acd(0x5b3)],_0x513fd2=_0xc6d520[_0x307acd(0x434)],_0x3ccf15=this[_0x307acd(0x4a5)]*0x8,_0x885019=_0xc6d520['sigBytes']*0x8;return _0x513fd2[_0x885019>>>0x5]|=0x80<<0x18-_0x885019%0x20,_0x513fd2[(_0x885019+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x3ccf15/0x100000000),_0x513fd2[(_0x885019+0x40>>>0x9<<0x4)+0xf]=_0x3ccf15,_0xc6d520[_0x307acd(0x495)]=_0x513fd2['length']*0x4,this['_process'](),this[_0x307acd(0x26e)];},'clone':function(){const _0x46670a=_0x3a9dcd;var _0x4f7356=_0x24c4fe[_0x46670a(0x55c)]['call'](this);return _0x4f7356[_0x46670a(0x26e)]=this[_0x46670a(0x26e)]['clone'](),_0x4f7356;}});_0x5a44eb[_0x3a9dcd(0x5ac)]=_0x24c4fe['_createHelper'](_0x111449),_0x5a44eb['HmacSHA1']=_0x24c4fe[_0x3a9dcd(0x3b5)](_0x111449);}()),_0x3ff8a7[_0x558f8a(0x5ac)];}));}(Ye)),Ye[_0x9f9e75(0x22a)];}var qe={'exports':{}},Es=qe[_0x2399be(0x22a)],ri;function bs(){const _0x316c6b=_0x2399be;return ri||(ri=0x1,function(_0x578559,_0x2f0a0d){(function(_0x3305e6,_0x5e62eb){_0x578559['exports']=_0x5e62eb(se());}(Es,function(_0x3f9012){(function(){const _0x3e2f70=_0x52c2;var _0x245e1b=_0x3f9012,_0x32a962=_0x245e1b['lib'],_0x27fffb=_0x32a962[_0x3e2f70(0x4a0)],_0x30acd2=_0x245e1b[_0x3e2f70(0x438)],_0x530b9f=_0x30acd2[_0x3e2f70(0x61f)],_0x57a240=_0x245e1b[_0x3e2f70(0x3cd)];_0x57a240[_0x3e2f70(0x433)]=_0x27fffb[_0x3e2f70(0x260)]({'init':function(_0x368c40,_0x2e855a){const _0x3db6e2=_0x3e2f70;_0x368c40=this[_0x3db6e2(0x49f)]=new _0x368c40[(_0x3db6e2(0x324))](),typeof _0x2e855a==_0x3db6e2(0x44d)&&(_0x2e855a=_0x530b9f[_0x3db6e2(0x62e)](_0x2e855a));var _0x1a12df=_0x368c40[_0x3db6e2(0x619)],_0x50438d=_0x1a12df*0x4;_0x2e855a['sigBytes']>_0x50438d&&(_0x2e855a=_0x368c40[_0x3db6e2(0x4f1)](_0x2e855a)),_0x2e855a[_0x3db6e2(0x337)]();for(var _0x427603=this[_0x3db6e2(0x517)]=_0x2e855a[_0x3db6e2(0x55c)](),_0x23de8d=this[_0x3db6e2(0x259)]=_0x2e855a['clone'](),_0xadcabf=_0x427603[_0x3db6e2(0x434)],_0x247a29=_0x23de8d[_0x3db6e2(0x434)],_0x5d6472=0x0;_0x5d6472<_0x1a12df;_0x5d6472++)_0xadcabf[_0x5d6472]^=0x5c5c5c5c,_0x247a29[_0x5d6472]^=0x36363636;_0x427603[_0x3db6e2(0x495)]=_0x23de8d[_0x3db6e2(0x495)]=_0x50438d,this[_0x3db6e2(0x2b3)]();},'reset':function(){const _0x1b9b0f=_0x3e2f70;var _0x3c52ad=this[_0x1b9b0f(0x49f)];_0x3c52ad[_0x1b9b0f(0x2b3)](),_0x3c52ad[_0x1b9b0f(0x209)](this[_0x1b9b0f(0x259)]);},'update':function(_0x2fef6d){const _0x3634e4=_0x3e2f70;return this['_hasher'][_0x3634e4(0x209)](_0x2fef6d),this;},'finalize':function(_0xa55a91){const _0x486351=_0x3e2f70;var _0xe26e46=this[_0x486351(0x49f)],_0x2c1919=_0xe26e46['finalize'](_0xa55a91);_0xe26e46['reset']();var _0x428aeb=_0xe26e46[_0x486351(0x4f1)](this['_oKey'][_0x486351(0x55c)]()[_0x486351(0x381)](_0x2c1919));return _0x428aeb;}});}());}));}(qe)),qe[_0x316c6b(0x22a)];}var Ts=Ge['exports'],si;function Hi(){return si||(si=0x1,function(_0x4bdaaf,_0x1a6efa){(function(_0x5a20a8,_0x5d34d9,_0x329384){const _0x18e779=_0x52c2;_0x4bdaaf[_0x18e779(0x22a)]=_0x5d34d9(se(),Cs(),bs());}(Ts,function(_0x4d0146){const _0x44dbaa=_0x52c2;return(function(){const _0x2177fd=_0x52c2;var _0x2a26cc=_0x4d0146,_0x14b436=_0x2a26cc[_0x2177fd(0x23e)],_0x4ab70f=_0x14b436[_0x2177fd(0x4a0)],_0x565b6b=_0x14b436['WordArray'],_0x494bbc=_0x2a26cc[_0x2177fd(0x3cd)],_0x41de82=_0x494bbc[_0x2177fd(0x3c7)],_0x5d42a5=_0x494bbc['EvpKDF']=_0x4ab70f[_0x2177fd(0x260)]({'cfg':_0x4ab70f['extend']({'keySize':0x80/0x20,'hasher':_0x41de82,'iterations':0x1}),'init':function(_0x2e1e5d){const _0x12ed2d=_0x2177fd;this['cfg']=this[_0x12ed2d(0x5bd)]['extend'](_0x2e1e5d);},'compute':function(_0x1ee3e8,_0x2cfdf8){const _0x818e8=_0x2177fd;for(var _0x7144ff,_0x6f3a03=this['cfg'],_0x36005f=_0x6f3a03[_0x818e8(0x339)][_0x818e8(0x49a)](),_0x23877e=_0x565b6b[_0x818e8(0x49a)](),_0x216aa1=_0x23877e['words'],_0x2d8e6a=_0x6f3a03[_0x818e8(0x49d)],_0x16e909=_0x6f3a03[_0x818e8(0x2cf)];_0x216aa1[_0x818e8(0x477)]<_0x2d8e6a;){_0x7144ff&&_0x36005f['update'](_0x7144ff),_0x7144ff=_0x36005f[_0x818e8(0x209)](_0x1ee3e8)[_0x818e8(0x4f1)](_0x2cfdf8),_0x36005f[_0x818e8(0x2b3)]();for(var _0x4a34ac=0x1;_0x4a34ac<_0x16e909;_0x4a34ac++)_0x7144ff=_0x36005f['finalize'](_0x7144ff),_0x36005f['reset']();_0x23877e['concat'](_0x7144ff);}return _0x23877e[_0x818e8(0x495)]=_0x2d8e6a*0x4,_0x23877e;}});_0x2a26cc['EvpKDF']=function(_0x5ad434,_0x40006d,_0x2c7900){const _0x4e2e7c=_0x2177fd;return _0x5d42a5['create'](_0x2c7900)[_0x4e2e7c(0x466)](_0x5ad434,_0x40006d);};}()),_0x4d0146[_0x44dbaa(0x4d3)];}));}(Ge)),Ge['exports'];}var Ke={'exports':{}},Rs=Ke[_0x2399be(0x22a)],oi;function Bi(){const _0x24c92c=_0x2399be;return oi||(oi=0x1,function(_0x13495c,_0xafab3b){(function(_0xb499ad,_0x7fb77a,_0xaa6afa){const _0x14ad3c=_0x52c2;_0x13495c[_0x14ad3c(0x22a)]=_0x7fb77a(se(),Hi());}(Rs,function(_0x40def1){const _0x324787=_0x52c2;_0x40def1[_0x324787(0x23e)][_0x324787(0x652)]||function(_0x31e2cf){const _0x32f0d3=_0x324787;var _0x476e7e=_0x40def1,_0x728acc=_0x476e7e[_0x32f0d3(0x23e)],_0x52ab03=_0x728acc[_0x32f0d3(0x4a0)],_0x324fc5=_0x728acc[_0x32f0d3(0x399)],_0x283585=_0x728acc[_0x32f0d3(0x318)],_0x49b09e=_0x476e7e[_0x32f0d3(0x438)];_0x49b09e[_0x32f0d3(0x61f)];var _0x2841d1=_0x49b09e[_0x32f0d3(0x5ed)],_0x19a923=_0x476e7e['algo'],_0x3fc70d=_0x19a923[_0x32f0d3(0x4d3)],_0x530e74=_0x728acc[_0x32f0d3(0x652)]=_0x283585['extend']({'cfg':_0x52ab03[_0x32f0d3(0x260)](),'createEncryptor':function(_0x77d292,_0x23ce97){const _0x483e24=_0x32f0d3;return this[_0x483e24(0x49a)](this[_0x483e24(0x535)],_0x77d292,_0x23ce97);},'createDecryptor':function(_0x59fa28,_0x26feb1){const _0x521a38=_0x32f0d3;return this['create'](this[_0x521a38(0x565)],_0x59fa28,_0x26feb1);},'init':function(_0x4aebe9,_0x3a8bad,_0x98ed23){const _0x3f2e7d=_0x32f0d3;this[_0x3f2e7d(0x5bd)]=this['cfg'][_0x3f2e7d(0x260)](_0x98ed23),this[_0x3f2e7d(0x1c0)]=_0x4aebe9,this[_0x3f2e7d(0x50e)]=_0x3a8bad,this[_0x3f2e7d(0x2b3)]();},'reset':function(){const _0x30552f=_0x32f0d3;_0x283585['reset'][_0x30552f(0x311)](this),this['_doReset']();},'process':function(_0x1943ff){const _0x5206f5=_0x32f0d3;return this['_append'](_0x1943ff),this[_0x5206f5(0x3bd)]();},'finalize':function(_0x163031){const _0x222f82=_0x32f0d3;_0x163031&&this[_0x222f82(0x3e2)](_0x163031);var _0x3b51d0=this[_0x222f82(0x1cd)]();return _0x3b51d0;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x38d803(_0x3cd8be){const _0x376289=_0x52c2;return typeof _0x3cd8be==_0x376289(0x44d)?_0x591919:_0x4f9e20;}return function(_0x4183b0){return{'encrypt':function(_0x4e5efa,_0x2603b6,_0x5ecac7){const _0x3d6523=_0x52c2;return _0x38d803(_0x2603b6)[_0x3d6523(0x3fe)](_0x4183b0,_0x4e5efa,_0x2603b6,_0x5ecac7);},'decrypt':function(_0x1ee562,_0x5e2952,_0x59590f){const _0x42a877=_0x52c2;return _0x38d803(_0x5e2952)[_0x42a877(0x3ae)](_0x4183b0,_0x1ee562,_0x5e2952,_0x59590f);}};};}())});_0x728acc[_0x32f0d3(0x4ee)]=_0x530e74[_0x32f0d3(0x260)]({'_doFinalize':function(){const _0x5e44f7=_0x32f0d3;var _0x44da18=this[_0x5e44f7(0x3bd)](!0x0);return _0x44da18;},'blockSize':0x1});var _0x3cdb04=_0x476e7e[_0x32f0d3(0x5f3)]={},_0x7b0c56=_0x728acc[_0x32f0d3(0x499)]=_0x52ab03['extend']({'createEncryptor':function(_0x3e0df1,_0x54dde6){const _0x1983aa=_0x32f0d3;return this['Encryptor'][_0x1983aa(0x49a)](_0x3e0df1,_0x54dde6);},'createDecryptor':function(_0x395f3e,_0xe01d28){return this['Decryptor']['create'](_0x395f3e,_0xe01d28);},'init':function(_0x5ca486,_0x1d5d15){const _0x90c0c8=_0x32f0d3;this[_0x90c0c8(0x393)]=_0x5ca486,this[_0x90c0c8(0x62f)]=_0x1d5d15;}}),_0x34d334=_0x3cdb04[_0x32f0d3(0x1ad)]=(function(){const _0x54aec0=_0x32f0d3;var _0x2cfa96=_0x7b0c56[_0x54aec0(0x260)]();_0x2cfa96[_0x54aec0(0x45b)]=_0x2cfa96['extend']({'processBlock':function(_0x965570,_0x21b7a1){const _0x2fb1f7=_0x54aec0;var _0x28a5f7=this[_0x2fb1f7(0x393)],_0x247bdf=_0x28a5f7[_0x2fb1f7(0x619)];_0x4bb879[_0x2fb1f7(0x311)](this,_0x965570,_0x21b7a1,_0x247bdf),_0x28a5f7[_0x2fb1f7(0x34e)](_0x965570,_0x21b7a1),this[_0x2fb1f7(0x49b)]=_0x965570[_0x2fb1f7(0x5a5)](_0x21b7a1,_0x21b7a1+_0x247bdf);}}),_0x2cfa96['Decryptor']=_0x2cfa96[_0x54aec0(0x260)]({'processBlock':function(_0x3e5a63,_0xc2a2a){const _0x1d5cb9=_0x54aec0;var _0x65ab61=this[_0x1d5cb9(0x393)],_0x5b35ce=_0x65ab61[_0x1d5cb9(0x619)],_0xddca9e=_0x3e5a63[_0x1d5cb9(0x5a5)](_0xc2a2a,_0xc2a2a+_0x5b35ce);_0x65ab61[_0x1d5cb9(0x4a4)](_0x3e5a63,_0xc2a2a),_0x4bb879['call'](this,_0x3e5a63,_0xc2a2a,_0x5b35ce),this[_0x1d5cb9(0x49b)]=_0xddca9e;}});function _0x4bb879(_0x31fac2,_0x3d0b27,_0xed5b67){const _0x5ef79d=_0x54aec0;var _0x42a6bd,_0x4171de=this[_0x5ef79d(0x62f)];_0x4171de?(_0x42a6bd=_0x4171de,this[_0x5ef79d(0x62f)]=_0x31e2cf):_0x42a6bd=this['_prevBlock'];for(var _0x428313=0x0;_0x428313<_0xed5b67;_0x428313++)_0x31fac2[_0x3d0b27+_0x428313]^=_0x42a6bd[_0x428313];}return _0x2cfa96;}()),_0x17b3ee=_0x476e7e[_0x32f0d3(0x35c)]={},_0x142005=_0x17b3ee['Pkcs7']={'pad':function(_0x402283,_0x2e9fae){const _0x398be4=_0x32f0d3;for(var _0x5eb509=_0x2e9fae*0x4,_0x5235e7=_0x5eb509-_0x402283[_0x398be4(0x495)]%_0x5eb509,_0x397879=_0x5235e7<<0x18|_0x5235e7<<0x10|_0x5235e7<<0x8|_0x5235e7,_0x1d866e=[],_0x2f8673=0x0;_0x2f8673<_0x5235e7;_0x2f8673+=0x4)_0x1d866e[_0x398be4(0x644)](_0x397879);var _0x28fda8=_0x324fc5[_0x398be4(0x49a)](_0x1d866e,_0x5235e7);_0x402283[_0x398be4(0x381)](_0x28fda8);},'unpad':function(_0x3284ac){const _0x3123f5=_0x32f0d3;var _0x38e516=_0x3284ac[_0x3123f5(0x434)][_0x3284ac['sigBytes']-0x1>>>0x2]&0xff;_0x3284ac['sigBytes']-=_0x38e516;}};_0x728acc[_0x32f0d3(0x648)]=_0x530e74[_0x32f0d3(0x260)]({'cfg':_0x530e74[_0x32f0d3(0x5bd)][_0x32f0d3(0x260)]({'mode':_0x34d334,'padding':_0x142005}),'reset':function(){const _0x2eacfa=_0x32f0d3;var _0x30437b;_0x530e74[_0x2eacfa(0x2b3)][_0x2eacfa(0x311)](this);var _0x5c3fbc=this['cfg'],_0x8deac2=_0x5c3fbc['iv'],_0x5947df=_0x5c3fbc[_0x2eacfa(0x5f3)];this[_0x2eacfa(0x1c0)]==this[_0x2eacfa(0x535)]?_0x30437b=_0x5947df[_0x2eacfa(0x196)]:(_0x30437b=_0x5947df[_0x2eacfa(0x41b)],this['_minBufferSize']=0x1),this['_mode']&&this[_0x2eacfa(0x1b7)][_0x2eacfa(0x286)]==_0x30437b?this[_0x2eacfa(0x1b7)][_0x2eacfa(0x324)](this,_0x8deac2&&_0x8deac2[_0x2eacfa(0x434)]):(this[_0x2eacfa(0x1b7)]=_0x30437b['call'](_0x5947df,this,_0x8deac2&&_0x8deac2[_0x2eacfa(0x434)]),this[_0x2eacfa(0x1b7)][_0x2eacfa(0x286)]=_0x30437b);},'_doProcessBlock':function(_0x5c6b25,_0x5bae08){const _0x2d544c=_0x32f0d3;this[_0x2d544c(0x1b7)][_0x2d544c(0x219)](_0x5c6b25,_0x5bae08);},'_doFinalize':function(){const _0x1e8ec8=_0x32f0d3;var _0x545e73,_0x3c999b=this[_0x1e8ec8(0x5bd)]['padding'];return this['_xformMode']==this[_0x1e8ec8(0x535)]?(_0x3c999b['pad'](this['_data'],this['blockSize']),_0x545e73=this['_process'](!0x0)):(_0x545e73=this[_0x1e8ec8(0x3bd)](!0x0),_0x3c999b[_0x1e8ec8(0x200)](_0x545e73)),_0x545e73;},'blockSize':0x80/0x20});var _0x13271a=_0x728acc['CipherParams']=_0x52ab03['extend']({'init':function(_0x1ce159){this['mixIn'](_0x1ce159);},'toString':function(_0x49b9a3){const _0x39e257=_0x32f0d3;return(_0x49b9a3||this['formatter'])[_0x39e257(0x4e1)](this);}}),_0x1ed5c9=_0x476e7e['format']={},_0x73bb46=_0x1ed5c9[_0x32f0d3(0x47a)]={'stringify':function(_0x13979a){const _0x5345f1=_0x32f0d3;var _0x328c44,_0x2481b1=_0x13979a['ciphertext'],_0x402c26=_0x13979a['salt'];return _0x402c26?_0x328c44=_0x324fc5[_0x5345f1(0x49a)]([0x53616c74,0x65645f5f])[_0x5345f1(0x381)](_0x402c26)[_0x5345f1(0x381)](_0x2481b1):_0x328c44=_0x2481b1,_0x328c44[_0x5345f1(0x24a)](_0x2841d1);},'parse':function(_0x29143b){const _0x3d5fe1=_0x32f0d3;var _0x117a13,_0x4b1f8d=_0x2841d1[_0x3d5fe1(0x62e)](_0x29143b),_0x2d9f0f=_0x4b1f8d[_0x3d5fe1(0x434)];return _0x2d9f0f[0x0]==0x53616c74&&_0x2d9f0f[0x1]==0x65645f5f&&(_0x117a13=_0x324fc5['create'](_0x2d9f0f[_0x3d5fe1(0x5a5)](0x2,0x4)),_0x2d9f0f['splice'](0x0,0x4),_0x4b1f8d[_0x3d5fe1(0x495)]-=0x10),_0x13271a['create']({'ciphertext':_0x4b1f8d,'salt':_0x117a13});}},_0x4f9e20=_0x728acc[_0x32f0d3(0x50f)]=_0x52ab03[_0x32f0d3(0x260)]({'cfg':_0x52ab03[_0x32f0d3(0x260)]({'format':_0x73bb46}),'encrypt':function(_0x59950e,_0x4808b5,_0x8c2a12,_0xf2c79){const _0x35dd68=_0x32f0d3;_0xf2c79=this[_0x35dd68(0x5bd)][_0x35dd68(0x260)](_0xf2c79);var _0x7effdb=_0x59950e[_0x35dd68(0x196)](_0x8c2a12,_0xf2c79),_0x3b3b3b=_0x7effdb['finalize'](_0x4808b5),_0x17b2a1=_0x7effdb['cfg'];return _0x13271a['create']({'ciphertext':_0x3b3b3b,'key':_0x8c2a12,'iv':_0x17b2a1['iv'],'algorithm':_0x59950e,'mode':_0x17b2a1[_0x35dd68(0x5f3)],'padding':_0x17b2a1[_0x35dd68(0x22d)],'blockSize':_0x59950e['blockSize'],'formatter':_0xf2c79[_0x35dd68(0x205)]});},'decrypt':function(_0x736fd5,_0x5f0c5b,_0x1f160b,_0x18f5fa){const _0x120270=_0x32f0d3;_0x18f5fa=this[_0x120270(0x5bd)][_0x120270(0x260)](_0x18f5fa),_0x5f0c5b=this[_0x120270(0x521)](_0x5f0c5b,_0x18f5fa[_0x120270(0x205)]);var _0x57afff=_0x736fd5[_0x120270(0x41b)](_0x1f160b,_0x18f5fa)[_0x120270(0x4f1)](_0x5f0c5b[_0x120270(0x3b7)]);return _0x57afff;},'_parse':function(_0x5aac11,_0x15efbc){const _0x5c6de8=_0x32f0d3;return typeof _0x5aac11==_0x5c6de8(0x44d)?_0x15efbc[_0x5c6de8(0x62e)](_0x5aac11,this):_0x5aac11;}}),_0x1f01b4=_0x476e7e[_0x32f0d3(0x54f)]={},_0x327fb4=_0x1f01b4[_0x32f0d3(0x47a)]={'execute':function(_0x48ca24,_0x471ac0,_0x5dfc87,_0x545a10,_0x195195){const _0xb7d06d=_0x32f0d3;if(_0x545a10||(_0x545a10=_0x324fc5[_0xb7d06d(0x1c4)](0x40/0x8)),_0x195195)var _0x59e160=_0x3fc70d[_0xb7d06d(0x49a)]({'keySize':_0x471ac0+_0x5dfc87,'hasher':_0x195195})['compute'](_0x48ca24,_0x545a10);else var _0x59e160=_0x3fc70d[_0xb7d06d(0x49a)]({'keySize':_0x471ac0+_0x5dfc87})[_0xb7d06d(0x466)](_0x48ca24,_0x545a10);var _0x169612=_0x324fc5[_0xb7d06d(0x49a)](_0x59e160[_0xb7d06d(0x434)][_0xb7d06d(0x5a5)](_0x471ac0),_0x5dfc87*0x4);return _0x59e160[_0xb7d06d(0x495)]=_0x471ac0*0x4,_0x13271a['create']({'key':_0x59e160,'iv':_0x169612,'salt':_0x545a10});}},_0x591919=_0x728acc[_0x32f0d3(0x382)]=_0x4f9e20['extend']({'cfg':_0x4f9e20['cfg'][_0x32f0d3(0x260)]({'kdf':_0x327fb4}),'encrypt':function(_0x32019e,_0x529f43,_0xabe0d2,_0x130fe3){const _0x5575f0=_0x32f0d3;_0x130fe3=this[_0x5575f0(0x5bd)][_0x5575f0(0x260)](_0x130fe3);var _0x5910eb=_0x130fe3[_0x5575f0(0x54f)]['execute'](_0xabe0d2,_0x32019e[_0x5575f0(0x49d)],_0x32019e[_0x5575f0(0x338)],_0x130fe3[_0x5575f0(0x2ce)],_0x130fe3[_0x5575f0(0x339)]);_0x130fe3['iv']=_0x5910eb['iv'];var _0x47e3b7=_0x4f9e20['encrypt'][_0x5575f0(0x311)](this,_0x32019e,_0x529f43,_0x5910eb[_0x5575f0(0x18e)],_0x130fe3);return _0x47e3b7[_0x5575f0(0x214)](_0x5910eb),_0x47e3b7;},'decrypt':function(_0x533837,_0x3723e7,_0x589e50,_0x21ea59){const _0x39021e=_0x32f0d3;_0x21ea59=this['cfg']['extend'](_0x21ea59),_0x3723e7=this[_0x39021e(0x521)](_0x3723e7,_0x21ea59[_0x39021e(0x205)]);var _0x3eed18=_0x21ea59[_0x39021e(0x54f)][_0x39021e(0x236)](_0x589e50,_0x533837[_0x39021e(0x49d)],_0x533837[_0x39021e(0x338)],_0x3723e7[_0x39021e(0x2ce)],_0x21ea59['hasher']);_0x21ea59['iv']=_0x3eed18['iv'];var _0x428a7d=_0x4f9e20[_0x39021e(0x3ae)][_0x39021e(0x311)](this,_0x533837,_0x3723e7,_0x3eed18[_0x39021e(0x18e)],_0x21ea59);return _0x428a7d;}});}();}));}(Ke)),Ke[_0x24c92c(0x22a)];}var Os=ke['exports'],ai;function ys(){return ai||(ai=0x1,function(_0x309b41,_0x136a45){(function(_0x18d935,_0x3de20b,_0x42a3be){const _0x171685=_0x52c2;_0x309b41[_0x171685(0x22a)]=_0x3de20b(se(),ji(),gs(),Hi(),Bi());}(Os,function(_0xf7749c){const _0x56a748=_0x52c2;return(function(){const _0x1d2b6f=_0x52c2;var _0x48bad5=_0xf7749c,_0x382a35=_0x48bad5['lib'],_0x3255a3=_0x382a35[_0x1d2b6f(0x648)],_0x203b9f=_0x48bad5['algo'],_0x3a50a2=[],_0xd9ffde=[],_0x4f60b5=[],_0x419c5f=[],_0x1927ae=[],_0x5d3a2a=[],_0x2522de=[],_0x2c9e04=[],_0x324b53=[],_0x8fb33e=[];(function(){for(var _0x2cbd68=[],_0x2b1a63=0x0;_0x2b1a63<0x100;_0x2b1a63++)_0x2b1a63<0x80?_0x2cbd68[_0x2b1a63]=_0x2b1a63<<0x1:_0x2cbd68[_0x2b1a63]=_0x2b1a63<<0x1^0x11b;for(var _0x15ddc8=0x0,_0x2b807e=0x0,_0x2b1a63=0x0;_0x2b1a63<0x100;_0x2b1a63++){var _0x29ef7e=_0x2b807e^_0x2b807e<<0x1^_0x2b807e<<0x2^_0x2b807e<<0x3^_0x2b807e<<0x4;_0x29ef7e=_0x29ef7e>>>0x8^_0x29ef7e&0xff^0x63,_0x3a50a2[_0x15ddc8]=_0x29ef7e,_0xd9ffde[_0x29ef7e]=_0x15ddc8;var _0x76885d=_0x2cbd68[_0x15ddc8],_0x5d90c3=_0x2cbd68[_0x76885d],_0x6db72f=_0x2cbd68[_0x5d90c3],_0x22e4fd=_0x2cbd68[_0x29ef7e]*0x101^_0x29ef7e*0x1010100;_0x4f60b5[_0x15ddc8]=_0x22e4fd<<0x18|_0x22e4fd>>>0x8,_0x419c5f[_0x15ddc8]=_0x22e4fd<<0x10|_0x22e4fd>>>0x10,_0x1927ae[_0x15ddc8]=_0x22e4fd<<0x8|_0x22e4fd>>>0x18,_0x5d3a2a[_0x15ddc8]=_0x22e4fd;var _0x22e4fd=_0x6db72f*0x1010101^_0x5d90c3*0x10001^_0x76885d*0x101^_0x15ddc8*0x1010100;_0x2522de[_0x29ef7e]=_0x22e4fd<<0x18|_0x22e4fd>>>0x8,_0x2c9e04[_0x29ef7e]=_0x22e4fd<<0x10|_0x22e4fd>>>0x10,_0x324b53[_0x29ef7e]=_0x22e4fd<<0x8|_0x22e4fd>>>0x18,_0x8fb33e[_0x29ef7e]=_0x22e4fd,_0x15ddc8?(_0x15ddc8=_0x76885d^_0x2cbd68[_0x2cbd68[_0x2cbd68[_0x6db72f^_0x76885d]]],_0x2b807e^=_0x2cbd68[_0x2cbd68[_0x2b807e]]):_0x15ddc8=_0x2b807e=0x1;}}());var _0x4578c0=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x51d90f=_0x203b9f['AES']=_0x3255a3['extend']({'_doReset':function(){const _0x1f5b06=_0x1d2b6f;var _0x594d14;if(!(this['_nRounds']&&this[_0x1f5b06(0x3e4)]===this[_0x1f5b06(0x50e)])){for(var _0x445de7=this[_0x1f5b06(0x3e4)]=this[_0x1f5b06(0x50e)],_0x50a014=_0x445de7['words'],_0x5ce515=_0x445de7[_0x1f5b06(0x495)]/0x4,_0x1ca76b=this['_nRounds']=_0x5ce515+0x6,_0x53920e=(_0x1ca76b+0x1)*0x4,_0x24226f=this['_keySchedule']=[],_0x5029aa=0x0;_0x5029aa<_0x53920e;_0x5029aa++)_0x5029aa<_0x5ce515?_0x24226f[_0x5029aa]=_0x50a014[_0x5029aa]:(_0x594d14=_0x24226f[_0x5029aa-0x1],_0x5029aa%_0x5ce515?_0x5ce515>0x6&&_0x5029aa%_0x5ce515==0x4&&(_0x594d14=_0x3a50a2[_0x594d14>>>0x18]<<0x18|_0x3a50a2[_0x594d14>>>0x10&0xff]<<0x10|_0x3a50a2[_0x594d14>>>0x8&0xff]<<0x8|_0x3a50a2[_0x594d14&0xff]):(_0x594d14=_0x594d14<<0x8|_0x594d14>>>0x18,_0x594d14=_0x3a50a2[_0x594d14>>>0x18]<<0x18|_0x3a50a2[_0x594d14>>>0x10&0xff]<<0x10|_0x3a50a2[_0x594d14>>>0x8&0xff]<<0x8|_0x3a50a2[_0x594d14&0xff],_0x594d14^=_0x4578c0[_0x5029aa/_0x5ce515|0x0]<<0x18),_0x24226f[_0x5029aa]=_0x24226f[_0x5029aa-_0x5ce515]^_0x594d14);for(var _0x11e867=this['_invKeySchedule']=[],_0x422fab=0x0;_0x422fab<_0x53920e;_0x422fab++){var _0x5029aa=_0x53920e-_0x422fab;if(_0x422fab%0x4)var _0x594d14=_0x24226f[_0x5029aa];else var _0x594d14=_0x24226f[_0x5029aa-0x4];_0x422fab<0x4||_0x5029aa<=0x4?_0x11e867[_0x422fab]=_0x594d14:_0x11e867[_0x422fab]=_0x2522de[_0x3a50a2[_0x594d14>>>0x18]]^_0x2c9e04[_0x3a50a2[_0x594d14>>>0x10&0xff]]^_0x324b53[_0x3a50a2[_0x594d14>>>0x8&0xff]]^_0x8fb33e[_0x3a50a2[_0x594d14&0xff]];}}},'encryptBlock':function(_0x598a06,_0x3518d0){const _0x255e26=_0x1d2b6f;this[_0x255e26(0x2c5)](_0x598a06,_0x3518d0,this[_0x255e26(0x2a6)],_0x4f60b5,_0x419c5f,_0x1927ae,_0x5d3a2a,_0x3a50a2);},'decryptBlock':function(_0x296ab7,_0x5a4aaa){const _0x5cee1=_0x1d2b6f;var _0x1a3d2d=_0x296ab7[_0x5a4aaa+0x1];_0x296ab7[_0x5a4aaa+0x1]=_0x296ab7[_0x5a4aaa+0x3],_0x296ab7[_0x5a4aaa+0x3]=_0x1a3d2d,this['_doCryptBlock'](_0x296ab7,_0x5a4aaa,this[_0x5cee1(0x4c0)],_0x2522de,_0x2c9e04,_0x324b53,_0x8fb33e,_0xd9ffde);var _0x1a3d2d=_0x296ab7[_0x5a4aaa+0x1];_0x296ab7[_0x5a4aaa+0x1]=_0x296ab7[_0x5a4aaa+0x3],_0x296ab7[_0x5a4aaa+0x3]=_0x1a3d2d;},'_doCryptBlock':function(_0x4739e6,_0x17e1ed,_0x5dc8ef,_0x46d009,_0x5d41d6,_0x5e7663,_0x1c240a,_0x1dabd7){const _0x38e55e=_0x1d2b6f;for(var _0x54e578=this[_0x38e55e(0x3a5)],_0x32027c=_0x4739e6[_0x17e1ed]^_0x5dc8ef[0x0],_0x425c0c=_0x4739e6[_0x17e1ed+0x1]^_0x5dc8ef[0x1],_0x251486=_0x4739e6[_0x17e1ed+0x2]^_0x5dc8ef[0x2],_0x593c50=_0x4739e6[_0x17e1ed+0x3]^_0x5dc8ef[0x3],_0x448555=0x4,_0x14e63e=0x1;_0x14e63e<_0x54e578;_0x14e63e++){var _0x519856=_0x46d009[_0x32027c>>>0x18]^_0x5d41d6[_0x425c0c>>>0x10&0xff]^_0x5e7663[_0x251486>>>0x8&0xff]^_0x1c240a[_0x593c50&0xff]^_0x5dc8ef[_0x448555++],_0x44c5e7=_0x46d009[_0x425c0c>>>0x18]^_0x5d41d6[_0x251486>>>0x10&0xff]^_0x5e7663[_0x593c50>>>0x8&0xff]^_0x1c240a[_0x32027c&0xff]^_0x5dc8ef[_0x448555++],_0xfeaba8=_0x46d009[_0x251486>>>0x18]^_0x5d41d6[_0x593c50>>>0x10&0xff]^_0x5e7663[_0x32027c>>>0x8&0xff]^_0x1c240a[_0x425c0c&0xff]^_0x5dc8ef[_0x448555++],_0x2637ec=_0x46d009[_0x593c50>>>0x18]^_0x5d41d6[_0x32027c>>>0x10&0xff]^_0x5e7663[_0x425c0c>>>0x8&0xff]^_0x1c240a[_0x251486&0xff]^_0x5dc8ef[_0x448555++];_0x32027c=_0x519856,_0x425c0c=_0x44c5e7,_0x251486=_0xfeaba8,_0x593c50=_0x2637ec;}var _0x519856=(_0x1dabd7[_0x32027c>>>0x18]<<0x18|_0x1dabd7[_0x425c0c>>>0x10&0xff]<<0x10|_0x1dabd7[_0x251486>>>0x8&0xff]<<0x8|_0x1dabd7[_0x593c50&0xff])^_0x5dc8ef[_0x448555++],_0x44c5e7=(_0x1dabd7[_0x425c0c>>>0x18]<<0x18|_0x1dabd7[_0x251486>>>0x10&0xff]<<0x10|_0x1dabd7[_0x593c50>>>0x8&0xff]<<0x8|_0x1dabd7[_0x32027c&0xff])^_0x5dc8ef[_0x448555++],_0xfeaba8=(_0x1dabd7[_0x251486>>>0x18]<<0x18|_0x1dabd7[_0x593c50>>>0x10&0xff]<<0x10|_0x1dabd7[_0x32027c>>>0x8&0xff]<<0x8|_0x1dabd7[_0x425c0c&0xff])^_0x5dc8ef[_0x448555++],_0x2637ec=(_0x1dabd7[_0x593c50>>>0x18]<<0x18|_0x1dabd7[_0x32027c>>>0x10&0xff]<<0x10|_0x1dabd7[_0x425c0c>>>0x8&0xff]<<0x8|_0x1dabd7[_0x251486&0xff])^_0x5dc8ef[_0x448555++];_0x4739e6[_0x17e1ed]=_0x519856,_0x4739e6[_0x17e1ed+0x1]=_0x44c5e7,_0x4739e6[_0x17e1ed+0x2]=_0xfeaba8,_0x4739e6[_0x17e1ed+0x3]=_0x2637ec;},'keySize':0x100/0x20});_0x48bad5['AES']=_0x3255a3[_0x1d2b6f(0x328)](_0x51d90f);}()),_0xf7749c[_0x56a748(0x60c)];}));}(ke)),ke['exports'];}var Ds=ys();const Ps=$e(Ds);var ws=ji();const ci=$e(ws);var ze={'exports':{}},Us=ze['exports'],li;function Ms(){const _0x5bde03=_0x2399be;return li||(li=0x1,function(_0x328e25,_0x2b1241){(function(_0x517996,_0x25800a){const _0x29e211=_0x52c2;_0x328e25[_0x29e211(0x22a)]=_0x25800a(se());}(Us,function(_0x5dba4a){const _0x468f33=_0x52c2;return _0x5dba4a[_0x468f33(0x438)][_0x468f33(0x61f)];}));}(ze)),ze[_0x5bde03(0x22a)];}var Ns=Ms();const As=$e(Ns);var Xe={'exports':{}},Ls=Xe[_0x2399be(0x22a)],hi;function xs(){const _0x4f64b9=_0x2399be;return hi||(hi=0x1,function(_0x4710b4,_0x127af3){(function(_0xee4dc3,_0x3a92d5){const _0x448d45=_0x52c2;_0x4710b4[_0x448d45(0x22a)]=_0x3a92d5(se());}(Ls,function(_0x116cfb){const _0x5460e6=_0x52c2;return(function(){const _0xd5f87c=_0x52c2;if(typeof ArrayBuffer==_0xd5f87c(0x553)){var _0x44df24=_0x116cfb,_0x38fc9c=_0x44df24[_0xd5f87c(0x23e)],_0xd1e706=_0x38fc9c[_0xd5f87c(0x399)],_0x3fba06=_0xd1e706['init'],_0x37f30e=_0xd1e706[_0xd5f87c(0x324)]=function(_0x223762){const _0x498803=_0xd5f87c;if(_0x223762 instanceof ArrayBuffer&&(_0x223762=new Uint8Array(_0x223762)),(_0x223762 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x223762 instanceof Uint8ClampedArray||_0x223762 instanceof Int16Array||_0x223762 instanceof Uint16Array||_0x223762 instanceof Int32Array||_0x223762 instanceof Uint32Array||_0x223762 instanceof Float32Array||_0x223762 instanceof Float64Array)&&(_0x223762=new Uint8Array(_0x223762[_0x498803(0x5ab)],_0x223762['byteOffset'],_0x223762[_0x498803(0x248)])),_0x223762 instanceof Uint8Array){for(var _0x4a61e4=_0x223762[_0x498803(0x248)],_0x290243=[],_0x38d2be=0x0;_0x38d2be<_0x4a61e4;_0x38d2be++)_0x290243[_0x38d2be>>>0x2]|=_0x223762[_0x38d2be]<<0x18-_0x38d2be%0x4*0x8;_0x3fba06['call'](this,_0x290243,_0x4a61e4);}else _0x3fba06[_0x498803(0x30d)](this,arguments);};_0x37f30e['prototype']=_0xd1e706;}}()),_0x116cfb[_0x5460e6(0x23e)]['WordArray'];}));}(Xe)),Xe[_0x4f64b9(0x22a)];}var $s=xs();const js=$e($s);var Je={'exports':{}},Hs=Je[_0x2399be(0x22a)],_i;function Bs(){const _0xddb619=_0x2399be;return _i||(_i=0x1,function(_0x37166d,_0x57e1a9){(function(_0x1c69dd,_0x470410,_0x1c6459){_0x37166d['exports']=_0x470410(se(),Bi());}(Hs,function(_0x3a76d1){const _0x47baa9=_0x52c2;return _0x3a76d1[_0x47baa9(0x35c)][_0x47baa9(0x2ff)]={'pad':function(){},'unpad':function(){}},_0x3a76d1[_0x47baa9(0x35c)][_0x47baa9(0x2ff)];}));}(Je)),Je[_0xddb619(0x22a)];}var ks=Bs();const Ws=$e(ks);function Fs(_0x3af1ab,_0x1a91fa){const _0xe68a4d=_0x2399be,_0xa9493f=_0x1a91fa-_0x3af1ab[_0xe68a4d(0x477)]%_0x1a91fa,_0x1761de=String['fromCharCode'](_0xa9493f)[_0xe68a4d(0x1da)](_0xa9493f);return _0x3af1ab+_0x1761de;}function Vs(_0x4ccfca,_0x272714){const _0x97ed75=_0x2399be,_0x17f77c=js[_0x97ed75(0x1c4)](0x10),_0x3520c7=Fs(_0x4ccfca,0x10),_0x4e67db=Ps[_0x97ed75(0x3fe)](As[_0x97ed75(0x62e)](_0x3520c7),ci[_0x97ed75(0x62e)](_0x272714),{'iv':_0x17f77c,'padding':Ws});return _0x17f77c[_0x97ed75(0x381)](_0x4e67db[_0x97ed75(0x3b7)])['toString'](ci);}function Gs(){const _0x407c10=_0x2399be,_0xf209b4=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0xf209b4){const _0x3a0f2b={'time':Math['floor'](Date[_0x407c10(0x4d4)]()/0x3e8),'domain':location[_0x407c10(0x3e3)]};return Vs(JSON[_0x407c10(0x4e1)](_0x3a0f2b),_0xf209b4);}}var Ys=Object[_0x2399be(0x28d)],qs=Object['getOwnPropertyDescriptor'],Ks=(_0x3d0403,_0x53489a,_0xf3c4c1,_0x4f0269)=>{const _0x4e436f=_0x2399be;for(var _0x4af546=_0x4f0269>0x1?void 0x0:_0x4f0269?qs(_0x53489a,_0xf3c4c1):_0x53489a,_0x493289=_0x3d0403[_0x4e436f(0x477)]-0x1,_0x470e42;_0x493289>=0x0;_0x493289--)(_0x470e42=_0x3d0403[_0x493289])&&(_0x4af546=(_0x4f0269?_0x470e42(_0x53489a,_0xf3c4c1,_0x4af546):_0x470e42(_0x4af546))||_0x4af546);return _0x4f0269&&_0x4af546&&Ys(_0x53489a,_0xf3c4c1,_0x4af546),_0x4af546;},zs=(_0x4e48bb,_0x3584b8)=>(_0x44bc13,_0x555bb5)=>_0x3584b8(_0x44bc13,_0x555bb5,_0x4e48bb);let st=class{constructor(_0x4ab8f8){const _0x302eee=_0x2399be;this[_0x302eee(0x46e)]=_0x4ab8f8,this[_0x302eee(0x30a)]();}[_0x2399be(0x30a)](){const _0x12752f=_0x2399be;this[_0x12752f(0x46e)][_0x12752f(0x43b)]({'interceptor':(_0x1c8bd7,_0x2c8ce8)=>{const _0x46e9a0=_0x12752f,_0x135eca=_0x1c8bd7[_0x46e9a0(0x32c)],_0x9d7994=Gs();return _0x9d7994&&_0x135eca[_0x46e9a0(0x593)](_0x46e9a0(0x1bb),_0x9d7994),_0x2c8ce8(_0x1c8bd7);}});}};st=Ks([zs(0x0,a['Inject'](z[_0x2399be(0x4f9)]))],st);var Xs=Object[_0x2399be(0x28d)],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x55856a,_0x501b67,_0x522292,_0x5fb7f2)=>{const _0x730c0c=_0x2399be;for(var _0x312714=_0x5fb7f2>0x1?void 0x0:_0x5fb7f2?Js(_0x501b67,_0x522292):_0x501b67,_0x157e32=_0x55856a[_0x730c0c(0x477)]-0x1,_0x30e5ff;_0x157e32>=0x0;_0x157e32--)(_0x30e5ff=_0x55856a[_0x157e32])&&(_0x312714=(_0x5fb7f2?_0x30e5ff(_0x501b67,_0x522292,_0x312714):_0x30e5ff(_0x312714))||_0x312714);return _0x5fb7f2&&_0x312714&&Xs(_0x501b67,_0x522292,_0x312714),_0x312714;},Et=(_0x265e5d,_0x5da82b)=>(_0x43ad37,_0x2773f0)=>_0x5da82b(_0x43ad37,_0x2773f0,_0x265e5d);const Qs=['image/png',_0x2399be(0x5fd),_0x2399be(0x4c2),_0x2399be(0x56a),_0x2399be(0x350)],eo=0x5*0x400*0x400,to=_0x2399be(0x30f),io=_0x2399be(0x5f2),no=_0x2399be(0x562),ro=_0x2399be(0x4b0);exports[_0x2399be(0x303)]=class{constructor(_0x1d0eb9,_0x395590,_0xd0ca8f){const _0x256fbb=_0x2399be;I(this,_0x256fbb(0x2bb),0x0),I(this,_0x256fbb(0x3de),new N[(_0x256fbb(0x512))]()),I(this,'change$',this[_0x256fbb(0x3de)]),I(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x1d0eb9,this[_0x256fbb(0x2a2)]=_0x395590,this['_univerInstanceService']=_0xd0ca8f);}[_0x2399be(0x2aa)](_0x25dc25){const _0x382f24=_0x2399be;this[_0x382f24(0x2bb)]=_0x25dc25,this['_change$'][_0x382f24(0x4db)](_0x25dc25);}[_0x2399be(0x4ef)](_0x1da5db,_0x39e2be){const _0x5d5901=_0x2399be;if(_0x39e2be===te[_0x5d5901(0x1eb)][_0x5d5901(0x415)]){const _0xc2c393=new Image();return _0xc2c393[_0x5d5901(0x23a)]=_0x1da5db,_0xc2c393;}return this['_imageSourceCache'][_0x5d5901(0x654)](_0x1da5db);}[_0x2399be(0x22f)](_0x3d1ace,_0x511329,_0x3f2a98){const _0x451b51=_0x2399be;_0x511329===te[_0x451b51(0x1eb)][_0x451b51(0x415)]||_0x3f2a98==null||this[_0x451b51(0x3c6)][_0x451b51(0x593)](_0x3d1ace,_0x3f2a98);}async[_0x2399be(0x34f)](_0x3cc4b4){const _0x28b966=_0x2399be;try{const _0x6c6ff2=this[_0x28b966(0x378)](this[_0x28b966(0x5d0)](),''+_0x3cc4b4),_0x2f1b6f=(await this[_0x28b966(0x46e)][_0x28b966(0x654)](_0x6c6ff2))[_0x28b966(0x53c)];if(_0x2f1b6f[_0x28b966(0x3b0)]&&_0x2f1b6f[_0x28b966(0x3b0)]['code']===bi['OK']){const _0x6a9863=new URL(_0x2f1b6f[_0x28b966(0x43c)],this['_getDownloadEndpointURL']())[_0x28b966(0x24a)]();return Promise['resolve'](_0x6a9863);}return Promise['reject'](_0x2f1b6f['error']);}catch(_0x7a6769){return Promise[_0x28b966(0x379)](_0x7a6769);}}async['saveImage'](_0x13bcdb){const _0x35e6c3=_0x2399be;let _0x56c55b='';if(!Qs[_0x35e6c3(0x39f)](_0x13bcdb[_0x35e6c3(0x64c)]))return this['_decreaseWaiting'](),Promise[_0x35e6c3(0x379)](new Error(te[_0x35e6c3(0x457)][_0x35e6c3(0x604)]));if(_0x13bcdb[_0x35e6c3(0x19c)]>eo)return this[_0x35e6c3(0x413)](),Promise['reject'](new Error(te['ImageUploadStatusType'][_0x35e6c3(0x21e)]));try{const _0x5e52dd=new FormData();_0x5e52dd[_0x35e6c3(0x343)](_0x35e6c3(0x1c9),_0x13bcdb);const _0x3d92e9=this[_0x35e6c3(0x435)][_0x35e6c3(0x19d)](),_0x34ff5a=_0x3d92e9==null?void 0x0:_0x3d92e9[_0x35e6c3(0x27c)]();if(!_0x34ff5a)throw new Error(_0x35e6c3(0x1bc));const _0x1d5c69=this['_getUploadFileURL']()+_0x35e6c3(0x59f)+_0x13bcdb[_0x35e6c3(0x19c)][_0x35e6c3(0x24a)]()+_0x35e6c3(0x290)+Ti[_0x35e6c3(0x5eb)]+'&assign='+encodeURIComponent(_0x34ff5a),_0x40157f=await(await fetch(_0x1d5c69,{'method':_0x35e6c3(0x454),'body':_0x5e52dd}))[_0x35e6c3(0x188)]();if(typeof _0x40157f['FileId']!=_0x35e6c3(0x44d))return this[_0x35e6c3(0x413)](),Promise[_0x35e6c3(0x379)](new Error(te[_0x35e6c3(0x457)]['ERROR_IMAGE']));_0x56c55b=_0x40157f[_0x35e6c3(0x20d)];}catch{return this[_0x35e6c3(0x413)](),Promise[_0x35e6c3(0x379)](new Error(te[_0x35e6c3(0x457)][_0x35e6c3(0x1f0)]));}return new Promise((_0x5c1733,_0x7e8c0d)=>{const _0x3e847d=_0x35e6c3,_0x39b4bb=new FileReader();_0x39b4bb[_0x3e847d(0x56b)](_0x13bcdb),_0x39b4bb[_0x3e847d(0x63f)]=_0x289b31=>{const _0x446e6d=_0x3e847d;var _0x403aa0;const _0x58c9a1=(_0x403aa0=_0x289b31[_0x446e6d(0x4b2)])==null?void 0x0:_0x403aa0['result'];if(_0x58c9a1==null){this[_0x446e6d(0x413)](),_0x7e8c0d(new Error(te[_0x446e6d(0x457)]['ERROR_IMAGE']));return;}const _0x2ffb3a=a[_0x446e6d(0x1e0)][_0x446e6d(0x1b3)](0x6);_0x5c1733({'imageId':_0x2ffb3a,'imageSourceType':te['ImageSourceType'][_0x446e6d(0x28b)],'source':_0x56c55b,'base64Cache':_0x58c9a1,'status':te[_0x446e6d(0x457)][_0x446e6d(0x2a8)]}),this['_decreaseWaiting']();};});}[_0x2399be(0x546)](){const _0x1b40c2=_0x2399be;var _0x517d14,_0x48bb74;const _0x4e91aa=this[_0x1b40c2(0x2a2)]['getConfig'](to),_0x14bb2c=this[_0x1b40c2(0x2a2)][_0x1b40c2(0x2c1)](Z);return(_0x48bb74=(_0x517d14=_0x14bb2c==null?void 0x0:_0x14bb2c['uploadFileServerUrl'])!=null?_0x517d14:_0x4e91aa)!=null?_0x48bb74:io;}[_0x2399be(0x5d0)](){const _0x33b13b=_0x2399be;var _0xefbbad,_0x540803;const _0x410c9b=this[_0x33b13b(0x2a2)][_0x33b13b(0x2c1)](no),_0x446318=this[_0x33b13b(0x2a2)]['getConfig'](Z);return(_0x540803=(_0xefbbad=_0x446318==null?void 0x0:_0x446318['signUrlServerUrl'])!=null?_0xefbbad:_0x410c9b)!=null?_0x540803:ro;}[_0x2399be(0x537)](){const _0x293f35=_0x2399be;var _0x41a5db;const _0x4f3b91=this[_0x293f35(0x2a2)]['getConfig'](Z);return(_0x41a5db=_0x4f3b91==null?void 0x0:_0x4f3b91[_0x293f35(0x56e)])!=null?_0x41a5db:location[_0x293f35(0x2d5)];}[_0x2399be(0x378)](_0x15029c,_0x2375d1){const _0x28dd95=_0x2399be;return _0x15029c[_0x28dd95(0x3d7)](_0x28dd95(0x5e2),_0x2375d1);}[_0x2399be(0x413)](){const _0x19bc54=_0x2399be;this['_waitCount']-=0x1,this[_0x19bc54(0x3de)][_0x19bc54(0x4db)](this['_waitCount']);}},exports['CollabrationImageIoService']=Zs([Et(0x0,a['Inject'](z[_0x2399be(0x4f9)])),Et(0x1,a[_0x2399be(0x5b1)]),Et(0x2,a[_0x2399be(0x24b)](a[_0x2399be(0x53e)]))],exports['CollabrationImageIoService']);var so=Object[_0x2399be(0x28d)],oo=Object['getOwnPropertyDescriptor'],ao=(_0x1dba3e,_0x51ca9a,_0x1db88d,_0x2f8171)=>{const _0x4ef44d=_0x2399be;for(var _0x1776ba=_0x2f8171>0x1?void 0x0:_0x2f8171?oo(_0x51ca9a,_0x1db88d):_0x51ca9a,_0x41a44f=_0x1dba3e[_0x4ef44d(0x477)]-0x1,_0x31c7d4;_0x41a44f>=0x0;_0x41a44f--)(_0x31c7d4=_0x1dba3e[_0x41a44f])&&(_0x1776ba=(_0x2f8171?_0x31c7d4(_0x51ca9a,_0x1db88d,_0x1776ba):_0x31c7d4(_0x1776ba))||_0x1776ba);return _0x2f8171&&_0x1776ba&&so(_0x51ca9a,_0x1db88d,_0x1776ba),_0x1776ba;},ui=(_0x596847,_0x4cb8e0)=>(_0x40e2b0,_0x2ebba9)=>_0x4cb8e0(_0x40e2b0,_0x2ebba9,_0x596847);const co=_0x2399be(0x41d);exports[_0x2399be(0x44c)]=class{constructor(_0x8733d7,_0x5289a6){const _0x1dec5f=_0x2399be;this[_0x1dec5f(0x2a2)]=_0x8733d7,this[_0x1dec5f(0x407)]=_0x5289a6;}[_0x2399be(0x266)](){const _0x1fb4b0=_0x2399be;var _0x32a113,_0x99066b;const _0xb4c2b5=this[_0x1fb4b0(0x2a2)]['getConfig'](xt),_0x4b6cae=this[_0x1fb4b0(0x2a2)][_0x1fb4b0(0x2c1)](Z);return(_0x99066b=(_0x32a113=_0x4b6cae==null?void 0x0:_0x4b6cae['authzUrl'])!=null?_0x32a113:_0xb4c2b5)!=null?_0x99066b:co;}async[_0x2399be(0x420)](_0x12d653){const _0x118903=_0x2399be,_0x2405c3=this[_0x118903(0x266)]()+_0x118903(0x3ab);return{'list':[{'title':_0x118903(0x31f),'mentions':(await this[_0x118903(0x407)][_0x118903(0x654)](_0x2405c3,{'params':{'objectID':_0x12d653['unitId'],'unitID':_0x12d653[_0x118903(0x54c)]}}))[_0x118903(0x53c)][_0x118903(0x20b)]['map'](_0x37ad45=>({'objectId':_0x37ad45['id'],'name':_0x37ad45['subject'][_0x118903(0x452)],'metadata':{'icon':_0x37ad45[_0x118903(0x2da)][_0x118903(0x4c7)]},'label':_0x37ad45[_0x118903(0x2da)][_0x118903(0x452)],'objectType':a['MentionType'][_0x118903(0x5bf)]})),'metadata':{},'type':a[_0x118903(0x333)][_0x118903(0x5bf)]}]};}},exports[_0x2399be(0x44c)]=ao([ui(0x0,a['Inject'](a[_0x2399be(0x5b1)])),ui(0x1,a[_0x2399be(0x24b)](z['HTTPService']))],exports['MentionIoHttpService']);var lo=Object[_0x2399be(0x28d)],ho=Object[_0x2399be(0x398)],_o=(_0x4167c9,_0x58c4ca,_0x52315b,_0x273f3e)=>{const _0x42a334=_0x2399be;for(var _0x266630=_0x273f3e>0x1?void 0x0:_0x273f3e?ho(_0x58c4ca,_0x52315b):_0x58c4ca,_0x214e1e=_0x4167c9[_0x42a334(0x477)]-0x1,_0x111f78;_0x214e1e>=0x0;_0x214e1e--)(_0x111f78=_0x4167c9[_0x214e1e])&&(_0x266630=(_0x273f3e?_0x111f78(_0x58c4ca,_0x52315b,_0x266630):_0x111f78(_0x266630))||_0x266630);return _0x273f3e&&_0x266630&&lo(_0x58c4ca,_0x52315b,_0x266630),_0x266630;},Ne=(_0x5004a8,_0x1f5d31)=>(_0x5520e3,_0x38f22d)=>_0x1f5d31(_0x5520e3,_0x38f22d,_0x5004a8);let ot=class extends a[_0x2399be(0x551)]{constructor(_0x129afd,_0x52eb09,_0x5c4f78,_0x3f675b,_0x458dcc){const _0x151432=_0x2399be;super(),this[_0x151432(0x39d)]=_0x129afd,this[_0x151432(0x435)]=_0x52eb09,this[_0x151432(0x4a3)]=_0x5c4f78,this[_0x151432(0x5a6)]=_0x3f675b,this[_0x151432(0x1b1)]=_0x458dcc,this[_0x151432(0x501)](),this[_0x151432(0x241)]();}[_0x2399be(0x241)](){const _0x92ee44=_0x2399be,_0x3ac92b=async _0x3f2aa8=>{const _0x5560f2=_0x52c2;(await this['_collaborationSessionService'][_0x5560f2(0x513)](_0x3f2aa8))[_0x5560f2(0x29c)][_0x5560f2(0x527)](V[_0x5560f2(0x522)](_0x399df4=>_0x399df4['eventID']===m[_0x5560f2(0x563)]['SHOULD_CLOSE_CONN']),V['takeUntil'](this[_0x5560f2(0x33b)]))['subscribe'](_0x213a01=>{const _0x3447c2=_0x5560f2,_0x45bdb6=_0x213a01,{reason:_0xb29e93}=_0x45bdb6[_0x3447c2(0x3fa)];this[_0x3447c2(0x39d)]['get'](ee[_0x3447c2(0x58b)])[_0x3447c2(0x4bf)]({'type':Ce[_0x3447c2(0x38e)][_0x3447c2(0x599)],'content':this[_0x3447c2(0x1b1)]['t'](_0x3447c2(0x548))+'('+_0xb29e93+')'}),this[_0x3447c2(0x4a3)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](_0x3f2aa8)['id'],!0x1),this[_0x3447c2(0x5a6)][_0x3447c2(0x28a)](_0x3f2aa8);});};N[_0x92ee44(0x5b9)](this['_univerInstanceService'][_0x92ee44(0x2a7)](a['UniverInstanceType'][_0x92ee44(0x52f)]),this[_0x92ee44(0x435)]['getTypeOfUnitAdded$'](a[_0x92ee44(0x2e6)][_0x92ee44(0x4f4)]))[_0x92ee44(0x527)](V[_0x92ee44(0x302)](_0x226364=>_0x226364[_0x92ee44(0x27c)]()),V[_0x92ee44(0x522)](_0x40a82c=>!a[_0x92ee44(0x385)](_0x40a82c)),V['takeUntil'](this[_0x92ee44(0x33b)]))['subscribe'](_0x3edd71=>{_0x3ac92b(_0x3edd71);});}['_initUnitPermissionChange'](){const _0x1ee2cf=_0x2399be,_0x45200e=async _0x38552e=>{const _0x22c612=_0x52c2;(await this[_0x22c612(0x5a6)][_0x22c612(0x513)](_0x38552e))[_0x22c612(0x29c)][_0x22c612(0x527)](V['filter'](_0x592ccf=>_0x592ccf[_0x22c612(0x1e9)]===m[_0x22c612(0x563)]['UPDATE_PERMISSION_OBJ']),V[_0x22c612(0x30c)](this[_0x22c612(0x33b)]))[_0x22c612(0x468)](_0x5c209d=>{const _0x1b759e=_0x22c612,_0x5cd02f=_0x5c209d,{objectId:_0x44d4b6}=_0x5cd02f[_0x1b759e(0x3fa)],_0x434544=this['_injector'][_0x1b759e(0x654)](Le[_0x1b759e(0x360)]);_0x44d4b6===_0x38552e?_0x434544[_0x1b759e(0x530)](_0x38552e):_0x434544['refreshPermission'](_0x38552e,_0x44d4b6);});};N[_0x1ee2cf(0x5b9)](this['_univerInstanceService'][_0x1ee2cf(0x2a7)](a['UniverInstanceType'][_0x1ee2cf(0x52f)]),this[_0x1ee2cf(0x435)][_0x1ee2cf(0x2a7)](a[_0x1ee2cf(0x2e6)]['UNIVER_DOC']))[_0x1ee2cf(0x527)](V['map'](_0x5cf503=>_0x5cf503['getUnitId']()),V[_0x1ee2cf(0x522)](_0x34b5f8=>!a[_0x1ee2cf(0x385)](_0x34b5f8)),V[_0x1ee2cf(0x30c)](this[_0x1ee2cf(0x33b)]))[_0x1ee2cf(0x468)](_0x428f8d=>{_0x45200e(_0x428f8d);});}};ot=_o([Ne(0x0,a['Inject'](a[_0x2399be(0x3b4)])),Ne(0x1,a[_0x2399be(0x53e)]),Ne(0x2,a['IPermissionService']),Ne(0x3,a['Inject'](exports['CollaborationSessionService'])),Ne(0x4,a[_0x2399be(0x24b)](a[_0x2399be(0x3b6)]))],ot);var uo=Object[_0x2399be(0x28d)],fo=Object['getOwnPropertyDescriptor'],vo=(_0x2589bf,_0x552745,_0x2d2769,_0x5db54e)=>{for(var _0x4f6b51=_0x5db54e>0x1?void 0x0:_0x5db54e?fo(_0x552745,_0x2d2769):_0x552745,_0x3beb1d=_0x2589bf['length']-0x1,_0x3dd4d9;_0x3beb1d>=0x0;_0x3beb1d--)(_0x3dd4d9=_0x2589bf[_0x3beb1d])&&(_0x4f6b51=(_0x5db54e?_0x3dd4d9(_0x552745,_0x2d2769,_0x4f6b51):_0x3dd4d9(_0x4f6b51))||_0x4f6b51);return _0x5db54e&&_0x4f6b51&&uo(_0x552745,_0x2d2769,_0x4f6b51),_0x4f6b51;},di=(_0x584508,_0x30ac60)=>(_0x286726,_0x3d93e7)=>_0x30ac60(_0x286726,_0x3d93e7,_0x584508);exports[_0x2399be(0x472)]=class{constructor(_0x434caa,_0x51062d){const _0x2e01fa=_0x2399be;this[_0x2e01fa(0x2a2)]=_0x434caa,this[_0x2e01fa(0x46e)]=_0x51062d;}async['getUnitOnRev'](_0x5254a2,_0x2ac76e){const _0x3f35b5=_0x2399be;var _0x32e515;const {unitID:_0x271fcf,type:_0x391616,revision:_0x58b0c2=0x0}=_0x2ac76e,_0x1aa64b=this[_0x3f35b5(0x605)]()+'/'+_0x391616+'/unit/'+_0x271fcf+_0x3f35b5(0x536)+_0x58b0c2,_0x1252c5=(await this['_httpService']['get'](_0x1aa64b))[_0x3f35b5(0x53c)],_0x10fefb=(_0x32e515=_0x1252c5['snapshot'])==null?void 0x0:_0x32e515[_0x3f35b5(0x25b)];if(_0x10fefb){const _0x5a8dd6=_0x10fefb==null?void 0x0:_0x10fefb[_0x3f35b5(0x25a)],_0x329eef=m[_0x3f35b5(0x4fa)][_0x3f35b5(0x36e)](m[_0x3f35b5(0x2e5)](_0x5a8dd6));_0x10fefb['originalMeta']=_0x329eef,Object[_0x3f35b5(0x4fe)](_0x10fefb['sheets'])[_0x3f35b5(0x306)](([,_0x3365bc])=>{const _0x49f448=_0x3f35b5,_0x362adf=_0x3365bc[_0x49f448(0x25a)],_0x182431=m[_0x49f448(0x4fa)]['encode'](m[_0x49f448(0x2e5)](_0x362adf));_0x3365bc['originalMeta']=_0x182431;});}return _0x1252c5;}async[_0x2399be(0x2cd)](_0x1ef2d0,_0x11b293){const _0x4f1199=_0x2399be,{unitID:_0x588060,type:_0x22c3da,blockID:_0x2b07dc}=_0x11b293,_0x382b59=this['_getAPIPrefix']()+'/'+_0x22c3da+'/unit/'+_0x588060+_0x4f1199(0x1fe)+_0x2b07dc;return(await this[_0x4f1199(0x46e)][_0x4f1199(0x654)](_0x382b59))[_0x4f1199(0x53c)];}async['getDeserializedSheetBlock'](_0x707a61,_0xa071aa){const _0x4faee5=_0x2399be,{unitID:_0x397921,type:_0x2f7059,blockID:_0x136d23}=_0xa071aa,_0x3193c2=this[_0x4faee5(0x1a0)]()+_0x4faee5(0x1fe)+_0x2f7059+_0x4faee5(0x451)+_0x397921+_0x4faee5(0x1fe)+_0x136d23;return(await this[_0x4faee5(0x46e)][_0x4faee5(0x654)](_0x3193c2))['body'];}async[_0x2399be(0x5f6)](_0x31c2e9,_0x14e5a9){const _0xccd9e4=_0x2399be,{unitID:_0x5044c6,type:_0x514c35,from:_0x276059,to:_0x2e93c8}=_0x14e5a9,_0x30d777=this['_getAPIPrefix']()+'/'+_0x514c35+_0xccd9e4(0x451)+_0x5044c6+_0xccd9e4(0x4ae)+_0x276059+_0xccd9e4(0x618)+_0x2e93c8;return(await this[_0xccd9e4(0x46e)][_0xccd9e4(0x654)](_0x30d777))[_0xccd9e4(0x53c)];}['getSnapshotAPIPath'](){const _0x5dc0c4=_0x2399be;var _0x37cb4b;return(_0x37cb4b=this[_0x5dc0c4(0x2a2)][_0x5dc0c4(0x2c1)](vi))!=null?_0x37cb4b:this[_0x5dc0c4(0x1a0)]();}[_0x2399be(0x1a0)](){const _0x10873d=_0x2399be;var _0x393afa,_0x5978af;const _0x3f0e4f=this['_configService']['getConfig'](fi),_0x38760e=this['_configService'][_0x10873d(0x2c1)](Z);return(_0x5978af=(_0x393afa=_0x38760e==null?void 0x0:_0x38760e[_0x10873d(0x44b)])!=null?_0x393afa:_0x3f0e4f)!=null?_0x5978af:qi;}async['getResourcesRequest'](_0x511f3b,_0x10acbe){const _0x147e7a=_0x2399be,_0x10b4f3=_0x147e7a(0x186)+_0x10acbe[_0x147e7a(0x64c)]+'/unit/'+_0x10acbe[_0x147e7a(0x533)]+_0x147e7a(0x352);return(await this[_0x147e7a(0x46e)][_0x147e7a(0x654)](_0x10b4f3,{'params':{'resourceId':JSON[_0x147e7a(0x4e1)](_0x10acbe[_0x147e7a(0x502)])}}))[_0x147e7a(0x53c)];}[_0x2399be(0x5d8)](){const _0x330a8f=_0x2399be;throw new Error(_0x330a8f(0x448));}[_0x2399be(0x37f)](){const _0x1611ec=_0x2399be;throw new Error(_0x1611ec(0x448));}[_0x2399be(0x30b)](){const _0x4436c4=_0x2399be;throw new Error(_0x4436c4(0x448));}[_0x2399be(0x3c3)](){const _0x5710e6=_0x2399be;throw new Error(_0x5710e6(0x448));}[_0x2399be(0x63d)](){const _0x5dbc20=_0x2399be;throw new Error(_0x5dbc20(0x448));}},exports['SnapshotServerOverHTTPService']=vo([di(0x0,a[_0x2399be(0x5b1)]),di(0x1,a[_0x2399be(0x24b)](z[_0x2399be(0x4f9)]))],exports[_0x2399be(0x472)]);var So=Object[_0x2399be(0x28d)],po=Object[_0x2399be(0x398)],mo=(_0xeabbea,_0x55562d,_0x2646d0,_0x42de56)=>{const _0x577eba=_0x2399be;for(var _0x4e9e41=_0x42de56>0x1?void 0x0:_0x42de56?po(_0x55562d,_0x2646d0):_0x55562d,_0x2ff967=_0xeabbea[_0x577eba(0x477)]-0x1,_0x38a74a;_0x2ff967>=0x0;_0x2ff967--)(_0x38a74a=_0xeabbea[_0x2ff967])&&(_0x4e9e41=(_0x42de56?_0x38a74a(_0x55562d,_0x2646d0,_0x4e9e41):_0x38a74a(_0x4e9e41))||_0x4e9e41);return _0x42de56&&_0x4e9e41&&So(_0x55562d,_0x2646d0,_0x4e9e41),_0x4e9e41;},Ae=(_0x3c535d,_0x151faa)=>(_0x2962bc,_0x2608a8)=>_0x151faa(_0x2962bc,_0x2608a8,_0x3c535d);let yt=class extends a['LocalUndoRedoService']{constructor(_0x209ece,_0x1e7e8a,_0x19251c,_0x3b10d2,_0x28f643){const _0x143124=_0x2399be;super(_0x209ece,_0x1e7e8a,_0x19251c),this[_0x143124(0x300)]=_0x3b10d2,this[_0x143124(0x364)]=_0x28f643;}[_0x2399be(0x61c)](_0x45359f,_0x188d6c){const _0x4942b8=_0x2399be,_0x503cce=this[_0x4942b8(0x1e2)](_0x45359f);if(_0x503cce)try{const _0x422c3f=this[_0x4942b8(0x42b)](_0x503cce,_0x188d6c);this[_0x4942b8(0x1d7)](_0x45359f,_0x422c3f);}catch(_0x76a847){this['_logService'][_0x4942b8(0x3b0)](_0x4942b8(0x1e5),_0x76a847),this[_0x4942b8(0x609)](_0x45359f);}const _0x37e930=this[_0x4942b8(0x592)](_0x45359f);if(_0x37e930)try{const _0x4a8266=this[_0x4942b8(0x42b)](_0x37e930,_0x188d6c);this[_0x4942b8(0x53b)](_0x45359f,_0x4a8266);}catch(_0x330596){this[_0x4942b8(0x364)][_0x4942b8(0x3b0)](_0x330596),this[_0x4942b8(0x38f)](_0x45359f);}}[_0x2399be(0x609)](_0x4fc680){const _0x305889=_0x2399be,_0x4bd6cd=this[_0x305889(0x1e2)](_0x4fc680);_0x4bd6cd&&(_0x4bd6cd[_0x305889(0x477)]=0x0,this[_0x305889(0x54d)]());}[_0x2399be(0x38f)](_0x2e1148){const _0x171353=_0x2399be,_0x36787c=this[_0x171353(0x592)](_0x2e1148);_0x36787c&&(_0x36787c[_0x171353(0x477)]=0x0,this[_0x171353(0x54d)]());}[_0x2399be(0x1d7)](_0x3bd90d,_0x21a1d0){const _0x2a1604=_0x2399be;this[_0x2a1604(0x410)][_0x2a1604(0x593)](_0x3bd90d,_0x21a1d0),this[_0x2a1604(0x54d)]();}[_0x2399be(0x53b)](_0xe68e2,_0x40f67){const _0x24f894=_0x2399be;this[_0x24f894(0x366)]['set'](_0xe68e2,_0x40f67),this[_0x24f894(0x54d)]();}[_0x2399be(0x42b)](_0x14eee8,_0x2d45c1){const _0x14d374=_0x2399be,_0x1e7929=[];let _0x46a2ea=_0x2d45c1,_0x2d8d59=_0x2d45c1;for(let _0x6db832=_0x14eee8[_0x14d374(0x477)]-0x1;_0x6db832>=0x0;_0x6db832--){const {unitID:_0x177e18,undoMutations:_0x564fd6,redoMutations:_0x1b71a4}=_0x14eee8[_0x6db832],_0x2cda8b=this[_0x14d374(0x300)][_0x14d374(0x63b)](_0x46a2ea,_0x564fd6),_0xe26f3c=this[_0x14d374(0x300)][_0x14d374(0x63b)](_0x2d8d59,_0x1b71a4);if(m[_0x14d374(0x598)](_0x2cda8b)||m[_0x14d374(0x598)](_0xe26f3c)){this[_0x14d374(0x364)][_0x14d374(0x3b0)](_0x14d374(0x1e5),'transformStack\x20failed!',_0x2cda8b,_0xe26f3c);break;}_0x46a2ea=_0x2cda8b[_0x14d374(0x585)],_0x2d8d59=_0xe26f3c['c1Prime'],_0x1e7929[_0x14d374(0x644)]({'unitID':_0x177e18,'undoMutations':_0x2cda8b[_0x14d374(0x356)],'redoMutations':_0xe26f3c['m2Prime']});}return _0x1e7929['reverse']();}};yt=mo([Ae(0x0,a[_0x2399be(0x53e)]),Ae(0x1,a[_0x2399be(0x36c)]),Ae(0x2,a['IContextService']),Ae(0x3,m[_0x2399be(0x587)]),Ae(0x4,a[_0x2399be(0x373)])],yt);class ki extends a[_0x2399be(0x551)]{constructor(){const _0x33ab23=_0x2399be;super(),I(this,_0x33ab23(0x18b)),this[_0x33ab23(0x18b)]=N[_0x33ab23(0x34a)](window,_0x33ab23(0x3bf))['pipe'](N[_0x33ab23(0x30c)](this['dispose$']),N[_0x33ab23(0x64e)](0x1),N['mapTo'](void 0x0));}[_0x2399be(0x27a)](_0x5c07ac,_0x5b6ba5,_0x467921=!0x1){const _0x119685=_0x2399be,_0x3220c6=new URL(window[_0x119685(0x29e)]['href']);_0x3220c6[_0x119685(0x58a)][_0x119685(0x593)](_0x5c07ac,_0x5b6ba5),_0x467921?window[_0x119685(0x1fd)][_0x119685(0x35d)]('','',_0x3220c6[_0x119685(0x24a)]()):window[_0x119685(0x1fd)]['pushState']('','',_0x3220c6['toString']());}[_0x2399be(0x20e)](_0x3012e0,_0x208582=!0x1){const _0x48c925=_0x2399be,_0x1a6d5d=new URL(window['location']['href']);_0x1a6d5d['searchParams'][_0x48c925(0x240)](_0x3012e0),_0x208582?window['history'][_0x48c925(0x35d)]('','',_0x1a6d5d['toString']()):window['history'][_0x48c925(0x4d2)]('','',_0x1a6d5d[_0x48c925(0x24a)]());}[_0x2399be(0x558)](_0x4af800){const _0x4de0f6=_0x2399be;var _0x568109;return(_0x568109=new URL(window[_0x4de0f6(0x29e)][_0x4de0f6(0x2a0)])[_0x4de0f6(0x58a)][_0x4de0f6(0x654)](_0x4af800))!=null?_0x568109:void 0x0;}}var Wi=Object[_0x2399be(0x28d)],go=Object['getOwnPropertyDescriptor'],Io=(_0x41d480,_0x1cb0fd,_0x339a13)=>_0x1cb0fd in _0x41d480?Wi(_0x41d480,_0x1cb0fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x339a13}):_0x41d480[_0x1cb0fd]=_0x339a13,Co=(_0x5f3715,_0x333516,_0x4bc6c8,_0x292e1c)=>{const _0x54661a=_0x2399be;for(var _0x4b5208=_0x292e1c>0x1?void 0x0:_0x292e1c?go(_0x333516,_0x4bc6c8):_0x333516,_0x30ba6d=_0x5f3715[_0x54661a(0x477)]-0x1,_0x49222e;_0x30ba6d>=0x0;_0x30ba6d--)(_0x49222e=_0x5f3715[_0x30ba6d])&&(_0x4b5208=(_0x292e1c?_0x49222e(_0x333516,_0x4bc6c8,_0x4b5208):_0x49222e(_0x4b5208))||_0x4b5208);return _0x292e1c&&_0x4b5208&&Wi(_0x333516,_0x4bc6c8,_0x4b5208),_0x4b5208;},Be=(_0x44f173,_0x3f6316)=>(_0x3a2b8d,_0x14aeb5)=>_0x3f6316(_0x3a2b8d,_0x14aeb5,_0x44f173),Eo=(_0x2529ea,_0x10cdfb,_0x5e02fe)=>Io(_0x2529ea,_0x10cdfb+'',_0x5e02fe);const bo=_0x2399be(0x28e);exports[_0x2399be(0x450)]=class extends a[_0x2399be(0x4f6)]{constructor(_0x297aff=sn,_0x2a9480,_0x2430ad,_0x26026c,_0x54e453){const _0x19f25d=_0x2399be;super(),this[_0x19f25d(0x4ff)]=_0x297aff,this['_logService']=_0x2a9480,this[_0x19f25d(0x1a3)]=_0x2430ad,this[_0x19f25d(0x39d)]=_0x26026c,this[_0x19f25d(0x2a2)]=_0x54e453;const {..._0x567261}=this['_config'];this['_configService']['setConfig'](Z,_0x567261);}[_0x2399be(0x464)](){const _0x65e23=_0x2399be;this[_0x65e23(0x1ec)](),this[_0x65e23(0x1f8)]();}['onReady'](){const _0x545779=_0x2399be;a[_0x545779(0x1f3)](this[_0x545779(0x39d)],[[nt],[it]]);}[_0x2399be(0x2f0)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x55551e=_0x2399be;var _0x1013db,_0x66f59a,_0x3b2195,_0x251dff;this[_0x55551e(0x39d)][_0x55551e(0x2e1)](a['IUndoRedoService'])&&this[_0x55551e(0x364)][_0x55551e(0x3b0)](_0x55551e(0x4cd),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x58bcdd=[[a['IUndoRedoService'],{'useClass':yt}],[exports[_0x55551e(0x225)]],[Nt],[Lt,{'useClass':ki}],[exports[_0x55551e(0x4e4)]],[exports[_0x55551e(0x596)]],[z[_0x55551e(0x1ed)]],[Qe],[tt],[Ze],[et],[Ut],[rt],[st],[wt],[ot],[Pt,{'useClass':(_0x66f59a=(_0x1013db=this[_0x55551e(0x4ff)])==null?void 0x0:_0x1013db[_0x55551e(0x524)])!=null?_0x66f59a:exports[_0x55551e(0x392)]}],[m[_0x55551e(0x430)],{'useClass':exports[_0x55551e(0x472)]}],[a[_0x55551e(0x51b)],{'useClass':exports[_0x55551e(0x5cc)]}],[te[_0x55551e(0x2fd)],{'useClass':exports[_0x55551e(0x303)]}],[a[_0x55551e(0x5fc)],{'useClass':exports[_0x55551e(0x44c)]}],[exports['CollaborationController']],[exports[_0x55551e(0x61a)]],[exports[_0x55551e(0x5df)]],[nt],[ye],[it]];(_0x3b2195=this[_0x55551e(0x4ff)])!=null&&_0x3b2195['enableSingleActiveInstanceLock']&&_0x58bcdd[_0x55551e(0x644)]([at,{'useClass':$n}]),a[_0x55551e(0x29d)](this[_0x55551e(0x39d)],a[_0x55551e(0x478)](_0x58bcdd,(_0x251dff=this[_0x55551e(0x4ff)])==null?void 0x0:_0x251dff['override']));}[_0x2399be(0x642)](){const _0x5add36=_0x2399be;this[_0x5add36(0x228)](this[_0x5add36(0x1a3)][_0x5add36(0x20f)](a[_0x5add36(0x2e6)][_0x5add36(0x4f4)],[Rt])),this[_0x5add36(0x228)](this[_0x5add36(0x1a3)][_0x5add36(0x20f)](a[_0x5add36(0x2e6)][_0x5add36(0x52f)],[Ot]));}[_0x2399be(0x1f8)](){const _0x10e722=_0x2399be;var _0x4de9af,_0x1e8294;this[_0x10e722(0x39d)][_0x10e722(0x654)](z['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':z[_0x10e722(0x4b3)]({'maxParallel':0x6})}),(_0x4de9af=this['_config'])!=null&&_0x4de9af[_0x10e722(0x1c1)]||this[_0x10e722(0x39d)][_0x10e722(0x654)](exports[_0x10e722(0x596)])[_0x10e722(0x2f2)](),(_0x1e8294=this['_config'])!=null&&_0x1e8294[_0x10e722(0x53a)]&&a[_0x10e722(0x1f3)](this[_0x10e722(0x39d)],[[rt]]),a[_0x10e722(0x1f3)](this['_injector'],[[st],[ye],[exports[_0x10e722(0x61a)]],[exports[_0x10e722(0x30e)]],[exports[_0x10e722(0x5df)]],[ot]]);}},Eo(exports[_0x2399be(0x450)],_0x2399be(0x367),bo),exports['UniverCollaborationClientPlugin']=Co([a['DependentOn'](m[_0x2399be(0x5d3)],z[_0x2399be(0x5be)]),Be(0x1,a['ILogService']),Be(0x2,Y['IRenderManagerService']),Be(0x3,a[_0x2399be(0x24b)](a['Injector'])),Be(0x4,a[_0x2399be(0x5b1)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=xt,exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=Z,exports[_0x2399be(0x2ac)]=Ci,exports['COLLAB_WEB_SOCKET_URL_KEY']=Si,exports[_0x2399be(0x4e9)]=K,exports[_0x2399be(0x3dc)]=$i,exports[_0x2399be(0x34c)]=wt,exports['HEARTBEAT_INTERVAL_KEY']=pi,exports['HEARTBEAT_TIMEOUT_KEY']=Dt,exports[_0x2399be(0x55b)]=Pt,exports[_0x2399be(0x418)]=Lt,exports[_0x2399be(0x227)]=Ii,exports[_0x2399be(0x4ab)]=Ei,exports[_0x2399be(0x2f7)]=gi,exports['SEND_CHANGESET_TIMEOUT_KEY']=Ki,exports[_0x2399be(0x5f8)]=fi,exports['SNAPSHOT_URL_KEY']=vi,exports[_0x2399be(0x37e)]=ne,exports['SheetCollabCursorShape']=Mi,exports[_0x2399be(0x258)]=ki,exports[_0x2399be(0x1df)]=Ri,exports[_0x2399be(0x582)]=Oi;
|