univer-cli 0.1.5 → 0.1.6

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 _0x197342=_0x43c1;(function(_0x160857,_0x125703){const _0x561754=_0x43c1,_0x608dd1=_0x160857();while(!![]){try{const _0x158257=-parseInt(_0x561754(0x188))/0x1+parseInt(_0x561754(0x17b))/0x2*(-parseInt(_0x561754(0x11d))/0x3)+parseInt(_0x561754(0x125))/0x4*(parseInt(_0x561754(0x12d))/0x5)+-parseInt(_0x561754(0x190))/0x6*(-parseInt(_0x561754(0x13a))/0x7)+-parseInt(_0x561754(0x18f))/0x8*(parseInt(_0x561754(0x191))/0x9)+-parseInt(_0x561754(0x155))/0xa+parseInt(_0x561754(0x15c))/0xb;if(_0x158257===_0x125703)break;else _0x608dd1['push'](_0x608dd1['shift']());}catch(_0x55740e){_0x608dd1['push'](_0x608dd1['shift']());}}}(_0x423c,0xc2f68));import'../chunks/vendor-DjomC5bd.js';import{a as _0x1dfdf0,i as _0x54400e,n,o as _0x4fb2e4,r as _0xa002ec,t as _0x17e0bc}from'../chunks/trace-y3C6-Sz8.js';import{a as _0x37c7f6,d as _0x535196,l as _0x4b129d,m as _0x4c89aa,n as _0x104a22,r as _0x4b63d8,u as _0x48233f}from'../chunks/runtime-manifest-CcNCfF8u.js';import{t as _0x5d1fb8}from'../chunks/build-id-Coc3wh1M.js';import{existsSync as _0x2bb63b}from'node:fs';import{chmod as _0x475a34,mkdir as _0x352183,readFile as _0x65e34f,rm as _0x4ba06b,writeFile as _0x1ddb93}from'node:fs/promises';function _0x423c(){const _0x23361f=['DaemonRpcFinish','daemonDir','rpc-shutdown','value','Shutdown','273tJWcBC','message','event','pidPath','getSession','pid','write','homeDir','660HOdqOE','Health','SessionLoadWorkbookDataReplayPack','listen','exit','params','metaPath','EEXIST','39070SZAIOp','getSessionIdleTtlMs','now','getSessionCount','slice','lockPath','baseWorkbookData','dispose','exportWorkbookFile','SIGINT','timestamp','min','once','258664sxDnNC','withSpan','logRequestError','createServer','SessionExportWorkbookData','absolutePath','onShutdownRequest','toString','code','parse','format','sigint','startedAt','name','DaemonStop','lastAccessedAt','connect','data','Daemon\x20handler\x20not\x20ready:\x20','stringify','max','kill','catch','flush','server','eventName','SIGTERM','9760750irldlb','logRequestEvent','finally','runtimeExecutionPlaneEntry','destroyAll','isFinite','exportWorkbookData','21861917GVLkLG','indexOf','info','SessionExportWorkbookFile','unloadIdleSessions','toISOString','SessionLoadWorkbook','sigterm','SessionGetWorkbook','createdAt','createWorkbook','outputPath','cwd','UNIVER_CLI_VERSION','Runtime','current','loadWorkbookData','mutates','error','mutations','sessionHost','DaemonRpcServer','meta','sessionId','UNIVER_DISTRIBUTION_CHANNEL','durationMs','loadWorkbook','buildId','loadWorkbookDataReplayPack','univer-daemon','UNIVER_CLI_BUILD_ID','26238MMBkNb','session','length','socketPath','traceparent','serve','end','utf8','Another\x20daemon\x20startup\x20owns\x20','packageIdentity','DaemonRpcError','Daemon','workbookData','1065604PKKIps','createConnection','modulePath','trim','2.0','unknown','method','8tFMdFb','138PBcLgM','833193RNKxcA','env'];_0x423c=function(){return _0x23361f;};return _0x423c();}import _0x1d10b6 from'node:net';import _0x5b31e5 from'node:process';var S=new _0x4b63d8();async function C(_0x105ae4={}){const _0x51cda3=_0x43c1;let _0x1d86a9=_0x105ae4[_0x51cda3(0x117)]??_0x5b31e5[_0x51cda3(0x117)],_0xee928=_0x48233f(_0x1d86a9),_0x4ccae3=_0x104a22(_0x1d86a9),_0x1d7378=_0x105ae4[_0x51cda3(0x170)]??E(new _0x37c7f6({'env':_0x1d86a9,'logger':_0x535196({'env':_0x1d86a9,'role':_0x1dfdf0[_0x51cda3(0x16a)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x4ccae3[_0x51cda3(0x158)]['execArgv']],'modulePath':_0x4ccae3[_0x51cda3(0x158)][_0x51cda3(0x18a)]})})),_0x200941=_0x5d1fb8(_0x1d86a9),_0xac31b3=new Date()[_0x51cda3(0x161)]();if(await _0x352183(_0xee928[_0x51cda3(0x119)],{'recursive':!0x0,'mode':0x1c0}),await _0x352183(_0xee928['sessionRoot'],{'recursive':!0x0,'mode':0x1c0}),!await M(_0xee928[_0x51cda3(0x132)],_0xee928['pidPath'])){if(await N(_0xee928['socketPath']))return;throw Error(_0x51cda3(0x183)+_0xee928[_0x51cda3(0x132)]);}await j(_0xee928);let _0x405e21=_0x535196({'env':_0x1d86a9,'role':_0x1dfdf0[_0x51cda3(0x186)]}),_0x49ed7b=k({'buildId':_0x200941,'env':_0x1d86a9,'pid':_0x5b31e5[_0x51cda3(0x122)]}),_0x117a81=!0x1,_0x1ebc84={},_0x36453e=async _0x4f3257=>z(null,-0x7f5b,Error(_0x51cda3(0x14c)+_0x4f3257)),_0x69b1fb=_0x1d10b6[_0x51cda3(0x13d)](_0x3fac76=>{const _0x23e27a=_0x51cda3;let _0x1dcdf0='';_0x3fac76['on'](_0x23e27a(0x14b),_0x3c20f0=>{const _0x264a83=_0x23e27a;_0x1dcdf0+=_0x3c20f0[_0x264a83(0x141)](_0x264a83(0x182)),_0x27fc6a();}),_0x3fac76['on'](_0x23e27a(0x16e),()=>void 0x0);let _0x27fc6a=async()=>{const _0xe12fb9=_0x23e27a;for(;;){let _0x50212a=_0x1dcdf0[_0xe12fb9(0x15d)]('\x0a');if(_0x50212a<0x0)return;let _0x1eaa2f=_0x1dcdf0[_0xe12fb9(0x131)](0x0,_0x50212a)['trim']();if(_0x1dcdf0=_0x1dcdf0[_0xe12fb9(0x131)](_0x50212a+0x1),!_0x1eaa2f)continue;let _0x992bd7=await _0x36453e(_0x1eaa2f);_0x3fac76[_0xe12fb9(0x123)](JSON[_0xe12fb9(0x14d)](_0x992bd7)+'\x0a');}};});_0x36453e=w({'buildId':_0x200941,'logRequestEvent':async _0x35ab6b=>{const _0x344fa3=_0x51cda3;_0x405e21[_0x344fa3(0x11f)]({'level':_0x35ab6b[_0x344fa3(0x153)]===_0x54400e[_0x344fa3(0x185)]?'error':_0x344fa3(0x15e),'event_name':_0x35ab6b[_0x344fa3(0x153)],'component':_0xa002ec['Daemon'],'process_role':_0x1dfdf0['Daemon'],..._0x35ab6b['error']===void 0x0?{}:{'error':_0x35ab6b[_0x344fa3(0x16e)]},'fields':{..._0x49ed7b,..._0x35ab6b[_0x344fa3(0x175)]===void 0x0?{}:{'duration_ms':_0x35ab6b['durationMs']},'method':_0x35ab6b[_0x344fa3(0x18e)],'timestamp':_0x35ab6b[_0x344fa3(0x137)]}});},'logRequestError':async _0x308397=>{const _0x10f956=_0x51cda3;_0x405e21['error']({'event_name':_0x54400e['DaemonRpcError'],'component':_0xa002ec['Daemon'],'process_role':_0x1dfdf0[_0x10f956(0x186)],'error':_0x308397[_0x10f956(0x16e)],'fields':{..._0x49ed7b,'method':_0x308397[_0x10f956(0x18e)],'timestamp':_0x308397[_0x10f956(0x137)]}});},'onShutdownRequest':()=>{const _0x25d83c=_0x51cda3;_0x10073e(_0x25d83c(0x11a))[_0x25d83c(0x157)](()=>{const _0x46ddd4=_0x25d83c;_0x5b31e5[_0x46ddd4(0x129)](0x0);});},'pid':_0x5b31e5['pid'],'runtimeRoot':_0xee928[_0x51cda3(0x124)],'sessionHost':_0x1d7378,'socketPath':_0xee928[_0x51cda3(0x17e)],'startedAt':_0xac31b3}),await new Promise((_0x17e33a,_0x340f4c)=>{const _0x35ea02=_0x51cda3;_0x69b1fb[_0x35ea02(0x139)](_0x35ea02(0x16e),_0x340f4c),_0x69b1fb[_0x35ea02(0x128)](_0xee928['socketPath'],_0x17e33a);}),_0x4b129d(_0xee928[_0x51cda3(0x17e)])||await _0x475a34(_0xee928['socketPath'],0x180);let _0x463387={'pid':_0x5b31e5['pid'],'startedAt':_0xac31b3,'socketPath':_0xee928['socketPath'],'runtimeRoot':_0xee928[_0x51cda3(0x124)],'buildId':_0x200941};await _0x1ddb93(_0xee928[_0x51cda3(0x120)],String(_0x5b31e5[_0x51cda3(0x122)]),_0x51cda3(0x182)),await _0x1ddb93(_0xee928[_0x51cda3(0x12b)],JSON[_0x51cda3(0x14d)](_0x463387,null,0x2),_0x51cda3(0x182)),_0x405e21[_0x51cda3(0x15e)]({'event_name':_0x54400e['DaemonStart'],'component':_0xa002ec[_0x51cda3(0x186)],'process_role':_0x1dfdf0[_0x51cda3(0x186)],'fields':{..._0x49ed7b,'pid':_0x5b31e5[_0x51cda3(0x122)],'runtime_root':_0xee928['homeDir'],'socket_path':_0xee928[_0x51cda3(0x17e)],'started_at':_0xac31b3}}),await _0x405e21[_0x51cda3(0x151)]();let _0x315e5f=setInterval(()=>{const _0x3959c5=_0x51cda3;_0x1d7378[_0x3959c5(0x160)]();},Math[_0x51cda3(0x14e)](0x3e8,Math[_0x51cda3(0x138)](_0x1d7378[_0x51cda3(0x12e)](),0xea60)));_0x315e5f['unref'](),_0x1ebc84[_0x51cda3(0x16b)]=_0x315e5f;async function _0x10073e(_0x246680){const _0x4667ae=_0x51cda3;_0x117a81||(_0x117a81=!0x0,_0x1ebc84[_0x4667ae(0x16b)]!==void 0x0&&clearInterval(_0x1ebc84[_0x4667ae(0x16b)]),_0x405e21[_0x4667ae(0x15e)]({'event_name':_0x54400e[_0x4667ae(0x148)],'component':_0xa002ec['Daemon'],'process_role':_0x1dfdf0[_0x4667ae(0x186)],'fields':{..._0x49ed7b,'pid':_0x5b31e5[_0x4667ae(0x122)],'reason':_0x246680,'timestamp':new Date()['toISOString']()}}),await _0x405e21[_0x4667ae(0x151)](),await _0x1d7378[_0x4667ae(0x159)](_0x246680),await new Promise(_0x3581d3=>{_0x69b1fb['close'](()=>_0x3581d3());}),await F(_0xee928['socketPath']),await _0x4ba06b(_0xee928['pidPath'],{'force':!0x0})[_0x4667ae(0x150)](()=>void 0x0),await _0x4ba06b(_0xee928[_0x4667ae(0x12b)],{'force':!0x0})[_0x4667ae(0x150)](()=>void 0x0),await _0x4ba06b(_0xee928[_0x4667ae(0x132)],{'recursive':!0x0,'force':!0x0})['catch'](()=>void 0x0));}_0x5b31e5['on'](_0x51cda3(0x136),()=>{const _0x15f1b7=_0x51cda3;_0x10073e(_0x15f1b7(0x145))[_0x15f1b7(0x157)](()=>{const _0x1505f5=_0x15f1b7;_0x5b31e5[_0x1505f5(0x129)](0x0);});}),_0x5b31e5['on'](_0x51cda3(0x154),()=>{const _0x53830b=_0x51cda3;_0x10073e(_0x53830b(0x163))[_0x53830b(0x157)](()=>{const _0x19f530=_0x53830b;_0x5b31e5[_0x19f530(0x129)](0x0);});});}function w(_0x2a0ef9){return async _0x37ccea=>{const _0x3a776e=_0x43c1;let _0x1382e3;try{_0x1382e3=JSON[_0x3a776e(0x143)](_0x37ccea);}catch(_0x1a84ba){return z(null,-0x7fbc,_0x1a84ba);}let _0x890744=_0x17e0bc(_0x1382e3[_0x3a776e(0x172)]?.[_0x3a776e(0x17f)]),_0x2a2964=async()=>await n[_0x3a776e(0x13b)]({'name':_0x4fb2e4[_0x3a776e(0x171)],'kind':_0x3a776e(0x152)},async()=>{const _0x527f0b=_0x3a776e;let _0x285257=Date[_0x527f0b(0x12f)]();await _0x2a0ef9[_0x527f0b(0x156)]?.({'eventName':_0x54400e['DaemonRpcStart'],'method':_0x1382e3[_0x527f0b(0x18e)],'timestamp':new Date()[_0x527f0b(0x161)]()});try{let _0x120d89=await T(_0x1382e3,_0x2a0ef9);return await _0x2a0ef9[_0x527f0b(0x156)]?.({'durationMs':Date['now']()-_0x285257,'eventName':_0x54400e[_0x527f0b(0x118)],'method':_0x1382e3[_0x527f0b(0x18e)],'timestamp':new Date()['toISOString']()}),_0x120d89;}catch(_0x1e82c8){return await _0x2a0ef9[_0x527f0b(0x156)]?.({'durationMs':Date[_0x527f0b(0x12f)]()-_0x285257,'eventName':_0x54400e[_0x527f0b(0x185)],'method':_0x1382e3[_0x527f0b(0x18e)],'error':_0x1e82c8,'timestamp':new Date()[_0x527f0b(0x161)]()}),_0x2a0ef9['logRequestEvent']===void 0x0&&await _0x2a0ef9[_0x527f0b(0x13c)]?.({'method':_0x1382e3[_0x527f0b(0x18e)],'error':_0x1e82c8 instanceof Error?_0x1e82c8['message']:String(_0x1e82c8),'timestamp':new Date()['toISOString']()}),z(_0x1382e3['id'],-0x7f5b,_0x1e82c8);}});return _0x890744===void 0x0?await _0x2a2964():await n['withContext'](_0x890744,_0x2a2964);};}function _0x43c1(_0x184d0e,_0x2a243c){_0x184d0e=_0x184d0e-0x117;const _0x423c91=_0x423c();let _0x43c1bd=_0x423c91[_0x184d0e];return _0x43c1bd;}async function T(_0x5b1f25,_0x4a9d18){const _0xe75934=_0x43c1;switch(_0x5b1f25['method']){case _0x4c89aa[_0xe75934(0x126)]:return{'jsonrpc':_0xe75934(0x18c),'id':_0x5b1f25['id'],'result':{'ok':!0x0,'pid':_0x4a9d18['pid'],'startedAt':_0x4a9d18[_0xe75934(0x146)],'socketPath':_0x4a9d18[_0xe75934(0x17e)],'runtimeRoot':_0x4a9d18['runtimeRoot'],'buildId':_0x4a9d18[_0xe75934(0x177)],'sessionCount':_0x4a9d18[_0xe75934(0x170)][_0xe75934(0x130)]()}};case _0x4c89aa[_0xe75934(0x11c)]:return _0x4a9d18[_0xe75934(0x140)]?.(),{'jsonrpc':_0xe75934(0x18c),'id':_0x5b1f25['id'],'result':{'stopping':!0x0}};case _0x4c89aa[_0xe75934(0x162)]:{let _0x50f6e4=await _0x4a9d18[_0xe75934(0x170)][_0xe75934(0x176)](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x50f6e4);}case _0x4c89aa[_0xe75934(0x127)]:{let _0x34c3bc=await _0x4a9d18[_0xe75934(0x170)][_0xe75934(0x178)](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x34c3bc);}case _0x4c89aa['SessionCreateWorkbook']:{let _0x39555d=await _0x4a9d18[_0xe75934(0x170)][_0xe75934(0x166)](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x39555d);}case _0x4c89aa['SessionEvalJs']:{let _0x406640=await _0x4a9d18[_0xe75934(0x170)]['evalJs'](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x406640);}case _0x4c89aa[_0xe75934(0x15f)]:{let _0x450424=await _0x4a9d18[_0xe75934(0x170)][_0xe75934(0x135)](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x450424);}case _0x4c89aa[_0xe75934(0x13e)]:{let _0x5005e3=_0x5b1f25['params'],_0x2ff7b0=await _0x4a9d18['sessionHost'][_0xe75934(0x15b)](_0x5005e3);return R(_0x5b1f25['id'],_0x2ff7b0);}case _0x4c89aa['SessionDispose']:{let _0x5328c1=await _0x4a9d18[_0xe75934(0x170)][_0xe75934(0x134)](_0x5b1f25[_0xe75934(0x12a)]);return R(_0x5b1f25['id'],_0x5328c1);}case _0x4c89aa[_0xe75934(0x164)]:{let _0x3bd820=await _0x4a9d18['sessionHost']['getWorkbookSession'](_0x5b1f25['params']);return R(_0x5b1f25['id'],_0x3bd820);}default:return z(_0x5b1f25['id'],-0x7f59,Error('Method\x20not\x20found:\x20'+_0x5b1f25['method']));}}function E(_0x5ea297){return{async 'createWorkbook'(_0x3e109f){const _0x2fc988=_0x43c1;let _0x1448c2=await D(_0x3e109f),_0x24ec13=await _0x5ea297[_0x2fc988(0x166)]({..._0x3e109f[_0x2fc988(0x168)]===void 0x0?{}:{'cwd':_0x3e109f[_0x2fc988(0x168)]},'identity':_0x1448c2,..._0x3e109f['id']===void 0x0?{}:{'workbookId':_0x3e109f['id']},..._0x3e109f[_0x2fc988(0x147)]===void 0x0?{}:{'workbookName':_0x3e109f[_0x2fc988(0x147)]}});return{'success':!0x0,'workbookData':_0x24ec13[_0x2fc988(0x187)],'session':O(_0x24ec13[_0x2fc988(0x17c)])};},async 'dispose'(_0x5be70f){const _0x169a5f=_0x43c1;let _0x16393c=await D(_0x5be70f);return await _0x5ea297['dispose']({..._0x5be70f[_0x169a5f(0x168)]===void 0x0?{}:{'cwd':_0x5be70f[_0x169a5f(0x168)]},'identity':_0x16393c}),{'disposed':!0x0,'workbookIdentity':_0x16393c[_0x169a5f(0x13f)]};},async 'destroyAll'(_0x3f669f){const _0xf6dae2=_0x43c1;await _0x5ea297[_0xf6dae2(0x159)]?.(_0x3f669f);},async 'evalJs'(_0x3e8b01){const _0x4e5bce=_0x43c1;let _0x3cb044=await D(_0x3e8b01),_0x37fa7a=await _0x5ea297['evalJs']({'code':_0x3e8b01[_0x4e5bce(0x142)],..._0x3e8b01['cwd']===void 0x0?{}:{'cwd':_0x3e8b01[_0x4e5bce(0x168)]},'identity':_0x3cb044,..._0x3e8b01[_0x4e5bce(0x16d)]===void 0x0?{}:{'mutates':_0x3e8b01['mutates']}});return{..._0x37fa7a[_0x4e5bce(0x16f)]===void 0x0?{}:{'mutations':_0x37fa7a[_0x4e5bce(0x16f)]},'success':!0x0,'value':_0x37fa7a[_0x4e5bce(0x11b)],'session':O(_0x37fa7a[_0x4e5bce(0x17c)])};},async 'exportWorkbookData'(_0x401376){const _0x5c2ecf=_0x43c1;let _0x12be6d=await D(_0x401376),_0x49c0eb=await _0x5ea297[_0x5c2ecf(0x15b)]({..._0x401376[_0x5c2ecf(0x168)]===void 0x0?{}:{'cwd':_0x401376[_0x5c2ecf(0x168)]},'identity':_0x12be6d});return{'success':!0x0,'workbookData':_0x49c0eb[_0x5c2ecf(0x187)],'session':O(_0x49c0eb[_0x5c2ecf(0x17c)])};},async 'exportWorkbookFile'(_0x329775){const _0x2a9a8d=_0x43c1;let _0x35a39c=await D(_0x329775),_0x3ad69c=await _0x5ea297[_0x2a9a8d(0x135)]({..._0x329775[_0x2a9a8d(0x168)]===void 0x0?{}:{'cwd':_0x329775[_0x2a9a8d(0x168)]},'format':_0x329775[_0x2a9a8d(0x144)],'identity':_0x35a39c,'outputPath':_0x329775[_0x2a9a8d(0x167)]});return{'success':!0x0,'format':_0x3ad69c[_0x2a9a8d(0x144)],'outputPath':_0x3ad69c[_0x2a9a8d(0x167)],'sizeBytes':_0x3ad69c['sizeBytes'],'session':O(_0x3ad69c[_0x2a9a8d(0x17c)])};},async 'getWorkbookSession'(_0x1ab317){const _0x14fc90=_0x43c1;let _0x45667b=await D(_0x1ab317),_0x33b363=await _0x5ea297[_0x14fc90(0x121)]({..._0x1ab317[_0x14fc90(0x168)]===void 0x0?{}:{'cwd':_0x1ab317[_0x14fc90(0x168)]},'identity':_0x45667b});return{'exists':_0x33b363!==null,'session':_0x33b363===null?null:O(_0x33b363)};},'getSessionCount'(){const _0x5f4f23=_0x43c1;return _0x5ea297[_0x5f4f23(0x130)]?.()??0x0;},'getSessionIdleTtlMs'(){const _0x108cd6=_0x43c1;return _0x5ea297[_0x108cd6(0x12e)]?.()??0xea60;},async 'loadWorkbook'(_0x4600b6){const _0x17cf94=_0x43c1;let _0x5aa173=await D(_0x4600b6),_0x154285=await _0x5ea297[_0x17cf94(0x16c)]({..._0x4600b6[_0x17cf94(0x168)]===void 0x0?{}:{'cwd':_0x4600b6[_0x17cf94(0x168)]},'identity':_0x5aa173,'workbookData':_0x4600b6[_0x17cf94(0x187)]});return{'success':!0x0,'workbookData':_0x154285['workbookData'],'session':O(_0x154285[_0x17cf94(0x17c)])};},async 'loadWorkbookDataReplayPack'(_0x4a95df){const _0x3c6570=_0x43c1;let _0x4747a9=await D(_0x4a95df),_0x384c9e=await _0x5ea297[_0x3c6570(0x178)]({..._0x4a95df[_0x3c6570(0x168)]===void 0x0?{}:{'cwd':_0x4a95df['cwd']},'identity':_0x4747a9,'replayPack':{'baseWorkbookData':_0x4a95df[_0x3c6570(0x133)],'mutations':_0x4a95df['mutations']}});return{'success':!0x0,'workbookData':_0x384c9e[_0x3c6570(0x187)],'session':O(_0x384c9e[_0x3c6570(0x17c)])};},async 'unloadIdleSessions'(){await _0x5ea297['unloadIdleSessions']?.();}};}async function D(_0x2e0017){return await S['resolveIdentity'](_0x2e0017);}function O(_0x3c2b89){const _0xd9137=_0x43c1;return{'createdAt':_0x3c2b89[_0xd9137(0x165)]??'','lastAccessedAt':_0x3c2b89[_0xd9137(0x149)]??'','sessionId':_0x3c2b89[_0xd9137(0x173)],'workbookIdentity':_0x3c2b89[_0xd9137(0x184)][_0xd9137(0x13f)]};}function k(_0x943f1b){const _0x35985d=_0x43c1;return{'build.id':A(_0x943f1b[_0x35985d(0x117)],_0x35985d(0x17a))??_0x943f1b[_0x35985d(0x177)],'deployment.environment.name':'local','distribution.channel':A(_0x943f1b[_0x35985d(0x117)],_0x35985d(0x174))??_0x35985d(0x18d),'service.instance.id':String(_0x943f1b[_0x35985d(0x122)]),'service.name':_0x35985d(0x179),...A(_0x943f1b[_0x35985d(0x117)],_0x35985d(0x169))===void 0x0?{}:{'service.version':A(_0x943f1b[_0x35985d(0x117)],_0x35985d(0x169))}};}function A(_0x4f39a3,_0x46cd9b){const _0x179585=_0x43c1;let _0x54c051=_0x4f39a3[_0x46cd9b]?.[_0x179585(0x18b)]();return _0x54c051===void 0x0||_0x54c051[_0x179585(0x17d)]===0x0?void 0x0:_0x54c051;}async function j(_0x58304e){const _0x1fbec8=_0x43c1;P(_0x58304e['socketPath'])&&!await N(_0x58304e[_0x1fbec8(0x17e)])&&await F(_0x58304e[_0x1fbec8(0x17e)]);let _0x5164f7=await I(_0x58304e[_0x1fbec8(0x120)]);_0x5164f7!==null&&!L(_0x5164f7)&&(await _0x4ba06b(_0x58304e[_0x1fbec8(0x120)],{'force':!0x0})[_0x1fbec8(0x150)](()=>void 0x0),await _0x4ba06b(_0x58304e[_0x1fbec8(0x12b)],{'force':!0x0})['catch'](()=>void 0x0),await _0x4ba06b(_0x58304e['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x1fbec8(0x150)](()=>void 0x0));}async function M(_0x1368d3,_0x494af3){const _0x358ebe=_0x43c1;try{return await _0x352183(_0x1368d3,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x193f1d){if(_0x193f1d[_0x358ebe(0x142)]!==_0x358ebe(0x12c))throw _0x193f1d;let _0xa6fccd=await I(_0x494af3);return _0xa6fccd!==null&&L(_0xa6fccd)?!0x1:(await _0x4ba06b(_0x1368d3,{'recursive':!0x0,'force':!0x0}),await _0x352183(_0x1368d3,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function N(_0xd0a4da){return await new Promise(_0x3b2bd9=>{const _0x3c139f=_0x43c1;let _0x2fefff=_0x1d10b6[_0x3c139f(0x189)](_0xd0a4da);_0x2fefff[_0x3c139f(0x139)](_0x3c139f(0x14a),()=>{const _0x18dc2e=_0x3c139f;_0x2fefff[_0x18dc2e(0x181)](),_0x3b2bd9(!0x0);}),_0x2fefff[_0x3c139f(0x139)](_0x3c139f(0x16e),()=>{_0x3b2bd9(!0x1);});});}function P(_0xfeb3ca){return _0x4b129d(_0xfeb3ca)?!0x1:_0x2bb63b(_0xfeb3ca);}async function F(_0x319ce1){const _0x2b087f=_0x43c1;_0x4b129d(_0x319ce1)||await _0x4ba06b(_0x319ce1,{'force':!0x0})[_0x2b087f(0x150)](()=>void 0x0);}async function I(_0x5bd555){const _0x24539d=_0x43c1;try{let _0x5bf46a=await _0x65e34f(_0x5bd555,'utf8'),_0x5e1f9f=Number(_0x5bf46a[_0x24539d(0x18b)]());return Number[_0x24539d(0x15a)](_0x5e1f9f)?_0x5e1f9f:null;}catch{return null;}}function L(_0x3123e6){const _0x45bb7a=_0x43c1;try{return _0x5b31e5[_0x45bb7a(0x14f)](_0x3123e6,0x0),!0x0;}catch{return!0x1;}}function R(_0xf06a54,_0x5edae4){const _0x25b0ef=_0x43c1;return{'jsonrpc':_0x25b0ef(0x18c),'id':_0xf06a54,'result':_0x5edae4};}function z(_0xfd789b,_0x445c8a,_0x4a07de){const _0x4513de=_0x43c1;return{'jsonrpc':'2.0','id':_0xfd789b,'error':{'code':_0x445c8a,'message':_0x4a07de instanceof Error?_0x4a07de[_0x4513de(0x11e)]:String(_0x4a07de)}};}var B=process['argv'][0x2]??_0x197342(0x180);B!==_0x197342(0x180)&&(console[_0x197342(0x16e)]('Unknown\x20daemon\x20subcommand:\x20'+B),process[_0x197342(0x129)](0x1)),C()['catch'](_0x1ffd4d=>{const _0x3cd231=_0x197342;console['error'](_0x1ffd4d instanceof Error?_0x1ffd4d[_0x3cd231(0x11e)]:String(_0x1ffd4d)),process['exit'](0x1);});
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);});
@@ -1 +1 @@
1
- const _0x9a9c35=_0x1c9e;(function(_0x4e7cda,_0x1400c4){const _0x1ed8fa=_0x1c9e,_0x33c246=_0x4e7cda();while(!![]){try{const _0x465752=-parseInt(_0x1ed8fa(0x20f))/0x1+parseInt(_0x1ed8fa(0x203))/0x2*(parseInt(_0x1ed8fa(0x214))/0x3)+parseInt(_0x1ed8fa(0x211))/0x4+parseInt(_0x1ed8fa(0x1f7))/0x5+parseInt(_0x1ed8fa(0x20e))/0x6*(parseInt(_0x1ed8fa(0x209))/0x7)+-parseInt(_0x1ed8fa(0x205))/0x8+-parseInt(_0x1ed8fa(0x1ff))/0x9;if(_0x465752===_0x1400c4)break;else _0x33c246['push'](_0x33c246['shift']());}catch(_0x27d2d4){_0x33c246['push'](_0x33c246['shift']());}}}(_0x1bf7,0x8c540));import'../chunks/vendor-DjomC5bd.js';function _0x1bf7(){const _0x178867=['270462NURSUc','EvalJs','disconnect','mutates','evalJs','meta','loadWorkbookDataReplayPack','exportWorkbookData','ready','format','resolve','outputPath','mutations','withSpan','2.0','workbookData','traceparent','withContext','SIGTERM','2387100JDHwhM','RuntimeRpcClient','LoadWorkbook','ExportWorkbookFile','CreateWorkbook','type','tail','method','13886244vYEQIn','evalJsWithMutationCapture','params','createWorkbook','24TIgZhI','data','5526920QjDdnH','exit','dispose','LoadWorkbookDataReplayPack','5719jsOgVW','code','rpc-response','exportWorkbookFile','loadWorkbook','6060uriuVG','64898ryNTDH','rpc-request','1956100ZjCsJH','message','ExportWorkbookData'];_0x1bf7=function(){return _0x178867;};return _0x1bf7();}import{t as _0x2dc749}from'../chunks/headless-univer-BWfA31gd.js';import{n as _0x228405,o as _0x39ed42,t as _0x3cdded}from'../chunks/trace-y3C6-Sz8.js';let i=function(_0x3f4a94){const _0x422dcf=_0x1c9e;return _0x3f4a94[_0x422dcf(0x1fb)]=_0x422dcf(0x202),_0x3f4a94['EvalJs']='evaljs',_0x3f4a94[_0x422dcf(0x1fa)]=_0x422dcf(0x20c),_0x3f4a94[_0x422dcf(0x213)]='exportWorkbookData',_0x3f4a94[_0x422dcf(0x1f9)]=_0x422dcf(0x20d),_0x3f4a94[_0x422dcf(0x208)]=_0x422dcf(0x21a),_0x3f4a94;}({});var a=class{[_0x9a9c35(0x1fd)]=Promise[_0x9a9c35(0x1ee)]();async['enqueue'](_0x37abce){const _0x22cf2e=_0x9a9c35;let _0x167c69=this[_0x22cf2e(0x1fd)],_0x240a76;this['tail']=new Promise(_0x1f20be=>{_0x240a76=_0x1f20be;}),await _0x167c69;try{return await _0x37abce();}finally{_0x240a76?.();}}},o=_0x2dc749(),s=new a();process['send']?.({'type':_0x9a9c35(0x21c)}),process['on'](_0x9a9c35(0x212),async _0x103c27=>{const _0x5d1490=_0x9a9c35;if(_0x103c27?.[_0x5d1490(0x1fc)]!==_0x5d1490(0x210))return;let _0x524f6b=await c(_0x103c27[_0x5d1490(0x204)]);process['send']?.({'type':_0x5d1490(0x20b),'id':_0x103c27['id'],'data':_0x524f6b});}),process['on'](_0x9a9c35(0x216),()=>{const _0x4fbb42=_0x9a9c35;o[_0x4fbb42(0x207)](),process[_0x4fbb42(0x206)](0x0);}),process['on'](_0x9a9c35(0x1f6),()=>{const _0x4acbb8=_0x9a9c35;o[_0x4acbb8(0x207)](),process[_0x4acbb8(0x206)](0x0);});async function c(_0x193945){const _0x5ab26b=_0x9a9c35;let _0x1a7a9f=_0x3cdded(_0x193945[_0x5ab26b(0x219)]?.[_0x5ab26b(0x1f4)]),_0x23f881=async()=>await _0x228405[_0x5ab26b(0x1f1)]({'name':_0x39ed42[_0x5ab26b(0x1f8)],'kind':'server'},async()=>await l(_0x193945));return _0x1a7a9f===void 0x0?await _0x23f881():await _0x228405[_0x5ab26b(0x1f5)](_0x1a7a9f,_0x23f881);}function _0x1c9e(_0x1ee83e,_0x81b604){_0x1ee83e=_0x1ee83e-0x1ed;const _0x1bf7d5=_0x1bf7();let _0x1c9e0c=_0x1bf7d5[_0x1ee83e];return _0x1c9e0c;}async function l(_0x325f22){const _0x222a92=_0x9a9c35;try{switch(_0x325f22[_0x222a92(0x1fe)]){case i[_0x222a92(0x1fb)]:{let _0x73f484=o[_0x222a92(0x202)](_0x325f22[_0x222a92(0x201)]??{});return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':{'success':!0x0,'workbookData':_0x73f484}};}case i[_0x222a92(0x1f9)]:{let _0xb8130b=o['loadWorkbookData'](_0x325f22[_0x222a92(0x201)][_0x222a92(0x1f3)]);return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':{'success':!0x0,'workbookData':_0xb8130b}};}case i['LoadWorkbookDataReplayPack']:{let _0x4d827d=await o[_0x222a92(0x21a)](_0x325f22['params']);return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':{'success':!0x0,'workbookData':_0x4d827d}};}case i[_0x222a92(0x213)]:return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':{'success':!0x0,'workbookData':o[_0x222a92(0x21b)]()}};case i['ExportWorkbookFile']:{let _0x9ee9fe=_0x325f22[_0x222a92(0x201)],_0x530a02=await o[_0x222a92(0x20c)](_0x9ee9fe[_0x222a92(0x1ef)],_0x9ee9fe[_0x222a92(0x1ed)]);return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':{'success':!0x0,..._0x530a02}};}case i[_0x222a92(0x215)]:{let _0x138d5c=_0x325f22[_0x222a92(0x201)]??{},_0x58084b=async()=>{const _0x3f806a=_0x222a92;let _0x33afcd=_0x138d5c[_0x3f806a(0x217)]?await o[_0x3f806a(0x200)](_0x138d5c[_0x3f806a(0x20a)]):{'value':await o[_0x3f806a(0x218)](_0x138d5c['code']),'mutations':void 0x0};return{'success':!0x0,..._0x33afcd[_0x3f806a(0x1f0)]===void 0x0?{}:{'mutations':_0x33afcd[_0x3f806a(0x1f0)]},'value':_0x33afcd['value']};},_0x107217=_0x138d5c[_0x222a92(0x217)]?await s['enqueue'](_0x58084b):await _0x58084b();return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'result':_0x107217};}default:throw Error('Method\x20not\x20implemented:\x20'+String(_0x325f22['method']));}}catch(_0x1e9c08){return{'jsonrpc':_0x222a92(0x1f2),'id':_0x325f22['id'],'error':{'code':-0x7f5b,'message':_0x1e9c08 instanceof Error?_0x1e9c08[_0x222a92(0x212)]:String(_0x1e9c08)}};}}
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)}};}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univer-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Command-line tools for local Univer workbook automation.",
5
5
  "repository": {
6
6
  "type": "git",