@univerjs-pro/collaboration-client 0.3.0-alpha.1 → 0.3.0-nightly.202410111606
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/locale/fa-IR.json +38 -0
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -1
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +37 -38
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function _0x4f28(_0x3ff7e0,_0x2117e1){const _0x197e9b=_0x197e();return _0x4f28=function(_0x4f287d,_0x313925){_0x4f287d=_0x4f287d-0xd7;let _0x115a5e=_0x197e9b[_0x4f287d];return _0x115a5e;},_0x4f28(_0x3ff7e0,_0x2117e1);}(function(_0x5f2f0d,_0x4c65dd){const _0x1194a4=_0x4f28,_0x4e3541=_0x5f2f0d();while(!![]){try{const _0x320fb9=parseInt(_0x1194a4(0x136))/0x1+parseInt(_0x1194a4(0x2ee))/0x2*(-parseInt(_0x1194a4(0x142))/0x3)+-parseInt(_0x1194a4(0x480))/0x4+-parseInt(_0x1194a4(0x283))/0x5*(parseInt(_0x1194a4(0x25b))/0x6)+-parseInt(_0x1194a4(0x176))/0x7+parseInt(_0x1194a4(0x436))/0x8+parseInt(_0x1194a4(0x3b7))/0x9*(parseInt(_0x1194a4(0x49d))/0xa);if(_0x320fb9===_0x4c65dd)break;else _0x4e3541['push'](_0x4e3541['shift']());}catch(_0x54b1c7){_0x4e3541['push'](_0x4e3541['shift']());}}}(_0x197e,0x25e28),function(_0x2b5c99,_0x124792){const _0x45b43f=_0x4f28;typeof exports=='object'&&typeof module<'u'?_0x124792(exports,require(_0x45b43f(0x346)),require('rxjs'),require(_0x45b43f(0x303)),require(_0x45b43f(0x120)),require(_0x45b43f(0x491)),require(_0x45b43f(0x158)),require(_0x45b43f(0x3f8)),require('@univerjs/telemetry'),require(_0x45b43f(0x4f4)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x45b43f(0x4ae)),require('@univerjs/drawing'),require('@univerjs/engine-formula'),require(_0x45b43f(0x192)),require(_0x45b43f(0x145)),require(_0x45b43f(0x1fb)),require(_0x45b43f(0x3dd)),require('@univerjs-pro/license')):typeof define==_0x45b43f(0x4ab)&&define['amd']?define([_0x45b43f(0x1e1),_0x45b43f(0x346),'rxjs','rxjs/operators',_0x45b43f(0x120),'@univerjs/ui',_0x45b43f(0x158),_0x45b43f(0x3f8),_0x45b43f(0x494),_0x45b43f(0x4f4),_0x45b43f(0x3c4),'@univerjs/sheets',_0x45b43f(0x4ae),_0x45b43f(0x39e),_0x45b43f(0x13b),_0x45b43f(0x192),_0x45b43f(0x145),_0x45b43f(0x1fb),_0x45b43f(0x3dd),'@univerjs-pro/license'],_0x124792):(_0x2b5c99=typeof globalThis<'u'?globalThis:_0x2b5c99||self,_0x124792(_0x2b5c99[_0x45b43f(0x3ec)]={},_0x2b5c99[_0x45b43f(0x117)],_0x2b5c99[_0x45b43f(0x2c8)],_0x2b5c99[_0x45b43f(0x2c8)]['operators'],_0x2b5c99[_0x45b43f(0xe7)],_0x2b5c99[_0x45b43f(0x387)],_0x2b5c99[_0x45b43f(0x24b)],_0x2b5c99[_0x45b43f(0x357)],_0x2b5c99['UniverTelemetry'],_0x2b5c99['UniverDocs'],_0x2b5c99[_0x45b43f(0x270)],_0x2b5c99[_0x45b43f(0x390)],_0x2b5c99[_0x45b43f(0x3b9)],_0x2b5c99[_0x45b43f(0x122)],_0x2b5c99[_0x45b43f(0x22e)],_0x2b5c99['UniverSheetsUi'],_0x2b5c99[_0x45b43f(0x420)],_0x2b5c99[_0x45b43f(0x1fb)],_0x2b5c99['UniverRpc'],_0x2b5c99[_0x45b43f(0x1ad)]));}(this,function(_0x48e51e,_0x5b7cfd,_0x266483,_0x51de38,_0x4466a1,_0x2ce95d,_0x4ba5d1,_0x56cbe4,_0x36caba,_0x3e2148,_0x618f14,_0xa62622,_0x46e2e3,_0x35c9a1,_0x4d1b35,_0x4a372b,_0x1b993c,_0x3f7833,_0x429288,_0x5d1cbc){'use strict';const _0x3bc2c8=_0x4f28;var _0x2191c6=Object[_0x3bc2c8(0x361)],_0x332791=(_0x46b4d2,_0x3e8ac5,_0xc9718c)=>_0x3e8ac5 in _0x46b4d2?_0x2191c6(_0x46b4d2,_0x3e8ac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc9718c}):_0x46b4d2[_0x3e8ac5]=_0xc9718c,_0x314dc6=(_0x13ca81,_0x2eb2fe,_0x2cfd68)=>_0x332791(_0x13ca81,typeof _0x2eb2fe!=_0x3bc2c8(0x13a)?_0x2eb2fe+'':_0x2eb2fe,_0x2cfd68);const _0x504faf='SNAPSHOT_SERVER_URL_KEY',_0x56ac46=_0x3bc2c8(0x2ff),_0x1a9cce='SNAPSHOT_URL_KEY',_0x2d7fa5=_0x3bc2c8(0xf3),_0x4989e3='COLLAB_WEB_SOCKET_URL',_0x2cc1a0='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4afd24=_0x3bc2c8(0x134),_0x372540='HEARTBEAT_TIMEOUT',_0x191200=_0x3bc2c8(0x26e),_0x23080c='LOCAL_CACHE_INTERVAL',_0x3bca7a=_0x3bc2c8(0x2bb),_0x62b297=_0x3bc2c8(0x43f),_0x29174f=_0x3bc2c8(0x4dd),_0x46f52c=_0x3bc2c8(0xde);var _0x5f32a2=(_0x1ed04f=>(_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x307)]=0x0]='UNDEFINED',_0x1ed04f[_0x1ed04f['OK']=0x1]='OK',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x459)]=0x2]=_0x3bc2c8(0x459),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x254)]=0x3]=_0x3bc2c8(0x254),_0x1ed04f[_0x1ed04f['NOT_FOUND']=0x4]=_0x3bc2c8(0x4c9),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4de)]=0x5]=_0x3bc2c8(0x4de),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x485)]=0x6]=_0x3bc2c8(0x485),_0x1ed04f[_0x1ed04f['INVALID_ARGUMENT']=0x7]=_0x3bc2c8(0x124),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x23d)]=0x8]=_0x3bc2c8(0x23d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4db)]=0x9]='COMPLETION_FINISHED',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x200)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3f7)]=0x1771]=_0x3bc2c8(0x3f7),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x304)]=0x1772]=_0x3bc2c8(0x304),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x46e)]=0x1b59]=_0x3bc2c8(0x46e),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x11b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x497)]=0x1b5c]=_0x3bc2c8(0x497),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x26b)]=0x1f41]=_0x3bc2c8(0x26b),_0x1ed04f[_0x1ed04f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3bc2c8(0x271),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x25f)]=0x232a]=_0x3bc2c8(0x25f),_0x1ed04f[_0x1ed04f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3bc2c8(0x2e8),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x29d)]=0x232c]=_0x3bc2c8(0x29d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b4)]=0x232d]=_0x3bc2c8(0x4b4),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3c5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1ed04f[_0x1ed04f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3bc2c8(0x382),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x1b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x339)]=0x2714]=_0x3bc2c8(0x339),_0x1ed04f[_0x1ed04f['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x1ed04f))(_0x5f32a2||{}),_0x249560=(_0xb1d6d1=>(_0xb1d6d1[_0xb1d6d1['UNIVER_UNKNOWN']=0x0]=_0x3bc2c8(0x11c),_0xb1d6d1[_0xb1d6d1['UNIVER_DOC']=0x1]=_0x3bc2c8(0x3a6),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x301)]=0x2]=_0x3bc2c8(0x301),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x202)]=0x3]='UNIVER_SLIDE',_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x329)]=0x4]=_0x3bc2c8(0x329),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0xb1d6d1))(_0x249560||{}),_0x4e6b2d=(_0x58181d=>(_0x58181d[_0x58181d[_0x3bc2c8(0x4ca)]=0x0]='UNKNOWN_CMD',_0x58181d[_0x58181d['HELLO']=0x1]=_0x3bc2c8(0x4a4),_0x58181d[_0x58181d[_0x3bc2c8(0x3e3)]=0x2]=_0x3bc2c8(0x3e3),_0x58181d[_0x58181d[_0x3bc2c8(0x16e)]=0x3]=_0x3bc2c8(0x16e),_0x58181d[_0x58181d[_0x3bc2c8(0x148)]=0x4]=_0x3bc2c8(0x148),_0x58181d[_0x58181d[_0x3bc2c8(0x1f0)]=0x5]=_0x3bc2c8(0x1f0),_0x58181d[_0x58181d['RECV']=0x6]=_0x3bc2c8(0x31c),_0x58181d[_0x58181d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58181d))(_0x4e6b2d||{}),_0x4a2846=(_0x570b65=>(_0x570b65[_0x570b65['UNKNOWN_CODE']=0x0]=_0x3bc2c8(0x2c0),_0x570b65[_0x570b65['OK']=0x1]='OK',_0x570b65[_0x570b65[_0x3bc2c8(0x27e)]=0x2]='FAIL',_0x570b65[_0x570b65['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x570b65))(_0x4a2846||{}),_0x1817d2=(_0x17dd5a=>(_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x4fa)]=0x0]=_0x3bc2c8(0x4fa),_0x17dd5a[_0x17dd5a['HttpImport']=0x1]=_0x3bc2c8(0xf0),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x24e)]=0x2]=_0x3bc2c8(0x24e),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0xd9)]=0x3]=_0x3bc2c8(0xd9),_0x17dd5a[_0x17dd5a['UnitSnapshot']=0x4]=_0x3bc2c8(0x333),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0x17dd5a))(_0x1817d2||{});const _0xa50aed=_0x3bc2c8(0x371),_0xdae42f={};function _0x262567(_0x4371b0){const _0xff810f=_0x3bc2c8;var _0x4c056b,_0x11ef33,_0x2ed13e,_0x82346c;const _0x4187a4=_0x4371b0[_0xff810f(0x2db)],_0x512bb7=JSON[_0xff810f(0x4ec)](_0x4187a4);switch(_0x512bb7[_0xff810f(0x1a4)]){case _0x4e6b2d[_0xff810f(0x1f0)]:case _0x4e6b2d[_0xff810f(0x4a4)]:{const _0x38781c=_0x512bb7[_0xff810f(0x2b0)];return{..._0x512bb7,'data':_0x38781c,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x3e3)]:{const _0xeb3963=_0x512bb7[_0xff810f(0x32b)];return{..._0x512bb7,'data':_0xeb3963,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x31c)]:{const _0x2389e1=_0x512bb7['collaMsg'];switch(_0x2389e1[_0xff810f(0xe1)]){case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x41b)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x4c056b=_0x2389e1[_0xff810f(0x226)])==null?void 0x0:_0x4c056b['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4f7)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x11ef33=_0x2389e1[_0xff810f(0x141)])==null?void 0x0:_0x11ef33['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x455)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x2ed13e=_0x2389e1[_0xff810f(0x50e)])==null?void 0x0:_0x2ed13e['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4c3)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x82346c=_0x2389e1['csRejEvent'])==null?void 0x0:_0x82346c['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x234)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x4f5)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['USERS_ENTER']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x3aa)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)]['USERS_LEAVE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x1ff)]},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_NEW_HOST']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x291)]:case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x429)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1['liveShareOperation']},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_TERMINATE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x500)]:return{..._0x512bb7,'data':_0x2389e1,'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x507)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x205)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x187)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x2c2)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x2b7)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};default:return _0x512bb7;}}default:return _0x512bb7;}}function _0x3eb981(_0x3a1176){const _0x4ef2bb=_0x3bc2c8;switch(_0x3a1176[_0x4ef2bb(0x1a4)]){case _0x4e6b2d[_0x4ef2bb(0x1f0)]:case _0x4e6b2d[_0x4ef2bb(0x4a4)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)]});case _0x4e6b2d[_0x4ef2bb(0x148)]:{let _0x57d048;switch(_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0xe1)]){case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x234)]:{_0x57d048={'eventID':_0x56cbe4['CollaborationEvent'][_0x4ef2bb(0x234)],'updateCursorEvent':_0x3a1176['data']['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)],'leaveEvent':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x280)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)]['USERS_ENTER'],'joinEvent':_0x3a1176[_0x4ef2bb(0x2db)]['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)],'liveShareNewHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)],'liveShareOperation':_0x3a1176['data'][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)],'liveShareTerminate':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)]['LIVESHARE_REQUEST_HOST']:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x463)],'liveShareRequestHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]};break;}default:_0x57d048={'eventID':_0x3a1176['data'][_0x4ef2bb(0xe1)]};}return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176['cmd'],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'collaMsg':_0x57d048});}case _0x4e6b2d['JOIN']:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'joinReq':_0x3a1176[_0x4ef2bb(0x2db)]});case _0x4e6b2d[_0x4ef2bb(0x16e)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'leaveReq':_0x3a1176[_0x4ef2bb(0x2db)]});default:throw new Error(_0x4ef2bb(0x151));}}var _0x5e3302=Object[_0x3bc2c8(0x361)],_0xf005e8=Object['getOwnPropertyDescriptor'],_0x1f28f1=(_0x233af9,_0x46f289,_0x54ad5f,_0x4e241d)=>{const _0x41799d=_0x3bc2c8;for(var _0x6fa1ed=_0x4e241d>0x1?void 0x0:_0x4e241d?_0xf005e8(_0x46f289,_0x54ad5f):_0x46f289,_0x2c7140=_0x233af9[_0x41799d(0x3d6)]-0x1,_0x1333c4;_0x2c7140>=0x0;_0x2c7140--)(_0x1333c4=_0x233af9[_0x2c7140])&&(_0x6fa1ed=(_0x4e241d?_0x1333c4(_0x46f289,_0x54ad5f,_0x6fa1ed):_0x1333c4(_0x6fa1ed))||_0x6fa1ed);return _0x4e241d&&_0x6fa1ed&&_0x5e3302(_0x46f289,_0x54ad5f,_0x6fa1ed),_0x6fa1ed;},_0x4d9d27=(_0x344bdb,_0x208b1f)=>(_0xf054fb,_0x58a522)=>_0x208b1f(_0xf054fb,_0x58a522,_0x344bdb);const _0x2644e7=_0x5b7cfd[_0x3bc2c8(0x20d)](_0x3bc2c8(0x250));function _0x256d97(_0x21e11d,_0xe966e2,_0x34c1e5){const _0xa4ffeb=_0x3bc2c8;return _0x21e11d+'/'+_0xe966e2+_0xa4ffeb(0x248)+_0x34c1e5+'/new_changes';}_0x48e51e[_0x3bc2c8(0x17f)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5679eb,_0xe4a9a1,_0xc4e86a,_0x4c23b3,_0x1f182d){const _0x431002=_0x3bc2c8;super(),this['_http']=_0x5679eb,this[_0x431002(0x442)]=_0xe4a9a1,this[_0x431002(0x4cb)]=_0xc4e86a,this[_0x431002(0x4e7)]=_0x4c23b3,this[_0x431002(0x1ea)]=_0x1f182d;}['createSocket'](_0x42fb25){const _0x413f47=_0x3bc2c8,_0x1b5af8=this['_ws'][_0x413f47(0x245)](_0x42fb25);if(!_0x1b5af8)throw new Error(_0x413f47(0x186));const _0x54ec8e=new _0x5b7cfd['DisposableCollection'](),_0x45e8c3=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e['add'](_0x1b5af8[_0x413f47(0x1ab)][_0x413f47(0x2f5)](_0x290e83=>_0x45e8c3[_0x413f47(0xe4)](_0x290e83))),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x45e8c3[_0x413f47(0x10e)]()));const _0x348db6=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8['error$']['subscribe'](_0x44693d=>_0x348db6['next'](_0x44693d))),_0x54ec8e[_0x413f47(0x225)](_0x5b7cfd[_0x413f47(0x3d9)](()=>_0x348db6[_0x413f47(0x10e)]()));const _0x43cfdc=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8[_0x413f47(0x2c4)]['subscribe'](_0x569955=>{const _0x486987=_0x413f47,_0xf755e3=_0x262567(_0x569955);_0x43cfdc[_0x486987(0xe4)](_0xf755e3);})),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x43cfdc['complete']()));let _0x4d49f4;const _0x229a11=()=>{const _0x168d71=_0x413f47;_0x348db6['next'](new Event(_0x168d71(0x4d4))),_0x45e8c3[_0x168d71(0xe4)](new CloseEvent('connection\x20error')),_0x4d49f4[_0x168d71(0x212)]();};return _0x4d49f4={'memberID':'','close$':_0x45e8c3[_0x413f47(0x4eb)](),'error$':_0x348db6[_0x413f47(0x4eb)](),'open$':_0x1b5af8[_0x413f47(0x299)],'message$':_0x43cfdc[_0x413f47(0x4eb)](),'send':_0x5efd96=>{const _0xb8e865=_0x413f47;if(_0x5efd96[_0xb8e865(0x1a4)]===_0x4e6b2d[_0xb8e865(0x148)]){if(_0x5efd96['data'][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0xb8e865(0x17c)](_0x4d49f4,_0x5efd96[_0xb8e865(0x2db)])[_0xb8e865(0x2bd)](_0xd14924=>{const _0x2e8a23=_0xb8e865;this['_logService'][_0x2e8a23(0x476)](_0xd14924),_0x229a11();});return;}if(_0x5efd96[_0xb8e865(0x2db)][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent'][_0xb8e865(0x123)]){const _0x3ab3a6=_0x5efd96['data'];this[_0xb8e865(0x2ca)](_0x3ab3a6)[_0xb8e865(0x3a3)](_0x392009=>{const _0x46e0e6=_0xb8e865;_0x43cfdc['next']({'cmd':_0x4e6b2d[_0x46e0e6(0x31c)],'code':_0x4a2846['OK'],'routeKey':_0x3ab3a6[_0x46e0e6(0x2db)][_0x46e0e6(0x1b0)],'routeType':'','data':{'eventID':_0x56cbe4[_0x46e0e6(0x484)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x392009}}});})[_0xb8e865(0x2bd)](_0x2d1233=>{const _0x4163de=_0xb8e865;this[_0x4163de(0x4e7)][_0x4163de(0x476)](_0x2d1233),_0x229a11();});return;}}_0x1b5af8[_0xb8e865(0x441)](_0x3eb981(_0x5efd96));},'close':()=>{const _0x355ec0=_0x413f47;_0x1b5af8[_0x355ec0(0x212)](),_0x54ec8e[_0x355ec0(0x314)]();}},_0x4d49f4;}async[_0x3bc2c8(0x17c)](_0xcc87b7,_0x3cb064){const _0x4ac4f1=_0x3bc2c8;var _0xb469ca,_0x2cab7a;const {unitType:_0x28f508,unitID:_0x3418e2,changeset:_0x3d4ec0}=_0x3cb064[_0x4ac4f1(0x2db)],_0x45456d={'unitID':_0x3418e2,'memberID':_0xcc87b7[_0x4ac4f1(0x48f)],'type':_0x28f508,'changeset':_0x56cbe4[_0x4ac4f1(0x12e)](_0x3d4ec0)},_0x32435b=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0x3bca7a),_0x5c7455=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0xa50aed),_0x3818b7=_0x256d97((_0x2cab7a=(_0xb469ca=_0x5c7455==null?void 0x0:_0x5c7455[_0x4ac4f1(0x129)])!=null?_0xb469ca:_0x32435b)!=null?_0x2cab7a:_0x62b297,_0x28f508,_0x3418e2);try{await this[_0x4ac4f1(0xfa)][_0x4ac4f1(0x15b)](_0x3818b7,{'body':_0x45456d});}catch(_0x543dc6){throw this[_0x4ac4f1(0x4e7)][_0x4ac4f1(0x476)](_0x4ac4f1(0x2e4),_0x4ac4f1(0x39a)),_0x543dc6;}}async[_0x3bc2c8(0x2ca)](_0x57ee56){const _0x40e892=_0x3bc2c8,{unitID:_0x40abca,from:_0x8e698b,to:_0x4faff1,unitType:_0x1c0f98}=_0x57ee56[_0x40e892(0x2db)];return(await this[_0x40e892(0x1ea)][_0x40e892(0x4ea)]({'metadata':void 0x0},{'unitID':_0x40abca,'type':_0x1c0f98,'from':_0x8e698b,'to':_0x4faff1}))['changesets'];}},_0x48e51e[_0x3bc2c8(0x17f)]=_0x1f28f1([_0x4d9d27(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1['HTTPService'])),_0x4d9d27(0x1,_0x5b7cfd['Inject'](_0x4ba5d1['WebSocketService'])),_0x4d9d27(0x2,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x4d9d27(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x4d9d27(0x4,_0x56cbe4['ISnapshotServerService'])],_0x48e51e['CollaborationSocketService']);const _0x2b6b65=_0x3bc2c8(0xfc);function _0x342318(_0x3c6db0){const _0x804155=_0x3bc2c8;return JSON[_0x804155(0x2fb)](_0x3c6db0)[_0x804155(0x3d6)];}class _0x1225af{constructor(){const _0x3f7599=_0x3bc2c8;_0x314dc6(this,'_commentUpdate$',new _0x266483[(_0x3f7599(0x2e5))]()),_0x314dc6(this,_0x3f7599(0x128),this['_commentUpdate$'][_0x3f7599(0x4eb)]());}[_0x3bc2c8(0x273)](_0x65d132){const _0x476fd1=_0x3bc2c8;this[_0x476fd1(0x12a)]['next'](_0x65d132);}}var _0x4fd6ae=Object['defineProperty'],_0x362e42=Object['getOwnPropertyDescriptor'],_0x337288=(_0x3b80ab,_0x406cbf,_0x45c559,_0x5aec8d)=>{const _0x38aef6=_0x3bc2c8;for(var _0x4c2ede=_0x5aec8d>0x1?void 0x0:_0x5aec8d?_0x362e42(_0x406cbf,_0x45c559):_0x406cbf,_0x790854=_0x3b80ab[_0x38aef6(0x3d6)]-0x1,_0x32e765;_0x790854>=0x0;_0x790854--)(_0x32e765=_0x3b80ab[_0x790854])&&(_0x4c2ede=(_0x5aec8d?_0x32e765(_0x406cbf,_0x45c559,_0x4c2ede):_0x32e765(_0x4c2ede))||_0x4c2ede);return _0x5aec8d&&_0x4c2ede&&_0x4fd6ae(_0x406cbf,_0x45c559,_0x4c2ede),_0x4c2ede;},_0x3a5a0d=(_0x5e5df1,_0x30a697)=>(_0x53cfb0,_0x21ba8d)=>_0x30a697(_0x53cfb0,_0x21ba8d,_0x5e5df1);let _0x587d5a=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5a21bf,_0x5271a7){const _0x47e72b=_0x3bc2c8;super(),_0x314dc6(this,_0x47e72b(0x3e6),new Map()),(this[_0x47e72b(0x10b)]=_0x5a21bf,this[_0x47e72b(0x238)]=_0x5271a7,this[_0x47e72b(0x131)](_0x5b7cfd[_0x47e72b(0x3d9)](_0x266483[_0x47e72b(0x2a5)](this['_univerInstanceService'][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)]['UNIVER_SHEET'])['pipe'](_0x51de38['map'](_0x40e7ce=>_0x40e7ce[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x3a6)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x11df8f=>_0x11df8f[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x202)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x29cabb=>_0x29cabb[_0x47e72b(0x183)]())))[_0x47e72b(0x2f5)](_0x2f0939=>this['_removeRoom'](_0x2f0939)))));}['setCurrentUser'](_0x332a67){const _0x39946c=_0x3bc2c8;this['_userManagerService'][_0x39946c(0x4ba)](_0x332a67);}[_0x3bc2c8(0x105)](){const _0x1f1678=_0x3bc2c8;return this['_userManagerService'][_0x1f1678(0x105)]();}[_0x3bc2c8(0x167)](_0x1d6eef,_0x27138c){const _0x59fb33=_0x3bc2c8;let _0x34fbfe=this[_0x59fb33(0x3e6)][_0x59fb33(0x451)](_0x1d6eef);_0x34fbfe||(_0x34fbfe=new _0x10db63(),this[_0x59fb33(0x3e6)][_0x59fb33(0x10d)](_0x1d6eef,_0x34fbfe)),_0x34fbfe['updateMember'](_0x27138c);}[_0x3bc2c8(0x3ba)](_0x3c4555,_0x3278de){const _0x5b2da2=_0x3bc2c8,_0x4542b9=this[_0x5b2da2(0x3e6)]['get'](_0x3c4555);_0x4542b9&&_0x4542b9[_0x5b2da2(0x3ba)](_0x3278de);}[_0x3bc2c8(0x50a)](_0xde9b67){const _0xe4507a=_0x3bc2c8;return this['_roomMembers'][_0xe4507a(0x451)](_0xde9b67);}['getMember'](_0x5a4b15,_0x5e1bdd){const _0x471eb5=this['_roomMembers']['get'](_0x5a4b15);if(_0x471eb5)return _0x471eb5['getMember'](_0x5e1bdd);}[_0x3bc2c8(0x18e)](_0x3d5e9d){const _0x5f2e25=_0x3bc2c8,_0x767172=this[_0x5f2e25(0x3e6)][_0x5f2e25(0x451)](_0x3d5e9d);_0x767172&&(_0x767172[_0x5f2e25(0x314)](),this['_roomMembers']['delete'](_0x3d5e9d));}[_0x3bc2c8(0x314)](){const _0x1d461c=_0x3bc2c8;this[_0x1d461c(0x3e6)][_0x1d461c(0x255)](_0x56dd08=>_0x56dd08[_0x1d461c(0x314)]()),this[_0x1d461c(0x3e6)]['clear']();}};_0x587d5a=_0x337288([_0x3a5a0d(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x3a5a0d(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x3d4)]))],_0x587d5a);class _0x10db63 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0xc452ad=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0xc452ad(0x3d0),new Map());}[_0x3bc2c8(0x314)](){const _0x2013bf=_0x3bc2c8;this[_0x2013bf(0x3d0)]['clear']();}[_0x3bc2c8(0x167)](_0x12d173){const _0x5d109c=_0x3bc2c8;this['_members'][_0x5d109c(0x10d)](_0x12d173['memberID'],_0x12d173);}[_0x3bc2c8(0x3ba)](_0x104733){const _0x368078=_0x3bc2c8;this['_members'][_0x368078(0x344)](_0x104733);}['getMember'](_0x184b35){const _0x46bb57=_0x3bc2c8;return this['_members'][_0x46bb57(0x451)](_0x184b35);}}var _0x38a672=Object['defineProperty'],_0x218075=Object[_0x3bc2c8(0x48b)],_0x1c142f=(_0x57d87d,_0x2d1189,_0x18896d,_0x251fe7)=>{const _0x2645b2=_0x3bc2c8;for(var _0x29fbd2=_0x251fe7>0x1?void 0x0:_0x251fe7?_0x218075(_0x2d1189,_0x18896d):_0x2d1189,_0x337cfb=_0x57d87d[_0x2645b2(0x3d6)]-0x1,_0x244b3b;_0x337cfb>=0x0;_0x337cfb--)(_0x244b3b=_0x57d87d[_0x337cfb])&&(_0x29fbd2=(_0x251fe7?_0x244b3b(_0x2d1189,_0x18896d,_0x29fbd2):_0x244b3b(_0x29fbd2))||_0x29fbd2);return _0x251fe7&&_0x29fbd2&&_0x38a672(_0x2d1189,_0x18896d,_0x29fbd2),_0x29fbd2;},_0x2e5a66=(_0xa254c2,_0x422e11)=>(_0x5179f9,_0x35763c)=>_0x422e11(_0x5179f9,_0x35763c,_0xa254c2),_0x2d9d4e=(_0xa6f3fa=>(_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x274)]=0x0]=_0x3bc2c8(0x274),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x1c8)]=0x1]='JOINING',_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x3b0)]=0x2]=_0x3bc2c8(0x3b0),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x322)]=0x3]=_0x3bc2c8(0x322),_0xa6f3fa))(_0x2d9d4e||{});_0x48e51e[_0x3bc2c8(0x246)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0x291ac3,_0x389233,_0x5683c6,_0x135482,_0x470cc1,_0x57229f,_0x549388,_0xb2d1ce,_0x360caa,_0x7471ec){const _0x4ef807=_0x3bc2c8;super(),_0x314dc6(this,_0x4ef807(0x426),new _0x266483[(_0x4ef807(0x43e))](0x0)),_0x314dc6(this,_0x4ef807(0x509),this[_0x4ef807(0x426)][_0x4ef807(0x4eb)]()),_0x314dc6(this,'_event$',new _0x266483['Subject']()),_0x314dc6(this,_0x4ef807(0x164),this[_0x4ef807(0x478)][_0x4ef807(0x4eb)]()),_0x314dc6(this,_0x4ef807(0x3d1)),_0x314dc6(this,'_socketMessageSubscription'),_0x314dc6(this,_0x4ef807(0x21e)),_0x314dc6(this,_0x4ef807(0x453),!0x1),_0x314dc6(this,_0x4ef807(0x23f),null),(this[_0x4ef807(0x4c7)]=_0x291ac3,this[_0x4ef807(0x4e7)]=_0x5683c6,this['_beforeCloseService']=_0x135482,this[_0x4ef807(0x1d6)]=_0x470cc1,this[_0x4ef807(0x4cb)]=_0x57229f,this[_0x4ef807(0x24c)]=_0x549388,this[_0x4ef807(0x159)]=_0xb2d1ce,this[_0x4ef807(0x19b)]=_0x360caa,this['_telemetryService']=_0x7471ec,this[_0x4ef807(0x453)]=!!this[_0x4ef807(0x1b4)],_0x389233[_0x4ef807(0x198)](_0x266483[_0x4ef807(0x46b)](this[_0x4ef807(0x2dd)]))[_0x4ef807(0x2f5)](_0x89baae=>{const _0x2fdca7=_0x4ef807;var _0x17fdd3;typeof _0x89baae>'u'||(this[_0x2fdca7(0x3d1)]=_0x89baae,_0x89baae?(this[_0x2fdca7(0x3e0)](_0x89baae),this['_socketMessageSubscription']=_0x89baae['message$'][_0x2fdca7(0x2f5)](_0x4aabb8=>{const _0xefe316=_0x2fdca7;_0x4aabb8[_0xefe316(0x40d)]===this[_0xefe316(0x4c7)]&&this['_onCombEvent'](_0x4aabb8);})):(this[_0x2fdca7(0x471)](),this[_0x2fdca7(0x426)][_0x2fdca7(0xe4)](0x2),(_0x17fdd3=this['_socketMessageSubscription'])==null||_0x17fdd3[_0x2fdca7(0x114)](),this[_0x2fdca7(0x481)]=null));}),this['disposeWithMe'](this[_0x4ef807(0x2ec)]['registerOnClose'](()=>{const _0x3da3ee=_0x4ef807;var _0x1162fd;(_0x1162fd=this[_0x3da3ee(0x3d1)])==null||_0x1162fd['send']({'cmd':_0x4e6b2d[_0x3da3ee(0x16e)],'data':{'roomID':this[_0x3da3ee(0x4c7)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x3bc2c8(0x2d0)](){const _0x508d16=_0x3bc2c8;var _0x11de7b,_0x5b652d;return(_0x5b652d=(_0x11de7b=this['_socket'])==null?void 0x0:_0x11de7b[_0x508d16(0x48f)])!=null?_0x5b652d:null;}['dispose'](){const _0x5038a3=_0x3bc2c8;super[_0x5038a3(0x314)](),this[_0x5038a3(0x2dd)]['next'](),this[_0x5038a3(0x2dd)][_0x5038a3(0x10e)]();}['close'](){const _0xaedf69=_0x3bc2c8;var _0x1f1d24,_0x33aa9e;this[_0xaedf69(0x471)](),(_0x1f1d24=this[_0xaedf69(0x3d1)])==null||_0x1f1d24[_0xaedf69(0x441)]({'cmd':_0x4e6b2d[_0xaedf69(0x16e)],'data':{'roomID':this['_unitID']}}),(_0x33aa9e=this[_0xaedf69(0x3d1)])==null||_0x33aa9e['close'](),this[_0xaedf69(0x478)][_0xaedf69(0x10e)](),this[_0xaedf69(0x426)][_0xaedf69(0x10e)](),this['dispose']();}[_0x3bc2c8(0x149)](_0x5866af){const _0x3c04bc=_0x3bc2c8;_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['JOIN']?this[_0x3c04bc(0x13f)](_0x5866af):_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['RECV']&&this[_0x3c04bc(0x10c)](_0x5866af);}[_0x3bc2c8(0x3e0)](_0x33ccf0){const _0x10967b=_0x3bc2c8;this['_sessionStatus$'][_0x10967b(0xe4)](0x1),_0x33ccf0[_0x10967b(0x441)]({'cmd':_0x4e6b2d[_0x10967b(0x3e3)],'routeKey':this[_0x10967b(0x4c7)],'routeType':'','data':{'rooms':[{'roomID':this[_0x10967b(0x4c7)]}]}});}[_0x3bc2c8(0x13f)](_0x2659a2){const _0xb4dbf2=_0x3bc2c8;var _0x80312a;if(_0x2659a2[_0xb4dbf2(0x337)]===_0x4a2846[_0xb4dbf2(0x27e)]){this[_0xb4dbf2(0x1d6)][_0xb4dbf2(0x29f)]({'type':_0x4466a1[_0xb4dbf2(0x185)]['Warning'],'content':this[_0xb4dbf2(0x24c)]['t']('session.room-full')}),this[_0xb4dbf2(0x426)][_0xb4dbf2(0xe4)](0x2);return;}this['_sessionStatus$'][_0xb4dbf2(0xe4)](0x3);const _0xec303f=(_0x80312a=_0x2659a2[_0xb4dbf2(0x2db)][_0xb4dbf2(0x102)][this[_0xb4dbf2(0x4c7)]])==null?void 0x0:_0x80312a[_0xb4dbf2(0x162)];_0xec303f&&_0xec303f[_0xb4dbf2(0x255)](_0x4555a3=>this['_memberService'][_0xb4dbf2(0x167)](this['_unitID'],_0x4555a3));}[_0x3bc2c8(0x10c)](_0x170fb7){const _0x3ed4c8=_0x3bc2c8;try{const _0x36ca41=_0x170fb7[_0x3ed4c8(0x2db)];switch(_0x36ca41[_0x3ed4c8(0xe1)]){case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x280)]:this['_onUserJoin'](_0x36ca41),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['USERS_LEAVE']:this[_0x3ed4c8(0x2cb)](_0x36ca41),this[_0x3ed4c8(0x478)]['next'](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['CHANGESET_ACK']:this[_0x3ed4c8(0x1f4)](),this[_0x3ed4c8(0x4c5)](),this['_event$'][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4['CollaborationEvent'][_0x3ed4c8(0x500)]:this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3ed4c8(0x2fb)](_0x36ca41)),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x507)]:this[_0x3ed4c8(0x19b)][_0x3ed4c8(0x273)](_0x36ca41['data']),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;default:this[_0x3ed4c8(0x478)]['next'](_0x36ca41);}}catch(_0x31252e){this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)](_0x31252e,_0x170fb7);}}[_0x3bc2c8(0x414)](_0x2c97c8){const _0x2da873=_0x3bc2c8;this['_memberService']['updateMember'](this[_0x2da873(0x4c7)],_0x2c97c8[_0x2da873(0x2db)]);}[_0x3bc2c8(0x2cb)](_0x452a7d){const _0x4af6f9=_0x3bc2c8;this[_0x4af6f9(0x159)][_0x4af6f9(0x3ba)](this[_0x4af6f9(0x4c7)],_0x452a7d[_0x4af6f9(0x2db)][_0x4af6f9(0x48f)]);}async[_0x3bc2c8(0x441)](_0x4f1aff,_0x5b46eb){const _0x216f3f=_0x3bc2c8;if(this[_0x216f3f(0xee)]!==0x3||!this[_0x216f3f(0x3d1)])throw new Error(_0x216f3f(0x3df));try{_0x4f1aff['eventID']===_0x56cbe4[_0x216f3f(0x484)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x4f1aff)),this[_0x216f3f(0x3d1)][_0x216f3f(0x441)]({'cmd':_0x4e6b2d[_0x216f3f(0x148)],'routeKey':_0x5b46eb,'routeType':'','data':_0x4f1aff});}catch(_0x559e2e){this['_logService'][_0x216f3f(0x476)](_0x559e2e);}}[_0x3bc2c8(0x281)](){const _0x2b0cc7=_0x3bc2c8;var _0x5cf722;this[_0x2b0cc7(0x21e)]=window['setTimeout'](()=>{const _0xa3b2a1=_0x2b0cc7;this[_0xa3b2a1(0x21e)]=null,this[_0xa3b2a1(0x1d6)][_0xa3b2a1(0x29f)]({'type':_0x4466a1[_0xa3b2a1(0x185)][_0xa3b2a1(0x34e)],'content':this[_0xa3b2a1(0x24c)]['t'](_0xa3b2a1(0x14b))});},(_0x5cf722=this[_0x2b0cc7(0x4cb)][_0x2b0cc7(0x1db)](_0x372540))!=null?_0x5cf722:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4b0fb7=_0x3bc2c8;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4b0fb7(0x21e)]=null);}[_0x3bc2c8(0x4cd)](_0x4e96ff){const _0x22aa8a=_0x3bc2c8;if(!this['_shouldReportTelemetry'])return;const {data:_0x3c1e74}=_0x4e96ff,{unitID:_0x55873d,changeset:_0x33869}=_0x3c1e74,{mutations:_0x781708,type:_0x582494}=_0x33869;this[_0x22aa8a(0x23f)]={'unitId':_0x55873d,'type':_0x582494,'startTime':performance[_0x22aa8a(0x2ef)](),'stopTime':0x0,'duration':0x0,'size':_0x342318(_0x781708)};}[_0x3bc2c8(0x1f4)](){const _0x126282=_0x3bc2c8;if(this[_0x126282(0x453)]){if(!this['_telemetryInfo']){this[_0x126282(0x4e7)][_0x126282(0x476)](_0x126282(0x2e4),_0x126282(0x45b));return;}this[_0x126282(0x23f)][_0x126282(0x42f)]=performance[_0x126282(0x2ef)](),this[_0x126282(0x23f)][_0x126282(0x470)]=this[_0x126282(0x23f)]['stopTime']-this['_telemetryInfo'][_0x126282(0x4d2)],this[_0x126282(0x1b4)][_0x126282(0x15c)](_0x2b6b65,this[_0x126282(0x23f)]),this[_0x126282(0x23f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x5f23a6=_0x3bc2c8;this[_0x5f23a6(0x23f)]=null;}},_0x48e51e[_0x3bc2c8(0x246)]=_0x1c142f([_0x2e5a66(0x2,_0x5b7cfd['ILogService']),_0x2e5a66(0x3,_0x2ce95d[_0x3bc2c8(0x309)]),_0x2e5a66(0x4,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2e5a66(0x5,_0x5b7cfd['IConfigService']),_0x2e5a66(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x2e5a66(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2e5a66(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1225af)),_0x2e5a66(0x9,_0x5b7cfd[_0x3bc2c8(0x259)](_0x36caba[_0x3bc2c8(0x32d)]))],_0x48e51e[_0x3bc2c8(0x246)]);var _0x32a86a=Object[_0x3bc2c8(0x361)],_0xa2605f=Object[_0x3bc2c8(0x48b)],_0x41140d=(_0x4e34a9,_0x4b73aa,_0xd03813,_0x1c2c52)=>{const _0x59ad49=_0x3bc2c8;for(var _0x3f5321=_0x1c2c52>0x1?void 0x0:_0x1c2c52?_0xa2605f(_0x4b73aa,_0xd03813):_0x4b73aa,_0x2d8a8a=_0x4e34a9[_0x59ad49(0x3d6)]-0x1,_0x40a591;_0x2d8a8a>=0x0;_0x2d8a8a--)(_0x40a591=_0x4e34a9[_0x2d8a8a])&&(_0x3f5321=(_0x1c2c52?_0x40a591(_0x4b73aa,_0xd03813,_0x3f5321):_0x40a591(_0x3f5321))||_0x3f5321);return _0x1c2c52&&_0x3f5321&&_0x32a86a(_0x4b73aa,_0xd03813,_0x3f5321),_0x3f5321;},_0x388c8c=(_0x28e732,_0x5b2e66)=>(_0x245180,_0x218efd)=>_0x5b2e66(_0x245180,_0x218efd,_0x28e732);_0x48e51e[_0x3bc2c8(0x1d8)]=class extends _0x5b7cfd['Disposable']{constructor(_0x5d1839,_0x29355b,_0x7845a1,_0x2c54e5,_0x5f3cb4,_0x38ff1b){const _0x96442b=_0x3bc2c8;super(),_0x314dc6(this,_0x96442b(0x1b7),new _0x266483[(_0x96442b(0x43e))](void 0x0)),_0x314dc6(this,_0x96442b(0x477),this[_0x96442b(0x1b7)][_0x96442b(0x4eb)]()),_0x314dc6(this,'_candidateSocket',null),_0x314dc6(this,'_sessions',new Map()),_0x314dc6(this,_0x96442b(0x400),new _0x266483['BehaviorSubject'](_0x2d9d4e[_0x96442b(0x274)])),_0x314dc6(this,_0x96442b(0x294),this[_0x96442b(0x400)]['asObservable']()),_0x314dc6(this,'_socketReady',!0x1),_0x314dc6(this,'_retryConnectingTimer'),_0x314dc6(this,_0x96442b(0x1da),0x0),_0x314dc6(this,'_sendHeartbeatTimer'),_0x314dc6(this,_0x96442b(0x247)),(this[_0x96442b(0x30f)]=_0x5d1839,this[_0x96442b(0x24c)]=_0x29355b,this[_0x96442b(0x1d6)]=_0x7845a1,this[_0x96442b(0x4e7)]=_0x2c54e5,this['_configService']=_0x5f3cb4,this[_0x96442b(0x2ac)]=_0x38ff1b,this['_initEventListeners']());}get[_0x3bc2c8(0x3d1)](){const _0x3d2cfd=_0x3bc2c8;return this[_0x3d2cfd(0x1b7)][_0x3d2cfd(0x21b)]();}[_0x3bc2c8(0x241)](){const _0x3988d6=_0x3bc2c8;this[_0x3988d6(0x50f)](),this[_0x3988d6(0x381)]();}[_0x3bc2c8(0x314)](){const _0x39528a=_0x3bc2c8;super[_0x39528a(0x314)](),this['_sessions']['forEach'](_0x13ac19=>_0x13ac19[_0x39528a(0x314)]()),this['_sessions'][_0x39528a(0x174)](),this['_status$'][_0x39528a(0x10e)]();}async['requireSession'](_0x494334){const _0x37f7c1=_0x3bc2c8;if(this[_0x37f7c1(0x4d6)][_0x37f7c1(0x232)](_0x494334))return this[_0x37f7c1(0x4d6)]['get'](_0x494334);this[_0x37f7c1(0x108)]();const _0x25d79b=this[_0x37f7c1(0x30f)][_0x37f7c1(0x1a3)](_0x48e51e['CollaborationSession'],_0x494334,this['_socket$'][_0x37f7c1(0x4eb)]());return this[_0x37f7c1(0x4d6)][_0x37f7c1(0x10d)](_0x494334,_0x25d79b),_0x25d79b;}[_0x3bc2c8(0x3f6)](_0x42bf40){const _0x94b475=_0x3bc2c8;var _0x114ad7;const _0x283959=this['_sessions'][_0x94b475(0x451)](_0x42bf40);_0x283959&&(this[_0x94b475(0x4d6)][_0x94b475(0x344)](_0x42bf40),_0x283959['close']()),this[_0x94b475(0x4d6)][_0x94b475(0x127)]||(_0x114ad7=this[_0x94b475(0x3d1)])==null||_0x114ad7[_0x94b475(0x212)]();}[_0x3bc2c8(0x28d)](){const _0x310312=_0x3bc2c8;this[_0x310312(0x1da)]=0x0,this[_0x310312(0x26d)]!=null&&(clearTimeout(this[_0x310312(0x26d)]),this['_retryConnectingTimer']=null),this[_0x310312(0x2f3)]();}[_0x3bc2c8(0x4e2)](){const _0x4d5618=_0x3bc2c8;var _0x6f1935,_0x220372;const _0x5b039d=this['_configService'][_0x4d5618(0x1db)](_0x4989e3),_0x3a2ece=this['_configService'][_0x4d5618(0x1db)](_0xa50aed),_0x13965f=(_0x220372=(_0x6f1935=_0x3a2ece==null?void 0x0:_0x3a2ece[_0x4d5618(0x37d)])!=null?_0x6f1935:_0x5b039d)!=null?_0x220372:_0x2cc1a0,_0xbcbba8=this['_socketService'][_0x4d5618(0x245)](_0x13965f);return this[_0x4d5618(0x1fa)]=_0xbcbba8,_0xbcbba8;}['_tryEnsureSocket'](){const _0x148a7c=_0x3bc2c8;var _0x319b8a,_0x1406d4;try{const _0x1ce87c=(_0x1406d4=(_0x319b8a=this['_socket'])!=null?_0x319b8a:this[_0x148a7c(0x1fa)])!=null?_0x1406d4:this['_createSocket']();if(_0x1ce87c){const _0x472aa4=_0x1ce87c[_0x148a7c(0x441)];_0x1ce87c[_0x148a7c(0x441)]=_0x17b2ca=>(this[_0x148a7c(0x110)](),_0x472aa4[_0x148a7c(0x458)](_0x1ce87c,[_0x17b2ca])),_0x1ce87c[_0x148a7c(0x2c4)][_0x148a7c(0x2f5)](_0x918619=>this[_0x148a7c(0x4a0)](_0x1ce87c,_0x918619)),_0x1ce87c['error$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))['subscribe'](_0x2a04d8=>this[_0x148a7c(0x4e7)][_0x148a7c(0x476)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a04d8)),_0x1ce87c[_0x148a7c(0x299)]['pipe'](_0x51de38['take'](0x1))[_0x148a7c(0x2f5)](()=>{const _0x28347a=_0x148a7c;this[_0x28347a(0x506)](_0x1ce87c);}),_0x1ce87c['close$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))[_0x148a7c(0x2f5)](_0x29bf3a=>{const _0x54cae1=_0x148a7c;this[_0x54cae1(0x4e7)][_0x54cae1(0x46f)]('[CollaborationSessionService]',_0x54cae1(0x48c),_0x29bf3a),this[_0x54cae1(0x3c9)]();});}}catch(_0x29d712){this[_0x148a7c(0x4e7)][_0x148a7c(0x476)](_0x29d712),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x2d215d){const _0x5be400=_0x3bc2c8;this[_0x5be400(0x4e7)][_0x5be400(0x46f)](_0x5be400(0x233),_0x5be400(0x1eb)),_0x2d215d[_0x5be400(0x441)]({'cmd':_0x4e6b2d[_0x5be400(0x4a4)]}),this[_0x5be400(0x110)]();}[_0x3bc2c8(0x50f)](){const _0x37551f=_0x3bc2c8;window['addEventListener'](_0x37551f(0x392),()=>this[_0x37551f(0x16a)]());}[_0x3bc2c8(0x16a)](){const _0x1516c2=_0x3bc2c8;this[_0x1516c2(0x505)]=!0x1,this[_0x1516c2(0x1fa)]=null,this['_status$'][_0x1516c2(0xe4)](_0x2d9d4e[_0x1516c2(0x3b0)]),this[_0x1516c2(0x1b7)][_0x1516c2(0xe4)](null),this[_0x1516c2(0x45e)](),this[_0x1516c2(0x363)]();}[_0x3bc2c8(0x3c9)](){const _0x5121a0=_0x3bc2c8;var _0x84eec0;this[_0x5121a0(0x16a)](),this[_0x5121a0(0x1da)]<((_0x84eec0=this[_0x5121a0(0x4cb)][_0x5121a0(0x1db)](_0x191200))!=null?_0x84eec0:0x3)?(this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1[_0x5121a0(0x185)]['Warning'],'content':this[_0x5121a0(0x24c)]['t']('session.will-retry')}),this[_0x5121a0(0x2f3)]()):this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1['MessageType'][_0x5121a0(0x34e)],'content':this[_0x5121a0(0x24c)]['t'](_0x5121a0(0xed))});}[_0x3bc2c8(0x381)](){const _0xb8c6c9=_0x3bc2c8,_0x32fa17=()=>{const _0x3a012b=_0x4f28;this[_0x3a012b(0x3d1)]||this[_0x3a012b(0x28d)]();},_0x43b5af=()=>{const _0xaba48b=_0x4f28;this[_0xaba48b(0x3d1)]||document[_0xaba48b(0x2d9)]===_0xaba48b(0x27c)||this[_0xaba48b(0x28d)]();};window['addEventListener'](_0xb8c6c9(0x3eb),_0x32fa17),document[_0xb8c6c9(0x435)](_0xb8c6c9(0x35f),_0x43b5af);}[_0x3bc2c8(0x2f3)](){const _0x4509e5=_0x3bc2c8;var _0x1b8b99;const _0x473ead=this[_0x4509e5(0x1da)],_0x35d135=this['_configService'][_0x4509e5(0x1db)](_0xa50aed),_0x46d3c5=_0x473ead===0x0?0x0:((_0x1b8b99=_0x35d135==null?void 0x0:_0x35d135[_0x4509e5(0x17e)])!=null?_0x1b8b99:0x4e20)*0x2**_0x473ead;this[_0x4509e5(0x26d)]=window[_0x4509e5(0x19f)](()=>{const _0x36d5b8=_0x4509e5;clearTimeout(this[_0x36d5b8(0x26d)]),this[_0x36d5b8(0x26d)]=null,this['_tryEnsureSocket']();},_0x46d3c5),this[_0x4509e5(0x1da)]+=0x1;}[_0x3bc2c8(0x4a0)](_0x120d74,_0x1783d5){const _0x47baf4=_0x3bc2c8,{cmd:_0x131c6b}=_0x1783d5;_0x131c6b===_0x4e6b2d[_0x47baf4(0x4a4)]&&!this[_0x47baf4(0x505)]&&(_0x120d74[_0x47baf4(0x48f)]=_0x1783d5[_0x47baf4(0x2db)][_0x47baf4(0x48f)],this[_0x47baf4(0x1b7)][_0x47baf4(0xe4)](_0x120d74),this[_0x47baf4(0x400)][_0x47baf4(0xe4)](_0x2d9d4e[_0x47baf4(0x322)]),this['_socketReady']=!0x0,this[_0x47baf4(0x1fa)]=null),_0x131c6b===_0x4e6b2d[_0x47baf4(0x1f0)]&&this['_clearTimeoutTimer'](),this[_0x47baf4(0x110)]();}[_0x3bc2c8(0x110)](){const _0x2a91a8=_0x3bc2c8;var _0x1fae90;this[_0x2a91a8(0x363)](),this[_0x2a91a8(0x46a)]=window[_0x2a91a8(0x19f)](()=>this[_0x2a91a8(0x1c0)](),(_0x1fae90=this[_0x2a91a8(0x4cb)]['getConfig'](_0x4afd24))!=null?_0x1fae90:0x7530);}[_0x3bc2c8(0x1c0)](){const _0x51c9d9=_0x3bc2c8;this[_0x51c9d9(0x3d1)][_0x51c9d9(0x441)]({'cmd':_0x4e6b2d['HEARTBEAT']}),this[_0x51c9d9(0x3f5)]();}[_0x3bc2c8(0x3f5)](){const _0x1f82db=_0x3bc2c8;var _0x5a8c35;this[_0x1f82db(0x247)]=window['setTimeout'](()=>this[_0x1f82db(0x3c9)](),(_0x5a8c35=this[_0x1f82db(0x4cb)][_0x1f82db(0x1db)](_0x372540))!=null?_0x5a8c35:0x4e20);}['_clearHeartbeatTimer'](){const _0x32b2b0=_0x3bc2c8;this[_0x32b2b0(0x46a)]!=null&&(clearTimeout(this[_0x32b2b0(0x46a)]),this['_sendHeartbeatTimer']=null);}[_0x3bc2c8(0x45e)](){const _0x4fbd1e=_0x3bc2c8;this[_0x4fbd1e(0x247)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x48e51e[_0x3bc2c8(0x1d8)]=_0x41140d([_0x388c8c(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x388c8c(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x388c8c(0x2,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x388c8c(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x388c8c(0x4,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x388c8c(0x5,_0x2644e7)],_0x48e51e[_0x3bc2c8(0x1d8)]);var _0x13a2ff=Object[_0x3bc2c8(0x361)],_0x1cae8f=Object[_0x3bc2c8(0x48b)],_0x5e6cda=(_0x4d1bc2,_0x475bca,_0x308f1d,_0x3bd422)=>{const _0x850c41=_0x3bc2c8;for(var _0x5b124b=_0x3bd422>0x1?void 0x0:_0x3bd422?_0x1cae8f(_0x475bca,_0x308f1d):_0x475bca,_0x13184b=_0x4d1bc2[_0x850c41(0x3d6)]-0x1,_0x6e2fbf;_0x13184b>=0x0;_0x13184b--)(_0x6e2fbf=_0x4d1bc2[_0x13184b])&&(_0x5b124b=(_0x3bd422?_0x6e2fbf(_0x475bca,_0x308f1d,_0x5b124b):_0x6e2fbf(_0x5b124b))||_0x5b124b);return _0x3bd422&&_0x5b124b&&_0x13a2ff(_0x475bca,_0x308f1d,_0x5b124b),_0x5b124b;},_0x2d90e0=(_0x26a0c5,_0x769a3e)=>(_0x32a1e5,_0x14c085)=>_0x769a3e(_0x32a1e5,_0x14c085,_0x26a0c5);let _0x1e6c69=class{constructor(_0x25f496,_0x5a7ce4,_0x3a63db){const _0x920ce8=_0x3bc2c8;this[_0x920ce8(0x30f)]=_0x25f496,this[_0x920ce8(0x3a1)]=_0x5a7ce4,this['_renderManagerService']=_0x3a63db;}['transformIMECache'](_0x52a6a4){this['_transformUndoRedoStack'](_0x52a6a4),this['_transformPreviousActiveRange'](_0x52a6a4);}[_0x3bc2c8(0x3fb)](_0x1ddcad){const _0x50dc93=_0x3bc2c8,{unitID:_0x3f3c8f}=_0x1ddcad,_0xd0d302=this[_0x50dc93(0x4bd)]['getRenderById'](_0x3f3c8f)[_0x50dc93(0x1a6)](_0x618f14[_0x50dc93(0x1c2)]),{redoCache:_0x4daed4}=_0xd0d302[_0x50dc93(0x48d)]();if(_0x4daed4[_0x50dc93(0x3d6)]===0x0)return _0x1ddcad;let _0x299b78=_0x5b7cfd['Tools']['deepClone'](_0x1ddcad[_0x50dc93(0x1fc)][0x0]);for(let _0x4a5260=0x0;_0x4a5260<_0x4daed4['length'];_0x4a5260++){const _0x5aa6fa={'id':'doc.mutation.rich-text-editing','params':{..._0x4daed4[_0x4a5260]}},_0x529821=this[_0x50dc93(0x3a1)][_0x50dc93(0x31d)](_0x299b78,_0x5aa6fa,!0x1);if(_0x56cbe4[_0x50dc93(0x197)](_0x529821))throw _0x529821[_0x50dc93(0x476)];_0x299b78=_0x529821['m1Prime'];}return{..._0x5b7cfd[_0x50dc93(0x2f6)][_0x50dc93(0x29b)](_0x1ddcad),'mutations':[_0x299b78]};}['_transformUndoRedoStack'](_0x27a529){const _0x1d9f82=_0x3bc2c8,{unitID:_0x565bae}=_0x27a529,_0x437937=this[_0x1d9f82(0x4bd)]['getRenderById'](_0x565bae)[_0x1d9f82(0x1a6)](_0x618f14[_0x1d9f82(0x1c2)]),{undoCache:_0x12b8ef,redoCache:_0x26db0e}=_0x437937[_0x1d9f82(0x48d)]();if(_0x12b8ef[_0x1d9f82(0x3d6)]===0x0||_0x26db0e[_0x1d9f82(0x3d6)]===0x0)return;const _0x4f6950=[],_0x582ce1=[];let _0x23c701=_0x5b7cfd[_0x1d9f82(0x2f6)]['deepClone'](_0x27a529[_0x1d9f82(0x1fc)][0x0]),_0x4c774e=_0x5b7cfd[_0x1d9f82(0x2f6)][_0x1d9f82(0x29b)](_0x27a529['mutations'][0x0]);for(let _0x515b7d=_0x12b8ef[_0x1d9f82(0x3d6)]-0x1;_0x515b7d>=0x0;_0x515b7d--){const _0x45a1e4={'id':'doc.mutation.rich-text-editing','params':{..._0x12b8ef[_0x515b7d]}},_0x3d7f81={'id':'doc.mutation.rich-text-editing','params':{..._0x26db0e[_0x515b7d]}},_0x2adfca=this['_transformService'][_0x1d9f82(0x31d)](_0x23c701,_0x45a1e4,!0x1),_0x6bb644=this[_0x1d9f82(0x3a1)][_0x1d9f82(0x31d)](_0x4c774e,_0x3d7f81,!0x1);if(_0x56cbe4['isTransformMutationFailure'](_0x2adfca))throw _0x2adfca['error'];if(_0x56cbe4[_0x1d9f82(0x197)](_0x6bb644))throw _0x6bb644[_0x1d9f82(0x476)];_0x4f6950[_0x1d9f82(0x377)](_0x2adfca[_0x1d9f82(0x275)][_0x1d9f82(0x3c2)]),_0x582ce1[_0x1d9f82(0x377)](_0x6bb644[_0x1d9f82(0x275)]['params']),_0x23c701=_0x2adfca[_0x1d9f82(0x32c)],_0x4c774e=_0x6bb644[_0x1d9f82(0x32c)];}_0x437937[_0x1d9f82(0x486)]({'undoCache':_0x4f6950,'redoCache':_0x582ce1});}[_0x3bc2c8(0x3f2)](_0x31c5a7){const _0x2d1ae4=_0x3bc2c8,{unitID:_0x54e2eb}=_0x31c5a7,_0x2d753b=this[_0x2d1ae4(0x4bd)]['getRenderById'](_0x54e2eb)['with'](_0x618f14[_0x2d1ae4(0x1c2)]),_0x4fcf0f=_0x2d753b['getActiveRange']();if(_0x4fcf0f==null)return;const _0x43e8a8=[{'id':_0x2d1ae4(0x2d2),'params':{'unitId':_0x31c5a7[_0x2d1ae4(0x1b0)],'actions':null,'textRanges':[_0x4fcf0f]}}],_0x3ca9b2=this[_0x2d1ae4(0x3a1)][_0x2d1ae4(0x4b8)](_0x31c5a7,_0x43e8a8);if(!_0x56cbe4[_0x2d1ae4(0x180)](_0x3ca9b2))throw _0x3ca9b2[_0x2d1ae4(0x476)];const _0x153b06=_0x3ca9b2[_0x2d1ae4(0x275)][0x0][_0x2d1ae4(0x3c2)][_0x2d1ae4(0x138)];Array['isArray'](_0x153b06)&&_0x153b06[_0x2d1ae4(0x3d6)]&&_0x2d753b[_0x2d1ae4(0x14e)](_0x153b06[0x0]);}};_0x1e6c69=_0x5e6cda([_0x2d90e0(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2d90e0(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2d90e0(0x2,_0x46e2e3[_0x3bc2c8(0x37e)])],_0x1e6c69);var _0xabb556=Object[_0x3bc2c8(0x361)],_0x3026f1=Object[_0x3bc2c8(0x48b)],_0x4476ed=(_0x1c324d,_0x1c46bd,_0x44fda6,_0x29cfc0)=>{for(var _0x4cf889=_0x29cfc0>0x1?void 0x0:_0x29cfc0?_0x3026f1(_0x1c46bd,_0x44fda6):_0x1c46bd,_0x25506f=_0x1c324d['length']-0x1,_0x37336;_0x25506f>=0x0;_0x25506f--)(_0x37336=_0x1c324d[_0x25506f])&&(_0x4cf889=(_0x29cfc0?_0x37336(_0x1c46bd,_0x44fda6,_0x4cf889):_0x37336(_0x4cf889))||_0x4cf889);return _0x29cfc0&&_0x4cf889&&_0xabb556(_0x1c46bd,_0x44fda6,_0x4cf889),_0x4cf889;},_0x210132=(_0x17be3e,_0xa292cf)=>(_0x413779,_0x2ca103)=>_0xa292cf(_0x413779,_0x2ca103,_0x17be3e);_0x48e51e[_0x3bc2c8(0x47d)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x4eadf8,_0x27bf38,_0x52f085,_0x4c6180,_0x29615a){const _0x45676d=_0x3bc2c8;super(),_0x314dc6(this,_0x45676d(0x125),new Map()),_0x314dc6(this,_0x45676d(0x2ba),new Map()),_0x314dc6(this,'_disabled',!0x1),(this[_0x45676d(0x4cb)]=_0x4eadf8,this[_0x45676d(0x163)]=_0x27bf38,this['_beforeCloseService']=_0x52f085,this[_0x45676d(0x24c)]=_0x4c6180,this[_0x45676d(0x49a)]=_0x29615a,this[_0x45676d(0x1bf)]());}[_0x3bc2c8(0x397)](){const _0x4f3741=_0x3bc2c8;this[_0x4f3741(0x324)]=!0x0;}[_0x3bc2c8(0x412)](){this['_disabled']=!0x1;}[_0x3bc2c8(0x314)](){const _0xf8fbf4=_0x3bc2c8;this[_0xf8fbf4(0x4c1)]()[_0xf8fbf4(0x3a3)](()=>super['dispose']());}async['loadOfflineData'](_0x1cfd12){const _0x83239d=_0x3bc2c8;return this[_0x83239d(0x324)]?null:this['_localStorageService'][_0x83239d(0x2f1)](_0x261829(_0x1cfd12));}async[_0x3bc2c8(0x367)](_0x35dd68,_0x508c16){const _0x5227ad=_0x3bc2c8;return!!this[_0x5227ad(0x163)][_0x5227ad(0x3bc)](_0x35dd68,_0x508c16);}[_0x3bc2c8(0x4ee)](_0x40fe5e,_0x526eac,_0x4b817f,_0x432742){const _0x3ef44d=_0x3bc2c8,_0x26651d=this[_0x3ef44d(0x49a)][_0x3ef44d(0x22d)](_0x40fe5e);this[_0x3ef44d(0x125)][_0x3ef44d(0x10d)](_0x40fe5e,{'unitID':_0x40fe5e,'type':_0x526eac,'awaitingChangeset':_0x4b817f,'mutations':_0x432742,'rev':_0x26651d}),this['_saveTaskMap']['has'](_0x40fe5e)||this[_0x3ef44d(0x4f3)](_0x40fe5e);}['_scheduleSaving'](_0x3cad75){const _0x170741=_0x3bc2c8,_0x5a556d=this[_0x170741(0xeb)]();_0x5a556d===0x0?this[_0x170741(0x2fe)](_0x3cad75):this['_saveTaskMap'][_0x170741(0x10d)](_0x3cad75,setTimeout(()=>this[_0x170741(0x2fe)](_0x3cad75),_0x5a556d));}[_0x3bc2c8(0xeb)](){const _0x2c9b4e=_0x3bc2c8;var _0x15bf01;return(_0x15bf01=this[_0x2c9b4e(0x4cb)][_0x2c9b4e(0x1db)](_0x23080c))!=null?_0x15bf01:0x3e8;}[_0x3bc2c8(0x2fe)](_0xad9003){const _0x56a7d7=_0x3bc2c8,_0x3f05cb=this[_0x56a7d7(0x2ba)]['get'](_0xad9003);return _0x3f05cb!==void 0x0&&window['clearTimeout'](_0x3f05cb),this['_localStorageService']['setItem'](_0x261829(_0xad9003),this['_cachedData'][_0x56a7d7(0x451)](_0xad9003))['then'](()=>this[_0x56a7d7(0x2ba)][_0x56a7d7(0x344)](_0xad9003));}async['exhaustSavingTask'](){const _0x4fdf54=_0x3bc2c8,_0x270b28=[];this[_0x4fdf54(0x2ba)][_0x4fdf54(0x255)]((_0xe425c8,_0x3ad9c1)=>{const _0x75eced=_0x4fdf54;window['clearTimeout'](_0xe425c8),_0x270b28[_0x75eced(0x13d)](this[_0x75eced(0x2fe)](_0x3ad9c1)[_0x75eced(0x3a3)](()=>{const _0x7fc659=_0x75eced;this[_0x7fc659(0x2ba)][_0x7fc659(0x344)](_0x3ad9c1);}));}),await Promise[_0x4fdf54(0x21a)](_0x270b28);}[_0x3bc2c8(0x1bf)](){const _0x128679=_0x3bc2c8;this[_0x128679(0x131)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x263b2e=_0x128679;if(this[_0x263b2e(0x2ba)]['size'])return this['_localeService']['t'](_0x263b2e(0x42c));}));}},_0x48e51e[_0x3bc2c8(0x47d)]=_0x4476ed([_0x210132(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x210132(0x1,_0x5b7cfd[_0x3bc2c8(0x4d1)]),_0x210132(0x2,_0x2ce95d['IBeforeCloseService']),_0x210132(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x210132(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)]))],_0x48e51e[_0x3bc2c8(0x47d)]);function _0x261829(_0x55ad0a){return'unit-cache-'+_0x55ad0a;}var _0x519a14=Object[_0x3bc2c8(0x361)],_0x53f843=Object[_0x3bc2c8(0x48b)],_0x1b9d69=(_0x28cbc1,_0x18948a,_0x27196f,_0x27b2a9)=>{const _0x25449c=_0x3bc2c8;for(var _0x67ab64=_0x27b2a9>0x1?void 0x0:_0x27b2a9?_0x53f843(_0x18948a,_0x27196f):_0x18948a,_0x2a8e7f=_0x28cbc1[_0x25449c(0x3d6)]-0x1,_0x333d83;_0x2a8e7f>=0x0;_0x2a8e7f--)(_0x333d83=_0x28cbc1[_0x2a8e7f])&&(_0x67ab64=(_0x27b2a9?_0x333d83(_0x18948a,_0x27196f,_0x67ab64):_0x333d83(_0x67ab64))||_0x67ab64);return _0x27b2a9&&_0x67ab64&&_0x519a14(_0x18948a,_0x27196f,_0x67ab64),_0x67ab64;},_0x591682=(_0x4fdf01,_0x46d8af)=>(_0x2ce797,_0x378aa9)=>_0x46d8af(_0x2ce797,_0x378aa9,_0x4fdf01);function _0x5eafe9(_0x47ca35){const _0x4319cd=_0x3bc2c8,{unitID:_0xd877a8,mutations:_0x2d1552}=_0x47ca35;return{'unitId':_0xd877a8,'subUnitId':_0x2d1552[0x0][_0x4319cd(0x3c2)][_0x4319cd(0x2e3)]};}let _0x2cedfe=class{constructor(_0x51d68f,_0x5f56b4,_0x38013d){const _0xc07845=_0x3bc2c8;this[_0xc07845(0x30f)]=_0x51d68f,this['_transformService']=_0x5f56b4,this[_0xc07845(0x2cd)]=_0x38013d;}[_0x3bc2c8(0x109)](_0x33ebcd){const _0x3b1a0d=_0x3bc2c8;var _0x477709,_0x2af312,_0xf332cb,_0x11f23a;const _0x519862=this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0xa62622['SheetsSelectionsService']),{unitId:_0x4880e2,subUnitId:_0xb76232}=_0x5eafe9(_0x33ebcd),_0x33081d=_0x519862['getWorkbookSelections'](_0x4880e2)[_0x3b1a0d(0x222)](),_0x5a5983=(_0x2af312=(_0x477709=this[_0x3b1a0d(0x2cd)][_0x3b1a0d(0x467)](_0x4880e2))==null?void 0x0:_0x477709[_0x3b1a0d(0x240)]())==null?void 0x0:_0x2af312[_0x3b1a0d(0x43d)]();if(_0x33081d[_0x3b1a0d(0x3d6)]===0x0||!_0x4880e2||!_0xb76232)return;const _0x3709d2=[{'id':_0xa62622[_0x3b1a0d(0x32e)]['id'],'params':{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x5b7cfd[_0x3b1a0d(0x2f6)][_0x3b1a0d(0x29b)](_0x33081d)}}],_0x1082a4=this[_0x3b1a0d(0x3a1)][_0x3b1a0d(0x4b8)](_0x33ebcd,_0x3709d2);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1082a4))throw _0x1082a4[_0x3b1a0d(0x476)];const _0x154bf7=(_0x11f23a=(_0xf332cb=_0x1082a4[_0x3b1a0d(0x275)][0x0])==null?void 0x0:_0xf332cb[_0x3b1a0d(0x3c2)])==null?void 0x0:_0x11f23a[_0x3b1a0d(0x4ff)];Array[_0x3b1a0d(0x1cc)](_0x154bf7)&&_0x154bf7[_0x3b1a0d(0x3d6)]&&this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0x5b7cfd[_0x3b1a0d(0x27d)])[_0x3b1a0d(0x2a7)](_0xa62622[_0x3b1a0d(0x32e)]['id'],{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x154bf7});}};_0x2cedfe=_0x1b9d69([_0x591682(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x591682(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x591682(0x2,_0x5b7cfd[_0x3bc2c8(0x29e)])],_0x2cedfe);const _0x5e9761=_0x5b7cfd[_0x3bc2c8(0x20d)]('univer-pro.collaboration-client.single-active-unit-service');var _0x695cf2=(_0x3d3f52=>(_0x3d3f52[_0x3d3f52['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d3f52[_0x3d3f52[_0x3bc2c8(0x3de)]=0x1]=_0x3bc2c8(0x3de),_0x3d3f52))(_0x695cf2||{});const _0x2ff85a=0x7530,_0x5f0b59=_0x3bc2c8(0x4a7);class _0x384617 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x1b8363=_0x3bc2c8;super(),_0x314dc6(this,'_id',_0x5b7cfd[_0x1b8363(0x2f6)][_0x1b8363(0x1d9)]()),_0x314dc6(this,_0x1b8363(0x34f),new Set()),_0x314dc6(this,_0x1b8363(0x34c),new Map()),_0x314dc6(this,_0x1b8363(0x290),null),_0x314dc6(this,'_clearOtherTimers',new Map()),_0x314dc6(this,_0x1b8363(0x15d),new Map()),this['_init']();}[_0x3bc2c8(0x314)](){const _0x3d518f=_0x3bc2c8;super[_0x3d518f(0x314)](),this[_0x3d518f(0x4dc)]['forEach']((_0xac10a,_0x2b10cc)=>this[_0x3d518f(0x23e)](_0x2b10cc)),this[_0x3d518f(0x290)]&&window[_0x3d518f(0x40c)](this[_0x3d518f(0x290)]);}[_0x3bc2c8(0x112)](_0x4f4147){const _0x3b2c73=_0x3bc2c8;return this[_0x3b2c73(0x169)](_0x4f4147)[_0x3b2c73(0x198)](_0x266483['distinctUntilChanged']());}[_0x3bc2c8(0x179)](_0x11c06d){const _0x57a5a7=_0x3bc2c8;this['_selfUnitIDs'][_0x57a5a7(0x127)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x57a5a7(0x225)](_0x11c06d),this[_0x57a5a7(0x1ca)]({'type':0x0,'memberID':this[_0x57a5a7(0x28e)],'unitIDs':[_0x11c06d],'isForwarded':!0x1});}['disposeUnit'](_0x379195){const _0x888ea0=_0x3bc2c8;this[_0x888ea0(0x34f)][_0x888ea0(0x344)](_0x379195),this['_selfUnitIDs'][_0x888ea0(0x127)]===0x0&&this[_0x888ea0(0x290)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3018bc=_0x3bc2c8;this[_0x3018bc(0x131)](_0x5b7cfd[_0x3018bc(0x3d9)](_0x266483[_0x3018bc(0x408)](window,'storage')[_0x3018bc(0x2f5)](_0x1f4e3e=>{const _0xbb27ce=_0x3018bc;if(_0x1f4e3e[_0xbb27ce(0x438)]!==_0x5f0b59||!_0x1f4e3e[_0xbb27ce(0x44b)])return;const _0x2c9bb3=JSON[_0xbb27ce(0x4ec)](_0x1f4e3e['newValue']);this['_handleEvent'](_0x2c9bb3);}))),window[_0x3018bc(0x435)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3018bc(0x28e)],'unitIDs':Array[_0x3018bc(0x1e3)](this[_0x3018bc(0x34f)])}));}[_0x3bc2c8(0x3b4)](_0x44c83b){const _0x1aadd4=_0x3bc2c8;switch(_0x44c83b['type']){case 0x0:this[_0x1aadd4(0x18c)](_0x44c83b);break;case 0x1:this[_0x1aadd4(0x10f)](_0x44c83b);break;case 0x2:this['_handleHeartbeatEvent'](_0x44c83b);break;}}[_0x3bc2c8(0x18c)](_0x55828a){const _0x1b0d7f=_0x3bc2c8,{unitIDs:_0x3d2640,memberID:_0x4c3cbb,isForwarded:_0x5e176b}=_0x55828a;_0x3d2640[_0x1b0d7f(0x255)](_0x531a15=>{const _0x548529=_0x1b0d7f;if(!_0x5e176b&&this[_0x548529(0x34c)][_0x548529(0x232)](_0x531a15)&&this['_ensureSubject'](_0x531a15)[_0x548529(0xe4)](0x1),!this[_0x548529(0x34c)]['has'](_0x531a15)||!this[_0x548529(0x34c)][_0x548529(0x451)](_0x531a15)['has'](_0x4c3cbb)){const _0x560ad4=this[_0x548529(0x34c)]['get'](_0x531a15)||new Set();_0x560ad4[_0x548529(0x225)](_0x4c3cbb),this[_0x548529(0x34c)][_0x548529(0x10d)](_0x531a15,_0x560ad4),this[_0x548529(0x383)](_0x4c3cbb);}}),_0x5e176b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1b0d7f(0x34f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x18119c){const _0x12a0c5=_0x3bc2c8;this[_0x12a0c5(0x23e)](_0x18119c);const _0x3e4ec7=window[_0x12a0c5(0x19f)](()=>{this['_unitOnClients']['forEach'](_0x303923=>{const _0x5c6221=_0x4f28;_0x303923[_0x5c6221(0x344)](_0x18119c);});},_0x2ff85a*0x2);this['_clearOtherTimers'][_0x12a0c5(0x10d)](_0x18119c,_0x3e4ec7);}[_0x3bc2c8(0x23e)](_0x5ecec9){const _0x592b9d=_0x3bc2c8;if(this[_0x592b9d(0x4dc)][_0x592b9d(0x232)](_0x5ecec9)){const _0x34c26c=this[_0x592b9d(0x4dc)][_0x592b9d(0x451)](_0x5ecec9);_0x34c26c&&window['clearTimeout'](_0x34c26c),this[_0x592b9d(0x4dc)]['set'](_0x5ecec9,null);}}[_0x3bc2c8(0x10f)](_0x3595eb){const _0x3d2d57=_0x3bc2c8,{memberID:_0x22d169,unitIDs:_0x3670ad}=_0x3595eb;_0x3670ad['forEach'](_0x167345=>{const _0x6b2ffd=_0x4f28;var _0x28f9a3;const _0x5c9ba2=this[_0x6b2ffd(0x34c)][_0x6b2ffd(0x451)](_0x167345);_0x5c9ba2&&(_0x5c9ba2[_0x6b2ffd(0x344)](_0x22d169),(_0x28f9a3=this[_0x6b2ffd(0x169)](_0x167345))==null||_0x28f9a3[_0x6b2ffd(0xe4)](_0x5c9ba2[_0x6b2ffd(0x127)]===0x0?0x0:0x1));}),this[_0x3d2d57(0x23e)](_0x22d169);}[_0x3bc2c8(0x144)](_0x3f9189){const _0x3dc727=_0x3bc2c8;this[_0x3dc727(0x383)](_0x3f9189[_0x3dc727(0x48f)]);}[_0x3bc2c8(0x1ca)](_0x105a7f){const _0x722b35=_0x3bc2c8;localStorage[_0x722b35(0x3bc)](_0x5f0b59,JSON['stringify'](_0x105a7f));}[_0x3bc2c8(0x11f)](){const _0x5bba74=_0x3bc2c8;this[_0x5bba74(0x290)]=window['setInterval'](()=>{const _0x53d2cb=_0x5bba74;this[_0x53d2cb(0x1ca)]({'type':0x2,'memberID':this[_0x53d2cb(0x28e)]});},_0x2ff85a);}[_0x3bc2c8(0x169)](_0x27a358){const _0x53d96e=_0x3bc2c8;return this[_0x53d96e(0x15d)][_0x53d96e(0x232)](_0x27a358)||this[_0x53d96e(0x15d)][_0x53d96e(0x10d)](_0x27a358,new _0x266483['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x27a358);}}function _0x57f458(_0x54c21b){let _0x218d1b='';for(const _0x39835b of _0x54c21b){const {startOffset:_0x47d93f,endOffset:_0x2c060c,isActive:_0x303554}=_0x39835b;_0x218d1b['length']&&(_0x218d1b+=','),_0x218d1b+=_0x47d93f+':'+_0x2c060c+':'+(_0x303554?'1':'0');}return _0x218d1b;}function _0x39789b(_0x11fe73){const _0x2b642b=_0x3bc2c8,_0x40bf89=_0x11fe73[_0x2b642b(0x1f6)](','),_0x1e182f=[];for(const _0x3a45ec of _0x40bf89){const [_0x1d494c,_0x21b082,_0x3d050c]=_0x3a45ec['split'](':');_0x1e182f[_0x2b642b(0x13d)]({'startOffset':Number(_0x1d494c),'endOffset':Number(_0x21b082),'collapsed':_0x1d494c===_0x21b082,'isActive':_0x3d050c==='1'});}return _0x1e182f['some'](_0x52b846=>_0x52b846[_0x2b642b(0x2aa)])||(_0x1e182f[0x0]['isActive']=!0x0),_0x1e182f;}class _0x56b650 extends _0x5b7cfd['RxDisposable']{constructor(){const _0x5cf14c=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x5cf14c(0x380),new _0x266483[(_0x5cf14c(0x43e))](null)),_0x314dc6(this,_0x5cf14c(0x1b9),this[_0x5cf14c(0x380)][_0x5cf14c(0x4eb)]());}[_0x3bc2c8(0x195)](_0x29d1f9){const {unitID:_0x47bbea,memberID:_0x306b56,textRanges:_0x130a82}=_0x29d1f9,_0xdaef17=_0x57f458(_0x130a82),_0x5e305a={'unitID':_0x47bbea,'memberID':_0x306b56,'selection':_0xdaef17};this['_collabCursorState$']['next'](_0x5e305a);}}var _0x926cc6=Object[_0x3bc2c8(0x361)],_0x3c39c9=Object[_0x3bc2c8(0x48b)],_0x14fbbb=(_0xc9eb79,_0x1825b5,_0x4c167a,_0x19d5a3)=>{for(var _0x5a64db=_0x19d5a3>0x1?void 0x0:_0x19d5a3?_0x3c39c9(_0x1825b5,_0x4c167a):_0x1825b5,_0x5f48cf=_0xc9eb79['length']-0x1,_0x4da180;_0x5f48cf>=0x0;_0x5f48cf--)(_0x4da180=_0xc9eb79[_0x5f48cf])&&(_0x5a64db=(_0x19d5a3?_0x4da180(_0x1825b5,_0x4c167a,_0x5a64db):_0x4da180(_0x5a64db))||_0x5a64db);return _0x19d5a3&&_0x5a64db&&_0x926cc6(_0x1825b5,_0x4c167a,_0x5a64db),_0x5a64db;},_0x527238=(_0xa17694,_0x2e12a7)=>(_0x5b008c,_0x1b5b5b)=>_0x2e12a7(_0x5b008c,_0x1b5b5b,_0xa17694);let _0x12ef35=class{constructor(_0x12c520,_0x40e9ba){const _0x2281c4=_0x3bc2c8;this[_0x2281c4(0x30f)]=_0x12c520,this[_0x2281c4(0x3a1)]=_0x40e9ba;}['transformSelections'](_0x3a4a99){const _0x425454=_0x3bc2c8;var _0x3c81b4;const _0x42182b=this['_injector']['get'](_0x3e2148[_0x425454(0x2c1)]),_0x348b63=(_0x3c81b4=_0x42182b['getDocRanges']())!=null?_0x3c81b4:[];if(_0x348b63['length']===0x0)return;const _0x34e866=[{'id':_0x425454(0x2d2),'params':{'unitId':_0x3a4a99[_0x425454(0x1b0)],'actions':null,'textRanges':_0x348b63}}],_0x1ce4a3=this[_0x425454(0x3a1)]['transformMutationsWithChangeset'](_0x3a4a99,_0x34e866);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1ce4a3))throw _0x1ce4a3[_0x425454(0x476)];const _0x4285f4=_0x1ce4a3['m2Prime'][0x0][_0x425454(0x3c2)][_0x425454(0x138)];Array[_0x425454(0x1cc)](_0x4285f4)&&_0x4285f4[_0x425454(0x3d6)]&&_0x42182b[_0x425454(0x464)](_0x4285f4,!0x1);}};_0x12ef35=_0x14fbbb([_0x527238(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x527238(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x12ef35);const _0x2533e1=new Set([_0xa62622[_0x3bc2c8(0x253)]['id']]);function _0x23aaad(_0x5c6ed7,_0x1c1d36,_0x18af57,_0x659c13,_0x476de7){const _0x386e65=_0x3bc2c8;var _0x194661,_0x2544f1,_0xb514e,_0x37436b;const _0x2485da=[];for(const _0xfe7d57 of _0x5c6ed7)if(_0x2533e1[_0x386e65(0x232)](_0xfe7d57['id'])){if(_0x2485da[_0x386e65(0x3d6)]>0x0)break;_0x2485da['push'](_0xfe7d57);break;}else _0x2485da[_0x386e65(0x13d)](_0xfe7d57);const _0x4ab587=(_0x2544f1=(_0x194661=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0x194661[_0x386e65(0x13e)])!=null?_0x2544f1:_0x386e65(0x388),_0x51b4e2=(_0x37436b=(_0xb514e=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0xb514e[_0x386e65(0x48f)])!=null?_0x37436b:_0x386e65(0x388);return{'changeset':{'unitID':_0x1c1d36,'type':_0x56cbe4[_0x386e65(0x24a)](_0x18af57[_0x386e65(0x28c)](_0x1c1d36)),'baseRev':_0x659c13[_0x386e65(0x22d)](_0x1c1d36),'revision':0x0,'userID':_0x4ab587,'memberID':_0x51b4e2,'mutations':_0x2485da},'pendingMutations':_0x5c6ed7[_0x386e65(0xef)](_0x2485da[_0x386e65(0x3d6)])};}function _0x581ccf(_0x4dbf9a,_0xb10010,_0x5310ad,_0x47ae78,_0x5bb3d3){const _0x41eb76=_0x3bc2c8;var _0x1fde3a,_0xdd26d6,_0x561dcd,_0x482c07;const _0x5319f1=[_0x4dbf9a[_0x41eb76(0x4f1)]((_0x45c534,_0x1a762f)=>{const _0x32f2f0=_0x41eb76;var _0x8d6ec6;const {id:_0x1d8173}=_0x45c534,{id:_0x294d01,type:_0x199c78}=_0x1a762f,_0x294dc4=(_0x8d6ec6=_0x45c534['params'])!=null?_0x8d6ec6:{'actions':null},_0x50d7c3=_0x1a762f[_0x32f2f0(0x3c2)];if(_0x1d8173&&_0x1d8173!==_0x294d01)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d8173+_0x32f2f0(0x1a7)+_0x294d01+'.');return{..._0x45c534,'id':_0x294d01,'type':_0x199c78,'params':{'unitId':_0x50d7c3[_0x32f2f0(0x373)],'textRanges':_0x50d7c3[_0x32f2f0(0x138)],'actions':_0x5b7cfd[_0x32f2f0(0x46c)][_0x32f2f0(0x14d)](_0x294dc4[_0x32f2f0(0x2fd)],_0x50d7c3[_0x32f2f0(0x2fd)])}};},{})],_0x24142e=(_0xdd26d6=(_0x1fde3a=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x1fde3a[_0x41eb76(0x13e)])!=null?_0xdd26d6:_0x41eb76(0x388),_0x5162a8=(_0x482c07=(_0x561dcd=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x561dcd[_0x41eb76(0x48f)])!=null?_0x482c07:_0x41eb76(0x388);return{'changeset':{'unitID':_0xb10010,'type':_0x56cbe4[_0x41eb76(0x24a)](_0x5310ad[_0x41eb76(0x28c)](_0xb10010)),'baseRev':_0x47ae78[_0x41eb76(0x22d)](_0xb10010),'revision':0x0,'userID':_0x24142e,'memberID':_0x5162a8,'mutations':_0x5319f1},'pendingMutations':[]};}const _0x5844c5={'id':_0xa62622[_0x3bc2c8(0x196)]['id'],'type':_0x5b7cfd['CommandType'][_0x3bc2c8(0x374)],'params':{}};var _0x2ccec7=Object[_0x3bc2c8(0x361)],_0x1b82a6=Object['getOwnPropertyDescriptor'],_0x107b64=(_0x9cd2b,_0x2317c4,_0x38a486,_0xd104d)=>{const _0x738a90=_0x3bc2c8;for(var _0x2b8bea=_0xd104d>0x1?void 0x0:_0xd104d?_0x1b82a6(_0x2317c4,_0x38a486):_0x2317c4,_0x1c8134=_0x9cd2b[_0x738a90(0x3d6)]-0x1,_0x2f6e87;_0x1c8134>=0x0;_0x1c8134--)(_0x2f6e87=_0x9cd2b[_0x1c8134])&&(_0x2b8bea=(_0xd104d?_0x2f6e87(_0x2317c4,_0x38a486,_0x2b8bea):_0x2f6e87(_0x2b8bea))||_0x2b8bea);return _0xd104d&&_0x2b8bea&&_0x2ccec7(_0x2317c4,_0x38a486,_0x2b8bea),_0x2b8bea;},_0x45b06d=(_0x41e99d,_0x43bc76)=>(_0x1c98aa,_0x48f161)=>_0x43bc76(_0x1c98aa,_0x48f161,_0x41e99d),_0x5926c5=(_0x4ee04d=>(_0x4ee04d[_0x3bc2c8(0x352)]='not_collab',_0x4ee04d[_0x3bc2c8(0xfd)]='synced',_0x4ee04d[_0x3bc2c8(0x263)]='pending',_0x4ee04d[_0x3bc2c8(0x4b9)]=_0x3bc2c8(0x265),_0x4ee04d[_0x3bc2c8(0x268)]=_0x3bc2c8(0x41a),_0x4ee04d[_0x3bc2c8(0x104)]=_0x3bc2c8(0x4a1),_0x4ee04d[_0x3bc2c8(0x35d)]=_0x3bc2c8(0x209),_0x4ee04d[_0x3bc2c8(0x3b0)]=_0x3bc2c8(0x392),_0x4ee04d))(_0x5926c5||{});class _0xa8a4b9{constructor(_0x107178,_0x4959cd,_0x1f7f91,_0x33b089,_0x255e1d,_0x40cf48,_0x470c01,_0x22209c,_0x301d64){const _0x5d1b03=_0x3bc2c8;_0x314dc6(this,_0x5d1b03(0x4e1),null),_0x314dc6(this,'_pendingMutations',[]),(this[_0x5d1b03(0x1b0)]=_0x107178,this[_0x5d1b03(0x413)]=_0x4959cd,this[_0x5d1b03(0x1f7)]=_0x255e1d,this[_0x5d1b03(0x2c6)]=_0x40cf48,this[_0x5d1b03(0x310)]=_0x470c01,this[_0x5d1b03(0x49a)]=_0x22209c,this['_localCacheService']=_0x301d64,this['_awaitingChangeset']=_0x1f7f91,this[_0x5d1b03(0x3e2)]=_0x33b089);}['_checkMissing'](_0x513164){const _0x1ff405=_0x3bc2c8,_0x1d495b=this[_0x1ff405(0x49a)][_0x1ff405(0x22d)](this[_0x1ff405(0x1b0)]);return _0x513164[_0x1ff405(0x1b1)]>_0x1d495b+0x1?(this[_0x1ff405(0x1f7)][_0x1ff405(0x514)]({'from':_0x1d495b,'to':_0x513164[_0x1ff405(0x1b1)]-0x1}),!0x0):!0x1;}[_0x3bc2c8(0x199)](_0x414360){const _0x1a190e=_0x3bc2c8;this[_0x1a190e(0x310)][_0x1a190e(0x1c6)](this[_0x1a190e(0x1b0)],_0x414360);}['_transformSelections'](_0x27927b){const _0x4760f9=_0x3bc2c8;var _0x1f4121,_0x201739;(_0x201739=(_0x1f4121=this[_0x4760f9(0x1f7)])[_0x4760f9(0x4b2)])==null||_0x201739[_0x4760f9(0x126)](_0x1f4121,_0x27927b);}[_0x3bc2c8(0x461)](_0xbeb817){const _0x27ce0b=_0x3bc2c8;var _0x55fb08,_0x2c23ff;return(_0x2c23ff=(_0x55fb08=this[_0x27ce0b(0x1f7)])[_0x27ce0b(0x1a9)])==null?void 0x0:_0x2c23ff['call'](_0x55fb08,_0xbeb817);}[_0x3bc2c8(0x3b2)](_0x5a637e){const _0xe1bb4a=_0x3bc2c8;var _0x14d300,_0x4508df,_0x3b8c81;return(_0x3b8c81=(_0x4508df=(_0x14d300=this[_0xe1bb4a(0x1f7)])[_0xe1bb4a(0x258)])==null?void 0x0:_0x4508df[_0xe1bb4a(0x126)](_0x14d300,_0x5a637e))!=null?_0x3b8c81:_0x5a637e;}[_0x3bc2c8(0x44a)](_0x9e0a33){const _0x51a77e=_0x3bc2c8;var _0x5360e0,_0xcebb28;if(this[_0x51a77e(0x413)]===_0x249560[_0x51a77e(0x3a6)]){const {unitID:_0x2014a6,mutations:_0x370dcd,memberID:_0x306380}=_0x9e0a33,_0x4d94e9=_0x370dcd[0x0][_0x51a77e(0x3c2)]['textRanges'];Array['isArray'](_0x4d94e9)&&_0x4d94e9[_0x51a77e(0x3d6)]>0x0&&((_0xcebb28=(_0x5360e0=this[_0x51a77e(0x1f7)])[_0x51a77e(0x2e0)])==null||_0xcebb28['call'](_0x5360e0,{'unitID':_0x2014a6,'memberID':_0x306380,'textRanges':_0x4d94e9}));}}[_0x3bc2c8(0x100)](){const _0x137635=_0x3bc2c8;this['_localCacheService'][_0x137635(0x4ee)](this[_0x137635(0x1b0)],this['type'],this[_0x137635(0x4e1)],this[_0x137635(0x3e2)]);}['_getCurrentRevision'](){const _0x33ffe7=_0x3bc2c8;return this[_0x33ffe7(0x49a)][_0x33ffe7(0x22d)](this[_0x33ffe7(0x1b0)]);}[_0x3bc2c8(0x393)](){const _0x373fcc=_0x3bc2c8;this[_0x373fcc(0x49a)][_0x373fcc(0x157)](this[_0x373fcc(0x1b0)]);}[_0x3bc2c8(0x350)](_0xa3dc7f){const _0x67958a=_0x3bc2c8;var _0x38b6fa;const _0x594c24=this['_transformRemoteChangesetByIMECache'](_0xa3dc7f),_0x31d86b=_0x5b7cfd[_0x67958a(0x16b)](_0x594c24[_0x67958a(0x1fc)],this[_0x67958a(0x2c6)],{'fromCollab':!0x0});if(!_0x31d86b['result'])throw _0x31d86b[_0x67958a(0x476)]instanceof Error?_0x31d86b['error']:new Error((_0x38b6fa=_0x31d86b[_0x67958a(0x476)])!=null?_0x38b6fa:_0x67958a(0x216));this[_0x67958a(0x461)](_0x594c24),this['_transformUndoredo'](_0xa3dc7f),this[_0x67958a(0x421)](_0x594c24),this[_0x67958a(0x44a)](_0x594c24),this[_0x67958a(0x393)]();}}let _0x5124ae=class extends _0xa8a4b9{constructor(_0x2cf784,_0xb7b634,_0x479646,_0x4babc5,_0x5581d3,_0x3e834a,_0x9da254,_0x5aa283,_0x3c4caf,_0x58023c){const _0x32f659=_0x3bc2c8;super(_0x2cf784,_0xb7b634,null,[],_0x479646,_0x5aa283,_0x9da254,_0x4babc5,_0x5581d3),_0x314dc6(this,_0x32f659(0x4ad),_0x32f659(0x11e)),(this['_injector']=_0x3e834a,this[_0x32f659(0x4e7)]=_0x3c4caf,this['_transformService']=_0x58023c);}[_0x3bc2c8(0x295)](_0xf9323d){const _0x45492b=_0x3bc2c8,_0x413863=this[_0x45492b(0x30f)][_0x45492b(0x1a3)](_0x5f4482,this[_0x45492b(0x1b0)],this[_0x45492b(0x413)],[_0xf9323d],this[_0x45492b(0x1f7)]);return _0x413863[_0x45492b(0x364)](),_0x413863[_0x45492b(0x100)](),_0x413863;}[_0x3bc2c8(0x384)](_0x1a2dfd){const _0x5a52ad=_0x3bc2c8;if(this['_checkMissing'](_0x1a2dfd))return this[_0x5a52ad(0x30f)][_0x5a52ad(0x1a3)](_0x75f119,this[_0x5a52ad(0x1b0)],this[_0x5a52ad(0x413)],null,[],null,[_0x1a2dfd],this[_0x5a52ad(0x1f7)]);try{const _0x138527=this[_0x5a52ad(0x3a1)][_0x5a52ad(0x4b8)](_0x1a2dfd,[_0x5844c5]);if(_0x56cbe4[_0x5a52ad(0x180)](_0x138527)){const {c1Prime:_0x158cc1}=_0x138527;return this[_0x5a52ad(0x350)](_0x158cc1),this;}throw _0x138527[_0x5a52ad(0x476)];}catch(_0x2ece6d){return this[_0x5a52ad(0x4e7)]['error'](_0x2ece6d),this['_onConflict'](!0x1);}}[_0x3bc2c8(0x2be)](_0x2d9bf9){const _0x101b73=_0x3bc2c8;return this[_0x101b73(0x30f)][_0x101b73(0x1a3)](_0x20ac70,this[_0x101b73(0x1b0)],this[_0x101b73(0x413)],null,[],this[_0x101b73(0x1f7)],_0x2d9bf9);}[_0x3bc2c8(0xf5)](){const _0x4b0257=_0x3bc2c8;throw new Error(_0x4b0257(0x137));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x42f11c=_0x3bc2c8;return this[_0x42f11c(0x30f)][_0x42f11c(0x1a3)](_0x8646cf,this['unitID'],this[_0x42f11c(0x413)],null,[],this[_0x42f11c(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x3551ee=_0x3bc2c8;throw new Error(_0x3551ee(0x12f));}['fetchMiss'](){const _0x2c1ffb=_0x3bc2c8,_0x55bbfb=this[_0x2c1ffb(0x49a)][_0x2c1ffb(0x22d)](this[_0x2c1ffb(0x1b0)]);return this[_0x2c1ffb(0x1f7)]['onMissingChangesets']({'from':_0x55bbfb,'to':0x0}),this[_0x2c1ffb(0x30f)][_0x2c1ffb(0x1a3)](_0x75f119,this['unitID'],this[_0x2c1ffb(0x413)],null,[],null,[],this[_0x2c1ffb(0x1f7)]);}};_0x5124ae=_0x107b64([_0x45b06d(0x3,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x5124ae);let _0x5f4482=class extends _0xa8a4b9{constructor(_0x46af10,_0x531f0e,_0x4ffd47,_0x5795fe,_0x427166,_0x2f2892,_0x15d815,_0x309bfb,_0x25670a,_0x4a0b74,_0x334f9f,_0x5b13c6,_0x1c30a9,_0x4bc876){const _0x5d6087=_0x3bc2c8;super(_0x46af10,_0x531f0e,null,_0x4ffd47,_0x5795fe,_0x4a0b74,_0x4bc876,_0x2f2892,_0x15d815),_0x314dc6(this,_0x5d6087(0x4ad),_0x5d6087(0x389)),_0x314dc6(this,_0x5d6087(0x430),null),_0x314dc6(this,_0x5d6087(0x32f),null),(this[_0x5d6087(0x30f)]=_0x427166,this[_0x5d6087(0x159)]=_0x309bfb,this[_0x5d6087(0x4e7)]=_0x25670a,this[_0x5d6087(0x4cb)]=_0x334f9f,this[_0x5d6087(0x3a1)]=_0x5b13c6,this[_0x5d6087(0x10b)]=_0x1c30a9);}[_0x3bc2c8(0x295)](_0x440a67){return this['_pendingMutations']['push'](_0x440a67),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x323a16){const _0xadd395=_0x3bc2c8;if(this[_0xadd395(0x36f)](_0x323a16))return this['_clearScheduledTask'](),this[_0xadd395(0x30f)]['createInstance'](_0x75f119,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],null,this['_pendingMutations'],null,[_0x323a16],this['_handler']);try{const _0x457f3d=this[_0xadd395(0x3a1)][_0xadd395(0x4b8)](_0x323a16,this[_0xadd395(0x3e2)]);if(_0x56cbe4[_0xadd395(0x180)](_0x457f3d)){const {c1Prime:_0x1581ba,m2Prime:_0x1b46ff}=_0x457f3d;this['_executeRemoteChangeset'](_0x1581ba);const _0x312ad4=this[_0xadd395(0x30f)]['createInstance'](_0x5f4482,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],_0x1b46ff,this[_0xadd395(0x1f7)]);return this['_clearScheduledTask'](),_0x312ad4[_0xadd395(0x364)](this[_0xadd395(0x430)]?Math[_0xadd395(0x26a)](0x0,new Date()[_0xadd395(0x3f3)]()-this[_0xadd395(0x430)]):this['_getSendChangesetTimeout']()),_0x312ad4;}throw _0x457f3d[_0xadd395(0x476)];}catch(_0x1de043){return this[_0xadd395(0x4e7)]['error'](_0x1de043),this[_0xadd395(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](){const _0x129a5d=_0x3bc2c8;throw new Error(_0x129a5d(0x43b));}[_0x3bc2c8(0x38f)](){const _0x486359=_0x3bc2c8;throw new Error(_0x486359(0x25a));}['toggleOffline'](){const _0x2c7f09=_0x3bc2c8;return this[_0x2c7f09(0x2a8)](),this[_0x2c7f09(0x30f)][_0x2c7f09(0x1a3)](_0x8646cf,this[_0x2c7f09(0x1b0)],this[_0x2c7f09(0x413)],null,this[_0x2c7f09(0x3e2)],this[_0x2c7f09(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['_schedule'](_0x31792b){const _0x41a8b1=_0x3bc2c8,_0x52aade=_0x31792b!=null?_0x31792b:this[_0x41a8b1(0x4fc)]();this[_0x41a8b1(0x430)]=new Date()[_0x41a8b1(0x3f3)](),this[_0x41a8b1(0x32f)]=window[_0x41a8b1(0x19f)](()=>{const _0x4be336=_0x41a8b1;this[_0x4be336(0x2a8)]();let _0x3983ad=null;switch(this[_0x4be336(0x413)]){case _0x249560[_0x4be336(0x301)]:{_0x3983ad=_0x23aaad(this['_pendingMutations'],this[_0x4be336(0x1b0)],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}case _0x249560['UNIVER_DOC']:{this[_0x4be336(0x3e2)][_0x4be336(0x201)](_0x2550ee=>_0x2550ee['id']===_0x3e2148[_0x4be336(0x368)]['id'])?_0x3983ad=_0x581ccf(this[_0x4be336(0x3e2)],this['unitID'],this[_0x4be336(0x10b)],this[_0x4be336(0x49a)],this[_0x4be336(0x159)]):_0x3983ad=_0x23aaad(this['_pendingMutations'],this['unitID'],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4be336(0x413)]+'\x20in\x20_schedule.');}const {changeset:_0x35c3d3,pendingMutations:_0x18b4ae}=_0x3983ad;this[_0x4be336(0x1f7)][_0x4be336(0x3d5)](_0x35c3d3);const _0x2f9502=_0x18b4ae[_0x4be336(0x3d6)]?this['_injector'][_0x4be336(0x1a3)](_0x22cc58,this[_0x4be336(0x1b0)],this['type'],_0x35c3d3,_0x18b4ae,this[_0x4be336(0x1f7)]):this[_0x4be336(0x30f)][_0x4be336(0x1a3)](_0x3cd767,this[_0x4be336(0x1b0)],this[_0x4be336(0x413)],_0x35c3d3,this[_0x4be336(0x1f7)]);_0x2f9502[_0x4be336(0x100)](),this[_0x4be336(0x1f7)][_0x4be336(0x311)](this,_0x2f9502);},_0x52aade);}[_0x3bc2c8(0x4fc)](){const _0x2fb5a6=_0x3bc2c8;var _0x122a7a;const _0xa13b0b=this[_0x2fb5a6(0x4cb)]['getConfig'](_0xa50aed);return(_0x122a7a=_0xa13b0b==null?void 0x0:_0xa13b0b[_0x2fb5a6(0x42b)])!=null?_0x122a7a:0x7d0;}['resend'](){const _0x5f3889=_0x3bc2c8;throw new Error(_0x5f3889(0x4af));}[_0x3bc2c8(0x2a8)](){const _0x1505e9=_0x3bc2c8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1505e9(0x32f)]),this['_sendingTimer']=null);}['_onConflict'](_0x3467db){const _0x3710d4=_0x3bc2c8;return this[_0x3710d4(0x2a8)](),this[_0x3710d4(0x30f)]['createInstance'](_0x20ac70,this[_0x3710d4(0x1b0)],this[_0x3710d4(0x413)],null,this[_0x3710d4(0x3e2)],this[_0x3710d4(0x1f7)],_0x3467db);}};_0x5f4482=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x587d5a)),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x5b7cfd['ICommandService']),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x45b06d(0xb,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x45b06d(0xd,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x5f4482);let _0x3cd767=class extends _0xa8a4b9{constructor(_0x531107,_0x5a6253,_0x3b2f4e,_0x406d7a,_0x2011ad,_0x190bf6,_0x27a2a3,_0x11a400,_0x10d5f2,_0x59ba25,_0x14266d){const _0x23614f=_0x3bc2c8;super(_0x531107,_0x5a6253,_0x3b2f4e,[],_0x406d7a,_0x11a400,_0x14266d,_0x190bf6,_0x27a2a3),_0x314dc6(this,'status','awaiting'),(this['_injector']=_0x2011ad,this[_0x23614f(0x4e7)]=_0x10d5f2,this[_0x23614f(0x3a1)]=_0x59ba25);}[_0x3bc2c8(0x295)](_0x2ac3ce){const _0xc70673=_0x3bc2c8,_0x145a33=this[_0xc70673(0x30f)]['createInstance'](_0x22cc58,this[_0xc70673(0x1b0)],this['type'],this[_0xc70673(0x4e1)],[_0x2ac3ce],this[_0xc70673(0x1f7)]);return _0x145a33['_updateLocalCache'](),_0x145a33;}[_0x3bc2c8(0x384)](_0xf8e6){const _0x189aaa=_0x3bc2c8;if(this[_0x189aaa(0x36f)](_0xf8e6))return this[_0x189aaa(0x30f)]['createInstance'](_0x75f119,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],this['_awaitingChangeset'],[],null,[_0xf8e6],this[_0x189aaa(0x1f7)]);try{const _0x1a905f=this['_transformService'][_0x189aaa(0x175)]([_0xf8e6],[this[_0x189aaa(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x1a905f)){const {c1Prime:_0x59a6c1,c2Prime:_0xbd6a85}=_0x1a905f;this[_0x189aaa(0x350)](_0x59a6c1[0x0]),_0xbd6a85[0x0][_0x189aaa(0x143)]=this[_0x189aaa(0x21c)]();const _0x1e5f41=this[_0x189aaa(0x30f)][_0x189aaa(0x1a3)](_0x3cd767,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],_0xbd6a85[0x0],this[_0x189aaa(0x1f7)]);return _0x1e5f41[_0x189aaa(0x100)](),_0x1e5f41;}return this[_0x189aaa(0x2be)](!0x1);}catch(_0x191ed2){return this[_0x189aaa(0x4e7)]['error'](_0x191ed2),this[_0x189aaa(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x1e1d56){const _0x19b2dd=_0x3bc2c8,_0x202927=this[_0x19b2dd(0x49a)]['getCurrentRevOfUnit'](this[_0x19b2dd(0x1b0)]);if(_0x1e1d56['revision']<_0x202927-0x1)return this;if(this['_checkMissing'](_0x1e1d56))return this[_0x19b2dd(0x30f)]['createInstance'](_0x75f119,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],null,[],this[_0x19b2dd(0x4e1)],[],this['_handler']);this[_0x19b2dd(0x393)]();const _0x501f1c=this[_0x19b2dd(0x30f)][_0x19b2dd(0x1a3)](_0x5124ae,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],this[_0x19b2dd(0x1f7)]);return _0x501f1c[_0x19b2dd(0x100)](),_0x501f1c;}[_0x3bc2c8(0x38f)](_0x4e1176){const _0x2351d7=_0x3bc2c8;return this[_0x2351d7(0x2be)](!!(_0x4e1176!=null&&_0x4e1176[_0x2351d7(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x2a81e2=_0x3bc2c8;return this['_injector']['createInstance'](_0x8646cf,this[_0x2a81e2(0x1b0)],this['type'],this[_0x2a81e2(0x4e1)],[],this[_0x2a81e2(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['resend'](){const _0x23d279=_0x3bc2c8;this[_0x23d279(0x1f7)][_0x23d279(0x3d5)](this[_0x23d279(0x4e1)]);}[_0x3bc2c8(0x2be)](_0x2f36a9){const _0xbd5355=_0x3bc2c8;return this[_0xbd5355(0x30f)][_0xbd5355(0x1a3)](_0x20ac70,this[_0xbd5355(0x1b0)],this[_0xbd5355(0x413)],this[_0xbd5355(0x4e1)],[],this[_0xbd5355(0x1f7)],_0x2f36a9);}};_0x3cd767=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xa,_0x5b7cfd['IUndoRedoService'])],_0x3cd767);let _0x22cc58=class extends _0xa8a4b9{constructor(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x39a265,_0x215c2b,_0x17d48f,_0x944381,_0x9190f0,_0x550378,_0x1e33d0){const _0x5ba40c=_0x3bc2c8;super(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x944381,_0x1e33d0,_0x215c2b,_0x17d48f),_0x314dc6(this,_0x5ba40c(0x4ad),_0x5ba40c(0x41a)),(this[_0x5ba40c(0x30f)]=_0x39a265,this['_logService']=_0x9190f0,this['_transformService']=_0x550378);}[_0x3bc2c8(0x295)](_0x24e649){const _0x813a6f=_0x3bc2c8;return this[_0x813a6f(0x3e2)][_0x813a6f(0x13d)](_0x24e649),this;}[_0x3bc2c8(0x384)](_0x3afded){const _0x4c8613=_0x3bc2c8;if(this[_0x4c8613(0x36f)](_0x3afded))return this[_0x4c8613(0x30f)][_0x4c8613(0x1a3)](_0x75f119,this[_0x4c8613(0x1b0)],this['type'],this[_0x4c8613(0x4e1)],this[_0x4c8613(0x3e2)],null,[_0x3afded],this[_0x4c8613(0x1f7)]);try{const _0x389d42=this[_0x4c8613(0x3a1)][_0x4c8613(0x175)]([_0x3afded],[this[_0x4c8613(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x389d42)){const {c1Prime:_0x4e491b,c2Prime:_0x13cb9f}=_0x389d42,_0x3c6ef5=this[_0x4c8613(0x3a1)][_0x4c8613(0x4b8)](_0x4e491b[0x0],this['_pendingMutations']);if(_0x56cbe4[_0x4c8613(0x180)](_0x3c6ef5)){const {c1Prime:_0x202685,m2Prime:_0x47e621}=_0x3c6ef5;return this[_0x4c8613(0x350)](_0x202685),_0x13cb9f[0x0][_0x4c8613(0x143)]=this[_0x4c8613(0x21c)](),this['_injector']['createInstance'](_0x22cc58,this[_0x4c8613(0x1b0)],this[_0x4c8613(0x413)],_0x13cb9f[0x0],_0x47e621,this[_0x4c8613(0x1f7)]);}throw _0x3c6ef5[_0x4c8613(0x476)];}throw _0x389d42[_0x4c8613(0x476)];}catch(_0x24d1b7){return this[_0x4c8613(0x4e7)][_0x4c8613(0x476)](_0x24d1b7),this[_0x4c8613(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x2e8e9c){const _0xe46b8c=_0x3bc2c8;if(this['_checkMissing'](_0x2e8e9c))return this[_0xe46b8c(0x30f)]['createInstance'](_0x75f119,this['unitID'],this[_0xe46b8c(0x413)],null,this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x4e1)],[],this['_handler']);this[_0xe46b8c(0x393)]();const _0x96419=this[_0xe46b8c(0x30f)][_0xe46b8c(0x1a3)](_0x5f4482,this[_0xe46b8c(0x1b0)],this[_0xe46b8c(0x413)],this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x1f7)]);return _0x96419[_0xe46b8c(0x364)](),_0x96419[_0xe46b8c(0x100)](),_0x96419;}['onRemoteRej'](_0x311f22){const _0x230ed0=_0x3bc2c8;return this[_0x230ed0(0x2be)](!!(_0x311f22!=null&&_0x311f22['isPermissionRej']));}['toggleOffline'](){const _0x481682=_0x3bc2c8;return this[_0x481682(0x30f)][_0x481682(0x1a3)](_0x8646cf,this[_0x481682(0x1b0)],this[_0x481682(0x413)],this['_awaitingChangeset'],this[_0x481682(0x3e2)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x9abe91=_0x3bc2c8;this[_0x9abe91(0x1f7)][_0x9abe91(0x3d5)](this[_0x9abe91(0x4e1)]);}[_0x3bc2c8(0x2be)](_0xb0eff0){const _0x35bf37=_0x3bc2c8;return this[_0x35bf37(0x30f)][_0x35bf37(0x1a3)](_0x20ac70,this[_0x35bf37(0x1b0)],this[_0x35bf37(0x413)],null,this['_pendingMutations'],this['_handler'],_0xb0eff0);}};_0x22cc58=_0x107b64([_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xa,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x22cc58);let _0x20ac70=class extends _0xa8a4b9{constructor(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0x4d5b35=!0x1,_0x160455,_0xcae5a9,_0x4ef7c3,_0x54efa7,_0x20c2e9,_0x4c8116,_0x3e9ffb){const _0x32e3d0=_0x3bc2c8;super(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0xcae5a9,_0x4ef7c3,_0x20c2e9,_0x54efa7),_0x314dc6(this,_0x32e3d0(0x4ad),_0x32e3d0(0x209)),(this[_0x32e3d0(0x338)]=_0x4d5b35,this['_permissionService']=_0x160455,this[_0x32e3d0(0x24c)]=_0x4c8116,this['_notificationService']=_0x3e9ffb,this[_0x32e3d0(0x4e4)](),this[_0x32e3d0(0x43a)](),this[_0x32e3d0(0x11a)]());}['appendMutation'](){return this;}[_0x3bc2c8(0x384)](){return this;}[_0x3bc2c8(0xf5)](){return this;}[_0x3bc2c8(0x38f)](){return this;}['toggleOffline'](){return this;}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x5a7e9d=_0x3bc2c8;throw new Error(_0x5a7e9d(0x1d7));}[_0x3bc2c8(0x43a)](){const _0x66db09=_0x3bc2c8;this[_0x66db09(0x3bf)][_0x66db09(0x4ee)](this[_0x66db09(0x1b0)],this[_0x66db09(0x413)],null,[]);}['_showConflictNotification'](){const _0x260573=_0x3bc2c8;this[_0x260573(0x338)]?this[_0x260573(0x29a)]['show']({'title':this[_0x260573(0x24c)]['t'](_0x260573(0x33b)),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x406)),'type':_0x260573(0x476),'duration':0x0}):this[_0x260573(0x29a)][_0x260573(0x29f)]({'title':this[_0x260573(0x24c)]['t']('conflict.title'),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x49f)),'type':_0x260573(0x476),'duration':0x0});}[_0x3bc2c8(0x11a)](){const _0x5e9a34=_0x3bc2c8;this[_0x5e9a34(0x106)][_0x5e9a34(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x5e9a34(0x1b0)])['id'],!0x1);}};_0x20ac70=_0x107b64([_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x342)])),_0x45b06d(0x7,_0x5b7cfd['ICommandService']),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x9,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x45b06d(0xc,_0x2ce95d[_0x3bc2c8(0x2c3)])],_0x20ac70);let _0x8646cf=class extends _0xa8a4b9{constructor(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0x1b0954,_0xe45562,_0x4ec367,_0xd5b502,_0x4f2055){super(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0xd5b502,_0x4f2055,_0xe45562,_0x4ec367),_0x314dc6(this,'status','offline'),this['_injector']=_0x1b0954;}['appendMutation'](_0x59b588){const _0x115cb3=_0x3bc2c8;return this[_0x115cb3(0x3e2)][_0x115cb3(0x13d)](_0x59b588),this[_0x115cb3(0x100)](),this;}[_0x3bc2c8(0x384)](_0x43afbe){const _0xfbcceb=_0x3bc2c8;throw new Error(_0xfbcceb(0x2a3));}[_0x3bc2c8(0xf5)](){const _0x441481=_0x3bc2c8;throw new Error(_0x441481(0x41d));}[_0x3bc2c8(0x38f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc2c8(0x495)](){return this;}[_0x3bc2c8(0x20e)](){const _0x5bf9dc=_0x3bc2c8,{_injector:_0x1b8cb6,_pendingMutations:_0x4247b2,_awaitingChangeset:_0x2fde7f,unitID:_0x52200c,_handler:_0x19f373,type:_0x29abe6}=this,_0x3b373e=_0x3d51b3(_0x1b8cb6,_0x52200c,_0x29abe6,_0x2fde7f,_0x4247b2,_0x19f373);return _0x3b373e instanceof _0x5f4482?_0x3b373e[_0x5bf9dc(0x364)]():(_0x3b373e instanceof _0x22cc58||_0x3b373e instanceof _0x3cd767)&&_0x3b373e[_0x5bf9dc(0x423)](),_0x3b373e;}[_0x3bc2c8(0x423)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x8646cf=_0x107b64([_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x8646cf);let _0x75f119=class extends _0xa8a4b9{constructor(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x2fd6fa,_0x1fbce8,_0x4abaf1,_0x4a7802,_0x2933ac,_0x129c6e,_0x27a531,_0x100628,_0x464f32,_0x34a5cd){const _0x113dd2=_0x3bc2c8;super(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x4abaf1,_0x100628,_0x464f32,_0x2933ac,_0x129c6e),_0x314dc6(this,_0x113dd2(0x4ad),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2fd6fa,this[_0x113dd2(0x189)]=_0x1fbce8,this[_0x113dd2(0x30f)]=_0x4a7802,this[_0x113dd2(0x4e7)]=_0x27a531,this[_0x113dd2(0x3a1)]=_0x34a5cd);}[_0x3bc2c8(0x42e)](_0x2026a0){const _0x489b8a=_0x3bc2c8;try{const _0x401404=[..._0x2026a0,...this['_queuedRemoteChangesets']],_0x328cde=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x489b8a(0x3b6)](_0x39916b=>!!_0x39916b);let _0x2917d4,_0x2575e6;if(_0x328cde[_0x489b8a(0x3d6)]){const _0x316b63=this[_0x489b8a(0x3a1)][_0x489b8a(0x175)](_0x401404,_0x328cde,!0x1);if(!_0x56cbe4[_0x489b8a(0x3c8)](_0x316b63))throw _0x316b63['error'];_0x2917d4=_0x316b63[_0x489b8a(0x1c9)],_0x2575e6=_0x316b63[_0x489b8a(0x191)];}else _0x2917d4=_0x401404,_0x2575e6=[];let _0x1dc054=this[_0x489b8a(0x3e2)];_0x2917d4[_0x489b8a(0x255)](_0x133760=>{const _0x4da725=_0x489b8a;let _0x2032fc;if(_0x1dc054[_0x4da725(0x3d6)]){const _0x183563=this['_transformService'][_0x4da725(0x4b8)](_0x133760,_0x1dc054);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x183563))throw _0x183563[_0x4da725(0x476)];_0x2032fc=_0x183563[_0x4da725(0x1c9)],_0x1dc054=_0x183563['m2Prime'];}else _0x2032fc=_0x133760;this['_executeRemoteChangeset'](_0x2032fc);}),this[_0x489b8a(0x45f)]&&this[_0x489b8a(0x393)](),this[_0x489b8a(0x4e1)]&&_0x2575e6[_0x489b8a(0x3d6)]&&(_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)]());let _0x2afaba;if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]!==0x0)_0x2afaba=this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x22cc58,this[_0x489b8a(0x1b0)],this['type'],_0x2575e6[0x0],_0x1dc054,this[_0x489b8a(0x1f7)]);else{if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]===0x0)_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)](),_0x2afaba=this['_injector'][_0x489b8a(0x1a3)](_0x3cd767,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],_0x2575e6[0x0],this['_handler']);else{if(_0x1dc054[_0x489b8a(0x3d6)]!==0x0){const _0xdc773c=this['_injector']['createInstance'](_0x5f4482,this[_0x489b8a(0x1b0)],this['type'],_0x1dc054,this[_0x489b8a(0x1f7)]);_0xdc773c[_0x489b8a(0x364)](),_0x2afaba=_0xdc773c;}else _0x2afaba=this[_0x489b8a(0x30f)]['createInstance'](_0x5124ae,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x1f7)]);}}return _0x2afaba[_0x489b8a(0x100)](),_0x2afaba;}catch(_0x4d3adc){return this['_logService']['error'](_0x489b8a(0x513),_0x489b8a(0x12d),_0x4d3adc),this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x20ac70,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x4e1)],this[_0x489b8a(0x3e2)],this[_0x489b8a(0x1f7)],!0x1);}}[_0x3bc2c8(0x423)](){const _0x1b9ab9=_0x3bc2c8;throw new Error(_0x1b9ab9(0x4d0));}['appendMutation'](_0x33b2dd){const _0x1ed4ae=_0x3bc2c8;return this[_0x1ed4ae(0x3e2)][_0x1ed4ae(0x13d)](_0x33b2dd),this;}[_0x3bc2c8(0x384)](_0x20714b){const _0x36afbf=_0x3bc2c8;return this[_0x36afbf(0x189)]['push'](_0x20714b),this;}[_0x3bc2c8(0xf5)](_0x3f0d5e){const _0x59243b=_0x3bc2c8;if(this['_awaitingChangeset'])return this[_0x59243b(0x45f)]=this[_0x59243b(0x4e1)],this[_0x59243b(0x4e1)]=null,this;throw new Error(_0x59243b(0x4fe));}[_0x3bc2c8(0x38f)](_0x133898){const _0x4a696c=_0x3bc2c8;return this['_onConflict'](!!(_0x133898!=null&&_0x133898[_0x4a696c(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x1a12fa=_0x3bc2c8;return this[_0x1a12fa(0x30f)][_0x1a12fa(0x1a3)](_0x8646cf,this[_0x1a12fa(0x1b0)],this[_0x1a12fa(0x413)],this[_0x1a12fa(0x4e1)],this[_0x1a12fa(0x3e2)],this[_0x1a12fa(0x1f7)]);}['toggleOnline'](){return this;}[_0x3bc2c8(0x2be)](_0x2ef059){const _0x4c5517=_0x3bc2c8;return this[_0x4c5517(0x30f)][_0x4c5517(0x1a3)](_0x20ac70,this[_0x4c5517(0x1b0)],this[_0x4c5517(0x413)],this[_0x4c5517(0x4e1)],this[_0x4c5517(0x3e2)],this[_0x4c5517(0x1f7)],_0x2ef059);}};_0x75f119=_0x107b64([_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0xd,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x75f119);function _0x3d51b3(_0x23d7f0,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776){const _0x436e3e=_0x3bc2c8;return _0x30a137&&_0x398708['length']?_0x23d7f0[_0x436e3e(0x1a3)](_0x22cc58,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776):_0x30a137?_0x23d7f0[_0x436e3e(0x1a3)](_0x3cd767,_0x42e99c,_0x51cf12,_0x30a137,_0x146776):_0x398708[_0x436e3e(0x3d6)]?_0x23d7f0['createInstance'](_0x5f4482,_0x42e99c,_0x51cf12,_0x398708,_0x146776):_0x23d7f0[_0x436e3e(0x1a3)](_0x5124ae,_0x42e99c,_0x51cf12,_0x146776);}var _0x33d66a=Object[_0x3bc2c8(0x361)],_0x48ab0e=Object[_0x3bc2c8(0x48b)],_0xedaaab=(_0x3c9a18,_0x51f08f,_0x145830,_0x40adc4)=>{for(var _0x325f1d=_0x40adc4>0x1?void 0x0:_0x40adc4?_0x48ab0e(_0x51f08f,_0x145830):_0x51f08f,_0x36e851=_0x3c9a18['length']-0x1,_0x2df619;_0x36e851>=0x0;_0x36e851--)(_0x2df619=_0x3c9a18[_0x36e851])&&(_0x325f1d=(_0x40adc4?_0x2df619(_0x51f08f,_0x145830,_0x325f1d):_0x2df619(_0x325f1d))||_0x325f1d);return _0x40adc4&&_0x325f1d&&_0x33d66a(_0x51f08f,_0x145830,_0x325f1d),_0x325f1d;},_0x2ca542=(_0x53c105,_0x453f10)=>(_0x59aa67,_0xd94d6c)=>_0x453f10(_0x59aa67,_0xd94d6c,_0x53c105);_0x48e51e[_0x3bc2c8(0x193)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x27a9df,_0x36af83,_0x10a1f3,_0xedf0bb,_0x4eb5ed,_0x3f3ce3,_0x2b04a4,_0x2f9226,_0x301193,_0x126945,_0x1700ae,_0x3f0115,_0x25b03b){const _0x7b85df=_0x3bc2c8;super(),_0x314dc6(this,_0x7b85df(0x503),new _0x266483[(_0x7b85df(0x43e))](null)),_0x314dc6(this,_0x7b85df(0x1e5),this[_0x7b85df(0x503)][_0x7b85df(0x4eb)]()),_0x314dc6(this,'_state'),_0x314dc6(this,_0x7b85df(0x39f),!0x1),_0x314dc6(this,_0x7b85df(0x294),this['state$'][_0x7b85df(0x198)](_0x266483[_0x7b85df(0x39c)](_0x4bbe88=>_0x4bbe88?_0x4bbe88['status']:_0x5926c5[_0x7b85df(0x3b0)]),_0x266483['shareReplay'](0x1))),_0x314dc6(this,_0x7b85df(0x3cd),!0x1),_0x314dc6(this,_0x7b85df(0x229),[]),(this[_0x7b85df(0x1b0)]=_0x27a9df,this[_0x7b85df(0x3d7)]=_0x36af83,this[_0x7b85df(0x251)]=_0x10a1f3,this[_0x7b85df(0x30f)]=_0xedf0bb,this['_localCacheService']=_0x4eb5ed,this[_0x7b85df(0x2a4)]=_0x3f3ce3,this[_0x7b85df(0x24c)]=_0x2b04a4,this[_0x7b85df(0x49a)]=_0x2f9226,this[_0x7b85df(0x4e7)]=_0x301193,this[_0x7b85df(0x2c6)]=_0x126945,this[_0x7b85df(0x1d6)]=_0x1700ae,this[_0x7b85df(0x106)]=_0x3f0115,this[_0x7b85df(0x139)]=_0x25b03b);}get[_0x3bc2c8(0x214)](){const _0x57cf01=_0x3bc2c8;return this[_0x57cf01(0x2b3)];}async[_0x3bc2c8(0x341)](){const _0x2473e8=_0x3bc2c8;if(this[_0x2473e8(0x214)])throw new Error(_0x2473e8(0xd8));await this['_init']();}[_0x3bc2c8(0x165)](){const _0x397fbd=_0x3bc2c8;return this[_0x397fbd(0x39f)]=!0x0,_0x5b7cfd[_0x397fbd(0x3d9)](()=>{const _0x445800=_0x397fbd;this[_0x445800(0x39f)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x532080){const _0x20eac3=_0x3bc2c8;this[_0x20eac3(0x2b3)]=_0x532080,this[_0x20eac3(0x503)][_0x20eac3(0xe4)](_0x532080);}async['_init'](){const _0x498ddb=_0x3bc2c8;var _0x192934;this[_0x498ddb(0x25e)](await this[_0x498ddb(0x3ed)]()),this[_0x498ddb(0x139)]&&((_0x192934=this[_0x498ddb(0x139)])==null||_0x192934['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x498ddb(0x139)][_0x498ddb(0x112)](this[_0x498ddb(0x1b0)])[_0x498ddb(0x2f5)](_0x462b20=>{const _0x58d2aa=_0x498ddb;this[_0x58d2aa(0x4e7)][_0x58d2aa(0x46f)](_0x58d2aa(0x3ab),_0x58d2aa(0x292),_0x462b20),_0x462b20===_0x695cf2[_0x58d2aa(0x3de)]?(this['_messageService'][_0x58d2aa(0x29f)]({'content':this[_0x58d2aa(0x24c)]['t'](_0x58d2aa(0x398)),'type':_0x4466a1[_0x58d2aa(0x185)][_0x58d2aa(0x1f8)]}),this[_0x58d2aa(0x106)][_0x58d2aa(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x58d2aa(0x1b0)])['id'],!0x1)):this[_0x58d2aa(0x106)]['updatePermissionPoint'](new _0xa62622[(_0x58d2aa(0x4cf))](this[_0x58d2aa(0x1b0)])['id'],!0x0);})));let _0x27ce9d=!0x1;return this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x509)][_0x498ddb(0x2f5)](_0x3c0b6b=>{const _0x2ce2ef=_0x498ddb;_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x322)]?this['_toggleOnline'](_0x27ce9d):_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x3b0)]&&(_0x27ce9d=!0x0,this['_toggleOffline']());})),this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x164)][_0x498ddb(0x2f5)](_0x2e66f4=>{const _0x593f8c=_0x498ddb;try{switch(_0x2e66f4[_0x593f8c(0xe1)]){case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x455)]:{this[_0x593f8c(0x261)](_0x56cbe4[_0x593f8c(0x242)](_0x2e66f4[_0x593f8c(0x2db)]));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4f7)]:{this[_0x593f8c(0x24f)](_0x2e66f4[_0x593f8c(0x2db)]);break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4c3)]:{this[_0x593f8c(0x359)]();break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x23c)]:{this[_0x593f8c(0x11d)](_0x2e66f4['data']['changesets'][_0x593f8c(0x39c)](_0x19cbe0=>_0x56cbe4[_0x593f8c(0x242)](_0x19cbe0)));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x41b)]:this[_0x593f8c(0x359)]({'isPermissionRej':!0x0});}}catch(_0x2f5c40){throw console[_0x593f8c(0x476)](_0x593f8c(0x320),_0x2f5c40),_0x2f5c40;}})),this[_0x498ddb(0x2b3)];}[_0x3bc2c8(0x172)](){const _0x519af9=_0x3bc2c8;this[_0x519af9(0x3cd)]=!0x1;}['_lockTransition'](){const _0x4e6095=_0x3bc2c8;if(this[_0x4e6095(0x3cd)])throw new Error(_0x4e6095(0x22c));this[_0x4e6095(0x3cd)]=!0x0;}[_0x3bc2c8(0x1de)](_0x7f83e1){const _0x319f31=_0x3bc2c8;this['_lockTransition'](),this[_0x319f31(0x25e)](this['_state'][_0x319f31(0x295)](_0x7f83e1)),this[_0x319f31(0x172)]();}[_0x3bc2c8(0x261)](_0x2f372c){const _0x379765=_0x3bc2c8;if(!(_0x2f372c[_0x379765(0x1b1)]<=this['_revisionService'][_0x379765(0x22d)](this[_0x379765(0x1b0)]))){if(this['_collaborationPaused']){this[_0x379765(0x229)][_0x379765(0x13d)](_0x2f372c);return;}this[_0x379765(0x146)](_0x2f372c);}}['_exhaustRemoteChangesetQueue'](){const _0x5aa4b2=_0x3bc2c8;this[_0x5aa4b2(0x229)][_0x5aa4b2(0x255)](_0x4185bf=>this[_0x5aa4b2(0x146)](_0x4185bf)),this[_0x5aa4b2(0x229)]=[];}[_0x3bc2c8(0x146)](_0x51aebe){const _0x27ff22=_0x3bc2c8,_0x28d1c8=this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x35b)](this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x27f)]()[_0x27ff22(0x50b)])(_0x51aebe[_0x27ff22(0x1fc)],null)||_0x51aebe[_0x27ff22(0x1fc)],_0x31c8fd={..._0x51aebe,'mutations':_0x28d1c8};this[_0x27ff22(0x2c5)](),this[_0x27ff22(0x25e)](this['_state'][_0x27ff22(0x384)](_0x31c8fd)),this[_0x27ff22(0x172)]();}[_0x3bc2c8(0x24f)](_0x3708cc){const _0x1b35cb=_0x3bc2c8;this['_lockTransition'](),this[_0x1b35cb(0x25e)](this[_0x1b35cb(0x2b3)][_0x1b35cb(0xf5)](_0x3708cc)),this[_0x1b35cb(0x172)]();}[_0x3bc2c8(0x359)](_0x2700c8){const _0x28888f=_0x3bc2c8;this[_0x28888f(0x2c5)](),this[_0x28888f(0x25e)](this[_0x28888f(0x2b3)][_0x28888f(0x38f)](_0x2700c8)),this[_0x28888f(0x172)]();}[_0x3bc2c8(0x11d)](_0x5aaae2){const _0x5c2e9e=_0x3bc2c8;if(!(this[_0x5c2e9e(0x2b3)]instanceof _0x75f119))throw new TypeError(_0x5c2e9e(0x287));const _0x1bbf8a=_0x5aaae2[_0x5c2e9e(0x39c)](_0x29268e=>{const _0x5edcac=_0x5c2e9e,_0x47fff9=this[_0x5edcac(0x2a4)]['interceptor'][_0x5edcac(0x35b)](this[_0x5edcac(0x2a4)][_0x5edcac(0x282)][_0x5edcac(0x27f)]()[_0x5edcac(0x50b)])(_0x29268e[_0x5edcac(0x1fc)],null)||_0x29268e[_0x5edcac(0x1fc)];return{..._0x29268e,'mutations':_0x47fff9};});this[_0x5c2e9e(0x2c5)](),this['_updateState'](this['_state'][_0x5c2e9e(0x42e)](_0x1bbf8a)),this['_unlockTransition']();}[_0x3bc2c8(0x3e9)](){const _0x571fd2=_0x3bc2c8;this['_lockTransition'](),this[_0x571fd2(0x25e)](this[_0x571fd2(0x2b3)][_0x571fd2(0x495)]()),this[_0x571fd2(0x172)]();}['_toggleOnline'](_0x1da87d=!0x1){const _0x1f03ea=_0x3bc2c8;this['_lockTransition'](),this['_updateState'](this['_state'][_0x1f03ea(0x20e)]()),this[_0x1f03ea(0x172)]();const _0xe68213=this[_0x1f03ea(0x2b3)];_0x1da87d&&_0xe68213 instanceof _0x5124ae&&(this['_lockTransition'](),this['_updateState'](_0xe68213[_0x1f03ea(0x208)]()),this['_unlockTransition']());}async[_0x3bc2c8(0x3ed)](){return new Promise(_0xb6ce8c=>{const _0x3c5b3f=_0x4f28;this[_0x3c5b3f(0x3d7)]['sessionStatus$'][_0x3c5b3f(0x198)](_0x266483[_0x3c5b3f(0x38a)](0x1))[_0x3c5b3f(0x2f5)](async _0x2325a3=>{const _0x403cdd=_0x3c5b3f;_0xb6ce8c(await this[_0x403cdd(0x1ee)](_0x2325a3===_0x2d9d4e[_0x403cdd(0x322)]));});});}[_0x3bc2c8(0x15e)](){const _0x2a8a6b=_0x3bc2c8,_0x10aae1=this[_0x2a8a6b(0x1b0)];return{'onStateChange':(_0x440923,_0x252811)=>{const _0xf1c0aa=_0x2a8a6b;if(_0x440923!==this[_0xf1c0aa(0x2b3)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x440923[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0x330)+_0x252811[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0xe8)+this[_0xf1c0aa(0x2b3)][_0xf1c0aa(0x4ad)]);this[_0xf1c0aa(0x25e)](_0x252811);},'onSendChangeset':_0x490b8d=>{const _0x370c8b=_0x2a8a6b,_0x964554={'eventID':_0x56cbe4[_0x370c8b(0x484)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x490b8d[_0x370c8b(0x1b0)],'unitType':this[_0x370c8b(0x251)],'changeset':_0x490b8d,'memberID':this[_0x370c8b(0x3d7)][_0x370c8b(0x2d0)]()}};this['session'][_0x370c8b(0x441)](_0x964554,this[_0x370c8b(0x1b0)]);},'onMissingChangesets':({from:_0x4302ee,to:_0x394c3b})=>{const _0xd91bc=_0x2a8a6b;this[_0xd91bc(0x4e7)][_0xd91bc(0x46f)]('[CollaborationEntity]',_0xd91bc(0x41f)+_0x4302ee+_0xd91bc(0x18b)+_0x394c3b);const _0x2f6512={'eventID':_0x56cbe4[_0xd91bc(0x484)][_0xd91bc(0x123)],'data':{'unitID':_0x10aae1,'unitType':this['_type'],'from':_0x4302ee,'to':_0x394c3b}};this[_0xd91bc(0x3d7)][_0xd91bc(0x441)](_0x2f6512,this[_0xd91bc(0x1b0)]);}};}async[_0x3bc2c8(0x1ee)](_0xd6bd3f){const _0x453d9c=_0x3bc2c8;var _0x8aecb2,_0x350bdf;const _0x413209=await this[_0x453d9c(0x3bf)][_0x453d9c(0x30b)](this[_0x453d9c(0x1b0)]),_0x513b1b=(_0x8aecb2=_0x413209==null?void 0x0:_0x413209['mutations'])!=null?_0x8aecb2:[],_0x262499=(_0x350bdf=_0x413209==null?void 0x0:_0x413209[_0x453d9c(0x3e1)])!=null?_0x350bdf:null,_0x14e521=this['unitID'];try{this[_0x453d9c(0x1b6)](_0x262499,_0x513b1b);}catch(_0x4af9d7){this['_logService']['error'](_0x4af9d7);}const _0x155c40=this['_createHandler']();if(_0xd6bd3f){const _0x17f860=_0x3d51b3(this[_0x453d9c(0x30f)],_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);return _0x17f860 instanceof _0x5f4482?_0x17f860[_0x453d9c(0x364)]():(_0x17f860 instanceof _0x22cc58||_0x17f860 instanceof _0x3cd767)&&_0x17f860[_0x453d9c(0x423)](),_0x17f860;}return this[_0x453d9c(0x30f)][_0x453d9c(0x1a3)](_0x8646cf,_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);}[_0x3bc2c8(0x1b6)](_0x137ba3,_0x30a45e){const _0x6c015a=_0x3bc2c8;var _0x2b1eb8,_0x54d0b7;const _0x1a271b=this['_compressMutationService']['interceptor'][_0x6c015a(0x35b)](this[_0x6c015a(0x2a4)][_0x6c015a(0x282)][_0x6c015a(0x27f)]()[_0x6c015a(0x50b)]);(_0x2b1eb8=_0x1a271b((_0x137ba3==null?void 0x0:_0x137ba3[_0x6c015a(0x1fc)])||[],null))==null||_0x2b1eb8[_0x6c015a(0x255)](_0x235b70=>this[_0x6c015a(0x2c6)]['executeCommand'](_0x235b70['id'],_0x235b70[_0x6c015a(0x3c2)])),(_0x54d0b7=_0x1a271b(_0x30a45e||[],null))==null||_0x54d0b7['forEach'](_0x1a8d67=>this['_commandService']['executeCommand'](_0x1a8d67['id'],_0x1a8d67[_0x6c015a(0x3c2)]));}},_0x48e51e[_0x3bc2c8(0x193)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd['Inject'](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xa,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2ca542(0xb,_0x5b7cfd['IPermissionService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x259)](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x193)]),_0x48e51e[_0x3bc2c8(0x355)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x24ea8f,_0x114a0b,_0x517d92,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x248044,_0x5b5540,_0x257964,_0x2808df,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c){const _0x3417aa=_0x3bc2c8;super(_0x24ea8f,_0x517d92,_0x114a0b,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c),this[_0x3417aa(0x1b0)]=_0x24ea8f,this[_0x3417aa(0x413)]=_0x114a0b,this[_0x3417aa(0x3a4)]=_0x248044,this[_0x3417aa(0x515)]=_0x5b5540,this[_0x3417aa(0x450)]=_0x257964,this[_0x3417aa(0x25c)]=_0x2808df;}[_0x3bc2c8(0x15e)](){const _0x2a200e=_0x3bc2c8,_0x45dac4=super['_createHandler']();return _0x45dac4[_0x2a200e(0x1a9)]=_0x2dd753=>this[_0x2a200e(0x515)][_0x2a200e(0x43c)](_0x2dd753),_0x45dac4[_0x2a200e(0x4b2)]=_0x20bac7=>this[_0x2a200e(0x450)][_0x2a200e(0x109)](_0x20bac7),_0x45dac4[_0x2a200e(0x2e0)]=_0x16c546=>this[_0x2a200e(0x25c)][_0x2a200e(0x195)](_0x16c546),_0x45dac4[_0x2a200e(0x258)]=_0x5070a8=>this[_0x2a200e(0x515)][_0x2a200e(0x3fb)](_0x5070a8),_0x45dac4;}async[_0x3bc2c8(0x276)](){const _0x1159b8=_0x3bc2c8,_0x609a70=await super['_init']();return this[_0x1159b8(0x131)](this[_0x1159b8(0x2c6)]['onCommandExecuted']((_0x35e2ef,_0x38dd80)=>{const _0x10d20c=_0x1159b8;if(_0x35e2ef['type']!==_0x5b7cfd['CommandType'][_0x10d20c(0x374)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x38d)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x4b3)])return;const _0x4565cc=_0x35e2ef[_0x10d20c(0x3c2)];if((_0x4565cc==null?void 0x0:_0x4565cc[_0x10d20c(0x373)])!==this['unitID'])return;let _0x18010b=_0x35e2ef;if(_0x18010b['id']===_0x3e2148['RichTextEditingMutation']['id']){const _0x226aca=_0x18010b[_0x10d20c(0x3c2)];_0x18010b={'id':_0x3e2148[_0x10d20c(0x368)]['id'],'type':_0x5b7cfd[_0x10d20c(0x425)][_0x10d20c(0x374)],'params':{'unitId':_0x226aca['unitId'],'actions':_0x226aca[_0x10d20c(0x2fd)],'textRanges':null}};}const _0x2e37b6=this['_compressMutationService']['interceptor'][_0x10d20c(0x35b)](this[_0x10d20c(0x2a4)][_0x10d20c(0x282)][_0x10d20c(0x27f)]()['COMPRESS_MUTATION_SEND'])([_0x18010b],null)||[_0x18010b];this[_0x10d20c(0x1de)](_0x2e37b6[0x0]);})),_0x609a70;}},_0x48e51e[_0x3bc2c8(0x355)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x375)])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['RevisionService'])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x618f14[_0x3bc2c8(0x1e9)])),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1e6c69)),_0x2ca542(0xa,_0x5b7cfd['Inject'](_0x12ef35)),_0x2ca542(0xb,_0x5b7cfd['Inject'](_0x56b650)),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xd,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xe,_0x2ce95d['IMessageService']),_0x2ca542(0xf,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0x10,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x355)]),_0x48e51e[_0x3bc2c8(0x449)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x291007,_0x470c6c,_0x5da244,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x3643f0,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde){const _0x1385ed=_0x3bc2c8;super(_0x291007,_0x5da244,_0x470c6c,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde),this['unitID']=_0x291007,this[_0x1385ed(0x413)]=_0x470c6c,this[_0x1385ed(0x170)]=_0x3643f0;}[_0x3bc2c8(0x15e)](){const _0x32ead7=_0x3bc2c8,_0x171ea0=super[_0x32ead7(0x15e)]();return _0x171ea0['onTransformSelections']=_0x8f0fc0=>this[_0x32ead7(0x170)][_0x32ead7(0x109)](_0x8f0fc0),_0x171ea0;}async['_init'](){const _0x571e4e=_0x3bc2c8,_0x45346c=await super[_0x571e4e(0x276)]();return this[_0x571e4e(0x131)](this[_0x571e4e(0x2c6)][_0x571e4e(0x15f)]((_0xce5870,_0x270000)=>{const _0x5d68fc=_0x571e4e;if(_0xce5870[_0x5d68fc(0x413)]!==_0x5b7cfd['CommandType'][_0x5d68fc(0x374)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x38d)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x4b3)])return;const _0x5869ec=_0xce5870['params'];if((_0x5869ec==null?void 0x0:_0x5869ec[_0x5d68fc(0x373)])!==this['unitID'])return;const _0xce42b0=_0xce5870,_0x34b414=this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x35b)](this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x27f)]()[_0x5d68fc(0x221)])([_0xce42b0],null)||[_0xce42b0];this['_onLocalMutation'](_0x34b414[0x0]);})),_0x45346c;}},_0x48e51e[_0x3bc2c8(0x449)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd['Inject'](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2cedfe)),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xa,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xb,_0x2ce95d['IMessageService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0xd,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x449)]);var _0x3faff2=Object['defineProperty'],_0x217d22=Object[_0x3bc2c8(0x48b)],_0x2d901a=(_0x26cb89,_0x48b274,_0x2e12ef,_0xa00df3)=>{const _0x3b6d90=_0x3bc2c8;for(var _0x18d4b1=_0xa00df3>0x1?void 0x0:_0xa00df3?_0x217d22(_0x48b274,_0x2e12ef):_0x48b274,_0x311c3f=_0x26cb89[_0x3b6d90(0x3d6)]-0x1,_0x54057f;_0x311c3f>=0x0;_0x311c3f--)(_0x54057f=_0x26cb89[_0x311c3f])&&(_0x18d4b1=(_0xa00df3?_0x54057f(_0x48b274,_0x2e12ef,_0x18d4b1):_0x54057f(_0x18d4b1))||_0x18d4b1);return _0xa00df3&&_0x18d4b1&&_0x3faff2(_0x48b274,_0x2e12ef,_0x18d4b1),_0x18d4b1;},_0x3148ae=(_0x472bd7,_0xb7b504)=>(_0x3252d9,_0x22355d)=>_0xb7b504(_0x3252d9,_0x22355d,_0x472bd7);_0x48e51e[_0x3bc2c8(0x30c)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x350154,_0x3d8750,_0x2f7ab7){const _0x2eb46a=_0x3bc2c8;super(),_0x314dc6(this,_0x2eb46a(0x2af),new Map()),_0x314dc6(this,_0x2eb46a(0x1cb),new _0x266483[(_0x2eb46a(0x2e5))]()),(this['_injector']=_0x350154,this[_0x2eb46a(0x24d)]=_0x3d8750,this[_0x2eb46a(0x10b)]=_0x2f7ab7,this[_0x2eb46a(0x276)]());}[_0x3bc2c8(0x314)](){const _0xf65ec=_0x3bc2c8;super[_0xf65ec(0x314)](),this[_0xf65ec(0x2af)][_0xf65ec(0x255)](_0x2e849b=>_0x2e849b['dispose']()),this['_entities']['clear']();}['getCollabEntity'](_0x2918dc){const _0x28e05f=_0x3bc2c8;var _0x40ea10;return(_0x40ea10=this[_0x28e05f(0x2af)][_0x28e05f(0x451)](_0x2918dc))!=null?_0x40ea10:null;}[_0x3bc2c8(0x27a)](_0x24bd2c){const _0x53d9e8=_0x3bc2c8,_0x22c8e0=this[_0x53d9e8(0x36d)](_0x24bd2c);return _0x22c8e0?_0x266483['of'](_0x22c8e0):this[_0x53d9e8(0x1cb)][_0x53d9e8(0x198)](_0x51de38[_0x53d9e8(0x3b6)](_0x53db27=>_0x53db27['unitID']===_0x24bd2c));}[_0x3bc2c8(0x276)](){const _0x2d9852=_0x3bc2c8;this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)])[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x2f5)](async _0x16789c=>{const _0x546a1e=_0x2d9852,_0x23239a=_0x16789c[_0x546a1e(0x183)](),_0x227302=await this['_startCollaboration'](_0x23239a,_0x249560[_0x546a1e(0x301)]);this['_entities']['set'](_0x23239a,_0x227302);}),this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)])['pipe'](_0x266483['takeUntil'](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x198)](_0x51de38['filter'](_0x39208e=>!_0x39208e[_0x2d9852(0x183)]()['startsWith']('__')))[_0x2d9852(0x2f5)](async _0x32bee5=>{const _0x2baa99=_0x2d9852,_0x5b266f=_0x32bee5[_0x2baa99(0x183)](),_0x2793ef=await this[_0x2baa99(0xea)](_0x5b266f,_0x249560[_0x2baa99(0x3a6)]);this[_0x2baa99(0x2af)][_0x2baa99(0x10d)](_0x5b266f,_0x2793ef);}),_0x266483['merge'](this[_0x2d9852(0x10b)][_0x2d9852(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)]),this[_0x2d9852(0x10b)]['getTypeOfUnitDisposed$'](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)]))[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]))['subscribe'](_0x1382ab=>{const _0x5f347d=_0x2d9852,_0x4215be=_0x1382ab[_0x5f347d(0x183)](),_0x233fa7=this[_0x5f347d(0x2af)][_0x5f347d(0x451)](_0x4215be);_0x233fa7&&(_0x233fa7[_0x5f347d(0x314)](),this[_0x5f347d(0x2af)]['delete'](_0x4215be));});}async['_startCollaboration'](_0x210400,_0x52eea6){const _0x13e56e=_0x3bc2c8,_0x4671ae=await this[_0x13e56e(0x24d)]['requireSession'](_0x210400),_0xf3423e=this[_0x13e56e(0x30f)][_0x13e56e(0x1a3)](this[_0x13e56e(0xdd)](_0x52eea6),_0x210400,_0x52eea6,_0x4671ae);return await _0xf3423e[_0x13e56e(0x341)](),this[_0x13e56e(0x1cb)][_0x13e56e(0xe4)](_0xf3423e),_0xf3423e;}[_0x3bc2c8(0xdd)](_0x4f4bef){const _0xdd78eb=_0x3bc2c8;switch(_0x4f4bef){case _0x249560[_0xdd78eb(0x3a6)]:return _0x48e51e[_0xdd78eb(0x355)];case _0x249560[_0xdd78eb(0x301)]:return _0x48e51e['SheetCollaborationEntity'];default:throw new Error(_0xdd78eb(0x1e7)+_0x4f4bef);}}},_0x48e51e[_0x3bc2c8(0x30c)]=_0x2d901a([_0x3148ae(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x3148ae(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x3148ae(0x2,_0x5b7cfd['IUniverInstanceService'])],_0x48e51e[_0x3bc2c8(0x30c)]);const _0x3d2988=['purple300',_0x3bc2c8(0x22b),_0x3bc2c8(0x317),_0x3bc2c8(0x18f),_0x3bc2c8(0x4e8),_0x3bc2c8(0x443)];class _0x2e16f3 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x51604b=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x51604b(0x2b4),new Map()),_0x314dc6(this,_0x51604b(0x171),0x0);}[_0x3bc2c8(0x33d)](_0x49be37){const _0x5e6566=_0x3bc2c8;if(this[_0x5e6566(0x2b4)][_0x5e6566(0x232)](_0x49be37))return this['_assignedColors'][_0x5e6566(0x451)](_0x49be37);const _0x263bde=_0x3d2988[this[_0x5e6566(0x171)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x3d2988[_0x5e6566(0x3d6)],this['_assignedColors'][_0x5e6566(0x10d)](_0x49be37,_0x263bde),_0x263bde;}}var _0x4da243=Object[_0x3bc2c8(0x361)],_0x4d914d=Object[_0x3bc2c8(0x48b)],_0x1bb410=(_0x1487f2,_0x3a1efe,_0x59a8da,_0x56158a)=>{for(var _0x3b5561=_0x56158a>0x1?void 0x0:_0x56158a?_0x4d914d(_0x3a1efe,_0x59a8da):_0x3a1efe,_0x3b091b=_0x1487f2['length']-0x1,_0x5d3257;_0x3b091b>=0x0;_0x3b091b--)(_0x5d3257=_0x1487f2[_0x3b091b])&&(_0x3b5561=(_0x56158a?_0x5d3257(_0x3a1efe,_0x59a8da,_0x3b5561):_0x5d3257(_0x3b5561))||_0x3b5561);return _0x56158a&&_0x3b5561&&_0x4da243(_0x3a1efe,_0x59a8da,_0x3b5561),_0x3b5561;},_0x2ff648=(_0x85d661,_0x144e6a)=>(_0x423871,_0x21a280)=>_0x144e6a(_0x423871,_0x21a280,_0x85d661);const _0x205ac8=0x12c,_0x2d56cf=0x64,_0x451ef2=()=>{let _0x1d4a20=[],_0x45eec5=!0x1;return _0x47533a=>{const _0x29313d=_0x4f28;_0x1d4a20[_0x29313d(0x13d)](_0x47533a),_0x45eec5||(_0x45eec5=!0x0,setTimeout(()=>{const _0x1b44b0=_0x29313d;_0x1d4a20[_0x1b44b0(0x255)](_0x2ab970=>_0x2ab970()),_0x1d4a20=[],_0x45eec5=!0x1;}));};};let _0x1a3ce8=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4fb3c5,_0xa488b1,_0x2b847e,_0x2acaf2,_0x447fec,_0x2f8af7,_0x17a1f1,_0x404e0f){const _0x3dd2af=_0x3bc2c8;super(),_0x314dc6(this,_0x3dd2af(0x404),!0x1),_0x314dc6(this,_0x3dd2af(0x276),!0x1),_0x314dc6(this,_0x3dd2af(0x269),new _0x266483[(_0x3dd2af(0x43e))](new Map())),_0x314dc6(this,_0x3dd2af(0x401),this['_cursorInfo$'][_0x3dd2af(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x3dd2af(0x43e))]([])),_0x314dc6(this,_0x3dd2af(0x3a0),this[_0x3dd2af(0x49b)][_0x3dd2af(0x198)](_0x266483[_0x3dd2af(0x41c)](_0x205ac8))),_0x314dc6(this,_0x3dd2af(0x409),_0x5b7cfd[_0x3dd2af(0x115)]((_0x22d196,_0x3454ab)=>{const _0x463569=_0x3dd2af,_0x5d26f7={'eventID':_0x56cbe4[_0x463569(0x484)][_0x463569(0x234)],'data':{'unitID':this['unitID'],'memberID':this[_0x463569(0x3cf)][_0x463569(0x2d0)](),'selection':_0x4d1b35[_0x463569(0x211)](_0x22d196,_0x3454ab[_0x463569(0x177)])}};this['_session']['send'](_0x5d26f7,this[_0x463569(0x1b0)]);},_0x2d56cf)),(this[_0x3dd2af(0x1b0)]=_0x4fb3c5,this['_session']=_0xa488b1,this[_0x3dd2af(0x30f)]=_0x2b847e,this[_0x3dd2af(0x184)]=_0x2acaf2,this[_0x3dd2af(0x159)]=_0x447fec,this['_univerInstanceService']=_0x2f8af7,this[_0x3dd2af(0x2c6)]=_0x17a1f1,this[_0x3dd2af(0x243)]=_0x404e0f);}get['cursorInfo'](){const _0x3fbc6f=_0x3bc2c8;return this[_0x3fbc6f(0x269)][_0x3fbc6f(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x31863c=_0x3bc2c8;return this[_0x31863c(0x49b)][_0x31863c(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x4e434e=_0x3bc2c8;super[_0x4e434e(0x314)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x4e434e(0x10e)](),this[_0x4e434e(0x49b)][_0x4e434e(0xe4)]([]),this[_0x4e434e(0x49b)][_0x4e434e(0x10e)]();}[_0x3bc2c8(0x341)](){const _0x2fea70=_0x3bc2c8;this[_0x2fea70(0x276)]||(this[_0x2fea70(0x276)]=!0x0,this[_0x2fea70(0x3cf)][_0x2fea70(0x509)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))['subscribe'](_0x155047=>{const _0x499ae0=_0x2fea70;_0x155047===_0x2d9d4e[_0x499ae0(0x322)]?this['_toggleOnline']():this[_0x499ae0(0x3e9)]();}),this[_0x2fea70(0x3cf)][_0x2fea70(0x164)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))[_0x2fea70(0x2f5)](_0x1dd4e5=>{const _0x439ad5=_0x2fea70,_0x1290b4=_0x1dd4e5[_0x439ad5(0xe1)];_0x1290b4===_0x56cbe4[_0x439ad5(0x484)][_0x439ad5(0x234)]&&this['_onCursorUpdate'](_0x1dd4e5),_0x1290b4===_0x56cbe4['CollaborationEvent'][_0x439ad5(0x44d)]&&this[_0x439ad5(0x369)](_0x1dd4e5);}),this['_onRefRangeChange'](),this[_0x2fea70(0x131)](this[_0x2fea70(0x2c6)]['onCommandExecuted'](_0x1bc180=>{const _0x187af7=_0x2fea70;if(this[_0x187af7(0x404)]&&_0x1bc180['id']===_0xa62622[_0x187af7(0x32e)]['id']&&_0x1bc180[_0x187af7(0x3c2)][_0x187af7(0x373)]===this['unitID']){const _0x302b82=_0x1bc180[_0x187af7(0x3c2)];this[_0x187af7(0x409)](_0x302b82[_0x187af7(0x2e3)],_0x302b82[_0x187af7(0x4ff)][0x0]);}})));}[_0x3bc2c8(0x512)](_0x2392cd){const _0x3fa984=_0x3bc2c8;var _0x87f540,_0x280117;const {memberID:_0x206fe0,selection:_0x402d0f}=_0x2392cd[_0x3fa984(0x2db)],{sheetName:_0x6cb935,range:_0x2a9d0f}=_0x4d1b35['deserializeRangeWithSheet'](_0x402d0f),_0x5b238e={'name':(_0x280117=(_0x87f540=this[_0x3fa984(0x159)][_0x3fa984(0x3c1)](this['unitID'],_0x206fe0))==null?void 0x0:_0x87f540['name'])!=null?_0x280117:_0x3fa984(0x1ce),'range':this['_getMergeRange'](_0x6cb935,_0x2a9d0f),'sheetID':_0x6cb935,'color':this['_colorAssignService'][_0x3fa984(0x33d)](_0x206fe0),'selection':_0x402d0f},_0x213984=this[_0x3fa984(0x4b6)];_0x213984[_0x3fa984(0x10d)](_0x206fe0,_0x5b238e),this[_0x3fa984(0x269)][_0x3fa984(0xe4)](_0x213984);}['_onCursorDelete'](_0x4554e0){const _0x25df59=_0x3bc2c8,{memberID:_0x23c2e2}=_0x4554e0[_0x25df59(0x2db)],_0x6228cb=this[_0x25df59(0x4b6)];_0x6228cb[_0x25df59(0x344)](_0x23c2e2),this[_0x25df59(0x269)]['next'](_0x6228cb);}['_getMergeRange'](_0x3f8318,_0x280993){const _0x39ef20=_0x3bc2c8;var _0x4dfec4,_0x34d3fb;const _0x35722d=(_0x34d3fb=(_0x4dfec4=this[_0x39ef20(0x10b)][_0x39ef20(0x279)](this[_0x39ef20(0x1b0)]))==null?void 0x0:_0x4dfec4[_0x39ef20(0x132)](_0x3f8318))==null?void 0x0:_0x34d3fb[_0x39ef20(0x35a)]();return(_0x35722d==null?void 0x0:_0x35722d[_0x39ef20(0xf7)](_0x282e39=>_0x5b7cfd[_0x39ef20(0x224)][_0x39ef20(0x2fc)](_0x282e39,_0x280993)))||_0x280993;}[_0x3bc2c8(0x217)](){const _0x108777=_0x3bc2c8,_0x5ef3b2=new _0x5b7cfd[(_0x108777(0x12c))](),_0x3c81af=_0x451ef2(),_0x1cc1e1=()=>{const _0x2da676=_0x108777;_0x5ef3b2[_0x2da676(0x314)]();const _0xce86a2=(_0x57052a,_0x21dab1,_0xaf0cac,_0x433ad4)=>{const _0x14fe69=_0x2da676;let _0x34799b=[];switch(_0x57052a['id']){case _0xa62622['EffectRefRangId'][_0x14fe69(0x41e)]:{_0x34799b=_0xa62622[_0x14fe69(0x116)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x4bc)]:{_0x34799b=_0xa62622['handleDeleteRangeMoveUp'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x1dd)]:{_0x34799b=_0xa62622[_0x14fe69(0x328)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x399)]:{_0x34799b=_0xa62622[_0x14fe69(0x267)](_0x57052a,_0x433ad4);break;}case _0xa62622['EffectRefRangId'][_0x14fe69(0x323)]:{_0x34799b=_0xa62622[_0x14fe69(0x215)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0xda)]:{_0x34799b=_0xa62622[_0x14fe69(0x227)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x297)]:{_0x34799b=_0xa62622[_0x14fe69(0x288)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x182)]:{_0x34799b=_0xa62622['handleIRemoveCol'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x456)]:{_0x34799b=_0xa62622[_0x14fe69(0x2bc)](_0x57052a,_0x433ad4);break;}}const _0x28e1cf=_0xa62622['runRefRangeMutations'](_0x34799b,_0x433ad4),_0x277039=this['cursorInfo']['get'](_0x21dab1);if(_0x277039&&_0x28e1cf){const _0x7c0cd4={..._0x277039,'range':_0x28e1cf};this['cursorInfo']['set'](_0x21dab1,_0x7c0cd4),_0x3c81af(()=>{const _0x1d9400=_0x14fe69,_0x540157=this[_0x1d9400(0x243)]['registerRefRange'](_0x28e1cf,_0x424d51=>(_0x540157[_0x1d9400(0x314)](),_0xce86a2(_0x424d51,_0x21dab1,_0xaf0cac,_0x28e1cf)));_0x5ef3b2[_0x1d9400(0x225)](_0x540157);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2da676(0x255)]((_0x2afa6a,_0xbbbeb8)=>{const _0x3ab25b=_0x2da676,{range:_0x3d9b1c,sheetID:_0x203ed6}=_0x2afa6a,_0x24aa44=this['_refRangeService'][_0x3ab25b(0x223)](_0x3d9b1c,_0x53c8d0=>(_0x24aa44['dispose'](),_0xce86a2(_0x53c8d0,_0xbbbeb8,_0x203ed6,_0x3d9b1c)));_0x5ef3b2[_0x3ab25b(0x225)](_0x24aa44);});};this['disposeWithMe'](_0x5b7cfd[_0x108777(0x3d9)](this[_0x108777(0x269)][_0x108777(0x2f5)](()=>{_0x1cc1e1();})));}[_0x3bc2c8(0x358)](){const _0x231e54=_0x3bc2c8;var _0x9c4577,_0xd058f5;if(this[_0x231e54(0x404)]=!0x0,((_0x9c4577=this[_0x231e54(0x10b)][_0x231e54(0x1b8)]())==null?void 0x0:_0x9c4577[_0x231e54(0x183)]())!==this[_0x231e54(0x1b0)])return;const _0x5c3a89=(_0xd058f5=this[_0x231e54(0x30f)][_0x231e54(0x451)](_0xa62622[_0x231e54(0x34b)])['getCurrentSelections']())==null?void 0x0:_0xd058f5[0x0],_0x4642a3=this[_0x231e54(0x10b)]['getCurrentUnitForType'](_0x5b7cfd[_0x231e54(0x4bb)][_0x231e54(0x301)])['getActiveSheet']();_0x5c3a89&&_0x4642a3&&this[_0x231e54(0x409)](_0x4642a3[_0x231e54(0x43d)](),_0x5c3a89);}[_0x3bc2c8(0x3e9)](){const _0x2c77ae=_0x3bc2c8;this[_0x2c77ae(0x404)]=!0x1;}};_0x1a3ce8=_0x1bb410([_0x2ff648(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ff648(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2ff648(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2ff648(0x5,_0x5b7cfd['IUniverInstanceService']),_0x2ff648(0x6,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ff648(0x7,_0x5b7cfd['Inject'](_0xa62622['RefRangeService']))],_0x1a3ce8);var _0x41752a=Object[_0x3bc2c8(0x361)],_0x387954=Object[_0x3bc2c8(0x48b)],_0x49e3d6=(_0x5e2a67,_0x957da0,_0x1e6bfd,_0x1dec26)=>{const _0x28694f=_0x3bc2c8;for(var _0xdc9859=_0x1dec26>0x1?void 0x0:_0x1dec26?_0x387954(_0x957da0,_0x1e6bfd):_0x957da0,_0x55051b=_0x5e2a67[_0x28694f(0x3d6)]-0x1,_0x6e80a6;_0x55051b>=0x0;_0x55051b--)(_0x6e80a6=_0x5e2a67[_0x55051b])&&(_0xdc9859=(_0x1dec26?_0x6e80a6(_0x957da0,_0x1e6bfd,_0xdc9859):_0x6e80a6(_0xdc9859))||_0xdc9859);return _0x1dec26&&_0xdc9859&&_0x41752a(_0x957da0,_0x1e6bfd,_0xdc9859),_0xdc9859;},_0x2f60ff=(_0x1bfd2b,_0x5a51e9)=>(_0x435a8a,_0x3b6904)=>_0x5a51e9(_0x435a8a,_0x3b6904,_0x1bfd2b);const _0x5427ce=0x12c,_0x1ef830=0x64;let _0x2063a7=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x3b225e,_0x4c0cb6,_0xcb583f,_0x187c1b,_0x20d807,_0x1f45b0,_0x49dd8f,_0x357ff0,_0x17ca73){const _0x26a78c=_0x3bc2c8;super(),_0x314dc6(this,'_online',!0x1),_0x314dc6(this,_0x26a78c(0x276),!0x1),_0x314dc6(this,_0x26a78c(0x269),new _0x266483[(_0x26a78c(0x43e))](new Map())),_0x314dc6(this,_0x26a78c(0x401),this[_0x26a78c(0x269)][_0x26a78c(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x26a78c(0x43e))]([])),_0x314dc6(this,'roomMembers$',this[_0x26a78c(0x49b)][_0x26a78c(0x198)](_0x266483[_0x26a78c(0x41c)](_0x5427ce))),_0x314dc6(this,_0x26a78c(0x409),_0x5b7cfd[_0x26a78c(0x115)](_0x19e0ac=>{const _0x4724da=_0x26a78c,_0x43e757={'eventID':_0x56cbe4[_0x4724da(0x484)][_0x4724da(0x234)],'data':{'unitID':this[_0x4724da(0x1b0)],'memberID':this[_0x4724da(0x3cf)][_0x4724da(0x2d0)](),'selection':_0x57f458(_0x19e0ac)}};this[_0x4724da(0x3cf)][_0x4724da(0x441)](_0x43e757,this[_0x4724da(0x1b0)]);},_0x1ef830)),(this[_0x26a78c(0x1b0)]=_0x3b225e,this['_session']=_0x4c0cb6,this[_0x26a78c(0x30f)]=_0xcb583f,this[_0x26a78c(0x184)]=_0x187c1b,this[_0x26a78c(0x159)]=_0x20d807,this[_0x26a78c(0x38c)]=_0x1f45b0,this[_0x26a78c(0x3a1)]=_0x49dd8f,this[_0x26a78c(0x10b)]=_0x357ff0,this[_0x26a78c(0x2c6)]=_0x17ca73);}get[_0x3bc2c8(0x4b6)](){const _0x476ff3=_0x3bc2c8;return this[_0x476ff3(0x269)][_0x476ff3(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x1538e4=_0x3bc2c8;return this[_0x1538e4(0x49b)][_0x1538e4(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x1b3275=_0x3bc2c8;super[_0x1b3275(0x314)](),this['_cursorInfo$'][_0x1b3275(0xe4)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1b3275(0x49b)][_0x1b3275(0xe4)]([]),this[_0x1b3275(0x49b)][_0x1b3275(0x10e)]();}[_0x3bc2c8(0x341)](){const _0xa14973=_0x3bc2c8;this[_0xa14973(0x276)]||(this['_init']=!0x0,this[_0xa14973(0x3cf)]['sessionStatus$'][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4973da=>{const _0x32a0e4=_0xa14973;_0x4973da===_0x2d9d4e['ONLINE']?this[_0x32a0e4(0x358)]():this[_0x32a0e4(0x3e9)]();}),this[_0xa14973(0x3cf)][_0xa14973(0x164)][_0xa14973(0x198)](_0x266483['takeUntil'](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4ccb67=>{const _0x10e439=_0xa14973,_0x137696=_0x4ccb67['eventID'];_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x234)]&&this['_onCursorUpdate'](_0x4ccb67),_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x44d)]&&this['_onCursorDelete'](_0x4ccb67);}),this['disposeWithMe'](this[_0xa14973(0x2c6)][_0xa14973(0x15f)](_0x36d67a=>{const _0x4e67ed=_0xa14973,_0x4c3b69=_0x36d67a[_0x4e67ed(0x3c2)];_0x4c3b69!=null&&this[_0x4e67ed(0x404)]&&_0x36d67a['id']===_0x3e2148[_0x4e67ed(0x1aa)]['id']&&_0x4c3b69[_0x4e67ed(0x373)]===this[_0x4e67ed(0x1b0)]&&_0x4c3b69['isEditing']===!0x1&&this[_0x4e67ed(0x409)](_0x4c3b69[_0x4e67ed(0x2d5)]);})),this['_syncEditingCollabCursorService'][_0xa14973(0x1b9)][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))['subscribe'](_0x556c4b=>{const _0x58cb93=_0xa14973;if((_0x556c4b==null?void 0x0:_0x556c4b[_0x58cb93(0x1b0)])!==this[_0x58cb93(0x1b0)])return;const _0x187f16={'eventID':_0x56cbe4[_0x58cb93(0x484)][_0x58cb93(0x234)],'data':_0x556c4b};this['_onCursorUpdate'](_0x187f16);}),this[_0xa14973(0x131)](this[_0xa14973(0x2c6)]['onCommandExecuted'](_0x541f2a=>{const _0x4b6633=_0xa14973;if(_0x541f2a[_0x4b6633(0x3c2)]==null)return;const _0x5242cf=_0x541f2a[_0x4b6633(0x3c2)];if(_0x541f2a['id']!==_0x3e2148['RichTextEditingMutation']['id']||_0x5242cf[_0x4b6633(0x373)]!==this[_0x4b6633(0x1b0)])return;const _0x1716af={'id':_0x4b6633(0x2d2),'params':_0x5242cf},_0x1fbe5d=this[_0x4b6633(0x4b6)];for(const [_0xe43722,_0x59a3f4]of _0x1fbe5d){const _0x20cdc9={'id':_0x4b6633(0x2d2),'params':{'unitId':this[_0x4b6633(0x1b0)],'actions':null,'textRanges':_0x59a3f4[_0x4b6633(0x2d5)]}},_0x12538e=this[_0x4b6633(0x3a1)]['transformMutation'](_0x1716af,_0x20cdc9,!0x1);if(_0x56cbe4[_0x4b6633(0x197)](_0x12538e))throw _0x12538e[_0x4b6633(0x476)];_0x1fbe5d[_0x4b6633(0x10d)](_0xe43722,{..._0x59a3f4,'ranges':_0x12538e[_0x4b6633(0x275)]['params'][_0x4b6633(0x138)]});}queueMicrotask(()=>{const _0x3f32a8=_0x4b6633;this[_0x3f32a8(0x269)][_0x3f32a8(0xe4)](_0x1fbe5d);});})));}[_0x3bc2c8(0x512)](_0x448554){const _0x293b22=_0x3bc2c8;var _0x247391,_0x5cf58b;const {memberID:_0x5558b7,selection:_0x34d2a9}=_0x448554[_0x293b22(0x2db)],_0x19e780=_0x39789b(_0x34d2a9),_0x177a63=(_0x5cf58b=(_0x247391=this[_0x293b22(0x159)][_0x293b22(0x3c1)](this['unitID'],_0x5558b7))==null?void 0x0:_0x247391['name'])!=null?_0x5cf58b:'Unknown\x20user',_0x3bd6e0={'color':this[_0x293b22(0x184)]['assignAColorForMemberID'](_0x5558b7),'name':_0x177a63,'ranges':_0x19e780},_0x42f4bd=this[_0x293b22(0x4b6)];_0x42f4bd[_0x293b22(0x10d)](_0x5558b7,_0x3bd6e0),this[_0x293b22(0x269)]['next'](_0x42f4bd);}[_0x3bc2c8(0x369)](_0x252bb4){const _0x1e60d0=_0x3bc2c8,{memberID:_0x1a873d}=_0x252bb4['data'],_0x1b192e=this[_0x1e60d0(0x4b6)];_0x1b192e[_0x1e60d0(0x344)](_0x1a873d),this['_cursorInfo$'][_0x1e60d0(0xe4)](_0x1b192e);}['_toggleOnline'](){const _0x272229=_0x3bc2c8;var _0x506944;if(this['_online']=!0x0,((_0x506944=this[_0x272229(0x10b)][_0x272229(0x1b8)]())==null?void 0x0:_0x506944[_0x272229(0x183)]())!==this[_0x272229(0x1b0)])return;const _0x14d1b9=this[_0x272229(0x30f)]['get'](_0x3e2148['DocSelectionManagerService'])[_0x272229(0x46d)]();Array[_0x272229(0x1cc)](_0x14d1b9)&&_0x14d1b9[_0x272229(0x3d6)]>0x0&&this['_updateLocalCursor'](_0x14d1b9);}[_0x3bc2c8(0x3e9)](){const _0x2a8867=_0x3bc2c8;this[_0x2a8867(0x404)]=!0x1;}};_0x2063a7=_0x49e3d6([_0x2f60ff(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2f60ff(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2f60ff(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2f60ff(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56b650)),_0x2f60ff(0x6,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2f60ff(0x7,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x2f60ff(0x8,_0x5b7cfd['ICommandService'])],_0x2063a7);var _0x310a3f=Object[_0x3bc2c8(0x361)],_0x2b8eca=Object[_0x3bc2c8(0x48b)],_0x394fdc=(_0x2c774e,_0x3084a5,_0x1e288c,_0x510cd0)=>{const _0x3b6bcc=_0x3bc2c8;for(var _0x5a7370=_0x510cd0>0x1?void 0x0:_0x510cd0?_0x2b8eca(_0x3084a5,_0x1e288c):_0x3084a5,_0x4448f1=_0x2c774e[_0x3b6bcc(0x3d6)]-0x1,_0xe6dc3d;_0x4448f1>=0x0;_0x4448f1--)(_0xe6dc3d=_0x2c774e[_0x4448f1])&&(_0x5a7370=(_0x510cd0?_0xe6dc3d(_0x3084a5,_0x1e288c,_0x5a7370):_0xe6dc3d(_0x5a7370))||_0x5a7370);return _0x510cd0&&_0x5a7370&&_0x310a3f(_0x3084a5,_0x1e288c,_0x5a7370),_0x5a7370;},_0x53e2b2=(_0x383554,_0x1bd874)=>(_0x283b7c,_0x16df0a)=>_0x1bd874(_0x283b7c,_0x16df0a,_0x383554);let _0x47bd3e=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x53c64a,_0x36beeb,_0x39a921){const _0x11742b=_0x3bc2c8;super(),_0x314dc6(this,'_entities',new Map()),_0x314dc6(this,_0x11742b(0x1cb),new _0x266483['Subject']()),(this[_0x11742b(0x10b)]=_0x53c64a,this[_0x11742b(0x30f)]=_0x36beeb,this[_0x11742b(0x24d)]=_0x39a921,this[_0x11742b(0x276)]());}[_0x3bc2c8(0x314)](){const _0x4c4641=_0x3bc2c8;super[_0x4c4641(0x314)](),this[_0x4c4641(0x1cb)][_0x4c4641(0x10e)](),this[_0x4c4641(0x2af)][_0x4c4641(0x255)](_0x3563d6=>_0x3563d6[_0x4c4641(0x314)]());}[_0x3bc2c8(0x4c6)](_0x4e7241){const _0x47693b=_0x3bc2c8;return this[_0x47693b(0x2af)][_0x47693b(0x232)](_0x4e7241)?this[_0x47693b(0x2af)]['get'](_0x4e7241)['cursorInfo$']:this['_entityInit$'][_0x47693b(0x198)](_0x266483['filter'](_0x22f28d=>_0x22f28d[_0x47693b(0x1b0)]===_0x4e7241),_0x266483['switchMap'](_0x59dca1=>_0x59dca1[_0x47693b(0x401)]));}[_0x3bc2c8(0x276)](){const _0x5e133f=_0x3bc2c8;this[_0x5e133f(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5e133f(0x4bb)]['UNIVER_SHEET'])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x2f5)](async _0x3c46ca=>{const _0x5f555a=_0x5e133f,_0x3dcbe3=_0x3c46ca[_0x5f555a(0x183)](),_0x456a1f=await this['_startSheetCollabCursor'](_0x3dcbe3);this[_0x5f555a(0x1cb)][_0x5f555a(0xe4)](_0x456a1f),this[_0x5f555a(0x2af)][_0x5f555a(0x10d)](_0x3dcbe3,_0x456a1f);}),this[_0x5e133f(0x10b)][_0x5e133f(0x327)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x3b6)](_0x891f93=>!_0x891f93[_0x5e133f(0x183)]()['startsWith']('__')))[_0x5e133f(0x2f5)](async _0x5932c5=>{const _0x173235=_0x5e133f,_0x5a13b8=_0x5932c5[_0x173235(0x183)](),_0x9ebe64=await this[_0x173235(0x3bb)](_0x5a13b8);this['_entityInit$'][_0x173235(0xe4)](_0x9ebe64),this[_0x173235(0x2af)][_0x173235(0x10d)](_0x5a13b8,_0x9ebe64);}),_0x266483['merge'](this[_0x5e133f(0x10b)][_0x5e133f(0x4a5)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)]),this['_univerInstanceService'][_0x5e133f(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x5e133f(0x301)]))[_0x5e133f(0x198)](_0x266483['takeUntil'](this['dispose$']))[_0x5e133f(0x2f5)](_0x414575=>{const _0x3d0242=_0x5e133f,_0x15b358=_0x414575[_0x3d0242(0x183)](),_0x1d43b4=this[_0x3d0242(0x2af)][_0x3d0242(0x451)](_0x15b358);_0x1d43b4&&(_0x1d43b4[_0x3d0242(0x314)](),this[_0x3d0242(0x2af)][_0x3d0242(0x344)](_0x15b358));});}async[_0x3bc2c8(0x252)](_0x872b87){const _0x4f91e2=_0x3bc2c8,_0x3c6141=await this['_collabSessionService']['requireSession'](_0x872b87),_0xd222cf=this[_0x4f91e2(0x30f)]['createInstance'](_0x1a3ce8,_0x872b87,_0x3c6141);return _0xd222cf['init'](),_0xd222cf;}async[_0x3bc2c8(0x3bb)](_0x9a86aa){const _0x3bf350=_0x3bc2c8,_0x35aeaa=await this[_0x3bf350(0x24d)][_0x3bf350(0x318)](_0x9a86aa),_0x337961=this[_0x3bf350(0x30f)][_0x3bf350(0x1a3)](_0x2063a7,_0x9a86aa,_0x35aeaa);return _0x337961[_0x3bf350(0x341)](),_0x337961;}};_0x47bd3e=_0x394fdc([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x47bd3e),_0x53e2b2(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x53e2b2(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x53e2b2(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x1d8)]))],_0x47bd3e);const _0x433f4b=0x14,_0x297918=0xc8,_0x291fc2=0x4,_0x2ef760=0x5;function _0x27214b(_0x4be302,_0x2ab050){const _0x508c48=_0x3bc2c8;let {radius:_0xe704cd,width:_0x29b2d8,height:_0x1b7970}=_0x2ab050;_0xe704cd=_0xe704cd!=null?_0xe704cd:0x0,_0x29b2d8=_0x29b2d8!=null?_0x29b2d8:0x1e,_0x1b7970=_0x1b7970!=null?_0x1b7970:0x1e;let _0x20a282=0x0,_0x3bceed=0x0,_0x2f7fe8=0x0;_0x20a282=_0x3bceed=_0x2f7fe8=Math[_0x508c48(0x17d)](_0xe704cd,_0x29b2d8/0x2,_0x1b7970/0x2),_0x4be302[_0x508c48(0x154)](),_0x4be302[_0x508c48(0x319)](_0x20a282,0x0),_0x4be302['lineTo'](_0x29b2d8-_0x3bceed,0x0),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x3bceed,_0x3bceed,_0x3bceed,Math['PI']*0x3/0x2,0x0,!0x1),_0x4be302['lineTo'](_0x29b2d8,_0x1b7970-_0x2f7fe8),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x2f7fe8,_0x1b7970-_0x2f7fe8,_0x2f7fe8,0x0,Math['PI']/0x2,!0x1),_0x4be302[_0x508c48(0x366)](0x0,_0x1b7970),_0x4be302[_0x508c48(0x366)](0x0,_0x20a282),_0x4be302[_0x508c48(0x256)](_0x20a282,_0x20a282,_0x20a282,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4be302[_0x508c48(0x21f)](),_0x2ab050[_0x508c48(0xe6)]&&(_0x4be302['save'](),_0x4be302[_0x508c48(0x2a0)]=_0x2ab050[_0x508c48(0xe6)],_0x2ab050[_0x508c48(0x4d8)]===_0x508c48(0x2df)?_0x4be302['fill'](_0x508c48(0x2df)):_0x4be302[_0x508c48(0xe6)](),_0x4be302[_0x508c48(0x468)]());}class _0xb13772 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x2fa082,_0x49c00c){const _0x2f7639=_0x3bc2c8;super(_0x2fa082,_0x49c00c),_0x314dc6(this,_0x2f7639(0x3da)),_0x314dc6(this,'text'),(this[_0x2f7639(0x3da)]=_0x49c00c==null?void 0x0:_0x49c00c[_0x2f7639(0x3da)],this[_0x2f7639(0x2a2)]=_0x49c00c==null?void 0x0:_0x49c00c['text']);}static[_0x3bc2c8(0xff)](_0x2097b5,_0x27727a){const _0x4ef287=_0x3bc2c8,{text:_0x464bab,color:_0x491705}=_0x27727a;_0x2097b5[_0x4ef287(0x3b3)](),_0x2097b5[_0x4ef287(0x3f0)]=_0x4ef287(0x19c);const _0x289e04=_0x2097b5['measureText'](_0x464bab)[_0x4ef287(0x1b3)],_0xbcc93f=Math[_0x4ef287(0x17d)](_0x289e04+0x2*_0x291fc2,_0x297918);_0x27214b(_0x2097b5,{'height':_0x433f4b,'radius':0x4,'width':_0xbcc93f,'fill':_0x491705,'evented':!0x1}),_0x2097b5['fillStyle']=_0x4ef287(0x499);const _0x22434f=_0x291fc2,_0x40c4b0=_0x433f4b-_0x2ef760,_0x2eb7d4=_0x297918-0x2*_0x291fc2;if(_0x289e04>_0x2eb7d4){let _0x547f10='',_0x218267=0x0;for(const _0x3ba4ca of _0x464bab){const _0x1ae43f=_0x2097b5[_0x4ef287(0x4aa)](_0x3ba4ca)['width'];if(_0x218267+_0x1ae43f<=_0x2eb7d4-_0x2097b5[_0x4ef287(0x4aa)](_0x4ef287(0x1fd))[_0x4ef287(0x1b3)])_0x547f10+=_0x3ba4ca,_0x218267+=_0x1ae43f;else{_0x547f10+=_0x4ef287(0x1fd);break;}}_0x2097b5['fillText'](_0x547f10,_0x22434f,_0x40c4b0);}else _0x2097b5[_0x4ef287(0x278)](_0x464bab,_0x22434f,_0x40c4b0);_0x2097b5[_0x4ef287(0x468)]();}[_0x3bc2c8(0x1c7)](_0x5d6abb){const _0x367cae=_0x3bc2c8;_0xb13772[_0x367cae(0xff)](_0x5d6abb,this);}}const _0x255709=_0x3bc2c8(0x30d),_0x3eff7a=_0x3bc2c8(0x14a),_0x1da325=_0x3bc2c8(0x220),_0x506fa5=0x6,_0x5221cc=1.5,_0x521a07=0x4,_0x55c328=1.5,_0x2bf989=_0x3bc2c8(0x490);class _0x330227{constructor(_0x4d7dde,_0x3fadb0,_0x1bfb63,_0x4a535f){const _0xfba18f=_0x3bc2c8;_0x314dc6(this,_0xfba18f(0x21d),[]),_0x314dc6(this,_0xfba18f(0x231),null),_0x314dc6(this,_0xfba18f(0x351),null),_0x314dc6(this,'_anchorDot',null),_0x314dc6(this,_0xfba18f(0x4cc),null),_0x314dc6(this,'_eventUnsubscribe',null),(this[_0xfba18f(0x362)]=_0x4d7dde,this['_scene']=_0x3fadb0,this[_0xfba18f(0xdf)]=_0x1bfb63,this['_document']=_0x4a535f,this[_0xfba18f(0x379)]());}set[_0x3bc2c8(0x1ed)](_0x1296a2){const _0x1988ef=_0x3bc2c8;_0x1296a2?(this[_0x1988ef(0x2f7)]&&this[_0x1988ef(0x2f7)][_0x1988ef(0x47e)](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)][_0x1988ef(0x29f)]()):(this[_0x1988ef(0x2f7)]&&this['_anchorDot']['show'](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)]['hide']());}['dispose'](){const _0x3cf148=_0x3bc2c8;for(const _0x15f1f5 of this[_0x3cf148(0x21d)])_0x15f1f5[_0x3cf148(0x314)]();this[_0x3cf148(0x351)]&&this[_0x3cf148(0x351)][_0x3cf148(0x314)](),this[_0x3cf148(0x2f7)]&&this['_anchorDot'][_0x3cf148(0x314)](),this[_0x3cf148(0x231)]&&this[_0x3cf148(0x231)][_0x3cf148(0x314)](),this[_0x3cf148(0x3fc)]&&this[_0x3cf148(0x3fc)]();}[_0x3bc2c8(0x379)](){const _0x31a2c3=_0x3bc2c8;var _0x1e7d3f;const {_docSkeleton:_0x4c2fee,_document:_0x4430a3}=this,{color:_0x7d9f22,name:_0x3fd76a,ranges:_0x329f75}=this[_0x31a2c3(0x362)],_0x399e10=_0x4430a3[_0x31a2c3(0x2d1)](),{docsLeft:_0x14fc12,docsTop:_0x3fe0ba}=_0x399e10,_0x48cc1b=new _0x618f14[(_0x31a2c3(0xf4))](_0x399e10,_0x4c2fee);for(const {startOffset:_0x561fc3,endOffset:_0x5f25b7,collapsed:_0x43e706,isActive:_0xf27d01}of _0x329f75){const _0x17883f=_0x4c2fee['findNodePositionByCharIndex'](_0x561fc3),_0x3bdb49=_0x4c2fee[_0x31a2c3(0x150)](_0x5f25b7);if(_0xf27d01){const {contentBoxPointGroup:_0x6304a1}=_0x48cc1b['getRangePointData'](_0x3bdb49,_0x3bdb49);if(_0x6304a1[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x286)](_0x7d9f22,_0x6304a1,_0x14fc12,_0x3fe0ba,_0x3fd76a),this[_0x31a2c3(0x3fc)]=this[_0x31a2c3(0x365)]();}if(!_0x43e706&&_0x17883f&&_0x3bdb49){if(_0x618f14[_0x31a2c3(0x36a)](_0x17883f,_0x3bdb49)){const _0x1deb30=new _0x618f14[(_0x31a2c3(0x239))](_0x399e10,_0x4c2fee),{pointGroup:_0xbdda10}=(_0x1e7d3f=_0x1deb30[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49))!=null?_0x1e7d3f:{};if(_0xbdda10==null||_0xbdda10['length']===0x0)continue;this['_drawRectRange'](_0x7d9f22,_0xbdda10,_0x14fc12,_0x3fe0ba);}else{const {contentBoxPointGroup:_0x89b832}=_0x48cc1b[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49);if(_0x89b832[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x437)](_0x7d9f22,_0x89b832,_0x14fc12,_0x3fe0ba);}}}}[_0x3bc2c8(0x286)](_0x30fdde,_0xfdcf1d,_0x508a86,_0x481047,_0x128553){const _0x14a5d1=_0x3bc2c8,_0x16cfc4=this['_getAnchorBounding'](_0xfdcf1d),{left:_0x17bc78,top:_0x3953f3,height:_0x500c10}=_0x16cfc4,_0x4ee4d4=this[_0x14a5d1(0x316)](),_0x42dc2d=_0x55c328/_0x4ee4d4,_0x569e2f=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047,'height':_0x500c10,'width':_0x5221cc,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':_0x42dc2d,'stroke':_0x2bf989,'evented':!0x0});this['_anchor']=_0x569e2f,this[_0x14a5d1(0x4f0)][_0x14a5d1(0x1a5)](_0x569e2f,_0x618f14[_0x14a5d1(0x2ad)]);const _0x223fb8=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd['Tools'][_0x14a5d1(0x1d9)](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x521a07/0x2,'height':_0x521a07,'width':_0x521a07,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':0x0,'stroke':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'evented':!0x1});this[_0x14a5d1(0x2f7)]=_0x223fb8,this['_scene'][_0x14a5d1(0x1a5)](_0x223fb8,_0x618f14['TEXT_RANGE_LAYER_INDEX']);const _0x29d7df=new _0xb13772(_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x433f4b,'text':_0x128553,'color':_0x30fdde});this[_0x14a5d1(0x351)]=_0x29d7df,this['_scene']['addObject'](_0x29d7df,_0x618f14[_0x14a5d1(0x2ad)]),this[_0x14a5d1(0x1ed)]=!0x1;}[_0x3bc2c8(0x365)](){const _0x989078=_0x3bc2c8,_0x552300=this[_0x989078(0x231)]['onPointerEnter$'][_0x989078(0x457)](()=>{this['_hover']=!0x0;}),_0xd11fd2=this[_0x989078(0x231)][_0x989078(0x34d)][_0x989078(0x457)](()=>{const _0x2218d0=_0x989078;this[_0x2218d0(0x4cc)]&&clearTimeout(this[_0x2218d0(0x4cc)]),this['_hideTimer']=setTimeout(()=>{const _0x325fd2=_0x2218d0;this[_0x325fd2(0x1ed)]=!0x1;},0x7d0);});return()=>{const _0x123c90=_0x989078;_0x552300[_0x123c90(0x114)](),_0xd11fd2['unsubscribe']();};}[_0x3bc2c8(0x437)](_0x2eee2a,_0x2940d8,_0x3078e0,_0x43f0fa){const _0x3ea458=_0x3bc2c8,_0x3e6734=new _0x5b7cfd[(_0x3ea458(0x496))](_0x2eee2a)['setAlpha'](0.2)[_0x3ea458(0x360)](),_0x3957ef=new _0x46e2e3[(_0x3ea458(0x47c))](_0x3eff7a+_0x5b7cfd[_0x3ea458(0x2f6)][_0x3ea458(0x1d9)](_0x506fa5),{'pointsGroup':_0x2940d8,'fill':_0x3e6734||_0x46e2e3[_0x3ea458(0x3cc)](_0x5b7cfd[_0x3ea458(0x3f4)][_0x3ea458(0x439)],0.2),'left':_0x3078e0,'top':_0x43f0fa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ea458(0x21d)][_0x3ea458(0x13d)](_0x3957ef),this[_0x3ea458(0x4f0)]['addObject'](_0x3957ef,_0x618f14[_0x3ea458(0x2ad)]);}[_0x3bc2c8(0x2fa)](_0x1c38d9,_0x5df758,_0x56b2eb,_0x4ea399){const _0x20066e=_0x3bc2c8,_0xa57774=new _0x5b7cfd[(_0x20066e(0x496))](_0x1c38d9)[_0x20066e(0x4b5)](0.2)[_0x20066e(0x360)](),_0x39c583=new _0x46e2e3[(_0x20066e(0x47c))](_0x1da325+_0x5b7cfd['Tools'][_0x20066e(0x1d9)](_0x506fa5),{'pointsGroup':_0x5df758,'fill':_0xa57774||_0x46e2e3[_0x20066e(0x3cc)](_0x5b7cfd[_0x20066e(0x3f4)][_0x20066e(0x439)],0.2),'left':_0x56b2eb,'top':_0x4ea399,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20066e(0x21d)][_0x20066e(0x13d)](_0x39c583),this[_0x20066e(0x4f0)][_0x20066e(0x1a5)](_0x39c583,_0x618f14[_0x20066e(0x2ad)]);}[_0x3bc2c8(0x27b)](_0x1d51fc){const _0x3a86fb=_0x1d51fc[0x0],_0x3f1f20=_0x3a86fb[0x0],_0x4bb393=_0x3a86fb[0x2],{x:_0x515343,y:_0x905f34}=_0x3f1f20,{x:_0x1fb7c3,y:_0x42b07d}=_0x4bb393;return{'left':_0x515343,'top':_0x905f34,'width':_0x1fb7c3-_0x515343,'height':_0x42b07d-_0x905f34};}[_0x3bc2c8(0x316)](){const _0x314859=_0x3bc2c8,{scaleX:_0x19ee83,scaleY:_0x353371}=this[_0x314859(0x4f0)]['getAncestorScale']();return Math['max'](_0x19ee83,_0x353371);}}var _0x355836=Object[_0x3bc2c8(0x361)],_0x25da5f=Object[_0x3bc2c8(0x48b)],_0x4fae0c=(_0x42eec8,_0x41c80d,_0x14f2c5,_0x584226)=>{for(var _0x1a6890=_0x584226>0x1?void 0x0:_0x584226?_0x25da5f(_0x41c80d,_0x14f2c5):_0x41c80d,_0x3e00a5=_0x42eec8['length']-0x1,_0x51df87;_0x3e00a5>=0x0;_0x3e00a5--)(_0x51df87=_0x42eec8[_0x3e00a5])&&(_0x1a6890=(_0x584226?_0x51df87(_0x41c80d,_0x14f2c5,_0x1a6890):_0x51df87(_0x1a6890))||_0x1a6890);return _0x584226&&_0x1a6890&&_0x355836(_0x41c80d,_0x14f2c5,_0x1a6890),_0x1a6890;},_0x4c8c24=(_0x2e1337,_0x1131a2)=>(_0x4f04b9,_0x28996e)=>_0x1131a2(_0x4f04b9,_0x28996e,_0x2e1337);let _0x260281=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x400fac,_0x487bd3,_0x49082b,_0x2982ea,_0x4b35b1){const _0x260dab=_0x3bc2c8;super(),_0x314dc6(this,'_cursorShapes',[]),_0x314dc6(this,_0x260dab(0x10a),[]),(this[_0x260dab(0x331)]=_0x400fac,this[_0x260dab(0x434)]=_0x487bd3,this[_0x260dab(0xf8)]=_0x49082b,this['_commandService']=_0x2982ea,this['_themeService']=_0x4b35b1,this[_0x260dab(0x276)]());}[_0x3bc2c8(0x276)](){const _0x504f79=_0x3bc2c8,_0xafcf92=this[_0x504f79(0x331)][_0x504f79(0x373)],_0x48b83f=this[_0x504f79(0x434)];this[_0x504f79(0x131)](_0x266483[_0x504f79(0x1ef)]([this[_0x504f79(0xf8)][_0x504f79(0x4c6)](_0xafcf92),this[_0x504f79(0x348)][_0x504f79(0x230)]])[_0x504f79(0x198)](_0x51de38[_0x504f79(0x39c)](([_0x2d381a,_0x230179])=>({'skeleton':_0x48b83f[_0x504f79(0x26f)](),'cursors':[..._0x2d381a[_0x504f79(0x4c2)]()][_0x504f79(0x448)](_0x31a71f=>({..._0x31a71f,'color':_0x230179[_0x31a71f[_0x504f79(0x3da)]]}))})))[_0x504f79(0x2f5)](_0x4dad92=>{const _0x434181=_0x504f79;if(this[_0x434181(0x2a9)](),_0x4dad92){const {skeleton:_0x57aafb,cursors:_0x123c0d}=_0x4dad92;this[_0x434181(0x37c)](_0x57aafb,_0x123c0d);}})),this[_0x504f79(0xfe)](),this[_0x504f79(0x4a6)]();}[_0x3bc2c8(0x37c)](_0xf89e9b,_0x27ae18){const _0x2291d0=_0x3bc2c8,{scene:_0x5a0ccb,mainComponent:_0x1775a8}=this[_0x2291d0(0x331)],_0x509170=_0x27ae18[_0x2291d0(0x39c)](_0x1988f4=>new _0x330227(_0x1988f4,_0x5a0ccb,_0xf89e9b,_0x1775a8));this[_0x2291d0(0xf2)]=_0x509170,this[_0x2291d0(0x10a)]=_0x27ae18;}[_0x3bc2c8(0x236)](){const _0x3e5df8=_0x3bc2c8;this[_0x3e5df8(0x2a9)]();const {scene:_0x66cbf8,mainComponent:_0x5ebcd7}=this['_context'],_0x205ae8=this[_0x3e5df8(0x434)][_0x3e5df8(0x26f)](),_0x4f178a=this[_0x3e5df8(0x10a)][_0x3e5df8(0x39c)](_0x15a943=>new _0x330227(_0x15a943,_0x66cbf8,_0x205ae8,_0x5ebcd7));this['_cursorShapes']=_0x4f178a;}[_0x3bc2c8(0x2a9)](){const _0x2dba12=_0x3bc2c8;this['_cursorShapes']['forEach'](_0x165807=>_0x165807[_0x2dba12(0x314)]()),this[_0x2dba12(0xf2)]=[];}[_0x3bc2c8(0x4a6)](){const _0x4ea157=_0x3bc2c8,_0x20f68c=[_0x618f14[_0x4ea157(0x3af)]['id']];this['disposeWithMe'](this[_0x4ea157(0x2c6)][_0x4ea157(0x15f)](_0x5bf0e7=>{const _0x23d03f=_0x4ea157;_0x20f68c[_0x23d03f(0x3a9)](_0x5bf0e7['id'])&&_0x5bf0e7['params'][_0x23d03f(0x373)]===this[_0x23d03f(0x331)][_0x23d03f(0x373)]&&this['_refreshCollabCursors']();}));}[_0x3bc2c8(0xfe)](){const _0x318200=_0x3bc2c8;this[_0x318200(0x131)](_0x5b7cfd[_0x318200(0x444)](this[_0x318200(0x331)][_0x318200(0x249)][_0x318200(0x3fa)])[_0x318200(0x198)](_0x51de38[_0x318200(0x3b6)](_0xebe101=>_0xebe101[_0x318200(0x413)]===_0x46e2e3[_0x318200(0x2ae)][_0x318200(0x2d3)]),_0x51de38[_0x318200(0x4f6)](0x10))[_0x318200(0x2f5)](()=>{const _0x5c076c=_0x318200;this[_0x5c076c(0x236)]();}));}};_0x260281=_0x4fae0c([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x1e0)],_0x260281),_0x4c8c24(0x1,_0x5b7cfd['Inject'](_0x3e2148[_0x3bc2c8(0x3ca)])),_0x4c8c24(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x4c8c24(0x3,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x4c8c24(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x260281);const _0x26cee5=0x1,_0x3fc450=1.5;class _0x44ac57 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x5162b6,_0x1e36c8){const _0x38e431=_0x3bc2c8;super(_0x5162b6,_0x1e36c8),_0x314dc6(this,_0x38e431(0x20c)),_0x314dc6(this,'_hovered',!0x1),_0x314dc6(this,_0x38e431(0x16c)),_0x314dc6(this,_0x38e431(0x4be),''),_0x314dc6(this,_0x38e431(0x483),_0x38e431(0x264)),_0x314dc6(this,_0x38e431(0x260)),(_0x1e36c8&&this['setShapeProps'](_0x1e36c8),this[_0x38e431(0x3e4)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x0})),this[_0x38e431(0x34d)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x1})));}['setShapeProps'](_0x1e0cfa){const _0x166df9=_0x3bc2c8;var _0x155894,_0x1cd2a6,_0xd4023a,_0x4a2ddd,_0x31c47e,_0x44df32;this[_0x166df9(0x20c)]=(_0x155894=_0x1e0cfa['color'])!=null?_0x155894:this[_0x166df9(0x20c)],this[_0x166df9(0x277)]=(_0x1cd2a6=_0x1e0cfa[_0x166df9(0x432)])!=null?_0x1cd2a6:this[_0x166df9(0x277)],this[_0x166df9(0x16c)]=(_0xd4023a=_0x1e0cfa[_0x166df9(0x177)])!=null?_0xd4023a:this[_0x166df9(0x16c)],this['_name']=(_0x4a2ddd=_0x1e0cfa['name'])!=null?_0x4a2ddd:this[_0x166df9(0x4be)],this[_0x166df9(0x483)]=(_0x31c47e=_0x1e0cfa[_0x166df9(0x428)])!=null?_0x31c47e:this[_0x166df9(0x483)],this['_backgroundColor']=(_0x44df32=_0x1e0cfa['backgroundColor'])!=null?_0x44df32:this['_backgroundColor'],this['transformByState']({'width':_0x1e0cfa['width'],'height':_0x1e0cfa[_0x166df9(0x3e5)]});}[_0x3bc2c8(0x427)](_0xeaf19e){const _0x770c0c=_0x3bc2c8,{row:_0x203b23,column:_0x3df94e}=_0xeaf19e;if(_0x203b23>=this[_0x770c0c(0x16c)][_0x770c0c(0x257)]&&_0x203b23<=this[_0x770c0c(0x16c)][_0x770c0c(0x370)]&&_0x3df94e>=this[_0x770c0c(0x16c)][_0x770c0c(0x17a)]&&_0x3df94e<=this[_0x770c0c(0x16c)][_0x770c0c(0x460)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3bc2c8(0x422)](_0x3264bc){return!0x1;}[_0x3bc2c8(0x1c7)](_0x16cc4d){const _0xc3c6fc=_0x3bc2c8;_0x46e2e3[_0xc3c6fc(0x1c3)]['drawWith'](_0x16cc4d,{'width':this[_0xc3c6fc(0x1b3)],'height':this[_0xc3c6fc(0x3e5)],'strokeWidth':_0x3fc450,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc3c6fc(0x260)]}),this[_0xc3c6fc(0x277)]&&(_0x16cc4d['save'](),_0x16cc4d['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0xc3c6fc(0x483)]===_0xc3c6fc(0x4ac)?0x0:-_0x433f4b),_0xb13772[_0xc3c6fc(0xff)](_0x16cc4d,{'text':this[_0xc3c6fc(0x4be)],'color':this[_0xc3c6fc(0x20c)]}),_0x16cc4d[_0xc3c6fc(0x468)]());}}var _0x5808aa=Object[_0x3bc2c8(0x361)],_0x1104f7=Object[_0x3bc2c8(0x48b)],_0x5c93f6=(_0x5c0922,_0x5b0e1b,_0x2f0107,_0x1dd326)=>{const _0x882e4f=_0x3bc2c8;for(var _0x3a9202=_0x1dd326>0x1?void 0x0:_0x1dd326?_0x1104f7(_0x5b0e1b,_0x2f0107):_0x5b0e1b,_0x3f12ed=_0x5c0922[_0x882e4f(0x3d6)]-0x1,_0x3d9cf4;_0x3f12ed>=0x0;_0x3f12ed--)(_0x3d9cf4=_0x5c0922[_0x3f12ed])&&(_0x3a9202=(_0x1dd326?_0x3d9cf4(_0x5b0e1b,_0x2f0107,_0x3a9202):_0x3d9cf4(_0x3a9202))||_0x3a9202);return _0x1dd326&&_0x3a9202&&_0x5808aa(_0x5b0e1b,_0x2f0107,_0x3a9202),_0x3a9202;},_0x35f6d1=(_0x4b1141,_0x529007)=>(_0x115a33,_0x4f9639)=>_0x529007(_0x115a33,_0x4f9639,_0x4b1141);const _0x3dacb1=0x1389;let _0x18e89b=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4380e9,_0x484e6d,_0x39e9ef,_0x223540){const _0x47ca74=_0x3bc2c8;super(),_0x314dc6(this,_0x47ca74(0x10a),new Set()),_0x314dc6(this,_0x47ca74(0x4ef),null),(this['_context']=_0x4380e9,this[_0x47ca74(0x4b0)]=_0x484e6d,this['_collabCursorController']=_0x39e9ef,this['_themeService']=_0x223540,this['_init']());}[_0x3bc2c8(0x276)](){const _0x8a399b=_0x3bc2c8;this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x198)](_0x51de38['takeUntil'](this['dispose$']),_0x51de38[_0x8a399b(0x4a8)](_0x12176a=>{const _0x11b85c=_0x8a399b;if(_0x12176a){const _0x4de74b=_0x12176a[_0x11b85c(0x1e2)];return _0x266483[_0x11b85c(0x1ef)](this[_0x11b85c(0xf8)][_0x11b85c(0x4c6)](this[_0x11b85c(0x331)]['unitId']),this[_0x11b85c(0x348)][_0x11b85c(0x230)])[_0x11b85c(0x198)](_0x51de38['map'](([_0x3c17da,_0x1137c4])=>{const _0x3759e4=_0x11b85c,_0x1deb1d=new Map();return _0x3c17da[_0x3759e4(0x255)]((_0x4fae89,_0x2ee577)=>{const _0x1237ab=_0x3759e4;if(_0x4fae89[_0x1237ab(0x415)]===_0x4de74b){const _0x3eec82={..._0x4fae89};_0x3eec82['color']=_0x1137c4[_0x4fae89[_0x1237ab(0x3da)]],_0x1deb1d[_0x1237ab(0x10d)](_0x2ee577,_0x3eec82);}}),{'skeleton':_0x12176a,'cursors':_0x1deb1d};}));}return _0x266483['of']({'skeleton':null,'cursors':new Map()});}))[_0x8a399b(0x2f5)](({skeleton:_0x531b97,cursors:_0x5aed34})=>{const _0x3fc575=_0x8a399b;this[_0x3fc575(0x2a9)](),_0x531b97&&this['_updateCollabCursors'](_0x531b97,_0x5aed34);}),this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x2f5)](_0x405e15=>{const _0x1308cf=_0x8a399b;if(_0x405e15==null)return;const {skeleton:_0x196c83}=_0x405e15,{scene:_0x1f5806}=this['_context'];_0x1f5806['onPointerMove$'][_0x1308cf(0x457)](_0x5b7cfd[_0x1308cf(0x115)](_0x249730=>{const _0x3b9635=_0x1308cf;var _0x456e80,_0xf56c1d;const {offsetX:_0x3a1ec9,offsetY:_0x1d645e}=_0x249730,{x:_0xcea085,y:_0x6b400c}=_0x1f5806[_0x3b9635(0x272)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0x3a1ec9,_0x1d645e])),{scaleX:_0x563f1b,scaleY:_0x53beaa}=_0x1f5806['getAncestorScale'](),_0x168940=_0x1f5806[_0x3b9635(0x47f)](_0x4a372b[_0x3b9635(0x178)][_0x3b9635(0x501)]),_0x2cb638=_0x1f5806[_0x3b9635(0x133)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0xcea085,_0x6b400c]),_0x168940),_0x58005c=_0x196c83[_0x3b9635(0x4e5)](_0x3a1ec9,_0x1d645e,_0x563f1b,_0x53beaa,_0x2cb638);((_0x456e80=this[_0x3b9635(0x4ef)])==null?void 0x0:_0x456e80['column'])===_0x58005c[_0x3b9635(0x1e4)]&&((_0xf56c1d=this[_0x3b9635(0x4ef)])==null?void 0x0:_0xf56c1d[_0x3b9635(0x39d)])===_0x58005c['row']||this[_0x3b9635(0x10a)][_0x3b9635(0x255)](_0x47fab4=>{const _0x192dfa=_0x3b9635;_0x47fab4[_0x192dfa(0x427)](_0x58005c);});},0x64));});}['_updateCollabCursors'](_0x5ebc5e,_0x52f80a){const _0x806d37=_0x3bc2c8;var _0x713f66;const _0x19114c=(_0x713f66=this['_sheetSkeletonManagerService'][_0x806d37(0x48e)]())==null?void 0x0:_0x713f66[_0x806d37(0x1bc)];if(!_0x19114c)return;const _0xda43aa=this[_0x806d37(0x20f)]();if(!_0xda43aa)return;this[_0x806d37(0x10a)][_0x806d37(0x255)](_0xa1098=>{const _0x148609=_0x806d37;_0xa1098[_0x148609(0x488)]();});const {scene:_0x1b7ee9}=_0xda43aa,_0x207245=_0x5e3529(Array[_0x806d37(0x1e3)](_0x52f80a[_0x806d37(0x4c2)]()))[_0x806d37(0x39c)](_0x53ec29=>{const _0x5a6ee3=_0x806d37,{color:_0x4c2840,range:_0x188e94,name:_0x54f06f,selection:_0x2dbf89,sheetID:_0x597908}=_0x53ec29,{startColumn:_0x165855,startRow:_0xc5e3c7,endColumn:_0x38e12b,endRow:_0x22d30b}=_0x188e94,_0x59a45c=_0x4a372b[_0x5a6ee3(0x3b8)](_0xc5e3c7,_0x165855,_0x1b7ee9,_0x19114c),_0x553709=_0x4a372b[_0x5a6ee3(0x3b8)](_0x22d30b,_0x38e12b,_0x1b7ee9,_0x19114c),{columnHeaderHeightAndMarginTop:_0x4f1347}=_0x19114c,{startX:_0x105e79,startY:_0x24c616}=_0x59a45c,{endX:_0x181416,endY:_0x284159}=_0x553709,_0x23504b=_0x181416-_0x105e79,_0x5b078a=_0x284159-_0x24c616,_0x1822bb={'labelPosition':_0x24c616-_0x4f1347>=_0x433f4b?'top':_0x5a6ee3(0x4ac),'sheetID':_0x597908,'range':_0x188e94,'color':_0x4c2840,'name':_0x54f06f,'selection':_0x2dbf89,'left':_0x105e79,'top':_0x24c616,'width':_0x23504b,'height':_0x5b078a,'evented':!0x1,'zIndex':_0x3dacb1};return new _0x44ac57(_0x54f06f,_0x1822bb);});_0x1b7ee9[_0x806d37(0x445)](_0x207245,_0x26cee5),this['_cursors']=new Set(_0x207245);}[_0x3bc2c8(0x2a9)](){const _0x17f332=_0x3bc2c8;var _0x45177d;(_0x45177d=this['_cursors'])==null||_0x45177d[_0x17f332(0x255)](_0x32952a=>_0x32952a[_0x17f332(0x314)]());}['_getSheetObject'](){const _0x2b1367=_0x3bc2c8;return _0x4a372b['getSheetObject'](this[_0x2b1367(0x331)][_0x2b1367(0x155)],this[_0x2b1367(0x331)]);}};_0x18e89b=_0x5c93f6([_0x35f6d1(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4a372b[_0x3bc2c8(0x18d)])),_0x35f6d1(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x35f6d1(0x3,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x18e89b);function _0x5e3529(_0x30fc69){const _0xfb23de=_0x3bc2c8,_0x5e63c0=new Map();return _0x30fc69[_0xfb23de(0x255)](_0x7954e1=>{const _0xef1212=_0xfb23de;if(_0x5e63c0[_0xef1212(0x232)](_0x7954e1[_0xef1212(0x2b1)])){const _0x80d5b6=_0x5e63c0[_0xef1212(0x451)](_0x7954e1['selection']);_0x80d5b6[_0xef1212(0x161)]+=',\x20'+_0x7954e1[_0xef1212(0x161)];}else _0x5e63c0[_0xef1212(0x10d)](_0x7954e1['selection'],_0x7954e1);}),Array[_0xfb23de(0x1e3)](_0x5e63c0['values']());}var _0x531d50=function(){const _0x56a5b2=_0x3bc2c8;return _0x531d50=Object[_0x56a5b2(0x4b1)]||function(_0x1ea76c){const _0x5df324=_0x56a5b2;for(var _0x4aeaa0,_0x1dd5c8=0x1,_0x57769f=arguments[_0x5df324(0x3d6)];_0x1dd5c8<_0x57769f;_0x1dd5c8++){_0x4aeaa0=arguments[_0x1dd5c8];for(var _0xe57257 in _0x4aeaa0)Object['prototype'][_0x5df324(0x44f)][_0x5df324(0x126)](_0x4aeaa0,_0xe57257)&&(_0x1ea76c[_0xe57257]=_0x4aeaa0[_0xe57257]);}return _0x1ea76c;},_0x531d50[_0x56a5b2(0x458)](this,arguments);},_0x4d0f31=function(_0x534146,_0x5ce0d5){const _0xa7dcda=_0x3bc2c8;var _0x1a4d87={};for(var _0x16723d in _0x534146)Object['prototype'][_0xa7dcda(0x44f)][_0xa7dcda(0x126)](_0x534146,_0x16723d)&&_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d)<0x0&&(_0x1a4d87[_0x16723d]=_0x534146[_0x16723d]);if(_0x534146!=null&&typeof Object['getOwnPropertySymbols']==_0xa7dcda(0x4ab)){for(var _0x215986=0x0,_0x16723d=Object[_0xa7dcda(0x4c8)](_0x534146);_0x215986<_0x16723d[_0xa7dcda(0x3d6)];_0x215986++)_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d[_0x215986])<0x0&&Object[_0xa7dcda(0x293)]['propertyIsEnumerable'][_0xa7dcda(0x126)](_0x534146,_0x16723d[_0x215986])&&(_0x1a4d87[_0x16723d[_0x215986]]=_0x534146[_0x16723d[_0x215986]]);}return _0x1a4d87;},_0x430fdf=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x14590b,_0x464674){const _0x47292b=_0x3bc2c8;var _0x1fc5ea=_0x14590b[_0x47292b(0x45d)],_0x30051e=_0x14590b['id'],_0x4a235c=_0x14590b['className'],_0x42c47f=_0x14590b[_0x47292b(0x473)],_0x206809=_0x4d0f31(_0x14590b,[_0x47292b(0x45d),'id',_0x47292b(0x508),_0x47292b(0x473)]),_0xb6358e='univerjs-icon\x20univerjs-icon-'[_0x47292b(0x353)](_0x30051e,'\x20')[_0x47292b(0x353)](_0x4a235c||'')[_0x47292b(0x2da)](),_0x151c2a=_0x1b993c['useRef']('_'[_0x47292b(0x353)](_0x50a049()));return _0x26bb80(_0x1fc5ea,''[_0x47292b(0x353)](_0x30051e),{'defIds':_0x1fc5ea[_0x47292b(0x37f)],'idSuffix':_0x151c2a[_0x47292b(0x4fb)]},_0x531d50({'ref':_0x464674,'className':_0xb6358e},_0x206809),_0x42c47f);});function _0x26bb80(_0x1bc876,_0x1f6444,_0x4011bc,_0x4c625b,_0x4518b8){const _0x59e4aa=_0x3bc2c8;return _0x1b993c[_0x59e4aa(0x213)](_0x1bc876['tag'],_0x531d50(_0x531d50({'key':_0x1f6444},_0x1578db(_0x1bc876,_0x4011bc,_0x4518b8)),_0x4c625b),(_0x1d34b7(_0x1bc876,_0x4011bc)[_0x59e4aa(0x3db)]||[])['map'](function(_0x5e934d,_0x29a713){const _0xa52f3d=_0x59e4aa;return _0x26bb80(_0x5e934d,''[_0xa52f3d(0x353)](_0x1f6444,'-')[_0xa52f3d(0x353)](_0x1bc876[_0xa52f3d(0x44c)],'-')[_0xa52f3d(0x353)](_0x29a713),_0x4011bc,void 0x0,_0x4518b8);}));}function _0x1578db(_0x11e1c2,_0x41edcd,_0x42fbfc){const _0x107169=_0x3bc2c8;var _0x29c436=_0x531d50({},_0x11e1c2['attrs']);_0x42fbfc!=null&&_0x42fbfc[_0x107169(0x3f1)]&&_0x29c436[_0x107169(0xe6)]===_0x107169(0x3f1)&&(_0x29c436[_0x107169(0xe6)]=_0x42fbfc['colorChannel1']);var _0x1aa831=_0x41edcd[_0x107169(0x37f)];return!_0x1aa831||_0x1aa831[_0x107169(0x3d6)]===0x0||(_0x11e1c2[_0x107169(0x44c)]==='use'&&_0x29c436[_0x107169(0x30e)]&&(_0x29c436['xlink:href']=_0x29c436[_0x107169(0x30e)]+_0x41edcd[_0x107169(0x1ec)]),Object['entries'](_0x29c436)['forEach'](function(_0x16502a){const _0x4c0934=_0x107169;var _0x3d787a=_0x16502a[0x0],_0x497678=_0x16502a[0x1];typeof _0x497678=='string'&&(_0x29c436[_0x3d787a]=_0x497678[_0x4c0934(0x47a)](/url\(#(.*)\)/,_0x4c0934(0x190)['concat'](_0x41edcd['idSuffix'],')')));})),_0x29c436;}function _0x1d34b7(_0x2dfe0b,_0x2f4be8){const _0x3adafc=_0x3bc2c8;var _0x209374,_0x29c2b2=_0x2f4be8['defIds'];return!_0x29c2b2||_0x29c2b2[_0x3adafc(0x3d6)]===0x0?_0x2dfe0b:_0x2dfe0b[_0x3adafc(0x44c)]===_0x3adafc(0x31a)&&(!((_0x209374=_0x2dfe0b['children'])===null||_0x209374===void 0x0)&&_0x209374[_0x3adafc(0x3d6)])?_0x531d50(_0x531d50({},_0x2dfe0b),{'children':_0x2dfe0b[_0x3adafc(0x3db)][_0x3adafc(0x39c)](function(_0x11be5c){const _0x496669=_0x3adafc;return typeof _0x11be5c[_0x496669(0x1df)]['id']==_0x496669(0x210)&&_0x29c2b2&&_0x29c2b2[_0x496669(0x3d2)](_0x11be5c[_0x496669(0x1df)]['id'])>-0x1?_0x531d50(_0x531d50({},_0x11be5c),{'attrs':_0x531d50(_0x531d50({},_0x11be5c[_0x496669(0x1df)]),{'id':_0x11be5c['attrs']['id']+_0x2f4be8['idSuffix']})}):_0x11be5c;})}):_0x2dfe0b;}function _0x50a049(){const _0x18e4dd=_0x3bc2c8;return Math['random']()[_0x18e4dd(0x35c)](0x24)[_0x18e4dd(0x1c1)](0x2,0x8);}_0x430fdf[_0x3bc2c8(0x407)]=_0x3bc2c8(0x42d);var _0x33d4af={'tag':_0x3bc2c8(0x474),'attrs':{'fill':'none','viewBox':_0x3bc2c8(0x4e3),'width':'1em','height':_0x3bc2c8(0x4d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bc2c8(0x502)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x38e),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc)}}]}]}],'defIds':[_0x3bc2c8(0x345)]},_0x237fca=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x5a00dd,_0x6920a7){const _0x433f0a=_0x3bc2c8;return _0x1b993c[_0x433f0a(0x213)](_0x430fdf,Object[_0x433f0a(0x4b1)]({},_0x5a00dd,{'id':_0x433f0a(0x1dc),'ref':_0x6920a7,'icon':_0x33d4af}));});_0x237fca['displayName']=_0x3bc2c8(0x244);var _0x42bcec={'tag':_0x3bc2c8(0x474),'attrs':{'fill':_0x3bc2c8(0x3a8),'viewBox':'0\x200\x2017\x2016','width':_0x3bc2c8(0x4d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x28a),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':_0x3bc2c8(0x237),'attrs':{'id':_0x3bc2c8(0x49c)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc),'transform':_0x3bc2c8(0x1bd)}}]}]}],'defIds':[_0x3bc2c8(0x49c)]},_0x23f251=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x1605a6,_0x4b17d0){const _0x5a30cf=_0x3bc2c8;return _0x1b993c['createElement'](_0x430fdf,Object[_0x5a30cf(0x4b1)]({},_0x1605a6,{'id':_0x5a30cf(0x1d2),'ref':_0x4b17d0,'icon':_0x42bcec}));});_0x23f251[_0x3bc2c8(0x407)]=_0x3bc2c8(0x18a);const _0x1a4172={'onlineStatusIcon':_0x3bc2c8(0x153),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3bc2c8(0x284),'online':_0x3bc2c8(0x1f5),'offline':_0x3bc2c8(0xe5)};function _0x45a2ae(_0x57a7bc){const _0x3143d1=_0x3bc2c8;switch(_0x57a7bc){case _0x5926c5['OFFLINE']:return'collabStatus.offline';case _0x5926c5[_0x3143d1(0x35d)]:return _0x3143d1(0x4ce);case _0x5926c5[_0x3143d1(0x104)]:return _0x3143d1(0x336);case _0x5926c5[_0x3143d1(0x352)]:return _0x3143d1(0x4e9);case _0x5926c5[_0x3143d1(0x263)]:case _0x5926c5['AWAITING']:case _0x5926c5[_0x3143d1(0x268)]:return'collabStatus.syncing';case _0x5926c5[_0x3143d1(0xfd)]:return _0x3143d1(0x418);}}function _0x2c3280(_0x280f4c){const _0x5c36d0=_0x3bc2c8,{status$:_0x480b9e}=_0x280f4c,_0xd00258=_0x2ce95d['useObservable'](_0x480b9e,_0x5926c5[_0x5c36d0(0x352)]),_0x4414e3=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x5b7cfd[_0x5c36d0(0x385)]),_0x5ce884=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x48e51e[_0x5c36d0(0x1d8)]),_0x122164=_0xd00258!==_0x5926c5[_0x5c36d0(0x3b0)],_0x4fb46c=_0x4414e3['t'](_0x45a2ae(_0xd00258)),_0x478dfa=_0x3f7833(_0x1a4172[_0x5c36d0(0x1a2)],{[_0x1a4172[_0x5c36d0(0x3eb)]]:_0x122164,[_0x1a4172[_0x5c36d0(0x392)]]:!_0x122164}),_0x777c13=_0x122164?_0x1b993c[_0x5c36d0(0x213)](_0x23f251,null):_0x1b993c[_0x5c36d0(0x213)](_0x237fca,null),_0x30396a=_0x1b993c[_0x5c36d0(0xe0)](()=>{const _0x568c35=_0x5c36d0;_0x122164||_0x5ce884[_0x568c35(0x28d)]();},[_0x122164,_0x5ce884]);function _0x47add1(){const _0x8741bc=_0x5c36d0;return _0x1b993c[_0x8741bc(0x213)](_0x8741bc(0x20a),{'className':_0x478dfa,'onClick':_0x30396a},_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172[_0x8741bc(0x266)]},_0x777c13),_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172['onlineStatusTitle']},_0x4fb46c));}return _0x122164?_0x47add1():_0x1b993c[_0x5c36d0(0x213)](_0x4466a1[_0x5c36d0(0x386)],{'title':_0x4414e3['t']('collab-client.tooltip.reconnect')},_0x47add1());}var _0x50b81e=Object[_0x3bc2c8(0x361)],_0x50292a=Object[_0x3bc2c8(0x48b)],_0x969e56=(_0x2d147f,_0x22e09d,_0x3ca6fc,_0x482696)=>{const _0x31838f=_0x3bc2c8;for(var _0xeb5e43=_0x482696>0x1?void 0x0:_0x482696?_0x50292a(_0x22e09d,_0x3ca6fc):_0x22e09d,_0xc84db1=_0x2d147f[_0x31838f(0x3d6)]-0x1,_0x1f5ab5;_0xc84db1>=0x0;_0xc84db1--)(_0x1f5ab5=_0x2d147f[_0xc84db1])&&(_0xeb5e43=(_0x482696?_0x1f5ab5(_0x22e09d,_0x3ca6fc,_0xeb5e43):_0x1f5ab5(_0xeb5e43))||_0xeb5e43);return _0x482696&&_0xeb5e43&&_0x50b81e(_0x22e09d,_0x3ca6fc,_0xeb5e43),_0xeb5e43;},_0x521eee=(_0xa99342,_0x53ea5a)=>(_0xa8c325,_0x23c538)=>_0x53ea5a(_0xa8c325,_0x23c538,_0xa99342);_0x48e51e[_0x3bc2c8(0x4ed)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x478886,_0x513413,_0x3f8570,_0x465099){const _0x38a3ce=_0x3bc2c8;super(),_0x314dc6(this,_0x38a3ce(0x400),new _0x266483[(_0x38a3ce(0x43e))](_0x5926c5[_0x38a3ce(0x352)])),(this[_0x38a3ce(0x10b)]=_0x478886,this['_uiPartsService']=_0x513413,this['_injector']=_0x3f8570,this['_collaborationController']=_0x465099,this[_0x38a3ce(0x3ae)](),this[_0x38a3ce(0x50c)]());}['_initStatusListener'](){const _0x46ed8d=_0x3bc2c8;this[_0x46ed8d(0x131)](this[_0x46ed8d(0x10b)][_0x46ed8d(0x228)][_0x46ed8d(0x198)](_0x266483[_0x46ed8d(0x4a8)](()=>{const _0x1b4afb=_0x46ed8d,_0x2fee15=this[_0x1b4afb(0x10b)]['getFocusedUnit']();return _0x2fee15?this[_0x1b4afb(0x2b2)][_0x1b4afb(0x27a)](_0x2fee15[_0x1b4afb(0x183)]()):_0x266483['of'](null);}),_0x266483[_0x46ed8d(0x4a8)](_0x2f460b=>_0x2f460b?_0x2f460b[_0x46ed8d(0x294)]:_0x266483['of'](_0x5926c5[_0x46ed8d(0x352)])))[_0x46ed8d(0x2f5)](_0x29e6ef=>{const _0x4187e7=_0x46ed8d;this[_0x4187e7(0x400)]['next'](_0x29e6ef);}));}[_0x3bc2c8(0x3ae)](){const _0x332b17=_0x3bc2c8;this[_0x332b17(0x131)](this['_uiPartsService'][_0x332b17(0xd7)](_0x2ce95d[_0x332b17(0x1f3)]['HEADER_MENU'],()=>_0x5b7cfd[_0x332b17(0x4df)](_0x149a3b({'status$':this[_0x332b17(0x400)][_0x332b17(0x4eb)]()}),this[_0x332b17(0x30f)])));}},_0x48e51e[_0x3bc2c8(0x4ed)]=_0x969e56([_0x521eee(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x521eee(0x1,_0x2ce95d['IUIPartsService']),_0x521eee(0x2,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x521eee(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x30c)]))],_0x48e51e[_0x3bc2c8(0x4ed)]);function _0x149a3b(_0x356288){const {status$:_0x222945}=_0x356288;return function(){return _0x1b993c['createElement'](_0x2c3280,{'status$':_0x222945});};}const _0x325c17=_0x5b7cfd['createIdentifier'](_0x3bc2c8(0x19e));var _0x23ac03=Object[_0x3bc2c8(0x361)],_0x2037ff=Object[_0x3bc2c8(0x48b)],_0x311bd6=(_0x5c9e48,_0x48820c,_0x225a89,_0x6a7cfe)=>{for(var _0x325694=_0x6a7cfe>0x1?void 0x0:_0x6a7cfe?_0x2037ff(_0x48820c,_0x225a89):_0x48820c,_0x37a933=_0x5c9e48['length']-0x1,_0x59965d;_0x37a933>=0x0;_0x37a933--)(_0x59965d=_0x5c9e48[_0x37a933])&&(_0x325694=(_0x6a7cfe?_0x59965d(_0x48820c,_0x225a89,_0x325694):_0x59965d(_0x325694))||_0x325694);return _0x6a7cfe&&_0x325694&&_0x23ac03(_0x48820c,_0x225a89,_0x325694),_0x325694;},_0x37f9ca=(_0x3ea53b,_0x41abad)=>(_0x2e825c,_0x4cc5d0)=>_0x41abad(_0x2e825c,_0x4cc5d0,_0x3ea53b);_0x48e51e[_0x3bc2c8(0x3a2)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0xf1a53b,_0xbdb6f8,_0x526412,_0x3480c3,_0x2f3860,_0x210a7e){const _0x5a00eb=_0x3bc2c8;super(),this[_0x5a00eb(0x4d9)]=_0xf1a53b,this[_0x5a00eb(0x4e7)]=_0xbdb6f8,this[_0x5a00eb(0x2c6)]=_0x526412,this['_localCacheService']=_0x3480c3,this[_0x5a00eb(0x1f2)]=_0x2f3860,_0x210a7e?_0x210a7e==null||_0x210a7e[_0x5a00eb(0x33a)]()[_0x5a00eb(0x3a3)](()=>this[_0x5a00eb(0x276)]()):(this[_0x5a00eb(0x4e7)]['debug'](_0x5a00eb(0x218),_0x5a00eb(0x3cb)),this[_0x5a00eb(0x276)]());}async[_0x3bc2c8(0x276)](){const _0xa0096b=_0x3bc2c8,_0x51b5da=this[_0xa0096b(0x4d9)][_0xa0096b(0x22f)]('unit'),_0x44163d=this['_urlService']['getParam'](_0xa0096b(0x413));if(!_0x51b5da||!_0x44163d){this[_0xa0096b(0x4e7)]['debug'](_0xa0096b(0x218),_0xa0096b(0x424));return;}switch(Number(_0x44163d)){case _0x249560[_0xa0096b(0x301)]:{const _0x4b164b=await this[_0xa0096b(0x2e9)](_0x51b5da);this[_0xa0096b(0x2cf)](_0x4b164b);break;}case _0x249560['UNIVER_DOC']:{await this[_0xa0096b(0x2a1)](_0x51b5da);break;}default:{this['_logService'][_0xa0096b(0x476)]('[DataLoaderController]',_0xa0096b(0x130));break;}}}async['_setupSubUnitSync'](_0x994924){const _0x191d7a=_0x3bc2c8;await this[_0x191d7a(0x510)](_0x994924),_0x994924[_0x191d7a(0x3d8)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](_0x2291a3=>{const _0x259d6a=_0x191d7a;_0x2291a3&&this[_0x259d6a(0x347)](_0x2291a3);}),this['_urlService'][_0x191d7a(0x26c)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](()=>this['_updateSubUnitFromURLParams'](_0x994924));}[_0x3bc2c8(0x347)](_0x1cb91f,_0xe1c168=!0x1){const _0x401f86=_0x3bc2c8,_0x56a48e=this[_0x401f86(0x4d9)]['getParam'](_0x401f86(0x2ce));_0x1cb91f[_0x401f86(0x43d)]()!==_0x56a48e&&this[_0x401f86(0x4d9)][_0x401f86(0x40f)]('subunit',_0x1cb91f[_0x401f86(0x43d)](),_0xe1c168);}async[_0x3bc2c8(0x510)](_0xd0f6b5){const _0x347144=_0x3bc2c8;var _0x24e10e;const _0x4dc6a7=this[_0x347144(0x4d9)]['getParam'](_0x347144(0x2ce));if(!_0x4dc6a7||!_0xd0f6b5[_0x347144(0x132)](_0x4dc6a7)){const _0x5d4cfe=_0xd0f6b5[_0x347144(0x4c4)]()[0x0],_0x2c638c=_0xd0f6b5[_0x347144(0x132)](_0x5d4cfe);if(!_0x2c638c)return;this[_0x347144(0x347)](_0x2c638c,!0x0),await this[_0x347144(0x2c6)]['executeCommand'](_0xa62622[_0x347144(0x23a)]['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x5d4cfe});return;}((_0x24e10e=_0xd0f6b5[_0x347144(0x240)]())==null?void 0x0:_0x24e10e[_0x347144(0x43d)]())!==_0x4dc6a7&&await this['_commandService'][_0x347144(0x2a7)](_0xa62622['SetWorksheetActivateCommand']['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x4dc6a7});}async['_loadSheet'](_0x427a9e){const _0x323cf6=_0x3bc2c8;let _0x11091e=0x0;const _0x56a5f4=await this[_0x323cf6(0x3bf)]['loadOfflineData'](_0x427a9e);return _0x56a5f4&&(_0x56a5f4[_0x323cf6(0x3e1)]||_0x56a5f4['mutations'][_0x323cf6(0x3d6)]!==0x0)&&(_0x11091e=_0x56a5f4['rev']),_0x11091e===0x0&&this[_0x323cf6(0x4e7)][_0x323cf6(0x46f)](_0x323cf6(0x218),_0x323cf6(0x160)),this[_0x323cf6(0x1f2)][_0x323cf6(0x4a9)](_0x427a9e,_0x11091e);}async[_0x3bc2c8(0x2a1)](_0x3a276c){const _0x43cb7d=_0x3bc2c8;let _0x329250=0x0;const _0x5225b1=await this['_localCacheService'][_0x43cb7d(0x30b)](_0x3a276c);return _0x5225b1&&(_0x5225b1[_0x43cb7d(0x3e1)]||_0x5225b1[_0x43cb7d(0x1fc)][_0x43cb7d(0x3d6)]!==0x0)&&(_0x329250=_0x5225b1[_0x43cb7d(0x3c6)]),_0x329250===0x0&&this[_0x43cb7d(0x4e7)][_0x43cb7d(0x46f)]('[DataLoaderController]',_0x43cb7d(0x160)),this['_snapshotService'][_0x43cb7d(0x188)](_0x3a276c,_0x329250);}},_0x48e51e[_0x3bc2c8(0x3a2)]=_0x311bd6([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x48e51e['DataLoaderController']),_0x37f9ca(0x0,_0x325c17),_0x37f9ca(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x37f9ca(0x2,_0x5b7cfd['ICommandService']),_0x37f9ca(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x37f9ca(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x306)])),_0x37f9ca(0x5,_0x5b7cfd[_0x3bc2c8(0x259)](_0x429288[_0x3bc2c8(0xe9)]))],_0x48e51e['DataLoaderController']);var _0x292d6c=Object['defineProperty'],_0x33a7ef=Object['getOwnPropertyDescriptor'],_0x94badb=(_0x170632,_0x53d432,_0x1d9240,_0x5c7a05)=>{const _0x11fa1c=_0x3bc2c8;for(var _0x140325=_0x5c7a05>0x1?void 0x0:_0x5c7a05?_0x33a7ef(_0x53d432,_0x1d9240):_0x53d432,_0x3ce4c6=_0x170632[_0x11fa1c(0x3d6)]-0x1,_0x272419;_0x3ce4c6>=0x0;_0x3ce4c6--)(_0x272419=_0x170632[_0x3ce4c6])&&(_0x140325=(_0x5c7a05?_0x272419(_0x53d432,_0x1d9240,_0x140325):_0x272419(_0x140325))||_0x140325);return _0x5c7a05&&_0x140325&&_0x292d6c(_0x53d432,_0x1d9240,_0x140325),_0x140325;},_0x2f9e18=(_0x278c9c,_0x463301)=>(_0x5f2c95,_0x581d3f)=>_0x463301(_0x5f2c95,_0x581d3f,_0x278c9c);const _0x224a02=_0x3bc2c8(0x40b),_0x3f8b75=_0x3bc2c8(0x312);let _0x34caf5=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x7d3201,_0xd3a20){const _0x85db61=_0x3bc2c8;super(),this[_0x85db61(0x10b)]=_0x7d3201,this[_0x85db61(0x4cb)]=_0xd3a20,this['_init']();}[_0x3bc2c8(0x276)](){const _0x310529=_0x3bc2c8;this[_0x310529(0x131)](_0x5b7cfd[_0x310529(0x3d9)](this[_0x310529(0x10b)][_0x310529(0x228)]['subscribe'](()=>{const _0x5acb2f=_0x310529;var _0x221e4a;const _0x1f6e38=this['_univerInstanceService'][_0x5acb2f(0x1b8)]();let _0x218bb5=(_0x221e4a=this[_0x5acb2f(0x4cb)][_0x5acb2f(0x1db)](_0x224a02))!=null?_0x221e4a:_0x3f8b75;_0x1f6e38 instanceof _0x5b7cfd[_0x5acb2f(0x2d8)]&&(_0x218bb5=_0x1f6e38[_0x5acb2f(0x161)]),document[_0x5acb2f(0x17b)]=_0x218bb5;})));}};_0x34caf5=_0x94badb([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x36c)],_0x34caf5),_0x2f9e18(0x0,_0x5b7cfd['IUniverInstanceService']),_0x2f9e18(0x1,_0x5b7cfd[_0x3bc2c8(0x262)])],_0x34caf5);var _0x26c84f=Object[_0x3bc2c8(0x361)],_0x4c0355=Object[_0x3bc2c8(0x48b)],_0x4408fd=(_0x3fec3b,_0x2b71a2,_0x46405d,_0x194af9)=>{const _0x27ee51=_0x3bc2c8;for(var _0x49cf0a=_0x194af9>0x1?void 0x0:_0x194af9?_0x4c0355(_0x2b71a2,_0x46405d):_0x2b71a2,_0x545329=_0x3fec3b[_0x27ee51(0x3d6)]-0x1,_0x32399e;_0x545329>=0x0;_0x545329--)(_0x32399e=_0x3fec3b[_0x545329])&&(_0x49cf0a=(_0x194af9?_0x32399e(_0x2b71a2,_0x46405d,_0x49cf0a):_0x32399e(_0x49cf0a))||_0x49cf0a);return _0x194af9&&_0x49cf0a&&_0x26c84f(_0x2b71a2,_0x46405d,_0x49cf0a),_0x49cf0a;},_0xc8a478=(_0x5d8da4,_0x44de50)=>(_0x59d3f8,_0x493f23)=>_0x44de50(_0x59d3f8,_0x493f23,_0x5d8da4);let _0x52d4b9=class{constructor(_0x30f0bd,_0x403324,_0x5a4d79){const _0x15407f=_0x3bc2c8;this[_0x15407f(0x4cb)]=_0x30f0bd,this['_httpService']=_0x403324,this[_0x15407f(0x2f0)]=_0x5a4d79,this[_0x15407f(0x341)]();}['init'](){const _0x19fece=_0x3bc2c8;this[_0x19fece(0x305)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4df035,_0x438693)=>_0x438693(_0x4df035)[_0x19fece(0x198)](_0x266483[_0x19fece(0x2eb)](async _0x360c92=>{const _0xdfac2e=_0x19fece,_0x64d36a=_0x360c92;if(_0x64d36a[_0xdfac2e(0x4ad)]===0x191&&window['confirm'](this[_0xdfac2e(0x2f0)]['t']('auth.needGotoLoginAlert'))){const _0x31b11e=window[_0xdfac2e(0x4fd)](window['location'][_0xdfac2e(0x4e0)]);window[_0xdfac2e(0x31f)]['href']=this['_getLoginPath']()+_0xdfac2e(0x168)+_0x31b11e;}return _0x64d36a;}))});}[_0x3bc2c8(0x2d6)](){const _0x3c3e18=_0x3bc2c8;var _0x295a69,_0x3d9368;const _0x32e0a1=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0x29174f),_0x7cefb0=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0xa50aed);return(_0x3d9368=(_0x295a69=_0x7cefb0==null?void 0x0:_0x7cefb0[_0x3c3e18(0x36e)])!=null?_0x295a69:_0x32e0a1)!=null?_0x3d9368:_0x46f52c;}};_0x52d4b9=_0x4408fd([_0xc8a478(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0xc8a478(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0xc8a478(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x52d4b9);var _0x53c2b7=Object[_0x3bc2c8(0x361)],_0xf7a8c4=Object['getOwnPropertyDescriptor'],_0x352dbc=(_0x237244,_0x2277f0,_0x5d0941,_0x41e8e5)=>{const _0x4bbc3d=_0x3bc2c8;for(var _0x629d58=_0x41e8e5>0x1?void 0x0:_0x41e8e5?_0xf7a8c4(_0x2277f0,_0x5d0941):_0x2277f0,_0x4469cf=_0x237244[_0x4bbc3d(0x3d6)]-0x1,_0x110546;_0x4469cf>=0x0;_0x4469cf--)(_0x110546=_0x237244[_0x4469cf])&&(_0x629d58=(_0x41e8e5?_0x110546(_0x2277f0,_0x5d0941,_0x629d58):_0x110546(_0x629d58))||_0x629d58);return _0x41e8e5&&_0x629d58&&_0x53c2b7(_0x2277f0,_0x5d0941,_0x629d58),_0x629d58;},_0x287087=(_0x288091,_0x325b88)=>(_0x17e192,_0x33fd63)=>_0x325b88(_0x17e192,_0x33fd63,_0x288091);const _0x27ab3d=_0x3bc2c8(0x3e7),_0x175fbd=_0x3bc2c8(0x135);_0x48e51e['AuthzIoHttpService']=class extends _0x5b7cfd['Disposable']{constructor(_0x3e1bc0,_0x4e62f6){const _0x509a78=_0x3bc2c8;super(),this[_0x509a78(0x472)]=_0x3e1bc0,this[_0x509a78(0x4cb)]=_0x4e62f6,this[_0x509a78(0x2ed)]();}[_0x3bc2c8(0x2ed)](){const _0x429afb=_0x3bc2c8,_0x3f9165=this;this['disposeWithMe'](this[_0x429afb(0x472)][_0x429afb(0x1d0)]({'priority':0x3e7,'interceptor':_0x4ba5d1['MergeInterceptorFactory']({'isMatch'(_0x31cdfb){const _0x40a853=_0x429afb;var _0x3ab5f1;if(_0x31cdfb[_0x40a853(0x492)]===_0x40a853(0x411)&&((_0x3ab5f1=_0x31cdfb['requestParams'])!=null&&_0x3ab5f1['body'])){const {objectID:_0x357336,objectType:_0xc8fbaa}=_0x31cdfb['requestParams'][_0x40a853(0x1fe)]||{};if(!_0x357336||_0xc8fbaa===void 0x0)return!0x1;const _0x514c82=_0x3f9165['_getAPIPrefixPath']()+'/'+_0xc8fbaa+'/object/'+_0x357336+_0x40a853(0x1b5);if(_0x31cdfb['url']===_0x514c82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x283db2){const _0x42f5b0=_0x429afb;var _0x187638;return(_0x187638=_0x283db2[_0x42f5b0(0x4da)])==null?void 0x0:_0x187638['body'];},'mergeParamsToRequest'(_0x2a318f,_0x976f24){const _0x7516e6=_0x429afb,_0x262ad2=_0x3f9165[_0x7516e6(0x403)]()+_0x7516e6(0xf1),_0x5e28b2=_0x2a318f[_0x7516e6(0x4f1)]((_0xbc42d0,_0x271d0f)=>{const _0x26f8c6=_0x7516e6,{unitID:_0x357d91,objectID:_0x495cb6,objectType:_0x1ff913,actions:_0xde8cf8}=_0x271d0f;return _0xbc42d0[_0x357d91]||(_0xbc42d0[_0x357d91]={}),_0xbc42d0[_0x357d91][_0x495cb6]||(_0xbc42d0[_0x357d91][_0x495cb6]={'objectID':_0x495cb6,'objectType':_0x1ff913,'actions':[]}),_0xbc42d0[_0x357d91][_0x495cb6]['actions'][_0x26f8c6(0x13d)](..._0xde8cf8),_0xbc42d0;},{}),_0x1fc91b=[];for(const _0x104284 in _0x5e28b2)for(const _0x17d533 in _0x5e28b2[_0x104284]){const {actions:_0xf5decb,objectType:_0xf4be30}=_0x5e28b2[_0x104284][_0x17d533],_0x230421=[...new Set(_0xf5decb)];_0x1fc91b['push']({'unitID':_0x104284,'objectID':_0x17d533,'objectType':_0xf4be30,'actions':_0x230421});}return new _0x4ba5d1[(_0x7516e6(0x28f))](_0x7516e6(0x411),_0x262ad2,{'headers':_0x976f24[_0x7516e6(0x2e2)],'withCredentials':_0x976f24[_0x7516e6(0x166)],'responseType':_0x976f24[_0x7516e6(0x101)],'body':{'requests':_0x1fc91b}});}},{'distributeResult'(_0x1c5cad,_0x711fbb){const _0x54dfb9=_0x429afb,{objectActions:_0x2e9cbf}=_0x1c5cad;return _0x711fbb[_0x54dfb9(0x39c)](_0x3ece0=>{const _0xe03704=_0x54dfb9,{unitID:_0x4ba930,objectID:_0x236d87,actions:_0x1c168e}=_0x3ece0,_0x176340=_0x2e9cbf[_0xe03704(0xf7)](_0xa3457a=>_0xa3457a[_0xe03704(0x1b0)]===_0x4ba930&&_0xa3457a[_0xe03704(0x3dc)]===_0x236d87),_0x3095d5=_0x1c168e[_0xe03704(0x39c)](_0x1c8e72=>_0x176340==null?void 0x0:_0x176340['actions'][_0xe03704(0xf7)](_0x552d26=>_0x552d26[_0xe03704(0x113)]===_0x1c8e72))[_0xe03704(0x3b6)](_0x334ae5=>!!_0x334ae5);return{'config':_0x3ece0,'result':{'actions':_0x3095d5,'error':_0x1c5cad['error']}};});}})}));}[_0x3bc2c8(0x403)](){const _0x4881c3=_0x3bc2c8;var _0x24606f,_0x153287;const _0x577c32=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0x27ab3d),_0x4b1189=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0xa50aed);return(_0x153287=(_0x24606f=_0x4b1189==null?void 0x0:_0x4b1189[_0x4881c3(0x2b5)])!=null?_0x24606f:_0x577c32)!=null?_0x153287:_0x175fbd;}async[_0x3bc2c8(0x3b5)](_0x357c1e){const _0x2f16f3=_0x3bc2c8,_0x40b497=this[_0x2f16f3(0x403)]()+'/'+_0x357c1e[_0x2f16f3(0x2e7)]+'/object';return(await this[_0x2f16f3(0x472)][_0x2f16f3(0x15b)](_0x40b497,{'body':_0x357c1e}))[_0x2f16f3(0x1fe)][_0x2f16f3(0x3dc)]||'';}async[_0x3bc2c8(0x204)](_0x5ba0c9){const _0x19f030=_0x3bc2c8,_0x4e9264=this[_0x19f030(0x403)]()+_0x19f030(0xe2);return(await this[_0x19f030(0x472)][_0x19f030(0x15b)](_0x4e9264,{'body':_0x5ba0c9}))[_0x19f030(0x1fe)][_0x19f030(0x285)];}async[_0x3bc2c8(0x16f)](_0x3dc4a7){const _0x195c14=_0x3bc2c8,_0x423e5d=this[_0x195c14(0x403)]()+'/'+_0x3dc4a7[_0x195c14(0x2e7)]+'/object/'+_0x3dc4a7[_0x195c14(0x3dc)];await this[_0x195c14(0x472)]['put'](_0x423e5d,{'body':_0x3dc4a7});}async[_0x3bc2c8(0x489)](_0x507f73){const _0x485e6a=_0x3bc2c8,_0x23f6c7=this[_0x485e6a(0x403)]()+'/'+_0x507f73['objectType']+_0x485e6a(0x1be)+_0x507f73['objectID']+_0x485e6a(0x1b5);return(await this[_0x485e6a(0x472)][_0x485e6a(0x15b)](_0x23f6c7,{'body':_0x507f73}))['body'][_0x485e6a(0x2fd)];}async[_0x3bc2c8(0x321)](_0x184a6e){const _0x39d827=_0x3bc2c8,_0x4066f5=this[_0x39d827(0x403)]()+'/-/object/-/batch_allowed';return(await this[_0x39d827(0x472)][_0x39d827(0x15b)](_0x4066f5,{'body':{'requests':_0x184a6e}}))[_0x39d827(0x1fe)][_0x39d827(0x315)];}async['listRoles'](_0x4fbeaa){const _0x29fa2f=_0x3bc2c8,_0x1d2342=this[_0x29fa2f(0x403)]()+'/'+_0x4fbeaa[_0x29fa2f(0x2e7)]+_0x29fa2f(0x107),_0x308a37=await this[_0x29fa2f(0x472)][_0x29fa2f(0x15b)](_0x1d2342,{'body':_0x4fbeaa});return{'roles':_0x308a37[_0x29fa2f(0x1fe)][_0x29fa2f(0x2bf)],'actions':_0x308a37['body'][_0x29fa2f(0x2fd)]};}async[_0x3bc2c8(0x332)](_0x26fc36){const _0x521fad=_0x3bc2c8,_0x1b031c=this['_getAPIPrefixPath']()+_0x521fad(0x1f1);await this['_HTTPService'][_0x521fad(0x344)](_0x1b031c,{'params':{'collaboratorID':_0x26fc36[_0x521fad(0x207)],'objectID':_0x26fc36[_0x521fad(0x3dc)],'unitID':_0x26fc36[_0x521fad(0x1b0)]}});}async[_0x3bc2c8(0x466)](_0xaa869e){const _0x361c99=_0x3bc2c8,_0x2f938d=this[_0x361c99(0x403)]()+'/collaborator';await this[_0x361c99(0x472)][_0x361c99(0x3ee)](_0x2f938d,{'body':_0xaa869e});}async[_0x3bc2c8(0x1f9)](_0x14b580){const _0x2823c6=_0x3bc2c8,_0x44f3dc=this[_0x2823c6(0x403)]()+_0x2823c6(0x1f1);await this['_HTTPService'][_0x2823c6(0x15b)](_0x44f3dc,{'body':_0x14b580});}async['listCollaborators'](_0x221364){const _0x32ac7c=_0x3bc2c8,_0x5e992e=this[_0x32ac7c(0x403)]()+_0x32ac7c(0x1f1);return(await this[_0x32ac7c(0x472)][_0x32ac7c(0x451)](_0x5e992e,{'params':{'objectID':_0x221364[_0x32ac7c(0x3dc)],'unitID':_0x221364[_0x32ac7c(0x1b0)]}}))['body'][_0x32ac7c(0x1cd)];}async[_0x3bc2c8(0x49e)](_0x506a38){const _0x379d7b=_0x3bc2c8,_0x2ad7bf=this[_0x379d7b(0x403)]()+_0x379d7b(0x1f1);await this[_0x379d7b(0x472)]['put'](_0x2ad7bf,{'body':_0x506a38});}},_0x48e51e[_0x3bc2c8(0x4d7)]=_0x352dbc([_0x287087(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x287087(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x262)]))],_0x48e51e[_0x3bc2c8(0x4d7)]);var _0x2a7c9a=Object['defineProperty'],_0x13eba2=Object['getOwnPropertyDescriptor'],_0x48aa50=(_0x427d53,_0x37457c,_0x3f3d35,_0x5da974)=>{const _0x4dd6c0=_0x3bc2c8;for(var _0x550db2=_0x5da974>0x1?void 0x0:_0x5da974?_0x13eba2(_0x37457c,_0x3f3d35):_0x37457c,_0x3fb20e=_0x427d53[_0x4dd6c0(0x3d6)]-0x1,_0x2948f2;_0x3fb20e>=0x0;_0x3fb20e--)(_0x2948f2=_0x427d53[_0x3fb20e])&&(_0x550db2=(_0x5da974?_0x2948f2(_0x37457c,_0x3f3d35,_0x550db2):_0x2948f2(_0x550db2))||_0x550db2);return _0x5da974&&_0x550db2&&_0x2a7c9a(_0x37457c,_0x3f3d35,_0x550db2),_0x550db2;},_0x448430=(_0x1fc575,_0x2a51b7)=>(_0x4e097c,_0x1fe83c)=>_0x2a51b7(_0x4e097c,_0x1fe83c,_0x1fc575);let _0x4173ed=class{constructor(_0xbe1f8b){const _0x598d8d=_0x3bc2c8;this[_0x598d8d(0x305)]=_0xbe1f8b,this['_initRequestHeader']();}[_0x3bc2c8(0x2dc)](){const _0x3fa688=_0x3bc2c8;this[_0x3fa688(0x305)][_0x3fa688(0x1d0)]({'interceptor':(_0x1514af,_0x1b4cb7)=>{const _0x3879fe=_0x3fa688,_0x219002=_0x1514af[_0x3879fe(0x2e2)],_0x4709c2=_0x5d1cbc[_0x3879fe(0x2c7)]();return _0x4709c2&&_0x219002[_0x3879fe(0x10d)](_0x3879fe(0x289),_0x4709c2),_0x1b4cb7(_0x1514af);}});}};_0x4173ed=_0x48aa50([_0x448430(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x4173ed);var _0x3b9851=Object[_0x3bc2c8(0x361)],_0x33d243=Object[_0x3bc2c8(0x48b)],_0x1b6126=(_0x47c77b,_0x452f6b,_0x4a5ff2,_0x549712)=>{const _0x59f9b8=_0x3bc2c8;for(var _0x10110c=_0x549712>0x1?void 0x0:_0x549712?_0x33d243(_0x452f6b,_0x4a5ff2):_0x452f6b,_0x2fbb22=_0x47c77b[_0x59f9b8(0x3d6)]-0x1,_0x35db;_0x2fbb22>=0x0;_0x2fbb22--)(_0x35db=_0x47c77b[_0x2fbb22])&&(_0x10110c=(_0x549712?_0x35db(_0x452f6b,_0x4a5ff2,_0x10110c):_0x35db(_0x10110c))||_0x10110c);return _0x549712&&_0x10110c&&_0x3b9851(_0x452f6b,_0x4a5ff2,_0x10110c),_0x10110c;},_0x5cdffc=(_0x6d9b11,_0x4a3499)=>(_0x3ed1e5,_0x390dc7)=>_0x4a3499(_0x3ed1e5,_0x390dc7,_0x6d9b11);const _0x30e2bb=[_0x3bc2c8(0x4f9),_0x3bc2c8(0x3ac),_0x3bc2c8(0x2b8),'image/gif',_0x3bc2c8(0x440)],_0x3ae676=0x5*0x400*0x400,_0x31971b=_0x3bc2c8(0x103),_0x4f6976=_0x3bc2c8(0x4f8),_0x3ca7d3=_0x3bc2c8(0x3ad),_0x2d70ba='/universer-api/file/{fileID}/sign-url';_0x48e51e[_0x3bc2c8(0x203)]=class{constructor(_0x99bb36,_0x99de5b,_0x1c7023){const _0xcf7628=_0x3bc2c8;_0x314dc6(this,_0xcf7628(0x47b),0x0),_0x314dc6(this,_0xcf7628(0x206),new _0x266483[(_0xcf7628(0x2e5))]()),_0x314dc6(this,_0xcf7628(0x2c9),this[_0xcf7628(0x206)]),_0x314dc6(this,_0xcf7628(0x1a1),new Map()),(this[_0xcf7628(0x305)]=_0x99bb36,this[_0xcf7628(0x4cb)]=_0x99de5b,this['_univerInstanceService']=_0x1c7023);}[_0x3bc2c8(0x3fe)](_0x29c884){const _0x3b367a=_0x3bc2c8;this[_0x3b367a(0x47b)]=_0x29c884,this[_0x3b367a(0x206)][_0x3b367a(0xe4)](_0x29c884);}[_0x3bc2c8(0x3ce)](_0x398379,_0x4e824d){const _0x40abb6=_0x3bc2c8;if(_0x4e824d===_0x35c9a1[_0x40abb6(0xf6)][_0x40abb6(0x1e8)]){const _0x12acd7=new Image();return _0x12acd7[_0x40abb6(0x39b)]=_0x398379,_0x12acd7;}return this['_imageSourceCache'][_0x40abb6(0x451)](_0x398379);}[_0x3bc2c8(0x3ea)](_0x1e2d1c,_0x16fb47,_0x37655e){const _0x540105=_0x3bc2c8;_0x16fb47===_0x35c9a1[_0x540105(0xf6)][_0x540105(0x1e8)]||_0x37655e==null||this['_imageSourceCache'][_0x540105(0x10d)](_0x1e2d1c,_0x37655e);}async[_0x3bc2c8(0x2ab)](_0x4dca53){const _0x2a5f2c=_0x3bc2c8;try{const _0x10f332=this['_replaceFileID'](this['_getSignURL'](),''+_0x4dca53),_0x476d74=(await this[_0x2a5f2c(0x305)]['get'](_0x10f332))[_0x2a5f2c(0x1fe)];if(_0x476d74[_0x2a5f2c(0x476)]&&_0x476d74[_0x2a5f2c(0x476)][_0x2a5f2c(0x337)]===_0x5f32a2['OK']){const _0x2989fb=new URL(_0x476d74['url'],this[_0x2a5f2c(0x417)]())['toString']();return Promise[_0x2a5f2c(0x511)](_0x2989fb);}return Promise[_0x2a5f2c(0x325)](_0x476d74[_0x2a5f2c(0x476)]);}catch(_0x358844){return Promise[_0x2a5f2c(0x325)](_0x358844);}}async[_0x3bc2c8(0x298)](_0x3c2731){const _0x1c7bde=_0x3bc2c8;let _0x4f9491='';if(!_0x30e2bb[_0x1c7bde(0x3a9)](_0x3c2731[_0x1c7bde(0x413)]))return this['_decreaseWaiting'](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x173)]));if(_0x3c2731['size']>_0x3ae676)return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x296)]));try{const _0x33f118=new FormData();_0x33f118[_0x1c7bde(0x1d5)](_0x1c7bde(0x452),_0x3c2731);const _0x5c246d=this[_0x1c7bde(0x10b)][_0x1c7bde(0x1b8)](),_0x3eaffe=_0x5c246d==null?void 0x0:_0x5c246d[_0x1c7bde(0x183)]();if(!_0x3eaffe)throw new Error(_0x1c7bde(0x372));const _0x1315ad=this[_0x1c7bde(0x23b)]()+_0x1c7bde(0x15a)+_0x3c2731[_0x1c7bde(0x127)]['toString']()+_0x1c7bde(0x36b)+_0x1817d2[_0x1c7bde(0xd9)]+_0x1c7bde(0x447)+encodeURIComponent(_0x3eaffe),_0x3ef636=await(await fetch(_0x1315ad,{'method':_0x1c7bde(0x411),'body':_0x33f118}))[_0x1c7bde(0x1d3)]();if(typeof _0x3ef636[_0x1c7bde(0x1a0)]!=_0x1c7bde(0x210))return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x147)]));_0x4f9491=_0x3ef636['FileId'];}catch{return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)]['ERROR_IMAGE']));}return new Promise((_0x19532c,_0x13f3e0)=>{const _0x2a5676=_0x1c7bde,_0x2c2f96=new FileReader();_0x2c2f96[_0x2a5676(0x3b1)](_0x3c2731),_0x2c2f96['onload']=_0x560d0b=>{const _0x2ecf5f=_0x2a5676;var _0x1397f8;const _0x1f9838=(_0x1397f8=_0x560d0b[_0x2ecf5f(0x40a)])==null?void 0x0:_0x1397f8[_0x2ecf5f(0x2d4)];if(_0x1f9838==null){this[_0x2ecf5f(0x33e)](),_0x13f3e0(new Error(_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x147)]));return;}const _0x71b628=_0x5b7cfd[_0x2ecf5f(0x2f6)][_0x2ecf5f(0x1d9)](0x6);_0x19532c({'imageId':_0x71b628,'imageSourceType':_0x35c9a1[_0x2ecf5f(0xf6)][_0x2ecf5f(0xdb)],'source':_0x4f9491,'base64Cache':_0x1f9838,'status':_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x454)]}),this['_decreaseWaiting']();};});}[_0x3bc2c8(0x23b)](){const _0x476121=_0x3bc2c8;var _0x3ec767,_0x23460d;const _0x3d2a78=this['_configService']['getConfig'](_0x31971b),_0x47c333=this['_configService'][_0x476121(0x1db)](_0xa50aed);return(_0x23460d=(_0x3ec767=_0x47c333==null?void 0x0:_0x47c333[_0x476121(0x376)])!=null?_0x3ec767:_0x3d2a78)!=null?_0x23460d:_0x4f6976;}[_0x3bc2c8(0x22a)](){const _0xd3f890=_0x3bc2c8;var _0x452550,_0x19f163;const _0x36735d=this[_0xd3f890(0x4cb)]['getConfig'](_0x3ca7d3),_0x259f68=this[_0xd3f890(0x4cb)][_0xd3f890(0x1db)](_0xa50aed);return(_0x19f163=(_0x452550=_0x259f68==null?void 0x0:_0x259f68[_0xd3f890(0x14f)])!=null?_0x452550:_0x36735d)!=null?_0x19f163:_0x2d70ba;}[_0x3bc2c8(0x417)](){const _0x4ed735=_0x3bc2c8;var _0x2925d1;const _0x47b227=this[_0x4ed735(0x4cb)]['getConfig'](_0xa50aed);return(_0x2925d1=_0x47b227==null?void 0x0:_0x47b227['downloadEndpointUrl'])!=null?_0x2925d1:location[_0x4ed735(0x394)];}[_0x3bc2c8(0x340)](_0x314f45,_0x3feb16){const _0x3225e6=_0x3bc2c8;return _0x314f45[_0x3225e6(0x47a)](_0x3225e6(0x4a3),_0x3feb16);}['_decreaseWaiting'](){const _0x3e6a9c=_0x3bc2c8;this[_0x3e6a9c(0x47b)]-=0x1,this[_0x3e6a9c(0x206)][_0x3e6a9c(0xe4)](this['_waitCount']);}},_0x48e51e[_0x3bc2c8(0x203)]=_0x1b6126([_0x5cdffc(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x5cdffc(0x1,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x5cdffc(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x29e)]))],_0x48e51e[_0x3bc2c8(0x203)]);var _0x174f6d=Object['defineProperty'],_0x4b3f03=Object[_0x3bc2c8(0x48b)],_0x24b5c3=(_0x624a9c,_0x83a2bf,_0x4dd0c6,_0x103f2c)=>{const _0x1a1265=_0x3bc2c8;for(var _0x1c1ff6=_0x103f2c>0x1?void 0x0:_0x103f2c?_0x4b3f03(_0x83a2bf,_0x4dd0c6):_0x83a2bf,_0x1837a6=_0x624a9c[_0x1a1265(0x3d6)]-0x1,_0xe9a844;_0x1837a6>=0x0;_0x1837a6--)(_0xe9a844=_0x624a9c[_0x1837a6])&&(_0x1c1ff6=(_0x103f2c?_0xe9a844(_0x83a2bf,_0x4dd0c6,_0x1c1ff6):_0xe9a844(_0x1c1ff6))||_0x1c1ff6);return _0x103f2c&&_0x1c1ff6&&_0x174f6d(_0x83a2bf,_0x4dd0c6,_0x1c1ff6),_0x1c1ff6;},_0x2fbf8b=(_0x2f5815,_0x4d7b1e)=>(_0x2ebce1,_0x5a4aa6)=>_0x4d7b1e(_0x2ebce1,_0x5a4aa6,_0x2f5815);let _0x21857a=class extends _0x5b7cfd['RxDisposable']{constructor(_0x24d140,_0x1c9f6f,_0xf094f7,_0x3c53bb,_0x3ac6af){const _0x43435f=_0x3bc2c8;super(),this[_0x43435f(0x30f)]=_0x24d140,this[_0x43435f(0x10b)]=_0x1c9f6f,this[_0x43435f(0x106)]=_0xf094f7,this[_0x43435f(0x3bd)]=_0x3c53bb,this[_0x43435f(0x24c)]=_0x3ac6af,this[_0x43435f(0x2f8)](),this[_0x43435f(0x152)]();}[_0x3bc2c8(0x152)](){const _0x5c419b=_0x3bc2c8,_0x5443f8=async _0xf92ab4=>{const _0x1494b5=_0x4f28;(await this[_0x1494b5(0x3bd)][_0x1494b5(0x318)](_0xf92ab4))[_0x1494b5(0x164)]['pipe'](_0x51de38[_0x1494b5(0x3b6)](_0xad937b=>_0xad937b['eventID']===_0x56cbe4[_0x1494b5(0x484)][_0x1494b5(0x2c2)]),_0x51de38[_0x1494b5(0x46b)](this[_0x1494b5(0x2dd)]))[_0x1494b5(0x2f5)](_0x49a33e=>{const _0x1c0015=_0x1494b5,_0x3a14bc=_0x49a33e,{reason:_0x50160b}=_0x3a14bc[_0x1c0015(0x2db)];this[_0x1c0015(0x30f)][_0x1c0015(0x451)](_0x2ce95d[_0x1c0015(0x1af)])[_0x1c0015(0x29f)]({'type':_0x4466a1[_0x1c0015(0x185)][_0x1c0015(0x34e)],'content':this[_0x1c0015(0x24c)]['t'](_0x1c0015(0x29c))+'('+_0x50160b+')'}),this[_0x1c0015(0x106)]['updatePermissionPoint'](new _0xa62622['WorkbookEditablePermission'](_0xf92ab4)['id'],!0x1),this[_0x1c0015(0x3bd)][_0x1c0015(0x3f6)](_0xf92ab4);});};_0x266483['merge'](this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)][_0x5c419b(0x301)]),this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)]['UNIVER_DOC']))['pipe'](_0x51de38[_0x5c419b(0x39c)](_0x426c41=>_0x426c41[_0x5c419b(0x183)]()),_0x51de38[_0x5c419b(0x3b6)](_0x257d0d=>!_0x5b7cfd['isInternalEditorID'](_0x257d0d)),_0x51de38[_0x5c419b(0x46b)](this[_0x5c419b(0x2dd)]))['subscribe'](_0x49a89a=>{_0x5443f8(_0x49a89a);});}[_0x3bc2c8(0x2f8)](){const _0x42c38b=_0x3bc2c8,_0x393747=async _0x3ea497=>{const _0xc2061b=_0x4f28;(await this[_0xc2061b(0x3bd)]['requireSession'](_0x3ea497))[_0xc2061b(0x164)][_0xc2061b(0x198)](_0x51de38[_0xc2061b(0x3b6)](_0x156567=>_0x156567[_0xc2061b(0xe1)]===_0x56cbe4[_0xc2061b(0x484)]['UPDATE_PERMISSION_OBJ']),_0x51de38['takeUntil'](this['dispose$']))[_0xc2061b(0x2f5)](_0x3cb216=>{const _0x4665b3=_0xc2061b,_0x1e27fb=_0x3cb216,{objectId:_0x28f6ec}=_0x1e27fb['data'],_0x5a08dd=this[_0x4665b3(0x30f)][_0x4665b3(0x451)](_0x4a372b['SheetPermissionInitController']);_0x28f6ec===_0x3ea497?_0x5a08dd[_0x4665b3(0x446)](_0x3ea497):_0x5a08dd[_0x4665b3(0x493)](_0x3ea497,_0x28f6ec);});};_0x266483[_0x42c38b(0x2a5)](this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType']['UNIVER_SHEET']),this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType'][_0x42c38b(0x3a6)]))[_0x42c38b(0x198)](_0x51de38[_0x42c38b(0x39c)](_0xb13374=>_0xb13374[_0x42c38b(0x183)]()),_0x51de38['filter'](_0x532df5=>!_0x5b7cfd[_0x42c38b(0x2f9)](_0x532df5)),_0x51de38[_0x42c38b(0x46b)](this[_0x42c38b(0x2dd)]))[_0x42c38b(0x2f5)](_0x2dac5f=>{_0x393747(_0x2dac5f);});}};_0x21857a=_0x24b5c3([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x21857a),_0x2fbf8b(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2fbf8b(0x1,_0x5b7cfd['IUniverInstanceService']),_0x2fbf8b(0x2,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2fbf8b(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x2fbf8b(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x21857a);var _0x60bfa=Object[_0x3bc2c8(0x361)],_0x4f846c=Object[_0x3bc2c8(0x48b)],_0x5f530c=(_0x592a1a,_0x3699c0,_0x5eef23,_0x4517ee)=>{const _0x3370d5=_0x3bc2c8;for(var _0x23ba32=_0x4517ee>0x1?void 0x0:_0x4517ee?_0x4f846c(_0x3699c0,_0x5eef23):_0x3699c0,_0x3a1063=_0x592a1a[_0x3370d5(0x3d6)]-0x1,_0x41504f;_0x3a1063>=0x0;_0x3a1063--)(_0x41504f=_0x592a1a[_0x3a1063])&&(_0x23ba32=(_0x4517ee?_0x41504f(_0x3699c0,_0x5eef23,_0x23ba32):_0x41504f(_0x23ba32))||_0x23ba32);return _0x4517ee&&_0x23ba32&&_0x60bfa(_0x3699c0,_0x5eef23,_0x23ba32),_0x23ba32;},_0x37d277=(_0x45c3b1,_0x242d95)=>(_0x444d38,_0x229a4b)=>_0x242d95(_0x444d38,_0x229a4b,_0x45c3b1);_0x48e51e[_0x3bc2c8(0x1ac)]=class{constructor(_0x20b927,_0x3b6273){this['_configService']=_0x20b927,this['_httpService']=_0x3b6273;}async[_0x3bc2c8(0x181)](_0x3d6209,_0x197371){const _0x24630e=_0x3bc2c8;var _0x37d28a;const {unitID:_0x4d97d4,type:_0xbacbd,revision:_0x553086=0x0}=_0x197371,_0x2fce74=this[_0x24630e(0x326)]()+'/'+_0xbacbd+_0x24630e(0x248)+_0x4d97d4+_0x24630e(0x482)+_0x553086,_0x137dce=(await this[_0x24630e(0x305)]['get'](_0x2fce74))[_0x24630e(0x1fe)],_0x28ab67=(_0x37d28a=_0x137dce[_0x24630e(0x25d)])==null?void 0x0:_0x37d28a[_0x24630e(0x2cc)];if(_0x28ab67){const _0x1f14e0=_0x28ab67==null?void 0x0:_0x28ab67['originalMeta'],_0x223de0=_0x56cbe4[_0x24630e(0x405)]['encode'](_0x56cbe4['b64DecodeUnicode'](_0x1f14e0));_0x28ab67[_0x24630e(0x4e6)]=_0x223de0,Object[_0x24630e(0x3a5)](_0x28ab67[_0x24630e(0x2a6)])[_0x24630e(0x255)](([,_0x520994])=>{const _0x10406e=_0x24630e,_0x347301=_0x520994[_0x10406e(0x4e6)],_0x865dd1=_0x56cbe4['textEncoder'][_0x10406e(0x48a)](_0x56cbe4['b64DecodeUnicode'](_0x347301));_0x520994['originalMeta']=_0x865dd1;});}return _0x137dce;}async['getSheetBlock'](_0x3c85c9,_0x3c7f43){const _0x281442=_0x3bc2c8,{unitID:_0x2bd124,type:_0x2896c4,blockID:_0x363767}=_0x3c7f43,_0x234f79=this['_getAPIPrefix']()+'/'+_0x2896c4+_0x281442(0x248)+_0x2bd124+'/block/'+_0x363767;return(await this['_httpService'][_0x281442(0x451)](_0x234f79))[_0x281442(0x1fe)];}async[_0x3bc2c8(0xe3)](_0x5c5482,_0x5b2452){const _0x14c051=_0x3bc2c8,{unitID:_0x4c3f19,type:_0x1af613,blockID:_0xb5e345}=_0x5b2452,_0x564ce0=this['_getAPIPrefix']()+_0x14c051(0x504)+_0x1af613+_0x14c051(0x248)+_0x4c3f19+'/block/'+_0xb5e345;return(await this['_httpService'][_0x14c051(0x451)](_0x564ce0))[_0x14c051(0x1fe)];}async[_0x3bc2c8(0x4ea)](_0x4609a0,_0x343dff){const _0x247b65=_0x3bc2c8,{unitID:_0x5f5f9f,type:_0x128337,from:_0x4e77e0,to:_0x38ff1d}=_0x343dff,_0xba7fe0=this[_0x247b65(0x2e1)]()+'/'+_0x128337+'/unit/'+_0x5f5f9f+_0x247b65(0x302)+_0x4e77e0+_0x247b65(0x419)+_0x38ff1d;return(await this[_0x247b65(0x305)]['get'](_0xba7fe0))[_0x247b65(0x1fe)];}['_getSnapshotAPIPrefix'](){const _0x5d2162=_0x3bc2c8;var _0x183148;return(_0x183148=this[_0x5d2162(0x4cb)][_0x5d2162(0x1db)](_0x1a9cce))!=null?_0x183148:this[_0x5d2162(0x2e1)]();}[_0x3bc2c8(0x2e1)](){const _0x55d0ec=_0x3bc2c8;var _0x5de212,_0x3e80ce;const _0x1d777f=this[_0x55d0ec(0x4cb)][_0x55d0ec(0x1db)](_0x504faf),_0x5e4bb6=this[_0x55d0ec(0x4cb)]['getConfig'](_0xa50aed);return(_0x3e80ce=(_0x5de212=_0x5e4bb6==null?void 0x0:_0x5e4bb6[_0x55d0ec(0x219)])!=null?_0x5de212:_0x1d777f)!=null?_0x3e80ce:_0x56ac46;}async[_0x3bc2c8(0x356)](_0x3074af,_0x15925f){const _0x875186=_0x3bc2c8,_0xa6911a=_0x875186(0x4f2)+_0x15925f['type']+_0x875186(0x248)+_0x15925f[_0x875186(0x1b0)]+_0x875186(0x3c0);return(await this[_0x875186(0x305)][_0x875186(0x451)](_0xa6911a,{'params':{'resourceId':JSON[_0x875186(0x2fb)](_0x15925f[_0x875186(0x40e)])}}))[_0x875186(0x1fe)];}['saveSnapshot'](){const _0x24ad3f=_0x3bc2c8;throw new Error(_0x24ad3f(0x32a));}[_0x3bc2c8(0x1c5)](){const _0x4197ed=_0x3bc2c8;throw new Error(_0x4197ed(0x32a));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x151a7f=_0x3bc2c8;throw new Error(_0x151a7f(0x32a));}},_0x48e51e[_0x3bc2c8(0x1ac)]=_0x5f530c([_0x37d277(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x37d277(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x48e51e[_0x3bc2c8(0x1ac)]);var _0x22fefa=Object[_0x3bc2c8(0x361)],_0x3ec19e=Object[_0x3bc2c8(0x48b)],_0x432d00=(_0x5db213,_0x3b2d93,_0x2dd3bc,_0x1333ba)=>{for(var _0x400d97=_0x1333ba>0x1?void 0x0:_0x1333ba?_0x3ec19e(_0x3b2d93,_0x2dd3bc):_0x3b2d93,_0x1f6dbd=_0x5db213['length']-0x1,_0xa417b5;_0x1f6dbd>=0x0;_0x1f6dbd--)(_0xa417b5=_0x5db213[_0x1f6dbd])&&(_0x400d97=(_0x1333ba?_0xa417b5(_0x3b2d93,_0x2dd3bc,_0x400d97):_0xa417b5(_0x400d97))||_0x400d97);return _0x1333ba&&_0x400d97&&_0x22fefa(_0x3b2d93,_0x2dd3bc,_0x400d97),_0x400d97;},_0x5289c5=(_0x7f8d87,_0x571a29)=>(_0x40db1c,_0x28a789)=>_0x571a29(_0x40db1c,_0x28a789,_0x7f8d87);let _0x55a5f9=class extends _0x5b7cfd[_0x3bc2c8(0x140)]{constructor(_0x4f699b,_0x16a030,_0x388f63,_0x12cb66,_0xa77333){const _0x4ba60d=_0x3bc2c8;super(_0x4f699b,_0x16a030,_0x388f63),this[_0x4ba60d(0x3a1)]=_0x12cb66,this[_0x4ba60d(0x4e7)]=_0xa77333;}['transformUndoRedo'](_0x501579,_0x544b3e){const _0x1aa031=_0x3bc2c8,_0x55557f=this['_getUndoStack'](_0x501579);if(_0x55557f)try{const _0x20fa39=this[_0x1aa031(0x3e8)](_0x55557f,_0x544b3e);this[_0x1aa031(0x3fd)](_0x501579,_0x20fa39);}catch(_0x18c0b5){this[_0x1aa031(0x4e7)][_0x1aa031(0x476)](_0x1aa031(0x487),_0x18c0b5),this[_0x1aa031(0x1ae)](_0x501579);}const _0x4943e1=this['_getRedoStack'](_0x501579);if(_0x4943e1)try{const _0x321cc4=this['_transformStack'](_0x4943e1,_0x544b3e);this[_0x1aa031(0x378)](_0x501579,_0x321cc4);}catch(_0x12fe90){this[_0x1aa031(0x4e7)]['error'](_0x12fe90),this[_0x1aa031(0x14c)](_0x501579);}}['_clearUndo'](_0x318e62){const _0x35e125=_0x3bc2c8,_0x16e550=this[_0x35e125(0x1cf)](_0x318e62);_0x16e550&&(_0x16e550[_0x35e125(0x3d6)]=0x0,this[_0x35e125(0x3be)]());}[_0x3bc2c8(0x14c)](_0x149d7f){const _0x1d7c62=_0x3bc2c8,_0x142f71=this[_0x1d7c62(0x194)](_0x149d7f);_0x142f71&&(_0x142f71[_0x1d7c62(0x3d6)]=0x0,this[_0x1d7c62(0x3be)]());}['_substituteUndoStack'](_0x228038,_0x2ef5df){const _0x57bc9e=_0x3bc2c8;this['_undoStacks']['set'](_0x228038,_0x2ef5df),this[_0x57bc9e(0x3be)]();}[_0x3bc2c8(0x378)](_0x2047ac,_0x30c2a3){const _0x2e4201=_0x3bc2c8;this[_0x2e4201(0x3f9)][_0x2e4201(0x10d)](_0x2047ac,_0x30c2a3),this[_0x2e4201(0x3be)]();}[_0x3bc2c8(0x3e8)](_0x2278a1,_0x5dc875){const _0x4ab4b4=_0x3bc2c8,_0x2fb912=[];let _0x2c05bf=_0x5dc875,_0x4153e8=_0x5dc875;for(let _0x1e63cd=_0x2278a1[_0x4ab4b4(0x3d6)]-0x1;_0x1e63cd>=0x0;_0x1e63cd--){const {unitID:_0x1f5b70,undoMutations:_0xdc463d,redoMutations:_0x1728b5}=_0x2278a1[_0x1e63cd],_0x18f712=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x2c05bf,_0xdc463d),_0x5578ae=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x4153e8,_0x1728b5);if(_0x56cbe4['isTransformMutationsWithChangesetFailure'](_0x18f712)||_0x56cbe4[_0x4ab4b4(0x475)](_0x5578ae)){this[_0x4ab4b4(0x4e7)]['error']('[CollaborationUndoRedoService]',_0x4ab4b4(0xec),_0x18f712,_0x5578ae);break;}_0x2c05bf=_0x18f712[_0x4ab4b4(0x1c9)],_0x4153e8=_0x5578ae[_0x4ab4b4(0x1c9)],_0x2fb912[_0x4ab4b4(0x13d)]({'unitID':_0x1f5b70,'undoMutations':_0x18f712['m2Prime'],'redoMutations':_0x5578ae['m2Prime']});}return _0x2fb912[_0x4ab4b4(0x37b)]();}};_0x55a5f9=_0x432d00([_0x5289c5(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x5289c5(0x1,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x5289c5(0x2,_0x5b7cfd[_0x3bc2c8(0x391)]),_0x5289c5(0x3,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x5289c5(0x4,_0x5b7cfd[_0x3bc2c8(0x1e6)])],_0x55a5f9);class _0x5f03ac extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(){const _0xbdcece=_0x3bc2c8;super(),_0x314dc6(this,_0xbdcece(0x26c)),this[_0xbdcece(0x26c)]=_0x266483[_0xbdcece(0x408)](window,_0xbdcece(0x2f2))[_0xbdcece(0x198)](_0x266483['takeUntil'](this[_0xbdcece(0x2dd)]),_0x266483[_0xbdcece(0x119)](0x1),_0x266483[_0xbdcece(0x45c)](void 0x0));}[_0x3bc2c8(0x40f)](_0x57b1b5,_0x4d6973,_0x5f28d7=!0x1){const _0x5049c0=_0x3bc2c8,_0x3db6e2=new URL(window[_0x5049c0(0x31f)][_0x5049c0(0x4e0)]);_0x3db6e2['searchParams'][_0x5049c0(0x10d)](_0x57b1b5,_0x4d6973),_0x5f28d7?window[_0x5049c0(0x1d1)][_0x5049c0(0x33c)]('','',_0x3db6e2[_0x5049c0(0x35c)]()):window[_0x5049c0(0x1d1)]['pushState']('','',_0x3db6e2[_0x5049c0(0x35c)]());}[_0x3bc2c8(0x3a7)](_0x596b3c,_0x2e1ef7=!0x1){const _0x2f69e5=_0x3bc2c8,_0x1aa4cd=new URL(window['location'][_0x2f69e5(0x4e0)]);_0x1aa4cd[_0x2f69e5(0x1bb)][_0x2f69e5(0x344)](_0x596b3c),_0x2e1ef7?window[_0x2f69e5(0x1d1)][_0x2f69e5(0x33c)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]()):window[_0x2f69e5(0x1d1)][_0x2f69e5(0x410)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]());}[_0x3bc2c8(0x22f)](_0x53e543){const _0x3875cb=_0x3bc2c8;var _0x10c4b0;return(_0x10c4b0=new URL(window[_0x3875cb(0x31f)][_0x3875cb(0x4e0)])[_0x3875cb(0x1bb)][_0x3875cb(0x451)](_0x53e543))!=null?_0x10c4b0:void 0x0;}}var _0x1fcae2=Object[_0x3bc2c8(0x361)],_0x43c632=Object[_0x3bc2c8(0x48b)],_0x1b86b7=(_0x1c89ad,_0x56d888,_0x54cc9c)=>_0x56d888 in _0x1c89ad?_0x1fcae2(_0x1c89ad,_0x56d888,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cc9c}):_0x1c89ad[_0x56d888]=_0x54cc9c,_0x3f0858=(_0x5b3abe,_0x47097f,_0x4e23fe,_0xa2ef2c)=>{const _0x109717=_0x3bc2c8;for(var _0xe401ad=_0xa2ef2c>0x1?void 0x0:_0xa2ef2c?_0x43c632(_0x47097f,_0x4e23fe):_0x47097f,_0xaff66=_0x5b3abe[_0x109717(0x3d6)]-0x1,_0x151d19;_0xaff66>=0x0;_0xaff66--)(_0x151d19=_0x5b3abe[_0xaff66])&&(_0xe401ad=(_0xa2ef2c?_0x151d19(_0x47097f,_0x4e23fe,_0xe401ad):_0x151d19(_0xe401ad))||_0xe401ad);return _0xa2ef2c&&_0xe401ad&&_0x1fcae2(_0x47097f,_0x4e23fe,_0xe401ad),_0xe401ad;},_0x154545=(_0x2c31c9,_0x399efb)=>(_0x347b48,_0x303442)=>_0x399efb(_0x347b48,_0x303442,_0x2c31c9),_0x393c30=(_0x25a76d,_0x2d70de,_0x30fa33)=>_0x1b86b7(_0x25a76d,_0x2d70de+'',_0x30fa33);const _0x141509='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x48e51e[_0x3bc2c8(0x465)]=class extends _0x5b7cfd['Plugin']{constructor(_0x4ac9a=_0xdae42f,_0xccc267,_0x1f9189,_0x2491f7,_0x43e87b){const _0x4d8d13=_0x3bc2c8;super(),this[_0x4d8d13(0x335)]=_0x4ac9a,this[_0x4d8d13(0x4e7)]=_0xccc267,this['_renderManagerService']=_0x1f9189,this['_injector']=_0x2491f7,this[_0x4d8d13(0x4cb)]=_0x43e87b;const {..._0x159e42}=this[_0x4d8d13(0x335)];this[_0x4d8d13(0x4cb)]['setConfig'](_0xa50aed,_0x159e42);}[_0x3bc2c8(0x4a2)](){const _0x4ad590=_0x3bc2c8;this[_0x4ad590(0x16d)]();}['onRendered'](){const _0x29e7d8=_0x3bc2c8;this[_0x29e7d8(0x34a)]();}[_0x3bc2c8(0x16d)](){const _0x58ce81=_0x3bc2c8;var _0x65f5d,_0x40354c,_0x4138b4,_0x2a22d0;this[_0x58ce81(0x30f)]['has'](_0x5b7cfd['IUndoRedoService'])&&this['_logService'][_0x58ce81(0x476)](_0x58ce81(0x416),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x244b63=[[_0x5b7cfd[_0x58ce81(0x313)],{'useClass':_0x55a5f9}],[_0x48e51e[_0x58ce81(0x1d8)]],[_0x2e16f3],[_0x4ba5d1[_0x58ce81(0x38b)]],[_0x325c17,{'useClass':_0x5f03ac}],[_0x587d5a],[_0x48e51e['LocalCacheService']],[_0x4ba5d1[_0x58ce81(0x479)]],[_0x2cedfe],[_0x12ef35],[_0x1e6c69],[_0x56b650],[_0x52d4b9],[_0x4173ed],[_0x1225af],[_0x21857a],[_0x2644e7,{'useClass':(_0x40354c=(_0x65f5d=this[_0x58ce81(0x335)])==null?void 0x0:_0x65f5d['socketService'])!=null?_0x40354c:_0x48e51e[_0x58ce81(0x17f)]}],[_0x4ba5d1['IHTTPImplementation'],{'useClass':_0x4ba5d1[_0x58ce81(0x433)]}],[_0x56cbe4[_0x58ce81(0x118)],{'useClass':_0x48e51e[_0x58ce81(0x1ac)]}],[_0x5b7cfd['IAuthzIoService'],{'useClass':_0x48e51e[_0x58ce81(0x4d7)]}],[_0x35c9a1['IImageIoService'],{'useClass':_0x48e51e[_0x58ce81(0x203)]}],[_0x48e51e[_0x58ce81(0x30c)]],[_0x48e51e[_0x58ce81(0x3a2)]],[_0x48e51e[_0x58ce81(0x4ed)]],[_0x34caf5],[_0x47bd3e]];(_0x4138b4=this[_0x58ce81(0x335)])!=null&&_0x4138b4[_0x58ce81(0x469)]&&_0x244b63[_0x58ce81(0x13d)]([_0x5e9761,{'useClass':_0x384617}]),_0x244b63=_0x5b7cfd['mergeOverrideWithDependencies'](_0x244b63,(_0x2a22d0=this[_0x58ce81(0x335)])==null?void 0x0:_0x2a22d0[_0x58ce81(0x349)]),_0x244b63[_0x58ce81(0x255)](_0x53f0f1=>this[_0x58ce81(0x30f)][_0x58ce81(0x225)](_0x53f0f1)),this[_0x58ce81(0x431)]();}[_0x3bc2c8(0x34a)](){const _0x56be47=_0x3bc2c8;this[_0x56be47(0x131)](this['_renderManagerService'][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x3a6)],[_0x260281])),this[_0x56be47(0x131)](this[_0x56be47(0x4bd)][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x301)],[_0x18e89b]));}['_initModules'](){const _0x1fae14=_0x3bc2c8;var _0x4bc4f7,_0x41b3d1;this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x4ba5d1['HTTPService'])[_0x1fae14(0x1d0)]({'priority':0x14,'interceptor':_0x4ba5d1['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x1fae14(0x30f)]['get'](_0x4173ed),(_0x4bc4f7=this[_0x1fae14(0x335)])!=null&&_0x4bc4f7[_0x1fae14(0x2b6)]||this[_0x1fae14(0x30f)]['get'](_0x48e51e[_0x1fae14(0x47d)])[_0x1fae14(0x397)](),(_0x41b3d1=this['_config'])!=null&&_0x41b3d1[_0x1fae14(0x300)]&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x52d4b9),this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x30c)]),this[_0x1fae14(0x30f)][_0x1fae14(0x232)](_0x48e51e[_0x1fae14(0x4ed)])&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x4ed)]);}},_0x393c30(_0x48e51e[_0x3bc2c8(0x465)],_0x3bc2c8(0x45a),_0x141509),_0x48e51e['UniverCollaborationClientPlugin']=_0x3f0858([_0x5b7cfd['DependentOn'](_0x56cbe4[_0x3bc2c8(0x19a)]),_0x154545(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x154545(0x2,_0x46e2e3[_0x3bc2c8(0x37e)]),_0x154545(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x154545(0x4,_0x5b7cfd['IConfigService'])],_0x48e51e[_0x3bc2c8(0x465)]),_0x48e51e[_0x3bc2c8(0x3e7)]=_0x27ab3d,_0x48e51e[_0x3bc2c8(0x402)]=_0x3bca7a,_0x48e51e['COLLAB_WEB_SOCKET_URL_KEY']=_0x4989e3,_0x48e51e[_0x3bc2c8(0x2d7)]=_0x5926c5,_0x48e51e[_0x3bc2c8(0x235)]=_0x2c3280,_0x48e51e[_0x3bc2c8(0x28b)]=_0x1225af,_0x48e51e[_0x3bc2c8(0x2f4)]=_0x4afd24,_0x48e51e['HEARTBEAT_TIMEOUT_KEY']=_0x372540,_0x48e51e['ICollaborationSocketService']=_0x2644e7,_0x48e51e[_0x3bc2c8(0x1ba)]=_0x325c17,_0x48e51e[_0x3bc2c8(0x2b9)]=_0x23080c,_0x48e51e[_0x3bc2c8(0x4dd)]=_0x29174f,_0x48e51e[_0x3bc2c8(0x35e)]=_0x191200,_0x48e51e['SEND_CHANGESET_TIMEOUT_KEY']=_0x2d7fa5,_0x48e51e['SNAPSHOT_SERVER_URL_KEY']=_0x504faf,_0x48e51e[_0x3bc2c8(0x498)]=_0x1a9cce,_0x48e51e['SessionStatus']=_0x2d9d4e,_0x48e51e[_0x3bc2c8(0x2de)]=_0x44ac57,_0x48e51e[_0x3bc2c8(0x1c4)]=_0x5f03ac,_0x48e51e[_0x3bc2c8(0x1a8)]=_0x262567,_0x48e51e[_0x3bc2c8(0x395)]=_0x3eb981,Object[_0x3bc2c8(0x361)](_0x48e51e,Symbol['toStringTag'],{'value':_0x3bc2c8(0x4bf)});}));function _0x197e(){const _0x5230b5=['indexOf','roomMembers','UserManagerService','onSendChangeset','length','session','activeSheet$','toDisposable','color','children','objectID','@univerjs/rpc','OTHER_CLIENTS_EDITING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_joinRoom','awaitingChangeset','_pendingMutations','JOIN','onPointerEnter$','height','_roomMembers','AUTHZ_URL_KEY','_transformStack','_toggleOffline','addImageSourceCache','online','UniverCollaborationClient','_createInitialState','patch','setShapeProps','font','colorChannel1','_transformPreviousActiveRange','getTime','COLORS','_waitForHeartbeatResponse','closeSession','SNAPSHOT_INVALID_SNAPSHOT','@univerjs-pro/collaboration','_redoStacks','onTransformChange$','transformRemoteChangeset','_eventUnsubscribe','_substituteUndoStack','setWaitCount','useDependency','_status$','cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getAPIPrefixPath','_online','textEncoder','permission.content','displayName','fromEvent','_updateLocalCursor','target','DEFAULT_FILE_NAME','clearInterval','routeKey','resourceIDs','setParam','pushState','POST','enableLocalCache','type','_onUserJoin','sheetID','[UniverCollaborationClientPlugin]','_getDownloadEndpointURL','collabStatus.synced','&to=','awaiting_with_pending','PERMISSION_REJ','debounceTime','[OfflineState]:\x20received\x20acknowledgement.','DeleteRangeMoveLeftCommandId','fetching\x20missing\x20changesets\x20from\x20','React','_transformSelections','triggerDblclick','resend','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CommandType','_sessionStatus$','onMouseMove','labelPosition','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','sendChangesetTimeout','collaboration-client.offline-data-not-saved','UniverIcon','onMissedChangesetFetched','stopTime','_scheduleTimestamp','_initModules','hovered','XHRHTTPImplementation','_docSkeletonManagerService','addEventListener','649272hNmxKV','_drawTextRange','key','black','_clearLocalCache','[PendingState]:\x20received\x20acknowledgement.','transformIMECache','getSheetId','BehaviorSubject','/universer-api/comb','image/bmp','send','_ws','gold400','fromEventSubject','addObjects','initWorkbookPermissionChange','&assign=','flatMap','SheetCollaborationEntity','_syncEditingCollabCursor','newValue','tag','USERS_LEAVE','RevisionService','hasOwnProperty','_docTransformSelectionsService','get','file','_shouldReportTelemetry','SUCCUSS','NEW_CHANGESETS','RemoveRowCommandId','subscribeEvent','apply','INTERNAL_ERROR','pluginName','telemetry\x20info\x20is\x20not\x20initialized','mapTo','icon','_clearTimeoutTimer','_acknowledgedAwaitingChangeset','endColumn','_transformIMECache','RxDisposable','LIVESHARE_REQUEST_HOST','replaceTextRanges','UniverCollaborationClientPlugin','updateCollaborator','getUnit','restore','enableSingleActiveInstanceLock','_sendHeartbeatTimer','takeUntil','JSONX','getDocRanges','APPLY_REJECT','debug','duration','_throwTelemetryCollaborationNewChangeset','_HTTPService','extend','svg','isTransformMutationsWithChangesetFailure','error','socket$','_event$','WebSocketService','replace','_waitCount','RegularPolygon','LocalCacheService','hide','getViewport','843364WioRfM','_socketMessageSubscription','/rev/','_labelPosition','CollaborationEvent','ALREADY_EXISTS','setUndoRedoMutationParamsCache','[CollaborationUndoRedoService]','makeDirty','allowed','encode','getOwnPropertyDescriptor','socket\x20close','getUndoRedoMutationParamsCache','getCurrent','memberID','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/ui','method','refreshPermission','@univerjs/telemetry','toggleOffline','ColorKit','APPLY_PERMISSION_DENIED','SNAPSHOT_URL_KEY','#FFF','_revisionService','_roomMembers$','on-line-single_clip0_910_349','10TRrphZ','putCollaborators','conflict.content','_onMessage','fetch_missing','onStarting','{fileID}','HELLO','getTypeOfUnitDisposed$','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','switchMap','loadSheet','measureText','function','bottom','status','@univerjs/engine-render','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','assign','onTransformSelections','onlyLocal','LICENSE_DISTRO_REJECTED','setAlpha','cursorInfo','APPLY_NON_SEQUENTIAL_REVISION','transformMutationsWithChangeset','AWAITING','setCurrentUser','UniverInstanceType','DeleteRangeMoveUpCommandId','_renderManagerService','_name','Module','Starting','exhaustSavingTask','values','CHANGESET_REJ','getUnhiddenWorksheets','_clearCollaborationTimeoutTimer','getCollabCursors$','_unitID','getOwnPropertySymbols','NOT_FOUND','UNKNOWN_CMD','_configService','_hideTimer','_startTelemetryCollaborationNewChangeset','collabStatus.conflict','WorkbookEditablePermission','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ILocalStorageService','startTime','round','connection\x20error','1em','_sessions','AuthzIoHttpService','fillRule','_urlService','requestParams','COMPLETION_FINISHED','_clearOtherTimers','LOGIN_URL_KEY','UNAUTHENTICATED','connectInjector','href','_awaitingChangeset','_createSocket','0\x200\x2016\x2016','_showConflictNotification','getCellPositionByOffset','originalMeta','_logService','blue400','collabStatus.notCollab','fetchMissingChangesets','asObservable','parse','DesktopCollaborationStatusDisplayController','updateOfflineData','_lastPointer','_scene','reduce','/universer-api/snapshot/','_scheduleSaving','@univerjs/docs','updateCursorEvent','throttleTime','CHANGESET_ACK','/universer-api/stream/file/upload','image/png','Undefined','current','_getSendChangesetTimeout','encodeURIComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selections','MSG_FOR_ERROR','VIEW_MAIN','url(#off-line-single_clip0_910_343)','_state$','/block/','_socketReady','_onConnectionOpen','COMMENT_UPDATE','className','sessionStatus$','getRoom','COMPRESS_MUTATION_APPLY','_initStatusListener','OnLifecycle','newCsEvent','_listenToOfflineEvent','_updateSubUnitFromURLParams','resolve','_onCursorUpdate','[FetchMissState]','onMissingChangesets','_docTransformIMECacheService','registerComponent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','UnitEmbedded','InsertRowCommandId','UUID','M0\x200H16V16H0z','_getCtorByUniverType','/universer-api/oidc/authpage','_docSkeleton','useCallback','eventID','/-/object/list','getDeserializedSheetBlock','next','univer-offline','fill','UniverDesign','\x0aCurrent:\x20','IRemoteInstanceService','_startCollaboration','_getSaveTimeout','transformStack\x20failed!','session.connection-failed','sessionStatus','slice','HttpImport','/-/object/-/batch_allowed','_cursorShapes','SEND_CHANGESET_TIMEOUT','NodePositionConvertToCursor','onRemoteAck','ImageSourceType','find','_collabCursorController','ImageUploadStatusType','_http','EffectRefRangId','collaboration_new_changeset','SYNCED','_initResize','drawWith','_updateLocalCache','responseType','roomInfos','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','FETCH_MISS','getCurrentUser','_permissionService','/role','_tryEnsureSocket','transformSelections','_cursors','_univerInstanceService','_onRecvEvent','set','complete','_handleLeaveEvent','_rescheduleHeartbeat','Injector','getUnitStatus$','action','unsubscribe','debounce','handleDeleteRangeMoveLeft','UniverCore','ISnapshotServerService','shareReplay','_disableEditing','APPLY_REVISION_CONFILICT','UNIVER_UNKNOWN','_onFetchMissResult','synced','_scheduleHeartbeat','@univerjs/design','Vector2','UniverDrawing','FETCH_MISSING','INVALID_ARGUMENT','_cachedData','call','size','commentUpdate$','collabSubmitChangesetUrl','_commentUpdate$','LIVESHARE_NEW_HOST','DisposableCollection','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','getSheetBySheetId','getVpScrollXYInfoByPosToVp','HEARTBEAT_INTERVAL','/universer-api/authz','128445DHscXR','[SyncedState]:\x20received\x20acknowledgement.','textRanges','_singleActiveUnitService','symbol','@univerjs/engine-formula','Inject','push','userID','_onJoinRoomEvent','LocalUndoRedoService','csAckEvent','3hvfZMw','baseRev','_handleHeartbeatEvent','react','_applyRemoteChangeset','ERROR_IMAGE','INGEST','_onCombEvent','collab-text-range-','session.collaboration-timeout','_clearRedo','compose','setActiveRange','signUrlServerUrl','findNodePositionByCharIndex','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initCloseConn','univer-online-status-icon','beginPath','unit','registerRenderModule','incrementRevOfUnit','@univerjs/network','_memberService','?size=','post','capture','_unitStatus','_createHandler','onCommandExecuted','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','name','members','_localStorageService','event$','pauseCollaboration','withCredentials','updateMember','?url=','_ensureSubject','_onOffline','sequenceExecute','_range','_registerDependencies','LEAVE','update','_sheetTransformSelectionsService','_colorIndex','_unlockTransition','ERROR_IMAGE_TYPE','clear','transformChangesets','4088szltQB','range','VIEWPORT_KEY','editingUnit','startColumn','title','_submitChangeset','min','retryConnectingInterval','CollaborationSocketService','isTransformMutationsWithChangesetSuccess','getUnitOnRev','RemoveColCommandId','getUnitId','_colorAssignService','MessageType','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updatePermissionObjEvent','loadDoc','_queuedRemoteChangesets','OnLineSingle','\x20to\x20','_handleJoinEvent','SheetSkeletonManagerService','_removeRoom','red300','url(#$1','c2Prime','@univerjs/sheets-ui','CollaborationEntity','_getRedoStack','syncEditingCollabCursor','EmptyMutation','isTransformMutationFailure','pipe','_transformUndoredo','UniverCollaborationPlugin','_commentService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','delay','uni.network.url-service','setTimeout','FileId','_imageSourceCache','onlineStatus','createInstance','cmd','addObject','with','\x20-\x20','deserializeToCombResponse','onTransformIME','SetTextSelectionsOperation','close$','SnapshotServerOverHTTPService','UniverLicense','_clearUndo','IMessageService','unitID','revision','YUUMI_RATE_OVER_LIMIT','width','_telemetryService','/allowed','_replayCachedMutations','_socket$','getFocusedUnit','collabCursorState$','IURLService','searchParams','skeleton','translate(.97)','/object/','_setupBeforeClosingHandler','_sendHeartbeat','substring','DocIMEInputManagerService','Rect','WebURLService','saveSheetBlock','transformUndoRedo','_draw','JOINING','c1Prime','_send','_entityInit$','isArray','collaborators','Unknown\x20user','_getUndoStack','registerHTTPInterceptor','history','on-line-single','json','Disposable','append','_messageService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CollaborationSessionService','generateRandomId','_retryCount','getConfig','off-line-single','InsertColCommandId','_onLocalMutation','attrs','Steady','exports','sheetId','from','column','state$','ILogService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','BASE64','DocStateChangeManagerService','_snapshotServerService','socket\x20open.','idSuffix','_hover','_createInitialStateImpl','combineLatest','HEARTBEAT','/collaborator','_snapshotService','BuiltInUIPart','_stopTelemetryCollaborationNewChangeset','univer-online','split','_handler','Warning','createCollaborator','_candidateSocket','clsx','mutations','...','body','leaveEvent','CHANGESET_REVISION_CONFILICT','every','UNIVER_SLIDE','ImageIoService','list','commentUpdateEvent','_change$','collaboratorID','fetchMiss','conflict','div','LifecycleStages','_color','createIdentifier','toggleOnline','_getSheetObject','string','serializeRangeWithSheet','close','createElement','state','handleInsertRangeMoveRight','[CollaborationState]:\x20apply\x20error!','_onRefRangeChange','[DataLoaderController]','snapshotServerUrl','all','getValue','_getCurrentRevision','_shapes','_collaborationTimeoutTimer','closePath','collab-rect-range-','COMPRESS_MUTATION_SEND','getCurrentSelections','registerRefRange','Rectangle','add','permissionRejEvent','handleInsertRow','focused$','_remoteChangesetQueue','_getSignURL','jiqing500','[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.','getCurrentRevOfUnit','UniverEngineFormula','getParam','currentTheme$','_anchor','has','[CollaborationSessionService]','UPDATE_CURSOR','CollaborationStatusDisplay','_refreshCollabCursors','clipPath','_userManagerService','NodePositionConvertToRectRange','SetWorksheetActivateCommand','_getUploadFileURL','PSEUDO_FETCH_MISSING_RESULT','TOO_MANY_REQUESTS','_removeClearOtherTimer','_telemetryInfo','getActiveSheet','_initEventListeners','parseProtocolChangeset','_refRangeService','OffLineSingle','createSocket','CollaborationSession','_timeoutTimer','/unit/','engine','mapDocumentTypeToUniverType','UniverNetwork','_localeService','_collabSessionService','HttpExport','_onRemoteACK','univer-pro.collaboration-client-socket-service','_type','_startSheetCollabCursor','InsertSheetMutation','PERMISSION_DENIED','forEach','arc','startRow','onTransformRemoteChangesetByIMECache','Optional','[PendingState]:\x20received\x20rejection.','168ueFXFt','_docSyncEditingCollabCursorService','snapshot','_updateState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_backgroundColor','_onRemoteChangeset','IConfigService','PENDING','top','awaiting','onlineStatusIcon','handleInsertRangeMoveDown','AWAITING_WITH_PENDING','_cursorInfo$','max','CONNECTOR_DATA_TOO_LARGE','urlChange$','_retryConnectingTimer','RETRY_CONNECTING_MAX_COUNT','getSkeleton','UniverDocsUi','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','onCommentUpdate','IDLE','m2Prime','_init','_hovered','fillText','getUniverSheetInstance','getCollabEntity$','_getAnchorBounding','hidden','ICommandService','FAIL','getInterceptPoints','USERS_ENTER','_scheduleCollaborationTimeoutTimer','interceptor','3415rCOFCn','univer-online-status','objects','_drawAnchor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','handleMoveRange','x-univer-host','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','CommentService','getUnitType','reconnect','_id','HTTPRequest','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','editing\x20status\x20changed\x20to','prototype','status$','appendMutation','ERROR_EXCEED_SIZE','MoveRangeCommandId','saveImage','open$','_notificationService','deepClone','collaboration.closeRoom','LICENSE_EXPORT_SIZE_EXCEEDED','IUniverInstanceService','show','fillStyle','_loadDoc','text','[OfflineState]:\x20received\x20changeset.','_compressMutationService','merge','sheets','executeCommand','_clearScheduledTask','_removeCollabCursors','isActive','getImage','_socketService','TEXT_RANGE_LAYER_INDEX','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entities','infoRsp','selection','_collaborationController','_state','_assignedColors','authzUrl','enableOfflineEditing','shouldCloseConn','image/jpg','LOCAL_CACHE_INTERVAL_KEY','_saveTaskMap','COLLAB_SUBMIT_CHANGESET_URL','handleIRemoveRow','catch','_onConflict','roles','UNKNOWN_CODE','DocSelectionManagerService','SHOULD_CLOSE_CONN','INotificationService','message$','_lockTransition','_commandService','getAttachHeader','rxjs','change$','_fetchMissChangesets','_onUserLeave','workbook','_instanceService','subunit','_setupSubUnitSync','getMemberID','getOffsetConfig','doc.mutation.rich-text-editing','resize','result','ranges','_getLoginPath','CollaborationStatus','Workbook','visibilityState','trim','data','_initRequestHeader','dispose$','SheetCollabCursorShape','evenodd','onSyncEditingCollabCursor','_getAPIPrefix','headers','subUnitId','[CollaborationSession]','Subject','FromArray','objectType','LICENSE_IMPORT_SIZE_EXCEEDED','_loadSheet','ITransformService','concatMap','_beforeCloseService','_initMergeInterceptor','206372uMuYiT','now','localeService','getItem','popstate','_tryReconnect','HEARTBEAT_INTERVAL_KEY','subscribe','Tools','_anchorDot','_initUnitPermissionChange','isInternalEditorID','_drawRectRange','stringify','contains','actions','_saveCache','/universer-api/snapshot','enableAuthServer','UNIVER_SHEET','/fetchmissing?from=','rxjs/operators','SNAPSHOT_HAS_BEEN_REMOVED','_httpService','SnapshotService','UNDEFINED','ThemeService','IBeforeCloseService','isPermissionRej','loadOfflineData','CollaborationController','collab-text-anchor-','xlink:href','_injector','_undoRedoService','onStateChange','Univer','IUndoRedoService','dispose','objectActions','_getScale','verdancy600','requireSession','moveTo','defs','liveShareNewHost','RECV','transformMutation','currentColor','location','Error\x20on\x20receiving\x20event','batchAllowed','ONLINE','InsertRangeMoveRightCommandId','_disabled','reject','_getSnapshotAPIPrefix','getTypeOfUnitAdded$','handleInsertCol','UNIVER_PROJECT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','joinRsp','m1Prime','ITelemetryService','SetSelectionsOperation','_sendingTimer','\x0aAfter:\x20','_context','deleteCollaborator','UnitSnapshot','getRangePointData','_config','collabStatus.fetchMiss','code','_isPermissionRej','YUUMI_SUBSCRIPTION_NOT_FOUND','whenReady','permission.title','replaceState','assignAColorForMemberID','_decreaseWaiting','path','_replaceFileID','init','IPermissionService','Shape','delete','off-line-single_clip0_910_343','@univerjs/core','_updateURLWithCurrentState','_themeService','override','_registerRenderDependencies','SheetsSelectionsService','_unitOnClients','onPointerLeave$','Error','_selfUnitIDs','_executeRemoteChangeset','_textBubble','NOT_COLLAB','concat','#fff','DocCollaborationEntity','getResourcesRequest','UniverCollaboration','_toggleOnline','_onRemoteRejected','getMergeData','fetchThroughInterceptors','toString','CONFLICT','RETRY_CONNECTING_MAX_COUNT_KEY','visibilitychange','toRgbString','defineProperty','_cursor','_clearHeartbeatTimer','_schedule','_handleHover','lineTo','saveOfflineData','RichTextEditingMutation','_onCursorDelete','isValidRectRange','&source=','Ready','getCollabEntity','loginUrlKey','_checkMissing','endRow','collaboration-client.config','unitId\x20is\x20not\x20found','unitId','MUTATION','CompressMutationService','uploadFileServerUrl','unshift','_substituteRedoStack','_render','updatePermissionPoint','reverse','_updateCollabCursors','collabWebSocketUrl','IRenderManagerService','defIds','_collabCursorState$','_listenToOnlineEvent','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','onRemoteChangeset','LocaleService','Tooltip','UniverUi','unknown','pending','take','HTTPService','_syncEditingCollabCursorService','fromCollab','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','onRemoteRej','UniverSheets','IContextService','offline','_incrementRevisionNumber','origin','serializeCombRequest','UNRECOGNIZED','disableLocalCache','collaboration.single-unit.warning','InsertRangeMoveDownCommandId','submit\x20changeset\x20error!','src','map','row','@univerjs/drawing','_collaborationPaused','roomMembers$','_transformService','DataLoaderController','then','_docStateChangeManagerService','entries','UNIVER_DOC','removeParam','none','includes','joinEvent','[CollaborationEntity]','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initStatusComponent','SetDocZoomRatioOperation','OFFLINE','readAsDataURL','_transformRemoteChangesetByIMECache','save','_handleEvent','create','filter','2513763RqBVeO','getCoordByCell','UniverEngineRender','removeMember','_startDocCollabCursor','setItem','_collaborationSessionService','_updateStatus','_localCacheService','/resources','getMember','params','collaboration-session-retry','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','rev','forwardRef','isTransformChangesetsSuccess','_onConnectionFailed','DocSkeletonManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getColor','_transitionLocked','getImageSourceCache','_session','_members','_socket'];_0x197e=function(){return _0x5230b5;};return _0x197e();}
|
1
|
+
(function(_0x5c19f8,_0x4e46df){const _0x557536=_0x59fd,_0x308bb9=_0x5c19f8();while(!![]){try{const _0x5536a6=-parseInt(_0x557536(0x1f1))/0x1+parseInt(_0x557536(0x497))/0x2+parseInt(_0x557536(0x4dd))/0x3*(-parseInt(_0x557536(0x2c2))/0x4)+-parseInt(_0x557536(0x457))/0x5+-parseInt(_0x557536(0x30d))/0x6+-parseInt(_0x557536(0x2b7))/0x7*(parseInt(_0x557536(0x177))/0x8)+parseInt(_0x557536(0x124))/0x9;if(_0x5536a6===_0x4e46df)break;else _0x308bb9['push'](_0x308bb9['shift']());}catch(_0x2da7ab){_0x308bb9['push'](_0x308bb9['shift']());}}}(_0x42c5,0xcc4cd),function(_0x28763e,_0x183ec5){const _0x2ead59=_0x59fd;typeof exports=='object'&&typeof module<'u'?_0x183ec5(exports,require(_0x2ead59(0x307)),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require(_0x2ead59(0xe9)),require(_0x2ead59(0x22f)),require(_0x2ead59(0x38c)),require('@univerjs/telemetry'),require(_0x2ead59(0x224)),require(_0x2ead59(0x491)),require('@univerjs/sheets'),require(_0x2ead59(0x277)),require(_0x2ead59(0x334)),require(_0x2ead59(0x21e)),require('@univerjs/sheets-ui'),require(_0x2ead59(0x436)),require(_0x2ead59(0x4cc)),require(_0x2ead59(0x22c)),require(_0x2ead59(0x3b0))):typeof define==_0x2ead59(0x14c)&&define[_0x2ead59(0x346)]?define([_0x2ead59(0x35d),_0x2ead59(0x307),_0x2ead59(0x167),_0x2ead59(0x152),_0x2ead59(0x303),_0x2ead59(0xe9),'@univerjs/network',_0x2ead59(0x38c),_0x2ead59(0x183),_0x2ead59(0x224),_0x2ead59(0x491),_0x2ead59(0xfa),_0x2ead59(0x277),'@univerjs/drawing',_0x2ead59(0x21e),_0x2ead59(0x38b),_0x2ead59(0x436),_0x2ead59(0x4cc),_0x2ead59(0x22c),_0x2ead59(0x3b0)],_0x183ec5):(_0x28763e=typeof globalThis<'u'?globalThis:_0x28763e||self,_0x183ec5(_0x28763e[_0x2ead59(0x1b2)]={},_0x28763e[_0x2ead59(0x3ff)],_0x28763e[_0x2ead59(0x167)],_0x28763e[_0x2ead59(0x167)]['operators'],_0x28763e['UniverDesign'],_0x28763e['UniverUi'],_0x28763e[_0x2ead59(0x2e1)],_0x28763e[_0x2ead59(0x211)],_0x28763e['UniverTelemetry'],_0x28763e[_0x2ead59(0x219)],_0x28763e[_0x2ead59(0x126)],_0x28763e[_0x2ead59(0x479)],_0x28763e[_0x2ead59(0x20f)],_0x28763e[_0x2ead59(0x24c)],_0x28763e[_0x2ead59(0x264)],_0x28763e[_0x2ead59(0x3df)],_0x28763e[_0x2ead59(0x2a9)],_0x28763e[_0x2ead59(0x4cc)],_0x28763e[_0x2ead59(0x39c)],_0x28763e[_0x2ead59(0x3e3)]));}(this,function(_0x326761,_0x229428,_0x4a5f0c,_0x2032d6,_0x71e3dd,_0x5d918d,_0x1d2d7f,_0x16a1a7,_0x4c2174,_0xf2d66e,_0x585819,_0x4118a6,_0x33f8a9,_0x36c3dd,_0x59dfd8,_0x52d884,_0x5398de,_0x2e5aa8,_0x29a0cb,_0x1f5326){'use strict';const _0x4c996d=_0x59fd;var _0x2963b4=Object[_0x4c996d(0x287)],_0xdf39d0=(_0x22e026,_0x576f7e,_0x478d10)=>_0x576f7e in _0x22e026?_0x2963b4(_0x22e026,_0x576f7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x478d10}):_0x22e026[_0x576f7e]=_0x478d10,_0xb4d35=(_0x54183e,_0xea0fd6,_0x30e656)=>_0xdf39d0(_0x54183e,typeof _0xea0fd6!=_0x4c996d(0x4bd)?_0xea0fd6+'':_0xea0fd6,_0x30e656);const _0xa2f44=_0x4c996d(0x3d6),_0x11a848='/universer-api/snapshot',_0x19655e='SNAPSHOT_URL_KEY',_0x17c04c=_0x4c996d(0x154),_0x5ebc49=_0x4c996d(0x4b7),_0x18660e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x59a3ea=_0x4c996d(0x3b5),_0x1edc8f='HEARTBEAT_TIMEOUT',_0x2d286d='RETRY_CONNECTING_MAX_COUNT',_0x385d5f='LOCAL_CACHE_INTERVAL',_0x18a4d2=_0x4c996d(0x24d),_0x2e8f2c=_0x4c996d(0x3b8),_0x2c7366=_0x4c996d(0x477),_0x53291b=_0x4c996d(0x11b);var _0x4ea1f0=(_0x44fa18=>(_0x44fa18[_0x44fa18[_0x4c996d(0x1e9)]=0x0]=_0x4c996d(0x1e9),_0x44fa18[_0x44fa18['OK']=0x1]='OK',_0x44fa18[_0x44fa18[_0x4c996d(0x41a)]=0x2]=_0x4c996d(0x41a),_0x44fa18[_0x44fa18[_0x4c996d(0x4b4)]=0x3]='PERMISSION_DENIED',_0x44fa18[_0x44fa18[_0x4c996d(0x116)]=0x4]='NOT_FOUND',_0x44fa18[_0x44fa18['UNAUTHENTICATED']=0x5]=_0x4c996d(0x413),_0x44fa18[_0x44fa18[_0x4c996d(0x1e1)]=0x6]=_0x4c996d(0x1e1),_0x44fa18[_0x44fa18[_0x4c996d(0x1ac)]=0x7]=_0x4c996d(0x1ac),_0x44fa18[_0x44fa18[_0x4c996d(0xf3)]=0x8]=_0x4c996d(0xf3),_0x44fa18[_0x44fa18[_0x4c996d(0x49c)]=0x9]=_0x4c996d(0x49c),_0x44fa18[_0x44fa18[_0x4c996d(0x405)]=0x1389]=_0x4c996d(0x405),_0x44fa18[_0x44fa18[_0x4c996d(0x426)]=0x1771]=_0x4c996d(0x426),_0x44fa18[_0x44fa18[_0x4c996d(0x4be)]=0x1772]=_0x4c996d(0x4be),_0x44fa18[_0x44fa18[_0x4c996d(0x1c6)]=0x1b59]=_0x4c996d(0x1c6),_0x44fa18[_0x44fa18['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4c996d(0x379),_0x44fa18[_0x44fa18[_0x4c996d(0x393)]=0x1b5b]=_0x4c996d(0x393),_0x44fa18[_0x44fa18[_0x4c996d(0x4c2)]=0x1b5c]=_0x4c996d(0x4c2),_0x44fa18[_0x44fa18['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4c996d(0x16b),_0x44fa18[_0x44fa18[_0x4c996d(0x138)]=0x2329]=_0x4c996d(0x138),_0x44fa18[_0x44fa18[_0x4c996d(0x2ef)]=0x232a]=_0x4c996d(0x2ef),_0x44fa18[_0x44fa18[_0x4c996d(0x2e2)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x44fa18[_0x44fa18[_0x4c996d(0x3b9)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x44fa18[_0x44fa18[_0x4c996d(0x2f8)]=0x232d]=_0x4c996d(0x2f8),_0x44fa18[_0x44fa18[_0x4c996d(0x150)]=0x2711]=_0x4c996d(0x150),_0x44fa18[_0x44fa18['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4c996d(0x3bf),_0x44fa18[_0x44fa18['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4c996d(0xe2),_0x44fa18[_0x44fa18[_0x4c996d(0x2df)]=0x2714]=_0x4c996d(0x2df),_0x44fa18[_0x44fa18[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x44fa18))(_0x4ea1f0||{}),_0x367a98=(_0x108aca=>(_0x108aca[_0x108aca[_0x4c996d(0x3a7)]=0x0]='UNIVER_UNKNOWN',_0x108aca[_0x108aca['UNIVER_DOC']=0x1]=_0x4c996d(0x4b2),_0x108aca[_0x108aca['UNIVER_SHEET']=0x2]=_0x4c996d(0x11a),_0x108aca[_0x108aca[_0x4c996d(0x372)]=0x3]='UNIVER_SLIDE',_0x108aca[_0x108aca[_0x4c996d(0x4e0)]=0x4]=_0x4c996d(0x4e0),_0x108aca[_0x108aca[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x108aca))(_0x367a98||{}),_0x19eae4=(_0x191fae=>(_0x191fae[_0x191fae['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x191fae[_0x191fae[_0x4c996d(0x2bd)]=0x1]='HELLO',_0x191fae[_0x191fae[_0x4c996d(0x425)]=0x2]=_0x4c996d(0x425),_0x191fae[_0x191fae['LEAVE']=0x3]=_0x4c996d(0x4b0),_0x191fae[_0x191fae[_0x4c996d(0x3e5)]=0x4]=_0x4c996d(0x3e5),_0x191fae[_0x191fae[_0x4c996d(0x40f)]=0x5]=_0x4c996d(0x40f),_0x191fae[_0x191fae[_0x4c996d(0x41b)]=0x6]=_0x4c996d(0x41b),_0x191fae[_0x191fae[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x191fae))(_0x19eae4||{}),_0xdbe0e7=(_0x48f971=>(_0x48f971[_0x48f971[_0x4c996d(0x3db)]=0x0]=_0x4c996d(0x3db),_0x48f971[_0x48f971['OK']=0x1]='OK',_0x48f971[_0x48f971[_0x4c996d(0x207)]=0x2]=_0x4c996d(0x207),_0x48f971[_0x48f971[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x48f971))(_0xdbe0e7||{}),_0x55c55a=(_0x37b669=>(_0x37b669[_0x37b669[_0x4c996d(0x288)]=0x0]=_0x4c996d(0x288),_0x37b669[_0x37b669['HttpImport']=0x1]='HttpImport',_0x37b669[_0x37b669[_0x4c996d(0x121)]=0x2]=_0x4c996d(0x121),_0x37b669[_0x37b669[_0x4c996d(0x1a8)]=0x3]=_0x4c996d(0x1a8),_0x37b669[_0x37b669[_0x4c996d(0x21c)]=0x4]='UnitSnapshot',_0x37b669[_0x37b669['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x37b669))(_0x55c55a||{});const _0x4dd3a7=_0x4c996d(0xd9),_0x394e50={};function _0xbf8362(_0x61c75){const _0x377cbe=_0x4c996d;var _0x401eae,_0x3eaf98,_0x1ca1c4,_0x18c9fd;const _0x55e373=_0x61c75[_0x377cbe(0x223)],_0x16d9a2=JSON[_0x377cbe(0x4de)](_0x55e373);switch(_0x16d9a2[_0x377cbe(0x381)]){case _0x19eae4[_0x377cbe(0x40f)]:case _0x19eae4['HELLO']:{const _0x3fcb9b=_0x16d9a2[_0x377cbe(0x2e7)];return{..._0x16d9a2,'data':_0x3fcb9b,'cmd':_0x16d9a2['cmd']};}case _0x19eae4[_0x377cbe(0x425)]:{const _0x599c51=_0x16d9a2['joinRsp'];return{..._0x16d9a2,'data':_0x599c51,'cmd':_0x16d9a2['cmd']};}case _0x19eae4[_0x377cbe(0x41b)]:{const _0x3a1cab=_0x16d9a2[_0x377cbe(0x114)];switch(_0x3a1cab[_0x377cbe(0x1c0)]){case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x149)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x401eae=_0x3a1cab[_0x377cbe(0x43e)])==null?void 0x0:_0x401eae['cs']},'cmd':_0x16d9a2['cmd']};case _0x16a1a7[_0x377cbe(0x15d)]['CHANGESET_ACK']:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x3eaf98=_0x3a1cab['csAckEvent'])==null?void 0x0:_0x3eaf98['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x355)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x1ca1c4=_0x3a1cab[_0x377cbe(0x1f6)])==null?void 0x0:_0x1ca1c4['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x4d0)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x18c9fd=_0x3a1cab[_0x377cbe(0xde)])==null?void 0x0:_0x18c9fd['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x2b2)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab['updateCursorEvent']},'cmd':_0x16d9a2['cmd']};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x40e)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x25d)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)]['USERS_LEAVE']:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab['leaveEvent']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x313)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x44f)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)]['LIVESHARE_FETCH_OPERATIONS']:case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x482)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x38d)]},'cmd':_0x16d9a2['cmd']};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x20d)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x44f)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x46c)]:return{..._0x16d9a2,'data':_0x3a1cab,'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x32a)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x387)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0xe0)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x470)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x17b)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x326)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};default:return _0x16d9a2;}}default:return _0x16d9a2;}}function _0x2f6e37(_0x495076){const _0xb08f03=_0x4c996d;switch(_0x495076[_0xb08f03(0x381)]){case _0x19eae4[_0xb08f03(0x40f)]:case _0x19eae4['HELLO']:return JSON['stringify']({'cmd':_0x495076[_0xb08f03(0x381)],'routeKey':_0x495076[_0xb08f03(0x240)]});case _0x19eae4[_0xb08f03(0x3e5)]:{let _0x5bf903;switch(_0x495076[_0xb08f03(0x223)][_0xb08f03(0x1c0)]){case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x2b2)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x2b2)],'updateCursorEvent':_0x495076['data'][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x3d9)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x3d9)],'leaveEvent':_0x495076['data']['data']};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x40e)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x40e)],'joinEvent':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x313)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x313)],'liveShareNewHost':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)]['LIVESHARE_OPERATION']:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x482)],'liveShareOperation':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x20d)]:{_0x5bf903={'eventID':_0x16a1a7['CollaborationEvent'][_0xb08f03(0x20d)],'liveShareTerminate':_0x495076[_0xb08f03(0x223)]['data']};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x237)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x237)],'liveShareRequestHost':_0x495076[_0xb08f03(0x223)]['data']};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x195)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x195)]};break;}default:_0x5bf903={'eventID':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x1c0)]};}return JSON['stringify']({'cmd':_0x495076['cmd'],'routeKey':_0x495076['routeKey'],'collaMsg':_0x5bf903});}case _0x19eae4[_0xb08f03(0x425)]:return JSON[_0xb08f03(0x415)]({'cmd':_0x495076['cmd'],'routeKey':_0x495076[_0xb08f03(0x240)],'joinReq':_0x495076[_0xb08f03(0x223)]});case _0x19eae4[_0xb08f03(0x4b0)]:return JSON[_0xb08f03(0x415)]({'cmd':_0x495076[_0xb08f03(0x381)],'routeKey':_0x495076[_0xb08f03(0x240)],'leaveReq':_0x495076[_0xb08f03(0x223)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x45c334=Object[_0x4c996d(0x287)],_0x23ef89=Object[_0x4c996d(0x16a)],_0x4f53b4=(_0x9f26be,_0x7b9d89,_0x11de6d,_0x461d98)=>{const _0x4d41d1=_0x4c996d;for(var _0x329572=_0x461d98>0x1?void 0x0:_0x461d98?_0x23ef89(_0x7b9d89,_0x11de6d):_0x7b9d89,_0x10bb91=_0x9f26be[_0x4d41d1(0x260)]-0x1,_0x144aa6;_0x10bb91>=0x0;_0x10bb91--)(_0x144aa6=_0x9f26be[_0x10bb91])&&(_0x329572=(_0x461d98?_0x144aa6(_0x7b9d89,_0x11de6d,_0x329572):_0x144aa6(_0x329572))||_0x329572);return _0x461d98&&_0x329572&&_0x45c334(_0x7b9d89,_0x11de6d,_0x329572),_0x329572;},_0x1912ea=(_0x13b1c6,_0x3fd522)=>(_0x57cbd9,_0x2339e1)=>_0x3fd522(_0x57cbd9,_0x2339e1,_0x13b1c6);const _0x52a4b9=_0x229428[_0x4c996d(0x15b)]('univer-pro.collaboration-client-socket-service');function _0x16b165(_0x178720,_0x2e0be3,_0x204606){const _0x182b7e=_0x4c996d;return _0x178720+'/'+_0x2e0be3+_0x182b7e(0x4ae)+_0x204606+'/new_changes';}_0x326761[_0x4c996d(0x2bb)]=class extends _0x229428['Disposable']{constructor(_0x5aeb0b,_0xa3d3,_0x4db281,_0x17684c,_0x2d582d){const _0x4ebfdc=_0x4c996d;super(),this[_0x4ebfdc(0x47e)]=_0x5aeb0b,this['_ws']=_0xa3d3,this['_configService']=_0x4db281,this[_0x4ebfdc(0x1e2)]=_0x17684c,this[_0x4ebfdc(0x292)]=_0x2d582d;}['createSocket'](_0x440395){const _0x2766d6=_0x4c996d,_0x4f8495=this['_ws'][_0x2766d6(0x1fa)](_0x440395);if(!_0x4f8495)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x305252=new _0x229428[(_0x2766d6(0x3de))](),_0x4aba0f=new _0x4a5f0c['Subject']();_0x305252[_0x2766d6(0x4c6)](_0x4f8495[_0x2766d6(0x17f)][_0x2766d6(0x451)](_0x3b8f67=>_0x4aba0f['next'](_0x3b8f67))),_0x305252[_0x2766d6(0x4c6)](_0x229428[_0x2766d6(0x130)](()=>_0x4aba0f['complete']()));const _0x453cd8=new _0x4a5f0c['Subject']();_0x305252['add'](_0x4f8495[_0x2766d6(0x1cb)]['subscribe'](_0x374c37=>_0x453cd8[_0x2766d6(0x256)](_0x374c37))),_0x305252['add'](_0x229428[_0x2766d6(0x130)](()=>_0x453cd8[_0x2766d6(0x21f)]()));const _0x3d181e=new _0x4a5f0c[(_0x2766d6(0x3a8))]();_0x305252[_0x2766d6(0x4c6)](_0x4f8495[_0x2766d6(0xf7)][_0x2766d6(0x451)](_0xf59d4e=>{const _0x21d830=_0x2766d6,_0x481717=_0xbf8362(_0xf59d4e);_0x3d181e[_0x21d830(0x256)](_0x481717);})),_0x305252[_0x2766d6(0x4c6)](_0x229428[_0x2766d6(0x130)](()=>_0x3d181e[_0x2766d6(0x21f)]()));let _0x3f582c;const _0x48e431=()=>{const _0x45dd85=_0x2766d6;_0x453cd8[_0x45dd85(0x256)](new Event(_0x45dd85(0x465))),_0x4aba0f['next'](new CloseEvent(_0x45dd85(0x465))),_0x3f582c['close']();};return _0x3f582c={'memberID':'','close$':_0x4aba0f[_0x2766d6(0x228)](),'error$':_0x453cd8[_0x2766d6(0x228)](),'open$':_0x4f8495[_0x2766d6(0x3cd)],'message$':_0x3d181e[_0x2766d6(0x228)](),'send':_0x121f85=>{const _0x2b4101=_0x2766d6;if(_0x121f85[_0x2b4101(0x381)]===_0x19eae4[_0x2b4101(0x3e5)]){if(_0x121f85['data']['eventID']===_0x16a1a7[_0x2b4101(0x15d)][_0x2b4101(0x37a)]){this[_0x2b4101(0x2c4)](_0x3f582c,_0x121f85[_0x2b4101(0x223)])[_0x2b4101(0x1b8)](_0x58aeed=>{const _0x407672=_0x2b4101;this[_0x407672(0x1e2)][_0x407672(0x28e)](_0x58aeed),_0x48e431();});return;}if(_0x121f85['data'][_0x2b4101(0x1c0)]===_0x16a1a7[_0x2b4101(0x15d)][_0x2b4101(0x15c)]){const _0x5157fc=_0x121f85[_0x2b4101(0x223)];this[_0x2b4101(0x178)](_0x5157fc)[_0x2b4101(0x17c)](_0x5603ad=>{const _0x28c31c=_0x2b4101;_0x3d181e['next']({'cmd':_0x19eae4[_0x28c31c(0x41b)],'code':_0xdbe0e7['OK'],'routeKey':_0x5157fc[_0x28c31c(0x223)][_0x28c31c(0x341)],'routeType':'','data':{'eventID':_0x16a1a7[_0x28c31c(0x15d)][_0x28c31c(0x28f)],'data':{'changesets':_0x5603ad}}});})[_0x2b4101(0x1b8)](_0x34aa70=>{this['_logService']['error'](_0x34aa70),_0x48e431();});return;}}_0x4f8495[_0x2b4101(0x38e)](_0x2f6e37(_0x121f85));},'close':()=>{const _0x4ef930=_0x2766d6;_0x4f8495[_0x4ef930(0x31a)](),_0x305252['dispose']();}},_0x3f582c;}async[_0x4c996d(0x2c4)](_0xc30da9,_0x33b413){const _0x270baa=_0x4c996d;var _0x897895,_0x135879;const {unitType:_0x55c9eb,unitID:_0xf9fd8a,changeset:_0xfbced}=_0x33b413[_0x270baa(0x223)],_0x2edfc3={'unitID':_0xf9fd8a,'memberID':_0xc30da9[_0x270baa(0x319)],'type':_0x55c9eb,'changeset':_0x16a1a7[_0x270baa(0xfd)](_0xfbced)},_0x1858b3=this['_configService']['getConfig'](_0x18a4d2),_0x469b29=this[_0x270baa(0x27a)]['getConfig'](_0x4dd3a7),_0x3f8a1f=_0x16b165((_0x135879=(_0x897895=_0x469b29==null?void 0x0:_0x469b29[_0x270baa(0x484)])!=null?_0x897895:_0x1858b3)!=null?_0x135879:_0x2e8f2c,_0x55c9eb,_0xf9fd8a);try{await this['_http'][_0x270baa(0x2de)](_0x3f8a1f,{'body':_0x2edfc3});}catch(_0x5485ea){throw this[_0x270baa(0x1e2)]['error'](_0x270baa(0x4af),_0x270baa(0x23b)),_0x5485ea;}}async['_fetchMissChangesets'](_0x4118ef){const _0x3677cc=_0x4c996d,{unitID:_0x12cad0,from:_0x174e79,to:_0x2e7931,unitType:_0xad311a}=_0x4118ef[_0x3677cc(0x223)];return(await this['_snapshotServerService'][_0x3677cc(0x4d2)]({'metadata':void 0x0},{'unitID':_0x12cad0,'type':_0xad311a,'from':_0x174e79,'to':_0x2e7931}))[_0x3677cc(0x48a)];}},_0x326761[_0x4c996d(0x2bb)]=_0x4f53b4([_0x1912ea(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x1912ea(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f['WebSocketService'])),_0x1912ea(0x2,_0x229428[_0x4c996d(0x274)]),_0x1912ea(0x3,_0x229428[_0x4c996d(0x363)]),_0x1912ea(0x4,_0x16a1a7[_0x4c996d(0x46f)])],_0x326761['CollaborationSocketService']);const _0x33260c=_0x4c996d(0x3d4);function _0x4da3c4(_0x1229a6){const _0x360d2c=_0x4c996d;return JSON[_0x360d2c(0x415)](_0x1229a6)['length'];}class _0x22cb76{constructor(){const _0xc1fac0=_0x4c996d;_0xb4d35(this,'_commentUpdate$',new _0x4a5f0c['Subject']()),_0xb4d35(this,_0xc1fac0(0x3ce),this[_0xc1fac0(0x103)]['asObservable']());}['onCommentUpdate'](_0x26016d){this['_commentUpdate$']['next'](_0x26016d);}}var _0xa4269c=Object[_0x4c996d(0x287)],_0x2d8b47=Object[_0x4c996d(0x16a)],_0x57e557=(_0x37aea2,_0x45c9ef,_0x25891e,_0x53e1a1)=>{const _0x3f216e=_0x4c996d;for(var _0x554433=_0x53e1a1>0x1?void 0x0:_0x53e1a1?_0x2d8b47(_0x45c9ef,_0x25891e):_0x45c9ef,_0x3e186e=_0x37aea2[_0x3f216e(0x260)]-0x1,_0xfe2e4;_0x3e186e>=0x0;_0x3e186e--)(_0xfe2e4=_0x37aea2[_0x3e186e])&&(_0x554433=(_0x53e1a1?_0xfe2e4(_0x45c9ef,_0x25891e,_0x554433):_0xfe2e4(_0x554433))||_0x554433);return _0x53e1a1&&_0x554433&&_0xa4269c(_0x45c9ef,_0x25891e,_0x554433),_0x554433;},_0x5aee8d=(_0x133745,_0x3936ea)=>(_0x512254,_0x254c4e)=>_0x3936ea(_0x512254,_0x254c4e,_0x133745);let _0x4090c9=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x2fdfb0,_0xfef6fc){const _0x1f9d35=_0x4c996d;super(),_0xb4d35(this,'_roomMembers',new Map()),(this[_0x1f9d35(0x456)]=_0x2fdfb0,this[_0x1f9d35(0x351)]=_0xfef6fc,this[_0x1f9d35(0x315)](_0x229428[_0x1f9d35(0x130)](_0x4a5f0c['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x229428['UniverInstanceType'][_0x1f9d35(0x11a)])[_0x1f9d35(0x2b6)](_0x2032d6['map'](_0x3b324f=>_0x3b324f[_0x1f9d35(0x40b)]())),this[_0x1f9d35(0x456)][_0x1f9d35(0x3f5)](_0x229428[_0x1f9d35(0x2b5)]['UNIVER_DOC'])[_0x1f9d35(0x2b6)](_0x2032d6[_0x1f9d35(0x3fb)](_0x436d48=>_0x436d48['getUnitId']())),this[_0x1f9d35(0x456)][_0x1f9d35(0x3f5)](_0x229428[_0x1f9d35(0x2b5)]['UNIVER_SLIDE'])[_0x1f9d35(0x2b6)](_0x2032d6[_0x1f9d35(0x3fb)](_0x461eec=>_0x461eec[_0x1f9d35(0x40b)]())))[_0x1f9d35(0x451)](_0x14ce2a=>this['_removeRoom'](_0x14ce2a)))));}[_0x4c996d(0x2ed)](_0x5d34df){const _0x4a30f2=_0x4c996d;this[_0x4a30f2(0x351)][_0x4a30f2(0x2ed)](_0x5d34df);}[_0x4c996d(0x11c)](){return this['_userManagerService']['getCurrentUser']();}[_0x4c996d(0x464)](_0x1a6890,_0x1533ba){const _0x3e67e7=_0x4c996d;let _0x66f5c3=this[_0x3e67e7(0x269)][_0x3e67e7(0x453)](_0x1a6890);_0x66f5c3||(_0x66f5c3=new _0x23d334(),this[_0x3e67e7(0x269)][_0x3e67e7(0x22e)](_0x1a6890,_0x66f5c3)),_0x66f5c3[_0x3e67e7(0x464)](_0x1533ba);}[_0x4c996d(0x394)](_0x56502d,_0x1cdd1a){const _0x25f502=_0x4c996d,_0x392153=this[_0x25f502(0x269)][_0x25f502(0x453)](_0x56502d);_0x392153&&_0x392153[_0x25f502(0x394)](_0x1cdd1a);}[_0x4c996d(0x2ac)](_0x470e6c){const _0x372abc=_0x4c996d;return this['_roomMembers'][_0x372abc(0x453)](_0x470e6c);}[_0x4c996d(0x3fc)](_0x22a6ab,_0x5d1dad){const _0x54bb05=_0x4c996d,_0x485979=this['_roomMembers'][_0x54bb05(0x453)](_0x22a6ab);if(_0x485979)return _0x485979['getMember'](_0x5d1dad);}['_removeRoom'](_0x372b27){const _0x4831ef=_0x4c996d,_0x44c498=this[_0x4831ef(0x269)]['get'](_0x372b27);_0x44c498&&(_0x44c498[_0x4831ef(0x20a)](),this['_roomMembers'][_0x4831ef(0x4d4)](_0x372b27));}[_0x4c996d(0x20a)](){const _0x27bf7f=_0x4c996d;this[_0x27bf7f(0x269)][_0x27bf7f(0x139)](_0x13895b=>_0x13895b[_0x27bf7f(0x20a)]()),this[_0x27bf7f(0x269)][_0x27bf7f(0x34c)]();}};_0x4090c9=_0x57e557([_0x5aee8d(0x0,_0x229428[_0x4c996d(0x299)]),_0x5aee8d(0x1,_0x229428['Inject'](_0x229428['UserManagerService']))],_0x4090c9);class _0x23d334 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x3dcc20=_0x4c996d;super(...arguments),_0xb4d35(this,_0x3dcc20(0x2af),new Map());}[_0x4c996d(0x20a)](){const _0x1677f2=_0x4c996d;this[_0x1677f2(0x2af)][_0x1677f2(0x34c)]();}['updateMember'](_0x42df1){const _0x476d67=_0x4c996d;this['_members']['set'](_0x42df1[_0x476d67(0x319)],_0x42df1);}['removeMember'](_0x526f68){const _0x12d4dd=_0x4c996d;this[_0x12d4dd(0x2af)][_0x12d4dd(0x4d4)](_0x526f68);}[_0x4c996d(0x3fc)](_0x5e6e9e){const _0x214451=_0x4c996d;return this[_0x214451(0x2af)]['get'](_0x5e6e9e);}}var _0x25fd07=Object[_0x4c996d(0x287)],_0x133c49=Object[_0x4c996d(0x16a)],_0x589861=(_0x25fed2,_0x1d46c4,_0x33e037,_0x40a79d)=>{const _0x330bf5=_0x4c996d;for(var _0x5aa04d=_0x40a79d>0x1?void 0x0:_0x40a79d?_0x133c49(_0x1d46c4,_0x33e037):_0x1d46c4,_0x5ac7d5=_0x25fed2[_0x330bf5(0x260)]-0x1,_0x564912;_0x5ac7d5>=0x0;_0x5ac7d5--)(_0x564912=_0x25fed2[_0x5ac7d5])&&(_0x5aa04d=(_0x40a79d?_0x564912(_0x1d46c4,_0x33e037,_0x5aa04d):_0x564912(_0x5aa04d))||_0x5aa04d);return _0x40a79d&&_0x5aa04d&&_0x25fd07(_0x1d46c4,_0x33e037,_0x5aa04d),_0x5aa04d;},_0x42a3b7=(_0x39b8b9,_0x4831a2)=>(_0x333756,_0x1d1e0c)=>_0x4831a2(_0x333756,_0x1d1e0c,_0x39b8b9),_0x44beef=(_0x4a000a=>(_0x4a000a[_0x4a000a['IDLE']=0x0]='IDLE',_0x4a000a[_0x4a000a['JOINING']=0x1]=_0x4c996d(0x390),_0x4a000a[_0x4a000a[_0x4c996d(0x28b)]=0x2]=_0x4c996d(0x28b),_0x4a000a[_0x4a000a[_0x4c996d(0x39b)]=0x3]=_0x4c996d(0x39b),_0x4a000a))(_0x44beef||{});_0x326761[_0x4c996d(0x367)]=class extends _0x229428['RxDisposable']{constructor(_0x1e4dfe,_0x5a18fb,_0x1fb3dd,_0x11c208,_0x3e8a7e,_0x1799d8,_0x31e1b4,_0x3f6f8a,_0x55ebc4,_0x23c731){const _0x17ee96=_0x4c996d;super(),_0xb4d35(this,_0x17ee96(0x191),new _0x4a5f0c[(_0x17ee96(0x496))](0x0)),_0xb4d35(this,_0x17ee96(0x3d1),this['_sessionStatus$'][_0x17ee96(0x228)]()),_0xb4d35(this,_0x17ee96(0x340),new _0x4a5f0c[(_0x17ee96(0x3a8))]()),_0xb4d35(this,_0x17ee96(0x13f),this[_0x17ee96(0x340)][_0x17ee96(0x228)]()),_0xb4d35(this,_0x17ee96(0x24b)),_0xb4d35(this,'_socketMessageSubscription'),_0xb4d35(this,'_collaborationTimeoutTimer'),_0xb4d35(this,'_shouldReportTelemetry',!0x1),_0xb4d35(this,_0x17ee96(0x3c1),null),(this[_0x17ee96(0x4a6)]=_0x1e4dfe,this['_logService']=_0x1fb3dd,this[_0x17ee96(0x4b3)]=_0x11c208,this[_0x17ee96(0x485)]=_0x3e8a7e,this[_0x17ee96(0x27a)]=_0x1799d8,this['_localeService']=_0x31e1b4,this[_0x17ee96(0x29f)]=_0x3f6f8a,this[_0x17ee96(0x13e)]=_0x55ebc4,this['_telemetryService']=_0x23c731,this[_0x17ee96(0x1fe)]=!!this['_telemetryService'],_0x5a18fb[_0x17ee96(0x2b6)](_0x4a5f0c[_0x17ee96(0xf1)](this['dispose$']))[_0x17ee96(0x451)](_0xe0ece1=>{const _0x33f400=_0x17ee96;var _0x244b09;typeof _0xe0ece1>'u'||(this[_0x33f400(0x24b)]=_0xe0ece1,_0xe0ece1?(this['_joinRoom'](_0xe0ece1),this[_0x33f400(0x4b8)]=_0xe0ece1[_0x33f400(0xf7)][_0x33f400(0x451)](_0x2cfeee=>{const _0x2e5378=_0x33f400;_0x2cfeee[_0x2e5378(0x240)]===this[_0x2e5378(0x4a6)]&&this['_onCombEvent'](_0x2cfeee);})):(this[_0x33f400(0x202)](),this['_sessionStatus$'][_0x33f400(0x256)](0x2),(_0x244b09=this[_0x33f400(0x4b8)])==null||_0x244b09[_0x33f400(0x399)](),this[_0x33f400(0x4b8)]=null));}),this[_0x17ee96(0x315)](this[_0x17ee96(0x4b3)][_0x17ee96(0x438)](()=>{const _0x2790d5=_0x17ee96;var _0x20fc11;(_0x20fc11=this[_0x2790d5(0x24b)])==null||_0x20fc11[_0x2790d5(0x38e)]({'cmd':_0x19eae4['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x4c996d(0x44b)](){const _0x2d491c=_0x4c996d;return this[_0x2d491c(0x191)]['getValue']();}[_0x4c996d(0x19f)](){const _0x59d9ed=_0x4c996d;var _0x3613fa,_0x2283e9;return(_0x2283e9=(_0x3613fa=this['_socket'])==null?void 0x0:_0x3613fa[_0x59d9ed(0x319)])!=null?_0x2283e9:null;}[_0x4c996d(0x20a)](){const _0x42bae3=_0x4c996d;super[_0x42bae3(0x20a)](),this[_0x42bae3(0x47b)][_0x42bae3(0x256)](),this[_0x42bae3(0x47b)][_0x42bae3(0x21f)]();}['close'](){const _0x3f994f=_0x4c996d;var _0x4e3dc9,_0x1cfee2;this[_0x3f994f(0x202)](),(_0x4e3dc9=this[_0x3f994f(0x24b)])==null||_0x4e3dc9['send']({'cmd':_0x19eae4[_0x3f994f(0x4b0)],'data':{'roomID':this[_0x3f994f(0x4a6)]}}),(_0x1cfee2=this[_0x3f994f(0x24b)])==null||_0x1cfee2[_0x3f994f(0x31a)](),this[_0x3f994f(0x340)][_0x3f994f(0x21f)](),this[_0x3f994f(0x191)][_0x3f994f(0x21f)](),this['dispose']();}[_0x4c996d(0x39e)](_0x806270){const _0x25f47e=_0x4c996d;_0x806270[_0x25f47e(0x381)]===_0x19eae4['JOIN']?this['_onJoinRoomEvent'](_0x806270):_0x806270[_0x25f47e(0x381)]===_0x19eae4[_0x25f47e(0x41b)]&&this[_0x25f47e(0x296)](_0x806270);}[_0x4c996d(0x1bc)](_0xd4930a){const _0x4e6cd0=_0x4c996d;this[_0x4e6cd0(0x191)]['next'](0x1),_0xd4930a['send']({'cmd':_0x19eae4[_0x4e6cd0(0x425)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x4e6cd0(0x4a6)]}]}});}[_0x4c996d(0x31f)](_0x47c048){const _0x4605a8=_0x4c996d;var _0x39f514;if(_0x47c048['code']===_0xdbe0e7[_0x4605a8(0x207)]){this[_0x4605a8(0x485)]['show']({'type':_0x71e3dd[_0x4605a8(0x123)][_0x4605a8(0x13d)],'content':this['_localeService']['t'](_0x4605a8(0x373))}),this[_0x4605a8(0x191)][_0x4605a8(0x256)](0x2);return;}this[_0x4605a8(0x191)][_0x4605a8(0x256)](0x3);const _0x4662db=(_0x39f514=_0x47c048[_0x4605a8(0x223)][_0x4605a8(0x389)][this['_unitID']])==null?void 0x0:_0x39f514[_0x4605a8(0x1ba)];_0x4662db&&_0x4662db[_0x4605a8(0x139)](_0x52a079=>this[_0x4605a8(0x29f)][_0x4605a8(0x464)](this['_unitID'],_0x52a079));}[_0x4c996d(0x296)](_0x232cda){const _0x591d15=_0x4c996d;try{const _0x34d211=_0x232cda['data'];switch(_0x34d211[_0x591d15(0x1c0)]){case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x40e)]:this[_0x591d15(0x3cb)](_0x34d211),this['_event$'][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x3d9)]:this[_0x591d15(0x317)](_0x34d211),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7['CollaborationEvent'][_0x591d15(0x39d)]:this[_0x591d15(0x28d)](),this[_0x591d15(0x2b3)](),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x46c)]:this[_0x591d15(0x1e2)][_0x591d15(0x28e)](_0x591d15(0x246)+JSON[_0x591d15(0x415)](_0x34d211)),this[_0x591d15(0x340)]['next'](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x32a)]:this['_commentService'][_0x591d15(0x3a9)](_0x34d211[_0x591d15(0x223)]),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;default:this['_event$'][_0x591d15(0x256)](_0x34d211);}}catch(_0x4b7c2c){this[_0x591d15(0x1e2)]['error'](_0x4b7c2c,_0x232cda);}}[_0x4c996d(0x3cb)](_0x698a2){const _0x451a96=_0x4c996d;this[_0x451a96(0x29f)][_0x451a96(0x464)](this[_0x451a96(0x4a6)],_0x698a2[_0x451a96(0x223)]);}['_onUserLeave'](_0x10d80f){const _0x158bbb=_0x4c996d;this[_0x158bbb(0x29f)][_0x158bbb(0x394)](this[_0x158bbb(0x4a6)],_0x10d80f[_0x158bbb(0x223)]['memberID']);}async[_0x4c996d(0x38e)](_0x2f3b9e,_0x25370f){const _0x34b1d1=_0x4c996d;if(this[_0x34b1d1(0x44b)]!==0x3||!this[_0x34b1d1(0x24b)])throw new Error(_0x34b1d1(0x3a6));try{_0x2f3b9e[_0x34b1d1(0x1c0)]===_0x16a1a7[_0x34b1d1(0x15d)][_0x34b1d1(0x37a)]&&(this[_0x34b1d1(0x3ef)](),this['_startTelemetryCollaborationNewChangeset'](_0x2f3b9e)),this['_socket'][_0x34b1d1(0x38e)]({'cmd':_0x19eae4[_0x34b1d1(0x3e5)],'routeKey':_0x25370f,'routeType':'','data':_0x2f3b9e});}catch(_0x172e5b){this[_0x34b1d1(0x1e2)][_0x34b1d1(0x28e)](_0x172e5b);}}[_0x4c996d(0x3ef)](){const _0x5460c9=_0x4c996d;var _0x466526;this[_0x5460c9(0xd8)]=window[_0x5460c9(0x215)](()=>{const _0x5c934b=_0x5460c9;this[_0x5c934b(0xd8)]=null,this['_messageService'][_0x5c934b(0x1d9)]({'type':_0x71e3dd[_0x5c934b(0x123)][_0x5c934b(0x3ca)],'content':this[_0x5c934b(0x1ca)]['t'](_0x5c934b(0x3c0))});},(_0x466526=this['_configService'][_0x5460c9(0x2d8)](_0x1edc8f))!=null?_0x466526:0x4e20);}[_0x4c996d(0x2b3)](){const _0x220c2a=_0x4c996d;this[_0x220c2a(0xd8)]&&(clearTimeout(this[_0x220c2a(0xd8)]),this[_0x220c2a(0xd8)]=null);}[_0x4c996d(0x43a)](_0x1dc0b4){if(!this['_shouldReportTelemetry'])return;const {data:_0x1f8136}=_0x1dc0b4,{unitID:_0x2f310c,changeset:_0x126cd2}=_0x1f8136,{mutations:_0x428036,type:_0x215f92}=_0x126cd2;this['_telemetryInfo']={'unitId':_0x2f310c,'type':_0x215f92,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x4da3c4(_0x428036)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x233e3a=_0x4c996d;if(this[_0x233e3a(0x1fe)]){if(!this[_0x233e3a(0x3c1)]){this[_0x233e3a(0x1e2)][_0x233e3a(0x28e)]('[CollaborationSession]',_0x233e3a(0x10a));return;}this[_0x233e3a(0x3c1)][_0x233e3a(0x441)]=performance['now'](),this[_0x233e3a(0x3c1)][_0x233e3a(0x417)]=this[_0x233e3a(0x3c1)][_0x233e3a(0x441)]-this[_0x233e3a(0x3c1)][_0x233e3a(0x2b8)],this['_telemetryService'][_0x233e3a(0x25f)](_0x33260c,this[_0x233e3a(0x3c1)]),this[_0x233e3a(0x3c1)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x288de9=_0x4c996d;this[_0x288de9(0x3c1)]=null;}},_0x326761['CollaborationSession']=_0x589861([_0x42a3b7(0x2,_0x229428[_0x4c996d(0x363)]),_0x42a3b7(0x3,_0x5d918d['IBeforeCloseService']),_0x42a3b7(0x4,_0x5d918d[_0x4c996d(0x19e)]),_0x42a3b7(0x5,_0x229428[_0x4c996d(0x274)]),_0x42a3b7(0x6,_0x229428['Inject'](_0x229428[_0x4c996d(0x23a)])),_0x42a3b7(0x7,_0x229428[_0x4c996d(0x25c)](_0x4090c9)),_0x42a3b7(0x8,_0x229428[_0x4c996d(0x25c)](_0x22cb76)),_0x42a3b7(0x9,_0x229428[_0x4c996d(0x424)](_0x4c2174[_0x4c996d(0x39a)]))],_0x326761[_0x4c996d(0x367)]);var _0x17ed14=Object[_0x4c996d(0x287)],_0x5513ae=Object[_0x4c996d(0x16a)],_0x22f2de=(_0x199af3,_0x4f36ec,_0x34d360,_0x29bfbc)=>{const _0x123f83=_0x4c996d;for(var _0x17d118=_0x29bfbc>0x1?void 0x0:_0x29bfbc?_0x5513ae(_0x4f36ec,_0x34d360):_0x4f36ec,_0x4833e8=_0x199af3[_0x123f83(0x260)]-0x1,_0x1f811f;_0x4833e8>=0x0;_0x4833e8--)(_0x1f811f=_0x199af3[_0x4833e8])&&(_0x17d118=(_0x29bfbc?_0x1f811f(_0x4f36ec,_0x34d360,_0x17d118):_0x1f811f(_0x17d118))||_0x17d118);return _0x29bfbc&&_0x17d118&&_0x17ed14(_0x4f36ec,_0x34d360,_0x17d118),_0x17d118;},_0x27db79=(_0x43f2a8,_0x374865)=>(_0xf562f3,_0x304424)=>_0x374865(_0xf562f3,_0x304424,_0x43f2a8);_0x326761[_0x4c996d(0x368)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x1be8ff,_0x24a32c,_0x238a3e,_0x5b7801,_0x3929df,_0xb3fd4c){const _0x4abedb=_0x4c996d;super(),_0xb4d35(this,_0x4abedb(0x384),new _0x4a5f0c['BehaviorSubject'](void 0x0)),_0xb4d35(this,'socket$',this[_0x4abedb(0x384)][_0x4abedb(0x228)]()),_0xb4d35(this,_0x4abedb(0x18b),null),_0xb4d35(this,_0x4abedb(0xf6),new Map()),_0xb4d35(this,'_status$',new _0x4a5f0c[(_0x4abedb(0x496))](_0x44beef[_0x4abedb(0x3a5)])),_0xb4d35(this,'status$',this[_0x4abedb(0x461)][_0x4abedb(0x228)]()),_0xb4d35(this,_0x4abedb(0x388),!0x1),_0xb4d35(this,_0x4abedb(0x364)),_0xb4d35(this,_0x4abedb(0x1a7),0x0),_0xb4d35(this,_0x4abedb(0x37f)),_0xb4d35(this,_0x4abedb(0x3c2)),(this[_0x4abedb(0x112)]=_0x1be8ff,this[_0x4abedb(0x1ca)]=_0x24a32c,this[_0x4abedb(0x485)]=_0x238a3e,this[_0x4abedb(0x1e2)]=_0x5b7801,this[_0x4abedb(0x27a)]=_0x3929df,this[_0x4abedb(0x15e)]=_0xb3fd4c,this[_0x4abedb(0x184)]());}get['_socket'](){const _0x5306ce=_0x4c996d;return this[_0x5306ce(0x384)][_0x5306ce(0x309)]();}[_0x4c996d(0x184)](){const _0x4bed14=_0x4c996d;this[_0x4bed14(0x241)](),this['_listenToOnlineEvent']();}[_0x4c996d(0x20a)](){const _0x38a1bd=_0x4c996d;super['dispose'](),this[_0x38a1bd(0xf6)]['forEach'](_0x577cf8=>_0x577cf8[_0x38a1bd(0x20a)]()),this[_0x38a1bd(0xf6)][_0x38a1bd(0x34c)](),this[_0x38a1bd(0x461)][_0x38a1bd(0x21f)]();}async[_0x4c996d(0x339)](_0x35f331){const _0x57e940=_0x4c996d;if(this['_sessions'][_0x57e940(0x1df)](_0x35f331))return this[_0x57e940(0xf6)][_0x57e940(0x453)](_0x35f331);this[_0x57e940(0x49b)]();const _0x4d658b=this[_0x57e940(0x112)]['createInstance'](_0x326761[_0x57e940(0x367)],_0x35f331,this[_0x57e940(0x384)][_0x57e940(0x228)]());return this[_0x57e940(0xf6)][_0x57e940(0x22e)](_0x35f331,_0x4d658b),_0x4d658b;}[_0x4c996d(0x133)](_0x4d0784){const _0x2116ee=_0x4c996d;var _0xca8bd2;const _0x163bb7=this[_0x2116ee(0xf6)][_0x2116ee(0x453)](_0x4d0784);_0x163bb7&&(this[_0x2116ee(0xf6)][_0x2116ee(0x4d4)](_0x4d0784),_0x163bb7[_0x2116ee(0x31a)]()),this['_sessions'][_0x2116ee(0x423)]||(_0xca8bd2=this['_socket'])==null||_0xca8bd2[_0x2116ee(0x31a)]();}[_0x4c996d(0x33d)](){const _0x4dfbe4=_0x4c996d;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x4dfbe4(0x364)]),this[_0x4dfbe4(0x364)]=null),this[_0x4dfbe4(0x437)]();}['_createSocket'](){const _0x26cdfa=_0x4c996d;var _0x3875ca,_0x3f23ca;const _0x2853dd=this[_0x26cdfa(0x27a)][_0x26cdfa(0x2d8)](_0x5ebc49),_0x5bf553=this['_configService'][_0x26cdfa(0x2d8)](_0x4dd3a7),_0x2ceed0=(_0x3f23ca=(_0x3875ca=_0x5bf553==null?void 0x0:_0x5bf553[_0x26cdfa(0x466)])!=null?_0x3875ca:_0x2853dd)!=null?_0x3f23ca:_0x18660e,_0x939fda=this['_socketService'][_0x26cdfa(0x1fa)](_0x2ceed0);return this[_0x26cdfa(0x18b)]=_0x939fda,_0x939fda;}['_tryEnsureSocket'](){const _0x5ecd06=_0x4c996d;var _0x536f61,_0x1adbc7;try{const _0x3bd913=(_0x1adbc7=(_0x536f61=this['_socket'])!=null?_0x536f61:this[_0x5ecd06(0x18b)])!=null?_0x1adbc7:this['_createSocket']();if(_0x3bd913){const _0x424eb3=_0x3bd913[_0x5ecd06(0x38e)];_0x3bd913[_0x5ecd06(0x38e)]=_0x351411=>(this[_0x5ecd06(0x4d7)](),_0x424eb3['apply'](_0x3bd913,[_0x351411])),_0x3bd913[_0x5ecd06(0xf7)][_0x5ecd06(0x451)](_0x2d1de3=>this[_0x5ecd06(0x3e6)](_0x3bd913,_0x2d1de3)),_0x3bd913[_0x5ecd06(0x1cb)][_0x5ecd06(0x2b6)](_0x2032d6['take'](0x1))['subscribe'](_0x2bbc3e=>this[_0x5ecd06(0x1e2)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x2bbc3e)),_0x3bd913[_0x5ecd06(0x3cd)][_0x5ecd06(0x2b6)](_0x2032d6[_0x5ecd06(0x14f)](0x1))['subscribe'](()=>{const _0x22ea2e=_0x5ecd06;this[_0x22ea2e(0x1ea)](_0x3bd913);}),_0x3bd913['close$']['pipe'](_0x2032d6[_0x5ecd06(0x14f)](0x1))[_0x5ecd06(0x451)](_0x45cffe=>{const _0x381294=_0x5ecd06;this['_logService']['debug'](_0x381294(0x247),'socket\x20close',_0x45cffe),this[_0x381294(0x320)]();});}}catch(_0x133dd8){this['_logService']['error'](_0x133dd8),this[_0x5ecd06(0x320)]();}}['_onConnectionOpen'](_0x388a65){const _0x106d83=_0x4c996d;this[_0x106d83(0x1e2)][_0x106d83(0x2b9)]('[CollaborationSessionService]',_0x106d83(0x2bf)),_0x388a65[_0x106d83(0x38e)]({'cmd':_0x19eae4[_0x106d83(0x2bd)]}),this[_0x106d83(0x4d7)]();}[_0x4c996d(0x241)](){const _0x5b685a=_0x4c996d;window[_0x5b685a(0x3fe)](_0x5b685a(0x13a),()=>this['_onOffline']());}['_onOffline'](){const _0x40ec8e=_0x4c996d;this['_socketReady']=!0x1,this[_0x40ec8e(0x18b)]=null,this['_status$'][_0x40ec8e(0x256)](_0x44beef[_0x40ec8e(0x28b)]),this[_0x40ec8e(0x384)][_0x40ec8e(0x256)](null),this[_0x40ec8e(0x376)](),this[_0x40ec8e(0x301)]();}[_0x4c996d(0x320)](){const _0x3b5868=_0x4c996d;var _0x561d2b;this['_onOffline'](),this[_0x3b5868(0x1a7)]<((_0x561d2b=this['_configService'][_0x3b5868(0x2d8)](_0x2d286d))!=null?_0x561d2b:0x3)?(this[_0x3b5868(0x485)]['show']({'key':'collaboration-session-retry','type':_0x71e3dd[_0x3b5868(0x123)]['Warning'],'content':this[_0x3b5868(0x1ca)]['t'](_0x3b5868(0x350))}),this[_0x3b5868(0x437)]()):this['_messageService']['show']({'key':_0x3b5868(0x3ee),'type':_0x71e3dd['MessageType'][_0x3b5868(0x3ca)],'content':this[_0x3b5868(0x1ca)]['t'](_0x3b5868(0x46e))});}[_0x4c996d(0x2fe)](){const _0xc2f67=_0x4c996d,_0x4f9794=()=>{const _0x1b78b5=_0x59fd;this[_0x1b78b5(0x24b)]||this[_0x1b78b5(0x33d)]();},_0x4b07f4=()=>{const _0x2bc47d=_0x59fd;this[_0x2bc47d(0x24b)]||document[_0x2bc47d(0x366)]==='hidden'||this[_0x2bc47d(0x33d)]();};window[_0xc2f67(0x3fe)](_0xc2f67(0x48c),_0x4f9794),document['addEventListener'](_0xc2f67(0x2db),_0x4b07f4);}['_tryReconnect'](){const _0x5ea72a=_0x4c996d;var _0x82f021;const _0x44c8c5=this[_0x5ea72a(0x1a7)],_0x2a1b01=this[_0x5ea72a(0x27a)][_0x5ea72a(0x2d8)](_0x4dd3a7),_0x13efc4=_0x44c8c5===0x0?0x0:((_0x82f021=_0x2a1b01==null?void 0x0:_0x2a1b01[_0x5ea72a(0x10e)])!=null?_0x82f021:0x4e20)*0x2**_0x44c8c5;this['_retryConnectingTimer']=window[_0x5ea72a(0x215)](()=>{const _0x40e358=_0x5ea72a;clearTimeout(this[_0x40e358(0x364)]),this[_0x40e358(0x364)]=null,this[_0x40e358(0x49b)]();},_0x13efc4),this[_0x5ea72a(0x1a7)]+=0x1;}[_0x4c996d(0x3e6)](_0x1d655c,_0x1b1816){const _0x5eea67=_0x4c996d,{cmd:_0x25bacf}=_0x1b1816;_0x25bacf===_0x19eae4[_0x5eea67(0x2bd)]&&!this[_0x5eea67(0x388)]&&(_0x1d655c['memberID']=_0x1b1816[_0x5eea67(0x223)][_0x5eea67(0x319)],this[_0x5eea67(0x384)][_0x5eea67(0x256)](_0x1d655c),this['_status$'][_0x5eea67(0x256)](_0x44beef['ONLINE']),this[_0x5eea67(0x388)]=!0x0,this[_0x5eea67(0x18b)]=null),_0x25bacf===_0x19eae4[_0x5eea67(0x40f)]&&this[_0x5eea67(0x376)](),this['_rescheduleHeartbeat']();}[_0x4c996d(0x4d7)](){const _0x260e0c=_0x4c996d;var _0x599ea5;this[_0x260e0c(0x301)](),this[_0x260e0c(0x37f)]=window[_0x260e0c(0x215)](()=>this[_0x260e0c(0x4da)](),(_0x599ea5=this[_0x260e0c(0x27a)]['getConfig'](_0x59a3ea))!=null?_0x599ea5:0x7530);}[_0x4c996d(0x4da)](){const _0x4658e4=_0x4c996d;this[_0x4658e4(0x24b)][_0x4658e4(0x38e)]({'cmd':_0x19eae4[_0x4658e4(0x40f)]}),this[_0x4658e4(0x293)]();}[_0x4c996d(0x293)](){const _0x427b05=_0x4c996d;var _0x60c55a;this['_timeoutTimer']=window[_0x427b05(0x215)](()=>this['_onConnectionFailed'](),(_0x60c55a=this[_0x427b05(0x27a)][_0x427b05(0x2d8)](_0x1edc8f))!=null?_0x60c55a:0x4e20);}[_0x4c996d(0x301)](){const _0x113ea2=_0x4c996d;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x113ea2(0x37f)]),this[_0x113ea2(0x37f)]=null);}[_0x4c996d(0x376)](){const _0x34413a=_0x4c996d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x34413a(0x3c2)]),this[_0x34413a(0x3c2)]=null);}},_0x326761['CollaborationSessionService']=_0x22f2de([_0x27db79(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x27db79(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x27db79(0x2,_0x5d918d[_0x4c996d(0x19e)]),_0x27db79(0x3,_0x229428[_0x4c996d(0x363)]),_0x27db79(0x4,_0x229428[_0x4c996d(0x274)]),_0x27db79(0x5,_0x52a4b9)],_0x326761[_0x4c996d(0x368)]);var _0x2310d2=Object[_0x4c996d(0x287)],_0x3bc0d7=Object[_0x4c996d(0x16a)],_0x4158ba=(_0x104249,_0xa41123,_0x208a4b,_0x30a958)=>{for(var _0x34dffc=_0x30a958>0x1?void 0x0:_0x30a958?_0x3bc0d7(_0xa41123,_0x208a4b):_0xa41123,_0x31ea47=_0x104249['length']-0x1,_0x4e20bb;_0x31ea47>=0x0;_0x31ea47--)(_0x4e20bb=_0x104249[_0x31ea47])&&(_0x34dffc=(_0x30a958?_0x4e20bb(_0xa41123,_0x208a4b,_0x34dffc):_0x4e20bb(_0x34dffc))||_0x34dffc);return _0x30a958&&_0x34dffc&&_0x2310d2(_0xa41123,_0x208a4b,_0x34dffc),_0x34dffc;},_0x2ad8f5=(_0x134f90,_0x32f332)=>(_0x9d6b4,_0xa5306c)=>_0x32f332(_0x9d6b4,_0xa5306c,_0x134f90);let _0x2bdd5b=class{constructor(_0x2e0c0d,_0xa6cef6,_0x456da6){const _0x1bfeaa=_0x4c996d;this['_injector']=_0x2e0c0d,this[_0x1bfeaa(0x49e)]=_0xa6cef6,this[_0x1bfeaa(0x1bd)]=_0x456da6;}['transformIMECache'](_0x426c9b){const _0x1a1718=_0x4c996d;this[_0x1a1718(0x1ef)](_0x426c9b),this[_0x1a1718(0x38a)](_0x426c9b);}[_0x4c996d(0x499)](_0x39883d){const _0x27ebdd=_0x4c996d,{unitID:_0x5151e5}=_0x39883d,_0x1521c1=this[_0x27ebdd(0x1bd)]['getRenderById'](_0x5151e5)[_0x27ebdd(0x248)](_0x585819[_0x27ebdd(0x2f3)]),{redoCache:_0x43f887}=_0x1521c1[_0x27ebdd(0x41d)]();if(_0x43f887['length']===0x0)return _0x39883d;let _0x5b96e6=_0x229428[_0x27ebdd(0x179)]['deepClone'](_0x39883d['mutations'][0x0]);for(let _0x550921=0x0;_0x550921<_0x43f887[_0x27ebdd(0x260)];_0x550921++){const _0x234253={'id':_0x27ebdd(0x47a),'params':{..._0x43f887[_0x550921]}},_0x3ee4b8=this[_0x27ebdd(0x49e)][_0x27ebdd(0x49d)](_0x5b96e6,_0x234253,!0x1);if(_0x16a1a7['isTransformMutationFailure'](_0x3ee4b8))throw _0x3ee4b8['error'];_0x5b96e6=_0x3ee4b8['m1Prime'];}return{..._0x229428[_0x27ebdd(0x179)][_0x27ebdd(0x132)](_0x39883d),'mutations':[_0x5b96e6]};}[_0x4c996d(0x1ef)](_0x10792b){const _0x1159a8=_0x4c996d,{unitID:_0x1df0e4}=_0x10792b,_0x39d3a8=this['_renderManagerService']['getRenderById'](_0x1df0e4)[_0x1159a8(0x248)](_0x585819[_0x1159a8(0x2f3)]),{undoCache:_0x1aaf17,redoCache:_0x25d644}=_0x39d3a8['getUndoRedoMutationParamsCache']();if(_0x1aaf17[_0x1159a8(0x260)]===0x0||_0x25d644[_0x1159a8(0x260)]===0x0)return;const _0x13cd66=[],_0x5810aa=[];let _0x33a4e5=_0x229428[_0x1159a8(0x179)][_0x1159a8(0x132)](_0x10792b[_0x1159a8(0x431)][0x0]),_0x4f7079=_0x229428['Tools'][_0x1159a8(0x132)](_0x10792b['mutations'][0x0]);for(let _0x1e64a2=_0x1aaf17[_0x1159a8(0x260)]-0x1;_0x1e64a2>=0x0;_0x1e64a2--){const _0x204ab2={'id':_0x1159a8(0x47a),'params':{..._0x1aaf17[_0x1e64a2]}},_0x439896={'id':_0x1159a8(0x47a),'params':{..._0x25d644[_0x1e64a2]}},_0x224cd8=this[_0x1159a8(0x49e)][_0x1159a8(0x49d)](_0x33a4e5,_0x204ab2,!0x1),_0x14a21f=this['_transformService']['transformMutation'](_0x4f7079,_0x439896,!0x1);if(_0x16a1a7[_0x1159a8(0x3d0)](_0x224cd8))throw _0x224cd8[_0x1159a8(0x28e)];if(_0x16a1a7[_0x1159a8(0x3d0)](_0x14a21f))throw _0x14a21f['error'];_0x13cd66['unshift'](_0x224cd8[_0x1159a8(0x1e0)][_0x1159a8(0x1a3)]),_0x5810aa[_0x1159a8(0x312)](_0x14a21f[_0x1159a8(0x1e0)][_0x1159a8(0x1a3)]),_0x33a4e5=_0x224cd8[_0x1159a8(0x153)],_0x4f7079=_0x14a21f[_0x1159a8(0x153)];}_0x39d3a8[_0x1159a8(0x242)]({'undoCache':_0x13cd66,'redoCache':_0x5810aa});}[_0x4c996d(0x38a)](_0x63cbd0){const _0x59b21e=_0x4c996d,{unitID:_0x4b3390}=_0x63cbd0,_0x4a9b54=this[_0x59b21e(0x1bd)][_0x59b21e(0x108)](_0x4b3390)[_0x59b21e(0x248)](_0x585819[_0x59b21e(0x2f3)]),_0x410723=_0x4a9b54[_0x59b21e(0x2f4)]();if(_0x410723==null)return;const _0x374754=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x63cbd0[_0x59b21e(0x341)],'actions':null,'textRanges':[_0x410723]}}],_0x4ef988=this[_0x59b21e(0x49e)]['transformMutationsWithChangeset'](_0x63cbd0,_0x374754);if(!_0x16a1a7[_0x59b21e(0x391)](_0x4ef988))throw _0x4ef988['error'];const _0x58fae8=_0x4ef988[_0x59b21e(0x1e0)][0x0][_0x59b21e(0x1a3)][_0x59b21e(0x3aa)];Array[_0x59b21e(0x452)](_0x58fae8)&&_0x58fae8[_0x59b21e(0x260)]&&_0x4a9b54[_0x59b21e(0x1f4)](_0x58fae8[0x0]);}};_0x2bdd5b=_0x4158ba([_0x2ad8f5(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x2ad8f5(0x1,_0x16a1a7[_0x4c996d(0x2f5)]),_0x2ad8f5(0x2,_0x33f8a9[_0x4c996d(0x3d8)])],_0x2bdd5b);var _0x53bf13=Object[_0x4c996d(0x287)],_0x319f53=Object['getOwnPropertyDescriptor'],_0x2ddcb2=(_0x45c5e0,_0x15b0fc,_0x57414f,_0x19a627)=>{for(var _0x5584e7=_0x19a627>0x1?void 0x0:_0x19a627?_0x319f53(_0x15b0fc,_0x57414f):_0x15b0fc,_0x3bc947=_0x45c5e0['length']-0x1,_0x597274;_0x3bc947>=0x0;_0x3bc947--)(_0x597274=_0x45c5e0[_0x3bc947])&&(_0x5584e7=(_0x19a627?_0x597274(_0x15b0fc,_0x57414f,_0x5584e7):_0x597274(_0x5584e7))||_0x5584e7);return _0x19a627&&_0x5584e7&&_0x53bf13(_0x15b0fc,_0x57414f,_0x5584e7),_0x5584e7;},_0x41b0cb=(_0x4b2a3c,_0x48a7ac)=>(_0x22e04b,_0x21d383)=>_0x48a7ac(_0x22e04b,_0x21d383,_0x4b2a3c);_0x326761[_0x4c996d(0x166)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0xd2d6f5,_0x49f7a0,_0x2fd115,_0x45e4cc,_0x290d15){const _0x51fc94=_0x4c996d;super(),_0xb4d35(this,_0x51fc94(0x3c6),new Map()),_0xb4d35(this,'_saveTaskMap',new Map()),_0xb4d35(this,_0x51fc94(0x187),!0x1),(this['_configService']=_0xd2d6f5,this['_localStorageService']=_0x49f7a0,this['_beforeCloseService']=_0x2fd115,this['_localeService']=_0x45e4cc,this[_0x51fc94(0x30a)]=_0x290d15,this[_0x51fc94(0x128)]());}[_0x4c996d(0x3af)](){const _0x14e941=_0x4c996d;this[_0x14e941(0x187)]=!0x0;}[_0x4c996d(0x2a0)](){const _0x4515b9=_0x4c996d;this[_0x4515b9(0x187)]=!0x1;}[_0x4c996d(0x20a)](){const _0x894958=_0x4c996d;this[_0x894958(0x18e)]()['then'](()=>super[_0x894958(0x20a)]());}async[_0x4c996d(0x21b)](_0x137e41){const _0x2c9ff3=_0x4c996d;return this[_0x2c9ff3(0x187)]?null:this['_localStorageService'][_0x2c9ff3(0x476)](_0x4097c4(_0x137e41));}async['saveOfflineData'](_0x39e180,_0x47fef6){const _0xd8574=_0x4c996d;return!!this[_0xd8574(0x2e9)][_0xd8574(0x36c)](_0x39e180,_0x47fef6);}[_0x4c996d(0xd0)](_0x3b2a08,_0x107352,_0x156d2e,_0x1ff7e8){const _0x39a2f3=_0x4c996d,_0x582bb1=this[_0x39a2f3(0x30a)][_0x39a2f3(0x33b)](_0x3b2a08);this['_cachedData'][_0x39a2f3(0x22e)](_0x3b2a08,{'unitID':_0x3b2a08,'type':_0x107352,'awaitingChangeset':_0x156d2e,'mutations':_0x1ff7e8,'rev':_0x582bb1}),this[_0x39a2f3(0x371)][_0x39a2f3(0x1df)](_0x3b2a08)||this[_0x39a2f3(0x356)](_0x3b2a08);}[_0x4c996d(0x356)](_0x391c21){const _0x1ad2bb=_0x4c996d,_0x5ac7a2=this[_0x1ad2bb(0x266)]();_0x5ac7a2===0x0?this[_0x1ad2bb(0x2a4)](_0x391c21):this['_saveTaskMap'][_0x1ad2bb(0x22e)](_0x391c21,setTimeout(()=>this[_0x1ad2bb(0x2a4)](_0x391c21),_0x5ac7a2));}[_0x4c996d(0x266)](){const _0x385330=_0x4c996d;var _0x49df9b;return(_0x49df9b=this[_0x385330(0x27a)][_0x385330(0x2d8)](_0x385d5f))!=null?_0x49df9b:0x3e8;}['_saveCache'](_0x17a1d3){const _0x18b542=_0x4c996d,_0x339725=this['_saveTaskMap']['get'](_0x17a1d3);return _0x339725!==void 0x0&&window['clearTimeout'](_0x339725),this[_0x18b542(0x2e9)][_0x18b542(0x36c)](_0x4097c4(_0x17a1d3),this[_0x18b542(0x3c6)][_0x18b542(0x453)](_0x17a1d3))['then'](()=>this[_0x18b542(0x371)]['delete'](_0x17a1d3));}async['exhaustSavingTask'](){const _0x3bbfe4=_0x4c996d,_0x3b004b=[];this[_0x3bbfe4(0x371)][_0x3bbfe4(0x139)]((_0x2e7da5,_0x955960)=>{const _0x3aeaba=_0x3bbfe4;window['clearTimeout'](_0x2e7da5),_0x3b004b['push'](this['_saveCache'](_0x955960)[_0x3aeaba(0x17c)](()=>{const _0x270b82=_0x3aeaba;this[_0x270b82(0x371)]['delete'](_0x955960);}));}),await Promise[_0x3bbfe4(0x252)](_0x3b004b);}[_0x4c996d(0x128)](){const _0x4b8f8d=_0x4c996d;this[_0x4b8f8d(0x315)](this['_beforeCloseService'][_0x4b8f8d(0x480)](()=>{const _0xc9a734=_0x4b8f8d;if(this[_0xc9a734(0x371)][_0xc9a734(0x423)])return this[_0xc9a734(0x1ca)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x326761[_0x4c996d(0x166)]=_0x2ddcb2([_0x41b0cb(0x0,_0x229428[_0x4c996d(0x274)]),_0x41b0cb(0x1,_0x229428['ILocalStorageService']),_0x41b0cb(0x2,_0x5d918d['IBeforeCloseService']),_0x41b0cb(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x41b0cb(0x4,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)]))],_0x326761[_0x4c996d(0x166)]);function _0x4097c4(_0x109b35){return'unit-cache-'+_0x109b35;}var _0x3f3eef=Object[_0x4c996d(0x287)],_0x355356=Object[_0x4c996d(0x16a)],_0x8bdbc6=(_0x22a216,_0x3914c8,_0xebea07,_0x3bdd46)=>{for(var _0x4b8829=_0x3bdd46>0x1?void 0x0:_0x3bdd46?_0x355356(_0x3914c8,_0xebea07):_0x3914c8,_0x398458=_0x22a216['length']-0x1,_0x1013a0;_0x398458>=0x0;_0x398458--)(_0x1013a0=_0x22a216[_0x398458])&&(_0x4b8829=(_0x3bdd46?_0x1013a0(_0x3914c8,_0xebea07,_0x4b8829):_0x1013a0(_0x4b8829))||_0x4b8829);return _0x3bdd46&&_0x4b8829&&_0x3f3eef(_0x3914c8,_0xebea07,_0x4b8829),_0x4b8829;},_0x321ac2=(_0x588026,_0x494517)=>(_0x99b09d,_0x4fb971)=>_0x494517(_0x99b09d,_0x4fb971,_0x588026);function _0x4a7597(_0x27c823){const _0x561499=_0x4c996d,{unitID:_0x462104,mutations:_0x1e16cb}=_0x27c823;return{'unitId':_0x462104,'subUnitId':_0x1e16cb[0x0]['params'][_0x561499(0x122)]};}let _0x186ee5=class{constructor(_0x23e367,_0x42ebaf,_0x534740){const _0x30a060=_0x4c996d;this['_injector']=_0x23e367,this[_0x30a060(0x49e)]=_0x42ebaf,this['_instanceService']=_0x534740;}[_0x4c996d(0x18c)](_0x42c5c0){const _0xda0a0e=_0x4c996d;var _0x30a639,_0x1aa63d,_0xcd810,_0x534e23;const _0x403efa=this['_injector'][_0xda0a0e(0x453)](_0x4118a6[_0xda0a0e(0x4e2)]),{unitId:_0x45ce3b,subUnitId:_0x33f3b2}=_0x4a7597(_0x42c5c0),_0x4aa593=_0x403efa[_0xda0a0e(0x236)](_0x45ce3b)[_0xda0a0e(0x1e3)](),_0x4be4b8=(_0x1aa63d=(_0x30a639=this[_0xda0a0e(0x42c)][_0xda0a0e(0x169)](_0x45ce3b))==null?void 0x0:_0x30a639['getActiveSheet']())==null?void 0x0:_0x1aa63d['getSheetId']();if(_0x4aa593[_0xda0a0e(0x260)]===0x0||!_0x45ce3b||!_0x33f3b2)return;const _0x333956=[{'id':_0x4118a6[_0xda0a0e(0x1fd)]['id'],'params':{'unitId':_0x45ce3b,'subUnitId':_0x4be4b8,'selections':_0x229428[_0xda0a0e(0x179)]['deepClone'](_0x4aa593)}}],_0x573c39=this[_0xda0a0e(0x49e)][_0xda0a0e(0x4a0)](_0x42c5c0,_0x333956);if(!_0x16a1a7[_0xda0a0e(0x391)](_0x573c39))throw _0x573c39[_0xda0a0e(0x28e)];const _0x50b104=(_0x534e23=(_0xcd810=_0x573c39['m2Prime'][0x0])==null?void 0x0:_0xcd810[_0xda0a0e(0x1a3)])==null?void 0x0:_0x534e23[_0xda0a0e(0x35a)];Array[_0xda0a0e(0x452)](_0x50b104)&&_0x50b104[_0xda0a0e(0x260)]&&this[_0xda0a0e(0x112)][_0xda0a0e(0x453)](_0x229428[_0xda0a0e(0x1e6)])[_0xda0a0e(0x378)](_0x4118a6[_0xda0a0e(0x1fd)]['id'],{'unitId':_0x45ce3b,'subUnitId':_0x4be4b8,'selections':_0x50b104});}};_0x186ee5=_0x8bdbc6([_0x321ac2(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x321ac2(0x1,_0x16a1a7[_0x4c996d(0x2f5)]),_0x321ac2(0x2,_0x229428[_0x4c996d(0x299)])],_0x186ee5);const _0x1826d2=_0x229428['createIdentifier'](_0x4c996d(0x156));var _0x2eba97=(_0x3a7d37=>(_0x3a7d37[_0x3a7d37['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3a7d37[_0x3a7d37[_0x4c996d(0x427)]=0x1]=_0x4c996d(0x427),_0x3a7d37))(_0x2eba97||{});const _0x3cb347=0x7530,_0x28bceb=_0x4c996d(0x358);class _0x3d8d47 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x3ac9c8=_0x4c996d;super(),_0xb4d35(this,'_id',_0x229428[_0x3ac9c8(0x179)]['generateRandomId']()),_0xb4d35(this,'_selfUnitIDs',new Set()),_0xb4d35(this,_0x3ac9c8(0x2f1),new Map()),_0xb4d35(this,_0x3ac9c8(0x11f),null),_0xb4d35(this,_0x3ac9c8(0x430),new Map()),_0xb4d35(this,'_unitStatus',new Map()),this[_0x3ac9c8(0x360)]();}[_0x4c996d(0x20a)](){const _0x2ba711=_0x4c996d;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x525db7,_0x169713)=>this[_0x2ba711(0x4aa)](_0x169713)),this[_0x2ba711(0x11f)]&&window[_0x2ba711(0x3e4)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x707d03){const _0xb94ce4=_0x4c996d;return this[_0xb94ce4(0xe6)](_0x707d03)[_0xb94ce4(0x2b6)](_0x4a5f0c[_0xb94ce4(0x343)]());}[_0x4c996d(0x278)](_0x541173){const _0x1000e5=_0x4c996d;this[_0x1000e5(0x1b0)][_0x1000e5(0x423)]===0x0&&this[_0x1000e5(0x3ec)](),this[_0x1000e5(0x1b0)][_0x1000e5(0x4c6)](_0x541173),this[_0x1000e5(0x357)]({'type':0x0,'memberID':this[_0x1000e5(0x45b)],'unitIDs':[_0x541173],'isForwarded':!0x1});}['disposeUnit'](_0x4be7c6){const _0x3efbdd=_0x4c996d;this[_0x3efbdd(0x1b0)][_0x3efbdd(0x4d4)](_0x4be7c6),this[_0x3efbdd(0x1b0)][_0x3efbdd(0x423)]===0x0&&this['_heartbeatTimer']&&window[_0x3efbdd(0x3e4)](this[_0x3efbdd(0x11f)]);}[_0x4c996d(0x360)](){const _0x5cb6e5=_0x4c996d;this[_0x5cb6e5(0x315)](_0x229428['toDisposable'](_0x4a5f0c[_0x5cb6e5(0x458)](window,'storage')[_0x5cb6e5(0x451)](_0x56d57e=>{const _0xb9146c=_0x5cb6e5;if(_0x56d57e['key']!==_0x28bceb||!_0x56d57e['newValue'])return;const _0x2c97d3=JSON[_0xb9146c(0x4de)](_0x56d57e[_0xb9146c(0x1f2)]);this[_0xb9146c(0x4b9)](_0x2c97d3);}))),window['addEventListener'](_0x5cb6e5(0x16e),()=>this[_0x5cb6e5(0x357)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5cb6e5(0x1b0)])}));}['_handleEvent'](_0x5f3717){const _0xddef6e=_0x4c996d;switch(_0x5f3717[_0xddef6e(0x462)]){case 0x0:this[_0xddef6e(0x190)](_0x5f3717);break;case 0x1:this[_0xddef6e(0x3ad)](_0x5f3717);break;case 0x2:this[_0xddef6e(0x342)](_0x5f3717);break;}}[_0x4c996d(0x190)](_0x158840){const _0x12fc21=_0x4c996d,{unitIDs:_0x10739,memberID:_0x593feb,isForwarded:_0x4c72f9}=_0x158840;_0x10739['forEach'](_0x5b21bf=>{const _0x4bc13f=_0x59fd;if(!_0x4c72f9&&this[_0x4bc13f(0x2f1)][_0x4bc13f(0x1df)](_0x5b21bf)&&this['_ensureSubject'](_0x5b21bf)[_0x4bc13f(0x256)](0x1),!this['_unitOnClients'][_0x4bc13f(0x1df)](_0x5b21bf)||!this['_unitOnClients'][_0x4bc13f(0x453)](_0x5b21bf)['has'](_0x593feb)){const _0x23b6d9=this['_unitOnClients'][_0x4bc13f(0x453)](_0x5b21bf)||new Set();_0x23b6d9['add'](_0x593feb),this[_0x4bc13f(0x2f1)][_0x4bc13f(0x22e)](_0x5b21bf,_0x23b6d9),this[_0x4bc13f(0x443)](_0x593feb);}}),_0x4c72f9||this[_0x12fc21(0x357)]({'type':0x0,'memberID':this[_0x12fc21(0x45b)],'unitIDs':[...this[_0x12fc21(0x1b0)]],'isForwarded':!0x0});}[_0x4c996d(0x443)](_0x157a7b){const _0x4ac523=_0x4c996d;this[_0x4ac523(0x4aa)](_0x157a7b);const _0x221dff=window[_0x4ac523(0x215)](()=>{const _0x27cb87=_0x4ac523;this[_0x27cb87(0x2f1)][_0x27cb87(0x139)](_0x5e9254=>{const _0x314e83=_0x27cb87;_0x5e9254[_0x314e83(0x4d4)](_0x157a7b);});},_0x3cb347*0x2);this['_clearOtherTimers']['set'](_0x157a7b,_0x221dff);}[_0x4c996d(0x4aa)](_0x5d0f72){const _0x394e6a=_0x4c996d;if(this['_clearOtherTimers'][_0x394e6a(0x1df)](_0x5d0f72)){const _0x415fab=this[_0x394e6a(0x430)][_0x394e6a(0x453)](_0x5d0f72);_0x415fab&&window[_0x394e6a(0x165)](_0x415fab),this[_0x394e6a(0x430)][_0x394e6a(0x22e)](_0x5d0f72,null);}}[_0x4c996d(0x3ad)](_0x40efba){const _0x97e06e=_0x4c996d,{memberID:_0x5cb4b7,unitIDs:_0x488dd2}=_0x40efba;_0x488dd2[_0x97e06e(0x139)](_0x31de26=>{const _0x3a2902=_0x97e06e;var _0x52b0df;const _0x4c3f5b=this[_0x3a2902(0x2f1)][_0x3a2902(0x453)](_0x31de26);_0x4c3f5b&&(_0x4c3f5b[_0x3a2902(0x4d4)](_0x5cb4b7),(_0x52b0df=this['_ensureSubject'](_0x31de26))==null||_0x52b0df[_0x3a2902(0x256)](_0x4c3f5b['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5cb4b7);}['_handleHeartbeatEvent'](_0x27a08a){const _0x5d8c6c=_0x4c996d;this[_0x5d8c6c(0x443)](_0x27a08a[_0x5d8c6c(0x319)]);}[_0x4c996d(0x357)](_0x5572ff){const _0x266a28=_0x4c996d;localStorage[_0x266a28(0x36c)](_0x28bceb,JSON['stringify'](_0x5572ff));}[_0x4c996d(0x3ec)](){const _0x1fe763=_0x4c996d;this['_heartbeatTimer']=window[_0x1fe763(0x338)](()=>{const _0x91f215=_0x1fe763;this[_0x91f215(0x357)]({'type':0x2,'memberID':this['_id']});},_0x3cb347);}[_0x4c996d(0xe6)](_0x2b09a3){const _0x401b0c=_0x4c996d;return this[_0x401b0c(0x141)][_0x401b0c(0x1df)](_0x2b09a3)||this[_0x401b0c(0x141)]['set'](_0x2b09a3,new _0x4a5f0c[(_0x401b0c(0x496))](0x0)),this['_unitStatus']['get'](_0x2b09a3);}}function _0x5a47c4(_0x242efd){const _0x2e9091=_0x4c996d;let _0x5eb4bc='';for(const _0x362b83 of _0x242efd){const {startOffset:_0x41447c,endOffset:_0x3746d9,isActive:_0x50062e}=_0x362b83;_0x5eb4bc[_0x2e9091(0x260)]&&(_0x5eb4bc+=','),_0x5eb4bc+=_0x41447c+':'+_0x3746d9+':'+(_0x50062e?'1':'0');}return _0x5eb4bc;}function _0x2714d3(_0x528049){const _0x1e1cf7=_0x4c996d,_0x2c5ea6=_0x528049[_0x1e1cf7(0x318)](','),_0x52c34d=[];for(const _0x432c76 of _0x2c5ea6){const [_0x8c6ccd,_0x479dae,_0x1154fa]=_0x432c76[_0x1e1cf7(0x318)](':');_0x52c34d['push']({'startOffset':Number(_0x8c6ccd),'endOffset':Number(_0x479dae),'collapsed':_0x8c6ccd===_0x479dae,'isActive':_0x1154fa==='1'});}return _0x52c34d[_0x1e1cf7(0x173)](_0x18dbaa=>_0x18dbaa[_0x1e1cf7(0x36a)])||(_0x52c34d[0x0]['isActive']=!0x0),_0x52c34d;}class _0x4ef234 extends _0x229428[_0x4c996d(0x119)]{constructor(){const _0x1bfa40=_0x4c996d;super(...arguments),_0xb4d35(this,_0x1bfa40(0x3f2),new _0x4a5f0c['BehaviorSubject'](null)),_0xb4d35(this,_0x1bfa40(0x1f9),this[_0x1bfa40(0x3f2)][_0x1bfa40(0x228)]());}[_0x4c996d(0x4d3)](_0x4387a6){const _0x5d4235=_0x4c996d,{unitID:_0x52ece4,memberID:_0x37c111,textRanges:_0x3d856a}=_0x4387a6,_0x577090=_0x5a47c4(_0x3d856a),_0x359b4a={'unitID':_0x52ece4,'memberID':_0x37c111,'selection':_0x577090};this[_0x5d4235(0x3f2)][_0x5d4235(0x256)](_0x359b4a);}}var _0x545e1b=Object['defineProperty'],_0xd890fd=Object['getOwnPropertyDescriptor'],_0x5de57c=(_0x4cda35,_0x2cb1aa,_0x5164cc,_0x19aef8)=>{const _0x245166=_0x4c996d;for(var _0xc93d71=_0x19aef8>0x1?void 0x0:_0x19aef8?_0xd890fd(_0x2cb1aa,_0x5164cc):_0x2cb1aa,_0x40da99=_0x4cda35[_0x245166(0x260)]-0x1,_0x2801d2;_0x40da99>=0x0;_0x40da99--)(_0x2801d2=_0x4cda35[_0x40da99])&&(_0xc93d71=(_0x19aef8?_0x2801d2(_0x2cb1aa,_0x5164cc,_0xc93d71):_0x2801d2(_0xc93d71))||_0xc93d71);return _0x19aef8&&_0xc93d71&&_0x545e1b(_0x2cb1aa,_0x5164cc,_0xc93d71),_0xc93d71;},_0x2968a2=(_0x1b4b29,_0x54f356)=>(_0x1b38ed,_0x15631c)=>_0x54f356(_0x1b38ed,_0x15631c,_0x1b4b29);let _0x483ac7=class{constructor(_0xd6ac8a,_0x4ebffc){this['_injector']=_0xd6ac8a,this['_transformService']=_0x4ebffc;}[_0x4c996d(0x18c)](_0x2f15c4){const _0x447995=_0x4c996d;var _0x136949;const _0x110f41=this[_0x447995(0x112)]['get'](_0xf2d66e['DocSelectionManagerService']),_0x817706=(_0x136949=_0x110f41['getDocRanges']())!=null?_0x136949:[];if(_0x817706[_0x447995(0x260)]===0x0)return;const _0x1ec56b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f15c4[_0x447995(0x341)],'actions':null,'textRanges':_0x817706}}],_0x2c7b9a=this['_transformService'][_0x447995(0x4a0)](_0x2f15c4,_0x1ec56b);if(!_0x16a1a7[_0x447995(0x391)](_0x2c7b9a))throw _0x2c7b9a['error'];const _0x2f644e=_0x2c7b9a[_0x447995(0x1e0)][0x0][_0x447995(0x1a3)][_0x447995(0x3aa)];Array[_0x447995(0x452)](_0x2f644e)&&_0x2f644e[_0x447995(0x260)]&&_0x110f41[_0x447995(0x261)](_0x2f644e,!0x1);}};_0x483ac7=_0x5de57c([_0x2968a2(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x2968a2(0x1,_0x16a1a7[_0x4c996d(0x2f5)])],_0x483ac7);const _0x5afb8a=new Set([_0x4118a6[_0x4c996d(0x314)]['id']]);function _0x5e8224(_0x1915a2,_0x64b621,_0x3fabea,_0xf562cc,_0x5d17a8){const _0x1e628d=_0x4c996d;var _0x57f382,_0x1a7865,_0x4340e8,_0x122a60;const _0x4cca6c=[];for(const _0x18d0b0 of _0x1915a2)if(_0x5afb8a['has'](_0x18d0b0['id'])){if(_0x4cca6c[_0x1e628d(0x260)]>0x0)break;_0x4cca6c['push'](_0x18d0b0);break;}else _0x4cca6c['push'](_0x18d0b0);const _0x875d78=(_0x1a7865=(_0x57f382=_0x5d17a8['getCurrentUser']())==null?void 0x0:_0x57f382[_0x1e628d(0x3dc)])!=null?_0x1a7865:'unknown',_0x2a45c9=(_0x122a60=(_0x4340e8=_0x5d17a8[_0x1e628d(0x11c)]())==null?void 0x0:_0x4340e8[_0x1e628d(0x319)])!=null?_0x122a60:_0x1e628d(0x2cd);return{'changeset':{'unitID':_0x64b621,'type':_0x16a1a7['mapDocumentTypeToUniverType'](_0x3fabea[_0x1e628d(0x19c)](_0x64b621)),'baseRev':_0xf562cc[_0x1e628d(0x33b)](_0x64b621),'revision':0x0,'userID':_0x875d78,'memberID':_0x2a45c9,'mutations':_0x4cca6c},'pendingMutations':_0x1915a2['slice'](_0x4cca6c[_0x1e628d(0x260)])};}function _0x283c9b(_0x29244e,_0x4dc162,_0x2fea95,_0x1c4683,_0x32df49){const _0x361de4=_0x4c996d;var _0x426600,_0xe9e163,_0x17fb2f,_0x3ad150;const _0x930702=[_0x29244e[_0x361de4(0x459)]((_0x4d184c,_0x53720b)=>{const _0x1a4d47=_0x361de4;var _0x448b7d;const {id:_0x4832f7}=_0x4d184c,{id:_0xf7a697,type:_0x10af2d}=_0x53720b,_0x1ae0f7=(_0x448b7d=_0x4d184c[_0x1a4d47(0x1a3)])!=null?_0x448b7d:{'actions':null},_0x4a9461=_0x53720b[_0x1a4d47(0x1a3)];if(_0x4832f7&&_0x4832f7!==_0xf7a697)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x4832f7+'\x20-\x20'+_0xf7a697+'.');return{..._0x4d184c,'id':_0xf7a697,'type':_0x10af2d,'params':{'unitId':_0x4a9461['unitId'],'textRanges':_0x4a9461['textRanges'],'actions':_0x229428[_0x1a4d47(0x2cf)]['compose'](_0x1ae0f7['actions'],_0x4a9461[_0x1a4d47(0x294)])}};},{})],_0x5d979c=(_0xe9e163=(_0x426600=_0x32df49['getCurrentUser']())==null?void 0x0:_0x426600[_0x361de4(0x3dc)])!=null?_0xe9e163:_0x361de4(0x2cd),_0x267e4e=(_0x3ad150=(_0x17fb2f=_0x32df49['getCurrentUser']())==null?void 0x0:_0x17fb2f[_0x361de4(0x319)])!=null?_0x3ad150:'unknown';return{'changeset':{'unitID':_0x4dc162,'type':_0x16a1a7[_0x361de4(0x1da)](_0x2fea95['getUnitType'](_0x4dc162)),'baseRev':_0x1c4683[_0x361de4(0x33b)](_0x4dc162),'revision':0x0,'userID':_0x5d979c,'memberID':_0x267e4e,'mutations':_0x930702},'pendingMutations':[]};}const _0x49da6d={'id':_0x4118a6['EmptyMutation']['id'],'type':_0x229428[_0x4c996d(0x255)][_0x4c996d(0x308)],'params':{}};var _0x33e0cf=Object[_0x4c996d(0x287)],_0x28ac16=Object[_0x4c996d(0x16a)],_0x453fc0=(_0x305d82,_0x58f206,_0xec4d51,_0x1809dd)=>{const _0x3e0f10=_0x4c996d;for(var _0x50d642=_0x1809dd>0x1?void 0x0:_0x1809dd?_0x28ac16(_0x58f206,_0xec4d51):_0x58f206,_0x35e8fa=_0x305d82[_0x3e0f10(0x260)]-0x1,_0x5437d7;_0x35e8fa>=0x0;_0x35e8fa--)(_0x5437d7=_0x305d82[_0x35e8fa])&&(_0x50d642=(_0x1809dd?_0x5437d7(_0x58f206,_0xec4d51,_0x50d642):_0x5437d7(_0x50d642))||_0x50d642);return _0x1809dd&&_0x50d642&&_0x33e0cf(_0x58f206,_0xec4d51,_0x50d642),_0x50d642;},_0x328c3d=(_0x5f4c55,_0x19466c)=>(_0x1cc7c4,_0x269bb6)=>_0x19466c(_0x1cc7c4,_0x269bb6,_0x5f4c55),_0x4b8cf1=(_0xd0abff=>(_0xd0abff[_0x4c996d(0x2c1)]='not_collab',_0xd0abff['SYNCED']=_0x4c996d(0x231),_0xd0abff[_0x4c996d(0x25a)]=_0x4c996d(0x1e7),_0xd0abff[_0x4c996d(0x325)]='awaiting',_0xd0abff[_0x4c996d(0x225)]=_0x4c996d(0x2ad),_0xd0abff['FETCH_MISS']=_0x4c996d(0x220),_0xd0abff['CONFLICT']=_0x4c996d(0x2ce),_0xd0abff['OFFLINE']=_0x4c996d(0x13a),_0xd0abff))(_0x4b8cf1||{});class _0x1715f6{constructor(_0x104348,_0x3a6240,_0x40b279,_0x16c722,_0x4ebba9,_0x9bde66,_0x372707,_0x2ec04e,_0xa20c14){const _0x123ced=_0x4c996d;_0xb4d35(this,_0x123ced(0x1c5),null),_0xb4d35(this,_0x123ced(0x105),[]),(this[_0x123ced(0x341)]=_0x104348,this[_0x123ced(0x462)]=_0x3a6240,this[_0x123ced(0x469)]=_0x4ebba9,this[_0x123ced(0x369)]=_0x9bde66,this[_0x123ced(0x222)]=_0x372707,this[_0x123ced(0x30a)]=_0x2ec04e,this[_0x123ced(0x18f)]=_0xa20c14,this[_0x123ced(0x1c5)]=_0x40b279,this['_pendingMutations']=_0x16c722);}[_0x4c996d(0x329)](_0x78f89d){const _0x38bcb1=_0x4c996d,_0x2bfc22=this['_revisionService'][_0x38bcb1(0x33b)](this[_0x38bcb1(0x341)]);return _0x78f89d[_0x38bcb1(0x208)]>_0x2bfc22+0x1?(this[_0x38bcb1(0x469)][_0x38bcb1(0x26b)]({'from':_0x2bfc22,'to':_0x78f89d[_0x38bcb1(0x208)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x281504){const _0x5db9f2=_0x4c996d;this[_0x5db9f2(0x222)][_0x5db9f2(0x272)](this[_0x5db9f2(0x341)],_0x281504);}[_0x4c996d(0x15a)](_0x2afbe2){const _0x18d4be=_0x4c996d;var _0x279913,_0x15c6c1;(_0x15c6c1=(_0x279913=this['_handler'])[_0x18d4be(0x385)])==null||_0x15c6c1[_0x18d4be(0x411)](_0x279913,_0x2afbe2);}['_transformIMECache'](_0x190af){const _0x4bf53a=_0x4c996d;var _0x336e6f,_0x3cfcb0;return(_0x3cfcb0=(_0x336e6f=this[_0x4bf53a(0x469)])[_0x4bf53a(0x383)])==null?void 0x0:_0x3cfcb0[_0x4bf53a(0x411)](_0x336e6f,_0x190af);}[_0x4c996d(0x3cc)](_0x28da37){const _0x25f1b0=_0x4c996d;var _0x399ac7,_0x1646c1,_0x3163da;return(_0x3163da=(_0x1646c1=(_0x399ac7=this['_handler'])[_0x25f1b0(0x333)])==null?void 0x0:_0x1646c1[_0x25f1b0(0x411)](_0x399ac7,_0x28da37))!=null?_0x3163da:_0x28da37;}[_0x4c996d(0xd1)](_0x17047e){const _0x2f0d08=_0x4c996d;var _0x888cd5,_0x118b23;if(this['type']===_0x367a98[_0x2f0d08(0x4b2)]){const {unitID:_0x4904ed,mutations:_0x3cc7fe,memberID:_0x18130d}=_0x17047e,_0x2e454b=_0x3cc7fe[0x0][_0x2f0d08(0x1a3)][_0x2f0d08(0x3aa)];Array[_0x2f0d08(0x452)](_0x2e454b)&&_0x2e454b[_0x2f0d08(0x260)]>0x0&&((_0x118b23=(_0x888cd5=this[_0x2f0d08(0x469)])['onSyncEditingCollabCursor'])==null||_0x118b23[_0x2f0d08(0x411)](_0x888cd5,{'unitID':_0x4904ed,'memberID':_0x18130d,'textRanges':_0x2e454b}));}}['_updateLocalCache'](){const _0x36789d=_0x4c996d;this[_0x36789d(0x18f)][_0x36789d(0xd0)](this[_0x36789d(0x341)],this['type'],this[_0x36789d(0x1c5)],this[_0x36789d(0x105)]);}['_getCurrentRevision'](){const _0x41e735=_0x4c996d;return this[_0x41e735(0x30a)]['getCurrentRevOfUnit'](this[_0x41e735(0x341)]);}[_0x4c996d(0x4dc)](){const _0x2bfe89=_0x4c996d;this[_0x2bfe89(0x30a)][_0x2bfe89(0x3f8)](this[_0x2bfe89(0x341)]);}['_executeRemoteChangeset'](_0x17585e){const _0x2184e6=_0x4c996d;var _0x16da85;const _0x4af186=this[_0x2184e6(0x3cc)](_0x17585e),_0x599a42=_0x229428[_0x2184e6(0x4ab)](_0x4af186[_0x2184e6(0x431)],this['_commandService'],{'fromCollab':!0x0});if(!_0x599a42[_0x2184e6(0x37d)])throw _0x599a42[_0x2184e6(0x28e)]instanceof Error?_0x599a42[_0x2184e6(0x28e)]:new Error((_0x16da85=_0x599a42['error'])!=null?_0x16da85:_0x2184e6(0x2fd));this[_0x2184e6(0x2cb)](_0x4af186),this[_0x2184e6(0x263)](_0x17585e),this['_transformSelections'](_0x4af186),this[_0x2184e6(0xd1)](_0x4af186),this['_incrementRevisionNumber']();}}let _0x2a5340=class extends _0x1715f6{constructor(_0x34bf6a,_0x1a897e,_0xafd258,_0x5620eb,_0x1d7a48,_0x418519,_0x54b2c5,_0x580b53,_0x5102a6,_0x595c75){const _0x166322=_0x4c996d;super(_0x34bf6a,_0x1a897e,null,[],_0xafd258,_0x580b53,_0x54b2c5,_0x5620eb,_0x1d7a48),_0xb4d35(this,_0x166322(0x32e),_0x166322(0x231)),(this[_0x166322(0x112)]=_0x418519,this['_logService']=_0x5102a6,this[_0x166322(0x49e)]=_0x595c75);}[_0x4c996d(0x1e8)](_0x1fe412){const _0xaad6e=_0x4c996d,_0x1cd121=this['_injector'][_0xaad6e(0x4c9)](_0x30be2d,this[_0xaad6e(0x341)],this['type'],[_0x1fe412],this['_handler']);return _0x1cd121[_0xaad6e(0x44c)](),_0x1cd121[_0xaad6e(0x324)](),_0x1cd121;}[_0x4c996d(0x4ce)](_0x51a807){const _0x142197=_0x4c996d;if(this[_0x142197(0x329)](_0x51a807))return this['_injector'][_0x142197(0x4c9)](_0x434c0b,this[_0x142197(0x341)],this['type'],null,[],null,[_0x51a807],this[_0x142197(0x469)]);try{const _0x5dbe0d=this['_transformService'][_0x142197(0x4a0)](_0x51a807,[_0x49da6d]);if(_0x16a1a7['isTransformMutationsWithChangesetSuccess'](_0x5dbe0d)){const {c1Prime:_0x516f05}=_0x5dbe0d;return this[_0x142197(0x486)](_0x516f05),this;}throw _0x5dbe0d['error'];}catch(_0x48b2bf){return this[_0x142197(0x1e2)][_0x142197(0x28e)](_0x48b2bf),this[_0x142197(0x1f0)](!0x1);}}[_0x4c996d(0x1f0)](_0x6a7a5b){const _0x3e183f=_0x4c996d;return this[_0x3e183f(0x112)][_0x3e183f(0x4c9)](_0x2bcaa3,this[_0x3e183f(0x341)],this[_0x3e183f(0x462)],null,[],this[_0x3e183f(0x469)],_0x6a7a5b);}[_0x4c996d(0x212)](){const _0x5c8340=_0x4c996d;throw new Error(_0x5c8340(0x4b5));}['onRemoteRej'](){const _0x3ad550=_0x4c996d;throw new Error(_0x3ad550(0x3eb));}['toggleOffline'](){const _0x881b5c=_0x4c996d;return this[_0x881b5c(0x112)]['createInstance'](_0x1db007,this[_0x881b5c(0x341)],this[_0x881b5c(0x462)],null,[],this[_0x881b5c(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x418)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c996d(0x1d4)](){const _0x5d485a=_0x4c996d,_0x2a1fa0=this[_0x5d485a(0x30a)]['getCurrentRevOfUnit'](this[_0x5d485a(0x341)]);return this[_0x5d485a(0x469)][_0x5d485a(0x26b)]({'from':_0x2a1fa0,'to':0x0}),this[_0x5d485a(0x112)]['createInstance'](_0x434c0b,this['unitID'],this[_0x5d485a(0x462)],null,[],null,[],this['_handler']);}};_0x2a5340=_0x453fc0([_0x328c3d(0x3,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x4,_0x229428['Inject'](_0x326761['LocalCacheService'])),_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x6,_0x229428['IUndoRedoService']),_0x328c3d(0x7,_0x229428['ICommandService']),_0x328c3d(0x8,_0x229428['ILogService']),_0x328c3d(0x9,_0x16a1a7[_0x4c996d(0x2f5)])],_0x2a5340);let _0x30be2d=class extends _0x1715f6{constructor(_0x11ba14,_0x13c1e7,_0x1566a5,_0x4bd5d2,_0x18f7be,_0x5146b0,_0x4be3fa,_0x537897,_0x5f1675,_0x3cc68a,_0x255af7,_0x5ad489,_0x182e6e,_0x45f663){const _0x3495fd=_0x4c996d;super(_0x11ba14,_0x13c1e7,null,_0x1566a5,_0x4bd5d2,_0x3cc68a,_0x45f663,_0x5146b0,_0x4be3fa),_0xb4d35(this,_0x3495fd(0x32e),'pending'),_0xb4d35(this,_0x3495fd(0x467),null),_0xb4d35(this,_0x3495fd(0x377),null),(this[_0x3495fd(0x112)]=_0x18f7be,this[_0x3495fd(0x29f)]=_0x537897,this[_0x3495fd(0x1e2)]=_0x5f1675,this[_0x3495fd(0x27a)]=_0x255af7,this[_0x3495fd(0x49e)]=_0x5ad489,this[_0x3495fd(0x456)]=_0x182e6e);}['appendMutation'](_0xc5ff2a){return this['_pendingMutations']['push'](_0xc5ff2a),this['_updateLocalCache'](),this;}[_0x4c996d(0x4ce)](_0x2e8d34){const _0x2a6baa=_0x4c996d;if(this['_checkMissing'](_0x2e8d34))return this[_0x2a6baa(0x4a8)](),this[_0x2a6baa(0x112)]['createInstance'](_0x434c0b,this['unitID'],this[_0x2a6baa(0x462)],null,this[_0x2a6baa(0x105)],null,[_0x2e8d34],this[_0x2a6baa(0x469)]);try{const _0x51962c=this['_transformService']['transformMutationsWithChangeset'](_0x2e8d34,this[_0x2a6baa(0x105)]);if(_0x16a1a7['isTransformMutationsWithChangesetSuccess'](_0x51962c)){const {c1Prime:_0xcfbe57,m2Prime:_0x240d7d}=_0x51962c;this['_executeRemoteChangeset'](_0xcfbe57);const _0x814153=this[_0x2a6baa(0x112)][_0x2a6baa(0x4c9)](_0x30be2d,this[_0x2a6baa(0x341)],this[_0x2a6baa(0x462)],_0x240d7d,this[_0x2a6baa(0x469)]);return this[_0x2a6baa(0x4a8)](),_0x814153['_schedule'](this['_scheduleTimestamp']?Math[_0x2a6baa(0x11e)](0x0,new Date()[_0x2a6baa(0x209)]()-this['_scheduleTimestamp']):this[_0x2a6baa(0x31d)]()),_0x814153;}throw _0x51962c['error'];}catch(_0x297d11){return this[_0x2a6baa(0x1e2)][_0x2a6baa(0x28e)](_0x297d11),this['_onConflict'](!0x1);}}[_0x4c996d(0x212)](){const _0x1cf676=_0x4c996d;throw new Error(_0x1cf676(0x118));}[_0x4c996d(0x2ec)](){const _0x107a6d=_0x4c996d;throw new Error(_0x107a6d(0x468));}['toggleOffline'](){const _0x5018c0=_0x4c996d;return this[_0x5018c0(0x4a8)](),this[_0x5018c0(0x112)][_0x5018c0(0x4c9)](_0x1db007,this[_0x5018c0(0x341)],this[_0x5018c0(0x462)],null,this['_pendingMutations'],this['_handler']);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x44c)](_0x49b437){const _0x39a401=_0x4c996d,_0x1cb71a=_0x49b437!=null?_0x49b437:this[_0x39a401(0x31d)]();this['_scheduleTimestamp']=new Date()[_0x39a401(0x209)](),this['_sendingTimer']=window[_0x39a401(0x215)](()=>{const _0x5ed7e0=_0x39a401;this[_0x5ed7e0(0x4a8)]();let _0x1b5c94=null;switch(this[_0x5ed7e0(0x462)]){case _0x367a98[_0x5ed7e0(0x11a)]:{_0x1b5c94=_0x5e8224(this['_pendingMutations'],this['unitID'],this[_0x5ed7e0(0x456)],this[_0x5ed7e0(0x30a)],this['_memberService']);break;}case _0x367a98[_0x5ed7e0(0x4b2)]:{this[_0x5ed7e0(0x105)]['every'](_0xc9a24=>_0xc9a24['id']===_0xf2d66e[_0x5ed7e0(0x1f3)]['id'])?_0x1b5c94=_0x283c9b(this[_0x5ed7e0(0x105)],this[_0x5ed7e0(0x341)],this['_univerInstanceService'],this[_0x5ed7e0(0x30a)],this[_0x5ed7e0(0x29f)]):_0x1b5c94=_0x5e8224(this[_0x5ed7e0(0x105)],this['unitID'],this[_0x5ed7e0(0x456)],this[_0x5ed7e0(0x30a)],this[_0x5ed7e0(0x29f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x5ed7e0(0x20c));}const {changeset:_0x48a6c7,pendingMutations:_0x17a0c9}=_0x1b5c94;this[_0x5ed7e0(0x469)]['onSendChangeset'](_0x48a6c7);const _0x4c9ac3=_0x17a0c9['length']?this[_0x5ed7e0(0x112)]['createInstance'](_0x4b9ebc,this[_0x5ed7e0(0x341)],this[_0x5ed7e0(0x462)],_0x48a6c7,_0x17a0c9,this[_0x5ed7e0(0x469)]):this[_0x5ed7e0(0x112)]['createInstance'](_0x1826c3,this[_0x5ed7e0(0x341)],this['type'],_0x48a6c7,this['_handler']);_0x4c9ac3[_0x5ed7e0(0x324)](),this[_0x5ed7e0(0x469)]['onStateChange'](this,_0x4c9ac3);},_0x1cb71a);}['_getSendChangesetTimeout'](){const _0x313b8d=_0x4c996d;var _0xfdc9d0;const _0x7e0be3=this[_0x313b8d(0x27a)][_0x313b8d(0x2d8)](_0x4dd3a7);return(_0xfdc9d0=_0x7e0be3==null?void 0x0:_0x7e0be3[_0x313b8d(0x449)])!=null?_0xfdc9d0:0x7d0;}[_0x4c996d(0x418)](){const _0x55cba2=_0x4c996d;throw new Error(_0x55cba2(0x2fc));}[_0x4c996d(0x4a8)](){const _0x4d560c=_0x4c996d;this[_0x4d560c(0x377)]!=null&&(clearTimeout(this[_0x4d560c(0x377)]),this[_0x4d560c(0x377)]=null);}[_0x4c996d(0x1f0)](_0x481583){const _0x53de3e=_0x4c996d;return this[_0x53de3e(0x4a8)](),this['_injector']['createInstance'](_0x2bcaa3,this['unitID'],this[_0x53de3e(0x462)],null,this[_0x53de3e(0x105)],this[_0x53de3e(0x469)],_0x481583);}};_0x30be2d=_0x453fc0([_0x328c3d(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x5,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x6,_0x229428['Inject'](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x7,_0x229428['Inject'](_0x4090c9)),_0x328c3d(0x8,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0xa,_0x229428['IConfigService']),_0x328c3d(0xb,_0x16a1a7['ITransformService']),_0x328c3d(0xc,_0x229428['IUniverInstanceService']),_0x328c3d(0xd,_0x229428[_0x4c996d(0x1dc)])],_0x30be2d);let _0x1826c3=class extends _0x1715f6{constructor(_0x28c349,_0x1b0eea,_0x2f5c6d,_0x30b9bf,_0x1bb57e,_0x5df39f,_0x199a63,_0x4cdd23,_0x25b606,_0x1c046f,_0x467fe5){const _0x4db8fa=_0x4c996d;super(_0x28c349,_0x1b0eea,_0x2f5c6d,[],_0x30b9bf,_0x4cdd23,_0x467fe5,_0x5df39f,_0x199a63),_0xb4d35(this,'status',_0x4db8fa(0x3a1)),(this[_0x4db8fa(0x112)]=_0x1bb57e,this['_logService']=_0x25b606,this['_transformService']=_0x1c046f);}['appendMutation'](_0x5d146c){const _0x4ed634=_0x4c996d,_0x40da68=this[_0x4ed634(0x112)]['createInstance'](_0x4b9ebc,this[_0x4ed634(0x341)],this[_0x4ed634(0x462)],this['_awaitingChangeset'],[_0x5d146c],this[_0x4ed634(0x469)]);return _0x40da68['_updateLocalCache'](),_0x40da68;}['onRemoteChangeset'](_0x3e6eef){const _0x2140de=_0x4c996d;if(this[_0x2140de(0x329)](_0x3e6eef))return this[_0x2140de(0x112)][_0x2140de(0x4c9)](_0x434c0b,this[_0x2140de(0x341)],this['type'],this['_awaitingChangeset'],[],null,[_0x3e6eef],this[_0x2140de(0x469)]);try{const _0x20df93=this['_transformService'][_0x2140de(0x2c7)]([_0x3e6eef],[this[_0x2140de(0x1c5)]],!0x1);if(_0x16a1a7['isTransformChangesetsSuccess'](_0x20df93)){const {c1Prime:_0x35c64f,c2Prime:_0x4c5d27}=_0x20df93;this[_0x2140de(0x486)](_0x35c64f[0x0]),_0x4c5d27[0x0][_0x2140de(0x29b)]=this[_0x2140de(0x12a)]();const _0x325cf1=this[_0x2140de(0x112)]['createInstance'](_0x1826c3,this[_0x2140de(0x341)],this[_0x2140de(0x462)],_0x4c5d27[0x0],this[_0x2140de(0x469)]);return _0x325cf1['_updateLocalCache'](),_0x325cf1;}return this[_0x2140de(0x1f0)](!0x1);}catch(_0x37ffd5){return this['_logService'][_0x2140de(0x28e)](_0x37ffd5),this[_0x2140de(0x1f0)](!0x1);}}[_0x4c996d(0x212)](_0x49e9bc){const _0x3545e0=_0x4c996d,_0x1cf2ce=this[_0x3545e0(0x30a)][_0x3545e0(0x33b)](this[_0x3545e0(0x341)]);if(_0x49e9bc[_0x3545e0(0x208)]<_0x1cf2ce-0x1)return this;if(this[_0x3545e0(0x329)](_0x49e9bc))return this[_0x3545e0(0x112)][_0x3545e0(0x4c9)](_0x434c0b,this['unitID'],this[_0x3545e0(0x462)],null,[],this[_0x3545e0(0x1c5)],[],this[_0x3545e0(0x469)]);this['_incrementRevisionNumber']();const _0x4fa82b=this[_0x3545e0(0x112)][_0x3545e0(0x4c9)](_0x2a5340,this[_0x3545e0(0x341)],this[_0x3545e0(0x462)],this[_0x3545e0(0x469)]);return _0x4fa82b['_updateLocalCache'](),_0x4fa82b;}[_0x4c996d(0x2ec)](_0x49a638){const _0x1f2d59=_0x4c996d;return this['_onConflict'](!!(_0x49a638!=null&&_0x49a638[_0x1f2d59(0x40c)]));}[_0x4c996d(0xfc)](){const _0xd74b10=_0x4c996d;return this[_0xd74b10(0x112)][_0xd74b10(0x4c9)](_0x1db007,this[_0xd74b10(0x341)],this[_0xd74b10(0x462)],this[_0xd74b10(0x1c5)],[],this[_0xd74b10(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x418)](){const _0x5e27bd=_0x4c996d;this[_0x5e27bd(0x469)][_0x5e27bd(0x349)](this[_0x5e27bd(0x1c5)]);}[_0x4c996d(0x1f0)](_0x32acd4){const _0x5087d8=_0x4c996d;return this[_0x5087d8(0x112)][_0x5087d8(0x4c9)](_0x2bcaa3,this[_0x5087d8(0x341)],this[_0x5087d8(0x462)],this[_0x5087d8(0x1c5)],[],this[_0x5087d8(0x469)],_0x32acd4);}};_0x1826c3=_0x453fc0([_0x328c3d(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x8,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0x9,_0x16a1a7[_0x4c996d(0x2f5)]),_0x328c3d(0xa,_0x229428['IUndoRedoService'])],_0x1826c3);let _0x4b9ebc=class extends _0x1715f6{constructor(_0x3272fe,_0x89b330,_0x43472b,_0x50f3b0,_0x151967,_0x3c4dac,_0x276762,_0x219c0f,_0x16cd47,_0x202f23,_0x5150e9,_0x326048){const _0x26f9da=_0x4c996d;super(_0x3272fe,_0x89b330,_0x43472b,_0x50f3b0,_0x151967,_0x16cd47,_0x326048,_0x276762,_0x219c0f),_0xb4d35(this,'status',_0x26f9da(0x2ad)),(this['_injector']=_0x3c4dac,this[_0x26f9da(0x1e2)]=_0x202f23,this[_0x26f9da(0x49e)]=_0x5150e9);}[_0x4c996d(0x1e8)](_0x2971df){const _0x8c9f69=_0x4c996d;return this[_0x8c9f69(0x105)]['push'](_0x2971df),this;}[_0x4c996d(0x4ce)](_0x1804e7){const _0x5a5f99=_0x4c996d;if(this[_0x5a5f99(0x329)](_0x1804e7))return this['_injector'][_0x5a5f99(0x4c9)](_0x434c0b,this[_0x5a5f99(0x341)],this['type'],this[_0x5a5f99(0x1c5)],this['_pendingMutations'],null,[_0x1804e7],this[_0x5a5f99(0x469)]);try{const _0x2ac28e=this['_transformService'][_0x5a5f99(0x2c7)]([_0x1804e7],[this[_0x5a5f99(0x1c5)]],!0x1);if(_0x16a1a7[_0x5a5f99(0x483)](_0x2ac28e)){const {c1Prime:_0x2a21f4,c2Prime:_0x3c0ea4}=_0x2ac28e,_0x5aec19=this[_0x5a5f99(0x49e)][_0x5a5f99(0x4a0)](_0x2a21f4[0x0],this[_0x5a5f99(0x105)]);if(_0x16a1a7[_0x5a5f99(0x391)](_0x5aec19)){const {c1Prime:_0x26fabc,m2Prime:_0x130a5d}=_0x5aec19;return this[_0x5a5f99(0x486)](_0x26fabc),_0x3c0ea4[0x0][_0x5a5f99(0x29b)]=this[_0x5a5f99(0x12a)](),this['_injector'][_0x5a5f99(0x4c9)](_0x4b9ebc,this['unitID'],this[_0x5a5f99(0x462)],_0x3c0ea4[0x0],_0x130a5d,this['_handler']);}throw _0x5aec19['error'];}throw _0x2ac28e[_0x5a5f99(0x28e)];}catch(_0xa0e657){return this[_0x5a5f99(0x1e2)][_0x5a5f99(0x28e)](_0xa0e657),this[_0x5a5f99(0x1f0)](!0x1);}}[_0x4c996d(0x212)](_0xb7efb5){const _0x487f4a=_0x4c996d;if(this[_0x487f4a(0x329)](_0xb7efb5))return this[_0x487f4a(0x112)][_0x487f4a(0x4c9)](_0x434c0b,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x487f4a(0x1c5)],[],this[_0x487f4a(0x469)]);this[_0x487f4a(0x4dc)]();const _0xaeec0e=this[_0x487f4a(0x112)]['createInstance'](_0x30be2d,this[_0x487f4a(0x341)],this['type'],this['_pendingMutations'],this[_0x487f4a(0x469)]);return _0xaeec0e[_0x487f4a(0x44c)](),_0xaeec0e[_0x487f4a(0x324)](),_0xaeec0e;}['onRemoteRej'](_0x1be4e7){const _0x15f489=_0x4c996d;return this['_onConflict'](!!(_0x1be4e7!=null&&_0x1be4e7[_0x15f489(0x40c)]));}[_0x4c996d(0xfc)](){const _0x5ba2cb=_0x4c996d;return this['_injector']['createInstance'](_0x1db007,this['unitID'],this[_0x5ba2cb(0x462)],this[_0x5ba2cb(0x1c5)],this[_0x5ba2cb(0x105)],this['_handler']);}[_0x4c996d(0x106)](){return this;}['resend'](){const _0x96bed0=_0x4c996d;this['_handler']['onSendChangeset'](this[_0x96bed0(0x1c5)]);}['_onConflict'](_0x46e1c1){const _0xd4578c=_0x4c996d;return this[_0xd4578c(0x112)]['createInstance'](_0x2bcaa3,this[_0xd4578c(0x341)],this[_0xd4578c(0x462)],null,this[_0xd4578c(0x105)],this[_0xd4578c(0x469)],_0x46e1c1);}};_0x4b9ebc=_0x453fc0([_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x6,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x9,_0x229428['ILogService']),_0x328c3d(0xa,_0x16a1a7[_0x4c996d(0x2f5)]),_0x328c3d(0xb,_0x229428[_0x4c996d(0x1dc)])],_0x4b9ebc);let _0x2bcaa3=class extends _0x1715f6{constructor(_0x21dc02,_0x3b2852,_0x3e4127,_0x533201,_0xab24b8,_0x18e089=!0x1,_0xfd2cfb,_0x2ada2d,_0xaef31c,_0x2434df,_0x3e18f5,_0x348038,_0x4137bc){const _0x2c36c3=_0x4c996d;super(_0x21dc02,_0x3b2852,_0x3e4127,_0x533201,_0xab24b8,_0x2ada2d,_0xaef31c,_0x3e18f5,_0x2434df),_0xb4d35(this,_0x2c36c3(0x32e),_0x2c36c3(0x2ce)),(this[_0x2c36c3(0x136)]=_0x18e089,this[_0x2c36c3(0x300)]=_0xfd2cfb,this[_0x2c36c3(0x1ca)]=_0x348038,this['_notificationService']=_0x4137bc,this[_0x2c36c3(0xe3)](),this['_clearLocalCache'](),this[_0x2c36c3(0x104)]());}[_0x4c996d(0x1e8)](){return this;}[_0x4c996d(0x4ce)](){return this;}['onRemoteAck'](){return this;}[_0x4c996d(0x2ec)](){return this;}[_0x4c996d(0xfc)](){return this;}['toggleOnline'](){return this;}[_0x4c996d(0x418)](){const _0x30e994=_0x4c996d;throw new Error(_0x30e994(0x332));}[_0x4c996d(0x35f)](){const _0x23caa9=_0x4c996d;this['_localCacheService'][_0x23caa9(0xd0)](this[_0x23caa9(0x341)],this[_0x23caa9(0x462)],null,[]);}[_0x4c996d(0xe3)](){const _0x1769be=_0x4c996d;this[_0x1769be(0x136)]?this['_notificationService'][_0x1769be(0x1d9)]({'title':this['_localeService']['t'](_0x1769be(0x32b)),'content':this[_0x1769be(0x1ca)]['t'](_0x1769be(0xd4)),'type':_0x1769be(0x28e),'duration':0x0}):this[_0x1769be(0x229)][_0x1769be(0x1d9)]({'title':this[_0x1769be(0x1ca)]['t']('conflict.title'),'content':this[_0x1769be(0x1ca)]['t'](_0x1769be(0x234)),'type':_0x1769be(0x28e),'duration':0x0});}[_0x4c996d(0x104)](){const _0x2a9c5a=_0x4c996d;this[_0x2a9c5a(0x300)][_0x2a9c5a(0x30b)](new _0x4118a6[(_0x2a9c5a(0x4a7))](this[_0x2a9c5a(0x341)])['id'],!0x1);}};_0x2bcaa3=_0x453fc0([_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428['IPermissionService'])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1dc)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0xa,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0xb,_0x229428['Inject'](_0x229428[_0x4c996d(0x23a)])),_0x328c3d(0xc,_0x5d918d[_0x4c996d(0x282)])],_0x2bcaa3);let _0x1db007=class extends _0x1715f6{constructor(_0x41f4c2,_0xaaf2e7,_0x58bc47,_0x8d07e0,_0x50582f,_0x3bd2e6,_0x2fc630,_0x1b5cae,_0x42af1e,_0x3f9daa){const _0x111e6c=_0x4c996d;super(_0x41f4c2,_0xaaf2e7,_0x58bc47,_0x8d07e0,_0x50582f,_0x42af1e,_0x3f9daa,_0x2fc630,_0x1b5cae),_0xb4d35(this,'status',_0x111e6c(0x13a)),this['_injector']=_0x3bd2e6;}[_0x4c996d(0x1e8)](_0x404697){return this['_pendingMutations']['push'](_0x404697),this['_updateLocalCache'](),this;}[_0x4c996d(0x4ce)](_0x4b9129){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4e02fc=_0x4c996d;throw new Error(_0x4e02fc(0xd3));}[_0x4c996d(0x2ec)](){const _0x113a23=_0x4c996d;throw new Error(_0x113a23(0x331));}[_0x4c996d(0xfc)](){return this;}[_0x4c996d(0x106)](){const _0x5ac478=_0x4c996d,{_injector:_0x5da006,_pendingMutations:_0x4f087c,_awaitingChangeset:_0x3192c2,unitID:_0x5d7695,_handler:_0x591632,type:_0x47d2b8}=this,_0x1e7cd3=_0x3554cc(_0x5da006,_0x5d7695,_0x47d2b8,_0x3192c2,_0x4f087c,_0x591632);return _0x1e7cd3 instanceof _0x30be2d?_0x1e7cd3[_0x5ac478(0x44c)]():(_0x1e7cd3 instanceof _0x4b9ebc||_0x1e7cd3 instanceof _0x1826c3)&&_0x1e7cd3['resend'](),_0x1e7cd3;}[_0x4c996d(0x418)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x1db007=_0x453fc0([_0x328c3d(0x5,_0x229428['Inject'](_0x229428['Injector'])),_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x16a1a7['RevisionService'])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x1dc)])],_0x1db007);let _0x434c0b=class extends _0x1715f6{constructor(_0x3f7767,_0x5ab9fc,_0xcf5bd8,_0x2edafb,_0x3769fb,_0x386965,_0x45279b,_0x2b5c18,_0x3cde69,_0x114f6d,_0x3476e9,_0x118c7b,_0x64fc69,_0x5572a6){const _0x1aa57b=_0x4c996d;super(_0x3f7767,_0x5ab9fc,_0xcf5bd8,_0x2edafb,_0x45279b,_0x118c7b,_0x64fc69,_0x3cde69,_0x114f6d),_0xb4d35(this,'status','fetch_missing'),(this[_0x1aa57b(0x42e)]=_0x3769fb,this[_0x1aa57b(0x365)]=_0x386965,this[_0x1aa57b(0x112)]=_0x2b5c18,this[_0x1aa57b(0x1e2)]=_0x3476e9,this[_0x1aa57b(0x49e)]=_0x5572a6);}['onMissedChangesetFetched'](_0x3e8f93){const _0x2d3b8b=_0x4c996d;try{const _0x799cff=[..._0x3e8f93,...this[_0x2d3b8b(0x365)]],_0x2138c6=[this[_0x2d3b8b(0x1c5)]||this['_acknowledgedAwaitingChangeset']][_0x2d3b8b(0x232)](_0xee889f=>!!_0xee889f);let _0x28cbdd,_0x3bf686;if(_0x2138c6['length']){const _0x313cd6=this[_0x2d3b8b(0x49e)][_0x2d3b8b(0x2c7)](_0x799cff,_0x2138c6,!0x1);if(!_0x16a1a7[_0x2d3b8b(0x483)](_0x313cd6))throw _0x313cd6[_0x2d3b8b(0x28e)];_0x28cbdd=_0x313cd6[_0x2d3b8b(0x386)],_0x3bf686=_0x313cd6[_0x2d3b8b(0x14e)];}else _0x28cbdd=_0x799cff,_0x3bf686=[];let _0x4651a2=this[_0x2d3b8b(0x105)];_0x28cbdd['forEach'](_0x2b1784=>{const _0x3ae434=_0x2d3b8b;let _0x21b6fd;if(_0x4651a2['length']){const _0x361d1a=this[_0x3ae434(0x49e)][_0x3ae434(0x4a0)](_0x2b1784,_0x4651a2);if(!_0x16a1a7[_0x3ae434(0x391)](_0x361d1a))throw _0x361d1a[_0x3ae434(0x28e)];_0x21b6fd=_0x361d1a[_0x3ae434(0x386)],_0x4651a2=_0x361d1a[_0x3ae434(0x1e0)];}else _0x21b6fd=_0x2b1784;this['_executeRemoteChangeset'](_0x21b6fd);}),this[_0x2d3b8b(0x42e)]&&this[_0x2d3b8b(0x4dc)](),this[_0x2d3b8b(0x1c5)]&&_0x3bf686[_0x2d3b8b(0x260)]&&(_0x3bf686[0x0][_0x2d3b8b(0x29b)]=this[_0x2d3b8b(0x12a)]());let _0x4b3d54;if(this['_awaitingChangeset']&&_0x4651a2['length']!==0x0)_0x4b3d54=this['_injector'][_0x2d3b8b(0x4c9)](_0x4b9ebc,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x3bf686[0x0],_0x4651a2,this[_0x2d3b8b(0x469)]);else{if(this[_0x2d3b8b(0x1c5)]&&_0x4651a2[_0x2d3b8b(0x260)]===0x0)_0x3bf686[0x0][_0x2d3b8b(0x29b)]=this['_getCurrentRevision'](),_0x4b3d54=this[_0x2d3b8b(0x112)]['createInstance'](_0x1826c3,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x3bf686[0x0],this['_handler']);else{if(_0x4651a2['length']!==0x0){const _0x5dbb7f=this[_0x2d3b8b(0x112)][_0x2d3b8b(0x4c9)](_0x30be2d,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x4651a2,this[_0x2d3b8b(0x469)]);_0x5dbb7f[_0x2d3b8b(0x44c)](),_0x4b3d54=_0x5dbb7f;}else _0x4b3d54=this[_0x2d3b8b(0x112)]['createInstance'](_0x2a5340,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],this['_handler']);}}return _0x4b3d54['_updateLocalCache'](),_0x4b3d54;}catch(_0x2c31d4){return this['_logService']['error'](_0x2d3b8b(0x3a0),_0x2d3b8b(0x233),_0x2c31d4),this[_0x2d3b8b(0x112)][_0x2d3b8b(0x4c9)](_0x2bcaa3,this['unitID'],this['type'],this[_0x2d3b8b(0x1c5)],this[_0x2d3b8b(0x105)],this['_handler'],!0x1);}}[_0x4c996d(0x418)](){const _0x1d68fa=_0x4c996d;throw new Error(_0x1d68fa(0x2d4));}[_0x4c996d(0x1e8)](_0x49a819){const _0x3552e5=_0x4c996d;return this[_0x3552e5(0x105)][_0x3552e5(0x2be)](_0x49a819),this;}[_0x4c996d(0x4ce)](_0x141f71){const _0x4cfbd9=_0x4c996d;return this[_0x4cfbd9(0x365)][_0x4cfbd9(0x2be)](_0x141f71),this;}[_0x4c996d(0x212)](_0x1befde){const _0x4173ee=_0x4c996d;if(this[_0x4173ee(0x1c5)])return this[_0x4173ee(0x42e)]=this[_0x4173ee(0x1c5)],this[_0x4173ee(0x1c5)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c996d(0x2ec)](_0x484bc8){const _0x485010=_0x4c996d;return this['_onConflict'](!!(_0x484bc8!=null&&_0x484bc8[_0x485010(0x40c)]));}[_0x4c996d(0xfc)](){const _0x3a9f5d=_0x4c996d;return this[_0x3a9f5d(0x112)]['createInstance'](_0x1db007,this['unitID'],this[_0x3a9f5d(0x462)],this[_0x3a9f5d(0x1c5)],this[_0x3a9f5d(0x105)],this[_0x3a9f5d(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x1f0)](_0x3b4bb9){const _0x4aff50=_0x4c996d;return this[_0x4aff50(0x112)][_0x4aff50(0x4c9)](_0x2bcaa3,this['unitID'],this[_0x4aff50(0x462)],this[_0x4aff50(0x1c5)],this['_pendingMutations'],this['_handler'],_0x3b4bb9);}};_0x434c0b=_0x453fc0([_0x328c3d(0x7,_0x229428['Inject'](_0x229428['Injector'])),_0x328c3d(0x8,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x9,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0xa,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0xb,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0xc,_0x229428['IUndoRedoService']),_0x328c3d(0xd,_0x16a1a7[_0x4c996d(0x2f5)])],_0x434c0b);function _0x3554cc(_0x266995,_0x2e74f9,_0x27e9df,_0x172f5f,_0x391437,_0x5b3f41){const _0x5543f3=_0x4c996d;return _0x172f5f&&_0x391437[_0x5543f3(0x260)]?_0x266995['createInstance'](_0x4b9ebc,_0x2e74f9,_0x27e9df,_0x172f5f,_0x391437,_0x5b3f41):_0x172f5f?_0x266995[_0x5543f3(0x4c9)](_0x1826c3,_0x2e74f9,_0x27e9df,_0x172f5f,_0x5b3f41):_0x391437[_0x5543f3(0x260)]?_0x266995['createInstance'](_0x30be2d,_0x2e74f9,_0x27e9df,_0x391437,_0x5b3f41):_0x266995[_0x5543f3(0x4c9)](_0x2a5340,_0x2e74f9,_0x27e9df,_0x5b3f41);}var _0x409f29=Object[_0x4c996d(0x287)],_0x133297=Object[_0x4c996d(0x16a)],_0x24abb4=(_0x11d714,_0x2549ef,_0x4a316c,_0x46d3d7)=>{const _0x3cf792=_0x4c996d;for(var _0x1c7a7f=_0x46d3d7>0x1?void 0x0:_0x46d3d7?_0x133297(_0x2549ef,_0x4a316c):_0x2549ef,_0x4c4e57=_0x11d714[_0x3cf792(0x260)]-0x1,_0x54d7c3;_0x4c4e57>=0x0;_0x4c4e57--)(_0x54d7c3=_0x11d714[_0x4c4e57])&&(_0x1c7a7f=(_0x46d3d7?_0x54d7c3(_0x2549ef,_0x4a316c,_0x1c7a7f):_0x54d7c3(_0x1c7a7f))||_0x1c7a7f);return _0x46d3d7&&_0x1c7a7f&&_0x409f29(_0x2549ef,_0x4a316c,_0x1c7a7f),_0x1c7a7f;},_0x33a37a=(_0x387e6e,_0x4d6d77)=>(_0x682698,_0xd16f3b)=>_0x4d6d77(_0x682698,_0xd16f3b,_0x387e6e);_0x326761[_0x4c996d(0x336)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x93f458,_0x443ef1,_0x39ee36,_0x3de603,_0x1bcbd8,_0x4140e9,_0x3d6d72,_0x59a0f6,_0xe51301,_0x358394,_0x4fb92c,_0x5119cd,_0x46c852){const _0x344d25=_0x4c996d;super(),_0xb4d35(this,_0x344d25(0x4c7),new _0x4a5f0c['BehaviorSubject'](null)),_0xb4d35(this,'state$',this[_0x344d25(0x4c7)][_0x344d25(0x228)]()),_0xb4d35(this,_0x344d25(0x478)),_0xb4d35(this,_0x344d25(0x27d),!0x1),_0xb4d35(this,_0x344d25(0xd7),this[_0x344d25(0x21a)][_0x344d25(0x2b6)](_0x4a5f0c[_0x344d25(0x3fb)](_0x24432e=>_0x24432e?_0x24432e[_0x344d25(0x32e)]:_0x4b8cf1[_0x344d25(0x28b)]),_0x4a5f0c['shareReplay'](0x1))),_0xb4d35(this,'_transitionLocked',!0x1),_0xb4d35(this,_0x344d25(0x45d),[]),(this[_0x344d25(0x341)]=_0x93f458,this[_0x344d25(0x3fd)]=_0x443ef1,this[_0x344d25(0x48b)]=_0x39ee36,this[_0x344d25(0x112)]=_0x3de603,this[_0x344d25(0x18f)]=_0x1bcbd8,this[_0x344d25(0x1d8)]=_0x4140e9,this[_0x344d25(0x1ca)]=_0x3d6d72,this['_revisionService']=_0x59a0f6,this['_logService']=_0xe51301,this[_0x344d25(0x369)]=_0x358394,this[_0x344d25(0x485)]=_0x4fb92c,this[_0x344d25(0x300)]=_0x5119cd,this['_singleActiveUnitService']=_0x46c852);}get[_0x4c996d(0x1ce)](){const _0x5c1688=_0x4c996d;return this[_0x5c1688(0x478)];}async[_0x4c996d(0x412)](){const _0x831040=_0x4c996d;if(this[_0x831040(0x1ce)])throw new Error(_0x831040(0x35c));await this[_0x831040(0x360)]();}[_0x4c996d(0x429)](){const _0x493582=_0x4c996d;return this[_0x493582(0x27d)]=!0x0,_0x229428['toDisposable'](()=>{const _0x41453b=_0x493582;this[_0x41453b(0x27d)]=!0x1,this[_0x41453b(0x375)]();});}[_0x4c996d(0x434)](_0x27ce30){const _0x552da8=_0x4c996d;this[_0x552da8(0x478)]=_0x27ce30,this['_state$'][_0x552da8(0x256)](_0x27ce30);}async['_init'](){const _0x55d848=_0x4c996d;var _0x142b55;this[_0x55d848(0x434)](await this[_0x55d848(0x47c)]()),this['_singleActiveUnitService']&&((_0x142b55=this[_0x55d848(0x2cc)])==null||_0x142b55[_0x55d848(0x278)](this[_0x55d848(0x341)]),this[_0x55d848(0x315)](this[_0x55d848(0x2cc)][_0x55d848(0x1ae)](this['unitID'])['subscribe'](_0x5909ef=>{const _0x36e347=_0x55d848;this[_0x36e347(0x1e2)][_0x36e347(0x2b9)](_0x36e347(0x42d),'editing\x20status\x20changed\x20to',_0x5909ef),_0x5909ef===_0x2eba97[_0x36e347(0x427)]?(this['_messageService']['show']({'content':this[_0x36e347(0x1ca)]['t']('collaboration.single-unit.warning'),'type':_0x71e3dd[_0x36e347(0x123)][_0x36e347(0x13d)]}),this[_0x36e347(0x300)][_0x36e347(0x30b)](new _0x4118a6['WorkbookEditablePermission'](this[_0x36e347(0x341)])['id'],!0x1)):this[_0x36e347(0x300)]['updatePermissionPoint'](new _0x4118a6[(_0x36e347(0x4a7))](this[_0x36e347(0x341)])['id'],!0x0);})));let _0xe8b263=!0x1;return this[_0x55d848(0x315)](this['session'][_0x55d848(0x3d1)]['subscribe'](_0x5f21e0=>{const _0x139152=_0x55d848;_0x5f21e0===_0x44beef['ONLINE']?this[_0x139152(0x400)](_0xe8b263):_0x5f21e0===_0x44beef[_0x139152(0x28b)]&&(_0xe8b263=!0x0,this[_0x139152(0x35b)]());})),this['disposeWithMe'](this['session'][_0x55d848(0x13f)][_0x55d848(0x451)](_0x8b835c=>{const _0x427d20=_0x55d848;try{switch(_0x8b835c[_0x427d20(0x1c0)]){case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x355)]:{this[_0x427d20(0x243)](_0x16a1a7['parseProtocolChangeset'](_0x8b835c[_0x427d20(0x223)]));break;}case _0x16a1a7['CollaborationEvent'][_0x427d20(0x39d)]:{this[_0x427d20(0x251)](_0x8b835c[_0x427d20(0x223)]);break;}case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x4d0)]:{this['_onRemoteRejected']();break;}case _0x16a1a7['CollaborationEvent'][_0x427d20(0x28f)]:{this[_0x427d20(0x12f)](_0x8b835c['data'][_0x427d20(0x48a)][_0x427d20(0x3fb)](_0x1323fe=>_0x16a1a7[_0x427d20(0xed)](_0x1323fe)));break;}case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x149)]:this[_0x427d20(0x206)]({'isPermissionRej':!0x0});}}catch(_0xaab703){throw console[_0x427d20(0x28e)]('Error\x20on\x20receiving\x20event',_0xaab703),_0xaab703;}})),this['_state'];}[_0x4c996d(0x45e)](){const _0x385631=_0x4c996d;this[_0x385631(0x3dd)]=!0x1;}[_0x4c996d(0x47f)](){const _0x153d57=_0x4c996d;if(this['_transitionLocked'])throw new Error(_0x153d57(0x2d3));this[_0x153d57(0x3dd)]=!0x0;}['_onLocalMutation'](_0x2860f9){const _0x170d78=_0x4c996d;this['_lockTransition'](),this[_0x170d78(0x434)](this[_0x170d78(0x478)][_0x170d78(0x1e8)](_0x2860f9)),this[_0x170d78(0x45e)]();}[_0x4c996d(0x243)](_0x42695a){const _0x47cae1=_0x4c996d;if(!(_0x42695a[_0x47cae1(0x208)]<=this[_0x47cae1(0x30a)][_0x47cae1(0x33b)](this[_0x47cae1(0x341)]))){if(this[_0x47cae1(0x27d)]){this[_0x47cae1(0x45d)]['push'](_0x42695a);return;}this[_0x47cae1(0x43b)](_0x42695a);}}[_0x4c996d(0x375)](){const _0x21ceed=_0x4c996d;this['_remoteChangesetQueue'][_0x21ceed(0x139)](_0x325559=>this[_0x21ceed(0x43b)](_0x325559)),this[_0x21ceed(0x45d)]=[];}['_applyRemoteChangeset'](_0x264f1f){const _0x354409=_0x4c996d,_0x50864c=this['_compressMutationService'][_0x354409(0x354)][_0x354409(0x33e)](this[_0x354409(0x1d8)][_0x354409(0x354)][_0x354409(0x117)]()[_0x354409(0x1b3)])(_0x264f1f[_0x354409(0x431)],null)||_0x264f1f['mutations'],_0x3347c9={..._0x264f1f,'mutations':_0x50864c};this[_0x354409(0x47f)](),this[_0x354409(0x434)](this[_0x354409(0x478)][_0x354409(0x4ce)](_0x3347c9)),this[_0x354409(0x45e)]();}[_0x4c996d(0x251)](_0x17d1b3){const _0x3f67ac=_0x4c996d;this[_0x3f67ac(0x47f)](),this[_0x3f67ac(0x434)](this['_state'][_0x3f67ac(0x212)](_0x17d1b3)),this[_0x3f67ac(0x45e)]();}['_onRemoteRejected'](_0x586a30){const _0x731912=_0x4c996d;this[_0x731912(0x47f)](),this[_0x731912(0x434)](this['_state'][_0x731912(0x2ec)](_0x586a30)),this[_0x731912(0x45e)]();}[_0x4c996d(0x12f)](_0x2bfc35){const _0x2332dc=_0x4c996d;if(!(this[_0x2332dc(0x478)]instanceof _0x434c0b))throw new TypeError(_0x2332dc(0x2c3));const _0xffb55a=_0x2bfc35[_0x2332dc(0x3fb)](_0x3df930=>{const _0x58a81b=_0x2332dc,_0x14b89c=this[_0x58a81b(0x1d8)]['interceptor'][_0x58a81b(0x33e)](this[_0x58a81b(0x1d8)][_0x58a81b(0x354)][_0x58a81b(0x117)]()[_0x58a81b(0x1b3)])(_0x3df930[_0x58a81b(0x431)],null)||_0x3df930['mutations'];return{..._0x3df930,'mutations':_0x14b89c};});this[_0x2332dc(0x47f)](),this[_0x2332dc(0x434)](this['_state'][_0x2332dc(0x310)](_0xffb55a)),this['_unlockTransition']();}[_0x4c996d(0x35b)](){const _0x451206=_0x4c996d;this[_0x451206(0x47f)](),this['_updateState'](this[_0x451206(0x478)][_0x451206(0xfc)]()),this[_0x451206(0x45e)]();}[_0x4c996d(0x400)](_0x3b516b=!0x1){const _0x238be6=_0x4c996d;this[_0x238be6(0x47f)](),this[_0x238be6(0x434)](this[_0x238be6(0x478)][_0x238be6(0x106)]()),this[_0x238be6(0x45e)]();const _0x5efa3e=this['_state'];_0x3b516b&&_0x5efa3e instanceof _0x2a5340&&(this[_0x238be6(0x47f)](),this[_0x238be6(0x434)](_0x5efa3e[_0x238be6(0x1d4)]()),this['_unlockTransition']());}async[_0x4c996d(0x47c)](){return new Promise(_0x17d334=>{const _0x254657=_0x59fd;this[_0x254657(0x3fd)][_0x254657(0x3d1)][_0x254657(0x2b6)](_0x4a5f0c['take'](0x1))[_0x254657(0x451)](async _0x3602bf=>{const _0x5aafc7=_0x254657;_0x17d334(await this[_0x5aafc7(0x4b6)](_0x3602bf===_0x44beef['ONLINE']));});});}[_0x4c996d(0x2d2)](){const _0xcd0208=_0x4c996d,_0x937cc6=this[_0xcd0208(0x341)];return{'onStateChange':(_0x39d4f4,_0x469309)=>{const _0x2a1d5b=_0xcd0208;if(_0x39d4f4!==this[_0x2a1d5b(0x478)])throw new Error(_0x2a1d5b(0x444)+_0x39d4f4[_0x2a1d5b(0x32e)]+'\x0aAfter:\x20'+_0x469309['status']+_0x2a1d5b(0x120)+this[_0x2a1d5b(0x478)][_0x2a1d5b(0x32e)]);this[_0x2a1d5b(0x434)](_0x469309);},'onSendChangeset':_0x293dd7=>{const _0x219346=_0xcd0208,_0x3573fd={'eventID':_0x16a1a7[_0x219346(0x15d)][_0x219346(0x37a)],'data':{'unitID':_0x293dd7['unitID'],'unitType':this['_type'],'changeset':_0x293dd7,'memberID':this['session']['getMemberID']()}};this['session']['send'](_0x3573fd,this[_0x219346(0x341)]);},'onMissingChangesets':({from:_0x5c1e56,to:_0x22cd9a})=>{const _0x298bb3=_0xcd0208;this[_0x298bb3(0x1e2)][_0x298bb3(0x2b9)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x5c1e56+'\x20to\x20'+_0x22cd9a);const _0x3e0d1b={'eventID':_0x16a1a7[_0x298bb3(0x15d)][_0x298bb3(0x15c)],'data':{'unitID':_0x937cc6,'unitType':this[_0x298bb3(0x48b)],'from':_0x5c1e56,'to':_0x22cd9a}};this['session'][_0x298bb3(0x38e)](_0x3e0d1b,this[_0x298bb3(0x341)]);}};}async['_createInitialStateImpl'](_0x3c6a90){const _0x4c25e7=_0x4c996d;var _0x34f9d3,_0x4d9e35;const _0x2d5b4c=await this[_0x4c25e7(0x18f)][_0x4c25e7(0x21b)](this[_0x4c25e7(0x341)]),_0x50cbae=(_0x34f9d3=_0x2d5b4c==null?void 0x0:_0x2d5b4c['mutations'])!=null?_0x34f9d3:[],_0x5e24ac=(_0x4d9e35=_0x2d5b4c==null?void 0x0:_0x2d5b4c[_0x4c25e7(0x31b)])!=null?_0x4d9e35:null,_0x2ef33f=this[_0x4c25e7(0x341)];try{this['_replayCachedMutations'](_0x5e24ac,_0x50cbae);}catch(_0x4e1962){this[_0x4c25e7(0x1e2)][_0x4c25e7(0x28e)](_0x4e1962);}const _0x157cf7=this[_0x4c25e7(0x2d2)]();if(_0x3c6a90){const _0x515927=_0x3554cc(this[_0x4c25e7(0x112)],_0x2ef33f,this['_type'],_0x5e24ac,_0x50cbae,_0x157cf7);return _0x515927 instanceof _0x30be2d?_0x515927['_schedule']():(_0x515927 instanceof _0x4b9ebc||_0x515927 instanceof _0x1826c3)&&_0x515927[_0x4c25e7(0x418)](),_0x515927;}return this[_0x4c25e7(0x112)][_0x4c25e7(0x4c9)](_0x1db007,_0x2ef33f,this[_0x4c25e7(0x48b)],_0x5e24ac,_0x50cbae,_0x157cf7);}[_0x4c996d(0x102)](_0x5c2493,_0x1dd2b4){const _0x53c4ea=_0x4c996d;var _0x27e86b,_0x5d6570;const _0x46aace=this[_0x53c4ea(0x1d8)][_0x53c4ea(0x354)][_0x53c4ea(0x33e)](this['_compressMutationService']['interceptor'][_0x53c4ea(0x117)]()[_0x53c4ea(0x1b3)]);(_0x27e86b=_0x46aace((_0x5c2493==null?void 0x0:_0x5c2493['mutations'])||[],null))==null||_0x27e86b[_0x53c4ea(0x139)](_0x582970=>this[_0x53c4ea(0x369)][_0x53c4ea(0x378)](_0x582970['id'],_0x582970[_0x53c4ea(0x1a3)])),(_0x5d6570=_0x46aace(_0x1dd2b4||[],null))==null||_0x5d6570['forEach'](_0x5c960d=>this[_0x53c4ea(0x369)]['executeCommand'](_0x5c960d['id'],_0x5c960d['params']));}},_0x326761[_0x4c996d(0x336)]=_0x24abb4([_0x33a37a(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x33a37a(0x4,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7['CompressMutationService'])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0x9,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xa,_0x5d918d[_0x4c996d(0x19e)]),_0x33a37a(0xb,_0x229428['IPermissionService']),_0x33a37a(0xc,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761[_0x4c996d(0x336)]),_0x326761[_0x4c996d(0x2d9)]=class extends _0x326761[_0x4c996d(0x336)]{constructor(_0x9a180f,_0x298f42,_0x5bd2d7,_0x40dcc4,_0x1dc963,_0x2a908c,_0x4c7961,_0x477cd3,_0x3f26ca,_0xe7357c,_0x1ca861,_0x221a37,_0x8d29a1,_0x1c291e,_0x48330a,_0x577954,_0x4984a9){const _0x50b8ee=_0x4c996d;super(_0x9a180f,_0x5bd2d7,_0x298f42,_0x40dcc4,_0x1dc963,_0x2a908c,_0x4c7961,_0x477cd3,_0x8d29a1,_0x1c291e,_0x48330a,_0x577954,_0x4984a9),this['unitID']=_0x9a180f,this[_0x50b8ee(0x462)]=_0x298f42,this['_docStateChangeManagerService']=_0x3f26ca,this[_0x50b8ee(0xd6)]=_0xe7357c,this[_0x50b8ee(0x2dd)]=_0x1ca861,this[_0x50b8ee(0x1bb)]=_0x221a37;}['_createHandler'](){const _0x2f07aa=_0x4c996d,_0x44b55a=super['_createHandler']();return _0x44b55a[_0x2f07aa(0x383)]=_0x51f8c5=>this[_0x2f07aa(0xd6)][_0x2f07aa(0x291)](_0x51f8c5),_0x44b55a['onTransformSelections']=_0x15b6b4=>this['_docTransformSelectionsService'][_0x2f07aa(0x18c)](_0x15b6b4),_0x44b55a['onSyncEditingCollabCursor']=_0x505063=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x505063),_0x44b55a['onTransformRemoteChangesetByIMECache']=_0x462d16=>this[_0x2f07aa(0xd6)][_0x2f07aa(0x499)](_0x462d16),_0x44b55a;}async['_init'](){const _0x2018ae=_0x4c996d,_0x20bed0=await super[_0x2018ae(0x360)]();return this[_0x2018ae(0x315)](this['_commandService'][_0x2018ae(0x4ac)]((_0x503b3d,_0x9173ea)=>{const _0x3e4918=_0x2018ae;if(_0x503b3d[_0x3e4918(0x462)]!==_0x229428[_0x3e4918(0x255)]['MUTATION']||_0x9173ea!=null&&_0x9173ea[_0x3e4918(0x1e5)]||_0x9173ea!=null&&_0x9173ea[_0x3e4918(0x3c4)])return;const _0x1184e2=_0x503b3d[_0x3e4918(0x1a3)];if((_0x1184e2==null?void 0x0:_0x1184e2['unitId'])!==this[_0x3e4918(0x341)])return;let _0x4047fb=_0x503b3d;if(_0x4047fb['id']===_0xf2d66e[_0x3e4918(0x1f3)]['id']){const _0x3ab4ba=_0x4047fb[_0x3e4918(0x1a3)];_0x4047fb={'id':_0xf2d66e[_0x3e4918(0x1f3)]['id'],'type':_0x229428[_0x3e4918(0x255)]['MUTATION'],'params':{'unitId':_0x3ab4ba[_0x3e4918(0x3a2)],'actions':_0x3ab4ba[_0x3e4918(0x294)],'textRanges':null}};}const _0x1307ec=this['_compressMutationService'][_0x3e4918(0x354)][_0x3e4918(0x33e)](this[_0x3e4918(0x1d8)][_0x3e4918(0x354)][_0x3e4918(0x117)]()[_0x3e4918(0x145)])([_0x4047fb],null)||[_0x4047fb];this[_0x3e4918(0x176)](_0x1307ec[0x0]);})),_0x20bed0;}},_0x326761['DocCollaborationEntity']=_0x24abb4([_0x33a37a(0x3,_0x229428['Inject'](_0x229428['Injector'])),_0x33a37a(0x4,_0x229428['Inject'](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1b9)])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428['Inject'](_0x585819[_0x4c996d(0x2ab)])),_0x33a37a(0x9,_0x229428[_0x4c996d(0x25c)](_0x2bdd5b)),_0x33a37a(0xa,_0x229428[_0x4c996d(0x25c)](_0x483ac7)),_0x33a37a(0xb,_0x229428[_0x4c996d(0x25c)](_0x4ef234)),_0x33a37a(0xc,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0xd,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xe,_0x5d918d['IMessageService']),_0x33a37a(0xf,_0x229428[_0x4c996d(0x4bb)]),_0x33a37a(0x10,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761['DocCollaborationEntity']),_0x326761['SheetCollaborationEntity']=class extends _0x326761[_0x4c996d(0x336)]{constructor(_0x4ce033,_0x2cb315,_0x5c0669,_0x2efd43,_0x362473,_0xec66b,_0x43fd1c,_0x252b28,_0x1b1e5d,_0x5c569d,_0x126ddb,_0x4833fc,_0x266b5a,_0x467c39){const _0x15b3c5=_0x4c996d;super(_0x4ce033,_0x5c0669,_0x2cb315,_0x2efd43,_0x362473,_0xec66b,_0x43fd1c,_0x252b28,_0x5c569d,_0x126ddb,_0x4833fc,_0x266b5a,_0x467c39),this['unitID']=_0x4ce033,this[_0x15b3c5(0x462)]=_0x2cb315,this[_0x15b3c5(0x281)]=_0x1b1e5d;}[_0x4c996d(0x2d2)](){const _0x62c193=_0x4c996d,_0x85270d=super[_0x62c193(0x2d2)]();return _0x85270d[_0x62c193(0x385)]=_0x1a5aac=>this['_sheetTransformSelectionsService'][_0x62c193(0x18c)](_0x1a5aac),_0x85270d;}async[_0x4c996d(0x360)](){const _0x3b344a=_0x4c996d,_0x4dd4a0=await super[_0x3b344a(0x360)]();return this[_0x3b344a(0x315)](this['_commandService'][_0x3b344a(0x4ac)]((_0x594544,_0x2c0f1f)=>{const _0x441aec=_0x3b344a;if(_0x594544[_0x441aec(0x462)]!==_0x229428[_0x441aec(0x255)]['MUTATION']||_0x2c0f1f!=null&&_0x2c0f1f['fromCollab']||_0x2c0f1f!=null&&_0x2c0f1f[_0x441aec(0x3c4)])return;const _0x16575b=_0x594544[_0x441aec(0x1a3)];if((_0x16575b==null?void 0x0:_0x16575b[_0x441aec(0x3a2)])!==this['unitID'])return;const _0x24c8e9=_0x594544,_0x2be90b=this[_0x441aec(0x1d8)]['interceptor'][_0x441aec(0x33e)](this[_0x441aec(0x1d8)][_0x441aec(0x354)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x24c8e9],null)||[_0x24c8e9];this[_0x441aec(0x176)](_0x2be90b[0x0]);})),_0x4dd4a0;}},_0x326761[_0x4c996d(0x2a2)]=_0x24abb4([_0x33a37a(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x33a37a(0x4,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428['Inject'](_0x16a1a7['CompressMutationService'])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428[_0x4c996d(0x25c)](_0x186ee5)),_0x33a37a(0x9,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0xa,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xb,_0x5d918d[_0x4c996d(0x19e)]),_0x33a37a(0xc,_0x229428[_0x4c996d(0x4bb)]),_0x33a37a(0xd,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761['SheetCollaborationEntity']);var _0x2ee4ef=Object[_0x4c996d(0x287)],_0x10188f=Object[_0x4c996d(0x16a)],_0x5cd611=(_0x448d0b,_0x1784c7,_0x14022a,_0x5971fc)=>{const _0x16076c=_0x4c996d;for(var _0x37e831=_0x5971fc>0x1?void 0x0:_0x5971fc?_0x10188f(_0x1784c7,_0x14022a):_0x1784c7,_0x3a3758=_0x448d0b[_0x16076c(0x260)]-0x1,_0x200fd2;_0x3a3758>=0x0;_0x3a3758--)(_0x200fd2=_0x448d0b[_0x3a3758])&&(_0x37e831=(_0x5971fc?_0x200fd2(_0x1784c7,_0x14022a,_0x37e831):_0x200fd2(_0x37e831))||_0x37e831);return _0x5971fc&&_0x37e831&&_0x2ee4ef(_0x1784c7,_0x14022a,_0x37e831),_0x37e831;},_0x43f14d=(_0x5244c2,_0x12ce29)=>(_0x88bf31,_0x276198)=>_0x12ce29(_0x88bf31,_0x276198,_0x5244c2);_0x326761[_0x4c996d(0x11d)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x2cd5f1,_0x30ec39,_0x2e9b28){const _0x462569=_0x4c996d;super(),_0xb4d35(this,'_entities',new Map()),_0xb4d35(this,_0x462569(0x44e),new _0x4a5f0c[(_0x462569(0x3a8))]()),(this[_0x462569(0x112)]=_0x2cd5f1,this[_0x462569(0xd5)]=_0x30ec39,this[_0x462569(0x456)]=_0x2e9b28,this[_0x462569(0x360)]());}[_0x4c996d(0x20a)](){const _0x42ad52=_0x4c996d;super[_0x42ad52(0x20a)](),this[_0x42ad52(0x140)][_0x42ad52(0x139)](_0x504b70=>_0x504b70[_0x42ad52(0x20a)]()),this[_0x42ad52(0x140)][_0x42ad52(0x34c)]();}[_0x4c996d(0x1b5)](_0x18d142){const _0x11c0e1=_0x4c996d;var _0x19031f;return(_0x19031f=this[_0x11c0e1(0x140)][_0x11c0e1(0x453)](_0x18d142))!=null?_0x19031f:null;}[_0x4c996d(0x3e9)](_0x1be252){const _0xd4d4f8=_0x4c996d,_0x15d98d=this[_0xd4d4f8(0x1b5)](_0x1be252);return _0x15d98d?_0x4a5f0c['of'](_0x15d98d):this[_0xd4d4f8(0x44e)]['pipe'](_0x2032d6[_0xd4d4f8(0x232)](_0x3c415b=>_0x3c415b[_0xd4d4f8(0x341)]===_0x1be252));}[_0x4c996d(0x360)](){const _0x49fa39=_0x4c996d;this[_0x49fa39(0x456)][_0x49fa39(0x493)](_0x229428[_0x49fa39(0x2b5)]['UNIVER_SHEET'])[_0x49fa39(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x49fa39(0x47b)]),_0x2032d6[_0x49fa39(0x36e)](0x10))['subscribe'](async _0x3f8875=>{const _0x47188f=_0x49fa39,_0x306b92=_0x3f8875[_0x47188f(0x40b)](),_0x20cf07=await this['_startCollaboration'](_0x306b92,_0x367a98[_0x47188f(0x11a)]);this[_0x47188f(0x140)]['set'](_0x306b92,_0x20cf07);}),this[_0x49fa39(0x456)][_0x49fa39(0x493)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x4b2)])[_0x49fa39(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x49fa39(0x47b)]),_0x2032d6['delay'](0x10))[_0x49fa39(0x2b6)](_0x2032d6['filter'](_0x130d9b=>!_0x130d9b[_0x49fa39(0x40b)]()[_0x49fa39(0x3f3)]('__')))[_0x49fa39(0x451)](async _0x4ec265=>{const _0x4b56dc=_0x49fa39,_0x2ffa15=_0x4ec265[_0x4b56dc(0x40b)](),_0x4f7032=await this[_0x4b56dc(0x213)](_0x2ffa15,_0x367a98[_0x4b56dc(0x4b2)]);this[_0x4b56dc(0x140)][_0x4b56dc(0x22e)](_0x2ffa15,_0x4f7032);}),_0x4a5f0c[_0x49fa39(0x49f)](this['_univerInstanceService'][_0x49fa39(0x3f5)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x11a)]),this[_0x49fa39(0x456)][_0x49fa39(0x3f5)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x4b2)]))['pipe'](_0x4a5f0c[_0x49fa39(0xf1)](this[_0x49fa39(0x47b)]))['subscribe'](_0x5d3f16=>{const _0x7ea3a2=_0x49fa39,_0x40674e=_0x5d3f16[_0x7ea3a2(0x40b)](),_0xfd336d=this[_0x7ea3a2(0x140)]['get'](_0x40674e);_0xfd336d&&(_0xfd336d[_0x7ea3a2(0x20a)](),this[_0x7ea3a2(0x140)][_0x7ea3a2(0x4d4)](_0x40674e));});}async[_0x4c996d(0x213)](_0x388b5a,_0x456a06){const _0x219391=_0x4c996d,_0x1b7f0d=await this[_0x219391(0xd5)][_0x219391(0x339)](_0x388b5a),_0x48fcd5=this[_0x219391(0x112)][_0x219391(0x4c9)](this[_0x219391(0x29d)](_0x456a06),_0x388b5a,_0x456a06,_0x1b7f0d);return await _0x48fcd5[_0x219391(0x412)](),this[_0x219391(0x44e)][_0x219391(0x256)](_0x48fcd5),_0x48fcd5;}[_0x4c996d(0x29d)](_0x1faf0a){const _0x3922af=_0x4c996d;switch(_0x1faf0a){case _0x367a98[_0x3922af(0x4b2)]:return _0x326761[_0x3922af(0x2d9)];case _0x367a98[_0x3922af(0x11a)]:return _0x326761['SheetCollaborationEntity'];default:throw new Error(_0x3922af(0xf0)+_0x1faf0a);}}},_0x326761[_0x4c996d(0x11d)]=_0x5cd611([_0x43f14d(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x43f14d(0x1,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x368)])),_0x43f14d(0x2,_0x229428[_0x4c996d(0x299)])],_0x326761['CollaborationController']);const _0x32b953=[_0x4c996d(0x406),_0x4c996d(0x1be),'verdancy600',_0x4c996d(0x362),_0x4c996d(0x359),_0x4c996d(0x28c)];class _0x1e0ec9 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x59a89b=_0x4c996d;super(...arguments),_0xb4d35(this,_0x59a89b(0x35e),new Map()),_0xb4d35(this,_0x59a89b(0x2a1),0x0);}[_0x4c996d(0x2f9)](_0x566ab8){const _0x390b54=_0x4c996d;if(this[_0x390b54(0x35e)]['has'](_0x566ab8))return this['_assignedColors'][_0x390b54(0x453)](_0x566ab8);const _0x2f247e=_0x32b953[this['_colorIndex']];return this[_0x390b54(0x2a1)]=(this[_0x390b54(0x2a1)]+0x1)%_0x32b953['length'],this[_0x390b54(0x35e)][_0x390b54(0x22e)](_0x566ab8,_0x2f247e),_0x2f247e;}}var _0x4d2cc1=Object[_0x4c996d(0x287)],_0x369bcb=Object['getOwnPropertyDescriptor'],_0x31efcf=(_0x479cc7,_0x239bf1,_0x3bafb5,_0x447bf3)=>{const _0x2a8e7c=_0x4c996d;for(var _0x266cb7=_0x447bf3>0x1?void 0x0:_0x447bf3?_0x369bcb(_0x239bf1,_0x3bafb5):_0x239bf1,_0x481bd9=_0x479cc7[_0x2a8e7c(0x260)]-0x1,_0x1dceee;_0x481bd9>=0x0;_0x481bd9--)(_0x1dceee=_0x479cc7[_0x481bd9])&&(_0x266cb7=(_0x447bf3?_0x1dceee(_0x239bf1,_0x3bafb5,_0x266cb7):_0x1dceee(_0x266cb7))||_0x266cb7);return _0x447bf3&&_0x266cb7&&_0x4d2cc1(_0x239bf1,_0x3bafb5,_0x266cb7),_0x266cb7;},_0xe9c6ec=(_0x48c325,_0x556a2c)=>(_0x105b5e,_0x431486)=>_0x556a2c(_0x105b5e,_0x431486,_0x48c325);const _0x9aeb3e=0x12c,_0x1a66e1=0x64;let _0x3d297b=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x3e9db1,_0x104a9e,_0x6e0517,_0x211982,_0x1c83b5,_0x16e8ba,_0x588f6c,_0x59f06d,_0x4bb751){const _0x2431c2=_0x4c996d;super(),_0xb4d35(this,_0x2431c2(0x262),!0x1),_0xb4d35(this,_0x2431c2(0x360),!0x1),_0xb4d35(this,_0x2431c2(0x450),new _0x4a5f0c[(_0x2431c2(0x496))](new Map())),_0xb4d35(this,'cursorInfo$',this[_0x2431c2(0x450)][_0x2431c2(0x228)]()),_0xb4d35(this,_0x2431c2(0x1b7),new _0x4a5f0c[(_0x2431c2(0x496))]([])),_0xb4d35(this,'roomMembers$',this[_0x2431c2(0x1b7)]['pipe'](_0x4a5f0c[_0x2431c2(0x3c3)](_0x9aeb3e))),_0xb4d35(this,'_updateLocalCursor',_0x229428[_0x2431c2(0x4b1)](_0x6f37e9=>{const _0x225bf8=_0x2431c2,_0x305c75={'eventID':_0x16a1a7[_0x225bf8(0x15d)][_0x225bf8(0x2b2)],'data':{'unitID':this['unitID'],'memberID':this[_0x225bf8(0x42f)][_0x225bf8(0x19f)](),'selection':_0x5a47c4(_0x6f37e9)}};this[_0x225bf8(0x42f)][_0x225bf8(0x38e)](_0x305c75,this['unitID']);},_0x1a66e1)),(this[_0x2431c2(0x341)]=_0x3e9db1,this['_session']=_0x104a9e,this['_injector']=_0x6e0517,this['_colorAssignService']=_0x211982,this[_0x2431c2(0x29f)]=_0x1c83b5,this[_0x2431c2(0x396)]=_0x16e8ba,this[_0x2431c2(0x49e)]=_0x588f6c,this['_univerInstanceService']=_0x59f06d,this[_0x2431c2(0x369)]=_0x4bb751);}get[_0x4c996d(0x1f7)](){const _0xae74ce=_0x4c996d;return this['_cursorInfo$'][_0xae74ce(0x309)]();}get[_0x4c996d(0x276)](){const _0x3f9628=_0x4c996d;return this[_0x3f9628(0x1b7)]['getValue']();}[_0x4c996d(0x20a)](){const _0x46b731=_0x4c996d;super['dispose'](),this[_0x46b731(0x450)][_0x46b731(0x256)](new Map()),this[_0x46b731(0x450)][_0x46b731(0x21f)](),this['_roomMembers$'][_0x46b731(0x256)]([]),this[_0x46b731(0x1b7)]['complete']();}[_0x4c996d(0x412)](){const _0x10c90a=_0x4c996d;this[_0x10c90a(0x360)]||(this['_init']=!0x0,this[_0x10c90a(0x42f)][_0x10c90a(0x3d1)][_0x10c90a(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x10c90a(0x47b)]))[_0x10c90a(0x451)](_0x380fbf=>{const _0x50ef9d=_0x10c90a;_0x380fbf===_0x44beef['ONLINE']?this[_0x50ef9d(0x400)]():this[_0x50ef9d(0x35b)]();}),this['_session'][_0x10c90a(0x13f)]['pipe'](_0x4a5f0c[_0x10c90a(0xf1)](this['dispose$']))['subscribe'](_0x3fc706=>{const _0x58d960=_0x10c90a,_0x15aa42=_0x3fc706['eventID'];_0x15aa42===_0x16a1a7[_0x58d960(0x15d)][_0x58d960(0x2b2)]&&this['_onCursorUpdate'](_0x3fc706),_0x15aa42===_0x16a1a7[_0x58d960(0x15d)][_0x58d960(0x3d9)]&&this['_onCursorDelete'](_0x3fc706);}),this[_0x10c90a(0x315)](this[_0x10c90a(0x369)][_0x10c90a(0x4ac)](_0x23f2b7=>{const _0x598b89=_0x10c90a,_0x4c96ef=_0x23f2b7[_0x598b89(0x1a3)];_0x4c96ef!=null&&this[_0x598b89(0x262)]&&_0x23f2b7['id']===_0xf2d66e['SetTextSelectionsOperation']['id']&&_0x4c96ef[_0x598b89(0x3a2)]===this[_0x598b89(0x341)]&&_0x4c96ef[_0x598b89(0x286)]===!0x1&&this[_0x598b89(0x45f)](_0x4c96ef[_0x598b89(0x24f)]);})),this['_syncEditingCollabCursorService'][_0x10c90a(0x1f9)][_0x10c90a(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x10c90a(0x47b)]))['subscribe'](_0x11f682=>{const _0x1b1510=_0x10c90a;if((_0x11f682==null?void 0x0:_0x11f682['unitID'])!==this['unitID'])return;const _0x5cd085={'eventID':_0x16a1a7[_0x1b1510(0x15d)]['UPDATE_CURSOR'],'data':_0x11f682};this[_0x1b1510(0x2e3)](_0x5cd085);}),this[_0x10c90a(0x315)](this[_0x10c90a(0x369)][_0x10c90a(0x4ac)](_0x30fdea=>{const _0x2ac032=_0x10c90a;if(_0x30fdea[_0x2ac032(0x1a3)]==null)return;const _0x51e8dc=_0x30fdea[_0x2ac032(0x1a3)];if(_0x30fdea['id']!==_0xf2d66e['RichTextEditingMutation']['id']||_0x51e8dc[_0x2ac032(0x3a2)]!==this['unitID'])return;const _0x1b8365={'id':_0x2ac032(0x47a),'params':_0x51e8dc},_0x2be95b=this[_0x2ac032(0x1f7)];for(const [_0x4f2eb6,_0x27739b]of _0x2be95b){const _0x19a9f2={'id':_0x2ac032(0x47a),'params':{'unitId':this[_0x2ac032(0x341)],'actions':null,'textRanges':_0x27739b[_0x2ac032(0x24f)]}},_0xc2f530=this['_transformService']['transformMutation'](_0x1b8365,_0x19a9f2,!0x1);if(_0x16a1a7[_0x2ac032(0x3d0)](_0xc2f530))throw _0xc2f530[_0x2ac032(0x28e)];_0x2be95b[_0x2ac032(0x22e)](_0x4f2eb6,{..._0x27739b,'ranges':_0xc2f530[_0x2ac032(0x1e0)]['params'][_0x2ac032(0x3aa)]});}queueMicrotask(()=>{const _0x45863b=_0x2ac032;this[_0x45863b(0x450)][_0x45863b(0x256)](_0x2be95b);});})));}['_onCursorUpdate'](_0x11b56f){const _0xd9657e=_0x4c996d;var _0x24b6c8,_0x298202;const {memberID:_0x41f7c7,selection:_0x1be2fe}=_0x11b56f[_0xd9657e(0x223)],_0x44bc40=_0x2714d3(_0x1be2fe),_0x2a43c8=(_0x298202=(_0x24b6c8=this['_memberService'][_0xd9657e(0x3fc)](this[_0xd9657e(0x341)],_0x41f7c7))==null?void 0x0:_0x24b6c8[_0xd9657e(0x487)])!=null?_0x298202:_0xd9657e(0x422),_0x485e59={'color':this[_0xd9657e(0x311)][_0xd9657e(0x2f9)](_0x41f7c7),'name':_0x2a43c8,'ranges':_0x44bc40},_0x8a639a=this[_0xd9657e(0x1f7)];_0x8a639a['set'](_0x41f7c7,_0x485e59),this[_0xd9657e(0x450)][_0xd9657e(0x256)](_0x8a639a);}[_0x4c996d(0x304)](_0x76a769){const _0x5849c7=_0x4c996d,{memberID:_0x322656}=_0x76a769['data'],_0x2d5033=this['cursorInfo'];_0x2d5033[_0x5849c7(0x4d4)](_0x322656),this[_0x5849c7(0x450)][_0x5849c7(0x256)](_0x2d5033);}[_0x4c996d(0x400)](){const _0x49fae0=_0x4c996d;var _0x2d4b99;if(this['_online']=!0x0,((_0x2d4b99=this['_univerInstanceService'][_0x49fae0(0x428)]())==null?void 0x0:_0x2d4b99['getUnitId']())!==this[_0x49fae0(0x341)])return;const _0x24f5f9=this[_0x49fae0(0x112)][_0x49fae0(0x453)](_0xf2d66e['DocSelectionManagerService'])[_0x49fae0(0x160)]();Array[_0x49fae0(0x452)](_0x24f5f9)&&_0x24f5f9[_0x49fae0(0x260)]>0x0&&this['_updateLocalCursor'](_0x24f5f9);}['_toggleOffline'](){const _0x3e89dc=_0x4c996d;this[_0x3e89dc(0x262)]=!0x1;}};_0x3d297b=_0x31efcf([_0xe9c6ec(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0xe9c6ec(0x3,_0x229428[_0x4c996d(0x25c)](_0x1e0ec9)),_0xe9c6ec(0x4,_0x229428['Inject'](_0x4090c9)),_0xe9c6ec(0x5,_0x229428['Inject'](_0x4ef234)),_0xe9c6ec(0x6,_0x16a1a7[_0x4c996d(0x2f5)]),_0xe9c6ec(0x7,_0x229428[_0x4c996d(0x299)]),_0xe9c6ec(0x8,_0x229428[_0x4c996d(0x1e6)])],_0x3d297b);var _0x4c8f4c=Object['defineProperty'],_0x36bdd0=Object[_0x4c996d(0x16a)],_0x25380a=(_0xcdb8ab,_0x2d8418,_0x4e11e9,_0x3a75ea)=>{const _0x2651c5=_0x4c996d;for(var _0x47b736=_0x3a75ea>0x1?void 0x0:_0x3a75ea?_0x36bdd0(_0x2d8418,_0x4e11e9):_0x2d8418,_0x1b4103=_0xcdb8ab[_0x2651c5(0x260)]-0x1,_0x269be6;_0x1b4103>=0x0;_0x1b4103--)(_0x269be6=_0xcdb8ab[_0x1b4103])&&(_0x47b736=(_0x3a75ea?_0x269be6(_0x2d8418,_0x4e11e9,_0x47b736):_0x269be6(_0x47b736))||_0x47b736);return _0x3a75ea&&_0x47b736&&_0x4c8f4c(_0x2d8418,_0x4e11e9,_0x47b736),_0x47b736;},_0x462670=(_0x2684eb,_0xce2959)=>(_0x2b2162,_0x224dca)=>_0xce2959(_0x2b2162,_0x224dca,_0x2684eb);const _0x4a8b56=0x12c,_0x332eb6=0x64,_0x12feff=()=>{let _0x2e0f3f=[],_0x27ebee=!0x1;return _0x325f90=>{const _0x1e6092=_0x59fd;_0x2e0f3f[_0x1e6092(0x2be)](_0x325f90),_0x27ebee||(_0x27ebee=!0x0,setTimeout(()=>{const _0x583fe7=_0x1e6092;_0x2e0f3f[_0x583fe7(0x139)](_0x3ac90a=>_0x3ac90a()),_0x2e0f3f=[],_0x27ebee=!0x1;}));};};let _0x315343=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x4ee221,_0x4f4173,_0x497b7f,_0x5e0c12,_0x39ca92,_0x231734,_0x2717d2,_0x2186ca){const _0x224c3d=_0x4c996d;super(),_0xb4d35(this,_0x224c3d(0x262),!0x1),_0xb4d35(this,_0x224c3d(0x360),!0x1),_0xb4d35(this,_0x224c3d(0x450),new _0x4a5f0c[(_0x224c3d(0x496))](new Map())),_0xb4d35(this,_0x224c3d(0x29a),this[_0x224c3d(0x450)][_0x224c3d(0x228)]()),_0xb4d35(this,_0x224c3d(0x1b7),new _0x4a5f0c['BehaviorSubject']([])),_0xb4d35(this,_0x224c3d(0x197),this['_roomMembers$']['pipe'](_0x4a5f0c[_0x224c3d(0x3c3)](_0x4a8b56))),_0xb4d35(this,'_updateLocalCursor',_0x229428[_0x224c3d(0x4b1)]((_0x10a438,_0x27f618)=>{const _0x4c2b41=_0x224c3d,_0x3657b2={'eventID':_0x16a1a7['CollaborationEvent'][_0x4c2b41(0x2b2)],'data':{'unitID':this['unitID'],'memberID':this[_0x4c2b41(0x42f)][_0x4c2b41(0x19f)](),'selection':_0x59dfd8[_0x4c2b41(0x2c0)](_0x10a438,_0x27f618[_0x4c2b41(0x3c9)])}};this[_0x4c2b41(0x42f)]['send'](_0x3657b2,this[_0x4c2b41(0x341)]);},_0x332eb6)),(this[_0x224c3d(0x341)]=_0x4ee221,this[_0x224c3d(0x42f)]=_0x4f4173,this['_injector']=_0x497b7f,this[_0x224c3d(0x311)]=_0x5e0c12,this[_0x224c3d(0x29f)]=_0x39ca92,this[_0x224c3d(0x456)]=_0x231734,this[_0x224c3d(0x369)]=_0x2717d2,this[_0x224c3d(0x273)]=_0x2186ca);}get[_0x4c996d(0x1f7)](){const _0x47cd6b=_0x4c996d;return this['_cursorInfo$'][_0x47cd6b(0x309)]();}get[_0x4c996d(0x276)](){const _0xbf0ff4=_0x4c996d;return this[_0xbf0ff4(0x1b7)][_0xbf0ff4(0x309)]();}[_0x4c996d(0x20a)](){const _0x38bcc3=_0x4c996d;super[_0x38bcc3(0x20a)](),this[_0x38bcc3(0x450)][_0x38bcc3(0x256)](new Map()),this[_0x38bcc3(0x450)][_0x38bcc3(0x21f)](),this[_0x38bcc3(0x1b7)][_0x38bcc3(0x256)]([]),this[_0x38bcc3(0x1b7)][_0x38bcc3(0x21f)]();}[_0x4c996d(0x412)](){const _0x19d969=_0x4c996d;this[_0x19d969(0x360)]||(this[_0x19d969(0x360)]=!0x0,this[_0x19d969(0x42f)][_0x19d969(0x3d1)][_0x19d969(0x2b6)](_0x4a5f0c[_0x19d969(0xf1)](this[_0x19d969(0x47b)]))['subscribe'](_0x50057e=>{const _0x23c0df=_0x19d969;_0x50057e===_0x44beef[_0x23c0df(0x39b)]?this[_0x23c0df(0x400)]():this[_0x23c0df(0x35b)]();}),this[_0x19d969(0x42f)][_0x19d969(0x13f)]['pipe'](_0x4a5f0c['takeUntil'](this[_0x19d969(0x47b)]))[_0x19d969(0x451)](_0x5b937b=>{const _0x1ca437=_0x19d969,_0x4f1c43=_0x5b937b[_0x1ca437(0x1c0)];_0x4f1c43===_0x16a1a7[_0x1ca437(0x15d)][_0x1ca437(0x2b2)]&&this['_onCursorUpdate'](_0x5b937b),_0x4f1c43===_0x16a1a7['CollaborationEvent'][_0x1ca437(0x3d9)]&&this[_0x1ca437(0x304)](_0x5b937b);}),this[_0x19d969(0x48e)](),this[_0x19d969(0x315)](this['_commandService'][_0x19d969(0x4ac)](_0x3f333c=>{const _0x55f626=_0x19d969;if(this[_0x55f626(0x262)]&&_0x3f333c['id']===_0x4118a6['SetSelectionsOperation']['id']&&_0x3f333c[_0x55f626(0x1a3)][_0x55f626(0x3a2)]===this[_0x55f626(0x341)]){const _0x4f5650=_0x3f333c[_0x55f626(0x1a3)];this[_0x55f626(0x45f)](_0x4f5650['subUnitId'],_0x4f5650['selections'][0x0]);}})));}['_onCursorUpdate'](_0x39bbd0){const _0x45aa83=_0x4c996d;var _0x4877e7,_0x4ccc71;const {memberID:_0x272245,selection:_0x1a8713}=_0x39bbd0['data'],{sheetName:_0x56624a,range:_0x1dbdcd}=_0x59dfd8[_0x45aa83(0x4d1)](_0x1a8713),_0x4f037d={'name':(_0x4ccc71=(_0x4877e7=this[_0x45aa83(0x29f)][_0x45aa83(0x3fc)](this[_0x45aa83(0x341)],_0x272245))==null?void 0x0:_0x4877e7[_0x45aa83(0x487)])!=null?_0x4ccc71:_0x45aa83(0x422),'range':this['_getMergeRange'](_0x56624a,_0x1dbdcd),'sheetID':_0x56624a,'color':this[_0x45aa83(0x311)][_0x45aa83(0x2f9)](_0x272245),'selection':_0x1a8713},_0x33e31b=this[_0x45aa83(0x1f7)];_0x33e31b[_0x45aa83(0x22e)](_0x272245,_0x4f037d),this['_cursorInfo$']['next'](_0x33e31b);}[_0x4c996d(0x304)](_0x1ab3d5){const _0x332a6f=_0x4c996d,{memberID:_0x4755e3}=_0x1ab3d5[_0x332a6f(0x223)],_0x196ecf=this[_0x332a6f(0x1f7)];_0x196ecf[_0x332a6f(0x4d4)](_0x4755e3),this[_0x332a6f(0x450)][_0x332a6f(0x256)](_0x196ecf);}['_getMergeRange'](_0x63cf0,_0x2e827c){const _0x16e8ea=_0x4c996d;var _0x1075c4,_0x2a9735;const _0xafc00d=(_0x2a9735=(_0x1075c4=this[_0x16e8ea(0x456)][_0x16e8ea(0x3e2)](this[_0x16e8ea(0x341)]))==null?void 0x0:_0x1075c4[_0x16e8ea(0x352)](_0x63cf0))==null?void 0x0:_0x2a9735['getMergeData']();return(_0xafc00d==null?void 0x0:_0xafc00d[_0x16e8ea(0x180)](_0x35b850=>_0x229428[_0x16e8ea(0x348)][_0x16e8ea(0x46d)](_0x35b850,_0x2e827c)))||_0x2e827c;}['_onRefRangeChange'](){const _0x4d5540=_0x4c996d,_0x300892=new _0x229428[(_0x4d5540(0x3de))](),_0x407742=_0x12feff(),_0xa31252=()=>{const _0xf29e4f=_0x4d5540;_0x300892[_0xf29e4f(0x20a)]();const _0x4721f0=(_0xffd3d2,_0x618bf7,_0x40aa2c,_0x29c3f8)=>{const _0x47d07e=_0xf29e4f;let _0x3ad382=[];switch(_0xffd3d2['id']){case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x2fa)]:{_0x3ad382=_0x4118a6['handleDeleteRangeMoveLeft'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6['EffectRefRangId'][_0x47d07e(0x26c)]:{_0x3ad382=_0x4118a6['handleDeleteRangeMoveUp'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x4db)]:{_0x3ad382=_0x4118a6['handleInsertCol'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x40d)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4c5)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0xd2)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4a9)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)]['InsertRowCommandId']:{_0x3ad382=_0x4118a6[_0x47d07e(0x214)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)]['MoveRangeCommandId']:{_0x3ad382=_0x4118a6[_0x47d07e(0x40a)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x182)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4c4)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x442)]:{_0x3ad382=_0x4118a6['handleIRemoveRow'](_0xffd3d2,_0x29c3f8);break;}}const _0x3e10dc=_0x4118a6['runRefRangeMutations'](_0x3ad382,_0x29c3f8),_0x519263=this[_0x47d07e(0x1f7)]['get'](_0x618bf7);if(_0x519263&&_0x3e10dc){const _0x1ff7b6={..._0x519263,'range':_0x3e10dc};this[_0x47d07e(0x1f7)][_0x47d07e(0x22e)](_0x618bf7,_0x1ff7b6),_0x407742(()=>{const _0x33ad6b=_0x47d07e,_0x11830c=this[_0x33ad6b(0x273)][_0x33ad6b(0xeb)](_0x3e10dc,_0x2e9cb2=>(_0x11830c[_0x33ad6b(0x20a)](),_0x4721f0(_0x2e9cb2,_0x618bf7,_0x40aa2c,_0x3e10dc)));_0x300892['add'](_0x11830c);});}return{'redos':[],'undos':[]};};this[_0xf29e4f(0x1f7)][_0xf29e4f(0x139)]((_0x5b70af,_0x35cdda)=>{const _0x468398=_0xf29e4f,{range:_0x15bd3f,sheetID:_0x14dd5f}=_0x5b70af,_0x53762b=this[_0x468398(0x273)][_0x468398(0xeb)](_0x15bd3f,_0x1b8938=>(_0x53762b[_0x468398(0x20a)](),_0x4721f0(_0x1b8938,_0x35cdda,_0x14dd5f,_0x15bd3f)));_0x300892[_0x468398(0x4c6)](_0x53762b);});};this[_0x4d5540(0x315)](_0x229428['toDisposable'](this[_0x4d5540(0x450)][_0x4d5540(0x451)](()=>{_0xa31252();})));}[_0x4c996d(0x400)](){const _0xc07326=_0x4c996d;var _0x3946ab,_0x6b0701;if(this[_0xc07326(0x262)]=!0x0,((_0x3946ab=this[_0xc07326(0x456)]['getFocusedUnit']())==null?void 0x0:_0x3946ab[_0xc07326(0x40b)]())!==this[_0xc07326(0x341)])return;const _0x177c25=(_0x6b0701=this[_0xc07326(0x112)][_0xc07326(0x453)](_0x4118a6[_0xc07326(0x4e2)])[_0xc07326(0x1e3)]())==null?void 0x0:_0x6b0701[0x0],_0x4b7c26=this[_0xc07326(0x456)][_0xc07326(0x253)](_0x229428[_0xc07326(0x2b5)][_0xc07326(0x11a)])[_0xc07326(0x2f2)]();_0x177c25&&_0x4b7c26&&this[_0xc07326(0x45f)](_0x4b7c26[_0xc07326(0x471)](),_0x177c25);}[_0x4c996d(0x35b)](){const _0x2f2e12=_0x4c996d;this[_0x2f2e12(0x262)]=!0x1;}};_0x315343=_0x25380a([_0x462670(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x462670(0x3,_0x229428[_0x4c996d(0x25c)](_0x1e0ec9)),_0x462670(0x4,_0x229428['Inject'](_0x4090c9)),_0x462670(0x5,_0x229428[_0x4c996d(0x299)]),_0x462670(0x6,_0x229428[_0x4c996d(0x1e6)]),_0x462670(0x7,_0x229428[_0x4c996d(0x25c)](_0x4118a6[_0x4c996d(0x44a)]))],_0x315343);var _0x381403=Object[_0x4c996d(0x287)],_0x21de60=Object[_0x4c996d(0x16a)],_0x5db5b4=(_0x4101e5,_0x4d8059,_0x4b2d41,_0x1bf3fb)=>{const _0x3eac28=_0x4c996d;for(var _0x809a34=_0x1bf3fb>0x1?void 0x0:_0x1bf3fb?_0x21de60(_0x4d8059,_0x4b2d41):_0x4d8059,_0x2328d5=_0x4101e5[_0x3eac28(0x260)]-0x1,_0x296fbf;_0x2328d5>=0x0;_0x2328d5--)(_0x296fbf=_0x4101e5[_0x2328d5])&&(_0x809a34=(_0x1bf3fb?_0x296fbf(_0x4d8059,_0x4b2d41,_0x809a34):_0x296fbf(_0x809a34))||_0x809a34);return _0x1bf3fb&&_0x809a34&&_0x381403(_0x4d8059,_0x4b2d41,_0x809a34),_0x809a34;},_0x1de654=(_0x526347,_0x545abe)=>(_0x5827a8,_0x373a45)=>_0x545abe(_0x5827a8,_0x373a45,_0x526347);let _0xb1b57a=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x5985f3,_0x2250a9,_0x30451d){const _0x5095f5=_0x4c996d;super(),_0xb4d35(this,'_entities',new Map()),_0xb4d35(this,_0x5095f5(0x44e),new _0x4a5f0c[(_0x5095f5(0x3a8))]()),(this[_0x5095f5(0x456)]=_0x5985f3,this['_injector']=_0x2250a9,this[_0x5095f5(0xd5)]=_0x30451d,this[_0x5095f5(0x360)]());}[_0x4c996d(0x20a)](){const _0x28eeae=_0x4c996d;super[_0x28eeae(0x20a)](),this[_0x28eeae(0x44e)][_0x28eeae(0x21f)](),this[_0x28eeae(0x140)][_0x28eeae(0x139)](_0x2356f8=>_0x2356f8[_0x28eeae(0x20a)]());}[_0x4c996d(0xdb)](_0x548a5b){const _0x1d1cbb=_0x4c996d;return this[_0x1d1cbb(0x140)]['has'](_0x548a5b)?this[_0x1d1cbb(0x140)][_0x1d1cbb(0x453)](_0x548a5b)[_0x1d1cbb(0x29a)]:this['_entityInit$'][_0x1d1cbb(0x2b6)](_0x4a5f0c[_0x1d1cbb(0x232)](_0x45675f=>_0x45675f[_0x1d1cbb(0x341)]===_0x548a5b),_0x4a5f0c['switchMap'](_0x33a1d5=>_0x33a1d5[_0x1d1cbb(0x29a)]));}[_0x4c996d(0x360)](){const _0x39f241=_0x4c996d;this[_0x39f241(0x456)][_0x39f241(0x493)](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x11a)])[_0x39f241(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x39f241(0x47b)]))[_0x39f241(0x451)](async _0x17fe96=>{const _0x1e3e49=_0x39f241,_0x37576d=_0x17fe96['getUnitId'](),_0x537657=await this['_startSheetCollabCursor'](_0x37576d);this[_0x1e3e49(0x44e)][_0x1e3e49(0x256)](_0x537657),this['_entities'][_0x1e3e49(0x22e)](_0x37576d,_0x537657);}),this[_0x39f241(0x456)][_0x39f241(0x493)](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x4b2)])[_0x39f241(0x2b6)](_0x4a5f0c[_0x39f241(0xf1)](this[_0x39f241(0x47b)]))['pipe'](_0x4a5f0c[_0x39f241(0x232)](_0xc86087=>!_0xc86087[_0x39f241(0x40b)]()['startsWith']('__')))[_0x39f241(0x451)](async _0x37da2c=>{const _0x360cbc=_0x39f241,_0x2dd62b=_0x37da2c[_0x360cbc(0x40b)](),_0x1813f5=await this['_startDocCollabCursor'](_0x2dd62b);this[_0x360cbc(0x44e)][_0x360cbc(0x256)](_0x1813f5),this[_0x360cbc(0x140)][_0x360cbc(0x22e)](_0x2dd62b,_0x1813f5);}),_0x4a5f0c[_0x39f241(0x49f)](this[_0x39f241(0x456)]['getTypeOfUnitDisposed$'](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x4b2)]),this['_univerInstanceService'][_0x39f241(0x3f5)](_0x229428[_0x39f241(0x2b5)]['UNIVER_SHEET']))['pipe'](_0x4a5f0c['takeUntil'](this[_0x39f241(0x47b)]))[_0x39f241(0x451)](_0x21fef9=>{const _0x2ac157=_0x39f241,_0x425d28=_0x21fef9[_0x2ac157(0x40b)](),_0x57b3c5=this[_0x2ac157(0x140)][_0x2ac157(0x453)](_0x425d28);_0x57b3c5&&(_0x57b3c5[_0x2ac157(0x20a)](),this[_0x2ac157(0x140)][_0x2ac157(0x4d4)](_0x425d28));});}async[_0x4c996d(0x3e1)](_0x2d4bd9){const _0x2041ce=_0x4c996d,_0x45d830=await this[_0x2041ce(0xd5)][_0x2041ce(0x339)](_0x2d4bd9),_0xf0a165=this[_0x2041ce(0x112)][_0x2041ce(0x4c9)](_0x315343,_0x2d4bd9,_0x45d830);return _0xf0a165[_0x2041ce(0x412)](),_0xf0a165;}async['_startDocCollabCursor'](_0x11d6ef){const _0x5e1c32=_0x4c996d,_0x447a90=await this[_0x5e1c32(0xd5)]['requireSession'](_0x11d6ef),_0x23153a=this[_0x5e1c32(0x112)][_0x5e1c32(0x4c9)](_0x3d297b,_0x11d6ef,_0x447a90);return _0x23153a[_0x5e1c32(0x412)](),_0x23153a;}};_0xb1b57a=_0x5db5b4([_0x1de654(0x0,_0x229428[_0x4c996d(0x299)]),_0x1de654(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x1de654(0x2,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x368)]))],_0xb1b57a);const _0x58bcc4=0x14,_0x54060b=0xc8,_0x59dc73=0x4,_0x1cb8a8=0x5;function _0x44540f(_0x22d810,_0xa19991){const _0x17fa18=_0x4c996d;let {radius:_0x3b2b0d,width:_0x157bb3,height:_0x3b85b1}=_0xa19991;_0x3b2b0d=_0x3b2b0d!=null?_0x3b2b0d:0x0,_0x157bb3=_0x157bb3!=null?_0x157bb3:0x1e,_0x3b85b1=_0x3b85b1!=null?_0x3b85b1:0x1e;let _0x48c829=0x0,_0x929cd0=0x0,_0x2a227d=0x0;_0x48c829=_0x929cd0=_0x2a227d=Math[_0x17fa18(0x4cd)](_0x3b2b0d,_0x157bb3/0x2,_0x3b85b1/0x2),_0x22d810[_0x17fa18(0x2d7)](),_0x22d810[_0x17fa18(0xf8)](_0x48c829,0x0),_0x22d810[_0x17fa18(0x26a)](_0x157bb3-_0x929cd0,0x0),_0x22d810[_0x17fa18(0x4e1)](_0x157bb3-_0x929cd0,_0x929cd0,_0x929cd0,Math['PI']*0x3/0x2,0x0,!0x1),_0x22d810[_0x17fa18(0x26a)](_0x157bb3,_0x3b85b1-_0x2a227d),_0x22d810[_0x17fa18(0x4e1)](_0x157bb3-_0x2a227d,_0x3b85b1-_0x2a227d,_0x2a227d,0x0,Math['PI']/0x2,!0x1),_0x22d810['lineTo'](0x0,_0x3b85b1),_0x22d810[_0x17fa18(0x26a)](0x0,_0x48c829),_0x22d810['arc'](_0x48c829,_0x48c829,_0x48c829,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22d810['closePath'](),_0xa19991[_0x17fa18(0x402)]&&(_0x22d810['save'](),_0x22d810['fillStyle']=_0xa19991[_0x17fa18(0x402)],_0xa19991[_0x17fa18(0x2f6)]==='evenodd'?_0x22d810[_0x17fa18(0x402)](_0x17fa18(0x23d)):_0x22d810['fill'](),_0x22d810[_0x17fa18(0x3d2)]());}class _0xbf0159 extends _0x33f8a9[_0x4c996d(0x127)]{constructor(_0x2171a3,_0x765dbb){const _0x328e47=_0x4c996d;super(_0x2171a3,_0x765dbb),_0xb4d35(this,_0x328e47(0x164)),_0xb4d35(this,_0x328e47(0x1aa)),(this[_0x328e47(0x164)]=_0x765dbb==null?void 0x0:_0x765dbb['color'],this[_0x328e47(0x1aa)]=_0x765dbb==null?void 0x0:_0x765dbb['text']);}static[_0x4c996d(0x4d8)](_0x481aeb,_0x5524a9){const _0x5a2df6=_0x4c996d,{text:_0x97d3bd,color:_0x3c9242}=_0x5524a9;_0x481aeb[_0x5a2df6(0x408)](),_0x481aeb[_0x5a2df6(0x113)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xdfad40=_0x481aeb[_0x5a2df6(0x2c5)](_0x97d3bd)['width'],_0x2ea050=Math[_0x5a2df6(0x4cd)](_0xdfad40+0x2*_0x59dc73,_0x54060b);_0x44540f(_0x481aeb,{'height':_0x58bcc4,'radius':0x4,'width':_0x2ea050,'fill':_0x3c9242,'evented':!0x1}),_0x481aeb['fillStyle']='#FFF';const _0x229bca=_0x59dc73,_0xf0441e=_0x58bcc4-_0x1cb8a8,_0x5805a6=_0x54060b-0x2*_0x59dc73;if(_0xdfad40>_0x5805a6){let _0xdb4957='',_0x333761=0x0;for(const _0x1efca1 of _0x97d3bd){const _0x3a96e5=_0x481aeb[_0x5a2df6(0x2c5)](_0x1efca1)['width'];if(_0x333761+_0x3a96e5<=_0x5805a6-_0x481aeb[_0x5a2df6(0x2c5)]('...')[_0x5a2df6(0x30f)])_0xdb4957+=_0x1efca1,_0x333761+=_0x3a96e5;else{_0xdb4957+=_0x5a2df6(0x380);break;}}_0x481aeb[_0x5a2df6(0x1c9)](_0xdb4957,_0x229bca,_0xf0441e);}else _0x481aeb[_0x5a2df6(0x1c9)](_0x97d3bd,_0x229bca,_0xf0441e);_0x481aeb[_0x5a2df6(0x3d2)]();}[_0x4c996d(0x489)](_0x4cfe7f){const _0x10665f=_0x4c996d;_0xbf0159[_0x10665f(0x4d8)](_0x4cfe7f,this);}}const _0x569270=_0x4c996d(0x23f),_0x31a8a0=_0x4c996d(0x2c6),_0x15a23f=_0x4c996d(0x4cb),_0x3f97e9=0x6,_0x18948f=1.5,_0x1d6a21=0x4,_0x3cd3a0=1.5,_0x5a842e=_0x4c996d(0xec);class _0x49094d{constructor(_0x13fefa,_0x42f854,_0x43086c,_0x17f1b7){const _0x25f3f0=_0x4c996d;_0xb4d35(this,_0x25f3f0(0x30c),[]),_0xb4d35(this,_0x25f3f0(0x433),null),_0xb4d35(this,_0x25f3f0(0x198),null),_0xb4d35(this,'_anchorDot',null),_0xb4d35(this,_0x25f3f0(0x172),null),_0xb4d35(this,'_eventUnsubscribe',null),(this['_cursor']=_0x13fefa,this['_scene']=_0x42f854,this[_0x25f3f0(0x4d9)]=_0x43086c,this[_0x25f3f0(0x284)]=_0x17f1b7,this[_0x25f3f0(0xea)]());}set[_0x4c996d(0x37c)](_0xce95a3){const _0x2d8960=_0x4c996d;_0xce95a3?(this[_0x2d8960(0x42a)]&&this[_0x2d8960(0x42a)][_0x2d8960(0x4ad)](),this[_0x2d8960(0x198)]&&this[_0x2d8960(0x198)][_0x2d8960(0x1d9)]()):(this[_0x2d8960(0x42a)]&&this[_0x2d8960(0x42a)][_0x2d8960(0x1d9)](),this['_textBubble']&&this[_0x2d8960(0x198)][_0x2d8960(0x4ad)]());}['dispose'](){const _0x5ca128=_0x4c996d;for(const _0x1e8394 of this[_0x5ca128(0x30c)])_0x1e8394[_0x5ca128(0x20a)]();this[_0x5ca128(0x198)]&&this['_textBubble'][_0x5ca128(0x20a)](),this[_0x5ca128(0x42a)]&&this[_0x5ca128(0x42a)][_0x5ca128(0x20a)](),this[_0x5ca128(0x433)]&&this['_anchor']['dispose'](),this[_0x5ca128(0x131)]&&this[_0x5ca128(0x131)]();}['_render'](){const _0x27697f=_0x4c996d;var _0xcb64eb;const {_docSkeleton:_0x3065c3,_document:_0x5da369}=this,{color:_0x203b43,name:_0x134f7f,ranges:_0x11bf1a}=this[_0x27697f(0x192)],_0x48add1=_0x5da369['getOffsetConfig'](),{docsLeft:_0x2b0802,docsTop:_0x57a857}=_0x48add1,_0x5efa61=new _0x585819['NodePositionConvertToCursor'](_0x48add1,_0x3065c3);for(const {startOffset:_0x5755ec,endOffset:_0x5a7841,collapsed:_0x38dc32,isActive:_0x42a780}of _0x11bf1a){const _0x55eb0e=_0x3065c3[_0x27697f(0x45a)](_0x5755ec),_0x47c654=_0x3065c3[_0x27697f(0x45a)](_0x5a7841);if(_0x42a780){const {contentBoxPointGroup:_0x501ee1}=_0x5efa61[_0x27697f(0x2e6)](_0x47c654,_0x47c654);if(_0x501ee1[_0x27697f(0x260)]===0x0)continue;this[_0x27697f(0x38f)](_0x203b43,_0x501ee1,_0x2b0802,_0x57a857,_0x134f7f),this[_0x27697f(0x131)]=this[_0x27697f(0x1de)]();}if(!_0x38dc32&&_0x55eb0e&&_0x47c654){if(_0x585819[_0x27697f(0x474)](_0x55eb0e,_0x47c654)){const _0xf7f6b=new _0x585819[(_0x27697f(0x1e4))](_0x48add1,_0x3065c3),{pointGroup:_0x404a9f}=(_0xcb64eb=_0xf7f6b['getRangePointData'](_0x55eb0e,_0x47c654))!=null?_0xcb64eb:{};if(_0x404a9f==null||_0x404a9f['length']===0x0)continue;this['_drawRectRange'](_0x203b43,_0x404a9f,_0x2b0802,_0x57a857);}else{const {contentBoxPointGroup:_0x344e57}=_0x5efa61[_0x27697f(0x2e6)](_0x55eb0e,_0x47c654);if(_0x344e57[_0x27697f(0x260)]===0x0)continue;this[_0x27697f(0x217)](_0x203b43,_0x344e57,_0x2b0802,_0x57a857);}}}}[_0x4c996d(0x38f)](_0x5b1980,_0x2ebc98,_0x4340d4,_0x3f0852,_0x1c8324){const _0x3230ff=_0x4c996d,_0x2fd912=this[_0x3230ff(0xf9)](_0x2ebc98),{left:_0x3ced4b,top:_0x1f396a,height:_0x4c06b5}=_0x2fd912,_0x34eb31=this[_0x3230ff(0x337)](),_0x3b7eef=_0x3cd3a0/_0x34eb31,_0x8a2870=new _0x33f8a9[(_0x3230ff(0x448))](_0x569270+_0x229428[_0x3230ff(0x179)][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852,'height':_0x4c06b5,'width':_0x18948f,'fill':_0x5b1980||_0x33f8a9['getColor'](_0x229428[_0x3230ff(0xda)]['black'],0x0),'strokeWidth':_0x3b7eef,'stroke':_0x5a842e,'evented':!0x0});this[_0x3230ff(0x433)]=_0x8a2870,this[_0x3230ff(0x472)]['addObject'](_0x8a2870,_0x585819[_0x3230ff(0x1cd)]);const _0x558cab=new _0x33f8a9[(_0x3230ff(0x448))](_0x569270+_0x229428['Tools'][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852-_0x1d6a21/0x2,'height':_0x1d6a21,'width':_0x1d6a21,'fill':_0x5b1980||_0x33f8a9['getColor'](_0x229428[_0x3230ff(0xda)][_0x3230ff(0x28a)],0x0),'strokeWidth':0x0,'stroke':_0x5b1980||_0x33f8a9[_0x3230ff(0x144)](_0x229428[_0x3230ff(0xda)]['black'],0x0),'evented':!0x1});this[_0x3230ff(0x42a)]=_0x558cab,this[_0x3230ff(0x472)][_0x3230ff(0x125)](_0x558cab,_0x585819['TEXT_RANGE_LAYER_INDEX']);const _0x2b06fe=new _0xbf0159(_0x569270+_0x229428[_0x3230ff(0x179)][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852-_0x58bcc4,'text':_0x1c8324,'color':_0x5b1980});this[_0x3230ff(0x198)]=_0x2b06fe,this[_0x3230ff(0x472)]['addObject'](_0x2b06fe,_0x585819[_0x3230ff(0x1cd)]),this[_0x3230ff(0x37c)]=!0x1;}[_0x4c996d(0x1de)](){const _0x47d449=_0x4c996d,_0x1bd3d3=this[_0x47d449(0x433)][_0x47d449(0x3c8)]['subscribeEvent'](()=>{const _0x4f8b15=_0x47d449;this[_0x4f8b15(0x37c)]=!0x0;}),_0x140f63=this[_0x47d449(0x433)][_0x47d449(0x17e)]['subscribeEvent'](()=>{const _0x83c983=_0x47d449;this[_0x83c983(0x172)]&&clearTimeout(this[_0x83c983(0x172)]),this[_0x83c983(0x172)]=setTimeout(()=>{const _0x17db34=_0x83c983;this[_0x17db34(0x37c)]=!0x1;},0x7d0);});return()=>{const _0x1c5b3f=_0x47d449;_0x1bd3d3[_0x1c5b3f(0x399)](),_0x140f63[_0x1c5b3f(0x399)]();};}['_drawTextRange'](_0x275cb5,_0x330bba,_0x48b364,_0x576303){const _0x2ca045=_0x4c996d,_0x41c563=new _0x229428[(_0x2ca045(0x3e8))](_0x275cb5)[_0x2ca045(0x258)](0.2)[_0x2ca045(0x3a4)](),_0x4c2315=new _0x33f8a9[(_0x2ca045(0x395))](_0x31a8a0+_0x229428[_0x2ca045(0x179)][_0x2ca045(0x3bb)](_0x3f97e9),{'pointsGroup':_0x330bba,'fill':_0x41c563||_0x33f8a9[_0x2ca045(0x144)](_0x229428[_0x2ca045(0xda)][_0x2ca045(0x28a)],0.2),'left':_0x48b364,'top':_0x576303,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4c2315),this['_scene'][_0x2ca045(0x125)](_0x4c2315,_0x585819['TEXT_RANGE_LAYER_INDEX']);}[_0x4c996d(0x1c8)](_0x190c5c,_0x75621f,_0x5749d9,_0x35353c){const _0x352a65=_0x4c996d,_0x27db54=new _0x229428[(_0x352a65(0x3e8))](_0x190c5c)[_0x352a65(0x258)](0.2)['toRgbString'](),_0x8aa857=new _0x33f8a9['RegularPolygon'](_0x15a23f+_0x229428[_0x352a65(0x179)][_0x352a65(0x3bb)](_0x3f97e9),{'pointsGroup':_0x75621f,'fill':_0x27db54||_0x33f8a9[_0x352a65(0x144)](_0x229428[_0x352a65(0xda)][_0x352a65(0x28a)],0.2),'left':_0x5749d9,'top':_0x35353c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x352a65(0x30c)][_0x352a65(0x2be)](_0x8aa857),this[_0x352a65(0x472)][_0x352a65(0x125)](_0x8aa857,_0x585819['TEXT_RANGE_LAYER_INDEX']);}[_0x4c996d(0xf9)](_0x567045){const _0x526fb7=_0x567045[0x0],_0x510846=_0x526fb7[0x0],_0x351a3e=_0x526fb7[0x2],{x:_0x46313b,y:_0x187633}=_0x510846,{x:_0x1bffad,y:_0x1af151}=_0x351a3e;return{'left':_0x46313b,'top':_0x187633,'width':_0x1bffad-_0x46313b,'height':_0x1af151-_0x187633};}[_0x4c996d(0x337)](){const _0x3fc41d=_0x4c996d,{scaleX:_0x430f0d,scaleY:_0x25a09e}=this['_scene'][_0x3fc41d(0x31e)]();return Math[_0x3fc41d(0x11e)](_0x430f0d,_0x25a09e);}}var _0x360639=Object[_0x4c996d(0x287)],_0x284caa=Object[_0x4c996d(0x16a)],_0x327dc3=(_0x8272a4,_0x1acf43,_0x46f3fa,_0x2046f1)=>{const _0x26fe03=_0x4c996d;for(var _0x4b1bf5=_0x2046f1>0x1?void 0x0:_0x2046f1?_0x284caa(_0x1acf43,_0x46f3fa):_0x1acf43,_0x425cd5=_0x8272a4[_0x26fe03(0x260)]-0x1,_0x33545b;_0x425cd5>=0x0;_0x425cd5--)(_0x33545b=_0x8272a4[_0x425cd5])&&(_0x4b1bf5=(_0x2046f1?_0x33545b(_0x1acf43,_0x46f3fa,_0x4b1bf5):_0x33545b(_0x4b1bf5))||_0x4b1bf5);return _0x2046f1&&_0x4b1bf5&&_0x360639(_0x1acf43,_0x46f3fa,_0x4b1bf5),_0x4b1bf5;},_0x36510c=(_0xba9102,_0x21060a)=>(_0xb824a2,_0xb19489)=>_0x21060a(_0xb824a2,_0xb19489,_0xba9102);let _0x5e0d56=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x12e76e,_0x13745e,_0x46f689,_0x58bd42,_0x356422){const _0x3dd122=_0x4c996d;super(),_0xb4d35(this,_0x3dd122(0x3f0),[]),_0xb4d35(this,'_cursors',[]),(this[_0x3dd122(0x221)]=_0x12e76e,this[_0x3dd122(0x4ba)]=_0x13745e,this['_collabCursorController']=_0x46f689,this['_commandService']=_0x58bd42,this[_0x3dd122(0x27f)]=_0x356422,this[_0x3dd122(0x360)]());}['_init'](){const _0xf91b49=_0x4c996d,_0xbf4221=this[_0xf91b49(0x221)]['unitId'],_0x37516d=this[_0xf91b49(0x4ba)];this['disposeWithMe'](_0x4a5f0c[_0xf91b49(0x32f)]([this[_0xf91b49(0x1eb)][_0xf91b49(0xdb)](_0xbf4221),this['_themeService']['currentTheme$']])[_0xf91b49(0x2b6)](_0x2032d6['map'](([_0x3d8398,_0x35d918])=>({'skeleton':_0x37516d[_0xf91b49(0x129)](),'cursors':[..._0x3d8398[_0xf91b49(0x10b)]()][_0xf91b49(0x250)](_0x252dd9=>({..._0x252dd9,'color':_0x35d918[_0x252dd9[_0xf91b49(0x164)]]}))})))[_0xf91b49(0x451)](_0x2232e4=>{const _0x45ec1f=_0xf91b49;if(this[_0x45ec1f(0x216)](),_0x2232e4){const {skeleton:_0x3c2f5b,cursors:_0x28ad72}=_0x2232e4;this[_0x45ec1f(0x39f)](_0x3c2f5b,_0x28ad72);}})),this[_0xf91b49(0x2e4)](),this['_initCommandExecutedListener']();}[_0x4c996d(0x39f)](_0x22768f,_0x351acc){const _0x18ee39=_0x4c996d,{scene:_0x354f8a,mainComponent:_0x374eb9}=this[_0x18ee39(0x221)],_0x34b336=_0x351acc['map'](_0x38f07c=>new _0x49094d(_0x38f07c,_0x354f8a,_0x22768f,_0x374eb9));this[_0x18ee39(0x3f0)]=_0x34b336,this[_0x18ee39(0x4c8)]=_0x351acc;}[_0x4c996d(0x305)](){const _0x337c18=_0x4c996d;this[_0x337c18(0x216)]();const {scene:_0x1f2a0e,mainComponent:_0x3de906}=this['_context'],_0x176e5d=this[_0x337c18(0x4ba)][_0x337c18(0x129)](),_0x167e52=this[_0x337c18(0x4c8)][_0x337c18(0x3fb)](_0x502692=>new _0x49094d(_0x502692,_0x1f2a0e,_0x176e5d,_0x3de906));this[_0x337c18(0x3f0)]=_0x167e52;}[_0x4c996d(0x216)](){const _0x2332b1=_0x4c996d;this[_0x2332b1(0x3f0)]['forEach'](_0xabf027=>_0xabf027[_0x2332b1(0x20a)]()),this['_cursorShapes']=[];}[_0x4c996d(0x416)](){const _0x2a20d8=_0x4c996d,_0x5a29cc=[_0x585819['SetDocZoomRatioOperation']['id']];this[_0x2a20d8(0x315)](this[_0x2a20d8(0x369)][_0x2a20d8(0x4ac)](_0x43cf89=>{const _0x5b72d4=_0x2a20d8;_0x5a29cc[_0x5b72d4(0x4ca)](_0x43cf89['id'])&&_0x43cf89['params'][_0x5b72d4(0x3a2)]===this[_0x5b72d4(0x221)][_0x5b72d4(0x3a2)]&&this[_0x5b72d4(0x305)]();}));}[_0x4c996d(0x2e4)](){const _0x295e29=_0x4c996d;this['disposeWithMe'](_0x229428[_0x295e29(0xe8)](this['_context']['engine'][_0x295e29(0x24a)])[_0x295e29(0x2b6)](_0x2032d6[_0x295e29(0x232)](_0x22f597=>_0x22f597['type']===_0x33f8a9['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),_0x2032d6[_0x295e29(0x295)](0x10))[_0x295e29(0x451)](()=>{const _0x100f2f=_0x295e29;this[_0x100f2f(0x305)]();}));}};_0x5e0d56=_0x327dc3([_0x36510c(0x1,_0x229428[_0x4c996d(0x25c)](_0xf2d66e[_0x4c996d(0x1ff)])),_0x36510c(0x2,_0x229428[_0x4c996d(0x25c)](_0xb1b57a)),_0x36510c(0x3,_0x229428[_0x4c996d(0x1e6)]),_0x36510c(0x4,_0x229428['Inject'](_0x229428['ThemeService']))],_0x5e0d56);const _0x1f1311=0x1,_0x38070a=1.5;class _0x3f46bd extends _0x33f8a9[_0x4c996d(0x127)]{constructor(_0x11e123,_0x4f111c){const _0x2d866b=_0x4c996d;super(_0x11e123,_0x4f111c),_0xb4d35(this,_0x2d866b(0x16c)),_0xb4d35(this,_0x2d866b(0x3ed),!0x1),_0xb4d35(this,_0x2d866b(0x265)),_0xb4d35(this,'_name',''),_0xb4d35(this,_0x2d866b(0x46a),_0x2d866b(0x257)),_0xb4d35(this,_0x2d866b(0x1ab)),(_0x4f111c&&this[_0x2d866b(0x4c0)](_0x4f111c),this[_0x2d866b(0x3c8)][_0x2d866b(0x1c2)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2d866b(0x17e)][_0x2d866b(0x1c2)](()=>this[_0x2d866b(0x4c0)]({'hovered':!0x1})));}['setShapeProps'](_0x540219){const _0xc6f333=_0x4c996d;var _0x5ed8d8,_0x2493b1,_0x694c90,_0x52f3af,_0x22f42a,_0x135816;this[_0xc6f333(0x16c)]=(_0x5ed8d8=_0x540219[_0xc6f333(0x164)])!=null?_0x5ed8d8:this['_color'],this[_0xc6f333(0x3ed)]=(_0x2493b1=_0x540219['hovered'])!=null?_0x2493b1:this[_0xc6f333(0x3ed)],this[_0xc6f333(0x265)]=(_0x694c90=_0x540219[_0xc6f333(0x3c9)])!=null?_0x694c90:this[_0xc6f333(0x265)],this[_0xc6f333(0x134)]=(_0x52f3af=_0x540219['name'])!=null?_0x52f3af:this[_0xc6f333(0x134)],this[_0xc6f333(0x46a)]=(_0x22f42a=_0x540219[_0xc6f333(0x2a7)])!=null?_0x22f42a:this['_labelPosition'],this[_0xc6f333(0x1ab)]=(_0x135816=_0x540219[_0xc6f333(0x2ee)])!=null?_0x135816:this['_backgroundColor'],this[_0xc6f333(0x175)]({'width':_0x540219[_0xc6f333(0x30f)],'height':_0x540219[_0xc6f333(0x168)]});}[_0x4c996d(0x1ee)](_0x6b196d){const _0x24b23f=_0x4c996d,{row:_0x1b2faa,column:_0xd5fc23}=_0x6b196d;if(_0x1b2faa>=this[_0x24b23f(0x265)][_0x24b23f(0xcd)]&&_0x1b2faa<=this[_0x24b23f(0x265)][_0x24b23f(0x41f)]&&_0xd5fc23>=this[_0x24b23f(0x265)][_0x24b23f(0x148)]&&_0xd5fc23<=this['_range']['endColumn']){this[_0x24b23f(0x4c0)]({'hovered':!0x0});return;}this[_0x24b23f(0x4c0)]({'hovered':!0x1});}[_0x4c996d(0x238)](_0xb76fdb){return!0x1;}[_0x4c996d(0x489)](_0x195292){const _0x3c4e46=_0x4c996d;_0x33f8a9[_0x3c4e46(0x448)][_0x3c4e46(0x4d8)](_0x195292,{'width':this[_0x3c4e46(0x30f)],'height':this[_0x3c4e46(0x168)],'strokeWidth':_0x38070a,'stroke':this[_0x3c4e46(0x16c)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3c4e46(0x3ed)]&&(_0x195292[_0x3c4e46(0x408)](),_0x195292[_0x3c4e46(0x210)](0x1,0x0,0x0,0x1,this[_0x3c4e46(0x30f)],this[_0x3c4e46(0x46a)]===_0x3c4e46(0x1d5)?0x0:-_0x58bcc4),_0xbf0159[_0x3c4e46(0x4d8)](_0x195292,{'text':this['_name'],'color':this['_color']}),_0x195292[_0x3c4e46(0x3d2)]());}}var _0x4d330f=Object['defineProperty'],_0x169e7e=Object[_0x4c996d(0x16a)],_0x643fb5=(_0x20fc7f,_0xaa1a76,_0x2668f7,_0x3e8a4e)=>{const _0x5eb1d9=_0x4c996d;for(var _0x131988=_0x3e8a4e>0x1?void 0x0:_0x3e8a4e?_0x169e7e(_0xaa1a76,_0x2668f7):_0xaa1a76,_0x2062b9=_0x20fc7f[_0x5eb1d9(0x260)]-0x1,_0x578ad2;_0x2062b9>=0x0;_0x2062b9--)(_0x578ad2=_0x20fc7f[_0x2062b9])&&(_0x131988=(_0x3e8a4e?_0x578ad2(_0xaa1a76,_0x2668f7,_0x131988):_0x578ad2(_0x131988))||_0x131988);return _0x3e8a4e&&_0x131988&&_0x4d330f(_0xaa1a76,_0x2668f7,_0x131988),_0x131988;},_0x146c2c=(_0x2d4fb4,_0x3b7f2e)=>(_0x1678d4,_0x5d4cd3)=>_0x3b7f2e(_0x1678d4,_0x5d4cd3,_0x2d4fb4);const _0x39a24d=0x1389;let _0x1e23e3=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x26841e,_0x31d857,_0x53aff8,_0x52acd1){const _0xaa8510=_0x4c996d;super(),_0xb4d35(this,_0xaa8510(0x4c8),new Set()),_0xb4d35(this,_0xaa8510(0x235),null),(this['_context']=_0x26841e,this[_0xaa8510(0x1a1)]=_0x31d857,this['_collabCursorController']=_0x53aff8,this[_0xaa8510(0x27f)]=_0x52acd1,this[_0xaa8510(0x360)]());}[_0x4c996d(0x360)](){const _0x366c3b=_0x4c996d;this[_0x366c3b(0x1a1)][_0x366c3b(0xcc)][_0x366c3b(0x2b6)](_0x2032d6[_0x366c3b(0xf1)](this['dispose$']),_0x2032d6[_0x366c3b(0x19a)](_0x23d7b3=>{const _0xc46938=_0x366c3b;if(_0x23d7b3){const _0x19921e=_0x23d7b3[_0xc46938(0x19d)];return _0x4a5f0c['combineLatest'](this[_0xc46938(0x1eb)]['getCollabCursors$'](this[_0xc46938(0x221)]['unitId']),this[_0xc46938(0x27f)][_0xc46938(0x4c3)])[_0xc46938(0x2b6)](_0x2032d6['map'](([_0x38218c,_0x1e5000])=>{const _0x537209=_0xc46938,_0x41fcf2=new Map();return _0x38218c[_0x537209(0x139)]((_0x11aa4e,_0xe19e13)=>{const _0x4ae920=_0x537209;if(_0x11aa4e[_0x4ae920(0x10c)]===_0x19921e){const _0x5e2563={..._0x11aa4e};_0x5e2563[_0x4ae920(0x164)]=_0x1e5000[_0x11aa4e[_0x4ae920(0x164)]],_0x41fcf2[_0x4ae920(0x22e)](_0xe19e13,_0x5e2563);}}),{'skeleton':_0x23d7b3,'cursors':_0x41fcf2};}));}return _0x4a5f0c['of']({'skeleton':null,'cursors':new Map()});}))[_0x366c3b(0x451)](({skeleton:_0x417bca,cursors:_0x3290df})=>{const _0x50bd04=_0x366c3b;this['_removeCollabCursors'](),_0x417bca&&this[_0x50bd04(0x39f)](_0x417bca,_0x3290df);}),this['_sheetSkeletonManagerService'][_0x366c3b(0xcc)][_0x366c3b(0x451)](_0x2287a5=>{const _0x10b79a=_0x366c3b;if(_0x2287a5==null)return;const {skeleton:_0x5bbdce}=_0x2287a5,{scene:_0x875ac4}=this['_context'];_0x875ac4[_0x10b79a(0x455)][_0x10b79a(0x1c2)](_0x229428[_0x10b79a(0x4b1)](_0x2e9ee7=>{const _0x5c6bc5=_0x10b79a;var _0x22a963,_0x5a7754;const {offsetX:_0x4b4b38,offsetY:_0x325961}=_0x2e9ee7,{x:_0x37e433,y:_0x479068}=_0x875ac4[_0x5c6bc5(0x1ed)](_0x33f8a9[_0x5c6bc5(0x44d)]['FromArray']([_0x4b4b38,_0x325961])),{scaleX:_0x1cdf6b,scaleY:_0x23cdc7}=_0x875ac4[_0x5c6bc5(0x31e)](),_0x3c5f99=_0x875ac4[_0x5c6bc5(0x398)](_0x52d884[_0x5c6bc5(0x4bc)]['VIEW_MAIN']),_0x41a9df=_0x875ac4[_0x5c6bc5(0x1d6)](_0x33f8a9[_0x5c6bc5(0x44d)][_0x5c6bc5(0x23c)]([_0x37e433,_0x479068]),_0x3c5f99),_0x17d624=_0x5bbdce[_0x5c6bc5(0x270)](_0x4b4b38,_0x325961,_0x1cdf6b,_0x23cdc7,_0x41a9df);((_0x22a963=this['_lastPointer'])==null?void 0x0:_0x22a963[_0x5c6bc5(0x199)])===_0x17d624[_0x5c6bc5(0x199)]&&((_0x5a7754=this[_0x5c6bc5(0x235)])==null?void 0x0:_0x5a7754[_0x5c6bc5(0x2a8)])===_0x17d624[_0x5c6bc5(0x2a8)]||this[_0x5c6bc5(0x4c8)]['forEach'](_0x43ade4=>{_0x43ade4['onMouseMove'](_0x17d624);});},0x64));});}['_updateCollabCursors'](_0x34f3f1,_0x2b56cf){const _0x3bf2bc=_0x4c996d;var _0x4383e1;const _0x558a0f=(_0x4383e1=this[_0x3bf2bc(0x1a1)][_0x3bf2bc(0x289)]())==null?void 0x0:_0x4383e1[_0x3bf2bc(0x419)];if(!_0x558a0f)return;const _0x38d934=this[_0x3bf2bc(0x196)]();if(!_0x38d934)return;this['_cursors'][_0x3bf2bc(0x139)](_0x29409c=>{_0x29409c['makeDirty']();});const {scene:_0x45df4e}=_0x38d934,_0x198bf3=_0x40c7a7(Array['from'](_0x2b56cf[_0x3bf2bc(0x10b)]()))['map'](_0x5ae6ce=>{const _0x5ed0b1=_0x3bf2bc,{color:_0xd475b2,range:_0x5a7c0d,name:_0xba4740,selection:_0x500078,sheetID:_0x108a8f}=_0x5ae6ce,{startColumn:_0x430cfb,startRow:_0x2edbbe,endColumn:_0x1494ec,endRow:_0x11a3e4}=_0x5a7c0d,_0x23b02b=_0x52d884[_0x5ed0b1(0x3b4)](_0x2edbbe,_0x430cfb,_0x45df4e,_0x558a0f),_0x30e12a=_0x52d884[_0x5ed0b1(0x3b4)](_0x11a3e4,_0x1494ec,_0x45df4e,_0x558a0f),{columnHeaderHeightAndMarginTop:_0x291b4d}=_0x558a0f,{startX:_0x1a556f,startY:_0x41ce44}=_0x23b02b,{endX:_0xf65f30,endY:_0x1cb31b}=_0x30e12a,_0x5bfd67=_0xf65f30-_0x1a556f,_0x283c02=_0x1cb31b-_0x41ce44,_0x382886={'labelPosition':_0x41ce44-_0x291b4d>=_0x58bcc4?_0x5ed0b1(0x257):_0x5ed0b1(0x1d5),'sheetID':_0x108a8f,'range':_0x5a7c0d,'color':_0xd475b2,'name':_0xba4740,'selection':_0x500078,'left':_0x1a556f,'top':_0x41ce44,'width':_0x5bfd67,'height':_0x283c02,'evented':!0x1,'zIndex':_0x39a24d};return new _0x3f46bd(_0xba4740,_0x382886);});_0x45df4e[_0x3bf2bc(0x12b)](_0x198bf3,_0x1f1311),this[_0x3bf2bc(0x4c8)]=new Set(_0x198bf3);}['_removeCollabCursors'](){const _0xd9be2f=_0x4c996d;var _0x113669;(_0x113669=this[_0xd9be2f(0x4c8)])==null||_0x113669[_0xd9be2f(0x139)](_0x534ab5=>_0x534ab5['dispose']());}['_getSheetObject'](){const _0x54bc06=_0x4c996d;return _0x52d884[_0x54bc06(0x146)](this[_0x54bc06(0x221)][_0x54bc06(0x22b)],this[_0x54bc06(0x221)]);}};_0x1e23e3=_0x643fb5([_0x146c2c(0x1,_0x229428[_0x4c996d(0x25c)](_0x52d884[_0x4c996d(0x404)])),_0x146c2c(0x2,_0x229428[_0x4c996d(0x25c)](_0xb1b57a)),_0x146c2c(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x25e)]))],_0x1e23e3);function _0x40c7a7(_0x3e1f4f){const _0x259fc3=_0x4c996d,_0x545ddb=new Map();return _0x3e1f4f['forEach'](_0x2c8fec=>{const _0x729d11=_0x59fd;if(_0x545ddb['has'](_0x2c8fec[_0x729d11(0x3f6)])){const _0x269cd6=_0x545ddb[_0x729d11(0x453)](_0x2c8fec[_0x729d11(0x3f6)]);_0x269cd6[_0x729d11(0x487)]+=',\x20'+_0x2c8fec[_0x729d11(0x487)];}else _0x545ddb[_0x729d11(0x22e)](_0x2c8fec[_0x729d11(0x3f6)],_0x2c8fec);}),Array[_0x259fc3(0x218)](_0x545ddb[_0x259fc3(0x10b)]());}var _0x8380c=function(){const _0x18adad=_0x4c996d;return _0x8380c=Object[_0x18adad(0x432)]||function(_0x372ee1){const _0x2139a3=_0x18adad;for(var _0x380739,_0x2ec93c=0x1,_0x5bea40=arguments['length'];_0x2ec93c<_0x5bea40;_0x2ec93c++){_0x380739=arguments[_0x2ec93c];for(var _0x2bfa2b in _0x380739)Object[_0x2139a3(0x2ae)][_0x2139a3(0xdd)]['call'](_0x380739,_0x2bfa2b)&&(_0x372ee1[_0x2bfa2b]=_0x380739[_0x2bfa2b]);}return _0x372ee1;},_0x8380c[_0x18adad(0x47d)](this,arguments);},_0x45d4ea=function(_0x276e9a,_0x12594c){const _0x58a539=_0x4c996d;var _0xfed4c={};for(var _0x3dfc14 in _0x276e9a)Object['prototype']['hasOwnProperty'][_0x58a539(0x411)](_0x276e9a,_0x3dfc14)&&_0x12594c[_0x58a539(0x3b3)](_0x3dfc14)<0x0&&(_0xfed4c[_0x3dfc14]=_0x276e9a[_0x3dfc14]);if(_0x276e9a!=null&&typeof Object[_0x58a539(0x4bf)]==_0x58a539(0x14c)){for(var _0x272c84=0x0,_0x3dfc14=Object[_0x58a539(0x4bf)](_0x276e9a);_0x272c84<_0x3dfc14[_0x58a539(0x260)];_0x272c84++)_0x12594c[_0x58a539(0x3b3)](_0x3dfc14[_0x272c84])<0x0&&Object['prototype'][_0x58a539(0x1fc)][_0x58a539(0x411)](_0x276e9a,_0x3dfc14[_0x272c84])&&(_0xfed4c[_0x3dfc14[_0x272c84]]=_0x276e9a[_0x3dfc14[_0x272c84]]);}return _0xfed4c;},_0x40becd=_0x5398de[_0x4c996d(0x2d5)](function(_0x334146,_0x31f277){const _0xef0119=_0x4c996d;var _0x3bf61d=_0x334146[_0xef0119(0x49a)],_0x2afcd1=_0x334146['id'],_0x5ca72c=_0x334146['className'],_0x2a5e45=_0x334146[_0xef0119(0x1c3)],_0xe55a1d=_0x45d4ea(_0x334146,[_0xef0119(0x49a),'id','className',_0xef0119(0x1c3)]),_0x5344eb=_0xef0119(0x2e5)[_0xef0119(0x1c1)](_0x2afcd1,'\x20')[_0xef0119(0x1c1)](_0x5ca72c||'')[_0xef0119(0x12c)](),_0x2ad663=_0x5398de[_0xef0119(0x297)]('_'[_0xef0119(0x1c1)](_0x5c6d49()));return _0x31d363(_0x3bf61d,''[_0xef0119(0x1c1)](_0x2afcd1),{'defIds':_0x3bf61d[_0xef0119(0xcf)],'idSuffix':_0x2ad663[_0xef0119(0x2a5)]},_0x8380c({'ref':_0x31f277,'className':_0x5344eb},_0xe55a1d),_0x2a5e45);});function _0x31d363(_0x43c68d,_0x19f28b,_0xe3c16d,_0x3ee157,_0x263a72){const _0x3dd814=_0x4c996d;return _0x5398de[_0x3dd814(0x34f)](_0x43c68d['tag'],_0x8380c(_0x8380c({'key':_0x19f28b},_0x17e865(_0x43c68d,_0xe3c16d,_0x263a72)),_0x3ee157),(_0x2d3635(_0x43c68d,_0xe3c16d)[_0x3dd814(0x4a5)]||[])[_0x3dd814(0x3fb)](function(_0x38a179,_0x5c07f6){const _0x30d4c4=_0x3dd814;return _0x31d363(_0x38a179,''[_0x30d4c4(0x1c1)](_0x19f28b,'-')[_0x30d4c4(0x1c1)](_0x43c68d[_0x30d4c4(0x32c)],'-')[_0x30d4c4(0x1c1)](_0x5c07f6),_0xe3c16d,void 0x0,_0x263a72);}));}function _0x17e865(_0x85b523,_0x318f3f,_0x3876e3){const _0x754ca1=_0x4c996d;var _0x59a881=_0x8380c({},_0x85b523['attrs']);_0x3876e3!=null&&_0x3876e3[_0x754ca1(0x285)]&&_0x59a881['fill']===_0x754ca1(0x285)&&(_0x59a881['fill']=_0x3876e3[_0x754ca1(0x285)]);var _0x1fc628=_0x318f3f[_0x754ca1(0xcf)];return!_0x1fc628||_0x1fc628[_0x754ca1(0x260)]===0x0||(_0x85b523['tag']===_0x754ca1(0x3f7)&&_0x59a881[_0x754ca1(0x110)]&&(_0x59a881[_0x754ca1(0x110)]=_0x59a881[_0x754ca1(0x110)]+_0x318f3f[_0x754ca1(0x3d3)]),Object[_0x754ca1(0x48f)](_0x59a881)[_0x754ca1(0x139)](function(_0x4c5ea4){const _0x415008=_0x754ca1;var _0x9efdd3=_0x4c5ea4[0x0],_0x763716=_0x4c5ea4[0x1];typeof _0x763716=='string'&&(_0x59a881[_0x9efdd3]=_0x763716[_0x415008(0x162)](/url\(#(.*)\)/,_0x415008(0x36b)[_0x415008(0x1c1)](_0x318f3f['idSuffix'],')')));})),_0x59a881;}function _0x2d3635(_0x50b443,_0x52ecd1){const _0x3d1164=_0x4c996d;var _0x1ac0f1,_0x402e7a=_0x52ecd1['defIds'];return!_0x402e7a||_0x402e7a[_0x3d1164(0x260)]===0x0?_0x50b443:_0x50b443[_0x3d1164(0x32c)]===_0x3d1164(0x3ea)&&(!((_0x1ac0f1=_0x50b443[_0x3d1164(0x4a5)])===null||_0x1ac0f1===void 0x0)&&_0x1ac0f1[_0x3d1164(0x260)])?_0x8380c(_0x8380c({},_0x50b443),{'children':_0x50b443['children'][_0x3d1164(0x3fb)](function(_0x2d85be){const _0x33d55d=_0x3d1164;return typeof _0x2d85be[_0x33d55d(0x189)]['id']==_0x33d55d(0xdf)&&_0x402e7a&&_0x402e7a[_0x33d55d(0x3b3)](_0x2d85be[_0x33d55d(0x189)]['id'])>-0x1?_0x8380c(_0x8380c({},_0x2d85be),{'attrs':_0x8380c(_0x8380c({},_0x2d85be['attrs']),{'id':_0x2d85be['attrs']['id']+_0x52ecd1[_0x33d55d(0x3d3)]})}):_0x2d85be;})}):_0x50b443;}function _0x5c6d49(){const _0xabe19e=_0x4c996d;return Math[_0xabe19e(0x3e0)]()[_0xabe19e(0x1af)](0x24)[_0xabe19e(0xee)](0x2,0x8);}_0x40becd['displayName']=_0x4c996d(0x16f);var _0x3e9217={'tag':_0x4c996d(0x3b7),'attrs':{'fill':_0x4c996d(0x14d),'viewBox':_0x4c996d(0xe4),'width':_0x4c996d(0x204),'height':_0x4c996d(0x204)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c996d(0x2c8)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'stroke':_0x4c996d(0x2e8),'d':_0x4c996d(0x14b),'strokeLinecap':_0x4c996d(0xef),'strokeLinejoin':_0x4c996d(0xef),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c996d(0x12d),'attrs':{'id':_0x4c996d(0x171)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'fill':_0x4c996d(0x3cf),'d':_0x4c996d(0x410)}}]}]}],'defIds':[_0x4c996d(0x171)]},_0x28ba74=_0x5398de[_0x4c996d(0x2d5)](function(_0x4b5709,_0x4271d6){const _0x48de0a=_0x4c996d;return _0x5398de['createElement'](_0x40becd,Object[_0x48de0a(0x432)]({},_0x4b5709,{'id':_0x48de0a(0x1b6),'ref':_0x4271d6,'icon':_0x3e9217}));});_0x28ba74[_0x4c996d(0x1a0)]=_0x4c996d(0x48d);var _0x27b3b1={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4c996d(0x204)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c996d(0x3f4)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'stroke':_0x4c996d(0x2e8),'d':_0x4c996d(0x21d),'strokeLinecap':_0x4c996d(0xef),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c996d(0x3ea),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4c996d(0x42b)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'fill':_0x4c996d(0x3cf),'d':_0x4c996d(0x410),'transform':_0x4c996d(0x2aa)}}]}]}],'defIds':[_0x4c996d(0x42b)]},_0x28d4b6=_0x5398de['forwardRef'](function(_0x349b85,_0x5c6520){const _0x46632f=_0x4c996d;return _0x5398de['createElement'](_0x40becd,Object['assign']({},_0x349b85,{'id':_0x46632f(0x3ab),'ref':_0x5c6520,'icon':_0x27b3b1}));});_0x28d4b6[_0x4c996d(0x1a0)]=_0x4c996d(0x45c);const _0x520cb9={'onlineStatusIcon':_0x4c996d(0x392),'onlineStatusTitle':_0x4c996d(0x147),'onlineStatus':_0x4c996d(0x409),'online':_0x4c996d(0x268),'offline':'univer-offline'};function _0x21fd4e(_0x451db5){const _0x1f6d17=_0x4c996d;switch(_0x451db5){case _0x4b8cf1[_0x1f6d17(0x28b)]:return'collabStatus.offline';case _0x4b8cf1['CONFLICT']:return _0x1f6d17(0x3d5);case _0x4b8cf1[_0x1f6d17(0x115)]:return _0x1f6d17(0x161);case _0x4b8cf1[_0x1f6d17(0x2c1)]:return _0x1f6d17(0x267);case _0x4b8cf1[_0x1f6d17(0x25a)]:case _0x4b8cf1[_0x1f6d17(0x325)]:case _0x4b8cf1[_0x1f6d17(0x225)]:return'collabStatus.syncing';case _0x4b8cf1[_0x1f6d17(0x2a3)]:return'collabStatus.synced';}}function _0x30eb65(_0x21b1e1){const _0x1c9f42=_0x4c996d,{status$:_0x37d6ab}=_0x21b1e1,_0x260985=_0x5d918d['useObservable'](_0x37d6ab,_0x4b8cf1[_0x1c9f42(0x2c1)]),_0x13d8b1=_0x229428[_0x1c9f42(0x306)](_0x229428[_0x1c9f42(0x23a)]),_0x21d40=_0x229428[_0x1c9f42(0x306)](_0x326761[_0x1c9f42(0x368)]),_0x5046a8=_0x260985!==_0x4b8cf1[_0x1c9f42(0x28b)],_0x5d9e0a=_0x13d8b1['t'](_0x21fd4e(_0x260985)),_0x2d6a83=_0x2e5aa8(_0x520cb9[_0x1c9f42(0x18a)],{[_0x520cb9[_0x1c9f42(0x48c)]]:_0x5046a8,[_0x520cb9['offline']]:!_0x5046a8}),_0x2a8889=_0x5046a8?_0x5398de[_0x1c9f42(0x34f)](_0x28d4b6,null):_0x5398de[_0x1c9f42(0x34f)](_0x28ba74,null),_0x4e4ae2=_0x5398de[_0x1c9f42(0x200)](()=>{const _0x413513=_0x1c9f42;_0x5046a8||_0x21d40[_0x413513(0x33d)]();},[_0x5046a8,_0x21d40]);function _0x213f7f(){const _0x2cfc04=_0x1c9f42;return _0x5398de[_0x2cfc04(0x34f)](_0x2cfc04(0xce),{'className':_0x2d6a83,'onClick':_0x4e4ae2},_0x5398de['createElement'](_0x2cfc04(0xce),{'className':_0x520cb9['onlineStatusIcon']},_0x2a8889),_0x5398de[_0x2cfc04(0x34f)](_0x2cfc04(0xce),{'className':_0x520cb9[_0x2cfc04(0x1ec)]},_0x5d9e0a));}return _0x5046a8?_0x213f7f():_0x5398de[_0x1c9f42(0x34f)](_0x71e3dd[_0x1c9f42(0x181)],{'title':_0x13d8b1['t'](_0x1c9f42(0x30e))},_0x213f7f());}var _0x5a62ec=Object[_0x4c996d(0x287)],_0x10ef8c=Object[_0x4c996d(0x16a)],_0x1da7e4=(_0xc349ab,_0x253916,_0x372c47,_0x2da91c)=>{const _0x4979f5=_0x4c996d;for(var _0x2c4461=_0x2da91c>0x1?void 0x0:_0x2da91c?_0x10ef8c(_0x253916,_0x372c47):_0x253916,_0x148d85=_0xc349ab[_0x4979f5(0x260)]-0x1,_0x5a13a8;_0x148d85>=0x0;_0x148d85--)(_0x5a13a8=_0xc349ab[_0x148d85])&&(_0x2c4461=(_0x2da91c?_0x5a13a8(_0x253916,_0x372c47,_0x2c4461):_0x5a13a8(_0x2c4461))||_0x2c4461);return _0x2da91c&&_0x2c4461&&_0x5a62ec(_0x253916,_0x372c47,_0x2c4461),_0x2c4461;},_0x5ea619=(_0x4381c3,_0x3092b6)=>(_0x39b37a,_0x573962)=>_0x3092b6(_0x39b37a,_0x573962,_0x4381c3);_0x326761[_0x4c996d(0x1d1)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x51cfc3,_0x1770cc,_0x1b7ac7,_0x4745b2){const _0x104095=_0x4c996d;super(),_0xb4d35(this,_0x104095(0x461),new _0x4a5f0c['BehaviorSubject'](_0x4b8cf1[_0x104095(0x2c1)])),(this[_0x104095(0x456)]=_0x51cfc3,this[_0x104095(0x43d)]=_0x1770cc,this['_injector']=_0x1b7ac7,this[_0x104095(0x249)]=_0x4745b2,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x3d88a1=_0x4c996d;this['disposeWithMe'](this[_0x3d88a1(0x456)][_0x3d88a1(0x26e)][_0x3d88a1(0x2b6)](_0x4a5f0c[_0x3d88a1(0x19a)](()=>{const _0x15d9c4=_0x3d88a1,_0x2b80ea=this[_0x15d9c4(0x456)][_0x15d9c4(0x428)]();return _0x2b80ea?this['_collaborationController']['getCollabEntity$'](_0x2b80ea[_0x15d9c4(0x40b)]()):_0x4a5f0c['of'](null);}),_0x4a5f0c['switchMap'](_0x181538=>_0x181538?_0x181538[_0x3d88a1(0xd7)]:_0x4a5f0c['of'](_0x4b8cf1[_0x3d88a1(0x2c1)])))[_0x3d88a1(0x451)](_0x34ef77=>{this['_status$']['next'](_0x34ef77);}));}[_0x4c996d(0x2d1)](){const _0x32ab82=_0x4c996d;this[_0x32ab82(0x315)](this['_uiPartsService'][_0x32ab82(0x353)](_0x5d918d['BuiltInUIPart'][_0x32ab82(0x4e3)],()=>_0x229428['connectInjector'](_0x354405({'status$':this[_0x32ab82(0x461)][_0x32ab82(0x228)]()}),this[_0x32ab82(0x112)])));}},_0x326761['DesktopCollaborationStatusDisplayController']=_0x1da7e4([_0x5ea619(0x0,_0x229428[_0x4c996d(0x299)]),_0x5ea619(0x1,_0x5d918d[_0x4c996d(0x2eb)]),_0x5ea619(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x5ea619(0x3,_0x229428[_0x4c996d(0x25c)](_0x326761['CollaborationController']))],_0x326761['DesktopCollaborationStatusDisplayController']);function _0x354405(_0x9ce88c){const {status$:_0x106b13}=_0x9ce88c;return function(){const _0x4b51f6=_0x59fd;return _0x5398de[_0x4b51f6(0x34f)](_0x30eb65,{'status$':_0x106b13});};}const _0x11dc92=_0x229428[_0x4c996d(0x15b)](_0x4c996d(0x4df));var _0x4cf60d=Object['defineProperty'],_0x11a72e=Object['getOwnPropertyDescriptor'],_0x32fe0a=(_0x21f84c,_0x59523f,_0xf1d570,_0x192833)=>{const _0x29c363=_0x4c996d;for(var _0x58fa5f=_0x192833>0x1?void 0x0:_0x192833?_0x11a72e(_0x59523f,_0xf1d570):_0x59523f,_0x48d6c1=_0x21f84c[_0x29c363(0x260)]-0x1,_0x133bbb;_0x48d6c1>=0x0;_0x48d6c1--)(_0x133bbb=_0x21f84c[_0x48d6c1])&&(_0x58fa5f=(_0x192833?_0x133bbb(_0x59523f,_0xf1d570,_0x58fa5f):_0x133bbb(_0x58fa5f))||_0x58fa5f);return _0x192833&&_0x58fa5f&&_0x4cf60d(_0x59523f,_0xf1d570,_0x58fa5f),_0x58fa5f;},_0x200599=(_0x25d915,_0x2b8254)=>(_0x28c167,_0x5d27d5)=>_0x2b8254(_0x28c167,_0x5d27d5,_0x25d915);_0x326761[_0x4c996d(0x374)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x16d421,_0x4c5bcd,_0x4670bc,_0x46477a,_0x1b9437,_0x4fc477){const _0x3c8013=_0x4c996d;super(),this[_0x3c8013(0x174)]=_0x16d421,this[_0x3c8013(0x1e2)]=_0x4c5bcd,this[_0x3c8013(0x369)]=_0x4670bc,this['_localCacheService']=_0x46477a,this['_snapshotService']=_0x1b9437,_0x4fc477?_0x4fc477==null||_0x4fc477['whenReady']()[_0x3c8013(0x17c)](()=>this['_init']()):(this['_logService'][_0x3c8013(0x2b9)](_0x3c8013(0x439),_0x3c8013(0x327)),this[_0x3c8013(0x360)]());}async[_0x4c996d(0x360)](){const _0xd63a9b=_0x4c996d,_0x1bfc14=this[_0xd63a9b(0x174)][_0xd63a9b(0x193)]('unit'),_0x1ec047=this[_0xd63a9b(0x174)]['getParam'](_0xd63a9b(0x462));if(!_0x1bfc14||!_0x1ec047){this['_logService'][_0xd63a9b(0x2b9)](_0xd63a9b(0x439),_0xd63a9b(0x1a9));return;}switch(Number(_0x1ec047)){case _0x367a98['UNIVER_SHEET']:{const _0x16868c=await this[_0xd63a9b(0x137)](_0x1bfc14);this['_setupSubUnitSync'](_0x16868c);break;}case _0x367a98[_0xd63a9b(0x4b2)]:{await this[_0xd63a9b(0x328)](_0x1bfc14);break;}default:{this[_0xd63a9b(0x1e2)][_0xd63a9b(0x28e)](_0xd63a9b(0x439),_0xd63a9b(0x4a3));break;}}}async['_setupSubUnitSync'](_0x3dc38f){const _0x4fb679=_0x4c996d;await this[_0x4fb679(0x10d)](_0x3dc38f),_0x3dc38f[_0x4fb679(0x407)][_0x4fb679(0x2b6)](_0x4a5f0c[_0x4fb679(0xf1)](this['dispose$']))[_0x4fb679(0x451)](_0x1642e6=>{const _0x410db2=_0x4fb679;_0x1642e6&&this[_0x410db2(0x100)](_0x1642e6);}),this[_0x4fb679(0x174)][_0x4fb679(0x420)][_0x4fb679(0x2b6)](_0x4a5f0c['takeUntil'](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3dc38f));}[_0x4c996d(0x100)](_0x35484f,_0x4a7486=!0x1){const _0x3c50d2=_0x4c996d,_0xf2a878=this[_0x3c50d2(0x174)][_0x3c50d2(0x193)](_0x3c50d2(0xf2));_0x35484f[_0x3c50d2(0x471)]()!==_0xf2a878&&this[_0x3c50d2(0x174)][_0x3c50d2(0x1d2)](_0x3c50d2(0xf2),_0x35484f['getSheetId'](),_0x4a7486);}async[_0x4c996d(0x10d)](_0x542c6c){const _0x4dbe47=_0x4c996d;var _0x24c2f4;const _0x3d763c=this[_0x4dbe47(0x174)][_0x4dbe47(0x193)]('subunit');if(!_0x3d763c||!_0x542c6c[_0x4dbe47(0x352)](_0x3d763c)){const _0x2df0c9=_0x542c6c['getUnhiddenWorksheets']()[0x0],_0x46a35a=_0x542c6c[_0x4dbe47(0x352)](_0x2df0c9);if(!_0x46a35a)return;this[_0x4dbe47(0x100)](_0x46a35a,!0x0),await this[_0x4dbe47(0x369)][_0x4dbe47(0x378)](_0x4118a6[_0x4dbe47(0x3ba)]['id'],{'unitId':_0x542c6c[_0x4dbe47(0x40b)](),'subUnitId':_0x2df0c9});return;}((_0x24c2f4=_0x542c6c[_0x4dbe47(0x2f2)]())==null?void 0x0:_0x24c2f4[_0x4dbe47(0x471)]())!==_0x3d763c&&await this[_0x4dbe47(0x369)][_0x4dbe47(0x378)](_0x4118a6[_0x4dbe47(0x3ba)]['id'],{'unitId':_0x542c6c['getUnitId'](),'subUnitId':_0x3d763c});}async[_0x4c996d(0x137)](_0x2d2c3c){const _0x409d01=_0x4c996d;let _0x526774=0x0;const _0x55a141=await this['_localCacheService'][_0x409d01(0x21b)](_0x2d2c3c);return _0x55a141&&(_0x55a141['awaitingChangeset']||_0x55a141[_0x409d01(0x431)][_0x409d01(0x260)]!==0x0)&&(_0x526774=_0x55a141['rev']),_0x526774===0x0&&this[_0x409d01(0x1e2)][_0x409d01(0x2b9)](_0x409d01(0x439),_0x409d01(0x2da)),this[_0x409d01(0x347)][_0x409d01(0x460)](_0x2d2c3c,_0x526774);}async[_0x4c996d(0x328)](_0x3df7f6){const _0x146ee0=_0x4c996d;let _0x47038c=0x0;const _0x576507=await this[_0x146ee0(0x18f)][_0x146ee0(0x21b)](_0x3df7f6);return _0x576507&&(_0x576507[_0x146ee0(0x31b)]||_0x576507['mutations'][_0x146ee0(0x260)]!==0x0)&&(_0x47038c=_0x576507[_0x146ee0(0x188)]),_0x47038c===0x0&&this[_0x146ee0(0x1e2)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x146ee0(0x347)]['loadDoc'](_0x3df7f6,_0x47038c);}},_0x326761[_0x4c996d(0x374)]=_0x32fe0a([_0x200599(0x0,_0x11dc92),_0x200599(0x1,_0x229428[_0x4c996d(0x363)]),_0x200599(0x2,_0x229428[_0x4c996d(0x1e6)]),_0x200599(0x3,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x200599(0x4,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x230)])),_0x200599(0x5,_0x229428['Optional'](_0x29a0cb['IRemoteInstanceService']))],_0x326761['DataLoaderController']);var _0x4d5e62=Object[_0x4c996d(0x287)],_0x4945a9=Object['getOwnPropertyDescriptor'],_0x8fadf2=(_0x51ec2e,_0xd2ca52,_0xe443db,_0x225e28)=>{const _0x29daae=_0x4c996d;for(var _0x3efcef=_0x225e28>0x1?void 0x0:_0x225e28?_0x4945a9(_0xd2ca52,_0xe443db):_0xd2ca52,_0x563177=_0x51ec2e[_0x29daae(0x260)]-0x1,_0x58a874;_0x563177>=0x0;_0x563177--)(_0x58a874=_0x51ec2e[_0x563177])&&(_0x3efcef=(_0x225e28?_0x58a874(_0xd2ca52,_0xe443db,_0x3efcef):_0x58a874(_0x3efcef))||_0x3efcef);return _0x225e28&&_0x3efcef&&_0x4d5e62(_0xd2ca52,_0xe443db,_0x3efcef),_0x3efcef;},_0x6f6fac=(_0xf68521,_0x2a133c)=>(_0x1ac686,_0x5bace4)=>_0x2a133c(_0x1ac686,_0x5bace4,_0xf68521);const _0x31fd7e='DEFAULT_FILE_NAME',_0x5824c2=_0x4c996d(0x283);let _0x42d342=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x1daffc,_0x55dff5){const _0x15bfa0=_0x4c996d;super(),this['_univerInstanceService']=_0x1daffc,this[_0x15bfa0(0x27a)]=_0x55dff5,this[_0x15bfa0(0x360)]();}['_init'](){const _0x2ed917=_0x4c996d;this[_0x2ed917(0x315)](this[_0x2ed917(0x456)]['focused$'][_0x2ed917(0x451)](()=>{const _0x19f967=_0x2ed917;var _0x12e2c0;const _0x2c0656=this['_univerInstanceService'][_0x19f967(0x428)]();let _0x173dad=(_0x12e2c0=this[_0x19f967(0x27a)][_0x19f967(0x2d8)](_0x31fd7e))!=null?_0x12e2c0:_0x5824c2;_0x2c0656 instanceof _0x229428['Workbook']&&(_0x173dad=_0x2c0656[_0x19f967(0x487)]),document[_0x19f967(0x2d6)]=_0x173dad;}));}};_0x42d342=_0x8fadf2([_0x6f6fac(0x0,_0x229428[_0x4c996d(0x299)]),_0x6f6fac(0x1,_0x229428[_0x4c996d(0x274)])],_0x42d342);var _0x35f96a=Object[_0x4c996d(0x287)],_0x12f17d=Object[_0x4c996d(0x16a)],_0x404a75=(_0x3f296c,_0xc21b9f,_0x437300,_0x4c6acd)=>{const _0x3dd5fc=_0x4c996d;for(var _0x45cd47=_0x4c6acd>0x1?void 0x0:_0x4c6acd?_0x12f17d(_0xc21b9f,_0x437300):_0xc21b9f,_0x412898=_0x3f296c[_0x3dd5fc(0x260)]-0x1,_0x43398a;_0x412898>=0x0;_0x412898--)(_0x43398a=_0x3f296c[_0x412898])&&(_0x45cd47=(_0x4c6acd?_0x43398a(_0xc21b9f,_0x437300,_0x45cd47):_0x43398a(_0x45cd47))||_0x45cd47);return _0x4c6acd&&_0x45cd47&&_0x35f96a(_0xc21b9f,_0x437300,_0x45cd47),_0x45cd47;},_0x1f56fa=(_0x1dae6a,_0x37939f)=>(_0x43d20b,_0x357174)=>_0x37939f(_0x43d20b,_0x357174,_0x1dae6a);let _0x2d5dc0=class{constructor(_0x20770a,_0x3f0cb9,_0x474fc2){const _0xc2e947=_0x4c996d;this[_0xc2e947(0x27a)]=_0x20770a,this[_0xc2e947(0x4a2)]=_0x3f0cb9,this[_0xc2e947(0x22a)]=_0x474fc2,this[_0xc2e947(0x412)]();}['init'](){const _0x358116=_0x4c996d;this['_httpService'][_0x358116(0x335)]({'priority':0x1,'interceptor':(_0x471b5c,_0x5979d0)=>_0x5979d0(_0x471b5c)[_0x358116(0x2b6)](_0x4a5f0c[_0x358116(0x23e)](async _0x4daafe=>{const _0x4e8a72=_0x358116,_0x59e303=_0x4daafe;if(_0x59e303[_0x4e8a72(0x32e)]===0x191&&window[_0x4e8a72(0xf4)](this[_0x4e8a72(0x22a)]['t'](_0x4e8a72(0x227)))){const _0x434cd3=window['encodeURIComponent'](window['location']['href']);window['location'][_0x4e8a72(0x22d)]=this[_0x4e8a72(0x414)]()+_0x4e8a72(0x12e)+_0x434cd3;}return _0x59e303;}))});}['_getLoginPath'](){const _0x3adaf8=_0x4c996d;var _0x591429,_0x4ba10e;const _0x280708=this['_configService'][_0x3adaf8(0x2d8)](_0x2c7366),_0x38d357=this[_0x3adaf8(0x27a)][_0x3adaf8(0x2d8)](_0x4dd3a7);return(_0x4ba10e=(_0x591429=_0x38d357==null?void 0x0:_0x38d357[_0x3adaf8(0x322)])!=null?_0x591429:_0x280708)!=null?_0x4ba10e:_0x53291b;}};_0x2d5dc0=_0x404a75([_0x1f56fa(0x0,_0x229428['IConfigService']),_0x1f56fa(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x1f56fa(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)]))],_0x2d5dc0);var _0x2d5db4=Object['defineProperty'],_0x2eb059=Object['getOwnPropertyDescriptor'],_0x43e591=(_0x2c7794,_0x1ca7e1,_0x49a72d,_0x461278)=>{const _0x3474e5=_0x4c996d;for(var _0x9ee61=_0x461278>0x1?void 0x0:_0x461278?_0x2eb059(_0x1ca7e1,_0x49a72d):_0x1ca7e1,_0x2d4307=_0x2c7794[_0x3474e5(0x260)]-0x1,_0x11984e;_0x2d4307>=0x0;_0x2d4307--)(_0x11984e=_0x2c7794[_0x2d4307])&&(_0x9ee61=(_0x461278?_0x11984e(_0x1ca7e1,_0x49a72d,_0x9ee61):_0x11984e(_0x9ee61))||_0x9ee61);return _0x461278&&_0x9ee61&&_0x2d5db4(_0x1ca7e1,_0x49a72d,_0x9ee61),_0x9ee61;},_0x485ecd=(_0x5a1a78,_0x17e438)=>(_0x3b6176,_0x34fb2d)=>_0x17e438(_0x3b6176,_0x34fb2d,_0x5a1a78);const _0x6362c5=_0x4c996d(0x473),_0x4dcc75=_0x4c996d(0x2fb);_0x326761[_0x4c996d(0x3be)]=class extends _0x229428['Disposable']{constructor(_0x1c2797,_0x19bd4c){const _0x595ee6=_0x4c996d;super(),this['_HTTPService']=_0x1c2797,this['_configService']=_0x19bd4c,this[_0x595ee6(0x13b)]();}[_0x4c996d(0x13b)](){const _0x260871=_0x4c996d,_0x5c0cb1=this;this['disposeWithMe'](this[_0x260871(0x302)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x1d2d7f['MergeInterceptorFactory']({'isMatch'(_0x4aac68){const _0x223027=_0x260871;var _0x47b748;if(_0x4aac68['method']==='POST'&&((_0x47b748=_0x4aac68[_0x223027(0x1a6)])!=null&&_0x47b748[_0x223027(0x3bd)])){const {objectID:_0x1b4edb,objectType:_0x8e413a}=_0x4aac68[_0x223027(0x1a6)][_0x223027(0x3bd)]||{};if(!_0x1b4edb||_0x8e413a===void 0x0)return!0x1;const _0x43be90=_0x5c0cb1[_0x223027(0x29c)]()+'/'+_0x8e413a+_0x223027(0x14a)+_0x1b4edb+_0x223027(0x421);if(_0x4aac68[_0x223027(0x1d3)]===_0x43be90)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xdd02f1){const _0x5f4813=_0x260871;var _0x2170b3;return(_0x2170b3=_0xdd02f1['requestParams'])==null?void 0x0:_0x2170b3[_0x5f4813(0x3bd)];},'mergeParamsToRequest'(_0x5e4f25,_0x3876cc){const _0x529f20=_0x260871,_0x2d11e4=_0x5c0cb1[_0x529f20(0x29c)]()+'/-/object/-/batch_allowed',_0x37422b=_0x5e4f25[_0x529f20(0x459)]((_0x2f7cc3,_0x5a3ff3)=>{const _0x24c3b8=_0x529f20,{unitID:_0x5f0f51,objectID:_0x16b446,objectType:_0x3f80a2,actions:_0x94fe7}=_0x5a3ff3;return _0x2f7cc3[_0x5f0f51]||(_0x2f7cc3[_0x5f0f51]={}),_0x2f7cc3[_0x5f0f51][_0x16b446]||(_0x2f7cc3[_0x5f0f51][_0x16b446]={'objectID':_0x16b446,'objectType':_0x3f80a2,'actions':[]}),_0x2f7cc3[_0x5f0f51][_0x16b446][_0x24c3b8(0x294)][_0x24c3b8(0x2be)](..._0x94fe7),_0x2f7cc3;},{}),_0x29daff=[];for(const _0x5d4f17 in _0x37422b)for(const _0x50bcde in _0x37422b[_0x5d4f17]){const {actions:_0x3a4034,objectType:_0x4f7ee5}=_0x37422b[_0x5d4f17][_0x50bcde],_0xe644ca=[...new Set(_0x3a4034)];_0x29daff['push']({'unitID':_0x5d4f17,'objectID':_0x50bcde,'objectType':_0x4f7ee5,'actions':_0xe644ca});}return new _0x1d2d7f[(_0x529f20(0x29e))](_0x529f20(0x3c5),_0x2d11e4,{'headers':_0x3876cc[_0x529f20(0x495)],'withCredentials':_0x3876cc[_0x529f20(0x36d)],'responseType':_0x3876cc[_0x529f20(0x32d)],'body':{'requests':_0x29daff}});}},{'distributeResult'(_0x39f6b7,_0x2ab3dd){const {objectActions:_0x23e749}=_0x39f6b7;return _0x2ab3dd['map'](_0xcfefb1=>{const _0x2811ad=_0x59fd,{unitID:_0x21613b,objectID:_0x5c9b4e,actions:_0x25d5a2}=_0xcfefb1,_0x148384=_0x23e749[_0x2811ad(0x180)](_0x5708cd=>_0x5708cd['unitID']===_0x21613b&&_0x5708cd['objectID']===_0x5c9b4e),_0x585d12=_0x25d5a2[_0x2811ad(0x3fb)](_0x1c22cc=>_0x148384==null?void 0x0:_0x148384['actions'][_0x2811ad(0x180)](_0x5d025f=>_0x5d025f['action']===_0x1c22cc))[_0x2811ad(0x232)](_0x4c78bd=>!!_0x4c78bd);return{'config':_0xcfefb1,'result':{'actions':_0x585d12,'error':_0x39f6b7['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x4652ab=_0x4c996d;var _0x42ac52,_0x29192d;const _0x13ff56=this[_0x4652ab(0x27a)]['getConfig'](_0x6362c5),_0x1ce58f=this[_0x4652ab(0x27a)][_0x4652ab(0x2d8)](_0x4dd3a7);return(_0x29192d=(_0x42ac52=_0x1ce58f==null?void 0x0:_0x1ce58f['authzUrl'])!=null?_0x42ac52:_0x13ff56)!=null?_0x29192d:_0x4dcc75;}async[_0x4c996d(0x4cf)](_0x1aaee7){const _0x1ccf68=_0x4c996d,_0x270ccd=this['_getAPIPrefixPath']()+'/'+_0x1aaee7[_0x1ccf68(0x2c9)]+'/object';return(await this[_0x1ccf68(0x302)][_0x1ccf68(0x2de)](_0x270ccd,{'body':_0x1aaee7}))[_0x1ccf68(0x3bd)][_0x1ccf68(0x1b1)]||'';}async[_0x4c996d(0x3b1)](_0x19df73){const _0x45b226=_0x4c996d,_0x4f02ba=this[_0x45b226(0x29c)]()+_0x45b226(0x370);return(await this[_0x45b226(0x302)][_0x45b226(0x2de)](_0x4f02ba,{'body':_0x19df73}))[_0x45b226(0x3bd)]['objects'];}async[_0x4c996d(0x33c)](_0x275001){const _0x299be6=_0x4c996d,_0x109cf1=this[_0x299be6(0x29c)]()+'/'+_0x275001[_0x299be6(0x2c9)]+_0x299be6(0x14a)+_0x275001['objectID'];await this[_0x299be6(0x302)]['put'](_0x109cf1,{'body':_0x275001});}async[_0x4c996d(0x1f5)](_0x357814){const _0x350a8b=_0x4c996d,_0x401b06=this[_0x350a8b(0x29c)]()+'/'+_0x357814['objectType']+_0x350a8b(0x14a)+_0x357814[_0x350a8b(0x1b1)]+_0x350a8b(0x421);return(await this[_0x350a8b(0x302)][_0x350a8b(0x2de)](_0x401b06,{'body':_0x357814}))['body'][_0x350a8b(0x294)];}async[_0x4c996d(0x239)](_0x6d9407){const _0x57cc57=_0x4c996d,_0x2e2c0d=this[_0x57cc57(0x29c)]()+_0x57cc57(0x447);return(await this['_HTTPService'][_0x57cc57(0x2de)](_0x2e2c0d,{'body':{'requests':_0x6d9407}}))['body'][_0x57cc57(0x37e)];}async[_0x4c996d(0x1fb)](_0x3596c6){const _0x4195e0=_0x4c996d,_0x341d09=this[_0x4195e0(0x29c)]()+'/'+_0x3596c6[_0x4195e0(0x2c9)]+_0x4195e0(0x2f0),_0x4cba0f=await this[_0x4195e0(0x302)][_0x4195e0(0x2de)](_0x341d09,{'body':_0x3596c6});return{'roles':_0x4cba0f[_0x4195e0(0x3bd)]['roles'],'actions':_0x4cba0f[_0x4195e0(0x3bd)][_0x4195e0(0x294)]};}async[_0x4c996d(0x43f)](_0x42cc07){const _0x14c594=_0x4c996d,_0xcf19ad=this['_getAPIPrefixPath']()+_0x14c594(0x397);await this['_HTTPService'][_0x14c594(0x4d4)](_0xcf19ad,{'params':{'collaboratorID':_0x42cc07[_0x14c594(0x36f)],'objectID':_0x42cc07['objectID'],'unitID':_0x42cc07['unitID']}});}async['updateCollaborator'](_0x3efba5){const _0x58a2f8=_0x4c996d,_0x4fb185=this[_0x58a2f8(0x29c)]()+_0x58a2f8(0x397);await this['_HTTPService'][_0x58a2f8(0x34a)](_0x4fb185,{'body':_0x3efba5});}async['createCollaborator'](_0x458fbf){const _0x5be3b=_0x4c996d,_0x4a3195=this['_getAPIPrefixPath']()+_0x5be3b(0x397);await this[_0x5be3b(0x302)][_0x5be3b(0x2de)](_0x4a3195,{'body':_0x458fbf});}async[_0x4c996d(0x245)](_0x27dc5f){const _0x5347aa=_0x4c996d,_0x46888d=this[_0x5347aa(0x29c)]()+_0x5347aa(0x397);return(await this[_0x5347aa(0x302)][_0x5347aa(0x453)](_0x46888d,{'params':{'objectID':_0x27dc5f[_0x5347aa(0x1b1)],'unitID':_0x27dc5f[_0x5347aa(0x341)]}}))[_0x5347aa(0x3bd)]['collaborators'];}async['putCollaborators'](_0xfd8598){const _0x3421cb=_0x4c996d,_0x39caca=this[_0x3421cb(0x29c)]()+_0x3421cb(0x397);await this[_0x3421cb(0x302)][_0x3421cb(0x158)](_0x39caca,{'body':_0xfd8598});}},_0x326761[_0x4c996d(0x3be)]=_0x43e591([_0x485ecd(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x485ecd(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x274)]))],_0x326761[_0x4c996d(0x3be)]);var _0x2ead66=Object['defineProperty'],_0x81c5d9=Object['getOwnPropertyDescriptor'],_0xe58cca=(_0x59ff8c,_0x2ff4bc,_0x3ad0c3,_0x1ad370)=>{for(var _0x577440=_0x1ad370>0x1?void 0x0:_0x1ad370?_0x81c5d9(_0x2ff4bc,_0x3ad0c3):_0x2ff4bc,_0xf9594a=_0x59ff8c['length']-0x1,_0x4d0945;_0xf9594a>=0x0;_0xf9594a--)(_0x4d0945=_0x59ff8c[_0xf9594a])&&(_0x577440=(_0x1ad370?_0x4d0945(_0x2ff4bc,_0x3ad0c3,_0x577440):_0x4d0945(_0x577440))||_0x577440);return _0x1ad370&&_0x577440&&_0x2ead66(_0x2ff4bc,_0x3ad0c3,_0x577440),_0x577440;},_0x17031b=(_0x32d9ad,_0x496e0f)=>(_0x5476aa,_0x18c35f)=>_0x496e0f(_0x5476aa,_0x18c35f,_0x32d9ad);let _0x48f009=class{constructor(_0x1d20a5){const _0x904f36=_0x4c996d;this['_httpService']=_0x1d20a5,this[_0x904f36(0x3d7)]();}[_0x4c996d(0x3d7)](){const _0xbdd2ef=_0x4c996d;this[_0xbdd2ef(0x4a2)]['registerHTTPInterceptor']({'interceptor':(_0x507dc8,_0x5dced1)=>{const _0xf50c39=_0xbdd2ef,_0x5f3294=_0x507dc8[_0xf50c39(0x495)],_0xde4187=_0x1f5326['getAttachHeader']();return _0xde4187&&_0x5f3294[_0xf50c39(0x22e)](_0xf50c39(0x3bc),_0xde4187),_0x5dced1(_0x507dc8);}});}};_0x48f009=_0xe58cca([_0x17031b(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)]))],_0x48f009);var _0x1d0b93=Object[_0x4c996d(0x287)],_0x46cef5=Object[_0x4c996d(0x16a)],_0x227620=(_0x59d752,_0x4404a3,_0x50b2ff,_0x1c0d9e)=>{const _0x5b3fbc=_0x4c996d;for(var _0x5ebe86=_0x1c0d9e>0x1?void 0x0:_0x1c0d9e?_0x46cef5(_0x4404a3,_0x50b2ff):_0x4404a3,_0x59275c=_0x59d752[_0x5b3fbc(0x260)]-0x1,_0x1fdb2d;_0x59275c>=0x0;_0x59275c--)(_0x1fdb2d=_0x59d752[_0x59275c])&&(_0x5ebe86=(_0x1c0d9e?_0x1fdb2d(_0x4404a3,_0x50b2ff,_0x5ebe86):_0x1fdb2d(_0x5ebe86))||_0x5ebe86);return _0x1c0d9e&&_0x5ebe86&&_0x1d0b93(_0x4404a3,_0x50b2ff,_0x5ebe86),_0x5ebe86;},_0x44ee1c=(_0x51955d,_0x2309e2)=>(_0x43bef7,_0x3b35ee)=>_0x2309e2(_0x43bef7,_0x3b35ee,_0x51955d);const _0x3b6fae=[_0x4c996d(0x345),_0x4c996d(0x3c7),_0x4c996d(0x109),'image/gif','image/bmp'],_0x16b62d=0x5*0x400*0x400,_0x4a6771=_0x4c996d(0xe1),_0x1309ed=_0x4c996d(0x3ac),_0x2752e7='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x56902a=_0x4c996d(0x20b);_0x326761['ImageIoService']=class{constructor(_0x19a6d9,_0x51e215,_0x11211c){const _0x5f34d5=_0x4c996d;_0xb4d35(this,_0x5f34d5(0x31c),0x0),_0xb4d35(this,_0x5f34d5(0x494),new _0x4a5f0c[(_0x5f34d5(0x3a8))]()),_0xb4d35(this,_0x5f34d5(0x151),this[_0x5f34d5(0x494)]),_0xb4d35(this,_0x5f34d5(0x454),new Map()),(this[_0x5f34d5(0x4a2)]=_0x19a6d9,this[_0x5f34d5(0x27a)]=_0x51e215,this['_univerInstanceService']=_0x11211c);}[_0x4c996d(0xca)](_0x2ec5f8){const _0x1b92c7=_0x4c996d;this[_0x1b92c7(0x31c)]=_0x2ec5f8,this[_0x1b92c7(0x494)][_0x1b92c7(0x256)](_0x2ec5f8);}['getImageSourceCache'](_0x3d5806,_0x5a81cd){const _0x29a436=_0x4c996d;if(_0x5a81cd===_0x36c3dd[_0x29a436(0x481)][_0x29a436(0x2ca)]){const _0x24e399=new Image();return _0x24e399[_0x29a436(0x26f)]=_0x3d5806,_0x24e399;}return this['_imageSourceCache'][_0x29a436(0x453)](_0x3d5806);}[_0x4c996d(0x13c)](_0x1c141a,_0x554c0c,_0x1e0ea5){const _0x22142f=_0x4c996d;_0x554c0c===_0x36c3dd[_0x22142f(0x481)][_0x22142f(0x2ca)]||_0x1e0ea5==null||this['_imageSourceCache'][_0x22142f(0x22e)](_0x1c141a,_0x1e0ea5);}async[_0x4c996d(0x435)](_0x36b4e){const _0x235711=_0x4c996d;try{const _0x506db8=this[_0x235711(0x488)](this[_0x235711(0x19b)](),''+_0x36b4e),_0x5787ce=(await this['_httpService'][_0x235711(0x453)](_0x506db8))[_0x235711(0x3bd)];if(_0x5787ce[_0x235711(0x28e)]&&_0x5787ce[_0x235711(0x28e)]['code']===_0x4ea1f0['OK']){const _0x213794=new URL(_0x5787ce[_0x235711(0x1d3)],this[_0x235711(0x2b1)]())[_0x235711(0x1af)]();return Promise[_0x235711(0x382)](_0x213794);}return Promise[_0x235711(0x1dd)](_0x5787ce[_0x235711(0x28e)]);}catch(_0x40a6a9){return Promise[_0x235711(0x1dd)](_0x40a6a9);}}async[_0x4c996d(0x1c7)](_0x64a091){const _0x5eb9d5=_0x4c996d;let _0x1ca665='';if(!_0x3b6fae['includes'](_0x64a091[_0x5eb9d5(0x462)]))return this['_decreaseWaiting'](),Promise[_0x5eb9d5(0x1dd)](new Error(_0x36c3dd[_0x5eb9d5(0x298)][_0x5eb9d5(0x16d)]));if(_0x64a091[_0x5eb9d5(0x423)]>_0x16b62d)return this[_0x5eb9d5(0x4a1)](),Promise[_0x5eb9d5(0x1dd)](new Error(_0x36c3dd['ImageUploadStatusType'][_0x5eb9d5(0x43c)]));try{const _0x3ebaa4=new FormData();_0x3ebaa4[_0x5eb9d5(0x475)]('file',_0x64a091);const _0x56f6e0=this['_univerInstanceService'][_0x5eb9d5(0x428)](),_0x27941c=_0x56f6e0==null?void 0x0:_0x56f6e0[_0x5eb9d5(0x40b)]();if(!_0x27941c)throw new Error('unitId\x20is\x20not\x20found');const _0x2f288e=this[_0x5eb9d5(0xf5)]()+'?size='+_0x64a091[_0x5eb9d5(0x423)][_0x5eb9d5(0x1af)]()+'&source='+_0x55c55a[_0x5eb9d5(0x1a8)]+_0x5eb9d5(0x445)+encodeURIComponent(_0x27941c),_0x1607a=await(await fetch(_0x2f288e,{'method':_0x5eb9d5(0x3c5),'body':_0x3ebaa4}))[_0x5eb9d5(0x1a5)]();if(typeof _0x1607a[_0x5eb9d5(0x203)]!='string')return this[_0x5eb9d5(0x4a1)](),Promise['reject'](new Error(_0x36c3dd[_0x5eb9d5(0x298)][_0x5eb9d5(0x142)]));_0x1ca665=_0x1607a[_0x5eb9d5(0x203)];}catch{return this[_0x5eb9d5(0x4a1)](),Promise['reject'](new Error(_0x36c3dd[_0x5eb9d5(0x298)]['ERROR_IMAGE']));}return new Promise((_0x3863ec,_0x345fb0)=>{const _0x5b8754=_0x5eb9d5,_0x583c2a=new FileReader();_0x583c2a[_0x5b8754(0x24e)](_0x64a091),_0x583c2a[_0x5b8754(0x2ba)]=_0x16db7c=>{const _0x4476c9=_0x5b8754;var _0x303ed3;const _0x366603=(_0x303ed3=_0x16db7c[_0x4476c9(0x186)])==null?void 0x0:_0x303ed3[_0x4476c9(0x37d)];if(_0x366603==null){this[_0x4476c9(0x4a1)](),_0x345fb0(new Error(_0x36c3dd[_0x4476c9(0x298)][_0x4476c9(0x142)]));return;}const _0x500f3a=_0x229428[_0x4476c9(0x179)][_0x4476c9(0x3bb)](0x6);_0x3863ec({'imageId':_0x500f3a,'imageSourceType':_0x36c3dd[_0x4476c9(0x481)][_0x4476c9(0x201)],'source':_0x1ca665,'base64Cache':_0x366603,'status':_0x36c3dd[_0x4476c9(0x298)][_0x4476c9(0x4a4)]}),this[_0x4476c9(0x4a1)]();};});}[_0x4c996d(0xf5)](){const _0x2e7667=_0x4c996d;var _0x248f49,_0x1af71d;const _0xbf8187=this[_0x2e7667(0x27a)]['getConfig'](_0x4a6771),_0x57e13b=this[_0x2e7667(0x27a)][_0x2e7667(0x2d8)](_0x4dd3a7);return(_0x1af71d=(_0x248f49=_0x57e13b==null?void 0x0:_0x57e13b['uploadFileServerUrl'])!=null?_0x248f49:_0xbf8187)!=null?_0x1af71d:_0x1309ed;}['_getSignURL'](){const _0x8d9b75=_0x4c996d;var _0x45dcc5,_0x315db2;const _0x11bc9e=this[_0x8d9b75(0x27a)]['getConfig'](_0x2752e7),_0x9b84d0=this[_0x8d9b75(0x27a)]['getConfig'](_0x4dd3a7);return(_0x315db2=(_0x45dcc5=_0x9b84d0==null?void 0x0:_0x9b84d0[_0x8d9b75(0x259)])!=null?_0x45dcc5:_0x11bc9e)!=null?_0x315db2:_0x56902a;}[_0x4c996d(0x2b1)](){const _0x4eac9a=_0x4c996d;var _0x2f2d0f;const _0x64a1f7=this[_0x4eac9a(0x27a)]['getConfig'](_0x4dd3a7);return(_0x2f2d0f=_0x64a1f7==null?void 0x0:_0x64a1f7[_0x4eac9a(0x111)])!=null?_0x2f2d0f:location[_0x4eac9a(0x155)];}[_0x4c996d(0x488)](_0x460b3b,_0x404cc3){const _0x114fa3=_0x4c996d;return _0x460b3b[_0x114fa3(0x162)](_0x114fa3(0x271),_0x404cc3);}[_0x4c996d(0x4a1)](){const _0x389f6e=_0x4c996d;this['_waitCount']-=0x1,this[_0x389f6e(0x494)]['next'](this[_0x389f6e(0x31c)]);}},_0x326761[_0x4c996d(0x34b)]=_0x227620([_0x44ee1c(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x44ee1c(0x1,_0x229428[_0x4c996d(0x274)]),_0x44ee1c(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x299)]))],_0x326761['ImageIoService']);var _0x7d46b9=Object['defineProperty'],_0x2607e1=Object[_0x4c996d(0x16a)],_0x40b314=(_0x3755ca,_0x5cc9ee,_0x55ef42,_0x4620b8)=>{const _0x477fa2=_0x4c996d;for(var _0x581b6a=_0x4620b8>0x1?void 0x0:_0x4620b8?_0x2607e1(_0x5cc9ee,_0x55ef42):_0x5cc9ee,_0x1192a0=_0x3755ca[_0x477fa2(0x260)]-0x1,_0x23bc44;_0x1192a0>=0x0;_0x1192a0--)(_0x23bc44=_0x3755ca[_0x1192a0])&&(_0x581b6a=(_0x4620b8?_0x23bc44(_0x5cc9ee,_0x55ef42,_0x581b6a):_0x23bc44(_0x581b6a))||_0x581b6a);return _0x4620b8&&_0x581b6a&&_0x7d46b9(_0x5cc9ee,_0x55ef42,_0x581b6a),_0x581b6a;},_0x1e9df0=(_0x57849c,_0x4fd64a)=>(_0x13d3d4,_0x12311e)=>_0x4fd64a(_0x13d3d4,_0x12311e,_0x57849c);let _0x172ba0=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x1bdf9f,_0x437a40,_0x20f9ca,_0x1d7d7b,_0x2141cc){const _0x58bda7=_0x4c996d;super(),this[_0x58bda7(0x112)]=_0x1bdf9f,this[_0x58bda7(0x456)]=_0x437a40,this[_0x58bda7(0x300)]=_0x20f9ca,this['_collaborationSessionService']=_0x1d7d7b,this[_0x58bda7(0x1ca)]=_0x2141cc,this[_0x58bda7(0x3a3)](),this['_initCloseConn']();}[_0x4c996d(0x41e)](){const _0x20d648=_0x4c996d,_0x237764=async _0x3f4d98=>{const _0x572050=_0x59fd;(await this[_0x572050(0x1cf)][_0x572050(0x339)](_0x3f4d98))[_0x572050(0x13f)][_0x572050(0x2b6)](_0x2032d6[_0x572050(0x232)](_0x289f55=>_0x289f55[_0x572050(0x1c0)]===_0x16a1a7[_0x572050(0x15d)][_0x572050(0x17b)]),_0x2032d6[_0x572050(0xf1)](this[_0x572050(0x47b)]))[_0x572050(0x451)](_0x10e2ee=>{const _0x21297d=_0x572050,_0x1eb6e2=_0x10e2ee,{reason:_0x276b0a}=_0x1eb6e2['data'];this[_0x21297d(0x112)][_0x21297d(0x453)](_0x5d918d[_0x21297d(0x19e)])[_0x21297d(0x1d9)]({'type':_0x71e3dd[_0x21297d(0x123)][_0x21297d(0x3ca)],'content':this[_0x21297d(0x1ca)]['t'](_0x21297d(0x17a))+'('+_0x276b0a+')'}),this['_permissionService']['updatePermissionPoint'](new _0x4118a6[(_0x21297d(0x4a7))](_0x3f4d98)['id'],!0x1),this[_0x21297d(0x1cf)]['closeSession'](_0x3f4d98);});};_0x4a5f0c[_0x20d648(0x49f)](this[_0x20d648(0x456)][_0x20d648(0x493)](_0x229428[_0x20d648(0x2b5)][_0x20d648(0x11a)]),this[_0x20d648(0x456)][_0x20d648(0x493)](_0x229428[_0x20d648(0x2b5)][_0x20d648(0x4b2)]))[_0x20d648(0x2b6)](_0x2032d6[_0x20d648(0x3fb)](_0xcab50c=>_0xcab50c[_0x20d648(0x40b)]()),_0x2032d6['filter'](_0x12d1c8=>!_0x229428[_0x20d648(0x401)](_0x12d1c8)),_0x2032d6[_0x20d648(0xf1)](this[_0x20d648(0x47b)]))[_0x20d648(0x451)](_0x120f79=>{_0x237764(_0x120f79);});}[_0x4c996d(0x3a3)](){const _0x50341d=_0x4c996d,_0x3cd5e5=async _0x264d2b=>{const _0x248edc=_0x59fd;(await this['_collaborationSessionService']['requireSession'](_0x264d2b))[_0x248edc(0x13f)][_0x248edc(0x2b6)](_0x2032d6[_0x248edc(0x232)](_0x583173=>_0x583173[_0x248edc(0x1c0)]===_0x16a1a7['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),_0x2032d6[_0x248edc(0xf1)](this[_0x248edc(0x47b)]))[_0x248edc(0x451)](_0x232abb=>{const _0x5dfc05=_0x248edc,_0x42b0f5=_0x232abb,{objectId:_0x2904ae}=_0x42b0f5[_0x5dfc05(0x223)],_0x3b2db2=this[_0x5dfc05(0x112)]['get'](_0x52d884[_0x5dfc05(0x1f8)]);_0x2904ae===_0x264d2b?_0x3b2db2[_0x5dfc05(0x185)](_0x264d2b):_0x3b2db2[_0x5dfc05(0x2dc)](_0x264d2b,_0x2904ae);});};_0x4a5f0c[_0x50341d(0x49f)](this[_0x50341d(0x456)]['getTypeOfUnitAdded$'](_0x229428[_0x50341d(0x2b5)][_0x50341d(0x11a)]),this[_0x50341d(0x456)]['getTypeOfUnitAdded$'](_0x229428[_0x50341d(0x2b5)][_0x50341d(0x4b2)]))[_0x50341d(0x2b6)](_0x2032d6[_0x50341d(0x3fb)](_0x98eb16=>_0x98eb16[_0x50341d(0x40b)]()),_0x2032d6[_0x50341d(0x232)](_0x44d3a5=>!_0x229428[_0x50341d(0x401)](_0x44d3a5)),_0x2032d6[_0x50341d(0xf1)](this['dispose$']))['subscribe'](_0x3180d4=>{_0x3cd5e5(_0x3180d4);});}};_0x172ba0=_0x40b314([_0x1e9df0(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x1e9df0(0x1,_0x229428[_0x4c996d(0x299)]),_0x1e9df0(0x2,_0x229428[_0x4c996d(0x4bb)]),_0x1e9df0(0x3,_0x229428['Inject'](_0x326761['CollaborationSessionService'])),_0x1e9df0(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)]))],_0x172ba0);var _0x2a098a=Object[_0x4c996d(0x287)],_0x301ee9=Object['getOwnPropertyDescriptor'],_0x21bbf3=(_0x399410,_0xb5167a,_0x407c47,_0x493b4a)=>{for(var _0x432a86=_0x493b4a>0x1?void 0x0:_0x493b4a?_0x301ee9(_0xb5167a,_0x407c47):_0xb5167a,_0x29afee=_0x399410['length']-0x1,_0x23948b;_0x29afee>=0x0;_0x29afee--)(_0x23948b=_0x399410[_0x29afee])&&(_0x432a86=(_0x493b4a?_0x23948b(_0xb5167a,_0x407c47,_0x432a86):_0x23948b(_0x432a86))||_0x432a86);return _0x493b4a&&_0x432a86&&_0x2a098a(_0xb5167a,_0x407c47,_0x432a86),_0x432a86;},_0x534688=(_0x5bb78d,_0x35d181)=>(_0x546652,_0x85c23b)=>_0x35d181(_0x546652,_0x85c23b,_0x5bb78d);_0x326761[_0x4c996d(0x143)]=class{constructor(_0x54656c,_0x21b061){const _0x286e3d=_0x4c996d;this[_0x286e3d(0x27a)]=_0x54656c,this[_0x286e3d(0x4a2)]=_0x21b061;}async[_0x4c996d(0x1d7)](_0x3bd6d9,_0x1a82eb){const _0x2b82eb=_0x4c996d;var _0x4d20af;const {unitID:_0x7a3fa4,type:_0x29fdd9,revision:_0x2b50fe=0x0}=_0x1a82eb,_0x35bd83=this[_0x2b82eb(0xe7)]()+'/'+_0x29fdd9+_0x2b82eb(0x4ae)+_0x7a3fa4+_0x2b82eb(0x290)+_0x2b50fe,_0x378c66=(await this[_0x2b82eb(0x4a2)][_0x2b82eb(0x453)](_0x35bd83))['body'],_0x2c137f=(_0x4d20af=_0x378c66[_0x2b82eb(0x101)])==null?void 0x0:_0x4d20af[_0x2b82eb(0x27e)];if(_0x2c137f){const _0x1fdd2c=_0x2c137f==null?void 0x0:_0x2c137f['originalMeta'],_0x2126a0=_0x16a1a7[_0x2b82eb(0x3e7)]['encode'](_0x16a1a7['b64DecodeUnicode'](_0x1fdd2c));_0x2c137f[_0x2b82eb(0x18d)]=_0x2126a0,Object[_0x2b82eb(0x48f)](_0x2c137f[_0x2b82eb(0xe5)])[_0x2b82eb(0x139)](([,_0x48fb44])=>{const _0xada3c8=_0x2b82eb,_0x132774=_0x48fb44['originalMeta'],_0x32cdb2=_0x16a1a7['textEncoder'][_0xada3c8(0x490)](_0x16a1a7['b64DecodeUnicode'](_0x132774));_0x48fb44[_0xada3c8(0x18d)]=_0x32cdb2;});}return _0x378c66;}async[_0x4c996d(0x440)](_0xfe436c,_0x383345){const _0x2fcb52=_0x4c996d,{unitID:_0x331e85,type:_0x2a48bc,blockID:_0x1d50bb}=_0x383345,_0x5cf3cd=this[_0x2fcb52(0x41c)]()+'/'+_0x2a48bc+_0x2fcb52(0x4ae)+_0x331e85+'/block/'+_0x1d50bb;return(await this[_0x2fcb52(0x4a2)]['get'](_0x5cf3cd))[_0x2fcb52(0x3bd)];}async[_0x4c996d(0xfb)](_0x3ff9bb,_0x41cd41){const _0x18c098=_0x4c996d,{unitID:_0x1f8575,type:_0x48ecc5,blockID:_0x33a483}=_0x41cd41,_0x31d788=this[_0x18c098(0x41c)]()+_0x18c098(0x26d)+_0x48ecc5+_0x18c098(0x4ae)+_0x1f8575+_0x18c098(0x26d)+_0x33a483;return(await this[_0x18c098(0x4a2)]['get'](_0x31d788))[_0x18c098(0x3bd)];}async['fetchMissingChangesets'](_0x27a894,_0x537b6d){const _0x122d31=_0x4c996d,{unitID:_0xf7ac27,type:_0xf3d30d,from:_0x45c9f1,to:_0x3f2564}=_0x537b6d,_0x2d8d3b=this['_getAPIPrefix']()+'/'+_0xf3d30d+'/unit/'+_0xf7ac27+_0x122d31(0x321)+_0x45c9f1+_0x122d31(0x3b2)+_0x3f2564;return(await this[_0x122d31(0x4a2)][_0x122d31(0x453)](_0x2d8d3b))[_0x122d31(0x3bd)];}[_0x4c996d(0xe7)](){const _0x3ab4f2=_0x4c996d;var _0x422135;return(_0x422135=this[_0x3ab4f2(0x27a)][_0x3ab4f2(0x2d8)](_0x19655e))!=null?_0x422135:this[_0x3ab4f2(0x41c)]();}[_0x4c996d(0x41c)](){const _0x3e409b=_0x4c996d;var _0x760c4c,_0x36ec14;const _0x47203a=this[_0x3e409b(0x27a)]['getConfig'](_0xa2f44),_0x3ce204=this[_0x3e409b(0x27a)][_0x3e409b(0x2d8)](_0x4dd3a7);return(_0x36ec14=(_0x760c4c=_0x3ce204==null?void 0x0:_0x3ce204['snapshotServerUrl'])!=null?_0x760c4c:_0x47203a)!=null?_0x36ec14:_0x11a848;}async[_0x4c996d(0x3f1)](_0x2a433b,_0x309b42){const _0x296a2b=_0x4c996d,_0x57e5bf='/universer-api/snapshot/'+_0x309b42[_0x296a2b(0x462)]+_0x296a2b(0x4ae)+_0x309b42[_0x296a2b(0x341)]+_0x296a2b(0x1a2);return(await this[_0x296a2b(0x4a2)][_0x296a2b(0x453)](_0x57e5bf,{'params':{'resourceId':JSON[_0x296a2b(0x415)](_0x309b42[_0x296a2b(0x17d)])}}))[_0x296a2b(0x3bd)];}['saveSnapshot'](){const _0x1930d1=_0x4c996d;throw new Error(_0x1930d1(0x4d6));}[_0x4c996d(0x280)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c996d(0x1a4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c996d(0x226)](){const _0x55ef39=_0x4c996d;throw new Error(_0x55ef39(0x4d6));}},_0x326761[_0x4c996d(0x143)]=_0x21bbf3([_0x534688(0x0,_0x229428[_0x4c996d(0x274)]),_0x534688(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)]))],_0x326761[_0x4c996d(0x143)]);var _0x2cdb9c=Object[_0x4c996d(0x287)],_0x3d8615=Object[_0x4c996d(0x16a)],_0x57e613=(_0x5b17b0,_0x4bb659,_0x38b690,_0x48da04)=>{const _0xd144e3=_0x4c996d;for(var _0xaf8509=_0x48da04>0x1?void 0x0:_0x48da04?_0x3d8615(_0x4bb659,_0x38b690):_0x4bb659,_0x34917e=_0x5b17b0[_0xd144e3(0x260)]-0x1,_0x289998;_0x34917e>=0x0;_0x34917e--)(_0x289998=_0x5b17b0[_0x34917e])&&(_0xaf8509=(_0x48da04?_0x289998(_0x4bb659,_0x38b690,_0xaf8509):_0x289998(_0xaf8509))||_0xaf8509);return _0x48da04&&_0xaf8509&&_0x2cdb9c(_0x4bb659,_0x38b690,_0xaf8509),_0xaf8509;},_0x1a989f=(_0x142b43,_0x7bc4ad)=>(_0x2fc395,_0x30f81c)=>_0x7bc4ad(_0x2fc395,_0x30f81c,_0x142b43);let _0x337ac3=class extends _0x229428['LocalUndoRedoService']{constructor(_0x5d936f,_0x23dfe0,_0x732b71,_0x491da3,_0x46887f){const _0x47fc56=_0x4c996d;super(_0x5d936f,_0x23dfe0,_0x732b71),this['_transformService']=_0x491da3,this[_0x47fc56(0x1e2)]=_0x46887f;}[_0x4c996d(0x272)](_0x18d3eb,_0x2254d6){const _0x148b3a=_0x4c996d,_0x4494b1=this[_0x148b3a(0x3da)](_0x18d3eb);if(_0x4494b1)try{const _0x44dbf6=this[_0x148b3a(0x498)](_0x4494b1,_0x2254d6);this[_0x148b3a(0x25b)](_0x18d3eb,_0x44dbf6);}catch(_0x24d8e8){this[_0x148b3a(0x1e2)][_0x148b3a(0x28e)](_0x148b3a(0x279),_0x24d8e8),this[_0x148b3a(0x4c1)](_0x18d3eb);}const _0x2de4cd=this[_0x148b3a(0x2b4)](_0x18d3eb);if(_0x2de4cd)try{const _0x43b492=this[_0x148b3a(0x498)](_0x2de4cd,_0x2254d6);this['_substituteRedoStack'](_0x18d3eb,_0x43b492);}catch(_0x20c09e){this[_0x148b3a(0x1e2)][_0x148b3a(0x28e)](_0x20c09e),this[_0x148b3a(0x323)](_0x18d3eb);}}[_0x4c996d(0x4c1)](_0x659813){const _0x599b0b=_0x4c996d,_0x5df91b=this[_0x599b0b(0x3da)](_0x659813);_0x5df91b&&(_0x5df91b['length']=0x0,this[_0x599b0b(0x1b4)]());}['_clearRedo'](_0x4ff06a){const _0x491f95=_0x4c996d,_0x3b4a6d=this['_getRedoStack'](_0x4ff06a);_0x3b4a6d&&(_0x3b4a6d[_0x491f95(0x260)]=0x0,this[_0x491f95(0x1b4)]());}['_substituteUndoStack'](_0x280283,_0x189c5a){const _0x57aafc=_0x4c996d;this[_0x57aafc(0x194)]['set'](_0x280283,_0x189c5a),this[_0x57aafc(0x1b4)]();}[_0x4c996d(0x20e)](_0x54a5ea,_0x4f2640){const _0x3093fe=_0x4c996d;this[_0x3093fe(0x2ea)]['set'](_0x54a5ea,_0x4f2640),this['_updateStatus']();}['_transformStack'](_0x3f1939,_0x3897d3){const _0x4c1ece=_0x4c996d,_0x4ba692=[];let _0x5051de=_0x3897d3,_0x2e11e2=_0x3897d3;for(let _0x3e530d=_0x3f1939[_0x4c1ece(0x260)]-0x1;_0x3e530d>=0x0;_0x3e530d--){const {unitID:_0x43653f,undoMutations:_0x437d95,redoMutations:_0xafd688}=_0x3f1939[_0x3e530d],_0x530c9f=this[_0x4c1ece(0x49e)][_0x4c1ece(0x4a0)](_0x5051de,_0x437d95),_0x596444=this['_transformService'][_0x4c1ece(0x4a0)](_0x2e11e2,_0xafd688);if(_0x16a1a7[_0x4c1ece(0x463)](_0x530c9f)||_0x16a1a7[_0x4c1ece(0x463)](_0x596444)){this[_0x4c1ece(0x1e2)][_0x4c1ece(0x28e)]('[CollaborationUndoRedoService]',_0x4c1ece(0x2ff),_0x530c9f,_0x596444);break;}_0x5051de=_0x530c9f[_0x4c1ece(0x386)],_0x2e11e2=_0x596444[_0x4c1ece(0x386)],_0x4ba692[_0x4c1ece(0x2be)]({'unitID':_0x43653f,'undoMutations':_0x530c9f[_0x4c1ece(0x1e0)],'redoMutations':_0x596444[_0x4c1ece(0x1e0)]});}return _0x4ba692[_0x4c1ece(0x1db)]();}};_0x337ac3=_0x57e613([_0x1a989f(0x0,_0x229428[_0x4c996d(0x299)]),_0x1a989f(0x1,_0x229428['ICommandService']),_0x1a989f(0x2,_0x229428['IContextService']),_0x1a989f(0x3,_0x16a1a7[_0x4c996d(0x2f5)]),_0x1a989f(0x4,_0x229428[_0x4c996d(0x363)])],_0x337ac3);class _0x3437fa extends _0x229428['RxDisposable']{constructor(){const _0x3cfeab=_0x4c996d;super(),_0xb4d35(this,_0x3cfeab(0x420)),this['urlChange$']=_0x4a5f0c['fromEvent'](window,'popstate')[_0x3cfeab(0x2b6)](_0x4a5f0c[_0x3cfeab(0xf1)](this['dispose$']),_0x4a5f0c[_0x3cfeab(0x46b)](0x1),_0x4a5f0c['mapTo'](void 0x0));}[_0x4c996d(0x1d2)](_0x2695cf,_0x3a4896,_0x2b8cf6=!0x1){const _0x178177=_0x4c996d,_0x1b90bb=new URL(window['location'][_0x178177(0x22d)]);_0x1b90bb[_0x178177(0x446)][_0x178177(0x22e)](_0x2695cf,_0x3a4896),_0x2b8cf6?window[_0x178177(0x10f)]['replaceState']('','',_0x1b90bb['toString']()):window[_0x178177(0x10f)][_0x178177(0x33f)]('','',_0x1b90bb[_0x178177(0x1af)]());}[_0x4c996d(0xfe)](_0x2c0b12,_0x1a8985=!0x1){const _0x5104dc=_0x4c996d,_0x419ce5=new URL(window[_0x5104dc(0x1bf)][_0x5104dc(0x22d)]);_0x419ce5['searchParams'][_0x5104dc(0x4d4)](_0x2c0b12),_0x1a8985?window['history']['replaceState']('','',_0x419ce5['toString']()):window['history'][_0x5104dc(0x33f)]('','',_0x419ce5['toString']());}[_0x4c996d(0x193)](_0x1a31f0){const _0x5146af=_0x4c996d;var _0x57b426;return(_0x57b426=new URL(window[_0x5146af(0x1bf)][_0x5146af(0x22d)])[_0x5146af(0x446)]['get'](_0x1a31f0))!=null?_0x57b426:void 0x0;}}var _0x5c7919=Object[_0x4c996d(0x287)],_0x718026=Object[_0x4c996d(0x16a)],_0x473376=(_0x188515,_0x4efdf7,_0x327648)=>_0x4efdf7 in _0x188515?_0x5c7919(_0x188515,_0x4efdf7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327648}):_0x188515[_0x4efdf7]=_0x327648,_0x3c0457=(_0x1b46e0,_0x3a391f,_0xa565a8,_0x3cd52b)=>{const _0x2e6810=_0x4c996d;for(var _0x2724eb=_0x3cd52b>0x1?void 0x0:_0x3cd52b?_0x718026(_0x3a391f,_0xa565a8):_0x3a391f,_0x2948df=_0x1b46e0[_0x2e6810(0x260)]-0x1,_0x52d428;_0x2948df>=0x0;_0x2948df--)(_0x52d428=_0x1b46e0[_0x2948df])&&(_0x2724eb=(_0x3cd52b?_0x52d428(_0x3a391f,_0xa565a8,_0x2724eb):_0x52d428(_0x2724eb))||_0x2724eb);return _0x3cd52b&&_0x2724eb&&_0x5c7919(_0x3a391f,_0xa565a8,_0x2724eb),_0x2724eb;},_0x54de90=(_0x2895a4,_0x2f7461)=>(_0x2f1247,_0x256857)=>_0x2f7461(_0x2f1247,_0x256857,_0x2895a4),_0x10a24b=(_0x3ba86a,_0x5d0d8a,_0x2e24e8)=>_0x473376(_0x3ba86a,_0x5d0d8a+'',_0x2e24e8);const _0x884d51='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x326761[_0x4c996d(0x205)]=class extends _0x229428[_0x4c996d(0x403)]{constructor(_0x12045f=_0x394e50,_0x1a07f8,_0x3458fc,_0x52a9ba,_0x56ca49){const _0x54f752=_0x4c996d;super(),this[_0x54f752(0x1c4)]=_0x12045f,this[_0x54f752(0x1e2)]=_0x1a07f8,this[_0x54f752(0x1bd)]=_0x3458fc,this[_0x54f752(0x112)]=_0x52a9ba,this[_0x54f752(0x27a)]=_0x56ca49;const {..._0x563766}=this['_config'];this['_configService'][_0x54f752(0x492)](_0x4dd3a7,_0x563766);}['onStarting'](){const _0x5fd424=_0x4c996d;this['_registerDependencies'](),_0x229428[_0x5fd424(0x27c)](this[_0x5fd424(0x112)],[[_0xb1b57a],[_0x326761[_0x5fd424(0x374)]],[_0x172ba0]]);}[_0x4c996d(0x170)](){const _0x337dca=_0x4c996d;_0x229428['touchDependencies'](this[_0x337dca(0x112)],[[_0x42d342]]);}[_0x4c996d(0xff)](){const _0x199f57=_0x4c996d;this[_0x199f57(0x1d0)]();}[_0x4c996d(0x3fa)](){const _0x30d4c3=_0x4c996d;var _0x293201,_0x1120b9,_0x45e66d,_0x1c0662;this[_0x30d4c3(0x112)][_0x30d4c3(0x1df)](_0x229428[_0x30d4c3(0x1dc)])&&this['_logService']['error']('[UniverCollaborationClientPlugin]',_0x30d4c3(0x2b0));let _0x475b37=[[_0x229428['IUndoRedoService'],{'useClass':_0x337ac3}],[_0x326761[_0x30d4c3(0x368)]],[_0x1e0ec9],[_0x1d2d7f[_0x30d4c3(0x159)]],[_0x11dc92,{'useClass':_0x3437fa}],[_0x4090c9],[_0x326761['LocalCacheService']],[_0x1d2d7f[_0x30d4c3(0x33a)]],[_0x186ee5],[_0x483ac7],[_0x2bdd5b],[_0x4ef234],[_0x2d5dc0],[_0x48f009],[_0x22cb76],[_0x172ba0],[_0x52a4b9,{'useClass':(_0x1120b9=(_0x293201=this['_config'])==null?void 0x0:_0x293201[_0x30d4c3(0x3f9)])!=null?_0x1120b9:_0x326761[_0x30d4c3(0x2bb)]}],[_0x1d2d7f[_0x30d4c3(0x27b)],{'useClass':_0x1d2d7f['XHRHTTPImplementation']}],[_0x16a1a7[_0x30d4c3(0x46f)],{'useClass':_0x326761['SnapshotServerOverHTTPService']}],[_0x229428[_0x30d4c3(0x361)],{'useClass':_0x326761[_0x30d4c3(0x3be)]}],[_0x36c3dd[_0x30d4c3(0x34e)],{'useClass':_0x326761[_0x30d4c3(0x34b)]}],[_0x326761[_0x30d4c3(0x11d)]],[_0x326761[_0x30d4c3(0x374)]],[_0x326761[_0x30d4c3(0x1d1)]],[_0x42d342],[_0xb1b57a]];(_0x45e66d=this[_0x30d4c3(0x1c4)])!=null&&_0x45e66d[_0x30d4c3(0x275)]&&_0x475b37[_0x30d4c3(0x2be)]([_0x1826d2,{'useClass':_0x3d8d47}]),_0x475b37=_0x229428[_0x30d4c3(0x1ad)](_0x475b37,(_0x1c0662=this[_0x30d4c3(0x1c4)])==null?void 0x0:_0x1c0662[_0x30d4c3(0x316)]),_0x475b37['forEach'](_0x1ecfdb=>this[_0x30d4c3(0x112)][_0x30d4c3(0x4c6)](_0x1ecfdb)),this[_0x30d4c3(0x37b)]();}[_0x4c996d(0x1d0)](){const _0x13b52a=_0x4c996d;this[_0x13b52a(0x315)](this[_0x13b52a(0x1bd)][_0x13b52a(0x2f7)](_0x229428[_0x13b52a(0x2b5)][_0x13b52a(0x4b2)],[_0x5e0d56])),this[_0x13b52a(0x315)](this[_0x13b52a(0x1bd)][_0x13b52a(0x2f7)](_0x229428['UniverInstanceType']['UNIVER_SHEET'],[_0x1e23e3]));}['_initModules'](){const _0x23d204=_0x4c996d;var _0x13c1bd,_0x25c76a;this['_injector'][_0x23d204(0x453)](_0x1d2d7f['HTTPService'])[_0x23d204(0x335)]({'priority':0x14,'interceptor':_0x1d2d7f['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x23d204(0x112)][_0x23d204(0x453)](_0x48f009),(_0x13c1bd=this[_0x23d204(0x1c4)])!=null&&_0x13c1bd['enableOfflineEditing']||this[_0x23d204(0x112)][_0x23d204(0x453)](_0x326761[_0x23d204(0x166)])[_0x23d204(0x3af)](),(_0x25c76a=this[_0x23d204(0x1c4)])!=null&&_0x25c76a[_0x23d204(0x2d0)]&&this[_0x23d204(0x112)][_0x23d204(0x453)](_0x2d5dc0),this['_injector'][_0x23d204(0x453)](_0x326761[_0x23d204(0x11d)]),this[_0x23d204(0x112)][_0x23d204(0x1df)](_0x326761[_0x23d204(0x1d1)])&&this['_injector'][_0x23d204(0x453)](_0x326761['DesktopCollaborationStatusDisplayController']);}},_0x10a24b(_0x326761['UniverCollaborationClientPlugin'],'pluginName',_0x884d51),_0x326761[_0x4c996d(0x205)]=_0x3c0457([_0x229428[_0x4c996d(0xcb)](_0x16a1a7[_0x4c996d(0x107)]),_0x54de90(0x1,_0x229428['ILogService']),_0x54de90(0x2,_0x33f8a9[_0x4c996d(0x3d8)]),_0x54de90(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x54de90(0x4,_0x229428[_0x4c996d(0x274)])],_0x326761['UniverCollaborationClientPlugin']),_0x326761[_0x4c996d(0x473)]=_0x6362c5,_0x326761[_0x4c996d(0x3b6)]=_0x18a4d2,_0x326761['COLLAB_WEB_SOCKET_URL_KEY']=_0x5ebc49,_0x326761[_0x4c996d(0x15f)]=_0x4b8cf1,_0x326761[_0x4c996d(0x34d)]=_0x30eb65,_0x326761[_0x4c996d(0x135)]=_0x22cb76,_0x326761[_0x4c996d(0x3ae)]=_0x59a3ea,_0x326761['HEARTBEAT_TIMEOUT_KEY']=_0x1edc8f,_0x326761[_0x4c996d(0x163)]=_0x52a4b9,_0x326761['IURLService']=_0x11dc92,_0x326761['LOCAL_CACHE_INTERVAL_KEY']=_0x385d5f,_0x326761['LOGIN_URL_KEY']=_0x2c7366,_0x326761['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x2d286d,_0x326761[_0x4c996d(0x4d5)]=_0x17c04c,_0x326761[_0x4c996d(0x3d6)]=_0xa2f44,_0x326761[_0x4c996d(0x2bc)]=_0x19655e,_0x326761[_0x4c996d(0x344)]=_0x44beef,_0x326761['SheetCollabCursorShape']=_0x3f46bd,_0x326761['WebURLService']=_0x3437fa,_0x326761[_0x4c996d(0x244)]=_0xbf8362,_0x326761['serializeCombRequest']=_0x2f6e37,Object[_0x4c996d(0x287)](_0x326761,Symbol['toStringTag'],{'value':_0x4c996d(0x157)});}));function _0x59fd(_0x39a4ae,_0x3ed483){const _0x42c5f5=_0x42c5();return _0x59fd=function(_0x59fdbe,_0x327c5c){_0x59fdbe=_0x59fdbe-0xca;let _0x51ef54=_0x42c5f5[_0x59fdbe];return _0x51ef54;},_0x59fd(_0x39a4ae,_0x3ed483);}function _0x42c5(){const _0x10e1f0=['ITelemetryService','ONLINE','UniverRpc','CHANGESET_ACK','_onCombEvent','_updateCollabCursors','[FetchMissState]','awaiting','unitId','_initUnitPermissionChange','toRgbString','IDLE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UNIVER_UNKNOWN','Subject','onCommentUpdate','textRanges','on-line-single','/universer-api/stream/file/upload','_handleLeaveEvent','HEARTBEAT_INTERVAL_KEY','disableLocalCache','@univerjs-pro/license','list','&to=','indexOf','getCoordByCell','HEARTBEAT_INTERVAL','COLLAB_SUBMIT_CHANGESET_URL_KEY','svg','/universer-api/comb','LICENSE_EXPORT_SIZE_EXCEEDED','SetWorksheetActivateCommand','generateRandomId','x-univer-host','body','AuthzIoHttpService','YUUMI_URL_COL_OUT_OF_RANGE','session.collaboration-timeout','_telemetryInfo','_timeoutTimer','debounceTime','onlyLocal','POST','_cachedData','image/jpeg','onPointerEnter$','range','Error','_onUserJoin','_transformRemoteChangesetByIMECache','open$','commentUpdate$','#fff','isTransformMutationFailure','sessionStatus$','restore','idSuffix','collaboration_new_changeset','collabStatus.conflict','SNAPSHOT_SERVER_URL_KEY','_initRequestHeader','IRenderManagerService','USERS_LEAVE','_getUndoStack','UNKNOWN_CODE','userID','_transitionLocked','DisposableCollection','UniverSheetsUi','random','_startSheetCollabCursor','getUniverSheetInstance','UniverLicense','clearInterval','INGEST','_onMessage','textEncoder','ColorKit','getCollabEntity$','defs','[SyncedState]:\x20received\x20rejection.','_scheduleHeartbeat','_hovered','collaboration-session-retry','_scheduleCollaborationTimeoutTimer','_cursorShapes','getResourcesRequest','_collabCursorState$','startsWith','url(#on-line-single_clip0_910_349)','getTypeOfUnitDisposed$','selection','use','incrementRevOfUnit','socketService','_registerDependencies','map','getMember','session','addEventListener','UniverCore','_toggleOnline','isInternalEditorID','fill','Plugin','SheetSkeletonManagerService','CHANGESET_REVISION_CONFILICT','purple300','activeSheet$','save','univer-online-status','handleMoveRange','getUnitId','isPermissionRej','InsertRangeMoveDownCommandId','USERS_ENTER','HEARTBEAT','M0\x200H16V16H0z','call','init','UNAUTHENTICATED','_getLoginPath','stringify','_initCommandExecutedListener','duration','resend','skeleton','INTERNAL_ERROR','RECV','_getAPIPrefix','getUndoRedoMutationParamsCache','_initCloseConn','endRow','urlChange$','/allowed','Unknown\x20user','size','Optional','JOIN','SNAPSHOT_INVALID_SNAPSHOT','OTHER_CLIENTS_EDITING','getFocusedUnit','pauseCollaboration','_anchorDot','on-line-single_clip0_910_349','_instanceService','[CollaborationEntity]','_acknowledgedAwaitingChangeset','_session','_clearOtherTimers','mutations','assign','_anchor','_updateState','getImage','react','_tryReconnect','registerOnClose','[DataLoaderController]','_startTelemetryCollaborationNewChangeset','_applyRemoteChangeset','ERROR_EXCEED_SIZE','_uiPartsService','permissionRejEvent','deleteCollaborator','getSheetBlock','stopTime','RemoveRowCommandId','_scheduleClearOtherTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','&assign=','searchParams','/-/object/-/batch_allowed','Rect','sendChangesetTimeout','RefRangeService','sessionStatus','_schedule','Vector2','_entityInit$','liveShareNewHost','_cursorInfo$','subscribe','isArray','get','_imageSourceCache','onPointerMove$','_univerInstanceService','1997150JKZoDW','fromEvent','reduce','findNodePositionByCharIndex','_id','OnLineSingle','_remoteChangesetQueue','_unlockTransition','_updateLocalCursor','loadSheet','_status$','type','isTransformMutationsWithChangesetFailure','updateMember','connection\x20error','collabWebSocketUrl','_scheduleTimestamp','[PendingState]:\x20received\x20rejection.','_handler','_labelPosition','shareReplay','MSG_FOR_ERROR','contains','session.connection-failed','ISnapshotServerService','updatePermissionObjEvent','getSheetId','_scene','AUTHZ_URL_KEY','isValidRectRange','append','getItem','LOGIN_URL_KEY','_state','UniverSheets','doc.mutation.rich-text-editing','dispose$','_createInitialState','apply','_http','_lockTransition','registerBeforeClose','ImageSourceType','LIVESHARE_OPERATION','isTransformChangesetsSuccess','collabSubmitChangesetUrl','_messageService','_executeRemoteChangeset','name','_replaceFileID','_draw','changesets','_type','online','OffLineSingle','_onRefRangeChange','entries','encode','@univerjs/docs-ui','setConfig','getTypeOfUnitAdded$','_change$','headers','BehaviorSubject','46400OKSHpU','_transformStack','transformRemoteChangeset','icon','_tryEnsureSocket','COMPLETION_FINISHED','transformMutation','_transformService','merge','transformMutationsWithChangeset','_decreaseWaiting','_httpService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','children','_unitID','WorkbookEditablePermission','_clearScheduledTask','handleInsertRangeMoveRight','_removeClearOtherTimer','sequenceExecute','onCommandExecuted','hide','/unit/','[CollaborationSession]','LEAVE','debounce','UNIVER_DOC','_beforeCloseService','PERMISSION_DENIED','[SyncedState]:\x20received\x20acknowledgement.','_createInitialStateImpl','COLLAB_WEB_SOCKET_URL','_socketMessageSubscription','_handleEvent','_docSkeletonManagerService','IPermissionService','VIEWPORT_KEY','symbol','SNAPSHOT_HAS_BEEN_REMOVED','getOwnPropertySymbols','setShapeProps','_clearUndo','APPLY_PERMISSION_DENIED','currentTheme$','handleIRemoveCol','handleInsertRangeMoveDown','add','_state$','_cursors','createInstance','includes','collab-rect-range-','clsx','min','onRemoteChangeset','create','CHANGESET_REJ','deserializeRangeWithSheet','fetchMissingChangesets','syncEditingCollabCursor','delete','SEND_CHANGESET_TIMEOUT_KEY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_rescheduleHeartbeat','drawWith','_docSkeleton','_sendHeartbeat','InsertColCommandId','_incrementRevisionNumber','6894ygDLKR','parse','uni.network.url-service','UNIVER_PROJECT','arc','SheetsSelectionsService','HEADER_MENU','setWaitCount','DependentOn','currentSkeleton$','startRow','div','defIds','updateOfflineData','_syncEditingCollabCursor','InsertRangeMoveRightCommandId','[OfflineState]:\x20received\x20acknowledgement.','permission.content','_collabSessionService','_docTransformIMECacheService','status$','_collaborationTimeoutTimer','collaboration-client.config','COLORS','getCollabCursors$','UNRECOGNIZED','hasOwnProperty','csRejEvent','string','UPDATE_PERMISSION_OBJ','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','0\x200\x2016\x2016','sheets','_ensureSubject','_getSnapshotAPIPrefix','fromEventSubject','@univerjs/ui','_render','registerRefRange','rgba(255,\x20255,\x20255,\x200.01)','parseProtocolChangeset','substring','round','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','takeUntil','subunit','TOO_MANY_REQUESTS','confirm','_getUploadFileURL','_sessions','message$','moveTo','_getAnchorBounding','@univerjs/sheets','getDeserializedSheetBlock','toggleOffline','parseChangesetToProtocol','removeParam','onRendered','_updateURLWithCurrentState','snapshot','_replayCachedMutations','_commentUpdate$','_disableEditing','_pendingMutations','toggleOnline','UniverCollaborationPlugin','getRenderById','image/jpg','telemetry\x20info\x20is\x20not\x20initialized','values','sheetID','_updateSubUnitFromURLParams','retryConnectingInterval','history','xlink:href','downloadEndpointUrl','_injector','font','collaMsg','FETCH_MISS','NOT_FOUND','getInterceptPoints','[PendingState]:\x20received\x20acknowledgement.','RxDisposable','UNIVER_SHEET','/universer-api/oidc/authpage','getCurrentUser','CollaborationController','max','_heartbeatTimer','\x0aCurrent:\x20','HttpExport','subUnitId','MessageType','28903356OppQvA','addObject','UniverDocsUi','Shape','_setupBeforeClosingHandler','getSkeleton','_getCurrentRevision','addObjects','trim','clipPath','?url=','_onFetchMissResult','toDisposable','_eventUnsubscribe','deepClone','closeSession','_name','CommentService','_isPermissionRej','_loadSheet','LICENSE_MAX_UNITS_EXCEEDED','forEach','offline','_initMergeInterceptor','addImageSourceCache','Warning','_commentService','event$','_entities','_unitStatus','ERROR_IMAGE','SnapshotServerOverHTTPService','getColor','COMPRESS_MUTATION_SEND','getSheetObject','univer-online-status-title','startColumn','PERMISSION_REJ','/object/','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','function','none','c2Prime','take','YUUMI_UNABLE_LOAD_URL','change$','rxjs/operators','m1Prime','SEND_CHANGESET_TIMEOUT','origin','univer-pro.collaboration-client.single-active-unit-service','Module','put','HTTPService','_transformSelections','createIdentifier','FETCH_MISSING','CollaborationEvent','_socketService','CollaborationStatus','getDocRanges','collabStatus.fetchMiss','replace','ICollaborationSocketService','color','clearTimeout','LocalCacheService','rxjs','height','getUnit','getOwnPropertyDescriptor','CONNECTOR_DATA_TOO_LARGE','_color','ERROR_IMAGE_TYPE','unload','UniverIcon','onReady','off-line-single_clip0_910_343','_hideTimer','some','_urlService','transformByState','_onLocalMutation','1208cLwssD','_fetchMissChangesets','Tools','collaboration.closeRoom','SHOULD_CLOSE_CONN','then','resourceIDs','onPointerLeave$','close$','find','Tooltip','RemoveColCommandId','@univerjs/telemetry','_initEventListeners','initWorkbookPermissionChange','target','_disabled','rev','attrs','onlineStatus','_candidateSocket','transformSelections','originalMeta','exhaustSavingTask','_localCacheService','_handleJoinEvent','_sessionStatus$','_cursor','getParam','_undoStacks','LIVESHARE_FETCH_OPERATIONS','_getSheetObject','roomMembers$','_textBubble','column','switchMap','_getSignURL','getUnitType','sheetId','IMessageService','getMemberID','displayName','_sheetSkeletonManagerService','/resources','params','saveChangeset','json','requestParams','_retryCount','UnitEmbedded','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','text','_backgroundColor','INVALID_ARGUMENT','mergeOverrideWithDependencies','getUnitStatus$','toString','_selfUnitIDs','objectID','UniverCollaborationClient','COMPRESS_MUTATION_APPLY','_updateStatus','getCollabEntity','off-line-single','_roomMembers$','catch','CompressMutationService','members','_docSyncEditingCollabCursorService','_joinRoom','_renderManagerService','jiqing500','location','eventID','concat','subscribeEvent','extend','_config','_awaitingChangeset','APPLY_REJECT','saveImage','_drawRectRange','fillText','_localeService','error$','RevisionService','TEXT_RANGE_LAYER_INDEX','state','_collaborationSessionService','_registerRenderDependencies','DesktopCollaborationStatusDisplayController','setParam','url','fetchMiss','bottom','getVpScrollXYInfoByPosToVp','getUnitOnRev','_compressMutationService','show','mapDocumentTypeToUniverType','reverse','IUndoRedoService','reject','_handleHover','has','m2Prime','ALREADY_EXISTS','_logService','getCurrentSelections','NodePositionConvertToRectRange','fromCollab','ICommandService','pending','appendMutation','UNDEFINED','_onConnectionOpen','_collabCursorController','onlineStatusTitle','getRelativeToViewportCoord','onMouseMove','_transformUndoRedoStack','_onConflict','129006innVbe','newValue','RichTextEditingMutation','setActiveRange','allowed','newCsEvent','cursorInfo','SheetPermissionInitController','collabCursorState$','createSocket','listRoles','propertyIsEnumerable','SetSelectionsOperation','_shouldReportTelemetry','DocSkeletonManagerService','useCallback','UUID','_throwTelemetryCollaborationNewChangeset','FileId','1em','UniverCollaborationClientPlugin','_onRemoteRejected','FAIL','revision','getTime','dispose','/universer-api/file/{fileID}/sign-url','\x20in\x20_schedule.','LIVESHARE_TERMINATE','_substituteRedoStack','UniverEngineRender','transform','UniverCollaboration','onRemoteAck','_startCollaboration','handleInsertRow','setTimeout','_removeCollabCursors','_drawTextRange','from','UniverDocs','state$','loadOfflineData','UnitSnapshot','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','@univerjs/engine-formula','complete','fetch_missing','_context','_undoRedoService','data','@univerjs/docs','AWAITING_WITH_PENDING','copyFileMeta','auth.needGotoLoginAlert','asObservable','_notificationService','localeService','unit','@univerjs/rpc','href','set','@univerjs/network','SnapshotService','synced','filter','failed\x20to\x20apply\x20missed\x20changesets!','conflict.content','_lastPointer','getWorkbookSelections','LIVESHARE_REQUEST_HOST','triggerDblclick','batchAllowed','LocaleService','submit\x20changeset\x20error!','FromArray','evenodd','concatMap','collab-text-anchor-','routeKey','_listenToOfflineEvent','setUndoRedoMutationParamsCache','_onRemoteChangeset','deserializeToCombResponse','listCollaborators','save\x20fail\x20reason\x20is\x20','[CollaborationSessionService]','with','_collaborationController','onTransformChange$','_socket','UniverDrawing','COLLAB_SUBMIT_CHANGESET_URL','readAsDataURL','ranges','flatMap','_onRemoteACK','all','getCurrentUnitForType','path','CommandType','next','top','setAlpha','signUrlServerUrl','PENDING','_substituteUndoStack','Inject','joinEvent','ThemeService','capture','length','replaceTextRanges','_online','_transformUndoredo','UniverEngineFormula','_range','_getSaveTimeout','collabStatus.notCollab','univer-online','_roomMembers','lineTo','onMissingChangesets','DeleteRangeMoveUpCommandId','/block/','focused$','src','getCellPositionByOffset','{fileID}','transformUndoRedo','_refRangeService','IConfigService','enableSingleActiveInstanceLock','roomMembers','@univerjs/engine-render','editingUnit','[CollaborationUndoRedoService]','_configService','IHTTPImplementation','touchDependencies','_collaborationPaused','workbook','_themeService','saveSheetBlock','_sheetTransformSelectionsService','INotificationService','Univer','_document','colorChannel1','isEditing','defineProperty','Undefined','getCurrent','black','OFFLINE','gold400','_stopTelemetryCollaborationNewChangeset','error','PSEUDO_FETCH_MISSING_RESULT','/rev/','transformIMECache','_snapshotServerService','_waitForHeartbeatResponse','actions','throttleTime','_onRecvEvent','useRef','ImageUploadStatusType','IUniverInstanceService','cursorInfo$','baseRev','_getAPIPrefixPath','_getCtorByUniverType','HTTPRequest','_memberService','enableLocalCache','_colorIndex','SheetCollaborationEntity','SYNCED','_saveCache','current','Disposable','labelPosition','row','React','translate(.97)','DocStateChangeManagerService','getRoom','awaiting_with_pending','prototype','_members','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getDownloadEndpointURL','UPDATE_CURSOR','_clearCollaborationTimeoutTimer','_getRedoStack','UniverInstanceType','pipe','27307isnqES','startTime','debug','onload','CollaborationSocketService','SNAPSHOT_URL_KEY','HELLO','push','socket\x20open.','serializeRangeWithSheet','NOT_COLLAB','1040ZxwxyY','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_submitChangeset','measureText','collab-text-range-','transformChangesets','url(#off-line-single_clip0_910_343)','objectType','BASE64','_transformIMECache','_singleActiveUnitService','unknown','conflict','JSONX','enableAuthServer','_initStatusComponent','_createHandler','[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.','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forwardRef','title','beginPath','getConfig','DocCollaborationEntity','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','visibilitychange','refreshPermission','_docTransformSelectionsService','post','YUUMI_SUBSCRIPTION_NOT_FOUND','Injector','UniverNetwork','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorUpdate','_initResize','univerjs-icon\x20univerjs-icon-','getRangePointData','infoRsp','currentColor','_localStorageService','_redoStacks','IUIPartsService','onRemoteRej','setCurrentUser','backgroundColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/role','_unitOnClients','getActiveSheet','DocIMEInputManagerService','getActiveRange','ITransformService','fillRule','registerRenderModule','LICENSE_DISTRO_REJECTED','assignAColorForMemberID','DeleteRangeMoveLeftCommandId','/universer-api/authz','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationState]:\x20apply\x20error!','_listenToOnlineEvent','transformStack\x20failed!','_permissionService','_clearHeartbeatTimer','_HTTPService','@univerjs/design','_onCursorDelete','_refreshCollabCursors','useDependency','@univerjs/core','MUTATION','getValue','_revisionService','updatePermissionPoint','_shapes','4097424ToNISW','collab-client.tooltip.reconnect','width','onMissedChangesetFetched','_colorAssignService','unshift','LIVESHARE_NEW_HOST','InsertSheetMutation','disposeWithMe','override','_onUserLeave','split','memberID','close','awaitingChangeset','_waitCount','_getSendChangesetTimeout','getAncestorScale','_onJoinRoomEvent','_onConnectionFailed','/fetchmissing?from=','loginUrlKey','_clearRedo','_updateLocalCache','AWAITING','shouldCloseConn','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_loadDoc','_checkMissing','COMMENT_UPDATE','permission.title','tag','responseType','status','combineLatest','EffectRefRangId','[OfflineState]:\x20received\x20rejection.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','@univerjs/drawing','registerHTTPInterceptor','CollaborationEntity','_getScale','setInterval','requireSession','WebSocketService','getCurrentRevOfUnit','update','reconnect','fetchThroughInterceptors','pushState','_event$','unitID','_handleHeartbeatEvent','distinctUntilChanged','SessionStatus','image/png','amd','_snapshotService','Rectangle','onSendChangeset','patch','ImageIoService','clear','CollaborationStatusDisplay','IImageIoService','createElement','session.will-retry','_userManagerService','getSheetBySheetId','registerComponent','interceptor','NEW_CHANGESETS','_scheduleSaving','_send','ACTIVE_UNIT_EVENT_CHANNEL','blue400','selections','_toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','exports','_assignedColors','_clearLocalCache','_init','IAuthzIoService','red300','ILogService','_retryConnectingTimer','_queuedRemoteChangesets','visibilityState','CollaborationSession','CollaborationSessionService','_commandService','isActive','url(#$1','setItem','withCredentials','delay','collaboratorID','/-/object/list','_saveTaskMap','UNIVER_SLIDE','session.room-full','DataLoaderController','_exhaustRemoteChangesetQueue','_clearTimeoutTimer','_sendingTimer','executeCommand','APPLY_NON_SEQUENTIAL_REVISION','SUBMIT_CHANGESET','_initModules','_hover','result','objectActions','_sendHeartbeatTimer','...','cmd','resolve','onTransformIME','_socket$','onTransformSelections','c1Prime','commentUpdateEvent','_socketReady','roomInfos','_transformPreviousActiveRange','@univerjs/sheets-ui','@univerjs-pro/collaboration','liveShareOperation','send','_drawAnchor','JOINING','isTransformMutationsWithChangesetSuccess','univer-online-status-icon','APPLY_REVISION_CONFILICT','removeMember','RegularPolygon','_syncEditingCollabCursorService','/collaborator','getViewport','unsubscribe'];_0x42c5=function(){return _0x10e1f0;};return _0x42c5();}
|