@atomicservice/ascf-toolkit 1.0.1-beta.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 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/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.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2839e7=_0x14e0;function _regeneratorRuntime(){var c=_0x14e0;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(237)],p=e[c(418)],f=Object[c(365)]||function(e,t,r){var n=c;e[t]=r[n(219)]},t=c(319)==typeof Symbol?Symbol:{},a=t[c(301)]||"@@iterator",r=t[c(250)]||c(234),n=t.toStringTag||c(372);function o(e,t,r){return Object[c(365)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o,a,i,s,u=c,t=t&&t[u(237)]instanceof y?t:y,t=Object.create(t[u(237)]),n=new T(n||[]);return f(t,u(431),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x14e0;if(s===m)throw Error("Generator is already running");if(s===g){if(r(374)===e)throw t;return{value:l,done:!0}}for(i[r(399)]=e,i[r(262)]=t;;){var n=i[r(346)];if(n){n=function e(t,r){var n=c,o=r.method,a=t[n(301)][o];if(a===l)return r[n(346)]=null,n(374)===o&&t[n(301)].return&&(r.method=n(356),r.arg=l,e(t,r),n(374)===r[n(399)])||n(356)!==o&&(r[n(399)]=n(374),r[n(262)]=new TypeError("The iterator does not provide a '"+o+"' method")),v;o=_(a,t[n(301)],r[n(262)]);if(n(374)===o[n(268)])return r[n(399)]="throw",r.arg=o[n(262)],r[n(346)]=null,v;a=o[n(262)];return a?a.done?(r[t[n(208)]]=a[n(219)],r[n(213)]=t[n(221)],n(356)!==r[n(399)]&&(r[n(399)]="next",r.arg=l),r[n(346)]=null,v):a:(r[n(399)]=n(374),r[n(262)]=new TypeError(n(411)),r[n(346)]=null,v)}(n,i);if(n){if(n===v)continue;return n}}if(r(213)===i[r(399)])i[r(204)]=i[r(232)]=i[r(262)];else if(r(374)===i[r(399)]){if(s===h)throw s=g,i[r(262)];i.dispatchException(i[r(262)])}else r(356)===i[r(399)]&&i.abrupt(r(356),i.arg);s=m;n=_(o,a,i);if(r(318)===n[r(268)]){if(s=i[r(233)]?g:d,n[r(262)]===v)continue;return{value:n[r(262)],done:i[r(233)]}}r(374)===n.type&&(s=g,i.method=r(374),i[r(262)]=n[r(262)])}})}),t}function _(e,t,r){var n=c;try{return{type:n(318),arg:e[n(260)](t,r)}}catch(e){return{type:n(374),arg:e}}}s[c(214)]=u;var h=c(428),d=c(229),m="executing",g=c(305),v={};function y(){}function i(){}function b(){}var t={},P=(o(t,a,function(){return this}),Object[c(359)]),P=P&&P(P(I([]))),A=(P&&P!==e&&p[c(260)](P,a)&&(t=P),b[c(237)]=y[c(237)]=Object[c(254)](t));function C(e){var t=c;[t(213),t(374),t(356)][t(298)](function(t){o(e,t,function(e){return this._invoke(t,e)})})}function x(s,u){var t,o=c;f(this,o(431),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x14e0,e=_(s[e],s,r);if(i(374)!==e[i(268)])return(r=(a=e.arg)[i(219)])&&i(253)==_typeof(r)&&p[i(260)](r,i(373))?u[i(344)](r[i(373)])[i(217)](function(e){t(i(213),e,n,o)},function(e){t(i(374),e,n,o)}):u.resolve(r).then(function(e){a[i(219)]=e,n(a)},function(e){return t("throw",e,n,o)});o(e[i(262)])}(r,n,e,t)})}return t=t?t[o(217)](e,e):e()}})}function R(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(312)]=e[1]),2 in e&&(r[t(243)]=e[2],r[t(364)]=e[3]),this[t(409)][t(215)](r)}function S(e){var t=c,r=e[t(351)]||{};r[t(268)]=t(318),delete r[t(262)],e[t(351)]=r}function T(e){var t=c;this[t(409)]=[{tryLoc:t(287)}],e.forEach(R,this),this[t(408)](!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(260)](r);if(n(319)==typeof r[n(213)])return r;if(!isNaN(r.length))return o=-1,(e=function e(){for(var t=n;++o<r[t(369)];)if(p[t(260)](r,o))return e[t(219)]=r[o],e.done=!1,e;return e.value=l,e[t(233)]=!0,e})[n(213)]=e}throw new TypeError(_typeof(r)+n(383))}return i[c(237)]=b,f(A,c(323),{value:b,configurable:!0}),f(b,c(323),{value:i,configurable:!0}),i[c(384)]=o(b,n,c(339)),s[c(286)]=function(e){var t=c,e=t(319)==typeof e&&e[t(323)];return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e[t(422)]))},s[c(414)]=function(e){var t=c;return Object[t(210)]?Object[t(210)](e,b):(e[t(299)]=b,o(e,n,t(339))),e[t(237)]=Object[t(254)](A),e},s[c(245)]=function(e){return{__await:e}},C(x[c(237)]),o(x[c(237)],r,function(){return this}),s[c(376)]=x,s[c(265)]=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(286)](t)?i:i[a(213)]().then(function(e){var t=a;return e[t(233)]?e[t(219)]:i.next()})},C(A),o(A,n,c(228)),o(A,a,function(){return this}),o(A,c(405),function(){return"[object Generator]"}),s[c(306)]=function(e){var t,n=c,o=Object(e),a=[];for(t in o)a[n(215)](t);return a.reverse(),function e(){for(var t=n;a[t(369)];){var r=a[t(290)]();if(r in o)return e[t(219)]=r,e[t(233)]=!1,e}return e[t(233)]=!0,e}},s[c(284)]=I,T[c(237)]={constructor:T,reset:function(e){var t=c;if(this.prev=0,this.next=0,this[t(204)]=this[t(232)]=l,this[t(233)]=!1,this[t(346)]=null,this[t(399)]=t(213),this.arg=l,this[t(409)].forEach(S),!e)for(var r in this)"t"===r[t(413)](0)&&p[t(260)](this,r)&&!isNaN(+r[t(416)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(233)]=!0,this.tryEntries[0][e(351)]);if(e(374)===t[e(268)])throw t.arg;return this[e(257)]},dispatchException:function(n){var o=c;if(this[o(233)])throw n;var a=this;function e(e,t){var r=o;return i[r(268)]=r(374),i[r(262)]=n,a[r(213)]=e,t&&(a[r(399)]="next",a[r(262)]=l),!!t}for(var t=this[o(409)][o(369)]-1;0<=t;--t){var r=this[o(409)][t],i=r[o(351)];if("root"===r[o(322)])return e("end");if(r[o(322)]<=this[o(397)]){var s=p.call(r,o(312)),u=p[o(260)](r,o(243));if(s&&u){if(this.prev<r[o(312)])return e(r.catchLoc,!0);if(this[o(397)]<r[o(243)])return e(r[o(243)])}else if(s){if(this[o(397)]<r[o(312)])return e(r.catchLoc,!0)}else{if(!u)throw Error(o(297));if(this[o(397)]<r[o(243)])return e(r[o(243)])}}}},abrupt:function(e,t){for(var r=c,n=this[r(409)].length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this[r(397)]&&p.call(o,r(243))&&this[r(397)]<o[r(243)]){var a=o;break}}var i=(a=a&&(r(363)===e||r(400)===e)&&a[r(322)]<=t&&t<=a[r(243)]?null:a)?a[r(351)]:{};return i[r(268)]=e,i[r(262)]=t,a?(this.method=r(213),this.next=a[r(243)],v):this.complete(i)},complete:function(e,t){var r=c;if(r(374)===e[r(268)])throw e[r(262)];return r(363)===e[r(268)]||"continue"===e.type?this[r(213)]=e[r(262)]:r(356)===e[r(268)]?(this.rval=this.arg=e[r(262)],this[r(399)]=r(356),this[r(213)]=r(334)):r(318)===e[r(268)]&&t&&(this.next=t),v},finish:function(e){for(var t=c,r=this[t(409)][t(369)]-1;0<=r;--r){var n=this[t(409)][r];if(n[t(243)]===e)return this[t(377)](n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=c,r=this[t(409)].length-1;0<=r;--r){var n,o,a=this[t(409)][r];if(a[t(322)]===e)return"throw"===(n=a[t(351)])[t(268)]&&(o=n[t(262)],S(a)),o}throw Error(t(246))},delegateYield:function(e,t,r){var n=c;return this[n(346)]={iterator:I(e),resultName:t,nextLoc:r},n(213)===this[n(399)]&&(this[n(262)]=l),v}},s}function _typeof(e){var r=_0x14e0;return(_typeof=r(319)==typeof Symbol&&"symbol"==typeof Symbol[r(301)]?function(e){return typeof e}:function(e){var t=r;return e&&t(319)==typeof Symbol&&e[t(323)]===Symbol&&e!==Symbol[t(237)]?t(427):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x14e0;try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u[s(233)]?t(c):Promise[s(344)](c)[s(217)](n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x14e0,o=u[n(296)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,n(213),e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(374),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x14e0(207))}function _iterableToArray(e){var t=_0x14e0;if("undefined"!=typeof Symbol&&null!=e[Symbol[t(301)]]||null!=e[t(421)])return Array[t(308)](e)}function _arrayWithoutHoles(e){if(Array[_0x14e0(223)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x14e0,s=i(288)!=typeof Symbol&&e[Symbol[i(301)]]||e[i(421)];if(s)return o=!(n=!0),{s:function(){s=s[i(260)](e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(356)]||s[e(356)]()}finally{if(o)throw r}}};if(Array[i(223)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e[i(369)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e[i(369)]?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r,n=_0x14e0;if(e)return n(406)==typeof e?_arrayLikeToArray(e,t):(r={}[n(405)][n(260)](e)[n(416)](8,-1),n(325)===r&&e[n(323)]&&(r=e[n(323)][n(422)]),n(274)===r||n(222)===r?Array.from(e):n(295)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(433)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){(null==t||t>e[_0x14e0(369)])&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperty(e,t,r){var n=_0x14e0;return(t=_toPropertyKey(t))in e?Object[n(365)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x14e0,e=_toPrimitive(e,t(406));return t(427)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x14e0;if(r(253)!=_typeof(e)||!e)return e;var n=e[Symbol[r(426)]];if(void 0===n)return(r(406)===t?String:Number)(e);n=n[r(260)](e,t||r(403));if(r(253)!=_typeof(n))return n;throw new TypeError(r(212))}(()=>{for(var e=_0x14e0,t=_0x159f();;)try{if(964989==-parseInt(e(335))+parseInt(e(244))/2*(-parseInt(e(342))/3)+parseInt(e(292))/4*(-parseInt(e(241))/5)+parseInt(e(230))/6+parseInt(e(236))/7+parseInt(e(249))/8*(-parseInt(e(225))/9)+-parseInt(e(258))/10*(-parseInt(e(350))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require(_0x2839e7(401)),fs=require("fs"),webpack=require("webpack"),json5=require(_0x2839e7(256)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x2839e7(251)),ManifestGeneratorPlugin=require(_0x2839e7(333)),I18NPlugin=require("./plugin/i18n-transform-plugin"),CopyAscfBundlePlugin=require(_0x2839e7(259)),_packOptions=require(_0x2839e7(379)),_require=require("../common/utils"),clearResource=_require[_0x2839e7(328)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x2839e7(332)],PROJECT_CONFIG=_require.PROJECT_CONFIG,ASCF_SRC_PATH=_require[_0x2839e7(430)],ASCF_BUILD_PATH=_require[_0x2839e7(267)],RAWFILE_DIR=_require[_0x2839e7(349)],WebpackTargetPlugin=require("./plugin/webpack-target/index"),LoggerPlguin=require(_0x2839e7(343)),utils=require(_0x2839e7(381)),commonUtils=require(_0x2839e7(218)),removeStrictModePlugin=require(_0x2839e7(216)),chalk=require(_0x2839e7(209)),ExtConfigPlugin=require(_0x2839e7(235));function _0x159f(){var e=["prototype","ERROR: app.json doesn't contain any page.","@babel/preset-env","exit","196505tuemEj","WARNING: The build directory is not cleared. Use the -c parameter.","finallyLoc","252572yehbWa","awrap","illegal catch attempt","set","javascript/auto","120SokhYn","asyncIterator","./plugin/html-generator-plugin","widgetPathsList","object","create","route-mapping.json","json5","rval","1560vJOzXb","./plugin/copy-bundle-plugin","call","./trustlist-hxml-verify-loader.js","arg","@babel/plugin-transform-modules-commonjs","toLowerCase","async","yellow","ASCF_BUILD_PATH","type","independent","readJsonFile","ERROR: ",".ascf","pages","Map","app.css.js","routeMapping","list",".ux","selectedIconPath","babel-loader","manifest",".pack.js","isIgnoreFile","values",".hxml","isGeneratorFunction","root","undefined","fixEntryPath","pop","relative","52IPBXQD","stop","web","Arguments","apply","try statement without catch or finally","forEach","__proto__","isDirectory","iterator","filePath","existsSync","i18n","completed","keys","@babel/plugin-proposal-class-properties","from","pagePath","node_modules","filter","catchLoc","noDeprecation","some","concat","LoaderOptionsPlugin","./appjson-loader","normal","function","dist","./hxml-loader","tryLoc","constructor","yes","Object","?type=component","none","clearResource","app.css","createCSSRule","compJsonPath","PROJECT_PATH","./plugin/manifest-generator-plugin","end","693600wwufEf","warn","import-scripts","trim","GeneratorFunction","page","miniprogram_npm","33bwlOsS","../common/logger-plugin","resolve","versionNum","delegate","custom-tab-bar/index.hxml","inline-cheap-source-map","RAWFILE_DIR","176363AvbVxR","completion","components","app.js","build-profile.json5","getProjectAbsPath","return","modules","named","getPrototypeOf","custom-tab-bar/index.pack.js","global","custom","break","afterLoc","defineProperty","join","readdir","componentList","length","find","optimization","@@toStringTag","__await","throw","subpackages","AsyncIterator","complete","./path-process-loader.js","./common/packoptions-utils","text","./common/utils","error"," is not iterable","displayName","ERROR: modify app.json tabBar and recompile it","custom-tab-bar/index","projectComponentsMap"," cannot be in the subpackage directory","loadBabelModule","app","app.json","exports","defFreezeProperty","usingComponents","ERROR: build-profile.json5 file modules is null","customTabBar","prev","useCustomTabBar","method","continue","path","srcPath","default","env","toString","string","fa-compiler/loader.js","reset","tryEntries","./trustlist-js-verify-loader.js","iterator result is not an object","independentList","charAt","mark","appType","slice"," contains error, please check it.","hasOwnProperty","replace","component","@@iterator","name","./hjs-loader","[name]",".js","toPrimitive","symbol","suspendedStart","ERROR: Failed to find the file: ","ASCF_SRC_PATH","_invoke","ERROR: Can not resolve file : app.json","test","readFileSync","ERROR: build-profile.json5 file not found","abrupt","webapp","get","sent","map","red","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","resultName","../ascf-compiler/chalk/bundle.cjs","setPrototypeOf","router","@@toPrimitive must return a primitive value.","next","wrap","push","../common/remove-strict-mode-plugin","then","../common/utils","value",".json","nextLoc","Set","isArray","tabBar","22347gchCXL","' does not have the component attribute configured. ","parse","Generator","suspendedYield","156420cWIgKn","lstatSync","_sent","done","@@asyncIterator","./plugin/extConfig-plugin","7480725EAmGsu"];return(_0x159f=function(){return e})()}chalk.level=1,process[_0x2839e7(313)]=!0;var ignoreRules=generateIgnoreRule(PROJECT_CONFIG),ZIP_PATH=path.join(ASCF_SRC_PATH,_0x2839e7(272),_0x2839e7(320)),buildProfileJson5Path=path.resolve(PROJECT_PATH,_0x2839e7(354));if(!fs.existsSync(buildProfileJson5Path))throw _0x2839e7(435);var buildProfile=json5[_0x2839e7(227)](fs[_0x2839e7(434)](buildProfileJson5Path)[_0x2839e7(405)]());if(!buildProfile[_0x2839e7(357)]||0===buildProfile[_0x2839e7(357)].length)throw _0x2839e7(395);var BUILD_PATH=path.resolve(PROJECT_PATH,buildProfile[_0x2839e7(357)][0][_0x2839e7(402)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x2839e7(304),APP=_0x2839e7(390),APP_TYPE=_0x2839e7(437);function handleUsingComponents(e,t){var r,n=_0x2839e7;if(e)for(var o in e)Object[n(237)][n(418)][n(260)](e,o)&&(r=e[o][n(338)](),e[o]=utils[n(355)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x2839e7,s=["iconPath",r(279),r(309)],n=(null==(n=e[r(224)])?void 0:n[r(277)])||[],e=e.subPackages||e[r(375)]||[];n!==[]&&e!==[]&&(t=e[r(205)](function(e){return e[r(287)]})[r(311)](function(e){return e}),i=[],n[r(298)](function(a){t.forEach(function(n){var o=_0x14e0;s[o(298)](function(e){var t,r=o;path.join(ASCF_SRC_PATH,null!=(t=a[e])?t:"").startsWith(path[r(366)](ASCF_SRC_PATH,n,"/"))&&i.push(chalk[r(206)]("ERROR: tabBar "[r(315)](a[r(380)]," ")[r(315)](e,r(388))))})})}),0<i.length)&&(i.forEach(function(e){var t=r;console[t(382)](chalk[t(206)](e))}),console[r(382)](chalk[r(206)](r(385))),process[r(240)](1))}function readAppJson(){var r=_0x2839e7,e=_defineProperty({},APP,new Map),t=path[r(366)](ASCF_SRC_PATH,r(391));if(!fs[r(303)](t))throw r(432);var n=commonUtils[r(270)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(394)],t),n[r(340)]={},n[r(412)]=[],[]);if(!n[r(273)]||n.pages[r(369)]<=0)throw r(238);putPageInfoToEntryList(n[r(273)],"",!1,n,e[APP]);var o=[r(375),"subPackages"][r(370)](function(e){var t=r;return Object[t(237)][t(418)].call(n,e)});if(t[r(369)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(375)]=t);try{for(i.s();!(a=i.n())[r(233)];){var s=a[r(219)],u=new Map;e[s[r(287)]]=u,putPageInfoToEntryList(s[r(273)],s[r(287)],s[r(269)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n[r(375)]=t);try{for(l.s();!(c=l.n()).done;){var p=c[r(219)],f=new Map;e[p.root]=f,putPageInfoToEntryList(p.pages,p[r(287)],p[r(269)],n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x2839e7;e[r(268)]=null!=(t=null!=(t=e[r(268)])?t:e[r(415)])?t:APP_TYPE,delete e[r(415)]}function hasCustomTabBar(e){var t=_0x2839e7;return(e.tabBar||{})[t(362)]&&fs.existsSync(path[t(344)](ASCF_SRC_PATH,t(347)))}function handingCustomTabBar(e){var t=_0x2839e7;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(224)].list);try{for(n.s();!(r=n.n()).done;){var o=r[t(219)];if(!e[t(340)][o.pagePath])throw"ERROR: Can not resolve tabBar list item : "+"'".concat(o[t(309)],"', please check tabBar configuration.");e[t(340)][o[t(309)]][t(398)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=_0x2839e7,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object.keys(r)[t(298)](function(e){n[t(215)]({key:e,path:r[e]})}),n}function putPageInfoToEntryList(e,t,r,n,o){var a=_0x2839e7;if(e)for(var i in e)if(Object[a(237)][a(418)][a(260)](e,i)){var i=path[a(366)](ASCF_SRC_PATH,t,e[i]),s=path[a(291)](ASCF_SRC_PATH,i);if(!_packOptions[a(283)](s,ignoreRules)){var s=s[a(419)](/\\/g,"/"),i=""[a(315)](i,a(220)),u=void 0;try{u=fs[a(303)](i)?JSON[a(227)](fs[a(434)](i)[a(405)]()):{}}catch(e){throw a(271)[a(315)](i,a(417))}handleUsingComponents(u.usingComponents,i),r&&n.independentList.push(s),n[a(340)][s]=u,t||getUsingComponents(n,"","",o,"page"),getUsingComponents(u,i,s,o,a(340))}}}function getUsingComponents(a,i,e,s,t){var u=_0x2839e7,c=5<arguments[u(369)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=a[u(422)];if(a.usingComponents)for(var f in a.usingComponents)(()=>{var e=u;if(Object.prototype[e(418)][e(260)](a[e(394)],f)){var t=a.usingComponents[f],r=utils.getAbsPath(t,i,ASCF_SRC_PATH,e(220)),n=r[e(302)],r=r[e(289)],o=path[e(291)](ASCF_SRC_PATH,n)[e(419)](/\\/g,"/")[e(419)](/\.json/,""),t=r||o;if(a[e(394)][f]=t,!p&&i===n)return p=f;if(c[e(370)](function(e){return e===n}))throw"ERROR: Can not use cyclic dependened component with component path : ".concat(n);l[e(314)](function(e){return e.path===path})||l[e(215)]({path:t,key:f,compJsonPath:n});r=JSON[e(227)](fs[e(434)](n).toString());handleUsingComponents(r[e(394)],n),getUsingComponents(r,n,t,s,"component",c[e(315)]([n]))}})();e&&!s[u(203)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s.set(e,t))}function getI18NEntry(u){var c=_0x2839e7;fs[c(367)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n())[r(233)];){var a,i=n[r(219)],s=path[r(366)](u,i)[r(419)](/\\/g,"/");fs[r(231)](s)[r(300)]()&&!/(node_modules)|(\.ascf)/.test(i)&&((a=s.split("/"))[a[r(369)]-1][r(264)]()===I18N&&I18N_ENTRY[r(215)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x2839e7,o={},t=e[n(387)],r=[],a=(Object.keys(t).reverse()[n(298)](function(e){r.push(t[e])}),o[n(353)]=path[n(344)](ASCF_SRC_PATH,"app.json?package=app")[n(419)](/\\/g,"/"),utils.mergeMap(r)),i=path[n(344)](ASCF_SRC_PATH,n(329));if(fs[n(303)](i)&&(o[n(275)]=path[n(344)](ASCF_SRC_PATH,"app.css")),hasCustomTabBar(e.manifest)){var s,i=path[n(344)](ASCF_SRC_PATH,n(347)),u=i[n(419)](/\.hxml$/,n(220)),c=(o[n(360)]="".concat(i,n(326)),_createForOfIteratorHelper(e[n(281)][n(224)].list));try{for(c.s();!(s=c.n()).done;){var l=s.value;a[n(203)](l[n(309)])&&a[n(203)](l[n(309)])[n(368)][n(215)]({path:n(386),key:n(396),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:n(420),compJsonPath:u};t[n(390)][n(247)]("custom-tab-bar/index",i)}return a[n(298)](function(e,t){var r=n;return o[""[r(315)](t,r(282))]=e[r(331)][r(419)](/\.json$/,".hxml")}),utils[n(393)](e,n(352),a),generateWidgetsEntry(o,e),o}function _0x14e0(e,t){var r=_0x159f();return(_0x14e0=function(e,t){return r[e-=203]})(e,t)}function generateWidgetsEntry(o,r){var a,n,i=_0x2839e7,e=r[i(281)];r.manifest&&e[i(211)]&&((a=e[i(211)][i(273)])&&Object[i(306)](a)[i(298)](function(e){var t=i,r=a[e],n=r[t(420)],r=(r||console[t(336)](chalk[t(266)]("WARNING:Route information in the manifest.json file is incomplete:\n Page '".concat(e,t(226))+"By default, '"[t(315)](n,"' is used."))),path[t(366)](ASCF_SRC_PATH,e,n)),e="".concat(path[t(366)](e,n),t(425));if(fs[t(303)](""[t(315)](r,t(278))))o[e]=""[t(315)](r,t(278));else if(!fs[t(303)](""[t(315)](r,t(285))))throw t(429)[t(315)](r,t(278))}),e=e.widgets)&&0<e[i(369)]&&(r[i(252)]=[],n="",e[i(298)](function(e){var t=i;n=e[t(401)],r[t(252)][t(215)](path[t(366)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x2839e7,t={targets:{node:8}};return{rules:[][e(315)](_toConsumableArray(utils[e(330)]()),[{test:/\.js$/,use:[{loader:utils[e(389)](e(280)),options:{presets:[[utils.loadBabelModule(e(239)),t]],plugins:[utils.loadBabelModule(e(263)),utils[e(389)](e(307))]}},{loader:path[e(344)](__dirname,e(410))}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(344)](__dirname,e(423))},{loader:utils[e(389)](e(280)),options:{presets:[[utils[e(389)]("@babel/preset-env"),t]],plugins:[utils[e(389)](e(263)),removeStrictModePlugin]}},{loader:path[e(344)](__dirname,e(378))},{loader:path[e(344)](__dirname,e(410))}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(389)](e(280)),options:{presets:[[utils.loadBabelModule("@babel/preset-env"),t]],compact:!1}},{loader:path[e(344)](__dirname,e(321))},{loader:path[e(344)](__dirname,e(261))}]},{test:/app\.json$/,type:e(248),use:[{loader:path[e(344)](__dirname,e(317))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(344)](__dirname,e(407))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions.parseIgnoreRules(e):t)||{}}function generateRouteMapping(e){var t=_0x2839e7,r=e[t(281)][t(276)]||{},n=path[t(366)](ASCF_SRC_PATH,t(255));if(fs[t(303)](n)){var o=JSON[t(227)](fs.readFileSync(n).toString());if(o)for(var a in o)Object[t(237)][t(418)][t(260)](o,a)&&(r[a]=o[a])}0<Object[t(306)](r)[t(369)]&&(e[t(281)][t(276)]=r)}function generatePlugins(e){var t=_0x2839e7;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(281)]}),new ManifestGeneratorPlugin({manifest:e[t(281)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e.manifest,pagesInfo:e[t(281)][t(340)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(352)]}),new webpack[t(316)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(281)],components:e[t(352)],projectComponentsMap:e[t(387)],versionNum:e[t(345)],widgetPathsList:e[t(252)],widgetsDependList:e[t(252)],projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(281)][t(394)])}}),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=_0x2839e7;return{modules:[path[e(366)](ASCF_SRC_PATH,e(341)),path[e(366)](ASCF_SRC_PATH,"node_modules"),path[e(366)](__dirname,"..","..",e(310)),path.join(__dirname,"..","..","..","..",e(310))]}}function checkBuildResources(){var e=_0x2839e7;(fs[e(303)](ZIP_PATH)||fs[e(303)](BUILD_PATH)||fs[e(303)](ASCF_BUILD_PATH))&&(console[e(336)](chalk[e(266)](e(242))),process[e(240)](1))}function generateConfig(){return _generateConfig.apply(this,arguments)}function _generateConfig(){var e=_0x2839e7;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[e(414)](function e(){var r,n;return _regeneratorRuntime().wrap(function(e){for(var t=_0x14e0;;)switch(e[t(397)]=e[t(213)]){case 0:if(process[t(404)][t(328)]===t(324))return e[t(213)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(213)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:IS_PRD?"production":"development",devtool:!IS_PRD&&t(348),context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(424),publicPath:"/",globalObject:t(361),enabledChunkLoadingTypes:[t(337)]},target:t(294),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(327),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(265),cacheGroups:{default:!1}}}},IS_PRD||(n[t(371)].moduleIds=t(358)),e[t(436)](t(356),n);case 11:case"end":return e[t(293)]()}},e)})))[e(296)](this,arguments)}module[_0x2839e7(392)]=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 _0xeef3ef=_0xc511;function _typeof(e){var f=_0xc511;return(_typeof=f(342)==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e[f(366)]===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,f){var o=_0xc511;if(!(e instanceof f))throw new TypeError(o(462))}function _defineProperties(e,f){for(var o=_0xc511,t=0;t<f[o(488)];t++){var n=f[t];n.enumerable=n[o(461)]||!1,n[o(335)]=!0,o(446)in n&&(n[o(369)]=!0),Object[o(362)](e,_toPropertyKey(n[o(489)]),n)}}function _createClass(e,f,o){var t=_0xc511;return f&&_defineProperties(e[t(381)],f),o&&_defineProperties(e,o),Object[t(362)](e,t(381),{writable:!1}),e}function _0x5e3b(){var e=["touchEnd","openCommunityEditor","onRegionChange","enablePullDownRefresh","touchCancel","getAccountInfoSync","onToBindWithTagEvents",".wxss","setBackgroundTextStyle",".qjs","getunionid","startLocationUpdate","Applets","tablebarListItems",".ttml","subscribeService","showTabBarRedDot","createAudioContext","onChange","showNavigationBarLoading","onAnimationIteration","onDisappear","requestPolymerPayment","getBackgroundAudioManager","pauseBackgroundAudio","offSocketClose","getDirectivesReg","setTopBarText","onBackgroundAudioStop","772835Qpzscc","onRenderStart","onAudioInterruptionBegin","onShareAppMessage","setClipboardData","directivesPrefix","string","calculateRoute","chooseCity","getAppIdSync","offSocketMessage","setTabBarItem","hideTabBarRedDot","bindanimationfinish",".css","offSocketOpen","onError","closeBLEConnection","onScroll","99WVLLcI","getRunScene","seekBackgroundAudio","onFullScreenChange","wx:","getEnvInfoSync","onChangeEnd","stopAccelerometer","value","onURLQueryChange","hideHomeButton","commonOnEvents","hideToast","project.swan.json","152465wIPjba","onChanging","compressVideo","startRecord","block-color","compressImage","onUserAction","setNavigationBar","addTemplate","enumerable","Cannot call a class as a function","onFocus","interfacesForTransform","nextTick","2837676EBpvWb","isLoginSync","deletesitemap","scanCode","createAnimationVideo","Alipay","onTimeUpdate","navigateToSmartProgram","block-size","getURLQuery","resetConfig","openShare","onCalloutTap","onAnimationEnd","offLocationChange","1599774iMRrfI","24lcdoBs",".ttss","toPrimitive",".qxml","mute","projectFileSuffix","length","key","onAudioInterruptionEnd","object","setTabBarStyle","473960wqRCaD","bindchange","__esModule","polygons","onTransition","365877wYqGMx","updateBookshelfReadTime","setEnableDebug","startWifi","createInnerAudioContext","rsa","tagEventToTransform","@@toPrimitive must return a primitive value.","getBackgroundAudioPlayerState","weChat","configBasename","Baidu","onWindowResize","call","createARCameraContext","onBlur","tt:","tablebarItems","vibrate","offAudioInterruptionEnd","onStop","project.config.json","closeCommunityEditor","playVoice","72ZmFNbd","shareFile","list","getSelectedTextRange","openReplyEditor","multiLevelSelect","onTransitionEnd","bindwaiting","onFirstAppear","getSwanId","navigationBarBackgroundColor","setPageInfo","arrayBufferToBase64","offAudioInterruptionBegin","configBasenameArray","2084ZbjJlR","onBackgroundAudioPlay","36AsoGNR","stopLocationUpdate","Headline","setDocumentTitle","getAvailableAudioSources","navigateBackSmartProgram","quickapp","wxs","chooseMessageFile","configurable","datePicker","getRealtimeLogManager","stopVoice","hideBackHome","symbol","getClipboardData","function","onConfirm","stopWifi","pauseVoice","optionsSelect","submitsitemap","setMetaKeywords",".swan","deleteresource","saveFile","invalidApis","touchStart","quickapp.config.json","queryBookshelf","SDKVersion",".sjs",".acss","onPanelTap","submitresource","watchShake","defineProperty","concat","minProgramLanguage","672GTIOZV","constructor","setLocatedCity","onScrollToUpper","writable","requestHwPayment","specialTag","touchMove","onLocationChange","setWifiList","getServerTime","windowItems","closeReplyEditor","qa:","saveFileToDisk","getTemplateList","prototype","showAuthGuide","onScale","playBackgroundAudio","iconPath","import-sjs","onPlay","onInput",".wxs"];return(_0x5e3b=function(){return e})()}function _toPropertyKey(e){var f=_0xc511,e=_toPrimitive(e,f(425));return f(340)==_typeof(e)?e:e+""}function _toPrimitive(e,f){var o=_0xc511;if(o(491)!=_typeof(e)||!e)return e;var t=e[Symbol[o(484)]];if(void 0===t)return(o(425)===f?String:Number)(e);t=t[o(511)](e,f||"default");if(o(491)!=_typeof(t))return t;throw new TypeError(o(505))}(()=>{for(var e=_0xc511,f=_0x5e3b();;)try{if(283923==+parseInt(e(498))+parseInt(e(324))/2*(parseInt(e(365))/3)+-parseInt(e(326))/4*(-parseInt(e(452))/5)+parseInt(e(466))/6+-parseInt(e(419))/7*(-parseInt(e(482))/8)+parseInt(e(438))/9*(-parseInt(e(493))/10)+parseInt(e(481))/11*(-parseInt(e(309))/12))break;f.push(f.shift())}catch(e){f.push(f.shift())}})(),Object[_0xeef3ef(362)](exports,_0xeef3ef(495),{value:!0}),exports[_0xeef3ef(464)]=exports[_0xeef3ef(396)]=exports[_0xeef3ef(504)]=exports.commonOnEvents=exports[_0xeef3ef(402)]=exports[_0xeef3ef(403)]=exports.tablebarItems=exports.windowItems=exports[_0xeef3ef(323)]=exports[_0xeef3ef(371)]=exports[_0xeef3ef(424)]=exports[_0xeef3ef(487)]=exports[_0xeef3ef(364)]=exports[_0xeef3ef(352)]=void 0,exports[_0xeef3ef(352)]=["base64ToArrayBuffer",_0xeef3ef(321),_0xeef3ef(490),_0xeef3ef(421),_0xeef3ef(304),_0xeef3ef(322),_0xeef3ef(500),_0xeef3ef(450),_0xeef3ef(409),"hideNavigationBarLoading",_0xeef3ef(398),"setBackgroundColor",_0xeef3ef(406),_0xeef3ef(492),_0xeef3ef(430),_0xeef3ef(431),"createAnimation",_0xeef3ef(465),"getMenuButtonBoundingClientRect",_0xeef3ef(457),_0xeef3ef(454),_0xeef3ef(338),"setInnerAudioOption",_0xeef3ef(308),_0xeef3ef(345),_0xeef3ef(330),_0xeef3ef(502),_0xeef3ef(407),"stopBackgroundAudio",_0xeef3ef(440),_0xeef3ef(384),_0xeef3ef(414),_0xeef3ef(418),_0xeef3ef(325),"onBackgroundAudioPause",_0xeef3ef(506),_0xeef3ef(413),"stopRecord",_0xeef3ef(455),"getRecorderManager",_0xeef3ef(327),"startLocationUpdateBackground",_0xeef3ef(401),_0xeef3ef(373),_0xeef3ef(480),_0xeef3ef(341),_0xeef3ef(374),_0xeef3ef(501),_0xeef3ef(344),_0xeef3ef(379),"createOffscreenCanvas","onMemoryWarning","offMemoryWarning",_0xeef3ef(337),_0xeef3ef(448),_0xeef3ef(417),_0xeef3ef(510),"offWindowResize",_0xeef3ef(334),"checkSession","getUserInfo",_0xeef3ef(370),_0xeef3ef(395),_0xeef3ef(428),_0xeef3ef(439),_0xeef3ef(356),_0xeef3ef(339),_0xeef3ef(459),"chooseAlipayContact",_0xeef3ef(427),"onLocatedComplete",_0xeef3ef(367),"regionPicker",_0xeef3ef(336),_0xeef3ef(426),_0xeef3ef(346),_0xeef3ef(314),"setCanPullDown",_0xeef3ef(415),_0xeef3ef(429),_0xeef3ef(434),"offSocketError",_0xeef3ef(486),_0xeef3ef(322),_0xeef3ef(304),_0xeef3ef(421),"onAudioInterruptionEnd",_0xeef3ef(303),_0xeef3ef(361),_0xeef3ef(375),_0xeef3ef(382),_0xeef3ef(503),_0xeef3ef(475),"setURLQuery",_0xeef3ef(447),"ai",_0xeef3ef(512),_0xeef3ef(470),"createLivePlayerContext","createRtcRoomContext",_0xeef3ef(443),_0xeef3ef(400),_0xeef3ef(467),_0xeef3ef(412),_0xeef3ef(320),"setMetaDescription",_0xeef3ef(348),_0xeef3ef(329),"loadSubPackage","reportAnalytics","getSystemRiskInfo",_0xeef3ef(405),"insertBookshelf","deleteBookshelf",_0xeef3ef(355),_0xeef3ef(499),"navigateToBookshelf",_0xeef3ef(318),_0xeef3ef(422),_0xeef3ef(477),_0xeef3ef(310),_0xeef3ef(473),_0xeef3ef(331),_0xeef3ef(391),_0xeef3ef(307),_0xeef3ef(313),_0xeef3ef(377),_0xeef3ef(360),_0xeef3ef(350),_0xeef3ef(347),_0xeef3ef(468),"getTemplateLibraryList","getTemplateLibraryById",_0xeef3ef(460),_0xeef3ef(380),"deleteTemplate","sendTemplateMessage"],exports[_0xeef3ef(364)]={qa:_0xeef3ef(332),wx:_0xeef3ef(507),swan:_0xeef3ef(509),my:_0xeef3ef(471),tt:_0xeef3ef(328)},exports[_0xeef3ef(487)]={qa:{hxml:_0xeef3ef(485),css:".css",hjs:_0xeef3ef(399)},wx:{hxml:".wxml",css:_0xeef3ef(397),hjs:_0xeef3ef(389)},swan:{hxml:_0xeef3ef(349),css:_0xeef3ef(433),hjs:_0xeef3ef(357)},my:{hxml:".axml",css:_0xeef3ef(358),hjs:_0xeef3ef(357)},tt:{hxml:_0xeef3ef(404),css:_0xeef3ef(483),hjs:_0xeef3ef(357)}},exports[_0xeef3ef(424)]={qa:_0xeef3ef(378),wx:_0xeef3ef(442),swan:"s-",my:"a:",tt:_0xeef3ef(514)},exports.specialTag={wx:_0xeef3ef(333),swan:_0xeef3ef(386),my:_0xeef3ef(386),tt:null},exports[_0xeef3ef(323)]=[_0xeef3ef(306),_0xeef3ef(451)];var configBasename={qa:_0xeef3ef(354),wx:"project.config.json",swan:_0xeef3ef(451),my:null,tt:"project.config.json"},addSupportTypes=(exports[_0xeef3ef(376)]={titleBarColor:_0xeef3ef(319),pullRefresh:_0xeef3ef(393),defaultTitle:"navigationBarTitleText"},exports[_0xeef3ef(302)]={textColor:"color",items:_0xeef3ef(311)},exports[_0xeef3ef(403)]={name:"text",icon:_0xeef3ef(385),activeIcon:"selectedIconPath"},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var f=_0xeef3ef;function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:"appletType",get:function(){return o._appletType},set:function(e){o[_0xc511(476)](e),o._appletType=e}},{key:f(476),value:function(e){o[f(508)]=configBasename[e],o.addSupportTypes=addSupportTypes[e]}},{key:f(416),value:function(e){return new RegExp("^"[f(363)](exports.directivesPrefix[e],".*"))}}])})();function _0xc511(e,f){var o=_0x5e3b();return(_0xc511=function(e,f){return o[e-=302]})(e,f)}exports.Applets=Applets,exports[_0xeef3ef(449)]=[_0xeef3ef(353),_0xeef3ef(372),_0xeef3ef(390),_0xeef3ef(394),"tap","longTap"],exports[_0xeef3ef(504)]={swiper:{onAnimationEnd:_0xeef3ef(432)},video:{onLoading:_0xeef3ef(316)},checkbox:{onChange:_0xeef3ef(494)},slider:{"handle-size":_0xeef3ef(474),handleSize:"block-size","handle-color":_0xeef3ef(456),handleColor:"block-color"},map:{polygon:_0xeef3ef(496)}},exports[_0xeef3ef(396)]={view:[_0xeef3ef(315),_0xeef3ef(410),"onAnimationStart",_0xeef3ef(479),"onAppear",_0xeef3ef(411),_0xeef3ef(317)],"movable-view":["onChange",_0xeef3ef(383),_0xeef3ef(444)],"scroll-view":[_0xeef3ef(368),"onScrollToLower",_0xeef3ef(437)],swiper:[_0xeef3ef(408),_0xeef3ef(497)],"checkbox-group":[_0xeef3ef(408)],form:["onSubmit","onReset"],input:[_0xeef3ef(388),_0xeef3ef(463),_0xeef3ef(513),_0xeef3ef(343)],picker:[_0xeef3ef(408)],"picker-view":["onChange"],"radio-group":[_0xeef3ef(408)],slider:["onChange",_0xeef3ef(453)],switch:[_0xeef3ef(408)],textarea:[_0xeef3ef(388),_0xeef3ef(463),_0xeef3ef(513),_0xeef3ef(343)],image:["onLoad",_0xeef3ef(435)],video:[_0xeef3ef(387),"onPause","onEnded",_0xeef3ef(472),_0xeef3ef(435),_0xeef3ef(441),_0xeef3ef(458),_0xeef3ef(305),_0xeef3ef(420)],map:["onMarkerTap",_0xeef3ef(478),"onControlTap",_0xeef3ef(392),_0xeef3ef(359)]},exports.interfacesForTransform={confirm:"showModal",saveImage:"saveImageToPhotosAlbum",connectBLEDevice:"createBLEConnection",disconnectBLEDevice:_0xeef3ef(436),scan:_0xeef3ef(469),setClipboard:_0xeef3ef(423),getClipboard:"getClipboardData",getSelectedTextRange:"hideKeyboard",hideKeyboard:_0xeef3ef(312),compressVideo:_0xeef3ef(454),saveFileToDisk:_0xeef3ef(351),addPhoneRepeatCalendar:"insertCalendar",stopAccelerometer:_0xeef3ef(445)};
|
|
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 _0x1d7e79=_0x143d,path=((()=>{for(var e=_0x143d,t=_0x265d();;)try{if(516911==+parseInt(e(495))+-parseInt(e(485))/2*(-parseInt(e(461))/3)+parseInt(e(459))/4*(-parseInt(e(442))/5)+parseInt(e(445))/6*(parseInt(e(457))/7)+parseInt(e(523))/8+-parseInt(e(438))/9*(parseInt(e(548))/10)+parseInt(e(426))/11*(-parseInt(e(462))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x1d7e79(475)](exports,_0x1d7e79(534),{value:!0}),exports[_0x1d7e79(544)]=exports.adaptApiFile=exports[_0x1d7e79(514)]=exports[_0x1d7e79(521)]=exports[_0x1d7e79(513)]=exports[_0x1d7e79(489)]=exports.appJsonFile=exports.changeAppJsonItem=exports[_0x1d7e79(497)]=exports.copyConfigFiles=exports.transformNodeModuleComponent=exports[_0x1d7e79(484)]=exports[_0x1d7e79(541)]=exports.insertStr=exports[_0x1d7e79(477)]=exports[_0x1d7e79(441)]=void 0,require("path")),fs=require("fs"),importVisitor_1=require(_0x1d7e79(501)),_require=require("../common/textDocument"),create=_require[_0x1d7e79(463)],fileHandle_1=require(_0x1d7e79(505)),commonConfig_1=require("./commonConfig"),transformReport=require(_0x1d7e79(460)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){thirdComponents=[],originPtahObject.input=e,originPtahObject.output=t}function replacepos(e,t,o,n){return e.substring(0,t)+n+e.substring(o)}function insertStr(e,t,o){return e[_0x1d7e79(492)](0,t)+o+e.slice(t)}function copyDir(e,t){var o=_0x1d7e79,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];try{fs[o(467)](t)||fs.mkdirSync(t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x1d7e79,n=path[o(432)](t,o(431)),i=JSON[o(499)](fs[o(493)](n,{encoding:o(488)})),i=(i[o(531)].pages[o(447)][o(486)]=e[o(486)],i.icon=i[o(487)]+path[o(437)](e[o(549)]),i[o(503)]=e.packageName,i[o(427)]=e[o(470)],i.versionName=e[o(537)],i[o(545)]=e.versionCode,JSON[o(471)](i,null,2)),n=(fs[o(423)](n,i),path.join(t,o(447),o(522))),i=(i=fs[o(493)](n,{encoding:o(488)}))[o(527)]("helloUxStr",e[o(518)]);fs[o(423)](n,i),fs[o(467)](path[o(432)](t,o(543)))||fs[o(456)](path[o(432)](t,"Common")),copyFile(path[o(432)](t,o(543),path[o(437)](e[o(549)])),e[o(549)])}function _copyH5Pragram(n,i){var r=_0x1d7e79;try{fs[r(512)](n)[r(449)](function(e){var t=r,o=path[t(432)](n,e),t=path[t(432)](i,e),e=fs.statSync(o);e.isFile()&©File(t,o),e.isDirectory()&©Dir(o,t,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(r,a){var s=_0x1d7e79,p=2<arguments[s(494)]&&void 0!==arguments[2]&&arguments[2];try{fs[s(512)](r)[s(449)](function(e){var t=s,o=path[t(432)](r,e),n=path[t(432)](a,e),i=fs[t(546)](o);i[t(525)]()&&(copyFile(n,o),!p)&&dealWithFile(n,o),i[t(536)]()&&"node_modules"!==o&&"miniprogram_npm"!==o&&("node_modules"===e?copyDir(o,path[t(432)](a,"miniprogram_npm"),!0):copyDir(o,n,p))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x1d7e79,n=2<arguments[e(494)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(478)][e(451)],i=path[e(538)](t);switch(i){case e(483):modifyFileContent(t,o,e(483),n);break;case".json":modifyFileContent(t,o,e(465));break;default:var r=[commonConfig_1[e(478)][e(451)]];(r=commonConfig_1.Applets[e(496)]?r[e(530)](commonConfig_1[e(478)].addSupportTypes):r)[e(449)](function(e){dealWithMainFile(t,o,i,e)})}}function _0x143d(e,t){var o=_0x265d();return(_0x143d=function(e,t){return o[e-=423]})(e,t)}function dealWithMainFile(e,t,o,n){var i=_0x1d7e79,r=commonConfig_1[i(529)][n];switch(o){case r[i(450)]:var a=e[i(527)](o,".hxml");modifyFile(e,a,r[i(450)],t,n);break;case r[i(500)]:a=e[i(527)](o,i(464));modifyFile(e,a,r[i(500)],null,n);break;case r[i(448)]:if(!r[i(448)])return;a=e[i(527)](o,i(533));modifyFile(e,a,r.hjs,t,n)}}function modifyFile(e,t,o,n){var i=_0x1d7e79,r=4<arguments[i(494)]&&void 0!==arguments[4]?arguments[4]:commonConfig_1[i(478)][i(451)];try{fs[i(424)](e,t),modifyFileContent(t,n,o,r)}catch(e){throw console.error(e),e}}function modifyFileContent(e,t,o){var n=_0x1d7e79,i=3<arguments[n(494)]&&void 0!==arguments[3]?arguments[3]:commonConfig_1[n(478)][n(451)];try{var r,a=fs.readFileSync(e,{encoding:n(488)})[n(434)](),s=commonConfig_1.projectFileSuffix[i];switch(o){case s[n(450)]:a=fileHandle_1.handleWxmlFile(e,a,t,i),"tt"===i&&(a=fileHandle_1.handleWxmlFile(e,a,t,"wx"));break;case s[n(448)]:var p=create(e,a),a=p[n(516)](),c=importVisitor_1.getImportRules(a,null,!0,i)[n(479)](function(e){var t=n;return e.type===t(472)});a=fileHandle_1[n(474)](c,p,a,t,i);break;case s[n(500)]:a=fileHandle_1[n(532)](e,a,i),"tt"===i&&(a=fileHandle_1[n(532)](e,a,"wx"));break;case n(483):a=fileHandle_1[n(490)](e,t,a,i),"tt"===i&&(a=fileHandle_1[n(490)](e,t,a,"wx"));break;case n(465):a&&((r=JSON[n(499)](a))[n(511)]&&handleUsingComponents(r[n(511)]),"my"===commonConfig_1[n(478)][n(451)]&&changeAppJsonItem(r,commonConfig_1[n(458)]),a=JSON.stringify(r,null,2))}fs.writeFileSync(e,a)}catch(e){throw e}}function dealWithNodeModuleComponent(t,o){var n=_0x1d7e79,e=fs.statSync(t);e[n(525)]()&&dealWithFile(t,o),e[n(536)]()&&fs[n(512)](t)[n(449)](function(e){dealWithNodeModuleComponent(path[n(432)](t,e),path.join(o,e))})}function transformNodeModuleComponent(){var i=_0x1d7e79;thirdComponents[i(449)](function(e){var t,o=i,n=path[o(432)](originPtahObject[o(502)],"miniprogram_npm",e);fs[o(467)](n)&&(t=path[o(432)](originPtahObject[o(535)],o(480),e),fs[o(467)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(432)](originPtahObject.input,o(507),e)))})}function handleUsingComponents(e){var t,o,n=_0x1d7e79;for(t in e)e[t]&&(o=e[t][n(515)]("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents[n(444)](o[0])&&thirdComponents[n(429)](o[0])}function copyConfigFiles(o,n){var i=_0x1d7e79;try{fs[i(512)](o)[i(449)](function(e){var t=path[i(432)](o,e),e=path.join(n,e);fs.statSync(t).isFile()&©File(e,t)})}catch(e){throw e}}function copyFile(e,t){var o=_0x1d7e79;fs[o(423)](e,fs[o(493)](t))}function _0x265d(){var e=["copyFile","../lib/locale.json","parse","css","../parse/importVisitor","output","package","util","../features/fileHandle","srcRootPath","node_modules","assign","isArray","app.json","usingComponents","readdirSync","createDirs","getGlobleOutPutPath","split","getText","swan","webUrl",'{"locale": "zh-cn"}',"insertStr","createTransformReportFile","hello.ux","50896NxEiLQ","packOptions","isFile","toLowerCase","replace","window","projectFileSuffix","concat","display","handleWxssImport",".hjs","__esModule","input","isDirectory","versionName","extname","platformFeature","configBasename","copyDir","zh-cn","Common","setLanguage","versionCode","statSync","target","610nugPop","iconPath","writeFileSync","renameSync","eventTargetKey","6935753fUQNUa","name","adaptApiFile","push","debug","manifest.json","join","tablebarItems","toString","unlinkSync","app.js","basename","9189YuTUyG","changeAppJsonItem","appJsonFile","setOriginPtahObject","2172230mWbOXf","tabBar","indexOf","147594ytKyZB","entry","Hello","hjs","forEach","hxml","appletType","widgets","log","require('./util/apiadapter4alipay.js');\r\n","VSCODE_NLS_CONFIG","mkdirSync","49KZxpaq","windowItems","8RKMojZ","../features/transformReport","387525EjFnJU","12nErnJR","create",".css",".json","ascf.config.json","existsSync","lib","english","appName","stringify","fileImport","list","transformWxsFilePath","defineProperty","apiadapter4alipay.js","replacepos","Applets","filter","miniprogram_npm","env","type",".js","handleConfigInfo","14xhLGNY","orientation","icon","utf-8","projectConfigFile","transformJsFile","chinese","slice","readFileSync","length","995827uWEReh","addSupportTypes"];return(_0x265d=function(){return e})()}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=_0x1d7e79,n=JSON[o(499)](fs[o(493)](path[o(432)](e,o(510)))[o(434)]()),n=(delete n[o(503)],delete n[o(427)],delete n.versionName,delete n.versionCode,delete n.minPlatformVersion,delete n[o(487)],delete n[o(482)],changeAppJsonItem(n[o(528)],commonConfig_1[o(458)]),changeAppJsonItem(n[o(443)],commonConfig_1[o(433)]),n[o(443)]&&n.tabBar.list&&n.tabBar[o(473)].forEach(function(e){changeAppJsonItem(e,commonConfig_1.tablebarListItems)}),Object[o(508)]({},n)),n=(delete n[o(452)],delete n[o(446)],delete n[o(430)],delete n.navigateToMiniProgramAppIdList,-1!==[o(517),"my"][o(444)](commonConfig_1[o(478)][o(451)])&&(n.platformFeature={enableNoDeclareCompProp:!0}),-1!==["my"][o(444)](commonConfig_1.Applets.appletType)&&(n[o(539)][o(425)]=o(547)),JSON[o(471)](n,null,2));fs[o(423)](path[o(432)](e,o(510)),n)}function projectConfigFile(e){var t=_0x1d7e79,o={},n=(commonConfig_1[t(478)][t(540)]?fs.existsSync(path.join(e,commonConfig_1.Applets[t(540)]))&&(o=JSON[t(499)](fs[t(493)](path[t(432)](e,commonConfig_1[t(478)][t(540)]))[t(434)]())):o={},{ascfRoot:commonConfig_1[t(478)][t(506)],packOptions:{ignore:[]}}),o=(n[t(524)]=o[t(524)],JSON[t(471)](n,null,2));commonConfig_1.Applets[t(540)]&&fs[t(467)](path[t(432)](e,commonConfig_1[t(478)][t(540)]))&&fs[t(435)](path[t(432)](e,commonConfig_1[t(478)][t(540)])),fs.writeFile(path[t(432)](e,t(466)),o,function(e){e&&console[t(453)](e)})}function mkdirsSync(e){var t=_0x1d7e79;return!!fs[t(467)](e)||(mkdirsSync(path.dirname(e))?(fs[t(456)](e),!0):void 0)}function createDirs(e,t){var o=_0x1d7e79;o(494);fs[o(467)](e)||mkdirsSync(e),fs[o(467)](path[o(432)](e,t))||mkdirsSync(path.join(e,t))}function createTransformReportFile(e,t){var o=_0x1d7e79,e=(globleOutPutPath=path.join(e,"transform.log"),setLanguage("miniProgramProject")+t+"\n\n");fs[o(423)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x1d7e79,t=(fs[o(467)](path[o(432)](e,o(504)))||fs[o(456)](path[o(432)](e,"util")),copyFile(path[o(432)](e,o(504),o(476)),path[o(432)](t,o(468),"apiadapter4alipay.js")),path[o(432)](e,o(436))),e=fs[o(493)](t,{encoding:"utf-8"}),e=o(454)[o(530)](e);fs.writeFileSync(t,e)}exports[_0x1d7e79(441)]=setOriginPtahObject,exports[_0x1d7e79(477)]=replacepos,exports[_0x1d7e79(520)]=insertStr,exports[_0x1d7e79(541)]=copyDir,exports[_0x1d7e79(484)]=handleConfigInfo,exports.transformNodeModuleComponent=transformNodeModuleComponent,exports.copyConfigFiles=copyConfigFiles,exports.copyFile=copyFile,exports[_0x1d7e79(439)]=changeAppJsonItem,exports[_0x1d7e79(440)]=appJsonFile,exports[_0x1d7e79(489)]=projectConfigFile,exports[_0x1d7e79(513)]=createDirs,exports.createTransformReportFile=createTransformReportFile,exports[_0x1d7e79(514)]=getGlobleOutPutPath,exports[_0x1d7e79(428)]=adaptApiFile;var lan=JSON.parse(process[_0x1d7e79(481)][_0x1d7e79(455)]||_0x1d7e79(519)).locale[_0x1d7e79(526)](),language=require(_0x1d7e79(498));function setLanguage(e,t){var o,n=_0x1d7e79;return language[e]?(o=lan===n(542)?language[e][n(491)]:language[e][n(469)],Array[n(509)](t)&&t[n(449)](function(e,t){o=o.replace("${"+(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
|
|
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};
|