next
Version:
The React Framework
1 lines • 10.1 kB
JavaScript
module.exports=(()=>{var e={9:(e,r,n)=>{try{var t=n(669);if(typeof t.inherits!=="function")throw"";e.exports=t.inherits}catch(r){e.exports=n(918)}},918:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function inherits(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype;e.prototype=new n;e.prototype.constructor=e}}},698:e=>{e.exports=function isBuffer(e){return e instanceof Buffer}},981:(e,r,n)=>{var t=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(e){var r=Object.keys(e);var n={};for(var t=0;t<r.length;t++){n[r[t]]=Object.getOwnPropertyDescriptor(e,r[t])}return n};var i=/%[sdj%]/g;r.format=function(e){if(!isString(e)){var r=[];for(var n=0;n<arguments.length;n++){r.push(inspect(arguments[n]))}return r.join(" ")}var n=1;var t=arguments;var o=t.length;var f=String(e).replace(i,function(e){if(e==="%%")return"%";if(n>=o)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(e){return"[Circular]"}default:return e}});for(var a=t[n];n<o;a=t[++n]){if(isNull(a)||!isObject(a)){f+=" "+a}else{f+=" "+inspect(a)}}return f};r.deprecate=function(e,n){if(typeof process!=="undefined"&&process.noDeprecation===true){return e}if(typeof process==="undefined"){return function(){return r.deprecate(e,n).apply(this,arguments)}}var t=false;function deprecated(){if(!t){if(process.throwDeprecation){throw new Error(n)}else if(process.traceDeprecation){console.trace(n)}else{console.error(n)}t=true}return e.apply(this,arguments)}return deprecated};var o={};var f;r.debuglog=function(e){if(isUndefined(f))f=process.env.NODE_DEBUG||"";e=e.toUpperCase();if(!o[e]){if(new RegExp("\\b"+e+"\\b","i").test(f)){var n=process.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else{o[e]=function(){}}}return o[e]};function inspect(e,n){var t={seen:[],stylize:stylizeNoColor};if(arguments.length>=3)t.depth=arguments[2];if(arguments.length>=4)t.colors=arguments[3];if(isBoolean(n)){t.showHidden=n}else if(n){r._extend(t,n)}if(isUndefined(t.showHidden))t.showHidden=false;if(isUndefined(t.depth))t.depth=2;if(isUndefined(t.colors))t.colors=false;if(isUndefined(t.customInspect))t.customInspect=true;if(t.colors)t.stylize=stylizeWithColor;return formatValue(t,e,t.depth)}r.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(e,r){var n=inspect.styles[r];if(n){return"["+inspect.colors[n][0]+"m"+e+"["+inspect.colors[n][1]+"m"}else{return e}}function stylizeNoColor(e,r){return e}function arrayToHash(e){var r={};e.forEach(function(e,n){r[e]=true});return r}function formatValue(e,n,t){if(e.customInspect&&n&&isFunction(n.inspect)&&n.inspect!==r.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(t,e);if(!isString(i)){i=formatValue(e,i,t)}return i}var o=formatPrimitive(e,n);if(o){return o}var f=Object.keys(n);var a=arrayToHash(f);if(e.showHidden){f=Object.getOwnPropertyNames(n)}if(isError(n)&&(f.indexOf("message")>=0||f.indexOf("description")>=0)){return formatError(n)}if(f.length===0){if(isFunction(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(isRegExp(n)){return e.stylize(RegExp.prototype.toString.call(n),"regexp")}if(isDate(n)){return e.stylize(Date.prototype.toString.call(n),"date")}if(isError(n)){return formatError(n)}}var l="",c=false,s=["{","}"];if(isArray(n)){c=true;s=["[","]"]}if(isFunction(n)){var p=n.name?": "+n.name:"";l=" [Function"+p+"]"}if(isRegExp(n)){l=" "+RegExp.prototype.toString.call(n)}if(isDate(n)){l=" "+Date.prototype.toUTCString.call(n)}if(isError(n)){l=" "+formatError(n)}if(f.length===0&&(!c||n.length==0)){return s[0]+l+s[1]}if(t<0){if(isRegExp(n)){return e.stylize(RegExp.prototype.toString.call(n),"regexp")}else{return e.stylize("[Object]","special")}}e.seen.push(n);var y;if(c){y=formatArray(e,n,t,a,f)}else{y=f.map(function(r){return formatProperty(e,n,t,a,r,c)})}e.seen.pop();return reduceToSingleString(y,l,s)}function formatPrimitive(e,r){if(isUndefined(r))return e.stylize("undefined","undefined");if(isString(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(isNumber(r))return e.stylize(""+r,"number");if(isBoolean(r))return e.stylize(""+r,"boolean");if(isNull(r))return e.stylize("null","null")}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,r,n,t,i){var o=[];for(var f=0,a=r.length;f<a;++f){if(hasOwnProperty(r,String(f))){o.push(formatProperty(e,r,n,t,String(f),true))}else{o.push("")}}i.forEach(function(i){if(!i.match(/^\d+$/)){o.push(formatProperty(e,r,n,t,i,true))}});return o}function formatProperty(e,r,n,t,i,o){var f,a,u;u=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]};if(u.get){if(u.set){a=e.stylize("[Getter/Setter]","special")}else{a=e.stylize("[Getter]","special")}}else{if(u.set){a=e.stylize("[Setter]","special")}}if(!hasOwnProperty(t,i)){f="["+i+"]"}if(!a){if(e.seen.indexOf(u.value)<0){if(isNull(n)){a=formatValue(e,u.value,null)}else{a=formatValue(e,u.value,n-1)}if(a.indexOf("\n")>-1){if(o){a=a.split("\n").map(function(e){return" "+e}).join("\n").substr(2)}else{a="\n"+a.split("\n").map(function(e){return" "+e}).join("\n")}}}else{a=e.stylize("[Circular]","special")}}if(isUndefined(f)){if(o&&i.match(/^\d+$/)){return a}f=JSON.stringify(""+i);if(f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){f=f.substr(1,f.length-2);f=e.stylize(f,"name")}else{f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");f=e.stylize(f,"string")}}return f+": "+a}function reduceToSingleString(e,r,n){var t=0;var i=e.reduce(function(e,r){t++;if(r.indexOf("\n")>=0)t++;return e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60){return n[0]+(r===""?"":r+"\n ")+" "+e.join(",\n ")+" "+n[1]}return n[0]+r+" "+e.join(", ")+" "+n[1]}function isArray(e){return Array.isArray(e)}r.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}r.isBoolean=isBoolean;function isNull(e){return e===null}r.isNull=isNull;function isNullOrUndefined(e){return e==null}r.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}r.isNumber=isNumber;function isString(e){return typeof e==="string"}r.isString=isString;function isSymbol(e){return typeof e==="symbol"}r.isSymbol=isSymbol;function isUndefined(e){return e===void 0}r.isUndefined=isUndefined;function isRegExp(e){return isObject(e)&&objectToString(e)==="[object RegExp]"}r.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}r.isObject=isObject;function isDate(e){return isObject(e)&&objectToString(e)==="[object Date]"}r.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}r.isError=isError;function isFunction(e){return typeof e==="function"}r.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}r.isPrimitive=isPrimitive;r.isBuffer=n(698);function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}var a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var e=new Date;var r=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),a[e.getMonth()],r].join(" ")}r.log=function(){console.log("%s - %s",timestamp(),r.format.apply(r,arguments))};r.inherits=n(9);r._extend=function(e,r){if(!r||!isObject(r))return e;var n=Object.keys(r);var t=n.length;while(t--){e[n[t]]=r[n[t]]}return e};function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var u=typeof Symbol!=="undefined"?Symbol("util.promisify.custom"):undefined;r.promisify=function promisify(e){if(typeof e!=="function")throw new TypeError('The "original" argument must be of type Function');if(u&&e[u]){var r=e[u];if(typeof r!=="function"){throw new TypeError('The "util.promisify.custom" argument must be of type Function')}Object.defineProperty(r,u,{value:r,enumerable:false,writable:false,configurable:true});return r}function r(){var r,n;var t=new Promise(function(e,t){r=e;n=t});var i=[];for(var o=0;o<arguments.length;o++){i.push(arguments[o])}i.push(function(e,t){if(e){n(e)}else{r(t)}});try{e.apply(this,i)}catch(e){n(e)}return t}Object.setPrototypeOf(r,Object.getPrototypeOf(e));if(u)Object.defineProperty(r,u,{value:r,enumerable:false,writable:false,configurable:true});return Object.defineProperties(r,t(e))};r.promisify.custom=u;function callbackifyOnRejected(e,r){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e;e=n}return r(e)}function callbackify(e){if(typeof e!=="function"){throw new TypeError('The "original" argument must be of type Function')}function callbackified(){var r=[];for(var n=0;n<arguments.length;n++){r.push(arguments[n])}var t=r.pop();if(typeof t!=="function"){throw new TypeError("The last argument must be of type Function")}var i=this;var o=function(){return t.apply(i,arguments)};e.apply(this,r).then(function(e){process.nextTick(o,null,e)},function(e){process.nextTick(callbackifyOnRejected,e,o)})}Object.setPrototypeOf(callbackified,Object.getPrototypeOf(e));Object.defineProperties(callbackified,t(e));return callbackified}r.callbackify=callbackify},669:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var i=true;try{e[n](t,t.exports,__nccwpck_require__);i=false}finally{if(i)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(981)})();