@atomicservice/ascf-toolkit 1.0.4-beta.0 → 1.0.6-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.
- package/lib/ascf-base/index.d.ts +78 -0
- package/lib/ascf-base/index.js +1 -0
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -0
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -0
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hdc-executor.js +1 -0
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/manifest-handler.js +1 -0
- package/lib/ascf-compiler/common/manifest-manager.js +1 -0
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
- package/lib/ascf-compiler/js-parser/parser.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/require-loader.js +1 -1
- package/lib/ascf-compiler/server/dev-server.js +1 -0
- package/lib/ascf-compiler/server/port-manager.js +1 -0
- package/lib/ascf-compiler/swc-loader.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/ascfApisDiff.json +1979 -0
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/convertManager.js +1 -0
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/ascf-converter/report/icons/completely.png +0 -0
- package/lib/ascf-converter/report/icons/failed.png +0 -0
- package/lib/ascf-converter/report/icons/portion.png +0 -0
- package/lib/ascf-converter/report/index.html +718 -0
- package/lib/ascf-converter/report/js/index.js +1 -0
- package/lib/ascf-sign-tools/cli.d.ts +1 -0
- package/lib/ascf-sign-tools/cli.js +2 -0
- package/lib/ascf-sign-tools/index.d.ts +17 -0
- package/lib/ascf-sign-tools/index.js +1 -0
- package/lib/bin/ascf.js +1 -1
- package/lib/commands/ascfbuild/index.js +1 -0
- package/lib/commands/build-npm/index.js +1 -0
- package/lib/commands/compile.js +1 -0
- package/lib/commands/convert.js +1 -0
- package/lib/commands/debugger/index.js +1 -0
- package/lib/commands/quickservice/index.js +1 -0
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.js +1 -1
- package/lib/tools/release_64/SSL/ct_log_list.cnf +9 -0
- package/lib/tools/release_64/SSL/ct_log_list.cnf.dist +9 -0
- package/lib/tools/release_64/SSL/misc/CA.pl +215 -0
- package/lib/tools/release_64/SSL/misc/tsget.pl +200 -0
- package/lib/tools/release_64/SSL/openssl.cnf +350 -0
- package/lib/tools/release_64/SSL/openssl.cnf.dist +350 -0
- package/lib/tools/release_64/bin/c_rehash.pl +251 -0
- package/lib/tools/release_64/bin/libcrypto-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/libssl-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/openssl.exe +0 -0
- package/package.json +26 -19
- package/lib/ascf-build-npm/build-npm.js +0 -1
- package/lib/ascf-compiler/watch/watch.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x38d657=_0x3283;function _0x3283(t,e){var r=_0x8b5b();return(_0x3283=function(t,e){return r[t-=412]})(t,e)}function _typeof(t){var r=_0x3283;return(_typeof=r(458)==typeof Symbol&&r(486)==typeof Symbol[r(453)]?function(t){return typeof t}:function(t){var e=r;return t&&"function"==typeof Symbol&&t[e(490)]===Symbol&&t!==Symbol[e(473)]?e(486):typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=_0x3283,n=0;n<e.length;n++){var o=e[n];o[r(482)]=o[r(482)]||!1,o[r(427)]=!0,r(479)in o&&(o[r(477)]=!0),Object[r(431)](t,_toPropertyKey(o.key),o)}}function _createClass(t,e,r){var n=_0x3283;return e&&_defineProperties(t[n(473)],e),r&&_defineProperties(t,r),Object[n(431)](t,n(473),{writable:!1}),t}function _toPropertyKey(t){var e=_0x3283,t=_toPrimitive(t,e(450));return e(486)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x3283;if(r(448)!=_typeof(t)||!t)return t;var n=t[Symbol[r(437)]];if(void 0===n)return(r(450)===e?String:Number)(t);r=n.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _0x8b5b(){var t=["pageData","ConvertManager","object","values","string","Node.js版本","api","iterator","inputPath","5135135EmxLXK","lastIndexOf","version","function","jsonModular","outputPath","length","resolve","concept","component","文件总数","3gqMNPb","__ascfConvertReport","transform","transformOther","status","15500925wWrNGX","notsupport","prototype","transforms","concat","tableInfo","writable","beginTime","value","1029566BVBISV","getTime","enumerable",".css","stringify","wxssModular","symbol","getLogger","761269vKRzIf","目标输出路径","constructor","7436768zKDNpv","./ascfApisDiff.json","../common/log4js.js","report","index.html","info","exports","173824gpUiUo","partial","options","let pageData = ","otherModular","path","modelAll","templete","jsModular","configurable","components","push","ASCF","defineProperty","attrs","writeFileSync","4fDjuym","assign","platform","toPrimitive","relative","6325368zifEdp","transformTemplate","系统环境","js/data.js","源项目路径","completely","utf8"];return(_0x8b5b=function(){return t})()}(()=>{for(var t=_0x3283,e=_0x8b5b();;)try{if(598276==-parseInt(t(488))+-parseInt(t(480))/2*(-parseInt(t(466))/3)+parseInt(t(434))/4*(-parseInt(t(455))/5)+parseInt(t(439))/6+parseInt(t(418))/7+-parseInt(t(491))/8+parseInt(t(471))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var fs=require("fs"),path=require(_0x38d657(423)),commonUtils=require("./common/commonUtils"),HAS_APIS=require(_0x38d657(412)),log4js=require(_0x38d657(413)),logger=log4js[_0x38d657(487)](_0x38d657(447)),ConvertManager=(()=>{var s=_0x38d657;return _createClass(function t(){_classCallCheck(this,t)},[{key:"init",value:function(t){var e=_0x3283,t=(this.options=Object[e(435)]({},t),this[e(446)]={transforms:{},configs:{},plugins:[],surroundings:{pcSystem:{name:e(441),val:process[e(436)]},nodeVersion:{name:e(451),val:process[e(457)]},version:{name:e(430),val:require("../../package.json")[e(457)]}},tableInfo:{"文件总数":0},opening:{},concept:{modelAll:0,completely:0,partial:0,notsupport:0}},this[e(446)][e(476)]);t[e(443)]=this[e(420)][e(454)],t[e(489)]=this[e(420)][e(460)],this[e(478)]=(new Date)[e(481)]()}},{key:s(440),value:function(t,e){var r=s,n={status:1};e&&(n=HAS_APIS[r(464)][e]?Object[r(435)]({name:e},HAS_APIS.component[e]):{status:3}),this.transform(r(425),t,n)}},{key:"transformJs",value:function(t,e){var r=s,e=HAS_APIS.api[e]?Object[r(435)]({name:e},HAS_APIS[r(452)][e]):{status:3};this[r(468)](r(426),t,e)}},{key:s(469),value:function(t){var e=s,r=(e(461),{".css":e(485),".json":e(459)}),n=t.substring(t[e(456)](".")),r=null!=(r=r[n])?r:e(422);n!==e(483)&&".json"!==n&&r!==e(422)||this[e(468)](r,t,{status:1})}},{key:s(468),value:function(t,e,r){var n=s,e=path[n(438)](this[n(420)][n(460)],e);this[n(446)][n(474)][e]=this[n(446)][n(474)][e]||{status:r[n(470)],components:[],type:t},null!=r&&r[n(432)]&&this[n(446)].transforms[e][n(428)][n(429)](r)}},{key:s(414),value:function(){var n=s,o=this,t=((new Date)[n(481)]()-this[n(478)])/1e3+"s",e=this[n(446)][n(476)],a=(e["转换耗时"]=t,e[n(465)]=Object.keys(this[n(446)][n(474)])[n(461)],{1:n(444),2:n(419),3:n(472)}),t=(Object[n(449)](this[n(446)][n(474)]).forEach(function(t){var e,r=n;null!=(e=t[r(428)])&&e[r(461)]||(t[r(470)]=1),o[r(446)][r(463)][a[t[r(470)]]]+=1}),this[n(446)][n(463)][n(424)]=e[n(465)],n(421)+JSON[n(484)](this[n(446)],null," ")),e=path[n(462)](this[n(420)][n(460)],n(467)),t=(commonUtils.copyDir(path[n(462)](__dirname,n(414)),e),fs[n(433)](path[n(462)](e,n(442)),t,n(445)),path.resolve(e,n(415)));logger[n(416)]("report result: "[n(475)](t))}}])})(),convertManager=new ConvertManager;module[_0x38d657(417)]=convertManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3ea7b4=_0x4769;function _typeof(r){var e=_0x4769;return(_typeof=e(466)==typeof Symbol&&e(455)==typeof Symbol[e(475)]?function(r){return typeof r}:function(r){var t=e;return r&&"function"==typeof Symbol&&r[t(552)]===Symbol&&r!==Symbol[t(547)]?"symbol":typeof r})(r)}function _regeneratorRuntime(){var s=_0x4769;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(547)],m=r[s(451)],h=Object[s(463)]||function(r,t,e){r[t]=e.value},t=s(466)==typeof Symbol?Symbol:{},i=t[s(475)]||s(492),e=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||s(467);function o(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{o({},"")}catch(r){o=function(r,t,e){return r[t]=e}}function u(r,t,e,n){var o,i,a,c,u=s,t=t&&t[u(547)]instanceof d?t:d,t=Object[u(448)](t[u(547)]),n=new S(n||[]);return h(t,u(425),{value:(o=r,i=e,a=n,c=p,function(r,t){var e=_0x4769;if(c===y)throw Error(e(407));if(c===_){if("throw"===r)throw t;return{value:f,done:!0}}for(a.method=r,a[e(477)]=t;;){var n=a[e(428)];if(n){n=function r(t,e){var n=s,o=e[n(498)],i=t[n(475)][o];if(i===f)return e[n(428)]=null,"throw"===o&&t[n(475)][n(450)]&&(e[n(498)]=n(450),e[n(477)]=f,r(t,e),"throw"===e.method)||n(450)!==o&&(e[n(498)]=n(517),e[n(477)]=new TypeError(n(432)+o+n(465))),g;o=l(i,t.iterator,e[n(477)]);if(n(517)===o[n(479)])return e[n(498)]="throw",e[n(477)]=o[n(477)],e[n(428)]=null,g;i=o[n(477)];return i?i[n(416)]?(e[t.resultName]=i.value,e[n(544)]=t[n(530)],n(450)!==e[n(498)]&&(e[n(498)]=n(544),e[n(477)]=f),e[n(428)]=null,g):i:(e[n(498)]=n(517),e[n(477)]=new TypeError(n(501)),e.delegate=null,g)}(n,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a[e(538)]=a[e(408)]=a[e(477)];else if(e(517)===a.method){if(c===p)throw c=_,a[e(477)];a[e(437)](a.arg)}else e(450)===a[e(498)]&&a[e(539)](e(450),a[e(477)]);c=y;n=l(o,i,a);if(e(511)===n[e(479)]){if(c=a.done?_:v,n[e(477)]===g)continue;return{value:n[e(477)],done:a[e(416)]}}"throw"===n[e(479)]&&(c=_,a.method=e(517),a.arg=n[e(477)])}})}),t}function l(r,t,e){var n=s;try{return{type:n(511),arg:r[n(545)](t,e)}}catch(r){return{type:n(517),arg:r}}}c.wrap=u;var p=s(436),v=s(543),y=s(456),_=s(505),g={};function d(){}function a(){}function b(){}var t={},x=(o(t,i,function(){return this}),Object[s(468)]),x=x&&x(x(O([]))),C=(x&&x!==r&&m[s(545)](x,i)&&(t=x),b.prototype=d[s(547)]=Object[s(448)](t));function w(r){var t=s;[t(544),t(517),t(450)][t(531)](function(t){o(r,t,function(r){return this[_0x4769(425)](t,r)})})}function P(c,u){var t,o=s;h(this,o(425),{value:function(e,n){function r(){return new u(function(r,t){!function t(r,e,n,o){var i,a=_0x4769,r=l(c[r],c,e);if("throw"!==r[a(479)])return(e=(i=r[a(477)])[a(486)])&&a(488)==_typeof(e)&&m[a(545)](e,a(409))?u.resolve(e[a(409)])[a(411)](function(r){t("next",r,n,o)},function(r){t(a(517),r,n,o)}):u[a(555)](e)[a(411)](function(r){i[a(486)]=r,n(i)},function(r){return t("throw",r,n,o)});o(r[a(477)])}(e,n,r,t)})}return t=t?t[o(411)](r,r):r()}})}function j(r){var t=s,e={tryLoc:r[0]};1 in r&&(e[t(524)]=r[1]),2 in r&&(e[t(490)]=r[2],e[t(440)]=r[3]),this[t(518)][t(424)](e)}function F(r){var t=s,e=r[t(513)]||{};e[t(479)]="normal",delete e[t(477)],r[t(513)]=e}function S(r){var t=s;this.tryEntries=[{tryLoc:t(489)}],r.forEach(j,this),this[t(414)](!0)}function O(e){var n=s;if(e||""===e){var o,r=e[i];if(r)return r.call(e);if(n(466)==typeof e[n(544)])return e;if(!isNaN(e[n(487)]))return o=-1,(r=function r(){for(var t=n;++o<e[t(487)];)if(m[t(545)](e,o))return r[t(486)]=e[o],r[t(416)]=!1,r;return r[t(486)]=f,r[t(416)]=!0,r})[n(544)]=r}throw new TypeError(_typeof(e)+n(528))}return a[s(547)]=b,h(C,s(552),{value:b,configurable:!0}),h(b,s(552),{value:a,configurable:!0}),a.displayName=o(b,n,"GeneratorFunction"),c[s(452)]=function(r){var t=s,r=t(466)==typeof r&&r[t(552)];return!!r&&(r===a||t(557)===(r.displayName||r[t(431)]))},c.mark=function(r){var t=s;return Object[t(446)]?Object[t(446)](r,b):(r.__proto__=b,o(r,n,t(557))),r[t(547)]=Object[t(448)](C),r},c[s(454)]=function(r){return{__await:r}},w(P[s(547)]),o(P[s(547)],e,function(){return this}),c[s(553)]=P,c[s(537)]=function(r,t,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new P(u(r,t,e,n),o));return c[i(452)](t)?a:a[i(544)]().then(function(r){var t=i;return r[t(416)]?r[t(486)]:a[t(544)]()})},w(C),o(C,n,s(502)),o(C,i,function(){return this}),o(C,"toString",function(){return s(418)}),c.keys=function(r){var t,n=s,o=Object(r),i=[];for(t in o)i[n(424)](t);return i[n(536)](),function r(){for(var t=n;i[t(487)];){var e=i[t(419)]();if(e in o)return r.value=e,r[t(416)]=!1,r}return r[t(416)]=!0,r}},c[s(457)]=O,S[s(547)]={constructor:S,reset:function(r){var t=s;if(this[t(526)]=0,this[t(544)]=0,this.sent=this[t(408)]=f,this[t(416)]=!1,this[t(428)]=null,this[t(498)]="next",this.arg=f,this[t(518)][t(531)](F),!r)for(var e in this)"t"===e[t(435)](0)&&m.call(this,e)&&!isNaN(+e[t(541)](1))&&(this[e]=f)},stop:function(){var r=s,t=(this.done=!0,this[r(518)][0][r(513)]);if(r(517)===t[r(479)])throw t.arg;return this[r(423)]},dispatchException:function(n){var o=s;if(this[o(416)])throw n;var i=this;function r(r,t){var e=o;return a.type=e(517),a[e(477)]=n,i[e(544)]=r,t&&(i[e(498)]=e(544),i[e(477)]=f),!!t}for(var t=this.tryEntries[o(487)]-1;0<=t;--t){var e=this[o(518)][t],a=e[o(513)];if("root"===e.tryLoc)return r(o(512));if(e[o(422)]<=this[o(526)]){var c=m[o(545)](e,o(524)),u=m[o(545)](e,"finallyLoc");if(c&&u){if(this[o(526)]<e[o(524)])return r(e[o(524)],!0);if(this[o(526)]<e[o(490)])return r(e[o(490)])}else if(c){if(this.prev<e.catchLoc)return r(e.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(526)]<e.finallyLoc)return r(e[o(490)])}}}},abrupt:function(r,t){for(var e=s,n=this.tryEntries[e(487)]-1;0<=n;--n){var o=this[e(518)][n];if(o.tryLoc<=this[e(526)]&&m[e(545)](o,e(490))&&this[e(526)]<o[e(490)]){var i=o;break}}var a=(i=i&&(e(525)===r||e(529)===r)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return a[e(479)]=r,a.arg=t,i?(this.method=e(544),this[e(544)]=i[e(490)],g):this.complete(a)},complete:function(r,t){var e=s;if(e(517)===r[e(479)])throw r[e(477)];return e(525)===r.type||e(529)===r.type?this.next=r[e(477)]:"return"===r.type?(this.rval=this[e(477)]=r.arg,this[e(498)]="return",this[e(544)]="end"):"normal"===r[e(479)]&&t&&(this[e(544)]=t),g},finish:function(r){for(var t=s,e=this[t(518)].length-1;0<=e;--e){var n=this[t(518)][e];if(n[t(490)]===r)return this[t(453)](n[t(513)],n[t(440)]),F(n),g}},catch:function(r){for(var t=s,e=this.tryEntries[t(487)]-1;0<=e;--e){var n,o,i=this.tryEntries[e];if(i.tryLoc===r)return n=i[t(513)],t(517)===n[t(479)]&&(o=n[t(477)],F(i)),o}throw Error(t(442))},delegateYield:function(r,t,e){var n=s;return this[n(428)]={iterator:O(r),resultName:t,nextLoc:e},n(544)===this.method&&(this[n(477)]=f),g}},c}function asyncGeneratorStep(r,t,e,n,o,i,a){var c=_0x4769;try{var u=r[i](a),s=u.value}catch(r){return void e(r)}u[c(416)]?t(s):Promise[c(555)](s).then(n,o)}function _asyncToGenerator(c){return function(){var r=this,a=arguments;return new Promise(function(t,e){var n=c.apply(r,a);function o(r){asyncGeneratorStep(n,t,e,o,i,"next",r)}function i(r){asyncGeneratorStep(n,t,e,o,i,_0x4769(517),r)}o(void 0)})}}(()=>{for(var r=_0x4769,t=_0x2e9b();;)try{if(718290==+parseInt(r(533))+-parseInt(r(470))/2+-parseInt(r(496))/3*(parseInt(r(443))/4)+-parseInt(r(469))/5+-parseInt(r(509))/6+-parseInt(r(510))/7+-parseInt(r(520))/8*(-parseInt(r(548))/9))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),Object[_0x3ea7b4(463)](exports,_0x3ea7b4(458),{value:!0}),exports.checkInputPathFun=exports.confirmConverterH5Fun=exports.confirmConverterFun=void 0;var commonConfig_1=require(_0x3ea7b4(439)),path=require("path"),fs=require("fs"),commonUtils_1=require("../common/commonUtils"),_require=require(_0x3ea7b4(491)),clearResource=_require.clearResource,log4js=require(_0x3ea7b4(481)),logger=log4js[_0x3ea7b4(464)](_0x3ea7b4(460)),_require2=require("../features/transformReport"),addTransformUrl=_require2[_0x3ea7b4(493)];function _0x2e9b(){var r=["1046421eAWDCM","configBasenameArray","isArray","miniprogramRoot","constructor","AsyncIterator","setOriginPtahObject","resolve","existsSync","GeneratorFunction","Generator is already running","_sent","__await","confirmAddConfig","then","catch","parse","reset","concat","done","stat","[object Generator]","pop"," is exists. Use the -c parameter to clear.","appletType","tryLoc","rval","push","_invoke","readFileSync","adaptApiFile","delegate","postInputPath","projectConfigFile","name","The iterator does not provide a '","startsWith","rmdir","charAt","suspendedStart","dispatchException","failedTransform","../common/commonConfig","afterLoc","completeTransform","illegal catch attempt","4UvyGNx","apply","notifyConfig","setPrototypeOf","transformNodeModuleComponent","create","yes","return","hasOwnProperty","isGeneratorFunction","complete","awrap","symbol","executing","values","__esModule","packageName","converter","stop","projectFileSuffix","defineProperty","getLogger","' method","function","@@toStringTag","getPrototypeOf","6157490kEZtAN","2233532MAupTi","Output directory cannot be a subdirectory of the input directory.","Output path ","toString","map","iterator","isDirectory","arg","createTransformReportFile","type","mark","../../common/log4js.js","dirname","srcRootPath","copyDir","inputPath","value","length","object","root","finallyLoc","../../common/utils","@@iterator","addTransformUrl","copyConfigFiles","unlink","3149271VbFRRe","sep","method","error","project.config.json","iterator result is not an object","Generator","wrap","Applets","completed","pages","outPath","message","7364070LZMysJ","6093605xSiMyS","normal","end","completion","env","confirmConverterH5Fun","join","throw","tryEntries","app.json","336ChbOxy","src","hxml","smartProgramRoot","catchLoc","break","prev","confirmConverterFun"," is not iterable","continue","nextLoc","forEach","createDirs","1330873hmrvry","clearResource","readdir","reverse","async","sent","abrupt","checkInputPathFun","slice","appJsonFile","suspendedYield","next","call","handleConfigInfo","prototype"];return(_0x2e9b=function(){return r})()}function confirmConverterFun(r,t){return _confirmConverterFun[_0x3ea7b4(444)](this,arguments)}function _confirmConverterFun(){var t=_0x3ea7b4;return(_confirmConverterFun=_asyncToGenerator(_regeneratorRuntime()[t(480)](function r(e,n){var o,i,a=t;return _regeneratorRuntime()[a(503)](function(r){for(var t=a;;)switch(r[t(526)]=r[t(544)]){case 0:if(r[t(526)]=0,o=path[t(555)](e[t(485)],t(519)),i=path.resolve(e.inputPath,t(500)),fs[t(556)](i)||!fs[t(556)](o)||e[t(410)]){r.next=7;break}return r[t(539)](t(450),{command:t(445)});case 7:return r[t(544)]=9,doConvert(e,n);case 9:return r[t(539)]("return",r[t(538)]);case 10:r[t(544)]=16;break;case 12:return r[t(526)]=12,r.t0=r[t(412)](0),logger[t(499)](r.t0),r[t(539)](t(450),{command:"failedTransform",errorMessage:r.t0[t(508)]});case 16:case t(512):return r[t(461)]()}},r,null,[[0,12]])})))[t(444)](this,arguments)}function confirmConverterH5Fun(r,t){var e=_0x3ea7b4,n=path[e(516)](r.outPath,r[e(459)]);try{return commonUtils_1[e(532)](n,"src",!0),commonUtils_1[e(484)](path.join(__filename,"../lib",e(521)),path[e(516)](n,"src"),!1,!0),commonUtils_1[e(546)](r,path[e(516)](n,"src")),{command:e(441)}}catch(r){return logger[e(499)](r),{command:e(438),errorMessage:r.message}}}function checkConvertOutput(r,t){var e=_0x3ea7b4,r=path[e(555)](r),t=path[e(555)](t);if(fs[e(556)](t))throw new Error(e(472)[e(415)](t,e(420)));if(t[e(433)](r+path[e(497)]))throw new Error(e(471))}function doConvert(r,t){return _doConvert[_0x3ea7b4(444)](this,arguments)}function _doConvert(){var c=_0x3ea7b4;return(_doConvert=_asyncToGenerator(_regeneratorRuntime()[c(480)](function r(e,t){var n,o,i,a=c;return _regeneratorRuntime()[a(503)](function(r){for(var t=a;;)switch(r[t(526)]=r[t(544)]){case 0:if(n=path[t(555)](e[t(507)],"ascf/ascf_src"),process[t(514)][t(534)]===t(449))return r.next=4,clearResource([n]);r.next=4;break;case 4:return checkConvertOutput(e.inputPath,n),o=commonConfig_1[t(504)].srcRootPath,r[t(526)]=6,commonUtils_1[t(532)](n,o),commonUtils_1[t(478)](n,e[t(485)]),i=path[t(516)](n,o),"./"===o||""===o?(commonUtils_1[t(554)](e.inputPath,i),commonUtils_1[t(484)](e.inputPath,i)):(commonUtils_1[t(554)](path[t(516)](e[t(485)],o),i),commonUtils_1[t(484)](path[t(516)](e[t(485)],o),i),commonUtils_1[t(494)](path[t(516)](e[t(485)]),n)),commonUtils_1[t(447)](),commonUtils_1[t(542)](path[t(516)](n,o),e),commonUtils_1[t(430)](path[t(516)](n)),"my"===commonConfig_1[t(504)][t(421)]&&commonUtils_1[t(427)](n,path[t(516)](__filename,"../../")),addTransformUrl(),r[t(539)](t(450),{command:"completeTransform",folderUrl:n});case 19:return r[t(526)]=19,r.t0=r[t(412)](6),logger.error(r.t0),removePromise(n).finally(),r[t(539)]("return",{command:"failedTransform",errorMessage:r.t0[t(508)]});case 24:case t(512):return r[t(461)]()}},r,null,[[6,19]])})))[c(444)](this,arguments)}function removePromise(i){return new Promise(function(o,r){var e=_0x4769;fs[e(417)](i,function(r,t){var n=e;t[n(476)]()?fs[n(535)](i,function(r,t){var e=n,t=(t=t[e(474)](function(r){return path.join(i,r)})).map(function(r){return removePromise(r)});Promise.all(t)[e(411)](function(){fs[e(434)](i,o)})}):fs[n(495)](i,o)})})}function checkInputPathFun(r){var t=_0x3ea7b4,r=path.resolve(r),e=checkMiniProgram(r);return{command:t(429),data:{returnCode:e,outPath:path[t(482)](r)}}}function checkMiniProgram(r){var t=_0x3ea7b4,e=!0,t=path[t(516)](r,t(519));return e=fs.existsSync(t)&&identifyProgram(r)?e:!1}function _0x4769(r,t){var e=_0x2e9b();return(_0x4769=function(r,t){return e[r-=407]})(r,t)}function identifyProgram(r){var t=_0x3ea7b4;try{var e=path[t(516)](r,t(519)),n=JSON.parse(fs.readFileSync(e)[t(473)]());if(n&&n[t(506)]&&Array[t(550)](n[t(506)])&&0<n.pages.length)for(var o=getSrcRootPath(r),i=0,a=Object.keys(commonConfig_1[t(462)]);i<a[t(487)];i++){var c=a[i],u=path.join(r,o,n[t(506)][0]+commonConfig_1.projectFileSuffix[c][t(522)]);if(fs[t(556)](u))return commonConfig_1[t(504)][t(421)]="wx"===c?"tt":c,!0}return!1}catch(r){return!1}}function getSrcRootPath(r){var t=_0x3ea7b4;commonConfig_1[t(504)][t(483)]="./";for(var e=0;e<commonConfig_1.configBasenameArray[t(487)];e++){var n=commonConfig_1[t(549)][e],n=path[t(516)](r,n);fs[t(556)](n)&&((n=JSON[t(413)](fs[t(426)](n)[t(473)]()))[t(551)]?commonConfig_1[t(504)][t(483)]=n[t(551)]:n[t(523)]?commonConfig_1[t(504)][t(483)]=n[t(523)]:commonConfig_1[t(504)].srcRootPath="./")}return commonConfig_1[t(504)][t(483)]}exports[_0x3ea7b4(527)]=confirmConverterFun,exports[_0x3ea7b4(515)]=confirmConverterH5Fun,exports[_0x3ea7b4(540)]=checkInputPathFun;
|
|
1
|
+
var _0x1bfa2c=_0xa903;function _regenerator(){var h,v=_0xa903,r=v(397)==typeof Symbol?Symbol:{},e=r[v(355)]||"@@iterator",n=r[v(324)]||v(326);function t(r,e,n,t){var o,a,c,i,f,s,u,m,p,_,g=v,e=e&&e[g(305)]instanceof y?e:y,e=Object.create(e[g(305)]);return _regeneratorDefine2(e,g(360),(o=r,a=n,m=t||[],p=!1,_={p:u=0,n:0,v:h,a:l,f:l[(s=g)(395)](h,4),d:function(r,e){return c=r,i=0,f=h,_.n=e,x}},function(r,e,n){var t=s;if(1<u)throw TypeError("Generator is already running");for(p&&1===e&&l(e,n),i=e,f=n;(d=i<2?h:f)||!p;){c||(i?i<3?(1<i&&(_.n=-1),l(i,f)):_.n=f:_.v=f);try{if(u=2,c){if(i||(r=t(357)),d=c[r]){if(!(d=d.call(c,f)))throw TypeError(t(313));if(!d.done)return d;f=d.value,i<2&&(i=0)}else 1===i&&(d=c[t(301)])&&d[t(308)](c),i<2&&(f=TypeError(t(306)+r+t(374)),i=1);c=h}else if((d=(p=_.n<0)?f:o[t(308)](a,_))!==x)break}catch(r){c=h,i=1,f=r}finally{u=1}}return{value:d,done:p}}),!0),e;function l(r,e){for(i=r,f=e,d=0;!p&&u&&!n&&d<m.length;d++){var n,t=m[d],o=_.p,a=t[2];3<r?(n=a===e)&&(f=t[(i=t[4])?5:i=3],t[4]=t[5]=h):t[0]<=o&&((n=r<2&&o<t[1])?(i=0,_.v=e,_.n=t[1]):o<a&&(n=r<3||t[0]>e||a<e)&&(t[4]=r,t[5]=e,_.n=a,i=0))}if(n||1<r)return x;throw p=!0,e}}var x={};function y(){}function o(){}function a(){}var d=Object[v(394)],r=[][e]?d(d([][e]())):(_regeneratorDefine2(d={},e,function(){return this}),d),c=a[v(305)]=y.prototype=Object[v(389)](r);function i(r){var e=v;return Object.setPrototypeOf?Object[e(302)](r,a):(r[e(359)]=a,_regeneratorDefine2(r,n,e(312))),r[e(305)]=Object.create(c),r}return o[v(305)]=a,_regeneratorDefine2(c,"constructor",a),_regeneratorDefine2(a,v(329),o),o[v(383)]=v(312),_regeneratorDefine2(a,n,v(312)),_regeneratorDefine2(c),_regeneratorDefine2(c,n,v(345)),_regeneratorDefine2(c,e,function(){return this}),_regeneratorDefine2(c,v(315),function(){return v(303)}),(_regenerator=function(){return{w:t,m:i}})()}function _regeneratorDefine2(r,e,n,t){var a=_0xa903,c=Object[a(320)];try{c({},"",{})}catch(r){c=0}(_regeneratorDefine2=function(r,e,n,t){var o=a;e?c?c(r,e,{value:n,enumerable:!t,configurable:!t,writable:!t}):r[e]=n:((t=function(e,n){_regeneratorDefine2(r,e,function(r){return this[_0xa903(360)](e,n,r)})})(o(357),0),t(o(343),1),t(o(301),2))})(r,e,n,t)}function asyncGeneratorStep(r,e,n,t,o,a,c){var i=_0xa903;try{var f=r[a](c),s=f[i(334)]}catch(r){return void n(r)}f[i(372)]?e(s):Promise[i(323)](s).then(t,o)}function _asyncToGenerator(f){return function(){var r=this,i=arguments;return new Promise(function(e,n){var t=_0xa903,o=f[t(325)](r,i);function a(r){asyncGeneratorStep(o,e,n,a,c,"next",r)}function c(r){asyncGeneratorStep(o,e,n,a,c,t(343),r)}a(void 0)})}}(()=>{for(var r=_0xa903,e=_0x3272();;)try{if(906829==+parseInt(r(336))+-parseInt(r(350))/2+-parseInt(r(338))/3+-parseInt(r(311))/4*(parseInt(r(300))/5)+-parseInt(r(351))/6+parseInt(r(341))/7+parseInt(r(364))/8*(parseInt(r(401))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x1bfa2c(320)](exports,_0x1bfa2c(400),{value:!0}),exports[_0x1bfa2c(330)]=exports[_0x1bfa2c(319)]=exports[_0x1bfa2c(353)]=void 0;var commonConfig_1=require(_0x1bfa2c(392)),path=require(_0x1bfa2c(361)),fs=require("fs"),commonUtils_1=require(_0x1bfa2c(310)),_require=require(_0x1bfa2c(385)),clearResource=_require.clearResource,log4js=require(_0x1bfa2c(405)),logger=log4js[_0x1bfa2c(328)](_0x1bfa2c(349)),_require2=require(_0x1bfa2c(317)),addTransformUrl=_require2[_0x1bfa2c(307)],convertManager=require("../convertManager.js");function confirmConverterFun(r,e){return _confirmConverterFun[_0x1bfa2c(325)](this,arguments)}function _confirmConverterFun(){var r=_0x1bfa2c;return(_confirmConverterFun=_asyncToGenerator(_regenerator().m(function r(n,t){var o,a;return _regenerator().w(function(r){for(var e=_0xa903;;)switch(r.n){case 0:if(r.p=0,o=path[e(323)](n[e(321)],"app.json"),a=path[e(323)](n.inputPath,e(371)),fs[e(391)](a)||!fs.existsSync(o)||n[e(393)]){r.n=1;break}return r.a(2,{command:e(331)});case 1:return r.n=2,doConvert(n,t);case 2:return r.a(2,r.v);case 3:r.n=5;break;case 4:return r.p=4,a=r.v,logger[e(318)](a),r.a(2,{command:e(387),errorMessage:a[e(403)]});case 5:return r.a(2)}},r,null,[[0,4]])})))[r(325)](this,arguments)}function confirmConverterH5Fun(r,e){var n=_0x1bfa2c,t=path[n(380)](r[n(388)],r[n(381)]);try{return commonUtils_1[n(335)](t,n(304),!0),commonUtils_1.copyDir(path.join(__filename,n(378),"src"),path.join(t,"src"),!1,!0),commonUtils_1[n(402)](r,path[n(380)](t,"src")),{command:n(340)}}catch(r){return logger[n(318)](r),{command:n(387),errorMessage:r[n(403)]}}}function checkConvertOutput(r,e){var n=_0x1bfa2c,r=path.resolve(r),e=path[n(323)](e);if(fs[n(391)](e))throw new Error(n(373)[n(366)](e,n(377)));if(e.startsWith(r+path[n(339)]))throw new Error(n(314))}function doConvert(r,e){return _doConvert.apply(this,arguments)}function _doConvert(){var r=_0x1bfa2c;return(_doConvert=_asyncToGenerator(_regenerator().m(function r(n,e){var t,o,a;return _regenerator().w(function(r){for(var e=_0xa903;;)switch(r.n){case 0:if(t=path[e(323)](n.outPath,e(386)),"yes"===process[e(354)][e(382)])return r.n=1,clearResource([t]);r.n=1;break;case 1:return checkConvertOutput(n[e(321)],t),o=commonConfig_1[e(309)].srcRootPath,convertManager[e(327)]({appletType:commonConfig_1[e(309)].appletType,inputPath:n.inputPath,outputPath:t}),r.p=2,commonUtils_1[e(335)](t,o),commonUtils_1.createTransformReportFile(t,n.inputPath),a=path[e(380)](t,o),"./"===o||""===o?(commonUtils_1.setOriginPtahObject(n[e(321)],a),commonUtils_1[e(365)](n[e(321)],a)):(commonUtils_1[e(370)](path[e(380)](n[e(321)],o),a),commonUtils_1[e(365)](path[e(380)](n[e(321)],o),a),commonUtils_1.copyConfigFiles(path.join(n[e(321)]),t)),commonUtils_1[e(344)](),commonUtils_1[e(342)](path.join(t,o),n),commonUtils_1[e(404)](path[e(380)](t)),"my"===commonConfig_1[e(309)][e(337)]&&commonUtils_1.adaptApiFile(t,path[e(380)](__filename,"../../")),addTransformUrl(),convertManager[e(316)](),r.a(2,{command:e(340),folderUrl:t});case 3:return r.p=3,a=r.v,logger.error(a),removePromise(t)[e(375)](),r.a(2,{command:e(387),errorMessage:a[e(403)]})}},r,null,[[2,3]])})))[r(325)](this,arguments)}function removePromise(a){return new Promise(function(o,r){var n=_0xa903;fs[n(379)](a,function(r,e){var t=n;e[t(399)]()?fs[t(396)](a,function(r,e){var n=t,e=(e=e[n(356)](function(r){return path[n(380)](a,r)}))[n(356)](function(r){return removePromise(r)});Promise[n(346)](e).then(function(){fs.rmdir(a,o)})}):fs[t(363)](a,o)})})}function checkInputPathFun(r){var e=_0x1bfa2c,r=path[e(323)](r),n=checkMiniProgram(r);return{command:e(384),data:{returnCode:n,outPath:path[e(367)](r)}}}function _0xa903(r,e){var n=_0x3272();return(_0xa903=function(r,e){return n[r-=300]})(r,e)}function checkMiniProgram(r){var e=_0x1bfa2c,n=!0,t=path[e(380)](r,e(376));return n=fs[e(391)](t)&&identifyProgram(r)?n:!1}function identifyProgram(r){var e=_0x1bfa2c;try{var n=path.join(r,e(376)),t=JSON.parse(fs[e(322)](n).toString());if(t&&t.pages&&Array[e(352)](t.pages)&&0<t[e(369)].length)for(var o=getSrcRootPath(r),a=0,c=Object[e(348)](commonConfig_1[e(368)]);a<c[e(362)];a++){var i=c[a],f=path.join(r,o,t[e(369)][0]+commonConfig_1[e(368)][i][e(390)]);if(fs.existsSync(f))return"wx"===i?commonConfig_1[e(309)][e(337)]="tt":commonConfig_1.Applets.appletType=i,!0}return!1}catch(r){return!1}}function _0x3272(){var r=["[object Generator]","src","prototype","The iterator does not provide a '","addTransformUrl","call","Applets","../common/commonUtils","16YdyBiA","GeneratorFunction","iterator result is not an object","Output directory cannot be a subdirectory of the input directory.","toString","report","../features/transformReport","error","confirmConverterH5Fun","defineProperty","inputPath","readFileSync","resolve","toStringTag","apply","@@toStringTag","init","getLogger","constructor","checkInputPathFun","notifyConfig","configBasenameArray","smartProgramRoot","value","createDirs","467843XFDaZT","appletType","1937115WKRgcE","sep","completeTransform","1832166cYDJVT","appJsonFile","throw","transformNodeModuleComponent","Generator","all","parse","keys","converter","1007526YJmdYl","7062834YPnemi","isArray","confirmConverterFun","env","iterator","map","next","srcRootPath","__proto__","_invoke","path","length","unlink","909128lnygTw","copyDir","concat","dirname","projectFileSuffix","pages","setOriginPtahObject","project.config.json","done","Output path ","' method","finally","app.json"," is exists. Use the -c parameter to clear.","../lib","stat","join","packageName","clearResource","displayName","postInputPath","../../common/utils","ascf/ascf_src","failedTransform","outPath","create","hxml","existsSync","../common/commonConfig","confirmAddConfig","getPrototypeOf","bind","readdir","function","miniprogramRoot","isDirectory","__esModule","279qngSeD","handleConfigInfo","message","projectConfigFile","../../common/log4js.js","1273770AvsPBh","return","setPrototypeOf"];return(_0x3272=function(){return r})()}function getSrcRootPath(r){var e=_0x1bfa2c;commonConfig_1.Applets[e(358)]="./";for(var n=0;n<commonConfig_1.configBasenameArray[e(362)];n++){var t=commonConfig_1[e(332)][n],t=path[e(380)](r,t);fs[e(391)](t)&&((t=JSON[e(347)](fs[e(322)](t).toString())).miniprogramRoot?commonConfig_1[e(309)][e(358)]=t[e(398)]:t.smartProgramRoot?commonConfig_1[e(309)].srcRootPath=t[e(333)]:commonConfig_1[e(309)][e(358)]="./")}return commonConfig_1[e(309)][e(358)]}exports[_0x1bfa2c(353)]=confirmConverterFun,exports.confirmConverterH5Fun=confirmConverterH5Fun,exports[_0x1bfa2c(330)]=checkInputPathFun;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var globalDistanceCount,globalJsLine,
|
|
1
|
+
var globalDistanceCount,globalJsLine,_0x2c969b=_0x48b2,path=((()=>{for(var e=_0x48b2,t=_0x4036();;)try{if(744017==-parseInt(e(325))+parseInt(e(312))/2*(parseInt(e(347))/3)+-parseInt(e(331))/4+parseInt(e(350))/5*(parseInt(e(329))/6)+parseInt(e(326))/7+parseInt(e(361))/8+parseInt(e(313))/9*(-parseInt(e(303))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x2c969b(367)]=exports[_0x2c969b(335)]=exports[_0x2c969b(320)]=exports[_0x2c969b(374)]=exports.handleWxssImport=void 0,require(_0x2c969b(360))),fs=require("fs"),_require=require("../common/textDocument"),create=_require[_0x2c969b(372)],fileHandle_1=require(_0x2c969b(349)),commonConfig_1=require(_0x2c969b(359)),commonUtils_1=require(_0x2c969b(370)),importVisitor_1=require(_0x2c969b(365)),wxssParser_1=require(_0x2c969b(354)),commonConfig_2=require(_0x2c969b(359)),TransformReport=require(_0x2c969b(344)),parse5=require(_0x2c969b(356)),_require2=require("../../common/config"),configs=_require2.configs,convertManager=require(_0x2c969b(346)),insertedApiObj={},insertedApiCountObj={},excessOffsets={},DEST_API_NAME=_0x2c969b(333),DEST_API_LEN=DEST_API_NAME.length;function handleWxssImport(e,r,n){var o=_0x2c969b,s=commonConfig_1.projectFileSuffix[n],e=create(e,r),e=(r=e[o(332)](),wxssParser_1.wxssParser(r,e,s[o(305)],n)),a=0;return e[o(339)](function(e){var t=o;e[t(327)]===t(306)?(";"!==r[e.endOffset+1-a]&&(e[t(318)]=e[t(318)]+1),r=commonUtils_1[t(366)](r,e[t(318)]-s[t(305)][t(319)]-a,e[t(318)]-a,t(308)),a+=s[t(305)][t(319)]-4):(r=commonUtils_1[t(366)](r,e[t(307)]-a,e[t(307)]+n[t(319)]+1-a,""),a+=n.length+1)}),r}function handleWxmlFile(e,t,r,n){var o=_0x2c969b,t=create(e,t),o=parse5[o(322)](t.getText(),{});return parse5.serialize(o,{convertOptions:{filePath:e,srcPath:r,appType:n,utils:{commonConfig:commonConfig_1,importVisitor:importVisitor_1,textDocument:{create:create},fileHandle:fileHandle_1}}})}function transformWxSchemas(e,t,r){var n=_0x2c969b,o=e[n(302)].start,t=t[n(351)]({line:o[n(310)]-1,character:o.character+1});return r=commonUtils_1[n(366)](r,t+globalDistanceCount,t+e.module.length+globalDistanceCount,n(340)),globalDistanceCount-=e.module.length-4,r}function transformWxmlWxsFilePath(e,t,r){var n=_0x2c969b,o=e.moduleRange[n(330)],t=t[n(351)]({line:o[n(310)]-1,character:o.character});return r=commonUtils_1[n(366)](r,t+globalDistanceCount,t+globalDistanceCount+e[n(309)][n(319)]-1,4===e.module[n(319)]?n(358):n(363))}function transformWxsFilePath(e,a,i,c,t){var l=_0x2c969b,m=0,f=commonConfig_1[l(314)][t];return e[l(339)](function(e){var t=l;if(path[t(353)](e[t(309)])===f.hjs){var r=e[t(309)],n=e[t(302)].start,n=a[t(351)]({line:n[t(310)]-1,character:n[t(371)]-1})+m,o=e[t(309)].substring(0,e[t(309)][t(319)]-(f[t(358)][t(319)]-1))+t(358);if(r&&!r[t(352)]("./")&&!r[t(352)](t(357))){var s=path.join(c,"..",r);if(!path[t(353)](s))return;fs[t(336)](s)&&(s=".",r.startsWith("/")?m+=1:(s="./",m+=2),o=s+o)}i=commonUtils_1[t(366)](i,n,n+e[t(309)].length,o)}}),i}function calProcessedApis(e,t){e[t]?e[t]++:e[t]=1}function _0x4036(){var e=["character","create","notSupport","handleWxmlFile","moduleRange","70hYxZji","insertStr","css","import","startOffset",".css","module","line","property","2PwRiUZ","180396oYyNoX","projectFileSuffix","notaddtodo","mixins","// ","endOffset","length","transformWxsFilePath","uri","parseFragment",".js","wxInterface","606992SoYZvB","8716771qQDxjr","type","indexOf","2202wDXjNv","start","4231296XmUfFP","getText","has","concat","transformJsFile","existsSync","transformJs","wxSchema","forEach","has:","fileImport",',"column":',"invalidApis","./transformReport","setLanguage","../convertManager","804888rzDnob","interfacesForTransform","../features/fileHandle","12075MplqaM","offsetAt","startsWith","extname","../parse/wxssParser",' {"line":',"../compiler-utils/parse5.bundle","../","hjs","../common/commonConfig","path","1194296bsrNDV","join","hxml","api ","../parse/importVisitor","replacepos","transformJsPath","handleWxssImport","getImportRules","../common/commonUtils"];return(_0x4036=function(){return e})()}function notDealtWith(e,t){var r=_0x2c969b;return-1!==commonConfig_2[r(343)].indexOf(e[r(311)])&&!(-1!==Object.keys(insertedApiObj)[r(328)](t)&&insertedApiObj[t]===e[r(311)])}function _0x48b2(e,t){var r=_0x4036();return(_0x48b2=function(e,t){return r[e-=302]})(e,t)}function insertTodoInline(e,t,r,n){var o=_0x2c969b,s=1,n=o(317)[o(334)](commonUtils_1[o(345)](o(373)),o(364))[o(334)](DEST_API_NAME,".").concat(n.property," TODO"),r=(1===insertedApiCountObj[t]&&(s=0,n+="\n",globalJsLine++),r+globalDistanceCount-excessOffsets[t]-s);return e=commonUtils_1[o(304)](e,r,n),globalDistanceCount+=n[o(319)],e}function transformWxInterface(e,t,r,n){var o=_0x2c969b,s=e[o(302)][o(330)],a=t[o(321)]()+"-"+s[o(310)],i=t.offsetAt({line:s[o(310)]-1,character:s[o(371)]}),c=i+globalDistanceCount;return r=commonUtils_1[o(366)](r,c,c+n[o(319)],DEST_API_NAME),globalDistanceCount+=DEST_API_LEN-n[o(319)],calProcessedApis(excessOffsets,a),commonConfig_2.interfacesForTransform[e[o(311)]]?(c=i+globalDistanceCount+n.length+1,r=commonUtils_1[o(366)](r,c,c+e[o(311)][o(319)],commonConfig_2.interfacesForTransform[e.property]),i=e[o(311)][o(319)]-commonConfig_2[o(348)][e[o(311)]].length,globalDistanceCount-=i,excessOffsets[a]-=i):notDealtWith(e,a)&&(calProcessedApis(insertedApiCountObj,a),n=t[o(351)]({line:s[o(310)]-1,character:0}),c=s.line,configs[o(315)]||(r=insertTodoInline(r,a,n,e)),i=t.uri()+o(355)+(c+globalJsLine)+o(342)+s.character+"}",TransformReport.writeInfo(""[o(334)](commonUtils_1[o(345)]("notSupport"),o(364))[o(334)](DEST_API_NAME,".")[o(334)](e.property),i),insertedApiObj[a]=e[o(311)]),r}function transformJsFile(r,n,o,s){var a=_0x2c969b,i=create(r,o),e=(o=i.getText(),importVisitor_1[a(369)](o,null,null,s));return globalJsLine=globalDistanceCount=0,e[a(339)](function(e){var t=a;switch(e[t(327)]){case t(341):o=transformJsPath(e,n,o,i);break;case t(324):o=transformWxInterface(e,i,o,s),convertManager[t(337)](r,""[t(334)](DEST_API_NAME,".")[t(334)](e.property));break;case"filePath":o=transformWxmlWxsFilePath(e,i,o);break;case t(338):o=transformWxSchemas(e,i,o);break;case t(316):o=transformComponentMixins(e,i,o)}}),o}function transformComponentMixins(e,t,r){var n=_0x2c969b,o=e[n(302)].start,t=t[n(351)]({line:o[n(310)]-1,character:o[n(371)]});return r=commonUtils_1[n(366)](r,t+globalDistanceCount,t+e.module[n(319)]+globalDistanceCount,"behaviors"),globalDistanceCount-=e[n(309)][n(319)]-9,r}function transformJsPath(e,t,r,n){var o=_0x2c969b,s=e.module;return!s||s.startsWith("./")||s[o(352)]("../")||(t=path[o(362)](t,"..",s),path[o(353)](t)||(t+=o(323)),fs[o(336)](t)&&(t=e[o(302)][o(330)],e=n[o(351)]({line:t[o(310)]-1,character:t[o(371)]-1})+globalDistanceCount,n=".",s[o(352)]("/")?globalDistanceCount+=1:(n="./",globalDistanceCount+=2),r=commonUtils_1[o(304)](r,e,n))),r}exports[_0x2c969b(368)]=handleWxssImport,exports[_0x2c969b(374)]=handleWxmlFile,exports[_0x2c969b(320)]=transformWxsFilePath,exports[_0x2c969b(335)]=transformJsFile,exports[_0x2c969b(367)]=transformJsPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x5c8a(){var r=["insertInfo","11GNOuDw","Error: ","10nHjWlk","getGlobleOutPutPath","setLanguage","../../common/url.json","transformLogUrl","387281UDLHnS","1921324RbjHtV","3GgbfaV","27TvrQtN","position","write","942008GAUzon","writeFileSync","以上接口当前版本暂不支持,请期待后续更新。\n如有需要使用请参考官方文档获取暂不支持的接口处理方式:","2151552ZFmLbD","path","addTransformUrl","\n\n\n","join","4226110NZHdPU","../common/commonUtils","writeInfo","1109590WZjuWi","parse","push","defineProperty","3406193iFAyMP","appendFile","readFileSync"];return(_0x5c8a=function(){return r})()}function _0x122e(r,e){var n=_0x5c8a();return(_0x122e=function(r,e){return n[r-=442]})(r,e)}var _0x4775e2=_0x122e,commonUtils_1=((()=>{for(var r=_0x122e,e=_0x5c8a();;)try{if(358604==+parseInt(r(450))+-parseInt(r(467))/2+parseInt(r(452))/3*(-parseInt(r(451))/4)+parseInt(r(445))/5*(parseInt(r(459))/6)+-parseInt(r(471))/7+parseInt(r(456))/8*(parseInt(r(453))/9)+-parseInt(r(464))/10*(-parseInt(r(443))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x4775e2(470)](exports,"__esModule",{value:!0}),exports.insertInfo=exports[_0x4775e2(466)]=void 0,require(_0x4775e2(465))),fs=require("fs"),path=require(_0x4775e2(460)),unsupportedApis=[];function addTransformUrl(){var r=_0x4775e2,e=path.resolve(__dirname,r(448)),e=JSON[r(468)](fs[r(473)](e).toString());0<unsupportedApis.length&&(unsupportedApis[r(469)](r(458)+e[r(449)]),write(unsupportedApis[r(463)]("")))}function writeInfo(r,e){var n=_0x4775e2,r=[n(444),r,"\n",commonUtils_1[n(447)](n(454)),e,n(462)][n(463)]("");unsupportedApis[n(469)](r)}function insertInfo(r){var e=_0x4775e2,n=fs[e(473)](commonUtils_1[e(446)]()).toString();fs[e(457)](commonUtils_1[e(446)](),r),write(n)}function write(r){var e=_0x4775e2;r&&fs[e(472)](commonUtils_1[e(446)](),r,function(r){if(r)throw r})}exports[_0x4775e2(461)]=addTransformUrl,exports[_0x4775e2(466)]=writeInfo,exports[_0x4775e2(442)]=insertInfo,exports[_0x4775e2(455)]=write;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x407f(a,e){var t=_0x5a48();return(_0x407f=function(a,e){return t[a-=196]})(a,e)}function _typeof(a){var t=_0x407f;return(_typeof="function"==typeof Symbol&&t(248)==typeof Symbol[t(249)]?function(a){return typeof a}:function(a){var e=t;return a&&e(217)==typeof Symbol&&a[e(251)]===Symbol&&a!==Symbol[e(221)]?e(248):typeof a})(a)}function _0x5a48(){var a=["function","string","keys","scanCode","prototype","concat","itemList","setScreenBrightness","apiName","apply","getSavedFileInfo","filePath","__apiAdapterConverted","callBack","5378589RQDFrP","8zNWEEr","sort","success","title","name","returnVal","10bBmPgj","133wVtsrJ","params","getStorageSync","1845966pfrGRg","length","tempFilePath","toPrimitive","text","setStorageSync","symbol","iterator","default","constructor","index","apFilePath","data","defineProperty","isArray","removeSavedFile","142gAUEPq","3502026RQnHio","quality","onlyFromCamera","822280nqMAEr","downloadFile","setClipboardData","7159emLqtT","call","object","forEach","push","1035810TOtxeG","saveImageToPhotosAlbum","defaultImgVuality","compressImage","code","makePhoneCall","16332DYshdD","value","eventName","uploadFile","chooseImage","apFilePaths","@@toPrimitive must return a primitive value."];return(_0x5a48=function(){return a})()}function _defineProperty(a,e,t){var r=_0x407f;return(e=_toPropertyKey(e))in a?Object[r(255)](a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function _toPropertyKey(a){var e=_0x407f,a=_toPrimitive(a,e(218));return e(248)==_typeof(a)?a:a+""}function _toPrimitive(a,e){var t=_0x407f;if("object"!=_typeof(a)||!a)return a;var r=a[Symbol[t(245)]];if(void 0===r)return(t(218)===e?String:Number)(a);r=r[t(200)](a,e||t(250));if(t(201)!=_typeof(r))return r;throw new TypeError(t(216))}(()=>{for(var a=_0x407f,e=_0x5a48();;)try{if(428063==+parseInt(a(199))*(parseInt(a(258))/2)+-parseInt(a(242))/3+parseInt(a(196))/4*(parseInt(a(238))/5)+parseInt(a(210))/6*(-parseInt(a(239))/7)+parseInt(a(232))/8*(parseInt(a(231))/9)+-parseInt(a(204))/10+-parseInt(a(259))/11)break;e.push(e.shift())}catch(a){e.push(e.shift())}})(),(()=>{var a,e,s,n=_0x407f;function i(e,t){var a=n;e&&Object.keys(e)[a(202)](function(a){t[a]&&(t[e[a]]=t[a],delete t[a])})}has[n(229)]||(has[n(229)]=!0,a=[{apiName:n(214),callBack:[{eventName:n(234),params:{tempFilePaths:"apFilePaths"}}]},{apiName:"saveFile",params:{apFilePath:"tempFilePath"},callBack:[{eventName:n(234),params:{savedFilePath:n(253)}}]},{apiName:"getFileInfo",params:{apFilePath:"filePath"}},{apiName:n(227),params:{apFilePath:"filePath"}},{apiName:n(257),params:{apFilePath:n(228)}},{apiName:n(198),params:{text:n(254)}},{apiName:"getClipboardData",callBack:[{eventName:n(234),params:{data:n(246)}}]},{apiName:n(205),params:{url:n(228)}},{apiName:"showLoading",params:{content:n(235)}},{apiName:"showActionSheet",params:{items:n(223)},callBack:[{eventName:n(234),params:{tapIndex:n(252)}}]},{apiName:n(213),params:{fileName:n(236)}},{apiName:n(224),params:{brightness:n(211)}},{apiName:"getScreenBrightness",callBack:[{eventName:"success",params:{value:"brightness"}}]},{apiName:n(220),params:{hideAlbum:n(261)},callBack:[{eventName:n(234),params:{result:n(208)}}]},{apiName:n(209),params:{number:"phoneNumber"}},{apiName:"showToast",params:{content:n(235)}},{apiName:n(197),callBack:[{eventName:"success",params:{tempFilePath:n(253)}}]}],e=[{apiName:n(241),params:{key:1},returnVal:n(254)},{apiName:n(247),params:{key:1,data:2}},{apiName:"removeStorageSync",params:{key:1}},{apiName:"clearStorageSync"}],s={},a[n(222)](e)[n(202)](function(a){a=a[n(225)];s[a]=has[a]}),a[n(202)](function(e){var t=n,r=e[t(225)];has[r]=function(){var a=t,n=0<arguments[a(243)]&&void 0!==arguments[0]?arguments[0]:{};return i(e[a(240)],n),e[a(230)]&&e[a(230)][a(202)](function(e){var t=a,r=n[e[t(212)]];n[e[t(212)]]=function(a){i(e[t(240)],a),r(a)}}),s[r](n)}}),e[n(202)](function(e){var o=n,p=e[o(225)];has[p]=function(){var t=o,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=[],i=e[t(240)]&&Object[t(219)](e[t(240)])||[],a=(i[t(233)](function(a,e){return i[a]-i[e]}),i.forEach(function(a){var e=t;r[a]&&n[e(203)](r[a])}),s[p][t(226)](s,n));return e[t(237)]?_defineProperty({},e[t(237)],a):{}}}),s[n(207)]=has[n(207)],has[n(207)]=function(){var t=n,a=0<arguments[t(243)]&&void 0!==arguments[0]?arguments[0]:{},e=(a.src=Array[t(256)](a[t(215)])?a[t(215)][0]:"",Number(a.level)),r=(e<=3?a[t(260)]=(100/3*e).toFixed(0):a[t(206)]=80,a[t(260)]=Number(a[t(260)]),a[t(234)]);return a[t(234)]=function(a){var e=t;a[e(215)]=[a[e(244)]],r(a)},s[t(207)](a)})})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x57460c=_0x2c77;function _0x2c77(r,e){var a=_0xa15c();return(_0x2c77=function(r,e){return a[r-=361]})(r,e)}(()=>{for(var r=_0x2c77,e=_0xa15c();;)try{if(849097==+parseInt(r(369))*(parseInt(r(375))/2)+parseInt(r(370))/3+parseInt(r(376))/4*(-parseInt(r(372))/5)+parseInt(r(377))/6*(parseInt(r(361))/7)+-parseInt(r(368))/8+parseInt(r(367))/9*(parseInt(r(374))/10)+-parseInt(r(364))/11*(parseInt(r(373))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x57460c(366)](exports,"__esModule",{value:!0}),exports.babelTransform=void 0;var babelParser=require(_0x57460c(362)),parseTryCount=0;function babelTransform(e,a){var n=_0x57460c;try{var t=babelParser[n(371)](e,{sourceType:"unambiguous",allowReturnOutsideFunction:!0,plugins:[n(363)]});return parseTryCount=0,t}catch(r){if(a){if(0===parseTryCount)return t=e[n(365)](0,a-1)+e[n(365)](a,e[n(378)]),parseTryCount++,babelTransform(t,a);if(parseTryCount<3)return t=e[n(365)](0,a)+","+e[n(365)](a,e[n(378)]),parseTryCount++,babelTransform(t,a);parseTryCount=0}return null}}function _0xa15c(){var r=["defineProperty","18CHJOdf","11494896hTthSE","1PWSVxx","4198431bEPjPE","parse","275loGEsT","934572vrZbXF","3002330mGlxWq","2485236sSQJig","37984qBrxRv","5337930YYKLsj","length","7RGqdKE","@babel/parser","classProperties","187pNAfMO","substring"];return(_0xa15c=function(){return r})()}exports.babelTransform=babelTransform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2447af=_0xa9ff;function _0x3a00(){var e=["StringLiteral","wxInterface","303366bDPEhm","findParent","forEach","123944vVdEJp","loc","hjs","end","@babel/core","669644MwagUw","arguments","types","MemberExpression","require","hxml","babelTransform","ImportDeclaration","callee","CallExpression","7XrGhkq","path","mixins","value","Component","extname","15464ZNPXVu","scope","93lrEuTZ","splice","length","filePath","5zXyJKW","projectFileSuffix","push","default","source","getStatementParent","wxSchema","name","isObjectProperty","3967370cnccFo","start","10qXhfHW","../common/commonConfig","__esModule","Identifier","://","getImportRules","isIdentifier","fileImport","property","column","key","test","2795211gUQidj","getOwnBinding","defineProperty","196317SQxwAP","properties","node","concat","object","./babelParser","line"];return(_0x3a00=function(){return e})()}(()=>{for(var e=_0xa9ff,r=_0x3a00();;)try{if(183439==+parseInt(e(488))+-parseInt(e(521))/2*(-parseInt(e(523))/3)+parseInt(e(505))/4*(-parseInt(e(527))/5)+-parseInt(e(497))/6+parseInt(e(515))/7*(parseInt(e(500))/8)+parseInt(e(485))/9+parseInt(e(538))/10*(-parseInt(e(536))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),Object[_0x2447af(487)](exports,_0x2447af(540),{value:!0}),exports[_0x2447af(543)]=void 0;var babelParser_1=require(_0x2447af(493)),babel_traverse_1=require("@babel/traverse"),pathTool=require(_0x2447af(516)),commonConfig_1=require(_0x2447af(539)),babelTypes=require(_0x2447af(504))[_0x2447af(507)];function _0xa9ff(e,r){var t=_0x3a00();return(_0xa9ff=function(e,r){return t[e-=480]})(e,r)}function getQaSchemasReg(e){var r=_0x2447af;return new RegExp("^"[r(491)](e,r(542)))}var currentType,suffixs,importRules=[],visitor={ImportDeclaration:function(e){var r=_0x2447af;importRules[r(529)]({type:r(480),module:e[r(490)][r(531)][r(518)],moduleRange:{start:{line:e.node[r(531)][r(501)][r(537)][r(494)],character:e.node[r(531)].loc[r(537)][r(482)]+2},end:{line:e[r(490)][r(531)][r(501)][r(503)][r(494)],character:e[r(490)][r(531)].loc[r(503)][r(482)]+2}}})},CallExpression:function(e){var t=_0x2447af;e[t(490)][t(513)]&&e[t(490)].arguments&&e.node[t(513)][t(534)]===t(509)&&1===e[t(490)][t(506)].length&&importRules[t(529)]({type:"fileImport",module:e[t(490)][t(506)][0].value,moduleRange:{start:{line:e.node[t(506)][0][t(501)][t(537)][t(494)],character:e.node[t(506)][0][t(501)][t(537)].column+2},end:{line:e[t(490)][t(506)][0][t(501)][t(503)][t(494)],character:e[t(490)][t(506)][0].loc[t(503)].column+2}}}),e[t(490)][t(513)]&&e.node[t(506)]&&e[t(490)][t(513)].name===t(519)&&1===e[t(490)].arguments[t(525)]&&babelTypes.isObjectExpression(e.node.arguments[0])&&e.node[t(506)][0][t(489)]&&0<e.node[t(506)][0][t(489)].length&&e.node[t(506)][0][t(489)][t(499)](function(e){var r=t;babelTypes[r(535)](e)&&babelTypes[r(544)](e.key)&&e[r(483)][r(534)]===r(517)&&importRules[r(529)]({type:"mixins",module:e[r(483)].name,moduleRange:{start:{line:e[r(501)][r(537)][r(494)],character:e[r(501)][r(537)][r(482)]},end:{line:e[r(483)][r(501)][r(503)][r(494)],character:e[r(483)].loc[r(503)].column}}})})},MemberExpression:function(e){var r=_0x2447af;e[r(490)][r(492)]&&e[r(490)][r(481)]&&e.node.object[r(534)]===currentType&&!hasParent(e,e.node.object[r(534)])&&importRules.push({type:r(496),module:e[r(490)].object[r(534)],moduleRange:{start:{line:e[r(490)].object[r(501)][r(537)][r(494)],character:e[r(490)][r(492)][r(501)].start[r(482)]},end:{line:e[r(490)].object[r(501)][r(503)][r(494)],character:e[r(490)][r(492)][r(501)][r(503)][r(482)]}},property:e[r(490)].property.name})},Identifier:function(e){var r=_0x2447af;e.node[r(534)]!==currentType||0!==e[r(483)]||hasParent(e,e[r(490)][r(534)])||importRules.push({type:r(496),module:e[r(490)][r(534)],moduleRange:{start:{line:e[r(490)][r(501)].start[r(494)],character:e[r(490)][r(501)][r(537)][r(482)]},end:{line:e.node.loc[r(503)][r(494)],character:e[r(490)][r(501)][r(503)].column}},property:null})},StringLiteral:function(e){var r,t=_0x2447af;!e.node.value||pathTool[t(520)](e[t(490)][t(518)])!==suffixs[t(510)]&&pathTool[t(520)](e.node[t(518)])!==suffixs[t(502)]||(r=pathTool.extname(e[t(490)].value),importRules[t(529)]({type:t(526),module:r,moduleRange:{start:{line:e[t(490)][t(501)][t(503)].line,character:e.node[t(501)].end[t(482)]-r[t(525)]},end:{line:e.node.loc[t(503)][t(494)],character:e[t(490)][t(501)][t(503)][t(482)]}}})),e[t(490)][t(518)]&&getQaSchemasReg(currentType)[t(484)](e[t(490)][t(518)])&&importRules.push({type:t(533),module:""[t(491)](currentType,":"),moduleRange:{start:{line:e[t(490)].loc[t(537)].line,character:e[t(490)].loc.start[t(482)]},end:{line:e.node[t(501)].start[t(494)],character:e[t(490)].loc[t(537)][t(482)]+5}}})}};function hasParent(e,t){var a=_0x2447af,n=!1;return e[a(532)]()[a(498)](function(e){var r=a;n||e[r(522)][r(486)](t)&&(n=!0)}),n}function clear(){var e=_0x2447af;importRules[e(524)](0,importRules[e(525)])}function getImportRules(e,r){var t=_0x2447af,a=2<arguments[t(525)]&&void 0!==arguments[2]&&arguments[2],n=3<arguments[t(525)]?arguments[3]:void 0,a=(currentType=n,suffixs=commonConfig_1[t(528)][n],n=a?{CallExpression:visitor.CallExpression,ImportDeclaration:visitor[t(512)]}:{MemberExpression:visitor[t(508)],StringLiteral:visitor[t(495)],Identifier:visitor[t(541)],CallExpression:visitor[t(514)]},babelParser_1[t(511)](e,r));return clear(),babel_traverse_1[t(530)](a,n),importRules}exports.getImportRules=getImportRules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0xa5a39c=_0x4e45;function _0x5e5e(){var e=["concat","end","306097ntYbmN","split","params","__esModule","atrule","filter","test","6746778gagsmp","420284LkEtWg","9gltTSI","3195094PmynEv","substring","rule","exec","start","column","offsetAt","restLength","source","forEach","[\\s\\S]*?\\*\\/\\s*(?:\\r|\\n|$)|((?:^|\\n|\\r)\\s*\\/\\/.*","parse","importReg","defineProperty","selector","match","11344896WVirsn","import","swan","170SYukUk","index","media","selectors","704110QQawtB","getText","type",".*(?:\\r|\\n|$)))","path","extname","character","replace","3Utbwwk","wxssParser","postcss","importFileReg","line","2122153jPnsMb","push","position","isInComment","indexOf","name","2diiWNa","uri","length","((?:^|\\n|\\r)\\s*\\/\\*[\\s\\S]*?"];return(_0x5e5e=function(){return e})()}(()=>{for(var e=_0x4e45,t=_0x5e5e();;)try{if(832664==-parseInt(e(124))*(-parseInt(e(118))/2)+-parseInt(e(107))/3*(-parseInt(e(132))/4)+parseInt(e(157))/5+-parseInt(e(131))/6+-parseInt(e(134))/7+-parseInt(e(150))/8*(parseInt(e(133))/9)+parseInt(e(153))/10*(parseInt(e(112))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0xa5a39c(147)](exports,_0xa5a39c(127),{value:!0}),exports[_0xa5a39c(108)]=exports.importFileReg=exports[_0xa5a39c(146)]=void 0;var postcss=require(_0xa5a39c(109)),path=require(_0xa5a39c(161));function _0x4e45(e,t){var r=_0x5e5e();return(_0x4e45=function(e,t){return r[e-=105]})(e,t)}function wxssParser(t,r,i,c){var p=_0xa5a39c,n=[];try{n=postcss[p(145)](t).nodes[p(129)](function(e){var t=p;return e[t(159)]===t(128)&&"import"===e[t(117)]}).map(function(e){var t=p;return{type:t(151),import:e[t(126)],position:{start:e[t(142)][t(138)],end:e.source[t(123)]}}})}catch(e){for(var s=t[p(149)](exports[p(146)]),a=0,o=0;s=exports[p(146)][p(137)](t);){var u,o=t.indexOf(s[0],o),x=checkIsInComment(s[0],t,a,s.index);x[p(115)]?(a=s[p(154)]+x[p(141)],o+=x.restLength):(a=s.index+s[0][p(120)],(x=s[0].match(exports[p(110)]))&&(u=r.positionAt(o+x.index),n[p(113)]({type:"import",uri:r[p(119)],position:{start:{line:u[p(111)]+1,column:u[p(105)]},end:{line:u.line+1,column:u[p(105)]+x[0][p(120)]+2}},value:x?x[1]:"",import:x[0]})),o+=s[0].length)}}var l=[];return n[p(143)](function(n){var s,e,a,o=p;"import"===n[o(159)]?(e={line:n[o(114)].end[o(111)]-1,character:n[o(114)].end[o(139)]-2},s=r[o(140)](e),e=n.import[o(106)](/[\r\n]/gi," ")[o(125)](" "),a=0,e.forEach(function(e){var t,r=o,e=e[r(135)](1,e[r(120)]-1);path[r(162)](e)===i&&(t=n.import[r(116)](e,a),a=t,l[r(113)]({type:r(151),import:e,endOffset:s-(n[r(151)].length-t-e[r(120)])+1}))})):c===o(152)&&getSelectorRule(n,r,c,l)}),l}function handleSelectors(e,n,s,a,o){var t=_0xa5a39c;e[t(143)](function(e){var r=t;e[r(125)](/\s+/)[r(143)](function(e){var t=r;n=s.indexOf(e,n),a[t(130)](e)&&o.push({type:t(148),selector:e,startOffset:n}),n+=e[t(120)]})})}function getSelectorRule(e,t,r,n){var s,a,o,i,c=_0xa5a39c;e[c(159)]===c(136)?(s=t[c(158)](),a=new RegExp("^"[c(122)](r,"-")),o=e[c(156)],i={line:e[c(114)][c(138)][c(111)]-1,character:e[c(114)][c(138)].column-1},i=t[c(140)](i),o&&handleSelectors(o,i,s,a,n)):e.type===c(155)&&e.rules[c(143)](function(e){getSelectorRule(e,t,r,n)})}function checkIsInComment(e,t,r,n){for(var s,a=_0xa5a39c,o=new RegExp(a(121)[a(122)](e,a(144))[a(122)](e,a(160)),"g");s=o[a(137)](t[a(135)](r));){if(s[a(154)]+r<n&&s[a(154)]+r+s[0][a(120)]>n)return{isInComment:!0,restLength:s.index+r+s[0][a(120)]-n};if(s[a(154)]+r>n)break}return{isInComment:!1,restLength:0}}exports.importReg=/\@import\s+[\'\"].*[\'\"](\s+.*(\s*[and|not|only|or|\,]\s*\(.*\))*)?\s*\;?/g,exports[_0xa5a39c(110)]=/['"]\s*([^()]+?)\s*['"]/,exports[_0xa5a39c(108)]=wxssParser;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|