@univer-cli/api-reference-command 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x2ea2a1,_0x5e731b){const _0x168ad3=_0x4642,_0x164038=_0x2ea2a1();while(!![]){try{const _0x265e01=-parseInt(_0x168ad3(0x18f))/0x1*(-parseInt(_0x168ad3(0x118))/0x2)+-parseInt(_0x168ad3(0x11f))/0x3*(parseInt(_0x168ad3(0x146))/0x4)+-parseInt(_0x168ad3(0x16f))/0x5*(parseInt(_0x168ad3(0x13a))/0x6)+parseInt(_0x168ad3(0x120))/0x7*(-parseInt(_0x168ad3(0x153))/0x8)+parseInt(_0x168ad3(0x165))/0x9*(parseInt(_0x168ad3(0x17f))/0xa)+parseInt(_0x168ad3(0x195))/0xb*(-parseInt(_0x168ad3(0x19b))/0xc)+parseInt(_0x168ad3(0x169))/0xd;if(_0x265e01===_0x5e731b)break;else _0x164038['push'](_0x164038['shift']());}catch(_0x3c4790){_0x164038['push'](_0x164038['shift']());}}}(_0x371f,0x8e93d));import{API_REFERENCE_UNITS as _0x381247}from'@univer-cli/api-reference';import{Command as _0x213ab2,Option as _0x1ec18d}from'commander';var r=0x48,i=0x5a;function a(_0x34e838){const _0x52790e=_0x4642;return(_0x34e838['match'](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x34e838)[_0x52790e(0x119)]();}function o(_0x1e2e3b,_0x1d8984){const _0x30c1af=_0x4642;return _0x1e2e3b[_0x30c1af(0x121)]>_0x1d8984?_0x1e2e3b[_0x30c1af(0x18e)](0x0,_0x1d8984-0x1)+'…':_0x1e2e3b;}function s(_0x300c6e){const _0x2e55ae=_0x4642;let _0x5e3569=_0x300c6e['summary']===''?'':_0x2e55ae(0x151)+a(_0x300c6e[_0x2e55ae(0x177)]);return'['+_0x300c6e[_0x2e55ae(0x17d)]+']\x20'+o(_0x300c6e[_0x2e55ae(0x164)],r)+o(_0x5e3569,i)+'\x20\x20['+_0x300c6e[_0x2e55ae(0x172)]+']';}function c(_0x63cb7b,_0x4adfb1){const _0x41a68f=_0x4642;if(_0x63cb7b[_0x41a68f(0x160)][_0x41a68f(0x121)]===0x0){let _0x331c2c=_0x4adfb1===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0x4adfb1+')';return _0x41a68f(0x13b)+_0x63cb7b[_0x41a68f(0x182)]+'\x22'+_0x331c2c+_0x41a68f(0x163)+(_0x4adfb1===void 0x0?'':_0x41a68f(0x175))+_0x41a68f(0x166);}let _0xa53f22=_0x63cb7b[_0x41a68f(0x160)][_0x41a68f(0x124)](s),_0x46ff92=_0x63cb7b[_0x41a68f(0x16e)]-_0x63cb7b['matches'][_0x41a68f(0x121)];return _0x46ff92>0x0&&_0xa53f22['push']('…\x20'+_0x46ff92+'\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.'),_0xa53f22[_0x41a68f(0x168)]('\x0a');}function l(_0x416b49,_0x5ec55b){const _0x3df903=_0x4642;return _0x416b49[_0x3df903(0x124)](_0x2be4c4=>{const _0x231c46=_0x3df903;let _0x54ea75=c(_0x2be4c4,_0x5ec55b);return _0x416b49['length']>0x1?_0x231c46(0x11b)+_0x2be4c4[_0x231c46(0x182)]+_0x231c46(0x174)+_0x54ea75:_0x54ea75;})[_0x3df903(0x168)]('\x0a\x0a');}function u(_0x486adc){const _0x462d7d=_0x4642;return _0x486adc[_0x462d7d(0x12f)](/\n\s*\n/u,0x1)[0x0]?.[_0x462d7d(0x119)]()??'';}function d(_0x585cf4){const _0x455d67=_0x4642;return _0x585cf4['documentation']===void 0x0?{'description':_0x585cf4[_0x455d67(0x177)],'tags':_0x585cf4[_0x455d67(0x14a)]===''?[]:[{'name':_0x455d67(0x14a),'text':_0x585cf4[_0x455d67(0x14a)]}]}:_0x585cf4[_0x455d67(0x130)];}function f(_0x557e2a){const _0x306590=_0x4642;return _0x557e2a[_0x306590(0x130)]??{'description':_0x557e2a[_0x306590(0x177)],'tags':[]};}function p(_0x14224c){const _0x3f2484=_0x4642;let _0xaa4f55=_0x14224c['type']===void 0x0?'':'\x20{'+_0x14224c[_0x3f2484(0x15f)]+'}',_0x36ae7b=_0x14224c[_0x3f2484(0x133)]===void 0x0?'':'\x20'+_0x14224c[_0x3f2484(0x133)],[_0x47a83e='',..._0xb8c175]=_0x14224c[_0x3f2484(0x149)]===''?[]:_0x14224c[_0x3f2484(0x149)][_0x3f2484(0x12f)]('\x0a');return _0x14224c['name']===_0x3f2484(0x14a)&&_0x47a83e['trimStart']()['startsWith'](_0x3f2484(0x15e))?['@'+_0x14224c[_0x3f2484(0x14d)]+_0xaa4f55+_0x36ae7b,_0x47a83e,..._0xb8c175]:['@'+_0x14224c['name']+_0xaa4f55+_0x36ae7b+(_0x47a83e===''?'':'\x20'+_0x47a83e),..._0xb8c175];}function m(_0x18bcd1,_0x2301b1='',_0x3fbfc1=!0x1){const _0x454fb2=_0x4642;if(_0x18bcd1===void 0x0)return[];let _0x21adb2=_0x3fbfc1?u(_0x18bcd1[_0x454fb2(0x12a)]):_0x18bcd1[_0x454fb2(0x12a)],_0x2cb847=_0x18bcd1['tags']['flatMap'](p),_0x47d853=[..._0x21adb2['split']('\x0a'),..._0x3fbfc1||_0x2cb847[_0x454fb2(0x121)]===0x0?[]:['',..._0x2cb847]];for(;_0x47d853['at'](-0x1)==='';)_0x47d853[_0x454fb2(0x19e)]();return _0x47d853[_0x454fb2(0x194)](_0x113ab5=>_0x113ab5==='')?[]:[_0x2301b1+_0x454fb2(0x157),..._0x47d853[_0x454fb2(0x124)](_0x3d8233=>_0x2301b1+'\x20*'+(_0x3d8233===''?'':'\x20'+_0x3d8233)),_0x2301b1+_0x454fb2(0x139)];}function h(_0x6c576e){const _0x403613=_0x4642;return''+((_0x6c576e['kind']===_0x403613(0x13e)||_0x6c576e[_0x403613(0x140)])&&!_0x6c576e[_0x403613(0x164)]['startsWith']('readonly\x20')?_0x403613(0x189):'')+_0x6c576e[_0x403613(0x164)]+';';}function g(_0x41d986){const _0x4d519a=_0x4642;let _0x66c23a=_0x41d986[_0x4d519a(0x177)][_0x4d519a(0x119)]();return[..._0x66c23a===''?[]:['\x20\x20/**\x20'+_0x66c23a[_0x4d519a(0x12b)]('*/','*\x5c/')+_0x4d519a(0x139)],'\x20\x20'+h(_0x41d986)];}function _(_0x12f3d1,_0x12e1d3,_0x33f01b,_0x544d6b){const _0x59e6f1=_0x4642;let _0xf398ae=_0x12e1d3===_0x59e6f1(0x18b)?[]:[_0x59e6f1(0x116)+(_0x12e1d3===_0x59e6f1(0x184)?_0x59e6f1(0x184):_0x59e6f1(0x192))+_0x59e6f1(0x193)+_0x12f3d1],_0x1696bd=_0x12e1d3===_0x59e6f1(0x18b)?_0x544d6b:_0x12e1d3==='inherited'?_0x59e6f1(0x14f)+_0x12f3d1:_0x59e6f1(0x15c)+_0x12f3d1;return[..._0xf398ae,_0x1696bd+'\x20{',..._0x33f01b[_0x59e6f1(0x123)](g),'}'];}function v(_0x5319a5){return typeof _0x5319a5=='number'?String(_0x5319a5):JSON['stringify'](_0x5319a5);}function y(_0x2dad01,_0x28e35d=!0x1){const _0x44b3c5=_0x4642;let _0x3ac9d5=_0x2dad01[_0x44b3c5(0x130)]??(_0x2dad01[_0x44b3c5(0x177)]===void 0x0?void 0x0:{'description':_0x2dad01['summary'],'tags':[]}),_0x124e12=_0x2dad01[_0x44b3c5(0x15f)][_0x44b3c5(0x11c)]('(')&&!_0x2dad01[_0x44b3c5(0x15f)][_0x44b3c5(0x171)]('=>')?'':':\x20',_0x4b26ca=_0x2dad01[_0x44b3c5(0x134)]??''+_0x2dad01[_0x44b3c5(0x14d)]+(_0x2dad01[_0x44b3c5(0x183)]?'?':'')+_0x124e12+_0x2dad01[_0x44b3c5(0x15f)];return[...m(_0x3ac9d5,'\x20\x20',!_0x28e35d),'\x20\x20'+_0x4b26ca+';'];}function b(_0x2ab379,_0xd0710=!0x1){const _0x4d82fc=_0x4642;let _0x1846fd=_0x2ab379[_0x4d82fc(0x127)]??[],_0x577f30=['//\x20package:\x20'+_0x2ab379[_0x4d82fc(0x172)]+(_0x1846fd['length']===0x0?'':_0x4d82fc(0x126)+_0x1846fd[_0x4d82fc(0x168)](',\x20')),...m(f(_0x2ab379))];if(_0x2ab379[_0x4d82fc(0x17d)]===_0x4d82fc(0x17b))return _0x577f30['push'](_0x4d82fc(0x167)+(_0x2ab379[_0x4d82fc(0x134)]??_0x2ab379['name'])+'\x20{',...(_0x2ab379[_0x4d82fc(0x18a)]??[])['map'](_0x2e45c8=>'\x20\x20'+_0x2e45c8['name']+_0x4d82fc(0x128)+v(_0x2e45c8[_0x4d82fc(0x18c)])+','),'}'),_0x577f30[_0x4d82fc(0x168)]('\x0a');if(_0x2ab379[_0x4d82fc(0x17d)]===_0x4d82fc(0x12e))return _0x577f30[_0x4d82fc(0x13f)](_0x4d82fc(0x143)+(_0x2ab379[_0x4d82fc(0x134)]??_0x2ab379[_0x4d82fc(0x14d)]+'\x20=\x20'+(_0x2ab379[_0x4d82fc(0x191)]??_0x4d82fc(0x180)))+';'),_0x577f30[_0x4d82fc(0x168)]('\x0a');let _0x470452=_0x2ab379[_0x4d82fc(0x176)]===void 0x0?'':_0x4d82fc(0x115)+_0x2ab379['extends'];return _0x577f30[_0x4d82fc(0x13f)](_0x4d82fc(0x15c)+(_0x2ab379[_0x4d82fc(0x134)]??''+_0x2ab379['name']+_0x470452)+'\x20{',...(_0x2ab379[_0x4d82fc(0x170)]??[])[_0x4d82fc(0x123)](_0x249304=>y(_0x249304,_0xd0710)),...(_0x2ab379[_0x4d82fc(0x181)]??[])[_0x4d82fc(0x124)](_0x2e2658=>'\x20\x20'+_0x2e2658+';'),'}'),_0x577f30[_0x4d82fc(0x168)]('\x0a');}function x(_0x17ab58){const _0x23f01d=_0x4642;return _0x17ab58[_0x23f01d(0x121)]===0x0?[]:['',_0x23f01d(0x198),..._0x17ab58[_0x23f01d(0x123)]((_0x16988d,_0x4eaacb)=>[..._0x4eaacb===0x0?[]:[''],b(_0x16988d)])];}function S(_0x4b0802){const _0x15b942=_0x4642;if(_0x4b0802[_0x15b942(0x154)]===_0x15b942(0x137))return'';if(_0x4b0802['kind']===_0x15b942(0x135)){let _0x5b1795=_0x4b0802[_0x15b942(0x117)][_0x15b942(0x15b)]((_0x2c2c4b,_0x325248)=>_0x2c2c4b+_0x325248['members'][_0x15b942(0x121)],0x0),_0x36d910=_0x4b0802[_0x15b942(0x117)][_0x15b942(0x15a)](_0x180ed7=>_0x180ed7['relation']===_0x15b942(0x18b)),_0x4c5748=_0x4b0802[_0x15b942(0x141)]===_0x15b942(0x135)?_0x15b942(0x14f)+_0x4b0802['declaration']:_0x15b942(0x143)+_0x4b0802['declaration'],_0x21d419=['//\x20package:\x20'+_0x4b0802[_0x15b942(0x172)]+';\x20'+_0x5b1795+_0x15b942(0x199),...m(_0x4b0802[_0x15b942(0x130)])];_0x4b0802[_0x15b942(0x141)]==='alias'?(_0x21d419[_0x15b942(0x13f)](_0x4c5748+';'),_0x36d910!==void 0x0&&_0x21d419[_0x15b942(0x13f)]('',..._(_0x36d910[_0x15b942(0x19a)],_0x15b942(0x18b),_0x36d910['members'],_0x15b942(0x15c)+_0x36d910[_0x15b942(0x19a)]))):_0x21d419['push'](..._(_0x4b0802[_0x15b942(0x14d)],_0x15b942(0x18b),_0x36d910?.[_0x15b942(0x170)]??[],_0x4c5748));for(let _0x50dddf of _0x4b0802[_0x15b942(0x117)][_0x15b942(0x150)](_0x42cf1f=>_0x42cf1f[_0x15b942(0x138)]!==_0x15b942(0x18b)))_0x21d419[_0x15b942(0x13f)]('',..._(_0x50dddf['owner'],_0x50dddf[_0x15b942(0x138)],_0x50dddf[_0x15b942(0x170)],_0x4c5748));return _0x21d419[_0x15b942(0x13f)]('',_0x15b942(0x161)+_0x4b0802[_0x15b942(0x14d)]+_0x15b942(0x125)),_0x21d419[_0x15b942(0x168)]('\x0a');}if(_0x4b0802[_0x15b942(0x17d)]===_0x15b942(0x152)){let [_0x4c2f60]=_0x4b0802[_0x15b942(0x16b)];if(_0x4c2f60===void 0x0)return'';let _0x59ded5=_0x4c2f60[_0x15b942(0x138)]===_0x15b942(0x18b)?[]:[_0x15b942(0x116)+_0x4c2f60['relation']+_0x15b942(0x15d)+_0x4c2f60[_0x15b942(0x19c)]];return[_0x15b942(0x14b)+_0x4c2f60[_0x15b942(0x152)][_0x15b942(0x172)],..._0x59ded5,'declare\x20class\x20'+_0x4b0802['target']+'\x20{',..._0x4b0802[_0x15b942(0x16b)]['flatMap'](_0x3bcd28=>[...m(d(_0x3bcd28[_0x15b942(0x152)]),'\x20\x20'),'\x20\x20'+h(_0x3bcd28[_0x15b942(0x152)])]),'}',...x([...new Map(_0x4b0802[_0x15b942(0x16b)][_0x15b942(0x123)](_0x293b38=>_0x293b38[_0x15b942(0x11a)])[_0x15b942(0x124)](_0xe37289=>[_0xe37289[_0x15b942(0x14d)],_0xe37289]))[_0x15b942(0x18a)]()])][_0x15b942(0x168)]('\x0a');}return _0x4b0802[_0x15b942(0x17d)]==='type'?[b(_0x4b0802[_0x15b942(0x15f)]),..._0x4b0802[_0x15b942(0x184)][_0x15b942(0x123)](_0x2a2ce1=>['','//\x20inherited\x20declaration\x20from\x20'+_0x2a2ce1['name'],b(_0x2a2ce1)]),...x(_0x4b0802['appendix'])][_0x15b942(0x168)]('\x0a'):_0x15b942(0x18c)in _0x4b0802[_0x15b942(0x152)]?_0x15b942(0x14b)+_0x4b0802['declaredBy'][_0x15b942(0x172)]+_0x15b942(0x11e)+_0x4b0802[_0x15b942(0x156)][_0x15b942(0x14d)]+_0x15b942(0x16a)+_0x4b0802[_0x15b942(0x152)]['name']+_0x15b942(0x128)+v(_0x4b0802['member'][_0x15b942(0x18c)])+',\x0a}':[_0x15b942(0x14b)+_0x4b0802['declaredBy'][_0x15b942(0x172)]+(_0x4b0802[_0x15b942(0x156)]['name']===_0x4b0802[_0x15b942(0x17c)]['name']?'':_0x15b942(0x12d)+_0x4b0802[_0x15b942(0x156)][_0x15b942(0x14d)]),_0x15b942(0x15c)+_0x4b0802['requestedType'][_0x15b942(0x14d)]+'\x20{',...y(_0x4b0802['member'],!0x0),'}',...x(_0x4b0802['appendix'])][_0x15b942(0x168)]('\x0a');}function C(_0x1c0c7e){const _0x1acc88=_0x4642;let _0x86d6c2=_0x1c0c7e[_0x1acc88(0x185)][_0x1acc88(0x121)]===0x0?'':_0x1acc88(0x16d)+(_0x1c0c7e[_0x1acc88(0x17d)]===_0x1acc88(0x152)?_0x1acc88(0x122):_0x1acc88(0x197))+':\x20'+_0x1c0c7e[_0x1acc88(0x185)][_0x1acc88(0x168)](',\x20');return _0x1c0c7e['kind']===_0x1acc88(0x152)?(_0x1c0c7e[_0x1acc88(0x19a)]??'Symbol')+_0x1acc88(0x11d)+(_0x1c0c7e[_0x1acc88(0x152)]??'member')+_0x86d6c2+_0x1acc88(0x13d)+(_0x1c0c7e['owner']??_0x1acc88(0x19d)):'Unknown\x20symbol:\x20'+_0x1c0c7e['query']+_0x86d6c2+_0x1acc88(0x147);}function _0x371f(){const _0x587fdd=['.<member>',';\x20runtime\x20aliases:\x20','aliases','\x20=\x20','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','description','replaceAll','addOption',';\x20inherited\x20from\x20','alias','split','documentation','<terms...>','choices','subject','declaration','class','show','not-found','relation','\x20*/','3498Yalppk','No\x20API\x20matches\x20\x22','configureOutput','\x0a\x20\x20List\x20all:\x20api\x20show\x20','getter','push','readonly','declarationKind','outputHelp','type\x20','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','action','120xIPzdF','\x0a\x20\x20If\x20unsure,\x20api\x20find\x20<keyword>\x20to\x20search\x20indexed\x20API\x20symbols,\x20or\x20api\x20show\x20<class\x20alias:\x20range/slide/document/presentation/api>\x20to\x20browse\x20a\x20whole\x20class.','[symbols...]','text','example','//\x20package:\x20','argument','name','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','declare\x20class\x20','filter','\x20\x20—\x20','member','32TYOhJM','status','//\x20batch:\x20','declaredBy','/**','one\x20or\x20more\x20exact\x20API\x20symbols','writeOut','find','reduce','interface\x20','\x20from\x20','```','type','matches','//\x20full\x20member\x20docs:\x20api\x20show\x20','//\x20[found]\x20','.\x20Try\x20a\x20shorter\x20substring','signature','36KdKpHk',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','declare\x20enum\x20','join','21306402qmCzwk','\x20{\x0a\x20\x20','entries','command','\x0a\x20\x20Similar\x20','totalMatches','7925NFzxVH','members','includes','packageName','\x0a\x0a//\x20batch:\x20','\x20══\x0a',',\x20drop\x20--unit','extends','summary','//\x20[not-found]\x20','api.reference.not-found','<symbols...>','enum','requestedType','kind','\x20found,\x20','192620HIMUea','unknown','signatures','term','optional','inherited','suggestions','error','api','reference','readonly\x20','values','own','value','unit','slice','1fZjLBr','query','definition','composed','\x20member\x20projection\x20from\x20','every','8564149kajLsG','found','symbols','//\x20directly\x20referenced\x20types','\x20supported\x20members','owner','12AliQNW','relationOwner','<Class>','pop','\x20extends\x20','//\x20','groups','1636078xGyGCX','trim','appendix','══\x20','startsWith','\x20has\x20no\x20','\x0adeclare\x20enum\x20','14745VcjgpA','174965CmIlKO','length','methods','flatMap','map'];_0x371f=function(){return _0x587fdd;};return _0x371f();}function _0x4642(_0x225a31,_0x33dfe7){_0x225a31=_0x225a31-0x115;const _0x371fb6=_0x371f();let _0x464275=_0x371fb6[_0x225a31];return _0x464275;}function w(_0xea3d05,_0x3d530a){const _0x476b08=_0x4642;let _0x160a9d=_0xea3d05[_0x476b08(0x13c)](),_0x4ef665=_0x3d530a['filter'](_0x5288ac=>_0x5288ac[_0x476b08(0x154)]===_0x476b08(0x196)),_0x445677=_0x3d530a[_0x476b08(0x150)](_0x55d578=>_0x55d578[_0x476b08(0x154)]==='not-found'),_0x1b439c=_0x3d530a[_0x476b08(0x121)]>0x1;_0x4ef665['length']>0x0&&_0x160a9d[_0x476b08(0x159)]?.(''+_0x4ef665[_0x476b08(0x124)](_0x5c092e=>_0x1b439c?_0x476b08(0x162)+_0x5c092e[_0x476b08(0x190)]+'\x0a'+S(_0x5c092e):S(_0x5c092e))['join']('\x0a\x0a')+(_0x1b439c&&_0x445677[_0x476b08(0x121)]===0x0?_0x476b08(0x173)+_0x4ef665[_0x476b08(0x121)]+'\x20found,\x200\x20not\x20found':'')+'\x0a'),_0x445677[_0x476b08(0x121)]>0x0&&_0xea3d05[_0x476b08(0x186)]([..._0x445677[_0x476b08(0x124)](_0x5becf6=>_0x1b439c?_0x476b08(0x178)+_0x5becf6['query']+'\x0a'+C(_0x5becf6):C(_0x5becf6)),..._0x1b439c?[_0x476b08(0x155)+_0x4ef665[_0x476b08(0x121)]+_0x476b08(0x17e)+_0x445677['length']+'\x20not\x20found']:[]][_0x476b08(0x168)]('\x0a\x0a'),{'code':_0x476b08(0x179),'exitCode':0x1});}function T(_0x139f72){const _0x42afa7=_0x4642;let _0x4e2e9c=new _0x213ab2(_0x42afa7(0x187))['description']('Offline\x20Univer\x20Facade\x20API\x20reference')[_0x42afa7(0x14c)](_0x42afa7(0x148),_0x42afa7(0x129))[_0x42afa7(0x145)](_0x231978=>{const _0x3a6f72=_0x42afa7;if(_0x231978[_0x3a6f72(0x121)]===0x0){_0x4e2e9c[_0x3a6f72(0x142)]();return;}w(_0x4e2e9c,_0x139f72['reference'][_0x3a6f72(0x136)](_0x231978));});return _0x4e2e9c[_0x42afa7(0x16c)](_0x42afa7(0x15a))[_0x42afa7(0x12a)](_0x42afa7(0x14e))[_0x42afa7(0x14c)](_0x42afa7(0x131),'one\x20or\x20more\x20terms,\x20searched\x20independently')[_0x42afa7(0x12c)](new _0x1ec18d('--unit\x20<unit>',_0x42afa7(0x144))[_0x42afa7(0x132)](_0x381247))['action']((_0x4fc5aa,_0x282c27)=>{const _0x3776df=_0x42afa7;let _0x12f3b2=_0x139f72[_0x3776df(0x188)][_0x3776df(0x15a)]({'terms':_0x4fc5aa,..._0x282c27['unit']===void 0x0?{}:{'unit':_0x282c27[_0x3776df(0x18d)]}});_0x4e2e9c[_0x3776df(0x13c)]()[_0x3776df(0x159)]?.(l(_0x12f3b2,_0x282c27[_0x3776df(0x18d)])+'\x0a');}),_0x4e2e9c['command'](_0x42afa7(0x136))[_0x42afa7(0x12a)]('Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values')[_0x42afa7(0x14c)](_0x42afa7(0x17a),_0x42afa7(0x158))[_0x42afa7(0x145)](_0xcd8c87=>{const _0x40f089=_0x42afa7;w(_0x4e2e9c,_0x139f72[_0x40f089(0x188)][_0x40f089(0x136)](_0xcd8c87));}),_0x4e2e9c;}export{T as createApiCommand};
1
+ function _0x1abd(){const _0x249fa6=['readonly','own','packageName','one\x20or\x20more\x20exact\x20API\x20symbols','declaredBy','<terms...>','argument','query','one\x20or\x20more\x20terms,\x20searched\x20independently','unknown','requestedType','slice','declare\x20class\x20','tags','4kgMrJO','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','aliases','extends','every','match','members','\x0a\x20\x20Similar\x20','command','writeOut','entries','found','\x20found,\x20','210043WYOwpV','values','flatMap','\x20(filtered\x20by\x20--unit\x20','//\x20[found]\x20','groups','configureOutput','type\x20','trimStart','.\x20Try\x20a\x20shorter\x20substring','387bcuaRP','split','//\x20package:\x20','status','find','length','unit','pop','324126Upntxr','name','.<member>','Offline\x20Univer\x20Facade\x20API\x20reference','push','matches','relationOwner','/**','\x20\x20—\x20','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','//\x20','declarationKind','error','1051760erASZK','composed','class','description','suggestions','signature','59900BErJHk','declaration','type','methods','268952ihagFV','trim','<symbols...>','alias','documentation','\x0a\x20\x20If\x20unsure,\x20api\x20find\x20<keyword>\x20to\x20search\x20indexed\x20API\x20symbols,\x20or\x20api\x20show\x20<class\x20alias:\x20range/slide/document/presentation/api>\x20to\x20browse\x20a\x20whole\x20class.','relation','\x20found,\x200\x20not\x20found','totalMatches','\x20══\x0a','getter','startsWith','Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values','\x20has\x20no\x20',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','inherited','owner','\x20\x20/**\x20',',\x0a}','```','signatures','outputHelp','enum','43962bSSmgb','\x20member\x20projection\x20from\x20','number','378693YVEHTN','\x20supported\x20members','api.reference.not-found','interface\x20','subject','join','kind','reference','optional','choices','\x20\x20[','text',';\x20inherited\x20from\x20','summary','example','<Class>','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','action','\x0a\x0a//\x20batch:\x20','includes','show','readonly\x20','[symbols...]','appendix','42QLoIKD','\x20*/','term','map','//\x20directly\x20referenced\x20types','\x20=\x20','value','definition','filter','\x20from\x20','target','//\x20batch:\x20','member','api','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','//\x20inherited\x20declaration\x20from\x20'];_0x1abd=function(){return _0x249fa6;};return _0x1abd();}(function(_0x3b45a4,_0x548636){const _0x45de51=_0x375f,_0x17b293=_0x3b45a4();while(!![]){try{const _0x277a08=parseInt(_0x45de51(0x1c4))/0x1+-parseInt(_0x45de51(0x17e))/0x2+-parseInt(_0x45de51(0x181))/0x3*(parseInt(_0x45de51(0x1b7))/0x4)+parseInt(_0x45de51(0x1e3))/0x5+-parseInt(_0x45de51(0x1d6))/0x6+parseInt(_0x45de51(0x199))/0x7*(parseInt(_0x45de51(0x1ed))/0x8)+-parseInt(_0x45de51(0x1ce))/0x9*(parseInt(_0x45de51(0x1e9))/0xa);if(_0x277a08===_0x548636)break;else _0x17b293['push'](_0x17b293['shift']());}catch(_0x458c23){_0x17b293['push'](_0x17b293['shift']());}}}(_0x1abd,0x27a02));import{API_REFERENCE_UNITS as _0x280c3e}from'@univer-cli/api-reference';import{Command as _0x570c46,Option as _0x5306cf}from'commander';var r=0x48,i=0x5a;function a(_0x5758d4){const _0x201347=_0x375f;return(_0x5758d4[_0x201347(0x1bc)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x5758d4)['trim']();}function _0x375f(_0x40c9e6,_0x1d2bdb){_0x40c9e6=_0x40c9e6-0x16d;const _0x1abdd2=_0x1abd();let _0x375fd2=_0x1abdd2[_0x40c9e6];return _0x375fd2;}function o(_0x102e6c,_0x4b19b6){const _0x150911=_0x375f;return _0x102e6c[_0x150911(0x1d3)]>_0x4b19b6?_0x102e6c[_0x150911(0x1b4)](0x0,_0x4b19b6-0x1)+'…':_0x102e6c;}function s(_0x4f8427){const _0x33c43d=_0x375f;let _0x498bbc=_0x4f8427['summary']===''?'':_0x33c43d(0x1de)+a(_0x4f8427[_0x33c43d(0x18e)]);return'['+_0x4f8427[_0x33c43d(0x187)]+']\x20'+o(_0x4f8427['signature'],r)+o(_0x498bbc,i)+_0x33c43d(0x18b)+_0x4f8427['packageName']+']';}function c(_0x44d5fd,_0x53b363){const _0x4399a2=_0x375f;if(_0x44d5fd[_0x4399a2(0x1db)][_0x4399a2(0x1d3)]===0x0){let _0x24a4cf=_0x53b363===void 0x0?'':_0x4399a2(0x1c7)+_0x53b363+')';return'No\x20API\x20matches\x20\x22'+_0x44d5fd[_0x4399a2(0x19b)]+'\x22'+_0x24a4cf+_0x4399a2(0x1cd)+(_0x53b363===void 0x0?'':',\x20drop\x20--unit')+_0x4399a2(0x175);}let _0x33d63e=_0x44d5fd[_0x4399a2(0x1db)]['map'](s),_0x13e876=_0x44d5fd[_0x4399a2(0x16f)]-_0x44d5fd[_0x4399a2(0x1db)][_0x4399a2(0x1d3)];return _0x13e876>0x0&&_0x33d63e[_0x4399a2(0x1da)]('…\x20'+_0x13e876+_0x4399a2(0x1b8)),_0x33d63e[_0x4399a2(0x186)]('\x0a');}function l(_0x5072e3,_0x13c6d0){const _0x320f7c=_0x375f;return _0x5072e3[_0x320f7c(0x19c)](_0x47e3b9=>{const _0x12aca8=_0x320f7c;let _0x1e9eb1=c(_0x47e3b9,_0x13c6d0);return _0x5072e3[_0x12aca8(0x1d3)]>0x1?'══\x20'+_0x47e3b9[_0x12aca8(0x19b)]+_0x12aca8(0x170)+_0x1e9eb1:_0x1e9eb1;})[_0x320f7c(0x186)]('\x0a\x0a');}function u(_0x45e249){const _0x5dc48a=_0x375f;return _0x45e249[_0x5dc48a(0x1cf)](/\n\s*\n/u,0x1)[0x0]?.['trim']()??'';}function d(_0x57abd9){const _0x46f99a=_0x375f;return _0x57abd9[_0x46f99a(0x1f1)]===void 0x0?{'description':_0x57abd9[_0x46f99a(0x18e)],'tags':_0x57abd9['example']===''?[]:[{'name':_0x46f99a(0x18f),'text':_0x57abd9['example']}]}:_0x57abd9[_0x46f99a(0x1f1)];}function f(_0xa7101a){const _0x179ff0=_0x375f;return _0xa7101a[_0x179ff0(0x1f1)]??{'description':_0xa7101a[_0x179ff0(0x18e)],'tags':[]};}function p(_0x217ab8){const _0x4afb22=_0x375f;let _0x253b92=_0x217ab8['type']===void 0x0?'':'\x20{'+_0x217ab8[_0x4afb22(0x1eb)]+'}',_0x403fa1=_0x217ab8['subject']===void 0x0?'':'\x20'+_0x217ab8[_0x4afb22(0x185)],[_0x65a929='',..._0x38fdae]=_0x217ab8[_0x4afb22(0x18c)]===''?[]:_0x217ab8[_0x4afb22(0x18c)]['split']('\x0a');return _0x217ab8['name']==='example'&&_0x65a929[_0x4afb22(0x1cc)]()[_0x4afb22(0x172)](_0x4afb22(0x17a))?['@'+_0x217ab8[_0x4afb22(0x1d7)]+_0x253b92+_0x403fa1,_0x65a929,..._0x38fdae]:['@'+_0x217ab8[_0x4afb22(0x1d7)]+_0x253b92+_0x403fa1+(_0x65a929===''?'':'\x20'+_0x65a929),..._0x38fdae];}function m(_0x222544,_0x9a96ba='',_0x4c3e99=!0x1){const _0x14b7e1=_0x375f;if(_0x222544===void 0x0)return[];let _0xfd41d7=_0x4c3e99?u(_0x222544['description']):_0x222544[_0x14b7e1(0x1e6)],_0x341a8e=_0x222544[_0x14b7e1(0x1b6)][_0x14b7e1(0x1c6)](p),_0x917e76=[..._0xfd41d7[_0x14b7e1(0x1cf)]('\x0a'),..._0x4c3e99||_0x341a8e[_0x14b7e1(0x1d3)]===0x0?[]:['',..._0x341a8e]];for(;_0x917e76['at'](-0x1)==='';)_0x917e76[_0x14b7e1(0x1d5)]();return _0x917e76[_0x14b7e1(0x1bb)](_0x33e075=>_0x33e075==='')?[]:[_0x9a96ba+_0x14b7e1(0x1dd),..._0x917e76[_0x14b7e1(0x19c)](_0xe4c72=>_0x9a96ba+'\x20*'+(_0xe4c72===''?'':'\x20'+_0xe4c72)),_0x9a96ba+_0x14b7e1(0x19a)];}function h(_0x241e82){const _0x403259=_0x375f;return''+((_0x241e82[_0x403259(0x187)]===_0x403259(0x171)||_0x241e82[_0x403259(0x1a9)])&&!_0x241e82[_0x403259(0x1e8)][_0x403259(0x172)](_0x403259(0x196))?_0x403259(0x196):'')+_0x241e82['signature']+';';}function g(_0x463ae3){const _0x2506cd=_0x375f;let _0xab5851=_0x463ae3[_0x2506cd(0x18e)][_0x2506cd(0x1ee)]();return[..._0xab5851===''?[]:[_0x2506cd(0x178)+_0xab5851['replaceAll']('*/','*\x5c/')+_0x2506cd(0x19a)],'\x20\x20'+h(_0x463ae3)];}function _(_0x372f4c,_0x22a326,_0x501392,_0x279d7e){const _0x42365f=_0x375f;let _0x5d3e0a=_0x22a326===_0x42365f(0x1aa)?[]:['//\x20'+(_0x22a326===_0x42365f(0x176)?_0x42365f(0x176):_0x42365f(0x1e4))+_0x42365f(0x17f)+_0x372f4c],_0xe17bbb=_0x22a326===_0x42365f(0x1aa)?_0x279d7e:_0x22a326===_0x42365f(0x176)?_0x42365f(0x1b5)+_0x372f4c:_0x42365f(0x184)+_0x372f4c;return[..._0x5d3e0a,_0xe17bbb+'\x20{',..._0x501392[_0x42365f(0x1c6)](g),'}'];}function v(_0x4a880b){const _0x1813c4=_0x375f;return typeof _0x4a880b==_0x1813c4(0x180)?String(_0x4a880b):JSON['stringify'](_0x4a880b);}function y(_0x2daf65,_0x59212c=!0x1){const _0x1e8eb2=_0x375f;let _0x1ef159=_0x2daf65[_0x1e8eb2(0x1f1)]??(_0x2daf65['summary']===void 0x0?void 0x0:{'description':_0x2daf65[_0x1e8eb2(0x18e)],'tags':[]}),_0x3556b4=_0x2daf65[_0x1e8eb2(0x1eb)]['startsWith']('(')&&!_0x2daf65[_0x1e8eb2(0x1eb)][_0x1e8eb2(0x194)]('=>')?'':':\x20',_0x4c4c3a=_0x2daf65[_0x1e8eb2(0x1ea)]??''+_0x2daf65[_0x1e8eb2(0x1d7)]+(_0x2daf65[_0x1e8eb2(0x189)]?'?':'')+_0x3556b4+_0x2daf65[_0x1e8eb2(0x1eb)];return[...m(_0x1ef159,'\x20\x20',!_0x59212c),'\x20\x20'+_0x4c4c3a+';'];}function b(_0x1c4dde,_0x2126d9=!0x1){const _0x5f02b6=_0x375f;let _0x3970a7=_0x1c4dde[_0x5f02b6(0x1b9)]??[],_0x5d839c=['//\x20package:\x20'+_0x1c4dde[_0x5f02b6(0x1ab)]+(_0x3970a7[_0x5f02b6(0x1d3)]===0x0?'':';\x20runtime\x20aliases:\x20'+_0x3970a7[_0x5f02b6(0x186)](',\x20')),...m(f(_0x1c4dde))];if(_0x1c4dde[_0x5f02b6(0x187)]===_0x5f02b6(0x17d))return _0x5d839c[_0x5f02b6(0x1da)]('declare\x20enum\x20'+(_0x1c4dde[_0x5f02b6(0x1ea)]??_0x1c4dde[_0x5f02b6(0x1d7)])+'\x20{',...(_0x1c4dde[_0x5f02b6(0x1c5)]??[])[_0x5f02b6(0x19c)](_0x56c319=>'\x20\x20'+_0x56c319[_0x5f02b6(0x1d7)]+_0x5f02b6(0x19e)+v(_0x56c319['value'])+','),'}'),_0x5d839c[_0x5f02b6(0x186)]('\x0a');if(_0x1c4dde[_0x5f02b6(0x187)]===_0x5f02b6(0x1f0))return _0x5d839c['push'](_0x5f02b6(0x1cb)+(_0x1c4dde[_0x5f02b6(0x1ea)]??_0x1c4dde[_0x5f02b6(0x1d7)]+_0x5f02b6(0x19e)+(_0x1c4dde[_0x5f02b6(0x1a0)]??_0x5f02b6(0x1b2)))+';'),_0x5d839c['join']('\x0a');let _0x24a83e=_0x1c4dde[_0x5f02b6(0x1ba)]===void 0x0?'':'\x20extends\x20'+_0x1c4dde['extends'];return _0x5d839c[_0x5f02b6(0x1da)](_0x5f02b6(0x184)+(_0x1c4dde[_0x5f02b6(0x1ea)]??''+_0x1c4dde['name']+_0x24a83e)+'\x20{',...(_0x1c4dde[_0x5f02b6(0x1bd)]??[])[_0x5f02b6(0x1c6)](_0x2ab363=>y(_0x2ab363,_0x2126d9)),...(_0x1c4dde[_0x5f02b6(0x17b)]??[])[_0x5f02b6(0x19c)](_0x1e3f53=>'\x20\x20'+_0x1e3f53+';'),'}'),_0x5d839c[_0x5f02b6(0x186)]('\x0a');}function x(_0x45b32b){const _0x42bcde=_0x375f;return _0x45b32b[_0x42bcde(0x1d3)]===0x0?[]:['',_0x42bcde(0x19d),..._0x45b32b[_0x42bcde(0x1c6)]((_0x1f598d,_0x4bbc91)=>[..._0x4bbc91===0x0?[]:[''],b(_0x1f598d)])];}function S(_0x56046e){const _0x2a9063=_0x375f;if(_0x56046e['status']==='not-found')return'';if(_0x56046e[_0x2a9063(0x187)]===_0x2a9063(0x1e5)){let _0xd74d61=_0x56046e[_0x2a9063(0x1c9)]['reduce']((_0x1abacc,_0x5700fc)=>_0x1abacc+_0x5700fc['members'][_0x2a9063(0x1d3)],0x0),_0x4848c8=_0x56046e['groups'][_0x2a9063(0x1d2)](_0x1e4ae=>_0x1e4ae['relation']===_0x2a9063(0x1aa)),_0x3f7ef3=_0x56046e[_0x2a9063(0x1e1)]===_0x2a9063(0x1e5)?_0x2a9063(0x1b5)+_0x56046e[_0x2a9063(0x1ea)]:_0x2a9063(0x1cb)+_0x56046e[_0x2a9063(0x1ea)],_0x40d13b=[_0x2a9063(0x1d0)+_0x56046e['packageName']+';\x20'+_0xd74d61+_0x2a9063(0x182),...m(_0x56046e[_0x2a9063(0x1f1)])];_0x56046e['declarationKind']===_0x2a9063(0x1f0)?(_0x40d13b[_0x2a9063(0x1da)](_0x3f7ef3+';'),_0x4848c8!==void 0x0&&_0x40d13b['push']('',..._(_0x4848c8[_0x2a9063(0x177)],_0x2a9063(0x1aa),_0x4848c8[_0x2a9063(0x1bd)],'interface\x20'+_0x4848c8[_0x2a9063(0x177)]))):_0x40d13b[_0x2a9063(0x1da)](..._(_0x56046e[_0x2a9063(0x1d7)],_0x2a9063(0x1aa),_0x4848c8?.[_0x2a9063(0x1bd)]??[],_0x3f7ef3));for(let _0x1e8053 of _0x56046e[_0x2a9063(0x1c9)][_0x2a9063(0x1a1)](_0x7f9969=>_0x7f9969[_0x2a9063(0x16d)]!==_0x2a9063(0x1aa)))_0x40d13b['push']('',..._(_0x1e8053[_0x2a9063(0x177)],_0x1e8053[_0x2a9063(0x16d)],_0x1e8053[_0x2a9063(0x1bd)],_0x3f7ef3));return _0x40d13b[_0x2a9063(0x1da)]('','//\x20full\x20member\x20docs:\x20api\x20show\x20'+_0x56046e[_0x2a9063(0x1d7)]+_0x2a9063(0x1d8)),_0x40d13b[_0x2a9063(0x186)]('\x0a');}if(_0x56046e['kind']===_0x2a9063(0x1a5)){let [_0x1e5c7a]=_0x56046e[_0x2a9063(0x1c1)];if(_0x1e5c7a===void 0x0)return'';let _0x488cd3=_0x1e5c7a['relation']===_0x2a9063(0x1aa)?[]:[_0x2a9063(0x1e0)+_0x1e5c7a[_0x2a9063(0x16d)]+_0x2a9063(0x1a2)+_0x1e5c7a[_0x2a9063(0x1dc)]];return[_0x2a9063(0x1d0)+_0x1e5c7a[_0x2a9063(0x1a5)][_0x2a9063(0x1ab)],..._0x488cd3,_0x2a9063(0x1b5)+_0x56046e[_0x2a9063(0x1a3)]+'\x20{',..._0x56046e[_0x2a9063(0x1c1)]['flatMap'](_0x178abe=>[...m(d(_0x178abe[_0x2a9063(0x1a5)]),'\x20\x20'),'\x20\x20'+h(_0x178abe[_0x2a9063(0x1a5)])]),'}',...x([...new Map(_0x56046e[_0x2a9063(0x1c1)][_0x2a9063(0x1c6)](_0x5e22cc=>_0x5e22cc[_0x2a9063(0x198)])[_0x2a9063(0x19c)](_0x8939b0=>[_0x8939b0[_0x2a9063(0x1d7)],_0x8939b0]))[_0x2a9063(0x1c5)]()])][_0x2a9063(0x186)]('\x0a');}return _0x56046e[_0x2a9063(0x187)]==='type'?[b(_0x56046e[_0x2a9063(0x1eb)]),..._0x56046e['inherited'][_0x2a9063(0x1c6)](_0x124bc9=>['',_0x2a9063(0x1a8)+_0x124bc9[_0x2a9063(0x1d7)],b(_0x124bc9)]),...x(_0x56046e['appendix'])][_0x2a9063(0x186)]('\x0a'):'value'in _0x56046e[_0x2a9063(0x1a5)]?_0x2a9063(0x1d0)+_0x56046e[_0x2a9063(0x1ad)][_0x2a9063(0x1ab)]+'\x0adeclare\x20enum\x20'+_0x56046e[_0x2a9063(0x1ad)]['name']+'\x20{\x0a\x20\x20'+_0x56046e['member'][_0x2a9063(0x1d7)]+_0x2a9063(0x19e)+v(_0x56046e[_0x2a9063(0x1a5)][_0x2a9063(0x19f)])+_0x2a9063(0x179):[_0x2a9063(0x1d0)+_0x56046e[_0x2a9063(0x1ad)][_0x2a9063(0x1ab)]+(_0x56046e[_0x2a9063(0x1ad)][_0x2a9063(0x1d7)]===_0x56046e[_0x2a9063(0x1b3)][_0x2a9063(0x1d7)]?'':_0x2a9063(0x18d)+_0x56046e[_0x2a9063(0x1ad)]['name']),_0x2a9063(0x184)+_0x56046e['requestedType'][_0x2a9063(0x1d7)]+'\x20{',...y(_0x56046e['member'],!0x0),'}',...x(_0x56046e[_0x2a9063(0x198)])]['join']('\x0a');}function C(_0x1aa7fc){const _0xc521db=_0x375f;let _0x2be2e9=_0x1aa7fc[_0xc521db(0x1e7)]['length']===0x0?'':_0xc521db(0x1be)+(_0x1aa7fc['kind']==='member'?_0xc521db(0x1ec):'symbols')+':\x20'+_0x1aa7fc[_0xc521db(0x1e7)][_0xc521db(0x186)](',\x20');return _0x1aa7fc[_0xc521db(0x187)]===_0xc521db(0x1a5)?(_0x1aa7fc[_0xc521db(0x177)]??'Symbol')+_0xc521db(0x174)+(_0x1aa7fc[_0xc521db(0x1a5)]??_0xc521db(0x1a5))+_0x2be2e9+'\x0a\x20\x20List\x20all:\x20api\x20show\x20'+(_0x1aa7fc[_0xc521db(0x177)]??_0xc521db(0x190)):'Unknown\x20symbol:\x20'+_0x1aa7fc[_0xc521db(0x1b0)]+_0x2be2e9+_0xc521db(0x1f2);}function w(_0x5cd9ab,_0x4250a9){const _0x3842c5=_0x375f;let _0x19adc8=_0x5cd9ab['configureOutput'](),_0x442dc7=_0x4250a9[_0x3842c5(0x1a1)](_0x47a741=>_0x47a741[_0x3842c5(0x1d1)]===_0x3842c5(0x1c2)),_0x2163dd=_0x4250a9[_0x3842c5(0x1a1)](_0x363ce1=>_0x363ce1[_0x3842c5(0x1d1)]==='not-found'),_0x103ffe=_0x4250a9[_0x3842c5(0x1d3)]>0x1;_0x442dc7['length']>0x0&&_0x19adc8[_0x3842c5(0x1c0)]?.(''+_0x442dc7[_0x3842c5(0x19c)](_0x181707=>_0x103ffe?_0x3842c5(0x1c8)+_0x181707[_0x3842c5(0x1b0)]+'\x0a'+S(_0x181707):S(_0x181707))[_0x3842c5(0x186)]('\x0a\x0a')+(_0x103ffe&&_0x2163dd[_0x3842c5(0x1d3)]===0x0?_0x3842c5(0x193)+_0x442dc7[_0x3842c5(0x1d3)]+_0x3842c5(0x16e):'')+'\x0a'),_0x2163dd['length']>0x0&&_0x5cd9ab[_0x3842c5(0x1e2)]([..._0x2163dd[_0x3842c5(0x19c)](_0x45c924=>_0x103ffe?'//\x20[not-found]\x20'+_0x45c924[_0x3842c5(0x1b0)]+'\x0a'+C(_0x45c924):C(_0x45c924)),..._0x103ffe?[_0x3842c5(0x1a4)+_0x442dc7[_0x3842c5(0x1d3)]+_0x3842c5(0x1c3)+_0x2163dd['length']+'\x20not\x20found']:[]][_0x3842c5(0x186)]('\x0a\x0a'),{'code':_0x3842c5(0x183),'exitCode':0x1});}function T(_0xec2594){const _0x456ba1=_0x375f;let _0x5732d4=new _0x570c46(_0x456ba1(0x1a6))[_0x456ba1(0x1e6)](_0x456ba1(0x1d9))[_0x456ba1(0x1af)](_0x456ba1(0x197),_0x456ba1(0x1a7))[_0x456ba1(0x192)](_0x48f79c=>{const _0x20e891=_0x456ba1;if(_0x48f79c[_0x20e891(0x1d3)]===0x0){_0x5732d4[_0x20e891(0x17c)]();return;}w(_0x5732d4,_0xec2594[_0x20e891(0x188)][_0x20e891(0x195)](_0x48f79c));});return _0x5732d4[_0x456ba1(0x1bf)](_0x456ba1(0x1d2))[_0x456ba1(0x1e6)](_0x456ba1(0x191))[_0x456ba1(0x1af)](_0x456ba1(0x1ae),_0x456ba1(0x1b1))['addOption'](new _0x5306cf('--unit\x20<unit>',_0x456ba1(0x1df))[_0x456ba1(0x18a)](_0x280c3e))[_0x456ba1(0x192)]((_0x2e1a1b,_0x170626)=>{const _0x43553b=_0x456ba1;let _0x6b1b56=_0xec2594[_0x43553b(0x188)][_0x43553b(0x1d2)]({'terms':_0x2e1a1b,..._0x170626[_0x43553b(0x1d4)]===void 0x0?{}:{'unit':_0x170626[_0x43553b(0x1d4)]}});_0x5732d4[_0x43553b(0x1ca)]()[_0x43553b(0x1c0)]?.(l(_0x6b1b56,_0x170626['unit'])+'\x0a');}),_0x5732d4[_0x456ba1(0x1bf)](_0x456ba1(0x195))[_0x456ba1(0x1e6)](_0x456ba1(0x173))['argument'](_0x456ba1(0x1ef),_0x456ba1(0x1ac))[_0x456ba1(0x192)](_0x4b1320=>{const _0x48096b=_0x456ba1;w(_0x5732d4,_0xec2594[_0x48096b(0x188)][_0x48096b(0x195)](_0x4b1320));}),_0x5732d4;}export{T as createApiCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/api-reference-command",
3
3
  "type": "module",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/api-reference": "1.0.2"
21
+ "@univer-cli/api-reference": "1.0.4"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"