UNPKG

fa-toolkit

Version:

a devtool for fast app

1 lines 3.48 kB
"use strict";var _0x4cce22=_0x5c25;function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _0x8cc9(){var r=["Arguments","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","from","./shared","$app_require$","concat","some","var","isArray","123011vGBelH","4923fAgEbO","@@iterator","2870654IlVaan","exports","issuer","Map","require","_module","= $app_require$(","@app-module/","webapp","replace","2620608ToZfQM","iterator","forEach","widgetsDependList","undefined","type","options","call","30tFRurB","588936xoekjs","5213430WhvXCo","90405efXXpG","constructor","length","jsLint","fileCont","test","push","./utils","9080bePlLO","match","context","manifest"];return(_0x8cc9=function(){return r})()}function _nonIterableSpread(){throw new TypeError(_0x5c25(251))}function _unsupportedIterableToArray(r,e){var t=_0x5c25;if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var a=Object.prototype.toString[t(234)](r).slice(8,-1);return(a="Object"===a&&r[t(239)]?r[t(239)].name:a)===t(265)||"Set"===a?Array[t(252)](r):a===t(250)||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[t(243)](a)?_arrayLikeToArray(r,e):void 0}}function _iterableToArray(r){var e=_0x5c25;if(typeof Symbol!==e(231)&&null!=r[Symbol[e(228)]]||null!=r[e(261)])return Array[e(252)](r)}function _arrayWithoutHoles(r){if(Array[_0x5c25(258)](r))return _arrayLikeToArray(r)}function _0x5c25(r,e){var t=_0x8cc9();return(_0x5c25=function(r,e){return t[r-=228]})(r,e)}function _arrayLikeToArray(r,e){var t=_0x5c25;(null==e||e>r[t(240)])&&(e=r[t(240)]);for(var a=0,n=new Array(e);a<e;a++)n[a]=r[a];return n}!function(){for(var r=_0x5c25,e=_0x8cc9();;)try{if(963058==+parseInt(r(236))+-parseInt(r(262))/2+parseInt(r(237))/3+-parseInt(r(272))/4+parseInt(r(238))/5+-parseInt(r(235))/6*(-parseInt(r(259))/7)+parseInt(r(246))/8*(parseInt(r(260))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}();var _utils=require(_0x4cce22(245)),_shared=require(_0x4cce22(253)),_require=require("../common/jslint-utils"),jsLint=_require[_0x4cce22(241)],REQUIRE_REG=/require\s*\(['"]@(system|service|card|android|hap)([^()'"\s]*)['"]\)/g,IMPORT_REG=/import(\s+|\{)([^()'";]+)(\s+|\})from\s*['"]@(system|service|card|android|hap)([^()'"\s]*)['"]/g;module[_0x4cce22(263)]=function(r){var t=_0x4cce22,a=this,n=r;if((this.options[t(249)]||{})[t(232)]===t(270)&&this[t(233)][t(230)]){var e=this.options[t(230)];if(!e[t(256)](function(r){var e=t;return r===a._module[e(264)][e(248)]}))return n;e[t(256)](function(r){var e=t;return r===a[e(267)][e(248)]})||e[t(244)](this[t(267)][t(248)])}e=_shared.updateSourceScript(n),n=e[t(242)];_utils.logWarn(this,e.logFeatureList);e=n[t(247)](REQUIRE_REG)||[];(e=global._isHarmony?(o=n.match(/require\s*\(['"]@(custom)([^()'"\s]*)['"]\)/g))?[][t(255)](_toConsumableArray(e),_toConsumableArray(o)):e:e)&&0<e[t(240)]&&e.forEach(function(r){var e=t;n=n.replace(r,r[e(271)](e(266),e(254))[e(271)]("@",e(269)))});var o=n.match(IMPORT_REG)||[];return(o=global._isHarmony?(e=n[t(247)](/import(\s+|\{)([^()'";]+)(\s+|\})from\s*['"]@(custom)([^()'"\s]*)['"]/g))?[][t(255)](_toConsumableArray(o),_toConsumableArray(e)):o:o)&&0<o[t(240)]&&o[t(229)](function(r){var e=t;n=n[e(271)](r,""[e(255)](r[e(271)]("import",e(257))[e(271)]("from",e(268))[e(271)]("@",e(269)).replace(/\s+as\s+/g,":"),");"))}),n=global._isQuickApp?jsLint(null,n,this).content:n};