@univerjs-pro/collaboration-client 0.4.0-nightly.202410121605 → 0.4.0-nightly.202410141110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x28eb85=_0xb2fc;(function(_0x128c93,_0x12e637){const _0x2567cc=_0xb2fc,_0x75d7da=_0x128c93();while(!![]){try{const _0x33e3aa=parseInt(_0x2567cc(0x3ee))/0x1+parseInt(_0x2567cc(0x1cb))/0x2+-parseInt(_0x2567cc(0x1ab))/0x3*(-parseInt(_0x2567cc(0x229))/0x4)+-parseInt(_0x2567cc(0x3a8))/0x5*(-parseInt(_0x2567cc(0x150))/0x6)+-parseInt(_0x2567cc(0x19f))/0x7*(parseInt(_0x2567cc(0x17c))/0x8)+parseInt(_0x2567cc(0x26b))/0x9*(parseInt(_0x2567cc(0x428))/0xa)+parseInt(_0x2567cc(0x1e1))/0xb*(-parseInt(_0x2567cc(0x37b))/0xc);if(_0x33e3aa===_0x12e637)break;else _0x75d7da['push'](_0x75d7da['shift']());}catch(_0x384cb5){_0x75d7da['push'](_0x75d7da['shift']());}}}(_0x59b6,0xcf9a7));var kt=Object[_0x28eb85(0x114)],Bt=(_0x2404a4,_0x347c11,_0xdc958b)=>_0x347c11 in _0x2404a4?kt(_0x2404a4,_0x347c11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc958b}):_0x2404a4[_0x347c11]=_0xdc958b,d=(_0x5f2f1a,_0x182be8,_0x2ef595)=>Bt(_0x5f2f1a,typeof _0x182be8!=_0x28eb85(0x52f)?_0x182be8+'':_0x182be8,_0x2ef595);Object['defineProperty'](exports,Symbol[_0x28eb85(0x493)],{'value':_0x28eb85(0x353)});const a=require(_0x28eb85(0x38e)),v=require(_0x28eb85(0x3e9)),E=require(_0x28eb85(0x440)),X=require(_0x28eb85(0x237)),N=require(_0x28eb85(0x136)),P=require(_0x28eb85(0x33e)),_=require('@univerjs-pro/collaboration'),Vt=require(_0x28eb85(0x2ad)),V=require(_0x28eb85(0x366)),w=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),R=require(_0x28eb85(0x3b5)),L=require(_0x28eb85(0x2ab)),Je=require(_0x28eb85(0x3b0)),te=require(_0x28eb85(0x269)),U=require('react'),Wt=require(_0x28eb85(0x2d1)),Ft=require('@univerjs-pro/license'),ht=_0x28eb85(0x534),Gt='/universer-api/snapshot',_t=_0x28eb85(0x39a),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x28eb85(0x16c),Xt=_0x28eb85(0x148),dt=_0x28eb85(0x2d8),qt=0x7530,Ve='HEARTBEAT_TIMEOUT',St=0x4e20,zt=0x4e20,vt=_0x28eb85(0x4c8),Jt=0x3,ft=_0x28eb85(0x2da),Zt=0x3e8,gt=_0x28eb85(0x4b7),Qt=_0x28eb85(0x424),mt='LOGIN_URL_KEY',es='/universer-api/oidc/authpage';var It=(_0x4cb4ed=>(_0x4cb4ed[_0x4cb4ed['UNDEFINED']=0x0]=_0x28eb85(0x486),_0x4cb4ed[_0x4cb4ed['OK']=0x1]='OK',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x3e1)]=0x2]=_0x28eb85(0x3e1),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35b)]=0x3]=_0x28eb85(0x35b),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x50e)]=0x4]=_0x28eb85(0x50e),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x1f0)]=0x5]=_0x28eb85(0x1f0),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x33a)]=0x6]=_0x28eb85(0x33a),_0x4cb4ed[_0x4cb4ed['INVALID_ARGUMENT']=0x7]=_0x28eb85(0x128),_0x4cb4ed[_0x4cb4ed['TOO_MANY_REQUESTS']=0x8]=_0x28eb85(0x50f),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2a3)]=0x9]='COMPLETION_FINISHED',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4fc)]=0x1389]=_0x28eb85(0x4fc),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x248)]=0x1771]=_0x28eb85(0x248),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x27c)]=0x1772]=_0x28eb85(0x27c),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35e)]=0x1b59]=_0x28eb85(0x35e),_0x4cb4ed[_0x4cb4ed['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35d)]=0x1b5b]=_0x28eb85(0x35d),_0x4cb4ed[_0x4cb4ed['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x28eb85(0x3ac),_0x4cb4ed[_0x4cb4ed['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x28eb85(0x1d5),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x3fe)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4cb4ed[_0x4cb4ed['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2cc)]=0x232b]=_0x28eb85(0x2cc),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4cf)]=0x232c]=_0x28eb85(0x4cf),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x48e)]=0x232d]=_0x28eb85(0x48e),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x26c)]=0x2711]=_0x28eb85(0x26c),_0x4cb4ed[_0x4cb4ed['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x253)]=0x2713]=_0x28eb85(0x253),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4b0)]=0x2714]=_0x28eb85(0x4b0),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x4cb4ed))(It||{}),j=(_0x2177bd=>(_0x2177bd[_0x2177bd[_0x28eb85(0x4c5)]=0x0]=_0x28eb85(0x4c5),_0x2177bd[_0x2177bd[_0x28eb85(0x43a)]=0x1]='UNIVER_DOC',_0x2177bd[_0x2177bd['UNIVER_SHEET']=0x2]=_0x28eb85(0x384),_0x2177bd[_0x2177bd[_0x28eb85(0x25c)]=0x3]='UNIVER_SLIDE',_0x2177bd[_0x2177bd[_0x28eb85(0x4ce)]=0x4]='UNIVER_PROJECT',_0x2177bd[_0x2177bd[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x2177bd))(j||{}),b=(_0x98db9=>(_0x98db9[_0x98db9[_0x28eb85(0x399)]=0x0]=_0x28eb85(0x399),_0x98db9[_0x98db9[_0x28eb85(0x14c)]=0x1]=_0x28eb85(0x14c),_0x98db9[_0x98db9[_0x28eb85(0x159)]=0x2]='JOIN',_0x98db9[_0x98db9[_0x28eb85(0x27d)]=0x3]='LEAVE',_0x98db9[_0x98db9[_0x28eb85(0x42e)]=0x4]=_0x28eb85(0x42e),_0x98db9[_0x98db9[_0x28eb85(0x1b7)]=0x5]=_0x28eb85(0x1b7),_0x98db9[_0x98db9[_0x28eb85(0x386)]=0x6]='RECV',_0x98db9[_0x98db9[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x98db9))(b||{}),We=(_0x413b59=>(_0x413b59[_0x413b59['UNKNOWN_CODE']=0x0]=_0x28eb85(0x503),_0x413b59[_0x413b59['OK']=0x1]='OK',_0x413b59[_0x413b59[_0x28eb85(0x45b)]=0x2]=_0x28eb85(0x45b),_0x413b59[_0x413b59[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x413b59))(We||{}),pt=(_0x511c09=>(_0x511c09[_0x511c09[_0x28eb85(0x50b)]=0x0]=_0x28eb85(0x50b),_0x511c09[_0x511c09['HttpImport']=0x1]=_0x28eb85(0x3bd),_0x511c09[_0x511c09[_0x28eb85(0x52e)]=0x2]=_0x28eb85(0x52e),_0x511c09[_0x511c09[_0x28eb85(0x21c)]=0x3]='UnitEmbedded',_0x511c09[_0x511c09[_0x28eb85(0x29e)]=0x4]=_0x28eb85(0x29e),_0x511c09[_0x511c09[_0x28eb85(0x2d0)]=-0x1]='UNRECOGNIZED',_0x511c09))(pt||{});const A=_0x28eb85(0x1e0),ts={};function Ct(_0x5d99ca){const _0x442f7f=_0x28eb85;var _0x5220bf,_0x164747,_0x20f07b,_0x1971c0;const _0x45dfca=_0x5d99ca['data'],_0x12bd3d=JSON[_0x442f7f(0x3a4)](_0x45dfca);switch(_0x12bd3d[_0x442f7f(0x224)]){case b[_0x442f7f(0x1b7)]:case b[_0x442f7f(0x14c)]:{const _0x390d50=_0x12bd3d[_0x442f7f(0x15c)];return{..._0x12bd3d,'data':_0x390d50,'cmd':_0x12bd3d['cmd']};}case b[_0x442f7f(0x159)]:{const _0x12a97a=_0x12bd3d[_0x442f7f(0x304)];return{..._0x12bd3d,'data':_0x12a97a,'cmd':_0x12bd3d[_0x442f7f(0x224)]};}case b[_0x442f7f(0x386)]:{const _0x56f1d8=_0x12bd3d['collaMsg'];switch(_0x56f1d8[_0x442f7f(0x16b)]){case _[_0x442f7f(0x46d)][_0x442f7f(0x192)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x5220bf=_0x56f1d8['permissionRejEvent'])==null?void 0x0:_0x5220bf['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x3d4)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x164747=_0x56f1d8[_0x442f7f(0x332)])==null?void 0x0:_0x164747['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x208)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x20f07b=_0x56f1d8['newCsEvent'])==null?void 0x0:_0x20f07b['cs']},'cmd':_0x12bd3d['cmd']};case _['CollaborationEvent'][_0x442f7f(0x402)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x1971c0=_0x56f1d8[_0x442f7f(0x222)])==null?void 0x0:_0x1971c0['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x1c5)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x454)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)]['USERS_ENTER']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x25b)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)]['USERS_LEAVE']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x370)]},'cmd':_0x12bd3d['cmd']};case _['CollaborationEvent'][_0x442f7f(0x489)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8['liveShareNewHost']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x317)]:case _[_0x442f7f(0x46d)]['LIVESHARE_OPERATION']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x125)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8['liveShareNewHost']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x257)]:return{..._0x12bd3d,'data':_0x56f1d8,'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x37f)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x199)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x300)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x1a2)]},'cmd':_0x12bd3d['cmd']};case _[_0x442f7f(0x46d)]['SHOULD_CLOSE_CONN']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x153)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};default:return _0x12bd3d;}}default:return _0x12bd3d;}}function Et(_0x3d6c37){const _0x176bd0=_0x28eb85;switch(_0x3d6c37[_0x176bd0(0x224)]){case b[_0x176bd0(0x1b7)]:case b[_0x176bd0(0x14c)]:return JSON['stringify']({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37['routeKey']});case b[_0x176bd0(0x42e)]:{let _0x4184d9;switch(_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x16b)]){case _[_0x176bd0(0x46d)][_0x176bd0(0x1c5)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x1c5)],'updateCursorEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x32b)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x32b)],'leaveEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _['CollaborationEvent'][_0x176bd0(0x2c4)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['USERS_ENTER'],'joinEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x489)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x489)],'liveShareNewHost':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x322)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x344)]:{_0x4184d9={'eventID':_['CollaborationEvent'][_0x176bd0(0x344)],'liveShareTerminate':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _['CollaborationEvent'][_0x176bd0(0x1ee)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _['CollaborationEvent'][_0x176bd0(0x317)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x317)]};break;}default:_0x4184d9={'eventID':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x16b)]};}return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37[_0x176bd0(0x22b)],'collaMsg':_0x4184d9});}case b[_0x176bd0(0x159)]:return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37['cmd'],'routeKey':_0x3d6c37['routeKey'],'joinReq':_0x3d6c37[_0x176bd0(0x451)]});case b[_0x176bd0(0x27d)]:return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37[_0x176bd0(0x22b)],'leaveReq':_0x3d6c37[_0x176bd0(0x451)]});default:throw new Error(_0x176bd0(0x2ec));}}var ss=Object[_0x28eb85(0x114)],is=Object[_0x28eb85(0x38b)],ns=(_0x376671,_0x103ce6,_0x52541e,_0x137178)=>{const _0x367e7c=_0x28eb85;for(var _0x5c2c82=_0x137178>0x1?void 0x0:_0x137178?is(_0x103ce6,_0x52541e):_0x103ce6,_0x335765=_0x376671[_0x367e7c(0x355)]-0x1,_0x503819;_0x335765>=0x0;_0x335765--)(_0x503819=_0x376671[_0x335765])&&(_0x5c2c82=(_0x137178?_0x503819(_0x103ce6,_0x52541e,_0x5c2c82):_0x503819(_0x5c2c82))||_0x5c2c82);return _0x137178&&_0x5c2c82&&ss(_0x103ce6,_0x52541e,_0x5c2c82),_0x5c2c82;},oe=(_0x5e1bb1,_0x511e22)=>(_0x5122f8,_0x4212a3)=>_0x511e22(_0x5122f8,_0x4212a3,_0x5e1bb1);const Fe=a[_0x28eb85(0x12a)](_0x28eb85(0x2d9));function rs(_0x3a1182,_0x13917e,_0x54eecc){const _0x50d396=_0x28eb85;return _0x3a1182+'/'+_0x13917e+_0x50d396(0x3ef)+_0x54eecc+_0x50d396(0x470);}exports[_0x28eb85(0x41a)]=class extends a[_0x28eb85(0x216)]{constructor(_0x3bb6b8,_0x13238e,_0x20d73b,_0x536b80,_0x3f8e55){const _0x54c5c3=_0x28eb85;super(),this[_0x54c5c3(0x302)]=_0x3bb6b8,this['_ws']=_0x13238e,this[_0x54c5c3(0x4d8)]=_0x20d73b,this[_0x54c5c3(0x1a7)]=_0x536b80,this[_0x54c5c3(0x478)]=_0x3f8e55;}[_0x28eb85(0x345)](_0x3b65a8){const _0x758c43=_0x28eb85,_0x52c45a=this[_0x758c43(0x1d6)][_0x758c43(0x345)](_0x3b65a8);if(!_0x52c45a)throw new Error(_0x758c43(0x3b7));const _0x1424fe=new a[(_0x758c43(0x3fa))](),_0x50214f=new v[(_0x758c43(0x1ec))]();_0x1424fe['add'](_0x52c45a[_0x758c43(0x2a6)][_0x758c43(0x14a)](_0x33cec6=>_0x50214f[_0x758c43(0x3fd)](_0x33cec6))),_0x1424fe[_0x758c43(0x4e1)](a['toDisposable'](()=>_0x50214f[_0x758c43(0x500)]()));const _0xa72eac=new v[(_0x758c43(0x1ec))]();_0x1424fe[_0x758c43(0x4e1)](_0x52c45a[_0x758c43(0x1e8)][_0x758c43(0x14a)](_0x476062=>_0xa72eac[_0x758c43(0x3fd)](_0x476062))),_0x1424fe[_0x758c43(0x4e1)](a[_0x758c43(0x40e)](()=>_0xa72eac[_0x758c43(0x500)]()));const _0x1d0ea6=new v[(_0x758c43(0x1ec))]();_0x1424fe['add'](_0x52c45a[_0x758c43(0x3e5)][_0x758c43(0x14a)](_0x4e3b23=>{const _0x103749=Ct(_0x4e3b23);_0x1d0ea6['next'](_0x103749);})),_0x1424fe['add'](a[_0x758c43(0x40e)](()=>_0x1d0ea6[_0x758c43(0x500)]()));let _0x1ab5e4;const _0x7505a=()=>{const _0x282726=_0x758c43;_0xa72eac[_0x282726(0x3fd)](new Event('connection\x20error')),_0x50214f[_0x282726(0x3fd)](new CloseEvent(_0x282726(0x213))),_0x1ab5e4[_0x282726(0x4d9)]();};return _0x1ab5e4={'memberID':'','close$':_0x50214f[_0x758c43(0x291)](),'error$':_0xa72eac[_0x758c43(0x291)](),'open$':_0x52c45a[_0x758c43(0x3d2)],'message$':_0x1d0ea6[_0x758c43(0x291)](),'send':_0x38a38c=>{const _0x1f1eb9=_0x758c43;if(_0x38a38c[_0x1f1eb9(0x224)]===b['INGEST']){if(_0x38a38c[_0x1f1eb9(0x451)]['eventID']===_[_0x1f1eb9(0x46d)][_0x1f1eb9(0x13f)]){this[_0x1f1eb9(0x147)](_0x1ab5e4,_0x38a38c['data'])[_0x1f1eb9(0x50c)](_0x7bcaff=>{const _0x2a7226=_0x1f1eb9;this[_0x2a7226(0x1a7)][_0x2a7226(0x533)](_0x7bcaff),_0x7505a();});return;}if(_0x38a38c['data'][_0x1f1eb9(0x16b)]===_[_0x1f1eb9(0x46d)][_0x1f1eb9(0x336)]){const _0x1561f3=_0x38a38c[_0x1f1eb9(0x451)];this[_0x1f1eb9(0x521)](_0x1561f3)['then'](_0x1ac8e3=>{const _0x1c7fdc=_0x1f1eb9;_0x1d0ea6['next']({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x1561f3[_0x1c7fdc(0x451)][_0x1c7fdc(0x333)],'routeType':'','data':{'eventID':_[_0x1c7fdc(0x46d)][_0x1c7fdc(0x4fb)],'data':{'changesets':_0x1ac8e3}}});})[_0x1f1eb9(0x50c)](_0x20820b=>{const _0x2050ea=_0x1f1eb9;this[_0x2050ea(0x1a7)]['error'](_0x20820b),_0x7505a();});return;}}_0x52c45a[_0x1f1eb9(0x178)](Et(_0x38a38c));},'close':()=>{const _0x350b82=_0x758c43;_0x52c45a[_0x350b82(0x4d9)](),_0x1424fe[_0x350b82(0x347)]();}},_0x1ab5e4;}async['_submitChangeset'](_0x5b79b4,_0x4dec06){const _0x135bf4=_0x28eb85;var _0x829cf,_0x216277;const {unitType:_0x5f5bcc,unitID:_0x5bf8ed,changeset:_0x27ea13}=_0x4dec06[_0x135bf4(0x451)],_0x39370d={'unitID':_0x5bf8ed,'memberID':_0x5b79b4[_0x135bf4(0x25e)],'type':_0x5f5bcc,'changeset':_[_0x135bf4(0x23e)](_0x27ea13)},_0xe807b0=this['_configService']['getConfig'](gt),_0x5efe3e=this['_configService'][_0x135bf4(0x184)](A),_0x35ac05=rs((_0x216277=(_0x829cf=_0x5efe3e==null?void 0x0:_0x5efe3e['collabSubmitChangesetUrl'])!=null?_0x829cf:_0xe807b0)!=null?_0x216277:Qt,_0x5f5bcc,_0x5bf8ed);try{await this['_http'][_0x135bf4(0x252)](_0x35ac05,{'body':_0x39370d});}catch(_0x48133f){throw this[_0x135bf4(0x1a7)][_0x135bf4(0x533)](_0x135bf4(0x3cd),_0x135bf4(0x4c0)),_0x48133f;}}async['_fetchMissChangesets'](_0x322355){const _0x523fb3=_0x28eb85,{unitID:_0x549cd9,from:_0x1adb40,to:_0x3b9260,unitType:_0xe8d031}=_0x322355['data'];return(await this[_0x523fb3(0x478)][_0x523fb3(0x185)]({'metadata':void 0x0},{'unitID':_0x549cd9,'type':_0xe8d031,'from':_0x1adb40,'to':_0x3b9260}))['changesets'];}},exports[_0x28eb85(0x41a)]=ns([oe(0x0,a['Inject'](P[_0x28eb85(0x176)])),oe(0x1,a[_0x28eb85(0x23f)](P[_0x28eb85(0x2a1)])),oe(0x2,a[_0x28eb85(0x420)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x28eb85(0x383)])],exports['CollaborationSocketService']);const os=_0x28eb85(0x2fa);function as(_0x365679){const _0xb7858d=_0x28eb85;return JSON[_0xb7858d(0x360)](_0x365679)['length'];}class Ge{constructor(){const _0x16ddd9=_0x28eb85;d(this,_0x16ddd9(0x1e9),new v['Subject']()),d(this,_0x16ddd9(0x21f),this['_commentUpdate$'][_0x16ddd9(0x291)]());}[_0x28eb85(0x2d5)](_0x36699c){const _0x102757=_0x28eb85;this[_0x102757(0x1e9)][_0x102757(0x3fd)](_0x36699c);}}var cs=Object[_0x28eb85(0x114)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x9edeae,_0x3c86b8,_0x4fb51a,_0x4d4b6d)=>{const _0x345102=_0x28eb85;for(var _0x14e228=_0x4d4b6d>0x1?void 0x0:_0x4d4b6d?ls(_0x3c86b8,_0x4fb51a):_0x3c86b8,_0x51eb78=_0x9edeae[_0x345102(0x355)]-0x1,_0x1f7dea;_0x51eb78>=0x0;_0x51eb78--)(_0x1f7dea=_0x9edeae[_0x51eb78])&&(_0x14e228=(_0x4d4b6d?_0x1f7dea(_0x3c86b8,_0x4fb51a,_0x14e228):_0x1f7dea(_0x14e228))||_0x14e228);return _0x4d4b6d&&_0x14e228&&cs(_0x3c86b8,_0x4fb51a,_0x14e228),_0x14e228;},Ze=(_0x4c11d4,_0x520c65)=>(_0xd37627,_0xcf0820)=>_0x520c65(_0xd37627,_0xcf0820,_0x4c11d4);let q=class extends a[_0x28eb85(0x216)]{constructor(_0x4710e3,_0x5176e1){const _0x1056f4=_0x28eb85;super(),d(this,_0x1056f4(0x27f),new Map()),(this['_univerInstanceService']=_0x4710e3,this[_0x1056f4(0x492)]=_0x5176e1,this[_0x1056f4(0x214)](a[_0x1056f4(0x40e)](v[_0x1056f4(0x1ea)](this['_univerInstanceService'][_0x1056f4(0x1da)](a['UniverInstanceType'][_0x1056f4(0x384)])['pipe'](E[_0x1056f4(0x331)](_0x3e5ff8=>_0x3e5ff8[_0x1056f4(0x270)]())),this[_0x1056f4(0x357)]['getTypeOfUnitDisposed$'](a[_0x1056f4(0x24a)][_0x1056f4(0x43a)])[_0x1056f4(0x495)](E[_0x1056f4(0x331)](_0x17b1c8=>_0x17b1c8['getUnitId']())),this[_0x1056f4(0x357)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x1056f4(0x25c)])[_0x1056f4(0x495)](E[_0x1056f4(0x331)](_0x12b947=>_0x12b947['getUnitId']())))[_0x1056f4(0x14a)](_0x400483=>this[_0x1056f4(0x41c)](_0x400483)))));}[_0x28eb85(0x219)](_0x47e719){const _0x500338=_0x28eb85;this[_0x500338(0x492)][_0x500338(0x219)](_0x47e719);}[_0x28eb85(0x173)](){const _0x248a56=_0x28eb85;return this['_userManagerService'][_0x248a56(0x173)]();}['updateMember'](_0x23ee10,_0x40c7cb){const _0x479710=_0x28eb85;let _0x136f2d=this['_roomMembers'][_0x479710(0x30d)](_0x23ee10);_0x136f2d||(_0x136f2d=new _s(),this['_roomMembers'][_0x479710(0x191)](_0x23ee10,_0x136f2d)),_0x136f2d[_0x479710(0x1ed)](_0x40c7cb);}[_0x28eb85(0x187)](_0x38514c,_0x14198a){const _0x4871cd=_0x28eb85,_0x1a3532=this[_0x4871cd(0x27f)][_0x4871cd(0x30d)](_0x38514c);_0x1a3532&&_0x1a3532['removeMember'](_0x14198a);}[_0x28eb85(0x3e6)](_0xe7a691){const _0x258860=_0x28eb85;return this[_0x258860(0x27f)][_0x258860(0x30d)](_0xe7a691);}[_0x28eb85(0x4f6)](_0x51d461,_0x3402fc){const _0x4b08fe=_0x28eb85,_0x4ede08=this[_0x4b08fe(0x27f)][_0x4b08fe(0x30d)](_0x51d461);if(_0x4ede08)return _0x4ede08[_0x4b08fe(0x4f6)](_0x3402fc);}[_0x28eb85(0x41c)](_0xf6c0af){const _0x3fd957=_0x28eb85,_0x23a84f=this[_0x3fd957(0x27f)][_0x3fd957(0x30d)](_0xf6c0af);_0x23a84f&&(_0x23a84f[_0x3fd957(0x347)](),this[_0x3fd957(0x27f)][_0x3fd957(0x25f)](_0xf6c0af));}[_0x28eb85(0x347)](){const _0x2d9b88=_0x28eb85;this[_0x2d9b88(0x27f)]['forEach'](_0x1b73a1=>_0x1b73a1[_0x2d9b88(0x347)]()),this[_0x2d9b88(0x27f)][_0x2d9b88(0x382)]();}};q=hs([Ze(0x0,a[_0x28eb85(0x286)]),Ze(0x1,a[_0x28eb85(0x23f)](a['UserManagerService']))],q);class _s extends a[_0x28eb85(0x216)]{constructor(){const _0x27f594=_0x28eb85;super(...arguments),d(this,_0x27f594(0x303),new Map());}[_0x28eb85(0x347)](){const _0x29838a=_0x28eb85;this[_0x29838a(0x303)][_0x29838a(0x382)]();}['updateMember'](_0x200745){const _0x503017=_0x28eb85;this[_0x503017(0x303)][_0x503017(0x191)](_0x200745[_0x503017(0x25e)],_0x200745);}['removeMember'](_0x97c635){const _0x4954ee=_0x28eb85;this['_members'][_0x4954ee(0x25f)](_0x97c635);}[_0x28eb85(0x4f6)](_0x11cd95){const _0x10f717=_0x28eb85;return this[_0x10f717(0x303)]['get'](_0x11cd95);}}var us=Object[_0x28eb85(0x114)],ds=Object[_0x28eb85(0x38b)],Ss=(_0x29a319,_0x48a7fa,_0x181063,_0x27fcc9)=>{for(var _0x300d4f=_0x27fcc9>0x1?void 0x0:_0x27fcc9?ds(_0x48a7fa,_0x181063):_0x48a7fa,_0xddd251=_0x29a319['length']-0x1,_0x5e18d5;_0xddd251>=0x0;_0xddd251--)(_0x5e18d5=_0x29a319[_0xddd251])&&(_0x300d4f=(_0x27fcc9?_0x5e18d5(_0x48a7fa,_0x181063,_0x300d4f):_0x5e18d5(_0x300d4f))||_0x300d4f);return _0x27fcc9&&_0x300d4f&&us(_0x48a7fa,_0x181063,_0x300d4f),_0x300d4f;},B=(_0x16895b,_0x3594b2)=>(_0x58dbf3,_0x3d57b4)=>_0x3594b2(_0x58dbf3,_0x3d57b4,_0x16895b),$=(_0x4c71f2=>(_0x4c71f2[_0x4c71f2[_0x28eb85(0x36f)]=0x0]=_0x28eb85(0x36f),_0x4c71f2[_0x4c71f2[_0x28eb85(0x379)]=0x1]='JOINING',_0x4c71f2[_0x4c71f2[_0x28eb85(0x29c)]=0x2]=_0x28eb85(0x29c),_0x4c71f2[_0x4c71f2[_0x28eb85(0x47d)]=0x3]='ONLINE',_0x4c71f2))($||{});exports['CollaborationSession']=class extends a[_0x28eb85(0x2f9)]{constructor(_0x1dbd23,_0x330a7b,_0x5273e7,_0x8a2190,_0x2f1bdc,_0x6302d9,_0x205f0c,_0x1e50a9,_0x33a738,_0x40d9f1){const _0x47c46d=_0x28eb85;super(),d(this,_0x47c46d(0x299),new v[(_0x47c46d(0x276))](0x0)),d(this,_0x47c46d(0x194),this[_0x47c46d(0x299)][_0x47c46d(0x291)]()),d(this,_0x47c46d(0x4ed),new v[(_0x47c46d(0x1ec))]()),d(this,_0x47c46d(0x476),this[_0x47c46d(0x4ed)][_0x47c46d(0x291)]()),d(this,_0x47c46d(0x2a7)),d(this,'_socketMessageSubscription'),d(this,_0x47c46d(0x463)),d(this,'_shouldReportTelemetry',!0x1),d(this,'_telemetryInfo',null),(this[_0x47c46d(0x1bd)]=_0x1dbd23,this[_0x47c46d(0x1a7)]=_0x5273e7,this[_0x47c46d(0x3be)]=_0x8a2190,this[_0x47c46d(0x23d)]=_0x2f1bdc,this['_configService']=_0x6302d9,this[_0x47c46d(0x122)]=_0x205f0c,this[_0x47c46d(0x4c9)]=_0x1e50a9,this['_commentService']=_0x33a738,this[_0x47c46d(0x183)]=_0x40d9f1,this[_0x47c46d(0x52d)]=!!this['_telemetryService'],_0x330a7b[_0x47c46d(0x495)](v['takeUntil'](this[_0x47c46d(0x2fb)]))['subscribe'](_0x1c7e8c=>{const _0x41cb5d=_0x47c46d;var _0xec55cb;typeof _0x1c7e8c>'u'||(this[_0x41cb5d(0x2a7)]=_0x1c7e8c,_0x1c7e8c?(this[_0x41cb5d(0x3a9)](_0x1c7e8c),this[_0x41cb5d(0x19b)]=_0x1c7e8c[_0x41cb5d(0x3e5)][_0x41cb5d(0x14a)](_0x56caf2=>{const _0x4baf0d=_0x41cb5d;_0x56caf2[_0x4baf0d(0x22b)]===this[_0x4baf0d(0x1bd)]&&this[_0x4baf0d(0x2b6)](_0x56caf2);})):(this[_0x41cb5d(0x3d1)](),this[_0x41cb5d(0x299)][_0x41cb5d(0x3fd)](0x2),(_0xec55cb=this['_socketMessageSubscription'])==null||_0xec55cb['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x47c46d(0x3be)][_0x47c46d(0x395)](()=>{const _0x52aa14=_0x47c46d;var _0x7ebfaf;(_0x7ebfaf=this['_socket'])==null||_0x7ebfaf[_0x52aa14(0x178)]({'cmd':b[_0x52aa14(0x27d)],'data':{'roomID':this[_0x52aa14(0x1bd)]}});})));}get[_0x28eb85(0x4ab)](){return this['_sessionStatus$']['getValue']();}[_0x28eb85(0x2e4)](){const _0x4c2f09=_0x28eb85;var _0x592c5b,_0x5a5315;return(_0x5a5315=(_0x592c5b=this[_0x4c2f09(0x2a7)])==null?void 0x0:_0x592c5b[_0x4c2f09(0x25e)])!=null?_0x5a5315:null;}['dispose'](){const _0x16d617=_0x28eb85;super[_0x16d617(0x347)](),this[_0x16d617(0x2fb)][_0x16d617(0x3fd)](),this[_0x16d617(0x2fb)][_0x16d617(0x500)]();}[_0x28eb85(0x4d9)](){const _0x416c21=_0x28eb85;var _0x16fc27,_0x3d7d23;this[_0x416c21(0x3d1)](),(_0x16fc27=this[_0x416c21(0x2a7)])==null||_0x16fc27[_0x416c21(0x178)]({'cmd':b[_0x416c21(0x27d)],'data':{'roomID':this[_0x416c21(0x1bd)]}}),(_0x3d7d23=this[_0x416c21(0x2a7)])==null||_0x3d7d23[_0x416c21(0x4d9)](),this['_event$'][_0x416c21(0x500)](),this['_sessionStatus$'][_0x416c21(0x500)](),this[_0x416c21(0x347)]();}[_0x28eb85(0x2b6)](_0x46fc18){const _0x404d28=_0x28eb85;_0x46fc18['cmd']===b[_0x404d28(0x159)]?this[_0x404d28(0x4b5)](_0x46fc18):_0x46fc18['cmd']===b[_0x404d28(0x386)]&&this[_0x404d28(0x20f)](_0x46fc18);}[_0x28eb85(0x3a9)](_0x8d6783){const _0x4a2c62=_0x28eb85;this[_0x4a2c62(0x299)][_0x4a2c62(0x3fd)](0x1),_0x8d6783[_0x4a2c62(0x178)]({'cmd':b[_0x4a2c62(0x159)],'routeKey':this[_0x4a2c62(0x1bd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4a2c62(0x1bd)]}]}});}[_0x28eb85(0x4b5)](_0x5c219b){const _0x2782dd=_0x28eb85;var _0x10a7c9;if(_0x5c219b['code']===We['FAIL']){this[_0x2782dd(0x23d)][_0x2782dd(0x2bd)]({'type':X[_0x2782dd(0x2ea)][_0x2782dd(0x529)],'content':this[_0x2782dd(0x122)]['t'](_0x2782dd(0x512))}),this[_0x2782dd(0x299)][_0x2782dd(0x3fd)](0x2);return;}this[_0x2782dd(0x299)][_0x2782dd(0x3fd)](0x3);const _0x5c9be6=(_0x10a7c9=_0x5c219b[_0x2782dd(0x451)][_0x2782dd(0x37a)][this['_unitID']])==null?void 0x0:_0x10a7c9['members'];_0x5c9be6&&_0x5c9be6[_0x2782dd(0x2bf)](_0x23c359=>this[_0x2782dd(0x4c9)][_0x2782dd(0x1ed)](this[_0x2782dd(0x1bd)],_0x23c359));}['_onRecvEvent'](_0x1438b7){const _0x14d549=_0x28eb85;try{const _0x834c9=_0x1438b7[_0x14d549(0x451)];switch(_0x834c9[_0x14d549(0x16b)]){case _[_0x14d549(0x46d)][_0x14d549(0x2c4)]:this['_onUserJoin'](_0x834c9),this['_event$']['next'](_0x834c9);break;case _[_0x14d549(0x46d)]['USERS_LEAVE']:this['_onUserLeave'](_0x834c9),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)][_0x14d549(0x3d4)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x14d549(0x4df)](),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)][_0x14d549(0x257)]:this[_0x14d549(0x1a7)]['error'](_0x14d549(0x418)+JSON[_0x14d549(0x360)](_0x834c9)),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)]['COMMENT_UPDATE']:this[_0x14d549(0x509)][_0x14d549(0x2d5)](_0x834c9[_0x14d549(0x451)]),this['_event$'][_0x14d549(0x3fd)](_0x834c9);break;default:this['_event$'][_0x14d549(0x3fd)](_0x834c9);}}catch(_0x477892){this[_0x14d549(0x1a7)][_0x14d549(0x533)](_0x477892,_0x1438b7);}}[_0x28eb85(0x243)](_0x44de88){const _0x214ad9=_0x28eb85;this[_0x214ad9(0x4c9)][_0x214ad9(0x1ed)](this[_0x214ad9(0x1bd)],_0x44de88['data']);}[_0x28eb85(0x1f9)](_0x1ccdc3){const _0x21953f=_0x28eb85;this[_0x21953f(0x4c9)][_0x21953f(0x187)](this['_unitID'],_0x1ccdc3[_0x21953f(0x451)][_0x21953f(0x25e)]);}async['send'](_0x2dfa1a,_0x540904){const _0x53b39f=_0x28eb85;if(this['sessionStatus']!==0x3||!this[_0x53b39f(0x2a7)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2dfa1a[_0x53b39f(0x16b)]===_[_0x53b39f(0x46d)][_0x53b39f(0x13f)]&&(this[_0x53b39f(0x527)](),this[_0x53b39f(0x11a)](_0x2dfa1a)),this[_0x53b39f(0x2a7)][_0x53b39f(0x178)]({'cmd':b['INGEST'],'routeKey':_0x540904,'routeType':'','data':_0x2dfa1a});}catch(_0xfa0d21){this[_0x53b39f(0x1a7)][_0x53b39f(0x533)](_0xfa0d21);}}[_0x28eb85(0x527)](){const _0x54c694=_0x28eb85;var _0x1e3edc;this[_0x54c694(0x463)]=window[_0x54c694(0x16f)](()=>{const _0x1cbe06=_0x54c694;this[_0x1cbe06(0x463)]=null,this[_0x1cbe06(0x23d)]['show']({'type':X[_0x1cbe06(0x2ea)][_0x1cbe06(0x457)],'content':this[_0x1cbe06(0x122)]['t'](_0x1cbe06(0x1f1))});},(_0x1e3edc=this['_configService'][_0x54c694(0x184)](Ve))!=null?_0x1e3edc:St);}['_clearCollaborationTimeoutTimer'](){const _0x4e68ed=_0x28eb85;this[_0x4e68ed(0x463)]&&(clearTimeout(this[_0x4e68ed(0x463)]),this[_0x4e68ed(0x463)]=null);}[_0x28eb85(0x11a)](_0x13bda8){const _0x498eaf=_0x28eb85;if(!this[_0x498eaf(0x52d)])return;const {data:_0x143127}=_0x13bda8,{unitID:_0x8253,changeset:_0x19ab69}=_0x143127,{mutations:_0x327eef,type:_0x28fb13}=_0x19ab69;this[_0x498eaf(0x416)]={'unitId':_0x8253,'type':_0x28fb13,'startTime':performance[_0x498eaf(0x48f)](),'stopTime':0x0,'duration':0x0,'size':as(_0x327eef)};}[_0x28eb85(0x518)](){const _0x46e870=_0x28eb85;if(this[_0x46e870(0x52d)]){if(!this['_telemetryInfo']){this['_logService'][_0x46e870(0x533)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x46e870(0x416)][_0x46e870(0x1ca)]=this[_0x46e870(0x416)][_0x46e870(0x284)]-this[_0x46e870(0x416)]['startTime'],this[_0x46e870(0x183)][_0x46e870(0x34f)](os,this[_0x46e870(0x416)]),this['_telemetryInfo']=null;}}[_0x28eb85(0x3d1)](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N['IBeforeCloseService']),B(0x4,N['IMessageService']),B(0x5,a[_0x28eb85(0x420)]),B(0x6,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),B(0x7,a[_0x28eb85(0x23f)](q)),B(0x8,a[_0x28eb85(0x23f)](Ge)),B(0x9,a['Optional'](Vt[_0x28eb85(0x4e9)]))],exports[_0x28eb85(0x15f)]);var vs=Object[_0x28eb85(0x114)],fs=Object['getOwnPropertyDescriptor'],gs=(_0x3dd153,_0x1e2895,_0x40cc41,_0x14ada9)=>{const _0x3a1534=_0x28eb85;for(var _0x5ac15c=_0x14ada9>0x1?void 0x0:_0x14ada9?fs(_0x1e2895,_0x40cc41):_0x1e2895,_0xdadd52=_0x3dd153[_0x3a1534(0x355)]-0x1,_0x353f9e;_0xdadd52>=0x0;_0xdadd52--)(_0x353f9e=_0x3dd153[_0xdadd52])&&(_0x5ac15c=(_0x14ada9?_0x353f9e(_0x1e2895,_0x40cc41,_0x5ac15c):_0x353f9e(_0x5ac15c))||_0x5ac15c);return _0x14ada9&&_0x5ac15c&&vs(_0x1e2895,_0x40cc41,_0x5ac15c),_0x5ac15c;},Z=(_0x44134e,_0xbbfa8f)=>(_0x547ee1,_0x31b00d)=>_0xbbfa8f(_0x547ee1,_0x31b00d,_0x44134e);exports[_0x28eb85(0x398)]=class extends a[_0x28eb85(0x216)]{constructor(_0x58b2c5,_0x1ec205,_0xaa288,_0x4c35a5,_0x426ce3,_0x1586d1){const _0x6eb1d8=_0x28eb85;super(),d(this,_0x6eb1d8(0x51a),new v[(_0x6eb1d8(0x276))](void 0x0)),d(this,_0x6eb1d8(0x4e3),this[_0x6eb1d8(0x51a)]['asObservable']()),d(this,_0x6eb1d8(0x363),null),d(this,_0x6eb1d8(0x3aa),new Map()),d(this,_0x6eb1d8(0x19c),new v['BehaviorSubject']($[_0x6eb1d8(0x36f)])),d(this,_0x6eb1d8(0x1dd),this[_0x6eb1d8(0x19c)][_0x6eb1d8(0x291)]()),d(this,_0x6eb1d8(0x17b),!0x1),d(this,_0x6eb1d8(0x358)),d(this,_0x6eb1d8(0x2a2),0x0),d(this,_0x6eb1d8(0x48a)),d(this,_0x6eb1d8(0x51f)),(this['_injector']=_0x58b2c5,this['_localeService']=_0x1ec205,this[_0x6eb1d8(0x23d)]=_0xaa288,this[_0x6eb1d8(0x1a7)]=_0x4c35a5,this[_0x6eb1d8(0x4d8)]=_0x426ce3,this[_0x6eb1d8(0x49c)]=_0x1586d1,this[_0x6eb1d8(0x236)]());}get[_0x28eb85(0x2a7)](){const _0xcc982d=_0x28eb85;return this['_socket$'][_0xcc982d(0x4d6)]();}[_0x28eb85(0x236)](){const _0x1d727c=_0x28eb85;this[_0x1d727c(0x2e1)](),this[_0x1d727c(0x290)]();}[_0x28eb85(0x347)](){const _0x312159=_0x28eb85;super[_0x312159(0x347)](),this['_sessions'][_0x312159(0x2bf)](_0x7fbd5a=>_0x7fbd5a[_0x312159(0x347)]()),this[_0x312159(0x3aa)][_0x312159(0x382)](),this['_status$']['complete']();}async[_0x28eb85(0x123)](_0x48a6b4){const _0x2e9db0=_0x28eb85;if(this[_0x2e9db0(0x3aa)][_0x2e9db0(0x186)](_0x48a6b4))return this['_sessions']['get'](_0x48a6b4);this[_0x2e9db0(0x251)]();const _0x4bd4fa=this[_0x2e9db0(0x152)][_0x2e9db0(0x2e6)](exports[_0x2e9db0(0x15f)],_0x48a6b4,this['_socket$'][_0x2e9db0(0x291)]());return this['_sessions'][_0x2e9db0(0x191)](_0x48a6b4,_0x4bd4fa),_0x4bd4fa;}[_0x28eb85(0x42a)](_0x1122ae){const _0x369af5=_0x28eb85;var _0x5c04ab;const _0x140674=this[_0x369af5(0x3aa)][_0x369af5(0x30d)](_0x1122ae);_0x140674&&(this[_0x369af5(0x3aa)][_0x369af5(0x25f)](_0x1122ae),_0x140674[_0x369af5(0x4d9)]()),this['_sessions'][_0x369af5(0x50a)]||(_0x5c04ab=this[_0x369af5(0x2a7)])==null||_0x5c04ab['close']();}['reconnect'](){const _0x42d50c=_0x28eb85;this[_0x42d50c(0x2a2)]=0x0,this[_0x42d50c(0x358)]!=null&&(clearTimeout(this[_0x42d50c(0x358)]),this[_0x42d50c(0x358)]=null),this[_0x42d50c(0x146)]();}[_0x28eb85(0x38c)](){const _0x28da5e=_0x28eb85;var _0x2d1177,_0x3341ac;const _0xe211e5=this[_0x28da5e(0x4d8)][_0x28da5e(0x184)](ut),_0x28dd4c=this[_0x28da5e(0x4d8)][_0x28da5e(0x184)](A),_0x397cd8=(_0x3341ac=(_0x2d1177=_0x28dd4c==null?void 0x0:_0x28dd4c['collabWebSocketUrl'])!=null?_0x2d1177:_0xe211e5)!=null?_0x3341ac:Xt,_0x2f7962=this['_socketService'][_0x28da5e(0x345)](_0x397cd8);return this[_0x28da5e(0x363)]=_0x2f7962,_0x2f7962;}['_tryEnsureSocket'](){const _0x4c1e79=_0x28eb85;var _0x5ab95e,_0x298515;try{const _0x1255d6=(_0x298515=(_0x5ab95e=this[_0x4c1e79(0x2a7)])!=null?_0x5ab95e:this[_0x4c1e79(0x363)])!=null?_0x298515:this[_0x4c1e79(0x38c)]();if(_0x1255d6){const _0x4f213d=_0x1255d6['send'];_0x1255d6[_0x4c1e79(0x178)]=_0x41c6de=>(this[_0x4c1e79(0x34b)](),_0x4f213d[_0x4c1e79(0x47a)](_0x1255d6,[_0x41c6de])),_0x1255d6[_0x4c1e79(0x3e5)][_0x4c1e79(0x14a)](_0x2ef2dd=>this[_0x4c1e79(0x2f3)](_0x1255d6,_0x2ef2dd)),_0x1255d6[_0x4c1e79(0x1e8)][_0x4c1e79(0x495)](E[_0x4c1e79(0x2f0)](0x1))['subscribe'](_0x544d28=>this['_logService'][_0x4c1e79(0x533)](_0x4c1e79(0x145),_0x544d28)),_0x1255d6[_0x4c1e79(0x3d2)][_0x4c1e79(0x495)](E[_0x4c1e79(0x2f0)](0x1))['subscribe'](()=>{const _0x22e93b=_0x4c1e79;this[_0x22e93b(0x162)](_0x1255d6);}),_0x1255d6[_0x4c1e79(0x2a6)][_0x4c1e79(0x495)](E['take'](0x1))[_0x4c1e79(0x14a)](_0x3ee571=>{const _0x5de938=_0x4c1e79;this[_0x5de938(0x1a7)][_0x5de938(0x3b2)](_0x5de938(0x227),'socket\x20close',_0x3ee571),this[_0x5de938(0x522)]();});}}catch(_0x1a1d8a){this['_logService'][_0x4c1e79(0x533)](_0x1a1d8a),this[_0x4c1e79(0x522)]();}}[_0x28eb85(0x162)](_0x5e3d89){const _0x4c5c49=_0x28eb85;this[_0x4c5c49(0x1a7)][_0x4c5c49(0x3b2)](_0x4c5c49(0x227),_0x4c5c49(0x421)),_0x5e3d89['send']({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x106373=_0x28eb85;window['addEventListener']('offline',()=>this[_0x106373(0x436)]());}[_0x28eb85(0x436)](){const _0x5d9cd9=_0x28eb85;this[_0x5d9cd9(0x17b)]=!0x1,this[_0x5d9cd9(0x363)]=null,this['_status$']['next']($['OFFLINE']),this[_0x5d9cd9(0x51a)][_0x5d9cd9(0x3fd)](null),this[_0x5d9cd9(0x435)](),this['_clearHeartbeatTimer']();}[_0x28eb85(0x522)](){const _0x4b0385=_0x28eb85;var _0x53c888;this[_0x4b0385(0x436)](),this['_retryCount']<((_0x53c888=this['_configService'][_0x4b0385(0x184)](vt))!=null?_0x53c888:Jt)?(this[_0x4b0385(0x23d)]['show']({'key':_0x4b0385(0x25d),'type':X[_0x4b0385(0x2ea)][_0x4b0385(0x529)],'content':this[_0x4b0385(0x122)]['t'](_0x4b0385(0x496))}),this[_0x4b0385(0x146)]()):this['_messageService'][_0x4b0385(0x2bd)]({'key':'collaboration-session-retry','type':X[_0x4b0385(0x2ea)][_0x4b0385(0x457)],'content':this['_localeService']['t'](_0x4b0385(0x262))});}[_0x28eb85(0x290)](){const _0x45cb79=_0x28eb85,_0x3a701e=()=>{this['_socket']||this['reconnect']();},_0x319a33=()=>{const _0x41db79=_0xb2fc;this[_0x41db79(0x2a7)]||document[_0x41db79(0x3ed)]===_0x41db79(0x453)||this['reconnect']();};window[_0x45cb79(0x3dc)](_0x45cb79(0x30a),_0x3a701e),document[_0x45cb79(0x3dc)]('visibilitychange',_0x319a33);}[_0x28eb85(0x146)](){const _0x171792=_0x28eb85;var _0x5dd308;const _0xb9e437=this[_0x171792(0x2a2)],_0xcf0b92=this['_configService'][_0x171792(0x184)](A),_0x30f359=_0xb9e437===0x0?0x0:((_0x5dd308=_0xcf0b92==null?void 0x0:_0xcf0b92[_0x171792(0x41e)])!=null?_0x5dd308:zt)*0x2**_0xb9e437;this[_0x171792(0x358)]=window[_0x171792(0x16f)](()=>{const _0x434983=_0x171792;clearTimeout(this[_0x434983(0x358)]),this[_0x434983(0x358)]=null,this[_0x434983(0x251)]();},_0x30f359),this[_0x171792(0x2a2)]+=0x1;}[_0x28eb85(0x2f3)](_0x483da0,_0x2d969e){const _0x12c48f=_0x28eb85,{cmd:_0x27117c}=_0x2d969e;_0x27117c===b['HELLO']&&!this[_0x12c48f(0x17b)]&&(_0x483da0['memberID']=_0x2d969e[_0x12c48f(0x451)][_0x12c48f(0x25e)],this[_0x12c48f(0x51a)][_0x12c48f(0x3fd)](_0x483da0),this[_0x12c48f(0x19c)]['next']($[_0x12c48f(0x47d)]),this[_0x12c48f(0x17b)]=!0x0,this['_candidateSocket']=null),_0x27117c===b['HEARTBEAT']&&this[_0x12c48f(0x435)](),this['_rescheduleHeartbeat']();}[_0x28eb85(0x34b)](){const _0xc8f774=_0x28eb85;var _0x372c94;this[_0xc8f774(0x44b)](),this['_sendHeartbeatTimer']=window[_0xc8f774(0x16f)](()=>this[_0xc8f774(0x2f4)](),(_0x372c94=this[_0xc8f774(0x4d8)]['getConfig'](dt))!=null?_0x372c94:qt);}[_0x28eb85(0x2f4)](){const _0x57aa53=_0x28eb85;this[_0x57aa53(0x2a7)][_0x57aa53(0x178)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x28eb85(0x40c)](){const _0x2e30f6=_0x28eb85;var _0x40201a;this['_timeoutTimer']=window[_0x2e30f6(0x16f)](()=>this[_0x2e30f6(0x522)](),(_0x40201a=this[_0x2e30f6(0x4d8)][_0x2e30f6(0x184)](Ve))!=null?_0x40201a:St);}[_0x28eb85(0x44b)](){const _0x5e6aef=_0x28eb85;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5e6aef(0x48a)]),this[_0x5e6aef(0x48a)]=null);}['_clearTimeoutTimer'](){const _0x5f3207=_0x28eb85;this[_0x5f3207(0x51f)]!=null&&(clearTimeout(this[_0x5f3207(0x51f)]),this[_0x5f3207(0x51f)]=null);}},exports[_0x28eb85(0x398)]=gs([Z(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Z(0x1,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),Z(0x2,N[_0x28eb85(0x25a)]),Z(0x3,a[_0x28eb85(0x155)]),Z(0x4,a[_0x28eb85(0x420)]),Z(0x5,Fe)],exports[_0x28eb85(0x398)]);var ms=Object[_0x28eb85(0x114)],Is=Object[_0x28eb85(0x38b)],ps=(_0xbefe11,_0x469451,_0x379ca8,_0x738a1a)=>{for(var _0x17ad2d=_0x738a1a>0x1?void 0x0:_0x738a1a?Is(_0x469451,_0x379ca8):_0x469451,_0x53b335=_0xbefe11['length']-0x1,_0x2a1dab;_0x53b335>=0x0;_0x53b335--)(_0x2a1dab=_0xbefe11[_0x53b335])&&(_0x17ad2d=(_0x738a1a?_0x2a1dab(_0x469451,_0x379ca8,_0x17ad2d):_0x2a1dab(_0x17ad2d))||_0x17ad2d);return _0x738a1a&&_0x17ad2d&&ms(_0x469451,_0x379ca8,_0x17ad2d),_0x17ad2d;},De=(_0x495c9e,_0x1cbe09)=>(_0xe50d09,_0x1295b2)=>_0x1cbe09(_0xe50d09,_0x1295b2,_0x495c9e);let fe=class{constructor(_0x2b328e,_0xf6f02f,_0x1ed5ce){const _0x1ef82b=_0x28eb85;this['_injector']=_0x2b328e,this[_0x1ef82b(0x294)]=_0xf6f02f,this[_0x1ef82b(0x272)]=_0x1ed5ce;}['transformIMECache'](_0x10ae00){this['_transformUndoRedoStack'](_0x10ae00),this['_transformPreviousActiveRange'](_0x10ae00);}['transformRemoteChangeset'](_0x58cdb5){const _0x192785=_0x28eb85,{unitID:_0x52cf9b}=_0x58cdb5,_0x3cfe22=this[_0x192785(0x272)][_0x192785(0x310)](_0x52cf9b)[_0x192785(0x296)](w['DocIMEInputManagerService']),{redoCache:_0x202622}=_0x3cfe22[_0x192785(0x2d7)]();if(_0x202622[_0x192785(0x355)]===0x0)return _0x58cdb5;let _0x194373=a[_0x192785(0x356)][_0x192785(0x1b8)](_0x58cdb5[_0x192785(0x143)][0x0]);for(let _0x29e496=0x0;_0x29e496<_0x202622[_0x192785(0x355)];_0x29e496++){const _0x292354={'id':_0x192785(0x320),'params':{..._0x202622[_0x29e496]}},_0x355b78=this[_0x192785(0x294)]['transformMutation'](_0x194373,_0x292354,!0x1);if(_['isTransformMutationFailure'](_0x355b78))throw _0x355b78[_0x192785(0x533)];_0x194373=_0x355b78[_0x192785(0x365)];}return{...a[_0x192785(0x356)][_0x192785(0x1b8)](_0x58cdb5),'mutations':[_0x194373]};}[_0x28eb85(0x4f3)](_0x2a806c){const _0x240f1a=_0x28eb85,{unitID:_0x3bf08b}=_0x2a806c,_0x39f97a=this[_0x240f1a(0x272)][_0x240f1a(0x310)](_0x3bf08b)[_0x240f1a(0x296)](w[_0x240f1a(0x423)]),{undoCache:_0x2d23f1,redoCache:_0x367e79}=_0x39f97a[_0x240f1a(0x2d7)]();if(_0x2d23f1[_0x240f1a(0x355)]===0x0||_0x367e79[_0x240f1a(0x355)]===0x0)return;const _0x112e49=[],_0x3e0e28=[];let _0x2e0535=a[_0x240f1a(0x356)]['deepClone'](_0x2a806c[_0x240f1a(0x143)][0x0]),_0xec41f=a[_0x240f1a(0x356)]['deepClone'](_0x2a806c[_0x240f1a(0x143)][0x0]);for(let _0x322907=_0x2d23f1[_0x240f1a(0x355)]-0x1;_0x322907>=0x0;_0x322907--){const _0x5e644a={'id':_0x240f1a(0x320),'params':{..._0x2d23f1[_0x322907]}},_0x311120={'id':_0x240f1a(0x320),'params':{..._0x367e79[_0x322907]}},_0x509566=this[_0x240f1a(0x294)][_0x240f1a(0x21d)](_0x2e0535,_0x5e644a,!0x1),_0x34acd4=this[_0x240f1a(0x294)][_0x240f1a(0x21d)](_0xec41f,_0x311120,!0x1);if(_['isTransformMutationFailure'](_0x509566))throw _0x509566[_0x240f1a(0x533)];if(_[_0x240f1a(0x39e)](_0x34acd4))throw _0x34acd4['error'];_0x112e49[_0x240f1a(0x1de)](_0x509566[_0x240f1a(0x480)][_0x240f1a(0x1cf)]),_0x3e0e28[_0x240f1a(0x1de)](_0x34acd4[_0x240f1a(0x480)][_0x240f1a(0x1cf)]),_0x2e0535=_0x509566[_0x240f1a(0x365)],_0xec41f=_0x34acd4[_0x240f1a(0x365)];}_0x39f97a['setUndoRedoMutationParamsCache']({'undoCache':_0x112e49,'redoCache':_0x3e0e28});}[_0x28eb85(0x279)](_0x5937f1){const _0x2deaa2=_0x28eb85,{unitID:_0x5a49b7}=_0x5937f1,_0xc445c2=this[_0x2deaa2(0x272)][_0x2deaa2(0x310)](_0x5a49b7)['with'](w['DocIMEInputManagerService']),_0x180510=_0xc445c2['getActiveRange']();if(_0x180510==null)return;const _0x574c70=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5937f1[_0x2deaa2(0x333)],'actions':null,'textRanges':[_0x180510]}}],_0x90cdf7=this['_transformService'][_0x2deaa2(0x3ff)](_0x5937f1,_0x574c70);if(!_[_0x2deaa2(0x2ca)](_0x90cdf7))throw _0x90cdf7['error'];const _0x18ba95=_0x90cdf7[_0x2deaa2(0x480)][0x0][_0x2deaa2(0x1cf)][_0x2deaa2(0x22a)];Array[_0x2deaa2(0x33c)](_0x18ba95)&&_0x18ba95[_0x2deaa2(0x355)]&&_0xc445c2['setActiveRange'](_0x18ba95[0x0]);}};fe=ps([De(0x0,a[_0x28eb85(0x23f)](a['Injector'])),De(0x1,_['ITransformService']),De(0x2,R[_0x28eb85(0x209)])],fe);var Cs=Object[_0x28eb85(0x114)],Es=Object[_0x28eb85(0x38b)],bs=(_0x1c7dbc,_0x74077e,_0x41c807,_0xe48440)=>{const _0x4166c1=_0x28eb85;for(var _0x331534=_0xe48440>0x1?void 0x0:_0xe48440?Es(_0x74077e,_0x41c807):_0x74077e,_0xeefb04=_0x1c7dbc[_0x4166c1(0x355)]-0x1,_0x343f8c;_0xeefb04>=0x0;_0xeefb04--)(_0x343f8c=_0x1c7dbc[_0xeefb04])&&(_0x331534=(_0xe48440?_0x343f8c(_0x74077e,_0x41c807,_0x331534):_0x343f8c(_0x331534))||_0x331534);return _0xe48440&&_0x331534&&Cs(_0x74077e,_0x41c807,_0x331534),_0x331534;},ae=(_0x19c41f,_0xee36ff)=>(_0x529b83,_0x2439b5)=>_0xee36ff(_0x529b83,_0x2439b5,_0x19c41f);exports[_0x28eb85(0x1f5)]=class extends a[_0x28eb85(0x216)]{constructor(_0x27e5d5,_0x57f88d,_0x381d47,_0xd48216,_0x46a67b){const _0x197910=_0x28eb85;super(),d(this,'_cachedData',new Map()),d(this,_0x197910(0x21e),new Map()),d(this,'_disabled',!0x1),(this[_0x197910(0x4d8)]=_0x27e5d5,this['_localStorageService']=_0x57f88d,this[_0x197910(0x3be)]=_0x381d47,this[_0x197910(0x122)]=_0xd48216,this[_0x197910(0x325)]=_0x46a67b,this[_0x197910(0x412)]());}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2c5d57=_0x28eb85;this[_0x2c5d57(0x225)]=!0x1;}['dispose'](){const _0x6f059e=_0x28eb85;this['exhaustSavingTask']()[_0x6f059e(0x167)](()=>super[_0x6f059e(0x347)]());}async[_0x28eb85(0x2c6)](_0x2be45c){const _0x23d0f3=_0x28eb85;return this[_0x23d0f3(0x225)]?null:this[_0x23d0f3(0x124)][_0x23d0f3(0x240)](Qe(_0x2be45c));}async[_0x28eb85(0x2f2)](_0x396120,_0x42b31f){const _0x32bc5f=_0x28eb85;return!!this['_localStorageService'][_0x32bc5f(0x2dc)](_0x396120,_0x42b31f);}[_0x28eb85(0x118)](_0x39e697,_0x297ba4,_0x476bbb,_0x94b929){const _0x1239ca=_0x28eb85,_0x5156f9=this[_0x1239ca(0x325)][_0x1239ca(0x134)](_0x39e697);this[_0x1239ca(0x3b3)][_0x1239ca(0x191)](_0x39e697,{'unitID':_0x39e697,'type':_0x297ba4,'awaitingChangeset':_0x476bbb,'mutations':_0x94b929,'rev':_0x5156f9}),this[_0x1239ca(0x21e)][_0x1239ca(0x186)](_0x39e697)||this[_0x1239ca(0x306)](_0x39e697);}[_0x28eb85(0x306)](_0x5c87b1){const _0x3d8ad5=_0x28eb85,_0x546864=this['_getSaveTimeout']();_0x546864===0x0?this[_0x3d8ad5(0x271)](_0x5c87b1):this[_0x3d8ad5(0x21e)]['set'](_0x5c87b1,setTimeout(()=>this['_saveCache'](_0x5c87b1),_0x546864));}[_0x28eb85(0x466)](){var _0x3bfd7c;return(_0x3bfd7c=this['_configService']['getConfig'](ft))!=null?_0x3bfd7c:Zt;}[_0x28eb85(0x271)](_0x6180ec){const _0x28b54a=_0x28eb85,_0x24d905=this[_0x28b54a(0x21e)]['get'](_0x6180ec);return _0x24d905!==void 0x0&&window[_0x28b54a(0x46a)](_0x24d905),this['_localStorageService'][_0x28b54a(0x2dc)](Qe(_0x6180ec),this[_0x28b54a(0x3b3)][_0x28b54a(0x30d)](_0x6180ec))[_0x28b54a(0x167)](()=>this[_0x28b54a(0x21e)]['delete'](_0x6180ec));}async[_0x28eb85(0x13a)](){const _0x3f8fbb=_0x28eb85,_0x4bc142=[];this[_0x3f8fbb(0x21e)][_0x3f8fbb(0x2bf)]((_0x2847e6,_0x381885)=>{const _0x2c01f2=_0x3f8fbb;window[_0x2c01f2(0x46a)](_0x2847e6),_0x4bc142[_0x2c01f2(0x3f4)](this['_saveCache'](_0x381885)['then'](()=>{const _0x41d231=_0x2c01f2;this[_0x41d231(0x21e)][_0x41d231(0x25f)](_0x381885);}));}),await Promise[_0x3f8fbb(0x14b)](_0x4bc142);}['_setupBeforeClosingHandler'](){const _0x1cdfd9=_0x28eb85;this[_0x1cdfd9(0x214)](this[_0x1cdfd9(0x3be)][_0x1cdfd9(0x3cb)](()=>{const _0x409734=_0x1cdfd9;if(this['_saveTaskMap'][_0x409734(0x50a)])return this[_0x409734(0x122)]['t'](_0x409734(0x20a));}));}},exports[_0x28eb85(0x1f5)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a[_0x28eb85(0x341)]),ae(0x2,N[_0x28eb85(0x4a6)]),ae(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),ae(0x4,a[_0x28eb85(0x23f)](_['RevisionService']))],exports[_0x28eb85(0x1f5)]);function Qe(_0x358bf1){const _0x1c9807=_0x28eb85;return _0x1c9807(0x34e)+_0x358bf1;}var Ts=Object['defineProperty'],Rs=Object[_0x28eb85(0x38b)],Os=(_0x752c26,_0x21cc5f,_0x5d9437,_0x5adacc)=>{for(var _0x8128=_0x5adacc>0x1?void 0x0:_0x5adacc?Rs(_0x21cc5f,_0x5d9437):_0x21cc5f,_0x1a0889=_0x752c26['length']-0x1,_0x2957a5;_0x1a0889>=0x0;_0x1a0889--)(_0x2957a5=_0x752c26[_0x1a0889])&&(_0x8128=(_0x5adacc?_0x2957a5(_0x21cc5f,_0x5d9437,_0x8128):_0x2957a5(_0x8128))||_0x8128);return _0x5adacc&&_0x8128&&Ts(_0x21cc5f,_0x5d9437,_0x8128),_0x8128;},ye=(_0x56d776,_0x7c87f5)=>(_0x35e4cf,_0x420742)=>_0x7c87f5(_0x35e4cf,_0x420742,_0x56d776);function Ds(_0x22a22d){const _0x2dba5d=_0x28eb85,{unitID:_0x144b16,mutations:_0x24ca2d}=_0x22a22d;return{'unitId':_0x144b16,'subUnitId':_0x24ca2d[0x0]['params'][_0x2dba5d(0x2a8)]};}let ge=class{constructor(_0x1db2e3,_0x520115,_0x2ef165){const _0x72c95c=_0x28eb85;this[_0x72c95c(0x152)]=_0x1db2e3,this['_transformService']=_0x520115,this[_0x72c95c(0x258)]=_0x2ef165;}[_0x28eb85(0x14f)](_0x461a76){const _0x3981a2=_0x28eb85;var _0x449727,_0x359b18,_0x4a3c4b,_0x54343d;const _0x378c99=this['_injector'][_0x3981a2(0x30d)](C['SheetsSelectionsService']),{unitId:_0x47f5bb,subUnitId:_0x3dd6cb}=Ds(_0x461a76),_0x2c8257=_0x378c99[_0x3981a2(0x2dd)](_0x47f5bb)[_0x3981a2(0x157)](),_0x1cd606=(_0x359b18=(_0x449727=this[_0x3981a2(0x258)][_0x3981a2(0x318)](_0x47f5bb))==null?void 0x0:_0x449727[_0x3981a2(0x351)]())==null?void 0x0:_0x359b18[_0x3981a2(0x1b5)]();if(_0x2c8257[_0x3981a2(0x355)]===0x0||!_0x47f5bb||!_0x3dd6cb)return;const _0x37762f=[{'id':C[_0x3981a2(0x275)]['id'],'params':{'unitId':_0x47f5bb,'subUnitId':_0x1cd606,'selections':a[_0x3981a2(0x356)]['deepClone'](_0x2c8257)}}],_0x527335=this['_transformService'][_0x3981a2(0x3ff)](_0x461a76,_0x37762f);if(!_[_0x3981a2(0x2ca)](_0x527335))throw _0x527335[_0x3981a2(0x533)];const _0x2764b4=(_0x54343d=(_0x4a3c4b=_0x527335[_0x3981a2(0x480)][0x0])==null?void 0x0:_0x4a3c4b[_0x3981a2(0x1cf)])==null?void 0x0:_0x54343d[_0x3981a2(0x3c9)];Array[_0x3981a2(0x33c)](_0x2764b4)&&_0x2764b4[_0x3981a2(0x355)]&&this[_0x3981a2(0x152)][_0x3981a2(0x30d)](a[_0x3981a2(0x1b0)])['executeCommand'](C[_0x3981a2(0x275)]['id'],{'unitId':_0x47f5bb,'subUnitId':_0x1cd606,'selections':_0x2764b4});}};ge=Os([ye(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),ye(0x1,_[_0x28eb85(0x2b4)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a['createIdentifier'](_0x28eb85(0x12f));var bt=(_0x26d6e7=>(_0x26d6e7[_0x26d6e7['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x28eb85(0x437),_0x26d6e7[_0x26d6e7[_0x28eb85(0x130)]=0x1]=_0x28eb85(0x130),_0x26d6e7))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a['Disposable']{constructor(){const _0xf104e=_0x28eb85;super(),d(this,_0xf104e(0x530),a[_0xf104e(0x356)]['generateRandomId']()),d(this,'_selfUnitIDs',new Set()),d(this,_0xf104e(0x51b),new Map()),d(this,_0xf104e(0x1c7),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0xf104e(0x3e8)]();}['dispose'](){const _0x44e5b9=_0x28eb85;super['dispose'](),this[_0x44e5b9(0x2a5)][_0x44e5b9(0x2bf)]((_0x585749,_0x5eccc0)=>this[_0x44e5b9(0x113)](_0x5eccc0)),this['_heartbeatTimer']&&window[_0x44e5b9(0x490)](this[_0x44e5b9(0x1c7)]);}[_0x28eb85(0x359)](_0x22b346){const _0x453f4a=_0x28eb85;return this[_0x453f4a(0x1fa)](_0x22b346)[_0x453f4a(0x495)](v[_0x453f4a(0x1cc)]());}['editingUnit'](_0x2f159f){const _0x144a56=_0x28eb85;this[_0x144a56(0x2cb)][_0x144a56(0x50a)]===0x0&&this[_0x144a56(0x483)](),this[_0x144a56(0x2cb)][_0x144a56(0x4e1)](_0x2f159f),this[_0x144a56(0x1e7)]({'type':0x0,'memberID':this[_0x144a56(0x530)],'unitIDs':[_0x2f159f],'isForwarded':!0x1});}[_0x28eb85(0x49d)](_0x20887b){const _0x1c80f8=_0x28eb85;this[_0x1c80f8(0x2cb)]['delete'](_0x20887b),this[_0x1c80f8(0x2cb)][_0x1c80f8(0x50a)]===0x0&&this[_0x1c80f8(0x1c7)]&&window[_0x1c80f8(0x490)](this['_heartbeatTimer']);}[_0x28eb85(0x3e8)](){const _0x28b04f=_0x28eb85;this[_0x28b04f(0x214)](a[_0x28b04f(0x40e)](v[_0x28b04f(0x33b)](window,_0x28b04f(0x4bf))[_0x28b04f(0x14a)](_0x1d64b7=>{const _0x3007c7=_0x28b04f;if(_0x1d64b7[_0x3007c7(0x4f1)]!==tt||!_0x1d64b7['newValue'])return;const _0x50791c=JSON[_0x3007c7(0x3a4)](_0x1d64b7[_0x3007c7(0x311)]);this['_handleEvent'](_0x50791c);}))),window[_0x28b04f(0x3dc)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x28b04f(0x530)],'unitIDs':Array[_0x28b04f(0x507)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x458bd0){const _0x9a343d=_0x28eb85;switch(_0x458bd0['type']){case 0x0:this[_0x9a343d(0x488)](_0x458bd0);break;case 0x1:this[_0x9a343d(0x1be)](_0x458bd0);break;case 0x2:this[_0x9a343d(0x374)](_0x458bd0);break;}}[_0x28eb85(0x488)](_0x5d87d1){const _0x4dc9ca=_0x28eb85,{unitIDs:_0x3b7637,memberID:_0x52065b,isForwarded:_0x2887d7}=_0x5d87d1;_0x3b7637[_0x4dc9ca(0x2bf)](_0x45dbf0=>{const _0x55a03f=_0x4dc9ca;if(!_0x2887d7&&this[_0x55a03f(0x51b)][_0x55a03f(0x186)](_0x45dbf0)&&this[_0x55a03f(0x1fa)](_0x45dbf0)[_0x55a03f(0x3fd)](0x1),!this['_unitOnClients']['has'](_0x45dbf0)||!this[_0x55a03f(0x51b)][_0x55a03f(0x30d)](_0x45dbf0)[_0x55a03f(0x186)](_0x52065b)){const _0x323c53=this[_0x55a03f(0x51b)][_0x55a03f(0x30d)](_0x45dbf0)||new Set();_0x323c53[_0x55a03f(0x4e1)](_0x52065b),this[_0x55a03f(0x51b)][_0x55a03f(0x191)](_0x45dbf0,_0x323c53),this[_0x55a03f(0x4c6)](_0x52065b);}}),_0x2887d7||this[_0x4dc9ca(0x1e7)]({'type':0x0,'memberID':this[_0x4dc9ca(0x530)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc6a0de){const _0x461f03=_0x28eb85;this[_0x461f03(0x113)](_0xc6a0de);const _0x18e168=window['setTimeout'](()=>{const _0x2ab481=_0x461f03;this['_unitOnClients'][_0x2ab481(0x2bf)](_0xa8fd45=>{_0xa8fd45['delete'](_0xc6a0de);});},et*0x2);this[_0x461f03(0x2a5)]['set'](_0xc6a0de,_0x18e168);}['_removeClearOtherTimer'](_0xc6156e){const _0x47f483=_0x28eb85;if(this[_0x47f483(0x2a5)][_0x47f483(0x186)](_0xc6156e)){const _0x21dcf8=this['_clearOtherTimers'][_0x47f483(0x30d)](_0xc6156e);_0x21dcf8&&window[_0x47f483(0x46a)](_0x21dcf8),this[_0x47f483(0x2a5)][_0x47f483(0x191)](_0xc6156e,null);}}[_0x28eb85(0x1be)](_0x4c6d7a){const _0x115bd6=_0x28eb85,{memberID:_0xc44713,unitIDs:_0x3c097e}=_0x4c6d7a;_0x3c097e[_0x115bd6(0x2bf)](_0x419227=>{const _0x106059=_0x115bd6;var _0x42f643;const _0x253eb9=this[_0x106059(0x51b)][_0x106059(0x30d)](_0x419227);_0x253eb9&&(_0x253eb9[_0x106059(0x25f)](_0xc44713),(_0x42f643=this['_ensureSubject'](_0x419227))==null||_0x42f643['next'](_0x253eb9[_0x106059(0x50a)]===0x0?0x0:0x1));}),this[_0x115bd6(0x113)](_0xc44713);}['_handleHeartbeatEvent'](_0x9a3eff){const _0x496907=_0x28eb85;this['_scheduleClearOtherTimer'](_0x9a3eff[_0x496907(0x25e)]);}[_0x28eb85(0x1e7)](_0x41c77f){const _0x157178=_0x28eb85;localStorage['setItem'](tt,JSON[_0x157178(0x360)](_0x41c77f));}[_0x28eb85(0x483)](){const _0x3e6cbf=_0x28eb85;this[_0x3e6cbf(0x1c7)]=window[_0x3e6cbf(0x3bb)](()=>{const _0xd9f3e0=_0x3e6cbf;this[_0xd9f3e0(0x1e7)]({'type':0x2,'memberID':this[_0xd9f3e0(0x530)]});},et);}[_0x28eb85(0x1fa)](_0xa624ee){const _0x2b4cbb=_0x28eb85;return this[_0x2b4cbb(0x36b)]['has'](_0xa624ee)||this[_0x2b4cbb(0x36b)]['set'](_0xa624ee,new v['BehaviorSubject'](0x0)),this['_unitStatus'][_0x2b4cbb(0x30d)](_0xa624ee);}}function Tt(_0x4620f7){const _0x307212=_0x28eb85;let _0x18523c='';for(const _0x471841 of _0x4620f7){const {startOffset:_0x16eec6,endOffset:_0x363a75,isActive:_0x43207f}=_0x471841;_0x18523c[_0x307212(0x355)]&&(_0x18523c+=','),_0x18523c+=_0x16eec6+':'+_0x363a75+':'+(_0x43207f?'1':'0');}return _0x18523c;}function Us(_0x570683){const _0x266d82=_0x28eb85,_0x33c4fe=_0x570683[_0x266d82(0x4dc)](','),_0x36ecd2=[];for(const _0x320bde of _0x33c4fe){const [_0x15ac63,_0x54b993,_0x54c82c]=_0x320bde['split'](':');_0x36ecd2[_0x266d82(0x3f4)]({'startOffset':Number(_0x15ac63),'endOffset':Number(_0x54b993),'collapsed':_0x15ac63===_0x54b993,'isActive':_0x54c82c==='1'});}return _0x36ecd2[_0x266d82(0x1d0)](_0x55127c=>_0x55127c[_0x266d82(0x226)])||(_0x36ecd2[0x0][_0x266d82(0x226)]=!0x0),_0x36ecd2;}class Ye extends a['RxDisposable']{constructor(){const _0x11ac84=_0x28eb85;super(...arguments),d(this,'_collabCursorState$',new v[(_0x11ac84(0x276))](null)),d(this,_0x11ac84(0x17a),this['_collabCursorState$'][_0x11ac84(0x291)]());}['syncEditingCollabCursor'](_0x1ebc35){const _0x6c4328=_0x28eb85,{unitID:_0x216e77,memberID:_0x422430,textRanges:_0x336d35}=_0x1ebc35,_0x3d86ec=Tt(_0x336d35),_0x4c77f7={'unitID':_0x216e77,'memberID':_0x422430,'selection':_0x3d86ec};this[_0x6c4328(0x280)][_0x6c4328(0x3fd)](_0x4c77f7);}}var Ps=Object['defineProperty'],ws=Object[_0x28eb85(0x38b)],Ms=(_0x39e8ed,_0x161c49,_0x2626bd,_0x150b76)=>{const _0x23af29=_0x28eb85;for(var _0x5bb412=_0x150b76>0x1?void 0x0:_0x150b76?ws(_0x161c49,_0x2626bd):_0x161c49,_0x2624b5=_0x39e8ed[_0x23af29(0x355)]-0x1,_0x445867;_0x2624b5>=0x0;_0x2624b5--)(_0x445867=_0x39e8ed[_0x2624b5])&&(_0x5bb412=(_0x150b76?_0x445867(_0x161c49,_0x2626bd,_0x5bb412):_0x445867(_0x5bb412))||_0x5bb412);return _0x150b76&&_0x5bb412&&Ps(_0x161c49,_0x2626bd,_0x5bb412),_0x5bb412;},st=(_0x4e9ed4,_0x178386)=>(_0x36a568,_0x2d2f48)=>_0x178386(_0x36a568,_0x2d2f48,_0x4e9ed4);function _0x59b6(){const _0x2f5b9f=['No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scene','2135vpsvyG','_joinRoom','_sessions','Optional','APPLY_PERMISSION_DENIED','_collabSessionService','_syncEditingCollabCursorService','_docTransformIMECacheService','@univerjs/engine-formula','_initResize','debug','_cachedData','_schedule','@univerjs/engine-render','onStarting','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getViewport','getTime','fromEventSubject','setInterval','/allowed','HttpImport','_beforeCloseService','cursorInfo','serializeCombRequest','lineTo','_waitCount','_transformStack','_onConflict','registerRenderModule','LocaleService','getSheetBySheetId','/object','selections','_collaborationSessionService','registerBeforeClose','getSkeleton','[CollaborationSession]','saveSheetBlock','headers','current','_throwTelemetryCollaborationNewChangeset','open$','image/png','CHANGESET_ACK','getCurrentUnitForType','HEARTBEAT_INTERVAL_KEY','registerComponent','baseRev','onRemoteRej','DeleteRangeMoveLeftCommandId','concat','addEventListener','_initMergeInterceptor','objectType','TEXT_RANGE_LAYER_INDEX','_initCommandExecutedListener','INTERNAL_ERROR','DocSelectionManagerService','_anchor','colorChannel1','message$','getRoom','revision','_init','rxjs','_entities','_getCurrentRevision','getResourcesRequest','visibilityState','270051RgKnUc','/unit/','getCurrent','offline','_transformUndoredo','RichTextEditingMutation','push','univer-online-status-icon','_showConflictNotification','_cursorShapes','DeleteRangeMoveUpCommandId','div','DisposableCollection','_onLocalMutation','_sendingTimer','next','LICENSE_MAX_UNITS_EXCEEDED','transformMutationsWithChangeset','SetDocZoomRatioOperation','replaceTextRanges','CHANGESET_REJ','_colorIndex','_backgroundColor','FETCH_MISS','authzUrl','conflict.content','focused$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','isEditing','_lockTransition','_waitForHeartbeatResponse','_compressMutationService','toDisposable','url(#$1','collabStatus.conflict','_getSendChangesetTimeout','_setupBeforeClosingHandler','collaboratorID','hovered','unitId','_telemetryInfo','subscribeEvent','save\x20fail\x20reason\x20is\x20','collab-text-anchor-','CollaborationSocketService','M0\x200H16V16H0z','_removeRoom','currentColor','retryConnectingInterval','enableOfflineEditing','IConfigService','socket\x20open.','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','DocIMEInputManagerService','/universer-api/comb','debounceTime','toggleOffline','encode','3495410PieJHX','/role','closeSession','ThresholdInterceptorFactory','origin','listRoles','INGEST','create','bottom','JSONX','_labelPosition','update','awaitingChangeset','_clearTimeoutTimer','_onOffline','NO_OTHER_CLIENTS_EDITING','toggleOnline','/-/object/list','UNIVER_DOC','_sheetTransformSelectionsService','width','_getSnapshotAPIPrefix','_document','_collaborationPaused','rxjs/operators','Workbook','_transformSelections','listCollaborators','handleIRemoveRow','min','mergeOverrideWithDependencies','collaborators','AUTHZ_URL_KEY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ColorKit','_clearHeartbeatTimer','DocSkeletonManagerService','[UniverCollaborationClientPlugin]','hasOwnProperty','_unlockTransition','_updateCollabCursors','data','_setupSubUnitSync','hidden','updateCursorEvent','EXCHANGE_SIGN_URL_SERVER_URL_KEY','flatMap','Error','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','DocStateChangeManagerService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','FAIL','_handleHover','patch','toString','resourceIDs','xlink:href','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','closePath','_collaborationTimeoutTimer','_config','_handler','_getSaveTimeout','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_startSheetCollabCursor','clearTimeout','NOT_COLLAB','skeleton','CollaborationEvent','toRgbString','_httpService','/new_changes','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','not_collab','Vector2','CommentService','univerjs-icon\x20univerjs-icon-','event$','_applyRemoteChangeset','_snapshotServerService','_collaborationController','apply','EffectRefRangId','snapshotServerUrl','ONLINE','_updateURLWithCurrentState','max','m2Prime','_queuedRemoteChangesets','Tooltip','_scheduleHeartbeat','moveTo','IPermissionService','UNDEFINED','[DataLoaderController]','_handleJoinEvent','LIVESHARE_NEW_HOST','_sendHeartbeatTimer','_toggleOnline','getFocusedUnit','_updateLocalCache','LICENSE_DISTRO_REJECTED','now','clearInterval','font','_userManagerService','toStringTag','CompressMutationService','pipe','session.will-retry','getParam','_drawAnchor','?size=','objects','objectActions','_socketService','disposeUnit','updatePermissionPoint','getCoordByCell','_toggleOffline','top','_notificationService','_sheetSkeletonManagerService','handleInsertCol','ERROR_EXCEED_SIZE','IBeforeCloseService','fillText','DependentOn','localeService','image/gif','sessionStatus','loadDoc','code','UNIVER_COLLABORATION_CLIENT_PLUGIN','CollaborationController','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearScheduledTask','_snapshotService','restore','location','_onJoinRoomEvent','_cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL','SetWorksheetActivateCommand','clipPath','_initStatusComponent','IContextService','LocalUndoRedoService','workbook','_createInitialStateImpl','storage','submit\x20changeset\x20error!','LOGIN_URL_KEY','responseType','_checkMissing','assign','UNIVER_UNKNOWN','_scheduleClearOtherTimer','objectID','RETRY_CONNECTING_MAX_COUNT','_memberService','_registerRenderDependencies','concatMap','roomMembers','loadSheet','UNIVER_PROJECT','LICENSE_EXPORT_SIZE_EXCEEDED','touchDependencies','on-line-single','getMergeData','InsertSheetMutation','ImageSourceType','UniverCollaborationClientPlugin','getValue','_uiPartsService','_configService','close','off-line-single_clip0_910_343','result','split','fromCollab','_remoteChangesetQueue','_clearCollaborationTimeoutTimer','collabStatus.offline','add','actions','socket$','HEADER_MENU','_awaitingChangeset','_pendingMutations','{fileID}','DataLoaderController','ITelemetryService','DEFAULT_FILE_NAME','sheets','range','_event$','red300','_loadSheet','ranges','key','isTransformMutationsWithChangesetFailure','_transformUndoRedoStack','onlineStatusIcon','indexOf','getMember','confirm','state$','startsWith','RevisionService','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_REVISION_CONFILICT','pending','_docTransformSelectionsService','find','complete','saveImage','_clearLocalCache','UNKNOWN_CODE','init','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_color','from','onlineStatus','_commentService','size','Undefined','catch','PENDING','NOT_FOUND','TOO_MANY_REQUESTS','_createInitialState','_getAPIPrefix','session.room-full','call','onSendChangeset','SnapshotServerOverHTTPService','defIds','generateRandomId','_stopTelemetryCollaborationNewChangeset','_syncEditingCollabCursor','_socket$','_unitOnClients','path','collaboration.single-unit.warning','_updateSubUnitFromURLParams','_timeoutTimer','/universer-api/file/{fileID}/sign-url','_fetchMissChangesets','_onConnectionFailed','?url=','IRemoteInstanceService','collabStatus.synced','handleMoveRange','_scheduleCollaborationTimeoutTimer','labelPosition','Warning','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','refreshPermission','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_shouldReportTelemetry','HttpExport','symbol','_id','translate(.97)','onRemoteAck','error','SNAPSHOT_SERVER_URL_KEY','_localCacheService','Unknown\x20user','_createHandler','_removeClearOtherTimer','defineProperty','IUIPartsService','getUnitType','replaceState','updateOfflineData','setParam','_startTelemetryCollaborationNewChangeset','_state','_updateState','[OfflineState]:\x20received\x20acknowledgement.','_registerDependencies','onMissedChangesetFetched','_themeService','isPermissionRej','_localeService','requireSession','_localStorageService','liveShareOperation','auth.needGotoLoginAlert','permission.content','INVALID_ARGUMENT','replace','createIdentifier','onStateChange','_undoRedoService','selection','_clearUndo','univer-pro.collaboration-client.single-active-unit-service','OTHER_CLIENTS_EDITING','fetching\x20missing\x20changesets\x20from\x20','onTransformSelections','SHOULD_CLOSE_CONN','getCurrentRevOfUnit','RemoveRowCommandId','@univerjs/ui','getDeserializedSheetBlock','backgroundColor','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','exhaustSavingTask','runRefRangeMutations','univer-online-status','save','_getCtorByUniverType','SUBMIT_CHANGESET','_transformRemoteChangesetByIMECache','appendMutation','enableAuthServer','mutations','createElement','[CollaborationSessionService]:\x20socket\x20error','_tryReconnect','_submitChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','FromArray','subscribe','all','HELLO','_transformIMECache','parseProtocolChangeset','transformSelections','9948LaoKTS','_docSkeleton','_injector','shouldCloseConn','_onCursorDelete','ILogService','[SyncedState]:\x20received\x20rejection.','getCurrentSelections','setConfig','JOIN','transformUndoRedo','_updateStatus','infoRsp','/universer-api/snapshot/','HTTPRequest','CollaborationSession','_state$','popstate','_onConnectionOpen','COLLAB_WEB_SOCKET_URL_KEY','useObservable','_refRangeService','_getAnchorBounding','then','onTransformRemoteChangesetByIMECache','delay','_eventUnsubscribe','eventID','COLLAB_WEB_SOCKET_URL','_onCursorUpdate','fetch_missing','setTimeout','executeCommand','_hovered','VIEWPORT_KEY','getCurrentUser','_executeRemoteChangeset','change$','HTTPService','\x20to\x20','send','transformChangesets','collabCursorState$','_socketReady','96sbUsWS','withCredentials','onRemoteChangeset','conflict.title','disableLocalCache','unsubscribe','className','_telemetryService','getConfig','fetchMissingChangesets','has','removeMember','registerHTTPInterceptor','/collaborator','InsertRangeMoveDownCommandId','_initCloseConn','_decreaseWaiting','href','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_replaceFileID','DesktopCollaborationStatusDisplayController','set','PERMISSION_REJ','MUTATION','sessionStatus$','OnLineSingle','assignAColorForMemberID','prototype','_getScale','commentUpdateEvent','handleIRemoveCol','_socketMessageSubscription','_status$','_draw','collabStatus.syncing','587342aYVdsc','onPointerMove$','b64DecodeUnicode','updatePermissionObjEvent','makeDirty','UniverCollaborationPlugin','object','defs','_logService','ERROR_IMAGE_TYPE','_commandService','[CollaborationEntity]','469953JPbucn','Shape','loginUrlKey','_getLoginPath','removeParam','ICommandService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_roomMembers$','Injector','url(#on-line-single_clip0_910_349)','getSheetId','onReady','HEARTBEAT','deepClone','\x0aAfter:\x20','getTypeOfUnitAdded$','registerRefRange','[CollaborationState]:\x20apply\x20error!','_unitID','_handleLeaveEvent','_initStatusListener','height','#FFF','InsertColCommandId','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','UPDATE_CURSOR','shareReplay','_heartbeatTimer','_updateLocalCursor','_replayCachedMutations','duration','749406GgPYTY','distinctUntilChanged','forwardRef','getDocRanges','params','some','&to=','_initModules','svg','fetchThroughInterceptors','CONNECTOR_DATA_TOO_LARGE','_ws','conflict','getCollabCursors$','displayName','getTypeOfUnitDisposed$','saveChangeset','_name','status$','unshift','copyFileMeta','collaboration-client.config','32945nvHykV','_assignedColors','permission.title','_transitionLocked','body','_loadDoc','_send','error$','_commentUpdate$','merge','_onFetchMissResult','Subject','updateMember','LIVESHARE_REQUEST_HOST','EmptyMutation','UNAUTHENTICATED','session.collaboration-timeout','_drawTextRange','_session','_textBubble','LocalCacheService','_change$','COLORS','arc','_onUserLeave','_ensureSubject','_docSyncEditingCollabCursorService','_refreshCollabCursors','transform','_onRemoteChangeset','_type','TRANSFORM_CHANGE_OBSERVABLE_TYPE','text','resend','onCommandExecuted','transformIMECache','idSuffix','_clearRedo','IAuthzIoService','NEW_CHANGESETS','IRenderManagerService','collaboration-client.offline-data-not-saved','onSyncEditingCollabCursor','pluginName','editingUnit','CollaborationStatusDisplay','_onRecvEvent','_onRemoteACK','hide','reduce','connection\x20error','disposeWithMe','filter','Disposable','extend','collabStatus.fetchMiss','setCurrentUser','_lastPointer','_incrementRevisionNumber','UnitEmbedded','transformMutation','_saveTaskMap','commentUpdate$','setAlpha','fillStyle','csRejEvent','originalMeta','cmd','_disabled','isActive','[CollaborationSessionService]','uploadFileServerUrl','36zFSaND','textRanges','routeKey','BASE64','0\x200\x2016\x2016','collab-text-range-','addObject','json','interceptor','_docStateChangeManagerService','COMPRESS_MUTATION_APPLY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','RemoveColCommandId','_initEventListeners','@univerjs/design','pushState','getVpScrollXYInfoByPosToVp','method','...','string','_messageService','parseChangesetToProtocol','Inject','getItem','SheetCollabCursorShape','collaboration.closeRoom','_onUserJoin','unknown','image/bmp','encodeURIComponent','IUndoRedoService','SNAPSHOT_INVALID_SNAPSHOT','saveSnapshot','UniverInstanceType','/resources','collabStatus.notCollab','deserializeRangeWithSheet','collab-rect-range-','fetchMiss','cursorInfo$','_tryEnsureSocket','post','YUUMI_RATE_OVER_LIMIT','type','CollaborationStatus','takeUntil','MSG_FOR_ERROR','_instanceService','onMouseMove','IMessageService','joinEvent','UNIVER_SLIDE','collaboration-session-retry','memberID','delete','_drawRectRange','CommandType','session.connection-failed','batchAllowed','enableSingleActiveInstanceLock','drawWith','status','_getUndoStack','_initRequestHeader','@univerjs/sheets-ui','endColumn','9mSnwia','YUUMI_UNABLE_LOAD_URL','handleInsertRangeMoveDown','univer-offline','getUnitOnRev','getUnitId','_saveCache','_renderManagerService','_exhaustRemoteChangesetQueue','_disableEditing','SetSelectionsOperation','BehaviorSubject','FileId','getCellPositionByOffset','_transformPreviousActiveRange','onRendered','collab-client.tooltip.reconnect','SNAPSHOT_HAS_BEEN_REMOVED','LEAVE','IURLService','_roomMembers','_collabCursorState$','ImageIoService','INotificationService','socketService','stopTime','onPointerLeave$','IUniverInstanceService','onlineStatusTitle','getInterceptPoints','Plugin','_permissionService','\x20-\x20','awaiting_with_pending','sheetID','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','readAsDataURL','_listenToOnlineEvent','asObservable','/object/','onlyLocal','_transformService','_cursor','with','useRef','values','_sessionStatus$','SheetsSelectionsService','incrementRevOfUnit','OFFLINE','COLLAB_SUBMIT_CHANGESET_URL_KEY','UnitSnapshot','Univer','isTransformChangesetsSuccess','WebSocketService','_retryCount','COMPLETION_FINISHED','SessionStatus','_clearOtherTimers','close$','_socket','subUnitId','onMissingChangesets','_shapes','@univerjs/drawing','SEND_CHANGESET_TIMEOUT_KEY','@univerjs/telemetry','url(#off-line-single_clip0_910_343)','on-line-single_clip0_910_349','#fff','_getMergeRange','1em','session','ITransformService','getCollabEntity$','_onCombEvent','measureText','fillRule','_startCollaboration','SYNCED','includes','[CollaborationUndoRedoService]','show','syncEditingCollabCursor','forEach','onTransformIME','_urlService','_scheduleTimestamp','handleDeleteRangeMoveUp','USERS_ENTER','_getSheetObject','loadOfflineData','resolve','requestParams','MoveRangeCommandId','isTransformMutationsWithChangesetSuccess','_selfUnitIDs','LICENSE_IMPORT_SIZE_EXCEEDED','substring','getSheetObject','&source=','UNRECOGNIZED','@univerjs/rpc','COMPRESS_MUTATION_SEND','subunit','_initUnitPermissionChange','onCommentUpdate','/rev/','getUndoRedoMutationParamsCache','HEARTBEAT_INTERVAL','univer-pro.collaboration-client-socket-service','LOCAL_CACHE_INTERVAL','/fetchmissing?from=','setItem','getWorkbookSelections','tag','_hover','MergeInterceptorFactory','_listenToOfflineEvent','currentTheme$','compose','getMemberID','0\x200\x2017\x2016','createInstance','_singleActiveUnitService','NodePositionConvertToRectRange','state','MessageType','startColumn','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','black','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[FetchMissState]','take','_imageSourceCache','saveOfflineData','_onMessage','_sendHeartbeat','[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.','SheetCollaborationEntity','POST','initWorkbookPermissionChange','RxDisposable','collaboration_new_changeset','dispose$','off-line-single','_context','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Rect','UPDATE_PERMISSION_OBJ','awaiting','_http','_members','joinRsp','verdancy600','_scheduleSaving','children','HEARTBEAT_TIMEOUT_KEY','name','online','DocCollaborationEntity','_getDownloadEndpointURL','get','XHRHTTPImplementation','_docSkeletonManagerService','getRenderById','newValue','fill','useDependency','none','history','_HTTPService','LIVESHARE_FETCH_OPERATIONS','getUnit','/universer-api/authz','ThemeService','_acknowledgedAwaitingChangeset','WorkbookEditablePermission','/block/','\x20in\x20_schedule.','_online','doc.mutation.rich-text-editing','_colorAssignService','LIVESHARE_OPERATION','_getAPIPrefixPath','currentSkeleton$','_revisionService','_substituteRedoStack','roomMembers$','_hideTimer','deserializeToCombResponse','AWAITING','USERS_LEAVE','round','jiqing500','column','AWAITING_WITH_PENDING','CollaborationEntity','map','csAckEvent','unitID','rev','RegularPolygon','FETCH_MISSING','findNodePositionByCharIndex','c1Prime','addObjects','ALREADY_EXISTS','fromEvent','isArray','_isPermissionRej','@univerjs/network','VIEW_MAIN','_removeCollabCursors','ILocalStorageService','_onRemoteRejected','every','LIVESHARE_TERMINATE','createSocket','getCollabEntity','dispose','handleInsertRangeMoveRight','debounce','SnapshotService','_rescheduleHeartbeat','editing\x20status\x20changed\x20to','SetTextSelectionsOperation','unit-cache-','capture','userID','getActiveSheet','SUCCUSS','Module','UUID','length','Tools','_univerInstanceService','_retryConnectingTimer','getUnitStatus$','changesets','PERMISSION_DENIED','unit','APPLY_REVISION_CONFILICT','APPLY_REJECT','combineLatest','stringify','searchParams','color','_candidateSocket','switchMap','m1Prime','@univerjs/docs','_anchorDot','BuiltInUIPart','put','getSheetBlock','_unitStatus','endRow','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','reject','IDLE','leaveEvent','_cursors','_startDocCollabCursor','ERROR_IMAGE','_handleHeartbeatEvent','WebURLService','snapshot','getRangePointData','attrs','JOINING','roomInfos','5028AMtLqQ','getAncestorScale','downloadEndpointUrl','onPointerEnter$','COMMENT_UPDATE','deleteCollaborator','_undoStacks','clear','ISnapshotServerService','UNIVER_SHEET','mapDocumentTypeToUniverType','RECV','_collabCursorController','_getUploadFileURL','serializeRangeWithSheet','_substituteUndoStack','getOwnPropertyDescriptor','_createSocket','LOCAL_CACHE_INTERVAL_KEY','@univerjs/core','row','evenodd','AuthzIoHttpService','_entityInit$','/-/object/-/batch_allowed','SheetPermissionInitController','registerOnClose','setShapeProps','append','CollaborationSessionService','UNKNOWN_CMD','SNAPSHOT_URL_KEY','url','ImageUploadStatusType','engine','isTransformMutationFailure','\x0aCurrent:\x20','roles','transformByState','_range','createCollaborator','parse','getColor'];_0x59b6=function(){return _0x2f5b9f;};return _0x59b6();}let me=class{constructor(_0x1cd496,_0x5c9cac){this['_injector']=_0x1cd496,this['_transformService']=_0x5c9cac;}[_0x28eb85(0x14f)](_0x4a6cf8){const _0x3d2558=_0x28eb85;var _0x3f8a42;const _0x5a0f2d=this['_injector'][_0x3d2558(0x30d)](V[_0x3d2558(0x3e2)]),_0x418db5=(_0x3f8a42=_0x5a0f2d[_0x3d2558(0x1ce)]())!=null?_0x3f8a42:[];if(_0x418db5[_0x3d2558(0x355)]===0x0)return;const _0x131a85=[{'id':_0x3d2558(0x320),'params':{'unitId':_0x4a6cf8[_0x3d2558(0x333)],'actions':null,'textRanges':_0x418db5}}],_0x35a841=this['_transformService'][_0x3d2558(0x3ff)](_0x4a6cf8,_0x131a85);if(!_[_0x3d2558(0x2ca)](_0x35a841))throw _0x35a841[_0x3d2558(0x533)];const _0x1116bc=_0x35a841['m2Prime'][0x0][_0x3d2558(0x1cf)][_0x3d2558(0x22a)];Array[_0x3d2558(0x33c)](_0x1116bc)&&_0x1116bc[_0x3d2558(0x355)]&&_0x5a0f2d[_0x3d2558(0x401)](_0x1116bc,!0x1);}};me=Ms([st(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),st(0x1,_['ITransformService'])],me);const Ns=new Set([C[_0x28eb85(0x4d3)]['id']]);function it(_0x2af8bb,_0x14bd04,_0x21a5fc,_0x37893b,_0x2250b6){const _0x3a3db0=_0x28eb85;var _0x1b8495,_0x37835f,_0x88f8d0,_0x4ebf88;const _0x5bb37a=[];for(const _0x35d325 of _0x2af8bb)if(Ns[_0x3a3db0(0x186)](_0x35d325['id'])){if(_0x5bb37a['length']>0x0)break;_0x5bb37a['push'](_0x35d325);break;}else _0x5bb37a['push'](_0x35d325);const _0x1de2ed=(_0x37835f=(_0x1b8495=_0x2250b6[_0x3a3db0(0x173)]())==null?void 0x0:_0x1b8495[_0x3a3db0(0x350)])!=null?_0x37835f:'unknown',_0xf74b8e=(_0x4ebf88=(_0x88f8d0=_0x2250b6[_0x3a3db0(0x173)]())==null?void 0x0:_0x88f8d0[_0x3a3db0(0x25e)])!=null?_0x4ebf88:_0x3a3db0(0x244);return{'changeset':{'unitID':_0x14bd04,'type':_[_0x3a3db0(0x385)](_0x21a5fc['getUnitType'](_0x14bd04)),'baseRev':_0x37893b[_0x3a3db0(0x134)](_0x14bd04),'revision':0x0,'userID':_0x1de2ed,'memberID':_0xf74b8e,'mutations':_0x5bb37a},'pendingMutations':_0x2af8bb['slice'](_0x5bb37a['length'])};}function As(_0x58db40,_0x38d62c,_0x103497,_0x3a21a8,_0x27d4d9){const _0x591c6d=_0x28eb85;var _0x332288,_0x4aaa50,_0x41fe33,_0x3f9f41;const _0x1cc690=[_0x58db40[_0x591c6d(0x212)]((_0x164924,_0x183351)=>{const _0x310666=_0x591c6d;var _0x2ad5a7;const {id:_0x1f2908}=_0x164924,{id:_0x4bd8d5,type:_0x27a4ec}=_0x183351,_0x5d8897=(_0x2ad5a7=_0x164924[_0x310666(0x1cf)])!=null?_0x2ad5a7:{'actions':null},_0x12e853=_0x183351[_0x310666(0x1cf)];if(_0x1f2908&&_0x1f2908!==_0x4bd8d5)throw new Error(_0x310666(0x28e)+_0x1f2908+_0x310666(0x28b)+_0x4bd8d5+'.');return{..._0x164924,'id':_0x4bd8d5,'type':_0x27a4ec,'params':{'unitId':_0x12e853[_0x310666(0x415)],'textRanges':_0x12e853[_0x310666(0x22a)],'actions':a[_0x310666(0x431)][_0x310666(0x2e3)](_0x5d8897[_0x310666(0x4e2)],_0x12e853[_0x310666(0x4e2)])}};},{})],_0x1a3bfc=(_0x4aaa50=(_0x332288=_0x27d4d9[_0x591c6d(0x173)]())==null?void 0x0:_0x332288[_0x591c6d(0x350)])!=null?_0x4aaa50:_0x591c6d(0x244),_0x1f4d3a=(_0x3f9f41=(_0x41fe33=_0x27d4d9['getCurrentUser']())==null?void 0x0:_0x41fe33[_0x591c6d(0x25e)])!=null?_0x3f9f41:'unknown';return{'changeset':{'unitID':_0x38d62c,'type':_[_0x591c6d(0x385)](_0x103497[_0x591c6d(0x116)](_0x38d62c)),'baseRev':_0x3a21a8[_0x591c6d(0x134)](_0x38d62c),'revision':0x0,'userID':_0x1a3bfc,'memberID':_0x1f4d3a,'mutations':_0x1cc690},'pendingMutations':[]};}const Ls={'id':C[_0x28eb85(0x1ef)]['id'],'type':a[_0x28eb85(0x261)][_0x28eb85(0x193)],'params':{}};var js=Object[_0x28eb85(0x114)],$s=Object['getOwnPropertyDescriptor'],z=(_0x5ce1cd,_0x1db956,_0x1f78af,_0x3dbc80)=>{const _0x56afc4=_0x28eb85;for(var _0x288ca8=_0x3dbc80>0x1?void 0x0:_0x3dbc80?$s(_0x1db956,_0x1f78af):_0x1db956,_0x190b61=_0x5ce1cd[_0x56afc4(0x355)]-0x1,_0x34425e;_0x190b61>=0x0;_0x190b61--)(_0x34425e=_0x5ce1cd[_0x190b61])&&(_0x288ca8=(_0x3dbc80?_0x34425e(_0x1db956,_0x1f78af,_0x288ca8):_0x34425e(_0x288ca8))||_0x288ca8);return _0x3dbc80&&_0x288ca8&&js(_0x1db956,_0x1f78af,_0x288ca8),_0x288ca8;},g=(_0x416279,_0x22cd4f)=>(_0x1e66b0,_0x5bea40)=>_0x22cd4f(_0x1e66b0,_0x5bea40,_0x416279),y=(_0x5eb044=>(_0x5eb044[_0x28eb85(0x46b)]=_0x28eb85(0x472),_0x5eb044['SYNCED']='synced',_0x5eb044[_0x28eb85(0x50d)]=_0x28eb85(0x4fd),_0x5eb044['AWAITING']=_0x28eb85(0x301),_0x5eb044[_0x28eb85(0x32f)]=_0x28eb85(0x28c),_0x5eb044[_0x28eb85(0x405)]=_0x28eb85(0x16e),_0x5eb044['CONFLICT']=_0x28eb85(0x1d7),_0x5eb044[_0x28eb85(0x29c)]='offline',_0x5eb044))(y||{});class J{constructor(_0x296e91,_0x370537,_0xfac256,_0x16c9c1,_0x4be987,_0x473ba9,_0x3e63a8,_0x21afa8,_0x295e7f){const _0x4dc17b=_0x28eb85;d(this,_0x4dc17b(0x4e5),null),d(this,_0x4dc17b(0x4e6),[]),(this[_0x4dc17b(0x333)]=_0x296e91,this['type']=_0x370537,this[_0x4dc17b(0x465)]=_0x4be987,this['_commandService']=_0x473ba9,this['_undoRedoService']=_0x3e63a8,this[_0x4dc17b(0x325)]=_0x21afa8,this[_0x4dc17b(0x535)]=_0x295e7f,this[_0x4dc17b(0x4e5)]=_0xfac256,this['_pendingMutations']=_0x16c9c1);}['_checkMissing'](_0xb86926){const _0x14b821=_0x28eb85,_0x24ee1f=this['_revisionService'][_0x14b821(0x134)](this['unitID']);return _0xb86926['revision']>_0x24ee1f+0x1?(this[_0x14b821(0x465)][_0x14b821(0x2a9)]({'from':_0x24ee1f,'to':_0xb86926[_0x14b821(0x3e7)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2c402c){const _0x5e2d99=_0x28eb85;this[_0x5e2d99(0x12c)][_0x5e2d99(0x15a)](this[_0x5e2d99(0x333)],_0x2c402c);}[_0x28eb85(0x442)](_0x42084f){const _0x203995=_0x28eb85;var _0x5acf2f,_0x4d51ee;(_0x4d51ee=(_0x5acf2f=this[_0x203995(0x465)])['onTransformSelections'])==null||_0x4d51ee[_0x203995(0x513)](_0x5acf2f,_0x42084f);}[_0x28eb85(0x14d)](_0x4e3207){const _0x5b09cc=_0x28eb85;var _0x54c00b,_0x44d860;return(_0x44d860=(_0x54c00b=this[_0x5b09cc(0x465)])[_0x5b09cc(0x2c0)])==null?void 0x0:_0x44d860[_0x5b09cc(0x513)](_0x54c00b,_0x4e3207);}[_0x28eb85(0x140)](_0x3c0071){const _0x30b84a=_0x28eb85;var _0x4f806d,_0x38a85f,_0x989525;return(_0x989525=(_0x38a85f=(_0x4f806d=this[_0x30b84a(0x465)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x38a85f[_0x30b84a(0x513)](_0x4f806d,_0x3c0071))!=null?_0x989525:_0x3c0071;}['_syncEditingCollabCursor'](_0x5c2eaf){const _0x3caca7=_0x28eb85;var _0x91ffb1,_0x36768c;if(this[_0x3caca7(0x254)]===j[_0x3caca7(0x43a)]){const {unitID:_0x15d092,mutations:_0xd7babe,memberID:_0x5365b1}=_0x5c2eaf,_0x45db52=_0xd7babe[0x0]['params']['textRanges'];Array[_0x3caca7(0x33c)](_0x45db52)&&_0x45db52['length']>0x0&&((_0x36768c=(_0x91ffb1=this[_0x3caca7(0x465)])[_0x3caca7(0x20b)])==null||_0x36768c['call'](_0x91ffb1,{'unitID':_0x15d092,'memberID':_0x5365b1,'textRanges':_0x45db52}));}}[_0x28eb85(0x48d)](){const _0x51836c=_0x28eb85;this[_0x51836c(0x535)]['updateOfflineData'](this[_0x51836c(0x333)],this[_0x51836c(0x254)],this[_0x51836c(0x4e5)],this['_pendingMutations']);}[_0x28eb85(0x3eb)](){const _0x43e31c=_0x28eb85;return this[_0x43e31c(0x325)]['getCurrentRevOfUnit'](this[_0x43e31c(0x333)]);}['_incrementRevisionNumber'](){const _0x3cb52b=_0x28eb85;this[_0x3cb52b(0x325)][_0x3cb52b(0x29b)](this[_0x3cb52b(0x333)]);}[_0x28eb85(0x174)](_0x28d961){const _0x490da5=_0x28eb85;var _0x3d98b3;const _0x87c975=this[_0x490da5(0x140)](_0x28d961),_0x337f5f=a['sequenceExecute'](_0x87c975['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x337f5f[_0x490da5(0x4db)])throw _0x337f5f[_0x490da5(0x533)]instanceof Error?_0x337f5f['error']:new Error((_0x3d98b3=_0x337f5f[_0x490da5(0x533)])!=null?_0x3d98b3:_0x490da5(0x1bc));this[_0x490da5(0x14d)](_0x87c975),this[_0x490da5(0x3f2)](_0x28d961),this[_0x490da5(0x442)](_0x87c975),this[_0x490da5(0x519)](_0x87c975),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x304c78,_0x6f4764,_0x45029b,_0xed37e1,_0x1917a1,_0x33ca99,_0x28ef6e,_0x463f13,_0x308bf6,_0x23e740){const _0x454e87=_0x28eb85;super(_0x304c78,_0x6f4764,null,[],_0x45029b,_0x463f13,_0x28ef6e,_0xed37e1,_0x1917a1),d(this,_0x454e87(0x266),'synced'),(this[_0x454e87(0x152)]=_0x33ca99,this[_0x454e87(0x1a7)]=_0x308bf6,this[_0x454e87(0x294)]=_0x23e740);}['appendMutation'](_0x4e4f7b){const _0x3ea634=_0x28eb85,_0x6c5505=this[_0x3ea634(0x152)][_0x3ea634(0x2e6)](x,this[_0x3ea634(0x333)],this['type'],[_0x4e4f7b],this[_0x3ea634(0x465)]);return _0x6c5505[_0x3ea634(0x3b4)](),_0x6c5505[_0x3ea634(0x48d)](),_0x6c5505;}[_0x28eb85(0x17e)](_0x3da218){const _0x360905=_0x28eb85;if(this[_0x360905(0x4c3)](_0x3da218))return this[_0x360905(0x152)][_0x360905(0x2e6)](H,this[_0x360905(0x333)],this[_0x360905(0x254)],null,[],null,[_0x3da218],this['_handler']);try{const _0x2d620a=this[_0x360905(0x294)][_0x360905(0x3ff)](_0x3da218,[Ls]);if(_['isTransformMutationsWithChangesetSuccess'](_0x2d620a)){const {c1Prime:_0xb8d27a}=_0x2d620a;return this[_0x360905(0x174)](_0xb8d27a),this;}throw _0x2d620a[_0x360905(0x533)];}catch(_0x195f0b){return this[_0x360905(0x1a7)][_0x360905(0x533)](_0x195f0b),this[_0x360905(0x3c4)](!0x1);}}[_0x28eb85(0x3c4)](_0x21ca5){const _0x4ac931=_0x28eb85;return this['_injector'][_0x4ac931(0x2e6)](F,this[_0x4ac931(0x333)],this[_0x4ac931(0x254)],null,[],this[_0x4ac931(0x465)],_0x21ca5);}[_0x28eb85(0x532)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x28eb85(0x3d9)](){const _0x571863=_0x28eb85;throw new Error(_0x571863(0x156));}[_0x28eb85(0x426)](){const _0x265ef9=_0x28eb85;return this[_0x265ef9(0x152)][_0x265ef9(0x2e6)](G,this['unitID'],this[_0x265ef9(0x254)],null,[],this[_0x265ef9(0x465)]);}[_0x28eb85(0x438)](){return this;}['resend'](){const _0x146489=_0x28eb85;throw new Error(_0x146489(0x461));}[_0x28eb85(0x24f)](){const _0x5625b4=_0x28eb85,_0x282125=this[_0x5625b4(0x325)][_0x5625b4(0x134)](this[_0x5625b4(0x333)]);return this['_handler'][_0x5625b4(0x2a9)]({'from':_0x282125,'to':0x0}),this[_0x5625b4(0x152)][_0x5625b4(0x2e6)](H,this['unitID'],this[_0x5625b4(0x254)],null,[],null,[],this[_0x5625b4(0x465)]);}};se=z([g(0x3,a['Inject'](_[_0x28eb85(0x4fa)])),g(0x4,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a[_0x28eb85(0x247)]),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a['ILogService']),g(0x9,_[_0x28eb85(0x2b4)])],se);let x=class extends J{constructor(_0x1eab77,_0xe9eb12,_0x5c976d,_0x15c599,_0x1d8eeb,_0x4f3a46,_0x52d435,_0xa89872,_0x52c17b,_0x32bfa7,_0x278255,_0x3a9a13,_0x35794c,_0x1e7f6a){const _0x23fa16=_0x28eb85;super(_0x1eab77,_0xe9eb12,null,_0x5c976d,_0x15c599,_0x32bfa7,_0x1e7f6a,_0x4f3a46,_0x52d435),d(this,_0x23fa16(0x266),_0x23fa16(0x4fd)),d(this,_0x23fa16(0x2c2),null),d(this,'_sendingTimer',null),(this[_0x23fa16(0x152)]=_0x1d8eeb,this[_0x23fa16(0x4c9)]=_0xa89872,this[_0x23fa16(0x1a7)]=_0x52c17b,this[_0x23fa16(0x4d8)]=_0x278255,this['_transformService']=_0x3a9a13,this['_univerInstanceService']=_0x35794c);}['appendMutation'](_0x27d853){const _0x5a2f7e=_0x28eb85;return this[_0x5a2f7e(0x4e6)]['push'](_0x27d853),this['_updateLocalCache'](),this;}[_0x28eb85(0x17e)](_0x298979){const _0x1e3be4=_0x28eb85;if(this[_0x1e3be4(0x4c3)](_0x298979))return this[_0x1e3be4(0x4b1)](),this[_0x1e3be4(0x152)][_0x1e3be4(0x2e6)](H,this[_0x1e3be4(0x333)],this['type'],null,this[_0x1e3be4(0x4e6)],null,[_0x298979],this[_0x1e3be4(0x465)]);try{const _0x47dbfd=this[_0x1e3be4(0x294)][_0x1e3be4(0x3ff)](_0x298979,this[_0x1e3be4(0x4e6)]);if(_[_0x1e3be4(0x2ca)](_0x47dbfd)){const {c1Prime:_0x954a80,m2Prime:_0x928cf}=_0x47dbfd;this[_0x1e3be4(0x174)](_0x954a80);const _0x64fdfb=this[_0x1e3be4(0x152)]['createInstance'](x,this[_0x1e3be4(0x333)],this['type'],_0x928cf,this[_0x1e3be4(0x465)]);return this['_clearScheduledTask'](),_0x64fdfb[_0x1e3be4(0x3b4)](this[_0x1e3be4(0x2c2)]?Math[_0x1e3be4(0x47f)](0x0,new Date()[_0x1e3be4(0x3b9)]()-this[_0x1e3be4(0x2c2)]):this['_getSendChangesetTimeout']()),_0x64fdfb;}throw _0x47dbfd['error'];}catch(_0x36544e){return this['_logService'][_0x1e3be4(0x533)](_0x36544e),this['_onConflict'](!0x1);}}[_0x28eb85(0x532)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x28eb85(0x3d9)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x28eb85(0x426)](){const _0x5c68f3=_0x28eb85;return this[_0x5c68f3(0x4b1)](),this['_injector'][_0x5c68f3(0x2e6)](G,this[_0x5c68f3(0x333)],this[_0x5c68f3(0x254)],null,this[_0x5c68f3(0x4e6)],this[_0x5c68f3(0x465)]);}[_0x28eb85(0x438)](){return this;}['_schedule'](_0x155d04){const _0x3e406c=_0x28eb85,_0x571a7c=_0x155d04!=null?_0x155d04:this[_0x3e406c(0x411)]();this[_0x3e406c(0x2c2)]=new Date()[_0x3e406c(0x3b9)](),this['_sendingTimer']=window[_0x3e406c(0x16f)](()=>{const _0x3e173b=_0x3e406c;this[_0x3e173b(0x4b1)]();let _0x416ba3=null;switch(this['type']){case j[_0x3e173b(0x384)]:{_0x416ba3=it(this[_0x3e173b(0x4e6)],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this['_revisionService'],this['_memberService']);break;}case j[_0x3e173b(0x43a)]:{this['_pendingMutations'][_0x3e173b(0x343)](_0x3c99a9=>_0x3c99a9['id']===V['RichTextEditingMutation']['id'])?_0x416ba3=As(this['_pendingMutations'],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this['_revisionService'],this[_0x3e173b(0x4c9)]):_0x416ba3=it(this[_0x3e173b(0x4e6)],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this[_0x3e173b(0x325)],this[_0x3e173b(0x4c9)]);break;}default:throw new Error(_0x3e173b(0x2ee)+this[_0x3e173b(0x254)]+_0x3e173b(0x31e));}const {changeset:_0xb48e46,pendingMutations:_0x2d8d93}=_0x416ba3;this[_0x3e173b(0x465)][_0x3e173b(0x514)](_0xb48e46);const _0x13ffea=_0x2d8d93['length']?this[_0x3e173b(0x152)][_0x3e173b(0x2e6)](k,this[_0x3e173b(0x333)],this[_0x3e173b(0x254)],_0xb48e46,_0x2d8d93,this[_0x3e173b(0x465)]):this['_injector'][_0x3e173b(0x2e6)](W,this[_0x3e173b(0x333)],this[_0x3e173b(0x254)],_0xb48e46,this['_handler']);_0x13ffea[_0x3e173b(0x48d)](),this[_0x3e173b(0x465)][_0x3e173b(0x12b)](this,_0x13ffea);},_0x571a7c);}[_0x28eb85(0x411)](){const _0x1e45aa=_0x28eb85;var _0x23d29f;const _0x2417a9=this['_configService'][_0x1e45aa(0x184)](A);return(_0x23d29f=_0x2417a9==null?void 0x0:_0x2417a9['sendChangesetTimeout'])!=null?_0x23d29f:Kt;}[_0x28eb85(0x202)](){const _0x4e05b7=_0x28eb85;throw new Error(_0x4e05b7(0x458));}[_0x28eb85(0x4b1)](){const _0x3f10c7=_0x28eb85;this[_0x3f10c7(0x3fc)]!=null&&(clearTimeout(this[_0x3f10c7(0x3fc)]),this[_0x3f10c7(0x3fc)]=null);}[_0x28eb85(0x3c4)](_0x1a8fbc){const _0x1deae8=_0x28eb85;return this[_0x1deae8(0x4b1)](),this[_0x1deae8(0x152)][_0x1deae8(0x2e6)](F,this[_0x1deae8(0x333)],this[_0x1deae8(0x254)],null,this['_pendingMutations'],this[_0x1deae8(0x465)],_0x1a8fbc);}};x=z([g(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x6,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x7,a['Inject'](q)),g(0x8,a[_0x28eb85(0x155)]),g(0x9,a['ICommandService']),g(0xa,a[_0x28eb85(0x420)]),g(0xb,_[_0x28eb85(0x2b4)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x28eb85(0x247)])],x);let W=class extends J{constructor(_0x4a4e2a,_0x1e1530,_0x166c81,_0x2f8831,_0x15b661,_0x12db87,_0x41288a,_0xd4914d,_0x2fc9e5,_0x31fbdc,_0x263a01){const _0x516ee8=_0x28eb85;super(_0x4a4e2a,_0x1e1530,_0x166c81,[],_0x2f8831,_0xd4914d,_0x263a01,_0x12db87,_0x41288a),d(this,'status',_0x516ee8(0x301)),(this[_0x516ee8(0x152)]=_0x15b661,this[_0x516ee8(0x1a7)]=_0x2fc9e5,this[_0x516ee8(0x294)]=_0x31fbdc);}[_0x28eb85(0x141)](_0x355a5b){const _0x526289=_0x28eb85,_0x2eb72f=this[_0x526289(0x152)][_0x526289(0x2e6)](k,this[_0x526289(0x333)],this['type'],this[_0x526289(0x4e5)],[_0x355a5b],this[_0x526289(0x465)]);return _0x2eb72f[_0x526289(0x48d)](),_0x2eb72f;}[_0x28eb85(0x17e)](_0x4d1b74){const _0x10cf82=_0x28eb85;if(this[_0x10cf82(0x4c3)](_0x4d1b74))return this[_0x10cf82(0x152)][_0x10cf82(0x2e6)](H,this[_0x10cf82(0x333)],this[_0x10cf82(0x254)],this[_0x10cf82(0x4e5)],[],null,[_0x4d1b74],this[_0x10cf82(0x465)]);try{const _0x370d89=this[_0x10cf82(0x294)]['transformChangesets']([_0x4d1b74],[this[_0x10cf82(0x4e5)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x370d89)){const {c1Prime:_0x551ea6,c2Prime:_0x2b0303}=_0x370d89;this[_0x10cf82(0x174)](_0x551ea6[0x0]),_0x2b0303[0x0]['baseRev']=this['_getCurrentRevision']();const _0x29e2cd=this[_0x10cf82(0x152)][_0x10cf82(0x2e6)](W,this[_0x10cf82(0x333)],this['type'],_0x2b0303[0x0],this[_0x10cf82(0x465)]);return _0x29e2cd[_0x10cf82(0x48d)](),_0x29e2cd;}return this['_onConflict'](!0x1);}catch(_0x301a06){return this['_logService'][_0x10cf82(0x533)](_0x301a06),this[_0x10cf82(0x3c4)](!0x1);}}[_0x28eb85(0x532)](_0x5c559c){const _0x3ce2f7=_0x28eb85,_0x1a34f6=this[_0x3ce2f7(0x325)][_0x3ce2f7(0x134)](this[_0x3ce2f7(0x333)]);if(_0x5c559c[_0x3ce2f7(0x3e7)]<_0x1a34f6-0x1)return this;if(this['_checkMissing'](_0x5c559c))return this['_injector']['createInstance'](H,this[_0x3ce2f7(0x333)],this[_0x3ce2f7(0x254)],null,[],this[_0x3ce2f7(0x4e5)],[],this[_0x3ce2f7(0x465)]);this[_0x3ce2f7(0x21b)]();const _0x4fca33=this['_injector']['createInstance'](se,this[_0x3ce2f7(0x333)],this[_0x3ce2f7(0x254)],this['_handler']);return _0x4fca33[_0x3ce2f7(0x48d)](),_0x4fca33;}[_0x28eb85(0x3d9)](_0x25da40){const _0x2e57b2=_0x28eb85;return this[_0x2e57b2(0x3c4)](!!(_0x25da40!=null&&_0x25da40[_0x2e57b2(0x121)]));}[_0x28eb85(0x426)](){const _0x3fd93e=_0x28eb85;return this[_0x3fd93e(0x152)]['createInstance'](G,this[_0x3fd93e(0x333)],this['type'],this[_0x3fd93e(0x4e5)],[],this['_handler']);}[_0x28eb85(0x438)](){return this;}[_0x28eb85(0x202)](){const _0x52b9d7=_0x28eb85;this[_0x52b9d7(0x465)]['onSendChangeset'](this[_0x52b9d7(0x4e5)]);}[_0x28eb85(0x3c4)](_0x3130a1){const _0x2e7eda=_0x28eb85;return this[_0x2e7eda(0x152)]['createInstance'](F,this[_0x2e7eda(0x333)],this['type'],this[_0x2e7eda(0x4e5)],[],this['_handler'],_0x3130a1);}};W=z([g(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x6,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a['ILogService']),g(0x9,_[_0x28eb85(0x2b4)]),g(0xa,a[_0x28eb85(0x247)])],W);let k=class extends J{constructor(_0x3a9198,_0x39cf34,_0x1404dd,_0x4d5569,_0x57b3b3,_0x443514,_0x43f800,_0x553fc1,_0x394af9,_0x2c0bd6,_0x2c21fc,_0x538320){const _0x2aceba=_0x28eb85;super(_0x3a9198,_0x39cf34,_0x1404dd,_0x4d5569,_0x57b3b3,_0x394af9,_0x538320,_0x43f800,_0x553fc1),d(this,_0x2aceba(0x266),'awaiting_with_pending'),(this[_0x2aceba(0x152)]=_0x443514,this['_logService']=_0x2c0bd6,this[_0x2aceba(0x294)]=_0x2c21fc);}[_0x28eb85(0x141)](_0x1c6da8){const _0x40be42=_0x28eb85;return this[_0x40be42(0x4e6)]['push'](_0x1c6da8),this;}['onRemoteChangeset'](_0x598c66){const _0xaf3e8e=_0x28eb85;if(this[_0xaf3e8e(0x4c3)](_0x598c66))return this[_0xaf3e8e(0x152)][_0xaf3e8e(0x2e6)](H,this[_0xaf3e8e(0x333)],this['type'],this[_0xaf3e8e(0x4e5)],this['_pendingMutations'],null,[_0x598c66],this[_0xaf3e8e(0x465)]);try{const _0x346ac3=this[_0xaf3e8e(0x294)]['transformChangesets']([_0x598c66],[this[_0xaf3e8e(0x4e5)]],!0x1);if(_[_0xaf3e8e(0x2a0)](_0x346ac3)){const {c1Prime:_0x4466f6,c2Prime:_0x54cb8c}=_0x346ac3,_0x12eb79=this[_0xaf3e8e(0x294)][_0xaf3e8e(0x3ff)](_0x4466f6[0x0],this[_0xaf3e8e(0x4e6)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x12eb79)){const {c1Prime:_0x1ba41d,m2Prime:_0x48c579}=_0x12eb79;return this[_0xaf3e8e(0x174)](_0x1ba41d),_0x54cb8c[0x0][_0xaf3e8e(0x3d8)]=this[_0xaf3e8e(0x3eb)](),this[_0xaf3e8e(0x152)][_0xaf3e8e(0x2e6)](k,this['unitID'],this[_0xaf3e8e(0x254)],_0x54cb8c[0x0],_0x48c579,this[_0xaf3e8e(0x465)]);}throw _0x12eb79['error'];}throw _0x346ac3[_0xaf3e8e(0x533)];}catch(_0x525307){return this[_0xaf3e8e(0x1a7)][_0xaf3e8e(0x533)](_0x525307),this[_0xaf3e8e(0x3c4)](!0x1);}}[_0x28eb85(0x532)](_0x5ac472){const _0x52111a=_0x28eb85;if(this[_0x52111a(0x4c3)](_0x5ac472))return this[_0x52111a(0x152)]['createInstance'](H,this[_0x52111a(0x333)],this[_0x52111a(0x254)],null,this[_0x52111a(0x4e6)],this[_0x52111a(0x4e5)],[],this['_handler']);this[_0x52111a(0x21b)]();const _0x72d637=this[_0x52111a(0x152)][_0x52111a(0x2e6)](x,this[_0x52111a(0x333)],this[_0x52111a(0x254)],this[_0x52111a(0x4e6)],this[_0x52111a(0x465)]);return _0x72d637['_schedule'](),_0x72d637['_updateLocalCache'](),_0x72d637;}[_0x28eb85(0x3d9)](_0x11e84e){const _0x41e586=_0x28eb85;return this[_0x41e586(0x3c4)](!!(_0x11e84e!=null&&_0x11e84e[_0x41e586(0x121)]));}[_0x28eb85(0x426)](){const _0x67e8c0=_0x28eb85;return this[_0x67e8c0(0x152)][_0x67e8c0(0x2e6)](G,this[_0x67e8c0(0x333)],this[_0x67e8c0(0x254)],this[_0x67e8c0(0x4e5)],this[_0x67e8c0(0x4e6)],this[_0x67e8c0(0x465)]);}[_0x28eb85(0x438)](){return this;}['resend'](){const _0x43dcfb=_0x28eb85;this[_0x43dcfb(0x465)][_0x43dcfb(0x514)](this[_0x43dcfb(0x4e5)]);}[_0x28eb85(0x3c4)](_0x287f1a){const _0x29ff9e=_0x28eb85;return this[_0x29ff9e(0x152)][_0x29ff9e(0x2e6)](F,this[_0x29ff9e(0x333)],this['type'],null,this['_pendingMutations'],this[_0x29ff9e(0x465)],_0x287f1a);}};k=z([g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x7,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x8,a[_0x28eb85(0x1b0)]),g(0x9,a[_0x28eb85(0x155)]),g(0xa,_['ITransformService']),g(0xb,a[_0x28eb85(0x247)])],k);let F=class extends J{constructor(_0x7577de,_0x43b5c7,_0x107fe0,_0x53335d,_0x1bf664,_0x3875e2=!0x1,_0xeae194,_0x5f36b9,_0x5e87bb,_0x271b1e,_0x4b013f,_0x13cee6,_0x30adb0){const _0x54571d=_0x28eb85;super(_0x7577de,_0x43b5c7,_0x107fe0,_0x53335d,_0x1bf664,_0x5f36b9,_0x5e87bb,_0x4b013f,_0x271b1e),d(this,'status','conflict'),(this[_0x54571d(0x33d)]=_0x3875e2,this[_0x54571d(0x28a)]=_0xeae194,this['_localeService']=_0x13cee6,this[_0x54571d(0x4a2)]=_0x30adb0,this[_0x54571d(0x3f6)](),this['_clearLocalCache'](),this[_0x54571d(0x274)]());}[_0x28eb85(0x141)](){return this;}[_0x28eb85(0x17e)](){return this;}[_0x28eb85(0x532)](){return this;}[_0x28eb85(0x3d9)](){return this;}[_0x28eb85(0x426)](){return this;}[_0x28eb85(0x438)](){return this;}[_0x28eb85(0x202)](){const _0x3a887f=_0x28eb85;throw new Error(_0x3a887f(0x449));}[_0x28eb85(0x502)](){const _0x1c7f2c=_0x28eb85;this['_localCacheService'][_0x1c7f2c(0x118)](this[_0x1c7f2c(0x333)],this[_0x1c7f2c(0x254)],null,[]);}[_0x28eb85(0x3f6)](){const _0x2c6de7=_0x28eb85;this[_0x2c6de7(0x33d)]?this[_0x2c6de7(0x4a2)]['show']({'title':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x1e3)),'content':this['_localeService']['t'](_0x2c6de7(0x127)),'type':_0x2c6de7(0x533),'duration':0x0}):this['_notificationService'][_0x2c6de7(0x2bd)]({'title':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x17f)),'content':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x407)),'type':_0x2c6de7(0x533),'duration':0x0});}[_0x28eb85(0x274)](){const _0x2b720e=_0x28eb85;this[_0x2b720e(0x28a)][_0x2b720e(0x49e)](new C[(_0x2b720e(0x31c))](this[_0x2b720e(0x333)])['id'],!0x1);}};F=z([g(0x6,a[_0x28eb85(0x23f)](a[_0x28eb85(0x485)])),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a[_0x28eb85(0x247)]),g(0x9,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0xa,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0xb,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),g(0xc,N[_0x28eb85(0x282)])],F);let G=class extends J{constructor(_0x4dd10e,_0x17e7f7,_0x465463,_0x39eb58,_0x437906,_0x35d91d,_0x2d2046,_0x424022,_0x2c8a9d,_0x31d514){const _0x47c4e5=_0x28eb85;super(_0x4dd10e,_0x17e7f7,_0x465463,_0x39eb58,_0x437906,_0x2c8a9d,_0x31d514,_0x2d2046,_0x424022),d(this,'status',_0x47c4e5(0x3f1)),this['_injector']=_0x35d91d;}['appendMutation'](_0x1f3901){const _0x334e09=_0x28eb85;return this[_0x334e09(0x4e6)][_0x334e09(0x3f4)](_0x1f3901),this[_0x334e09(0x48d)](),this;}[_0x28eb85(0x17e)](_0xfabb46){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x28eb85(0x532)](){const _0x24d0b7=_0x28eb85;throw new Error(_0x24d0b7(0x11d));}[_0x28eb85(0x3d9)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x28eb85(0x438)](){const _0xe62b75=_0x28eb85,{_injector:_0x16aa45,_pendingMutations:_0x429503,_awaitingChangeset:_0x40e798,unitID:_0x394138,_handler:_0x46cae1,type:_0x46f705}=this,_0x30a548=Rt(_0x16aa45,_0x394138,_0x46f705,_0x40e798,_0x429503,_0x46cae1);return _0x30a548 instanceof x?_0x30a548[_0xe62b75(0x3b4)]():(_0x30a548 instanceof k||_0x30a548 instanceof W)&&_0x30a548[_0xe62b75(0x202)](),_0x30a548;}['resend'](){const _0x55e319=_0x28eb85;throw new Error(_0x55e319(0x52a));}};G=z([g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a['Inject'](_[_0x28eb85(0x4fa)])),g(0x7,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x8,a[_0x28eb85(0x1b0)]),g(0x9,a[_0x28eb85(0x247)])],G);let H=class extends J{constructor(_0x553621,_0x181412,_0x6d7e1f,_0x4ef4ea,_0x13379e,_0x20cc4c,_0x4f1c79,_0x53e15a,_0x2cfc48,_0x2a324d,_0x3d85ef,_0xcdaab9,_0x4cb38c,_0x33d962){const _0x1924fa=_0x28eb85;super(_0x553621,_0x181412,_0x6d7e1f,_0x4ef4ea,_0x4f1c79,_0xcdaab9,_0x4cb38c,_0x2cfc48,_0x2a324d),d(this,_0x1924fa(0x266),_0x1924fa(0x16e)),(this['_acknowledgedAwaitingChangeset']=_0x13379e,this[_0x1924fa(0x481)]=_0x20cc4c,this[_0x1924fa(0x152)]=_0x53e15a,this[_0x1924fa(0x1a7)]=_0x3d85ef,this[_0x1924fa(0x294)]=_0x33d962);}[_0x28eb85(0x11f)](_0x3d70ea){const _0x104a7d=_0x28eb85;try{const _0x3ebd47=[..._0x3d70ea,...this[_0x104a7d(0x481)]],_0x3ec27e=[this[_0x104a7d(0x4e5)]||this[_0x104a7d(0x31b)]][_0x104a7d(0x215)](_0x2908e4=>!!_0x2908e4);let _0x232ea4,_0x33c006;if(_0x3ec27e[_0x104a7d(0x355)]){const _0x103ea9=this[_0x104a7d(0x294)][_0x104a7d(0x179)](_0x3ebd47,_0x3ec27e,!0x1);if(!_[_0x104a7d(0x2a0)](_0x103ea9))throw _0x103ea9['error'];_0x232ea4=_0x103ea9[_0x104a7d(0x338)],_0x33c006=_0x103ea9['c2Prime'];}else _0x232ea4=_0x3ebd47,_0x33c006=[];let _0x2ccda4=this[_0x104a7d(0x4e6)];_0x232ea4[_0x104a7d(0x2bf)](_0x25e752=>{const _0x58c054=_0x104a7d;let _0x3eaebd;if(_0x2ccda4[_0x58c054(0x355)]){const _0x23cb51=this['_transformService'][_0x58c054(0x3ff)](_0x25e752,_0x2ccda4);if(!_[_0x58c054(0x2ca)](_0x23cb51))throw _0x23cb51[_0x58c054(0x533)];_0x3eaebd=_0x23cb51[_0x58c054(0x338)],_0x2ccda4=_0x23cb51[_0x58c054(0x480)];}else _0x3eaebd=_0x25e752;this[_0x58c054(0x174)](_0x3eaebd);}),this['_acknowledgedAwaitingChangeset']&&this[_0x104a7d(0x21b)](),this[_0x104a7d(0x4e5)]&&_0x33c006['length']&&(_0x33c006[0x0][_0x104a7d(0x3d8)]=this[_0x104a7d(0x3eb)]());let _0x79a5d;if(this[_0x104a7d(0x4e5)]&&_0x2ccda4[_0x104a7d(0x355)]!==0x0)_0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](k,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],_0x33c006[0x0],_0x2ccda4,this['_handler']);else{if(this[_0x104a7d(0x4e5)]&&_0x2ccda4[_0x104a7d(0x355)]===0x0)_0x33c006[0x0][_0x104a7d(0x3d8)]=this[_0x104a7d(0x3eb)](),_0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](W,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],_0x33c006[0x0],this[_0x104a7d(0x465)]);else{if(_0x2ccda4[_0x104a7d(0x355)]!==0x0){const _0x1fabfd=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](x,this['unitID'],this[_0x104a7d(0x254)],_0x2ccda4,this[_0x104a7d(0x465)]);_0x1fabfd[_0x104a7d(0x3b4)](),_0x79a5d=_0x1fabfd;}else _0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](se,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],this[_0x104a7d(0x465)]);}}return _0x79a5d[_0x104a7d(0x48d)](),_0x79a5d;}catch(_0x1cba50){return this[_0x104a7d(0x1a7)][_0x104a7d(0x533)](_0x104a7d(0x2ef),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1cba50),this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](F,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],this[_0x104a7d(0x4e5)],this['_pendingMutations'],this[_0x104a7d(0x465)],!0x1);}}[_0x28eb85(0x202)](){const _0x3b9937=_0x28eb85;throw new Error(_0x3b9937(0x1c4));}['appendMutation'](_0x3550b6){const _0x3d4fcd=_0x28eb85;return this['_pendingMutations'][_0x3d4fcd(0x3f4)](_0x3550b6),this;}[_0x28eb85(0x17e)](_0x2ef705){const _0x365d0e=_0x28eb85;return this[_0x365d0e(0x481)][_0x365d0e(0x3f4)](_0x2ef705),this;}[_0x28eb85(0x532)](_0x129a7a){const _0x22bc81=_0x28eb85;if(this[_0x22bc81(0x4e5)])return this[_0x22bc81(0x31b)]=this[_0x22bc81(0x4e5)],this[_0x22bc81(0x4e5)]=null,this;throw new Error(_0x22bc81(0x52c));}[_0x28eb85(0x3d9)](_0x53cc81){const _0x2e1ac6=_0x28eb85;return this[_0x2e1ac6(0x3c4)](!!(_0x53cc81!=null&&_0x53cc81[_0x2e1ac6(0x121)]));}[_0x28eb85(0x426)](){const _0x598eae=_0x28eb85;return this['_injector'][_0x598eae(0x2e6)](G,this[_0x598eae(0x333)],this['type'],this[_0x598eae(0x4e5)],this[_0x598eae(0x4e6)],this[_0x598eae(0x465)]);}[_0x28eb85(0x438)](){return this;}['_onConflict'](_0x4ee7dd){const _0x5c6d01=_0x28eb85;return this[_0x5c6d01(0x152)][_0x5c6d01(0x2e6)](F,this['unitID'],this[_0x5c6d01(0x254)],this[_0x5c6d01(0x4e5)],this[_0x5c6d01(0x4e6)],this['_handler'],_0x4ee7dd);}};H=z([g(0x7,a['Inject'](a[_0x28eb85(0x1b3)])),g(0x8,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x9,a[_0x28eb85(0x23f)](exports['LocalCacheService'])),g(0xa,a['ILogService']),g(0xb,a[_0x28eb85(0x1b0)]),g(0xc,a[_0x28eb85(0x247)]),g(0xd,_[_0x28eb85(0x2b4)])],H);function Rt(_0x2e200b,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x15ccd7,_0x1befdc){const _0x459294=_0x28eb85;return _0x7685a6&&_0x15ccd7['length']?_0x2e200b[_0x459294(0x2e6)](k,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x15ccd7,_0x1befdc):_0x7685a6?_0x2e200b[_0x459294(0x2e6)](W,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x1befdc):_0x15ccd7[_0x459294(0x355)]?_0x2e200b[_0x459294(0x2e6)](x,_0x4dc0ab,_0x33e6a6,_0x15ccd7,_0x1befdc):_0x2e200b[_0x459294(0x2e6)](se,_0x4dc0ab,_0x33e6a6,_0x1befdc);}var Hs=Object[_0x28eb85(0x114)],xs=Object[_0x28eb85(0x38b)],Ke=(_0x6dede3,_0x66f0e2,_0x28c5d2,_0x17fa4c)=>{for(var _0x116055=_0x17fa4c>0x1?void 0x0:_0x17fa4c?xs(_0x66f0e2,_0x28c5d2):_0x66f0e2,_0x42fb56=_0x6dede3['length']-0x1,_0x14cb23;_0x42fb56>=0x0;_0x42fb56--)(_0x14cb23=_0x6dede3[_0x42fb56])&&(_0x116055=(_0x17fa4c?_0x14cb23(_0x66f0e2,_0x28c5d2,_0x116055):_0x14cb23(_0x116055))||_0x116055);return _0x17fa4c&&_0x116055&&Hs(_0x66f0e2,_0x28c5d2,_0x116055),_0x116055;},I=(_0x6cfcc8,_0x40d228)=>(_0x51c43f,_0x2f7477)=>_0x40d228(_0x51c43f,_0x2f7477,_0x6cfcc8);exports[_0x28eb85(0x330)]=class extends a[_0x28eb85(0x2f9)]{constructor(_0x44d707,_0x1df794,_0x190f2c,_0x3939e9,_0x24cf8d,_0x51654c,_0x58295d,_0x4f0edc,_0x5a23b7,_0x5b5d08,_0x4d3fd1,_0xc40e45,_0x107ddd){const _0x13d7a3=_0x28eb85;super(),d(this,_0x13d7a3(0x160),new v[(_0x13d7a3(0x276))](null)),d(this,_0x13d7a3(0x4f8),this[_0x13d7a3(0x160)][_0x13d7a3(0x291)]()),d(this,_0x13d7a3(0x11b)),d(this,'_collaborationPaused',!0x1),d(this,_0x13d7a3(0x1dd),this['state$'][_0x13d7a3(0x495)](v[_0x13d7a3(0x331)](_0x1518fe=>_0x1518fe?_0x1518fe[_0x13d7a3(0x266)]:y['OFFLINE']),v[_0x13d7a3(0x1c6)](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x13d7a3(0x4de),[]),(this[_0x13d7a3(0x333)]=_0x44d707,this['session']=_0x1df794,this['_type']=_0x190f2c,this[_0x13d7a3(0x152)]=_0x3939e9,this[_0x13d7a3(0x535)]=_0x24cf8d,this['_compressMutationService']=_0x51654c,this[_0x13d7a3(0x122)]=_0x58295d,this[_0x13d7a3(0x325)]=_0x4f0edc,this[_0x13d7a3(0x1a7)]=_0x5a23b7,this[_0x13d7a3(0x1a9)]=_0x5b5d08,this[_0x13d7a3(0x23d)]=_0x4d3fd1,this['_permissionService']=_0xc40e45,this[_0x13d7a3(0x2e7)]=_0x107ddd);}get[_0x28eb85(0x2e9)](){const _0x292dd7=_0x28eb85;return this[_0x292dd7(0x11b)];}async[_0x28eb85(0x504)](){const _0x29921a=_0x28eb85;if(this['state'])throw new Error(_0x29921a(0x18e));await this['_init']();}['pauseCollaboration'](){const _0x5ea39a=_0x28eb85;return this[_0x5ea39a(0x43f)]=!0x0,a[_0x5ea39a(0x40e)](()=>{const _0x27941b=_0x5ea39a;this[_0x27941b(0x43f)]=!0x1,this[_0x27941b(0x273)]();});}[_0x28eb85(0x11c)](_0x16cef5){const _0x1154cd=_0x28eb85;this['_state']=_0x16cef5,this[_0x1154cd(0x160)][_0x1154cd(0x3fd)](_0x16cef5);}async['_init'](){const _0x1dec28=_0x28eb85;var _0x394ae0;this[_0x1dec28(0x11c)](await this[_0x1dec28(0x510)]()),this[_0x1dec28(0x2e7)]&&((_0x394ae0=this[_0x1dec28(0x2e7)])==null||_0x394ae0[_0x1dec28(0x20d)](this['unitID']),this[_0x1dec28(0x214)](this[_0x1dec28(0x2e7)][_0x1dec28(0x359)](this[_0x1dec28(0x333)])[_0x1dec28(0x14a)](_0x21797b=>{const _0x4ab57b=_0x1dec28;this[_0x4ab57b(0x1a7)][_0x4ab57b(0x3b2)](_0x4ab57b(0x1aa),_0x4ab57b(0x34c),_0x21797b),_0x21797b===bt[_0x4ab57b(0x130)]?(this[_0x4ab57b(0x23d)][_0x4ab57b(0x2bd)]({'content':this[_0x4ab57b(0x122)]['t'](_0x4ab57b(0x51d)),'type':X['MessageType']['Warning']}),this['_permissionService']['updatePermissionPoint'](new C[(_0x4ab57b(0x31c))](this[_0x4ab57b(0x333)])['id'],!0x1)):this['_permissionService'][_0x4ab57b(0x49e)](new C[(_0x4ab57b(0x31c))](this[_0x4ab57b(0x333)])['id'],!0x0);})));let _0x4f39ed=!0x1;return this[_0x1dec28(0x214)](this['session'][_0x1dec28(0x194)][_0x1dec28(0x14a)](_0x2b30ee=>{const _0x5af91f=_0x1dec28;_0x2b30ee===$[_0x5af91f(0x47d)]?this[_0x5af91f(0x48b)](_0x4f39ed):_0x2b30ee===$[_0x5af91f(0x29c)]&&(_0x4f39ed=!0x0,this[_0x5af91f(0x4a0)]());})),this[_0x1dec28(0x214)](this[_0x1dec28(0x2b3)]['event$'][_0x1dec28(0x14a)](_0x3e3f65=>{const _0x5c3309=_0x1dec28;try{switch(_0x3e3f65['eventID']){case _['CollaborationEvent'][_0x5c3309(0x208)]:{this['_onRemoteChangeset'](_[_0x5c3309(0x14e)](_0x3e3f65[_0x5c3309(0x451)]));break;}case _[_0x5c3309(0x46d)][_0x5c3309(0x3d4)]:{this[_0x5c3309(0x210)](_0x3e3f65[_0x5c3309(0x451)]);break;}case _[_0x5c3309(0x46d)]['CHANGESET_REJ']:{this[_0x5c3309(0x342)]();break;}case _[_0x5c3309(0x46d)][_0x5c3309(0x4fb)]:{this[_0x5c3309(0x1eb)](_0x3e3f65[_0x5c3309(0x451)][_0x5c3309(0x35a)]['map'](_0x137da5=>_[_0x5c3309(0x14e)](_0x137da5)));break;}case _['CollaborationEvent'][_0x5c3309(0x192)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x203390){throw console['error']('Error\x20on\x20receiving\x20event',_0x203390),_0x203390;}})),this[_0x1dec28(0x11b)];}[_0x28eb85(0x44f)](){const _0x4e3178=_0x28eb85;this[_0x4e3178(0x1e4)]=!0x1;}['_lockTransition'](){const _0x521b80=_0x28eb85;if(this[_0x521b80(0x1e4)])throw new Error(_0x521b80(0x2f5));this[_0x521b80(0x1e4)]=!0x0;}[_0x28eb85(0x3fb)](_0x2203b2){const _0x11e8e0=_0x28eb85;this[_0x11e8e0(0x40b)](),this[_0x11e8e0(0x11c)](this[_0x11e8e0(0x11b)][_0x11e8e0(0x141)](_0x2203b2)),this[_0x11e8e0(0x44f)]();}[_0x28eb85(0x1fe)](_0x299cb0){const _0x1b1945=_0x28eb85;if(!(_0x299cb0[_0x1b1945(0x3e7)]<=this[_0x1b1945(0x325)][_0x1b1945(0x134)](this[_0x1b1945(0x333)]))){if(this[_0x1b1945(0x43f)]){this[_0x1b1945(0x4de)][_0x1b1945(0x3f4)](_0x299cb0);return;}this[_0x1b1945(0x477)](_0x299cb0);}}[_0x28eb85(0x273)](){const _0x3eb388=_0x28eb85;this[_0x3eb388(0x4de)]['forEach'](_0x4cd3a2=>this[_0x3eb388(0x477)](_0x4cd3a2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x40558c){const _0x38dcff=_0x28eb85,_0x2a7e0b=this[_0x38dcff(0x40d)]['interceptor']['fetchThroughInterceptors'](this[_0x38dcff(0x40d)][_0x38dcff(0x231)][_0x38dcff(0x288)]()[_0x38dcff(0x233)])(_0x40558c[_0x38dcff(0x143)],null)||_0x40558c[_0x38dcff(0x143)],_0x268221={..._0x40558c,'mutations':_0x2a7e0b};this[_0x38dcff(0x40b)](),this['_updateState'](this['_state']['onRemoteChangeset'](_0x268221)),this[_0x38dcff(0x44f)]();}[_0x28eb85(0x210)](_0x276686){const _0x4fe0a3=_0x28eb85;this[_0x4fe0a3(0x40b)](),this['_updateState'](this[_0x4fe0a3(0x11b)]['onRemoteAck'](_0x276686)),this[_0x4fe0a3(0x44f)]();}[_0x28eb85(0x342)](_0x224429){const _0x2c2e1a=_0x28eb85;this[_0x2c2e1a(0x40b)](),this['_updateState'](this['_state'][_0x2c2e1a(0x3d9)](_0x224429)),this['_unlockTransition']();}[_0x28eb85(0x1eb)](_0x538dbe){const _0x3b9755=_0x28eb85;if(!(this[_0x3b9755(0x11b)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x139364=_0x538dbe[_0x3b9755(0x331)](_0x28f687=>{const _0x5a2307=_0x3b9755,_0x5c52ca=this[_0x5a2307(0x40d)][_0x5a2307(0x231)][_0x5a2307(0x1d4)](this[_0x5a2307(0x40d)][_0x5a2307(0x231)][_0x5a2307(0x288)]()[_0x5a2307(0x233)])(_0x28f687[_0x5a2307(0x143)],null)||_0x28f687[_0x5a2307(0x143)];return{..._0x28f687,'mutations':_0x5c52ca};});this[_0x3b9755(0x40b)](),this[_0x3b9755(0x11c)](this[_0x3b9755(0x11b)][_0x3b9755(0x11f)](_0x139364)),this['_unlockTransition']();}[_0x28eb85(0x4a0)](){const _0x544f07=_0x28eb85;this[_0x544f07(0x40b)](),this['_updateState'](this[_0x544f07(0x11b)][_0x544f07(0x426)]()),this[_0x544f07(0x44f)]();}[_0x28eb85(0x48b)](_0x3da598=!0x1){const _0x192b4a=_0x28eb85;this[_0x192b4a(0x40b)](),this[_0x192b4a(0x11c)](this[_0x192b4a(0x11b)][_0x192b4a(0x438)]()),this[_0x192b4a(0x44f)]();const _0x1dfdb8=this['_state'];_0x3da598&&_0x1dfdb8 instanceof se&&(this['_lockTransition'](),this[_0x192b4a(0x11c)](_0x1dfdb8[_0x192b4a(0x24f)]()),this[_0x192b4a(0x44f)]());}async['_createInitialState'](){return new Promise(_0x20c3b5=>{const _0x34dd90=_0xb2fc;this['session'][_0x34dd90(0x194)][_0x34dd90(0x495)](v[_0x34dd90(0x2f0)](0x1))[_0x34dd90(0x14a)](async _0x10e80b=>{const _0x146739=_0x34dd90;_0x20c3b5(await this[_0x146739(0x4be)](_0x10e80b===$['ONLINE']));});});}['_createHandler'](){const _0x22e6e2=_0x28eb85,_0x1e8854=this[_0x22e6e2(0x333)];return{'onStateChange':(_0x2bb699,_0x3de517)=>{const _0x578768=_0x22e6e2;if(_0x2bb699!==this[_0x578768(0x11b)])throw new Error(_0x578768(0x471)+_0x2bb699['status']+_0x578768(0x1b9)+_0x3de517['status']+_0x578768(0x39f)+this[_0x578768(0x11b)]['status']);this[_0x578768(0x11c)](_0x3de517);},'onSendChangeset':_0x17cf83=>{const _0x7ffbe8=_0x22e6e2,_0x52f0a6={'eventID':_[_0x7ffbe8(0x46d)][_0x7ffbe8(0x13f)],'data':{'unitID':_0x17cf83[_0x7ffbe8(0x333)],'unitType':this['_type'],'changeset':_0x17cf83,'memberID':this[_0x7ffbe8(0x2b3)]['getMemberID']()}};this[_0x7ffbe8(0x2b3)][_0x7ffbe8(0x178)](_0x52f0a6,this[_0x7ffbe8(0x333)]);},'onMissingChangesets':({from:_0x16822b,to:_0x28fbf5})=>{const _0x1dc5f8=_0x22e6e2;this[_0x1dc5f8(0x1a7)][_0x1dc5f8(0x3b2)](_0x1dc5f8(0x1aa),_0x1dc5f8(0x131)+_0x16822b+_0x1dc5f8(0x177)+_0x28fbf5);const _0x397b41={'eventID':_['CollaborationEvent'][_0x1dc5f8(0x336)],'data':{'unitID':_0x1e8854,'unitType':this[_0x1dc5f8(0x1ff)],'from':_0x16822b,'to':_0x28fbf5}};this[_0x1dc5f8(0x2b3)][_0x1dc5f8(0x178)](_0x397b41,this[_0x1dc5f8(0x333)]);}};}async['_createInitialStateImpl'](_0x268a9c){const _0x36dba5=_0x28eb85;var _0x2df6de,_0x4b883d;const _0x2e6c75=await this['_localCacheService'][_0x36dba5(0x2c6)](this['unitID']),_0x3be12e=(_0x2df6de=_0x2e6c75==null?void 0x0:_0x2e6c75[_0x36dba5(0x143)])!=null?_0x2df6de:[],_0x50f971=(_0x4b883d=_0x2e6c75==null?void 0x0:_0x2e6c75['awaitingChangeset'])!=null?_0x4b883d:null,_0x37b434=this[_0x36dba5(0x333)];try{this['_replayCachedMutations'](_0x50f971,_0x3be12e);}catch(_0x146fce){this[_0x36dba5(0x1a7)]['error'](_0x146fce);}const _0x26212e=this['_createHandler']();if(_0x268a9c){const _0x4345b9=Rt(this[_0x36dba5(0x152)],_0x37b434,this[_0x36dba5(0x1ff)],_0x50f971,_0x3be12e,_0x26212e);return _0x4345b9 instanceof x?_0x4345b9['_schedule']():(_0x4345b9 instanceof k||_0x4345b9 instanceof W)&&_0x4345b9[_0x36dba5(0x202)](),_0x4345b9;}return this[_0x36dba5(0x152)][_0x36dba5(0x2e6)](G,_0x37b434,this[_0x36dba5(0x1ff)],_0x50f971,_0x3be12e,_0x26212e);}[_0x28eb85(0x1c9)](_0x5bcab3,_0xcdd224){const _0x28eefc=_0x28eb85;var _0x5d1819,_0x3ae99f;const _0x1dcd4a=this['_compressMutationService'][_0x28eefc(0x231)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x28eefc(0x231)][_0x28eefc(0x288)]()['COMPRESS_MUTATION_APPLY']);(_0x5d1819=_0x1dcd4a((_0x5bcab3==null?void 0x0:_0x5bcab3['mutations'])||[],null))==null||_0x5d1819[_0x28eefc(0x2bf)](_0x56e465=>this[_0x28eefc(0x1a9)][_0x28eefc(0x170)](_0x56e465['id'],_0x56e465['params'])),(_0x3ae99f=_0x1dcd4a(_0xcdd224||[],null))==null||_0x3ae99f[_0x28eefc(0x2bf)](_0x5d8a09=>this['_commandService']['executeCommand'](_0x5d8a09['id'],_0x5d8a09['params']));}},exports[_0x28eb85(0x330)]=Ke([I(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),I(0x4,a['Inject'](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x494)])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),I(0x8,a[_0x28eb85(0x155)]),I(0x9,a[_0x28eb85(0x1b0)]),I(0xa,N[_0x28eb85(0x25a)]),I(0xb,a['IPermissionService']),I(0xc,a[_0x28eb85(0x3ab)](be))],exports['CollaborationEntity']),exports[_0x28eb85(0x30b)]=class extends exports[_0x28eb85(0x330)]{constructor(_0xf77f82,_0x212477,_0x2577ae,_0x1c521d,_0x1f262a,_0x3de221,_0x33491d,_0x4a909d,_0xd9d30a,_0x15f3e6,_0x67352c,_0x338ce1,_0x2e6162,_0x24cdc3,_0x1428f0,_0x209771,_0xb5b6de){const _0x5d1ead=_0x28eb85;super(_0xf77f82,_0x2577ae,_0x212477,_0x1c521d,_0x1f262a,_0x3de221,_0x33491d,_0x4a909d,_0x2e6162,_0x24cdc3,_0x1428f0,_0x209771,_0xb5b6de),this[_0x5d1ead(0x333)]=_0xf77f82,this['type']=_0x212477,this[_0x5d1ead(0x232)]=_0xd9d30a,this['_docTransformIMECacheService']=_0x15f3e6,this[_0x5d1ead(0x4fe)]=_0x67352c,this[_0x5d1ead(0x1fb)]=_0x338ce1;}[_0x28eb85(0x537)](){const _0x4bcf01=_0x28eb85,_0x1dde56=super['_createHandler']();return _0x1dde56[_0x4bcf01(0x2c0)]=_0x408470=>this[_0x4bcf01(0x3af)][_0x4bcf01(0x204)](_0x408470),_0x1dde56['onTransformSelections']=_0x2ab25f=>this[_0x4bcf01(0x4fe)][_0x4bcf01(0x14f)](_0x2ab25f),_0x1dde56['onSyncEditingCollabCursor']=_0x597129=>this['_docSyncEditingCollabCursorService'][_0x4bcf01(0x2be)](_0x597129),_0x1dde56[_0x4bcf01(0x168)]=_0x3a0447=>this[_0x4bcf01(0x3af)]['transformRemoteChangeset'](_0x3a0447),_0x1dde56;}async['_init'](){const _0x5e21db=_0x28eb85,_0x5ca4a7=await super[_0x5e21db(0x3e8)]();return this[_0x5e21db(0x214)](this[_0x5e21db(0x1a9)][_0x5e21db(0x203)]((_0x9aa23e,_0x224b16)=>{const _0x1d6a6f=_0x5e21db;if(_0x9aa23e[_0x1d6a6f(0x254)]!==a[_0x1d6a6f(0x261)][_0x1d6a6f(0x193)]||_0x224b16!=null&&_0x224b16[_0x1d6a6f(0x4dd)]||_0x224b16!=null&&_0x224b16[_0x1d6a6f(0x293)])return;const _0x118854=_0x9aa23e[_0x1d6a6f(0x1cf)];if((_0x118854==null?void 0x0:_0x118854['unitId'])!==this[_0x1d6a6f(0x333)])return;let _0x4f4800=_0x9aa23e;if(_0x4f4800['id']===V[_0x1d6a6f(0x3f3)]['id']){const _0x36cc0b=_0x4f4800[_0x1d6a6f(0x1cf)];_0x4f4800={'id':V[_0x1d6a6f(0x3f3)]['id'],'type':a[_0x1d6a6f(0x261)][_0x1d6a6f(0x193)],'params':{'unitId':_0x36cc0b[_0x1d6a6f(0x415)],'actions':_0x36cc0b[_0x1d6a6f(0x4e2)],'textRanges':null}};}const _0xb855a8=this[_0x1d6a6f(0x40d)][_0x1d6a6f(0x231)][_0x1d6a6f(0x1d4)](this[_0x1d6a6f(0x40d)][_0x1d6a6f(0x231)]['getInterceptPoints']()[_0x1d6a6f(0x2d2)])([_0x4f4800],null)||[_0x4f4800];this[_0x1d6a6f(0x3fb)](_0xb855a8[0x0]);})),_0x5ca4a7;}},exports[_0x28eb85(0x30b)]=Ke([I(0x3,a['Inject'](a[_0x28eb85(0x1b3)])),I(0x4,a['Inject'](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_['CompressMutationService'])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),I(0x8,a['Inject'](w[_0x28eb85(0x459)])),I(0x9,a[_0x28eb85(0x23f)](fe)),I(0xa,a[_0x28eb85(0x23f)](me)),I(0xb,a[_0x28eb85(0x23f)](Ye)),I(0xc,a[_0x28eb85(0x155)]),I(0xd,a[_0x28eb85(0x1b0)]),I(0xe,N[_0x28eb85(0x25a)]),I(0xf,a[_0x28eb85(0x485)]),I(0x10,a[_0x28eb85(0x3ab)](be))],exports[_0x28eb85(0x30b)]),exports[_0x28eb85(0x2f6)]=class extends exports[_0x28eb85(0x330)]{constructor(_0x3e4d8f,_0x5f9453,_0x3e4afa,_0x43a05b,_0x410ad8,_0x20d0ef,_0x59e300,_0x1bd394,_0x1a5c23,_0x1b1743,_0xa8d732,_0x1d8daa,_0x95f8d7,_0x40aab8){const _0x312e1a=_0x28eb85;super(_0x3e4d8f,_0x3e4afa,_0x5f9453,_0x43a05b,_0x410ad8,_0x20d0ef,_0x59e300,_0x1bd394,_0x1b1743,_0xa8d732,_0x1d8daa,_0x95f8d7,_0x40aab8),this[_0x312e1a(0x333)]=_0x3e4d8f,this[_0x312e1a(0x254)]=_0x5f9453,this[_0x312e1a(0x43b)]=_0x1a5c23;}[_0x28eb85(0x537)](){const _0x1e15e7=_0x28eb85,_0x3c8968=super[_0x1e15e7(0x537)]();return _0x3c8968[_0x1e15e7(0x132)]=_0x44c8c2=>this[_0x1e15e7(0x43b)][_0x1e15e7(0x14f)](_0x44c8c2),_0x3c8968;}async[_0x28eb85(0x3e8)](){const _0x363916=_0x28eb85,_0x1a3bed=await super[_0x363916(0x3e8)]();return this[_0x363916(0x214)](this[_0x363916(0x1a9)]['onCommandExecuted']((_0xab6425,_0x4ee66a)=>{const _0x304dd5=_0x363916;if(_0xab6425[_0x304dd5(0x254)]!==a['CommandType']['MUTATION']||_0x4ee66a!=null&&_0x4ee66a[_0x304dd5(0x4dd)]||_0x4ee66a!=null&&_0x4ee66a[_0x304dd5(0x293)])return;const _0x23aae7=_0xab6425[_0x304dd5(0x1cf)];if((_0x23aae7==null?void 0x0:_0x23aae7[_0x304dd5(0x415)])!==this['unitID'])return;const _0x563f59=_0xab6425,_0x5f18d0=this[_0x304dd5(0x40d)][_0x304dd5(0x231)][_0x304dd5(0x1d4)](this[_0x304dd5(0x40d)]['interceptor'][_0x304dd5(0x288)]()['COMPRESS_MUTATION_SEND'])([_0x563f59],null)||[_0x563f59];this[_0x304dd5(0x3fb)](_0x5f18d0[0x0]);})),_0x1a3bed;}},exports[_0x28eb85(0x2f6)]=Ke([I(0x3,a[_0x28eb85(0x23f)](a['Injector'])),I(0x4,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x494)])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a['Inject'](_[_0x28eb85(0x4fa)])),I(0x8,a[_0x28eb85(0x23f)](ge)),I(0x9,a[_0x28eb85(0x155)]),I(0xa,a[_0x28eb85(0x1b0)]),I(0xb,N['IMessageService']),I(0xc,a['IPermissionService']),I(0xd,a[_0x28eb85(0x3ab)](be))],exports[_0x28eb85(0x2f6)]);var ks=Object[_0x28eb85(0x114)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x3c9899,_0xa8da47,_0x135a5c,_0x20038a)=>{for(var _0x3a5493=_0x20038a>0x1?void 0x0:_0x20038a?Bs(_0xa8da47,_0x135a5c):_0xa8da47,_0x19c3a6=_0x3c9899['length']-0x1,_0x85b58a;_0x19c3a6>=0x0;_0x19c3a6--)(_0x85b58a=_0x3c9899[_0x19c3a6])&&(_0x3a5493=(_0x20038a?_0x85b58a(_0xa8da47,_0x135a5c,_0x3a5493):_0x85b58a(_0x3a5493))||_0x3a5493);return _0x20038a&&_0x3a5493&&ks(_0xa8da47,_0x135a5c,_0x3a5493),_0x3a5493;},Ue=(_0x1ef18b,_0x3ef9e4)=>(_0x415f83,_0x5d34be)=>_0x3ef9e4(_0x415f83,_0x5d34be,_0x1ef18b);exports[_0x28eb85(0x4af)]=class extends a[_0x28eb85(0x2f9)]{constructor(_0x54dab1,_0x545c05,_0x2baaa3){const _0x1c8974=_0x28eb85;super(),d(this,_0x1c8974(0x3ea),new Map()),d(this,'_entityInit$',new v[(_0x1c8974(0x1ec))]()),(this[_0x1c8974(0x152)]=_0x54dab1,this[_0x1c8974(0x3ad)]=_0x545c05,this[_0x1c8974(0x357)]=_0x2baaa3,this[_0x1c8974(0x3e8)]());}[_0x28eb85(0x347)](){const _0x558ab2=_0x28eb85;super['dispose'](),this[_0x558ab2(0x3ea)]['forEach'](_0x2fcd32=>_0x2fcd32[_0x558ab2(0x347)]()),this['_entities']['clear']();}[_0x28eb85(0x346)](_0x1b3f8a){const _0x283fa3=_0x28eb85;var _0x2c6fd5;return(_0x2c6fd5=this[_0x283fa3(0x3ea)][_0x283fa3(0x30d)](_0x1b3f8a))!=null?_0x2c6fd5:null;}[_0x28eb85(0x2b5)](_0x23c925){const _0x4f733f=_0x28eb85,_0x576af7=this[_0x4f733f(0x346)](_0x23c925);return _0x576af7?v['of'](_0x576af7):this[_0x4f733f(0x392)]['pipe'](E[_0x4f733f(0x215)](_0x20b1ad=>_0x20b1ad[_0x4f733f(0x333)]===_0x23c925));}[_0x28eb85(0x3e8)](){const _0x3367e5=_0x28eb85;this[_0x3367e5(0x357)][_0x3367e5(0x1ba)](a[_0x3367e5(0x24a)]['UNIVER_SHEET'])[_0x3367e5(0x495)](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]),E['delay'](0x10))[_0x3367e5(0x14a)](async _0xc8c1a9=>{const _0x140351=_0x3367e5,_0x466fdf=_0xc8c1a9[_0x140351(0x270)](),_0x3e6869=await this[_0x140351(0x2b9)](_0x466fdf,j[_0x140351(0x384)]);this['_entities'][_0x140351(0x191)](_0x466fdf,_0x3e6869);}),this['_univerInstanceService'][_0x3367e5(0x1ba)](a[_0x3367e5(0x24a)][_0x3367e5(0x43a)])['pipe'](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]),E[_0x3367e5(0x169)](0x10))[_0x3367e5(0x495)](E['filter'](_0x10b705=>!_0x10b705[_0x3367e5(0x270)]()['startsWith']('__')))[_0x3367e5(0x14a)](async _0xda4fae=>{const _0x156018=_0x3367e5,_0x33a052=_0xda4fae[_0x156018(0x270)](),_0x1c2143=await this['_startCollaboration'](_0x33a052,j[_0x156018(0x43a)]);this[_0x156018(0x3ea)][_0x156018(0x191)](_0x33a052,_0x1c2143);}),v['merge'](this[_0x3367e5(0x357)][_0x3367e5(0x1da)](a[_0x3367e5(0x24a)][_0x3367e5(0x384)]),this['_univerInstanceService'][_0x3367e5(0x1da)](a['UniverInstanceType'][_0x3367e5(0x43a)]))[_0x3367e5(0x495)](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]))[_0x3367e5(0x14a)](_0x4a5dfa=>{const _0xcea958=_0x3367e5,_0x4d19c7=_0x4a5dfa['getUnitId'](),_0x307613=this[_0xcea958(0x3ea)]['get'](_0x4d19c7);_0x307613&&(_0x307613[_0xcea958(0x347)](),this['_entities']['delete'](_0x4d19c7));});}async[_0x28eb85(0x2b9)](_0x54195a,_0x4a4b21){const _0x353af2=_0x28eb85,_0x49cb89=await this[_0x353af2(0x3ad)][_0x353af2(0x123)](_0x54195a),_0x2c36c9=this[_0x353af2(0x152)][_0x353af2(0x2e6)](this[_0x353af2(0x13e)](_0x4a4b21),_0x54195a,_0x4a4b21,_0x49cb89);return await _0x2c36c9[_0x353af2(0x504)](),this['_entityInit$'][_0x353af2(0x3fd)](_0x2c36c9),_0x2c36c9;}[_0x28eb85(0x13e)](_0x584f30){const _0x11b510=_0x28eb85;switch(_0x584f30){case j[_0x11b510(0x43a)]:return exports[_0x11b510(0x30b)];case j[_0x11b510(0x384)]:return exports[_0x11b510(0x2f6)];default:throw new Error(_0x11b510(0x2fe)+_0x584f30);}}},exports[_0x28eb85(0x4af)]=Vs([Ue(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Ue(0x1,a['Inject'](exports[_0x28eb85(0x398)])),Ue(0x2,a[_0x28eb85(0x286)])],exports['CollaborationController']);const nt=['purple300',_0x28eb85(0x32d),_0x28eb85(0x305),_0x28eb85(0x4ee),'blue400','gold400'];class Xe extends a[_0x28eb85(0x216)]{constructor(){const _0x31a75d=_0x28eb85;super(...arguments),d(this,_0x31a75d(0x1e2),new Map()),d(this,_0x31a75d(0x403),0x0);}['assignAColorForMemberID'](_0x45f955){const _0x47d124=_0x28eb85;if(this[_0x47d124(0x1e2)][_0x47d124(0x186)](_0x45f955))return this['_assignedColors'][_0x47d124(0x30d)](_0x45f955);const _0x51100a=nt[this[_0x47d124(0x403)]];return this[_0x47d124(0x403)]=(this['_colorIndex']+0x1)%nt[_0x47d124(0x355)],this[_0x47d124(0x1e2)]['set'](_0x45f955,_0x51100a),_0x51100a;}}var Ws=Object[_0x28eb85(0x114)],Fs=Object[_0x28eb85(0x38b)],Gs=(_0x560594,_0x5c4a1a,_0x94cfe1,_0x11af0d)=>{const _0x22171a=_0x28eb85;for(var _0x1cf7fe=_0x11af0d>0x1?void 0x0:_0x11af0d?Fs(_0x5c4a1a,_0x94cfe1):_0x5c4a1a,_0x57120b=_0x560594[_0x22171a(0x355)]-0x1,_0x452ce0;_0x57120b>=0x0;_0x57120b--)(_0x452ce0=_0x560594[_0x57120b])&&(_0x1cf7fe=(_0x11af0d?_0x452ce0(_0x5c4a1a,_0x94cfe1,_0x1cf7fe):_0x452ce0(_0x1cf7fe))||_0x1cf7fe);return _0x11af0d&&_0x1cf7fe&&Ws(_0x5c4a1a,_0x94cfe1,_0x1cf7fe),_0x1cf7fe;},K=(_0x1fae95,_0x28b6fd)=>(_0xa3d6e9,_0x241cb3)=>_0x28b6fd(_0xa3d6e9,_0x241cb3,_0x1fae95);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x28eb85(0x2f9)]{constructor(_0x205e14,_0x5a1208,_0x5f35dd,_0x47e764,_0x546976,_0x4abfd6,_0x37c9a1,_0xb008b9,_0x5c0ca5){const _0x54f3a6=_0x28eb85;super(),d(this,'_online',!0x1),d(this,_0x54f3a6(0x3e8),!0x1),d(this,_0x54f3a6(0x4b6),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this[_0x54f3a6(0x4b6)][_0x54f3a6(0x291)]()),d(this,_0x54f3a6(0x1b2),new v['BehaviorSubject']([])),d(this,_0x54f3a6(0x327),this[_0x54f3a6(0x1b2)]['pipe'](v[_0x54f3a6(0x425)](Ys))),d(this,_0x54f3a6(0x1c8),a[_0x54f3a6(0x349)](_0xf303ad=>{const _0x4c3c57=_0x54f3a6,_0x725ac4={'eventID':_['CollaborationEvent'][_0x4c3c57(0x1c5)],'data':{'unitID':this[_0x4c3c57(0x333)],'memberID':this[_0x4c3c57(0x1f3)][_0x4c3c57(0x2e4)](),'selection':Tt(_0xf303ad)}};this[_0x4c3c57(0x1f3)][_0x4c3c57(0x178)](_0x725ac4,this[_0x4c3c57(0x333)]);},Ks)),(this[_0x54f3a6(0x333)]=_0x205e14,this[_0x54f3a6(0x1f3)]=_0x5a1208,this[_0x54f3a6(0x152)]=_0x5f35dd,this['_colorAssignService']=_0x47e764,this[_0x54f3a6(0x4c9)]=_0x546976,this[_0x54f3a6(0x3ae)]=_0x4abfd6,this[_0x54f3a6(0x294)]=_0x37c9a1,this[_0x54f3a6(0x357)]=_0xb008b9,this[_0x54f3a6(0x1a9)]=_0x5c0ca5);}get[_0x28eb85(0x3bf)](){const _0x534837=_0x28eb85;return this[_0x534837(0x4b6)]['getValue']();}get[_0x28eb85(0x4cc)](){const _0x80f817=_0x28eb85;return this[_0x80f817(0x1b2)]['getValue']();}[_0x28eb85(0x347)](){const _0x36751f=_0x28eb85;super['dispose'](),this[_0x36751f(0x4b6)][_0x36751f(0x3fd)](new Map()),this[_0x36751f(0x4b6)][_0x36751f(0x500)](),this[_0x36751f(0x1b2)]['next']([]),this[_0x36751f(0x1b2)][_0x36751f(0x500)]();}[_0x28eb85(0x504)](){const _0x2ca438=_0x28eb85;this['_init']||(this[_0x2ca438(0x3e8)]=!0x0,this[_0x2ca438(0x1f3)][_0x2ca438(0x194)][_0x2ca438(0x495)](v[_0x2ca438(0x256)](this['dispose$']))[_0x2ca438(0x14a)](_0x373286=>{const _0x14c899=_0x2ca438;_0x373286===$[_0x14c899(0x47d)]?this[_0x14c899(0x48b)]():this['_toggleOffline']();}),this[_0x2ca438(0x1f3)][_0x2ca438(0x476)]['pipe'](v[_0x2ca438(0x256)](this[_0x2ca438(0x2fb)]))[_0x2ca438(0x14a)](_0x26cadb=>{const _0x10ec9c=_0x2ca438,_0x36414d=_0x26cadb[_0x10ec9c(0x16b)];_0x36414d===_['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x10ec9c(0x16d)](_0x26cadb),_0x36414d===_[_0x10ec9c(0x46d)][_0x10ec9c(0x32b)]&&this[_0x10ec9c(0x154)](_0x26cadb);}),this[_0x2ca438(0x214)](this['_commandService'][_0x2ca438(0x203)](_0x3416eb=>{const _0x40576a=_0x2ca438,_0xa7aac4=_0x3416eb['params'];_0xa7aac4!=null&&this[_0x40576a(0x31f)]&&_0x3416eb['id']===V[_0x40576a(0x34d)]['id']&&_0xa7aac4[_0x40576a(0x415)]===this[_0x40576a(0x333)]&&_0xa7aac4[_0x40576a(0x40a)]===!0x1&&this[_0x40576a(0x1c8)](_0xa7aac4[_0x40576a(0x4f0)]);})),this[_0x2ca438(0x3ae)][_0x2ca438(0x17a)][_0x2ca438(0x495)](v[_0x2ca438(0x256)](this[_0x2ca438(0x2fb)]))['subscribe'](_0x3ad70e=>{const _0xe2e7e9=_0x2ca438;if((_0x3ad70e==null?void 0x0:_0x3ad70e[_0xe2e7e9(0x333)])!==this[_0xe2e7e9(0x333)])return;const _0x53937e={'eventID':_['CollaborationEvent'][_0xe2e7e9(0x1c5)],'data':_0x3ad70e};this['_onCursorUpdate'](_0x53937e);}),this['disposeWithMe'](this[_0x2ca438(0x1a9)][_0x2ca438(0x203)](_0x4999b7=>{const _0x706025=_0x2ca438;if(_0x4999b7['params']==null)return;const _0x567874=_0x4999b7[_0x706025(0x1cf)];if(_0x4999b7['id']!==V[_0x706025(0x3f3)]['id']||_0x567874['unitId']!==this['unitID'])return;const _0x30a8cb={'id':_0x706025(0x320),'params':_0x567874},_0x1aeccb=this[_0x706025(0x3bf)];for(const [_0x5c2aad,_0x3c85b8]of _0x1aeccb){const _0x28dff1={'id':_0x706025(0x320),'params':{'unitId':this[_0x706025(0x333)],'actions':null,'textRanges':_0x3c85b8[_0x706025(0x4f0)]}},_0x2504e6=this[_0x706025(0x294)]['transformMutation'](_0x30a8cb,_0x28dff1,!0x1);if(_[_0x706025(0x39e)](_0x2504e6))throw _0x2504e6[_0x706025(0x533)];_0x1aeccb['set'](_0x5c2aad,{..._0x3c85b8,'ranges':_0x2504e6['m2Prime'][_0x706025(0x1cf)][_0x706025(0x22a)]});}queueMicrotask(()=>{const _0x5e36ee=_0x706025;this[_0x5e36ee(0x4b6)]['next'](_0x1aeccb);});})));}['_onCursorUpdate'](_0x1be388){const _0x5ada33=_0x28eb85;var _0x2cdb19,_0x340432;const {memberID:_0x482cff,selection:_0x217fea}=_0x1be388[_0x5ada33(0x451)],_0x158a00=Us(_0x217fea),_0x544a14=(_0x340432=(_0x2cdb19=this['_memberService']['getMember'](this['unitID'],_0x482cff))==null?void 0x0:_0x2cdb19[_0x5ada33(0x309)])!=null?_0x340432:_0x5ada33(0x536),_0x1ca038={'color':this[_0x5ada33(0x321)]['assignAColorForMemberID'](_0x482cff),'name':_0x544a14,'ranges':_0x158a00},_0x1610c6=this[_0x5ada33(0x3bf)];_0x1610c6['set'](_0x482cff,_0x1ca038),this['_cursorInfo$'][_0x5ada33(0x3fd)](_0x1610c6);}[_0x28eb85(0x154)](_0x591108){const _0x16f404=_0x28eb85,{memberID:_0x7651f9}=_0x591108['data'],_0x4c22e3=this[_0x16f404(0x3bf)];_0x4c22e3['delete'](_0x7651f9),this[_0x16f404(0x4b6)]['next'](_0x4c22e3);}[_0x28eb85(0x48b)](){const _0x5b01ce=_0x28eb85;var _0x360a1d;if(this[_0x5b01ce(0x31f)]=!0x0,((_0x360a1d=this[_0x5b01ce(0x357)]['getFocusedUnit']())==null?void 0x0:_0x360a1d['getUnitId']())!==this['unitID'])return;const _0x2ed58b=this['_injector'][_0x5b01ce(0x30d)](V[_0x5b01ce(0x3e2)])['getDocRanges']();Array['isArray'](_0x2ed58b)&&_0x2ed58b[_0x5b01ce(0x355)]>0x0&&this['_updateLocalCursor'](_0x2ed58b);}['_toggleOffline'](){const _0x538dd9=_0x28eb85;this[_0x538dd9(0x31f)]=!0x1;}};$e=Gs([K(0x2,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),K(0x3,a[_0x28eb85(0x23f)](Xe)),K(0x4,a[_0x28eb85(0x23f)](q)),K(0x5,a[_0x28eb85(0x23f)](Ye)),K(0x6,_[_0x28eb85(0x2b4)]),K(0x7,a[_0x28eb85(0x286)]),K(0x8,a['ICommandService'])],$e);var Xs=Object[_0x28eb85(0x114)],qs=Object[_0x28eb85(0x38b)],zs=(_0xb17073,_0x2f5e65,_0x2d34f0,_0x5c99a1)=>{const _0x396249=_0x28eb85;for(var _0x29470a=_0x5c99a1>0x1?void 0x0:_0x5c99a1?qs(_0x2f5e65,_0x2d34f0):_0x2f5e65,_0x4fdd50=_0xb17073[_0x396249(0x355)]-0x1,_0x4197c4;_0x4fdd50>=0x0;_0x4fdd50--)(_0x4197c4=_0xb17073[_0x4fdd50])&&(_0x29470a=(_0x5c99a1?_0x4197c4(_0x2f5e65,_0x2d34f0,_0x29470a):_0x4197c4(_0x29470a))||_0x29470a);return _0x5c99a1&&_0x29470a&&Xs(_0x2f5e65,_0x2d34f0,_0x29470a),_0x29470a;},Q=(_0x3a6299,_0x5d465c)=>(_0x442038,_0x3eca4a)=>_0x5d465c(_0x442038,_0x3eca4a,_0x3a6299);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x48e72e=[],_0x329413=!0x1;return _0x2d0738=>{const _0x335164=_0xb2fc;_0x48e72e[_0x335164(0x3f4)](_0x2d0738),_0x329413||(_0x329413=!0x0,setTimeout(()=>{const _0x5d2b0d=_0x335164;_0x48e72e[_0x5d2b0d(0x2bf)](_0x199c31=>_0x199c31()),_0x48e72e=[],_0x329413=!0x1;}));};};let He=class extends a[_0x28eb85(0x2f9)]{constructor(_0xa7aca7,_0x2e48c6,_0x3e492b,_0x1d24ea,_0x2984d3,_0xb85a2c,_0x201800,_0x475e12){const _0x4ace8d=_0x28eb85;super(),d(this,_0x4ace8d(0x31f),!0x1),d(this,_0x4ace8d(0x3e8),!0x1),d(this,_0x4ace8d(0x4b6),new v[(_0x4ace8d(0x276))](new Map())),d(this,_0x4ace8d(0x250),this[_0x4ace8d(0x4b6)][_0x4ace8d(0x291)]()),d(this,_0x4ace8d(0x1b2),new v[(_0x4ace8d(0x276))]([])),d(this,_0x4ace8d(0x327),this[_0x4ace8d(0x1b2)]['pipe'](v[_0x4ace8d(0x425)](Js))),d(this,_0x4ace8d(0x1c8),a[_0x4ace8d(0x349)]((_0x222076,_0x53f318)=>{const _0x220365=_0x4ace8d,_0x18c1fe={'eventID':_[_0x220365(0x46d)][_0x220365(0x1c5)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x220365(0x2e4)](),'selection':Je[_0x220365(0x389)](_0x222076,_0x53f318['range'])}};this[_0x220365(0x1f3)][_0x220365(0x178)](_0x18c1fe,this[_0x220365(0x333)]);},Zs)),(this[_0x4ace8d(0x333)]=_0xa7aca7,this['_session']=_0x2e48c6,this[_0x4ace8d(0x152)]=_0x3e492b,this[_0x4ace8d(0x321)]=_0x1d24ea,this[_0x4ace8d(0x4c9)]=_0x2984d3,this['_univerInstanceService']=_0xb85a2c,this[_0x4ace8d(0x1a9)]=_0x201800,this[_0x4ace8d(0x165)]=_0x475e12);}get[_0x28eb85(0x3bf)](){const _0x4f1f27=_0x28eb85;return this[_0x4f1f27(0x4b6)][_0x4f1f27(0x4d6)]();}get[_0x28eb85(0x4cc)](){const _0x1b3c65=_0x28eb85;return this[_0x1b3c65(0x1b2)]['getValue']();}[_0x28eb85(0x347)](){const _0x344224=_0x28eb85;super['dispose'](),this[_0x344224(0x4b6)][_0x344224(0x3fd)](new Map()),this[_0x344224(0x4b6)]['complete'](),this[_0x344224(0x1b2)][_0x344224(0x3fd)]([]),this[_0x344224(0x1b2)][_0x344224(0x500)]();}[_0x28eb85(0x504)](){const _0x3fcfcb=_0x28eb85;this[_0x3fcfcb(0x3e8)]||(this['_init']=!0x0,this['_session'][_0x3fcfcb(0x194)][_0x3fcfcb(0x495)](v[_0x3fcfcb(0x256)](this['dispose$']))[_0x3fcfcb(0x14a)](_0x47fcb5=>{const _0x2a5185=_0x3fcfcb;_0x47fcb5===$[_0x2a5185(0x47d)]?this[_0x2a5185(0x48b)]():this[_0x2a5185(0x4a0)]();}),this[_0x3fcfcb(0x1f3)][_0x3fcfcb(0x476)][_0x3fcfcb(0x495)](v[_0x3fcfcb(0x256)](this[_0x3fcfcb(0x2fb)]))[_0x3fcfcb(0x14a)](_0x59f2a2=>{const _0x1a9597=_0x3fcfcb,_0x22c889=_0x59f2a2[_0x1a9597(0x16b)];_0x22c889===_[_0x1a9597(0x46d)][_0x1a9597(0x1c5)]&&this['_onCursorUpdate'](_0x59f2a2),_0x22c889===_[_0x1a9597(0x46d)][_0x1a9597(0x32b)]&&this[_0x1a9597(0x154)](_0x59f2a2);}),this['_onRefRangeChange'](),this[_0x3fcfcb(0x214)](this['_commandService'][_0x3fcfcb(0x203)](_0x29b173=>{const _0x10bf6d=_0x3fcfcb;if(this['_online']&&_0x29b173['id']===C['SetSelectionsOperation']['id']&&_0x29b173[_0x10bf6d(0x1cf)][_0x10bf6d(0x415)]===this[_0x10bf6d(0x333)]){const _0x13c9a9=_0x29b173[_0x10bf6d(0x1cf)];this['_updateLocalCursor'](_0x13c9a9[_0x10bf6d(0x2a8)],_0x13c9a9[_0x10bf6d(0x3c9)][0x0]);}})));}[_0x28eb85(0x16d)](_0x4a81ad){const _0x21d1f0=_0x28eb85;var _0x3cb599,_0x52427a;const {memberID:_0x4dcfbd,selection:_0x15ff05}=_0x4a81ad[_0x21d1f0(0x451)],{sheetName:_0x484d4b,range:_0x3eaa24}=Je[_0x21d1f0(0x24d)](_0x15ff05),_0x5364fa={'name':(_0x52427a=(_0x3cb599=this[_0x21d1f0(0x4c9)][_0x21d1f0(0x4f6)](this['unitID'],_0x4dcfbd))==null?void 0x0:_0x3cb599[_0x21d1f0(0x309)])!=null?_0x52427a:_0x21d1f0(0x536),'range':this[_0x21d1f0(0x2b1)](_0x484d4b,_0x3eaa24),'sheetID':_0x484d4b,'color':this['_colorAssignService'][_0x21d1f0(0x196)](_0x4dcfbd),'selection':_0x15ff05},_0x440ed4=this[_0x21d1f0(0x3bf)];_0x440ed4['set'](_0x4dcfbd,_0x5364fa),this[_0x21d1f0(0x4b6)][_0x21d1f0(0x3fd)](_0x440ed4);}[_0x28eb85(0x154)](_0x303f68){const _0x4431fc=_0x28eb85,{memberID:_0x725735}=_0x303f68[_0x4431fc(0x451)],_0x487a25=this[_0x4431fc(0x3bf)];_0x487a25[_0x4431fc(0x25f)](_0x725735),this[_0x4431fc(0x4b6)][_0x4431fc(0x3fd)](_0x487a25);}[_0x28eb85(0x2b1)](_0x3c096e,_0x511d77){const _0x1dc48a=_0x28eb85;var _0x4b1f51,_0x42e72c;const _0xd12b8e=(_0x42e72c=(_0x4b1f51=this[_0x1dc48a(0x357)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x4b1f51[_0x1dc48a(0x3c7)](_0x3c096e))==null?void 0x0:_0x42e72c[_0x1dc48a(0x4d2)]();return(_0xd12b8e==null?void 0x0:_0xd12b8e[_0x1dc48a(0x4ff)](_0xa359ec=>a['Rectangle']['contains'](_0xa359ec,_0x511d77)))||_0x511d77;}['_onRefRangeChange'](){const _0x2f686b=_0x28eb85,_0x5dcc8e=new a['DisposableCollection'](),_0x15a092=Qs(),_0x282408=()=>{const _0x57134f=_0xb2fc;_0x5dcc8e[_0x57134f(0x347)]();const _0xa7777=(_0x8169d2,_0x4728e1,_0x30843c,_0x380b92)=>{const _0x54efbc=_0x57134f;let _0x32a3fb=[];switch(_0x8169d2['id']){case C[_0x54efbc(0x47b)][_0x54efbc(0x3da)]:{_0x32a3fb=C['handleDeleteRangeMoveLeft'](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x3f8)]:{_0x32a3fb=C[_0x54efbc(0x2c3)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x1c2)]:{_0x32a3fb=C[_0x54efbc(0x4a4)](_0x8169d2,_0x380b92);break;}case C['EffectRefRangId'][_0x54efbc(0x18a)]:{_0x32a3fb=C[_0x54efbc(0x26d)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)]['InsertRangeMoveRightCommandId']:{_0x32a3fb=C[_0x54efbc(0x348)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)]['InsertRowCommandId']:{_0x32a3fb=C['handleInsertRow'](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x2c9)]:{_0x32a3fb=C[_0x54efbc(0x526)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x235)]:{_0x32a3fb=C[_0x54efbc(0x19a)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x135)]:{_0x32a3fb=C[_0x54efbc(0x444)](_0x8169d2,_0x380b92);break;}}const _0x5ba2b0=C[_0x54efbc(0x13b)](_0x32a3fb,_0x380b92),_0x16da01=this['cursorInfo'][_0x54efbc(0x30d)](_0x4728e1);if(_0x16da01&&_0x5ba2b0){const _0x99d88e={..._0x16da01,'range':_0x5ba2b0};this[_0x54efbc(0x3bf)][_0x54efbc(0x191)](_0x4728e1,_0x99d88e),_0x15a092(()=>{const _0x88ab17=_0x54efbc,_0x541496=this[_0x88ab17(0x165)]['registerRefRange'](_0x5ba2b0,_0xf55875=>(_0x541496[_0x88ab17(0x347)](),_0xa7777(_0xf55875,_0x4728e1,_0x30843c,_0x5ba2b0)));_0x5dcc8e[_0x88ab17(0x4e1)](_0x541496);});}return{'redos':[],'undos':[]};};this[_0x57134f(0x3bf)][_0x57134f(0x2bf)]((_0x59030e,_0x32cbc6)=>{const _0x36a108=_0x57134f,{range:_0x4ca5df,sheetID:_0x42185c}=_0x59030e,_0x1dbcd3=this[_0x36a108(0x165)][_0x36a108(0x1bb)](_0x4ca5df,_0x18e6ca=>(_0x1dbcd3[_0x36a108(0x347)](),_0xa7777(_0x18e6ca,_0x32cbc6,_0x42185c,_0x4ca5df)));_0x5dcc8e['add'](_0x1dbcd3);});};this['disposeWithMe'](a[_0x2f686b(0x40e)](this[_0x2f686b(0x4b6)]['subscribe'](()=>{_0x282408();})));}[_0x28eb85(0x48b)](){const _0x22f1ed=_0x28eb85;var _0x4b5437,_0xca6a92;if(this[_0x22f1ed(0x31f)]=!0x0,((_0x4b5437=this[_0x22f1ed(0x357)][_0x22f1ed(0x48c)]())==null?void 0x0:_0x4b5437[_0x22f1ed(0x270)]())!==this[_0x22f1ed(0x333)])return;const _0x3e79c1=(_0xca6a92=this[_0x22f1ed(0x152)][_0x22f1ed(0x30d)](C[_0x22f1ed(0x29a)])[_0x22f1ed(0x157)]())==null?void 0x0:_0xca6a92[0x0],_0x938b41=this[_0x22f1ed(0x357)][_0x22f1ed(0x3d5)](a[_0x22f1ed(0x24a)][_0x22f1ed(0x384)])['getActiveSheet']();_0x3e79c1&&_0x938b41&&this[_0x22f1ed(0x1c8)](_0x938b41[_0x22f1ed(0x1b5)](),_0x3e79c1);}[_0x28eb85(0x4a0)](){const _0x4b867a=_0x28eb85;this[_0x4b867a(0x31f)]=!0x1;}};He=zs([Q(0x2,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x28eb85(0x23f)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x28eb85(0x1b0)]),Q(0x7,a[_0x28eb85(0x23f)](C['RefRangeService']))],He);var ei=Object[_0x28eb85(0x114)],ti=Object[_0x28eb85(0x38b)],si=(_0x3d459c,_0x408514,_0x4a59b6,_0x562d53)=>{const _0x3a0e5d=_0x28eb85;for(var _0x16852c=_0x562d53>0x1?void 0x0:_0x562d53?ti(_0x408514,_0x4a59b6):_0x408514,_0x10638d=_0x3d459c[_0x3a0e5d(0x355)]-0x1,_0x57d8f8;_0x10638d>=0x0;_0x10638d--)(_0x57d8f8=_0x3d459c[_0x10638d])&&(_0x16852c=(_0x562d53?_0x57d8f8(_0x408514,_0x4a59b6,_0x16852c):_0x57d8f8(_0x16852c))||_0x16852c);return _0x562d53&&_0x16852c&&ei(_0x408514,_0x4a59b6,_0x16852c),_0x16852c;},Pe=(_0x4113d4,_0x593015)=>(_0x33f2c4,_0x487788)=>_0x593015(_0x33f2c4,_0x487788,_0x4113d4);let ie=class extends a[_0x28eb85(0x2f9)]{constructor(_0x4eda9d,_0x352c39,_0x2e5a6e){const _0x192159=_0x28eb85;super(),d(this,_0x192159(0x3ea),new Map()),d(this,_0x192159(0x392),new v[(_0x192159(0x1ec))]()),(this[_0x192159(0x357)]=_0x4eda9d,this['_injector']=_0x352c39,this[_0x192159(0x3ad)]=_0x2e5a6e,this[_0x192159(0x3e8)]());}[_0x28eb85(0x347)](){const _0xc0fd1=_0x28eb85;super[_0xc0fd1(0x347)](),this[_0xc0fd1(0x392)][_0xc0fd1(0x500)](),this['_entities'][_0xc0fd1(0x2bf)](_0x14b208=>_0x14b208[_0xc0fd1(0x347)]());}[_0x28eb85(0x1d8)](_0x23433c){const _0x5b5f62=_0x28eb85;return this[_0x5b5f62(0x3ea)]['has'](_0x23433c)?this[_0x5b5f62(0x3ea)][_0x5b5f62(0x30d)](_0x23433c)['cursorInfo$']:this[_0x5b5f62(0x392)]['pipe'](v[_0x5b5f62(0x215)](_0x2b26f9=>_0x2b26f9[_0x5b5f62(0x333)]===_0x23433c),v[_0x5b5f62(0x364)](_0x8e3b69=>_0x8e3b69[_0x5b5f62(0x250)]));}[_0x28eb85(0x3e8)](){const _0x255f74=_0x28eb85;this[_0x255f74(0x357)][_0x255f74(0x1ba)](a[_0x255f74(0x24a)][_0x255f74(0x384)])['pipe'](v[_0x255f74(0x256)](this['dispose$']))['subscribe'](async _0x37e686=>{const _0x128193=_0x255f74,_0x42797f=_0x37e686[_0x128193(0x270)](),_0x228ced=await this[_0x128193(0x469)](_0x42797f);this[_0x128193(0x392)][_0x128193(0x3fd)](_0x228ced),this[_0x128193(0x3ea)][_0x128193(0x191)](_0x42797f,_0x228ced);}),this['_univerInstanceService'][_0x255f74(0x1ba)](a[_0x255f74(0x24a)]['UNIVER_DOC'])[_0x255f74(0x495)](v[_0x255f74(0x256)](this[_0x255f74(0x2fb)]))[_0x255f74(0x495)](v[_0x255f74(0x215)](_0x53a98e=>!_0x53a98e['getUnitId']()[_0x255f74(0x4f9)]('__')))[_0x255f74(0x14a)](async _0x59fc94=>{const _0x4f6688=_0x255f74,_0x30740d=_0x59fc94[_0x4f6688(0x270)](),_0x37de98=await this['_startDocCollabCursor'](_0x30740d);this[_0x4f6688(0x392)][_0x4f6688(0x3fd)](_0x37de98),this[_0x4f6688(0x3ea)][_0x4f6688(0x191)](_0x30740d,_0x37de98);}),v[_0x255f74(0x1ea)](this[_0x255f74(0x357)][_0x255f74(0x1da)](a[_0x255f74(0x24a)][_0x255f74(0x43a)]),this[_0x255f74(0x357)][_0x255f74(0x1da)](a[_0x255f74(0x24a)][_0x255f74(0x384)]))[_0x255f74(0x495)](v[_0x255f74(0x256)](this['dispose$']))[_0x255f74(0x14a)](_0x588a13=>{const _0x51c21e=_0x255f74,_0x1621ad=_0x588a13[_0x51c21e(0x270)](),_0x3bf652=this['_entities'][_0x51c21e(0x30d)](_0x1621ad);_0x3bf652&&(_0x3bf652[_0x51c21e(0x347)](),this[_0x51c21e(0x3ea)]['delete'](_0x1621ad));});}async['_startSheetCollabCursor'](_0x3a57b){const _0x93d6df=_0x28eb85,_0x49bf77=await this[_0x93d6df(0x3ad)][_0x93d6df(0x123)](_0x3a57b),_0xd55f07=this[_0x93d6df(0x152)][_0x93d6df(0x2e6)](He,_0x3a57b,_0x49bf77);return _0xd55f07['init'](),_0xd55f07;}async[_0x28eb85(0x372)](_0x38048b){const _0x373d78=_0x28eb85,_0x72ee92=await this[_0x373d78(0x3ad)][_0x373d78(0x123)](_0x38048b),_0x26aeb3=this[_0x373d78(0x152)][_0x373d78(0x2e6)]($e,_0x38048b,_0x72ee92);return _0x26aeb3[_0x373d78(0x504)](),_0x26aeb3;}};ie=si([Pe(0x0,a[_0x28eb85(0x286)]),Pe(0x1,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Pe(0x2,a['Inject'](exports['CollaborationSessionService']))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x18751e,_0x474091){const _0x420904=_0x28eb85;let {radius:_0x3d57da,width:_0x5701a0,height:_0x46ea20}=_0x474091;_0x3d57da=_0x3d57da!=null?_0x3d57da:0x0,_0x5701a0=_0x5701a0!=null?_0x5701a0:0x1e,_0x46ea20=_0x46ea20!=null?_0x46ea20:0x1e;let _0x4fe1a1=0x0,_0x53ed90=0x0,_0x7d3385=0x0;_0x4fe1a1=_0x53ed90=_0x7d3385=Math['min'](_0x3d57da,_0x5701a0/0x2,_0x46ea20/0x2),_0x18751e['beginPath'](),_0x18751e[_0x420904(0x484)](_0x4fe1a1,0x0),_0x18751e[_0x420904(0x3c1)](_0x5701a0-_0x53ed90,0x0),_0x18751e[_0x420904(0x1f8)](_0x5701a0-_0x53ed90,_0x53ed90,_0x53ed90,Math['PI']*0x3/0x2,0x0,!0x1),_0x18751e[_0x420904(0x3c1)](_0x5701a0,_0x46ea20-_0x7d3385),_0x18751e[_0x420904(0x1f8)](_0x5701a0-_0x7d3385,_0x46ea20-_0x7d3385,_0x7d3385,0x0,Math['PI']/0x2,!0x1),_0x18751e[_0x420904(0x3c1)](0x0,_0x46ea20),_0x18751e[_0x420904(0x3c1)](0x0,_0x4fe1a1),_0x18751e[_0x420904(0x1f8)](_0x4fe1a1,_0x4fe1a1,_0x4fe1a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x18751e[_0x420904(0x462)](),_0x474091['fill']&&(_0x18751e['save'](),_0x18751e[_0x420904(0x221)]=_0x474091[_0x420904(0x312)],_0x474091[_0x420904(0x2b8)]===_0x420904(0x390)?_0x18751e['fill'](_0x420904(0x390)):_0x18751e['fill'](),_0x18751e[_0x420904(0x4b3)]());}class Te extends R[_0x28eb85(0x1ac)]{constructor(_0x53a912,_0x497524){const _0x2987f4=_0x28eb85;super(_0x53a912,_0x497524),d(this,_0x2987f4(0x362)),d(this,_0x2987f4(0x201)),(this[_0x2987f4(0x362)]=_0x497524==null?void 0x0:_0x497524[_0x2987f4(0x362)],this[_0x2987f4(0x201)]=_0x497524==null?void 0x0:_0x497524['text']);}static['drawWith'](_0xb0874f,_0xd22fd4){const _0x1cf8a5=_0x28eb85,{text:_0x28d385,color:_0x58540b}=_0xd22fd4;_0xb0874f['save'](),_0xb0874f[_0x1cf8a5(0x491)]=_0x1cf8a5(0x505);const _0x42fa01=_0xb0874f[_0x1cf8a5(0x2b7)](_0x28d385)[_0x1cf8a5(0x43c)],_0x658a42=Math[_0x1cf8a5(0x445)](_0x42fa01+0x2*we,rt);ni(_0xb0874f,{'height':ue,'radius':0x4,'width':_0x658a42,'fill':_0x58540b,'evented':!0x1}),_0xb0874f['fillStyle']=_0x1cf8a5(0x1c1);const _0x15b025=we,_0x2ae7ca=ue-ii,_0x290806=rt-0x2*we;if(_0x42fa01>_0x290806){let _0x5a656d='',_0x4f28b1=0x0;for(const _0x3538cc of _0x28d385){const _0x40a251=_0xb0874f[_0x1cf8a5(0x2b7)](_0x3538cc)[_0x1cf8a5(0x43c)];if(_0x4f28b1+_0x40a251<=_0x290806-_0xb0874f['measureText'](_0x1cf8a5(0x23b))[_0x1cf8a5(0x43c)])_0x5a656d+=_0x3538cc,_0x4f28b1+=_0x40a251;else{_0x5a656d+='...';break;}}_0xb0874f['fillText'](_0x5a656d,_0x15b025,_0x2ae7ca);}else _0xb0874f[_0x1cf8a5(0x4a7)](_0x28d385,_0x15b025,_0x2ae7ca);_0xb0874f[_0x1cf8a5(0x4b3)]();}[_0x28eb85(0x19d)](_0x283657){const _0x4e36ea=_0x28eb85;Te[_0x4e36ea(0x265)](_0x283657,this);}}const Me=_0x28eb85(0x419),ri=_0x28eb85(0x22e),oi=_0x28eb85(0x24e),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x28eb85(0x467);class ot{constructor(_0x44e057,_0x26c655,_0xdea099,_0x443938){const _0x5af627=_0x28eb85;d(this,_0x5af627(0x2aa),[]),d(this,'_anchor',null),d(this,_0x5af627(0x1f4),null),d(this,_0x5af627(0x367),null),d(this,_0x5af627(0x328),null),d(this,'_eventUnsubscribe',null),(this[_0x5af627(0x295)]=_0x44e057,this['_scene']=_0x26c655,this[_0x5af627(0x151)]=_0xdea099,this[_0x5af627(0x43e)]=_0x443938,this['_render']());}set[_0x28eb85(0x2df)](_0xe6a952){const _0x1dbfae=_0x28eb85;_0xe6a952?(this[_0x1dbfae(0x367)]&&this[_0x1dbfae(0x367)]['hide'](),this[_0x1dbfae(0x1f4)]&&this[_0x1dbfae(0x1f4)][_0x1dbfae(0x2bd)]()):(this[_0x1dbfae(0x367)]&&this[_0x1dbfae(0x367)]['show'](),this[_0x1dbfae(0x1f4)]&&this[_0x1dbfae(0x1f4)][_0x1dbfae(0x211)]());}['dispose'](){const _0x56747c=_0x28eb85;for(const _0x1c612f of this['_shapes'])_0x1c612f[_0x56747c(0x347)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x56747c(0x367)]&&this[_0x56747c(0x367)]['dispose'](),this[_0x56747c(0x3e3)]&&this[_0x56747c(0x3e3)][_0x56747c(0x347)](),this['_eventUnsubscribe']&&this[_0x56747c(0x16a)]();}['_render'](){const _0x2ffa20=_0x28eb85;var _0x4f4b50;const {_docSkeleton:_0x38ffc3,_document:_0x193ca1}=this,{color:_0x38f5e3,name:_0x557bac,ranges:_0x22929b}=this[_0x2ffa20(0x295)],_0x48f31a=_0x193ca1['getOffsetConfig'](),{docsLeft:_0x20bedc,docsTop:_0xea2e0e}=_0x48f31a,_0x3b60b6=new w['NodePositionConvertToCursor'](_0x48f31a,_0x38ffc3);for(const {startOffset:_0xb49ca4,endOffset:_0x52022c,collapsed:_0x518c58,isActive:_0x342d5f}of _0x22929b){const _0x324994=_0x38ffc3[_0x2ffa20(0x337)](_0xb49ca4),_0x3fc934=_0x38ffc3[_0x2ffa20(0x337)](_0x52022c);if(_0x342d5f){const {contentBoxPointGroup:_0x39b9af}=_0x3b60b6[_0x2ffa20(0x377)](_0x3fc934,_0x3fc934);if(_0x39b9af[_0x2ffa20(0x355)]===0x0)continue;this[_0x2ffa20(0x498)](_0x38f5e3,_0x39b9af,_0x20bedc,_0xea2e0e,_0x557bac),this['_eventUnsubscribe']=this[_0x2ffa20(0x45c)]();}if(!_0x518c58&&_0x324994&&_0x3fc934){if(w['isValidRectRange'](_0x324994,_0x3fc934)){const _0x1253b7=new w[(_0x2ffa20(0x2e8))](_0x48f31a,_0x38ffc3),{pointGroup:_0x4457a7}=(_0x4f4b50=_0x1253b7[_0x2ffa20(0x377)](_0x324994,_0x3fc934))!=null?_0x4f4b50:{};if(_0x4457a7==null||_0x4457a7[_0x2ffa20(0x355)]===0x0)continue;this[_0x2ffa20(0x260)](_0x38f5e3,_0x4457a7,_0x20bedc,_0xea2e0e);}else{const {contentBoxPointGroup:_0x50b0af}=_0x3b60b6[_0x2ffa20(0x377)](_0x324994,_0x3fc934);if(_0x50b0af['length']===0x0)continue;this[_0x2ffa20(0x1f2)](_0x38f5e3,_0x50b0af,_0x20bedc,_0xea2e0e);}}}}[_0x28eb85(0x498)](_0x35dc6e,_0x86a6f9,_0x230d47,_0x40aedf,_0x4f7032){const _0x4c9f33=_0x28eb85,_0x24b4cb=this[_0x4c9f33(0x166)](_0x86a6f9),{left:_0x98f147,top:_0x1d88f4,height:_0x884c6e}=_0x24b4cb,_0x4ce829=this[_0x4c9f33(0x198)](),_0x1357c4=ci/_0x4ce829,_0x59494d=new R[(_0x4c9f33(0x2ff))](Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf,'height':_0x884c6e,'width':ai,'fill':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)]['black'],0x0),'strokeWidth':_0x1357c4,'stroke':li,'evented':!0x0});this[_0x4c9f33(0x3e3)]=_0x59494d,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x59494d,w[_0x4c9f33(0x3df)]);const _0x255a3d=new R[(_0x4c9f33(0x2ff))](Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)][_0x4c9f33(0x2ed)],0x0),'strokeWidth':0x0,'stroke':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)]['black'],0x0),'evented':!0x1});this[_0x4c9f33(0x367)]=_0x255a3d,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x255a3d,w['TEXT_RANGE_LAYER_INDEX']);const _0x205f87=new Te(Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf-ue,'text':_0x4f7032,'color':_0x35dc6e});this[_0x4c9f33(0x1f4)]=_0x205f87,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x205f87,w[_0x4c9f33(0x3df)]),this[_0x4c9f33(0x2df)]=!0x1;}[_0x28eb85(0x45c)](){const _0x4966be=_0x28eb85,_0x6aa34e=this[_0x4966be(0x3e3)][_0x4966be(0x37e)][_0x4966be(0x417)](()=>{const _0x58d91c=_0x4966be;this[_0x58d91c(0x2df)]=!0x0;}),_0x575813=this[_0x4966be(0x3e3)][_0x4966be(0x285)][_0x4966be(0x417)](()=>{const _0x4a97db=_0x4966be;this['_hideTimer']&&clearTimeout(this[_0x4a97db(0x328)]),this[_0x4a97db(0x328)]=setTimeout(()=>{const _0x1e9508=_0x4a97db;this[_0x1e9508(0x2df)]=!0x1;},0x7d0);});return()=>{const _0x19b74b=_0x4966be;_0x6aa34e[_0x19b74b(0x181)](),_0x575813[_0x19b74b(0x181)]();};}[_0x28eb85(0x1f2)](_0x11bf4a,_0x3026a9,_0x395720,_0x21eafe){const _0x1cb571=_0x28eb85,_0x408fb6=new a[(_0x1cb571(0x44a))](_0x11bf4a)['setAlpha'](0.2)[_0x1cb571(0x46e)](),_0x2f757a=new R[(_0x1cb571(0x335))](ri+a[_0x1cb571(0x356)][_0x1cb571(0x517)](ce),{'pointsGroup':_0x3026a9,'fill':_0x408fb6||R[_0x1cb571(0x3a5)](a[_0x1cb571(0x1f7)][_0x1cb571(0x2ed)],0.2),'left':_0x395720,'top':_0x21eafe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cb571(0x2aa)][_0x1cb571(0x3f4)](_0x2f757a),this[_0x1cb571(0x3a7)][_0x1cb571(0x22f)](_0x2f757a,w['TEXT_RANGE_LAYER_INDEX']);}[_0x28eb85(0x260)](_0x4ad31a,_0x3bd080,_0x538f2d,_0x5299d6){const _0x153a39=_0x28eb85,_0x30234f=new a[(_0x153a39(0x44a))](_0x4ad31a)[_0x153a39(0x220)](0.2)[_0x153a39(0x46e)](),_0x137b14=new R[(_0x153a39(0x335))](oi+a['Tools'][_0x153a39(0x517)](ce),{'pointsGroup':_0x3bd080,'fill':_0x30234f||R[_0x153a39(0x3a5)](a['COLORS'][_0x153a39(0x2ed)],0.2),'left':_0x538f2d,'top':_0x5299d6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x153a39(0x2aa)][_0x153a39(0x3f4)](_0x137b14),this[_0x153a39(0x3a7)][_0x153a39(0x22f)](_0x137b14,w[_0x153a39(0x3df)]);}['_getAnchorBounding'](_0x47fcea){const _0x1201e5=_0x47fcea[0x0],_0xf61e25=_0x1201e5[0x0],_0x400680=_0x1201e5[0x2],{x:_0x2dd6dc,y:_0x7f33b4}=_0xf61e25,{x:_0x4a2cff,y:_0x227dca}=_0x400680;return{'left':_0x2dd6dc,'top':_0x7f33b4,'width':_0x4a2cff-_0x2dd6dc,'height':_0x227dca-_0x7f33b4};}[_0x28eb85(0x198)](){const _0x244265=_0x28eb85,{scaleX:_0x463231,scaleY:_0x38576a}=this[_0x244265(0x3a7)][_0x244265(0x37c)]();return Math['max'](_0x463231,_0x38576a);}}var hi=Object[_0x28eb85(0x114)],_i=Object[_0x28eb85(0x38b)],ui=(_0x2756c8,_0x38be7e,_0x4584a6,_0x5045e9)=>{const _0x1a79ee=_0x28eb85;for(var _0x5b6446=_0x5045e9>0x1?void 0x0:_0x5045e9?_i(_0x38be7e,_0x4584a6):_0x38be7e,_0x41f706=_0x2756c8[_0x1a79ee(0x355)]-0x1,_0x19eae8;_0x41f706>=0x0;_0x41f706--)(_0x19eae8=_0x2756c8[_0x41f706])&&(_0x5b6446=(_0x5045e9?_0x19eae8(_0x38be7e,_0x4584a6,_0x5b6446):_0x19eae8(_0x5b6446))||_0x5b6446);return _0x5045e9&&_0x5b6446&&hi(_0x38be7e,_0x4584a6,_0x5b6446),_0x5b6446;},de=(_0x40d6af,_0x20d0d9)=>(_0x392c21,_0x191d7a)=>_0x20d0d9(_0x392c21,_0x191d7a,_0x40d6af);let xe=class extends a[_0x28eb85(0x2f9)]{constructor(_0x2cb48a,_0x404061,_0xb7fb72,_0x272026,_0x4eb9ef){const _0x22fe1a=_0x28eb85;super(),d(this,_0x22fe1a(0x3f7),[]),d(this,_0x22fe1a(0x371),[]),(this['_context']=_0x2cb48a,this[_0x22fe1a(0x30f)]=_0x404061,this[_0x22fe1a(0x387)]=_0xb7fb72,this[_0x22fe1a(0x1a9)]=_0x272026,this[_0x22fe1a(0x120)]=_0x4eb9ef,this['_init']());}[_0x28eb85(0x3e8)](){const _0x13e21c=_0x28eb85,_0x7b1432=this[_0x13e21c(0x2fd)][_0x13e21c(0x415)],_0x933d3b=this[_0x13e21c(0x30f)];this[_0x13e21c(0x214)](v[_0x13e21c(0x35f)]([this['_collabCursorController']['getCollabCursors$'](_0x7b1432),this[_0x13e21c(0x120)]['currentTheme$']])['pipe'](E[_0x13e21c(0x331)](([_0x578252,_0x19cea3])=>({'skeleton':_0x933d3b[_0x13e21c(0x3cc)](),'cursors':[..._0x578252[_0x13e21c(0x298)]()][_0x13e21c(0x456)](_0x7fe4e=>({..._0x7fe4e,'color':_0x19cea3[_0x7fe4e['color']]}))})))[_0x13e21c(0x14a)](_0x44590b=>{const _0x3557ee=_0x13e21c;if(this[_0x3557ee(0x340)](),_0x44590b){const {skeleton:_0x47d7b6,cursors:_0x559e70}=_0x44590b;this[_0x3557ee(0x450)](_0x47d7b6,_0x559e70);}})),this[_0x13e21c(0x3b1)](),this[_0x13e21c(0x3e0)]();}[_0x28eb85(0x450)](_0x53cf0a,_0x2f79a1){const _0x30f170=_0x28eb85,{scene:_0x227f04,mainComponent:_0x5a758a}=this[_0x30f170(0x2fd)],_0x33bcba=_0x2f79a1[_0x30f170(0x331)](_0xef89f5=>new ot(_0xef89f5,_0x227f04,_0x53cf0a,_0x5a758a));this[_0x30f170(0x3f7)]=_0x33bcba,this[_0x30f170(0x371)]=_0x2f79a1;}[_0x28eb85(0x1fc)](){const _0x7852b6=_0x28eb85;this[_0x7852b6(0x340)]();const {scene:_0x19e326,mainComponent:_0x3084f7}=this[_0x7852b6(0x2fd)],_0x387598=this[_0x7852b6(0x30f)][_0x7852b6(0x3cc)](),_0x20355b=this['_cursors'][_0x7852b6(0x331)](_0x123256=>new ot(_0x123256,_0x19e326,_0x387598,_0x3084f7));this[_0x7852b6(0x3f7)]=_0x20355b;}[_0x28eb85(0x340)](){const _0x2587c4=_0x28eb85;this[_0x2587c4(0x3f7)][_0x2587c4(0x2bf)](_0x31529f=>_0x31529f[_0x2587c4(0x347)]()),this[_0x2587c4(0x3f7)]=[];}[_0x28eb85(0x3e0)](){const _0x303b78=_0x28eb85,_0x1d8f79=[w[_0x303b78(0x400)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x3477c9=>{const _0x46631d=_0x303b78;_0x1d8f79[_0x46631d(0x2bb)](_0x3477c9['id'])&&_0x3477c9['params'][_0x46631d(0x415)]===this[_0x46631d(0x2fd)][_0x46631d(0x415)]&&this[_0x46631d(0x1fc)]();}));}[_0x28eb85(0x3b1)](){const _0x28023e=_0x28eb85;this[_0x28023e(0x214)](a[_0x28023e(0x3ba)](this[_0x28023e(0x2fd)][_0x28023e(0x39d)]['onTransformChange$'])[_0x28023e(0x495)](E[_0x28023e(0x215)](_0x4ae205=>_0x4ae205['type']===R[_0x28023e(0x200)]['resize']),E['throttleTime'](0x10))['subscribe'](()=>{const _0x56e6f1=_0x28023e;this[_0x56e6f1(0x1fc)]();}));}};xe=ui([de(0x1,a[_0x28eb85(0x23f)](V[_0x28eb85(0x44c)])),de(0x2,a[_0x28eb85(0x23f)](ie)),de(0x3,a[_0x28eb85(0x1b0)]),de(0x4,a['Inject'](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x28eb85(0x1ac)]{constructor(_0x5adb12,_0x4d3614){const _0x581370=_0x28eb85;super(_0x5adb12,_0x4d3614),d(this,_0x581370(0x506)),d(this,_0x581370(0x171),!0x1),d(this,_0x581370(0x3a2)),d(this,_0x581370(0x1dc),''),d(this,_0x581370(0x432),'top'),d(this,_0x581370(0x404)),(_0x4d3614&&this['setShapeProps'](_0x4d3614),this[_0x581370(0x37e)][_0x581370(0x417)](()=>this[_0x581370(0x396)]({'hovered':!0x0})),this[_0x581370(0x285)][_0x581370(0x417)](()=>this[_0x581370(0x396)]({'hovered':!0x1})));}['setShapeProps'](_0x4c89bc){const _0x8b537a=_0x28eb85;var _0x20608f,_0x43fd71,_0x15c5e9,_0x4ac5df,_0x1130fa,_0x46ff1e;this['_color']=(_0x20608f=_0x4c89bc[_0x8b537a(0x362)])!=null?_0x20608f:this[_0x8b537a(0x506)],this[_0x8b537a(0x171)]=(_0x43fd71=_0x4c89bc[_0x8b537a(0x414)])!=null?_0x43fd71:this[_0x8b537a(0x171)],this['_range']=(_0x15c5e9=_0x4c89bc[_0x8b537a(0x4ec)])!=null?_0x15c5e9:this[_0x8b537a(0x3a2)],this['_name']=(_0x4ac5df=_0x4c89bc['name'])!=null?_0x4ac5df:this['_name'],this[_0x8b537a(0x432)]=(_0x1130fa=_0x4c89bc[_0x8b537a(0x528)])!=null?_0x1130fa:this['_labelPosition'],this[_0x8b537a(0x404)]=(_0x46ff1e=_0x4c89bc[_0x8b537a(0x138)])!=null?_0x46ff1e:this[_0x8b537a(0x404)],this[_0x8b537a(0x3a1)]({'width':_0x4c89bc[_0x8b537a(0x43c)],'height':_0x4c89bc[_0x8b537a(0x1c0)]});}[_0x28eb85(0x259)](_0x136c1b){const _0x1fbde2=_0x28eb85,{row:_0x4ca0f7,column:_0x2e1cbd}=_0x136c1b;if(_0x4ca0f7>=this[_0x1fbde2(0x3a2)]['startRow']&&_0x4ca0f7<=this['_range'][_0x1fbde2(0x36c)]&&_0x2e1cbd>=this[_0x1fbde2(0x3a2)][_0x1fbde2(0x2eb)]&&_0x2e1cbd<=this[_0x1fbde2(0x3a2)][_0x1fbde2(0x26a)]){this[_0x1fbde2(0x396)]({'hovered':!0x0});return;}this[_0x1fbde2(0x396)]({'hovered':!0x1});}['triggerDblclick'](_0x38efaf){return!0x1;}[_0x28eb85(0x19d)](_0x5cd9fe){const _0xfde0ab=_0x28eb85;R[_0xfde0ab(0x2ff)][_0xfde0ab(0x265)](_0x5cd9fe,{'width':this[_0xfde0ab(0x43c)],'height':this[_0xfde0ab(0x1c0)],'strokeWidth':Si,'stroke':this[_0xfde0ab(0x506)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xfde0ab(0x171)]&&(_0x5cd9fe[_0xfde0ab(0x13d)](),_0x5cd9fe[_0xfde0ab(0x1fd)](0x1,0x0,0x0,0x1,this[_0xfde0ab(0x43c)],this[_0xfde0ab(0x432)]===_0xfde0ab(0x430)?0x0:-ue),Te[_0xfde0ab(0x265)](_0x5cd9fe,{'text':this[_0xfde0ab(0x1dc)],'color':this[_0xfde0ab(0x506)]}),_0x5cd9fe[_0xfde0ab(0x4b3)]());}}var vi=Object[_0x28eb85(0x114)],fi=Object[_0x28eb85(0x38b)],gi=(_0x4f4b32,_0x203832,_0x41c7ae,_0x5641a7)=>{const _0x3059d8=_0x28eb85;for(var _0x2d5871=_0x5641a7>0x1?void 0x0:_0x5641a7?fi(_0x203832,_0x41c7ae):_0x203832,_0x347716=_0x4f4b32[_0x3059d8(0x355)]-0x1,_0x5da51e;_0x347716>=0x0;_0x347716--)(_0x5da51e=_0x4f4b32[_0x347716])&&(_0x2d5871=(_0x5641a7?_0x5da51e(_0x203832,_0x41c7ae,_0x2d5871):_0x5da51e(_0x2d5871))||_0x2d5871);return _0x5641a7&&_0x2d5871&&vi(_0x203832,_0x41c7ae,_0x2d5871),_0x2d5871;},Ae=(_0x461ceb,_0x43ea2f)=>(_0x1322ca,_0x1574f7)=>_0x43ea2f(_0x1322ca,_0x1574f7,_0x461ceb);const mi=0x1389;let ke=class extends a[_0x28eb85(0x2f9)]{constructor(_0x181d57,_0x308f07,_0x126533,_0x538276){const _0x6e36ba=_0x28eb85;super(),d(this,_0x6e36ba(0x371),new Set()),d(this,_0x6e36ba(0x21a),null),(this['_context']=_0x181d57,this[_0x6e36ba(0x4a3)]=_0x308f07,this[_0x6e36ba(0x387)]=_0x126533,this[_0x6e36ba(0x120)]=_0x538276,this[_0x6e36ba(0x3e8)]());}[_0x28eb85(0x3e8)](){const _0x3c50e3=_0x28eb85;this['_sheetSkeletonManagerService'][_0x3c50e3(0x324)][_0x3c50e3(0x495)](E['takeUntil'](this[_0x3c50e3(0x2fb)]),E[_0x3c50e3(0x364)](_0xd20acd=>{const _0xbaeccf=_0x3c50e3;if(_0xd20acd){const _0xb26e33=_0xd20acd['sheetId'];return v[_0xbaeccf(0x35f)](this['_collabCursorController'][_0xbaeccf(0x1d8)](this[_0xbaeccf(0x2fd)][_0xbaeccf(0x415)]),this[_0xbaeccf(0x120)][_0xbaeccf(0x2e2)])[_0xbaeccf(0x495)](E[_0xbaeccf(0x331)](([_0x51e39d,_0x349b8f])=>{const _0x3368bc=new Map();return _0x51e39d['forEach']((_0xec4483,_0x4c6068)=>{const _0x38ecfb=_0xb2fc;if(_0xec4483[_0x38ecfb(0x28d)]===_0xb26e33){const _0x3a9d0b={..._0xec4483};_0x3a9d0b[_0x38ecfb(0x362)]=_0x349b8f[_0xec4483[_0x38ecfb(0x362)]],_0x3368bc[_0x38ecfb(0x191)](_0x4c6068,_0x3a9d0b);}}),{'skeleton':_0xd20acd,'cursors':_0x3368bc};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28564e,cursors:_0x1c9406})=>{const _0x559ea0=_0x3c50e3;this[_0x559ea0(0x340)](),_0x28564e&&this[_0x559ea0(0x450)](_0x28564e,_0x1c9406);}),this[_0x3c50e3(0x4a3)][_0x3c50e3(0x324)][_0x3c50e3(0x14a)](_0x209de4=>{const _0x5001d6=_0x3c50e3;if(_0x209de4==null)return;const {skeleton:_0x29a9de}=_0x209de4,{scene:_0x560b7b}=this['_context'];_0x560b7b[_0x5001d6(0x1a0)][_0x5001d6(0x417)](a[_0x5001d6(0x349)](_0x4b41cf=>{const _0x5785bf=_0x5001d6;var _0x1d4752,_0x5eecb2;const {offsetX:_0x1d7d32,offsetY:_0x114f24}=_0x4b41cf,{x:_0x37572b,y:_0x37a22f}=_0x560b7b['getRelativeToViewportCoord'](R[_0x5785bf(0x473)][_0x5785bf(0x149)]([_0x1d7d32,_0x114f24])),{scaleX:_0x47c644,scaleY:_0x2ceeaa}=_0x560b7b[_0x5785bf(0x37c)](),_0x4b3310=_0x560b7b[_0x5785bf(0x3b8)](te[_0x5785bf(0x172)][_0x5785bf(0x33f)]),_0x125380=_0x560b7b[_0x5785bf(0x239)](R[_0x5785bf(0x473)][_0x5785bf(0x149)]([_0x37572b,_0x37a22f]),_0x4b3310),_0x56381a=_0x29a9de[_0x5785bf(0x278)](_0x1d7d32,_0x114f24,_0x47c644,_0x2ceeaa,_0x125380);((_0x1d4752=this[_0x5785bf(0x21a)])==null?void 0x0:_0x1d4752[_0x5785bf(0x32e)])===_0x56381a['column']&&((_0x5eecb2=this[_0x5785bf(0x21a)])==null?void 0x0:_0x5eecb2[_0x5785bf(0x38f)])===_0x56381a['row']||this[_0x5785bf(0x371)][_0x5785bf(0x2bf)](_0x37d6b5=>{const _0xadf0fb=_0x5785bf;_0x37d6b5[_0xadf0fb(0x259)](_0x56381a);});},0x64));});}[_0x28eb85(0x450)](_0x3ac94e,_0x14db08){const _0x1c7727=_0x28eb85;var _0xaff1e0;const _0x22fe13=(_0xaff1e0=this[_0x1c7727(0x4a3)][_0x1c7727(0x3f0)]())==null?void 0x0:_0xaff1e0[_0x1c7727(0x46c)];if(!_0x22fe13)return;const _0x3be777=this[_0x1c7727(0x2c5)]();if(!_0x3be777)return;this[_0x1c7727(0x371)][_0x1c7727(0x2bf)](_0x428272=>{const _0x23b9a4=_0x1c7727;_0x428272[_0x23b9a4(0x1a3)]();});const {scene:_0x466e9a}=_0x3be777,_0x489753=Ii(Array['from'](_0x14db08['values']()))['map'](_0x185a08=>{const _0x11a889=_0x1c7727,{color:_0x3b84d6,range:_0x3eecdb,name:_0xcb214,selection:_0x2c8457,sheetID:_0x4b8bfb}=_0x185a08,{startColumn:_0x81bd4a,startRow:_0x2b61a7,endColumn:_0x1cf8b0,endRow:_0x3ec59f}=_0x3eecdb,_0x5c46bd=te[_0x11a889(0x49f)](_0x2b61a7,_0x81bd4a,_0x466e9a,_0x22fe13),_0x53e5ba=te[_0x11a889(0x49f)](_0x3ec59f,_0x1cf8b0,_0x466e9a,_0x22fe13),{columnHeaderHeightAndMarginTop:_0x28a30c}=_0x22fe13,{startX:_0x5e6c3d,startY:_0x5410b9}=_0x5c46bd,{endX:_0x21010b,endY:_0x1d344c}=_0x53e5ba,_0x4cfdb6=_0x21010b-_0x5e6c3d,_0x483e64=_0x1d344c-_0x5410b9,_0x442551={'labelPosition':_0x5410b9-_0x28a30c>=ue?_0x11a889(0x4a1):_0x11a889(0x430),'sheetID':_0x4b8bfb,'range':_0x3eecdb,'color':_0x3b84d6,'name':_0xcb214,'selection':_0x2c8457,'left':_0x5e6c3d,'top':_0x5410b9,'width':_0x4cfdb6,'height':_0x483e64,'evented':!0x1,'zIndex':mi};return new Ot(_0xcb214,_0x442551);});_0x466e9a[_0x1c7727(0x339)](_0x489753,di),this[_0x1c7727(0x371)]=new Set(_0x489753);}[_0x28eb85(0x340)](){const _0x354147=_0x28eb85;var _0x3f94fa;(_0x3f94fa=this[_0x354147(0x371)])==null||_0x3f94fa['forEach'](_0x2bd1a0=>_0x2bd1a0[_0x354147(0x347)]());}['_getSheetObject'](){const _0x2c7ab6=_0x28eb85;return te[_0x2c7ab6(0x2ce)](this['_context']['unit'],this[_0x2c7ab6(0x2fd)]);}};ke=gi([Ae(0x1,a[_0x28eb85(0x23f)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x31a)]))],ke);function Ii(_0xc7c1c5){const _0x199930=_0x28eb85,_0x13903a=new Map();return _0xc7c1c5[_0x199930(0x2bf)](_0x54a6f2=>{const _0x280937=_0x199930;if(_0x13903a[_0x280937(0x186)](_0x54a6f2[_0x280937(0x12d)])){const _0x31edde=_0x13903a[_0x280937(0x30d)](_0x54a6f2[_0x280937(0x12d)]);_0x31edde['name']+=',\x20'+_0x54a6f2[_0x280937(0x309)];}else _0x13903a[_0x280937(0x191)](_0x54a6f2[_0x280937(0x12d)],_0x54a6f2);}),Array[_0x199930(0x507)](_0x13903a[_0x199930(0x298)]());}function _0xb2fc(_0x54b07c,_0x50386d){const _0x59b631=_0x59b6();return _0xb2fc=function(_0xb2fc18,_0x35569a){_0xb2fc18=_0xb2fc18-0x113;let _0x57731f=_0x59b631[_0xb2fc18];return _0x57731f;},_0xb2fc(_0x54b07c,_0x50386d);}var M=function(){const _0x3bcb98=_0x28eb85;return M=Object['assign']||function(_0x5527a8){const _0x2b6a56=_0xb2fc;for(var _0x16b644,_0x1cd0f9=0x1,_0x24f514=arguments[_0x2b6a56(0x355)];_0x1cd0f9<_0x24f514;_0x1cd0f9++){_0x16b644=arguments[_0x1cd0f9];for(var _0x20d5bd in _0x16b644)Object[_0x2b6a56(0x197)][_0x2b6a56(0x44e)][_0x2b6a56(0x513)](_0x16b644,_0x20d5bd)&&(_0x5527a8[_0x20d5bd]=_0x16b644[_0x20d5bd]);}return _0x5527a8;},M[_0x3bcb98(0x47a)](this,arguments);},pi=function(_0x380019,_0x20e74e){const _0x546fef=_0x28eb85;var _0xf65b2e={};for(var _0x2a785d in _0x380019)Object['prototype'][_0x546fef(0x44e)][_0x546fef(0x513)](_0x380019,_0x2a785d)&&_0x20e74e[_0x546fef(0x4f5)](_0x2a785d)<0x0&&(_0xf65b2e[_0x2a785d]=_0x380019[_0x2a785d]);if(_0x380019!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x12312f=0x0,_0x2a785d=Object['getOwnPropertySymbols'](_0x380019);_0x12312f<_0x2a785d[_0x546fef(0x355)];_0x12312f++)_0x20e74e[_0x546fef(0x4f5)](_0x2a785d[_0x12312f])<0x0&&Object[_0x546fef(0x197)]['propertyIsEnumerable'][_0x546fef(0x513)](_0x380019,_0x2a785d[_0x12312f])&&(_0xf65b2e[_0x2a785d[_0x12312f]]=_0x380019[_0x2a785d[_0x12312f]]);}return _0xf65b2e;},qe=U[_0x28eb85(0x1cd)](function(_0x2dfd27,_0x161bd0){const _0x4f57b0=_0x28eb85;var _0xdbe633=_0x2dfd27['icon'],_0xc7613=_0x2dfd27['id'],_0x23a8bc=_0x2dfd27['className'],_0x5edaa9=_0x2dfd27[_0x4f57b0(0x217)],_0x96f194=pi(_0x2dfd27,['icon','id',_0x4f57b0(0x182),_0x4f57b0(0x217)]),_0xe0e815=_0x4f57b0(0x475)[_0x4f57b0(0x3db)](_0xc7613,'\x20')['concat'](_0x23a8bc||'')['trim'](),_0x356091=U[_0x4f57b0(0x297)]('_'[_0x4f57b0(0x3db)](bi()));return Dt(_0xdbe633,''[_0x4f57b0(0x3db)](_0xc7613),{'defIds':_0xdbe633[_0x4f57b0(0x516)],'idSuffix':_0x356091[_0x4f57b0(0x3d0)]},M({'ref':_0x161bd0,'className':_0xe0e815},_0x96f194),_0x5edaa9);});function Dt(_0x2bf7b3,_0x3f2334,_0xc6702a,_0x3e6862,_0x56359b){const _0x48a79e=_0x28eb85;return U[_0x48a79e(0x144)](_0x2bf7b3[_0x48a79e(0x2de)],M(M({'key':_0x3f2334},Ci(_0x2bf7b3,_0xc6702a,_0x56359b)),_0x3e6862),(Ei(_0x2bf7b3,_0xc6702a)[_0x48a79e(0x307)]||[])[_0x48a79e(0x331)](function(_0x25c8ab,_0x1cafda){const _0x3d5a7a=_0x48a79e;return Dt(_0x25c8ab,''[_0x3d5a7a(0x3db)](_0x3f2334,'-')[_0x3d5a7a(0x3db)](_0x2bf7b3['tag'],'-')[_0x3d5a7a(0x3db)](_0x1cafda),_0xc6702a,void 0x0,_0x56359b);}));}function Ci(_0x4b087c,_0x4890dc,_0x1534a1){const _0x4a5662=_0x28eb85;var _0x3c152=M({},_0x4b087c[_0x4a5662(0x378)]);_0x1534a1!=null&&_0x1534a1[_0x4a5662(0x3e4)]&&_0x3c152[_0x4a5662(0x312)]===_0x4a5662(0x3e4)&&(_0x3c152['fill']=_0x1534a1[_0x4a5662(0x3e4)]);var _0x10cb68=_0x4890dc[_0x4a5662(0x516)];return!_0x10cb68||_0x10cb68[_0x4a5662(0x355)]===0x0||(_0x4b087c[_0x4a5662(0x2de)]==='use'&&_0x3c152[_0x4a5662(0x460)]&&(_0x3c152[_0x4a5662(0x460)]=_0x3c152['xlink:href']+_0x4890dc['idSuffix']),Object['entries'](_0x3c152)['forEach'](function(_0x55b03a){const _0x42773f=_0x4a5662;var _0x579153=_0x55b03a[0x0],_0x377b4f=_0x55b03a[0x1];typeof _0x377b4f=='string'&&(_0x3c152[_0x579153]=_0x377b4f['replace'](/url\(#(.*)\)/,_0x42773f(0x40f)[_0x42773f(0x3db)](_0x4890dc[_0x42773f(0x205)],')')));})),_0x3c152;}function Ei(_0x257445,_0x4f8e8d){const _0x293f9f=_0x28eb85;var _0x4cdff7,_0x6a8fd3=_0x4f8e8d[_0x293f9f(0x516)];return!_0x6a8fd3||_0x6a8fd3['length']===0x0?_0x257445:_0x257445[_0x293f9f(0x2de)]===_0x293f9f(0x1a6)&&(!((_0x4cdff7=_0x257445[_0x293f9f(0x307)])===null||_0x4cdff7===void 0x0)&&_0x4cdff7[_0x293f9f(0x355)])?M(M({},_0x257445),{'children':_0x257445[_0x293f9f(0x307)][_0x293f9f(0x331)](function(_0x39e68b){const _0x5983df=_0x293f9f;return typeof _0x39e68b[_0x5983df(0x378)]['id']=='string'&&_0x6a8fd3&&_0x6a8fd3['indexOf'](_0x39e68b[_0x5983df(0x378)]['id'])>-0x1?M(M({},_0x39e68b),{'attrs':M(M({},_0x39e68b['attrs']),{'id':_0x39e68b[_0x5983df(0x378)]['id']+_0x4f8e8d[_0x5983df(0x205)]})}):_0x39e68b;})}):_0x257445;}function bi(){const _0x47f710=_0x28eb85;return Math['random']()[_0x47f710(0x45e)](0x24)[_0x47f710(0x2cd)](0x2,0x8);}qe['displayName']='UniverIcon';var Ti={'tag':'svg','attrs':{'fill':_0x28eb85(0x314),'viewBox':_0x28eb85(0x22d),'width':_0x28eb85(0x2b2),'height':_0x28eb85(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x28eb85(0x2ae)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'stroke':_0x28eb85(0x41d),'d':_0x28eb85(0x36d),'strokeLinecap':_0x28eb85(0x32c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x28eb85(0x1a6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x28eb85(0x4da)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'fill':'#fff','d':_0x28eb85(0x41b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U['forwardRef'](function(_0x14e843,_0x506a65){const _0x4bf57b=_0x28eb85;return U[_0x4bf57b(0x144)](qe,Object[_0x4bf57b(0x4c4)]({},_0x14e843,{'id':_0x4bf57b(0x2fc),'ref':_0x506a65,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0x28eb85(0x1d3),'attrs':{'fill':'none','viewBox':_0x28eb85(0x2e5),'width':_0x28eb85(0x2b2),'height':_0x28eb85(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x28eb85(0x1b4)},'children':[{'tag':'path','attrs':{'stroke':_0x28eb85(0x41d),'d':_0x28eb85(0x422),'strokeLinecap':_0x28eb85(0x32c),'strokeLinejoin':_0x28eb85(0x32c),'strokeWidth':1.2}}]},{'tag':_0x28eb85(0x1a6),'attrs':{},'children':[{'tag':_0x28eb85(0x4b9),'attrs':{'id':_0x28eb85(0x2af)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'fill':_0x28eb85(0x2b0),'d':_0x28eb85(0x41b),'transform':_0x28eb85(0x531)}}]}]}],'defIds':[_0x28eb85(0x2af)]},Ut=U[_0x28eb85(0x1cd)](function(_0x456ab9,_0x12549e){const _0x19b895=_0x28eb85;return U[_0x19b895(0x144)](qe,Object[_0x19b895(0x4c4)]({},_0x456ab9,{'id':_0x19b895(0x4d1),'ref':_0x12549e,'icon':Ri}));});Ut[_0x28eb85(0x1d9)]=_0x28eb85(0x195);function Pt(_0x4c48d2){const _0x273d03=_0x28eb85;var _0x44fd15,_0x2563c4,_0x432747='';if(typeof _0x4c48d2==_0x273d03(0x23c)||typeof _0x4c48d2=='number')_0x432747+=_0x4c48d2;else{if(typeof _0x4c48d2==_0x273d03(0x1a5)){if(Array[_0x273d03(0x33c)](_0x4c48d2)){var _0xe1e50a=_0x4c48d2['length'];for(_0x44fd15=0x0;_0x44fd15<_0xe1e50a;_0x44fd15++)_0x4c48d2[_0x44fd15]&&(_0x2563c4=Pt(_0x4c48d2[_0x44fd15]))&&(_0x432747&&(_0x432747+='\x20'),_0x432747+=_0x2563c4);}else{for(_0x2563c4 in _0x4c48d2)_0x4c48d2[_0x2563c4]&&(_0x432747&&(_0x432747+='\x20'),_0x432747+=_0x2563c4);}}}return _0x432747;}function Oi(){const _0x43ceb3=_0x28eb85;for(var _0x6a6890,_0x4ebae3,_0x42d08a=0x0,_0x36811f='',_0x43fd9b=arguments[_0x43ceb3(0x355)];_0x42d08a<_0x43fd9b;_0x42d08a++)(_0x6a6890=arguments[_0x42d08a])&&(_0x4ebae3=Pt(_0x6a6890))&&(_0x36811f&&(_0x36811f+='\x20'),_0x36811f+=_0x4ebae3);return _0x36811f;}const Di=_0x28eb85(0x3f5),yi='univer-online-status-title',Ui=_0x28eb85(0x13c),Pi='univer-online',wi=_0x28eb85(0x26e),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x513cc4){const _0x13948d=_0x28eb85;switch(_0x513cc4){case y[_0x13948d(0x29c)]:return _0x13948d(0x4e0);case y['CONFLICT']:return _0x13948d(0x410);case y['FETCH_MISS']:return _0x13948d(0x218);case y[_0x13948d(0x46b)]:return _0x13948d(0x24c);case y['PENDING']:case y[_0x13948d(0x32a)]:case y['AWAITING_WITH_PENDING']:return _0x13948d(0x19e);case y[_0x13948d(0x2ba)]:return _0x13948d(0x525);}}function wt(_0x1b93b1){const _0x302c43=_0x28eb85,{status$:_0x1c7c72}=_0x1b93b1,_0x18d44f=N[_0x302c43(0x164)](_0x1c7c72,y['NOT_COLLAB']),_0x2d3895=a[_0x302c43(0x313)](a[_0x302c43(0x3c6)]),_0x5c6ffa=a[_0x302c43(0x313)](exports[_0x302c43(0x398)]),_0x52a983=_0x18d44f!==y[_0x302c43(0x29c)],_0x598b43=_0x2d3895['t'](Mi(_0x18d44f)),_0x69d7a1=Oi(le[_0x302c43(0x508)],{[le[_0x302c43(0x30a)]]:_0x52a983,[le['offline']]:!_0x52a983}),_0x266a4d=_0x52a983?U[_0x302c43(0x144)](Ut,null):U['createElement'](yt,null),_0x1c0202=U['useCallback'](()=>{_0x52a983||_0x5c6ffa['reconnect']();},[_0x52a983,_0x5c6ffa]);function _0x502566(){const _0x8a9b43=_0x302c43;return U[_0x8a9b43(0x144)]('div',{'className':_0x69d7a1,'onClick':_0x1c0202},U[_0x8a9b43(0x144)](_0x8a9b43(0x3f9),{'className':le[_0x8a9b43(0x4f4)]},_0x266a4d),U[_0x8a9b43(0x144)](_0x8a9b43(0x3f9),{'className':le[_0x8a9b43(0x287)]},_0x598b43));}return _0x52a983?_0x502566():U[_0x302c43(0x144)](X[_0x302c43(0x482)],{'title':_0x2d3895['t'](_0x302c43(0x27b))},_0x502566());}var Ni=Object[_0x28eb85(0x114)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x1c301a,_0x33baac,_0x3c01ac,_0x1f9228)=>{const _0x4c74e8=_0x28eb85;for(var _0x39ee27=_0x1f9228>0x1?void 0x0:_0x1f9228?Ai(_0x33baac,_0x3c01ac):_0x33baac,_0xda100e=_0x1c301a[_0x4c74e8(0x355)]-0x1,_0x1327d3;_0xda100e>=0x0;_0xda100e--)(_0x1327d3=_0x1c301a[_0xda100e])&&(_0x39ee27=(_0x1f9228?_0x1327d3(_0x33baac,_0x3c01ac,_0x39ee27):_0x1327d3(_0x39ee27))||_0x39ee27);return _0x1f9228&&_0x39ee27&&Ni(_0x33baac,_0x3c01ac,_0x39ee27),_0x39ee27;},Se=(_0x73b6d,_0x5df3f6)=>(_0xf9a594,_0x3e7a7d)=>_0x5df3f6(_0xf9a594,_0x3e7a7d,_0x73b6d);exports[_0x28eb85(0x190)]=class extends a[_0x28eb85(0x216)]{constructor(_0x1a89c6,_0xc0d59e,_0x3677e7,_0x43284e){const _0x4713c2=_0x28eb85;super(),d(this,_0x4713c2(0x19c),new v[(_0x4713c2(0x276))](y[_0x4713c2(0x46b)])),(this[_0x4713c2(0x357)]=_0x1a89c6,this[_0x4713c2(0x4d7)]=_0xc0d59e,this[_0x4713c2(0x152)]=_0x3677e7,this[_0x4713c2(0x479)]=_0x43284e,this[_0x4713c2(0x4ba)](),this[_0x4713c2(0x1bf)]());}[_0x28eb85(0x1bf)](){const _0x4b4c3c=_0x28eb85;this[_0x4b4c3c(0x214)](this[_0x4b4c3c(0x357)][_0x4b4c3c(0x408)][_0x4b4c3c(0x495)](v[_0x4b4c3c(0x364)](()=>{const _0x3134d2=_0x4b4c3c,_0x1b876=this[_0x3134d2(0x357)]['getFocusedUnit']();return _0x1b876?this[_0x3134d2(0x479)][_0x3134d2(0x2b5)](_0x1b876[_0x3134d2(0x270)]()):v['of'](null);}),v[_0x4b4c3c(0x364)](_0x42d1d5=>_0x42d1d5?_0x42d1d5['status$']:v['of'](y[_0x4b4c3c(0x46b)])))[_0x4b4c3c(0x14a)](_0x3e5772=>{const _0x4cf4aa=_0x4b4c3c;this[_0x4cf4aa(0x19c)][_0x4cf4aa(0x3fd)](_0x3e5772);}));}[_0x28eb85(0x4ba)](){const _0x500cd6=_0x28eb85;this[_0x500cd6(0x214)](this[_0x500cd6(0x4d7)][_0x500cd6(0x3d7)](N[_0x500cd6(0x368)][_0x500cd6(0x4e4)],()=>a['connectInjector'](ji({'status$':this[_0x500cd6(0x19c)][_0x500cd6(0x291)]()}),this[_0x500cd6(0x152)])));}},exports[_0x28eb85(0x190)]=Li([Se(0x0,a[_0x28eb85(0x286)]),Se(0x1,N[_0x28eb85(0x115)]),Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x4af)]))],exports[_0x28eb85(0x190)]);function ji(_0x5c4f1e){const {status$:_0x349761}=_0x5c4f1e;return function(){return U['createElement'](wt,{'status$':_0x349761});};}const ze=a['createIdentifier']('uni.network.url-service');var $i=Object[_0x28eb85(0x114)],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x4456a7,_0x534c34,_0x3bcbd4,_0xa1428d)=>{const _0x114659=_0x28eb85;for(var _0x59def1=_0xa1428d>0x1?void 0x0:_0xa1428d?Hi(_0x534c34,_0x3bcbd4):_0x534c34,_0x24818b=_0x4456a7[_0x114659(0x355)]-0x1,_0x11b506;_0x24818b>=0x0;_0x24818b--)(_0x11b506=_0x4456a7[_0x24818b])&&(_0x59def1=(_0xa1428d?_0x11b506(_0x534c34,_0x3bcbd4,_0x59def1):_0x11b506(_0x59def1))||_0x59def1);return _0xa1428d&&_0x59def1&&$i(_0x534c34,_0x3bcbd4,_0x59def1),_0x59def1;},ee=(_0x59c63c,_0x1c5f01)=>(_0x3f99f7,_0x140989)=>_0x1c5f01(_0x3f99f7,_0x140989,_0x59c63c);exports['DataLoaderController']=class extends a[_0x28eb85(0x2f9)]{constructor(_0x35bc54,_0x362d43,_0x37d167,_0x25bd18,_0x34d0c2,_0x1a74db){const _0x5a070c=_0x28eb85;super(),this[_0x5a070c(0x2c1)]=_0x35bc54,this[_0x5a070c(0x1a7)]=_0x362d43,this[_0x5a070c(0x1a9)]=_0x37d167,this[_0x5a070c(0x535)]=_0x25bd18,this[_0x5a070c(0x4b2)]=_0x34d0c2,_0x1a74db?_0x1a74db==null||_0x1a74db['whenReady']()[_0x5a070c(0x167)](()=>this[_0x5a070c(0x3e8)]()):(this[_0x5a070c(0x1a7)][_0x5a070c(0x3b2)](_0x5a070c(0x487),_0x5a070c(0x1b1)),this[_0x5a070c(0x3e8)]());}async['_init'](){const _0x282353=_0x28eb85,_0x341a53=this[_0x282353(0x2c1)][_0x282353(0x497)](_0x282353(0x35c)),_0x28b985=this[_0x282353(0x2c1)]['getParam']('type');if(!_0x341a53||!_0x28b985){this['_logService'][_0x282353(0x3b2)](_0x282353(0x487),_0x282353(0x3a6));return;}switch(Number(_0x28b985)){case j[_0x282353(0x384)]:{const _0x1df32d=await this[_0x282353(0x4ef)](_0x341a53);this[_0x282353(0x452)](_0x1df32d);break;}case j[_0x282353(0x43a)]:{await this[_0x282353(0x1e6)](_0x341a53);break;}default:{this[_0x282353(0x1a7)]['error'](_0x282353(0x487),_0x282353(0x139));break;}}}async[_0x28eb85(0x452)](_0x3d5609){const _0x235d7c=_0x28eb85;await this[_0x235d7c(0x51e)](_0x3d5609),_0x3d5609['activeSheet$'][_0x235d7c(0x495)](v['takeUntil'](this[_0x235d7c(0x2fb)]))[_0x235d7c(0x14a)](_0x23a4f5=>{const _0x394429=_0x235d7c;_0x23a4f5&&this[_0x394429(0x47e)](_0x23a4f5);}),this[_0x235d7c(0x2c1)]['urlChange$'][_0x235d7c(0x495)](v[_0x235d7c(0x256)](this[_0x235d7c(0x2fb)]))['subscribe'](()=>this[_0x235d7c(0x51e)](_0x3d5609));}['_updateURLWithCurrentState'](_0x258de5,_0x30f6d7=!0x1){const _0x3af67d=_0x28eb85,_0x2cfc34=this[_0x3af67d(0x2c1)]['getParam'](_0x3af67d(0x2d3));_0x258de5[_0x3af67d(0x1b5)]()!==_0x2cfc34&&this[_0x3af67d(0x2c1)][_0x3af67d(0x119)](_0x3af67d(0x2d3),_0x258de5['getSheetId'](),_0x30f6d7);}async[_0x28eb85(0x51e)](_0xeeb2b0){const _0x25f748=_0x28eb85;var _0x2de05e;const _0xcf1c83=this['_urlService'][_0x25f748(0x497)](_0x25f748(0x2d3));if(!_0xcf1c83||!_0xeeb2b0[_0x25f748(0x3c7)](_0xcf1c83)){const _0xb43f1d=_0xeeb2b0['getUnhiddenWorksheets']()[0x0],_0x32cc89=_0xeeb2b0[_0x25f748(0x3c7)](_0xb43f1d);if(!_0x32cc89)return;this[_0x25f748(0x47e)](_0x32cc89,!0x0),await this['_commandService'][_0x25f748(0x170)](C[_0x25f748(0x4b8)]['id'],{'unitId':_0xeeb2b0[_0x25f748(0x270)](),'subUnitId':_0xb43f1d});return;}((_0x2de05e=_0xeeb2b0['getActiveSheet']())==null?void 0x0:_0x2de05e['getSheetId']())!==_0xcf1c83&&await this['_commandService'][_0x25f748(0x170)](C[_0x25f748(0x4b8)]['id'],{'unitId':_0xeeb2b0['getUnitId'](),'subUnitId':_0xcf1c83});}async[_0x28eb85(0x4ef)](_0xc4ec88){const _0x575e8a=_0x28eb85;let _0x1ac69e=0x0;const _0x23ddc=await this[_0x575e8a(0x535)]['loadOfflineData'](_0xc4ec88);return _0x23ddc&&(_0x23ddc[_0x575e8a(0x434)]||_0x23ddc[_0x575e8a(0x143)][_0x575e8a(0x355)]!==0x0)&&(_0x1ac69e=_0x23ddc[_0x575e8a(0x334)]),_0x1ac69e===0x0&&this[_0x575e8a(0x1a7)][_0x575e8a(0x3b2)](_0x575e8a(0x487),_0x575e8a(0x234)),this['_snapshotService'][_0x575e8a(0x4cd)](_0xc4ec88,_0x1ac69e);}async['_loadDoc'](_0x141f22){const _0x5cb148=_0x28eb85;let _0x3daba9=0x0;const _0x303f18=await this[_0x5cb148(0x535)][_0x5cb148(0x2c6)](_0x141f22);return _0x303f18&&(_0x303f18[_0x5cb148(0x434)]||_0x303f18[_0x5cb148(0x143)][_0x5cb148(0x355)]!==0x0)&&(_0x3daba9=_0x303f18[_0x5cb148(0x334)]),_0x3daba9===0x0&&this[_0x5cb148(0x1a7)][_0x5cb148(0x3b2)](_0x5cb148(0x487),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5cb148(0x4b2)][_0x5cb148(0x4ac)](_0x141f22,_0x3daba9);}},exports[_0x28eb85(0x4e8)]=xi([ee(0x0,ze),ee(0x1,a[_0x28eb85(0x155)]),ee(0x2,a[_0x28eb85(0x1b0)]),ee(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),ee(0x4,a[_0x28eb85(0x23f)](_[_0x28eb85(0x34a)])),ee(0x5,a[_0x28eb85(0x3ab)](Wt[_0x28eb85(0x524)]))],exports[_0x28eb85(0x4e8)]);var ki=Object[_0x28eb85(0x114)],Bi=Object[_0x28eb85(0x38b)],Vi=(_0x2f3b2e,_0x51802f,_0x1cf2f6,_0x4b2bb4)=>{const _0xbcc7de=_0x28eb85;for(var _0x3b21a9=_0x4b2bb4>0x1?void 0x0:_0x4b2bb4?Bi(_0x51802f,_0x1cf2f6):_0x51802f,_0x2753ec=_0x2f3b2e[_0xbcc7de(0x355)]-0x1,_0x3b49bd;_0x2753ec>=0x0;_0x2753ec--)(_0x3b49bd=_0x2f3b2e[_0x2753ec])&&(_0x3b21a9=(_0x4b2bb4?_0x3b49bd(_0x51802f,_0x1cf2f6,_0x3b21a9):_0x3b49bd(_0x3b21a9))||_0x3b21a9);return _0x4b2bb4&&_0x3b21a9&&ki(_0x51802f,_0x1cf2f6,_0x3b21a9),_0x3b21a9;},at=(_0xc8be12,_0x353dbb)=>(_0x467340,_0x591c3d)=>_0x353dbb(_0x467340,_0x591c3d,_0xc8be12);const Wi=_0x28eb85(0x4ea),Fi=_0x28eb85(0x29f);let Ie=class extends a[_0x28eb85(0x216)]{constructor(_0x41a0e1,_0x1e0445){const _0x41bf9c=_0x28eb85;super(),this[_0x41bf9c(0x357)]=_0x41a0e1,this['_configService']=_0x1e0445,this[_0x41bf9c(0x3e8)]();}['_init'](){const _0x2483e2=_0x28eb85;this['disposeWithMe'](this[_0x2483e2(0x357)][_0x2483e2(0x408)][_0x2483e2(0x14a)](()=>{const _0x5a2ab4=_0x2483e2;var _0x4b9c7e;const _0xf1c537=this[_0x5a2ab4(0x357)][_0x5a2ab4(0x48c)]();let _0x592105=(_0x4b9c7e=this[_0x5a2ab4(0x4d8)][_0x5a2ab4(0x184)](Wi))!=null?_0x4b9c7e:Fi;_0xf1c537 instanceof a[_0x5a2ab4(0x441)]&&(_0x592105=_0xf1c537[_0x5a2ab4(0x309)]),document['title']=_0x592105;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x28eb85(0x420)])],Ie);var Gi=Object['defineProperty'],Yi=Object[_0x28eb85(0x38b)],Ki=(_0x4dde30,_0x3cb740,_0x1b07b2,_0x342642)=>{for(var _0x273e56=_0x342642>0x1?void 0x0:_0x342642?Yi(_0x3cb740,_0x1b07b2):_0x3cb740,_0x15a9ba=_0x4dde30['length']-0x1,_0x52c961;_0x15a9ba>=0x0;_0x15a9ba--)(_0x52c961=_0x4dde30[_0x15a9ba])&&(_0x273e56=(_0x342642?_0x52c961(_0x3cb740,_0x1b07b2,_0x273e56):_0x52c961(_0x273e56))||_0x273e56);return _0x342642&&_0x273e56&&Gi(_0x3cb740,_0x1b07b2,_0x273e56),_0x273e56;},Le=(_0x37da53,_0x2093cd)=>(_0x2912a8,_0x3b15e8)=>_0x2093cd(_0x2912a8,_0x3b15e8,_0x37da53);let pe=class{constructor(_0x40b83f,_0x1d9f36,_0x512043){const _0x3b3c2e=_0x28eb85;this[_0x3b3c2e(0x4d8)]=_0x40b83f,this[_0x3b3c2e(0x46f)]=_0x1d9f36,this[_0x3b3c2e(0x4a9)]=_0x512043,this[_0x3b3c2e(0x504)]();}['init'](){const _0x3437b7=_0x28eb85;this[_0x3437b7(0x46f)][_0x3437b7(0x188)]({'priority':0x1,'interceptor':(_0x235b40,_0x4da6d3)=>_0x4da6d3(_0x235b40)[_0x3437b7(0x495)](v[_0x3437b7(0x4cb)](async _0x5e5e82=>{const _0x410bf6=_0x3437b7,_0x34da62=_0x5e5e82;if(_0x34da62[_0x410bf6(0x266)]===0x191&&window[_0x410bf6(0x4f7)](this[_0x410bf6(0x4a9)]['t'](_0x410bf6(0x126)))){const _0x4dc9e0=window[_0x410bf6(0x246)](window['location'][_0x410bf6(0x18d)]);window['location'][_0x410bf6(0x18d)]=this[_0x410bf6(0x1ae)]()+_0x410bf6(0x523)+_0x4dc9e0;}return _0x34da62;}))});}['_getLoginPath'](){const _0x4623cb=_0x28eb85;var _0x3c013e,_0x212ebd;const _0x16cc5c=this[_0x4623cb(0x4d8)]['getConfig'](mt),_0x2b0a0c=this[_0x4623cb(0x4d8)][_0x4623cb(0x184)](A);return(_0x212ebd=(_0x3c013e=_0x2b0a0c==null?void 0x0:_0x2b0a0c[_0x4623cb(0x1ad)])!=null?_0x3c013e:_0x16cc5c)!=null?_0x212ebd:es;}};pe=Ki([Le(0x0,a[_0x28eb85(0x420)]),Le(0x1,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)])),Le(0x2,a['Inject'](a[_0x28eb85(0x3c6)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x28eb85(0x38b)],zi=(_0x16dc2a,_0x3131df,_0x561d65,_0x4b2a01)=>{const _0x333edc=_0x28eb85;for(var _0x49f7f5=_0x4b2a01>0x1?void 0x0:_0x4b2a01?qi(_0x3131df,_0x561d65):_0x3131df,_0x34cd4b=_0x16dc2a[_0x333edc(0x355)]-0x1,_0x3065b0;_0x34cd4b>=0x0;_0x34cd4b--)(_0x3065b0=_0x16dc2a[_0x34cd4b])&&(_0x49f7f5=(_0x4b2a01?_0x3065b0(_0x3131df,_0x561d65,_0x49f7f5):_0x3065b0(_0x49f7f5))||_0x49f7f5);return _0x4b2a01&&_0x49f7f5&&Xi(_0x3131df,_0x561d65,_0x49f7f5),_0x49f7f5;},ct=(_0xa25b2e,_0x385268)=>(_0x46c91b,_0x164004)=>_0x385268(_0x46c91b,_0x164004,_0xa25b2e);const Mt='AUTHZ_URL_KEY',Ji=_0x28eb85(0x319);exports[_0x28eb85(0x391)]=class extends a[_0x28eb85(0x216)]{constructor(_0x22e2d5,_0xc8b4f6){const _0x27c1ab=_0x28eb85;super(),this[_0x27c1ab(0x316)]=_0x22e2d5,this['_configService']=_0xc8b4f6,this[_0x27c1ab(0x3dd)]();}[_0x28eb85(0x3dd)](){const _0x358e7d=_0x28eb85,_0x899e4c=this;this['disposeWithMe'](this[_0x358e7d(0x316)][_0x358e7d(0x188)]({'priority':0x3e7,'interceptor':P[_0x358e7d(0x2e0)]({'isMatch'(_0x249ca5){const _0x117c70=_0x358e7d;var _0x53a6ee;if(_0x249ca5[_0x117c70(0x23a)]==='POST'&&((_0x53a6ee=_0x249ca5[_0x117c70(0x2c8)])!=null&&_0x53a6ee['body'])){const {objectID:_0x17ace0,objectType:_0x40f727}=_0x249ca5[_0x117c70(0x2c8)][_0x117c70(0x1e5)]||{};if(!_0x17ace0||_0x40f727===void 0x0)return!0x1;const _0x1d399b=_0x899e4c[_0x117c70(0x323)]()+'/'+_0x40f727+'/object/'+_0x17ace0+_0x117c70(0x3bc);if(_0x249ca5[_0x117c70(0x39b)]===_0x1d399b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xb651e8){const _0x4a75df=_0x358e7d;var _0x4af94d;return(_0x4af94d=_0xb651e8['requestParams'])==null?void 0x0:_0x4af94d[_0x4a75df(0x1e5)];},'mergeParamsToRequest'(_0x28ffb1,_0x4c0883){const _0x4a0ce8=_0x358e7d,_0x127e89=_0x899e4c[_0x4a0ce8(0x323)]()+'/-/object/-/batch_allowed',_0x1bf20d=_0x28ffb1[_0x4a0ce8(0x212)]((_0x1ca90f,_0x269242)=>{const _0x3ed5d2=_0x4a0ce8,{unitID:_0x56307d,objectID:_0x39211b,objectType:_0x105aca,actions:_0x5b566a}=_0x269242;return _0x1ca90f[_0x56307d]||(_0x1ca90f[_0x56307d]={}),_0x1ca90f[_0x56307d][_0x39211b]||(_0x1ca90f[_0x56307d][_0x39211b]={'objectID':_0x39211b,'objectType':_0x105aca,'actions':[]}),_0x1ca90f[_0x56307d][_0x39211b]['actions'][_0x3ed5d2(0x3f4)](..._0x5b566a),_0x1ca90f;},{}),_0x5b1586=[];for(const _0x23ef45 in _0x1bf20d)for(const _0x57a5d2 in _0x1bf20d[_0x23ef45]){const {actions:_0x45d7bb,objectType:_0xc4078a}=_0x1bf20d[_0x23ef45][_0x57a5d2],_0x197270=[...new Set(_0x45d7bb)];_0x5b1586[_0x4a0ce8(0x3f4)]({'unitID':_0x23ef45,'objectID':_0x57a5d2,'objectType':_0xc4078a,'actions':_0x197270});}return new P[(_0x4a0ce8(0x15e))](_0x4a0ce8(0x2f7),_0x127e89,{'headers':_0x4c0883[_0x4a0ce8(0x3cf)],'withCredentials':_0x4c0883[_0x4a0ce8(0x17d)],'responseType':_0x4c0883[_0x4a0ce8(0x4c2)],'body':{'requests':_0x5b1586}});}},{'distributeResult'(_0x16eac2,_0x129657){const {objectActions:_0x2e37fb}=_0x16eac2;return _0x129657['map'](_0xc4e7e0=>{const _0x27485d=_0xb2fc,{unitID:_0x30e6bf,objectID:_0x405f65,actions:_0x5310b7}=_0xc4e7e0,_0x521c65=_0x2e37fb[_0x27485d(0x4ff)](_0x3fc009=>_0x3fc009[_0x27485d(0x333)]===_0x30e6bf&&_0x3fc009['objectID']===_0x405f65),_0x932bef=_0x5310b7[_0x27485d(0x331)](_0x12ae27=>_0x521c65==null?void 0x0:_0x521c65['actions'][_0x27485d(0x4ff)](_0x4ad106=>_0x4ad106['action']===_0x12ae27))[_0x27485d(0x215)](_0x242ee7=>!!_0x242ee7);return{'config':_0xc4e7e0,'result':{'actions':_0x932bef,'error':_0x16eac2[_0x27485d(0x533)]}};});}})}));}[_0x28eb85(0x323)](){const _0x3935ff=_0x28eb85;var _0x4870b2,_0x26e26f;const _0x152262=this[_0x3935ff(0x4d8)]['getConfig'](Mt),_0x5a9cd8=this[_0x3935ff(0x4d8)][_0x3935ff(0x184)](A);return(_0x26e26f=(_0x4870b2=_0x5a9cd8==null?void 0x0:_0x5a9cd8[_0x3935ff(0x406)])!=null?_0x4870b2:_0x152262)!=null?_0x26e26f:Ji;}async[_0x28eb85(0x42f)](_0x442ad5){const _0x3e05c0=_0x28eb85,_0x798c92=this['_getAPIPrefixPath']()+'/'+_0x442ad5[_0x3e05c0(0x3de)]+_0x3e05c0(0x3c8);return(await this[_0x3e05c0(0x316)][_0x3e05c0(0x252)](_0x798c92,{'body':_0x442ad5}))[_0x3e05c0(0x1e5)][_0x3e05c0(0x4c7)]||'';}async['list'](_0x4aea30){const _0x1c4b54=_0x28eb85,_0x2fd738=this['_getAPIPrefixPath']()+_0x1c4b54(0x439);return(await this['_HTTPService'][_0x1c4b54(0x252)](_0x2fd738,{'body':_0x4aea30}))[_0x1c4b54(0x1e5)][_0x1c4b54(0x49a)];}async[_0x28eb85(0x433)](_0xc4660f){const _0x44d40a=_0x28eb85,_0x13cdae=this[_0x44d40a(0x323)]()+'/'+_0xc4660f[_0x44d40a(0x3de)]+_0x44d40a(0x292)+_0xc4660f['objectID'];await this[_0x44d40a(0x316)][_0x44d40a(0x369)](_0x13cdae,{'body':_0xc4660f});}async['allowed'](_0x5989fa){const _0x3fb7bf=_0x28eb85,_0xd65fa0=this[_0x3fb7bf(0x323)]()+'/'+_0x5989fa[_0x3fb7bf(0x3de)]+_0x3fb7bf(0x292)+_0x5989fa['objectID']+_0x3fb7bf(0x3bc);return(await this['_HTTPService'][_0x3fb7bf(0x252)](_0xd65fa0,{'body':_0x5989fa}))[_0x3fb7bf(0x1e5)][_0x3fb7bf(0x4e2)];}async[_0x28eb85(0x263)](_0x24ef04){const _0x282431=_0x28eb85,_0x358063=this[_0x282431(0x323)]()+_0x282431(0x393);return(await this[_0x282431(0x316)][_0x282431(0x252)](_0x358063,{'body':{'requests':_0x24ef04}}))[_0x282431(0x1e5)][_0x282431(0x49b)];}async[_0x28eb85(0x42d)](_0x4684bc){const _0x13cd41=_0x28eb85,_0x413234=this[_0x13cd41(0x323)]()+'/'+_0x4684bc[_0x13cd41(0x3de)]+_0x13cd41(0x429),_0x366aad=await this[_0x13cd41(0x316)][_0x13cd41(0x252)](_0x413234,{'body':_0x4684bc});return{'roles':_0x366aad['body'][_0x13cd41(0x3a0)],'actions':_0x366aad[_0x13cd41(0x1e5)]['actions']};}async[_0x28eb85(0x380)](_0x113ea9){const _0x282d99=_0x28eb85,_0x24a11b=this[_0x282d99(0x323)]()+_0x282d99(0x189);await this[_0x282d99(0x316)][_0x282d99(0x25f)](_0x24a11b,{'params':{'collaboratorID':_0x113ea9[_0x282d99(0x413)],'objectID':_0x113ea9[_0x282d99(0x4c7)],'unitID':_0x113ea9[_0x282d99(0x333)]}});}async['updateCollaborator'](_0x360dd7){const _0x4f045c=_0x28eb85,_0x364341=this[_0x4f045c(0x323)]()+_0x4f045c(0x189);await this['_HTTPService'][_0x4f045c(0x45d)](_0x364341,{'body':_0x360dd7});}async[_0x28eb85(0x3a3)](_0x45ca07){const _0x198a48=_0x28eb85,_0x17c1fb=this['_getAPIPrefixPath']()+_0x198a48(0x189);await this[_0x198a48(0x316)][_0x198a48(0x252)](_0x17c1fb,{'body':_0x45ca07});}async[_0x28eb85(0x443)](_0x336c6f){const _0x3753a2=_0x28eb85,_0x2ec912=this[_0x3753a2(0x323)]()+_0x3753a2(0x189);return(await this['_HTTPService']['get'](_0x2ec912,{'params':{'objectID':_0x336c6f[_0x3753a2(0x4c7)],'unitID':_0x336c6f[_0x3753a2(0x333)]}}))[_0x3753a2(0x1e5)][_0x3753a2(0x447)];}async['putCollaborators'](_0x33ea4d){const _0x376b7a=_0x28eb85,_0xcb6d8c=this[_0x376b7a(0x323)]()+_0x376b7a(0x189);await this[_0x376b7a(0x316)][_0x376b7a(0x369)](_0xcb6d8c,{'body':_0x33ea4d});}},exports[_0x28eb85(0x391)]=zi([ct(0x0,a['Inject'](P['HTTPService'])),ct(0x1,a[_0x28eb85(0x23f)](a['IConfigService']))],exports['AuthzIoHttpService']);var Zi=Object[_0x28eb85(0x114)],Qi=Object[_0x28eb85(0x38b)],en=(_0x5d6b96,_0x32d786,_0xc71488,_0x104317)=>{const _0x594fad=_0x28eb85;for(var _0x1d920d=_0x104317>0x1?void 0x0:_0x104317?Qi(_0x32d786,_0xc71488):_0x32d786,_0x56edb2=_0x5d6b96[_0x594fad(0x355)]-0x1,_0x5ac639;_0x56edb2>=0x0;_0x56edb2--)(_0x5ac639=_0x5d6b96[_0x56edb2])&&(_0x1d920d=(_0x104317?_0x5ac639(_0x32d786,_0xc71488,_0x1d920d):_0x5ac639(_0x1d920d))||_0x1d920d);return _0x104317&&_0x1d920d&&Zi(_0x32d786,_0xc71488,_0x1d920d),_0x1d920d;},tn=(_0x43ad28,_0x3454df)=>(_0x5ea3ac,_0x379628)=>_0x3454df(_0x5ea3ac,_0x379628,_0x43ad28);let Ce=class{constructor(_0x89577d){const _0x100a90=_0x28eb85;this['_httpService']=_0x89577d,this[_0x100a90(0x268)]();}[_0x28eb85(0x268)](){const _0x36bce7=_0x28eb85;this['_httpService'][_0x36bce7(0x188)]({'interceptor':(_0x1900c6,_0x24048c)=>{const _0x2f3821=_0x36bce7,_0x6c4c29=_0x1900c6[_0x2f3821(0x3cf)],_0x47d8a3=Ft['getAttachHeader']();return _0x47d8a3&&_0x6c4c29['set']('x-univer-host',_0x47d8a3),_0x24048c(_0x1900c6);}});}};Ce=en([tn(0x0,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)]))],Ce);var sn=Object[_0x28eb85(0x114)],nn=Object[_0x28eb85(0x38b)],rn=(_0x989aba,_0x5ac2c2,_0x5e5319,_0x7a75e6)=>{const _0x7ac152=_0x28eb85;for(var _0x30fb74=_0x7a75e6>0x1?void 0x0:_0x7a75e6?nn(_0x5ac2c2,_0x5e5319):_0x5ac2c2,_0x42d541=_0x989aba[_0x7ac152(0x355)]-0x1,_0x326bc3;_0x42d541>=0x0;_0x42d541--)(_0x326bc3=_0x989aba[_0x42d541])&&(_0x30fb74=(_0x7a75e6?_0x326bc3(_0x5ac2c2,_0x5e5319,_0x30fb74):_0x326bc3(_0x30fb74))||_0x30fb74);return _0x7a75e6&&_0x30fb74&&sn(_0x5ac2c2,_0x5e5319,_0x30fb74),_0x30fb74;},je=(_0x135900,_0x2ab63d)=>(_0xf2b8ad,_0x4668ad)=>_0x2ab63d(_0xf2b8ad,_0x4668ad,_0x135900);const on=[_0x28eb85(0x3d3),'image/jpeg','image/jpg',_0x28eb85(0x4aa),_0x28eb85(0x245)],an=0x5*0x400*0x400,cn=_0x28eb85(0x468),ln='/universer-api/stream/file/upload',hn=_0x28eb85(0x455),_n=_0x28eb85(0x520);exports['ImageIoService']=class{constructor(_0x4a4c3f,_0x515f62,_0x5feec0){const _0x5dd2d2=_0x28eb85;d(this,'_waitCount',0x0),d(this,'_change$',new v['Subject']()),d(this,_0x5dd2d2(0x175),this[_0x5dd2d2(0x1f6)]),d(this,_0x5dd2d2(0x2f1),new Map()),(this[_0x5dd2d2(0x46f)]=_0x4a4c3f,this[_0x5dd2d2(0x4d8)]=_0x515f62,this['_univerInstanceService']=_0x5feec0);}['setWaitCount'](_0x2dadd8){const _0x3a2a49=_0x28eb85;this[_0x3a2a49(0x3c2)]=_0x2dadd8,this['_change$'][_0x3a2a49(0x3fd)](_0x2dadd8);}['getImageSourceCache'](_0xa508e8,_0x60a9ac){const _0x3a9e23=_0x28eb85;if(_0x60a9ac===L['ImageSourceType'][_0x3a9e23(0x22c)]){const _0x35356b=new Image();return _0x35356b['src']=_0xa508e8,_0x35356b;}return this[_0x3a9e23(0x2f1)][_0x3a9e23(0x30d)](_0xa508e8);}['addImageSourceCache'](_0x1ca233,_0x5bd482,_0x4227de){const _0x531c5f=_0x28eb85;_0x5bd482===L[_0x531c5f(0x4d4)][_0x531c5f(0x22c)]||_0x4227de==null||this[_0x531c5f(0x2f1)][_0x531c5f(0x191)](_0x1ca233,_0x4227de);}async['getImage'](_0x4a7afd){const _0x589049=_0x28eb85;try{const _0x1398b6=this[_0x589049(0x18f)](this['_getSignURL'](),''+_0x4a7afd),_0xd6d34f=(await this[_0x589049(0x46f)][_0x589049(0x30d)](_0x1398b6))[_0x589049(0x1e5)];if(_0xd6d34f[_0x589049(0x533)]&&_0xd6d34f[_0x589049(0x533)][_0x589049(0x4ad)]===It['OK']){const _0x41d3de=new URL(_0xd6d34f[_0x589049(0x39b)],this[_0x589049(0x30c)]())[_0x589049(0x45e)]();return Promise[_0x589049(0x2c7)](_0x41d3de);}return Promise[_0x589049(0x36e)](_0xd6d34f[_0x589049(0x533)]);}catch(_0x1416a3){return Promise[_0x589049(0x36e)](_0x1416a3);}}async[_0x28eb85(0x501)](_0x59dcce){const _0x30fa25=_0x28eb85;let _0x45b10d='';if(!on[_0x30fa25(0x2bb)](_0x59dcce[_0x30fa25(0x254)]))return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L['ImageUploadStatusType'][_0x30fa25(0x1a8)]));if(_0x59dcce[_0x30fa25(0x50a)]>an)return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x30fa25(0x4a5)]));try{const _0x3463e7=new FormData();_0x3463e7[_0x30fa25(0x397)]('file',_0x59dcce);const _0x1fdd96=this[_0x30fa25(0x357)][_0x30fa25(0x48c)](),_0x1afcde=_0x1fdd96==null?void 0x0:_0x1fdd96[_0x30fa25(0x270)]();if(!_0x1afcde)throw new Error('unitId\x20is\x20not\x20found');const _0x497da1=this[_0x30fa25(0x388)]()+_0x30fa25(0x499)+_0x59dcce['size'][_0x30fa25(0x45e)]()+_0x30fa25(0x2cf)+pt[_0x30fa25(0x21c)]+'&assign='+encodeURIComponent(_0x1afcde),_0x24d9f6=await(await fetch(_0x497da1,{'method':_0x30fa25(0x2f7),'body':_0x3463e7}))[_0x30fa25(0x230)]();if(typeof _0x24d9f6[_0x30fa25(0x277)]!=_0x30fa25(0x23c))return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L[_0x30fa25(0x39c)][_0x30fa25(0x373)]));_0x45b10d=_0x24d9f6['FileId'];}catch{return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L[_0x30fa25(0x39c)]['ERROR_IMAGE']));}return new Promise((_0x1f7faa,_0x37b8b0)=>{const _0x497065=_0x30fa25,_0x4e1b57=new FileReader();_0x4e1b57[_0x497065(0x28f)](_0x59dcce),_0x4e1b57['onload']=_0x86a100=>{const _0x330ee6=_0x497065;var _0x2854da;const _0x3c34a0=(_0x2854da=_0x86a100['target'])==null?void 0x0:_0x2854da[_0x330ee6(0x4db)];if(_0x3c34a0==null){this[_0x330ee6(0x18c)](),_0x37b8b0(new Error(L[_0x330ee6(0x39c)][_0x330ee6(0x373)]));return;}const _0x101b9b=a[_0x330ee6(0x356)][_0x330ee6(0x517)](0x6);_0x1f7faa({'imageId':_0x101b9b,'imageSourceType':L[_0x330ee6(0x4d4)][_0x330ee6(0x354)],'source':_0x45b10d,'base64Cache':_0x3c34a0,'status':L[_0x330ee6(0x39c)][_0x330ee6(0x352)]}),this[_0x330ee6(0x18c)]();};});}['_getUploadFileURL'](){const _0x2470a7=_0x28eb85;var _0x195311,_0x45720b;const _0xaf7cc7=this[_0x2470a7(0x4d8)][_0x2470a7(0x184)](cn),_0x271adb=this[_0x2470a7(0x4d8)][_0x2470a7(0x184)](A);return(_0x45720b=(_0x195311=_0x271adb==null?void 0x0:_0x271adb[_0x2470a7(0x228)])!=null?_0x195311:_0xaf7cc7)!=null?_0x45720b:ln;}['_getSignURL'](){const _0x38b759=_0x28eb85;var _0x57caad,_0x20652c;const _0x274967=this[_0x38b759(0x4d8)][_0x38b759(0x184)](hn),_0x4702e3=this[_0x38b759(0x4d8)]['getConfig'](A);return(_0x20652c=(_0x57caad=_0x4702e3==null?void 0x0:_0x4702e3['signUrlServerUrl'])!=null?_0x57caad:_0x274967)!=null?_0x20652c:_n;}[_0x28eb85(0x30c)](){const _0x2a9152=_0x28eb85;var _0x1ca775;const _0x10fbc8=this['_configService'][_0x2a9152(0x184)](A);return(_0x1ca775=_0x10fbc8==null?void 0x0:_0x10fbc8[_0x2a9152(0x37d)])!=null?_0x1ca775:location[_0x2a9152(0x42c)];}[_0x28eb85(0x18f)](_0x3a61d2,_0x20cae8){const _0x328f35=_0x28eb85;return _0x3a61d2[_0x328f35(0x129)](_0x328f35(0x4e7),_0x20cae8);}[_0x28eb85(0x18c)](){const _0x454f0d=_0x28eb85;this[_0x454f0d(0x3c2)]-=0x1,this[_0x454f0d(0x1f6)]['next'](this[_0x454f0d(0x3c2)]);}},exports[_0x28eb85(0x281)]=rn([je(0x0,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)])),je(0x1,a['IConfigService']),je(0x2,a['Inject'](a[_0x28eb85(0x286)]))],exports[_0x28eb85(0x281)]);var un=Object['defineProperty'],dn=Object[_0x28eb85(0x38b)],Sn=(_0xc7877d,_0x2583ed,_0x533d14,_0x1df4fd)=>{for(var _0x3302ca=_0x1df4fd>0x1?void 0x0:_0x1df4fd?dn(_0x2583ed,_0x533d14):_0x2583ed,_0x2bc366=_0xc7877d['length']-0x1,_0x158a01;_0x2bc366>=0x0;_0x2bc366--)(_0x158a01=_0xc7877d[_0x2bc366])&&(_0x3302ca=(_0x1df4fd?_0x158a01(_0x2583ed,_0x533d14,_0x3302ca):_0x158a01(_0x3302ca))||_0x3302ca);return _0x1df4fd&&_0x3302ca&&un(_0x2583ed,_0x533d14,_0x3302ca),_0x3302ca;},he=(_0x27192f,_0x3a7448)=>(_0x12661c,_0x2bf67f)=>_0x3a7448(_0x12661c,_0x2bf67f,_0x27192f);let Ee=class extends a[_0x28eb85(0x2f9)]{constructor(_0x510448,_0x175296,_0x823de0,_0x35a060,_0x2eecba){const _0x4f410f=_0x28eb85;super(),this[_0x4f410f(0x152)]=_0x510448,this[_0x4f410f(0x357)]=_0x175296,this['_permissionService']=_0x823de0,this[_0x4f410f(0x3ca)]=_0x35a060,this['_localeService']=_0x2eecba,this['_initUnitPermissionChange'](),this[_0x4f410f(0x18b)]();}[_0x28eb85(0x18b)](){const _0x34fa60=_0x28eb85,_0x68e952=async _0x23146d=>{const _0x5bb328=_0xb2fc;(await this['_collaborationSessionService']['requireSession'](_0x23146d))[_0x5bb328(0x476)]['pipe'](E['filter'](_0x48b1c3=>_0x48b1c3['eventID']===_['CollaborationEvent'][_0x5bb328(0x133)]),E[_0x5bb328(0x256)](this[_0x5bb328(0x2fb)]))['subscribe'](_0x49442c=>{const _0x149783=_0x5bb328,_0x27b840=_0x49442c,{reason:_0x17769d}=_0x27b840[_0x149783(0x451)];this[_0x149783(0x152)][_0x149783(0x30d)](N['IMessageService'])[_0x149783(0x2bd)]({'type':X[_0x149783(0x2ea)][_0x149783(0x457)],'content':this['_localeService']['t'](_0x149783(0x242))+'('+_0x17769d+')'}),this[_0x149783(0x28a)][_0x149783(0x49e)](new C[(_0x149783(0x31c))](_0x23146d)['id'],!0x1),this[_0x149783(0x3ca)][_0x149783(0x42a)](_0x23146d);});};v['merge'](this[_0x34fa60(0x357)][_0x34fa60(0x1ba)](a[_0x34fa60(0x24a)][_0x34fa60(0x384)]),this[_0x34fa60(0x357)]['getTypeOfUnitAdded$'](a[_0x34fa60(0x24a)][_0x34fa60(0x43a)]))['pipe'](E[_0x34fa60(0x331)](_0x5ba0c4=>_0x5ba0c4[_0x34fa60(0x270)]()),E['filter'](_0x4112b8=>!a['isInternalEditorID'](_0x4112b8)),E['takeUntil'](this[_0x34fa60(0x2fb)]))[_0x34fa60(0x14a)](_0xad5bab=>{_0x68e952(_0xad5bab);});}[_0x28eb85(0x2d4)](){const _0x584455=_0x28eb85,_0x1cb201=async _0x4b4665=>{const _0x5e9637=_0xb2fc;(await this[_0x5e9637(0x3ca)][_0x5e9637(0x123)](_0x4b4665))[_0x5e9637(0x476)][_0x5e9637(0x495)](E[_0x5e9637(0x215)](_0xf81760=>_0xf81760[_0x5e9637(0x16b)]===_[_0x5e9637(0x46d)][_0x5e9637(0x300)]),E[_0x5e9637(0x256)](this[_0x5e9637(0x2fb)]))[_0x5e9637(0x14a)](_0x5d2cda=>{const _0x3632de=_0x5e9637,_0x3b7e27=_0x5d2cda,{objectId:_0x36a23a}=_0x3b7e27[_0x3632de(0x451)],_0xcb446e=this['_injector'][_0x3632de(0x30d)](te[_0x3632de(0x394)]);_0x36a23a===_0x4b4665?_0xcb446e[_0x3632de(0x2f8)](_0x4b4665):_0xcb446e[_0x3632de(0x52b)](_0x4b4665,_0x36a23a);});};v[_0x584455(0x1ea)](this['_univerInstanceService'][_0x584455(0x1ba)](a[_0x584455(0x24a)][_0x584455(0x384)]),this[_0x584455(0x357)][_0x584455(0x1ba)](a['UniverInstanceType']['UNIVER_DOC']))[_0x584455(0x495)](E[_0x584455(0x331)](_0x220dd4=>_0x220dd4[_0x584455(0x270)]()),E[_0x584455(0x215)](_0x77b433=>!a['isInternalEditorID'](_0x77b433)),E[_0x584455(0x256)](this[_0x584455(0x2fb)]))['subscribe'](_0xb1aa23=>{_0x1cb201(_0xb1aa23);});}};Ee=Sn([he(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),he(0x1,a[_0x28eb85(0x286)]),he(0x2,a[_0x28eb85(0x485)]),he(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x398)])),he(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)]))],Ee);var vn=Object[_0x28eb85(0x114)],fn=Object['getOwnPropertyDescriptor'],gn=(_0x3b87e3,_0x563a1e,_0x1bbef6,_0x3b5ec6)=>{const _0x14ed49=_0x28eb85;for(var _0xcc379b=_0x3b5ec6>0x1?void 0x0:_0x3b5ec6?fn(_0x563a1e,_0x1bbef6):_0x563a1e,_0x526594=_0x3b87e3[_0x14ed49(0x355)]-0x1,_0x3d343f;_0x526594>=0x0;_0x526594--)(_0x3d343f=_0x3b87e3[_0x526594])&&(_0xcc379b=(_0x3b5ec6?_0x3d343f(_0x563a1e,_0x1bbef6,_0xcc379b):_0x3d343f(_0xcc379b))||_0xcc379b);return _0x3b5ec6&&_0xcc379b&&vn(_0x563a1e,_0x1bbef6,_0xcc379b),_0xcc379b;},lt=(_0x30cff1,_0x5cd293)=>(_0x583bac,_0x24964e)=>_0x5cd293(_0x583bac,_0x24964e,_0x30cff1);exports[_0x28eb85(0x515)]=class{constructor(_0x4116b0,_0x56fd17){const _0x218ae8=_0x28eb85;this[_0x218ae8(0x4d8)]=_0x4116b0,this[_0x218ae8(0x46f)]=_0x56fd17;}async[_0x28eb85(0x26f)](_0x57f919,_0x1f2e61){const _0x3f90cb=_0x28eb85;var _0x49dcc5;const {unitID:_0x458402,type:_0x528b19,revision:_0x2f66a8=0x0}=_0x1f2e61,_0x17df0f=this[_0x3f90cb(0x43d)]()+'/'+_0x528b19+_0x3f90cb(0x3ef)+_0x458402+_0x3f90cb(0x2d6)+_0x2f66a8,_0x119f30=(await this['_httpService'][_0x3f90cb(0x30d)](_0x17df0f))[_0x3f90cb(0x1e5)],_0x27d2cb=(_0x49dcc5=_0x119f30[_0x3f90cb(0x376)])==null?void 0x0:_0x49dcc5[_0x3f90cb(0x4bd)];if(_0x27d2cb){const _0x3bc534=_0x27d2cb==null?void 0x0:_0x27d2cb[_0x3f90cb(0x223)],_0x4efc72=_['textEncoder'][_0x3f90cb(0x427)](_[_0x3f90cb(0x1a1)](_0x3bc534));_0x27d2cb[_0x3f90cb(0x223)]=_0x4efc72,Object['entries'](_0x27d2cb[_0x3f90cb(0x4eb)])['forEach'](([,_0x10ae4f])=>{const _0x52ea85=_0x3f90cb,_0x3ef406=_0x10ae4f[_0x52ea85(0x223)],_0x138523=_['textEncoder'][_0x52ea85(0x427)](_[_0x52ea85(0x1a1)](_0x3ef406));_0x10ae4f['originalMeta']=_0x138523;});}return _0x119f30;}async[_0x28eb85(0x36a)](_0x52c000,_0x4d8a5a){const _0x471110=_0x28eb85,{unitID:_0x3ab427,type:_0x152be6,blockID:_0x212d59}=_0x4d8a5a,_0x2828b8=this['_getAPIPrefix']()+'/'+_0x152be6+_0x471110(0x3ef)+_0x3ab427+_0x471110(0x31d)+_0x212d59;return(await this[_0x471110(0x46f)][_0x471110(0x30d)](_0x2828b8))[_0x471110(0x1e5)];}async[_0x28eb85(0x137)](_0x1cbc36,_0x4c09bb){const _0xa46175=_0x28eb85,{unitID:_0x3ec3b3,type:_0x50aee0,blockID:_0x4afc9b}=_0x4c09bb,_0x5de052=this[_0xa46175(0x511)]()+_0xa46175(0x31d)+_0x50aee0+_0xa46175(0x3ef)+_0x3ec3b3+_0xa46175(0x31d)+_0x4afc9b;return(await this[_0xa46175(0x46f)][_0xa46175(0x30d)](_0x5de052))['body'];}async['fetchMissingChangesets'](_0x481e47,_0x2df5c5){const _0x22f6c2=_0x28eb85,{unitID:_0xebe8d1,type:_0x544b1a,from:_0x3845ab,to:_0x4e2fc1}=_0x2df5c5,_0x533d5e=this[_0x22f6c2(0x511)]()+'/'+_0x544b1a+'/unit/'+_0xebe8d1+_0x22f6c2(0x2db)+_0x3845ab+_0x22f6c2(0x1d1)+_0x4e2fc1;return(await this['_httpService'][_0x22f6c2(0x30d)](_0x533d5e))[_0x22f6c2(0x1e5)];}[_0x28eb85(0x43d)](){const _0x3e4cb1=_0x28eb85;var _0x47f857;return(_0x47f857=this['_configService']['getConfig'](_t))!=null?_0x47f857:this[_0x3e4cb1(0x511)]();}[_0x28eb85(0x511)](){const _0x429c72=_0x28eb85;var _0x27d944,_0x2fedb0;const _0x1426f2=this[_0x429c72(0x4d8)][_0x429c72(0x184)](ht),_0x56ffd4=this['_configService'][_0x429c72(0x184)](A);return(_0x2fedb0=(_0x27d944=_0x56ffd4==null?void 0x0:_0x56ffd4[_0x429c72(0x47c)])!=null?_0x27d944:_0x1426f2)!=null?_0x2fedb0:Gt;}async[_0x28eb85(0x3ec)](_0x58045a,_0x108a18){const _0x3a39d9=_0x28eb85,_0x104681=_0x3a39d9(0x15d)+_0x108a18[_0x3a39d9(0x254)]+_0x3a39d9(0x3ef)+_0x108a18[_0x3a39d9(0x333)]+_0x3a39d9(0x24b);return(await this[_0x3a39d9(0x46f)][_0x3a39d9(0x30d)](_0x104681,{'params':{'resourceId':JSON['stringify'](_0x108a18[_0x3a39d9(0x45f)])}}))[_0x3a39d9(0x1e5)];}[_0x28eb85(0x249)](){const _0xf68d92=_0x28eb85;throw new Error(_0xf68d92(0x409));}[_0x28eb85(0x3ce)](){const _0xedff03=_0x28eb85;throw new Error(_0xedff03(0x409));}[_0x28eb85(0x1db)](){const _0x52f207=_0x28eb85;throw new Error(_0x52f207(0x409));}[_0x28eb85(0x1df)](){const _0x29444b=_0x28eb85;throw new Error(_0x29444b(0x409));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a[_0x28eb85(0x420)]),lt(0x1,a['Inject'](P[_0x28eb85(0x176)]))],exports[_0x28eb85(0x515)]);var mn=Object[_0x28eb85(0x114)],In=Object[_0x28eb85(0x38b)],pn=(_0xcd3011,_0x462022,_0x105a78,_0x528c95)=>{const _0x5dec7f=_0x28eb85;for(var _0x14673a=_0x528c95>0x1?void 0x0:_0x528c95?In(_0x462022,_0x105a78):_0x462022,_0x348a06=_0xcd3011[_0x5dec7f(0x355)]-0x1,_0x47ee28;_0x348a06>=0x0;_0x348a06--)(_0x47ee28=_0xcd3011[_0x348a06])&&(_0x14673a=(_0x528c95?_0x47ee28(_0x462022,_0x105a78,_0x14673a):_0x47ee28(_0x14673a))||_0x14673a);return _0x528c95&&_0x14673a&&mn(_0x462022,_0x105a78,_0x14673a),_0x14673a;},_e=(_0x19062c,_0x263ca3)=>(_0x23b1a3,_0x128df7)=>_0x263ca3(_0x23b1a3,_0x128df7,_0x19062c);let Be=class extends a[_0x28eb85(0x4bc)]{constructor(_0x5b9e56,_0x15d1ff,_0x225e35,_0x4f21cd,_0x7481b4){const _0x4671c8=_0x28eb85;super(_0x5b9e56,_0x15d1ff,_0x225e35),this[_0x4671c8(0x294)]=_0x4f21cd,this['_logService']=_0x7481b4;}[_0x28eb85(0x15a)](_0x4e23a9,_0x959415){const _0x4e72ba=_0x28eb85,_0x240a14=this[_0x4e72ba(0x267)](_0x4e23a9);if(_0x240a14)try{const _0x4d355b=this[_0x4e72ba(0x3c3)](_0x240a14,_0x959415);this[_0x4e72ba(0x38a)](_0x4e23a9,_0x4d355b);}catch(_0x44d678){this[_0x4e72ba(0x1a7)][_0x4e72ba(0x533)]('[CollaborationUndoRedoService]',_0x44d678),this['_clearUndo'](_0x4e23a9);}const _0x3a6647=this[_0x4e72ba(0x1c3)](_0x4e23a9);if(_0x3a6647)try{const _0x595169=this[_0x4e72ba(0x3c3)](_0x3a6647,_0x959415);this['_substituteRedoStack'](_0x4e23a9,_0x595169);}catch(_0x5a6d63){this[_0x4e72ba(0x1a7)][_0x4e72ba(0x533)](_0x5a6d63),this[_0x4e72ba(0x206)](_0x4e23a9);}}[_0x28eb85(0x12e)](_0x370d61){const _0x3e467d=_0x28eb85,_0xd71e18=this[_0x3e467d(0x267)](_0x370d61);_0xd71e18&&(_0xd71e18[_0x3e467d(0x355)]=0x0,this['_updateStatus']());}['_clearRedo'](_0xb9c989){const _0x4731d9=_0x28eb85,_0x4c5ea0=this[_0x4731d9(0x1c3)](_0xb9c989);_0x4c5ea0&&(_0x4c5ea0['length']=0x0,this[_0x4731d9(0x15b)]());}['_substituteUndoStack'](_0x3ed1bc,_0x2c62a3){const _0x428e2d=_0x28eb85;this[_0x428e2d(0x381)][_0x428e2d(0x191)](_0x3ed1bc,_0x2c62a3),this[_0x428e2d(0x15b)]();}[_0x28eb85(0x326)](_0x5acfe2,_0x4007a6){const _0x2669d1=_0x28eb85;this['_redoStacks'][_0x2669d1(0x191)](_0x5acfe2,_0x4007a6),this[_0x2669d1(0x15b)]();}['_transformStack'](_0x458591,_0x5ac37c){const _0x1e0f60=_0x28eb85,_0x4480f4=[];let _0x4bfa4f=_0x5ac37c,_0x1b06f3=_0x5ac37c;for(let _0x2642fb=_0x458591[_0x1e0f60(0x355)]-0x1;_0x2642fb>=0x0;_0x2642fb--){const {unitID:_0x1ea307,undoMutations:_0x187913,redoMutations:_0x37ffee}=_0x458591[_0x2642fb],_0x51ae7a=this[_0x1e0f60(0x294)][_0x1e0f60(0x3ff)](_0x4bfa4f,_0x187913),_0x10dd2d=this['_transformService'][_0x1e0f60(0x3ff)](_0x1b06f3,_0x37ffee);if(_[_0x1e0f60(0x4f2)](_0x51ae7a)||_[_0x1e0f60(0x4f2)](_0x10dd2d)){this[_0x1e0f60(0x1a7)][_0x1e0f60(0x533)](_0x1e0f60(0x2bc),'transformStack\x20failed!',_0x51ae7a,_0x10dd2d);break;}_0x4bfa4f=_0x51ae7a[_0x1e0f60(0x338)],_0x1b06f3=_0x10dd2d[_0x1e0f60(0x338)],_0x4480f4[_0x1e0f60(0x3f4)]({'unitID':_0x1ea307,'undoMutations':_0x51ae7a[_0x1e0f60(0x480)],'redoMutations':_0x10dd2d['m2Prime']});}return _0x4480f4['reverse']();}};Be=pn([_e(0x0,a[_0x28eb85(0x286)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x28eb85(0x4bb)]),_e(0x3,_['ITransformService']),_e(0x4,a[_0x28eb85(0x155)])],Be);class Nt extends a[_0x28eb85(0x2f9)]{constructor(){const _0x327a4d=_0x28eb85;super(),d(this,'urlChange$'),this['urlChange$']=v[_0x327a4d(0x33b)](window,_0x327a4d(0x161))[_0x327a4d(0x495)](v[_0x327a4d(0x256)](this[_0x327a4d(0x2fb)]),v[_0x327a4d(0x1c6)](0x1),v['mapTo'](void 0x0));}[_0x28eb85(0x119)](_0x225edf,_0x38fa08,_0x318dae=!0x1){const _0x51d2b9=_0x28eb85,_0x382165=new URL(window[_0x51d2b9(0x4b4)][_0x51d2b9(0x18d)]);_0x382165['searchParams'][_0x51d2b9(0x191)](_0x225edf,_0x38fa08),_0x318dae?window[_0x51d2b9(0x315)][_0x51d2b9(0x117)]('','',_0x382165['toString']()):window[_0x51d2b9(0x315)][_0x51d2b9(0x238)]('','',_0x382165[_0x51d2b9(0x45e)]());}[_0x28eb85(0x1af)](_0x449b28,_0x42a4b5=!0x1){const _0xb1d3c8=_0x28eb85,_0x4d998b=new URL(window[_0xb1d3c8(0x4b4)][_0xb1d3c8(0x18d)]);_0x4d998b[_0xb1d3c8(0x361)][_0xb1d3c8(0x25f)](_0x449b28),_0x42a4b5?window[_0xb1d3c8(0x315)][_0xb1d3c8(0x117)]('','',_0x4d998b[_0xb1d3c8(0x45e)]()):window[_0xb1d3c8(0x315)][_0xb1d3c8(0x238)]('','',_0x4d998b[_0xb1d3c8(0x45e)]());}[_0x28eb85(0x497)](_0x4d90f3){const _0x5ae31f=_0x28eb85;var _0x3ae7ba;return(_0x3ae7ba=new URL(window[_0x5ae31f(0x4b4)][_0x5ae31f(0x18d)])[_0x5ae31f(0x361)][_0x5ae31f(0x30d)](_0x4d90f3))!=null?_0x3ae7ba:void 0x0;}}var At=Object[_0x28eb85(0x114)],Cn=Object[_0x28eb85(0x38b)],En=(_0xd062c3,_0x2071ab,_0x10f155)=>_0x2071ab in _0xd062c3?At(_0xd062c3,_0x2071ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10f155}):_0xd062c3[_0x2071ab]=_0x10f155,bn=(_0x4eefcd,_0x190c67,_0x607bb3,_0x1d7d53)=>{for(var _0x57d440=_0x1d7d53>0x1?void 0x0:_0x1d7d53?Cn(_0x190c67,_0x607bb3):_0x190c67,_0xfa145d=_0x4eefcd['length']-0x1,_0x5dedc0;_0xfa145d>=0x0;_0xfa145d--)(_0x5dedc0=_0x4eefcd[_0xfa145d])&&(_0x57d440=(_0x1d7d53?_0x5dedc0(_0x190c67,_0x607bb3,_0x57d440):_0x5dedc0(_0x57d440))||_0x57d440);return _0x1d7d53&&_0x57d440&&At(_0x190c67,_0x607bb3,_0x57d440),_0x57d440;},ve=(_0x210e34,_0x17e7d9)=>(_0x43e063,_0x46ba5d)=>_0x17e7d9(_0x43e063,_0x46ba5d,_0x210e34),Tn=(_0x3d01f4,_0x2bc17a,_0x3d6fba)=>En(_0x3d01f4,_0x2bc17a+'',_0x3d6fba);const Rn=_0x28eb85(0x4ae);exports[_0x28eb85(0x4d5)]=class extends a[_0x28eb85(0x289)]{constructor(_0x54345a=ts,_0x36ac39,_0x1b61aa,_0x121152,_0x315d31){const _0x42ec85=_0x28eb85;super(),this[_0x42ec85(0x464)]=_0x54345a,this[_0x42ec85(0x1a7)]=_0x36ac39,this['_renderManagerService']=_0x1b61aa,this['_injector']=_0x121152,this[_0x42ec85(0x4d8)]=_0x315d31;const {..._0x585d2e}=this['_config'];this[_0x42ec85(0x4d8)][_0x42ec85(0x158)](A,_0x585d2e);}[_0x28eb85(0x3b6)](){const _0x4418bd=_0x28eb85;this[_0x4418bd(0x11e)](),a['touchDependencies'](this['_injector'],[[ie],[exports[_0x4418bd(0x4e8)]],[Ee]]);}[_0x28eb85(0x1b6)](){const _0x411e91=_0x28eb85;a[_0x411e91(0x4d0)](this[_0x411e91(0x152)],[[Ie]]);}[_0x28eb85(0x27a)](){const _0x95dc84=_0x28eb85;this[_0x95dc84(0x4ca)]();}[_0x28eb85(0x11e)](){const _0x247002=_0x28eb85;var _0x4d8ceb,_0x3ce449,_0x4ba0fc,_0x1cf457;this[_0x247002(0x152)][_0x247002(0x186)](a[_0x247002(0x247)])&&this[_0x247002(0x1a7)][_0x247002(0x533)](_0x247002(0x44d),_0x247002(0x45a));let _0x494c9e=[[a['IUndoRedoService'],{'useClass':Be}],[exports['CollaborationSessionService']],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports['LocalCacheService']],[P[_0x247002(0x2a1)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x3ce449=(_0x4d8ceb=this[_0x247002(0x464)])==null?void 0x0:_0x4d8ceb[_0x247002(0x283)])!=null?_0x3ce449:exports[_0x247002(0x41a)]}],[P['IHTTPImplementation'],{'useClass':P[_0x247002(0x30e)]}],[_[_0x247002(0x383)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x247002(0x207)],{'useClass':exports['AuthzIoHttpService']}],[L['IImageIoService'],{'useClass':exports[_0x247002(0x281)]}],[exports[_0x247002(0x4af)]],[exports['DataLoaderController']],[exports[_0x247002(0x190)]],[Ie],[ie]];(_0x4ba0fc=this[_0x247002(0x464)])!=null&&_0x4ba0fc[_0x247002(0x264)]&&_0x494c9e[_0x247002(0x3f4)]([be,{'useClass':ys}]),_0x494c9e=a[_0x247002(0x446)](_0x494c9e,(_0x1cf457=this[_0x247002(0x464)])==null?void 0x0:_0x1cf457['override']),_0x494c9e[_0x247002(0x2bf)](_0x5b2ccd=>this[_0x247002(0x152)]['add'](_0x5b2ccd)),this['_initModules']();}[_0x28eb85(0x4ca)](){const _0x5f566d=_0x28eb85;this[_0x5f566d(0x214)](this[_0x5f566d(0x272)][_0x5f566d(0x3c5)](a[_0x5f566d(0x24a)][_0x5f566d(0x43a)],[xe])),this[_0x5f566d(0x214)](this['_renderManagerService'][_0x5f566d(0x3c5)](a[_0x5f566d(0x24a)][_0x5f566d(0x384)],[ke]));}[_0x28eb85(0x1d2)](){const _0x4a5ebd=_0x28eb85;var _0x29f6f5,_0x1f6bc1;this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](P[_0x4a5ebd(0x176)])[_0x4a5ebd(0x188)]({'priority':0x14,'interceptor':P[_0x4a5ebd(0x42b)]({'maxParallel':0x6})}),this[_0x4a5ebd(0x152)]['get'](Ce),(_0x29f6f5=this[_0x4a5ebd(0x464)])!=null&&_0x29f6f5[_0x4a5ebd(0x41f)]||this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](exports[_0x4a5ebd(0x1f5)])[_0x4a5ebd(0x180)](),(_0x1f6bc1=this[_0x4a5ebd(0x464)])!=null&&_0x1f6bc1[_0x4a5ebd(0x142)]&&this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](pe),this[_0x4a5ebd(0x152)]['get'](exports['CollaborationController']),this[_0x4a5ebd(0x152)]['has'](exports[_0x4a5ebd(0x190)])&&this['_injector'][_0x4a5ebd(0x30d)](exports['DesktopCollaborationStatusDisplayController']);}},Tn(exports[_0x28eb85(0x4d5)],_0x28eb85(0x20c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x28eb85(0x4a8)](_[_0x28eb85(0x1a4)]),ve(0x1,a['ILogService']),ve(0x2,R[_0x28eb85(0x209)]),ve(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),ve(0x4,a[_0x28eb85(0x420)])],exports['UniverCollaborationClientPlugin']),exports[_0x28eb85(0x448)]=Mt,exports[_0x28eb85(0x29d)]=gt,exports[_0x28eb85(0x163)]=ut,exports[_0x28eb85(0x255)]=y,exports[_0x28eb85(0x20e)]=wt,exports[_0x28eb85(0x474)]=Ge,exports[_0x28eb85(0x3d6)]=dt,exports[_0x28eb85(0x308)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x28eb85(0x27e)]=ze,exports[_0x28eb85(0x38d)]=ft,exports[_0x28eb85(0x4c1)]=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x28eb85(0x2ac)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x28eb85(0x39a)]=_t,exports[_0x28eb85(0x2a4)]=$,exports[_0x28eb85(0x241)]=Ot,exports[_0x28eb85(0x375)]=Nt,exports[_0x28eb85(0x329)]=Ct,exports[_0x28eb85(0x3c0)]=Et;
|
1
|
+
'use strict';const _0x3b22f=_0x2c53;(function(_0x542c55,_0x381953){const _0x2f8498=_0x2c53,_0x21ef96=_0x542c55();while(!![]){try{const _0x4a1877=parseInt(_0x2f8498(0x5bb))/0x1+-parseInt(_0x2f8498(0x493))/0x2+-parseInt(_0x2f8498(0x24d))/0x3+parseInt(_0x2f8498(0x500))/0x4+parseInt(_0x2f8498(0x454))/0x5+parseInt(_0x2f8498(0x485))/0x6*(-parseInt(_0x2f8498(0x393))/0x7)+parseInt(_0x2f8498(0x2c7))/0x8*(parseInt(_0x2f8498(0x596))/0x9);if(_0x4a1877===_0x381953)break;else _0x21ef96['push'](_0x21ef96['shift']());}catch(_0x3655a1){_0x21ef96['push'](_0x21ef96['shift']());}}}(_0x1d05,0xb9f87));var kt=Object[_0x3b22f(0x1ff)],Bt=(_0x24d878,_0x5b5829,_0x24ba3c)=>_0x5b5829 in _0x24d878?kt(_0x24d878,_0x5b5829,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ba3c}):_0x24d878[_0x5b5829]=_0x24ba3c,d=(_0x5dbfcf,_0x48ff5d,_0x4320a9)=>Bt(_0x5dbfcf,typeof _0x48ff5d!='symbol'?_0x48ff5d+'':_0x48ff5d,_0x4320a9);Object[_0x3b22f(0x1ff)](exports,Symbol[_0x3b22f(0x545)],{'value':_0x3b22f(0x2a7)});const a=require(_0x3b22f(0x3f8)),v=require(_0x3b22f(0x25b)),E=require(_0x3b22f(0x4af)),X=require(_0x3b22f(0x1ec)),N=require('@univerjs/ui'),P=require(_0x3b22f(0x384)),_=require(_0x3b22f(0x23a)),Vt=require(_0x3b22f(0x49c)),V=require(_0x3b22f(0x1f9)),w=require(_0x3b22f(0x591)),C=require(_0x3b22f(0x473)),R=require(_0x3b22f(0x3cf)),L=require(_0x3b22f(0x3ed)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require(_0x3b22f(0x4e5)),Wt=require(_0x3b22f(0x2e0)),Ft=require(_0x3b22f(0x251)),ht=_0x3b22f(0x227),Gt=_0x3b22f(0x452),_t=_0x3b22f(0x367),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x3b22f(0x2da),Xt=_0x3b22f(0x32f),dt=_0x3b22f(0x488),qt=0x7530,Ve=_0x3b22f(0x4b7),St=0x4e20,zt=0x4e20,vt=_0x3b22f(0x56a),Jt=0x3,ft=_0x3b22f(0x296),Zt=0x3e8,gt=_0x3b22f(0x4a8),Qt=_0x3b22f(0x39b),mt='LOGIN_URL_KEY',es=_0x3b22f(0x365);var It=(_0x3b0409=>(_0x3b0409[_0x3b0409[_0x3b22f(0x517)]=0x0]='UNDEFINED',_0x3b0409[_0x3b0409['OK']=0x1]='OK',_0x3b0409[_0x3b0409[_0x3b22f(0x512)]=0x2]=_0x3b22f(0x512),_0x3b0409[_0x3b0409[_0x3b22f(0x3a7)]=0x3]='PERMISSION_DENIED',_0x3b0409[_0x3b0409[_0x3b22f(0x402)]=0x4]=_0x3b22f(0x402),_0x3b0409[_0x3b0409['UNAUTHENTICATED']=0x5]=_0x3b22f(0x380),_0x3b0409[_0x3b0409[_0x3b22f(0x4e3)]=0x6]=_0x3b22f(0x4e3),_0x3b0409[_0x3b0409[_0x3b22f(0x201)]=0x7]=_0x3b22f(0x201),_0x3b0409[_0x3b0409[_0x3b22f(0x1fe)]=0x8]='TOO_MANY_REQUESTS',_0x3b0409[_0x3b0409[_0x3b22f(0x204)]=0x9]=_0x3b22f(0x204),_0x3b0409[_0x3b0409[_0x3b22f(0x275)]=0x1389]=_0x3b22f(0x275),_0x3b0409[_0x3b0409['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b22f(0x232),_0x3b0409[_0x3b0409[_0x3b22f(0x433)]=0x1772]=_0x3b22f(0x433),_0x3b0409[_0x3b0409['APPLY_REJECT']=0x1b59]=_0x3b22f(0x2eb),_0x3b0409[_0x3b0409[_0x3b22f(0x470)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3b0409[_0x3b0409[_0x3b22f(0x4f9)]=0x1b5b]=_0x3b22f(0x4f9),_0x3b0409[_0x3b0409['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b22f(0x430),_0x3b0409[_0x3b0409[_0x3b22f(0x56f)]=0x1f41]=_0x3b22f(0x56f),_0x3b0409[_0x3b0409['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b22f(0x44d),_0x3b0409[_0x3b0409[_0x3b22f(0x587)]=0x232a]=_0x3b22f(0x587),_0x3b0409[_0x3b0409[_0x3b22f(0x2e4)]=0x232b]=_0x3b22f(0x2e4),_0x3b0409[_0x3b0409[_0x3b22f(0x2ae)]=0x232c]=_0x3b22f(0x2ae),_0x3b0409[_0x3b0409[_0x3b22f(0x5cc)]=0x232d]=_0x3b22f(0x5cc),_0x3b0409[_0x3b0409[_0x3b22f(0x54d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3b0409[_0x3b0409['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3b0409[_0x3b0409[_0x3b22f(0x3c7)]=0x2713]=_0x3b22f(0x3c7),_0x3b0409[_0x3b0409[_0x3b22f(0x3a3)]=0x2714]=_0x3b22f(0x3a3),_0x3b0409[_0x3b0409['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x3b0409))(It||{}),j=(_0x5461ba=>(_0x5461ba[_0x5461ba[_0x3b22f(0x5c9)]=0x0]='UNIVER_UNKNOWN',_0x5461ba[_0x5461ba['UNIVER_DOC']=0x1]=_0x3b22f(0x332),_0x5461ba[_0x5461ba[_0x3b22f(0x3c0)]=0x2]=_0x3b22f(0x3c0),_0x5461ba[_0x5461ba[_0x3b22f(0x575)]=0x3]='UNIVER_SLIDE',_0x5461ba[_0x5461ba['UNIVER_PROJECT']=0x4]=_0x3b22f(0x5cf),_0x5461ba[_0x5461ba[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0x5461ba))(j||{}),b=(_0x25bb8e=>(_0x25bb8e[_0x25bb8e[_0x3b22f(0x362)]=0x0]=_0x3b22f(0x362),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2bd)]=0x1]=_0x3b22f(0x2bd),_0x25bb8e[_0x25bb8e['JOIN']=0x2]=_0x3b22f(0x23b),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2e6)]=0x3]=_0x3b22f(0x2e6),_0x25bb8e[_0x25bb8e['INGEST']=0x4]=_0x3b22f(0x4ef),_0x25bb8e[_0x25bb8e[_0x3b22f(0x233)]=0x5]='HEARTBEAT',_0x25bb8e[_0x25bb8e['RECV']=0x6]='RECV',_0x25bb8e[_0x25bb8e[_0x3b22f(0x23f)]=-0x1]=_0x3b22f(0x23f),_0x25bb8e))(b||{}),We=(_0xa48f7c=>(_0xa48f7c[_0xa48f7c['UNKNOWN_CODE']=0x0]=_0x3b22f(0x2a8),_0xa48f7c[_0xa48f7c['OK']=0x1]='OK',_0xa48f7c[_0xa48f7c[_0x3b22f(0x438)]=0x2]=_0x3b22f(0x438),_0xa48f7c[_0xa48f7c[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0xa48f7c))(We||{}),pt=(_0x2795c6=>(_0x2795c6[_0x2795c6['Undefined']=0x0]=_0x3b22f(0x317),_0x2795c6[_0x2795c6[_0x3b22f(0x4bf)]=0x1]=_0x3b22f(0x4bf),_0x2795c6[_0x2795c6['HttpExport']=0x2]='HttpExport',_0x2795c6[_0x2795c6[_0x3b22f(0x4bd)]=0x3]=_0x3b22f(0x4bd),_0x2795c6[_0x2795c6[_0x3b22f(0x4ba)]=0x4]=_0x3b22f(0x4ba),_0x2795c6[_0x2795c6['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x2795c6))(pt||{});const A='collaboration-client.config',ts={};function Ct(_0x3bf457){const _0x39daaf=_0x3b22f;var _0x2a2901,_0x1219a8,_0x123bab,_0x735a22;const _0x51b696=_0x3bf457[_0x39daaf(0x45b)],_0xe9cb32=JSON[_0x39daaf(0x4f1)](_0x51b696);switch(_0xe9cb32[_0x39daaf(0x4d4)]){case b[_0x39daaf(0x233)]:case b[_0x39daaf(0x2bd)]:{const _0x3ce738=_0xe9cb32[_0x39daaf(0x37e)];return{..._0xe9cb32,'data':_0x3ce738,'cmd':_0xe9cb32['cmd']};}case b[_0x39daaf(0x23b)]:{const _0x155ec7=_0xe9cb32[_0x39daaf(0x387)];return{..._0xe9cb32,'data':_0x155ec7,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};}case b[_0x39daaf(0x2f0)]:{const _0x5ac54d=_0xe9cb32[_0x39daaf(0x2d7)];switch(_0x5ac54d[_0x39daaf(0x3cc)]){case _[_0x39daaf(0x44c)][_0x39daaf(0x4a2)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x2a2901=_0x5ac54d[_0x39daaf(0x5aa)])==null?void 0x0:_0x2a2901['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x428)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x1219a8=_0x5ac54d['csAckEvent'])==null?void 0x0:_0x1219a8['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['NEW_CHANGESETS']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x123bab=_0x5ac54d[_0x39daaf(0x27e)])==null?void 0x0:_0x123bab['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x36e)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x735a22=_0x5ac54d[_0x39daaf(0x408)])==null?void 0x0:_0x735a22['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b6)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x306)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['USERS_ENTER']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x436)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x51c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x24e)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b7)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5e6)]},'cmd':_0xe9cb32['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x39daaf(0x44c)]['LIVESHARE_OPERATION']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x2e9)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x47b)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['liveShareNewHost']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['MSG_FOR_ERROR']:return{..._0xe9cb32,'data':_0x5ac54d,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x431)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5b0)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['UPDATE_PERMISSION_OBJ']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['updatePermissionObjEvent']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x50c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['shouldCloseConn']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};default:return _0xe9cb32;}}default:return _0xe9cb32;}}function Et(_0x427781){const _0x4755b4=_0x3b22f;switch(_0x427781[_0x4755b4(0x4d4)]){case b['HEARTBEAT']:case b[_0x4755b4(0x2bd)]:return JSON['stringify']({'cmd':_0x427781['cmd'],'routeKey':_0x427781[_0x4755b4(0x32a)]});case b[_0x4755b4(0x4ef)]:{let _0x4f6ece;switch(_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x3cc)]){case _['CollaborationEvent'][_0x4755b4(0x5b6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b6)],'updateCursorEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x51c)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x51c)],'leaveEvent':_0x427781[_0x4755b4(0x45b)]['data']};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x3a6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['USERS_ENTER'],'joinEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x5b7)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b7)],'liveShareNewHost':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)]['LIVESHARE_OPERATION']:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x427781['data']['data']};break;}case _['CollaborationEvent'][_0x4755b4(0x47b)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x47b)],'liveShareTerminate':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x432)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x432)],'liveShareRequestHost':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x5db)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5db)]};break;}default:_0x4f6ece={'eventID':_0x427781[_0x4755b4(0x45b)]['eventID']};}return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'collaMsg':_0x4f6ece});}case b[_0x4755b4(0x23b)]:return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'joinReq':_0x427781[_0x4755b4(0x45b)]});case b[_0x4755b4(0x2e6)]:return JSON['stringify']({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781[_0x4755b4(0x32a)],'leaveReq':_0x427781[_0x4755b4(0x45b)]});default:throw new Error(_0x4755b4(0x4c7));}}var ss=Object[_0x3b22f(0x1ff)],is=Object[_0x3b22f(0x246)],ns=(_0x11a2ed,_0x2ae0c8,_0x596a5a,_0x8ded37)=>{const _0x506c3f=_0x3b22f;for(var _0x38a5c1=_0x8ded37>0x1?void 0x0:_0x8ded37?is(_0x2ae0c8,_0x596a5a):_0x2ae0c8,_0xd6724f=_0x11a2ed[_0x506c3f(0x291)]-0x1,_0x3aa1c6;_0xd6724f>=0x0;_0xd6724f--)(_0x3aa1c6=_0x11a2ed[_0xd6724f])&&(_0x38a5c1=(_0x8ded37?_0x3aa1c6(_0x2ae0c8,_0x596a5a,_0x38a5c1):_0x3aa1c6(_0x38a5c1))||_0x38a5c1);return _0x8ded37&&_0x38a5c1&&ss(_0x2ae0c8,_0x596a5a,_0x38a5c1),_0x38a5c1;},oe=(_0x3c0691,_0x46f825)=>(_0x12f522,_0x481c88)=>_0x46f825(_0x12f522,_0x481c88,_0x3c0691);const Fe=a[_0x3b22f(0x3cd)](_0x3b22f(0x2f8));function rs(_0x2dfe66,_0x1f63d9,_0x5a012e){const _0x2b4446=_0x3b22f;return _0x2dfe66+'/'+_0x1f63d9+_0x2b4446(0x37a)+_0x5a012e+_0x2b4446(0x33e);}exports[_0x3b22f(0x272)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x4e339c,_0x501391,_0x58a1d6,_0x39fa80,_0x1f65d6){const _0x3dbd5f=_0x3b22f;super(),this[_0x3dbd5f(0x220)]=_0x4e339c,this[_0x3dbd5f(0x2b3)]=_0x501391,this[_0x3dbd5f(0x266)]=_0x58a1d6,this[_0x3dbd5f(0x445)]=_0x39fa80,this[_0x3dbd5f(0x214)]=_0x1f65d6;}[_0x3b22f(0x3a1)](_0x4785a9){const _0xf5e52e=_0x3b22f,_0x3d7734=this[_0xf5e52e(0x2b3)][_0xf5e52e(0x3a1)](_0x4785a9);if(!_0x3d7734)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3c1e55=new a['DisposableCollection'](),_0x1318e1=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x324)]['subscribe'](_0x5ed026=>_0x1318e1[_0xf5e52e(0x52d)](_0x5ed026))),_0x3c1e55['add'](a['toDisposable'](()=>_0x1318e1[_0xf5e52e(0x2ec)]()));const _0x5f2ca0=new v['Subject']();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x505)][_0xf5e52e(0x42c)](_0x84bbd0=>_0x5f2ca0[_0xf5e52e(0x52d)](_0x84bbd0))),_0x3c1e55['add'](a['toDisposable'](()=>_0x5f2ca0[_0xf5e52e(0x2ec)]()));const _0x1b6752=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x1fa)]['subscribe'](_0x1b6071=>{const _0x1049d6=_0xf5e52e,_0x429724=Ct(_0x1b6071);_0x1b6752[_0x1049d6(0x52d)](_0x429724);})),_0x3c1e55[_0xf5e52e(0x405)](a['toDisposable'](()=>_0x1b6752[_0xf5e52e(0x2ec)]()));let _0x22e797;const _0x5874d3=()=>{const _0x11f8d=_0xf5e52e;_0x5f2ca0[_0x11f8d(0x52d)](new Event(_0x11f8d(0x5c4))),_0x1318e1['next'](new CloseEvent(_0x11f8d(0x5c4))),_0x22e797[_0x11f8d(0x3ec)]();};return _0x22e797={'memberID':'','close$':_0x1318e1[_0xf5e52e(0x56e)](),'error$':_0x5f2ca0[_0xf5e52e(0x56e)](),'open$':_0x3d7734[_0xf5e52e(0x486)],'message$':_0x1b6752[_0xf5e52e(0x56e)](),'send':_0x4a73e2=>{const _0x8cd0f7=_0xf5e52e;if(_0x4a73e2[_0x8cd0f7(0x4d4)]===b[_0x8cd0f7(0x4ef)]){if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_[_0x8cd0f7(0x44c)][_0x8cd0f7(0x5ac)]){this['_submitChangeset'](_0x22e797,_0x4a73e2[_0x8cd0f7(0x45b)])['catch'](_0x1b171f=>{const _0x5e942e=_0x8cd0f7;this[_0x5e942e(0x445)][_0x5e942e(0x49d)](_0x1b171f),_0x5874d3();});return;}if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_['CollaborationEvent'][_0x8cd0f7(0x2c1)]){const _0x5be338=_0x4a73e2[_0x8cd0f7(0x45b)];this[_0x8cd0f7(0x269)](_0x5be338)[_0x8cd0f7(0x395)](_0x3aa016=>{const _0x235ac=_0x8cd0f7;_0x1b6752[_0x235ac(0x52d)]({'cmd':b[_0x235ac(0x2f0)],'code':We['OK'],'routeKey':_0x5be338[_0x235ac(0x45b)][_0x235ac(0x40e)],'routeType':'','data':{'eventID':_[_0x235ac(0x44c)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3aa016}}});})[_0x8cd0f7(0x3c9)](_0xa2bc4c=>{const _0x4ccfb2=_0x8cd0f7;this[_0x4ccfb2(0x445)]['error'](_0xa2bc4c),_0x5874d3();});return;}}_0x3d7734[_0x8cd0f7(0x3c5)](Et(_0x4a73e2));},'close':()=>{const _0x23c50c=_0xf5e52e;_0x3d7734[_0x23c50c(0x3ec)](),_0x3c1e55[_0x23c50c(0x4f2)]();}},_0x22e797;}async[_0x3b22f(0x43c)](_0x512d74,_0x543f42){const _0x106995=_0x3b22f;var _0x8b63e3,_0x21ab0e;const {unitType:_0x359b89,unitID:_0x2b6504,changeset:_0x2dc7e3}=_0x543f42['data'],_0x32b0a7={'unitID':_0x2b6504,'memberID':_0x512d74[_0x106995(0x598)],'type':_0x359b89,'changeset':_[_0x106995(0x5e3)](_0x2dc7e3)},_0x503400=this[_0x106995(0x266)][_0x106995(0x504)](gt),_0x2bdac7=this['_configService'][_0x106995(0x504)](A),_0x20428e=rs((_0x21ab0e=(_0x8b63e3=_0x2bdac7==null?void 0x0:_0x2bdac7[_0x106995(0x4e4)])!=null?_0x8b63e3:_0x503400)!=null?_0x21ab0e:Qt,_0x359b89,_0x2b6504);try{await this['_http'][_0x106995(0x221)](_0x20428e,{'body':_0x32b0a7});}catch(_0x16310a){throw this[_0x106995(0x445)]['error'](_0x106995(0x3e7),_0x106995(0x5b5)),_0x16310a;}}async[_0x3b22f(0x269)](_0xf9977d){const _0x18686b=_0x3b22f,{unitID:_0x268aaa,from:_0x5e0560,to:_0x5b50ee,unitType:_0x5c3842}=_0xf9977d[_0x18686b(0x45b)];return(await this[_0x18686b(0x214)][_0x18686b(0x5c2)]({'metadata':void 0x0},{'unitID':_0x268aaa,'type':_0x5c3842,'from':_0x5e0560,'to':_0x5b50ee}))[_0x18686b(0x528)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),oe(0x1,a[_0x3b22f(0x492)](P['WebSocketService'])),oe(0x2,a[_0x3b22f(0x5ad)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3b22f(0x2ce)])],exports[_0x3b22f(0x272)]);const os=_0x3b22f(0x50d);function as(_0x50bc8c){const _0x16272e=_0x3b22f;return JSON[_0x16272e(0x56d)](_0x50bc8c)['length'];}class Ge{constructor(){const _0x17da58=_0x3b22f;d(this,'_commentUpdate$',new v[(_0x17da58(0x25f))]()),d(this,_0x17da58(0x5df),this['_commentUpdate$'][_0x17da58(0x56e)]());}[_0x3b22f(0x3f6)](_0x5ed6b8){const _0x4fc529=_0x3b22f;this[_0x4fc529(0x1ee)][_0x4fc529(0x52d)](_0x5ed6b8);}}var cs=Object[_0x3b22f(0x1ff)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x200362,_0x309f93,_0x59004b,_0x39614b)=>{const _0x229d40=_0x3b22f;for(var _0x2bd977=_0x39614b>0x1?void 0x0:_0x39614b?ls(_0x309f93,_0x59004b):_0x309f93,_0x3e7add=_0x200362[_0x229d40(0x291)]-0x1,_0x30975f;_0x3e7add>=0x0;_0x3e7add--)(_0x30975f=_0x200362[_0x3e7add])&&(_0x2bd977=(_0x39614b?_0x30975f(_0x309f93,_0x59004b,_0x2bd977):_0x30975f(_0x2bd977))||_0x2bd977);return _0x39614b&&_0x2bd977&&cs(_0x309f93,_0x59004b,_0x2bd977),_0x2bd977;},Ze=(_0x428da7,_0x385df1)=>(_0x1f8fc3,_0x257734)=>_0x385df1(_0x1f8fc3,_0x257734,_0x428da7);let q=class extends a[_0x3b22f(0x4b0)]{constructor(_0x536e12,_0x45edb2){const _0x36155f=_0x3b22f;super(),d(this,_0x36155f(0x469),new Map()),(this[_0x36155f(0x340)]=_0x536e12,this[_0x36155f(0x437)]=_0x45edb2,this[_0x36155f(0x283)](a[_0x36155f(0x526)](v[_0x36155f(0x2c4)](this['_univerInstanceService'][_0x36155f(0x24f)](a[_0x36155f(0x38e)]['UNIVER_SHEET'])['pipe'](E['map'](_0x397def=>_0x397def[_0x36155f(0x52b)]())),this[_0x36155f(0x340)][_0x36155f(0x24f)](a[_0x36155f(0x38e)][_0x36155f(0x332)])[_0x36155f(0x3de)](E[_0x36155f(0x57b)](_0x5a6a04=>_0x5a6a04['getUnitId']())),this[_0x36155f(0x340)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SLIDE'])[_0x36155f(0x3de)](E['map'](_0x1cc48d=>_0x1cc48d[_0x36155f(0x52b)]())))[_0x36155f(0x42c)](_0x3fb67c=>this[_0x36155f(0x577)](_0x3fb67c)))));}[_0x3b22f(0x474)](_0x2de3c9){const _0x3ad99d=_0x3b22f;this[_0x3ad99d(0x437)]['setCurrentUser'](_0x2de3c9);}['getCurrentUser'](){const _0x361e07=_0x3b22f;return this[_0x361e07(0x437)]['getCurrentUser']();}[_0x3b22f(0x349)](_0x4719b1,_0x4a00c7){const _0x51ef9b=_0x3b22f;let _0xee3cd5=this['_roomMembers'][_0x51ef9b(0x34d)](_0x4719b1);_0xee3cd5||(_0xee3cd5=new _s(),this[_0x51ef9b(0x469)]['set'](_0x4719b1,_0xee3cd5)),_0xee3cd5[_0x51ef9b(0x349)](_0x4a00c7);}['removeMember'](_0xb0541c,_0x2644ae){const _0x1c69fd=_0x3b22f,_0x641818=this[_0x1c69fd(0x469)]['get'](_0xb0541c);_0x641818&&_0x641818[_0x1c69fd(0x345)](_0x2644ae);}[_0x3b22f(0x3a5)](_0x26ae54){const _0x5ad93b=_0x3b22f;return this[_0x5ad93b(0x469)][_0x5ad93b(0x34d)](_0x26ae54);}[_0x3b22f(0x303)](_0x4b2bd2,_0x31d0e2){const _0x58e84f=_0x3b22f,_0xd00d03=this[_0x58e84f(0x469)]['get'](_0x4b2bd2);if(_0xd00d03)return _0xd00d03[_0x58e84f(0x303)](_0x31d0e2);}[_0x3b22f(0x577)](_0x375d1c){const _0x55212c=_0x3b22f,_0x3ee3ff=this[_0x55212c(0x469)][_0x55212c(0x34d)](_0x375d1c);_0x3ee3ff&&(_0x3ee3ff[_0x55212c(0x4f2)](),this[_0x55212c(0x469)][_0x55212c(0x2cc)](_0x375d1c));}[_0x3b22f(0x4f2)](){const _0x13745a=_0x3b22f;this[_0x13745a(0x469)][_0x13745a(0x339)](_0x3821cb=>_0x3821cb[_0x13745a(0x4f2)]()),this[_0x13745a(0x469)][_0x13745a(0x249)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x564)]))],q);class _s extends a[_0x3b22f(0x4b0)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x3b22f(0x4f2)](){const _0x468a62=_0x3b22f;this[_0x468a62(0x311)][_0x468a62(0x249)]();}[_0x3b22f(0x349)](_0x13a000){const _0x502bc5=_0x3b22f;this[_0x502bc5(0x311)][_0x502bc5(0x305)](_0x13a000[_0x502bc5(0x598)],_0x13a000);}['removeMember'](_0x3fdb0b){const _0x5a9273=_0x3b22f;this[_0x5a9273(0x311)][_0x5a9273(0x2cc)](_0x3fdb0b);}['getMember'](_0x59394b){const _0x21926f=_0x3b22f;return this[_0x21926f(0x311)][_0x21926f(0x34d)](_0x59394b);}}var us=Object['defineProperty'],ds=Object[_0x3b22f(0x246)],Ss=(_0x405f15,_0x43379c,_0x110ca3,_0x4aee20)=>{const _0xc53a3e=_0x3b22f;for(var _0x2cd119=_0x4aee20>0x1?void 0x0:_0x4aee20?ds(_0x43379c,_0x110ca3):_0x43379c,_0x2cbca2=_0x405f15[_0xc53a3e(0x291)]-0x1,_0x26e6c0;_0x2cbca2>=0x0;_0x2cbca2--)(_0x26e6c0=_0x405f15[_0x2cbca2])&&(_0x2cd119=(_0x4aee20?_0x26e6c0(_0x43379c,_0x110ca3,_0x2cd119):_0x26e6c0(_0x2cd119))||_0x2cd119);return _0x4aee20&&_0x2cd119&&us(_0x43379c,_0x110ca3,_0x2cd119),_0x2cd119;},B=(_0x3034cf,_0x2dd923)=>(_0xab550a,_0x2bb3d4)=>_0x2dd923(_0xab550a,_0x2bb3d4,_0x3034cf),$=(_0x56472d=>(_0x56472d[_0x56472d[_0x3b22f(0x2d3)]=0x0]=_0x3b22f(0x2d3),_0x56472d[_0x56472d['JOINING']=0x1]=_0x3b22f(0x4f5),_0x56472d[_0x56472d[_0x3b22f(0x3ea)]=0x2]='OFFLINE',_0x56472d[_0x56472d[_0x3b22f(0x22f)]=0x3]=_0x3b22f(0x22f),_0x56472d))($||{});exports['CollaborationSession']=class extends a[_0x3b22f(0x398)]{constructor(_0x446a69,_0x1c3b81,_0x539b68,_0x20d871,_0x282e6f,_0x3fff74,_0x4cb2ed,_0xb03532,_0x332836,_0x5aa327){const _0x3f0e2a=_0x3b22f;super(),d(this,'_sessionStatus$',new v[(_0x3f0e2a(0x502))](0x0)),d(this,'sessionStatus$',this[_0x3f0e2a(0x400)][_0x3f0e2a(0x56e)]()),d(this,_0x3f0e2a(0x4ca),new v[(_0x3f0e2a(0x25f))]()),d(this,_0x3f0e2a(0x3b5),this[_0x3f0e2a(0x4ca)][_0x3f0e2a(0x56e)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,_0x3f0e2a(0x228)),d(this,_0x3f0e2a(0x47c),!0x1),d(this,'_telemetryInfo',null),(this['_unitID']=_0x446a69,this[_0x3f0e2a(0x445)]=_0x539b68,this[_0x3f0e2a(0x4e0)]=_0x20d871,this['_messageService']=_0x282e6f,this[_0x3f0e2a(0x266)]=_0x3fff74,this['_localeService']=_0x4cb2ed,this['_memberService']=_0xb03532,this[_0x3f0e2a(0x546)]=_0x332836,this[_0x3f0e2a(0x59a)]=_0x5aa327,this['_shouldReportTelemetry']=!!this[_0x3f0e2a(0x59a)],_0x1c3b81['pipe'](v['takeUntil'](this[_0x3f0e2a(0x2e1)]))[_0x3f0e2a(0x42c)](_0x356333=>{const _0x268640=_0x3f0e2a;var _0x3164d0;typeof _0x356333>'u'||(this[_0x268640(0x218)]=_0x356333,_0x356333?(this[_0x268640(0x59b)](_0x356333),this[_0x268640(0x3fa)]=_0x356333[_0x268640(0x1fa)][_0x268640(0x42c)](_0x2fd5fc=>{const _0x5db11e=_0x268640;_0x2fd5fc['routeKey']===this[_0x5db11e(0x2f9)]&&this['_onCombEvent'](_0x2fd5fc);})):(this[_0x268640(0x46f)](),this[_0x268640(0x400)][_0x268640(0x52d)](0x2),(_0x3164d0=this[_0x268640(0x3fa)])==null||_0x3164d0[_0x268640(0x3d4)](),this[_0x268640(0x3fa)]=null));}),this[_0x3f0e2a(0x283)](this[_0x3f0e2a(0x4e0)][_0x3f0e2a(0x4c4)](()=>{const _0x2c143a=_0x3f0e2a;var _0x27d0a7;(_0x27d0a7=this[_0x2c143a(0x218)])==null||_0x27d0a7['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2c143a(0x2f9)]}});})));}get[_0x3b22f(0x55a)](){const _0x4f2907=_0x3b22f;return this['_sessionStatus$'][_0x4f2907(0x2a9)]();}[_0x3b22f(0x597)](){const _0x32b3da=_0x3b22f;var _0x731e24,_0x22ffe2;return(_0x22ffe2=(_0x731e24=this[_0x32b3da(0x218)])==null?void 0x0:_0x731e24[_0x32b3da(0x598)])!=null?_0x22ffe2:null;}[_0x3b22f(0x4f2)](){const _0x548d5d=_0x3b22f;super[_0x548d5d(0x4f2)](),this[_0x548d5d(0x2e1)]['next'](),this['dispose$']['complete']();}[_0x3b22f(0x3ec)](){const _0xe2321c=_0x3b22f;var _0x5b8650,_0x12a237;this[_0xe2321c(0x46f)](),(_0x5b8650=this[_0xe2321c(0x218)])==null||_0x5b8650['send']({'cmd':b[_0xe2321c(0x2e6)],'data':{'roomID':this[_0xe2321c(0x2f9)]}}),(_0x12a237=this['_socket'])==null||_0x12a237[_0xe2321c(0x3ec)](),this['_event$'][_0xe2321c(0x2ec)](),this[_0xe2321c(0x400)][_0xe2321c(0x2ec)](),this[_0xe2321c(0x4f2)]();}[_0x3b22f(0x276)](_0x1490c9){const _0x48e5b2=_0x3b22f;_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x23b)]?this[_0x48e5b2(0x53c)](_0x1490c9):_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x2f0)]&&this[_0x48e5b2(0x2cf)](_0x1490c9);}[_0x3b22f(0x59b)](_0x19d757){const _0x3b6434=_0x3b22f;this['_sessionStatus$'][_0x3b6434(0x52d)](0x1),_0x19d757[_0x3b6434(0x3c5)]({'cmd':b[_0x3b6434(0x23b)],'routeKey':this[_0x3b6434(0x2f9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3b6434(0x2f9)]}]}});}['_onJoinRoomEvent'](_0x53b1c2){const _0x280934=_0x3b22f;var _0x2b1386;if(_0x53b1c2['code']===We[_0x280934(0x438)]){this['_messageService']['show']({'type':X['MessageType'][_0x280934(0x3b7)],'content':this['_localeService']['t']('session.room-full')}),this[_0x280934(0x400)][_0x280934(0x52d)](0x2);return;}this[_0x280934(0x400)]['next'](0x3);const _0x256cc8=(_0x2b1386=_0x53b1c2[_0x280934(0x45b)][_0x280934(0x411)][this[_0x280934(0x2f9)]])==null?void 0x0:_0x2b1386[_0x280934(0x212)];_0x256cc8&&_0x256cc8[_0x280934(0x339)](_0x4e7841=>this[_0x280934(0x4ec)][_0x280934(0x349)](this['_unitID'],_0x4e7841));}['_onRecvEvent'](_0x51e2a2){const _0x1d951b=_0x3b22f;try{const _0x1b621c=_0x51e2a2[_0x1d951b(0x45b)];switch(_0x1b621c[_0x1d951b(0x3cc)]){case _[_0x1d951b(0x44c)][_0x1d951b(0x3a6)]:this['_onUserJoin'](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x51c)]:this[_0x1d951b(0x423)](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _[_0x1d951b(0x44c)][_0x1d951b(0x428)]:this[_0x1d951b(0x3b0)](),this[_0x1d951b(0x516)](),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x290)]:this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x1d951b(0x268)+JSON[_0x1d951b(0x56d)](_0x1b621c)),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x431)]:this['_commentService'][_0x1d951b(0x3f6)](_0x1b621c[_0x1d951b(0x45b)]),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;default:this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);}}catch(_0x4b1e27){this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x4b1e27,_0x51e2a2);}}[_0x3b22f(0x368)](_0x14e18c){const _0x32c3e1=_0x3b22f;this[_0x32c3e1(0x4ec)][_0x32c3e1(0x349)](this[_0x32c3e1(0x2f9)],_0x14e18c['data']);}['_onUserLeave'](_0x2d51a4){const _0x5ae512=_0x3b22f;this['_memberService']['removeMember'](this[_0x5ae512(0x2f9)],_0x2d51a4[_0x5ae512(0x45b)][_0x5ae512(0x598)]);}async[_0x3b22f(0x3c5)](_0x8d37e3,_0x3352dd){const _0xb92a1d=_0x3b22f;if(this[_0xb92a1d(0x55a)]!==0x3||!this[_0xb92a1d(0x218)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x8d37e3[_0xb92a1d(0x3cc)]===_[_0xb92a1d(0x44c)]['SUBMIT_CHANGESET']&&(this[_0xb92a1d(0x538)](),this['_startTelemetryCollaborationNewChangeset'](_0x8d37e3)),this['_socket'][_0xb92a1d(0x3c5)]({'cmd':b[_0xb92a1d(0x4ef)],'routeKey':_0x3352dd,'routeType':'','data':_0x8d37e3});}catch(_0x2b1335){this[_0xb92a1d(0x445)][_0xb92a1d(0x49d)](_0x2b1335);}}[_0x3b22f(0x538)](){const _0xe73dcd=_0x3b22f;var _0x48934e;this['_collaborationTimeoutTimer']=window[_0xe73dcd(0x576)](()=>{const _0x305a7b=_0xe73dcd;this[_0x305a7b(0x228)]=null,this[_0x305a7b(0x31d)][_0x305a7b(0x224)]({'type':X['MessageType'][_0x305a7b(0x460)],'content':this[_0x305a7b(0x316)]['t']('session.collaboration-timeout')});},(_0x48934e=this['_configService'][_0xe73dcd(0x504)](Ve))!=null?_0x48934e:St);}[_0x3b22f(0x516)](){const _0x5dc8af=_0x3b22f;this[_0x5dc8af(0x228)]&&(clearTimeout(this[_0x5dc8af(0x228)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x192c22){const _0x4dfd5f=_0x3b22f;if(!this[_0x4dfd5f(0x47c)])return;const {data:_0x471c3c}=_0x192c22,{unitID:_0x1e1f74,changeset:_0x12f911}=_0x471c3c,{mutations:_0x56e6ab,type:_0x1a1e96}=_0x12f911;this[_0x4dfd5f(0x3f3)]={'unitId':_0x1e1f74,'type':_0x1a1e96,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x56e6ab)};}[_0x3b22f(0x3b0)](){const _0x147156=_0x3b22f;if(this[_0x147156(0x47c)]){if(!this[_0x147156(0x3f3)]){this[_0x147156(0x445)][_0x147156(0x49d)]('[CollaborationSession]',_0x147156(0x3bf));return;}this['_telemetryInfo'][_0x147156(0x567)]=performance['now'](),this[_0x147156(0x3f3)]['duration']=this[_0x147156(0x3f3)][_0x147156(0x567)]-this[_0x147156(0x3f3)]['startTime'],this[_0x147156(0x59a)]['capture'](os,this['_telemetryInfo']),this[_0x147156(0x3f3)]=null;}}[_0x3b22f(0x46f)](){this['_telemetryInfo']=null;}},exports[_0x3b22f(0x572)]=Ss([B(0x2,a[_0x3b22f(0x308)]),B(0x3,N['IBeforeCloseService']),B(0x4,N[_0x3b22f(0x2e3)]),B(0x5,a['IConfigService']),B(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),B(0x7,a['Inject'](q)),B(0x8,a[_0x3b22f(0x492)](Ge)),B(0x9,a['Optional'](Vt[_0x3b22f(0x467)]))],exports['CollaborationSession']);var vs=Object['defineProperty'],fs=Object[_0x3b22f(0x246)],gs=(_0xae273c,_0x4641a3,_0x534fb6,_0x8951c6)=>{const _0xcc463e=_0x3b22f;for(var _0x9cd485=_0x8951c6>0x1?void 0x0:_0x8951c6?fs(_0x4641a3,_0x534fb6):_0x4641a3,_0x52dbbb=_0xae273c[_0xcc463e(0x291)]-0x1,_0xe3b069;_0x52dbbb>=0x0;_0x52dbbb--)(_0xe3b069=_0xae273c[_0x52dbbb])&&(_0x9cd485=(_0x8951c6?_0xe3b069(_0x4641a3,_0x534fb6,_0x9cd485):_0xe3b069(_0x9cd485))||_0x9cd485);return _0x8951c6&&_0x9cd485&&vs(_0x4641a3,_0x534fb6,_0x9cd485),_0x9cd485;},Z=(_0xf76452,_0x108d1a)=>(_0x578b46,_0x25e6de)=>_0x108d1a(_0x578b46,_0x25e6de,_0xf76452);exports[_0x3b22f(0x298)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x114d39,_0x169a7f,_0x5a4f9d,_0x19f23c,_0x32fd69,_0xf6fe67){const _0x28eac2=_0x3b22f;super(),d(this,_0x28eac2(0x50e),new v[(_0x28eac2(0x502))](void 0x0)),d(this,_0x28eac2(0x2c8),this[_0x28eac2(0x50e)]['asObservable']()),d(this,_0x28eac2(0x392),null),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x28eac2(0x502))]($[_0x28eac2(0x2d3)])),d(this,_0x28eac2(0x386),this[_0x28eac2(0x4d5)][_0x28eac2(0x56e)]()),d(this,'_socketReady',!0x1),d(this,_0x28eac2(0x440)),d(this,_0x28eac2(0x34b),0x0),d(this,_0x28eac2(0x463)),d(this,_0x28eac2(0x1fb)),(this[_0x28eac2(0x397)]=_0x114d39,this[_0x28eac2(0x316)]=_0x169a7f,this[_0x28eac2(0x31d)]=_0x5a4f9d,this[_0x28eac2(0x445)]=_0x19f23c,this[_0x28eac2(0x266)]=_0x32fd69,this['_socketService']=_0xf6fe67,this[_0x28eac2(0x370)]());}get[_0x3b22f(0x218)](){const _0x1fafcd=_0x3b22f;return this[_0x1fafcd(0x50e)][_0x1fafcd(0x2a9)]();}[_0x3b22f(0x370)](){const _0x46f807=_0x3b22f;this[_0x46f807(0x2a0)](),this[_0x46f807(0x39a)]();}[_0x3b22f(0x4f2)](){const _0x5029b8=_0x3b22f;super[_0x5029b8(0x4f2)](),this[_0x5029b8(0x2f4)][_0x5029b8(0x339)](_0x295a7d=>_0x295a7d[_0x5029b8(0x4f2)]()),this['_sessions']['clear'](),this[_0x5029b8(0x4d5)][_0x5029b8(0x2ec)]();}async['requireSession'](_0x2aeb52){const _0xa0d345=_0x3b22f;if(this[_0xa0d345(0x2f4)][_0xa0d345(0x3e5)](_0x2aeb52))return this[_0xa0d345(0x2f4)][_0xa0d345(0x34d)](_0x2aeb52);this[_0xa0d345(0x40f)]();const _0x3a1e28=this[_0xa0d345(0x397)]['createInstance'](exports[_0xa0d345(0x572)],_0x2aeb52,this['_socket$']['asObservable']());return this[_0xa0d345(0x2f4)][_0xa0d345(0x305)](_0x2aeb52,_0x3a1e28),_0x3a1e28;}[_0x3b22f(0x3c6)](_0x575174){const _0x4cbfb6=_0x3b22f;var _0x24bd41;const _0x39b85a=this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x34d)](_0x575174);_0x39b85a&&(this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x2cc)](_0x575174),_0x39b85a[_0x4cbfb6(0x3ec)]()),this['_sessions'][_0x4cbfb6(0x45a)]||(_0x24bd41=this[_0x4cbfb6(0x218)])==null||_0x24bd41[_0x4cbfb6(0x3ec)]();}[_0x3b22f(0x359)](){const _0x152675=_0x3b22f;this[_0x152675(0x34b)]=0x0,this[_0x152675(0x440)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x152675(0x440)]=null),this[_0x152675(0x39c)]();}[_0x3b22f(0x539)](){const _0xddaf46=_0x3b22f;var _0x1b1849,_0x1392bd;const _0x439601=this[_0xddaf46(0x266)][_0xddaf46(0x504)](ut),_0xa12ea0=this[_0xddaf46(0x266)]['getConfig'](A),_0x481525=(_0x1392bd=(_0x1b1849=_0xa12ea0==null?void 0x0:_0xa12ea0[_0xddaf46(0x33b)])!=null?_0x1b1849:_0x439601)!=null?_0x1392bd:Xt,_0x26ee56=this['_socketService'][_0xddaf46(0x3a1)](_0x481525);return this[_0xddaf46(0x392)]=_0x26ee56,_0x26ee56;}['_tryEnsureSocket'](){const _0x474edf=_0x3b22f;var _0x589294,_0x47f152;try{const _0x15baae=(_0x47f152=(_0x589294=this[_0x474edf(0x218)])!=null?_0x589294:this[_0x474edf(0x392)])!=null?_0x47f152:this[_0x474edf(0x539)]();if(_0x15baae){const _0x2e2c22=_0x15baae['send'];_0x15baae[_0x474edf(0x3c5)]=_0x4d839e=>(this[_0x474edf(0x285)](),_0x2e2c22['apply'](_0x15baae,[_0x4d839e])),_0x15baae[_0x474edf(0x1fa)][_0x474edf(0x42c)](_0x4ac291=>this[_0x474edf(0x5bd)](_0x15baae,_0x4ac291)),_0x15baae[_0x474edf(0x505)][_0x474edf(0x3de)](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x4441bb=>this['_logService'][_0x474edf(0x49d)](_0x474edf(0x5d0),_0x4441bb)),_0x15baae[_0x474edf(0x486)][_0x474edf(0x3de)](E['take'](0x1))[_0x474edf(0x42c)](()=>{const _0x1517ca=_0x474edf;this[_0x1517ca(0x2c6)](_0x15baae);}),_0x15baae[_0x474edf(0x324)]['pipe'](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x3bc474=>{const _0x1d0fab=_0x474edf;this[_0x1d0fab(0x445)][_0x1d0fab(0x320)](_0x1d0fab(0x557),_0x1d0fab(0x336),_0x3bc474),this[_0x1d0fab(0x5ed)]();});}}catch(_0x16f00a){this['_logService'][_0x474edf(0x49d)](_0x16f00a),this[_0x474edf(0x5ed)]();}}[_0x3b22f(0x2c6)](_0x481fbe){const _0x40b0ed=_0x3b22f;this[_0x40b0ed(0x445)][_0x40b0ed(0x320)](_0x40b0ed(0x557),_0x40b0ed(0x3b2)),_0x481fbe[_0x40b0ed(0x3c5)]({'cmd':b[_0x40b0ed(0x2bd)]}),this['_rescheduleHeartbeat']();}[_0x3b22f(0x2a0)](){const _0x5c4f2b=_0x3b22f;window[_0x5c4f2b(0x4e8)](_0x5c4f2b(0x45f),()=>this['_onOffline']());}['_onOffline'](){const _0x47a947=_0x3b22f;this[_0x47a947(0x394)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x47a947(0x52d)]($['OFFLINE']),this[_0x47a947(0x50e)][_0x47a947(0x52d)](null),this[_0x47a947(0x3cb)](),this[_0x47a947(0x34e)]();}[_0x3b22f(0x5ed)](){const _0x772c52=_0x3b22f;var _0x50d9a1;this['_onOffline'](),this[_0x772c52(0x34b)]<((_0x50d9a1=this['_configService'][_0x772c52(0x504)](vt))!=null?_0x50d9a1:Jt)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':X['MessageType'][_0x772c52(0x3b7)],'content':this[_0x772c52(0x316)]['t'](_0x772c52(0x435))}),this['_tryReconnect']()):this[_0x772c52(0x31d)][_0x772c52(0x224)]({'key':_0x772c52(0x1f8),'type':X[_0x772c52(0x5b4)][_0x772c52(0x460)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x5124fb=_0x3b22f,_0xb7b9a=()=>{const _0x153335=_0x2c53;this[_0x153335(0x218)]||this[_0x153335(0x359)]();},_0x31ea94=()=>{const _0x22b314=_0x2c53;this[_0x22b314(0x218)]||document['visibilityState']==='hidden'||this[_0x22b314(0x359)]();};window['addEventListener'](_0x5124fb(0x5d1),_0xb7b9a),document['addEventListener'](_0x5124fb(0x315),_0x31ea94);}[_0x3b22f(0x39c)](){const _0x42938c=_0x3b22f;var _0x43f0e8;const _0x2229c7=this['_retryCount'],_0x100b33=this[_0x42938c(0x266)][_0x42938c(0x504)](A),_0x1f00e4=_0x2229c7===0x0?0x0:((_0x43f0e8=_0x100b33==null?void 0x0:_0x100b33[_0x42938c(0x1f7)])!=null?_0x43f0e8:zt)*0x2**_0x2229c7;this[_0x42938c(0x440)]=window['setTimeout'](()=>{const _0x61e493=_0x42938c;clearTimeout(this[_0x61e493(0x440)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x1f00e4),this[_0x42938c(0x34b)]+=0x1;}[_0x3b22f(0x5bd)](_0x1b9187,_0x4b6639){const _0x371ae7=_0x3b22f,{cmd:_0x15f02f}=_0x4b6639;_0x15f02f===b[_0x371ae7(0x2bd)]&&!this[_0x371ae7(0x394)]&&(_0x1b9187[_0x371ae7(0x598)]=_0x4b6639[_0x371ae7(0x45b)][_0x371ae7(0x598)],this[_0x371ae7(0x50e)]['next'](_0x1b9187),this[_0x371ae7(0x4d5)]['next']($[_0x371ae7(0x22f)]),this[_0x371ae7(0x394)]=!0x0,this[_0x371ae7(0x392)]=null),_0x15f02f===b[_0x371ae7(0x233)]&&this[_0x371ae7(0x3cb)](),this['_rescheduleHeartbeat']();}[_0x3b22f(0x285)](){const _0x5b37f1=_0x3b22f;var _0x44c210;this[_0x5b37f1(0x34e)](),this[_0x5b37f1(0x463)]=window[_0x5b37f1(0x576)](()=>this[_0x5b37f1(0x240)](),(_0x44c210=this[_0x5b37f1(0x266)][_0x5b37f1(0x504)](dt))!=null?_0x44c210:qt);}[_0x3b22f(0x240)](){const _0x2905ca=_0x3b22f;this[_0x2905ca(0x218)][_0x2905ca(0x3c5)]({'cmd':b[_0x2905ca(0x233)]}),this['_waitForHeartbeatResponse']();}[_0x3b22f(0x3d7)](){const _0x28f817=_0x3b22f;var _0x6a762f;this[_0x28f817(0x1fb)]=window[_0x28f817(0x576)](()=>this[_0x28f817(0x5ed)](),(_0x6a762f=this[_0x28f817(0x266)]['getConfig'](Ve))!=null?_0x6a762f:St);}['_clearHeartbeatTimer'](){const _0x158353=_0x3b22f;this[_0x158353(0x463)]!=null&&(clearTimeout(this[_0x158353(0x463)]),this[_0x158353(0x463)]=null);}['_clearTimeoutTimer'](){const _0x599711=_0x3b22f;this[_0x599711(0x1fb)]!=null&&(clearTimeout(this[_0x599711(0x1fb)]),this[_0x599711(0x1fb)]=null);}},exports[_0x3b22f(0x298)]=gs([Z(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Z(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3b22f(0x308)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object['defineProperty'],Is=Object['getOwnPropertyDescriptor'],ps=(_0x377f1b,_0x217785,_0x13661e,_0x2c937)=>{const _0x21a7b9=_0x3b22f;for(var _0x25e65e=_0x2c937>0x1?void 0x0:_0x2c937?Is(_0x217785,_0x13661e):_0x217785,_0x534194=_0x377f1b[_0x21a7b9(0x291)]-0x1,_0x36c6ff;_0x534194>=0x0;_0x534194--)(_0x36c6ff=_0x377f1b[_0x534194])&&(_0x25e65e=(_0x2c937?_0x36c6ff(_0x217785,_0x13661e,_0x25e65e):_0x36c6ff(_0x25e65e))||_0x25e65e);return _0x2c937&&_0x25e65e&&ms(_0x217785,_0x13661e,_0x25e65e),_0x25e65e;},De=(_0x3d3983,_0x3378d9)=>(_0x1a54ac,_0x443272)=>_0x3378d9(_0x1a54ac,_0x443272,_0x3d3983);let fe=class{constructor(_0x691281,_0x14ad1f,_0x485e12){const _0x4e01ee=_0x3b22f;this['_injector']=_0x691281,this[_0x4e01ee(0x294)]=_0x14ad1f,this[_0x4e01ee(0x376)]=_0x485e12;}['transformIMECache'](_0x4debe5){const _0x489f30=_0x3b22f;this[_0x489f30(0x352)](_0x4debe5),this[_0x489f30(0x593)](_0x4debe5);}[_0x3b22f(0x471)](_0x419aa3){const _0x19f635=_0x3b22f,{unitID:_0x45fdeb}=_0x419aa3,_0x4de5de=this[_0x19f635(0x376)][_0x19f635(0x360)](_0x45fdeb)[_0x19f635(0x3d0)](w[_0x19f635(0x52a)]),{redoCache:_0x4e2033}=_0x4de5de[_0x19f635(0x536)]();if(_0x4e2033[_0x19f635(0x291)]===0x0)return _0x419aa3;let _0x5d0d3e=a[_0x19f635(0x27d)]['deepClone'](_0x419aa3[_0x19f635(0x3a2)][0x0]);for(let _0x6f7b74=0x0;_0x6f7b74<_0x4e2033[_0x19f635(0x291)];_0x6f7b74++){const _0x21ff3e={'id':_0x19f635(0x29f),'params':{..._0x4e2033[_0x6f7b74]}},_0x1e51cd=this[_0x19f635(0x294)]['transformMutation'](_0x5d0d3e,_0x21ff3e,!0x1);if(_['isTransformMutationFailure'](_0x1e51cd))throw _0x1e51cd['error'];_0x5d0d3e=_0x1e51cd[_0x19f635(0x5ce)];}return{...a['Tools'][_0x19f635(0x343)](_0x419aa3),'mutations':[_0x5d0d3e]};}['_transformUndoRedoStack'](_0x2fa535){const _0x3128eb=_0x3b22f,{unitID:_0xec4b56}=_0x2fa535,_0x2d7ed9=this[_0x3128eb(0x376)][_0x3128eb(0x360)](_0xec4b56)[_0x3128eb(0x3d0)](w[_0x3128eb(0x52a)]),{undoCache:_0x40a102,redoCache:_0x5d8221}=_0x2d7ed9['getUndoRedoMutationParamsCache']();if(_0x40a102[_0x3128eb(0x291)]===0x0||_0x5d8221[_0x3128eb(0x291)]===0x0)return;const _0x26d994=[],_0x39b4c3=[];let _0x39d238=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]),_0x1a45d8=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]);for(let _0x33c417=_0x40a102['length']-0x1;_0x33c417>=0x0;_0x33c417--){const _0x10d94d={'id':'doc.mutation.rich-text-editing','params':{..._0x40a102[_0x33c417]}},_0x2bec7e={'id':_0x3128eb(0x29f),'params':{..._0x5d8221[_0x33c417]}},_0x14dc7b=this['_transformService'][_0x3128eb(0x2c5)](_0x39d238,_0x10d94d,!0x1),_0x4d0c6a=this[_0x3128eb(0x294)]['transformMutation'](_0x1a45d8,_0x2bec7e,!0x1);if(_[_0x3128eb(0x5cb)](_0x14dc7b))throw _0x14dc7b['error'];if(_[_0x3128eb(0x5cb)](_0x4d0c6a))throw _0x4d0c6a[_0x3128eb(0x49d)];_0x26d994['unshift'](_0x14dc7b['m2Prime'][_0x3128eb(0x3b6)]),_0x39b4c3[_0x3128eb(0x20f)](_0x4d0c6a[_0x3128eb(0x2e8)][_0x3128eb(0x3b6)]),_0x39d238=_0x14dc7b['m1Prime'],_0x1a45d8=_0x4d0c6a[_0x3128eb(0x5ce)];}_0x2d7ed9['setUndoRedoMutationParamsCache']({'undoCache':_0x26d994,'redoCache':_0x39b4c3});}[_0x3b22f(0x593)](_0x40fe24){const _0x5aa454=_0x3b22f,{unitID:_0x491599}=_0x40fe24,_0x2ce10a=this[_0x5aa454(0x376)][_0x5aa454(0x360)](_0x491599)[_0x5aa454(0x3d0)](w[_0x5aa454(0x52a)]),_0x227bdd=_0x2ce10a[_0x5aa454(0x47e)]();if(_0x227bdd==null)return;const _0x50079c=[{'id':_0x5aa454(0x29f),'params':{'unitId':_0x40fe24[_0x5aa454(0x40e)],'actions':null,'textRanges':[_0x227bdd]}}],_0x3709dd=this[_0x5aa454(0x294)][_0x5aa454(0x261)](_0x40fe24,_0x50079c);if(!_[_0x5aa454(0x3db)](_0x3709dd))throw _0x3709dd[_0x5aa454(0x49d)];const _0x53a7a2=_0x3709dd['m2Prime'][0x0][_0x5aa454(0x3b6)][_0x5aa454(0x4a4)];Array[_0x5aa454(0x33f)](_0x53a7a2)&&_0x53a7a2[_0x5aa454(0x291)]&&_0x2ce10a['setActiveRange'](_0x53a7a2[0x0]);}};fe=ps([De(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),De(0x1,_[_0x3b22f(0x378)]),De(0x2,R[_0x3b22f(0x2be)])],fe);var Cs=Object[_0x3b22f(0x1ff)],Es=Object[_0x3b22f(0x246)],bs=(_0x59f009,_0x3d5d34,_0x1799b5,_0x2d17c7)=>{for(var _0x49229f=_0x2d17c7>0x1?void 0x0:_0x2d17c7?Es(_0x3d5d34,_0x1799b5):_0x3d5d34,_0x782dfc=_0x59f009['length']-0x1,_0x18fd67;_0x782dfc>=0x0;_0x782dfc--)(_0x18fd67=_0x59f009[_0x782dfc])&&(_0x49229f=(_0x2d17c7?_0x18fd67(_0x3d5d34,_0x1799b5,_0x49229f):_0x18fd67(_0x49229f))||_0x49229f);return _0x2d17c7&&_0x49229f&&Cs(_0x3d5d34,_0x1799b5,_0x49229f),_0x49229f;},ae=(_0x468f0d,_0x543ff9)=>(_0x3c6dc9,_0x55edf7)=>_0x543ff9(_0x3c6dc9,_0x55edf7,_0x468f0d);exports[_0x3b22f(0x462)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x267a58,_0x2eece6,_0x40e311,_0x18bfe6,_0x5d042f){const _0x5881c7=_0x3b22f;super(),d(this,_0x5881c7(0x21d),new Map()),d(this,_0x5881c7(0x3af),new Map()),d(this,_0x5881c7(0x5ea),!0x1),(this[_0x5881c7(0x266)]=_0x267a58,this[_0x5881c7(0x54a)]=_0x2eece6,this[_0x5881c7(0x4e0)]=_0x40e311,this[_0x5881c7(0x316)]=_0x18bfe6,this[_0x5881c7(0x2d5)]=_0x5d042f,this['_setupBeforeClosingHandler']());}[_0x3b22f(0x333)](){const _0x2359ed=_0x3b22f;this[_0x2359ed(0x5ea)]=!0x0;}[_0x3b22f(0x54e)](){const _0x577e6c=_0x3b22f;this[_0x577e6c(0x5ea)]=!0x1;}[_0x3b22f(0x4f2)](){const _0x39e9fd=_0x3b22f;this[_0x39e9fd(0x328)]()['then'](()=>super[_0x39e9fd(0x4f2)]());}async['loadOfflineData'](_0x10f864){const _0x4db2be=_0x3b22f;return this[_0x4db2be(0x5ea)]?null:this[_0x4db2be(0x54a)][_0x4db2be(0x5b3)](Qe(_0x10f864));}async[_0x3b22f(0x2d2)](_0x9d28d0,_0x37ce1f){const _0x51e598=_0x3b22f;return!!this[_0x51e598(0x54a)][_0x51e598(0x307)](_0x9d28d0,_0x37ce1f);}[_0x3b22f(0x371)](_0x4ce66e,_0x5a9bd1,_0x3d36f5,_0x3933a5){const _0xf161e=_0x3b22f,_0x1a697c=this[_0xf161e(0x2d5)][_0xf161e(0x42d)](_0x4ce66e);this[_0xf161e(0x21d)][_0xf161e(0x305)](_0x4ce66e,{'unitID':_0x4ce66e,'type':_0x5a9bd1,'awaitingChangeset':_0x3d36f5,'mutations':_0x3933a5,'rev':_0x1a697c}),this[_0xf161e(0x3af)]['has'](_0x4ce66e)||this[_0xf161e(0x1e1)](_0x4ce66e);}[_0x3b22f(0x1e1)](_0x734f58){const _0x1c1c08=_0x3b22f,_0x2d8c07=this[_0x1c1c08(0x5a3)]();_0x2d8c07===0x0?this[_0x1c1c08(0x51b)](_0x734f58):this[_0x1c1c08(0x3af)][_0x1c1c08(0x305)](_0x734f58,setTimeout(()=>this[_0x1c1c08(0x51b)](_0x734f58),_0x2d8c07));}[_0x3b22f(0x5a3)](){const _0x5aa33e=_0x3b22f;var _0x51de74;return(_0x51de74=this[_0x5aa33e(0x266)][_0x5aa33e(0x504)](ft))!=null?_0x51de74:Zt;}[_0x3b22f(0x51b)](_0xad4568){const _0x43fa6a=_0x3b22f,_0x2bc5bb=this[_0x43fa6a(0x3af)][_0x43fa6a(0x34d)](_0xad4568);return _0x2bc5bb!==void 0x0&&window[_0x43fa6a(0x475)](_0x2bc5bb),this['_localStorageService'][_0x43fa6a(0x307)](Qe(_0xad4568),this[_0x43fa6a(0x21d)]['get'](_0xad4568))[_0x43fa6a(0x395)](()=>this[_0x43fa6a(0x3af)][_0x43fa6a(0x2cc)](_0xad4568));}async[_0x3b22f(0x328)](){const _0x1e9a40=_0x3b22f,_0x2eadbe=[];this['_saveTaskMap'][_0x1e9a40(0x339)]((_0x17473c,_0x200383)=>{const _0x592550=_0x1e9a40;window[_0x592550(0x475)](_0x17473c),_0x2eadbe[_0x592550(0x1ed)](this[_0x592550(0x51b)](_0x200383)[_0x592550(0x395)](()=>{const _0x2f89ee=_0x592550;this[_0x2f89ee(0x3af)][_0x2f89ee(0x2cc)](_0x200383);}));}),await Promise['all'](_0x2eadbe);}[_0x3b22f(0x23e)](){const _0x4731a0=_0x3b22f;this[_0x4731a0(0x283)](this[_0x4731a0(0x4e0)][_0x4731a0(0x361)](()=>{const _0x3d0bee=_0x4731a0;if(this[_0x3d0bee(0x3af)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b22f(0x462)]=bs([ae(0x0,a[_0x3b22f(0x5ad)]),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x3b22f(0x279)]),ae(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),ae(0x4,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)]))],exports[_0x3b22f(0x462)]);function Qe(_0x4e02f9){const _0x517f88=_0x3b22f;return _0x517f88(0x4fd)+_0x4e02f9;}var Ts=Object[_0x3b22f(0x1ff)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x58d968,_0x8f3eb5,_0xaa560d,_0x378c20)=>{const _0x4bbdf3=_0x3b22f;for(var _0x35a25b=_0x378c20>0x1?void 0x0:_0x378c20?Rs(_0x8f3eb5,_0xaa560d):_0x8f3eb5,_0x2f1d67=_0x58d968[_0x4bbdf3(0x291)]-0x1,_0x2f8761;_0x2f1d67>=0x0;_0x2f1d67--)(_0x2f8761=_0x58d968[_0x2f1d67])&&(_0x35a25b=(_0x378c20?_0x2f8761(_0x8f3eb5,_0xaa560d,_0x35a25b):_0x2f8761(_0x35a25b))||_0x35a25b);return _0x378c20&&_0x35a25b&&Ts(_0x8f3eb5,_0xaa560d,_0x35a25b),_0x35a25b;},ye=(_0x528de3,_0x187ff0)=>(_0x266bd6,_0x8fe75d)=>_0x187ff0(_0x266bd6,_0x8fe75d,_0x528de3);function Ds(_0x3f5cee){const {unitID:_0x3eea22,mutations:_0x7a92fc}=_0x3f5cee;return{'unitId':_0x3eea22,'subUnitId':_0x7a92fc[0x0]['params']['subUnitId']};}let ge=class{constructor(_0x2e5ab4,_0x16a58a,_0x30b373){const _0x3df8aa=_0x3b22f;this[_0x3df8aa(0x397)]=_0x2e5ab4,this[_0x3df8aa(0x294)]=_0x16a58a,this[_0x3df8aa(0x4f8)]=_0x30b373;}[_0x3b22f(0x4fb)](_0x181223){const _0xdcc4fb=_0x3b22f;var _0xb5b0c3,_0x32ee7a,_0x84b48c,_0x11ba06;const _0x6bbe52=this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](C[_0xdcc4fb(0x264)]),{unitId:_0x36673c,subUnitId:_0x16eeb6}=Ds(_0x181223),_0x59e164=_0x6bbe52['getWorkbookSelections'](_0x36673c)[_0xdcc4fb(0x3f4)](),_0x1a41be=(_0x32ee7a=(_0xb5b0c3=this[_0xdcc4fb(0x4f8)][_0xdcc4fb(0x1f4)](_0x36673c))==null?void 0x0:_0xb5b0c3[_0xdcc4fb(0x242)]())==null?void 0x0:_0x32ee7a[_0xdcc4fb(0x3b3)]();if(_0x59e164[_0xdcc4fb(0x291)]===0x0||!_0x36673c||!_0x16eeb6)return;const _0x3a502b=[{'id':C[_0xdcc4fb(0x33c)]['id'],'params':{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':a[_0xdcc4fb(0x27d)][_0xdcc4fb(0x343)](_0x59e164)}}],_0xde81ad=this[_0xdcc4fb(0x294)][_0xdcc4fb(0x261)](_0x181223,_0x3a502b);if(!_[_0xdcc4fb(0x3db)](_0xde81ad))throw _0xde81ad[_0xdcc4fb(0x49d)];const _0x2a7783=(_0x11ba06=(_0x84b48c=_0xde81ad[_0xdcc4fb(0x2e8)][0x0])==null?void 0x0:_0x84b48c[_0xdcc4fb(0x3b6)])==null?void 0x0:_0x11ba06[_0xdcc4fb(0x3c4)];Array[_0xdcc4fb(0x33f)](_0x2a7783)&&_0x2a7783[_0xdcc4fb(0x291)]&&this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](a[_0xdcc4fb(0x323)])['executeCommand'](C[_0xdcc4fb(0x33c)]['id'],{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':_0x2a7783});}};ge=Os([ye(0x0,a[_0x3b22f(0x492)](a['Injector'])),ye(0x1,_[_0x3b22f(0x378)]),ye(0x2,a[_0x3b22f(0x26b)])],ge);const be=a['createIdentifier'](_0x3b22f(0x30e));var bt=(_0x12c884=>(_0x12c884[_0x12c884['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b22f(0x356),_0x12c884[_0x12c884[_0x3b22f(0x2b0)]=0x1]=_0x3b22f(0x2b0),_0x12c884))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3b22f(0x4b0)]{constructor(){const _0x54f077=_0x3b22f;super(),d(this,_0x54f077(0x206),a[_0x54f077(0x27d)][_0x54f077(0x409)]()),d(this,_0x54f077(0x2c2),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x54f077(0x566),null),d(this,_0x54f077(0x389),new Map()),d(this,_0x54f077(0x419),new Map()),this['_init']();}['dispose'](){const _0x4b0430=_0x3b22f;super['dispose'](),this['_clearOtherTimers'][_0x4b0430(0x339)]((_0x56f02f,_0x51cfdb)=>this[_0x4b0430(0x4a0)](_0x51cfdb)),this[_0x4b0430(0x566)]&&window['clearInterval'](this[_0x4b0430(0x566)]);}[_0x3b22f(0x568)](_0x5c5825){const _0x2fa287=_0x3b22f;return this['_ensureSubject'](_0x5c5825)[_0x2fa287(0x3de)](v[_0x2fa287(0x5a4)]());}['editingUnit'](_0x273d0d){const _0x5d018a=_0x3b22f;this['_selfUnitIDs'][_0x5d018a(0x45a)]===0x0&&this[_0x5d018a(0x484)](),this['_selfUnitIDs'][_0x5d018a(0x405)](_0x273d0d),this[_0x5d018a(0x267)]({'type':0x0,'memberID':this[_0x5d018a(0x206)],'unitIDs':[_0x273d0d],'isForwarded':!0x1});}['disposeUnit'](_0x2288ab){const _0x47aafc=_0x3b22f;this[_0x47aafc(0x2c2)][_0x47aafc(0x2cc)](_0x2288ab),this['_selfUnitIDs']['size']===0x0&&this[_0x47aafc(0x566)]&&window[_0x47aafc(0x28f)](this[_0x47aafc(0x566)]);}[_0x3b22f(0x341)](){const _0x2578d9=_0x3b22f;this[_0x2578d9(0x283)](a[_0x2578d9(0x526)](v[_0x2578d9(0x2b9)](window,_0x2578d9(0x4c8))[_0x2578d9(0x42c)](_0x1af7d4=>{const _0x11687a=_0x2578d9;if(_0x1af7d4['key']!==tt||!_0x1af7d4[_0x11687a(0x3bc)])return;const _0x221c36=JSON[_0x11687a(0x4f1)](_0x1af7d4[_0x11687a(0x3bc)]);this[_0x11687a(0x1f6)](_0x221c36);}))),window[_0x2578d9(0x4e8)]('unload',()=>this[_0x2578d9(0x267)]({'type':0x1,'memberID':this[_0x2578d9(0x206)],'unitIDs':Array[_0x2578d9(0x1e8)](this[_0x2578d9(0x2c2)])}));}[_0x3b22f(0x1f6)](_0x121a09){const _0x36a55b=_0x3b22f;switch(_0x121a09[_0x36a55b(0x331)]){case 0x0:this[_0x36a55b(0x2c9)](_0x121a09);break;case 0x1:this['_handleLeaveEvent'](_0x121a09);break;case 0x2:this[_0x36a55b(0x390)](_0x121a09);break;}}[_0x3b22f(0x2c9)](_0x230686){const _0x3d718c=_0x3b22f,{unitIDs:_0x562680,memberID:_0x439466,isForwarded:_0x1c868b}=_0x230686;_0x562680[_0x3d718c(0x339)](_0x3dc276=>{const _0x454968=_0x3d718c;if(!_0x1c868b&&this[_0x454968(0x22d)]['has'](_0x3dc276)&&this['_ensureSubject'](_0x3dc276)['next'](0x1),!this[_0x454968(0x22d)]['has'](_0x3dc276)||!this[_0x454968(0x22d)]['get'](_0x3dc276)[_0x454968(0x3e5)](_0x439466)){const _0x1ea330=this[_0x454968(0x22d)]['get'](_0x3dc276)||new Set();_0x1ea330[_0x454968(0x405)](_0x439466),this[_0x454968(0x22d)]['set'](_0x3dc276,_0x1ea330),this[_0x454968(0x47f)](_0x439466);}}),_0x1c868b||this[_0x3d718c(0x267)]({'type':0x0,'memberID':this[_0x3d718c(0x206)],'unitIDs':[...this[_0x3d718c(0x2c2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c17bc){const _0x42552b=_0x3b22f;this[_0x42552b(0x4a0)](_0x5c17bc);const _0x356b65=window[_0x42552b(0x576)](()=>{const _0x2996b1=_0x42552b;this['_unitOnClients'][_0x2996b1(0x339)](_0x2cd193=>{const _0x42cd89=_0x2996b1;_0x2cd193[_0x42cd89(0x2cc)](_0x5c17bc);});},et*0x2);this[_0x42552b(0x389)]['set'](_0x5c17bc,_0x356b65);}[_0x3b22f(0x4a0)](_0x57083f){const _0x5f15e0=_0x3b22f;if(this[_0x5f15e0(0x389)]['has'](_0x57083f)){const _0x3c49c6=this[_0x5f15e0(0x389)]['get'](_0x57083f);_0x3c49c6&&window[_0x5f15e0(0x475)](_0x3c49c6),this[_0x5f15e0(0x389)]['set'](_0x57083f,null);}}[_0x3b22f(0x4b1)](_0x1876da){const _0x5b568e=_0x3b22f,{memberID:_0x33ca7f,unitIDs:_0x15c036}=_0x1876da;_0x15c036[_0x5b568e(0x339)](_0x162322=>{const _0x4c5277=_0x5b568e;var _0x37e004;const _0xce3d33=this['_unitOnClients'][_0x4c5277(0x34d)](_0x162322);_0xce3d33&&(_0xce3d33[_0x4c5277(0x2cc)](_0x33ca7f),(_0x37e004=this['_ensureSubject'](_0x162322))==null||_0x37e004[_0x4c5277(0x52d)](_0xce3d33['size']===0x0?0x0:0x1));}),this[_0x5b568e(0x4a0)](_0x33ca7f);}[_0x3b22f(0x390)](_0x3e7dca){this['_scheduleClearOtherTimer'](_0x3e7dca['memberID']);}['_send'](_0x3ba1ee){const _0x5bf9df=_0x3b22f;localStorage[_0x5bf9df(0x307)](tt,JSON[_0x5bf9df(0x56d)](_0x3ba1ee));}[_0x3b22f(0x484)](){const _0x280008=_0x3b22f;this[_0x280008(0x566)]=window[_0x280008(0x507)](()=>{const _0x10f7f4=_0x280008;this[_0x10f7f4(0x267)]({'type':0x2,'memberID':this[_0x10f7f4(0x206)]});},et);}[_0x3b22f(0x26e)](_0x3c0c6f){const _0x466285=_0x3b22f;return this[_0x466285(0x419)][_0x466285(0x3e5)](_0x3c0c6f)||this['_unitStatus'][_0x466285(0x305)](_0x3c0c6f,new v[(_0x466285(0x502))](0x0)),this[_0x466285(0x419)][_0x466285(0x34d)](_0x3c0c6f);}}function Tt(_0x4a20a1){const _0x4850c7=_0x3b22f;let _0x4622f0='';for(const _0x1a189d of _0x4a20a1){const {startOffset:_0x3fdea7,endOffset:_0xec157b,isActive:_0x3af91b}=_0x1a189d;_0x4622f0[_0x4850c7(0x291)]&&(_0x4622f0+=','),_0x4622f0+=_0x3fdea7+':'+_0xec157b+':'+(_0x3af91b?'1':'0');}return _0x4622f0;}function Us(_0x4c095e){const _0x577fa6=_0x3b22f,_0x33c5c2=_0x4c095e[_0x577fa6(0x4d7)](','),_0x52d33f=[];for(const _0x389ab5 of _0x33c5c2){const [_0x510e0b,_0x47aa66,_0x39391d]=_0x389ab5[_0x577fa6(0x4d7)](':');_0x52d33f[_0x577fa6(0x1ed)]({'startOffset':Number(_0x510e0b),'endOffset':Number(_0x47aa66),'collapsed':_0x510e0b===_0x47aa66,'isActive':_0x39391d==='1'});}return _0x52d33f[_0x577fa6(0x301)](_0x29f209=>_0x29f209[_0x577fa6(0x48b)])||(_0x52d33f[0x0][_0x577fa6(0x48b)]=!0x0),_0x52d33f;}class Ye extends a[_0x3b22f(0x398)]{constructor(){const _0x3f396c=_0x3b22f;super(...arguments),d(this,_0x3f396c(0x3fb),new v['BehaviorSubject'](null)),d(this,_0x3f396c(0x45e),this[_0x3f396c(0x3fb)][_0x3f396c(0x56e)]());}['syncEditingCollabCursor'](_0x4a42b6){const _0x364fee=_0x3b22f,{unitID:_0x396427,memberID:_0x3f3417,textRanges:_0x328baa}=_0x4a42b6,_0x225384=Tt(_0x328baa),_0x4489eb={'unitID':_0x396427,'memberID':_0x3f3417,'selection':_0x225384};this[_0x364fee(0x3fb)][_0x364fee(0x52d)](_0x4489eb);}}var Ps=Object[_0x3b22f(0x1ff)],ws=Object[_0x3b22f(0x246)],Ms=(_0x4664e3,_0x2e0164,_0x2a1c1d,_0x1af101)=>{for(var _0x188859=_0x1af101>0x1?void 0x0:_0x1af101?ws(_0x2e0164,_0x2a1c1d):_0x2e0164,_0x57f2db=_0x4664e3['length']-0x1,_0x1b9ee0;_0x57f2db>=0x0;_0x57f2db--)(_0x1b9ee0=_0x4664e3[_0x57f2db])&&(_0x188859=(_0x1af101?_0x1b9ee0(_0x2e0164,_0x2a1c1d,_0x188859):_0x1b9ee0(_0x188859))||_0x188859);return _0x1af101&&_0x188859&&Ps(_0x2e0164,_0x2a1c1d,_0x188859),_0x188859;},st=(_0x8a15c3,_0x24ca50)=>(_0xf22e6a,_0xc56421)=>_0x24ca50(_0xf22e6a,_0xc56421,_0x8a15c3);let me=class{constructor(_0x5615cd,_0x4294f0){const _0x322686=_0x3b22f;this[_0x322686(0x397)]=_0x5615cd,this[_0x322686(0x294)]=_0x4294f0;}[_0x3b22f(0x4fb)](_0x24b640){const _0x6435e6=_0x3b22f;var _0x588f17;const _0x20263e=this[_0x6435e6(0x397)]['get'](V['DocSelectionManagerService']),_0x1a6054=(_0x588f17=_0x20263e[_0x6435e6(0x37b)]())!=null?_0x588f17:[];if(_0x1a6054[_0x6435e6(0x291)]===0x0)return;const _0x5241c1=[{'id':_0x6435e6(0x29f),'params':{'unitId':_0x24b640[_0x6435e6(0x40e)],'actions':null,'textRanges':_0x1a6054}}],_0x2b6893=this[_0x6435e6(0x294)][_0x6435e6(0x261)](_0x24b640,_0x5241c1);if(!_[_0x6435e6(0x3db)](_0x2b6893))throw _0x2b6893[_0x6435e6(0x49d)];const _0x454877=_0x2b6893['m2Prime'][0x0][_0x6435e6(0x3b6)]['textRanges'];Array[_0x6435e6(0x33f)](_0x454877)&&_0x454877['length']&&_0x20263e[_0x6435e6(0x4b8)](_0x454877,!0x1);}};function _0x1d05(){const _0x5ec935=['loadOfflineData','_entities','transformIMECache','_beforeCloseService','_collaborationPaused','toString','ALREADY_EXISTS','collabSubmitChangesetUrl','react','getCurrentUnitForType','history','addEventListener','[PendingState]:\x20received\x20rejection.','AWAITING_WITH_PENDING','NOT_COLLAB','_memberService','touchDependencies','assignAColorForMemberID','INGEST','_initStatusListener','parse','dispose','_registerDependencies','getCollabCursors$','JOINING','Tooltip','DataLoaderController','_instanceService','APPLY_REVISION_CONFILICT','ERROR_EXCEED_SIZE','transformSelections','/collaborator','unit-cache-','useObservable','action','867116ItzxUp','/universer-api/snapshot/','BehaviorSubject','_imageSourceCache','getConfig','error$','[OfflineState]:\x20received\x20rejection.','setInterval','SessionStatus','result','reduce','evenodd','SHOULD_CLOSE_CONN','collaboration_new_changeset','_socket$','defs','IContextService','put','INTERNAL_ERROR','Error\x20on\x20receiving\x20event','_initModules','_executeRemoteChangeset','_clearCollaborationTimeoutTimer','UNDEFINED','isTransformChangesetsSuccess','IUndoRedoService','_handler','_saveCache','USERS_LEAVE','SEND_CHANGESET_TIMEOUT_KEY','onPointerMove$','_labelPosition','_drawTextRange','saveSnapshot','_localCacheService','handleInsertRangeMoveRight','getUnitOnRev','_sendingTimer','toDisposable','debounce','changesets','object','DocIMEInputManagerService','getUnitId','sheetID','next','DependentOn','DesktopCollaborationStatusDisplayController','/block/','_getSnapshotAPIPrefix','toRgbString','concat','getTime','_onRemoteACK','getUndoRedoMutationParamsCache','getSheetBlock','_scheduleCollaborationTimeoutTimer','_createSocket','/-/object/-/batch_allowed','SetWorksheetActivateCommand','_onJoinRoomEvent','resolve','univer-online-status','hasOwnProperty','findNodePositionByCharIndex','COLORS','interceptor','parseProtocolChangeset','pending','toStringTag','_commentService','div','_onRemoteChangeset','_updateURLWithCurrentState','_localStorageService','originalMeta','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','enableLocalCache','entries','url(#on-line-single_clip0_910_349)','_initMergeInterceptor','0\x200\x2017\x2016','_toggleOnline','function','unitId\x20is\x20not\x20found','_getSheetObject','[CollaborationSessionService]','editingUnit','Vector2','sessionStatus','XHRHTTPImplementation','_transformStack','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SnapshotServerOverHTTPService','_updateCollabCursors','startsWith','getCoordByCell','propertyIsEnumerable','UserManagerService','includes','_heartbeatTimer','stopTime','getUnitStatus$','_transformUndoredo','RETRY_CONNECTING_MAX_COUNT','_assignedColors','concatMap','stringify','asObservable','CONNECTOR_DATA_TOO_LARGE','synced','_startCollaboration','CollaborationSession','_scene','SetTextSelectionsOperation','UNIVER_SLIDE','setTimeout','_removeRoom','requireSession','rgba(255,\x20255,\x20255,\x200.01)','roles','map','_anchorDot','ImageUploadStatusType','moveTo','setParam','COMPRESS_MUTATION_APPLY','_cursor','_onRemoteRejected','LocaleService','_loadDoc','saveChangeset','onload','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','mergeOverrideWithDependencies','/-/object/list','registerRefRange','_type','enableOfflineEditing','NodePositionConvertToCursor','_getCtorByUniverType','clipPath','_notificationService','@univerjs/docs-ui','setShapeProps','_transformPreviousActiveRange','_colorAssignService','startColumn','3757869ONEMxK','getMemberID','memberID','_singleActiveUnitService','_telemetryService','_joinRoom','VIEW_MAIN','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','conflict.content','unit','TEXT_RANGE_LAYER_INDEX','ImageSourceType','0\x200\x2016\x2016','_getSaveTimeout','distinctUntilChanged','handleInsertRow','InsertColCommandId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_render','encodeURIComponent','permissionRejEvent','url','SUBMIT_CHANGESET','IConfigService','HTTPService','_getMergeRange','commentUpdateEvent','_remoteChangesetQueue','MergeInterceptorFactory','getItem','MessageType','submit\x20changeset\x20error!','UPDATE_CURSOR','LIVESHARE_NEW_HOST','forwardRef','take','measureText','612743RJtBQn','univer-online-status-icon','_onMessage','onTransformChange$','roomMembers$','_cursorShapes','_getSendChangesetTimeout','fetchMissingChangesets','?url=','connection\x20error','OffLineSingle','Optional','flatMap','jiqing500','UNIVER_UNKNOWN','image/jpg','isTransformMutationFailure','LICENSE_DISTRO_REJECTED','getImageSourceCache','m1Prime','UNIVER_PROJECT','[CollaborationSessionService]:\x20socket\x20error','online','WorkbookEditablePermission','attrs','c1Prime','getUnitType','_state','column','/role','red300','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','find','drawWith','min','commentUpdate$','off-line-single_clip0_910_343','defIds','#fff','parseChangesetToProtocol','createInstance','_substituteRedoStack','liveShareNewHost','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitAdded$','ERROR_IMAGE','_disabled','awaitingChangeset','_initCloseConn','_onConnectionFailed','DEFAULT_FILE_NAME','SheetCollaborationEntity','COMPRESS_MUTATION_SEND','_scheduleSaving','image/bmp','_isPermissionRej','_redoStacks','reverse','listRoles','on-line-single','from','color','append','title','@univerjs/design','push','_commentUpdate$','_collaborationSessionService','height','sessionStatus$','/universer-api/authz','syncEditingCollabCursor','getUnit','save','_handleEvent','retryConnectingInterval','collaboration-session-retry','@univerjs/docs','message$','_timeoutTimer','_drawRectRange','_refRangeService','TOO_MANY_REQUESTS','defineProperty','_updateStatus','INVALID_ARGUMENT','[PendingState]:\x20received\x20acknowledgement.','withCredentials','COMPLETION_FINISHED','objectID','_id','_hovered','/rev/','requestParams','_registerRenderDependencies','colorChannel1','getDeserializedSheetBlock','slice','responseType','unshift','_getRedoStack','AUTHZ_URL_KEY','members','LocalUndoRedoService','_snapshotServerService','_sheetTransformSelectionsService','initWorkbookPermissionChange','WebURLService','_socket','url(#off-line-single_clip0_910_343)','SheetSkeletonManagerService','method','encode','_cachedData','UPDATE_PERMISSION_OBJ','collaboration.closeRoom','_http','post','M0\x200H16V16H0z','_schedule','show','enableSingleActiveInstanceLock','onMissedChangesetFetched','SNAPSHOT_SERVER_URL_KEY','_collaborationTimeoutTimer','getSkeleton','workbook','collabStatus.notCollab','fetchMiss','_unitOnClients','onRemoteAck','ONLINE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','SNAPSHOT_INVALID_SNAPSHOT','HEARTBEAT','connectInjector','_checkMissing','setAlpha','_incrementRevisionNumber','indexOf','\x20to\x20','@univerjs-pro/collaboration','JOIN','reject','_onConflict','_setupBeforeClosingHandler','UNRECOGNIZED','_sendHeartbeat','[OfflineState]:\x20received\x20changeset.','getActiveSheet','loadSheet','_initUnitPermissionChange','createCollaborator','getOwnPropertyDescriptor','onPointerLeave$','_eventUnsubscribe','clear','onTransformSelections','updateCollaborator','_getScale','2221419nSJKjM','leaveEvent','getTypeOfUnitDisposed$','Unknown\x20user','@univerjs-pro/license','Injector','...','create','getFocusedUnit','_clearRedo','ThresholdInterceptorFactory','handleMoveRange','assign','registerComponent','rxjs','_docTransformSelectionsService','_urlService','range','Subject','_compressMutationService','transformMutationsWithChangeset','replace','_collaborationController','SheetsSelectionsService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_configService','_send','save\x20fail\x20reason\x20is\x20','_fetchMissChangesets','_name','IUniverInstanceService','SheetPermissionInitController','triggerDblclick','_ensureSubject','transformByState','_httpService','conflict.title','CollaborationSocketService','setWaitCount','b64DecodeUnicode','CHANGESET_REVISION_CONFILICT','_onCombEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20in\x20_schedule.','IBeforeCloseService','onPointerEnter$','popstate','_collabSessionService','Tools','newCsEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ICollaborationSocketService','_startDocCollabCursor','NodePositionConvertToRectRange','disposeWithMe','fetchThroughInterceptors','_rescheduleHeartbeat','_handleHover','getSheetObject','_roomMembers$','focused$','saveImage','_transformIMECache','isValidRectRange','CommentService','Shape','clearInterval','MSG_FOR_ERROR','length','delay','_config','_transformService','fillText','LOCAL_CACHE_INTERVAL','removeParam','CollaborationSessionService','Rect','_clearScheduledTask','transformChangesets','_getLoginPath','getViewport','[SyncedState]:\x20received\x20rejection.','doc.mutation.rich-text-editing','_listenToOfflineEvent','_onCursorDelete','file','getCurrentUser','textEncoder','socketService','PENDING','Module','UNKNOWN_CODE','getValue','InsertRangeMoveDownCommandId','_color','getUniverSheetInstance','collabStatus.fetchMiss','LICENSE_EXPORT_SIZE_EXCEEDED','onRemoteChangeset','OTHER_CLIENTS_EDITING','HEARTBEAT_INTERVAL_KEY','actions','_ws','subUnitId','EffectRefRangId','resend','translate(.97)','ranges','fromEvent','hide','collaborators','serializeCombRequest','HELLO','IRenderManagerService','session','none','FETCH_MISSING','_selfUnitIDs','objectType','merge','transformMutation','_onConnectionOpen','8ZOkjun','socket$','_handleJoinEvent','_unlockTransition','CollaborationEntity','delete','_clearLocalCache','ISnapshotServerService','_onRecvEvent','userID','OnLineSingle','saveOfflineData','IDLE','ERROR_IMAGE_TYPE','_revisionService','resourceIDs','collaMsg','_context','_snapshotService','COLLAB_WEB_SOCKET_URL','_getDownloadEndpointURL','_removeCollabCursors','onCommandExecuted','COLLAB_SUBMIT_CHANGESET_URL_KEY','_exhaustRemoteChangesetQueue','@univerjs/rpc','dispose$','_decreaseWaiting','IMessageService','LICENSE_IMPORT_SIZE_EXCEEDED','INotificationService','LEAVE','_disableEditing','m2Prime','liveShareOperation','toggleOffline','APPLY_REJECT','complete','incrementRevOfUnit','origin','uploadFileServerUrl','RECV','getSheetBySheetId','fill','transformUndoRedo','_sessions','on-line-single_clip0_910_349','awaiting_with_pending','_getUndoStack','univer-pro.collaboration-client-socket-service','_unitID','getCollabEntity','_transitionLocked','executeCommand','getRelativeToViewportCoord','RemoveRowCommandId','addObject','IPermissionService','some','_createHandler','getMember','_cursors','set','updateCursorEvent','setItem','ILogService','unknown','body','onlineStatus','CONFLICT','getCollabEntity$','univer-pro.collaboration-client.single-active-unit-service','getRangePointData','/object/','_members','mapDocumentTypeToUniverType','FromArray','InsertRangeMoveRightCommandId','visibilitychange','_localeService','Undefined','_pendingMutations','_lockTransition','_initCommandExecutedListener','compose','engine','_messageService','max','/universer-api/stream/file/upload','debug','path','CollaborationController','ICommandService','close$','[OfflineState]:\x20received\x20acknowledgement.','x-univer-host','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','exhaustSavingTask','NEW_CHANGESETS','routeKey','SetDocZoomRatioOperation','useDependency','confirm','current','ws://127.0.0.1:8000/universer-api/comb/connect','_sheetSkeletonManagerService','type','UNIVER_DOC','disableLocalCache','_updateState','_docSyncEditingCollabCursorService','socket\x20close','Rectangle','_session','forEach','_getSignURL','collabWebSocketUrl','SetSelectionsOperation','FileId','/new_changes','isArray','_univerInstanceService','_init','lineTo','deepClone','[CollaborationState]:\x20apply\x20error!','removeMember','every','WebSocketService','/resources','updateMember','getImage','_retryCount','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','get','_clearHeartbeatTimer','AWAITING','currentSkeleton$','_lastPointer','_transformUndoRedoStack','location','pushState','off-line-single','NO_OTHER_CLIENTS_EDITING','onTransformRemoteChangesetByIMECache','init','reconnect','ColorKit','DisposableCollection','_colorIndex','substring','fromCollab','{fileID}','getRenderById','registerBeforeClose','UNKNOWN_CMD','univer-online','json','/universer-api/oidc/authpage','name','SNAPSHOT_URL_KEY','_onUserJoin','_backgroundColor','_setupSubUnitSync','copyFileMeta','update','_uiPartsService','CHANGESET_REJ','conflict','_initEventListeners','updateOfflineData','restore','onSyncEditingCollabCursor','state','endColumn','_renderManagerService','onRemoteRej','ITransformService','gold400','/unit/','getDocRanges','takeUntil','_updateLocalCursor','infoRsp','_toggleOffline','UNAUTHENTICATED','src','backgroundColor','permission.content','@univerjs/network','useRef','status$','joinRsp','BuiltInUIPart','_clearOtherTimers','_onRefRangeChange','AuthzIoHttpService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','UniverInstanceType','fillStyle','_handleHeartbeatEvent','useCallback','_candidateSocket','941395XkwyOm','_socketReady','then','handleInsertRangeMoveDown','_injector','RxDisposable','IURLService','_listenToOnlineEvent','/universer-api/comb','_tryReconnect','_scheduleTimestamp','1em','_hideTimer','_initStatusComponent','createSocket','mutations','YUUMI_SUBSCRIPTION_NOT_FOUND','isInternalEditorID','getRoom','USERS_ENTER','PERMISSION_DENIED','rev','_HTTPService','sendChangesetTimeout','hovered','_range','subunit','collabStatus.offline','_saveTaskMap','_stopTelemetryCollaborationNewChangeset','arc','socket\x20open.','getSheetId','\x20-\x20','event$','params','Warning','CommandType','onMouseMove','HTTPRequest','appendMutation','newValue','bottom','subscribeEvent','telemetry\x20info\x20is\x20not\x20initialized','UNIVER_SHEET','icon','_waitCount','handleIRemoveCol','selections','send','closeSession','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','catch','[DataLoaderController]','_clearTimeoutTimer','eventID','createIdentifier','state$','@univerjs/engine-render','with','xlink:href','status','_getAnchorBounding','unsubscribe','SheetCollabCursorShape','POST','_waitForHeartbeatResponse','fetch_missing','_themeService','collaboratorID','isTransformMutationsWithChangesetSuccess','/universer-api/file/{fileID}/sign-url','_startSheetCollabCursor','pipe','unitId','batchAllowed','RegularPolygon','EmptyMutation','addImageSourceCache','currentTheme$','has','round','[CollaborationSession]','onMissingChangesets','serializeRangeWithSheet','OFFLINE','LOGIN_URL_KEY','close','@univerjs/drawing','CollaborationStatus','registerHTTPInterceptor','number','purple300','DeleteRangeMoveUpCommandId','_telemetryInfo','getCurrentSelections','list','onCommentUpdate','url(#$1','@univerjs/core','filter','_socketMessageSubscription','_collabCursorState$','trim','_entityInit$','switchMap','toggleOnline','_sessionStatus$','fromEventSubject','NOT_FOUND','DocCollaborationEntity','_cursorInfo$','add','_replaceFileID','values','csRejEvent','generateRandomId','string','getInterceptPoints','isEditing','revision','unitID','_tryEnsureSocket','_onFetchMissResult','roomInfos','href','_getAPIPrefixPath','isPermissionRej','_transformSelections','FETCH_MISS','combineLatest','signUrlServerUrl','_unitStatus','localeService','_drawAnchor','collab-text-range-','MUTATION','text','setConfig','/allowed','_syncEditingCollabCursorService','getParam','_onUserLeave','RETRY_CONNECTING_MAX_COUNT_KEY','enableAuthServer','_onCursorUpdate','getColor','CHANGESET_ACK','/object','fetching\x20missing\x20changesets\x20from\x20','CollaborationStatusDisplay','subscribe','getCurrentRevOfUnit','shareReplay','debounceTime','APPLY_PERMISSION_DENIED','COMMENT_UPDATE','LIVESHARE_REQUEST_HOST','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','session.will-retry','joinEvent','_userManagerService','FAIL','c2Prime','collabStatus.syncing','_createInitialState','_submitChangeset','tag','_awaitingChangeset','BASE64','_retryConnectingTimer','_refreshCollabCursors','_updateSubUnitFromURLParams','univerjs-icon\x20univerjs-icon-','_permissionService','_logService','_acknowledgedAwaitingChangeset','_initResize','svg','updatePermissionPoint','Univer','RefRangeService','CollaborationEvent','LICENSE_MAX_UNITS_EXCEEDED','children','collaboration.single-unit.warning','RevisionService','_getAPIPrefix','/universer-api/snapshot','sheetId','4417510qZoeCW','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_shapes','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformIMECacheService','size','data','_collabCursorController','HEARTBEAT_TIMEOUT_KEY','collabCursorState$','offline','Error','CompressMutationService','LocalCacheService','_sendHeartbeatTimer','_docSkeletonManagerService','pauseCollaboration','_online','ITelemetryService','_hover','_roomMembers','_anchor','_clearUndo','_substituteUndoStack','_textBubble','onStateChange','_throwTelemetryCollaborationNewChangeset','APPLY_NON_SEQUENTIAL_REVISION','transformRemoteChangeset','startRow','@univerjs/sheets','setCurrentUser','clearTimeout','selection','_onLocalMutation','currentColor','runRefRangeMutations','deserializeToCombResponse','LIVESHARE_TERMINATE','_shouldReportTelemetry','failed\x20to\x20apply\x20missed\x20changesets!','getActiveRange','_scheduleClearOtherTimer','univer-online-status-title','width','random','permission.title','_scheduleHeartbeat','24qkdJuj','open$','whenReady','HEARTBEAT_INTERVAL','HEADER_MENU','_change$','isActive','readAsDataURL','RichTextEditingMutation','makeDirty','InsertRowCommandId','_getCurrentRevision','\x0aCurrent:\x20','Inject','180834HJcsna','createElement','DocSkeletonManagerService','awaiting','MoveRangeCommandId','searchParams','displayName','cursorInfo','InsertSheetMutation','@univerjs/telemetry','error','onStarting','code','_removeClearOtherTimer','getAncestorScale','PERMISSION_REJ','ImageIoService','textRanges','onlineStatusTitle','&assign=','DocSelectionManagerService','COLLAB_SUBMIT_CHANGESET_URL','addObjects','cursorInfo$','ThemeService','collab-client.tooltip.reconnect','_updateLocalCache','_syncEditingCollabCursor','rxjs/operators','Disposable','_handleLeaveEvent','IRemoteInstanceService','black','_replayCachedMutations','registerRenderModule','_undoRedoService','HEARTBEAT_TIMEOUT','replaceTextRanges','_commandService','UnitSnapshot','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitEmbedded','roomMembers','HttpImport','/fetchmissing?from=','baseRev','JSONX','pluginName','registerOnClose','row','IUIPartsService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','storage','collab-text-anchor-','_event$','urlChange$','_draw','apply','_getUploadFileURL','prototype','call','allowed','_initRequestHeader','onReady','cmd','_status$','_state$','split','getMergeData','top','_queuedRemoteChangesets','idSuffix','sheets'];_0x1d05=function(){return _0x5ec935;};return _0x1d05();}me=Ms([st(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),st(0x1,_[_0x3b22f(0x378)])],me);const Ns=new Set([C[_0x3b22f(0x49b)]['id']]);function it(_0x25696a,_0x595084,_0x434828,_0x3836e6,_0x49bc5c){const _0x4b8579=_0x3b22f;var _0x5aab71,_0x5bfbc6,_0x40a952,_0xe5719;const _0x3cb025=[];for(const _0x15a786 of _0x25696a)if(Ns[_0x4b8579(0x3e5)](_0x15a786['id'])){if(_0x3cb025[_0x4b8579(0x291)]>0x0)break;_0x3cb025[_0x4b8579(0x1ed)](_0x15a786);break;}else _0x3cb025[_0x4b8579(0x1ed)](_0x15a786);const _0x303fe7=(_0x5bfbc6=(_0x5aab71=_0x49bc5c['getCurrentUser']())==null?void 0x0:_0x5aab71[_0x4b8579(0x2d0)])!=null?_0x5bfbc6:_0x4b8579(0x309),_0x427a5c=(_0xe5719=(_0x40a952=_0x49bc5c[_0x4b8579(0x2a3)]())==null?void 0x0:_0x40a952[_0x4b8579(0x598)])!=null?_0xe5719:_0x4b8579(0x309);return{'changeset':{'unitID':_0x595084,'type':_[_0x4b8579(0x312)](_0x434828[_0x4b8579(0x5d5)](_0x595084)),'baseRev':_0x3836e6[_0x4b8579(0x42d)](_0x595084),'revision':0x0,'userID':_0x303fe7,'memberID':_0x427a5c,'mutations':_0x3cb025},'pendingMutations':_0x25696a[_0x4b8579(0x20d)](_0x3cb025['length'])};}function As(_0x57ca4d,_0x4417eb,_0xdea9b4,_0x4f540d,_0x4647e6){const _0x29ddfe=_0x3b22f;var _0x4c6275,_0x32a64a,_0x461819,_0x4f00e2;const _0x5676a6=[_0x57ca4d[_0x29ddfe(0x50a)]((_0x2f6609,_0x24fd71)=>{const _0x557a04=_0x29ddfe;var _0x3cfe69;const {id:_0x4eb605}=_0x2f6609,{id:_0x2c478e,type:_0x17e491}=_0x24fd71,_0x14d5ea=(_0x3cfe69=_0x2f6609['params'])!=null?_0x3cfe69:{'actions':null},_0x27f32c=_0x24fd71['params'];if(_0x4eb605&&_0x4eb605!==_0x2c478e)throw new Error(_0x557a04(0x455)+_0x4eb605+_0x557a04(0x3b4)+_0x2c478e+'.');return{..._0x2f6609,'id':_0x2c478e,'type':_0x17e491,'params':{'unitId':_0x27f32c[_0x557a04(0x3df)],'textRanges':_0x27f32c[_0x557a04(0x4a4)],'actions':a[_0x557a04(0x4c2)][_0x557a04(0x31b)](_0x14d5ea['actions'],_0x27f32c['actions'])}};},{})],_0x475966=(_0x32a64a=(_0x4c6275=_0x4647e6['getCurrentUser']())==null?void 0x0:_0x4c6275['userID'])!=null?_0x32a64a:_0x29ddfe(0x309),_0x1b4036=(_0x4f00e2=(_0x461819=_0x4647e6[_0x29ddfe(0x2a3)]())==null?void 0x0:_0x461819[_0x29ddfe(0x598)])!=null?_0x4f00e2:_0x29ddfe(0x309);return{'changeset':{'unitID':_0x4417eb,'type':_[_0x29ddfe(0x312)](_0xdea9b4[_0x29ddfe(0x5d5)](_0x4417eb)),'baseRev':_0x4f540d[_0x29ddfe(0x42d)](_0x4417eb),'revision':0x0,'userID':_0x475966,'memberID':_0x1b4036,'mutations':_0x5676a6},'pendingMutations':[]};}const Ls={'id':C[_0x3b22f(0x3e2)]['id'],'type':a[_0x3b22f(0x3b8)][_0x3b22f(0x41d)],'params':{}};var js=Object['defineProperty'],$s=Object['getOwnPropertyDescriptor'],z=(_0xd3d7d8,_0x5a4267,_0xf6b739,_0x27ffdc)=>{const _0x2d74ff=_0x3b22f;for(var _0x3f98b4=_0x27ffdc>0x1?void 0x0:_0x27ffdc?$s(_0x5a4267,_0xf6b739):_0x5a4267,_0x17fd46=_0xd3d7d8[_0x2d74ff(0x291)]-0x1,_0x73812;_0x17fd46>=0x0;_0x17fd46--)(_0x73812=_0xd3d7d8[_0x17fd46])&&(_0x3f98b4=(_0x27ffdc?_0x73812(_0x5a4267,_0xf6b739,_0x3f98b4):_0x73812(_0x3f98b4))||_0x3f98b4);return _0x27ffdc&&_0x3f98b4&&js(_0x5a4267,_0xf6b739,_0x3f98b4),_0x3f98b4;},g=(_0x166fce,_0x139423)=>(_0x24e020,_0x37a106)=>_0x139423(_0x24e020,_0x37a106,_0x166fce),y=(_0xd344dc=>(_0xd344dc['NOT_COLLAB']='not_collab',_0xd344dc['SYNCED']=_0x3b22f(0x570),_0xd344dc['PENDING']='pending',_0xd344dc['AWAITING']=_0x3b22f(0x496),_0xd344dc[_0x3b22f(0x4ea)]=_0x3b22f(0x2f6),_0xd344dc[_0x3b22f(0x416)]=_0x3b22f(0x3d8),_0xd344dc[_0x3b22f(0x30c)]=_0x3b22f(0x36f),_0xd344dc[_0x3b22f(0x3ea)]='offline',_0xd344dc))(y||{});class J{constructor(_0x13c117,_0x5991a6,_0x4767e4,_0x11be97,_0x20981b,_0x466441,_0x58c5f4,_0x395477,_0x347aee){const _0x1b1722=_0x3b22f;d(this,_0x1b1722(0x43e),null),d(this,'_pendingMutations',[]),(this[_0x1b1722(0x40e)]=_0x13c117,this[_0x1b1722(0x331)]=_0x5991a6,this[_0x1b1722(0x51a)]=_0x20981b,this['_commandService']=_0x466441,this[_0x1b1722(0x4b6)]=_0x58c5f4,this[_0x1b1722(0x2d5)]=_0x395477,this[_0x1b1722(0x522)]=_0x347aee,this[_0x1b1722(0x43e)]=_0x4767e4,this[_0x1b1722(0x318)]=_0x11be97);}['_checkMissing'](_0x476e48){const _0x47e19f=_0x3b22f,_0x55fc4d=this['_revisionService'][_0x47e19f(0x42d)](this[_0x47e19f(0x40e)]);return _0x476e48['revision']>_0x55fc4d+0x1?(this[_0x47e19f(0x51a)]['onMissingChangesets']({'from':_0x55fc4d,'to':_0x476e48[_0x47e19f(0x40d)]-0x1}),!0x0):!0x1;}[_0x3b22f(0x569)](_0x144fa8){const _0x3a7d36=_0x3b22f;this['_undoRedoService'][_0x3a7d36(0x2f3)](this[_0x3a7d36(0x40e)],_0x144fa8);}[_0x3b22f(0x415)](_0x55ada7){const _0xdbdc3b=_0x3b22f;var _0x363c87,_0x5393db;(_0x5393db=(_0x363c87=this['_handler'])[_0xdbdc3b(0x24a)])==null||_0x5393db[_0xdbdc3b(0x4d0)](_0x363c87,_0x55ada7);}[_0x3b22f(0x28b)](_0x6308dc){var _0x15206b,_0x10b8d6;return(_0x10b8d6=(_0x15206b=this['_handler'])['onTransformIME'])==null?void 0x0:_0x10b8d6['call'](_0x15206b,_0x6308dc);}['_transformRemoteChangesetByIMECache'](_0x490e36){const _0x4cfc0d=_0x3b22f;var _0x19139d,_0x229305,_0x3b1f9f;return(_0x3b1f9f=(_0x229305=(_0x19139d=this[_0x4cfc0d(0x51a)])[_0x4cfc0d(0x357)])==null?void 0x0:_0x229305[_0x4cfc0d(0x4d0)](_0x19139d,_0x490e36))!=null?_0x3b1f9f:_0x490e36;}[_0x3b22f(0x4ae)](_0x1cea3d){const _0x18635d=_0x3b22f;var _0x263b3e,_0x60ad9b;if(this[_0x18635d(0x331)]===j['UNIVER_DOC']){const {unitID:_0x832911,mutations:_0x6f515b,memberID:_0x15d86f}=_0x1cea3d,_0x204c0a=_0x6f515b[0x0]['params'][_0x18635d(0x4a4)];Array[_0x18635d(0x33f)](_0x204c0a)&&_0x204c0a['length']>0x0&&((_0x60ad9b=(_0x263b3e=this[_0x18635d(0x51a)])['onSyncEditingCollabCursor'])==null||_0x60ad9b['call'](_0x263b3e,{'unitID':_0x832911,'memberID':_0x15d86f,'textRanges':_0x204c0a}));}}[_0x3b22f(0x4ad)](){const _0x2d131e=_0x3b22f;this['_localCacheService'][_0x2d131e(0x371)](this['unitID'],this[_0x2d131e(0x331)],this['_awaitingChangeset'],this[_0x2d131e(0x318)]);}['_getCurrentRevision'](){const _0x2def71=_0x3b22f;return this[_0x2def71(0x2d5)][_0x2def71(0x42d)](this['unitID']);}[_0x3b22f(0x237)](){const _0x138ecc=_0x3b22f;this[_0x138ecc(0x2d5)][_0x138ecc(0x2ed)](this[_0x138ecc(0x40e)]);}[_0x3b22f(0x515)](_0x3ca554){const _0x3e49a3=_0x3b22f;var _0x1b4f1f;const _0x464a26=this['_transformRemoteChangesetByIMECache'](_0x3ca554),_0x462edb=a['sequenceExecute'](_0x464a26[_0x3e49a3(0x3a2)],this[_0x3e49a3(0x4b9)],{'fromCollab':!0x0});if(!_0x462edb[_0x3e49a3(0x509)])throw _0x462edb[_0x3e49a3(0x49d)]instanceof Error?_0x462edb['error']:new Error((_0x1b4f1f=_0x462edb[_0x3e49a3(0x49d)])!=null?_0x1b4f1f:_0x3e49a3(0x344));this[_0x3e49a3(0x28b)](_0x464a26),this['_transformUndoredo'](_0x3ca554),this[_0x3e49a3(0x415)](_0x464a26),this['_syncEditingCollabCursor'](_0x464a26),this[_0x3e49a3(0x237)]();}}let se=class extends J{constructor(_0x2d9ca7,_0x120dc5,_0xdffedc,_0x29b7aa,_0x35a4f1,_0x52f2e8,_0x15817d,_0x55be91,_0x5b34da,_0x530c1e){const _0x47de9=_0x3b22f;super(_0x2d9ca7,_0x120dc5,null,[],_0xdffedc,_0x55be91,_0x15817d,_0x29b7aa,_0x35a4f1),d(this,_0x47de9(0x3d2),_0x47de9(0x570)),(this['_injector']=_0x52f2e8,this[_0x47de9(0x445)]=_0x5b34da,this['_transformService']=_0x530c1e);}[_0x3b22f(0x3bb)](_0x1a6594){const _0x45adfb=_0x3b22f,_0xf97f2c=this[_0x45adfb(0x397)][_0x45adfb(0x5e4)](x,this[_0x45adfb(0x40e)],this['type'],[_0x1a6594],this[_0x45adfb(0x51a)]);return _0xf97f2c[_0x45adfb(0x223)](),_0xf97f2c[_0x45adfb(0x4ad)](),_0xf97f2c;}[_0x3b22f(0x2af)](_0x3725ce){const _0xd5e7fa=_0x3b22f;if(this[_0xd5e7fa(0x235)](_0x3725ce))return this[_0xd5e7fa(0x397)][_0xd5e7fa(0x5e4)](H,this[_0xd5e7fa(0x40e)],this[_0xd5e7fa(0x331)],null,[],null,[_0x3725ce],this[_0xd5e7fa(0x51a)]);try{const _0x2ee259=this['_transformService'][_0xd5e7fa(0x261)](_0x3725ce,[Ls]);if(_[_0xd5e7fa(0x3db)](_0x2ee259)){const {c1Prime:_0x279504}=_0x2ee259;return this['_executeRemoteChangeset'](_0x279504),this;}throw _0x2ee259[_0xd5e7fa(0x49d)];}catch(_0x469d52){return this['_logService'][_0xd5e7fa(0x49d)](_0x469d52),this[_0xd5e7fa(0x23d)](!0x1);}}[_0x3b22f(0x23d)](_0x290d22){const _0x46f18e=_0x3b22f;return this['_injector'][_0x46f18e(0x5e4)](F,this[_0x46f18e(0x40e)],this['type'],null,[],this[_0x46f18e(0x51a)],_0x290d22);}[_0x3b22f(0x22e)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3b22f(0x377)](){const _0x3dec29=_0x3b22f;throw new Error(_0x3dec29(0x29e));}[_0x3b22f(0x2ea)](){const _0x2b6617=_0x3b22f;return this[_0x2b6617(0x397)]['createInstance'](G,this[_0x2b6617(0x40e)],this[_0x2b6617(0x331)],null,[],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x3da45c=_0x3b22f;throw new Error(_0x3da45c(0x327));}[_0x3b22f(0x22c)](){const _0x3da272=_0x3b22f,_0x270951=this[_0x3da272(0x2d5)][_0x3da272(0x42d)](this[_0x3da272(0x40e)]);return this[_0x3da272(0x51a)][_0x3da272(0x3e8)]({'from':_0x270951,'to':0x0}),this[_0x3da272(0x397)][_0x3da272(0x5e4)](H,this[_0x3da272(0x40e)],this[_0x3da272(0x331)],null,[],null,[],this[_0x3da272(0x51a)]);}};se=z([g(0x3,a['Inject'](_[_0x3b22f(0x450)])),g(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x519)]),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService'])],se);let x=class extends J{constructor(_0x43b37d,_0x5e3230,_0x1e9bd4,_0x42a490,_0x51afa1,_0xb01cfc,_0x49c0b6,_0x15bf12,_0x8aa958,_0x4cca81,_0x8d6bb,_0x51917c,_0x39bf13,_0x4314a6){const _0x1dd224=_0x3b22f;super(_0x43b37d,_0x5e3230,null,_0x1e9bd4,_0x42a490,_0x4cca81,_0x4314a6,_0xb01cfc,_0x49c0b6),d(this,'status',_0x1dd224(0x544)),d(this,_0x1dd224(0x39d),null),d(this,'_sendingTimer',null),(this['_injector']=_0x51afa1,this['_memberService']=_0x15bf12,this['_logService']=_0x8aa958,this['_configService']=_0x8d6bb,this['_transformService']=_0x51917c,this[_0x1dd224(0x340)]=_0x39bf13);}[_0x3b22f(0x3bb)](_0x27e10a){const _0xa1b5b4=_0x3b22f;return this[_0xa1b5b4(0x318)]['push'](_0x27e10a),this[_0xa1b5b4(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x556e93){const _0x19517b=_0x3b22f;if(this[_0x19517b(0x235)](_0x556e93))return this['_clearScheduledTask'](),this[_0x19517b(0x397)][_0x19517b(0x5e4)](H,this['unitID'],this[_0x19517b(0x331)],null,this[_0x19517b(0x318)],null,[_0x556e93],this['_handler']);try{const _0x1b5be7=this[_0x19517b(0x294)]['transformMutationsWithChangeset'](_0x556e93,this[_0x19517b(0x318)]);if(_[_0x19517b(0x3db)](_0x1b5be7)){const {c1Prime:_0x3ce0a1,m2Prime:_0x1d409b}=_0x1b5be7;this['_executeRemoteChangeset'](_0x3ce0a1);const _0x3cc821=this[_0x19517b(0x397)][_0x19517b(0x5e4)](x,this['unitID'],this[_0x19517b(0x331)],_0x1d409b,this[_0x19517b(0x51a)]);return this[_0x19517b(0x29a)](),_0x3cc821['_schedule'](this[_0x19517b(0x39d)]?Math[_0x19517b(0x31e)](0x0,new Date()['getTime']()-this[_0x19517b(0x39d)]):this[_0x19517b(0x5c1)]()),_0x3cc821;}throw _0x1b5be7[_0x19517b(0x49d)];}catch(_0x186e81){return this[_0x19517b(0x445)]['error'](_0x186e81),this[_0x19517b(0x23d)](!0x1);}}[_0x3b22f(0x22e)](){const _0x40b0e7=_0x3b22f;throw new Error(_0x40b0e7(0x202));}['onRemoteRej'](){const _0x321ffb=_0x3b22f;throw new Error(_0x321ffb(0x4e9));}[_0x3b22f(0x2ea)](){const _0x2cbf8c=_0x3b22f;return this['_clearScheduledTask'](),this[_0x2cbf8c(0x397)][_0x2cbf8c(0x5e4)](G,this['unitID'],this[_0x2cbf8c(0x331)],null,this[_0x2cbf8c(0x318)],this[_0x2cbf8c(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x223)](_0x5c075f){const _0x28c955=_0x3b22f,_0x4b56e6=_0x5c075f!=null?_0x5c075f:this[_0x28c955(0x5c1)]();this[_0x28c955(0x39d)]=new Date()[_0x28c955(0x534)](),this[_0x28c955(0x525)]=window[_0x28c955(0x576)](()=>{const _0x53af03=_0x28c955;this['_clearScheduledTask']();let _0x27ebdd=null;switch(this[_0x53af03(0x331)]){case j[_0x53af03(0x3c0)]:{_0x27ebdd=it(this[_0x53af03(0x318)],this['unitID'],this['_univerInstanceService'],this[_0x53af03(0x2d5)],this['_memberService']);break;}case j['UNIVER_DOC']:{this['_pendingMutations'][_0x53af03(0x346)](_0x2c9219=>_0x2c9219['id']===V['RichTextEditingMutation']['id'])?_0x27ebdd=As(this['_pendingMutations'],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]):_0x27ebdd=it(this[_0x53af03(0x318)],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53af03(0x331)]+_0x53af03(0x278));}const {changeset:_0x247111,pendingMutations:_0x4a2163}=_0x27ebdd;this[_0x53af03(0x51a)]['onSendChangeset'](_0x247111);const _0x15a48e=_0x4a2163['length']?this[_0x53af03(0x397)]['createInstance'](k,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,_0x4a2163,this[_0x53af03(0x51a)]):this[_0x53af03(0x397)]['createInstance'](W,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,this[_0x53af03(0x51a)]);_0x15a48e[_0x53af03(0x4ad)](),this[_0x53af03(0x51a)][_0x53af03(0x46e)](this,_0x15a48e);},_0x4b56e6);}['_getSendChangesetTimeout'](){const _0x5018ed=_0x3b22f;var _0x431666;const _0x3e3ba4=this[_0x5018ed(0x266)][_0x5018ed(0x504)](A);return(_0x431666=_0x3e3ba4==null?void 0x0:_0x3e3ba4[_0x5018ed(0x3aa)])!=null?_0x431666:Kt;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x5b78f6=_0x3b22f;this[_0x5b78f6(0x525)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x3b22f(0x23d)](_0x79f4cd){const _0x222335=_0x3b22f;return this[_0x222335(0x29a)](),this[_0x222335(0x397)][_0x222335(0x5e4)](F,this[_0x222335(0x40e)],this['type'],null,this[_0x222335(0x318)],this[_0x222335(0x51a)],_0x79f4cd);}};x=z([g(0x4,a['Inject'](a[_0x3b22f(0x252)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports['LocalCacheService'])),g(0x7,a[_0x3b22f(0x492)](q)),g(0x8,a[_0x3b22f(0x308)]),g(0x9,a[_0x3b22f(0x323)]),g(0xa,a[_0x3b22f(0x5ad)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b22f(0x26b)]),g(0xd,a[_0x3b22f(0x519)])],x);let W=class extends J{constructor(_0x17c108,_0x3438d4,_0x288115,_0x245dd3,_0x37c6df,_0x382836,_0x4f469b,_0x2466d3,_0x33066c,_0x4f1a23,_0x5be437){const _0xe75393=_0x3b22f;super(_0x17c108,_0x3438d4,_0x288115,[],_0x245dd3,_0x2466d3,_0x5be437,_0x382836,_0x4f469b),d(this,_0xe75393(0x3d2),_0xe75393(0x496)),(this[_0xe75393(0x397)]=_0x37c6df,this['_logService']=_0x33066c,this['_transformService']=_0x4f1a23);}['appendMutation'](_0x5d7270){const _0x4d0a65=_0x3b22f,_0x10918e=this[_0x4d0a65(0x397)][_0x4d0a65(0x5e4)](k,this['unitID'],this['type'],this[_0x4d0a65(0x43e)],[_0x5d7270],this[_0x4d0a65(0x51a)]);return _0x10918e['_updateLocalCache'](),_0x10918e;}['onRemoteChangeset'](_0xe3426f){const _0x1fb06c=_0x3b22f;if(this['_checkMissing'](_0xe3426f))return this[_0x1fb06c(0x397)][_0x1fb06c(0x5e4)](H,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],this[_0x1fb06c(0x43e)],[],null,[_0xe3426f],this[_0x1fb06c(0x51a)]);try{const _0xecb6e9=this[_0x1fb06c(0x294)][_0x1fb06c(0x29b)]([_0xe3426f],[this[_0x1fb06c(0x43e)]],!0x1);if(_[_0x1fb06c(0x518)](_0xecb6e9)){const {c1Prime:_0x3634cd,c2Prime:_0x421ce7}=_0xecb6e9;this[_0x1fb06c(0x515)](_0x3634cd[0x0]),_0x421ce7[0x0][_0x1fb06c(0x4c1)]=this[_0x1fb06c(0x490)]();const _0x46556c=this['_injector']['createInstance'](W,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],_0x421ce7[0x0],this[_0x1fb06c(0x51a)]);return _0x46556c[_0x1fb06c(0x4ad)](),_0x46556c;}return this[_0x1fb06c(0x23d)](!0x1);}catch(_0x38101b){return this[_0x1fb06c(0x445)][_0x1fb06c(0x49d)](_0x38101b),this[_0x1fb06c(0x23d)](!0x1);}}['onRemoteAck'](_0x259296){const _0x519d1c=_0x3b22f,_0x46d085=this[_0x519d1c(0x2d5)]['getCurrentRevOfUnit'](this[_0x519d1c(0x40e)]);if(_0x259296[_0x519d1c(0x40d)]<_0x46d085-0x1)return this;if(this[_0x519d1c(0x235)](_0x259296))return this['_injector'][_0x519d1c(0x5e4)](H,this['unitID'],this[_0x519d1c(0x331)],null,[],this[_0x519d1c(0x43e)],[],this[_0x519d1c(0x51a)]);this[_0x519d1c(0x237)]();const _0x1a11ce=this['_injector'][_0x519d1c(0x5e4)](se,this['unitID'],this['type'],this[_0x519d1c(0x51a)]);return _0x1a11ce[_0x519d1c(0x4ad)](),_0x1a11ce;}['onRemoteRej'](_0x5b711a){const _0x2ec05e=_0x3b22f;return this[_0x2ec05e(0x23d)](!!(_0x5b711a!=null&&_0x5b711a['isPermissionRej']));}['toggleOffline'](){const _0x526254=_0x3b22f;return this[_0x526254(0x397)][_0x526254(0x5e4)](G,this[_0x526254(0x40e)],this[_0x526254(0x331)],this[_0x526254(0x43e)],[],this[_0x526254(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x30d5ed=_0x3b22f;this['_handler'][_0x30d5ed(0x55d)](this[_0x30d5ed(0x43e)]);}['_onConflict'](_0x5b100f){const _0x526352=_0x3b22f;return this['_injector'][_0x526352(0x5e4)](F,this['unitID'],this['type'],this[_0x526352(0x43e)],[],this[_0x526352(0x51a)],_0x5b100f);}};W=z([g(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x5,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x308)]),g(0x9,_[_0x3b22f(0x378)]),g(0xa,a[_0x3b22f(0x519)])],W);let k=class extends J{constructor(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x499f13,_0x3059f4,_0x1fcb43,_0x45e0ac,_0x2913c1,_0xa04f29,_0x172417){const _0x134223=_0x3b22f;super(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x45e0ac,_0x172417,_0x3059f4,_0x1fcb43),d(this,_0x134223(0x3d2),_0x134223(0x2f6)),(this[_0x134223(0x397)]=_0x499f13,this['_logService']=_0x2913c1,this[_0x134223(0x294)]=_0xa04f29);}['appendMutation'](_0x2f60e3){const _0x368216=_0x3b22f;return this['_pendingMutations'][_0x368216(0x1ed)](_0x2f60e3),this;}[_0x3b22f(0x2af)](_0x531480){const _0x481f18=_0x3b22f;if(this[_0x481f18(0x235)](_0x531480))return this[_0x481f18(0x397)]['createInstance'](H,this[_0x481f18(0x40e)],this['type'],this[_0x481f18(0x43e)],this[_0x481f18(0x318)],null,[_0x531480],this[_0x481f18(0x51a)]);try{const _0x4b13ea=this[_0x481f18(0x294)][_0x481f18(0x29b)]([_0x531480],[this[_0x481f18(0x43e)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4b13ea)){const {c1Prime:_0x5178da,c2Prime:_0x157aa2}=_0x4b13ea,_0x4f63c6=this[_0x481f18(0x294)][_0x481f18(0x261)](_0x5178da[0x0],this['_pendingMutations']);if(_[_0x481f18(0x3db)](_0x4f63c6)){const {c1Prime:_0xe4f1fd,m2Prime:_0x10dc68}=_0x4f63c6;return this['_executeRemoteChangeset'](_0xe4f1fd),_0x157aa2[0x0][_0x481f18(0x4c1)]=this[_0x481f18(0x490)](),this['_injector']['createInstance'](k,this[_0x481f18(0x40e)],this['type'],_0x157aa2[0x0],_0x10dc68,this['_handler']);}throw _0x4f63c6[_0x481f18(0x49d)];}throw _0x4b13ea[_0x481f18(0x49d)];}catch(_0x515589){return this[_0x481f18(0x445)][_0x481f18(0x49d)](_0x515589),this[_0x481f18(0x23d)](!0x1);}}[_0x3b22f(0x22e)](_0x39188b){const _0x3d719=_0x3b22f;if(this[_0x3d719(0x235)](_0x39188b))return this[_0x3d719(0x397)][_0x3d719(0x5e4)](H,this[_0x3d719(0x40e)],this['type'],null,this[_0x3d719(0x318)],this[_0x3d719(0x43e)],[],this[_0x3d719(0x51a)]);this[_0x3d719(0x237)]();const _0xf9ed1=this[_0x3d719(0x397)][_0x3d719(0x5e4)](x,this[_0x3d719(0x40e)],this['type'],this[_0x3d719(0x318)],this[_0x3d719(0x51a)]);return _0xf9ed1['_schedule'](),_0xf9ed1[_0x3d719(0x4ad)](),_0xf9ed1;}['onRemoteRej'](_0x425b42){const _0x40165b=_0x3b22f;return this[_0x40165b(0x23d)](!!(_0x425b42!=null&&_0x425b42['isPermissionRej']));}[_0x3b22f(0x2ea)](){const _0x57dc10=_0x3b22f;return this['_injector']['createInstance'](G,this[_0x57dc10(0x40e)],this[_0x57dc10(0x331)],this[_0x57dc10(0x43e)],this[_0x57dc10(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x2b6)](){const _0x552a80=_0x3b22f;this[_0x552a80(0x51a)][_0x552a80(0x55d)](this[_0x552a80(0x43e)]);}[_0x3b22f(0x23d)](_0x2f419d){const _0x52494c=_0x3b22f;return this[_0x52494c(0x397)][_0x52494c(0x5e4)](F,this[_0x52494c(0x40e)],this['type'],null,this[_0x52494c(0x318)],this[_0x52494c(0x51a)],_0x2f419d);}};k=z([g(0x5,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x308)]),g(0xa,_[_0x3b22f(0x378)]),g(0xb,a[_0x3b22f(0x519)])],k);let F=class extends J{constructor(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x3bcc04=!0x1,_0x311f1a,_0x277556,_0x350fa5,_0x50273f,_0x2924e3,_0x1b511a,_0x1f9a5b){const _0xe18a4b=_0x3b22f;super(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x277556,_0x350fa5,_0x2924e3,_0x50273f),d(this,_0xe18a4b(0x3d2),_0xe18a4b(0x36f)),(this[_0xe18a4b(0x1e3)]=_0x3bcc04,this[_0xe18a4b(0x444)]=_0x311f1a,this[_0xe18a4b(0x316)]=_0x1b511a,this[_0xe18a4b(0x590)]=_0x1f9a5b,this[_0xe18a4b(0x3c8)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3b22f(0x22e)](){return this;}[_0x3b22f(0x377)](){return this;}[_0x3b22f(0x2ea)](){return this;}['toggleOnline'](){return this;}[_0x3b22f(0x2b6)](){const _0x18e8a6=_0x3b22f;throw new Error(_0x18e8a6(0x277));}[_0x3b22f(0x2cd)](){const _0x4d4a23=_0x3b22f;this['_localCacheService'][_0x4d4a23(0x371)](this['unitID'],this[_0x4d4a23(0x331)],null,[]);}[_0x3b22f(0x3c8)](){const _0x4ee0c6=_0x3b22f;this[_0x4ee0c6(0x1e3)]?this[_0x4ee0c6(0x590)][_0x4ee0c6(0x224)]({'title':this['_localeService']['t'](_0x4ee0c6(0x483)),'content':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x383)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x271)),'content':this['_localeService']['t'](_0x4ee0c6(0x59e)),'type':_0x4ee0c6(0x49d),'duration':0x0});}[_0x3b22f(0x2e7)](){const _0x12c4e7=_0x3b22f;this['_permissionService'][_0x12c4e7(0x449)](new C[(_0x12c4e7(0x5d2))](this[_0x12c4e7(0x40e)])['id'],!0x1);}};F=z([g(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x300)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x519)]),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0xb,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),g(0xc,N[_0x3b22f(0x2e5)])],F);let G=class extends J{constructor(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x1cc8e8,_0x192cb0,_0xa1f126,_0x3f97fc,_0x531033){const _0x3d6138=_0x3b22f;super(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x3f97fc,_0x531033,_0x192cb0,_0xa1f126),d(this,_0x3d6138(0x3d2),_0x3d6138(0x45f)),this[_0x3d6138(0x397)]=_0x1cc8e8;}[_0x3b22f(0x3bb)](_0x226807){const _0x2c3411=_0x3b22f;return this['_pendingMutations'][_0x2c3411(0x1ed)](_0x226807),this[_0x2c3411(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x3bd28d){const _0x19dcb1=_0x3b22f;throw new Error(_0x19dcb1(0x241));}[_0x3b22f(0x22e)](){const _0x4e9009=_0x3b22f;throw new Error(_0x4e9009(0x325));}[_0x3b22f(0x377)](){const _0x4ed715=_0x3b22f;throw new Error(_0x4ed715(0x506));}['toggleOffline'](){return this;}[_0x3b22f(0x3ff)](){const _0x5f0faa=_0x3b22f,{_injector:_0x5902e4,_pendingMutations:_0x295786,_awaitingChangeset:_0xf5a5ce,unitID:_0x4b2638,_handler:_0x75b81b,type:_0x3fa9d0}=this,_0x1c4b23=Rt(_0x5902e4,_0x4b2638,_0x3fa9d0,_0xf5a5ce,_0x295786,_0x75b81b);return _0x1c4b23 instanceof x?_0x1c4b23['_schedule']():(_0x1c4b23 instanceof k||_0x1c4b23 instanceof W)&&_0x1c4b23[_0x5f0faa(0x2b6)](),_0x1c4b23;}['resend'](){const _0x7189f5=_0x3b22f;throw new Error(_0x7189f5(0x4bc));}};G=z([g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a['Inject'](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x519)])],G);let H=class extends J{constructor(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x4909ac,_0x5537b4,_0x3426e2,_0x4e43c0,_0x2eec28,_0x360c35,_0x4c8330,_0x2029c1,_0x2122c9,_0x2d2827){const _0x42b86b=_0x3b22f;super(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x3426e2,_0x2029c1,_0x2122c9,_0x2eec28,_0x360c35),d(this,_0x42b86b(0x3d2),_0x42b86b(0x3d8)),(this['_acknowledgedAwaitingChangeset']=_0x4909ac,this['_queuedRemoteChangesets']=_0x5537b4,this['_injector']=_0x4e43c0,this[_0x42b86b(0x445)]=_0x4c8330,this[_0x42b86b(0x294)]=_0x2d2827);}[_0x3b22f(0x226)](_0x74d4a9){const _0x5df137=_0x3b22f;try{const _0x145cb2=[..._0x74d4a9,...this[_0x5df137(0x4da)]],_0x202f2e=[this[_0x5df137(0x43e)]||this['_acknowledgedAwaitingChangeset']][_0x5df137(0x3f9)](_0x338476=>!!_0x338476);let _0x66311c,_0xdd8f41;if(_0x202f2e[_0x5df137(0x291)]){const _0x3780da=this[_0x5df137(0x294)][_0x5df137(0x29b)](_0x145cb2,_0x202f2e,!0x1);if(!_[_0x5df137(0x518)](_0x3780da))throw _0x3780da[_0x5df137(0x49d)];_0x66311c=_0x3780da[_0x5df137(0x5d4)],_0xdd8f41=_0x3780da[_0x5df137(0x439)];}else _0x66311c=_0x145cb2,_0xdd8f41=[];let _0x3c0939=this['_pendingMutations'];_0x66311c[_0x5df137(0x339)](_0x416e03=>{const _0x34e6c3=_0x5df137;let _0x57d081;if(_0x3c0939[_0x34e6c3(0x291)]){const _0x84af52=this['_transformService']['transformMutationsWithChangeset'](_0x416e03,_0x3c0939);if(!_[_0x34e6c3(0x3db)](_0x84af52))throw _0x84af52['error'];_0x57d081=_0x84af52[_0x34e6c3(0x5d4)],_0x3c0939=_0x84af52[_0x34e6c3(0x2e8)];}else _0x57d081=_0x416e03;this['_executeRemoteChangeset'](_0x57d081);}),this[_0x5df137(0x446)]&&this[_0x5df137(0x237)](),this['_awaitingChangeset']&&_0xdd8f41['length']&&(_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision']());let _0x1f5e8c;if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]!==0x0)_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](k,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],_0x3c0939,this[_0x5df137(0x51a)]);else{if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]===0x0)_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision'](),_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](W,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],this[_0x5df137(0x51a)]);else{if(_0x3c0939[_0x5df137(0x291)]!==0x0){const _0x4e28c7=this[_0x5df137(0x397)][_0x5df137(0x5e4)](x,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],_0x3c0939,this[_0x5df137(0x51a)]);_0x4e28c7[_0x5df137(0x223)](),_0x1f5e8c=_0x4e28c7;}else _0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](se,this[_0x5df137(0x40e)],this['type'],this[_0x5df137(0x51a)]);}}return _0x1f5e8c[_0x5df137(0x4ad)](),_0x1f5e8c;}catch(_0x914e92){return this[_0x5df137(0x445)][_0x5df137(0x49d)]('[FetchMissState]',_0x5df137(0x47d),_0x914e92),this[_0x5df137(0x397)][_0x5df137(0x5e4)](F,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],this['_awaitingChangeset'],this[_0x5df137(0x318)],this[_0x5df137(0x51a)],!0x1);}}[_0x3b22f(0x2b6)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b22f(0x3bb)](_0x1be356){const _0x3b7bc3=_0x3b22f;return this[_0x3b7bc3(0x318)][_0x3b7bc3(0x1ed)](_0x1be356),this;}['onRemoteChangeset'](_0x538ccf){const _0x1e5685=_0x3b22f;return this[_0x1e5685(0x4da)][_0x1e5685(0x1ed)](_0x538ccf),this;}['onRemoteAck'](_0x1f1a63){const _0x17a352=_0x3b22f;if(this[_0x17a352(0x43e)])return this[_0x17a352(0x446)]=this[_0x17a352(0x43e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3b22f(0x377)](_0x381f48){const _0x446f74=_0x3b22f;return this[_0x446f74(0x23d)](!!(_0x381f48!=null&&_0x381f48[_0x446f74(0x414)]));}[_0x3b22f(0x2ea)](){const _0x1a8ffe=_0x3b22f;return this[_0x1a8ffe(0x397)][_0x1a8ffe(0x5e4)](G,this[_0x1a8ffe(0x40e)],this[_0x1a8ffe(0x331)],this[_0x1a8ffe(0x43e)],this[_0x1a8ffe(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['_onConflict'](_0x4f38c3){const _0x4ca130=_0x3b22f;return this[_0x4ca130(0x397)][_0x4ca130(0x5e4)](F,this[_0x4ca130(0x40e)],this[_0x4ca130(0x331)],this[_0x4ca130(0x43e)],this['_pendingMutations'],this['_handler'],_0x4f38c3);}};H=z([g(0x7,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x8,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x308)]),g(0xb,a[_0x3b22f(0x323)]),g(0xc,a[_0x3b22f(0x519)]),g(0xd,_[_0x3b22f(0x378)])],H);function Rt(_0x3ef584,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6){const _0x4c9515=_0x3b22f;return _0x4617c1&&_0x3398ed[_0x4c9515(0x291)]?_0x3ef584[_0x4c9515(0x5e4)](k,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6):_0x4617c1?_0x3ef584[_0x4c9515(0x5e4)](W,_0x5ac996,_0x2d70ef,_0x4617c1,_0x5ecee6):_0x3398ed[_0x4c9515(0x291)]?_0x3ef584['createInstance'](x,_0x5ac996,_0x2d70ef,_0x3398ed,_0x5ecee6):_0x3ef584['createInstance'](se,_0x5ac996,_0x2d70ef,_0x5ecee6);}var Hs=Object[_0x3b22f(0x1ff)],xs=Object[_0x3b22f(0x246)],Ke=(_0x160de5,_0xfd1bc0,_0x2ebcac,_0x58d4f8)=>{const _0x2da4df=_0x3b22f;for(var _0xb2c9f5=_0x58d4f8>0x1?void 0x0:_0x58d4f8?xs(_0xfd1bc0,_0x2ebcac):_0xfd1bc0,_0x536d4d=_0x160de5[_0x2da4df(0x291)]-0x1,_0xd4da79;_0x536d4d>=0x0;_0x536d4d--)(_0xd4da79=_0x160de5[_0x536d4d])&&(_0xb2c9f5=(_0x58d4f8?_0xd4da79(_0xfd1bc0,_0x2ebcac,_0xb2c9f5):_0xd4da79(_0xb2c9f5))||_0xb2c9f5);return _0x58d4f8&&_0xb2c9f5&&Hs(_0xfd1bc0,_0x2ebcac,_0xb2c9f5),_0xb2c9f5;},I=(_0x403704,_0x14f853)=>(_0x48265e,_0x5bf123)=>_0x14f853(_0x48265e,_0x5bf123,_0x403704);exports[_0x3b22f(0x2cb)]=class extends a[_0x3b22f(0x398)]{constructor(_0x48580e,_0x532a8f,_0x14e226,_0x422fc3,_0x3ae266,_0x565fa5,_0x49ed9a,_0x3491e0,_0x5992d3,_0x13eb14,_0xf4cf7c,_0x57887e,_0x2aa255){const _0x54dfef=_0x3b22f;super(),d(this,_0x54dfef(0x4d6),new v[(_0x54dfef(0x502))](null)),d(this,_0x54dfef(0x3ce),this[_0x54dfef(0x4d6)][_0x54dfef(0x56e)]()),d(this,_0x54dfef(0x5d6)),d(this,_0x54dfef(0x4e1),!0x1),d(this,_0x54dfef(0x386),this[_0x54dfef(0x3ce)][_0x54dfef(0x3de)](v[_0x54dfef(0x57b)](_0x3d1917=>_0x3d1917?_0x3d1917[_0x54dfef(0x3d2)]:y[_0x54dfef(0x3ea)]),v[_0x54dfef(0x42e)](0x1))),d(this,_0x54dfef(0x2fb),!0x1),d(this,_0x54dfef(0x5b1),[]),(this['unitID']=_0x48580e,this[_0x54dfef(0x2bf)]=_0x532a8f,this[_0x54dfef(0x58b)]=_0x14e226,this['_injector']=_0x422fc3,this[_0x54dfef(0x522)]=_0x3ae266,this[_0x54dfef(0x260)]=_0x565fa5,this[_0x54dfef(0x316)]=_0x49ed9a,this[_0x54dfef(0x2d5)]=_0x3491e0,this[_0x54dfef(0x445)]=_0x5992d3,this[_0x54dfef(0x4b9)]=_0x13eb14,this[_0x54dfef(0x31d)]=_0xf4cf7c,this[_0x54dfef(0x444)]=_0x57887e,this[_0x54dfef(0x599)]=_0x2aa255);}get[_0x3b22f(0x374)](){const _0x4166e6=_0x3b22f;return this[_0x4166e6(0x5d6)];}async['init'](){const _0x5319f8=_0x3b22f;if(this[_0x5319f8(0x374)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5319f8(0x341)]();}[_0x3b22f(0x465)](){const _0x4671fa=_0x3b22f;return this[_0x4671fa(0x4e1)]=!0x0,a[_0x4671fa(0x526)](()=>{const _0x55db6b=_0x4671fa;this['_collaborationPaused']=!0x1,this[_0x55db6b(0x2df)]();});}[_0x3b22f(0x334)](_0x564dad){const _0x2f2f1f=_0x3b22f;this[_0x2f2f1f(0x5d6)]=_0x564dad,this[_0x2f2f1f(0x4d6)][_0x2f2f1f(0x52d)](_0x564dad);}async[_0x3b22f(0x341)](){const _0x31c6df=_0x3b22f;var _0x10642f;this[_0x31c6df(0x334)](await this[_0x31c6df(0x43b)]()),this[_0x31c6df(0x599)]&&((_0x10642f=this['_singleActiveUnitService'])==null||_0x10642f[_0x31c6df(0x558)](this[_0x31c6df(0x40e)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x31c6df(0x568)](this[_0x31c6df(0x40e)])['subscribe'](_0x40ca4e=>{const _0x3c805f=_0x31c6df;this[_0x3c805f(0x445)][_0x3c805f(0x320)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x40ca4e),_0x40ca4e===bt[_0x3c805f(0x2b0)]?(this[_0x3c805f(0x31d)]['show']({'content':this[_0x3c805f(0x316)]['t'](_0x3c805f(0x44f)),'type':X['MessageType'][_0x3c805f(0x3b7)]}),this[_0x3c805f(0x444)][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this[_0x3c805f(0x40e)])['id'],!0x0);})));let _0x383cbb=!0x1;return this['disposeWithMe'](this[_0x31c6df(0x2bf)][_0x31c6df(0x1f1)][_0x31c6df(0x42c)](_0x20810e=>{const _0x1cc7f1=_0x31c6df;_0x20810e===$[_0x1cc7f1(0x22f)]?this[_0x1cc7f1(0x553)](_0x383cbb):_0x20810e===$['OFFLINE']&&(_0x383cbb=!0x0,this[_0x1cc7f1(0x37f)]());})),this[_0x31c6df(0x283)](this[_0x31c6df(0x2bf)][_0x31c6df(0x3b5)]['subscribe'](_0x285246=>{const _0x3b9096=_0x31c6df;try{switch(_0x285246[_0x3b9096(0x3cc)]){case _[_0x3b9096(0x44c)][_0x3b9096(0x329)]:{this[_0x3b9096(0x548)](_[_0x3b9096(0x543)](_0x285246[_0x3b9096(0x45b)]));break;}case _[_0x3b9096(0x44c)]['CHANGESET_ACK']:{this[_0x3b9096(0x535)](_0x285246['data']);break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x36e)]:{this[_0x3b9096(0x582)]();break;}case _[_0x3b9096(0x44c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x285246[_0x3b9096(0x45b)][_0x3b9096(0x528)][_0x3b9096(0x57b)](_0x2ba293=>_[_0x3b9096(0x543)](_0x2ba293)));break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x4a2)]:this[_0x3b9096(0x582)]({'isPermissionRej':!0x0});}}catch(_0x392294){throw console[_0x3b9096(0x49d)](_0x3b9096(0x513),_0x392294),_0x392294;}})),this[_0x31c6df(0x5d6)];}['_unlockTransition'](){const _0xd3b062=_0x3b22f;this[_0xd3b062(0x2fb)]=!0x1;}['_lockTransition'](){if(this['_transitionLocked'])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x3b22f(0x477)](_0x77989e){const _0x1ed8de=_0x3b22f;this[_0x1ed8de(0x319)](),this[_0x1ed8de(0x334)](this[_0x1ed8de(0x5d6)][_0x1ed8de(0x3bb)](_0x77989e)),this[_0x1ed8de(0x2ca)]();}['_onRemoteChangeset'](_0x4af0dc){const _0x48716e=_0x3b22f;if(!(_0x4af0dc['revision']<=this[_0x48716e(0x2d5)][_0x48716e(0x42d)](this[_0x48716e(0x40e)]))){if(this[_0x48716e(0x4e1)]){this['_remoteChangesetQueue'][_0x48716e(0x1ed)](_0x4af0dc);return;}this['_applyRemoteChangeset'](_0x4af0dc);}}[_0x3b22f(0x2df)](){const _0x78af4e=_0x3b22f;this['_remoteChangesetQueue'][_0x78af4e(0x339)](_0x5620b2=>this[_0x78af4e(0x38c)](_0x5620b2)),this[_0x78af4e(0x5b1)]=[];}[_0x3b22f(0x38c)](_0x2f424b){const _0xf15ca3=_0x3b22f,_0x49fc85=this[_0xf15ca3(0x260)]['interceptor'][_0xf15ca3(0x284)](this[_0xf15ca3(0x260)][_0xf15ca3(0x542)][_0xf15ca3(0x40b)]()[_0xf15ca3(0x580)])(_0x2f424b[_0xf15ca3(0x3a2)],null)||_0x2f424b['mutations'],_0x7c8381={..._0x2f424b,'mutations':_0x49fc85};this['_lockTransition'](),this[_0xf15ca3(0x334)](this[_0xf15ca3(0x5d6)][_0xf15ca3(0x2af)](_0x7c8381)),this[_0xf15ca3(0x2ca)]();}[_0x3b22f(0x535)](_0x3c226a){const _0x31c2e8=_0x3b22f;this[_0x31c2e8(0x319)](),this['_updateState'](this[_0x31c2e8(0x5d6)][_0x31c2e8(0x22e)](_0x3c226a)),this[_0x31c2e8(0x2ca)]();}[_0x3b22f(0x582)](_0x41e1e6){const _0x29e309=_0x3b22f;this[_0x29e309(0x319)](),this[_0x29e309(0x334)](this['_state'][_0x29e309(0x377)](_0x41e1e6)),this['_unlockTransition']();}[_0x3b22f(0x410)](_0x1f895f){const _0x24fa9a=_0x3b22f;if(!(this[_0x24fa9a(0x5d6)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x58e2db=_0x1f895f['map'](_0x59d6b2=>{const _0x5c5afc=_0x24fa9a,_0x655a8c=this[_0x5c5afc(0x260)]['interceptor'][_0x5c5afc(0x284)](this[_0x5c5afc(0x260)][_0x5c5afc(0x542)][_0x5c5afc(0x40b)]()[_0x5c5afc(0x580)])(_0x59d6b2[_0x5c5afc(0x3a2)],null)||_0x59d6b2[_0x5c5afc(0x3a2)];return{..._0x59d6b2,'mutations':_0x655a8c};});this['_lockTransition'](),this[_0x24fa9a(0x334)](this[_0x24fa9a(0x5d6)]['onMissedChangesetFetched'](_0x58e2db)),this['_unlockTransition']();}[_0x3b22f(0x37f)](){const _0x360964=_0x3b22f;this['_lockTransition'](),this['_updateState'](this['_state'][_0x360964(0x2ea)]()),this[_0x360964(0x2ca)]();}['_toggleOnline'](_0x5d10bc=!0x1){const _0x4537d5=_0x3b22f;this[_0x4537d5(0x319)](),this[_0x4537d5(0x334)](this[_0x4537d5(0x5d6)][_0x4537d5(0x3ff)]()),this['_unlockTransition']();const _0x20894f=this['_state'];_0x5d10bc&&_0x20894f instanceof se&&(this['_lockTransition'](),this[_0x4537d5(0x334)](_0x20894f[_0x4537d5(0x22c)]()),this['_unlockTransition']());}async[_0x3b22f(0x43b)](){return new Promise(_0x41372b=>{const _0x4b7d8b=_0x2c53;this[_0x4b7d8b(0x2bf)][_0x4b7d8b(0x1f1)][_0x4b7d8b(0x3de)](v['take'](0x1))['subscribe'](async _0x55a680=>{const _0x434186=_0x4b7d8b;_0x41372b(await this['_createInitialStateImpl'](_0x55a680===$[_0x434186(0x22f)]));});});}['_createHandler'](){const _0x1de144=_0x3b22f,_0x2b0b49=this[_0x1de144(0x40e)];return{'onStateChange':(_0x115799,_0x1f839f)=>{const _0x46f159=_0x1de144;if(_0x115799!==this[_0x46f159(0x5d6)])throw new Error(_0x46f159(0x265)+_0x115799['status']+'\x0aAfter:\x20'+_0x1f839f[_0x46f159(0x3d2)]+_0x46f159(0x491)+this[_0x46f159(0x5d6)][_0x46f159(0x3d2)]);this[_0x46f159(0x334)](_0x1f839f);},'onSendChangeset':_0x114f7b=>{const _0x442177=_0x1de144,_0x4a598a={'eventID':_[_0x442177(0x44c)][_0x442177(0x5ac)],'data':{'unitID':_0x114f7b[_0x442177(0x40e)],'unitType':this[_0x442177(0x58b)],'changeset':_0x114f7b,'memberID':this['session']['getMemberID']()}};this[_0x442177(0x2bf)][_0x442177(0x3c5)](_0x4a598a,this[_0x442177(0x40e)]);},'onMissingChangesets':({from:_0x1382ec,to:_0x5b4eb6})=>{const _0x4018a4=_0x1de144;this['_logService'][_0x4018a4(0x320)]('[CollaborationEntity]',_0x4018a4(0x42a)+_0x1382ec+_0x4018a4(0x239)+_0x5b4eb6);const _0x1af9c6={'eventID':_[_0x4018a4(0x44c)]['FETCH_MISSING'],'data':{'unitID':_0x2b0b49,'unitType':this[_0x4018a4(0x58b)],'from':_0x1382ec,'to':_0x5b4eb6}};this[_0x4018a4(0x2bf)][_0x4018a4(0x3c5)](_0x1af9c6,this[_0x4018a4(0x40e)]);}};}async['_createInitialStateImpl'](_0x41b1ac){const _0x276bc3=_0x3b22f;var _0xf7cc9d,_0x50f3c4;const _0x63dd6d=await this[_0x276bc3(0x522)][_0x276bc3(0x4dd)](this[_0x276bc3(0x40e)]),_0x249941=(_0xf7cc9d=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x3a2)])!=null?_0xf7cc9d:[],_0x34b982=(_0x50f3c4=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x5eb)])!=null?_0x50f3c4:null,_0x2fa82f=this[_0x276bc3(0x40e)];try{this[_0x276bc3(0x4b4)](_0x34b982,_0x249941);}catch(_0x579cfa){this[_0x276bc3(0x445)][_0x276bc3(0x49d)](_0x579cfa);}const _0x48f18e=this['_createHandler']();if(_0x41b1ac){const _0x644fe4=Rt(this[_0x276bc3(0x397)],_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);return _0x644fe4 instanceof x?_0x644fe4[_0x276bc3(0x223)]():(_0x644fe4 instanceof k||_0x644fe4 instanceof W)&&_0x644fe4[_0x276bc3(0x2b6)](),_0x644fe4;}return this['_injector'][_0x276bc3(0x5e4)](G,_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);}[_0x3b22f(0x4b4)](_0x5c3cd2,_0x55560b){const _0x40514d=_0x3b22f;var _0x2ec1bb,_0x56c5fd;const _0x583add=this[_0x40514d(0x260)][_0x40514d(0x542)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x40514d(0x40b)]()['COMPRESS_MUTATION_APPLY']);(_0x2ec1bb=_0x583add((_0x5c3cd2==null?void 0x0:_0x5c3cd2[_0x40514d(0x3a2)])||[],null))==null||_0x2ec1bb[_0x40514d(0x339)](_0x51410=>this[_0x40514d(0x4b9)]['executeCommand'](_0x51410['id'],_0x51410[_0x40514d(0x3b6)])),(_0x56c5fd=_0x583add(_0x55560b||[],null))==null||_0x56c5fd[_0x40514d(0x339)](_0x507e63=>this[_0x40514d(0x4b9)][_0x40514d(0x2fc)](_0x507e63['id'],_0x507e63[_0x40514d(0x3b6)]));}},exports['CollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x308)]),I(0x9,a[_0x3b22f(0x323)]),I(0xa,N[_0x3b22f(0x2e3)]),I(0xb,a[_0x3b22f(0x300)]),I(0xc,a[_0x3b22f(0x5c6)](be))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0xcc370e,_0x5d1ef5,_0x547cfb,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x6a105,_0x2b28d7,_0x2aa0f2,_0x1f1957,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da){const _0xeec46f=_0x3b22f;super(_0xcc370e,_0x547cfb,_0x5d1ef5,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da),this['unitID']=_0xcc370e,this['type']=_0x5d1ef5,this['_docStateChangeManagerService']=_0x6a105,this[_0xeec46f(0x459)]=_0x2b28d7,this['_docTransformSelectionsService']=_0x2aa0f2,this[_0xeec46f(0x335)]=_0x1f1957;}[_0x3b22f(0x302)](){const _0x56d0d1=_0x3b22f,_0x5a9a39=super['_createHandler']();return _0x5a9a39['onTransformIME']=_0xb18ea3=>this['_docTransformIMECacheService'][_0x56d0d1(0x4df)](_0xb18ea3),_0x5a9a39[_0x56d0d1(0x24a)]=_0x301c0f=>this[_0x56d0d1(0x25c)][_0x56d0d1(0x4fb)](_0x301c0f),_0x5a9a39[_0x56d0d1(0x373)]=_0x49cdb1=>this['_docSyncEditingCollabCursorService'][_0x56d0d1(0x1f3)](_0x49cdb1),_0x5a9a39[_0x56d0d1(0x357)]=_0x540ee1=>this[_0x56d0d1(0x459)][_0x56d0d1(0x471)](_0x540ee1),_0x5a9a39;}async[_0x3b22f(0x341)](){const _0x462fcb=_0x3b22f,_0x239f7b=await super[_0x462fcb(0x341)]();return this['disposeWithMe'](this['_commandService'][_0x462fcb(0x2dd)]((_0x40ddb3,_0x75dab1)=>{const _0x55ec0f=_0x462fcb;if(_0x40ddb3[_0x55ec0f(0x331)]!==a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)]||_0x75dab1!=null&&_0x75dab1[_0x55ec0f(0x35e)]||_0x75dab1!=null&&_0x75dab1['onlyLocal'])return;const _0x114a41=_0x40ddb3[_0x55ec0f(0x3b6)];if((_0x114a41==null?void 0x0:_0x114a41[_0x55ec0f(0x3df)])!==this[_0x55ec0f(0x40e)])return;let _0x489b59=_0x40ddb3;if(_0x489b59['id']===V['RichTextEditingMutation']['id']){const _0x30add9=_0x489b59[_0x55ec0f(0x3b6)];_0x489b59={'id':V['RichTextEditingMutation']['id'],'type':a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)],'params':{'unitId':_0x30add9['unitId'],'actions':_0x30add9[_0x55ec0f(0x2b2)],'textRanges':null}};}const _0xa85dc8=this['_compressMutationService'][_0x55ec0f(0x542)][_0x55ec0f(0x284)](this[_0x55ec0f(0x260)][_0x55ec0f(0x542)][_0x55ec0f(0x40b)]()[_0x55ec0f(0x5f0)])([_0x489b59],null)||[_0x489b59];this[_0x55ec0f(0x477)](_0xa85dc8[0x0]);})),_0x239f7b;}},exports[_0x3b22f(0x403)]=Ke([I(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports['LocalCacheService'])),I(0x5,a[_0x3b22f(0x492)](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a['Inject'](me)),I(0xb,a['Inject'](Ye)),I(0xc,a['ILogService']),I(0xd,a[_0x3b22f(0x323)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3b22f(0x300)]),I(0x10,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x403)]),exports[_0x3b22f(0x5ef)]=class extends exports[_0x3b22f(0x2cb)]{constructor(_0x142e7f,_0x48a416,_0x277ecd,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0x31b5ff,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc){const _0x4e1f7c=_0x3b22f;super(_0x142e7f,_0x277ecd,_0x48a416,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc),this['unitID']=_0x142e7f,this[_0x4e1f7c(0x331)]=_0x48a416,this[_0x4e1f7c(0x215)]=_0x31b5ff;}[_0x3b22f(0x302)](){const _0x5e1304=_0x3b22f,_0x3af271=super[_0x5e1304(0x302)]();return _0x3af271[_0x5e1304(0x24a)]=_0xd8c40a=>this[_0x5e1304(0x215)][_0x5e1304(0x4fb)](_0xd8c40a),_0x3af271;}async[_0x3b22f(0x341)](){const _0x3e771e=_0x3b22f,_0x198363=await super['_init']();return this[_0x3e771e(0x283)](this[_0x3e771e(0x4b9)]['onCommandExecuted']((_0x26c8e4,_0x410b74)=>{const _0x578496=_0x3e771e;if(_0x26c8e4[_0x578496(0x331)]!==a[_0x578496(0x3b8)]['MUTATION']||_0x410b74!=null&&_0x410b74[_0x578496(0x35e)]||_0x410b74!=null&&_0x410b74['onlyLocal'])return;const _0x29ad82=_0x26c8e4[_0x578496(0x3b6)];if((_0x29ad82==null?void 0x0:_0x29ad82[_0x578496(0x3df)])!==this['unitID'])return;const _0x298b25=_0x26c8e4,_0x49c54=this[_0x578496(0x260)]['interceptor'][_0x578496(0x284)](this[_0x578496(0x260)]['interceptor']['getInterceptPoints']()[_0x578496(0x5f0)])([_0x298b25],null)||[_0x298b25];this[_0x578496(0x477)](_0x49c54[0x0]);})),_0x198363;}},exports[_0x3b22f(0x5ef)]=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),I(0x5,a[_0x3b22f(0x492)](_['CompressMutationService'])),I(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](ge)),I(0x9,a[_0x3b22f(0x308)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3b22f(0x2e3)]),I(0xc,a[_0x3b22f(0x300)]),I(0xd,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x5ef)]);var ks=Object[_0x3b22f(0x1ff)],Bs=Object[_0x3b22f(0x246)],Vs=(_0x558bfa,_0x22f976,_0x18e73b,_0x34ab58)=>{const _0x20a365=_0x3b22f;for(var _0x5522a8=_0x34ab58>0x1?void 0x0:_0x34ab58?Bs(_0x22f976,_0x18e73b):_0x22f976,_0x28597b=_0x558bfa[_0x20a365(0x291)]-0x1,_0x345db6;_0x28597b>=0x0;_0x28597b--)(_0x345db6=_0x558bfa[_0x28597b])&&(_0x5522a8=(_0x34ab58?_0x345db6(_0x22f976,_0x18e73b,_0x5522a8):_0x345db6(_0x5522a8))||_0x5522a8);return _0x34ab58&&_0x5522a8&&ks(_0x22f976,_0x18e73b,_0x5522a8),_0x5522a8;},Ue=(_0x3adbfe,_0x3bef86)=>(_0x13c532,_0x138c08)=>_0x3bef86(_0x13c532,_0x138c08,_0x3adbfe);exports[_0x3b22f(0x322)]=class extends a['RxDisposable']{constructor(_0x206825,_0x408b5e,_0x2c84ad){const _0x53983d=_0x3b22f;super(),d(this,_0x53983d(0x4de),new Map()),d(this,_0x53983d(0x3fd),new v['Subject']()),(this['_injector']=_0x206825,this[_0x53983d(0x27c)]=_0x408b5e,this[_0x53983d(0x340)]=_0x2c84ad,this[_0x53983d(0x341)]());}[_0x3b22f(0x4f2)](){const _0x5112bc=_0x3b22f;super[_0x5112bc(0x4f2)](),this['_entities']['forEach'](_0x44cf82=>_0x44cf82[_0x5112bc(0x4f2)]()),this[_0x5112bc(0x4de)][_0x5112bc(0x249)]();}[_0x3b22f(0x2fa)](_0x3493e9){const _0x357302=_0x3b22f;var _0x436337;return(_0x436337=this[_0x357302(0x4de)][_0x357302(0x34d)](_0x3493e9))!=null?_0x436337:null;}[_0x3b22f(0x30d)](_0x2e238b){const _0x1025c5=_0x3b22f,_0x50c41d=this[_0x1025c5(0x2fa)](_0x2e238b);return _0x50c41d?v['of'](_0x50c41d):this[_0x1025c5(0x3fd)][_0x1025c5(0x3de)](E[_0x1025c5(0x3f9)](_0x48278b=>_0x48278b[_0x1025c5(0x40e)]===_0x2e238b));}[_0x3b22f(0x341)](){const _0x356467=_0x3b22f;this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)]['UNIVER_SHEET'])[_0x356467(0x3de)](v[_0x356467(0x37c)](this['dispose$']),E[_0x356467(0x292)](0x10))[_0x356467(0x42c)](async _0x3a30e6=>{const _0xf82571=_0x356467,_0x56e659=_0x3a30e6[_0xf82571(0x52b)](),_0x51c6ac=await this[_0xf82571(0x571)](_0x56e659,j[_0xf82571(0x3c0)]);this['_entities'][_0xf82571(0x305)](_0x56e659,_0x51c6ac);}),this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)][_0x356467(0x332)])['pipe'](v[_0x356467(0x37c)](this['dispose$']),E['delay'](0x10))[_0x356467(0x3de)](E[_0x356467(0x3f9)](_0x213bb1=>!_0x213bb1[_0x356467(0x52b)]()[_0x356467(0x561)]('__')))[_0x356467(0x42c)](async _0x39a2b5=>{const _0x34828e=_0x356467,_0x30a74b=_0x39a2b5[_0x34828e(0x52b)](),_0x16702f=await this[_0x34828e(0x571)](_0x30a74b,j[_0x34828e(0x332)]);this['_entities'][_0x34828e(0x305)](_0x30a74b,_0x16702f);}),v[_0x356467(0x2c4)](this[_0x356467(0x340)][_0x356467(0x24f)](a['UniverInstanceType'][_0x356467(0x3c0)]),this[_0x356467(0x340)]['getTypeOfUnitDisposed$'](a[_0x356467(0x38e)]['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x356467(0x2e1)]))[_0x356467(0x42c)](_0x5c68b9=>{const _0x22b09a=_0x356467,_0x3abd33=_0x5c68b9[_0x22b09a(0x52b)](),_0x521cb8=this[_0x22b09a(0x4de)][_0x22b09a(0x34d)](_0x3abd33);_0x521cb8&&(_0x521cb8[_0x22b09a(0x4f2)](),this[_0x22b09a(0x4de)][_0x22b09a(0x2cc)](_0x3abd33));});}async[_0x3b22f(0x571)](_0x304e52,_0x26684b){const _0x17d99c=_0x3b22f,_0xfe4467=await this[_0x17d99c(0x27c)][_0x17d99c(0x578)](_0x304e52),_0x4e66b6=this[_0x17d99c(0x397)][_0x17d99c(0x5e4)](this[_0x17d99c(0x58e)](_0x26684b),_0x304e52,_0x26684b,_0xfe4467);return await _0x4e66b6[_0x17d99c(0x358)](),this[_0x17d99c(0x3fd)][_0x17d99c(0x52d)](_0x4e66b6),_0x4e66b6;}[_0x3b22f(0x58e)](_0x112bf6){const _0x90de61=_0x3b22f;switch(_0x112bf6){case j[_0x90de61(0x332)]:return exports[_0x90de61(0x403)];case j[_0x90de61(0x3c0)]:return exports[_0x90de61(0x5ef)];default:throw new Error(_0x90de61(0x59d)+_0x112bf6);}}},exports[_0x3b22f(0x322)]=Vs([Ue(0x0,a['Inject'](a[_0x3b22f(0x252)])),Ue(0x1,a['Inject'](exports[_0x3b22f(0x298)])),Ue(0x2,a[_0x3b22f(0x26b)])],exports[_0x3b22f(0x322)]);const nt=[_0x3b22f(0x3f1),_0x3b22f(0x5c8),'verdancy600',_0x3b22f(0x5d9),'blue400',_0x3b22f(0x379)];class Xe extends a[_0x3b22f(0x4b0)]{constructor(){const _0x2eb2e3=_0x3b22f;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x2eb2e3(0x35c),0x0);}[_0x3b22f(0x4ee)](_0x5923d){const _0xb403a5=_0x3b22f;if(this[_0xb403a5(0x56b)][_0xb403a5(0x3e5)](_0x5923d))return this[_0xb403a5(0x56b)]['get'](_0x5923d);const _0x410f45=nt[this[_0xb403a5(0x35c)]];return this[_0xb403a5(0x35c)]=(this[_0xb403a5(0x35c)]+0x1)%nt[_0xb403a5(0x291)],this[_0xb403a5(0x56b)][_0xb403a5(0x305)](_0x5923d,_0x410f45),_0x410f45;}}var Ws=Object[_0x3b22f(0x1ff)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x4f6fc6,_0xa24e62,_0x3259ff,_0x4d9bab)=>{for(var _0x4e77b1=_0x4d9bab>0x1?void 0x0:_0x4d9bab?Fs(_0xa24e62,_0x3259ff):_0xa24e62,_0x55ae4a=_0x4f6fc6['length']-0x1,_0x2f7092;_0x55ae4a>=0x0;_0x55ae4a--)(_0x2f7092=_0x4f6fc6[_0x55ae4a])&&(_0x4e77b1=(_0x4d9bab?_0x2f7092(_0xa24e62,_0x3259ff,_0x4e77b1):_0x2f7092(_0x4e77b1))||_0x4e77b1);return _0x4d9bab&&_0x4e77b1&&Ws(_0xa24e62,_0x3259ff,_0x4e77b1),_0x4e77b1;},K=(_0x160b83,_0x36908f)=>(_0x9f4c98,_0x440cb1)=>_0x36908f(_0x9f4c98,_0x440cb1,_0x160b83);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3b22f(0x398)]{constructor(_0x3cb284,_0x2c5102,_0x3b550b,_0x45abfa,_0x4ba55b,_0x44a5c,_0x4c58f2,_0x1aacba,_0x20a6cd){const _0x51c73f=_0x3b22f;super(),d(this,_0x51c73f(0x466),!0x1),d(this,'_init',!0x1),d(this,_0x51c73f(0x404),new v[(_0x51c73f(0x502))](new Map())),d(this,_0x51c73f(0x4aa),this[_0x51c73f(0x404)][_0x51c73f(0x56e)]()),d(this,_0x51c73f(0x288),new v['BehaviorSubject']([])),d(this,_0x51c73f(0x5bf),this[_0x51c73f(0x288)][_0x51c73f(0x3de)](v['debounceTime'](Ys))),d(this,_0x51c73f(0x37d),a[_0x51c73f(0x527)](_0x5cc1c5=>{const _0x1a1057=_0x51c73f,_0x531918={'eventID':_[_0x1a1057(0x44c)][_0x1a1057(0x5b6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1a1057(0x597)](),'selection':Tt(_0x5cc1c5)}};this[_0x1a1057(0x338)][_0x1a1057(0x3c5)](_0x531918,this[_0x1a1057(0x40e)]);},Ks)),(this[_0x51c73f(0x40e)]=_0x3cb284,this[_0x51c73f(0x338)]=_0x2c5102,this[_0x51c73f(0x397)]=_0x3b550b,this[_0x51c73f(0x594)]=_0x45abfa,this[_0x51c73f(0x4ec)]=_0x4ba55b,this['_syncEditingCollabCursorService']=_0x44a5c,this[_0x51c73f(0x294)]=_0x4c58f2,this[_0x51c73f(0x340)]=_0x1aacba,this[_0x51c73f(0x4b9)]=_0x20a6cd);}get[_0x3b22f(0x49a)](){const _0x186f6f=_0x3b22f;return this[_0x186f6f(0x404)][_0x186f6f(0x2a9)]();}get['roomMembers'](){const _0x59f09a=_0x3b22f;return this['_roomMembers$'][_0x59f09a(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x5ca9ba=_0x3b22f;super['dispose'](),this['_cursorInfo$'][_0x5ca9ba(0x52d)](new Map()),this['_cursorInfo$'][_0x5ca9ba(0x2ec)](),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x52d)]([]),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x2ec)]();}['init'](){const _0x313705=_0x3b22f;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](v[_0x313705(0x37c)](this['dispose$']))[_0x313705(0x42c)](_0x399fab=>{const _0x156b89=_0x313705;_0x399fab===$[_0x156b89(0x22f)]?this[_0x156b89(0x553)]():this['_toggleOffline']();}),this[_0x313705(0x338)][_0x313705(0x3b5)][_0x313705(0x3de)](v[_0x313705(0x37c)](this[_0x313705(0x2e1)]))[_0x313705(0x42c)](_0x492298=>{const _0x19bf29=_0x313705,_0x197da1=_0x492298[_0x19bf29(0x3cc)];_0x197da1===_['CollaborationEvent'][_0x19bf29(0x5b6)]&&this[_0x19bf29(0x426)](_0x492298),_0x197da1===_[_0x19bf29(0x44c)][_0x19bf29(0x51c)]&&this[_0x19bf29(0x2a1)](_0x492298);}),this[_0x313705(0x283)](this[_0x313705(0x4b9)]['onCommandExecuted'](_0x11f1e1=>{const _0x3189c1=_0x313705,_0xc7263c=_0x11f1e1[_0x3189c1(0x3b6)];_0xc7263c!=null&&this[_0x3189c1(0x466)]&&_0x11f1e1['id']===V[_0x3189c1(0x574)]['id']&&_0xc7263c[_0x3189c1(0x3df)]===this[_0x3189c1(0x40e)]&&_0xc7263c[_0x3189c1(0x40c)]===!0x1&&this[_0x3189c1(0x37d)](_0xc7263c[_0x3189c1(0x2b8)]);})),this[_0x313705(0x421)][_0x313705(0x45e)][_0x313705(0x3de)](v['takeUntil'](this['dispose$']))[_0x313705(0x42c)](_0x301da6=>{const _0x3c19ec=_0x313705;if((_0x301da6==null?void 0x0:_0x301da6[_0x3c19ec(0x40e)])!==this[_0x3c19ec(0x40e)])return;const _0x18360d={'eventID':_[_0x3c19ec(0x44c)][_0x3c19ec(0x5b6)],'data':_0x301da6};this[_0x3c19ec(0x426)](_0x18360d);}),this[_0x313705(0x283)](this['_commandService'][_0x313705(0x2dd)](_0xa4a618=>{const _0x475dce=_0x313705;if(_0xa4a618[_0x475dce(0x3b6)]==null)return;const _0x338bc1=_0xa4a618[_0x475dce(0x3b6)];if(_0xa4a618['id']!==V[_0x475dce(0x48d)]['id']||_0x338bc1[_0x475dce(0x3df)]!==this[_0x475dce(0x40e)])return;const _0x613e94={'id':_0x475dce(0x29f),'params':_0x338bc1},_0x1f4448=this[_0x475dce(0x49a)];for(const [_0xc75a64,_0x5cb49d]of _0x1f4448){const _0x3099a1={'id':_0x475dce(0x29f),'params':{'unitId':this[_0x475dce(0x40e)],'actions':null,'textRanges':_0x5cb49d[_0x475dce(0x2b8)]}},_0x123e43=this[_0x475dce(0x294)][_0x475dce(0x2c5)](_0x613e94,_0x3099a1,!0x1);if(_[_0x475dce(0x5cb)](_0x123e43))throw _0x123e43[_0x475dce(0x49d)];_0x1f4448[_0x475dce(0x305)](_0xc75a64,{..._0x5cb49d,'ranges':_0x123e43[_0x475dce(0x2e8)]['params'][_0x475dce(0x4a4)]});}queueMicrotask(()=>{const _0x442e43=_0x475dce;this[_0x442e43(0x404)][_0x442e43(0x52d)](_0x1f4448);});})));}['_onCursorUpdate'](_0x8cb4c4){const _0x4f155d=_0x3b22f;var _0x203a57,_0x19ab8e;const {memberID:_0x36da3f,selection:_0x27f51b}=_0x8cb4c4['data'],_0x26cf0e=Us(_0x27f51b),_0x5c829a=(_0x19ab8e=(_0x203a57=this[_0x4f155d(0x4ec)][_0x4f155d(0x303)](this[_0x4f155d(0x40e)],_0x36da3f))==null?void 0x0:_0x203a57['name'])!=null?_0x19ab8e:'Unknown\x20user',_0x1e8500={'color':this[_0x4f155d(0x594)][_0x4f155d(0x4ee)](_0x36da3f),'name':_0x5c829a,'ranges':_0x26cf0e},_0x2af4db=this[_0x4f155d(0x49a)];_0x2af4db['set'](_0x36da3f,_0x1e8500),this[_0x4f155d(0x404)][_0x4f155d(0x52d)](_0x2af4db);}[_0x3b22f(0x2a1)](_0x4247ca){const _0xb871b1=_0x3b22f,{memberID:_0x837a43}=_0x4247ca[_0xb871b1(0x45b)],_0x19c3ec=this[_0xb871b1(0x49a)];_0x19c3ec[_0xb871b1(0x2cc)](_0x837a43),this[_0xb871b1(0x404)][_0xb871b1(0x52d)](_0x19c3ec);}[_0x3b22f(0x553)](){const _0x2ccd45=_0x3b22f;var _0x403a08;if(this['_online']=!0x0,((_0x403a08=this['_univerInstanceService'][_0x2ccd45(0x255)]())==null?void 0x0:_0x403a08[_0x2ccd45(0x52b)]())!==this[_0x2ccd45(0x40e)])return;const _0x1dff6a=this[_0x2ccd45(0x397)][_0x2ccd45(0x34d)](V[_0x2ccd45(0x4a7)])['getDocRanges']();Array[_0x2ccd45(0x33f)](_0x1dff6a)&&_0x1dff6a[_0x2ccd45(0x291)]>0x0&&this['_updateLocalCursor'](_0x1dff6a);}[_0x3b22f(0x37f)](){const _0x297cde=_0x3b22f;this[_0x297cde(0x466)]=!0x1;}};$e=Gs([K(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),K(0x3,a[_0x3b22f(0x492)](Xe)),K(0x4,a[_0x3b22f(0x492)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x3b22f(0x378)]),K(0x7,a['IUniverInstanceService']),K(0x8,a['ICommandService'])],$e);var Xs=Object['defineProperty'],qs=Object[_0x3b22f(0x246)],zs=(_0x1ffa44,_0x428231,_0x531baa,_0x12ca06)=>{for(var _0x495128=_0x12ca06>0x1?void 0x0:_0x12ca06?qs(_0x428231,_0x531baa):_0x428231,_0x4473a4=_0x1ffa44['length']-0x1,_0x242509;_0x4473a4>=0x0;_0x4473a4--)(_0x242509=_0x1ffa44[_0x4473a4])&&(_0x495128=(_0x12ca06?_0x242509(_0x428231,_0x531baa,_0x495128):_0x242509(_0x495128))||_0x495128);return _0x12ca06&&_0x495128&&Xs(_0x428231,_0x531baa,_0x495128),_0x495128;},Q=(_0x2077e0,_0x27fb54)=>(_0xa934ff,_0x1b669a)=>_0x27fb54(_0xa934ff,_0x1b669a,_0x2077e0);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x15a14d=[],_0x1bd2e8=!0x1;return _0x27d5b1=>{const _0x42054=_0x2c53;_0x15a14d[_0x42054(0x1ed)](_0x27d5b1),_0x1bd2e8||(_0x1bd2e8=!0x0,setTimeout(()=>{const _0x10e457=_0x42054;_0x15a14d[_0x10e457(0x339)](_0x5101c1=>_0x5101c1()),_0x15a14d=[],_0x1bd2e8=!0x1;}));};};let He=class extends a['RxDisposable']{constructor(_0x172152,_0x3ea4e7,_0x27acc6,_0x26af3e,_0x495579,_0x5245e9,_0x202d78,_0x3ee5b9){const _0x284fad=_0x3b22f;super(),d(this,_0x284fad(0x466),!0x1),d(this,_0x284fad(0x341),!0x1),d(this,_0x284fad(0x404),new v[(_0x284fad(0x502))](new Map())),d(this,'cursorInfo$',this[_0x284fad(0x404)][_0x284fad(0x56e)]()),d(this,_0x284fad(0x288),new v[(_0x284fad(0x502))]([])),d(this,'roomMembers$',this[_0x284fad(0x288)]['pipe'](v[_0x284fad(0x42f)](Js))),d(this,_0x284fad(0x37d),a['debounce']((_0xf7495d,_0x9df48f)=>{const _0x45d052=_0x284fad,_0x1db732={'eventID':_[_0x45d052(0x44c)][_0x45d052(0x5b6)],'data':{'unitID':this[_0x45d052(0x40e)],'memberID':this[_0x45d052(0x338)]['getMemberID'](),'selection':Je[_0x45d052(0x3e9)](_0xf7495d,_0x9df48f[_0x45d052(0x25e)])}};this['_session'][_0x45d052(0x3c5)](_0x1db732,this[_0x45d052(0x40e)]);},Zs)),(this[_0x284fad(0x40e)]=_0x172152,this[_0x284fad(0x338)]=_0x3ea4e7,this[_0x284fad(0x397)]=_0x27acc6,this[_0x284fad(0x594)]=_0x26af3e,this[_0x284fad(0x4ec)]=_0x495579,this[_0x284fad(0x340)]=_0x5245e9,this[_0x284fad(0x4b9)]=_0x202d78,this[_0x284fad(0x1fd)]=_0x3ee5b9);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x3b22f(0x4be)](){const _0x41b15c=_0x3b22f;return this[_0x41b15c(0x288)][_0x41b15c(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x433e81=_0x3b22f;super[_0x433e81(0x4f2)](),this['_cursorInfo$'][_0x433e81(0x52d)](new Map()),this['_cursorInfo$'][_0x433e81(0x2ec)](),this[_0x433e81(0x288)][_0x433e81(0x52d)]([]),this[_0x433e81(0x288)][_0x433e81(0x2ec)]();}[_0x3b22f(0x358)](){const _0x3ae396=_0x3b22f;this[_0x3ae396(0x341)]||(this[_0x3ae396(0x341)]=!0x0,this[_0x3ae396(0x338)][_0x3ae396(0x1f1)]['pipe'](v[_0x3ae396(0x37c)](this[_0x3ae396(0x2e1)]))[_0x3ae396(0x42c)](_0x49d375=>{const _0x23903a=_0x3ae396;_0x49d375===$[_0x23903a(0x22f)]?this[_0x23903a(0x553)]():this[_0x23903a(0x37f)]();}),this[_0x3ae396(0x338)]['event$']['pipe'](v['takeUntil'](this[_0x3ae396(0x2e1)]))['subscribe'](_0x152e13=>{const _0x48f413=_0x3ae396,_0x5dec91=_0x152e13[_0x48f413(0x3cc)];_0x5dec91===_[_0x48f413(0x44c)][_0x48f413(0x5b6)]&&this[_0x48f413(0x426)](_0x152e13),_0x5dec91===_[_0x48f413(0x44c)]['USERS_LEAVE']&&this[_0x48f413(0x2a1)](_0x152e13);}),this[_0x3ae396(0x38a)](),this[_0x3ae396(0x283)](this[_0x3ae396(0x4b9)]['onCommandExecuted'](_0x182058=>{const _0x528576=_0x3ae396;if(this[_0x528576(0x466)]&&_0x182058['id']===C['SetSelectionsOperation']['id']&&_0x182058[_0x528576(0x3b6)][_0x528576(0x3df)]===this['unitID']){const _0x168db3=_0x182058[_0x528576(0x3b6)];this['_updateLocalCursor'](_0x168db3[_0x528576(0x2b4)],_0x168db3[_0x528576(0x3c4)][0x0]);}})));}[_0x3b22f(0x426)](_0x2ab470){const _0x423408=_0x3b22f;var _0x59a792,_0x2298b4;const {memberID:_0x14ee3d,selection:_0x27a88e}=_0x2ab470['data'],{sheetName:_0x26c0d9,range:_0x44933a}=Je['deserializeRangeWithSheet'](_0x27a88e),_0x53b09e={'name':(_0x2298b4=(_0x59a792=this[_0x423408(0x4ec)][_0x423408(0x303)](this[_0x423408(0x40e)],_0x14ee3d))==null?void 0x0:_0x59a792[_0x423408(0x366)])!=null?_0x2298b4:_0x423408(0x250),'range':this[_0x423408(0x5af)](_0x26c0d9,_0x44933a),'sheetID':_0x26c0d9,'color':this[_0x423408(0x594)][_0x423408(0x4ee)](_0x14ee3d),'selection':_0x27a88e},_0x136ade=this['cursorInfo'];_0x136ade['set'](_0x14ee3d,_0x53b09e),this[_0x423408(0x404)][_0x423408(0x52d)](_0x136ade);}[_0x3b22f(0x2a1)](_0x2c8d79){const _0x43b51d=_0x3b22f,{memberID:_0x5d8b24}=_0x2c8d79[_0x43b51d(0x45b)],_0x1e54fe=this['cursorInfo'];_0x1e54fe[_0x43b51d(0x2cc)](_0x5d8b24),this[_0x43b51d(0x404)][_0x43b51d(0x52d)](_0x1e54fe);}['_getMergeRange'](_0x52a7c8,_0x54c487){const _0x1b0e79=_0x3b22f;var _0x283da9,_0x119618;const _0x285baa=(_0x119618=(_0x283da9=this['_univerInstanceService'][_0x1b0e79(0x2ac)](this[_0x1b0e79(0x40e)]))==null?void 0x0:_0x283da9[_0x1b0e79(0x2f1)](_0x52a7c8))==null?void 0x0:_0x119618[_0x1b0e79(0x4d8)]();return(_0x285baa==null?void 0x0:_0x285baa[_0x1b0e79(0x5dc)](_0xddfd87=>a[_0x1b0e79(0x337)]['contains'](_0xddfd87,_0x54c487)))||_0x54c487;}[_0x3b22f(0x38a)](){const _0x2cbaa9=_0x3b22f,_0x1214e5=new a[(_0x2cbaa9(0x35b))](),_0x2ea889=Qs(),_0x100e4c=()=>{const _0x2b75ec=_0x2cbaa9;_0x1214e5[_0x2b75ec(0x4f2)]();const _0x3e0c90=(_0x5b03ed,_0x23eeae,_0x1efddb,_0x436f26)=>{const _0x5498ad=_0x2b75ec;let _0x3f519a=[];switch(_0x5b03ed['id']){case C[_0x5498ad(0x2b5)][_0x5498ad(0x38d)]:{_0x3f519a=C['handleDeleteRangeMoveLeft'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x3f2)]:{_0x3f519a=C['handleDeleteRangeMoveUp'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x5a6)]:{_0x3f519a=C['handleInsertCol'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x2aa)]:{_0x3f519a=C[_0x5498ad(0x396)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x314)]:{_0x3f519a=C[_0x5498ad(0x523)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x48f)]:{_0x3f519a=C[_0x5498ad(0x5a5)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x497)]:{_0x3f519a=C[_0x5498ad(0x258)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)]['RemoveColCommandId']:{_0x3f519a=C[_0x5498ad(0x3c3)](_0x5b03ed,_0x436f26);break;}case C['EffectRefRangId'][_0x5498ad(0x2fe)]:{_0x3f519a=C['handleIRemoveRow'](_0x5b03ed,_0x436f26);break;}}const _0x3acc04=C[_0x5498ad(0x479)](_0x3f519a,_0x436f26),_0x54c530=this['cursorInfo'][_0x5498ad(0x34d)](_0x23eeae);if(_0x54c530&&_0x3acc04){const _0x104b14={..._0x54c530,'range':_0x3acc04};this[_0x5498ad(0x49a)][_0x5498ad(0x305)](_0x23eeae,_0x104b14),_0x2ea889(()=>{const _0x4edc55=_0x5498ad,_0x7a1eb7=this['_refRangeService'][_0x4edc55(0x58a)](_0x3acc04,_0xe8f3b9=>(_0x7a1eb7['dispose'](),_0x3e0c90(_0xe8f3b9,_0x23eeae,_0x1efddb,_0x3acc04)));_0x1214e5[_0x4edc55(0x405)](_0x7a1eb7);});}return{'redos':[],'undos':[]};};this[_0x2b75ec(0x49a)][_0x2b75ec(0x339)]((_0x4a84cf,_0x38b2f8)=>{const _0x1e3607=_0x2b75ec,{range:_0x10bca9,sheetID:_0x3d70c8}=_0x4a84cf,_0x4cc52f=this['_refRangeService'][_0x1e3607(0x58a)](_0x10bca9,_0x2c8db4=>(_0x4cc52f[_0x1e3607(0x4f2)](),_0x3e0c90(_0x2c8db4,_0x38b2f8,_0x3d70c8,_0x10bca9)));_0x1214e5[_0x1e3607(0x405)](_0x4cc52f);});};this['disposeWithMe'](a[_0x2cbaa9(0x526)](this[_0x2cbaa9(0x404)]['subscribe'](()=>{_0x100e4c();})));}[_0x3b22f(0x553)](){const _0x51f462=_0x3b22f;var _0x98aea9,_0x462724;if(this[_0x51f462(0x466)]=!0x0,((_0x98aea9=this[_0x51f462(0x340)][_0x51f462(0x255)]())==null?void 0x0:_0x98aea9[_0x51f462(0x52b)]())!==this[_0x51f462(0x40e)])return;const _0x4fad4a=(_0x462724=this[_0x51f462(0x397)][_0x51f462(0x34d)](C[_0x51f462(0x264)])[_0x51f462(0x3f4)]())==null?void 0x0:_0x462724[0x0],_0x38f4fe=this['_univerInstanceService'][_0x51f462(0x4e6)](a[_0x51f462(0x38e)][_0x51f462(0x3c0)])[_0x51f462(0x242)]();_0x4fad4a&&_0x38f4fe&&this[_0x51f462(0x37d)](_0x38f4fe['getSheetId'](),_0x4fad4a);}['_toggleOffline'](){const _0x8e385f=_0x3b22f;this[_0x8e385f(0x466)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a[_0x3b22f(0x252)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x3b22f(0x26b)]),Q(0x6,a[_0x3b22f(0x323)]),Q(0x7,a[_0x3b22f(0x492)](C[_0x3b22f(0x44b)]))],He);var ei=Object[_0x3b22f(0x1ff)],ti=Object[_0x3b22f(0x246)],si=(_0x2253f8,_0x5ae97f,_0xde16c2,_0x2e8c02)=>{const _0x410075=_0x3b22f;for(var _0x3e14b3=_0x2e8c02>0x1?void 0x0:_0x2e8c02?ti(_0x5ae97f,_0xde16c2):_0x5ae97f,_0x1c68bf=_0x2253f8[_0x410075(0x291)]-0x1,_0x2b53f3;_0x1c68bf>=0x0;_0x1c68bf--)(_0x2b53f3=_0x2253f8[_0x1c68bf])&&(_0x3e14b3=(_0x2e8c02?_0x2b53f3(_0x5ae97f,_0xde16c2,_0x3e14b3):_0x2b53f3(_0x3e14b3))||_0x3e14b3);return _0x2e8c02&&_0x3e14b3&&ei(_0x5ae97f,_0xde16c2,_0x3e14b3),_0x3e14b3;},Pe=(_0x25ccac,_0x345f4c)=>(_0x3df078,_0x5593b4)=>_0x345f4c(_0x3df078,_0x5593b4,_0x25ccac);let ie=class extends a[_0x3b22f(0x398)]{constructor(_0x231ee1,_0x57d257,_0x2b613c){const _0xe83739=_0x3b22f;super(),d(this,_0xe83739(0x4de),new Map()),d(this,_0xe83739(0x3fd),new v[(_0xe83739(0x25f))]()),(this['_univerInstanceService']=_0x231ee1,this['_injector']=_0x57d257,this[_0xe83739(0x27c)]=_0x2b613c,this[_0xe83739(0x341)]());}[_0x3b22f(0x4f2)](){const _0x3321a6=_0x3b22f;super[_0x3321a6(0x4f2)](),this[_0x3321a6(0x3fd)][_0x3321a6(0x2ec)](),this[_0x3321a6(0x4de)][_0x3321a6(0x339)](_0x40c9c0=>_0x40c9c0[_0x3321a6(0x4f2)]());}[_0x3b22f(0x4f4)](_0x4017d2){const _0x49d94c=_0x3b22f;return this[_0x49d94c(0x4de)][_0x49d94c(0x3e5)](_0x4017d2)?this[_0x49d94c(0x4de)]['get'](_0x4017d2)[_0x49d94c(0x4aa)]:this[_0x49d94c(0x3fd)][_0x49d94c(0x3de)](v[_0x49d94c(0x3f9)](_0x9f6f51=>_0x9f6f51[_0x49d94c(0x40e)]===_0x4017d2),v[_0x49d94c(0x3fe)](_0x334b3c=>_0x334b3c['cursorInfo$']));}[_0x3b22f(0x341)](){const _0x25df68=_0x3b22f;this[_0x25df68(0x340)][_0x25df68(0x5e8)](a['UniverInstanceType'][_0x25df68(0x3c0)])[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](async _0x4d97c0=>{const _0x531a02=_0x25df68,_0x4494bc=_0x4d97c0[_0x531a02(0x52b)](),_0x185d52=await this[_0x531a02(0x3dd)](_0x4494bc);this[_0x531a02(0x3fd)][_0x531a02(0x52d)](_0x185d52),this[_0x531a02(0x4de)]['set'](_0x4494bc,_0x185d52);}),this[_0x25df68(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25df68(0x332)])[_0x25df68(0x3de)](v['takeUntil'](this['dispose$']))[_0x25df68(0x3de)](v[_0x25df68(0x3f9)](_0x188499=>!_0x188499['getUnitId']()[_0x25df68(0x561)]('__')))[_0x25df68(0x42c)](async _0x16d219=>{const _0x2ab719=_0x25df68,_0x1cadb0=_0x16d219[_0x2ab719(0x52b)](),_0x4811c2=await this[_0x2ab719(0x281)](_0x1cadb0);this[_0x2ab719(0x3fd)][_0x2ab719(0x52d)](_0x4811c2),this['_entities']['set'](_0x1cadb0,_0x4811c2);}),v['merge'](this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x332)]),this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x3c0)]))[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](_0x2ed698=>{const _0x48390f=_0x25df68,_0x39329b=_0x2ed698[_0x48390f(0x52b)](),_0x4ce304=this[_0x48390f(0x4de)]['get'](_0x39329b);_0x4ce304&&(_0x4ce304['dispose'](),this[_0x48390f(0x4de)][_0x48390f(0x2cc)](_0x39329b));});}async[_0x3b22f(0x3dd)](_0x64a107){const _0x292ecd=_0x3b22f,_0x3ddf3b=await this[_0x292ecd(0x27c)][_0x292ecd(0x578)](_0x64a107),_0x23df5e=this['_injector'][_0x292ecd(0x5e4)](He,_0x64a107,_0x3ddf3b);return _0x23df5e[_0x292ecd(0x358)](),_0x23df5e;}async[_0x3b22f(0x281)](_0x2fe84a){const _0x22e3ab=_0x3b22f,_0x172bc8=await this['_collabSessionService'][_0x22e3ab(0x578)](_0x2fe84a),_0x3af732=this[_0x22e3ab(0x397)]['createInstance']($e,_0x2fe84a,_0x172bc8);return _0x3af732[_0x22e3ab(0x358)](),_0x3af732;}};ie=si([Pe(0x0,a[_0x3b22f(0x26b)]),Pe(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Pe(0x2,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x3de569,_0x249b26){const _0x1f8afa=_0x3b22f;let {radius:_0x4764d6,width:_0x4038fb,height:_0xc37411}=_0x249b26;_0x4764d6=_0x4764d6!=null?_0x4764d6:0x0,_0x4038fb=_0x4038fb!=null?_0x4038fb:0x1e,_0xc37411=_0xc37411!=null?_0xc37411:0x1e;let _0x244882=0x0,_0x31c797=0x0,_0x262140=0x0;_0x244882=_0x31c797=_0x262140=Math[_0x1f8afa(0x5de)](_0x4764d6,_0x4038fb/0x2,_0xc37411/0x2),_0x3de569['beginPath'](),_0x3de569[_0x1f8afa(0x57e)](_0x244882,0x0),_0x3de569[_0x1f8afa(0x342)](_0x4038fb-_0x31c797,0x0),_0x3de569[_0x1f8afa(0x3b1)](_0x4038fb-_0x31c797,_0x31c797,_0x31c797,Math['PI']*0x3/0x2,0x0,!0x1),_0x3de569['lineTo'](_0x4038fb,_0xc37411-_0x262140),_0x3de569['arc'](_0x4038fb-_0x262140,_0xc37411-_0x262140,_0x262140,0x0,Math['PI']/0x2,!0x1),_0x3de569[_0x1f8afa(0x342)](0x0,_0xc37411),_0x3de569[_0x1f8afa(0x342)](0x0,_0x244882),_0x3de569[_0x1f8afa(0x3b1)](_0x244882,_0x244882,_0x244882,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3de569['closePath'](),_0x249b26['fill']&&(_0x3de569[_0x1f8afa(0x1f5)](),_0x3de569[_0x1f8afa(0x38f)]=_0x249b26[_0x1f8afa(0x2f2)],_0x249b26['fillRule']===_0x1f8afa(0x50b)?_0x3de569['fill'](_0x1f8afa(0x50b)):_0x3de569['fill'](),_0x3de569[_0x1f8afa(0x372)]());}class Te extends R[_0x3b22f(0x28e)]{constructor(_0x2bf1f6,_0xd9ee83){const _0x189588=_0x3b22f;super(_0x2bf1f6,_0xd9ee83),d(this,'color'),d(this,_0x189588(0x41e)),(this['color']=_0xd9ee83==null?void 0x0:_0xd9ee83[_0x189588(0x1e9)],this[_0x189588(0x41e)]=_0xd9ee83==null?void 0x0:_0xd9ee83['text']);}static[_0x3b22f(0x5dd)](_0x3c04ed,_0x14dfaf){const _0x1e575b=_0x3b22f,{text:_0x33787b,color:_0x314a03}=_0x14dfaf;_0x3c04ed[_0x1e575b(0x1f5)](),_0x3c04ed['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x41ad12=_0x3c04ed[_0x1e575b(0x5ba)](_0x33787b)[_0x1e575b(0x481)],_0x457a51=Math[_0x1e575b(0x5de)](_0x41ad12+0x2*we,rt);ni(_0x3c04ed,{'height':ue,'radius':0x4,'width':_0x457a51,'fill':_0x314a03,'evented':!0x1}),_0x3c04ed[_0x1e575b(0x38f)]='#FFF';const _0xc0d7aa=we,_0x512864=ue-ii,_0x3ca160=rt-0x2*we;if(_0x41ad12>_0x3ca160){let _0x3085aa='',_0x20d62b=0x0;for(const _0x5e2947 of _0x33787b){const _0x105e0b=_0x3c04ed[_0x1e575b(0x5ba)](_0x5e2947)[_0x1e575b(0x481)];if(_0x20d62b+_0x105e0b<=_0x3ca160-_0x3c04ed[_0x1e575b(0x5ba)](_0x1e575b(0x253))[_0x1e575b(0x481)])_0x3085aa+=_0x5e2947,_0x20d62b+=_0x105e0b;else{_0x3085aa+=_0x1e575b(0x253);break;}}_0x3c04ed[_0x1e575b(0x295)](_0x3085aa,_0xc0d7aa,_0x512864);}else _0x3c04ed[_0x1e575b(0x295)](_0x33787b,_0xc0d7aa,_0x512864);_0x3c04ed[_0x1e575b(0x372)]();}[_0x3b22f(0x4cc)](_0x480ef1){const _0x4fc489=_0x3b22f;Te[_0x4fc489(0x5dd)](_0x480ef1,this);}}const Me=_0x3b22f(0x4c9),ri=_0x3b22f(0x41c),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3b22f(0x579);function _0x2c53(_0x3be5e2,_0x117f23){const _0x1d05c6=_0x1d05();return _0x2c53=function(_0x2c539a,_0x1cbb06){_0x2c539a=_0x2c539a-0x1e1;let _0x510421=_0x1d05c6[_0x2c539a];return _0x510421;},_0x2c53(_0x3be5e2,_0x117f23);}class ot{constructor(_0x50eac7,_0x2aa3c7,_0x123588,_0x32312d){const _0x261ec7=_0x3b22f;d(this,_0x261ec7(0x457),[]),d(this,_0x261ec7(0x46a),null),d(this,_0x261ec7(0x46d),null),d(this,_0x261ec7(0x57c),null),d(this,_0x261ec7(0x39f),null),d(this,'_eventUnsubscribe',null),(this[_0x261ec7(0x581)]=_0x50eac7,this[_0x261ec7(0x573)]=_0x2aa3c7,this['_docSkeleton']=_0x123588,this['_document']=_0x32312d,this[_0x261ec7(0x5a8)]());}set['_hover'](_0x5690e4){const _0x5d9edb=_0x3b22f;_0x5690e4?(this['_anchorDot']&&this[_0x5d9edb(0x57c)][_0x5d9edb(0x2ba)](),this[_0x5d9edb(0x46d)]&&this[_0x5d9edb(0x46d)][_0x5d9edb(0x224)]()):(this[_0x5d9edb(0x57c)]&&this['_anchorDot'][_0x5d9edb(0x224)](),this['_textBubble']&&this['_textBubble'][_0x5d9edb(0x2ba)]());}['dispose'](){const _0x4215c2=_0x3b22f;for(const _0x52fba3 of this[_0x4215c2(0x457)])_0x52fba3[_0x4215c2(0x4f2)]();this[_0x4215c2(0x46d)]&&this[_0x4215c2(0x46d)]['dispose'](),this[_0x4215c2(0x57c)]&&this[_0x4215c2(0x57c)][_0x4215c2(0x4f2)](),this[_0x4215c2(0x46a)]&&this[_0x4215c2(0x46a)]['dispose'](),this[_0x4215c2(0x248)]&&this['_eventUnsubscribe']();}['_render'](){const _0x593cfd=_0x3b22f;var _0x501c9f;const {_docSkeleton:_0x20e755,_document:_0x819570}=this,{color:_0x2ab924,name:_0x55abb7,ranges:_0xef9f8d}=this['_cursor'],_0x933742=_0x819570['getOffsetConfig'](),{docsLeft:_0x68fcb5,docsTop:_0xad7b62}=_0x933742,_0x273820=new w[(_0x593cfd(0x58d))](_0x933742,_0x20e755);for(const {startOffset:_0x3b787b,endOffset:_0x2931a9,collapsed:_0x41a7dd,isActive:_0x1425dc}of _0xef9f8d){const _0xd115ed=_0x20e755['findNodePositionByCharIndex'](_0x3b787b),_0x40b812=_0x20e755[_0x593cfd(0x540)](_0x2931a9);if(_0x1425dc){const {contentBoxPointGroup:_0x22acb0}=_0x273820[_0x593cfd(0x30f)](_0x40b812,_0x40b812);if(_0x22acb0[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x41b)](_0x2ab924,_0x22acb0,_0x68fcb5,_0xad7b62,_0x55abb7),this[_0x593cfd(0x248)]=this[_0x593cfd(0x286)]();}if(!_0x41a7dd&&_0xd115ed&&_0x40b812){if(w[_0x593cfd(0x28c)](_0xd115ed,_0x40b812)){const _0x2bd01b=new w[(_0x593cfd(0x282))](_0x933742,_0x20e755),{pointGroup:_0x38c0d1}=(_0x501c9f=_0x2bd01b[_0x593cfd(0x30f)](_0xd115ed,_0x40b812))!=null?_0x501c9f:{};if(_0x38c0d1==null||_0x38c0d1[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x1fc)](_0x2ab924,_0x38c0d1,_0x68fcb5,_0xad7b62);}else{const {contentBoxPointGroup:_0x41f668}=_0x273820[_0x593cfd(0x30f)](_0xd115ed,_0x40b812);if(_0x41f668[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x520)](_0x2ab924,_0x41f668,_0x68fcb5,_0xad7b62);}}}}[_0x3b22f(0x41b)](_0x59f3c5,_0x20e5e7,_0x157193,_0x4bb5de,_0x559fd0){const _0x2e8769=_0x3b22f,_0x246896=this[_0x2e8769(0x3d3)](_0x20e5e7),{left:_0x51a1d0,top:_0x5a1d3d,height:_0x40a047}=_0x246896,_0x13b53d=this['_getScale'](),_0x1bba98=ci/_0x13b53d,_0x1bfe24=new R['Rect'](Me+a['Tools'][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de,'height':_0x40a047,'width':ai,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':_0x1bba98,'stroke':li,'evented':!0x0});this['_anchor']=_0x1bfe24,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x1bfe24,w[_0x2e8769(0x5a0)]);const _0x21f2de=new R['Rect'](Me+a[_0x2e8769(0x27d)]['generateRandomId'](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':0x0,'stroke':_0x59f3c5||R[_0x2e8769(0x427)](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'evented':!0x1});this[_0x2e8769(0x57c)]=_0x21f2de,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x21f2de,w[_0x2e8769(0x5a0)]);const _0x401a3a=new Te(Me+a[_0x2e8769(0x27d)][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-ue,'text':_0x559fd0,'color':_0x59f3c5});this[_0x2e8769(0x46d)]=_0x401a3a,this['_scene'][_0x2e8769(0x2ff)](_0x401a3a,w[_0x2e8769(0x5a0)]),this[_0x2e8769(0x468)]=!0x1;}[_0x3b22f(0x286)](){const _0x59e1f3=_0x3b22f,_0x4527e2=this['_anchor'][_0x59e1f3(0x27a)][_0x59e1f3(0x3be)](()=>{const _0x398f6f=_0x59e1f3;this[_0x398f6f(0x468)]=!0x0;}),_0x55490b=this[_0x59e1f3(0x46a)]['onPointerLeave$'][_0x59e1f3(0x3be)](()=>{const _0x52193e=_0x59e1f3;this['_hideTimer']&&clearTimeout(this[_0x52193e(0x39f)]),this[_0x52193e(0x39f)]=setTimeout(()=>{const _0x586c4c=_0x52193e;this[_0x586c4c(0x468)]=!0x1;},0x7d0);});return()=>{const _0x2c9d62=_0x59e1f3;_0x4527e2['unsubscribe'](),_0x55490b[_0x2c9d62(0x3d4)]();};}[_0x3b22f(0x520)](_0x268032,_0x400ab3,_0x244da5,_0x256e2a){const _0x333598=_0x3b22f,_0x47c078=new a[(_0x333598(0x35a))](_0x268032)[_0x333598(0x236)](0.2)[_0x333598(0x532)](),_0x43f15c=new R[(_0x333598(0x3e1))](ri+a[_0x333598(0x27d)][_0x333598(0x409)](ce),{'pointsGroup':_0x400ab3,'fill':_0x47c078||R['getColor'](a[_0x333598(0x541)][_0x333598(0x4b3)],0.2),'left':_0x244da5,'top':_0x256e2a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x333598(0x1ed)](_0x43f15c),this['_scene']['addObject'](_0x43f15c,w[_0x333598(0x5a0)]);}[_0x3b22f(0x1fc)](_0x1d3bd0,_0x307bb7,_0x539e4d,_0x231f52){const _0x41c927=_0x3b22f,_0x1b7b1b=new a[(_0x41c927(0x35a))](_0x1d3bd0)[_0x41c927(0x236)](0.2)[_0x41c927(0x532)](),_0x2b9429=new R[(_0x41c927(0x3e1))](oi+a[_0x41c927(0x27d)][_0x41c927(0x409)](ce),{'pointsGroup':_0x307bb7,'fill':_0x1b7b1b||R['getColor'](a[_0x41c927(0x541)]['black'],0.2),'left':_0x539e4d,'top':_0x231f52,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x41c927(0x1ed)](_0x2b9429),this[_0x41c927(0x573)][_0x41c927(0x2ff)](_0x2b9429,w[_0x41c927(0x5a0)]);}[_0x3b22f(0x3d3)](_0x49d193){const _0xfd6647=_0x49d193[0x0],_0x524ca3=_0xfd6647[0x0],_0x45e720=_0xfd6647[0x2],{x:_0x48ac2b,y:_0x44c32d}=_0x524ca3,{x:_0x25df25,y:_0x389c1a}=_0x45e720;return{'left':_0x48ac2b,'top':_0x44c32d,'width':_0x25df25-_0x48ac2b,'height':_0x389c1a-_0x44c32d};}[_0x3b22f(0x24c)](){const _0x2a9200=_0x3b22f,{scaleX:_0x57d8f3,scaleY:_0x36063d}=this[_0x2a9200(0x573)][_0x2a9200(0x4a1)]();return Math[_0x2a9200(0x31e)](_0x57d8f3,_0x36063d);}}var hi=Object['defineProperty'],_i=Object[_0x3b22f(0x246)],ui=(_0xfadf41,_0x2b7ab9,_0x111a35,_0x1eb655)=>{const _0x44533e=_0x3b22f;for(var _0xd18abb=_0x1eb655>0x1?void 0x0:_0x1eb655?_i(_0x2b7ab9,_0x111a35):_0x2b7ab9,_0x4cd94b=_0xfadf41[_0x44533e(0x291)]-0x1,_0x5e6014;_0x4cd94b>=0x0;_0x4cd94b--)(_0x5e6014=_0xfadf41[_0x4cd94b])&&(_0xd18abb=(_0x1eb655?_0x5e6014(_0x2b7ab9,_0x111a35,_0xd18abb):_0x5e6014(_0xd18abb))||_0xd18abb);return _0x1eb655&&_0xd18abb&&hi(_0x2b7ab9,_0x111a35,_0xd18abb),_0xd18abb;},de=(_0x87f741,_0x38aa3b)=>(_0x30b7be,_0x44c04e)=>_0x38aa3b(_0x30b7be,_0x44c04e,_0x87f741);let xe=class extends a['RxDisposable']{constructor(_0x5f43eb,_0x28de74,_0x48a793,_0x2c5cac,_0x3b094c){const _0x11f209=_0x3b22f;super(),d(this,_0x11f209(0x5c0),[]),d(this,'_cursors',[]),(this[_0x11f209(0x2d8)]=_0x5f43eb,this[_0x11f209(0x464)]=_0x28de74,this[_0x11f209(0x45c)]=_0x48a793,this['_commandService']=_0x2c5cac,this[_0x11f209(0x3d9)]=_0x3b094c,this[_0x11f209(0x341)]());}[_0x3b22f(0x341)](){const _0x830ca6=_0x3b22f,_0xf05871=this['_context'][_0x830ca6(0x3df)],_0x413ef3=this[_0x830ca6(0x464)];this[_0x830ca6(0x283)](v[_0x830ca6(0x417)]([this[_0x830ca6(0x45c)][_0x830ca6(0x4f4)](_0xf05871),this[_0x830ca6(0x3d9)][_0x830ca6(0x3e4)]])[_0x830ca6(0x3de)](E[_0x830ca6(0x57b)](([_0x468008,_0x52d44b])=>({'skeleton':_0x413ef3['getSkeleton'](),'cursors':[..._0x468008[_0x830ca6(0x407)]()][_0x830ca6(0x5c7)](_0x367939=>({..._0x367939,'color':_0x52d44b[_0x367939[_0x830ca6(0x1e9)]]}))})))[_0x830ca6(0x42c)](_0x68dc15=>{const _0x19b43d=_0x830ca6;if(this[_0x19b43d(0x2dc)](),_0x68dc15){const {skeleton:_0x46090d,cursors:_0x43f752}=_0x68dc15;this[_0x19b43d(0x560)](_0x46090d,_0x43f752);}})),this[_0x830ca6(0x447)](),this[_0x830ca6(0x31a)]();}['_updateCollabCursors'](_0x5894fc,_0x2ac514){const _0x32fee=_0x3b22f,{scene:_0x4523d3,mainComponent:_0x50b5b}=this[_0x32fee(0x2d8)],_0x18eb3a=_0x2ac514[_0x32fee(0x57b)](_0x48258c=>new ot(_0x48258c,_0x4523d3,_0x5894fc,_0x50b5b));this['_cursorShapes']=_0x18eb3a,this[_0x32fee(0x304)]=_0x2ac514;}[_0x3b22f(0x441)](){const _0x5aa550=_0x3b22f;this[_0x5aa550(0x2dc)]();const {scene:_0x5927db,mainComponent:_0x48afa1}=this[_0x5aa550(0x2d8)],_0x2d0e9e=this[_0x5aa550(0x464)][_0x5aa550(0x229)](),_0x4b762a=this['_cursors'][_0x5aa550(0x57b)](_0x1c3839=>new ot(_0x1c3839,_0x5927db,_0x2d0e9e,_0x48afa1));this[_0x5aa550(0x5c0)]=_0x4b762a;}['_removeCollabCursors'](){const _0x5127ee=_0x3b22f;this[_0x5127ee(0x5c0)]['forEach'](_0x2d6545=>_0x2d6545['dispose']()),this[_0x5127ee(0x5c0)]=[];}[_0x3b22f(0x31a)](){const _0x322feb=_0x3b22f,_0x31582f=[w[_0x322feb(0x32b)]['id']];this['disposeWithMe'](this[_0x322feb(0x4b9)][_0x322feb(0x2dd)](_0x1496e1=>{const _0x31d215=_0x322feb;_0x31582f[_0x31d215(0x565)](_0x1496e1['id'])&&_0x1496e1[_0x31d215(0x3b6)][_0x31d215(0x3df)]===this[_0x31d215(0x2d8)]['unitId']&&this[_0x31d215(0x441)]();}));}[_0x3b22f(0x447)](){const _0x20487b=_0x3b22f;this['disposeWithMe'](a[_0x20487b(0x401)](this[_0x20487b(0x2d8)][_0x20487b(0x31c)][_0x20487b(0x5be)])[_0x20487b(0x3de)](E[_0x20487b(0x3f9)](_0x4ff955=>_0x4ff955['type']===R[_0x20487b(0x458)]['resize']),E[_0x20487b(0x231)](0x10))[_0x20487b(0x42c)](()=>{const _0x3963c8=_0x20487b;this[_0x3963c8(0x441)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x3b22f(0x495)])),de(0x2,a[_0x3b22f(0x492)](ie)),de(0x3,a[_0x3b22f(0x323)]),de(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x4ab)]))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x3b22f(0x28e)]{constructor(_0x3046af,_0x35f64e){const _0x5a5949=_0x3b22f;super(_0x3046af,_0x35f64e),d(this,_0x5a5949(0x2ab)),d(this,_0x5a5949(0x207),!0x1),d(this,_0x5a5949(0x3ac)),d(this,_0x5a5949(0x26a),''),d(this,_0x5a5949(0x51f),_0x5a5949(0x4d9)),d(this,_0x5a5949(0x369)),(_0x35f64e&&this[_0x5a5949(0x592)](_0x35f64e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5a5949(0x592)]({'hovered':!0x0})),this[_0x5a5949(0x247)][_0x5a5949(0x3be)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3b22f(0x592)](_0x429d1e){const _0x371e78=_0x3b22f;var _0x471993,_0x11c66f,_0x2a24d5,_0x19dc6e,_0x2a7e0d,_0x47ccff;this[_0x371e78(0x2ab)]=(_0x471993=_0x429d1e['color'])!=null?_0x471993:this[_0x371e78(0x2ab)],this['_hovered']=(_0x11c66f=_0x429d1e[_0x371e78(0x3ab)])!=null?_0x11c66f:this[_0x371e78(0x207)],this[_0x371e78(0x3ac)]=(_0x2a24d5=_0x429d1e['range'])!=null?_0x2a24d5:this['_range'],this['_name']=(_0x19dc6e=_0x429d1e[_0x371e78(0x366)])!=null?_0x19dc6e:this[_0x371e78(0x26a)],this[_0x371e78(0x51f)]=(_0x2a7e0d=_0x429d1e['labelPosition'])!=null?_0x2a7e0d:this[_0x371e78(0x51f)],this[_0x371e78(0x369)]=(_0x47ccff=_0x429d1e[_0x371e78(0x382)])!=null?_0x47ccff:this[_0x371e78(0x369)],this[_0x371e78(0x26f)]({'width':_0x429d1e[_0x371e78(0x481)],'height':_0x429d1e[_0x371e78(0x1f0)]});}[_0x3b22f(0x3b9)](_0x16e32b){const _0x99d0f1=_0x3b22f,{row:_0x1f9cd9,column:_0x48a038}=_0x16e32b;if(_0x1f9cd9>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x472)]&&_0x1f9cd9<=this[_0x99d0f1(0x3ac)]['endRow']&&_0x48a038>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x595)]&&_0x48a038<=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x375)]){this[_0x99d0f1(0x592)]({'hovered':!0x0});return;}this[_0x99d0f1(0x592)]({'hovered':!0x1});}[_0x3b22f(0x26d)](_0x3a871f){return!0x1;}[_0x3b22f(0x4cc)](_0x202747){const _0xe4eb5a=_0x3b22f;R[_0xe4eb5a(0x299)]['drawWith'](_0x202747,{'width':this[_0xe4eb5a(0x481)],'height':this[_0xe4eb5a(0x1f0)],'strokeWidth':Si,'stroke':this[_0xe4eb5a(0x2ab)],'evented':!0x1,'fill':this[_0xe4eb5a(0x369)]}),this['_hovered']&&(_0x202747[_0xe4eb5a(0x1f5)](),_0x202747['transform'](0x1,0x0,0x0,0x1,this[_0xe4eb5a(0x481)],this['_labelPosition']===_0xe4eb5a(0x3bd)?0x0:-ue),Te[_0xe4eb5a(0x5dd)](_0x202747,{'text':this['_name'],'color':this['_color']}),_0x202747[_0xe4eb5a(0x372)]());}}var vi=Object[_0x3b22f(0x1ff)],fi=Object[_0x3b22f(0x246)],gi=(_0x4a1bcb,_0x2fe850,_0x7204d9,_0x1c60d9)=>{const _0x4c5f5a=_0x3b22f;for(var _0x475012=_0x1c60d9>0x1?void 0x0:_0x1c60d9?fi(_0x2fe850,_0x7204d9):_0x2fe850,_0x3b31a4=_0x4a1bcb[_0x4c5f5a(0x291)]-0x1,_0x42c6f9;_0x3b31a4>=0x0;_0x3b31a4--)(_0x42c6f9=_0x4a1bcb[_0x3b31a4])&&(_0x475012=(_0x1c60d9?_0x42c6f9(_0x2fe850,_0x7204d9,_0x475012):_0x42c6f9(_0x475012))||_0x475012);return _0x1c60d9&&_0x475012&&vi(_0x2fe850,_0x7204d9,_0x475012),_0x475012;},Ae=(_0x14427a,_0x354eb2)=>(_0x297ce,_0x58e85e)=>_0x354eb2(_0x297ce,_0x58e85e,_0x14427a);const mi=0x1389;let ke=class extends a[_0x3b22f(0x398)]{constructor(_0x4671ae,_0x134d1f,_0xe3c33b,_0xce97ca){const _0x5f16c5=_0x3b22f;super(),d(this,_0x5f16c5(0x304),new Set()),d(this,_0x5f16c5(0x351),null),(this['_context']=_0x4671ae,this[_0x5f16c5(0x330)]=_0x134d1f,this[_0x5f16c5(0x45c)]=_0xe3c33b,this[_0x5f16c5(0x3d9)]=_0xce97ca,this[_0x5f16c5(0x341)]());}[_0x3b22f(0x341)](){const _0x46b214=_0x3b22f;this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x3de)](E[_0x46b214(0x37c)](this[_0x46b214(0x2e1)]),E[_0x46b214(0x3fe)](_0x36798e=>{const _0x30ad38=_0x46b214;if(_0x36798e){const _0x4b198e=_0x36798e[_0x30ad38(0x453)];return v[_0x30ad38(0x417)](this['_collabCursorController']['getCollabCursors$'](this[_0x30ad38(0x2d8)][_0x30ad38(0x3df)]),this[_0x30ad38(0x3d9)][_0x30ad38(0x3e4)])[_0x30ad38(0x3de)](E[_0x30ad38(0x57b)](([_0x565e87,_0x157614])=>{const _0x37d621=_0x30ad38,_0x5d3382=new Map();return _0x565e87[_0x37d621(0x339)]((_0x24f436,_0xa78849)=>{const _0x154853=_0x37d621;if(_0x24f436[_0x154853(0x52c)]===_0x4b198e){const _0x45cd01={..._0x24f436};_0x45cd01[_0x154853(0x1e9)]=_0x157614[_0x24f436[_0x154853(0x1e9)]],_0x5d3382['set'](_0xa78849,_0x45cd01);}}),{'skeleton':_0x36798e,'cursors':_0x5d3382};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x46b214(0x42c)](({skeleton:_0x10f994,cursors:_0x417dd5})=>{const _0x1e3b39=_0x46b214;this[_0x1e3b39(0x2dc)](),_0x10f994&&this[_0x1e3b39(0x560)](_0x10f994,_0x417dd5);}),this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x42c)](_0x5a8e0b=>{const _0x39fe68=_0x46b214;if(_0x5a8e0b==null)return;const {skeleton:_0x411564}=_0x5a8e0b,{scene:_0x9f5268}=this[_0x39fe68(0x2d8)];_0x9f5268[_0x39fe68(0x51e)][_0x39fe68(0x3be)](a['debounce'](_0x115ea2=>{const _0x5e0248=_0x39fe68;var _0x4c8516,_0x27661a;const {offsetX:_0x2c9223,offsetY:_0x33c2ef}=_0x115ea2,{x:_0x1f2c5a,y:_0x37ccff}=_0x9f5268[_0x5e0248(0x2fd)](R[_0x5e0248(0x559)]['FromArray']([_0x2c9223,_0x33c2ef])),{scaleX:_0x281d56,scaleY:_0x5ac98c}=_0x9f5268['getAncestorScale'](),_0x5b3715=_0x9f5268[_0x5e0248(0x29d)](te['VIEWPORT_KEY'][_0x5e0248(0x59c)]),_0x5ec5f3=_0x9f5268['getVpScrollXYInfoByPosToVp'](R['Vector2'][_0x5e0248(0x313)]([_0x1f2c5a,_0x37ccff]),_0x5b3715),_0x3b00b9=_0x411564['getCellPositionByOffset'](_0x2c9223,_0x33c2ef,_0x281d56,_0x5ac98c,_0x5ec5f3);((_0x4c8516=this[_0x5e0248(0x351)])==null?void 0x0:_0x4c8516['column'])===_0x3b00b9[_0x5e0248(0x5d7)]&&((_0x27661a=this['_lastPointer'])==null?void 0x0:_0x27661a['row'])===_0x3b00b9[_0x5e0248(0x4c5)]||this[_0x5e0248(0x304)]['forEach'](_0xcdaf7e=>{const _0xfccfed=_0x5e0248;_0xcdaf7e[_0xfccfed(0x3b9)](_0x3b00b9);});},0x64));});}[_0x3b22f(0x560)](_0x387538,_0x2d8912){const _0x19d216=_0x3b22f;var _0x3931e4;const _0x219a89=(_0x3931e4=this[_0x19d216(0x330)]['getCurrent']())==null?void 0x0:_0x3931e4['skeleton'];if(!_0x219a89)return;const _0x10616e=this[_0x19d216(0x556)]();if(!_0x10616e)return;this[_0x19d216(0x304)][_0x19d216(0x339)](_0x367948=>{const _0x41630e=_0x19d216;_0x367948[_0x41630e(0x48e)]();});const {scene:_0x40566b}=_0x10616e,_0x22f49a=Ii(Array['from'](_0x2d8912[_0x19d216(0x407)]()))[_0x19d216(0x57b)](_0x3b646b=>{const _0x1c5677=_0x19d216,{color:_0x184522,range:_0x381b22,name:_0x2330fe,selection:_0x4e8ca6,sheetID:_0xf34080}=_0x3b646b,{startColumn:_0x493009,startRow:_0x4b9cff,endColumn:_0x3a58cd,endRow:_0x470f79}=_0x381b22,_0x448fdc=te[_0x1c5677(0x562)](_0x4b9cff,_0x493009,_0x40566b,_0x219a89),_0x1ef8c8=te[_0x1c5677(0x562)](_0x470f79,_0x3a58cd,_0x40566b,_0x219a89),{columnHeaderHeightAndMarginTop:_0x2d5c20}=_0x219a89,{startX:_0x125264,startY:_0xb99fe7}=_0x448fdc,{endX:_0x329c49,endY:_0x1bf0cd}=_0x1ef8c8,_0x141345=_0x329c49-_0x125264,_0x309566=_0x1bf0cd-_0xb99fe7,_0x5ac3c1={'labelPosition':_0xb99fe7-_0x2d5c20>=ue?_0x1c5677(0x4d9):'bottom','sheetID':_0xf34080,'range':_0x381b22,'color':_0x184522,'name':_0x2330fe,'selection':_0x4e8ca6,'left':_0x125264,'top':_0xb99fe7,'width':_0x141345,'height':_0x309566,'evented':!0x1,'zIndex':mi};return new Ot(_0x2330fe,_0x5ac3c1);});_0x40566b[_0x19d216(0x4a9)](_0x22f49a,di),this[_0x19d216(0x304)]=new Set(_0x22f49a);}[_0x3b22f(0x2dc)](){const _0x18e6f5=_0x3b22f;var _0x42c1e0;(_0x42c1e0=this[_0x18e6f5(0x304)])==null||_0x42c1e0[_0x18e6f5(0x339)](_0x232f6e=>_0x232f6e[_0x18e6f5(0x4f2)]());}[_0x3b22f(0x556)](){const _0x2fa5e6=_0x3b22f;return te[_0x2fa5e6(0x287)](this[_0x2fa5e6(0x2d8)][_0x2fa5e6(0x59f)],this[_0x2fa5e6(0x2d8)]);}};ke=gi([Ae(0x1,a[_0x3b22f(0x492)](te[_0x3b22f(0x21a)])),Ae(0x2,a[_0x3b22f(0x492)](ie)),Ae(0x3,a['Inject'](a[_0x3b22f(0x4ab)]))],ke);function Ii(_0x51a7a2){const _0x25738d=_0x3b22f,_0x37d589=new Map();return _0x51a7a2[_0x25738d(0x339)](_0x2dba96=>{const _0x3728f8=_0x25738d;if(_0x37d589[_0x3728f8(0x3e5)](_0x2dba96['selection'])){const _0x5e8aaf=_0x37d589[_0x3728f8(0x34d)](_0x2dba96[_0x3728f8(0x476)]);_0x5e8aaf[_0x3728f8(0x366)]+=',\x20'+_0x2dba96[_0x3728f8(0x366)];}else _0x37d589[_0x3728f8(0x305)](_0x2dba96[_0x3728f8(0x476)],_0x2dba96);}),Array[_0x25738d(0x1e8)](_0x37d589[_0x25738d(0x407)]());}var M=function(){const _0x16e31a=_0x3b22f;return M=Object[_0x16e31a(0x259)]||function(_0x4eee2d){const _0x5c684=_0x16e31a;for(var _0x18806c,_0x3d0aa4=0x1,_0x292f9c=arguments[_0x5c684(0x291)];_0x3d0aa4<_0x292f9c;_0x3d0aa4++){_0x18806c=arguments[_0x3d0aa4];for(var _0x3b796d in _0x18806c)Object[_0x5c684(0x4cf)]['hasOwnProperty'][_0x5c684(0x4d0)](_0x18806c,_0x3b796d)&&(_0x4eee2d[_0x3b796d]=_0x18806c[_0x3b796d]);}return _0x4eee2d;},M[_0x16e31a(0x4cd)](this,arguments);},pi=function(_0x1e0d0e,_0x12c5cb){const _0x3c763d=_0x3b22f;var _0x191ec8={};for(var _0xf3104f in _0x1e0d0e)Object['prototype'][_0x3c763d(0x53f)][_0x3c763d(0x4d0)](_0x1e0d0e,_0xf3104f)&&_0x12c5cb[_0x3c763d(0x238)](_0xf3104f)<0x0&&(_0x191ec8[_0xf3104f]=_0x1e0d0e[_0xf3104f]);if(_0x1e0d0e!=null&&typeof Object[_0x3c763d(0x5da)]==_0x3c763d(0x554)){for(var _0x14bed1=0x0,_0xf3104f=Object[_0x3c763d(0x5da)](_0x1e0d0e);_0x14bed1<_0xf3104f[_0x3c763d(0x291)];_0x14bed1++)_0x12c5cb['indexOf'](_0xf3104f[_0x14bed1])<0x0&&Object[_0x3c763d(0x4cf)][_0x3c763d(0x563)]['call'](_0x1e0d0e,_0xf3104f[_0x14bed1])&&(_0x191ec8[_0xf3104f[_0x14bed1]]=_0x1e0d0e[_0xf3104f[_0x14bed1]]);}return _0x191ec8;},qe=U[_0x3b22f(0x5b8)](function(_0x584ce1,_0x319f75){const _0x15d226=_0x3b22f;var _0x5f5282=_0x584ce1[_0x15d226(0x3c1)],_0x407e4a=_0x584ce1['id'],_0x14b22b=_0x584ce1['className'],_0x345b4b=_0x584ce1['extend'],_0x9dc4e8=pi(_0x584ce1,[_0x15d226(0x3c1),'id','className','extend']),_0x360506=_0x15d226(0x443)[_0x15d226(0x533)](_0x407e4a,'\x20')[_0x15d226(0x533)](_0x14b22b||'')[_0x15d226(0x3fc)](),_0x306198=U[_0x15d226(0x385)]('_'[_0x15d226(0x533)](bi()));return Dt(_0x5f5282,''['concat'](_0x407e4a),{'defIds':_0x5f5282[_0x15d226(0x5e1)],'idSuffix':_0x306198[_0x15d226(0x32e)]},M({'ref':_0x319f75,'className':_0x360506},_0x9dc4e8),_0x345b4b);});function Dt(_0x157d61,_0x3eb8e6,_0x2e08c4,_0x49a5f5,_0x34f3eb){const _0x5a308a=_0x3b22f;return U[_0x5a308a(0x494)](_0x157d61['tag'],M(M({'key':_0x3eb8e6},Ci(_0x157d61,_0x2e08c4,_0x34f3eb)),_0x49a5f5),(Ei(_0x157d61,_0x2e08c4)[_0x5a308a(0x44e)]||[])[_0x5a308a(0x57b)](function(_0x319ddc,_0x45a123){const _0x4a97fa=_0x5a308a;return Dt(_0x319ddc,''[_0x4a97fa(0x533)](_0x3eb8e6,'-')[_0x4a97fa(0x533)](_0x157d61[_0x4a97fa(0x43d)],'-')['concat'](_0x45a123),_0x2e08c4,void 0x0,_0x34f3eb);}));}function Ci(_0x5c9eee,_0x1c5e18,_0x700f90){const _0x15c40d=_0x3b22f;var _0x217ef6=M({},_0x5c9eee[_0x15c40d(0x5d3)]);_0x700f90!=null&&_0x700f90[_0x15c40d(0x20b)]&&_0x217ef6[_0x15c40d(0x2f2)]==='colorChannel1'&&(_0x217ef6[_0x15c40d(0x2f2)]=_0x700f90[_0x15c40d(0x20b)]);var _0x51088a=_0x1c5e18[_0x15c40d(0x5e1)];return!_0x51088a||_0x51088a['length']===0x0||(_0x5c9eee[_0x15c40d(0x43d)]==='use'&&_0x217ef6[_0x15c40d(0x3d1)]&&(_0x217ef6[_0x15c40d(0x3d1)]=_0x217ef6[_0x15c40d(0x3d1)]+_0x1c5e18[_0x15c40d(0x4db)]),Object['entries'](_0x217ef6)[_0x15c40d(0x339)](function(_0x8d3765){const _0x1a7fab=_0x15c40d;var _0x26f651=_0x8d3765[0x0],_0x54c482=_0x8d3765[0x1];typeof _0x54c482=='string'&&(_0x217ef6[_0x26f651]=_0x54c482[_0x1a7fab(0x262)](/url\(#(.*)\)/,_0x1a7fab(0x3f7)[_0x1a7fab(0x533)](_0x1c5e18[_0x1a7fab(0x4db)],')')));})),_0x217ef6;}function Ei(_0xe08c60,_0x164eca){const _0x226177=_0x3b22f;var _0x38605f,_0xe3318a=_0x164eca[_0x226177(0x5e1)];return!_0xe3318a||_0xe3318a[_0x226177(0x291)]===0x0?_0xe08c60:_0xe08c60[_0x226177(0x43d)]===_0x226177(0x50f)&&(!((_0x38605f=_0xe08c60['children'])===null||_0x38605f===void 0x0)&&_0x38605f[_0x226177(0x291)])?M(M({},_0xe08c60),{'children':_0xe08c60[_0x226177(0x44e)][_0x226177(0x57b)](function(_0x84ecb3){const _0x44647b=_0x226177;return typeof _0x84ecb3[_0x44647b(0x5d3)]['id']=='string'&&_0xe3318a&&_0xe3318a['indexOf'](_0x84ecb3['attrs']['id'])>-0x1?M(M({},_0x84ecb3),{'attrs':M(M({},_0x84ecb3['attrs']),{'id':_0x84ecb3[_0x44647b(0x5d3)]['id']+_0x164eca[_0x44647b(0x4db)]})}):_0x84ecb3;})}):_0xe08c60;}function bi(){const _0x265476=_0x3b22f;return Math[_0x265476(0x482)]()[_0x265476(0x4e2)](0x24)[_0x265476(0x35d)](0x2,0x8);}qe[_0x3b22f(0x499)]='UniverIcon';var Ti={'tag':_0x3b22f(0x448),'attrs':{'fill':'none','viewBox':_0x3b22f(0x5a2),'width':_0x3b22f(0x39e),'height':_0x3b22f(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x219)},'children':[{'tag':_0x3b22f(0x321),'attrs':{'stroke':_0x3b22f(0x478),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222)}}]}]}],'defIds':[_0x3b22f(0x5e0)]},yt=U['forwardRef'](function(_0x476043,_0x87e49e){const _0x770cdd=_0x3b22f;return U[_0x770cdd(0x494)](qe,Object[_0x770cdd(0x259)]({},_0x476043,{'id':_0x770cdd(0x355),'ref':_0x87e49e,'icon':Ti}));});yt[_0x3b22f(0x499)]=_0x3b22f(0x5c5);var Ri={'tag':'svg','attrs':{'fill':_0x3b22f(0x2c0),'viewBox':_0x3b22f(0x552),'width':_0x3b22f(0x39e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x550)},'children':[{'tag':'path','attrs':{'stroke':_0x3b22f(0x478),'d':_0x3b22f(0x456),'strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3b22f(0x321),'attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222),'transform':_0x3b22f(0x2b7)}}]}]}],'defIds':[_0x3b22f(0x2f5)]},Ut=U[_0x3b22f(0x5b8)](function(_0x567135,_0x426d4e){const _0x608fdd=_0x3b22f;return U['createElement'](qe,Object[_0x608fdd(0x259)]({},_0x567135,{'id':_0x608fdd(0x1e7),'ref':_0x426d4e,'icon':Ri}));});Ut[_0x3b22f(0x499)]=_0x3b22f(0x2d1);function Pt(_0x4abb31){const _0x17fdac=_0x3b22f;var _0x3a2b3b,_0x23ff24,_0x5580bb='';if(typeof _0x4abb31==_0x17fdac(0x40a)||typeof _0x4abb31==_0x17fdac(0x3f0))_0x5580bb+=_0x4abb31;else{if(typeof _0x4abb31==_0x17fdac(0x529)){if(Array[_0x17fdac(0x33f)](_0x4abb31)){var _0x3bf54a=_0x4abb31[_0x17fdac(0x291)];for(_0x3a2b3b=0x0;_0x3a2b3b<_0x3bf54a;_0x3a2b3b++)_0x4abb31[_0x3a2b3b]&&(_0x23ff24=Pt(_0x4abb31[_0x3a2b3b]))&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}else{for(_0x23ff24 in _0x4abb31)_0x4abb31[_0x23ff24]&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}}}return _0x5580bb;}function Oi(){const _0x1a39d6=_0x3b22f;for(var _0x57a9c5,_0x3e8149,_0x4e3bfe=0x0,_0xf99454='',_0xac0a6f=arguments[_0x1a39d6(0x291)];_0x4e3bfe<_0xac0a6f;_0x4e3bfe++)(_0x57a9c5=arguments[_0x4e3bfe])&&(_0x3e8149=Pt(_0x57a9c5))&&(_0xf99454&&(_0xf99454+='\x20'),_0xf99454+=_0x3e8149);return _0xf99454;}const Di=_0x3b22f(0x5bc),yi=_0x3b22f(0x480),Ui=_0x3b22f(0x53e),Pi=_0x3b22f(0x363),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x2ec702){const _0x5bc0b9=_0x3b22f;switch(_0x2ec702){case y['OFFLINE']:return _0x5bc0b9(0x3ae);case y[_0x5bc0b9(0x30c)]:return'collabStatus.conflict';case y[_0x5bc0b9(0x416)]:return _0x5bc0b9(0x2ad);case y[_0x5bc0b9(0x4eb)]:return _0x5bc0b9(0x22b);case y[_0x5bc0b9(0x2a6)]:case y[_0x5bc0b9(0x34f)]:case y[_0x5bc0b9(0x4ea)]:return _0x5bc0b9(0x43a);case y[_0x5bc0b9(0x434)]:return'collabStatus.synced';}}function wt(_0x469b64){const _0x17cd9e=_0x3b22f,{status$:_0x18dda2}=_0x469b64,_0x2df0d4=N[_0x17cd9e(0x4fe)](_0x18dda2,y[_0x17cd9e(0x4eb)]),_0x489bc7=a[_0x17cd9e(0x32c)](a[_0x17cd9e(0x583)]),_0x2ca222=a['useDependency'](exports[_0x17cd9e(0x298)]),_0x25c798=_0x2df0d4!==y[_0x17cd9e(0x3ea)],_0x4e54e1=_0x489bc7['t'](Mi(_0x2df0d4)),_0x1702d9=Oi(le[_0x17cd9e(0x30b)],{[le[_0x17cd9e(0x5d1)]]:_0x25c798,[le[_0x17cd9e(0x45f)]]:!_0x25c798}),_0xdf07e6=_0x25c798?U[_0x17cd9e(0x494)](Ut,null):U[_0x17cd9e(0x494)](yt,null),_0x3ee3e4=U[_0x17cd9e(0x391)](()=>{const _0x2a21d4=_0x17cd9e;_0x25c798||_0x2ca222[_0x2a21d4(0x359)]();},[_0x25c798,_0x2ca222]);function _0x3289df(){const _0x128d91=_0x17cd9e;return U[_0x128d91(0x494)](_0x128d91(0x547),{'className':_0x1702d9,'onClick':_0x3ee3e4},U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le['onlineStatusIcon']},_0xdf07e6),U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le[_0x128d91(0x4a5)]},_0x4e54e1));}return _0x25c798?_0x3289df():U[_0x17cd9e(0x494)](X[_0x17cd9e(0x4f6)],{'title':_0x489bc7['t'](_0x17cd9e(0x4ac))},_0x3289df());}var Ni=Object[_0x3b22f(0x1ff)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x59ea5d,_0x624443,_0x3cef67,_0xeabd1e)=>{const _0x58dfad=_0x3b22f;for(var _0x3c8ba6=_0xeabd1e>0x1?void 0x0:_0xeabd1e?Ai(_0x624443,_0x3cef67):_0x624443,_0x1a520b=_0x59ea5d[_0x58dfad(0x291)]-0x1,_0x14e22a;_0x1a520b>=0x0;_0x1a520b--)(_0x14e22a=_0x59ea5d[_0x1a520b])&&(_0x3c8ba6=(_0xeabd1e?_0x14e22a(_0x624443,_0x3cef67,_0x3c8ba6):_0x14e22a(_0x3c8ba6))||_0x3c8ba6);return _0xeabd1e&&_0x3c8ba6&&Ni(_0x624443,_0x3cef67,_0x3c8ba6),_0x3c8ba6;},Se=(_0x22be0b,_0x38a26e)=>(_0x2db1c9,_0x5b0bba)=>_0x38a26e(_0x2db1c9,_0x5b0bba,_0x22be0b);exports[_0x3b22f(0x52f)]=class extends a['Disposable']{constructor(_0x569987,_0x1fb11e,_0x35d0a3,_0x26b0b1){const _0x4a807e=_0x3b22f;super(),d(this,_0x4a807e(0x4d5),new v[(_0x4a807e(0x502))](y['NOT_COLLAB'])),(this[_0x4a807e(0x340)]=_0x569987,this[_0x4a807e(0x36d)]=_0x1fb11e,this[_0x4a807e(0x397)]=_0x35d0a3,this[_0x4a807e(0x263)]=_0x26b0b1,this[_0x4a807e(0x3a0)](),this['_initStatusListener']());}[_0x3b22f(0x4f0)](){const _0x44f7ea=_0x3b22f;this['disposeWithMe'](this[_0x44f7ea(0x340)][_0x44f7ea(0x289)][_0x44f7ea(0x3de)](v[_0x44f7ea(0x3fe)](()=>{const _0x2139df=_0x44f7ea,_0x17ff28=this[_0x2139df(0x340)]['getFocusedUnit']();return _0x17ff28?this[_0x2139df(0x263)]['getCollabEntity$'](_0x17ff28['getUnitId']()):v['of'](null);}),v[_0x44f7ea(0x3fe)](_0x1e4e4f=>_0x1e4e4f?_0x1e4e4f['status$']:v['of'](y[_0x44f7ea(0x4eb)])))[_0x44f7ea(0x42c)](_0xd1d126=>{const _0x2c7033=_0x44f7ea;this[_0x2c7033(0x4d5)][_0x2c7033(0x52d)](_0xd1d126);}));}[_0x3b22f(0x3a0)](){const _0xff0234=_0x3b22f;this[_0xff0234(0x283)](this[_0xff0234(0x36d)][_0xff0234(0x25a)](N[_0xff0234(0x388)][_0xff0234(0x489)],()=>a[_0xff0234(0x234)](ji({'status$':this[_0xff0234(0x4d5)][_0xff0234(0x56e)]()}),this[_0xff0234(0x397)])));}},exports['DesktopCollaborationStatusDisplayController']=Li([Se(0x0,a[_0x3b22f(0x26b)]),Se(0x1,N[_0x3b22f(0x4c6)]),Se(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Se(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x322)]))],exports[_0x3b22f(0x52f)]);function ji(_0x4a3287){const {status$:_0x268bbb}=_0x4a3287;return function(){return U['createElement'](wt,{'status$':_0x268bbb});};}const ze=a[_0x3b22f(0x3cd)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x3b22f(0x246)],xi=(_0x1d02f9,_0x3e17f6,_0x38ab8e,_0x546875)=>{const _0x33913c=_0x3b22f;for(var _0x27ddad=_0x546875>0x1?void 0x0:_0x546875?Hi(_0x3e17f6,_0x38ab8e):_0x3e17f6,_0x525591=_0x1d02f9[_0x33913c(0x291)]-0x1,_0x41f358;_0x525591>=0x0;_0x525591--)(_0x41f358=_0x1d02f9[_0x525591])&&(_0x27ddad=(_0x546875?_0x41f358(_0x3e17f6,_0x38ab8e,_0x27ddad):_0x41f358(_0x27ddad))||_0x27ddad);return _0x546875&&_0x27ddad&&$i(_0x3e17f6,_0x38ab8e,_0x27ddad),_0x27ddad;},ee=(_0x4181d8,_0x3b989d)=>(_0x2763da,_0x11286e)=>_0x3b989d(_0x2763da,_0x11286e,_0x4181d8);exports[_0x3b22f(0x4f7)]=class extends a[_0x3b22f(0x398)]{constructor(_0x2be409,_0x40ed7e,_0x43aa6e,_0x2fe4a4,_0x278714,_0x18fc27){const _0x164883=_0x3b22f;super(),this[_0x164883(0x25d)]=_0x2be409,this['_logService']=_0x40ed7e,this[_0x164883(0x4b9)]=_0x43aa6e,this[_0x164883(0x522)]=_0x2fe4a4,this[_0x164883(0x2d9)]=_0x278714,_0x18fc27?_0x18fc27==null||_0x18fc27[_0x164883(0x487)]()['then'](()=>this[_0x164883(0x341)]()):(this[_0x164883(0x445)][_0x164883(0x320)](_0x164883(0x3ca),_0x164883(0x230)),this['_init']());}async[_0x3b22f(0x341)](){const _0x26c3fa=_0x3b22f,_0x451100=this['_urlService'][_0x26c3fa(0x422)](_0x26c3fa(0x59f)),_0x24d3e5=this[_0x26c3fa(0x25d)][_0x26c3fa(0x422)](_0x26c3fa(0x331));if(!_0x451100||!_0x24d3e5){this[_0x26c3fa(0x445)][_0x26c3fa(0x320)](_0x26c3fa(0x3ca),_0x26c3fa(0x34c));return;}switch(Number(_0x24d3e5)){case j['UNIVER_SHEET']:{const _0x240c0b=await this['_loadSheet'](_0x451100);this[_0x26c3fa(0x36a)](_0x240c0b);break;}case j[_0x26c3fa(0x332)]:{await this[_0x26c3fa(0x584)](_0x451100);break;}default:{this['_logService'][_0x26c3fa(0x49d)](_0x26c3fa(0x3ca),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x10fa00){const _0x5c6e12=_0x3b22f;await this[_0x5c6e12(0x442)](_0x10fa00),_0x10fa00['activeSheet$'][_0x5c6e12(0x3de)](v['takeUntil'](this[_0x5c6e12(0x2e1)]))[_0x5c6e12(0x42c)](_0x2b559f=>{const _0x1f0374=_0x5c6e12;_0x2b559f&&this[_0x1f0374(0x549)](_0x2b559f);}),this[_0x5c6e12(0x25d)][_0x5c6e12(0x4cb)][_0x5c6e12(0x3de)](v[_0x5c6e12(0x37c)](this[_0x5c6e12(0x2e1)]))['subscribe'](()=>this[_0x5c6e12(0x442)](_0x10fa00));}[_0x3b22f(0x549)](_0x204dcf,_0x31daac=!0x1){const _0x4249d7=_0x3b22f,_0x47effc=this[_0x4249d7(0x25d)]['getParam'](_0x4249d7(0x3ad));_0x204dcf[_0x4249d7(0x3b3)]()!==_0x47effc&&this[_0x4249d7(0x25d)][_0x4249d7(0x57f)]('subunit',_0x204dcf['getSheetId'](),_0x31daac);}async[_0x3b22f(0x442)](_0x2d9e02){const _0x512ca1=_0x3b22f;var _0x345365;const _0x1c3b2c=this[_0x512ca1(0x25d)][_0x512ca1(0x422)](_0x512ca1(0x3ad));if(!_0x1c3b2c||!_0x2d9e02[_0x512ca1(0x2f1)](_0x1c3b2c)){const _0x2d576f=_0x2d9e02['getUnhiddenWorksheets']()[0x0],_0x142243=_0x2d9e02[_0x512ca1(0x2f1)](_0x2d576f);if(!_0x142243)return;this[_0x512ca1(0x549)](_0x142243,!0x0),await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02[_0x512ca1(0x52b)](),'subUnitId':_0x2d576f});return;}((_0x345365=_0x2d9e02['getActiveSheet']())==null?void 0x0:_0x345365[_0x512ca1(0x3b3)]())!==_0x1c3b2c&&await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02['getUnitId'](),'subUnitId':_0x1c3b2c});}async['_loadSheet'](_0x4d4b80){const _0x4c738b=_0x3b22f;let _0x571fd8=0x0;const _0x3f2f46=await this[_0x4c738b(0x522)][_0x4c738b(0x4dd)](_0x4d4b80);return _0x3f2f46&&(_0x3f2f46[_0x4c738b(0x5eb)]||_0x3f2f46[_0x4c738b(0x3a2)][_0x4c738b(0x291)]!==0x0)&&(_0x571fd8=_0x3f2f46[_0x4c738b(0x3a8)]),_0x571fd8===0x0&&this[_0x4c738b(0x445)][_0x4c738b(0x320)](_0x4c738b(0x3ca),_0x4c738b(0x5a7)),this['_snapshotService'][_0x4c738b(0x243)](_0x4d4b80,_0x571fd8);}async['_loadDoc'](_0x968f7a){const _0x3fc017=_0x3b22f;let _0x3ff59f=0x0;const _0x502afe=await this['_localCacheService']['loadOfflineData'](_0x968f7a);return _0x502afe&&(_0x502afe[_0x3fc017(0x5eb)]||_0x502afe[_0x3fc017(0x3a2)][_0x3fc017(0x291)]!==0x0)&&(_0x3ff59f=_0x502afe['rev']),_0x3ff59f===0x0&&this[_0x3fc017(0x445)][_0x3fc017(0x320)](_0x3fc017(0x3ca),_0x3fc017(0x5a7)),this[_0x3fc017(0x2d9)]['loadDoc'](_0x968f7a,_0x3ff59f);}},exports[_0x3b22f(0x4f7)]=xi([ee(0x0,ze),ee(0x1,a[_0x3b22f(0x308)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x3b22f(0x5c6)](Wt[_0x3b22f(0x4b2)]))],exports['DataLoaderController']);var ki=Object[_0x3b22f(0x1ff)],Bi=Object[_0x3b22f(0x246)],Vi=(_0x547bdd,_0xe8de67,_0x4b39f0,_0x50c939)=>{const _0x48d6a6=_0x3b22f;for(var _0x24dc93=_0x50c939>0x1?void 0x0:_0x50c939?Bi(_0xe8de67,_0x4b39f0):_0xe8de67,_0x58c631=_0x547bdd[_0x48d6a6(0x291)]-0x1,_0x382dd9;_0x58c631>=0x0;_0x58c631--)(_0x382dd9=_0x547bdd[_0x58c631])&&(_0x24dc93=(_0x50c939?_0x382dd9(_0xe8de67,_0x4b39f0,_0x24dc93):_0x382dd9(_0x24dc93))||_0x24dc93);return _0x50c939&&_0x24dc93&&ki(_0xe8de67,_0x4b39f0,_0x24dc93),_0x24dc93;},at=(_0x40b4ef,_0x106097)=>(_0x2fbecc,_0x3f4ebb)=>_0x106097(_0x2fbecc,_0x3f4ebb,_0x40b4ef);const Wi=_0x3b22f(0x5ee),Fi=_0x3b22f(0x44a);let Ie=class extends a[_0x3b22f(0x4b0)]{constructor(_0x1ca05f,_0x298f35){const _0x4a3f69=_0x3b22f;super(),this[_0x4a3f69(0x340)]=_0x1ca05f,this[_0x4a3f69(0x266)]=_0x298f35,this[_0x4a3f69(0x341)]();}['_init'](){const _0x3ee5db=_0x3b22f;this['disposeWithMe'](this[_0x3ee5db(0x340)]['focused$'][_0x3ee5db(0x42c)](()=>{const _0x311a65=_0x3ee5db;var _0x5ccb6c;const _0x3eae23=this[_0x311a65(0x340)][_0x311a65(0x255)]();let _0x1bac01=(_0x5ccb6c=this[_0x311a65(0x266)][_0x311a65(0x504)](Wi))!=null?_0x5ccb6c:Fi;_0x3eae23 instanceof a['Workbook']&&(_0x1bac01=_0x3eae23[_0x311a65(0x366)]),document[_0x311a65(0x1eb)]=_0x1bac01;}));}};Ie=Vi([at(0x0,a[_0x3b22f(0x26b)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x3b22f(0x1ff)],Yi=Object[_0x3b22f(0x246)],Ki=(_0xf6c05e,_0x18f5e0,_0x466d8b,_0x415f20)=>{const _0x3f50af=_0x3b22f;for(var _0x270380=_0x415f20>0x1?void 0x0:_0x415f20?Yi(_0x18f5e0,_0x466d8b):_0x18f5e0,_0x1f43ed=_0xf6c05e[_0x3f50af(0x291)]-0x1,_0x5d2179;_0x1f43ed>=0x0;_0x1f43ed--)(_0x5d2179=_0xf6c05e[_0x1f43ed])&&(_0x270380=(_0x415f20?_0x5d2179(_0x18f5e0,_0x466d8b,_0x270380):_0x5d2179(_0x270380))||_0x270380);return _0x415f20&&_0x270380&&Gi(_0x18f5e0,_0x466d8b,_0x270380),_0x270380;},Le=(_0xefe9da,_0x24ddc3)=>(_0x182af4,_0x3cee86)=>_0x24ddc3(_0x182af4,_0x3cee86,_0xefe9da);let pe=class{constructor(_0x63eb80,_0x4626ef,_0x364540){const _0xdf8888=_0x3b22f;this['_configService']=_0x63eb80,this['_httpService']=_0x4626ef,this[_0xdf8888(0x41a)]=_0x364540,this['init']();}['init'](){const _0x8025a6=_0x3b22f;this['_httpService'][_0x8025a6(0x3ef)]({'priority':0x1,'interceptor':(_0x2a9e63,_0xf70e3e)=>_0xf70e3e(_0x2a9e63)['pipe'](v[_0x8025a6(0x56c)](async _0x3009bd=>{const _0x4b3252=_0x8025a6,_0x5981fd=_0x3009bd;if(_0x5981fd[_0x4b3252(0x3d2)]===0x191&&window[_0x4b3252(0x32d)](this[_0x4b3252(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x33bc44=window[_0x4b3252(0x5a9)](window[_0x4b3252(0x353)][_0x4b3252(0x412)]);window['location'][_0x4b3252(0x412)]=this[_0x4b3252(0x29c)]()+_0x4b3252(0x5c3)+_0x33bc44;}return _0x5981fd;}))});}[_0x3b22f(0x29c)](){const _0x1a93f6=_0x3b22f;var _0x5d2f3a,_0x35957f;const _0x45c509=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](mt),_0x2f534a=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](A);return(_0x35957f=(_0x5d2f3a=_0x2f534a==null?void 0x0:_0x2f534a['loginUrlKey'])!=null?_0x5d2f3a:_0x45c509)!=null?_0x35957f:es;}};pe=Ki([Le(0x0,a[_0x3b22f(0x5ad)]),Le(0x1,a['Inject'](P['HTTPService'])),Le(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)]))],pe);var Xi=Object[_0x3b22f(0x1ff)],qi=Object[_0x3b22f(0x246)],zi=(_0x34ff20,_0x432a77,_0x33ecff,_0x2709b4)=>{for(var _0xca2fdb=_0x2709b4>0x1?void 0x0:_0x2709b4?qi(_0x432a77,_0x33ecff):_0x432a77,_0x22ddb8=_0x34ff20['length']-0x1,_0x5df3d4;_0x22ddb8>=0x0;_0x22ddb8--)(_0x5df3d4=_0x34ff20[_0x22ddb8])&&(_0xca2fdb=(_0x2709b4?_0x5df3d4(_0x432a77,_0x33ecff,_0xca2fdb):_0x5df3d4(_0xca2fdb))||_0xca2fdb);return _0x2709b4&&_0xca2fdb&&Xi(_0x432a77,_0x33ecff,_0xca2fdb),_0xca2fdb;},ct=(_0x5bd9fb,_0x233ab8)=>(_0x53fa5b,_0x3df850)=>_0x233ab8(_0x53fa5b,_0x3df850,_0x5bd9fb);const Mt=_0x3b22f(0x211),Ji=_0x3b22f(0x1f2);exports[_0x3b22f(0x38b)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0xc80b97,_0x5bd7f7){const _0x133148=_0x3b22f;super(),this[_0x133148(0x3a9)]=_0xc80b97,this[_0x133148(0x266)]=_0x5bd7f7,this[_0x133148(0x551)]();}['_initMergeInterceptor'](){const _0x3bef95=_0x3b22f,_0x3d9ba5=this;this[_0x3bef95(0x283)](this[_0x3bef95(0x3a9)][_0x3bef95(0x3ef)]({'priority':0x3e7,'interceptor':P[_0x3bef95(0x5b2)]({'isMatch'(_0x3c780f){const _0x3e6c97=_0x3bef95;var _0x597ad9;if(_0x3c780f[_0x3e6c97(0x21b)]===_0x3e6c97(0x3d6)&&((_0x597ad9=_0x3c780f[_0x3e6c97(0x209)])!=null&&_0x597ad9[_0x3e6c97(0x30a)])){const {objectID:_0xd8b2a1,objectType:_0x344e27}=_0x3c780f[_0x3e6c97(0x209)][_0x3e6c97(0x30a)]||{};if(!_0xd8b2a1||_0x344e27===void 0x0)return!0x1;const _0x42df27=_0x3d9ba5[_0x3e6c97(0x413)]()+'/'+_0x344e27+_0x3e6c97(0x310)+_0xd8b2a1+_0x3e6c97(0x420);if(_0x3c780f[_0x3e6c97(0x5ab)]===_0x42df27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x19176d){const _0xd36113=_0x3bef95;var _0x1cd948;return(_0x1cd948=_0x19176d[_0xd36113(0x209)])==null?void 0x0:_0x1cd948[_0xd36113(0x30a)];},'mergeParamsToRequest'(_0x27e6ea,_0x93fc6e){const _0x519106=_0x3bef95,_0x2abffd=_0x3d9ba5[_0x519106(0x413)]()+_0x519106(0x53a),_0x250488=_0x27e6ea['reduce']((_0x5dccf1,_0x1114aa)=>{const _0x5c3cf8=_0x519106,{unitID:_0x51891a,objectID:_0x3f593e,objectType:_0x3e4c03,actions:_0x13a720}=_0x1114aa;return _0x5dccf1[_0x51891a]||(_0x5dccf1[_0x51891a]={}),_0x5dccf1[_0x51891a][_0x3f593e]||(_0x5dccf1[_0x51891a][_0x3f593e]={'objectID':_0x3f593e,'objectType':_0x3e4c03,'actions':[]}),_0x5dccf1[_0x51891a][_0x3f593e][_0x5c3cf8(0x2b2)][_0x5c3cf8(0x1ed)](..._0x13a720),_0x5dccf1;},{}),_0x43083b=[];for(const _0x283fed in _0x250488)for(const _0x9b6352 in _0x250488[_0x283fed]){const {actions:_0x51ec5e,objectType:_0x138ce0}=_0x250488[_0x283fed][_0x9b6352],_0x5c2b3e=[...new Set(_0x51ec5e)];_0x43083b[_0x519106(0x1ed)]({'unitID':_0x283fed,'objectID':_0x9b6352,'objectType':_0x138ce0,'actions':_0x5c2b3e});}return new P[(_0x519106(0x3ba))](_0x519106(0x3d6),_0x2abffd,{'headers':_0x93fc6e['headers'],'withCredentials':_0x93fc6e[_0x519106(0x203)],'responseType':_0x93fc6e[_0x519106(0x20e)],'body':{'requests':_0x43083b}});}},{'distributeResult'(_0x2c2376,_0x180ebe){const _0x34babb=_0x3bef95,{objectActions:_0x484a83}=_0x2c2376;return _0x180ebe[_0x34babb(0x57b)](_0x4efdad=>{const _0x3b4446=_0x34babb,{unitID:_0x4a6de7,objectID:_0x3cd83b,actions:_0x28f13e}=_0x4efdad,_0x6611f4=_0x484a83[_0x3b4446(0x5dc)](_0x39eada=>_0x39eada[_0x3b4446(0x40e)]===_0x4a6de7&&_0x39eada[_0x3b4446(0x205)]===_0x3cd83b),_0x31e5f2=_0x28f13e['map'](_0x43fbc4=>_0x6611f4==null?void 0x0:_0x6611f4[_0x3b4446(0x2b2)][_0x3b4446(0x5dc)](_0x375dc3=>_0x375dc3[_0x3b4446(0x4ff)]===_0x43fbc4))[_0x3b4446(0x3f9)](_0x316cce=>!!_0x316cce);return{'config':_0x4efdad,'result':{'actions':_0x31e5f2,'error':_0x2c2376[_0x3b4446(0x49d)]}};});}})}));}[_0x3b22f(0x413)](){const _0x324bc2=_0x3b22f;var _0x10af99,_0x269adc;const _0x219375=this['_configService'][_0x324bc2(0x504)](Mt),_0x5b046f=this[_0x324bc2(0x266)][_0x324bc2(0x504)](A);return(_0x269adc=(_0x10af99=_0x5b046f==null?void 0x0:_0x5b046f['authzUrl'])!=null?_0x10af99:_0x219375)!=null?_0x269adc:Ji;}async[_0x3b22f(0x254)](_0x3e0d05){const _0x31813c=_0x3b22f,_0x13b754=this[_0x31813c(0x413)]()+'/'+_0x3e0d05[_0x31813c(0x2c3)]+_0x31813c(0x429);return(await this[_0x31813c(0x3a9)][_0x31813c(0x221)](_0x13b754,{'body':_0x3e0d05}))['body'][_0x31813c(0x205)]||'';}async[_0x3b22f(0x3f5)](_0x17bc6f){const _0x482af1=_0x3b22f,_0x8f3ecc=this[_0x482af1(0x413)]()+_0x482af1(0x589);return(await this[_0x482af1(0x3a9)]['post'](_0x8f3ecc,{'body':_0x17bc6f}))[_0x482af1(0x30a)]['objects'];}async[_0x3b22f(0x36c)](_0x49dc67){const _0x601fc1=_0x3b22f,_0x167c19=this[_0x601fc1(0x413)]()+'/'+_0x49dc67['objectType']+_0x601fc1(0x310)+_0x49dc67[_0x601fc1(0x205)];await this[_0x601fc1(0x3a9)][_0x601fc1(0x511)](_0x167c19,{'body':_0x49dc67});}async[_0x3b22f(0x4d1)](_0x40ba96){const _0xea5957=_0x3b22f,_0x5d475a=this[_0xea5957(0x413)]()+'/'+_0x40ba96['objectType']+_0xea5957(0x310)+_0x40ba96[_0xea5957(0x205)]+_0xea5957(0x420);return(await this[_0xea5957(0x3a9)][_0xea5957(0x221)](_0x5d475a,{'body':_0x40ba96}))['body'][_0xea5957(0x2b2)];}async[_0x3b22f(0x3e0)](_0x163f37){const _0xe42f33=_0x3b22f,_0x48b494=this[_0xe42f33(0x413)]()+_0xe42f33(0x53a);return(await this['_HTTPService'][_0xe42f33(0x221)](_0x48b494,{'body':{'requests':_0x163f37}}))[_0xe42f33(0x30a)]['objectActions'];}async[_0x3b22f(0x1e6)](_0x3fe5c3){const _0x39ffe2=_0x3b22f,_0x32d447=this[_0x39ffe2(0x413)]()+'/'+_0x3fe5c3[_0x39ffe2(0x2c3)]+_0x39ffe2(0x5d8),_0xb41e5f=await this[_0x39ffe2(0x3a9)][_0x39ffe2(0x221)](_0x32d447,{'body':_0x3fe5c3});return{'roles':_0xb41e5f['body'][_0x39ffe2(0x57a)],'actions':_0xb41e5f[_0x39ffe2(0x30a)][_0x39ffe2(0x2b2)]};}async['deleteCollaborator'](_0x464ca6){const _0x5510cc=_0x3b22f,_0x14a3f6=this['_getAPIPrefixPath']()+_0x5510cc(0x4fc);await this[_0x5510cc(0x3a9)][_0x5510cc(0x2cc)](_0x14a3f6,{'params':{'collaboratorID':_0x464ca6[_0x5510cc(0x3da)],'objectID':_0x464ca6[_0x5510cc(0x205)],'unitID':_0x464ca6['unitID']}});}async[_0x3b22f(0x24b)](_0x41549c){const _0x4c7af2=_0x3b22f,_0x3849bc=this['_getAPIPrefixPath']()+_0x4c7af2(0x4fc);await this['_HTTPService']['patch'](_0x3849bc,{'body':_0x41549c});}async[_0x3b22f(0x245)](_0x107054){const _0x26cea6=_0x3b22f,_0x36d6c8=this[_0x26cea6(0x413)]()+_0x26cea6(0x4fc);await this['_HTTPService'][_0x26cea6(0x221)](_0x36d6c8,{'body':_0x107054});}async['listCollaborators'](_0x3f5ff2){const _0x1c2e4a=_0x3b22f,_0x5e220d=this[_0x1c2e4a(0x413)]()+_0x1c2e4a(0x4fc);return(await this['_HTTPService'][_0x1c2e4a(0x34d)](_0x5e220d,{'params':{'objectID':_0x3f5ff2[_0x1c2e4a(0x205)],'unitID':_0x3f5ff2[_0x1c2e4a(0x40e)]}}))[_0x1c2e4a(0x30a)][_0x1c2e4a(0x2bb)];}async['putCollaborators'](_0x278dae){const _0x1a4b02=_0x3b22f,_0x21ba64=this['_getAPIPrefixPath']()+_0x1a4b02(0x4fc);await this[_0x1a4b02(0x3a9)][_0x1a4b02(0x511)](_0x21ba64,{'body':_0x278dae});}},exports[_0x3b22f(0x38b)]=zi([ct(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),ct(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x5ad)]))],exports['AuthzIoHttpService']);var Zi=Object[_0x3b22f(0x1ff)],Qi=Object['getOwnPropertyDescriptor'],en=(_0x22a0ef,_0x284697,_0x54a718,_0x5a2dce)=>{const _0x5329f5=_0x3b22f;for(var _0x2e14f5=_0x5a2dce>0x1?void 0x0:_0x5a2dce?Qi(_0x284697,_0x54a718):_0x284697,_0x132233=_0x22a0ef[_0x5329f5(0x291)]-0x1,_0xcc3847;_0x132233>=0x0;_0x132233--)(_0xcc3847=_0x22a0ef[_0x132233])&&(_0x2e14f5=(_0x5a2dce?_0xcc3847(_0x284697,_0x54a718,_0x2e14f5):_0xcc3847(_0x2e14f5))||_0x2e14f5);return _0x5a2dce&&_0x2e14f5&&Zi(_0x284697,_0x54a718,_0x2e14f5),_0x2e14f5;},tn=(_0x16d48e,_0x327252)=>(_0xc3829e,_0x4c3c05)=>_0x327252(_0xc3829e,_0x4c3c05,_0x16d48e);let Ce=class{constructor(_0x2caa81){const _0x499d40=_0x3b22f;this[_0x499d40(0x270)]=_0x2caa81,this['_initRequestHeader']();}[_0x3b22f(0x4d2)](){const _0x59c2bb=_0x3b22f;this[_0x59c2bb(0x270)][_0x59c2bb(0x3ef)]({'interceptor':(_0x1035c5,_0x6819a7)=>{const _0x525a5e=_0x59c2bb,_0x1f4488=_0x1035c5['headers'],_0x795cf1=Ft['getAttachHeader']();return _0x795cf1&&_0x1f4488[_0x525a5e(0x305)](_0x525a5e(0x326),_0x795cf1),_0x6819a7(_0x1035c5);}});}};Ce=en([tn(0x0,a[_0x3b22f(0x492)](P['HTTPService']))],Ce);var sn=Object['defineProperty'],nn=Object['getOwnPropertyDescriptor'],rn=(_0x330bb7,_0x49de4e,_0x29a0d2,_0x31fcc3)=>{for(var _0x1861cf=_0x31fcc3>0x1?void 0x0:_0x31fcc3?nn(_0x49de4e,_0x29a0d2):_0x49de4e,_0x4a2bd6=_0x330bb7['length']-0x1,_0x4720be;_0x4a2bd6>=0x0;_0x4a2bd6--)(_0x4720be=_0x330bb7[_0x4a2bd6])&&(_0x1861cf=(_0x31fcc3?_0x4720be(_0x49de4e,_0x29a0d2,_0x1861cf):_0x4720be(_0x1861cf))||_0x1861cf);return _0x31fcc3&&_0x1861cf&&sn(_0x49de4e,_0x29a0d2,_0x1861cf),_0x1861cf;},je=(_0x2793f5,_0x251ca5)=>(_0x460939,_0xeef283)=>_0x251ca5(_0x460939,_0xeef283,_0x2793f5);const on=['image/png','image/jpeg',_0x3b22f(0x5ca),'image/gif',_0x3b22f(0x1e2)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3b22f(0x31f),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x3b22f(0x3dc);exports[_0x3b22f(0x4a3)]=class{constructor(_0x4b858e,_0x32429e,_0x3e2541){const _0x2ea17e=_0x3b22f;d(this,_0x2ea17e(0x3c2),0x0),d(this,'_change$',new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2ea17e(0x503),new Map()),(this[_0x2ea17e(0x270)]=_0x4b858e,this['_configService']=_0x32429e,this[_0x2ea17e(0x340)]=_0x3e2541);}[_0x3b22f(0x273)](_0x21d25a){const _0x4c9643=_0x3b22f;this[_0x4c9643(0x3c2)]=_0x21d25a,this[_0x4c9643(0x48a)]['next'](_0x21d25a);}[_0x3b22f(0x5cd)](_0x5ce8f3,_0xfe80e6){const _0x4b7f4a=_0x3b22f;if(_0xfe80e6===L[_0x4b7f4a(0x5a1)]['BASE64']){const _0x92f031=new Image();return _0x92f031[_0x4b7f4a(0x381)]=_0x5ce8f3,_0x92f031;}return this[_0x4b7f4a(0x503)][_0x4b7f4a(0x34d)](_0x5ce8f3);}[_0x3b22f(0x3e3)](_0x2dc026,_0x3ab81d,_0x3bb5a7){const _0x4034c6=_0x3b22f;_0x3ab81d===L[_0x4034c6(0x5a1)][_0x4034c6(0x43f)]||_0x3bb5a7==null||this[_0x4034c6(0x503)][_0x4034c6(0x305)](_0x2dc026,_0x3bb5a7);}async[_0x3b22f(0x34a)](_0x30fc7e){const _0x31d148=_0x3b22f;try{const _0x469ac0=this[_0x31d148(0x406)](this[_0x31d148(0x33a)](),''+_0x30fc7e),_0x40a9fc=(await this[_0x31d148(0x270)]['get'](_0x469ac0))[_0x31d148(0x30a)];if(_0x40a9fc['error']&&_0x40a9fc[_0x31d148(0x49d)][_0x31d148(0x49f)]===It['OK']){const _0x1a2be4=new URL(_0x40a9fc['url'],this[_0x31d148(0x2db)]())[_0x31d148(0x4e2)]();return Promise[_0x31d148(0x53d)](_0x1a2be4);}return Promise['reject'](_0x40a9fc[_0x31d148(0x49d)]);}catch(_0x372f75){return Promise[_0x31d148(0x23c)](_0x372f75);}}async[_0x3b22f(0x28a)](_0x1497fc){const _0x5ee6fb=_0x3b22f;let _0x3aa8ae='';if(!on[_0x5ee6fb(0x565)](_0x1497fc[_0x5ee6fb(0x331)]))return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x2d4)]));if(_0x1497fc[_0x5ee6fb(0x45a)]>an)return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x4fa)]));try{const _0x397941=new FormData();_0x397941[_0x5ee6fb(0x1ea)](_0x5ee6fb(0x2a2),_0x1497fc);const _0xb73cf7=this[_0x5ee6fb(0x340)]['getFocusedUnit'](),_0x19d3a3=_0xb73cf7==null?void 0x0:_0xb73cf7[_0x5ee6fb(0x52b)]();if(!_0x19d3a3)throw new Error(_0x5ee6fb(0x555));const _0x47cb6f=this[_0x5ee6fb(0x4ce)]()+'?size='+_0x1497fc[_0x5ee6fb(0x45a)][_0x5ee6fb(0x4e2)]()+'&source='+pt[_0x5ee6fb(0x4bd)]+_0x5ee6fb(0x4a6)+encodeURIComponent(_0x19d3a3),_0x5c0540=await(await fetch(_0x47cb6f,{'method':_0x5ee6fb(0x3d6),'body':_0x397941}))[_0x5ee6fb(0x364)]();if(typeof _0x5c0540[_0x5ee6fb(0x33d)]!=_0x5ee6fb(0x40a))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));_0x3aa8ae=_0x5c0540[_0x5ee6fb(0x33d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));}return new Promise((_0x23aaaf,_0x48577c)=>{const _0x33c446=_0x5ee6fb,_0x1a0447=new FileReader();_0x1a0447[_0x33c446(0x48c)](_0x1497fc),_0x1a0447[_0x33c446(0x586)]=_0x4d18e8=>{const _0x3bd7f7=_0x33c446;var _0x4dd9f0;const _0x14b964=(_0x4dd9f0=_0x4d18e8['target'])==null?void 0x0:_0x4dd9f0['result'];if(_0x14b964==null){this[_0x3bd7f7(0x2e2)](),_0x48577c(new Error(L[_0x3bd7f7(0x57d)][_0x3bd7f7(0x5e9)]));return;}const _0x99265=a[_0x3bd7f7(0x27d)]['generateRandomId'](0x6);_0x23aaaf({'imageId':_0x99265,'imageSourceType':L[_0x3bd7f7(0x5a1)]['UUID'],'source':_0x3aa8ae,'base64Cache':_0x14b964,'status':L['ImageUploadStatusType']['SUCCUSS']}),this[_0x3bd7f7(0x2e2)]();};});}[_0x3b22f(0x4ce)](){const _0x357c87=_0x3b22f;var _0x4a1fba,_0x1fd33f;const _0x17e8b9=this[_0x357c87(0x266)]['getConfig'](cn),_0x2fe597=this[_0x357c87(0x266)][_0x357c87(0x504)](A);return(_0x1fd33f=(_0x4a1fba=_0x2fe597==null?void 0x0:_0x2fe597[_0x357c87(0x2ef)])!=null?_0x4a1fba:_0x17e8b9)!=null?_0x1fd33f:ln;}[_0x3b22f(0x33a)](){const _0x170805=_0x3b22f;var _0x5311b1,_0x27af7c;const _0x48c619=this[_0x170805(0x266)][_0x170805(0x504)](hn),_0x514c21=this[_0x170805(0x266)][_0x170805(0x504)](A);return(_0x27af7c=(_0x5311b1=_0x514c21==null?void 0x0:_0x514c21[_0x170805(0x418)])!=null?_0x5311b1:_0x48c619)!=null?_0x27af7c:_n;}[_0x3b22f(0x2db)](){const _0x3d0d13=_0x3b22f;var _0x3908d9;const _0x2a5782=this[_0x3d0d13(0x266)][_0x3d0d13(0x504)](A);return(_0x3908d9=_0x2a5782==null?void 0x0:_0x2a5782['downloadEndpointUrl'])!=null?_0x3908d9:location[_0x3d0d13(0x2ee)];}[_0x3b22f(0x406)](_0x3e934c,_0x4cea30){const _0xcf549=_0x3b22f;return _0x3e934c['replace'](_0xcf549(0x35f),_0x4cea30);}[_0x3b22f(0x2e2)](){const _0x3959f7=_0x3b22f;this[_0x3959f7(0x3c2)]-=0x1,this[_0x3959f7(0x48a)][_0x3959f7(0x52d)](this[_0x3959f7(0x3c2)]);}},exports[_0x3b22f(0x4a3)]=rn([je(0x0,a['Inject'](P[_0x3b22f(0x5ae)])),je(0x1,a['IConfigService']),je(0x2,a[_0x3b22f(0x492)](a['IUniverInstanceService']))],exports[_0x3b22f(0x4a3)]);var un=Object[_0x3b22f(0x1ff)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x463d24,_0x3b3c83,_0x1e2269,_0x2d691e)=>{const _0x4c3133=_0x3b22f;for(var _0x49b87a=_0x2d691e>0x1?void 0x0:_0x2d691e?dn(_0x3b3c83,_0x1e2269):_0x3b3c83,_0x57c7e6=_0x463d24[_0x4c3133(0x291)]-0x1,_0x1c1659;_0x57c7e6>=0x0;_0x57c7e6--)(_0x1c1659=_0x463d24[_0x57c7e6])&&(_0x49b87a=(_0x2d691e?_0x1c1659(_0x3b3c83,_0x1e2269,_0x49b87a):_0x1c1659(_0x49b87a))||_0x49b87a);return _0x2d691e&&_0x49b87a&&un(_0x3b3c83,_0x1e2269,_0x49b87a),_0x49b87a;},he=(_0x2dac19,_0x2f705e)=>(_0x1adeed,_0x5905ec)=>_0x2f705e(_0x1adeed,_0x5905ec,_0x2dac19);let Ee=class extends a[_0x3b22f(0x398)]{constructor(_0x5707de,_0x4251e3,_0x28c484,_0x57026b,_0x5afd59){const _0x462a70=_0x3b22f;super(),this['_injector']=_0x5707de,this['_univerInstanceService']=_0x4251e3,this[_0x462a70(0x444)]=_0x28c484,this[_0x462a70(0x1ef)]=_0x57026b,this[_0x462a70(0x316)]=_0x5afd59,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x3b22f(0x5ec)](){const _0x48a042=_0x3b22f,_0x320335=async _0x348988=>{const _0xc20541=_0x2c53;(await this[_0xc20541(0x1ef)][_0xc20541(0x578)](_0x348988))[_0xc20541(0x3b5)][_0xc20541(0x3de)](E['filter'](_0x378db6=>_0x378db6[_0xc20541(0x3cc)]===_[_0xc20541(0x44c)]['SHOULD_CLOSE_CONN']),E[_0xc20541(0x37c)](this[_0xc20541(0x2e1)]))[_0xc20541(0x42c)](_0x27631c=>{const _0x18c2a3=_0xc20541,_0x547b7d=_0x27631c,{reason:_0x3e8662}=_0x547b7d[_0x18c2a3(0x45b)];this[_0x18c2a3(0x397)][_0x18c2a3(0x34d)](N[_0x18c2a3(0x2e3)])[_0x18c2a3(0x224)]({'type':X[_0x18c2a3(0x5b4)][_0x18c2a3(0x460)],'content':this[_0x18c2a3(0x316)]['t'](_0x18c2a3(0x21f))+'('+_0x3e8662+')'}),this[_0x18c2a3(0x444)]['updatePermissionPoint'](new C[(_0x18c2a3(0x5d2))](_0x348988)['id'],!0x1),this[_0x18c2a3(0x1ef)][_0x18c2a3(0x3c6)](_0x348988);});};v[_0x48a042(0x2c4)](this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x3c0)]),this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x332)]))[_0x48a042(0x3de)](E[_0x48a042(0x57b)](_0x3015d4=>_0x3015d4[_0x48a042(0x52b)]()),E['filter'](_0xe3f8bd=>!a[_0x48a042(0x3a4)](_0xe3f8bd)),E[_0x48a042(0x37c)](this[_0x48a042(0x2e1)]))[_0x48a042(0x42c)](_0xd498ff=>{_0x320335(_0xd498ff);});}[_0x3b22f(0x244)](){const _0x47b57c=_0x3b22f,_0x18d24d=async _0x3b9da9=>{const _0x465926=_0x2c53;(await this[_0x465926(0x1ef)]['requireSession'](_0x3b9da9))[_0x465926(0x3b5)][_0x465926(0x3de)](E[_0x465926(0x3f9)](_0x249a72=>_0x249a72[_0x465926(0x3cc)]===_[_0x465926(0x44c)][_0x465926(0x21e)]),E[_0x465926(0x37c)](this[_0x465926(0x2e1)]))['subscribe'](_0x2439ef=>{const _0x5cb680=_0x465926,_0x3d1697=_0x2439ef,{objectId:_0x33c6ca}=_0x3d1697[_0x5cb680(0x45b)],_0x3ed512=this['_injector']['get'](te[_0x5cb680(0x26c)]);_0x33c6ca===_0x3b9da9?_0x3ed512[_0x5cb680(0x216)](_0x3b9da9):_0x3ed512['refreshPermission'](_0x3b9da9,_0x33c6ca);});};v[_0x47b57c(0x2c4)](this[_0x47b57c(0x340)][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x3c0)]),this['_univerInstanceService'][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x332)]))[_0x47b57c(0x3de)](E[_0x47b57c(0x57b)](_0x2f34e7=>_0x2f34e7[_0x47b57c(0x52b)]()),E['filter'](_0x14ec5c=>!a[_0x47b57c(0x3a4)](_0x14ec5c)),E[_0x47b57c(0x37c)](this['dispose$']))[_0x47b57c(0x42c)](_0xf2bf68=>{_0x18d24d(_0xf2bf68);});}};Ee=Sn([he(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),he(0x1,a[_0x3b22f(0x26b)]),he(0x2,a[_0x3b22f(0x300)]),he(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)])),he(0x4,a[_0x3b22f(0x492)](a['LocaleService']))],Ee);var vn=Object[_0x3b22f(0x1ff)],fn=Object[_0x3b22f(0x246)],gn=(_0x5e2741,_0x6fa5f9,_0x1b1822,_0x4e7107)=>{for(var _0xd2eb7c=_0x4e7107>0x1?void 0x0:_0x4e7107?fn(_0x6fa5f9,_0x1b1822):_0x6fa5f9,_0x12b3fc=_0x5e2741['length']-0x1,_0x3c8bcc;_0x12b3fc>=0x0;_0x12b3fc--)(_0x3c8bcc=_0x5e2741[_0x12b3fc])&&(_0xd2eb7c=(_0x4e7107?_0x3c8bcc(_0x6fa5f9,_0x1b1822,_0xd2eb7c):_0x3c8bcc(_0xd2eb7c))||_0xd2eb7c);return _0x4e7107&&_0xd2eb7c&&vn(_0x6fa5f9,_0x1b1822,_0xd2eb7c),_0xd2eb7c;},lt=(_0xf6aee6,_0x2b3991)=>(_0x80df5,_0x1b2b73)=>_0x2b3991(_0x80df5,_0x1b2b73,_0xf6aee6);exports[_0x3b22f(0x55f)]=class{constructor(_0x54975b,_0x282a0a){const _0x4e38e4=_0x3b22f;this[_0x4e38e4(0x266)]=_0x54975b,this[_0x4e38e4(0x270)]=_0x282a0a;}async[_0x3b22f(0x524)](_0x18b78a,_0x4d72e1){const _0x162694=_0x3b22f;var _0x2c333b;const {unitID:_0x475c4e,type:_0x515a4a,revision:_0x2cf1d7=0x0}=_0x4d72e1,_0x46d1da=this[_0x162694(0x531)]()+'/'+_0x515a4a+_0x162694(0x37a)+_0x475c4e+_0x162694(0x208)+_0x2cf1d7,_0x5a3d43=(await this[_0x162694(0x270)][_0x162694(0x34d)](_0x46d1da))[_0x162694(0x30a)],_0x39ebba=(_0x2c333b=_0x5a3d43['snapshot'])==null?void 0x0:_0x2c333b[_0x162694(0x22a)];if(_0x39ebba){const _0x4ee1e3=_0x39ebba==null?void 0x0:_0x39ebba['originalMeta'],_0x572cb1=_['textEncoder']['encode'](_['b64DecodeUnicode'](_0x4ee1e3));_0x39ebba[_0x162694(0x54b)]=_0x572cb1,Object[_0x162694(0x54f)](_0x39ebba[_0x162694(0x4dc)])[_0x162694(0x339)](([,_0x4a1a07])=>{const _0xf8c526=_0x162694,_0x11ad4f=_0x4a1a07[_0xf8c526(0x54b)],_0x106d18=_[_0xf8c526(0x2a4)][_0xf8c526(0x21c)](_[_0xf8c526(0x274)](_0x11ad4f));_0x4a1a07[_0xf8c526(0x54b)]=_0x106d18;});}return _0x5a3d43;}async[_0x3b22f(0x537)](_0x100664,_0x5d7b69){const _0x56c01e=_0x3b22f,{unitID:_0x2f5256,type:_0x4cea0b,blockID:_0x38c0e6}=_0x5d7b69,_0x945b77=this[_0x56c01e(0x451)]()+'/'+_0x4cea0b+_0x56c01e(0x37a)+_0x2f5256+_0x56c01e(0x530)+_0x38c0e6;return(await this[_0x56c01e(0x270)][_0x56c01e(0x34d)](_0x945b77))[_0x56c01e(0x30a)];}async[_0x3b22f(0x20c)](_0x1784e3,_0x3c949f){const _0x1a6bf3=_0x3b22f,{unitID:_0xc7ecd6,type:_0x5547cd,blockID:_0x18ccc7}=_0x3c949f,_0x29d934=this[_0x1a6bf3(0x451)]()+_0x1a6bf3(0x530)+_0x5547cd+'/unit/'+_0xc7ecd6+_0x1a6bf3(0x530)+_0x18ccc7;return(await this[_0x1a6bf3(0x270)][_0x1a6bf3(0x34d)](_0x29d934))[_0x1a6bf3(0x30a)];}async[_0x3b22f(0x5c2)](_0x4022f3,_0x5c316e){const _0x516623=_0x3b22f,{unitID:_0x4b8248,type:_0x1dba33,from:_0x529d11,to:_0x3f033c}=_0x5c316e,_0x3eb510=this[_0x516623(0x451)]()+'/'+_0x1dba33+'/unit/'+_0x4b8248+_0x516623(0x4c0)+_0x529d11+'&to='+_0x3f033c;return(await this['_httpService'][_0x516623(0x34d)](_0x3eb510))[_0x516623(0x30a)];}[_0x3b22f(0x531)](){const _0x24e0d7=_0x3b22f;var _0x159de9;return(_0x159de9=this[_0x24e0d7(0x266)][_0x24e0d7(0x504)](_t))!=null?_0x159de9:this[_0x24e0d7(0x451)]();}[_0x3b22f(0x451)](){const _0x4daa0a=_0x3b22f;var _0x3762d5,_0x3f139a;const _0x15b4a1=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](ht),_0x5793ce=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](A);return(_0x3f139a=(_0x3762d5=_0x5793ce==null?void 0x0:_0x5793ce['snapshotServerUrl'])!=null?_0x3762d5:_0x15b4a1)!=null?_0x3f139a:Gt;}async['getResourcesRequest'](_0x510288,_0x5ccc1a){const _0x1f5f61=_0x3b22f,_0x1d301c=_0x1f5f61(0x501)+_0x5ccc1a[_0x1f5f61(0x331)]+_0x1f5f61(0x37a)+_0x5ccc1a['unitID']+_0x1f5f61(0x348);return(await this[_0x1f5f61(0x270)]['get'](_0x1d301c,{'params':{'resourceId':JSON[_0x1f5f61(0x56d)](_0x5ccc1a[_0x1f5f61(0x2d6)])}}))[_0x1f5f61(0x30a)];}[_0x3b22f(0x521)](){const _0x142806=_0x3b22f;throw new Error(_0x142806(0x27f));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b22f(0x585)](){const _0x5b75d5=_0x3b22f;throw new Error(_0x5b75d5(0x27f));}[_0x3b22f(0x36b)](){const _0x50de2c=_0x3b22f;throw new Error(_0x50de2c(0x27f));}},exports[_0x3b22f(0x55f)]=gn([lt(0x0,a[_0x3b22f(0x5ad)]),lt(0x1,a['Inject'](P[_0x3b22f(0x5ae)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x3b22f(0x1ff)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5aaa96,_0x46e492,_0x85ef45,_0x3ae3f5)=>{const _0x3d34ae=_0x3b22f;for(var _0x454548=_0x3ae3f5>0x1?void 0x0:_0x3ae3f5?In(_0x46e492,_0x85ef45):_0x46e492,_0x3a9c53=_0x5aaa96[_0x3d34ae(0x291)]-0x1,_0x370e12;_0x3a9c53>=0x0;_0x3a9c53--)(_0x370e12=_0x5aaa96[_0x3a9c53])&&(_0x454548=(_0x3ae3f5?_0x370e12(_0x46e492,_0x85ef45,_0x454548):_0x370e12(_0x454548))||_0x454548);return _0x3ae3f5&&_0x454548&&mn(_0x46e492,_0x85ef45,_0x454548),_0x454548;},_e=(_0x5cc016,_0x2bcba2)=>(_0x36cd5c,_0x179b2f)=>_0x2bcba2(_0x36cd5c,_0x179b2f,_0x5cc016);let Be=class extends a[_0x3b22f(0x213)]{constructor(_0x3a8daa,_0x20198b,_0x2d784d,_0x3f4208,_0xf0e6bd){super(_0x3a8daa,_0x20198b,_0x2d784d),this['_transformService']=_0x3f4208,this['_logService']=_0xf0e6bd;}[_0x3b22f(0x2f3)](_0x3bb3ac,_0x1905c1){const _0x3b91a1=_0x3b22f,_0xfa06a2=this[_0x3b91a1(0x2f7)](_0x3bb3ac);if(_0xfa06a2)try{const _0x295f63=this[_0x3b91a1(0x55c)](_0xfa06a2,_0x1905c1);this[_0x3b91a1(0x46c)](_0x3bb3ac,_0x295f63);}catch(_0x3b3865){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3b3865),this[_0x3b91a1(0x46b)](_0x3bb3ac);}const _0x2d6d77=this[_0x3b91a1(0x210)](_0x3bb3ac);if(_0x2d6d77)try{const _0x155c03=this[_0x3b91a1(0x55c)](_0x2d6d77,_0x1905c1);this[_0x3b91a1(0x5e5)](_0x3bb3ac,_0x155c03);}catch(_0xae406){this[_0x3b91a1(0x445)]['error'](_0xae406),this[_0x3b91a1(0x256)](_0x3bb3ac);}}['_clearUndo'](_0x161c70){const _0xa84b19=_0x3b22f,_0x247985=this[_0xa84b19(0x2f7)](_0x161c70);_0x247985&&(_0x247985[_0xa84b19(0x291)]=0x0,this[_0xa84b19(0x200)]());}[_0x3b22f(0x256)](_0x5e807f){const _0x15679b=_0x3b22f,_0x3e1141=this[_0x15679b(0x210)](_0x5e807f);_0x3e1141&&(_0x3e1141[_0x15679b(0x291)]=0x0,this[_0x15679b(0x200)]());}[_0x3b22f(0x46c)](_0x2bdf43,_0x4aabac){const _0x180e1d=_0x3b22f;this['_undoStacks']['set'](_0x2bdf43,_0x4aabac),this[_0x180e1d(0x200)]();}[_0x3b22f(0x5e5)](_0x3fbfeb,_0x5a4dd2){const _0x15455b=_0x3b22f;this[_0x15455b(0x1e4)][_0x15455b(0x305)](_0x3fbfeb,_0x5a4dd2),this[_0x15455b(0x200)]();}['_transformStack'](_0x4ed192,_0x2b2ea2){const _0xc14208=_0x3b22f,_0x7ddaa3=[];let _0xe9845a=_0x2b2ea2,_0x3e9a2e=_0x2b2ea2;for(let _0x5edace=_0x4ed192[_0xc14208(0x291)]-0x1;_0x5edace>=0x0;_0x5edace--){const {unitID:_0x249778,undoMutations:_0x27e285,redoMutations:_0x5d1adf}=_0x4ed192[_0x5edace],_0x2e814b=this[_0xc14208(0x294)][_0xc14208(0x261)](_0xe9845a,_0x27e285),_0x40c08d=this['_transformService'][_0xc14208(0x261)](_0x3e9a2e,_0x5d1adf);if(_[_0xc14208(0x4bb)](_0x2e814b)||_[_0xc14208(0x4bb)](_0x40c08d)){this[_0xc14208(0x445)]['error']('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e814b,_0x40c08d);break;}_0xe9845a=_0x2e814b['c1Prime'],_0x3e9a2e=_0x40c08d[_0xc14208(0x5d4)],_0x7ddaa3[_0xc14208(0x1ed)]({'unitID':_0x249778,'undoMutations':_0x2e814b[_0xc14208(0x2e8)],'redoMutations':_0x40c08d[_0xc14208(0x2e8)]});}return _0x7ddaa3[_0xc14208(0x1e5)]();}};Be=pn([_e(0x0,a[_0x3b22f(0x26b)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x3b22f(0x510)]),_e(0x3,_[_0x3b22f(0x378)]),_e(0x4,a[_0x3b22f(0x308)])],Be);class Nt extends a[_0x3b22f(0x398)]{constructor(){const _0x39b33c=_0x3b22f;super(),d(this,_0x39b33c(0x4cb)),this['urlChange$']=v[_0x39b33c(0x2b9)](window,_0x39b33c(0x27b))['pipe'](v[_0x39b33c(0x37c)](this[_0x39b33c(0x2e1)]),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x3b22f(0x57f)](_0x328d38,_0x511fae,_0x254684=!0x1){const _0x26da11=_0x3b22f,_0x10a5d9=new URL(window[_0x26da11(0x353)]['href']);_0x10a5d9[_0x26da11(0x498)][_0x26da11(0x305)](_0x328d38,_0x511fae),_0x254684?window[_0x26da11(0x4e7)]['replaceState']('','',_0x10a5d9[_0x26da11(0x4e2)]()):window[_0x26da11(0x4e7)][_0x26da11(0x354)]('','',_0x10a5d9[_0x26da11(0x4e2)]());}[_0x3b22f(0x297)](_0x491e9e,_0x5a74e7=!0x1){const _0x1dd205=_0x3b22f,_0x46d3d7=new URL(window[_0x1dd205(0x353)][_0x1dd205(0x412)]);_0x46d3d7[_0x1dd205(0x498)][_0x1dd205(0x2cc)](_0x491e9e),_0x5a74e7?window[_0x1dd205(0x4e7)]['replaceState']('','',_0x46d3d7[_0x1dd205(0x4e2)]()):window['history'][_0x1dd205(0x354)]('','',_0x46d3d7[_0x1dd205(0x4e2)]());}[_0x3b22f(0x422)](_0x4435c1){const _0x922b4f=_0x3b22f;var _0x2f7033;return(_0x2f7033=new URL(window[_0x922b4f(0x353)][_0x922b4f(0x412)])[_0x922b4f(0x498)]['get'](_0x4435c1))!=null?_0x2f7033:void 0x0;}}var At=Object[_0x3b22f(0x1ff)],Cn=Object[_0x3b22f(0x246)],En=(_0x202534,_0x16e8f7,_0x57d077)=>_0x16e8f7 in _0x202534?At(_0x202534,_0x16e8f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d077}):_0x202534[_0x16e8f7]=_0x57d077,bn=(_0x3b4d89,_0x198f3b,_0x4745a7,_0x97812f)=>{for(var _0x5acd03=_0x97812f>0x1?void 0x0:_0x97812f?Cn(_0x198f3b,_0x4745a7):_0x198f3b,_0xe2ff66=_0x3b4d89['length']-0x1,_0x59d6c0;_0xe2ff66>=0x0;_0xe2ff66--)(_0x59d6c0=_0x3b4d89[_0xe2ff66])&&(_0x5acd03=(_0x97812f?_0x59d6c0(_0x198f3b,_0x4745a7,_0x5acd03):_0x59d6c0(_0x5acd03))||_0x5acd03);return _0x97812f&&_0x5acd03&&At(_0x198f3b,_0x4745a7,_0x5acd03),_0x5acd03;},ve=(_0x4efbeb,_0xefecb6)=>(_0x514fd2,_0x2936fa)=>_0xefecb6(_0x514fd2,_0x2936fa,_0x4efbeb),Tn=(_0x49b416,_0x268150,_0x1ae4f7)=>En(_0x49b416,_0x268150+'',_0x1ae4f7);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b22f(0x54c)]=class extends a['Plugin']{constructor(_0x2b7c2f=ts,_0x241d51,_0x16a2ac,_0x90128,_0x395b1c){const _0x19b695=_0x3b22f;super(),this[_0x19b695(0x293)]=_0x2b7c2f,this[_0x19b695(0x445)]=_0x241d51,this['_renderManagerService']=_0x16a2ac,this['_injector']=_0x90128,this['_configService']=_0x395b1c;const {..._0x1e968e}=this[_0x19b695(0x293)];this[_0x19b695(0x266)][_0x19b695(0x41f)](A,_0x1e968e);}[_0x3b22f(0x49e)](){const _0x577a6d=_0x3b22f;this['_registerDependencies'](),a[_0x577a6d(0x4ed)](this[_0x577a6d(0x397)],[[ie],[exports[_0x577a6d(0x4f7)]],[Ee]]);}[_0x3b22f(0x4d3)](){const _0x4748fa=_0x3b22f;a['touchDependencies'](this[_0x4748fa(0x397)],[[Ie]]);}['onRendered'](){const _0x6c8a25=_0x3b22f;this[_0x6c8a25(0x20a)]();}[_0x3b22f(0x4f3)](){const _0x3118cf=_0x3b22f;var _0x5e8f99,_0x793f4c,_0x556c97,_0x835de4;this[_0x3118cf(0x397)][_0x3118cf(0x3e5)](a[_0x3118cf(0x519)])&&this['_logService'][_0x3118cf(0x49d)]('[UniverCollaborationClientPlugin]',_0x3118cf(0x55e));let _0x53b982=[[a[_0x3118cf(0x519)],{'useClass':Be}],[exports[_0x3118cf(0x298)]],[Xe],[P[_0x3118cf(0x5ae)]],[ze,{'useClass':Nt}],[q],[exports[_0x3118cf(0x462)]],[P[_0x3118cf(0x347)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x793f4c=(_0x5e8f99=this[_0x3118cf(0x293)])==null?void 0x0:_0x5e8f99[_0x3118cf(0x2a5)])!=null?_0x793f4c:exports[_0x3118cf(0x272)]}],[P['IHTTPImplementation'],{'useClass':P[_0x3118cf(0x55b)]}],[_[_0x3118cf(0x2ce)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a['IAuthzIoService'],{'useClass':exports[_0x3118cf(0x38b)]}],[L['IImageIoService'],{'useClass':exports[_0x3118cf(0x4a3)]}],[exports[_0x3118cf(0x322)]],[exports[_0x3118cf(0x4f7)]],[exports[_0x3118cf(0x52f)]],[Ie],[ie]];(_0x556c97=this[_0x3118cf(0x293)])!=null&&_0x556c97[_0x3118cf(0x225)]&&_0x53b982['push']([be,{'useClass':ys}]),_0x53b982=a[_0x3118cf(0x588)](_0x53b982,(_0x835de4=this[_0x3118cf(0x293)])==null?void 0x0:_0x835de4['override']),_0x53b982[_0x3118cf(0x339)](_0x4b147e=>this['_injector'][_0x3118cf(0x405)](_0x4b147e)),this[_0x3118cf(0x514)]();}[_0x3b22f(0x20a)](){const _0x20d3a8=_0x3b22f;this['disposeWithMe'](this[_0x20d3a8(0x376)][_0x20d3a8(0x4b5)](a[_0x20d3a8(0x38e)][_0x20d3a8(0x332)],[xe])),this['disposeWithMe'](this[_0x20d3a8(0x376)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3b22f(0x514)](){const _0x2717a0=_0x3b22f;var _0x20032d,_0x2fa160;this[_0x2717a0(0x397)][_0x2717a0(0x34d)](P[_0x2717a0(0x5ae)])[_0x2717a0(0x3ef)]({'priority':0x14,'interceptor':P[_0x2717a0(0x257)]({'maxParallel':0x6})}),this[_0x2717a0(0x397)]['get'](Ce),(_0x20032d=this[_0x2717a0(0x293)])!=null&&_0x20032d[_0x2717a0(0x58c)]||this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x462)])['disableLocalCache'](),(_0x2fa160=this[_0x2717a0(0x293)])!=null&&_0x2fa160[_0x2717a0(0x425)]&&this[_0x2717a0(0x397)]['get'](pe),this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports['CollaborationController']),this[_0x2717a0(0x397)][_0x2717a0(0x3e5)](exports[_0x2717a0(0x52f)])&&this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x52f)]);}},Tn(exports[_0x3b22f(0x54c)],_0x3b22f(0x4c3),Rn),exports[_0x3b22f(0x54c)]=bn([a[_0x3b22f(0x52e)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x3b22f(0x308)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a[_0x3b22f(0x492)](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x3b22f(0x54c)]),exports[_0x3b22f(0x211)]=Mt,exports[_0x3b22f(0x2de)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3b22f(0x3ee)]=y,exports[_0x3b22f(0x42b)]=wt,exports[_0x3b22f(0x28d)]=Ge,exports[_0x3b22f(0x2b1)]=dt,exports[_0x3b22f(0x45d)]=Ve,exports[_0x3b22f(0x280)]=Fe,exports[_0x3b22f(0x399)]=ze,exports[_0x3b22f(0x5e7)]=ft,exports[_0x3b22f(0x3eb)]=mt,exports[_0x3b22f(0x424)]=vt,exports[_0x3b22f(0x51d)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x3b22f(0x367)]=_t,exports[_0x3b22f(0x508)]=$,exports[_0x3b22f(0x3d5)]=Ot,exports[_0x3b22f(0x217)]=Nt,exports[_0x3b22f(0x47a)]=Ct,exports[_0x3b22f(0x2bc)]=Et;
|