@webspatial/builder 0.0.6 → 0.0.8
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 +3 -2
- 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 +95 -58
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +34 -10
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1f047b=_0x2d5d;(function(_0x2dd693,_0x3a8f6c){const _0x575f02=_0x2d5d,_0x5da564=_0x2dd693();while(!![]){try{const _0x5ed563=-parseInt(_0x575f02(0x100))/0x1*(parseInt(_0x575f02(0x113))/0x2)+parseInt(_0x575f02(0xf8))/0x3*(parseInt(_0x575f02(0x115))/0x4)+-parseInt(_0x575f02(0x104))/0x5*(-parseInt(_0x575f02(0x10c))/0x6)+-parseInt(_0x575f02(0x101))/0x7+parseInt(_0x575f02(0xfb))/0x8+-parseInt(_0x575f02(0x108))/0x9*(parseInt(_0x575f02(0x10a))/0xa)+-parseInt(_0x575f02(0xfd))/0xb*(-parseInt(_0x575f02(0x112))/0xc);if(_0x5ed563===_0x3a8f6c)break;else _0x5da564['push'](_0x5da564['shift']());}catch(_0x5f0566){_0x5da564['push'](_0x5da564['shift']());}}}(_0xefe2,0x7c74a));function _0x2d5d(_0x8353a0,_0x1c5e7b){const _0xefe268=_0xefe2();return _0x2d5d=function(_0x2d5d53,_0x2cbe48){_0x2d5d53=_0x2d5d53-0xf7;let _0x2419a2=_0xefe268[_0x2d5d53];return _0x2419a2;},_0x2d5d(_0x8353a0,_0x1c5e7b);}function _0xefe2(){const _0x42226e=['message','100mgjOeA','./lib/Cli','216318UgyQJy','./lib/utils/Log','defineProperty','./lib/utils/CustomError','exit','CustomError','2389308QAdXlb','18tXZCAz','argv','4IKJIAQ','error','1783851cXFNoV','customMessage','ConsoleLog','1985144KKueQX','Cli','77TjxaBB','run','exports','54269EuqKKt','3401671OWeucr','code','forEach','35pMrpZB','cli','isArray','slice','904275UqYTBH'];_0xefe2=function(){return _0x42226e;};return _0xefe2();}Object[_0x1f047b(0x10e)](exports,'__esModule',{'value':!![]});const Cli_1=require(_0x1f047b(0x10b)),Log_1=require(_0x1f047b(0x10d)),CustomError_1=require(_0x1f047b(0x10f));module[_0x1f047b(0xff)]=async()=>{const _0xec1af2=_0x1f047b,_0x1065a3=new Cli_1[(_0xec1af2(0xfc))](),_0x5a9083=new Log_1[(_0xec1af2(0xfa))](_0xec1af2(0x105)),_0x1198e8=process[_0xec1af2(0x114)][_0xec1af2(0x107)](0x2);let _0x4b3a98;try{_0x4b3a98=await _0x1065a3[_0xec1af2(0xfe)](_0x1198e8);}catch(_0x55c79f){if(_0x55c79f instanceof CustomError_1[_0xec1af2(0x111)]){const _0x31af61=_0x55c79f[_0xec1af2(0xf9)];Array[_0xec1af2(0x106)](_0x31af61)?_0x31af61[_0xec1af2(0x103)](_0x4ec411=>{const _0x47a95a=_0xec1af2;_0x5a9083[_0x47a95a(0xf7)](_0x4ec411['code']+':\x20'+_0x4ec411[_0x47a95a(0x109)]);}):_0x5a9083[_0xec1af2(0xf7)](_0x31af61[_0xec1af2(0x102)]+':\x20'+_0x31af61[_0xec1af2(0x109)]);}else _0x5a9083[_0xec1af2(0xf7)](_0x55c79f[_0xec1af2(0x109)]);_0x4b3a98=![];}!_0x4b3a98?process[_0xec1af2(0x110)](0x1):process['exit'](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x9edd21=_0x2ae0;function _0x2ae0(_0x11d165,_0x1de326){const _0xc30517=_0xc305();return _0x2ae0=function(_0x2ae0da,_0x4852fe){_0x2ae0da=_0x2ae0da-0xff;let _0x5e7b36=_0xc30517[_0x2ae0da];return _0x5e7b36;},_0x2ae0(_0x11d165,_0x1de326);}(function(_0x549c5d,_0x24a27d){const _0x17b72e=_0x2ae0,_0x34cdbd=_0x549c5d();while(!![]){try{const _0x5e54d1=parseInt(_0x17b72e(0x10a))/0x1+-parseInt(_0x17b72e(0x112))/0x2+-parseInt(_0x17b72e(0xff))/0x3+parseInt(_0x17b72e(0x10c))/0x4*(parseInt(_0x17b72e(0x106))/0x5)+-parseInt(_0x17b72e(0x111))/0x6+parseInt(_0x17b72e(0x10b))/0x7+parseInt(_0x17b72e(0x10d))/0x8*(parseInt(_0x17b72e(0x118))/0x9);if(_0x5e54d1===_0x24a27d)break;else _0x34cdbd['push'](_0x34cdbd['shift']());}catch(_0x28b9d9){_0x34cdbd['push'](_0x34cdbd['shift']());}}}(_0xc305,0xbaa4b));function _0xc305(){const _0x32d76e=['365cXrSbn','dev','__esModule','start','453154EUNjfD','809585bcXJjz','19340QFREcF','22315080ugBHNi','./utils/FetchUtils-1','setDownloadFile','./cmds/help','3983268IjJibe','2926878oWeKEv','semver','run','./cmds/version','help','fetch','9HvlNYl','node','version','setFetch','build','versions','Current\x20Node.js\x20version\x20is\x20','setDecompressResponseBuffer','Cli','store','decompressResponseBuffer','minimist','2458023sUYscf','./utils/fetch','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','major','publish','length','fetchUtils'];_0xc305=function(){return _0x32d76e;};return _0xc305();}Object['defineProperty'](exports,_0x9edd21(0x108),{'value':!![]}),exports[_0x9edd21(0x120)]=void 0x0;const minimist=require(_0x9edd21(0x123)),semver_1=require(_0x9edd21(0x113)),FetchUtils_1_1=require(_0x9edd21(0x10e)),help_1=require(_0x9edd21(0x110)),build_1=require('./cmds/build'),version_1=require(_0x9edd21(0x115)),fetch_1=require(_0x9edd21(0x100));class Cli{async[_0x9edd21(0x114)](_0x36c8b0){const _0x3f9935=_0x9edd21;if((0x0,semver_1[_0x3f9935(0x102)])(process[_0x3f9935(0x11d)][_0x3f9935(0x119)])<0xe)throw new Error(_0x3f9935(0x11e)+process[_0x3f9935(0x11d)]['node']+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1[_0x3f9935(0x105)][_0x3f9935(0x11b)](fetch_1[_0x3f9935(0x117)]),FetchUtils_1_1[_0x3f9935(0x105)][_0x3f9935(0x10f)](fetch_1['downloadFile']),FetchUtils_1_1[_0x3f9935(0x105)][_0x3f9935(0x11f)](fetch_1[_0x3f9935(0x122)]);const _0x5c1e7e=minimist(_0x36c8b0);let _0x53912f=undefined;if(_0x5c1e7e['_'][_0x3f9935(0x104)]===0x0){if(_0x5c1e7e['version'])_0x53912f='version';else _0x5c1e7e['help']&&(_0x53912f='help');}else _0x53912f=_0x5c1e7e['_'][0x0];!_0x53912f&&(_0x53912f=_0x3f9935(0x116));switch(_0x53912f){case _0x3f9935(0x116):case'h':return await(0x0,help_1[_0x3f9935(0x116)])(_0x5c1e7e);case _0x3f9935(0x11c):return await(0x0,build_1[_0x3f9935(0x109)])(_0x5c1e7e);case _0x3f9935(0x103):return await(0x0,build_1[_0x3f9935(0x121)])(_0x5c1e7e);case _0x3f9935(0x107):return await(0x0,build_1['dev'])(_0x5c1e7e);case'version':{return await(0x0,version_1[_0x3f9935(0x11a)])();}default:throw new Error('\x22'+_0x53912f+_0x3f9935(0x101));}}}exports[_0x9edd21(0x120)]=Cli;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xb166f7=_0x5b52;(function(_0x186b57,_0x5d120a){const _0xe3ce8f=_0x5b52,_0x289b98=_0x186b57();while(!![]){try{const _0x36be6e=-parseInt(_0xe3ce8f(0x1a7))/0x1*(-parseInt(_0xe3ce8f(0x1ca))/0x2)+parseInt(_0xe3ce8f(0x1cc))/0x3+parseInt(_0xe3ce8f(0x1c8))/0x4+-parseInt(_0xe3ce8f(0x1b1))/0x5*(-parseInt(_0xe3ce8f(0x1c6))/0x6)+-parseInt(_0xe3ce8f(0x1c2))/0x7*(parseInt(_0xe3ce8f(0x1b6))/0x8)+parseInt(_0xe3ce8f(0x1ac))/0x9*(-parseInt(_0xe3ce8f(0x1b8))/0xa)+-parseInt(_0xe3ce8f(0x1c4))/0xb*(parseInt(_0xe3ce8f(0x1b0))/0xc);if(_0x36be6e===_0x5d120a)break;else _0x289b98['push'](_0x289b98['shift']());}catch(_0x36318f){_0x289b98['push'](_0x289b98['shift']());}}}(_0x3eb1,0x535d3));Object[_0xb166f7(0x1bb)](exports,_0xb166f7(0x1ae),{'value':!![]}),exports['start']=start,exports[_0xb166f7(0x1a9)]=store,exports['dev']=dev;const pwa_1=require(_0xb166f7(0x1b4)),resource_1=require(_0xb166f7(0x1c1)),xcode_1=require('../xcode'),check_1=require(_0xb166f7(0x1b3));function _0x3eb1(){const _0x146a06=['1314372fwtUlY','moveProjectFrom','48200QLbGfI','json','168333IywBdj','6djnAiK','com.SpatialWeb.test','store','checkBuildParams','name','19593amwaEN','-------------------\x20build\x20start\x20-------------------','__esModule','checkStoreParams','769596ootYLI','546765kETKIf','runWithSimulator','./check','../pwa','ResourceManager','796384EdeMcq','generate\x20icon:\x20ok','190okVgxd','-------------------\x20build\x20end\x20-------------------','XcodeManager','defineProperty','export','parseProject','upload','SpatialWebTest','move\x20web\x20project:\x20ok','../resource','14hnnieT','log','66iifBKp','buildType','24jiLoVF','project'];_0x3eb1=function(){return _0x146a06;};return _0x3eb1();}async function start(_0x1d503d,_0x2f227a=![]){const _0x4b47ea=_0xb166f7;(0x0,check_1[_0x4b47ea(0x1aa)])(_0x1d503d,_0x2f227a),console[_0x4b47ea(0x1c3)](_0x4b47ea(0x1ad));let _0x318e21=await pwa_1['PWAGenerator']['generator'](_0x1d503d,_0x2f227a);!_0x318e21['fromNet']&&(await resource_1['ResourceManager'][_0x4b47ea(0x1c9)](_0x1d503d[_0x4b47ea(0x1c7)]),console['log'](_0x4b47ea(0x1c0)));const _0x3a4651=await resource_1[_0x4b47ea(0x1b5)]['generateIcon'](_0x318e21);return console[_0x4b47ea(0x1c3)](_0x4b47ea(0x1b7)),await xcode_1[_0x4b47ea(0x1ba)][_0x4b47ea(0x1bd)]({'icon':_0x3a4651,'manifestInfo':_0x318e21,'teamId':_0x1d503d['teamId'],'version':_0x1d503d['version'],'buildType':_0x1d503d[_0x4b47ea(0x1c5)],'export':_0x1d503d[_0x4b47ea(0x1bc)]},_0x2f227a),console['log'](_0x4b47ea(0x1b9)),_0x318e21;}async function store(_0x37f8af){const _0x14c886=_0xb166f7;(0x0,check_1[_0x14c886(0x1af)])(_0x37f8af);let _0x2b230f={'name':_0x14c886(0x1bf)};_0x37f8af[_0x14c886(0x1c5)]='app-store-connect';if(_0x37f8af[_0x14c886(0x1ab)])_0x2b230f[_0x14c886(0x1ab)]=_0x37f8af[_0x14c886(0x1ab)];else{const _0xf573a6=await start(_0x37f8af);if(!_0xf573a6)return![];_0x2b230f[_0x14c886(0x1ab)]=_0xf573a6[_0x14c886(0x1cb)][_0x14c886(0x1ab)];}return await xcode_1[_0x14c886(0x1ba)][_0x14c886(0x1be)](_0x37f8af,_0x2b230f),!![];}function _0x5b52(_0x56ea60,_0x2e5cb8){const _0x3eb19f=_0x3eb1();return _0x5b52=function(_0x5b52d3,_0x28c585){_0x5b52d3=_0x5b52d3-0x1a7;let _0x2c2cac=_0x3eb19f[_0x5b52d3];return _0x2c2cac;},_0x5b52(_0x56ea60,_0x2e5cb8);}async function dev(_0x5a033b){const _0x471707=_0xb166f7;let _0x37b5bf={'name':_0x471707(0x1bf),'id':_0x471707(0x1a8)};const _0x2c2407=await start(_0x5a033b,!![]);if(!_0x2c2407)return![];return _0x37b5bf[_0x471707(0x1ab)]=_0x2c2407['json'][_0x471707(0x1ab)],_0x37b5bf['id']=_0x2c2407[_0x471707(0x1cb)]['id'],await xcode_1[_0x471707(0x1ba)][_0x471707(0x1b2)](_0x37b5bf),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x245180=_0x49f4;(function(_0x5bed05,_0x5162a3){var _0x4c9f17=_0x49f4,_0xfed284=_0x5bed05();while(!![]){try{var _0xf52488=parseInt(_0x4c9f17(0x195))/0x1*(-parseInt(_0x4c9f17(0x196))/0x2)+-parseInt(_0x4c9f17(0x19d))/0x3+parseInt(_0x4c9f17(0x197))/0x4*(parseInt(_0x4c9f17(0x1a0))/0x5)+parseInt(_0x4c9f17(0x19c))/0x6*(-parseInt(_0x4c9f17(0x19a))/0x7)+-parseInt(_0x4c9f17(0x192))/0x8*(parseInt(_0x4c9f17(0x1a1))/0x9)+parseInt(_0x4c9f17(0x191))/0xa*(-parseInt(_0x4c9f17(0x193))/0xb)+-parseInt(_0x4c9f17(0x19f))/0xc*(-parseInt(_0x4c9f17(0x19e))/0xd);if(_0xf52488===_0x5162a3)break;else _0xfed284['push'](_0xfed284['shift']());}catch(_0x56571b){_0xfed284['push'](_0xfed284['shift']());}}}(_0x4d36,0x6f484));Object['defineProperty'](exports,_0x245180(0x18f),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x245180(0x18e)]=checkStoreParams;function checkBuildParams(_0x45703c,_0x3296c2=![]){var _0x5b588c=_0x245180;if(!_0x45703c[_0x5b588c(0x18c)]&&!_0x45703c[_0x5b588c(0x194)])throw new Error(_0x5b588c(0x190));if(_0x45703c[_0x5b588c(0x18c)]&&_0x45703c[_0x5b588c(0x194)])throw new Error(_0x5b588c(0x199));if(!_0x45703c['teamId']&&!_0x3296c2)throw new Error(_0x5b588c(0x19b));}function checkStoreParams(_0x444b08){var _0x5f074d=_0x245180;if(!(_0x444b08['u']&&_0x444b08['p'])&&!(_0x444b08['k']&&_0x444b08['i']))throw new Error(_0x5f074d(0x18d));if(!_0x444b08['version'])throw new Error(_0x5f074d(0x198));}function _0x49f4(_0x271215,_0x299774){var _0x4d3646=_0x4d36();return _0x49f4=function(_0x49f4e0,_0x1d3093){_0x49f4e0=_0x49f4e0-0x18c;var _0x4334de=_0x4d3646[_0x49f4e0];return _0x4334de;},_0x49f4(_0x271215,_0x299774);}function _0x4d36(){var _0x556d32=['381084SFEbMC','800sVVrgB','9toEHpX','manifest','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','checkStoreParams','__esModule','manifest\x20or\x20manifest-url\x20is\x20required','3150670iuqIBh','1545144ifrEOF','11oISQIo','manifest-url','43gTOUDN','29662UyTniu','19264LmwsSM','version\x20is\x20required','manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','13608HZwyJV','teamId\x20is\x20required','606raTbiv','1014036BEISTZ','559LgYBtj'];_0x4d36=function(){return _0x556d32;};return _0x4d36();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x567ec6=_0x48d6;(function(_0x21660d,_0x207743){const _0xf08d45=_0x48d6,_0x26d316=_0x21660d();while(!![]){try{const _0x71f247=-parseInt(_0xf08d45(0xbc))/0x1*(parseInt(_0xf08d45(0xc6))/0x2)+parseInt(_0xf08d45(0xbe))/0x3+-parseInt(_0xf08d45(0xd6))/0x4*(-parseInt(_0xf08d45(0xc9))/0x5)+parseInt(_0xf08d45(0xc0))/0x6+-parseInt(_0xf08d45(0xbd))/0x7+parseInt(_0xf08d45(0xcb))/0x8+-parseInt(_0xf08d45(0xd5))/0x9;if(_0x71f247===_0x207743)break;else _0x26d316['push'](_0x26d316['shift']());}catch(_0xf5cbb3){_0x26d316['push'](_0x26d316['shift']());}}}(_0x3fa4,0x1f363));function _0x3fa4(){const _0x340347=['ConsoleLog','main','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','publish','info','64986IEIiiO','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','dev','760EmWWzt','help\x20................\x20shows\x20this\x20menu','1836056JvvqmQ','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','get','build','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','join','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','help','Usage:','3054663GwYNmV','3308tVVdbj','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','__esModule','3NtLVXp','548695roVlUd','703188jeNRTy','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','321042ZvdiMR'];_0x3fa4=function(){return _0x340347;};return _0x3fa4();}function _0x48d6(_0x476f15,_0x4ef2ac){const _0x3fa470=_0x3fa4();return _0x48d6=function(_0x48d658,_0x44cb7c){_0x48d658=_0x48d658-0xbc;let _0x4f42b3=_0x3fa470[_0x48d658];return _0x4f42b3;},_0x48d6(_0x476f15,_0x4ef2ac);}Object['defineProperty'](exports,_0x567ec6(0xd8),{'value':!![]}),exports[_0x567ec6(0xd3)]=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([[_0x567ec6(0xc2),['webspatial\x20[command]\x20<options>','','',_0x567ec6(0xca),_0x567ec6(0xcc)+_0x567ec6(0xc7),_0x567ec6(0xd0),_0x567ec6(0xbf)][_0x567ec6(0xd1)]('\x0a')],[_0x567ec6(0xce),[_0x567ec6(0xd4),'','',_0x567ec6(0xd2),'','',_0x567ec6(0xc3)]['join']('\x0a')],[_0x567ec6(0xc8),[_0x567ec6(0xd4),'','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x567ec6(0xd7)][_0x567ec6(0xd1)]('\x0a')],[_0x567ec6(0xc4),[_0x567ec6(0xd4),'','','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>','','',_0x567ec6(0xcf),'','','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>'][_0x567ec6(0xd1)]('\x0a')]]);async function help(_0x220bd3,_0x362cb9=new Log_1[(_0x567ec6(0xc1))](_0x567ec6(0xd3))){const _0x11bb38=_0x567ec6,_0x3911f1=_0x220bd3['_'][0x1],_0x38f6d8=HELP_MESSAGES[_0x11bb38(0xcd)](_0x3911f1)||HELP_MESSAGES['get']('main');return _0x362cb9[_0x11bb38(0xc5)](_0x38f6d8),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x453650=_0xc091;function _0x5e4d(){const _0x209d3e=['1807407FuZafI','3240324UyAZVA','version','info','join','1944978hiLUZG','4314312UyDTNX','../utils/Log','ConsoleLog','parse','1vxvLJg','318326ocMDIK','promises','__esModule','readFile','1805EtoqJj','toString','4468ORSSPy','../../../package.json','3671934jJEKxf'];_0x5e4d=function(){return _0x209d3e;};return _0x5e4d();}(function(_0x1416f1,_0xadc55f){const _0x18967d=_0xc091,_0x2f2348=_0x1416f1();while(!![]){try{const _0x2107ce=-parseInt(_0x18967d(0xf5))/0x1*(-parseInt(_0x18967d(0xf6))/0x2)+parseInt(_0x18967d(0x104))/0x3+-parseInt(_0x18967d(0xfc))/0x4*(parseInt(_0x18967d(0xfa))/0x5)+-parseInt(_0x18967d(0xfe))/0x6+-parseInt(_0x18967d(0xff))/0x7+parseInt(_0x18967d(0x105))/0x8+parseInt(_0x18967d(0x100))/0x9;if(_0x2107ce===_0xadc55f)break;else _0x2f2348['push'](_0x2f2348['shift']());}catch(_0x5babb2){_0x2f2348['push'](_0x2f2348['shift']());}}}(_0x5e4d,0x69ceb));function _0xc091(_0x3c8f13,_0xd088d3){const _0x5e4d55=_0x5e4d();return _0xc091=function(_0xc09177,_0x4ae86a){_0xc09177=_0xc09177-0xf2;let _0x5a3243=_0x5e4d55[_0xc09177];return _0x5a3243;},_0xc091(_0x3c8f13,_0xd088d3);}Object['defineProperty'](exports,_0x453650(0xf8),{'value':!![]}),exports[_0x453650(0x101)]=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x453650(0xf2));async function version(_0x1c6197=new Log_1[(_0x453650(0xf3))](_0x453650(0x101))){const _0x1a823c=_0x453650,_0x340ea1=path[_0x1a823c(0x103)](__dirname,_0x1a823c(0xfd)),_0x383c65=await(await fs[_0x1a823c(0xf7)][_0x1a823c(0xf9)](_0x340ea1))[_0x1a823c(0xfb)](),_0x22bfa4=JSON[_0x1a823c(0xf4)](_0x383c65);return _0x1c6197[_0x1a823c(0x102)](_0x22bfa4[_0x1a823c(0x101)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2bf1da=_0x5622;(function(_0x2b939a,_0x27fba6){const _0x2ec407=_0x5622,_0x47132c=_0x2b939a();while(!![]){try{const _0x598df9=-parseInt(_0x2ec407(0x9d))/0x1+-parseInt(_0x2ec407(0xb9))/0x2*(-parseInt(_0x2ec407(0xa2))/0x3)+-parseInt(_0x2ec407(0x89))/0x4*(parseInt(_0x2ec407(0xac))/0x5)+-parseInt(_0x2ec407(0x83))/0x6*(parseInt(_0x2ec407(0x87))/0x7)+parseInt(_0x2ec407(0x9c))/0x8*(parseInt(_0x2ec407(0xb1))/0x9)+parseInt(_0x2ec407(0x91))/0xa*(parseInt(_0x2ec407(0xa7))/0xb)+-parseInt(_0x2ec407(0x82))/0xc*(-parseInt(_0x2ec407(0x8d))/0xd);if(_0x598df9===_0x27fba6)break;else _0x47132c['push'](_0x47132c['shift']());}catch(_0xcb20c3){_0x47132c['push'](_0x47132c['shift']());}}}(_0x1ca2,0x61103));Object[_0x2bf1da(0x76)](exports,_0x2bf1da(0xb7),{'value':!![]}),exports[_0x2bf1da(0xa3)]=void 0x0,exports[_0x2bf1da(0xbc)]=configId,exports[_0x2bf1da(0x9a)]=configStartUrl,exports[_0x2bf1da(0x88)]=configScope,exports[_0x2bf1da(0x7b)]=configDisplay,exports[_0x2bf1da(0x7a)]=configMainScene,exports[_0x2bf1da(0xbb)]=configDeeplink;function _0x5622(_0x2e732e,_0x210fb4){const _0x1ca222=_0x1ca2();return _0x5622=function(_0x56220e,_0x5e0ba1){_0x56220e=_0x56220e-0x75;let _0x5399df=_0x1ca222[_0x56220e];return _0x5399df;},_0x5622(_0x2e732e,_0x210fb4);}const utils_1=require('../utils/utils'),validate_1=require(_0x2bf1da(0xad)),path_1=require(_0x2bf1da(0xa6));function configId(_0x331d97){const _0x5dce1c=_0x2bf1da,_0x47ab19=new URL(_0x331d97['id']);let _0xcca213=_0x47ab19[_0x5dce1c(0x77)][_0x5dce1c(0xb6)]('.')[_0x5dce1c(0x95)]();_0x331d97['id']=_0xcca213[_0x5dce1c(0x8c)]('.');}function configStartUrl(_0x4fc046,_0x1d3a31,_0x58544e){const _0x13b3f8=_0x2bf1da,_0x48bfb5=(0x0,validate_1['validateURL'])(_0x4fc046['start_url']);let _0x11d050=_0x4fc046[_0x13b3f8(0x9e)];_0x58544e?!_0x48bfb5&&(_0x11d050=(0x0,path_1[_0x13b3f8(0x8c)])((0x0,utils_1[_0x13b3f8(0x78)])(_0x1d3a31),_0x4fc046[_0x13b3f8(0x9e)])):!_0x48bfb5&&(_0x11d050=(0x0,path_1[_0x13b3f8(0x8c)])('./static-web',_0x4fc046[_0x13b3f8(0x9e)])),_0x4fc046[_0x13b3f8(0x9e)]=_0x11d050;}function configScope(_0x20e519,_0x30137c){const _0x5c19d5=_0x2bf1da;var _0x567dd9,_0x1edfcb,_0xeed43f;let _0x485b81='';const _0x35b20f=(0x0,validate_1[_0x5c19d5(0xb3)])(_0x20e519[_0x5c19d5(0xa5)]);if(_0x30137c&&_0x35b20f){const _0x4cf27e=new URL((_0x567dd9=_0x20e519[_0x5c19d5(0xa5)])!==null&&_0x567dd9!==void 0x0?_0x567dd9:''),_0x5c7a81=new URL(_0x20e519['start_url']);(_0x4cf27e[_0x5c19d5(0x77)]!==_0x5c7a81['host']||_0x20e519['start_url'][_0x5c19d5(0xaa)](_0x485b81)!==0x0)&&(_0x485b81=(0x0,utils_1[_0x5c19d5(0x78)])(_0x20e519[_0x5c19d5(0x9e)]));}else{if(_0x30137c&&!_0x35b20f){const _0x1ab970=_0x20e519['start_url']['indexOf']('http://')===0x0?_0x5c19d5(0x8b):_0x5c19d5(0x8a);_0x485b81=(0x0,path_1[_0x5c19d5(0x8c)])(_0x20e519[_0x5c19d5(0x9e)][_0x5c19d5(0xb4)](_0x1ab970,''),(_0x1edfcb=_0x20e519[_0x5c19d5(0xa5)])!==null&&_0x1edfcb!==void 0x0?_0x1edfcb:''),_0x485b81=_0x1ab970+_0x485b81;}else _0x485b81=(0x0,path_1[_0x5c19d5(0x8c)])((0x0,utils_1[_0x5c19d5(0x78)])(_0x20e519[_0x5c19d5(0x9e)]),(_0xeed43f=_0x20e519['scope'])!==null&&_0xeed43f!==void 0x0?_0xeed43f:'');}_0x20e519[_0x5c19d5(0xa5)]=_0x485b81;}function _0x1ca2(){const _0x1851e0=['length','display_override','matrix','includes','731964ZfuBhu','88674laPnPi','xmpp','ircs','webcal','357jufTvi','configScope','428AQzUlh','https://','http://','join','52qHjigb','xr_main_scene','smsto','display','6550TXvAzj','ftps','news','mainScene','reverse','resizability','nntp','urn','defaultSize','configStartUrl','width','88IKROWa','578EqphQq','start_url','automatic','mailto','protocol_handlers','1783356TFficx','safelist','standalone','scope','path','9141BEPXaD','height','url','indexOf','web+','12945vJxMhF','./validate','bitcoin','irc','protocol','37764VVCpuo','tel','validateURL','replace','magnet','split','__esModule','mms','2ffNGDt','ftp','configDeeplink','configId','splice','defineProperty','host','parseRouter','default_size','configMainScene','configDisplay','minimal-ui','contentMinSize'];_0x1ca2=function(){return _0x1851e0;};return _0x1ca2();}function configDisplay(_0x488fca){const _0x173e55=_0x2bf1da;let _0x1e0766=_0x488fca[_0x173e55(0x90)];_0x1e0766!=='minimal-ui'&&_0x1e0766!==_0x173e55(0xa4)&&(_0x1e0766='standalone');if(_0x488fca[_0x173e55(0x7f)]&&_0x488fca[_0x173e55(0x7f)][_0x173e55(0x7e)]>0x0){const _0x11a6a0=_0x488fca[_0x173e55(0x7f)][_0x173e55(0xaa)](_0x173e55(0x7c)),_0x47da67=_0x488fca[_0x173e55(0x7f)][_0x173e55(0xaa)]('standalone');if(_0x11a6a0>=0x0&&_0x47da67>=0x0)_0x1e0766=_0x47da67>_0x11a6a0?'standalone':_0x173e55(0x7c);else{if(_0x11a6a0>=0x0)_0x1e0766=_0x173e55(0x7c);else _0x47da67>=0x0&&(_0x1e0766=_0x173e55(0xa4));}}}function configMainScene(_0x54ce77){const _0x505d90=_0x2bf1da;var _0x1b169c,_0x316234;const _0x1e68ee=['automatic',_0x505d90(0x7d),'contentSize'];let _0xa6d4c9={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x505d90(0x9f)};_0x54ce77[_0x505d90(0x8e)]&&(_0xa6d4c9['defaultSize'][_0x505d90(0x9b)]=Number((_0x1b169c=_0x54ce77['xr_main_scene'][_0x505d90(0x79)])===null||_0x1b169c===void 0x0?void 0x0:_0x1b169c['width'])>0x0?_0x54ce77[_0x505d90(0x8e)][_0x505d90(0x79)][_0x505d90(0x9b)]:0x500,_0xa6d4c9[_0x505d90(0x99)]['height']=Number((_0x316234=_0x54ce77[_0x505d90(0x8e)]['default_size'])===null||_0x316234===void 0x0?void 0x0:_0x316234['height'])>0x0?_0x54ce77['xr_main_scene']['default_size'][_0x505d90(0xa8)]:0x500,_0xa6d4c9[_0x505d90(0x96)]=_0x1e68ee[_0x505d90(0x81)](_0x54ce77[_0x505d90(0x8e)][_0x505d90(0x96)])?_0x54ce77[_0x505d90(0x8e)]['resizability']:_0x505d90(0x9f)),_0x54ce77[_0x505d90(0x94)]=_0xa6d4c9;}function configDeeplink(_0x2b0c7b){const _0x54024b=_0x2bf1da;if(_0x2b0c7b[_0x54024b(0xa1)]&&_0x2b0c7b['protocol_handlers']['length']>0x0)for(var _0x4c22a5=0x0;_0x4c22a5<_0x2b0c7b[_0x54024b(0xa1)][_0x54024b(0x7e)];_0x4c22a5++){const _0x53da4a=_0x2b0c7b[_0x54024b(0xa1)][_0x4c22a5];if(_0x53da4a[_0x54024b(0xb0)]&&(exports['safelist'][_0x54024b(0x81)](_0x53da4a[_0x54024b(0xb0)])||_0x53da4a[_0x54024b(0xb0)][_0x54024b(0xaa)](_0x54024b(0xab))===0x0)){if(!((0x0,validate_1[_0x54024b(0xb3)])(_0x53da4a[_0x54024b(0xa9)])&&_0x53da4a['url']['indexOf'](_0x2b0c7b[_0x54024b(0xa5)])<0x0))continue;}_0x2b0c7b[_0x54024b(0xa1)][_0x54024b(0x75)](_0x4c22a5,0x1),_0x4c22a5--;}}exports['safelist']=[_0x2bf1da(0xae),_0x2bf1da(0xba),_0x2bf1da(0x92),'geo','im',_0x2bf1da(0xaf),_0x2bf1da(0x85),_0x2bf1da(0xb5),_0x2bf1da(0xa0),_0x2bf1da(0x80),_0x2bf1da(0xb8),_0x2bf1da(0x93),_0x2bf1da(0x97),'openpgp4fpr','sftp','sip','sms',_0x2bf1da(0x8f),'ssh',_0x2bf1da(0xb2),_0x2bf1da(0x98),_0x2bf1da(0x86),'wtai',_0x2bf1da(0x84)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x20239b=_0x15fa;(function(_0x453d06,_0x64f8ca){const _0x711f24=_0x15fa,_0x48f54d=_0x453d06();while(!![]){try{const _0x364562=parseInt(_0x711f24(0x8f))/0x1*(-parseInt(_0x711f24(0x99))/0x2)+-parseInt(_0x711f24(0x81))/0x3+parseInt(_0x711f24(0x88))/0x4+parseInt(_0x711f24(0x78))/0x5*(-parseInt(_0x711f24(0x7b))/0x6)+parseInt(_0x711f24(0x97))/0x7+parseInt(_0x711f24(0x96))/0x8+parseInt(_0x711f24(0x94))/0x9*(parseInt(_0x711f24(0x77))/0xa);if(_0x364562===_0x64f8ca)break;else _0x48f54d['push'](_0x48f54d['shift']());}catch(_0x13bb0d){_0x48f54d['push'](_0x48f54d['shift']());}}}(_0x3d42,0x83ab2));Object[_0x20239b(0x89)](exports,_0x20239b(0x85),{'value':!![]}),exports[_0x20239b(0x87)]=void 0x0;function _0x3d42(){const _0x40e6bd=['configMainScene','join','18Mtktks','path','manifest-url','manifest','log','configDisplay','638145FlWrvA','minimal-ui','configScope','validate','__esModule','configStartUrl','PWAGenerator','1138100LJiQeA','defineProperty','checkIcons','checkManifestJson','cwd','../resource/load','config','1hiTzXs','fromNet','json','reset\x20manifest.json:\x20ok','generator','36zzXUcJ','standalone','289376agwJEg','3859023ptFeKw','configId','1113452SWpkQt','check\x20manifest.json:\x20ok','loadJsonFromDisk','2701040DjuRli','1072745DGAZQI'];_0x3d42=function(){return _0x40e6bd;};return _0x3d42();}function _0x15fa(_0xa7f679,_0x384d50){const _0x3d4235=_0x3d42();return _0x15fa=function(_0x15fae3,_0x327d66){_0x15fae3=_0x15fae3-0x76;let _0x26e35c=_0x3d4235[_0x15fae3];return _0x26e35c;},_0x15fa(_0xa7f679,_0x384d50);}const path_1=require(_0x20239b(0x7c)),config_1=require('./config'),load_1=require(_0x20239b(0x8d)),validate_1=require('./validate');class PWAGenerator{static async[_0x20239b(0x93)](_0x5317a3,_0x44bdab=![]){const _0x35a5a1=_0x20239b;let _0x6475f=await this[_0x35a5a1(0x84)](_0x5317a3,_0x44bdab);return console[_0x35a5a1(0x7f)](_0x35a5a1(0x9a)),await this[_0x35a5a1(0x8e)](_0x6475f,_0x44bdab),console['log'](_0x35a5a1(0x92)),_0x6475f;}static async[_0x20239b(0x84)](_0x364540,_0x423c3e=![]){const _0x4b8acc=_0x20239b;let _0x55b65f={},_0x3b03ae='',_0x5dfeb2=![];if(_0x364540[_0x4b8acc(0x7d)])_0x3b03ae=_0x364540[_0x4b8acc(0x7d)],_0x5dfeb2=!![],_0x55b65f=await(0x0,load_1['loadJsonFromNet'])(_0x364540[_0x4b8acc(0x7d)]);else _0x364540['manifest']&&(_0x3b03ae=(0x0,path_1[_0x4b8acc(0x7a)])(process[_0x4b8acc(0x8c)](),_0x364540[_0x4b8acc(0x7e)]),_0x55b65f=await(0x0,load_1[_0x4b8acc(0x76)])(_0x364540[_0x4b8acc(0x7e)]));(0x0,validate_1[_0x4b8acc(0x8b)])(_0x55b65f);var _0x4cc85a=(0x0,validate_1['checkStartUrl'])(_0x55b65f,_0x3b03ae,_0x5dfeb2,_0x423c3e);if(!_0x423c3e)(0x0,validate_1['checkId'])(_0x55b65f);return await(0x0,validate_1[_0x4b8acc(0x8a)])(_0x55b65f,_0x3b03ae),{'json':_0x55b65f,'url':_0x3b03ae,'fromNet':_0x4cc85a};}static['config'](_0x308491,_0x188b22){const _0x3fbff9=_0x20239b;(0x0,config_1[_0x3fbff9(0x86)])(_0x308491['json'],_0x308491['url'],_0x308491[_0x3fbff9(0x90)]);if(!_0x188b22)(0x0,config_1[_0x3fbff9(0x98)])(_0x308491[_0x3fbff9(0x91)]);(0x0,config_1[_0x3fbff9(0x83)])(_0x308491[_0x3fbff9(0x91)],_0x308491['fromNet']),(0x0,config_1[_0x3fbff9(0x80)])(_0x308491['json']),(0x0,config_1['configDeeplink'])(_0x308491[_0x3fbff9(0x91)]),(0x0,config_1[_0x3fbff9(0x79)])(_0x308491[_0x3fbff9(0x91)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator['DisplayModes']=[_0x20239b(0x95),_0x20239b(0x82)];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5669c4=_0x5cb6;(function(_0x37e2ee,_0x470939){const _0x57f372=_0x5cb6,_0x200839=_0x37e2ee();while(!![]){try{const _0x8dde34=parseInt(_0x57f372(0x9a))/0x1*(parseInt(_0x57f372(0x9b))/0x2)+parseInt(_0x57f372(0x9e))/0x3*(parseInt(_0x57f372(0xb5))/0x4)+-parseInt(_0x57f372(0xbf))/0x5*(parseInt(_0x57f372(0xc9))/0x6)+-parseInt(_0x57f372(0xb4))/0x7+-parseInt(_0x57f372(0xb0))/0x8+-parseInt(_0x57f372(0xcd))/0x9*(parseInt(_0x57f372(0xb8))/0xa)+parseInt(_0x57f372(0xc6))/0xb;if(_0x8dde34===_0x470939)break;else _0x200839['push'](_0x200839['shift']());}catch(_0x1cfc8f){_0x200839['push'](_0x200839['shift']());}}}(_0xe3ac,0xec31c));Object[_0x5669c4(0xc5)](exports,'__esModule',{'value':!![]}),exports[_0x5669c4(0xb9)]=checkManifestJson,exports[_0x5669c4(0xb1)]=checkStartUrl,exports[_0x5669c4(0xc3)]=checkIcons,exports['checkId']=checkId,exports[_0x5669c4(0x9d)]=validateURL;function _0xe3ac(){const _0x445844=['purpose','../resource/imageHelper','72yviDPy','PWAGenerator','display','indexOf','1CfsGwp','493858dLnljw','http','validateURL','4019343PqZRrA','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','startsWith','forEach','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL','host','getWidth','icons','ImageHelper','../resource/load','path','loadImageFromNet','length','https://','CustomError','loadImageFromDisk','sizes','../utils/CustomError','8615208ZHtNam','checkStartUrl','push','start_url','796460LszLSt','4AZhHDw','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','isFullyOpaque','1219050JufGkv','checkManifestJson','maskable','http://','Local\x20manifest\x20cannot\x20package\x20network\x20project','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','src','8739915bqRLpy','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','DisplayModes','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','checkIcons','name','defineProperty','36241106AOmjvM','split','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','6lwZyKt','../utils/utils'];_0xe3ac=function(){return _0x445844;};return _0xe3ac();}function _0x5cb6(_0x289e9e,_0x3128c6){const _0xe3ac4c=_0xe3ac();return _0x5cb6=function(_0x5cb6b1,_0x5a7f2b){_0x5cb6b1=_0x5cb6b1-0x97;let _0x442643=_0xe3ac4c[_0x5cb6b1];return _0x442643;},_0x5cb6(_0x289e9e,_0x3128c6);}const path_1=require(_0x5669c4(0xa8)),_1=require('.'),CustomError_1=require(_0x5669c4(0xaf)),utils_1=require(_0x5669c4(0xca)),imageHelper_1=require(_0x5669c4(0xcc)),load_1=require(_0x5669c4(0xa7));function checkManifestJson(_0x2e9e30){const _0x69dc3d=_0x5669c4;var _0x4ef343;const _0x2bb283=[];!_0x2e9e30[_0x69dc3d(0xc4)]&&!_0x2e9e30['short_name']&&_0x2bb283[_0x69dc3d(0xb2)]({'code':0xbbe,'message':_0x69dc3d(0xbd),'message_staring_params':{}});!((_0x4ef343=_0x2e9e30[_0x69dc3d(0xa5)])===null||_0x4ef343===void 0x0?void 0x0:_0x4ef343['length'])&&_0x2bb283[_0x69dc3d(0xb2)]({'code':0xbbf,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x2e9e30[_0x69dc3d(0xb3)]&&_0x2bb283[_0x69dc3d(0xb2)]({'code':0xbc0,'message':_0x69dc3d(0xc2),'message_staring_params':{}});!_1[_0x69dc3d(0x97)][_0x69dc3d(0xc1)]['includes'](_0x2e9e30[_0x69dc3d(0x98)])&&_0x2bb283[_0x69dc3d(0xb2)]({'code':0xbc1,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value'+(_0x69dc3d(0x9f)+_0x2e9e30[_0x69dc3d(0x98)]+')'),'message_staring_params':{'display':_0x2e9e30[_0x69dc3d(0x98)]}});if(_0x2bb283[_0x69dc3d(0xaa)])throw new CustomError_1[(_0x69dc3d(0xac))](_0x2bb283);}function checkStartUrl(_0x298e5d,_0x1f470c,_0x145f80,_0x58545c=![]){const _0xc38c80=_0x5669c4;var _0x582246=![];if(_0x58545c)return _0x582246=_0x298e5d['start_url'][_0xc38c80(0x99)]('https://')===0x0||_0x298e5d[_0xc38c80(0xb3)][_0xc38c80(0x99)](_0xc38c80(0xbb))===0x0,_0x582246;if(_0x145f80){if(_0x298e5d[_0xc38c80(0xb3)][_0xc38c80(0x99)](_0xc38c80(0xab))==0x0){const _0x40acc9=new URL(_0x298e5d[_0xc38c80(0xb3)]),_0x460451=new URL(_0x1f470c);if(_0x40acc9['host']!==_0x460451[_0xc38c80(0xa3)])throw new CustomError_1[(_0xc38c80(0xac))]({'code':0xfa0,'message':_0xc38c80(0xb6),'message_staring_params':{}});}else{if(_0x298e5d['start_url'][_0xc38c80(0x99)](_0xc38c80(0xbb))==0x0)throw new CustomError_1[(_0xc38c80(0xac))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','message_staring_params':{}});}}else{if(_0x298e5d[_0xc38c80(0xb3)]['indexOf'](_0xc38c80(0xab))==0x0||_0x298e5d[_0xc38c80(0xb3)][_0xc38c80(0x99)]('http://')==0x0)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0xc38c80(0xbc),'message_staring_params':{}});}return _0x582246;}async function checkIcons(_0x3ace29,_0x22829f){const _0x1a5d21=_0x5669c4;var _0x27810d;const _0x1f1a45=(0x0,utils_1['parseRouter'])(_0x22829f);let _0x4157c4,_0x2daf00,_0x5aca0c,_0x15eb5f=0x0;for(var _0x279258=0x0;_0x279258<_0x3ace29['icons'][_0x1a5d21(0xaa)];_0x279258++){const _0x185d29=_0x3ace29[_0x1a5d21(0xa5)][_0x279258];let _0x224167=((_0x27810d=_0x185d29[_0x1a5d21(0xcb)])===null||_0x27810d===void 0x0?void 0x0:_0x27810d[_0x1a5d21(0x99)](_0x1a5d21(0xba)))>=0x0;if(!_0x224167)continue;let _0x29f41c=![],_0x40cd67=_0x185d29[_0x1a5d21(0xbe)],_0x5bc526,_0x507fe7=0x0;!validateURL(_0x40cd67)&&(_0x40cd67=(0x0,path_1['join'])(_0x1f1a45,_0x40cd67));if(_0x185d29[_0x1a5d21(0xae)]){const _0x55bbb7=_0x185d29[_0x1a5d21(0xae)][_0x1a5d21(0xc7)]('\x20');_0x55bbb7[_0x1a5d21(0xa1)](_0x3697f8=>{const _0x118249=_0x1a5d21;let _0x242b3f=_0x3697f8[_0x118249(0xc7)]('x');Number(_0x242b3f[0x0])>=0x400&&Number(_0x242b3f[0x1])>=0x400&&(_0x29f41c=!![],Number(_0x242b3f[0x0])>_0x507fe7&&(_0x507fe7=Number(_0x242b3f[0x0])));});}else _0x5bc526=!_0x40cd67[_0x1a5d21(0xa0)]('http')?await(0x0,load_1[_0x1a5d21(0xad)])(_0x40cd67):await(0x0,load_1[_0x1a5d21(0xa9)])(_0x40cd67),_0x5bc526[_0x1a5d21(0xa4)]()>=0x400&&_0x5bc526['getHeight']()>=0x400&&(_0x29f41c=!![],_0x5bc526[_0x1a5d21(0xa4)]()>_0x507fe7&&(_0x507fe7=_0x5bc526['getWidth']()));_0x29f41c&&_0x224167&&(_0x507fe7>_0x15eb5f&&(_0x15eb5f=_0x507fe7,_0x4157c4=_0x5bc526,_0x2daf00=_0x40cd67,_0x5aca0c=_0x185d29[_0x1a5d21(0xcb)]));}if(_0x15eb5f===0x0)throw new CustomError_1[(_0x1a5d21(0xac))]({'code':0xfa0,'message':_0x1a5d21(0xc8),'message_staring_params':{}});else _0x2daf00&&(_0x4157c4=!_0x2daf00[_0x1a5d21(0xa0)](_0x1a5d21(0x9c))?await(0x0,load_1[_0x1a5d21(0xad)])(_0x2daf00):await(0x0,load_1[_0x1a5d21(0xa9)])(_0x2daf00));if(_0x4157c4&&!imageHelper_1[_0x1a5d21(0xa6)][_0x1a5d21(0xb7)](_0x4157c4))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1a5d21(0xc0),'message_staring_params':{}});_0x3ace29[_0x1a5d21(0xa5)]=[{'src':_0x2daf00,'sizes':_0x15eb5f+'x'+_0x15eb5f,'purpose':_0x5aca0c}];}function checkId(_0x4fa86a){const _0x4cfad4=_0x5669c4;!_0x4fa86a['id']&&(_0x4fa86a['id']=_0x4fa86a[_0x4cfad4(0xb3)]);if(!validateURL(_0x4fa86a['id']))throw new CustomError_1[(_0x4cfad4(0xac))]({'code':0xfa0,'message':_0x4cfad4(0xa2),'message_staring_params':{}});}function validateURL(_0x5c6bf6){try{return new URL(_0x5c6bf6),!![];}catch(_0x2a5295){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x589cd5=_0x35ec;function _0x6ee4(){const _0x31937a=['684946hSmiYv','log','isDirectory','forEach','17241IlYHGU','readdirSync','unlinkSync','79965UfDDnm','isFile','existsSync','defineProperty','11xdpoBg','19363692hFgtZU','copyDir','clearDir','writeFileSync','390TEopRK','996DUfDzK','2XsNcPy','2584vvuAHL','2195xIDqiV','statSync','514767ZDDRns','521580RxOYFv','__esModule'];_0x6ee4=function(){return _0x31937a;};return _0x6ee4();}(function(_0x42d821,_0x3314ea){const _0xedfda6=_0x35ec,_0x108b8d=_0x42d821();while(!![]){try{const _0x1e777c=-parseInt(_0xedfda6(0xbd))/0x1*(-parseInt(_0xedfda6(0xab))/0x2)+parseInt(_0xedfda6(0xa8))/0x3+parseInt(_0xedfda6(0xa9))/0x4+parseInt(_0xedfda6(0xa6))/0x5*(parseInt(_0xedfda6(0xbc))/0x6)+-parseInt(_0xedfda6(0xaf))/0x7*(-parseInt(_0xedfda6(0xbe))/0x8)+parseInt(_0xedfda6(0xb2))/0x9*(parseInt(_0xedfda6(0xbb))/0xa)+parseInt(_0xedfda6(0xb6))/0xb*(-parseInt(_0xedfda6(0xb7))/0xc);if(_0x1e777c===_0x3314ea)break;else _0x108b8d['push'](_0x108b8d['shift']());}catch(_0x5e08f9){_0x108b8d['push'](_0x108b8d['shift']());}}}(_0x6ee4,0x8f9c3));Object[_0x589cd5(0xb5)](exports,_0x589cd5(0xaa),{'value':!![]}),exports[_0x589cd5(0xb8)]=copyDir,exports[_0x589cd5(0xb9)]=clearDir;function _0x35ec(_0x24e714,_0x1497c7){const _0x6ee467=_0x6ee4();return _0x35ec=function(_0x35ecb7,_0x52b64d){_0x35ecb7=_0x35ecb7-0xa6;let _0x49c7b8=_0x6ee467[_0x35ecb7];return _0x49c7b8;},_0x35ec(_0x24e714,_0x1497c7);}const fs=require('fs');function copyDir(_0x87dcd4,_0xaeb556){const _0xd6454c=_0x589cd5,_0x14df07=fs['readdirSync'](_0x87dcd4);_0x14df07[_0xd6454c(0xae)](_0x33aec5=>{const _0x26dc06=_0xd6454c,_0x11d771=_0x87dcd4+'/'+_0x33aec5,_0xcba341=_0xaeb556+'/'+_0x33aec5,_0xf97cc1=fs[_0x26dc06(0xa7)](_0x11d771);if(_0xf97cc1[_0x26dc06(0xb3)]())try{fs[_0x26dc06(0xba)](_0xcba341,fs['readFileSync'](_0x11d771));}catch(_0x40b433){console[_0x26dc06(0xac)](_0x40b433);}else _0xf97cc1[_0x26dc06(0xad)]()&&(!fs[_0x26dc06(0xb4)](_0xcba341)&&fs['mkdirSync'](_0xcba341,{'recursive':!![]}),copyDir(_0x11d771,_0xcba341));});}function clearDir(_0x55d7c2){const _0x59d3a5=_0x589cd5,_0xa0b62d=fs[_0x59d3a5(0xb0)](_0x55d7c2);_0xa0b62d[_0x59d3a5(0xae)](_0x2ef122=>{const _0x3d2f66=_0x59d3a5,_0x51edee=_0x55d7c2+'/'+_0x2ef122,_0x1a9868=fs[_0x3d2f66(0xa7)](_0x51edee);if(_0x1a9868[_0x3d2f66(0xb3)]())try{fs[_0x3d2f66(0xb1)](_0x51edee);}catch(_0x49aece){console['log'](_0x49aece);}else _0x1a9868[_0x3d2f66(0xad)]()&&clearDir(_0x51edee);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3bdba9=_0x310f;(function(_0x207fdc,_0x84da8e){const _0x489a44=_0x310f,_0x2ffdd6=_0x207fdc();while(!![]){try{const _0x5c7677=-parseInt(_0x489a44(0xfe))/0x1*(parseInt(_0x489a44(0x106))/0x2)+parseInt(_0x489a44(0xfa))/0x3+-parseInt(_0x489a44(0x110))/0x4+parseInt(_0x489a44(0xfb))/0x5*(-parseInt(_0x489a44(0x113))/0x6)+-parseInt(_0x489a44(0xf8))/0x7*(-parseInt(_0x489a44(0x10c))/0x8)+-parseInt(_0x489a44(0x111))/0x9+parseInt(_0x489a44(0x108))/0xa*(parseInt(_0x489a44(0x102))/0xb);if(_0x5c7677===_0x84da8e)break;else _0x2ffdd6['push'](_0x2ffdd6['shift']());}catch(_0x49041e){_0x2ffdd6['push'](_0x2ffdd6['shift']());}}}(_0x1e5d,0x85d3d));function _0x1e5d(){const _0x4055d9=['svg2img','2832216WLwrxg','3122496MwVuib','png','3828846SLzKoN','__esModule','1379vvXqBw','isFullyOpaque','3031518ONXnGM','5AgPitO','Resvg','ImageHelper','343373CtlRXI','webp2PngBuffer','toBuffer','sharp','11opQlXF','defineProperty','asPng','render','2iUwWLn','@resvg/resvg-js','5899510zapExJ','getWidth','data','width','39968lzXuRR','jimp','getHeight'];_0x1e5d=function(){return _0x4055d9;};return _0x1e5d();}function _0x310f(_0x9a217e,_0x3ddc1b){const _0x1e5de2=_0x1e5d();return _0x310f=function(_0x310f7c,_0xca7ade){_0x310f7c=_0x310f7c-0xf8;let _0xe15c81=_0x1e5de2[_0x310f7c];return _0xe15c81;},_0x310f(_0x9a217e,_0x3ddc1b);}Object[_0x3bdba9(0x103)](exports,_0x3bdba9(0x114),{'value':!![]}),exports[_0x3bdba9(0xfd)]=void 0x0;const Jimp=require(_0x3bdba9(0x10d)),sharp=require(_0x3bdba9(0x101)),resvg_js_1=require(_0x3bdba9(0x107));class ImageHelper{static['createImg'](_0x14f645){return new Jimp(_0x14f645,_0x14f645,0x0);}static async[_0x3bdba9(0xff)](_0x48946f){const _0x3b2d4b=_0x3bdba9;return await sharp(_0x48946f)['toFormat'](_0x3b2d4b(0x112))[_0x3b2d4b(0x100)]();}static async[_0x3bdba9(0x10f)](_0x6ab6ad){const _0x518ac6=_0x3bdba9,_0x490602={'fitTo':{'mode':_0x518ac6(0x10b),'value':0x400}},_0xce439a=new resvg_js_1[(_0x518ac6(0xfc))](_0x6ab6ad,_0x490602),_0x8b7ac6=_0xce439a[_0x518ac6(0x105)](),_0x9c3a5a=_0x8b7ac6[_0x518ac6(0x104)]();return _0x9c3a5a;}static[_0x3bdba9(0xf9)](_0x6c0798){const _0x3298e8=_0x3bdba9,_0x44faec=_0x6c0798[_0x3298e8(0x109)]()*_0x6c0798[_0x3298e8(0x10e)]();for(var _0x47367a=0x0;_0x47367a<_0x44faec;_0x47367a++){const _0x4b9078=_0x47367a*0x4+0x3;if(_0x6c0798['bitmap'][_0x3298e8(0x10a)][_0x4b9078]<0xff)return![];}return!![];}}exports[_0x3bdba9(0xfd)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2f015f=_0x4e2c;(function(_0x2c0e3d,_0x3e3f87){const _0x6d14e5=_0x4e2c,_0x5b18f0=_0x2c0e3d();while(!![]){try{const _0x2f2dac=parseInt(_0x6d14e5(0xbc))/0x1+parseInt(_0x6d14e5(0xc3))/0x2+parseInt(_0x6d14e5(0xb6))/0x3*(parseInt(_0x6d14e5(0xa9))/0x4)+parseInt(_0x6d14e5(0xad))/0x5+-parseInt(_0x6d14e5(0xab))/0x6+parseInt(_0x6d14e5(0xbb))/0x7+parseInt(_0x6d14e5(0xc7))/0x8*(-parseInt(_0x6d14e5(0xb9))/0x9);if(_0x2f2dac===_0x3e3f87)break;else _0x5b18f0['push'](_0x5b18f0['shift']());}catch(_0x3c439c){_0x5b18f0['push'](_0x5b18f0['shift']());}}}(_0x3fab,0xb2b27));Object[_0x2f015f(0xac)](exports,_0x2f015f(0xc6),{'value':!![]}),exports[_0x2f015f(0xa6)]=exports[_0x2f015f(0xb1)]=exports[_0x2f015f(0xb4)]=exports[_0x2f015f(0xa8)]=exports[_0x2f015f(0xc4)]=exports[_0x2f015f(0xc2)]=exports[_0x2f015f(0xb2)]=exports[_0x2f015f(0xa7)]=void 0x0;function _0x4e2c(_0x43577e,_0x1806fc){const _0x3fab32=_0x3fab();return _0x4e2c=function(_0x4e2c84,_0x58fe3e){_0x4e2c84=_0x4e2c84-0xa6;let _0x2d112b=_0x3fab32[_0x4e2c84];return _0x2d112b;},_0x4e2c(_0x43577e,_0x1806fc);}const fs=require('fs'),path_1=require(_0x2f015f(0xbe)),file_1=require(_0x2f015f(0xb5)),load_1=require('./load');exports['PROJECT_DIRECTORY']=(0x0,path_1[_0x2f015f(0xaa)])(__dirname,_0x2f015f(0xb0)),exports['PROJECT_BUILD_DIRECTORY']=(0x0,path_1[_0x2f015f(0xaa)])(exports[_0x2f015f(0xa7)],_0x2f015f(0xae)),exports['PROJECT_EXPORT_DIRECTORY']=(0x0,path_1['join'])(exports[_0x2f015f(0xa7)],'./export'),exports[_0x2f015f(0xc4)]=_0x2f015f(0xba),exports['ASSET_DIRECTORY']=_0x2f015f(0xaf),exports[_0x2f015f(0xb4)]=exports[_0x2f015f(0xa8)]+'/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset',exports[_0x2f015f(0xb1)]=exports[_0x2f015f(0xa8)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';class ResourceManager{static async['moveProjectFrom'](_0x533b9d){const _0x6e7031=_0x2f015f,_0x58d797=(0x0,path_1[_0x6e7031(0xaa)])(process[_0x6e7031(0xbf)](),_0x533b9d),_0x39876a=(0x0,path_1[_0x6e7031(0xaa)])(exports[_0x6e7031(0xa7)],exports[_0x6e7031(0xc4)]);!fs[_0x6e7031(0xb7)](_0x39876a)?fs['mkdirSync'](_0x39876a,{'recursive':!![]}):(0x0,file_1[_0x6e7031(0xc0)])(_0x39876a);try{(0x0,file_1[_0x6e7031(0xb8)])(_0x58d797,_0x39876a);}catch(_0x4945e1){console[_0x6e7031(0xbd)](_0x4945e1);}}static async[_0x2f015f(0xc9)](_0x4f3078){const _0x45df6c=_0x2f015f,_0x24fc10=_0x4f3078['json'],_0x322313=_0x24fc10['icons'][0x0][_0x45df6c(0xb3)],_0x3d5167=!_0x322313[_0x45df6c(0xc1)](_0x45df6c(0xc8))?await(0x0,load_1['loadImageFromDisk'])(_0x322313):await(0x0,load_1[_0x45df6c(0xc5)])(_0x322313);return _0x3d5167['resize'](0x400,0x400),_0x3d5167;}}function _0x3fab(){const _0x52d809=['path','cwd','clearDir','startsWith','PROJECT_EXPORT_DIRECTORY','1476416hmLWhV','WEB_PROJECT_DIRECTORY','loadImageFromNet','__esModule','13215728NZbSrJ','http','generateIcon','ResourceManager','PROJECT_DIRECTORY','ASSET_DIRECTORY','3351588JtyAQs','join','3687300KcTSDp','defineProperty','6055975fzzURM','./build','web-spatial/Assets.xcassets','../../../template/visionOSApp','MIDDLE_APPICON_DIRECTORY','PROJECT_BUILD_DIRECTORY','src','BACK_APPICON_DIRECTORY','./file','3sweGer','existsSync','copyDir','18ohXpxH','web-spatial/static-web','4236029KzgbXo','1257978Qsxzpp','log'];_0x3fab=function(){return _0x52d809;};return _0x3fab();}exports[_0x2f015f(0xa6)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x19efc6=_0x22f9;(function(_0x4a6e4d,_0x33ecda){const _0x298d9a=_0x22f9,_0x62eaa9=_0x4a6e4d();while(!![]){try{const _0x2325ef=parseInt(_0x298d9a(0x153))/0x1+-parseInt(_0x298d9a(0x15b))/0x2+-parseInt(_0x298d9a(0x128))/0x3*(-parseInt(_0x298d9a(0x148))/0x4)+-parseInt(_0x298d9a(0x138))/0x5+-parseInt(_0x298d9a(0x14a))/0x6+-parseInt(_0x298d9a(0x154))/0x7+-parseInt(_0x298d9a(0x130))/0x8*(-parseInt(_0x298d9a(0x12f))/0x9);if(_0x2325ef===_0x33ecda)break;else _0x62eaa9['push'](_0x62eaa9['shift']());}catch(_0x1b411b){_0x62eaa9['push'](_0x62eaa9['shift']());}}}(_0x30be,0xde128));function _0x30be(){const _0x11b218=['fetch','The\x20response\x20status\x20is\x20','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','content-encoding','image/webp','2967364TRxKUZ','includes','text','CustomError','loadJsonFromDisk','get','171357CqxkJM','loadJsonFromNet',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','./imageHelper','toString','status','ImageHelper','36BkaAnL','9293008ebioqs','image/svg','../utils/CustomError','__esModule','loadFileString','loadImageFromDisk','readFile','loadImageFromNet','6472220TjcDRZ','\x20Responded\x20with\x20Content-Type\x20\x22','image/','fetchUtils','svg2img','decompressResponseBuffer','gzip','Failed\x20to\x20download\x20Web\x20Manifest\x20','arrayBuffer','promises','defineProperty','from','trim','Problem\x20reading\x20','binary','headers','4McIovM','data','8964042IDYwYh','jimp','../utils/FetchUtils-1','startsWith','Received\x20icon\x20with\x20invalid\x20Content-Type.','deflate','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','read','content-type','1509790yRFQuU','7221704tZUPvm','parse'];_0x30be=function(){return _0x11b218;};return _0x30be();}Object[_0x19efc6(0x142)](exports,_0x19efc6(0x133),{'value':!![]}),exports[_0x19efc6(0x129)]=loadJsonFromNet,exports[_0x19efc6(0x126)]=loadJsonFromDisk,exports[_0x19efc6(0x137)]=loadImageFromNet,exports[_0x19efc6(0x135)]=loadImageFromDisk,exports[_0x19efc6(0x134)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x19efc6(0x14c)),CustomError_1=require(_0x19efc6(0x132)),Jimp=require(_0x19efc6(0x14b)),imageHelper_1=require(_0x19efc6(0x12b));async function loadJsonFromNet(_0x4ec12f){const _0xdfd004=_0x19efc6,_0x41b28e=await FetchUtils_1_1['fetchUtils']['fetch'](_0x4ec12f,{'encoding':_0xdfd004(0x146)});if(_0x41b28e[_0xdfd004(0x12d)]!==0xc8)throw new CustomError_1[(_0xdfd004(0x125))]({'code':0xbbc,'message':_0xdfd004(0x13f)+_0x4ec12f+'.'+(_0xdfd004(0x157)+_0x41b28e[_0xdfd004(0x12d)]+_0xdfd004(0x12a)),'message_staring_params':{'web_manifest_url':_0x4ec12f,'status':_0x41b28e['status']}});try{let _0x36a7f6;return _0x41b28e['text']?_0x36a7f6=await _0x41b28e[_0xdfd004(0x124)]():['gzip',_0xdfd004(0x14f),'br'][_0xdfd004(0x123)](_0x41b28e[_0xdfd004(0x147)]['content-encoding'])?_0x36a7f6=FetchUtils_1_1[_0xdfd004(0x13b)]['decompressResponseBuffer'](Buffer['from'](_0x41b28e[_0xdfd004(0x149)],_0xdfd004(0x146)),_0x41b28e[_0xdfd004(0x147)]['content-encoding'])[_0xdfd004(0x12c)]():_0x36a7f6=Buffer[_0xdfd004(0x143)](_0x41b28e['data'],'binary')[_0xdfd004(0x12c)](),JSON['parse'](_0x36a7f6[_0xdfd004(0x144)]());}catch(_0x31f57a){throw new CustomError_1[(_0xdfd004(0x125))]({'code':0xbbd,'message':_0xdfd004(0x150),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x2f61cb){const _0x19d344=_0x19efc6,_0x4f8ef8=await loadFileString(_0x2f61cb[_0x19d344(0x12c)]());return JSON[_0x19d344(0x155)](_0x4f8ef8);}async function loadImageFromNet(_0x3aef3b){const _0x1edfd7=_0x19efc6,_0x180b9c=await FetchUtils_1_1[_0x1edfd7(0x13b)][_0x1edfd7(0x156)](_0x3aef3b,{'encoding':_0x1edfd7(0x146)});if(_0x180b9c[_0x1edfd7(0x12d)]!==0xc8)throw new CustomError_1[(_0x1edfd7(0x125))]({'code':0x7d2,'message':_0x1edfd7(0x158)+_0x180b9c[_0x1edfd7(0x12d)],'message_staring_params':{'icon_url':_0x3aef3b,'status':_0x180b9c[_0x1edfd7(0x12d)]}});const _0xb35648=_0x180b9c[_0x1edfd7(0x147)][_0x1edfd7(0x127)]?_0x180b9c[_0x1edfd7(0x147)][_0x1edfd7(0x127)](_0x1edfd7(0x152)):_0x180b9c[_0x1edfd7(0x147)][_0x1edfd7(0x152)];if(!(_0xb35648===null||_0xb35648===void 0x0?void 0x0:_0xb35648[_0x1edfd7(0x14d)](_0x1edfd7(0x13a))))throw new CustomError_1[(_0x1edfd7(0x125))]({'code':0x7d3,'message':_0x1edfd7(0x14e)+(_0x1edfd7(0x139)+_0xb35648+'\x22'),'message_staring_params':{'icon_url':_0x3aef3b,'contentType':_0xb35648}});let _0x404874;_0x180b9c[_0x1edfd7(0x140)]?_0x404874=await _0x180b9c[_0x1edfd7(0x140)]():[_0x1edfd7(0x13e),_0x1edfd7(0x14f),'br'][_0x1edfd7(0x123)](_0x180b9c[_0x1edfd7(0x147)][_0x1edfd7(0x159)])?_0x404874=FetchUtils_1_1[_0x1edfd7(0x13b)][_0x1edfd7(0x13d)](Buffer[_0x1edfd7(0x143)](_0x180b9c[_0x1edfd7(0x149)],_0x1edfd7(0x146)),_0x180b9c[_0x1edfd7(0x147)][_0x1edfd7(0x159)]):_0x404874=Buffer[_0x1edfd7(0x143)](_0x180b9c[_0x1edfd7(0x149)],_0x1edfd7(0x146));if(_0xb35648['startsWith'](_0x1edfd7(0x131))){const _0x1081c8=new TextDecoder();try{_0x404874=await imageHelper_1[_0x1edfd7(0x12e)][_0x1edfd7(0x13c)](_0x1081c8['decode'](_0x404874));}catch(_0x49ab34){throw new CustomError_1[(_0x1edfd7(0x125))]({'code':0x7d4,'message':_0x1edfd7(0x145)+_0x3aef3b+':\x20'+_0x49ab34,'message_staring_params':{'icon_url':_0x3aef3b,'error':_0x49ab34}});}}return _0xb35648[_0x1edfd7(0x14d)](_0x1edfd7(0x15a))&&(_0x404874=await imageHelper_1[_0x1edfd7(0x12e)]['webp2PngBuffer'](_0x404874)),await Jimp[_0x1edfd7(0x151)](Buffer[_0x1edfd7(0x143)](_0x404874));}async function loadImageFromDisk(_0x313137){const _0x268642=_0x19efc6;return await Jimp[_0x268642(0x151)](_0x313137);}function _0x22f9(_0x50a22e,_0x551edd){const _0x30beaa=_0x30be();return _0x22f9=function(_0x22f95a,_0x57c9a4){_0x22f95a=_0x22f95a-0x123;let _0x203a08=_0x30beaa[_0x22f95a];return _0x203a08;},_0x22f9(_0x50a22e,_0x551edd);}async function loadFileString(_0x12cf21){const _0x1c369c=_0x19efc6;let _0x33577c=await fs[_0x1c369c(0x141)][_0x1c369c(0x136)](_0x12cf21[_0x1c369c(0x12c)]());return _0x33577c['toString']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3a6b63=_0x1222;(function(_0x5e33f8,_0x2ad3aa){var _0x5613b5=_0x1222,_0x3e54f0=_0x5e33f8();while(!![]){try{var _0x3821a0=-parseInt(_0x5613b5(0x73))/0x1*(-parseInt(_0x5613b5(0x7d))/0x2)+parseInt(_0x5613b5(0x72))/0x3+-parseInt(_0x5613b5(0x7e))/0x4+parseInt(_0x5613b5(0x71))/0x5+-parseInt(_0x5613b5(0x79))/0x6*(-parseInt(_0x5613b5(0x7b))/0x7)+-parseInt(_0x5613b5(0x7c))/0x8+-parseInt(_0x5613b5(0x74))/0x9;if(_0x3821a0===_0x2ad3aa)break;else _0x3e54f0['push'](_0x3e54f0['shift']());}catch(_0x13bf87){_0x3e54f0['push'](_0x3e54f0['shift']());}}}(_0x2b9a,0x2fa9e));Object[_0x3a6b63(0x77)](exports,_0x3a6b63(0x78),{'value':!![]}),exports[_0x3a6b63(0x76)]=void 0x0;function _0x1222(_0x352606,_0x1e88bf){var _0x2b9a19=_0x2b9a();return _0x1222=function(_0x1222c1,_0x516594){_0x1222c1=_0x1222c1-0x71;var _0x2d3570=_0x2b9a19[_0x1222c1];return _0x2d3570;},_0x1222(_0x352606,_0x1e88bf);}function _0x2b9a(){var _0x4a8ce7=['info','CustomError','defineProperty','__esModule','634572GgWrGO','customMessage','21ujFBCS','1798384BfZPoP','10yKxkqS','470764cguoEL','stringify','type','1105865eiydRg','896910wAiSYt','37619ASLTkm','4390245nPmlcl'];_0x2b9a=function(){return _0x4a8ce7;};return _0x2b9a();}class CustomError extends Error{constructor(_0x4bbc90,_0x24e16a){var _0x3d5705=_0x3a6b63;super(JSON[_0x3d5705(0x7f)](_0x4bbc90)),this[_0x3d5705(0x7a)]=_0x4bbc90,this[_0x3d5705(0x80)]=_0x24e16a||_0x3d5705(0x75);}}exports[_0x3a6b63(0x76)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f500d=_0x9514;function _0x9514(_0x48949e,_0x50c783){const _0x1910fd=_0x1910();return _0x9514=function(_0x9514d4,_0x5f921e){_0x9514d4=_0x9514d4-0x1e9;let _0x20c198=_0x1910fd[_0x9514d4];return _0x20c198;},_0x9514(_0x48949e,_0x50c783);}(function(_0x4c4ca1,_0x6803ff){const _0xba1ff8=_0x9514,_0x31fe9f=_0x4c4ca1();while(!![]){try{const _0x3595f4=-parseInt(_0xba1ff8(0x1f7))/0x1*(parseInt(_0xba1ff8(0x1ec))/0x2)+parseInt(_0xba1ff8(0x1f0))/0x3*(parseInt(_0xba1ff8(0x1ef))/0x4)+-parseInt(_0xba1ff8(0x1f2))/0x5+-parseInt(_0xba1ff8(0x1e9))/0x6+parseInt(_0xba1ff8(0x1f9))/0x7*(-parseInt(_0xba1ff8(0x1f3))/0x8)+parseInt(_0xba1ff8(0x1ea))/0x9*(parseInt(_0xba1ff8(0x1fa))/0xa)+parseInt(_0xba1ff8(0x1f8))/0xb;if(_0x3595f4===_0x6803ff)break;else _0x31fe9f['push'](_0x31fe9f['shift']());}catch(_0x372a21){_0x31fe9f['push'](_0x31fe9f['shift']());}}}(_0x1910,0xadcd8));Object[_0x4f500d(0x1fb)](exports,_0x4f500d(0x1ee),{'value':!![]}),exports['fetchUtils']=void 0x0;class FetchUtils{constructor(){const _0x4d570a=_0x4f500d;this[_0x4d570a(0x1f6)]=null,this[_0x4d570a(0x1f1)]=null,this[_0x4d570a(0x1f5)]=null,this['decompressResponseBuffer']=null;}['setFetchEngine'](_0x1bd264){this['fetchEngine']=_0x1bd264;}['setFetch'](_0xd3b232){this['fetch']=_0xd3b232;}[_0x4f500d(0x1f4)](_0x5900e5){const _0x424686=_0x4f500d;this[_0x424686(0x1f5)]=_0x5900e5;}[_0x4f500d(0x1eb)](_0x12e7b2){this['decompressResponseBuffer']=_0x12e7b2;}}const fetchUtils=new FetchUtils();function _0x1910(){const _0x395b3c=['155330HoTMFm','defineProperty','1942674HDCCtz','162arsCsR','setDecompressResponseBuffer','1055930XqsaLp','fetchUtils','__esModule','236dOJaQu','36027cnasqu','fetch','4646230UWYWpc','1096bGyngM','setDownloadFile','downloadFile','fetchEngine','1aBodbO','29574358srssQZ','60487fdvhuA'];_0x1910=function(){return _0x395b3c;};return _0x1910();}exports[_0x4f500d(0x1ed)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x26b9ca=_0x29d9;function _0x27ce(){var _0x156d86=['\x1b[7m','log','\x1b[0m','8702334FZfvfK','4dGNBhW','397636emkkxD','tag','ERROR\x20','red','WARNING\x20','207193HpSPzu','newLog','defineProperty','\x1b[31m','__esModule','410295ZdASAR','\x1b[33m','warn','ConsoleLog','750691qSNLCu','24553584srTDnv','concat','16NikJNc','yellow','verbose','6148465gZiaeL','output','error','prefix','dim','inverse'];_0x27ce=function(){return _0x156d86;};return _0x27ce();}function _0x29d9(_0xe673ca,_0xc9f5d5){var _0x27ce7e=_0x27ce();return _0x29d9=function(_0x29d900,_0x28c2be){_0x29d900=_0x29d900-0x1a9;var _0x1d3f8e=_0x27ce7e[_0x29d900];return _0x1d3f8e;},_0x29d9(_0xe673ca,_0xc9f5d5);}(function(_0x5d5937,_0x56a557){var _0x41b21f=_0x29d9,_0x83d9e0=_0x5d5937();while(!![]){try{var _0x3f579a=parseInt(_0x41b21f(0x1b3))/0x1+parseInt(_0x41b21f(0x1c4))/0x2+-parseInt(_0x41b21f(0x1af))/0x3+parseInt(_0x41b21f(0x1c3))/0x4*(parseInt(_0x41b21f(0x1b9))/0x5)+parseInt(_0x41b21f(0x1c2))/0x6+parseInt(_0x41b21f(0x1aa))/0x7*(parseInt(_0x41b21f(0x1b6))/0x8)+-parseInt(_0x41b21f(0x1b4))/0x9;if(_0x3f579a===_0x56a557)break;else _0x83d9e0['push'](_0x83d9e0['shift']());}catch(_0x32340f){_0x83d9e0['push'](_0x83d9e0['shift']());}}}(_0x27ce,0xc9228));Object[_0x26b9ca(0x1ac)](exports,_0x26b9ca(0x1ae),{'value':!![]}),exports[_0x26b9ca(0x1b2)]=void 0x0;class ConsoleLog{constructor(_0x299019='',_0x1330f4=![],_0x13ce21=console){var _0x1f21ca=_0x26b9ca;this[_0x1f21ca(0x1c5)]=_0x299019,this[_0x1f21ca(0x1b8)]=_0x1330f4,this['prefix']=this[_0x1f21ca(0x1be)](_0x299019),this[_0x1f21ca(0x1ba)]=_0x13ce21;}['debug'](_0x143e96,..._0x148355){var _0x2526c2=_0x26b9ca;if(!this[_0x2526c2(0x1b8)])return;this[_0x2526c2(0x1c0)](this[_0x2526c2(0x1ba)][_0x2526c2(0x1c0)],this[_0x2526c2(0x1bd)](_0x143e96),..._0x148355);}['info'](_0x4da528,..._0x16b6cd){var _0x24c35b=_0x26b9ca;this[_0x24c35b(0x1c0)](this['output'][_0x24c35b(0x1c0)],_0x4da528,..._0x16b6cd);}[_0x26b9ca(0x1b1)](_0x43af40,..._0xe629c2){var _0x62da42=_0x26b9ca;this[_0x62da42(0x1c0)](this[_0x62da42(0x1ba)][_0x62da42(0x1b1)],this[_0x62da42(0x1b7)](_0x62da42(0x1a9)+_0x43af40),..._0xe629c2);}[_0x26b9ca(0x1bb)](_0x2305d0,..._0x20f852){var _0x2c6768=_0x26b9ca;this['output'][_0x2c6768(0x1bb)]('\x0a'),this[_0x2c6768(0x1c0)](this[_0x2c6768(0x1ba)]['error'],this[_0x2c6768(0x1c7)](_0x2c6768(0x1c6)+_0x2305d0),..._0x20f852),this[_0x2c6768(0x1ba)][_0x2c6768(0x1bb)]('\x0a');}['setVerbose'](_0xf62750){var _0xa2928d=_0x26b9ca;this[_0xa2928d(0x1b8)]=_0xf62750;}[_0x26b9ca(0x1ab)](_0x7aab54){var _0x1ca575=_0x26b9ca;return this['tag']&&(_0x7aab54=this[_0x1ca575(0x1c5)]+'\x20'+_0x7aab54),new ConsoleLog(_0x7aab54,this[_0x1ca575(0x1b8)],this[_0x1ca575(0x1ba)]);}[_0x26b9ca(0x1c0)](_0x595336,_0x15280c,..._0x43abe1){var _0x27af53=_0x26b9ca;this[_0x27af53(0x1bc)]&&(_0x15280c=this[_0x27af53(0x1bc)]+'\x20'+_0x15280c),_0x43abe1?_0x595336(...[_0x15280c][_0x27af53(0x1b5)](_0x43abe1)):_0x595336(_0x15280c);}[_0x26b9ca(0x1be)](_0x319ad3){var _0x17a5b8=_0x26b9ca;return _0x17a5b8(0x1bf)+_0x319ad3+_0x17a5b8(0x1c1);}['dim'](_0x5f295a){return'\x1b[36m'+_0x5f295a+'\x1b[0m';}[_0x26b9ca(0x1b7)](_0x15c4b1){var _0x492d8e=_0x26b9ca;return _0x492d8e(0x1b0)+_0x15c4b1+'\x1b[0m';}[_0x26b9ca(0x1c7)](_0x3bcd9f){var _0x3ad6d8=_0x26b9ca;return _0x3ad6d8(0x1ad)+_0x3bcd9f+_0x3ad6d8(0x1c1);}}exports[_0x26b9ca(0x1b2)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1d6311=_0x5050;(function(_0x34dd26,_0x5bbfdf){const _0x333613=_0x5050,_0x670a86=_0x34dd26();while(!![]){try{const _0x4fb846=parseInt(_0x333613(0x1d9))/0x1+-parseInt(_0x333613(0x1dd))/0x2+-parseInt(_0x333613(0x1cd))/0x3*(-parseInt(_0x333613(0x1cc))/0x4)+-parseInt(_0x333613(0x1df))/0x5+parseInt(_0x333613(0x1d4))/0x6+parseInt(_0x333613(0x1ca))/0x7+-parseInt(_0x333613(0x1d7))/0x8;if(_0x4fb846===_0x5bbfdf)break;else _0x670a86['push'](_0x670a86['shift']());}catch(_0x860e5){_0x670a86['push'](_0x670a86['shift']());}}}(_0x4647,0xd9735));function _0x5050(_0x381870,_0x2d142c){const _0x46470f=_0x4647();return _0x5050=function(_0x505089,_0x17bd9a){_0x505089=_0x505089-0x1ca;let _0x2afe9b=_0x46470f[_0x505089];return _0x2afe9b;},_0x5050(_0x381870,_0x2d142c);}Object['defineProperty'](exports,_0x1d6311(0x1cf),{'value':!![]}),exports[_0x1d6311(0x1d6)]=fetch,exports[_0x1d6311(0x1db)]=downloadFile,exports['decompressResponseBuffer']=decompressResponseBuffer;function _0x4647(){const _0x4f673d=['fetch','9950584HQRZNk','readable','1346273uLVKjk','test','downloadFile','get','2741570IeSxqF','follow','2647100OoIupK','length','1883077ziyfqP','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','44oeVgDe','319008fFhvmU','Z_SYNC_FLUSH','__esModule','finish','constants','context','zlib','7498350bUOTQA','brotliDecompressSync'];_0x4647=function(){return _0x4f673d;};return _0x4647();}const fetch_h2_1=require('fetch-h2'),fs=require('fs'),zlib=require(_0x1d6311(0x1d3)),userAgent=_0x1d6311(0x1cb),fetchh2Ctx=(0x0,fetch_h2_1[_0x1d6311(0x1d2)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x3155dd,_0x3395d6){const _0x11ed06=_0x1d6311;return await fetchh2(_0x3155dd,_0x3395d6?{'redirect':'follow',..._0x3395d6}:{'redirect':_0x11ed06(0x1de)});}async function downloadFile(_0x335907,_0x23c017,_0x3702eb){const _0x43bd28=_0x1d6311;let _0x123c28,_0x2d8442;_0x123c28=await fetchh2(_0x335907,{'redirect':_0x43bd28(0x1de)}),_0x2d8442=await _0x123c28[_0x43bd28(0x1d8)]();const _0x1448d1=_0x123c28['headers'][_0x43bd28(0x1dc)]('Content-Length'),_0x205109=_0x1448d1?parseInt(_0x1448d1):-0x1,_0x39c074=fs['createWriteStream'](_0x23c017);let _0x1b39b1=0x0;await new Promise((_0x163bd3,_0x483838)=>{const _0x496086=_0x43bd28;_0x2d8442['pipe'](_0x39c074),_0x3702eb&&_0x2d8442['on']('data',_0x2a0e09=>{const _0x526169=_0x5050;_0x1b39b1=_0x1b39b1+_0x2a0e09[_0x526169(0x1e0)],_0x3702eb(_0x1b39b1,_0x205109);}),_0x2d8442['on']('error',_0x2583b0=>{_0x483838(_0x2583b0);}),_0x39c074['on'](_0x496086(0x1d0),()=>{_0x163bd3();});});}function decompressResponseBuffer(_0x5ea61a,_0x2206eb){const _0x54335e=_0x1d6311;let _0x44377a=_0x5ea61a;if(/\bgzip\b/[_0x54335e(0x1da)](_0x2206eb)||/\bdeflate\b/[_0x54335e(0x1da)](_0x2206eb))_0x44377a=zlib['unzipSync'](_0x5ea61a,{'flush':zlib[_0x54335e(0x1d1)][_0x54335e(0x1ce)],'finishFlush':zlib[_0x54335e(0x1d1)][_0x54335e(0x1ce)]});else/\bbr\b/[_0x54335e(0x1da)](_0x2206eb)&&(_0x44377a=zlib[_0x54335e(0x1d5)](_0x5ea61a));return _0x44377a;}
|