@univer-cli/resource-library-command 1.3.1 → 1.4.0

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(_0x495049,_0x5e8a71){const _0x39e895=_0x1f18,_0x424615=_0x495049();while(!![]){try{const _0x71a8d6=parseInt(_0x39e895(0x122))/0x1+parseInt(_0x39e895(0x109))/0x2+-parseInt(_0x39e895(0xec))/0x3+-parseInt(_0x39e895(0x10e))/0x4+parseInt(_0x39e895(0xf7))/0x5*(parseInt(_0x39e895(0xf0))/0x6)+parseInt(_0x39e895(0xca))/0x7+parseInt(_0x39e895(0xef))/0x8*(-parseInt(_0x39e895(0x112))/0x9);if(_0x71a8d6===_0x5e8a71)break;else _0x424615['push'](_0x424615['shift']());}catch(_0x196231){_0x424615['push'](_0x424615['shift']());}}}(_0x3dc5,0x97260));import{isResourceLibraryError as _0x4c64d5}from'@univer-cli/resource-library';import{Command as _0x1c04d0,InvalidArgumentError as _0x3a4b48,Option as _0x59c6cf}from'commander';var i=0x1e;function a(_0x482ff4){const _0x5ec4fc=_0x1f18;let _0x2d259e=new _0x1c04d0(_0x5ec4fc(0xde))[_0x5ec4fc(0xd5)](_0x5ec4fc(0x117))['action'](()=>_0x2d259e[_0x5ec4fc(0xcf)]());_0x2d259e[_0x5ec4fc(0x113)](_0x5ec4fc(0x124))['description']('List\x20available\x20resource\x20registries')[_0x5ec4fc(0xcb)](_0x5ec4fc(0xdb),'write\x20structured\x20JSON')[_0x5ec4fc(0xf8)](async _0x1f5213=>{const _0x543698=_0x5ec4fc;let _0x45d5d0=await c(_0x2d259e,async()=>_0x482ff4[_0x543698(0xd6)]()[_0x543698(0xd3)]());l(_0x2d259e,_0x1f5213,{'registries':_0x45d5d0},d(_0x45d5d0));}),_0x2d259e[_0x5ec4fc(0x113)]('find')[_0x5ec4fc(0xd5)](_0x5ec4fc(0x121))[_0x5ec4fc(0xd2)]('<queries...>',_0x5ec4fc(0xe5))[_0x5ec4fc(0x111)](new _0x59c6cf('--registry\x20<id>',_0x5ec4fc(0x103))['argParser'](o)[_0x5ec4fc(0xeb)]([]))[_0x5ec4fc(0x111)](new _0x59c6cf(_0x5ec4fc(0xd9),_0x5ec4fc(0xe0))[_0x5ec4fc(0x10a)](s)['default'](i))['option'](_0x5ec4fc(0xdb),_0x5ec4fc(0xf5))[_0x5ec4fc(0xf8)](async(_0x5bb4dc,_0x289a4d)=>{const _0x1bfec6=_0x5ec4fc;let _0x58f0de=await c(_0x2d259e,async()=>_0x482ff4['openLibrary']()[_0x1bfec6(0xd0)]({'queries':_0x5bb4dc,'registries':_0x289a4d['registry'],'limit':_0x289a4d[_0x1bfec6(0xfb)]}));l(_0x2d259e,_0x289a4d,{'query':{'queries':_0x5bb4dc,'registries':_0x289a4d[_0x1bfec6(0xe4)]},'resources':_0x58f0de['resources'],'total':_0x58f0de[_0x1bfec6(0x11c)],'limit':_0x289a4d[_0x1bfec6(0xfb)]},f(_0x58f0de[_0x1bfec6(0xde)],_0x58f0de['total']));}),_0x2d259e[_0x5ec4fc(0x113)](_0x5ec4fc(0x11a))[_0x5ec4fc(0xd5)](_0x5ec4fc(0x116))[_0x5ec4fc(0xd2)]('<handles...>',_0x5ec4fc(0xf9))['option']('--out\x20<directory>',_0x5ec4fc(0xda))[_0x5ec4fc(0xcb)](_0x5ec4fc(0xdb),'write\x20structured\x20JSON')[_0x5ec4fc(0xf8)](async(_0x59e980,_0x949f90)=>{const _0x5544ea=_0x5ec4fc;if(_0x949f90[_0x5544ea(0xf6)]===void 0x0){_0x59e980[_0x5544ea(0x11d)]!==0x1&&_0x2d259e[_0x5544ea(0xf2)](_0x5544ea(0xf1),{'code':'resources.invalid-input','exitCode':0x1});let _0x26f50d=await c(_0x2d259e,async()=>_0x482ff4['openLibrary']()[_0x5544ea(0xce)]({'handle':_0x59e980[0x0]}));_0x949f90[_0x5544ea(0x123)]===!0x0?u(_0x2d259e,_0x26f50d):_0x2d259e['configureOutput']()['writeOut']?.(_0x26f50d[_0x5544ea(0xee)]);return;}let _0x4d8256=await c(_0x2d259e,async()=>_0x482ff4[_0x5544ea(0xd6)]()[_0x5544ea(0x11a)]({'handles':_0x59e980,'destination':_0x949f90['out']}));if(_0x949f90[_0x5544ea(0x123)]===!0x0)u(_0x2d259e,_0x4d8256);else{let _0x1e7a4e=_0x2d259e[_0x5544ea(0x105)]();for(let _0x329ed3 of _0x4d8256[_0x5544ea(0x118)])_0x1e7a4e[_0x5544ea(0xe9)]?.(_0x329ed3[_0x5544ea(0x115)]+'\x0a');for(let _0x46b895 of _0x4d8256[_0x5544ea(0x10b)])_0x1e7a4e[_0x5544ea(0x125)]?.(_0x46b895[_0x5544ea(0x119)]+':\x20'+_0x46b895[_0x5544ea(0x110)]+':\x20'+_0x46b895[_0x5544ea(0xdc)]+'\x0a');}_0x4d8256[_0x5544ea(0x10b)][_0x5544ea(0x11d)]>0x0&&_0x2d259e['error'](_0x4d8256[_0x5544ea(0x10b)][_0x5544ea(0x11d)]+_0x5544ea(0x11f)+(_0x4d8256[_0x5544ea(0x10b)][_0x5544ea(0x11d)]===0x1?'':'s')+_0x5544ea(0xe8),{'code':_0x5544ea(0xe1),'exitCode':0x1});});let _0xa73e5a=_0x2d259e[_0x5ec4fc(0x113)](_0x5ec4fc(0x10c))[_0x5ec4fc(0xd5)]('Inspect\x20or\x20clear\x20the\x20resource\x20cache');return _0xa73e5a['action'](()=>_0xa73e5a['outputHelp']()),_0xa73e5a['command'](_0x5ec4fc(0x115))['description'](_0x5ec4fc(0xe7))[_0x5ec4fc(0xcb)](_0x5ec4fc(0xdb),_0x5ec4fc(0xf5))[_0x5ec4fc(0xf8)](_0x3f03e1=>{const _0x39c4ed=_0x5ec4fc;let _0x2996dd=_0x482ff4[_0x39c4ed(0xd6)]()[_0x39c4ed(0x107)];l(_0x2d259e,_0x3f03e1,{'path':_0x2996dd},_0x2996dd);}),_0xa73e5a['command']('clear')['description'](_0x5ec4fc(0x120))[_0x5ec4fc(0xcb)]('--json',_0x5ec4fc(0xf5))['action'](async _0x2c7207=>{const _0x5875d8=_0x5ec4fc;let _0x592639=await c(_0x2d259e,async()=>_0x482ff4[_0x5875d8(0xd6)]()[_0x5875d8(0xdf)]());l(_0x2d259e,_0x2c7207,{'cleared':_0x592639},'Cleared\x20'+_0x592639['resourceCount']+'\x20resources\x20('+p(_0x592639['byteCount'])+_0x5875d8(0xe2)+_0x592639[_0x5875d8(0x115)]+'.');}),_0x2d259e;}function o(_0x1ff9e5,_0x22d2f3){return[..._0x22d2f3,_0x1ff9e5];}function s(_0x15c97d){const _0x2eac4e=_0x1f18;let _0x214868=Number(_0x15c97d);if(!Number[_0x2eac4e(0x11b)](_0x214868)||_0x214868<0x1)throw new _0x3a4b48(_0x2eac4e(0x101)+_0x15c97d+'\x22.');return _0x214868;}async function c(_0x58ae48,_0x36ce2a){const _0x34aeb3=_0x1f18;try{return await _0x36ce2a();}catch(_0x434bd7){throw _0x4c64d5(_0x434bd7)&&_0x58ae48[_0x34aeb3(0xf2)](_0x434bd7[_0x34aeb3(0x110)]+':\x20'+_0x434bd7['message'],{'code':_0x34aeb3(0xd1),'exitCode':0x1}),_0x434bd7;}}function _0x1f18(_0x46c326,_0x4f5750){_0x46c326=_0x46c326-0xca;const _0x3dc525=_0x3dc5();let _0x1f183e=_0x3dc525[_0x46c326];return _0x1f183e;}function _0x3dc5(){const _0x1d6466=['height','cacheLocation','name','1518970EbtwlQ','argParser','failed','cache','\x20MB','3531340XWcKwY','map','code','addOption','9WOmrgb','command','REGISTRY','path','Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory','Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog','exported','handle','export','isInteger','total','length','GROUPS','\x20resource','Clear\x20all\x20cached\x20resources','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','932167evcqjm','json','registries','writeErr','8221430iyFyKh','option','colorEditableCount','intrinsicSize','read','outputHelp','find','resources.failed','argument','listRegistries','resourceCount','description','openLibrary','\x20KB','padStart','--limit\x20<number>','write\x20flat\x20<registry>--<resource>.svg\x20files','--json','message','No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.','resources','clearCache','maximum\x20number\x20of\x20results','resources.export.failed',')\x20from\x20','\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.','registry','one\x20or\x20more\x20queries,\x20searched\x20independently','group','Show\x20the\x20resource\x20cache\x20path','\x20could\x20not\x20be\x20exported.','writeOut','width','default','3050439SCWXxr','tagCount','svg','6932432OZhWfv','24JeVbGN','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','error','join','padEnd','write\x20structured\x20JSON','out','648955dLrfKU','action','canonical\x20<registryId>/<resourceId>\x20handles','\x20\x20SIZE','limit','GROUP','editable','colorEditable','NAME','toFixed','Expected\x20a\x20positive\x20integer;\x20received\x20\x22','COLOR','restrict\x20results\x20to\x20a\x20registry;\x20repeatable','EDITABLE','configureOutput'];_0x3dc5=function(){return _0x1d6466;};return _0x3dc5();}function l(_0x505e78,_0x412ee5,_0x174630,_0x4b16a6){const _0x48bbb0=_0x1f18;_0x412ee5['json']===!0x0?u(_0x505e78,_0x174630):_0x505e78['configureOutput']()[_0x48bbb0(0xe9)]?.(_0x4b16a6+'\x0a');}function u(_0x93c339,_0x3b9235){const _0x262061=_0x1f18;_0x93c339[_0x262061(0x105)]()[_0x262061(0xe9)]?.(JSON['stringify'](_0x3b9235,null,0x2)+'\x0a');}function d(_0x19c0fc){const _0x258360=_0x1f18;return[_0x258360(0x114)[_0x258360(0xf4)](0x22)+'\x20\x20'+'RESOURCES'[_0x258360(0xd8)](0x9)+'\x20\x20'+_0x258360(0x11e)[_0x258360(0xd8)](0x7)+'\x20\x20'+'TAGS'['padStart'](0x6)+'\x20\x20'+_0x258360(0x104)[_0x258360(0xd8)](0xa),..._0x19c0fc[_0x258360(0x10f)](_0x567a6c=>[_0x567a6c['id'][_0x258360(0xf4)](0x22),String(_0x567a6c[_0x258360(0xd4)])[_0x258360(0xd8)](0x9),String(_0x567a6c['groupCount'])[_0x258360(0xd8)](0x7),String(_0x567a6c[_0x258360(0xed)])[_0x258360(0xd8)](0x6),(_0x567a6c[_0x258360(0xcc)]+'/'+_0x567a6c['resourceCount'])[_0x258360(0xd8)](0xa)]['join']('\x20\x20'))][_0x258360(0xf3)]('\x0a');}function f(_0x19b410,_0x558edc){const _0x515be7=_0x1f18;if(_0x19b410[_0x515be7(0x11d)]===0x0)return _0x515be7(0xdd);let _0x23805d=['HANDLE'[_0x515be7(0xf4)](0x32)+'\x20\x20'+_0x515be7(0xff)[_0x515be7(0xf4)](0x1c)+'\x20\x20'+_0x515be7(0xfc)[_0x515be7(0xf4)](0x12)+'\x20\x20'+_0x515be7(0x102)[_0x515be7(0xf4)](0x8)+_0x515be7(0xfa),..._0x19b410[_0x515be7(0x10f)](_0x182514=>{const _0x321f20=_0x515be7;let _0x2b5d9d=_0x182514[_0x321f20(0xe6)]?.['label']??'-',_0x1a0d8c=_0x182514[_0x321f20(0xfe)]?_0x321f20(0xfd):'fixed',_0x4853af=_0x182514['intrinsicSize'][_0x321f20(0xea)]+'×'+_0x182514[_0x321f20(0xcd)][_0x321f20(0x106)];return _0x182514[_0x321f20(0x119)][_0x321f20(0xf4)](0x32)+'\x20\x20'+_0x182514[_0x321f20(0x108)]['padEnd'](0x1c)+'\x20\x20'+_0x2b5d9d[_0x321f20(0xf4)](0x12)+'\x20\x20'+_0x1a0d8c[_0x321f20(0xf4)](0x8)+'\x20\x20'+_0x4853af;})];return _0x558edc>_0x19b410[_0x515be7(0x11d)]&&_0x23805d['push']('…\x20'+(_0x558edc-_0x19b410[_0x515be7(0x11d)])+_0x515be7(0xe3)),_0x23805d[_0x515be7(0xf3)]('\x0a');}function p(_0x125b42){const _0x5376fa=_0x1f18;return _0x125b42<0x400?_0x125b42+'\x20B':_0x125b42<0x100000?(_0x125b42/0x400)[_0x5376fa(0x100)](0x1)+_0x5376fa(0xd7):(_0x125b42/0x100000)[_0x5376fa(0x100)](0x1)+_0x5376fa(0x10d);}export{a as createResourcesCommand};
1
+ function _0x3373(_0x282998,_0x46cef2){_0x282998=_0x282998-0x18c;const _0x78ac48=_0x78ac();let _0x3373fd=_0x78ac48[_0x282998];return _0x3373fd;}(function(_0x341127,_0x5639cc){const _0x174acb=_0x3373,_0xeeb036=_0x341127();while(!![]){try{const _0x290aaa=parseInt(_0x174acb(0x1ba))/0x1+parseInt(_0x174acb(0x1d5))/0x2+parseInt(_0x174acb(0x1a0))/0x3*(-parseInt(_0x174acb(0x1ce))/0x4)+parseInt(_0x174acb(0x1bc))/0x5*(-parseInt(_0x174acb(0x1d6))/0x6)+-parseInt(_0x174acb(0x191))/0x7*(parseInt(_0x174acb(0x1b0))/0x8)+parseInt(_0x174acb(0x192))/0x9+-parseInt(_0x174acb(0x1c7))/0xa;if(_0x290aaa===_0x5639cc)break;else _0xeeb036['push'](_0xeeb036['shift']());}catch(_0x4659cb){_0xeeb036['push'](_0xeeb036['shift']());}}}(_0x78ac,0x56156));import{isResourceLibraryError as _0x2d3010}from'@univer-cli/resource-library';import{Command as _0x577ef8,InvalidArgumentError as _0x2da239,Option as _0x3375eb}from'commander';function _0x78ac(){const _0x208f53=['label','svg','resources','argParser','1109560QxmRdq','422922gbBbEf','Show\x20the\x20resource\x20cache\x20path','resources.failed','intrinsicSize','action','<handles...>','\x20resources\x20(','total','REGISTRY','message','padStart','default','join','writeOut','code','resourceCount','read','failed','<queries...>','handle','name','configureOutput','outputHelp','Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory','132314eQxOMW','4093407MVleco','listRegistries','editable','one\x20or\x20more\x20queries,\x20searched\x20independently','padEnd','registry','addOption','path','description','TAGS','registries','resources.export.failed','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','write\x20structured\x20JSON','57XGPRAC','cacheLocation','canonical\x20<registryId>/<resourceId>\x20handles','error','--json','\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','cache','limit',')\x20from\x20','\x20\x20SIZE','NAME','Clear\x20all\x20cached\x20resources','maximum\x20number\x20of\x20results','GROUPS','Inspect\x20or\x20clear\x20the\x20resource\x20cache','112RPjhPE','COLOR','HANDLE','--registry\x20<id>','Expected\x20a\x20positive\x20integer;\x20received\x20\x22','find','GROUP','stringify','out','groupCount','658329AzYoXX','RESOURCES','35IkihNk','json','command','exported','--out\x20<directory>','writeErr','toFixed','openLibrary','option','export','length','3341800IqvMMf','\x20resource','argument','resources.invalid-input','height','group','map','46972GAidcp','colorEditable','Cleared\x20'];_0x78ac=function(){return _0x208f53;};return _0x78ac();}var i=0x1e;function a(_0x421917){const _0x5bb735=_0x3373;let _0x17d2ee=new _0x577ef8(_0x5bb735(0x1d3))[_0x5bb735(0x19a)]('Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog')[_0x5bb735(0x1da)](()=>_0x17d2ee[_0x5bb735(0x18f)]());_0x17d2ee['command'](_0x5bb735(0x19c))[_0x5bb735(0x19a)]('List\x20available\x20resource\x20registries')[_0x5bb735(0x1c4)](_0x5bb735(0x1a4),_0x5bb735(0x19f))[_0x5bb735(0x1da)](async _0x3acc24=>{const _0x58f901=_0x5bb735;let _0x2f76b3=await c(_0x17d2ee,async()=>_0x421917['openLibrary']()[_0x58f901(0x193)]());l(_0x17d2ee,_0x3acc24,{'registries':_0x2f76b3},d(_0x2f76b3));}),_0x17d2ee['command'](_0x5bb735(0x1b5))['description'](_0x5bb735(0x1a6))[_0x5bb735(0x1c9)](_0x5bb735(0x1e8),_0x5bb735(0x195))[_0x5bb735(0x198)](new _0x3375eb(_0x5bb735(0x1b3),'restrict\x20results\x20to\x20a\x20registry;\x20repeatable')[_0x5bb735(0x1d4)](o)[_0x5bb735(0x1e1)]([]))[_0x5bb735(0x198)](new _0x3375eb('--limit\x20<number>',_0x5bb735(0x1ad))[_0x5bb735(0x1d4)](s)['default'](i))[_0x5bb735(0x1c4)]('--json','write\x20structured\x20JSON')[_0x5bb735(0x1da)](async(_0x3c5f57,_0x5e535e)=>{const _0x288c07=_0x5bb735;let _0x195547=await c(_0x17d2ee,async()=>_0x421917[_0x288c07(0x1c3)]()['find']({'queries':_0x3c5f57,'registries':_0x5e535e[_0x288c07(0x197)],'limit':_0x5e535e[_0x288c07(0x1a8)]}));l(_0x17d2ee,_0x5e535e,{'query':{'queries':_0x3c5f57,'registries':_0x5e535e[_0x288c07(0x197)]},'resources':_0x195547[_0x288c07(0x1d3)],'total':_0x195547[_0x288c07(0x1dd)],'limit':_0x5e535e[_0x288c07(0x1a8)]},f(_0x195547[_0x288c07(0x1d3)],_0x195547[_0x288c07(0x1dd)]));}),_0x17d2ee[_0x5bb735(0x1be)](_0x5bb735(0x1c5))['description'](_0x5bb735(0x190))[_0x5bb735(0x1c9)](_0x5bb735(0x1db),_0x5bb735(0x1a2))[_0x5bb735(0x1c4)](_0x5bb735(0x1c0),'write\x20flat\x20<registry>--<resource>.svg\x20files')[_0x5bb735(0x1c4)](_0x5bb735(0x1a4),_0x5bb735(0x19f))[_0x5bb735(0x1da)](async(_0x400196,_0xdbdd9e)=>{const _0x3d20c8=_0x5bb735;if(_0xdbdd9e[_0x3d20c8(0x1b8)]===void 0x0){_0x400196[_0x3d20c8(0x1c6)]!==0x1&&_0x17d2ee[_0x3d20c8(0x1a3)](_0x3d20c8(0x19e),{'code':_0x3d20c8(0x1ca),'exitCode':0x1});let _0x101ee2=await c(_0x17d2ee,async()=>_0x421917[_0x3d20c8(0x1c3)]()[_0x3d20c8(0x1e6)]({'handle':_0x400196[0x0]}));_0xdbdd9e['json']===!0x0?u(_0x17d2ee,_0x101ee2):_0x17d2ee[_0x3d20c8(0x18e)]()[_0x3d20c8(0x1e3)]?.(_0x101ee2[_0x3d20c8(0x1d2)]);return;}let _0x38f7db=await c(_0x17d2ee,async()=>_0x421917[_0x3d20c8(0x1c3)]()[_0x3d20c8(0x1c5)]({'handles':_0x400196,'destination':_0xdbdd9e['out']}));if(_0xdbdd9e['json']===!0x0)u(_0x17d2ee,_0x38f7db);else{let _0x9d67bf=_0x17d2ee['configureOutput']();for(let _0xfc9523 of _0x38f7db[_0x3d20c8(0x1bf)])_0x9d67bf[_0x3d20c8(0x1e3)]?.(_0xfc9523['path']+'\x0a');for(let _0x2dcb0f of _0x38f7db['failed'])_0x9d67bf[_0x3d20c8(0x1c1)]?.(_0x2dcb0f['handle']+':\x20'+_0x2dcb0f[_0x3d20c8(0x1e4)]+':\x20'+_0x2dcb0f['message']+'\x0a');}_0x38f7db[_0x3d20c8(0x1e7)][_0x3d20c8(0x1c6)]>0x0&&_0x17d2ee[_0x3d20c8(0x1a3)](_0x38f7db[_0x3d20c8(0x1e7)][_0x3d20c8(0x1c6)]+_0x3d20c8(0x1c8)+(_0x38f7db['failed'][_0x3d20c8(0x1c6)]===0x1?'':'s')+'\x20could\x20not\x20be\x20exported.',{'code':_0x3d20c8(0x19d),'exitCode':0x1});});let _0x334894=_0x17d2ee['command'](_0x5bb735(0x1a7))[_0x5bb735(0x19a)](_0x5bb735(0x1af));return _0x334894[_0x5bb735(0x1da)](()=>_0x334894[_0x5bb735(0x18f)]()),_0x334894[_0x5bb735(0x1be)](_0x5bb735(0x199))[_0x5bb735(0x19a)](_0x5bb735(0x1d7))['option'](_0x5bb735(0x1a4),_0x5bb735(0x19f))['action'](_0x9a62d9=>{const _0x45e5c0=_0x5bb735;let _0x1db9c1=_0x421917['openLibrary']()[_0x45e5c0(0x1a1)];l(_0x17d2ee,_0x9a62d9,{'path':_0x1db9c1},_0x1db9c1);}),_0x334894[_0x5bb735(0x1be)]('clear')['description'](_0x5bb735(0x1ac))[_0x5bb735(0x1c4)](_0x5bb735(0x1a4),_0x5bb735(0x19f))[_0x5bb735(0x1da)](async _0x2f8382=>{const _0x236e99=_0x5bb735;let _0x1004fc=await c(_0x17d2ee,async()=>_0x421917['openLibrary']()['clearCache']());l(_0x17d2ee,_0x2f8382,{'cleared':_0x1004fc},_0x236e99(0x1d0)+_0x1004fc[_0x236e99(0x1e5)]+_0x236e99(0x1dc)+p(_0x1004fc['byteCount'])+_0x236e99(0x1a9)+_0x1004fc[_0x236e99(0x199)]+'.');}),_0x17d2ee;}function o(_0x368da9,_0xc87816){return[..._0xc87816,_0x368da9];}function s(_0x18d917){const _0x29c7ac=_0x3373;let _0xe05ca6=Number(_0x18d917);if(!Number['isInteger'](_0xe05ca6)||_0xe05ca6<0x1)throw new _0x2da239(_0x29c7ac(0x1b4)+_0x18d917+'\x22.');return _0xe05ca6;}async function c(_0x40fc29,_0x2efce2){const _0x1d0824=_0x3373;try{return await _0x2efce2();}catch(_0x20ab3a){throw _0x2d3010(_0x20ab3a)&&_0x40fc29[_0x1d0824(0x1a3)](_0x20ab3a['code']+':\x20'+_0x20ab3a[_0x1d0824(0x1df)],{'code':_0x1d0824(0x1d8),'exitCode':0x1}),_0x20ab3a;}}function l(_0x42e7ed,_0x3ed79a,_0x2d9b05,_0x2964a2){const _0x8ffa20=_0x3373;_0x3ed79a[_0x8ffa20(0x1bd)]===!0x0?u(_0x42e7ed,_0x2d9b05):_0x42e7ed['configureOutput']()['writeOut']?.(_0x2964a2+'\x0a');}function u(_0x5f0bbc,_0x53b105){const _0x5e0a3e=_0x3373;_0x5f0bbc[_0x5e0a3e(0x18e)]()['writeOut']?.(JSON[_0x5e0a3e(0x1b7)](_0x53b105,null,0x2)+'\x0a');}function d(_0x373bdd){const _0x500274=_0x3373;return[_0x500274(0x1de)['padEnd'](0x22)+'\x20\x20'+_0x500274(0x1bb)[_0x500274(0x1e0)](0x9)+'\x20\x20'+_0x500274(0x1ae)[_0x500274(0x1e0)](0x7)+'\x20\x20'+_0x500274(0x19b)[_0x500274(0x1e0)](0x6)+'\x20\x20'+'EDITABLE'[_0x500274(0x1e0)](0xa),..._0x373bdd[_0x500274(0x1cd)](_0x1eb79c=>[_0x1eb79c['id'][_0x500274(0x196)](0x22),String(_0x1eb79c[_0x500274(0x1e5)])[_0x500274(0x1e0)](0x9),String(_0x1eb79c[_0x500274(0x1b9)])[_0x500274(0x1e0)](0x7),String(_0x1eb79c['tagCount'])[_0x500274(0x1e0)](0x6),(_0x1eb79c['colorEditableCount']+'/'+_0x1eb79c['resourceCount'])[_0x500274(0x1e0)](0xa)][_0x500274(0x1e2)]('\x20\x20'))][_0x500274(0x1e2)]('\x0a');}function f(_0x2a9ce2,_0x31a696){const _0x354432=_0x3373;if(_0x2a9ce2[_0x354432(0x1c6)]===0x0)return'No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.';let _0xd3604c=[_0x354432(0x1b2)[_0x354432(0x196)](0x32)+'\x20\x20'+_0x354432(0x1ab)[_0x354432(0x196)](0x1c)+'\x20\x20'+_0x354432(0x1b6)[_0x354432(0x196)](0x12)+'\x20\x20'+_0x354432(0x1b1)['padEnd'](0x8)+_0x354432(0x1aa),..._0x2a9ce2['map'](_0x44d5ff=>{const _0x2160f6=_0x354432;let _0x2565bc=_0x44d5ff[_0x2160f6(0x1cc)]?.[_0x2160f6(0x1d1)]??'-',_0x56f35e=_0x44d5ff[_0x2160f6(0x1cf)]?_0x2160f6(0x194):'fixed',_0x29b8f4=_0x44d5ff[_0x2160f6(0x1d9)]['width']+'×'+_0x44d5ff[_0x2160f6(0x1d9)][_0x2160f6(0x1cb)];return _0x44d5ff[_0x2160f6(0x18c)][_0x2160f6(0x196)](0x32)+'\x20\x20'+_0x44d5ff[_0x2160f6(0x18d)]['padEnd'](0x1c)+'\x20\x20'+_0x2565bc[_0x2160f6(0x196)](0x12)+'\x20\x20'+_0x56f35e[_0x2160f6(0x196)](0x8)+'\x20\x20'+_0x29b8f4;})];return _0x31a696>_0x2a9ce2[_0x354432(0x1c6)]&&_0xd3604c['push']('…\x20'+(_0x31a696-_0x2a9ce2[_0x354432(0x1c6)])+_0x354432(0x1a5)),_0xd3604c[_0x354432(0x1e2)]('\x0a');}function p(_0x5dcd75){const _0x2cd88f=_0x3373;return _0x5dcd75<0x400?_0x5dcd75+'\x20B':_0x5dcd75<0x100000?(_0x5dcd75/0x400)[_0x2cd88f(0x1c2)](0x1)+'\x20KB':(_0x5dcd75/0x100000)[_0x2cd88f(0x1c2)](0x1)+'\x20MB';}export{a as createResourcesCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/resource-library-command",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
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/resource-library": "1.3.1"
21
+ "@univer-cli/resource-library": "1.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"