@webspatial/builder 0.1.5 → 0.1.6
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.js +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 +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x48ebbe=_0x2f70;(function(_0x5375dd,_0x4b6546){const _0x428b10=_0x2f70,_0x5b84de=_0x5375dd();while(!![]){try{const _0x3474bf=-parseInt(_0x428b10(0xb3))/0x1*(-parseInt(_0x428b10(0xc3))/0x2)+parseInt(_0x428b10(0xac))/0x3*(parseInt(_0x428b10(0xb6))/0x4)+-parseInt(_0x428b10(0xba))/0x5*(parseInt(_0x428b10(0xb8))/0x6)+parseInt(_0x428b10(0xae))/0x7+parseInt(_0x428b10(0xc4))/0x8*(-parseInt(_0x428b10(0xb0))/0x9)+-parseInt(_0x428b10(0xbf))/0xa*(parseInt(_0x428b10(0xbe))/0xb)+parseInt(_0x428b10(0xab))/0xc*(parseInt(_0x428b10(0xb5))/0xd);if(_0x3474bf===_0x4b6546)break;else _0x5b84de['push'](_0x5b84de['shift']());}catch(_0x441472){_0x5b84de['push'](_0x5b84de['shift']());}}}(_0x1122,0x5f4df));function _0x2f70(_0x1e6601,_0x5ccbb8){const _0x11227c=_0x1122();return _0x2f70=function(_0x2f70dd,_0x3d281e){_0x2f70dd=_0x2f70dd-0xaa;let _0x5b4dea=_0x11227c[_0x2f70dd];return _0x5b4dea;},_0x2f70(_0x1e6601,_0x5ccbb8);}Object[_0x48ebbe(0xaa)](exports,_0x48ebbe(0xbc),{'value':!![]});const Cli_1=require(_0x48ebbe(0xb2)),CustomError_1=require(_0x48ebbe(0xc5));function _0x1122(){const _0x6079cb=['874524SxMpfy','message','9qHwwuU','code','./lib/Cli','740682aqKUhE','isArray','4121sgyxIr','428NyUDWo','argv','149418ZrQyJW','error','30KKjDdc','slice','__esModule','exit','55OHPGTd','868940LjPCqA','customMessage','exports','Cli','2AdOObU','4379664BuoUCg','./lib/utils/CustomError','CustomError','defineProperty','11952ohaxOz','9543WXfmQj','log'];_0x1122=function(){return _0x6079cb;};return _0x1122();}module[_0x48ebbe(0xc1)]=async()=>{const _0x1a854c=_0x48ebbe,_0x1f52bb=new Cli_1[(_0x1a854c(0xc2))](),_0x101ff4=Cli_1[_0x1a854c(0xc2)][_0x1a854c(0xad)],_0x36d301=process[_0x1a854c(0xb7)][_0x1a854c(0xbb)](0x2);let _0x1c1848;try{_0x1c1848=await _0x1f52bb['run'](_0x36d301);}catch(_0x53e96e){if(_0x53e96e instanceof CustomError_1[_0x1a854c(0xc6)]){const _0x162ec6=_0x53e96e[_0x1a854c(0xc0)];Array[_0x1a854c(0xb4)](_0x162ec6)?_0x162ec6['forEach'](_0x59f6d6=>{const _0x22343c=_0x1a854c;_0x101ff4[_0x22343c(0xb9)](_0x59f6d6[_0x22343c(0xb1)]+':\x20'+_0x59f6d6[_0x22343c(0xaf)]);}):_0x101ff4[_0x1a854c(0xb9)](_0x162ec6['code']+':\x20'+_0x162ec6['message']);}else _0x101ff4[_0x1a854c(0xb9)](_0x53e96e[_0x1a854c(0xaf)]);_0x1c1848=![];}!_0x1c1848?process['exit'](0x1):process[_0x1a854c(0xbd)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5dfeb4=_0x173f;(function(_0x1e34e8,_0x3ceea8){const _0x58f09a=_0x173f,_0x4a2828=_0x1e34e8();while(!![]){try{const _0x1566c4=parseInt(_0x58f09a(0x9f))/0x1*(-parseInt(_0x58f09a(0x93))/0x2)+parseInt(_0x58f09a(0x8f))/0x3*(-parseInt(_0x58f09a(0x8e))/0x4)+parseInt(_0x58f09a(0xa0))/0x5*(-parseInt(_0x58f09a(0x8a))/0x6)+-parseInt(_0x58f09a(0x9c))/0x7+parseInt(_0x58f09a(0x96))/0x8*(-parseInt(_0x58f09a(0x9b))/0x9)+-parseInt(_0x58f09a(0x94))/0xa+parseInt(_0x58f09a(0x8d))/0xb;if(_0x1566c4===_0x3ceea8)break;else _0x4a2828['push'](_0x4a2828['shift']());}catch(_0x4a1762){_0x4a2828['push'](_0x4a2828['shift']());}}}(_0x3704,0xeb793));function _0x3704(){const _0x518f9d=['\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','./cmds/build','version','downloadFile','setFetch','66324qNhaTR','minimist','setDownloadFile','66350141BiVTrp','12IoZjUF','1927869VcRAMm','./utils/fetch','major','fetchUtils','6838QTFIqo','9398320MCCvlq','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','6527288QHFwus','build','store','webspatial-builder','run','9hMekKw','5919907rlglHb','Cli','./cmds/version','83fZdWOh','115Fywsqk','./utils/FetchUtils-1','setDecompressResponseBuffer','defineProperty','semver','../lib/utils/Log','help','Current\x20Node.js\x20version\x20is\x20','node','log'];_0x3704=function(){return _0x518f9d;};return _0x3704();}function _0x173f(_0x5b912f,_0x53d03c){const _0x3704c1=_0x3704();return _0x173f=function(_0x173f9b,_0x4f27ae){_0x173f9b=_0x173f9b-0x7c;let _0x569418=_0x3704c1[_0x173f9b];return _0x569418;},_0x173f(_0x5b912f,_0x53d03c);}Object[_0x5dfeb4(0x7e)](exports,'__esModule',{'value':!![]}),exports[_0x5dfeb4(0x9d)]=void 0x0;const minimist=require(_0x5dfeb4(0x8b)),semver_1=require(_0x5dfeb4(0x7f)),Log_1=require(_0x5dfeb4(0x80)),FetchUtils_1_1=require(_0x5dfeb4(0x7c)),help_1=require('./cmds/help'),build_1=require(_0x5dfeb4(0x86)),version_1=require(_0x5dfeb4(0x9e)),fetch_1=require(_0x5dfeb4(0x90));class Cli{async['run'](_0x437548){const _0xaa4d55=_0x5dfeb4;if((0x0,semver_1[_0xaa4d55(0x91)])(process['versions'][_0xaa4d55(0x83)])<0xe)throw new Error(_0xaa4d55(0x82)+process['versions'][_0xaa4d55(0x83)]+'.'+_0xaa4d55(0x95));FetchUtils_1_1[_0xaa4d55(0x92)][_0xaa4d55(0x89)](fetch_1['fetch']),FetchUtils_1_1[_0xaa4d55(0x92)][_0xaa4d55(0x8c)](fetch_1[_0xaa4d55(0x88)]),FetchUtils_1_1['fetchUtils'][_0xaa4d55(0x7d)](fetch_1['decompressResponseBuffer']);const _0x389861=minimist(_0x437548);let _0x33f8b1=undefined;if(_0x389861['_']['length']===0x0){if(_0x389861[_0xaa4d55(0x87)])_0x33f8b1=_0xaa4d55(0x87);else _0x389861['help']&&(_0x33f8b1='help');}else _0x33f8b1=_0x389861['_'][0x0];!_0x33f8b1&&(_0x33f8b1='help');switch(_0x33f8b1){case'help':case'h':return await(0x0,help_1[_0xaa4d55(0x81)])(_0x389861);case _0xaa4d55(0x97):return await(0x0,build_1['start'])(_0x389861);case'publish':return await(0x0,build_1[_0xaa4d55(0x98)])(_0x389861);case _0xaa4d55(0x9a):return await(0x0,build_1[_0xaa4d55(0x9a)])(_0x389861);case _0xaa4d55(0x87):{return await(0x0,version_1[_0xaa4d55(0x87)])();}default:throw new Error('\x22'+_0x33f8b1+_0xaa4d55(0x85));}}}exports[_0x5dfeb4(0x9d)]=Cli,Cli[_0x5dfeb4(0x84)]=new Log_1['ConsoleLog'](_0x5dfeb4(0x99));
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4ebd53=_0x258d;function _0x258d(_0x192e6a,_0x5b4ad2){const _0x2bac21=_0x2bac();return _0x258d=function(_0x258d4f,_0x4079c3){_0x258d4f=_0x258d4f-0x68;let _0x4df111=_0x2bac21[_0x258d4f];return _0x4df111;},_0x258d(_0x192e6a,_0x5b4ad2);}(function(_0x53e05a,_0x572b06){const _0x5afb12=_0x258d,_0xa11305=_0x53e05a();while(!![]){try{const _0x5053cf=-parseInt(_0x5afb12(0x86))/0x1+-parseInt(_0x5afb12(0x71))/0x2+-parseInt(_0x5afb12(0x7e))/0x3+parseInt(_0x5afb12(0x7c))/0x4*(parseInt(_0x5afb12(0x78))/0x5)+parseInt(_0x5afb12(0x73))/0x6*(-parseInt(_0x5afb12(0x68))/0x7)+-parseInt(_0x5afb12(0x72))/0x8+parseInt(_0x5afb12(0x85))/0x9;if(_0x5053cf===_0x572b06)break;else _0xa11305['push'](_0xa11305['shift']());}catch(_0x19b36e){_0xa11305['push'](_0xa11305['shift']());}}}(_0x2bac,0x787c1));Object[_0x4ebd53(0x6a)](exports,_0x4ebd53(0x80),{'value':!![]}),exports['start']=start,exports[_0x4ebd53(0x74)]=store,exports['run']=run;const pwa_1=require(_0x4ebd53(0x77)),resource_1=require('../resource'),xcode_1=require(_0x4ebd53(0x87)),check_1=require(_0x4ebd53(0x7d));async function start(_0x1c9a77,_0x163b24=![]){const _0x31bf8d=_0x4ebd53;var _0x24b911,_0x18e73d;(0x0,check_1[_0x31bf8d(0x7f)])(_0x1c9a77,_0x163b24),resource_1['ResourceManager'][_0x31bf8d(0x6c)](_0x1c9a77[_0x31bf8d(0x6b)]),console[_0x31bf8d(0x7b)](_0x31bf8d(0x8c));let _0x4250ea=await pwa_1[_0x31bf8d(0x8b)][_0x31bf8d(0x81)](_0x1c9a77,_0x163b24);!_0x4250ea['fromNet']&&(await resource_1[_0x31bf8d(0x8e)][_0x31bf8d(0x8a)]((_0x24b911=_0x1c9a77[_0x31bf8d(0x70)])!==null&&_0x24b911!==void 0x0?_0x24b911:_0x31bf8d(0x8f)),console[_0x31bf8d(0x7b)](_0x31bf8d(0x6f)));let _0x4680c6;return((_0x18e73d=_0x4250ea[_0x31bf8d(0x8d)]['icons'])===null||_0x18e73d===void 0x0?void 0x0:_0x18e73d['length'])&&_0x163b24&&(_0x4680c6=await resource_1[_0x31bf8d(0x8e)]['generateIcon'](_0x4250ea)),console[_0x31bf8d(0x7b)](_0x31bf8d(0x88)),await xcode_1[_0x31bf8d(0x82)][_0x31bf8d(0x83)]({'icon':_0x4680c6,'manifestInfo':_0x4250ea,'teamId':_0x1c9a77[_0x31bf8d(0x6d)],'version':_0x1c9a77[_0x31bf8d(0x75)],'buildType':_0x1c9a77[_0x31bf8d(0x7a)],'export':_0x1c9a77['export']},_0x163b24),console['log'](_0x31bf8d(0x69)),_0x4250ea;}async function store(_0x51eb69){const _0x30b4ee=_0x4ebd53;resource_1[_0x30b4ee(0x8e)][_0x30b4ee(0x6c)](_0x51eb69[_0x30b4ee(0x6b)]),(0x0,check_1[_0x30b4ee(0x76)])(_0x51eb69);let _0x7efcf1={'name':_0x30b4ee(0x84)};_0x51eb69[_0x30b4ee(0x7a)]=_0x30b4ee(0x90);if(_0x51eb69[_0x30b4ee(0x89)])_0x7efcf1['name']=_0x51eb69[_0x30b4ee(0x89)];else{const _0x56607d=await start(_0x51eb69);if(!_0x56607d)return![];_0x7efcf1[_0x30b4ee(0x89)]=_0x56607d['json']['name'];}return await xcode_1[_0x30b4ee(0x82)][_0x30b4ee(0x79)](_0x51eb69,_0x7efcf1),!![];}function _0x2bac(){const _0x22c741=['parseProject','WebSpatialTest','22803471ssKxAm','46195qjMKyd','../xcode','generate\x20icon:\x20ok','name','moveProjectFrom','PWAGenerator','-------------------\x20build\x20start\x20-------------------','json','ResourceManager','dist','app-store-connect','768026qINvdJ','-------------------\x20build\x20end\x20-------------------','defineProperty','platform','checkPlatformPath','teamId','runWithSimulator','move\x20web\x20project:\x20ok','project','1660686CAAxum','4378632qFoubP','18CxjioQ','store','version','checkStoreParams','../pwa','438695wFiAat','upload','buildType','log','16oEeGkK','./check','1914447KkGYOH','checkBuildParams','__esModule','generator','XcodeManager'];_0x2bac=function(){return _0x22c741;};return _0x2bac();}async function run(_0x4c2d1a){const _0x477fd1=_0x4ebd53;let _0x74c352={'name':_0x477fd1(0x84),'id':''};const _0x1ed586=await start(_0x4c2d1a,!![]);if(!_0x1ed586)return![];return _0x74c352[_0x477fd1(0x89)]=_0x1ed586[_0x477fd1(0x8d)][_0x477fd1(0x89)],_0x74c352['id']=_0x1ed586[_0x477fd1(0x8d)]['id'],await xcode_1['XcodeManager'][_0x477fd1(0x6e)](_0x74c352),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4a765b=_0x57c7;(function(_0x3e88dc,_0x41e57a){const _0x4f226d=_0x57c7,_0x2bf343=_0x3e88dc();while(!![]){try{const _0x3f2e88=-parseInt(_0x4f226d(0x138))/0x1*(-parseInt(_0x4f226d(0x140))/0x2)+-parseInt(_0x4f226d(0x139))/0x3+parseInt(_0x4f226d(0x13a))/0x4*(-parseInt(_0x4f226d(0x142))/0x5)+parseInt(_0x4f226d(0x12e))/0x6+-parseInt(_0x4f226d(0x13c))/0x7*(parseInt(_0x4f226d(0x12f))/0x8)+-parseInt(_0x4f226d(0x133))/0x9*(-parseInt(_0x4f226d(0x131))/0xa)+parseInt(_0x4f226d(0x141))/0xb*(parseInt(_0x4f226d(0x132))/0xc);if(_0x3f2e88===_0x41e57a)break;else _0x2bf343['push'](_0x2bf343['shift']());}catch(_0x54c7dd){_0x2bf343['push'](_0x2bf343['shift']());}}}(_0x7943,0x1befd));Object[_0x4a765b(0x13d)](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x4a765b(0x137)]=checkStoreParams;const validate_1=require('../pwa/validate');function _0x57c7(_0x37ce15,_0x45fba2){const _0x794364=_0x7943();return _0x57c7=function(_0x57c7e4,_0x3313ad){_0x57c7e4=_0x57c7e4-0x12d;let _0x2621f3=_0x794364[_0x57c7e4];return _0x2621f3;},_0x57c7(_0x37ce15,_0x45fba2);}function _0x7943(){const _0xca1fa8=['manifest','validateURL','checkStoreParams','1NXwTdM','631419pRvjEt','28RtKQhp','teamId','21BkbpIB','defineProperty','test','--teamId\x20is\x20required','130726ABXSjI','4272059CxJrcp','160790XVCgTI','pop','base','--u\x20and\x20--p\x20is\x20required','hash','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','428982qniTKR','13176SkPZnP','split','100weLaYS','12NjAaaI','26748uhCUUw','search'];_0x7943=function(){return _0xca1fa8;};return _0x7943();}function checkBuildParams(_0x4fbcef,_0x247fdb=![]){const _0x5e11bd=_0x4a765b;if(_0x4fbcef[_0x5e11bd(0x135)]&&_0x4fbcef['manifest-url'])throw new Error('--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time');if(!_0x4fbcef[_0x5e11bd(0x13b)]&&!_0x247fdb)throw new Error(_0x5e11bd(0x13f));if(_0x4fbcef[_0x5e11bd(0x144)]){if((0x0,validate_1[_0x5e11bd(0x136)])(_0x4fbcef[_0x5e11bd(0x144)]))try{const _0x1dbdc3=new URL(_0x4fbcef[_0x5e11bd(0x144)]);if(_0x1dbdc3[_0x5e11bd(0x134)]||_0x1dbdc3[_0x5e11bd(0x146)])throw new Error(_0x5e11bd(0x12d));}catch(_0x2a02c2){throw new Error(_0x5e11bd(0x12d));}else{const _0x417167=/(\?.*|\.\w+|#.*)$/,_0xdd9ecc=_0x4fbcef[_0x5e11bd(0x144)][_0x5e11bd(0x130)]('/')[_0x5e11bd(0x143)]()||'';if(_0x417167[_0x5e11bd(0x13e)](_0xdd9ecc))throw new Error(_0x5e11bd(0x12d));}}}function checkStoreParams(_0x3eea9e){const _0x524cf9=_0x4a765b;if(!(_0x3eea9e['u']&&_0x3eea9e['p']))throw new Error(_0x524cf9(0x145));if(!_0x3eea9e['version'])throw new Error('version\x20is\x20required');}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x54c3(){const _0x56a3cd=['get','71239Kmkrnh','dev','10KPSHGc','webspatial\x20[command]\x20<options>','648nkPslh','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>','../utils/Log','main','Usage:','819990bhFUnP','6657816eYmiOr','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','ConsoleLog','__esModule','info','34dopsBo','defineProperty','publish','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','133122YwQRET','join','72WhcUAq','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','456396YcUsNn','18FaqPkm','9476mLZQzM','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','140hZWelD'];_0x54c3=function(){return _0x56a3cd;};return _0x54c3();}const _0x46e832=_0x3d9e;(function(_0x26dbef,_0x5188f6){const _0xa1262f=_0x3d9e,_0x181859=_0x26dbef();while(!![]){try{const _0x2aaee0=-parseInt(_0xa1262f(0xf6))/0x1*(parseInt(_0xa1262f(0xea))/0x2)+-parseInt(_0xa1262f(0xe3))/0x3+parseInt(_0xa1262f(0xf4))/0x4*(parseInt(_0xa1262f(0xfc))/0x5)+-parseInt(_0xa1262f(0xf5))/0x6*(parseInt(_0xa1262f(0xfa))/0x7)+parseInt(_0xa1262f(0xf0))/0x8*(-parseInt(_0xa1262f(0xfe))/0x9)+parseInt(_0xa1262f(0xf8))/0xa*(-parseInt(_0xa1262f(0xee))/0xb)+parseInt(_0xa1262f(0xe4))/0xc;if(_0x2aaee0===_0x5188f6)break;else _0x181859['push'](_0x181859['shift']());}catch(_0x3590fa){_0x181859['push'](_0x181859['shift']());}}}(_0x54c3,0x24213));function _0x3d9e(_0x24d3a0,_0x29decd){const _0x54c381=_0x54c3();return _0x3d9e=function(_0x3d9ef8,_0x17fd6c){_0x3d9ef8=_0x3d9ef8-0xe0;let _0x4e0bb6=_0x54c381[_0x3d9ef8];return _0x4e0bb6;},_0x3d9e(_0x24d3a0,_0x29decd);}Object[_0x46e832(0xeb)](exports,_0x46e832(0xe8),{'value':!![]}),exports['help']=help;const Log_1=require(_0x46e832(0xe0)),HELP_MESSAGES=new Map([[_0x46e832(0xe1),[_0x46e832(0xfd),'','','help\x20................\x20shows\x20this\x20menu','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project'+_0x46e832(0xf3),_0x46e832(0xf1),_0x46e832(0xe5)][_0x46e832(0xef)]('\x0a')],['build',[_0x46e832(0xe2),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x46e832(0xef)]('\x0a')],[_0x46e832(0xfb),[_0x46e832(0xe2),'','',_0x46e832(0xe6),'','',_0x46e832(0xf2)]['join']('\x0a')],[_0x46e832(0xec),['Usage:','','',_0x46e832(0xff),'','',_0x46e832(0xed),'','',_0x46e832(0xf7)][_0x46e832(0xef)]('\x0a')]]);async function help(_0x42cf7d,_0x1a267b=new Log_1[(_0x46e832(0xe7))]('help')){const _0x223241=_0x46e832,_0xddaf2f=_0x42cf7d['_'][0x1],_0x10bed9=HELP_MESSAGES[_0x223241(0xf9)](_0xddaf2f)||HELP_MESSAGES[_0x223241(0xf9)](_0x223241(0xe1));return _0x1a267b[_0x223241(0xe9)](_0x10bed9),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x49f3f5=_0x311e;(function(_0xad72b9,_0x7f3c9b){const _0x35d3aa=_0x311e,_0x42ef64=_0xad72b9();while(!![]){try{const _0x36ce77=parseInt(_0x35d3aa(0x105))/0x1*(-parseInt(_0x35d3aa(0xfe))/0x2)+-parseInt(_0x35d3aa(0x103))/0x3*(-parseInt(_0x35d3aa(0x10c))/0x4)+parseInt(_0x35d3aa(0x10a))/0x5*(parseInt(_0x35d3aa(0x108))/0x6)+parseInt(_0x35d3aa(0x101))/0x7+parseInt(_0x35d3aa(0x102))/0x8*(-parseInt(_0x35d3aa(0x100))/0x9)+-parseInt(_0x35d3aa(0xfb))/0xa+parseInt(_0x35d3aa(0x109))/0xb*(parseInt(_0x35d3aa(0x104))/0xc);if(_0x36ce77===_0x7f3c9b)break;else _0x42ef64['push'](_0x42ef64['shift']());}catch(_0x9496d1){_0x42ef64['push'](_0x42ef64['shift']());}}}(_0x1bc0,0xaead3));function _0x1bc0(){const _0x457e9c=['9zhNPoZ','3732477WYhOUu','1819528ZRGxji','7551suwhtQ','204TcVHPG','466JZEKVp','defineProperty','readFile','12qSWjxE','4906JfRxQb','1388165tpRQIW','info','912eThszA','../utils/Log','__esModule','322130paNGgB','ConsoleLog','../../../package.json','2982WLhpZn','parse'];_0x1bc0=function(){return _0x457e9c;};return _0x1bc0();}function _0x311e(_0xbb0971,_0x4dea8e){const _0x1bc00d=_0x1bc0();return _0x311e=function(_0x311ea0,_0x9d264b){_0x311ea0=_0x311ea0-0xfb;let _0x11224f=_0x1bc00d[_0x311ea0];return _0x11224f;},_0x311e(_0xbb0971,_0x4dea8e);}Object[_0x49f3f5(0x106)](exports,_0x49f3f5(0x10e),{'value':!![]}),exports['version']=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x49f3f5(0x10d));async function version(_0x4c756e=new Log_1[(_0x49f3f5(0xfc))]('version')){const _0x4f1840=_0x49f3f5,_0x51699e=path['join'](__dirname,_0x4f1840(0xfd)),_0x27e50f=await(await fs['promises'][_0x4f1840(0x107)](_0x51699e))['toString'](),_0x5987fa=JSON[_0x4f1840(0xff)](_0x27e50f);return _0x4c756e[_0x4f1840(0x10b)](_0x5987fa['version']),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x256144=_0x4a9c;(function(_0x2f04e1,_0x289875){const _0x545d7d=_0x4a9c,_0x5333d0=_0x2f04e1();while(!![]){try{const _0x26c4c2=parseInt(_0x545d7d(0x1a5))/0x1*(parseInt(_0x545d7d(0x185))/0x2)+parseInt(_0x545d7d(0x182))/0x3+parseInt(_0x545d7d(0x194))/0x4+-parseInt(_0x545d7d(0x1a2))/0x5+parseInt(_0x545d7d(0x1a3))/0x6*(-parseInt(_0x545d7d(0x19d))/0x7)+parseInt(_0x545d7d(0x1ab))/0x8+parseInt(_0x545d7d(0x183))/0x9;if(_0x26c4c2===_0x289875)break;else _0x5333d0['push'](_0x5333d0['shift']());}catch(_0x54adbb){_0x5333d0['push'](_0x5333d0['shift']());}}}(_0x227d,0x3abff));function _0x4a9c(_0x1d47c9,_0x4a3916){const _0x227da5=_0x227d();return _0x4a9c=function(_0x4a9cf3,_0x3bad87){_0x4a9cf3=_0x4a9cf3-0x173;let _0x5afcd3=_0x227da5[_0x4a9cf3];return _0x5afcd3;},_0x4a9c(_0x1d47c9,_0x4a3916);}Object[_0x256144(0x1bd)](exports,_0x256144(0x1b5),{'value':!![]}),exports[_0x256144(0x17a)]=void 0x0,exports[_0x256144(0x1bc)]=configId,exports[_0x256144(0x190)]=configStartUrl,exports[_0x256144(0x1b8)]=configScope,exports[_0x256144(0x1af)]=configDisplay,exports[_0x256144(0x1a7)]=configMainScene,exports[_0x256144(0x186)]=configDeeplink;const utils_1=require(_0x256144(0x1a6)),validate_1=require(_0x256144(0x18a)),path_1=require(_0x256144(0x18d));function configId(_0x4e1edf,_0x495677,_0x323f25){const _0x5af533=_0x256144;if(_0x323f25)_0x4e1edf['id']=_0x5af533(0x1c0);else{if(_0x495677)_0x4e1edf['id']=_0x495677;else{const _0x1feba3=new URL(_0x4e1edf['id']);let _0x45efdb=_0x1feba3[_0x5af533(0x1b0)]['split']('.')[_0x5af533(0x1b4)]();_0x4e1edf['id']=_0x45efdb[_0x5af533(0x17b)]('.');}}}function configStartUrl(_0x2414ad,_0x541675){const _0x7fe0b2=_0x256144,_0x1132ff=(0x0,validate_1['validateURL'])(_0x2414ad['start_url']),_0x5316b3=(0x0,validate_1[_0x7fe0b2(0x1a9)])(_0x541675);let _0x119c10=_0x2414ad[_0x7fe0b2(0x199)];if(!_0x1132ff&&!_0x5316b3){const _0x42e267=(0x0,path_1[_0x7fe0b2(0x1b1)])(_0x7fe0b2(0x1ac)),_0x182885=(0x0,path_1['resolve'])(_0x42e267,_0x541675,_0x119c10),_0x5e0f32=(0x0,path_1[_0x7fe0b2(0x195)])(_0x182885),_0x116943=(0x0,path_1[_0x7fe0b2(0x17b)])(_0x42e267,_0x5e0f32);_0x119c10=(0x0,path_1[_0x7fe0b2(0x1b2)])(process[_0x7fe0b2(0x198)](),_0x116943)[_0x7fe0b2(0x178)](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}else{if(_0x1132ff&&!_0x5316b3){const _0x2afc8a=new URL(_0x119c10),_0x2f619c=_0x2afc8a['pathname']+_0x2afc8a[_0x7fe0b2(0x1a1)]+_0x2afc8a[_0x7fe0b2(0x17d)];let _0x54fb18=new URL(_0x541675,_0x2afc8a[_0x7fe0b2(0x1bb)]);_0x119c10=new URL(_0x2f619c,_0x54fb18)[_0x7fe0b2(0x17c)];}else{if(!_0x1132ff&&_0x5316b3){if(_0x119c10[_0x7fe0b2(0x184)]('/')){const _0x2651d9=new URL(_0x541675);_0x119c10=_0x2651d9['origin']+(0x0,path_1[_0x7fe0b2(0x17b)])(_0x2651d9[_0x7fe0b2(0x189)],_0x119c10);}else _0x119c10=new URL(_0x119c10,_0x541675)[_0x7fe0b2(0x17c)];}else{if(_0x1132ff&&_0x5316b3){const _0x2f62bc=new URL(_0x119c10),_0x5bcd13=new URL(_0x541675),_0x153430=_0x2f62bc['pathname']+_0x2f62bc[_0x7fe0b2(0x1a1)]+_0x2f62bc[_0x7fe0b2(0x17d)];_0x119c10=new URL(_0x153430,_0x5bcd13[_0x7fe0b2(0x1bb)]+_0x5bcd13[_0x7fe0b2(0x189)])[_0x7fe0b2(0x17c)];}}}}return _0x119c10;}function _0x227d(){const _0x4d9c80=['startsWith','22872EWWvLe','configDeeplink','minimal-ui','nntp','pathname','./validate','width','splice','path','contentMinSize','openpgp4fpr','configStartUrl','protocol','urn','ircs','937000lCgcDC','normalize','parseRouter','string','cwd','start_url','resizability','indexOf','display_override','3118514UMNYgj','magnet','protocol_handlers','height','search','193470IvTuJT','6wlRLZm','scope','7sOIqaw','../utils/utils','configMainScene','length','validateURL','wtai','1480584EawTtE','./static-web','mainScene','dynamic','configDisplay','host','resolve','relative','display','reverse','__esModule','default_size','xmpp','configScope','matrix','web+','origin','configId','defineProperty','defaultSize','webcal','com.webspatial.test','standalone','xr_main_scene','automatic','sms','ssh','replace','object','safelist','join','href','hash','sftp','irc','smsto','url','525750hzlcuw','451890iVoIBM'];_0x227d=function(){return _0x4d9c80;};return _0x227d();}function configScope(_0x11584d){const _0x4a4256=_0x256144;var _0x28f14e;let _0x5ebb18=(_0x28f14e=_0x11584d['scope'])!==null&&_0x28f14e!==void 0x0?_0x28f14e:'';const _0x4b7787=(0x0,validate_1[_0x4a4256(0x1a9)])(_0x11584d[_0x4a4256(0x199)]),_0x502878=(0x0,validate_1[_0x4a4256(0x1a9)])(_0x5ebb18);if(_0x4b7787&&_0x502878){const _0x497e8c=new URL(_0x5ebb18),_0x3fc2f5=new URL(_0x11584d['start_url']);(_0x497e8c[_0x4a4256(0x1b0)]!==_0x3fc2f5['host']||_0x11584d['start_url'][_0x4a4256(0x19b)](_0x5ebb18)!==0x0)&&(_0x5ebb18=(0x0,utils_1[_0x4a4256(0x196)])(_0x11584d[_0x4a4256(0x199)]));}else{if(_0x4b7787&&!_0x502878)_0x5ebb18=new URL(_0x5ebb18,_0x11584d['start_url'])[_0x4a4256(0x17c)];else{if(!_0x4b7787&&_0x502878){const _0x17f867=_0x11584d[_0x4a4256(0x199)][_0x4a4256(0x178)](/\/[^\/]+$/,'');_0x5ebb18=(0x0,path_1[_0x4a4256(0x195)])(_0x17f867+'/');}else _0x5ebb18=(0x0,path_1['join'])((0x0,utils_1[_0x4a4256(0x196)])(_0x11584d['start_url']),_0x5ebb18);}}_0x11584d['scope']=_0x5ebb18;}function configDisplay(_0x26039f){const _0x503b87=_0x256144;let _0x5bb3fb=_0x26039f['display'];_0x5bb3fb!==_0x503b87(0x187)&&_0x5bb3fb!==_0x503b87(0x173)&&(_0x5bb3fb=_0x503b87(0x173));if(_0x26039f['display_override']&&_0x26039f[_0x503b87(0x19c)][_0x503b87(0x1a8)]>0x0){const _0x165d8e=_0x26039f[_0x503b87(0x19c)]['indexOf'](_0x503b87(0x187)),_0xd4abb8=_0x26039f[_0x503b87(0x19c)][_0x503b87(0x19b)]('standalone');if(_0x165d8e>=0x0&&_0xd4abb8>=0x0)_0x5bb3fb=_0xd4abb8>_0x165d8e?_0x503b87(0x173):'minimal-ui';else{if(_0x165d8e>=0x0)_0x5bb3fb=_0x503b87(0x187);else _0xd4abb8>=0x0&&(_0x5bb3fb=_0x503b87(0x173));}}_0x26039f[_0x503b87(0x1b3)]=_0x5bb3fb;}function configMainScene(_0xaf133c){const _0x3e3207=_0x256144;var _0x1bff85,_0x45c9e4;const _0x4ad672=[_0x3e3207(0x175),_0x3e3207(0x18e),'contentSize'];let _0x2ded13={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0xaf133c['xr_main_scene']){if(typeof _0xaf133c[_0x3e3207(0x174)]===_0x3e3207(0x179))_0x2ded13[_0x3e3207(0x1be)][_0x3e3207(0x18b)]=Number((_0x1bff85=_0xaf133c['xr_main_scene'][_0x3e3207(0x1b6)])===null||_0x1bff85===void 0x0?void 0x0:_0x1bff85[_0x3e3207(0x18b)])>0x0?_0xaf133c[_0x3e3207(0x174)][_0x3e3207(0x1b6)][_0x3e3207(0x18b)]:0x500,_0x2ded13[_0x3e3207(0x1be)]['height']=Number((_0x45c9e4=_0xaf133c['xr_main_scene']['default_size'])===null||_0x45c9e4===void 0x0?void 0x0:_0x45c9e4[_0x3e3207(0x1a0)])>0x0?_0xaf133c[_0x3e3207(0x174)][_0x3e3207(0x1b6)][_0x3e3207(0x1a0)]:0x500,_0x2ded13[_0x3e3207(0x19a)]=_0x4ad672['includes'](_0xaf133c[_0x3e3207(0x174)][_0x3e3207(0x19a)])?_0xaf133c[_0x3e3207(0x174)][_0x3e3207(0x19a)]:_0x3e3207(0x175),_0xaf133c[_0x3e3207(0x1ad)]=_0x2ded13;else typeof _0xaf133c['xr_main_scene']===_0x3e3207(0x197)&&(_0xaf133c[_0x3e3207(0x1ad)]=_0x3e3207(0x1ae));}}function configDeeplink(_0x31ca02){const _0x1b3933=_0x256144;if(_0x31ca02[_0x1b3933(0x19f)]&&_0x31ca02['protocol_handlers'][_0x1b3933(0x1a8)]>0x0)for(var _0x1b5e7e=0x0;_0x1b5e7e<_0x31ca02[_0x1b3933(0x19f)][_0x1b3933(0x1a8)];_0x1b5e7e++){const _0x487ca3=_0x31ca02[_0x1b3933(0x19f)][_0x1b5e7e];if(_0x487ca3['protocol']&&(exports[_0x1b3933(0x17a)]['includes'](_0x487ca3[_0x1b3933(0x191)])||_0x487ca3['protocol']['indexOf'](_0x1b3933(0x1ba))===0x0)){if(!((0x0,validate_1[_0x1b3933(0x1a9)])(_0x487ca3['url'])&&_0x487ca3[_0x1b3933(0x181)][_0x1b3933(0x19b)](_0x31ca02[_0x1b3933(0x1a4)])<0x0))continue;}_0x31ca02[_0x1b3933(0x19f)][_0x1b3933(0x18c)](_0x1b5e7e,0x1),_0x1b5e7e--;}}exports[_0x256144(0x17a)]=['bitcoin','ftp','ftps','geo','im',_0x256144(0x17f),_0x256144(0x193),_0x256144(0x19e),'mailto',_0x256144(0x1b9),'mms','news',_0x256144(0x188),_0x256144(0x18f),_0x256144(0x17e),'sip',_0x256144(0x176),_0x256144(0x180),_0x256144(0x177),'tel',_0x256144(0x192),_0x256144(0x1bf),_0x256144(0x1aa),_0x256144(0x1b7)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x59d365=_0x2415;(function(_0x2947dc,_0x1c635e){const _0x4e9e4b=_0x2415,_0x3a9bbc=_0x2947dc();while(!![]){try{const _0x2d6711=parseInt(_0x4e9e4b(0x98))/0x1*(parseInt(_0x4e9e4b(0x9a))/0x2)+parseInt(_0x4e9e4b(0x75))/0x3*(-parseInt(_0x4e9e4b(0x7f))/0x4)+-parseInt(_0x4e9e4b(0x89))/0x5*(parseInt(_0x4e9e4b(0x97))/0x6)+parseInt(_0x4e9e4b(0x7a))/0x7*(-parseInt(_0x4e9e4b(0x85))/0x8)+parseInt(_0x4e9e4b(0x9c))/0x9+parseInt(_0x4e9e4b(0x94))/0xa+parseInt(_0x4e9e4b(0x76))/0xb;if(_0x2d6711===_0x1c635e)break;else _0x3a9bbc['push'](_0x3a9bbc['shift']());}catch(_0x45f004){_0x3a9bbc['push'](_0x3a9bbc['shift']());}}}(_0xc0e5,0x7cee9));function _0x2415(_0x2d3e8e,_0xd2a149){const _0xc0e52c=_0xc0e5();return _0x2415=function(_0x2415a1,_0x452daf){_0x2415a1=_0x2415a1-0x70;let _0xfc653a=_0xc0e52c[_0x2415a1];return _0xfc653a;},_0x2415(_0x2d3e8e,_0xd2a149);}Object['defineProperty'](exports,_0x59d365(0x96),{'value':!![]}),exports['PWAGenerator']=void 0x0;const path_1=require('path'),config_1=require(_0x59d365(0x7e)),load_1=require(_0x59d365(0x9b)),validate_1=require(_0x59d365(0x99)),fs=require('fs'),Cli_1=require('../Cli');class PWAGenerator{static async[_0x59d365(0x7b)](_0x2ead0c,_0x289cba=![]){const _0x2110f1=_0x59d365;let _0x80d21b=await this[_0x2110f1(0x82)](_0x2ead0c,_0x289cba);return console[_0x2110f1(0x84)](_0x2110f1(0x91)),await this[_0x2110f1(0x72)](_0x80d21b,_0x2ead0c,_0x289cba),console[_0x2110f1(0x84)](_0x2110f1(0x8c)),_0x80d21b;}static async[_0x59d365(0x82)](_0x5bf18c,_0xd493ed=![]){const _0x579711=_0x59d365;var _0x5e01b9,_0x3e9197;let _0x44e226={},_0x19bdbe='',_0x2e0ace=![],_0x2ffff4=![];if(_0x5bf18c[_0x579711(0x78)])_0x19bdbe=_0x5bf18c[_0x579711(0x78)],_0x2e0ace=!![],_0x44e226=await(0x0,load_1[_0x579711(0x8b)])(_0x5bf18c['manifest-url']);else{_0x5bf18c[_0x579711(0x70)]?_0x19bdbe=(0x0,path_1[_0x579711(0x83)])(process['cwd'](),_0x5bf18c[_0x579711(0x70)]):(_0x19bdbe=(0x0,path_1[_0x579711(0x83)])(process[_0x579711(0x8e)](),_0x579711(0x88)),!fs[_0x579711(0x90)](_0x19bdbe)&&(_0x19bdbe=(0x0,path_1[_0x579711(0x83)])(process[_0x579711(0x8e)](),_0x579711(0x7c))));if(!fs[_0x579711(0x90)](_0x19bdbe)){if(_0xd493ed)_0x2ffff4=!![],Cli_1['Cli'][_0x579711(0x84)][_0x579711(0x95)](_0x579711(0x81));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x44e226=_0x2ffff4?this['defaultManifestJson']:await(0x0,load_1['loadJsonFromDisk'])(_0x19bdbe),this['useDefaultManifestJson']=_0x2ffff4;}(0x0,validate_1['checkManifestJson'])(_0x44e226,_0xd493ed);let _0x20b0bf=(0x0,config_1[_0x579711(0x74)])(_0x44e226,(_0x5e01b9=_0x5bf18c[_0x579711(0x73)])!==null&&_0x5e01b9!==void 0x0?_0x5e01b9:'');var _0x128d7e=(0x0,validate_1[_0x579711(0x77)])(_0x20b0bf,_0x19bdbe,_0x2e0ace,_0xd493ed);_0x44e226[_0x579711(0x93)]=_0x20b0bf;if(!_0xd493ed)(0x0,validate_1[_0x579711(0x8a)])(_0x44e226,(_0x3e9197=_0x5bf18c['bundle-id'])!==null&&_0x3e9197!==void 0x0?_0x3e9197:'');return await(0x0,validate_1[_0x579711(0x7d)])(_0x44e226,_0x19bdbe,_0xd493ed),{'json':_0x44e226,'url':_0x19bdbe,'fromNet':_0x128d7e};}static['config'](_0x2774e1,_0x269d3b,_0x227f9b){const _0x1717e9=_0x59d365;var _0x1f86e3;(0x0,config_1['configId'])(_0x2774e1[_0x1717e9(0x87)],(_0x1f86e3=_0x269d3b['bundle-id'])!==null&&_0x1f86e3!==void 0x0?_0x1f86e3:'',_0x227f9b),(0x0,config_1[_0x1717e9(0x79)])(_0x2774e1['json']),(0x0,config_1['configDisplay'])(_0x2774e1[_0x1717e9(0x87)]),(0x0,config_1[_0x1717e9(0x8d)])(_0x2774e1[_0x1717e9(0x87)]),(0x0,config_1['configMainScene'])(_0x2774e1[_0x1717e9(0x87)]);}}exports[_0x59d365(0x80)]=PWAGenerator,PWAGenerator[_0x59d365(0x9d)]=['standalone',_0x59d365(0x71)],PWAGenerator[_0x59d365(0x8f)]={'name':_0x59d365(0x86),'display':_0x59d365(0x71),'start_url':'/','scope':'/'},PWAGenerator[_0x59d365(0x92)]=![];function _0xc0e5(){const _0x117ede=['6304LmbWyG','WebSpatialTest','json','public/manifest.json','5zNPowh','checkId','loadJsonFromNet','reset\x20manifest.json:\x20ok','configDeeplink','cwd','defaultManifestJson','existsSync','check\x20manifest.json:\x20ok','useDefaultManifestJson','start_url','9656040WAHTEl','warn','__esModule','4908240LOmpLa','1YabhRA','./validate','122334RRVvWR','../resource/load','2727000FLyXuB','DisplayModes','manifest','minimal-ui','config','base','configStartUrl','277854dNgjQb','11099572sXVFZO','checkStartUrl','manifest-url','configScope','8141iQzyvi','generator','public/manifest.webmanifest','checkIcons','./config','4wMvbPj','PWAGenerator','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','validate','join','log'];_0xc0e5=function(){return _0x117ede;};return _0xc0e5();}
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3fb6(){const _0x4b5be8=['11148511BbIkVO','startsWith','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','Cli','purpose','5339255peawcU','http','loadImageFromNet','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','icons','start_url','1934818mmPKgR','path','20EjJHVk','../Cli','../resource/imageHelper','test','http://','6lEwIOn','loadImageFromDisk','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','1796451xFZqYJ','7904190pRMyGU','sizes','3401328ebZRfV','split','checkId','host','forEach','maskable','ImageHelper','1517382uSeJSv','CustomError','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','https://','../utils/utils','push','getWidth','length','validateBundleId','parseRouter','1ssVlSp','indexOf','validateURL','checkIcons','warn','checkManifestJson','name','16fClGOW'];_0x3fb6=function(){return _0x4b5be8;};return _0x3fb6();}const _0x1d998a=_0x4e5f;(function(_0xde456f,_0x2e806a){const _0x1036ea=_0x4e5f,_0x2bd3c4=_0xde456f();while(!![]){try{const _0x287b30=-parseInt(_0x1036ea(0x110))/0x1*(parseInt(_0x1036ea(0x123))/0x2)+parseInt(_0x1036ea(0xfc))/0x3+parseInt(_0x1036ea(0xff))/0x4+parseInt(_0x1036ea(0x11d))/0x5*(-parseInt(_0x1036ea(0x12a))/0x6)+-parseInt(_0x1036ea(0xfd))/0x7+-parseInt(_0x1036ea(0x117))/0x8*(-parseInt(_0x1036ea(0x106))/0x9)+parseInt(_0x1036ea(0x125))/0xa*(parseInt(_0x1036ea(0x118))/0xb);if(_0x287b30===_0x2e806a)break;else _0x2bd3c4['push'](_0x2bd3c4['shift']());}catch(_0x4a6734){_0x2bd3c4['push'](_0x2bd3c4['shift']());}}}(_0x3fb6,0x9e6d5));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1d998a(0x115)]=checkManifestJson,exports['checkStartUrl']=checkStartUrl,exports[_0x1d998a(0x113)]=checkIcons,exports[_0x1d998a(0x101)]=checkId,exports[_0x1d998a(0x10e)]=validateBundleId,exports[_0x1d998a(0x112)]=validateURL;const path_1=require(_0x1d998a(0x124)),CustomError_1=require('../utils/CustomError'),utils_1=require(_0x1d998a(0x10a)),imageHelper_1=require(_0x1d998a(0x127)),load_1=require('../resource/load'),Cli_1=require(_0x1d998a(0x126));function checkManifestJson(_0x46801c,_0x2a33ed=![]){const _0xb10e98=_0x1d998a;var _0x91e1c7;const _0x1a5371=[];!_0x46801c[_0xb10e98(0x116)]&&!_0x46801c['short_name']&&!_0x2a33ed&&_0x1a5371['push']({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x91e1c7=_0x46801c['icons'])===null||_0x91e1c7===void 0x0?void 0x0:_0x91e1c7[_0xb10e98(0x10d)])&&!_0x2a33ed&&_0x1a5371['push']({'code':0xbbf,'message':_0xb10e98(0xf9),'message_staring_params':{}});!_0x46801c[_0xb10e98(0x122)]&&_0x1a5371[_0xb10e98(0x10b)]({'code':0xbc0,'message':_0xb10e98(0x108),'message_staring_params':{}});if(_0x1a5371['length'])throw new CustomError_1['CustomError'](_0x1a5371);}function _0x4e5f(_0x42c960,_0x18a51b){const _0x3fb655=_0x3fb6();return _0x4e5f=function(_0x4e5fe5,_0x1e04e7){_0x4e5fe5=_0x4e5fe5-0xf8;let _0x4480e7=_0x3fb655[_0x4e5fe5];return _0x4480e7;},_0x4e5f(_0x42c960,_0x18a51b);}function checkStartUrl(_0x1303f7,_0x3d163a,_0x3f9346,_0x11202f=![]){const _0x38170b=_0x1d998a;var _0x532e06=![];if(_0x11202f)return _0x1303f7['startsWith'](_0x38170b(0x109))||_0x1303f7['startsWith'](_0x38170b(0x129));if(_0x3f9346){if(_0x1303f7[_0x38170b(0x119)](_0x38170b(0x109))){const _0x14649a=new URL(_0x1303f7),_0x2f98c6=new URL(_0x3d163a);if(_0x14649a[_0x38170b(0x102)]!==_0x2f98c6[_0x38170b(0x102)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x38170b(0x11a),'message_staring_params':{}});}else{if(_0x1303f7[_0x38170b(0x119)](_0x38170b(0x129)))throw new CustomError_1[(_0x38170b(0x107))]({'code':0xfa0,'message':_0x38170b(0xfb),'message_staring_params':{}});}}else{if(_0x1303f7[_0x38170b(0x119)](_0x38170b(0x109))||_0x1303f7[_0x38170b(0x119)]('http://'))throw new CustomError_1[(_0x38170b(0x107))]({'code':0xfa0,'message':'Local\x20manifest\x20cannot\x20package\x20network\x20project','message_staring_params':{}});}return _0x532e06;}async function checkIcons(_0xe59948,_0x32e034,_0x307d6b=![]){const _0x1d6cd3=_0x1d998a;var _0x32e001,_0x158a97;if(!((_0x32e001=_0xe59948[_0x1d6cd3(0x121)])===null||_0x32e001===void 0x0?void 0x0:_0x32e001['length'])&&_0x307d6b){Cli_1[_0x1d6cd3(0x11b)]['log'][_0x1d6cd3(0x114)](_0x1d6cd3(0x120));return;}const _0x3096cb=(0x0,utils_1[_0x1d6cd3(0x10f)])(_0x32e034);let _0x4f1a7f,_0x496410,_0x283098,_0x54853c=0x0;for(var _0x5533a5=0x0;_0x5533a5<_0xe59948[_0x1d6cd3(0x121)][_0x1d6cd3(0x10d)];_0x5533a5++){const _0x28e5d5=_0xe59948[_0x1d6cd3(0x121)][_0x5533a5];let _0x424a8c=((_0x158a97=_0x28e5d5[_0x1d6cd3(0x11c)])===null||_0x158a97===void 0x0?void 0x0:_0x158a97[_0x1d6cd3(0x111)](_0x1d6cd3(0x104)))>=0x0;if(!_0x424a8c)continue;let _0x42dd53=![],_0x37d3c3=_0x28e5d5['src'],_0x515641,_0x2a4903=0x0;!validateURL(_0x37d3c3)&&(_0x37d3c3=(0x0,path_1['join'])(_0x3096cb,_0x37d3c3));if(_0x28e5d5[_0x1d6cd3(0xfe)]){const _0x95c9a0=_0x28e5d5[_0x1d6cd3(0xfe)][_0x1d6cd3(0x100)]('\x20');_0x95c9a0[_0x1d6cd3(0x103)](_0x140023=>{const _0x315e6d=_0x1d6cd3;let _0x1c05a3=_0x140023[_0x315e6d(0x100)]('x');Number(_0x1c05a3[0x0])>=0x400&&Number(_0x1c05a3[0x1])>=0x400&&(_0x42dd53=!![],Number(_0x1c05a3[0x0])>_0x2a4903&&(_0x2a4903=Number(_0x1c05a3[0x0])));});}else _0x515641=!_0x37d3c3[_0x1d6cd3(0x119)](_0x1d6cd3(0x11e))?await(0x0,load_1['loadImageFromDisk'])(_0x37d3c3):await(0x0,load_1[_0x1d6cd3(0x11f)])(_0x37d3c3),_0x515641[_0x1d6cd3(0x10c)]()>=0x400&&_0x515641['getHeight']()>=0x400&&(_0x42dd53=!![],_0x515641[_0x1d6cd3(0x10c)]()>_0x2a4903&&(_0x2a4903=_0x515641[_0x1d6cd3(0x10c)]()));_0x42dd53&&_0x424a8c&&(_0x2a4903>_0x54853c&&(_0x54853c=_0x2a4903,_0x4f1a7f=_0x515641,_0x496410=_0x37d3c3,_0x283098=_0x28e5d5[_0x1d6cd3(0x11c)]));}if(_0x54853c===0x0){if(_0x307d6b){Cli_1[_0x1d6cd3(0x11b)]['log'][_0x1d6cd3(0x114)]('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1d6cd3(0xfa),'message_staring_params':{}});}else _0x496410&&(_0x4f1a7f=!_0x496410['startsWith'](_0x1d6cd3(0x11e))?await(0x0,load_1[_0x1d6cd3(0xf8)])(_0x496410):await(0x0,load_1[_0x1d6cd3(0x11f)])(_0x496410));if(_0x4f1a7f&&!imageHelper_1[_0x1d6cd3(0x105)]['isFullyOpaque'](_0x4f1a7f)){if(_0x307d6b){Cli_1[_0x1d6cd3(0x11b)]['log']['warn'](_0x1d6cd3(0xfa));return;}throw new CustomError_1[(_0x1d6cd3(0x107))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','message_staring_params':{}});}_0xe59948[_0x1d6cd3(0x121)]=[{'src':_0x496410,'sizes':_0x54853c+'x'+_0x54853c,'purpose':_0x283098}];}function checkId(_0x1e0cf0,_0x25fcd4){const _0x4b1a69=_0x1d998a;if(_0x25fcd4){if(!validateBundleId(_0x25fcd4))throw new CustomError_1[(_0x4b1a69(0x107))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','message_staring_params':{}});return;}!_0x1e0cf0['id']&&(_0x1e0cf0['id']=_0x1e0cf0['start_url']);if(!validateURL(_0x1e0cf0['id'])&&!_0x25fcd4)throw new CustomError_1['CustomError']({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x3cf105){const _0x27e6dc=_0x1d998a,_0x21b39f=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x21b39f[_0x27e6dc(0x128)](_0x3cf105);}function validateURL(_0x358e20){try{return new URL(_0x358e20),!![];}catch(_0x51a5fc){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4448da=_0x2a92;function _0x2a92(_0x3d1476,_0x4c4c25){const _0x5127d9=_0x5127();return _0x2a92=function(_0x2a92c4,_0x228b3a){_0x2a92c4=_0x2a92c4-0x9f;let _0x21b116=_0x5127d9[_0x2a92c4];return _0x21b116;},_0x2a92(_0x3d1476,_0x4c4c25);}(function(_0x44175a,_0x50b9b6){const _0x3363a9=_0x2a92,_0x55f370=_0x44175a();while(!![]){try{const _0xcabeea=-parseInt(_0x3363a9(0xb7))/0x1*(-parseInt(_0x3363a9(0xb1))/0x2)+-parseInt(_0x3363a9(0xa0))/0x3+parseInt(_0x3363a9(0xb8))/0x4*(parseInt(_0x3363a9(0xb5))/0x5)+-parseInt(_0x3363a9(0xab))/0x6*(parseInt(_0x3363a9(0xb0))/0x7)+-parseInt(_0x3363a9(0xa3))/0x8*(parseInt(_0x3363a9(0xa6))/0x9)+-parseInt(_0x3363a9(0xae))/0xa*(parseInt(_0x3363a9(0xad))/0xb)+-parseInt(_0x3363a9(0xa8))/0xc*(-parseInt(_0x3363a9(0x9f))/0xd);if(_0xcabeea===_0x50b9b6)break;else _0x55f370['push'](_0x55f370['shift']());}catch(_0x52fe8e){_0x55f370['push'](_0x55f370['shift']());}}}(_0x5127,0x41461));function _0x5127(){const _0x1d3a67=['18SFvLVE','statSync','34980xOrTDh','unlinkSync','isDirectory','25464OpEbXC','__esModule','2805539boZeec','10gbDcwn','mkdirSync','413yLYMEP','264BckzTi','writeFileSync','existsSync','copyDir','25ofafeS','forEach','3506VAyPVm','82112haSlHM','2600nUQyaD','500976ucaqsM','isFile','defineProperty','834536ujXCCo','log','readdirSync'];_0x5127=function(){return _0x1d3a67;};return _0x5127();}Object[_0x4448da(0xa2)](exports,_0x4448da(0xac),{'value':!![]}),exports[_0x4448da(0xb4)]=copyDir,exports['clearDir']=clearDir;const fs=require('fs');function copyDir(_0x2d1361,_0x52553f){const _0x33f754=_0x4448da,_0x2151db=fs['readdirSync'](_0x2d1361);_0x2151db[_0x33f754(0xb6)](_0x45aa20=>{const _0x1ecc82=_0x33f754,_0x1bea76=_0x2d1361+'/'+_0x45aa20,_0x1402cf=_0x52553f+'/'+_0x45aa20,_0x17eb3a=fs[_0x1ecc82(0xa7)](_0x1bea76);if(_0x17eb3a['isFile']())try{fs[_0x1ecc82(0xb2)](_0x1402cf,fs['readFileSync'](_0x1bea76));}catch(_0x3adb0a){console['log'](_0x3adb0a);}else _0x17eb3a['isDirectory']()&&(!fs[_0x1ecc82(0xb3)](_0x1402cf)&&fs[_0x1ecc82(0xaf)](_0x1402cf,{'recursive':!![]}),copyDir(_0x1bea76,_0x1402cf));});}function clearDir(_0x3280e2){const _0x410721=_0x4448da,_0x4131f0=fs[_0x410721(0xa5)](_0x3280e2);_0x4131f0[_0x410721(0xb6)](_0x5511b2=>{const _0x4281a2=_0x410721,_0x36299f=_0x3280e2+'/'+_0x5511b2,_0x325aa2=fs[_0x4281a2(0xa7)](_0x36299f);if(_0x325aa2[_0x4281a2(0xa1)]())try{fs[_0x4281a2(0xa9)](_0x36299f);}catch(_0x5e0957){console[_0x4281a2(0xa4)](_0x5e0957);}else _0x325aa2[_0x4281a2(0xaa)]()&&clearDir(_0x36299f);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x239e(_0x4a03b0,_0x2df0a8){const _0x431df4=_0x431d();return _0x239e=function(_0x239e2b,_0x326040){_0x239e2b=_0x239e2b-0x1b5;let _0x24ef9d=_0x431df4[_0x239e2b];return _0x24ef9d;},_0x239e(_0x4a03b0,_0x2df0a8);}const _0x3c3516=_0x239e;(function(_0x31ceed,_0x22306c){const _0x4a18e4=_0x239e,_0x433363=_0x31ceed();while(!![]){try{const _0x4f6a84=-parseInt(_0x4a18e4(0x1c8))/0x1*(-parseInt(_0x4a18e4(0x1be))/0x2)+parseInt(_0x4a18e4(0x1b8))/0x3+-parseInt(_0x4a18e4(0x1b6))/0x4*(-parseInt(_0x4a18e4(0x1bb))/0x5)+-parseInt(_0x4a18e4(0x1c7))/0x6*(-parseInt(_0x4a18e4(0x1cf))/0x7)+-parseInt(_0x4a18e4(0x1d0))/0x8*(parseInt(_0x4a18e4(0x1bd))/0x9)+parseInt(_0x4a18e4(0x1cb))/0xa*(parseInt(_0x4a18e4(0x1cc))/0xb)+parseInt(_0x4a18e4(0x1c9))/0xc*(-parseInt(_0x4a18e4(0x1d1))/0xd);if(_0x4f6a84===_0x22306c)break;else _0x433363['push'](_0x433363['shift']());}catch(_0x2fcce3){_0x433363['push'](_0x433363['shift']());}}}(_0x431d,0x4a166));Object[_0x3c3516(0x1c6)](exports,_0x3c3516(0x1cd),{'value':!![]}),exports[_0x3c3516(0x1b9)]=void 0x0;function _0x431d(){const _0x3a5fda=['svg2img','1186072Svsrnu','data','629397ilGNyj','ImageHelper','render','5kfLJuB','png','1010871SpYIVT','113934DbbZDp','jimp','toBuffer','getWidth','webp2PngBuffer','asPng','bitmap','toFormat','defineProperty','2508774skUYvS','6LtmJPL','6828252JHVDfd','isFullyOpaque','839150MwsFud','22MfUnvL','__esModule','@resvg/resvg-js','7yYDWvE','40NqYiPy','13aQLxhr','createImg'];_0x431d=function(){return _0x3a5fda;};return _0x431d();}const Jimp=require(_0x3c3516(0x1bf)),sharp=require('sharp'),resvg_js_1=require(_0x3c3516(0x1ce));class ImageHelper{static[_0x3c3516(0x1d2)](_0x276f6e){return new Jimp(_0x276f6e,_0x276f6e,0x0);}static async[_0x3c3516(0x1c2)](_0x55fea3){const _0x4d7e97=_0x3c3516;return await sharp(_0x55fea3)[_0x4d7e97(0x1c5)](_0x4d7e97(0x1bc))[_0x4d7e97(0x1c0)]();}static async[_0x3c3516(0x1b5)](_0x191ca0){const _0x5b6d71=_0x3c3516,_0x7c1754={'fitTo':{'mode':'width','value':0x400}},_0x7f19c8=new resvg_js_1['Resvg'](_0x191ca0,_0x7c1754),_0x158a03=_0x7f19c8[_0x5b6d71(0x1ba)](),_0x5df1cc=_0x158a03[_0x5b6d71(0x1c3)]();return _0x5df1cc;}static[_0x3c3516(0x1ca)](_0x53dae3){const _0xa4e9b8=_0x3c3516,_0x13524d=_0x53dae3[_0xa4e9b8(0x1c1)]()*_0x53dae3['getHeight']();for(var _0x8fb4a9=0x0;_0x8fb4a9<_0x13524d;_0x8fb4a9++){const _0x1d119e=_0x8fb4a9*0x4+0x3;if(_0x53dae3[_0xa4e9b8(0x1c4)][_0xa4e9b8(0x1b7)][_0x1d119e]<0xff)return![];}return!![];}}exports[_0x3c3516(0x1b9)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2484e8=_0x4c0b;(function(_0x45c341,_0x5dc18e){const _0x176d28=_0x4c0b,_0x14eaa3=_0x45c341();while(!![]){try{const _0x5b50fa=parseInt(_0x176d28(0x10d))/0x1*(-parseInt(_0x176d28(0x127))/0x2)+parseInt(_0x176d28(0x108))/0x3*(parseInt(_0x176d28(0x114))/0x4)+parseInt(_0x176d28(0x11d))/0x5+parseInt(_0x176d28(0x116))/0x6*(-parseInt(_0x176d28(0x121))/0x7)+parseInt(_0x176d28(0x120))/0x8*(parseInt(_0x176d28(0x115))/0x9)+-parseInt(_0x176d28(0x12c))/0xa*(-parseInt(_0x176d28(0x110))/0xb)+-parseInt(_0x176d28(0x130))/0xc;if(_0x5b50fa===_0x5dc18e)break;else _0x14eaa3['push'](_0x14eaa3['shift']());}catch(_0x3d9d51){_0x14eaa3['push'](_0x14eaa3['shift']());}}}(_0x309f,0x548da));Object[_0x2484e8(0x131)](exports,_0x2484e8(0x12f),{'value':!![]}),exports[_0x2484e8(0x12a)]=exports[_0x2484e8(0x104)]=exports['BACK_APPICON_DIRECTORY']=exports['ASSET_DIRECTORY']=exports[_0x2484e8(0x10f)]=exports[_0x2484e8(0x112)]=exports[_0x2484e8(0x124)]=exports['PROJECT_DIRECTORY']=void 0x0;function _0x4c0b(_0x5cd168,_0x201dd6){const _0x309f67=_0x309f();return _0x4c0b=function(_0x4c0bc0,_0x10e23f){_0x4c0bc0=_0x4c0bc0-0x102;let _0x1efdaf=_0x309f67[_0x4c0bc0];return _0x1efdaf;},_0x4c0b(_0x5cd168,_0x201dd6);}const fs=require('fs'),path_1=require(_0x2484e8(0x103)),file_1=require('./file'),load_1=require(_0x2484e8(0x102)),child_process_1=require(_0x2484e8(0x12b));exports[_0x2484e8(0x119)]='',exports[_0x2484e8(0x124)]='',exports[_0x2484e8(0x112)]='',exports[_0x2484e8(0x10f)]='web-spatial/static-web',exports[_0x2484e8(0x118)]=_0x2484e8(0x128),exports[_0x2484e8(0x109)]=exports[_0x2484e8(0x118)]+'/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset',exports[_0x2484e8(0x104)]=exports[_0x2484e8(0x118)]+_0x2484e8(0x12d);function _0x309f(){const _0xd8a7bd=['3338960FpNsPv','src','../../../','2736KoYhME','28KpWTAa','execSync','node_modules/@webspatial/platform-','PROJECT_BUILD_DIRECTORY','join','../../../node_modules/@webspatial/platform-','1249190DVgvMV','web-spatial/Assets.xcassets','cwd','ResourceManager','child_process','30930nkqhaH','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','cd\x20','__esModule','12448548BXxQlA','defineProperty','http','./load','path','MIDDLE_APPICON_DIRECTORY','generateIcon','resize','icons','3TecpOS','BACK_APPICON_DIRECTORY','log','moveProjectFrom','not\x20support\x20platform\x20','1IgtlYh','json','WEB_PROJECT_DIRECTORY','1837ZuGmOy',',\x20now\x20WebSpatial\x20only\x20support\x20','PROJECT_EXPORT_DIRECTORY','loadImageFromNet','1001452Eauanu','16137KjSyGZ','59382UGzeWv','existsSync','ASSET_DIRECTORY','PROJECT_DIRECTORY','includes','loadImageFromDisk','./build'];_0x309f=function(){return _0xd8a7bd;};return _0x309f();}const supportPlatform=['visionos'];class ResourceManager{static async[_0x2484e8(0x10b)](_0x388af6){const _0x8a4845=_0x2484e8,_0x3a93c0=(0x0,path_1[_0x8a4845(0x125)])(process['cwd'](),_0x388af6),_0x5dd642=(0x0,path_1[_0x8a4845(0x125)])(exports['PROJECT_DIRECTORY'],exports[_0x8a4845(0x10f)]);!fs[_0x8a4845(0x117)](_0x5dd642)?fs['mkdirSync'](_0x5dd642,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x5dd642);try{(0x0,file_1['copyDir'])(_0x3a93c0,_0x5dd642);}catch(_0x42cb42){console[_0x8a4845(0x10a)](_0x42cb42);}}static async[_0x2484e8(0x105)](_0x57b413){const _0x4449c6=_0x2484e8,_0x419536=_0x57b413[_0x4449c6(0x10e)],_0x3185c7=_0x419536[_0x4449c6(0x107)][0x0][_0x4449c6(0x11e)],_0x3e2894=!_0x3185c7['startsWith'](_0x4449c6(0x132))?await(0x0,load_1[_0x4449c6(0x11b)])(_0x3185c7):await(0x0,load_1[_0x4449c6(0x113)])(_0x3185c7);return _0x3e2894[_0x4449c6(0x106)](0x400,0x400),_0x3e2894;}static['checkPlatformPath'](_0xcaff20){const _0xc4dd23=_0x2484e8,_0x3dc9a2=_0xcaff20!==null&&_0xcaff20!==void 0x0?_0xcaff20:supportPlatform[0x0];if(!supportPlatform[_0xc4dd23(0x11a)](_0x3dc9a2))throw new Error(_0xc4dd23(0x10c)+_0x3dc9a2+_0xc4dd23(0x111)+supportPlatform[_0xc4dd23(0x125)](','));let _0x36297e=(0x0,path_1['join'])(process[_0xc4dd23(0x129)](),_0xc4dd23(0x123)+_0x3dc9a2);!fs[_0xc4dd23(0x117)](_0x36297e)&&(_0x36297e=(0x0,path_1[_0xc4dd23(0x125)])(__dirname,_0xc4dd23(0x126)+_0x3dc9a2));const _0x4861c3=fs['existsSync'](_0x36297e);!_0x4861c3&&(0x0,child_process_1[_0xc4dd23(0x122)])(_0xc4dd23(0x12e)+(0x0,path_1[_0xc4dd23(0x125)])(__dirname,_0xc4dd23(0x11f))+'\x20&&\x20pnpm\x20add\x20@webspatial/platform-'+_0x3dc9a2),exports[_0xc4dd23(0x119)]=_0x36297e,exports[_0xc4dd23(0x124)]=(0x0,path_1[_0xc4dd23(0x125)])(exports[_0xc4dd23(0x119)],_0xc4dd23(0x11c)),exports[_0xc4dd23(0x112)]=(0x0,path_1[_0xc4dd23(0x125)])(exports[_0xc4dd23(0x119)],'./export');}}exports[_0x2484e8(0x12a)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3f8928=_0x115b;(function(_0x3abb83,_0x49607e){const _0x2c1a81=_0x115b,_0x28fa9f=_0x3abb83();while(!![]){try{const _0x36cfc6=parseInt(_0x2c1a81(0xf9))/0x1*(-parseInt(_0x2c1a81(0x125))/0x2)+-parseInt(_0x2c1a81(0x109))/0x3+-parseInt(_0x2c1a81(0x127))/0x4*(parseInt(_0x2c1a81(0x121))/0x5)+parseInt(_0x2c1a81(0x112))/0x6*(parseInt(_0x2c1a81(0x122))/0x7)+-parseInt(_0x2c1a81(0x102))/0x8*(-parseInt(_0x2c1a81(0xfa))/0x9)+parseInt(_0x2c1a81(0x118))/0xa+-parseInt(_0x2c1a81(0x115))/0xb;if(_0x36cfc6===_0x49607e)break;else _0x28fa9f['push'](_0x28fa9f['shift']());}catch(_0x5a3d2b){_0x28fa9f['push'](_0x28fa9f['shift']());}}}(_0x4629,0xdb595));Object[_0x3f8928(0x10e)](exports,_0x3f8928(0x113),{'value':!![]}),exports[_0x3f8928(0x128)]=loadJsonFromNet,exports['loadJsonFromDisk']=loadJsonFromDisk,exports[_0x3f8928(0x117)]=loadImageFromNet,exports[_0x3f8928(0x10b)]=loadImageFromDisk,exports[_0x3f8928(0xf8)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require(_0x3f8928(0x114)),Jimp=require(_0x3f8928(0x10a)),imageHelper_1=require(_0x3f8928(0x10c));function _0x115b(_0x110e7f,_0x2f753a){const _0x4629f6=_0x4629();return _0x115b=function(_0x115b76,_0x51e5ff){_0x115b76=_0x115b76-0xf5;let _0xb2f7fa=_0x4629f6[_0x115b76];return _0xb2f7fa;},_0x115b(_0x110e7f,_0x2f753a);}function _0x4629(){const _0x5d1300=['../utils/CustomError','1077549zSAkIO','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','loadImageFromNet','6320120XsPnJE','read','readFile','svg2img','Failed\x20to\x20download\x20Web\x20Manifest\x20','includes','fetch','trim','from','13130tRHVba','637378kMAIsX','webp2PngBuffer','text','4782SAVuSM','decompressResponseBuffer','140KkTejT','loadJsonFromNet','gzip','image/webp','startsWith','loadFileString','13WBIuZm','9xxjaGq','deflate','\x20Responded\x20with\x20Content-Type\x20\x22','arrayBuffer','The\x20response\x20status\x20is\x20','get','fetchUtils','data','641672IVucwu','toString','parse','headers','CustomError','binary','promises','2602716BmwisF','jimp','loadImageFromDisk','./imageHelper','status','defineProperty','content-encoding','content-type','ImageHelper','84tezUWu','__esModule'];_0x4629=function(){return _0x5d1300;};return _0x4629();}async function loadJsonFromNet(_0x5220e7){const _0x15b753=_0x3f8928,_0x33fefd=await FetchUtils_1_1[_0x15b753(0x100)][_0x15b753(0x11e)](_0x5220e7,{'encoding':_0x15b753(0x107)});if(_0x33fefd[_0x15b753(0x10d)]!==0xc8)throw new CustomError_1[(_0x15b753(0x106))]({'code':0xbbc,'message':_0x15b753(0x11c)+_0x5220e7+'.'+(_0x15b753(0xfe)+_0x33fefd[_0x15b753(0x10d)]+',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address'),'message_staring_params':{'web_manifest_url':_0x5220e7,'status':_0x33fefd['status']}});try{let _0x42c210;return _0x33fefd[_0x15b753(0x124)]?_0x42c210=await _0x33fefd['text']():[_0x15b753(0xf5),_0x15b753(0xfb),'br'][_0x15b753(0x11d)](_0x33fefd[_0x15b753(0x105)]['content-encoding'])?_0x42c210=FetchUtils_1_1[_0x15b753(0x100)][_0x15b753(0x126)](Buffer['from'](_0x33fefd[_0x15b753(0x101)],_0x15b753(0x107)),_0x33fefd[_0x15b753(0x105)]['content-encoding'])['toString']():_0x42c210=Buffer['from'](_0x33fefd[_0x15b753(0x101)],_0x15b753(0x107))[_0x15b753(0x103)](),JSON[_0x15b753(0x104)](_0x42c210[_0x15b753(0x11f)]());}catch(_0x3e12a5){throw new CustomError_1[(_0x15b753(0x106))]({'code':0xbbd,'message':'Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','message_staring_params':{}});}}async function loadJsonFromDisk(_0x3bd4bf){const _0x2bd009=_0x3f8928,_0x430888=await loadFileString(_0x3bd4bf[_0x2bd009(0x103)]());return JSON[_0x2bd009(0x104)](_0x430888);}async function loadImageFromNet(_0x1cf750){const _0xc52f6b=_0x3f8928,_0x178d9d=await FetchUtils_1_1['fetchUtils'][_0xc52f6b(0x11e)](_0x1cf750,{'encoding':_0xc52f6b(0x107)});if(_0x178d9d['status']!==0xc8)throw new CustomError_1[(_0xc52f6b(0x106))]({'code':0x7d2,'message':_0xc52f6b(0x116)+_0x178d9d[_0xc52f6b(0x10d)],'message_staring_params':{'icon_url':_0x1cf750,'status':_0x178d9d[_0xc52f6b(0x10d)]}});const _0x396da3=_0x178d9d['headers'][_0xc52f6b(0xff)]?_0x178d9d[_0xc52f6b(0x105)][_0xc52f6b(0xff)]('content-type'):_0x178d9d[_0xc52f6b(0x105)][_0xc52f6b(0x110)];if(!(_0x396da3===null||_0x396da3===void 0x0?void 0x0:_0x396da3[_0xc52f6b(0xf7)]('image/')))throw new CustomError_1[(_0xc52f6b(0x106))]({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+(_0xc52f6b(0xfc)+_0x396da3+'\x22'),'message_staring_params':{'icon_url':_0x1cf750,'contentType':_0x396da3}});let _0x3f94b9;_0x178d9d[_0xc52f6b(0xfd)]?_0x3f94b9=await _0x178d9d[_0xc52f6b(0xfd)]():[_0xc52f6b(0xf5),_0xc52f6b(0xfb),'br'][_0xc52f6b(0x11d)](_0x178d9d[_0xc52f6b(0x105)][_0xc52f6b(0x10f)])?_0x3f94b9=FetchUtils_1_1[_0xc52f6b(0x100)][_0xc52f6b(0x126)](Buffer['from'](_0x178d9d['data'],_0xc52f6b(0x107)),_0x178d9d[_0xc52f6b(0x105)][_0xc52f6b(0x10f)]):_0x3f94b9=Buffer[_0xc52f6b(0x120)](_0x178d9d[_0xc52f6b(0x101)],_0xc52f6b(0x107));if(_0x396da3[_0xc52f6b(0xf7)]('image/svg')){const _0x4367bd=new TextDecoder();try{_0x3f94b9=await imageHelper_1[_0xc52f6b(0x111)][_0xc52f6b(0x11b)](_0x4367bd['decode'](_0x3f94b9));}catch(_0x1bece4){throw new CustomError_1['CustomError']({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x1cf750+':\x20'+_0x1bece4,'message_staring_params':{'icon_url':_0x1cf750,'error':_0x1bece4}});}}return _0x396da3[_0xc52f6b(0xf7)](_0xc52f6b(0xf6))&&(_0x3f94b9=await imageHelper_1['ImageHelper'][_0xc52f6b(0x123)](_0x3f94b9)),await Jimp[_0xc52f6b(0x119)](Buffer[_0xc52f6b(0x120)](_0x3f94b9));}async function loadImageFromDisk(_0x34902f){const _0x1330e7=_0x3f8928;return await Jimp[_0x1330e7(0x119)](_0x34902f);}async function loadFileString(_0x590ead){const _0x1608fd=_0x3f8928;let _0x337e7f=await fs[_0x1608fd(0x108)][_0x1608fd(0x11a)](_0x590ead[_0x1608fd(0x103)]());return _0x337e7f[_0x1608fd(0x103)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x43ac(_0x59c9de,_0x482987){var _0x2e1f5b=_0x2e1f();return _0x43ac=function(_0x43acd1,_0x452c66){_0x43acd1=_0x43acd1-0x79;var _0x180665=_0x2e1f5b[_0x43acd1];return _0x180665;},_0x43ac(_0x59c9de,_0x482987);}var _0x333e70=_0x43ac;(function(_0x1e609a,_0x470a14){var _0x10fdb4=_0x43ac,_0x1a6674=_0x1e609a();while(!![]){try{var _0x164d87=parseInt(_0x10fdb4(0x85))/0x1+parseInt(_0x10fdb4(0x7b))/0x2+parseInt(_0x10fdb4(0x82))/0x3+parseInt(_0x10fdb4(0x7d))/0x4*(parseInt(_0x10fdb4(0x7c))/0x5)+parseInt(_0x10fdb4(0x83))/0x6+parseInt(_0x10fdb4(0x88))/0x7*(-parseInt(_0x10fdb4(0x79))/0x8)+parseInt(_0x10fdb4(0x7f))/0x9*(-parseInt(_0x10fdb4(0x89))/0xa);if(_0x164d87===_0x470a14)break;else _0x1a6674['push'](_0x1a6674['shift']());}catch(_0xdce3d5){_0x1a6674['push'](_0x1a6674['shift']());}}}(_0x2e1f,0x7671b));Object[_0x333e70(0x80)](exports,_0x333e70(0x84),{'value':!![]}),exports[_0x333e70(0x7a)]=void 0x0;class CustomError extends Error{constructor(_0x415d48,_0x5c4e35){var _0x3c73d3=_0x333e70;super(JSON[_0x3c73d3(0x81)](_0x415d48)),this[_0x3c73d3(0x87)]=_0x415d48,this[_0x3c73d3(0x7e)]=_0x5c4e35||_0x3c73d3(0x86);}}function _0x2e1f(){var _0x1c319f=['1922636jKwCIv','5TlNUaR','3318576ynTqrY','type','1035WNMTdW','defineProperty','stringify','45285TMRAca','1061796OxrPVh','__esModule','810094trLZks','info','customMessage','413ilNDeq','200180Vbesjt','800WFeSzh','CustomError'];_0x2e1f=function(){return _0x1c319f;};return _0x2e1f();}exports[_0x333e70(0x7a)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xa73292=_0x47cd;function _0x1c96(){const _0x4c071d=['setDecompressResponseBuffer','765153FAbWVQ','setDownloadFile','196758NOpeFd','fetchUtils','2660365aBgMUU','3437637tfQpLr','2607348HXNCRv','fetch','15wdWjIw','decompressResponseBuffer','defineProperty','5399896DgIsJD','778458lxCRCC','downloadFile','setFetchEngine'];_0x1c96=function(){return _0x4c071d;};return _0x1c96();}(function(_0x3bcd93,_0x46db19){const _0x4f10f2=_0x47cd,_0x5a4035=_0x3bcd93();while(!![]){try{const _0x1a88c4=parseInt(_0x4f10f2(0x122))/0x1+parseInt(_0x4f10f2(0x124))/0x2*(parseInt(_0x4f10f2(0x11a))/0x3)+-parseInt(_0x4f10f2(0x118))/0x4+-parseInt(_0x4f10f2(0x116))/0x5+parseInt(_0x4f10f2(0x11e))/0x6+-parseInt(_0x4f10f2(0x117))/0x7+parseInt(_0x4f10f2(0x11d))/0x8;if(_0x1a88c4===_0x46db19)break;else _0x5a4035['push'](_0x5a4035['shift']());}catch(_0x49f0ec){_0x5a4035['push'](_0x5a4035['shift']());}}}(_0x1c96,0x5e6d9));Object[_0xa73292(0x11c)](exports,'__esModule',{'value':!![]}),exports[_0xa73292(0x115)]=void 0x0;function _0x47cd(_0x378fea,_0x51a42d){const _0x1c9657=_0x1c96();return _0x47cd=function(_0x47cdbe,_0x36b70a){_0x47cdbe=_0x47cdbe-0x115;let _0x1b1e2b=_0x1c9657[_0x47cdbe];return _0x1b1e2b;},_0x47cd(_0x378fea,_0x51a42d);}class FetchUtils{constructor(){const _0x151526=_0xa73292;this['fetchEngine']=null,this[_0x151526(0x119)]=null,this[_0x151526(0x11f)]=null,this[_0x151526(0x11b)]=null;}[_0xa73292(0x120)](_0x14d9e1){this['fetchEngine']=_0x14d9e1;}['setFetch'](_0x5c8f47){this['fetch']=_0x5c8f47;}[_0xa73292(0x123)](_0x5881a5){const _0x1e8221=_0xa73292;this[_0x1e8221(0x11f)]=_0x5881a5;}[_0xa73292(0x121)](_0x3035d1){const _0x2c5c29=_0xa73292;this[_0x2c5c29(0x11b)]=_0x3035d1;}}const fetchUtils=new FetchUtils();exports['fetchUtils']=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xecb1(_0x440be8,_0x38c267){var _0x491dd5=_0x491d();return _0xecb1=function(_0xecb148,_0x5d710f){_0xecb148=_0xecb148-0x13e;var _0x4f76c5=_0x491dd5[_0xecb148];return _0x4f76c5;},_0xecb1(_0x440be8,_0x38c267);}var _0x2c5e06=_0xecb1;(function(_0x2f83f7,_0xe9c578){var _0x565a94=_0xecb1,_0x4400ce=_0x2f83f7();while(!![]){try{var _0x25eece=-parseInt(_0x565a94(0x143))/0x1+-parseInt(_0x565a94(0x14f))/0x2+parseInt(_0x565a94(0x141))/0x3*(-parseInt(_0x565a94(0x13f))/0x4)+parseInt(_0x565a94(0x140))/0x5*(parseInt(_0x565a94(0x152))/0x6)+-parseInt(_0x565a94(0x155))/0x7*(parseInt(_0x565a94(0x144))/0x8)+-parseInt(_0x565a94(0x14b))/0x9*(parseInt(_0x565a94(0x148))/0xa)+-parseInt(_0x565a94(0x13e))/0xb*(-parseInt(_0x565a94(0x147))/0xc);if(_0x25eece===_0xe9c578)break;else _0x4400ce['push'](_0x4400ce['shift']());}catch(_0x45c36c){_0x4400ce['push'](_0x4400ce['shift']());}}}(_0x491d,0x56d2c));Object[_0x2c5e06(0x158)](exports,_0x2c5e06(0x154),{'value':!![]}),exports[_0x2c5e06(0x15e)]=void 0x0;function _0x491d(){var _0x42d947=['497869ZhYHKV','952PszVxk','prefix','error','12756gbbzCM','411940NiWelq','inverse','\x1b[31m','72LtDOje','verbose','\x1b[36m','red','489538ORRXyJ','dim','\x1b[7m','2586sSagxa','\x1b[0m','__esModule','11277kGHrmW','warn','tag','defineProperty','\x1b[33m','output','WARNING\x20','debug','ERROR\x20','ConsoleLog','17699psnWtb','8132PdfcIi','3215WYCwkB','543osncTB','log'];_0x491d=function(){return _0x42d947;};return _0x491d();}class ConsoleLog{constructor(_0x56c8dc='',_0x3de770=![],_0x10eb86=console){var _0x54bda9=_0x2c5e06;this[_0x54bda9(0x157)]=_0x56c8dc,this[_0x54bda9(0x14c)]=_0x3de770,this[_0x54bda9(0x145)]=this['inverse'](_0x56c8dc),this['output']=_0x10eb86;}[_0x2c5e06(0x15c)](_0x297bd5,..._0xff6ed0){var _0x15f265=_0x2c5e06;if(!this['verbose'])return;this[_0x15f265(0x142)](this['output']['log'],this[_0x15f265(0x150)](_0x297bd5),..._0xff6ed0);}['info'](_0xf4c132,..._0x481b5c){var _0x7c07ad=_0x2c5e06;this[_0x7c07ad(0x142)](this[_0x7c07ad(0x15a)][_0x7c07ad(0x142)],_0xf4c132,..._0x481b5c);}[_0x2c5e06(0x156)](_0x1b0f6f,..._0xa8ea7d){var _0x4a43ec=_0x2c5e06;this[_0x4a43ec(0x142)](this[_0x4a43ec(0x15a)][_0x4a43ec(0x156)],this['yellow'](_0x4a43ec(0x15b)+_0x1b0f6f),..._0xa8ea7d);}[_0x2c5e06(0x146)](_0x526419,..._0x15c41b){var _0x4f541b=_0x2c5e06;this[_0x4f541b(0x15a)][_0x4f541b(0x146)]('\x0a'),this[_0x4f541b(0x142)](this[_0x4f541b(0x15a)][_0x4f541b(0x146)],this[_0x4f541b(0x14e)](_0x4f541b(0x15d)+_0x526419),..._0x15c41b),this[_0x4f541b(0x15a)][_0x4f541b(0x146)]('\x0a');}['setVerbose'](_0x41c2c6){this['verbose']=_0x41c2c6;}['newLog'](_0x45a06a){var _0x55d999=_0x2c5e06;return this['tag']&&(_0x45a06a=this[_0x55d999(0x157)]+'\x20'+_0x45a06a),new ConsoleLog(_0x45a06a,this[_0x55d999(0x14c)],this[_0x55d999(0x15a)]);}[_0x2c5e06(0x142)](_0x51dfe5,_0x201d2e,..._0x291ef8){var _0x3614ff=_0x2c5e06;this[_0x3614ff(0x145)]&&(_0x201d2e=this[_0x3614ff(0x145)]+'\x20'+_0x201d2e),_0x291ef8?_0x51dfe5(...[_0x201d2e]['concat'](_0x291ef8)):_0x51dfe5(_0x201d2e);}[_0x2c5e06(0x149)](_0x208e37){var _0x168b85=_0x2c5e06;return _0x168b85(0x151)+_0x208e37+_0x168b85(0x153);}[_0x2c5e06(0x150)](_0x4de8af){var _0x536038=_0x2c5e06;return _0x536038(0x14d)+_0x4de8af+_0x536038(0x153);}['yellow'](_0x4e3e3b){var _0x4b89d9=_0x2c5e06;return _0x4b89d9(0x159)+_0x4e3e3b+'\x1b[0m';}[_0x2c5e06(0x14e)](_0x11fc7c){var _0x59d770=_0x2c5e06;return _0x59d770(0x14a)+_0x11fc7c+'\x1b[0m';}}exports['ConsoleLog']=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5dbd(_0x3d21dd,_0x3a1e98){const _0x3204e9=_0x3204();return _0x5dbd=function(_0x5dbdc7,_0x272abc){_0x5dbdc7=_0x5dbdc7-0x147;let _0x2c442a=_0x3204e9[_0x5dbdc7];return _0x2c442a;},_0x5dbd(_0x3d21dd,_0x3a1e98);}const _0x35c87b=_0x5dbd;(function(_0x307be4,_0x11bfde){const _0x48b2c6=_0x5dbd,_0x470348=_0x307be4();while(!![]){try{const _0x2f9e17=parseInt(_0x48b2c6(0x15e))/0x1+parseInt(_0x48b2c6(0x150))/0x2+-parseInt(_0x48b2c6(0x154))/0x3+parseInt(_0x48b2c6(0x14b))/0x4*(-parseInt(_0x48b2c6(0x14a))/0x5)+-parseInt(_0x48b2c6(0x14e))/0x6+-parseInt(_0x48b2c6(0x161))/0x7*(parseInt(_0x48b2c6(0x162))/0x8)+parseInt(_0x48b2c6(0x157))/0x9;if(_0x2f9e17===_0x11bfde)break;else _0x470348['push'](_0x470348['shift']());}catch(_0x51561d){_0x470348['push'](_0x470348['shift']());}}}(_0x3204,0x6997d));Object[_0x35c87b(0x15c)](exports,'__esModule',{'value':!![]}),exports[_0x35c87b(0x14c)]=fetch,exports['downloadFile']=downloadFile,exports[_0x35c87b(0x155)]=decompressResponseBuffer;function _0x3204(){const _0x2c5423=['Z_SYNC_FLUSH','zlib','1163949RsuWsi','decompressResponseBuffer','length','7191927TGXQIE','createWriteStream','follow','readable','data','defineProperty','headers','853419GLkIUi','constants','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','7TsXKnr','4400584wXYIYz','fetch-h2','unzipSync','pipe','340885BpAerf','20hLIYZI','fetch','brotliDecompressSync','1668120AkBXvC','test','673896UXKnqN','get'];_0x3204=function(){return _0x2c5423;};return _0x3204();}const fetch_h2_1=require(_0x35c87b(0x147)),fs=require('fs'),zlib=require(_0x35c87b(0x153)),userAgent=_0x35c87b(0x160),fetchh2Ctx=(0x0,fetch_h2_1['context'])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x35c87b(0x14c)];async function fetch(_0x1f407d,_0x282c32){const _0x4628e6=_0x35c87b;return await fetchh2(_0x1f407d,_0x282c32?{'redirect':_0x4628e6(0x159),..._0x282c32}:{'redirect':_0x4628e6(0x159)});}async function downloadFile(_0x205378,_0x4306a3,_0xae3168){const _0x26b28d=_0x35c87b;let _0x5d8bf6,_0x5082ef;_0x5d8bf6=await fetchh2(_0x205378,{'redirect':_0x26b28d(0x159)}),_0x5082ef=await _0x5d8bf6[_0x26b28d(0x15a)]();const _0x27d46b=_0x5d8bf6[_0x26b28d(0x15d)][_0x26b28d(0x151)]('Content-Length'),_0x2d847b=_0x27d46b?parseInt(_0x27d46b):-0x1,_0x4e3d2a=fs[_0x26b28d(0x158)](_0x4306a3);let _0x521d27=0x0;await new Promise((_0x335e8f,_0x290f25)=>{const _0x115f5d=_0x26b28d;_0x5082ef[_0x115f5d(0x149)](_0x4e3d2a),_0xae3168&&_0x5082ef['on'](_0x115f5d(0x15b),_0x3d7211=>{const _0x5705bf=_0x115f5d;_0x521d27=_0x521d27+_0x3d7211[_0x5705bf(0x156)],_0xae3168(_0x521d27,_0x2d847b);}),_0x5082ef['on']('error',_0x70c772=>{_0x290f25(_0x70c772);}),_0x4e3d2a['on']('finish',()=>{_0x335e8f();});});}function decompressResponseBuffer(_0x30753c,_0x4d5761){const _0x4f6e6a=_0x35c87b;let _0x4a7408=_0x30753c;if(/\bgzip\b/[_0x4f6e6a(0x14f)](_0x4d5761)||/\bdeflate\b/[_0x4f6e6a(0x14f)](_0x4d5761))_0x4a7408=zlib[_0x4f6e6a(0x148)](_0x30753c,{'flush':zlib['constants'][_0x4f6e6a(0x152)],'finishFlush':zlib[_0x4f6e6a(0x15f)][_0x4f6e6a(0x152)]});else/\bbr\b/[_0x4f6e6a(0x14f)](_0x4d5761)&&(_0x4a7408=zlib[_0x4f6e6a(0x14d)](_0x30753c));return _0x4a7408;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3d1151=_0x4782;function _0x3cdd(){const _0x24c59e=['Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','1154988oiLPkq','Generating\x20Android\x20Project.','yellow','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Do\x20you\x20want\x20to\x20create\x20one\x20now?','messages','WARNING:\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)','Minimum\x20length\x20is\x20','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)','Downloading\x20the\x20JDK\x2011\x20Binaries...','Decompressing\x20the\x20Android\x20SDK...','Missing\x20required\x20parameter\x20','cyan','Icon\x20URL:','Downloading\x20the\x20JDK\x2011\x20Sources...','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','--manifest-url','(5/5)','18XYOooX','--url','176356ovqWDi','\x22.\x0a','\x20but\x20input\x20is\x20','colors','URL\x20','Downloading\x20Android\x20SDK\x20to\x20','Password\x20for\x20the\x20Key:','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','2144690fyJeDb','1060300BGTJuA','\x20URL\x20','bold','\x0aSigning\x20key\x20information\x20','\x20can\x20not\x20be\x20accessible.','redirected\x20to\x20','Path\x20to\x20your\x20existing\x20JDK\x2011:','\x20or\x20','Invalid\x20URL:\x20','Downloading\x20JDK\x2011\x20to\x20','326904VlukvK','Decompressing\x20the\x20JDK\x2011\x20Binaries...','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Organization\x20(eg:\x20Company\x20Name):','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','99ragArj','\x20Check\x20out\x20the\x20Play\x20for','2806FowGzq','\x0aSigning\x20key\x20creation','https://developer.android.com/studio/terms.html','Invalid\x20integer\x20provided:\x20','\x0aBuilding\x20the\x20Android\x20App...','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','\x0aProject\x20generated\x20successfully.','7Gxgzpn','Maximum\x20length\x20is\x20','__esModule','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','9508168Fmvvwn','162WcJbfd','underline'];_0x3cdd=function(){return _0x24c59e;};return _0x3cdd();}(function(_0x327739,_0x56d0bf){const _0xa519c1=_0x4782,_0x5df59c=_0x327739();while(!![]){try{const _0x1a867b=-parseInt(_0xa519c1(0xa3))/0x1*(-parseInt(_0xa519c1(0xd7))/0x2)+-parseInt(_0xa519c1(0xba))/0x3*(-parseInt(_0xa519c1(0xbc))/0x4)+parseInt(_0xa519c1(0xc5))/0x5+parseInt(_0xa519c1(0xd0))/0x6*(-parseInt(_0xa519c1(0xde))/0x7)+-parseInt(_0xa519c1(0xa2))/0x8+parseInt(_0xa519c1(0xa6))/0x9+-parseInt(_0xa519c1(0xc6))/0xa*(-parseInt(_0xa519c1(0xd5))/0xb);if(_0x1a867b===_0x56d0bf)break;else _0x5df59c['push'](_0x5df59c['shift']());}catch(_0x2d397c){_0x5df59c['push'](_0x5df59c['shift']());}}}(_0x3cdd,0xb9a23));function _0x4782(_0x542b84,_0x5cfd94){const _0x3cdd9b=_0x3cdd();return _0x4782=function(_0x47824d,_0x1ebfab){_0x47824d=_0x47824d-0xa1;let _0x1a3556=_0x3cdd9b[_0x47824d];return _0x1a3556;},_0x4782(_0x542b84,_0x5cfd94);}Object['defineProperty'](exports,_0x3d1151(0xe0),{'value':!![]}),exports[_0x3d1151(0xab)]=void 0x0;const colors_1=require(_0x3d1151(0xbf));exports[_0x3d1151(0xab)]={'promptInstallJdk':_0x3d1151(0xaf),'promptJdkPath':_0x3d1151(0xcc),'messageDownloadJdk':_0x3d1151(0xcf),'messageDownloadJdkSrc':_0x3d1151(0xb5),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x3d1151(0xb0),'messageDecompressJdkBin':_0x3d1151(0xd1),'promptInstallSdk':_0x3d1151(0xad),'promptSdkPath':'Path\x20to\x20your\x20existing\x20Android\x20SDK:','messageDownloadSdk':_0x3d1151(0xc1),'errorSdkTerms':_0x3d1151(0xa9),'promptSdkTerms':_0x3d1151(0xb7)+(0x0,colors_1['underline'])(_0x3d1151(0xd9))+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x3d1151(0xb1),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+'license\x20agreement.','messageGeneratingAndroidProject':_0x3d1151(0xa7),'messageCheckSuccess':(_0x499feb,_0x25324b)=>{const _0x40e6e6=_0x3d1151;return _0x40e6e6(0xc7)+(0x0,colors_1['cyan'])(_0x499feb)+'\x20'+(_0x25324b?_0x40e6e6(0xcb)+(0x0,colors_1[_0x40e6e6(0xb3)])(_0x25324b):'')+_0x40e6e6(0xb6);},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x3d1151(0xb3)])(_0x3d1151(0xb8))+_0x3d1151(0xcd)+(0x0,colors_1[_0x3d1151(0xb3)])('--manifest')),'messageInitializingWebManifest':_0x20ec49=>{const _0x5cca85=_0x3d1151;return _0x5cca85(0xa5)+(0x0,colors_1[_0x5cca85(0xb3)])(_0x20ec49);},'messageInitializingLocalManifest':_0x5bb822=>{const _0x243bd8=_0x3d1151;return _0x243bd8(0xdc)+(0x0,colors_1['cyan'])(_0x5bb822);},'messageInvalidIcon':_0x575062=>{const _0x286a9c=_0x3d1151;return'Invalid\x20icon\x20path:\x20'+(0x0,colors_1[_0x286a9c(0xb3)])(_0x575062);},'errorStartUrlNotReachable':_0x5e2054=>_0x3d1151(0xc0)+_0x5e2054+_0x3d1151(0xca)+_0x3d1151(0xe2),'warnFamilyPolicy':(0x0,colors_1[_0x3d1151(0xc8)])((0x0,colors_1[_0x3d1151(0xa8)])(_0x3d1151(0xac)))+_0x3d1151(0xa1)+_0x3d1151(0xc3)+_0x3d1151(0xd6)+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x3d1151(0xb3)])('https://play.google.com/console/about/families/'),'promptIconUrl':_0x3d1151(0xb4),'errorInvalidUrl':_0x5e09f3=>{const _0x197080=_0x3d1151;return _0x197080(0xce)+_0x5e09f3;},'errorUrlMustBeImage':_0xab38ba=>{return'URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20'+_0xab38ba+'.';},'promptVersionCode':_0x3d1151(0xd2),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x3d1151(0xa4)])(_0x3d1151(0xc9)+(0x0,colors_1['green'])(_0x3d1151(0xb9))),'messageProjectGeneratedSuccess':_0x3d1151(0xdd),'messageSigningKeyCreation':(0x0,colors_1['underline'])(_0x3d1151(0xd8)),'messageSigningKeyNotFound':_0x3edec0=>{const _0x5344b7=_0x3d1151;return _0x5344b7(0xe1)+_0x3edec0+_0x5344b7(0xbd);},'promptCreateKey':_0x3d1151(0xaa),'promptKeyFullName':_0x3d1151(0xd4),'promptKeyOrganizationalUnit':_0x3d1151(0xc4),'promptKeyOrganization':_0x3d1151(0xd3),'promptKeyCountry':'Country\x20(2\x20letter\x20code):','promptKeystorePassword':'Password\x20for\x20the\x20Key\x20Store:','promptKeyPassword':_0x3d1151(0xc2),'messageBuildingApp':_0x3d1151(0xdb),'messageEnterPasswords':(_0x1d7008,_0x3bc283)=>{const _0x39f055=_0x3d1151;return'Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20'+(0x0,colors_1[_0x39f055(0xb3)])(_0x1d7008)+'\x20and\x20alias\x20'+(0x0,colors_1[_0x39f055(0xb3)])(_0x3bc283)+'.\x0a';},'errorMinLength':(_0x5630ab,_0x27e782)=>{const _0xb0e6c1=_0x3d1151;return _0xb0e6c1(0xae)+_0x5630ab+_0xb0e6c1(0xbe)+_0x27e782+'.';},'errorMaxLength':(_0x298d59,_0xb9180e)=>{const _0x327b86=_0x3d1151;return _0x327b86(0xdf)+_0x298d59+_0x327b86(0xbe)+_0xb9180e+'.';},'errorInvalidInteger':_0x4ece69=>{const _0x4acb43=_0x3d1151;return _0x4acb43(0xda)+_0x4ece69;},'messageApkSuccess':_0x464579=>{return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1['cyan'])(_0x464579);},'missingUrlToCheck':_0x3d1151(0xb2)+(''+(0x0,colors_1[_0x3d1151(0xb3)])(_0x3d1151(0xbb)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c366b=_0x149d;function _0x149d(_0x498a33,_0x41bc43){const _0x511132=_0x5111();return _0x149d=function(_0x149d18,_0x49b1cc){_0x149d18=_0x149d18-0x137;let _0x47aa28=_0x511132[_0x149d18];return _0x47aa28;},_0x149d(_0x498a33,_0x41bc43);}(function(_0x6168a0,_0x18b080){const _0x1abd2f=_0x149d,_0x3842a9=_0x6168a0();while(!![]){try{const _0x4b4706=-parseInt(_0x1abd2f(0x13e))/0x1*(-parseInt(_0x1abd2f(0x138))/0x2)+-parseInt(_0x1abd2f(0x13f))/0x3*(-parseInt(_0x1abd2f(0x13c))/0x4)+parseInt(_0x1abd2f(0x141))/0x5+parseInt(_0x1abd2f(0x13b))/0x6*(parseInt(_0x1abd2f(0x137))/0x7)+-parseInt(_0x1abd2f(0x139))/0x8+-parseInt(_0x1abd2f(0x144))/0x9+-parseInt(_0x1abd2f(0x13d))/0xa*(parseInt(_0x1abd2f(0x143))/0xb);if(_0x4b4706===_0x18b080)break;else _0x3842a9['push'](_0x3842a9['shift']());}catch(_0x3e2bda){_0x3842a9['push'](_0x3842a9['shift']());}}}(_0x5111,0x78a67));function _0x5111(){const _0x7df48a=['parseRouter','4777365gVUMBb','join','55DMmSrM','2288538BEvfUC','indexOf','19201LhStUa','212276FlZkbk','1668136ASeToj','pop','1662HjTFit','4hQhFZT','2002060IwMNwk','2NIOCyP','91356sKxZuK'];_0x5111=function(){return _0x7df48a;};return _0x5111();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x3c366b(0x140)]=parseRouter;function parseRouter(_0x4b86a5){const _0x1d2529=_0x3c366b;let _0x46b8c5=_0x4b86a5['split']('/');_0x46b8c5[_0x1d2529(0x13a)]();let _0x40c4d4=_0x46b8c5[_0x1d2529(0x142)]();while(_0x40c4d4[_0x1d2529(0x145)](',')>=0x0){_0x40c4d4=_0x40c4d4['replace'](',','/');}return _0x40c4d4;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5da68e=_0x23c7;(function(_0x2749ff,_0x43b4bf){const _0x31eee7=_0x23c7,_0x42c7bd=_0x2749ff();while(!![]){try{const _0x350f5c=parseInt(_0x31eee7(0x1f8))/0x1+-parseInt(_0x31eee7(0x205))/0x2*(parseInt(_0x31eee7(0x201))/0x3)+parseInt(_0x31eee7(0x1f4))/0x4+parseInt(_0x31eee7(0x209))/0x5+parseInt(_0x31eee7(0x1ee))/0x6+-parseInt(_0x31eee7(0x202))/0x7*(-parseInt(_0x31eee7(0x1fc))/0x8)+-parseInt(_0x31eee7(0x206))/0x9;if(_0x350f5c===_0x43b4bf)break;else _0x42c7bd['push'](_0x42c7bd['shift']());}catch(_0x4ea1c6){_0x42c7bd['push'](_0x42c7bd['shift']());}}}(_0x1d8b,0xc13d6));Object[_0x5da68e(0x208)](exports,_0x5da68e(0x1f7),{'value':!![]}),exports[_0x5da68e(0x1f5)]=void 0x0;const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require('./xcodeproject'),xcodebuild_1=require(_0x5da68e(0x1fa)),xcrun_1=require(_0x5da68e(0x1fb)),path_1=require(_0x5da68e(0x204));class XcodeManager{static async['parseProject'](_0x24eed3,_0x928d65=![]){const _0x4b535a=_0x5da68e,_0x3147d7=resource_1[_0x4b535a(0x1f0)]+'/web-spatial.xcodeproj/project.pbxproj';await xcodeproject_1[_0x4b535a(0x1fd)]['modify'](_0x3147d7,_0x24eed3,_0x928d65),console[_0x4b535a(0x207)](_0x4b535a(0x1ff));!fs[_0x4b535a(0x203)](resource_1[_0x4b535a(0x1f6)])&&fs[_0x4b535a(0x1f3)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x928d65)await xcodebuild_1[_0x4b535a(0x1fd)]['archive'](_0x24eed3['export']);}static async[_0x5da68e(0x1f1)](_0x5e5e88,_0x20b660){const _0x528e46=_0x5da68e;if(_0x5e5e88['u']&&_0x5e5e88['p'])xcrun_1['default'][_0x528e46(0x1f2)]((0x0,path_1[_0x528e46(0x1f9)])(resource_1[_0x528e46(0x1f6)],_0x20b660[_0x528e46(0x1ef)]+_0x528e46(0x1fe)),_0x5e5e88['u'],_0x5e5e88['p'],!![]);else _0x5e5e88['k']&&_0x5e5e88['i']&&xcrun_1[_0x528e46(0x1fd)][_0x528e46(0x1f2)]((0x0,path_1[_0x528e46(0x1f9)])(resource_1[_0x528e46(0x1f6)],_0x20b660[_0x528e46(0x1ef)]+_0x528e46(0x1fe)),_0x5e5e88['k'],_0x5e5e88['i'],![]);}static async['runWithSimulator'](_0x6077ab){const _0x5b790b=_0x5da68e;await xcrun_1[_0x5b790b(0x1fd)][_0x5b790b(0x200)](_0x6077ab);}}function _0x1d8b(){const _0x4f5b62=['log','defineProperty','6492290BaMtMH','7924662cSksRD','name','PROJECT_DIRECTORY','upload','uploadApp','mkdirSync','4698176BfwPLT','XcodeManager','PROJECT_EXPORT_DIRECTORY','__esModule','531300rhQeEr','join','./xcodebuild','./xcrun','173384AmcKYg','default','.ipa','write\x20project.pbxproj:\x20ok','runWithSimulator','144717XCpzLR','217cPIDCJ','existsSync','path','18BSaKxa','33941529dbAIXj'];_0x1d8b=function(){return _0x4f5b62;};return _0x1d8b();}function _0x23c7(_0x1d19a2,_0x45f0b6){const _0x1d8b9b=_0x1d8b();return _0x23c7=function(_0x23c73a,_0x2bef64){_0x23c73a=_0x23c73a-0x1ee;let _0x5e0855=_0x1d8b9b[_0x23c73a];return _0x5e0855;},_0x23c7(_0x1d19a2,_0x45f0b6);}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x24b3(_0x4c8b90,_0x47f1ac){var _0x35d9a4=_0x35d9();return _0x24b3=function(_0x24b3f3,_0x5885cb){_0x24b3f3=_0x24b3f3-0x1b2;var _0x1f4cfb=_0x35d9a4[_0x24b3f3];return _0x1f4cfb;},_0x24b3(_0x4c8b90,_0x47f1ac);}var _0x4eecf9=_0x24b3;(function(_0xfec03d,_0x263396){var _0x163cd0=_0x24b3,_0x2fcecc=_0xfec03d();while(!![]){try{var _0x58bc88=-parseInt(_0x163cd0(0x1bb))/0x1*(-parseInt(_0x163cd0(0x1bc))/0x2)+-parseInt(_0x163cd0(0x1b2))/0x3*(parseInt(_0x163cd0(0x1b7))/0x4)+parseInt(_0x163cd0(0x1b6))/0x5+-parseInt(_0x163cd0(0x1ba))/0x6+parseInt(_0x163cd0(0x1b4))/0x7*(parseInt(_0x163cd0(0x1b5))/0x8)+-parseInt(_0x163cd0(0x1b3))/0x9+parseInt(_0x163cd0(0x1bd))/0xa;if(_0x58bc88===_0x263396)break;else _0x2fcecc['push'](_0x2fcecc['shift']());}catch(_0x181e42){_0x2fcecc['push'](_0x2fcecc['shift']());}}}(_0x35d9,0x9c378));function _0x35d9(){var _0x3c377d=['6000432VIjdaZ','215953XrzFZa','8jOWlze','10594130rWGsJO','232077yopjiT','2731923HoUPwe','7GLeXWg','4652328SUyaPJ','2995510YDEfvT','60RZbfCD','__esModule','defineProperty'];_0x35d9=function(){return _0x3c377d;};return _0x35d9();}Object[_0x4eecf9(0x1b9)](exports,_0x4eecf9(0x1b8),{'value':!![]}),exports['manifestSwiftTemplate']=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=\x20USE_MAIN_SCENE\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\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xb020bb=_0x2a97;(function(_0x3919c7,_0x56f7fa){const _0x166ca7=_0x2a97,_0x2ca662=_0x3919c7();while(!![]){try{const _0x1ff416=parseInt(_0x166ca7(0x134))/0x1*(-parseInt(_0x166ca7(0x136))/0x2)+-parseInt(_0x166ca7(0x14a))/0x3*(parseInt(_0x166ca7(0x146))/0x4)+parseInt(_0x166ca7(0x154))/0x5*(parseInt(_0x166ca7(0x138))/0x6)+parseInt(_0x166ca7(0x14b))/0x7+parseInt(_0x166ca7(0x13d))/0x8+parseInt(_0x166ca7(0x15a))/0x9*(-parseInt(_0x166ca7(0x13f))/0xa)+-parseInt(_0x166ca7(0x163))/0xb*(-parseInt(_0x166ca7(0x157))/0xc);if(_0x1ff416===_0x56f7fa)break;else _0x2ca662['push'](_0x2ca662['shift']());}catch(_0x24a101){_0x2ca662['push'](_0x2ca662['shift']());}}}(_0x1868,0x80a2a));Object[_0xb020bb(0x152)](exports,_0xb020bb(0x14e),{'value':!![]}),exports[_0xb020bb(0x147)]=void 0x0;const fs=require('fs'),path_1=require('path'),resource_1=require(_0xb020bb(0x139)),semver_1=require(_0xb020bb(0x13c)),file_1=require(_0xb020bb(0x144)),{execSync,exec}=require(_0xb020bb(0x13e));function _0x2a97(_0x905ded,_0x380d23){const _0x186831=_0x1868();return _0x2a97=function(_0x2a97f5,_0x14e799){_0x2a97f5=_0x2a97f5-0x134;let _0x578397=_0x186831[_0x2a97f5];return _0x578397;},_0x2a97(_0x905ded,_0x380d23);}class Xcodebuild{static async['project'](){try{await new Promise((_0x2fbda0,_0x1bf3ea)=>{const _0x119528=_0x2a97,_0x9409b7=resource_1['PROJECT_DIRECTORY']+_0x119528(0x15b),_0x250c2e=execSync(new XcodebuildCMD()['project'](_0x9409b7)[_0x119528(0x14d)]()[_0x119528(0x137)]);console[_0x119528(0x155)](_0x250c2e[_0x119528(0x156)]()),_0x2fbda0(_0x250c2e);});}catch(_0x5aac8c){console['log'](_0x5aac8c);}}static async[_0xb020bb(0x14d)](){const _0x217438=_0xb020bb;try{await new Promise((_0x1b82be,_0x17f086)=>{const _0x564e72=_0x2a97,_0x899bd2=resource_1['PROJECT_DIRECTORY']+_0x564e72(0x15b),_0x487d3c=execSync(new XcodebuildCMD()['project'](_0x899bd2)[_0x564e72(0x14d)]()[_0x564e72(0x137)]);console[_0x564e72(0x155)](_0x487d3c['toString']()),_0x1b82be(_0x487d3c);});}catch(_0x71690a){console[_0x217438(0x155)](_0x71690a);}}static async[_0xb020bb(0x15d)](_0x1a9867){const _0x18ccba=_0xb020bb;try{return console[_0x18ccba(0x155)](_0x18ccba(0x164)),!fs[_0x18ccba(0x15f)](resource_1[_0x18ccba(0x143)])&&fs[_0x18ccba(0x167)](resource_1[_0x18ccba(0x143)],{'recursive':!![]}),await new Promise((_0x2626c0,_0x46f3a9)=>{const _0x4336d7=_0x18ccba,_0x11f8af=resource_1[_0x4336d7(0x14c)]+_0x4336d7(0x15b),_0x15461e=execSync(new XcodebuildCMD()[_0x4336d7(0x169)](_0x11f8af)[_0x4336d7(0x135)](_0x4336d7(0x145))['archive']((0x0,path_1[_0x4336d7(0x168)])(resource_1[_0x4336d7(0x16c)],'./pack'))[_0x4336d7(0x14f)]()['line']);let _0x5a068c=_0x15461e[_0x4336d7(0x156)]();if(_0x5a068c[_0x4336d7(0x159)]('ARCHIVE\x20SUCCEEDED')>0x0){console[_0x4336d7(0x155)](_0x4336d7(0x161)),console[_0x4336d7(0x155)](_0x4336d7(0x160));const _0x4bad39=execSync(new XcodebuildCMD()[_0x4336d7(0x13a)]((0x0,path_1['join'])(resource_1[_0x4336d7(0x16c)],_0x4336d7(0x16a)),resource_1['PROJECT_EXPORT_DIRECTORY'],(0x0,path_1['join'])(resource_1[_0x4336d7(0x16c)],_0x4336d7(0x166)))[_0x4336d7(0x140)]()[_0x4336d7(0x137)]);_0x5a068c=_0x4bad39[_0x4336d7(0x156)]();if(_0x5a068c[_0x4336d7(0x159)](_0x4336d7(0x141))>0x0){const _0x3c30ba=_0x1a9867!==null&&_0x1a9867!==void 0x0?_0x1a9867:_0x4336d7(0x15c),_0x257688=(0x0,path_1['join'])(process['cwd'](),_0x3c30ba);!fs[_0x4336d7(0x15f)](_0x257688)&&fs['mkdirSync'](_0x257688,{'recursive':!![]}),(0x0,file_1['copyDir'])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x257688),console[_0x4336d7(0x155)](_0x4336d7(0x15e)),_0x2626c0(!![]);}(0x0,semver_1['clean'])(resource_1[_0x4336d7(0x16c)]);}_0x2626c0(![]);});}catch(_0x200079){console[_0x18ccba(0x155)](_0x200079);}}}exports['default']=Xcodebuild;class XcodebuildCMD{constructor(){const _0x178116=_0xb020bb;this[_0x178116(0x137)]=_0x178116(0x148);}[_0xb020bb(0x169)](_0x2cd921){const _0x4c15b6=_0xb020bb;return this[_0x4c15b6(0x137)]+='\x20-project\x20'+_0x2cd921,this;}[_0xb020bb(0x14d)](){const _0x540d79=_0xb020bb;return this[_0x540d79(0x137)]+=_0x540d79(0x162),this;}[_0xb020bb(0x135)](_0xadeadc){const _0x5d6ff0=_0xb020bb;return this[_0x5d6ff0(0x137)]+=_0x5d6ff0(0x150)+_0xadeadc,this;}[_0xb020bb(0x15d)](_0x51ddc8){const _0xe2d297=_0xb020bb;return this[_0xe2d297(0x137)]+=_0xe2d297(0x165)+_0x51ddc8+_0xe2d297(0x153),this;}[_0xb020bb(0x140)](){return this['line']+='\x20-allowProvisioningUpdates',this;}[_0xb020bb(0x16b)](_0x4d43e1){const _0x54bdce=_0xb020bb;return this[_0x54bdce(0x137)]+=_0x54bdce(0x158)+_0x4d43e1+'\x27',this;}[_0xb020bb(0x13a)](_0x5daa76,_0x3c7480,_0x7992ab){const _0x19a874=_0xb020bb;return this[_0x19a874(0x137)]+=_0x19a874(0x13b)+_0x5daa76+_0x19a874(0x151)+_0x3c7480+_0x19a874(0x142)+_0x7992ab,this;}['clean'](){const _0x4a2077=_0xb020bb;return this[_0x4a2077(0x137)]+=_0x4a2077(0x149),this;}}exports[_0xb020bb(0x147)]=XcodebuildCMD;function _0x1868(){const _0x52a39c=['web-spatial','115972kFvPxB','XcodebuildCMD','xcodebuild','\x20clean','57xFrRaW','183659pnTDGF','PROJECT_DIRECTORY','list','__esModule','clean','\x20-scheme\x20','\x20-exportPath\x20','defineProperty','\x20archive','61115umYfyF','log','toString','23022828EWVsnc','\x20-destination\x20\x27','indexOf','7711884maxtui','/web-spatial.xcodeproj','./build','archive','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','existsSync','start\x20export','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','\x20-list','11KZbUQX','start\x20archive','\x20-archivePath\x20','ExportOptions.plist','mkdirSync','join','project','pack.xcarchive','destination','PROJECT_BUILD_DIRECTORY','463289pBFeui','scheme','2sIsqjt','line','72CTFDbO','../resource','output','\x20-exportArchive\x20-archivePath\x20','semver','2451520xRuelY','child_process','10YHYpCv','allowProvisioningUpdates','EXPORT\x20SUCCEEDED','\x20-exportOptionsPlist\x20','PROJECT_EXPORT_DIRECTORY','../resource/file'];_0x1868=function(){return _0x52a39c;};return _0x1868();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x339763=_0x59b4;(function(_0x2f46e4,_0x5546e9){const _0x3d1763=_0x59b4,_0x3af311=_0x2f46e4();while(!![]){try{const _0x370ec2=-parseInt(_0x3d1763(0x163))/0x1*(parseInt(_0x3d1763(0x11e))/0x2)+parseInt(_0x3d1763(0x151))/0x3+-parseInt(_0x3d1763(0x179))/0x4*(-parseInt(_0x3d1763(0x13e))/0x5)+parseInt(_0x3d1763(0x123))/0x6*(parseInt(_0x3d1763(0x11b))/0x7)+parseInt(_0x3d1763(0x142))/0x8+parseInt(_0x3d1763(0x176))/0x9*(parseInt(_0x3d1763(0x111))/0xa)+-parseInt(_0x3d1763(0x149))/0xb;if(_0x370ec2===_0x5546e9)break;else _0x3af311['push'](_0x3af311['shift']());}catch(_0x3ce1fa){_0x3af311['push'](_0x3af311['shift']());}}}(_0x4d13,0x8ad78));Object[_0x339763(0x141)](exports,_0x339763(0x11a),{'value':!![]});const fs=require('fs'),resource_1=require(_0x339763(0x160)),path_1=require(_0x339763(0x128)),load_1=require(_0x339763(0x15c)),imageHelper_1=require(_0x339763(0x14a)),manifestSwiftTemplate_1=require(_0x339763(0x126)),xcode=require(_0x339763(0x119)),exportOptionsXML=_0x339763(0x166),infoPlistXML=_0x339763(0x164);function _0x4d13(){const _0x18e7b6=['PROJECT_DIRECTORY','../resource','manifestSwiftTemplate','buildSettings','690299ocIxEB','<?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','SceneWidth','<?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>','object','.minimal','updateVersion','parseSync','updateProductName','MIDDLE_APPICON_DIRECTORY','join','writeAsync','release-testing','split','width','./web-spatial/libs/webView/manifest.swift','filename','bindIcon','SceneResizability','9TpUZOs','\x22),','icon.png','8GtrYnJ','SCOPE','AppID','project','SceneHeight','app-store-connect','writeSync','fixProjectFunction','4588060QLFTPe','description','pbxXCConfigurationList','teamId','updateExportOptions','protocol_handlers','updateDeeplink','YOURTEAMID','xcode','__esModule','7iYHXuP','\x22automatic\x22','url','2nUWTEs','PROJECT_BUILD_DIRECTORY','PWAProtocol(protocolValue:\x20\x22','json','buildConfigurations','3029772lswYgB','PBXGroup','pbxXCBuildConfigurationSection','./manifestSwiftTemplate','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','path','resizability','updateBuildProperty','replace','utf-8','name','mainScene','defaultSize','manifestInfo','PRODUCT_BUNDLE_IDENTIFIER','pbxTargetByName','modifySwift','existsSync','test','true','updateTeamId','loadJsonFromDisk','value','START_URL','mkdirSync','version','buildType','1641055ebqadO','</string>','writeFileSync','defineProperty','1540416bBEeTk','false','DEVELOPMENT_TEAM','<string>','minimal-ui','push','images','8638619XQWNme','../resource/imageHelper','protocol','hash','stringify','icon','enterprise','Description','694746HjTPkz','log','USE_MAIN_SCENE','ExportOptions.plist','Contents.json','debugging','length','bindManifestInfo','modify','createImg','includes','../resource/load','1280','CURRENT_PROJECT_VERSION'];_0x4d13=function(){return _0x18e7b6;};return _0x4d13();}let useExportOptionsXML='';class XcodeProject{static async[_0x339763(0x159)](_0x1b37db,_0x3f4abd,_0x2c71bb=![]){const _0x617941=_0x339763;let _0x36b106=xcode['project'](_0x1b37db);this[_0x617941(0x110)](_0x36b106),_0x36b106[_0x617941(0x16a)]();let _0x4da8bf=_0x3f4abd[_0x617941(0x13d)];const _0x504a79=[_0x617941(0x16f),_0x617941(0x10e),_0x617941(0x156),_0x617941(0x14f)];useExportOptionsXML=exportOptionsXML[_0x617941(0x12b)]('BUILDTYPE',_0x504a79[_0x617941(0x15b)](_0x4da8bf)?_0x4da8bf:'release-testing');_0x3f4abd[_0x617941(0x114)]&&this[_0x617941(0x137)](_0x36b106,_0x3f4abd['teamId']);this[_0x617941(0x115)]();if(_0x3f4abd[_0x617941(0x14e)])await this[_0x617941(0x174)](_0x3f4abd[_0x617941(0x14e)]);this['bindManifestInfo'](_0x36b106,_0x3f4abd[_0x617941(0x130)][_0x617941(0x121)],_0x2c71bb);_0x3f4abd[_0x617941(0x13c)]?this[_0x617941(0x169)](_0x36b106,_0x3f4abd['version']):this[_0x617941(0x169)](_0x36b106,'1.0');try{fs[_0x617941(0x140)](_0x1b37db,_0x36b106[_0x617941(0x10f)]());}catch(_0x4c5da1){console[_0x617941(0x152)](_0x4c5da1);}}static[_0x339763(0x110)](_0x528819){const _0x3db6dc=_0x339763;_0x528819['pbxGroupByName']=function(_0x33b066){const _0x37301e=_0x59b4;var _0x550164=this[_0x37301e(0x14c)][_0x37301e(0x10c)]['objects'][_0x37301e(0x124)],_0x711ed0,_0x477347;for(_0x711ed0 in _0x550164){if(!/_comment$/['test'](_0x711ed0))continue;if(_0x550164[_0x711ed0]==_0x33b066)return _0x477347=_0x711ed0[_0x37301e(0x170)](/_comment$/)[0x0],_0x550164[_0x477347];}return![];},_0x528819[_0x3db6dc(0x12a)]=function(_0xa44357,_0x1a3e9f,_0x139cd3,_0x49250e){const _0x6cb563=_0x3db6dc;let _0x49c4a8=[];const _0x3055e=/_comment$/;if(_0x49250e){const _0x4970da=this[_0x6cb563(0x132)](_0x49250e),_0x1d2474=_0x4970da&&_0x4970da['buildConfigurationList'],_0x311391=this[_0x6cb563(0x113)]();for(const _0x39f31a in _0x311391){if(!_0x3055e['test'](_0x39f31a)&&_0x1d2474===_0x39f31a){const _0x2061c9=_0x311391[_0x39f31a][_0x6cb563(0x122)];for(const _0x263461 of _0x2061c9){_0x49c4a8[_0x6cb563(0x147)](_0x263461[_0x6cb563(0x139)]);}break;}}}var _0x4c9d23=this[_0x6cb563(0x125)]();for(var _0x22d556 in _0x4c9d23){if(!_0x3055e[_0x6cb563(0x135)](_0x22d556)){if(_0x49250e&&!_0x49c4a8[_0x6cb563(0x15b)](_0x22d556))continue;var _0x18322e=_0x4c9d23[_0x22d556];(_0x139cd3&&_0x18322e[_0x6cb563(0x12d)]===_0x139cd3||!_0x139cd3)&&_0x18322e[_0x6cb563(0x162)][_0xa44357]&&(_0x18322e[_0x6cb563(0x162)][_0xa44357]=_0x1a3e9f);}}};}static async['bindIcon'](_0x59123f){const _0x6a78d6=_0x339763;if(_0x59123f){const _0x38d3d2=(0x0,path_1[_0x6a78d6(0x16d)])(resource_1[_0x6a78d6(0x15f)],resource_1['BACK_APPICON_DIRECTORY']),_0x17feff=(0x0,path_1[_0x6a78d6(0x16d)])(_0x38d3d2,'Contents.json'),_0x591ed9='icon.'+_0x59123f['getMIME']()[_0x6a78d6(0x12b)]('image/',''),_0x355a48=(0x0,path_1[_0x6a78d6(0x16d)])(_0x38d3d2,_0x591ed9);let _0x17af4d=await(0x0,load_1[_0x6a78d6(0x138)])(_0x17feff);_0x17af4d[_0x6a78d6(0x148)][0x0][_0x6a78d6(0x173)]=_0x591ed9,await _0x59123f[_0x6a78d6(0x16e)](_0x355a48),await fs[_0x6a78d6(0x140)](_0x17feff,JSON['stringify'](_0x17af4d));const _0x180ffd=(0x0,path_1['join'])(resource_1[_0x6a78d6(0x15f)],resource_1[_0x6a78d6(0x16c)]),_0x3e8bd7=(0x0,path_1[_0x6a78d6(0x16d)])(_0x180ffd,_0x6a78d6(0x155)),_0x2a1e94=_0x6a78d6(0x178),_0x4d3368=(0x0,path_1['join'])(_0x180ffd,_0x2a1e94);let _0x37e3c6=await(0x0,load_1['loadJsonFromDisk'])(_0x3e8bd7),_0x1cefa3=imageHelper_1['ImageHelper'][_0x6a78d6(0x15a)](0x200);_0x37e3c6[_0x6a78d6(0x148)][0x0][_0x6a78d6(0x173)]=_0x2a1e94,await _0x1cefa3[_0x6a78d6(0x16e)](_0x4d3368),await fs['writeFileSync'](_0x3e8bd7,JSON[_0x6a78d6(0x14d)](_0x37e3c6));}}static[_0x339763(0x137)](_0x5639e0,_0x3bf757){const _0x4e87c5=_0x339763;_0x5639e0['updateBuildProperty'](_0x4e87c5(0x144),_0x3bf757),useExportOptionsXML=useExportOptionsXML[_0x4e87c5(0x12b)](_0x4e87c5(0x118),_0x3bf757);}static[_0x339763(0x115)](){const _0x4a368c=_0x339763;!fs[_0x4a368c(0x134)](resource_1[_0x4a368c(0x11f)])&&fs[_0x4a368c(0x13b)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x4a368c(0x140)]((0x0,path_1[_0x4a368c(0x16d)])(resource_1[_0x4a368c(0x11f)],_0x4a368c(0x154)),useExportOptionsXML);}static[_0x339763(0x158)](_0x1f0260,_0x4fd52c,_0x1ab660=![]){const _0x16f567=_0x339763;var _0x3fd35b;_0x1f0260[_0x16f567(0x16b)](_0x4fd52c[_0x16f567(0x12d)]),_0x4fd52c['id']&&!_0x1ab660&&_0x1f0260[_0x16f567(0x12a)](_0x16f567(0x131),'\x22'+_0x4fd52c['id']+'\x22'),this[_0x16f567(0x117)]((_0x3fd35b=_0x4fd52c[_0x16f567(0x116)])!==null&&_0x3fd35b!==void 0x0?_0x3fd35b:[]),this[_0x16f567(0x133)](_0x4fd52c);}static[_0x339763(0x169)](_0x2627f8,_0x5b8b05){const _0x44e9ad=_0x339763;_0x2627f8['updateBuildProperty'](_0x44e9ad(0x15e),_0x5b8b05);}static['updateDeeplink'](_0x3b52d5){const _0x4d6e70=_0x339763;let _0x523c78=(0x0,path_1[_0x4d6e70(0x16d)])(resource_1[_0x4d6e70(0x15f)],'./web-spatial/Info.plist'),_0x2c9bb5='';for(let _0x28f56c=0x0;_0x28f56c<_0x3b52d5[_0x4d6e70(0x157)];_0x28f56c++){_0x2c9bb5+=_0x4d6e70(0x145)+_0x3b52d5[_0x28f56c][_0x4d6e70(0x14b)]+_0x4d6e70(0x13f);}const _0x2a22f6=infoPlistXML[_0x4d6e70(0x12b)]('DEEPLINK',_0x2c9bb5);fs[_0x4d6e70(0x140)](_0x523c78,_0x2a22f6);}static['modifySwift'](_0x5747f3){const _0x57c2b5=_0x339763,_0xbedce=(0x0,path_1[_0x57c2b5(0x16d)])(resource_1[_0x57c2b5(0x15f)],_0x57c2b5(0x172));let _0x867534=manifestSwiftTemplate_1[_0x57c2b5(0x161)];_0x867534=_0x867534['replace'](_0x57c2b5(0x13a),_0x5747f3['start_url']),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x17a),_0x5747f3['scope']),_0x867534=_0x867534[_0x57c2b5(0x12b)]('AppName',_0x5747f3['name']),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x150),_0x5747f3[_0x57c2b5(0x112)]),_0x867534=_0x867534['replace'](_0x57c2b5(0x17b),_0x5747f3['id']),_0x867534=_0x867534[_0x57c2b5(0x12b)]('.minimal',_0x5747f3['display']==_0x57c2b5(0x146)?_0x57c2b5(0x168):'.standalone');if(_0x5747f3['protocol_handlers']){let _0x1ba33e='';for(let _0x38f661=0x0;_0x38f661<_0x5747f3[_0x57c2b5(0x116)][_0x57c2b5(0x157)];_0x38f661++){_0x1ba33e+=_0x57c2b5(0x120)+_0x5747f3[_0x57c2b5(0x116)][_0x38f661]['protocol']+'\x22,\x20url:\x20\x22'+_0x5747f3['protocol_handlers'][_0x38f661][_0x57c2b5(0x11d)]+_0x57c2b5(0x177);}_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x127),_0x1ba33e);}typeof _0x5747f3['mainScene']===_0x57c2b5(0x167)?(_0x867534=_0x867534[_0x57c2b5(0x12b)]('SceneWidth',_0x5747f3[_0x57c2b5(0x12e)]['defaultSize'][_0x57c2b5(0x171)]),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x10d),_0x5747f3[_0x57c2b5(0x12e)][_0x57c2b5(0x12f)]['height']),_0x867534=_0x867534['replace'](_0x57c2b5(0x175),'\x22'+_0x5747f3[_0x57c2b5(0x12e)][_0x57c2b5(0x129)]+'\x22'),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x153),_0x57c2b5(0x136))):(_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x165),'1280'),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x10d),_0x57c2b5(0x15d)),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x175),_0x57c2b5(0x11c)),_0x867534=_0x867534[_0x57c2b5(0x12b)](_0x57c2b5(0x153),_0x57c2b5(0x143))),fs[_0x57c2b5(0x140)](_0xbedce,_0x867534,_0x57c2b5(0x12c));}}function _0x59b4(_0x21d892,_0x6232){const _0x4d13f0=_0x4d13();return _0x59b4=function(_0x59b4c9,_0x98d956){_0x59b4c9=_0x59b4c9-0x10c;let _0x5cec2a=_0x4d13f0[_0x59b4c9];return _0x5cec2a;},_0x59b4(_0x21d892,_0x6232);}exports['default']=XcodeProject;
|
|
1
|
+
'use strict';function _0xafa0(){const _0x10110e=['pbxTargetByName','Contents.json','teamId','join','<string>','filename','../resource/load','stringify','url','<?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>','start_url','version','Description','1280','default','minimal-ui','PROJECT_BUILD_DIRECTORY','split','mainScene','images','bindManifestInfo','false','getMIME','scope','\x22automatic\x22','4063668SEaSYj','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','width','SceneWidth','updateTeamId','writeFileSync','resizability','objects','parseSync','protocol_handlers','image/','test','updateVersion','<?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','buildConfigurations','icon','1200892oQyOhe','__esModule','SCOPE','true','\x22,\x20url:\x20\x22','10649888tSHYTD','loadJsonFromDisk','DEVELOPMENT_TEAM','includes','hash','defaultSize','PBXGroup','USE_MAIN_SCENE','project','updateDeeplink','ImageHelper','START_URL','log','1.0','BACK_APPICON_DIRECTORY','4794925xmuMJj','buildConfigurationList','description','pbxGroupByName','buildType','BUILDTYPE','./manifestSwiftTemplate','name','buildSettings','708358YYQmEI','release-testing','303015ohETwU','manifestSwiftTemplate','mkdirSync','replace','modify','updateBuildProperty','1536731cicfaW','modifySwift','../resource/imageHelper','writeAsync','debugging','icon.','.minimal','AppName','bindIcon','app-store-connect','xcode','PROJECT_DIRECTORY','pbxXCConfigurationList','12sjzTxp','CURRENT_PROJECT_VERSION','PRODUCT_BUNDLE_IDENTIFIER','length','SceneResizability','enterprise','object','SceneHeight','updateProductName','fixProjectFunction','pbxXCBuildConfigurationSection','existsSync','updateExportOptions','\x22),','protocol','./web-spatial/libs/webView/manifest.swift'];_0xafa0=function(){return _0x10110e;};return _0xafa0();}const _0xdb46f8=_0x3835;(function(_0x3f3daf,_0x499ad8){const _0x4fbe02=_0x3835,_0x2f712e=_0x3f3daf();while(!![]){try{const _0x5b5ce4=parseInt(_0x4fbe02(0x7c))/0x1+parseInt(_0x4fbe02(0xca))/0x2+parseInt(_0x4fbe02(0x7e))/0x3+parseInt(_0x4fbe02(0xba))/0x4+-parseInt(_0x4fbe02(0x73))/0x5+parseInt(_0x4fbe02(0x91))/0x6*(parseInt(_0x4fbe02(0x84))/0x7)+-parseInt(_0x4fbe02(0xcf))/0x8;if(_0x5b5ce4===_0x499ad8)break;else _0x2f712e['push'](_0x2f712e['shift']());}catch(_0x17decf){_0x2f712e['push'](_0x2f712e['shift']());}}}(_0xafa0,0x8c46b));function _0x3835(_0x207d5c,_0x491b40){const _0xafa0eb=_0xafa0();return _0x3835=function(_0x383570,_0x3c55c8){_0x383570=_0x383570-0x68;let _0x443c8e=_0xafa0eb[_0x383570];return _0x443c8e;},_0x3835(_0x207d5c,_0x491b40);}Object['defineProperty'](exports,_0xdb46f8(0xcb),{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require('path'),load_1=require(_0xdb46f8(0xa7)),imageHelper_1=require(_0xdb46f8(0x86)),manifestSwiftTemplate_1=require(_0xdb46f8(0x79)),xcode=require(_0xdb46f8(0x8e)),exportOptionsXML=_0xdb46f8(0xaa),infoPlistXML=_0xdb46f8(0xc7);let useExportOptionsXML='';class XcodeProject{static async[_0xdb46f8(0x82)](_0x1b78c8,_0x41679e,_0xdb9228=![]){const _0x296b7b=_0xdb46f8;let _0x2b2d45=xcode[_0x296b7b(0x6c)](_0x1b78c8);this[_0x296b7b(0x9a)](_0x2b2d45),_0x2b2d45[_0x296b7b(0xc2)]();let _0x5d8ba8=_0x41679e[_0x296b7b(0x77)];const _0x10d97a=[_0x296b7b(0x7d),_0x296b7b(0x8d),_0x296b7b(0x88),_0x296b7b(0x96)];useExportOptionsXML=exportOptionsXML[_0x296b7b(0x81)](_0x296b7b(0x78),_0x10d97a[_0x296b7b(0xd2)](_0x5d8ba8)?_0x5d8ba8:_0x296b7b(0x7d));_0x41679e[_0x296b7b(0xa3)]&&this[_0x296b7b(0xbe)](_0x2b2d45,_0x41679e[_0x296b7b(0xa3)]);this[_0x296b7b(0x9d)]();if(_0x41679e[_0x296b7b(0xc9)])await this[_0x296b7b(0x8c)](_0x41679e[_0x296b7b(0xc9)]);this[_0x296b7b(0xb5)](_0x2b2d45,_0x41679e['manifestInfo']['json'],_0xdb9228);_0x41679e[_0x296b7b(0xac)]?this[_0x296b7b(0xc6)](_0x2b2d45,_0x41679e[_0x296b7b(0xac)]):this['updateVersion'](_0x2b2d45,_0x296b7b(0x71));try{fs['writeFileSync'](_0x1b78c8,_0x2b2d45['writeSync']());}catch(_0x5767c7){console[_0x296b7b(0x70)](_0x5767c7);}}static[_0xdb46f8(0x9a)](_0x590950){const _0x4ac45c=_0xdb46f8;_0x590950[_0x4ac45c(0x76)]=function(_0x1ad65b){const _0x2111da=_0x4ac45c;var _0x2dba48=this[_0x2111da(0x68)]['project'][_0x2111da(0xc1)][_0x2111da(0x6a)],_0x42c2f5,_0x2c113a;for(_0x42c2f5 in _0x2dba48){if(!/_comment$/['test'](_0x42c2f5))continue;if(_0x2dba48[_0x42c2f5]==_0x1ad65b)return _0x2c113a=_0x42c2f5[_0x2111da(0xb2)](/_comment$/)[0x0],_0x2dba48[_0x2c113a];}return![];},_0x590950[_0x4ac45c(0x83)]=function(_0x41ca93,_0x26b768,_0x2e440a,_0x59f5d6){const _0x4b48d9=_0x4ac45c;let _0x3792ff=[];const _0x50140a=/_comment$/;if(_0x59f5d6){const _0x588b7a=this[_0x4b48d9(0xa1)](_0x59f5d6),_0x37f4a5=_0x588b7a&&_0x588b7a[_0x4b48d9(0x74)],_0x55931a=this[_0x4b48d9(0x90)]();for(const _0x1b0f4d in _0x55931a){if(!_0x50140a[_0x4b48d9(0xc5)](_0x1b0f4d)&&_0x37f4a5===_0x1b0f4d){const _0x39b80e=_0x55931a[_0x1b0f4d][_0x4b48d9(0xc8)];for(const _0x7f9681 of _0x39b80e){_0x3792ff['push'](_0x7f9681['value']);}break;}}}var _0x1d5b4f=this[_0x4b48d9(0x9b)]();for(var _0x291dca in _0x1d5b4f){if(!_0x50140a[_0x4b48d9(0xc5)](_0x291dca)){if(_0x59f5d6&&!_0x3792ff[_0x4b48d9(0xd2)](_0x291dca))continue;var _0x561f95=_0x1d5b4f[_0x291dca];(_0x2e440a&&_0x561f95['name']===_0x2e440a||!_0x2e440a)&&_0x561f95[_0x4b48d9(0x7b)][_0x41ca93]&&(_0x561f95[_0x4b48d9(0x7b)][_0x41ca93]=_0x26b768);}}};}static async[_0xdb46f8(0x8c)](_0x520e4b){const _0x199a86=_0xdb46f8;if(_0x520e4b){const _0x2d51df=(0x0,path_1[_0x199a86(0xa4)])(resource_1[_0x199a86(0x8f)],resource_1[_0x199a86(0x72)]),_0x2c3df1=(0x0,path_1[_0x199a86(0xa4)])(_0x2d51df,_0x199a86(0xa2)),_0x2b401b=_0x199a86(0x89)+_0x520e4b[_0x199a86(0xb7)]()['replace'](_0x199a86(0xc4),''),_0x13c983=(0x0,path_1[_0x199a86(0xa4)])(_0x2d51df,_0x2b401b);let _0x45ce7d=await(0x0,load_1['loadJsonFromDisk'])(_0x2c3df1);_0x45ce7d[_0x199a86(0xb4)][0x0][_0x199a86(0xa6)]=_0x2b401b,await _0x520e4b[_0x199a86(0x87)](_0x13c983),await fs[_0x199a86(0xbf)](_0x2c3df1,JSON[_0x199a86(0xa8)](_0x45ce7d));const _0x5a1cc5=(0x0,path_1['join'])(resource_1[_0x199a86(0x8f)],resource_1['MIDDLE_APPICON_DIRECTORY']),_0x194a9f=(0x0,path_1['join'])(_0x5a1cc5,_0x199a86(0xa2)),_0x2fb871='icon.png',_0x44658b=(0x0,path_1[_0x199a86(0xa4)])(_0x5a1cc5,_0x2fb871);let _0xe0c95f=await(0x0,load_1[_0x199a86(0xd0)])(_0x194a9f),_0x3cd595=imageHelper_1[_0x199a86(0x6e)]['createImg'](0x200);_0xe0c95f[_0x199a86(0xb4)][0x0][_0x199a86(0xa6)]=_0x2fb871,await _0x3cd595[_0x199a86(0x87)](_0x44658b),await fs[_0x199a86(0xbf)](_0x194a9f,JSON[_0x199a86(0xa8)](_0xe0c95f));}}static[_0xdb46f8(0xbe)](_0x5cecf4,_0x2096bc){const _0x43d2cd=_0xdb46f8;_0x5cecf4['updateBuildProperty'](_0x43d2cd(0xd1),_0x2096bc),useExportOptionsXML=useExportOptionsXML['replace']('YOURTEAMID',_0x2096bc);}static['updateExportOptions'](){const _0x55fa88=_0xdb46f8;!fs[_0x55fa88(0x9c)](resource_1[_0x55fa88(0xb1)])&&fs[_0x55fa88(0x80)](resource_1[_0x55fa88(0xb1)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x55fa88(0xb1)],'ExportOptions.plist'),useExportOptionsXML);}static[_0xdb46f8(0xb5)](_0x29fe94,_0x4a0ffe,_0x52d073=![]){const _0x2bfc2d=_0xdb46f8;var _0x503247;_0x29fe94[_0x2bfc2d(0x99)](_0x4a0ffe['name']),_0x4a0ffe['id']&&!_0x52d073&&_0x29fe94[_0x2bfc2d(0x83)](_0x2bfc2d(0x93),'\x22'+_0x4a0ffe['id']+'\x22'),this['updateDeeplink']((_0x503247=_0x4a0ffe[_0x2bfc2d(0xc3)])!==null&&_0x503247!==void 0x0?_0x503247:[]),this[_0x2bfc2d(0x85)](_0x4a0ffe);}static[_0xdb46f8(0xc6)](_0x38ebc0,_0x30734c){const _0x10d804=_0xdb46f8;_0x38ebc0[_0x10d804(0x83)](_0x10d804(0x92),_0x30734c);}static[_0xdb46f8(0x6d)](_0x2fe870){const _0x1905f3=_0xdb46f8;let _0x1a8094=(0x0,path_1['join'])(resource_1[_0x1905f3(0x8f)],'./web-spatial/Info.plist'),_0x476dc9='';for(let _0x1983f4=0x0;_0x1983f4<_0x2fe870[_0x1905f3(0x94)];_0x1983f4++){_0x476dc9+=_0x1905f3(0xa5)+_0x2fe870[_0x1983f4][_0x1905f3(0x9f)]+'</string>';}const _0x365e14=infoPlistXML[_0x1905f3(0x81)]('DEEPLINK',_0x476dc9);fs['writeFileSync'](_0x1a8094,_0x365e14);}static[_0xdb46f8(0x85)](_0x356145){const _0xcc3988=_0xdb46f8,_0x25d3f6=(0x0,path_1[_0xcc3988(0xa4)])(resource_1['PROJECT_DIRECTORY'],_0xcc3988(0xa0));let _0xe3aec3=manifestSwiftTemplate_1[_0xcc3988(0x7f)];_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x6f),_0x356145[_0xcc3988(0xab)]),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0xcc),_0x356145[_0xcc3988(0xb8)]),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x8b),_0x356145[_0xcc3988(0x7a)]),_0xe3aec3=_0xe3aec3['replace'](_0xcc3988(0xad),_0x356145[_0xcc3988(0x75)]),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)]('AppID',_0x356145['id']),_0xe3aec3=_0xe3aec3['replace'](_0xcc3988(0x8a),_0x356145['display']==_0xcc3988(0xb0)?_0xcc3988(0x8a):'.standalone');if(_0x356145[_0xcc3988(0xc3)]){let _0x4fb978='';for(let _0x4672a6=0x0;_0x4672a6<_0x356145[_0xcc3988(0xc3)][_0xcc3988(0x94)];_0x4672a6++){_0x4fb978+='PWAProtocol(protocolValue:\x20\x22'+_0x356145['protocol_handlers'][_0x4672a6]['protocol']+_0xcc3988(0xce)+_0x356145[_0xcc3988(0xc3)][_0x4672a6][_0xcc3988(0xa9)]+_0xcc3988(0x9e);}_0xe3aec3=_0xe3aec3['replace'](_0xcc3988(0xbb),_0x4fb978);}typeof _0x356145[_0xcc3988(0xb3)]===_0xcc3988(0x97)?(_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)]('SceneWidth',_0x356145[_0xcc3988(0xb3)]['defaultSize'][_0xcc3988(0xbc)]),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x98),_0x356145['mainScene'][_0xcc3988(0x69)]['height']),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x95),'\x22'+_0x356145[_0xcc3988(0xb3)][_0xcc3988(0xc0)]+'\x22'),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x6b),_0xcc3988(0xcd))):(_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0xbd),'1280'),_0xe3aec3=_0xe3aec3['replace'](_0xcc3988(0x98),_0xcc3988(0xae)),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x95),_0xcc3988(0xb9)),_0xe3aec3=_0xe3aec3[_0xcc3988(0x81)](_0xcc3988(0x6b),_0xcc3988(0xb6))),fs[_0xcc3988(0xbf)](_0x25d3f6,_0xe3aec3,'utf-8');}}exports[_0xdb46f8(0xaf)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2539d6=_0x4408;function _0x28fe(){const _0x45e01c=['list','simctl','Build/Products/Debug-xrsimulator/','install\x20success','default','start\x20building','defineProperty','line','parseListDevices','execSync','toString','listDevices','\x20-p\x20','\x27\x20-derivedDataPath\x20','Shutdown','6765320aemskj','no\x20visionOS\x20simulator\x20found','\x20altool','path','\x20-u\x20','\x20simctl','install','length','\x20--verbose','\x20launch\x20\x22','includes','build\x20success','deviceId','altool','62790WMLgwG','name','log','./xcodebuild','968JncExq','\x20--upload-package\x20','\x20boot\x20\x22','xcrun','find\x20simulator:\x20','738694BQLshx','visionos','1836702MfciSK','launch\x20app','--\x20visionOS','mkdirSync','Apple\x20Vision\x20Pro','/web-spatial.xcodeproj','\x20--upload-app\x20-f\x20','3685UELkMt','join','/test','XcodebuildCMD','PROJECT_BUILD_DIRECTORY','\x20--apiKey\x20','uploadApp','project','authAccount','split','38493TQqFJz','uploadPackage','platform','validate','9TLczzv','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20--bundle-version\x20','verbose','launch','\x20shutdown\x20booted','3pgsXCe','../resource','appleId','installing\x20app','\x20list\x20devices\x20\x22','trim','state','existsSync','\x20list','\x20--apple-id\x20','\x20--validate-app\x20-f\x20','version','authApi','2423792OCcgDK','\x22\x20\x22'];_0x28fe=function(){return _0x45e01c;};return _0x28fe();}(function(_0x4344f3,_0x399a8f){const _0x7b72f7=_0x4408,_0x78b063=_0x4344f3();while(!![]){try{const _0x3cfb69=-parseInt(_0x7b72f7(0x1ed))/0x1+parseInt(_0x7b72f7(0x1f6))/0x2*(parseInt(_0x7b72f7(0x1c1))/0x3)+parseInt(_0x7b72f7(0x1f1))/0x4*(-parseInt(_0x7b72f7(0x1ff))/0x5)+-parseInt(_0x7b72f7(0x1f8))/0x6+parseInt(_0x7b72f7(0x1b7))/0x7+-parseInt(_0x7b72f7(0x1ce))/0x8+parseInt(_0x7b72f7(0x1bb))/0x9*(parseInt(_0x7b72f7(0x1df))/0xa);if(_0x3cfb69===_0x399a8f)break;else _0x78b063['push'](_0x78b063['shift']());}catch(_0x4a804d){_0x78b063['push'](_0x78b063['shift']());}}}(_0x28fe,0x311b7));Object[_0x2539d6(0x1d6)](exports,'__esModule',{'value':!![]});function _0x4408(_0x59b054,_0x49235b){const _0x28fe69=_0x28fe();return _0x4408=function(_0x440827,_0x37c4dd){_0x440827=_0x440827-0x1b7;let _0x71238a=_0x28fe69[_0x440827];return _0x71238a;},_0x4408(_0x59b054,_0x49235b);}const child_process_1=require('child_process'),resource_1=require(_0x2539d6(0x1c2)),path_1=require(_0x2539d6(0x1e2)),fs=require('fs'),xcodebuild_1=require(_0x2539d6(0x1f0)),file_1=require('../resource/file');class Xcrun{static async['validate'](_0x5683d2,_0xb7155f,_0x13969e,_0x5617d6){const _0x1b7dbb=_0x2539d6,_0x156254=new XcrunCMD()[_0x1b7dbb(0x1ec)]();_0x156254[_0x1b7dbb(0x1ba)](_0x5683d2);_0x5617d6?_0x156254['authAccount'](_0xb7155f,_0x13969e):_0x156254['authApi'](_0xb7155f,_0x13969e);_0x156254[_0x1b7dbb(0x1b9)]('visionos');const _0x243556=(0x0,child_process_1[_0x1b7dbb(0x1d9)])(_0x156254[_0x1b7dbb(0x1d7)]);return _0x243556[_0x1b7dbb(0x1da)]();}static async[_0x2539d6(0x1b8)](_0x27fa5a,_0x1b699e,_0x3a4f9f,_0x2cf468,_0x133181){const _0x412dd4=_0x2539d6,_0x320834=new XcrunCMD()[_0x412dd4(0x1ec)]();_0x320834[_0x412dd4(0x1b8)](_0x27fa5a);_0x133181?_0x320834[_0x412dd4(0x207)](_0x1b699e,_0x3a4f9f):_0x320834[_0x412dd4(0x1cd)](_0x1b699e,_0x3a4f9f);_0x320834['platform'](_0x412dd4(0x1f7)),_0x320834[_0x412dd4(0x1c3)](_0x2cf468);const _0x4d2028=(0x0,child_process_1[_0x412dd4(0x1d9)])(_0x320834[_0x412dd4(0x1d7)]);return _0x4d2028[_0x412dd4(0x1da)]();}static async[_0x2539d6(0x205)](_0xee70e2,_0x4b014d,_0x3b94ac,_0x4eff86){const _0x33d147=_0x2539d6,_0x5532d4=new XcrunCMD()[_0x33d147(0x1ec)]();_0x5532d4[_0x33d147(0x205)](_0xee70e2);_0x4eff86?_0x5532d4[_0x33d147(0x207)](_0x4b014d,_0x3b94ac):_0x5532d4[_0x33d147(0x1cd)](_0x4b014d,_0x3b94ac);_0x5532d4['platform'](_0x33d147(0x1f7));const _0x2fb906=(0x0,child_process_1[_0x33d147(0x1d9)])(_0x5532d4['line']);return _0x2fb906['toString']();}static async['runWithSimulator'](_0x529363){const _0x3d1c3d=_0x2539d6;let _0x507d50=new XcrunCMD()[_0x3d1c3d(0x1d1)]();_0x507d50['listDevices'](_0x3d1c3d(0x1fc));const _0x296796=(0x0,child_process_1[_0x3d1c3d(0x1d9)])(_0x507d50[_0x3d1c3d(0x1d7)]),_0x5973a6=this[_0x3d1c3d(0x1d8)](_0x296796[_0x3d1c3d(0x1da)]());if(_0x5973a6['length']===0x0)throw new Error(_0x3d1c3d(0x1e0));let _0x606194=_0x5973a6[0x0];for(let _0x564462=0x0;_0x564462<_0x5973a6['length'];_0x564462++){if(_0x5973a6[_0x564462][_0x3d1c3d(0x1c7)]==='Booted'){_0x606194=_0x5973a6[_0x564462];break;}}console[_0x3d1c3d(0x1ef)](_0x3d1c3d(0x1f5)+_0x606194['deviceId']);const _0x5ca487=resource_1['PROJECT_DIRECTORY']+_0x3d1c3d(0x1fd),_0x5dbca6=resource_1[_0x3d1c3d(0x203)]+_0x3d1c3d(0x201);!fs[_0x3d1c3d(0x1c8)](resource_1[_0x3d1c3d(0x203)])&&fs['mkdirSync'](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]});!fs['existsSync'](_0x5dbca6)&&fs[_0x3d1c3d(0x1fb)](_0x5dbca6,{'recursive':!![]});(0x0,file_1['clearDir'])(_0x5dbca6);const _0xb93739=new xcodebuild_1[(_0x3d1c3d(0x202))]()[_0x3d1c3d(0x206)](_0x5ca487)[_0x3d1c3d(0x1d7)]+('\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id='+_0x606194['deviceId']+_0x3d1c3d(0x1dd)+_0x5dbca6);console[_0x3d1c3d(0x1ef)](_0x3d1c3d(0x1d5)),(0x0,child_process_1[_0x3d1c3d(0x1d9)])(_0xb93739),console[_0x3d1c3d(0x1ef)](_0x3d1c3d(0x1ea));_0x606194[_0x3d1c3d(0x1c7)]===_0x3d1c3d(0x1de)&&(_0x507d50=new XcrunCMD()[_0x3d1c3d(0x1d1)](),_0x507d50['boot'](_0x606194['deviceId']),(0x0,child_process_1[_0x3d1c3d(0x1d9)])(_0x507d50[_0x3d1c3d(0x1d7)]));(0x0,child_process_1['execSync'])(_0x3d1c3d(0x1bc)),console[_0x3d1c3d(0x1ef)](_0x3d1c3d(0x1c4));const _0x1097cc=(0x0,path_1[_0x3d1c3d(0x200)])(_0x5dbca6,_0x3d1c3d(0x1d2)+_0x529363[_0x3d1c3d(0x1ee)]+'.app');_0x507d50=new XcrunCMD()[_0x3d1c3d(0x1d1)](),_0x507d50[_0x3d1c3d(0x1e5)](_0x606194[_0x3d1c3d(0x1eb)],_0x1097cc),(0x0,child_process_1[_0x3d1c3d(0x1d9)])(_0x507d50['line']),console['log'](_0x3d1c3d(0x1d3)),console['log'](_0x3d1c3d(0x1f9)),_0x507d50=new XcrunCMD()[_0x3d1c3d(0x1d1)](),_0x507d50[_0x3d1c3d(0x1bf)](_0x606194[_0x3d1c3d(0x1eb)],_0x529363['id']),(0x0,child_process_1[_0x3d1c3d(0x1d9)])(_0x507d50[_0x3d1c3d(0x1d7)]);}static[_0x2539d6(0x1d8)](_0x536a72){const _0x7cdd85=_0x2539d6;let _0x4fb4e1=_0x536a72[_0x7cdd85(0x208)]('\x0a'),_0x48f6d6=[],_0x143531=-0x1;for(let _0x46046b=0x0;_0x46046b<_0x4fb4e1[_0x7cdd85(0x1e6)];_0x46046b++){if(_0x4fb4e1[_0x46046b][_0x7cdd85(0x1e9)](_0x7cdd85(0x1fa)))_0x143531=_0x46046b;else{if(_0x143531>0x0){if(_0x4fb4e1[_0x46046b][_0x7cdd85(0x1e9)]('--\x20'))break;if(_0x4fb4e1[_0x46046b][_0x7cdd85(0x1e6)]>0x0){const _0x586531=_0x4fb4e1[_0x46046b]['split']('('),_0x33eede={'name':_0x586531[0x0][_0x7cdd85(0x1c6)](),'deviceId':_0x586531[0x1][_0x7cdd85(0x208)](')')[0x0]['trim'](),'state':_0x586531[0x2][_0x7cdd85(0x208)](')')[0x0]['trim']()};_0x48f6d6['push'](_0x33eede);}}}}return _0x48f6d6;}}exports[_0x2539d6(0x1d4)]=Xcrun;class XcrunCMD{constructor(){const _0x15a537=_0x2539d6;this[_0x15a537(0x1d7)]=_0x15a537(0x1f4);}[_0x2539d6(0x1ec)](){const _0x1aa130=_0x2539d6;return this['line']+=_0x1aa130(0x1e1),this;}[_0x2539d6(0x1d1)](){const _0x145b13=_0x2539d6;return this['line']+=_0x145b13(0x1e4),this;}[_0x2539d6(0x1d0)](){const _0x1f3143=_0x2539d6;return this[_0x1f3143(0x1d7)]+=_0x1f3143(0x1c9),this;}[_0x2539d6(0x1db)](_0x3bbfda){const _0x27524f=_0x2539d6;return this[_0x27524f(0x1d7)]+=_0x27524f(0x1c5)+_0x3bbfda+'\x22',this;}[_0x2539d6(0x1ba)](_0x58ac26){const _0x582f53=_0x2539d6;return this[_0x582f53(0x1d7)]+=_0x582f53(0x1cb)+_0x58ac26,this;}[_0x2539d6(0x205)](_0x4645d5){const _0xadfe45=_0x2539d6;return this[_0xadfe45(0x1d7)]+=_0xadfe45(0x1fe)+_0x4645d5,this;}[_0x2539d6(0x1b8)](_0x46ece8){const _0x423d07=_0x2539d6;return this[_0x423d07(0x1d7)]+=_0x423d07(0x1f2)+_0x46ece8,this;}[_0x2539d6(0x207)](_0x11ddb1,_0x54d382){const _0x37ccab=_0x2539d6;return this[_0x37ccab(0x1d7)]+=_0x37ccab(0x1e3)+_0x11ddb1+_0x37ccab(0x1dc)+_0x54d382,this;}[_0x2539d6(0x1cd)](_0x1e5333,_0x24b837){const _0xc019bf=_0x2539d6;return this[_0xc019bf(0x1d7)]+=_0xc019bf(0x204)+_0x1e5333+'\x20--apiIssuer\x20'+_0x24b837,this;}['appleId'](_0x2cf965){const _0x4fa532=_0x2539d6;return this[_0x4fa532(0x1d7)]+=_0x4fa532(0x1ca)+_0x2cf965,this;}['platform'](_0x330c42){const _0x3a22d7=_0x2539d6;return this[_0x3a22d7(0x1d7)]+='\x20-t\x20'+_0x330c42,this;}[_0x2539d6(0x1cc)](_0x9ef633){const _0x2a8f86=_0x2539d6;return this['line']+=_0x2a8f86(0x1bd)+_0x9ef633,this;}[_0x2539d6(0x1be)](){const _0x520a09=_0x2539d6;return this[_0x520a09(0x1d7)]+=_0x520a09(0x1e7),this;}['shutdown'](){const _0xb4a821=_0x2539d6;return this[_0xb4a821(0x1d7)]+=_0xb4a821(0x1c0),this;}['boot'](_0x443b6e){const _0x3acb46=_0x2539d6;return this[_0x3acb46(0x1d7)]+=_0x3acb46(0x1f3)+_0x443b6e+'\x22',this;}['install'](_0x4c8436,_0xfdac3b){const _0x3cc398=_0x2539d6;return this['line']+='\x20install\x20\x22'+_0x4c8436+_0x3cc398(0x1cf)+_0xfdac3b+'\x22',this;}[_0x2539d6(0x1bf)](_0x111e48,_0x1cdfda){const _0x34f32b=_0x2539d6;return this[_0x34f32b(0x1d7)]+=_0x34f32b(0x1e8)+_0x111e48+_0x34f32b(0x1cf)+_0x1cdfda+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sharp": "^0.33.5",
|
|
39
39
|
"valid-url": "^1.0.9",
|
|
40
40
|
"xcode": "^3.0.1",
|
|
41
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
41
|
+
"@webspatial/platform-visionos": "^0.1.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@rollup/plugin-terser": "^0.4.3",
|