@webspatial/builder 0.0.5 → 0.0.7
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.d.ts +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +1 -1
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +20 -3
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +1 -0
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +124 -125
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +5 -1
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +80 -40
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +34 -10
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3dceaa=_0xbde6;(function(_0x39bcf0,_0x57ae3e){const _0x216db1=_0xbde6,_0x23b1f4=_0x39bcf0();while(!![]){try{const _0x4c12bd=parseInt(_0x216db1(0x17d))/0x1*(parseInt(_0x216db1(0x18f))/0x2)+-parseInt(_0x216db1(0x198))/0x3+-parseInt(_0x216db1(0x186))/0x4+-parseInt(_0x216db1(0x196))/0x5+-parseInt(_0x216db1(0x180))/0x6*(parseInt(_0x216db1(0x17e))/0x7)+parseInt(_0x216db1(0x17f))/0x8*(parseInt(_0x216db1(0x193))/0x9)+parseInt(_0x216db1(0x190))/0xa;if(_0x4c12bd===_0x57ae3e)break;else _0x23b1f4['push'](_0x23b1f4['shift']());}catch(_0x2cf61b){_0x23b1f4['push'](_0x23b1f4['shift']());}}}(_0x277f,0x4468a));function _0xbde6(_0x20f5c0,_0x1193d2){const _0x277fd7=_0x277f();return _0xbde6=function(_0xbde60b,_0x7e9089){_0xbde60b=_0xbde60b-0x17d;let _0x28a4c6=_0x277fd7[_0xbde60b];return _0x28a4c6;},_0xbde6(_0x20f5c0,_0x1193d2);}Object[_0x3dceaa(0x191)](exports,_0x3dceaa(0x194),{'value':!![]});function _0x277f(){const _0x1f7ec9=['./lib/utils/CustomError','code','isArray','833292GyYufr','error','./lib/Cli','forEach','exit','message','ConsoleLog','run','Cli','485448OilUox','2034610RsAtvb','defineProperty','slice','3883743JEdTji','__esModule','argv','214750XvKnsQ','./lib/utils/Log','140721JAazSw','2YaExNq','14eTRshN','8NCLfqg','1626162VfZQZs','customMessage','cli'];_0x277f=function(){return _0x1f7ec9;};return _0x277f();}const Cli_1=require(_0x3dceaa(0x188)),Log_1=require(_0x3dceaa(0x197)),CustomError_1=require(_0x3dceaa(0x183));module['exports']=async()=>{const _0x483953=_0x3dceaa,_0x2627eb=new Cli_1[(_0x483953(0x18e))](),_0x222c5c=new Log_1[(_0x483953(0x18c))](_0x483953(0x182)),_0x5872f3=process[_0x483953(0x195)][_0x483953(0x192)](0x2);let _0x5d5440;try{_0x5d5440=await _0x2627eb[_0x483953(0x18d)](_0x5872f3);}catch(_0x2c7496){if(_0x2c7496 instanceof CustomError_1['CustomError']){const _0x3c4188=_0x2c7496[_0x483953(0x181)];Array[_0x483953(0x185)](_0x3c4188)?_0x3c4188[_0x483953(0x189)](_0x1e0c9e=>{const _0x3caad7=_0x483953;_0x222c5c['error'](_0x1e0c9e[_0x3caad7(0x184)]+':\x20'+_0x1e0c9e[_0x3caad7(0x18b)]);}):_0x222c5c[_0x483953(0x187)](_0x3c4188[_0x483953(0x184)]+':\x20'+_0x3c4188['message']);}else _0x222c5c[_0x483953(0x187)](_0x2c7496['message']);_0x5d5440=![];}!_0x5d5440?process['exit'](0x1):process[_0x483953(0x18a)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2c828b=_0xa08b;(function(_0x37f954,_0xdc1f9d){const _0x1b58b9=_0xa08b,_0xd38f18=_0x37f954();while(!![]){try{const _0x1c1888=-parseInt(_0x1b58b9(0x1ab))/0x1*(parseInt(_0x1b58b9(0x1bb))/0x2)+-parseInt(_0x1b58b9(0x1c2))/0x3*(-parseInt(_0x1b58b9(0x19e))/0x4)+-parseInt(_0x1b58b9(0x1b9))/0x5*(-parseInt(_0x1b58b9(0x1ae))/0x6)+parseInt(_0x1b58b9(0x1a0))/0x7+-parseInt(_0x1b58b9(0x1af))/0x8*(-parseInt(_0x1b58b9(0x1b3))/0x9)+-parseInt(_0x1b58b9(0x19c))/0xa*(parseInt(_0x1b58b9(0x1b5))/0xb)+parseInt(_0x1b58b9(0x1a4))/0xc*(-parseInt(_0x1b58b9(0x1ba))/0xd);if(_0x1c1888===_0xdc1f9d)break;else _0xd38f18['push'](_0xd38f18['shift']());}catch(_0x26e3f7){_0xd38f18['push'](_0xd38f18['shift']());}}}(_0xfbd2,0x268f8));Object[_0x2c828b(0x19d)](exports,_0x2c828b(0x1a1),{'value':!![]}),exports['Cli']=void 0x0;function _0xa08b(_0x582553,_0x5a4472){const _0xfbd2d1=_0xfbd2();return _0xa08b=function(_0xa08bea,_0x4f9007){_0xa08bea=_0xa08bea-0x198;let _0x38ba31=_0xfbd2d1[_0xa08bea];return _0x38ba31;},_0xa08b(_0x582553,_0x5a4472);}const minimist=require(_0x2c828b(0x1b6)),semver_1=require(_0x2c828b(0x1bd)),FetchUtils_1_1=require(_0x2c828b(0x1b1)),help_1=require(_0x2c828b(0x1be)),build_1=require(_0x2c828b(0x1b8)),version_1=require(_0x2c828b(0x1a9)),fetch_1=require(_0x2c828b(0x19f));class Cli{async[_0x2c828b(0x19b)](_0x38b447){const _0x4ca313=_0x2c828b;if((0x0,semver_1[_0x4ca313(0x199)])(process['versions']['node'])<0xe)throw new Error(_0x4ca313(0x1bc)+process[_0x4ca313(0x1a6)][_0x4ca313(0x19a)]+'.'+_0x4ca313(0x1c1));FetchUtils_1_1[_0x4ca313(0x1bf)][_0x4ca313(0x1a8)](fetch_1[_0x4ca313(0x1ad)]),FetchUtils_1_1[_0x4ca313(0x1bf)][_0x4ca313(0x1aa)](fetch_1[_0x4ca313(0x1ac)]),FetchUtils_1_1[_0x4ca313(0x1bf)][_0x4ca313(0x1a5)](fetch_1[_0x4ca313(0x1b4)]);const _0x43da4f=minimist(_0x38b447);let _0x1129c2=undefined;if(_0x43da4f['_'][_0x4ca313(0x1b0)]===0x0){if(_0x43da4f[_0x4ca313(0x198)])_0x1129c2='version';else _0x43da4f[_0x4ca313(0x1a7)]&&(_0x1129c2=_0x4ca313(0x1a7));}else _0x1129c2=_0x43da4f['_'][0x0];!_0x1129c2&&(_0x1129c2=_0x4ca313(0x1a7));switch(_0x1129c2){case _0x4ca313(0x1a7):case'h':return await(0x0,help_1[_0x4ca313(0x1a7)])(_0x43da4f);case _0x4ca313(0x1b2):return await(0x0,build_1[_0x4ca313(0x1a2)])(_0x43da4f);case'publish':return await(0x0,build_1[_0x4ca313(0x1a3)])(_0x43da4f);case _0x4ca313(0x1b7):return await(0x0,build_1['dev'])(_0x43da4f);case'version':{return await(0x0,version_1[_0x4ca313(0x198)])();}default:throw new Error('\x22'+_0x1129c2+_0x4ca313(0x1c0));}}}function _0xfbd2(){const _0x483956=['682980ESbqaK','setDecompressResponseBuffer','versions','help','setFetch','./cmds/version','setDownloadFile','35454bhrBCB','downloadFile','fetch','437214WJvRht','153568BkRTwL','length','./utils/FetchUtils-1','build','9LLsIIV','decompressResponseBuffer','11FjhtZA','minimist','dev','./cmds/build','10ruKxpE','13TYBQSj','6irglvD','Current\x20Node.js\x20version\x20is\x20','semver','./cmds/help','fetchUtils','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','3xWHaBr','version','major','node','run','2550130ZVdNLn','defineProperty','859756tmpiQg','./utils/fetch','1374527zfAxEj','__esModule','start','store'];_0xfbd2=function(){return _0x483956;};return _0xfbd2();}exports['Cli']=Cli;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5d21e4=_0x2d5a;(function(_0x48c70e,_0x2fee66){const _0x151f8c=_0x2d5a,_0x9cf4a=_0x48c70e();while(!![]){try{const _0x450ba8=-parseInt(_0x151f8c(0x1c4))/0x1+-parseInt(_0x151f8c(0x1d3))/0x2+-parseInt(_0x151f8c(0x1cf))/0x3*(parseInt(_0x151f8c(0x1c7))/0x4)+parseInt(_0x151f8c(0x1cd))/0x5*(parseInt(_0x151f8c(0x1d8))/0x6)+parseInt(_0x151f8c(0x1c9))/0x7*(-parseInt(_0x151f8c(0x1d7))/0x8)+-parseInt(_0x151f8c(0x1c8))/0x9+parseInt(_0x151f8c(0x1e7))/0xa*(parseInt(_0x151f8c(0x1cb))/0xb);if(_0x450ba8===_0x2fee66)break;else _0x9cf4a['push'](_0x9cf4a['shift']());}catch(_0x553dac){_0x9cf4a['push'](_0x9cf4a['shift']());}}}(_0x1f13,0x948d7));Object[_0x5d21e4(0x1e4)](exports,'__esModule',{'value':!![]}),exports[_0x5d21e4(0x1e0)]=start,exports['store']=store,exports[_0x5d21e4(0x1df)]=dev;function _0x1f13(){const _0x2b44cb=['com.SpatialWeb.test','../resource','327486WkYaHZ','move\x20web\x20project:\x20ok','generate\x20icon:\x20ok','4rtoCPH','5843412BPdQnq','161735lHmXkz','parseProject','91124KVxUVu','checkStoreParams','40DJAwnq','SpatialWebTest','3403965jWvoIh','name','buildType','generateIcon','1017750uDbyuq','log','-------------------\x20build\x20end\x20-------------------','upload','8RbDykq','158724ZUAmJN','XcodeManager','../xcode','fromNet','./check','ResourceManager','PWAGenerator','dev','start','checkBuildParams','json','version','defineProperty','-------------------\x20build\x20start\x20-------------------','app-store-connect','3670VkCRyV'];_0x1f13=function(){return _0x2b44cb;};return _0x1f13();}function _0x2d5a(_0x59963f,_0x5326c4){const _0x1f13b8=_0x1f13();return _0x2d5a=function(_0x2d5af4,_0x19d134){_0x2d5af4=_0x2d5af4-0x1c4;let _0x585cd1=_0x1f13b8[_0x2d5af4];return _0x585cd1;},_0x2d5a(_0x59963f,_0x5326c4);}const pwa_1=require('../pwa'),resource_1=require(_0x5d21e4(0x1e9)),xcode_1=require(_0x5d21e4(0x1da)),check_1=require(_0x5d21e4(0x1dc));async function start(_0x4357fa,_0x4a1c2c=![]){const _0x494df3=_0x5d21e4;(0x0,check_1[_0x494df3(0x1e1)])(_0x4357fa,_0x4a1c2c),console['log'](_0x494df3(0x1e5));let _0x58f243=await pwa_1[_0x494df3(0x1de)]['generator'](_0x4357fa,_0x4a1c2c);!_0x58f243[_0x494df3(0x1db)]&&(await resource_1[_0x494df3(0x1dd)]['moveProjectFrom'](_0x4357fa['project']),console['log'](_0x494df3(0x1c5)));const _0xf170e8=await resource_1[_0x494df3(0x1dd)][_0x494df3(0x1d2)](_0x58f243);return console[_0x494df3(0x1d4)](_0x494df3(0x1c6)),await xcode_1[_0x494df3(0x1d9)][_0x494df3(0x1ca)]({'icon':_0xf170e8,'manifestInfo':_0x58f243,'teamId':_0x4357fa['teamId'],'version':_0x4357fa[_0x494df3(0x1e3)],'buildType':_0x4357fa['buildType'],'export':_0x4357fa['export']},_0x4a1c2c),console['log'](_0x494df3(0x1d5)),_0x58f243;}async function store(_0x11afa5){const _0x356e5f=_0x5d21e4;(0x0,check_1[_0x356e5f(0x1cc)])(_0x11afa5);let _0xe06f45={'name':'SpatialWebTest'};_0x11afa5[_0x356e5f(0x1d1)]=_0x356e5f(0x1e6);if(_0x11afa5[_0x356e5f(0x1d0)])_0xe06f45[_0x356e5f(0x1d0)]=_0x11afa5['name'];else{const _0xb419d2=await start(_0x11afa5);if(!_0xb419d2)return![];_0xe06f45[_0x356e5f(0x1d0)]=_0xb419d2[_0x356e5f(0x1e2)][_0x356e5f(0x1d0)];}return await xcode_1[_0x356e5f(0x1d9)][_0x356e5f(0x1d6)](_0x11afa5,_0xe06f45),!![];}async function dev(_0x6fc2dd){const _0x107479=_0x5d21e4;let _0x5aa796={'name':_0x107479(0x1ce),'id':_0x107479(0x1e8)};const _0x2ee511=await start(_0x6fc2dd,!![]);if(!_0x2ee511)return![];return _0x5aa796[_0x107479(0x1d0)]=_0x2ee511[_0x107479(0x1e2)][_0x107479(0x1d0)],_0x5aa796['id']=_0x2ee511[_0x107479(0x1e2)]['id'],await xcode_1[_0x107479(0x1d9)]['runWithSimulator'](_0x5aa796),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(_0x5b0dc4,_0x414322){var _0x27d368=_0x3218,_0x9af4b3=_0x5b0dc4();while(!![]){try{var _0x760359=parseInt(_0x27d368(0x92))/0x1+parseInt(_0x27d368(0x9a))/0x2+parseInt(_0x27d368(0x99))/0x3*(parseInt(_0x27d368(0x91))/0x4)+-parseInt(_0x27d368(0x9c))/0x5+parseInt(_0x27d368(0x96))/0x6*(-parseInt(_0x27d368(0x9d))/0x7)+-parseInt(_0x27d368(0x9b))/0x8+-parseInt(_0x27d368(0x97))/0x9*(-parseInt(_0x27d368(0x90))/0xa);if(_0x760359===_0x414322)break;else _0x9af4b3['push'](_0x9af4b3['shift']());}catch(_0xce022){_0x9af4b3['push'](_0x9af4b3['shift']());}}}(_0x43b5,0xce19a));function _0x3218(_0x29b5d0,_0x213ae5){var _0x43b52d=_0x43b5();return _0x3218=function(_0x3218e0,_0x2fd901){_0x3218e0=_0x3218e0-0x8e;var _0x4323e4=_0x43b52d[_0x3218e0];return _0x4323e4;},_0x3218(_0x29b5d0,_0x213ae5);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports['checkStoreParams']=checkStoreParams;function checkBuildParams(_0x122204,_0x518d0c=![]){var _0x192cc2=_0x3218;if(!_0x122204[_0x192cc2(0x94)]&&!_0x122204[_0x192cc2(0x9f)])throw new Error(_0x192cc2(0x9e));if(_0x122204[_0x192cc2(0x94)]&&_0x122204['manifest-url'])throw new Error(_0x192cc2(0x93));if(!_0x122204['teamId']&&!_0x518d0c)throw new Error(_0x192cc2(0x98));}function checkStoreParams(_0x44a151){var _0x1d4758=_0x3218;if(!(_0x44a151['u']&&_0x44a151['p'])&&!(_0x44a151['k']&&_0x44a151['i']))throw new Error(_0x1d4758(0x8e));if(!_0x44a151[_0x1d4758(0x95)])throw new Error(_0x1d4758(0x8f));}function _0x43b5(){var _0x42689e=['6ZxXPzO','2394855MIznYv','teamId\x20is\x20required','1212WsqDgG','218738IJvvVY','7611664LLlStK','400680OzymRj','7226268WbxLnP','manifest\x20or\x20manifest-url\x20is\x20required','manifest-url','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','version\x20is\x20required','20GQddSo','15508ieZDXP','700237FRuqgS','manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','manifest','version'];_0x43b5=function(){return _0x42689e;};return _0x43b5();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5912d9=_0x93ca;(function(_0x43613f,_0x2c8f6f){const _0x4e1398=_0x93ca,_0x20e0de=_0x43613f();while(!![]){try{const _0x5eba2a=parseInt(_0x4e1398(0xbc))/0x1*(parseInt(_0x4e1398(0xc2))/0x2)+parseInt(_0x4e1398(0xc0))/0x3*(-parseInt(_0x4e1398(0xc6))/0x4)+parseInt(_0x4e1398(0xc3))/0x5+-parseInt(_0x4e1398(0xc1))/0x6+-parseInt(_0x4e1398(0xc8))/0x7+-parseInt(_0x4e1398(0xb6))/0x8*(-parseInt(_0x4e1398(0xad))/0x9)+-parseInt(_0x4e1398(0xb4))/0xa*(-parseInt(_0x4e1398(0xaf))/0xb);if(_0x5eba2a===_0x2c8f6f)break;else _0x20e0de['push'](_0x20e0de['shift']());}catch(_0xbefc50){_0x20e0de['push'](_0x20e0de['shift']());}}}(_0x18f4,0x32d29));Object[_0x5912d9(0xbe)](exports,_0x5912d9(0xb8),{'value':!![]}),exports[_0x5912d9(0xb9)]=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([['main',['webspatial\x20[command]\x20<options>','','',_0x5912d9(0xae),_0x5912d9(0xc4)+_0x5912d9(0xb2),_0x5912d9(0xb1),_0x5912d9(0xc5)][_0x5912d9(0xbf)]('\x0a')],['build',[_0x5912d9(0xb5),'','','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]'][_0x5912d9(0xbf)]('\x0a')],[_0x5912d9(0xb0),[_0x5912d9(0xb5),'','',_0x5912d9(0xbb),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x5912d9(0xbf)]('\x0a')],['publish',['Usage:','','',_0x5912d9(0xb7),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x5912d9(0xb3)][_0x5912d9(0xbf)]('\x0a')]]);function _0x18f4(){const _0x3e6d87=['35410XzZWPl','Usage:','1130056WxxArB','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>','__esModule','help','main','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','149865EiSFrm','get','defineProperty','join','1036683JqPNHn','2242014isQKIa','2mgwgOf','478050FtBmXy','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','4AUZNcs','info','2907821FtrAAN','9ffPHIN','help\x20................\x20shows\x20this\x20menu','2970eYYpGy','dev','dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>'];_0x18f4=function(){return _0x3e6d87;};return _0x18f4();}function _0x93ca(_0x9b7a8a,_0x4fc266){const _0x18f4e4=_0x18f4();return _0x93ca=function(_0x93cadb,_0x41b4b9){_0x93cadb=_0x93cadb-0xad;let _0x15a2e=_0x18f4e4[_0x93cadb];return _0x15a2e;},_0x93ca(_0x9b7a8a,_0x4fc266);}async function help(_0x53ff0e,_0x2cb3b8=new Log_1['ConsoleLog']('help')){const _0x113640=_0x5912d9,_0x3e37e3=_0x53ff0e['_'][0x1],_0x3517f4=HELP_MESSAGES[_0x113640(0xbd)](_0x3e37e3)||HELP_MESSAGES['get'](_0x113640(0xba));return _0x2cb3b8[_0x113640(0xc7)](_0x3517f4),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5c80bb=_0x49fb;function _0x49fb(_0x293eb2,_0x511ca1){const _0x304346=_0x3043();return _0x49fb=function(_0x49fbf1,_0x20b160){_0x49fbf1=_0x49fbf1-0x100;let _0x33c470=_0x304346[_0x49fbf1];return _0x33c470;},_0x49fb(_0x293eb2,_0x511ca1);}function _0x3043(){const _0x4a3f1d=['../utils/Log','848aiClbf','898281FTSwZD','6836510dCoaTM','join','__esModule','9573984awUUCs','420xxrwga','readFile','ConsoleLog','toString','version','43141GoprEH','../../../package.json','7580VNbcly','defineProperty','info','19828180cnZLfB','10405BKOwey','214CTxyvj'];_0x3043=function(){return _0x4a3f1d;};return _0x3043();}(function(_0xdc96a,_0x3a6782){const _0x222b06=_0x49fb,_0x4c3c44=_0xdc96a();while(!![]){try{const _0x718494=-parseInt(_0x222b06(0x112))/0x1*(parseInt(_0x222b06(0x113))/0x2)+parseInt(_0x222b06(0x107))/0x3*(-parseInt(_0x222b06(0x10e))/0x4)+parseInt(_0x222b06(0x103))/0x5+-parseInt(_0x222b06(0x106))/0x6+parseInt(_0x222b06(0x10c))/0x7*(parseInt(_0x222b06(0x101))/0x8)+-parseInt(_0x222b06(0x102))/0x9+parseInt(_0x222b06(0x111))/0xa;if(_0x718494===_0x3a6782)break;else _0x4c3c44['push'](_0x4c3c44['shift']());}catch(_0x2dc1de){_0x4c3c44['push'](_0x4c3c44['shift']());}}}(_0x3043,0xe2e0a));Object[_0x5c80bb(0x10f)](exports,_0x5c80bb(0x105),{'value':!![]}),exports[_0x5c80bb(0x10b)]=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x5c80bb(0x100));async function version(_0x242292=new Log_1[(_0x5c80bb(0x109))](_0x5c80bb(0x10b))){const _0x14c7ce=_0x5c80bb,_0x5e5399=path[_0x14c7ce(0x104)](__dirname,_0x14c7ce(0x10d)),_0x3c219e=await(await fs['promises'][_0x14c7ce(0x108)](_0x5e5399))[_0x14c7ce(0x10a)](),_0x2ce413=JSON['parse'](_0x3c219e);return _0x242292[_0x14c7ce(0x110)](_0x2ce413[_0x14c7ce(0x10b)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x18c74e=_0x25da;(function(_0x5a009c,_0x46fb2f){const _0xd77819=_0x25da,_0x40d29f=_0x5a009c();while(!![]){try{const _0x10bc1c=-parseInt(_0xd77819(0x93))/0x1*(parseInt(_0xd77819(0x8f))/0x2)+-parseInt(_0xd77819(0xb4))/0x3+parseInt(_0xd77819(0x99))/0x4+-parseInt(_0xd77819(0xb5))/0x5+-parseInt(_0xd77819(0x85))/0x6*(parseInt(_0xd77819(0x8e))/0x7)+parseInt(_0xd77819(0x8c))/0x8+parseInt(_0xd77819(0x84))/0x9*(parseInt(_0xd77819(0xbf))/0xa);if(_0x10bc1c===_0x46fb2f)break;else _0x40d29f['push'](_0x40d29f['shift']());}catch(_0xba9be4){_0x40d29f['push'](_0x40d29f['shift']());}}}(_0x3ae5,0xba559));function _0x25da(_0x1d468b,_0x510670){const _0x3ae568=_0x3ae5();return _0x25da=function(_0x25daed,_0x38b52d){_0x25daed=_0x25daed-0x84;let _0x6793e7=_0x3ae568[_0x25daed];return _0x6793e7;},_0x25da(_0x1d468b,_0x510670);}Object[_0x18c74e(0xc4)](exports,_0x18c74e(0x8b),{'value':!![]}),exports['safelist']=void 0x0,exports[_0x18c74e(0xb3)]=configId,exports[_0x18c74e(0xb0)]=configStartUrl,exports['configScope']=configScope,exports['configDisplay']=configDisplay,exports[_0x18c74e(0xbe)]=configMainScene,exports[_0x18c74e(0x8a)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require('./validate'),path_1=require(_0x18c74e(0xac));function configId(_0x453ebd){const _0x211227=_0x18c74e,_0x14718f=new URL(_0x453ebd['id']);let _0x4f00b1=_0x14718f[_0x211227(0xb6)][_0x211227(0xb9)]('.')['reverse']();_0x453ebd['id']=_0x4f00b1['join']('.');}function configStartUrl(_0xeb4e5e,_0x27de17,_0x435641){const _0x454261=_0x18c74e,_0x1f2cc8=(0x0,validate_1[_0x454261(0xc3)])(_0xeb4e5e[_0x454261(0xa1)]);let _0x2ac523=_0xeb4e5e[_0x454261(0xa1)];_0x435641?!_0x1f2cc8&&(_0x2ac523=(0x0,path_1['join'])((0x0,utils_1[_0x454261(0xc0)])(_0x27de17),_0xeb4e5e['start_url'])):!_0x1f2cc8&&(_0x2ac523=(0x0,path_1[_0x454261(0xae)])('./static-web',_0xeb4e5e['start_url'])),_0xeb4e5e[_0x454261(0xa1)]=_0x2ac523;}function configScope(_0x557bcd,_0x2e9122){const _0x3cbed1=_0x18c74e;var _0x20ce0b,_0x2447ea,_0x35eb44;let _0x577728='';const _0x543361=(0x0,validate_1[_0x3cbed1(0xc3)])(_0x557bcd[_0x3cbed1(0x8d)]);if(_0x2e9122&&_0x543361){const _0x44b490=new URL((_0x20ce0b=_0x557bcd[_0x3cbed1(0x8d)])!==null&&_0x20ce0b!==void 0x0?_0x20ce0b:''),_0x3b77e1=new URL(_0x557bcd[_0x3cbed1(0xa1)]);(_0x44b490[_0x3cbed1(0xb6)]!==_0x3b77e1[_0x3cbed1(0xb6)]||_0x557bcd['start_url'][_0x3cbed1(0xad)](_0x577728)!==0x0)&&(_0x577728=(0x0,utils_1[_0x3cbed1(0xc0)])(_0x557bcd[_0x3cbed1(0xa1)]));}else{if(_0x2e9122&&!_0x543361){const _0x2ae742=_0x557bcd[_0x3cbed1(0xa1)][_0x3cbed1(0xad)](_0x3cbed1(0xbc))===0x0?_0x3cbed1(0xbc):_0x3cbed1(0x9f);_0x577728=(0x0,path_1[_0x3cbed1(0xae)])(_0x557bcd[_0x3cbed1(0xa1)]['replace'](_0x2ae742,''),(_0x2447ea=_0x557bcd[_0x3cbed1(0x8d)])!==null&&_0x2447ea!==void 0x0?_0x2447ea:''),_0x577728=_0x2ae742+_0x577728;}else _0x577728=(0x0,path_1['join'])((0x0,utils_1[_0x3cbed1(0xc0)])(_0x557bcd['start_url']),(_0x35eb44=_0x557bcd[_0x3cbed1(0x8d)])!==null&&_0x35eb44!==void 0x0?_0x35eb44:'');}_0x557bcd['scope']=_0x577728;}function configDisplay(_0x2595e5){const _0x3c20d8=_0x18c74e;let _0x3ad48c=_0x2595e5['display'];_0x3ad48c!=='minimal-ui'&&_0x3ad48c!==_0x3c20d8(0xaf)&&(_0x3ad48c=_0x3c20d8(0xaf));if(_0x2595e5[_0x3c20d8(0xb2)]&&_0x2595e5[_0x3c20d8(0xb2)][_0x3c20d8(0xbd)]>0x0){const _0xc874ea=_0x2595e5['display_override'][_0x3c20d8(0xad)](_0x3c20d8(0xbb)),_0x4540e4=_0x2595e5[_0x3c20d8(0xb2)][_0x3c20d8(0xad)]('standalone');if(_0xc874ea>=0x0&&_0x4540e4>=0x0)_0x3ad48c=_0x4540e4>_0xc874ea?'standalone':_0x3c20d8(0xbb);else{if(_0xc874ea>=0x0)_0x3ad48c='minimal-ui';else _0x4540e4>=0x0&&(_0x3ad48c=_0x3c20d8(0xaf));}}}function configMainScene(_0x4c506e){const _0x180bac=_0x18c74e;var _0x4017da,_0x49f15a;const _0x40cf9f=[_0x180bac(0x9c),_0x180bac(0xc6),_0x180bac(0xc7)];let _0x802c0a={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x180bac(0x9c)};_0x4c506e[_0x180bac(0x9b)]&&(_0x802c0a[_0x180bac(0x94)][_0x180bac(0xba)]=Number((_0x4017da=_0x4c506e['xr_main_scene']['default_size'])===null||_0x4017da===void 0x0?void 0x0:_0x4017da[_0x180bac(0xba)])>0x0?_0x4c506e[_0x180bac(0x9b)][_0x180bac(0xa5)][_0x180bac(0xba)]:0x500,_0x802c0a[_0x180bac(0x94)]['height']=Number((_0x49f15a=_0x4c506e[_0x180bac(0x9b)][_0x180bac(0xa5)])===null||_0x49f15a===void 0x0?void 0x0:_0x49f15a[_0x180bac(0xb7)])>0x0?_0x4c506e[_0x180bac(0x9b)][_0x180bac(0xa5)][_0x180bac(0xb7)]:0x500,_0x802c0a[_0x180bac(0x9e)]=_0x40cf9f['includes'](_0x4c506e[_0x180bac(0x9b)][_0x180bac(0x9e)])?_0x4c506e[_0x180bac(0x9b)][_0x180bac(0x9e)]:_0x180bac(0x9c)),_0x4c506e[_0x180bac(0x98)]=_0x802c0a;}function configDeeplink(_0x365d9a){const _0x368872=_0x18c74e;if(_0x365d9a[_0x368872(0xb1)]&&_0x365d9a[_0x368872(0xb1)][_0x368872(0xbd)]>0x0)for(var _0x3e9c05=0x0;_0x3e9c05<_0x365d9a[_0x368872(0xb1)][_0x368872(0xbd)];_0x3e9c05++){const _0x36e820=_0x365d9a[_0x368872(0xb1)][_0x3e9c05];if(_0x36e820[_0x368872(0xaa)]&&(exports[_0x368872(0x87)][_0x368872(0x90)](_0x36e820['protocol'])||_0x36e820[_0x368872(0xaa)][_0x368872(0xad)](_0x368872(0xa8))===0x0)){if(!((0x0,validate_1[_0x368872(0xc3)])(_0x36e820[_0x368872(0x88)])&&_0x36e820[_0x368872(0x88)][_0x368872(0xad)](_0x365d9a[_0x368872(0x8d)])<0x0))continue;}_0x365d9a[_0x368872(0xb1)][_0x368872(0xa7)](_0x3e9c05,0x1),_0x3e9c05--;}}exports['safelist']=[_0x18c74e(0xa6),_0x18c74e(0xb8),_0x18c74e(0xa9),'geo','im',_0x18c74e(0x86),_0x18c74e(0xc2),_0x18c74e(0x95),_0x18c74e(0x91),_0x18c74e(0xa3),_0x18c74e(0x96),_0x18c74e(0x92),_0x18c74e(0x97),_0x18c74e(0xa4),_0x18c74e(0x9d),_0x18c74e(0x9a),_0x18c74e(0xa0),_0x18c74e(0x89),_0x18c74e(0xc5),_0x18c74e(0xa2),_0x18c74e(0xc8),_0x18c74e(0xc1),'wtai',_0x18c74e(0xab)];function _0x3ae5(){const _0x4c71fc=['scope','1340542MvbAhk','1008078RzDhlK','includes','mailto','news','2Uyvjhj','defaultSize','magnet','mms','nntp','mainScene','1398924hIBWPi','sip','xr_main_scene','automatic','sftp','resizability','https://','sms','start_url','tel','matrix','openpgp4fpr','default_size','bitcoin','splice','web+','ftps','protocol','xmpp','path','indexOf','join','standalone','configStartUrl','protocol_handlers','display_override','configId','2424777abHJDk','7579955vuuyal','host','height','ftp','split','width','minimal-ui','http://','length','configMainScene','10eVwzCy','parseRouter','webcal','ircs','validateURL','defineProperty','ssh','contentMinSize','contentSize','urn','29617722fISfPv','12bQdoit','irc','safelist','url','smsto','configDeeplink','__esModule','6703808nfMXzj'];_0x3ae5=function(){return _0x4c71fc;};return _0x3ae5();}
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x49fdf5=_0x4f46;(function(_0x1a3f07,_0x3ba8f8){const _0x18d0a5=_0x4f46,_0x125134=_0x1a3f07();while(!![]){try{const _0x280c52=-parseInt(_0x18d0a5(0x1bf))/0x1*(-parseInt(_0x18d0a5(0x1c3))/0x2)+parseInt(_0x18d0a5(0x1d7))/0x3+-parseInt(_0x18d0a5(0x1c7))/0x4*(-parseInt(_0x18d0a5(0x1c4))/0x5)+-parseInt(_0x18d0a5(0x1db))/0x6*(-parseInt(_0x18d0a5(0x1d1))/0x7)+-parseInt(_0x18d0a5(0x1ca))/0x8+-parseInt(_0x18d0a5(0x1c0))/0x9*(-parseInt(_0x18d0a5(0x1cc))/0xa)+-parseInt(_0x18d0a5(0x1d5))/0xb;if(_0x280c52===_0x3ba8f8)break;else _0x125134['push'](_0x125134['shift']());}catch(_0x101d26){_0x125134['push'](_0x125134['shift']());}}}(_0x2d19,0x66e40));function _0x4f46(_0x131cd8,_0x4b9022){const _0x2d197e=_0x2d19();return _0x4f46=function(_0x4f46bb,_0x39bcbc){_0x4f46bb=_0x4f46bb-0x1bb;let _0x2738a1=_0x2d197e[_0x4f46bb];return _0x2738a1;},_0x4f46(_0x131cd8,_0x4b9022);}Object[_0x49fdf5(0x1ce)](exports,'__esModule',{'value':!![]}),exports['PWAGenerator']=void 0x0;const path_1=require(_0x49fdf5(0x1bd)),config_1=require(_0x49fdf5(0x1be)),load_1=require(_0x49fdf5(0x1dc)),validate_1=require(_0x49fdf5(0x1c1));function _0x2d19(){const _0x525d80=['167024vnQDkx','cwd','1510VtuwwP','generator','defineProperty','checkIcons','configId','21vAIoaX','url','standalone','check\x20manifest.json:\x20ok','17185817GVVUWd','minimal-ui','378738KdyOuf','loadJsonFromNet','validate','manifest-url','278754wuWJmq','../resource/load','reset\x20manifest.json:\x20ok','loadJsonFromDisk','log','path','./config','1kUqfmt','48942EVpuSX','./validate','config','836482WKNngl','5DqEWus','configStartUrl','fromNet','1998652aSXAnR','json','manifest'];_0x2d19=function(){return _0x525d80;};return _0x2d19();}class PWAGenerator{static async[_0x49fdf5(0x1cd)](_0x21b921,_0x3a6852=![]){const _0x59572e=_0x49fdf5;let _0x3fb229=await this[_0x59572e(0x1d9)](_0x21b921,_0x3a6852);return console['log'](_0x59572e(0x1d4)),await this[_0x59572e(0x1c2)](_0x3fb229,_0x3a6852),console[_0x59572e(0x1bc)](_0x59572e(0x1dd)),_0x3fb229;}static async['validate'](_0x45befd,_0x5b8af1=![]){const _0x2ded6f=_0x49fdf5;let _0x2e7ebe={},_0x56bb37='',_0x291f14=![];if(_0x45befd['manifest-url'])_0x56bb37=_0x45befd[_0x2ded6f(0x1da)],_0x291f14=!![],_0x2e7ebe=await(0x0,load_1[_0x2ded6f(0x1d8)])(_0x45befd[_0x2ded6f(0x1da)]);else _0x45befd[_0x2ded6f(0x1c9)]&&(_0x56bb37=(0x0,path_1['join'])(process[_0x2ded6f(0x1cb)](),_0x45befd[_0x2ded6f(0x1c9)]),_0x2e7ebe=await(0x0,load_1[_0x2ded6f(0x1bb)])(_0x45befd[_0x2ded6f(0x1c9)]));(0x0,validate_1['checkManifestJson'])(_0x2e7ebe);var _0x4ef961=(0x0,validate_1['checkStartUrl'])(_0x2e7ebe,_0x56bb37,_0x291f14,_0x5b8af1);if(!_0x5b8af1)(0x0,validate_1['checkId'])(_0x2e7ebe);return await(0x0,validate_1[_0x2ded6f(0x1cf)])(_0x2e7ebe,_0x56bb37),{'json':_0x2e7ebe,'url':_0x56bb37,'fromNet':_0x4ef961};}static[_0x49fdf5(0x1c2)](_0x377542,_0x1b765e){const _0x53c530=_0x49fdf5;(0x0,config_1[_0x53c530(0x1c5)])(_0x377542[_0x53c530(0x1c8)],_0x377542[_0x53c530(0x1d2)],_0x377542['fromNet']);if(!_0x1b765e)(0x0,config_1[_0x53c530(0x1d0)])(_0x377542[_0x53c530(0x1c8)]);(0x0,config_1['configScope'])(_0x377542[_0x53c530(0x1c8)],_0x377542[_0x53c530(0x1c6)]),(0x0,config_1['configDisplay'])(_0x377542[_0x53c530(0x1c8)]),(0x0,config_1['configDeeplink'])(_0x377542['json']),(0x0,config_1['configMainScene'])(_0x377542[_0x53c530(0x1c8)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator['DisplayModes']=[_0x49fdf5(0x1d3),_0x49fdf5(0x1d6)];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2be26b=_0x1fa4;(function(_0x544f70,_0x25094c){const _0x52ac63=_0x1fa4,_0x25420a=_0x544f70();while(!![]){try{const _0x2ec6b5=-parseInt(_0x52ac63(0x149))/0x1*(-parseInt(_0x52ac63(0x15e))/0x2)+-parseInt(_0x52ac63(0x141))/0x3*(-parseInt(_0x52ac63(0x14f))/0x4)+-parseInt(_0x52ac63(0x12e))/0x5*(parseInt(_0x52ac63(0x144))/0x6)+-parseInt(_0x52ac63(0x14d))/0x7+-parseInt(_0x52ac63(0x151))/0x8*(parseInt(_0x52ac63(0x15a))/0x9)+parseInt(_0x52ac63(0x135))/0xa*(parseInt(_0x52ac63(0x160))/0xb)+-parseInt(_0x52ac63(0x136))/0xc;if(_0x2ec6b5===_0x25094c)break;else _0x25420a['push'](_0x25420a['shift']());}catch(_0x1ed134){_0x25420a['push'](_0x25420a['shift']());}}}(_0x552e,0xbe111));Object[_0x2be26b(0x14a)](exports,_0x2be26b(0x14b),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports['checkStartUrl']=checkStartUrl,exports[_0x2be26b(0x15f)]=checkIcons,exports[_0x2be26b(0x15b)]=checkId,exports[_0x2be26b(0x13d)]=validateURL;const path_1=require('path'),_1=require('.'),CustomError_1=require(_0x2be26b(0x150)),utils_1=require('../utils/utils'),imageHelper_1=require(_0x2be26b(0x13c)),load_1=require(_0x2be26b(0x158));function _0x552e(){const _0x47482b=['3848446vauisp','http://','24mvEiww','../utils/CustomError','8KTKRnR','name','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','loadImageFromDisk','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','join','ImageHelper','../resource/load','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','1179207jYqZGB','checkId','getHeight','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL','633506TItDIN','checkIcons','22LeZeQb','CustomError','startsWith','split','https://','icons','indexOf','5IbuLqs','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','start_url','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','getWidth','length','7026370TgNiBz','10260540xkDOTq','maskable','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','parseRouter','isFullyOpaque','src','../resource/imageHelper','validateURL','host','loadImageFromNet','DisplayModes','337644UZHnAQ','http','push','4298772HDLqLe','display','sizes','purpose','includes','3excfVr','defineProperty','__esModule','Local\x20manifest\x20cannot\x20package\x20network\x20project'];_0x552e=function(){return _0x47482b;};return _0x552e();}function _0x1fa4(_0xabe5c3,_0x10278c){const _0x552e13=_0x552e();return _0x1fa4=function(_0x1fa4c0,_0x4fcbf2){_0x1fa4c0=_0x1fa4c0-0x12b;let _0x50b3a0=_0x552e13[_0x1fa4c0];return _0x50b3a0;},_0x1fa4(_0xabe5c3,_0x10278c);}function checkManifestJson(_0x409c9b){const _0x11fd33=_0x2be26b;var _0x3703db;const _0x427c2c=[];!_0x409c9b[_0x11fd33(0x152)]&&!_0x409c9b['short_name']&&_0x427c2c['push']({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x3703db=_0x409c9b[_0x11fd33(0x12c)])===null||_0x3703db===void 0x0?void 0x0:_0x3703db[_0x11fd33(0x134)])&&_0x427c2c['push']({'code':0xbbf,'message':_0x11fd33(0x131),'message_staring_params':{}});!_0x409c9b[_0x11fd33(0x130)]&&_0x427c2c[_0x11fd33(0x143)]({'code':0xbc0,'message':_0x11fd33(0x155),'message_staring_params':{}});!_1['PWAGenerator'][_0x11fd33(0x140)][_0x11fd33(0x148)](_0x409c9b[_0x11fd33(0x145)])&&_0x427c2c['push']({'code':0xbc1,'message':_0x11fd33(0x12f)+(_0x11fd33(0x153)+_0x409c9b['display']+')'),'message_staring_params':{'display':_0x409c9b[_0x11fd33(0x145)]}});if(_0x427c2c[_0x11fd33(0x134)])throw new CustomError_1[(_0x11fd33(0x161))](_0x427c2c);}function checkStartUrl(_0x505577,_0x46c8b5,_0xa45840,_0x3b6a9d=![]){const _0x1b4dd2=_0x2be26b;var _0x2271dc=![];if(_0x3b6a9d)return _0x2271dc=_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)]('https://')===0x0||_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)]('http://')===0x0,_0x2271dc;if(_0xa45840){if(_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)]('https://')==0x0){const _0x39547d=new URL(_0x505577[_0x1b4dd2(0x130)]),_0x4ad6b2=new URL(_0x46c8b5);if(_0x39547d[_0x1b4dd2(0x13e)]!==_0x4ad6b2[_0x1b4dd2(0x13e)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1b4dd2(0x132),'message_staring_params':{}});}else{if(_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)](_0x1b4dd2(0x14e))==0x0)throw new CustomError_1[(_0x1b4dd2(0x161))]({'code':0xfa0,'message':_0x1b4dd2(0x138),'message_staring_params':{}});}}else{if(_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)](_0x1b4dd2(0x12b))==0x0||_0x505577[_0x1b4dd2(0x130)][_0x1b4dd2(0x12d)](_0x1b4dd2(0x14e))==0x0)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1b4dd2(0x14c),'message_staring_params':{}});}return _0x2271dc;}async function checkIcons(_0x174843,_0x4e98bd){const _0x47e674=_0x2be26b;var _0x3d5a7a;const _0x501933=(0x0,utils_1[_0x47e674(0x139)])(_0x4e98bd);let _0x20c40d,_0x28d9b3,_0x1d381f,_0x17da5c=0x0;for(var _0x44e861=0x0;_0x44e861<_0x174843['icons']['length'];_0x44e861++){const _0x38cff6=_0x174843['icons'][_0x44e861];let _0x4a54d2=((_0x3d5a7a=_0x38cff6[_0x47e674(0x147)])===null||_0x3d5a7a===void 0x0?void 0x0:_0x3d5a7a[_0x47e674(0x12d)](_0x47e674(0x137)))>=0x0;if(!_0x4a54d2)continue;let _0x4262b4=![],_0xbc4730=_0x38cff6[_0x47e674(0x13b)],_0x1aad30,_0xda8b55=0x0;!validateURL(_0xbc4730)&&(_0xbc4730=(0x0,path_1[_0x47e674(0x156)])(_0x501933,_0xbc4730));if(_0x38cff6[_0x47e674(0x146)]){const _0x96fdf7=_0x38cff6[_0x47e674(0x146)][_0x47e674(0x163)]('\x20');_0x96fdf7['forEach'](_0x1c69db=>{let _0x197397=_0x1c69db['split']('x');Number(_0x197397[0x0])>=0x400&&Number(_0x197397[0x1])>=0x400&&(_0x4262b4=!![],Number(_0x197397[0x0])>_0xda8b55&&(_0xda8b55=Number(_0x197397[0x0])));});}else _0x1aad30=!_0xbc4730[_0x47e674(0x162)](_0x47e674(0x142))?await(0x0,load_1[_0x47e674(0x154)])(_0xbc4730):await(0x0,load_1[_0x47e674(0x13f)])(_0xbc4730),_0x1aad30[_0x47e674(0x133)]()>=0x400&&_0x1aad30[_0x47e674(0x15c)]()>=0x400&&(_0x4262b4=!![],_0x1aad30['getWidth']()>_0xda8b55&&(_0xda8b55=_0x1aad30[_0x47e674(0x133)]()));_0x4262b4&&_0x4a54d2&&(_0xda8b55>_0x17da5c&&(_0x17da5c=_0xda8b55,_0x20c40d=_0x1aad30,_0x28d9b3=_0xbc4730,_0x1d381f=_0x38cff6[_0x47e674(0x147)]));}if(_0x17da5c===0x0)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x47e674(0x159),'message_staring_params':{}});else _0x28d9b3&&(_0x20c40d=!_0x28d9b3[_0x47e674(0x162)]('http')?await(0x0,load_1[_0x47e674(0x154)])(_0x28d9b3):await(0x0,load_1['loadImageFromNet'])(_0x28d9b3));if(_0x20c40d&&!imageHelper_1[_0x47e674(0x157)][_0x47e674(0x13a)](_0x20c40d))throw new CustomError_1['CustomError']({'code':0xfa0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','message_staring_params':{}});_0x174843[_0x47e674(0x12c)]=[{'src':_0x28d9b3,'sizes':_0x17da5c+'x'+_0x17da5c,'purpose':_0x1d381f}];}function checkId(_0x4367a3){const _0x25172a=_0x2be26b;!_0x4367a3['id']&&(_0x4367a3['id']=_0x4367a3['start_url']);if(!validateURL(_0x4367a3['id']))throw new CustomError_1[(_0x25172a(0x161))]({'code':0xfa0,'message':_0x25172a(0x15d),'message_staring_params':{}});}function validateURL(_0x10157e){try{return new URL(_0x10157e),!![];}catch(_0x5af7e0){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x26e1(){const _0x533c3d=['mkdirSync','copyDir','225meGjuh','clearDir','__esModule','96OrmbRC','183100BZurXt','isFile','readdirSync','forEach','readFileSync','isDirectory','396038WTqbDT','4583117PJBYIx','68844qneIcy','1954485UkSCGY','statSync','log','573579WLQTtQ','writeFileSync','4998384NxWsGL','defineProperty'];_0x26e1=function(){return _0x533c3d;};return _0x26e1();}const _0x1c0723=_0x55fa;(function(_0x657760,_0x2934b3){const _0x1f996d=_0x55fa,_0x581d7d=_0x657760();while(!![]){try{const _0x135b66=-parseInt(_0x1f996d(0xcb))/0x1+parseInt(_0x1f996d(0xc5))/0x2+-parseInt(_0x1f996d(0xce))/0x3+parseInt(_0x1f996d(0xcd))/0x4*(parseInt(_0x1f996d(0xc1))/0x5)+parseInt(_0x1f996d(0xd3))/0x6+parseInt(_0x1f996d(0xcc))/0x7+parseInt(_0x1f996d(0xc4))/0x8*(-parseInt(_0x1f996d(0xd1))/0x9);if(_0x135b66===_0x2934b3)break;else _0x581d7d['push'](_0x581d7d['shift']());}catch(_0x556984){_0x581d7d['push'](_0x581d7d['shift']());}}}(_0x26e1,0x8435f));Object[_0x1c0723(0xd4)](exports,_0x1c0723(0xc3),{'value':!![]}),exports[_0x1c0723(0xd6)]=copyDir,exports[_0x1c0723(0xc2)]=clearDir;function _0x55fa(_0x2dc7d4,_0x5623de){const _0x26e140=_0x26e1();return _0x55fa=function(_0x55fa03,_0x304bd9){_0x55fa03=_0x55fa03-0xc1;let _0x26bbbe=_0x26e140[_0x55fa03];return _0x26bbbe;},_0x55fa(_0x2dc7d4,_0x5623de);}const fs=require('fs');function copyDir(_0x28df3e,_0x3f560b){const _0x457a73=_0x1c0723,_0x48f293=fs[_0x457a73(0xc7)](_0x28df3e);_0x48f293['forEach'](_0x136aec=>{const _0x325022=_0x457a73,_0x1689e9=_0x28df3e+'/'+_0x136aec,_0x31d34e=_0x3f560b+'/'+_0x136aec,_0x14d882=fs[_0x325022(0xcf)](_0x1689e9);if(_0x14d882[_0x325022(0xc6)]())try{fs[_0x325022(0xd2)](_0x31d34e,fs[_0x325022(0xc9)](_0x1689e9));}catch(_0x95f333){console[_0x325022(0xd0)](_0x95f333);}else _0x14d882[_0x325022(0xca)]()&&(!fs['existsSync'](_0x31d34e)&&fs[_0x325022(0xd5)](_0x31d34e,{'recursive':!![]}),copyDir(_0x1689e9,_0x31d34e));});}function clearDir(_0x3b3a38){const _0x3301a0=_0x1c0723,_0x21e78e=fs[_0x3301a0(0xc7)](_0x3b3a38);_0x21e78e[_0x3301a0(0xc8)](_0x5d9122=>{const _0xa8f890=_0x3301a0,_0x271139=_0x3b3a38+'/'+_0x5d9122,_0x1882c1=fs['statSync'](_0x271139);if(_0x1882c1[_0xa8f890(0xc6)]())try{fs['unlinkSync'](_0x271139);}catch(_0xa54166){console[_0xa8f890(0xd0)](_0xa54166);}else _0x1882c1[_0xa8f890(0xca)]()&&clearDir(_0x271139);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x13de9=_0x2ceb;(function(_0x32739a,_0xeb6971){const _0x120663=_0x2ceb,_0x508451=_0x32739a();while(!![]){try{const _0x582810=-parseInt(_0x120663(0xb7))/0x1+parseInt(_0x120663(0xb2))/0x2*(-parseInt(_0x120663(0xad))/0x3)+parseInt(_0x120663(0xb9))/0x4+-parseInt(_0x120663(0xbd))/0x5+parseInt(_0x120663(0xaf))/0x6*(parseInt(_0x120663(0xbb))/0x7)+parseInt(_0x120663(0xab))/0x8+parseInt(_0x120663(0xb5))/0x9;if(_0x582810===_0xeb6971)break;else _0x508451['push'](_0x508451['shift']());}catch(_0x71ea32){_0x508451['push'](_0x508451['shift']());}}}(_0x2e38,0xde510));Object[_0x13de9(0xb6)](exports,_0x13de9(0xbe),{'value':!![]}),exports[_0x13de9(0xba)]=void 0x0;const Jimp=require(_0x13de9(0xc0)),sharp=require(_0x13de9(0xac)),resvg_js_1=require(_0x13de9(0xb8));function _0x2ceb(_0x498a11,_0x14635f){const _0x2e382f=_0x2e38();return _0x2ceb=function(_0x2ceb9e,_0x1eccfe){_0x2ceb9e=_0x2ceb9e-0xa9;let _0x46db59=_0x2e382f[_0x2ceb9e];return _0x46db59;},_0x2ceb(_0x498a11,_0x14635f);}function _0x2e38(){const _0x19114d=['3561248dOXbfV','ImageHelper','1169nuzyee','svg2img','6100885ARftOx','__esModule','toFormat','jimp','isFullyOpaque','png','getHeight','11966232HYCXGY','sharp','3IRMPLL','width','13602xTvzeG','toBuffer','Resvg','3341942MnDQUj','createImg','data','24255549aFvZUp','defineProperty','1657985dzyFCq','@resvg/resvg-js'];_0x2e38=function(){return _0x19114d;};return _0x2e38();}class ImageHelper{static[_0x13de9(0xb3)](_0x244768){return new Jimp(_0x244768,_0x244768,0x0);}static async['webp2PngBuffer'](_0xed7dcd){const _0x3200fe=_0x13de9;return await sharp(_0xed7dcd)[_0x3200fe(0xbf)](_0x3200fe(0xa9))[_0x3200fe(0xb0)]();}static async[_0x13de9(0xbc)](_0x4a5476){const _0x2a39af=_0x13de9,_0x42173b={'fitTo':{'mode':_0x2a39af(0xae),'value':0x400}},_0x14cee1=new resvg_js_1[(_0x2a39af(0xb1))](_0x4a5476,_0x42173b),_0x3d4f83=_0x14cee1['render'](),_0x52c82f=_0x3d4f83['asPng']();return _0x52c82f;}static[_0x13de9(0xc1)](_0x385f6b){const _0x5beedb=_0x13de9,_0x469cab=_0x385f6b['getWidth']()*_0x385f6b[_0x5beedb(0xaa)]();for(var _0x390dd3=0x0;_0x390dd3<_0x469cab;_0x390dd3++){const _0x382231=_0x390dd3*0x4+0x3;if(_0x385f6b['bitmap'][_0x5beedb(0xb4)][_0x382231]<0xff)return![];}return!![];}}exports[_0x13de9(0xba)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5b6efb=_0x51bd;function _0x51bd(_0x2c29b9,_0x22380c){const _0x4edca4=_0x4edc();return _0x51bd=function(_0x51bd04,_0x161dde){_0x51bd04=_0x51bd04-0x125;let _0x3810d0=_0x4edca4[_0x51bd04];return _0x3810d0;},_0x51bd(_0x2c29b9,_0x22380c);}(function(_0x1056f8,_0x39208c){const _0x2d427c=_0x51bd,_0x11f548=_0x1056f8();while(!![]){try{const _0x5b3415=-parseInt(_0x2d427c(0x14b))/0x1+parseInt(_0x2d427c(0x142))/0x2+-parseInt(_0x2d427c(0x141))/0x3*(-parseInt(_0x2d427c(0x13b))/0x4)+-parseInt(_0x2d427c(0x139))/0x5*(-parseInt(_0x2d427c(0x13d))/0x6)+parseInt(_0x2d427c(0x145))/0x7*(parseInt(_0x2d427c(0x149))/0x8)+-parseInt(_0x2d427c(0x13a))/0x9*(parseInt(_0x2d427c(0x126))/0xa)+-parseInt(_0x2d427c(0x14a))/0xb*(-parseInt(_0x2d427c(0x125))/0xc);if(_0x5b3415===_0x39208c)break;else _0x11f548['push'](_0x11f548['shift']());}catch(_0x249e5e){_0x11f548['push'](_0x11f548['shift']());}}}(_0x4edc,0x632fc));Object[_0x5b6efb(0x12e)](exports,_0x5b6efb(0x12b),{'value':!![]}),exports[_0x5b6efb(0x13c)]=exports[_0x5b6efb(0x143)]=exports['BACK_APPICON_DIRECTORY']=exports[_0x5b6efb(0x129)]=exports[_0x5b6efb(0x12f)]=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x5b6efb(0x14d)]=exports[_0x5b6efb(0x146)]=void 0x0;const fs=require('fs'),path_1=require(_0x5b6efb(0x13e)),file_1=require(_0x5b6efb(0x12c)),load_1=require(_0x5b6efb(0x147));function _0x4edc(){const _0x4dd29c=['PROJECT_BUILD_DIRECTORY','loadImageFromDisk','48jIbHbQ','2708260UYCkbk','icons','./build','ASSET_DIRECTORY','moveProjectFrom','__esModule','./file','BACK_APPICON_DIRECTORY','defineProperty','WEB_PROJECT_DIRECTORY','./export','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','PROJECT_EXPORT_DIRECTORY','mkdirSync','resize','web-spatial/static-web','join','log','http','370lnXZCk','27uUphQS','1160KnBeSZ','ResourceManager','1878sNEZmj','path','src','cwd','7152ZdKaRC','485632XDhYIL','MIDDLE_APPICON_DIRECTORY','startsWith','364KSSEWT','PROJECT_DIRECTORY','./load','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','17376HXqnpk','1170235ikMlIF','277076NUhmox','clearDir'];_0x4edc=function(){return _0x4dd29c;};return _0x4edc();}exports['PROJECT_DIRECTORY']=(0x0,path_1[_0x5b6efb(0x136)])(__dirname,'../../../template/visionOSApp'),exports[_0x5b6efb(0x14d)]=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],_0x5b6efb(0x128)),exports[_0x5b6efb(0x132)]=(0x0,path_1[_0x5b6efb(0x136)])(exports[_0x5b6efb(0x146)],_0x5b6efb(0x130)),exports[_0x5b6efb(0x12f)]=_0x5b6efb(0x135),exports['ASSET_DIRECTORY']='web-spatial/Assets.xcassets',exports[_0x5b6efb(0x12d)]=exports['ASSET_DIRECTORY']+_0x5b6efb(0x148),exports[_0x5b6efb(0x143)]=exports[_0x5b6efb(0x129)]+_0x5b6efb(0x131);class ResourceManager{static async[_0x5b6efb(0x12a)](_0x13bb00){const _0xa0b3b6=_0x5b6efb,_0x5be94a=(0x0,path_1[_0xa0b3b6(0x136)])(process[_0xa0b3b6(0x140)](),_0x13bb00),_0x33dea9=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],exports[_0xa0b3b6(0x12f)]);!fs['existsSync'](_0x33dea9)?fs[_0xa0b3b6(0x133)](_0x33dea9,{'recursive':!![]}):(0x0,file_1[_0xa0b3b6(0x14c)])(_0x33dea9);try{(0x0,file_1['copyDir'])(_0x5be94a,_0x33dea9);}catch(_0x5d4cb2){console[_0xa0b3b6(0x137)](_0x5d4cb2);}}static async['generateIcon'](_0x39255d){const _0x5322d2=_0x5b6efb,_0x58672f=_0x39255d['json'],_0x564e35=_0x58672f[_0x5322d2(0x127)][0x0][_0x5322d2(0x13f)],_0x477dfd=!_0x564e35[_0x5322d2(0x144)](_0x5322d2(0x138))?await(0x0,load_1[_0x5322d2(0x14e)])(_0x564e35):await(0x0,load_1['loadImageFromNet'])(_0x564e35);return _0x477dfd[_0x5322d2(0x134)](0x400,0x400),_0x477dfd;}}exports['ResourceManager']=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x388d3f=_0xfdb9;(function(_0x563cb2,_0x532542){const _0x4d018c=_0xfdb9,_0x2900e5=_0x563cb2();while(!![]){try{const _0x50656b=-parseInt(_0x4d018c(0x1ca))/0x1*(parseInt(_0x4d018c(0x1b7))/0x2)+parseInt(_0x4d018c(0x1c4))/0x3+parseInt(_0x4d018c(0x1cb))/0x4*(parseInt(_0x4d018c(0x1ab))/0x5)+parseInt(_0x4d018c(0x1b5))/0x6+-parseInt(_0x4d018c(0x1aa))/0x7*(parseInt(_0x4d018c(0x1b4))/0x8)+-parseInt(_0x4d018c(0x1bd))/0x9*(parseInt(_0x4d018c(0x1c9))/0xa)+parseInt(_0x4d018c(0x1d0))/0xb;if(_0x50656b===_0x532542)break;else _0x2900e5['push'](_0x2900e5['shift']());}catch(_0x56dd9d){_0x2900e5['push'](_0x2900e5['shift']());}}}(_0x40a7,0x6da88));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x388d3f(0x1c2)]=loadJsonFromNet,exports[_0x388d3f(0x1cf)]=loadJsonFromDisk,exports[_0x388d3f(0x1b9)]=loadImageFromNet,exports[_0x388d3f(0x1ad)]=loadImageFromDisk,exports[_0x388d3f(0x1d9)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x388d3f(0x1d5)),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x388d3f(0x1d3)),imageHelper_1=require(_0x388d3f(0x1af));async function loadJsonFromNet(_0x590032){const _0x13a24d=_0x388d3f,_0x3553da=await FetchUtils_1_1[_0x13a24d(0x1c1)][_0x13a24d(0x1db)](_0x590032,{'encoding':_0x13a24d(0x1c6)});if(_0x3553da[_0x13a24d(0x1bc)]!==0xc8)throw new CustomError_1[(_0x13a24d(0x1ce))]({'code':0xbbc,'message':_0x13a24d(0x1cd)+_0x590032+'.'+(_0x13a24d(0x1b6)+_0x3553da['status']+_0x13a24d(0x1bf)),'message_staring_params':{'web_manifest_url':_0x590032,'status':_0x3553da[_0x13a24d(0x1bc)]}});try{let _0x3361e1;return _0x3553da['text']?_0x3361e1=await _0x3553da['text']():['gzip',_0x13a24d(0x1d7),'br'][_0x13a24d(0x1da)](_0x3553da['headers'][_0x13a24d(0x1dc)])?_0x3361e1=FetchUtils_1_1[_0x13a24d(0x1c1)][_0x13a24d(0x1c7)](Buffer[_0x13a24d(0x1cc)](_0x3553da[_0x13a24d(0x1b2)],_0x13a24d(0x1c6)),_0x3553da[_0x13a24d(0x1d1)][_0x13a24d(0x1dc)])[_0x13a24d(0x1b8)]():_0x3361e1=Buffer[_0x13a24d(0x1cc)](_0x3553da[_0x13a24d(0x1b2)],_0x13a24d(0x1c6))[_0x13a24d(0x1b8)](),JSON['parse'](_0x3361e1[_0x13a24d(0x1c3)]());}catch(_0x5e3cab){throw new CustomError_1[(_0x13a24d(0x1ce))]({'code':0xbbd,'message':_0x13a24d(0x1c8),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x1355a4){const _0x57c5d5=_0x388d3f,_0x3dd2cb=await loadFileString(_0x1355a4['toString']());return JSON[_0x57c5d5(0x1bb)](_0x3dd2cb);}function _0x40a7(){const _0x478e72=['CustomError','loadJsonFromDisk','9563323LVViJz','headers','promises','jimp','Received\x20icon\x20with\x20invalid\x20Content-Type.','../utils/FetchUtils-1','\x20Responded\x20with\x20Content-Type\x20\x22','deflate','decode','loadFileString','includes','fetch','content-encoding','image/svg','312277PBuOfu','2971665lYPfEK','get','loadImageFromDisk','gzip','./imageHelper','webp2PngBuffer','content-type','data','read','104ofjYGZ','2522154FinFmA','The\x20response\x20status\x20is\x20','667718UmJzHc','toString','loadImageFromNet','readFile','parse','status','5598XAGXCc','ImageHelper',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','startsWith','fetchUtils','loadJsonFromNet','trim','259713HnLece','Problem\x20reading\x20','binary','decompressResponseBuffer','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','9770ruzxLz','1wlRJSF','4vVrjLA','from','Failed\x20to\x20download\x20Web\x20Manifest\x20'];_0x40a7=function(){return _0x478e72;};return _0x40a7();}async function loadImageFromNet(_0xc14e21){const _0x160dd3=_0x388d3f,_0x2feeab=await FetchUtils_1_1[_0x160dd3(0x1c1)][_0x160dd3(0x1db)](_0xc14e21,{'encoding':_0x160dd3(0x1c6)});if(_0x2feeab[_0x160dd3(0x1bc)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':'Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20'+_0x2feeab[_0x160dd3(0x1bc)],'message_staring_params':{'icon_url':_0xc14e21,'status':_0x2feeab[_0x160dd3(0x1bc)]}});const _0x389f04=_0x2feeab['headers']['get']?_0x2feeab['headers'][_0x160dd3(0x1ac)](_0x160dd3(0x1b1)):_0x2feeab[_0x160dd3(0x1d1)][_0x160dd3(0x1b1)];if(!(_0x389f04===null||_0x389f04===void 0x0?void 0x0:_0x389f04[_0x160dd3(0x1c0)]('image/')))throw new CustomError_1[(_0x160dd3(0x1ce))]({'code':0x7d3,'message':_0x160dd3(0x1d4)+(_0x160dd3(0x1d6)+_0x389f04+'\x22'),'message_staring_params':{'icon_url':_0xc14e21,'contentType':_0x389f04}});let _0x1769e4;_0x2feeab['arrayBuffer']?_0x1769e4=await _0x2feeab['arrayBuffer']():[_0x160dd3(0x1ae),'deflate','br'][_0x160dd3(0x1da)](_0x2feeab[_0x160dd3(0x1d1)][_0x160dd3(0x1dc)])?_0x1769e4=FetchUtils_1_1[_0x160dd3(0x1c1)]['decompressResponseBuffer'](Buffer[_0x160dd3(0x1cc)](_0x2feeab[_0x160dd3(0x1b2)],_0x160dd3(0x1c6)),_0x2feeab[_0x160dd3(0x1d1)][_0x160dd3(0x1dc)]):_0x1769e4=Buffer[_0x160dd3(0x1cc)](_0x2feeab['data'],_0x160dd3(0x1c6));if(_0x389f04[_0x160dd3(0x1c0)](_0x160dd3(0x1dd))){const _0x46c646=new TextDecoder();try{_0x1769e4=await imageHelper_1[_0x160dd3(0x1be)]['svg2img'](_0x46c646[_0x160dd3(0x1d8)](_0x1769e4));}catch(_0xe2877){throw new CustomError_1[(_0x160dd3(0x1ce))]({'code':0x7d4,'message':_0x160dd3(0x1c5)+_0xc14e21+':\x20'+_0xe2877,'message_staring_params':{'icon_url':_0xc14e21,'error':_0xe2877}});}}return _0x389f04[_0x160dd3(0x1c0)]('image/webp')&&(_0x1769e4=await imageHelper_1[_0x160dd3(0x1be)][_0x160dd3(0x1b0)](_0x1769e4)),await Jimp['read'](Buffer[_0x160dd3(0x1cc)](_0x1769e4));}async function loadImageFromDisk(_0x4b315c){const _0xaca4fb=_0x388d3f;return await Jimp[_0xaca4fb(0x1b3)](_0x4b315c);}function _0xfdb9(_0x2a162e,_0x1fd85b){const _0x40a74a=_0x40a7();return _0xfdb9=function(_0xfdb954,_0x48f386){_0xfdb954=_0xfdb954-0x1aa;let _0x12c286=_0x40a74a[_0xfdb954];return _0x12c286;},_0xfdb9(_0x2a162e,_0x1fd85b);}async function loadFileString(_0x8d9c84){const _0x233f73=_0x388d3f;let _0x324c37=await fs[_0x233f73(0x1d2)][_0x233f73(0x1ba)](_0x8d9c84['toString']());return _0x324c37[_0x233f73(0x1b8)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x517a09=_0x5b6a;(function(_0x37fdd5,_0x55b2e3){var _0x5afcde=_0x5b6a,_0x5e1b76=_0x37fdd5();while(!![]){try{var _0x3fa2b3=-parseInt(_0x5afcde(0x76))/0x1+parseInt(_0x5afcde(0x75))/0x2*(parseInt(_0x5afcde(0x72))/0x3)+-parseInt(_0x5afcde(0x70))/0x4+-parseInt(_0x5afcde(0x79))/0x5*(parseInt(_0x5afcde(0x6f))/0x6)+-parseInt(_0x5afcde(0x6e))/0x7*(-parseInt(_0x5afcde(0x77))/0x8)+parseInt(_0x5afcde(0x7c))/0x9+parseInt(_0x5afcde(0x78))/0xa;if(_0x3fa2b3===_0x55b2e3)break;else _0x5e1b76['push'](_0x5e1b76['shift']());}catch(_0x1d6dcb){_0x5e1b76['push'](_0x5e1b76['shift']());}}}(_0x347c,0x4500b));function _0x347c(){var _0x44fb0e=['4723150yqarVk','1129610wrvNYf','defineProperty','customMessage','178695heqtur','__esModule','type','135667EGKgEr','6JVUAdR','1845360QDUUKD','stringify','534pMOQOd','CustomError','info','2076WWZFZr','94657STymTW','160QhKevr'];_0x347c=function(){return _0x44fb0e;};return _0x347c();}Object[_0x517a09(0x7a)](exports,_0x517a09(0x6c),{'value':!![]}),exports[_0x517a09(0x73)]=void 0x0;function _0x5b6a(_0x55eca5,_0x36e24c){var _0x347cf0=_0x347c();return _0x5b6a=function(_0x5b6a37,_0x3a4e43){_0x5b6a37=_0x5b6a37-0x6c;var _0x36a6d3=_0x347cf0[_0x5b6a37];return _0x36a6d3;},_0x5b6a(_0x55eca5,_0x36e24c);}class CustomError extends Error{constructor(_0x44468b,_0x309ede){var _0x11b059=_0x517a09;super(JSON[_0x11b059(0x71)](_0x44468b)),this[_0x11b059(0x7b)]=_0x44468b,this[_0x11b059(0x6d)]=_0x309ede||_0x11b059(0x74);}}exports[_0x517a09(0x73)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f85a3=_0x45d1;(function(_0x4af91f,_0x4e278a){const _0x3c1794=_0x45d1,_0x58ed56=_0x4af91f();while(!![]){try{const _0x117a66=-parseInt(_0x3c1794(0x14c))/0x1+-parseInt(_0x3c1794(0x147))/0x2+-parseInt(_0x3c1794(0x14a))/0x3*(-parseInt(_0x3c1794(0x14e))/0x4)+parseInt(_0x3c1794(0x150))/0x5+-parseInt(_0x3c1794(0x152))/0x6+-parseInt(_0x3c1794(0x14d))/0x7*(-parseInt(_0x3c1794(0x14f))/0x8)+parseInt(_0x3c1794(0x157))/0x9*(-parseInt(_0x3c1794(0x148))/0xa);if(_0x117a66===_0x4e278a)break;else _0x58ed56['push'](_0x58ed56['shift']());}catch(_0x45013b){_0x58ed56['push'](_0x58ed56['shift']());}}}(_0x3546,0xbb435));Object[_0x4f85a3(0x155)](exports,_0x4f85a3(0x156),{'value':!![]}),exports[_0x4f85a3(0x14b)]=void 0x0;function _0x3546(){const _0x20f0e8=['1389539YSdrKv','1799hnBXcm','4CoxOCD','46688hnHnOn','4591570tLvULZ','setFetch','7029816BGXNKL','decompressResponseBuffer','fetchEngine','defineProperty','__esModule','146655dDCnxH','fetch','downloadFile','466490ikVnwN','40NxyAvp','setDownloadFile','3625389xEifcu','fetchUtils'];_0x3546=function(){return _0x20f0e8;};return _0x3546();}class FetchUtils{constructor(){const _0x50c10d=_0x4f85a3;this['fetchEngine']=null,this[_0x50c10d(0x158)]=null,this[_0x50c10d(0x159)]=null,this[_0x50c10d(0x153)]=null;}['setFetchEngine'](_0x56ba14){const _0x49f9f1=_0x4f85a3;this[_0x49f9f1(0x154)]=_0x56ba14;}[_0x4f85a3(0x151)](_0x127cfb){const _0x5b6fef=_0x4f85a3;this[_0x5b6fef(0x158)]=_0x127cfb;}[_0x4f85a3(0x149)](_0x3cae6f){const _0x296b43=_0x4f85a3;this[_0x296b43(0x159)]=_0x3cae6f;}['setDecompressResponseBuffer'](_0x263df6){this['decompressResponseBuffer']=_0x263df6;}}function _0x45d1(_0x453332,_0x1f6dd4){const _0x3546be=_0x3546();return _0x45d1=function(_0x45d1d3,_0xbce0a2){_0x45d1d3=_0x45d1d3-0x147;let _0x260566=_0x3546be[_0x45d1d3];return _0x260566;},_0x45d1(_0x453332,_0x1f6dd4);}const fetchUtils=new FetchUtils();exports[_0x4f85a3(0x14b)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x56c9e3=_0x32e1;(function(_0x3eaacd,_0x1c6218){var _0xcc9431=_0x32e1,_0x5e6d22=_0x3eaacd();while(!![]){try{var _0x187767=-parseInt(_0xcc9431(0xb8))/0x1+-parseInt(_0xcc9431(0xbe))/0x2+-parseInt(_0xcc9431(0xb6))/0x3+parseInt(_0xcc9431(0xbc))/0x4+parseInt(_0xcc9431(0xc6))/0x5+parseInt(_0xcc9431(0xca))/0x6*(-parseInt(_0xcc9431(0xbb))/0x7)+parseInt(_0xcc9431(0xb9))/0x8*(parseInt(_0xcc9431(0xb3))/0x9);if(_0x187767===_0x1c6218)break;else _0x5e6d22['push'](_0x5e6d22['shift']());}catch(_0x585967){_0x5e6d22['push'](_0x5e6d22['shift']());}}}(_0x4c56,0xcb618));function _0x32e1(_0x3f66a0,_0x2ab530){var _0x4c56ed=_0x4c56();return _0x32e1=function(_0x32e19a,_0x547b3b){_0x32e19a=_0x32e19a-0xb3;var _0x231c41=_0x4c56ed[_0x32e19a];return _0x231c41;},_0x32e1(_0x3f66a0,_0x2ab530);}Object['defineProperty'](exports,_0x56c9e3(0xc5),{'value':!![]}),exports['ConsoleLog']=void 0x0;function _0x4c56(){var _0x238f04=['prefix','9567786FgwFRe','output','\x1b[33m','WARNING\x20','\x1b[7m','concat','error','yellow','\x1b[0m','ConsoleLog','40394961oTFxOn','log','\x1b[31m','3646866udZOnI','red','1343735JKuIAI','8sRZrtZ','inverse','7hlHkVx','1786712jJzLIb','info','2894532pDjLiR','ERROR\x20','dim','warn','debug','setVerbose','newLog','__esModule','7496475bsPcQv','tag','verbose'];_0x4c56=function(){return _0x238f04;};return _0x4c56();}class ConsoleLog{constructor(_0x56347c='',_0x2f8795=![],_0x511811=console){var _0x385e27=_0x56c9e3;this['tag']=_0x56347c,this[_0x385e27(0xc8)]=_0x2f8795,this['prefix']=this[_0x385e27(0xba)](_0x56347c),this['output']=_0x511811;}[_0x56c9e3(0xc2)](_0x14b396,..._0xb677ba){var _0x1924e7=_0x56c9e3;if(!this[_0x1924e7(0xc8)])return;this[_0x1924e7(0xb4)](this[_0x1924e7(0xcb)][_0x1924e7(0xb4)],this[_0x1924e7(0xc0)](_0x14b396),..._0xb677ba);}[_0x56c9e3(0xbd)](_0x2b1cd8,..._0x1de8a4){this['log'](this['output']['log'],_0x2b1cd8,..._0x1de8a4);}[_0x56c9e3(0xc1)](_0x2d7127,..._0x3c42e5){var _0x3b71e8=_0x56c9e3;this['log'](this[_0x3b71e8(0xcb)]['warn'],this[_0x3b71e8(0xd1)](_0x3b71e8(0xcd)+_0x2d7127),..._0x3c42e5);}['error'](_0x29d083,..._0x305bdd){var _0xcda822=_0x56c9e3;this[_0xcda822(0xcb)][_0xcda822(0xd0)]('\x0a'),this['log'](this[_0xcda822(0xcb)][_0xcda822(0xd0)],this[_0xcda822(0xb7)](_0xcda822(0xbf)+_0x29d083),..._0x305bdd),this[_0xcda822(0xcb)][_0xcda822(0xd0)]('\x0a');}[_0x56c9e3(0xc3)](_0x425459){var _0x37c28a=_0x56c9e3;this[_0x37c28a(0xc8)]=_0x425459;}[_0x56c9e3(0xc4)](_0x24e3ab){var _0x4bc982=_0x56c9e3;return this[_0x4bc982(0xc7)]&&(_0x24e3ab=this[_0x4bc982(0xc7)]+'\x20'+_0x24e3ab),new ConsoleLog(_0x24e3ab,this[_0x4bc982(0xc8)],this[_0x4bc982(0xcb)]);}[_0x56c9e3(0xb4)](_0x2dd635,_0x2a0313,..._0x45766d){var _0x4608ff=_0x56c9e3;this[_0x4608ff(0xc9)]&&(_0x2a0313=this[_0x4608ff(0xc9)]+'\x20'+_0x2a0313),_0x45766d?_0x2dd635(...[_0x2a0313][_0x4608ff(0xcf)](_0x45766d)):_0x2dd635(_0x2a0313);}[_0x56c9e3(0xba)](_0x3aee95){var _0x37dc96=_0x56c9e3;return _0x37dc96(0xce)+_0x3aee95+_0x37dc96(0xd2);}[_0x56c9e3(0xc0)](_0x5c0f0d){var _0x23ef8d=_0x56c9e3;return'\x1b[36m'+_0x5c0f0d+_0x23ef8d(0xd2);}[_0x56c9e3(0xd1)](_0x34adab){var _0x2a52c5=_0x56c9e3;return _0x2a52c5(0xcc)+_0x34adab+_0x2a52c5(0xd2);}['red'](_0x9230a9){var _0x10a191=_0x56c9e3;return _0x10a191(0xb5)+_0x9230a9+'\x1b[0m';}}exports[_0x56c9e3(0xd3)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27e8aa=_0x3f7d;function _0x3f7d(_0x598a20,_0x4f7ea8){const _0x1ce436=_0x1ce4();return _0x3f7d=function(_0x3f7d28,_0x3df8ac){_0x3f7d28=_0x3f7d28-0x19a;let _0x2e16c1=_0x1ce436[_0x3f7d28];return _0x2e16c1;},_0x3f7d(_0x598a20,_0x4f7ea8);}(function(_0x3dae8e,_0x148f82){const _0x51b01e=_0x3f7d,_0x33c4fc=_0x3dae8e();while(!![]){try{const _0x612411=-parseInt(_0x51b01e(0x1ab))/0x1*(parseInt(_0x51b01e(0x19e))/0x2)+parseInt(_0x51b01e(0x1ad))/0x3*(-parseInt(_0x51b01e(0x1a6))/0x4)+parseInt(_0x51b01e(0x1b8))/0x5*(-parseInt(_0x51b01e(0x1bb))/0x6)+-parseInt(_0x51b01e(0x1b3))/0x7*(-parseInt(_0x51b01e(0x1ba))/0x8)+parseInt(_0x51b01e(0x1ae))/0x9*(-parseInt(_0x51b01e(0x19a))/0xa)+parseInt(_0x51b01e(0x1a3))/0xb*(parseInt(_0x51b01e(0x19c))/0xc)+parseInt(_0x51b01e(0x1a7))/0xd;if(_0x612411===_0x148f82)break;else _0x33c4fc['push'](_0x33c4fc['shift']());}catch(_0x59d3ba){_0x33c4fc['push'](_0x33c4fc['shift']());}}}(_0x1ce4,0x28e9d));Object[_0x27e8aa(0x1aa)](exports,_0x27e8aa(0x1b2),{'value':!![]}),exports[_0x27e8aa(0x1ac)]=fetch,exports[_0x27e8aa(0x1a2)]=downloadFile,exports[_0x27e8aa(0x1b6)]=decompressResponseBuffer;const fetch_h2_1=require(_0x27e8aa(0x1b4)),fs=require('fs'),zlib=require(_0x27e8aa(0x1b5)),userAgent=_0x27e8aa(0x1a8),fetchh2Ctx=(0x0,fetch_h2_1[_0x27e8aa(0x1b9)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x27e8aa(0x1ac)];function _0x1ce4(){const _0x3d4048=['test','494724JyFEbK','Z_SYNC_FLUSH','2crhChc','get','data','brotliDecompressSync','downloadFile','33WbrxcT','headers','createWriteStream','211672wjdsxN','5144867CbAtAZ','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','constants','defineProperty','50027zEUnej','fetch','6vmrvlW','108mUzQfo','pipe','finish','follow','__esModule','14SDEdVp','fetch-h2','zlib','decompressResponseBuffer','length','2830MOTwNZ','context','242336vweVee','780TmlCOO','152500tJcTYt'];_0x1ce4=function(){return _0x3d4048;};return _0x1ce4();}async function fetch(_0xe470da,_0x36063e){const _0x4a1b9a=_0x27e8aa;return await fetchh2(_0xe470da,_0x36063e?{'redirect':'follow',..._0x36063e}:{'redirect':_0x4a1b9a(0x1b1)});}async function downloadFile(_0x57546e,_0x4274c7,_0x1eca1d){const _0x58220c=_0x27e8aa;let _0xe780ca,_0x1bb204;_0xe780ca=await fetchh2(_0x57546e,{'redirect':_0x58220c(0x1b1)}),_0x1bb204=await _0xe780ca['readable']();const _0x2e2664=_0xe780ca[_0x58220c(0x1a4)][_0x58220c(0x19f)]('Content-Length'),_0x3ca640=_0x2e2664?parseInt(_0x2e2664):-0x1,_0x2b68ac=fs[_0x58220c(0x1a5)](_0x4274c7);let _0x39940d=0x0;await new Promise((_0x5112ec,_0x5b6924)=>{const _0x3b8af0=_0x58220c;_0x1bb204[_0x3b8af0(0x1af)](_0x2b68ac),_0x1eca1d&&_0x1bb204['on'](_0x3b8af0(0x1a0),_0x43d0b0=>{const _0xc17a18=_0x3b8af0;_0x39940d=_0x39940d+_0x43d0b0[_0xc17a18(0x1b7)],_0x1eca1d(_0x39940d,_0x3ca640);}),_0x1bb204['on']('error',_0x5e4910=>{_0x5b6924(_0x5e4910);}),_0x2b68ac['on'](_0x3b8af0(0x1b0),()=>{_0x5112ec();});});}function decompressResponseBuffer(_0x1d544a,_0x508167){const _0x33e40d=_0x27e8aa;let _0x1dc06b=_0x1d544a;if(/\bgzip\b/[_0x33e40d(0x19b)](_0x508167)||/\bdeflate\b/['test'](_0x508167))_0x1dc06b=zlib['unzipSync'](_0x1d544a,{'flush':zlib[_0x33e40d(0x1a9)][_0x33e40d(0x19d)],'finishFlush':zlib['constants'][_0x33e40d(0x19d)]});else/\bbr\b/[_0x33e40d(0x19b)](_0x508167)&&(_0x1dc06b=zlib[_0x33e40d(0x1a1)](_0x1d544a));return _0x1dc06b;}
|