@webspatial/builder 0.0.2 → 0.0.3
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.
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +2 -2
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1a477f=_0x5902;function _0x5902(_0x178c73,_0x4461d9){const _0x2f2eaf=_0x2f2e();return _0x5902=function(_0x590272,_0x4faf4e){_0x590272=_0x590272-0x1a5;let _0x11faa0=_0x2f2eaf[_0x590272];return _0x11faa0;},_0x5902(_0x178c73,_0x4461d9);}(function(_0x187ab1,_0x1612e4){const _0x52804d=_0x5902,_0x511ec8=_0x187ab1();while(!![]){try{const _0x3e3f00=parseInt(_0x52804d(0x1a6))/0x1*(-parseInt(_0x52804d(0x1b5))/0x2)+-parseInt(_0x52804d(0x1a8))/0x3+parseInt(_0x52804d(0x1bb))/0x4*(-parseInt(_0x52804d(0x1a9))/0x5)+parseInt(_0x52804d(0x1b8))/0x6*(-parseInt(_0x52804d(0x1ba))/0x7)+parseInt(_0x52804d(0x1bd))/0x8*(parseInt(_0x52804d(0x1b0))/0x9)+parseInt(_0x52804d(0x1aa))/0xa+-parseInt(_0x52804d(0x1ab))/0xb*(-parseInt(_0x52804d(0x1ac))/0xc);if(_0x3e3f00===_0x1612e4)break;else _0x511ec8['push'](_0x511ec8['shift']());}catch(_0x1b6bff){_0x511ec8['push'](_0x511ec8['shift']());}}}(_0x2f2e,0x47d3b));Object[_0x1a477f(0x1bc)](exports,'__esModule',{'value':!![]});function _0x2f2e(){const _0xc314e8=['exit','slice','24746gfRkwq','code','ConsoleLog','17022NHccGm','isArray','595NSwYIg','4HqqRPb','defineProperty','24nvcAlP','Cli','11sySyQN','error','1725228VqUsFy','1875070SaaKtV','1401800IiRziR','1511268hbVmiN','108uDHPGa','message','cli','./lib/utils/Log','734607DNUDaN','argv','exports'];_0x2f2e=function(){return _0xc314e8;};return _0x2f2e();}const Cli_1=require('./lib/Cli'),Log_1=require(_0x1a477f(0x1af)),CustomError_1=require('./lib/utils/CustomError');module[_0x1a477f(0x1b2)]=async()=>{const _0x46d981=_0x1a477f,_0x459fde=new Cli_1[(_0x46d981(0x1a5))](),_0x7350a5=new Log_1[(_0x46d981(0x1b7))](_0x46d981(0x1ae)),_0x43f083=process[_0x46d981(0x1b1)][_0x46d981(0x1b4)](0x2);let _0x40cbca;try{_0x40cbca=await _0x459fde['run'](_0x43f083);}catch(_0x2478ef){if(_0x2478ef instanceof CustomError_1['CustomError']){const _0x19ea5e=_0x2478ef['customMessage'];Array[_0x46d981(0x1b9)](_0x19ea5e)?_0x19ea5e['forEach'](_0x548427=>{const _0x30f2c8=_0x46d981;_0x7350a5[_0x30f2c8(0x1a7)](_0x548427[_0x30f2c8(0x1b6)]+':\x20'+_0x548427[_0x30f2c8(0x1ad)]);}):_0x7350a5[_0x46d981(0x1a7)](_0x19ea5e[_0x46d981(0x1b6)]+':\x20'+_0x19ea5e[_0x46d981(0x1ad)]);}else _0x7350a5[_0x46d981(0x1a7)](_0x2478ef[_0x46d981(0x1ad)]);_0x40cbca=![];}!_0x40cbca?process[_0x46d981(0x1b3)](0x1):process['exit'](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x25c6(_0x4e13e9,_0x4adf34){const _0x5f39f0=_0x5f39();return _0x25c6=function(_0x25c6fb,_0xb867a8){_0x25c6fb=_0x25c6fb-0xb1;let _0x1d0d33=_0x5f39f0[_0x25c6fb];return _0x1d0d33;},_0x25c6(_0x4e13e9,_0x4adf34);}function _0x5f39(){const _0x2bcc7d=['start','1681065JKrXSD','versions','dev','length','1197688TWqCSt','28skRXYk','fetchUtils','31056714RtigSb','semver','publish','3029146fbUrnQ','Current\x20Node.js\x20version\x20is\x20','major','decompressResponseBuffer','./cmds/help','382611YilTvr','70UmIRyo','__esModule','setFetch','store','run','8448624vXjfLO','./utils/FetchUtils-1','./cmds/version','help','build','fetch','version','97815GsOfGN','./cmds/build','Cli','node','defineProperty'];_0x5f39=function(){return _0x2bcc7d;};return _0x5f39();}const _0x46596f=_0x25c6;(function(_0x404230,_0x837f17){const _0x5eb045=_0x25c6,_0x11c036=_0x404230();while(!![]){try{const _0x4367ba=-parseInt(_0x5eb045(0xc4))/0x1+-parseInt(_0x5eb045(0xbf))/0x2+-parseInt(_0x5eb045(0xb5))/0x3+parseInt(_0x5eb045(0xba))/0x4*(-parseInt(_0x5eb045(0xd1))/0x5)+parseInt(_0x5eb045(0xca))/0x6+parseInt(_0x5eb045(0xc5))/0x7*(-parseInt(_0x5eb045(0xb9))/0x8)+parseInt(_0x5eb045(0xbc))/0x9;if(_0x4367ba===_0x837f17)break;else _0x11c036['push'](_0x11c036['shift']());}catch(_0x7d5fe7){_0x11c036['push'](_0x11c036['shift']());}}}(_0x5f39,0xbb51c));Object[_0x46596f(0xb3)](exports,_0x46596f(0xc6),{'value':!![]}),exports[_0x46596f(0xb1)]=void 0x0;const minimist=require('minimist'),semver_1=require(_0x46596f(0xbd)),FetchUtils_1_1=require(_0x46596f(0xcb)),help_1=require(_0x46596f(0xc3)),build_1=require(_0x46596f(0xd2)),version_1=require(_0x46596f(0xcc)),fetch_1=require('./utils/fetch');class Cli{async[_0x46596f(0xc9)](_0xfa884a){const _0x26da1e=_0x46596f;if((0x0,semver_1[_0x26da1e(0xc1)])(process[_0x26da1e(0xb6)][_0x26da1e(0xb2)])<0xe)throw new Error(_0x26da1e(0xc0)+process['versions'][_0x26da1e(0xb2)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1[_0x26da1e(0xbb)][_0x26da1e(0xc7)](fetch_1[_0x26da1e(0xcf)]),FetchUtils_1_1[_0x26da1e(0xbb)]['setDownloadFile'](fetch_1['downloadFile']),FetchUtils_1_1[_0x26da1e(0xbb)]['setDecompressResponseBuffer'](fetch_1[_0x26da1e(0xc2)]);const _0x1b5c00=minimist(_0xfa884a);let _0x18e9d2=undefined;if(_0x1b5c00['_'][_0x26da1e(0xb8)]===0x0){if(_0x1b5c00[_0x26da1e(0xd0)])_0x18e9d2=_0x26da1e(0xd0);else _0x1b5c00['help']&&(_0x18e9d2='help');}else _0x18e9d2=_0x1b5c00['_'][0x0];!_0x18e9d2&&(_0x18e9d2=_0x26da1e(0xcd));switch(_0x18e9d2){case'help':case'h':return await(0x0,help_1[_0x26da1e(0xcd)])(_0x1b5c00);case _0x26da1e(0xce):return await(0x0,build_1[_0x26da1e(0xb4)])(_0x1b5c00);case _0x26da1e(0xbe):return await(0x0,build_1[_0x26da1e(0xc8)])(_0x1b5c00);case _0x26da1e(0xb7):return await(0x0,build_1[_0x26da1e(0xb7)])(_0x1b5c00);case'version':{return await(0x0,version_1['version'])();}default:throw new Error('\x22'+_0x18e9d2+'\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands');}}}exports[_0x46596f(0xb1)]=Cli;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x16d23c=_0x44d9;(function(_0x5df2f5,_0x170234){const _0x1d5630=_0x44d9,_0x2830be=_0x5df2f5();while(!![]){try{const _0x43ae1e=parseInt(_0x1d5630(0x1f0))/0x1*(parseInt(_0x1d5630(0x1fa))/0x2)+parseInt(_0x1d5630(0x205))/0x3+-parseInt(_0x1d5630(0x204))/0x4*(parseInt(_0x1d5630(0x1e5))/0x5)+parseInt(_0x1d5630(0x1fb))/0x6+-parseInt(_0x1d5630(0x1e6))/0x7*(parseInt(_0x1d5630(0x1e4))/0x8)+-parseInt(_0x1d5630(0x1e8))/0x9*(parseInt(_0x1d5630(0x1ec))/0xa)+parseInt(_0x1d5630(0x200))/0xb;if(_0x43ae1e===_0x170234)break;else _0x2830be['push'](_0x2830be['shift']());}catch(_0x1c37ec){_0x2830be['push'](_0x2830be['shift']());}}}(_0x1f64,0x3fa24));Object[_0x16d23c(0x1f8)](exports,'__esModule',{'value':!![]}),exports[_0x16d23c(0x1eb)]=start,exports[_0x16d23c(0x208)]=store,exports[_0x16d23c(0x1f3)]=dev;const pwa_1=require(_0x16d23c(0x1ea)),resource_1=require(_0x16d23c(0x1fc)),xcode_1=require(_0x16d23c(0x1ff)),check_1=require(_0x16d23c(0x1f4));function _0x1f64(){const _0x11b1cd=['parseProject','dev','./check','app-store-connect','project','ResourceManager','defineProperty','upload','125318kVbsqU','1532628fmvXgh','../resource','PWAGenerator','generator','../xcode','2383458rMTacc','version','checkBuildParams','moveProjectFrom','103304UmHZac','959985mcFVzj','log','name','store','runWithSimulator','move\x20web\x20project:\x20ok','generate\x20icon:\x20ok','8QYkBMc','70lvHNNK','2582629mwScWf','fromNet','387xFGSIn','json','../pwa','start','26570Qemvkr','XcodeManager','buildType','SpatialWebTest','5Xjkyxq','com.SpatialWeb.test'];_0x1f64=function(){return _0x11b1cd;};return _0x1f64();}async function start(_0x530309,_0x1f3541=![]){const _0x1a4801=_0x16d23c;(0x0,check_1[_0x1a4801(0x202)])(_0x530309,_0x1f3541),console[_0x1a4801(0x206)]('-------------------\x20build\x20start\x20-------------------');let _0x438067=await pwa_1[_0x1a4801(0x1fd)][_0x1a4801(0x1fe)](_0x530309,_0x1f3541);!_0x438067[_0x1a4801(0x1e7)]&&(await resource_1[_0x1a4801(0x1f7)][_0x1a4801(0x203)](_0x530309[_0x1a4801(0x1f6)]),console[_0x1a4801(0x206)](_0x1a4801(0x1e2)));const _0x25702b=await resource_1[_0x1a4801(0x1f7)]['generateIcon'](_0x438067);return console[_0x1a4801(0x206)](_0x1a4801(0x1e3)),await xcode_1[_0x1a4801(0x1ed)][_0x1a4801(0x1f2)]({'icon':_0x25702b,'manifestInfo':_0x438067,'teamId':_0x530309['teamId'],'version':_0x530309[_0x1a4801(0x201)],'buildType':_0x530309[_0x1a4801(0x1ee)]},_0x1f3541),console[_0x1a4801(0x206)]('-------------------\x20build\x20end\x20-------------------'),_0x438067;}function _0x44d9(_0x2fe26a,_0x59db67){const _0x1f6429=_0x1f64();return _0x44d9=function(_0x44d9f8,_0x39e29e){_0x44d9f8=_0x44d9f8-0x1e2;let _0x3ab442=_0x1f6429[_0x44d9f8];return _0x3ab442;},_0x44d9(_0x2fe26a,_0x59db67);}async function store(_0x165499){const _0x503cc2=_0x16d23c;(0x0,check_1['checkStoreParams'])(_0x165499);let _0x4f88b1={'name':_0x503cc2(0x1ef)};_0x165499[_0x503cc2(0x1ee)]=_0x503cc2(0x1f5);if(_0x165499['name'])_0x4f88b1[_0x503cc2(0x207)]=_0x165499[_0x503cc2(0x207)];else{const _0x4b9903=await start(_0x165499);if(!_0x4b9903)return![];_0x4f88b1['name']=_0x4b9903['json']['name'];}return await xcode_1[_0x503cc2(0x1ed)][_0x503cc2(0x1f9)](_0x165499,_0x4f88b1),!![];}async function dev(_0xed120f){const _0x75e51=_0x16d23c;let _0x155e03={'name':'SpatialWebTest','id':_0x75e51(0x1f1)};const _0x2ea092=await start(_0xed120f,!![]);if(!_0x2ea092)return![];return _0x155e03[_0x75e51(0x207)]=_0x2ea092[_0x75e51(0x1e9)][_0x75e51(0x207)],_0x155e03['id']=_0x2ea092[_0x75e51(0x1e9)]['id'],await xcode_1[_0x75e51(0x1ed)][_0x75e51(0x209)](_0x155e03),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x319b(_0x3cb1e1,_0x4c2721){var _0x16abbb=_0x16ab();return _0x319b=function(_0x319b41,_0x533685){_0x319b41=_0x319b41-0x1c3;var _0x4bb64b=_0x16abbb[_0x319b41];return _0x4bb64b;},_0x319b(_0x3cb1e1,_0x4c2721);}var _0x294d96=_0x319b;(function(_0x4eb517,_0x28c10d){var _0x561e9c=_0x319b,_0x520175=_0x4eb517();while(!![]){try{var _0x54b602=parseInt(_0x561e9c(0x1cb))/0x1*(parseInt(_0x561e9c(0x1d0))/0x2)+parseInt(_0x561e9c(0x1d6))/0x3*(-parseInt(_0x561e9c(0x1d4))/0x4)+parseInt(_0x561e9c(0x1c3))/0x5*(parseInt(_0x561e9c(0x1cd))/0x6)+-parseInt(_0x561e9c(0x1d3))/0x7*(parseInt(_0x561e9c(0x1ce))/0x8)+parseInt(_0x561e9c(0x1cc))/0x9*(-parseInt(_0x561e9c(0x1d9))/0xa)+parseInt(_0x561e9c(0x1c8))/0xb*(-parseInt(_0x561e9c(0x1d7))/0xc)+parseInt(_0x561e9c(0x1c7))/0xd;if(_0x54b602===_0x28c10d)break;else _0x520175['push'](_0x520175['shift']());}catch(_0x597b46){_0x520175['push'](_0x520175['shift']());}}}(_0x16ab,0x72195));Object[_0x294d96(0x1d1)](exports,_0x294d96(0x1d2),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports['checkStoreParams']=checkStoreParams;function _0x16ab(){var _0x29544d=['version\x20is\x20required','teamId','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','21089692BFzzpi','132jnmZKt','manifest','manifest\x20or\x20manifest-url\x20is\x20required','351893XRMAbv','959355alAJMV','6XFVPwn','16kHiVCD','manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','2qSrCjZ','defineProperty','__esModule','1732983mxRClz','4CDkWzm','manifest-url','449583fnZQZe','841296pFKbrX','teamId\x20is\x20required','70BuDfGK','3628160ATRGcM'];_0x16ab=function(){return _0x29544d;};return _0x16ab();}function checkBuildParams(_0x2be5c6,_0x2db52c=![]){var _0x20f796=_0x294d96;if(!_0x2be5c6[_0x20f796(0x1c9)]&&!_0x2be5c6[_0x20f796(0x1d5)])throw new Error(_0x20f796(0x1ca));if(_0x2be5c6[_0x20f796(0x1c9)]&&_0x2be5c6[_0x20f796(0x1d5)])throw new Error(_0x20f796(0x1cf));if(!_0x2be5c6[_0x20f796(0x1c5)]&&!_0x2db52c)throw new Error(_0x20f796(0x1d8));}function checkStoreParams(_0x28c76c){var _0x1aecdb=_0x294d96;if(!(_0x28c76c['u']&&_0x28c76c['p'])&&!(_0x28c76c['k']&&_0x28c76c['i']))throw new Error(_0x1aecdb(0x1c6));if(!_0x28c76c['version'])throw new Error(_0x1aecdb(0x1c4));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x296595=_0xe3fb;function _0x5551(){const _0x88012d=['help','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','3193816oNcQTj','82255WMSrUc','1213117TYZJXt','10veYjyl','21426SNUogL','dev','../utils/Log','910FAqTBn','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','2274996mwwyuu','build','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','get','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','info','Usage:','264wZQbjk','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','publish','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','ConsoleLog','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','main','17407431NxRtiE','join','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','help\x20................\x20shows\x20this\x20menu','2486397gDFsGE','webspatial\x20[command]\x20<options>','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project'];_0x5551=function(){return _0x88012d;};return _0x5551();}(function(_0x58d5bf,_0x42b0d7){const _0x133ea3=_0xe3fb,_0x36f964=_0x58d5bf();while(!![]){try{const _0x594b86=-parseInt(_0x133ea3(0x1c7))/0x1+parseInt(_0x133ea3(0x1ce))/0x2+parseInt(_0x133ea3(0x1c0))/0x3+parseInt(_0x133ea3(0x1d5))/0x4*(-parseInt(_0x133ea3(0x1c6))/0x5)+parseInt(_0x133ea3(0x1c9))/0x6*(-parseInt(_0x133ea3(0x1cc))/0x7)+-parseInt(_0x133ea3(0x1c5))/0x8+-parseInt(_0x133ea3(0x1bc))/0x9*(-parseInt(_0x133ea3(0x1c8))/0xa);if(_0x594b86===_0x42b0d7)break;else _0x36f964['push'](_0x36f964['shift']());}catch(_0x33830d){_0x36f964['push'](_0x36f964['shift']());}}}(_0x5551,0xb4344));function _0xe3fb(_0x4b751d,_0x439b92){const _0x5551ad=_0x5551();return _0xe3fb=function(_0xe3fbdd,_0x333f85){_0xe3fbdd=_0xe3fbdd-0x1bc;let _0x533228=_0x5551ad[_0xe3fbdd];return _0x533228;},_0xe3fb(_0x4b751d,_0x439b92);}Object[_0x296595(0x1d9)](exports,'__esModule',{'value':!![]}),exports[_0x296595(0x1c3)]=help;const Log_1=require(_0x296595(0x1cb)),HELP_MESSAGES=new Map([['main',[_0x296595(0x1c1),'','',_0x296595(0x1bf),_0x296595(0x1c2)+_0x296595(0x1d0),'dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator',_0x296595(0x1be)][_0x296595(0x1bd)]('\x0a')],[_0x296595(0x1cf),[_0x296595(0x1d4),'','',_0x296595(0x1c4),'','',_0x296595(0x1d6)][_0x296595(0x1bd)]('\x0a')],[_0x296595(0x1ca),[_0x296595(0x1d4),'','',_0x296595(0x1cd),'','',_0x296595(0x1d2)][_0x296595(0x1bd)]('\x0a')],[_0x296595(0x1d7),[_0x296595(0x1d4),'','',_0x296595(0x1d8),'','',_0x296595(0x1db),'','','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>'][_0x296595(0x1bd)]('\x0a')]]);async function help(_0x27ff5b,_0x1ce9bb=new Log_1[(_0x296595(0x1da))](_0x296595(0x1c3))){const _0x1f9a35=_0x296595,_0xca8303=_0x27ff5b['_'][0x1],_0x4eaa3a=HELP_MESSAGES[_0x1f9a35(0x1d1)](_0xca8303)||HELP_MESSAGES[_0x1f9a35(0x1d1)](_0x1f9a35(0x1dc));return _0x1ce9bb[_0x1f9a35(0x1d3)](_0x4eaa3a),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x17c220=_0x332e;function _0x332e(_0x385daf,_0x55ce23){const _0x2f4763=_0x2f47();return _0x332e=function(_0x332e6a,_0x45064d){_0x332e6a=_0x332e6a-0x1e7;let _0x30f5ac=_0x2f4763[_0x332e6a];return _0x30f5ac;},_0x332e(_0x385daf,_0x55ce23);}(function(_0x1c2df6,_0x1d9f2d){const _0x3e5cf6=_0x332e,_0x15a1e8=_0x1c2df6();while(!![]){try{const _0x38320c=-parseInt(_0x3e5cf6(0x1ee))/0x1+parseInt(_0x3e5cf6(0x1ea))/0x2*(-parseInt(_0x3e5cf6(0x1f3))/0x3)+parseInt(_0x3e5cf6(0x1f0))/0x4*(parseInt(_0x3e5cf6(0x1e8))/0x5)+-parseInt(_0x3e5cf6(0x1eb))/0x6*(parseInt(_0x3e5cf6(0x1e7))/0x7)+-parseInt(_0x3e5cf6(0x1ef))/0x8+-parseInt(_0x3e5cf6(0x1fa))/0x9+-parseInt(_0x3e5cf6(0x1f1))/0xa*(-parseInt(_0x3e5cf6(0x1f4))/0xb);if(_0x38320c===_0x1d9f2d)break;else _0x15a1e8['push'](_0x15a1e8['shift']());}catch(_0xb766fc){_0x15a1e8['push'](_0x15a1e8['shift']());}}}(_0x2f47,0xc3680));Object[_0x17c220(0x1ec)](exports,_0x17c220(0x1e9),{'value':!![]}),exports[_0x17c220(0x1f2)]=version;const fs=require('fs'),path=require(_0x17c220(0x1f5)),Log_1=require(_0x17c220(0x1fb));function _0x2f47(){const _0x10a7e3=['toString','ConsoleLog','284733WRpQOa','../utils/Log','../../../package.json','1598863kJCBgB','7254265YuPIBD','__esModule','30LOgliu','24ekksUL','defineProperty','readFile','80037haWMIA','6274408DlPteX','4VlYbth','520XfCuMB','version','127086FMleRt','379621dReipq','path','parse','info'];_0x2f47=function(){return _0x10a7e3;};return _0x2f47();}async function version(_0x1c9021=new Log_1[(_0x17c220(0x1f9))](_0x17c220(0x1f2))){const _0x7cf9b7=_0x17c220,_0x19164c=path['join'](__dirname,_0x7cf9b7(0x1fc)),_0x41b787=await(await fs['promises'][_0x7cf9b7(0x1ed)](_0x19164c))[_0x7cf9b7(0x1f8)](),_0xdba5e8=JSON[_0x7cf9b7(0x1f6)](_0x41b787);return _0x1c9021[_0x7cf9b7(0x1f7)](_0xdba5e8[_0x7cf9b7(0x1f2)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x130ac7=_0x4f62;(function(_0x414305,_0x495084){const _0x256cf0=_0x4f62,_0x468ea2=_0x414305();while(!![]){try{const _0x59b05e=-parseInt(_0x256cf0(0xaf))/0x1*(parseInt(_0x256cf0(0xd9))/0x2)+parseInt(_0x256cf0(0xa2))/0x3+-parseInt(_0x256cf0(0xcd))/0x4+parseInt(_0x256cf0(0xc0))/0x5+parseInt(_0x256cf0(0xca))/0x6*(parseInt(_0x256cf0(0xd8))/0x7)+parseInt(_0x256cf0(0xb6))/0x8*(parseInt(_0x256cf0(0xa6))/0x9)+parseInt(_0x256cf0(0xde))/0xa*(-parseInt(_0x256cf0(0xdc))/0xb);if(_0x59b05e===_0x495084)break;else _0x468ea2['push'](_0x468ea2['shift']());}catch(_0x4b6474){_0x468ea2['push'](_0x468ea2['shift']());}}}(_0x2e11,0x50241));function _0x2e11(){const _0x4a8e8d=['ircs','__esModule','minimal-ui','sms','matrix','magnet','display_override','indexOf','bitcoin','49WraDUC','2790TdidVw','configDisplay','configDeeplink','342463WQjhVT','sip','90DHtoeR','./static-web','http://','join','automatic','standalone','sftp','529770pGRhPv','defineProperty','length','wtai','3524238FBvLrT','webcal','urn','xmpp','validateURL','parseRouter','ftps','openpgp4fpr','display','351TBZzEM','configScope','protocol','../utils/utils','configMainScene','resizability','mms','8EdjONP','news','mainScene','contentSize','./validate','safelist','ftp','url','protocol_handlers','geo','1354500PiXtjS','width','replace','defaultSize','configId','https://','includes','scope','height','start_url','437190arwoaN','host','configStartUrl','1004112tVnMjz','web+'];_0x2e11=function(){return _0x4a8e8d;};return _0x2e11();}Object[_0x130ac7(0xa3)](exports,_0x130ac7(0xd0),{'value':!![]}),exports['safelist']=void 0x0,exports[_0x130ac7(0xc4)]=configId,exports[_0x130ac7(0xcc)]=configStartUrl,exports[_0x130ac7(0xb0)]=configScope,exports[_0x130ac7(0xda)]=configDisplay,exports[_0x130ac7(0xb3)]=configMainScene,exports[_0x130ac7(0xdb)]=configDeeplink;const utils_1=require(_0x130ac7(0xb2)),validate_1=require(_0x130ac7(0xba)),path_1=require('path');function configId(_0x260b1b){const _0x48009d=_0x130ac7;!_0x260b1b['id']&&(_0x260b1b['id']=_0x260b1b[_0x48009d(0xc9)]);}function _0x4f62(_0x2dff3c,_0x2a0232){const _0x2e117a=_0x2e11();return _0x4f62=function(_0x4f62fa,_0x3f918a){_0x4f62fa=_0x4f62fa-0xa1;let _0x224722=_0x2e117a[_0x4f62fa];return _0x224722;},_0x4f62(_0x2dff3c,_0x2a0232);}function configStartUrl(_0x7732f,_0x33d34d,_0x4fff77){const _0x52bd24=_0x130ac7,_0x2166d2=(0x0,validate_1['validateURL'])(_0x7732f[_0x52bd24(0xc9)]);let _0x253aa8=_0x7732f[_0x52bd24(0xc9)];_0x4fff77?!_0x2166d2&&(_0x253aa8=(0x0,path_1[_0x52bd24(0xe1)])((0x0,utils_1[_0x52bd24(0xab)])(_0x33d34d),_0x7732f['start_url'])):!_0x2166d2&&(_0x253aa8=(0x0,path_1[_0x52bd24(0xe1)])(_0x52bd24(0xdf),_0x7732f[_0x52bd24(0xc9)])),_0x7732f[_0x52bd24(0xc9)]=_0x253aa8;}function configScope(_0x4ce575,_0xb28253){const _0x460165=_0x130ac7;let _0x465711='';const _0x11cdf7=(0x0,validate_1[_0x460165(0xaa)])(_0x4ce575[_0x460165(0xc7)]);if(_0xb28253&&_0x11cdf7){const _0x1430aa=new URL(_0x4ce575[_0x460165(0xc7)]),_0x4225c9=new URL(_0x4ce575['start_url']);(_0x1430aa[_0x460165(0xcb)]!==_0x4225c9['host']||_0x4ce575[_0x460165(0xc9)][_0x460165(0xd6)](_0x465711)!==0x0)&&(_0x465711=(0x0,utils_1['parseRouter'])(_0x4ce575['start_url']));}else{if(_0xb28253&&!_0x11cdf7){const _0x102bfb=_0x4ce575[_0x460165(0xc9)][_0x460165(0xd6)](_0x460165(0xe0))===0x0?_0x460165(0xe0):_0x460165(0xc5);_0x465711=(0x0,path_1[_0x460165(0xe1)])(_0x4ce575[_0x460165(0xc9)][_0x460165(0xc2)](_0x102bfb,''),_0x4ce575[_0x460165(0xc7)]),_0x465711=_0x102bfb+_0x465711;}else _0x465711=(0x0,path_1['join'])((0x0,utils_1[_0x460165(0xab)])(_0x4ce575[_0x460165(0xc9)]),_0x4ce575[_0x460165(0xc7)]);}_0x4ce575['scope']=_0x465711;}function configDisplay(_0x56be43){const _0xe73582=_0x130ac7;let _0x444d50=_0x56be43[_0xe73582(0xae)];_0x444d50!==_0xe73582(0xd1)&&_0x444d50!==_0xe73582(0xe3)&&(_0x444d50=_0xe73582(0xe3));if(_0x56be43[_0xe73582(0xd5)]&&_0x56be43[_0xe73582(0xd5)][_0xe73582(0xa4)]>0x0){const _0x477be2=_0x56be43[_0xe73582(0xd5)][_0xe73582(0xd6)](_0xe73582(0xd1)),_0xf9fbad=_0x56be43[_0xe73582(0xd5)][_0xe73582(0xd6)](_0xe73582(0xe3));if(_0x477be2>=0x0&&_0xf9fbad>=0x0)_0x444d50=_0xf9fbad>_0x477be2?_0xe73582(0xe3):_0xe73582(0xd1);else{if(_0x477be2>=0x0)_0x444d50=_0xe73582(0xd1);else _0xf9fbad>=0x0&&(_0x444d50='standalone');}}}function configMainScene(_0x5e6780){const _0x4a5be9=_0x130ac7;var _0x2f9bb9,_0x218c6f;const _0x4a04cb=[_0x4a5be9(0xe2),'contentMinSize',_0x4a5be9(0xb9)];let _0xd51dfa={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x4a5be9(0xe2)};_0x5e6780[_0x4a5be9(0xb8)]&&(_0xd51dfa[_0x4a5be9(0xc3)][_0x4a5be9(0xc1)]=Number((_0x2f9bb9=_0x5e6780[_0x4a5be9(0xb8)][_0x4a5be9(0xc3)])===null||_0x2f9bb9===void 0x0?void 0x0:_0x2f9bb9[_0x4a5be9(0xc1)])>0x0?_0x5e6780['mainScene'][_0x4a5be9(0xc3)][_0x4a5be9(0xc1)]:0x500,_0xd51dfa[_0x4a5be9(0xc3)]['height']=Number((_0x218c6f=_0x5e6780[_0x4a5be9(0xb8)][_0x4a5be9(0xc3)])===null||_0x218c6f===void 0x0?void 0x0:_0x218c6f[_0x4a5be9(0xc8)])>0x0?_0x5e6780[_0x4a5be9(0xb8)][_0x4a5be9(0xc3)][_0x4a5be9(0xc8)]:0x500,_0xd51dfa[_0x4a5be9(0xb4)]=_0x4a04cb['includes'](_0x5e6780[_0x4a5be9(0xb8)][_0x4a5be9(0xb4)])?_0x5e6780[_0x4a5be9(0xb8)]['resizability']:_0x4a5be9(0xe2)),_0x5e6780[_0x4a5be9(0xb8)]=_0xd51dfa;}function configDeeplink(_0x37d62f){const _0x15ffb3=_0x130ac7;if(_0x37d62f['protocol_handlers']&&_0x37d62f[_0x15ffb3(0xbe)]['length']>0x0)for(var _0x462351=0x0;_0x462351<_0x37d62f['protocol_handlers'][_0x15ffb3(0xa4)];_0x462351++){const _0x3b1981=_0x37d62f[_0x15ffb3(0xbe)][_0x462351];if(_0x3b1981['protocol']&&(exports['safelist'][_0x15ffb3(0xc6)](_0x3b1981[_0x15ffb3(0xb1)])||_0x3b1981['protocol'][_0x15ffb3(0xd6)](_0x15ffb3(0xce))===0x0)){if(!((0x0,validate_1[_0x15ffb3(0xaa)])(_0x3b1981[_0x15ffb3(0xbd)])&&_0x3b1981[_0x15ffb3(0xbd)]['indexOf'](_0x37d62f[_0x15ffb3(0xc7)])<0x0))continue;}_0x37d62f[_0x15ffb3(0xbe)]['splice'](_0x462351,0x1),_0x462351--;}}exports[_0x130ac7(0xbb)]=[_0x130ac7(0xd7),_0x130ac7(0xbc),_0x130ac7(0xac),_0x130ac7(0xbf),'im','irc',_0x130ac7(0xcf),_0x130ac7(0xd4),'mailto',_0x130ac7(0xd3),_0x130ac7(0xb5),_0x130ac7(0xb7),'nntp',_0x130ac7(0xad),_0x130ac7(0xa1),_0x130ac7(0xdd),_0x130ac7(0xd2),'smsto','ssh','tel',_0x130ac7(0xa8),_0x130ac7(0xa7),_0x130ac7(0xa5),_0x130ac7(0xa9)];
|
package/dist/lib/pwa/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface ManifestInfo {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class PWAGenerator {
|
|
12
12
|
static DisplayModes: string[];
|
|
13
|
-
static generator(args: InitArgs): Promise<ManifestInfo>;
|
|
14
|
-
static validate(args: InitArgs): Promise<ManifestInfo>;
|
|
13
|
+
static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
14
|
+
static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
15
15
|
static config(manifestInfo: ManifestInfo): void;
|
|
16
16
|
}
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2d1bec=_0x3846;(function(_0x22c313,_0x2aa379){const _0x2cd39b=_0x3846,_0x226fe5=_0x22c313();while(!![]){try{const _0x361521=parseInt(_0x2cd39b(0x1da))/0x1+-parseInt(_0x2cd39b(0x1d5))/0x2*(parseInt(_0x2cd39b(0x1c4))/0x3)+-parseInt(_0x2cd39b(0x1d8))/0x4+parseInt(_0x2cd39b(0x1cf))/0x5*(-parseInt(_0x2cd39b(0x1bc))/0x6)+-parseInt(_0x2cd39b(0x1d6))/0x7*(parseInt(_0x2cd39b(0x1bd))/0x8)+-parseInt(_0x2cd39b(0x1be))/0x9+parseInt(_0x2cd39b(0x1c6))/0xa*(parseInt(_0x2cd39b(0x1bb))/0xb);if(_0x361521===_0x2aa379)break;else _0x226fe5['push'](_0x226fe5['shift']());}catch(_0x46dc7e){_0x226fe5['push'](_0x226fe5['shift']());}}}(_0x49fa,0xd8297));Object[_0x2d1bec(0x1d3)](exports,_0x2d1bec(0x1ce),{'value':!![]}),exports[_0x2d1bec(0x1dd)]=void 0x0;const path_1=require('path'),config_1=require(_0x2d1bec(0x1cb)),load_1=require('../resource/load'),validate_1=require('./validate');class PWAGenerator{static async[_0x2d1bec(0x1c2)](_0x39a6ca,_0x7942d9=![]){const _0x4db7bd=_0x2d1bec;let _0x202a7b=await this[_0x4db7bd(0x1b9)](_0x39a6ca,_0x7942d9);return console['log'](_0x4db7bd(0x1c5)),await this[_0x4db7bd(0x1cc)](_0x202a7b),console['log'](_0x4db7bd(0x1db)),_0x202a7b;}static async[_0x2d1bec(0x1b9)](_0x14acff,_0x50d8ba=![]){const _0x545503=_0x2d1bec;let _0x9f6c={},_0x5a91e6='',_0x335020=![];if(_0x14acff[_0x545503(0x1e0)])_0x5a91e6=_0x14acff[_0x545503(0x1e0)],_0x335020=!![],_0x9f6c=await(0x0,load_1[_0x545503(0x1d1)])(_0x14acff[_0x545503(0x1e0)]);else _0x14acff[_0x545503(0x1de)]&&(_0x5a91e6=(0x0,path_1[_0x545503(0x1ca)])(process[_0x545503(0x1d9)](),_0x14acff[_0x545503(0x1de)]),_0x9f6c=await(0x0,load_1[_0x545503(0x1bf)])(_0x14acff[_0x545503(0x1de)]));(0x0,validate_1[_0x545503(0x1ba)])(_0x9f6c);var _0xbba00d=(0x0,validate_1[_0x545503(0x1cd)])(_0x9f6c,_0x5a91e6,_0x335020,_0x50d8ba);return await(0x0,validate_1[_0x545503(0x1df)])(_0x9f6c,_0x5a91e6),{'json':_0x9f6c,'url':_0x5a91e6,'fromNet':_0xbba00d};}static[_0x2d1bec(0x1cc)](_0x18259a){const _0x4b7ae9=_0x2d1bec;(0x0,config_1[_0x4b7ae9(0x1d2)])(_0x18259a[_0x4b7ae9(0x1c7)],_0x18259a[_0x4b7ae9(0x1c9)],_0x18259a[_0x4b7ae9(0x1d4)]),(0x0,config_1[_0x4b7ae9(0x1c1)])(_0x18259a['json']),(0x0,config_1[_0x4b7ae9(0x1c0)])(_0x18259a[_0x4b7ae9(0x1c7)],_0x18259a[_0x4b7ae9(0x1d4)]),(0x0,config_1[_0x4b7ae9(0x1c8)])(_0x18259a['json']),(0x0,config_1[_0x4b7ae9(0x1dc)])(_0x18259a['json']),(0x0,config_1[_0x4b7ae9(0x1d0)])(_0x18259a[_0x4b7ae9(0x1c7)]);}}function _0x3846(_0x3eab28,_0x317a79){const _0x49fa2d=_0x49fa();return _0x3846=function(_0x38469b,_0x477e16){_0x38469b=_0x38469b-0x1b9;let _0x242e4f=_0x49fa2d[_0x38469b];return _0x242e4f;},_0x3846(_0x3eab28,_0x317a79);}function _0x49fa(){const _0x301dee=['reset\x20manifest.json:\x20ok','configDeeplink','PWAGenerator','manifest','checkIcons','manifest-url','validate','checkManifestJson','11HtrIjF','6uTxITh','8hrfFXI','11129211DKKPMx','loadJsonFromDisk','configScope','configId','generator','standalone','1473uJGpEl','check\x20manifest.json:\x20ok','37382580gvbFMD','json','configDisplay','url','join','./config','config','checkStartUrl','__esModule','1803080DVLmyx','configMainScene','loadJsonFromNet','configStartUrl','defineProperty','fromNet','2332nLRiNQ','5463451YthTzz','DisplayModes','5806592rWBsKm','cwd','1548983qkYggt'];_0x49fa=function(){return _0x301dee;};return _0x49fa();}exports[_0x2d1bec(0x1dd)]=PWAGenerator,PWAGenerator[_0x2d1bec(0x1d7)]=[_0x2d1bec(0x1c3),'minimal-ui'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function checkManifestJson(manifestJson: Record<string, any>): void;
|
|
2
|
-
export declare function checkStartUrl(manifest: Record<string, any>, manifestUrl: string, isNet: boolean):
|
|
2
|
+
export declare function checkStartUrl(manifest: Record<string, any>, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string): Promise<void>;
|
|
4
4
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x4e0947=_0x36ea;(function(_0x26e33b,_0xe83b89){const _0x2e37f2=_0x36ea,_0x5783b3=_0x26e33b();while(!![]){try{const _0x498355=parseInt(_0x2e37f2(0x1d2))/0x1+parseInt(_0x2e37f2(0x1c7))/0x2+parseInt(_0x2e37f2(0x1cd))/0x3*(parseInt(_0x2e37f2(0x1cf))/0x4)+parseInt(_0x2e37f2(0x1ee))/0x5+parseInt(_0x2e37f2(0x1ca))/0x6+-parseInt(_0x2e37f2(0x1da))/0x7*(parseInt(_0x2e37f2(0x1e0))/0x8)+-parseInt(_0x2e37f2(0x1d7))/0x9;if(_0x498355===_0xe83b89)break;else _0x5783b3['push'](_0x5783b3['shift']());}catch(_0x1bcf4f){_0x5783b3['push'](_0x5783b3['shift']());}}}(_0x49b4,0x2362e));function _0x49b4(){const _0x4eb099=['icons','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','getWidth','../resource/load','4736430PXYfux','sizes','name','7vXZvDb','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','../utils/utils','ImageHelper','CustomError','purpose','1779760EWLFtg','push','includes','split','startsWith','https://','loadImageFromNet','indexOf','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','start_url','forEach','In\x20the\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','http','path','195135ViUChb','validateURL','getHeight','checkIcons','../resource/imageHelper','host','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','checkStartUrl','length','maskable','join','503392GnkKnF','display','http://','1708704HPPJJM','parseRouter','defineProperty','183nqzLdH','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','15684GNUxSf','short_name','loadImageFromDisk','78994PzzhSB'];_0x49b4=function(){return _0x4eb099;};return _0x49b4();}Object[_0x4e0947(0x1cc)](exports,'__esModule',{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x4e0947(0x1c3)]=checkStartUrl,exports[_0x4e0947(0x1bf)]=checkIcons,exports[_0x4e0947(0x1ef)]=validateURL;const path_1=require(_0x4e0947(0x1ed)),_1=require('.'),CustomError_1=require('../utils/CustomError'),utils_1=require(_0x4e0947(0x1dc)),imageHelper_1=require(_0x4e0947(0x1c0)),load_1=require(_0x4e0947(0x1d6));function checkManifestJson(_0x1a55d3){const _0x49b52e=_0x4e0947;var _0x5727bc;const _0x4a1343=[];!_0x1a55d3[_0x49b52e(0x1d9)]&&!_0x1a55d3[_0x49b52e(0x1d0)]&&_0x4a1343[_0x49b52e(0x1e1)]({'code':0xbbe,'message':_0x49b52e(0x1c2),'message_staring_params':{}});!((_0x5727bc=_0x1a55d3['icons'])===null||_0x5727bc===void 0x0?void 0x0:_0x5727bc[_0x49b52e(0x1c4)])&&_0x4a1343[_0x49b52e(0x1e1)]({'code':0xbbf,'message':_0x49b52e(0x1e8),'message_staring_params':{}});!_0x1a55d3[_0x49b52e(0x1e9)]&&_0x4a1343['push']({'code':0xbc0,'message':_0x49b52e(0x1d4),'message_staring_params':{}});!_1['PWAGenerator']['DisplayModes'][_0x49b52e(0x1e2)](_0x1a55d3[_0x49b52e(0x1c8)])&&_0x4a1343['push']({'code':0xbc1,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value'+(_0x49b52e(0x1db)+_0x1a55d3[_0x49b52e(0x1c8)]+')'),'message_staring_params':{'display':_0x1a55d3[_0x49b52e(0x1c8)]}});if(_0x4a1343[_0x49b52e(0x1c4)])throw new CustomError_1[(_0x49b52e(0x1de))](_0x4a1343);}function checkStartUrl(_0x4beae7,_0x308189,_0x12d2e0,_0x2ffa86=![]){const _0x69f64=_0x4e0947;var _0x507e33=![];if(_0x2ffa86)return _0x507e33=_0x4beae7[_0x69f64(0x1e9)][_0x69f64(0x1e7)](_0x69f64(0x1e5))===0x0||_0x4beae7[_0x69f64(0x1e9)][_0x69f64(0x1e7)](_0x69f64(0x1c9))===0x0,_0x507e33;if(_0x12d2e0){if(_0x4beae7[_0x69f64(0x1e9)][_0x69f64(0x1e7)](_0x69f64(0x1e5))==0x0){const _0x491289=new URL(_0x4beae7[_0x69f64(0x1e9)]),_0x33493d=new URL(_0x308189);if(_0x491289['host']!==_0x33493d[_0x69f64(0x1c1)])throw new CustomError_1[(_0x69f64(0x1de))]({'code':0xfa0,'message':_0x69f64(0x1eb),'message_staring_params':{}});}else{if(_0x4beae7[_0x69f64(0x1e9)][_0x69f64(0x1e7)](_0x69f64(0x1c9))==0x0)throw new CustomError_1[(_0x69f64(0x1de))]({'code':0xfa0,'message':'In\x20the\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','message_staring_params':{}});}}return _0x507e33;}function _0x36ea(_0x5986ad,_0x38e150){const _0x49b428=_0x49b4();return _0x36ea=function(_0x36eaba,_0x4c1206){_0x36eaba=_0x36eaba-0x1bf;let _0xf0abc2=_0x49b428[_0x36eaba];return _0xf0abc2;},_0x36ea(_0x5986ad,_0x38e150);}async function checkIcons(_0x172a1f,_0xbd087){const _0x5a6d1b=_0x4e0947;var _0x151ab8;const _0x26e179=(0x0,utils_1[_0x5a6d1b(0x1cb)])(_0xbd087);let _0x1d46ff,_0x8cbb84,_0x3642e6,_0x5a05fd=0x0;for(var _0x2b665f=0x0;_0x2b665f<_0x172a1f[_0x5a6d1b(0x1d3)][_0x5a6d1b(0x1c4)];_0x2b665f++){const _0x18fd70=_0x172a1f['icons'][_0x2b665f];let _0x3ade33=((_0x151ab8=_0x18fd70[_0x5a6d1b(0x1df)])===null||_0x151ab8===void 0x0?void 0x0:_0x151ab8['indexOf'](_0x5a6d1b(0x1c5)))>=0x0;if(!_0x3ade33)continue;let _0x20a5ca=![],_0x3c5c66=_0x18fd70['src'],_0x58dc0f,_0x787fa8=0x0;!validateURL(_0x3c5c66)&&(_0x3c5c66=(0x0,path_1[_0x5a6d1b(0x1c6)])(_0x26e179,_0x3c5c66));if(_0x18fd70[_0x5a6d1b(0x1d8)]){const _0x31e6b8=_0x18fd70['sizes'][_0x5a6d1b(0x1e3)]('\x20');_0x31e6b8[_0x5a6d1b(0x1ea)](_0x55eeda=>{const _0x2b1911=_0x5a6d1b;let _0x57af94=_0x55eeda[_0x2b1911(0x1e3)]('x');Number(_0x57af94[0x0])>=0x400&&Number(_0x57af94[0x1])>=0x400&&(_0x20a5ca=!![],Number(_0x57af94[0x0])>_0x787fa8&&(_0x787fa8=Number(_0x57af94[0x0])));});}else _0x58dc0f=!_0x3c5c66['startsWith'](_0x5a6d1b(0x1ec))?await(0x0,load_1['loadImageFromDisk'])(_0x3c5c66):await(0x0,load_1[_0x5a6d1b(0x1e6)])(_0x3c5c66),_0x58dc0f['getWidth']()>=0x400&&_0x58dc0f[_0x5a6d1b(0x1f0)]()>=0x400&&(_0x20a5ca=!![],_0x58dc0f['getWidth']()>_0x787fa8&&(_0x787fa8=_0x58dc0f[_0x5a6d1b(0x1d5)]()));_0x20a5ca&&_0x3ade33&&(_0x787fa8>_0x5a05fd&&(_0x5a05fd=_0x787fa8,_0x1d46ff=_0x58dc0f,_0x8cbb84=_0x3c5c66,_0x3642e6=_0x18fd70[_0x5a6d1b(0x1df)]));}if(_0x5a05fd===0x0)throw new CustomError_1[(_0x5a6d1b(0x1de))]({'code':0xfa0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','message_staring_params':{}});else _0x8cbb84&&(_0x1d46ff=!_0x8cbb84[_0x5a6d1b(0x1e4)](_0x5a6d1b(0x1ec))?await(0x0,load_1[_0x5a6d1b(0x1d1)])(_0x8cbb84):await(0x0,load_1[_0x5a6d1b(0x1e6)])(_0x8cbb84));if(_0x1d46ff&&!imageHelper_1[_0x5a6d1b(0x1dd)]['isFullyOpaque'](_0x1d46ff))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x5a6d1b(0x1ce),'message_staring_params':{}});_0x172a1f[_0x5a6d1b(0x1d3)]=[{'src':_0x8cbb84,'sizes':_0x5a05fd+'x'+_0x5a05fd,'purpose':_0x3642e6}];}function validateURL(_0x5c2342){try{return new URL(_0x5c2342),!![];}catch(_0x5a3f17){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0xda2a5=_0x1241;function _0x1241(_0x3bc689,_0x2d7c4c){const _0x2a1a64=_0x2a1a();return _0x1241=function(_0x1241bc,_0x12b28d){_0x1241bc=_0x1241bc-0x15a;let _0x25a676=_0x2a1a64[_0x1241bc];return _0x25a676;},_0x1241(_0x3bc689,_0x2d7c4c);}(function(_0x27b0bd,_0x4eeb18){const _0x28ebf2=_0x1241,_0x5a7e94=_0x27b0bd();while(!![]){try{const _0x47de30=-parseInt(_0x28ebf2(0x162))/0x1*(parseInt(_0x28ebf2(0x15e))/0x2)+parseInt(_0x28ebf2(0x164))/0x3+-parseInt(_0x28ebf2(0x163))/0x4*(-parseInt(_0x28ebf2(0x15f))/0x5)+-parseInt(_0x28ebf2(0x160))/0x6*(-parseInt(_0x28ebf2(0x16b))/0x7)+parseInt(_0x28ebf2(0x16e))/0x8+parseInt(_0x28ebf2(0x16a))/0x9+-parseInt(_0x28ebf2(0x15c))/0xa;if(_0x47de30===_0x4eeb18)break;else _0x5a7e94['push'](_0x5a7e94['shift']());}catch(_0x377b13){_0x5a7e94['push'](_0x5a7e94['shift']());}}}(_0x2a1a,0xa7999));Object[_0xda2a5(0x166)](exports,'__esModule',{'value':!![]}),exports[_0xda2a5(0x169)]=copyDir,exports[_0xda2a5(0x16d)]=clearDir;const fs=require('fs');function copyDir(_0x380d19,_0x51c72a){const _0x20bbd3=_0xda2a5,_0x473ef2=fs[_0x20bbd3(0x15a)](_0x380d19);_0x473ef2[_0x20bbd3(0x165)](_0x30ac6e=>{const _0x5034cb=_0x20bbd3,_0x175b58=_0x380d19+'/'+_0x30ac6e,_0x2a950b=_0x51c72a+'/'+_0x30ac6e,_0x18175e=fs[_0x5034cb(0x16c)](_0x175b58);if(_0x18175e['isFile']())try{fs[_0x5034cb(0x168)](_0x2a950b,fs['readFileSync'](_0x175b58));}catch(_0x3300b4){console[_0x5034cb(0x167)](_0x3300b4);}else _0x18175e['isDirectory']()&&(!fs['existsSync'](_0x2a950b)&&fs['mkdirSync'](_0x2a950b,{'recursive':!![]}),copyDir(_0x175b58,_0x2a950b));});}function clearDir(_0x46f3cc){const _0x557945=_0xda2a5,_0x2caf4d=fs[_0x557945(0x15a)](_0x46f3cc);_0x2caf4d[_0x557945(0x165)](_0x1a2bbd=>{const _0x5b28b9=_0x557945,_0x4a95fd=_0x46f3cc+'/'+_0x1a2bbd,_0x823033=fs[_0x5b28b9(0x16c)](_0x4a95fd);if(_0x823033[_0x5b28b9(0x15b)]())try{fs[_0x5b28b9(0x15d)](_0x4a95fd);}catch(_0x2e486b){console[_0x5b28b9(0x167)](_0x2e486b);}else _0x823033[_0x5b28b9(0x161)]()&&clearDir(_0x4a95fd);});}function _0x2a1a(){const _0x412e06=['unlinkSync','2GUuRQU','170TnnDsX','23952HVFFWf','isDirectory','1149211exfeVC','55948teAxVe','3750372pXfIUG','forEach','defineProperty','log','writeFileSync','copyDir','10030842LJKtEt','2191iEeeSw','statSync','clearDir','10590944bhVguw','readdirSync','isFile','35778840IoGqNK'];_0x2a1a=function(){return _0x412e06;};return _0x2a1a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xf401dd=_0x87fc;(function(_0x424c54,_0x724df6){const _0x2c17d5=_0x87fc,_0x457ac7=_0x424c54();while(!![]){try{const _0x5bc13d=-parseInt(_0x2c17d5(0x183))/0x1+-parseInt(_0x2c17d5(0x186))/0x2+-parseInt(_0x2c17d5(0x174))/0x3+-parseInt(_0x2c17d5(0x17e))/0x4+-parseInt(_0x2c17d5(0x18a))/0x5*(-parseInt(_0x2c17d5(0x189))/0x6)+-parseInt(_0x2c17d5(0x185))/0x7*(-parseInt(_0x2c17d5(0x173))/0x8)+parseInt(_0x2c17d5(0x182))/0x9*(parseInt(_0x2c17d5(0x17c))/0xa);if(_0x5bc13d===_0x724df6)break;else _0x457ac7['push'](_0x457ac7['shift']());}catch(_0x792373){_0x457ac7['push'](_0x457ac7['shift']());}}}(_0x2946,0xabaab));Object[_0xf401dd(0x176)](exports,_0xf401dd(0x177),{'value':!![]}),exports[_0xf401dd(0x188)]=void 0x0;const Jimp=require(_0xf401dd(0x17d)),sharp=require(_0xf401dd(0x172)),resvg_js_1=require(_0xf401dd(0x184));class ImageHelper{static[_0xf401dd(0x170)](_0x38bef3){return new Jimp(_0x38bef3,_0x38bef3,0x0);}static async[_0xf401dd(0x187)](_0x584e60){const _0x235ea1=_0xf401dd;return await sharp(_0x584e60)[_0x235ea1(0x171)](_0x235ea1(0x17a))['toBuffer']();}static async['svg2img'](_0x161bbc){const _0x5c8466=_0xf401dd,_0x5d47b0={'fitTo':{'mode':'width','value':0x400}},_0x4ec881=new resvg_js_1[(_0x5c8466(0x181))](_0x161bbc,_0x5d47b0),_0x4a9263=_0x4ec881[_0x5c8466(0x17b)](),_0x4029c0=_0x4a9263[_0x5c8466(0x175)]();return _0x4029c0;}static['isFullyOpaque'](_0x13266a){const _0x5422f1=_0xf401dd,_0x309581=_0x13266a[_0x5422f1(0x179)]()*_0x13266a[_0x5422f1(0x178)]();for(var _0x59d16b=0x0;_0x59d16b<_0x309581;_0x59d16b++){const _0x17151c=_0x59d16b*0x4+0x3;if(_0x13266a[_0x5422f1(0x180)][_0x5422f1(0x17f)][_0x17151c]<0xff)return![];}return!![];}}function _0x2946(){const _0x111519=['Resvg','11205wmOGyq','759797QaYjBI','@resvg/resvg-js','3642037LsuhIU','1365892jHmLXI','webp2PngBuffer','ImageHelper','6WbCwHS','3714545lQdPoc','createImg','toFormat','sharp','16zyfjZT','2023953VLRnIg','asPng','defineProperty','__esModule','getHeight','getWidth','png','render','17580gspHZy','jimp','4606640NyQyJn','data','bitmap'];_0x2946=function(){return _0x111519;};return _0x2946();}function _0x87fc(_0x5c6f16,_0xb3d5f7){const _0x2946b4=_0x2946();return _0x87fc=function(_0x87fc0,_0x7594d4){_0x87fc0=_0x87fc0-0x170;let _0x43cda0=_0x2946b4[_0x87fc0];return _0x43cda0;},_0x87fc(_0x5c6f16,_0xb3d5f7);}exports[_0xf401dd(0x188)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1756b9=_0x3ff8;(function(_0x120e01,_0xda5787){const _0x11502a=_0x3ff8,_0x38e40b=_0x120e01();while(!![]){try{const _0xa6c350=-parseInt(_0x11502a(0x77))/0x1*(parseInt(_0x11502a(0x74))/0x2)+-parseInt(_0x11502a(0x7a))/0x3*(parseInt(_0x11502a(0x9a))/0x4)+parseInt(_0x11502a(0x82))/0x5+parseInt(_0x11502a(0x8d))/0x6+-parseInt(_0x11502a(0x88))/0x7+-parseInt(_0x11502a(0x8f))/0x8*(-parseInt(_0x11502a(0x95))/0x9)+parseInt(_0x11502a(0x96))/0xa;if(_0xa6c350===_0xda5787)break;else _0x38e40b['push'](_0x38e40b['shift']());}catch(_0x39bc8e){_0x38e40b['push'](_0x38e40b['shift']());}}}(_0x2169,0xa57aa));function _0x2169(){const _0x3e1c85=['MIDDLE_APPICON_DIRECTORY','2459727DtbPWU','1155060mwJKCj','cwd','moveProjectFrom','ResourceManager','4iARmmP','3244VnOoZF','existsSync','src','439LpPQot','PROJECT_BUILD_DIRECTORY','WEB_PROJECT_DIRECTORY','323286DPpLSC','BACK_APPICON_DIRECTORY','startsWith','icons','copyDir','path','./load','join','5683015ucLdTZ','http','PROJECT_EXPORT_DIRECTORY','./export','mkdirSync','json','2494345nOtNIS','generateIcon','web-spatial/Assets.xcassets','loadImageFromNet','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','1971270cXYOBV','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','8eBnPce','./build','PROJECT_DIRECTORY','loadImageFromDisk','ASSET_DIRECTORY'];_0x2169=function(){return _0x3e1c85;};return _0x2169();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1756b9(0x99)]=exports[_0x1756b9(0x94)]=exports[_0x1756b9(0x7b)]=exports[_0x1756b9(0x93)]=exports[_0x1756b9(0x79)]=exports[_0x1756b9(0x84)]=exports[_0x1756b9(0x78)]=exports[_0x1756b9(0x91)]=void 0x0;const fs=require('fs'),path_1=require(_0x1756b9(0x7f)),file_1=require('./file'),load_1=require(_0x1756b9(0x80));exports[_0x1756b9(0x91)]=(0x0,path_1[_0x1756b9(0x81)])(process[_0x1756b9(0x97)](),'./template/visionOSApp'),exports[_0x1756b9(0x78)]=(0x0,path_1[_0x1756b9(0x81)])(exports[_0x1756b9(0x91)],_0x1756b9(0x90)),exports[_0x1756b9(0x84)]=(0x0,path_1['join'])(exports[_0x1756b9(0x91)],_0x1756b9(0x85)),exports[_0x1756b9(0x79)]='web-spatial/static-web',exports['ASSET_DIRECTORY']=_0x1756b9(0x8a),exports[_0x1756b9(0x7b)]=exports[_0x1756b9(0x93)]+_0x1756b9(0x8e),exports[_0x1756b9(0x94)]=exports['ASSET_DIRECTORY']+_0x1756b9(0x8c);function _0x3ff8(_0x532a92,_0x3e33c2){const _0x21695c=_0x2169();return _0x3ff8=function(_0x3ff8d3,_0xb4390){_0x3ff8d3=_0x3ff8d3-0x74;let _0x504c60=_0x21695c[_0x3ff8d3];return _0x504c60;},_0x3ff8(_0x532a92,_0x3e33c2);}class ResourceManager{static async[_0x1756b9(0x98)](_0x280c3c){const _0x568993=_0x1756b9,_0x1671f1=(0x0,path_1[_0x568993(0x81)])(process[_0x568993(0x97)](),_0x280c3c),_0x36c1b1=(0x0,path_1[_0x568993(0x81)])(exports['PROJECT_DIRECTORY'],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x568993(0x75)](_0x36c1b1)?fs[_0x568993(0x86)](_0x36c1b1,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x36c1b1);try{(0x0,file_1[_0x568993(0x7e)])(_0x1671f1,_0x36c1b1);}catch(_0x34a5dc){console['log'](_0x34a5dc);}}static async[_0x1756b9(0x89)](_0x1b90cc){const _0x32f7f2=_0x1756b9,_0x141965=_0x1b90cc[_0x32f7f2(0x87)],_0x3a03e3=_0x141965[_0x32f7f2(0x7d)][0x0][_0x32f7f2(0x76)],_0x2453c5=!_0x3a03e3[_0x32f7f2(0x7c)](_0x32f7f2(0x83))?await(0x0,load_1[_0x32f7f2(0x92)])(_0x3a03e3):await(0x0,load_1[_0x32f7f2(0x8b)])(_0x3a03e3);return _0x2453c5['resize'](0x400,0x400),_0x2453c5;}}exports['ResourceManager']=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3d6313=_0x12bc;(function(_0x576236,_0x15f3d8){const _0x451137=_0x12bc,_0x262ab9=_0x576236();while(!![]){try{const _0x34c258=parseInt(_0x451137(0xbb))/0x1*(-parseInt(_0x451137(0xb1))/0x2)+-parseInt(_0x451137(0xa8))/0x3*(-parseInt(_0x451137(0xc8))/0x4)+-parseInt(_0x451137(0xce))/0x5*(-parseInt(_0x451137(0xb7))/0x6)+-parseInt(_0x451137(0xa7))/0x7+-parseInt(_0x451137(0xbd))/0x8+parseInt(_0x451137(0xc6))/0x9+parseInt(_0x451137(0xc2))/0xa;if(_0x34c258===_0x15f3d8)break;else _0x262ab9['push'](_0x262ab9['shift']());}catch(_0x32bc83){_0x262ab9['push'](_0x262ab9['shift']());}}}(_0x3a53,0x406f0));Object[_0x3d6313(0x9d)](exports,_0x3d6313(0xb8),{'value':!![]}),exports[_0x3d6313(0xa1)]=loadJsonFromNet,exports[_0x3d6313(0xca)]=loadJsonFromDisk,exports[_0x3d6313(0xb0)]=loadImageFromNet,exports[_0x3d6313(0xbc)]=loadImageFromDisk,exports[_0x3d6313(0xa2)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x3d6313(0xc7)),CustomError_1=require(_0x3d6313(0xc5)),Jimp=require('jimp'),imageHelper_1=require(_0x3d6313(0xa5));function _0x12bc(_0x4cf6d8,_0x4b6406){const _0x3a5355=_0x3a53();return _0x12bc=function(_0x12bc61,_0x334bd6){_0x12bc61=_0x12bc61-0x9d;let _0x4f5422=_0x3a5355[_0x12bc61];return _0x4f5422;},_0x12bc(_0x4cf6d8,_0x4b6406);}async function loadJsonFromNet(_0xffafb9){const _0x1651cc=_0x3d6313,_0x1e7460=await FetchUtils_1_1[_0x1651cc(0xb2)][_0x1651cc(0xa3)](_0xffafb9,{'encoding':_0x1651cc(0xa9)});if(_0x1e7460[_0x1651cc(0xa0)]!==0xc8)throw new CustomError_1[(_0x1651cc(0xb3))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0xffafb9+'.'+(_0x1651cc(0xab)+_0x1e7460[_0x1651cc(0xa0)]+_0x1651cc(0xd2)),'message_staring_params':{'web_manifest_url':_0xffafb9,'status':_0x1e7460[_0x1651cc(0xa0)]}});try{let _0x48c6c3;return _0x1e7460[_0x1651cc(0xd1)]?_0x48c6c3=await _0x1e7460[_0x1651cc(0xd1)]():[_0x1651cc(0x9e),_0x1651cc(0xb6),'br'][_0x1651cc(0xa6)](_0x1e7460[_0x1651cc(0xcc)][_0x1651cc(0xba)])?_0x48c6c3=FetchUtils_1_1[_0x1651cc(0xb2)][_0x1651cc(0xa4)](Buffer[_0x1651cc(0xd0)](_0x1e7460[_0x1651cc(0xac)],_0x1651cc(0xa9)),_0x1e7460[_0x1651cc(0xcc)][_0x1651cc(0xba)])[_0x1651cc(0xc1)]():_0x48c6c3=Buffer[_0x1651cc(0xd0)](_0x1e7460['data'],_0x1651cc(0xa9))[_0x1651cc(0xc1)](),JSON[_0x1651cc(0xaf)](_0x48c6c3[_0x1651cc(0x9f)]());}catch(_0x4fc5f4){throw new CustomError_1[(_0x1651cc(0xb3))]({'code':0xbbd,'message':_0x1651cc(0xbe),'message_staring_params':{}});}}async function loadJsonFromDisk(_0xae1c35){const _0x5d032d=await loadFileString(_0xae1c35['toString']());return JSON['parse'](_0x5d032d);}async function loadImageFromNet(_0xf20fdc){const _0x55ad17=_0x3d6313,_0x3c56ab=await FetchUtils_1_1[_0x55ad17(0xb2)][_0x55ad17(0xa3)](_0xf20fdc,{'encoding':_0x55ad17(0xa9)});if(_0x3c56ab[_0x55ad17(0xa0)]!==0xc8)throw new CustomError_1[(_0x55ad17(0xb3))]({'code':0x7d2,'message':'Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20'+_0x3c56ab[_0x55ad17(0xa0)],'message_staring_params':{'icon_url':_0xf20fdc,'status':_0x3c56ab[_0x55ad17(0xa0)]}});const _0x4ffada=_0x3c56ab[_0x55ad17(0xcc)]['get']?_0x3c56ab[_0x55ad17(0xcc)]['get'](_0x55ad17(0xcd)):_0x3c56ab[_0x55ad17(0xcc)][_0x55ad17(0xcd)];if(!(_0x4ffada===null||_0x4ffada===void 0x0?void 0x0:_0x4ffada[_0x55ad17(0xcf)](_0x55ad17(0xcb))))throw new CustomError_1[(_0x55ad17(0xb3))]({'code':0x7d3,'message':_0x55ad17(0xb9)+(_0x55ad17(0xad)+_0x4ffada+'\x22'),'message_staring_params':{'icon_url':_0xf20fdc,'contentType':_0x4ffada}});let _0x444d6b;_0x3c56ab[_0x55ad17(0xc4)]?_0x444d6b=await _0x3c56ab[_0x55ad17(0xc4)]():[_0x55ad17(0x9e),'deflate','br'][_0x55ad17(0xa6)](_0x3c56ab['headers']['content-encoding'])?_0x444d6b=FetchUtils_1_1[_0x55ad17(0xb2)][_0x55ad17(0xa4)](Buffer[_0x55ad17(0xd0)](_0x3c56ab[_0x55ad17(0xac)],_0x55ad17(0xa9)),_0x3c56ab[_0x55ad17(0xcc)]['content-encoding']):_0x444d6b=Buffer[_0x55ad17(0xd0)](_0x3c56ab[_0x55ad17(0xac)],_0x55ad17(0xa9));if(_0x4ffada[_0x55ad17(0xcf)](_0x55ad17(0xc3))){const _0x47c13e=new TextDecoder();try{_0x444d6b=await imageHelper_1[_0x55ad17(0xbf)][_0x55ad17(0xaa)](_0x47c13e['decode'](_0x444d6b));}catch(_0x72d9df){throw new CustomError_1[(_0x55ad17(0xb3))]({'code':0x7d4,'message':_0x55ad17(0xd3)+_0xf20fdc+':\x20'+_0x72d9df,'message_staring_params':{'icon_url':_0xf20fdc,'error':_0x72d9df}});}}return _0x4ffada[_0x55ad17(0xcf)](_0x55ad17(0xc0))&&(_0x444d6b=await imageHelper_1[_0x55ad17(0xbf)][_0x55ad17(0xb5)](_0x444d6b)),await Jimp[_0x55ad17(0xc9)](Buffer[_0x55ad17(0xd0)](_0x444d6b));}async function loadImageFromDisk(_0x35eeba){const _0x369b2d=_0x3d6313;return await Jimp[_0x369b2d(0xc9)](_0x35eeba);}async function loadFileString(_0x58095f){const _0x2fe2bb=_0x3d6313;let _0x709b7d=await fs[_0x2fe2bb(0xb4)][_0x2fe2bb(0xae)](_0x58095f[_0x2fe2bb(0xc1)]());return _0x709b7d[_0x2fe2bb(0xc1)]();}function _0x3a53(){const _0x50c57c=['__esModule','Received\x20icon\x20with\x20invalid\x20Content-Type.','content-encoding','5bavTCt','loadImageFromDisk','2607216yLfYkn','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','ImageHelper','image/webp','toString','3267530pgRjTd','image/svg','arrayBuffer','../utils/CustomError','1339758QRAZqN','../utils/FetchUtils-1','68Utmbvc','read','loadJsonFromDisk','image/','headers','content-type','339410yctnvQ','startsWith','from','text',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','Problem\x20reading\x20','defineProperty','gzip','trim','status','loadJsonFromNet','loadFileString','fetch','decompressResponseBuffer','./imageHelper','includes','3001649uKONHa','90528JgCRPy','binary','svg2img','The\x20response\x20status\x20is\x20','data','\x20Responded\x20with\x20Content-Type\x20\x22','readFile','parse','loadImageFromNet','15144GowZTE','fetchUtils','CustomError','promises','webp2PngBuffer','deflate','6FfXuyG'];_0x3a53=function(){return _0x50c57c;};return _0x3a53();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1a7594=_0x2128;function _0x2128(_0x4b4447,_0x21284a){var _0x313092=_0x3130();return _0x2128=function(_0x212848,_0xbe0c06){_0x212848=_0x212848-0x16f;var _0x209894=_0x313092[_0x212848];return _0x209894;},_0x2128(_0x4b4447,_0x21284a);}(function(_0x3e80de,_0x16f082){var _0x27be86=_0x2128,_0x595cba=_0x3e80de();while(!![]){try{var _0x14b3ff=-parseInt(_0x27be86(0x17f))/0x1+parseInt(_0x27be86(0x17d))/0x2+parseInt(_0x27be86(0x17a))/0x3+parseInt(_0x27be86(0x179))/0x4+parseInt(_0x27be86(0x16f))/0x5*(parseInt(_0x27be86(0x175))/0x6)+parseInt(_0x27be86(0x17b))/0x7*(parseInt(_0x27be86(0x177))/0x8)+-parseInt(_0x27be86(0x17e))/0x9*(parseInt(_0x27be86(0x172))/0xa);if(_0x14b3ff===_0x16f082)break;else _0x595cba['push'](_0x595cba['shift']());}catch(_0x4fccd8){_0x595cba['push'](_0x595cba['shift']());}}}(_0x3130,0x20660));Object[_0x1a7594(0x178)](exports,_0x1a7594(0x173),{'value':!![]}),exports[_0x1a7594(0x17c)]=void 0x0;class CustomError extends Error{constructor(_0x582af0,_0x2351aa){var _0x1cf72f=_0x1a7594;super(JSON[_0x1cf72f(0x170)](_0x582af0)),this[_0x1cf72f(0x174)]=_0x582af0,this[_0x1cf72f(0x171)]=_0x2351aa||_0x1cf72f(0x176);}}exports['CustomError']=CustomError;function _0x3130(){var _0x3c2fe7=['897596dKCbpR','23388DxYdIH','3899zJRRKx','CustomError','432694CGLqIA','756gLHibe','113207PdooXf','5xsRbIG','stringify','type','29940thYbXm','__esModule','customMessage','229692GfuiAZ','info','152YAusuQ','defineProperty'];_0x3130=function(){return _0x3c2fe7;};return _0x3130();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x590eff=_0x2e48;(function(_0x4a1f26,_0x91f1bf){const _0x9d0b88=_0x2e48,_0x3abf01=_0x4a1f26();while(!![]){try{const _0x30bffc=parseInt(_0x9d0b88(0x1dc))/0x1*(parseInt(_0x9d0b88(0x1dd))/0x2)+parseInt(_0x9d0b88(0x1e6))/0x3*(parseInt(_0x9d0b88(0x1e4))/0x4)+-parseInt(_0x9d0b88(0x1e7))/0x5+parseInt(_0x9d0b88(0x1e8))/0x6+-parseInt(_0x9d0b88(0x1da))/0x7+-parseInt(_0x9d0b88(0x1db))/0x8*(-parseInt(_0x9d0b88(0x1e5))/0x9)+parseInt(_0x9d0b88(0x1ea))/0xa*(-parseInt(_0x9d0b88(0x1e2))/0xb);if(_0x30bffc===_0x91f1bf)break;else _0x3abf01['push'](_0x3abf01['shift']());}catch(_0x4812c4){_0x3abf01['push'](_0x3abf01['shift']());}}}(_0x129a,0xd89e2));function _0x2e48(_0x2545f6,_0xe41232){const _0x129ae1=_0x129a();return _0x2e48=function(_0x2e4876,_0x5070f6){_0x2e4876=_0x2e4876-0x1da;let _0x4c1aff=_0x129ae1[_0x2e4876];return _0x4c1aff;},_0x2e48(_0x2545f6,_0xe41232);}function _0x129a(){const _0x49a5eb=['13414401rEcSip','18yZBIZv','4284645xPmoBR','9698850DulLPl','__esModule','35330rsUllJ','setFetch','fetch','10602186KgtLBN','8IomjOA','4UBZnyh','231974hUCJYv','fetchEngine','defineProperty','decompressResponseBuffer','downloadFile','2585kxOiYn','setFetchEngine','345424ywPtqy'];_0x129a=function(){return _0x49a5eb;};return _0x129a();}Object[_0x590eff(0x1df)](exports,_0x590eff(0x1e9),{'value':!![]}),exports['fetchUtils']=void 0x0;class FetchUtils{constructor(){const _0x14a3cc=_0x590eff;this['fetchEngine']=null,this[_0x14a3cc(0x1ec)]=null,this[_0x14a3cc(0x1e1)]=null,this[_0x14a3cc(0x1e0)]=null;}[_0x590eff(0x1e3)](_0x2fc1a7){const _0x1c3571=_0x590eff;this[_0x1c3571(0x1de)]=_0x2fc1a7;}[_0x590eff(0x1eb)](_0x5c0d7b){this['fetch']=_0x5c0d7b;}['setDownloadFile'](_0x5bc8f0){const _0x2277f4=_0x590eff;this[_0x2277f4(0x1e1)]=_0x5bc8f0;}['setDecompressResponseBuffer'](_0x4c0acd){const _0x18f964=_0x590eff;this[_0x18f964(0x1e0)]=_0x4c0acd;}}const fetchUtils=new FetchUtils();exports['fetchUtils']=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x57f8aa=_0x1eca;(function(_0x1b238b,_0x496d7c){var _0x23f94c=_0x1eca,_0x10b856=_0x1b238b();while(!![]){try{var _0x395dda=-parseInt(_0x23f94c(0x12e))/0x1*(-parseInt(_0x23f94c(0x12b))/0x2)+-parseInt(_0x23f94c(0x13a))/0x3*(parseInt(_0x23f94c(0x124))/0x4)+-parseInt(_0x23f94c(0x12c))/0x5+parseInt(_0x23f94c(0x12f))/0x6+-parseInt(_0x23f94c(0x13f))/0x7*(-parseInt(_0x23f94c(0x141))/0x8)+parseInt(_0x23f94c(0x142))/0x9*(-parseInt(_0x23f94c(0x13c))/0xa)+parseInt(_0x23f94c(0x133))/0xb;if(_0x395dda===_0x496d7c)break;else _0x10b856['push'](_0x10b856['shift']());}catch(_0x37a3b0){_0x10b856['push'](_0x10b856['shift']());}}}(_0x4415,0x6b785));Object['defineProperty'](exports,_0x57f8aa(0x137),{'value':!![]}),exports[_0x57f8aa(0x127)]=void 0x0;function _0x1eca(_0x8ba55d,_0x3aa1dd){var _0x4415d9=_0x4415();return _0x1eca=function(_0x1eca27,_0x533c5b){_0x1eca27=_0x1eca27-0x123;var _0x180148=_0x4415d9[_0x1eca27];return _0x180148;},_0x1eca(_0x8ba55d,_0x3aa1dd);}function _0x4415(){var _0x348aa6=['\x1b[36m','7FudrHj','ERROR\x20','3082424vhZnVh','9gJfIjb','yellow','284GccdQQ','verbose','tag','ConsoleLog','info','\x1b[0m','concat','93640oJzFJh','2504325mpknQP','log','8VMsrIk','4828482mhKDZG','\x1b[33m','prefix','WARNING\x20','11575707qrtlFk','dim','error','output','__esModule','\x1b[7m','red','36090hPKhnp','warn','8217550PhvEug','setVerbose'];_0x4415=function(){return _0x348aa6;};return _0x4415();}class ConsoleLog{constructor(_0x2a8b4f='',_0x2ae56d=![],_0x2b95cd=console){var _0x1167bd=_0x57f8aa;this[_0x1167bd(0x126)]=_0x2a8b4f,this[_0x1167bd(0x125)]=_0x2ae56d,this[_0x1167bd(0x131)]=this['inverse'](_0x2a8b4f),this[_0x1167bd(0x136)]=_0x2b95cd;}['debug'](_0x10df1f,..._0x3a6c8c){var _0x8c927e=_0x57f8aa;if(!this[_0x8c927e(0x125)])return;this[_0x8c927e(0x12d)](this['output'][_0x8c927e(0x12d)],this['dim'](_0x10df1f),..._0x3a6c8c);}[_0x57f8aa(0x128)](_0x1fcd0b,..._0x4bbe42){var _0x483ca0=_0x57f8aa;this[_0x483ca0(0x12d)](this[_0x483ca0(0x136)][_0x483ca0(0x12d)],_0x1fcd0b,..._0x4bbe42);}[_0x57f8aa(0x13b)](_0x349cb4,..._0x589d0b){var _0x7c99e0=_0x57f8aa;this[_0x7c99e0(0x12d)](this[_0x7c99e0(0x136)][_0x7c99e0(0x13b)],this[_0x7c99e0(0x123)](_0x7c99e0(0x132)+_0x349cb4),..._0x589d0b);}[_0x57f8aa(0x135)](_0x306b95,..._0x3b538b){var _0x16282a=_0x57f8aa;this[_0x16282a(0x136)][_0x16282a(0x135)]('\x0a'),this[_0x16282a(0x12d)](this[_0x16282a(0x136)][_0x16282a(0x135)],this[_0x16282a(0x139)](_0x16282a(0x140)+_0x306b95),..._0x3b538b),this['output'][_0x16282a(0x135)]('\x0a');}[_0x57f8aa(0x13d)](_0x467ff7){var _0x2d4692=_0x57f8aa;this[_0x2d4692(0x125)]=_0x467ff7;}['newLog'](_0x2a01f5){var _0x1d610c=_0x57f8aa;return this[_0x1d610c(0x126)]&&(_0x2a01f5=this[_0x1d610c(0x126)]+'\x20'+_0x2a01f5),new ConsoleLog(_0x2a01f5,this['verbose'],this[_0x1d610c(0x136)]);}[_0x57f8aa(0x12d)](_0x348677,_0x556504,..._0x506d89){var _0x4bc391=_0x57f8aa;this['prefix']&&(_0x556504=this[_0x4bc391(0x131)]+'\x20'+_0x556504),_0x506d89?_0x348677(...[_0x556504][_0x4bc391(0x12a)](_0x506d89)):_0x348677(_0x556504);}['inverse'](_0x53bbab){var _0x354311=_0x57f8aa;return _0x354311(0x138)+_0x53bbab+_0x354311(0x129);}[_0x57f8aa(0x134)](_0x35f647){var _0xa8b9d4=_0x57f8aa;return _0xa8b9d4(0x13e)+_0x35f647+_0xa8b9d4(0x129);}[_0x57f8aa(0x123)](_0x2ed155){var _0x18bebf=_0x57f8aa;return _0x18bebf(0x130)+_0x2ed155+'\x1b[0m';}[_0x57f8aa(0x139)](_0xeaac83){var _0xe38b40=_0x57f8aa;return'\x1b[31m'+_0xeaac83+_0xe38b40(0x129);}}exports[_0x57f8aa(0x127)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x91dd(_0x48c26f,_0x44870d){const _0x2be677=_0x2be6();return _0x91dd=function(_0x91dd62,_0x4f1a54){_0x91dd62=_0x91dd62-0x90;let _0x272fe8=_0x2be677[_0x91dd62];return _0x272fe8;},_0x91dd(_0x48c26f,_0x44870d);}const _0x42f1cb=_0x91dd;(function(_0x4012,_0x14110c){const _0x482203=_0x91dd,_0xf6e947=_0x4012();while(!![]){try{const _0x2068af=parseInt(_0x482203(0xa8))/0x1*(-parseInt(_0x482203(0x97))/0x2)+-parseInt(_0x482203(0xab))/0x3*(parseInt(_0x482203(0xaa))/0x4)+-parseInt(_0x482203(0x9c))/0x5+-parseInt(_0x482203(0x9d))/0x6*(-parseInt(_0x482203(0xb1))/0x7)+-parseInt(_0x482203(0x9f))/0x8+parseInt(_0x482203(0x94))/0x9+parseInt(_0x482203(0xa7))/0xa;if(_0x2068af===_0x14110c)break;else _0xf6e947['push'](_0xf6e947['shift']());}catch(_0x269319){_0xf6e947['push'](_0xf6e947['shift']());}}}(_0x2be6,0x5578a));function _0x2be6(){const _0x4e00f2=['Content-Length','Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0','171202YsMTqo','unzipSync','Z_SYNC_FLUSH','downloadFile','defineProperty','1504535vyuPFq','24ytZtFv','data','1931064bsZGQd','follow','test','zlib','length','fetch','constants','context','11221410kowhUC','7kqiWcn','pipe','16WMkmqg','190737bpLRmF','readable','finish','createWriteStream','headers','fetch-h2','491743IhKbYT','decompressResponseBuffer','get','__esModule','brotliDecompressSync','3084894TWAshh'];_0x2be6=function(){return _0x4e00f2;};return _0x2be6();}Object[_0x42f1cb(0x9b)](exports,_0x42f1cb(0x92),{'value':!![]}),exports[_0x42f1cb(0xa4)]=fetch,exports[_0x42f1cb(0x9a)]=downloadFile,exports[_0x42f1cb(0x90)]=decompressResponseBuffer;const fetch_h2_1=require(_0x42f1cb(0xb0)),fs=require('fs'),zlib=require(_0x42f1cb(0xa2)),userAgent=_0x42f1cb(0x96),fetchh2Ctx=(0x0,fetch_h2_1[_0x42f1cb(0xa6)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x42f1cb(0xa4)];async function fetch(_0x17d7c4,_0x54651f){const _0x7120df=_0x42f1cb;return await fetchh2(_0x17d7c4,_0x54651f?{'redirect':_0x7120df(0xa0),..._0x54651f}:{'redirect':'follow'});}async function downloadFile(_0x56c481,_0x4e61c3,_0x4c5841){const _0x5aa26b=_0x42f1cb;let _0x46d9fd,_0x3def3d;_0x46d9fd=await fetchh2(_0x56c481,{'redirect':_0x5aa26b(0xa0)}),_0x3def3d=await _0x46d9fd[_0x5aa26b(0xac)]();const _0x18472e=_0x46d9fd[_0x5aa26b(0xaf)][_0x5aa26b(0x91)](_0x5aa26b(0x95)),_0x55999b=_0x18472e?parseInt(_0x18472e):-0x1,_0x1ae865=fs[_0x5aa26b(0xae)](_0x4e61c3);let _0x303e66=0x0;await new Promise((_0x19b0e8,_0x46e81d)=>{const _0x280a07=_0x5aa26b;_0x3def3d[_0x280a07(0xa9)](_0x1ae865),_0x4c5841&&_0x3def3d['on'](_0x280a07(0x9e),_0x353a9f=>{const _0xbadd78=_0x280a07;_0x303e66=_0x303e66+_0x353a9f[_0xbadd78(0xa3)],_0x4c5841(_0x303e66,_0x55999b);}),_0x3def3d['on']('error',_0x7b7c14=>{_0x46e81d(_0x7b7c14);}),_0x1ae865['on'](_0x280a07(0xad),()=>{_0x19b0e8();});});}function decompressResponseBuffer(_0x3df786,_0x4beedb){const _0xbf8bb3=_0x42f1cb;let _0x456fe3=_0x3df786;if(/\bgzip\b/['test'](_0x4beedb)||/\bdeflate\b/[_0xbf8bb3(0xa1)](_0x4beedb))_0x456fe3=zlib[_0xbf8bb3(0x98)](_0x3df786,{'flush':zlib[_0xbf8bb3(0xa5)][_0xbf8bb3(0x99)],'finishFlush':zlib[_0xbf8bb3(0xa5)][_0xbf8bb3(0x99)]});else/\bbr\b/['test'](_0x4beedb)&&(_0x456fe3=zlib[_0xbf8bb3(0x93)](_0x3df786));return _0x456fe3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x4f3b42=_0x2072;function _0x2072(_0x1da205,_0x2b0cf3){const _0x5baeba=_0x5bae();return _0x2072=function(_0x2072f6,_0x3b14a2){_0x2072f6=_0x2072f6-0xaa;let _0x1b1aa5=_0x5baeba[_0x2072f6];return _0x1b1aa5;},_0x2072(_0x1da205,_0x2b0cf3);}(function(_0xda3db8,_0x429de2){const _0x20a699=_0x2072,_0x9bdf49=_0xda3db8();while(!![]){try{const _0x38829b=-parseInt(_0x20a699(0xcc))/0x1*(-parseInt(_0x20a699(0xb3))/0x2)+-parseInt(_0x20a699(0xaa))/0x3*(-parseInt(_0x20a699(0xb2))/0x4)+parseInt(_0x20a699(0xba))/0x5*(-parseInt(_0x20a699(0xc6))/0x6)+-parseInt(_0x20a699(0xe8))/0x7+parseInt(_0x20a699(0xcd))/0x8+-parseInt(_0x20a699(0xd0))/0x9+parseInt(_0x20a699(0xbc))/0xa*(parseInt(_0x20a699(0xe1))/0xb);if(_0x38829b===_0x429de2)break;else _0x9bdf49['push'](_0x9bdf49['shift']());}catch(_0x32c912){_0x9bdf49['push'](_0x9bdf49['shift']());}}}(_0x5bae,0x24fb7));function _0x5bae(){const _0x4c0304=['redirected\x20to\x20','(5/5)','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','\x20can\x20not\x20be\x20accessible.','\x22.\x0a','Decompressing\x20the\x20JDK\x2011\x20Binaries...','--manifest-url','360WNiKUi','license\x20agreement.','underline','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','bold','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Decompressing\x20the\x20Android\x20SDK...','Minimum\x20length\x20is\x20','8236DHzOCS','16374ARRRtw','\x0aBuilding\x20the\x20Android\x20App...','__esModule','Missing\x20required\x20parameter\x20','https://play.google.com/console/about/families/','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','Downloading\x20the\x20JDK\x2011\x20Sources...','190735GoaKxG','Decompressing\x20the\x20JDK\x2011\x20Sources...','30fuyCFu','Downloading\x20JDK\x2011\x20to\x20','Do\x20you\x20want\x20to\x20create\x20one\x20now?','Path\x20to\x20your\x20existing\x20Android\x20SDK:','\x20but\x20input\x20is\x20','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','Downloading\x20the\x20JDK\x2011\x20Binaries...','\x20URL\x20','Invalid\x20URL:\x20','green','24obwHSD','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','Password\x20for\x20the\x20Key\x20Store:','\x0aSigning\x20key\x20information\x20','Organization\x20(eg:\x20Company\x20Name):','25yLDRVx','25376OQFVZk','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Path\x20to\x20your\x20existing\x20JDK\x2011:','1605951ksSyzo','\x09-\x20Generated\x20Android\x20APK\x20at\x20','--url','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','cyan','Invalid\x20integer\x20provided:\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','defineProperty','yellow','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','messages','\x20and\x20alias\x20','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','\x0aSigning\x20key\x20creation','\x0aProject\x20generated\x20successfully.','Password\x20for\x20the\x20Key:','361119ivIcln','Generating\x20Android\x20Project.','--manifest','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Downloading\x20Android\x20SDK\x20to\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','496356sHmnMq'];_0x5bae=function(){return _0x4c0304;};return _0x5bae();}Object[_0x4f3b42(0xd8)](exports,_0x4f3b42(0xb5),{'value':!![]}),exports[_0x4f3b42(0xdb)]=void 0x0;const colors_1=require('colors');exports[_0x4f3b42(0xdb)]={'promptInstallJdk':_0x4f3b42(0xec),'promptJdkPath':_0x4f3b42(0xcf),'messageDownloadJdk':_0x4f3b42(0xbd),'messageDownloadJdkSrc':_0x4f3b42(0xb9),'messageDecompressJdkSrc':_0x4f3b42(0xbb),'messageDownloadJdkBin':_0x4f3b42(0xc2),'messageDecompressJdkBin':_0x4f3b42(0xef),'promptInstallSdk':_0x4f3b42(0xc1),'promptSdkPath':_0x4f3b42(0xbf),'messageDownloadSdk':_0x4f3b42(0xe5),'errorSdkTerms':_0x4f3b42(0xd7),'promptSdkTerms':_0x4f3b42(0xaf)+(0x0,colors_1[_0x4f3b42(0xac)])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x4f3b42(0xb0),'messageInstallingBuildTools':_0x4f3b42(0xd4)+_0x4f3b42(0xab),'messageGeneratingAndroidProject':_0x4f3b42(0xe2),'messageCheckSuccess':(_0x5622d9,_0x47fff7)=>{const _0x2c033e=_0x4f3b42;return _0x2c033e(0xc3)+(0x0,colors_1[_0x2c033e(0xd5)])(_0x5622d9)+'\x20'+(_0x47fff7?_0x2c033e(0xe9)+(0x0,colors_1[_0x2c033e(0xd5)])(_0x47fff7):'')+_0x2c033e(0xeb);},'errorMissingManifestParameter':_0x4f3b42(0xb6)+((0x0,colors_1[_0x4f3b42(0xd5)])(_0x4f3b42(0xf0))+'\x20or\x20'+(0x0,colors_1[_0x4f3b42(0xd5)])(_0x4f3b42(0xe3))),'messageInitializingWebManifest':_0xc5d9b4=>{const _0x28354b=_0x4f3b42;return _0x28354b(0xb8)+(0x0,colors_1[_0x28354b(0xd5)])(_0xc5d9b4);},'messageInitializingLocalManifest':_0x16fd78=>{const _0x3d9d9a=_0x4f3b42;return _0x3d9d9a(0xd3)+(0x0,colors_1[_0x3d9d9a(0xd5)])(_0x16fd78);},'messageInvalidIcon':_0x2522db=>{const _0x547633=_0x4f3b42;return'Invalid\x20icon\x20path:\x20'+(0x0,colors_1[_0x547633(0xd5)])(_0x2522db);},'errorStartUrlNotReachable':_0x21bc8d=>'URL\x20'+_0x21bc8d+_0x4f3b42(0xed)+_0x4f3b42(0xe7),'warnFamilyPolicy':(0x0,colors_1[_0x4f3b42(0xae)])((0x0,colors_1[_0x4f3b42(0xd9)])('WARNING:\x20'))+_0x4f3b42(0xda)+_0x4f3b42(0xc8)+'\x20Check\x20out\x20the\x20Play\x20for'+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x4f3b42(0xd5)])(_0x4f3b42(0xb7)),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0xbd56f9=>{const _0x3bf370=_0x4f3b42;return _0x3bf370(0xc4)+_0xbd56f9;},'errorUrlMustBeImage':_0x2aad6e=>{const _0x565057=_0x4f3b42;return _0x565057(0xe4)+_0x2aad6e+'.';},'promptVersionCode':_0x4f3b42(0xdd),'promptVersionName':_0x4f3b42(0xce),'messageSigningKeyInformation':(0x0,colors_1['underline'])(_0x4f3b42(0xca)+(0x0,colors_1[_0x4f3b42(0xc5)])(_0x4f3b42(0xea))),'messageProjectGeneratedSuccess':_0x4f3b42(0xdf),'messageSigningKeyCreation':(0x0,colors_1[_0x4f3b42(0xac)])(_0x4f3b42(0xde)),'messageSigningKeyNotFound':_0x20ecbf=>{const _0x20a0ac=_0x4f3b42;return _0x20a0ac(0xad)+_0x20ecbf+_0x20a0ac(0xee);},'promptCreateKey':_0x4f3b42(0xbe),'promptKeyFullName':_0x4f3b42(0xe6),'promptKeyOrganizationalUnit':_0x4f3b42(0xc7),'promptKeyOrganization':_0x4f3b42(0xcb),'promptKeyCountry':'Country\x20(2\x20letter\x20code):','promptKeystorePassword':_0x4f3b42(0xc9),'promptKeyPassword':_0x4f3b42(0xe0),'messageBuildingApp':_0x4f3b42(0xb4),'messageEnterPasswords':(_0xeefba2,_0x5160b6)=>{const _0x297891=_0x4f3b42;return'Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20'+(0x0,colors_1['cyan'])(_0xeefba2)+_0x297891(0xdc)+(0x0,colors_1['cyan'])(_0x5160b6)+'.\x0a';},'errorMinLength':(_0x4bb736,_0x15a854)=>{const _0x4a8ac0=_0x4f3b42;return _0x4a8ac0(0xb1)+_0x4bb736+_0x4a8ac0(0xc0)+_0x15a854+'.';},'errorMaxLength':(_0x262fac,_0x2357f3)=>{return'Maximum\x20length\x20is\x20'+_0x262fac+'\x20but\x20input\x20is\x20'+_0x2357f3+'.';},'errorInvalidInteger':_0x2c751e=>{const _0x3def52=_0x4f3b42;return _0x3def52(0xd6)+_0x2c751e;},'messageApkSuccess':_0x17eea9=>{const _0x532605=_0x4f3b42;return _0x532605(0xd1)+(0x0,colors_1[_0x532605(0xd5)])(_0x17eea9);},'missingUrlToCheck':_0x4f3b42(0xb6)+(''+(0x0,colors_1[_0x4f3b42(0xd5)])(_0x4f3b42(0xd2)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1acd52=_0x1550;(function(_0x5b1d0f,_0x2458f6){const _0x5cd60c=_0x1550,_0xbc3b3b=_0x5b1d0f();while(!![]){try{const _0xa9a80c=-parseInt(_0x5cd60c(0xe4))/0x1*(-parseInt(_0x5cd60c(0xe3))/0x2)+-parseInt(_0x5cd60c(0xd8))/0x3*(-parseInt(_0x5cd60c(0xdc))/0x4)+-parseInt(_0x5cd60c(0xd9))/0x5+parseInt(_0x5cd60c(0xdb))/0x6*(-parseInt(_0x5cd60c(0xe1))/0x7)+-parseInt(_0x5cd60c(0xd4))/0x8+-parseInt(_0x5cd60c(0xd7))/0x9*(parseInt(_0x5cd60c(0xe2))/0xa)+-parseInt(_0x5cd60c(0xdf))/0xb*(-parseInt(_0x5cd60c(0xda))/0xc);if(_0xa9a80c===_0x2458f6)break;else _0xbc3b3b['push'](_0xbc3b3b['shift']());}catch(_0x3cd7f0){_0xbc3b3b['push'](_0xbc3b3b['shift']());}}}(_0x1f6e,0xcd9a1));Object[_0x1acd52(0xd5)](exports,_0x1acd52(0xde),{'value':!![]}),exports[_0x1acd52(0xd6)]=parseRouter;function _0x1550(_0x1af24f,_0x3882c5){const _0x1f6ef9=_0x1f6e();return _0x1550=function(_0x15509e,_0x8bc34b){_0x15509e=_0x15509e-0xd3;let _0x2f8282=_0x1f6ef9[_0x15509e];return _0x2f8282;},_0x1550(_0x1af24f,_0x3882c5);}function _0x1f6e(){const _0x179c39=['192wWWVsu','replace','__esModule','31906358CjpKIM','pop','67529lEYqpN','15848350zwtAft','3452iuLpch','314amRxIn','indexOf','7575136lJiGta','defineProperty','parseRouter','9nuaZLt','59034lKpgtg','2316675wuaUtG','12dvHHOp','342YpIdMf'];_0x1f6e=function(){return _0x179c39;};return _0x1f6e();}function parseRouter(_0x2fc68e){const _0x3dcdb7=_0x1acd52;let _0x584932=_0x2fc68e['split']('/');_0x584932[_0x3dcdb7(0xe0)]();let _0x2c9452=_0x584932['join']();while(_0x2c9452[_0x3dcdb7(0xd3)](',')>=0x0){_0x2c9452=_0x2c9452[_0x3dcdb7(0xdd)](',','/');}return _0x2c9452;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x20f592=_0x21a4;(function(_0x22bd08,_0x2bf947){const _0x58d53b=_0x21a4,_0x4dcf10=_0x22bd08();while(!![]){try{const _0x60cc94=-parseInt(_0x58d53b(0x207))/0x1*(parseInt(_0x58d53b(0x1fe))/0x2)+-parseInt(_0x58d53b(0x204))/0x3*(-parseInt(_0x58d53b(0x209))/0x4)+parseInt(_0x58d53b(0x1f3))/0x5*(parseInt(_0x58d53b(0x1f2))/0x6)+parseInt(_0x58d53b(0x1f9))/0x7+-parseInt(_0x58d53b(0x1f6))/0x8+parseInt(_0x58d53b(0x1f5))/0x9*(-parseInt(_0x58d53b(0x205))/0xa)+-parseInt(_0x58d53b(0x20a))/0xb;if(_0x60cc94===_0x2bf947)break;else _0x4dcf10['push'](_0x4dcf10['shift']());}catch(_0x2777fa){_0x4dcf10['push'](_0x4dcf10['shift']());}}}(_0x45ea,0xb8dfb));function _0x45ea(){const _0x14a98c=['5232800LUNDzO','8188631OUbiLm','runWithSimulator','defineProperty','PROJECT_DIRECTORY','name','XcodeManager','./xcrun','join','default','write\x20project.pbxproj:\x20ok','upload','7822320GaVUgZ','5RTVgEb','existsSync','396ZBFsVF','3662176eQDUvD','log','./xcodebuild','5393549zrAlAC','__esModule','archive','../resource','./xcodeproject','10bXJuqP','.ipa','uploadApp','mkdirSync','/web-spatial.xcodeproj/project.pbxproj','modify','3fUduZp','90EAEyoX','PROJECT_EXPORT_DIRECTORY','284519dfCTdE','path'];_0x45ea=function(){return _0x14a98c;};return _0x45ea();}Object[_0x20f592(0x1e9)](exports,_0x20f592(0x1fa),{'value':!![]}),exports[_0x20f592(0x1ec)]=void 0x0;const fs=require('fs'),resource_1=require(_0x20f592(0x1fc)),xcodeproject_1=require(_0x20f592(0x1fd)),xcodebuild_1=require(_0x20f592(0x1f8)),xcrun_1=require(_0x20f592(0x1ed)),path_1=require(_0x20f592(0x208));class XcodeManager{static async['parseProject'](_0x10dd3e,_0x2a2f63=![]){const _0x9fbed4=_0x20f592,_0x5514f0=resource_1[_0x9fbed4(0x1ea)]+_0x9fbed4(0x202);await xcodeproject_1[_0x9fbed4(0x1ef)][_0x9fbed4(0x203)](_0x5514f0,_0x10dd3e),console[_0x9fbed4(0x1f7)](_0x9fbed4(0x1f0));!fs[_0x9fbed4(0x1f4)](resource_1[_0x9fbed4(0x206)])&&fs[_0x9fbed4(0x201)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x2a2f63)await xcodebuild_1['default'][_0x9fbed4(0x1fb)]();}static async[_0x20f592(0x1f1)](_0x5c9a65,_0x141b5f){const _0x5d6e1a=_0x20f592;if(_0x5c9a65['u']&&_0x5c9a65['p'])xcrun_1[_0x5d6e1a(0x1ef)][_0x5d6e1a(0x200)]((0x0,path_1[_0x5d6e1a(0x1ee)])(resource_1[_0x5d6e1a(0x206)],_0x141b5f[_0x5d6e1a(0x1eb)]+_0x5d6e1a(0x1ff)),_0x5c9a65['u'],_0x5c9a65['p'],!![]);else _0x5c9a65['k']&&_0x5c9a65['i']&&xcrun_1[_0x5d6e1a(0x1ef)][_0x5d6e1a(0x200)]((0x0,path_1[_0x5d6e1a(0x1ee)])(resource_1[_0x5d6e1a(0x206)],_0x141b5f[_0x5d6e1a(0x1eb)]+_0x5d6e1a(0x1ff)),_0x5c9a65['k'],_0x5c9a65['i'],![]);}static async[_0x20f592(0x1e8)](_0x52617a){const _0xcccc76=_0x20f592;await xcrun_1[_0xcccc76(0x1ef)][_0xcccc76(0x1e8)](_0x52617a);}}function _0x21a4(_0x2e60e5,_0x2b0b96){const _0x45ea1f=_0x45ea();return _0x21a4=function(_0x21a4b1,_0x3127b2){_0x21a4b1=_0x21a4b1-0x1e8;let _0x4e7911=_0x45ea1f[_0x21a4b1];return _0x4e7911;},_0x21a4(_0x2e60e5,_0x2b0b96);}exports[_0x20f592(0x1ec)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x268e81=_0x195f;(function(_0xd19a35,_0x5b4f7e){var _0x78bca2=_0x195f,_0x220333=_0xd19a35();while(!![]){try{var _0x142e5e=-parseInt(_0x78bca2(0x91))/0x1*(parseInt(_0x78bca2(0x9a))/0x2)+-parseInt(_0x78bca2(0x9b))/0x3+parseInt(_0x78bca2(0x97))/0x4+parseInt(_0x78bca2(0x98))/0x5+parseInt(_0x78bca2(0x92))/0x6+parseInt(_0x78bca2(0x9c))/0x7+parseInt(_0x78bca2(0x96))/0x8*(-parseInt(_0x78bca2(0x93))/0x9);if(_0x142e5e===_0x5b4f7e)break;else _0x220333['push'](_0x220333['shift']());}catch(_0xcbecab){_0x220333['push'](_0x220333['shift']());}}}(_0x45f9,0x78eb7));function _0x195f(_0x24dd98,_0x2cfc32){var _0x45f99a=_0x45f9();return _0x195f=function(_0x195fd4,_0x3e56d5){_0x195fd4=_0x195fd4-0x91;var _0x390b9d=_0x45f99a[_0x195fd4];return _0x390b9d;},_0x195f(_0x24dd98,_0x2cfc32);}Object[_0x268e81(0x95)](exports,_0x268e81(0x99),{'value':!![]}),exports[_0x268e81(0x94)]=void 0x0,exports['manifestSwiftTemplate']='\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20true\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a';function _0x45f9(){var _0x63f183=['2721691waaPgN','8WkntTV','1474026tTnhPb','18vwLLli','manifestSwiftTemplate','defineProperty','3690800ZyeGWl','2839008EesvLR','4425370nLnCBk','__esModule','78214llYCcc','1495401mcJqui'];_0x45f9=function(){return _0x63f183;};return _0x45f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x46d8(){const _0x1919a0=['xcodebuild','5818GbzmVV','ARCHIVE\x20SUCCEEDED','output','path','join','\x20-exportOptionsPlist\x20','21643644KCfSKM','line','\x20-exportArchive\x20-archivePath\x20','log','__esModule','2519025SVjuco','web-spatial','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','pack.xcarchive','/web-spatial.xcodeproj','destination','archive','\x20clean','PROJECT_EXPORT_DIRECTORY','allowProvisioningUpdates','XcodebuildCMD','PROJECT_DIRECTORY','./pack','35IrowiO','4231084zYPYKE','project','\x20archive','\x20-scheme\x20','default','\x20-list','semver','858855vmvsbn','27TIwbrl','1509656AeDiBN','scheme','indexOf','2279410iIKtEu','list','EXPORT\x20SUCCEEDED','391JYKlhz','mkdirSync','42smvoyq','\x20-exportPath\x20','PROJECT_BUILD_DIRECTORY','ExportOptions.plist','toString','clean','start\x20export','\x20-destination\x20\x27'];_0x46d8=function(){return _0x1919a0;};return _0x46d8();}const _0xc10536=_0x25a3;function _0x25a3(_0x122e07,_0x1acf52){const _0x46d815=_0x46d8();return _0x25a3=function(_0x25a38d,_0x5afa31){_0x25a38d=_0x25a38d-0x1a5;let _0x354211=_0x46d815[_0x25a38d];return _0x354211;},_0x25a3(_0x122e07,_0x1acf52);}(function(_0x3066bf,_0x32c325){const _0x183c97=_0x25a3,_0x3e695f=_0x3066bf();while(!![]){try{const _0x474cf2=-parseInt(_0x183c97(0x1b5))/0x1*(-parseInt(_0x183c97(0x1c0))/0x2)+parseInt(_0x183c97(0x1cb))/0x3+parseInt(_0x183c97(0x1a6))/0x4+-parseInt(_0x183c97(0x1ad))/0x5*(-parseInt(_0x183c97(0x1b7))/0x6)+-parseInt(_0x183c97(0x1a5))/0x7*(parseInt(_0x183c97(0x1af))/0x8)+parseInt(_0x183c97(0x1ae))/0x9*(-parseInt(_0x183c97(0x1b2))/0xa)+-parseInt(_0x183c97(0x1c6))/0xb;if(_0x474cf2===_0x32c325)break;else _0x3e695f['push'](_0x3e695f['shift']());}catch(_0x1dcf4a){_0x3e695f['push'](_0x3e695f['shift']());}}}(_0x46d8,0x9ccfc));Object['defineProperty'](exports,_0xc10536(0x1ca),{'value':!![]}),exports['XcodebuildCMD']=void 0x0;const fs=require('fs'),path_1=require(_0xc10536(0x1c3)),resource_1=require('../resource'),semver_1=require(_0xc10536(0x1ac)),{execSync,exec}=require('child_process');class Xcodebuild{static async['project'](){const _0x3441c1=_0xc10536;try{await new Promise((_0x13db99,_0x1b4566)=>{const _0xd869ba=_0x25a3,_0x4779a3=resource_1[_0xd869ba(0x1d6)]+_0xd869ba(0x1cf),_0x5616e2=execSync(new XcodebuildCMD()[_0xd869ba(0x1a7)](_0x4779a3)[_0xd869ba(0x1b3)]()[_0xd869ba(0x1c7)]);console[_0xd869ba(0x1c9)](_0x5616e2[_0xd869ba(0x1bb)]()),_0x13db99(_0x5616e2);});}catch(_0xbdac8){console[_0x3441c1(0x1c9)](_0xbdac8);}}static async['list'](){const _0x2b2186=_0xc10536;try{await new Promise((_0x5e9401,_0x725562)=>{const _0x3d776a=_0x25a3,_0x4e85d4=resource_1[_0x3d776a(0x1d6)]+_0x3d776a(0x1cf),_0x157814=execSync(new XcodebuildCMD()['project'](_0x4e85d4)[_0x3d776a(0x1b3)]()[_0x3d776a(0x1c7)]);console[_0x3d776a(0x1c9)](_0x157814['toString']()),_0x5e9401(_0x157814);});}catch(_0x12d6c2){console[_0x2b2186(0x1c9)](_0x12d6c2);}}static async['archive'](){const _0x55f66a=_0xc10536;try{return console[_0x55f66a(0x1c9)]('start\x20archive'),!fs['existsSync'](resource_1[_0x55f66a(0x1d3)])&&fs[_0x55f66a(0x1b6)](resource_1[_0x55f66a(0x1d3)],{'recursive':!![]}),await new Promise((_0x91e4b6,_0x56d2cb)=>{const _0x15113c=_0x55f66a,_0x2960d6=resource_1[_0x15113c(0x1d6)]+_0x15113c(0x1cf),_0x54482b=execSync(new XcodebuildCMD()[_0x15113c(0x1a7)](_0x2960d6)[_0x15113c(0x1b0)](_0x15113c(0x1cc))['archive']((0x0,path_1[_0x15113c(0x1c4)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x15113c(0x1d7)))[_0x15113c(0x1bc)]()[_0x15113c(0x1c7)]);let _0x3738bb=_0x54482b[_0x15113c(0x1bb)]();if(_0x3738bb[_0x15113c(0x1b1)](_0x15113c(0x1c1))>0x0){console[_0x15113c(0x1c9)](_0x15113c(0x1cd)),console['log'](_0x15113c(0x1bd));const _0x907395=execSync(new XcodebuildCMD()['output']((0x0,path_1[_0x15113c(0x1c4)])(resource_1[_0x15113c(0x1b9)],_0x15113c(0x1ce)),resource_1[_0x15113c(0x1d3)],(0x0,path_1[_0x15113c(0x1c4)])(resource_1[_0x15113c(0x1b9)],_0x15113c(0x1ba)))[_0x15113c(0x1d4)]()[_0x15113c(0x1c7)]);_0x3738bb=_0x907395['toString'](),_0x3738bb[_0x15113c(0x1b1)](_0x15113c(0x1b4))>0x0&&(_0x91e4b6(!![]),console[_0x15113c(0x1c9)]('-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------')),(0x0,semver_1[_0x15113c(0x1bc)])(resource_1[_0x15113c(0x1b9)]);}_0x91e4b6(![]);});}catch(_0x15c698){console['log'](_0x15c698);}}}exports[_0xc10536(0x1aa)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x20c2a1=_0xc10536;this['line']=_0x20c2a1(0x1bf);}[_0xc10536(0x1a7)](_0x2ab662){const _0x14f265=_0xc10536;return this[_0x14f265(0x1c7)]+='\x20-project\x20'+_0x2ab662,this;}['list'](){const _0x4154db=_0xc10536;return this[_0x4154db(0x1c7)]+=_0x4154db(0x1ab),this;}['scheme'](_0x2892d7){const _0x3d48e0=_0xc10536;return this['line']+=_0x3d48e0(0x1a9)+_0x2892d7,this;}[_0xc10536(0x1d1)](_0x3e33ba){const _0x566c24=_0xc10536;return this[_0x566c24(0x1c7)]+='\x20-archivePath\x20'+_0x3e33ba+_0x566c24(0x1a8),this;}[_0xc10536(0x1d4)](){const _0x185ee0=_0xc10536;return this[_0x185ee0(0x1c7)]+='\x20-allowProvisioningUpdates',this;}[_0xc10536(0x1d0)](_0x1ec79d){const _0x10e7a4=_0xc10536;return this[_0x10e7a4(0x1c7)]+=_0x10e7a4(0x1be)+_0x1ec79d+'\x27',this;}[_0xc10536(0x1c2)](_0x3a323a,_0xd58ef7,_0x19dbc7){const _0x5c349a=_0xc10536;return this[_0x5c349a(0x1c7)]+=_0x5c349a(0x1c8)+_0x3a323a+_0x5c349a(0x1b8)+_0xd58ef7+_0x5c349a(0x1c5)+_0x19dbc7,this;}[_0xc10536(0x1bc)](){const _0x1a8d3d=_0xc10536;return this[_0x1a8d3d(0x1c7)]+=_0x1a8d3d(0x1d2),this;}}exports[_0xc10536(0x1d5)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x36f14c=_0x26b6;(function(_0x4c19ea,_0x1a29b6){const _0x1e3f81=_0x26b6,_0x598868=_0x4c19ea();while(!![]){try{const _0x390130=parseInt(_0x1e3f81(0x204))/0x1*(-parseInt(_0x1e3f81(0x1f8))/0x2)+-parseInt(_0x1e3f81(0x1e8))/0x3*(parseInt(_0x1e3f81(0x1d5))/0x4)+parseInt(_0x1e3f81(0x22c))/0x5*(-parseInt(_0x1e3f81(0x201))/0x6)+-parseInt(_0x1e3f81(0x1f9))/0x7+-parseInt(_0x1e3f81(0x233))/0x8*(-parseInt(_0x1e3f81(0x216))/0x9)+parseInt(_0x1e3f81(0x1f6))/0xa+parseInt(_0x1e3f81(0x1de))/0xb;if(_0x390130===_0x1a29b6)break;else _0x598868['push'](_0x598868['shift']());}catch(_0x414092){_0x598868['push'](_0x598868['shift']());}}}(_0x27aa,0xb993c));Object['defineProperty'](exports,_0x36f14c(0x1ed),{'value':!![]});const fs=require('fs'),resource_1=require(_0x36f14c(0x1dc)),path_1=require('path'),load_1=require(_0x36f14c(0x1f2)),imageHelper_1=require(_0x36f14c(0x231)),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require(_0x36f14c(0x1e4)),exportOptionsXML=_0x36f14c(0x205),infoPlistXML=_0x36f14c(0x224);let useExportOptionsXML='';class XcodeProject{static async[_0x36f14c(0x21c)](_0x4d08bf,_0x32dffe){const _0x1b6fbb=_0x36f14c;let _0x26cf35=xcode['project'](_0x4d08bf);this[_0x1b6fbb(0x234)](_0x26cf35),_0x26cf35[_0x1b6fbb(0x211)]();let _0x45aabc=_0x32dffe[_0x1b6fbb(0x210)];const _0xf53a0e=[_0x1b6fbb(0x207),_0x1b6fbb(0x20c),_0x1b6fbb(0x202),_0x1b6fbb(0x1f7)];useExportOptionsXML=exportOptionsXML[_0x1b6fbb(0x223)](_0x1b6fbb(0x230),_0xf53a0e[_0x1b6fbb(0x221)](_0x45aabc)?_0x45aabc:_0x1b6fbb(0x207));_0x32dffe['teamId']&&this[_0x1b6fbb(0x212)](_0x26cf35,_0x32dffe['teamId']);this[_0x1b6fbb(0x22b)](),await this[_0x1b6fbb(0x21e)](_0x32dffe['icon']),this[_0x1b6fbb(0x237)](_0x26cf35,_0x32dffe['manifestInfo']['json']);_0x32dffe[_0x1b6fbb(0x1f4)]?this[_0x1b6fbb(0x21d)](_0x26cf35,_0x32dffe[_0x1b6fbb(0x1f4)]):this[_0x1b6fbb(0x21d)](_0x26cf35,_0x1b6fbb(0x1e6));try{fs[_0x1b6fbb(0x1fe)](_0x4d08bf,_0x26cf35[_0x1b6fbb(0x1e5)]());}catch(_0x3bac75){console[_0x1b6fbb(0x236)](_0x3bac75);}}static[_0x36f14c(0x234)](_0x5ba233){const _0x5b040d=_0x36f14c;_0x5ba233[_0x5b040d(0x206)]=function(_0x2ac08d){const _0x70846f=_0x5b040d;var _0x4890af=this[_0x70846f(0x22e)][_0x70846f(0x1fb)][_0x70846f(0x1e1)]['PBXGroup'],_0x9bf8ce,_0x194501;for(_0x9bf8ce in _0x4890af){if(!/_comment$/[_0x70846f(0x217)](_0x9bf8ce))continue;if(_0x4890af[_0x9bf8ce]==_0x2ac08d)return _0x194501=_0x9bf8ce[_0x70846f(0x1e9)](/_comment$/)[0x0],_0x4890af[_0x194501];}return![];},_0x5ba233[_0x5b040d(0x1dd)]=function(_0x31636f,_0x10f239,_0x3b67d3,_0x261157){const _0x199779=_0x5b040d;let _0x12ab24=[];const _0x588525=/_comment$/;if(_0x261157){const _0x381de5=this[_0x199779(0x1eb)](_0x261157),_0x2173c5=_0x381de5&&_0x381de5[_0x199779(0x225)],_0x1b2454=this[_0x199779(0x235)]();for(const _0x215914 in _0x1b2454){if(!_0x588525[_0x199779(0x217)](_0x215914)&&_0x2173c5===_0x215914){const _0x29ed15=_0x1b2454[_0x215914][_0x199779(0x1fa)];for(const _0x49e962 of _0x29ed15){_0x12ab24[_0x199779(0x203)](_0x49e962[_0x199779(0x1d9)]);}break;}}}var _0x1320d7=this['pbxXCBuildConfigurationSection']();for(var _0x595b28 in _0x1320d7){if(!_0x588525[_0x199779(0x217)](_0x595b28)){if(_0x261157&&!_0x12ab24['includes'](_0x595b28))continue;var _0x58d77e=_0x1320d7[_0x595b28];(_0x3b67d3&&_0x58d77e[_0x199779(0x214)]===_0x3b67d3||!_0x3b67d3)&&_0x58d77e['buildSettings'][_0x31636f]&&(_0x58d77e[_0x199779(0x1e0)][_0x31636f]=_0x10f239);}}};}static async[_0x36f14c(0x21e)](_0xdf31d2){const _0x2c2fa5=_0x36f14c;if(_0xdf31d2){const _0x3f425b=(0x0,path_1[_0x2c2fa5(0x21b)])(resource_1['PROJECT_DIRECTORY'],resource_1['BACK_APPICON_DIRECTORY']),_0x224334=(0x0,path_1[_0x2c2fa5(0x21b)])(_0x3f425b,'Contents.json'),_0x57e68c='icon.'+_0xdf31d2[_0x2c2fa5(0x1f0)]()[_0x2c2fa5(0x223)](_0x2c2fa5(0x22f),''),_0x9b7b58=(0x0,path_1[_0x2c2fa5(0x21b)])(_0x3f425b,_0x57e68c);let _0x563142=await(0x0,load_1['loadJsonFromDisk'])(_0x224334);_0x563142['images'][0x0]['filename']=_0x57e68c,await _0xdf31d2[_0x2c2fa5(0x1ff)](_0x9b7b58),await fs[_0x2c2fa5(0x1fe)](_0x224334,JSON['stringify'](_0x563142));const _0xbb9efc=(0x0,path_1[_0x2c2fa5(0x21b)])(resource_1[_0x2c2fa5(0x1da)],resource_1[_0x2c2fa5(0x226)]),_0x40bfff=(0x0,path_1['join'])(_0xbb9efc,'Contents.json'),_0x2f6ef2=_0x2c2fa5(0x1fc),_0x2f1f37=(0x0,path_1['join'])(_0xbb9efc,_0x2f6ef2);let _0x35fad8=await(0x0,load_1['loadJsonFromDisk'])(_0x40bfff),_0x360acf=imageHelper_1[_0x2c2fa5(0x21a)][_0x2c2fa5(0x20b)](0x200);_0x35fad8[_0x2c2fa5(0x1d7)][0x0][_0x2c2fa5(0x200)]=_0x2f6ef2,await _0x360acf[_0x2c2fa5(0x1ff)](_0x2f1f37),await fs[_0x2c2fa5(0x1fe)](_0x40bfff,JSON[_0x2c2fa5(0x1d4)](_0x35fad8));}}static[_0x36f14c(0x212)](_0x2758f3,_0x4024bf){const _0x1d8a6d=_0x36f14c;_0x2758f3[_0x1d8a6d(0x1dd)](_0x1d8a6d(0x1d8),_0x4024bf),useExportOptionsXML=useExportOptionsXML['replace']('YOURTEAMID',_0x4024bf);}static['updateExportOptions'](){const _0x4d5638=_0x36f14c;!fs[_0x4d5638(0x1f5)](resource_1[_0x4d5638(0x1ef)])&&fs[_0x4d5638(0x208)](resource_1[_0x4d5638(0x1ef)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1[_0x4d5638(0x21b)])(resource_1[_0x4d5638(0x1ef)],_0x4d5638(0x1fd)),useExportOptionsXML);}static[_0x36f14c(0x237)](_0x499fe9,_0x5eea45){const _0x4574ed=_0x36f14c;var _0x438176;_0x499fe9['updateProductName'](_0x5eea45['name']),_0x499fe9[_0x4574ed(0x1dd)](_0x4574ed(0x21f),'\x22'+_0x5eea45['id']+'\x22'),this[_0x4574ed(0x227)]((_0x438176=_0x5eea45[_0x4574ed(0x1f1)])!==null&&_0x438176!==void 0x0?_0x438176:[]),this[_0x4574ed(0x238)](_0x5eea45);}static[_0x36f14c(0x21d)](_0x3e3353,_0x5ef2b5){const _0x1464ba=_0x36f14c;_0x3e3353[_0x1464ba(0x1dd)]('CURRENT_PROJECT_VERSION',_0x5ef2b5);}static['updateDeeplink'](_0x32d8a0){const _0x23065e=_0x36f14c;let _0x4fd702=(0x0,path_1[_0x23065e(0x21b)])(resource_1[_0x23065e(0x1da)],_0x23065e(0x20f)),_0x282ae5='';for(let _0x2a476c=0x0;_0x2a476c<_0x32d8a0[_0x23065e(0x222)];_0x2a476c++){_0x282ae5+=_0x23065e(0x1ec)+_0x32d8a0[_0x2a476c][_0x23065e(0x215)]+_0x23065e(0x239);}const _0x44b119=infoPlistXML['replace'](_0x23065e(0x20d),_0x282ae5);fs['writeFileSync'](_0x4fd702,_0x44b119);}static[_0x36f14c(0x238)](_0x3ff916){const _0x21e16d=_0x36f14c,_0x2d4e71=(0x0,path_1['join'])(resource_1[_0x21e16d(0x1da)],'./web-spatial/libs/webView/manifest.swift');let _0x18df91=manifestSwiftTemplate_1[_0x21e16d(0x1e2)];_0x18df91=_0x18df91[_0x21e16d(0x223)]('START_URL',_0x3ff916[_0x21e16d(0x232)]),_0x18df91=_0x18df91['replace'](_0x21e16d(0x1f3),_0x3ff916[_0x21e16d(0x1d6)]),_0x18df91=_0x18df91[_0x21e16d(0x223)](_0x21e16d(0x218),_0x3ff916[_0x21e16d(0x214)]),_0x18df91=_0x18df91[_0x21e16d(0x223)](_0x21e16d(0x229),_0x3ff916['description']),_0x18df91=_0x18df91[_0x21e16d(0x223)]('AppID',_0x3ff916['id']),_0x18df91=_0x18df91['replace']('.minimal',_0x3ff916[_0x21e16d(0x1ee)]=='minimal-ui'?_0x21e16d(0x1db):_0x21e16d(0x219));if(_0x3ff916[_0x21e16d(0x1f1)]){let _0x26ebe6='';for(let _0x3e213b=0x0;_0x3e213b<_0x3ff916['protocol_handlers'][_0x21e16d(0x222)];_0x3e213b++){_0x26ebe6+=_0x21e16d(0x20a)+_0x3ff916[_0x21e16d(0x1f1)][_0x3e213b][_0x21e16d(0x215)]+_0x21e16d(0x220)+_0x3ff916[_0x21e16d(0x1f1)][_0x3e213b]['url']+_0x21e16d(0x22d);}_0x18df91=_0x18df91[_0x21e16d(0x223)](_0x21e16d(0x213),_0x26ebe6);}_0x18df91=_0x18df91['replace'](_0x21e16d(0x209),_0x3ff916['mainScene'][_0x21e16d(0x1d3)][_0x21e16d(0x228)]),_0x18df91=_0x18df91[_0x21e16d(0x223)](_0x21e16d(0x1ea),_0x3ff916[_0x21e16d(0x20e)]['defaultSize']['height']),_0x18df91=_0x18df91['replace'](_0x21e16d(0x1e3),'\x22'+_0x3ff916[_0x21e16d(0x20e)][_0x21e16d(0x22a)]+'\x22'),fs[_0x21e16d(0x1fe)](_0x2d4e71,_0x18df91,_0x21e16d(0x1df));}}function _0x26b6(_0x245429,_0x4da45b){const _0x27aa64=_0x27aa();return _0x26b6=function(_0x26b6d8,_0x4f9277){_0x26b6d8=_0x26b6d8-0x1d3;let _0x20e6fe=_0x27aa64[_0x26b6d8];return _0x20e6fe;},_0x26b6(_0x245429,_0x4da45b);}exports[_0x36f14c(0x1e7)]=XcodeProject;function _0x27aa(){const _0x28f99b=['existsSync','1931640moFdln','enterprise','244798pxgwHV','9440963YtGxrP','buildConfigurations','project','icon.png','ExportOptions.plist','writeFileSync','writeAsync','filename','4227042rZgTET','debugging','push','4FPCFDL','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','pbxGroupByName','release-testing','mkdirSync','SceneWidth','PWAProtocol(protocolValue:\x20\x22','createImg','app-store-connect','DEEPLINK','mainScene','./web-spatial/Info.plist','buildType','parseSync','updateTeamId','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','name','protocol','801UDTLyG','test','AppName','.standalone','ImageHelper','join','modify','updateVersion','bindIcon','PRODUCT_BUNDLE_IDENTIFIER','\x22,\x20url:\x20\x22','includes','length','replace','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','buildConfigurationList','MIDDLE_APPICON_DIRECTORY','updateDeeplink','width','Description','resizability','updateExportOptions','10bBeWrU','\x22),','hash','image/','BUILDTYPE','../resource/imageHelper','start_url','76224RdKiUm','fixProjectFunction','pbxXCConfigurationList','log','bindManifestInfo','modifySwift','</string>','defaultSize','stringify','3283052TZjzYM','scope','images','DEVELOPMENT_TEAM','value','PROJECT_DIRECTORY','.minimal','../resource','updateBuildProperty','41657550TUBUKo','utf-8','buildSettings','objects','manifestSwiftTemplate','SceneResizability','xcode','writeSync','1.0','default','3AiSdmo','split','SceneHeight','pbxTargetByName','<string>','__esModule','display','PROJECT_BUILD_DIRECTORY','getMIME','protocol_handlers','../resource/load','SCOPE','version'];_0x27aa=function(){return _0x28f99b;};return _0x27aa();}
|
|
1
|
+
'use strict';function _0x1f2b(_0xaf098f,_0x443aa2){const _0x5671fc=_0x5671();return _0x1f2b=function(_0x1f2b36,_0x39f457){_0x1f2b36=_0x1f2b36-0x137;let _0x5d2ae2=_0x5671fc[_0x1f2b36];return _0x5d2ae2;},_0x1f2b(_0xaf098f,_0x443aa2);}const _0x4731ea=_0x1f2b;function _0x5671(){const _0x913f05=['3475516KgUtdi','2123QkHxWw','./web-spatial/libs/webView/manifest.swift','debugging','BACK_APPICON_DIRECTORY','SceneHeight','PRODUCT_BUNDLE_IDENTIFIER','./web-spatial/Info.plist','../resource/load','591472OEmRhA','protocol','YOURTEAMID','manifestInfo','scope','mainScene','app-store-connect','Contents.json','writeAsync','</string>','.minimal','replace','.standalone','path','Description','bindManifestInfo','DEVELOPMENT_TEAM','length','parseSync','icon','ExportOptions.plist','../resource','START_URL','json','project','buildSettings','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','./manifestSwiftTemplate','filename','BUILDTYPE','createImg','\x22),','130065DPgJEr','buildType','utf-8','split','test','updateVersion','log','MIDDLE_APPICON_DIRECTORY','CURRENT_PROJECT_VERSION','updateTeamId','default','fixProjectFunction','protocol_handlers','DEEPLINK','PROJECT_DIRECTORY','138sicvZr','modifySwift','stringify','66ZJzYgC','height','6447644zKFUDT','resizability','buildConfigurationList','\x22,\x20url:\x20\x22','PWAProtocol(protocolValue:\x20\x22','name','url','AppName','134390ABtTda','icon.','PROJECT_BUILD_DIRECTORY','updateExportOptions','../resource/imageHelper','buildConfigurations','start_url','SceneResizability','getMIME','teamId','minimal-ui','objects','writeFileSync','bindIcon','writeSync','description','xcode','ImageHelper','pbxXCConfigurationList','pbxGroupByName','release-testing','loadJsonFromDisk','89502KcCEHJ','updateBuildProperty','126BqtZnl','join','1201335fQiCPX','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','defaultSize','images','icon.png','version','SceneWidth','pbxXCBuildConfigurationSection','SCOPE'];_0x5671=function(){return _0x913f05;};return _0x5671();}(function(_0x21a9da,_0xcc5a72){const _0x124d4f=_0x1f2b,_0x53b130=_0x21a9da();while(!![]){try{const _0x306daa=-parseInt(_0x124d4f(0x164))/0x1+-parseInt(_0x124d4f(0x140))/0x2*(-parseInt(_0x124d4f(0x160))/0x3)+parseInt(_0x124d4f(0x16d))/0x4+parseInt(_0x124d4f(0x196))/0x5*(parseInt(_0x124d4f(0x13d))/0x6)+parseInt(_0x124d4f(0x142))/0x7+-parseInt(_0x124d4f(0x176))/0x8*(-parseInt(_0x124d4f(0x162))/0x9)+parseInt(_0x124d4f(0x14a))/0xa*(-parseInt(_0x124d4f(0x16e))/0xb);if(_0x306daa===_0xcc5a72)break;else _0x53b130['push'](_0x53b130['shift']());}catch(_0x54f16a){_0x53b130['push'](_0x53b130['shift']());}}}(_0x5671,0x959c6));Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0x4731ea(0x18b)),path_1=require(_0x4731ea(0x183)),load_1=require(_0x4731ea(0x175)),imageHelper_1=require(_0x4731ea(0x14e)),manifestSwiftTemplate_1=require(_0x4731ea(0x191)),xcode=require(_0x4731ea(0x15a)),exportOptionsXML=_0x4731ea(0x165),infoPlistXML=_0x4731ea(0x190);let useExportOptionsXML='';class XcodeProject{static async['modify'](_0x5227f7,_0x5d8fb3){const _0x54645d=_0x4731ea;let _0x1b0751=xcode['project'](_0x5227f7);this[_0x54645d(0x139)](_0x1b0751),_0x1b0751[_0x54645d(0x188)]();let _0xffe5ba=_0x5d8fb3[_0x54645d(0x197)];const _0x2f31f8=[_0x54645d(0x15e),_0x54645d(0x17c),_0x54645d(0x170),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x54645d(0x181)](_0x54645d(0x193),_0x2f31f8['includes'](_0xffe5ba)?_0xffe5ba:'release-testing');_0x5d8fb3[_0x54645d(0x153)]&&this[_0x54645d(0x137)](_0x1b0751,_0x5d8fb3['teamId']);this[_0x54645d(0x14d)](),await this[_0x54645d(0x157)](_0x5d8fb3[_0x54645d(0x189)]),this[_0x54645d(0x185)](_0x1b0751,_0x5d8fb3[_0x54645d(0x179)][_0x54645d(0x18d)]);_0x5d8fb3[_0x54645d(0x169)]?this[_0x54645d(0x19b)](_0x1b0751,_0x5d8fb3[_0x54645d(0x169)]):this[_0x54645d(0x19b)](_0x1b0751,'1.0');try{fs['writeFileSync'](_0x5227f7,_0x1b0751[_0x54645d(0x158)]());}catch(_0xb4e1ec){console[_0x54645d(0x19c)](_0xb4e1ec);}}static[_0x4731ea(0x139)](_0x5c7839){const _0xf1be9b=_0x4731ea;_0x5c7839[_0xf1be9b(0x15d)]=function(_0x2e350c){const _0x530b4e=_0xf1be9b;var _0x5239b4=this['hash'][_0x530b4e(0x18e)][_0x530b4e(0x155)]['PBXGroup'],_0x4e0fd0,_0x4efea8;for(_0x4e0fd0 in _0x5239b4){if(!/_comment$/[_0x530b4e(0x19a)](_0x4e0fd0))continue;if(_0x5239b4[_0x4e0fd0]==_0x2e350c)return _0x4efea8=_0x4e0fd0[_0x530b4e(0x199)](/_comment$/)[0x0],_0x5239b4[_0x4efea8];}return![];},_0x5c7839['updateBuildProperty']=function(_0x1f6adb,_0x3083b8,_0x404321,_0x4e6cc5){const _0x2fd67d=_0xf1be9b;let _0x408ad9=[];const _0x16d7ce=/_comment$/;if(_0x4e6cc5){const _0x5e5696=this['pbxTargetByName'](_0x4e6cc5),_0x374221=_0x5e5696&&_0x5e5696[_0x2fd67d(0x144)],_0x33af36=this[_0x2fd67d(0x15c)]();for(const _0x5e2dcf in _0x33af36){if(!_0x16d7ce['test'](_0x5e2dcf)&&_0x374221===_0x5e2dcf){const _0x588826=_0x33af36[_0x5e2dcf][_0x2fd67d(0x14f)];for(const _0x3aabc4 of _0x588826){_0x408ad9['push'](_0x3aabc4['value']);}break;}}}var _0x33018b=this[_0x2fd67d(0x16b)]();for(var _0x3a0bff in _0x33018b){if(!_0x16d7ce[_0x2fd67d(0x19a)](_0x3a0bff)){if(_0x4e6cc5&&!_0x408ad9['includes'](_0x3a0bff))continue;var _0x5e2de8=_0x33018b[_0x3a0bff];(_0x404321&&_0x5e2de8['name']===_0x404321||!_0x404321)&&_0x5e2de8[_0x2fd67d(0x18f)][_0x1f6adb]&&(_0x5e2de8[_0x2fd67d(0x18f)][_0x1f6adb]=_0x3083b8);}}};}static async['bindIcon'](_0x40f4e5){const _0x1d7912=_0x4731ea;if(_0x40f4e5){const _0x9eeb09=(0x0,path_1[_0x1d7912(0x163)])(resource_1[_0x1d7912(0x13c)],resource_1[_0x1d7912(0x171)]),_0x4ebfe0=(0x0,path_1[_0x1d7912(0x163)])(_0x9eeb09,_0x1d7912(0x17d)),_0x81da01=_0x1d7912(0x14b)+_0x40f4e5[_0x1d7912(0x152)]()[_0x1d7912(0x181)]('image/',''),_0x3a38d2=(0x0,path_1[_0x1d7912(0x163)])(_0x9eeb09,_0x81da01);let _0x266763=await(0x0,load_1['loadJsonFromDisk'])(_0x4ebfe0);_0x266763[_0x1d7912(0x167)][0x0]['filename']=_0x81da01,await _0x40f4e5[_0x1d7912(0x17e)](_0x3a38d2),await fs[_0x1d7912(0x156)](_0x4ebfe0,JSON[_0x1d7912(0x13f)](_0x266763));const _0x1badd8=(0x0,path_1['join'])(resource_1[_0x1d7912(0x13c)],resource_1[_0x1d7912(0x19d)]),_0x646811=(0x0,path_1[_0x1d7912(0x163)])(_0x1badd8,'Contents.json'),_0x5ebb6a=_0x1d7912(0x168),_0x185339=(0x0,path_1[_0x1d7912(0x163)])(_0x1badd8,_0x5ebb6a);let _0x55c27d=await(0x0,load_1[_0x1d7912(0x15f)])(_0x646811),_0x1a90b2=imageHelper_1[_0x1d7912(0x15b)][_0x1d7912(0x194)](0x200);_0x55c27d[_0x1d7912(0x167)][0x0][_0x1d7912(0x192)]=_0x5ebb6a,await _0x1a90b2[_0x1d7912(0x17e)](_0x185339),await fs[_0x1d7912(0x156)](_0x646811,JSON[_0x1d7912(0x13f)](_0x55c27d));}}static['updateTeamId'](_0x30641f,_0x55223f){const _0x41a5c0=_0x4731ea;_0x30641f[_0x41a5c0(0x161)](_0x41a5c0(0x186),_0x55223f),useExportOptionsXML=useExportOptionsXML[_0x41a5c0(0x181)](_0x41a5c0(0x178),_0x55223f);}static[_0x4731ea(0x14d)](){const _0x1211e6=_0x4731ea;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs['mkdirSync'](resource_1[_0x1211e6(0x14c)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1[_0x1211e6(0x163)])(resource_1[_0x1211e6(0x14c)],_0x1211e6(0x18a)),useExportOptionsXML);}static[_0x4731ea(0x185)](_0x226130,_0x1763b0){const _0x31c187=_0x4731ea;var _0xd6d9be;_0x226130['updateProductName'](_0x1763b0['name']),_0x226130['updateBuildProperty'](_0x31c187(0x173),'\x22'+_0x1763b0['id']+'\x22'),this['updateDeeplink']((_0xd6d9be=_0x1763b0[_0x31c187(0x13a)])!==null&&_0xd6d9be!==void 0x0?_0xd6d9be:[]),this[_0x31c187(0x13e)](_0x1763b0);}static[_0x4731ea(0x19b)](_0x322409,_0x2cae32){const _0x500bc1=_0x4731ea;_0x322409[_0x500bc1(0x161)](_0x500bc1(0x19e),_0x2cae32);}static['updateDeeplink'](_0xfeac61){const _0x1ab870=_0x4731ea;let _0x11cd87=(0x0,path_1['join'])(resource_1[_0x1ab870(0x13c)],_0x1ab870(0x174)),_0x36bb07='';for(let _0x1190c7=0x0;_0x1190c7<_0xfeac61[_0x1ab870(0x187)];_0x1190c7++){_0x36bb07+='<string>'+_0xfeac61[_0x1190c7][_0x1ab870(0x177)]+_0x1ab870(0x17f);}const _0x553045=infoPlistXML['replace'](_0x1ab870(0x13b),_0x36bb07);fs['writeFileSync'](_0x11cd87,_0x553045);}static[_0x4731ea(0x13e)](_0x5e24bd){const _0x54e7e3=_0x4731ea,_0x13b751=(0x0,path_1[_0x54e7e3(0x163)])(resource_1['PROJECT_DIRECTORY'],_0x54e7e3(0x16f));let _0x1cca84=manifestSwiftTemplate_1['manifestSwiftTemplate'];_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x18c),_0x5e24bd[_0x54e7e3(0x150)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x16c),_0x5e24bd[_0x54e7e3(0x17a)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x149),_0x5e24bd[_0x54e7e3(0x147)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x184),_0x5e24bd[_0x54e7e3(0x159)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)]('AppID',_0x5e24bd['id']),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x180),_0x5e24bd['display']==_0x54e7e3(0x154)?_0x54e7e3(0x180):_0x54e7e3(0x182));if(_0x5e24bd[_0x54e7e3(0x13a)]){let _0x6f293d='';for(let _0x2b7a4e=0x0;_0x2b7a4e<_0x5e24bd[_0x54e7e3(0x13a)][_0x54e7e3(0x187)];_0x2b7a4e++){_0x6f293d+=_0x54e7e3(0x146)+_0x5e24bd[_0x54e7e3(0x13a)][_0x2b7a4e]['protocol']+_0x54e7e3(0x145)+_0x5e24bd[_0x54e7e3(0x13a)][_0x2b7a4e][_0x54e7e3(0x148)]+_0x54e7e3(0x195);}_0x1cca84=_0x1cca84[_0x54e7e3(0x181)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x6f293d);}_0x1cca84=_0x1cca84['replace'](_0x54e7e3(0x16a),_0x5e24bd[_0x54e7e3(0x17b)][_0x54e7e3(0x166)]['width']),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x172),_0x5e24bd[_0x54e7e3(0x17b)][_0x54e7e3(0x166)][_0x54e7e3(0x141)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x151),'\x22'+_0x5e24bd['mainScene'][_0x54e7e3(0x143)]+'\x22'),fs[_0x54e7e3(0x156)](_0x13b751,_0x1cca84,_0x54e7e3(0x198));}}exports[_0x4731ea(0x138)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3d82e1=_0x21be;(function(_0x24b983,_0x3ea562){const _0x2f09f0=_0x21be,_0xe82ea0=_0x24b983();while(!![]){try{const _0xfc9e0a=parseInt(_0x2f09f0(0x148))/0x1*(parseInt(_0x2f09f0(0x161))/0x2)+-parseInt(_0x2f09f0(0x157))/0x3+parseInt(_0x2f09f0(0x127))/0x4*(-parseInt(_0x2f09f0(0x176))/0x5)+parseInt(_0x2f09f0(0x130))/0x6+-parseInt(_0x2f09f0(0x125))/0x7*(parseInt(_0x2f09f0(0x160))/0x8)+-parseInt(_0x2f09f0(0x15e))/0x9+parseInt(_0x2f09f0(0x146))/0xa;if(_0xfc9e0a===_0x3ea562)break;else _0xe82ea0['push'](_0xe82ea0['shift']());}catch(_0x293525){_0xe82ea0['push'](_0xe82ea0['shift']());}}}(_0x49dd,0x26e38));function _0x21be(_0x476d54,_0x4b9321){const _0x49ddc4=_0x49dd();return _0x21be=function(_0x21be1a,_0xf6875f){_0x21be1a=_0x21be1a-0x124;let _0x336083=_0x49ddc4[_0x21be1a];return _0x336083;},_0x21be(_0x476d54,_0x4b9321);}Object['defineProperty'](exports,_0x3d82e1(0x14b),{'value':!![]});function _0x49dd(){const _0x139db3=['\x20--apiKey\x20','length','toString','/test','821847hFMasf','launch','listDevices','no\x20visionOS\x20simulator\x20found','trim','simctl','path','2788947HUqoso','uploadPackage','24gYZXqT','1874wNaasU','\x20altool','\x20-u\x20','launch\x20app','\x20--upload-app\x20-f\x20','\x20-p\x20','xcrun','\x20--verbose','name','visionos','parseListDevices','existsSync','find\x20simulator:\x20','\x20--apple-id\x20','list','\x20--apiIssuer\x20','execSync','\x20--upload-package\x20','\x20boot\x20\x22','state','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','470GdXOKH','version','install','uploadApp','444493iVhupK','\x20install\x20\x22','11112YFRPLF','split','shutdown','\x20shutdown\x20booted','.app','/web-spatial.xcodeproj','validate','Build/Products/Debug-xrsimulator/','PROJECT_DIRECTORY','579198XBJVKT','project','../resource','\x22\x20\x22','authApi','\x20list','build\x20success','boot','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','\x20launch\x20\x22','\x20list\x20devices\x20\x22','--\x20visionOS','authAccount','log','\x20simctl','child_process','line','\x20--validate-app\x20-f\x20','Booted','default','includes','install\x20success','9754690wNcJNR','appleId','131UieWYZ','deviceId','start\x20building','__esModule','platform','verbose','XcodebuildCMD','Apple\x20Vision\x20Pro','PROJECT_BUILD_DIRECTORY','altool','mkdirSync'];_0x49dd=function(){return _0x139db3;};return _0x49dd();}const child_process_1=require(_0x3d82e1(0x13f)),resource_1=require(_0x3d82e1(0x132)),path_1=require(_0x3d82e1(0x15d)),fs=require('fs'),xcodebuild_1=require('./xcodebuild');class Xcrun{static async[_0x3d82e1(0x12d)](_0x20ffad,_0x4baac1,_0x353d9,_0xc1b16d){const _0x3c9b6a=_0x3d82e1,_0x207f06=new XcrunCMD()['altool']();_0x207f06['validate'](_0x20ffad);_0xc1b16d?_0x207f06[_0x3c9b6a(0x13c)](_0x4baac1,_0x353d9):_0x207f06['authApi'](_0x4baac1,_0x353d9);_0x207f06[_0x3c9b6a(0x14c)](_0x3c9b6a(0x16a));const _0xc09fe8=(0x0,child_process_1[_0x3c9b6a(0x171)])(_0x207f06[_0x3c9b6a(0x140)]);return _0xc09fe8[_0x3c9b6a(0x155)]();}static async[_0x3d82e1(0x15f)](_0x16420a,_0x138886,_0x5be25e,_0x192af8,_0x560faf){const _0x112d6e=_0x3d82e1,_0x344e88=new XcrunCMD()[_0x112d6e(0x151)]();_0x344e88['uploadPackage'](_0x16420a);_0x560faf?_0x344e88['authAccount'](_0x138886,_0x5be25e):_0x344e88['authApi'](_0x138886,_0x5be25e);_0x344e88[_0x112d6e(0x14c)](_0x112d6e(0x16a)),_0x344e88[_0x112d6e(0x147)](_0x192af8);const _0x1b3166=(0x0,child_process_1[_0x112d6e(0x171)])(_0x344e88[_0x112d6e(0x140)]);return _0x1b3166['toString']();}static async[_0x3d82e1(0x124)](_0x323733,_0x23055e,_0x30c837,_0x5e1c34){const _0x542e95=_0x3d82e1,_0x1c9c08=new XcrunCMD()[_0x542e95(0x151)]();_0x1c9c08['uploadApp'](_0x323733);_0x5e1c34?_0x1c9c08[_0x542e95(0x13c)](_0x23055e,_0x30c837):_0x1c9c08[_0x542e95(0x134)](_0x23055e,_0x30c837);_0x1c9c08[_0x542e95(0x14c)](_0x542e95(0x16a));const _0x35e272=(0x0,child_process_1[_0x542e95(0x171)])(_0x1c9c08['line']);return _0x35e272[_0x542e95(0x155)]();}static async['runWithSimulator'](_0x3d8759){const _0x12c62b=_0x3d82e1;let _0x509a36=new XcrunCMD()[_0x12c62b(0x15c)]();_0x509a36[_0x12c62b(0x159)](_0x12c62b(0x14f));const _0x585fe7=(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]),_0x369a46=this[_0x12c62b(0x16b)](_0x585fe7[_0x12c62b(0x155)]());if(_0x369a46[_0x12c62b(0x154)]===0x0)throw new Error(_0x12c62b(0x15a));let _0x1f985a=_0x369a46[0x0];for(let _0x10bcfb=0x0;_0x10bcfb<_0x369a46[_0x12c62b(0x154)];_0x10bcfb++){if(_0x369a46[_0x10bcfb][_0x12c62b(0x174)]===_0x12c62b(0x142)){_0x1f985a=_0x369a46[_0x10bcfb];break;}}console['log'](_0x12c62b(0x16d)+_0x1f985a['deviceId']);const _0x4231c3=resource_1[_0x12c62b(0x12f)]+_0x12c62b(0x12c),_0x505e31=resource_1[_0x12c62b(0x150)]+_0x12c62b(0x156);!fs[_0x12c62b(0x16c)](resource_1[_0x12c62b(0x150)])&&fs[_0x12c62b(0x152)](resource_1[_0x12c62b(0x150)],{'recursive':!![]});!fs[_0x12c62b(0x16c)](_0x505e31)&&fs['mkdirSync'](_0x505e31,{'recursive':!![]});const _0x1d87a5=new xcodebuild_1[(_0x12c62b(0x14e))]()[_0x12c62b(0x131)](_0x4231c3)[_0x12c62b(0x140)]+(_0x12c62b(0x138)+_0x1f985a[_0x12c62b(0x149)]+'\x27\x20-derivedDataPath\x20'+_0x505e31);console[_0x12c62b(0x13d)](_0x12c62b(0x14a)),(0x0,child_process_1[_0x12c62b(0x171)])(_0x1d87a5),console[_0x12c62b(0x13d)](_0x12c62b(0x136));_0x1f985a[_0x12c62b(0x174)]==='Shutdown'&&(_0x509a36=new XcrunCMD()['simctl'](),_0x509a36[_0x12c62b(0x137)](_0x1f985a[_0x12c62b(0x149)]),(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]));(0x0,child_process_1[_0x12c62b(0x171)])(_0x12c62b(0x175)),console[_0x12c62b(0x13d)]('installing\x20app');const _0x412d89=(0x0,path_1['join'])(_0x505e31,_0x12c62b(0x12e)+_0x3d8759[_0x12c62b(0x169)]+_0x12c62b(0x12b));_0x509a36=new XcrunCMD()[_0x12c62b(0x15c)](),_0x509a36[_0x12c62b(0x178)](_0x1f985a['deviceId'],_0x412d89),(0x0,child_process_1['execSync'])(_0x509a36[_0x12c62b(0x140)]),console[_0x12c62b(0x13d)](_0x12c62b(0x145)),console[_0x12c62b(0x13d)](_0x12c62b(0x164)),_0x509a36=new XcrunCMD()[_0x12c62b(0x15c)](),_0x509a36[_0x12c62b(0x158)](_0x1f985a[_0x12c62b(0x149)],_0x3d8759['id']),(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]);}static[_0x3d82e1(0x16b)](_0xbdec85){const _0x5ffe15=_0x3d82e1;let _0x3acfc0=_0xbdec85['split']('\x0a'),_0x1dfa93=[],_0x83729=-0x1;for(let _0x21db15=0x0;_0x21db15<_0x3acfc0[_0x5ffe15(0x154)];_0x21db15++){if(_0x3acfc0[_0x21db15][_0x5ffe15(0x144)](_0x5ffe15(0x13b)))_0x83729=_0x21db15;else{if(_0x83729>0x0){if(_0x3acfc0[_0x21db15][_0x5ffe15(0x144)]('--\x20'))break;if(_0x3acfc0[_0x21db15]['length']>0x0){const _0xdcf8c0=_0x3acfc0[_0x21db15][_0x5ffe15(0x128)]('('),_0x45ad0d={'name':_0xdcf8c0[0x0]['trim'](),'deviceId':_0xdcf8c0[0x1]['split'](')')[0x0]['trim'](),'state':_0xdcf8c0[0x2][_0x5ffe15(0x128)](')')[0x0][_0x5ffe15(0x15b)]()};_0x1dfa93['push'](_0x45ad0d);}}}}return _0x1dfa93;}}exports[_0x3d82e1(0x143)]=Xcrun;class XcrunCMD{constructor(){const _0x1cb870=_0x3d82e1;this['line']=_0x1cb870(0x167);}[_0x3d82e1(0x151)](){const _0x19cdc4=_0x3d82e1;return this[_0x19cdc4(0x140)]+=_0x19cdc4(0x162),this;}[_0x3d82e1(0x15c)](){const _0x253568=_0x3d82e1;return this[_0x253568(0x140)]+=_0x253568(0x13e),this;}[_0x3d82e1(0x16f)](){const _0x6d10ae=_0x3d82e1;return this[_0x6d10ae(0x140)]+=_0x6d10ae(0x135),this;}[_0x3d82e1(0x159)](_0x5bb0ad){const _0x4ca93f=_0x3d82e1;return this[_0x4ca93f(0x140)]+=_0x4ca93f(0x13a)+_0x5bb0ad+'\x22',this;}['validate'](_0x14841e){const _0xf3161e=_0x3d82e1;return this[_0xf3161e(0x140)]+=_0xf3161e(0x141)+_0x14841e,this;}[_0x3d82e1(0x124)](_0x17e601){const _0x5bdb6e=_0x3d82e1;return this[_0x5bdb6e(0x140)]+=_0x5bdb6e(0x165)+_0x17e601,this;}[_0x3d82e1(0x15f)](_0x528c6c){const _0x198ddf=_0x3d82e1;return this['line']+=_0x198ddf(0x172)+_0x528c6c,this;}[_0x3d82e1(0x13c)](_0x3b94d0,_0x5daa9a){const _0xb408fd=_0x3d82e1;return this[_0xb408fd(0x140)]+=_0xb408fd(0x163)+_0x3b94d0+_0xb408fd(0x166)+_0x5daa9a,this;}[_0x3d82e1(0x134)](_0x1a2d60,_0x4361ee){const _0x4974f3=_0x3d82e1;return this['line']+=_0x4974f3(0x153)+_0x1a2d60+_0x4974f3(0x170)+_0x4361ee,this;}['appleId'](_0x1ca46f){const _0x1c30e7=_0x3d82e1;return this[_0x1c30e7(0x140)]+=_0x1c30e7(0x16e)+_0x1ca46f,this;}['platform'](_0x2e5aad){return this['line']+='\x20-t\x20'+_0x2e5aad,this;}[_0x3d82e1(0x177)](_0x4b4761){const _0x475cc2=_0x3d82e1;return this[_0x475cc2(0x140)]+='\x20--bundle-version\x20'+_0x4b4761,this;}[_0x3d82e1(0x14d)](){const _0x50cb56=_0x3d82e1;return this['line']+=_0x50cb56(0x168),this;}[_0x3d82e1(0x129)](){const _0x57b5c4=_0x3d82e1;return this['line']+=_0x57b5c4(0x12a),this;}[_0x3d82e1(0x137)](_0x24405b){const _0x3cf8e6=_0x3d82e1;return this['line']+=_0x3cf8e6(0x173)+_0x24405b+'\x22',this;}['install'](_0x5dd3ab,_0x1449d2){const _0x1c8c6c=_0x3d82e1;return this['line']+=_0x1c8c6c(0x126)+_0x5dd3ab+_0x1c8c6c(0x133)+_0x1449d2+'\x22',this;}[_0x3d82e1(0x158)](_0x564bb6,_0x1517f0){const _0x707fd4=_0x3d82e1;return this[_0x707fd4(0x140)]+=_0x707fd4(0x139)+_0x564bb6+_0x707fd4(0x133)+_0x1517f0+'\x22',this;}}
|