@mjhls/mjh-framework 1.0.1056 → 1.0.1059
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/README.md +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +1 -2
- package/dist/cjs/ExternalResources.js +1 -2
- package/dist/cjs/HorizontalArticleListing.js +1 -2
- package/dist/cjs/IssueLanding.js +1 -2
- package/dist/cjs/{MediaSeriesCard-6c1bfd9c.js → MediaSeriesCard-857688ac.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -3
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -3
- package/dist/cjs/PartnerDetailListing.js +1 -2
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
- package/dist/cjs/PodcastsLanding.js +2 -3
- package/dist/cjs/TaxonomyDescription.js +1 -2
- package/dist/cjs/VideoProgramLandingPage.js +1 -2
- package/dist/cjs/View.js +4 -3
- package/dist/cjs/faundadb.js +321 -4
- package/dist/cjs/getRelatedArticle.js +211 -6
- package/dist/cjs/getSerializers.js +1 -2
- package/dist/cjs/{index-46b24f52.js → index-f45cc731.js} +596 -13
- package/dist/cjs/index.js +1 -9
- package/dist/esm/ArticleProgramLandingPage.js +1 -2
- package/dist/esm/ExternalResources.js +1 -2
- package/dist/esm/HorizontalArticleListing.js +1 -2
- package/dist/esm/IssueLanding.js +1 -2
- package/dist/esm/{MediaSeriesCard-ed860bcf.js → MediaSeriesCard-3c455b88.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -3
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -3
- package/dist/esm/PartnerDetailListing.js +1 -2
- package/dist/esm/PartnerDetailListingPaginated.js +1 -2
- package/dist/esm/PodcastsLanding.js +2 -3
- package/dist/esm/TaxonomyDescription.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/View.js +4 -3
- package/dist/esm/faundadb.js +319 -2
- package/dist/esm/getRelatedArticle.js +206 -1
- package/dist/esm/getSerializers.js +1 -2
- package/dist/esm/{index-d3b5043e.js → index-787e3306.js} +586 -3
- package/dist/esm/index.js +1 -8
- package/package.json +1 -1
- package/dist/cjs/Auth.js +0 -3682
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/util-93a37fd0.js +0 -587
- package/dist/esm/Auth.js +0 -3661
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/util-8ed16d48.js +0 -585
|
@@ -9,7 +9,6 @@ var Router = require('next/router');
|
|
|
9
9
|
var index$1 = require('./index-187c967e.js');
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
11
11
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
12
|
-
var util = require('./util-93a37fd0.js');
|
|
13
12
|
require('./Beam.js');
|
|
14
13
|
var Segment = require('./Segment.js');
|
|
15
14
|
var main = require('./main-ae8472f3.js');
|
|
@@ -38,7 +37,7 @@ var AdSlot = require('./AdSlot.js');
|
|
|
38
37
|
var Row = require('react-bootstrap/Row');
|
|
39
38
|
var Col = require('react-bootstrap/Col');
|
|
40
39
|
var Head = require('next/head');
|
|
41
|
-
var inherits = require('./inherits-e47b5342.js');
|
|
40
|
+
var inherits$2 = require('./inherits-e47b5342.js');
|
|
42
41
|
var index_esm = require('./index.esm-d81454e7.js');
|
|
43
42
|
var Figure$1 = require('react-bootstrap/Figure');
|
|
44
43
|
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
@@ -932,6 +931,590 @@ var tty = {
|
|
|
932
931
|
WriteStream: WriteStream
|
|
933
932
|
};
|
|
934
933
|
|
|
934
|
+
// shim for using process in browser
|
|
935
|
+
|
|
936
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
937
|
+
var performance = global.performance || {};
|
|
938
|
+
performance.now ||
|
|
939
|
+
performance.mozNow ||
|
|
940
|
+
performance.msNow ||
|
|
941
|
+
performance.oNow ||
|
|
942
|
+
performance.webkitNow ||
|
|
943
|
+
function(){ return (new Date()).getTime() };
|
|
944
|
+
|
|
945
|
+
var inherits;
|
|
946
|
+
if (typeof Object.create === 'function'){
|
|
947
|
+
inherits = function inherits(ctor, superCtor) {
|
|
948
|
+
// implementation from standard node.js 'util' module
|
|
949
|
+
ctor.super_ = superCtor;
|
|
950
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
951
|
+
constructor: {
|
|
952
|
+
value: ctor,
|
|
953
|
+
enumerable: false,
|
|
954
|
+
writable: true,
|
|
955
|
+
configurable: true
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
} else {
|
|
960
|
+
inherits = function inherits(ctor, superCtor) {
|
|
961
|
+
ctor.super_ = superCtor;
|
|
962
|
+
var TempCtor = function () {};
|
|
963
|
+
TempCtor.prototype = superCtor.prototype;
|
|
964
|
+
ctor.prototype = new TempCtor();
|
|
965
|
+
ctor.prototype.constructor = ctor;
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
var inherits$1 = inherits;
|
|
969
|
+
|
|
970
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
971
|
+
var formatRegExp = /%[sdj%]/g;
|
|
972
|
+
function format(f) {
|
|
973
|
+
if (!isString(f)) {
|
|
974
|
+
var objects = [];
|
|
975
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
976
|
+
objects.push(inspect(arguments[i]));
|
|
977
|
+
}
|
|
978
|
+
return objects.join(' ');
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
var i = 1;
|
|
982
|
+
var args = arguments;
|
|
983
|
+
var len = args.length;
|
|
984
|
+
var str = String(f).replace(formatRegExp, function(x) {
|
|
985
|
+
if (x === '%%') return '%';
|
|
986
|
+
if (i >= len) return x;
|
|
987
|
+
switch (x) {
|
|
988
|
+
case '%s': return String(args[i++]);
|
|
989
|
+
case '%d': return Number(args[i++]);
|
|
990
|
+
case '%j':
|
|
991
|
+
try {
|
|
992
|
+
return JSON.stringify(args[i++]);
|
|
993
|
+
} catch (_) {
|
|
994
|
+
return '[Circular]';
|
|
995
|
+
}
|
|
996
|
+
default:
|
|
997
|
+
return x;
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
1001
|
+
if (isNull(x) || !isObject(x)) {
|
|
1002
|
+
str += ' ' + x;
|
|
1003
|
+
} else {
|
|
1004
|
+
str += ' ' + inspect(x);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
return str;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// Mark that a method should not be used.
|
|
1011
|
+
// Returns a modified function which warns once by default.
|
|
1012
|
+
// If --no-deprecation is set, then it is a no-op.
|
|
1013
|
+
function deprecate(fn, msg) {
|
|
1014
|
+
// Allow for deprecating things in the process of starting up.
|
|
1015
|
+
if (isUndefined(global.process)) {
|
|
1016
|
+
return function() {
|
|
1017
|
+
return deprecate(fn, msg).apply(this, arguments);
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
var warned = false;
|
|
1022
|
+
function deprecated() {
|
|
1023
|
+
if (!warned) {
|
|
1024
|
+
{
|
|
1025
|
+
console.error(msg);
|
|
1026
|
+
}
|
|
1027
|
+
warned = true;
|
|
1028
|
+
}
|
|
1029
|
+
return fn.apply(this, arguments);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
return deprecated;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
var debugs = {};
|
|
1036
|
+
var debugEnviron;
|
|
1037
|
+
function debuglog(set) {
|
|
1038
|
+
if (isUndefined(debugEnviron))
|
|
1039
|
+
debugEnviron = '';
|
|
1040
|
+
set = set.toUpperCase();
|
|
1041
|
+
if (!debugs[set]) {
|
|
1042
|
+
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1043
|
+
var pid = 0;
|
|
1044
|
+
debugs[set] = function() {
|
|
1045
|
+
var msg = format.apply(null, arguments);
|
|
1046
|
+
console.error('%s %d: %s', set, pid, msg);
|
|
1047
|
+
};
|
|
1048
|
+
} else {
|
|
1049
|
+
debugs[set] = function() {};
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
return debugs[set];
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Echos the value of a value. Trys to print the value out
|
|
1057
|
+
* in the best way possible given the different types.
|
|
1058
|
+
*
|
|
1059
|
+
* @param {Object} obj The object to print out.
|
|
1060
|
+
* @param {Object} opts Optional options object that alters the output.
|
|
1061
|
+
*/
|
|
1062
|
+
/* legacy: obj, showHidden, depth, colors*/
|
|
1063
|
+
function inspect(obj, opts) {
|
|
1064
|
+
// default options
|
|
1065
|
+
var ctx = {
|
|
1066
|
+
seen: [],
|
|
1067
|
+
stylize: stylizeNoColor
|
|
1068
|
+
};
|
|
1069
|
+
// legacy...
|
|
1070
|
+
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1071
|
+
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1072
|
+
if (isBoolean(opts)) {
|
|
1073
|
+
// legacy...
|
|
1074
|
+
ctx.showHidden = opts;
|
|
1075
|
+
} else if (opts) {
|
|
1076
|
+
// got an "options" object
|
|
1077
|
+
_extend(ctx, opts);
|
|
1078
|
+
}
|
|
1079
|
+
// set default options
|
|
1080
|
+
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1081
|
+
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1082
|
+
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1083
|
+
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1084
|
+
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1085
|
+
return formatValue(ctx, obj, ctx.depth);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1089
|
+
inspect.colors = {
|
|
1090
|
+
'bold' : [1, 22],
|
|
1091
|
+
'italic' : [3, 23],
|
|
1092
|
+
'underline' : [4, 24],
|
|
1093
|
+
'inverse' : [7, 27],
|
|
1094
|
+
'white' : [37, 39],
|
|
1095
|
+
'grey' : [90, 39],
|
|
1096
|
+
'black' : [30, 39],
|
|
1097
|
+
'blue' : [34, 39],
|
|
1098
|
+
'cyan' : [36, 39],
|
|
1099
|
+
'green' : [32, 39],
|
|
1100
|
+
'magenta' : [35, 39],
|
|
1101
|
+
'red' : [31, 39],
|
|
1102
|
+
'yellow' : [33, 39]
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
// Don't use 'blue' not visible on cmd.exe
|
|
1106
|
+
inspect.styles = {
|
|
1107
|
+
'special': 'cyan',
|
|
1108
|
+
'number': 'yellow',
|
|
1109
|
+
'boolean': 'yellow',
|
|
1110
|
+
'undefined': 'grey',
|
|
1111
|
+
'null': 'bold',
|
|
1112
|
+
'string': 'green',
|
|
1113
|
+
'date': 'magenta',
|
|
1114
|
+
// "name": intentionally not styling
|
|
1115
|
+
'regexp': 'red'
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
function stylizeWithColor(str, styleType) {
|
|
1120
|
+
var style = inspect.styles[styleType];
|
|
1121
|
+
|
|
1122
|
+
if (style) {
|
|
1123
|
+
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1124
|
+
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1125
|
+
} else {
|
|
1126
|
+
return str;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
function stylizeNoColor(str, styleType) {
|
|
1132
|
+
return str;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
function arrayToHash(array) {
|
|
1137
|
+
var hash = {};
|
|
1138
|
+
|
|
1139
|
+
array.forEach(function(val, idx) {
|
|
1140
|
+
hash[val] = true;
|
|
1141
|
+
});
|
|
1142
|
+
|
|
1143
|
+
return hash;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
1148
|
+
// Provide a hook for user-specified inspect functions.
|
|
1149
|
+
// Check that value is an object with an inspect function on it
|
|
1150
|
+
if (ctx.customInspect &&
|
|
1151
|
+
value &&
|
|
1152
|
+
isFunction(value.inspect) &&
|
|
1153
|
+
// Filter out the util module, it's inspect function is special
|
|
1154
|
+
value.inspect !== inspect &&
|
|
1155
|
+
// Also filter out any prototype objects using the circular check.
|
|
1156
|
+
!(value.constructor && value.constructor.prototype === value)) {
|
|
1157
|
+
var ret = value.inspect(recurseTimes, ctx);
|
|
1158
|
+
if (!isString(ret)) {
|
|
1159
|
+
ret = formatValue(ctx, ret, recurseTimes);
|
|
1160
|
+
}
|
|
1161
|
+
return ret;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
// Primitive types cannot have properties
|
|
1165
|
+
var primitive = formatPrimitive(ctx, value);
|
|
1166
|
+
if (primitive) {
|
|
1167
|
+
return primitive;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
// Look up the keys of the object.
|
|
1171
|
+
var keys = Object.keys(value);
|
|
1172
|
+
var visibleKeys = arrayToHash(keys);
|
|
1173
|
+
|
|
1174
|
+
if (ctx.showHidden) {
|
|
1175
|
+
keys = Object.getOwnPropertyNames(value);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
// IE doesn't make error fields non-enumerable
|
|
1179
|
+
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1180
|
+
if (isError(value)
|
|
1181
|
+
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1182
|
+
return formatError(value);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
// Some type of object without properties can be shortcutted.
|
|
1186
|
+
if (keys.length === 0) {
|
|
1187
|
+
if (isFunction(value)) {
|
|
1188
|
+
var name = value.name ? ': ' + value.name : '';
|
|
1189
|
+
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1190
|
+
}
|
|
1191
|
+
if (isRegExp(value)) {
|
|
1192
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1193
|
+
}
|
|
1194
|
+
if (isDate(value)) {
|
|
1195
|
+
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1196
|
+
}
|
|
1197
|
+
if (isError(value)) {
|
|
1198
|
+
return formatError(value);
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
var base = '', array = false, braces = ['{', '}'];
|
|
1203
|
+
|
|
1204
|
+
// Make Array say that they are Array
|
|
1205
|
+
if (isArray(value)) {
|
|
1206
|
+
array = true;
|
|
1207
|
+
braces = ['[', ']'];
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// Make functions say that they are functions
|
|
1211
|
+
if (isFunction(value)) {
|
|
1212
|
+
var n = value.name ? ': ' + value.name : '';
|
|
1213
|
+
base = ' [Function' + n + ']';
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
// Make RegExps say that they are RegExps
|
|
1217
|
+
if (isRegExp(value)) {
|
|
1218
|
+
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
// Make dates with properties first say the date
|
|
1222
|
+
if (isDate(value)) {
|
|
1223
|
+
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
// Make error with message first say the error
|
|
1227
|
+
if (isError(value)) {
|
|
1228
|
+
base = ' ' + formatError(value);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1232
|
+
return braces[0] + base + braces[1];
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
if (recurseTimes < 0) {
|
|
1236
|
+
if (isRegExp(value)) {
|
|
1237
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1238
|
+
} else {
|
|
1239
|
+
return ctx.stylize('[Object]', 'special');
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
ctx.seen.push(value);
|
|
1244
|
+
|
|
1245
|
+
var output;
|
|
1246
|
+
if (array) {
|
|
1247
|
+
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1248
|
+
} else {
|
|
1249
|
+
output = keys.map(function(key) {
|
|
1250
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
ctx.seen.pop();
|
|
1255
|
+
|
|
1256
|
+
return reduceToSingleString(output, base, braces);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
function formatPrimitive(ctx, value) {
|
|
1261
|
+
if (isUndefined(value))
|
|
1262
|
+
return ctx.stylize('undefined', 'undefined');
|
|
1263
|
+
if (isString(value)) {
|
|
1264
|
+
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1265
|
+
.replace(/'/g, "\\'")
|
|
1266
|
+
.replace(/\\"/g, '"') + '\'';
|
|
1267
|
+
return ctx.stylize(simple, 'string');
|
|
1268
|
+
}
|
|
1269
|
+
if (isNumber(value))
|
|
1270
|
+
return ctx.stylize('' + value, 'number');
|
|
1271
|
+
if (isBoolean(value))
|
|
1272
|
+
return ctx.stylize('' + value, 'boolean');
|
|
1273
|
+
// For some reason typeof null is "object", so special case here.
|
|
1274
|
+
if (isNull(value))
|
|
1275
|
+
return ctx.stylize('null', 'null');
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
function formatError(value) {
|
|
1280
|
+
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1285
|
+
var output = [];
|
|
1286
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1287
|
+
if (hasOwnProperty(value, String(i))) {
|
|
1288
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1289
|
+
String(i), true));
|
|
1290
|
+
} else {
|
|
1291
|
+
output.push('');
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
keys.forEach(function(key) {
|
|
1295
|
+
if (!key.match(/^\d+$/)) {
|
|
1296
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1297
|
+
key, true));
|
|
1298
|
+
}
|
|
1299
|
+
});
|
|
1300
|
+
return output;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1305
|
+
var name, str, desc;
|
|
1306
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1307
|
+
if (desc.get) {
|
|
1308
|
+
if (desc.set) {
|
|
1309
|
+
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1310
|
+
} else {
|
|
1311
|
+
str = ctx.stylize('[Getter]', 'special');
|
|
1312
|
+
}
|
|
1313
|
+
} else {
|
|
1314
|
+
if (desc.set) {
|
|
1315
|
+
str = ctx.stylize('[Setter]', 'special');
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1319
|
+
name = '[' + key + ']';
|
|
1320
|
+
}
|
|
1321
|
+
if (!str) {
|
|
1322
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1323
|
+
if (isNull(recurseTimes)) {
|
|
1324
|
+
str = formatValue(ctx, desc.value, null);
|
|
1325
|
+
} else {
|
|
1326
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1327
|
+
}
|
|
1328
|
+
if (str.indexOf('\n') > -1) {
|
|
1329
|
+
if (array) {
|
|
1330
|
+
str = str.split('\n').map(function(line) {
|
|
1331
|
+
return ' ' + line;
|
|
1332
|
+
}).join('\n').substr(2);
|
|
1333
|
+
} else {
|
|
1334
|
+
str = '\n' + str.split('\n').map(function(line) {
|
|
1335
|
+
return ' ' + line;
|
|
1336
|
+
}).join('\n');
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
} else {
|
|
1340
|
+
str = ctx.stylize('[Circular]', 'special');
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
if (isUndefined(name)) {
|
|
1344
|
+
if (array && key.match(/^\d+$/)) {
|
|
1345
|
+
return str;
|
|
1346
|
+
}
|
|
1347
|
+
name = JSON.stringify('' + key);
|
|
1348
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1349
|
+
name = name.substr(1, name.length - 2);
|
|
1350
|
+
name = ctx.stylize(name, 'name');
|
|
1351
|
+
} else {
|
|
1352
|
+
name = name.replace(/'/g, "\\'")
|
|
1353
|
+
.replace(/\\"/g, '"')
|
|
1354
|
+
.replace(/(^"|"$)/g, "'");
|
|
1355
|
+
name = ctx.stylize(name, 'string');
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
return name + ': ' + str;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
function reduceToSingleString(output, base, braces) {
|
|
1364
|
+
var length = output.reduce(function(prev, cur) {
|
|
1365
|
+
if (cur.indexOf('\n') >= 0) ;
|
|
1366
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1367
|
+
}, 0);
|
|
1368
|
+
|
|
1369
|
+
if (length > 60) {
|
|
1370
|
+
return braces[0] +
|
|
1371
|
+
(base === '' ? '' : base + '\n ') +
|
|
1372
|
+
' ' +
|
|
1373
|
+
output.join(',\n ') +
|
|
1374
|
+
' ' +
|
|
1375
|
+
braces[1];
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1383
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1384
|
+
function isArray(ar) {
|
|
1385
|
+
return Array.isArray(ar);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
function isBoolean(arg) {
|
|
1389
|
+
return typeof arg === 'boolean';
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
function isNull(arg) {
|
|
1393
|
+
return arg === null;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
function isNullOrUndefined(arg) {
|
|
1397
|
+
return arg == null;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
function isNumber(arg) {
|
|
1401
|
+
return typeof arg === 'number';
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
function isString(arg) {
|
|
1405
|
+
return typeof arg === 'string';
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
function isSymbol(arg) {
|
|
1409
|
+
return typeof arg === 'symbol';
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
function isUndefined(arg) {
|
|
1413
|
+
return arg === void 0;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
function isRegExp(re) {
|
|
1417
|
+
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
function isObject(arg) {
|
|
1421
|
+
return typeof arg === 'object' && arg !== null;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
function isDate(d) {
|
|
1425
|
+
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
function isError(e) {
|
|
1429
|
+
return isObject(e) &&
|
|
1430
|
+
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
function isFunction(arg) {
|
|
1434
|
+
return typeof arg === 'function';
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
function isPrimitive(arg) {
|
|
1438
|
+
return arg === null ||
|
|
1439
|
+
typeof arg === 'boolean' ||
|
|
1440
|
+
typeof arg === 'number' ||
|
|
1441
|
+
typeof arg === 'string' ||
|
|
1442
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
1443
|
+
typeof arg === 'undefined';
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
function isBuffer(maybeBuf) {
|
|
1447
|
+
return Buffer.isBuffer(maybeBuf);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
function objectToString(o) {
|
|
1451
|
+
return Object.prototype.toString.call(o);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
function pad(n) {
|
|
1456
|
+
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1461
|
+
'Oct', 'Nov', 'Dec'];
|
|
1462
|
+
|
|
1463
|
+
// 26 Feb 16:19:34
|
|
1464
|
+
function timestamp() {
|
|
1465
|
+
var d = new Date();
|
|
1466
|
+
var time = [pad(d.getHours()),
|
|
1467
|
+
pad(d.getMinutes()),
|
|
1468
|
+
pad(d.getSeconds())].join(':');
|
|
1469
|
+
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1474
|
+
function log() {
|
|
1475
|
+
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
function _extend(origin, add) {
|
|
1479
|
+
// Don't do anything if add isn't an object
|
|
1480
|
+
if (!add || !isObject(add)) return origin;
|
|
1481
|
+
|
|
1482
|
+
var keys = Object.keys(add);
|
|
1483
|
+
var i = keys.length;
|
|
1484
|
+
while (i--) {
|
|
1485
|
+
origin[keys[i]] = add[keys[i]];
|
|
1486
|
+
}
|
|
1487
|
+
return origin;
|
|
1488
|
+
}
|
|
1489
|
+
function hasOwnProperty(obj, prop) {
|
|
1490
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
var util = {
|
|
1494
|
+
inherits: inherits$1,
|
|
1495
|
+
_extend: _extend,
|
|
1496
|
+
log: log,
|
|
1497
|
+
isBuffer: isBuffer,
|
|
1498
|
+
isPrimitive: isPrimitive,
|
|
1499
|
+
isFunction: isFunction,
|
|
1500
|
+
isError: isError,
|
|
1501
|
+
isDate: isDate,
|
|
1502
|
+
isObject: isObject,
|
|
1503
|
+
isRegExp: isRegExp,
|
|
1504
|
+
isUndefined: isUndefined,
|
|
1505
|
+
isSymbol: isSymbol,
|
|
1506
|
+
isString: isString,
|
|
1507
|
+
isNumber: isNumber,
|
|
1508
|
+
isNullOrUndefined: isNullOrUndefined,
|
|
1509
|
+
isNull: isNull,
|
|
1510
|
+
isBoolean: isBoolean,
|
|
1511
|
+
isArray: isArray,
|
|
1512
|
+
inspect: inspect,
|
|
1513
|
+
deprecate: deprecate,
|
|
1514
|
+
format: format,
|
|
1515
|
+
debuglog: debuglog
|
|
1516
|
+
};
|
|
1517
|
+
|
|
935
1518
|
var require$$2 = {};
|
|
936
1519
|
|
|
937
1520
|
var node = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
@@ -998,7 +1581,7 @@ exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
|
998
1581
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
999
1582
|
|
|
1000
1583
|
if (1 !== fd && 2 !== fd) {
|
|
1001
|
-
util.
|
|
1584
|
+
util.deprecate(function(){}, 'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')();
|
|
1002
1585
|
}
|
|
1003
1586
|
|
|
1004
1587
|
var stream = 1 === fd ? process.stdout :
|
|
@@ -1021,7 +1604,7 @@ function useColors() {
|
|
|
1021
1604
|
|
|
1022
1605
|
exports.formatters.o = function(v) {
|
|
1023
1606
|
this.inspectOpts.colors = this.useColors;
|
|
1024
|
-
return util.
|
|
1607
|
+
return util.inspect(v, this.inspectOpts)
|
|
1025
1608
|
.split('\n').map(function(str) {
|
|
1026
1609
|
return str.trim()
|
|
1027
1610
|
}).join(' ');
|
|
@@ -1033,7 +1616,7 @@ exports.formatters.o = function(v) {
|
|
|
1033
1616
|
|
|
1034
1617
|
exports.formatters.O = function(v) {
|
|
1035
1618
|
this.inspectOpts.colors = this.useColors;
|
|
1036
|
-
return util.
|
|
1619
|
+
return util.inspect(v, this.inspectOpts);
|
|
1037
1620
|
};
|
|
1038
1621
|
|
|
1039
1622
|
/**
|
|
@@ -1063,7 +1646,7 @@ function formatArgs(args) {
|
|
|
1063
1646
|
*/
|
|
1064
1647
|
|
|
1065
1648
|
function log() {
|
|
1066
|
-
return stream.write(util.
|
|
1649
|
+
return stream.write(util.format.apply(util, arguments) + '\n');
|
|
1067
1650
|
}
|
|
1068
1651
|
|
|
1069
1652
|
/**
|
|
@@ -8927,12 +9510,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8927
9510
|
};
|
|
8928
9511
|
|
|
8929
9512
|
var InscreenSensor = function (_React$Component) {
|
|
8930
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
9513
|
+
inherits$2._inherits(InscreenSensor, _React$Component);
|
|
8931
9514
|
|
|
8932
9515
|
function InscreenSensor(props) {
|
|
8933
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
9516
|
+
inherits$2._classCallCheck(this, InscreenSensor);
|
|
8934
9517
|
|
|
8935
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
9518
|
+
var _this = inherits$2._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$2._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8936
9519
|
|
|
8937
9520
|
_this.scrollHandler = function () {
|
|
8938
9521
|
var visible = _this.checkInside();
|
|
@@ -8968,7 +9551,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8968
9551
|
return _this;
|
|
8969
9552
|
}
|
|
8970
9553
|
|
|
8971
|
-
inherits._createClass(InscreenSensor, [{
|
|
9554
|
+
inherits$2._createClass(InscreenSensor, [{
|
|
8972
9555
|
key: 'componentDidMount',
|
|
8973
9556
|
value: function componentDidMount() {
|
|
8974
9557
|
this.visible = this.checkInside();
|
|
@@ -10099,15 +10682,15 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
10099
10682
|
|
|
10100
10683
|
|
|
10101
10684
|
|
|
10102
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
10685
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$2.classCallCheck);
|
|
10103
10686
|
|
|
10104
10687
|
|
|
10105
10688
|
|
|
10106
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
10689
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$2.possibleConstructorReturn);
|
|
10107
10690
|
|
|
10108
10691
|
|
|
10109
10692
|
|
|
10110
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
10693
|
+
var _inherits3 = _interopRequireDefault(inherits$2.inherits);
|
|
10111
10694
|
|
|
10112
10695
|
|
|
10113
10696
|
|