univer-cli 0.1.6 → 0.1.8

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.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x92d56a=_0x2ce2;(function(_0x160e6b,_0x5e10d9){const _0x2a9dbb=_0x2ce2,_0x38a90d=_0x160e6b();while(!![]){try{const _0x46f4bc=parseInt(_0x2a9dbb(0x101))/0x1+-parseInt(_0x2a9dbb(0x136))/0x2+parseInt(_0x2a9dbb(0x158))/0x3+-parseInt(_0x2a9dbb(0x131))/0x4*(-parseInt(_0x2a9dbb(0x122))/0x5)+parseInt(_0x2a9dbb(0x110))/0x6+parseInt(_0x2a9dbb(0x144))/0x7+parseInt(_0x2a9dbb(0x10f))/0x8;if(_0x46f4bc===_0x5e10d9)break;else _0x38a90d['push'](_0x38a90d['shift']());}catch(_0x1d80d1){_0x38a90d['push'](_0x38a90d['shift']());}}}(_0x3167,0x48354));import'../chunks/vendor-DjomC5bd.js';import{a as _0x2caa0c,i as _0x496065,n,o as _0x5df699,r as _0x4d443b,t as _0x292d4d}from'../chunks/trace-DPfd8LdJ.js';import{a as _0x124330,d as _0x4b506a,l as _0x243bd7,m as _0x47b28e,n as _0xf5ea4c,r as _0x113345,u as _0x25bae2}from'../chunks/runtime-manifest-DvhuIQzx.js';import{t as _0x64146d}from'../chunks/build-id-Coc3wh1M.js';import{existsSync as _0x1ec61b}from'node:fs';import{chmod as _0xda8f70,mkdir as _0x3d68e4,readFile as _0x278b63,rm as _0x469cb0,writeFile as _0x3e7f53}from'node:fs/promises';import _0x5c2237 from'node:net';import _0x2ad829 from'node:process';var S=new _0x113345();async function C(_0x28d4b6={}){const _0xa1fcf5=_0x2ce2;let _0x5da397=_0x28d4b6['env']??_0x2ad829[_0xa1fcf5(0x125)],_0x35de03=_0x25bae2(_0x5da397),_0xb09732=_0xf5ea4c(_0x5da397),_0x1e58c6=_0x28d4b6[_0xa1fcf5(0x163)]??E(new _0x124330({'env':_0x5da397,'logger':_0x4b506a({'env':_0x5da397,'role':_0x2caa0c[_0xa1fcf5(0x11e)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0xb09732[_0xa1fcf5(0x10a)]['execArgv']],'modulePath':_0xb09732[_0xa1fcf5(0x10a)]['modulePath']})})),_0x3e1005=_0x64146d(_0x5da397),_0x4eeb8a=new Date()[_0xa1fcf5(0x141)]();if(await _0x3d68e4(_0x35de03['daemonDir'],{'recursive':!0x0,'mode':0x1c0}),await _0x3d68e4(_0x35de03[_0xa1fcf5(0x14d)],{'recursive':!0x0,'mode':0x1c0}),!await M(_0x35de03['lockPath'],_0x35de03[_0xa1fcf5(0x160)])){if(await N(_0x35de03[_0xa1fcf5(0x127)]))return;throw Error('Another\x20daemon\x20startup\x20owns\x20'+_0x35de03['lockPath']);}await j(_0x35de03);let _0x53863c=_0x4b506a({'env':_0x5da397,'role':_0x2caa0c[_0xa1fcf5(0x129)]}),_0x48b614=k({'buildId':_0x3e1005,'env':_0x5da397,'pid':_0x2ad829['pid']}),_0x36cb0c=!0x1,_0x337a6={},_0x3a9678=async _0x5a50bf=>z(null,-0x7f5b,Error(_0xa1fcf5(0x148)+_0x5a50bf)),_0xcb41d6=_0x5c2237[_0xa1fcf5(0x126)](_0x464f07=>{const _0x6e5ee0=_0xa1fcf5;let _0x225c96='';_0x464f07['on'](_0x6e5ee0(0x135),_0x586517=>{const _0x25a33d=_0x6e5ee0;_0x225c96+=_0x586517[_0x25a33d(0x11f)](_0x25a33d(0x155)),_0x1b26a6();}),_0x464f07['on']('error',()=>void 0x0);let _0x1b26a6=async()=>{const _0x20a74c=_0x6e5ee0;for(;;){let _0x11691d=_0x225c96[_0x20a74c(0xf6)]('\x0a');if(_0x11691d<0x0)return;let _0x3ef55c=_0x225c96[_0x20a74c(0x152)](0x0,_0x11691d)['trim']();if(_0x225c96=_0x225c96['slice'](_0x11691d+0x1),!_0x3ef55c)continue;let _0x23d97c=await _0x3a9678(_0x3ef55c);_0x464f07[_0x20a74c(0x119)](JSON[_0x20a74c(0x14f)](_0x23d97c)+'\x0a');}};});_0x3a9678=w({'buildId':_0x3e1005,'logRequestEvent':async _0x19973a=>{const _0x434c84=_0xa1fcf5;_0x53863c[_0x434c84(0x108)]({'level':_0x19973a[_0x434c84(0x15e)]===_0x496065[_0x434c84(0x12f)]?_0x434c84(0x10d):_0x434c84(0x10b),'event_name':_0x19973a[_0x434c84(0x15e)],'component':_0x4d443b[_0x434c84(0x129)],'process_role':_0x2caa0c[_0x434c84(0x129)],..._0x19973a[_0x434c84(0x10d)]===void 0x0?{}:{'error':_0x19973a[_0x434c84(0x10d)]},'fields':{..._0x48b614,..._0x19973a['durationMs']===void 0x0?{}:{'duration_ms':_0x19973a[_0x434c84(0x109)]},'method':_0x19973a[_0x434c84(0x15f)],'timestamp':_0x19973a[_0x434c84(0x138)]}});},'logRequestError':async _0x3f2c72=>{const _0x345d30=_0xa1fcf5;_0x53863c[_0x345d30(0x10d)]({'event_name':_0x496065['DaemonRpcError'],'component':_0x4d443b[_0x345d30(0x129)],'process_role':_0x2caa0c[_0x345d30(0x129)],'error':_0x3f2c72[_0x345d30(0x10d)],'fields':{..._0x48b614,'method':_0x3f2c72[_0x345d30(0x15f)],'timestamp':_0x3f2c72[_0x345d30(0x138)]}});},'onShutdownRequest':()=>{const _0x2d0bfb=_0xa1fcf5;_0x241aed('rpc-shutdown')[_0x2d0bfb(0x146)](()=>{const _0x2bcaf5=_0x2d0bfb;_0x2ad829[_0x2bcaf5(0x166)](0x0);});},'pid':_0x2ad829[_0xa1fcf5(0x165)],'runtimeRoot':_0x35de03[_0xa1fcf5(0x114)],'sessionHost':_0x1e58c6,'socketPath':_0x35de03[_0xa1fcf5(0x127)],'startedAt':_0x4eeb8a}),await new Promise((_0x19fc3b,_0x19d0fc)=>{const _0x895e3c=_0xa1fcf5;_0xcb41d6[_0x895e3c(0x157)](_0x895e3c(0x10d),_0x19d0fc),_0xcb41d6[_0x895e3c(0x168)](_0x35de03[_0x895e3c(0x127)],_0x19fc3b);}),_0x243bd7(_0x35de03[_0xa1fcf5(0x127)])||await _0xda8f70(_0x35de03[_0xa1fcf5(0x127)],0x180);let _0x354b68={'pid':_0x2ad829['pid'],'startedAt':_0x4eeb8a,'socketPath':_0x35de03[_0xa1fcf5(0x127)],'runtimeRoot':_0x35de03[_0xa1fcf5(0x114)],'buildId':_0x3e1005};await _0x3e7f53(_0x35de03[_0xa1fcf5(0x160)],String(_0x2ad829[_0xa1fcf5(0x165)]),_0xa1fcf5(0x155)),await _0x3e7f53(_0x35de03['metaPath'],JSON[_0xa1fcf5(0x14f)](_0x354b68,null,0x2),_0xa1fcf5(0x155)),_0x53863c['info']({'event_name':_0x496065['DaemonStart'],'component':_0x4d443b[_0xa1fcf5(0x129)],'process_role':_0x2caa0c[_0xa1fcf5(0x129)],'fields':{..._0x48b614,'pid':_0x2ad829[_0xa1fcf5(0x165)],'runtime_root':_0x35de03[_0xa1fcf5(0x114)],'socket_path':_0x35de03['socketPath'],'started_at':_0x4eeb8a}}),await _0x53863c[_0xa1fcf5(0x12e)]();let _0x169deb=setInterval(()=>{const _0x1ba670=_0xa1fcf5;_0x1e58c6[_0x1ba670(0x15b)]();},Math[_0xa1fcf5(0x102)](0x3e8,Math[_0xa1fcf5(0x130)](_0x1e58c6['getSessionIdleTtlMs'](),0xea60)));_0x169deb[_0xa1fcf5(0xff)](),_0x337a6[_0xa1fcf5(0x150)]=_0x169deb;async function _0x241aed(_0x50efc0){const _0x242717=_0xa1fcf5;_0x36cb0c||(_0x36cb0c=!0x0,_0x337a6['current']!==void 0x0&&clearInterval(_0x337a6[_0x242717(0x150)]),_0x53863c['info']({'event_name':_0x496065[_0x242717(0x147)],'component':_0x4d443b['Daemon'],'process_role':_0x2caa0c[_0x242717(0x129)],'fields':{..._0x48b614,'pid':_0x2ad829['pid'],'reason':_0x50efc0,'timestamp':new Date()[_0x242717(0x141)]()}}),await _0x53863c[_0x242717(0x12e)](),await _0x1e58c6['destroyAll'](_0x50efc0),await new Promise(_0x13397c=>{const _0x598811=_0x242717;_0xcb41d6[_0x598811(0x10e)](()=>_0x13397c());}),await F(_0x35de03['socketPath']),await _0x469cb0(_0x35de03[_0x242717(0x160)],{'force':!0x0})['catch'](()=>void 0x0),await _0x469cb0(_0x35de03[_0x242717(0x167)],{'force':!0x0})['catch'](()=>void 0x0),await _0x469cb0(_0x35de03[_0x242717(0x113)],{'recursive':!0x0,'force':!0x0})['catch'](()=>void 0x0));}_0x2ad829['on'](_0xa1fcf5(0x121),()=>{const _0x3ddf3e=_0xa1fcf5;_0x241aed(_0x3ddf3e(0x15a))[_0x3ddf3e(0x146)](()=>{const _0x3a3b11=_0x3ddf3e;_0x2ad829[_0x3a3b11(0x166)](0x0);});}),_0x2ad829['on']('SIGTERM',()=>{_0x241aed('sigterm')['finally'](()=>{const _0x371b15=_0x2ce2;_0x2ad829[_0x371b15(0x166)](0x0);});});}function w(_0x1bfd97){return async _0x29d552=>{const _0x1e52b5=_0x2ce2;let _0x34d3ab;try{_0x34d3ab=JSON[_0x1e52b5(0xfb)](_0x29d552);}catch(_0x5c428f){return z(null,-0x7fbc,_0x5c428f);}let _0x423dfd=_0x292d4d(_0x34d3ab[_0x1e52b5(0x115)]?.[_0x1e52b5(0x159)]),_0x48b1da=async()=>await n[_0x1e52b5(0x137)]({'name':_0x5df699[_0x1e52b5(0xf8)],'kind':_0x1e52b5(0x116)},async()=>{const _0x9b61cb=_0x1e52b5;let _0x582fcf=Date['now']();await _0x1bfd97[_0x9b61cb(0x139)]?.({'eventName':_0x496065[_0x9b61cb(0x13d)],'method':_0x34d3ab[_0x9b61cb(0x15f)],'timestamp':new Date()[_0x9b61cb(0x141)]()});try{let _0x1bf188=await T(_0x34d3ab,_0x1bfd97);return await _0x1bfd97[_0x9b61cb(0x139)]?.({'durationMs':Date['now']()-_0x582fcf,'eventName':_0x496065[_0x9b61cb(0xfe)],'method':_0x34d3ab[_0x9b61cb(0x15f)],'timestamp':new Date()[_0x9b61cb(0x141)]()}),_0x1bf188;}catch(_0x4469ff){return await _0x1bfd97[_0x9b61cb(0x139)]?.({'durationMs':Date[_0x9b61cb(0x169)]()-_0x582fcf,'eventName':_0x496065['DaemonRpcError'],'method':_0x34d3ab[_0x9b61cb(0x15f)],'error':_0x4469ff,'timestamp':new Date()['toISOString']()}),_0x1bfd97['logRequestEvent']===void 0x0&&await _0x1bfd97[_0x9b61cb(0x15d)]?.({'method':_0x34d3ab[_0x9b61cb(0x15f)],'error':_0x4469ff instanceof Error?_0x4469ff[_0x9b61cb(0x14b)]:String(_0x4469ff),'timestamp':new Date()[_0x9b61cb(0x141)]()}),z(_0x34d3ab['id'],-0x7f5b,_0x4469ff);}});return _0x423dfd===void 0x0?await _0x48b1da():await n['withContext'](_0x423dfd,_0x48b1da);};}async function T(_0x38b3a0,_0x2c8c07){const _0x100636=_0x2ce2;switch(_0x38b3a0[_0x100636(0x15f)]){case _0x47b28e[_0x100636(0x107)]:return{'jsonrpc':_0x100636(0x12b),'id':_0x38b3a0['id'],'result':{'ok':!0x0,'pid':_0x2c8c07[_0x100636(0x165)],'startedAt':_0x2c8c07[_0x100636(0x12d)],'socketPath':_0x2c8c07[_0x100636(0x127)],'runtimeRoot':_0x2c8c07[_0x100636(0x154)],'buildId':_0x2c8c07[_0x100636(0x14a)],'sessionCount':_0x2c8c07[_0x100636(0x163)][_0x100636(0xfd)]()}};case _0x47b28e['Shutdown']:return _0x2c8c07['onShutdownRequest']?.(),{'jsonrpc':_0x100636(0x12b),'id':_0x38b3a0['id'],'result':{'stopping':!0x0}};case _0x47b28e[_0x100636(0xf5)]:{let _0x4dd52b=await _0x2c8c07[_0x100636(0x163)][_0x100636(0x106)](_0x38b3a0['params']);return R(_0x38b3a0['id'],_0x4dd52b);}case _0x47b28e[_0x100636(0x100)]:{let _0x273480=await _0x2c8c07[_0x100636(0x163)]['loadWorkbookDataReplayPack'](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x273480);}case _0x47b28e[_0x100636(0x105)]:{let _0x4e8ac6=await _0x2c8c07[_0x100636(0x163)][_0x100636(0x143)](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x4e8ac6);}case _0x47b28e[_0x100636(0x11c)]:{let _0x1535a9=await _0x2c8c07[_0x100636(0x163)]['evalJs'](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x1535a9);}case _0x47b28e['SessionExportWorkbookFile']:{let _0x3c5c20=await _0x2c8c07['sessionHost'][_0x100636(0x132)](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x3c5c20);}case _0x47b28e[_0x100636(0x124)]:{let _0x3d3b7b=_0x38b3a0[_0x100636(0x153)],_0x33699d=await _0x2c8c07['sessionHost']['exportWorkbookData'](_0x3d3b7b);return R(_0x38b3a0['id'],_0x33699d);}case _0x47b28e[_0x100636(0x11b)]:{let _0x1e9b5f=await _0x2c8c07[_0x100636(0x163)][_0x100636(0x156)](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x1e9b5f);}case _0x47b28e[_0x100636(0x161)]:{let _0x57136b=await _0x2c8c07[_0x100636(0x163)][_0x100636(0x123)](_0x38b3a0[_0x100636(0x153)]);return R(_0x38b3a0['id'],_0x57136b);}default:return z(_0x38b3a0['id'],-0x7f59,Error(_0x100636(0x11d)+_0x38b3a0[_0x100636(0x15f)]));}}function E(_0x239db9){return{async 'createWorkbook'(_0x71af80){const _0x536089=_0x2ce2;let _0x173164=await D(_0x71af80),_0x15dc8e=await _0x239db9['createWorkbook']({..._0x71af80[_0x536089(0x10c)]===void 0x0?{}:{'cwd':_0x71af80[_0x536089(0x10c)]},'identity':_0x173164,..._0x71af80['id']===void 0x0?{}:{'workbookId':_0x71af80['id']},..._0x71af80['name']===void 0x0?{}:{'workbookName':_0x71af80[_0x536089(0x140)]}});return{'success':!0x0,'workbookData':_0x15dc8e[_0x536089(0x118)],'session':O(_0x15dc8e[_0x536089(0x13f)])};},async 'dispose'(_0x4e44e6){const _0x1e5a51=_0x2ce2;let _0x187e99=await D(_0x4e44e6);return await _0x239db9[_0x1e5a51(0x156)]({..._0x4e44e6[_0x1e5a51(0x10c)]===void 0x0?{}:{'cwd':_0x4e44e6[_0x1e5a51(0x10c)]},'identity':_0x187e99}),{'disposed':!0x0,'workbookIdentity':_0x187e99[_0x1e5a51(0x103)]};},async 'destroyAll'(_0x2f854b){const _0x4ab3cf=_0x2ce2;await _0x239db9[_0x4ab3cf(0x162)]?.(_0x2f854b);},async 'evalJs'(_0x1c610b){const _0x3deb8d=_0x2ce2;let _0x44d065=await D(_0x1c610b),_0x19cf4a=await _0x239db9['evalJs']({'code':_0x1c610b['code'],..._0x1c610b[_0x3deb8d(0x10c)]===void 0x0?{}:{'cwd':_0x1c610b[_0x3deb8d(0x10c)]},'identity':_0x44d065,..._0x1c610b[_0x3deb8d(0x151)]===void 0x0?{}:{'mutates':_0x1c610b[_0x3deb8d(0x151)]}});return{..._0x19cf4a['mutations']===void 0x0?{}:{'mutations':_0x19cf4a[_0x3deb8d(0x112)]},'success':!0x0,'value':_0x19cf4a[_0x3deb8d(0xfc)],'session':O(_0x19cf4a[_0x3deb8d(0x13f)])};},async 'exportWorkbookData'(_0x47e2d2){const _0x9b4fdb=_0x2ce2;let _0x24f799=await D(_0x47e2d2),_0x4de37a=await _0x239db9[_0x9b4fdb(0x104)]({..._0x47e2d2['cwd']===void 0x0?{}:{'cwd':_0x47e2d2[_0x9b4fdb(0x10c)]},'identity':_0x24f799});return{'success':!0x0,'workbookData':_0x4de37a['workbookData'],'session':O(_0x4de37a[_0x9b4fdb(0x13f)])};},async 'exportWorkbookFile'(_0x1f0e25){const _0x15c291=_0x2ce2;let _0x38c3ca=await D(_0x1f0e25),_0x40e4d6=await _0x239db9[_0x15c291(0x132)]({..._0x1f0e25[_0x15c291(0x10c)]===void 0x0?{}:{'cwd':_0x1f0e25['cwd']},'format':_0x1f0e25['format'],'identity':_0x38c3ca,'outputPath':_0x1f0e25[_0x15c291(0x13a)]});return{'success':!0x0,'format':_0x40e4d6[_0x15c291(0xf7)],'outputPath':_0x40e4d6[_0x15c291(0x13a)],'sizeBytes':_0x40e4d6[_0x15c291(0x128)],'session':O(_0x40e4d6[_0x15c291(0x13f)])};},async 'getWorkbookSession'(_0x121b00){const _0x4afdc5=_0x2ce2;let _0x21c93e=await D(_0x121b00),_0x51a34d=await _0x239db9[_0x4afdc5(0x142)]({..._0x121b00[_0x4afdc5(0x10c)]===void 0x0?{}:{'cwd':_0x121b00[_0x4afdc5(0x10c)]},'identity':_0x21c93e});return{'exists':_0x51a34d!==null,'session':_0x51a34d===null?null:O(_0x51a34d)};},'getSessionCount'(){const _0x353ff0=_0x2ce2;return _0x239db9[_0x353ff0(0xfd)]?.()??0x0;},'getSessionIdleTtlMs'(){return _0x239db9['getSessionIdleTtlMs']?.()??0xea60;},async 'loadWorkbook'(_0x559ff5){const _0xe866c0=_0x2ce2;let _0x4373b2=await D(_0x559ff5),_0xf58940=await _0x239db9[_0xe866c0(0xfa)]({..._0x559ff5[_0xe866c0(0x10c)]===void 0x0?{}:{'cwd':_0x559ff5[_0xe866c0(0x10c)]},'identity':_0x4373b2,'workbookData':_0x559ff5[_0xe866c0(0x118)]});return{'success':!0x0,'workbookData':_0xf58940['workbookData'],'session':O(_0xf58940['session'])};},async 'loadWorkbookDataReplayPack'(_0x3bccf6){const _0x52d9b4=_0x2ce2;let _0x3d44eb=await D(_0x3bccf6),_0x456750=await _0x239db9[_0x52d9b4(0xf9)]({..._0x3bccf6[_0x52d9b4(0x10c)]===void 0x0?{}:{'cwd':_0x3bccf6[_0x52d9b4(0x10c)]},'identity':_0x3d44eb,'replayPack':{'baseWorkbookData':_0x3bccf6[_0x52d9b4(0x11a)],'mutations':_0x3bccf6[_0x52d9b4(0x112)]}});return{'success':!0x0,'workbookData':_0x456750['workbookData'],'session':O(_0x456750[_0x52d9b4(0x13f)])};},async 'unloadIdleSessions'(){const _0x2c1d0a=_0x2ce2;await _0x239db9[_0x2c1d0a(0x15b)]?.();}};}function _0x2ce2(_0x8f12e2,_0x3a6ae5){_0x8f12e2=_0x8f12e2-0xf5;const _0x3167e5=_0x3167();let _0x2ce2f4=_0x3167e5[_0x8f12e2];return _0x2ce2f4;}async function D(_0x201357){return await S['resolveIdentity'](_0x201357);}function O(_0x2ea40b){const _0x19d628=_0x2ce2;return{'createdAt':_0x2ea40b[_0x19d628(0x13b)]??'','lastAccessedAt':_0x2ea40b['lastAccessedAt']??'','sessionId':_0x2ea40b[_0x19d628(0x13e)],'workbookIdentity':_0x2ea40b[_0x19d628(0x14c)][_0x19d628(0x103)]};}function k(_0x10d9d1){const _0x50edeb=_0x2ce2;return{'build.id':A(_0x10d9d1['env'],_0x50edeb(0x12a))??_0x10d9d1['buildId'],'deployment.environment.name':'local','distribution.channel':A(_0x10d9d1[_0x50edeb(0x125)],_0x50edeb(0x149))??'unknown','service.instance.id':String(_0x10d9d1[_0x50edeb(0x165)]),'service.name':_0x50edeb(0x13c),...A(_0x10d9d1[_0x50edeb(0x125)],_0x50edeb(0x145))===void 0x0?{}:{'service.version':A(_0x10d9d1[_0x50edeb(0x125)],'UNIVER_CLI_VERSION')}};}function A(_0x3ed46c,_0x36f975){let _0x59a2c9=_0x3ed46c[_0x36f975]?.['trim']();return _0x59a2c9===void 0x0||_0x59a2c9['length']===0x0?void 0x0:_0x59a2c9;}async function j(_0x3f49af){const _0xf18cec=_0x2ce2;P(_0x3f49af[_0xf18cec(0x127)])&&!await N(_0x3f49af[_0xf18cec(0x127)])&&await F(_0x3f49af[_0xf18cec(0x127)]);let _0x18568c=await I(_0x3f49af[_0xf18cec(0x160)]);_0x18568c!==null&&!L(_0x18568c)&&(await _0x469cb0(_0x3f49af[_0xf18cec(0x160)],{'force':!0x0})[_0xf18cec(0x134)](()=>void 0x0),await _0x469cb0(_0x3f49af[_0xf18cec(0x167)],{'force':!0x0})[_0xf18cec(0x134)](()=>void 0x0),await _0x469cb0(_0x3f49af[_0xf18cec(0x113)],{'recursive':!0x0,'force':!0x0})[_0xf18cec(0x134)](()=>void 0x0));}async function M(_0x1053bd,_0x550328){const _0x3580f1=_0x2ce2;try{return await _0x3d68e4(_0x1053bd,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x3c4336){if(_0x3c4336[_0x3580f1(0x164)]!==_0x3580f1(0x117))throw _0x3c4336;let _0x4fc1f7=await I(_0x550328);return _0x4fc1f7!==null&&L(_0x4fc1f7)?!0x1:(await _0x469cb0(_0x1053bd,{'recursive':!0x0,'force':!0x0}),await _0x3d68e4(_0x1053bd,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function N(_0x22efe3){return await new Promise(_0x4bac6c=>{const _0x2b65d4=_0x2ce2;let _0x42cdc4=_0x5c2237[_0x2b65d4(0x14e)](_0x22efe3);_0x42cdc4[_0x2b65d4(0x157)](_0x2b65d4(0x111),()=>{const _0xaaf731=_0x2b65d4;_0x42cdc4[_0xaaf731(0x120)](),_0x4bac6c(!0x0);}),_0x42cdc4['once'](_0x2b65d4(0x10d),()=>{_0x4bac6c(!0x1);});});}function P(_0x526272){return _0x243bd7(_0x526272)?!0x1:_0x1ec61b(_0x526272);}async function F(_0x55661f){const _0x44e112=_0x2ce2;_0x243bd7(_0x55661f)||await _0x469cb0(_0x55661f,{'force':!0x0})[_0x44e112(0x134)](()=>void 0x0);}async function I(_0x2b5936){const _0x46e765=_0x2ce2;try{let _0x45ea58=await _0x278b63(_0x2b5936,_0x46e765(0x155)),_0x4addfa=Number(_0x45ea58[_0x46e765(0x133)]());return Number['isFinite'](_0x4addfa)?_0x4addfa:null;}catch{return null;}}function L(_0x26c9c5){try{return _0x2ad829['kill'](_0x26c9c5,0x0),!0x0;}catch{return!0x1;}}function _0x3167(){const _0x1460ae=['createConnection','stringify','current','mutates','slice','params','runtimeRoot','utf8','dispose','once','58320FvhuJO','traceparent','sigint','unloadIdleSessions','argv','logRequestError','eventName','method','pidPath','SessionGetWorkbook','destroyAll','sessionHost','code','pid','exit','metaPath','listen','now','SessionLoadWorkbook','indexOf','format','DaemonRpcServer','loadWorkbookDataReplayPack','loadWorkbookData','parse','value','getSessionCount','DaemonRpcFinish','unref','SessionLoadWorkbookDataReplayPack','473423uwdpej','max','absolutePath','exportWorkbookData','SessionCreateWorkbook','loadWorkbook','Health','event','durationMs','runtimeExecutionPlaneEntry','info','cwd','error','close','196760EJxzps','920934uHHAEi','connect','mutations','lockPath','homeDir','meta','server','EEXIST','workbookData','write','baseWorkbookData','SessionDispose','SessionEvalJs','Method\x20not\x20found:\x20','Runtime','toString','end','SIGINT','66245gLSkWy','getWorkbookSession','SessionExportWorkbookData','env','createServer','socketPath','sizeBytes','Daemon','UNIVER_CLI_BUILD_ID','2.0','serve','startedAt','flush','DaemonRpcError','min','12MxdWoU','exportWorkbookFile','trim','catch','data','1136618obBXCs','withSpan','timestamp','logRequestEvent','outputPath','createdAt','univer-daemon','DaemonRpcStart','sessionId','session','name','toISOString','getSession','createWorkbook','1073653leIpxu','UNIVER_CLI_VERSION','finally','DaemonStop','Daemon\x20handler\x20not\x20ready:\x20','UNIVER_DISTRIBUTION_CHANNEL','buildId','message','packageIdentity','sessionRoot'];_0x3167=function(){return _0x1460ae;};return _0x3167();}function R(_0x5a6098,_0x1e8442){const _0x48e60c=_0x2ce2;return{'jsonrpc':_0x48e60c(0x12b),'id':_0x5a6098,'result':_0x1e8442};}function z(_0x583c32,_0x2f1104,_0x4f7734){const _0x489600=_0x2ce2;return{'jsonrpc':_0x489600(0x12b),'id':_0x583c32,'error':{'code':_0x2f1104,'message':_0x4f7734 instanceof Error?_0x4f7734[_0x489600(0x14b)]:String(_0x4f7734)}};}var B=process[_0x92d56a(0x15c)][0x2]??_0x92d56a(0x12c);B!==_0x92d56a(0x12c)&&(console['error']('Unknown\x20daemon\x20subcommand:\x20'+B),process['exit'](0x1)),C()[_0x92d56a(0x134)](_0x2b4484=>{const _0x54f68d=_0x92d56a;console[_0x54f68d(0x10d)](_0x2b4484 instanceof Error?_0x2b4484[_0x54f68d(0x14b)]:String(_0x2b4484)),process[_0x54f68d(0x166)](0x1);});
2
+ const _0x1b9323=_0x32c2;(function(_0x3a93e8,_0x1dffdc){const _0x4fe718=_0x32c2,_0xc20867=_0x3a93e8();while(!![]){try{const _0x593525=-parseInt(_0x4fe718(0x255))/0x1+parseInt(_0x4fe718(0x21a))/0x2+-parseInt(_0x4fe718(0x20f))/0x3*(-parseInt(_0x4fe718(0x207))/0x4)+parseInt(_0x4fe718(0x252))/0x5+-parseInt(_0x4fe718(0x213))/0x6+parseInt(_0x4fe718(0x238))/0x7+parseInt(_0x4fe718(0x233))/0x8*(-parseInt(_0x4fe718(0x212))/0x9);if(_0x593525===_0x1dffdc)break;else _0xc20867['push'](_0xc20867['shift']());}catch(_0x56503b){_0xc20867['push'](_0xc20867['shift']());}}}(_0x44d4,0x60955));import'../chunks/vendor-DjomC5bd.js';import{a as _0x2a75cc,i as _0x298b30,n,o as _0x3cc7fc,r as _0x175304,t as _0x1fb4eb}from'../chunks/trace-DPfd8LdJ.js';import{a as _0x2956cc,d as _0x2f37a3,l as _0x524539,m as _0x32ebc9,n as _0x178967,r as _0x1e55c1,u as _0x3cd531}from'../chunks/runtime-manifest-DvhuIQzx.js';import{t as _0x5466be}from'../chunks/build-id-Coc3wh1M.js';import{existsSync as _0x256842}from'node:fs';import{chmod as _0x41298a,mkdir as _0x10db94,readFile as _0x2b77e9,rm as _0x445b58,writeFile as _0x2b452b}from'node:fs/promises';import _0x195bef from'node:net';import _0x22bf76 from'node:process';var S=new _0x1e55c1();async function C(_0x252935={}){const _0x239d99=_0x32c2;let _0x503a3f=_0x252935[_0x239d99(0x240)]??_0x22bf76['env'],_0xa535aa=_0x3cd531(_0x503a3f),_0x58b8a6=_0x178967(_0x503a3f),_0x814e0c=_0x252935[_0x239d99(0x24b)]??E(new _0x2956cc({'env':_0x503a3f,'logger':_0x2f37a3({'env':_0x503a3f,'role':_0x2a75cc[_0x239d99(0x217)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x58b8a6[_0x239d99(0x22e)]['execArgv']],'modulePath':_0x58b8a6['runtimeExecutionPlaneEntry'][_0x239d99(0x1e9)]})})),_0x4a889f=_0x5466be(_0x503a3f),_0xe44cff=new Date()[_0x239d99(0x223)]();if(await _0x10db94(_0xa535aa[_0x239d99(0x1e8)],{'recursive':!0x0,'mode':0x1c0}),await _0x10db94(_0xa535aa[_0x239d99(0x25b)],{'recursive':!0x0,'mode':0x1c0}),!await M(_0xa535aa[_0x239d99(0x24f)],_0xa535aa[_0x239d99(0x22a)])){if(await N(_0xa535aa['socketPath']))return;throw Error('Another\x20daemon\x20startup\x20owns\x20'+_0xa535aa[_0x239d99(0x24f)]);}await j(_0xa535aa);let _0x21cb07=_0x2f37a3({'env':_0x503a3f,'role':_0x2a75cc[_0x239d99(0x20a)]}),_0x376220=k({'buildId':_0x4a889f,'env':_0x503a3f,'pid':_0x22bf76[_0x239d99(0x1f0)]}),_0x3e1d4a=!0x1,_0x1f417a={},_0xec5112=async _0x4d0daf=>z(null,-0x7f5b,Error(_0x239d99(0x231)+_0x4d0daf)),_0x50f4e3=_0x195bef[_0x239d99(0x243)](_0x3794b6=>{const _0x4679ba=_0x239d99;let _0xb86bec='';_0x3794b6['on'](_0x4679ba(0x20d),_0x3f4ac2=>{const _0x1fdcd8=_0x4679ba;_0xb86bec+=_0x3f4ac2[_0x1fdcd8(0x20c)](_0x1fdcd8(0x1f1)),_0xde72e2();}),_0x3794b6['on'](_0x4679ba(0x216),()=>void 0x0);let _0xde72e2=async()=>{const _0x1ac2aa=_0x4679ba;for(;;){let _0x4455f8=_0xb86bec[_0x1ac2aa(0x1df)]('\x0a');if(_0x4455f8<0x0)return;let _0x586ba8=_0xb86bec[_0x1ac2aa(0x235)](0x0,_0x4455f8)[_0x1ac2aa(0x258)]();if(_0xb86bec=_0xb86bec[_0x1ac2aa(0x235)](_0x4455f8+0x1),!_0x586ba8)continue;let _0x19a31f=await _0xec5112(_0x586ba8);_0x3794b6[_0x1ac2aa(0x206)](JSON[_0x1ac2aa(0x1e1)](_0x19a31f)+'\x0a');}};});_0xec5112=w({'buildId':_0x4a889f,'logRequestEvent':async _0x30b58d=>{const _0x20f1a7=_0x239d99;_0x21cb07[_0x20f1a7(0x1f7)]({'level':_0x30b58d[_0x20f1a7(0x218)]===_0x298b30[_0x20f1a7(0x221)]?_0x20f1a7(0x216):'info','event_name':_0x30b58d[_0x20f1a7(0x218)],'component':_0x175304['Daemon'],'process_role':_0x2a75cc['Daemon'],..._0x30b58d['error']===void 0x0?{}:{'error':_0x30b58d[_0x20f1a7(0x216)]},'fields':{..._0x376220,..._0x30b58d[_0x20f1a7(0x1e6)]===void 0x0?{}:{'duration_ms':_0x30b58d[_0x20f1a7(0x1e6)]},'method':_0x30b58d[_0x20f1a7(0x247)],'timestamp':_0x30b58d['timestamp']}});},'logRequestError':async _0x3cfc9c=>{const _0x1d7a53=_0x239d99;_0x21cb07['error']({'event_name':_0x298b30[_0x1d7a53(0x221)],'component':_0x175304['Daemon'],'process_role':_0x2a75cc[_0x1d7a53(0x20a)],'error':_0x3cfc9c[_0x1d7a53(0x216)],'fields':{..._0x376220,'method':_0x3cfc9c['method'],'timestamp':_0x3cfc9c[_0x1d7a53(0x1fb)]}});},'onShutdownRequest':()=>{const _0x519ad5=_0x239d99;_0x3a3819(_0x519ad5(0x245))[_0x519ad5(0x24c)](()=>{const _0x546a28=_0x519ad5;_0x22bf76[_0x546a28(0x205)](0x0);});},'pid':_0x22bf76[_0x239d99(0x1f0)],'runtimeRoot':_0xa535aa[_0x239d99(0x250)],'sessionHost':_0x814e0c,'socketPath':_0xa535aa[_0x239d99(0x211)],'startedAt':_0xe44cff}),await new Promise((_0x4bc38f,_0xe1d810)=>{const _0x576f1d=_0x239d99;_0x50f4e3[_0x576f1d(0x21f)](_0x576f1d(0x216),_0xe1d810),_0x50f4e3[_0x576f1d(0x21d)](_0xa535aa[_0x576f1d(0x211)],_0x4bc38f);}),_0x524539(_0xa535aa[_0x239d99(0x211)])||await _0x41298a(_0xa535aa[_0x239d99(0x211)],0x180);let _0x44aae3={'pid':_0x22bf76[_0x239d99(0x1f0)],'startedAt':_0xe44cff,'socketPath':_0xa535aa[_0x239d99(0x211)],'runtimeRoot':_0xa535aa['homeDir'],'buildId':_0x4a889f};await _0x2b452b(_0xa535aa['pidPath'],String(_0x22bf76[_0x239d99(0x1f0)]),_0x239d99(0x1f1)),await _0x2b452b(_0xa535aa[_0x239d99(0x208)],JSON[_0x239d99(0x1e1)](_0x44aae3,null,0x2),_0x239d99(0x1f1)),_0x21cb07[_0x239d99(0x214)]({'event_name':_0x298b30['DaemonStart'],'component':_0x175304[_0x239d99(0x20a)],'process_role':_0x2a75cc[_0x239d99(0x20a)],'fields':{..._0x376220,'pid':_0x22bf76[_0x239d99(0x1f0)],'runtime_root':_0xa535aa[_0x239d99(0x250)],'socket_path':_0xa535aa[_0x239d99(0x211)],'started_at':_0xe44cff}}),await _0x21cb07[_0x239d99(0x237)]();let _0x4f2a5d=setInterval(()=>{const _0x541fb0=_0x239d99;_0x814e0c[_0x541fb0(0x249)]();},Math[_0x239d99(0x259)](0x3e8,Math[_0x239d99(0x22f)](_0x814e0c[_0x239d99(0x24a)](),0xea60)));_0x4f2a5d[_0x239d99(0x209)](),_0x1f417a['current']=_0x4f2a5d;async function _0x3a3819(_0x34e6b1){const _0x87edd3=_0x239d99;_0x3e1d4a||(_0x3e1d4a=!0x0,_0x1f417a[_0x87edd3(0x23a)]!==void 0x0&&clearInterval(_0x1f417a[_0x87edd3(0x23a)]),_0x21cb07[_0x87edd3(0x214)]({'event_name':_0x298b30['DaemonStop'],'component':_0x175304[_0x87edd3(0x20a)],'process_role':_0x2a75cc[_0x87edd3(0x20a)],'fields':{..._0x376220,'pid':_0x22bf76[_0x87edd3(0x1f0)],'reason':_0x34e6b1,'timestamp':new Date()[_0x87edd3(0x223)]()}}),await _0x21cb07[_0x87edd3(0x237)](),await _0x814e0c[_0x87edd3(0x1f6)](_0x34e6b1),await new Promise(_0x2620d5=>{const _0x2f3a0a=_0x87edd3;_0x50f4e3[_0x2f3a0a(0x200)](()=>_0x2620d5());}),await F(_0xa535aa['socketPath']),await _0x445b58(_0xa535aa[_0x87edd3(0x22a)],{'force':!0x0})[_0x87edd3(0x230)](()=>void 0x0),await _0x445b58(_0xa535aa[_0x87edd3(0x208)],{'force':!0x0})[_0x87edd3(0x230)](()=>void 0x0),await _0x445b58(_0xa535aa['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x87edd3(0x230)](()=>void 0x0));}_0x22bf76['on'](_0x239d99(0x21b),()=>{const _0x36160a=_0x239d99;_0x3a3819('sigint')[_0x36160a(0x24c)](()=>{const _0x390d5c=_0x36160a;_0x22bf76[_0x390d5c(0x205)](0x0);});}),_0x22bf76['on'](_0x239d99(0x23d),()=>{const _0x3f6a10=_0x239d99;_0x3a3819(_0x3f6a10(0x1f3))['finally'](()=>{const _0x3cd6f7=_0x3f6a10;_0x22bf76[_0x3cd6f7(0x205)](0x0);});});}function _0x44d4(){const _0x40b56c=['finally','getSession','unknown','lockPath','homeDir','getWorkbookSession','3721980NtASUw','now','code','335643aquBPj','createdAt','withSpan','trim','max','outputPath','sessionRoot','indexOf','SessionDispose','stringify','local','logRequestEvent','resolveIdentity','params','durationMs','argv','daemonDir','modulePath','SessionLoadWorkbook','getSessionCount','exportWorkbookData','DaemonRpcStart','meta','SessionExportWorkbookData','pid','utf8','2.0','sigterm','loadWorkbookDataReplayPack','SessionCreateWorkbook','destroyAll','event','end','dispose','DaemonRpcFinish','timestamp','startedAt','onShutdownRequest','Shutdown','connect','close','exportWorkbookFile','isFinite','baseWorkbookData','cwd','exit','write','811448EKUZNQ','metaPath','unref','Daemon','workbookData','toString','data','UNIVER_CLI_VERSION','9bIIuJf','mutations','socketPath','279HuhQzk','3871530IwPLbs','info','UNIVER_CLI_BUILD_ID','error','Runtime','eventName','loadWorkbookData','1335862DPmMbu','SIGINT','session','listen','kill','once','createWorkbook','DaemonRpcError','SessionLoadWorkbookDataReplayPack','toISOString','name','mutates','DaemonRpcServer','server','EEXIST','Unknown\x20daemon\x20subcommand:\x20','pidPath','absolutePath','packageIdentity','serve','runtimeExecutionPlaneEntry','min','catch','Daemon\x20handler\x20not\x20ready:\x20','createConnection','355064sVnpUw','sizeBytes','slice','message','flush','5120241abxTKn','withContext','current','SessionGetWorkbook','SessionEvalJs','SIGTERM','buildId','runtimeRoot','env','loadWorkbook','univer-daemon','createServer','evalJs','rpc-shutdown','value','method','format','unloadIdleSessions','getSessionIdleTtlMs','sessionHost'];_0x44d4=function(){return _0x40b56c;};return _0x44d4();}function w(_0x1348d0){return async _0x331f63=>{const _0x29d8c=_0x32c2;let _0x41b969;try{_0x41b969=JSON['parse'](_0x331f63);}catch(_0x202982){return z(null,-0x7fbc,_0x202982);}let _0x22e088=_0x1fb4eb(_0x41b969[_0x29d8c(0x1ee)]?.['traceparent']),_0x4dd18c=async()=>await n[_0x29d8c(0x257)]({'name':_0x3cc7fc[_0x29d8c(0x226)],'kind':_0x29d8c(0x227)},async()=>{const _0x195eee=_0x29d8c;let _0x350781=Date['now']();await _0x1348d0[_0x195eee(0x1e3)]?.({'eventName':_0x298b30[_0x195eee(0x1ed)],'method':_0x41b969[_0x195eee(0x247)],'timestamp':new Date()[_0x195eee(0x223)]()});try{let _0x26044b=await T(_0x41b969,_0x1348d0);return await _0x1348d0['logRequestEvent']?.({'durationMs':Date[_0x195eee(0x253)]()-_0x350781,'eventName':_0x298b30[_0x195eee(0x1fa)],'method':_0x41b969[_0x195eee(0x247)],'timestamp':new Date()[_0x195eee(0x223)]()}),_0x26044b;}catch(_0x6cc22b){return await _0x1348d0['logRequestEvent']?.({'durationMs':Date[_0x195eee(0x253)]()-_0x350781,'eventName':_0x298b30['DaemonRpcError'],'method':_0x41b969[_0x195eee(0x247)],'error':_0x6cc22b,'timestamp':new Date()[_0x195eee(0x223)]()}),_0x1348d0[_0x195eee(0x1e3)]===void 0x0&&await _0x1348d0['logRequestError']?.({'method':_0x41b969[_0x195eee(0x247)],'error':_0x6cc22b instanceof Error?_0x6cc22b[_0x195eee(0x236)]:String(_0x6cc22b),'timestamp':new Date()['toISOString']()}),z(_0x41b969['id'],-0x7f5b,_0x6cc22b);}});return _0x22e088===void 0x0?await _0x4dd18c():await n[_0x29d8c(0x239)](_0x22e088,_0x4dd18c);};}async function T(_0x46a866,_0x25bd27){const _0x1d55f6=_0x32c2;switch(_0x46a866[_0x1d55f6(0x247)]){case _0x32ebc9['Health']:return{'jsonrpc':_0x1d55f6(0x1f2),'id':_0x46a866['id'],'result':{'ok':!0x0,'pid':_0x25bd27[_0x1d55f6(0x1f0)],'startedAt':_0x25bd27[_0x1d55f6(0x1fc)],'socketPath':_0x25bd27[_0x1d55f6(0x211)],'runtimeRoot':_0x25bd27[_0x1d55f6(0x23f)],'buildId':_0x25bd27[_0x1d55f6(0x23e)],'sessionCount':_0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x1eb)]()}};case _0x32ebc9[_0x1d55f6(0x1fe)]:return _0x25bd27[_0x1d55f6(0x1fd)]?.(),{'jsonrpc':_0x1d55f6(0x1f2),'id':_0x46a866['id'],'result':{'stopping':!0x0}};case _0x32ebc9[_0x1d55f6(0x1ea)]:{let _0x464278=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x241)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0x464278);}case _0x32ebc9[_0x1d55f6(0x222)]:{let _0x38c291=await _0x25bd27['sessionHost'][_0x1d55f6(0x1f4)](_0x46a866['params']);return R(_0x46a866['id'],_0x38c291);}case _0x32ebc9[_0x1d55f6(0x1f5)]:{let _0x403b00=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x220)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0x403b00);}case _0x32ebc9[_0x1d55f6(0x23c)]:{let _0x35f806=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x244)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0x35f806);}case _0x32ebc9['SessionExportWorkbookFile']:{let _0xd94562=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x201)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0xd94562);}case _0x32ebc9[_0x1d55f6(0x1ef)]:{let _0x2ec8c2=_0x46a866[_0x1d55f6(0x1e5)],_0x34e216=await _0x25bd27[_0x1d55f6(0x24b)]['exportWorkbookData'](_0x2ec8c2);return R(_0x46a866['id'],_0x34e216);}case _0x32ebc9[_0x1d55f6(0x1e0)]:{let _0x3f1566=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x1f9)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0x3f1566);}case _0x32ebc9[_0x1d55f6(0x23b)]:{let _0x42b235=await _0x25bd27[_0x1d55f6(0x24b)][_0x1d55f6(0x251)](_0x46a866[_0x1d55f6(0x1e5)]);return R(_0x46a866['id'],_0x42b235);}default:return z(_0x46a866['id'],-0x7f59,Error('Method\x20not\x20found:\x20'+_0x46a866[_0x1d55f6(0x247)]));}}function E(_0x1fadf3){return{async 'createWorkbook'(_0x4a2a41){const _0x438dae=_0x32c2;let _0xe02f31=await D(_0x4a2a41),_0x539827=await _0x1fadf3[_0x438dae(0x220)]({..._0x4a2a41[_0x438dae(0x204)]===void 0x0?{}:{'cwd':_0x4a2a41[_0x438dae(0x204)]},'identity':_0xe02f31,..._0x4a2a41['id']===void 0x0?{}:{'workbookId':_0x4a2a41['id']},..._0x4a2a41[_0x438dae(0x224)]===void 0x0?{}:{'workbookName':_0x4a2a41[_0x438dae(0x224)]}});return{'success':!0x0,'workbookData':_0x539827['workbookData'],'session':O(_0x539827[_0x438dae(0x21c)])};},async 'dispose'(_0x373b87){const _0x597ddf=_0x32c2;let _0x154a63=await D(_0x373b87);return await _0x1fadf3['dispose']({..._0x373b87[_0x597ddf(0x204)]===void 0x0?{}:{'cwd':_0x373b87['cwd']},'identity':_0x154a63}),{'disposed':!0x0,'workbookIdentity':_0x154a63['absolutePath']};},async 'destroyAll'(_0x9a5ec2){const _0x1cf930=_0x32c2;await _0x1fadf3[_0x1cf930(0x1f6)]?.(_0x9a5ec2);},async 'evalJs'(_0x22038e){const _0x112ecd=_0x32c2;let _0x2c6ec8=await D(_0x22038e),_0x218adb=await _0x1fadf3[_0x112ecd(0x244)]({'code':_0x22038e[_0x112ecd(0x254)],..._0x22038e[_0x112ecd(0x204)]===void 0x0?{}:{'cwd':_0x22038e['cwd']},'identity':_0x2c6ec8,..._0x22038e['mutates']===void 0x0?{}:{'mutates':_0x22038e[_0x112ecd(0x225)]}});return{..._0x218adb[_0x112ecd(0x210)]===void 0x0?{}:{'mutations':_0x218adb[_0x112ecd(0x210)]},'success':!0x0,'value':_0x218adb[_0x112ecd(0x246)],'session':O(_0x218adb[_0x112ecd(0x21c)])};},async 'exportWorkbookData'(_0x5d067e){const _0x47289a=_0x32c2;let _0x3136a8=await D(_0x5d067e),_0x251410=await _0x1fadf3[_0x47289a(0x1ec)]({..._0x5d067e[_0x47289a(0x204)]===void 0x0?{}:{'cwd':_0x5d067e[_0x47289a(0x204)]},'identity':_0x3136a8});return{'success':!0x0,'workbookData':_0x251410[_0x47289a(0x20b)],'session':O(_0x251410[_0x47289a(0x21c)])};},async 'exportWorkbookFile'(_0x2b563c){const _0x104db5=_0x32c2;let _0x595da4=await D(_0x2b563c),_0x3a10c6=await _0x1fadf3[_0x104db5(0x201)]({..._0x2b563c[_0x104db5(0x204)]===void 0x0?{}:{'cwd':_0x2b563c[_0x104db5(0x204)]},'format':_0x2b563c[_0x104db5(0x248)],'identity':_0x595da4,'outputPath':_0x2b563c[_0x104db5(0x25a)]});return{'success':!0x0,'format':_0x3a10c6[_0x104db5(0x248)],'outputPath':_0x3a10c6[_0x104db5(0x25a)],'sizeBytes':_0x3a10c6[_0x104db5(0x234)],'session':O(_0x3a10c6[_0x104db5(0x21c)])};},async 'getWorkbookSession'(_0x551cef){const _0x5813ec=_0x32c2;let _0x1f165c=await D(_0x551cef),_0x135e00=await _0x1fadf3[_0x5813ec(0x24d)]({..._0x551cef[_0x5813ec(0x204)]===void 0x0?{}:{'cwd':_0x551cef[_0x5813ec(0x204)]},'identity':_0x1f165c});return{'exists':_0x135e00!==null,'session':_0x135e00===null?null:O(_0x135e00)};},'getSessionCount'(){return _0x1fadf3['getSessionCount']?.()??0x0;},'getSessionIdleTtlMs'(){return _0x1fadf3['getSessionIdleTtlMs']?.()??0xea60;},async 'loadWorkbook'(_0xdcae15){const _0x1b82e7=_0x32c2;let _0x49b476=await D(_0xdcae15),_0x409635=await _0x1fadf3[_0x1b82e7(0x219)]({..._0xdcae15[_0x1b82e7(0x204)]===void 0x0?{}:{'cwd':_0xdcae15[_0x1b82e7(0x204)]},'identity':_0x49b476,'workbookData':_0xdcae15[_0x1b82e7(0x20b)]});return{'success':!0x0,'workbookData':_0x409635[_0x1b82e7(0x20b)],'session':O(_0x409635[_0x1b82e7(0x21c)])};},async 'loadWorkbookDataReplayPack'(_0x18d749){const _0x4f418f=_0x32c2;let _0x39e2e1=await D(_0x18d749),_0x4c4c94=await _0x1fadf3[_0x4f418f(0x1f4)]({..._0x18d749[_0x4f418f(0x204)]===void 0x0?{}:{'cwd':_0x18d749[_0x4f418f(0x204)]},'identity':_0x39e2e1,'replayPack':{'baseWorkbookData':_0x18d749[_0x4f418f(0x203)],'mutations':_0x18d749[_0x4f418f(0x210)]}});return{'success':!0x0,'workbookData':_0x4c4c94[_0x4f418f(0x20b)],'session':O(_0x4c4c94[_0x4f418f(0x21c)])};},async 'unloadIdleSessions'(){const _0x3d0837=_0x32c2;await _0x1fadf3[_0x3d0837(0x249)]?.();}};}async function D(_0x1e9420){const _0x274507=_0x32c2;return await S[_0x274507(0x1e4)](_0x1e9420);}function O(_0x2a1aba){const _0x3eb7f8=_0x32c2;return{'createdAt':_0x2a1aba[_0x3eb7f8(0x256)]??'','lastAccessedAt':_0x2a1aba['lastAccessedAt']??'','sessionId':_0x2a1aba['sessionId'],'workbookIdentity':_0x2a1aba[_0x3eb7f8(0x22c)][_0x3eb7f8(0x22b)]};}function k(_0xcfee32){const _0x7c28f8=_0x32c2;return{'build.id':A(_0xcfee32[_0x7c28f8(0x240)],_0x7c28f8(0x215))??_0xcfee32[_0x7c28f8(0x23e)],'deployment.environment.name':_0x7c28f8(0x1e2),'distribution.channel':A(_0xcfee32[_0x7c28f8(0x240)],'UNIVER_DISTRIBUTION_CHANNEL')??_0x7c28f8(0x24e),'service.instance.id':String(_0xcfee32['pid']),'service.name':_0x7c28f8(0x242),...A(_0xcfee32[_0x7c28f8(0x240)],_0x7c28f8(0x20e))===void 0x0?{}:{'service.version':A(_0xcfee32[_0x7c28f8(0x240)],_0x7c28f8(0x20e))}};}function A(_0x60b010,_0x2a30c2){const _0x4bb9f7=_0x32c2;let _0x390b6c=_0x60b010[_0x2a30c2]?.[_0x4bb9f7(0x258)]();return _0x390b6c===void 0x0||_0x390b6c['length']===0x0?void 0x0:_0x390b6c;}async function j(_0x37f8f3){const _0x249ed7=_0x32c2;P(_0x37f8f3[_0x249ed7(0x211)])&&!await N(_0x37f8f3[_0x249ed7(0x211)])&&await F(_0x37f8f3['socketPath']);let _0x4ef4a4=await I(_0x37f8f3[_0x249ed7(0x22a)]);_0x4ef4a4!==null&&!L(_0x4ef4a4)&&(await _0x445b58(_0x37f8f3['pidPath'],{'force':!0x0})[_0x249ed7(0x230)](()=>void 0x0),await _0x445b58(_0x37f8f3[_0x249ed7(0x208)],{'force':!0x0})[_0x249ed7(0x230)](()=>void 0x0),await _0x445b58(_0x37f8f3['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x249ed7(0x230)](()=>void 0x0));}async function M(_0x5400ae,_0xe5c6e6){const _0x2f0755=_0x32c2;try{return await _0x10db94(_0x5400ae,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x5af5b1){if(_0x5af5b1[_0x2f0755(0x254)]!==_0x2f0755(0x228))throw _0x5af5b1;let _0x10441c=await I(_0xe5c6e6);return _0x10441c!==null&&L(_0x10441c)?!0x1:(await _0x445b58(_0x5400ae,{'recursive':!0x0,'force':!0x0}),await _0x10db94(_0x5400ae,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function N(_0x42e034){return await new Promise(_0x3ad37a=>{const _0x392be9=_0x32c2;let _0x89b833=_0x195bef[_0x392be9(0x232)](_0x42e034);_0x89b833['once'](_0x392be9(0x1ff),()=>{const _0x1ec606=_0x392be9;_0x89b833[_0x1ec606(0x1f8)](),_0x3ad37a(!0x0);}),_0x89b833[_0x392be9(0x21f)]('error',()=>{_0x3ad37a(!0x1);});});}function P(_0xb48fcd){return _0x524539(_0xb48fcd)?!0x1:_0x256842(_0xb48fcd);}async function F(_0x1f9d16){const _0x4b6e7c=_0x32c2;_0x524539(_0x1f9d16)||await _0x445b58(_0x1f9d16,{'force':!0x0})[_0x4b6e7c(0x230)](()=>void 0x0);}function _0x32c2(_0x1a3f18,_0x3c91b9){_0x1a3f18=_0x1a3f18-0x1df;const _0x44d423=_0x44d4();let _0x32c224=_0x44d423[_0x1a3f18];return _0x32c224;}async function I(_0x3803de){const _0xc8ea1e=_0x32c2;try{let _0x4c0ec0=await _0x2b77e9(_0x3803de,_0xc8ea1e(0x1f1)),_0x5823b1=Number(_0x4c0ec0[_0xc8ea1e(0x258)]());return Number[_0xc8ea1e(0x202)](_0x5823b1)?_0x5823b1:null;}catch{return null;}}function L(_0x58bb08){const _0x2d1ab9=_0x32c2;try{return _0x22bf76[_0x2d1ab9(0x21e)](_0x58bb08,0x0),!0x0;}catch{return!0x1;}}function R(_0x4827da,_0x2490ec){return{'jsonrpc':'2.0','id':_0x4827da,'result':_0x2490ec};}function z(_0x25232f,_0xc811f2,_0x372da){const _0x1f2f91=_0x32c2;return{'jsonrpc':_0x1f2f91(0x1f2),'id':_0x25232f,'error':{'code':_0xc811f2,'message':_0x372da instanceof Error?_0x372da[_0x1f2f91(0x236)]:String(_0x372da)}};}var B=process[_0x1b9323(0x1e7)][0x2]??_0x1b9323(0x22d);B!=='serve'&&(console[_0x1b9323(0x216)](_0x1b9323(0x229)+B),process['exit'](0x1)),C()[_0x1b9323(0x230)](_0x53c2cb=>{const _0x5ef9fc=_0x1b9323;console['error'](_0x53c2cb instanceof Error?_0x53c2cb[_0x5ef9fc(0x236)]:String(_0x53c2cb)),process[_0x5ef9fc(0x205)](0x1);});
@@ -1 +1 @@
1
- function _0x4789(_0x3eb862,_0x36df5d){_0x3eb862=_0x3eb862-0x193;const _0x68f5fd=_0x68f5();let _0x4789e9=_0x68f5fd[_0x3eb862];return _0x4789e9;}const _0x1e7cf1=_0x4789;(function(_0x4ed70e,_0x10c49d){const _0x26bfa5=_0x4789,_0x40a886=_0x4ed70e();while(!![]){try{const _0x2780d1=parseInt(_0x26bfa5(0x19d))/0x1*(-parseInt(_0x26bfa5(0x19c))/0x2)+-parseInt(_0x26bfa5(0x1be))/0x3+-parseInt(_0x26bfa5(0x1ac))/0x4+-parseInt(_0x26bfa5(0x1bb))/0x5+-parseInt(_0x26bfa5(0x196))/0x6*(-parseInt(_0x26bfa5(0x1a2))/0x7)+parseInt(_0x26bfa5(0x19f))/0x8*(-parseInt(_0x26bfa5(0x1a9))/0x9)+parseInt(_0x26bfa5(0x193))/0xa;if(_0x2780d1===_0x10c49d)break;else _0x40a886['push'](_0x40a886['shift']());}catch(_0x144958){_0x40a886['push'](_0x40a886['shift']());}}}(_0x68f5,0xe13d3));import'../chunks/vendor-DjomC5bd.js';import{t as _0x34182f}from'../chunks/headless-univer-BWfA31gd.js';import{n as _0x3d3bf5,o as _0xe6e9f7,t as _0x4ee2ea}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0xe71dcd){const _0x3e75ee=_0x4789;return _0xe71dcd[_0x3e75ee(0x198)]='createWorkbook',_0xe71dcd['EvalJs']=_0x3e75ee(0x1a5),_0xe71dcd[_0x3e75ee(0x1b9)]=_0x3e75ee(0x1bc),_0xe71dcd[_0x3e75ee(0x1a7)]='exportWorkbookData',_0xe71dcd[_0x3e75ee(0x194)]='loadWorkbook',_0xe71dcd[_0x3e75ee(0x1b7)]=_0x3e75ee(0x1c0),_0xe71dcd;}({});function _0x68f5(){const _0x3d04e4=['mutations','traceparent','593194qZYRSh','1PcLrZk','2.0','8gJwIQq','tail','exportWorkbookData','201271mSfqld','rpc-response','EvalJs','evaljs','resolve','ExportWorkbookData','enqueue','1000746TzCCzX','dispose','evalJsWithMutationCapture','1867660PosFvK','message','value','createWorkbook','RuntimeRpcClient','exit','params','withSpan','mutates','evalJs','data','LoadWorkbookDataReplayPack','method','ExportWorkbookFile','workbookData','8981330uWFlpV','exportWorkbookFile','SIGTERM','608202LrPdWM','ready','loadWorkbookDataReplayPack','36525200PzXaPM','LoadWorkbook','code','30YPYNnB','send','CreateWorkbook','disconnect'];_0x68f5=function(){return _0x3d04e4;};return _0x68f5();}var a=class{[_0x1e7cf1(0x1a0)]=Promise[_0x1e7cf1(0x1a6)]();async[_0x1e7cf1(0x1a8)](_0x697af6){const _0x5d994d=_0x1e7cf1;let _0xe8dc08=this['tail'],_0x36805e;this[_0x5d994d(0x1a0)]=new Promise(_0xb00f7c=>{_0x36805e=_0xb00f7c;}),await _0xe8dc08;try{return await _0x697af6();}finally{_0x36805e?.();}}},o=_0x34182f(),s=new a();process[_0x1e7cf1(0x197)]?.({'type':_0x1e7cf1(0x1bf)}),process['on'](_0x1e7cf1(0x1ad),async _0x21418f=>{const _0x14e39e=_0x1e7cf1;if(_0x21418f?.['type']!=='rpc-request')return;let _0x4c74c9=await c(_0x21418f[_0x14e39e(0x1b6)]);process[_0x14e39e(0x197)]?.({'type':_0x14e39e(0x1a3),'id':_0x21418f['id'],'data':_0x4c74c9});}),process['on'](_0x1e7cf1(0x199),()=>{const _0x477422=_0x1e7cf1;o[_0x477422(0x1aa)](),process[_0x477422(0x1b1)](0x0);}),process['on'](_0x1e7cf1(0x1bd),()=>{const _0x2dd76e=_0x1e7cf1;o['dispose'](),process[_0x2dd76e(0x1b1)](0x0);});async function c(_0x201f54){const _0x18eae3=_0x1e7cf1;let _0x2e33e9=_0x4ee2ea(_0x201f54['meta']?.[_0x18eae3(0x19b)]),_0x2ad0cc=async()=>await _0x3d3bf5[_0x18eae3(0x1b3)]({'name':_0xe6e9f7[_0x18eae3(0x1b0)],'kind':'server'},async()=>await l(_0x201f54));return _0x2e33e9===void 0x0?await _0x2ad0cc():await _0x3d3bf5['withContext'](_0x2e33e9,_0x2ad0cc);}async function l(_0x52ca07){const _0x49717a=_0x1e7cf1;try{switch(_0x52ca07[_0x49717a(0x1b8)]){case i[_0x49717a(0x198)]:{let _0x260524=o[_0x49717a(0x1af)](_0x52ca07[_0x49717a(0x1b2)]??{});return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'result':{'success':!0x0,'workbookData':_0x260524}};}case i[_0x49717a(0x194)]:{let _0x7e3f8f=o['loadWorkbookData'](_0x52ca07[_0x49717a(0x1b2)][_0x49717a(0x1ba)]);return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'result':{'success':!0x0,'workbookData':_0x7e3f8f}};}case i[_0x49717a(0x1b7)]:{let _0x59886e=await o['loadWorkbookDataReplayPack'](_0x52ca07[_0x49717a(0x1b2)]);return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'result':{'success':!0x0,'workbookData':_0x59886e}};}case i[_0x49717a(0x1a7)]:return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'result':{'success':!0x0,'workbookData':o[_0x49717a(0x1a1)]()}};case i['ExportWorkbookFile']:{let _0x1751cb=_0x52ca07['params'],_0x286795=await o['exportWorkbookFile'](_0x1751cb['outputPath'],_0x1751cb['format']);return{'jsonrpc':'2.0','id':_0x52ca07['id'],'result':{'success':!0x0,..._0x286795}};}case i[_0x49717a(0x1a4)]:{let _0x5317b2=_0x52ca07[_0x49717a(0x1b2)]??{},_0x11b79a=async()=>{const _0x5c6189=_0x49717a;let _0x59528c=_0x5317b2[_0x5c6189(0x1b4)]?await o[_0x5c6189(0x1ab)](_0x5317b2[_0x5c6189(0x195)]):{'value':await o[_0x5c6189(0x1b5)](_0x5317b2['code']),'mutations':void 0x0};return{'success':!0x0,..._0x59528c['mutations']===void 0x0?{}:{'mutations':_0x59528c[_0x5c6189(0x19a)]},'value':_0x59528c[_0x5c6189(0x1ae)]};},_0xf3e7ce=_0x5317b2[_0x49717a(0x1b4)]?await s[_0x49717a(0x1a8)](_0x11b79a):await _0x11b79a();return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'result':_0xf3e7ce};}default:throw Error('Method\x20not\x20implemented:\x20'+String(_0x52ca07[_0x49717a(0x1b8)]));}}catch(_0x1a9dee){return{'jsonrpc':_0x49717a(0x19e),'id':_0x52ca07['id'],'error':{'code':-0x7f5b,'message':_0x1a9dee instanceof Error?_0x1a9dee['message']:String(_0x1a9dee)}};}}
1
+ const _0x455033=_0x5cc5;(function(_0x1ca190,_0x212783){const _0xae1e4f=_0x5cc5,_0x4e6911=_0x1ca190();while(!![]){try{const _0x31eedf=-parseInt(_0xae1e4f(0x1ce))/0x1*(-parseInt(_0xae1e4f(0x1c4))/0x2)+parseInt(_0xae1e4f(0x1b8))/0x3+parseInt(_0xae1e4f(0x1cd))/0x4+parseInt(_0xae1e4f(0x1bb))/0x5+parseInt(_0xae1e4f(0x1cc))/0x6*(parseInt(_0xae1e4f(0x1c7))/0x7)+-parseInt(_0xae1e4f(0x1bd))/0x8+-parseInt(_0xae1e4f(0x1bf))/0x9;if(_0x31eedf===_0x212783)break;else _0x4e6911['push'](_0x4e6911['shift']());}catch(_0x5d4664){_0x4e6911['push'](_0x4e6911['shift']());}}}(_0xcbc9,0xc6f6a));import'../chunks/vendor-DjomC5bd.js';import{t as _0x15f6d3}from'../chunks/headless-univer-BWfA31gd.js';import{n as _0x2fcc2b,o as _0x4348c7,t as _0x3292c5}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x3eb7bc){const _0x4923b2=_0x5cc5;return _0x3eb7bc[_0x4923b2(0x1d8)]=_0x4923b2(0x1d5),_0x3eb7bc[_0x4923b2(0x1dd)]='evaljs',_0x3eb7bc[_0x4923b2(0x1d1)]='exportWorkbookFile',_0x3eb7bc[_0x4923b2(0x1bc)]='exportWorkbookData',_0x3eb7bc[_0x4923b2(0x1de)]=_0x4923b2(0x1c0),_0x3eb7bc['LoadWorkbookDataReplayPack']=_0x4923b2(0x1ba),_0x3eb7bc;}({});function _0x5cc5(_0xb2ab60,_0x1b0d5f){_0xb2ab60=_0xb2ab60-0x1b8;const _0xcbc9d7=_0xcbc9();let _0x5cc5fa=_0xcbc9d7[_0xb2ab60];return _0x5cc5fa;}var a=class{[_0x455033(0x1dc)]=Promise[_0x455033(0x1c6)]();async[_0x455033(0x1e0)](_0x207acc){const _0x5aaaf4=_0x455033;let _0x2dd8be=this[_0x5aaaf4(0x1dc)],_0x394ee1;this['tail']=new Promise(_0x456312=>{_0x394ee1=_0x456312;}),await _0x2dd8be;try{return await _0x207acc();}finally{_0x394ee1?.();}}},o=_0x15f6d3(),s=new a();function _0xcbc9(){const _0x2f2081=['value','createWorkbook','withSpan','workbookData','CreateWorkbook','rpc-request','data','type','tail','EvalJs','LoadWorkbook','send','enqueue','136656fJusZU','format','loadWorkbookDataReplayPack','891505lFivHQ','ExportWorkbookData','4175048emiZMf','2.0','2382651KLVpJw','loadWorkbook','dispose','mutations','exportWorkbookData','6rXDOuH','ready','resolve','24822FnHdXf','method','code','exit','params','258Hsauvk','1565236hmDtTI','277978fjLgcg','Method\x20not\x20implemented:\x20','mutates','ExportWorkbookFile','exportWorkbookFile','rpc-response'];_0xcbc9=function(){return _0x2f2081;};return _0xcbc9();}process[_0x455033(0x1df)]?.({'type':_0x455033(0x1c5)}),process['on']('message',async _0x1c23c=>{const _0x269df6=_0x455033;if(_0x1c23c?.[_0x269df6(0x1db)]!==_0x269df6(0x1d9))return;let _0x2e052f=await c(_0x1c23c[_0x269df6(0x1da)]);process[_0x269df6(0x1df)]?.({'type':_0x269df6(0x1d3),'id':_0x1c23c['id'],'data':_0x2e052f});}),process['on']('disconnect',()=>{const _0x51ce54=_0x455033;o[_0x51ce54(0x1c1)](),process['exit'](0x0);}),process['on']('SIGTERM',()=>{const _0x5e87f0=_0x455033;o[_0x5e87f0(0x1c1)](),process[_0x5e87f0(0x1ca)](0x0);});async function c(_0x5de263){const _0x2f8eee=_0x455033;let _0xce78d6=_0x3292c5(_0x5de263['meta']?.['traceparent']),_0x4891e5=async()=>await _0x2fcc2b[_0x2f8eee(0x1d6)]({'name':_0x4348c7['RuntimeRpcClient'],'kind':'server'},async()=>await l(_0x5de263));return _0xce78d6===void 0x0?await _0x4891e5():await _0x2fcc2b['withContext'](_0xce78d6,_0x4891e5);}async function l(_0x115cb6){const _0x1f0b48=_0x455033;try{switch(_0x115cb6[_0x1f0b48(0x1c8)]){case i[_0x1f0b48(0x1d8)]:{let _0x2cd5ac=o[_0x1f0b48(0x1d5)](_0x115cb6[_0x1f0b48(0x1cb)]??{});return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':{'success':!0x0,'workbookData':_0x2cd5ac}};}case i[_0x1f0b48(0x1de)]:{let _0x11ada7=o['loadWorkbookData'](_0x115cb6[_0x1f0b48(0x1cb)][_0x1f0b48(0x1d7)]);return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':{'success':!0x0,'workbookData':_0x11ada7}};}case i['LoadWorkbookDataReplayPack']:{let _0x4abb70=await o[_0x1f0b48(0x1ba)](_0x115cb6[_0x1f0b48(0x1cb)]);return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':{'success':!0x0,'workbookData':_0x4abb70}};}case i['ExportWorkbookData']:return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':{'success':!0x0,'workbookData':o[_0x1f0b48(0x1c3)]()}};case i[_0x1f0b48(0x1d1)]:{let _0x1291aa=_0x115cb6[_0x1f0b48(0x1cb)],_0x538911=await o[_0x1f0b48(0x1d2)](_0x1291aa['outputPath'],_0x1291aa[_0x1f0b48(0x1b9)]);return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':{'success':!0x0,..._0x538911}};}case i[_0x1f0b48(0x1dd)]:{let _0xcf3337=_0x115cb6[_0x1f0b48(0x1cb)]??{},_0xad6c1a=async()=>{const _0x162b20=_0x1f0b48;let _0x3d6c12=_0xcf3337[_0x162b20(0x1d0)]?await o['evalJsWithMutationCapture'](_0xcf3337[_0x162b20(0x1c9)]):{'value':await o['evalJs'](_0xcf3337['code']),'mutations':void 0x0};return{'success':!0x0,..._0x3d6c12[_0x162b20(0x1c2)]===void 0x0?{}:{'mutations':_0x3d6c12['mutations']},'value':_0x3d6c12[_0x162b20(0x1d4)]};},_0x4cc195=_0xcf3337[_0x1f0b48(0x1d0)]?await s[_0x1f0b48(0x1e0)](_0xad6c1a):await _0xad6c1a();return{'jsonrpc':_0x1f0b48(0x1be),'id':_0x115cb6['id'],'result':_0x4cc195};}default:throw Error(_0x1f0b48(0x1cf)+String(_0x115cb6[_0x1f0b48(0x1c8)]));}}catch(_0x3a7ca9){return{'jsonrpc':'2.0','id':_0x115cb6['id'],'error':{'code':-0x7f5b,'message':_0x3a7ca9 instanceof Error?_0x3a7ca9['message']:String(_0x3a7ca9)}};}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univer-cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Command-line tools for local Univer workbook automation.",
5
5
  "repository": {
6
6
  "type": "git",