fa-toolkit
Version:
a devtool for fast app
1 lines • 12.8 kB
JavaScript
;var _0x4c46a6=_0x32a2;function _typeof(t){var r=_0x32a2;return(_typeof=r(533)==typeof Symbol&&r(461)==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(530)]?"symbol":typeof t})(t)}function _regeneratorRuntime(){var f=_0x32a2;_regeneratorRuntime=function(){return u};var u={},t=Object.prototype,s=t.hasOwnProperty,o=Object[f(491)]||function(t,r,e){t[r]=e.value},r=f(533)==typeof Symbol?Symbol:{},i=r.iterator||f(456),e=r.asyncIterator||"@@asyncIterator",n=r.toStringTag||f(504);function a(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{a({},"")}catch(t){a=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var i,a,u,c,s,r=r&&r.prototype instanceof p?r:p,r=Object.create(r.prototype),n=new w(n||[]);return o(r,"_invoke",{value:(i=t,a=e,u=n,s=(c=f)(551),function(t,r){var e=c;if(e(540)===s)throw new Error("Generator is already running");if(e(558)===s){if(e(570)===t)throw r;return O()}for(u[e(465)]=t,u.arg=r;;){var n=u.delegate;if(n){var o=function t(r,e){var n=f,o=e[n(465)],i=r[n(515)][o];if(void 0===i)return e[n(531)]=null,"throw"===o&&r[n(515)].return&&(e[n(465)]="return",e.arg=void 0,t(r,e),n(570)===e.method)||n(547)!==o&&(e[n(465)]=n(570),e.arg=new TypeError(n(550)+o+n(479))),l;i=h(i,r.iterator,e.arg);if(n(570)===i.type)return e[n(465)]="throw",e[n(459)]=i[n(459)],e[n(531)]=null,l;var i=i[n(459)];return i?i[n(486)]?(e[r[n(563)]]=i[n(473)],e[n(469)]=r[n(458)],n(547)!==e.method&&(e[n(465)]=n(469),e[n(459)]=void 0),e[n(531)]=null,l):i:(e[n(465)]=n(570),e.arg=new TypeError("iterator result is not an object"),e[n(531)]=null,l)}(n,u);if(o){if(o===l)continue;return o}}if(e(469)===u[e(465)])u[e(485)]=u[e(488)]=u[e(459)];else if("throw"===u[e(465)]){if(e(551)===s)throw s=e(558),u[e(459)];u[e(481)](u[e(459)])}else"return"===u.method&&u.abrupt("return",u[e(459)]);s=e(540);o=h(i,a,u);if(e(471)===o[e(506)]){if(s=u.done?"completed":e(565),o[e(459)]===l)continue;return{value:o[e(459)],done:u.done}}e(570)===o[e(506)]&&(s=e(558),u[e(465)]=e(570),u[e(459)]=o[e(459)])}})}),r}function h(t,r,e){var n=f;try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:n(570),arg:t}}}u.wrap=c;var l={};function p(){}function v(){}function y(){}var d={};a(d,i,function(){return this});r=Object[f(507)],r=r&&r(r(P([])));r&&r!==t&&s.call(r,i)&&(d=r);var _=y[f(530)]=p[f(530)]=Object.create(d);function b(t){var r=f;[r(469),"throw",r(547)][r(500)](function(r){a(t,r,function(t){return this[_0x32a2(560)](r,t)})})}function m(u,c){var r;o(this,"_invoke",{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i=_0x32a2,t=h(u[t],u,e);if(i(570)!==t[i(506)]){var a=t[i(459)],e=a.value;return e&&i(482)==_typeof(e)&&s[i(535)](e,i(528))?c[i(463)](e[i(528)])[i(494)](function(t){r(i(469),t,n,o)},function(t){r("throw",t,n,o)}):c[i(463)](e)[i(494)](function(t){a.value=t,n(a)},function(t){return r("throw",t,n,o)})}o(t[i(459)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function x(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(516)]=t[1]),2 in t&&(e[r(451)]=t[2],e[r(455)]=t[3]),this[r(452)][r(492)](e)}function g(t){var r=f,e=t[r(490)]||{};e[r(506)]=r(471),delete e[r(459)],t[r(490)]=e}function w(t){var r=f;this[r(452)]=[{tryLoc:r(460)}],t[r(500)](x,this),this.reset(!0)}function P(e){var n=f;if(e){var t=e[i];if(t)return t[n(535)](e);if(n(533)==typeof e.next)return e;if(!isNaN(e[n(498)])){var o=-1,t=function t(){for(var r=n;++o<e[r(498)];)if(s[r(535)](e,o))return t[r(473)]=e[o],t.done=!1,t;return t.value=void 0,t[r(486)]=!0,t};return t[n(469)]=t}}return{next:O}}function O(){return{value:void 0,done:!0}}return v[f(530)]=y,o(_,f(466),{value:y,configurable:!0}),o(y,f(466),{value:v,configurable:!0}),v[f(569)]=a(y,n,"GeneratorFunction"),u.isGeneratorFunction=function(t){var r=f,t=r(533)==typeof t&&t[r(466)];return!!t&&(t===v||"GeneratorFunction"===(t[r(569)]||t.name))},u[f(536)]=function(t){var r=f;return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t[r(502)]=y,a(t,n,r(561))),t.prototype=Object[r(520)](_),t},u[f(497)]=function(t){return{__await:t}},b(m.prototype),a(m[f(530)],e,function(){return this}),u[f(454)]=m,u[f(566)]=function(t,r,e,n,o){var i=f;void 0===o&&(o=Promise);var a=new m(c(t,r,e,n),o);return u[i(544)](r)?a:a[i(469)]()[i(494)](function(t){var r=i;return t.done?t[r(473)]:a[r(469)]()})},b(_),a(_,n,f(548)),a(_,i,function(){return this}),a(_,f(478),function(){return f(477)}),u[f(489)]=function(t){var r,n=f,o=Object(t),i=[];for(r in o)i[n(492)](r);return i[n(521)](),function t(){for(var r=n;i[r(498)];){var e=i[r(564)]();if(e in o)return t[r(473)]=e,t[r(486)]=!1,t}return t[r(486)]=!0,t}},u[f(532)]=P,w[f(530)]={constructor:w,reset:function(t){var r=f;if(this[r(476)]=0,this[r(469)]=0,this[r(485)]=this._sent=void 0,this[r(486)]=!1,this[r(531)]=null,this.method=r(469),this.arg=void 0,this[r(452)][r(500)](g),!t)for(var e in this)"t"===e[r(511)](0)&&s[r(535)](this,e)&&!isNaN(+e[r(483)](1))&&(this[e]=void 0)},stop:function(){var t=f;this[t(486)]=!0;var r=this[t(452)][0][t(490)];if(t(570)===r[t(506)])throw r[t(459)];return this.rval},dispatchException:function(n){var t=f;if(this.done)throw n;var o=this;function r(t,r){var e=_0x32a2;return a.type=e(570),a[e(459)]=n,o[e(469)]=t,r&&(o.method=e(469),o[e(459)]=void 0),!!r}for(var e=this[t(452)][t(498)]-1;0<=e;--e){var i=this[t(452)][e],a=i[t(490)];if(t(460)===i.tryLoc)return r("end");if(i.tryLoc<=this[t(476)]){var u=s[t(535)](i,t(516)),c=s[t(535)](i,"finallyLoc");if(u&&c){if(this[t(476)]<i[t(516)])return r(i.catchLoc,!0);if(this[t(476)]<i[t(451)])return r(i[t(451)])}else if(u){if(this[t(476)]<i[t(516)])return r(i[t(516)],!0)}else{if(!c)throw new Error(t(526));if(this[t(476)]<i[t(451)])return r(i[t(451)])}}}},abrupt:function(t,r){for(var e=f,n=this[e(452)][e(498)]-1;0<=n;--n){var o=this[e(452)][n];if(o[e(517)]<=this[e(476)]&&s.call(o,e(451))&&this.prev<o[e(451)]){var i=o;break}}var a=(i=i&&(e(518)===t||e(525)===t)&&i[e(517)]<=r&&r<=i[e(451)]?null:i)?i.completion:{};return a.type=t,a[e(459)]=r,i?(this.method=e(469),this.next=i[e(451)],l):this.complete(a)},complete:function(t,r){var e=f;if(e(570)===t[e(506)])throw t[e(459)];return e(518)===t[e(506)]||e(525)===t[e(506)]?this[e(469)]=t[e(459)]:"return"===t[e(506)]?(this[e(462)]=this[e(459)]=t[e(459)],this.method="return",this.next=e(467)):"normal"===t[e(506)]&&r&&(this[e(469)]=r),l},finish:function(t){for(var r=f,e=this[r(452)][r(498)]-1;0<=e;--e){var n=this.tryEntries[e];if(n[r(451)]===t)return this.complete(n[r(490)],n[r(455)]),g(n),l}},catch:function(t){for(var r=f,e=this[r(452)][r(498)]-1;0<=e;--e){var n=this.tryEntries[e];if(n[r(517)]===t){var o,i=n[r(490)];return r(570)===i[r(506)]&&(o=i[r(459)],g(n)),o}}throw new Error(r(513))},delegateYield:function(t,r,e){var n=f;return this[n(531)]={iterator:P(t),resultName:r,nextLoc:e},n(469)===this[n(465)]&&(this[n(459)]=void 0),l}},u}function _0x15b5(){var t=["resourcePath","prev","[object Generator]","toString","' method","get","dispatchException","object","slice","output","sent","done","12QncbTO","_sent","keys","completion","defineProperty","push","isAbsolute","then","getOptions","loader-utils","awrap","length","cacheable","forEach","match","__proto__","set","@@toStringTag","join","type","getPrototypeOf","has","2796634dJqPVn","parse","charAt","9Bqklue","illegal catch attempt","exports","iterator","catchLoc","tryLoc","break","lastIndexOf","create","reverse","1312278xnoTPq","abrupt","2299736UlrKAs","continue","try statement without catch or finally","stringifyRequest","__await","assign","prototype","delegate","values","function","apply","call","mark","path","options","base64","executing","wrap","addDependency","dirname","isGeneratorFunction","split","replace","return","Generator","binary","The iterator does not provide a '","suspendedStart","loadModule","792516MieqoX","_compilation","27596uikQIv","outputOptions","665VGPNgH","completed","indexOf","_invoke","GeneratorFunction","stop","resultName","pop","suspendedYield","async","absolutePath","max","displayName","throw","publicPath","Script","finallyLoc","tryEntries","13879270VjTJlp","AsyncIterator","afterLoc","@@iterator","context","nextLoc","arg","root","symbol","rval","resolve","all","method","constructor","end","btoa","next","remainingRequest","normal","5177746OYRKPX","value","shift"];return(_0x15b5=function(){return t})()}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x32a2;try{var c=t[i](a),s=c[u(473)]}catch(t){return void e(t)}c.done?r(s):Promise[u(463)](s)[u(494)](n,o)}function _asyncToGenerator(c){return function(){var t=this,u=arguments;return new Promise(function(r,e){var n=_0x32a2,o=c[n(534)](t,u);function i(t){asyncGeneratorStep(o,r,e,i,a,n(469),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(570),t)}i(void 0)})}}!function(){for(var t=_0x32a2,r=_0x15b5();;)try{if(763394==+parseInt(t(522))+-parseInt(t(509))/2+-parseInt(t(553))/3+parseInt(t(555))/4*(parseInt(t(557))/5)+parseInt(t(487))/6*(-parseInt(t(472))/7)+parseInt(t(524))/8+parseInt(t(512))/9*(parseInt(t(453))/10))break;r.push(r.shift())}catch(t){r.push(r.shift())}}();var vm=require("vm"),path=require(_0x4c46a6(537)),fs=require("fs"),_require=require(_0x4c46a6(496)),getOptions=_require[_0x4c46a6(495)],stringifyRequest=_require[_0x4c46a6(527)],COMMENT_RE=/\/\*[\s\S]*?\*\//g;function _0x32a2(t,r){var e=_0x15b5();return(_0x32a2=function(t,r){return e[t-=451]})(t,r)}function extractLoader(t){return _extractLoader.apply(this,arguments)}function _extractLoader(){var t=_0x4c46a6;return(_extractLoader=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var n,o,i=_0x32a2;return _regeneratorRuntime()[i(541)](function(t){for(var r=i;;)switch(t[r(476)]=t[r(469)]){case 0:return n=this[r(566)](),o=getOptions(this)||{},o=getPublicPath(o,this),this[r(499)](),t[r(476)]=4,t.next=7,evalDependencyGraph({loaderContext:this,src:e,filename:this[r(475)],publicPath:o});case 7:o=t[r(485)],n(null,o),t[r(469)]=14;break;case 11:t[r(476)]=11,t.t0=t.catch(4),n(t.t0);case 14:case r(467):return t[r(562)]()}},t,this,[[4,11]])})))[t(534)](this,arguments)}function btoa(t){var r=_0x4c46a6,t=t instanceof Buffer?t:Buffer.from(t[r(478)](),r(549));return t[r(478)](r(539))}function evalDependencyGraph(t){var c=t.loaderContext,r=t.src,e=t.filename,t=t.publicPath,s=void 0===t?"":t,f=new Map;function h(){return n[_0x32a2(534)](this,arguments)}function n(){var t=_0x32a2;return(n=_asyncToGenerator(_regeneratorRuntime()[t(536)](function t(r,a){var u,e,n,o;return _regeneratorRuntime().wrap(function(t){for(var i=_0x32a2;;)switch(t[i(476)]=t.next){case 0:return o=new vm[i(572)](r,{fileName:a,displayErrors:!0}),e={},u=[],e=Object[i(529)]({},global,{exports:e,module:{exports:e},__webpack_publicpath__:s,require:function(r){var t=i;function e(t){return r[_0x32a2(534)](this,arguments)}return e[t(478)]=function(){return r[t(478)]()},e}(function(t){var r=i,e=Math[r(568)](t[r(559)]("?"),t[r(498)]),n=t.slice(0,e),o=n[r(519)]("!"),e=t.slice(e),t=t[r(483)](0,o+1),n=n[r(483)](o+1),o="",o=path[r(493)](n)?n:path[r(505)](path[r(543)](a),n),n=path.extname(o);if(f[r(508)](o))return f[r(480)](o);if(""!==t||".js"!==n)return u[r(492)]({absolutePath:o,absoluteRequest:t+o+e}),"";c[r(542)](o);e=require(o);return f[r(503)](o,e),e})}),o.runInNewContext(e),t[i(469)]=7,Promise[i(464)](u.map(function(){var r=i,e=_asyncToGenerator(_regeneratorRuntime()[r(536)](function t(e){var n,o;return _regeneratorRuntime().wrap(function(t){for(var r=_0x32a2;;)switch(t[r(476)]=t[r(469)]){case 0:return n=e[r(567)],o=e.absoluteRequest,t[r(469)]=3,function(t){var r,e,o=_0x32a2,n=t[o(545)]("!");n[1]&&((e=c[o(470)].split("!")[0])&&(r=stringifyRequest(c,e)),t=(n[1][o(501)](/^(.*?)(\?.*)/)||n)[1],e=path[o(505)](c[o(457)],t),fs.existsSync(e)||t===r||(n[1]=JSON[o(510)](r)));var i=n[o(505)]("!");return new Promise(function(e,n){c[o(552)](i,function(t,r){t?n(t):e(r)})})}(o);case 3:return o=t.sent,t[r(523)](r(547),h(o,n));case 5:case r(467):return t.stop()}},t)}));return function(t){return e[r(534)](this,arguments)}}()));case 7:return n=t[i(485)],o=function(t){var r=_0x32a2,e=r(468)in global,n=global[r(468)];global[r(468)]=btoa;try{return t&&t[r(478)]()}catch(t){throw t}finally{e?global[r(468)]=n:delete global[r(468)]}}(e.module[i(514)]),o=o[i(546)](COMMENT_RE,function(){return n[i(474)]()||""}),f[i(503)](a,o),t[i(523)](i(547),o);case 12:case i(467):return t[i(562)]()}},t)})))[t(534)](this,arguments)}return h(r,e)}function getPublicPath(t,r){var e=_0x4c46a6;return"publicPath"in t?typeof t[e(571)]===e(533)?t[e(571)](r):t.publicPath:r[e(538)]&&r[e(538)][e(484)]&&"publicPath"in r[e(538)][e(484)]?r[e(538)][e(484)].publicPath:r[e(554)]&&r[e(554)][e(556)]&&e(571)in r[e(554)][e(556)]?r[e(554)].outputOptions.publicPath:""}module[_0x4c46a6(514)]=extractLoader;