@atomicservice/ascf-toolkit 1.0.4-beta.0 → 1.0.5-beta.4

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.
Files changed (88) hide show
  1. package/lib/ascf-base/index.d.ts +68 -0
  2. package/lib/ascf-base/index.js +1 -0
  3. package/lib/ascf-compiler/appjson-loader.js +1 -1
  4. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  5. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  6. package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
  7. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  8. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  9. package/lib/ascf-compiler/common/hdc-executor.js +1 -0
  10. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  11. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  12. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  13. package/lib/ascf-compiler/common/manifest-handler.js +1 -0
  14. package/lib/ascf-compiler/common/manifest-manager.js +1 -0
  15. package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
  16. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  17. package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
  18. package/lib/ascf-compiler/common/utils.js +1 -1
  19. package/lib/ascf-compiler/css-process-loader.js +1 -1
  20. package/lib/ascf-compiler/extract-loader.js +1 -1
  21. package/lib/ascf-compiler/hcss-loader.js +1 -1
  22. package/lib/ascf-compiler/hjs-loader.js +1 -1
  23. package/lib/ascf-compiler/hxml-loader.js +1 -1
  24. package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
  25. package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
  26. package/lib/ascf-compiler/js-parser/parser.js +1 -1
  27. package/lib/ascf-compiler/loader-utils.js +1 -1
  28. package/lib/ascf-compiler/path-process-loader.js +1 -1
  29. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  30. package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -0
  31. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  32. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  33. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  34. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  35. package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
  36. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  37. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  38. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  39. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  40. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  41. package/lib/ascf-compiler/require-loader.js +1 -1
  42. package/lib/ascf-compiler/server/dev-server.js +1 -0
  43. package/lib/ascf-compiler/server/port-manager.js +1 -0
  44. package/lib/ascf-compiler/swc-loader.js +1 -1
  45. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  46. package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
  47. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  48. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  49. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  50. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  51. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  52. package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
  53. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  54. package/lib/ascf-compiler/watch/watch.js +1 -1
  55. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  56. package/lib/ascf-converter/ascfApisDiff.json +1979 -0
  57. package/lib/ascf-converter/common/commonConfig.js +1 -1
  58. package/lib/ascf-converter/common/commonUtils.js +1 -1
  59. package/lib/ascf-converter/common/path-validator.js +1 -1
  60. package/lib/ascf-converter/common/textDocument.js +1 -1
  61. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  62. package/lib/ascf-converter/convertManager.js +1 -0
  63. package/lib/ascf-converter/features/converter.js +1 -1
  64. package/lib/ascf-converter/features/fileHandle.js +1 -1
  65. package/lib/ascf-converter/features/transformReport.js +1 -1
  66. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  67. package/lib/ascf-converter/parse/babelParser.js +1 -1
  68. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  69. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  70. package/lib/ascf-converter/report/icons/completely.png +0 -0
  71. package/lib/ascf-converter/report/icons/failed.png +0 -0
  72. package/lib/ascf-converter/report/icons/portion.png +0 -0
  73. package/lib/ascf-converter/report/index.html +718 -0
  74. package/lib/ascf-converter/report/js/index.js +1 -0
  75. package/lib/bin/ascf.js +1 -1
  76. package/lib/commands/ascfbuild/index.js +1 -0
  77. package/lib/commands/build-npm/index.js +1 -0
  78. package/lib/commands/debugger/index.js +1 -0
  79. package/lib/common/config.js +1 -1
  80. package/lib/common/log4js.js +1 -1
  81. package/lib/common/logger-plugin.js +1 -1
  82. package/lib/common/remove-strict-mode-plugin.js +1 -1
  83. package/lib/common/string-utils.js +1 -1
  84. package/lib/common/utils.js +1 -1
  85. package/lib/common/version-check.js +1 -1
  86. package/lib/index.js +1 -1
  87. package/package.json +9 -8
  88. package/lib/ascf-build-npm/build-npm.js +0 -1
@@ -0,0 +1 @@
1
+ var _0x542728=_0x3510;function _typeof(t){var r=_0x3510;return(_typeof=r(538)==typeof Symbol&&"symbol"==typeof Symbol[r(511)]?function(t){return typeof t}:function(t){var e=r;return t&&e(538)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?e(488):typeof t})(t)}function _0x3510(t,e){var r=_0x7b0f();return(_0x3510=function(t,e){return r[t-=479]})(t,e)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _0x7b0f(){var t=["symbol","@@toPrimitive must return a primitive value.","enumerable","string","target","toPrimitive","innerHTML",".mask .title",'<div class="opation-item">',"属性名称","querySelectorAll","keys","Map",'<span class="status-icon warning-icon">⚠</span>',"onload","otherModular",'</div>\n <div class="topname">文件总数</div>\n </div>\n <div class="itembox itembox_completely">\n <div class="botval">',"unsupported","30899718mfZgik","不支持的部分(参数/返回值)","apply","getOwnPropertySymbols","\n <thead>\n <tr>\n ","iterator","tbody","</td>\n </tr>\n ","from","push","toString","createElement","textContent","getOwnPropertyDescriptors","slice","icon-warning","ulBox",".mask .table-box","tableBox","22RxzdyW","values","querySelector","tableInfo",'</td>\n <td>\n <div class="show-instruct" data-path="','<div class="itembox itembox_completely">\n <div class="botval">',"maskTitle","templete","defineProperties","value","组件名","hide","thead","function","partial","ERROR","completely","return",'</div>\n <div class="topname">部分转换</div>\n </div>\n <div class="itembox itembox_failed">\n <div class="botval">',"appendChild",'\n <tr>\n <td class="name">',"forEach","opations",".js",".result",".mask .table-box table","样式文件","data-type","65yVUUTj","tab-item","10360707SRUZNp",'</td>\n <td class="opations">',"</th>",".table-info:first-child",".table-info","开放能力","\n </td>\n </tr>","err","icon-zhengque","pagePaths","components",'</div>\n <div class="topname">无法转换</div>\n </div>','</div>\n <div class="topname">完全转换</div>\n </div>\n <div class="itembox itembox_portion">\n <div class="botval">',"#col1","path","next","166732SOBXyO","app.json","如何解决","constructor","innerText","join","tabBox","isArray","click","className","不支持","assign","table-head","filter","table-info","getOwnPropertyDescriptor","notsupport","closeBtn","div","cls","getTransformData","location",'">帮助文档</td>',"actived","mask","cardBox","type","\n </tr>\n ",'<tr>\n <td class="apges">\n ',"remove","name",'\n <tr>\n <td class="text-left">',"val","default",'<tr><td colspan="3">完整支持</td></tr>',"li:first-child","支持程度","api/生命周期","dataSources","entries","length","部分支持",' header" id="col1">',".rep-allbox","getAttribute","href","none","2585406UUSNiw","call","transforms","modelAll","Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",'">\n 查看相关能力\n </div>\n </td>\n <td class="apges">',"json文件","模板文件","addEventListener","不支持文件","classList",".card-box","13644480EKECPl","concat","unsupportedNum","table",'<td class="unsupported">暂不支持,请尝试其他实现方式</td>',"docpath","#project tbody","span","icon-cuowu",".tab-box","num ","Object",'<tr class="pages">\n <th>文件路径</th>\n <th>转换结果</th>\n </tr>',"warn","tab-item actived","add",'<td class="result" path="',"projectTable","supportType","</td>\n ","499971PEMCIj",'\n </td>\n <td class="file-path">\n ',".mask .close","surroundings",".mask","</div>","其他文件","style","undefined","status","concept","CORRECT","dataset","setAttribute","defineProperty","map","219788GhTrAk","@@iterator","\n <tr>\n <td>","endsWith","doc"];return(_0x7b0f=function(){return t})()}function _nonIterableRest(){throw new TypeError(_0x3510(622))}function _iterableToArrayLimit(t,e){var r=_0x3510,n=null==t?null:r(658)!=typeof Symbol&&t[Symbol[r(511)]]||t[r(484)];if(null!=n){var a,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t))[r(570)],0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a[r(534)]),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n[r(542)]&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function _arrayWithHoles(t){if(Array[_0x3510(578)](t))return t}function ownKeys(r,t){var e,n=_0x3510,a=Object.keys(r);return Object.getOwnPropertySymbols&&(e=Object[n(509)](r),t&&(e=e[n(584)](function(t){var e=n;return Object[e(586)](r,t)[e(490)]})),a.push[n(508)](a,e)),a}function _objectSpread(r){for(var n=_0x3510,t=1;t<arguments[n(611)];t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0)[n(546)](function(t){_defineProperty(r,t,a[t])}):Object.getOwnPropertyDescriptors?Object[n(533)](r,Object[n(519)](a)):ownKeys(Object(a))[n(546)](function(t){var e=n;Object[e(481)](r,t,Object[e(586)](a,t))})}return r}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var r,n=_0x3510;if(t)return n(491)==typeof t?_arrayLikeToArray(t,e):(r={}[n(516)][n(619)](t)[n(520)](8,-1),n(641)===r&&t[n(574)]&&(r=t[n(574)].name),n(500)===r||"Set"===r?Array[n(514)](t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0)}function _iterableToArray(t){var e=_0x3510;if(e(658)!=typeof Symbol&&null!=t[Symbol[e(511)]]||null!=t[e(484)])return Array.from(t)}function _arrayWithoutHoles(t){if(Array[_0x3510(578)](t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t[_0x3510(611)])&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _defineProperty(t,e,r){var n=_0x3510;return(e=_toPropertyKey(e))in t?Object[n(481)](t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_0x3510,t=_toPrimitive(t,"string");return e(488)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x3510;if("object"!=_typeof(t)||!t)return t;var n=t[Symbol[r(493)]];if(void 0===n)return(r(491)===e?String:Number)(t);n=n[r(619)](t,e||r(604));if("object"!=_typeof(n))return n;throw new TypeError(r(489))}function concepteleMade(){var t=_0x542728,e=t(530).concat(pageData[t(660)][t(621)],t(504))[t(631)](pageData[t(660)][t(541)],t(567))[t(631)](pageData[t(660)][t(539)],t(543)).concat(pageData.concept[t(587)],t(566));document[t(527)](t(614)).innerHTML=e}function fileDetails(o,t){var i=_0x542728,e={templete:i(625),jsonModular:i(624),otherModular:i(656),jsModular:"脚本文件",wxssModular:i(551),modularWxs:"自定义脚本",unsupported:i(627),supportPart:i(612)};if(0===(v=Object[i(499)](o))[i(611)])return!1;function r(r){var n=i,a=[];return v[n(546)](function(t){var e=n;o[t][e(659)]===r&&a[e(515)](t)}),a}var n,a,s=document.querySelector(i(639)),c=s[i(527)](".ul"),l=c.querySelectorAll("li")[0],u=(l&&l[i(628)][i(645)](i(594)),document[i(517)]("li")),d=(u[i(628)][i(645)](i(554)),u[i(480)](i(552),t),u[i(494)]=e[t],c[i(544)](u),s.querySelector(i(629))),l=d[i(498)](i(559))[0],e=(l&&l[i(628)][i(645)]("actived"),document.createElement(i(589))),s=(e[i(628)][i(645)](i(585)),e[i(628)].add(t),document[i(517)](i(633))),l=(s[i(628)][i(645)]("table"),document.createElement(i(537))),t=(l.classList[i(645)](i(583)),l[i(494)]=i(642),document[i(517)](i(512))),p="",f=0,y=r(1),b=r(2),v=r(3).concat(b)[i(631)](y),m=i(643);v[i(546)](function(t){var e=i,r="";1===o[t][e(659)]?r='<span class="status-icon success-icon">✓</span>':2===o[t][e(659)]?r=e(501):3===o[t][e(659)]&&(r='<span class="status-icon danger-icon">✕</span>'),p="".concat(p,e(599))[e(631)](r,e(651)).concat(t,e(561)),o[t][e(648)]&&1!==o[t].supportType&&f++,3===o[t][e(648)]&&(m=e(562))}),t[i(494)]=p;u.appendChild((b=f||"",y=f?m:i(617),n=i,(a=document[n(517)]("span"))[n(628)][n(645)]("num"),a[n(494)]=b,a[n(628)][n(645)](y),a)),s.appendChild(l),s[i(544)](t),e[i(544)](s),d[i(544)](e),u[i(626)](i(579),function(){var r=i,t=(c[r(498)]("li").forEach(function(t){var e=r;t[e(628)][e(600)](e(594))}),d.querySelectorAll(r(559))[r(546)](function(t){var e=r;t[e(628)][e(600)](e(594))}),u[r(615)](r(552)));d[r(527)]("."[r(631)](t))[r(628)][r(645)]("actived"),u[r(628)][r(645)](r(594))})}function openingMade(){var o=_0x542728,i=pageData.opening;if(0===Object[o(499)](i)[o(611)])return!1;var t,e,r,n,a,s,c,l,u={tabBox:document.querySelector(o(639)),get ulBox(){var t=o;return this[t(577)][t(527)](".ul")},get cardBox(){var t=o;return this[t(577)][t(527)](t(629))}},d={CORRECT:1,WARNING:2,ERROR:3};t=u[(e=o)(522)].querySelector(e(606)),l=u[e(596)][e(527)](e(558)),null!=t&&t[e(628)].add(e(594)),null!=l&&l[e(628)][e(645)]("actived"),t=o,l=(()=>{var r=o,n=0,a="none";return Object[r(526)](i)[r(546)](function(t){var e=r;t[e(659)]!==d.CORRECT&&n++,t.status===d[e(540)]?a=e(562):n&&a!==e(562)&&(a=e(643))}),{unsupportedNum:n,statusClass:a}})(),e=l[t(632)],l=l.statusClass,(r=document[t(517)]("li"))[t(580)]=t(644),r[t(479)][t(597)]="openability",(n=document.createElement(t(637))).className=t(640)[t(631)](l),n[t(518)]=e||"",r[t(494)]=t(560),r.prepend(n),u.ulBox[t(544)](r),l=r,e=o,(n=document[e(517)](e(589)))[e(580)]="table-info openability actived",(t=document[e(517)](e(633))).className=e(633),t[e(494)]='\n <thead class="table-head">\n <tr>\n <th>能力名称</th>\n <th>页面路径</th>\n <th>如何解决</th>\n <th>转换结果</th>\n </tr>\n </thead>\n <tbody>'[e(631)]((()=>{var n=o;return(()=>{var r=o,n=_defineProperty(_defineProperty(_defineProperty({},d[r(540)],[]),d.WARNING,[]),d[r(661)],[]);return Object[r(499)](i)[r(546)](function(t){var e=r;return n[i[t][e(659)]].push(t)}),[][r(631)](_toConsumableArray(n[d[r(540)]]),_toConsumableArray(n[d.WARNING]),_toConsumableArray(n[d[r(661)]]))})()[n(482)](function(t){var e=n,r=i[t];return e(485)[e(631)](t,"</td>\n <td>")[e(631)](r.pathArr.join("、"),e(529))[e(631)](r[e(635)],e(623))[e(631)]((t=r[e(659)],r=_defineProperty(_defineProperty(_defineProperty({},d[(r=o)(661)],r(563)),d.WARNING,r(521)),d[r(540)],r(638)),'<i class="iconfont '.concat(r[t],'"></i>')),e(513))}).join("")})(),"</tbody>\n "),n[e(544)](t),u[e(596)].appendChild(n),s=n,(a=l)[(c=o)(626)](c(579),function(){var r=c;u[r(522)][r(498)]("li")[r(546)](function(t){var e=r;return t.classList[e(600)]("actived")}),u[r(596)].querySelectorAll(r(559))[r(546)](function(t){var e=r;return t[e(628)].remove(e(594))}),a[r(628)].add(r(594)),s[r(628)].add("actived")}),u.cardBox[c(626)](c(579),function(t){var e=c,t=t[e(492)].closest(".show-instruct");t&&(window[e(592)][e(616)]=t[e(479)][e(569)])})}(()=>{for(var t=_0x3510,e=_0x7b0f();;)try{if(924474==-parseInt(t(571))+parseInt(t(525))/2*(-parseInt(t(650))/3)+-parseInt(t(483))/4*(parseInt(t(553))/5)+parseInt(t(618))/6+parseInt(t(555))/7+-parseInt(t(630))/8+parseInt(t(506))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),window[_0x542728(502)]=function(){projectResult(),concepteleMade(),temelatetable(),openingMade(),supportiveness(),fileInfo(),maskClose()};var byStatus=function(e){var r=_0x542728,n={};return Object[r(499)](pageData[r(620)])[r(546)](function(t){pageData[r(620)][t].status===e&&(n[t]=pageData.transforms[t])}),n};function supportiveness(){var t=_0x542728;fileDetails(byStatus(2),"supportPart"),fileDetails(byStatus(3),t(505))}var byType=function(t){var e,r=_0x542728,n={};for(e in pageData[r(620)])pageData[r(620)][e].type===t&&(n[e]=Object[r(582)]({},pageData.transforms[e]),n[e][r(648)]=n[e][r(659)]);fileDetails(n,t)};function temelatetable(){var t=_0x542728;byType(t(532)),byType("jsModular"),byType("wxssModular"),byType("jsonModular"),byType(t(503)),byType("modularWxs")}function fileInfo(){var e,u=_0x542728,d={mask:document[u(527)](u(654)),maskTitle:document[u(527)](u(495)),tableBox:document[u(527)](u(523)),pagePaths:document[u(498)](".file-path")},p={getTransformData:function(t){return pageData.transforms[t]}};function f(t){var e=u;d[e(524)][e(527)](e(568)).innerText=t}function y(t){var r=u,e=t.attrs[r(482)](function(t){var e=r;return e(496)[e(631)](t,e(655))}).join("");return r(545)[r(631)](t[r(601)],r(556))[r(631)](e,r(649))[r(631)](!(e=t)[(t=u)(487)]||"无"===e[t(487)]?t(634):t(646)[t(631)](e[t(487)],t(593)),r(598))}d[(e=u)(564)][e(546)](function(l){var t=e;l[t(626)](t(579),function(){var t,e,n,a,r,o,i,s,c;t=(t=l)[(s=u)(575)],(c=p[s(591)](t))&&(o=c[s(597)],e=t,(a=d[(n=u)(524)].querySelectorAll("th"))[n(546)](function(t){return t[n(657)].display=""}),null!=(o=(r={templete:function(){var t=n;return f(t(535),t(581))},jsModular:function(){var t=n;return f(t(608),t(507))},otherModular:function(){var r=n;return e[r(486)](r(548))?f(r(608),r(507)):a[r(546)](function(t){var e=r;return t.style.display=e(617)})},jsonModular:function(){var t=n;return f(t(497),e===t(572)||t(607))}})[o])&&o[n(619)](r),o=t,d[(r=u)(531)][r(575)]=o,t=c[s(565)],d[(r=u)(524)][r(527)](r(512))[r(494)]=0<t[r(611)]?t.map(y)[r(576)](""):r(605),d[(o=u)(595)].classList[o(600)](o(536)),d[(i=u)(595)][i(498)](i(549))[i(546)](function(e){var r=i;e[r(626)](r(579),function(){var t=r;window.open(e[t(615)](t(569)))})}))})})}var createTable=function(t){var r=_0x542728;return[r(510),t[r(482)](function(t){var e=r;return'<th class="'[e(631)](t[e(590)],e(613))[e(631)](t.title,e(557))}),"\n </tr>\n </thead>\n <tbody></tbody>\n "][r(576)]("\n")};function maskClose(){var t,e=_0x542728,r={mask:document[e(527)](".mask"),closeBtn:document.querySelector(e(652)),table:document[e(527)](e(550))},n=createTable([{cls:e(601),title:e(535)},{cls:e(547),title:e(581)},{cls:"result",title:e(573)}]);function a(){var t;r[(t=e)(633)][t(494)]=n,r[(t=e)(595)][t(628)][t(645)]("hide")}r[(t=e)(588)].addEventListener(t(579),a)}function projectResult(){var a,t,e=_0x542728,r={projectTable:document[e(527)](e(636)),dataSources:{surroundings:pageData[e(653)],tableInfo:pageData[e(528)]}};a=e,t=Object[a(526)](r[a(609)][a(653)]).reduce(function(t,e){var r=a,n=e[r(601)],e=e[r(603)];return _objectSpread(_objectSpread({},t),{},_defineProperty({},n,e))},{}),t=t=_objectSpread(_objectSpread({},r.dataSources[a(528)]),t),r[(r=e)(647)][r(494)]=(t=>{var n=e;return Object[n(610)](t)[n(482)](function(t){var e=n,t=_slicedToArray(t,2),r=t[0],t=t[1];return e(602).concat(r,'</td>\n <td class="text-right">').concat(t,e(513))}).join("")})(t)}
package/lib/bin/ascf.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var _global$_ascfCliProgr,_0x4edc42=_0x3aed;function _typeof(e){var r=_0x3aed;return(_typeof=r(342)==typeof Symbol&&r(238)==typeof Symbol[r(270)]?function(e){return typeof e}:function(e){var t=r;return e&&t(342)==typeof Symbol&&e[t(293)]===Symbol&&e!==Symbol[t(289)]?t(238):typeof e})(e)}function _0x466c(){var e=["@@iterator","__await","-m, --mode","-r, --run [command]","completion","finallyLoc","tryLoc","displayName","asyncIterator","Clear build resource","argv","complete","_sent","opts","4872FozGZJ","pop","315917vIezeN","-i, --input <input-directory>","Run command on changes been watched","--skipApiValidator [flag]","Generator","5gKjLcW","Watch for changes","wrap","then","method","iterator","Skip API and components validator","done","length","enable debug logging","--debug","Environment is development","getPrototypeOf","tryEntries","parse","illegal catch attempt","Generator is already running","value","afterLoc","[object Generator]","apply","setLoggerConfig","11396NTNGBn","catchLoc","prototype","56494YFwBQS","prev","resolve","constructor","reset","Clear convert output path","throw","dispatchException","hasOwnProperty","setPrototypeOf","call","action","version","isGeneratorFunction","' method","ascf toolkit convert and compile ascf project","end","requiredOption","forEach","break","-w, --watch","return","228522QGuLbe","rval","2AYWeSx","description","stop","Convert miniprogram project to ascf project","_ascfCliProgram","183410iYGaEp","Not add todo for not supported api.","suspendedStart","Command","_ascfDebug","buildNpm","9TAIWKA","733812bWOHDf","--logging [level]","resultName","logging","executing","object","arg","command","GeneratorFunction","Validate path","_invoke","__proto__","-c, --clear","push","AsyncIterator","Compile ascf project","function","awrap","charAt","24ybUCVC","create","suspendedYield","reverse","711747TyYjNw","option","delegate","Control if and how source maps are generated","defineProperty","root","@@asyncIterator","@@toStringTag","convert","continue"," is not iterable","nextLoc","commander","normal","toString","symbol","next","type","iterator result is not an object","mark","Build ASCF npm dependencies to miniprogram_npm"];return(_0x466c=function(){return e})()}function _regeneratorRuntime(){var s=_0x3aed;_regeneratorRuntime=function(){return c};var f,c={},e=Object[s(289)],l=e[s(298)],d=Object[s(353)]||function(e,t,r){e[t]=r.value},t=s(342)==typeof Symbol?Symbol:{},i=t.iterator||s(244),r=t[s(252)]||s(355),n=t.toStringTag||s(230);function o(e,t,r){return Object.defineProperty(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,i,a,c,u=s,t=t&&t[u(289)]instanceof m?t:m,t=Object[u(346)](t[u(289)]),n=new I(n||[]);return d(t,u(336),{value:(o=e,i=r,a=n,c=h,function(e,t){var r=_0x3aed;if(c===g)throw Error(r(281));if(c===v){if("throw"===e)throw t;return{value:f,done:!0}}for(a[r(269)]=e,a[r(332)]=t;;){var n=a[r(351)];if(n){n=function e(t,r){var n=s,o=r[n(269)],i=t[n(270)][o];if(i===f)return r.delegate=null,"throw"===o&&t[n(270)][n(311)]&&(r.method=n(311),r[n(332)]=f,e(t,r),n(296)===r[n(269)])||n(311)!==o&&(r[n(269)]=n(296),r[n(332)]=new TypeError("The iterator does not provide a '"+o+n(304))),x;o=p(i,t[n(270)],r[n(332)]);if("throw"===o[n(240)])return r[n(269)]=n(296),r[n(332)]=o[n(332)],r.delegate=null,x;i=o[n(332)];return i?i[n(272)]?(r[t[n(328)]]=i.value,r[n(239)]=t[n(234)],n(311)!==r[n(269)]&&(r[n(269)]=n(239),r[n(332)]=f),r[n(351)]=null,x):i:(r[n(269)]=n(296),r.arg=new TypeError(n(241)),r.delegate=null,x)}(n,a);if(n){if(n===x)continue;return n}}if(r(239)===a[r(269)])a.sent=a[r(256)]=a.arg;else if(r(296)===a[r(269)]){if(c===h)throw c=v,a[r(332)];a[r(297)](a.arg)}else r(311)===a[r(269)]&&a.abrupt("return",a[r(332)]);c=g;n=p(o,i,a);if(r(236)===n.type){if(c=a[r(272)]?v:_,n[r(332)]===x)continue;return{value:n.arg,done:a[r(272)]}}r(296)===n.type&&(c=v,a[r(269)]="throw",a.arg=n.arg)}})}),t}function p(e,t,r){var n=s;try{return{type:n(236),arg:e[n(300)](t,r)}}catch(e){return{type:n(296),arg:e}}}c[s(267)]=u;var h=s(321),_=s(347),g=s(330),v="completed",x={};function m(){}function a(){}function y(){}var t={},b=(o(t,i,function(){return this}),Object[s(277)]),b=b&&b(b(G([]))),w=(b&&b!==e&&l[s(300)](b,i)&&(t=b),y[s(289)]=m.prototype=Object.create(t));function j(e){var t=s;[t(239),t(296),t(311)][t(308)](function(t){o(e,t,function(e){return this[_0x3aed(336)](t,e)})})}function L(c,u){var t,o=s;d(this,o(336),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var i,a=_0x3aed,e=p(c[e],c,r);if("throw"!==e[a(240)])return(r=(i=e[a(332)]).value)&&a(331)==_typeof(r)&&l[a(300)](r,a(245))?u.resolve(r[a(245)])[a(268)](function(e){t("next",e,n,o)},function(e){t(a(296),e,n,o)}):u[a(292)](r)[a(268)](function(e){i[a(282)]=e,n(i)},function(e){return t("throw",e,n,o)});o(e[a(332)])}(r,n,e,t)})}return t=t?t[o(268)](e,e):e()}})}function S(e){var t=s,r={tryLoc:e[0]};1 in e&&(r[t(288)]=e[1]),2 in e&&(r[t(249)]=e[2],r.afterLoc=e[3]),this[t(278)][t(339)](r)}function C(e){var t=s,r=e[t(248)]||{};r.type=t(236),delete r[t(332)],e.completion=r}function I(e){var t=s;this[t(278)]=[{tryLoc:t(354)}],e.forEach(S,this),this[t(294)](!0)}function G(r){var n=s;if(r||""===r){var o,e=r[i];if(e)return e[n(300)](r);if(n(342)==typeof r[n(239)])return r;if(!isNaN(r.length))return o=-1,(e=function e(){for(var t=n;++o<r.length;)if(l[t(300)](r,o))return e[t(282)]=r[o],e[t(272)]=!1,e;return e[t(282)]=f,e[t(272)]=!0,e})[n(239)]=e}throw new TypeError(_typeof(r)+n(233))}return a.prototype=y,d(w,s(293),{value:y,configurable:!0}),d(y,s(293),{value:a,configurable:!0}),a[s(251)]=o(y,n,s(334)),c[s(303)]=function(e){var t=s,e=t(342)==typeof e&&e.constructor;return!!e&&(e===a||t(334)===(e[t(251)]||e.name))},c[s(242)]=function(e){var t=s;return Object[t(299)]?Object.setPrototypeOf(e,y):(e[t(337)]=y,o(e,n,t(334))),e.prototype=Object[t(346)](w),e},c[s(343)]=function(e){return{__await:e}},j(L[s(289)]),o(L[s(289)],r,function(){return this}),c[s(340)]=L,c.async=function(e,t,r,n,o){var i=s,a=(void 0===o&&(o=Promise),new L(u(e,t,r,n),o));return c[i(303)](t)?a:a[i(239)]()[i(268)](function(e){var t=i;return e[t(272)]?e[t(282)]:a[t(239)]()})},j(w),o(w,n,s(264)),o(w,i,function(){return this}),o(w,s(237),function(){return s(284)}),c.keys=function(e){var t,n=s,o=Object(e),i=[];for(t in o)i.push(t);return i[n(348)](),function e(){for(var t=n;i.length;){var r=i[t(259)]();if(r in o)return e.value=r,e[t(272)]=!1,e}return e[t(272)]=!0,e}},c.values=G,I[s(289)]={constructor:I,reset:function(e){var t=s;if(this[t(291)]=0,this[t(239)]=0,this.sent=this[t(256)]=f,this[t(272)]=!1,this[t(351)]=null,this.method="next",this[t(332)]=f,this.tryEntries[t(308)](C),!e)for(var r in this)"t"===r[t(344)](0)&&l[t(300)](this,r)&&!isNaN(+r.slice(1))&&(this[r]=f)},stop:function(){var e=s,t=(this[e(272)]=!0,this[e(278)][0][e(248)]);if(e(296)===t[e(240)])throw t[e(332)];return this.rval},dispatchException:function(n){var o=s;if(this[o(272)])throw n;var i=this;function e(e,t){var r=o;return a.type=r(296),a[r(332)]=n,i[r(239)]=e,t&&(i[r(269)]="next",i[r(332)]=f),!!t}for(var t=this[o(278)][o(273)]-1;0<=t;--t){var r=this[o(278)][t],a=r[o(248)];if(o(354)===r[o(250)])return e(o(306));if(r[o(250)]<=this[o(291)]){var c=l[o(300)](r,o(288)),u=l[o(300)](r,"finallyLoc");if(c&&u){if(this[o(291)]<r[o(288)])return e(r[o(288)],!0);if(this[o(291)]<r.finallyLoc)return e(r.finallyLoc)}else if(c){if(this[o(291)]<r[o(288)])return e(r[o(288)],!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(291)]<r[o(249)])return e(r[o(249)])}}}},abrupt:function(e,t){for(var r=s,n=this[r(278)][r(273)]-1;0<=n;--n){var o=this[r(278)][n];if(o[r(250)]<=this.prev&&l[r(300)](o,r(249))&&this[r(291)]<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===e||r(232)===e)&&i.tryLoc<=t&&t<=i[r(249)]?null:i)?i[r(248)]:{};return a[r(240)]=e,a.arg=t,i?(this[r(269)]=r(239),this[r(239)]=i[r(249)],x):this[r(255)](a)},complete:function(e,t){var r=s;if(r(296)===e[r(240)])throw e[r(332)];return r(309)===e[r(240)]||r(232)===e[r(240)]?this.next=e[r(332)]:"return"===e[r(240)]?(this[r(313)]=this[r(332)]=e.arg,this.method=r(311),this[r(239)]=r(306)):"normal"===e[r(240)]&&t&&(this.next=t),x},finish:function(e){for(var t=s,r=this[t(278)][t(273)]-1;0<=r;--r){var n=this[t(278)][r];if(n.finallyLoc===e)return this.complete(n[t(248)],n[t(283)]),C(n),x}},catch:function(e){for(var t=s,r=this[t(278)].length-1;0<=r;--r){var n,o,i=this[t(278)][r];if(i.tryLoc===e)return"throw"===(n=i[t(248)]).type&&(o=n.arg,C(i)),o}throw Error(t(280))},delegateYield:function(e,t,r){var n=s;return this[n(351)]={iterator:G(e),resultName:t,nextLoc:r},n(239)===this[n(269)]&&(this.arg=f),x}},c}function asyncGeneratorStep(e,t,r,n,o,i,a){var c=_0x3aed;try{var u=e[i](a),s=u[c(282)]}catch(e){return void r(e)}u[c(272)]?t(s):Promise[c(292)](s)[c(268)](n,o)}function _0x3aed(e,t){var r=_0x466c();return(_0x3aed=function(e,t){return r[e-=230]})(e,t)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(t,r){var n=_0x3aed,o=u[n(285)](e,c);function i(e){asyncGeneratorStep(o,t,r,i,a,n(239),e)}function a(e){asyncGeneratorStep(o,t,r,i,a,n(296),e)}i(void 0)})}}(()=>{for(var e=_0x3aed,t=_0x466c();;)try{if(135373==+parseInt(e(314))*(parseInt(e(290))/2)+-parseInt(e(349))/3+-parseInt(e(326))/4+-parseInt(e(265))/5*(parseInt(e(312))/6)+-parseInt(e(260))/7*(-parseInt(e(345))/8)+parseInt(e(325))/9*(-parseInt(e(319))/10)+parseInt(e(287))/11*(parseInt(e(258))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var ascf=require("../index"),_require=require(_0x4edc42(235)),Command=_require[_0x4edc42(322)],pkg=require("../../package.json"),program=new Command,_require2=require("../common/log4js.js"),setLoggerConfig=_require2[_0x4edc42(286)];program.version(pkg[_0x4edc42(302)])[_0x4edc42(315)](_0x4edc42(305))[_0x4edc42(350)](_0x4edc42(275),_0x4edc42(274)),program[_0x4edc42(333)]("buildNpm <projectRoot>")[_0x4edc42(315)](_0x4edc42(243)).action((()=>{var r=_0x4edc42,n=_asyncToGenerator(_regeneratorRuntime()[r(242)](function e(r,n){return _regeneratorRuntime().wrap(function(e){for(var t=_0x3aed;;)switch(e[t(291)]=e.next){case 0:setLoggerConfig(n[t(329)]),ascf[t(324)](r);case 2:case t(306):return e[t(316)]()}},e)}));return function(e,t){return n[r(285)](this,arguments)}})()),program[_0x4edc42(333)](_0x4edc42(231)).description(_0x4edc42(317))[_0x4edc42(307)](_0x4edc42(261))[_0x4edc42(307)]("-o, --output <output-directory>")[_0x4edc42(350)]("-c, --clear",_0x4edc42(295))[_0x4edc42(350)]("-va, --validate",_0x4edc42(335))[_0x4edc42(350)]("-notaddtodo, --notaddtodo",_0x4edc42(320)).option(_0x4edc42(327),"Setting the log level")[_0x4edc42(301)]((()=>{var t=_0x4edc42,r=_asyncToGenerator(_regeneratorRuntime()[t(242)](function e(r){var n=t;return _regeneratorRuntime()[n(267)](function(e){for(var t=n;;)switch(e.prev=e[t(239)]){case 0:return setLoggerConfig(r.logging),e[t(239)]=3,ascf.convert(r);case 3:case t(306):return e[t(316)]()}},e)}));return function(e){return r.apply(this,arguments)}})()),program.command("compile <projectRoot>")[_0x4edc42(315)](_0x4edc42(341))[_0x4edc42(350)]("-p, --progress","Show build progress")[_0x4edc42(350)](_0x4edc42(310),_0x4edc42(266))[_0x4edc42(350)](_0x4edc42(246),_0x4edc42(276))[_0x4edc42(350)](_0x4edc42(338),_0x4edc42(253)).option(_0x4edc42(247),_0x4edc42(262))[_0x4edc42(350)](_0x4edc42(327),"Setting the log level")[_0x4edc42(350)]("--swc","Use swc parser")[_0x4edc42(350)]("--devtool [type]",_0x4edc42(352))[_0x4edc42(350)]("--templateHoist","Hoist template to page scope")[_0x4edc42(350)](_0x4edc42(263),_0x4edc42(271)).action((()=>{var i=_0x4edc42,r=_asyncToGenerator(_regeneratorRuntime()[i(242)](function e(r,n){var o=i;return _regeneratorRuntime()[o(267)](function(e){for(var t=o;;)switch(e[t(291)]=e[t(239)]){case 0:return setLoggerConfig(n.logging),e[t(239)]=3,ascf.compile(r,n);case 3:case"end":return e[t(316)]()}},e)}));return function(e,t){return r[i(285)](this,arguments)}})()),program[_0x4edc42(279)](process[_0x4edc42(254)]),global[_0x4edc42(318)]=program,global[_0x4edc42(323)]=!(null==(_global$_ascfCliProgr=global[_0x4edc42(318)][_0x4edc42(257)]())||!_global$_ascfCliProgr.debug);
2
+ var _0x261e81=_0x3f39;function _typeof(e){var r=_0x3f39;return(_typeof=r(384)==typeof Symbol&&"symbol"==typeof Symbol[r(428)]?function(e){return typeof e}:function(e){var t=r;return e&&t(384)==typeof Symbol&&e[t(385)]===Symbol&&e!==Symbol[t(452)]?t(371):typeof e})(e)}function _regeneratorRuntime(){var s=_0x3f39;_regeneratorRuntime=function(){return u};var f,u={},e=Object[s(452)],l=e[s(456)],p=Object[s(364)]||function(e,t,r){var n=s;e[t]=r[n(330)]},t=s(384)==typeof Symbol?Symbol:{},i=t.iterator||s(395),r=t[s(341)]||"@@asyncIterator",n=t[s(366)]||"@@toStringTag";function o(e,t,r){return Object[s(364)](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 c(e,t,r,n){var o,i,a,u,c=s,t=t&&t.prototype instanceof g?t:g,t=Object[c(338)](t.prototype),n=new L(n||[]);return p(t,c(453),{value:(o=e,i=r,a=n,u=d,function(e,t){var r=_0x3f39;if(u===v)throw Error(r(436));if(u===m){if(r(351)===e)throw t;return{value:f,done:!0}}for(a[r(439)]=e,a.arg=t;;){var n=a[r(416)];if(n){n=function e(t,r){var n=s,o=r[n(439)],i=t[n(428)][o];if(i===f)return r[n(416)]=null,n(351)===o&&t[n(428)].return&&(r[n(439)]=n(430),r[n(414)]=f,e(t,r),n(351)===r[n(439)])||n(430)!==o&&(r.method="throw",r[n(414)]=new TypeError(n(360)+o+n(423))),x;o=h(i,t[n(428)],r[n(414)]);if(n(351)===o[n(440)])return r[n(439)]=n(351),r[n(414)]=o[n(414)],r[n(416)]=null,x;i=o.arg;return i?i[n(381)]?(r[t[n(383)]]=i.value,r.next=t[n(358)],n(430)!==r[n(439)]&&(r[n(439)]=n(441),r[n(414)]=f),r[n(416)]=null,x):i:(r[n(439)]=n(351),r[n(414)]=new TypeError(n(388)),r[n(416)]=null,x)}(n,a);if(n){if(n===x)continue;return n}}if(r(441)===a[r(439)])a[r(368)]=a[r(421)]=a.arg;else if(r(351)===a[r(439)]){if(u===d)throw u=m,a[r(414)];a[r(396)](a[r(414)])}else r(430)===a.method&&a.abrupt(r(430),a[r(414)]);u=v;n=h(o,i,a);if(r(376)===n[r(440)]){if(u=a[r(381)]?m:_,n[r(414)]===x)continue;return{value:n[r(414)],done:a[r(381)]}}r(351)===n.type&&(u=m,a.method=r(351),a[r(414)]=n.arg)}})}),t}function h(e,t,r){var n=s;try{return{type:n(376),arg:e[n(392)](t,r)}}catch(e){return{type:n(351),arg:e}}}u[s(409)]=c;var d=s(432),_="suspendedYield",v=s(431),m=s(378),x={};function g(){}function a(){}function y(){}var t={},b=(o(t,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(k([]))),w=(b&&b!==e&&l.call(b,i)&&(t=b),y[s(452)]=g[s(452)]=Object[s(338)](t));function j(e){var t=s;[t(441),"throw",t(430)][t(442)](function(t){o(e,t,function(e){return this[_0x3f39(453)](t,e)})})}function S(u,c){var t,o=s;p(this,o(453),{value:function(r,n){function e(){return new c(function(e,t){!function t(e,r,n,o){var i,a=_0x3f39,e=h(u[e],u,r);if(a(351)!==e[a(440)])return(r=(i=e[a(414)])[a(330)])&&a(339)==_typeof(r)&&l[a(392)](r,a(336))?c[a(454)](r[a(336)])[a(455)](function(e){t(a(441),e,n,o)},function(e){t(a(351),e,n,o)}):c[a(454)](r).then(function(e){i[a(330)]=e,n(i)},function(e){return t("throw",e,n,o)});o(e[a(414)])}(r,n,e,t)})}return t=t?t[o(455)](e,e):e()}})}function C(e){var t=s,r={tryLoc:e[0]};1 in e&&(r[t(380)]=e[1]),2 in e&&(r.finallyLoc=e[2],r[t(331)]=e[3]),this[t(443)].push(r)}function E(e){var t=s,r=e[t(370)]||{};r[t(440)]=t(376),delete r[t(414)],e[t(370)]=r}function L(e){var t=s;this.tryEntries=[{tryLoc:t(448)}],e[t(442)](C,this),this[t(390)](!0)}function k(r){var n=s;if(r||""===r){var o,e=r[i];if(e)return e[n(392)](r);if("function"==typeof r[n(441)])return r;if(!isNaN(r.length))return o=-1,(e=function e(){for(var t=n;++o<r[t(415)];)if(l[t(392)](r,o))return e[t(330)]=r[o],e[t(381)]=!1,e;return e[t(330)]=f,e[t(381)]=!0,e})[n(441)]=e}throw new TypeError(_typeof(r)+n(418))}return a[s(452)]=y,p(w,s(385),{value:y,configurable:!0}),p(y,s(385),{value:a,configurable:!0}),a[s(398)]=o(y,n,s(399)),u[s(357)]=function(e){var t=s,e=t(384)==typeof e&&e[t(385)];return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e[t(424)]))},u[s(451)]=function(e){var t=s;return Object[t(342)]?Object[t(342)](e,y):(e[t(426)]=y,o(e,n,"GeneratorFunction")),e[t(452)]=Object[t(338)](w),e},u[s(367)]=function(e){return{__await:e}},j(S[s(452)]),o(S[s(452)],r,function(){return this}),u[s(410)]=S,u.async=function(e,t,r,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(e,t,r,n),o));return u[i(357)](t)?a:a.next()[i(455)](function(e){var t=i;return e[t(381)]?e[t(330)]:a[t(441)]()})},j(w),o(w,n,"Generator"),o(w,i,function(){return this}),o(w,"toString",function(){return"[object Generator]"}),u[s(408)]=function(e){var t,n=s,o=Object(e),i=[];for(t in o)i.push(t);return i[n(347)](),function e(){for(var t=n;i[t(415)];){var r=i[t(372)]();if(r in o)return e[t(330)]=r,e.done=!1,e}return e.done=!0,e}},u[s(352)]=k,L[s(452)]={constructor:L,reset:function(e){var t=s;if(this[t(359)]=0,this[t(441)]=0,this.sent=this[t(421)]=f,this[t(381)]=!1,this[t(416)]=null,this[t(439)]=t(441),this.arg=f,this[t(443)].forEach(E),!e)for(var r in this)"t"===r[t(355)](0)&&l.call(this,r)&&!isNaN(+r[t(427)](1))&&(this[r]=f)},stop:function(){var e=s,t=(this[e(381)]=!0,this[e(443)][0][e(370)]);if(e(351)===t[e(440)])throw t[e(414)];return this.rval},dispatchException:function(n){var o=s;if(this[o(381)])throw n;var i=this;function e(e,t){var r=o;return a[r(440)]=r(351),a[r(414)]=n,i[r(441)]=e,t&&(i.method=r(441),i[r(414)]=f),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var r=this[o(443)][t],a=r[o(370)];if("root"===r[o(402)])return e("end");if(r.tryLoc<=this[o(359)]){var u=l[o(392)](r,o(380)),c=l[o(392)](r,"finallyLoc");if(u&&c){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0);if(this[o(359)]<r.finallyLoc)return e(r[o(438)])}else if(u){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0)}else{if(!c)throw Error(o(346));if(this[o(359)]<r[o(438)])return e(r[o(438)])}}}},abrupt:function(e,t){for(var r=s,n=this[r(443)][r(415)]-1;0<=n;--n){var o=this[r(443)][n];if(o[r(402)]<=this[r(359)]&&l[r(392)](o,r(438))&&this[r(359)]<o.finallyLoc){var i=o;break}}var a=(i=i&&(r(459)===e||r(334)===e)&&i[r(402)]<=t&&t<=i[r(438)]?null:i)?i[r(370)]:{};return a.type=e,a[r(414)]=t,i?(this[r(439)]="next",this[r(441)]=i.finallyLoc,x):this[r(335)](a)},complete:function(e,t){var r=s;if(r(351)===e[r(440)])throw e[r(414)];return"break"===e[r(440)]||"continue"===e[r(440)]?this[r(441)]=e.arg:r(430)===e.type?(this.rval=this.arg=e[r(414)],this[r(439)]=r(430),this[r(441)]=r(329)):r(376)===e[r(440)]&&t&&(this.next=t),x},finish:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n=this[t(443)][r];if(n[t(438)]===e)return this[t(335)](n.completion,n.afterLoc),E(n),x}},catch:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n,o,i=this.tryEntries[r];if(i[t(402)]===e)return"throw"===(n=i[t(370)])[t(440)]&&(o=n[t(414)],E(i)),o}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){var n=s;return this[n(416)]={iterator:k(e),resultName:t,nextLoc:r},n(441)===this[n(439)]&&(this[n(414)]=f),x}},u}function asyncGeneratorStep(e,t,r,n,o,i,a){var u=_0x3f39;try{var c=e[i](a),s=c[u(330)]}catch(e){return void r(e)}c[u(381)]?t(s):Promise.resolve(s)[u(455)](n,o)}function _0x263c(){var e=["version","action","-c, --clear","arg","length","delegate","--deviceId [deviceId]"," is not iterable","enable debug logging","compile <projectRoot>","_sent","Setting the log level","' method","name","Clear build resource","__proto__","slice","iterator","3543650hWDHsx","return","executing","suspendedStart","Validate path","6300448MFpMyU","compile","Generator is already running","--disableSubpackages [true or false]","finallyLoc","method","type","next","forEach","tryEntries","556548HjzDog","-r, --run [command]","_ascfCliProgram","hook","root","analyze bundle","install","mark","prototype","_invoke","resolve","then","hasOwnProperty","../common/log4js.js","-w, --watch","break","parse","ascf toolkit convert and compile ascf project","Convert miniprogram project to ascf project","Use swc parser, default is babel parser","--templateHoist","-m, --mode","option","310238sMEdsu","end","value","afterLoc","5639328PDnthQ","Command","continue","complete","__await","_ascfDebug","create","object","--serve","asyncIterator","setPrototypeOf","Run command on changes been watched","Watch run for changes","--debug","try statement without catch or finally","reverse","../../package.json","stop","requiredOption","throw","values","opts","command","charAt","219jlAnde","isGeneratorFunction","nextLoc","prev","The iterator does not provide a '","Disable subpackages, default is true for development, false for production","Hoist template to page scope, default is true when have base.hxml","setLoggerConfig","defineProperty","--skipApiValidator [flag]","toStringTag","awrap","sent","-i, --input <input-directory>","completion","symbol","pop","13356288qTiFPC","Not add todo for not supported api.","--analyzeBundle","normal","../commands/ascfbuild","completed","apply","catchLoc","done","Start dev-server","resultName","function","constructor","argv","commander","iterator result is not an object","preAction","reset","--devtool [type]","call","--logging [level]","Clear convert output path","@@iterator","dispatchException","sourcemap type, default is eval-cheap-source-map","displayName","GeneratorFunction","debug","convert","tryLoc","-p, --progress","description","../index","32070jpSltu","Skip API and components validator, default is true","keys","wrap","AsyncIterator"];return(_0x263c=function(){return e})()}function _0x3f39(e,t){var r=_0x263c();return(_0x3f39=function(e,t){return r[e-=325]})(e,t)}function _asyncToGenerator(u){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=u.apply(e,a);function o(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(441),e)}function i(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(351),e)}o(void 0)})}}(()=>{for(var e=_0x3f39,t=_0x263c();;)try{if(884705==-parseInt(e(328))+parseInt(e(406))/2*(parseInt(e(356))/3)+parseInt(e(332))/4+-parseInt(e(429))/5+parseInt(e(444))/6+parseInt(e(434))/7+-parseInt(e(373))/8)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var _require=require(_0x261e81(387)),Command=_require[_0x261e81(333)],pkg=require(_0x261e81(348)),program=new Command,_require2=require(_0x261e81(457)),setLoggerConfig=_require2[_0x261e81(363)],buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require(_0x261e81(377)),cmds=[buildNpmCmd,debuggerCmd,ascfbuildCmd];program[_0x261e81(411)](pkg[_0x261e81(411)])[_0x261e81(404)](_0x261e81(461))[_0x261e81(327)](_0x261e81(393),_0x261e81(422))[_0x261e81(327)](_0x261e81(345),_0x261e81(419)),program[_0x261e81(447)](_0x261e81(389),function(){var e,t=_0x261e81;setLoggerConfig(null==(e=program[t(353)]())?void 0:e.logging),global[t(446)]=program,global[t(337)]=!(null==(e=program[t(353)]())||!e[t(400)])}),program[_0x261e81(354)](_0x261e81(401)).description(_0x261e81(462))[_0x261e81(350)](_0x261e81(369))[_0x261e81(350)]("-o, --output <output-directory>").option(_0x261e81(413),_0x261e81(394))[_0x261e81(327)]("-va, --validate",_0x261e81(433))[_0x261e81(327)]("-notaddtodo, --notaddtodo",_0x261e81(374))[_0x261e81(412)]((()=>{var t=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[t(451)](function e(r){var n=t;return _regeneratorRuntime()[n(409)](function(e){for(var t=n;;)switch(e[t(359)]=e[t(441)]){case 0:return e[t(441)]=2,require(t(405)).convert(r);case 2:case t(329):return e[t(349)]()}},e)}));return function(e){return r[t(379)](this,arguments)}})()),program.command(_0x261e81(420)).description("Compile ascf project").option(_0x261e81(403),"Show build progress").option(_0x261e81(458),_0x261e81(344))[_0x261e81(327)](_0x261e81(326),"Environment, empty is production, -m is development").option("-c, --clear",_0x261e81(425))[_0x261e81(327)](_0x261e81(445),_0x261e81(343))[_0x261e81(327)]("--swc",_0x261e81(463)).option(_0x261e81(391),_0x261e81(397)).option(_0x261e81(437),_0x261e81(361))[_0x261e81(327)](_0x261e81(375),_0x261e81(449),!1).option(_0x261e81(325),_0x261e81(362))[_0x261e81(327)](_0x261e81(365),_0x261e81(407))[_0x261e81(327)](_0x261e81(340),_0x261e81(382)).option(_0x261e81(417),"select a device to start hot reload").action((()=>{var i=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[i(451)](function e(r,n){var o=i;return _regeneratorRuntime()[o(409)](function(e){for(var t=o;;)switch(e.prev=e[t(441)]){case 0:return e.next=2,require(t(405))[t(435)](r,n);case 2:case"end":return e[t(349)]()}},e)}));return function(e,t){return r[i(379)](this,arguments)}})()),cmds[_0x261e81(442)](function(e){return e[_0x261e81(450)](program)}),program[_0x261e81(460)](process[_0x261e81(386)]);
@@ -0,0 +1 @@
1
+ function _typeof(t){var e=_0x34d7;return(_typeof=e(351)==typeof Symbol&&e(336)==typeof Symbol[e(316)]?function(t){return typeof t}:function(t){var r=e;return t&&r(351)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(327)]?r(336):typeof t})(t)}function _regeneratorRuntime(){var s=_0x34d7;_regeneratorRuntime=function(){return c};var f,c={},t=Object[s(327)],h=t[s(362)],l=Object.defineProperty||function(t,r,e){var n=s;t[r]=e[n(317)]},r=s(351)==typeof Symbol?Symbol:{},i=r[s(316)]||s(337),e=r[s(332)]||s(309),n=r[s(271)]||s(277);function o(t,r,e){return Object[s(335)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,i,a,c,u=s,r=r&&r.prototype instanceof b?r:b,r=Object[u(338)](r[u(327)]),n=new L(n||[]);return l(r,u(311),{value:(o=t,i=e,a=n,c=v,function(t,r){var e=_0x34d7;if(c===d)throw Error(e(278));if(c===m){if(e(314)===t)throw r;return{value:f,done:!0}}for(a[e(354)]=t,a[e(323)]=r;;){var n=a[e(280)];if(n){n=function t(r,e){var n=s,o=e[n(354)],i=r.iterator[o];if(i===f)return e[n(280)]=null,n(314)===o&&r.iterator[n(333)]&&(e[n(354)]=n(333),e[n(323)]=f,t(r,e),"throw"===e[n(354)])||n(333)!==o&&(e[n(354)]=n(314),e[n(323)]=new TypeError(n(321)+o+n(334))),_;o=p(i,r.iterator,e[n(323)]);if("throw"===o[n(274)])return e.method=n(314),e[n(323)]=o[n(323)],e.delegate=null,_;i=o[n(323)];return i?i[n(282)]?(e[r[n(310)]]=i[n(317)],e[n(305)]=r[n(319)],n(333)!==e[n(354)]&&(e[n(354)]=n(305),e[n(323)]=f),e[n(280)]=null,_):i:(e[n(354)]=n(314),e[n(323)]=new TypeError(n(290)),e[n(280)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(305)===a[e(354)])a[e(367)]=a._sent=a.arg;else if(e(314)===a[e(354)]){if(c===v)throw c=m,a[e(323)];a[e(339)](a[e(323)])}else e(333)===a[e(354)]&&a[e(356)](e(333),a[e(323)]);c=d;n=p(o,i,a);if("normal"===n[e(274)]){if(c=a[e(282)]?m:y,n.arg===_)continue;return{value:n.arg,done:a.done}}e(314)===n[e(274)]&&(c=m,a[e(354)]="throw",a[e(323)]=n.arg)}})}),r}function p(t,r,e){var n=s;try{return{type:"normal",arg:t[n(320)](r,e)}}catch(t){return{type:n(314),arg:t}}}c[s(312)]=u;var v=s(306),y=s(303),d="executing",m=s(308),_={};function b(){}function a(){}function w(){}var r={},x=(o(r,i,function(){return this}),Object[s(325)]),x=x&&x(x(E([]))),g=(x&&x!==t&&h[s(320)](x,i)&&(r=x),w[s(327)]=b.prototype=Object[s(338)](r));function j(t){var r=s;[r(305),r(314),r(333)].forEach(function(r){o(t,r,function(t){return this[_0x34d7(311)](r,t)})})}function I(c,u){var r,o=s;l(this,o(311),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var i,a=_0x34d7,t=p(c[t],c,e);if("throw"!==t.type)return(e=(i=t[a(323)]).value)&&a(279)==_typeof(e)&&h[a(320)](e,a(285))?u.resolve(e.__await).then(function(t){r(a(305),t,n,o)},function(t){r("throw",t,n,o)}):u[a(268)](e).then(function(t){i[a(317)]=t,n(i)},function(t){return r(a(314),t,n,o)});o(t[a(323)])}(e,n,t,r)})}return r=r?r[o(345)](t,t):t()}})}function O(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(304)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(315)]=t[3]),this[r(289)].push(e)}function S(t){var r=s,e=t[r(283)]||{};e.type=r(307),delete e[r(323)],t[r(283)]=e}function L(t){var r=s;this[r(289)]=[{tryLoc:"root"}],t.forEach(O,this),this[r(292)](!0)}function E(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(320)](e);if(n(351)==typeof e.next)return e;if(!isNaN(e[n(281)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(281)];)if(h[r(320)](e,o))return t[r(317)]=e[o],t.done=!1,t;return t[r(317)]=f,t.done=!0,t})[n(305)]=t}throw new TypeError(_typeof(e)+n(276))}return a[s(327)]=w,l(g,s(269),{value:w,configurable:!0}),l(w,s(269),{value:a,configurable:!0}),a[s(272)]=o(w,n,"GeneratorFunction"),c[s(313)]=function(t){var r=s,t=r(351)==typeof t&&t[r(269)];return!!t&&(t===a||r(294)===(t[r(272)]||t.name))},c[s(331)]=function(t){var r=s;return Object.setPrototypeOf?Object[r(286)](t,w):(t[r(343)]=w,o(t,n,"GeneratorFunction")),t.prototype=Object[r(338)](g),t},c[s(302)]=function(t){return{__await:t}},j(I[s(327)]),o(I[s(327)],e,function(){return this}),c.AsyncIterator=I,c[s(366)]=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new I(u(t,r,e,n),o));return c[i(313)](r)?a:a[i(305)]()[i(345)](function(t){var r=i;return t[r(282)]?t.value:a[r(305)]()})},j(g),o(g,n,s(358)),o(g,i,function(){return this}),o(g,s(364),function(){return s(296)}),c.keys=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i.push(r);return i[n(361)](),function t(){for(var r=n;i[r(281)];){var e=i.pop();if(e in o)return t.value=e,t[r(282)]=!1,t}return t[r(282)]=!0,t}},c[s(355)]=E,L[s(327)]={constructor:L,reset:function(t){var r=s;if(this[r(346)]=0,this[r(305)]=0,this[r(367)]=this[r(273)]=f,this[r(282)]=!1,this[r(280)]=null,this[r(354)]=r(305),this[r(323)]=f,this[r(289)][r(363)](S),!t)for(var e in this)"t"===e.charAt(0)&&h.call(this,e)&&!isNaN(+e[r(301)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this.done=!0,this[t(289)][0][t(283)]);if(t(314)===r[t(274)])throw r[t(323)];return this[t(349)]},dispatchException:function(n){var t=s;if(this.done)throw n;var o=this;function r(t,r){var e=_0x34d7;return a[e(274)]=e(314),a[e(323)]=n,o[e(305)]=t,r&&(o[e(354)]="next",o.arg=f),!!r}for(var e=this[t(289)][t(281)]-1;0<=e;--e){var i=this[t(289)][e],a=i[t(283)];if("root"===i[t(365)])return r(t(350));if(i[t(365)]<=this[t(346)]){var c=h[t(320)](i,"catchLoc"),u=h.call(i,t(322));if(c&&u){if(this[t(346)]<i[t(304)])return r(i[t(304)],!0);if(this[t(346)]<i.finallyLoc)return r(i[t(322)])}else if(c){if(this.prev<i[t(304)])return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[t(346)]<i[t(322)])return r(i[t(322)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(289)][e(281)]-1;0<=n;--n){var o=this[e(289)][n];if(o.tryLoc<=this[e(346)]&&h[e(320)](o,e(322))&&this[e(346)]<o[e(322)]){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i[e(322)]?null:i)?i[e(283)]:{};return a.type=t,a[e(323)]=r,i?(this[e(354)]="next",this.next=i[e(322)],_):this[e(275)](a)},complete:function(t,r){var e=s;if(e(314)===t.type)throw t[e(323)];return e(295)===t.type||e(284)===t.type?this[e(305)]=t.arg:e(333)===t[e(274)]?(this[e(349)]=this[e(323)]=t[e(323)],this[e(354)]=e(333),this.next="end"):e(307)===t[e(274)]&&r&&(this[e(305)]=r),_},finish:function(t){for(var r=s,e=this[r(289)][r(281)]-1;0<=e;--e){var n=this[r(289)][e];if(n[r(322)]===t)return this.complete(n[r(283)],n[r(315)]),S(n),_}},catch:function(t){for(var r=s,e=this.tryEntries[r(281)]-1;0<=e;--e){var n,o,i=this[r(289)][e];if(i[r(365)]===t)return n=i.completion,r(314)===n[r(274)]&&(o=n[r(323)],S(i)),o}throw Error(r(340))},delegateYield:function(t,r,e){var n=s;return this[n(280)]={iterator:E(t),resultName:r,nextLoc:e},n(305)===this[n(354)]&&(this.arg=f),_}},c}function asyncGeneratorStep(t,r,e,n,o,i,a){var c=_0x34d7;try{var u=t[i](a),s=u[c(317)]}catch(t){return void e(t)}u[c(282)]?r(s):Promise[c(268)](s).then(n,o)}function _0x34d7(t,r){var e=_0x1263();return(_0x34d7=function(t,r){return e[t-=268]})(t,r)}function _asyncToGenerator(u){return function(){var t=this,c=arguments;return new Promise(function(r,e){var n=_0x34d7,o=u[n(352)](t,c);function i(t){asyncGeneratorStep(o,r,e,i,a,n(305),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(314),t)}i(void 0)})}}function _0x1263(){var t=["2750OfQQyv","__proto__","289773KSCjYS","then","prev","148MCbATI","cwd","rval","end","function","apply","-t, --deviceId [deviceId]","method","values","abrupt","1883922XHRUOc","Generator","42477HJrYZh","action","reverse","hasOwnProperty","forEach","toString","tryLoc","async","sent","start","description","resolve","constructor","95695PpOsZM","toStringTag","displayName","_sent","type","complete"," is not iterable","@@toStringTag","Generator is already running","object","delegate","length","done","completion","continue","__await","setPrototypeOf","4801174RSxyQf","210BQLdAx","tryEntries","iterator result is not an object","chdir","reset","assembleAndInstallHap","GeneratorFunction","break","[object Generator]","37543Qkhayp","handle","projectRoot","8eEWpAC","slice","awrap","suspendedYield","catchLoc","next","suspendedStart","normal","completed","@@asyncIterator","resultName","_invoke","wrap","isGeneratorFunction","throw","afterLoc","iterator","value","1518777mlakhA","nextLoc","call","The iterator does not provide a '","finallyLoc","arg","command","getPrototypeOf","option","prototype","installHap","uninstall","select a device","mark","asyncIterator","return","' method","defineProperty","symbol","@@iterator","create","dispatchException","illegal catch attempt","stop"];return(_0x1263=function(){return t})()}(()=>{for(var t=_0x34d7,r=_0x1263();;)try{if(990444==+parseInt(t(344))+-parseInt(t(288))/2*(parseInt(t(359))/3)+parseInt(t(347))/4*(parseInt(t(270))/5)+-parseInt(t(357))/6+parseInt(t(287))/7+parseInt(t(300))/8*(parseInt(t(318))/9)+-parseInt(t(342))/10*(-parseInt(t(297))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require("../../ascf-base"),AscfBuilder=_require.AscfBuilder;module.exports={install:function(t){function e(o){return r=_0x34d7,e=_asyncToGenerator(_regeneratorRuntime()[r(331)](function t(e){var n=r;return _regeneratorRuntime()[n(312)](function(t){for(var r=n;;)switch(t[r(346)]=t.next){case 0:e[r(299)]?process[r(291)](e[r(299)]):e[r(299)]=process[r(348)](),new AscfBuilder(e)[r(298)](o);case 3:case r(350):return t[r(341)]()}},t)})),function(t){return e[r(352)](this,arguments)};var r,e}var n=_0x34d7,o=t.command("build");["installDeps","assembleHap","clean"][n(363)](function(t){var r=n;o[r(324)](t)[r(369)](t)[r(326)]("-r, --projectRoot [projectRoot]",r(299)).action(e(t))}),[n(328),n(293),n(329),n(368)][n(363)](function(t){var r=n;o.command(t).description(t)[r(326)]("-r, --projectRoot [projectRoot]",r(299))[r(326)](r(353),r(330))[r(360)](e(t))})}};
@@ -0,0 +1 @@
1
+ var _0x3045b6=_0x3de3;function _typeof(t){var e=_0x3de3;return(_typeof=e(253)==typeof Symbol&&e(257)==typeof Symbol[e(336)]?function(t){return typeof t}:function(t){var r=e;return t&&r(253)==typeof Symbol&&t[r(325)]===Symbol&&t!==Symbol[r(313)]?r(257):typeof t})(t)}function _regeneratorRuntime(){var s=_0x3de3;_regeneratorRuntime=function(){return u};var f,u={},t=Object[s(313)],l=t[s(304)],p=Object[s(330)]||function(t,r,e){t[r]=e.value},r=s(253)==typeof Symbol?Symbol:{},i=r[s(336)]||s(308),e=r[s(361)]||s(351),n=r[s(283)]||s(322);function o(t,r,e){return Object[s(330)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,u,c=s,r=r&&r.prototype instanceof b?r:b,r=Object[c(298)](r[c(313)]),n=new O(n||[]);return p(r,c(359),{value:(o=t,i=e,a=n,u=v,function(t,r){var e=_0x3de3;if(u===y)throw Error("Generator is already running");if(u===m){if(e(338)===t)throw r;return{value:f,done:!0}}for(a.method=t,a[e(262)]=r;;){var n=a[e(263)];if(n){n=function t(r,e){var n=s,o=e[n(324)],i=r[n(336)][o];if(i===f)return e[n(263)]=null,n(338)===o&&r[n(336)].return&&(e[n(324)]=n(348),e[n(262)]=f,t(r,e),n(338)===e[n(324)])||n(348)!==o&&(e.method=n(338),e[n(262)]=new TypeError(n(297)+o+n(340))),_;o=h(i,r[n(336)],e[n(262)]);if(n(338)===o.type)return e.method="throw",e[n(262)]=o[n(262)],e[n(263)]=null,_;i=o[n(262)];return i?i[n(329)]?(e[r[n(349)]]=i[n(353)],e[n(272)]=r[n(344)],n(348)!==e[n(324)]&&(e[n(324)]="next",e.arg=f),e.delegate=null,_):i:(e[n(324)]="throw",e[n(262)]=new TypeError(n(333)),e[n(263)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(272)===a[e(324)])a[e(356)]=a[e(321)]=a[e(262)];else if(e(338)===a[e(324)]){if(u===v)throw u=m,a[e(262)];a[e(296)](a[e(262)])}else e(348)===a.method&&a[e(346)](e(348),a[e(262)]);u=y;n=h(o,i,a);if(e(306)===n[e(295)]){if(u=a.done?m:d,n[e(262)]===_)continue;return{value:n[e(262)],done:a[e(329)]}}e(338)===n.type&&(u=m,a[e(324)]=e(338),a[e(262)]=n[e(262)])}})}),r}function h(t,r,e){var n=s;try{return{type:n(306),arg:t.call(r,e)}}catch(t){return{type:n(338),arg:t}}}u[s(264)]=c;var v="suspendedStart",d=s(310),y=s(252),m=s(280),_={};function b(){}function a(){}function g(){}var r={},x=(o(r,i,function(){return this}),Object.getPrototypeOf),x=x&&x(x(E([]))),w=(x&&x!==t&&l.call(x,i)&&(r=x),g.prototype=b[s(313)]=Object[s(298)](r));function j(t){var r=s;[r(272),r(338),r(348)][r(318)](function(r){o(t,r,function(t){return this._invoke(r,t)})})}function S(u,c){var r;p(this,s(359),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x3de3,t=h(u[t],u,e);if(a(338)!==t[a(295)])return(e=(i=t[a(262)]).value)&&a(311)==_typeof(e)&&l[a(287)](e,"__await")?c[a(277)](e[a(250)])[a(293)](function(t){r(a(272),t,n,o)},function(t){r("throw",t,n,o)}):c[a(277)](e)[a(293)](function(t){i[a(353)]=t,n(i)},function(t){return r(a(338),t,n,o)});o(t[a(262)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function N(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(316)]=t[1]),2 in t&&(e[r(360)]=t[2],e[r(315)]=t[3]),this.tryEntries.push(e)}function L(t){var r=s,e=t[r(285)]||{};e[r(295)]=r(306),delete e[r(262)],t[r(285)]=e}function O(t){var r=s;this[r(354)]=[{tryLoc:r(317)}],t[r(318)](N,this),this[r(258)](!0)}function E(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(287)](e);if("function"==typeof e[n(272)])return e;if(!isNaN(e[n(339)]))return o=-1,(t=function t(){for(var r=n;++o<e.length;)if(l[r(287)](e,o))return t[r(353)]=e[o],t[r(329)]=!1,t;return t[r(353)]=f,t[r(329)]=!0,t})[n(272)]=t}throw new TypeError(_typeof(e)+" is not iterable")}return p(w,"constructor",{value:a.prototype=g,configurable:!0}),p(g,s(325),{value:a,configurable:!0}),a[s(289)]=o(g,n,"GeneratorFunction"),u.isGeneratorFunction=function(t){var r=s,t="function"==typeof t&&t[r(325)];return!!t&&(t===a||r(303)===(t[r(289)]||t[r(276)]))},u[s(319)]=function(t){var r=s;return Object[r(281)]?Object[r(281)](t,g):(t[r(328)]=g,o(t,n,r(303))),t.prototype=Object[r(298)](w),t},u[s(305)]=function(t){return{__await:t}},j(S.prototype),o(S.prototype,e,function(){return this}),u[s(284)]=S,u[s(362)]=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(t,r,e,n),o));return u[i(331)](r)?a:a[i(272)]()[i(293)](function(t){var r=i;return t[r(329)]?t[r(353)]:a[r(272)]()})},j(w),o(w,n,s(312)),o(w,i,function(){return this}),o(w,s(273),function(){return"[object Generator]"}),u[s(286)]=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i[n(278)](r);return i[n(350)](),function t(){for(var r=n;i.length;){var e=i[r(341)]();if(e in o)return t.value=e,t[r(329)]=!1,t}return t[r(329)]=!0,t}},u.values=E,O[s(313)]={constructor:O,reset:function(t){var r=s;if(this[r(267)]=0,this[r(272)]=0,this[r(356)]=this[r(321)]=f,this[r(329)]=!1,this[r(263)]=null,this.method="next",this.arg=f,this[r(354)][r(318)](L),!t)for(var e in this)"t"===e[r(256)](0)&&l[r(287)](this,e)&&!isNaN(+e[r(314)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this[t(329)]=!0,this[t(354)][0][t(285)]);if(t(338)===r.type)throw r.arg;return this[t(320)]},dispatchException:function(n){var o=s;if(this[o(329)])throw n;var i=this;function t(t,r){var e=o;return a[e(295)]=e(338),a[e(262)]=n,i.next=t,r&&(i[e(324)]=e(272),i[e(262)]=f),!!r}for(var r=this[o(354)][o(339)]-1;0<=r;--r){var e=this[o(354)][r],a=e[o(285)];if(o(317)===e[o(355)])return t(o(301));if(e[o(355)]<=this[o(267)]){var u=l[o(287)](e,o(316)),c=l.call(e,o(360));if(u&&c){if(this[o(267)]<e[o(316)])return t(e[o(316)],!0);if(this.prev<e[o(360)])return t(e.finallyLoc)}else if(u){if(this.prev<e[o(316)])return t(e[o(316)],!0)}else{if(!c)throw Error(o(343));if(this.prev<e.finallyLoc)return t(e[o(360)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(354)][e(339)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(355)]<=this[e(267)]&&l[e(287)](o,e(360))&&this.prev<o[e(360)]){var i=o;break}}var a=(i=i&&(e(275)===t||e(248)===t)&&i[e(355)]<=r&&r<=i[e(360)]?null:i)?i[e(285)]:{};return a[e(295)]=t,a[e(262)]=r,i?(this[e(324)]=e(272),this[e(272)]=i.finallyLoc,_):this[e(260)](a)},complete:function(t,r){var e=s;if(e(338)===t[e(295)])throw t[e(262)];return"break"===t[e(295)]||e(248)===t.type?this[e(272)]=t[e(262)]:e(348)===t[e(295)]?(this[e(320)]=this[e(262)]=t.arg,this[e(324)]="return",this[e(272)]=e(301)):"normal"===t[e(295)]&&r&&(this.next=r),_},finish:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n=this[r(354)][e];if(n[r(360)]===t)return this[r(260)](n[r(285)],n.afterLoc),L(n),_}},catch:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n,o,i=this.tryEntries[e];if(i[r(355)]===t)return"throw"===(n=i[r(285)])[r(295)]&&(o=n[r(262)],L(i)),o}throw Error(r(292))},delegateYield:function(t,r,e){var n=s;return this[n(263)]={iterator:E(t),resultName:r,nextLoc:e},n(272)===this[n(324)]&&(this[n(262)]=f),_}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x3de3;try{var c=t[i](a),s=c[u(353)]}catch(t){return void e(t)}c[u(329)]?r(s):Promise.resolve(s)[u(293)](n,o)}function _asyncToGenerator(u){return function(){var t=this,a=arguments;return new Promise(function(r,e){var n=u.apply(t,a);function o(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(272),t)}function i(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(338),t)}o(void 0)})}}(()=>{for(var t=_0x3de3,r=_0x5254();;)try{if(119141==+parseInt(t(251))+-parseInt(t(282))/2+parseInt(t(261))/3*(parseInt(t(307))/4)+-parseInt(t(337))/5+-parseInt(t(332))/6*(parseInt(t(291))/7)+parseInt(t(266))/8+parseInt(t(345))/9)break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require("../../common/utils"),readJsonFile=_require[_0x3045b6(323)],hasHxml=_require[_0x3045b6(259)],moveFiles=_require[_0x3045b6(309)],path=require("path"),fs=require("fs"),log4js=require(_0x3045b6(327)),logger=log4js[_0x3045b6(265)](_0x3045b6(268));function buildMiniProgramNpm(t){var r=_0x3045b6,e=readJsonFile(path[r(288)](t,"ascf",r(342),"package.json"));if(e==={})logger[r(255)](r(335));else{if(e[r(302)])for(var n in e[r(302)])if(Object[r(313)][r(304)][r(287)](e[r(302)],n)){var o=path[r(288)](t,"ascf",r(342),r(326),n);if(!fs.existsSync(o)){var i=path[r(288)](t,r(299),r(342),"node_modules",n);if(!fs[r(357)](i))return void logger[r(279)]("".concat(n,r(358))[r(290)](n,"."));hasHxml(i)&&(n=readJsonFile(path[r(288)](i,r(254)))[r(294)],moveFiles(n?path[r(288)](i,n):i,o))}}logger[r(300)](r(334))}}function _0x3de3(t,r){var e=_0x5254();return(_0x3de3=function(t,r){return e[t-=248]})(t,r)}function _0x5254(){var t=["8QdTSjS","@@iterator","moveFiles","suspendedYield","object","Generator","prototype","slice","afterLoc","catchLoc","root","forEach","mark","rval","_sent","@@toStringTag","readJsonFile","method","constructor","miniprogram_npm","../../common/log4js","__proto__","done","defineProperty","isGeneratorFunction","138kXhrQj","iterator result is not an object","All npm dependencies has been built.","Dependencies info not found.","iterator","522160hauJuB","throw","length","' method","pop","ascf_src","try statement without catch or finally","nextLoc","1809396rxVLxv","abrupt","exports","return","resultName","reverse","@@asyncIterator","buildNpm <projectRoot>","value","tryEntries","tryLoc","sent","existsSync"," not found in node_modules, please run npm install ","_invoke","finallyLoc","asyncIterator","async","continue","Build ASCF npm dependencies to miniprogram_npm","__await","114196mTDXtk","executing","function","package.json","warn","charAt","symbol","reset","hasHxml","complete","74631sNuiUB","arg","delegate","wrap","getLogger","223184bSOpqk","prev","buildNpm","stop","action","apply","next","toString","description","break","name","resolve","push","error","completed","setPrototypeOf","204180TGNZKe","toStringTag","AsyncIterator","completion","keys","call","join","displayName","concat","20461YLCXGR","illegal catch attempt","then","miniprogram","type","dispatchException","The iterator does not provide a '","create","ascf","info","end","dependencies","GeneratorFunction","hasOwnProperty","awrap","normal"];return(_0x5254=function(){return t})()}function buildNpm(t){try{buildMiniProgramNpm(t)}catch(t){logger.error("Error: ascf buildNpm error: ".concat(t,"."))}}module[_0x3045b6(347)]={buildNpm:buildNpm,install:function(t){var o,e,r=_0x3045b6;t.command(r(352))[r(274)](r(249))[r(270)]((o=r,e=_asyncToGenerator(_regeneratorRuntime()[o(319)](function t(e,r){var n=o;return _regeneratorRuntime()[n(264)](function(t){for(var r=n;;)switch(t.prev=t[r(272)]){case 0:buildNpm(e);case 1:case"end":return t[r(269)]()}},t)})),function(t,r){return e[o(271)](this,arguments)}))}};
@@ -0,0 +1 @@
1
+ var _0x4cf00a=_0x2d91;function _typeof(t){var e=_0x2d91;return(_typeof=e(299)==typeof Symbol&&e(321)==typeof Symbol[e(259)]?function(t){return typeof t}:function(t){var r=e;return t&&r(299)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(312)]?r(321):typeof t})(t)}function _regeneratorRuntime(){var f=_0x2d91;_regeneratorRuntime=function(){return u};var s,u={},t=Object[f(312)],h=t.hasOwnProperty,l=Object[f(296)]||function(t,r,e){t[r]=e.value},r=f(299)==typeof Symbol?Symbol:{},i=r[f(259)]||f(303),e=r[f(273)]||f(341),n=r.toStringTag||f(279);function o(t,r,e){return Object[f(296)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,u,c=f,r=r&&r[c(312)]instanceof m?r:m,r=Object[c(332)](r[c(312)]),n=new E(n||[]);return l(r,c(260),{value:(o=t,i=e,a=n,u=p,function(t,r){var e=_0x2d91;if(u===y)throw Error(e(277));if(u===b){if(e(261)===t)throw r;return{value:s,done:!0}}for(a.method=t,a[e(263)]=r;;){var n=a[e(272)];if(n){n=function t(r,e){var n=f,o=e.method,i=r[n(259)][o];if(i===s)return e[n(272)]=null,"throw"===o&&r.iterator[n(346)]&&(e.method=n(346),e[n(263)]=s,t(r,e),n(261)===e.method)||n(346)!==o&&(e.method=n(261),e.arg=new TypeError(n(255)+o+"' method")),g;o=v(i,r[n(259)],e.arg);if("throw"===o.type)return e.method="throw",e[n(263)]=o[n(263)],e[n(272)]=null,g;i=o.arg;return i?i.done?(e[r[n(311)]]=i[n(350)],e[n(351)]=r[n(254)],n(346)!==e[n(315)]&&(e[n(315)]="next",e.arg=s),e.delegate=null,g):i:(e[n(315)]=n(261),e.arg=new TypeError(n(286)),e[n(272)]=null,g)}(n,a);if(n){if(n===g)continue;return n}}if(e(351)===a[e(315)])a[e(348)]=a[e(288)]=a[e(263)];else if("throw"===a.method){if(u===p)throw u=b,a[e(263)];a[e(349)](a[e(263)])}else e(346)===a[e(315)]&&a[e(308)](e(346),a[e(263)]);u=y;n=v(o,i,a);if(e(262)===n[e(268)]){if(u=a.done?b:d,n.arg===g)continue;return{value:n[e(263)],done:a[e(258)]}}e(261)===n.type&&(u=b,a.method=e(261),a[e(263)]=n.arg)}})}),r}function v(t,r,e){var n=f;try{return{type:n(262),arg:t[n(269)](r,e)}}catch(t){return{type:n(261),arg:t}}}u[f(293)]=c;var p=f(294),d=f(304),y=f(287),b="completed",g={};function m(){}function a(){}function _(){}var r={},w=(o(r,i,function(){return this}),Object.getPrototypeOf),w=w&&w(w(N([]))),x=(w&&w!==t&&h.call(w,i)&&(r=w),_.prototype=m[f(312)]=Object[f(332)](r));function I(t){var r=f;["next",r(261),r(346)].forEach(function(r){o(t,r,function(t){return this[_0x2d91(260)](r,t)})})}function j(u,c){var r,o=f;l(this,o(260),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x2d91,t=v(u[t],u,e);if("throw"!==t[a(268)])return(e=(i=t.arg)[a(350)])&&"object"==_typeof(e)&&h[a(269)](e,a(301))?c[a(276)](e[a(301)]).then(function(t){r(a(351),t,n,o)},function(t){r(a(261),t,n,o)}):c[a(276)](e)[a(256)](function(t){i[a(350)]=t,n(i)},function(t){return r("throw",t,n,o)});o(t[a(263)])}(e,n,t,r)})}return r=r?r[o(256)](t,t):t()}})}function O(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(257)]=t[1]),2 in t&&(e[r(266)]=t[2],e.afterLoc=t[3]),this.tryEntries[r(316)](e)}function S(t){var r=f,e=t[r(274)]||{};e[r(268)]="normal",delete e.arg,t[r(274)]=e}function E(t){var r=f;this.tryEntries=[{tryLoc:r(331)}],t[r(317)](O,this),this[r(335)](!0)}function N(e){var n=f;if(e||""===e){var o,t=e[i];if(t)return t[n(269)](e);if(n(299)==typeof e[n(351)])return e;if(!isNaN(e.length))return o=-1,(t=function t(){for(var r=n;++o<e[r(314)];)if(h[r(269)](e,o))return t[r(350)]=e[o],t[r(258)]=!1,t;return t[r(350)]=s,t[r(258)]=!0,t})[n(351)]=t}throw new TypeError(_typeof(e)+n(333))}return a.prototype=_,l(x,f(298),{value:_,configurable:!0}),l(_,f(298),{value:a,configurable:!0}),a[f(275)]=o(_,n,f(313)),u[f(271)]=function(t){var r=f,t=r(299)==typeof t&&t[r(298)];return!!t&&(t===a||r(313)===(t[r(275)]||t[r(306)]))},u[f(325)]=function(t){var r=f;return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,o(t,n,r(313))),t.prototype=Object[r(332)](x),t},u.awrap=function(t){return{__await:t}},I(j[f(312)]),o(j[f(312)],e,function(){return this}),u[f(310)]=j,u.async=function(t,r,e,n,o){var i=f,a=(void 0===o&&(o=Promise),new j(c(t,r,e,n),o));return u[i(271)](r)?a:a[i(351)]()[i(256)](function(t){var r=i;return t[r(258)]?t[r(350)]:a[r(351)]()})},I(x),o(x,n,f(322)),o(x,i,function(){return this}),o(x,f(330),function(){return f(329)}),u[f(302)]=function(t){var r,n=f,o=Object(t),i=[];for(r in o)i.push(r);return i[n(319)](),function t(){for(var r=n;i[r(314)];){var e=i[r(282)]();if(e in o)return t.value=e,t[r(258)]=!1,t}return t[r(258)]=!0,t}},u[f(355)]=N,E[f(312)]={constructor:E,reset:function(t){var r=f;if(this[r(343)]=0,this[r(351)]=0,this[r(348)]=this._sent=s,this[r(258)]=!1,this[r(272)]=null,this[r(315)]=r(351),this[r(263)]=s,this[r(253)][r(317)](S),!t)for(var e in this)"t"===e[r(342)](0)&&h.call(this,e)&&!isNaN(+e[r(344)](1))&&(this[e]=s)},stop:function(){var t=f,r=(this.done=!0,this[t(253)][0][t(274)]);if(t(261)===r[t(268)])throw r[t(263)];return this.rval},dispatchException:function(n){var o=f;if(this[o(258)])throw n;var i=this;function t(t,r){var e=o;return a[e(268)]=e(261),a[e(263)]=n,i.next=t,r&&(i.method=e(351),i[e(263)]=s),!!r}for(var r=this[o(253)][o(314)]-1;0<=r;--r){var e=this[o(253)][r],a=e[o(274)];if(o(331)===e[o(340)])return t(o(278));if(e[o(340)]<=this[o(343)]){var u=h[o(269)](e,o(257)),c=h.call(e,"finallyLoc");if(u&&c){if(this[o(343)]<e[o(257)])return t(e[o(257)],!0);if(this[o(343)]<e[o(266)])return t(e[o(266)])}else if(u){if(this.prev<e[o(257)])return t(e[o(257)],!0)}else{if(!c)throw Error(o(353));if(this[o(343)]<e[o(266)])return t(e[o(266)])}}}},abrupt:function(t,r){for(var e=f,n=this.tryEntries.length-1;0<=n;--n){var o=this[e(253)][n];if(o[e(340)]<=this.prev&&h[e(269)](o,e(266))&&this.prev<o[e(266)]){var i=o;break}}var a=(i=i&&("break"===t||e(289)===t)&&i[e(340)]<=r&&r<=i[e(266)]?null:i)?i[e(274)]:{};return a[e(268)]=t,a.arg=r,i?(this[e(315)]=e(351),this[e(351)]=i[e(266)],g):this[e(318)](a)},complete:function(t,r){var e=f;if(e(261)===t[e(268)])throw t[e(263)];return e(309)===t.type||e(289)===t[e(268)]?this[e(351)]=t[e(263)]:e(346)===t[e(268)]?(this[e(270)]=this[e(263)]=t[e(263)],this.method=e(346),this[e(351)]=e(278)):e(262)===t[e(268)]&&r&&(this[e(351)]=r),g},finish:function(t){for(var r=f,e=this[r(253)][r(314)]-1;0<=e;--e){var n=this[r(253)][e];if(n[r(266)]===t)return this.complete(n[r(274)],n[r(305)]),S(n),g}},catch:function(t){for(var r=f,e=this[r(253)].length-1;0<=e;--e){var n,o,i=this[r(253)][e];if(i[r(340)]===t)return n=i[r(274)],r(261)===n[r(268)]&&(o=n.arg,S(i)),o}throw Error(r(326))},delegateYield:function(t,r,e){var n=f;return this[n(272)]={iterator:N(t),resultName:r,nextLoc:e},"next"===this[n(315)]&&(this.arg=s),g}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x2d91;try{var c=t[i](a),f=c[u(350)]}catch(t){return void e(t)}c.done?r(f):Promise.resolve(f)[u(256)](n,o)}function _asyncToGenerator(u){return function(){var t=this,a=arguments;return new Promise(function(r,e){var n=u.apply(t,a);function o(t){asyncGeneratorStep(n,r,e,o,i,_0x2d91(351),t)}function i(t){asyncGeneratorStep(n,r,e,o,i,"throw",t)}o(void 0)})}}function _0x2d91(t,r){var e=_0x2b9a();return(_0x2d91=function(t,r){return e[t-=251]})(t,r)}(()=>{for(var t=_0x2d91,r=_0x2b9a();;)try{if(217184==-parseInt(t(339))+parseInt(t(324))/2+-parseInt(t(347))/3+parseInt(t(265))/4+-parseInt(t(300))/5+-parseInt(t(281))/6+-parseInt(t(345))/7*(-parseInt(t(328))/8))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require(_0x4cf00a(283)),AscfDebugger=_require[_0x4cf00a(334)];function _0x2b9a(){var t=["defineProperty","start-service","constructor","function","1213890gqPsrA","__await","keys","@@iterator","suspendedYield","afterLoc","name",'Open default browser, "default","chrome","edge"',"abrupt","break","AsyncIterator","resultName","prototype","GeneratorFunction","length","method","push","forEach","complete","reverse","start","symbol","Generator","status","418762FoBqMp","mark","illegal catch attempt","command","483976rrClKo","[object Generator]","toString","root","create"," is not iterable","AscfDebugger","reset","apply","exports","-o, --open <browser>","368877BWoQtR","tryLoc","@@asyncIterator","charAt","prev","slice","119qfRyWV","return","955308YIcDTv","sent","dispatchException","value","next","stop-view","try statement without catch or finally","-t, --deviceId [deviceId]","values","select a device to debug","debugger","tryEntries","nextLoc","The iterator does not provide a '","then","catchLoc","done","iterator","_invoke","throw","normal","arg","bundleName of debugging project","816204WAAtAG","finallyLoc","stop-service","type","call","rval","isGeneratorFunction","delegate","asyncIterator","completion","displayName","resolve","Generator is already running","end","@@toStringTag","handle","1767636mSDTkJ","pop","../../ascf-base","description","option","iterator result is not an object","executing","_sent","continue","-b, --bundleName [bundleName]","start-view","stop","wrap","suspendedStart","action"];return(_0x2b9a=function(){return t})()}module[_0x4cf00a(337)]={install:function(t){function e(n){return r=_0x2d91,e=_asyncToGenerator(_regeneratorRuntime()[r(325)](function t(e){return _regeneratorRuntime().wrap(function(t){for(var r=_0x2d91;;)switch(t[r(343)]=t[r(351)]){case 0:new AscfDebugger(e)[r(280)](n);case 2:case"end":return t[r(292)]()}},t)})),function(t){return e[r(336)](this,arguments)};var r,e}var n=_0x4cf00a,o=t[n(327)](n(252));[n(323)][n(317)](function(t){var r=n;o.command(t)[r(284)](t).option("-b, --bundleName [bundleName]","bundleName of debugging project")[r(285)](r(354),r(251))[r(295)](e(t))}),[n(320),n(291),n(297)][n(317)](function(t){var r=n;o[r(327)](t).description(t).option(r(338),r(307),"default")[r(285)](r(290),r(264))[r(285)](r(354),r(251))[r(295)](e(t))}),[n(292),n(352),n(267)][n(317)](function(t){var r=n;o[r(327)](t)[r(284)](t)[r(285)](r(290),r(264))[r(285)]("-t, --deviceId [deviceId]",r(251))[r(295)](e(t))})}};
@@ -1 +1 @@
1
- var _0x8ae3d8=_0x1456;function _0x1dbd(){var e=["660LndATG","label","3816776ZHmMEg","checkbox-group","configs","radio","2556533plliTS","icon","video","6vKhRZc","612027NaXUPH","9tAHCBf","picker-view","button","swiper-item","1801640WDSUqF","movable-area","canvas","switch","651088gdEcRx","text","babel","slider","web-view","picker","28364NSOSwM","camera","checkbox","view","navigator","158030PnjUfI","movable-view","Map","image","scroll-view","swiper","form","rich-text","9KyCKNJ"];return(_0x1dbd=function(){return e})()}function _0x1456(e,a){var r=_0x1dbd();return(_0x1456=function(e,a){return r[e-=217]})(e,a)}(()=>{for(var e=_0x1456,a=_0x1dbd();;)try{if(239955==-parseInt(e(232))*(-parseInt(e(219))/2)+parseInt(e(243))/3+parseInt(e(252))/4+-parseInt(e(248))/5+parseInt(e(242))/6*(-parseInt(e(239))/7)+parseInt(e(235))/8*(-parseInt(e(244))/9)+-parseInt(e(224))/10*(-parseInt(e(233))/11))break;a.push(a.shift())}catch(e){a.push(a.shift())}})();var configs={notaddtodo:!1,parser:_0x8ae3d8(254),devtool:void 0,componentList:[_0x8ae3d8(249),_0x8ae3d8(225),_0x8ae3d8(228),_0x8ae3d8(229),_0x8ae3d8(247),_0x8ae3d8(222),_0x8ae3d8(240),"progress",_0x8ae3d8(231),_0x8ae3d8(253),_0x8ae3d8(246),_0x8ae3d8(221),_0x8ae3d8(236),_0x8ae3d8(230),"input",_0x8ae3d8(234),_0x8ae3d8(218),_0x8ae3d8(245),"picker-view-column",_0x8ae3d8(238),"radio-group",_0x8ae3d8(255),_0x8ae3d8(251),"textarea",_0x8ae3d8(223),_0x8ae3d8(227),_0x8ae3d8(241),_0x8ae3d8(220),_0x8ae3d8(226),_0x8ae3d8(250),_0x8ae3d8(217)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0};exports[_0x8ae3d8(237)]=configs;
1
+ function _0x3bf2(c,e){var r=_0x49ac();return(_0x3bf2=function(c,e){return r[c-=332]})(c,e)}var _0x3c616c=_0x3bf2;function _0x49ac(){var c=["isProd","textarea","NODE_ENV","form","video","movable-view","4995zYDNcM","2307854PwquOj","development","picker-view-column","configs","env","checkbox","navigator","2527adhlWB","camera","19728UDtxsl","babel","image","slider","switch","movable-area","picker","radio","769620pymZXy","canvas","text","378296JQWXse","web-view","swiper","4556PpgQwT","4352436zrqZvM","icon","button","6415208oHllAk","checkbox-group","radio-group","input"];return(_0x49ac=function(){return c})()}(()=>{for(var c=_0x3bf2,e=_0x49ac();;)try{if(749439==+parseInt(c(346))+parseInt(c(364))/2+parseInt(c(343))/3+-parseInt(c(349))/4*(parseInt(c(363))/5)+-parseInt(c(335))/6*(parseInt(c(333))/7)+parseInt(c(353))/8+parseInt(c(350))/9)break;e.push(e.shift())}catch(c){e.push(e.shift())}})();var configs={notaddtodo:!1,parser:_0x3c616c(336),devtool:void 0,componentList:[_0x3c616c(340),_0x3c616c(362),"scroll-view",_0x3c616c(348),"swiper-item","view",_0x3c616c(351),"progress","rich-text",_0x3c616c(345),_0x3c616c(352),_0x3c616c(369),_0x3c616c(354),_0x3c616c(360),_0x3c616c(356),"label",_0x3c616c(341),"picker-view",_0x3c616c(366),_0x3c616c(342),_0x3c616c(355),_0x3c616c(338),_0x3c616c(339),_0x3c616c(358),_0x3c616c(332),_0x3c616c(337),_0x3c616c(361),_0x3c616c(334),"Map",_0x3c616c(344),_0x3c616c(347)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var c=_0x3c616c;return process[c(368)][c(359)]!==c(365)},isInjectDebugTimer:function(){return!configs[_0x3c616c(357)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[]};exports[_0x3c616c(367)]=configs;
@@ -1 +1 @@
1
- var _0x536a28=_0x105b;function _typeof(e){var t=_0x105b;return(_typeof=t(166)==typeof Symbol&&t(131)==typeof Symbol[t(168)]?function(e){return typeof e}:function(e){var r=t;return e&&r(166)==typeof Symbol&&e.constructor===Symbol&&e!==Symbol[r(153)]?r(131):typeof e})(e)}function _0x105b(e,r){var t=_0x5b88();return(_0x105b=function(e,r){return t[e-=116]})(e,r)}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=_0x105b,a=0;a<r[t(117)];a++){var o=r[a];o[t(157)]=o.enumerable||!1,o.configurable=!0,t(123)in o&&(o[t(124)]=!0),Object.defineProperty(e,_toPropertyKey(o[t(134)]),o)}}function _createClass(e,r,t){var a=_0x105b;return r&&_defineProperties(e[a(153)],r),t&&_defineProperties(e,t),Object[a(121)](e,a(153),{writable:!1}),e}function _toPropertyKey(e){var r=_0x105b,e=_toPrimitive(e,r(119));return r(131)==_typeof(e)?e:e+""}function _toPrimitive(e,r){var t=_0x105b;if("object"!=_typeof(e)||!e)return e;var a=e[Symbol[t(128)]];if(void 0===a)return(t(119)===r?String:Number)(e);a=a.call(e,r||t(160));if(t(154)!=_typeof(a))return a;throw new TypeError(t(151))}(()=>{for(var e=_0x105b,r=_0x5b88();;)try{if(982174==+parseInt(e(143))*(parseInt(e(133))/2)+parseInt(e(156))/3+-parseInt(e(139))/4*(parseInt(e(144))/5)+-parseInt(e(165))/6+parseInt(e(142))/7*(parseInt(e(127))/8)+parseInt(e(129))/9*(-parseInt(e(132))/10)+parseInt(e(158))/11*(parseInt(e(161))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var log4js=require(_0x536a28(116)),path=require(_0x536a28(140)),levelArr=[_0x536a28(118),_0x536a28(141),_0x536a28(167),_0x536a28(169),_0x536a28(163)],cachedir=require(_0x536a28(135)),ASCF_LOG_FILE=path[_0x536a28(120)](cachedir(_0x536a28(146)),_0x536a28(125)),ASCF_TOOLKIT=_0x536a28(162);function setLoggerConfig(e){var r=_0x536a28,e=getLevel(e);log4js[r(164)]({appenders:{default:{type:r(148),layout:{type:r(137),pattern:r(138)}},"debug-log-file":{type:"fileSync",filename:path[r(120)](cachedir(r(146)),r(125)),maxLogSize:10485760,backups:9,layout:{type:"pattern",pattern:r(150)}}},categories:{default:{appenders:[r(160)],level:e},AscfToolkit:{appenders:[r(122)],level:r(118)}}})}function getLevel(e){var r=_0x536a28;return e&&levelArr[r(147)](e[r(149)]())?e[r(149)]():r(141)}function _0x5b88(){var e=["key","cachedir","categories","pattern","> ascf-toolkit %p %c %[%m%]","5484aThQRc","path","info","6031382HvPwDH","4307bsLZLc","4915KkGOmV","setLoggerConfig","ascf-cache","includes","stdout","toLowerCase","%d{yyyy-MM-dd hh:mm:ss.SSS} > ascf-toolkit %p %c %m","@@toPrimitive must return a primitive value.","exit","prototype","object","getLogger","3213048LWQUnP","enumerable","6863109jJIaec","apply","default","48MkOdud","AscfToolkit","fatal","configure","6643494qzVQwL","function","warn","iterator","error","log4js","length","debug","string","resolve","defineProperty","debug-log-file","value","writable","build.log","concat","8BBpAVE","toPrimitive","9oROFqH","exports","symbol","13056130GrvJgP","146AFlgvC"];return(_0x5b88=function(){return e})()}var Logger=(()=>{var l=_0x536a28;return _createClass(function e(r){var t=_0x105b;_classCallCheck(this,e),this[t(136)]=r},[{key:"debug",value:function(e){for(var r=_0x105b,t=log4js[r(155)](this.categories),a=log4js[r(155)](ASCF_TOOLKIT),o=arguments.length,n=new Array(1<o?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];t[r(118)][r(159)](t,[e][r(126)](n)),a[r(118)][r(159)](a,[e].concat(n))}},{key:l(141),value:function(e){for(var r=l,t=log4js[r(155)](this[r(136)]),a=log4js[r(155)](ASCF_TOOLKIT),o=arguments[r(117)],n=new Array(1<o?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];t[r(141)][r(159)](t,[e][r(126)](n)),a.info.apply(a,[e][r(126)](n))}},{key:l(167),value:function(e){for(var r=l,t=log4js[r(155)](this[r(136)]),a=log4js[r(155)](ASCF_TOOLKIT),o=arguments[r(117)],n=new Array(1<o?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];t[r(167)][r(159)](t,[e][r(126)](n)),a.warn[r(159)](a,[e][r(126)](n))}},{key:l(169),value:function(e){for(var r=l,t=log4js[r(155)](this[r(136)]),a=log4js[r(155)](ASCF_TOOLKIT),o=arguments[r(117)],n=new Array(1<o?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];t[r(169)].apply(t,[e][r(126)](n)),a[r(169)].apply(a,[e][r(126)](n))}},{key:l(163),value:function(e){for(var r=l,t=log4js.getLogger(this.categories),a=log4js[r(155)](ASCF_TOOLKIT),o=arguments[r(117)],n=new Array(1<o?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];t[r(163)].apply(t,[e][r(126)](n)),a[r(163)][r(159)](a,[e][r(126)](n)),process[r(152)](1)}}])})();function getLogger(e){return new Logger(e)}module.exports={getLogger:getLogger,ASCF_LOG_FILE:ASCF_LOG_FILE},module[_0x536a28(130)][_0x536a28(145)]=setLoggerConfig;
1
+ function _0x1958(e,r){var t=_0x1dbf();return(_0x1958=function(e,r){return t[e-=183]})(e,r)}function _0x1dbf(){var e=["2417344HkEkWU","36Vbdpqw","../ascf-base","1346505EcpJKn","1633795mzyBml","2dgyhws","586912HxmbyP","6CoZmIA","16396880IUhCtl","ASCF_LOG_FILE","390204jNxPNH","exports","543599FwhkSg"];return(_0x1dbf=function(){return e})()}var _0x3dc7c=_0x1958,_require=((()=>{for(var e=_0x1958,r=_0x1dbf();;)try{if(307273==-parseInt(e(189))+parseInt(e(184))/2*(-parseInt(e(195))/3)+-parseInt(e(192))/4+-parseInt(e(183))/5*(-parseInt(e(186))/6)+parseInt(e(191))/7+-parseInt(e(185))/8*(parseInt(e(193))/9)+parseInt(e(187))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x3dc7c(194))),ASCF_LOG_FILE=_require[_0x3dc7c(188)],setLoggerConfig=_require.setLoggerConfig,getLogger=_require.getLogger;module[_0x3dc7c(190)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
@@ -1 +1 @@
1
- var _0x4e0eda=_0x28c5;function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){var e=_0x28c5;return r&&e(502)==typeof Symbol&&r[e(490)]===Symbol&&r!==Symbol[e(562)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x28c5;if(!(r instanceof e))throw new TypeError(t(521))}function _defineProperties(r,e){for(var t=_0x28c5,n=0;n<e[t(545)];n++){var o=e[n];o[t(538)]=o[t(538)]||!1,o[t(569)]=!0,t(567)in o&&(o[t(517)]=!0),Object[t(505)](r,_toPropertyKey(o[t(519)]),o)}}function _createClass(r,e,t){var n=_0x28c5;return e&&_defineProperties(r[n(562)],e),t&&_defineProperties(r,t),Object[n(505)](r,n(562),{writable:!1}),r}function _toPropertyKey(r){var e=_0x28c5,r=_toPrimitive(r,e(559));return e(497)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x28c5;if("object"!=_typeof(r)||!r)return r;var n=r[Symbol[t(499)]];if(void 0===n)return("string"===e?String:Number)(r);n=n[t(550)](r,e||t(536));if(t(533)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t,n=_0x28c5;if(r)return n(559)==typeof r?_arrayLikeToArray(r,e):("Object"===(t={}[n(578)][n(550)](r).slice(8,-1))&&r[n(490)]&&(t=r[n(490)][n(515)]),n(498)===t||n(535)===t?Array[n(532)](r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(547)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x28c5;if(e(554)!=typeof Symbol&&null!=r[Symbol[e(514)]]||null!=r[e(584)])return Array[e(532)](r)}function _arrayWithoutHoles(r){if(Array[_0x28c5(495)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x28c5;(null==e||e>r.length)&&(e=r[t(545)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x28c5,e=_0x15fd();;)try{if(502398==+parseInt(r(542))*(-parseInt(r(590))/2)+parseInt(r(561))/3*(parseInt(r(522))/4)+-parseInt(r(523))/5*(parseInt(r(588))/6)+parseInt(r(556))/7*(-parseInt(r(491))/8)+parseInt(r(577))/9*(parseInt(r(531))/10)+-parseInt(r(552))/11*(-parseInt(r(570))/12)+parseInt(r(580))/13)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x4e0eda(504),log4js=require(_0x4e0eda(553)),logger=log4js[_0x4e0eda(546)](_0x4e0eda(516));function defaultFormatter(r,e){var n=_0x4e0eda;return r[n(513)](function(r,e){var t=n;return[].concat(_toConsumableArray(r),["\n"[t(541)](e.message)])},[])}function babelSyntaxError(r){var e=_0x4e0eda;return isBabelSyntaxError(r)&&(r[e(589)]=cleanStackTrace(r[e(589)])),r}function _0x15fd(){var r=["message","1304234PSYocV","constructor","19248jMBMSh","calculate","FAIL ","warningCount","isArray","endTime","symbol","Map","toPrimitive","\n@ ","SUCCESS ","function","stringify","Module not found","defineProperty","options"," ms","printCompileResult","startTime","done","hasWarnings","showCompileTime","reduce","iterator","name","logger-plugin","writable","some","key","getTime","Cannot call a class as a function","327556erDgyR","3092875WFBchT","formatters","BuildLogOutputPlugin","fatal","forEach","env","includes","error","670XbcMwj","from","object","hasErrors","Set","default","info","enumerable","ModuleBuildError","replace","concat","1fhZbuK","warning","transformers","length","getLogger","test","\n\nYou can check full log: ","Error: ","call","dropRepeat","10027831sUBlet","./log4js.js","undefined","errorCount","1778Htdszr","warnings","errors","string","\nCOMPILE RESULT:","9UYqUmX","prototype","warn","origin","compilation","ERROR: ","value","noteCount","configurable","12WECOQg","compileTime: ","round","resource","file","ASCF_LOG_FILE","displayErrors","84681GCdwXB","toString","assign","7754799yFOwBT","apply","warnCount","\nCOMPILE RESULT:SUCCESS","@@iterator","showtime","SyntaxError","map","6ERhuqr"];return(_0x15fd=function(){return r})()}function isBabelSyntaxError(r){var e=_0x4e0eda;return r[e(515)]===e(539)&&r.message.includes(e(586))}function cleanStackTrace(r){var e=_0x4e0eda;return r[e(540)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"").replace(/^Module build failed.*:\s/,e(549))}function moduleNotFoundError(r){var e,t=_0x4e0eda;return"ModuleNotFoundError"===r[t(515)]&&r[t(589)][t(529)](TYPE)&&(r[t(589)]=r.message.replace(TYPE,t(566).concat(TYPE)),e=r.origin&&r[t(564)][t(573)])&&(r[t(589)]+=t(500).concat(e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x4e0eda;return{message:r[e(589)],file:r[e(574)],origin:r[e(564)],name:r.name,severity:0,webpackError:r}}function cleanMessage(r){var e=_0x4e0eda;return r[e(540)]("(Emitted value instead of an instance of Error) ","").replace(/Module Warning[^\n]+\n/,"")[e(540)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x4e0eda;return r[n(587)](extractError)[n(587)](function(r){return e[_0x28c5(513)](t,r)})}function formatErrors(e,r,t){var n=_0x4e0eda;return r[n(587)](function(r){return r(e,t)||[]})[n(513)](function(r,e){return r[_0x28c5(541)](e)},[])}function _0x28c5(r,e){var t=_0x15fd();return(_0x28c5=function(r,e){return t[r-=490]})(r,e)}function getCompileTime(r){var e=_0x4e0eda,t=r[e(496)],r=r[e(509)];logger[e(537)](e(571).concat(t-r,e(507)))}function _dropRepeat(r){var e=_0x4e0eda;return r[e(513)](function(r,t){var n=e;return r[n(518)](function(r){var e=n;return r[e(589)]===t[e(589)]})?r:r[n(541)](t)},[])}var BuildLogOutputPlugin=(()=>{var c=_0x4e0eda;return _createClass(function r(){var e=_0x28c5,t=0<arguments[e(545)]&&void 0!==arguments[0]?arguments[0]:{},n=t.showCompileTime,n=void 0!==n&&n,t=t[e(506)];_classCallCheck(this,r),this[e(555)]=0,this[e(494)]=0,this[e(568)]=0,this[e(512)]=n||"true"===process[e(528)][e(585)],this[e(524)]=defaultFormatters,this[e(544)]=defaultTransformers,this[e(506)]=t},[{key:c(581),value:function(r){var u=c,s=this;r.hooks[u(510)].tap(u(525),function(e){var t=u,r=(s[t(551)](e),e[t(565)]),n=r[t(558)],o=r[t(557)],a=e[t(534)](),i=e[t(511)]();setTimeout(function(){var r=t;a&&s[r(576)](n,"error"),i&&s[r(576)](o,r(543)),s[r(492)](e,n,o),s[r(508)](),s.showCompileTime&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=c;r[e(565)][e(557)]=_dropRepeat(r.compilation[e(557)]),r.compilation[e(558)]=_dropRepeat(r[e(565)][e(558)])}},{key:c(492),value:function(r,e){var t=c,n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=r[t(565)].extraInfo||{},a=r[t(555)],a=void 0===a?0:a,i=r[t(582)],i=void 0===i?0:i,r=r[t(568)],r=void 0===r?0:r;this[t(555)]=e.length+a,this[t(494)]=i,this[t(568)]=r,o[t(527)](function(r){var e=t,r=r[e(589)];/^NOTE:/[e(547)](cleanMessage(r))?n.noteCount++:n[e(494)]++})}},{key:c(508),value:function(){var r,e=c,t=this[e(555)],n=this[e(494)],o=this[e(568)],a=(new Date)[e(520)]()-global.beginTime,a=", elapsed: "+Math[e(572)](a/1e3)+"s"+e(548)+log4js[e(575)];0<t+n+o?(r=e(t?493:501),n=Object[e(579)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(526)](e(560)[e(541)](r).concat(JSON[e(503)](n))+a):logger[e(563)](e(560)[e(541)](r).concat(JSON.stringify(n))+a)):logger.info(e(583)+a)}},{key:c(576),value:function(r,t){formatErrors(transformErrors(r,this.transformers),this.formatters,t).forEach(function(r){var e=_0x28c5;t===e(530)&&logger[e(530)](cleanMessage(r)),t===e(543)&&logger[e(563)](cleanMessage(r))})}},{key:"getBuildMsg",value:function(r,e){var t=c;return formatErrors(transformErrors(r,this[t(544)]),this[t(524)],e).map(function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
1
+ var _0x672a28=_0x748f;function _typeof(r){var t=_0x748f;return(_typeof=t(516)==typeof Symbol&&"symbol"==typeof Symbol[t(491)]?function(r){return typeof r}:function(r){var e=t;return r&&e(516)==typeof Symbol&&r[e(510)]===Symbol&&r!==Symbol.prototype?e(466):typeof r})(r)}function _0x748f(r,e){var t=_0x20d5();return(_0x748f=function(r,e){return t[r-=454]})(r,e)}function _classCallCheck(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(r,e){for(var t=_0x748f,n=0;n<e[t(527)];n++){var o=e[n];o[t(506)]=o[t(506)]||!1,o[t(479)]=!0,"value"in o&&(o[t(523)]=!0),Object[t(492)](r,_toPropertyKey(o.key),o)}}function _0x20d5(){var r=["hooks","322892SQFjxa","reduce","string","noteCount","stringify","@@iterator","default","errorCount","enumerable","hasErrors","apply","warningCount","constructor","dropRepeat","ModuleNotFoundError","getLogger","(Emitted value instead of an instance of Error) ","exports","function","showCompileTime","33RWcQtQ","warnCount","3269260RydXWM","resource","done","writable","3792273wVZnjF","assign","env","length","undefined","Module not found","1542244wZGypY","15VqNddx","BuildLogOutputPlugin","1228353wgqhIB","from","startTime","fatal","Error: ","slice","showtime","4523368JwbPCu","forEach","\nCOMPILE RESULT:SUCCESS","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."," ms","\nCOMPILE RESULT:","true","898830JvlvHQ","extraInfo","warning","origin","object","prototype","Object","map","error","concat","7jaeOdm","file","symbol","call","9wIBvrm","name","compilation","beginTime","toPrimitive","formatters","\n@ ","replace","message","transformers","displayErrors","configurable",", elapsed: ","compileTime: ","round","ASCF_LOG_FILE","warn","isArray","warnings","ModuleBuildError","Arguments","printCompileResult","options","iterator","defineProperty","test","calculate","includes","tap"];return(_0x20d5=function(){return r})()}function _createClass(r,e,t){var n=_0x748f;return e&&_defineProperties(r[n(459)],e),t&&_defineProperties(r,t),Object[n(492)](r,n(459),{writable:!1}),r}function _toPropertyKey(r){var e=_0x748f,r=_toPrimitive(r,"string");return e(466)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x748f;if("object"!=_typeof(r)||!r)return r;var n=r[Symbol[t(472)]];if(void 0===n)return("string"===e?String:Number)(r);n=n.call(r,e||t(504));if(t(458)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x748f(543))}function _unsupportedIterableToArray(r,e){var t,n=_0x748f;if(r)return n(500)==typeof r?_arrayLikeToArray(r,e):(t={}.toString[n(467)](r)[n(538)](8,-1),"Map"===(t=n(460)===t&&r[n(510)]?r[n(510)][n(469)]:t)||"Set"===t?Array.from(r):n(488)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(493)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x748f;if(e(528)!=typeof Symbol&&null!=r[Symbol[e(491)]]||null!=r[e(503)])return Array[e(534)](r)}function _arrayWithoutHoles(r){if(Array[_0x748f(485)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r[_0x748f(527)])&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}(()=>{for(var r=_0x748f,e=_0x20d5();;)try{if(908763==+parseInt(r(533))+-parseInt(r(498))/2+parseInt(r(524))/3+-parseInt(r(530))/4*(parseInt(r(531))/5)+-parseInt(r(454))/6*(-parseInt(r(464))/7)+-parseInt(r(540))/8*(-parseInt(r(468))/9)+-parseInt(r(520))/10*(parseInt(r(518))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x672a28(529),log4js=require("./log4js.js"),logger=log4js[_0x672a28(513)]("logger-plugin");function defaultFormatter(r,e){return r.reduce(function(r,e){var t=_0x748f;return[].concat(_toConsumableArray(r),["\n"[t(463)](e.message)])},[])}function babelSyntaxError(r){var e=_0x672a28;return isBabelSyntaxError(r)&&(r[e(476)]=cleanStackTrace(r[e(476)])),r}function isBabelSyntaxError(r){var e=_0x672a28;return r[e(469)]===e(487)&&r.message[e(495)]("SyntaxError")}function cleanStackTrace(r){var e=_0x672a28;return r[e(475)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(475)](/^Module build failed.*:\s/,e(537))}function moduleNotFoundError(r){var e,t=_0x672a28;return r[t(469)]===t(512)&&r.message[t(495)](TYPE)&&(r[t(476)]=r[t(476)][t(475)](TYPE,"ERROR: ".concat(TYPE)),e=r[t(457)]&&r.origin[t(521)])&&(r.message+=t(474)[t(463)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x672a28;return{message:r[e(476)],file:r[e(465)],origin:r[e(457)],name:r.name,severity:0,webpackError:r}}function cleanMessage(r){var e=_0x672a28;return r[e(475)](e(514),"")[e(475)](/Module Warning[^\n]+\n/,"")[e(475)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x672a28;return r[n(461)](extractError)[n(461)](function(r){return e[_0x748f(499)](t,r)})}function formatErrors(e,r,t){var n=_0x672a28;return r[n(461)](function(r){return r(e,t)||[]})[n(499)](function(r,e){return r.concat(e)},[])}function getCompileTime(r){var e=_0x672a28,t=r.endTime,r=r[e(535)];logger.info(e(481)[e(463)](t-r,e(544)))}function _dropRepeat(r){return r.reduce(function(r,t){var e=_0x748f;return r.some(function(r){var e=_0x748f;return r.message===t[e(476)]})?r:r[e(463)](t)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x672a28;return _createClass(function r(){var e=_0x748f,t=0<arguments[e(527)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(517)],n=void 0!==n&&n,t=t.options;_classCallCheck(this,r),this[e(505)]=0,this.warningCount=0,this.noteCount=0,this[e(517)]=n||process[e(526)][e(539)]===e(546),this[e(473)]=defaultFormatters,this.transformers=defaultTransformers,this[e(490)]=t},[{key:l(508),value:function(r){var u=l,s=this;r[u(497)][u(522)][u(496)](u(532),function(e){var t=u,r=(s[t(511)](e),e[t(470)]),n=r.errors,o=r[t(486)],a=e[t(507)](),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(478)](n,r(462)),i&&s[r(478)](o,r(456)),s.calculate(e,n,o),s[r(489)](),s[r(517)]&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=l;r[e(470)][e(486)]=_dropRepeat(r[e(470)][e(486)]),r.compilation.errors=_dropRepeat(r.compilation.errors)}},{key:l(494),value:function(r,e){var t=l,n=this,o=2<arguments[t(527)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(470)][t(455)]||{},a=r[t(505)],a=void 0===a?0:a,i=r[t(519)],i=void 0===i?0:i,r=r.noteCount,r=void 0===r?0:r;this.errorCount=e[t(527)]+a,this[t(509)]=i,this.noteCount=r,o[t(541)](function(r){var e=t,r=r[e(476)];/^NOTE:/[e(493)](cleanMessage(r))?n[e(501)]++:n[e(509)]++})}},{key:l(489),value:function(){var r,e=l,t=this[e(505)],n=this[e(509)],o=this.noteCount,a=(new Date).getTime()-global[e(471)],a=e(480)+Math[e(482)](a/1e3)+"s\n\nYou can check full log: "+log4js[e(483)];0<t+n+o?(r=t?"FAIL ":"SUCCESS ",n=Object[e(525)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(536)](e(545)[e(463)](r).concat(JSON.stringify(n))+a):logger.warn(e(545)[e(463)](r)[e(463)](JSON[e(502)](n))+a)):logger.info(e(542)+a)}},{key:l(478),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(477)]),this[n(473)],t).forEach(function(r){var e=n;"error"===t&&logger.error(cleanMessage(r)),t===e(456)&&logger[e(484)](cleanMessage(r))})}},{key:"getBuildMsg",value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(477)]),this[t(473)],e).map(function(r){return cleanMessage(r)})}}])})();module[_0x672a28(515)]=BuildLogOutputPlugin;
@@ -1 +1 @@
1
- var _0x556b66=_0x3dab;function _0x29c9(){var r=["19436oQVMhe","881896GpMJqG","value","node","20QuWtmm","splice","21463570eJVNBt","directives","9QbnoXo","49ENPGPm","6621756hNTAfZ","987888BJgctC","3421227vQumrt","9578781YMsaPN","exports"];return(_0x29c9=function(){return r})()}function _0x3dab(r,t){var n=_0x29c9();return(_0x3dab=function(r,t){return n[r-=297]})(r,t)}(()=>{for(var r=_0x3dab,t=_0x29c9();;)try{if(626820==+parseInt(r(297))*(-parseInt(r(304))/2)+parseInt(r(301))/3+-parseInt(r(300))/4*(-parseInt(r(308))/5)+-parseInt(r(299))/6+parseInt(r(298))/7*(parseInt(r(305))/8)+parseInt(r(302))/9+-parseInt(r(310))/10)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x556b66(303)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x3dab,n=r[t(307)][t(311)],e=n.length-1;0<=e;e--)"use strict"===n[e].value[t(306)]&&n[t(309)](e,1)}}}}};
1
+ var _0x53ce21=_0x19b5;function _0x19b5(r,t){var e=_0x3db1();return(_0x19b5=function(r,t){return e[r-=426]})(r,t)}function _0x3db1(){var r=["13547760MMIXPX","5124025QxFgpV","splice","use strict","3812192jeZxpV","1874546LLSHYP","2845927pGPkkm","value","938232zmjRvQ","787520VXVIIQ","exports","6tipbBU","length"];return(_0x3db1=function(){return r})()}(()=>{for(var r=_0x19b5,t=_0x3db1();;)try{if(584675==-parseInt(r(437))+parseInt(r(433))/2+parseInt(r(436))/3+-parseInt(r(432))/4+-parseInt(r(429))/5+-parseInt(r(426))/6*(-parseInt(r(434))/7)+parseInt(r(428))/8)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x53ce21(438)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x19b5,e=r.node.directives,n=e[t(427)]-1;0<=n;n--)e[n][t(435)][t(435)]===t(431)&&e[t(430)](n,1)}}}}};
@@ -1 +1 @@
1
- var _0x38e375=_0x5f2b;function _0x5f2b(e,r){var t=_0x3eff();return(_0x5f2b=function(e,r){return t[e-=245]})(e,r)}function _0x3eff(){var e=["572700SkJPCK","677763utNnhH","\\$&","replaceAll","120016lOofBv","20tGNBeJ","10073obfQgR","16429TPkFQe","3944730kcNlZt","replace","1038RXpMqB","189RmleMX","91AJvfms","33055BIvMDy","11tkzSUX","38CwfTtf"];return(_0x3eff=function(){return e})()}(()=>{for(var e=_0x5f2b,r=_0x3eff();;)try{if(232866==+parseInt(e(260))*(parseInt(e(253))/2)+parseInt(e(255))/3+-parseInt(e(259))/4*(parseInt(e(251))/5)+-parseInt(e(248))/6*(parseInt(e(245))/7)+parseInt(e(258))/8*(parseInt(e(249))/9)+-parseInt(e(246))/10*(parseInt(e(252))/11)+-parseInt(e(254))/12*(-parseInt(e(250))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),exports[_0x38e375(257)]=function(e,r,t){var n=_0x38e375;return String.prototype[n(257)]?null==e?void 0:e[n(257)](r,t):(r=r.replace(/[.*+?^${}()|[\]\\]/g,n(256)),r=new RegExp(r,"g"),null==e?void 0:e[n(247)](r,t))};
1
+ var _0x4adad9=_0x3f8a;function _0x3f8a(r,a){var n=_0x2175();return(_0x3f8a=function(r,a){return n[r-=445]})(r,a)}function _0x2175(){var r=["241625eojexo","584488LZucSv","33192SDzavT","2387700ofPkMf","replace","replaceAll","3zSHaaI","5818722AmUECC","prototype","6493648ZBeTKZ","4416UJbRgZ","1200520EyvrVQ"];return(_0x2175=function(){return r})()}(()=>{for(var r=_0x3f8a,a=_0x2175();;)try{if(528106==-parseInt(r(452))+-parseInt(r(451))/2+-parseInt(r(446))/3*(parseInt(r(453))/4)+-parseInt(r(455))/5+-parseInt(r(447))/6+parseInt(r(449))/7+-parseInt(r(450))/8*(-parseInt(r(454))/9))break;a.push(a.shift())}catch(r){a.push(a.shift())}})(),exports[_0x4adad9(445)]=function(r,a,n){var t=_0x4adad9;return String[t(448)][t(445)]?null==r?void 0:r[t(445)](a,n):(a=a[t(456)](/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(a,"g"),null==r?void 0:r[t(456)](a,n))};
@@ -1 +1 @@
1
- var _ref,_process$env$NODE_ENV,_0x135d84=_0x9ffc;function _0x5256(){var r=["PROJECT_CONFIG","join","ascf","includes","startsWith","IS_PRD","readdirSync","TOOLKIT_PATH","production","resolve","parse json file error at ","number","[object Object]","modules","string","176XBQAxp","PROJECT_PATH","readFileSync","2028644wlpATN","apply","release","isFile","2101590xmfsNw","platform","path","ASCF_BUILD_PATH","darwin","utf-8","@@iterator","endsWith","map","slice","397983hvNBlx","ascf_build","iterator","true","ERROR: Write JSON file failed: ",".hxml","fatal","src/main/resources/rawfile","done","json5","ascfRoot","./log4js.js","2504620tqMqYG","cwd","next","forEach","shift","writeJsonFile","getEntryPkgPath error, build-profile.json5 file modules is null","1698DnLJiq","stringify","Arguments","call","sync","mkdirSync","constructor","mode","existsSync","isArray","concat","return","Set","761989PfZWMh","_versionType","find Hxml error:","value","length","20rLhqwl","uglifyjs","getLogger","keys","env","projectRoot","hasHxml","parse","isDirectory","toString","4501oLEFfk","undefined","Moving files error:","writeFileSync","ascf.config.json","handleResolveAlias","getEntryPkgPath","169110eNUVlF","node_modules","ascf_src","name","sort","error","moveFiles","test","replace","debug"];return(_0x5256=function(){return r})()}function _createForOfIteratorHelper(r,e){var t,o,n,a,s=_0x9ffc,i=s(146)!=typeof Symbol&&r[Symbol[s(196)]]||r[s(190)];if(i)return n=!(o=!0),{s:function(){i=i[s(120)](r)},n:function(){var r=s,e=i[r(112)]();return o=e[r(202)],e},e:function(r){n=!0,t=r},f:function(){var r=s;try{o||null==i.return||i[r(128)]()}finally{if(n)throw t}}};if(Array[s(126)](r)||(i=_unsupportedIterableToArray(r))||e&&r&&s(173)==typeof r[s(134)])return i&&(r=i),a=0,{s:e=function(){},n:function(){return a>=r[s(134)]?{done:!0}:{done:!1,value:r[a++]}},e:function(r){throw r},f:e};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(r,e){var t,o=_0x9ffc;if(r)return o(176)==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}[o(144)][o(120)](r)[o(193)](8,-1))&&r[o(123)]?r.constructor[o(155)]:t)||o(129)===t?Array.from(r):o(119)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[o(159)](t)?_arrayLikeToArray(r,e):void 0}function _arrayLikeToArray(r,e){var t=_0x9ffc;(null==e||e>r.length)&&(e=r[t(134)]);for(var o=0,n=Array(e);o<e;o++)n[o]=r[o];return n}(()=>{for(var r=_0x9ffc,e=_0x5256();;)try{if(531522==-parseInt(r(130))+parseInt(r(180))/2+parseInt(r(194))/3*(-parseInt(r(135))/4)+parseInt(r(110))/5+parseInt(r(117))/6*(-parseInt(r(145))/7)+-parseInt(r(177))/8*(-parseInt(r(152))/9)+parseInt(r(184))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x135d84(186)),JSON5=require(_0x135d84(203)),os=require("os"),log4js=require(_0x135d84(109)),logger=log4js[_0x135d84(137)]("common-utils"),projectPath=process[_0x135d84(139)][_0x135d84(140)]||process[_0x135d84(111)](),projectCfg=readProjectCfgJson(projectPath)||{},srcPath=path[_0x135d84(171)](projectPath,"ascf/ascf_src"),ascfSrcPath=projectCfg[_0x135d84(204)]?path[_0x135d84(171)](srcPath,projectCfg[_0x135d84(204)]):srcPath;function readJsonFile(e){var t=_0x135d84;if(!fs[t(125)](e))return{};var r={};try{r=JSON5[t(142)](fs[t(179)](e,t(189)).toString()||"{}")}catch(r){throw new Error(t(172)[t(127)](e,":")[t(127)](r.lineNumber,":")[t(127)](r.columnNumber," "))}return r}function writeJsonFile(r,e){var t=_0x135d84;try{fs[t(148)](r,JSON[t(118)](e,null,2))}catch(r){throw t(198).concat(r)}}function initVersionType(){var r=_0x135d84,e=[r(161),"beta","release"],t=process.env.versionType;global[r(131)]=r(161),t&&e[r(165)](t)?global._versionType=t:(e=process[r(139)][r(136)]===r(197),global[r(131)]=e?r(182):"debug")}function readProjectCfgJson(r){var e,t=_0x135d84,r=path[t(163)](r,t(164),t(154),t(149));return e=fs.existsSync(r)?JSON[t(142)](fs[t(179)](r)[t(144)]()):e}function isOSX(){var r=_0x135d84;return os[r(185)]()===r(188)}function hasHxml(r){var e=_0x135d84;try{var t,o=_createForOfIteratorHelper(fs[e(168)](r,{withFileTypes:!0}));try{for(o.s();!(t=o.n())[e(202)];){var n=t[e(133)],a=path[e(163)](r,n[e(155)]);if(n[e(183)]()&&n.name[e(191)](e(199))||n.isDirectory()&&"node_modules"!==n[e(155)]&&hasHxml(a))return!0}}catch(r){o.e(r)}finally{o.f()}}catch(r){logger[e(157)](e(132),r)}return!1}function moveFiles(n,a){var s=_0x135d84;try{fs[s(122)](a,{recursive:!0}),fs[s(168)](n,{withFileTypes:!0})[s(113)](function(r){var e=s,t=path[e(163)](n,r[e(155)]),o=path[e(163)](a,r[e(155)]);r.isFile()?fs.copyFileSync(t,o):r[e(143)]()&&r[e(155)]!==e(153)&&moveFiles(t,o)})}catch(r){logger[s(157)](s(147),r)}}function handleResolveAlias(r,e){var t,o=_0x135d84,n=_createForOfIteratorHelper(Object[o(138)](e)[o(156)](function(r,e){return e[o(134)]-r.length}));try{for(n.s();!(t=n.n())[o(202)];){var a,s,i,c=t.value;if(c[o(191)]("/*")&&e[c][o(191)]("/*"))if(r[o(166)](c[o(193)](0,-1))||r===c[o(193)](0,-1))return a=e[c].slice(0,-1),s=r.slice(c[o(134)]-1),i=(i=path.join(a,s)[o(160)](/\\/g,"/")).startsWith("/")?i:"/"+i}}catch(r){n.e(r)}finally{n.f()}return r}function getEntryPkgPath(){var r,e=_0x135d84,t=readJsonFile(path.resolve(projectPath,"build-profile.json5"));if(0<(null==t||null==(r=t[e(175)])?void 0:r[e(134)]))return path[e(163)](projectPath,t[e(175)][0].srcPath);logger[e(200)](e(116))}function _0x9ffc(r,e){var t=_0x5256();return(_0x9ffc=function(r,e){return t[r-=109]})(r,e)}function deepMerge(r){for(var e=_0x135d84,t=arguments[e(134)],o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(!o[e(134)])return r;var a=o[e(114)]();if(!a)return deepMerge[e(181)](void 0,[r].concat(o));for(var s=0,i=Object[e(138)](a);s<i[e(134)];s++){var c=i[s],f=a[c],l=r[c];isObject(f)&&c in r&&isObject(l)?deepMerge(l,f):void 0!==f&&(r[c]=f)}return deepMerge.apply(void 0,[r][e(127)](o))}function isObject(r){var e=_0x135d84;return Object.prototype[e(144)][e(120)](r)===e(174)}initVersionType(),exports[_0x135d84(167)]=(null!=(_ref=null!=(_process$env$NODE_ENV=process[_0x135d84(139)].NODE_ENV)?_process$env$NODE_ENV:projectCfg[_0x135d84(124)])?_ref:_0x135d84(170))===_0x135d84(170),exports[_0x135d84(178)]=projectPath,exports[_0x135d84(162)]=projectCfg,exports.ASCF_SRC_PATH=ascfSrcPath,exports[_0x135d84(187)]=path.resolve(projectPath,_0x135d84(164),_0x135d84(195)),exports.RAWFILE_DIR=_0x135d84(201),exports[_0x135d84(169)]=path[_0x135d84(163)](__dirname,"..",".."),exports.clearResource=function(r){var o=_0x135d84;return Promise.all(r[o(192)](function(e){var t=o;if(fs[t(125)](e))return new Promise(function(r){rimraf[t(121)](e),r()})}))},exports.readJsonFile=readJsonFile,exports[_0x135d84(115)]=writeJsonFile,exports.isOSX=isOSX,exports[_0x135d84(141)]=hasHxml,exports[_0x135d84(158)]=moveFiles,exports[_0x135d84(150)]=handleResolveAlias,exports[_0x135d84(151)]=getEntryPkgPath,exports.deepMerge=deepMerge;
1
+ var _0x4b4e3e=_0x2f5a;function _createForOfIteratorHelper(e,r){var t,n,o,i,s=_0x2f5a,a=s(316)!=typeof Symbol&&e[Symbol[s(401)]]||e[s(378)];if(a)return o=!(n=!0),{s:function(){a=a[s(359)](e)},n:function(){var e=s,r=a[e(354)]();return n=r[e(328)],r},e:function(e){o=!0,t=e},f:function(){var e=s;try{n||null==a.return||a[e(323)]()}finally{if(o)throw t}}};if(Array[s(382)](e)||(a=_unsupportedIterableToArray(e))||r&&e&&s(356)==typeof e.length)return a&&(e=a),i=0,{s:r=function(){},n:function(){return i>=e[s(394)]?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r};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,r){var t,n=_0x2f5a;if(e)return n(350)==typeof e?_arrayLikeToArray(e,r):(t={}[n(290)][n(359)](e)[n(297)](8,-1),"Map"===(t=n(385)===t&&e[n(270)]?e.constructor[n(348)]:t)||n(368)===t?Array[n(376)](e):n(390)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2f5a(394)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _0x5d8e(){var e=["done","8SAYsxF","11646675hjksrh","prototype","build-profile.json5","forEach","value","2089360rhbMwE","readFileSync","ascfRoot","projectRoot","DEVECO_DIR","main","json5","keys","modules","ascf/ascf_src/base.hxml","node","module","isOSX","name","development","string","2105UXzMUy","moveFiles"," is not found","next","templateHoist","number","hvigorw","mode","call","projectPath","versionType","serve","true","_versionType","getBundleName","handleResolveAlias","debug","Set","production","endsWith","execSafe","app.json5","concat","getEntryPkgPath","false","from","writeFileSync","@@iterator","DevEco Studio","1201207wMIGkk","configs is: ","isArray","1529972bxujRz","5262WMnOJb","Object","columnNumber","beta","split","common-utils","Arguments","babel","bin","disableSubpackages","length","find Hxml error:","fatal","bundleName","includes","cwd","tools","iterator","getModuleNames","isDirectory","existsSync","getLogger","error","ascf","getHvigorwPath","constructor","child_process","projectCfg","join","startsWith","darwin","path","getNodePath","readJsonFile","RAWFILE_DIR","replace","isFile","clearResource","all","ascf_build","hasHxml","copyFileSync","release","5522SAVVDI","ascf_src","toString","trim","initConfigs","uglifyjs","env","lineNumber","utf-8","slice","skipApiValidator","swc","ascf/ascf_src","ascf.config.json","./log4js.js","src/main/resources/rawfile","Moving files error:","3010365mGVstn","app","parse","hasOwnProperty","execSync","mkdirSync","utf8","resolve","apply","C:\\Program Files\\Huawei\\DevEco Studio\\bin","watch","undefined","module.json5","deepMerge","abilities","map","parse json file error at ","stringify","return","./config","readdirSync","node_modules","NODE_ENV"];return(_0x5d8e=function(){return e})()}(()=>{for(var e=_0x2f5a,r=_0x5d8e();;)try{if(587471==+parseInt(e(288))*(-parseInt(e(329))/2)+-parseInt(e(305))/3+parseInt(e(383))/4+parseInt(e(351))/5*(parseInt(e(384))/6)+-parseInt(e(380))/7+-parseInt(e(335))/8+parseInt(e(330))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x4b4e3e(276)),JSON5=require(_0x4b4e3e(341)),os=require("os"),_require=require(_0x4b4e3e(271)),execSync=_require[_0x4b4e3e(309)],json5=require(_0x4b4e3e(341)),log4js=require(_0x4b4e3e(302)),_require2=require(_0x4b4e3e(324)),configs=_require2.configs,logger=log4js[_0x4b4e3e(405)](_0x4b4e3e(389)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x4b4e3e;return process.env[n(338)]===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process.env[n(338)]||process[n(399)]())||{},t=path.resolve(e,n(300)),t=r[n(337)]?path[n(312)](t,r[n(337)]):t,n=path[n(312)](e,n(407),n(284)),initVersionType(),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}function _0x2f5a(e,r){var t=_0x5d8e();return(_0x2f5a=function(e,r){return t[e-=270]})(e,r)}function initOptions(e){var r,t=_0x4b4e3e;for(r in e)Object.prototype[t(308)][t(359)](e,r)&&(e[r]===t(375)&&(e[r]=!1),e[r]===t(363))&&(e[r]=!0)}function readJsonFile(r){var t=_0x4b4e3e;if(!fs[t(404)](r))return{};var e={};try{e=JSON5[t(307)](fs[t(336)](r,t(296))[t(290)]()||"{}")}catch(e){throw new Error(t(321).concat(r,":")[t(373)](e[t(295)],":")[t(373)](e[t(386)]," "))}return e}function writeJsonFile(e,r){var t=_0x4b4e3e;try{fs[t(377)](e,JSON[t(322)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: "[t(373)](e)}}function initVersionType(){var e=_0x4b4e3e,r=[e(367),e(387),"release"],t=process.env[e(361)];global._versionType=e(367),t&&r[e(398)](t)?global[e(364)]=t:(r=process.env[e(293)]===e(363),global[e(364)]=e(r?287:367))}function readProjectCfgJson(e){var r,t=_0x4b4e3e,e=path[t(273)](e,t(407),t(289),t(301));return r=fs.existsSync(e)?JSON[t(307)](fs[t(336)](e)[t(290)]()):r}function isOSX(){var e=_0x4b4e3e;return os.platform()===e(275)}function hasHxml(e){var r=_0x4b4e3e;try{var t,n=_createForOfIteratorHelper(fs[r(325)](e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(328)];){var o=t[r(334)],i=path[r(273)](e,o[r(348)]);if(o[r(281)]()&&o[r(348)].endsWith(".hxml")||o.isDirectory()&&o[r(348)]!==r(326)&&hasHxml(i))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger[r(406)](r(395),e)}return!1}function moveFiles(o,i){var s=_0x4b4e3e;try{fs[s(310)](i,{recursive:!0}),fs[s(325)](o,{withFileTypes:!0})[s(333)](function(e){var r=s,t=path[r(273)](o,e[r(348)]),n=path[r(273)](i,e[r(348)]);e[r(281)]()?fs[r(286)](t,n):e[r(403)]()&&e[r(348)]!==r(326)&&moveFiles(t,n)})}catch(e){logger[s(406)](s(304),e)}}function handleResolveAlias(e,r){var t,n=_0x4b4e3e,o=_createForOfIteratorHelper(Object[n(342)](r).sort(function(e,r){return r[n(394)]-e.length}));try{for(o.s();!(t=o.n())[n(328)];){var i,s,a,c=t[n(334)];if(c.endsWith("/*")&&r[c][n(370)]("/*"))if(e[n(274)](c[n(297)](0,-1))||e===c[n(297)](0,-1))return i=r[c][n(297)](0,-1),s=e[n(297)](c.length-1),a=(a=path[n(273)](i,s)[n(280)](/\\/g,"/"))[n(274)]("/")?a:"/"+a}}catch(e){o.e(e)}finally{o.f()}return e}function getEntryPkgPath(){var e,r=_0x4b4e3e,t=getProjectInfo().projectPath,n=readJsonFile(path[r(312)](t,r(332)));if(0<(null==n||null==(e=n.modules)?void 0:e.length))return path[r(273)](t,n[r(343)][0].srcPath);logger[r(396)]("getEntryPkgPath error, build-profile.json5 file modules is null")}function deepMerge(e){for(var r=_0x4b4e3e,t=arguments[r(394)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(394)])return e;var i=n.shift();if(!i)return deepMerge.apply(void 0,[e][r(373)](n));for(var s=0,a=Object[r(342)](i);s<a.length;s++){var c=a[s],f=i[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(313)](void 0,[e].concat(n))}function isObject(e){var r=_0x4b4e3e;return"[object Object]"===Object[r(331)][r(290)][r(359)](e)}function getIdeBinPath(){var e=_0x4b4e3e,r=null==(r=process[e(294)][e(379)]||process.env[e(339)])?void 0:r[e(388)](";")[0][e(291)](),t=r||"/Applications/DevEco-Studio.app/Contents/tools",r=r||e(314);return isOSX()?t:r}function adjustPathByPlatform(e){return isOSX()?e:'"'.concat(e,'"')}exports.getProjectInfo=getProjectInfo,exports[_0x4b4e3e(279)]=_0x4b4e3e(303),exports.TOOLKIT_PATH=path[_0x4b4e3e(273)](__dirname,"..",".."),exports[_0x4b4e3e(292)]=function(e,r){var t=_0x4b4e3e,n=(initOptions(r),getProjectInfo()),o=r[t(315)]||r[t(362)]||void 0!==r[t(358)]&&r[t(358)]!==t(369);process[t(294)][t(327)]&&!o||(process[t(294)][t(327)]=o?t(349):"production"),deepMerge(configs,n[t(272)],r),process.env[t(282)]=o||configs.clear?"yes":"no",configs.parser=configs[t(299)]?t(299):t(391),void 0===configs[t(355)]&&fs[t(404)](path[t(312)](e,t(344)))&&(configs.templateHoist=!0),configs[t(355)]=!!configs[t(355)],configs[t(298)]=o||configs[t(298)]!==t(375)&&configs[t(298)],configs[t(393)]=configs[t(362)]||(void 0===configs[t(393)]?!!o:configs[t(393)]),logger.debug(t(381)[t(373)](JSON[t(322)](configs)))},exports[_0x4b4e3e(282)]=function(e){var t=_0x4b4e3e;return Promise[t(283)](e[t(320)](function(r){if(fs[t(404)](r))return new Promise(function(e){rimraf.sync(r),e()})}))},exports[_0x4b4e3e(278)]=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x4b4e3e(347)]=isOSX,exports[_0x4b4e3e(285)]=hasHxml,exports[_0x4b4e3e(352)]=moveFiles,exports[_0x4b4e3e(366)]=handleResolveAlias,exports[_0x4b4e3e(374)]=getEntryPkgPath,exports[_0x4b4e3e(318)]=deepMerge,exports[_0x4b4e3e(371)]=function(e){var r,t=_0x4b4e3e,n=1<arguments[t(394)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=execSync(e,n))?void 0:r[t(290)](t(311))}catch(e){logger.warn("exec cmd error",e)}},exports[_0x4b4e3e(402)]=function(){var e,r,t=_0x4b4e3e,n=getEntryPkgPath(),n=path.join(n,"src",t(340),t(317));if(fs[t(404)](n))return r=fs[t(336)](n,t(296)),{name:null==(r=json5[t(307)](r))||null==(e=r[t(346)])?void 0:e[t(348)],entryAbility:null==r||null==(e=r[t(346)])||null==(e=e[t(319)])?void 0:e[t(320)](function(e){return e[t(348)]})};throw new Error(""[t(373)](n," is not found"))},exports[_0x4b4e3e(365)]=function(){var e,r=_0x4b4e3e,t=getProjectInfo()[r(360)],t=path[r(273)](t,"AppScope",r(372));if(fs.existsSync(t))return e=fs[r(336)](t,r(296)),null==(e=json5[r(307)](e))||null==(e=e[r(306)])?void 0:e[r(397)];throw new Error(""[r(373)](t,r(353)))},exports[_0x4b4e3e(277)]=function(){var e=_0x4b4e3e,r=getIdeBinPath(),r=path.join(r,"..","tools",e(345));e(345);return adjustPathByPlatform(isOSX()?path.join(r,e(345)):path[e(273)](r,"node.exe"))},exports[_0x4b4e3e(408)]=function(){var e=_0x4b4e3e,r=getIdeBinPath();return adjustPathByPlatform(path[e(273)](r,"..",e(400),"hvigor",e(392),e(357)))};
@@ -1 +1 @@
1
- var _0x24ae2b=_0x2507;function _0x4b6c(){var e=['WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"WARN: ASCF shared library not found.","info","4423335HhZOTp","split",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"5jKNJwf","toLowerCase","./log4js.js","isOSX","oh-package.json5","join","isLatestAscfHar","ohpm","warn","npm view @atomicservice/ascf-toolkit version","6758286seOqPR","WARNING: ASCF Shared Library can be upgraded.","1976853XhBrru","length","dependencies","DevEco Studio","version-check"," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","debug","/Applications/DevEco-Studio.app/Contents/tools","satisfies","toString","24370770SQLuyE","env","94uqhlEI","readJsonFile","TOOLKIT_PATH","get project entry module.json.","isLatestAscfToolkit","update to ","C:\\Program Files\\Huawei\\DevEco Studio\\bin","fatal","get ohpm from deveco dir.","filter","version","getLogger","module.json5","4392868IcBEwJ","latest","existsSync","trim","20613FeEdxh","semver","bin","isAscfHspSatisfied","INFO: ASCF Shared Library can be upgraded.","getEntryPkgPath","@atomicservice/ascfapi"," at entry/src/main/module.json5.","WARNING: "," is not exists, please ensure DevEco Studio installed","module","concat","com.huawei.hms.ascfruntime","main","7401060wFTOGC"," info @atomicservice/ascfapi","16QrSnbR","execSync"];return(_0x4b6c=function(){return e})()}function _0x2507(e,t){var r=_0x4b6c();return(_0x2507=function(e,t){return r[e-=137]})(e,t)}(()=>{for(var e=_0x2507,t=_0x4b6c();;)try{if(632623==-parseInt(e(155))*(-parseInt(e(138))/2)+-parseInt(e(191))/3+-parseInt(e(151))/4*(-parseInt(e(179))/5)+-parseInt(e(189))/6+-parseInt(e(176))/7*(parseInt(e(171))/8)+-parseInt(e(169))/9+parseInt(e(201))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require("./utils"),path=require("path"),_require=require(_0x24ae2b(156)),satisfies=_require[_0x24ae2b(199)],_require2=require("child_process"),execSync=_require2[_0x24ae2b(172)],log4js=require(_0x24ae2b(181)),fs=require("fs"),logger=log4js[_0x24ae2b(149)](_0x24ae2b(195));function getOhpmFile(){var e=_0x24ae2b,t=(logger[e(197)](e(146)),null==(t=process.env[e(194)]||process[e(137)].DEVECO_DIR)?void 0:t[e(177)](";")[0].trim()),r=t||e(198),t=t||e(144),r=utils[e(182)]()?r:t;return path[e(184)](r,"..","tools",e(186),e(157),"ohpm")}exports[_0x24ae2b(142)]=function(){var e=_0x24ae2b,t=0<arguments[e(192)]&&void 0!==arguments[0]&&arguments[0],r=utils.readJsonFile(path.join(utils[e(140)],"package.json"))[e(148)],o=execSync(e(188),{timeout:5e3})[e(200)]()[e(154)]();r!==o&&(t?logger[e(187)](e(173).concat(o,'"')):logger[e(175)](e(178)[e(166)](o,'"')))},exports[_0x24ae2b(185)]=function(){var e,t,r=_0x24ae2b,o=0<arguments[r(192)]&&void 0!==arguments[0]&&arguments[0],a=path[r(184)](utils.getEntryPkgPath(),r(183)),i=utils.readJsonFile(a).dependencies[r(161)];i?(e=getOhpmFile(),fs[r(153)](e)?(t=utils[r(182)]()?e:'"'[r(166)](e,'"'),t=execSync(""[r(166)](t,r(170)),{timeout:5e3})[r(200)]()[r(177)]("latest:")[1].split("\n")[0][r(154)](),satisfies(t,i)||i[r(180)]()===r(152)||(o?logger[r(187)](r(190)):logger[r(175)](r(159)))):logger.warn("DevEco Studio ohpm ".concat(e,r(164)))):logger[r(187)](r(163).concat(a,r(196)))},exports[_0x24ae2b(158)]=function(e){var r=_0x24ae2b,t=(logger[r(197)](r(141)),path[r(184)](utils[r(160)](),"src",r(168),r(150))),t=null==(t=utils[r(139)](t)[r(165)])?void 0:t[r(193)],t=null==t?void 0:t[r(147)](function(e){var t=r;return e.bundleName===t(167)});return!t||t.length<=0?(logger[r(187)](r(174)),!1):!(Number(t[0].versionCode)<Number(e)&&(logger[r(145)]("ERROR: ASCF shared library version is too low,"+r(143).concat(e,r(162))),1))};
1
+ var _0x150111=_0x3e70;function _0x3e70(e,t){var r=_0x5977();return(_0x3e70=function(e,t){return r[e-=303]})(e,t)}function _0x5977(){var e=["debug","path","DevEco Studio","tools","update to ","readJsonFile","14263320gmZOFF","1770108TQvmca","latest:","INFO: ASCF Shared Library can be upgraded.","WARNING: ASCF Shared Library can be upgraded.","@atomicservice/ascfapi","isOSX","version-check","./log4js.js","isLatestAscfHar","WARN: ASCF shared library not found.","src","isLatestAscfToolkit","get ohpm from deveco dir.","/Applications/DevEco-Studio.app/Contents/tools","length"," info @atomicservice/ascfapi","799638OWqWSu","dependencies","execSync","warn","getLogger","isAscfHspSatisfied","./utils","DEVECO_DIR","5MltuQE","concat","env"," at entry/src/main/module.json5.","existsSync","child_process","com.huawei.hms.ascfruntime","npm view @atomicservice/ascf-toolkit version","2CFadkj","trim","14RErmdU","split","get project entry module.json.","versionCode","info","getEntryPkgPath","bin","ohpm","374889HwmeKT","2216632cBsqDY","2233242vIlPvD"," is not exists, please ensure DevEco Studio installed","toString","bundleName","satisfies","ERROR: ASCF shared library version is too low,","837894WaWrKS","DevEco Studio ohpm "," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","join"];return(_0x5977=function(){return e})()}(()=>{for(var e=_0x3e70,t=_0x5977();;)try{if(279103==-parseInt(e(342))+-parseInt(e(332))/2*(parseInt(e(350))/3)+parseInt(e(361))/4*(parseInt(e(324))/5)+-parseInt(e(316))/6+parseInt(e(334))/7*(-parseInt(e(343))/8)+-parseInt(e(344))/9+parseInt(e(360))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require(_0x150111(322)),path=require(_0x150111(355)),_require=require("semver"),satisfies=_require[_0x150111(348)],_require2=require(_0x150111(329)),execSync=_require2[_0x150111(318)],log4js=require(_0x150111(307)),fs=require("fs"),logger=log4js[_0x150111(320)](_0x150111(306));function getOhpmFile(){var e=_0x150111,t=(logger[e(354)](e(312)),null==(t=process[e(326)][e(356)]||process[e(326)][e(323)])?void 0:t[e(335)](";")[0][e(333)]()),r=t||e(313),t=t||"C:\\Program Files\\Huawei\\DevEco Studio\\bin",r=utils.isOSX()?r:t;return path[e(353)](r,"..",e(357),e(341),e(340),e(341))}exports[_0x150111(311)]=function(){var e=_0x150111,t=0<arguments[e(314)]&&void 0!==arguments[0]&&arguments[0],r=utils[e(359)](path[e(353)](utils.TOOLKIT_PATH,"package.json")).version,o=execSync(e(331),{timeout:5e3}).toString()[e(333)]();r!==o&&(t?logger[e(319)]('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"')):logger[e(338)]('INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '[e(325)](o,'"')))},exports[_0x150111(308)]=function(){var e,t,r=_0x150111,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0],i=path[r(353)](utils[r(339)](),"oh-package.json5"),s=utils[r(359)](i)[r(317)][r(304)];s?(e=getOhpmFile(),fs[r(328)](e)?(t=utils[r(305)]()?e:'"'[r(325)](e,'"'),t=execSync(""[r(325)](t,r(315)),{timeout:5e3})[r(346)]()[r(335)](r(362))[1][r(335)]("\n")[0].trim(),satisfies(t,s)||"latest"===s.toLowerCase()||(o?logger.warn(r(303)):logger[r(338)](r(363)))):logger[r(319)](r(351)[r(325)](e,r(345)))):logger[r(319)]("WARNING: ".concat(i,r(352)))},exports[_0x150111(321)]=function(e){var r=_0x150111,t=(logger[r(354)](r(336)),path.join(utils[r(339)](),r(310),"main","module.json5")),t=null==(t=utils[r(359)](t).module)?void 0:t[r(317)],t=null==t?void 0:t.filter(function(e){var t=r;return e[t(347)]===t(330)});return!t||t.length<=0?(logger.warn(r(309)),!1):!(Number(t[0][r(337)])<Number(e)&&(logger.fatal(r(349)+r(358)[r(325)](e,r(327))),1))};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x53fdd3=_0x11cd;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=_0x11cd;return e&&"function"==typeof Symbol&&e[r(373)]===Symbol&&e!==Symbol.prototype?r(363):typeof e})(e)}function _regeneratorRuntime(){var s=_0x11cd;_regeneratorRuntime=function(){return a};var f,a={},e=Object.prototype,l=e.hasOwnProperty,p=Object[s(320)]||function(e,r,t){var n=s;e[r]=t[n(370)]},r="function"==typeof Symbol?Symbol:{},i=r.iterator||s(397),t=r[s(431)]||s(423),n=r[s(309)]||s(294);function o(e,r,t){return Object[s(320)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{o({},"")}catch(e){o=function(e,r,t){return e[r]=t}}function u(e,r,t,n){var o,i,c,a,u=s,r=r&&r[u(426)]instanceof y?r:y,r=Object[u(341)](r.prototype),n=new S(n||[]);return p(r,u(295),{value:(o=e,i=t,c=n,a=d,function(e,r){var t=_0x11cd;if(a===v)throw Error(t(366));if(a===m){if(t(287)===e)throw r;return{value:f,done:!0}}for(c[t(364)]=e,c[t(330)]=r;;){var n=c[t(376)];if(n){n=function e(r,t){var n=s,o=t[n(364)],i=r.iterator[o];if(i===f)return t.delegate=null,n(287)===o&&r[n(321)][n(334)]&&(t[n(364)]=n(334),t[n(330)]=f,e(r,t),n(287)===t.method)||n(334)!==o&&(t[n(364)]=n(287),t.arg=new TypeError(n(392)+o+"' method")),_;o=g(i,r[n(321)],t[n(330)]);if(n(287)===o[n(388)])return t[n(364)]=n(287),t[n(330)]=o[n(330)],t[n(376)]=null,_;i=o.arg;return i?i.done?(t[r[n(324)]]=i[n(370)],t[n(343)]=r[n(278)],"return"!==t[n(364)]&&(t[n(364)]=n(343),t[n(330)]=f),t[n(376)]=null,_):i:(t[n(364)]=n(287),t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}(n,c);if(n){if(n===_)continue;return n}}if(t(343)===c[t(364)])c[t(329)]=c[t(399)]=c[t(330)];else if(t(287)===c.method){if(a===d)throw a=m,c[t(330)];c[t(420)](c[t(330)])}else"return"===c[t(364)]&&c[t(345)]("return",c[t(330)]);a=v;n=g(o,i,c);if(t(357)===n[t(388)]){if(a=c[t(304)]?m:h,n.arg===_)continue;return{value:n[t(330)],done:c.done}}t(287)===n[t(388)]&&(a=m,c[t(364)]="throw",c[t(330)]=n[t(330)])}})}),r}function g(e,r,t){var n=s;try{return{type:n(357),arg:e.call(r,t)}}catch(e){return{type:n(287),arg:e}}}a[s(387)]=u;var d=s(348),h=s(386),v="executing",m=s(416),_={};function y(){}function c(){}function b(){}var r={},x=(o(r,i,function(){return this}),Object[s(307)]),x=x&&x(x(E([]))),w=(x&&x!==e&&l[s(335)](x,i)&&(r=x),b[s(426)]=y[s(426)]=Object[s(341)](r));function k(e){var r=s;[r(343),r(287),"return"][r(306)](function(r){o(e,r,function(e){return this._invoke(r,e)})})}function G(a,u){var r;p(this,"_invoke",{value:function(t,n){function e(){return new u(function(e,r){!function r(e,t,n,o){var i,c=_0x11cd,e=g(a[e],a,t);if(c(287)!==e[c(388)])return(t=(i=e[c(330)])[c(370)])&&c(389)==_typeof(t)&&l[c(335)](t,c(402))?u[c(300)](t.__await)[c(298)](function(e){r("next",e,n,o)},function(e){r(c(287),e,n,o)}):u[c(300)](t)[c(298)](function(e){i.value=e,n(i)},function(e){return r(c(287),e,n,o)});o(e[c(330)])}(t,n,e,r)})}return r=r?r.then(e,e):e()}})}function j(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(325)]=e[1]),2 in e&&(t.finallyLoc=e[2],t[r(322)]=e[3]),this.tryEntries[r(432)](t)}function q(e){var r=s,t=e[r(414)]||{};t.type=r(357),delete t[r(330)],e[r(414)]=t}function S(e){var r=s;this[r(371)]=[{tryLoc:r(333)}],e[r(306)](j,this),this.reset(!0)}function E(t){var n=s;if(t||""===t){var o,e=t[i];if(e)return e.call(t);if(n(319)==typeof t[n(343)])return t;if(!isNaN(t.length))return o=-1,(e=function e(){for(var r=n;++o<t[r(409)];)if(l[r(335)](t,o))return e[r(370)]=t[o],e[r(304)]=!1,e;return e.value=f,e[r(304)]=!0,e})[n(343)]=e}throw new TypeError(_typeof(t)+n(375))}return c[s(426)]=b,p(w,s(373),{value:b,configurable:!0}),p(b,s(373),{value:c,configurable:!0}),c[s(350)]=o(b,n,"GeneratorFunction"),a[s(337)]=function(e){var r=s,e="function"==typeof e&&e[r(373)];return!!e&&(e===c||r(284)===(e[r(350)]||e.name))},a[s(359)]=function(e){var r=s;return Object[r(429)]?Object.setPrototypeOf(e,b):(e.__proto__=b,o(e,n,"GeneratorFunction")),e[r(426)]=Object.create(w),e},a[s(296)]=function(e){return{__await:e}},k(G.prototype),o(G[s(426)],t,function(){return this}),a[s(347)]=G,a.async=function(e,r,t,n,o){var i=s,c=(void 0===o&&(o=Promise),new G(u(e,r,t,n),o));return a[i(337)](r)?c:c[i(343)]()[i(298)](function(e){var r=i;return e[r(304)]?e[r(370)]:c[r(343)]()})},k(w),o(w,n,"Generator"),o(w,i,function(){return this}),o(w,"toString",function(){return s(315)}),a[s(353)]=function(e){var r,n=s,o=Object(e),i=[];for(r in o)i[n(432)](r);return i[n(314)](),function e(){for(var r=n;i[r(409)];){var t=i[r(281)]();if(t in o)return e.value=t,e[r(304)]=!1,e}return e.done=!0,e}},a[s(311)]=E,S.prototype={constructor:S,reset:function(e){var r=s;if(this[r(342)]=0,this[r(343)]=0,this[r(329)]=this[r(399)]=f,this[r(304)]=!1,this.delegate=null,this[r(364)]=r(343),this[r(330)]=f,this.tryEntries[r(306)](q),!e)for(var t in this)"t"===t[r(275)](0)&&l[r(335)](this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(304)]=!0,this[e(371)][0].completion);if(e(287)===r[e(388)])throw r[e(330)];return this.rval},dispatchException:function(n){var o=s;if(this[o(304)])throw n;var i=this;function e(e,r){var t=o;return c.type="throw",c[t(330)]=n,i[t(343)]=e,r&&(i[t(364)]=t(343),i[t(330)]=f),!!r}for(var r=this[o(371)][o(409)]-1;0<=r;--r){var t=this[o(371)][r],c=t[o(414)];if(o(333)===t[o(283)])return e(o(404));if(t[o(283)]<=this[o(342)]){var a=l[o(335)](t,o(325)),u=l[o(335)](t,o(270));if(a&&u){if(this.prev<t.catchLoc)return e(t[o(325)],!0);if(this[o(342)]<t[o(270)])return e(t[o(270)])}else if(a){if(this.prev<t.catchLoc)return e(t[o(325)],!0)}else{if(!u)throw Error(o(292));if(this.prev<t[o(270)])return e(t.finallyLoc)}}}},abrupt:function(e,r){for(var t=s,n=this[t(371)][t(409)]-1;0<=n;--n){var o=this[t(371)][n];if(o[t(283)]<=this[t(342)]&&l[t(335)](o,t(270))&&this[t(342)]<o[t(270)]){var i=o;break}}var c=(i=i&&(t(310)===e||"continue"===e)&&i[t(283)]<=r&&r<=i.finallyLoc?null:i)?i[t(414)]:{};return c[t(388)]=e,c[t(330)]=r,i?(this.method=t(343),this[t(343)]=i.finallyLoc,_):this[t(291)](c)},complete:function(e,r){var t=s;if(t(287)===e[t(388)])throw e[t(330)];return"break"===e[t(388)]||t(400)===e[t(388)]?this[t(343)]=e[t(330)]:t(334)===e[t(388)]?(this[t(293)]=this[t(330)]=e[t(330)],this[t(364)]=t(334),this.next="end"):t(357)===e[t(388)]&&r&&(this[t(343)]=r),_},finish:function(e){for(var r=s,t=this[r(371)][r(409)]-1;0<=t;--t){var n=this[r(371)][t];if(n[r(270)]===e)return this[r(291)](n[r(414)],n.afterLoc),q(n),_}},catch:function(e){for(var r=s,t=this[r(371)][r(409)]-1;0<=t;--t){var n,o,i=this[r(371)][t];if(i[r(283)]===e)return"throw"===(n=i.completion)[r(388)]&&(o=n[r(330)],q(i)),o}throw Error(r(279))},delegateYield:function(e,r,t){var n=s;return this.delegate={iterator:E(e),resultName:r,nextLoc:t},n(343)===this[n(364)]&&(this[n(330)]=f),_}},a}function asyncGeneratorStep(e,r,t,n,o,i,c){var a=_0x11cd;try{var u=e[i](c),s=u[a(370)]}catch(e){return void t(e)}u[a(304)]?r(s):Promise.resolve(s)[a(298)](n,o)}function _asyncToGenerator(u){return function(){var e=this,a=arguments;return new Promise(function(r,t){var n=_0x11cd,o=u[n(398)](e,a);function i(e){asyncGeneratorStep(o,r,t,i,c,n(343),e)}function c(e){asyncGeneratorStep(o,r,t,i,c,n(287),e)}i(void 0)})}}(()=>{for(var e=_0x11cd,r=_0x4c18();;)try{if(219926==-parseInt(e(368))+parseInt(e(372))/2*(-parseInt(e(297))/3)+parseInt(e(408))/4*(parseInt(e(390))/5)+-parseInt(e(430))/6*(-parseInt(e(326))/7)+parseInt(e(418))/8*(-parseInt(e(405))/9)+-parseInt(e(316))/10+-parseInt(e(302))/11*(-parseInt(e(312))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x53fdd3(318)),watchExec=_require.watchExec,pkg=require(_0x53fdd3(365)),_require2=require(_0x53fdd3(351)),configs=_require2[_0x53fdd3(276)],log4js=require(_0x53fdd3(289)),logger=log4js[_0x53fdd3(412)](_0x53fdd3(415));function _0x11cd(e,r){var t=_0x4c18();return(_0x11cd=function(e,r){return t[e-=270]})(e,r)}function buildNpm(e){var r=_0x53fdd3,t=require(r(274)).buildMiniProgramNpm;try{t(e)}catch(e){logger[r(360)](r(285).concat(e,"."))}}function convert(e){return _convert[_0x53fdd3(398)](this,arguments)}function _convert(){var e=_0x53fdd3;return(_convert=_asyncToGenerator(_regeneratorRuntime().mark(function e(r){var n,o;return _regeneratorRuntime().wrap(function(e){for(var t=_0x11cd;;)switch(e.prev=e[t(343)]){case 0:if(configs.notaddtodo=!!r.notaddtodo,n=require(t(344)),global[t(384)]=!0,global[t(352)]=!0,process[t(425)][t(299)]=r.clear?t(385):"no",o=require("./ascf-converter/common/path-validator"),o=o[t(401)],r[t(381)]&&(o(r[t(290)],r[t(286)]),process[t(382)](0)),n.checkInputPathFun(r.input),r[t(317)]){e[t(343)]=13;break}return e[t(343)]=11,n[t(280)]({inputPath:r.input,outPath:r[t(286)],confirmAddConfig:!0});case 11:(o=e[t(329)])[t(369)]?logger[t(360)](t(339).concat(o[t(391)],t(406))[t(393)](o.errorMessage,'"')):logger[t(403)](t(339)[t(393)](o.command,t(331))[t(393)](o[t(358)],'"'));case 13:setTimeout(function(){var r=t,e=require("./common/version-check.js")[r(410)];try{e()}catch(e){logger[r(273)](r(407)[r(393)](e,"."))}});case 14:case t(404):return e[t(327)]()}},e)})))[e(398)](this,arguments)}function _0x4c18(){var e=["./common/log4js.js","input","complete","try statement without catch or finally","rval","@@toStringTag","_invoke","awrap","85425oMvSLr","then","clearResource","resolve","watch","12661LktKhU","existsVerifyLog","done","webpack","forEach","getPrototypeOf","getTime","toStringTag","break","values","9612hcbEte","fatal","reverse","[object Generator]","2559330tbFqJa","check","./ascf-compiler/watch/watch","function","defineProperty","iterator","afterLoc","ProgressPlugin","resultName","catchLoc","587174gcjKWk","stop","plugins","sent","arg",'","folderUrl":"',"production","root","return","call","beginTime","isGeneratorFunction","ASCF unhandled rejection at:",'"command":"',"deepMerge","create","prev","next","./ascf-converter/features/converter.js","abrupt","./ascf-compiler/common/quick-generate-subpackage","AsyncIterator","suspendedStart","Using ","displayName","./common/config","_isAscfMode","keys","./common/utils","./ascf-compiler/web.webpack.config.js","name","normal","folderUrl","mark","error","IS_PRD","debug","symbol","method","../package.json","Generator is already running","ASCF uncaught error","366597xGpnQI","errorMessage","value","tryEntries","18GGugGa","constructor","exports"," is not iterable","delegate","Devtool: ","swc","devtool","_ascfDebug","validate","exit","WARNING: Get @atomicservice/ascfapi info failed: ","_isMiniAppConvertMode","yes","suspendedYield","wrap","type","object","189965AFKHzA","command","The iterator does not provide a '","concat","projectRoot","version","templateHoist","@@iterator","apply","_sent","continue","pathValidator","__await","info","end","117009JhTwzQ",'","errorMessage":"',"WARNING: Get @atomicservice/ascf-toolkit version failed: ","44puAbzk","length","isLatestAscfToolkit","NODE_ENV","getLogger","catch","completion","index","completed","quickGenSub","200WyMEik","chdir","dispatchException","parser","run","@@asyncIterator","toString","env","prototype","verbose","mode","setPrototypeOf","6wjpzCx","asyncIterator","push","EnvironmentPlugin","finallyLoc","skipApiValidator","path","warn","./ascf-build-npm/build-npm","charAt","configs","uncaughtException","nextLoc","illegal catch attempt","confirmConverterFun","pop","PROJECT_CONFIG","tryLoc","GeneratorFunction","Error: ascf buildNpm error: ","output","throw","false"];return(_0x4c18=function(){return e})()}function compile(e,r){return _compile[_0x53fdd3(398)](this,arguments)}function _compile(){var r=_0x53fdd3;return(_compile=_asyncToGenerator(_regeneratorRuntime()[r(359)](function e(t,n){var o,i,c,a,u=r;return _regeneratorRuntime()[u(387)](function(e){for(var r=u;;)switch(e[r(342)]=e[r(343)]){case 0:return c=require(r(272)),process[r(425)][r(394)]=c[r(300)](t),process[r(419)](c[r(300)](t,"ascf/ascf_src")),process[r(425)][r(411)]=n[r(428)],c=require(r(354)),o=c[r(340)],i=c[r(282)],c=c[r(361)],o(configs,i,n),process[r(425)].NODE_ENV=c?r(332):"development",process[r(425)][r(299)]=configs.clear?"yes":"no",configs[r(421)]=configs[r(378)]?r(378):"babel",configs.templateHoist=!!configs[r(396)],logger[r(362)](r(377)[r(393)](configs[r(379)])),configs[r(271)]=configs.skipApiValidator!==r(288)&&configs[r(271)],o=require(r(305)),global[r(336)]=(new Date)[r(308)](),e[r(342)]=14,i=require(r(355)),e.next=18,i();case 18:(c=e[r(329)])[r(328)]=c[r(328)]||[],c[r(328)][r(432)](new o[r(433)]({projectRoot:t})),n.progress&&c.plugins.push(new o[r(323)]),n[r(301)]&&(c[r(301)]=!0),global[r(380)]&&(c.infrastructureLogging={level:r(427)}),a=o(c),logger[r(403)]("Run compiler with ".concat(configs[r(421)],".")),n[r(301)]?(watchExec(a,n[r(422)]),e.next=32):e[r(343)]=30;break;case 30:return e[r(343)]=32,run(a);case 32:e[r(343)]=37;break;case 34:e[r(342)]=34,e.t0=e[r(413)](14),logger[r(313)](e.t0);case 37:case r(404):return e.stop()}},e,null,[[14,34]])})))[r(398)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(e){return new Promise(function(t,o){e.run(function(e,r){var n=_0x11cd;r&&logger[n(403)](r[n(424)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[n(380)]?"verbose":n(403)})),e?(logger[n(360)](e),o(e)):(setTimeout(function(){var r=n,e=require("./common/version-check.js"),t=e[r(410)],e=e.isLatestAscfHar;try{e(global[r(303)])}catch(e){logger[r(273)](r(383)[r(393)](e,"."))}try{t(global[r(303)])}catch(e){logger[r(273)](r(407).concat(e,"."))}}),t(r))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x53fdd3(398)](this,arguments)}function _quickGenerateSubpackage(){var r=_0x53fdd3;return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime()[r(359)](function e(){var t,n=r;return _regeneratorRuntime()[n(387)](function(e){for(var r=n;;)switch(e.prev=e[r(343)]){case 0:return t=require(r(346)),t=t[r(417)],e[r(343)]=3,t()[r(413)](function(e){logger.error(e)});case 3:case r(404):return e[r(327)]()}},e)})))[r(398)](this,arguments)}logger.debug(_0x53fdd3(349)[_0x53fdd3(393)](pkg[_0x53fdd3(356)]," ")[_0x53fdd3(393)](pkg[_0x53fdd3(395)],".")),global._isAscfMode=!0,process.on(_0x53fdd3(277),function(e){var r=_0x53fdd3;logger[r(360)](r(367),e)}),process.on("unhandledRejection",function(e,r){var t=_0x53fdd3;logger[t(360)](t(338),r,"reason:",e)}),module[_0x53fdd3(374)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
1
+ var _0x11a87e=_0xaa2f;function _typeof(e){var t=_0xaa2f;return(_typeof=t(497)==typeof Symbol&&t(488)==typeof Symbol[t(492)]?function(e){return typeof e}:function(e){var r=t;return e&&r(497)==typeof Symbol&&e[r(563)]===Symbol&&e!==Symbol[r(569)]?r(488):typeof e})(e)}function _0x319b(){var e=["./ascf-converter/common/path-validator","./ascf-compiler/web.webpack.config.js","isLatestAscfHar","defineProperty","catchLoc","input","afterLoc","Generator","wrap","tryLoc","105NZMBCY","create","command","WARNING: Get @atomicservice/ascf-toolkit version failed: ","./commands/build-npm","The iterator does not provide a '","resultName","watchExec","exports","existsVerifyLog","errorMessage","getPrototypeOf","reset",'","folderUrl":"',"normal","exit","method","getTime","isLatestAscfToolkit","projectRoot","2622786wQPQKW","env","checkInputPathFun","reason:","compile close error :","ASCF unhandled rejection at:","ProgressPlugin","finallyLoc","suspendedYield",'","errorMessage":"',"symbol","fatal","clearResource","call","iterator","notaddtodo","8996169DrcPhK","validate","forEach","function","output","stop dev server error:","./common/config","getLogger","clear","../package.json","./ascf-converter/features/converter.js","tryEntries","infrastructureLogging","_ascfDebug","beginTime","@@asyncIterator","quickGenSub","./ascf-compiler/server/dev-server","7566732NsXkBL","_isAscfMode","mark","length","isGeneratorFunction","Generator is already running","toString","AsyncIterator","completion","break","suspendedStart","continue","ASCF uncaught error","6024328BaTfUP","./common/version-check.js","check","slice","illegal catch attempt","return","uncaughtException","displayName","done","name","pathValidator","type","verbose","then","webpackCfg","value","@@toStringTag","unhandledRejection","reverse","restartDevServer","@@iterator","rval","hasOwnProperty"," is not iterable","3zXoyKp","delegate","WARNING: Get @atomicservice/ascfapi info failed: ","sent","abrupt","prev","startServer","_invoke","version","setPrototypeOf","48912oJLxxF","toStringTag","next","folderUrl","constructor","configs","apply","[object Generator]","warn","arg","prototype","stop","GeneratorFunction","progress","close","resolve","./ascf-compiler/common/quick-generate-subpackage","dispatchException","complete","./ascf-compiler/watch/watch","watch","pop","1285594kTOTvF","push","values","chdir","ascf/ascf_src","error","./common/log4js.js","' method",'"command":"',"object","root","keys","EnvironmentPlugin","run","webpack","concat","861548lyKAUt","async","throw","end","nextLoc","__await","plugins"];return(_0x319b=function(){return e})()}function _regeneratorRuntime(){var s=_0xaa2f;_regeneratorRuntime=function(){return c};var f,c={},e=Object.prototype,l=e[s(547)],p=Object.defineProperty||function(e,r,t){var n=s;e[r]=t[n(540)]},r=s(497)==typeof Symbol?Symbol:{},a=r.iterator||s(545),t=r.asyncIterator||s(509),n=r[s(560)]||s(541);function o(e,r,t){return Object[s(451)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{o({},"")}catch(e){o=function(e,r,t){return e[r]=t}}function u(e,r,t,n){var o,a,i,c,u=s,r=r&&r[u(569)]instanceof b?r:b,r=Object[u(459)](r[u(569)]),n=new j(n||[]);return p(r,u(556),{value:(o=e,a=t,i=n,c=v,function(e,r){var t=_0xaa2f;if(c===m)throw Error(t(517));if(c===_){if(t(443)===e)throw r;return{value:f,done:!0}}for(i[t(474)]=e,i[t(568)]=r;;){var n=i[t(550)];if(n){n=function e(r,t){var n=s,o=t[n(474)],a=r[n(492)][o];if(a===f)return t.delegate=null,n(443)===o&&r.iterator[n(530)]&&(t[n(474)]="return",t[n(568)]=f,e(r,t),"throw"===t[n(474)])||n(530)!==o&&(t[n(474)]=n(443),t[n(568)]=new TypeError(n(463)+o+n(432))),y;o=h(a,r[n(492)],t[n(568)]);if(n(443)===o[n(536)])return t[n(474)]=n(443),t[n(568)]=o[n(568)],t[n(550)]=null,y;a=o[n(568)];return a?a[n(533)]?(t[r[n(464)]]=a[n(540)],t[n(561)]=r[n(445)],n(530)!==t.method&&(t[n(474)]="next",t[n(568)]=f),t[n(550)]=null,y):a:(t.method=n(443),t[n(568)]=new TypeError("iterator result is not an object"),t[n(550)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(t(561)===i[t(474)])i.sent=i._sent=i[t(568)];else if("throw"===i.method){if(c===v)throw c=_,i[t(568)];i[t(576)](i[t(568)])}else t(530)===i[t(474)]&&i[t(553)]("return",i.arg);c=m;n=h(o,a,i);if(t(472)===n[t(536)]){if(c=i.done?_:g,n.arg===y)continue;return{value:n[t(568)],done:i[t(533)]}}t(443)===n[t(536)]&&(c=_,i[t(474)]=t(443),i[t(568)]=n[t(568)])}})}),r}function h(e,r,t){var n=s;try{return{type:"normal",arg:e[n(491)](r,t)}}catch(e){return{type:"throw",arg:e}}}c[s(456)]=u;var v=s(522),g=s(486),m="executing",_="completed",y={};function b(){}function i(){}function d(){}var r={},x=(o(r,a,function(){return this}),Object[s(469)]),x=x&&x(x(T([]))),w=(x&&x!==e&&l[s(491)](x,a)&&(r=x),d[s(569)]=b[s(569)]=Object[s(459)](r));function k(e){var r=s;["next",r(443),r(530)][r(496)](function(r){o(e,r,function(e){return this[_0xaa2f(556)](r,e)})})}function q(c,u){var r;p(this,s(556),{value:function(t,n){function e(){return new u(function(e,r){!function r(e,t,n,o){var a,i=_0xaa2f,e=h(c[e],c,t);if(i(443)!==e[i(536)])return(t=(a=e.arg).value)&&i(434)==_typeof(t)&&l[i(491)](t,i(446))?u[i(574)](t[i(446)]).then(function(e){r(i(561),e,n,o)},function(e){r(i(443),e,n,o)}):u[i(574)](t)[i(538)](function(e){a[i(540)]=e,n(a)},function(e){return r("throw",e,n,o)});o(e[i(568)])}(t,n,e,r)})}return r=r?r.then(e,e):e()}})}function S(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(452)]=e[1]),2 in e&&(t.finallyLoc=e[2],t[r(454)]=e[3]),this[r(505)][r(582)](t)}function G(e){var r=s,t=e[r(520)]||{};t[r(536)]=r(472),delete t[r(568)],e[r(520)]=t}function j(e){var r=s;this[r(505)]=[{tryLoc:r(435)}],e[r(496)](S,this),this[r(470)](!0)}function T(t){var n=s;if(t||""===t){var o,e=t[a];if(e)return e.call(t);if(n(497)==typeof t.next)return t;if(!isNaN(t[n(515)]))return o=-1,(e=function e(){for(var r=n;++o<t[r(515)];)if(l[r(491)](t,o))return e.value=t[o],e[r(533)]=!1,e;return e.value=f,e[r(533)]=!0,e})[n(561)]=e}throw new TypeError(_typeof(t)+n(548))}return i[s(569)]=d,p(w,s(563),{value:d,configurable:!0}),p(d,s(563),{value:i,configurable:!0}),i[s(532)]=o(d,n,s(571)),c[s(516)]=function(e){var r=s,e=r(497)==typeof e&&e.constructor;return!!e&&(e===i||"GeneratorFunction"===(e[r(532)]||e.name))},c.mark=function(e){var r=s;return Object[r(558)]?Object[r(558)](e,d):(e.__proto__=d,o(e,n,r(571))),e[r(569)]=Object[r(459)](w),e},c.awrap=function(e){return{__await:e}},k(q.prototype),o(q.prototype,t,function(){return this}),c[s(519)]=q,c[s(442)]=function(e,r,t,n,o){var a=s,i=(void 0===o&&(o=Promise),new q(u(e,r,t,n),o));return c[a(516)](r)?i:i[a(561)]()[a(538)](function(e){var r=a;return e[r(533)]?e[r(540)]:i[r(561)]()})},k(w),o(w,n,s(455)),o(w,a,function(){return this}),o(w,s(518),function(){return s(566)}),c[s(436)]=function(e){var r,n=s,o=Object(e),a=[];for(r in o)a[n(582)](r);return a[n(543)](),function e(){for(var r=n;a[r(515)];){var t=a[r(580)]();if(t in o)return e[r(540)]=t,e[r(533)]=!1,e}return e[r(533)]=!0,e}},c[s(583)]=T,j.prototype={constructor:j,reset:function(e){var r=s;if(this[r(554)]=0,this.next=0,this[r(552)]=this._sent=f,this[r(533)]=!1,this.delegate=null,this[r(474)]="next",this[r(568)]=f,this.tryEntries[r(496)](G),!e)for(var t in this)"t"===t.charAt(0)&&l[r(491)](this,t)&&!isNaN(+t[r(528)](1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(533)]=!0,this[e(505)][0][e(520)]);if(e(443)===r[e(536)])throw r[e(568)];return this[e(546)]},dispatchException:function(n){var o=s;if(this[o(533)])throw n;var a=this;function e(e,r){var t=o;return i[t(536)]=t(443),i.arg=n,a.next=e,r&&(a[t(474)]=t(561),a[t(568)]=f),!!r}for(var r=this.tryEntries[o(515)]-1;0<=r;--r){var t=this[o(505)][r],i=t[o(520)];if("root"===t[o(457)])return e("end");if(t[o(457)]<=this[o(554)]){var c=l[o(491)](t,o(452)),u=l[o(491)](t,o(485));if(c&&u){if(this[o(554)]<t.catchLoc)return e(t[o(452)],!0);if(this[o(554)]<t[o(485)])return e(t[o(485)])}else if(c){if(this[o(554)]<t[o(452)])return e(t.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(554)]<t.finallyLoc)return e(t[o(485)])}}}},abrupt:function(e,r){for(var t=s,n=this[t(505)][t(515)]-1;0<=n;--n){var o=this[t(505)][n];if(o[t(457)]<=this[t(554)]&&l[t(491)](o,t(485))&&this[t(554)]<o[t(485)]){var a=o;break}}var i=(a=a&&(t(521)===e||t(523)===e)&&a.tryLoc<=r&&r<=a[t(485)]?null:a)?a[t(520)]:{};return i.type=e,i[t(568)]=r,a?(this[t(474)]=t(561),this[t(561)]=a[t(485)],y):this.complete(i)},complete:function(e,r){var t=s;if(t(443)===e.type)throw e[t(568)];return t(521)===e[t(536)]||t(523)===e[t(536)]?this[t(561)]=e[t(568)]:t(530)===e[t(536)]?(this.rval=this[t(568)]=e.arg,this[t(474)]=t(530),this[t(561)]="end"):t(472)===e[t(536)]&&r&&(this[t(561)]=r),y},finish:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n=this[r(505)][t];if(n[r(485)]===e)return this[r(577)](n[r(520)],n[r(454)]),G(n),y}},catch:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n,o,a=this[r(505)][t];if(a.tryLoc===e)return n=a[r(520)],r(443)===n.type&&(o=n[r(568)],G(a)),o}throw Error(r(529))},delegateYield:function(e,r,t){var n=s;return this[n(550)]={iterator:T(e),resultName:r,nextLoc:t},n(561)===this.method&&(this[n(568)]=f),y}},c}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0xaa2f;try{var u=e[a](i),s=u[c(540)]}catch(e){return void t(e)}u[c(533)]?r(s):Promise.resolve(s)[c(538)](n,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,t){var n=c.apply(e,i);function o(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(561),e)}function a(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(443),e)}o(void 0)})}}(()=>{for(var e=_0xaa2f,r=_0x319b();;)try{if(680692==-parseInt(e(441))+parseInt(e(581))/2*(-parseInt(e(549))/3)+parseInt(e(559))/4*(-parseInt(e(458))/5)+-parseInt(e(478))/6+parseInt(e(494))/7+parseInt(e(525))/8+parseInt(e(512))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require("path"),_require=require(_0x11a87e(578)),watchExec=_require[_0x11a87e(465)],pkg=require(_0x11a87e(503)),_require2=require(_0x11a87e(500)),configs=_require2[_0x11a87e(564)],log4js=require(_0x11a87e(431)),_require3=require(_0x11a87e(462)),buildNpm=_require3.buildNpm,logger=log4js[_0x11a87e(501)]("index");function convert(e){return _convert.apply(this,arguments)}function _convert(){var t=_0x11a87e;return(_convert=_asyncToGenerator(_regeneratorRuntime()[t(514)](function e(r){var n,o,a=t;return _regeneratorRuntime()[a(456)](function(e){for(var t=a;;)switch(e.prev=e[t(561)]){case 0:if(configs[t(493)]=!!r[t(493)],n=require(t(504)),global._isMiniAppConvertMode=!0,global[t(513)]=!0,process[t(479)][t(490)]=r[t(502)]?"yes":"no",o=require(t(448)),o=o[t(535)],r[t(495)]&&(o(r[t(453)],r[t(498)]),process[t(473)](0)),n[t(480)](r[t(453)]),r[t(527)]){e.next=13;break}return e.next=11,n.confirmConverterFun({inputPath:r.input,outPath:r[t(498)],confirmAddConfig:!0});case 11:(o=e.sent)[t(468)]?logger[t(430)](t(433)[t(440)](o.command,t(487))[t(440)](o.errorMessage,'"')):logger.info('"command":"'[t(440)](o[t(460)],t(471))[t(440)](o[t(562)],'"'));case 13:setTimeout(function(){var r=t,e=require(r(526))[r(476)];try{e()}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}});case 14:case t(444):return e.stop()}},e)}))).apply(this,arguments)}function compile(e,r){return _compile[_0x11a87e(565)](this,arguments)}function _compile(){var a=_0x11a87e;return(_compile=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(i,c){var u,s,f,r,t,n,o,l,p,h,v=a;return _regeneratorRuntime()[v(456)](function(e){for(var a=v;;)switch(e.prev=e[a(561)]){case 0:return process[a(479)][a(477)]=path[a(574)](i),process[a(428)](path[a(574)](i,a(429))),r=require("./common/utils"),(0,r.initConfigs)(i,c),u=require(a(439)),global[a(508)]=(new Date)[a(475)](),s=require(a(449)),f=(()=>{var r=a,e=_asyncToGenerator(_regeneratorRuntime()[r(514)](function e(){var t,n,o=r;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e[r(561)]){case 0:return e.next=2,s();case 2:return(t=e.sent)[r(447)]=t[r(447)]||[],t[r(447)][r(582)](new u[r(437)]({projectRoot:i})),c[r(572)]&&t.plugins[r(582)](new u[r(484)]({})),c[r(579)]&&(t.watch=!0),global[r(507)]&&(t[r(506)]={debug:!0,level:r(537)}),n=u(t),e.abrupt(r(530),{webpackCfg:t,compiler:n});case 10:case r(444):return e[r(570)]()}},e)}));return function(){return e.apply(this,arguments)}})(),e[a(554)]=8,e[a(561)]=11,f();case 11:r=e[a(552)],t=r[a(539)],n=r.compiler,c.watch?(watchExec(n,c.run),e[a(561)]=29):e[a(561)]=18;break;case 18:if(configs.serve)return o=require(a(511)),l=o[a(555)],e[a(561)]=22,l(n,t.devServer);e.next=27;break;case 22:p=e[a(552)],h=!1,global[a(544)]=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(){var t,n,o=a;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e.next){case 0:if(h)return e[r(553)](r(530));e.next=2;break;case 2:if(h=!0,logger.info("restart dev server"),e.prev=4,p){e[r(561)]=9;break}return e[r(561)]=8,p.stop();case 8:p=null;case 9:return e[r(561)]=11,f();case 11:return n=e[r(552)],t=n[r(539)],n=n.compiler,e.next=16,l(n,t.devServer);case 16:p=e[r(552)],e.next=22;break;case 19:e[r(554)]=19,e.t0=e.catch(4),logger[r(430)](r(499),e.t0);case 22:h=!1;case 23:case r(444):return e[r(570)]()}},e,null,[[4,19]])})),e[a(561)]=29;break;case 27:return e.next=29,run(n);case 29:e.next=35;break;case 31:e[a(554)]=31,e.t0=e.catch(8),logger[a(489)](e.t0),process[a(473)](1);case 35:case a(444):return e[a(570)]()}},e,null,[[8,31]])})))[a(565)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0xaa2f(e,r){var t=_0x319b();return(_0xaa2f=function(e,r){return t[e-=428]})(e,r)}function run(i){return new Promise(function(t,o){var a=_0xaa2f;i[a(438)](function(e,r){var n=a;r&&logger.info(r[n(518)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[n(507)]?"verbose":"info"})),e?(logger[n(430)](e),o(e)):(setTimeout(function(){var r=n,e=require(r(526)),t=e.isLatestAscfToolkit,e=e[r(450)];try{e(global[r(467)])}catch(e){logger.warn(r(551)[r(440)](e,"."))}try{t(global[r(467)])}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}}),t(r),i[n(573)](function(e){var r=n;e&&logger[r(430)](r(482),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x11a87e(565)](this,arguments)}function _quickGenerateSubpackage(){var e=_0x11a87e;return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n=_0xaa2f;return _regeneratorRuntime()[n(456)](function(e){for(var r=n;;)switch(e[r(554)]=e.next){case 0:return t=require(r(575)),t=t[r(510)],e[r(561)]=3,t().catch(function(e){logger[r(430)](e)});case 3:case"end":return e[r(570)]()}},e)})))[e(565)](this,arguments)}logger.debug("Using "[_0x11a87e(440)](pkg[_0x11a87e(534)]," ").concat(pkg[_0x11a87e(557)],".")),global[_0x11a87e(513)]=!0,process.on(_0x11a87e(531),function(e){var r=_0x11a87e;logger[r(430)](r(524),e)}),process.on(_0x11a87e(542),function(e,r){var t=_0x11a87e;logger.error(t(483),r,t(481),e)}),module[_0x11a87e(466)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicservice/ascf-toolkit",
3
- "version": "1.0.4-beta.0",
3
+ "version": "1.0.5-beta.4",
4
4
  "author": "atomicservice",
5
5
  "title": "ASCF toolkit for atomicservice",
6
6
  "description": "ASCF toolkit for atomicservice",
@@ -14,26 +14,25 @@
14
14
  "prepare:init": "git submodule update --init && node scripts/prepare",
15
15
  "prepare:parse5": "cd thirdparty/parse5/packages/parse5 && pnpm i && pnpm build:cjs && pnpm release:ascf-parse5",
16
16
  "prepare:vue": "cd thirdparty/vue && pnpm i && pnpm release:compiler",
17
- "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue",
17
+ "prepare:base": "cd ../ascf-base && pnpm i && pnpm build:ascf-toolkit",
18
+ "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue && npm run prepare:base",
18
19
  "bep": "gulp dev && npm pack",
19
20
  "dev": "gulp dev",
20
21
  "build": "gulp release",
21
22
  "release": "gulp release && npm pack"
22
23
  },
23
24
  "dependencies": {
24
- "@swc/core": "1.10.14",
25
25
  "@babel/core": "7.25.9",
26
26
  "@babel/generator": "7.25.9",
27
27
  "@babel/parser": "7.25.9",
28
- "@babel/traverse": "7.25.9",
29
-
30
- "@babel/plugin-transform-class-properties": "7.25.9",
31
28
  "@babel/plugin-proposal-object-rest-spread": "7.18.9",
29
+ "@babel/plugin-transform-class-properties": "7.25.9",
32
30
  "@babel/plugin-transform-modules-commonjs": "7.25.9",
33
31
  "@babel/plugin-transform-runtime": "7.18.10",
34
32
  "@babel/preset-env": "7.25.9",
35
33
  "@babel/runtime": "7.25.9",
36
-
34
+ "@babel/traverse": "7.25.9",
35
+ "@swc/core": "1.10.14",
37
36
  "babel-loader": "10.0.0",
38
37
  "cachedir": "2.4.0",
39
38
  "commander": "9.4.0",
@@ -43,6 +42,7 @@
43
42
  "less-loader": "12.2.0",
44
43
  "loader-utils": "2.0.4",
45
44
  "log4js": "6.9.1",
45
+ "minimatch": "5.1.6",
46
46
  "postcss": "8.4.39",
47
47
  "rimraf": "4.4.0",
48
48
  "sass": "1.55.0",
@@ -51,7 +51,8 @@
51
51
  "stylus": "0.59.0",
52
52
  "stylus-loader": "8.1.1",
53
53
  "webpack": "5.76.2",
54
- "minimatch": "5.1.6"
54
+ "webpack-bundle-analyzer": "4.10.2",
55
+ "webpack-dev-server": "5.2.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "del": "6.1.0",