@atomicservice/ascf-toolkit 1.0.2 → 1.0.3-beta.0
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/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/chalk/bundle.cjs.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/watch/watch.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -0
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/bin/ascf.js +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x75676d=_0x39a1;function _0x49dc(){var n=["7012488VGaFDL","Run command on changes been watched: ","Run command error: ","child_process","2731056AjuKeJ","watchExec","Run command result: ","utf8","error","222204scFxCf","85132JmbiDV","70mbOrbd","info","1330390tyyAOb","1lEuHWy","_ascfDebug","log","1346904FeimuF","toString","773213jeCVVY"];return(_0x49dc=function(){return n})()}(()=>{for(var n=_0x39a1,r=_0x49dc();;)try{if(554627==-parseInt(n(416))*(parseInt(n(415))/2)+-parseInt(n(431))/3+-parseInt(n(432))/4*(parseInt(n(433))/5)+parseInt(n(426))/6+parseInt(n(421))/7+parseInt(n(422))/8+parseInt(n(419))/9)break;r.push(r.shift())}catch(n){r.push(r.shift())}})();var _require=require(_0x75676d(425)),execSync=_require.execSync;function _0x39a1(n,r){var e=_0x49dc();return(_0x39a1=function(n,r){return e[n-=415]})(n,r)}function watchRun(n,a){n.watch({},function(n,r){var e=_0x39a1;r&&console[e(418)](r[e(420)]({all:!1,colors:!0,errors:!0,warnings:!0,logging:global[e(417)]?"verbose":e(434)})),n&&console[e(430)](n),a&&a(n,r)})}var isCommandRunning=!(exports[_0x75676d(427)]=function(n,e){watchRun(n,function(n,r){n?console[_0x39a1(430)](n):runOnChanges(e,r)})});function runOnChanges(n){var r=_0x75676d;if(n&&!isCommandRunning)try{console[r(418)](r(423),n),isCommandRunning=!0;var e=execSync(n,{encoding:r(429)});console.log(r(428),String(e))}catch(n){console.error(r(424),n)}finally{isCommandRunning=!1}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1c9aa6=_0xe2d3;function _regeneratorRuntime(){var c=_0xe2d3;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(380)],p=e[c(323)],f=Object[c(457)]||function(e,t,r){e[t]=r.value},t=c(421)==typeof Symbol?Symbol:{},o=t[c(377)]||c(368),r=t[c(291)]||"@@asyncIterator",n=t.toStringTag||c(416);function a(e,t,r){return Object[c(457)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a,o,i,s,u=c,t=t&&t[u(380)]instanceof v?t:v,t=Object.create(t[u(380)]),n=new T(n||[]);return f(t,u(285),{value:(a=e,o=r,i=n,s=h,function(e,t){var r=_0xe2d3;if(s===m)throw Error(r(242));if(s===g){if(r(398)===e)throw t;return{value:l,done:!0}}for(i[r(443)]=e,i.arg=t;;){var n=i[r(379)];if(n){n=function e(t,r){var n=c,a=r[n(443)],o=t[n(377)][a];if(o===l)return r.delegate=null,n(398)===a&&t[n(377)][n(458)]&&(r.method=n(458),r[n(408)]=l,e(t,r),n(398)===r.method)||n(458)!==a&&(r[n(443)]="throw",r[n(408)]=new TypeError(n(424)+a+"' method")),y;a=_(o,t[n(377)],r.arg);if(n(398)===a.type)return r[n(443)]=n(398),r[n(408)]=a[n(408)],r[n(379)]=null,y;o=a[n(408)];return o?o[n(310)]?(r[t[n(465)]]=o[n(451)],r[n(365)]=t.nextLoc,n(458)!==r[n(443)]&&(r.method=n(365),r[n(408)]=l),r[n(379)]=null,y):o:(r[n(443)]=n(398),r[n(408)]=new TypeError(n(476)),r[n(379)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(r(365)===i.method)i[r(314)]=i[r(372)]=i.arg;else if(r(398)===i[r(443)]){if(s===h)throw s=g,i[r(408)];i[r(311)](i[r(408)])}else"return"===i[r(443)]&&i.abrupt("return",i.arg);s=m;n=_(a,o,i);if(r(389)===n[r(420)]){if(s=i[r(310)]?g:d,n[r(408)]===y)continue;return{value:n[r(408)],done:i[r(310)]}}r(398)===n[r(420)]&&(s=g,i[r(443)]="throw",i[r(408)]=n.arg)}})}),t}function _(e,t,r){var n=c;try{return{type:n(389),arg:e[n(414)](t,r)}}catch(e){return{type:"throw",arg:e}}}s[c(249)]=u;var h=c(275),d=c(357),m=c(399),g=c(433),y={};function v(){}function i(){}function P(){}var t={},b=(a(t,o,function(){return this}),Object[c(330)]),b=b&&b(b(I([]))),A=(b&&b!==e&&p[c(414)](b,o)&&(t=b),P[c(380)]=v[c(380)]=Object[c(276)](t));function x(e){var t=c;[t(365),t(398),t(458)][t(317)](function(t){a(e,t,function(e){return this[_0xe2d3(285)](t,e)})})}function C(s,u){var t;f(this,c(285),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,a){var o,i=_0xe2d3,e=_(s[e],s,r);if(i(398)!==e[i(420)])return(r=(o=e[i(408)])[i(451)])&&i(462)==_typeof(r)&&p[i(414)](r,i(293))?u.resolve(r.__await)[i(422)](function(e){t(i(365),e,n,a)},function(e){t("throw",e,n,a)}):u.resolve(r)[i(422)](function(e){o[i(451)]=e,n(o)},function(e){return t(i(398),e,n,a)});a(e[i(408)])}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function R(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(302)]=e[1]),2 in e&&(r[t(315)]=e[2],r[t(307)]=e[3]),this.tryEntries[t(423)](r)}function S(e){var t=c,r=e[t(326)]||{};r[t(420)]=t(389),delete r.arg,e[t(326)]=r}function T(e){var t=c;this[t(286)]=[{tryLoc:t(475)}],e[t(317)](R,this),this[t(319)](!0)}function I(r){var n=c;if(r||""===r){var a,e=r[o];if(e)return e[n(414)](r);if("function"==typeof r[n(365)])return r;if(!isNaN(r[n(295)]))return a=-1,(e=function e(){for(var t=n;++a<r[t(295)];)if(p[t(414)](r,a))return e[t(451)]=r[a],e[t(310)]=!1,e;return e.value=l,e.done=!0,e})[n(365)]=e}throw new TypeError(_typeof(r)+n(431))}return i[c(380)]=P,f(A,"constructor",{value:P,configurable:!0}),f(P,c(436),{value:i,configurable:!0}),i.displayName=a(P,n,c(338)),s.isGeneratorFunction=function(e){var t=c,e=t(421)==typeof e&&e[t(436)];return!!e&&(e===i||t(338)===(e[t(281)]||e[t(404)]))},s.mark=function(e){var t=c;return Object[t(350)]?Object[t(350)](e,P):(e[t(407)]=P,a(e,n,t(338))),e.prototype=Object[t(276)](A),e},s[c(259)]=function(e){return{__await:e}},x(C[c(380)]),a(C[c(380)],r,function(){return this}),s[c(427)]=C,s.async=function(e,t,r,n,a){var o=c,i=(void 0===a&&(a=Promise),new C(u(e,t,r,n),a));return s[o(299)](t)?i:i.next().then(function(e){var t=o;return e[t(310)]?e[t(451)]:i[t(365)]()})},x(A),a(A,n,c(322)),a(A,o,function(){return this}),a(A,c(410),function(){return c(334)}),s.keys=function(e){var t,n=c,a=Object(e),o=[];for(t in a)o[n(423)](t);return o[n(294)](),function e(){for(var t=n;o[t(295)];){var r=o[t(318)]();if(r in a)return e[t(451)]=r,e[t(310)]=!1,e}return e[t(310)]=!0,e}},s[c(298)]=I,T.prototype={constructor:T,reset:function(e){var t=c;if(this[t(461)]=0,this[t(365)]=0,this.sent=this[t(372)]=l,this[t(310)]=!1,this[t(379)]=null,this.method=t(365),this[t(408)]=l,this.tryEntries[t(317)](S),!e)for(var r in this)"t"===r[t(400)](0)&&p[t(414)](this,r)&&!isNaN(+r.slice(1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(310)]=!0,this.tryEntries[0][e(326)]);if(e(398)===t[e(420)])throw t[e(408)];return this.rval},dispatchException:function(n){var a=c;if(this[a(310)])throw n;var o=this;function e(e,t){var r=a;return i[r(420)]=r(398),i[r(408)]=n,o[r(365)]=e,t&&(o[r(443)]=r(365),o[r(408)]=l),!!t}for(var t=this.tryEntries[a(295)]-1;0<=t;--t){var r=this[a(286)][t],i=r[a(326)];if(a(475)===r[a(312)])return e(a(270));if(r[a(312)]<=this.prev){var s=p[a(414)](r,a(302)),u=p[a(414)](r,"finallyLoc");if(s&&u){if(this[a(461)]<r[a(302)])return e(r[a(302)],!0);if(this.prev<r[a(315)])return e(r[a(315)])}else if(s){if(this[a(461)]<r.catchLoc)return e(r.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r[a(315)])}}}},abrupt:function(e,t){for(var r=c,n=this.tryEntries.length-1;0<=n;--n){var a=this[r(286)][n];if(a.tryLoc<=this.prev&&p[r(414)](a,r(315))&&this.prev<a[r(315)]){var o=a;break}}var i=(o=o&&(r(268)===e||r(450)===e)&&o[r(312)]<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i[r(420)]=e,i[r(408)]=t,o?(this[r(443)]=r(365),this[r(365)]=o[r(315)],y):this[r(374)](i)},complete:function(e,t){var r=c;if(r(398)===e.type)throw e.arg;return"break"===e.type||"continue"===e[r(420)]?this.next=e[r(408)]:r(458)===e[r(420)]?(this.rval=this.arg=e[r(408)],this[r(443)]=r(458),this[r(365)]="end"):r(389)===e.type&&t&&(this[r(365)]=t),y},finish:function(e){for(var t=c,r=this[t(286)][t(295)]-1;0<=r;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this[t(374)](n[t(326)],n[t(307)]),S(n),y}},catch:function(e){for(var t=c,r=this.tryEntries[t(295)]-1;0<=r;--r){var n,a,o=this.tryEntries[r];if(o[t(312)]===e)return n=o[t(326)],t(398)===n.type&&(a=n[t(408)],S(o)),a}throw Error(t(411))},delegateYield:function(e,t,r){var n=c;return this[n(379)]={iterator:I(e),resultName:t,nextLoc:r},n(365)===this[n(443)]&&(this[n(408)]=l),y}},s}function _typeof(e){var r=_0xe2d3;return(_typeof=r(421)==typeof Symbol&&r(325)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var t=r;return e&&t(421)==typeof Symbol&&e.constructor===Symbol&&e!==Symbol[t(380)]?t(325):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,a,o,i){var s=_0xe2d3;try{var u=e[o](i),c=u[s(451)]}catch(e){return void r(e)}u[s(310)]?t(c):Promise[s(359)](c).then(n,a)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0xe2d3,a=u[n(403)](e,s);function o(e){asyncGeneratorStep(a,t,r,o,i,n(365),e)}function i(e){asyncGeneratorStep(a,t,r,o,i,n(398),e)}o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){var t=_0xe2d3;if(t(300)!=typeof Symbol&&null!=e[Symbol[t(377)]]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array[_0xe2d3(347)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,a,o,i=_0xe2d3,s=i(300)!=typeof Symbol&&e[Symbol[i(377)]]||e[i(368)];if(s)return a=!(n=!0),{s:function(){s=s[i(414)](e)},n:function(){var e=i,t=s[e(365)]();return n=t[e(310)],t},e:function(e){a=!0,r=e},f:function(){var e=i;try{n||null==s[e(458)]||s[e(458)]()}finally{if(a)throw r}}};if(Array[i(347)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e[i(295)])return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e[i(295)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError(i(247))}function _unsupportedIterableToArray(e,t){var r,n=_0xe2d3;if(e)return n(392)==typeof e?_arrayLikeToArray(e,t):(r={}[n(410)].call(e)[n(402)](8,-1),n(467)===r&&e[n(436)]&&(r=e.constructor[n(404)]),n(371)===r||"Set"===r?Array.from(e):n(292)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0xe2d3;(null==t||t>e[r(295)])&&(t=e[r(295)]);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function _defineProperty(e,t,r){var n=_0xe2d3;return(t=_toPropertyKey(t))in e?Object[n(457)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0xe2d3,e=_toPrimitive(e,"string");return t(325)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0xe2d3;if(r(462)!=_typeof(e)||!e)return e;var n=e[Symbol[r(415)]];if(void 0===n)return(r(392)===t?String:Number)(e);n=n.call(e,t||r(306));if(r(462)!=_typeof(n))return n;throw new TypeError(r(348))}(()=>{for(var e=_0xe2d3,t=_0x3acb();;)try{if(962589==+parseInt(e(256))*(parseInt(e(353))/2)+-parseInt(e(336))/3+parseInt(e(267))/4+parseInt(e(454))/5+-parseInt(e(303))/6+parseInt(e(382))/7+parseInt(e(333))/8*(-parseInt(e(381))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require("path"),fs=require("fs"),webpack=require(_0x1c9aa6(473)),json5=require(_0x1c9aa6(262)),ResourcePlugin=require(_0x1c9aa6(428)),HtmlGeneratorPlugin=require(_0x1c9aa6(413)),ManifestGeneratorPlugin=require("./plugin/manifest-generator-plugin"),I18NPlugin=require(_0x1c9aa6(279)),CopyAscfBundlePlugin=require(_0x1c9aa6(296)),_packOptions=require(_0x1c9aa6(254)),_require=require(_0x1c9aa6(397)),clearResource=_require[_0x1c9aa6(448)],IS_PRD=_require[_0x1c9aa6(425)],PROJECT_PATH=_require[_0x1c9aa6(362)],PROJECT_CONFIG=_require[_0x1c9aa6(258)],ASCF_SRC_PATH=_require[_0x1c9aa6(434)],ASCF_BUILD_PATH=_require[_0x1c9aa6(477)],RAWFILE_DIR=_require[_0x1c9aa6(252)],WebpackTargetPlugin=require(_0x1c9aa6(339)),LoggerPlguin=require("../common/logger-plugin"),utils=require(_0x1c9aa6(468)),commonUtils=require(_0x1c9aa6(397)),removeStrictModePlugin=require(_0x1c9aa6(245)),chalk=require(_0x1c9aa6(438)),ExtConfigPlugin=require("./plugin/extConfig-plugin"),ignoreRules=(chalk[_0x1c9aa6(260)]=1,process[_0x1c9aa6(441)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path[_0x1c9aa6(331)](ASCF_SRC_PATH,".ascf",_0x1c9aa6(345)),buildProfileJson5Path=path[_0x1c9aa6(359)](PROJECT_PATH,_0x1c9aa6(335));if(!fs[_0x1c9aa6(305)](buildProfileJson5Path))throw _0x1c9aa6(337);var buildProfile=json5[_0x1c9aa6(349)](fs.readFileSync(buildProfileJson5Path)[_0x1c9aa6(410)]());if(!buildProfile[_0x1c9aa6(278)]||0===buildProfile[_0x1c9aa6(278)][_0x1c9aa6(295)])throw _0x1c9aa6(452);var BUILD_PATH=path[_0x1c9aa6(359)](PROJECT_PATH,buildProfile[_0x1c9aa6(278)][0][_0x1c9aa6(251)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x1c9aa6(366),APP=_0x1c9aa6(426),APP_TYPE=_0x1c9aa6(430);function handleUsingComponents(e,t){var r,n=_0x1c9aa6;if(e)for(var a in e)Object[n(380)][n(323)][n(414)](e,a)&&(r=e[a].trim(),e[a]=utils[n(255)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x1c9aa6,s=[r(282),r(324),r(309)],n=(null==(n=e[r(474)])?void 0:n[r(257)])||[],e=e.subPackages||e[r(342)]||[];n!==[]&&e!==[]&&(t=e[r(274)](function(e){return e[r(475)]})[r(332)](function(e){return e}),i=[],n[r(317)](function(o){var e=r;t[e(317)](function(n){var a=e;s[a(317)](function(e){var t,r=a;path[r(331)](ASCF_SRC_PATH,null!=(t=o[e])?t:"")[r(470)](path[r(331)](ASCF_SRC_PATH,n,"/"))&&i[r(423)](chalk[r(440)](r(327).concat(o[r(253)]," ")[r(394)](e,r(313))))})})}),0<i.length)&&(i[r(317)](function(e){console[r(435)](chalk.red(e))}),console.error(chalk[r(440)](r(432))),process[r(272)](1))}function readAppJson(){var r=_0x1c9aa6,e=_defineProperty({},APP,new Map),t=path[r(331)](ASCF_SRC_PATH,"app.json");if(!fs[r(305)](t))throw r(320);var n=commonUtils[r(344)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(271)],t),n.page={},n[r(341)]=[],[]);if(!n[r(243)]||n.pages.length<=0)throw r(390);putPageInfoToEntryList(n[r(243)],"",!1,n,e[APP]);var a=[r(342),r(419)][r(264)](function(e){var t=r;return Object[t(380)].hasOwnProperty[t(414)](n,e)});if(t[r(295)]){a&&delete n[a];var o,i=_createForOfIteratorHelper(n[r(342)]=t);try{for(i.s();!(o=i.n()).done;){var s=o[r(451)],u=new Map;e[s.root]=u,putPageInfoToEntryList(s[r(243)],s.root,s[r(356)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(a){t=n[a],delete n[a];var c,l=_createForOfIteratorHelper(n[r(342)]=t);try{for(l.s();!(c=l.n())[r(310)];){var p=c[r(451)],f=new Map;e[p[r(475)]]=f,putPageInfoToEntryList(p[r(243)],p[r(475)],p[r(356)],n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x1c9aa6;e.type=null!=(t=null!=(t=e.type)?t:e[r(290)])?t:APP_TYPE,delete e[r(290)]}function hasCustomTabBar(e){var t=_0x1c9aa6;return(e.tabBar||{}).custom&&fs[t(305)](path[t(359)](ASCF_SRC_PATH,t(383)))}function _0xe2d3(e,t){var r=_0x3acb();return(_0xe2d3=function(e,t){return r[e-=241]})(e,t)}function handingCustomTabBar(e){var t=_0x1c9aa6;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(474)][t(257)]);try{for(n.s();!(r=n.n())[t(310)];){var a=r[t(451)];if(!e.page[a[t(309)]])throw t(273)+"'".concat(a.pagePath,t(471));e[t(401)][a[t(309)]][t(280)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=_0x1c9aa6,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object[t(297)](r)[t(317)](function(e){n[t(423)]({key:e,path:r[e]})}),n}function putPageInfoToEntryList(e,t,r,n,a){var o=_0x1c9aa6;if(e)for(var i in e)if(Object[o(380)][o(323)][o(414)](e,i)){var i=path[o(331)](ASCF_SRC_PATH,t,e[i]),s=path.relative(ASCF_SRC_PATH,i);if(!_packOptions.isIgnoreFile(s,ignoreRules)){var s=s[o(316)](/\\/g,"/"),i="".concat(i,".json"),u=void 0;try{u=fs[o(305)](i)?JSON.parse(fs[o(384)](i)[o(410)]()):{}}catch(e){throw o(447)[o(394)](i," contains error, please check it.")}handleUsingComponents(u.usingComponents,i),r&&n[o(341)][o(423)](s),n[o(401)][s]=u,t||getUsingComponents(n,"","",a,o(401)),getUsingComponents(u,i,s,a,o(401))}}}function _0x3acb(){var e=["ERROR: Can not resolve tabBar list item : ","map","suspendedStart","create","route-mapping.json","modules","./plugin/i18n-transform-plugin","useCustomTabBar","displayName","iconPath","named","app.css","_invoke","tryEntries","isDirectory",".pack.js","widgetPathsList","appType","asyncIterator","Arguments","__await","reverse","length","./plugin/copy-bundle-plugin","keys","values","isGeneratorFunction","undefined","readdir","catchLoc","1006344dWvUIB","mark","existsSync","default","afterLoc","miniprogram_npm","pagePath","done","dispatchException","tryLoc"," cannot be in the subpackage directory","sent","finallyLoc","replace","forEach","pop","reset","ERROR: Can not resolve file : app.json","env","Generator","hasOwnProperty","selectedIconPath","symbol","completion","ERROR: tabBar ","@babel/plugin-transform-modules-commonjs","widgets","getPrototypeOf","join","filter","7119968bOKuQB","[object Generator]","build-profile.json5","4591767oivhom","ERROR: build-profile.json5 file not found","GeneratorFunction","./plugin/webpack-target/index","node_modules","independentList","subpackages","customTabBar","readJsonFile","dist","versionNum","isArray","@@toPrimitive must return a primitive value.","parse","setPrototypeOf","moduleIds",".ux","24474KwcOxj","component","@babel/preset-env","independent","suspendedYield","stop","resolve","components","projectComponentsMap","PROJECT_PATH","mergeMap","compJsonPath","next","i18n","lstatSync","@@iterator","get","WARNING:Route information in the manifest.json file is incomplete:\n Page '","Map","_sent","defFreezeProperty","complete","manifest","custom-tab-bar/index.pack.js","iterator","test","delegate","prototype","9mVyiKB","4026029RrVGra","custom-tab-bar/index.hxml","readFileSync","abrupt",".js","./hjs-loader","parseIgnoreRules","normal","ERROR: app.json doesn't contain any page.","app.css.js","string","fixEntryPath","concat","./trustlist-hxml-verify-loader.js","routeMapping","../common/utils","throw","executing","charAt","page","slice","apply","name","set","' is used.","__proto__","arg","LoaderOptionsPlugin","toString","illegal catch attempt","getAbsPath","./plugin/html-generator-plugin","call","toPrimitive","@@toStringTag",".json",".hxml","subPackages","type","function","then","push","The iterator does not provide a '","IS_PRD","app","AsyncIterator","./plugin/resource-plugin","custom-tab-bar/index","webapp"," is not iterable","ERROR: modify app.json tabBar and recompile it","completed","ASCF_SRC_PATH","error","constructor","toLowerCase","../ascf-compiler/chalk/bundle.cjs","import-scripts","red","noDeprecation","path","method","[name]","./hxml-loader","ERROR: Failed to find the file: ","ERROR: ","clearResource","relative","continue","value","ERROR: build-profile.json5 file modules is null","babel-loader","1799515bBakzu","warn","global","defineProperty","return","WARNING: The build directory is not cleared. Use the -c parameter.","@babel/plugin-proposal-class-properties","prev","object","fa-compiler/loader.js","loadBabelModule","resultName","componentList","Object","./common/utils","router","startsWith","', please check tabBar configuration.","some","webpack","tabBar","root","iterator result is not an object","ASCF_BUILD_PATH","filePath","Generator is already running","pages","development","../common/remove-strict-mode-plugin","none","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","yes","wrap","async","srcPath","RAWFILE_DIR","text","./common/packoptions-utils","getProjectAbsPath","85KKzacP","list","PROJECT_CONFIG","awrap","level","yellow","json5","./path-process-loader.js","find","production","javascript/auto","6302812aeZlAs","break","app.js","end","usingComponents","exit"];return(_0x3acb=function(){return e})()}function getUsingComponents(o,i,e,s,t){var u=_0x1c9aa6,c=5<arguments[u(295)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=o[u(404)];if(o[u(271)])for(var f in o[u(271)])(()=>{var t=u;if(Object.prototype[t(323)][t(414)](o[t(271)],f)){var r=o.usingComponents[f],e=utils[t(412)](r,i,ASCF_SRC_PATH,".json"),n=e[t(241)],e=e[t(393)],a=path[t(449)](ASCF_SRC_PATH,n)[t(316)](/\\/g,"/")[t(316)](/\.json/,""),r=e||a;if(o[t(271)][f]=r,!p&&i===n)return p=f;if(c[t(264)](function(e){return e===n}))return;l[t(472)](function(e){return e[t(442)]===r})||l[t(423)]({path:r,key:f,compJsonPath:n});e=JSON[t(349)](fs[t(384)](n)[t(410)]());handleUsingComponents(e[t(271)],n),getUsingComponents(e,n,r,s,t(354),c[t(394)]([n]))}})();e&&!s[u(369)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(405)](e,t))}function getI18NEntry(u){var c=_0x1c9aa6;fs[c(301)](u,function(e,t){var r=c;if(e)throw e;var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n())[r(310)];){var o,i=n[r(451)],s=path[r(331)](u,i)[r(316)](/\\/g,"/");fs[r(367)](s)[r(287)]()&&!/(node_modules)|(\.ascf)/[r(378)](i)&&((o=s.split("/"))[o[r(295)]-1][r(437)]()===I18N&&I18N_ENTRY.push(s),getI18NEntry(s))}}catch(e){a.e(e)}finally{a.f()}})}function generateEntry(e){var n=_0x1c9aa6,a={},t=e[n(361)],r=[],o=(Object[n(297)](t)[n(294)]().forEach(function(e){r[n(423)](t[e])}),a[n(269)]=path[n(359)](ASCF_SRC_PATH,"app.json?package=app")[n(316)](/\\/g,"/"),utils[n(363)](r)),i=path[n(359)](ASCF_SRC_PATH,n(284));if(fs[n(305)](i)&&(a[n(391)]=path.resolve(ASCF_SRC_PATH,"app.css")),hasCustomTabBar(e.manifest)){var s,i=path.resolve(ASCF_SRC_PATH,n(383)),u=i[n(316)](/\.hxml$/,n(417)),c=(a[n(376)]=""[n(394)](i,"?type=component"),_createForOfIteratorHelper(e[n(375)][n(474)][n(257)]));try{for(c.s();!(s=c.n())[n(310)];){var l=s[n(451)];o.get(l.pagePath)&&o.get(l[n(309)])[n(466)].push({path:n(429),key:n(343),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(426)].set(n(429),i)}return o[n(317)](function(e,t){var r=n;return a[""[r(394)](t,r(288))]=e[r(364)][r(316)](/\.json$/,r(418))}),utils[n(373)](e,n(360),o),generateWidgetsEntry(a,e),a}function generateWidgetsEntry(a,r){var o,n,i=_0x1c9aa6,e=r[i(375)];r[i(375)]&&e[i(469)]&&((o=e[i(469)][i(243)])&&Object.keys(o)[i(317)](function(e){var t=i,r=o[e],n=r.component,r=(r||console[t(455)](chalk[t(261)](t(370)[t(394)](e,"' does not have the component attribute configured. ")+"By default, '"[t(394)](n,t(406)))),path[t(331)](ASCF_SRC_PATH,e,n)),e="".concat(path.join(e,n),t(386));if(fs.existsSync("".concat(r,t(352))))a[e]="".concat(r,t(352));else if(!fs[t(305)](""[t(394)](r,t(418))))throw t(446)[t(394)](r,t(352))}),e=e[i(329)])&&0<e[i(295)]&&(r[i(289)]=[],n="",e[i(317)](function(e){var t=i;n=e[t(442)],r[t(289)][t(423)](path[t(331)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x1c9aa6,t={targets:{node:8}};return{rules:[][e(394)](_toConsumableArray(utils.createCSSRule()),[{test:/\.js$/,use:[{loader:utils[e(464)](e(453)),options:{presets:[[utils.loadBabelModule(e(355)),t]],plugins:[utils.loadBabelModule(e(328)),utils[e(464)](e(460))]}},{loader:path[e(359)](__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(359)](__dirname,e(387))},{loader:utils[e(464)]("babel-loader"),options:{presets:[[utils[e(464)](e(355)),t]],plugins:[utils[e(464)](e(328)),removeStrictModePlugin]}},{loader:path.resolve(__dirname,e(263))},{loader:path.resolve(__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(464)](e(453)),options:{presets:[[utils[e(464)](e(355)),t]],compact:!1}},{loader:path[e(359)](__dirname,e(445))},{loader:path[e(359)](__dirname,e(395))}]},{test:/app\.json$/,type:e(266),use:[{loader:path[e(359)](__dirname,"./appjson-loader")}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path.resolve(__dirname,e(463))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x1c9aa6(388)](e):t)||{}}function generateRouteMapping(e){var t=_0x1c9aa6,r=e.manifest[t(396)]||{},n=path.join(ASCF_SRC_PATH,t(277));if(fs.existsSync(n)){var a=JSON.parse(fs[t(384)](n)[t(410)]());if(a)for(var o in a)Object[t(380)][t(323)][t(414)](a,o)&&(r[o]=a[o])}0<Object[t(297)](r).length&&(e[t(375)][t(396)]=r)}function generatePlugins(e){var t=_0x1c9aa6;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(375)]}),new ManifestGeneratorPlugin({manifest:e[t(375)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(375)],pagesInfo:e[t(375)].page,srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e.components}),new webpack[t(409)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(375)],components:e[t(360)],projectComponentsMap:e.projectComponentsMap,versionNum:e[t(346)],widgetPathsList:e[t(289)],widgetsDependList:e.widgetPathsList,projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(375)][t(271)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x1c9aa6;return{modules:[path[e(331)](ASCF_SRC_PATH,e(308)),path[e(331)](ASCF_SRC_PATH,e(340)),path[e(331)](__dirname,"..","..",e(340)),path.join(__dirname,"..","..","..","..",e(340))]}}function checkBuildResources(){var e=_0x1c9aa6;(fs[e(305)](ZIP_PATH)||fs[e(305)](BUILD_PATH)||fs.existsSync(ASCF_BUILD_PATH))&&(console[e(455)](chalk.yellow(e(459))),process.exit(1))}function generateConfig(){return _generateConfig[_0x1c9aa6(403)](this,arguments)}function _generateConfig(){var e=_0x1c9aa6;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[e(304)](function e(){var r,n;return _regeneratorRuntime().wrap(function(e){for(var t=_0xe2d3;;)switch(e.prev=e[t(365)]){case 0:if(process[t(321)][t(448)]===t(248))return e[t(365)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(365)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:t(IS_PRD?265:244),devtool:!IS_PRD&&"inline-cheap-source-map",context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(444),publicPath:"/",globalObject:t(456),enabledChunkLoadingTypes:[t(439)]},target:"web",resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(246),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(250),cacheGroups:{default:!1}}}},IS_PRD||(n.optimization[t(351)]=t(283)),e[t(385)](t(458),n);case 11:case t(270):return e[t(358)]()}},e)})))[e(403)](this,arguments)}module.exports=generateConfig;
|
|
1
|
+
var _0x22e264=_0x5f55;function _regeneratorRuntime(){var c=_0x5f55;_regeneratorRuntime=function(){return s};var l,s={},e=Object.prototype,p=e.hasOwnProperty,f=Object.defineProperty||function(e,t,r){var n=_0x5f55;e[t]=r[n(417)]},t=c(291)==typeof Symbol?Symbol:{},a=t[c(314)]||c(237),r=t[c(436)]||c(242),n=t[c(384)]||c(286);function o(e,t,r){return Object[c(315)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o,a,i,s,u=c,t=t&&t[u(260)]instanceof v?t:v,t=Object.create(t[u(260)]),n=new T(n||[]);return f(t,u(235),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x5f55;if(s===m)throw Error(r(442));if(s===g){if(r(220)===e)throw t;return{value:l,done:!0}}for(i[r(249)]=e,i.arg=t;;){var n=i.delegate;if(n){n=function e(t,r){var n=c,o=r[n(249)],a=t[n(314)][o];if(a===l)return r[n(265)]=null,"throw"===o&&t.iterator[n(431)]&&(r[n(249)]=n(431),r[n(233)]=l,e(t,r),n(220)===r.method)||n(431)!==o&&(r[n(249)]=n(220),r.arg=new TypeError(n(437)+o+"' method")),y;o=_(a,t[n(314)],r[n(233)]);if(n(220)===o.type)return r[n(249)]="throw",r.arg=o.arg,r[n(265)]=null,y;a=o[n(233)];return a?a[n(267)]?(r[t[n(240)]]=a[n(417)],r[n(381)]=t.nextLoc,n(431)!==r[n(249)]&&(r[n(249)]=n(381),r[n(233)]=l),r[n(265)]=null,y):a:(r[n(249)]=n(220),r.arg=new TypeError(n(333)),r[n(265)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if("next"===i[r(249)])i[r(355)]=i[r(363)]=i[r(233)];else if("throw"===i.method){if(s===h)throw s=g,i[r(233)];i[r(222)](i[r(233)])}else r(431)===i[r(249)]&&i.abrupt(r(431),i[r(233)]);s=m;n=_(o,a,i);if(r(241)===n[r(243)]){if(s=i[r(267)]?g:d,n[r(233)]===y)continue;return{value:n[r(233)],done:i[r(267)]}}r(220)===n.type&&(s=g,i[r(249)]=r(220),i[r(233)]=n[r(233)])}})}),t}function _(e,t,r){var n=c;try{return{type:n(241),arg:e[n(254)](t,r)}}catch(e){return{type:n(220),arg:e}}}s.wrap=u;var h=c(276),d=c(320),m=c(353),g=c(334),y={};function v(){}function i(){}function P(){}var t={},b=(o(t,a,function(){return this}),Object[c(275)]),b=b&&b(b(I([]))),x=(b&&b!==e&&p.call(b,a)&&(t=b),P[c(260)]=v[c(260)]=Object.create(t));function A(e){var t=c;["next",t(220),"return"][t(225)](function(t){o(e,t,function(e){return this._invoke(t,e)})})}function C(s,u){var t,o=c;f(this,o(235),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x5f55,e=_(s[e],s,r);if("throw"!==e[i(243)])return(r=(a=e[i(233)])[i(417)])&&i(329)==_typeof(r)&&p[i(254)](r,i(232))?u.resolve(r[i(232)])[i(327)](function(e){t(i(381),e,n,o)},function(e){t("throw",e,n,o)}):u[i(228)](r)[i(327)](function(e){a.value=e,n(a)},function(e){return t(i(220),e,n,o)});o(e[i(233)])}(r,n,e,t)})}return t=t?t[o(327)](e,e):e()}})}function S(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(290)]=e[1]),2 in e&&(r[t(261)]=e[2],r[t(354)]=e[3]),this.tryEntries[t(445)](r)}function R(e){var t=c,r=e.completion||{};r[t(243)]=t(241),delete r[t(233)],e[t(226)]=r}function T(e){var t=c;this[t(339)]=[{tryLoc:t(277)}],e[t(225)](S,this),this[t(246)](!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(254)](r);if(n(291)==typeof r[n(381)])return r;if(!isNaN(r[n(422)]))return o=-1,(e=function e(){for(var t=n;++o<r[t(422)];)if(p[t(254)](r,o))return e.value=r[o],e[t(267)]=!1,e;return e.value=l,e.done=!0,e})[n(381)]=e}throw new TypeError(_typeof(r)+n(293))}return i[c(260)]=P,f(x,"constructor",{value:P,configurable:!0}),f(P,"constructor",{value:i,configurable:!0}),i.displayName=o(P,n,c(337)),s[c(441)]=function(e){var t=c,e=t(291)==typeof e&&e[t(245)];return!!e&&(e===i||"GeneratorFunction"===(e[t(439)]||e[t(322)]))},s[c(364)]=function(e){var t=c;return Object[t(358)]?Object[t(358)](e,P):(e[t(234)]=P,o(e,n,t(337))),e[t(260)]=Object.create(x),e},s[c(367)]=function(e){return{__await:e}},A(C.prototype),o(C[c(260)],r,function(){return this}),s.AsyncIterator=C,s[c(428)]=function(e,t,r,n,o){var a=c,i=(void 0===o&&(o=Promise),new C(u(e,t,r,n),o));return s.isGeneratorFunction(t)?i:i[a(381)]()[a(327)](function(e){var t=a;return e[t(267)]?e[t(417)]:i[t(381)]()})},A(x),o(x,n,c(263)),o(x,a,function(){return this}),o(x,"toString",function(){return c(227)}),s[c(360)]=function(e){var t,n=Object(e),o=[];for(t in n)o.push(t);return o.reverse(),function e(){for(var t=_0x5f55;o[t(422)];){var r=o[t(294)]();if(r in n)return e[t(417)]=r,e[t(267)]=!1,e}return e[t(267)]=!0,e}},s[c(274)]=I,T[c(260)]={constructor:T,reset:function(e){var t=c;if(this[t(247)]=0,this.next=0,this[t(355)]=this[t(363)]=l,this[t(267)]=!1,this[t(265)]=null,this[t(249)]=t(381),this[t(233)]=l,this[t(339)].forEach(R),!e)for(var r in this)"t"===r[t(434)](0)&&p[t(254)](this,r)&&!isNaN(+r[t(236)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this.done=!0,this[e(339)][0][e(226)]);if(e(220)===t.type)throw t[e(233)];return this.rval},dispatchException:function(n){var o=c;if(this[o(267)])throw n;var a=this;function e(e,t){var r=o;return i.type="throw",i[r(233)]=n,a.next=e,t&&(a.method=r(381),a.arg=l),!!t}for(var t=this[o(339)][o(422)]-1;0<=t;--t){var r=this[o(339)][t],i=r[o(226)];if(o(277)===r.tryLoc)return e("end");if(r[o(255)]<=this[o(247)]){var s=p.call(r,o(290)),u=p[o(254)](r,o(261));if(s&&u){if(this[o(247)]<r[o(290)])return e(r[o(290)],!0);if(this[o(247)]<r[o(261)])return e(r[o(261)])}else if(s){if(this.prev<r.catchLoc)return e(r[o(290)],!0)}else{if(!u)throw Error(o(318));if(this.prev<r[o(261)])return e(r[o(261)])}}}},abrupt:function(e,t){for(var r=c,n=this[r(339)].length-1;0<=n;--n){var o=this[r(339)][n];if(o[r(255)]<=this[r(247)]&&p.call(o,r(261))&&this[r(247)]<o[r(261)]){var a=o;break}}var i=(a=a&&("break"===e||r(216)===e)&&a.tryLoc<=t&&t<=a[r(261)]?null:a)?a.completion:{};return i[r(243)]=e,i.arg=t,a?(this[r(249)]=r(381),this[r(381)]=a.finallyLoc,y):this.complete(i)},complete:function(e,t){var r=c;if(r(220)===e[r(243)])throw e[r(233)];return r(279)===e[r(243)]||r(216)===e[r(243)]?this.next=e[r(233)]:r(431)===e[r(243)]?(this.rval=this.arg=e[r(233)],this[r(249)]=r(431),this[r(381)]=r(295)):r(241)===e[r(243)]&&t&&(this[r(381)]=t),y},finish:function(e){for(var t=c,r=this.tryEntries[t(422)]-1;0<=r;--r){var n=this[t(339)][r];if(n[t(261)]===e)return this[t(421)](n[t(226)],n.afterLoc),R(n),y}},catch:function(e){for(var t=c,r=this[t(339)][t(422)]-1;0<=r;--r){var n,o,a=this[t(339)][r];if(a[t(255)]===e)return n=a[t(226)],t(220)===n[t(243)]&&(o=n[t(233)],R(a)),o}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){var n=c;return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this[n(233)]=l),y}},s}function _typeof(e){var r=_0x5f55;return(_typeof="function"==typeof Symbol&&r(423)==typeof Symbol[r(314)]?function(e){return typeof e}:function(e){var t=r;return e&&t(291)==typeof Symbol&&e[t(245)]===Symbol&&e!==Symbol.prototype?t(423):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x5f55;try{var u=e[a](i),c=u[s(417)]}catch(e){return void r(e)}u[s(267)]?t(c):Promise[s(228)](c).then(n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x5f55,o=u[n(394)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,n(381),e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(220),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x5f55(424))}function _iterableToArray(e){var t=_0x5f55;if(t(429)!=typeof Symbol&&null!=e[Symbol[t(314)]]||null!=e["@@iterator"])return Array[t(326)](e)}function _arrayWithoutHoles(e){if(Array[_0x5f55(331)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x5f55,s="undefined"!=typeof Symbol&&e[Symbol[i(314)]]||e[i(237)];if(s)return o=!(n=!0),{s:function(){s=s[i(254)](e)},n:function(){var e=i,t=s[e(381)]();return n=t[e(267)],t},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(431)]||s[e(431)]()}finally{if(o)throw r}}};if(Array.isArray(e)||(s=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e[i(422)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r,n=_0x5f55;if(e)return n(414)==typeof e?_arrayLikeToArray(e,t):(r={}[n(352)].call(e)[n(236)](8,-1),n(343)===r&&e[n(245)]&&(r=e[n(245)][n(322)]),n(351)===r||"Set"===r?Array[n(326)](e):n(253)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(223)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0x5f55;(null==t||t>e[r(422)])&&(t=e[r(422)]);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _defineProperty(e,t,r){var n=_0x5f55;return(t=_toPropertyKey(t))in e?Object[n(315)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x5f55,e=_toPrimitive(e,t(414));return t(423)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x5f55;if("object"!=_typeof(e)||!e)return e;var n=e[Symbol[r(404)]];if(void 0===n)return(r(414)===t?String:Number)(e);n=n[r(254)](e,t||"default");if(r(329)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x5f55,t=_0x2def();;)try{if(231881==-parseInt(e(378))*(parseInt(e(398))/2)+parseInt(e(268))/3+-parseInt(e(224))/4*(parseInt(e(397))/5)+-parseInt(e(399))/6*(-parseInt(e(325))/7)+-parseInt(e(369))/8*(-parseInt(e(443))/9)+parseInt(e(219))/10+-parseInt(e(310))/11*(parseInt(e(385))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require(_0x22e264(411)),fs=require("fs"),webpack=require(_0x22e264(250)),json5=require(_0x22e264(386)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x22e264(229)),ManifestGeneratorPlugin=require("./plugin/manifest-generator-plugin"),I18NPlugin=require(_0x22e264(230)),CopyAscfBundlePlugin=require(_0x22e264(231)),_packOptions=require("./common/packoptions-utils"),_require=require(_0x22e264(302)),clearResource=_require[_0x22e264(298)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x22e264(313)],PROJECT_CONFIG=_require[_0x22e264(340)],ASCF_SRC_PATH=_require[_0x22e264(444)],ASCF_BUILD_PATH=_require.ASCF_BUILD_PATH,RAWFILE_DIR=_require.RAWFILE_DIR,WebpackTargetPlugin=require(_0x22e264(419)),LoggerPlguin=require(_0x22e264(416)),utils=require(_0x22e264(330)),commonUtils=require(_0x22e264(302)),removeStrictModePlugin=require(_0x22e264(387)),chalk=require(_0x22e264(287)),ExtConfigPlugin=require(_0x22e264(262)),ignoreRules=(chalk.level=1,process[_0x22e264(285)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path[_0x22e264(273)](ASCF_SRC_PATH,_0x22e264(415),_0x22e264(383)),buildProfileJson5Path=path[_0x22e264(228)](PROJECT_PATH,_0x22e264(371));if(!fs[_0x22e264(412)](buildProfileJson5Path))throw _0x22e264(382);var buildProfile=json5[_0x22e264(296)](fs[_0x22e264(332)](buildProfileJson5Path)[_0x22e264(352)]());if(!buildProfile[_0x22e264(284)]||0===buildProfile.modules.length)throw _0x22e264(328);var BUILD_PATH=path[_0x22e264(228)](PROJECT_PATH,buildProfile.modules[0][_0x22e264(396)],RAWFILE_DIR),I18N_ENTRY=[],I18N="i18n",APP=_0x22e264(408),APP_TYPE="webapp";function handleUsingComponents(e,t){var r,n=_0x22e264;if(e)for(var o in e)Object.prototype[n(258)][n(254)](e,o)&&(r=e[o][n(272)](),e[o]=utils[n(316)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,a,r=_0x22e264,i=["iconPath","selectedIconPath",r(366)],n=(null==(n=e[r(323)])?void 0:n.list)||[],e=e.subPackages||e[r(357)]||[];n!==[]&&e!==[]&&(t=e[r(409)](function(e){return e[r(277)]}).filter(function(e){return e}),a=[],n[r(225)](function(o){t[r(225)](function(n){i.forEach(function(e){var t,r=_0x5f55;path.join(ASCF_SRC_PATH,null!=(t=o[e])?t:"")[r(281)](path[r(273)](ASCF_SRC_PATH,n,"/"))&&a[r(445)](chalk[r(218)](r(319)[r(432)](o[r(248)]," ")[r(432)](e," cannot be in the subpackage directory")))})})}),0<a[r(422)])&&(a[r(225)](function(e){console[r(278)](chalk.red(e))}),console[r(278)](chalk[r(218)](r(221))),process[r(359)](1))}function readAppJson(){var r=_0x22e264,e=_defineProperty({},APP,new Map),t=path[r(273)](ASCF_SRC_PATH,"app.json");if(!fs[r(412)](t))throw r(309);var n=commonUtils[r(379)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(312)],t),n.page={},n[r(365)]=[],[]);if(!n.pages||n[r(373)][r(422)]<=0)throw"ERROR: app.json doesn't contain any page.";putPageInfoToEntryList(n[r(373)],"",!1,n,e[APP]);var o=[r(357),r(349)][r(433)](function(e){var t=r;return Object[t(260)][t(258)].call(n,e)});if(t[r(422)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(357)]=t);try{for(i.s();!(a=i.n()).done;){var s=a[r(417)],u=new Map;e[s[r(277)]]=u,putPageInfoToEntryList(s[r(373)],s[r(277)],s[r(390)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n[r(357)]=t);try{for(l.s();!(c=l.n()).done;){var p=c[r(417)],f=new Map;e[p[r(277)]]=f,putPageInfoToEntryList(p[r(373)],p[r(277)],p.independent,n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x22e264;e[r(243)]=null!=(t=null!=(t=e[r(243)])?t:e[r(324)])?t:APP_TYPE,delete e[r(324)]}function hasCustomTabBar(e){var t=_0x22e264;return(e[t(323)]||{})[t(266)]&&fs.existsSync(path[t(228)](ASCF_SRC_PATH,t(306)))}function handingCustomTabBar(e){var t=_0x22e264;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(323)][t(407)]);try{for(n.s();!(r=n.n())[t(267)];){var o=r.value;if(!e[t(400)][o.pagePath])throw t(410)+"'"[t(432)](o.pagePath,t(405));e[t(400)][o[t(366)]][t(376)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var e=_0x22e264,t=0<arguments[e(422)]&&void 0!==arguments[0]?arguments[0]:{},r=[];return Object[e(360)](t)[e(225)](function(e){r.push({key:e,path:t[e]})}),r}function putPageInfoToEntryList(e,t,r,n,o){var a=_0x22e264;if(e)for(var i in e)if(Object[a(260)][a(258)].call(e,i)){var i=path[a(273)](ASCF_SRC_PATH,t,e[i]),s=path[a(311)](ASCF_SRC_PATH,i);if(!_packOptions[a(406)](s,ignoreRules)){var s=s[a(305)](/\\/g,"/"),i=""[a(432)](i,a(257)),u=void 0;try{u=fs.existsSync(i)?JSON.parse(fs[a(332)](i)[a(352)]()):{}}catch(e){throw a(418)[a(432)](i,a(271))}handleUsingComponents(u[a(312)],i),r&&n[a(365)][a(445)](s),n[a(400)][s]=u,t||getUsingComponents(n,"","",o,a(400)),getUsingComponents(u,i,s,o,"page")}}}function getUsingComponents(a,i,e,s,t){var u=_0x22e264,c=5<arguments[u(422)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=a[u(322)];if(a.usingComponents)for(var f in a[u(312)])(()=>{var t=u;if(Object[t(260)][t(258)][t(254)](a[t(312)],f)){var r=a[t(312)][f],e=utils.getAbsPath(r,i,ASCF_SRC_PATH,t(257)),n=e[t(300)],e=e[t(297)],o=path[t(311)](ASCF_SRC_PATH,n).replace(/\\/g,"/")[t(305)](/\.json/,""),r=e||o;if(a[t(312)][f]=r,!p&&i===n)return p=f;if(c.find(function(e){return e===n}))return;l[t(356)](function(e){return e[t(411)]===r})||l[t(445)]({path:r,key:f,compJsonPath:n});e=JSON[t(296)](fs[t(332)](n)[t(352)]());handleUsingComponents(e[t(312)],n),getUsingComponents(e,n,r,s,t(217),c[t(432)]([n]))}})();e&&!s[u(380)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(389)](e,t))}function getI18NEntry(u){var c=_0x22e264;fs[c(252)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n())[r(267)];){var a,i=n[r(417)],s=path[r(273)](u,i)[r(305)](/\\/g,"/");fs[r(336)](s).isDirectory()&&!/(node_modules)|(\.ascf)/[r(223)](i)&&((a=s.split("/"))[a.length-1][r(440)]()===I18N&&I18N_ENTRY[r(445)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x22e264,o={},t=e[n(345)],r=[],a=(Object.keys(t)[n(259)]()[n(225)](function(e){r[n(445)](t[e])}),o["app.js"]=path[n(228)](ASCF_SRC_PATH,n(361))[n(305)](/\\/g,"/"),utils[n(388)](r)),i=path[n(228)](ASCF_SRC_PATH,"app.css");if(fs[n(412)](i)&&(o[n(344)]=path[n(228)](ASCF_SRC_PATH,n(283))),hasCustomTabBar(e[n(215)])){var s,i=path.resolve(ASCF_SRC_PATH,"custom-tab-bar/index.hxml"),u=i[n(305)](/\.hxml$/,n(257)),c=(o[n(413)]="".concat(i,n(244)),_createForOfIteratorHelper(e[n(215)][n(323)][n(407)]));try{for(c.s();!(s=c.n())[n(267)];){var l=s[n(417)];a[n(380)](l.pagePath)&&a[n(380)](l[n(366)])[n(308)][n(445)]({path:n(375),key:"customTabBar",compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(408)][n(389)](n(375),i)}return a[n(225)](function(e,t){var r=n;return o[""[r(432)](t,r(420))]=e.compJsonPath[r(305)](/\.json$/,r(251))}),utils[n(372)](e,n(391),a),generateWidgetsEntry(o,e),o}function generateWidgetsEntry(o,r){var a,n,i=_0x22e264,e=r[i(215)];r.manifest&&e[i(430)]&&((a=e[i(430)][i(373)])&&Object[i(360)](a)[i(225)](function(e){var t=i,r=a[e],n=r.component,r=(r||console[t(307)](chalk[t(264)](t(341)[t(432)](e,"' does not have the component attribute configured. ")+t(299)[t(432)](n,t(335)))),path[t(273)](ASCF_SRC_PATH,e,n)),e=""[t(432)](path[t(273)](e,n),t(374));if(fs.existsSync("".concat(r,".ux")))o[e]=""[t(432)](r,t(362));else if(!fs.existsSync(""[t(432)](r,t(251))))throw t(427)[t(432)](r,t(362))}),e=e[i(426)])&&0<e[i(422)]&&(r[i(280)]=[],n="",e.forEach(function(e){var t=i;n=e[t(411)],r[t(280)].push(path[t(273)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x22e264,t={targets:{node:8}};return{rules:[][e(432)](_toConsumableArray(utils.createCSSRule()),[{test:/\.js$/,use:[{loader:utils.loadBabelModule(e(338)),options:{presets:[[utils.loadBabelModule(e(317)),t]],plugins:[utils[e(368)](e(282)),utils[e(368)](e(350))]}},{loader:path[e(228)](__dirname,e(438))}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path.resolve(__dirname,e(239))},{loader:utils.loadBabelModule(e(338)),options:{presets:[[utils[e(368)](e(317)),t]],plugins:[utils[e(368)](e(282)),removeStrictModePlugin]}},{loader:path[e(228)](__dirname,e(321))},{loader:path.resolve(__dirname,e(438))}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(368)](e(338)),options:{presets:[[utils[e(368)](e(317)),t]],compact:!1}},{loader:path.resolve(__dirname,e(269))},{loader:path[e(228)](__dirname,e(393))}]},{test:/app\.json$/,type:"javascript/auto",use:[{loader:path[e(228)](__dirname,e(270))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(228)](__dirname,"fa-compiler/loader.js")}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x22e264(238)](e):t)||{}}function _0x5f55(e,t){var r=_0x2def();return(_0x5f55=function(e,t){return r[e-=215]})(e,t)}function generateRouteMapping(e){var t=_0x22e264,r=e[t(215)][t(256)]||{},n=path[t(273)](ASCF_SRC_PATH,t(425));if(fs[t(412)](n)){var o=JSON[t(296)](fs[t(332)](n).toString());if(o)for(var a in o)Object[t(260)].hasOwnProperty[t(254)](o,a)&&(r[a]=o[a])}0<Object[t(360)](r)[t(422)]&&(e[t(215)][t(256)]=r)}function generatePlugins(e){var t=_0x22e264;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(215)]}),new ManifestGeneratorPlugin({manifest:e[t(215)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(215)],pagesInfo:e[t(215)][t(400)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(391)]}),new webpack[t(403)]({options:{srcPath:ASCF_SRC_PATH,manifest:e.manifest,components:e.components,projectComponentsMap:e[t(345)],versionNum:e[t(288)],widgetPathsList:e.widgetPathsList,widgetsDependList:e[t(280)],projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(215)][t(312)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x22e264;return{modules:[path[e(273)](ASCF_SRC_PATH,"miniprogram_npm"),path.join(ASCF_SRC_PATH,e(342)),path[e(273)](__dirname,"..","..",e(342)),path[e(273)](__dirname,"..","..","..","..",e(342))]}}function checkBuildResources(){var e=_0x22e264;(fs[e(412)](ZIP_PATH)||fs.existsSync(BUILD_PATH)||fs[e(412)](ASCF_BUILD_PATH))&&(console.warn(chalk.yellow(e(435))),process[e(359)](1))}function generateConfig(){return _generateConfig[_0x22e264(394)](this,arguments)}function _0x2def(){var e=["iterator","defineProperty","getProjectAbsPath","@babel/preset-env","try statement without catch or finally","ERROR: tabBar ","suspendedYield","./path-process-loader.js","name","tabBar","appType","1423555Fyxjyf","from","then","ERROR: build-profile.json5 file modules is null","object","./common/utils","isArray","readFileSync","iterator result is not an object","completed","' is used.","lstatSync","GeneratorFunction","babel-loader","tryEntries","PROJECT_CONFIG","WARNING:Route information in the manifest.json file is incomplete:\n Page '","node_modules","Object","app.css.js","projectComponentsMap","moduleIds","production","yes","subPackages","@babel/plugin-proposal-class-properties","Map","toString","executing","afterLoc","sent","some","subpackages","setPrototypeOf","exit","keys","app.json?package=app",".ux","_sent","mark","independentList","pagePath","awrap","loadBabelModule","8lpxKmY","none","build-profile.json5","defFreezeProperty","pages",".js","custom-tab-bar/index","useCustomTabBar","[name]","1MTmhcy","readJsonFile","get","next","ERROR: build-profile.json5 file not found","dist","toStringTag","12EAmYWF","json5","../common/remove-strict-mode-plugin","mergeMap","set","independent","components","stop","./trustlist-hxml-verify-loader.js","apply","global","srcPath","81645JGjETx","74650hrUWMc","6QXegsG","page","named","development","LoaderOptionsPlugin","toPrimitive","', please check tabBar configuration.","isIgnoreFile","list","app","map","ERROR: Can not resolve tabBar list item : ","path","existsSync","custom-tab-bar/index.pack.js","string",".ascf","../common/logger-plugin","value","ERROR: ","./plugin/webpack-target/index",".pack.js","complete","length","symbol","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","route-mapping.json","widgets","ERROR: Failed to find the file: ","async","undefined","router","return","concat","find","charAt","WARNING: The build directory is not cleared. Use the -c parameter.","asyncIterator","The iterator does not provide a '","./trustlist-js-verify-loader.js","displayName","toLowerCase","isGeneratorFunction","Generator is already running","1833669vIHXTj","ASCF_SRC_PATH","push","manifest","continue","component","red","2908980wtyQpS","throw","ERROR: modify app.json tabBar and recompile it","dispatchException","test","76MFlVKa","forEach","completion","[object Generator]","resolve","./plugin/html-generator-plugin","./plugin/i18n-transform-plugin","./plugin/copy-bundle-plugin","__await","arg","__proto__","_invoke","slice","@@iterator","parseIgnoreRules","./hjs-loader","resultName","normal","@@asyncIterator","type","?type=component","constructor","reset","prev","text","method","webpack",".hxml","readdir","Arguments","call","tryLoc","routeMapping",".json","hasOwnProperty","reverse","prototype","finallyLoc","./plugin/extConfig-plugin","Generator","yellow","delegate","custom","done","21282tIRnnO","./hxml-loader","./appjson-loader"," contains error, please check it.","trim","join","values","getPrototypeOf","suspendedStart","root","error","break","widgetPathsList","startsWith","@babel/plugin-transform-modules-commonjs","app.css","modules","noDeprecation","@@toStringTag","../ascf-compiler/chalk/bundle.cjs","versionNum","web","catchLoc","function","abrupt"," is not iterable","pop","end","parse","fixEntryPath","clearResource","By default, '","filePath","wrap","../common/utils","import-scripts","inline-cheap-source-map","replace","custom-tab-bar/index.hxml","warn","componentList","ERROR: Can not resolve file : app.json","1382051SUaswD","relative","usingComponents","PROJECT_PATH"];return(_0x2def=function(){return e})()}function _generateConfig(){var t=_0x22e264;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(364)](function e(){var r,n,o=t;return _regeneratorRuntime()[o(301)](function(e){for(var t=o;;)switch(e[t(247)]=e[t(381)]){case 0:if(process.env.clearResource===t(348))return e[t(381)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(381)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:t(IS_PRD?347:402),devtool:!IS_PRD&&t(304),context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(377),publicPath:"/",globalObject:t(395),enabledChunkLoadingTypes:[t(303)]},target:t(289),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(370),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(428),cacheGroups:{default:!1}}}},IS_PRD||(n.optimization[t(346)]=t(401)),e[t(292)]("return",n);case 11:case"end":return e[t(392)]()}},e)}))).apply(this,arguments)}module.exports=generateConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x13c7(){var c=["onRenderStart","touchEnd","setBackgroundColor","createBLEConnection","saveImageToPhotosAlbum","insertCalendar","tt:","navigateBackSmartProgram","wxs","onLoad","23108436amWlfj","setCanPullDown","tagEventToTransform","createAnimation","onAnimationStart","quickapp.config.json","getSelectedTextRange",".ttml","bindchange","invalidApis","onScrollToUpper","setTabBarItem","length","onTransition","stopBackgroundAudio","configBasename","directivesPrefix","117ecktpm","configBasenameArray","openReplyEditor","createInnerAudioContext","6856892EzeHfr","openShare","navigateToBookshelf","navigationBarTitleText",".css","setBackgroundTextStyle","onFullScreenChange","onAnimationEnd","stopLocationUpdate","interfacesForTransform","offAudioInterruptionEnd","onPanelTap","deleteresource","deleteTemplate","submitresource","onRegionChange","setTabBarStyle",".swan","arrayBufferToBase64","onError","pauseBackgroundAudio","isLoginSync","commonOnEvents","onLocatedComplete","getRecorderManager","onScale","deletesitemap","hideToast","offSocketClose","onControlTap","selectedIconPath","setInnerAudioOption","windowItems","saveFile",".wxs","rsa","loadSubPackage","playBackgroundAudio","closeCommunityEditor","qa:","getSwanId","bindwaiting",".wxml","onAudioInterruptionBegin","onTransitionEnd","wx:","hideKeyboard","offWindowResize","vibrate","compressImage","prototype","stopVoice","getURLQuery","setTopBarText","call","startWifi","optionsSelect","minProgramLanguage","list","block-size","stopAccelerometer","bindanimationfinish","onConfirm","createAudioContext",".axml","quickapp","offSocketMessage","project.config.json","onScrollToLower","onURLQueryChange","onInput","concat","_appletType","getClipboardData","configurable","setNavigationBar","onToBindWithTagEvents","getDirectivesReg","17660vqpmrh","stopWifi","Applets","closeBLEConnection","deleteBookshelf","navigationBarBackgroundColor","getAccountInfoSync","navigateToSmartProgram",".qxml","getAvailableAudioSources","Alipay","Headline","onTimeUpdate","getRealtimeLogManager","onChanging","requestPolymerPayment","createRtcRoomContext","@@toPrimitive must return a primitive value.","setMetaKeywords","getUserInfo","shareFile","closeReplyEditor","onAudioInterruptionEnd","showNavigationBarLoading","onBlur","touchStart","3TNfOSL","stopRecord","offSocketError",".qjs","saveFileToDisk","onFirstAppear","value","constructor","404214DMBcXl","getMenuButtonBoundingClientRect","__esModule","mute","chooseCity","offLocationChange","watchShake","258VwyPPa","subscribeService","createARCameraContext","275VTOclr","720904YpEunT","setEnableDebug","onAnimationIteration","onEnded","openCommunityEditor","import-sjs","setDocumentTitle","iconPath","weChat","polygons","getunionid","string","onBackgroundAudioPause","pauseVoice","onCalloutTap","startLocationUpdateBackground","setClipboardData","enumerable","onSubmit","offAudioInterruptionBegin","specialTag","onChange","startRecord","projectFileSuffix","compressVideo","toPrimitive","onFocus","block-color","createOffscreenCanvas","getSystemRiskInfo","appletType","resetConfig","color","longTap","hideHomeButton","onPause","setURLQuery",".wxss","tablebarListItems","getTemplateLibraryList","object","getTemplateList","1284bndZAl","iterator","defineProperty",".sjs","submitsitemap","onAppear","124180dmLcRw","setLocatedCity","requestHwPayment","function","onLocationChange","onChangeEnd","text","offSocketOpen","onDisappear","multiLevelSelect","getEnvInfoSync","createAnimationVideo","10443KUMAsC","setMetaDescription","checkSession","symbol","showModal",".ttss"];return(_0x13c7=function(){return c})()}var _0x6740cc=_0x2095;function _typeof(c){var o=_0x2095;return(_typeof=o(633)==typeof Symbol&&"symbol"==typeof Symbol[o(625)]?function(c){return typeof c}:function(c){var e=o;return c&&e(633)==typeof Symbol&&c[e(570)]===Symbol&&c!==Symbol[e(509)]?e(645):typeof c})(c)}function _classCallCheck(c,e){if(!(c instanceof e))throw new TypeError("Cannot call a class as a function")}function _0x2095(c,e){var o=_0x13c7();return(_0x2095=function(c,e){return o[c-=483]})(c,e)}function _defineProperties(c,e){for(var o=_0x2095,t=0;t<e[o(670)];t++){var n=e[t];n[o(599)]=n[o(599)]||!1,n[o(533)]=!0,o(569)in n&&(n.writable=!0),Object.defineProperty(c,_toPropertyKey(n.key),n)}}function _createClass(c,e,o){var t=_0x2095;return e&&_defineProperties(c.prototype,e),o&&_defineProperties(c,o),Object[t(626)](c,t(509),{writable:!1}),c}function _toPropertyKey(c){var e=_0x2095,c=_toPrimitive(c,e(593));return e(645)==_typeof(c)?c:c+""}function _toPrimitive(c,e){var o=_0x2095;if(o(622)!=_typeof(c)||!c)return c;var t=c[Symbol[o(607)]];if(void 0===t)return(o(593)===e?String:Number)(c);t=t[o(513)](c,e||"default");if(o(622)!=_typeof(t))return t;throw new TypeError(o(554))}(()=>{for(var c=_0x2095,e=_0x13c7();;)try{if(738040==-parseInt(c(563))*(-parseInt(c(571))/2)+parseInt(c(642))/3*(-parseInt(c(624))/4)+-parseInt(c(630))/5*(-parseInt(c(578))/6)+parseInt(c(679))/7+-parseInt(c(582))/8*(-parseInt(c(675))/9)+parseInt(c(537))/10*(-parseInt(c(581))/11)+-parseInt(c(658))/12)break;e.push(e.shift())}catch(c){e.push(e.shift())}})(),Object.defineProperty(exports,_0x6740cc(573),{value:!0}),exports[_0x6740cc(688)]=exports[_0x6740cc(535)]=exports[_0x6740cc(660)]=exports[_0x6740cc(701)]=exports[_0x6740cc(539)]=exports.tablebarListItems=exports.tablebarItems=exports[_0x6740cc(491)]=exports[_0x6740cc(676)]=exports[_0x6740cc(602)]=exports[_0x6740cc(674)]=exports[_0x6740cc(605)]=exports[_0x6740cc(516)]=exports.invalidApis=void 0,exports[_0x6740cc(667)]=["base64ToArrayBuffer",_0x6740cc(697),_0x6740cc(559),_0x6740cc(502),_0x6740cc(689),_0x6740cc(601),_0x6740cc(583),_0x6740cc(486),_0x6740cc(560),"hideNavigationBarLoading",_0x6740cc(684),_0x6740cc(650),"showTabBarRedDot",_0x6740cc(695),_0x6740cc(669),"hideTabBarRedDot",_0x6740cc(661),"nextTick",_0x6740cc(572),_0x6740cc(508),_0x6740cc(606),_0x6740cc(510),_0x6740cc(490),"playVoice",_0x6740cc(595),_0x6740cc(546),_0x6740cc(678),_0x6740cc(522),_0x6740cc(672),"seekBackgroundAudio",_0x6740cc(496),_0x6740cc(699),"onBackgroundAudioStop","onBackgroundAudioPlay",_0x6740cc(594),"getBackgroundAudioPlayerState","getBackgroundAudioManager",_0x6740cc(564),_0x6740cc(604),_0x6740cc(483),_0x6740cc(687),_0x6740cc(597),"startLocationUpdate",_0x6740cc(634),_0x6740cc(576),"getClipboardData","setWifiList",_0x6740cc(514),_0x6740cc(538),_0x6740cc(567),_0x6740cc(610),"onMemoryWarning","offMemoryWarning",_0x6740cc(550),_0x6740cc(616),_0x6740cc(512),"onWindowResize",_0x6740cc(506),"chooseMessageFile",_0x6740cc(644),_0x6740cc(556),_0x6740cc(632),_0x6740cc(543),"getAppIdSync","getRunScene","SDKVersion","hideBackHome",_0x6740cc(534),"chooseAlipayContact",_0x6740cc(575),_0x6740cc(702),_0x6740cc(631),"regionPicker","datePicker","calculateRoute",_0x6740cc(515),_0x6740cc(639),_0x6740cc(659),_0x6740cc(487),_0x6740cc(525),_0x6740cc(637),_0x6740cc(565),_0x6740cc(574),"offAudioInterruptionBegin",_0x6740cc(689),_0x6740cc(502),_0x6740cc(559),_0x6740cc(507),_0x6740cc(577),"getServerTime","showAuthGuide",_0x6740cc(494),_0x6740cc(511),_0x6740cc(618),_0x6740cc(528),"ai",_0x6740cc(580),_0x6740cc(641),"createLivePlayerContext",_0x6740cc(553),_0x6740cc(640),_0x6740cc(592),_0x6740cc(700),_0x6740cc(552),"setPageInfo",_0x6740cc(643),_0x6740cc(555),_0x6740cc(588),_0x6740cc(495),"reportAnalytics",_0x6740cc(611),_0x6740cc(579),"insertBookshelf",_0x6740cc(541),"queryBookshelf","updateBookshelfReadTime",_0x6740cc(681),_0x6740cc(499),"onShareAppMessage",_0x6740cc(680),_0x6740cc(557),_0x6740cc(544),_0x6740cc(655),_0x6740cc(586),_0x6740cc(497),_0x6740cc(677),_0x6740cc(558),_0x6740cc(693),_0x6740cc(691),_0x6740cc(628),_0x6740cc(485),_0x6740cc(621),"getTemplateLibraryById","addTemplate",_0x6740cc(623),_0x6740cc(692),"sendTemplateMessage"],exports.minProgramLanguage={qa:_0x6740cc(524),wx:_0x6740cc(590),swan:"Baidu",my:_0x6740cc(547),tt:_0x6740cc(548)},exports[_0x6740cc(605)]={qa:{hxml:_0x6740cc(545),css:_0x6740cc(683),hjs:_0x6740cc(566)},wx:{hxml:_0x6740cc(501),css:_0x6740cc(619),hjs:_0x6740cc(493)},swan:{hxml:_0x6740cc(696),css:".css",hjs:_0x6740cc(627)},my:{hxml:_0x6740cc(523),css:".acss",hjs:".sjs"},tt:{hxml:_0x6740cc(665),css:_0x6740cc(647),hjs:_0x6740cc(627)}},exports[_0x6740cc(674)]={qa:_0x6740cc(498),wx:_0x6740cc(504),swan:"s-",my:"a:",tt:_0x6740cc(654)},exports[_0x6740cc(602)]={wx:_0x6740cc(656),swan:_0x6740cc(587),my:_0x6740cc(587),tt:null},exports[_0x6740cc(676)]=["project.config.json","project.swan.json"];var configBasename={qa:_0x6740cc(663),wx:_0x6740cc(526),swan:"project.swan.json",my:null,tt:_0x6740cc(526)},addSupportTypes=(exports[_0x6740cc(491)]={titleBarColor:_0x6740cc(542),pullRefresh:"enablePullDownRefresh",defaultTitle:_0x6740cc(682)},exports.tablebarItems={textColor:_0x6740cc(614),items:_0x6740cc(517)},exports[_0x6740cc(620)]={name:_0x6740cc(636),icon:_0x6740cc(589),activeIcon:_0x6740cc(489)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var e=_0x6740cc;function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:e(612),get:function(){return o[e(531)]},set:function(c){o.resetConfig(c),o._appletType=c}},{key:e(613),value:function(c){o[e(673)]=configBasename[c],o.addSupportTypes=addSupportTypes[c]}},{key:e(536),value:function(c){return new RegExp("^"[e(530)](exports.directivesPrefix[c],".*"))}}])})();exports[_0x6740cc(539)]=Applets,exports[_0x6740cc(701)]=[_0x6740cc(562),"touchMove",_0x6740cc(649),"touchCancel","tap",_0x6740cc(615)],exports[_0x6740cc(660)]={swiper:{onAnimationEnd:_0x6740cc(520)},video:{onLoading:_0x6740cc(500)},checkbox:{onChange:_0x6740cc(666)},slider:{"handle-size":_0x6740cc(518),handleSize:"block-size","handle-color":_0x6740cc(609),handleColor:_0x6740cc(609)},map:{polygon:_0x6740cc(591)}},exports[_0x6740cc(535)]={view:[_0x6740cc(503),_0x6740cc(584),_0x6740cc(662),_0x6740cc(686),_0x6740cc(629),_0x6740cc(638),_0x6740cc(568)],"movable-view":[_0x6740cc(603),_0x6740cc(484),_0x6740cc(635)],"scroll-view":[_0x6740cc(668),_0x6740cc(527),"onScroll"],swiper:[_0x6740cc(603),_0x6740cc(671)],"checkbox-group":[_0x6740cc(603)],form:[_0x6740cc(600),"onReset"],input:[_0x6740cc(529),_0x6740cc(608),_0x6740cc(561),_0x6740cc(521)],picker:[_0x6740cc(603)],"picker-view":[_0x6740cc(603)],"radio-group":[_0x6740cc(603)],slider:[_0x6740cc(603),_0x6740cc(551)],switch:[_0x6740cc(603)],textarea:[_0x6740cc(529),"onFocus",_0x6740cc(561),"onConfirm"],image:[_0x6740cc(657),_0x6740cc(698)],video:["onPlay",_0x6740cc(617),_0x6740cc(585),_0x6740cc(549),_0x6740cc(698),_0x6740cc(685),"onUserAction","onStop",_0x6740cc(648)],map:["onMarkerTap",_0x6740cc(596),_0x6740cc(488),_0x6740cc(694),_0x6740cc(690)]},exports.interfacesForTransform={confirm:_0x6740cc(646),saveImage:_0x6740cc(652),connectBLEDevice:_0x6740cc(651),disconnectBLEDevice:_0x6740cc(540),scan:"scanCode",setClipboard:_0x6740cc(598),getClipboard:_0x6740cc(532),getSelectedTextRange:_0x6740cc(505),hideKeyboard:_0x6740cc(664),compressVideo:_0x6740cc(606),saveFileToDisk:_0x6740cc(492),addPhoneRepeatCalendar:_0x6740cc(653),stopAccelerometer:_0x6740cc(519)};
|
|
1
|
+
var _0x474750=_0x3c12;function _typeof(e){var t=_0x3c12;return(_typeof=t(330)==typeof Symbol&&"symbol"==typeof Symbol[t(203)]?function(e){return typeof e}:function(e){var o=t;return e&&o(330)==typeof Symbol&&e[o(272)]===Symbol&&e!==Symbol.prototype?o(212):typeof e})(e)}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,o){for(var t=_0x3c12,n=0;n<o.length;n++){var a=o[n];a[t(180)]=a[t(180)]||!1,a.configurable=!0,t(321)in a&&(a.writable=!0),Object.defineProperty(e,_toPropertyKey(a[t(218)]),a)}}function _createClass(e,o,t){return o&&_defineProperties(e[_0x3c12(346)],o),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var o=_0x3c12,e=_toPrimitive(e,o(287));return o(212)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x3c12;if(t(269)!=_typeof(e)||!e)return e;var n=e[Symbol[t(233)]];if(void 0===n)return(t(287)===o?String:Number)(e);n=n[t(168)](e,o||t(237));if("object"!=_typeof(n))return n;throw new TypeError(t(275))}function _0x3c12(e,o){var t=_0x43dd();return(_0x3c12=function(e,o){return t[e-=135]})(e,o)}function _0x43dd(){var e=["getDirectivesReg","compressImage","onRenderStart",".ttml","onAnimationEnd","onAudioInterruptionEnd",".acss","createRtcRoomContext","projectFileSuffix","navigateBackSmartProgram","addTemplate","showModal","offWindowResize","onAnimationIteration","onMemoryWarning","onBackgroundAudioPlay","1304150aFoVws","updateBookshelfReadTime","setMetaKeywords","chooseAlipayContact","deleteTemplate","call","openReplyEditor","getRecorderManager","setCanPullDown","saveFile","weChat","getSwanId","onError","list","invalidApis","windowItems","touchMove","enumerable","concat","onAudioInterruptionBegin","mute",".css","arrayBufferToBase64","onScroll","onLoad",".wxss","onBlur","hideKeyboard","stopLocationUpdate","278632SZvQHR","__esModule","4UHFVGX","tap","setNavigationBar","tagEventToTransform","onChange","closeReplyEditor","pauseBackgroundAudio","Applets","wxs","iterator","Alipay","8175805KPEzXk","getServerTime","tt:","datePicker","qa:","Baidu","628RbLlJS","symbol","_appletType","createBLEConnection","appletType","directivesPrefix","onFocus","key","pauseVoice","setTabBarStyle","bindwaiting","stopRecord","chooseCity","SDKVersion","getUserInfo","base64ToArrayBuffer","block-size","deletesitemap","setDocumentTitle","submitresource","deleteBookshelf","wx:","toPrimitive","commonOnEvents","getRunScene","polygons","default","onScrollToLower","insertCalendar","hideBackHome","subscribeService","iconPath","setTopBarText","6BdgxnV","requestHwPayment","offAudioInterruptionEnd",".wxs","text","createAnimation","stopAccelerometer","navigationBarTitleText","playBackgroundAudio","saveImageToPhotosAlbum","insertBookshelf","onPause","nextTick","getTemplateLibraryList","setTabBarItem","resetConfig","isLoginSync","onFirstAppear","selectedIconPath","getRealtimeLogManager","getAppIdSync","setEnableDebug","onToBindWithTagEvents","onConfirm","project.swan.json","object","saveFileToDisk","compressVideo","constructor","closeCommunityEditor","Headline","@@toPrimitive must return a primitive value.","startLocationUpdateBackground","onScale","showTabBarRedDot","onWindowResize","createOffscreenCanvas","onURLQueryChange","getunionid","stopBackgroundAudio","offMemoryWarning",".sjs","createInnerAudioContext","string","onFullScreenChange","tablebarListItems","addSupportTypes","getSelectedTextRange","1692gLLDUV","setBackgroundColor","onUserAction","interfacesForTransform","offSocketClose","project.config.json","7744muIaoK","enablePullDownRefresh","offSocketMessage","getTemplateLibraryById","shareFile","navigateToSmartProgram","3125633JtAgFV","988956VGpvlh","touchStart","setWifiList","startLocationUpdate","startWifi","submitsitemap","offLocationChange","minProgramLanguage","hideToast","onInput","chooseMessageFile","getBackgroundAudioManager","setMetaDescription","offSocketError","tablebarItems","playVoice","value","setClipboardData","onAppear","onBackgroundAudioPause","import-sjs","onAnimationStart","vibrate","hideHomeButton","onSubmit","function","specialTag","onDisappear","closeBLEConnection","rsa","getTemplateList","stopVoice","color","getSystemRiskInfo","onEnded","setLocatedCity","onMarkerTap","bindchange","onRegionChange","scanCode","setPageInfo","prototype","block-color","createAudioContext","onCalloutTap","configBasenameArray","offAudioInterruptionBegin",".ttss","showNavigationBarLoading","onShareAppMessage",".swan","quickapp.config.json","onLocationChange","8480jNynsH",".axml","createARCameraContext","onControlTap","bindanimationfinish","navigateToBookshelf","getAccountInfoSync","sendTemplateMessage","defineProperty"];return(_0x43dd=function(){return e})()}(()=>{for(var e=_0x3c12,o=_0x43dd();;)try{if(283827==-parseInt(e(192))*(parseInt(e(194))/2)+parseInt(e(305))/3+parseInt(e(211))/4*(parseInt(e(138))/5)+parseInt(e(244))/6*(-parseInt(e(304))/7)+-parseInt(e(298))/8*(parseInt(e(292))/9)+parseInt(e(163))/10+parseInt(e(205))/11)break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x474750(146)](exports,_0x474750(193),{value:!0}),exports.interfacesForTransform=exports[_0x474750(266)]=exports[_0x474750(197)]=exports[_0x474750(234)]=exports[_0x474750(201)]=exports.tablebarListItems=exports[_0x474750(319)]=exports[_0x474750(178)]=exports[_0x474750(350)]=exports[_0x474750(331)]=exports[_0x474750(216)]=exports.projectFileSuffix=exports.minProgramLanguage=exports[_0x474750(177)]=void 0,exports[_0x474750(177)]=[_0x474750(226),_0x474750(185),_0x474750(152),_0x474750(182),_0x474750(246),_0x474750(351),_0x474750(265),_0x474750(313),_0x474750(353),"hideNavigationBarLoading","setBackgroundTextStyle",_0x474750(293),_0x474750(278),_0x474750(220),_0x474750(258),"hideTabBarRedDot",_0x474750(249),_0x474750(256),"getMenuButtonBoundingClientRect",_0x474750(148),_0x474750(271),_0x474750(336),"setInnerAudioOption",_0x474750(320),_0x474750(219),"getAvailableAudioSources",_0x474750(286),_0x474750(348),_0x474750(283),"seekBackgroundAudio",_0x474750(252),_0x474750(200),"onBackgroundAudioStop",_0x474750(162),_0x474750(324),"getBackgroundAudioPlayerState",_0x474750(316),_0x474750(222),"startRecord",_0x474750(170),_0x474750(191),_0x474750(276),_0x474750(308),_0x474750(137),_0x474750(311),"getClipboardData",_0x474750(307),_0x474750(309),"stopWifi",_0x474750(270),_0x474750(280),_0x474750(161),_0x474750(284),_0x474750(263),_0x474750(328),_0x474750(243),_0x474750(279),_0x474750(159),_0x474750(315),"checkSession",_0x474750(225),_0x474750(245),_0x474750(144),_0x474750(264),_0x474750(235),_0x474750(224),_0x474750(240),_0x474750(196),_0x474750(166),_0x474750(223),"onLocatedComplete",_0x474750(340),"regionPicker",_0x474750(208),"calculateRoute","optionsSelect","multiLevelSelect",_0x474750(171),_0x474750(296),_0x474750(300),"offSocketOpen",_0x474750(318),_0x474750(183),_0x474750(351),"offAudioInterruptionEnd",_0x474750(182),_0x474750(152),_0x474750(327),"watchShake",_0x474750(206),"showAuthGuide",_0x474750(334),"getURLQuery","setURLQuery",_0x474750(281),"ai",_0x474750(140),"createAnimationVideo","createLivePlayerContext",_0x474750(154),"getEnvInfoSync",_0x474750(282),_0x474750(260),"requestPolymerPayment",_0x474750(345),_0x474750(317),_0x474750(165),_0x474750(229),"loadSubPackage","reportAnalytics",_0x474750(338),_0x474750(241),_0x474750(254),_0x474750(231),"queryBookshelf",_0x474750(164),_0x474750(143),_0x474750(174),_0x474750(354),"openShare",_0x474750(302),_0x474750(303),_0x474750(156),"openCommunityEditor",_0x474750(273),_0x474750(169),_0x474750(199),_0x474750(230),"deleteresource",_0x474750(310),_0x474750(228),_0x474750(257),_0x474750(301),_0x474750(157),_0x474750(335),_0x474750(167),_0x474750(145)],exports[_0x474750(312)]={qa:"quickapp",wx:_0x474750(173),swan:_0x474750(210),my:_0x474750(204),tt:_0x474750(274)},exports[_0x474750(155)]={qa:{hxml:".qxml",css:".css",hjs:".qjs"},wx:{hxml:".wxml",css:_0x474750(188),hjs:_0x474750(247)},swan:{hxml:_0x474750(135),css:_0x474750(184),hjs:_0x474750(285)},my:{hxml:_0x474750(139),css:_0x474750(153),hjs:_0x474750(285)},tt:{hxml:_0x474750(150),css:_0x474750(352),hjs:_0x474750(285)}},exports[_0x474750(216)]={qa:_0x474750(209),wx:_0x474750(232),swan:"s-",my:"a:",tt:_0x474750(207)},exports[_0x474750(331)]={wx:_0x474750(202),swan:_0x474750(325),my:_0x474750(325),tt:null},exports.configBasenameArray=[_0x474750(297),_0x474750(268)];var configBasename={qa:_0x474750(136),wx:_0x474750(297),swan:"project.swan.json",my:null,tt:_0x474750(297)},addSupportTypes=(exports[_0x474750(178)]={titleBarColor:"navigationBarBackgroundColor",pullRefresh:_0x474750(299),defaultTitle:_0x474750(251)},exports[_0x474750(319)]={textColor:_0x474750(337),items:_0x474750(176)},exports[_0x474750(289)]={name:_0x474750(248),icon:_0x474750(242),activeIcon:_0x474750(262)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x474750;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:t(215),get:function(){return n[t(213)]},set:function(e){var o=t;n.resetConfig(e),n[o(213)]=e}},{key:t(259),value:function(e){var o=t;n.configBasename=configBasename[e],n[o(290)]=addSupportTypes[e]}},{key:t(147),value:function(e){var o=t;return new RegExp("^"[o(181)](exports[o(216)][e],".*"))}}])})();exports[_0x474750(201)]=Applets,exports[_0x474750(234)]=[_0x474750(306),_0x474750(179),"touchEnd","touchCancel",_0x474750(195),"longTap"],exports[_0x474750(197)]={swiper:{onAnimationEnd:_0x474750(142)},video:{onLoading:_0x474750(221)},checkbox:{onChange:_0x474750(342)},slider:{"handle-size":_0x474750(227),handleSize:"block-size","handle-color":_0x474750(347),handleColor:"block-color"},map:{polygon:_0x474750(236)}},exports[_0x474750(266)]={view:["onTransitionEnd",_0x474750(160),_0x474750(326),_0x474750(151),_0x474750(323),_0x474750(332),_0x474750(261)],"movable-view":["onChange",_0x474750(277),"onChangeEnd"],"scroll-view":["onScrollToUpper",_0x474750(238),_0x474750(186)],swiper:[_0x474750(198),"onTransition"],"checkbox-group":[_0x474750(198)],form:[_0x474750(329),"onReset"],input:[_0x474750(314),_0x474750(217),_0x474750(189),_0x474750(267)],picker:[_0x474750(198)],"picker-view":["onChange"],"radio-group":[_0x474750(198)],slider:[_0x474750(198),"onChanging"],switch:[_0x474750(198)],textarea:["onInput",_0x474750(217),_0x474750(189),_0x474750(267)],image:[_0x474750(187),_0x474750(175)],video:["onPlay",_0x474750(255),_0x474750(339),"onTimeUpdate",_0x474750(175),_0x474750(288),_0x474750(294),"onStop",_0x474750(149)],map:[_0x474750(341),_0x474750(349),_0x474750(141),_0x474750(343),"onPanelTap"]},exports[_0x474750(295)]={confirm:_0x474750(158),saveImage:_0x474750(253),connectBLEDevice:_0x474750(214),disconnectBLEDevice:_0x474750(333),scan:_0x474750(344),setClipboard:_0x474750(322),getClipboard:"getClipboardData",getSelectedTextRange:_0x474750(190),hideKeyboard:_0x474750(291),compressVideo:_0x474750(271),saveFileToDisk:_0x474750(172),addPhoneRepeatCalendar:_0x474750(239),stopAccelerometer:_0x474750(250)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4adf84=_0x1322,path=((()=>{for(var e=_0x1322,t=_0x136c();;)try{if(297233==+parseInt(e(417))*(parseInt(e(392))/2)+parseInt(e(388))/3*(-parseInt(e(370))/4)+parseInt(e(451))/5+-parseInt(e(379))/6+parseInt(e(428))/7+-parseInt(e(362))/8*(-parseInt(e(399))/9)+-parseInt(e(389))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x4adf84(445)](exports,_0x4adf84(452),{value:!0}),exports[_0x4adf84(454)]=exports[_0x4adf84(390)]=exports[_0x4adf84(455)]=exports[_0x4adf84(335)]=exports[_0x4adf84(453)]=exports.projectConfigFile=exports[_0x4adf84(338)]=exports.changeAppJsonItem=exports[_0x4adf84(441)]=exports[_0x4adf84(354)]=exports[_0x4adf84(398)]=exports[_0x4adf84(386)]=exports.copyDir=exports.insertStr=exports[_0x4adf84(341)]=exports[_0x4adf84(350)]=void 0,require(_0x4adf84(383))),fs=require("fs"),importVisitor_1=require("../parse/importVisitor"),_require=require(_0x4adf84(436)),create=_require[_0x4adf84(440)],fileHandle_1=require("../features/fileHandle"),commonConfig_1=require(_0x4adf84(352)),transformReport=require(_0x4adf84(377)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){var o=_0x4adf84;thirdComponents=[],originPtahObject[o(405)]=e,originPtahObject[o(396)]=t}function replacepos(e,t,o,n){var a=_0x4adf84;return e[a(359)](0,t)+n+e[a(359)](o)}function insertStr(e,t,o){var n=_0x4adf84;return e[n(374)](0,t)+o+e[n(374)](t)}function copyDir(e,t){var o=_0x4adf84,n=2<arguments[o(420)]&&void 0!==arguments[2]&&arguments[2],a=3<arguments[o(420)]&&void 0!==arguments[3]&&arguments[3];try{fs[o(328)](t)||fs[o(382)](t),a?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x4adf84,n=path[o(381)](t,o(438)),a=JSON[o(447)](fs.readFileSync(n,{encoding:o(412)})),a=(a.display.pages[o(423)][o(406)]=e.orientation,a.icon=a[o(456)]+path.basename(e[o(425)]),a.package=e[o(356)],a[o(329)]=e.appName,a[o(368)]=e[o(368)],a[o(442)]=e[o(442)],JSON[o(380)](a,null,2)),n=(fs[o(439)](n,a),path[o(381)](t,o(423),o(397))),a=(a=fs.readFileSync(n,{encoding:o(412)}))[o(409)](o(410),e[o(331)]);fs[o(439)](n,a),fs.existsSync(path[o(381)](t,o(351)))||fs[o(382)](path[o(381)](t,"Common")),copyFile(path.join(t,o(351),path[o(432)](e[o(425)])),e[o(425)])}function _copyH5Pragram(a,i){try{fs.readdirSync(a).forEach(function(e){var t=_0x1322,o=path[t(381)](a,e),e=path[t(381)](i,e),n=fs[t(367)](o);n[t(345)]()&©File(e,o),n.isDirectory()&©Dir(o,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(i,r){var s=_0x4adf84,p=2<arguments[s(420)]&&void 0!==arguments[2]&&arguments[2];try{fs.readdirSync(i)[s(393)](function(e){var t=s,o=path.join(i,e),n=path[t(381)](r,e),a=fs.statSync(o);a[t(345)]()&&(copyFile(n,o),!p)&&dealWithFile(n,o),a[t(363)]()&&o!==t(344)&&"miniprogram_npm"!==o&&("node_modules"===e?copyDir(o,path[t(381)](r,t(342)),!0):copyDir(o,n,p))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x4adf84,n=2<arguments[e(420)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(373)][e(355)],a=path[e(378)](t);switch(a){case".js":modifyFileContent(t,o,".js",n);break;case e(413):modifyFileContent(t,o,e(413));break;default:var i=[commonConfig_1.Applets[e(355)]];(i=commonConfig_1.Applets.addSupportTypes?i[e(430)](commonConfig_1[e(373)][e(414)]):i).forEach(function(e){dealWithMainFile(t,o,a,e)})}}function dealWithMainFile(e,t,o,n){var a=_0x4adf84,i=commonConfig_1[a(366)][n];switch(o){case i[a(418)]:var r=e[a(409)](o,a(422));modifyFile(e,r,i[a(418)],t,n);break;case i[a(449)]:r=e[a(409)](o,a(391));modifyFile(e,r,i.css,null,n);break;case i[a(411)]:if(!i[a(411)])return;r=e[a(409)](o,".hjs");modifyFile(e,r,i[a(411)],t,n)}}function modifyFile(e,t,o,n){var a=_0x4adf84,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:commonConfig_1[a(373)][a(355)];try{fs[a(340)](e,t),modifyFileContent(t,n,o,i)}catch(e){throw console[a(433)](e),e}}function modifyFileContent(e,t,o){var n=_0x4adf84,a=3<arguments[n(420)]&&void 0!==arguments[3]?arguments[3]:commonConfig_1.Applets[n(355)];try{var i,r=fs[n(424)](e,{encoding:n(412)}).toString(),s=commonConfig_1[n(366)][a];switch(o){case s[n(418)]:r=fileHandle_1[n(364)](e,r,t,a),"tt"===a&&(r=fileHandle_1[n(364)](e,r,t,"wx"));break;case s[n(411)]:var p=create(e,r),r=p.getText(),f=importVisitor_1[n(333)](r,null,!0,a)[n(419)](function(e){var t=n;return e[t(400)]===t(385)});r=fileHandle_1[n(347)](f,p,r,t,a);break;case s[n(449)]:r=fileHandle_1.handleWxssImport(e,r,a),"tt"===a&&(r=fileHandle_1[n(415)](e,r,"wx"));break;case n(339):r=fileHandle_1[n(403)](e,t,r,a),"tt"===a&&(r=fileHandle_1[n(403)](e,t,r,"wx"));break;case".json":r&&((i=JSON[n(447)](r)).usingComponents&&handleUsingComponents(i[n(360)]),"my"===commonConfig_1.Applets.appletType&&changeAppJsonItem(i,commonConfig_1.windowItems),r=JSON[n(380)](i,null,2))}fs[n(439)](e,r)}catch(e){throw e}}function _0x136c(){var e=["type","util","isArray","transformJsFile","widgets","input","orientation",'{"locale": "zh-cn"}',"window","replace","helloUxStr","hjs","utf-8",".json","addSupportTypes","handleWxssImport","writeFile","687WyynbY","hxml","filter","length","entry",".hxml","Hello","readFileSync","iconPath","ascf.config.json","locale","1405747EYDAGW","assign","concat","require('./util/apiadapter4alipay.js');\r\n","basename","error","../lib/locale.json","english","../common/textDocument","apiadapter4alipay.js","manifest.json","writeFileSync","create","copyFile","versionCode","unlinkSync","swan","defineProperty","tablebarItems","parse","target","css","miniProgramProject","2471025Xqyvam","__esModule","createDirs","setLanguage","getGlobleOutPutPath","icon","tablebarListItems","zh-cn","existsSync","name","insertStr","webUrl","configBasename","getImportRules","split","createTransformReportFile","toString","packOptions","appJsonFile",".js","renameSync","replacepos","miniprogram_npm","windowItems","node_modules","isFile","transform.log","transformWxsFilePath","list","toLowerCase","setOriginPtahObject","Common","./commonConfig","projectConfigFile","copyConfigFiles","appletType","packageName","log","srcRootPath","substring","usingComponents","dirname","2248EQoUob","isDirectory","handleWxmlFile","readdirSync","projectFileSuffix","statSync","versionName","app.js","1054796mOpWAo","app.json","navigateToMiniProgramAppIdList","Applets","slice","push","tabBar","../features/transformReport","extname","2520072rooXeU","stringify","join","mkdirSync","path","lib","fileImport","handleConfigInfo","VSCODE_NLS_CONFIG","3hvXpPY","1061720OMjxBl","adaptApiFile",".css","586gINthP","forEach","env","platformFeature","output","hello.ux","transformNodeModuleComponent","6111RxiPAE"];return(_0x136c=function(){return e})()}function dealWithNodeModuleComponent(t,o){var e=_0x4adf84,n=fs[e(367)](t);n[e(345)]()&&dealWithFile(t,o),n[e(363)]()&&fs[e(365)](t)[e(393)](function(e){dealWithNodeModuleComponent(path.join(t,e),path.join(o,e))})}function transformNodeModuleComponent(){var a=_0x4adf84;thirdComponents[a(393)](function(e){var t,o=a,n=path[o(381)](originPtahObject.output,o(342),e);fs.existsSync(n)&&(t=path[o(381)](originPtahObject.input,o(342),e),fs[o(328)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(381)](originPtahObject.input,o(344),e)))})}function handleUsingComponents(e){var t,o,n=_0x4adf84;for(t in e)e[t]&&(o=e[t][n(334)]("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents.indexOf(o[0])&&thirdComponents[n(375)](o[0])}function copyConfigFiles(o,n){var e=_0x4adf84;try{fs[e(365)](o)[e(393)](function(e){var t=path.join(o,e),e=path.join(n,e);fs.statSync(t).isFile()&©File(e,t)})}catch(e){throw e}}function copyFile(e,t){var o=_0x4adf84;fs[o(439)](e,fs[o(424)](t))}function changeAppJsonItem(e,t){if(e)for(var o in t)e[o]&&(e[t[o]]=e[o],delete e[o])}function appJsonFile(e,t){var o=_0x4adf84,n=JSON[o(447)](fs.readFileSync(path[o(381)](e,o(371)))[o(336)]()),n=(delete n.package,delete n.name,delete n[o(368)],delete n[o(442)],delete n.minPlatformVersion,delete n.icon,delete n[o(400)],changeAppJsonItem(n[o(408)],commonConfig_1[o(343)]),changeAppJsonItem(n[o(376)],commonConfig_1[o(446)]),n[o(376)]&&n.tabBar[o(348)]&&n[o(376)][o(348)][o(393)](function(e){changeAppJsonItem(e,commonConfig_1[o(457)])}),Object[o(429)]({},n)),n=(delete n[o(404)],delete n[o(421)],delete n.debug,delete n[o(372)],-1!==[o(444),"my"].indexOf(commonConfig_1[o(373)][o(355)])&&(n[o(395)]={enableNoDeclareCompProp:!0}),-1!==["my"].indexOf(commonConfig_1[o(373)].appletType)&&(n[o(395)].eventTargetKey=o(448)),JSON[o(380)](n,null,2));fs.writeFileSync(path[o(381)](e,o(371)),n)}function projectConfigFile(e){var t=_0x4adf84,o={},n=(commonConfig_1.Applets[t(332)]?fs[t(328)](path[t(381)](e,commonConfig_1[t(373)].configBasename))&&(o=JSON[t(447)](fs[t(424)](path[t(381)](e,commonConfig_1[t(373)][t(332)]))[t(336)]())):o={},{ascfRoot:commonConfig_1[t(373)][t(358)],packOptions:{ignore:[]}}),o=(n[t(337)]=o.packOptions,JSON.stringify(n,null,2));commonConfig_1[t(373)].configBasename&&fs[t(328)](path[t(381)](e,commonConfig_1[t(373)][t(332)]))&&fs[t(443)](path[t(381)](e,commonConfig_1[t(373)][t(332)])),fs[t(416)](path[t(381)](e,t(426)),o,function(e){e&&console[t(357)](e)})}function mkdirsSync(e){var t=_0x4adf84;return!!fs[t(328)](e)||(mkdirsSync(path[t(361)](e))?(fs[t(382)](e),!0):void 0)}function createDirs(e,t){var o=_0x4adf84;o(420);fs[o(328)](e)||mkdirsSync(e),fs[o(328)](path[o(381)](e,t))||mkdirsSync(path[o(381)](e,t))}function _0x1322(e,t){var o=_0x136c();return(_0x1322=function(e,t){return o[e-=327]})(e,t)}function createTransformReportFile(e,t){var o=_0x4adf84,n=o(346),e=(globleOutPutPath=path[o(381)](e,n),setLanguage(o(450))+t+"\n\n");fs[o(439)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x4adf84,t=(fs[o(328)](path[o(381)](e,o(401)))||fs.mkdirSync(path[o(381)](e,o(401))),copyFile(path[o(381)](e,o(401),"apiadapter4alipay.js"),path[o(381)](t,o(384),o(437))),path[o(381)](e,o(369))),e=fs[o(424)](t,{encoding:"utf-8"}),e=o(431)[o(430)](e);fs[o(439)](t,e)}exports.setOriginPtahObject=setOriginPtahObject,exports[_0x4adf84(341)]=replacepos,exports[_0x4adf84(330)]=insertStr,exports.copyDir=copyDir,exports[_0x4adf84(386)]=handleConfigInfo,exports[_0x4adf84(398)]=transformNodeModuleComponent,exports[_0x4adf84(354)]=copyConfigFiles,exports.copyFile=copyFile,exports.changeAppJsonItem=changeAppJsonItem,exports.appJsonFile=appJsonFile,exports[_0x4adf84(353)]=projectConfigFile,exports[_0x4adf84(453)]=createDirs,exports[_0x4adf84(335)]=createTransformReportFile,exports[_0x4adf84(455)]=getGlobleOutPutPath,exports[_0x4adf84(390)]=adaptApiFile;var lan=JSON[_0x4adf84(447)](process[_0x4adf84(394)][_0x4adf84(387)]||_0x4adf84(407))[_0x4adf84(427)][_0x4adf84(349)](),language=require(_0x4adf84(434));function setLanguage(e,t){var o,n=_0x4adf84;return language[e]?(o=lan===n(327)?language[e].chinese:language[e][n(435)],Array[n(402)](t)&&t[n(393)](function(e,t){o=o[n(409)]("${"+(t+1)+"}",e)}),o):e}exports[_0x4adf84(454)]=setLanguage;
|
|
1
|
+
var _0x3c4b94=_0x2397;function _0x24c1(){var e=["transformNodeModuleComponent","hello.ux","output",".json",".hjs","iconPath","338712yvAVAS","mkdirSync",".js","assign","handleWxssImport","939944SGzQKj","835132GfrfTq","lib","handleWxmlFile","../lib/locale.json","setOriginPtahObject","isDirectory","statSync","target","widgets","webUrl","unlinkSync","concat","isArray","createDirs","toLowerCase","basename","addSupportTypes","appJsonFile","entry","versionName","replacepos","stringify","forEach",".hxml","navigateToMiniProgramAppIdList","copyFile","toString","Common","readdirSync","app.js","Applets","join","getImportRules","locale","slice","substring","transformJsFile","VSCODE_NLS_CONFIG","name","fileImport","hjs","windowItems","package","transform.log","1202139FZTxKB","replace","__esModule","node_modules","1315615aalpAE","icon","length","../features/fileHandle","copyConfigFiles","miniprogram_npm","chinese","adaptApiFile","isFile","../parse/importVisitor","tabBar","createTransformReportFile","appletType","indexOf","filter","orientation","window","ascf.config.json","minPlatformVersion","changeAppJsonItem","path","projectConfigFile","app.json","eventTargetKey","writeFileSync","versionCode","insertStr","projectFileSuffix","326452lpTZlC","28TWGPRL","utf-8","existsSync","push","debug","type","210564UeSJMV","list","configBasename","usingComponents","log","tablebarItems","util","getGlobleOutPutPath","srcRootPath","helloUxStr","../common/textDocument","dirname","display","readFileSync","Hello","parse","copyDir","platformFeature","css","create","defineProperty","99ZJFfVj","renameSync","handleConfigInfo",".css","input","english","tablebarListItems"];return(_0x24c1=function(){return e})()}(()=>{for(var e=_0x2397,t=_0x24c1();;)try{if(309866==-parseInt(e(539))+-parseInt(e(580))/2+-parseInt(e(507))/3+-parseInt(e(586))/4+parseInt(e(511))/5+parseInt(e(546))/6*(-parseInt(e(540))/7)+-parseInt(e(585))/8*(-parseInt(e(567))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x3c4b94(566)](exports,_0x3c4b94(509),{value:!0}),exports.setLanguage=exports.adaptApiFile=exports.getGlobleOutPutPath=exports[_0x3c4b94(522)]=exports[_0x3c4b94(599)]=exports[_0x3c4b94(532)]=exports[_0x3c4b94(603)]=exports[_0x3c4b94(530)]=exports[_0x3c4b94(611)]=exports[_0x3c4b94(515)]=exports[_0x3c4b94(574)]=exports[_0x3c4b94(569)]=exports[_0x3c4b94(562)]=exports.insertStr=exports[_0x3c4b94(606)]=exports.setOriginPtahObject=void 0;var path=require(_0x3c4b94(531)),fs=require("fs"),importVisitor_1=require(_0x3c4b94(520)),_require=require(_0x3c4b94(556)),create=_require[_0x3c4b94(565)],fileHandle_1=require(_0x3c4b94(514)),commonConfig_1=require("./commonConfig"),transformReport=require("../features/transformReport"),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){thirdComponents=[],originPtahObject[_0x3c4b94(571)]=e,originPtahObject.output=t}function replacepos(e,t,o,n){var i=_0x3c4b94;return e[i(498)](0,t)+n+e[i(498)](o)}function insertStr(e,t,o){var n=_0x3c4b94;return e[n(497)](0,t)+o+e[n(497)](t)}function copyDir(e,t){var o=_0x3c4b94,n=2<arguments[o(513)]&&void 0!==arguments[2]&&arguments[2],i=3<arguments[o(513)]&&void 0!==arguments[3]&&arguments[3];try{fs[o(542)](t)||fs[o(581)](t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x3c4b94,n=path[o(617)](t,"manifest.json"),i=JSON[o(561)](fs[o(559)](n,{encoding:o(541)})),i=(i[o(558)].pages[o(560)][o(526)]=e[o(526)],i[o(512)]=i[o(512)]+path[o(601)](e[o(579)]),i[o(505)]=e.packageName,i.name=e.appName,i.versionName=e[o(605)],i[o(536)]=e[o(536)],JSON[o(607)](i,null,2)),n=(fs.writeFileSync(n,i),path.join(t,"Hello",o(575))),i=(i=fs[o(559)](n,{encoding:o(541)}))[o(508)](o(555),e[o(595)]);fs[o(535)](n,i),fs[o(542)](path[o(617)](t,o(613)))||fs[o(581)](path.join(t,o(613))),copyFile(path[o(617)](t,o(613),path[o(601)](e[o(579)])),e[o(579)])}function _copyH5Pragram(i,a){var r=_0x3c4b94;try{fs[r(614)](i)[r(608)](function(e){var t=r,o=path[t(617)](i,e),e=path[t(617)](a,e),n=fs[t(592)](o);n[t(519)]()&©File(e,o),n.isDirectory()&©Dir(o,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(a,r){var c=_0x3c4b94,s=2<arguments[c(513)]&&void 0!==arguments[2]&&arguments[2];try{fs[c(614)](a)[c(608)](function(e){var t=c,o=path[t(617)](a,e),n=path[t(617)](r,e),i=fs.statSync(o);i[t(519)]()&&(copyFile(n,o),!s)&&dealWithFile(n,o),i[t(591)]()&&o!==t(510)&&"miniprogram_npm"!==o&&(e===t(510)?copyDir(o,path[t(617)](r,t(516)),!0):copyDir(o,n,s))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x3c4b94,n=2<arguments[e(513)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(616)][e(523)],i=path.extname(t);switch(i){case e(582):modifyFileContent(t,o,e(582),n);break;case".json":modifyFileContent(t,o,e(577));break;default:var a=[commonConfig_1[e(616)][e(523)]];(a=commonConfig_1[e(616)][e(602)]?a.concat(commonConfig_1.Applets[e(602)]):a).forEach(function(e){dealWithMainFile(t,o,i,e)})}}function dealWithMainFile(e,t,o,n){var i=_0x3c4b94,a=commonConfig_1[i(538)][n];switch(o){case a.hxml:var r=e[i(508)](o,i(609));modifyFile(e,r,a.hxml,t,n);break;case a[i(564)]:r=e[i(508)](o,i(570));modifyFile(e,r,a.css,null,n);break;case a[i(503)]:if(!a[i(503)])return;r=e[i(508)](o,i(578));modifyFile(e,r,a[i(503)],t,n)}}function modifyFile(e,t,o,n){var i=_0x3c4b94,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:commonConfig_1.Applets[i(523)];try{fs[i(568)](e,t),modifyFileContent(t,n,o,a)}catch(e){throw console.error(e),e}}function modifyFileContent(e,t,o){var n=_0x3c4b94,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:commonConfig_1.Applets[n(523)];try{var a,r=fs[n(559)](e,{encoding:n(541)})[n(612)](),c=commonConfig_1[n(538)][i];switch(o){case c.hxml:r=fileHandle_1[n(588)](e,r,t,i),"tt"===i&&(r=fileHandle_1[n(588)](e,r,t,"wx"));break;case c[n(503)]:var s=create(e,r),r=s.getText(),p=importVisitor_1[n(618)](r,null,!0,i)[n(525)](function(e){var t=n;return e[t(545)]===t(502)});r=fileHandle_1.transformWxsFilePath(p,s,r,t,i);break;case c[n(564)]:r=fileHandle_1[n(584)](e,r,i),"tt"===i&&(r=fileHandle_1.handleWxssImport(e,r,"wx"));break;case n(582):r=fileHandle_1[n(499)](e,t,r,i),"tt"===i&&(r=fileHandle_1.transformJsFile(e,t,r,"wx"));break;case".json":r&&((a=JSON[n(561)](r)).usingComponents&&handleUsingComponents(a[n(549)]),"my"===commonConfig_1[n(616)][n(523)]&&changeAppJsonItem(a,commonConfig_1[n(504)]),r=JSON[n(607)](a,null,2))}fs[n(535)](e,r)}catch(e){throw e}}function dealWithNodeModuleComponent(o,n){var i=_0x3c4b94,e=fs[i(592)](o);e.isFile()&&dealWithFile(o,n),e[i(591)]()&&fs.readdirSync(o)[i(608)](function(e){var t=i;dealWithNodeModuleComponent(path[t(617)](o,e),path[t(617)](n,e))})}function transformNodeModuleComponent(){var i=_0x3c4b94;thirdComponents[i(608)](function(e){var t,o=i,n=path[o(617)](originPtahObject[o(576)],o(516),e);fs[o(542)](n)&&(t=path[o(617)](originPtahObject[o(571)],o(516),e),fs[o(542)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(617)](originPtahObject.input,o(510),e)))})}function handleUsingComponents(e){var t,o,n=_0x3c4b94;for(t in e)e[t]&&(o=e[t].split("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents[n(524)](o[0])&&thirdComponents[n(543)](o[0])}function copyConfigFiles(n,i){var a=_0x3c4b94;try{fs[a(614)](n)[a(608)](function(e){var t=a,o=path[t(617)](n,e),e=path[t(617)](i,e);fs[t(592)](o)[t(519)]()&©File(e,o)})}catch(e){throw e}}function _0x2397(e,t){var o=_0x24c1();return(_0x2397=function(e,t){return o[e-=496]})(e,t)}function copyFile(e,t){fs[_0x3c4b94(535)](e,fs.readFileSync(t))}function changeAppJsonItem(e,t){if(e)for(var o in t)e[o]&&(e[t[o]]=e[o],delete e[o])}function appJsonFile(e,t){var o=_0x3c4b94,n=JSON.parse(fs[o(559)](path.join(e,o(533)))[o(612)]()),n=(delete n[o(505)],delete n[o(501)],delete n[o(605)],delete n[o(536)],delete n[o(529)],delete n[o(512)],delete n.type,changeAppJsonItem(n[o(527)],commonConfig_1.windowItems),changeAppJsonItem(n[o(521)],commonConfig_1[o(551)]),n.tabBar&&n[o(521)][o(547)]&&n.tabBar[o(547)].forEach(function(e){changeAppJsonItem(e,commonConfig_1[o(573)])}),Object[o(583)]({},n)),n=(delete n[o(594)],delete n[o(604)],delete n[o(544)],delete n[o(610)],-1!==["swan","my"][o(524)](commonConfig_1[o(616)][o(523)])&&(n.platformFeature={enableNoDeclareCompProp:!0}),-1!==["my"][o(524)](commonConfig_1[o(616)][o(523)])&&(n[o(563)][o(534)]=o(593)),JSON[o(607)](n,null,2));fs[o(535)](path.join(e,o(533)),n)}function projectConfigFile(e){var t=_0x3c4b94,o={},n=(commonConfig_1[t(616)][t(548)]?fs.existsSync(path[t(617)](e,commonConfig_1[t(616)][t(548)]))&&(o=JSON.parse(fs[t(559)](path[t(617)](e,commonConfig_1[t(616)][t(548)]))[t(612)]())):o={},{ascfRoot:commonConfig_1[t(616)][t(554)],packOptions:{ignore:[]}}),o=(n.packOptions=o.packOptions,JSON.stringify(n,null,2));commonConfig_1[t(616)][t(548)]&&fs[t(542)](path.join(e,commonConfig_1[t(616)][t(548)]))&&fs[t(596)](path.join(e,commonConfig_1[t(616)][t(548)])),fs.writeFile(path[t(617)](e,t(528)),o,function(e){e&&console[t(550)](e)})}function mkdirsSync(e){var t=_0x3c4b94;return!!fs[t(542)](e)||(mkdirsSync(path[t(557)](e))?(fs[t(581)](e),!0):void 0)}function createDirs(e,t){var o=_0x3c4b94;o(513);fs[o(542)](e)||mkdirsSync(e),fs[o(542)](path[o(617)](e,t))||mkdirsSync(path[o(617)](e,t))}function createTransformReportFile(e,t){var o=_0x3c4b94(506),e=(globleOutPutPath=path.join(e,o),setLanguage("miniProgramProject")+t+"\n\n");fs.writeFileSync(globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x3c4b94,t=(fs[o(542)](path[o(617)](e,o(552)))||fs.mkdirSync(path[o(617)](e,o(552))),copyFile(path[o(617)](e,o(552),"apiadapter4alipay.js"),path[o(617)](t,o(587),"apiadapter4alipay.js")),path.join(e,o(615))),e=fs.readFileSync(t,{encoding:o(541)}),e="require('./util/apiadapter4alipay.js');\r\n"[o(597)](e);fs[o(535)](t,e)}exports[_0x3c4b94(590)]=setOriginPtahObject,exports[_0x3c4b94(606)]=replacepos,exports[_0x3c4b94(537)]=insertStr,exports[_0x3c4b94(562)]=copyDir,exports[_0x3c4b94(569)]=handleConfigInfo,exports[_0x3c4b94(574)]=transformNodeModuleComponent,exports[_0x3c4b94(515)]=copyConfigFiles,exports.copyFile=copyFile,exports.changeAppJsonItem=changeAppJsonItem,exports[_0x3c4b94(603)]=appJsonFile,exports[_0x3c4b94(532)]=projectConfigFile,exports.createDirs=createDirs,exports[_0x3c4b94(522)]=createTransformReportFile,exports[_0x3c4b94(553)]=getGlobleOutPutPath,exports[_0x3c4b94(518)]=adaptApiFile;var lan=JSON.parse(process.env[_0x3c4b94(500)]||'{"locale": "zh-cn"}')[_0x3c4b94(496)][_0x3c4b94(600)](),language=require(_0x3c4b94(589));function setLanguage(e,t){var o,n=_0x3c4b94;return language[e]?(o="zh-cn"===lan?language[e][n(517)]:language[e][n(572)],Array[n(598)](t)&&t[n(608)](function(e,t){o=o[n(508)]("${"+(t+1)+"}",e)}),o):e}exports.setLanguage=setLanguage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0xfddd24=_0x127f;function _0x127f(e,r){var n=_0x3f62();return(_0x127f=function(e,r){return n[e-=156]})(e,r)}(()=>{for(var e=_0x127f,r=_0x3f62();;)try{if(272471==-parseInt(e(177))+parseInt(e(160))/2*(parseInt(e(169))/3)+parseInt(e(157))/4+-parseInt(e(171))/5+-parseInt(e(168))/6*(parseInt(e(170))/7)+parseInt(e(167))/8*(parseInt(e(159))/9)+-parseInt(e(173))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0xfddd24(174)),_require=require(_0xfddd24(180)),readJsonFile=_require[_0xfddd24(158)];function _0x3f62(){var e=["srcPath","1972644EQPcfz","readJsonFile","342XXwQlv","1966CrVLjV","oh-package.json5","Output path is not an ASCF project.","resolve","Check success.","error","@atomicservice/ascfapi","53672klyBsT","53304fTikpH","1128UTiWcm","91FcwLhA","1506730NFWYBy","modules","4194290eUvxmW","path","info","dependencies","8973lrhfmb","existsSync","@atomicservice/ascf","../../common/utils"];return(_0x3f62=function(){return e})()}exports.pathValidator=function(e,r){var n,t=_0xfddd24;require("../features/converter.js").checkInputPathFun(e).data.returnCode?(e=path[t(163)](r,"build-profile.json5"),null!=(r=(n=0<(null==(e=fs[t(178)](e)?readJsonFile(e):void 0)||null==(n=e[t(172)])?void 0:n.length)?path[t(163)](r,e.modules[0][t(156)],t(161)):void 0)?readJsonFile(n):void 0)&&r[t(176)]&&(r[t(176)][t(166)]||r.dependencies[t(179)])?console[t(175)](t(164)):console[t(165)](t(162))):console[t(165)]("Input path is not MiniProgram src.")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _typeof(t){var r=_0x5b1c;return(_typeof=r(228)==typeof Symbol&&"symbol"==typeof Symbol[r(237)]?function(t){return typeof t}:function(t){var e=r;return t&&"function"==typeof Symbol&&t[e(220)]===Symbol&&t!==Symbol[e(234)]?e(216):typeof t})(t)}function _classCallCheck(t,e){var r=_0x5b1c;if(!(t instanceof e))throw new TypeError(r(233))}function _0x5b1c(t,e){var r=_0x4a11();return(_0x5b1c=function(t,e){return r[t-=200]})(t,e)}function _defineProperties(t,e){for(var r=_0x5b1c,n=0;n<e[r(212)];n++){var i=e[n];i.enumerable=i.enumerable||!1,i[r(235)]=!0,r(226)in i&&(i[r(219)]=!0),Object[r(218)](t,_toPropertyKey(i[r(204)]),i)}}function _createClass(t,e,r){var n=_0x5b1c;return e&&_defineProperties(t[n(234)],e),r&&_defineProperties(t,r),Object.defineProperty(t,n(234),{writable:!1}),t}function _0x4a11(){var t=["2292820RhNsRy","value","540918BNrlZl","function","character","computeLineOffsets","string","getLineOffsets","Cannot call a class as a function","prototype","configurable","3522925wMLhwC","iterator","positionAt","default","max","124krcNdW","line","charCodeAt","key","uri","object","_lineOffsets","1228554OkKjqx","toPrimitive","51069jMyfSf","call","length","min","_uri","getText","symbol","_content","defineProperty","writable","constructor","908802cMRlxw","56zngHcm","floor","865994eYCKSN"];return(_0x4a11=function(){return t})()}function _toPropertyKey(t){var e=_0x5b1c,t=_toPrimitive(t,"string");return e(216)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x5b1c;if(r(206)!=_typeof(t)||!t)return t;var n=t[Symbol[r(209)]];if(void 0===n)return(r(231)===e?String:Number)(t);n=n[r(211)](t,e||r(239));if(r(206)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var t=_0x5b1c,e=_0x4a11();;)try{if(288438==+parseInt(t(227))+parseInt(t(224))/2+-parseInt(t(210))/3*(parseInt(t(201))/4)+-parseInt(t(225))/5+-parseInt(t(221))/6+-parseInt(t(236))/7+parseInt(t(222))/8*(parseInt(t(208))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var c=_0x5b1c;return _createClass(function t(e,r){var n=_0x5b1c;_classCallCheck(this,t),this._uri=e,this._content=r,this[n(207)]=void 0},[{key:c(215),value:function(){return this[c(217)]}},{key:c(205),value:function(){return this[c(214)]}},{key:"offsetAt",value:function(t){var e,r=c,n=this[r(232)]();return t[r(202)]>=n[r(212)]?this._content.length:t.line<0?0:(e=n[t[r(202)]],n=t[r(202)]+1<n.length?n[t.line+1]:this[r(217)][r(212)],Math[r(200)](Math.min(e+t[r(229)],n),e))}},{key:c(232),value:function(){var t=c;return void 0===this[t(207)]&&(this._lineOffsets=this[t(230)](this[t(217)],!0)),this[t(207)]}},{key:c(230),value:function(t,e,r){for(var n=c,i=(void 0===r&&(r=0),e?[r]:[]),o=0;o<t[n(212)];o++){var a=t[n(203)](o);13!==a&&10!==a||(13===a&&o+1<t[n(212)]&&10===t[n(203)](o+1)&&o++,i.push(r+o+1))}return i}},{key:c(238),value:function(t){var e=c,r=(t=Math[e(200)](Math[e(213)](t,this._content.length),0),this[e(232)]()),n=0,i=r[e(212)];if(0===i)return{line:0,character:t};for(;n<i;){var o=Math[e(223)]((n+i)/2);r[o]>t?i=o:n=o+1}var a=n-1;return{line:a,character:t-r[a]}}}])})();function create(t,e){return new TextDocument(t,e)}module.exports={create:create};
|