@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.
- package/lib/ascf-base/index.d.ts +68 -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/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/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/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/watch/watch.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/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/debugger/index.js +1 -0
- package/lib/common/config.js +1 -1
- 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/package.json +9 -8
- package/lib/ascf-build-npm/build-npm.js +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ChildProcessWithoutNullStreams } from 'child_process';
|
|
2
|
+
|
|
3
|
+
declare const ASCF_LOG_FILE: string;
|
|
4
|
+
declare function setLoggerConfig(val: any): void;
|
|
5
|
+
declare class Logger {
|
|
6
|
+
categories: string;
|
|
7
|
+
constructor(categories: string);
|
|
8
|
+
debug(message: any, ...args: any[]): void;
|
|
9
|
+
info(message: any, ...args: any[]): void;
|
|
10
|
+
warn(message: any, ...args: any[]): void;
|
|
11
|
+
error(message: any, ...args: any[]): void;
|
|
12
|
+
fatal(message: any, ...args: any[]): void;
|
|
13
|
+
}
|
|
14
|
+
declare function getLogger(categories: any): Logger;
|
|
15
|
+
|
|
16
|
+
type AscfDebuggerOptions = {
|
|
17
|
+
open?: '' | 'default' | 'chrome' | 'edge';
|
|
18
|
+
deviceId?: string;
|
|
19
|
+
bundleName?: string;
|
|
20
|
+
};
|
|
21
|
+
declare class AscfDebugger {
|
|
22
|
+
options: AscfDebuggerOptions;
|
|
23
|
+
constructor(options: AscfDebuggerOptions);
|
|
24
|
+
handle(subCmd: any): void;
|
|
25
|
+
status(): Promise<void>;
|
|
26
|
+
start(): Promise<void>;
|
|
27
|
+
stop(): Promise<void>;
|
|
28
|
+
startView(): Promise<void>;
|
|
29
|
+
startService(): Promise<void>;
|
|
30
|
+
stopView(): Promise<void>;
|
|
31
|
+
stopService(): Promise<void>;
|
|
32
|
+
checkBundleName(bundleName: any): Promise<any>;
|
|
33
|
+
openBrowser(localPort: any, fallback?: string): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type BuildModeType = 'debug' | 'release';
|
|
37
|
+
type BuildTargetType = 'atomicservice' | 'quickservice';
|
|
38
|
+
type AscfBuilderOptions = {
|
|
39
|
+
projectRoot?: string;
|
|
40
|
+
deviceId?: string;
|
|
41
|
+
buildMode?: BuildModeType;
|
|
42
|
+
buildTarget?: BuildTargetType;
|
|
43
|
+
};
|
|
44
|
+
declare class AscfBuilder {
|
|
45
|
+
cpList: ChildProcessWithoutNullStreams[];
|
|
46
|
+
terminal: null;
|
|
47
|
+
stopping: boolean;
|
|
48
|
+
options: AscfBuilderOptions;
|
|
49
|
+
constructor(options: AscfBuilderOptions);
|
|
50
|
+
handle(subCmd: any): void;
|
|
51
|
+
add(cp: any): void;
|
|
52
|
+
del(cp: any): void;
|
|
53
|
+
stop(): void;
|
|
54
|
+
dispose(): void;
|
|
55
|
+
init(): void;
|
|
56
|
+
runCmdAsync(cmd: any, args?: string[], options?: any): Promise<any>;
|
|
57
|
+
runHdcCmdAsync(args?: string[], options?: any): Promise<any>;
|
|
58
|
+
start(): Promise<void>;
|
|
59
|
+
installDeps(): Promise<void>;
|
|
60
|
+
assembleHap(): Promise<void>;
|
|
61
|
+
usingTmpDir(deviceId: any, cb: any): Promise<void>;
|
|
62
|
+
installHap(): Promise<void>;
|
|
63
|
+
assembleAndInstallHap(): Promise<void>;
|
|
64
|
+
uninstall(): Promise<void>;
|
|
65
|
+
clean(): Promise<void>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { ASCF_LOG_FILE, AscfBuilder, type AscfBuilderOptions, AscfDebugger, type AscfDebuggerOptions, type BuildModeType, type BuildTargetType, getLogger, setLoggerConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _ref,_0x19cf7b=_0x5be3;function _regeneratorRuntime(){var s=_0x5be3;_regeneratorRuntime=function(){return u};var f,u={},e=Object[s(411)],l=e[s(430)],h=Object[s(299)]||function(e,r,t){var n=s;e[r]=t[n(252)]},r=s(506)==typeof Symbol?Symbol:{},o=r[s(266)]||"@@iterator",t=r[s(264)]||s(265),n=r[s(387)]||"@@toStringTag";function a(e,r,t){return Object[s(299)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{a({},"")}catch(e){a=function(e,r,t){return e[r]=t}}function c(e,r,t,n){var a,o,i,u,c=s,r=r&&r[c(411)]instanceof d?r:d,r=Object[c(233)](r[c(411)]),c=new P(n||[]);return h(r,"_invoke",{value:(a=e,o=t,i=c,u=v,function(e,r){var t=_0x5be3;if(u===b)throw Error(t(433));if(u===y){if(t(548)===e)throw r;return{value:f,done:!0}}for(i[t(432)]=e,i[t(473)]=r;;){var n=i[t(456)];if(n){n=function e(r,t){var n=s,a=t[n(432)],o=r[n(266)][a];if(o===f)return t[n(456)]=null,n(548)===a&&r.iterator.return&&(t.method=n(536),t.arg=f,e(r,t),n(548)===t[n(432)])||n(536)!==a&&(t.method=n(548),t[n(473)]=new TypeError(n(461)+a+n(428))),m;a=p(o,r.iterator,t[n(473)]);if(n(548)===a[n(287)])return t[n(432)]="throw",t[n(473)]=a[n(473)],t[n(456)]=null,m;o=a.arg;return o?o.done?(t[r[n(552)]]=o[n(252)],t[n(358)]=r[n(262)],"return"!==t[n(432)]&&(t[n(432)]=n(358),t[n(473)]=f),t.delegate=null,m):o:(t[n(432)]=n(548),t[n(473)]=new TypeError(n(471)),t.delegate=null,m)}(n,i);if(n){if(n===m)continue;return n}}if(t(358)===i[t(432)])i.sent=i[t(249)]=i[t(473)];else if(t(548)===i.method){if(u===v)throw u=y,i[t(473)];i.dispatchException(i.arg)}else"return"===i.method&&i[t(398)](t(536),i[t(473)]);u=b;n=p(a,o,i);if(t(229)===n.type){if(u=i[t(284)]?y:_,n[t(473)]===m)continue;return{value:n[t(473)],done:i[t(284)]}}t(548)===n[t(287)]&&(u=y,i.method=t(548),i[t(473)]=n[t(473)])}})}),r}function p(e,r,t){var n=s;try{return{type:n(229),arg:e.call(r,t)}}catch(e){return{type:n(548),arg:e}}}u[s(485)]=c;var v="suspendedStart",_=s(466),b=s(237),y=s(549),m={};function d(){}function i(){}function g(){}var r={},x=(a(r,o,function(){return this}),Object[s(533)]),x=x&&x(x(O([]))),w=(x&&x!==e&&l[s(253)](x,o)&&(r=x),g[s(411)]=d[s(411)]=Object[s(233)](r));function k(e){var r=s;[r(358),r(548),r(536)][r(391)](function(r){a(e,r,function(e){return this._invoke(r,e)})})}function R(u,c){var r,a=s;h(this,a(370),{value:function(t,n){function e(){return new c(function(e,r){!function r(e,t,n,a){var o,i=_0x5be3,e=p(u[e],u,t);if(i(548)!==e.type)return(t=(o=e.arg).value)&&i(508)==_typeof(t)&&l[i(253)](t,i(452))?c[i(307)](t.__await)[i(366)](function(e){r(i(358),e,n,a)},function(e){r(i(548),e,n,a)}):c[i(307)](t)[i(366)](function(e){o[i(252)]=e,n(o)},function(e){return r(i(548),e,n,a)});a(e.arg)}(t,n,e,r)})}return r=r?r[a(366)](e,e):e()}})}function T(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(488)]=e[1]),2 in e&&(t[r(544)]=e[2],t.afterLoc=e[3]),this[r(303)][r(317)](t)}function S(e){var r=s,t=e[r(451)]||{};t[r(287)]=r(229),delete t.arg,e[r(451)]=t}function P(e){var r=s;this[r(303)]=[{tryLoc:"root"}],e[r(391)](T,this),this.reset(!0)}function O(t){var n=s;if(t||""===t){var a,e=t[o];if(e)return e[n(253)](t);if(n(506)==typeof t[n(358)])return t;if(!isNaN(t.length))return a=-1,(e=function e(){for(var r=n;++a<t[r(378)];)if(l[r(253)](t,a))return e[r(252)]=t[a],e[r(284)]=!1,e;return e[r(252)]=f,e[r(284)]=!0,e})[n(358)]=e}throw new TypeError(_typeof(t)+" is not iterable")}return i[s(411)]=g,h(w,s(315),{value:g,configurable:!0}),h(g,"constructor",{value:i,configurable:!0}),i.displayName=a(g,n,s(333)),u[s(422)]=function(e){var r=s,e="function"==typeof e&&e.constructor;return!!e&&(e===i||r(333)===(e[r(540)]||e[r(305)]))},u[s(311)]=function(e){var r=s;return Object[r(296)]?Object[r(296)](e,g):(e[r(285)]=g,a(e,n,r(333))),e[r(411)]=Object[r(233)](w),e},u.awrap=function(e){return{__await:e}},k(R.prototype),a(R[s(411)],t,function(){return this}),u[s(522)]=R,u[s(460)]=function(e,r,t,n,a){var o=s,i=(void 0===a&&(a=Promise),new R(c(e,r,t,n),a));return u[o(422)](r)?i:i[o(358)]()[o(366)](function(e){var r=o;return e.done?e.value:i[r(358)]()})},k(w),a(w,n,s(449)),a(w,o,function(){return this}),a(w,"toString",function(){return s(256)}),u[s(459)]=function(e){var r,n=s,a=Object(e),o=[];for(r in a)o[n(317)](r);return o[n(257)](),function e(){for(var r=n;o[r(378)];){var t=o[r(475)]();if(t in a)return e[r(252)]=t,e.done=!1,e}return e[r(284)]=!0,e}},u[s(286)]=O,P[s(411)]={constructor:P,reset:function(e){var r=s;if(this[r(462)]=0,this[r(358)]=0,this[r(339)]=this[r(249)]=f,this[r(284)]=!1,this[r(456)]=null,this[r(432)]="next",this[r(473)]=f,this[r(303)].forEach(S),!e)for(var t in this)"t"===t[r(500)](0)&&l[r(253)](this,t)&&!isNaN(+t[r(546)](1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(284)]=!0,this[e(303)][0][e(451)]);if("throw"===r[e(287)])throw r[e(473)];return this[e(357)]},dispatchException:function(n){var a=s;if(this[a(284)])throw n;var o=this;function e(e,r){var t=a;return i.type=t(548),i[t(473)]=n,o[t(358)]=e,r&&(o[t(432)]=t(358),o[t(473)]=f),!!r}for(var r=this.tryEntries[a(378)]-1;0<=r;--r){var t=this[a(303)][r],i=t[a(451)];if(a(468)===t[a(515)])return e(a(479));if(t[a(515)]<=this[a(462)]){var u=l[a(253)](t,a(488)),c=l[a(253)](t,a(544));if(u&&c){if(this[a(462)]<t.catchLoc)return e(t[a(488)],!0);if(this[a(462)]<t.finallyLoc)return e(t[a(544)])}else if(u){if(this[a(462)]<t[a(488)])return e(t[a(488)],!0)}else{if(!c)throw Error(a(457));if(this[a(462)]<t[a(544)])return e(t.finallyLoc)}}}},abrupt:function(e,r){for(var t=s,n=this[t(303)][t(378)]-1;0<=n;--n){var a=this[t(303)][n];if(a.tryLoc<=this[t(462)]&&l[t(253)](a,t(544))&&this.prev<a[t(544)]){var o=a;break}}var i=(o=o&&(t(476)===e||"continue"===e)&&o[t(515)]<=r&&r<=o[t(544)]?null:o)?o[t(451)]:{};return i[t(287)]=e,i[t(473)]=r,o?(this.method=t(358),this[t(358)]=o[t(544)],m):this[t(231)](i)},complete:function(e,r){var t=s;if(t(548)===e[t(287)])throw e[t(473)];return t(476)===e.type||t(484)===e[t(287)]?this[t(358)]=e[t(473)]:t(536)===e[t(287)]?(this[t(357)]=this[t(473)]=e.arg,this[t(432)]=t(536),this.next=t(479)):"normal"===e.type&&r&&(this.next=r),m},finish:function(e){for(var r=s,t=this[r(303)].length-1;0<=t;--t){var n=this[r(303)][t];if(n.finallyLoc===e)return this[r(231)](n[r(451)],n[r(399)]),S(n),m}},catch:function(e){for(var r=s,t=this[r(303)][r(378)]-1;0<=t;--t){var n,a,o=this.tryEntries[t];if(o[r(515)]===e)return n=o[r(451)],r(548)===n[r(287)]&&(a=n[r(473)],S(o)),a}throw Error(r(245))},delegateYield:function(e,r,t){var n=s;return this[n(456)]={iterator:O(e),resultName:r,nextLoc:t},"next"===this[n(432)]&&(this[n(473)]=f),m}},u}function ownKeys(t,e){var r,n=_0x5be3,a=Object[n(459)](t);return Object[n(526)]&&(r=Object[n(526)](t),e&&(r=r.filter(function(e){var r=n;return Object[r(406)](t,e)[r(504)]})),a.push[n(486)](a,r)),a}function _objectSpread(t){for(var n=_0x5be3,e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(a),!0).forEach(function(e){_defineProperty(t,e,a[e])}):Object[n(367)]?Object[n(393)](t,Object[n(367)](a)):ownKeys(Object(a))[n(391)](function(e){var r=n;Object.defineProperty(t,e,Object[r(406)](a,e))})}return t}function _defineProperty(e,r,t){var n=_0x5be3;return(r=_toPropertyKey(r))in e?Object[n(299)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function asyncGeneratorStep(e,r,t,n,a,o,i){var u=_0x5be3;try{var c=e[o](i),s=c[u(252)]}catch(e){return void t(e)}c[u(284)]?r(s):Promise[u(307)](s).then(n,a)}function _asyncToGenerator(c){return function(){var e=this,u=arguments;return new Promise(function(r,t){var n=_0x5be3,a=c[n(486)](e,u);function o(e){asyncGeneratorStep(a,r,t,o,i,n(358),e)}function i(e){asyncGeneratorStep(a,r,t,o,i,n(548),e)}o(void 0)})}}function _classCallCheck(e,r){var t=_0x5be3;if(!(e instanceof r))throw new TypeError(t(543))}function _defineProperties(e,r){for(var t=_0x5be3,n=0;n<r[t(378)];n++){var a=r[n];a[t(504)]=a.enumerable||!1,a[t(503)]=!0,t(252)in a&&(a[t(255)]=!0),Object[t(299)](e,_toPropertyKey(a[t(542)]),a)}}function _createClass(e,r,t){var n=_0x5be3;return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,n(411),{writable:!1}),e}function _toPropertyKey(e){var r=_0x5be3,e=_toPrimitive(e,r(414));return r(424)==_typeof(e)?e:e+""}function _toPrimitive(e,r){var t=_0x5be3;if(t(508)!=_typeof(e)||!e)return e;var n=e[Symbol[t(474)]];if(void 0===n)return(t(414)===r?String:Number)(e);n=n[t(253)](e,r||"default");if(t(508)!=_typeof(n))return n;throw new TypeError(t(355))}function _createForOfIteratorHelper(e,r){var t,n,a,o,i=_0x5be3,u=i(496)!=typeof Symbol&&e[Symbol[i(266)]]||e[i(251)];if(u)return a=!(n=!0),{s:function(){u=u[i(253)](e)},n:function(){var e=i,r=u[e(358)]();return n=r[e(284)],r},e:function(e){a=!0,t=e},f:function(){var e=i;try{n||null==u[e(536)]||u[e(536)]()}finally{if(a)throw t}}};if(Array[i(294)](e)||(u=_unsupportedIterableToArray(e))||r&&e&&i(300)==typeof e[i(378)])return u&&(e=u),o=0,{s:r=function(){},n:function(){return o>=e[i(378)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r};throw new TypeError(i(346))}function _unsupportedIterableToArray(e,r){var t,n=_0x5be3;if(e)return n(414)==typeof e?_arrayLikeToArray(e,r):(t={}.toString[n(253)](e).slice(8,-1),n(530)===t&&e[n(315)]&&(t=e[n(315)][n(305)]),n(250)===t||n(381)===t?Array.from(e):n(263)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(521)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x5be3;(null==r||r>e[t(378)])&&(r=e[t(378)]);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}function _typeof(e){var t=_0x5be3;return(_typeof=t(506)==typeof Symbol&&t(424)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=t;return e&&r(506)==typeof Symbol&&e[r(315)]===Symbol&&e!==Symbol[r(411)]?"symbol":typeof e})(e)}(()=>{for(var e=_0x5be3,r=_0x3b6c();;)try{if(471835==-parseInt(e(377))*(-parseInt(e(470))/2)+-parseInt(e(534))/3+-parseInt(e(379))/4+parseInt(e(383))/5+-parseInt(e(518))/6*(parseInt(e(465))/7)+parseInt(e(365))/8+-parseInt(e(527))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var lt=Object[_0x19cf7b(233)],A=Object[_0x19cf7b(299)],pt=Object[_0x19cf7b(406)],ut=Object.getOwnPropertyNames,ft=Object[_0x19cf7b(533)],dt=Object.prototype[_0x19cf7b(430)],gt=function(e,r){for(var t in r)A(e,t,{get:r[t],enumerable:!0})},z=function(t,n,a,o){var i=_0x19cf7b;if(n&&_typeof(n)==i(508)||"function"==typeof n){var u,r=_createForOfIteratorHelper(ut(n));try{for(r.s();!(u=r.n())[i(284)];)(()=>{var e=i,r=u[e(252)];dt[e(253)](t,r)||r===a||A(t,r,{get:function(){return n[r]},enumerable:!(o=pt(n,r))||o[e(504)]})})()}catch(e){r.e(e)}finally{r.f()}}return t},b=function(e,r,t){var n=_0x19cf7b;return t=null!=e?lt(ft(e)):{},z(!r&&e&&e[n(348)]?t:A(t,n(325),{value:e,enumerable:!0}),e)},mt=function(e){return z(A({},_0x19cf7b(348),{value:!0}),e)},$t={},m=(gt($t,{ASCF_LOG_FILE:function(){return wt},AscfBuilder:function(){return G},AscfDebugger:function(){return W},getLogger:function(){return v},setLoggerConfig:function(){return yt}}),module[_0x19cf7b(326)]=mt($t),b(require(_0x19cf7b(511)))),j=b(require(_0x19cf7b(426))),k=b(require(_0x19cf7b(514))),ht=[_0x19cf7b(405),_0x19cf7b(439),_0x19cf7b(282),_0x19cf7b(244),_0x19cf7b(368)],L=_0x19cf7b(525),wt=j[_0x19cf7b(307)]((0,k[_0x19cf7b(325)])(_0x19cf7b(446)),_0x19cf7b(362));function yt(e){var r=_0x19cf7b,e=bt(e);m[r(323)]({appenders:{default:{type:r(380),layout:{type:"pattern",pattern:"> ascf-toolkit %p %c %[%m%]"}},"debug-log-file":{type:r(516),filename:j[r(307)]((0,k[r(325)])(r(446)),"build.log"),maxLogSize:10485760,backups:9,layout:{type:"pattern",pattern:r(495)}}},categories:{default:{appenders:[r(325)],level:e},AscfToolkit:{appenders:[r(331)],level:r(405)}}})}function bt(e){var r=_0x19cf7b;return e&&ht.includes(e[r(494)]())?e.toLowerCase():"info"}var E=(()=>{var u=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),this[t(363)]=r},[{key:u(405),value:function(e){for(var r=u,t=m[r(442)](this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(405)].apply(t,[e][r(531)](o)),n.debug[r(486)](n,[e][r(531)](o))}},{key:u(439),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(439)][r(486)](t,[e][r(531)](o)),n[r(439)].apply(n,[e][r(531)](o))}},{key:u(282),value:function(e){for(var r=u,t=m.getLogger(this.categories),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(282)][r(486)](t,[e][r(531)](o)),n[r(282)].apply(n,[e][r(531)](o))}},{key:u(244),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t.error.apply(t,[e][r(531)](o)),n.error[r(486)](n,[e][r(531)](o))}},{key:u(368),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(368)][r(486)](t,[e][r(531)](o)),n[r(368)].apply(n,[e][r(531)](o))}}])})();function v(e){return new E(e)}function c(e){return _c[_0x19cf7b(486)](this,arguments)}function _c(){var r=_0x19cf7b;return(_c=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return e.t0=e[r(339)],e.abrupt(r(536),{data:e.t0});case 7:return e[r(462)]=7,e.t1=e.catch(0),e.abrupt(r(536),{err:e.t1});case 10:case r(479):return e[r(314)]()}},e,null,[[0,7]])})))[r(486)](this,arguments)}var X=b(require("http"));function Q(n,i){return new Promise(function(a,o){var r=_0x5be3,e=Object[r(458)]({timeout:6e3},i),t=X.default.get(n,function(e){var t=r,n="";e.on(t(302),function(e){n+=e}),e.on(t(479),function(){var r=t;try{a(JSON[r(505)](n))}catch(e){o(new Error(r(344)))}})});t[r(270)](e[r(298)],function(){var e=r;t[e(334)](),o(new Error(e(248)))}),t.on(r(244),o),t.end()})}var $=require(_0x19cf7b(498)),x=b(require("fs")),M=b(require(_0x19cf7b(453))),Y=b(require(_0x19cf7b(426))),Z=(null==(_ref=process[_0x19cf7b(445)][_0x19cf7b(228)]||process.env[_0x19cf7b(392)])?void 0:_ref.split(";")[0][_0x19cf7b(400)]())+"/../tools/",vt=Z||_0x19cf7b(535),Pt=Z||_0x19cf7b(464),Dt=process[_0x19cf7b(328)]===_0x19cf7b(343)?Pt:vt;function H(){for(var e=_0x19cf7b,r=arguments[e(378)],t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var a=process[e(445)][e(291)],a=a?a+"/../tools/":Dt,a=Y[e(279)][e(486)](Y,[a][e(531)](t));return process[e(328)]===e(343)&&a[e(361)](" ")?'"'.concat(a,'"'):a}function N(){var e=_0x19cf7b;return H(e(421),e(480),"ohpm")}function C(){return H("hvigor","bin",_0x19cf7b(384))}function tt(){return H(_0x19cf7b(351))}function O(){var e=_0x19cf7b;return H(e(409),"win32"===process[e(328)]?"hdc.exe":e(469))}var l=v(_0x19cf7b(469));function _(e,r,t,n){var a=_0x19cf7b,o=(l[a(405)]("begin runCmd",e,null==r?void 0:r[a(279)](" ")),tt()),o=(l[a(405)]("DEVECO_SDK_HOME="+o),Object[a(458)]({shell:!0,env:_objectSpread(_objectSpread({},process[a(445)]||{}),{},{DEVECO_SDK_HOME:o})},n)),n=(0,$[a(447)])(e,r,o),i=[],u=[];return n[a(380)].on(a(302),function(e){var r=a,e=e[r(372)]()[r(400)]();l[r(405)](r(438),e),i[r(317)](e)}),n.stderr.on(a(302),function(e){var r=a,e=e.toString()[r(400)]();l[r(244)](r(490),e),u.push(e)}),n.on(a(431),function(e){var r=a;0!==e?(l[r(244)](r(440)[r(531)](e)),null!=t&&t(u[r(279)]("\n"))):(e=i[r(279)]("\n"),/failed to start ability/[r(521)](e)?null!=t&&t(r(313)):(null!=t&&t(null,e),l[r(405)](r(402))))}),n}function R(e,r,t,n){return _R.apply(this,arguments)}function _R(){var e=_0x19cf7b;return(_R=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(a,o,i,u){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(398)](r(536),new Promise(function(t,n){var e=_(a,o,function(e,r){if(e)return n(e);t(r)},i);null!=u&&u(e)}));case 1:case r(479):return e.stop()}},e)})))[e(486)](this,arguments)}function w(e,r){return _w.apply(this,arguments)}function _w(){var e=_0x19cf7b;return(_w=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t,n){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(398)](r(536),R(O(),t,n));case 1:case r(479):return e[r(314)]()}},e)})))[e(486)](this,arguments)}function St(){return _St[_0x19cf7b(486)](this,arguments)}function _St(){var e=_0x19cf7b;return(_St=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(){var t;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return e[r(358)]=2,c(w([r(481),r(385)]));case 2:return t=e[r(339)],e[r(398)](r(536),t[r(538)]?(l[r(244)](r(369)+t.err),[]):null==(t=t[r(302)])||null==(t=t[r(400)]())||null==(t=t[r(309)]("\n"))?void 0:t[r(472)](function(e){return e[r(400)]()}));case 4:case"end":return e[r(314)]()}},e)})))[e(486)](this,arguments)}function xt(e){return _xt[_0x19cf7b(486)](this,arguments)}function _xt(){var e=_0x19cf7b;return(_xt=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e[r(358)]){case 0:return e[r(358)]=2,c(w(["-t",t,r(418),r(524),"get",r(354)]));case 2:return n=e[r(339)],e[r(398)](r(536),n.err||/(\[Fail\])/[r(521)](n[r(302)])?(l.error(r(335),n.err),r(397)):null==(n=n[r(302)])?void 0:n[r(400)]());case 4:case"end":return e.stop()}},e)})))[e(486)](this,arguments)}function P(e){var r,t=_0x19cf7b,e=""[t(531)](e,"\\AppScope\\app.json5");if(x.existsSync(e))return r=x[t(401)](e,t(276)),null==(r=M[t(505)](r))||null==(r=r[t(517)])?void 0:r[t(373)];throw l[t(244)](""[t(531)](e,t(435))),new Error(""[t(531)](e,t(435)))}function V(e){var r,t=_0x19cf7b,e="".concat(e,t(541));if(x[t(482)](e))return r=x[t(401)](e,"utf-8"),M.parse(r);throw l[t(244)](""[t(531)](e,t(435))),new Error(""[t(531)](e,t(435)))}function J(e,r){return _J[_0x19cf7b(486)](this,arguments)}function _J(){var e=_0x19cf7b;return(_J=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a,o,i=_0x5be3;return _regeneratorRuntime()[i(485)](function(e){for(var r=i;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(320)[r(531)](t)),a=P(t),e[r(358)]=4,c(w(["-t",n,r(418),"aa",r(318),a]));case 4:return e.next=6,c(w(["-t",n,r(418),"aa",r(275),"-a",r(304),"-b",a,r(403)]));case 6:if((o=e[r(339)])[r(538)])return l[r(244)](r(537),o[r(538)]),l.error(r(336)),e[r(398)](r(536));e.next=10;break;case 10:case r(479):return e.stop()}},e)})))[e(486)](this,arguments)}function et(e){return _et.apply(this,arguments)}function _0x3b6c(){var e=["usingTmpDir error","executing","taskkill /pid ","start install pkg under ","has","ohpmClean err","start uninstall pkg under ","filter","error","illegal catch attempt","view","cur","Request timed out","_sent","Map","@@iterator","value","call","catch","writable","[object Generator]","reverse","fport web error: ","chrome://inspect#devices","deviceId","add","nextLoc","Arguments","asyncIterator","@@asyncIterator","iterator","--parallel","DebugPortManager","options","setTimeout","Launched within ","all","handle ","killProcess error","start","utf-8","installDeps","runHdcCmdAsync","join","cpList","stopping","warn","-rf","done","__proto__","values","type","handle","fport v8 error: ","assembleHap err","ASCF_DEVECO_SDK_HOME","random","fportRmWeb","isArray","runCmdAsync","setPrototypeOf","/data/local/tmp/","timeout","defineProperty","number","ports:\n","data","tryEntries","EntryAbility","name","pid","resolve","checkBundleName","split","set","mark","setCurrent","start ability error","stop","constructor","assembleHap within ","push","force-stop","getInstance","start startAbility under ","--incremental","init AscfDebugger with options","configure","atomicservice","default","exports","handle end","platform","fport","modules","debug-log-file","installDeps err","GeneratorFunction","abort","get device name error","Start ability error","fportRm","open","sent","net","replace",'"aa dump -a | grep ',"win32","Invalid JSON","send","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","tcp:9225","__esModule","Socket","init","../sdk","127.0.0.1","status","const.product.name","@@toPrimitive must return a primitive value.","once","rval","next","getCurrent","startService","includes","build.log","categories",' | grep -v render | grep -v grep"',"5167304iMyfud","then","getOwnPropertyDescriptors","fatal","list targets error: ","_invoke","entry","toString","bundleName","tcp:","installHap","The selected Atomic Service is not running properly. Please start the Atomic Service first.","1WBlPUc","length","3020536exPftU","stdout","Set"," is used","3558225PbCmFo","hvigorw","targets","fportWeb get pid error: ","toStringTag","module","getDeviceId","cwd","forEach","DEVECO_SDK_HOME","defineProperties","send hap error","chrome://inspect/#devices","uninstall","Unknown","abrupt","afterLoc","trim","readFileSync","runCmd exited.","--ps launchMode forceUpdate","webLocalPort","debug","getOwnPropertyDescriptor","fportRmV8","getDebugees error: ","../sdk/default/openharmony/toolchains","instance","prototype","get","openBrowser error, please try later","string","localPort","AscfBuilder","del","shell","No devices found, please connet to phone","fport ls error: ","ohpm","isGeneratorFunction","module=","symbol","start hvigor clean under ","path","start installDeps under ","' method"," /T /F","hasOwnProperty","close","method","Generator is already running","hap"," is not found","splice","kill","runCmd stdout","info","runCmd exited with code ","cancelled","getLogger","port ","build\\default\\outputs\\default\\","env","ascf-cache","spawn","remotePort","Generator","srcPath","completion","__await","json5","http://localhost:","uninstall hap error","delegate","try statement without catch or finally","assign","keys","async","The iterator does not provide a '","prev","getTime","C:\\Program Files\\Huawei\\DevEco Studio\\tools","70KgNHde","suspendedYield","hvigorClean err","root","hdc","1373618QiSKSX","iterator result is not an object","map","arg","toPrimitive","pop","break","--sync","hapPath is not exists","end","bin","list","existsSync","dispose","continue","wrap","apply","getDebugUrl ","catchLoc","already has forward","runCmd stderr","start assembleHap under ","skipAscfCompile=true","v8LocalPort","toLowerCase","%d{yyyy-MM-dd hh:mm:ss.SSS} > ascf-toolkit %p %c %m","undefined","install hap error","child_process","cache","charAt","fportWeb","assembleAndInstallHap","configurable","enumerable","parse","function","round","object","openBrowser","/json","log4js","stopService","projectRoot","cachedir","tryLoc","fileSync","app","371244jNDPUa","mkdir","invalid subCmd, should be ","test","AsyncIterator","assembleHap","param","AscfToolkit","getOwnPropertySymbols","1187280nYNajg","stopView","please open url in browser: ","Object","concat","fport error: ","getPrototypeOf","200214LIjpOU","/Applications/DevEco-Studio.app/Contents/tools","return","start hap error","err","--daemon","displayName","\\build-profile.json5","key","Cannot call a class as a function","finallyLoc","getDevices","slice","start ohpm clean under ","throw","completed","startView","found devices: ","resultName","AscfDebugger","handle error","DevEco Studio","normal","needRm","complete","clean","create","handle success","fportV8"];return(_0x3b6c=function(){return e})()}function _et(){var r=_0x19cf7b;return(_et=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:return l[r(439)](r(427).concat(t)),e[r(358)]=3,c(R(N(),["update"],{chdir:!0,cwd:t}));case 3:(n=e.sent)[r(538)]&&l[r(244)](r(332),n.err);case 5:case"end":return e.stop()}},e)})))[r(486)](this,arguments)}function rt(e){return _rt[_0x19cf7b(486)](this,arguments)}function _rt(){var r=_0x19cf7b;return(_rt=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(547)[r(531)](t)),e[r(358)]=3,c(R(N(),[r(232)],{chdir:!0,cwd:t}));case 3:(n=e[r(339)])[r(538)]&&l[r(244)](r(241),n[r(538)]);case 5:case r(479):return e[r(314)]()}},e)})))[r(486)](this,arguments)}function st(e){return _st[_0x19cf7b(486)](this,arguments)}function _st(){return(_st=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n,a=_0x5be3;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(425).concat(t)),e[r(358)]=3,c(R(C(),[r(232),r(267)],{chdir:!0,cwd:t}));case 3:(n=e[r(339)])[r(538)]&&l.error(r(467),n.err);case 5:case r(479):return e[r(314)]()}},e)}))).apply(this,arguments)}function ot(e){var r=_0x19cf7b;if(e){var t=process[r(328)];try{t===r(343)?(0,$.execSync)(r(238).concat(e.pid,r(429))):"darwin"===t&&e[r(306)]?process[r(437)](e[r(306)]):e.kill()}catch(e){l[r(244)](r(274),e)}}}function _0x5be3(e,r){var t=_0x3b6c();return(_0x5be3=function(e,r){return t[e-=226]})(e,r)}var B=_createClass(function e(){_classCallCheck(this,e)}),I=(()=>{var r,e,n,t,a=_0x19cf7b;function o(){var e=_0x5be3;_classCallCheck(this,o),this.cache=new Map,this[e(247)]=null}return _createClass(o,[{key:a(545),value:(n=a,t=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(){var r,t,i,a,o=n,u=this;return _regeneratorRuntime()[o(485)](function(e){for(var n=o;;)switch(e[n(462)]=e[n(358)]){case 0:return e[n(358)]=2,c(St());case 2:if((t=e[n(339)])[n(538)]||null==t||null==(r=t[n(302)])||!r[n(378)]||/(\[Empty\])|(\[Fail\])/[n(521)](null==(r=t[n(302)])?void 0:r[n(279)]("\n")))return e[n(398)]("return",(l[n(244)]("listTargets error or no devices found"),[]));e[n(358)]=5;break;case 5:return l[n(405)](n(551),null==(r=t.data)?void 0:r[n(279)]("\n")),i=!1,e[n(358)]=9,Promise[n(272)](t.data.map((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(u[r(247)]&&u.cur.sn===t&&(i=!0),u[r(499)][r(240)](t))return e[r(398)](r(536),u[r(499)][r(412)](t));e.next=2;break;case 2:return(n=new B).sn=t,e[r(358)]=6,xt(t);case 6:return a=e[r(339)],e[r(398)]("return",(n[r(305)]=a,u[r(499)][r(310)](t,n),n));case 8:case r(479):return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 9:return a=e[n(339)],e[n(398)]("return",(i||(this[n(247)]=a[n(378)]?a[0]:null),a));case 11:case n(479):return e[n(314)]()}},e,this)})),function(){return t[n(486)](this,arguments)})},{key:"getCurrent",value:function(){return this[a(247)]}},{key:a(312),value:function(e){var r=a;e&&this[r(499)][r(240)](e)&&(e=this[r(499)][r(412)](e),this[r(247)]=e)}},{key:a(389),value:(r=a,e=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(){var t,n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(358)]=2,this[r(545)]();case 2:if(t=null==(t=this[r(359)]())?void 0:t.sn){e.next=6;break}return l.error(r(419)),e[r(398)](r(536));case 6:return e[r(398)]("return",t);case 7:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}],[{key:"getInstance",value:function(){return o[a(410)]}}])})(),g=(I.instance=new I,I),nt=b(require(_0x19cf7b(340)));function it(e){return _it.apply(this,arguments)}function _it(){var o=_0x19cf7b;return(_it=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(i){var u,r,c,t,n=o,a=arguments;return _regeneratorRuntime()[n(485)](function(e){for(var o=n;;)switch(e.prev=e[o(358)]){case 0:return t=1<a[o(378)]&&void 0!==a[1]?a[1]:{},r=t.host,u=void 0===r?o(352):r,r=t[o(298)],c=void 0===r?1e3:r,t=new Promise(function(e,r){function t(){a.destroy(),r()}var n=o,a=new nt[n(349)];a.once("error",t),a[n(356)]("timeout",t),a[n(270)](c),a.connect(i,u,function(){a[n(479)](),e(i)})}),e.prev=2,e[o(358)]=5,t;case 5:return e.abrupt(o(536),!0);case 8:return e.prev=8,e.t0=e[o(254)](2),e[o(398)]("return",!1);case 11:case o(479):return e[o(314)]()}},e,null,[[2,8]])}))).apply(this,arguments)}var D=v(_0x19cf7b(268)),S="Please check the following: 1.The device is connected to the computer. 2. The screen is on. 3. Check whether the debugging port is occupied.";function F(e){return _F.apply(this,arguments)}function _F(){var n=_0x19cf7b;return(_F=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(u){var r,s,f,t,a=n,o=arguments;return _regeneratorRuntime()[a(485)](function(e){for(var n=a;;)switch(e[n(462)]=e[n(358)]){case 0:return s=1<o[n(378)]&&void 0!==o[1]&&o[1],f=2<o.length&&void 0!==o[2]?o[2]:"",e.next=4,c(w(["-t",u,n(329),"ls"]));case 4:(t=e[n(339)]).err?(e.t0=(D[n(244)](n(420),S),[]),e[n(358)]=12):e[n(358)]=9;break;case 9:return e[n(358)]=11,Promise.all(null==(r=t[n(302)])?void 0:r.trim()[n(309)]("\n")[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o,i=r;return _regeneratorRuntime()[i(485)](function(e){for(var r=i;;)switch(e[r(462)]=e[r(358)]){case 0:if(a=t[r(309)](/\s+/),n=null==(n=a[1])?void 0:n[r(400)](),a=null==(a=a[2])?void 0:a.trim(),o=s&&n===r(374)[r(531)](f),e.t0=o,e.t0)return e[r(358)]=5,c(w(["-t",u,r(329),"rm",n,a]));e[r(358)]=5;break;case 5:return e[r(398)]("return",{localPort:n,remotePort:a,needRm:o});case 6:case r(479):return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 11:e.t0=e[n(339)][n(243)](function(e){var r=n;return e.localPort&&!e[r(230)]});case 12:return e[n(398)](n(536),e.t0);case 13:case n(479):return e[n(314)]()}},e)})))[n(486)](this,arguments)}function at(e,r,t){return _at[_0x19cf7b(486)](this,arguments)}function _at(){var t=_0x19cf7b;return(_at=_asyncToGenerator(_regeneratorRuntime()[t(311)](function e(a,o,i){var r,u,n,s=t;return _regeneratorRuntime()[s(485)](function(e){for(var t=s;;)switch(e[t(462)]=e.next){case 0:return e[t(358)]=2,F(a);case 2:return r=e[t(339)],u=!1,n=o.trim()[t(341)](t(374),""),e[t(358)]=7,Promise.all(r[t(472)]((()=>{var e=t,r=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(t[r(415)]&&t[r(448)]){e[r(358)]=2;break}return e[r(398)](r(536));case 2:if(n=!1,t[r(415)]===o&&t[r(448)]===i?u=!0:t.localPort!==o&&t[r(448)]!==i||(n=!0),e.t0=n,e.t0)return e.next=8,c(w(["-t",a,r(329),"rm",t[r(415)],t.remotePort]));e.next=8;break;case 8:case r(479):return e[r(314)]()}},e)}));return function(e){return r.apply(this,arguments)}})()));case 7:if(u)return D[t(282)](t(489)),e[t(398)](t(536));e[t(358)]=10;break;case 10:return e.next=12,it(n);case 12:if(e[t(339)])return D[t(244)](t(443)[t(531)](n,t(382))),e[t(398)]("return");e.next=15;break;case 15:return e[t(358)]=17,c(w(["-t",a,t(329),o,i]));case 17:if(e.sent.err)return D[t(244)](t(532),S),e[t(398)](t(536));e[t(358)]=20;break;case 20:case t(479):return e[t(314)]()}},e)})))[t(486)](this,arguments)}function Lt(e,r){return _Lt.apply(this,arguments)}function _Lt(){var e=_0x19cf7b;return(_Lt=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a=_0x5be3;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(358)]=2,F(t,!0,n);case 2:return e[r(398)](r(536),e[r(339)]);case 3:case r(479):return e[r(314)]()}},e)})))[e(486)](this,arguments)}var T=(()=>{var r,o,t,a,n,i,u,s,f,e=_0x19cf7b;return _createClass(function e(){var r=_0x5be3;_classCallCheck(this,e),this[r(404)]=9222,this[r(493)]=9229},[{key:"fportWeb",value:(f=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a,o,i,u=_0x5be3;return _regeneratorRuntime()[u(485)](function(e){for(var r=u;;)switch(e[r(462)]=e[r(358)]){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:if(e.t0)return e[r(398)]("return");e.next=8;break;case 8:return e[r(358)]=10,c(w(["-t",t,"shell",'"ps -ef | grep '[r(531)](n,r(364))]));case 10:if((o=e[r(339)])[r(538)]||null==(a=o[r(302)])||!a[r(378)])return D.error(r(386),S),e[r(398)](r(536));e[r(358)]=14;break;case 14:return i=null==(a=o[r(302)])||null==(a=a.trim()[r(309)]("\n"))?void 0:a[0][r(400)]().split(/\s+/)[1][r(400)](),e.next=17,c(at(t,r(374)+this[r(404)],"localabstract:webview_devtools_remote_"[r(531)](i)));case 17:if(e[r(339)][r(538)])return D[r(244)](r(258),S),e[r(398)]("return");e[r(358)]=20;break;case 20:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return f[_0x5be3(486)](this,arguments)})},{key:"fportV8",value:(u=_0x5be3,s=_asyncToGenerator(_regeneratorRuntime()[u(311)](function e(t){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]().getDeviceId();e[r(358)]=6;break;case 4:t=e.sent,e.t0=!t;case 6:if(e.t0)return e.abrupt(r(536));e[r(358)]=8;break;case 8:return e.next=10,c(at(t,r(374)+this.v8LocalPort,r(347)));case 10:if(e[r(339)][r(538)])return D[r(244)](r(289),S),e[r(398)]("return");e[r(358)]=13;break;case 13:case r(479):return e.stop()}},e,this)})),function(e){return s[u(486)](this,arguments)})},{key:e(407),value:(i=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e.prev=e[r(358)]){case 0:return e[r(358)]=2,this[r(337)](t,String(this.v8LocalPort));case 2:case r(479):return e[r(314)]()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:e(293),value:(a=e,n=_asyncToGenerator(_regeneratorRuntime()[a(311)](function e(t){var n=a;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return e[r(358)]=2,this.fportRm(t,String(this.webLocalPort));case 2:case"end":return e.stop()}},e,this)})),function(e){return n[a(486)](this,arguments)})},{key:e(337),value:(o=e,t=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(t,n){var a=o;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g.getInstance()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:if(e.t1=e.t0,e.t1){e[r(358)]=10;break}return e[r(358)]=10,Lt(t,n);case 10:case r(479):return e[r(314)]()}},e)})),function(e,r){return t[o(486)](this,arguments)})},{key:e(353),value:(r=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:e.t0?(e.t1=[],e[r(358)]=13):e[r(358)]=10;break;case 10:return e[r(358)]=12,F(t);case 12:e.t1=e.sent;case 13:return e.abrupt(r(536),e.t1);case 14:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})}],[{key:e(319),value:function(){return this[e(410)]}}])})(),y=(T[_0x19cf7b(410)]=new T,T),p=v(_0x19cf7b(226)),Ct=_0x19cf7b(376);function It(e){return _It[_0x19cf7b(486)](this,arguments)}function _It(){var e=_0x19cf7b;return(_It=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e.next){case 0:return n=[],e[r(462)]=1,e.next=4,Q(r(454)[r(531)](t,r(510)),{timeout:3e3});case 4:n=e.sent,e[r(358)]=10;break;case 7:e[r(462)]=7,e.t0=e[r(254)](1),p[r(244)](r(408),S);case 10:return e[r(398)]("return",n);case 11:case r(479):return e[r(314)]()}},e,null,[[1,7]])})))[e(486)](this,arguments)}function ct(e){return _ct[_0x19cf7b(486)](this,arguments)}function _ct(){var r=_0x19cf7b;return(_ct=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:if(t){e[r(358)]=2;break}return e[r(398)](r(536),"");case 2:return e[r(462)]=2,e.next=5,It(t);case 5:if(e.t2=n=e[r(339)],e.t1=null===e.t2,e.t1){e[r(358)]=9;break}e.t1=void 0===n;case 9:if(e.t0=e.t1,e.t0){e[r(358)]=12;break}e.t0=null==(n=n[0]);case 12:e.t0?(e.t3=void 0,e.next=17):e[r(358)]=16;break;case 16:e.t3=n.devtoolsFrontendUrl;case 17:return e[r(398)](r(536),e.t3);case 20:e[r(462)]=20,e.t4=e[r(254)](2),p[r(244)](r(487).concat(t," error"),e.t4);case 23:return e[r(398)]("return","");case 24:case"end":return e.stop()}},e,null,[[2,20]])})))[r(486)](this,arguments)}var W=(()=>{var r,t,i,n,e,a,o,u,s,f,l,h,v,_,b=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),p[t(439)](t(322),r),this[t(269)]=Object[t(458)]({open:""},r)},[{key:b(288),value:function(e){var t=b,r=this,n=(p[t(439)](t(273)[t(531)](e)),{status:function(){return r[t(353)]()},start:function(){return r[t(275)]()},stop:function(){return r.stop()},"start-view":function(){return r[t(550)]()},"start-service":function(){return r[t(360)]()},"stop-view":function(){return r.stopView()},"stop-service":function(){return r.stopService()}});n[e]?n[e]()[t(366)](function(){var e=t;return p.info(e(327))}).catch(function(e){var r=t;return p[r(244)](r(227),e)}):p[t(244)](t(520)+Object[t(459)](n)[t(279)](","))}},{key:b(353),value:(v=b,_=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){var r,t;return _regeneratorRuntime().wrap(function(e){for(var n=_0x5be3;;)switch(e[n(462)]=e.next){case 0:return p[n(439)](n(353)),r=(r=this[n(269)][n(373)])||P(process[n(390)]()),e[n(358)]=5,this[n(308)](r);case 5:if(e[n(339)]){e.next=7;break}return e.abrupt(n(536));case 7:return e[n(358)]=9,y[n(319)]().status(this.options[n(260)]);case 9:return r=e[n(339)],e[n(358)]=12,Promise[n(272)](null==r?void 0:r[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e.next){case 0:t[r(415)]!=="tcp:".concat(y[r(319)]()[r(404)])?e[r(358)]=4:(n="view",e[r(358)]=9);break;case 4:t[r(415)]!==r(374)[r(531)](y[r(319)]()[r(493)])?e[r(358)]=8:(n="service",e[r(358)]=9);break;case 8:return e.abrupt(r(536));case 9:return e[r(358)]=11,ct(t[r(415)][r(341)]("tcp:",""));case 11:return a=e[r(339)],e[r(398)](r(536),a?(n===r(246)&&(a=r(259)),""[r(531)](n," ").concat(t[r(415)]," ")[r(531)](t.remotePort,", browser url: ").concat(a)):"");case 13:case"end":return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 12:0!==(t=(t=e[n(339)]).filter(Boolean))[n(378)]&&p[n(439)](n(301)+t[n(279)]("\n"));case 14:case n(479):return e[n(314)]()}},e,this)})),function(){return _.apply(this,arguments)})},{key:b(275),value:(l=b,h=_asyncToGenerator(_regeneratorRuntime()[l(311)](function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return p.info(r(275)),e.next=3,this[r(550)]();case 3:return e[r(358)]=5,this[r(360)]();case 5:case r(479):return e.stop()}},e,this)})),function(){return h[l(486)](this,arguments)})},{key:b(314),value:(v=b,f=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return p[r(439)](r(314)),e.next=3,this[r(528)]();case 3:return e.next=5,this[r(512)]();case 5:case r(479):return e[r(314)]()}},e,this)})),function(){return f.apply(this,arguments)})},{key:b(550),value:(s=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return p.info(r(550)),t=(t=this[r(269)][r(373)])||P(process[r(390)]()),e[r(358)]=5,this[r(308)](t);case 5:if(e.t0=e[r(339)],e.t0)return e[r(358)]=9,y[r(319)]()[r(501)](this[r(269)].deviceId,t);e[r(358)]=11;break;case 9:return e[r(358)]=11,this[r(509)](y[r(319)]().webLocalPort,r(395));case 11:case r(479):return e[r(314)]()}},e,this)})),function(){return s[_0x5be3(486)](this,arguments)})},{key:"startService",value:(o=b,u=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(){var t,n=o;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return p[r(439)](r(360)),t=(t=this[r(269)][r(373)])||P(process.cwd()),e[r(358)]=5,this[r(308)](t);case 5:if(e.t0=e[r(339)],e.t0)return e[r(358)]=9,y.getInstance()[r(235)](this[r(269)].deviceId);e[r(358)]=11;break;case 9:return e.next=11,this[r(509)](y[r(319)]()[r(493)]);case 11:case"end":return e[r(314)]()}},e,this)})),function(){return u[o(486)](this,arguments)})},{key:"stopView",value:(a=_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e[r(358)]){case 0:return p[r(439)]("stopView"),e[r(358)]=3,y[r(319)]().fportRmWeb(this.options[r(260)]);case 3:case"end":return e[r(314)]()}},e,this)})),function(){return a[_0x5be3(486)](this,arguments)})},{key:b(512),value:(e=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t=_0x5be3;return _regeneratorRuntime()[t(485)](function(e){for(var r=t;;)switch(e[r(462)]=e[r(358)]){case 0:return p[r(439)](r(512)),e.next=3,y.getInstance()[r(407)](this[r(269)].deviceId);case 3:case"end":return e[r(314)]()}},e,this)})),function(){return e[_0x5be3(486)](this,arguments)})},{key:b(308),value:(i=b,n=_asyncToGenerator(_regeneratorRuntime()[i(311)](function e(t){var n,a,o=i;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(n=this.options[r(260)],e.t0=!n,e.t0)return e[r(358)]=5,g[r(319)]()[r(389)]();e.next=7;break;case 5:n=e.sent,e.t0=!n;case 7:if(e.t0)return e.abrupt("return",!1);e[r(358)]=9;break;case 9:return e[r(358)]=11,c(w(["-t",n,"shell",r(342)[r(531)](t,'"')]));case 11:return a=e[r(339)],e[r(398)](r(536),(!a[r(538)]&&a[r(302)]||p[r(244)](Ct),a[r(302)]&&!a[r(538)]));case 13:case"end":return e[r(314)]()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:b(509),value:(r=b,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r,i=arguments;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e.prev=e[r(358)]){case 0:if(n=1<i.length&&void 0!==i[1]?i[1]:"",p[r(439)](r(509)),this.options[r(338)])return e[r(358)]=4,ct(t);e[r(358)]=9;break;case 4:if(a=e[r(339)]){e[r(358)]=8;break}return p.info(r(413)),e[r(398)](r(536));case 8:n&&(a=n),p.info(r(529),a);case 9:case"end":return e[r(314)]()}},e,this)})),function(e){return t[r(486)](this,arguments)})}])})(),K=b(require("fs")),U=b(require(_0x19cf7b(426))),u=v(_0x19cf7b(416)),G=(()=>{var r,e,t,a,n,o,i,s,f,l,h,p,v,b,y,m,d,x,w=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),this[t(280)]=[],this.terminal=null,this[t(281)]=!1,this[t(269)]=Object[t(458)]({buildMode:t(405),buildTarget:t(324)},r)},[{key:"handle",value:function(e){var t=_0x5be3,r=this,n=(u[t(439)](t(273)[t(531)](e)),{start:function(){return r[t(275)]()},installDeps:function(){return r.installDeps()},assembleHap:function(){return r[t(523)]()},installHap:function(){return r[t(375)]()},assembleAndInstallHap:function(){return r[t(502)]()},uninstall:function(){return r[t(396)]()},clean:function(){return r[t(232)]()},stop:function(){return r[t(314)]()}});n[e]?n[e]().then(function(){var e=t;return u[e(439)](e(234))})[t(254)](function(e){var r=t;return u.error(r(227),e)}):u[t(244)](t(520)+Object.keys(n)[t(279)](","))}},{key:w(261),value:function(e){var r=w;this[r(280)][r(317)](e)}},{key:"del",value:function(e){var r=w,e=this[r(280)].indexOf(e);-1!==e&&this[r(280)][r(436)](e,1)}},{key:w(314),value:function(){var e=w;this[e(281)]=!0,this[e(483)]()}},{key:w(483),value:function(){for(var e=w;this.cpList[e(378)];)ot(this[e(280)].pop())}},{key:w(350),value:function(){}},{key:"runCmdAsync",value:(d=w,x=_asyncToGenerator(_regeneratorRuntime()[d(311)](function e(i,u,c){var t=d,s=this;return _regeneratorRuntime()[t(485)](function(e){for(var r=t;;)switch(e[r(462)]=e.next){case 0:return e[r(398)]("return",new Promise(function(t,n){var a,o=r;s.stopping?n(o(441)):(a=_(i,u,function(e,r){if(s[o(417)](a),e)return n(e);t(r)},c),s[o(261)](a))}));case 1:case r(479):return e.stop()}},e)})),function(e,r,t){return x[d(486)](this,arguments)})},{key:"runHdcCmdAsync",value:(y=w,m=_asyncToGenerator(_regeneratorRuntime()[y(311)](function e(t,n){var a=y;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e.prev=e[r(358)]){case 0:return e.abrupt(r(536),this[r(295)](O(),t,n));case 1:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return m[y(486)](this,arguments)})},{key:w(275),value:(v=w,b=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){var t,n,a=v;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:if(t=this[r(269)].projectRoot,u[r(439)]("start ability under "[r(531)](t)),n=this.options[r(260)],e.t0=n,e.t0){e.next=8;break}return e.next=7,g.getInstance()[r(389)]();case 7:n=e.sent;case 8:return e[r(358)]=10,c(J(t,n));case 10:case r(479):return e[r(314)]()}},e,this)})),function(){return b.apply(this,arguments)})},{key:w(277),value:(h=w,p=_asyncToGenerator(_regeneratorRuntime()[h(311)](function e(){var t,n=h;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return t=this[r(269)].projectRoot,u.info(r(427)[r(531)](t)),e.next=4,c(et(t));case 4:case"end":return e[r(314)]()}},e,this)})),function(){return p[h(486)](this,arguments)})},{key:w(523),value:(l=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var r,n,a,o,i=_0x5be3;return _regeneratorRuntime()[i(485)](function(e){for(var t=i;;)switch(e[t(462)]=e[t(358)]){case 0:return r=this[t(269)][t(513)],u[t(439)](t(491)[t(531)](r)),n=(new Date).getTime(),K[t(482)](U[t(307)](r,"oh_modules"))||this.installDeps(),e[t(358)]=6,c(this[t(295)](C(),[t(477)],{cwd:r}));case 6:return a=null==(a=V(r))||null==(a=a[t(330)])?void 0:a[t(472)](function(e){var r=t;return""[r(531)](e[r(305)],"@default")}),e[t(358)]=9,c(this[t(295)](C(),["-m",t(388),"-p",t(423).concat(null==a?void 0:a.join(",")),t(523),1<a[t(378)]?"assembleHsp":"",t(267),t(321),t(539),"-p",t(492)],{chdir:!0,cwd:r}));case 9:(a=e[t(339)])[t(538)]&&u[t(244)](t(290),a.err),o=Math[t(507)](((new Date)[t(463)]()-n)/1e3),u[t(439)](t(316)[t(531)](o," s"));case 13:case t(479):return e[t(314)]()}},e,this)})),function(){return l[_0x5be3(486)](this,arguments)})},{key:"usingTmpDir",value:(s=w,f=_asyncToGenerator(_regeneratorRuntime()[s(311)](function e(t,n){var a,o;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return a=r(297)+((new Date).getTime()+Math[r(507)](1e3*Math[r(292)]())),e[r(358)]=3,c(this.runHdcCmdAsync(["-t",t,r(418),r(519),a]));case 3:if((o=e[r(339)])[r(538)])return u[r(244)]("mkdir error",o.err),e.abrupt("return");e.next=7;break;case 7:return e.next=9,c(n(a));case 9:return(o=e[r(339)])[r(538)]&&u[r(244)](r(236),o[r(538)]),e[r(358)]=13,c(this[r(278)](["-t",t,"shell","rm",r(283),a]));case 13:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return f[s(486)](this,arguments)})},{key:"installHap",value:(o=w,i=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(){var i,r,s,n,a=o,f=this;return _regeneratorRuntime()[a(485)](function(e){for(var t=a;;)switch(e[t(462)]=e[t(358)]){case 0:if(i=this[t(269)][t(513)],u[t(439)](t(239)[t(531)](i)),r=(new Date)[t(463)](),s=this[t(269)][t(260)],e.t0=s,e.t0){e[t(358)]=8;break}return e[t(358)]=7,g[t(319)]()[t(389)]();case 7:s=e.sent;case 8:return e[t(358)]=10,c(this.usingTmpDir(s,(()=>{var n=t,r=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(a){var o,r,t=n;return _regeneratorRuntime()[t(485)](function(e){for(var n=t;;)switch(e[n(462)]=e[n(358)]){case 0:return r=null==(r=V(i))||null==(r=r[n(330)])?void 0:r[n(472)](function(e){var r=n;return U[r(307)](i,e[r(450)],r(444)[r(531)](e[r(305)],"-default-signed.")[r(531)](e[r(305)]===r(371)?r(434):"hsp"))}),o=!1,e[n(358)]=3,Promise[n(272)](null==r?void 0:r[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(K[r(482)](t)){e.next=3;break}return u[r(244)](r(478),t),o=!0,e[r(398)](r(536));case 3:return e.next=5,c(f[r(278)](["-t",s,"file",r(345),t,a]));case 5:(n=e.sent).err&&(u[r(244)](r(394),n[r(538)]),o=!0);case 7:case"end":return e.stop()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 3:if(o)return e[n(398)]("return");e[n(358)]=5;break;case 5:return e[n(358)]=7,c(f.runHdcCmdAsync(["-t",s,n(418),"bm","install","-p",a]));case 7:if((r=e[n(339)])[n(538)])return u[n(244)](n(497),r[n(538)]),e[n(398)]("return");e[n(358)]=11;break;case 11:J(i,s);case 12:case"end":return e.stop()}},e)}));return function(e){return r.apply(this,arguments)}})()));case 10:n=Math[t(507)](((new Date)[t(463)]()-r)/1e3),u[t(439)](t(271).concat(n," s"));case 12:case t(479):return e[t(314)]()}},e,this)})),function(){return i[o(486)](this,arguments)})},{key:w(502),value:(a=w,n=_asyncToGenerator(_regeneratorRuntime()[a(311)](function e(){var t,n=a;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e[r(358)]){case 0:return this[r(281)]=!1,e[r(358)]=3,g[r(319)]()[r(389)]();case 3:if(e[r(339)]){e[r(358)]=5;break}return e[r(398)](r(536));case 5:return e[r(358)]=7,c(this[r(523)]());case 7:if((t=e[r(339)])[r(538)])return u[r(244)]("assembleHap error",t[r(538)]),e[r(398)](r(536));e[r(358)]=11;break;case 11:return e[r(358)]=13,c(this[r(375)]());case 13:case r(479):return e[r(314)]()}},e,this)})),function(){return n[a(486)](this,arguments)})},{key:w(396),value:(t=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n,a,o=_0x5be3;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(t=this.options.projectRoot,u[r(439)](r(242)[r(531)](t)),n=this.options.deviceId,e.t0=n,e.t0){e[r(358)]=8;break}return e.next=7,g[r(319)]().getDeviceId();case 7:n=e[r(339)];case 8:return a=P(t),e.next=11,c(this[r(278)](["-t",n,r(396),a]));case 11:if((a=e[r(339)])[r(538)])return u[r(244)](r(455),a[r(538)]),e.abrupt(r(536));e[r(358)]=15;break;case 15:case r(479):return e.stop()}},e,this)})),function(){return t[_0x5be3(486)](this,arguments)})},{key:w(232),value:(r=w,e=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(){var t,n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return t=this[r(269)][r(513)],e[r(358)]=3,rt(t);case 3:return e[r(358)]=5,st(t);case 5:case r(479):return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x135f70=_0x1a57;function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x1a57(341))}function _iterableToArray(e){var r=_0x1a57;if(r(375)!=typeof Symbol&&null!=e[Symbol[r(335)]]||null!=e[r(376)])return Array[r(350)](e)}function _arrayWithoutHoles(e){if(Array[_0x1a57(371)](e))return _arrayLikeToArray(e)}function _0x4edf(){var e=["isArray","415572hLlNri",'import(/* webpackChunkName: "',"constructor","undefined","@@iterator","size","projectComponentsMap","resourceQuery","prototype","stringify","length","Object","isDirectory","require('","381087VRdTsH","2987220roodOI","slice","projectCfg","forEach","common","680EfEeyh","./common/appjson-validator","hasOwnProperty","next","replace","');","apply","concat","string","configs","global.usingComponents = ","./loader-utils","value","call","isIgnoreFile","app","630wsjgja","usingComponents","14483096hRFUpl","5444649mkKjdD","readdirSync","subpackages","../common/config",".js","getManifestData","toString","../common/utils","keys","parseQuery","manifestManager","values","iterator","isInjectDebugTimer","return","push","srcPath","manifest","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","global.__qaRoute = '","compJsonPath","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","const NOOP=()=>{}; setInterval(NOOP, 1000);","name","index.js\" */'./app.json?package=","ascfSrcPath","package","from","done","Set","includes","require('./","relative","endsWith","global.__globalComponents = ","get","test","join","set","exports","number","existsSync","path",".json","getProjectInfo","root","options","2610891IHuVei"];return(_0x4edf=function(){return e})()}function _createForOfIteratorHelper(e,r){var n,a,t,o,i=_0x1a57,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e[i(376)];if(s)return t=!(a=!0),{s:function(){s=s[i(317)](e)},n:function(){var e=s[i(395)]();return a=e.done,e},e:function(e){t=!0,n=e},f:function(){var e=i;try{a||null==s[e(337)]||s[e(337)]()}finally{if(t)throw n}}};if(Array[i(371)](e)||(s=_unsupportedIterableToArray(e))||r&&e&&i(363)==typeof e[i(382)])return s&&(e=s),o=0,{s:r=function(){},n:function(){return o>=e[i(382)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r};throw new TypeError(i(344))}function _unsupportedIterableToArray(e,r){var n,a=_0x1a57;if(e)return a(312)==typeof e?_arrayLikeToArray(e,r):(n={}[a(329)][a(317)](e)[a(388)](8,-1),"Map"===(n=a(383)===n&&e[a(374)]?e[a(374)][a(346)]:n)||a(352)===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[a(359)](n)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x1a57(382)])&&(r=e.length);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}(()=>{for(var e=_0x1a57,r=_0x4edf();;)try{if(508272==-parseInt(e(386))+parseInt(e(372))/2+-parseInt(e(370))/3+-parseInt(e(392))/4*(-parseInt(e(320))/5)+parseInt(e(387))/6+-parseInt(e(323))/7+parseInt(e(322))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var loaderUtils=require(_0x135f70(315)),checkAppJson=require(_0x135f70(393)),_require=require(_0x135f70(365)),relative=_require.relative,fs=require("fs"),path=require(_0x135f70(365)),_require2=require(_0x135f70(330)),getProjectInfo=_require2[_0x135f70(367)],packOptions=require("./common/packoptions-utils"),_require3=require(_0x135f70(326)),configs=_require3[_0x135f70(313)],_require4=require("../ascf-compiler/common/manifest-manager"),manifestManager=_require4[_0x135f70(333)],hasCheckAppJson=!1,usedComponent=[],asyncComponentMap=new Map;function generateIgnoreRule(e){var r;return(r=e?packOptions.parseIgnoreRules(e):r)||{}}function getComponents(e){var n=_0x135f70,a=1<arguments[n(382)]&&void 0!==arguments[1]?arguments[1]:[],t=[];return null!=e&&e[n(390)](function(e){var r=n;a[r(353)](e.path)||t[r(338)](e[r(365)])}),JSON[n(381)](t)}function _0x1a57(e,r){var n=_0x4edf();return(_0x1a57=function(e,r){return n[e-=310]})(e,r)}function appProcess(n,e,r,a){var t=_0x135f70;configs[t(336)]()&&n.push(t(345)),n[t(338)](t(357)[t(311)](JSON[t(381)](e),";")),n[t(338)](t(342)[t(311)](a,"';")),Object[t(331)](r)[t(390)](function(e){var r=t;e===r(319)?n[r(338)]("require('./app.js');"):n[r(338)](r(373)[r(311)](e[r(356)]("/")?e:""[r(311)](e,"/"),r(347))[r(311)](e,r(397)))})}function appJsonLoader(e){var o=_0x135f70,r=(hasCheckAppJson=hasCheckAppJson||checkAppJson(this),(null==(r=loaderUtils[o(332)](this[o(379)])[o(358)](o(349)))?void 0:r[o(396)](/\\/g,"/"))||""),n=manifestManager[o(328)](),a=n[o(378)],n=n[o(340)],i=this[o(369)][o(339)],s=Object[o(334)](n[o(321)]||{}),p=[],t=("app"===r&&appProcess(p,s,a,r),a[r]||a[""[o(311)](r,"/")]);return t&&0<t[o(377)]&&t[o(390)](function(e,r){var n=o,a=e.componentList,t=e[n(343)];e[n(391)]||(e="./"+relative(i,t)[n(396)](/\\/g,"/"),t=getComponents(a,s),a=e.replace(/\.json$/g,".js"),p[n(338)](n(342)[n(311)](r,"';")),p[n(338)](n(314)[n(311)](t,";")),p.push(n(385)[n(311)](a,n(397))))}),asyncProcess(r,n,a,s,p),p[o(360)]("\r\n")}function asyncProcess(e,r,n,a,t){var o=_0x135f70,r=r[o(325)];e!==o(319)?handleCommonSubpackageJS(n,a):handleMainPackageJS(r,t),asyncPackageHandler(r,e,t)}function handleMainPackageJS(e,r){var n=_0x135f70,a=getProjectInfo(),t=[];null!=e&&e[n(390)](function(e){var r=n,e=path.join(a[r(348)],e.root)[r(396)](/\\/g,"/");e[r(356)]("/")&&(e=e.slice(0,e[r(382)]-1)),t[r(338)](e)}),traverseMainJS(a[n(348)],t,r)}function traverseMainJS(e,r,n){var a=_0x135f70,t=getProjectInfo(),o=generateIgnoreRule(t[a(389)]);e=e[a(396)](/\\/g,"/");var i,s=_createForOfIteratorHelper(fs[a(324)](e,{withFileTypes:!0}));try{for(s.s();!(i=s.n())[a(351)];){var p,c,u=i[a(316)],f=e+"/"+u[a(346)];u[a(384)]()&&!r[a(353)](f)?traverseMainJS(f,r,n):(p=f[a(396)](/\.js$/g,a(366)),!f[a(356)](a(327))||fs[a(364)](p)||packOptions.isIgnoreFile(path.relative(t[a(348)],f),o)||(c=path[a(355)](t[a(348)],f)[a(396)](/\\/g,"/"),n[a(338)]("require('./"[a(311)](c,a(397)))))}}catch(e){s.e(e)}finally{s.f()}}function asyncPackageHandler(e,a,t){var o=_0x135f70;"app"!==a&&null!=e&&e[o(390)](function(e){var r,n=o;e[n(368)]===a&&e.common&&(r=[],traverseFiles(path.resolve(getProjectInfo()[n(348)],e.root).replace(/\\/g,"/"),r,e[n(368)]),t[n(338)][n(310)](t,r))})}function traverseFiles(e,r,n){var a,t=_0x135f70,o=getProjectInfo(),i=generateIgnoreRule(o[t(389)]),s=_createForOfIteratorHelper(fs.readdirSync(e,{withFileTypes:!0}));try{for(s.s();!(a=s.n())[t(351)];){var p,c,u,f=a[t(316)],l=e+"/"+f.name;f[t(384)]()?traverseFiles(l,r,n+"/"+f.name):!(p=path[t(355)](o[t(348)],l).replace(/\\/g,"/"))[t(356)](t(327))||usedComponent[t(353)](l)||packOptions[t(318)](path.relative(o[t(348)],l),i)||(c=l[t(396)](/\.js$/g,t(366)),fs[t(364)](c)?(u=asyncComponentMap[t(358)](c),r.push[t(310)](r,_toConsumableArray(u||[])),r.push(t(354)[t(311)](p,"');"))):r[t(338)](t(354)[t(311)](p,t(397))))}}catch(e){s.e(e)}finally{s.f()}}function handleCommonSubpackageJS(e,o){var r,n,i=_0x135f70;for(r in e)Object[i(380)][i(394)][i(317)](e,r)&&0<(n=e[r])[i(377)]&&n[i(390)](function(e,r){var n=i,a=e.componentList,t=e[n(343)];e[n(391)]?(e=getComponents(a,o),(a=[])[n(338)](n(342)[n(311)](r,"';")),a[n(338)](n(314)[n(311)](e,";")),asyncComponentMap[n(361)](t,a)):(r=t.replace(/\.json$/g,n(327))[n(396)](/\\/g,"/"),usedComponent.push(r))})}module[_0x135f70(362)]=appJsonLoader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3153c4=_0x56d0;function _0x56d0(e,t){var r=_0x3b0c();return(_0x56d0=function(e,t){return r[e-=230]})(e,t)}function _typeof(e){var r=_0x56d0;return(_typeof="function"==typeof Symbol&&r(232)==typeof Symbol[r(261)]?function(e){return typeof e}:function(e){var t=r;return e&&t(290)==typeof Symbol&&e[t(325)]===Symbol&&e!==Symbol.prototype?t(232):typeof e})(e)}function _0x3b0c(){var e=["60zpDzPP","resourcePath","concat"," \n ","booleans","237574ryskcv","all","custom","white","' is a character string, which should be an integer instead.","8VFadtc","toString"," is too early, ","function","' is not a sub-attribute of tabBar.","length","icon","top","join","boolean","' value '","forEach","manifest","number","' is invalid","permissionObject","ERROR: app.json does not contain configuration item '","integer","objArr","isEmptyObject","false","ERROR: Can not resolve file :","value '","plugins","string","dark","indexOf","log","auto","type","11424690wejswp","./utils","existsSync","WARNING","' color value '","default","967928Tkjwwj","includes","constructor","NOTE","HexColor","the attribute value type must be boolean","bind","345720RgVbRc","light","def","symbol","splice","isArray","10TZnIeQ","path","' contains: \n ","ERROR: The platform version number of ","9765918DbBguR","portrait","required","5203814rHjLPY","' is not a configuration item of ","the attribute value must in [","519220Fmqtvg","ERROR: Attribute '","black","window","strArr"," Attribute '","#ffffff","replace","enum",'" field in the app.json file >= 1069.',"' is invalid, ","ERROR","WARNING: app.json configuration item '","require",": configuration item '","bottom","iterator","preloadRule","push","' is invalid.","#000000","options","networkTimeout","stringify","keys","value","trim","match","reason","ERROR: app.json configuration item '","exports","true"];return(_0x3b0c=function(){return e})()}(()=>{for(var e=_0x56d0,t=_0x3b0c();;)try{if(646094==-parseInt(e(282))*(parseInt(e(235))/2)+parseInt(e(330))/3*(parseInt(e(287))/4)+-parseInt(e(245))/5*(-parseInt(e(277))/6)+parseInt(e(242))/7+-parseInt(e(323))/8+parseInt(e(239))/9+-parseInt(e(317))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require(_0x3153c4(318)),fs=require("fs"),path=require(_0x3153c4(236)),logTypes=[_0x3153c4(326),_0x3153c4(320),_0x3153c4(256)],REGEXP_INT=/^[0-9]+$/,REGEXP_COLOR_LONG=/^#[0-9a-fA-F]{6}$/,REGEXP_COLOR_SHORT=/^#[0-9a-fA-F]{3}$/,REGEXP_PACKAGE_NAME=/^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)+$/,validator={enum:function(a,e){var n=_0x3153c4;return 0<=a.indexOf(e[n(288)]())?{value:e}:{value:null,reason:function(e,t){var r=n;return r(246)[r(279)](e,r(297))[r(279)](t,"' is invalid, ")+r(244)[r(279)](a,"]")}}},booleans:function(e){return"boolean"==typeof e?{value:e}:{value:null,reason:function(e,t){var r=_0x56d0;return"ERROR: Attribute '".concat(e,r(297))[r(279)](t,r(255))+r(328)}}},packageName:function(e){var a=_0x3153c4;return(e||"")[a(288)]()[a(271)]()[a(272)](REGEXP_PACKAGE_NAME)?{value:!0}:{value:!1,reason:function(e,t){var r=a;return r(274)[r(279)](e,r(297))[r(279)](t,r(264))}}},integer:function(e){var a=_0x3153c4;return a(311)===typeof e?e[a(272)](REGEXP_INT)?{value:!0,reason:function(e,t){var r=a;return r(257)[r(279)](e,"' ")+r(309)[r(279)](t,r(286))}}:{value:!1,reason:function(e,t){var r=a;return r(274)[r(279)](e,r(297)).concat(t,r(264))}}:(e=(e||"")[a(288)]())[a(272)](REGEXP_INT)?{value:!0}:{value:!1,reason:function(e,t){var r=a;return r(274)[r(279)](e,r(297))[r(279)](t,r(264))}}},strArr:function(e){var a=_0x3153c4;return Array[a(234)](e)?{value:e}:{value:!1,reason:function(e,t){var r=a;return r(246)[r(279)](e,r(297))[r(279)](t,r(301))}}},window:function(e){return windowAndNetworkTimeOut(e,windowValidatorMap,"window")},tabBar:function(o){var i,r,u,l,c,d=_0x3153c4;return"object"!==_typeof(o)?{value:!1,reason:function(e){return"ERROR: Attribute '".concat(e,"' value is invalid.")}}:(i=[],r=[],Object.keys(tabBarValidatorMap)[d(298)](function(e){var t=d;tabBarValidatorMap[e][t(258)]&&i.push(e),tabBarValidatorMap[e].def&&r[t(263)](tabBarValidatorMap[e][t(231)])}),u={},l=[],c=0,Object.keys(o)[d(298)](function(e){var t,r,a,n=d;void 0!==tabBarValidatorMap[e]?(-1!==i[n(313)](e)&&(t=i[n(313)](e),i[n(233)](t,1)),t=tabBarValidatorMap[e][n(316)],n(290)===typeof t&&(t=t(o[e]),n(300)!==typeof t[n(270)]&&"string"!=typeof t[n(270)]||(u[e]=t[n(270)]),t[n(273)])&&((r=(t=t[n(273)](e,o[e]))[n(272)](/^([A-Z]+):/))&&(a=logTypes.indexOf(r[1]),c<a&&(c=a),t=t[n(252)](r[0],"")),l[n(263)](t))):(c=1,l[n(263)](" Attribute '"[n(279)](e,n(291))))}),0<i[d(292)]&&(c=2,l[d(263)](" The mandatory sub-attribute is missing: "[d(279)](i[d(295)](", ")))),{value:utils[d(306)](u)?null:JSON[d(268)](u),reason:0<l[d(292)]?function(e){var t=d;return""[t(279)](logTypes[c],t(259))[t(279)](e,t(237))+""[t(279)](l.join(t(280)))}:null})},networkTimeout:function(e){return windowAndNetworkTimeOut(e,networkTimeoutValidatorMap,"networkTimeout")},objArr:function(e){return{value:e}},string:function(e){return{value:e}},Object:function(e){return{value:e}},plugins:function(e){return{value:e}},preloadRule:function(e){return{value:e}},permission:function(e){return{value:e}},permissionObject:function(e){return{value:e}},HexColor:function(e){var a=_0x3153c4;return(e=(e||"")[a(288)]())[a(272)](REGEXP_COLOR_LONG)||e.match(REGEXP_COLOR_SHORT)?{value:e}:{value:null,reason:function(e,t){var r=a;return"ERROR: Attribute '"[r(279)](e,r(321))[r(279)](t,"' is invalid.'")}}},number:function(e){var a=_0x3153c4;return a(311)===typeof e?e.match(REGEXP_INT)?{value:Number(e),reason:function(e,t){var r=a;return r(257)[r(279)](e,"' ")+r(309)[r(279)](t,"' is a character string, which should be an integer instead.")}}:{value:!1,reason:function(e,t){var r=a;return r(274)[r(279)](e,r(297))[r(279)](t,r(301))}}:(e=(e||"")[a(288)]())[a(272)](REGEXP_INT)?{value:e}:{value:!1,reason:function(e,t){var r=a;return"ERROR: app.json configuration item '"[r(279)](e,r(297))[r(279)](t,r(264))}}},minPlatformVersion:function(e){var a=_0x3153c4,t=validator[a(304)](e);return t.value?e<1069?{value:!1,reason:function(e,t){var r=a;return r(238)[r(279)](t,r(289))+'please change "'[r(279)](e,r(254))}}:{value:!0}:t}},validatorMap={window:{type:validator[_0x3153c4(248)],required:!1},tabBar:{type:validator.tabBar,required:!1},networkTimeout:{type:validator[_0x3153c4(267)],required:!1},functionalPages:{type:makeEnumValidator([_0x3153c4(307),_0x3153c4(276)]),required:!1},subpackages:{type:validator[_0x3153c4(305)],required:!1},subPackages:{type:validator[_0x3153c4(305)],required:!1},workers:{type:validator[_0x3153c4(311)],required:!1},requiredBackgroundModes:{type:validator[_0x3153c4(249)],required:!1},plugins:{type:validator[_0x3153c4(310)],required:!1},preloadRule:{type:validator[_0x3153c4(262)],required:!1},resizable:{type:makeEnumValidator([_0x3153c4(307),_0x3153c4(276)]),required:!1},navigateToMiniProgramAppIdList:{type:validator[_0x3153c4(249)],required:!1},usingComponents:{type:validator.Object,required:!1},permission:{type:validator.permission,required:!1},sitemapLocation:{type:validator[_0x3153c4(311)],required:!1},style:{type:validator[_0x3153c4(311)],required:!1}},windowValidatorMap={navigationBarBackgroundColor:{type:validator[_0x3153c4(327)],def:_0x3153c4(265)},navigationBarTextStyle:{type:makeEnumValidator(["white",_0x3153c4(247)]),def:_0x3153c4(285)},navigationBarTitleText:{type:validator[_0x3153c4(311)]},navigationStyle:{type:makeEnumValidator([_0x3153c4(322),_0x3153c4(284)]),def:_0x3153c4(322)},backgroundColor:{type:validator[_0x3153c4(327)],def:_0x3153c4(251)},backgroundTextStyle:{type:makeEnumValidator([_0x3153c4(312),_0x3153c4(230)]),def:_0x3153c4(312)},backgroundColorTop:{type:validator.string,def:_0x3153c4(251)},backgroundColorBottom:{type:validator[_0x3153c4(311)],def:_0x3153c4(251)},enablePullDownRefresh:{type:makeEnumValidator(["false",_0x3153c4(276)]),def:_0x3153c4(307)},onReachBottomDistance:{type:validator[_0x3153c4(300)],def:50},pageOrientation:{type:makeEnumValidator([_0x3153c4(240),_0x3153c4(315),"landscape"]),def:_0x3153c4(240)}},tabBarValidatorMap={color:{type:validator[_0x3153c4(327)],required:!0},selectedColor:{type:validator[_0x3153c4(327)],required:!0},backgroundColor:{type:validator[_0x3153c4(327)],required:!0},borderStyle:{type:makeEnumValidator([_0x3153c4(247),"white"]),required:!1,def:_0x3153c4(247)},list:{type:validator.array,required:!0},position:{type:makeEnumValidator([_0x3153c4(260),_0x3153c4(294)]),required:!1,def:_0x3153c4(260)},custom:{type:makeBooleanValidator(),required:!1,def:_0x3153c4(307)}},networkTimeoutValidatorMap={request:{type:validator[_0x3153c4(300)],required:!1,def:6e4},connectSocket:{type:validator[_0x3153c4(300)],required:!1,def:6e4},uploadFile:{type:validator[_0x3153c4(300)],required:!1,def:6e4},downloadFile:{type:validator.number,required:!1,def:6e4}},preloadRuleValidatorMap={packages:{type:validator[_0x3153c4(249)],required:!0},network:{type:makeEnumValidator(["wifi",_0x3153c4(283)]),required:!1,def:"wifi"}},permissionValidatorMap={"scope.userLocation":{type:validator[_0x3153c4(302)],required:!0}},requireAttrMap=[];function validate(e,t){var r=_0x3153c4,a=void 0,n=void 0,o=validatorMap[e];return o&&"function"==typeof o.type?(a=o[r(316)](t))[r(273)]&&(n={reason:a.reason(e,t)}):a={value:!0},{value:a.value,log:n}}function windowAndNetworkTimeOut(o,i,u){var l,c,d,p=_0x3153c4;return"{}"===JSON[p(268)](o)?{value:!0}:(l={},c=[],d=0,Object[p(269)](o)[p(298)](function(e){var t,r,a=p,n=i[e]&&i[e].type;"function"==typeof n?(n=n(o[e]),a(300)!==typeof n[a(270)]&&a(311)!==typeof n[a(270)]&&a(296)!==typeof n[a(270)]||(l[e]=n.value),n[a(273)]&&((t=(n=n.reason(e,o[e]))[a(272)](/^([A-Z]+):/))&&(r=logTypes[a(313)](t[1]),d<r&&(d=r),n=n[a(252)](t[0],"")),c[a(263)](n))):(d=1,c[a(263)](a(250).concat(e,a(243)).concat(u,".")))}),{value:utils.isEmptyObject(l)?null:JSON[p(268)](l),reason:0<c[p(292)]?function(e){var t=p;return"".concat(logTypes[d],": configuration item '").concat(e,t(237))+""[t(279)](c.join(t(280)))}:null})}function makeEnumValidator(e){var t=_0x3153c4;return validator[t(253)][t(329)](null,e)}function makeBooleanValidator(){return validator[_0x3153c4(281)].bind(null)}function getComponents(e){var r=_0x3153c4,a=1<arguments[r(292)]&&void 0!==arguments[1]?arguments[1]:[],n=[];return e[r(298)](function(e){var t=r;a[t(324)](e[t(236)])||n.push(e.path)}),JSON[r(268)](n)}(()=>{var r=_0x3153c4;Object[r(269)](validatorMap)[r(298)](function(e){var t=r;validatorMap[e][t(241)]&&requireAttrMap[t(263)](e)})})(),module[_0x3153c4(275)]=function(e){var r,a,t,n,o=_0x3153c4,i=e[o(266)][o(299)];return i&&(r=e[o(278)],a=[],requireAttrMap[o(298)](function(e){var t=o;i[e]||a[t(263)]({reason:t(303)[t(279)](e,"'"),filePath:r})}),t=i[o(293)],n=void(utils.isExp(t)||!t||fs[o(319)](path[o(295)](r,"..",t[o(271)]()))||a[o(263)]({reason:o(308)[o(279)](t),filePath:r})),Object[o(269)](i)[o(298)](function(e){var t=o;(n=validate(e,i[e]))[t(314)]&&a[t(263)]({reason:n[t(314)][t(273)],filePath:r})}),utils.logWarn(e,a)),!0};
|
|
1
|
+
var _0x4df006=_0x18ad;function _typeof(e){var r=_0x18ad;return(_typeof=r(187)==typeof Symbol&&r(128)==typeof Symbol[r(165)]?function(e){return typeof e}:function(e){var a=r;return e&&a(187)==typeof Symbol&&e[a(192)]===Symbol&&e!==Symbol.prototype?a(128):typeof e})(e)}(()=>{for(var e=_0x18ad,a=_0x5a25();;)try{if(545041==-parseInt(e(139))*(parseInt(e(149))/2)+parseInt(e(138))/3+-parseInt(e(126))/4*(-parseInt(e(206))/5)+-parseInt(e(209))/6*(parseInt(e(154))/7)+parseInt(e(213))/8+parseInt(e(184))/9+-parseInt(e(121))/10)break;a.push(a.shift())}catch(e){a.push(a.shift())}})();var utils=require(_0x4df006(214)),fs=require("fs"),path=require("path"),logTypes=[_0x4df006(158),"WARNING",_0x4df006(169)],REGEXP_INT=/^[0-9]+$/,REGEXP_COLOR_LONG=/^#[0-9a-fA-F]{6}$/,REGEXP_COLOR_SHORT=/^#[0-9a-fA-F]{3}$/,REGEXP_PACKAGE_NAME=/^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)+$/,validator={enum:function(t,e){var n=_0x4df006;return 0<=t.indexOf(e[n(194)]())?{value:e}:{value:null,reason:function(e,a){var r=n;return"ERROR: Attribute '"[r(131)](e,r(193)).concat(a,r(202))+r(173)[r(131)](t,"]")}}},booleans:function(e){var t=_0x4df006;return typeof e===t(144)?{value:e}:{value:null,reason:function(e,a){var r=t;return r(180).concat(e,r(193))[r(131)](a,r(202))+r(129)}}},packageName:function(e){var r=_0x4df006;return(e||"")[r(194)]()[r(189)]()[r(167)](REGEXP_PACKAGE_NAME)?{value:!0}:{value:!1,reason:function(e,a){return r(132).concat(e,"' value '").concat(a,"' is invalid.")}}},integer:function(e){var t=_0x4df006;return t(182)===typeof e?e[t(167)](REGEXP_INT)?{value:!0,reason:function(e,a){var r=t;return r(151)[r(131)](e,"' ")+r(170).concat(a,r(143))}}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193))[r(131)](a,r(122))}}:(e=(e||"").toString()).match(REGEXP_INT)?{value:!0}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193))[r(131)](a,"' is invalid.")}}},strArr:function(e){var t=_0x4df006;return Array[t(155)](e)?{value:e}:{value:!1,reason:function(e,a){var r=t;return r(180).concat(e,r(193))[r(131)](a,r(133))}}},window:function(e){return windowAndNetworkTimeOut(e,windowValidatorMap,_0x4df006(164))},tabBar:function(o){var i,r,u,d,l,f=_0x4df006;return f(178)!==_typeof(o)?{value:!1,reason:function(e){var a=f;return a(180).concat(e,a(199))}}:(i=[],r=[],Object[f(223)](tabBarValidatorMap)[f(220)](function(e){var a=f;tabBarValidatorMap[e][a(198)]&&i[a(174)](e),tabBarValidatorMap[e][a(168)]&&r[a(174)](tabBarValidatorMap[e][a(168)])}),u={},d=[],l=0,Object.keys(o)[f(220)](function(e){var a,r,t,n=f;typeof tabBarValidatorMap[e]!==n(153)?(-1!==i.indexOf(e)&&(a=i[n(185)](e),i[n(215)](a,1)),"function"==typeof(a=tabBarValidatorMap[e][n(175)])&&(a=a(o[e]),n(135)!==typeof a[n(147)]&&n(182)!==typeof a.value||(u[e]=a[n(147)]),a[n(120)])&&((r=(a=a[n(120)](e,o[e]))[n(167)](/^([A-Z]+):/))&&(t=logTypes[n(185)](r[1]),l<t&&(l=t),a=a[n(166)](r[0],"")),d[n(174)](a))):(l=1,d[n(174)](n(222)[n(131)](e,n(204))))}),0<i.length&&(l=2,d.push(f(197)[f(131)](i[f(176)](", ")))),{value:utils[f(219)](u)?null:JSON[f(140)](u),reason:0<d[f(186)]?function(e){var a=f;return"".concat(logTypes[l],a(221))[a(131)](e,a(177))+"".concat(d[a(176)](" \n "))}:null})},networkTimeout:function(e){return windowAndNetworkTimeOut(e,networkTimeoutValidatorMap,_0x4df006(148))},objArr:function(e){return{value:e}},string:function(e){return{value:e}},Object:function(e){return{value:e}},plugins:function(e){return{value:e}},preloadRule:function(e){return{value:e}},permission:function(e){return{value:e}},permissionObject:function(e){return{value:e}},HexColor:function(e){var t=_0x4df006;return(e=(e||"").toString())[t(167)](REGEXP_COLOR_LONG)||e[t(167)](REGEXP_COLOR_SHORT)?{value:e}:{value:null,reason:function(e,a){var r=t;return"ERROR: Attribute '"[r(131)](e,r(211))[r(131)](a,"' is invalid.'")}}},number:function(e){var t=_0x4df006;return t(182)===typeof e?e[t(167)](REGEXP_INT)?{value:Number(e),reason:function(e,a){var r=t;return r(151)[r(131)](e,"' ")+r(170)[r(131)](a,r(143))}}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193)).concat(a,r(133))}}:(e=(e||"").toString()).match(REGEXP_INT)?{value:e}:{value:!1,reason:function(e,a){var r=t;return"ERROR: app.json configuration item '"[r(131)](e,r(193))[r(131)](a,r(122))}}},minPlatformVersion:function(e){var t=_0x4df006,a=validator[t(124)](e);return a[t(147)]?e<1069?{value:!1,reason:function(e,a){var r=t;return r(123)[r(131)](a,r(142))+r(136)[r(131)](e,'" field in the app.json file >= 1069.')}}:{value:!0}:a}},validatorMap={window:{type:validator.window,required:!1},tabBar:{type:validator[_0x4df006(157)],required:!1},networkTimeout:{type:validator[_0x4df006(148)],required:!1},functionalPages:{type:makeEnumValidator(["false",_0x4df006(208)]),required:!1},subpackages:{type:validator[_0x4df006(218)],required:!1},subPackages:{type:validator[_0x4df006(218)],required:!1},workers:{type:validator[_0x4df006(182)],required:!1},requiredBackgroundModes:{type:validator.strArr,required:!1},plugins:{type:validator.plugins,required:!1},preloadRule:{type:validator.preloadRule,required:!1},resizable:{type:makeEnumValidator([_0x4df006(162),_0x4df006(208)]),required:!1},navigateToMiniProgramAppIdList:{type:validator[_0x4df006(152)],required:!1},usingComponents:{type:validator[_0x4df006(191)],required:!1},permission:{type:validator[_0x4df006(146)],required:!1},sitemapLocation:{type:validator[_0x4df006(182)],required:!1},style:{type:validator[_0x4df006(182)],required:!1}},windowValidatorMap={navigationBarBackgroundColor:{type:validator.HexColor,def:_0x4df006(200)},navigationBarTextStyle:{type:makeEnumValidator([_0x4df006(145),_0x4df006(172)]),def:_0x4df006(145)},navigationBarTitleText:{type:validator[_0x4df006(182)]},navigationStyle:{type:makeEnumValidator([_0x4df006(163),_0x4df006(203)]),def:_0x4df006(163)},backgroundColor:{type:validator[_0x4df006(161)],def:_0x4df006(130)},backgroundTextStyle:{type:makeEnumValidator([_0x4df006(183),_0x4df006(207)]),def:"dark"},backgroundColorTop:{type:validator[_0x4df006(182)],def:"#ffffff"},backgroundColorBottom:{type:validator.string,def:_0x4df006(130)},enablePullDownRefresh:{type:makeEnumValidator([_0x4df006(162),_0x4df006(208)]),def:_0x4df006(162)},onReachBottomDistance:{type:validator[_0x4df006(135)],def:50},pageOrientation:{type:makeEnumValidator([_0x4df006(196),_0x4df006(134),_0x4df006(141)]),def:_0x4df006(196)}},tabBarValidatorMap={color:{type:validator[_0x4df006(161)],required:!0},selectedColor:{type:validator.HexColor,required:!0},backgroundColor:{type:validator.HexColor,required:!0},borderStyle:{type:makeEnumValidator([_0x4df006(172),"white"]),required:!1,def:_0x4df006(172)},list:{type:validator.array,required:!0},position:{type:makeEnumValidator([_0x4df006(216),_0x4df006(212)]),required:!1,def:"bottom"},custom:{type:makeBooleanValidator(),required:!1,def:_0x4df006(162)}},networkTimeoutValidatorMap={request:{type:validator[_0x4df006(135)],required:!1,def:6e4},connectSocket:{type:validator[_0x4df006(135)],required:!1,def:6e4},uploadFile:{type:validator[_0x4df006(135)],required:!1,def:6e4},downloadFile:{type:validator[_0x4df006(135)],required:!1,def:6e4}},preloadRuleValidatorMap={packages:{type:validator[_0x4df006(152)],required:!0},network:{type:makeEnumValidator([_0x4df006(195),_0x4df006(205)]),required:!1,def:"wifi"}},permissionValidatorMap={"scope.userLocation":{type:validator.permissionObject,required:!0}},requireAttrMap=[];function validate(e,a){var r=_0x4df006,t=void 0,n=void 0,o=validatorMap[e];return o&&r(187)===typeof o[r(175)]?(t=o.type(a))[r(120)]&&(n={reason:t.reason(e,a)}):t={value:!0},{value:t[r(147)],log:n}}function _0x18ad(e,a){var r=_0x5a25();return(_0x18ad=function(e,a){return r[e-=119]})(e,a)}function _0x5a25(){var e=["209079izbdhQ","indexOf","length","function","existsSync","trim","manifestData","Object","constructor","' value '","toString","wifi","portrait"," The mandatory sub-attribute is missing: ","require","' value is invalid.","#000000","options","' is invalid, ","custom","' is not a sub-attribute of tabBar.","all","165140qrSXPR","light","true","30ixJKsQ","includes","' color value '","top","803608bXhihG","./utils","splice","bottom","path","objArr","isEmptyObject","forEach",": configuration item '"," Attribute '","keys","ERROR: Can not resolve file :","reason","4146530TKQxal","' is invalid.","ERROR: The platform version number of ","integer","required","52woaxqN","log","symbol","the attribute value type must be boolean","#ffffff","concat","ERROR: app.json configuration item '","' is invalid","auto","number",'please change "',"enum","2449245KvaWPf","149rMYgKr","stringify","landscape"," is too early, ","' is a character string, which should be an integer instead.","boolean","white","permission","value","networkTimeout","26dqwbQQ","booleans","WARNING: app.json configuration item '","strArr","undefined","570962CbFLCs","isArray","logWarn","tabBar","NOTE","resourcePath"," \n ","HexColor","false","default","window","iterator","replace","match","def","ERROR","value '","bind","black","the attribute value must in [","push","type","join","' contains: \n ","object","ERROR: app.json does not contain configuration item '","ERROR: Attribute '","icon","string","dark"];return(_0x5a25=function(){return e})()}function windowAndNetworkTimeOut(o,i,u){var d,l,f,p=_0x4df006;return"{}"===JSON.stringify(o)?{value:!0}:(d={},l=[],f=0,Object[p(223)](o)[p(220)](function(e){var a,r,t=p,n=i[e]&&i[e][t(175)];t(187)===typeof n?("number"!=typeof(n=n(o[e]))[t(147)]&&t(182)!==typeof n[t(147)]&&t(144)!==typeof n[t(147)]||(d[e]=n.value),n.reason&&((a=(n=n[t(120)](e,o[e]))[t(167)](/^([A-Z]+):/))&&(r=logTypes[t(185)](a[1]),f<r&&(f=r),n=n.replace(a[0],"")),l[t(174)](n))):(f=1,l.push(t(222)[t(131)](e,"' is not a configuration item of ")[t(131)](u,".")))}),{value:utils[p(219)](d)?null:JSON.stringify(d),reason:0<l[p(186)]?function(e){var a=p;return""[a(131)](logTypes[f],": configuration item '")[a(131)](e,a(177))+""[a(131)](l[a(176)](a(160)))}:null})}function makeEnumValidator(e){return validator[_0x4df006(137)].bind(null,e)}function makeBooleanValidator(){var e=_0x4df006;return validator[e(150)][e(171)](null)}function getComponents(e){var r=_0x4df006,t=1<arguments[r(186)]&&void 0!==arguments[1]?arguments[1]:[],n=[];return e[r(220)](function(e){var a=r;t[a(210)](e.path)||n[a(174)](e[a(217)])}),JSON[r(140)](n)}(()=>{var r=_0x4df006;Object[r(223)](validatorMap)[r(220)](function(e){var a=r;validatorMap[e][a(125)]&&requireAttrMap[a(174)](e)})})(),module.exports=function(e){var r,t,a,n,o=_0x4df006,i=e[o(201)][o(190)].manifest;return i&&(r=e[o(159)],t=[],requireAttrMap[o(220)](function(e){var a=o;i[e]||t[a(174)]({reason:a(179)[a(131)](e,"'"),filePath:r})}),a=i[o(181)],n=void(utils.isExp(a)||!a||fs[o(188)](path[o(176)](r,"..",a.trim()))||t[o(174)]({reason:o(119)[o(131)](a),filePath:r})),Object[o(223)](i)[o(220)](function(e){var a=o;(n=validate(e,i[e]))[a(127)]&&t.push({reason:n[a(127)][a(120)],filePath:r})}),utils[o(156)](e,t)),!0};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1188(){var n=["2796032SQeTCP","string","concat","length","10223xfNWUA","190QbtOaQ"," and ","215665xEInvc","push","join","map","16AFkHbf","toString","exports","36ypAPsa","2104025Yqdykl","7704708KEiAzj","610BJknkw","46152iaSeTd","1220679aJSrnO","11LQFIER"];return(_0x1188=function(){return n})()}var _0x2c8f96=_0x2ea7;function _0x2ea7(n,r){var t=_0x1188();return(_0x2ea7=function(n,r){return t[n-=234]})(n,r)}(()=>{for(var n=_0x2ea7,r=_0x1188();;)try{if(551515==-parseInt(n(249))*(parseInt(n(250))/2)+parseInt(n(243))/3+-parseInt(n(245))/4+parseInt(n(252))/5*(parseInt(n(238))/6)+parseInt(n(239))/7*(parseInt(n(235))/8)+parseInt(n(242))/9*(parseInt(n(241))/10)+-parseInt(n(244))/11*(-parseInt(n(240))/12))break;r.push(r.shift())}catch(n){r.push(r.shift())}})(),module[_0x2c8f96(237)]=function(n){var o=_0x2c8f96,c=[];return c[o(236)]=function(){var n=o;return this[n(234)](function(n){return n[1]||""})[n(254)]("")},c.i=function(n,r,t){var a=o,e=n,s=(typeof e===a(246)&&(e=[[null,e,""]]),{});if(t)for(var f=0;f<this[a(248)];f++){var i=this[f][0];null!=i&&(s[i]=!0)}for(var u=0;u<e[a(248)];u++){var p=[][a(247)](e[u]);t&&s[p[0]]||(r&&(p[2]?p[2]=""[a(247)](r,a(251))[a(247)](p[2]):p[2]=r),c[a(253)](p))}},c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x150f(n,t){var r=_0x5b50();return(_0x150f=function(n,t){return r[n-=404]})(n,t)}var _0x9180d0=_0x150f;function _0x5b50(){var n=["function","ownerInstance","exports","11882620KVLTzM","14394uOfJNY","2wWMtEG","262136JnfHEu","39080OgwgVn","261dHEErx","513615JlQuhp","1477BpHQuS","138KccgKJ","2816900JjtgwN","42577007VuPdei"];return(_0x5b50=function(){return n})()}function eventHappenHjs(n,t,r,e){var a=_0x150f;return typeof n===a(406)&&n.call?null==n?void 0:n.call(r,t,t[a(407)]):null==e?void 0:e(n,t)}(()=>{for(var n=_0x150f,t=_0x5b50();;)try{if(726758==-parseInt(n(415))*(-parseInt(n(411))/2)+-parseInt(n(417))/3*(parseInt(n(413))/4)+-parseInt(n(404))/5+parseInt(n(410))/6*(-parseInt(n(416))/7)+parseInt(n(412))/8*(-parseInt(n(414))/9)+-parseInt(n(409))/10+parseInt(n(405))/11)break;t.push(t.shift())}catch(n){t.push(t.shift())}})(),module[_0x9180d0(408)]=eventHappenHjs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x222b92=_0x48c2;function _0x202b(){var e=["^{{{(.+?)}}}$|^{{(.+?)}}$","10DXOzkY",'", please change it.',"buildLog","concat","with,yield,enum,await,implements,package,protected,static,interface,private,public","try { (cb)(require(path));} catch(err) {(cbErr)(err)}","try { (mod => {a();})(require('./w.js'));} catch(err) {(err => {a();})(err)}","27Hipvjk","7ocNxjz","await new Promise((resolve,reject) => { aa.then(resolve).catch(reject);});","./hash-sum","1812642QzFmNi","390GAtVvu","require(path)","12476354JgxOAA","exec","index",'console.log("__ascf_lazy_import__ error: " + err);',"exports","includes","split","1007712GSlLoO","match","1291686gUSZZk","8LYHfvY","hashSum","parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,","push",'getProperty4Object("constructor", xx)',"test","(function(){ try { return xx} catch (_undefinedErr){ _logUndefined(_undefinedErr)};})()","stringify","break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,","1700615QzpKxT","join","lastIndex","length","Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,require","trim","replace","{{{(.+?)}}}|{{(.+?)}}","slice","Infinity,undefined,NaN,null,isFinite,isNaN,true,false,","9056340MRAcAh","5741iOXSkp"];return(_0x202b=function(){return e})()}(()=>{for(var e=_0x48c2,r=_0x202b();;)try{if(642710==-parseInt(e(337))*(parseInt(e(305))/2)+parseInt(e(304))/3*(parseInt(e(317))/4)+parseInt(e(326))/5+parseInt(e(316))/6*(parseInt(e(301))/7)+parseInt(e(314))/8*(parseInt(e(300))/9)+-parseInt(e(339))/10*(parseInt(e(307))/11)+parseInt(e(336))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var allowedKeywords=_0x222b92(335)+_0x222b92(319)+_0x222b92(330),allowedKeywordsRE=allowedKeywords[_0x222b92(313)](","),prohibitedKeywordRE=new RegExp("\\b"[_0x222b92(296)]((_0x222b92(325)+"for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,"+_0x222b92(297)).split(",")[_0x222b92(327)]("\\b|\\b"),"\\b")),stripStringRE=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,innerParenthesesRe=/{{([^}][^}])*({{.*)+/,_require=require(_0x222b92(303)),hashSum=_require[_0x222b92(318)],STRINGIFY_OBJECT=JSON[_0x222b92(324)]({}),OBEJECT_PLACEHOLDER=hashSum(STRINGIFY_OBJECT),REPLACE_RE=new RegExp(OBEJECT_PLACEHOLDER,"g"),BINDING_CONTENT_RE=/{{([\s\S]*)}}/,OBJECT_RE=/{\s*}/g,CATCH_FUNC=_0x222b92(323),INNER_FUNC_KEYWORDS="Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,require",INNER_FUNC_LIST=INNER_FUNC_KEYWORDS[_0x222b92(313)](","),HJS_GET_CONSTRUCTOR=_0x222b92(321),ASCF_LAZY_IMPORT="__ascf_lazy_import__(p1).then(()=>(__webpack_require__(p2))).then(cb).catch(cbErr);",ASCF_LAZY_IMPORT_ERR=_0x222b92(310),NEW_PROMISE=_0x222b92(302),REQUIRE_TRY_CATCH=_0x222b92(299),REQUIRE_TRY_CATCH_FUL=_0x222b92(298),REQUIRE=_0x222b92(306);function replace(e){var r=_0x222b92;return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]?e.replace(REPLACE_RE,STRINGIFY_OBJECT).replace(/\s+$/gm,""):e[r(332)](REPLACE_RE,STRINGIFY_OBJECT)[r(331)]()}function isIdentifierNotAllow(e){return allowedKeywordsRE[_0x222b92(312)](e)}function parseText(e,r){var t=_0x222b92,n=2<arguments[t(329)]&&void 0!==arguments[2]&&arguments[2],E=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],a=e;if(n){if(!textExpRE.test(a))return null}else if(a=a.replace(/\n/g,""),!expRE.test(a))return null;var _=[];if(innerParenthesesRe.test(a))r[t(295)][t(320)]({reason:'ERROR: Unexpected inner parentheses, with attr value : "'[t(296)](a,t(340))});else{for(var i=0,R=(tagRE[t(328)]=i,OBJECT_RE[t(322)](a)&&(a=a[t(332)](OBJECT_RE,OBEJECT_PLACEHOLDER)),null);R=textTagRE[t(308)](a);){var x=R[t(309)],x=(i<x&&_[t(320)]({value:a[t(334)](i,x)}),htmlRE[t(322)](R[0]));x&&(R[1]=a[t(334)](i,textTagRE.lastIndex+1)[t(315)](BINDING_CONTENT_RE)[1]),_[t(320)]({tag:!0,value:replace(R[1]||R[2],E),html:x}),i=textTagRE[t(328)]}i<a[t(329)]&&_[t(320)]({value:replace(a[t(334)](i),E)})}return _}function isExpr(e){return expRE[_0x222b92(322)](e)}function singleExpr(e){var r=_0x222b92;return sexpRE[r(322)](e[r(331)]())}function removeExprffix(e){var r=_0x222b92;return e=(e=singleExpr(e)?e[r(332)](/^\s*{{/,"")[r(332)](/}}\s*$/,""):e)[r(331)]()}function addExprffix(e){var r=_0x222b92;return e=singleExpr(e)?e:"{{"[r(296)](e,"}}")}function containExpr(e){var r=_0x222b92;return!!e&&tagRE.test(e[r(332)](/(\n)|(\r)/g,""))}function _0x48c2(e,r){var t=_0x202b();return(_0x48c2=function(e,r){return t[e-=295]})(e,r)}function removeAllExprFix(e){return e=containExpr(e)?e.replace(/\{\{\{?|\}\}\}?/g,""):e}var tagSource=_0x222b92(333),tagRE=new RegExp(tagSource,"g"),expRE=new RegExp(tagSource),textTagRE=new RegExp("{{{([\\s\\S]*?)}}}|{{([\\s\\S]*?)}}","g"),textExpRE=new RegExp("{{{([\\s\\S]*?)}}}|{{([\\s\\S]*?)}}"),htmlRE=new RegExp("^{{{.*}}}$"),sexpRE=new RegExp(_0x222b92(338));module[_0x222b92(311)]={parseText:parseText,isExpr:isExpr,singleExpr:singleExpr,addExprffix:addExprffix,removeExprffix:removeExprffix,containExpr:containExpr,removeAllExprFix:removeAllExprFix,prohibitedKeywordRE:prohibitedKeywordRE,stripStringRE:stripStringRE,isIdentifierNotAllow:isIdentifierNotAllow,CATCH_FUNC:CATCH_FUNC,INNER_FUNC_LIST:INNER_FUNC_LIST,HJS_GET_CONSTRUCTOR:HJS_GET_CONSTRUCTOR,ASCF_LAZY_IMPORT:ASCF_LAZY_IMPORT,ASCF_LAZY_IMPORT_ERR:ASCF_LAZY_IMPORT_ERR,NEW_PROMISE:NEW_PROMISE,REQUIRE_TRY_CATCH:REQUIRE_TRY_CATCH,REQUIRE:REQUIRE,REQUIRE_TRY_CATCH_FUL:REQUIRE_TRY_CATCH_FUL};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4f26b0=_0xcc97;function _0xcc97(t,r){var n=_0x4c03();return(_0xcc97=function(t,r){return n[t-=456]})(t,r)}function _0x4c03(){var t=["charCodeAt","toString","220801qXgfoL","24070937czTfNe","function","constructor","914086XkJRzQ","44SurBke","444910TApmSb","prototype","6pZDWQf","152sInKVL","call","exports","symbol","iterator","3960312lqwZsH","197393DbusBU","171zotatM","38385rOFMBI"];return(_0x4c03=function(){return t})()}function _typeof(t){var n=_0xcc97;return(_typeof=n(466)==typeof Symbol&&n(456)==typeof Symbol[n(457)]?function(t){return typeof t}:function(t){var r=n;return t&&r(466)==typeof Symbol&&t[r(467)]===Symbol&&t!==Symbol[r(471)]?r(456):typeof t})(t)}function hashSum(t){for(var r=_0xcc97,n=fold(fold(fold(0,""),Object.prototype.toString[r(474)](t)),_typeof(t)),o=fold(n,t[r(463)]())[r(463)](16);o.length<8;)o="0"+o;return o}function fold(t,r){var n,o,e=_0xcc97,c=t;if(0===r.length)return c;for(n=0,o=r.length;n<o;n++)c=(c<<5)-c+r[e(462)](n),c|=0;return c<0?-2*c:c}(()=>{for(var t=_0xcc97,r=_0x4c03();;)try{if(602533==+parseInt(t(459))+parseInt(t(468))/2*(-parseInt(t(472))/3)+parseInt(t(469))/4*(-parseInt(t(461))/5)+parseInt(t(458))/6+-parseInt(t(464))/7*(parseInt(t(473))/8)+parseInt(t(460))/9*(-parseInt(t(470))/10)+parseInt(t(465))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),module[_0x4f26b0(475)]={hashSum:hashSum};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _ref,_0x55509a=_0x28d8;function _typeof(e){var r=_0x28d8;return(_typeof=r(259)==typeof Symbol&&r(260)==typeof Symbol[r(234)]?function(e){return typeof e}:function(e){var t=r;return e&&t(259)==typeof Symbol&&e[t(273)]===Symbol&&e!==Symbol.prototype?t(260):typeof e})(e)}function ownKeys(r,e){var t,n=_0x28d8,o=Object.keys(r);return Object[n(299)]&&(t=Object[n(299)](r),e&&(t=t[n(289)](function(e){var t=n;return Object.getOwnPropertyDescriptor(r,e)[t(235)]})),o[n(269)][n(281)](o,t)),o}function _objectSpread(r){for(var n=_0x28d8,e=1;e<arguments[n(277)];e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(r,e,o[e])}):Object.getOwnPropertyDescriptors?Object[n(271)](r,Object[n(241)](o)):ownKeys(Object(o)).forEach(function(e){var t=n;Object[t(292)](r,e,Object[t(287)](o,e))})}return r}function _defineProperty(e,t,r){var n=_0x28d8;return(t=_toPropertyKey(t))in e?Object[n(292)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _0x28d8(e,t){var r=_0x3ae9();return(_0x28d8=function(e,t){return r[e-=214]})(e,t)}function _toPropertyKey(e){e=_toPrimitive(e,_0x28d8(249));return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x28d8;if(r(264)!=_typeof(e)||!e)return e;var n=e[Symbol[r(294)]];if(void 0===n)return(r(249)===t?String:Number)(e);n=n[r(279)](e,t||r(297));if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x28d8,t=_0x3ae9();;)try{if(759277==-parseInt(e(218))*(parseInt(e(222))/2)+parseInt(e(261))/3*(parseInt(e(275))/4)+parseInt(e(214))/5*(-parseInt(e(298))/6)+-parseInt(e(253))/7+-parseInt(e(255))/8+-parseInt(e(290))/9+parseInt(e(242))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var _require=require(_0x55509a(251)),getProjectInfo=_require.getProjectInfo,getHvigorwPath=_require[_0x55509a(246)],getEntryPkgPath=_require.getEntryPkgPath,getModuleNames=_require[_0x55509a(239)],getBundleName=_require[_0x55509a(223)],execSafe=_require[_0x55509a(285)],log4js=require("../../common/log4js"),path=require("path"),fs=require("fs"),_require2=require(_0x55509a(219)),execSync=_require2[_0x55509a(270)],_require3=require(_0x55509a(293)),configs=_require3.configs,logger=log4js[_0x55509a(291)](_0x55509a(227)),DEVECO_SDK_HOME=(null==(_ref=process.env[_0x55509a(268)]||process.env[_0x55509a(230)])?void 0:_ref.split(";")[0][_0x55509a(295)]())+"/../tools/",TOOLS_DIR_OSX=DEVECO_SDK_HOME||_0x55509a(258),TOOLS_DIR_WIN=DEVECO_SDK_HOME||_0x55509a(232),TOOLS_DIR="win32"===process[_0x55509a(237)]?TOOLS_DIR_WIN:TOOLS_DIR_OSX;function getPath(){for(var e=_0x55509a,t=DEVECO_SDK_HOME?DEVECO_SDK_HOME+e(229):TOOLS_DIR,r=arguments[e(277)],n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return path[e(220)].apply(path,[t][e(282)](n))}function getDevEcoSdkHome(){var e=_0x55509a,t=getPath("../sdk");return fs[e(262)](t)?logger[e(217)](e(215)+t):logger.warn(e(226)),t}var isCommandRunning=!1;function assembleHap(){var e=_0x55509a;logger.info("assembleHap"),runCmd(""[e(282)](getHvigorwPath(),e(248)),{chdir:!0,cwd:getProjectInfo()[e(236)]})}function installPkg(){var e=_0x55509a,t=getModuleNames();t[e(243)]?(t=path[e(220)](getEntryPkgPath(),e(276),e(297),"outputs",e(297),""[e(282)](t[e(243)],"-default-signed.hap")),fs[e(262)](t)?(logger[e(228)](e(254)),runCmd(e(225)[e(282)](getDeviceId(),e(284)).concat(t),{chdir:!0,cwd:getProjectInfo()[e(236)]})):logger[e(267)](e(221),t)):logger[e(267)](e(224))}function assembleAndInstallHap(){assembleHap(),installPkg()}function uninstallPkg(){var e=_0x55509a,t=getBundleName();logger[e(228)]("Uninstall package"),runCmd(e(225)[e(282)](getDeviceId(),e(231))[e(282)](t),{chdir:!0,cwd:getProjectInfo()[e(236)]})}function startAbility(){var e,t=_0x55509a,r=(logger[t(228)](t(274).concat(getProjectInfo()[t(236)])),getBundleName());r?(e=getModuleNames())[t(243)]?e.entryAbility?(logger[t(228)](t(216)[t(282)](r)),runCmd(t(225)[t(282)](getDeviceId(),t(245)).concat(e[t(280)],t(247))[t(282)](r," -m ")[t(282)](e[t(243)]," --ps launchMode forceUpdate"))):logger[t(267)](t(250)):logger[t(267)](t(224)):logger.error("bundleName is null")}function runCmd(e,t){var r=_0x55509a;if(e&&!isCommandRunning){var n=getDevEcoSdkHome(),n=Object.assign({encoding:r(283),env:_objectSpread(_objectSpread({},process[r(286)]||{}),{},{DEVECO_SDK_HOME:n})},t);try{logger[r(228)](r(257),e),isCommandRunning=!0;var o=execSync(e,n),a=String(o);return/failed to start ability/.test(a)?logger[r(267)](r(265),a):logger.info(r(256),a),o}catch(e){logger[r(267)](r(265),e)}finally{isCommandRunning=!1}}}function hdcRemovePort(e,t){var r=_0x55509a;0!==e&&0!==t&&(logger.info("Remove forward port"),e=execSafe(r(244)[r(282)](e,r(252))[r(282)](t)),logger[r(217)](e))}function tryHdcPortReversing(e){var t=_0x55509a,r=1<arguments[t(277)]&&void 0!==arguments[1]?arguments[1]:0,n=Math[t(240)](64512*Math[t(266)]())+1024,o=execSafe(t(225)[t(282)](getDeviceId(),t(263)).concat(n,t(252))[t(282)](e));return o&&5!==r?o[t(288)](t(233))?n:tryHdcPortReversing(e,++r):0}function _0x3ae9(){var e=["push","execSync","defineProperties","exit","constructor","start startAbility under ","2976wKJOcj","build","length","deviceId","call","entryAbility","apply","concat","utf8"," install ","execSafe","env","getOwnPropertyDescriptor","includes","filter","310689jMKkxq","getLogger","defineProperty","../../common/config","toPrimitive","trim","exports","default","6AcDIBV","getOwnPropertySymbols","5513780POPWKW","DEVECO_SDK_HOME=","start ability ","debug","26bNLesP","child_process","join","hapPath is not exists","57732TgXrLM","getBundleName","module.name is null, in the file of module.json5","hdc -t ","DEVECO_SDK_HOME is not found, please specify env DEVECO_SDK_HOME","hdc-executor","info","/../tools/","DEVECO_SDK_HOME"," uninstall ","C:\\Program Files\\Huawei\\DevEco Studio\\tools","Forwardport result:OK","iterator","enumerable","projectPath","platform","App Launch: select a device first","getModuleNames","floor","getOwnPropertyDescriptors","31621750CljVoH","name","hdc fport rm tcp:"," shell aa start -a ","getHvigorwPath"," -b "," assembleHap --parallel --incremental --daemon -p skipAscfCompile=true","string","abilities.name is null, in the file of module.json5","../../common/utils"," tcp:","2316608ehaLog","installing package bundleName to sn","4859976xzvzES","Run command result:","Run command: ","/Applications/DevEco-Studio.app/Contents/tools","function","symbol","1707huuJZd","existsSync"," rport tcp:","object","Run command error: ","random","error","DevEco Studio"];return(_0x3ae9=function(){return e})()}function getDeviceId(){var e,t=_0x55509a;return configs[t(278)]||((e=execSafe("hdc list targets"))&&!/(Empty|Fail)/.test(e)||(logger[t(267)](t(238)),process[t(272)](1)),e=e.split("\n"),configs[t(278)]=e[0][t(295)]()),configs[t(278)]}module[_0x55509a(296)]={assembleAndInstallHap:assembleAndInstallHap,assembleHap:assembleHap,installPkg:installPkg,uninstallPkg:uninstallPkg,startAbility:startAbility,hdcRemovePort:hdcRemovePort,tryHdcPortReversing:tryHdcPortReversing,getDeviceId:getDeviceId};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x189e33=_0xf2ba;function _construct(t,e,r){var n,a=_0xf2ba;return _isNativeReflectConstruct()?Reflect[a(166)][a(155)](null,arguments):((n=[null]).push[a(155)](n,e),e=new(t.bind.apply(t,n)),r&&_setPrototypeOf(e,r[a(160)]),e)}function _setPrototypeOf(t,e){var r=_0xf2ba;return(_setPrototypeOf=Object[r(168)]?Object[r(168)][r(172)]():function(t,e){return t.__proto__=e,t})(t,e)}function _isNativeReflectConstruct(){var t=_0xf2ba;try{var e=!Boolean.prototype[t(164)][t(173)](Reflect[t(166)](Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!e})()}function getRegExp(){for(var t=arguments[_0xf2ba(158)],e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return _construct(RegExp,e)}function _0xf2ba(t,e){var r=_0x1b0a();return(_0xf2ba=function(t,e){return r[t-=153]})(t,e)}function _0x1b0a(){var t=["construct","constructor","setPrototypeOf","3075359VNSisr","2020530DhVogE","72kfjFjM","bind","call","exports","89230fXAGEm","3580148pKyPoo","apply","String","24OzbNzJ","length","1161320URknON","prototype","1714430tNboMZ","Number","Array","valueOf","1610379pouugm"];return(_0x1b0a=function(){return t})()}function getDate(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return _construct(Date,e)}function getProperty4Object(t,e){var r=_0xf2ba,n=null==e?void 0:e[t];if(t!==r(167))return n;switch(n){case Date:return"Date";case RegExp:return"RegExp";case Object:return"Object";case Function:return"Function";case Array:return r(163);case String:return r(156);case Boolean:return"Boolean";case Number:return r(162);default:return n}}(()=>{for(var t=_0xf2ba,e=_0x1b0a();;)try{if(924103==+parseInt(t(161))+-parseInt(t(170))/2+parseInt(t(165))/3+-parseInt(t(154))/4+-parseInt(t(153))/5+-parseInt(t(157))/6*(-parseInt(t(169))/7)+-parseInt(t(159))/8*(parseInt(t(171))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),module[_0x189e33(174)]={getDate:getDate,getRegExp:getRegExp,getProperty4Object:getProperty4Object};
|