univer-cli 0.1.23 → 0.1.24

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 +1 @@
1
- (function(_0x25a76a,_0x380f0d){const _0x5e9074=_0x3b68,_0xda395f=_0x25a76a();while(!![]){try{const _0x154b4d=parseInt(_0x5e9074(0x135))/0x1*(-parseInt(_0x5e9074(0x127))/0x2)+parseInt(_0x5e9074(0x12e))/0x3+-parseInt(_0x5e9074(0x129))/0x4+-parseInt(_0x5e9074(0x123))/0x5*(-parseInt(_0x5e9074(0x124))/0x6)+-parseInt(_0x5e9074(0x12a))/0x7*(-parseInt(_0x5e9074(0x130))/0x8)+-parseInt(_0x5e9074(0x139))/0x9+parseInt(_0x5e9074(0x12b))/0xa;if(_0x154b4d===_0x380f0d)break;else _0xda395f['push'](_0xda395f['shift']());}catch(_0x28d07e){_0xda395f['push'](_0xda395f['shift']());}}}(_0x48ad,0x5c5f3));import{existsSync as _0x14739e,readFileSync as _0x1b8c8,statSync as _0x5bad1b}from'node:fs';import{dirname as _0x3dba30,join as _0x3d42ca}from'node:path';import{fileURLToPath as _0x308ab6}from'node:url';function _0x48ad(){const _0xfe231d=['mtimeMs','package.json','315016SdtATV','update','1653748Btjxfr','250313eVpgQg','722040mSexga','0.0.0','join','1584456VcBFmD','sha1','144PVWbkH','digest','UNIVER_DAEMON_BUILD_ID_OVERRIDE','parse','utf8','4xBhZQn','version','hex','slice','994302mJkpYC','1940DOpQHO','4458OMJznC'];_0x48ad=function(){return _0xfe231d;};return _0x48ad();}function _0x3b68(_0x3f27ff,_0x3e08b4){_0x3f27ff=_0x3f27ff-0x123;const _0x48adab=_0x48ad();let _0x3b6874=_0x48adab[_0x3f27ff];return _0x3b6874;}import{createHash as _0x18c192}from'node:crypto';function s(_0x1a8142=process.env){const _0x434590=_0x3b68;let _0x299bbb=_0x1a8142[_0x434590(0x132)]?.['trim']();if(_0x299bbb)return _0x299bbb;let _0x127d80=_0x308ab6(import.meta.url),_0x412e1a=[c(_0x3dba30(_0x127d80)),l(_0x127d80)][_0x434590(0x12d)](':');return _0x18c192(_0x434590(0x12f))[_0x434590(0x128)](_0x412e1a)[_0x434590(0x131)](_0x434590(0x137))[_0x434590(0x138)](0x0,0x10);}function c(_0x3fbe3f){const _0x24f46b=_0x3b68;let _0x2abd3d=_0x3fbe3f;for(;;){let _0x44b5ee=_0x3d42ca(_0x2abd3d,_0x24f46b(0x126));if(_0x14739e(_0x44b5ee)){let _0x5e0635=JSON[_0x24f46b(0x133)](_0x1b8c8(_0x44b5ee,_0x24f46b(0x134)));return typeof _0x5e0635['version']=='string'?_0x5e0635[_0x24f46b(0x136)]:_0x24f46b(0x12c);}let _0x3f7783=_0x3dba30(_0x2abd3d);if(_0x3f7783===_0x2abd3d)return'0.0.0';_0x2abd3d=_0x3f7783;}}function l(_0x4f0768){const _0x23ee7c=_0x3b68;try{return String(_0x5bad1b(_0x4f0768)[_0x23ee7c(0x125)]);}catch{return'missing';}}export{s as t};
1
+ (function(_0x11587d,_0x1c6275){const _0x2de0a3=_0x5606,_0x36797a=_0x11587d();while(!![]){try{const _0x4b8a6e=-parseInt(_0x2de0a3(0x1f3))/0x1+-parseInt(_0x2de0a3(0x1fc))/0x2*(parseInt(_0x2de0a3(0x1f4))/0x3)+parseInt(_0x2de0a3(0x1f2))/0x4+-parseInt(_0x2de0a3(0x1f5))/0x5+-parseInt(_0x2de0a3(0x201))/0x6*(parseInt(_0x2de0a3(0x1f1))/0x7)+-parseInt(_0x2de0a3(0x1fb))/0x8+parseInt(_0x2de0a3(0x1fd))/0x9*(parseInt(_0x2de0a3(0x1f0))/0xa);if(_0x4b8a6e===_0x1c6275)break;else _0x36797a['push'](_0x36797a['shift']());}catch(_0x27f7be){_0x36797a['push'](_0x36797a['shift']());}}}(_0x50fa,0x61648));import{existsSync as _0x71c7af,readFileSync as _0x18081d,statSync as _0x22a296}from'node:fs';import{dirname as _0x112df4,join as _0x29fd36}from'node:path';import{fileURLToPath as _0x4ea2c9}from'node:url';import{createHash as _0x16b559}from'node:crypto';function s(_0x232a7b=process.env){const _0x1754c6=_0x5606;let _0x45fc05=_0x232a7b['UNIVER_DAEMON_BUILD_ID_OVERRIDE']?.[_0x1754c6(0x202)]();if(_0x45fc05)return _0x45fc05;let _0xe9b15d=_0x4ea2c9(import.meta.url),_0x30def8=[c(_0x112df4(_0xe9b15d)),l(_0xe9b15d)][_0x1754c6(0x1f7)](':');return _0x16b559(_0x1754c6(0x1fa))[_0x1754c6(0x1ef)](_0x30def8)[_0x1754c6(0x1ec)](_0x1754c6(0x203))[_0x1754c6(0x1f6)](0x0,0x10);}function c(_0x2938e9){const _0x277d1b=_0x5606;let _0x633534=_0x2938e9;for(;;){let _0x1324fb=_0x29fd36(_0x633534,_0x277d1b(0x1fe));if(_0x71c7af(_0x1324fb)){let _0x76640b=JSON[_0x277d1b(0x1f9)](_0x18081d(_0x1324fb,_0x277d1b(0x1ee)));return typeof _0x76640b['version']==_0x277d1b(0x1ed)?_0x76640b[_0x277d1b(0x200)]:_0x277d1b(0x1f8);}let _0x38daca=_0x112df4(_0x633534);if(_0x38daca===_0x633534)return'0.0.0';_0x633534=_0x38daca;}}function _0x5606(_0x1d2736,_0x502c3a){_0x1d2736=_0x1d2736-0x1ec;const _0x50fa78=_0x50fa();let _0x56061f=_0x50fa78[_0x1d2736];return _0x56061f;}function l(_0xae550f){const _0x9db88f=_0x5606;try{return String(_0x22a296(_0xae550f)[_0x9db88f(0x1ff)]);}catch{return'missing';}}function _0x50fa(){const _0x47f380=['update','189810rPYlCA','7BeFEVX','2301608IiGWLe','590269kMvyWO','3369acvVLX','3521735Jzktsp','slice','join','0.0.0','parse','sha1','5949696vMpmid','1202hSfLTk','1503ZVUjmB','package.json','mtimeMs','version','3798348sNTZRq','trim','hex','digest','string','utf8'];_0x50fa=function(){return _0x47f380;};return _0x50fa();}export{s as t};
@@ -0,0 +1 @@
1
+ var _0x516cf3=_0xf1eb;(function(_0x15b735,_0x324d8c){var _0xcc3c57=_0xf1eb,_0x39ce9a=_0x15b735();while(!![]){try{var _0x22559f=parseInt(_0xcc3c57(0x102))/0x1+-parseInt(_0xcc3c57(0xff))/0x2*(-parseInt(_0xcc3c57(0x105))/0x3)+-parseInt(_0xcc3c57(0xfa))/0x4*(-parseInt(_0xcc3c57(0x103))/0x5)+parseInt(_0xcc3c57(0xf8))/0x6+parseInt(_0xcc3c57(0xf7))/0x7+parseInt(_0xcc3c57(0xfb))/0x8*(-parseInt(_0xcc3c57(0xfe))/0x9)+-parseInt(_0xcc3c57(0x100))/0xa;if(_0x22559f===_0x324d8c)break;else _0x39ce9a['push'](_0x39ce9a['shift']());}catch(_0x5ea5eb){_0x39ce9a['push'](_0x39ce9a['shift']());}}}(_0x3a7c,0x64fe3));function _0x3a7c(){var _0x40e6f6=['3578406VDDGwI','8389905','12VWEiGC','2257112uFeuHB','trim','version','9UYvssP','2uluunB','13922810TzgZdw','unknown','18104qHramB','952670pgWKmL','0.1.24','345093zgDFvq','5508643JGOUVK'];_0x3a7c=function(){return _0x40e6f6;};return _0x3a7c();}function _0xf1eb(_0x330a29,_0x1d596a){_0x330a29=_0x330a29-0xf7;var _0x3a7c56=_0x3a7c();var _0xf1ebcd=_0x3a7c56[_0x330a29];return _0xf1ebcd;}var e={'commitHash':_0x516cf3(0x101),'version':'0.0.0'};const t=n({'commitHash':_0x516cf3(0xf9),'version':_0x516cf3(0x104)});function n(_0x43ceb4){var _0x50ed75=_0x516cf3;return{'commitHash':r(_0x43ceb4['commitHash'],e['commitHash']),'version':r(_0x43ceb4[_0x50ed75(0xfd)],e['version'])};}function r(_0x58d505,_0x3f1ab9){var _0x21a0ae=_0x516cf3;return _0x58d505[_0x21a0ae(0xfc)]()?_0x58d505:_0x3f1ab9;}export{t};
@@ -1 +1 @@
1
- const _0x208584=_0x3a9e;(function(_0x1a93da,_0x1a6f08){const _0x53ef70=_0x3a9e,_0x5e21b6=_0x1a93da();while(!![]){try{const _0x39ab5e=parseInt(_0x53ef70(0x1f1))/0x1+parseInt(_0x53ef70(0x208))/0x2+parseInt(_0x53ef70(0x20d))/0x3*(-parseInt(_0x53ef70(0x207))/0x4)+parseInt(_0x53ef70(0x214))/0x5+parseInt(_0x53ef70(0x229))/0x6*(parseInt(_0x53ef70(0x209))/0x7)+-parseInt(_0x53ef70(0x259))/0x8*(-parseInt(_0x53ef70(0x219))/0x9)+-parseInt(_0x53ef70(0x20c))/0xa*(parseInt(_0x53ef70(0x23f))/0xb);if(_0x39ab5e===_0x1a6f08)break;else _0x5e21b6['push'](_0x5e21b6['shift']());}catch(_0x566f5f){_0x5e21b6['push'](_0x5e21b6['shift']());}}}(_0x2dea,0xe511c));import{$t as _0x4a8c3c,At as _0xa94f77,Bt as _0x5170d4,Cn as _0x1771e4,Dn as _0x413e06,Dt as _0x9e064e,Et as _0x173d95,Ft as _0x4b5243,Ht as _0x164f92,It as _0x35b88f,Lt as _0x6d9a00,Mt as _0x3d9eb0,Nt as _0x554839,On as _0x4a7edf,Ot as _0x166308,Pt as _0x586fe9,Rt as _0x36a347,Sn as _0x28bf24,Tt as _0xb0b6c2,Ut as _0x3c4627,Vt as _0x1b2ca6,Wt as _0x398034,an as _0x4a959a,bn as _0x2f3e53,cn as _0x51e570,dn as _0x98c7,en as _0x2eb3cd,in as _0x5dcec7,jt as _0x395c81,kn as _0x46333f,kt as _0x21ea7b,ln as _0xb85bfd,nn as _0x21ada8,on as _0x1cabfb,rn as _0x2d4c87,sn as _0x3cccb6,tn as _0x230b4e,un as _0x35db5f,vn as _0x32587d,wn as _0x2589f7,wt as _0x17b6e8,xn as _0x2acc7a,zt as _0x5edcd1}from'./vendor-CgwrUUL6.js';import{mkdir as _0x5bd88a,readFile as _0x325d9a,writeFile as _0x5fb0ce}from'node:fs/promises';function _0x3a9e(_0x13a190,_0x3e1bb8){_0x13a190=_0x13a190-0x1d4;const _0x2dea0=_0x2dea();let _0x3a9efc=_0x2dea0[_0x13a190];return _0x3a9efc;}import{dirname as _0x1ad9ef,join as _0x4dce1d,resolve as _0x2947f0}from'node:path';import{homedir as _0x13fbe4}from'node:os';const b=_0x208584(0x1e2),x='https://univer.ai/';var S=class extends Error{constructor(_0x42917e,_0x5302aa){const _0x2d583b=_0x208584;super(_0x5302aa),this[_0x2d583b(0x1d8)]=_0x42917e,this['name']=_0x2d583b(0x20b);}},C=class extends S{constructor(_0x492f88,_0x249a92,_0x3c5342){const _0x3910b0=_0x208584;super(_0x3910b0(0x237),'Could\x20not\x20'+_0x249a92+_0x3910b0(0x225)+_0x492f88+':\x20'+X(_0x3c5342)),this['path']=_0x492f88,this['operation']=_0x249a92,this[_0x3910b0(0x200)]=_0x3910b0(0x231);}};function _0x2dea(){const _0x220a13=['Sheet1','valueType','doc.mutation.rich-text-editing','name','registerPlugin','unitId','utf8','Workbook\x20not\x20found:\x20','enableAutoConnect','Expected\x20a\x20root-mounted\x20HTTP\x20or\x20HTTPS\x20URL\x20without\x20a\x20path,\x20query,\x20or\x20hash,\x20for\x20example\x20https://view.example.com/.\x20Subpath\x20mounts\x20are\x20not\x20supported.','44QADiTs','1323184mvAWpO','1421KuhnvP','field','UserConfigError','52140670wqfMzw','8184IQaYeZ','length','port','getUnitId','runtime\x20xlsx\x20export\x20is\x20not\x20available;\x20use\x20workbook\x20exchange\x20export','UNIVER_VIEW_HOST_OPEN','default','2940515loBmac','UNIVER_LICENSE','object','ENOENT','createUnit','3171213JsmyxT','toString','isFinite','univer-host','join','onlyLocal','params','\x20characters)','Invalid\x20Univer\x20CLI\x20config\x20value\x20for\x20','replaceAll','runtimeConfig','push','\x20Univer\x20CLI\x20config\x20at\x20','.univer','\x20})();','experimental.sac','53598PPDqam','test','univerRuntime','sac','filter','Unknown\x20Univer\x20CLI\x20config\x20key:\x20','exportWorkbookData','Expected\x20true\x20or\x20false.','UserConfigIoError','type','UNIVER_HOME','mutations','baseUrl','isArray','USER_CONFIG_IO_ERROR','createInstance','viewHost.port','save','parse','Failed\x20to\x20replay\x20mutation\x20','USER_CONFIG_UNKNOWN_KEY','open','11uXYxEH','baseWorkbookData','index','search','hash','UNIVER_HOST','enUS','workbook-','return\x20(async\x20()\x20=>\x20{\x20','fromCollab','pathname','viewHost.open','view-host','MUTATION','getUnit','EN_US','update','csv','UNIVER_VIEW_HOST_PORT','0.24.0-insiders.20260528-29f582d','kind','trim','non-empty-string','get','USER_CONFIG_INVALID_JSON','UNIVER_VIEW_HOST_BASE_URL','32ushGKN','UNIVER_SHEET','map','update.checkOnStartup','<unknown>','string','code','license','Expected\x20an\x20absolute\x20HTTP\x20or\x20HTTPS\x20URL.','config','__getInjector','experimental','Expected\x20an\x20object.','sheets','now','univerHost','1947908155879981234-1-eyJpIjoiMTk0NzkwODE1NTg3OTk4MTIzNCIsInYiOiIxIiwicCI6IkJnRGtRT2Exc2J3N3c3ZitkTG0yU2NJb1lCQ2Z3d0JMMURZZk1ra0kraDg9IiwiZG0iOlsiKi51bml2ZXIuYWkiLCIqLnVuaXZlci5wbHVzIiwiKi5jYXBhbHl6ZS5haSIsIiouYmlhb2RhLm1lIiwiKi5kcmVhbS1udW0udnBjIl0sInJ0IjozLCJmdCI6eyJ1ZiI6eyJtdSI6MjE0NzQ4MzY0NiwiZXQiOjE3OTY5MTgzOTksIm1tIjoyMTQ3NDgzNjQ2LCJjdSI6MjE0NzQ4MzY0Nn0sInNmIjp7ImV0IjoxNzk2OTE4Mzk5LCJydiI6dHJ1ZSwicHRuIjoyMTQ3NDgzNjQ2LCJtaXMiOjIxNDc0ODM2NDYsIm1wbiI6MjE0NzQ4MzY0NiwibmMiOjIxNDc0ODM2NDYsImllYyI6MH0sImRmIjp7ImV0IjoxNzk2OTE4Mzk5LCJydiI6dHJ1ZSwibWlzIjoyMTQ3NDgzNjQ2LCJtcG4iOjIxNDc0ODM2NDYsImllYyI6MH0sIndzZiI6eyJldCI6MTc5NjkxODM5OSwiaG4iOjIxNDc0ODM2NDZ9fSwidWQiOjE3OTY5MTgzOTksImF0IjoxNzY1MzY1MTU0LCJlIjoiZGV2ZWxvcGVyQHVuaXZlci5haSIsImQiOjgsIm4iOjI0MX0=-46biaPbfKBh2OMSrCX8kid0NUgDIDV5ojTSYs7BKJgKnjnrY1v669bpzHHt56BBwliQCZoCRgJk4y7T8MEDuDA==-1796918399','disposeUnit','univer-runtime','stringify','cellData','sheet-1','number','keys','viewHost','boolean','byteLength','Workbook\x20not\x20loaded','viewHost.baseUrl','USER_CONFIG_VALIDATION_ERROR','Mutation\x20collection\x20is\x20already\x20active','1709821zupIZa','sort','cli','checkOnStartup','false','http:','protocol','evalJs','univerAPI','env','isInteger','Expected\x20a\x20TCP\x20port\x20number\x20from\x201\x20to\x2065535.'];_0x2dea=function(){return _0x220a13;};return _0x2dea();}function w(_0x108af9={}){const _0xfb99fe=_0x208584;let _0xfcdef6=(_0x108af9['env']??process.env)[_0xfb99fe(0x233)]?.[_0xfb99fe(0x254)]();return _0x2947f0(_0xfcdef6&&_0xfcdef6[_0xfb99fe(0x20e)]>0x0?_0xfcdef6:_0x4dce1d(_0x108af9['homeDir']??_0x13fbe4(),_0xfb99fe(0x226)),'config.json');}function T(_0x56ed90){return J(_0x56ed90,'config'),P(_0x56ed90);}function E(_0x10e942){const _0xa808de=_0x208584;try{return T(JSON[_0xa808de(0x23b)](_0x10e942));}catch(_0x336160){throw _0x336160 instanceof S?_0x336160:new S(_0xa808de(0x257),'Invalid\x20Univer\x20CLI\x20config\x20JSON:\x20'+X(_0x336160));}}function D(_0x215305){const _0x52dd0b=_0x208584;return JSON[_0x52dd0b(0x1e5)](T(_0x215305),null,0x2)+'\x0a';}async function O(_0xee7bad={}){const _0x1d7ade=_0x208584;let _0x30290b=w(_0xee7bad);try{return{'config':E(await _0x325d9a(_0x30290b,_0x1d7ade(0x203))),'path':_0x30290b};}catch(_0xad17c){if(Ve(_0xad17c)&&_0xad17c[_0x1d7ade(0x1d8)]===_0x1d7ade(0x217))return{'config':{},'path':_0x30290b};throw _0xad17c instanceof S?_0xad17c:new C(_0x30290b,'read',_0xad17c);}}async function k(_0x5af70d,_0x165757={}){const _0x267cdd=_0x208584;let _0x24ddf1=w(_0x165757);try{return await _0x5bd88a(_0x1ad9ef(_0x24ddf1),{'mode':0x1c0,'recursive':!0x0}),await _0x5fb0ce(_0x24ddf1,D(_0x5af70d),{'encoding':_0x267cdd(0x203),'mode':0x180}),{'config':T(_0x5af70d),'path':_0x24ddf1};}catch(_0x163ea0){throw _0x163ea0 instanceof S?_0x163ea0:new C(_0x24ddf1,'write',_0x163ea0);}}function A(_0x4e478b,_0x51c612){const _0x5ab3e5=_0x208584;let _0x28858b=F(_0x51c612);if(_0x28858b[_0x5ab3e5(0x253)]===_0x5ab3e5(0x21c))return _0x4e478b[_0x5ab3e5(0x1e1)];if(_0x28858b[_0x5ab3e5(0x253)]===_0x5ab3e5(0x1dd))return _0x4e478b[_0x5ab3e5(0x1dd)]?.[_0x28858b['field']];if(_0x28858b['kind']===_0x5ab3e5(0x24f))return _0x4e478b[_0x5ab3e5(0x24f)]?.[_0x28858b['field']];if(_0x28858b['kind']===_0x5ab3e5(0x1e4))return _0x4e478b[_0x5ab3e5(0x22b)]?.[_0x28858b[_0x5ab3e5(0x20a)]];if(_0x28858b[_0x5ab3e5(0x253)]===_0x5ab3e5(0x24b))return _0x4e478b['viewHost']?.[_0x28858b[_0x5ab3e5(0x20a)]];}function j(_0x290566,_0x32187e,_0x46792b){const _0x55d777=_0x208584;let _0x33318f=F(_0x32187e),_0x5505c1=q(_0x290566);return _0x33318f['kind']===_0x55d777(0x21c)?(_0x5505c1[_0x55d777(0x1e1)]=H(_0x46792b,_0x32187e),P(_0x5505c1)):_0x33318f['kind']===_0x55d777(0x1dd)?(_0x5505c1['experimental']??={},_0x5505c1['experimental'][_0x33318f[_0x55d777(0x20a)]]=I(_0x33318f[_0x55d777(0x1fe)],_0x46792b,_0x32187e),P(_0x5505c1)):_0x33318f[_0x55d777(0x253)]===_0x55d777(0x24f)?(_0x5505c1[_0x55d777(0x24f)]??={},_0x5505c1['update'][_0x33318f['field']]=I(_0x33318f[_0x55d777(0x1fe)],_0x46792b,_0x32187e),P(_0x5505c1)):_0x33318f[_0x55d777(0x253)]===_0x55d777(0x1e4)?(_0x5505c1[_0x55d777(0x22b)]??={},_0x5505c1['univerRuntime'][_0x33318f[_0x55d777(0x20a)]]=I(_0x33318f[_0x55d777(0x1fe)],_0x46792b,_0x32187e),P(_0x5505c1)):_0x33318f[_0x55d777(0x253)]===_0x55d777(0x24b)?(_0x5505c1[_0x55d777(0x1ea)]??={},_0x5505c1[_0x55d777(0x1ea)][_0x33318f[_0x55d777(0x20a)]]=I(_0x33318f[_0x55d777(0x1fe)],_0x46792b,_0x32187e),P(_0x5505c1)):P(_0x5505c1);}function Ae(_0x3d38a5,_0x387802){const _0x3536ad=_0x208584;let _0x18e9f2=F(_0x387802),_0x546ffb=q(_0x3d38a5);return _0x18e9f2['kind']===_0x3536ad(0x21c)?delete _0x546ffb['univerHost']:_0x18e9f2['kind']===_0x3536ad(0x1dd)?delete _0x546ffb[_0x3536ad(0x1dd)]?.[_0x18e9f2[_0x3536ad(0x20a)]]:_0x18e9f2['kind']===_0x3536ad(0x24f)?delete _0x546ffb['update']?.[_0x18e9f2[_0x3536ad(0x20a)]]:_0x18e9f2[_0x3536ad(0x253)]==='univer-runtime'?delete _0x546ffb[_0x3536ad(0x22b)]?.[_0x18e9f2[_0x3536ad(0x20a)]]:_0x18e9f2[_0x3536ad(0x253)]==='view-host'&&delete _0x546ffb['viewHost']?.[_0x18e9f2['field']],ze(_0x546ffb),P(_0x546ffb);}function je(_0x47c026={}){const _0x34eac5=_0x208584;let _0x3a1c9a=_0x47c026[_0x34eac5(0x1fa)]??process.env,_0x20ef0e=Pe(_0x3a1c9a[_0x34eac5(0x251)],_0x34eac5(0x251)),_0x39ec83=Ie(_0x3a1c9a[_0x34eac5(0x258)],'UNIVER_VIEW_HOST_BASE_URL'),_0x5473ac=Le(_0x3a1c9a[_0x34eac5(0x212)],'UNIVER_VIEW_HOST_OPEN'),_0x35ae5c=_0x47c026[_0x34eac5(0x1f3)]?.[_0x34eac5(0x20f)]??_0x20ef0e??_0x47c026[_0x34eac5(0x1db)]?.[_0x34eac5(0x1ea)]?.['port'],_0x3f08e6=(_0x47c026[_0x34eac5(0x1f3)]?.[_0x34eac5(0x235)]===void 0x0?void 0x0:G(_0x47c026['cli'][_0x34eac5(0x235)],_0x34eac5(0x1ee)))??_0x39ec83??_0x47c026[_0x34eac5(0x1db)]?.[_0x34eac5(0x1ea)]?.['baseUrl'],_0x3cc9a0=_0x47c026['cli']?.[_0x34eac5(0x23e)]??_0x5473ac??_0x47c026[_0x34eac5(0x1db)]?.[_0x34eac5(0x1ea)]?.[_0x34eac5(0x23e)]??!0x1;return{..._0x35ae5c===void 0x0?{}:{'port':_0x35ae5c},..._0x3f08e6===void 0x0?{}:{'baseUrl':_0x3f08e6},'open':_0x3cc9a0};}function M(_0x11e32c={}){const _0x40f569=_0x208584;return{'license':Re((_0x11e32c[_0x40f569(0x1fa)]??process.env)[_0x40f569(0x215)],_0x40f569(0x215))??_0x11e32c[_0x40f569(0x1db)]?.[_0x40f569(0x22b)]?.[_0x40f569(0x1d9)]??_0x40f569(0x1e2)};}function Me(_0x55b8fa={}){const _0x51664f=_0x208584;let _0x397c93=N(_0x55b8fa)?_0x55b8fa[_0x51664f(0x1db)]??{}:_0x55b8fa,_0x35e1e3=Fe((N(_0x55b8fa)?_0x55b8fa['env']:void 0x0)?.['UNIVER_HOST'],_0x51664f(0x244));return _0x35e1e3===void 0x0?_0x397c93[_0x51664f(0x1e1)]===void 0x0?{'configured':!0x0,'source':_0x51664f(0x213),'url':x}:{'configured':!0x0,'source':_0x51664f(0x1db),'url':U(_0x397c93['univerHost'],'univerHost')}:{'configured':!0x0,'source':_0x51664f(0x1fa),'url':_0x35e1e3};}function N(_0x250eb0){const _0x2f9feb=_0x208584;return _0x2f9feb(0x1db)in _0x250eb0||_0x2f9feb(0x1fa)in _0x250eb0;}function P(_0x260664){const _0x457eb1=_0x208584;let _0x209edc={};if(_0x260664[_0x457eb1(0x1dd)]!==void 0x0){J(_0x260664[_0x457eb1(0x1dd)],_0x457eb1(0x1dd));let _0x37c34b=_0x260664['experimental'],_0x3618e6={};for(let _0x137658 of Object[_0x457eb1(0x1e9)](_0x37c34b))_0x137658===_0x457eb1(0x22c)&&(_0x3618e6[_0x457eb1(0x22c)]=R(_0x37c34b[_0x457eb1(0x22c)],'experimental.sac'));Object[_0x457eb1(0x1e9)](_0x3618e6)[_0x457eb1(0x20e)]>0x0&&(_0x209edc[_0x457eb1(0x1dd)]=_0x3618e6);}if(_0x260664[_0x457eb1(0x24f)]!==void 0x0){J(_0x260664[_0x457eb1(0x24f)],_0x457eb1(0x24f));let _0x1026f7=_0x260664[_0x457eb1(0x24f)],_0x63ba76={};for(let _0x2244a1 of Object[_0x457eb1(0x1e9)](_0x1026f7))_0x2244a1===_0x457eb1(0x1f4)&&(_0x63ba76[_0x457eb1(0x1f4)]=R(_0x1026f7[_0x457eb1(0x1f4)],_0x457eb1(0x1d5)));Object[_0x457eb1(0x1e9)](_0x63ba76)[_0x457eb1(0x20e)]>0x0&&(_0x209edc['update']=_0x63ba76);}if(_0x260664[_0x457eb1(0x22b)]!==void 0x0){J(_0x260664[_0x457eb1(0x22b)],_0x457eb1(0x22b));let _0xe40f25=_0x260664['univerRuntime'],_0x294e8c={};for(let _0x4d70c8 of Object[_0x457eb1(0x1e9)](_0xe40f25))_0x4d70c8===_0x457eb1(0x1d9)&&(_0x294e8c[_0x457eb1(0x1d9)]=Ne(_0xe40f25[_0x457eb1(0x1d9)],'univerRuntime.license'));Object[_0x457eb1(0x1e9)](_0x294e8c)[_0x457eb1(0x20e)]>0x0&&(_0x209edc[_0x457eb1(0x22b)]=_0x294e8c);}if(_0x260664['univerHost']!==void 0x0&&(_0x209edc[_0x457eb1(0x1e1)]=U(_0x260664[_0x457eb1(0x1e1)],'univerHost')),_0x260664[_0x457eb1(0x1ea)]!==void 0x0){J(_0x260664['viewHost'],_0x457eb1(0x1ea));let _0x5bf942=_0x260664[_0x457eb1(0x1ea)],_0x33cea9={};for(let _0x19d97b of Object[_0x457eb1(0x1e9)](_0x5bf942))_0x19d97b===_0x457eb1(0x20f)?_0x33cea9['port']=B(_0x5bf942['port'],_0x457eb1(0x239)):_0x19d97b===_0x457eb1(0x235)?_0x33cea9[_0x457eb1(0x235)]=G(_0x5bf942[_0x457eb1(0x235)],_0x457eb1(0x1ee)):_0x19d97b==='open'&&(_0x33cea9[_0x457eb1(0x23e)]=R(_0x5bf942[_0x457eb1(0x23e)],_0x457eb1(0x24a)));Object[_0x457eb1(0x1e9)](_0x33cea9)[_0x457eb1(0x20e)]>0x0&&(_0x209edc[_0x457eb1(0x1ea)]=_0x33cea9);}return _0x209edc;}function F(_0x4e4b72){const _0x5b3036=_0x208584;if(_0x4e4b72===_0x5b3036(0x1e1))return{'kind':_0x5b3036(0x21c)};if(_0x4e4b72===_0x5b3036(0x228))return{'kind':_0x5b3036(0x1dd),'field':_0x5b3036(0x22c),'valueType':'boolean'};if(_0x4e4b72===_0x5b3036(0x1d5))return{'kind':_0x5b3036(0x24f),'field':_0x5b3036(0x1f4),'valueType':_0x5b3036(0x1eb)};if(_0x4e4b72==='univerRuntime.license')return{'kind':_0x5b3036(0x1e4),'field':_0x5b3036(0x1d9),'valueType':'non-empty-string'};if(_0x4e4b72===_0x5b3036(0x239))return{'kind':_0x5b3036(0x24b),'field':_0x5b3036(0x20f),'valueType':'port'};if(_0x4e4b72===_0x5b3036(0x1ee))return{'kind':_0x5b3036(0x24b),'field':_0x5b3036(0x235),'valueType':'url'};if(_0x4e4b72==='viewHost.open')return{'kind':_0x5b3036(0x24b),'field':'open','valueType':_0x5b3036(0x1eb)};throw Be(_0x4e4b72);}function I(_0x3e2421,_0x16cddd,_0x4f67a8){const _0x52ffd8=_0x208584;return _0x3e2421===_0x52ffd8(0x1eb)?L(_0x16cddd,_0x4f67a8):_0x3e2421===_0x52ffd8(0x20f)?z(_0x16cddd,_0x4f67a8):_0x3e2421===_0x52ffd8(0x255)?V(_0x16cddd,_0x4f67a8):_0x4f67a8===_0x52ffd8(0x1ee)?W(_0x16cddd,_0x4f67a8):H(_0x16cddd,_0x4f67a8);}function L(_0x1797fd,_0x2f6f7a){const _0x28e6a6=_0x208584;if(_0x1797fd==='true')return!0x0;if(_0x1797fd===_0x28e6a6(0x1f5))return!0x1;throw Y(_0x2f6f7a,'Expected\x20true\x20or\x20false.');}function R(_0x109314,_0xe1258e){const _0x57d997=_0x208584;if(typeof _0x109314!='boolean')throw Y(_0xe1258e,_0x57d997(0x230));return _0x109314;}function z(_0x12b3a3,_0x239ccb){const _0xf89006=_0x208584;if(!/^\d+$/u[_0xf89006(0x22a)](_0x12b3a3))throw Y(_0x239ccb,'Expected\x20a\x20TCP\x20port\x20number.');return B(Number(_0x12b3a3),_0x239ccb);}function B(_0x22b077,_0x2e46ce){const _0x224523=_0x208584;if(!Number[_0x224523(0x1fb)](_0x22b077)||_0x22b077<0x1||_0x22b077>0xffff)throw Y(_0x2e46ce,_0x224523(0x1fc));return _0x22b077;}function V(_0x225b25,_0x3955ea){if(_0x225b25['trim']()!==_0x225b25||_0x225b25['length']===0x0)throw Y(_0x3955ea,'Expected\x20a\x20non-empty\x20string\x20without\x20surrounding\x20whitespace.');return _0x225b25;}function Ne(_0x5b35c6,_0x514be8){const _0x29d264=_0x208584;if(typeof _0x5b35c6!=_0x29d264(0x1d7))throw Y(_0x514be8,'Expected\x20a\x20non-empty\x20string.');return V(_0x5b35c6,_0x514be8);}function H(_0x163650,_0x3d26e4){const _0x5093c6=_0x208584;if(_0x163650[_0x5093c6(0x254)]()!==_0x163650||_0x163650[_0x5093c6(0x20e)]===0x0)throw Y(_0x3d26e4,_0x5093c6(0x1da));return U(_0x163650,_0x3d26e4);}function U(_0x2c580e,_0x263066){const _0x3b77af=_0x208584;if(typeof _0x2c580e!=_0x3b77af(0x1d7))throw Y(_0x263066,'Expected\x20an\x20absolute\x20HTTP\x20or\x20HTTPS\x20URL.');try{let _0x2dcc3c=new URL(_0x2c580e);if(_0x2dcc3c['protocol']!==_0x3b77af(0x1f6)&&_0x2dcc3c[_0x3b77af(0x1f7)]!=='https:')throw Error('Unsupported\x20protocol');return _0x2dcc3c[_0x3b77af(0x21a)]();}catch{throw Y(_0x263066,_0x3b77af(0x1da));}}function W(_0x3a3bf0,_0x71d5c7){const _0x4f371f=_0x208584;if(_0x3a3bf0[_0x4f371f(0x254)]()!==_0x3a3bf0||_0x3a3bf0[_0x4f371f(0x20e)]===0x0)throw Y(_0x71d5c7,K());return G(_0x3a3bf0,_0x71d5c7);}function G(_0x1e936f,_0x39eecf){const _0x355cd7=_0x208584;let _0xba22d5=U(_0x1e936f,_0x39eecf),_0x1d0eca=new URL(_0xba22d5);if(_0x1d0eca[_0x355cd7(0x249)]!=='/'||_0x1d0eca[_0x355cd7(0x242)][_0x355cd7(0x20e)]>0x0||_0x1d0eca[_0x355cd7(0x243)]['length']>0x0)throw Y(_0x39eecf,K());return _0x1d0eca[_0x355cd7(0x21a)]();}function K(){const _0x2fa21a=_0x208584;return _0x2fa21a(0x206);}function Pe(_0x1d69d7,_0x1b8d58){const _0x1e8cfa=_0x208584;return _0x1d69d7===void 0x0||_0x1d69d7[_0x1e8cfa(0x254)]()[_0x1e8cfa(0x20e)]===0x0?void 0x0:z(_0x1d69d7,_0x1b8d58);}function Fe(_0x479c82,_0x43a8a5){const _0x26c5fe=_0x208584;return _0x479c82===void 0x0||_0x479c82[_0x26c5fe(0x254)]()[_0x26c5fe(0x20e)]===0x0?void 0x0:H(_0x479c82,_0x43a8a5);}function Ie(_0xe19b19,_0x1ef9ed){const _0x275e83=_0x208584;return _0xe19b19===void 0x0||_0xe19b19['trim']()[_0x275e83(0x20e)]===0x0?void 0x0:W(_0xe19b19,_0x1ef9ed);}function Le(_0x27e2fe,_0x2ea84a){const _0x3c9e12=_0x208584;return _0x27e2fe===void 0x0||_0x27e2fe['trim']()[_0x3c9e12(0x20e)]===0x0?void 0x0:L(_0x27e2fe,_0x2ea84a);}function Re(_0x5bdc7d,_0x28cc92){const _0x251ba2=_0x208584;return _0x5bdc7d===void 0x0||_0x5bdc7d[_0x251ba2(0x254)]()[_0x251ba2(0x20e)]===0x0?void 0x0:V(_0x5bdc7d,_0x28cc92);}function q(_0x192e4a){const _0x1b6912=_0x208584;return{..._0x192e4a[_0x1b6912(0x1dd)]===void 0x0?{}:{'experimental':{..._0x192e4a[_0x1b6912(0x1dd)]}},..._0x192e4a['update']===void 0x0?{}:{'update':{..._0x192e4a[_0x1b6912(0x24f)]}},..._0x192e4a[_0x1b6912(0x22b)]===void 0x0?{}:{'univerRuntime':{..._0x192e4a[_0x1b6912(0x22b)]}},..._0x192e4a[_0x1b6912(0x1e1)]===void 0x0?{}:{'univerHost':_0x192e4a[_0x1b6912(0x1e1)]},..._0x192e4a[_0x1b6912(0x1ea)]===void 0x0?{}:{'viewHost':{..._0x192e4a[_0x1b6912(0x1ea)]}}};}function ze(_0x3d7b5d){const _0x22b6e3=_0x208584;_0x3d7b5d[_0x22b6e3(0x1dd)]!==void 0x0&&Object['keys'](_0x3d7b5d['experimental'])[_0x22b6e3(0x20e)]===0x0&&delete _0x3d7b5d[_0x22b6e3(0x1dd)],_0x3d7b5d[_0x22b6e3(0x24f)]!==void 0x0&&Object[_0x22b6e3(0x1e9)](_0x3d7b5d[_0x22b6e3(0x24f)])[_0x22b6e3(0x20e)]===0x0&&delete _0x3d7b5d[_0x22b6e3(0x24f)],_0x3d7b5d[_0x22b6e3(0x22b)]!==void 0x0&&Object[_0x22b6e3(0x1e9)](_0x3d7b5d[_0x22b6e3(0x22b)])[_0x22b6e3(0x20e)]===0x0&&delete _0x3d7b5d[_0x22b6e3(0x22b)],_0x3d7b5d[_0x22b6e3(0x1ea)]!==void 0x0&&Object[_0x22b6e3(0x1e9)](_0x3d7b5d[_0x22b6e3(0x1ea)])[_0x22b6e3(0x20e)]===0x0&&delete _0x3d7b5d[_0x22b6e3(0x1ea)];}function J(_0x2f78a7,_0x10e98a){const _0x233eaf=_0x208584;if(typeof _0x2f78a7!='object'||!_0x2f78a7||Array[_0x233eaf(0x236)](_0x2f78a7))throw Y(_0x10e98a,_0x233eaf(0x1de));}function Be(_0x5d68af){const _0x17fb2d=_0x208584;return new S(_0x17fb2d(0x23d),_0x17fb2d(0x22e)+_0x5d68af);}function Y(_0x5904be,_0x514752){const _0x18c77b=_0x208584;return new S(_0x18c77b(0x1ef),_0x18c77b(0x221)+_0x5904be+':\x20'+_0x514752);}function Ve(_0x30d46a){return _0x30d46a instanceof Error&&'code'in _0x30d46a;}function X(_0x10737e){return _0x10737e instanceof Error?_0x10737e['message']:String(_0x10737e);}var He=_0x208584(0x252),Ue=_0x208584(0x245),Z=_0x208584(0x1e7),We=_0x208584(0x1fd),Ge=0x3e8,Q=0x1a,$=0xa*0x400*0x400,Ke=_0x208584(0x1ff);function qe(_0x15684b={}){const _0x39da04=_0x208584;let _0x5a4bcf=_0x15684b[_0x39da04(0x223)]?.[_0x39da04(0x1d9)]??M()[_0x39da04(0x1d9)],_0xc5a1d3=new _0x2589f7({'locale':_0x1771e4[_0x39da04(0x24e)],'locales':{[_0x1771e4[_0x39da04(0x24e)]]:_0x413e06(_0x395c81,_0x21ea7b)}});_0xc5a1d3[_0x39da04(0x201)](_0x35db5f,{'license':_0x5a4bcf}),_0xc5a1d3[_0x39da04(0x201)](_0x51e570),_0xc5a1d3[_0x39da04(0x201)](_0x3c4627),_0xc5a1d3[_0x39da04(0x201)](_0x3cccb6),_0xc5a1d3[_0x39da04(0x201)](_0x17b6e8),_0xc5a1d3['registerPlugin'](_0x6d9a00,{'writeArrayFormulaToSnapshot':!0x0}),_0xc5a1d3['registerPlugin'](_0xb85bfd),_0xc5a1d3[_0x39da04(0x201)](_0x164f92,{'enableDynamicToolExecution':!0x0}),_0xc5a1d3[_0x39da04(0x201)](_0x4b5243),_0xc5a1d3[_0x39da04(0x201)](_0x98c7),_0xc5a1d3[_0x39da04(0x201)](_0x2eb3cd),_0xc5a1d3[_0x39da04(0x201)](_0x9e064e),_0xc5a1d3[_0x39da04(0x201)](_0x4a959a),_0xc5a1d3[_0x39da04(0x201)](_0x21ada8),_0xc5a1d3['registerPlugin'](_0x173d95),_0xc5a1d3[_0x39da04(0x201)](_0x5170d4),_0xc5a1d3['registerPlugin'](_0x4a8c3c),_0xc5a1d3[_0x39da04(0x201)](_0x36a347),_0xc5a1d3[_0x39da04(0x201)](_0x230b4e),_0xc5a1d3[_0x39da04(0x201)](_0x586fe9),_0xc5a1d3[_0x39da04(0x201)](_0x554839),_0xc5a1d3[_0x39da04(0x201)](_0x3d9eb0),_0xc5a1d3[_0x39da04(0x201)](_0x5dcec7),_0xc5a1d3['registerPlugin'](_0x35b88f),_0xc5a1d3[_0x39da04(0x201)](_0x2d4c87),_0xc5a1d3['registerPlugin'](_0x166308),_0xc5a1d3[_0x39da04(0x201)](_0x1cabfb),_0xc5a1d3[_0x39da04(0x201)](_0xb0b6c2),_0xc5a1d3[_0x39da04(0x201)](_0x5edcd1);let _0x472fbc=_0x398034['newAPI'](_0xc5a1d3),_0x5ad1e1=_0xc5a1d3[_0x39da04(0x1dc)](),_0x18a81c=_0x5ad1e1[_0x39da04(0x256)](_0x1b2ca6);_0x18a81c[_0x39da04(0x205)]=!0x1;let _0x121a73=_0x5ad1e1[_0x39da04(0x256)](_0x2f3e53),_0x367c35=_0x5ad1e1[_0x39da04(0x256)](_0x2acc7a),_0x506421=null,_0x1f0bab=null,_0x59b4e0=_0x121a73['onMutationExecutedForCollab']((_0x4d8103,_0x3a4fb1)=>{const _0x59ddce=_0x39da04;if(_0x506421===null)return;let _0x355c47=Je(_0x4d8103,_0x3a4fb1,_0x506421['unitId']);_0x355c47!==null&&_0x506421['mutations'][_0x59ddce(0x224)](_0x355c47);}),_0xdfca42={'univer':_0xc5a1d3,'univerAPI':_0x472fbc,'createWorkbook'(_0x20dcae){return _0x29bc0a($e(_0x20dcae));},'dispose'(){_0x59b4e0['dispose'](),_0x45c3d0(),_0x3ad08b(),_0xc5a1d3['dispose']();},async 'evalJs'(_0xc98ba1,_0x403f7a=$){const _0x22326b=_0x39da04;if(_0xc98ba1['length']>_0x403f7a)throw Error('Code\x20too\x20long\x20(max\x20'+_0x403f7a+_0x22326b(0x220));return await Function(_0x22326b(0x1f9),_0x22326b(0x247)+_0xc98ba1+_0x22326b(0x227))(_0x472fbc);},async 'evalJsWithMutationCapture'(_0xb5e6f,_0x19854c=$){const _0x513654=_0x39da04;let _0x20bc46=_0x536119()[_0x513654(0x210)]();if(_0x506421!==null)throw Error(_0x513654(0x1f0));let _0x3bd755={'mutations':[],'unitId':_0x20bc46};_0x506421=_0x3bd755;try{return{'value':await _0xdfca42[_0x513654(0x1f8)](_0xb5e6f,_0x19854c),'mutations':_0x3bd755[_0x513654(0x234)]};}finally{_0x506421=null;}},async 'exportWorkbookFile'(_0x278a6d,_0x5674c7){const _0x5ad38e=_0x39da04;let _0x48b4a8=_0xdfca42['exportWorkbookData']();if(_0x5674c7===_0x5ad38e(0x250)){let _0xc68e6d=Xe(_0x48b4a8);return await _0x5fb0ce(_0x278a6d,_0xc68e6d,_0x5ad38e(0x203)),{'format':_0x5674c7,'outputPath':_0x278a6d,'sizeBytes':Buffer[_0x5ad38e(0x1ec)](_0xc68e6d,_0x5ad38e(0x203))};}throw Error(_0x5ad38e(0x211));},'exportWorkbookData'(){const _0xc4bd17=_0x39da04;let _0x56dcd9=_0x536119();return _0x5ad1e1[_0xc4bd17(0x238)](_0xa94f77,_0x56dcd9)[_0xc4bd17(0x23a)]();},async 'loadWorkbookDataReplayPack'(_0x613db5){const _0x4b57a7=_0x39da04;return _0x29bc0a(_0x613db5[_0x4b57a7(0x240)]),_0x296a3e(_0x613db5['mutations']),await _0x4b050b(),_0xdfca42[_0x4b57a7(0x22f)]();},'loadWorkbookData':_0x29bc0a};return _0xdfca42;function _0x45c3d0(){const _0x18b44e=_0x39da04;_0x1f0bab&&=(_0x367c35[_0x18b44e(0x1e3)](_0x1f0bab),null);}function _0x536119(){const _0x40bb67=_0x39da04;if(!_0x1f0bab)throw Error(_0x40bb67(0x1ed));let _0x466271=_0x367c35[_0x40bb67(0x24d)](_0x1f0bab,_0x46333f[_0x40bb67(0x25a)]);if(!_0x466271)throw Error(_0x40bb67(0x204)+_0x1f0bab);return _0x466271;}function _0x29bc0a(_0x289d97){const _0x382a50=_0x39da04;return _0x45c3d0(),_0x1f0bab=_0x367c35[_0x382a50(0x218)](_0x46333f['UNIVER_SHEET'],structuredClone(_0x289d97))[_0x382a50(0x210)](),_0xdfca42[_0x382a50(0x22f)]();}function _0x296a3e(_0x2c5ec6){const _0x11d2f6=_0x39da04;if(_0x2c5ec6[_0x11d2f6(0x20e)]===0x0)return;let _0x446bc7=_0x4a7edf(_0x2c5ec6['map'](_0x2979f0=>({'id':_0x2979f0['id'],'params':structuredClone(_0x2979f0['params']),'type':_0x32587d[_0x11d2f6(0x24c)]})),_0x121a73,{'fromChangeset':!0x0});if(!_0x446bc7['result']){let _0x3d8e75=_0x2c5ec6[_0x446bc7[_0x11d2f6(0x241)]];throw Error(_0x11d2f6(0x23c)+(_0x3d8e75?.['id']??_0x11d2f6(0x1d6))+'\x20at\x20index\x20'+_0x446bc7[_0x11d2f6(0x241)]);}}async function _0x4b050b(){let _0x129ab9=_0x472fbc['getFormula']();_0x129ab9&&await _0x129ab9['onCalculationResultApplied']();}function _0x3ad08b(){const _0x45a27b=_0x39da04;let _0x9cbce8=_0x5ad1e1[_0x45a27b(0x256)](_0x28bf24);_0x9cbce8['t']=_0x494c19=>_0x494c19;}}function Je(_0x39d76b,_0x304ec0,_0x80e07b){const _0x49cabb=_0x208584;return _0x39d76b[_0x49cabb(0x232)]!==_0x32587d[_0x49cabb(0x24c)]||_0x304ec0?.[_0x49cabb(0x248)]||_0x304ec0?.[_0x49cabb(0x21e)]||_0x39d76b['id']===Ke||!Ye(_0x39d76b[_0x49cabb(0x21f)])||_0x39d76b[_0x49cabb(0x21f)][_0x49cabb(0x202)]!==_0x80e07b?null:{'id':_0x39d76b['id'],'params':structuredClone(_0x39d76b['params']),'type':_0x32587d['MUTATION']};}function Ye(_0xf534e4){const _0x2eb38c=_0x208584;return typeof _0xf534e4==_0x2eb38c(0x216)&&!!_0xf534e4&&!Array[_0x2eb38c(0x236)](_0xf534e4);}function Xe(_0x526b2){const _0x5b9e88=_0x208584;let _0x4deabe=_0x526b2['sheetOrder']?.[0x0];if(!_0x4deabe)return'';let _0x414257=_0x526b2[_0x5b9e88(0x1df)]?.[_0x4deabe];if(!_0x414257?.[_0x5b9e88(0x1e6)])return'';let _0xf9f528=Object[_0x5b9e88(0x1e9)](_0x414257['cellData'])[_0x5b9e88(0x1d4)](Number)['filter'](Number[_0x5b9e88(0x21b)])[_0x5b9e88(0x1f2)]((_0x1e61b5,_0x27532c)=>_0x1e61b5-_0x27532c),_0x5edbde=[];for(let _0x6a4bff of _0xf9f528){let _0x52fde4=_0x414257[_0x5b9e88(0x1e6)][_0x6a4bff];if(!_0x52fde4)continue;let _0x2397c0=Object['keys'](_0x52fde4)[_0x5b9e88(0x1d4)](Number)[_0x5b9e88(0x22d)](Number[_0x5b9e88(0x21b)])['sort']((_0x2239e8,_0x44ee32)=>_0x2239e8-_0x44ee32),_0x390801=[];for(let _0x52e721 of _0x2397c0){let _0x2be95e=_0x52fde4[_0x52e721];_0x390801[_0x52e721]=Qe(Ze(_0x2be95e));}_0x5edbde[_0x5b9e88(0x224)](_0x390801['map'](_0x42ddec=>_0x42ddec??'')[_0x5b9e88(0x21d)](','));}return _0x5edbde[_0x5b9e88(0x21d)]('\x0a');}function Ze(_0x5e10f1){const _0x54961e=_0x208584;if(!_0x5e10f1||typeof _0x5e10f1!='object')return'';let _0x2553e4=_0x5e10f1;return typeof _0x2553e4['v']==_0x54961e(0x1d7)?_0x2553e4['v']:typeof _0x2553e4['v']==_0x54961e(0x1e8)||typeof _0x2553e4['v']==_0x54961e(0x1eb)?String(_0x2553e4['v']):typeof _0x2553e4['p']==_0x54961e(0x1d7)?_0x2553e4['p']:'';}function Qe(_0x45e302){const _0x14d344=_0x208584;return/[",\n]/[_0x14d344(0x22a)](_0x45e302)?'\x22'+_0x45e302[_0x14d344(0x222)]('\x22','\x22\x22')+'\x22':_0x45e302;}function $e(_0x299811={}){const _0x90f542=_0x208584;let _0x456498=_0x299811['id']??_0x90f542(0x246)+Date[_0x90f542(0x1e0)]()[_0x90f542(0x21a)](0x24);return{'id':_0x456498,'name':_0x299811[_0x90f542(0x200)]??_0x456498,'appVersion':He,'locale':Ue,'styles':{},'sheetOrder':[Z],'sheets':{[Z]:{'id':Z,'name':We,'rowCount':Ge,'columnCount':Q,'cellData':{}}},'resources':[]};}export{O as a,w as c,Ae as d,k as f,A as i,je as l,x as n,Me as o,b as r,M as s,qe as t,j as u};
1
+ const _0x3ed866=_0x4c7b;(function(_0xf4bc13,_0x34e9d3){const _0x2fbd09=_0x4c7b,_0x419ede=_0xf4bc13();while(!![]){try{const _0x4831ff=-parseInt(_0x2fbd09(0x187))/0x1+parseInt(_0x2fbd09(0x1e5))/0x2+parseInt(_0x2fbd09(0x183))/0x3+-parseInt(_0x2fbd09(0x180))/0x4*(-parseInt(_0x2fbd09(0x1de))/0x5)+-parseInt(_0x2fbd09(0x1c5))/0x6+parseInt(_0x2fbd09(0x1bf))/0x7+-parseInt(_0x2fbd09(0x189))/0x8;if(_0x4831ff===_0x34e9d3)break;else _0x419ede['push'](_0x419ede['shift']());}catch(_0xd2f267){_0x419ede['push'](_0x419ede['shift']());}}}(_0xa766,0x493f8));import{$t as _0xd596ad,At as _0x2547e8,Bt as _0x401796,Cn as _0x3a1269,Dn as _0x255b81,Dt as _0x594e98,Et as _0xab517e,Ft as _0x1aad06,Ht as _0x36cb4a,It as _0x351d3e,Lt as _0xd336eb,Mt as _0x4060ab,Nt as _0x7d6284,On as _0x344bf7,Ot as _0x1f7fa2,Pt as _0x91a95,Rt as _0x1dc43c,Sn as _0x4a828d,Tt as _0x489e52,Ut as _0x260d48,Vt as _0x1e9995,Wt as _0x478aac,an as _0x43e7db,bn as _0x45cb35,cn as _0x51b94d,dn as _0x226995,en as _0x13a2a9,in as _0x2dcbed,jt as _0x54839e,kn as _0x40d35e,kt as _0x1d8d1a,ln as _0x29a919,nn as _0x4acade,on as _0x15a0f5,rn as _0x4beed0,sn as _0x40105d,tn as _0x34727b,un as _0x4a7801,vn as _0x40d497,wn as _0x133ca3,wt as _0x420d1e,xn as _0x227c39,zt as _0x52405a}from'./vendor-CgwrUUL6.js';import{mkdir as _0x554cf8,readFile as _0x2ed9fb,writeFile as _0x23cecc}from'node:fs/promises';import{dirname as _0x520b7b,join as _0x25c654,resolve as _0x2732e9}from'node:path';import{homedir as _0x58426e}from'node:os';const b=_0x3ed866(0x1bb),x=_0x3ed866(0x17e);var S=class extends Error{constructor(_0x2c2923,_0x14d1ad){const _0x14f394=_0x3ed866;super(_0x14d1ad),this['code']=_0x2c2923,this[_0x14f394(0x167)]='UserConfigError';}},C=class extends S{constructor(_0x9a0120,_0x3ec4a8,_0x409dce){const _0x1fdedc=_0x3ed866;super('USER_CONFIG_IO_ERROR',_0x1fdedc(0x1aa)+_0x3ec4a8+'\x20Univer\x20CLI\x20config\x20at\x20'+_0x9a0120+':\x20'+X(_0x409dce)),this[_0x1fdedc(0x19a)]=_0x9a0120,this[_0x1fdedc(0x184)]=_0x3ec4a8,this[_0x1fdedc(0x167)]=_0x1fdedc(0x199);}};function w(_0x4316d9={}){const _0x2f19a9=_0x3ed866;let _0x4dfb53=(_0x4316d9[_0x2f19a9(0x1d6)]??process.env)[_0x2f19a9(0x1b2)]?.[_0x2f19a9(0x1c3)]();return _0x2732e9(_0x4dfb53&&_0x4dfb53[_0x2f19a9(0x1b4)]>0x0?_0x4dfb53:_0x25c654(_0x4316d9[_0x2f19a9(0x18c)]??_0x58426e(),_0x2f19a9(0x1ac)),_0x2f19a9(0x1e3));}function T(_0x42063a){const _0x476f35=_0x3ed866;return J(_0x42063a,_0x476f35(0x1d5)),P(_0x42063a);}function E(_0x4c5934){const _0x1aa981=_0x3ed866;try{return T(JSON[_0x1aa981(0x1be)](_0x4c5934));}catch(_0x18b2c1){throw _0x18b2c1 instanceof S?_0x18b2c1:new S(_0x1aa981(0x177),_0x1aa981(0x185)+X(_0x18b2c1));}}function D(_0x2f5558){const _0x4b4a0f=_0x3ed866;return JSON[_0x4b4a0f(0x1d2)](T(_0x2f5558),null,0x2)+'\x0a';}async function O(_0x44da0c={}){const _0x55f60a=_0x3ed866;let _0x4fc994=w(_0x44da0c);try{return{'config':E(await _0x2ed9fb(_0x4fc994,'utf8')),'path':_0x4fc994};}catch(_0x49d67c){if(Ve(_0x49d67c)&&_0x49d67c[_0x55f60a(0x1e6)]==='ENOENT')return{'config':{},'path':_0x4fc994};throw _0x49d67c instanceof S?_0x49d67c:new C(_0x4fc994,_0x55f60a(0x16a),_0x49d67c);}}async function k(_0x23095d,_0x193bf8={}){const _0x30b870=_0x3ed866;let _0x432ee7=w(_0x193bf8);try{return await _0x554cf8(_0x520b7b(_0x432ee7),{'mode':0x1c0,'recursive':!0x0}),await _0x23cecc(_0x432ee7,D(_0x23095d),{'encoding':_0x30b870(0x188),'mode':0x180}),{'config':T(_0x23095d),'path':_0x432ee7};}catch(_0x486b28){throw _0x486b28 instanceof S?_0x486b28:new C(_0x432ee7,_0x30b870(0x1ab),_0x486b28);}}function A(_0x393bab,_0x1de399){const _0x3bbcfc=_0x3ed866;let _0x47b369=F(_0x1de399);if(_0x47b369[_0x3bbcfc(0x19b)]==='univer-host')return _0x393bab[_0x3bbcfc(0x1b8)];if(_0x47b369[_0x3bbcfc(0x19b)]===_0x3bbcfc(0x196))return _0x393bab['experimental']?.[_0x47b369[_0x3bbcfc(0x181)]];if(_0x47b369[_0x3bbcfc(0x19b)]===_0x3bbcfc(0x1d7))return _0x393bab[_0x3bbcfc(0x1d7)]?.[_0x47b369[_0x3bbcfc(0x181)]];if(_0x47b369['kind']==='univer-runtime')return _0x393bab[_0x3bbcfc(0x1dc)]?.[_0x47b369[_0x3bbcfc(0x181)]];if(_0x47b369['kind']===_0x3bbcfc(0x1ce))return _0x393bab['viewHost']?.[_0x47b369['field']];}function j(_0x2efe3e,_0x19965d,_0xe8f52a){const _0x5859fd=_0x3ed866;let _0x21450f=F(_0x19965d),_0x5e3c47=q(_0x2efe3e);return _0x21450f[_0x5859fd(0x19b)]==='univer-host'?(_0x5e3c47[_0x5859fd(0x1b8)]=H(_0xe8f52a,_0x19965d),P(_0x5e3c47)):_0x21450f[_0x5859fd(0x19b)]===_0x5859fd(0x196)?(_0x5e3c47['experimental']??={},_0x5e3c47[_0x5859fd(0x196)][_0x21450f[_0x5859fd(0x181)]]=I(_0x21450f[_0x5859fd(0x16b)],_0xe8f52a,_0x19965d),P(_0x5e3c47)):_0x21450f[_0x5859fd(0x19b)]===_0x5859fd(0x1d7)?(_0x5e3c47[_0x5859fd(0x1d7)]??={},_0x5e3c47[_0x5859fd(0x1d7)][_0x21450f[_0x5859fd(0x181)]]=I(_0x21450f[_0x5859fd(0x16b)],_0xe8f52a,_0x19965d),P(_0x5e3c47)):_0x21450f[_0x5859fd(0x19b)]===_0x5859fd(0x1ad)?(_0x5e3c47[_0x5859fd(0x1dc)]??={},_0x5e3c47[_0x5859fd(0x1dc)][_0x21450f['field']]=I(_0x21450f[_0x5859fd(0x16b)],_0xe8f52a,_0x19965d),P(_0x5e3c47)):_0x21450f[_0x5859fd(0x19b)]===_0x5859fd(0x1ce)?(_0x5e3c47[_0x5859fd(0x161)]??={},_0x5e3c47[_0x5859fd(0x161)][_0x21450f[_0x5859fd(0x181)]]=I(_0x21450f[_0x5859fd(0x16b)],_0xe8f52a,_0x19965d),P(_0x5e3c47)):P(_0x5e3c47);}function Ae(_0x16b421,_0x19e277){const _0x2f1699=_0x3ed866;let _0x39c948=F(_0x19e277),_0x5428ac=q(_0x16b421);return _0x39c948['kind']===_0x2f1699(0x1a3)?delete _0x5428ac[_0x2f1699(0x1b8)]:_0x39c948[_0x2f1699(0x19b)]===_0x2f1699(0x196)?delete _0x5428ac[_0x2f1699(0x196)]?.[_0x39c948[_0x2f1699(0x181)]]:_0x39c948[_0x2f1699(0x19b)]===_0x2f1699(0x1d7)?delete _0x5428ac[_0x2f1699(0x1d7)]?.[_0x39c948[_0x2f1699(0x181)]]:_0x39c948[_0x2f1699(0x19b)]===_0x2f1699(0x1ad)?delete _0x5428ac[_0x2f1699(0x1dc)]?.[_0x39c948[_0x2f1699(0x181)]]:_0x39c948[_0x2f1699(0x19b)]===_0x2f1699(0x1ce)&&delete _0x5428ac[_0x2f1699(0x161)]?.[_0x39c948[_0x2f1699(0x181)]],ze(_0x5428ac),P(_0x5428ac);}function je(_0x58d77d={}){const _0x4cb985=_0x3ed866;let _0x51dc97=_0x58d77d[_0x4cb985(0x1d6)]??process.env,_0x5ce4cf=Pe(_0x51dc97[_0x4cb985(0x169)],'UNIVER_VIEW_HOST_PORT'),_0x3185b0=Ie(_0x51dc97[_0x4cb985(0x192)],_0x4cb985(0x192)),_0xc69238=Le(_0x51dc97['UNIVER_VIEW_HOST_OPEN'],_0x4cb985(0x16e)),_0x1a3039=_0x58d77d[_0x4cb985(0x19f)]?.['port']??_0x5ce4cf??_0x58d77d[_0x4cb985(0x1d5)]?.[_0x4cb985(0x161)]?.['port'],_0x59b3a5=(_0x58d77d['cli']?.[_0x4cb985(0x160)]===void 0x0?void 0x0:G(_0x58d77d['cli'][_0x4cb985(0x160)],_0x4cb985(0x1bc)))??_0x3185b0??_0x58d77d[_0x4cb985(0x1d5)]?.[_0x4cb985(0x161)]?.[_0x4cb985(0x160)],_0x317005=_0x58d77d[_0x4cb985(0x19f)]?.[_0x4cb985(0x182)]??_0xc69238??_0x58d77d[_0x4cb985(0x1d5)]?.[_0x4cb985(0x161)]?.['open']??!0x1;return{..._0x1a3039===void 0x0?{}:{'port':_0x1a3039},..._0x59b3a5===void 0x0?{}:{'baseUrl':_0x59b3a5},'open':_0x317005};}function M(_0x106d39={}){const _0x1a7074=_0x3ed866;return{'license':Re((_0x106d39[_0x1a7074(0x1d6)]??process.env)['UNIVER_LICENSE'],_0x1a7074(0x1ba))??_0x106d39[_0x1a7074(0x1d5)]?.[_0x1a7074(0x1dc)]?.[_0x1a7074(0x197)]??_0x1a7074(0x1bb)};}function Me(_0x3d8698={}){const _0x346b81=_0x3ed866;let _0x526721=N(_0x3d8698)?_0x3d8698[_0x346b81(0x1d5)]??{}:_0x3d8698,_0x4cbb0b=Fe((N(_0x3d8698)?_0x3d8698['env']:void 0x0)?.[_0x346b81(0x1bd)],'UNIVER_HOST');return _0x4cbb0b===void 0x0?_0x526721[_0x346b81(0x1b8)]===void 0x0?{'configured':!0x0,'source':_0x346b81(0x1ae),'url':x}:{'configured':!0x0,'source':_0x346b81(0x1d5),'url':U(_0x526721[_0x346b81(0x1b8)],_0x346b81(0x1b8))}:{'configured':!0x0,'source':_0x346b81(0x1d6),'url':_0x4cbb0b};}function N(_0x4e50ab){const _0x40a552=_0x3ed866;return'config'in _0x4e50ab||_0x40a552(0x1d6)in _0x4e50ab;}function P(_0x1b975b){const _0xb02a15=_0x3ed866;let _0x459fa0={};if(_0x1b975b[_0xb02a15(0x196)]!==void 0x0){J(_0x1b975b['experimental'],_0xb02a15(0x196));let _0x16c031=_0x1b975b[_0xb02a15(0x196)],_0x424d64={};for(let _0x30a2fa of Object['keys'](_0x16c031))_0x30a2fa==='sac'&&(_0x424d64[_0xb02a15(0x173)]=R(_0x16c031[_0xb02a15(0x173)],_0xb02a15(0x1d4)));Object[_0xb02a15(0x1c0)](_0x424d64)['length']>0x0&&(_0x459fa0[_0xb02a15(0x196)]=_0x424d64);}if(_0x1b975b['update']!==void 0x0){J(_0x1b975b[_0xb02a15(0x1d7)],_0xb02a15(0x1d7));let _0x2bca1c=_0x1b975b[_0xb02a15(0x1d7)],_0x46556f={};for(let _0x7261f3 of Object['keys'](_0x2bca1c))_0x7261f3==='checkOnStartup'&&(_0x46556f[_0xb02a15(0x1db)]=R(_0x2bca1c[_0xb02a15(0x1db)],_0xb02a15(0x19d)));Object[_0xb02a15(0x1c0)](_0x46556f)['length']>0x0&&(_0x459fa0[_0xb02a15(0x1d7)]=_0x46556f);}if(_0x1b975b[_0xb02a15(0x1dc)]!==void 0x0){J(_0x1b975b[_0xb02a15(0x1dc)],_0xb02a15(0x1dc));let _0x5b30b4=_0x1b975b[_0xb02a15(0x1dc)],_0x13ed63={};for(let _0x5ba3ac of Object[_0xb02a15(0x1c0)](_0x5b30b4))_0x5ba3ac===_0xb02a15(0x197)&&(_0x13ed63['license']=Ne(_0x5b30b4[_0xb02a15(0x197)],_0xb02a15(0x1df)));Object['keys'](_0x13ed63)[_0xb02a15(0x1b4)]>0x0&&(_0x459fa0[_0xb02a15(0x1dc)]=_0x13ed63);}if(_0x1b975b[_0xb02a15(0x1b8)]!==void 0x0&&(_0x459fa0[_0xb02a15(0x1b8)]=U(_0x1b975b[_0xb02a15(0x1b8)],_0xb02a15(0x1b8))),_0x1b975b[_0xb02a15(0x161)]!==void 0x0){J(_0x1b975b[_0xb02a15(0x161)],'viewHost');let _0x591182=_0x1b975b[_0xb02a15(0x161)],_0x2751ee={};for(let _0x1857a6 of Object[_0xb02a15(0x1c0)](_0x591182))_0x1857a6===_0xb02a15(0x1d0)?_0x2751ee['port']=B(_0x591182[_0xb02a15(0x1d0)],_0xb02a15(0x1a2)):_0x1857a6==='baseUrl'?_0x2751ee[_0xb02a15(0x160)]=G(_0x591182[_0xb02a15(0x160)],_0xb02a15(0x1bc)):_0x1857a6==='open'&&(_0x2751ee[_0xb02a15(0x182)]=R(_0x591182[_0xb02a15(0x182)],'viewHost.open'));Object[_0xb02a15(0x1c0)](_0x2751ee)[_0xb02a15(0x1b4)]>0x0&&(_0x459fa0[_0xb02a15(0x161)]=_0x2751ee);}return _0x459fa0;}function F(_0xa7eab2){const _0x30d3ea=_0x3ed866;if(_0xa7eab2===_0x30d3ea(0x1b8))return{'kind':_0x30d3ea(0x1a3)};if(_0xa7eab2===_0x30d3ea(0x1d4))return{'kind':_0x30d3ea(0x196),'field':_0x30d3ea(0x173),'valueType':_0x30d3ea(0x17f)};if(_0xa7eab2===_0x30d3ea(0x19d))return{'kind':_0x30d3ea(0x1d7),'field':'checkOnStartup','valueType':_0x30d3ea(0x17f)};if(_0xa7eab2===_0x30d3ea(0x1df))return{'kind':_0x30d3ea(0x1ad),'field':'license','valueType':_0x30d3ea(0x1cf)};if(_0xa7eab2==='viewHost.port')return{'kind':_0x30d3ea(0x1ce),'field':'port','valueType':_0x30d3ea(0x1d0)};if(_0xa7eab2===_0x30d3ea(0x1bc))return{'kind':_0x30d3ea(0x1ce),'field':_0x30d3ea(0x160),'valueType':'url'};if(_0xa7eab2===_0x30d3ea(0x1d9))return{'kind':_0x30d3ea(0x1ce),'field':_0x30d3ea(0x182),'valueType':_0x30d3ea(0x17f)};throw Be(_0xa7eab2);}function I(_0x1c958d,_0x4100a3,_0x86e8c9){const _0x43c90d=_0x3ed866;return _0x1c958d===_0x43c90d(0x17f)?L(_0x4100a3,_0x86e8c9):_0x1c958d===_0x43c90d(0x1d0)?z(_0x4100a3,_0x86e8c9):_0x1c958d===_0x43c90d(0x1cf)?V(_0x4100a3,_0x86e8c9):_0x86e8c9==='viewHost.baseUrl'?W(_0x4100a3,_0x86e8c9):H(_0x4100a3,_0x86e8c9);}function L(_0x48bb57,_0x5d7154){const _0x40637b=_0x3ed866;if(_0x48bb57===_0x40637b(0x165))return!0x0;if(_0x48bb57===_0x40637b(0x1e2))return!0x1;throw Y(_0x5d7154,_0x40637b(0x178));}function R(_0x912db2,_0x54d099){const _0x4fef98=_0x3ed866;if(typeof _0x912db2!=_0x4fef98(0x17f))throw Y(_0x54d099,_0x4fef98(0x178));return _0x912db2;}function z(_0x25a4fd,_0x4acfa5){const _0x3a643b=_0x3ed866;if(!/^\d+$/u[_0x3a643b(0x17c)](_0x25a4fd))throw Y(_0x4acfa5,_0x3a643b(0x1b0));return B(Number(_0x25a4fd),_0x4acfa5);}function B(_0x3fa1f7,_0x499f7d){const _0x3091df=_0x3ed866;if(!Number[_0x3091df(0x1a1)](_0x3fa1f7)||_0x3fa1f7<0x1||_0x3fa1f7>0xffff)throw Y(_0x499f7d,_0x3091df(0x19e));return _0x3fa1f7;}function V(_0x3cf85e,_0x5dadc5){const _0x4605f8=_0x3ed866;if(_0x3cf85e[_0x4605f8(0x1c3)]()!==_0x3cf85e||_0x3cf85e[_0x4605f8(0x1b4)]===0x0)throw Y(_0x5dadc5,_0x4605f8(0x1c2));return _0x3cf85e;}function Ne(_0x256a8e,_0x2af887){if(typeof _0x256a8e!='string')throw Y(_0x2af887,'Expected\x20a\x20non-empty\x20string.');return V(_0x256a8e,_0x2af887);}function H(_0xa278d9,_0xa7ecb9){const _0x2dde17=_0x3ed866;if(_0xa278d9[_0x2dde17(0x1c3)]()!==_0xa278d9||_0xa278d9['length']===0x0)throw Y(_0xa7ecb9,'Expected\x20an\x20absolute\x20HTTP\x20or\x20HTTPS\x20URL.');return U(_0xa278d9,_0xa7ecb9);}function U(_0x3b7e06,_0x375a9b){const _0x3db09d=_0x3ed866;if(typeof _0x3b7e06!=_0x3db09d(0x1af))throw Y(_0x375a9b,_0x3db09d(0x1d8));try{let _0xb1212a=new URL(_0x3b7e06);if(_0xb1212a[_0x3db09d(0x1c1)]!==_0x3db09d(0x1e7)&&_0xb1212a[_0x3db09d(0x1c1)]!==_0x3db09d(0x1c7))throw Error(_0x3db09d(0x164));return _0xb1212a[_0x3db09d(0x171)]();}catch{throw Y(_0x375a9b,'Expected\x20an\x20absolute\x20HTTP\x20or\x20HTTPS\x20URL.');}}function W(_0xfe5ddc,_0x1dc7e7){const _0x390567=_0x3ed866;if(_0xfe5ddc[_0x390567(0x1c3)]()!==_0xfe5ddc||_0xfe5ddc[_0x390567(0x1b4)]===0x0)throw Y(_0x1dc7e7,K());return G(_0xfe5ddc,_0x1dc7e7);}function G(_0x585fad,_0x1adf54){const _0x55474a=_0x3ed866;let _0x492adc=U(_0x585fad,_0x1adf54),_0x440cf9=new URL(_0x492adc);if(_0x440cf9[_0x55474a(0x17d)]!=='/'||_0x440cf9['search'][_0x55474a(0x1b4)]>0x0||_0x440cf9['hash'][_0x55474a(0x1b4)]>0x0)throw Y(_0x1adf54,K());return _0x440cf9[_0x55474a(0x171)]();}function _0x4c7b(_0x19a000,_0x4b099b){_0x19a000=_0x19a000-0x160;const _0xa76631=_0xa766();let _0x4c7be0=_0xa76631[_0x19a000];return _0x4c7be0;}function K(){return'Expected\x20a\x20root-mounted\x20HTTP\x20or\x20HTTPS\x20URL\x20without\x20a\x20path,\x20query,\x20or\x20hash,\x20for\x20example\x20https://view.example.com/.\x20Subpath\x20mounts\x20are\x20not\x20supported.';}function Pe(_0x53a436,_0x425b55){const _0xa5516c=_0x3ed866;return _0x53a436===void 0x0||_0x53a436[_0xa5516c(0x1c3)]()['length']===0x0?void 0x0:z(_0x53a436,_0x425b55);}function Fe(_0x197bdb,_0x7999e4){const _0x28a74c=_0x3ed866;return _0x197bdb===void 0x0||_0x197bdb[_0x28a74c(0x1c3)]()[_0x28a74c(0x1b4)]===0x0?void 0x0:H(_0x197bdb,_0x7999e4);}function Ie(_0x3d57be,_0x589d58){return _0x3d57be===void 0x0||_0x3d57be['trim']()['length']===0x0?void 0x0:W(_0x3d57be,_0x589d58);}function Le(_0x57b8c1,_0x272aaf){const _0x2f25a7=_0x3ed866;return _0x57b8c1===void 0x0||_0x57b8c1[_0x2f25a7(0x1c3)]()[_0x2f25a7(0x1b4)]===0x0?void 0x0:L(_0x57b8c1,_0x272aaf);}function Re(_0x5c97bc,_0x19c4a3){const _0x21e565=_0x3ed866;return _0x5c97bc===void 0x0||_0x5c97bc[_0x21e565(0x1c3)]()['length']===0x0?void 0x0:V(_0x5c97bc,_0x19c4a3);}function q(_0x204f5e){const _0x2d8e63=_0x3ed866;return{..._0x204f5e['experimental']===void 0x0?{}:{'experimental':{..._0x204f5e[_0x2d8e63(0x196)]}},..._0x204f5e['update']===void 0x0?{}:{'update':{..._0x204f5e[_0x2d8e63(0x1d7)]}},..._0x204f5e[_0x2d8e63(0x1dc)]===void 0x0?{}:{'univerRuntime':{..._0x204f5e['univerRuntime']}},..._0x204f5e['univerHost']===void 0x0?{}:{'univerHost':_0x204f5e['univerHost']},..._0x204f5e[_0x2d8e63(0x161)]===void 0x0?{}:{'viewHost':{..._0x204f5e['viewHost']}}};}function ze(_0x4114c0){const _0x2dd96b=_0x3ed866;_0x4114c0[_0x2dd96b(0x196)]!==void 0x0&&Object[_0x2dd96b(0x1c0)](_0x4114c0[_0x2dd96b(0x196)])[_0x2dd96b(0x1b4)]===0x0&&delete _0x4114c0[_0x2dd96b(0x196)],_0x4114c0[_0x2dd96b(0x1d7)]!==void 0x0&&Object['keys'](_0x4114c0[_0x2dd96b(0x1d7)])[_0x2dd96b(0x1b4)]===0x0&&delete _0x4114c0[_0x2dd96b(0x1d7)],_0x4114c0['univerRuntime']!==void 0x0&&Object[_0x2dd96b(0x1c0)](_0x4114c0[_0x2dd96b(0x1dc)])[_0x2dd96b(0x1b4)]===0x0&&delete _0x4114c0['univerRuntime'],_0x4114c0[_0x2dd96b(0x161)]!==void 0x0&&Object[_0x2dd96b(0x1c0)](_0x4114c0[_0x2dd96b(0x161)])['length']===0x0&&delete _0x4114c0['viewHost'];}function J(_0x2c0b38,_0x28b98b){if(typeof _0x2c0b38!='object'||!_0x2c0b38||Array['isArray'](_0x2c0b38))throw Y(_0x28b98b,'Expected\x20an\x20object.');}function Be(_0x222ab9){const _0xad8ef0=_0x3ed866;return new S(_0xad8ef0(0x18d),_0xad8ef0(0x195)+_0x222ab9);}function Y(_0x27853b,_0x11d75f){const _0x3c1ab7=_0x3ed866;return new S(_0x3c1ab7(0x166),_0x3c1ab7(0x1b3)+_0x27853b+':\x20'+_0x11d75f);}function Ve(_0x1f3da4){const _0xc36b4a=_0x3ed866;return _0x1f3da4 instanceof Error&&_0xc36b4a(0x1e6)in _0x1f3da4;}function X(_0x30aa2f){const _0x376a88=_0x3ed866;return _0x30aa2f instanceof Error?_0x30aa2f[_0x376a88(0x1e1)]:String(_0x30aa2f);}var He=_0x3ed866(0x1b7),Ue=_0x3ed866(0x198),Z=_0x3ed866(0x18a),We='Sheet1',Ge=0x3e8,Q=0x1a,$=0xa*0x400*0x400,Ke='doc.mutation.rich-text-editing';function qe(_0x456756={}){const _0xb9b83b=_0x3ed866;let _0x13e71d=_0x456756[_0xb9b83b(0x1e8)]?.[_0xb9b83b(0x197)]??M()['license'],_0x504c61=new _0x133ca3({'locale':_0x3a1269['EN_US'],'locales':{[_0x3a1269[_0xb9b83b(0x194)]]:_0x255b81(_0x54839e,_0x1d8d1a)}});_0x504c61[_0xb9b83b(0x1d1)](_0x4a7801,{'license':_0x13e71d}),_0x504c61[_0xb9b83b(0x1d1)](_0x51b94d),_0x504c61['registerPlugin'](_0x260d48),_0x504c61[_0xb9b83b(0x1d1)](_0x40105d),_0x504c61[_0xb9b83b(0x1d1)](_0x420d1e),_0x504c61[_0xb9b83b(0x1d1)](_0xd336eb,{'writeArrayFormulaToSnapshot':!0x0}),_0x504c61[_0xb9b83b(0x1d1)](_0x29a919),_0x504c61[_0xb9b83b(0x1d1)](_0x36cb4a,{'enableDynamicToolExecution':!0x0}),_0x504c61[_0xb9b83b(0x1d1)](_0x1aad06),_0x504c61[_0xb9b83b(0x1d1)](_0x226995),_0x504c61['registerPlugin'](_0x13a2a9),_0x504c61[_0xb9b83b(0x1d1)](_0x594e98),_0x504c61['registerPlugin'](_0x43e7db),_0x504c61[_0xb9b83b(0x1d1)](_0x4acade),_0x504c61[_0xb9b83b(0x1d1)](_0xab517e),_0x504c61[_0xb9b83b(0x1d1)](_0x401796),_0x504c61['registerPlugin'](_0xd596ad),_0x504c61[_0xb9b83b(0x1d1)](_0x1dc43c),_0x504c61[_0xb9b83b(0x1d1)](_0x34727b),_0x504c61['registerPlugin'](_0x91a95),_0x504c61[_0xb9b83b(0x1d1)](_0x7d6284),_0x504c61[_0xb9b83b(0x1d1)](_0x4060ab),_0x504c61[_0xb9b83b(0x1d1)](_0x2dcbed),_0x504c61[_0xb9b83b(0x1d1)](_0x351d3e),_0x504c61[_0xb9b83b(0x1d1)](_0x4beed0),_0x504c61[_0xb9b83b(0x1d1)](_0x1f7fa2),_0x504c61['registerPlugin'](_0x15a0f5),_0x504c61[_0xb9b83b(0x1d1)](_0x489e52),_0x504c61[_0xb9b83b(0x1d1)](_0x52405a);let _0x4a3f2c=_0x478aac['newAPI'](_0x504c61),_0x109eff=_0x504c61[_0xb9b83b(0x168)](),_0x29fe0a=_0x109eff[_0xb9b83b(0x163)](_0x1e9995);_0x29fe0a[_0xb9b83b(0x1ca)]=!0x1;let _0x2b2eac=_0x109eff[_0xb9b83b(0x163)](_0x45cb35),_0xde0488=_0x109eff[_0xb9b83b(0x163)](_0x227c39),_0x1126b2=null,_0x4b2131=null,_0x292a38=_0x2b2eac[_0xb9b83b(0x16f)]((_0x1e7eff,_0x5e0f68)=>{const _0x12b3e1=_0xb9b83b;if(_0x1126b2===null)return;let _0x1432d2=Je(_0x1e7eff,_0x5e0f68,_0x1126b2['unitId']);_0x1432d2!==null&&_0x1126b2[_0x12b3e1(0x1d3)][_0x12b3e1(0x1cc)](_0x1432d2);}),_0x19ad18={'univer':_0x504c61,'univerAPI':_0x4a3f2c,'createWorkbook'(_0x2e0669){return _0x5946d9($e(_0x2e0669));},'dispose'(){const _0x1736ef=_0xb9b83b;_0x292a38[_0x1736ef(0x1c4)](),_0x564059(),_0x599b2d(),_0x504c61[_0x1736ef(0x1c4)]();},async 'evalJs'(_0x244cc7,_0x52f0e0=$){const _0x59bf91=_0xb9b83b;if(_0x244cc7[_0x59bf91(0x1b4)]>_0x52f0e0)throw Error(_0x59bf91(0x190)+_0x52f0e0+_0x59bf91(0x1cb));return await Function(_0x59bf91(0x18f),'return\x20(async\x20()\x20=>\x20{\x20'+_0x244cc7+_0x59bf91(0x1dd))(_0x4a3f2c);},async 'evalJsWithMutationCapture'(_0x36e0a8,_0x2fc605=$){const _0x504d24=_0xb9b83b;let _0x5058d2=_0x3f398d()[_0x504d24(0x170)]();if(_0x1126b2!==null)throw Error('Mutation\x20collection\x20is\x20already\x20active');let _0x36d14d={'mutations':[],'unitId':_0x5058d2};_0x1126b2=_0x36d14d;try{return{'value':await _0x19ad18['evalJs'](_0x36e0a8,_0x2fc605),'mutations':_0x36d14d[_0x504d24(0x1d3)]};}finally{_0x1126b2=null;}},async 'exportWorkbookFile'(_0xae2e9f,_0x3f74a4){const _0x24ad33=_0xb9b83b;let _0x3c8a86=_0x19ad18['exportWorkbookData']();if(_0x3f74a4===_0x24ad33(0x176)){let _0x6b50c7=Xe(_0x3c8a86);return await _0x23cecc(_0xae2e9f,_0x6b50c7,'utf8'),{'format':_0x3f74a4,'outputPath':_0xae2e9f,'sizeBytes':Buffer[_0x24ad33(0x16c)](_0x6b50c7,'utf8')};}throw Error('runtime\x20xlsx\x20export\x20is\x20not\x20available;\x20use\x20workbook\x20exchange\x20export');},'exportWorkbookData'(){const _0xf92545=_0xb9b83b;let _0x2278a7=_0x3f398d();return _0x109eff['createInstance'](_0x2547e8,_0x2278a7)[_0xf92545(0x1b5)]();},async 'loadWorkbookDataReplayPack'(_0x2c59b8){const _0x3ecf5e=_0xb9b83b;return _0x5946d9(_0x2c59b8[_0x3ecf5e(0x19c)]),_0x54b294(_0x2c59b8['mutations']),await _0x12a965(),_0x19ad18[_0x3ecf5e(0x1b9)]();},'loadWorkbookData':_0x5946d9};return _0x19ad18;function _0x564059(){const _0x1364c3=_0xb9b83b;_0x4b2131&&=(_0xde0488[_0x1364c3(0x18b)](_0x4b2131),null);}function _0x3f398d(){const _0x420cee=_0xb9b83b;if(!_0x4b2131)throw Error(_0x420cee(0x16d));let _0x3acc69=_0xde0488[_0x420cee(0x175)](_0x4b2131,_0x40d35e[_0x420cee(0x1a6)]);if(!_0x3acc69)throw Error(_0x420cee(0x174)+_0x4b2131);return _0x3acc69;}function _0x5946d9(_0x595627){const _0x47dee7=_0xb9b83b;return _0x564059(),_0x4b2131=_0xde0488['createUnit'](_0x40d35e['UNIVER_SHEET'],structuredClone(_0x595627))['getUnitId'](),_0x19ad18[_0x47dee7(0x1b9)]();}function _0x54b294(_0x536898){const _0x44b6ad=_0xb9b83b;if(_0x536898['length']===0x0)return;let _0x182844=_0x344bf7(_0x536898[_0x44b6ad(0x1a7)](_0x10140b=>({'id':_0x10140b['id'],'params':structuredClone(_0x10140b[_0x44b6ad(0x1b6)]),'type':_0x40d497[_0x44b6ad(0x186)]})),_0x2b2eac,{'fromChangeset':!0x0});if(!_0x182844[_0x44b6ad(0x1a9)]){let _0xcb2c27=_0x536898[_0x182844['index']];throw Error('Failed\x20to\x20replay\x20mutation\x20'+(_0xcb2c27?.['id']??_0x44b6ad(0x1b1))+_0x44b6ad(0x191)+_0x182844[_0x44b6ad(0x17b)]);}}async function _0x12a965(){const _0x3a1c24=_0xb9b83b;let _0x1a0938=_0x4a3f2c[_0x3a1c24(0x1a8)]();_0x1a0938&&await _0x1a0938[_0x3a1c24(0x1a5)]();}function _0x599b2d(){const _0x5206f6=_0xb9b83b;let _0x4bcf49=_0x109eff[_0x5206f6(0x163)](_0x4a828d);_0x4bcf49['t']=_0x3772b2=>_0x3772b2;}}function Je(_0x4740b0,_0x28938d,_0x4045d0){const _0x110353=_0x3ed866;return _0x4740b0[_0x110353(0x172)]!==_0x40d497[_0x110353(0x186)]||_0x28938d?.['fromCollab']||_0x28938d?.[_0x110353(0x18e)]||_0x4740b0['id']===Ke||!Ye(_0x4740b0[_0x110353(0x1b6)])||_0x4740b0['params'][_0x110353(0x193)]!==_0x4045d0?null:{'id':_0x4740b0['id'],'params':structuredClone(_0x4740b0[_0x110353(0x1b6)]),'type':_0x40d497['MUTATION']};}function Ye(_0x5c1c29){const _0x272137=_0x3ed866;return typeof _0x5c1c29==_0x272137(0x162)&&!!_0x5c1c29&&!Array[_0x272137(0x1c9)](_0x5c1c29);}function _0xa766(){const _0x57e5f1=['valueType','byteLength','Workbook\x20not\x20loaded','UNIVER_VIEW_HOST_OPEN','onMutationExecutedForCollab','getUnitId','toString','type','sac','Workbook\x20not\x20found:\x20','getUnit','csv','USER_CONFIG_INVALID_JSON','Expected\x20true\x20or\x20false.','number','sort','index','test','pathname','https://univer.ai/','boolean','750096DSbwwG','field','open','1360566uFOivH','operation','Invalid\x20Univer\x20CLI\x20config\x20JSON:\x20','MUTATION','239750wlZego','utf8','8177224uWFDmr','sheet-1','disposeUnit','homeDir','USER_CONFIG_UNKNOWN_KEY','onlyLocal','univerAPI','Code\x20too\x20long\x20(max\x20','\x20at\x20index\x20','UNIVER_VIEW_HOST_BASE_URL','unitId','EN_US','Unknown\x20Univer\x20CLI\x20config\x20key:\x20','experimental','license','enUS','UserConfigIoError','path','kind','baseWorkbookData','update.checkOnStartup','Expected\x20a\x20TCP\x20port\x20number\x20from\x201\x20to\x2065535.','cli','sheets','isInteger','viewHost.port','univer-host','now','onCalculationResultApplied','UNIVER_SHEET','map','getFormula','result','Could\x20not\x20','write','.univer','univer-runtime','default','string','Expected\x20a\x20TCP\x20port\x20number.','<unknown>','UNIVER_HOME','Invalid\x20Univer\x20CLI\x20config\x20value\x20for\x20','length','save','params','0.24.0-insiders.20260528-29f582d','univerHost','exportWorkbookData','UNIVER_LICENSE','1947908155879981234-1-eyJpIjoiMTk0NzkwODE1NTg3OTk4MTIzNCIsInYiOiIxIiwicCI6IkJnRGtRT2Exc2J3N3c3ZitkTG0yU2NJb1lCQ2Z3d0JMMURZZk1ra0kraDg9IiwiZG0iOlsiKi51bml2ZXIuYWkiLCIqLnVuaXZlci5wbHVzIiwiKi5jYXBhbHl6ZS5haSIsIiouYmlhb2RhLm1lIiwiKi5kcmVhbS1udW0udnBjIl0sInJ0IjozLCJmdCI6eyJ1ZiI6eyJtdSI6MjE0NzQ4MzY0NiwiZXQiOjE3OTY5MTgzOTksIm1tIjoyMTQ3NDgzNjQ2LCJjdSI6MjE0NzQ4MzY0Nn0sInNmIjp7ImV0IjoxNzk2OTE4Mzk5LCJydiI6dHJ1ZSwicHRuIjoyMTQ3NDgzNjQ2LCJtaXMiOjIxNDc0ODM2NDYsIm1wbiI6MjE0NzQ4MzY0NiwibmMiOjIxNDc0ODM2NDYsImllYyI6MH0sImRmIjp7ImV0IjoxNzk2OTE4Mzk5LCJydiI6dHJ1ZSwibWlzIjoyMTQ3NDgzNjQ2LCJtcG4iOjIxNDc0ODM2NDYsImllYyI6MH0sIndzZiI6eyJldCI6MTc5NjkxODM5OSwiaG4iOjIxNDc0ODM2NDZ9fSwidWQiOjE3OTY5MTgzOTksImF0IjoxNzY1MzY1MTU0LCJlIjoiZGV2ZWxvcGVyQHVuaXZlci5haSIsImQiOjgsIm4iOjI0MX0=-46biaPbfKBh2OMSrCX8kid0NUgDIDV5ojTSYs7BKJgKnjnrY1v669bpzHHt56BBwliQCZoCRgJk4y7T8MEDuDA==-1796918399','viewHost.baseUrl','UNIVER_HOST','parse','3970575CLUHHs','keys','protocol','Expected\x20a\x20non-empty\x20string\x20without\x20surrounding\x20whitespace.','trim','dispose','424626arEGee','join','https:','sheetOrder','isArray','enableAutoConnect','\x20characters)','push','replaceAll','view-host','non-empty-string','port','registerPlugin','stringify','mutations','experimental.sac','config','env','update','Expected\x20an\x20absolute\x20HTTP\x20or\x20HTTPS\x20URL.','viewHost.open','cellData','checkOnStartup','univerRuntime','\x20})();','15eNLebz','univerRuntime.license','isFinite','message','false','config.json','filter','98758zpAJMh','code','http:','runtimeConfig','baseUrl','viewHost','object','get','Unsupported\x20protocol','true','USER_CONFIG_VALIDATION_ERROR','name','__getInjector','UNIVER_VIEW_HOST_PORT','read'];_0xa766=function(){return _0x57e5f1;};return _0xa766();}function Xe(_0x312f07){const _0xb6eee3=_0x3ed866;let _0x16ff9c=_0x312f07[_0xb6eee3(0x1c8)]?.[0x0];if(!_0x16ff9c)return'';let _0x3834e9=_0x312f07[_0xb6eee3(0x1a0)]?.[_0x16ff9c];if(!_0x3834e9?.[_0xb6eee3(0x1da)])return'';let _0x408f57=Object['keys'](_0x3834e9[_0xb6eee3(0x1da)])[_0xb6eee3(0x1a7)](Number)[_0xb6eee3(0x1e4)](Number[_0xb6eee3(0x1e0)])[_0xb6eee3(0x17a)]((_0x23cb0e,_0x1c4052)=>_0x23cb0e-_0x1c4052),_0x49cb92=[];for(let _0x275553 of _0x408f57){let _0x2e793e=_0x3834e9[_0xb6eee3(0x1da)][_0x275553];if(!_0x2e793e)continue;let _0x176879=Object[_0xb6eee3(0x1c0)](_0x2e793e)['map'](Number)[_0xb6eee3(0x1e4)](Number[_0xb6eee3(0x1e0)])[_0xb6eee3(0x17a)]((_0x321db3,_0x6f4d2)=>_0x321db3-_0x6f4d2),_0x1c2488=[];for(let _0x433b42 of _0x176879){let _0x5eb1c2=_0x2e793e[_0x433b42];_0x1c2488[_0x433b42]=Qe(Ze(_0x5eb1c2));}_0x49cb92[_0xb6eee3(0x1cc)](_0x1c2488['map'](_0x57a02d=>_0x57a02d??'')[_0xb6eee3(0x1c6)](','));}return _0x49cb92['join']('\x0a');}function Ze(_0x3044a7){const _0x3229e7=_0x3ed866;if(!_0x3044a7||typeof _0x3044a7!='object')return'';let _0x40283c=_0x3044a7;return typeof _0x40283c['v']==_0x3229e7(0x1af)?_0x40283c['v']:typeof _0x40283c['v']==_0x3229e7(0x179)||typeof _0x40283c['v']==_0x3229e7(0x17f)?String(_0x40283c['v']):typeof _0x40283c['p']=='string'?_0x40283c['p']:'';}function Qe(_0x81cf5f){const _0x74b404=_0x3ed866;return/[",\n]/[_0x74b404(0x17c)](_0x81cf5f)?'\x22'+_0x81cf5f[_0x74b404(0x1cd)]('\x22','\x22\x22')+'\x22':_0x81cf5f;}function $e(_0x369d90={}){const _0x203af7=_0x3ed866;let _0x364dcf=_0x369d90['id']??'workbook-'+Date[_0x203af7(0x1a4)]()[_0x203af7(0x171)](0x24);return{'id':_0x364dcf,'name':_0x369d90[_0x203af7(0x167)]??_0x364dcf,'appVersion':He,'locale':Ue,'styles':{},'sheetOrder':[Z],'sheets':{[Z]:{'id':Z,'name':We,'rowCount':Ge,'columnCount':Q,'cellData':{}}},'resources':[]};}export{O as a,w as c,Ae as d,k as f,A as i,je as l,x as n,Me as o,b as r,M as s,qe as t,j as u};