fa-toolkit
Version:
a devtool for fast app
1 lines • 14.1 kB
JavaScript
"use strict";var _0x626799=_0x2d91;function _typeof(t){var e=_0x2d91;return(_typeof=e(464)==typeof Symbol&&e(504)==typeof Symbol[e(527)]?function(t){return typeof t}:function(t){var r=e;return t&&r(464)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(455)]?r(504):typeof t})(t)}function _createForOfIteratorHelper(t,r){var e=_0x2d91,n=typeof Symbol!==e(458)&&t[Symbol[e(527)]]||t[e(488)];if(!n){if(Array[e(396)](t)||(n=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t[e(448)]){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t[e(448)]?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError(e(538))}var i,a=!0,u=!1;return{s:function(){n=n[e(525)](t)},n:function(){var t=e,r=n[t(453)]();return a=r[t(545)],r},e:function(t){u=!0,i=t},f:function(){var t=e;try{a||null==n[t(510)]||n[t(510)]()}finally{if(u)throw i}}}}function _0x2d91(t,r){var e=_0x59cf();return(_0x2d91=function(t,r){return e[t-=393]})(t,r)}function _unsupportedIterableToArray(t,r){var e=_0x2d91;if(t){if(typeof t===e(513))return _arrayLikeToArray(t,r);var n=Object.prototype[e(522)][e(525)](t)[e(481)](8,-1);return(n=n===e(493)&&t[e(476)]?t.constructor.name:n)===e(409)||n===e(479)?Array.from(t):n===e(437)||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[e(416)](n)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t[_0x2d91(448)])&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function _regeneratorRuntime(){var f=_0x2d91;_regeneratorRuntime=function(){return u};var u={},t=Object[f(455)],s=t[f(501)],h=Object.defineProperty||function(t,r,e){t[r]=e[f(511)]},r=f(464)==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",e=r.asyncIterator||f(433),n=r[f(452)]||f(500);function o(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var i,a,u,c,s,o=f,r=r&&r.prototype instanceof _?r:_,o=Object[o(473)](r[o(455)]),n=new w(n||[]);return h(o,"_invoke",{value:(i=t,a=e,u=n,s=(c=f)(518),function(t,r){var e=c;if(e(546)===s)throw new Error(e(475));if(e(393)===s){if("throw"===t)throw r;return S()}for(u[e(463)]=t,u[e(442)]=r;;){var n=u[e(428)];if(n){var o=function t(r,e){var n=f,o=e[n(463)],i=r[n(527)][o];if(void 0===i)return e.delegate=null,n(494)===o&&r.iterator.return&&(e.method=n(510),e[n(442)]=void 0,t(r,e),n(494)===e[n(463)])||n(510)!==o&&(e.method=n(494),e[n(442)]=new TypeError(n(539)+o+n(449))),p;i=l(i,r[n(527)],e.arg);if(n(494)===i[n(517)])return e.method=n(494),e.arg=i.arg,e[n(428)]=null,p;var i=i[n(442)];return i?i[n(545)]?(e[r[n(465)]]=i[n(511)],e[n(453)]=r[n(502)],n(510)!==e[n(463)]&&(e[n(463)]=n(453),e[n(442)]=void 0),e[n(428)]=null,p):i:(e[n(463)]="throw",e.arg=new TypeError(n(414)),e[n(428)]=null,p)}(n,u);if(o){if(o===p)continue;return o}}if(e(453)===u.method)u[e(413)]=u[e(426)]=u[e(442)];else if(e(494)===u[e(463)]){if(e(518)===s)throw s="completed",u[e(442)];u[e(490)](u[e(442)])}else e(510)===u[e(463)]&&u[e(482)](e(510),u[e(442)]);s=e(546);o=l(i,a,u);if(e(497)===o[e(517)]){if(s=u[e(545)]?e(393):e(506),o[e(442)]===p)continue;return{value:o[e(442)],done:u[e(545)]}}"throw"===o[e(517)]&&(s=e(393),u.method="throw",u[e(442)]=o[e(442)])}})}),o}function l(t,r,e){var n=f;try{return{type:n(497),arg:t.call(r,e)}}catch(t){return{type:n(494),arg:t}}}u[f(415)]=c;var p={};function _(){}function a(){}function v(){}var y={};o(y,i,function(){return this});r=Object[f(402)],r=r&&r(r(E([])));r&&r!==t&&s[f(525)](r,i)&&(y=r);var d=v[f(455)]=_[f(455)]=Object.create(y);function m(t){var r=f;["next","throw",r(510)][r(486)](function(r){o(t,r,function(t){return this[_0x2d91(404)](r,t)})})}function x(u,c){var r;h(this,f(404),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i=_0x2d91,t=l(u[t],u,e);if("throw"!==t.type){var a=t[i(442)],e=a[i(511)];return e&&"object"==_typeof(e)&&s.call(e,"__await")?c[i(483)](e[i(457)])[i(424)](function(t){r(i(453),t,n,o)},function(t){r(i(494),t,n,o)}):c[i(483)](e)[i(424)](function(t){a.value=t,n(a)},function(t){return r(i(494),t,n,o)})}o(t.arg)}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function b(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(462)]=t[1]),2 in t&&(e[r(489)]=t[2],e.afterLoc=t[3]),this.tryEntries[r(439)](e)}function g(t){var r=f,e=t[r(472)]||{};e[r(517)]="normal",delete e[r(442)],t[r(472)]=e}function w(t){var r=f;this.tryEntries=[{tryLoc:r(508)}],t[r(486)](b,this),this[r(412)](!0)}function E(e){var n=f;if(e){var t=e[i];if(t)return t[n(525)](e);if(n(464)==typeof e[n(453)])return e;if(!isNaN(e[n(448)])){var o=-1,t=function t(){for(var r=n;++o<e[r(448)];)if(s[r(525)](e,o))return t[r(511)]=e[o],t.done=!1,t;return t[r(511)]=void 0,t[r(545)]=!0,t};return t[n(453)]=t}}return{next:S}}function S(){return{value:void 0,done:!0}}return a.prototype=v,h(d,f(476),{value:v,configurable:!0}),h(v,f(476),{value:a,configurable:!0}),a[f(478)]=o(v,n,f(446)),u[f(470)]=function(t){var r=f,t=r(464)==typeof t&&t[r(476)];return!!t&&(t===a||r(446)===(t.displayName||t[r(529)]))},u[f(537)]=function(t){var r=f;return Object.setPrototypeOf?Object[r(427)](t,v):(t.__proto__=v,o(t,n,r(446))),t.prototype=Object[r(473)](d),t},u[f(480)]=function(t){return{__await:t}},m(x.prototype),o(x[f(455)],e,function(){return this}),u[f(521)]=x,u[f(509)]=function(t,r,e,n,o){var i=f;void 0===o&&(o=Promise);var a=new x(c(t,r,e,n),o);return u[i(470)](r)?a:a[i(453)]().then(function(t){return t.done?t.value:a.next()})},m(d),o(d,n,f(441)),o(d,i,function(){return this}),o(d,"toString",function(){return f(421)}),u[f(394)]=function(t){var r,n=f,o=Object(t),i=[];for(r in o)i.push(r);return i[n(530)](),function t(){for(var r=n;i[r(448)];){var e=i[r(471)]();if(e in o)return t[r(511)]=e,t[r(545)]=!1,t}return t.done=!0,t}},u[f(532)]=E,w[f(455)]={constructor:w,reset:function(t){var r=f;if(this.prev=0,this[r(453)]=0,this[r(413)]=this._sent=void 0,this[r(545)]=!1,this.delegate=null,this.method=r(453),this[r(442)]=void 0,this[r(445)][r(486)](g),!t)for(var e in this)"t"===e[r(547)](0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){var t=f;this[t(545)]=!0;var r=this[t(445)][0][t(472)];if("throw"===r[t(517)])throw r[t(442)];return this[t(536)]},dispatchException:function(n){var t=f;if(this.done)throw n;var o=this;function r(t,r){var e=_0x2d91;return a[e(517)]="throw",a.arg=n,o[e(453)]=t,r&&(o[e(463)]=e(453),o.arg=void 0),!!r}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this[t(445)][e],a=i.completion;if(t(508)===i.tryLoc)return r(t(485));if(i[t(434)]<=this[t(515)]){var u=s[t(525)](i,"catchLoc"),c=s[t(525)](i,t(489));if(u&&c){if(this[t(515)]<i[t(462)])return r(i[t(462)],!0);if(this[t(515)]<i[t(489)])return r(i[t(489)])}else if(u){if(this[t(515)]<i[t(462)])return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i[t(489)])return r(i[t(489)])}}}},abrupt:function(t,r){for(var e=f,n=this.tryEntries[e(448)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(434)]<=this[e(515)]&&s[e(525)](o,e(489))&&this[e(515)]<o[e(489)]){var i=o;break}}var a=(i=i&&(e(540)===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc?null:i)?i[e(472)]:{};return a[e(517)]=t,a.arg=r,i?(this[e(463)]="next",this[e(453)]=i.finallyLoc,p):this[e(411)](a)},complete:function(t,r){var e=f;if(e(494)===t[e(517)])throw t[e(442)];return e(540)===t.type||e(397)===t[e(517)]?this[e(453)]=t[e(442)]:e(510)===t.type?(this[e(536)]=this[e(442)]=t.arg,this[e(463)]=e(510),this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=f,e=this.tryEntries[r(448)]-1;0<=e;--e){var n=this.tryEntries[e];if(n[r(489)]===t)return this[r(411)](n[r(472)],n[r(406)]),g(n),p}},catch:function(t){for(var r=f,e=this[r(445)].length-1;0<=e;--e){var n=this[r(445)][e];if(n[r(434)]===t){var o,i=n[r(472)];return r(494)===i[r(517)]&&(o=i.arg,g(n)),o}}throw new Error(r(477))},delegateYield:function(t,r,e){var n=f;return this[n(428)]={iterator:E(t),resultName:r,nextLoc:e},n(453)===this[n(463)]&&(this[n(442)]=void 0),p}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x2d91;try{var c=t[i](a),s=c[u(511)]}catch(t){return void e(t)}c[u(545)]?r(s):Promise[u(483)](s)[u(424)](n,o)}function _asyncToGenerator(c){return function(){var t=this,u=arguments;return new Promise(function(r,e){var n=_0x2d91,o=c[n(519)](t,u);function i(t){asyncGeneratorStep(o,r,e,i,a,n(453),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(494),t)}i(void 0)})}}function _0x59cf(){var t=["iterator result is not an object","wrap","test","1491480cyHYHS","parse","beta","split","[object Generator]","addWatermark","760TGWJIu","then",".md","_sent","setPrototypeOf","delegate","statSync",".fecsrc","isFile","reduce","@@asyncIterator","tryLoc","hooks",".css","Arguments","emit","push",".coffee","Generator","arg",".ux",".DS_Store","tryEntries","GeneratorFunction",".fecsignore","length","' method","ResourcePlugin",".npmignore","toStringTag","next",".frameworkinfo","prototype","983686YoPJnx","__await","undefined","1781484qmAyuQ",".ts",".wxs","catchLoc","method","function","resultName","existsSync","../common/utils","options","relative","isGeneratorFunction","pop","completion","create","manifest","Generator is already running","constructor","illegal catch attempt","displayName","Set","awrap","slice","abrupt","resolve",".editorconfig","end","forEach","stop","@@iterator","finallyLoc","dispatchException",".scss","catch","Object","throw","isIgnoreFile",".qxml","normal",".less",".flow","@@toStringTag","hasOwnProperty","nextLoc","utf8","symbol","match","suspendedYield","trim","root","async","return","value","extname","string",".styl","prev",".tsx","type","suspendedStart","apply","copyFileSync","AsyncIterator","toString","join",".jsx","call","ignoreRules","iterator","src","name","reverse","folder","values","74501AXRnII","../../common/icon-handler",".qjs","rval","mark","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","The iterator does not provide a '","break","basename","1037548RoGNOY","6bxLZHm","readdirSync","done","executing","charAt","isDirectory","3932975ymlQWp",".vue","completed","keys","indexOf","isArray","continue","path","build","825064oNoJUK",".js","getPrototypeOf","includes","_invoke","exports","afterLoc","../common/packoptions-utils","tapAsync","Map",".sass","complete","reset","sent"];return(_0x59cf=function(){return t})()}!function(){for(var t=_0x2d91,r=_0x59cf();;)try{if(578764==-parseInt(t(400))+parseInt(t(456))/2+parseInt(t(459))/3+parseInt(t(542))/4+parseInt(t(549))/5*(-parseInt(t(543))/6)+-parseInt(t(533))/7*(-parseInt(t(423))/8)+-parseInt(t(417))/9)break;r.push(r.shift())}catch(t){r.push(r.shift())}}();var _path=require(_0x626799(398)),_fs=require("fs"),_utils=require(_0x626799(467)),_packOptions=require(_0x626799(407)),FILE_EXT_NAME=[".log",_0x626799(499),".sh",_0x626799(401),_0x626799(436),_0x626799(524),_0x626799(440),_0x626799(460),_0x626799(516),_0x626799(550),_0x626799(498),_0x626799(410),_0x626799(491),_0x626799(514),".html",_0x626799(425),".json",_0x626799(444),".pem",".qcss",_0x626799(496),_0x626799(461),_0x626799(535),_0x626799(443)],IGNORE_FILES=["LICENSE",_0x626799(451),".DS_Store",_0x626799(447),_0x626799(430),_0x626799(454),_0x626799(484)],REGEXP_ICON=/{{{(.+?)}}}|{{(.+?)}}/g,REGEXP_JSON=/\.json$/g,iconPaths=[];function copyFile(t,r){var e=_0x626799;if(_fs.existsSync(t)){_utils.mkdirsSync(_path.join(r,".."));r=_fs[e(520)](t,r);if(r)throw r}}function transFile(t,r,e,n){return _transFile.apply(this,arguments)}function _transFile(){var r=_0x626799;return(_transFile=_asyncToGenerator(_regeneratorRuntime()[r(537)](function t(e,n,o,i){var a,u,c,s,f,h,l,p,_,v=r;return _regeneratorRuntime()[v(415)](function(t){for(var r=v;;)switch(t[r(515)]=t[r(453)]){case 0:a=void 0,u=_path.join(e,o),l=_fs[r(544)](u),c=_createForOfIteratorHelper(l),t[r(515)]=4,c.s();case 6:if((l=c.n())[r(545)]){t[r(453)]=37;break}if(s=l[r(511)],f=_path.join(u,s),!(h=_fs[r(429)](f))[r(431)]()){t[r(453)]=29;break}if(p=_path[r(541)](f),l=_path[r(512)](f),!(FILE_EXT_NAME[r(395)](l)<0)||IGNORE_FILES[r(403)](p)||_packOptions[r(495)](_path[r(469)](e,f),i)){t[r(453)]=27;break}if(a=_path[r(523)](n,o,_path[r(541)](s)),!_fs[r(466)](a)){t[r(453)]=20;break}(p=_fs[r(429)](a))[r(431)]()&&p.size!==h.size&©File(f,a),t[r(453)]=27;break;case 20:if(_versionType===r(419)&&iconPaths.includes(f))return _=require(r(534)),_=_[r(422)],t[r(453)]=24,_(f,a);t[r(453)]=26;break;case 24:t[r(453)]=27;break;case 26:copyFile(f,a);case 27:t[r(453)]=35;break;case 29:if(!h[r(548)]()){t[r(453)]=35;break}if(_packOptions.isIgnoreFile(_path[r(469)](e,f),i,r(531)))return t.abrupt("continue",35);t[r(453)]=32;break;case 32:return _=_path.join(o,s),t[r(453)]=35,transFile(e,n,_,i);case 35:t[r(453)]=6;break;case 37:t[r(453)]=42;break;case 39:t[r(515)]=39,t.t0=t[r(492)](4),c.e(t.t0);case 42:return t[r(515)]=42,c.f(),t.finish(42);case 45:case"end":return t[r(487)]()}},t,null,[[4,39,42,45]])})))[r(519)](this,arguments)}function getIconPaths(t){var e,o,i=_0x626799,n=[],r=t[i(474)],a=t[i(528)],r=(r.icon||"").toString()[i(507)]();return r[i(505)](REGEXP_ICON)?(e=r[i(420)]("'")[1],o=_path[i(523)](a,"i18n"),_fs[i(544)](o)[i(432)](function(t,r){var e=i,n=t,t=_path[e(523)](o,r);return _fs[e(429)](t).isFile()&&r[e(505)](REGEXP_JSON)&&n.push(t),n},[]).forEach(function(t){var r=i,t=_fs.readFileSync(t,r(503))[r(522)]()||"{}",t=JSON[r(418)](t);t[e]&&n[r(439)](_path.join(a,t[e]))})):n.push(_path[i(523)](a,r)),n}function ResourcePlugin(t){this[_0x626799(468)]=t}ResourcePlugin[_0x626799(455)][_0x626799(519)]=function(t){var e,n,r=_0x626799,o=this[r(468)];t[r(435)][r(438)][r(408)](r(450),(e=r,n=_asyncToGenerator(_regeneratorRuntime()[e(537)](function t(r,e){return _regeneratorRuntime().wrap(function(t){for(var r=_0x2d91;;)switch(t.prev=t[r(453)]){case 0:return _versionType===r(419)&&(iconPaths=getIconPaths(o)),t[r(453)]=3,transFile(o[r(528)],o[r(399)],"",o[r(526)]);case 3:e();case 4:case r(485):return t[r(487)]()}},t)})),function(t,r){return n[e(519)](this,arguments)}))},module[_0x626799(405)]=ResourcePlugin;