@picoxr/web-cli-core
Version:
Core Library to generate, build and sign TWA projects
1 lines • 4.03 kB
JavaScript
;const _0x56f3ac=_0x8101;(function(_0x2052c4,_0x1b164f){const _0x4a91f3=_0x8101,_0xdf0bd3=_0x2052c4();while(!![]){try{const _0x4b2f97=parseInt(_0x4a91f3(0x1e5))/0x1*(-parseInt(_0x4a91f3(0x1f6))/0x2)+parseInt(_0x4a91f3(0x205))/0x3+parseInt(_0x4a91f3(0x1e8))/0x4+-parseInt(_0x4a91f3(0x1ec))/0x5*(-parseInt(_0x4a91f3(0x1ee))/0x6)+-parseInt(_0x4a91f3(0x1fd))/0x7+parseInt(_0x4a91f3(0x1f4))/0x8+-parseInt(_0x4a91f3(0x1f1))/0x9;if(_0x4b2f97===_0x1b164f)break;else _0xdf0bd3['push'](_0xdf0bd3['shift']());}catch(_0x2e00d9){_0xdf0bd3['push'](_0xdf0bd3['shift']());}}}(_0xe527,0x78a1c));function _0x8101(_0x5f571c,_0x2e20cc){const _0xe52745=_0xe527();return _0x8101=function(_0x810194,_0x4d3989){_0x810194=_0x810194-0x1e1;let _0x4a7582=_0xe52745[_0x810194];return _0x4a7582;},_0x8101(_0x5f571c,_0x2e20cc);}Object['defineProperty'](exports,_0x56f3ac(0x1ef),{'value':!![]}),exports['ShortcutInfo']=void 0x0;function _0xe527(){const _0x186214=['not\x20finding\x20a\x20suitable\x20icon\x20in\x20shortcut\x20icons','ShortcutInfo','./CustomError','name','escapeGradleString','./util','1NmqJzg','monochrome','substring','936220FdDaai','icon:\x27','chosenMonochromeIconUrl','any','180wpkKyq','maskable','88302geGequ','__esModule','\x27,\x20','6268329WWGfdw','short_name','chosenIconUrl','364680lidhAe','shortcut\x20missing\x20metadata','772346DCUbQa','src','assetName','toString','CustomError','icons','findSuitableIcon','1036161gZKWDS','short_name:\x27','fromShortcutJson','chosenMaskableIconUrl','url','[name:\x27','shortName','shortcut_','2745999yQZLuh'];_0xe527=function(){return _0x186214;};return _0xe527();}const CustomError_1=require(_0x56f3ac(0x1e1)),util_1=require(_0x56f3ac(0x1e4)),SHORT_NAME_MAX_SIZE=0xc,MIN_SHORTCUT_ICON_SIZE=0x60;class ShortcutInfo{constructor(_0xe223af,_0x22a869,_0x5c842d,_0x1e5ee3,_0x427afc,_0x35c89b){const _0x3e11cc=_0x56f3ac;this[_0x3e11cc(0x1e2)]=_0xe223af,this[_0x3e11cc(0x203)]=_0x22a869,this[_0x3e11cc(0x201)]=_0x5c842d,this[_0x3e11cc(0x1f3)]=_0x1e5ee3,this[_0x3e11cc(0x200)]=_0x427afc,this[_0x3e11cc(0x1ea)]=_0x35c89b;if(!_0x1e5ee3&&!_0x35c89b)throw new CustomError_1['CustomError']({'code':0x7d6,'message':'ShortcutInfo\x20'+_0xe223af+'\x20must\x20have\x20either\x20chosenIconUrl\x20or\x20chosenMonochromeIconUrl','message_staring_params':{'name':_0xe223af}});}[_0x56f3ac(0x1f9)](_0x428617){const _0x3b9baf=_0x56f3ac;return _0x3b9baf(0x202)+(0x0,util_1[_0x3b9baf(0x1e3)])(this[_0x3b9baf(0x1e2)])+_0x3b9baf(0x1f0)+(_0x3b9baf(0x1fe)+(0x0,util_1[_0x3b9baf(0x1e3)])(this[_0x3b9baf(0x203)])+'\x27,\x20')+('url:\x27'+this[_0x3b9baf(0x201)]+_0x3b9baf(0x1f0))+(_0x3b9baf(0x1e9)+this['assetName'](_0x428617)+'\x27]');}[_0x56f3ac(0x1f8)](_0x2137cd){const _0x31a115=_0x56f3ac;return _0x31a115(0x204)+_0x2137cd;}static[_0x56f3ac(0x1ff)](_0x4eba3c,_0x4c800a){const _0x124c43=_0x56f3ac,_0x614762=_0x4c800a[_0x124c43(0x1e2)]||_0x4c800a[_0x124c43(0x1f2)];if(!_0x4c800a[_0x124c43(0x1fb)]||!_0x4c800a[_0x124c43(0x201)]||!_0x614762)throw new CustomError_1[(_0x124c43(0x1fa))]({'code':0x7d7,'message':_0x124c43(0x1f5),'message_staring_params':{}});const _0x235c3d=(0x0,util_1[_0x124c43(0x1fc)])(_0x4c800a['icons'],_0x124c43(0x1eb),MIN_SHORTCUT_ICON_SIZE),_0x5913a1=(0x0,util_1[_0x124c43(0x1fc)])(_0x4c800a[_0x124c43(0x1fb)],_0x124c43(0x1ed),MIN_SHORTCUT_ICON_SIZE),_0x22e540=(0x0,util_1[_0x124c43(0x1fc)])(_0x4c800a[_0x124c43(0x1fb)],_0x124c43(0x1e6),MIN_SHORTCUT_ICON_SIZE);if(!_0x235c3d&&!_0x22e540)throw new CustomError_1[(_0x124c43(0x1fa))]({'code':0x7d8,'message':_0x124c43(0x206),'message_staring_params':{}});function _0x5baa46(_0x5c2429){const _0x133369=_0x124c43;return _0x5c2429?new URL(_0x5c2429[_0x133369(0x1f7)],_0x4eba3c)['toString']():undefined;}const _0x572a66=_0x4c800a[_0x124c43(0x1f2)]||_0x4c800a['name'][_0x124c43(0x1e7)](0x0,SHORT_NAME_MAX_SIZE),_0x569682=new URL(_0x4c800a['url'],_0x4eba3c)[_0x124c43(0x1f9)](),_0x1003e5=new ShortcutInfo(_0x614762,_0x572a66,_0x569682,_0x5baa46(_0x235c3d),_0x5baa46(_0x5913a1),_0x5baa46(_0x22e540));return _0x1003e5;}}exports[_0x56f3ac(0x207)]=ShortcutInfo;