@webspatial/builder 0.1.13 → 0.1.15

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 (40) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/cmds/build.d.ts +4 -4
  3. package/dist/lib/cmds/build.js +1 -1
  4. package/dist/lib/cmds/check.d.ts +2 -3
  5. package/dist/lib/cmds/check.js +1 -1
  6. package/dist/lib/cmds/help.js +1 -1
  7. package/dist/lib/cmds/launch.js +1 -1
  8. package/dist/lib/cmds/shutdown.js +1 -1
  9. package/dist/lib/cmds/version.d.ts +1 -2
  10. package/dist/lib/cmds/version.js +1 -1
  11. package/dist/lib/pwa/config.js +1 -1
  12. package/dist/lib/pwa/index.d.ts +4 -15
  13. package/dist/lib/pwa/index.js +1 -1
  14. package/dist/lib/pwa/validate.js +1 -1
  15. package/dist/lib/resource/file.js +1 -1
  16. package/dist/lib/resource/imageHelper.js +1 -1
  17. package/dist/lib/resource/index.d.ts +2 -1
  18. package/dist/lib/resource/index.js +1 -1
  19. package/dist/lib/resource/load.js +1 -1
  20. package/dist/lib/types.d.ts +27 -0
  21. package/dist/lib/types.js +1 -0
  22. package/dist/lib/utils/CustomError.js +1 -1
  23. package/dist/lib/utils/FetchUtils-1.js +1 -1
  24. package/dist/lib/utils/Log.js +1 -1
  25. package/dist/lib/utils/fetch.js +1 -1
  26. package/dist/lib/utils/history.d.ts +15 -0
  27. package/dist/lib/utils/history.js +1 -0
  28. package/dist/lib/utils/messages.js +1 -1
  29. package/dist/lib/utils/utils.d.ts +2 -0
  30. package/dist/lib/utils/utils.js +1 -1
  31. package/dist/lib/xcode/index.d.ts +3 -1
  32. package/dist/lib/xcode/index.js +1 -1
  33. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  34. package/dist/lib/xcode/xcodebuild.js +1 -1
  35. package/dist/lib/xcode/xcodeproject.js +1 -1
  36. package/dist/lib/xcode/xcrun.d.ts +38 -3
  37. package/dist/lib/xcode/xcrun.js +1 -1
  38. package/package.json +4 -3
  39. package/dist/lib/Cli.d.ts +0 -5
  40. package/dist/lib/Cli.js +0 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1d8b69=_0x9216;(function(_0xb1ba7b,_0x179122){const _0x4f7e83=_0x9216,_0x258ec8=_0xb1ba7b();while(!![]){try{const _0x29d423=parseInt(_0x4f7e83(0x1c4))/0x1*(parseInt(_0x4f7e83(0x1cd))/0x2)+-parseInt(_0x4f7e83(0x1bf))/0x3+parseInt(_0x4f7e83(0x1b8))/0x4+-parseInt(_0x4f7e83(0x1be))/0x5+-parseInt(_0x4f7e83(0x1c0))/0x6*(-parseInt(_0x4f7e83(0x1bc))/0x7)+-parseInt(_0x4f7e83(0x1ce))/0x8+parseInt(_0x4f7e83(0x1c5))/0x9;if(_0x29d423===_0x179122)break;else _0x258ec8['push'](_0x258ec8['shift']());}catch(_0x36b9e3){_0x258ec8['push'](_0x258ec8['shift']());}}}(_0xb9b3,0xe5629));function _0x9216(_0x5d0f87,_0x484d84){const _0xb9b3b8=_0xb9b3();return _0x9216=function(_0x9216ad,_0x3df3bc){_0x9216ad=_0x9216ad-0x1b8;let _0x222240=_0xb9b3b8[_0x9216ad];return _0x222240;},_0x9216(_0x5d0f87,_0x484d84);}Object[_0x1d8b69(0x1ba)](exports,_0x1d8b69(0x1d0),{'value':!![]});function _0xb9b3(){const _0x46d3dd=['__esModule','221448oRYokn','isArray','defineProperty','CustomError','13643hVXCkY','forEach','7674615djxGdu','626421wPdboq','366JSncqy','./lib/utils/CustomError','exit','customMessage','203fmKzxP','21610665KoUVgG','error','slice','./lib/Cli','argv','Cli','log','message','15682WtrVWf','11870944cjgljD','code'];_0xb9b3=function(){return _0x46d3dd;};return _0xb9b3();}const Cli_1=require(_0x1d8b69(0x1c8)),CustomError_1=require(_0x1d8b69(0x1c1));module['exports']=async()=>{const _0x546f03=_0x1d8b69,_0x146763=new Cli_1[(_0x546f03(0x1ca))](),_0x3097b4=Cli_1[_0x546f03(0x1ca)][_0x546f03(0x1cb)],_0x47b4b9=process[_0x546f03(0x1c9)][_0x546f03(0x1c7)](0x2);let _0x2f1cf1;try{_0x2f1cf1=await _0x146763['run'](_0x47b4b9);}catch(_0xb3cd9f){if(_0xb3cd9f instanceof CustomError_1[_0x546f03(0x1bb)]){const _0x59d995=_0xb3cd9f[_0x546f03(0x1c3)];Array[_0x546f03(0x1b9)](_0x59d995)?_0x59d995[_0x546f03(0x1bd)](_0x328cb7=>{const _0x42f356=_0x546f03;_0x3097b4[_0x42f356(0x1c6)](_0x328cb7[_0x42f356(0x1cf)]+':\x20'+_0x328cb7[_0x42f356(0x1cc)]);}):_0x3097b4[_0x546f03(0x1c6)](_0x59d995[_0x546f03(0x1cf)]+':\x20'+_0x59d995[_0x546f03(0x1cc)]);}else _0x3097b4[_0x546f03(0x1c6)](_0xb3cd9f[_0x546f03(0x1cc)]);_0x2f1cf1=![];}!_0x2f1cf1?process['exit'](0x1):process[_0x546f03(0x1c2)](0x0);};
1
+ 'use strict';const _0x5ae9b3=_0x2625;(function(_0x53317a,_0x17ad3f){const _0x108aa2=_0x2625,_0x29d444=_0x53317a();while(!![]){try{const _0x143543=-parseInt(_0x108aa2(0x15a))/0x1+-parseInt(_0x108aa2(0x13f))/0x2*(parseInt(_0x108aa2(0x15f))/0x3)+parseInt(_0x108aa2(0x159))/0x4*(-parseInt(_0x108aa2(0x174))/0x5)+-parseInt(_0x108aa2(0x175))/0x6+parseInt(_0x108aa2(0x16a))/0x7+-parseInt(_0x108aa2(0x140))/0x8*(-parseInt(_0x108aa2(0x148))/0x9)+parseInt(_0x108aa2(0x131))/0xa;if(_0x143543===_0x17ad3f)break;else _0x29d444['push'](_0x29d444['shift']());}catch(_0x431eda){_0x29d444['push'](_0x29d444['shift']());}}}(_0x335b,0xdfb62));function _0x2625(_0x1d8cd9,_0x4c863b){const _0x335ba3=_0x335b();return _0x2625=function(_0x26253e,_0xe58b99){_0x26253e=_0x26253e-0x12f;let _0x1a27f6=_0x335ba3[_0x26253e];return _0x1a27f6;},_0x2625(_0x1d8cd9,_0x4c863b);}function _0x335b(){const _0x4940cb=['manifest\x20path','configureHelp','build','__esModule','By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App','command','requiredOption','--manifest\x20<manifest>','Publish\x20WebSpatial\x20App','username','4211992NIZFDM','379904XQEeDq','name','store','setDecompressResponseBuffer','./lib/cmds/version','152049TKWyPq','defineProperty','Shutdown\x20Simulator','export\x20path','downloadFile','fetch','Command','manifest\x20url','app\x20version','bundle\x20id','./lib/cmds/build','5010936EwVPWB','--manifest-url\x20<manifestUrl>','option','./lib/cmds/shutdown','log','--base\x20<base>','-v,\x20--version','action','major','run','5bnUNuh','9072900LmBmzp','--tryWithoutBuild\x20<tryWithoutBuild>','run\x20without\x20build','--manifest-url\x20<manifest-url>','./lib/cmds/launch','setFetch','exports','--export\x20<export>','19087840mXSqcv','xr\x20platform','publish','team\x20id','decompressResponseBuffer','webspatial-builder','parseAsync','app\x20build\x20type','--u\x20<username>','launch','--teamId\x20<teamId>','./lib/utils/fetch','shutdown','base\x20path','12hozVSf','32jtiHjl','password','argv','--bundle-id\x20<bundleId>','setDownloadFile','--version\x20<version>','project\x20path','--platform\x20<platform>','3466890VZtSBD','description','--buildType\x20<buildType>','fetchUtils','node','Current\x20Node.js\x20version\x20is\x20','getVersion'];_0x335b=function(){return _0x4940cb;};return _0x335b();}Object[_0x5ae9b3(0x160)](exports,_0x5ae9b3(0x152),{'value':!![]});const commander_1=require('commander'),semver_1=require('semver'),FetchUtils_1_1=require('./lib/utils/FetchUtils-1'),build_1=require(_0x5ae9b3(0x169)),version_1=require(_0x5ae9b3(0x15e)),fetch_1=require(_0x5ae9b3(0x13c)),launch_1=require(_0x5ae9b3(0x179)),shutdown_1=require(_0x5ae9b3(0x16d));module[_0x5ae9b3(0x12f)]=async()=>{const _0x454c1e=_0x5ae9b3;if((0x0,semver_1[_0x454c1e(0x172)])(process['versions'][_0x454c1e(0x14c)])<0xe)throw new Error(_0x454c1e(0x14d)+process['versions'][_0x454c1e(0x14c)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');const _0x18d874=new commander_1[(_0x454c1e(0x165))]();FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x17a)](fetch_1[_0x454c1e(0x164)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x144)](fetch_1[_0x454c1e(0x163)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x15d)](fetch_1[_0x454c1e(0x135)]),await setupCommands(_0x18d874),await _0x18d874[_0x454c1e(0x137)](process[_0x454c1e(0x142)]);};async function setupCommands(_0x2dc774){const _0x2c67f6=_0x5ae9b3,_0x2343f3=await(0x0,version_1[_0x2c67f6(0x14e)])();_0x2dc774[_0x2c67f6(0x15b)](_0x2c67f6(0x136))[_0x2c67f6(0x149)]('WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.')['version'](_0x2343f3,_0x2c67f6(0x170))[_0x2c67f6(0x150)]({'showGlobalOptions':!![]}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x173))[_0x2c67f6(0x149)](_0x2c67f6(0x153))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),'manifest\x20path')[_0x2c67f6(0x16c)]('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))[_0x2c67f6(0x16c)](_0x2c67f6(0x147),_0x2c67f6(0x132))[_0x2c67f6(0x16c)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x16c)](_0x2c67f6(0x176),_0x2c67f6(0x177))['action'](async _0x1e054e=>{await(0x0,build_1['run'])(_0x1e054e);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x151))['description']('Build\x20WebSpatial\x20App')[_0x2c67f6(0x16c)]('--manifest\x20<manifest>',_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x178),_0x2c67f6(0x166))['option']('--platform\x20<platform>',_0x2c67f6(0x132))[_0x2c67f6(0x16c)]('--version\x20<version>',_0x2c67f6(0x167))[_0x2c67f6(0x16c)](_0x2c67f6(0x14a),_0x2c67f6(0x138))['option'](_0x2c67f6(0x130),_0x2c67f6(0x162))['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)]('--base\x20<base>',_0x2c67f6(0x13e))['requiredOption'](_0x2c67f6(0x13b),'team\x20id')[_0x2c67f6(0x171)](async _0x51413a=>{const _0x3bfac9=_0x2c67f6;console[_0x3bfac9(0x16e)](_0x51413a),await(0x0,build_1['build'])(_0x51413a);}),_0x2dc774['command'](_0x2c67f6(0x133))[_0x2c67f6(0x149)](_0x2c67f6(0x157))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))['option'](_0x2c67f6(0x147),_0x2c67f6(0x132))['option'](_0x2c67f6(0x14a),_0x2c67f6(0x138))[_0x2c67f6(0x16c)](_0x2c67f6(0x130),_0x2c67f6(0x162))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x155)](_0x2c67f6(0x13b),_0x2c67f6(0x134))[_0x2c67f6(0x155)](_0x2c67f6(0x145),'app\x20version')['requiredOption'](_0x2c67f6(0x139),_0x2c67f6(0x158))[_0x2c67f6(0x155)]('--p\x20<password>',_0x2c67f6(0x141))[_0x2c67f6(0x171)](async _0x21b237=>{const _0x4d8466=_0x2c67f6;console[_0x4d8466(0x16e)](_0x21b237),await(0x0,build_1[_0x4d8466(0x15c)])(_0x21b237);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13a))[_0x2c67f6(0x149)]('Launch\x20WebSpatial\x20App')['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x171)](async _0x453484=>{console['log'](_0x453484),await(0x0,launch_1['launch'])(_0x453484);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13d))[_0x2c67f6(0x149)](_0x2c67f6(0x161))[_0x2c67f6(0x171)](async _0x24bbf6=>{const _0x104c48=_0x2c67f6;console[_0x104c48(0x16e)](_0x24bbf6),await(0x0,shutdown_1['shutdown'])(_0x24bbf6);});}
@@ -1,4 +1,4 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function start(args: ParsedArgs, isDev?: boolean): Promise<any>;
3
- export declare function store(args: ParsedArgs): Promise<boolean>;
4
- export declare function run(args: ParsedArgs): Promise<boolean>;
1
+ import { ManifestInfo } from '../types';
2
+ export declare function build(args: any): Promise<ManifestInfo>;
3
+ export declare function store(args: any): Promise<void>;
4
+ export declare function run(args: any): Promise<void>;
@@ -1 +1 @@
1
- 'use strict';const _0x44dd44=_0x407f;(function(_0x3543c5,_0x399da6){const _0x13e987=_0x407f,_0x2a59be=_0x3543c5();while(!![]){try{const _0x3bdbe7=parseInt(_0x13e987(0x1c4))/0x1+-parseInt(_0x13e987(0x1d7))/0x2*(parseInt(_0x13e987(0x1d1))/0x3)+parseInt(_0x13e987(0x1e4))/0x4+-parseInt(_0x13e987(0x1d6))/0x5+parseInt(_0x13e987(0x1d8))/0x6*(parseInt(_0x13e987(0x1da))/0x7)+-parseInt(_0x13e987(0x1c5))/0x8*(parseInt(_0x13e987(0x1e0))/0x9)+-parseInt(_0x13e987(0x1d3))/0xa;if(_0x3bdbe7===_0x399da6)break;else _0x2a59be['push'](_0x2a59be['shift']());}catch(_0x4b3a50){_0x2a59be['push'](_0x2a59be['shift']());}}}(_0x45fd,0x781dd));function _0x45fd(){const _0x42d434=['teamId','1342508kjBbDd','log','project','json','upload','store','defineProperty','964125MGRIOB','24136CPKSEu','checkBuildParams','-------------------\x20build\x20start\x20-------------------','../resource','__esModule','PWAGenerator','name','moveProjectFrom','platform','dist','ResourceManager','./check','1194hkmjdT','parseProject','10386910xJEfqX','XcodeManager','start','402765KXBtZc','2546SbjiuW','48osIQPH','../xcode','802991kWtIfM','move\x20web\x20project:\x20ok','checkPlatformPath','app-store-connect','../pwa','generateIcon','297DxOeYY','checkStoreParams','generate\x20icon:\x20ok'];_0x45fd=function(){return _0x42d434;};return _0x45fd();}Object[_0x44dd44(0x1c3)](exports,_0x44dd44(0x1c9),{'value':!![]}),exports[_0x44dd44(0x1d5)]=start,exports[_0x44dd44(0x1c2)]=store,exports['run']=run;const pwa_1=require(_0x44dd44(0x1de)),resource_1=require(_0x44dd44(0x1c8)),xcode_1=require(_0x44dd44(0x1d9)),check_1=require(_0x44dd44(0x1d0));async function start(_0x54c5ff,_0x4181ee=![]){const _0x2c130a=_0x44dd44;var _0x48a89e;(0x0,check_1[_0x2c130a(0x1c6)])(_0x54c5ff,_0x4181ee),resource_1['ResourceManager'][_0x2c130a(0x1dc)](_0x54c5ff[_0x2c130a(0x1cd)]),console[_0x2c130a(0x1be)](_0x2c130a(0x1c7));let _0x4d5f06=await pwa_1[_0x2c130a(0x1ca)]['generator'](_0x54c5ff,_0x4181ee);!_0x4d5f06['fromNet']&&(await resource_1[_0x2c130a(0x1cf)][_0x2c130a(0x1cc)]((_0x48a89e=_0x54c5ff[_0x2c130a(0x1bf)])!==null&&_0x48a89e!==void 0x0?_0x48a89e:_0x2c130a(0x1ce)),console[_0x2c130a(0x1be)](_0x2c130a(0x1db)));let _0x2ceba7=await resource_1[_0x2c130a(0x1cf)][_0x2c130a(0x1df)](_0x4d5f06);return console[_0x2c130a(0x1be)](_0x2c130a(0x1e2)),await xcode_1[_0x2c130a(0x1d4)][_0x2c130a(0x1d2)]({'icon':_0x2ceba7,'manifestInfo':_0x4d5f06,'teamId':_0x54c5ff[_0x2c130a(0x1e3)],'version':_0x54c5ff['version'],'buildType':_0x54c5ff['buildType'],'export':_0x54c5ff['export']},_0x4181ee),console[_0x2c130a(0x1be)]('-------------------\x20build\x20end\x20-------------------'),_0x4d5f06;}function _0x407f(_0x3868ea,_0x43fca9){const _0x45fd67=_0x45fd();return _0x407f=function(_0x407fd7,_0x282dfa){_0x407fd7=_0x407fd7-0x1be;let _0x4920cf=_0x45fd67[_0x407fd7];return _0x4920cf;},_0x407f(_0x3868ea,_0x43fca9);}async function store(_0x5a5f64){const _0x1cc32d=_0x44dd44;resource_1[_0x1cc32d(0x1cf)]['checkPlatformPath'](_0x5a5f64[_0x1cc32d(0x1cd)]),(0x0,check_1[_0x1cc32d(0x1e1)])(_0x5a5f64);let _0x245ed0={'name':'WebSpatialTest'};_0x5a5f64['buildType']=_0x1cc32d(0x1dd);if(_0x5a5f64[_0x1cc32d(0x1cb)])_0x245ed0['name']=_0x5a5f64[_0x1cc32d(0x1cb)];else{const _0x438936=await start(_0x5a5f64);if(!_0x438936)return![];_0x245ed0[_0x1cc32d(0x1cb)]=_0x438936['json'][_0x1cc32d(0x1cb)];}return await xcode_1['XcodeManager'][_0x1cc32d(0x1c1)](_0x5a5f64,_0x245ed0),!![];}async function run(_0x1f511f){const _0x4e77b2=_0x44dd44;let _0x343434={'name':'WebSpatialTest','id':''};const _0xcb3bbc=await start(_0x1f511f,!![]);if(!_0xcb3bbc)return![];return _0x343434[_0x4e77b2(0x1cb)]=_0xcb3bbc[_0x4e77b2(0x1c0)][_0x4e77b2(0x1cb)],_0x343434['id']=_0xcb3bbc[_0x4e77b2(0x1c0)]['id'],await xcode_1[_0x4e77b2(0x1d4)]['runWithSimulator'](_0x343434),!![];}
1
+ 'use strict';const _0x10fb9d=_0x17d5;(function(_0x37336b,_0x3f2ea4){const _0x2930c7=_0x17d5,_0x393f34=_0x37336b();while(!![]){try{const _0x4670fd=-parseInt(_0x2930c7(0x1fc))/0x1+parseInt(_0x2930c7(0x1fd))/0x2+parseInt(_0x2930c7(0x200))/0x3+-parseInt(_0x2930c7(0x210))/0x4+parseInt(_0x2930c7(0x20f))/0x5*(parseInt(_0x2930c7(0x20a))/0x6)+parseInt(_0x2930c7(0x20c))/0x7+parseInt(_0x2930c7(0x216))/0x8*(-parseInt(_0x2930c7(0x217))/0x9);if(_0x4670fd===_0x3f2ea4)break;else _0x393f34['push'](_0x393f34['shift']());}catch(_0x33c1de){_0x393f34['push'](_0x393f34['shift']());}}}(_0x38f7,0x9a77d));Object['defineProperty'](exports,_0x10fb9d(0x207),{'value':!![]}),exports[_0x10fb9d(0x1f7)]=build,exports['store']=store,exports[_0x10fb9d(0x20b)]=run;const pwa_1=require(_0x10fb9d(0x1f3)),resource_1=require(_0x10fb9d(0x219)),xcode_1=require(_0x10fb9d(0x1ff)),check_1=require(_0x10fb9d(0x21c)),history_1=require(_0x10fb9d(0x215));async function build(_0x4ac952){const _0xc59367=_0x10fb9d;var _0x34acd2;console[_0xc59367(0x21a)](_0xc59367(0x21b)),resource_1[_0xc59367(0x208)]['checkPlatformPath'](_0x4ac952[_0xc59367(0x1f8)]);const _0x4d50e7=await doPwa(_0x4ac952),_0x4dd485=await doReadyProject((_0x34acd2=_0x4ac952['project'])!==null&&_0x34acd2!==void 0x0?_0x34acd2:_0xc59367(0x1f5),_0x4d50e7);return await doXcode(_0x4ac952,_0x4dd485,_0x4d50e7),console[_0xc59367(0x21a)](_0xc59367(0x1fa)),await xcode_1[_0xc59367(0x206)][_0xc59367(0x1f7)](_0x4ac952['export']),_0x4d50e7;}async function store(_0x42a34b){const _0x8a0148=_0x10fb9d;resource_1['ResourceManager'][_0x8a0148(0x20e)](_0x42a34b['platform']),(0x0,check_1[_0x8a0148(0x212)])(_0x42a34b);let _0x4fff94={'name':_0x8a0148(0x1f4)};_0x42a34b['buildType']=_0x8a0148(0x203);if(_0x42a34b['name'])_0x4fff94[_0x8a0148(0x1f2)]=_0x42a34b[_0x8a0148(0x1f2)];else{const _0xb666df=await build(_0x42a34b);_0x4fff94[_0x8a0148(0x1f2)]=_0xb666df[_0x8a0148(0x211)][_0x8a0148(0x1f2)];}await xcode_1[_0x8a0148(0x206)][_0x8a0148(0x1fb)](_0x42a34b,_0x4fff94);}async function run(_0x793ffa){const _0x556d05=_0x10fb9d;var _0x29691a;const _0x19c40b=JSON[_0x556d05(0x1f9)](_0x793ffa);history_1[_0x556d05(0x213)]['init'](_0x19c40b),console[_0x556d05(0x21a)]('-------------------\x20parse\x20start\x20-------------------'),resource_1[_0x556d05(0x208)][_0x556d05(0x20e)](_0x793ffa['platform']);const _0x40ea72=await doPwa(_0x793ffa,!![]);history_1['default'][_0x556d05(0x1ef)](_0x40ea72[_0x556d05(0x211)]);if(_0x40ea72[_0x556d05(0x1f0)]||_0x793ffa[_0x556d05(0x204)]===_0x556d05(0x209)){if(history_1[_0x556d05(0x213)][_0x556d05(0x1f1)](_0x40ea72[_0x556d05(0x211)])){console[_0x556d05(0x21a)]('Same\x20as\x20the\x20previous\x20record'),await xcode_1['XcodeManager'][_0x556d05(0x1f6)]();return;}}const _0x3f0a76=await doReadyProject((_0x29691a=_0x793ffa[_0x556d05(0x214)])!==null&&_0x29691a!==void 0x0?_0x29691a:_0x556d05(0x1f5),_0x40ea72);await doXcode(_0x793ffa,_0x3f0a76,_0x40ea72,!![]),console[_0x556d05(0x21a)](_0x556d05(0x1fa)),await xcode_1[_0x556d05(0x206)]['runWithSimulator']();}function _0x17d5(_0x38942d,_0x4bebff){const _0x38f735=_0x38f7();return _0x17d5=function(_0x17d5c4,_0x2d024d){_0x17d5c4=_0x17d5c4-0x1ef;let _0x4a32b9=_0x38f735[_0x17d5c4];return _0x4a32b9;},_0x17d5(_0x38942d,_0x4bebff);}async function doPwa(_0x4a02ff,_0x84cc8c=![]){const _0x5a37cf=_0x10fb9d;return(0x0,check_1[_0x5a37cf(0x1fe)])(_0x4a02ff,_0x84cc8c),await pwa_1[_0x5a37cf(0x218)]['generator'](_0x4a02ff,_0x84cc8c);}async function doReadyProject(_0x545dd0,_0x4ba58b){const _0x534d6c=_0x10fb9d;return!_0x4ba58b['fromNet']&&(await resource_1[_0x534d6c(0x208)][_0x534d6c(0x205)](_0x545dd0),console[_0x534d6c(0x21a)]('move\x20web\x20project:\x20ok')),await resource_1[_0x534d6c(0x208)]['generateIcon'](_0x4ba58b);}function _0x38f7(){const _0x1f65c5=['2136252gJPnge','run','4589823YdpGAq','version','checkPlatformPath','15AfYjnJ','3112592NWbeLr','json','checkStoreParams','default','project','../utils/history','2221256obUEEa','18ozMoIx','PWAGenerator','../resource','log','-------------------\x20parse\x20start\x20-------------------','./check','recordManifest','fromNet','checkManifest','name','../pwa','WebSpatialTest','dist','runWithHistory','build','platform','stringify','-------------------\x20parse\x20end\x20-------------------','upload','192006mYgZaT','384898msRonp','checkBuildParams','../xcode','725715IOSYNH','export','parseProject','app-store-connect','tryWithoutBuild','moveProjectFrom','XcodeManager','__esModule','ResourceManager','true'];_0x38f7=function(){return _0x1f65c5;};return _0x38f7();}async function doXcode(_0x529c3c,_0x406792,_0xca4ca6,_0x30c78d=![]){const _0x3473d0=_0x10fb9d;await xcode_1['XcodeManager'][_0x3473d0(0x202)]({'icon':_0x406792,'manifestInfo':_0xca4ca6,'teamId':_0x529c3c['teamId'],'version':_0x529c3c[_0x3473d0(0x20d)],'buildType':_0x529c3c['buildType'],'export':_0x529c3c[_0x3473d0(0x201)]},_0x30c78d);}
@@ -1,3 +1,2 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function checkBuildParams(args: ParsedArgs, isDev?: boolean): void;
3
- export declare function checkStoreParams(args: ParsedArgs): void;
1
+ export declare function checkBuildParams(args: any, isDev?: boolean): void;
2
+ export declare function checkStoreParams(args: any): void;
@@ -1 +1 @@
1
- 'use strict';function _0x2be2(_0x14ee52,_0x31d797){const _0xb76256=_0xb762();return _0x2be2=function(_0x2be2a0,_0x50faf5){_0x2be2a0=_0x2be2a0-0x16a;let _0x320eec=_0xb76256[_0x2be2a0];return _0x320eec;},_0x2be2(_0x14ee52,_0x31d797);}const _0x175ae8=_0x2be2;(function(_0x23dd62,_0x4eb1cc){const _0x4d8af1=_0x2be2,_0x79ae7f=_0x23dd62();while(!![]){try{const _0x1613f2=parseInt(_0x4d8af1(0x16b))/0x1*(-parseInt(_0x4d8af1(0x182))/0x2)+parseInt(_0x4d8af1(0x175))/0x3+parseInt(_0x4d8af1(0x181))/0x4+parseInt(_0x4d8af1(0x180))/0x5*(-parseInt(_0x4d8af1(0x183))/0x6)+-parseInt(_0x4d8af1(0x17a))/0x7+-parseInt(_0x4d8af1(0x17f))/0x8+parseInt(_0x4d8af1(0x17b))/0x9*(parseInt(_0x4d8af1(0x16e))/0xa);if(_0x1613f2===_0x4eb1cc)break;else _0x79ae7f['push'](_0x79ae7f['shift']());}catch(_0x2626b4){_0x79ae7f['push'](_0x79ae7f['shift']());}}}(_0xb762,0x9add3));Object[_0x175ae8(0x179)](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports['checkStoreParams']=checkStoreParams;const validate_1=require(_0x175ae8(0x177));function checkBuildParams(_0x2d7e5b,_0x3de8db=![]){const _0x38c1ac=_0x175ae8;if(_0x2d7e5b[_0x38c1ac(0x178)]&&_0x2d7e5b[_0x38c1ac(0x174)])throw new Error(_0x38c1ac(0x171));if(!_0x2d7e5b[_0x38c1ac(0x176)]&&!_0x3de8db)throw new Error(_0x38c1ac(0x173));if(_0x2d7e5b[_0x38c1ac(0x17d)]){if((0x0,validate_1['validateURL'])(_0x2d7e5b['base']))try{const _0x48f2f7=new URL(_0x2d7e5b[_0x38c1ac(0x17d)]);if(_0x48f2f7[_0x38c1ac(0x16f)]||_0x48f2f7[_0x38c1ac(0x172)])throw new Error(_0x38c1ac(0x170));}catch(_0x23960b){throw new Error(_0x38c1ac(0x170));}else{const _0x51ec6d=/(\?.*|\.\w+|#.*)$/,_0x455cc6=_0x2d7e5b['base'][_0x38c1ac(0x17e)]('/')[_0x38c1ac(0x16d)]()||'';if(_0x51ec6d[_0x38c1ac(0x16a)](_0x455cc6))throw new Error(_0x38c1ac(0x170));}}}function _0xb762(){const _0x2bf937=['split','550888QxGvaq','3957755NdoPrt','636260cBrrxm','681934EUMrdU','6tikpfw','test','3EKZrEZ','--u\x20and\x20--p\x20is\x20required','pop','10802420xoQQtU','search','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','hash','--teamId\x20is\x20required','manifest-url','2403897SFYBBW','teamId','../pwa/validate','manifest','defineProperty','4222484cdxiGN','18akIsmT','version\x20is\x20required','base'];_0xb762=function(){return _0x2bf937;};return _0xb762();}function checkStoreParams(_0x438206){const _0x3d8569=_0x175ae8;if(!(_0x438206['u']&&_0x438206['p']))throw new Error(_0x3d8569(0x16c));if(!_0x438206['version'])throw new Error(_0x3d8569(0x17c));}
1
+ 'use strict';const _0x3fcb8c=_0x1b91;(function(_0xddda89,_0x2911e4){const _0x398225=_0x1b91,_0x14616f=_0xddda89();while(!![]){try{const _0x12a2b0=-parseInt(_0x398225(0x149))/0x1+parseInt(_0x398225(0x13f))/0x2*(parseInt(_0x398225(0x136))/0x3)+-parseInt(_0x398225(0x13e))/0x4*(-parseInt(_0x398225(0x12f))/0x5)+-parseInt(_0x398225(0x13b))/0x6+parseInt(_0x398225(0x134))/0x7+-parseInt(_0x398225(0x145))/0x8*(parseInt(_0x398225(0x138))/0x9)+-parseInt(_0x398225(0x147))/0xa*(-parseInt(_0x398225(0x140))/0xb);if(_0x12a2b0===_0x2911e4)break;else _0x14616f['push'](_0x14616f['shift']());}catch(_0x127022){_0x14616f['push'](_0x14616f['shift']());}}}(_0x2aa4,0x8609d));Object[_0x3fcb8c(0x146)](exports,_0x3fcb8c(0x13d),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x3fcb8c(0x142)]=checkStoreParams;const validate_1=require(_0x3fcb8c(0x133));function _0x1b91(_0x2d9e36,_0x17f60f){const _0x2aa411=_0x2aa4();return _0x1b91=function(_0x1b91ca,_0x1a0ec5){_0x1b91ca=_0x1b91ca-0x12e;let _0x3c6ca9=_0x2aa411[_0x1b91ca];return _0x3c6ca9;},_0x1b91(_0x2d9e36,_0x17f60f);}function checkBuildParams(_0x1b4909,_0x128fb7=![]){const _0x16b114=_0x3fcb8c;if(_0x1b4909[_0x16b114(0x13a)]&&_0x1b4909[_0x16b114(0x141)])throw new Error(_0x16b114(0x13c));if(!_0x1b4909[_0x16b114(0x143)]&&!_0x128fb7)throw new Error(_0x16b114(0x132));if(_0x1b4909[_0x16b114(0x135)]){if((0x0,validate_1[_0x16b114(0x14a)])(_0x1b4909['base']))try{const _0x7296a5=new URL(_0x1b4909[_0x16b114(0x135)]);if(_0x7296a5[_0x16b114(0x144)]||_0x7296a5[_0x16b114(0x137)])throw new Error(_0x16b114(0x148));}catch(_0x4e912a){throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}else{const _0x20c580=/(\?.*|\.\w+|#.*)$/,_0x2d870f=_0x1b4909[_0x16b114(0x135)][_0x16b114(0x130)]('/')['pop']()||'';if(_0x20c580['test'](_0x2d870f))throw new Error(_0x16b114(0x148));}}}function checkStoreParams(_0x43a901){const _0xabc42b=_0x3fcb8c;if(!(_0x43a901['u']&&_0x43a901['p']))throw new Error(_0xabc42b(0x12e));if(!_0x43a901[_0xabc42b(0x131)])throw new Error(_0xabc42b(0x139));}function _0x2aa4(){const _0x25eadf=['1671285JsPzaK','base','21FtwOFy','hash','495KFbHOI','version\x20is\x20required','manifest','6535788GCgkWa','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','__esModule','969692PDowCf','98792gAjKtB','237303snsiDl','manifest-url','checkStoreParams','teamId','search','158968ozfdyX','defineProperty','890gCiJoy','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','258146SpWbRZ','validateURL','--u\x20and\x20--p\x20is\x20required','10NEpJAd','split','version','--teamId\x20is\x20required','../pwa/validate'];_0x2aa4=function(){return _0x25eadf;};return _0x2aa4();}
@@ -1 +1 @@
1
- 'use strict';const _0x2c15cc=_0x3d43;function _0x3d43(_0x19b221,_0x127aee){const _0x1ed51c=_0x1ed5();return _0x3d43=function(_0x3d4315,_0x113b58){_0x3d4315=_0x3d4315-0x79;let _0x19357c=_0x1ed51c[_0x3d4315];return _0x19357c;},_0x3d43(_0x19b221,_0x127aee);}(function(_0x4db358,_0x59b1a2){const _0x2bd40c=_0x3d43,_0x4cbba0=_0x4db358();while(!![]){try{const _0x37e7f7=-parseInt(_0x2bd40c(0x83))/0x1+-parseInt(_0x2bd40c(0x93))/0x2+-parseInt(_0x2bd40c(0x87))/0x3+-parseInt(_0x2bd40c(0x85))/0x4+-parseInt(_0x2bd40c(0x7d))/0x5+parseInt(_0x2bd40c(0x79))/0x6+parseInt(_0x2bd40c(0x81))/0x7;if(_0x37e7f7===_0x59b1a2)break;else _0x4cbba0['push'](_0x4cbba0['shift']());}catch(_0x2b5190){_0x4cbba0['push'](_0x4cbba0['shift']());}}}(_0x1ed5,0x6e13b));Object[_0x2c15cc(0x7c)](exports,'__esModule',{'value':!![]}),exports[_0x2c15cc(0x88)]=help;const Log_1=require(_0x2c15cc(0x80)),HELP_MESSAGES=new Map([[_0x2c15cc(0x8d),['webspatial\x20[command]\x20<options>','','',_0x2c15cc(0x91),_0x2c15cc(0x7f)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x2c15cc(0x82),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x8e),[_0x2c15cc(0x84),'','',_0x2c15cc(0x8c),'','',_0x2c15cc(0x8f)][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x90),[_0x2c15cc(0x84),'','',_0x2c15cc(0x94),'','',_0x2c15cc(0x89)][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x8a),[_0x2c15cc(0x84),'','',_0x2c15cc(0x86),'','',_0x2c15cc(0x7b),'','',_0x2c15cc(0x7e)][_0x2c15cc(0x7a)]('\x0a')]]);function _0x1ed5(){const _0x53c5d7=['join','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','defineProperty','3186420CZjUjt','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','../utils/Log','12296256Ixvgeu','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','140182DekiQa','Usage:','1099996qhmtcR','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','380205KOYpOx','help','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','publish','get','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','main','build','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','dev','help\x20................\x20shows\x20this\x20menu','ConsoleLog','296556VHAPDK','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','130470QstgCQ'];_0x1ed5=function(){return _0x53c5d7;};return _0x1ed5();}async function help(_0x428b48,_0x1ac165=new Log_1[(_0x2c15cc(0x92))](_0x2c15cc(0x88))){const _0x39634d=_0x2c15cc,_0x40e508=_0x428b48['_'][0x1],_0x213fa3=HELP_MESSAGES[_0x39634d(0x8b)](_0x40e508)||HELP_MESSAGES[_0x39634d(0x8b)]('main');return _0x1ac165['info'](_0x213fa3),!![];}
1
+ 'use strict';const _0x1a5403=_0x5d84;function _0x2a52(){const _0x210760=['webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','get','80628yBGINZ','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','help','133299ZUNzMK','../utils/Log','__esModule','562520mvIIzA','82046GPIpJf','6PyOiCw','main','322521AeWZtI','help\x20................\x20shows\x20this\x20menu','895993QEjTjm','publish','33220SQkrMH','Usage:','270aDatOo','join','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','dev','build','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','150XnsACm','8HycPhj','3540JtEsvU','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','info','ConsoleLog','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','defineProperty'];_0x2a52=function(){return _0x210760;};return _0x2a52();}(function(_0x451022,_0x29c6bc){const _0xe8ab1f=_0x5d84,_0x2f67cd=_0x451022();while(!![]){try{const _0x4c8a44=-parseInt(_0xe8ab1f(0x108))/0x1+parseInt(_0xe8ab1f(0x109))/0x2*(-parseInt(_0xe8ab1f(0x10b))/0x3)+-parseInt(_0xe8ab1f(0x107))/0x4+-parseInt(_0xe8ab1f(0x117))/0x5*(-parseInt(_0xe8ab1f(0x121))/0x6)+parseInt(_0xe8ab1f(0x10d))/0x7*(-parseInt(_0xe8ab1f(0x118))/0x8)+-parseInt(_0xe8ab1f(0x104))/0x9*(parseInt(_0xe8ab1f(0x111))/0xa)+-parseInt(_0xe8ab1f(0x10f))/0xb*(-parseInt(_0xe8ab1f(0x119))/0xc);if(_0x4c8a44===_0x29c6bc)break;else _0x2f67cd['push'](_0x2f67cd['shift']());}catch(_0x5e0b26){_0x2f67cd['push'](_0x2f67cd['shift']());}}}(_0x2a52,0x35f13));function _0x5d84(_0x1e6edd,_0x187d7e){const _0x2a5288=_0x2a52();return _0x5d84=function(_0x5d846a,_0x2d862e){_0x5d846a=_0x5d846a-0x104;let _0x948243=_0x2a5288[_0x5d846a];return _0x948243;},_0x5d84(_0x1e6edd,_0x187d7e);}Object[_0x1a5403(0x11e)](exports,_0x1a5403(0x106),{'value':!![]}),exports[_0x1a5403(0x123)]=help;const Log_1=require(_0x1a5403(0x105)),HELP_MESSAGES=new Map([[_0x1a5403(0x10a),['webspatial\x20[command]\x20<options>','','',_0x1a5403(0x10c),_0x1a5403(0x116)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x115),[_0x1a5403(0x110),'','',_0x1a5403(0x122),'','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x114),['Usage:','','',_0x1a5403(0x11f),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x10e),[_0x1a5403(0x110),'','',_0x1a5403(0x11d),'','',_0x1a5403(0x113),'','',_0x1a5403(0x11a)][_0x1a5403(0x112)]('\x0a')]]);async function help(_0x2fbe13,_0x5f1f54=new Log_1[(_0x1a5403(0x11c))]('help')){const _0x5c95ec=_0x1a5403,_0x17eca7=_0x2fbe13['_'][0x1],_0x396ca5=HELP_MESSAGES[_0x5c95ec(0x120)](_0x17eca7)||HELP_MESSAGES['get'](_0x5c95ec(0x10a));return _0x5f1f54[_0x5c95ec(0x11b)](_0x396ca5),!![];}
@@ -1 +1 @@
1
- 'use strict';const _0x3f4ab9=_0xfd91;(function(_0x340d09,_0x40ef2d){const _0x2104b8=_0xfd91,_0x1e102c=_0x340d09();while(!![]){try{const _0xb3379d=-parseInt(_0x2104b8(0x1ef))/0x1+parseInt(_0x2104b8(0x1f2))/0x2+parseInt(_0x2104b8(0x1ec))/0x3+-parseInt(_0x2104b8(0x1f6))/0x4+-parseInt(_0x2104b8(0x1f9))/0x5*(-parseInt(_0x2104b8(0x1f0))/0x6)+-parseInt(_0x2104b8(0x1f1))/0x7+-parseInt(_0x2104b8(0x1f7))/0x8*(parseInt(_0x2104b8(0x1ed))/0x9);if(_0xb3379d===_0x40ef2d)break;else _0x1e102c['push'](_0x1e102c['shift']());}catch(_0x396aa7){_0x1e102c['push'](_0x1e102c['shift']());}}}(_0x68e2,0x3bed6));function _0xfd91(_0x5d976d,_0x5e4480){const _0x68e254=_0x68e2();return _0xfd91=function(_0xfd911b,_0xc61b7f){_0xfd911b=_0xfd911b-0x1ec;let _0x44ec44=_0x68e254[_0xfd911b];return _0x44ec44;},_0xfd91(_0x5d976d,_0x5e4480);}Object['defineProperty'](exports,_0x3f4ab9(0x1ee),{'value':!![]}),exports[_0x3f4ab9(0x1f5)]=launch;const xcrun_1=require(_0x3f4ab9(0x1f4));function _0x68e2(){const _0x114e9f=['../xcode/xcrun','launch','663308UdKtqD','26672EUjDvW','default','13955uDghpK','428241nYehXj','927VYMRMw','__esModule','80961YMZCub','768hlvKSt','948948qVGOhq','942442YxgFXv','launchWithSimulator'];_0x68e2=function(){return _0x114e9f;};return _0x68e2();}async function launch(_0x8319d2){const _0x449d9e=_0x3f4ab9;var _0x236a71;const _0x2e956e=(_0x236a71=_0x8319d2['bundle-id'])!==null&&_0x236a71!==void 0x0?_0x236a71:'com.webspatial.test';return xcrun_1[_0x449d9e(0x1f8)][_0x449d9e(0x1f3)](_0x2e956e),!![];}
1
+ 'use strict';const _0x449074=_0x2236;(function(_0x4df0b4,_0x5b3849){const _0x16fe27=_0x2236,_0x5c3ee5=_0x4df0b4();while(!![]){try{const _0x391aee=parseInt(_0x16fe27(0x108))/0x1*(-parseInt(_0x16fe27(0x113))/0x2)+parseInt(_0x16fe27(0x110))/0x3*(parseInt(_0x16fe27(0x107))/0x4)+parseInt(_0x16fe27(0x109))/0x5+-parseInt(_0x16fe27(0x10c))/0x6*(-parseInt(_0x16fe27(0x10a))/0x7)+parseInt(_0x16fe27(0x10e))/0x8+parseInt(_0x16fe27(0x10b))/0x9+parseInt(_0x16fe27(0x10f))/0xa*(-parseInt(_0x16fe27(0x115))/0xb);if(_0x391aee===_0x5b3849)break;else _0x5c3ee5['push'](_0x5c3ee5['shift']());}catch(_0x3f36d6){_0x5c3ee5['push'](_0x5c3ee5['shift']());}}}(_0x331e,0x4ef00));function _0x331e(){const _0x245adb=['733545kzdgOj','1141DMRWTm','1321371FIJEvp','20766YcKteA','bundle-id','116648eigIri','873640cppsAh','20319xevPwR','launchWithSimulator','defineProperty','6850BClgvS','default','55UGcdVV','com.webspatial.test','../xcode/xcrun','__esModule','308JdLbZf','185UNdhtg'];_0x331e=function(){return _0x245adb;};return _0x331e();}function _0x2236(_0x365890,_0x137d2d){const _0x331e11=_0x331e();return _0x2236=function(_0x223690,_0x28ad4a){_0x223690=_0x223690-0x104;let _0x575b21=_0x331e11[_0x223690];return _0x575b21;},_0x2236(_0x365890,_0x137d2d);}Object[_0x449074(0x112)](exports,_0x449074(0x106),{'value':!![]}),exports['launch']=launch;const xcrun_1=require(_0x449074(0x105));async function launch(_0x2a5563){const _0x233263=_0x449074;var _0x5c8676;const _0x6361f4=(_0x5c8676=_0x2a5563[_0x233263(0x10d)])!==null&&_0x5c8676!==void 0x0?_0x5c8676:_0x233263(0x104),_0x368a08={'name':'','id':_0x6361f4};return xcrun_1[_0x233263(0x114)][_0x233263(0x111)](_0x368a08),!![];}
@@ -1 +1 @@
1
- 'use strict';function _0x3811(){const _0xce63a3=['../xcode/xcrun','217250mmwyZf','462440Dtcgpb','763592RPTErR','2882810RAsPZm','246093tHXYKr','2647827sJkOJp','261uWHyVf','__esModule','shutdownSimulator','28siJWuI','default','3057702IUatwV','shutdown'];_0x3811=function(){return _0xce63a3;};return _0x3811();}const _0x5ee746=_0x2883;function _0x2883(_0x515e82,_0x1cdecf){const _0x38115f=_0x3811();return _0x2883=function(_0x28830c,_0x357700){_0x28830c=_0x28830c-0xab;let _0x327b56=_0x38115f[_0x28830c];return _0x327b56;},_0x2883(_0x515e82,_0x1cdecf);}(function(_0x47d29b,_0x38b75b){const _0x3c028c=_0x2883,_0x2ca25f=_0x47d29b();while(!![]){try{const _0x2a3dd6=parseInt(_0x3c028c(0xad))/0x1+parseInt(_0x3c028c(0xab))/0x2+parseInt(_0x3c028c(0xaf))/0x3*(parseInt(_0x3c028c(0xb4))/0x4)+parseInt(_0x3c028c(0xae))/0x5+parseInt(_0x3c028c(0xb6))/0x6+-parseInt(_0x3c028c(0xb0))/0x7+parseInt(_0x3c028c(0xac))/0x8*(-parseInt(_0x3c028c(0xb1))/0x9);if(_0x2a3dd6===_0x38b75b)break;else _0x2ca25f['push'](_0x2ca25f['shift']());}catch(_0x9c0f76){_0x2ca25f['push'](_0x2ca25f['shift']());}}}(_0x3811,0x74b37));Object['defineProperty'](exports,_0x5ee746(0xb2),{'value':!![]}),exports[_0x5ee746(0xb7)]=shutdown;const xcrun_1=require(_0x5ee746(0xb8));async function shutdown(_0x2fbadf){const _0x5a1f03=_0x5ee746;return xcrun_1[_0x5a1f03(0xb5)][_0x5a1f03(0xb3)](),!![];}
1
+ 'use strict';const _0x510643=_0x5356;(function(_0x39008f,_0x3567e3){const _0x486512=_0x5356,_0x360e21=_0x39008f();while(!![]){try{const _0x3f41ba=parseInt(_0x486512(0xc5))/0x1*(-parseInt(_0x486512(0xc2))/0x2)+parseInt(_0x486512(0xce))/0x3*(parseInt(_0x486512(0xcd))/0x4)+-parseInt(_0x486512(0xc9))/0x5+parseInt(_0x486512(0xc8))/0x6+parseInt(_0x486512(0xca))/0x7+-parseInt(_0x486512(0xc4))/0x8*(parseInt(_0x486512(0xcf))/0x9)+-parseInt(_0x486512(0xc3))/0xa*(-parseInt(_0x486512(0xc7))/0xb);if(_0x3f41ba===_0x3567e3)break;else _0x360e21['push'](_0x360e21['shift']());}catch(_0x16ba9f){_0x360e21['push'](_0x360e21['shift']());}}}(_0x35b0,0xf173f));function _0x5356(_0x33f143,_0x42c29d){const _0x35b0d3=_0x35b0();return _0x5356=function(_0x5356b2,_0x26e918){_0x5356b2=_0x5356b2-0xc2;let _0x449e7b=_0x35b0d3[_0x5356b2];return _0x449e7b;},_0x5356(_0x33f143,_0x42c29d);}Object[_0x510643(0xc6)](exports,_0x510643(0xd0),{'value':!![]}),exports[_0x510643(0xcb)]=shutdown;function _0x35b0(){const _0x878cc1=['6zZYnZD','72ZRemdI','__esModule','1182sofXeh','30nHmGNg','1349392gljxgL','1091qbxhqo','defineProperty','1473791cpWqph','5545950YdxfWz','4572385MXOxbi','7431543gWeBhz','shutdown','../xcode/xcrun','3019448WZFqGR'];_0x35b0=function(){return _0x878cc1;};return _0x35b0();}const xcrun_1=require(_0x510643(0xcc));async function shutdown(_0x3e9bda){return xcrun_1['default']['shutdownSimulator'](),!![];}
@@ -1,2 +1 @@
1
- import { Log } from '../utils/Log';
2
- export declare function version(log?: Log): Promise<boolean>;
1
+ export declare function getVersion(): Promise<string>;
@@ -1 +1 @@
1
- 'use strict';const _0x2707fe=_0x1a24;function _0x4080(){const _0xa6cacf=['644392OCoABt','2868WyYDfS','__esModule','readFile','36NSGlGZ','toString','285880llTcxE','35001imQCJv','46TeTmix','parse','../../../package.json','defineProperty','join','10VMOOhx','promises','801655KannfQ','../utils/Log','version','519ILOliw','path','14366QnrlvY','4JDJOZg','315135KrQtot','ConsoleLog'];_0x4080=function(){return _0xa6cacf;};return _0x4080();}function _0x1a24(_0x28dd26,_0x396775){const _0x408069=_0x4080();return _0x1a24=function(_0x1a24ea,_0x438e35){_0x1a24ea=_0x1a24ea-0x1cd;let _0x5624e9=_0x408069[_0x1a24ea];return _0x5624e9;},_0x1a24(_0x28dd26,_0x396775);}(function(_0x9e5e88,_0x14d285){const _0x1c34a6=_0x1a24,_0x25cdc8=_0x9e5e88();while(!![]){try{const _0x3404c2=-parseInt(_0x1c34a6(0x1d4))/0x1+-parseInt(_0x1c34a6(0x1d5))/0x2*(parseInt(_0x1c34a6(0x1df))/0x3)+-parseInt(_0x1c34a6(0x1e2))/0x4*(-parseInt(_0x1c34a6(0x1dc))/0x5)+parseInt(_0x1c34a6(0x1d1))/0x6*(parseInt(_0x1c34a6(0x1d3))/0x7)+parseInt(_0x1c34a6(0x1cd))/0x8+-parseInt(_0x1c34a6(0x1e3))/0x9*(-parseInt(_0x1c34a6(0x1da))/0xa)+-parseInt(_0x1c34a6(0x1e1))/0xb*(parseInt(_0x1c34a6(0x1ce))/0xc);if(_0x3404c2===_0x14d285)break;else _0x25cdc8['push'](_0x25cdc8['shift']());}catch(_0x2791cd){_0x25cdc8['push'](_0x25cdc8['shift']());}}}(_0x4080,0x2975d));Object[_0x2707fe(0x1d8)](exports,_0x2707fe(0x1cf),{'value':!![]}),exports[_0x2707fe(0x1de)]=version;const fs=require('fs'),path=require(_0x2707fe(0x1e0)),Log_1=require(_0x2707fe(0x1dd));async function version(_0x4b1ec8=new Log_1[(_0x2707fe(0x1e4))]('version')){const _0x459426=_0x2707fe,_0x998d11=path[_0x459426(0x1d9)](__dirname,_0x459426(0x1d7)),_0x51a120=await(await fs[_0x459426(0x1db)][_0x459426(0x1d0)](_0x998d11))[_0x459426(0x1d2)](),_0x175c04=JSON[_0x459426(0x1d6)](_0x51a120);return _0x4b1ec8['info'](_0x175c04[_0x459426(0x1de)]),!![];}
1
+ 'use strict';const _0x69e615=_0x467d;(function(_0x57ccc1,_0x1d7cf1){const _0x33a591=_0x467d,_0x701f77=_0x57ccc1();while(!![]){try{const _0x39f3b5=parseInt(_0x33a591(0x12d))/0x1*(-parseInt(_0x33a591(0x138))/0x2)+parseInt(_0x33a591(0x12e))/0x3+parseInt(_0x33a591(0x132))/0x4*(-parseInt(_0x33a591(0x136))/0x5)+parseInt(_0x33a591(0x133))/0x6+parseInt(_0x33a591(0x135))/0x7*(parseInt(_0x33a591(0x130))/0x8)+-parseInt(_0x33a591(0x139))/0x9+-parseInt(_0x33a591(0x12f))/0xa;if(_0x39f3b5===_0x1d7cf1)break;else _0x701f77['push'](_0x701f77['shift']());}catch(_0x27a327){_0x701f77['push'](_0x701f77['shift']());}}}(_0x4598,0xc86db));Object[_0x69e615(0x134)](exports,_0x69e615(0x13b),{'value':!![]}),exports['getVersion']=getVersion;const fs=require('fs'),path=require(_0x69e615(0x12a));function _0x467d(_0x73639b,_0xc78254){const _0x4598c7=_0x4598();return _0x467d=function(_0x467d30,_0x347801){_0x467d30=_0x467d30-0x12a;let _0x3bb372=_0x4598c7[_0x467d30];return _0x3bb372;},_0x467d(_0x73639b,_0xc78254);}async function getVersion(){const _0x2ff6f0=_0x69e615,_0x41f172=path[_0x2ff6f0(0x137)](__dirname,_0x2ff6f0(0x13a)),_0x552f6d=await(await fs[_0x2ff6f0(0x12b)][_0x2ff6f0(0x12c)](_0x41f172))['toString'](),_0x5031d7=JSON['parse'](_0x552f6d);return _0x5031d7[_0x2ff6f0(0x131)];}function _0x4598(){const _0x313ced=['join','2jDYKGr','13057668cTlGKB','../../../package.json','__esModule','path','promises','readFile','89633TRjUiq','2631114BuuIWk','8377450LGlmdj','760rWznlF','version','27712cxJfKB','6698106GsOKBi','defineProperty','92932glveik','40THUBsc'];_0x4598=function(){return _0x313ced;};return _0x4598();}
@@ -1 +1 @@
1
- 'use strict';const _0x477fbb=_0x19fe;(function(_0x2b32e4,_0x5c361f){const _0x5d1148=_0x19fe,_0x1001cf=_0x2b32e4();while(!![]){try{const _0x152352=-parseInt(_0x5d1148(0xd7))/0x1*(-parseInt(_0x5d1148(0xc5))/0x2)+-parseInt(_0x5d1148(0xba))/0x3*(-parseInt(_0x5d1148(0xbf))/0x4)+-parseInt(_0x5d1148(0xb0))/0x5*(parseInt(_0x5d1148(0xc0))/0x6)+-parseInt(_0x5d1148(0xe4))/0x7+parseInt(_0x5d1148(0xd5))/0x8+parseInt(_0x5d1148(0xe5))/0x9*(-parseInt(_0x5d1148(0xc3))/0xa)+parseInt(_0x5d1148(0xe7))/0xb;if(_0x152352===_0x5c361f)break;else _0x1001cf['push'](_0x1001cf['shift']());}catch(_0x28eff6){_0x1001cf['push'](_0x1001cf['shift']());}}}(_0x4ca1,0x26236));Object['defineProperty'](exports,_0x477fbb(0xb6),{'value':!![]}),exports['safelist']=void 0x0,exports['configId']=configId,exports['configStartUrl']=configStartUrl,exports[_0x477fbb(0xe8)]=configScope,exports['configDisplay']=configDisplay,exports[_0x477fbb(0xd6)]=configMainScene,exports[_0x477fbb(0xd9)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x477fbb(0xc1)),path_1=require('path');function configId(_0xbf35ba,_0xf34f86){const _0x3c22a2=_0x477fbb;if(_0xf34f86)_0xbf35ba['id']=_0xf34f86;else try{const _0x6b9e1c=new URL(_0xbf35ba['id']);let _0x138c3c=_0x6b9e1c[_0x3c22a2(0xbd)][_0x3c22a2(0xe2)]('.')['reverse']();_0xbf35ba['id']=_0x138c3c[_0x3c22a2(0xb4)]('.');}catch(_0x357fa1){throw new Error(_0x3c22a2(0xee)+_0xbf35ba['id']+_0x3c22a2(0xe3));}}function _0x4ca1(){const _0x59b211=['fullscreen','106934CSUNaB','origin','default_size','splice','pathname','defaultSize','cwd','standalone','search','minimal-ui','sip','parseRouter','irc','sort','web+','ircs','313832hWndlw','configMainScene','1LBLjyU','wtai','configDeeplink','ssh','display','display_override','geo','xr_main_scene','resolve','normalize','length','split','\x20\x20is\x20not\x20a\x20valid\x20url','635803osWxBL','27SyPEhU','includes','3367067yxlJdC','configScope','webcal','protocol','news','height','replace','id:','sms','dynamic','contentMinSize','protocol_handlers','start_url','filter','tel','startsWith','map','urn','width','hash','ftps','2035fMfPFe','object','validateURL','url','join','./static-web','__esModule','safelist','magnet','resizability','246IJUvxb','automatic','scope','host','indexOf','5248Lfrgmd','258gLeagf','./validate','href','806110CxAowS'];_0x4ca1=function(){return _0x59b211;};return _0x4ca1();}function configStartUrl(_0x55aff4,_0x3e1cac,_0x1ba33d,_0x4a4604){const _0x1be00b=_0x477fbb;var _0x461dfe;let _0x67e372=(_0x461dfe=_0x55aff4['start_url'])!==null&&_0x461dfe!==void 0x0?_0x461dfe:'/';const _0x50a8ff=(0x0,validate_1[_0x1be00b(0xb2)])(_0x67e372),_0x54405a=_0x3e1cac[_0x1be00b(0xe1)]>0x0;if(_0x54405a){const _0x27c7ff=(0x0,validate_1[_0x1be00b(0xb2)])(_0x3e1cac);if(!_0x50a8ff&&!_0x27c7ff){const _0x47baf6=(0x0,path_1['resolve'])(_0x1be00b(0xb5)),_0x5afea0=(0x0,path_1[_0x1be00b(0xdf)])(_0x47baf6,_0x3e1cac,_0x67e372),_0x8ad275=(0x0,path_1[_0x1be00b(0xe0)])(_0x5afea0),_0x165093=(0x0,path_1[_0x1be00b(0xb4)])(_0x47baf6,_0x8ad275);_0x67e372=(0x0,path_1['relative'])(process[_0x1be00b(0xcb)](),_0x165093)[_0x1be00b(0xed)](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}else{if(_0x50a8ff&&!_0x27c7ff){const _0x226767=new URL(_0x67e372),_0x2fe8ed=_0x226767[_0x1be00b(0xc9)]+_0x226767[_0x1be00b(0xcd)]+_0x226767[_0x1be00b(0xae)];let _0x1cef96=new URL(_0x3e1cac,_0x226767[_0x1be00b(0xc6)]);_0x67e372=new URL(_0x2fe8ed,_0x1cef96)[_0x1be00b(0xc2)];}else{if(!_0x50a8ff&&_0x27c7ff){if(_0x67e372[_0x1be00b(0xf6)]('/')){const _0x44ffe0=new URL(_0x3e1cac);_0x67e372=_0x44ffe0[_0x1be00b(0xc6)]+(0x0,path_1[_0x1be00b(0xb4)])(_0x44ffe0['pathname'],_0x67e372);}else _0x67e372=new URL(_0x67e372,_0x3e1cac)[_0x1be00b(0xc2)];}else{if(_0x50a8ff&&_0x27c7ff){const _0x100008=new URL(_0x67e372),_0x214ac9=new URL(_0x3e1cac),_0x3507f6=_0x100008[_0x1be00b(0xc9)]+_0x100008['search']+_0x100008[_0x1be00b(0xae)];_0x67e372=new URL(_0x3507f6,_0x214ac9['origin']+_0x214ac9[_0x1be00b(0xc9)])[_0x1be00b(0xc2)];}}}}}else{if(_0x4a4604){const _0x2fc049=new URL(_0x1ba33d);if(!_0x50a8ff){const _0xef250e=new URL(_0x67e372,_0x2fc049[_0x1be00b(0xc6)]);_0x67e372=_0xef250e[_0x1be00b(0xc2)];}else{const _0x4973ab=new URL(_0x67e372);_0x67e372=_0x2fc049[_0x1be00b(0xc6)]+_0x4973ab[_0x1be00b(0xc9)]+_0x4973ab[_0x1be00b(0xcd)]+_0x4973ab['hash'];}}else{if(!_0x50a8ff){const _0x54035e=(0x0,path_1['resolve'])(_0x1be00b(0xb5)),_0x3ab712=(0x0,path_1[_0x1be00b(0xdf)])(_0x54035e,_0x67e372),_0x236d49=(0x0,path_1['normalize'])(_0x3ab712),_0xb070e1=(0x0,path_1[_0x1be00b(0xb4)])(_0x54035e,_0x236d49);_0x67e372=(0x0,path_1['relative'])(process[_0x1be00b(0xcb)](),_0xb070e1)[_0x1be00b(0xed)](/^(\.\.\/)+/,'./')[_0x1be00b(0xed)](/\/$/,'');}}}return _0x67e372;}function configScope(_0x8c77cf){const _0x101fd4=_0x477fbb;var _0x213c78;let _0xe3044e=(_0x213c78=_0x8c77cf[_0x101fd4(0xbc)])!==null&&_0x213c78!==void 0x0?_0x213c78:'/';const _0x1a4a47=(0x0,validate_1[_0x101fd4(0xb2)])(_0x8c77cf['start_url']),_0x402667=(0x0,validate_1[_0x101fd4(0xb2)])(_0xe3044e);if(_0x1a4a47&&_0x402667){const _0x5cfb31=new URL(_0xe3044e),_0x4a2d05=new URL(_0x8c77cf[_0x101fd4(0xf3)]);(_0x5cfb31[_0x101fd4(0xbd)]!==_0x4a2d05[_0x101fd4(0xbd)]||_0x8c77cf['start_url'][_0x101fd4(0xbe)](_0xe3044e)!==0x0)&&(_0xe3044e=(0x0,utils_1[_0x101fd4(0xd0)])(_0x8c77cf['start_url']));}else{if(_0x1a4a47&&!_0x402667)_0xe3044e=new URL(_0xe3044e,_0x8c77cf[_0x101fd4(0xf3)])['href'];else{if(!_0x1a4a47&&_0x402667){const _0x232a01=_0x8c77cf['start_url'][_0x101fd4(0xed)](/\/[^\/]+$/,'');_0xe3044e=(0x0,path_1['normalize'])(_0x232a01+'/');}else _0xe3044e=(0x0,path_1[_0x101fd4(0xb4)])((0x0,utils_1['parseRouter'])(_0x8c77cf[_0x101fd4(0xf3)]),_0xe3044e);}}_0x8c77cf[_0x101fd4(0xbc)]=_0xe3044e;}function configDisplay(_0x572ab9){const _0x25c90e=_0x477fbb;let _0x4bbe68=_0x572ab9[_0x25c90e(0xdb)];const _0x2fa970=[_0x25c90e(0xce),_0x25c90e(0xcc),_0x25c90e(0xc4)];!_0x2fa970[_0x25c90e(0xe6)](_0x4bbe68)&&(_0x4bbe68='standalone');if(_0x572ab9[_0x25c90e(0xdc)]&&_0x572ab9[_0x25c90e(0xdc)][_0x25c90e(0xe1)]>0x0){const _0x3215b1=_0x572ab9[_0x25c90e(0xdc)][_0x25c90e(0xf7)]((_0x1ac1b5,_0x102f99)=>({'mode':_0x1ac1b5,'index':_0x102f99}))[_0x25c90e(0xf4)](({mode:_0xf82da})=>_0x2fa970[_0x25c90e(0xe6)](_0xf82da))[_0x25c90e(0xd2)]((_0x116833,_0x2978df)=>_0x116833['index']-_0x2978df['index']);_0x3215b1[_0x25c90e(0xe1)]>0x0&&(_0x4bbe68=_0x3215b1[0x0]['mode']);}_0x572ab9[_0x25c90e(0xdb)]=_0x4bbe68;}function configMainScene(_0x470211){const _0x13dea9=_0x477fbb;var _0x47a669,_0x279c81;const _0x358f60=['automatic',_0x13dea9(0xf1),'contentSize'];let _0x553539={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x13dea9(0xbb)};if(_0x470211[_0x13dea9(0xde)]){if(typeof _0x470211[_0x13dea9(0xde)]===_0x13dea9(0xb1))_0x553539[_0x13dea9(0xca)][_0x13dea9(0xad)]=Number((_0x47a669=_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)])===null||_0x47a669===void 0x0?void 0x0:_0x47a669[_0x13dea9(0xad)])>0x0?_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)][_0x13dea9(0xad)]:0x500,_0x553539['defaultSize'][_0x13dea9(0xec)]=Number((_0x279c81=_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)])===null||_0x279c81===void 0x0?void 0x0:_0x279c81['height'])>0x0?_0x470211['xr_main_scene'][_0x13dea9(0xc7)][_0x13dea9(0xec)]:0x500,_0x553539[_0x13dea9(0xb9)]=_0x358f60[_0x13dea9(0xe6)](_0x470211[_0x13dea9(0xde)]['resizability'])?_0x470211['xr_main_scene'][_0x13dea9(0xb9)]:_0x13dea9(0xbb),_0x470211['mainScene']=_0x553539;else typeof _0x470211[_0x13dea9(0xde)]==='string'&&(_0x470211['mainScene']=_0x13dea9(0xf0));}}function _0x19fe(_0x5943ca,_0x555950){const _0x4ca1f2=_0x4ca1();return _0x19fe=function(_0x19fe33,_0x47255e){_0x19fe33=_0x19fe33-0xad;let _0x42545f=_0x4ca1f2[_0x19fe33];return _0x42545f;},_0x19fe(_0x5943ca,_0x555950);}function configDeeplink(_0x554a2e){const _0x2006ad=_0x477fbb;if(_0x554a2e[_0x2006ad(0xf2)]&&_0x554a2e[_0x2006ad(0xf2)][_0x2006ad(0xe1)]>0x0)for(var _0x3ced1d=0x0;_0x3ced1d<_0x554a2e['protocol_handlers']['length'];_0x3ced1d++){const _0x121181=_0x554a2e['protocol_handlers'][_0x3ced1d];if(_0x121181[_0x2006ad(0xea)]&&(exports[_0x2006ad(0xb7)][_0x2006ad(0xe6)](_0x121181[_0x2006ad(0xea)])||_0x121181[_0x2006ad(0xea)]['indexOf'](_0x2006ad(0xd3))===0x0)){if(!((0x0,validate_1[_0x2006ad(0xb2)])(_0x121181[_0x2006ad(0xb3)])&&_0x121181[_0x2006ad(0xb3)][_0x2006ad(0xbe)](_0x554a2e[_0x2006ad(0xbc)])<0x0))continue;}_0x554a2e[_0x2006ad(0xf2)][_0x2006ad(0xc8)](_0x3ced1d,0x1),_0x3ced1d--;}}exports['safelist']=['bitcoin','ftp',_0x477fbb(0xaf),_0x477fbb(0xdd),'im',_0x477fbb(0xd1),_0x477fbb(0xd4),_0x477fbb(0xb8),'mailto','matrix','mms',_0x477fbb(0xeb),'nntp','openpgp4fpr','sftp',_0x477fbb(0xcf),_0x477fbb(0xef),'smsto',_0x477fbb(0xda),_0x477fbb(0xf5),_0x477fbb(0xf8),_0x477fbb(0xe9),_0x477fbb(0xd8),'xmpp'];
1
+ 'use strict';const _0x5ddbb7=_0x2a3d;(function(_0x5aa333,_0x3e4c66){const _0x1564ef=_0x2a3d,_0x53ed58=_0x5aa333();while(!![]){try{const _0x25d156=parseInt(_0x1564ef(0x119))/0x1+-parseInt(_0x1564ef(0x160))/0x2+-parseInt(_0x1564ef(0x16d))/0x3+-parseInt(_0x1564ef(0x124))/0x4+-parseInt(_0x1564ef(0x13d))/0x5*(-parseInt(_0x1564ef(0x11d))/0x6)+-parseInt(_0x1564ef(0x146))/0x7*(-parseInt(_0x1564ef(0x12d))/0x8)+parseInt(_0x1564ef(0x167))/0x9*(parseInt(_0x1564ef(0x159))/0xa);if(_0x25d156===_0x3e4c66)break;else _0x53ed58['push'](_0x53ed58['shift']());}catch(_0x3446d6){_0x53ed58['push'](_0x53ed58['shift']());}}}(_0x40f0,0xa8a4a));Object[_0x5ddbb7(0x149)](exports,_0x5ddbb7(0x16a),{'value':!![]}),exports[_0x5ddbb7(0x13e)]=void 0x0,exports[_0x5ddbb7(0x134)]=configId,exports[_0x5ddbb7(0x12b)]=configStartUrl,exports[_0x5ddbb7(0x139)]=configScope,exports[_0x5ddbb7(0x164)]=configDisplay,exports['configMainScene']=configMainScene,exports[_0x5ddbb7(0x133)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x5ddbb7(0x12c)),path_1=require(_0x5ddbb7(0x162));function _0x40f0(){const _0x1fc3a5=['configStartUrl','./validate','8sJbEse','normalize','height','resolve','standalone','relative','configDeeplink','configId','href','includes','length','startsWith','configScope','sftp','xmpp','mode','1855585NygZQp','safelist','contentSize','parseRouter','width','scope','sip','url','host','620963LquMfm','irc','smsto','defineProperty','ircs','magnet','automatic','news','mms','webcal','mainScene','string','protocol_handlers','object','./static-web','reverse','sms','urn','ftps','88330GWjKpW','display','origin','display_override','indexOf','index','map','2722160rBqpoC','replace','path','ftp','configDisplay','join','split','765bLCSzr','defaultSize','mailto','__esModule','validateURL','contentMinSize','340920NzELev','wtai','web+','982260yztaJM','start_url','\x20\x20is\x20not\x20a\x20valid\x20url','openpgp4fpr','6efBzcU','splice','cwd','hash','sort','nntp','xr_main_scene','109636kfJkge','fullscreen','pathname','search','resizability','default_size','filter'];_0x40f0=function(){return _0x1fc3a5;};return _0x40f0();}function configId(_0x87cfef,_0x24a122){const _0x3894ac=_0x5ddbb7;if(_0x24a122)_0x87cfef['id']=_0x24a122;else try{const _0x19b4be=new URL(_0x87cfef['id']);let _0x6755db=_0x19b4be[_0x3894ac(0x145)][_0x3894ac(0x166)]('.')[_0x3894ac(0x155)]();_0x87cfef['id']=_0x6755db[_0x3894ac(0x165)]('.');}catch(_0x208ffe){throw new Error('id:'+_0x87cfef['id']+_0x3894ac(0x11b));}}function configStartUrl(_0x345577,_0x1d9ab4,_0x15fcfa,_0x4eee3c){const _0x25165f=_0x5ddbb7;var _0x149876;let _0x32c97b=(_0x149876=_0x345577['start_url'])!==null&&_0x149876!==void 0x0?_0x149876:'/';const _0x3cefe4=(0x0,validate_1['validateURL'])(_0x32c97b),_0x2efbb9=_0x1d9ab4[_0x25165f(0x137)]>0x0;if(_0x2efbb9){const _0x3572d6=(0x0,validate_1['validateURL'])(_0x1d9ab4);if(!_0x3cefe4&&!_0x3572d6){const _0xed8319=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x49e09d=(0x0,path_1[_0x25165f(0x130)])(_0xed8319,_0x1d9ab4,_0x32c97b),_0x56582f=(0x0,path_1['normalize'])(_0x49e09d),_0x4068dd=(0x0,path_1['join'])(_0xed8319,_0x56582f);_0x32c97b=(0x0,path_1['relative'])(process[_0x25165f(0x11f)](),_0x4068dd)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}else{if(_0x3cefe4&&!_0x3572d6){const _0x1ac2f2=new URL(_0x32c97b),_0x100a86=_0x1ac2f2[_0x25165f(0x126)]+_0x1ac2f2['search']+_0x1ac2f2[_0x25165f(0x120)];let _0x4ae894=new URL(_0x1d9ab4,_0x1ac2f2['origin']);_0x32c97b=new URL(_0x100a86,_0x4ae894)[_0x25165f(0x135)];}else{if(!_0x3cefe4&&_0x3572d6){if(_0x32c97b[_0x25165f(0x138)]('/')){const _0x2c1069=new URL(_0x1d9ab4);_0x32c97b=_0x2c1069[_0x25165f(0x15b)]+(0x0,path_1[_0x25165f(0x165)])(_0x2c1069[_0x25165f(0x126)],_0x32c97b);}else _0x32c97b=new URL(_0x32c97b,_0x1d9ab4)['href'];}else{if(_0x3cefe4&&_0x3572d6){const _0x4daffe=new URL(_0x32c97b),_0x678de2=new URL(_0x1d9ab4),_0x225920=_0x4daffe[_0x25165f(0x126)]+_0x4daffe[_0x25165f(0x127)]+_0x4daffe[_0x25165f(0x120)];_0x32c97b=new URL(_0x225920,_0x678de2['origin']+_0x678de2['pathname'])[_0x25165f(0x135)];}}}}}else{if(_0x4eee3c){const _0x4501c7=new URL(_0x15fcfa);if(!_0x3cefe4){const _0x5cc720=new URL(_0x32c97b,_0x4501c7['origin']);_0x32c97b=_0x5cc720[_0x25165f(0x135)];}else{const _0x38fd51=new URL(_0x32c97b);_0x32c97b=_0x4501c7[_0x25165f(0x15b)]+_0x38fd51[_0x25165f(0x126)]+_0x38fd51['search']+_0x38fd51[_0x25165f(0x120)];}}else{if(!_0x3cefe4){const _0x5898a2=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x3db9b0=(0x0,path_1[_0x25165f(0x130)])(_0x5898a2,_0x32c97b),_0x4d8479=(0x0,path_1[_0x25165f(0x12e)])(_0x3db9b0),_0x1b9326=(0x0,path_1[_0x25165f(0x165)])(_0x5898a2,_0x4d8479);_0x32c97b=(0x0,path_1[_0x25165f(0x132)])(process['cwd'](),_0x1b9326)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}}}return _0x32c97b;}function _0x2a3d(_0xea70f5,_0x490d68){const _0x40f0c6=_0x40f0();return _0x2a3d=function(_0x2a3d84,_0x28464f){_0x2a3d84=_0x2a3d84-0x117;let _0xa1e030=_0x40f0c6[_0x2a3d84];return _0xa1e030;},_0x2a3d(_0xea70f5,_0x490d68);}function configScope(_0x1196c9){const _0x8ea497=_0x5ddbb7;var _0x1d7312;let _0x440459=(_0x1d7312=_0x1196c9['scope'])!==null&&_0x1d7312!==void 0x0?_0x1d7312:'/';const _0x2ef073=(0x0,validate_1[_0x8ea497(0x16b)])(_0x1196c9['start_url']),_0x73abda=(0x0,validate_1[_0x8ea497(0x16b)])(_0x440459);if(_0x2ef073&&_0x73abda){const _0xefe19a=new URL(_0x440459),_0x3dbf98=new URL(_0x1196c9['start_url']);(_0xefe19a[_0x8ea497(0x145)]!==_0x3dbf98['host']||_0x1196c9[_0x8ea497(0x11a)][_0x8ea497(0x15d)](_0x440459)!==0x0)&&(_0x440459=(0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]));}else{if(_0x2ef073&&!_0x73abda)_0x440459=new URL(_0x440459,_0x1196c9[_0x8ea497(0x11a)])[_0x8ea497(0x135)];else{if(!_0x2ef073&&_0x73abda){const _0xb05cb7=_0x1196c9[_0x8ea497(0x11a)]['replace'](/\/[^\/]+$/,'');_0x440459=(0x0,path_1['normalize'])(_0xb05cb7+'/');}else _0x440459=(0x0,path_1[_0x8ea497(0x165)])((0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]),_0x440459);}}_0x1196c9['scope']=_0x440459;}function configDisplay(_0xac2bc){const _0x1e5b45=_0x5ddbb7;let _0xb9a576=_0xac2bc['display'];const _0x2569c1=['minimal-ui',_0x1e5b45(0x131),_0x1e5b45(0x125)];!_0x2569c1[_0x1e5b45(0x136)](_0xb9a576)&&(_0xb9a576=_0x1e5b45(0x131));if(_0xac2bc['display_override']&&_0xac2bc[_0x1e5b45(0x15c)][_0x1e5b45(0x137)]>0x0){const _0x16f1a0=_0xac2bc['display_override'][_0x1e5b45(0x15f)]((_0x40cabe,_0x4a3add)=>({'mode':_0x40cabe,'index':_0x4a3add}))[_0x1e5b45(0x12a)](({mode:_0x489f28})=>_0x2569c1[_0x1e5b45(0x136)](_0x489f28))[_0x1e5b45(0x121)]((_0x4fa230,_0xf99863)=>_0x4fa230[_0x1e5b45(0x15e)]-_0xf99863['index']);_0x16f1a0['length']>0x0&&(_0xb9a576=_0x16f1a0[0x0][_0x1e5b45(0x13c)]);}_0xac2bc[_0x1e5b45(0x15a)]=_0xb9a576;}function configMainScene(_0x28e81f){const _0x20def4=_0x5ddbb7;var _0x2f05f5,_0x391056;const _0x15703c=['automatic',_0x20def4(0x16c),_0x20def4(0x13f)];let _0x454fd1={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x20def4(0x14c)};if(_0x28e81f[_0x20def4(0x123)]){if(typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x153))_0x454fd1[_0x20def4(0x168)][_0x20def4(0x141)]=Number((_0x2f05f5=_0x28e81f['xr_main_scene'][_0x20def4(0x129)])===null||_0x2f05f5===void 0x0?void 0x0:_0x2f05f5[_0x20def4(0x141)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x141)]:0x500,_0x454fd1['defaultSize'][_0x20def4(0x12f)]=Number((_0x391056=_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)])===null||_0x391056===void 0x0?void 0x0:_0x391056[_0x20def4(0x12f)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x12f)]:0x500,_0x454fd1[_0x20def4(0x128)]=_0x15703c['includes'](_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)])?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)]:'automatic',_0x28e81f[_0x20def4(0x150)]=_0x454fd1;else typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x151)&&(_0x28e81f['mainScene']='dynamic');}}function configDeeplink(_0x303196){const _0x57f591=_0x5ddbb7;if(_0x303196[_0x57f591(0x152)]&&_0x303196[_0x57f591(0x152)][_0x57f591(0x137)]>0x0)for(var _0x42d30c=0x0;_0x42d30c<_0x303196[_0x57f591(0x152)][_0x57f591(0x137)];_0x42d30c++){const _0x212dca=_0x303196[_0x57f591(0x152)][_0x42d30c];if(_0x212dca['protocol']&&(exports[_0x57f591(0x13e)][_0x57f591(0x136)](_0x212dca['protocol'])||_0x212dca['protocol'][_0x57f591(0x15d)](_0x57f591(0x118))===0x0)){if(!((0x0,validate_1[_0x57f591(0x16b)])(_0x212dca[_0x57f591(0x144)])&&_0x212dca[_0x57f591(0x144)][_0x57f591(0x15d)](_0x303196[_0x57f591(0x142)])<0x0))continue;}_0x303196[_0x57f591(0x152)][_0x57f591(0x11e)](_0x42d30c,0x1),_0x42d30c--;}}exports[_0x5ddbb7(0x13e)]=['bitcoin',_0x5ddbb7(0x163),_0x5ddbb7(0x158),'geo','im',_0x5ddbb7(0x147),_0x5ddbb7(0x14a),_0x5ddbb7(0x14b),_0x5ddbb7(0x169),'matrix',_0x5ddbb7(0x14e),_0x5ddbb7(0x14d),_0x5ddbb7(0x122),_0x5ddbb7(0x11c),_0x5ddbb7(0x13a),_0x5ddbb7(0x143),_0x5ddbb7(0x156),_0x5ddbb7(0x148),'ssh','tel',_0x5ddbb7(0x157),_0x5ddbb7(0x14f),_0x5ddbb7(0x117),_0x5ddbb7(0x13b)];
@@ -1,21 +1,10 @@
1
- export interface InitArgs {
2
- 'manifest-url'?: string;
3
- manifest?: string;
4
- project?: string;
5
- base: string;
6
- 'bundle-id'?: string;
7
- }
8
- export interface ManifestInfo {
9
- json: Record<string, any>;
10
- url: string;
11
- fromNet: boolean;
12
- }
1
+ import { ManifestInfo, PWAInitArgs } from '../types';
13
2
  export declare class PWAGenerator {
14
3
  static DisplayModes: string[];
15
4
  private static defaultBundleId;
16
5
  private static defaultManifestJson;
17
6
  private static useDefaultManifestJson;
18
- static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
19
- static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
20
- static config(manifestInfo: ManifestInfo, args: InitArgs, isDev: boolean): void;
7
+ static generator(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
8
+ static validate(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
9
+ static config(manifestInfo: ManifestInfo, args: PWAInitArgs, isDev: boolean): void;
21
10
  }
@@ -1 +1 @@
1
- 'use strict';const _0x1dab7a=_0x4009;(function(_0x41f06a,_0x1e25c2){const _0x20fadc=_0x4009,_0x502c3b=_0x41f06a();while(!![]){try{const _0x236ed0=-parseInt(_0x20fadc(0x17e))/0x1+parseInt(_0x20fadc(0x176))/0x2+parseInt(_0x20fadc(0x180))/0x3+-parseInt(_0x20fadc(0x17a))/0x4*(-parseInt(_0x20fadc(0x167))/0x5)+-parseInt(_0x20fadc(0x158))/0x6*(parseInt(_0x20fadc(0x162))/0x7)+parseInt(_0x20fadc(0x15c))/0x8*(parseInt(_0x20fadc(0x169))/0x9)+-parseInt(_0x20fadc(0x16f))/0xa;if(_0x236ed0===_0x1e25c2)break;else _0x502c3b['push'](_0x502c3b['shift']());}catch(_0x2cb66d){_0x502c3b['push'](_0x502c3b['shift']());}}}(_0x4fe4,0xc4056));Object[_0x1dab7a(0x17c)](exports,_0x1dab7a(0x182),{'value':!![]}),exports[_0x1dab7a(0x161)]=void 0x0;function _0x4009(_0x152c9a,_0x479907){const _0x4fe465=_0x4fe4();return _0x4009=function(_0x400992,_0x2b4e2c){_0x400992=_0x400992-0x153;let _0x5392f0=_0x4fe465[_0x400992];return _0x5392f0;},_0x4009(_0x152c9a,_0x479907);}const path_1=require(_0x1dab7a(0x184)),config_1=require(_0x1dab7a(0x155)),load_1=require(_0x1dab7a(0x17f)),validate_1=require(_0x1dab7a(0x171)),fs=require('fs'),Cli_1=require(_0x1dab7a(0x170));class PWAGenerator{static async[_0x1dab7a(0x168)](_0x49c61f,_0x1a50b6=![]){const _0x3b5b0e=_0x1dab7a;let _0x4142d5=await this[_0x3b5b0e(0x17b)](_0x49c61f,_0x1a50b6);return console[_0x3b5b0e(0x16a)]('check\x20manifest.json:\x20ok'),await this[_0x3b5b0e(0x16b)](_0x4142d5,_0x49c61f,_0x1a50b6),console[_0x3b5b0e(0x16a)](_0x3b5b0e(0x174)),_0x4142d5;}static async[_0x1dab7a(0x17b)](_0xe84fd8,_0x36b862=![]){const _0x5d675e=_0x1dab7a;var _0x1eee95,_0x8b1f97;let _0x2e2d5f={},_0x12d751='',_0x3cf6b2=![],_0x445168=![];if(_0xe84fd8[_0x5d675e(0x15a)])_0x12d751=_0xe84fd8['manifest-url'],_0x3cf6b2=!![],_0x2e2d5f=await(0x0,load_1['loadJsonFromNet'])(_0xe84fd8[_0x5d675e(0x15a)]);else{_0xe84fd8[_0x5d675e(0x15f)]?_0x12d751=(0x0,path_1['join'])(process[_0x5d675e(0x154)](),_0xe84fd8['manifest']):(_0x12d751=(0x0,path_1[_0x5d675e(0x166)])(process[_0x5d675e(0x154)](),_0x5d675e(0x157)),!fs['existsSync'](_0x12d751)&&(_0x12d751=(0x0,path_1[_0x5d675e(0x166)])(process['cwd'](),_0x5d675e(0x173))));if(!fs[_0x5d675e(0x163)](_0x12d751)){if(_0x36b862)_0x445168=!![],Cli_1[_0x5d675e(0x175)][_0x5d675e(0x16a)][_0x5d675e(0x188)]('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');else throw new Error(_0x5d675e(0x185));}_0x2e2d5f=_0x445168?this['defaultManifestJson']:await(0x0,load_1[_0x5d675e(0x15e)])(_0x12d751),this[_0x5d675e(0x186)]=_0x445168;}(0x0,validate_1[_0x5d675e(0x164)])(_0x2e2d5f,_0x36b862);let _0x2c94ee=(0x0,config_1[_0x5d675e(0x16c)])(_0x2e2d5f,(_0x1eee95=_0xe84fd8[_0x5d675e(0x178)])!==null&&_0x1eee95!==void 0x0?_0x1eee95:'',_0x12d751,_0x3cf6b2);var _0x2169a1=(0x0,validate_1[_0x5d675e(0x181)])(_0x2c94ee,_0x12d751,_0x3cf6b2,_0x36b862);_0x2e2d5f[_0x5d675e(0x156)]=_0x2c94ee;if(!_0x36b862)(0x0,validate_1[_0x5d675e(0x165)])(_0x2e2d5f,(_0x8b1f97=_0xe84fd8[_0x5d675e(0x160)])!==null&&_0x8b1f97!==void 0x0?_0x8b1f97:'');return await(0x0,validate_1[_0x5d675e(0x177)])(_0x2e2d5f,_0x12d751,_0x36b862),{'json':_0x2e2d5f,'url':_0x12d751,'fromNet':_0x2169a1};}static[_0x1dab7a(0x16b)](_0x661994,_0x269c81,_0x562b49){const _0x11d53e=_0x1dab7a;var _0x1710e2;let _0x2b285a=(_0x1710e2=_0x269c81[_0x11d53e(0x160)])!==null&&_0x1710e2!==void 0x0?_0x1710e2:'';_0x562b49&&!_0x661994[_0x11d53e(0x187)]['id']&&(_0x2b285a=this[_0x11d53e(0x16e)]),(0x0,config_1[_0x11d53e(0x16d)])(_0x661994['json'],_0x2b285a),(0x0,config_1[_0x11d53e(0x183)])(_0x661994[_0x11d53e(0x187)]),(0x0,config_1[_0x11d53e(0x15b)])(_0x661994['json']),(0x0,config_1[_0x11d53e(0x159)])(_0x661994[_0x11d53e(0x187)]),(0x0,config_1['configMainScene'])(_0x661994[_0x11d53e(0x187)]);}}exports[_0x1dab7a(0x161)]=PWAGenerator,PWAGenerator[_0x1dab7a(0x15d)]=[_0x1dab7a(0x179),_0x1dab7a(0x172)],PWAGenerator[_0x1dab7a(0x16e)]='com.webspatial.test',PWAGenerator[_0x1dab7a(0x153)]={'name':_0x1dab7a(0x17d),'display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator['useDefaultManifestJson']=![];function _0x4fe4(){const _0x47c587=['public/manifest.webmanifest','reset\x20manifest.json:\x20ok','Cli','1701844xVFKMC','checkIcons','base','standalone','88sBkPdn','validate','defineProperty','WebSpatialTest','901779jgOIRT','../resource/load','1835442CsnlDV','checkStartUrl','__esModule','configScope','path','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','useDefaultManifestJson','json','warn','defaultManifestJson','cwd','./config','start_url','public/manifest.json','1832328uHOpZV','configDeeplink','manifest-url','configDisplay','5432hXeIPO','DisplayModes','loadJsonFromDisk','manifest','bundle-id','PWAGenerator','28CFBNfs','existsSync','checkManifestJson','checkId','join','362380LIEeQk','generator','20502eIhpOi','log','config','configStartUrl','configId','defaultBundleId','16777370MermHf','../Cli','./validate','minimal-ui'];_0x4fe4=function(){return _0x47c587;};return _0x4fe4();}
1
+ 'use strict';function _0x22dc(){const _0x35e558=['4433MtlrXc','configId','checkManifestJson','loadJsonFromNet','__esModule','check\x20manifest.json:\x20ok','1048576tvGDYn','configDisplay','configMainScene','join','8427430OikYWV','com.webspatial.test','public/manifest.webmanifest','54NskXND','8WqQmKS','standalone','configScope','minimal-ui','manifest','bundle-id','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','json','useDefaultManifestJson','PWAGenerator','52vbRcjH','manifest-url','6UjpOaK','35678bIWGVn','../utils/utils','configDeeplink','reset\x20manifest.json:\x20ok','13848hsXJDR','./validate','existsSync','defaultBundleId','log','config','../resource/load','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','start_url','public/manifest.json','validate','1037232MHkbgU','cwd','1313367TOGNmh','checkId','3729995EyMtjN','generator'];_0x22dc=function(){return _0x35e558;};return _0x22dc();}const _0x50f9ba=_0x1736;(function(_0x52e308,_0x1cd2a8){const _0x537d3f=_0x1736,_0x189a89=_0x52e308();while(!![]){try{const _0x196049=-parseInt(_0x537d3f(0x17d))/0x1*(-parseInt(_0x537d3f(0x180))/0x2)+parseInt(_0x537d3f(0x161))/0x3*(parseInt(_0x537d3f(0x173))/0x4)+parseInt(_0x537d3f(0x163))/0x5*(-parseInt(_0x537d3f(0x17f))/0x6)+-parseInt(_0x537d3f(0x15f))/0x7+parseInt(_0x537d3f(0x16b))/0x8*(-parseInt(_0x537d3f(0x172))/0x9)+parseInt(_0x537d3f(0x16f))/0xa+parseInt(_0x537d3f(0x165))/0xb*(-parseInt(_0x537d3f(0x184))/0xc);if(_0x196049===_0x1cd2a8)break;else _0x189a89['push'](_0x189a89['shift']());}catch(_0x389b09){_0x189a89['push'](_0x189a89['shift']());}}}(_0x22dc,0x7a238));Object['defineProperty'](exports,_0x50f9ba(0x169),{'value':!![]}),exports[_0x50f9ba(0x17c)]=void 0x0;const path_1=require('path'),config_1=require('./config'),load_1=require(_0x50f9ba(0x15a)),validate_1=require(_0x50f9ba(0x155)),fs=require('fs'),utils_1=require(_0x50f9ba(0x181));function _0x1736(_0x5505c2,_0x313ce1){const _0x22dc15=_0x22dc();return _0x1736=function(_0x173652,_0x340cf8){_0x173652=_0x173652-0x155;let _0xd7035=_0x22dc15[_0x173652];return _0xd7035;},_0x1736(_0x5505c2,_0x313ce1);}class PWAGenerator{static async[_0x50f9ba(0x164)](_0x426c07,_0x2a839d=![]){const _0x562780=_0x50f9ba;let _0x193b0d=await this[_0x562780(0x15e)](_0x426c07,_0x2a839d);return console['log'](_0x562780(0x16a)),await this['config'](_0x193b0d,_0x426c07,_0x2a839d),console[_0x562780(0x158)](_0x562780(0x183)),_0x193b0d;}static async[_0x50f9ba(0x15e)](_0x3b217c,_0x22b51a=![]){const _0x54f723=_0x50f9ba;var _0x526b1f,_0x570250;let _0x20905f={},_0xef61ca='',_0x576cfc=![],_0xd25c54=![];if(_0x3b217c[_0x54f723(0x17e)])_0xef61ca=_0x3b217c[_0x54f723(0x17e)],_0x576cfc=!![],_0x20905f=await(0x0,load_1[_0x54f723(0x168)])(_0x3b217c[_0x54f723(0x17e)]);else{_0x3b217c[_0x54f723(0x177)]?_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x3b217c['manifest']):(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process['cwd'](),_0x54f723(0x15d)),!fs[_0x54f723(0x156)](_0xef61ca)&&(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x54f723(0x171))));if(!fs[_0x54f723(0x156)](_0xef61ca)){if(_0x22b51a)_0xd25c54=!![],utils_1['CliLog']['warn'](_0x54f723(0x179));else throw new Error(_0x54f723(0x15b));}_0x20905f=_0xd25c54?this['defaultManifestJson']:await(0x0,load_1['loadJsonFromDisk'])(_0xef61ca),this[_0x54f723(0x17b)]=_0xd25c54;}(0x0,validate_1[_0x54f723(0x167)])(_0x20905f,_0x22b51a);let _0x28e325=(0x0,config_1['configStartUrl'])(_0x20905f,(_0x526b1f=_0x3b217c['base'])!==null&&_0x526b1f!==void 0x0?_0x526b1f:'',_0xef61ca,_0x576cfc);var _0x1efd2f=(0x0,validate_1['checkStartUrl'])(_0x28e325,_0xef61ca,_0x576cfc,_0x22b51a);_0x20905f[_0x54f723(0x15c)]=_0x28e325;if(!_0x22b51a)(0x0,validate_1[_0x54f723(0x162)])(_0x20905f,(_0x570250=_0x3b217c[_0x54f723(0x178)])!==null&&_0x570250!==void 0x0?_0x570250:'');return await(0x0,validate_1['checkIcons'])(_0x20905f,_0xef61ca,_0x22b51a),{'json':_0x20905f,'url':_0xef61ca,'fromNet':_0x1efd2f};}static[_0x50f9ba(0x159)](_0x28c6c0,_0x54c77b,_0x5c0299){const _0x3b998b=_0x50f9ba;var _0x3d7095;let _0x1e5198=(_0x3d7095=_0x54c77b[_0x3b998b(0x178)])!==null&&_0x3d7095!==void 0x0?_0x3d7095:'';_0x5c0299&&!_0x28c6c0[_0x3b998b(0x17a)]['id']&&(_0x1e5198=this[_0x3b998b(0x157)]),(0x0,config_1[_0x3b998b(0x166)])(_0x28c6c0[_0x3b998b(0x17a)],_0x1e5198),(0x0,config_1[_0x3b998b(0x175)])(_0x28c6c0[_0x3b998b(0x17a)]),(0x0,config_1[_0x3b998b(0x16c)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x182)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x16d)])(_0x28c6c0['json']);}}exports[_0x50f9ba(0x17c)]=PWAGenerator,PWAGenerator['DisplayModes']=[_0x50f9ba(0x174),_0x50f9ba(0x176)],PWAGenerator[_0x50f9ba(0x157)]=_0x50f9ba(0x170),PWAGenerator['defaultManifestJson']={'name':'WebSpatialTest','display':_0x50f9ba(0x176),'start_url':'/','scope':'/'},PWAGenerator[_0x50f9ba(0x17b)]=![];
@@ -1 +1 @@
1
- 'use strict';const _0x71aa72=_0x4ca1;function _0x4ca1(_0x416dc5,_0x1e6edf){const _0x32b10c=_0x32b1();return _0x4ca1=function(_0x4ca17e,_0x4c4275){_0x4ca17e=_0x4ca17e-0x89;let _0x207f2a=_0x32b10c[_0x4ca17e];return _0x207f2a;},_0x4ca1(_0x416dc5,_0x1e6edf);}(function(_0x3f3bbd,_0x2ab49d){const _0x448952=_0x4ca1,_0x1473a4=_0x3f3bbd();while(!![]){try{const _0x310830=parseInt(_0x448952(0xbf))/0x1*(-parseInt(_0x448952(0xb4))/0x2)+parseInt(_0x448952(0xb2))/0x3*(parseInt(_0x448952(0xa8))/0x4)+parseInt(_0x448952(0x8b))/0x5*(parseInt(_0x448952(0x91))/0x6)+-parseInt(_0x448952(0xa2))/0x7+-parseInt(_0x448952(0xb5))/0x8+parseInt(_0x448952(0xbb))/0x9+-parseInt(_0x448952(0xb6))/0xa;if(_0x310830===_0x2ab49d)break;else _0x1473a4['push'](_0x1473a4['shift']());}catch(_0x1c79b7){_0x1473a4['push'](_0x1473a4['shift']());}}}(_0x32b1,0xd8e21));Object[_0x71aa72(0x95)](exports,_0x71aa72(0x93),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports['checkStartUrl']=checkStartUrl,exports[_0x71aa72(0xa3)]=checkIcons,exports[_0x71aa72(0x9e)]=checkId,exports[_0x71aa72(0x9a)]=validateBundleId,exports[_0x71aa72(0x98)]=validateURL;const path_1=require('path'),CustomError_1=require('../utils/CustomError'),utils_1=require('../utils/utils'),imageHelper_1=require(_0x71aa72(0xa6)),load_1=require(_0x71aa72(0xc1)),Cli_1=require(_0x71aa72(0xad));function checkManifestJson(_0x58d558,_0x2dd9f2=![]){const _0x455a51=_0x71aa72;var _0xb4910c;const _0x186bf6=[];!_0x58d558[_0x455a51(0xab)]&&!_0x58d558['short_name']&&!_0x2dd9f2&&_0x186bf6['push']({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0xb4910c=_0x58d558['icons'])===null||_0xb4910c===void 0x0?void 0x0:_0xb4910c['length'])&&!_0x2dd9f2&&_0x186bf6[_0x455a51(0xa7)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x58d558[_0x455a51(0xaf)]&&!_0x2dd9f2&&_0x186bf6[_0x455a51(0xa7)]({'code':0xbc0,'message':_0x455a51(0xba),'message_staring_params':{}});if(_0x186bf6[_0x455a51(0xae)])throw new CustomError_1[(_0x455a51(0x8d))](_0x186bf6);}function checkStartUrl(_0x429dfd,_0x3f9450,_0x40471f,_0x529a21=![]){const _0x536f40=_0x71aa72;var _0x5effbc=![];if(_0x529a21)return _0x429dfd[_0x536f40(0xac)]('https://')||_0x429dfd['startsWith'](_0x536f40(0xa4));if(_0x40471f){if(_0x429dfd[_0x536f40(0xac)](_0x536f40(0xbd))){const _0x77c897=new URL(_0x429dfd),_0x550762=new URL(_0x3f9450);if(_0x77c897[_0x536f40(0xb0)]!==_0x550762[_0x536f40(0xb0)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x536f40(0x89),'message_staring_params':{}});}else{if(_0x429dfd[_0x536f40(0xac)]('http://'))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x536f40(0xb3),'message_staring_params':{}});}}else{if(_0x429dfd['startsWith'](_0x536f40(0xbd))||_0x429dfd[_0x536f40(0xac)]('http://'))throw new CustomError_1[(_0x536f40(0x8d))]({'code':0xfa0,'message':_0x536f40(0x8e),'message_staring_params':{}});}return _0x5effbc;}function _0x32b1(){const _0xb83ab6=['../Cli','length','start_url','host','getHeight','67923zQoAUw','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','2nVNWKB','3379096HbeBvq','6140990FEROtb','isFullyOpaque','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','12453804biqRUF','getWidth','https://','icons','454585TNGGYu','parseRouter','../resource/load','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','Cli','10HuAzAt','forEach','CustomError','Local\x20manifest\x20cannot\x20package\x20network\x20project','indexOf','join','2204952TrtvFh','warn','__esModule','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','defineProperty','split','purpose','validateURL','1024x1024','validateBundleId','ImageHelper','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','src','checkId','http','loadImageFromDisk','../../assets/icon-default.png','4831666MofiHp','checkIcons','http://','log','../resource/imageHelper','push','168KKQtMK','sizes','maskable','name','startsWith'];_0x32b1=function(){return _0xb83ab6;};return _0x32b1();}async function checkIcons(_0x536260,_0x7a5dbe,_0x5ea330=![]){const _0x384bf3=_0x71aa72;var _0x51c77b,_0x176787;if(!((_0x51c77b=_0x536260[_0x384bf3(0xbe)])===null||_0x51c77b===void 0x0?void 0x0:_0x51c77b['length'])&&_0x5ea330){_0x536260[_0x384bf3(0xbe)]=[{'src':(0x0,path_1['join'])(__dirname,_0x384bf3(0xa1)),'sizes':_0x384bf3(0x99),'purpose':'maskable'}],Cli_1[_0x384bf3(0x8a)][_0x384bf3(0xa5)][_0x384bf3(0x92)]('icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');return;}const _0x2ef9f8=(0x0,utils_1[_0x384bf3(0xc0)])(_0x7a5dbe);let _0x2a15e2,_0x1287a7,_0x592275,_0x18da0a=0x0;for(var _0x252de3=0x0;_0x252de3<_0x536260['icons']['length'];_0x252de3++){const _0x21a7f8=_0x536260[_0x384bf3(0xbe)][_0x252de3];let _0x2a53cf=((_0x176787=_0x21a7f8[_0x384bf3(0x97)])===null||_0x176787===void 0x0?void 0x0:_0x176787[_0x384bf3(0x8f)](_0x384bf3(0xaa)))>=0x0;if(!_0x2a53cf)continue;let _0x4985e1=![],_0x1f8c67=_0x21a7f8[_0x384bf3(0x9d)],_0x4e92ee,_0x5d7a67=0x0;!validateURL(_0x1f8c67)&&(_0x1f8c67=(0x0,path_1[_0x384bf3(0x90)])(_0x2ef9f8,_0x1f8c67));if(_0x21a7f8[_0x384bf3(0xa9)]){const _0x26c07f=_0x21a7f8[_0x384bf3(0xa9)][_0x384bf3(0x96)]('\x20');_0x26c07f[_0x384bf3(0x8c)](_0x1b3554=>{const _0x12df5d=_0x384bf3;let _0x544a95=_0x1b3554[_0x12df5d(0x96)]('x');Number(_0x544a95[0x0])>=0x400&&Number(_0x544a95[0x1])>=0x400&&(_0x4985e1=!![],Number(_0x544a95[0x0])>_0x5d7a67&&(_0x5d7a67=Number(_0x544a95[0x0])));});}else _0x4e92ee=!_0x1f8c67['startsWith'](_0x384bf3(0x9f))?await(0x0,load_1[_0x384bf3(0xa0)])(_0x1f8c67):await(0x0,load_1['loadImageFromNet'])(_0x1f8c67),_0x4e92ee[_0x384bf3(0xbc)]()>=0x400&&_0x4e92ee[_0x384bf3(0xb1)]()>=0x400&&(_0x4985e1=!![],_0x4e92ee['getWidth']()>_0x5d7a67&&(_0x5d7a67=_0x4e92ee['getWidth']()));_0x4985e1&&_0x2a53cf&&(_0x5d7a67>_0x18da0a&&(_0x18da0a=_0x5d7a67,_0x2a15e2=_0x4e92ee,_0x1287a7=_0x1f8c67,_0x592275=_0x21a7f8['purpose']));}if(_0x18da0a===0x0){if(_0x5ea330){_0x536260[_0x384bf3(0xbe)]=[{'src':(0x0,path_1['join'])(__dirname,_0x384bf3(0xa1)),'sizes':'1024x1024','purpose':'maskable'}],Cli_1['Cli'][_0x384bf3(0xa5)][_0x384bf3(0x92)](_0x384bf3(0x94)),Cli_1['Cli'][_0x384bf3(0xa5)][_0x384bf3(0x92)](_0x384bf3(0xb9));return;}throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x384bf3(0x94),'message_staring_params':{}});}else _0x1287a7&&(_0x2a15e2=!_0x1287a7[_0x384bf3(0xac)]('http')?await(0x0,load_1[_0x384bf3(0xa0)])(_0x1287a7):await(0x0,load_1['loadImageFromNet'])(_0x1287a7));if(_0x2a15e2&&!imageHelper_1[_0x384bf3(0x9b)][_0x384bf3(0xb7)](_0x2a15e2)){if(_0x5ea330){Cli_1['Cli'][_0x384bf3(0xa5)]['warn']('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0x384bf3(0x8d))]({'code':0xfa0,'message':_0x384bf3(0x9c),'message_staring_params':{}});}_0x536260[_0x384bf3(0xbe)]=[{'src':_0x1287a7,'sizes':_0x18da0a+'x'+_0x18da0a,'purpose':_0x592275}];}function checkId(_0x45b62a,_0x20c9f9){const _0x2081d2=_0x71aa72;if(_0x20c9f9){if(!validateBundleId(_0x20c9f9))throw new CustomError_1[(_0x2081d2(0x8d))]({'code':0xfa0,'message':_0x2081d2(0xb8),'message_staring_params':{}});return;}!_0x45b62a['id']&&(_0x45b62a['id']=_0x45b62a['start_url']);if(!validateURL(_0x45b62a['id'])&&!_0x20c9f9)throw new CustomError_1[(_0x2081d2(0x8d))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x2fdc02){const _0x134dd7=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x134dd7['test'](_0x2fdc02);}function validateURL(_0xa640bd){try{return new URL(_0xa640bd),!![];}catch(_0xb34d0e){return![];}}
1
+ 'use strict';const _0x5346c4=_0x5f77;(function(_0x5311bd,_0x1d2c3b){const _0x46357d=_0x5f77,_0x3c1cb9=_0x5311bd();while(!![]){try{const _0x3e7e3f=parseInt(_0x46357d(0x11f))/0x1*(-parseInt(_0x46357d(0x125))/0x2)+-parseInt(_0x46357d(0x11a))/0x3+parseInt(_0x46357d(0x102))/0x4*(parseInt(_0x46357d(0xf6))/0x5)+parseInt(_0x46357d(0x109))/0x6*(-parseInt(_0x46357d(0x10a))/0x7)+parseInt(_0x46357d(0xf8))/0x8+parseInt(_0x46357d(0x10f))/0x9+-parseInt(_0x46357d(0x103))/0xa;if(_0x3e7e3f===_0x1d2c3b)break;else _0x3c1cb9['push'](_0x3c1cb9['shift']());}catch(_0x362429){_0x3c1cb9['push'](_0x3c1cb9['shift']());}}}(_0x26f8,0xd26b2));Object[_0x5346c4(0x100)](exports,_0x5346c4(0x10d),{'value':!![]}),exports[_0x5346c4(0xf9)]=checkManifestJson,exports[_0x5346c4(0x101)]=checkStartUrl,exports[_0x5346c4(0x112)]=checkIcons,exports[_0x5346c4(0x121)]=checkId,exports[_0x5346c4(0x120)]=validateBundleId,exports[_0x5346c4(0x104)]=validateURL;const path_1=require(_0x5346c4(0x117)),CustomError_1=require(_0x5346c4(0x124)),utils_1=require(_0x5346c4(0xfc)),imageHelper_1=require('../resource/imageHelper'),load_1=require(_0x5346c4(0x119)),utils_2=require('../utils/utils');function _0x5f77(_0x4e54a1,_0x53b549){const _0x26f8d7=_0x26f8();return _0x5f77=function(_0x5f77bb,_0x5c7943){_0x5f77bb=_0x5f77bb-0xf4;let _0x270ec4=_0x26f8d7[_0x5f77bb];return _0x270ec4;},_0x5f77(_0x4e54a1,_0x53b549);}function _0x26f8(){const _0x28b3f5=['In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','1243128nqUgSq','checkManifestJson','src','icons','../utils/utils','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','http','forEach','defineProperty','checkStartUrl','531644wMokVd','11750230AqbiwD','validateURL','getWidth','purpose','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','../../assets/icon-default.png','348FwSboB','16765ZGTCsF','CliLog','split','__esModule','start_url','8935299GFCoTe','join','startsWith','checkIcons','getHeight','loadImageFromDisk','sizes','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','path','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','../resource/load','899205nxeRXk','indexOf','maskable','warn','1024x1024','134681kZtARP','validateBundleId','checkId','name','CustomError','../utils/CustomError','2OsvWKH','length','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','Local\x20manifest\x20cannot\x20package\x20network\x20project','https://','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','loadImageFromNet','test','http://','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','push','55WCiCSp'];_0x26f8=function(){return _0x28b3f5;};return _0x26f8();}function checkManifestJson(_0x4dedd9,_0x2cd5ae=![]){const _0x4c197e=_0x5346c4;var _0xdaff02;const _0x9f925=[];!_0x4dedd9[_0x4c197e(0x122)]&&!_0x4dedd9['short_name']&&!_0x2cd5ae&&_0x9f925['push']({'code':0xbbe,'message':_0x4c197e(0x127),'message_staring_params':{}});!((_0xdaff02=_0x4dedd9[_0x4c197e(0xfb)])===null||_0xdaff02===void 0x0?void 0x0:_0xdaff02['length'])&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbbf,'message':_0x4c197e(0x107),'message_staring_params':{}});!_0x4dedd9[_0x4c197e(0x10e)]&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbc0,'message':_0x4c197e(0xf7),'message_staring_params':{}});if(_0x9f925[_0x4c197e(0x126)])throw new CustomError_1[(_0x4c197e(0x123))](_0x9f925);}function checkStartUrl(_0x312a27,_0x13ba4d,_0x32ed8a,_0x368149=![]){const _0x411759=_0x5346c4;var _0x35cb38=![];if(_0x368149)return _0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27[_0x411759(0x111)](_0x411759(0x12d));if(_0x32ed8a){if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))){const _0x1d4fc2=new URL(_0x312a27),_0x2575c8=new URL(_0x13ba4d);if(_0x1d4fc2['host']!==_0x2575c8['host'])throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x116),'message_staring_params':{}});}}else{if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x128),'message_staring_params':{}});}return _0x35cb38;}async function checkIcons(_0x115018,_0x567841,_0x29dce6=![]){const _0x1640ac=_0x5346c4;var _0x1e33aa,_0x3ec758;if(!((_0x1e33aa=_0x115018[_0x1640ac(0xfb)])===null||_0x1e33aa===void 0x0?void 0x0:_0x1e33aa[_0x1640ac(0x126)])&&_0x29dce6){_0x115018['icons']=[{'src':(0x0,path_1[_0x1640ac(0x110)])(__dirname,_0x1640ac(0x108)),'sizes':'1024x1024','purpose':_0x1640ac(0x11c)}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0xfd));return;}const _0x3d8e10=(0x0,utils_1['parseRouter'])(_0x567841);let _0x55b0cd,_0x20e777,_0x44c9f1,_0xfba592=0x0;for(var _0x112223=0x0;_0x112223<_0x115018[_0x1640ac(0xfb)][_0x1640ac(0x126)];_0x112223++){const _0x2074df=_0x115018[_0x1640ac(0xfb)][_0x112223];let _0x569bfc=((_0x3ec758=_0x2074df['purpose'])===null||_0x3ec758===void 0x0?void 0x0:_0x3ec758[_0x1640ac(0x11b)]('maskable'))>=0x0;if(!_0x569bfc)continue;let _0xe59e82=![],_0xa3fd0c=_0x2074df[_0x1640ac(0xfa)],_0x1b5c0b,_0x488523=0x0;!validateURL(_0xa3fd0c)&&(_0xa3fd0c=(0x0,path_1[_0x1640ac(0x110)])(_0x3d8e10,_0xa3fd0c));if(_0x2074df[_0x1640ac(0x115)]){const _0x55a2a6=_0x2074df[_0x1640ac(0x115)][_0x1640ac(0x10c)]('\x20');_0x55a2a6[_0x1640ac(0xff)](_0x5a20e2=>{const _0x18d11e=_0x1640ac;let _0x2af879=_0x5a20e2[_0x18d11e(0x10c)]('x');Number(_0x2af879[0x0])>=0x400&&Number(_0x2af879[0x1])>=0x400&&(_0xe59e82=!![],Number(_0x2af879[0x0])>_0x488523&&(_0x488523=Number(_0x2af879[0x0])));});}else _0x1b5c0b=!_0xa3fd0c[_0x1640ac(0x111)](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0xa3fd0c):await(0x0,load_1[_0x1640ac(0x12b)])(_0xa3fd0c),_0x1b5c0b[_0x1640ac(0x105)]()>=0x400&&_0x1b5c0b[_0x1640ac(0x113)]()>=0x400&&(_0xe59e82=!![],_0x1b5c0b[_0x1640ac(0x105)]()>_0x488523&&(_0x488523=_0x1b5c0b[_0x1640ac(0x105)]()));_0xe59e82&&_0x569bfc&&(_0x488523>_0xfba592&&(_0xfba592=_0x488523,_0x55b0cd=_0x1b5c0b,_0x20e777=_0xa3fd0c,_0x44c9f1=_0x2074df[_0x1640ac(0x106)]));}if(_0xfba592===0x0){if(_0x29dce6){_0x115018[_0x1640ac(0xfb)]=[{'src':(0x0,path_1['join'])(__dirname,'../../assets/icon-default.png'),'sizes':_0x1640ac(0x11e),'purpose':'maskable'}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a)),utils_2[_0x1640ac(0x10b)]['warn']('icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode');return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x12a),'message_staring_params':{}});}else _0x20e777&&(_0x55b0cd=!_0x20e777['startsWith'](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0x20e777):await(0x0,load_1[_0x1640ac(0x12b)])(_0x20e777));if(_0x55b0cd&&!imageHelper_1['ImageHelper']['isFullyOpaque'](_0x55b0cd)){if(_0x29dce6){utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a));return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x118),'message_staring_params':{}});}_0x115018[_0x1640ac(0xfb)]=[{'src':_0x20e777,'sizes':_0xfba592+'x'+_0xfba592,'purpose':_0x44c9f1}];}function checkId(_0x4cdb5d,_0x43cb19){const _0x2d381c=_0x5346c4;if(_0x43cb19){if(!validateBundleId(_0x43cb19))throw new CustomError_1[(_0x2d381c(0x123))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','message_staring_params':{}});return;}!_0x4cdb5d['id']&&(_0x4cdb5d['id']=_0x4cdb5d[_0x2d381c(0x10e)]);if(!validateURL(_0x4cdb5d['id'])&&!_0x43cb19)throw new CustomError_1[(_0x2d381c(0x123))]({'code':0xfa0,'message':_0x2d381c(0xf4),'message_staring_params':{}});}function validateBundleId(_0x4eaff4){const _0x551765=_0x5346c4,_0x3c6ffc=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x3c6ffc[_0x551765(0x12c)](_0x4eaff4);}function validateURL(_0x48da53){try{return new URL(_0x48da53),!![];}catch(_0x2158ee){return![];}}
@@ -1 +1 @@
1
- 'use strict';const _0x5aec97=_0x1be7;(function(_0x103662,_0x2a7029){const _0x3a6207=_0x1be7,_0x421ad6=_0x103662();while(!![]){try{const _0x20f6ca=-parseInt(_0x3a6207(0x17b))/0x1+-parseInt(_0x3a6207(0x186))/0x2+parseInt(_0x3a6207(0x189))/0x3*(parseInt(_0x3a6207(0x18b))/0x4)+-parseInt(_0x3a6207(0x187))/0x5*(parseInt(_0x3a6207(0x188))/0x6)+parseInt(_0x3a6207(0x18d))/0x7*(parseInt(_0x3a6207(0x17d))/0x8)+parseInt(_0x3a6207(0x17f))/0x9*(parseInt(_0x3a6207(0x183))/0xa)+parseInt(_0x3a6207(0x180))/0xb*(parseInt(_0x3a6207(0x17e))/0xc);if(_0x20f6ca===_0x2a7029)break;else _0x421ad6['push'](_0x421ad6['shift']());}catch(_0x343711){_0x421ad6['push'](_0x421ad6['shift']());}}}(_0x517a,0x6f5aa));Object[_0x5aec97(0x185)](exports,'__esModule',{'value':!![]}),exports[_0x5aec97(0x17a)]=copyDir,exports[_0x5aec97(0x17c)]=clearDir;const fs=require('fs');function _0x1be7(_0x1bad30,_0x2a239a){const _0x517ac4=_0x517a();return _0x1be7=function(_0x1be7e4,_0x342e00){_0x1be7e4=_0x1be7e4-0x179;let _0x5b8c7d=_0x517ac4[_0x1be7e4];return _0x5b8c7d;},_0x1be7(_0x1bad30,_0x2a239a);}function copyDir(_0x5f0df3,_0x336478){const _0x4749bc=fs['readdirSync'](_0x5f0df3);_0x4749bc['forEach'](_0x300012=>{const _0x93dfbc=_0x1be7,_0x119b52=_0x5f0df3+'/'+_0x300012,_0x2a9c7c=_0x336478+'/'+_0x300012,_0x352a66=fs[_0x93dfbc(0x181)](_0x119b52);if(_0x352a66[_0x93dfbc(0x18a)]())try{fs[_0x93dfbc(0x179)](_0x2a9c7c,fs['readFileSync'](_0x119b52));}catch(_0xc7b470){console[_0x93dfbc(0x182)](_0xc7b470);}else _0x352a66['isDirectory']()&&(!fs['existsSync'](_0x2a9c7c)&&fs[_0x93dfbc(0x184)](_0x2a9c7c,{'recursive':!![]}),copyDir(_0x119b52,_0x2a9c7c));});}function clearDir(_0x123cde){const _0x32f402=_0x5aec97,_0x98d416=fs[_0x32f402(0x190)](_0x123cde);_0x98d416[_0x32f402(0x18f)](_0x44aba5=>{const _0x43710c=_0x32f402,_0x4203ea=_0x123cde+'/'+_0x44aba5,_0x5e59da=fs[_0x43710c(0x181)](_0x4203ea);if(_0x5e59da['isFile']())try{fs[_0x43710c(0x18c)](_0x4203ea);}catch(_0x4b0010){console[_0x43710c(0x182)](_0x4b0010);}else _0x5e59da[_0x43710c(0x18e)]()&&clearDir(_0x4203ea);});}function _0x517a(){const _0xdf19eb=['clearDir','118232NYMAsd','24agXhqT','45rJFJdX','3270201Txgroi','statSync','log','914770TZdoxO','mkdirSync','defineProperty','1776554JWhFlb','5WRALuZ','3064710quItXU','1363833XhQDAo','isFile','8oCkOOg','unlinkSync','70YUUoDY','isDirectory','forEach','readdirSync','writeFileSync','copyDir','253811UakSLn'];_0x517a=function(){return _0xdf19eb;};return _0x517a();}
1
+ 'use strict';const _0x4e20f6=_0x2392;(function(_0x5eee80,_0x179f7e){const _0x324bc4=_0x2392,_0x594d65=_0x5eee80();while(!![]){try{const _0x4048d2=-parseInt(_0x324bc4(0x18c))/0x1*(-parseInt(_0x324bc4(0x18f))/0x2)+parseInt(_0x324bc4(0x182))/0x3+parseInt(_0x324bc4(0x18b))/0x4*(-parseInt(_0x324bc4(0x185))/0x5)+-parseInt(_0x324bc4(0x197))/0x6*(parseInt(_0x324bc4(0x184))/0x7)+-parseInt(_0x324bc4(0x190))/0x8+parseInt(_0x324bc4(0x191))/0x9+-parseInt(_0x324bc4(0x17f))/0xa*(-parseInt(_0x324bc4(0x196))/0xb);if(_0x4048d2===_0x179f7e)break;else _0x594d65['push'](_0x594d65['shift']());}catch(_0x40bd44){_0x594d65['push'](_0x594d65['shift']());}}}(_0x59a8,0x70d97));function _0x2392(_0xcb2c1d,_0x2afd09){const _0x59a8d8=_0x59a8();return _0x2392=function(_0x239216,_0xfc6d67){_0x239216=_0x239216-0x17f;let _0x4531eb=_0x59a8d8[_0x239216];return _0x4531eb;},_0x2392(_0xcb2c1d,_0x2afd09);}Object['defineProperty'](exports,_0x4e20f6(0x194),{'value':!![]}),exports[_0x4e20f6(0x188)]=copyDir,exports[_0x4e20f6(0x193)]=clearDir;function _0x59a8(){const _0x428a95=['isDirectory','4216652TAaoFH','2208GNrGff','10BEfFsF','forEach','statSync','2018490fFtzcv','unlinkSync','12131YiDogk','119445zVzDtt','mkdirSync','readFileSync','copyDir','existsSync','readdirSync','16gytTHr','1zNxqGH','isFile','writeFileSync','532994fHPGnF','6449880RLhvJQ','6111963yFTWek','log','clearDir','__esModule'];_0x59a8=function(){return _0x428a95;};return _0x59a8();}const fs=require('fs');function copyDir(_0x37c266,_0x3b1700){const _0x41cf24=_0x4e20f6,_0x5926c4=fs[_0x41cf24(0x18a)](_0x37c266);_0x5926c4[_0x41cf24(0x180)](_0x17c51c=>{const _0x3850d4=_0x41cf24,_0x2269f7=_0x37c266+'/'+_0x17c51c,_0x40868d=_0x3b1700+'/'+_0x17c51c,_0x41bd04=fs['statSync'](_0x2269f7);if(_0x41bd04[_0x3850d4(0x18d)]())try{fs[_0x3850d4(0x18e)](_0x40868d,fs[_0x3850d4(0x187)](_0x2269f7));}catch(_0x540ac2){console[_0x3850d4(0x192)](_0x540ac2);}else _0x41bd04['isDirectory']()&&(!fs[_0x3850d4(0x189)](_0x40868d)&&fs[_0x3850d4(0x186)](_0x40868d,{'recursive':!![]}),copyDir(_0x2269f7,_0x40868d));});}function clearDir(_0x47097a){const _0x3ec8d3=_0x4e20f6,_0x2d8101=fs[_0x3ec8d3(0x18a)](_0x47097a);_0x2d8101[_0x3ec8d3(0x180)](_0x2fbee2=>{const _0x426d5d=_0x3ec8d3,_0x57a024=_0x47097a+'/'+_0x2fbee2,_0x15eee2=fs[_0x426d5d(0x181)](_0x57a024);if(_0x15eee2[_0x426d5d(0x18d)]())try{fs[_0x426d5d(0x183)](_0x57a024);}catch(_0xfe6062){console['log'](_0xfe6062);}else _0x15eee2[_0x426d5d(0x195)]()&&clearDir(_0x57a024);});}
@@ -1 +1 @@
1
- 'use strict';function _0x6952(_0x323868,_0x1221ad){const _0x1ea8bb=_0x1ea8();return _0x6952=function(_0x6952e1,_0x3dfa31){_0x6952e1=_0x6952e1-0x188;let _0x458a7d=_0x1ea8bb[_0x6952e1];return _0x458a7d;},_0x6952(_0x323868,_0x1221ad);}const _0x55b3fd=_0x6952;(function(_0x5031a5,_0x4ca979){const _0x4af58f=_0x6952,_0x6d257f=_0x5031a5();while(!![]){try{const _0x635971=parseInt(_0x4af58f(0x19e))/0x1+-parseInt(_0x4af58f(0x194))/0x2+-parseInt(_0x4af58f(0x19a))/0x3*(parseInt(_0x4af58f(0x1a2))/0x4)+parseInt(_0x4af58f(0x1a3))/0x5+parseInt(_0x4af58f(0x195))/0x6*(-parseInt(_0x4af58f(0x18b))/0x7)+parseInt(_0x4af58f(0x19c))/0x8*(-parseInt(_0x4af58f(0x18c))/0x9)+parseInt(_0x4af58f(0x18e))/0xa;if(_0x635971===_0x4ca979)break;else _0x6d257f['push'](_0x6d257f['shift']());}catch(_0x2177fc){_0x6d257f['push'](_0x6d257f['shift']());}}}(_0x1ea8,0x3eea6));function _0x1ea8(){const _0x1fe6f5=['jimp','asPng','render','webp2PngBuffer','247350UJsNSU','6JTgMLY','isFullyOpaque','toFormat','bitmap','defineProperty','1171689HNVQGB','data','2487416HPweDl','svg2img','86721CYyAyG','ImageHelper','createImg','width','4lbPcuS','1112375HkkkGf','@resvg/resvg-js','__esModule','getHeight','2092559tyjXEx','9DJuEoY','getWidth','10726080fFZEvX','toBuffer'];_0x1ea8=function(){return _0x1fe6f5;};return _0x1ea8();}Object[_0x55b3fd(0x199)](exports,_0x55b3fd(0x189),{'value':!![]}),exports[_0x55b3fd(0x19f)]=void 0x0;const Jimp=require(_0x55b3fd(0x190)),sharp=require('sharp'),resvg_js_1=require(_0x55b3fd(0x188));class ImageHelper{static[_0x55b3fd(0x1a0)](_0xb6569a){return new Jimp(_0xb6569a,_0xb6569a,0x0);}static async[_0x55b3fd(0x193)](_0x962dd8){const _0x43e50=_0x55b3fd;return await sharp(_0x962dd8)[_0x43e50(0x197)]('png')[_0x43e50(0x18f)]();}static async[_0x55b3fd(0x19d)](_0x402764){const _0x3f268e=_0x55b3fd,_0x270973={'fitTo':{'mode':_0x3f268e(0x1a1),'value':0x400}},_0x5bcac1=new resvg_js_1['Resvg'](_0x402764,_0x270973),_0x3d02fc=_0x5bcac1[_0x3f268e(0x192)](),_0x1cfbf1=_0x3d02fc[_0x3f268e(0x191)]();return _0x1cfbf1;}static[_0x55b3fd(0x196)](_0x1771d6){const _0x28d2b6=_0x55b3fd,_0x50d32f=_0x1771d6[_0x28d2b6(0x18d)]()*_0x1771d6[_0x28d2b6(0x18a)]();for(var _0x488e25=0x0;_0x488e25<_0x50d32f;_0x488e25++){const _0x438588=_0x488e25*0x4+0x3;if(_0x1771d6[_0x28d2b6(0x198)][_0x28d2b6(0x19b)][_0x438588]<0xff)return![];}return!![];}}exports[_0x55b3fd(0x19f)]=ImageHelper;
1
+ 'use strict';const _0xaaff49=_0x9632;function _0x4051(){const _0x288280=['3288324uTrqEW','svg2img','bitmap','defineProperty','3429920MOrZnj','getWidth','__esModule','1745160HhfACE','createImg','jimp','ImageHelper','getHeight','isFullyOpaque','webp2PngBuffer','data','1861644LRGmiC','@resvg/resvg-js','sharp','width','toFormat','42166MsQreG','2360721GBGgCl','asPng','14XlsdeU','2uCgwNY','Resvg','png','16286490ULZqVu'];_0x4051=function(){return _0x288280;};return _0x4051();}(function(_0xa1c1fb,_0x28d130){const _0x494928=_0x9632,_0x4f808e=_0xa1c1fb();while(!![]){try{const _0x16e2d5=parseInt(_0x494928(0x184))/0x1+-parseInt(_0x494928(0x16c))/0x2*(parseInt(_0x494928(0x185))/0x3)+parseInt(_0x494928(0x170))/0x4+-parseInt(_0x494928(0x174))/0x5+-parseInt(_0x494928(0x17f))/0x6+-parseInt(_0x494928(0x187))/0x7*(parseInt(_0x494928(0x177))/0x8)+parseInt(_0x494928(0x16f))/0x9;if(_0x16e2d5===_0x28d130)break;else _0x4f808e['push'](_0x4f808e['shift']());}catch(_0x3ef674){_0x4f808e['push'](_0x4f808e['shift']());}}}(_0x4051,0x6ef02));function _0x9632(_0x1d103f,_0x422567){const _0x40512d=_0x4051();return _0x9632=function(_0x96325f,_0x53d8ad){_0x96325f=_0x96325f-0x16c;let _0x4ace38=_0x40512d[_0x96325f];return _0x4ace38;},_0x9632(_0x1d103f,_0x422567);}Object[_0xaaff49(0x173)](exports,_0xaaff49(0x176),{'value':!![]}),exports['ImageHelper']=void 0x0;const Jimp=require(_0xaaff49(0x179)),sharp=require(_0xaaff49(0x181)),resvg_js_1=require(_0xaaff49(0x180));class ImageHelper{static[_0xaaff49(0x178)](_0x49b7bd){return new Jimp(_0x49b7bd,_0x49b7bd,0x0);}static async[_0xaaff49(0x17d)](_0x4fecba){const _0x5e7190=_0xaaff49;return await sharp(_0x4fecba)[_0x5e7190(0x183)](_0x5e7190(0x16e))['toBuffer']();}static async[_0xaaff49(0x171)](_0x42b25a){const _0x46c661=_0xaaff49,_0x2f5f9f={'fitTo':{'mode':_0x46c661(0x182),'value':0x400}},_0x2e05e9=new resvg_js_1[(_0x46c661(0x16d))](_0x42b25a,_0x2f5f9f),_0x3cce55=_0x2e05e9['render'](),_0x596c2e=_0x3cce55[_0x46c661(0x186)]();return _0x596c2e;}static[_0xaaff49(0x17c)](_0x19b990){const _0x1cb519=_0xaaff49,_0x4f2380=_0x19b990[_0x1cb519(0x175)]()*_0x19b990[_0x1cb519(0x17b)]();for(var _0x1b2543=0x0;_0x1b2543<_0x4f2380;_0x1b2543++){const _0x16b233=_0x1b2543*0x4+0x3;if(_0x19b990[_0x1cb519(0x172)][_0x1cb519(0x17e)][_0x16b233]<0xff)return![];}return!![];}}exports[_0xaaff49(0x17a)]=ImageHelper;
@@ -1,8 +1,9 @@
1
- import { ManifestInfo } from '../pwa';
1
+ import { ManifestInfo } from '../types';
2
2
  import * as Jimp from 'jimp';
3
3
  export declare let PROJECT_DIRECTORY: string;
4
4
  export declare let PROJECT_BUILD_DIRECTORY: string;
5
5
  export declare let PROJECT_EXPORT_DIRECTORY: string;
6
+ export declare let PROJECT_TEST_DIRECTORY: string;
6
7
  export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
7
8
  export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
8
9
  export declare const BACK_APPICON_DIRECTORY: string;
@@ -1 +1 @@
1
- 'use strict';const _0x14ad6c=_0x32e0;(function(_0x5c2ab5,_0x50574e){const _0x3af690=_0x32e0,_0x12022b=_0x5c2ab5();while(!![]){try{const _0x3837a4=-parseInt(_0x3af690(0x1b2))/0x1+parseInt(_0x3af690(0x1ad))/0x2*(parseInt(_0x3af690(0x1d0))/0x3)+-parseInt(_0x3af690(0x1aa))/0x4*(parseInt(_0x3af690(0x1c0))/0x5)+parseInt(_0x3af690(0x1bd))/0x6*(-parseInt(_0x3af690(0x1a6))/0x7)+parseInt(_0x3af690(0x1cc))/0x8+-parseInt(_0x3af690(0x1ac))/0x9+-parseInt(_0x3af690(0x1d4))/0xa*(-parseInt(_0x3af690(0x1af))/0xb);if(_0x3837a4===_0x50574e)break;else _0x12022b['push'](_0x12022b['shift']());}catch(_0x2c08cc){_0x12022b['push'](_0x12022b['shift']());}}}(_0x4dd2,0xef705));Object[_0x14ad6c(0x1cf)](exports,_0x14ad6c(0x1bb),{'value':!![]}),exports[_0x14ad6c(0x1be)]=exports[_0x14ad6c(0x1a7)]=exports[_0x14ad6c(0x1ba)]=exports[_0x14ad6c(0x1bf)]=exports['WEB_PROJECT_DIRECTORY']=exports[_0x14ad6c(0x1c1)]=exports[_0x14ad6c(0x1c3)]=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x14ad6c(0x1d1)),load_1=require(_0x14ad6c(0x1b5)),child_process_1=require('child_process');exports[_0x14ad6c(0x1a5)]='',exports['PROJECT_BUILD_DIRECTORY']='',exports[_0x14ad6c(0x1c1)]='',exports[_0x14ad6c(0x1d6)]=_0x14ad6c(0x1b4),exports[_0x14ad6c(0x1bf)]=_0x14ad6c(0x1c9),exports['BACK_APPICON_DIRECTORY']=exports['ASSET_DIRECTORY']+_0x14ad6c(0x1cd),exports[_0x14ad6c(0x1a7)]=exports[_0x14ad6c(0x1bf)]+_0x14ad6c(0x1b3);const supportPlatform=[_0x14ad6c(0x1b6)];function _0x32e0(_0x2b345a,_0x3d1078){const _0x4dd22f=_0x4dd2();return _0x32e0=function(_0x32e0b7,_0x2f5f1a){_0x32e0b7=_0x32e0b7-0x1a5;let _0x53f1a9=_0x4dd22f[_0x32e0b7];return _0x53f1a9;},_0x32e0(_0x2b345a,_0x3d1078);}class ResourceManager{static async[_0x14ad6c(0x1c7)](_0x2010d7){const _0x18b805=_0x14ad6c,_0x6a778f=(0x0,path_1[_0x18b805(0x1c6)])(process[_0x18b805(0x1d2)](),_0x2010d7),_0x3e04c6=(0x0,path_1[_0x18b805(0x1c6)])(exports['PROJECT_DIRECTORY'],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x18b805(0x1ab)](_0x3e04c6)?fs[_0x18b805(0x1b1)](_0x3e04c6,{'recursive':!![]}):(0x0,file_1[_0x18b805(0x1b9)])(_0x3e04c6);try{(0x0,file_1[_0x18b805(0x1ca)])(_0x6a778f,_0x3e04c6);}catch(_0x355ca9){console['log'](_0x355ca9);}}static async['generateIcon'](_0x143c54){const _0x1bd0a0=_0x14ad6c,_0xdc053c=_0x143c54[_0x1bd0a0(0x1ae)],_0x10eaf7=_0xdc053c[_0x1bd0a0(0x1b0)][0x0][_0x1bd0a0(0x1a9)],_0x23e09e=!_0x10eaf7['startsWith'](_0x1bd0a0(0x1d7))?await(0x0,load_1[_0x1bd0a0(0x1c8)])(_0x10eaf7):await(0x0,load_1['loadImageFromNet'])(_0x10eaf7);return _0x23e09e[_0x1bd0a0(0x1b7)](0x400,0x400),_0x23e09e;}static[_0x14ad6c(0x1d3)](_0x3330ad){const _0x1a0998=_0x14ad6c,_0x4bcf69=_0x3330ad!==null&&_0x3330ad!==void 0x0?_0x3330ad:supportPlatform[0x0];if(!supportPlatform[_0x1a0998(0x1c2)](_0x4bcf69))throw new Error(_0x1a0998(0x1bc)+_0x4bcf69+_0x1a0998(0x1c4)+supportPlatform[_0x1a0998(0x1c6)](','));let _0x54a1de=(0x0,path_1[_0x1a0998(0x1c6)])(process[_0x1a0998(0x1d2)](),_0x1a0998(0x1cb)+_0x4bcf69);!fs[_0x1a0998(0x1ab)](_0x54a1de)&&(_0x54a1de=(0x0,path_1[_0x1a0998(0x1c6)])(__dirname,_0x1a0998(0x1c5)+_0x4bcf69));const _0x171d51=fs[_0x1a0998(0x1ab)](_0x54a1de);!_0x171d51&&(0x0,child_process_1['execSync'])('cd\x20'+(0x0,path_1[_0x1a0998(0x1c6)])(__dirname,_0x1a0998(0x1d5))+_0x1a0998(0x1ce)+_0x4bcf69),exports['PROJECT_DIRECTORY']=_0x54a1de,exports[_0x1a0998(0x1c3)]=(0x0,path_1[_0x1a0998(0x1c6)])(exports[_0x1a0998(0x1a5)],_0x1a0998(0x1b8)),exports[_0x1a0998(0x1c1)]=(0x0,path_1[_0x1a0998(0x1c6)])(exports[_0x1a0998(0x1a5)],_0x1a0998(0x1a8));}}exports[_0x14ad6c(0x1be)]=ResourceManager;function _0x4dd2(){const _0x46134f=['__esModule','not\x20support\x20platform\x20','196836yXfTOG','ResourceManager','ASSET_DIRECTORY','542845kTtEAk','PROJECT_EXPORT_DIRECTORY','includes','PROJECT_BUILD_DIRECTORY',',\x20now\x20WebSpatial\x20only\x20support\x20','../../../node_modules/@webspatial/platform-','join','moveProjectFrom','loadImageFromDisk','web-spatial/Assets.xcassets','copyDir','node_modules/@webspatial/platform-','12760272bIZgtt','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','defineProperty','3986529XVzLUY','./file','cwd','checkPlatformPath','4940940GyYCsU','../../../','WEB_PROJECT_DIRECTORY','http','PROJECT_DIRECTORY','35hNcoHV','MIDDLE_APPICON_DIRECTORY','./export','src','4pVCRME','existsSync','3105288VkaTGV','2gDehey','json','11oJqYdn','icons','mkdirSync','1819599uZlEkv','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','web-spatial/static-web','./load','visionos','resize','./build','clearDir','BACK_APPICON_DIRECTORY'];_0x4dd2=function(){return _0x46134f;};return _0x4dd2();}
1
+ 'use strict';const _0x4d263e=_0x54ab;function _0x54ab(_0x29cc91,_0x2bb464){const _0xe703f3=_0xe703();return _0x54ab=function(_0x54ab81,_0x5077df){_0x54ab81=_0x54ab81-0x98;let _0x5340e0=_0xe703f3[_0x54ab81];return _0x5340e0;},_0x54ab(_0x29cc91,_0x2bb464);}(function(_0x1884c5,_0xd4716d){const _0x3f49bd=_0x54ab,_0x2bcb0d=_0x1884c5();while(!![]){try{const _0x49315c=-parseInt(_0x3f49bd(0xb9))/0x1*(parseInt(_0x3f49bd(0x9c))/0x2)+parseInt(_0x3f49bd(0xae))/0x3*(parseInt(_0x3f49bd(0xad))/0x4)+parseInt(_0x3f49bd(0xa0))/0x5+-parseInt(_0x3f49bd(0xc9))/0x6*(parseInt(_0x3f49bd(0xaf))/0x7)+parseInt(_0x3f49bd(0xa2))/0x8*(parseInt(_0x3f49bd(0xba))/0x9)+-parseInt(_0x3f49bd(0xaa))/0xa+parseInt(_0x3f49bd(0xc4))/0xb;if(_0x49315c===_0xd4716d)break;else _0x2bcb0d['push'](_0x2bcb0d['shift']());}catch(_0x19b824){_0x2bcb0d['push'](_0x2bcb0d['shift']());}}}(_0xe703,0x79b04));Object[_0x4d263e(0xbb)](exports,_0x4d263e(0xc2),{'value':!![]}),exports[_0x4d263e(0xa5)]=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]=exports[_0x4d263e(0xb4)]=exports['PROJECT_TEST_DIRECTORY']=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x4d263e(0xca)]=exports[_0x4d263e(0xa6)]=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x4d263e(0xac)),load_1=require(_0x4d263e(0xa9)),child_process_1=require(_0x4d263e(0xb8));function _0xe703(){const _0x21d4b2=['resize','ASSET_DIRECTORY','checkPlatformPath','3646010aWlYJd','generateIcon','26776CaCJge','copyDir','json','ResourceManager','PROJECT_DIRECTORY','icons','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','./load','8719480RLrDfR','loadImageFromNet','./file','428MZViBA','8082gdhFXM','36071GxorMt','../../../','moveProjectFrom','web-spatial/Assets.xcassets',',\x20now\x20WebSpatial\x20only\x20support\x20','WEB_PROJECT_DIRECTORY','PROJECT_TEST_DIRECTORY','PROJECT_EXPORT_DIRECTORY','existsSync','child_process','97511gpLUtn','1377SPwrqd','defineProperty','loadImageFromDisk','not\x20support\x20platform\x20','cwd','includes','rm\x20-rf\x20','execSync','__esModule','web-spatial/static-web','15947382FjTZyf','join','mkdirSync','visionos','BACK_APPICON_DIRECTORY','738SQWYhT','PROJECT_BUILD_DIRECTORY','log','startsWith','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','./build','cd\x20','node_modules/@webspatial/platform-','platform-','20iYjkDR'];_0xe703=function(){return _0x21d4b2;};return _0xe703();}exports['PROJECT_DIRECTORY']='',exports[_0x4d263e(0xca)]='',exports['PROJECT_EXPORT_DIRECTORY']='',exports[_0x4d263e(0xb5)]='',exports[_0x4d263e(0xb4)]=_0x4d263e(0xc3),exports[_0x4d263e(0x9e)]=_0x4d263e(0xb2),exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]+_0x4d263e(0xa8),exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0x9e)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=[_0x4d263e(0xc7)];class ResourceManager{static async[_0x4d263e(0xb1)](_0x4e3c16){const _0x25c98d=_0x4d263e,_0x1b3cc0=(0x0,path_1[_0x25c98d(0xc5)])(process[_0x25c98d(0xbe)](),_0x4e3c16),_0x2c2cab=(0x0,path_1[_0x25c98d(0xc5)])(exports[_0x25c98d(0xa6)],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x25c98d(0xb7)](_0x2c2cab)?fs[_0x25c98d(0xc6)](_0x2c2cab,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x2c2cab);try{(0x0,file_1[_0x25c98d(0xa3)])(_0x1b3cc0,_0x2c2cab);}catch(_0x5b2739){console[_0x25c98d(0xcb)](_0x5b2739);}}static async[_0x4d263e(0xa1)](_0x134b36){const _0x130ec5=_0x4d263e,_0x1f17d1=_0x134b36[_0x130ec5(0xa4)],_0x3d12ff=_0x1f17d1[_0x130ec5(0xa7)][0x0]['src'],_0x3a95d1=!_0x3d12ff[_0x130ec5(0xcc)]('http')?await(0x0,load_1[_0x130ec5(0xbc)])(_0x3d12ff):await(0x0,load_1[_0x130ec5(0xab)])(_0x3d12ff);return _0x3a95d1[_0x130ec5(0x9d)](0x400,0x400),_0x3a95d1;}static[_0x4d263e(0x9f)](_0x283074){const _0x53afcb=_0x4d263e,_0x901326=_0x283074!==null&&_0x283074!==void 0x0?_0x283074:supportPlatform[0x0];if(!supportPlatform[_0x53afcb(0xbf)](_0x901326))throw new Error(_0x53afcb(0xbd)+_0x901326+_0x53afcb(0xb3)+supportPlatform['join'](','));let _0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(process['cwd'](),_0x53afcb(0x9a)+_0x901326);!fs['existsSync'](_0x3cb872)&&(_0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x901326));const _0x5071c8=fs[_0x53afcb(0xb7)](_0x3cb872);!_0x5071c8&&(0x0,child_process_1['execSync'])(_0x53afcb(0x99)+(0x0,path_1['join'])(__dirname,_0x53afcb(0xb0))+_0x53afcb(0xcd)+_0x901326);let _0x359211=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../temp'),_0x2bae05=(0x0,path_1['join'])(_0x359211,_0x53afcb(0x9b)+_0x901326);fs[_0x53afcb(0xb7)](_0x359211)&&(0x0,child_process_1[_0x53afcb(0xc1)])(_0x53afcb(0xc0)+_0x359211),fs[_0x53afcb(0xc6)](_0x359211),fs[_0x53afcb(0xc6)](_0x2bae05),(0x0,file_1['copyDir'])(_0x3cb872,_0x2bae05),exports['PROJECT_DIRECTORY']=_0x2bae05,exports[_0x53afcb(0xca)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],_0x53afcb(0x98)),exports[_0x53afcb(0xb6)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],'./export'),exports[_0x53afcb(0xb5)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xca)],'./test');}}exports[_0x4d263e(0xa5)]=ResourceManager;
@@ -1 +1 @@
1
- 'use strict';const _0x3a64ef=_0x12eb;(function(_0x3f8985,_0x3fe744){const _0x940f74=_0x12eb,_0x1b66c1=_0x3f8985();while(!![]){try{const _0x3d593f=parseInt(_0x940f74(0x1d7))/0x1+-parseInt(_0x940f74(0x1d3))/0x2+-parseInt(_0x940f74(0x1cb))/0x3*(parseInt(_0x940f74(0x1e8))/0x4)+parseInt(_0x940f74(0x1e2))/0x5+parseInt(_0x940f74(0x1e5))/0x6*(-parseInt(_0x940f74(0x1cf))/0x7)+parseInt(_0x940f74(0x1c7))/0x8*(parseInt(_0x940f74(0x1ea))/0x9)+-parseInt(_0x940f74(0x1e3))/0xa;if(_0x3d593f===_0x3fe744)break;else _0x1b66c1['push'](_0x1b66c1['shift']());}catch(_0xca621f){_0x1b66c1['push'](_0x1b66c1['shift']());}}}(_0x5905,0xe5737));function _0x12eb(_0x149050,_0x48f52e){const _0x590580=_0x5905();return _0x12eb=function(_0x12eb8c,_0xdd157b){_0x12eb8c=_0x12eb8c-0x1c3;let _0x96d6fe=_0x590580[_0x12eb8c];return _0x96d6fe;},_0x12eb(_0x149050,_0x48f52e);}Object[_0x3a64ef(0x1cc)](exports,'__esModule',{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports[_0x3a64ef(0x1ca)]=loadJsonFromDisk,exports[_0x3a64ef(0x1d8)]=loadImageFromNet,exports[_0x3a64ef(0x1e4)]=loadImageFromDisk,exports['loadFileString']=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x3a64ef(0x1d9)),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x3a64ef(0x1da)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x3924dc){const _0x30899e=_0x3a64ef,_0x400f70=await FetchUtils_1_1[_0x30899e(0x1df)][_0x30899e(0x1f3)](_0x3924dc,{'encoding':_0x30899e(0x1dd)});if(_0x400f70[_0x30899e(0x1c9)]!==0xc8)throw new CustomError_1[(_0x30899e(0x1dc))]({'code':0xbbc,'message':_0x30899e(0x1c4)+_0x3924dc+'.'+(_0x30899e(0x1c3)+_0x400f70['status']+_0x30899e(0x1c8)),'message_staring_params':{'web_manifest_url':_0x3924dc,'status':_0x400f70['status']}});try{let _0x2466ba;return _0x400f70[_0x30899e(0x1db)]?_0x2466ba=await _0x400f70['text']():[_0x30899e(0x1ed),_0x30899e(0x1eb),'br'][_0x30899e(0x1e7)](_0x400f70[_0x30899e(0x1d0)][_0x30899e(0x1d2)])?_0x2466ba=FetchUtils_1_1[_0x30899e(0x1df)][_0x30899e(0x1d4)](Buffer['from'](_0x400f70[_0x30899e(0x1f0)],'binary'),_0x400f70[_0x30899e(0x1d0)]['content-encoding'])[_0x30899e(0x1de)]():_0x2466ba=Buffer[_0x30899e(0x1cd)](_0x400f70['data'],'binary')[_0x30899e(0x1de)](),JSON[_0x30899e(0x1c6)](_0x2466ba['trim']());}catch(_0x347f35){throw new CustomError_1[(_0x30899e(0x1dc))]({'code':0xbbd,'message':_0x30899e(0x1f4),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x81dc3c){const _0x47f6be=_0x3a64ef,_0x55c343=await loadFileString(_0x81dc3c[_0x47f6be(0x1de)]());return JSON['parse'](_0x55c343);}function _0x5905(){const _0x3a0ce9=['loadImageFromDisk','1842GOVgfU','get','includes','8EBCyLC','content-type','3083427OsQoeW','deflate','image/svg','gzip','arrayBuffer','ImageHelper','data','promises','webp2PngBuffer','fetch','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','The\x20response\x20status\x20is\x20','Failed\x20to\x20download\x20Web\x20Manifest\x20','read','parse','24vOplHp',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','status','loadJsonFromDisk','1001307oInKNx','defineProperty','from','\x20Responded\x20with\x20Content-Type\x20\x22','22267sdAPqx','headers','decode','content-encoding','395582KZRxUM','decompressResponseBuffer','startsWith','readFile','1656981XlrVgw','loadImageFromNet','../utils/FetchUtils-1','jimp','text','CustomError','binary','toString','fetchUtils','image/','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','5558295MuoTNf','10147220XGqZsc'];_0x5905=function(){return _0x3a0ce9;};return _0x5905();}async function loadImageFromNet(_0x14dc9d){const _0x3b3fe1=_0x3a64ef,_0x469484=await FetchUtils_1_1[_0x3b3fe1(0x1df)]['fetch'](_0x14dc9d,{'encoding':_0x3b3fe1(0x1dd)});if(_0x469484[_0x3b3fe1(0x1c9)]!==0xc8)throw new CustomError_1[(_0x3b3fe1(0x1dc))]({'code':0x7d2,'message':_0x3b3fe1(0x1e1)+_0x469484[_0x3b3fe1(0x1c9)],'message_staring_params':{'icon_url':_0x14dc9d,'status':_0x469484[_0x3b3fe1(0x1c9)]}});const _0x57360e=_0x469484['headers'][_0x3b3fe1(0x1e6)]?_0x469484['headers'][_0x3b3fe1(0x1e6)](_0x3b3fe1(0x1e9)):_0x469484[_0x3b3fe1(0x1d0)]['content-type'];if(!(_0x57360e===null||_0x57360e===void 0x0?void 0x0:_0x57360e['startsWith'](_0x3b3fe1(0x1e0))))throw new CustomError_1['CustomError']({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+(_0x3b3fe1(0x1ce)+_0x57360e+'\x22'),'message_staring_params':{'icon_url':_0x14dc9d,'contentType':_0x57360e}});let _0x522068;_0x469484['arrayBuffer']?_0x522068=await _0x469484[_0x3b3fe1(0x1ee)]():[_0x3b3fe1(0x1ed),_0x3b3fe1(0x1eb),'br'][_0x3b3fe1(0x1e7)](_0x469484[_0x3b3fe1(0x1d0)][_0x3b3fe1(0x1d2)])?_0x522068=FetchUtils_1_1[_0x3b3fe1(0x1df)][_0x3b3fe1(0x1d4)](Buffer[_0x3b3fe1(0x1cd)](_0x469484[_0x3b3fe1(0x1f0)],'binary'),_0x469484[_0x3b3fe1(0x1d0)][_0x3b3fe1(0x1d2)]):_0x522068=Buffer['from'](_0x469484[_0x3b3fe1(0x1f0)],_0x3b3fe1(0x1dd));if(_0x57360e[_0x3b3fe1(0x1d5)](_0x3b3fe1(0x1ec))){const _0x359ba1=new TextDecoder();try{_0x522068=await imageHelper_1['ImageHelper']['svg2img'](_0x359ba1[_0x3b3fe1(0x1d1)](_0x522068));}catch(_0xc9bac8){throw new CustomError_1[(_0x3b3fe1(0x1dc))]({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x14dc9d+':\x20'+_0xc9bac8,'message_staring_params':{'icon_url':_0x14dc9d,'error':_0xc9bac8}});}}return _0x57360e['startsWith']('image/webp')&&(_0x522068=await imageHelper_1[_0x3b3fe1(0x1ef)][_0x3b3fe1(0x1f2)](_0x522068)),await Jimp[_0x3b3fe1(0x1c5)](Buffer[_0x3b3fe1(0x1cd)](_0x522068));}async function loadImageFromDisk(_0x1b8506){const _0x245165=_0x3a64ef;return await Jimp[_0x245165(0x1c5)](_0x1b8506);}async function loadFileString(_0x40b14c){const _0x36fc6d=_0x3a64ef;let _0x8cbf87=await fs[_0x36fc6d(0x1f1)][_0x36fc6d(0x1d6)](_0x40b14c['toString']());return _0x8cbf87[_0x36fc6d(0x1de)]();}
1
+ 'use strict';const _0x412202=_0x2a20;(function(_0x1d5120,_0x242393){const _0x43d2c2=_0x2a20,_0x4450f5=_0x1d5120();while(!![]){try{const _0x350e05=-parseInt(_0x43d2c2(0x11e))/0x1+-parseInt(_0x43d2c2(0x122))/0x2+-parseInt(_0x43d2c2(0x131))/0x3*(-parseInt(_0x43d2c2(0x121))/0x4)+-parseInt(_0x43d2c2(0x130))/0x5+parseInt(_0x43d2c2(0x12b))/0x6*(-parseInt(_0x43d2c2(0x11f))/0x7)+parseInt(_0x43d2c2(0x128))/0x8+parseInt(_0x43d2c2(0x11b))/0x9;if(_0x350e05===_0x242393)break;else _0x4450f5['push'](_0x4450f5['shift']());}catch(_0x392f8e){_0x4450f5['push'](_0x4450f5['shift']());}}}(_0x595c,0xe8bb9));Object[_0x412202(0x12d)](exports,_0x412202(0x10f),{'value':!![]}),exports[_0x412202(0x125)]=loadJsonFromNet,exports[_0x412202(0x117)]=loadJsonFromDisk,exports[_0x412202(0x10a)]=loadImageFromNet,exports[_0x412202(0x124)]=loadImageFromDisk,exports[_0x412202(0x127)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x412202(0x123)),imageHelper_1=require(_0x412202(0x120));function _0x2a20(_0x52aa64,_0x381d2c){const _0x595ced=_0x595c();return _0x2a20=function(_0x2a2014,_0x4f51a7){_0x2a2014=_0x2a2014-0x10a;let _0x5ceec3=_0x595ced[_0x2a2014];return _0x5ceec3;},_0x2a20(_0x52aa64,_0x381d2c);}async function loadJsonFromNet(_0xe33a4){const _0x280977=_0x412202,_0x169b62=await FetchUtils_1_1['fetchUtils'][_0x280977(0x113)](_0xe33a4,{'encoding':_0x280977(0x132)});if(_0x169b62[_0x280977(0x111)]!==0xc8)throw new CustomError_1[(_0x280977(0x11a))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0xe33a4+'.'+(_0x280977(0x10e)+_0x169b62[_0x280977(0x111)]+_0x280977(0x12a)),'message_staring_params':{'web_manifest_url':_0xe33a4,'status':_0x169b62['status']}});try{let _0xefdf8;return _0x169b62[_0x280977(0x114)]?_0xefdf8=await _0x169b62[_0x280977(0x114)]():[_0x280977(0x10d),'deflate','br'][_0x280977(0x118)](_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])?_0xefdf8=FetchUtils_1_1[_0x280977(0x13a)]['decompressResponseBuffer'](Buffer[_0x280977(0x137)](_0x169b62[_0x280977(0x135)],_0x280977(0x132)),_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])['toString']():_0xefdf8=Buffer[_0x280977(0x137)](_0x169b62['data'],'binary')['toString'](),JSON[_0x280977(0x134)](_0xefdf8[_0x280977(0x12f)]());}catch(_0x3a0641){throw new CustomError_1['CustomError']({'code':0xbbd,'message':_0x280977(0x12e),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x5b4445){const _0x384d52=_0x412202,_0x18aac7=await loadFileString(_0x5b4445[_0x384d52(0x126)]());return JSON[_0x384d52(0x134)](_0x18aac7);}async function loadImageFromNet(_0x5915c7){const _0x34e16e=_0x412202,_0x5dcc2b=await FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x113)](_0x5915c7,{'encoding':_0x34e16e(0x132)});if(_0x5dcc2b[_0x34e16e(0x111)]!==0xc8)throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d2,'message':_0x34e16e(0x115)+_0x5dcc2b['status'],'message_staring_params':{'icon_url':_0x5915c7,'status':_0x5dcc2b[_0x34e16e(0x111)]}});const _0x3880f7=_0x5dcc2b[_0x34e16e(0x11c)]['get']?_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x11d)](_0x34e16e(0x110)):_0x5dcc2b['headers']['content-type'];if(!(_0x3880f7===null||_0x3880f7===void 0x0?void 0x0:_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x139))))throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d3,'message':_0x34e16e(0x129)+(_0x34e16e(0x138)+_0x3880f7+'\x22'),'message_staring_params':{'icon_url':_0x5915c7,'contentType':_0x3880f7}});let _0x4ceeb1;_0x5dcc2b['arrayBuffer']?_0x4ceeb1=await _0x5dcc2b['arrayBuffer']():[_0x34e16e(0x10d),_0x34e16e(0x10b),'br'][_0x34e16e(0x118)](_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)])?_0x4ceeb1=FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x12c)](Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],_0x34e16e(0x132)),_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)]):_0x4ceeb1=Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],'binary');if(_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x133))){const _0x45ba99=new TextDecoder();try{_0x4ceeb1=await imageHelper_1[_0x34e16e(0x112)]['svg2img'](_0x45ba99['decode'](_0x4ceeb1));}catch(_0x2fa5b9){throw new CustomError_1['CustomError']({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x5915c7+':\x20'+_0x2fa5b9,'message_staring_params':{'icon_url':_0x5915c7,'error':_0x2fa5b9}});}}return _0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x116))&&(_0x4ceeb1=await imageHelper_1['ImageHelper']['webp2PngBuffer'](_0x4ceeb1)),await Jimp[_0x34e16e(0x136)](Buffer[_0x34e16e(0x137)](_0x4ceeb1));}function _0x595c(){const _0x4b29fc=['loadImageFromDisk','loadJsonFromNet','toString','loadFileString','1900624LlZzZN','Received\x20icon\x20with\x20invalid\x20Content-Type.',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','12XpDace','decompressResponseBuffer','defineProperty','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','trim','1925080fdftlV','6rWZElU','binary','image/svg','parse','data','read','from','\x20Responded\x20with\x20Content-Type\x20\x22','image/','fetchUtils','loadImageFromNet','deflate','content-encoding','gzip','The\x20response\x20status\x20is\x20','__esModule','content-type','status','ImageHelper','fetch','text','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','image/webp','loadJsonFromDisk','includes','startsWith','CustomError','30371058dOVEKD','headers','get','633421wflrlG','5036591zowQhe','./imageHelper','2272476RSfbmK','2675284KKVZUr','jimp'];_0x595c=function(){return _0x4b29fc;};return _0x595c();}async function loadImageFromDisk(_0x1362b5){const _0x15ef22=_0x412202;return await Jimp[_0x15ef22(0x136)](_0x1362b5);}async function loadFileString(_0x4c44cb){const _0x28d6ea=_0x412202;let _0x4e24d4=await fs['promises']['readFile'](_0x4c44cb['toString']());return _0x4e24d4[_0x28d6ea(0x126)]();}