@atomicservice/ascf-toolkit 1.0.0 → 1.0.1
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 -0
- 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/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/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/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/index.d.ts +20 -0
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/lib/ascf-compiler/common/extjson-validator.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x236abc=_0x266a;function _regeneratorRuntime(){var c=_0x266a;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(252)],p=e.hasOwnProperty,f=Object[c(341)]||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},o=t[c(416)]||c(346),r=t[c(361)]||c(405),n=t[c(253)]||c(376);function a(e,t,r){return Object[c(341)](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(252)]instanceof y?t:y,t=Object[u(426)](t.prototype),n=new T(n||[]);return f(t,u(441),{value:(a=e,o=r,i=n,s=h,function(e,t){var r=_0x266a;if(s===d)throw Error(r(419));if(s===g){if(r(438)===e)throw t;return{value:l,done:!0}}for(i[r(284)]=e,i[r(272)]=t;;){var n=i[r(315)];if(n){n=function e(t,r){var n=c,a=r[n(284)],o=t[n(416)][a];if(o===l)return r.delegate=null,n(438)===a&&t.iterator.return&&(r[n(284)]="return",r[n(272)]=l,e(t,r),n(438)===r.method)||n(299)!==a&&(r.method=n(438),r.arg=new TypeError(n(335)+a+n(446))),m;a=_(o,t[n(416)],r.arg);if(n(438)===a.type)return r[n(284)]=n(438),r.arg=a[n(272)],r[n(315)]=null,m;o=a[n(272)];return o?o[n(257)]?(r[t[n(274)]]=o[n(379)],r[n(278)]=t[n(429)],"return"!==r[n(284)]&&(r[n(284)]=n(278),r[n(272)]=l),r[n(315)]=null,m):o:(r[n(284)]=n(438),r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(n,i);if(n){if(n===m)continue;return n}}if(r(278)===i[r(284)])i[r(241)]=i[r(318)]=i[r(272)];else if(r(438)===i[r(284)]){if(s===h)throw s=g,i.arg;i[r(264)](i[r(272)])}else"return"===i[r(284)]&&i.abrupt(r(299),i[r(272)]);s=d;n=_(a,o,i);if(r(363)===n[r(210)]){if(s=i.done?g:b,n[r(272)]===m)continue;return{value:n.arg,done:i[r(257)]}}r(438)===n[r(210)]&&(s=g,i[r(284)]="throw",i[r(272)]=n[r(272)])}})}),t}function _(e,t,r){var n=c;try{return{type:"normal",arg:e[n(308)](t,r)}}catch(e){return{type:"throw",arg:e}}}s.wrap=u;var h=c(329),b="suspendedYield",d="executing",g=c(217),m={};function y(){}function i(){}function v(){}var t={},P=(a(t,o,function(){return this}),Object[c(423)]),P=P&&P(P(I([]))),A=(P&&P!==e&&p.call(P,o)&&(t=P),v.prototype=y.prototype=Object[c(426)](t));function x(e){var t=c;[t(278),t(438),t(299)][t(266)](function(t){a(e,t,function(e){return this[_0x266a(441)](t,e)})})}function C(s,u){var t,a=c;f(this,a(441),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,a){var o,i=_0x266a,e=_(s[e],s,r);if(i(438)!==e[i(210)])return(r=(o=e[i(272)])[i(379)])&&i(330)==_typeof(r)&&p[i(308)](r,i(337))?u[i(312)](r.__await)[i(390)](function(e){t("next",e,n,a)},function(e){t(i(438),e,n,a)}):u[i(312)](r)[i(390)](function(e){o[i(379)]=e,n(o)},function(e){return t(i(438),e,n,a)});a(e.arg)}(r,n,e,t)})}return t=t?t[a(390)](e,e):e()}})}function R(e){var t=c,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r[t(324)]=e[2],r[t(445)]=e[3]),this[t(256)][t(398)](r)}function S(e){var t=c,r=e[t(382)]||{};r[t(210)]="normal",delete r[t(272)],e[t(382)]=r}function T(e){var t=c;this[t(256)]=[{tryLoc:t(414)}],e[t(266)](R,this),this[t(377)](!0)}function I(r){var n=c;if(r||""===r){var a,e=r[o];if(e)return e[n(308)](r);if(n(410)==typeof r[n(278)])return r;if(!isNaN(r[n(418)]))return a=-1,(e=function e(){for(var t=n;++a<r.length;)if(p[t(308)](r,a))return e[t(379)]=r[a],e.done=!1,e;return e.value=l,e[t(257)]=!0,e})[n(278)]=e}throw new TypeError(_typeof(r)+n(375))}return i[c(252)]=v,f(A,"constructor",{value:v,configurable:!0}),f(v,"constructor",{value:i,configurable:!0}),i[c(383)]=a(v,n,c(385)),s[c(338)]=function(e){var t=c,e="function"==typeof e&&e[t(236)];return!!e&&(e===i||t(385)===(e[t(383)]||e[t(249)]))},s[c(403)]=function(e){var t=c;return Object[t(345)]?Object[t(345)](e,v):(e[t(358)]=v,a(e,n,t(385))),e[t(252)]=Object[t(426)](A),e},s[c(364)]=function(e){return{__await:e}},x(C[c(252)]),a(C.prototype,r,function(){return this}),s[c(434)]=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(338)](t)?i:i[o(278)]().then(function(e){var t=o;return e[t(257)]?e[t(379)]:i[t(278)]()})},x(A),a(A,n,c(367)),a(A,o,function(){return this}),a(A,c(408),function(){return c(230)}),s[c(239)]=function(e){var t,n=c,a=Object(e),o=[];for(t in a)o[n(398)](t);return o[n(265)](),function e(){for(var t=n;o[t(418)];){var r=o[t(223)]();if(r in a)return e[t(379)]=r,e[t(257)]=!1,e}return e[t(257)]=!0,e}},s[c(347)]=I,T.prototype={constructor:T,reset:function(e){var t=c;if(this.prev=0,this[t(278)]=0,this[t(241)]=this[t(318)]=l,this[t(257)]=!1,this.delegate=null,this[t(284)]="next",this[t(272)]=l,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r[t(388)](0)&&p.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(257)]=!0,this[e(256)][0][e(382)]);if(e(438)===t.type)throw t[e(272)];return this[e(255)]},dispatchException:function(n){var a=c;if(this[a(257)])throw n;var o=this;function e(e,t){var r=a;return i[r(210)]=r(438),i.arg=n,o[r(278)]=e,t&&(o[r(284)]=r(278),o.arg=l),!!t}for(var t=this[a(256)][a(418)]-1;0<=t;--t){var r=this[a(256)][t],i=r[a(382)];if(a(414)===r[a(220)])return e(a(218));if(r[a(220)]<=this[a(313)]){var s=p.call(r,"catchLoc"),u=p.call(r,"finallyLoc");if(s&&u){if(this[a(313)]<r.catchLoc)return e(r.catchLoc,!0);if(this[a(313)]<r[a(324)])return e(r[a(324)])}else if(s){if(this[a(313)]<r[a(243)])return e(r.catchLoc,!0)}else{if(!u)throw Error(a(283));if(this[a(313)]<r[a(324)])return e(r.finallyLoc)}}}},abrupt:function(e,t){for(var r=c,n=this[r(256)][r(418)]-1;0<=n;--n){var a=this[r(256)][n];if(a[r(220)]<=this[r(313)]&&p.call(a,r(324))&&this.prev<a[r(324)]){var o=a;break}}var i=(o=o&&(r(227)===e||r(443)===e)&&o[r(220)]<=t&&t<=o[r(324)]?null:o)?o.completion:{};return i[r(210)]=e,i.arg=t,o?(this[r(284)]=r(278),this[r(278)]=o[r(324)],m):this[r(261)](i)},complete:function(e,t){var r=c;if(r(438)===e[r(210)])throw e[r(272)];return r(227)===e[r(210)]||"continue"===e[r(210)]?this[r(278)]=e[r(272)]:"return"===e[r(210)]?(this.rval=this[r(272)]=e[r(272)],this.method=r(299),this.next=r(218)):r(363)===e[r(210)]&&t&&(this[r(278)]=t),m},finish:function(e){for(var t=c,r=this[t(256)].length-1;0<=r;--r){var n=this[t(256)][r];if(n[t(324)]===e)return this.complete(n[t(382)],n[t(445)]),S(n),m}},catch:function(e){for(var t=c,r=this[t(256)][t(418)]-1;0<=r;--r){var n,a,o=this.tryEntries[r];if(o[t(220)]===e)return n=o[t(382)],t(438)===n[t(210)]&&(a=n[t(272)],S(o)),a}throw Error(t(235))},delegateYield:function(e,t,r){var n=c;return this[n(315)]={iterator:I(e),resultName:t,nextLoc:r},n(278)===this[n(284)]&&(this.arg=l),m}},s}function _typeof(e){var r=_0x266a;return(_typeof=r(410)==typeof Symbol&&"symbol"==typeof Symbol[r(416)]?function(e){return typeof e}:function(e){var t=r;return e&&"function"==typeof Symbol&&e[t(236)]===Symbol&&e!==Symbol[t(252)]?"symbol":typeof e})(e)}function asyncGeneratorStep(e,t,r,n,a,o,i){var s=_0x266a;try{var u=e[o](i),c=u[s(379)]}catch(e){return void r(e)}u[s(257)]?t(c):Promise[s(312)](c)[s(390)](n,a)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x266a,a=u[n(370)](e,s);function o(e){asyncGeneratorStep(a,t,r,o,i,n(278),e)}function i(e){asyncGeneratorStep(a,t,r,o,i,"throw",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=_0x266a;if("undefined"!=typeof Symbol&&null!=e[Symbol[t(416)]]||null!=e[t(346)])return Array[t(260)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,a,o,i=_0x266a,s=i(332)!=typeof Symbol&&e[Symbol.iterator]||e[i(346)];if(s)return a=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s[i(278)]();return n=e.done,e},e:function(e){a=!0,r=e},f:function(){var e=i;try{n||null==s[e(299)]||s[e(299)]()}finally{if(a)throw r}}};if(Array[i(444)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&i(417)==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e[i(418)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError(i(395))}function _unsupportedIterableToArray(e,t){var r,n=_0x266a;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):(r={}[n(408)][n(308)](e)[n(323)](8,-1),n(293)===r&&e[n(236)]&&(r=e[n(236)][n(249)]),n(246)===r||n(225)===r?Array[n(260)](e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(263)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){(null==t||t>e[_0x266a(418)])&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x266a,e=_toPrimitive(e,t(380));return t(290)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x266a;if(r(330)!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return(r(380)===t?String:Number)(e);n=n[r(308)](e,t||r(357));if(r(330)!=_typeof(n))return n;throw new TypeError(r(368))}(()=>{for(var e=_0x266a,t=_0x19f1();;)try{if(206936==-parseInt(e(373))*(-parseInt(e(325))/2)+-parseInt(e(250))/3+-parseInt(e(291))/4*(parseInt(e(247))/5)+-parseInt(e(436))/6*(parseInt(e(366))/7)+-parseInt(e(415))/8+parseInt(e(222))/9+parseInt(e(305))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require(_0x236abc(412)),fs=require("fs"),webpack=require("webpack"),json5=require(_0x236abc(343)),ResourcePlugin=require(_0x236abc(273)),HtmlGeneratorPlugin=require(_0x236abc(421)),ManifestGeneratorPlugin=require(_0x236abc(233)),I18NPlugin=require(_0x236abc(304)),CopyAscfBundlePlugin=require(_0x236abc(297)),_packOptions=require(_0x236abc(353)),_require=require(_0x236abc(351)),clearResource=_require[_0x236abc(296)],IS_PRD=_require[_0x236abc(386)],PROJECT_PATH=_require[_0x236abc(339)],PROJECT_CONFIG=_require[_0x236abc(307)],ASCF_SRC_PATH=_require[_0x236abc(381)],ASCF_BUILD_PATH=_require.ASCF_BUILD_PATH,RAWFILE_DIR=_require[_0x236abc(279)],WebpackTargetPlugin=require(_0x236abc(342)),LoggerPlguin=require(_0x236abc(259)),utils=require(_0x236abc(320)),removeStrictModePlugin=require("../common/remove-strict-mode-plugin"),chalk=require(_0x236abc(348)),ignoreRules=(chalk[_0x236abc(226)]=1,process[_0x236abc(407)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path[_0x236abc(258)](ASCF_SRC_PATH,_0x236abc(303),"dist"),buildProfileJson5Path=path[_0x236abc(312)](PROJECT_PATH,_0x236abc(391));if(!fs.existsSync(buildProfileJson5Path))throw _0x236abc(240);function _0x266a(e,t){var r=_0x19f1();return(_0x266a=function(e,t){return r[e-=210]})(e,t)}var buildProfile=json5[_0x236abc(371)](fs[_0x236abc(406)](buildProfileJson5Path)[_0x236abc(408)]());if(!buildProfile[_0x236abc(372)]||0===buildProfile[_0x236abc(372)][_0x236abc(418)])throw"ERROR: build-profile.json5 file modules is null";var BUILD_PATH=path[_0x236abc(312)](PROJECT_PATH,buildProfile[_0x236abc(372)][0][_0x236abc(427)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x236abc(437),APP=_0x236abc(409),APP_TYPE=_0x236abc(229),PACKAGE_REG_EXP=new RegExp("^(?![0-9\\-_.])[a-zA-Z0-9\\-_.]+(?<![\\-_.])$"),MODULE_REG_EXP=new RegExp(_0x236abc(294));function handleUsingComponents(e,t){var r,n=_0x236abc;if(e)for(var a in e)Object[n(252)][n(254)][n(308)](e,a)&&(r=e[a].trim(),e[a]=utils[n(428)](r,t,ASCF_SRC_PATH))}function readExtJson(){var e,t=_0x236abc,r=path[t(258)](ASCF_SRC_PATH,"ext.json");return fs.existsSync(r)&&((r=(e=JSON.parse(fs[t(406)](r)[t(408)]()))[t(287)])[t(355)]={},r.independentList=[],handingCustomTabBar(r),e[t(287)]=r),e}function checkSubpkgRoot(e){var n=_0x236abc,a=[];e[n(266)](function(e){var t=n,r=e[t(214)]("/")[t(448)](function(e){return e}).join("_");PACKAGE_REG_EXP[t(263)](r)&&MODULE_REG_EXP[t(263)](r)||a.push(t(231)[t(334)](e,t(267)))}),0<a[n(418)]&&(a[n(266)](function(e){console[n(269)](chalk.red(e))}),process[n(399)](1))}function checkTabBarPath(e){var t,i,r=_0x236abc,s=["iconPath",r(422),r(251)],n=(null==(n=e[r(327)])?void 0:n[r(317)])||[],e=e[r(244)]||e[r(401)]||[];n!==[]&&e!==[]&&(checkSubpkgRoot(t=e[r(356)](function(e){return e.root})[r(448)](function(e){return e})),i=[],n[r(266)](function(o){var e=r;t[e(266)](function(n){var a=e;s[a(266)](function(e){var t,r=a;path[r(258)](ASCF_SRC_PATH,null!=(t=o[e])?t:"").startsWith(path[r(258)](ASCF_SRC_PATH,n,"/"))&&i.push(chalk[r(277)](r(212)[r(334)](o.text," ")[r(334)](e," cannot be in the subpackage directory")))})})}),0<i[r(418)])&&(i[r(266)](function(e){var t=r;console[t(269)](chalk[t(277)](e))}),console.error(chalk.red("ERROR: modify app.json tabBar and recompile it")),process[r(399)](1))}function readAppJson(){var r=_0x236abc,e=_defineProperty({},APP,new Map),t=path[r(258)](ASCF_SRC_PATH,"app.json");if(!fs[r(396)](t))throw"ERROR: Can not resolve file : app.json";var n=JSON[r(371)](fs[r(406)](t).toString());checkTabBarPath(n),handleAppType(n),handleUsingComponents(n.usingComponents,t),n[r(355)]={},n.independentList=[];var t=[],a=path[r(258)](ASCF_SRC_PATH,r(369));if(fs[r(396)](a)&&(o=JSON[r(371)](fs[r(406)](a)[r(408)]())).extEnable&&o.appConfig.pages&&Object[r(239)](o[r(287)][r(232)]).length&&(n.pages=o[r(287)][r(232)]),!n[r(232)]||n[r(232)][r(418)]<=0)throw r(431);putPageInfoToEntryList(n[r(232)],"",!1,n,e[APP]);var o,i=["subpackages",r(244)][r(275)](function(e){var t=r;return Object[t(252)][t(254)][t(308)](n,e)});if((t=fs[r(396)](a)&&(o=JSON[r(371)](fs[r(406)](a)[r(408)]()),a=[r(401),r(244)][r(275)](function(e){var t=r;return Object[t(252)].hasOwnProperty.call(o[t(287)],e)}),o[r(336)])&&a&&o[r(287)][a]?o[r(287)][a]:t)[r(418)]){i&&delete n[i];var s,u=_createForOfIteratorHelper(n.subpackages=t);try{for(u.s();!(s=u.n())[r(257)];){var c=s[r(379)],l=new Map;e[c.root]=l,putPageInfoToEntryList(c.pages,c[r(414)],c[r(301)],n,l)}}catch(e){u.e(e)}finally{u.f()}}else if(i){t=n[i],delete n[i];var p,f=_createForOfIteratorHelper(n[r(401)]=t);try{for(f.s();!(p=f.n())[r(257)];){var _=p[r(379)],h=new Map;e[_.root]=h,putPageInfoToEntryList(_[r(232)],_[r(414)],_.independent,n,h)}}catch(e){f.e(e)}finally{f.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x236abc;e[r(210)]=null!=(t=null!=(t=e[r(210)])?t:e[r(394)])?t:APP_TYPE,delete e[r(394)]}function hasCustomTabBar(e){var t=_0x236abc;return(e[t(327)]||{})[t(213)]&&fs[t(396)](path[t(312)](ASCF_SRC_PATH,t(359)))}function handingCustomTabBar(e){var t=_0x236abc;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e.tabBar[t(317)]);try{for(n.s();!(r=n.n())[t(257)];){var a=r[t(379)];if(!e[t(355)][a[t(251)]])throw t(262)+"'".concat(a[t(251)],"', please check tabBar configuration.");e.page[a[t(251)]][t(271)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=_0x236abc,r=0<arguments[t(418)]&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object[t(239)](r)[t(266)](function(e){n[t(398)]({key:e,path:r[e]})}),n}function putPageInfoToEntryList(e,t,r,n,a){var o=_0x236abc;if(e)for(var i in e)if(Object.prototype[o(254)][o(308)](e,i)){var i=path[o(258)](ASCF_SRC_PATH,t,e[i]),s=path[o(402)](ASCF_SRC_PATH,i);if(!_packOptions[o(439)](s,ignoreRules)){var s=s[o(352)](/\\/g,"/"),i=""[o(334)](i,o(302)),u=void 0;try{u=fs[o(396)](i)?JSON[o(371)](fs.readFileSync(i)[o(408)]()):{}}catch(e){throw o(231)[o(334)](i,o(350))}handleUsingComponents(u[o(306)],i),r&&n[o(430)].push(s),n[o(355)][s]=u,t||getUsingComponents(n,"","",a,"page"),getUsingComponents(u,i,s,a,o(355))}}}function getUsingComponents(o,i,e,s,t){var u=_0x236abc,c=5<arguments[u(418)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=o[u(249)];if(o[u(306)])for(var f in o[u(306)])(()=>{var t=u;if(Object.prototype[t(254)][t(308)](o[t(306)],f)){var e=o[t(306)][f],r=utils[t(268)](e,i,ASCF_SRC_PATH,".json"),n=r.filePath,r=r[t(360)],a=path.relative(ASCF_SRC_PATH,n)[t(352)](/\\/g,"/")[t(352)](/\.json/,""),e=r||a;if(o[t(306)][f]=e,!p&&i===n)return p=f;if(c[t(275)](function(e){return e===n}))throw t(392)[t(334)](n);l[t(311)](function(e){return e[t(412)]===path})||l[t(398)]({path:e,key:f,compJsonPath:n});r=JSON[t(371)](fs[t(406)](n)[t(408)]());handleUsingComponents(r.usingComponents,n),getUsingComponents(r,n,e,s,t(288),c.concat([n]))}})();e&&!s.get(e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(276)](e,t))}function getI18NEntry(u){var c=_0x236abc;fs[c(281)](u,function(e,t){var r=c;if(e)throw e;var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n())[r(257)];){var o,i=n[r(379)],s=path[r(258)](u,i)[r(352)](/\\/g,"/");fs[r(433)](s)[r(216)]()&&!/(node_modules)|(\.ascf)/[r(263)](i)&&((o=s.split("/"))[o[r(418)]-1].toLowerCase()===I18N&&I18N_ENTRY[r(398)](s),getI18NEntry(s))}}catch(e){a.e(e)}finally{a.f()}})}function generateEntry(e){var n=_0x236abc,a={},t=e[n(319)],r=[],o=(Object[n(239)](t)[n(265)]()[n(266)](function(e){r[n(398)](t[e])}),a[n(328)]=path[n(312)](ASCF_SRC_PATH,n(384)).replace(/\\/g,"/"),utils[n(242)](r)),i=path[n(312)](ASCF_SRC_PATH,n(413));if(fs[n(396)](i)&&(a["app.css.js"]=path[n(312)](ASCF_SRC_PATH,n(413))),hasCustomTabBar(e[n(374)])){var s,i=path.resolve(ASCF_SRC_PATH,n(359)),u=i[n(352)](/\.hxml$/,n(302)),c=(a["custom-tab-bar/index.pack.js"]=""[n(334)](i,n(404)),_createForOfIteratorHelper(e[n(374)][n(327)][n(317)]));try{for(c.s();!(s=c.n())[n(257)];){var l=s[n(379)];o[n(400)](l[n(251)])&&o[n(400)](l[n(251)])[n(333)].push({path:"custom-tab-bar/index",key:"customTabBar",compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:n(288),compJsonPath:u};t[n(409)][n(276)](n(310),i)}return o[n(266)](function(e,t){var r=n;return a[""[r(334)](t,r(228))]=e.compJsonPath[r(352)](/\.json$/,r(238))}),utils.defFreezeProperty(e,n(248),o),generateWidgetsEntry(a,e),a}function generateWidgetsEntry(a,r){var o,n,i=_0x236abc,e=r[i(374)];r[i(374)]&&e[i(221)]&&((o=e.router.pages)&&Object[i(239)](o)[i(266)](function(e){var t=i,r=o[e],n=r.component,r=(r||console.warn(chalk.yellow("WARNING:Route information in the manifest.json file is incomplete:\n Page '"[t(334)](e,t(442))+"By default, '"[t(334)](n,t(314)))),path[t(258)](ASCF_SRC_PATH,e,n)),e=""[t(334)](path.join(e,n),t(349));if(fs.existsSync(""[t(334)](r,t(420))))a[e]="".concat(r,t(420));else if(!fs[t(396)]("".concat(r,t(238))))throw t(365)[t(334)](r,t(420))}),e=e[i(447)])&&0<e.length&&(r.widgetPathsList=[],n="",e.forEach(function(e){var t=i;n=e[t(412)],r[t(234)].push(path[t(258)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x236abc,t={targets:{node:8}};return{rules:[].concat(_toConsumableArray(utils[e(286)]()),[{test:/\.js$/,use:[{loader:utils[e(432)](e(362)),options:{presets:[[utils[e(432)](e(326)),t]],plugins:[utils[e(432)]("@babel/plugin-transform-modules-commonjs"),utils.loadBabelModule(e(344)),utils[e(432)](e(389))]}},{loader:path[e(312)](__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(312)](__dirname,e(440))},{loader:utils[e(432)](e(362)),options:{presets:[[utils[e(432)](e(326)),t]],plugins:[utils.loadBabelModule(e(425)),removeStrictModePlugin]}},{loader:path[e(312)](__dirname,e(435))},{loader:path[e(312)](__dirname,e(378))}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(432)](e(362)),options:{presets:[[utils[e(432)](e(326)),t]],compact:!1}},{loader:path[e(312)](__dirname,"./hxml-loader")},{loader:path.resolve(__dirname,e(270))}]},{test:/app\.json$/,type:e(215),use:[{loader:path[e(312)](__dirname,e(397))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(312)](__dirname,e(321))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x236abc(354)](e):t)||{}}function _0x19f1(){var e=["node_modules","custom-tab-bar/index","some","resolve","prev","' is used.","delegate","warn","list","_sent","projectComponentsMap","./common/utils","fa-compiler/loader.js","optimization","slice","finallyLoc","314VKwMDr","@babel/preset-env","tabBar","app.js","suspendedStart","object","abrupt","undefined","componentList","concat","The iterator does not provide a '","extEnable","__await","isGeneratorFunction","PROJECT_PATH","route-mapping.json","defineProperty","./plugin/webpack-target/index","json5","@babel/plugin-proposal-class-properties","setPrototypeOf","@@iterator","values","../ascf-compiler/chalk/bundle.cjs",".js"," contains error, please check it.","../common/utils","replace","./common/packoptions-utils","parseIgnoreRules","page","map","default","__proto__","custom-tab-bar/index.hxml","fixEntryPath","asyncIterator","babel-loader","normal","awrap","ERROR: Failed to find the file: ","2880913ixsTXH","Generator","@@toPrimitive must return a primitive value.","ext.json","apply","parse","modules","1299DzjXdX","manifest"," is not iterable","@@toStringTag","reset","./trustlist-js-verify-loader.js","value","string","ASCF_SRC_PATH","completion","displayName","app.json?package=app","GeneratorFunction","IS_PRD","inline-cheap-source-map","charAt","@babel/plugin-transform-runtime","then","build-profile.json5","ERROR: Can not use cyclic dependened component with component path : ","development","appType","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","existsSync","./appjson-loader","push","exit","get","subpackages","relative","mark","?type=component","@@asyncIterator","readFileSync","noDeprecation","toString","app","function","wrap","path","app.css","root","1245272xkyHjO","iterator","number","length","Generator is already running",".ux","./plugin/html-generator-plugin","selectedIconPath","getPrototypeOf","named","@babel/plugin-transform-modules-commonjs","create","srcPath","getProjectAbsPath","nextLoc","independentList","ERROR: app.json doesn't contain any page.","loadBabelModule","lstatSync","AsyncIterator","./path-process-loader.js","6aWIwyv","i18n","throw","isIgnoreFile","./hjs-loader","_invoke","' does not have the component attribute configured. ","continue","isArray","afterLoc","' method","widgets","filter","type","env","ERROR: tabBar ","custom","split","javascript/auto","isDirectory","completed","end","[name]","tryLoc","router","3364533ecLjfi","pop","stop","Set","level","break",".pack.js","webapp","[object Generator]","ERROR: ","pages","./plugin/manifest-generator-plugin","widgetPathsList","illegal catch attempt","constructor","moduleIds",".hxml","keys","ERROR: build-profile.json5 file not found","sent","mergeMap","catchLoc","subPackages","routeMapping","Map","4795AYabUu","components","name","874104vazpUx","pagePath","prototype","toStringTag","hasOwnProperty","rval","tryEntries","done","join","../common/logger-plugin","from","complete","ERROR: Can not resolve tabBar list item : ","test","dispatchException","reverse","forEach"," The subpackage path name does not meet the requirements. Please modify it.","getAbsPath","error","./trustlist-hxml-verify-loader.js","useCustomTabBar","arg","./plugin/resource-plugin","resultName","find","set","red","next","RAWFILE_DIR","miniprogram_npm","readdir","yellow","try statement without catch or finally","method","global","createCSSRule","appConfig","component","WARNING: The build directory is not cleared. Use the -c parameter.","symbol","1396sTbwcr","none","Object","^[a-zA-Z][0-9a-zA-Z_.]*$","async","clearResource","./plugin/copy-bundle-plugin","import-scripts","return","yes","independent",".json",".ascf","./plugin/i18n-transform-plugin","8224330nKjZrS","usingComponents","PROJECT_CONFIG","call"];return(_0x19f1=function(){return e})()}function generateRouteMapping(e){var t=_0x236abc,r=e[t(374)].routeMapping||{},n=path[t(258)](ASCF_SRC_PATH,t(340));if(fs[t(396)](n)){var a=JSON[t(371)](fs[t(406)](n)[t(408)]());if(a)for(var o in a)Object[t(252)].hasOwnProperty[t(308)](a,o)&&(r[o]=a[o])}0<Object[t(239)](r)[t(418)]&&(e[t(374)][t(245)]=r)}function generatePlugins(e,t){var r=_0x236abc;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e.manifest}),new ManifestGeneratorPlugin({manifest:e[r(374)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[r(374)],pagesInfo:e[r(374)][r(355)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e.components}),new webpack.LoaderOptionsPlugin({options:{srcPath:ASCF_SRC_PATH,manifest:e[r(374)],extData:t,components:e[r(248)],projectComponentsMap:e[r(319)],versionNum:e.versionNum,widgetPathsList:e[r(234)],widgetsDependList:e[r(234)],projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[r(374)].usingComponents)}}),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})]}function getResolve(){var e=_0x236abc;return{modules:[path[e(258)](ASCF_SRC_PATH,e(280)),path[e(258)](ASCF_SRC_PATH,e(309)),path.join(__dirname,"..","..",e(309)),path[e(258)](__dirname,"..","..","..","..",e(309))]}}function checkBuildResources(){var e=_0x236abc;(fs[e(396)](ZIP_PATH)||fs.existsSync(BUILD_PATH)||fs[e(396)](ASCF_BUILD_PATH))&&(console[e(316)](chalk[e(282)](e(289))),process[e(399)](1))}function generateConfig(){return _generateConfig[_0x236abc(370)](this,arguments)}function _generateConfig(){var t=_0x236abc;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(403)](function e(){var r,n,a,o=t;return _regeneratorRuntime()[o(411)](function(e){for(var t=o;;)switch(e[t(313)]=e.next){case 0:if(process[t(211)][t(296)]===t(300))return e[t(278)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(278)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),r=readAppJson(),n=readExtJson(),generateRouteMapping(r),a=generateEntry(r),a={mode:IS_PRD?"production":t(393),devtool:!IS_PRD&&t(387),context:ASCF_SRC_PATH,entry:a,output:{path:BUILD_PATH,filename:t(219),publicPath:"/",globalObject:t(285),enabledChunkLoadingTypes:[t(298)]},target:"web",resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r,n),node:{global:!1},stats:t(292),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(295),cacheGroups:{default:!1}}}},IS_PRD||(a[t(322)][t(237)]=t(424)),e[t(331)](t(299),a);case 12:case"end":return e[t(224)]()}},e)})))[t(370)](this,arguments)}module.exports=generateConfig;
|
|
1
|
+
var _0x2ec374=_0x1b52;function _regeneratorRuntime(){var c=_0x1b52;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(337)],p=e[c(485)],f=Object[c(382)]||function(e,t,r){var n=c;e[t]=r[n(385)]},t=c(504)==typeof Symbol?Symbol:{},a=t.iterator||c(506),r=t[c(440)]||c(478),n=t[c(499)]||c(322);function o(e,t,r){return Object[c(382)](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.prototype instanceof v?t:v,t=Object.create(t.prototype),n=new T(n||[]);return f(t,u(492),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x1b52;if(s===d)throw Error(r(452));if(s===g){if("throw"===e)throw t;return{value:l,done:!0}}for(i.method=e,i[r(489)]=t;;){var n=i[r(447)];if(n){n=function e(t,r){var n=c,o=r[n(314)],a=t[n(517)][o];if(a===l)return r[n(447)]=null,n(342)===o&&t[n(517)][n(395)]&&(r.method=n(395),r[n(489)]=l,e(t,r),n(342)===r[n(314)])||n(395)!==o&&(r.method=n(342),r.arg=new TypeError(n(432)+o+n(451))),y;o=_(a,t[n(517)],r[n(489)]);if("throw"===o[n(328)])return r.method="throw",r[n(489)]=o.arg,r[n(447)]=null,y;a=o[n(489)];return a?a[n(371)]?(r[t[n(332)]]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r[n(314)]=n(446),r.arg=l),r[n(447)]=null,y):a:(r[n(314)]=n(342),r[n(489)]=new TypeError(n(435)),r[n(447)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(r(446)===i.method)i[r(488)]=i[r(361)]=i[r(489)];else if(r(342)===i[r(314)]){if(s===h)throw s=g,i[r(489)];i[r(338)](i[r(489)])}else r(395)===i[r(314)]&&i[r(368)]("return",i.arg);s=d;n=_(o,a,i);if(r(427)===n[r(328)]){if(s=i.done?g:m,n.arg===y)continue;return{value:n.arg,done:i[r(371)]}}r(342)===n.type&&(s=g,i[r(314)]=r(342),i[r(489)]=n[r(489)])}})}),t}function _(e,t,r){var n=c;try{return{type:n(427),arg:e.call(t,r)}}catch(e){return{type:n(342),arg:e}}}s[c(407)]=u;var h=c(479),m=c(379),d="executing",g=c(351),y={};function v(){}function i(){}function b(){}var t={},P=(o(t,a,function(){return this}),Object[c(531)]),P=P&&P(P(I([]))),A=(P&&P!==e&&p[c(327)](P,a)&&(t=P),b[c(337)]=v.prototype=Object[c(417)](t));function C(e){var t=c;["next",t(342),t(395)][t(443)](function(t){o(e,t,function(e){return this[_0x1b52(492)](t,e)})})}function x(s,u){var t;f(this,c(492),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x1b52,e=_(s[e],s,r);if(i(342)!==e[i(328)])return(r=(a=e[i(489)])[i(385)])&&"object"==_typeof(r)&&p[i(327)](r,i(318))?u.resolve(r[i(318)])[i(384)](function(e){t(i(446),e,n,o)},function(e){t(i(342),e,n,o)}):u[i(465)](r)[i(384)](function(e){a[i(385)]=e,n(a)},function(e){return t(i(342),e,n,o)});o(e[i(489)])}(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.catchLoc=e[1]),2 in e&&(r[t(365)]=e[2],r[t(494)]=e[3]),this.tryEntries[t(508)](r)}function S(e){var t=c,r=e[t(402)]||{};r[t(328)]=t(427),delete r[t(489)],e.completion=r}function T(e){var t=c;this.tryEntries=[{tryLoc:t(409)}],e[t(443)](R,this),this.reset(!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(327)](r);if("function"==typeof r[n(446)])return r;if(!isNaN(r[n(496)]))return o=-1,(e=function e(){for(var t=n;++o<r[t(496)];)if(p[t(327)](r,o))return e[t(385)]=r[o],e[t(371)]=!1,e;return e[t(385)]=l,e.done=!0,e})[n(446)]=e}throw new TypeError(_typeof(r)+" is not iterable")}return i[c(337)]=b,f(A,c(309),{value:b,configurable:!0}),f(b,c(309),{value:i,configurable:!0}),i[c(470)]=o(b,n,"GeneratorFunction"),s[c(333)]=function(e){var t=c,e="function"==typeof e&&e[t(309)];return!!e&&(e===i||t(473)===(e[t(470)]||e.name))},s[c(524)]=function(e){var t=c;return Object[t(520)]?Object.setPrototypeOf(e,b):(e[t(419)]=b,o(e,n,t(473))),e[t(337)]=Object[t(417)](A),e},s.awrap=function(e){return{__await:e}},C(x[c(337)]),o(x[c(337)],r,function(){return this}),s[c(482)]=x,s.async=function(e,t,r,n,o){var a=c,i=(void 0===o&&(o=Promise),new x(u(e,t,r,n),o));return s[a(333)](t)?i:i[a(446)]()[a(384)](function(e){var t=a;return e[t(371)]?e[t(385)]:i[t(446)]()})},C(A),o(A,n,"Generator"),o(A,a,function(){return this}),o(A,"toString",function(){return"[object Generator]"}),s[c(511)]=function(e){var t,n=c,o=Object(e),a=[];for(t in o)a[n(508)](t);return a[n(532)](),function e(){for(var t=n;a[t(496)];){var r=a[t(510)]();if(r in o)return e.value=r,e[t(371)]=!1,e}return e[t(371)]=!0,e}},s[c(486)]=I,T.prototype={constructor:T,reset:function(e){var t=c;if(this.prev=0,this[t(446)]=0,this[t(488)]=this[t(361)]=l,this[t(371)]=!1,this[t(447)]=null,this[t(314)]=t(446),this.arg=l,this[t(528)][t(443)](S),!e)for(var r in this)"t"===r.charAt(0)&&p[t(327)](this,r)&&!isNaN(+r[t(378)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(371)]=!0,this[e(528)][0].completion);if(e(342)===t[e(328)])throw t[e(489)];return this[e(484)]},dispatchException:function(n){var o=c;if(this[o(371)])throw n;var a=this;function e(e,t){var r=o;return i[r(328)]=r(342),i.arg=n,a[r(446)]=e,t&&(a[r(314)]=r(446),a[r(489)]=l),!!t}for(var t=this[o(528)][o(496)]-1;0<=t;--t){var r=this[o(528)][t],i=r[o(402)];if(o(409)===r[o(346)])return e("end");if(r.tryLoc<=this[o(487)]){var s=p[o(327)](r,o(429)),u=p[o(327)](r,o(365));if(s&&u){if(this[o(487)]<r[o(429)])return e(r[o(429)],!0);if(this.prev<r[o(365)])return e(r[o(365)])}else if(s){if(this[o(487)]<r[o(429)])return e(r[o(429)],!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(487)]<r[o(365)])return e(r[o(365)])}}}},abrupt:function(e,t){for(var r=c,n=this.tryEntries.length-1;0<=n;--n){var o=this[r(528)][n];if(o[r(346)]<=this[r(487)]&&p[r(327)](o,"finallyLoc")&&this[r(487)]<o[r(365)]){var a=o;break}}var i=(a=a&&(r(348)===e||r(406)===e)&&a[r(346)]<=t&&t<=a.finallyLoc?null:a)?a[r(402)]:{};return i[r(328)]=e,i[r(489)]=t,a?(this.method=r(446),this.next=a[r(365)],y):this[r(414)](i)},complete:function(e,t){var r=c;if(r(342)===e[r(328)])throw e.arg;return r(348)===e[r(328)]||r(406)===e.type?this[r(446)]=e[r(489)]:r(395)===e.type?(this[r(484)]=this[r(489)]=e[r(489)],this[r(314)]=r(395),this[r(446)]=r(421)):r(427)===e.type&&t&&(this[r(446)]=t),y},finish:function(e){for(var t=c,r=this.tryEntries.length-1;0<=r;--r){var n=this[t(528)][r];if(n.finallyLoc===e)return this[t(414)](n.completion,n[t(494)]),S(n),y}},catch:function(e){for(var t=c,r=this[t(528)][t(496)]-1;0<=r;--r){var n,o,a=this[t(528)][r];if(a[t(346)]===e)return n=a[t(402)],t(342)===n[t(328)]&&(o=n[t(489)],S(a)),o}throw Error(t(436))},delegateYield:function(e,t,r){var n=c;return this[n(447)]={iterator:I(e),resultName:t,nextLoc:r},"next"===this[n(314)]&&(this[n(489)]=l),y}},s}function _typeof(e){var r=_0x1b52;return(_typeof=r(504)==typeof Symbol&&r(373)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var t=r;return e&&"function"==typeof Symbol&&e[t(309)]===Symbol&&e!==Symbol.prototype?t(373):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x1b52;try{var u=e[a](i),c=u[s(385)]}catch(e){return void r(e)}u[s(371)]?t(c):Promise[s(465)](c)[s(384)](n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x1b52,o=u[n(507)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,n(446),e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(342),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x1b52(369))}function _iterableToArray(e){var t=_0x1b52;if("undefined"!=typeof Symbol&&null!=e[Symbol[t(517)]]||null!=e[t(506)])return Array[t(330)](e)}function _0x5897(){var e=[".hxml","length","isDirectory","babel-loader","toStringTag","clearResource","optimization","selectedIconPath","./trustlist-hxml-verify-loader.js","function","independent","@@iterator","apply","push","./plugin/html-generator-plugin","pop","keys","../common/utils","13336gLRYIJ","app.js","router","webapp","iterator","ERROR: build-profile.json5 file modules is null","fa-compiler/loader.js","setPrototypeOf","toString","object","yellow","mark",".ascf","WARNING: The build directory is not cleared. Use the -c parameter.","./plugin/manifest-generator-plugin","tryEntries","' is used.","./common/utils","getPrototypeOf","reverse","[name]","custom","manifest","join","widgetPathsList","constructor","componentList","undefined","iconPath","1851381beYtkB","method"," cannot be in the subpackage directory","./appjson-loader","ERROR: Failed to find the file: ","__await","@babel/preset-env","ERROR: ","text","@@toStringTag","usingComponents","path","javascript/auto","ERROR: app.json doesn't contain any page.","call","type","customTabBar","from","custom-tab-bar/index.hxml","resultName","isGeneratorFunction","filePath","', please check tabBar configuration.","get","prototype","dispatchException","app.css.js","i18n","map","throw","PROJECT_PATH","fixEntryPath","' does not have the component attribute configured. ","tryLoc","defFreezeProperty","break","stop","production","completed","471907Isxwwu","test","versionNum","warn","list","set","srcPath","dist","Arguments","_sent","miniprogram_npm","./plugin/extConfig-plugin","routeMapping","finallyLoc","RAWFILE_DIR",".ux","abrupt","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","env","done","./plugin/i18n-transform-plugin","symbol","concat","modules","ASCF_BUILD_PATH","isArray","slice","suspendedYield","split","tabBar","defineProperty","./hjs-loader","then","value","toPrimitive","trim","parseIgnoreRules","projectComponentsMap","find","subPackages","webpack","226404AneVgl","custom-tab-bar/index","return","async","@babel/plugin-transform-modules-commonjs","string","ASCF_SRC_PATH","./plugin/webpack-target/index","independentList","completion","./trustlist-js-verify-loader.js","import-scripts","963CIeoVy","continue","wrap",".pack.js","root","4vEEeDt","1756848JZgqJC","LoaderOptionsPlugin","relative","complete","web","toLowerCase","create","existsSync","__proto__",".json","end","401667NhkIuq","compJsonPath","createCSSRule","name","app.css","normal","components","catchLoc","pages","replace","The iterator does not provide a '","./hxml-loader","getAbsPath","iterator result is not an object","illegal catch attempt","readdir","ERROR: build-profile.json5 file not found","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","asyncIterator","page","exit","forEach","pagePath","red","next","delegate","Map","isIgnoreFile","ERROR: Can not resolve tabBar list item : ","' method","Generator is already running","node_modules","ERROR: modify app.json tabBar and recompile it","parse","Object","./plugin/copy-bundle-plugin","named","exports","WARNING:Route information in the manifest.json file is incomplete:\n Page '","loadBabelModule","getProjectAbsPath","moduleIds","global","resolve","none","mergeMap","lstatSync","filter","displayName","subpackages","startsWith","GeneratorFunction","?type=component","app","json5","error","@@asyncIterator","suspendedStart","number","Set","AsyncIterator","useCustomTabBar","rval","hasOwnProperty","values","prev","sent","arg","2713770fvDeZr","widgets","_invoke","readFileSync","afterLoc"];return(_0x5897=function(){return e})()}function _arrayWithoutHoles(e){if(Array[_0x1b52(377)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x1b52,s=i(311)!=typeof Symbol&&e[Symbol.iterator]||e[i(506)];if(s)return o=!(n=!0),{s:function(){s=s[i(327)](e)},n:function(){var e=i,t=s[e(446)]();return n=t[e(371)],t},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(395)]||s.return()}finally{if(o)throw r}}};if(Array[i(377)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&i(480)==typeof e[i(496)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e[i(496)]?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError(i(439))}function _unsupportedIterableToArray(e,t){var r,n=_0x1b52;if(e)return n(398)==typeof e?_arrayLikeToArray(e,t):(r={}[n(521)][n(327)](e).slice(8,-1),n(456)===r&&e[n(309)]&&(r=e[n(309)].name),n(448)===r||n(481)===r?Array[n(330)](e):n(360)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(353)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0x1b52;(null==t||t>e[r(496)])&&(t=e[r(496)]);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,_0x1b52(398));return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x1b52;if(r(522)!=_typeof(e)||!e)return e;var n=e[Symbol[r(386)]];if(void 0===n)return(r(398)===t?String:Number)(e);n=n.call(e,t||"default");if(r(522)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x1b52,t=_0x5897();;)try{if(298228==-parseInt(e(352))+-parseInt(e(393))/2+-parseInt(e(422))/3*(-parseInt(e(410))/4)+parseInt(e(490))/5+parseInt(e(411))/6+-parseInt(e(313))/7+parseInt(e(513))/8*(parseInt(e(405))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require("path"),fs=require("fs"),webpack=require(_0x2ec374(392)),json5=require(_0x2ec374(476)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x2ec374(509)),ManifestGeneratorPlugin=require(_0x2ec374(527)),I18NPlugin=require(_0x2ec374(372)),CopyAscfBundlePlugin=require(_0x2ec374(457)),_packOptions=require("./common/packoptions-utils"),_require=require(_0x2ec374(512)),clearResource=_require[_0x2ec374(500)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x2ec374(343)],PROJECT_CONFIG=_require.PROJECT_CONFIG,ASCF_SRC_PATH=_require[_0x2ec374(399)],ASCF_BUILD_PATH=_require[_0x2ec374(376)],RAWFILE_DIR=_require[_0x2ec374(366)],WebpackTargetPlugin=require(_0x2ec374(400)),LoggerPlguin=require("../common/logger-plugin"),utils=require(_0x2ec374(530)),commonUtils=require(_0x2ec374(512)),removeStrictModePlugin=require("../common/remove-strict-mode-plugin"),chalk=require("../ascf-compiler/chalk/bundle.cjs"),ExtConfigPlugin=require(_0x2ec374(363));function _0x1b52(e,t){var r=_0x5897();return(_0x1b52=function(e,t){return r[e-=306]})(e,t)}chalk.level=1,process.noDeprecation=!0;var ignoreRules=generateIgnoreRule(PROJECT_CONFIG),ZIP_PATH=path[_0x2ec374(307)](ASCF_SRC_PATH,_0x2ec374(525),_0x2ec374(359)),buildProfileJson5Path=path[_0x2ec374(465)](PROJECT_PATH,"build-profile.json5");if(!fs[_0x2ec374(418)](buildProfileJson5Path))throw _0x2ec374(438);var buildProfile=json5[_0x2ec374(455)](fs[_0x2ec374(493)](buildProfileJson5Path).toString());if(!buildProfile[_0x2ec374(375)]||0===buildProfile[_0x2ec374(375)][_0x2ec374(496)])throw _0x2ec374(518);var BUILD_PATH=path[_0x2ec374(465)](PROJECT_PATH,buildProfile[_0x2ec374(375)][0][_0x2ec374(358)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x2ec374(340),APP=_0x2ec374(475),APP_TYPE=_0x2ec374(516);function handleUsingComponents(e,t){var r,n=_0x2ec374;if(e)for(var o in e)Object[n(337)][n(485)][n(327)](e,o)&&(r=e[o][n(387)](),e[o]=utils[n(462)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x2ec374,s=[r(312),r(502),"pagePath"],n=(null==(n=e.tabBar)?void 0:n.list)||[],e=e.subPackages||e.subpackages||[];n!==[]&&e!==[]&&(t=e[r(341)](function(e){return e[r(409)]})[r(469)](function(e){return e}),i=[],n[r(443)](function(a){var e=r;t[e(443)](function(n){var o=e;s[o(443)](function(e){var t,r=o;path[r(307)](ASCF_SRC_PATH,null!=(t=a[e])?t:"")[r(472)](path[r(307)](ASCF_SRC_PATH,n,"/"))&&i[r(508)](chalk[r(445)]("ERROR: tabBar ".concat(a[r(321)]," ")[r(374)](e,r(315))))})})}),0<i[r(496)])&&(i[r(443)](function(e){var t=r;console[t(477)](chalk[t(445)](e))}),console.error(chalk[r(445)](r(454))),process[r(442)](1))}function readAppJson(){var r=_0x2ec374,e=_defineProperty({},APP,new Map),t=path[r(307)](ASCF_SRC_PATH,"app.json");if(!fs[r(418)](t))throw"ERROR: Can not resolve file : app.json";var n=commonUtils.readJsonFile(t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(323)],t),n.page={},n[r(401)]=[],[]);if(!n[r(430)]||n[r(430)][r(496)]<=0)throw r(326);putPageInfoToEntryList(n[r(430)],"",!1,n,e[APP]);var o=[r(471),r(391)][r(390)](function(e){var t=r;return Object.prototype[t(485)][t(327)](n,e)});if(t[r(496)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(471)]=t);try{for(i.s();!(a=i.n())[r(371)];){var s=a[r(385)],u=new Map;e[s[r(409)]]=u,putPageInfoToEntryList(s.pages,s[r(409)],s[r(505)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n.subpackages=t);try{for(l.s();!(c=l.n())[r(371)];){var p=c[r(385)],f=new Map;e[p[r(409)]]=f,putPageInfoToEntryList(p[r(430)],p[r(409)],p[r(505)],n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t;e[_0x2ec374(328)]=null!=(t=null!=(t=e.type)?t:e.appType)?t:APP_TYPE,delete e.appType}function hasCustomTabBar(e){var t=_0x2ec374;return(e[t(381)]||{})[t(534)]&&fs[t(418)](path[t(465)](ASCF_SRC_PATH,t(331)))}function handingCustomTabBar(e){var t=_0x2ec374;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(381)].list);try{for(n.s();!(r=n.n())[t(371)];){var o=r[t(385)];if(!e[t(441)][o[t(444)]])throw t(450)+"'"[t(374)](o[t(444)],t(335));e[t(441)][o[t(444)]][t(483)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=0<arguments[_0x2ec374(496)]&&void 0!==arguments[0]?arguments[0]:{},r=[];return Object.keys(t).forEach(function(e){r.push({key:e,path:t[e]})}),r}function putPageInfoToEntryList(e,t,r,n,o){var a=_0x2ec374;if(e)for(var i in e)if(Object[a(337)][a(485)].call(e,i)){var i=path[a(307)](ASCF_SRC_PATH,t,e[i]),s=path[a(413)](ASCF_SRC_PATH,i);if(!_packOptions[a(449)](s,ignoreRules)){var s=s[a(431)](/\\/g,"/"),i=""[a(374)](i,".json"),u=void 0;try{u=fs[a(418)](i)?JSON[a(455)](fs.readFileSync(i)[a(521)]()):{}}catch(e){throw a(320)[a(374)](i," contains error, please check it.")}handleUsingComponents(u[a(323)],i),r&&n[a(401)].push(s),n[a(441)][s]=u,t||getUsingComponents(n,"","",o,a(441)),getUsingComponents(u,i,s,o,a(441))}}}function getUsingComponents(a,i,e,s,t){var u=_0x2ec374,c=5<arguments[u(496)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=a[u(425)];if(a[u(323)])for(var f in a.usingComponents)(()=>{var t=u;if(Object[t(337)][t(485)][t(327)](a.usingComponents,f)){var e=a[t(323)][f],r=utils[t(434)](e,i,ASCF_SRC_PATH,t(420)),n=r[t(334)],r=r[t(344)],o=path[t(413)](ASCF_SRC_PATH,n)[t(431)](/\\/g,"/").replace(/\.json/,""),e=r||o;if(a[t(323)][f]=e,!p&&i===n)return p=f;if(c[t(390)](function(e){return e===n}))throw"ERROR: Can not use cyclic dependened component with component path : "[t(374)](n);l.some(function(e){return e[t(324)]===path})||l[t(508)]({path:e,key:f,compJsonPath:n});r=JSON[t(455)](fs[t(493)](n)[t(521)]());handleUsingComponents(r[t(323)],n),getUsingComponents(r,n,e,s,"component",c[t(374)]([n]))}})();e&&!s[u(336)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(357)](e,t))}function getI18NEntry(u){var c=_0x2ec374;fs[c(437)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n()).done;){var a,i=n[r(385)],s=path[r(307)](u,i)[r(431)](/\\/g,"/");fs[r(468)](s)[r(497)]()&&!/(node_modules)|(\.ascf)/[r(353)](i)&&((a=s[r(380)]("/"))[a.length-1][r(416)]()===I18N&&I18N_ENTRY[r(508)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x2ec374,o={},t=e[n(389)],r=[],a=(Object[n(511)](t).reverse().forEach(function(e){r[n(508)](t[e])}),o[n(514)]=path.resolve(ASCF_SRC_PATH,"app.json?package=app")[n(431)](/\\/g,"/"),utils[n(467)](r)),i=path[n(465)](ASCF_SRC_PATH,n(426));if(fs[n(418)](i)&&(o[n(339)]=path[n(465)](ASCF_SRC_PATH,n(426))),hasCustomTabBar(e[n(306)])){var s,i=path[n(465)](ASCF_SRC_PATH,"custom-tab-bar/index.hxml"),u=i[n(431)](/\.hxml$/,".json"),c=(o["custom-tab-bar/index.pack.js"]=""[n(374)](i,n(474)),_createForOfIteratorHelper(e[n(306)][n(381)][n(356)]));try{for(c.s();!(s=c.n()).done;){var l=s[n(385)];a[n(336)](l[n(444)])&&a.get(l[n(444)])[n(310)][n(508)]({path:n(394),key:n(329),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(475)].set(n(394),i)}return a[n(443)](function(e,t){var r=n;return o[""[r(374)](t,r(408))]=e[r(423)][r(431)](/\.json$/,r(495))}),utils[n(347)](e,n(428),a),generateWidgetsEntry(o,e),o}function generateWidgetsEntry(o,r){var a,n,i=_0x2ec374,e=r[i(306)];r[i(306)]&&e.router&&((a=e[i(515)][i(430)])&&Object.keys(a)[i(443)](function(e){var t=i,r=a[e],n=r.component,r=(r||console[t(355)](chalk[t(523)](t(460)[t(374)](e,t(345))+"By default, '"[t(374)](n,t(529)))),path.join(ASCF_SRC_PATH,e,n)),e=""[t(374)](path[t(307)](e,n),".js");if(fs[t(418)]("".concat(r,t(367))))o[e]="".concat(r,".ux");else if(!fs[t(418)](""[t(374)](r,".hxml")))throw t(317).concat(r,t(367))}),e=e[i(491)])&&0<e[i(496)]&&(r[i(308)]=[],n="",e[i(443)](function(e){var t=i;n=e.path,r[t(308)].push(path[t(307)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x2ec374,t={targets:{node:8}};return{rules:[][e(374)](_toConsumableArray(utils[e(424)]()),[{test:/\.js$/,use:[{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)](e(319)),t]],plugins:[utils[e(461)]("@babel/plugin-transform-modules-commonjs"),utils[e(461)]("@babel/plugin-proposal-class-properties")]}},{loader:path[e(465)](__dirname,e(403))}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(465)](__dirname,e(383))},{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)]("@babel/preset-env"),t]],plugins:[utils[e(461)](e(397)),removeStrictModePlugin]}},{loader:path[e(465)](__dirname,"./path-process-loader.js")},{loader:path[e(465)](__dirname,e(403))}],exclude:/node_modules/},{test:/\.hxml$/,type:e(325),use:[{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)](e(319)),t]],compact:!1}},{loader:path[e(465)](__dirname,e(433))},{loader:path[e(465)](__dirname,e(503))}]},{test:/app\.json$/,type:"javascript/auto",use:[{loader:path[e(465)](__dirname,e(316))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(465)](__dirname,e(519))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x2ec374(388)](e):t)||{}}function generateRouteMapping(e){var t=_0x2ec374,r=e[t(306)][t(364)]||{},n=path[t(307)](ASCF_SRC_PATH,"route-mapping.json");if(fs[t(418)](n)){var o=JSON[t(455)](fs.readFileSync(n).toString());if(o)for(var a in o)Object[t(337)].hasOwnProperty[t(327)](o,a)&&(r[a]=o[a])}0<Object[t(511)](r)[t(496)]&&(e[t(306)][t(364)]=r)}function generatePlugins(e){var t=_0x2ec374;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(306)]}),new ManifestGeneratorPlugin({manifest:e[t(306)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(306)],pagesInfo:e[t(306)][t(441)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(428)]}),new webpack[t(412)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(306)],components:e.components,projectComponentsMap:e[t(389)],versionNum:e[t(354)],widgetPathsList:e[t(308)],widgetsDependList:e.widgetPathsList,projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(306)][t(323)])}}),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=_0x2ec374;return{modules:[path.join(ASCF_SRC_PATH,e(362)),path.join(ASCF_SRC_PATH,e(453)),path[e(307)](__dirname,"..","..",e(453)),path[e(307)](__dirname,"..","..","..","..","node_modules")]}}function checkBuildResources(){var e=_0x2ec374;(fs[e(418)](ZIP_PATH)||fs[e(418)](BUILD_PATH)||fs.existsSync(ASCF_BUILD_PATH))&&(console[e(355)](chalk[e(523)](e(526))),process[e(442)](1))}function generateConfig(){return _generateConfig[_0x2ec374(507)](this,arguments)}function _generateConfig(){var t=_0x2ec374;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(524)](function e(){var r,n,o=t;return _regeneratorRuntime()[o(407)](function(e){for(var t=o;;)switch(e[t(487)]=e[t(446)]){case 0:if("yes"===process[t(370)][t(500)])return e.next=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(446)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:IS_PRD?t(350):"development",devtool:!IS_PRD&&"inline-cheap-source-map",context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(533),publicPath:"/",globalObject:t(464),enabledChunkLoadingTypes:[t(404)]},target:t(415),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(466),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(396),cacheGroups:{default:!1}}}},IS_PRD||(n[t(501)][t(463)]=t(458)),e.abrupt(t(395),n);case 11:case t(421):return e[t(349)]()}},e)})))[t(507)](this,arguments)}module[_0x2ec374(459)]=generateConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x50163d=_0x2949;function _typeof(e){var t=_0x2949;return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol[t(420)]?function(e){return typeof e}:function(e){var o=t;return e&&o(457)==typeof Symbol&&e[o(555)]===Symbol&&e!==Symbol[o(373)]?o(497):typeof e})(e)}function _classCallCheck(e,o){var t=_0x2949;if(!(e instanceof o))throw new TypeError(t(403))}function _defineProperties(e,o){for(var t=_0x2949,n=0;n<o[t(495)];n++){var a=o[n];a[t(487)]=a[t(487)]||!1,a[t(493)]=!0,t(509)in a&&(a.writable=!0),Object.defineProperty(e,_toPropertyKey(a.key),a)}}function _createClass(e,o,t){var n=_0x2949;return o&&_defineProperties(e.prototype,o),t&&_defineProperties(e,t),Object.defineProperty(e,n(373),{writable:!1}),e}function _toPropertyKey(e){var o=_0x2949,e=_toPrimitive(e,"string");return o(497)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x2949;if(t(446)!=_typeof(e)||!e)return e;var n=e[Symbol[t(506)]];if(void 0===n)return(t(500)===o?String:Number)(e);n=n.call(e,o||t(418));if(t(446)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _0x3671(){var e=["block-color","deleteresource","Alipay","deleteBookshelf","onCompassChange","onTransitionEnd","stopRecord","setMetaDescription","setTopBarText","onLoad","canvasGetImageData","hideKeyboard","Cannot call a class as a function","getFileSystemManager","onGyroscopeChange","onBlur","subscribeService","wx:","getClipboardData","onMarkerTap","getScreenBrightness","offAudioInterruptionEnd","getWifiList","getSetting","minProgramLanguage","saveVideoToPhotosAlbum",".css","default","onBackgroundAudioPause","iterator","enablePullDownRefresh","15qvcQFa","writeBLECharacteristicValue","touchEnd",".qjs","getURLQuery","list","closeBluetoothAdapter","hideNavigationBarLoading","setEnableDebug","startRecord","weChat","pauseVoice","chooseContact","74CGUYyo","startWifi","chooseMessageFile",".sjs","setURLQuery","offWifiConnected","getSwanId","chooseCity","getunionid","setCanPullDown","offBLEConnectionStateChange","object","submitsitemap","appletType","onInput","onAnimationIteration","3109040xTWkUb","quickapp","quickapp.config.json",".ttss","onTransition","onStop","function","canvasPutImageData","closeCommunityEditor","setPageInfo","641961kzouEe","offSocketMessage","onURLQueryChange",".axml","iconPath","setInnerAudioOption","onControlTap","tagEventToTransform","onFullScreenChange","getBluetoothAdapterState","offBLECharacteristicValueChange","onError","hideTabBarRedDot","color","clearStorage","onGetWifiList",".acss","stopWifi","onRenderStart","optionsSelect","clearStorageSync","createAudioContext","watchShake","closeBLEConnection","onAudioInterruptionEnd","saveFileToDisk","enumerable","onMemoryWarning","closeReplyEditor","stopAccelerometer","getSelectedTextRange","createARCameraContext","configurable","openShare","length","touchStart","symbol","onPlay","startLocationUpdateBackground","string","230pUDcRi","createAnimationVideo","navigationBarBackgroundColor","getAccountInfoSync","offWindowResize","toPrimitive","hideToast","showNavigationBarLoading","value","2758530VjCBGw","stopBackgroundAudio","invalidApis","loadSubPackage","createAnimation","onChangeEnd","onPanelTap","defineProperty","offPageNotFound","startAccelerometer","offMemoryWarning","onChanging","configBasenameArray","showTabBarRedDot","getBatteryInfo","offGyroscopeChange","stopLocationUpdate","compressVideo","pauseBackgroundAudio","getTemplateLibraryList","vibrate","createOffscreenCanvas","getBLEDeviceCharacteristics","onFocus","windowItems","getBackgroundAudioPlayerState","startCompass","saveFile","createLivePlayerContext","onScale","onBLEConnectionStateChange","setNavigationBar","hideHomeButton","2800464RvSuSo","offSocketOpen","qa:","deletesitemap","623396ILkCKz","4603RANbiv","tablebarItems","tablebarListItems","getConnectedWifi","getUserInfo","onAudioInterruptionBegin","onReset","constructor",".qxml","projectFileSuffix","_appletType","insertBookshelf","setWifiList","showActionSheet","chooseAlipayContact","setBackgroundColor","onWindowResize","onBLECharacteristicValueChange","addPhoneRepeatCalendar","offGetWifiList","saveImageToPhotosAlbum","openDocument","createRtcRoomContext","onBluetoothDeviceFound","getBackgroundAudioManager","wxs","deleteTemplate","createInnerAudioContext","stopCompass","offBluetoothDeviceFound","directivesPrefix","getServerTime","onRegionChange","concat","getConnectedBluetoothDevices","polygons","mute","onSubmit","arrayBufferToBase64","getRecorderManager","block-size","compressImage","navigateBackSmartProgram","project.config.json","startLocationUpdate","onShareAppMessage","showAuthGuide","commonOnEvents","base64ToArrayBuffer","createBLEConnection","onTimeUpdate","getEnterOptionsSync","getBluetoothDevices","onWifiConnected","specialTag","getEnvInfoSync","onDisappear",".wxml","setKeepScreenOn","insertCalendar","onBackgroundAudioStop","chooseInvoiceTitle","project.swan.json","connectWifi","isLoginSync","getBLEDeviceServices","onBluetoothAdapterStateChange","tt:","offError","import-sjs","getDirectivesReg","onAnimationStart","onUserCaptureScreen","onPause","setTabBarStyle","setBackgroundTextStyle","datePicker","configBasename","offAudioInterruptionBegin","offLocationChange","onChange",".ttml","requestHwPayment","touchMove","getSystemRiskInfo","prototype","addPhoneContact","Baidu","navigateToSmartProgram","queryBookshelf","navigationBarTitleText","bindanimationfinish","Headline","5849522AWqAyY","getAppIdSync","onConfirm","stopVoice","longTap","onAccelerometerChange","playBackgroundAudio","onCalloutTap","offSocketClose","selectedIconPath"];return(_0x3671=function(){return e})()}function _0x2949(e,o){var t=_0x3671();return(_0x2949=function(e,o){return t[e-=336]})(e,o)}(()=>{for(var e=_0x2949,o=_0x3671();;)try{if(460199==+parseInt(e(548))*(parseInt(e(435))/2)+parseInt(e(422))/3*(-parseInt(e(547))/4)+-parseInt(e(510))/5+-parseInt(e(543))/6+parseInt(e(381))/7+-parseInt(e(451))/8+parseInt(e(461))/9*(parseInt(e(501))/10))break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x50163d(517)](exports,"__esModule",{value:!0}),exports.interfacesForTransform=exports.onToBindWithTagEvents=exports[_0x50163d(468)]=exports[_0x50163d(595)]=exports.Applets=exports[_0x50163d(550)]=exports[_0x50163d(549)]=exports[_0x50163d(534)]=exports[_0x50163d(522)]=exports[_0x50163d(342)]=exports[_0x50163d(578)]=exports.projectFileSuffix=exports[_0x50163d(415)]=exports[_0x50163d(512)]=void 0,exports[_0x50163d(512)]=[_0x50163d(336),_0x50163d(586),_0x50163d(339),"onAudioInterruptionEnd",_0x50163d(553),_0x50163d(518),_0x50163d(356),_0x50163d(412),_0x50163d(366),"offAppShow","offAppHide",_0x50163d(430),_0x50163d(561),_0x50163d(507),_0x50163d(508),_0x50163d(429),_0x50163d(363),_0x50163d(563),_0x50163d(523),_0x50163d(362),"setTabBarItem",_0x50163d(473),_0x50163d(514),"nextTick","getMenuButtonBoundingClientRect","getSelectedTextRange",_0x50163d(402),_0x50163d(475),_0x50163d(481),_0x50163d(589),_0x50163d(416),_0x50163d(527),"getVideoInfo","chooseVideo",_0x50163d(384),_0x50163d(466),"playVoice",_0x50163d(433),"getAvailableAudioSources",_0x50163d(575),_0x50163d(482),_0x50163d(511),"seekBackgroundAudio",_0x50163d(387),_0x50163d(528),_0x50163d(348),"onBackgroundAudioPlay",_0x50163d(419),_0x50163d(535),_0x50163d(572),_0x50163d(397),_0x50163d(431),_0x50163d(587),_0x50163d(526),_0x50163d(499),_0x50163d(592),"onLocationChange",_0x50163d(367),_0x50163d(337),_0x50163d(484),_0x50163d(566),_0x50163d(374),"getBatteryInfoSync",_0x50163d(524),_0x50163d(409),"setScreenBrightness",_0x50163d(346),_0x50163d(360),"offUserCaptureScreen",_0x50163d(532),_0x50163d(353),"notifyBLECharacteristicValueChange",_0x50163d(471),_0x50163d(445),_0x50163d(565),_0x50163d(540),"readBLECharacteristicValue",_0x50163d(423),_0x50163d(428),_0x50163d(470),_0x50163d(340),_0x50163d(582),"offBluetoothAdapterStateChange",_0x50163d(577),_0x50163d(354),_0x50163d(571),"openBluetoothAdapter","startBluetoothDevicesDiscovery","stopBluetoothDevicesDiscovery",_0x50163d(351),_0x50163d(551),_0x50163d(413),_0x50163d(567),_0x50163d(440),_0x50163d(476),_0x50163d(341),_0x50163d(560),_0x50163d(436),_0x50163d(478),_0x50163d(414),_0x50163d(404),_0x50163d(569),_0x50163d(486),_0x50163d(401),_0x50163d(458),_0x50163d(531),_0x50163d(411),_0x50163d(490),_0x50163d(519),"offAccelerometerChange",_0x50163d(386),_0x50163d(576),_0x50163d(536),"offCompassChange",_0x50163d(395),"stopGyroscope","startGyroscope",_0x50163d(525),_0x50163d(405),_0x50163d(488),_0x50163d(520),"getRealtimeLogManager",_0x50163d(542),_0x50163d(399),_0x50163d(564),_0x50163d(505),_0x50163d(437),"checkSession",_0x50163d(552),_0x50163d(370),_0x50163d(504),_0x50163d(382),"getRunScene","SDKVersion","hideBackHome",_0x50163d(541),_0x50163d(562),_0x50163d(434),_0x50163d(442),"onLocatedComplete","setLocatedCity","regionPicker",_0x50163d(364),"calculateRoute",_0x50163d(480),"multiLevelSelect",_0x50163d(444),_0x50163d(389),_0x50163d(462),_0x50163d(544),"offSocketError",_0x50163d(584),"offAudioInterruptionBegin",_0x50163d(412),_0x50163d(553),_0x50163d(485),_0x50163d(530),_0x50163d(483),_0x50163d(579),_0x50163d(594),"rsa",_0x50163d(426),_0x50163d(439),_0x50163d(463),"ai",_0x50163d(492),_0x50163d(502),_0x50163d(538),_0x50163d(570),_0x50163d(343),_0x50163d(443),_0x50163d(352),"requestPolymerPayment",_0x50163d(460),_0x50163d(398),"setMetaKeywords","setDocumentTitle",_0x50163d(513),"reportAnalytics",_0x50163d(372),_0x50163d(407),_0x50163d(559),_0x50163d(394),_0x50163d(377),"updateBookshelfReadTime","navigateToBookshelf",_0x50163d(441),_0x50163d(593),_0x50163d(494),"shareFile",_0x50163d(376),_0x50163d(590),"chooseAddress",_0x50163d(349),"openCommunityEditor",_0x50163d(459),"openReplyEditor",_0x50163d(489),"submitresource",_0x50163d(392),_0x50163d(447),_0x50163d(546),_0x50163d(529),"getTemplateLibraryById","addTemplate","getTemplateList",_0x50163d(574),"sendTemplateMessage"],exports[_0x50163d(415)]={qa:_0x50163d(452),wx:_0x50163d(432),swan:_0x50163d(375),my:_0x50163d(393),tt:_0x50163d(380)},exports[_0x50163d(557)]={qa:{hxml:_0x50163d(556),css:_0x50163d(417),hjs:_0x50163d(425)},wx:{hxml:_0x50163d(345),css:".wxss",hjs:".wxs"},swan:{hxml:".swan",css:_0x50163d(417),hjs:_0x50163d(438)},my:{hxml:_0x50163d(464),css:_0x50163d(477),hjs:_0x50163d(438)},tt:{hxml:_0x50163d(369),css:_0x50163d(454),hjs:".sjs"}},exports[_0x50163d(578)]={qa:_0x50163d(545),wx:_0x50163d(408),swan:"s-",my:"a:",tt:_0x50163d(355)},exports[_0x50163d(342)]={wx:_0x50163d(573),swan:"import-sjs",my:_0x50163d(357),tt:null},exports[_0x50163d(522)]=[_0x50163d(591),_0x50163d(350)];var configBasename={qa:_0x50163d(453),wx:_0x50163d(591),swan:_0x50163d(350),my:null,tt:"project.config.json"},addSupportTypes=(exports.windowItems={titleBarColor:_0x50163d(503),pullRefresh:_0x50163d(421),defaultTitle:_0x50163d(378)},exports[_0x50163d(549)]={textColor:_0x50163d(474),items:_0x50163d(427)},exports.tablebarListItems={name:"text",icon:_0x50163d(465),activeIcon:_0x50163d(390)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x50163d;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:t(448),get:function(){return n[t(558)]},set:function(e){var o=t;n.resetConfig(e),n[o(558)]=e}},{key:"resetConfig",value:function(e){n[t(365)]=configBasename[e],n.addSupportTypes=addSupportTypes[e]}},{key:t(358),value:function(e){return new RegExp("^"[t(581)](exports.directivesPrefix[e],".*"))}}])})();exports.Applets=Applets,exports[_0x50163d(595)]=[_0x50163d(496),_0x50163d(371),_0x50163d(424),"touchCancel","tap",_0x50163d(385)],exports[_0x50163d(468)]={swiper:{onAnimationEnd:_0x50163d(379)},video:{onLoading:"bindwaiting"},checkbox:{onChange:"bindchange"},slider:{"handle-size":"block-size",handleSize:_0x50163d(588),"handle-color":"block-color",handleColor:_0x50163d(391)},map:{polygon:_0x50163d(583)}},exports.onToBindWithTagEvents={view:[_0x50163d(396),_0x50163d(450),_0x50163d(359),"onAnimationEnd","onAppear",_0x50163d(344),"onFirstAppear"],"movable-view":[_0x50163d(368),_0x50163d(539),_0x50163d(515)],"scroll-view":["onScrollToUpper","onScrollToLower","onScroll"],swiper:["onChange",_0x50163d(455)],"checkbox-group":[_0x50163d(368)],form:[_0x50163d(585),_0x50163d(554)],input:[_0x50163d(449),"onFocus",_0x50163d(406),_0x50163d(383)],picker:[_0x50163d(368)],"picker-view":[_0x50163d(368)],"radio-group":[_0x50163d(368)],slider:[_0x50163d(368),_0x50163d(521)],switch:[_0x50163d(368)],textarea:[_0x50163d(449),_0x50163d(533),"onBlur",_0x50163d(383)],image:[_0x50163d(400),_0x50163d(472)],video:[_0x50163d(498),_0x50163d(361),"onEnded",_0x50163d(338),"onError",_0x50163d(469),"onUserAction",_0x50163d(456),_0x50163d(479)],map:[_0x50163d(410),_0x50163d(388),_0x50163d(467),_0x50163d(580),_0x50163d(516)]},exports.interfacesForTransform={confirm:"showModal",saveImage:_0x50163d(568),connectBLEDevice:_0x50163d(337),disconnectBLEDevice:_0x50163d(484),scan:"scanCode",setClipboard:"setClipboardData",getClipboard:_0x50163d(409),getSelectedTextRange:"hideKeyboard",hideKeyboard:_0x50163d(491),compressVideo:_0x50163d(527),saveFileToDisk:_0x50163d(537),addPhoneRepeatCalendar:_0x50163d(347),stopAccelerometer:_0x50163d(490)};
|
|
1
|
+
var _0x3ed183=_0x432d;function _typeof(e){var t=_0x432d;return(_typeof="function"==typeof Symbol&&t(437)==typeof Symbol[t(594)]?function(e){return typeof e}:function(e){var o=t;return e&&o(510)==typeof Symbol&&e[o(517)]===Symbol&&e!==Symbol[o(406)]?"symbol":typeof e})(e)}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _0x1eab(){var e=["showTabBarRedDot","startLocationUpdate","createARCameraContext","concat","tap","createBLEConnection","onPlay","requestHwPayment","stopRecord","offAudioInterruptionEnd","Headline","createRtcRoomContext","hideToast","closeBLEConnection","submitresource","setURLQuery","configBasenameArray","597205bIFkvZ","playVoice","deleteresource","onScrollToLower","qa:","createAnimation","checkSession","getAvailableAudioSources","vibrate","iconPath",".wxss","getTemplateLibraryById","rsa","list","onTransition","showAuthGuide","iterator","onLoad","setTopBarText","44445933QseoJs","compressImage","value","offMemoryWarning","minProgramLanguage","onBlur","shareFile","block-size","block-color","navigateToBookshelf","project.swan.json","stopBackgroundAudio","512300XJpJNL","onEnded","hideHomeButton","watchShake","startWifi","offWindowResize","insertCalendar","default","polygons","onControlTap","prototype","onError","optionsSelect","insertBookshelf","getRunScene",".ttss","string","color","@@toPrimitive must return a primitive value.","setEnableDebug","getServerTime","object","pauseVoice","onBackgroundAudioPlay","isLoginSync","offSocketError","onRenderStart","getMenuButtonBoundingClientRect","getSelectedTextRange","showModal","onStop","openReplyEditor",".sjs","wxs","onTimeUpdate","3448216NoGcxD","nextTick","onChanging","getRealtimeLogManager","tablebarItems","setLocatedCity","symbol","enumerable",".ttml","onFirstAppear","Applets","length","onBackgroundAudioPause","arrayBufferToBase64","tablebarListItems","_appletType","offSocketMessage","offLocationChange","onLocationChange",".wxml","saveImageToPhotosAlbum","subscribeService","stopVoice","Baidu","onConfirm","setInnerAudioOption","Alipay","mute","directivesPrefix","project.config.json","addTemplate","stopLocationUpdate","onToBindWithTagEvents","onAnimationEnd","compressVideo","onPause","projectFileSuffix","setNavigationBar","touchEnd","onChange","onAppear","getUserInfo","createInnerAudioContext",".wxs","datePicker","getAccountInfoSync","offAudioInterruptionBegin","getAppIdSync","commonOnEvents","onInput","onScale","onScrollToUpper","saveFileToDisk","tagEventToTransform","onChangeEnd","createAnimationVideo","4640355oFjCtn","getSystemRiskInfo","__esModule","onLocatedComplete","selectedIconPath","onReset","addSupportTypes","enablePullDownRefresh","windowItems","configurable","onWindowResize","pauseBackgroundAudio","configBasename","weChat","call","playBackgroundAudio","SDKVersion","setWifiList","navigationBarBackgroundColor","bindchange","offSocketClose","bindanimationfinish","hideTabBarRedDot","function","offSocketOpen","setPageInfo","onAudioInterruptionBegin","onFocus","defineProperty","createAudioContext","constructor","import-sjs",".css","getClipboardData","3850527JOCFpU","getDirectivesReg","resetConfig","onBackgroundAudioStop","startRecord","onCalloutTap","quickapp","tt:","setMetaDescription","invalidApis","onShareAppMessage","getRecorderManager","interfacesForTransform","8kxdycM","getEnvInfoSync",".qxml","navigateBackSmartProgram","touchMove","setDocumentTitle","onRegionChange","2661490HWLdAG","onScroll","touchCancel","specialTag","openCommunityEditor","submitsitemap","toPrimitive","getTemplateList","createOffscreenCanvas","deletesitemap","66qkslwd","startLocationUpdateBackground","showNavigationBarLoading","navigationBarTitleText","queryBookshelf","chooseAlipayContact","navigateToSmartProgram","onAnimationStart","onDisappear","onAudioInterruptionEnd"];return(_0x1eab=function(){return e})()}function _defineProperties(e,o){for(var t=_0x432d,n=0;n<o[t(442)];n++){var d=o[n];d[t(438)]=d[t(438)]||!1,d[t(496)]=!0,t(386)in d&&(d.writable=!0),Object[t(515)](e,_toPropertyKey(d.key),d)}}function _createClass(e,o,t){var n=_0x432d;return o&&_defineProperties(e[n(406)],o),t&&_defineProperties(e,t),Object[n(515)](e,n(406),{writable:!1}),e}function _0x432d(e,o){var t=_0x1eab();return(_0x432d=function(e,o){return t[e-=386]})(e,o)}function _toPropertyKey(e){var o=_0x432d,e=_toPrimitive(e,o(412));return o(437)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x432d;if(t(417)!=_typeof(e)||!e)return e;var n=e[Symbol[t(547)]];if(void 0===n)return(t(412)===o?String:Number)(e);n=n[t(501)](e,o||t(403));if("object"!=_typeof(n))return n;throw new TypeError(t(414))}(()=>{for(var e=_0x432d,o=_0x1eab();;)try{if(807401==-parseInt(e(396))+-parseInt(e(541))/2+-parseInt(e(521))/3+parseInt(e(431))/4+-parseInt(e(487))/5+-parseInt(e(551))/6*(parseInt(e(578))/7)+-parseInt(e(534))/8*(-parseInt(e(597))/9))break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x3ed183(515)](exports,_0x3ed183(489),{value:!0}),exports.interfacesForTransform=exports[_0x3ed183(463)]=exports[_0x3ed183(484)]=exports[_0x3ed183(479)]=exports[_0x3ed183(441)]=exports[_0x3ed183(445)]=exports[_0x3ed183(435)]=exports[_0x3ed183(495)]=exports[_0x3ed183(577)]=exports[_0x3ed183(544)]=exports[_0x3ed183(459)]=exports[_0x3ed183(467)]=exports[_0x3ed183(388)]=exports[_0x3ed183(530)]=void 0,exports[_0x3ed183(530)]=["base64ToArrayBuffer",_0x3ed183(444),_0x3ed183(560),_0x3ed183(513),"offAudioInterruptionEnd",_0x3ed183(477),_0x3ed183(415),_0x3ed183(573),_0x3ed183(553),"hideNavigationBarLoading","setBackgroundTextStyle","setBackgroundColor",_0x3ed183(561),"setTabBarStyle","setTabBarItem",_0x3ed183(509),_0x3ed183(583),_0x3ed183(432),_0x3ed183(423),_0x3ed183(598),_0x3ed183(465),_0x3ed183(453),_0x3ed183(456),_0x3ed183(579),_0x3ed183(418),_0x3ed183(585),_0x3ed183(473),_0x3ed183(516),_0x3ed183(395),"seekBackgroundAudio",_0x3ed183(502),_0x3ed183(498),_0x3ed183(524),_0x3ed183(419),_0x3ed183(443),"getBackgroundAudioPlayerState","getBackgroundAudioManager",_0x3ed183(569),_0x3ed183(525),_0x3ed183(532),_0x3ed183(462),_0x3ed183(552),_0x3ed183(562),_0x3ed183(449),_0x3ed183(448),"getClipboardData",_0x3ed183(504),_0x3ed183(400),"stopWifi",_0x3ed183(483),_0x3ed183(549),"onMemoryWarning",_0x3ed183(387),_0x3ed183(434),_0x3ed183(398),_0x3ed183(596),_0x3ed183(497),_0x3ed183(401),"chooseMessageFile",_0x3ed183(584),_0x3ed183(472),_0x3ed183(568),_0x3ed183(476),_0x3ed183(478),_0x3ed183(410),_0x3ed183(503),"hideBackHome",_0x3ed183(468),_0x3ed183(556),"chooseCity",_0x3ed183(490),_0x3ed183(436),"regionPicker",_0x3ed183(475),"calculateRoute",_0x3ed183(408),"multiLevelSelect","setCanPullDown",_0x3ed183(507),_0x3ed183(447),_0x3ed183(511),_0x3ed183(421),_0x3ed183(458),"offAudioInterruptionBegin",_0x3ed183(570),_0x3ed183(513),_0x3ed183(560),_0x3ed183(586),_0x3ed183(399),_0x3ed183(416),_0x3ed183(593),_0x3ed183(590),"getURLQuery",_0x3ed183(576),"onURLQueryChange","ai",_0x3ed183(563),_0x3ed183(486),"createLivePlayerContext",_0x3ed183(572),_0x3ed183(535),"getunionid",_0x3ed183(420),"requestPolymerPayment",_0x3ed183(512),_0x3ed183(529),"setMetaKeywords",_0x3ed183(539),"loadSubPackage","reportAnalytics",_0x3ed183(488),_0x3ed183(452),_0x3ed183(409),"deleteBookshelf",_0x3ed183(555),"updateBookshelfReadTime",_0x3ed183(393),"getSwanId",_0x3ed183(531),"openShare",_0x3ed183(390),_0x3ed183(557),_0x3ed183(537),_0x3ed183(545),"closeCommunityEditor",_0x3ed183(427),"closeReplyEditor",_0x3ed183(575),_0x3ed183(580),_0x3ed183(546),_0x3ed183(550),"getTemplateLibraryList",_0x3ed183(589),_0x3ed183(461),_0x3ed183(548),"deleteTemplate","sendTemplateMessage"],exports[_0x3ed183(388)]={qa:_0x3ed183(527),wx:_0x3ed183(500),swan:_0x3ed183(454),my:_0x3ed183(457),tt:_0x3ed183(571)},exports[_0x3ed183(467)]={qa:{hxml:_0x3ed183(536),css:_0x3ed183(519),hjs:".qjs"},wx:{hxml:_0x3ed183(450),css:_0x3ed183(588),hjs:_0x3ed183(474)},swan:{hxml:".swan",css:_0x3ed183(519),hjs:".sjs"},my:{hxml:".axml",css:".acss",hjs:_0x3ed183(428)},tt:{hxml:_0x3ed183(439),css:_0x3ed183(411),hjs:".sjs"}},exports[_0x3ed183(459)]={qa:_0x3ed183(582),wx:"wx:",swan:"s-",my:"a:",tt:_0x3ed183(528)},exports[_0x3ed183(544)]={wx:_0x3ed183(429),swan:_0x3ed183(518),my:_0x3ed183(518),tt:null},exports[_0x3ed183(577)]=[_0x3ed183(460),_0x3ed183(394)];var configBasename={qa:"quickapp.config.json",wx:_0x3ed183(460),swan:_0x3ed183(394),my:null,tt:_0x3ed183(460)},addSupportTypes=(exports[_0x3ed183(495)]={titleBarColor:_0x3ed183(505),pullRefresh:_0x3ed183(494),defaultTitle:_0x3ed183(554)},exports[_0x3ed183(435)]={textColor:_0x3ed183(413),items:_0x3ed183(591)},exports[_0x3ed183(445)]={name:"text",icon:_0x3ed183(587),activeIcon:_0x3ed183(491)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x3ed183;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:"appletType",get:function(){return n[_0x432d(446)]},set:function(e){var o=_0x432d;n[o(523)](e),n[o(446)]=e}},{key:t(523),value:function(e){var o=t;n[o(499)]=configBasename[e],n[o(493)]=addSupportTypes[e]}},{key:t(522),value:function(e){var o=t;return new RegExp("^"[o(564)](exports[o(459)][e],".*"))}}])})();exports.Applets=Applets,exports.commonOnEvents=["touchStart",_0x3ed183(538),_0x3ed183(469),_0x3ed183(543),_0x3ed183(565),"longTap"],exports[_0x3ed183(484)]={swiper:{onAnimationEnd:_0x3ed183(508)},video:{onLoading:"bindwaiting"},checkbox:{onChange:_0x3ed183(506)},slider:{"handle-size":_0x3ed183(391),handleSize:_0x3ed183(391),"handle-color":_0x3ed183(392),handleColor:_0x3ed183(392)},map:{polygon:_0x3ed183(404)}},exports[_0x3ed183(463)]={view:["onTransitionEnd","onAnimationIteration",_0x3ed183(558),_0x3ed183(464),_0x3ed183(471),_0x3ed183(559),_0x3ed183(440)],"movable-view":[_0x3ed183(470),_0x3ed183(481),_0x3ed183(485)],"scroll-view":[_0x3ed183(482),_0x3ed183(581),_0x3ed183(542)],swiper:[_0x3ed183(470),_0x3ed183(592)],"checkbox-group":[_0x3ed183(470)],form:["onSubmit",_0x3ed183(492)],input:[_0x3ed183(480),_0x3ed183(514),_0x3ed183(389),_0x3ed183(455)],picker:[_0x3ed183(470)],"picker-view":[_0x3ed183(470)],"radio-group":[_0x3ed183(470)],slider:[_0x3ed183(470),_0x3ed183(433)],switch:[_0x3ed183(470)],textarea:[_0x3ed183(480),_0x3ed183(514),_0x3ed183(389),_0x3ed183(455)],image:[_0x3ed183(595),_0x3ed183(407)],video:[_0x3ed183(567),_0x3ed183(466),_0x3ed183(397),_0x3ed183(430),_0x3ed183(407),"onFullScreenChange","onUserAction",_0x3ed183(426),_0x3ed183(422)],map:["onMarkerTap",_0x3ed183(526),_0x3ed183(405),_0x3ed183(540),"onPanelTap"]},exports[_0x3ed183(533)]={confirm:_0x3ed183(425),saveImage:_0x3ed183(451),connectBLEDevice:_0x3ed183(566),disconnectBLEDevice:_0x3ed183(574),scan:"scanCode",setClipboard:"setClipboardData",getClipboard:_0x3ed183(520),getSelectedTextRange:"hideKeyboard",hideKeyboard:_0x3ed183(424),compressVideo:_0x3ed183(465),saveFileToDisk:"saveFile",addPhoneRepeatCalendar:_0x3ed183(402),stopAccelerometer:"stopAccelerometer"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x343cc3=_0x3e78,path=((()=>{for(var e=_0x3e78,t=_0x5981();;)try{if(787081==-parseInt(e(563))+-parseInt(e(560))/2+-parseInt(e(610))/3+parseInt(e(527))/4+parseInt(e(525))/5*(-parseInt(e(589))/6)+parseInt(e(526))/7*(-parseInt(e(521))/8)+parseInt(e(498))/9)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object.defineProperty(exports,_0x343cc3(594),{value:!0}),exports[_0x343cc3(608)]=exports[_0x343cc3(554)]=exports[_0x343cc3(512)]=exports.createTransformReportFile=exports[_0x343cc3(602)]=exports.projectConfigFile=exports[_0x343cc3(579)]=exports[_0x343cc3(509)]=exports[_0x343cc3(553)]=exports.copyConfigFiles=exports[_0x343cc3(495)]=exports[_0x343cc3(598)]=exports[_0x343cc3(489)]=exports[_0x343cc3(492)]=exports.replacepos=exports.setOriginPtahObject=void 0,require(_0x343cc3(547))),fs=require("fs"),importVisitor_1=require("../parse/importVisitor"),_require=require(_0x343cc3(545)),create=_require.create,fileHandle_1=require(_0x343cc3(497)),commonConfig_1=require("./commonConfig"),transformReport=require(_0x343cc3(494)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){var o=_0x343cc3;thirdComponents=[],originPtahObject[o(590)]=e,originPtahObject[o(506)]=t}function replacepos(e,t,o,n){var i=_0x343cc3;return e[i(599)](0,t)+n+e[i(599)](o)}function insertStr(e,t,o){var n=_0x343cc3;return e[n(505)](0,t)+o+e[n(505)](t)}function copyDir(e,t){var o=_0x343cc3,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments[o(576)]&&void 0!==arguments[3]&&arguments[3];try{fs.existsSync(t)||fs[o(595)](t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x343cc3,n=path[o(561)](t,o(531)),i=JSON[o(532)](fs[o(568)](n,{encoding:"utf-8"})),i=(i.display.pages[o(483)].orientation=e[o(597)],i[o(502)]=i[o(502)]+path[o(577)](e[o(548)]),i[o(523)]=e.packageName,i[o(543)]=e.appName,i[o(524)]=e[o(524)],i[o(496)]=e[o(496)],JSON.stringify(i,null,2)),n=(fs[o(522)](n,i),path[o(561)](t,"Hello",o(600))),i=(i=fs[o(568)](n,{encoding:o(591)}))[o(556)]("helloUxStr",e[o(501)]);fs[o(522)](n,i),fs.existsSync(path[o(561)](t,"Common"))||fs[o(595)](path[o(561)](t,o(558))),copyFile(path[o(561)](t,"Common",path[o(577)](e[o(548)])),e.iconPath)}function _0x5981(){var e=["node_modules","map","378tFomqI","input","utf-8","forEach","extResFile","__esModule","mkdirSync","util","orientation","handleConfigInfo","substring","hello.ux","transform.log","createDirs",'configuration attribute "',"css","extEnable","hxml","isDirectory","setLanguage","tabBar","4666725FcRbcT",'" in ext.json \n\n\n',"entry","createTransformReportFile","handleWxssImport","lib","existsSync","Hello","appConfig","write","debug",".js","addSupportTypes","copyDir","indexOf",".css","insertStr","ext","../features/transformReport","transformNodeModuleComponent","versionCode","../features/fileHandle","66190905oFjZNZ","renameSync","extAppid","webUrl","icon","concat","projectConfigFile","slice","output","dirname","tablebarItems","changeAppJsonItem","configBasename","windowItems","getGlobleOutPutPath","swan","keys","ext.json","app.json","writeFile","env","Applets","permission","11665768faxxRY","writeFileSync","package","versionName","111565xQuNXR","7EaAwTw","747008cbniRl","apiadapter4alipay.js","extPages","english","manifest.json","parse","eventTargetKey","stringify","appletType","copyConfigFiles","subpackages",".hjs","assign","readdirSync","log","subPackages","name","extJsonFile","../common/textDocument","getText","path","iconPath","transformJsFile","extname","toLowerCase","toString","copyFile","adaptApiFile","require('./util/apiadapter4alipay.js');\r\n","replace","entryPagePath","Common","miniprogram_npm","1521146waiqAH","join","type","1574128aRpolw","isFile","pages",".json","projectFileSuffix","readFileSync","hjs","packOptions","usingComponents","widgets","directCommit","window","srcRootPath","length","basename","minPlatformVersion","appJsonFile","app.js","handleWxmlFile","chinese",'{"locale": "zh-cn"}',"statSync","setOriginPtahObject","target"];return(_0x5981=function(){return e})()}function _copyH5Pragram(i,a){var r=_0x343cc3;try{fs.readdirSync(i)[r(592)](function(e){var t=r,o=path[t(561)](i,e),e=path[t(561)](a,e),n=fs[t(584)](o);n[t(564)]()&©File(e,o),n[t(607)]()&©Dir(o,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(a,r){var c=_0x343cc3,s=2<arguments[c(576)]&&void 0!==arguments[2]&&arguments[2];try{fs[c(540)](a).forEach(function(e){var t=c,o=path[t(561)](a,e),n=path[t(561)](r,e),i=fs[t(584)](o);i[t(564)]()&&(copyFile(n,o),!s)&&dealWithFile(n,o),i[t(607)]()&&"node_modules"!==o&&"miniprogram_npm"!==o&&(e===t(587)?copyDir(o,path[t(561)](r,"miniprogram_npm"),!0):copyDir(o,n,s))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x343cc3,n=2<arguments[e(576)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(519)].appletType,i=path[e(550)](t);switch(i){case e(487):modifyFileContent(t,o,".js",n);break;case e(566):modifyFileContent(t,o,e(566));break;default:var a=[commonConfig_1[e(519)][e(535)]];(a=commonConfig_1[e(519)][e(488)]?a[e(503)](commonConfig_1[e(519)][e(488)]):a)[e(592)](function(e){dealWithMainFile(t,o,i,e)})}}function dealWithMainFile(e,t,o,n){var i=_0x343cc3,a=commonConfig_1[i(567)][n];switch(o){case a[i(606)]:var r=e[i(556)](o,".hxml");modifyFile(e,r,a.hxml,t,n);break;case a[i(604)]:r=e[i(556)](o,i(491));modifyFile(e,r,a.css,null,n);break;case a.hjs:if(!a.hjs)return;r=e[i(556)](o,i(538));modifyFile(e,r,a[i(569)],t,n)}}function modifyFile(e,t,o,n){var i=_0x343cc3,a=4<arguments[i(576)]&&void 0!==arguments[4]?arguments[4]:commonConfig_1[i(519)][i(535)];try{fs[i(499)](e,t),modifyFileContent(t,n,o,a)}catch(e){throw console.error(e),e}}function modifyFileContent(e,t,o){var n=_0x343cc3,i=3<arguments[n(576)]&&void 0!==arguments[3]?arguments[3]:commonConfig_1[n(519)][n(535)];try{var a,r=fs[n(568)](e,{encoding:n(591)}).toString(),c=commonConfig_1[n(567)][i];switch(o){case c[n(606)]:r=fileHandle_1[n(581)](e,r,t,i),"tt"===i&&(r=fileHandle_1[n(581)](e,r,t,"wx"));break;case c[n(569)]:var s=create(e,r),r=s[n(546)](),p=importVisitor_1.getImportRules(r,null,!0,i).filter(function(e){return"fileImport"===e[n(562)]});r=fileHandle_1.transformWxsFilePath(p,s,r,t,i);break;case c[n(604)]:r=fileHandle_1[n(480)](e,r,i),"tt"===i&&(r=fileHandle_1[n(480)](e,r,"wx"));break;case n(487):r=fileHandle_1[n(549)](e,t,r,i),"tt"===i&&(r=fileHandle_1[n(549)](e,t,r,"wx"));break;case n(566):r&&((a=JSON[n(532)](r))[n(571)]&&handleUsingComponents(a[n(571)]),"my"===commonConfig_1[n(519)][n(535)]&&changeAppJsonItem(a,commonConfig_1.windowItems),r=JSON[n(534)](a,null,2))}fs[n(522)](e,r)}catch(e){throw e}}function dealWithNodeModuleComponent(t,o){var n=_0x343cc3,e=fs[n(584)](t);e[n(564)]()&&dealWithFile(t,o),e.isDirectory()&&fs[n(540)](t)[n(592)](function(e){dealWithNodeModuleComponent(path[n(561)](t,e),path.join(o,e))})}function transformNodeModuleComponent(){thirdComponents.forEach(function(e){var t,o=_0x3e78,n=path.join(originPtahObject[o(506)],"miniprogram_npm",e);fs[o(482)](n)&&(t=path[o(561)](originPtahObject.input,o(559),e),fs[o(482)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(561)](originPtahObject[o(590)],o(587),e)))})}function handleUsingComponents(e){var t,o,n=_0x343cc3;for(t in e)e[t]&&(o=e[t].split("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents[n(490)](o[0])&&thirdComponents.push(o[0])}function copyConfigFiles(n,i){var a=_0x343cc3;try{fs[a(540)](n)[a(592)](function(e){var t=a,o=path.join(n,e),e=path[t(561)](i,e);fs[t(584)](o).isFile()&©File(e,o)})}catch(e){throw e}}function copyFile(e,t){var o=_0x343cc3;fs[o(522)](e,fs[o(568)](t))}function _0x3e78(e,t){var o=_0x5981();return(_0x3e78=function(e,t){return o[e-=479]})(e,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=_0x343cc3,n=JSON[o(532)](fs[o(568)](path.join(e,o(516))).toString()),n=(delete n.package,delete n.name,delete n.versionName,delete n[o(496)],delete n[o(578)],delete n.icon,delete n.type,changeAppJsonItem(n[o(574)],commonConfig_1[o(511)]),changeAppJsonItem(n[o(609)],commonConfig_1[o(508)]),n.tabBar&&n[o(609)].list&&n[o(609)].list[o(592)](function(e){changeAppJsonItem(e,commonConfig_1.tablebarListItems)}),Object[o(539)]({},n)),n=(delete n[o(572)],delete n[o(612)],delete n[o(486)],delete n.navigateToMiniProgramAppIdList,-1!==[o(513),"my"][o(490)](commonConfig_1[o(519)].appletType)&&(n.platformFeature={enableNoDeclareCompProp:!0}),-1!==["my"][o(490)](commonConfig_1[o(519)][o(535)])&&(n.platformFeature[o(533)]=o(586)),JSON.stringify(n,null,2));fs[o(522)](path[o(561)](e,o(516)),n)}function extJsonFile(e,t){var o=_0x343cc3,n=path[o(561)](e,o(515));if(fs[o(482)](n)){var i=JSON[o(532)](fs[o(568)](n)[o(552)]()),n=(delete i[o(500)],delete i[o(573)],{}),a=(!(n[o(605)]=!1)===i.extEnable&&(n.extEnable=!0),delete i[o(605)],void 0!==i.extResFile&&(n[o(593)]=i[o(593)],delete i.extResFile),n[o(484)]={},n[o(484)]),r=JSON[o(532)](fs[o(568)](path[o(561)](e,"app.json"))[o(552)]());[o(523),"name",o(524),o(496),o(562)][o(588)](function(e){a[e]=r[e]}),[o(493),o(529),o(557),o(565),o(574),o(609),o(537),o(542),"usingComponents",o(520)][o(588)](function(e){void 0!==i[e]&&(a[e]=i[e],delete i[e])});for(var c=0,s=Object[o(514)](i);c<s[o(576)];c++){var p=s[c];transformReport[o(485)]("Warning: "[o(503)](setLanguage("notSupport"),o(603))[o(503)](p,o(611)))}n=Object[o(539)](n),n=JSON.stringify(n,null,2);fs[o(522)](path.join(e,o(515)),n)}}function projectConfigFile(e){var t=_0x343cc3,o={},n=(commonConfig_1[t(519)][t(510)]?fs[t(482)](path[t(561)](e,commonConfig_1.Applets[t(510)]))&&(o=JSON[t(532)](fs[t(568)](path.join(e,commonConfig_1[t(519)][t(510)]))[t(552)]())):o={},{ascfRoot:commonConfig_1.Applets[t(575)],packOptions:{ignore:[]}}),o=(n[t(570)]=o[t(570)],JSON[t(534)](n,null,2));commonConfig_1.Applets[t(510)]&&fs[t(482)](path[t(561)](e,commonConfig_1.Applets[t(510)]))&&fs.unlinkSync(path[t(561)](e,commonConfig_1[t(519)][t(510)])),fs[t(517)](path[t(561)](e,"ascf.config.json"),o,function(e){e&&console[t(541)](e)})}function mkdirsSync(e){var t=_0x343cc3;return!!fs.existsSync(e)||(mkdirsSync(path[t(507)](e))?(fs[t(595)](e),!0):void 0)}function createDirs(e,t){var o=_0x343cc3;o(576);fs[o(482)](e)||mkdirsSync(e),fs[o(482)](path[o(561)](e,t))||mkdirsSync(path[o(561)](e,t))}function createTransformReportFile(e,t){var o=_0x343cc3,n=o(601),e=(globleOutPutPath=path.join(e,n),setLanguage("miniProgramProject")+t+"\n\n");fs[o(522)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x343cc3,t=(fs[o(482)](path[o(561)](e,o(596)))||fs[o(595)](path.join(e,"util")),copyFile(path.join(e,"util",o(528)),path[o(561)](t,o(481),o(528))),path[o(561)](e,o(580))),e=fs[o(568)](t,{encoding:o(591)}),e=o(555)[o(503)](e);fs.writeFileSync(t,e)}exports[_0x343cc3(585)]=setOriginPtahObject,exports.replacepos=replacepos,exports[_0x343cc3(492)]=insertStr,exports.copyDir=copyDir,exports[_0x343cc3(598)]=handleConfigInfo,exports[_0x343cc3(495)]=transformNodeModuleComponent,exports[_0x343cc3(536)]=copyConfigFiles,exports[_0x343cc3(553)]=copyFile,exports[_0x343cc3(509)]=changeAppJsonItem,exports[_0x343cc3(579)]=appJsonFile,exports[_0x343cc3(544)]=extJsonFile,exports[_0x343cc3(504)]=projectConfigFile,exports[_0x343cc3(602)]=createDirs,exports[_0x343cc3(479)]=createTransformReportFile,exports[_0x343cc3(512)]=getGlobleOutPutPath,exports[_0x343cc3(554)]=adaptApiFile;var lan=JSON.parse(process[_0x343cc3(518)].VSCODE_NLS_CONFIG||_0x343cc3(583)).locale[_0x343cc3(551)](),language=require("../lib/locale.json");function setLanguage(e,t){var o,n=_0x343cc3;return language[e]?(o="zh-cn"===lan?language[e][n(582)]:language[e][n(530)],Array.isArray(t)&&t[n(592)](function(e,t){o=o[n(556)]("${"+(t+1)+"}",e)}),o):e}exports.setLanguage=setLanguage;
|
|
1
|
+
function _0x20e3(){var e=["util","transformNodeModuleComponent","appletType","../common/textDocument","versionName","tablebarListItems","concat","copyFile","writeFileSync","tablebarItems","Hello","handleWxssImport","changeAppJsonItem","ascf.config.json","dirname","icon","lib","extname","widgets","display","toLowerCase","length","node_modules","5569192hLTMNA","type","151702WtYiLZ","error","setLanguage","./commonConfig","fileImport","hjs","366kDjxJd","insertStr",".hxml","swan","statSync","../lib/locale.json","createDirs","orientation","createTransformReportFile","versionCode","addSupportTypes","copyConfigFiles","parse","path","Applets",'{"locale": "zh-cn"}',"input","platformFeature","chinese","3586PzEHlS","push","transformWxsFilePath","writeFile","unlinkSync","5ukurfB","readFileSync","css","apiadapter4alipay.js","require('./util/apiadapter4alipay.js');\r\n","isDirectory","usingComponents","tabBar","manifest.json","4083048DiTxdh","packOptions","log","windowItems","projectConfigFile","package","handleWxmlFile","name","output","existsSync","miniprogram_npm","../features/transformReport","mkdirSync","3EJAnZU","create","utf-8","slice","defineProperty","replace","basename","hxml","isArray","srcRootPath","6470INhdiG",".json","indexOf","getImportRules","iconPath","zh-cn","stringify","copyDir",".js","target","app.json","adaptApiFile","substring","getText","join","transformJsFile","setOriginPtahObject","Common",".css","67876shVWrh","miniProgramProject","assign","readdirSync","navigateToMiniProgramAppIdList","toString","replacepos","webUrl","eventTargetKey","__esModule","../parse/importVisitor","isFile","window","3227ybWnEq","appJsonFile","2614220DMlkSm","configBasename","packageName","helloUxStr","forEach","app.js"];return(_0x20e3=function(){return e})()}var _0x4e78cd=_0x3bb9,path=((()=>{for(var e=_0x3bb9,t=_0x20e3();;)try{if(354900==-parseInt(e(537))*(-parseInt(e(507))/2)+-parseInt(e(559))/3*(-parseInt(e(588))/4)+-parseInt(e(476))/5+parseInt(e(513))/6*(parseInt(e(474))/7)+parseInt(e(505))/8+-parseInt(e(546))/9+parseInt(e(569))/10*(parseInt(e(532))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x4e78cd(563)](exports,_0x4e78cd(470),{value:!0}),exports[_0x4e78cd(509)]=exports[_0x4e78cd(580)]=exports.getGlobleOutPutPath=exports[_0x4e78cd(521)]=exports[_0x4e78cd(519)]=exports[_0x4e78cd(550)]=exports[_0x4e78cd(475)]=exports.changeAppJsonItem=exports[_0x4e78cd(489)]=exports[_0x4e78cd(524)]=exports[_0x4e78cd(483)]=exports.handleConfigInfo=exports[_0x4e78cd(576)]=exports.insertStr=exports[_0x4e78cd(467)]=exports.setOriginPtahObject=void 0,require(_0x4e78cd(526))),fs=require("fs"),importVisitor_1=require(_0x4e78cd(471)),_require=require(_0x4e78cd(485)),create=_require[_0x4e78cd(560)],fileHandle_1=require("../features/fileHandle"),commonConfig_1=require(_0x4e78cd(510)),transformReport=require(_0x4e78cd(557)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){var n=_0x4e78cd;thirdComponents=[],originPtahObject[n(529)]=e,originPtahObject[n(554)]=t}function replacepos(e,t,n,o){var i=_0x4e78cd;return e.substring(0,t)+o+e[i(581)](n)}function insertStr(e,t,n){var o=_0x4e78cd;return e.slice(0,t)+n+e[o(562)](t)}function copyDir(e,t){var n=_0x4e78cd,o=2<arguments[n(503)]&&void 0!==arguments[2]&&arguments[2],i=3<arguments[n(503)]&&void 0!==arguments[3]&&arguments[3];try{fs.existsSync(t)||fs[n(558)](t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,o)}catch(e){throw e}}function handleConfigInfo(e,t){var n=_0x4e78cd,o=path[n(583)](t,n(545)),i=JSON[n(525)](fs.readFileSync(o,{encoding:n(561)})),i=(i[n(501)].pages[n(492)][n(520)]=e[n(520)],i[n(497)]=i[n(497)]+path.basename(e[n(573)]),i[n(551)]=e[n(478)],i[n(553)]=e.appName,i.versionName=e[n(486)],i[n(522)]=e[n(522)],JSON[n(575)](i,null,2)),o=(fs[n(490)](o,i),path[n(583)](t,n(492),"hello.ux")),i=(i=fs.readFileSync(o,{encoding:n(561)}))[n(564)](n(479),e[n(468)]);fs.writeFileSync(o,i),fs.existsSync(path[n(583)](t,"Common"))||fs[n(558)](path[n(583)](t,n(586))),copyFile(path.join(t,n(586),path[n(565)](e[n(573)])),e.iconPath)}function _copyH5Pragram(i,r){var a=_0x4e78cd;try{fs[a(464)](i)[a(480)](function(e){var t=a,n=path[t(583)](i,e),e=path[t(583)](r,e),o=fs[t(517)](n);o[t(472)]()&©File(e,n),o.isDirectory()&©Dir(n,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(r,a){var c=_0x4e78cd,s=2<arguments[c(503)]&&void 0!==arguments[2]&&arguments[2];try{fs[c(464)](r)[c(480)](function(e){var t=c,n=path.join(r,e),o=path[t(583)](a,e),i=fs[t(517)](n);i[t(472)]()&&(copyFile(o,n),!s)&&dealWithFile(o,n),i[t(542)]()&&n!==t(504)&&n!==t(556)&&(e===t(504)?copyDir(n,path[t(583)](a,t(556)),!0):copyDir(n,o,s))})}catch(e){throw e}}function dealWithFile(t,n){var e=_0x4e78cd,o=2<arguments[e(503)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1.Applets[e(484)],i=path[e(499)](t);switch(i){case e(577):modifyFileContent(t,n,e(577),o);break;case e(570):modifyFileContent(t,n,e(570));break;default:var r=[commonConfig_1[e(527)][e(484)]];(r=commonConfig_1.Applets[e(523)]?r.concat(commonConfig_1[e(527)][e(523)]):r)[e(480)](function(e){dealWithMainFile(t,n,i,e)})}}function dealWithMainFile(e,t,n,o){var i=_0x4e78cd,r=commonConfig_1.projectFileSuffix[o];switch(n){case r[i(566)]:var a=e[i(564)](n,i(515));modifyFile(e,a,r[i(566)],t,o);break;case r[i(539)]:a=e[i(564)](n,i(587));modifyFile(e,a,r.css,null,o);break;case r[i(512)]:if(!r[i(512)])return;a=e[i(564)](n,".hjs");modifyFile(e,a,r[i(512)],t,o)}}function modifyFile(e,t,n,o){var i=_0x4e78cd,r=4<arguments[i(503)]&&void 0!==arguments[4]?arguments[4]:commonConfig_1.Applets[i(484)];try{fs.renameSync(e,t),modifyFileContent(t,o,n,r)}catch(e){throw console[i(508)](e),e}}function modifyFileContent(e,t,n){var o=_0x4e78cd,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:commonConfig_1[o(527)][o(484)];try{var r,a=fs[o(538)](e,{encoding:o(561)})[o(466)](),c=commonConfig_1.projectFileSuffix[i];switch(n){case c[o(566)]:a=fileHandle_1[o(552)](e,a,t,i),"tt"===i&&(a=fileHandle_1[o(552)](e,a,t,"wx"));break;case c[o(512)]:var s=create(e,a),a=s[o(582)](),p=importVisitor_1[o(572)](a,null,!0,i).filter(function(e){var t=o;return e.type===t(511)});a=fileHandle_1[o(534)](p,s,a,t,i);break;case c[o(539)]:a=fileHandle_1[o(493)](e,a,i),"tt"===i&&(a=fileHandle_1.handleWxssImport(e,a,"wx"));break;case".js":a=fileHandle_1[o(584)](e,t,a,i),"tt"===i&&(a=fileHandle_1.transformJsFile(e,t,a,"wx"));break;case o(570):a&&((r=JSON[o(525)](a))[o(543)]&&handleUsingComponents(r[o(543)]),"my"===commonConfig_1.Applets.appletType&&changeAppJsonItem(r,commonConfig_1[o(549)]),a=JSON[o(575)](r,null,2))}fs[o(490)](e,a)}catch(e){throw e}}function dealWithNodeModuleComponent(n,o){var i=_0x4e78cd,e=fs[i(517)](n);e[i(472)]()&&dealWithFile(n,o),e.isDirectory()&&fs[i(464)](n)[i(480)](function(e){var t=i;dealWithNodeModuleComponent(path[t(583)](n,e),path[t(583)](o,e))})}function transformNodeModuleComponent(){var i=_0x4e78cd;thirdComponents[i(480)](function(e){var t,n=i,o=path[n(583)](originPtahObject[n(554)],n(556),e);fs[n(555)](o)&&(t=path[n(583)](originPtahObject[n(529)],n(556),e),fs.existsSync(t)?dealWithNodeModuleComponent(o,t):dealWithNodeModuleComponent(o,path[n(583)](originPtahObject[n(529)],"node_modules",e)))})}function handleUsingComponents(e){var t,n,o=_0x4e78cd;for(t in e)e[t]&&(n=e[t].split("/"))[0]&&"."!==n[0][0]&&-1===thirdComponents.indexOf(n[0])&&thirdComponents[o(533)](n[0])}function copyConfigFiles(o,i){var r=_0x4e78cd;try{fs[r(464)](o)[r(480)](function(e){var t=r,n=path[t(583)](o,e),e=path[t(583)](i,e);fs[t(517)](n)[t(472)]()&©File(e,n)})}catch(e){throw e}}function copyFile(e,t){var n=_0x4e78cd;fs.writeFileSync(e,fs[n(538)](t))}function changeAppJsonItem(e,t){if(e)for(var n in t)e[n]&&(e[t[n]]=e[n],delete e[n])}function appJsonFile(e,t){var n=_0x4e78cd,o=JSON[n(525)](fs[n(538)](path[n(583)](e,n(579)))[n(466)]()),o=(delete o.package,delete o.name,delete o.versionName,delete o[n(522)],delete o.minPlatformVersion,delete o[n(497)],delete o[n(506)],changeAppJsonItem(o[n(473)],commonConfig_1.windowItems),changeAppJsonItem(o[n(544)],commonConfig_1[n(491)]),o.tabBar&&o[n(544)].list&&o[n(544)].list[n(480)](function(e){changeAppJsonItem(e,commonConfig_1[n(487)])}),Object[n(463)]({},o)),o=(delete o[n(500)],delete o.entry,delete o.debug,delete o[n(465)],-1!==[n(516),"my"][n(571)](commonConfig_1[n(527)][n(484)])&&(o[n(530)]={enableNoDeclareCompProp:!0}),-1!==["my"][n(571)](commonConfig_1[n(527)].appletType)&&(o[n(530)][n(469)]=n(578)),JSON.stringify(o,null,2));fs[n(490)](path[n(583)](e,n(579)),o)}function projectConfigFile(e){var t=_0x4e78cd,n={},o=(commonConfig_1[t(527)].configBasename?fs[t(555)](path.join(e,commonConfig_1[t(527)].configBasename))&&(n=JSON[t(525)](fs.readFileSync(path[t(583)](e,commonConfig_1.Applets[t(477)])).toString())):n={},{ascfRoot:commonConfig_1[t(527)][t(568)],packOptions:{ignore:[]}}),n=(o[t(547)]=n[t(547)],JSON[t(575)](o,null,2));commonConfig_1.Applets[t(477)]&&fs[t(555)](path[t(583)](e,commonConfig_1[t(527)][t(477)]))&&fs[t(536)](path[t(583)](e,commonConfig_1[t(527)].configBasename)),fs[t(535)](path.join(e,t(495)),n,function(e){e&&console[t(548)](e)})}function mkdirsSync(e){var t=_0x4e78cd;return!!fs[t(555)](e)||(mkdirsSync(path[t(496)](e))?(fs[t(558)](e),!0):void 0)}function _0x3bb9(e,t){var n=_0x20e3();return(_0x3bb9=function(e,t){return n[e-=462]})(e,t)}function createDirs(e,t){var n=_0x4e78cd;n(503);fs[n(555)](e)||mkdirsSync(e),fs[n(555)](path[n(583)](e,t))||mkdirsSync(path[n(583)](e,t))}function createTransformReportFile(e,t){var n=_0x4e78cd,e=(globleOutPutPath=path.join(e,"transform.log"),setLanguage(n(462))+t+"\n\n");fs[n(490)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var n=_0x4e78cd,t=(fs[n(555)](path.join(e,"util"))||fs.mkdirSync(path[n(583)](e,n(482))),copyFile(path[n(583)](e,n(482),n(540)),path.join(t,n(498),n(540))),path[n(583)](e,n(481))),e=fs[n(538)](t,{encoding:n(561)}),e=n(541)[n(488)](e);fs[n(490)](t,e)}exports[_0x4e78cd(585)]=setOriginPtahObject,exports[_0x4e78cd(467)]=replacepos,exports[_0x4e78cd(514)]=insertStr,exports[_0x4e78cd(576)]=copyDir,exports.handleConfigInfo=handleConfigInfo,exports[_0x4e78cd(483)]=transformNodeModuleComponent,exports[_0x4e78cd(524)]=copyConfigFiles,exports[_0x4e78cd(489)]=copyFile,exports[_0x4e78cd(494)]=changeAppJsonItem,exports[_0x4e78cd(475)]=appJsonFile,exports[_0x4e78cd(550)]=projectConfigFile,exports[_0x4e78cd(519)]=createDirs,exports[_0x4e78cd(521)]=createTransformReportFile,exports.getGlobleOutPutPath=getGlobleOutPutPath,exports[_0x4e78cd(580)]=adaptApiFile;var lan=JSON[_0x4e78cd(525)](process.env.VSCODE_NLS_CONFIG||_0x4e78cd(528)).locale[_0x4e78cd(502)](),language=require(_0x4e78cd(518));function setLanguage(e,t){var n,o=_0x4e78cd;return language[e]?(n=lan===o(574)?language[e][o(531)]:language[e].english,Array[o(567)](t)&&t[o(480)](function(e,t){n=n.replace("${"+(t+1)+"}",e)}),n):e}exports[_0x4e78cd(509)]=setLanguage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _typeof(t){var r=
|
|
1
|
+
var _0x5ac071=_0x3253;function _0x3253(t,e){var r=_0x3bda();return(_0x3253=function(t,e){return r[t-=119]})(t,e)}function _typeof(t){var r=_0x3253;return(_typeof=r(148)==typeof Symbol&&r(126)==typeof Symbol[r(139)]?function(t){return typeof t}:function(t){var e=r;return t&&e(148)==typeof Symbol&&t[e(160)]===Symbol&&t!==Symbol[e(156)]?e(126):typeof t})(t)}function _classCallCheck(t,e){var r=_0x3253;if(!(t instanceof e))throw new TypeError(r(150))}function _defineProperties(t,e){for(var r=_0x3253,n=0;n<e.length;n++){var i=e[n];i[r(152)]=i[r(152)]||!1,i[r(141)]=!0,r(131)in i&&(i.writable=!0),Object[r(153)](t,_toPropertyKey(i[r(128)]),i)}}function _createClass(t,e,r){var n=_0x3253;return e&&_defineProperties(t[n(156)],e),r&&_defineProperties(t,r),Object[n(153)](t,n(156),{writable:!1}),t}function _toPropertyKey(t){t=_toPrimitive(t,_0x3253(149));return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x3253;if(r(161)!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return(r(149)===e?String:Number)(t);n=n[r(127)](t,e||r(132));if(r(161)!=_typeof(n))return n;throw new TypeError(r(133))}function _0x3bda(){var t=["enumerable","defineProperty","_content","6HLNepu","prototype","1752485JtuqZI","535sWNLsf","833195lVbeQS","constructor","object","75694pkHCwa","positionAt","min","uri","floor","computeLineOffsets","17828BBBsyu","length","5183320xecjeQ","symbol","call","key","line","_uri","value","default","@@toPrimitive must return a primitive value.","getText","getLineOffsets","588233bnbPtG","_lineOffsets","charCodeAt","iterator","exports","configurable","9AxhwCv","character","531GFdivW","max","offsetAt","204tcvtKK","function","string","Cannot call a class as a function","80552EAAqfl"];return(_0x3bda=function(){return t})()}(()=>{for(var t=_0x3253,e=_0x3bda();;)try{if(299968==+parseInt(t(136))+-parseInt(t(162))/2*(-parseInt(t(142))/3)+parseInt(t(123))/4*(-parseInt(t(158))/5)+parseInt(t(155))/6*(parseInt(t(157))/7)+-parseInt(t(151))/8*(-parseInt(t(144))/9)+parseInt(t(125))/10+-parseInt(t(159))/11*(parseInt(t(147))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var u=_0x3253;return _createClass(function t(e,r){var n=_0x3253;_classCallCheck(this,t),this[n(130)]=e,this[n(154)]=r,this._lineOffsets=void 0},[{key:u(134),value:function(){return this._content}},{key:u(120),value:function(){return this._uri}},{key:u(146),value:function(t){var e,r=u,n=this[r(135)]();return t[r(129)]>=n[r(124)]?this[r(154)][r(124)]:t.line<0?0:(e=n[t[r(129)]],n=t[r(129)]+1<n[r(124)]?n[t[r(129)]+1]:this[r(154)][r(124)],Math[r(145)](Math[r(119)](e+t[r(143)],n),e))}},{key:u(135),value:function(){var t=u;return void 0===this[t(137)]&&(this[t(137)]=this[t(122)](this[t(154)],!0)),this[t(137)]}},{key:"computeLineOffsets",value:function(t,e,r){for(var n=u,i=(void 0===r&&(r=0),e?[r]:[]),a=0;a<t[n(124)];a++){var o=t[n(138)](a);13!==o&&10!==o||(13===o&&a+1<t[n(124)]&&10===t[n(138)](a+1)&&a++,i.push(r+a+1))}return i}},{key:u(163),value:function(t){var e=u,r=(t=Math.max(Math.min(t,this._content.length),0),this.getLineOffsets()),n=0,i=r[e(124)];if(0===i)return{line:0,character:t};for(;n<i;){var a=Math[e(121)]((n+i)/2);r[a]>t?i=a:n=a+1}var o=n-1;return{line:o,character:t-r[o]}}}])})();function create(t,e){return new TextDocument(t,e)}module[_0x5ac071(140)]={create:create};
|