@inf-monkeys-tech/monkeys-design 0.4.55 → 0.4.56

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.
Files changed (91) hide show
  1. package/README.md +29 -5
  2. package/dist/{LandingPage-CR5KyIwR.d.mts → LandingPage-D7FF9gnM.d.mts} +3 -3
  3. package/dist/{LandingPage-CR5KyIwR.d.ts → LandingPage-D7FF9gnM.d.ts} +3 -3
  4. package/dist/components/base/index.d.mts +3 -3
  5. package/dist/components/base/index.d.ts +3 -3
  6. package/dist/components/base/index.js +7229 -2042
  7. package/dist/components/base/index.js.map +1 -1
  8. package/dist/components/base/index.mjs +7215 -2052
  9. package/dist/components/base/index.mjs.map +1 -1
  10. package/dist/components/data-explorer/index.d.mts +1 -1
  11. package/dist/components/data-explorer/index.d.ts +1 -1
  12. package/dist/components/data-explorer/index.js +166 -10
  13. package/dist/components/data-explorer/index.js.map +1 -1
  14. package/dist/components/data-explorer/index.mjs +167 -11
  15. package/dist/components/data-explorer/index.mjs.map +1 -1
  16. package/dist/components/layout/index.d.mts +1 -1
  17. package/dist/components/layout/index.d.ts +1 -1
  18. package/dist/components/layout/index.js +769 -1603
  19. package/dist/components/layout/index.js.map +1 -1
  20. package/dist/components/layout/index.mjs +772 -1607
  21. package/dist/components/layout/index.mjs.map +1 -1
  22. package/dist/components/login/index.d.mts +29 -29
  23. package/dist/components/login/index.d.ts +29 -29
  24. package/dist/components/toast/index.d.mts +2 -6
  25. package/dist/components/toast/index.d.ts +2 -6
  26. package/dist/components/toast/index.js +173 -11
  27. package/dist/components/toast/index.js.map +1 -1
  28. package/dist/components/toast/index.mjs +174 -12
  29. package/dist/components/toast/index.mjs.map +1 -1
  30. package/dist/components/toolbar/index.js +231 -21
  31. package/dist/components/toolbar/index.js.map +1 -1
  32. package/dist/components/toolbar/index.mjs +231 -21
  33. package/dist/components/toolbar/index.mjs.map +1 -1
  34. package/dist/components/workbench/index.d.mts +6 -6
  35. package/dist/components/workbench/index.d.ts +6 -6
  36. package/dist/components/workbench/index.js +2281 -1030
  37. package/dist/components/workbench/index.js.map +1 -1
  38. package/dist/components/workbench/index.mjs +2282 -1031
  39. package/dist/components/workbench/index.mjs.map +1 -1
  40. package/dist/icons/oauth/index.d.mts +5 -5
  41. package/dist/icons/oauth/index.d.ts +5 -5
  42. package/dist/index.d.mts +12 -8
  43. package/dist/index.d.ts +12 -8
  44. package/dist/index.js +7911 -4772
  45. package/dist/index.js.map +1 -1
  46. package/dist/index.mjs +7874 -4773
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/locale/index.d.mts +236 -0
  49. package/dist/locale/index.d.ts +236 -0
  50. package/dist/locale/index.js +338 -0
  51. package/dist/locale/index.js.map +1 -0
  52. package/dist/locale/index.mjs +332 -0
  53. package/dist/locale/index.mjs.map +1 -0
  54. package/dist/palette/index.js +259 -2748
  55. package/dist/palette/index.js.map +1 -1
  56. package/dist/palette/index.mjs +255 -2748
  57. package/dist/palette/index.mjs.map +1 -1
  58. package/dist/provider/index.d.mts +51 -0
  59. package/dist/provider/index.d.ts +51 -0
  60. package/dist/provider/index.js +2688 -0
  61. package/dist/provider/index.js.map +1 -0
  62. package/dist/provider/index.mjs +2677 -0
  63. package/dist/provider/index.mjs.map +1 -0
  64. package/dist/styles.css +1 -0
  65. package/dist/theme-CJlW1TtA.d.mts +142 -0
  66. package/dist/{theme-CUATVszl.d.mts → theme-CplaoMqT.d.mts} +2 -2
  67. package/dist/{theme-BuvXrHFY.d.ts → theme-DPVX8CfK.d.ts} +2 -2
  68. package/dist/theme-r7GYhlCk.d.ts +142 -0
  69. package/dist/theme-system/index.d.mts +5 -92
  70. package/dist/theme-system/index.d.ts +5 -92
  71. package/dist/theme-system/index.js +295 -4329
  72. package/dist/theme-system/index.js.map +1 -1
  73. package/dist/theme-system/index.mjs +183 -4221
  74. package/dist/theme-system/index.mjs.map +1 -1
  75. package/dist/themes/artist/index.d.mts +3 -3
  76. package/dist/themes/artist/index.d.ts +3 -3
  77. package/dist/themes/bsd/index.d.mts +3 -3
  78. package/dist/themes/bsd/index.d.ts +3 -3
  79. package/dist/themes/concept/index.d.mts +2 -2
  80. package/dist/themes/concept/index.d.ts +2 -2
  81. package/dist/themes/default/index.d.mts +3 -3
  82. package/dist/themes/default/index.d.ts +3 -3
  83. package/dist/types-BkWanMMW.d.mts +159 -0
  84. package/dist/types-BkWanMMW.d.ts +159 -0
  85. package/dist/types-DpRjPpxY.d.mts +93 -0
  86. package/dist/{types-CL6yBAmi.d.mts → types-DvHvN4RJ.d.mts} +514 -10
  87. package/dist/{types-CL6yBAmi.d.ts → types-DvHvN4RJ.d.ts} +514 -10
  88. package/dist/types-vkJZUngT.d.ts +93 -0
  89. package/package.json +52 -4
  90. package/dist/theme-CPXLKeLc.d.mts +0 -101
  91. package/dist/theme-Chdxsqt1.d.ts +0 -101
@@ -1,5 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var chroma2 = require('chroma-js');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var chroma2__default = /*#__PURE__*/_interopDefault(chroma2);
8
+
3
9
  var __create = Object.create;
4
10
  var __defProp = Object.defineProperty;
5
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -30,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
36
  var require_lodash = __commonJS({
31
37
  "node_modules/lodash/lodash.js"(exports$1, module) {
32
38
  (function() {
33
- var undefined2;
39
+ var undefined$1;
34
40
  var VERSION = "4.17.23";
35
41
  var LARGE_ARRAY_SIZE = 200;
36
42
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
@@ -532,12 +538,12 @@ var require_lodash = __commonJS({
532
538
  }
533
539
  function baseProperty(key) {
534
540
  return function(object) {
535
- return object == null ? undefined2 : object[key];
541
+ return object == null ? undefined$1 : object[key];
536
542
  };
537
543
  }
538
544
  function basePropertyOf(object) {
539
545
  return function(key) {
540
- return object == null ? undefined2 : object[key];
546
+ return object == null ? undefined$1 : object[key];
541
547
  };
542
548
  }
543
549
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
@@ -558,8 +564,8 @@ var require_lodash = __commonJS({
558
564
  var result, index = -1, length = array.length;
559
565
  while (++index < length) {
560
566
  var current = iteratee(array[index]);
561
- if (current !== undefined2) {
562
- result = result === undefined2 ? current : result + current;
567
+ if (current !== undefined$1) {
568
+ result = result === undefined$1 ? current : result + current;
563
569
  }
564
570
  }
565
571
  return result;
@@ -619,7 +625,7 @@ var require_lodash = __commonJS({
619
625
  return "\\" + stringEscapes[chr];
620
626
  }
621
627
  function getValue(object, key) {
622
- return object == null ? undefined2 : object[key];
628
+ return object == null ? undefined$1 : object[key];
623
629
  }
624
630
  function hasUnicode(string) {
625
631
  return reHasUnicode.test(string);
@@ -733,7 +739,7 @@ var require_lodash = __commonJS({
733
739
  var reIsNative = RegExp2(
734
740
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
735
741
  );
736
- var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
742
+ var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
737
743
  var defineProperty = (function() {
738
744
  try {
739
745
  var func = getNative(Object2, "defineProperty");
@@ -743,12 +749,12 @@ var require_lodash = __commonJS({
743
749
  }
744
750
  })();
745
751
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
746
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
752
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
747
753
  var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
748
754
  var metaMap = WeakMap && new WeakMap();
749
755
  var realNames = {};
750
756
  var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
751
- var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
757
+ var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
752
758
  function lodash(value) {
753
759
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
754
760
  if (value instanceof LodashWrapper) {
@@ -772,7 +778,7 @@ var require_lodash = __commonJS({
772
778
  }
773
779
  object.prototype = proto;
774
780
  var result2 = new object();
775
- object.prototype = undefined2;
781
+ object.prototype = undefined$1;
776
782
  return result2;
777
783
  };
778
784
  })();
@@ -783,7 +789,7 @@ var require_lodash = __commonJS({
783
789
  this.__actions__ = [];
784
790
  this.__chain__ = !!chainAll;
785
791
  this.__index__ = 0;
786
- this.__values__ = undefined2;
792
+ this.__values__ = undefined$1;
787
793
  }
788
794
  lodash.templateSettings = {
789
795
  /**
@@ -913,18 +919,18 @@ var require_lodash = __commonJS({
913
919
  var data = this.__data__;
914
920
  if (nativeCreate) {
915
921
  var result2 = data[key];
916
- return result2 === HASH_UNDEFINED ? undefined2 : result2;
922
+ return result2 === HASH_UNDEFINED ? undefined$1 : result2;
917
923
  }
918
- return hasOwnProperty.call(data, key) ? data[key] : undefined2;
924
+ return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
919
925
  }
920
926
  function hashHas(key) {
921
927
  var data = this.__data__;
922
- return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key);
928
+ return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
923
929
  }
924
930
  function hashSet(key, value) {
925
931
  var data = this.__data__;
926
932
  this.size += this.has(key) ? 0 : 1;
927
- data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value;
933
+ data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
928
934
  return this;
929
935
  }
930
936
  Hash.prototype.clear = hashClear;
@@ -960,7 +966,7 @@ var require_lodash = __commonJS({
960
966
  }
961
967
  function listCacheGet(key) {
962
968
  var data = this.__data__, index = assocIndexOf(data, key);
963
- return index < 0 ? undefined2 : data[index][1];
969
+ return index < 0 ? undefined$1 : data[index][1];
964
970
  }
965
971
  function listCacheHas(key) {
966
972
  return assocIndexOf(this.__data__, key) > -1;
@@ -1088,7 +1094,7 @@ var require_lodash = __commonJS({
1088
1094
  }
1089
1095
  function arraySample(array) {
1090
1096
  var length = array.length;
1091
- return length ? array[baseRandom(0, length - 1)] : undefined2;
1097
+ return length ? array[baseRandom(0, length - 1)] : undefined$1;
1092
1098
  }
1093
1099
  function arraySampleSize(array, n) {
1094
1100
  return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
@@ -1097,13 +1103,13 @@ var require_lodash = __commonJS({
1097
1103
  return shuffleSelf(copyArray(array));
1098
1104
  }
1099
1105
  function assignMergeValue(object, key, value) {
1100
- if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) {
1106
+ if (value !== undefined$1 && !eq(object[key], value) || value === undefined$1 && !(key in object)) {
1101
1107
  baseAssignValue(object, key, value);
1102
1108
  }
1103
1109
  }
1104
1110
  function assignValue(object, key, value) {
1105
1111
  var objValue = object[key];
1106
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) {
1112
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined$1 && !(key in object)) {
1107
1113
  baseAssignValue(object, key, value);
1108
1114
  }
1109
1115
  }
@@ -1143,16 +1149,16 @@ var require_lodash = __commonJS({
1143
1149
  function baseAt(object, paths) {
1144
1150
  var index = -1, length = paths.length, result2 = Array2(length), skip = object == null;
1145
1151
  while (++index < length) {
1146
- result2[index] = skip ? undefined2 : get(object, paths[index]);
1152
+ result2[index] = skip ? undefined$1 : get(object, paths[index]);
1147
1153
  }
1148
1154
  return result2;
1149
1155
  }
1150
1156
  function baseClamp(number, lower, upper) {
1151
1157
  if (number === number) {
1152
- if (upper !== undefined2) {
1158
+ if (upper !== undefined$1) {
1153
1159
  number = number <= upper ? number : upper;
1154
1160
  }
1155
- if (lower !== undefined2) {
1161
+ if (lower !== undefined$1) {
1156
1162
  number = number >= lower ? number : lower;
1157
1163
  }
1158
1164
  }
@@ -1163,7 +1169,7 @@ var require_lodash = __commonJS({
1163
1169
  if (customizer) {
1164
1170
  result2 = object ? customizer(value, key, object, stack) : customizer(value);
1165
1171
  }
1166
- if (result2 !== undefined2) {
1172
+ if (result2 !== undefined$1) {
1167
1173
  return result2;
1168
1174
  }
1169
1175
  if (!isObject(value)) {
@@ -1208,7 +1214,7 @@ var require_lodash = __commonJS({
1208
1214
  });
1209
1215
  }
1210
1216
  var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
1211
- var props = isArr ? undefined2 : keysFunc(value);
1217
+ var props = isArr ? undefined$1 : keysFunc(value);
1212
1218
  arrayEach(props || value, function(subValue, key2) {
1213
1219
  if (props) {
1214
1220
  key2 = subValue;
@@ -1232,7 +1238,7 @@ var require_lodash = __commonJS({
1232
1238
  object = Object2(object);
1233
1239
  while (length--) {
1234
1240
  var key = props[length], predicate = source[key], value = object[key];
1235
- if (value === undefined2 && !(key in object) || !predicate(value)) {
1241
+ if (value === undefined$1 && !(key in object) || !predicate(value)) {
1236
1242
  return false;
1237
1243
  }
1238
1244
  }
@@ -1243,7 +1249,7 @@ var require_lodash = __commonJS({
1243
1249
  throw new TypeError2(FUNC_ERROR_TEXT);
1244
1250
  }
1245
1251
  return setTimeout(function() {
1246
- func.apply(undefined2, args);
1252
+ func.apply(undefined$1, args);
1247
1253
  }, wait);
1248
1254
  }
1249
1255
  function baseDifference(array, values2, iteratee2, comparator) {
@@ -1294,7 +1300,7 @@ var require_lodash = __commonJS({
1294
1300
  var index = -1, length = array.length;
1295
1301
  while (++index < length) {
1296
1302
  var value = array[index], current = iteratee2(value);
1297
- if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) {
1303
+ if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
1298
1304
  var computed = current, result2 = value;
1299
1305
  }
1300
1306
  }
@@ -1306,7 +1312,7 @@ var require_lodash = __commonJS({
1306
1312
  if (start < 0) {
1307
1313
  start = -start > length ? 0 : length + start;
1308
1314
  }
1309
- end = end === undefined2 || end > length ? length : toInteger(end);
1315
+ end = end === undefined$1 || end > length ? length : toInteger(end);
1310
1316
  if (end < 0) {
1311
1317
  end += length;
1312
1318
  }
@@ -1362,7 +1368,7 @@ var require_lodash = __commonJS({
1362
1368
  while (object != null && index < length) {
1363
1369
  object = object[toKey(path[index++])];
1364
1370
  }
1365
- return index && index == length ? object : undefined2;
1371
+ return index && index == length ? object : undefined$1;
1366
1372
  }
1367
1373
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1368
1374
  var result2 = keysFunc(object);
@@ -1370,7 +1376,7 @@ var require_lodash = __commonJS({
1370
1376
  }
1371
1377
  function baseGetTag(value) {
1372
1378
  if (value == null) {
1373
- return value === undefined2 ? undefinedTag : nullTag;
1379
+ return value === undefined$1 ? undefinedTag : nullTag;
1374
1380
  }
1375
1381
  return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value);
1376
1382
  }
@@ -1394,7 +1400,7 @@ var require_lodash = __commonJS({
1394
1400
  array = arrayMap(array, baseUnary(iteratee2));
1395
1401
  }
1396
1402
  maxLength = nativeMin(array.length, maxLength);
1397
- caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2;
1403
+ caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
1398
1404
  }
1399
1405
  array = arrays[0];
1400
1406
  var index = -1, seen = caches[0];
@@ -1428,7 +1434,7 @@ var require_lodash = __commonJS({
1428
1434
  path = castPath(path, object);
1429
1435
  object = parent(object, path);
1430
1436
  var func = object == null ? object : object[toKey(last(path))];
1431
- return func == null ? undefined2 : apply(func, object, args);
1437
+ return func == null ? undefined$1 : apply(func, object, args);
1432
1438
  }
1433
1439
  function baseIsArguments(value) {
1434
1440
  return isObjectLike(value) && baseGetTag(value) == argsTag;
@@ -1497,7 +1503,7 @@ var require_lodash = __commonJS({
1497
1503
  data = matchData[index];
1498
1504
  var key = data[0], objValue = object[key], srcValue = data[1];
1499
1505
  if (noCustomizer && data[2]) {
1500
- if (objValue === undefined2 && !(key in object)) {
1506
+ if (objValue === undefined$1 && !(key in object)) {
1501
1507
  return false;
1502
1508
  }
1503
1509
  } else {
@@ -1505,7 +1511,7 @@ var require_lodash = __commonJS({
1505
1511
  if (customizer) {
1506
1512
  var result2 = customizer(objValue, srcValue, key, object, source, stack);
1507
1513
  }
1508
- if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
1514
+ if (!(result2 === undefined$1 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
1509
1515
  return false;
1510
1516
  }
1511
1517
  }
@@ -1589,7 +1595,7 @@ var require_lodash = __commonJS({
1589
1595
  }
1590
1596
  return function(object) {
1591
1597
  var objValue = get(object, path);
1592
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1598
+ return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1593
1599
  };
1594
1600
  }
1595
1601
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -1601,8 +1607,8 @@ var require_lodash = __commonJS({
1601
1607
  if (isObject(srcValue)) {
1602
1608
  baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1603
1609
  } else {
1604
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2;
1605
- if (newValue === undefined2) {
1610
+ var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
1611
+ if (newValue === undefined$1) {
1606
1612
  newValue = srcValue;
1607
1613
  }
1608
1614
  assignMergeValue(object, key, newValue);
@@ -1615,8 +1621,8 @@ var require_lodash = __commonJS({
1615
1621
  assignMergeValue(object, key, stacked);
1616
1622
  return;
1617
1623
  }
1618
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2;
1619
- var isCommon = newValue === undefined2;
1624
+ var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
1625
+ var isCommon = newValue === undefined$1;
1620
1626
  if (isCommon) {
1621
1627
  var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1622
1628
  newValue = srcValue;
@@ -1658,7 +1664,7 @@ var require_lodash = __commonJS({
1658
1664
  return;
1659
1665
  }
1660
1666
  n += n < 0 ? length : 0;
1661
- return isIndex(n, length) ? array[n] : undefined2;
1667
+ return isIndex(n, length) ? array[n] : undefined$1;
1662
1668
  }
1663
1669
  function baseOrderBy(collection, iteratees, orders) {
1664
1670
  if (iteratees.length) {
@@ -1789,8 +1795,8 @@ var require_lodash = __commonJS({
1789
1795
  }
1790
1796
  if (index != lastIndex) {
1791
1797
  var objValue = nested[key];
1792
- newValue = customizer ? customizer(objValue, key, nested) : undefined2;
1793
- if (newValue === undefined2) {
1798
+ newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
1799
+ if (newValue === undefined$1) {
1794
1800
  newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
1795
1801
  }
1796
1802
  }
@@ -1860,9 +1866,9 @@ var require_lodash = __commonJS({
1860
1866
  return 0;
1861
1867
  }
1862
1868
  value = iteratee2(value);
1863
- var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2;
1869
+ var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined$1;
1864
1870
  while (low < high) {
1865
- var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
1871
+ var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined$1, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
1866
1872
  if (valIsNaN) {
1867
1873
  var setLow = retHighest || othIsReflexive;
1868
1874
  } else if (valIsUndefined) {
@@ -2019,7 +2025,7 @@ var require_lodash = __commonJS({
2019
2025
  function baseZipObject(props, values2, assignFunc) {
2020
2026
  var index = -1, length = props.length, valsLength = values2.length, result2 = {};
2021
2027
  while (++index < length) {
2022
- var value = index < valsLength ? values2[index] : undefined2;
2028
+ var value = index < valsLength ? values2[index] : undefined$1;
2023
2029
  assignFunc(result2, props[index], value);
2024
2030
  }
2025
2031
  return result2;
@@ -2039,7 +2045,7 @@ var require_lodash = __commonJS({
2039
2045
  var castRest = baseRest;
2040
2046
  function castSlice(array, start, end) {
2041
2047
  var length = array.length;
2042
- end = end === undefined2 ? length : end;
2048
+ end = end === undefined$1 ? length : end;
2043
2049
  return !start && end >= length ? array : baseSlice(array, start, end);
2044
2050
  }
2045
2051
  var clearTimeout = ctxClearTimeout || function(id) {
@@ -2076,8 +2082,8 @@ var require_lodash = __commonJS({
2076
2082
  }
2077
2083
  function compareAscending(value, other) {
2078
2084
  if (value !== other) {
2079
- var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
2080
- var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
2085
+ var valIsDefined = value !== undefined$1, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
2086
+ var othIsDefined = other !== undefined$1, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
2081
2087
  if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
2082
2088
  return 1;
2083
2089
  }
@@ -2146,8 +2152,8 @@ var require_lodash = __commonJS({
2146
2152
  var index = -1, length = props.length;
2147
2153
  while (++index < length) {
2148
2154
  var key = props[index];
2149
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2;
2150
- if (newValue === undefined2) {
2155
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1;
2156
+ if (newValue === undefined$1) {
2151
2157
  newValue = source[key];
2152
2158
  }
2153
2159
  if (isNew) {
@@ -2172,10 +2178,10 @@ var require_lodash = __commonJS({
2172
2178
  }
2173
2179
  function createAssigner(assigner) {
2174
2180
  return baseRest(function(object, sources) {
2175
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2;
2176
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2;
2181
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
2182
+ customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
2177
2183
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2178
- customizer = length < 3 ? undefined2 : customizer;
2184
+ customizer = length < 3 ? undefined$1 : customizer;
2179
2185
  length = 1;
2180
2186
  }
2181
2187
  object = Object2(object);
@@ -2228,7 +2234,7 @@ var require_lodash = __commonJS({
2228
2234
  function createCaseFirst(methodName) {
2229
2235
  return function(string) {
2230
2236
  string = toString(string);
2231
- var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2;
2237
+ var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined$1;
2232
2238
  var chr = strSymbols ? strSymbols[0] : string.charAt(0);
2233
2239
  var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
2234
2240
  return chr[methodName]() + trailing;
@@ -2279,11 +2285,11 @@ var require_lodash = __commonJS({
2279
2285
  bitmask,
2280
2286
  createHybrid,
2281
2287
  wrapper.placeholder,
2282
- undefined2,
2288
+ undefined$1,
2283
2289
  args,
2284
2290
  holders,
2285
- undefined2,
2286
- undefined2,
2291
+ undefined$1,
2292
+ undefined$1,
2287
2293
  arity - length
2288
2294
  );
2289
2295
  }
@@ -2303,7 +2309,7 @@ var require_lodash = __commonJS({
2303
2309
  };
2304
2310
  }
2305
2311
  var index = findIndexFunc(collection, predicate, fromIndex);
2306
- return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2;
2312
+ return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
2307
2313
  };
2308
2314
  }
2309
2315
  function createFlow(fromRight) {
@@ -2324,7 +2330,7 @@ var require_lodash = __commonJS({
2324
2330
  index = wrapper ? index : length;
2325
2331
  while (++index < length) {
2326
2332
  func = funcs[index];
2327
- var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2;
2333
+ var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
2328
2334
  if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
2329
2335
  wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
2330
2336
  } else {
@@ -2345,7 +2351,7 @@ var require_lodash = __commonJS({
2345
2351
  });
2346
2352
  }
2347
2353
  function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
2348
- var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func);
2354
+ var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
2349
2355
  function wrapper() {
2350
2356
  var length = arguments.length, args = Array2(length), index = length;
2351
2357
  while (index--) {
@@ -2401,14 +2407,14 @@ var require_lodash = __commonJS({
2401
2407
  function createMathOperation(operator, defaultValue) {
2402
2408
  return function(value, other) {
2403
2409
  var result2;
2404
- if (value === undefined2 && other === undefined2) {
2410
+ if (value === undefined$1 && other === undefined$1) {
2405
2411
  return defaultValue;
2406
2412
  }
2407
- if (value !== undefined2) {
2413
+ if (value !== undefined$1) {
2408
2414
  result2 = value;
2409
2415
  }
2410
- if (other !== undefined2) {
2411
- if (result2 === undefined2) {
2416
+ if (other !== undefined$1) {
2417
+ if (result2 === undefined$1) {
2412
2418
  return other;
2413
2419
  }
2414
2420
  if (typeof value == "string" || typeof other == "string") {
@@ -2435,7 +2441,7 @@ var require_lodash = __commonJS({
2435
2441
  });
2436
2442
  }
2437
2443
  function createPadding(length, chars) {
2438
- chars = chars === undefined2 ? " " : baseToString(chars);
2444
+ chars = chars === undefined$1 ? " " : baseToString(chars);
2439
2445
  var charsLength = chars.length;
2440
2446
  if (charsLength < 2) {
2441
2447
  return charsLength ? baseRepeat(chars, length) : chars;
@@ -2460,16 +2466,16 @@ var require_lodash = __commonJS({
2460
2466
  function createRange(fromRight) {
2461
2467
  return function(start, end, step) {
2462
2468
  if (step && typeof step != "number" && isIterateeCall(start, end, step)) {
2463
- end = step = undefined2;
2469
+ end = step = undefined$1;
2464
2470
  }
2465
2471
  start = toFinite(start);
2466
- if (end === undefined2) {
2472
+ if (end === undefined$1) {
2467
2473
  end = start;
2468
2474
  start = 0;
2469
2475
  } else {
2470
2476
  end = toFinite(end);
2471
2477
  }
2472
- step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step);
2478
+ step = step === undefined$1 ? start < end ? 1 : -1 : toFinite(step);
2473
2479
  return baseRange(start, end, step, fromRight);
2474
2480
  };
2475
2481
  }
@@ -2483,7 +2489,7 @@ var require_lodash = __commonJS({
2483
2489
  };
2484
2490
  }
2485
2491
  function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
2486
- var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials;
2492
+ var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined$1, newHoldersRight = isCurry ? undefined$1 : holders, newPartials = isCurry ? partials : undefined$1, newPartialsRight = isCurry ? undefined$1 : partials;
2487
2493
  bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
2488
2494
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
2489
2495
  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
@@ -2501,7 +2507,7 @@ var require_lodash = __commonJS({
2501
2507
  ary2,
2502
2508
  arity
2503
2509
  ];
2504
- var result2 = wrapFunc.apply(undefined2, newData);
2510
+ var result2 = wrapFunc.apply(undefined$1, newData);
2505
2511
  if (isLaziable(func)) {
2506
2512
  setData(result2, newData);
2507
2513
  }
@@ -2544,16 +2550,16 @@ var require_lodash = __commonJS({
2544
2550
  var length = partials ? partials.length : 0;
2545
2551
  if (!length) {
2546
2552
  bitmask &= -97;
2547
- partials = holders = undefined2;
2553
+ partials = holders = undefined$1;
2548
2554
  }
2549
- ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0);
2550
- arity = arity === undefined2 ? arity : toInteger(arity);
2555
+ ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0);
2556
+ arity = arity === undefined$1 ? arity : toInteger(arity);
2551
2557
  length -= holders ? holders.length : 0;
2552
2558
  if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
2553
2559
  var partialsRight = partials, holdersRight = holders;
2554
- partials = holders = undefined2;
2560
+ partials = holders = undefined$1;
2555
2561
  }
2556
- var data = isBindKey ? undefined2 : getData(func);
2562
+ var data = isBindKey ? undefined$1 : getData(func);
2557
2563
  var newData = [
2558
2564
  func,
2559
2565
  bitmask,
@@ -2574,7 +2580,7 @@ var require_lodash = __commonJS({
2574
2580
  thisArg = newData[2];
2575
2581
  partials = newData[3];
2576
2582
  holders = newData[4];
2577
- arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
2583
+ arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
2578
2584
  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
2579
2585
  bitmask &= -25;
2580
2586
  }
@@ -2585,13 +2591,13 @@ var require_lodash = __commonJS({
2585
2591
  } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
2586
2592
  result2 = createPartial(func, bitmask, thisArg, partials);
2587
2593
  } else {
2588
- result2 = createHybrid.apply(undefined2, newData);
2594
+ result2 = createHybrid.apply(undefined$1, newData);
2589
2595
  }
2590
2596
  var setter = data ? baseSetData : setData;
2591
2597
  return setWrapToString(setter(result2, newData), func, bitmask);
2592
2598
  }
2593
2599
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
2594
- if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
2600
+ if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
2595
2601
  return srcValue;
2596
2602
  }
2597
2603
  return objValue;
@@ -2599,13 +2605,13 @@ var require_lodash = __commonJS({
2599
2605
  function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
2600
2606
  if (isObject(objValue) && isObject(srcValue)) {
2601
2607
  stack.set(srcValue, objValue);
2602
- baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack);
2608
+ baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
2603
2609
  stack["delete"](srcValue);
2604
2610
  }
2605
2611
  return objValue;
2606
2612
  }
2607
2613
  function customOmitClone(value) {
2608
- return isPlainObject(value) ? undefined2 : value;
2614
+ return isPlainObject(value) ? undefined$1 : value;
2609
2615
  }
2610
2616
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2611
2617
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
@@ -2617,7 +2623,7 @@ var require_lodash = __commonJS({
2617
2623
  if (arrStacked && othStacked) {
2618
2624
  return arrStacked == other && othStacked == array;
2619
2625
  }
2620
- var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2;
2626
+ var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
2621
2627
  stack.set(array, other);
2622
2628
  stack.set(other, array);
2623
2629
  while (++index < arrLength) {
@@ -2625,7 +2631,7 @@ var require_lodash = __commonJS({
2625
2631
  if (customizer) {
2626
2632
  var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
2627
2633
  }
2628
- if (compared !== undefined2) {
2634
+ if (compared !== undefined$1) {
2629
2635
  if (compared) {
2630
2636
  continue;
2631
2637
  }
@@ -2723,7 +2729,7 @@ var require_lodash = __commonJS({
2723
2729
  if (customizer) {
2724
2730
  var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
2725
2731
  }
2726
- if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2732
+ if (!(compared === undefined$1 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2727
2733
  result2 = false;
2728
2734
  break;
2729
2735
  }
@@ -2740,7 +2746,7 @@ var require_lodash = __commonJS({
2740
2746
  return result2;
2741
2747
  }
2742
2748
  function flatRest(func) {
2743
- return setToString(overRest(func, undefined2, flatten), func + "");
2749
+ return setToString(overRest(func, undefined$1, flatten), func + "");
2744
2750
  }
2745
2751
  function getAllKeys(object) {
2746
2752
  return baseGetAllKeys(object, keys, getSymbols);
@@ -2784,12 +2790,12 @@ var require_lodash = __commonJS({
2784
2790
  }
2785
2791
  function getNative(object, key) {
2786
2792
  var value = getValue(object, key);
2787
- return baseIsNative(value) ? value : undefined2;
2793
+ return baseIsNative(value) ? value : undefined$1;
2788
2794
  }
2789
2795
  function getRawTag(value) {
2790
2796
  var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
2791
2797
  try {
2792
- value[symToStringTag] = undefined2;
2798
+ value[symToStringTag] = undefined$1;
2793
2799
  var unmasked = true;
2794
2800
  } catch (e) {
2795
2801
  }
@@ -2823,7 +2829,7 @@ var require_lodash = __commonJS({
2823
2829
  var getTag = baseGetTag;
2824
2830
  if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
2825
2831
  getTag = function(value) {
2826
- var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
2832
+ var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
2827
2833
  if (ctorString) {
2828
2834
  switch (ctorString) {
2829
2835
  case dataViewCtorString:
@@ -2995,7 +3001,7 @@ var require_lodash = __commonJS({
2995
3001
  if (object == null) {
2996
3002
  return false;
2997
3003
  }
2998
- return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object));
3004
+ return object[key] === srcValue && (srcValue !== undefined$1 || key in Object2(object));
2999
3005
  };
3000
3006
  }
3001
3007
  function memoizeCapped(func) {
@@ -3057,7 +3063,7 @@ var require_lodash = __commonJS({
3057
3063
  return nativeObjectToString.call(value);
3058
3064
  }
3059
3065
  function overRest(func, start, transform2) {
3060
- start = nativeMax(start === undefined2 ? func.length - 1 : start, 0);
3066
+ start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
3061
3067
  return function() {
3062
3068
  var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
3063
3069
  while (++index < length) {
@@ -3079,7 +3085,7 @@ var require_lodash = __commonJS({
3079
3085
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
3080
3086
  while (length--) {
3081
3087
  var index = indexes[length];
3082
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2;
3088
+ array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
3083
3089
  }
3084
3090
  return array;
3085
3091
  }
@@ -3113,12 +3119,12 @@ var require_lodash = __commonJS({
3113
3119
  } else {
3114
3120
  count = 0;
3115
3121
  }
3116
- return func.apply(undefined2, arguments);
3122
+ return func.apply(undefined$1, arguments);
3117
3123
  };
3118
3124
  }
3119
3125
  function shuffleSelf(array, size2) {
3120
3126
  var index = -1, length = array.length, lastIndex = length - 1;
3121
- size2 = size2 === undefined2 ? length : size2;
3127
+ size2 = size2 === undefined$1 ? length : size2;
3122
3128
  while (++index < size2) {
3123
3129
  var rand = baseRandom(index, lastIndex), value = array[rand];
3124
3130
  array[rand] = array[index];
@@ -3177,7 +3183,7 @@ var require_lodash = __commonJS({
3177
3183
  return result2;
3178
3184
  }
3179
3185
  function chunk(array, size2, guard) {
3180
- if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) {
3186
+ if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined$1) {
3181
3187
  size2 = 1;
3182
3188
  } else {
3183
3189
  size2 = nativeMax(toInteger(size2), 0);
@@ -3219,23 +3225,23 @@ var require_lodash = __commonJS({
3219
3225
  var differenceBy = baseRest(function(array, values2) {
3220
3226
  var iteratee2 = last(values2);
3221
3227
  if (isArrayLikeObject(iteratee2)) {
3222
- iteratee2 = undefined2;
3228
+ iteratee2 = undefined$1;
3223
3229
  }
3224
3230
  return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : [];
3225
3231
  });
3226
3232
  var differenceWith = baseRest(function(array, values2) {
3227
3233
  var comparator = last(values2);
3228
3234
  if (isArrayLikeObject(comparator)) {
3229
- comparator = undefined2;
3235
+ comparator = undefined$1;
3230
3236
  }
3231
- return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : [];
3237
+ return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined$1, comparator) : [];
3232
3238
  });
3233
3239
  function drop(array, n, guard) {
3234
3240
  var length = array == null ? 0 : array.length;
3235
3241
  if (!length) {
3236
3242
  return [];
3237
3243
  }
3238
- n = guard || n === undefined2 ? 1 : toInteger(n);
3244
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3239
3245
  return baseSlice(array, n < 0 ? 0 : n, length);
3240
3246
  }
3241
3247
  function dropRight(array, n, guard) {
@@ -3243,7 +3249,7 @@ var require_lodash = __commonJS({
3243
3249
  if (!length) {
3244
3250
  return [];
3245
3251
  }
3246
- n = guard || n === undefined2 ? 1 : toInteger(n);
3252
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3247
3253
  n = length - n;
3248
3254
  return baseSlice(array, 0, n < 0 ? 0 : n);
3249
3255
  }
@@ -3281,7 +3287,7 @@ var require_lodash = __commonJS({
3281
3287
  return -1;
3282
3288
  }
3283
3289
  var index = length - 1;
3284
- if (fromIndex !== undefined2) {
3290
+ if (fromIndex !== undefined$1) {
3285
3291
  index = toInteger(fromIndex);
3286
3292
  index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
3287
3293
  }
@@ -3300,7 +3306,7 @@ var require_lodash = __commonJS({
3300
3306
  if (!length) {
3301
3307
  return [];
3302
3308
  }
3303
- depth = depth === undefined2 ? 1 : toInteger(depth);
3309
+ depth = depth === undefined$1 ? 1 : toInteger(depth);
3304
3310
  return baseFlatten(array, depth);
3305
3311
  }
3306
3312
  function fromPairs(pairs) {
@@ -3312,7 +3318,7 @@ var require_lodash = __commonJS({
3312
3318
  return result2;
3313
3319
  }
3314
3320
  function head(array) {
3315
- return array && array.length ? array[0] : undefined2;
3321
+ return array && array.length ? array[0] : undefined$1;
3316
3322
  }
3317
3323
  function indexOf(array, value, fromIndex) {
3318
3324
  var length = array == null ? 0 : array.length;
@@ -3336,7 +3342,7 @@ var require_lodash = __commonJS({
3336
3342
  var intersectionBy = baseRest(function(arrays) {
3337
3343
  var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
3338
3344
  if (iteratee2 === last(mapped)) {
3339
- iteratee2 = undefined2;
3345
+ iteratee2 = undefined$1;
3340
3346
  } else {
3341
3347
  mapped.pop();
3342
3348
  }
@@ -3344,18 +3350,18 @@ var require_lodash = __commonJS({
3344
3350
  });
3345
3351
  var intersectionWith = baseRest(function(arrays) {
3346
3352
  var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
3347
- comparator = typeof comparator == "function" ? comparator : undefined2;
3353
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3348
3354
  if (comparator) {
3349
3355
  mapped.pop();
3350
3356
  }
3351
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
3357
+ return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined$1, comparator) : [];
3352
3358
  });
3353
3359
  function join(array, separator) {
3354
3360
  return array == null ? "" : nativeJoin.call(array, separator);
3355
3361
  }
3356
3362
  function last(array) {
3357
3363
  var length = array == null ? 0 : array.length;
3358
- return length ? array[length - 1] : undefined2;
3364
+ return length ? array[length - 1] : undefined$1;
3359
3365
  }
3360
3366
  function lastIndexOf(array, value, fromIndex) {
3361
3367
  var length = array == null ? 0 : array.length;
@@ -3363,14 +3369,14 @@ var require_lodash = __commonJS({
3363
3369
  return -1;
3364
3370
  }
3365
3371
  var index = length;
3366
- if (fromIndex !== undefined2) {
3372
+ if (fromIndex !== undefined$1) {
3367
3373
  index = toInteger(fromIndex);
3368
3374
  index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
3369
3375
  }
3370
3376
  return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
3371
3377
  }
3372
3378
  function nth(array, n) {
3373
- return array && array.length ? baseNth(array, toInteger(n)) : undefined2;
3379
+ return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
3374
3380
  }
3375
3381
  var pull = baseRest(pullAll);
3376
3382
  function pullAll(array, values2) {
@@ -3380,7 +3386,7 @@ var require_lodash = __commonJS({
3380
3386
  return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array;
3381
3387
  }
3382
3388
  function pullAllWith(array, values2, comparator) {
3383
- return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array;
3389
+ return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined$1, comparator) : array;
3384
3390
  }
3385
3391
  var pullAt = flatRest(function(array, indexes) {
3386
3392
  var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
@@ -3419,7 +3425,7 @@ var require_lodash = __commonJS({
3419
3425
  end = length;
3420
3426
  } else {
3421
3427
  start = start == null ? 0 : toInteger(start);
3422
- end = end === undefined2 ? length : toInteger(end);
3428
+ end = end === undefined$1 ? length : toInteger(end);
3423
3429
  }
3424
3430
  return baseSlice(array, start, end);
3425
3431
  }
@@ -3469,7 +3475,7 @@ var require_lodash = __commonJS({
3469
3475
  if (!(array && array.length)) {
3470
3476
  return [];
3471
3477
  }
3472
- n = guard || n === undefined2 ? 1 : toInteger(n);
3478
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3473
3479
  return baseSlice(array, 0, n < 0 ? 0 : n);
3474
3480
  }
3475
3481
  function takeRight(array, n, guard) {
@@ -3477,7 +3483,7 @@ var require_lodash = __commonJS({
3477
3483
  if (!length) {
3478
3484
  return [];
3479
3485
  }
3480
- n = guard || n === undefined2 ? 1 : toInteger(n);
3486
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3481
3487
  n = length - n;
3482
3488
  return baseSlice(array, n < 0 ? 0 : n, length);
3483
3489
  }
@@ -3493,14 +3499,14 @@ var require_lodash = __commonJS({
3493
3499
  var unionBy = baseRest(function(arrays) {
3494
3500
  var iteratee2 = last(arrays);
3495
3501
  if (isArrayLikeObject(iteratee2)) {
3496
- iteratee2 = undefined2;
3502
+ iteratee2 = undefined$1;
3497
3503
  }
3498
3504
  return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2));
3499
3505
  });
3500
3506
  var unionWith = baseRest(function(arrays) {
3501
3507
  var comparator = last(arrays);
3502
- comparator = typeof comparator == "function" ? comparator : undefined2;
3503
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator);
3508
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3509
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator);
3504
3510
  });
3505
3511
  function uniq(array) {
3506
3512
  return array && array.length ? baseUniq(array) : [];
@@ -3509,8 +3515,8 @@ var require_lodash = __commonJS({
3509
3515
  return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : [];
3510
3516
  }
3511
3517
  function uniqWith(array, comparator) {
3512
- comparator = typeof comparator == "function" ? comparator : undefined2;
3513
- return array && array.length ? baseUniq(array, undefined2, comparator) : [];
3518
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3519
+ return array && array.length ? baseUniq(array, undefined$1, comparator) : [];
3514
3520
  }
3515
3521
  function unzip(array) {
3516
3522
  if (!(array && array.length)) {
@@ -3536,7 +3542,7 @@ var require_lodash = __commonJS({
3536
3542
  return result2;
3537
3543
  }
3538
3544
  return arrayMap(result2, function(group) {
3539
- return apply(iteratee2, undefined2, group);
3545
+ return apply(iteratee2, undefined$1, group);
3540
3546
  });
3541
3547
  }
3542
3548
  var without = baseRest(function(array, values2) {
@@ -3548,14 +3554,14 @@ var require_lodash = __commonJS({
3548
3554
  var xorBy = baseRest(function(arrays) {
3549
3555
  var iteratee2 = last(arrays);
3550
3556
  if (isArrayLikeObject(iteratee2)) {
3551
- iteratee2 = undefined2;
3557
+ iteratee2 = undefined$1;
3552
3558
  }
3553
3559
  return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
3554
3560
  });
3555
3561
  var xorWith = baseRest(function(arrays) {
3556
3562
  var comparator = last(arrays);
3557
- comparator = typeof comparator == "function" ? comparator : undefined2;
3558
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator);
3563
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3564
+ return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator);
3559
3565
  });
3560
3566
  var zip = baseRest(unzip);
3561
3567
  function zipObject(props, values2) {
@@ -3565,8 +3571,8 @@ var require_lodash = __commonJS({
3565
3571
  return baseZipObject(props || [], values2 || [], baseSet);
3566
3572
  }
3567
3573
  var zipWith = baseRest(function(arrays) {
3568
- var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2;
3569
- iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2;
3574
+ var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined$1;
3575
+ iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined$1;
3570
3576
  return unzipWith(arrays, iteratee2);
3571
3577
  });
3572
3578
  function chain(value) {
@@ -3592,11 +3598,11 @@ var require_lodash = __commonJS({
3592
3598
  value.__actions__.push({
3593
3599
  "func": thru,
3594
3600
  "args": [interceptor],
3595
- "thisArg": undefined2
3601
+ "thisArg": undefined$1
3596
3602
  });
3597
3603
  return new LodashWrapper(value, this.__chain__).thru(function(array) {
3598
3604
  if (length && !array.length) {
3599
- array.push(undefined2);
3605
+ array.push(undefined$1);
3600
3606
  }
3601
3607
  return array;
3602
3608
  });
@@ -3608,10 +3614,10 @@ var require_lodash = __commonJS({
3608
3614
  return new LodashWrapper(this.value(), this.__chain__);
3609
3615
  }
3610
3616
  function wrapperNext() {
3611
- if (this.__values__ === undefined2) {
3617
+ if (this.__values__ === undefined$1) {
3612
3618
  this.__values__ = toArray(this.value());
3613
3619
  }
3614
- var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++];
3620
+ var done = this.__index__ >= this.__values__.length, value = done ? undefined$1 : this.__values__[this.__index__++];
3615
3621
  return { "done": done, "value": value };
3616
3622
  }
3617
3623
  function wrapperToIterator() {
@@ -3622,7 +3628,7 @@ var require_lodash = __commonJS({
3622
3628
  while (parent2 instanceof baseLodash) {
3623
3629
  var clone2 = wrapperClone(parent2);
3624
3630
  clone2.__index__ = 0;
3625
- clone2.__values__ = undefined2;
3631
+ clone2.__values__ = undefined$1;
3626
3632
  if (result2) {
3627
3633
  previous.__wrapped__ = clone2;
3628
3634
  } else {
@@ -3645,7 +3651,7 @@ var require_lodash = __commonJS({
3645
3651
  wrapped.__actions__.push({
3646
3652
  "func": thru,
3647
3653
  "args": [reverse],
3648
- "thisArg": undefined2
3654
+ "thisArg": undefined$1
3649
3655
  });
3650
3656
  return new LodashWrapper(wrapped, this.__chain__);
3651
3657
  }
@@ -3664,7 +3670,7 @@ var require_lodash = __commonJS({
3664
3670
  function every(collection, predicate, guard) {
3665
3671
  var func = isArray(collection) ? arrayEvery : baseEvery;
3666
3672
  if (guard && isIterateeCall(collection, predicate, guard)) {
3667
- predicate = undefined2;
3673
+ predicate = undefined$1;
3668
3674
  }
3669
3675
  return func(collection, getIteratee(predicate, 3));
3670
3676
  }
@@ -3681,7 +3687,7 @@ var require_lodash = __commonJS({
3681
3687
  return baseFlatten(map(collection, iteratee2), INFINITY);
3682
3688
  }
3683
3689
  function flatMapDepth(collection, iteratee2, depth) {
3684
- depth = depth === undefined2 ? 1 : toInteger(depth);
3690
+ depth = depth === undefined$1 ? 1 : toInteger(depth);
3685
3691
  return baseFlatten(map(collection, iteratee2), depth);
3686
3692
  }
3687
3693
  function forEach(collection, iteratee2) {
@@ -3729,7 +3735,7 @@ var require_lodash = __commonJS({
3729
3735
  if (!isArray(iteratees)) {
3730
3736
  iteratees = iteratees == null ? [] : [iteratees];
3731
3737
  }
3732
- orders = guard ? undefined2 : orders;
3738
+ orders = guard ? undefined$1 : orders;
3733
3739
  if (!isArray(orders)) {
3734
3740
  orders = orders == null ? [] : [orders];
3735
3741
  }
@@ -3757,7 +3763,7 @@ var require_lodash = __commonJS({
3757
3763
  return func(collection);
3758
3764
  }
3759
3765
  function sampleSize(collection, n, guard) {
3760
- if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) {
3766
+ if (guard ? isIterateeCall(collection, n, guard) : n === undefined$1) {
3761
3767
  n = 1;
3762
3768
  } else {
3763
3769
  n = toInteger(n);
@@ -3785,7 +3791,7 @@ var require_lodash = __commonJS({
3785
3791
  function some(collection, predicate, guard) {
3786
3792
  var func = isArray(collection) ? arraySome : baseSome;
3787
3793
  if (guard && isIterateeCall(collection, predicate, guard)) {
3788
- predicate = undefined2;
3794
+ predicate = undefined$1;
3789
3795
  }
3790
3796
  return func(collection, getIteratee(predicate, 3));
3791
3797
  }
@@ -3816,9 +3822,9 @@ var require_lodash = __commonJS({
3816
3822
  };
3817
3823
  }
3818
3824
  function ary(func, n, guard) {
3819
- n = guard ? undefined2 : n;
3825
+ n = guard ? undefined$1 : n;
3820
3826
  n = func && n == null ? func.length : n;
3821
- return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n);
3827
+ return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n);
3822
3828
  }
3823
3829
  function before(n, func) {
3824
3830
  var result2;
@@ -3831,7 +3837,7 @@ var require_lodash = __commonJS({
3831
3837
  result2 = func.apply(this, arguments);
3832
3838
  }
3833
3839
  if (n <= 1) {
3834
- func = undefined2;
3840
+ func = undefined$1;
3835
3841
  }
3836
3842
  return result2;
3837
3843
  };
@@ -3853,14 +3859,14 @@ var require_lodash = __commonJS({
3853
3859
  return createWrap(key, bitmask, object, partials, holders);
3854
3860
  });
3855
3861
  function curry(func, arity, guard) {
3856
- arity = guard ? undefined2 : arity;
3857
- var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
3862
+ arity = guard ? undefined$1 : arity;
3863
+ var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);
3858
3864
  result2.placeholder = curry.placeholder;
3859
3865
  return result2;
3860
3866
  }
3861
3867
  function curryRight(func, arity, guard) {
3862
- arity = guard ? undefined2 : arity;
3863
- var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
3868
+ arity = guard ? undefined$1 : arity;
3869
+ var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);
3864
3870
  result2.placeholder = curryRight.placeholder;
3865
3871
  return result2;
3866
3872
  }
@@ -3878,7 +3884,7 @@ var require_lodash = __commonJS({
3878
3884
  }
3879
3885
  function invokeFunc(time) {
3880
3886
  var args = lastArgs, thisArg = lastThis;
3881
- lastArgs = lastThis = undefined2;
3887
+ lastArgs = lastThis = undefined$1;
3882
3888
  lastInvokeTime = time;
3883
3889
  result2 = func.apply(thisArg, args);
3884
3890
  return result2;
@@ -3894,7 +3900,7 @@ var require_lodash = __commonJS({
3894
3900
  }
3895
3901
  function shouldInvoke(time) {
3896
3902
  var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
3897
- return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
3903
+ return lastCallTime === undefined$1 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
3898
3904
  }
3899
3905
  function timerExpired() {
3900
3906
  var time = now();
@@ -3904,22 +3910,22 @@ var require_lodash = __commonJS({
3904
3910
  timerId = setTimeout(timerExpired, remainingWait(time));
3905
3911
  }
3906
3912
  function trailingEdge(time) {
3907
- timerId = undefined2;
3913
+ timerId = undefined$1;
3908
3914
  if (trailing && lastArgs) {
3909
3915
  return invokeFunc(time);
3910
3916
  }
3911
- lastArgs = lastThis = undefined2;
3917
+ lastArgs = lastThis = undefined$1;
3912
3918
  return result2;
3913
3919
  }
3914
3920
  function cancel() {
3915
- if (timerId !== undefined2) {
3921
+ if (timerId !== undefined$1) {
3916
3922
  clearTimeout(timerId);
3917
3923
  }
3918
3924
  lastInvokeTime = 0;
3919
- lastArgs = lastCallTime = lastThis = timerId = undefined2;
3925
+ lastArgs = lastCallTime = lastThis = timerId = undefined$1;
3920
3926
  }
3921
3927
  function flush() {
3922
- return timerId === undefined2 ? result2 : trailingEdge(now());
3928
+ return timerId === undefined$1 ? result2 : trailingEdge(now());
3923
3929
  }
3924
3930
  function debounced() {
3925
3931
  var time = now(), isInvoking = shouldInvoke(time);
@@ -3927,7 +3933,7 @@ var require_lodash = __commonJS({
3927
3933
  lastThis = this;
3928
3934
  lastCallTime = time;
3929
3935
  if (isInvoking) {
3930
- if (timerId === undefined2) {
3936
+ if (timerId === undefined$1) {
3931
3937
  return leadingEdge(lastCallTime);
3932
3938
  }
3933
3939
  if (maxing) {
@@ -3936,7 +3942,7 @@ var require_lodash = __commonJS({
3936
3942
  return invokeFunc(lastCallTime);
3937
3943
  }
3938
3944
  }
3939
- if (timerId === undefined2) {
3945
+ if (timerId === undefined$1) {
3940
3946
  timerId = setTimeout(timerExpired, wait);
3941
3947
  }
3942
3948
  return result2;
@@ -4006,20 +4012,20 @@ var require_lodash = __commonJS({
4006
4012
  });
4007
4013
  var partial = baseRest(function(func, partials) {
4008
4014
  var holders = replaceHolders(partials, getHolder(partial));
4009
- return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders);
4015
+ return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders);
4010
4016
  });
4011
4017
  var partialRight = baseRest(function(func, partials) {
4012
4018
  var holders = replaceHolders(partials, getHolder(partialRight));
4013
- return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders);
4019
+ return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders);
4014
4020
  });
4015
4021
  var rearg = flatRest(function(func, indexes) {
4016
- return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes);
4022
+ return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes);
4017
4023
  });
4018
4024
  function rest(func, start) {
4019
4025
  if (typeof func != "function") {
4020
4026
  throw new TypeError2(FUNC_ERROR_TEXT);
4021
4027
  }
4022
- start = start === undefined2 ? start : toInteger(start);
4028
+ start = start === undefined$1 ? start : toInteger(start);
4023
4029
  return baseRest(func, start);
4024
4030
  }
4025
4031
  function spread(func, start) {
@@ -4067,14 +4073,14 @@ var require_lodash = __commonJS({
4067
4073
  return baseClone(value, CLONE_SYMBOLS_FLAG);
4068
4074
  }
4069
4075
  function cloneWith(value, customizer) {
4070
- customizer = typeof customizer == "function" ? customizer : undefined2;
4076
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4071
4077
  return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
4072
4078
  }
4073
4079
  function cloneDeep(value) {
4074
4080
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
4075
4081
  }
4076
4082
  function cloneDeepWith(value, customizer) {
4077
- customizer = typeof customizer == "function" ? customizer : undefined2;
4083
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4078
4084
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
4079
4085
  }
4080
4086
  function conformsTo(object, source) {
@@ -4133,9 +4139,9 @@ var require_lodash = __commonJS({
4133
4139
  return baseIsEqual(value, other);
4134
4140
  }
4135
4141
  function isEqualWith(value, other, customizer) {
4136
- customizer = typeof customizer == "function" ? customizer : undefined2;
4137
- var result2 = customizer ? customizer(value, other) : undefined2;
4138
- return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2;
4142
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4143
+ var result2 = customizer ? customizer(value, other) : undefined$1;
4144
+ return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2;
4139
4145
  }
4140
4146
  function isError(value) {
4141
4147
  if (!isObjectLike(value)) {
@@ -4172,10 +4178,10 @@ var require_lodash = __commonJS({
4172
4178
  return object === source || baseIsMatch(object, source, getMatchData(source));
4173
4179
  }
4174
4180
  function isMatchWith(object, source, customizer) {
4175
- customizer = typeof customizer == "function" ? customizer : undefined2;
4181
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4176
4182
  return baseIsMatch(object, source, getMatchData(source), customizer);
4177
4183
  }
4178
- function isNaN2(value) {
4184
+ function isNaN(value) {
4179
4185
  return isNumber(value) && value != +value;
4180
4186
  }
4181
4187
  function isNative(value) {
@@ -4217,7 +4223,7 @@ var require_lodash = __commonJS({
4217
4223
  }
4218
4224
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
4219
4225
  function isUndefined(value) {
4220
- return value === undefined2;
4226
+ return value === undefined$1;
4221
4227
  }
4222
4228
  function isWeakMap(value) {
4223
4229
  return isObjectLike(value) && getTag(value) == weakMapTag;
@@ -4248,8 +4254,8 @@ var require_lodash = __commonJS({
4248
4254
  }
4249
4255
  value = toNumber(value);
4250
4256
  if (value === INFINITY || value === -INFINITY) {
4251
- var sign3 = value < 0 ? -1 : 1;
4252
- return sign3 * MAX_INTEGER;
4257
+ var sign = value < 0 ? -1 : 1;
4258
+ return sign * MAX_INTEGER;
4253
4259
  }
4254
4260
  return value === value ? value : 0;
4255
4261
  }
@@ -4316,7 +4322,7 @@ var require_lodash = __commonJS({
4316
4322
  object = Object2(object);
4317
4323
  var index = -1;
4318
4324
  var length = sources.length;
4319
- var guard = length > 2 ? sources[2] : undefined2;
4325
+ var guard = length > 2 ? sources[2] : undefined$1;
4320
4326
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
4321
4327
  length = 1;
4322
4328
  }
@@ -4328,7 +4334,7 @@ var require_lodash = __commonJS({
4328
4334
  while (++propsIndex < propsLength) {
4329
4335
  var key = props[propsIndex];
4330
4336
  var value = object[key];
4331
- if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
4337
+ if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
4332
4338
  object[key] = source[key];
4333
4339
  }
4334
4340
  }
@@ -4336,8 +4342,8 @@ var require_lodash = __commonJS({
4336
4342
  return object;
4337
4343
  });
4338
4344
  var defaultsDeep = baseRest(function(args) {
4339
- args.push(undefined2, customDefaultsMerge);
4340
- return apply(mergeWith, undefined2, args);
4345
+ args.push(undefined$1, customDefaultsMerge);
4346
+ return apply(mergeWith, undefined$1, args);
4341
4347
  });
4342
4348
  function findKey(object, predicate) {
4343
4349
  return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
@@ -4364,8 +4370,8 @@ var require_lodash = __commonJS({
4364
4370
  return object == null ? [] : baseFunctions(object, keysIn(object));
4365
4371
  }
4366
4372
  function get(object, path, defaultValue) {
4367
- var result2 = object == null ? undefined2 : baseGet(object, path);
4368
- return result2 === undefined2 ? defaultValue : result2;
4373
+ var result2 = object == null ? undefined$1 : baseGet(object, path);
4374
+ return result2 === undefined$1 ? defaultValue : result2;
4369
4375
  }
4370
4376
  function has(object, path) {
4371
4377
  return object != null && hasPath(object, path, baseHas);
@@ -4462,11 +4468,11 @@ var require_lodash = __commonJS({
4462
4468
  var index = -1, length = path.length;
4463
4469
  if (!length) {
4464
4470
  length = 1;
4465
- object = undefined2;
4471
+ object = undefined$1;
4466
4472
  }
4467
4473
  while (++index < length) {
4468
- var value = object == null ? undefined2 : object[toKey(path[index])];
4469
- if (value === undefined2) {
4474
+ var value = object == null ? undefined$1 : object[toKey(path[index])];
4475
+ if (value === undefined$1) {
4470
4476
  index = length;
4471
4477
  value = defaultValue;
4472
4478
  }
@@ -4478,7 +4484,7 @@ var require_lodash = __commonJS({
4478
4484
  return object == null ? object : baseSet(object, path, value);
4479
4485
  }
4480
4486
  function setWith(object, path, value, customizer) {
4481
- customizer = typeof customizer == "function" ? customizer : undefined2;
4487
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4482
4488
  return object == null ? object : baseSet(object, path, value, customizer);
4483
4489
  }
4484
4490
  var toPairs = createToPairs(keys);
@@ -4508,7 +4514,7 @@ var require_lodash = __commonJS({
4508
4514
  return object == null ? object : baseUpdate(object, path, castFunction(updater));
4509
4515
  }
4510
4516
  function updateWith(object, path, updater, customizer) {
4511
- customizer = typeof customizer == "function" ? customizer : undefined2;
4517
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4512
4518
  return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
4513
4519
  }
4514
4520
  function values(object) {
@@ -4518,15 +4524,15 @@ var require_lodash = __commonJS({
4518
4524
  return object == null ? [] : baseValues(object, keysIn(object));
4519
4525
  }
4520
4526
  function clamp(number, lower, upper) {
4521
- if (upper === undefined2) {
4527
+ if (upper === undefined$1) {
4522
4528
  upper = lower;
4523
- lower = undefined2;
4529
+ lower = undefined$1;
4524
4530
  }
4525
- if (upper !== undefined2) {
4531
+ if (upper !== undefined$1) {
4526
4532
  upper = toNumber(upper);
4527
4533
  upper = upper === upper ? upper : 0;
4528
4534
  }
4529
- if (lower !== undefined2) {
4535
+ if (lower !== undefined$1) {
4530
4536
  lower = toNumber(lower);
4531
4537
  lower = lower === lower ? lower : 0;
4532
4538
  }
@@ -4534,7 +4540,7 @@ var require_lodash = __commonJS({
4534
4540
  }
4535
4541
  function inRange(number, start, end) {
4536
4542
  start = toFinite(start);
4537
- if (end === undefined2) {
4543
+ if (end === undefined$1) {
4538
4544
  end = start;
4539
4545
  start = 0;
4540
4546
  } else {
@@ -4543,25 +4549,25 @@ var require_lodash = __commonJS({
4543
4549
  number = toNumber(number);
4544
4550
  return baseInRange(number, start, end);
4545
4551
  }
4546
- function random2(lower, upper, floating) {
4552
+ function random(lower, upper, floating) {
4547
4553
  if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) {
4548
- upper = floating = undefined2;
4554
+ upper = floating = undefined$1;
4549
4555
  }
4550
- if (floating === undefined2) {
4556
+ if (floating === undefined$1) {
4551
4557
  if (typeof upper == "boolean") {
4552
4558
  floating = upper;
4553
- upper = undefined2;
4559
+ upper = undefined$1;
4554
4560
  } else if (typeof lower == "boolean") {
4555
4561
  floating = lower;
4556
- lower = undefined2;
4562
+ lower = undefined$1;
4557
4563
  }
4558
4564
  }
4559
- if (lower === undefined2 && upper === undefined2) {
4565
+ if (lower === undefined$1 && upper === undefined$1) {
4560
4566
  lower = 0;
4561
4567
  upper = 1;
4562
4568
  } else {
4563
4569
  lower = toFinite(lower);
4564
- if (upper === undefined2) {
4570
+ if (upper === undefined$1) {
4565
4571
  upper = lower;
4566
4572
  lower = 0;
4567
4573
  } else {
@@ -4594,7 +4600,7 @@ var require_lodash = __commonJS({
4594
4600
  string = toString(string);
4595
4601
  target = baseToString(target);
4596
4602
  var length = string.length;
4597
- position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length);
4603
+ position = position === undefined$1 ? length : baseClamp(toInteger(position), 0, length);
4598
4604
  var end = position;
4599
4605
  position -= target.length;
4600
4606
  return position >= 0 && string.slice(position, end) == target;
@@ -4645,7 +4651,7 @@ var require_lodash = __commonJS({
4645
4651
  return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0);
4646
4652
  }
4647
4653
  function repeat(string, n, guard) {
4648
- if (guard ? isIterateeCall(string, n, guard) : n === undefined2) {
4654
+ if (guard ? isIterateeCall(string, n, guard) : n === undefined$1) {
4649
4655
  n = 1;
4650
4656
  } else {
4651
4657
  n = toInteger(n);
@@ -4661,9 +4667,9 @@ var require_lodash = __commonJS({
4661
4667
  });
4662
4668
  function split(string, separator, limit) {
4663
4669
  if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
4664
- separator = limit = undefined2;
4670
+ separator = limit = undefined$1;
4665
4671
  }
4666
- limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0;
4672
+ limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0;
4667
4673
  if (!limit) {
4668
4674
  return [];
4669
4675
  }
@@ -4688,7 +4694,7 @@ var require_lodash = __commonJS({
4688
4694
  function template(string, options, guard) {
4689
4695
  var settings = lodash.templateSettings;
4690
4696
  if (guard && isIterateeCall(string, options, guard)) {
4691
- options = undefined2;
4697
+ options = undefined$1;
4692
4698
  }
4693
4699
  string = toString(string);
4694
4700
  options = assignInWith({}, options, settings, customDefaultsAssignIn);
@@ -4726,7 +4732,7 @@ var require_lodash = __commonJS({
4726
4732
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
4727
4733
  source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
4728
4734
  var result2 = attempt(function() {
4729
- return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues);
4735
+ return Function2(importsKeys, sourceURL + "return " + source).apply(undefined$1, importsValues);
4730
4736
  });
4731
4737
  result2.source = source;
4732
4738
  if (isError(result2)) {
@@ -4742,7 +4748,7 @@ var require_lodash = __commonJS({
4742
4748
  }
4743
4749
  function trim(string, chars, guard) {
4744
4750
  string = toString(string);
4745
- if (string && (guard || chars === undefined2)) {
4751
+ if (string && (guard || chars === undefined$1)) {
4746
4752
  return baseTrim(string);
4747
4753
  }
4748
4754
  if (!string || !(chars = baseToString(chars))) {
@@ -4753,7 +4759,7 @@ var require_lodash = __commonJS({
4753
4759
  }
4754
4760
  function trimEnd(string, chars, guard) {
4755
4761
  string = toString(string);
4756
- if (string && (guard || chars === undefined2)) {
4762
+ if (string && (guard || chars === undefined$1)) {
4757
4763
  return string.slice(0, trimmedEndIndex(string) + 1);
4758
4764
  }
4759
4765
  if (!string || !(chars = baseToString(chars))) {
@@ -4764,7 +4770,7 @@ var require_lodash = __commonJS({
4764
4770
  }
4765
4771
  function trimStart(string, chars, guard) {
4766
4772
  string = toString(string);
4767
- if (string && (guard || chars === undefined2)) {
4773
+ if (string && (guard || chars === undefined$1)) {
4768
4774
  return string.replace(reTrimStart, "");
4769
4775
  }
4770
4776
  if (!string || !(chars = baseToString(chars))) {
@@ -4794,7 +4800,7 @@ var require_lodash = __commonJS({
4794
4800
  return omission;
4795
4801
  }
4796
4802
  var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end);
4797
- if (separator === undefined2) {
4803
+ if (separator === undefined$1) {
4798
4804
  return result2 + omission;
4799
4805
  }
4800
4806
  if (strSymbols) {
@@ -4810,7 +4816,7 @@ var require_lodash = __commonJS({
4810
4816
  while (match = separator.exec(substring)) {
4811
4817
  var newEnd = match.index;
4812
4818
  }
4813
- result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4819
+ result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
4814
4820
  }
4815
4821
  } else if (string.indexOf(baseToString(separator), end) != end) {
4816
4822
  var index = result2.lastIndexOf(separator);
@@ -4830,15 +4836,15 @@ var require_lodash = __commonJS({
4830
4836
  var upperFirst = createCaseFirst("toUpperCase");
4831
4837
  function words(string, pattern, guard) {
4832
4838
  string = toString(string);
4833
- pattern = guard ? undefined2 : pattern;
4834
- if (pattern === undefined2) {
4839
+ pattern = guard ? undefined$1 : pattern;
4840
+ if (pattern === undefined$1) {
4835
4841
  return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
4836
4842
  }
4837
4843
  return string.match(pattern) || [];
4838
4844
  }
4839
4845
  var attempt = baseRest(function(func, args) {
4840
4846
  try {
4841
- return apply(func, undefined2, args);
4847
+ return apply(func, undefined$1, args);
4842
4848
  } catch (e) {
4843
4849
  return isError(e) ? e : new Error2(e);
4844
4850
  }
@@ -4952,7 +4958,7 @@ var require_lodash = __commonJS({
4952
4958
  }
4953
4959
  function propertyOf(object) {
4954
4960
  return function(path) {
4955
- return object == null ? undefined2 : baseGet(object, path);
4961
+ return object == null ? undefined$1 : baseGet(object, path);
4956
4962
  };
4957
4963
  }
4958
4964
  var range = createRange();
@@ -5003,12 +5009,12 @@ var require_lodash = __commonJS({
5003
5009
  var divide = createMathOperation(function(dividend, divisor) {
5004
5010
  return dividend / divisor;
5005
5011
  }, 1);
5006
- var floor5 = createRound("floor");
5007
- function max5(array) {
5008
- return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2;
5012
+ var floor = createRound("floor");
5013
+ function max(array) {
5014
+ return array && array.length ? baseExtremum(array, identity, baseGt) : undefined$1;
5009
5015
  }
5010
5016
  function maxBy(array, iteratee2) {
5011
- return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2;
5017
+ return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined$1;
5012
5018
  }
5013
5019
  function mean(array) {
5014
5020
  return baseMean(array, identity);
@@ -5016,16 +5022,16 @@ var require_lodash = __commonJS({
5016
5022
  function meanBy(array, iteratee2) {
5017
5023
  return baseMean(array, getIteratee(iteratee2, 2));
5018
5024
  }
5019
- function min5(array) {
5020
- return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2;
5025
+ function min(array) {
5026
+ return array && array.length ? baseExtremum(array, identity, baseLt) : undefined$1;
5021
5027
  }
5022
5028
  function minBy(array, iteratee2) {
5023
- return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2;
5029
+ return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined$1;
5024
5030
  }
5025
- var multiply2 = createMathOperation(function(multiplier, multiplicand) {
5031
+ var multiply = createMathOperation(function(multiplier, multiplicand) {
5026
5032
  return multiplier * multiplicand;
5027
5033
  }, 1);
5028
- var round8 = createRound("round");
5034
+ var round = createRound("round");
5029
5035
  var subtract = createMathOperation(function(minuend, subtrahend) {
5030
5036
  return minuend - subtrahend;
5031
5037
  }, 0);
@@ -5214,7 +5220,7 @@ var require_lodash = __commonJS({
5214
5220
  lodash.findLast = findLast;
5215
5221
  lodash.findLastIndex = findLastIndex;
5216
5222
  lodash.findLastKey = findLastKey;
5217
- lodash.floor = floor5;
5223
+ lodash.floor = floor;
5218
5224
  lodash.forEach = forEach;
5219
5225
  lodash.forEachRight = forEachRight;
5220
5226
  lodash.forIn = forIn;
@@ -5252,7 +5258,7 @@ var require_lodash = __commonJS({
5252
5258
  lodash.isMap = isMap;
5253
5259
  lodash.isMatch = isMatch;
5254
5260
  lodash.isMatchWith = isMatchWith;
5255
- lodash.isNaN = isNaN2;
5261
+ lodash.isNaN = isNaN;
5256
5262
  lodash.isNative = isNative;
5257
5263
  lodash.isNil = isNil;
5258
5264
  lodash.isNull = isNull;
@@ -5277,18 +5283,18 @@ var require_lodash = __commonJS({
5277
5283
  lodash.lowerFirst = lowerFirst;
5278
5284
  lodash.lt = lt;
5279
5285
  lodash.lte = lte;
5280
- lodash.max = max5;
5286
+ lodash.max = max;
5281
5287
  lodash.maxBy = maxBy;
5282
5288
  lodash.mean = mean;
5283
5289
  lodash.meanBy = meanBy;
5284
- lodash.min = min5;
5290
+ lodash.min = min;
5285
5291
  lodash.minBy = minBy;
5286
5292
  lodash.stubArray = stubArray;
5287
5293
  lodash.stubFalse = stubFalse;
5288
5294
  lodash.stubObject = stubObject;
5289
5295
  lodash.stubString = stubString;
5290
5296
  lodash.stubTrue = stubTrue;
5291
- lodash.multiply = multiply2;
5297
+ lodash.multiply = multiply;
5292
5298
  lodash.nth = nth;
5293
5299
  lodash.noConflict = noConflict;
5294
5300
  lodash.noop = noop;
@@ -5297,13 +5303,13 @@ var require_lodash = __commonJS({
5297
5303
  lodash.padEnd = padEnd;
5298
5304
  lodash.padStart = padStart;
5299
5305
  lodash.parseInt = parseInt2;
5300
- lodash.random = random2;
5306
+ lodash.random = random;
5301
5307
  lodash.reduce = reduce;
5302
5308
  lodash.reduceRight = reduceRight;
5303
5309
  lodash.repeat = repeat;
5304
5310
  lodash.replace = replace;
5305
5311
  lodash.result = result;
5306
- lodash.round = round8;
5312
+ lodash.round = round;
5307
5313
  lodash.runInContext = runInContext2;
5308
5314
  lodash.sample = sample;
5309
5315
  lodash.size = size;
@@ -5356,7 +5362,7 @@ var require_lodash = __commonJS({
5356
5362
  });
5357
5363
  arrayEach(["drop", "take"], function(methodName, index) {
5358
5364
  LazyWrapper.prototype[methodName] = function(n) {
5359
- n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0);
5365
+ n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
5360
5366
  var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
5361
5367
  if (result2.__filtered__) {
5362
5368
  result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
@@ -5427,7 +5433,7 @@ var require_lodash = __commonJS({
5427
5433
  } else if (start) {
5428
5434
  result2 = result2.drop(start);
5429
5435
  }
5430
- if (end !== undefined2) {
5436
+ if (end !== undefined$1) {
5431
5437
  end = toInteger(end);
5432
5438
  result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
5433
5439
  }
@@ -5457,7 +5463,7 @@ var require_lodash = __commonJS({
5457
5463
  if (!retUnwrapped && useLazy) {
5458
5464
  value = onlyLazy ? value : new LazyWrapper(this);
5459
5465
  var result2 = func.apply(value, args);
5460
- result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 });
5466
+ result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined$1 });
5461
5467
  return new LodashWrapper(result2, chainAll);
5462
5468
  }
5463
5469
  if (isUnwrapped && onlyLazy) {
@@ -5490,9 +5496,9 @@ var require_lodash = __commonJS({
5490
5496
  realNames[key].push({ "name": methodName, "func": lodashFunc });
5491
5497
  }
5492
5498
  });
5493
- realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{
5499
+ realNames[createHybrid(undefined$1, WRAP_BIND_KEY_FLAG).name] = [{
5494
5500
  "name": "wrapper",
5495
- "func": undefined2
5501
+ "func": undefined$1
5496
5502
  }];
5497
5503
  LazyWrapper.prototype.clone = lazyClone;
5498
5504
  LazyWrapper.prototype.reverse = lazyReverse;
@@ -5526,2509 +5532,14 @@ var require_lodash = __commonJS({
5526
5532
  }
5527
5533
  });
5528
5534
 
5529
- // node_modules/chroma-js/src/utils/limit.js
5530
- var limit_default = (x, low = 0, high = 1) => {
5531
- return min(max(low, x), high);
5532
- };
5533
-
5534
- // node_modules/chroma-js/src/utils/clip_rgb.js
5535
- var clip_rgb_default = (rgb2) => {
5536
- rgb2._clipped = false;
5537
- rgb2._unclipped = rgb2.slice(0);
5538
- for (let i = 0; i <= 3; i++) {
5539
- if (i < 3) {
5540
- if (rgb2[i] < 0 || rgb2[i] > 255) rgb2._clipped = true;
5541
- rgb2[i] = limit_default(rgb2[i], 0, 255);
5542
- } else if (i === 3) {
5543
- rgb2[i] = limit_default(rgb2[i], 0, 1);
5544
- }
5545
- }
5546
- return rgb2;
5547
- };
5548
-
5549
- // node_modules/chroma-js/src/utils/type.js
5550
- var classToType = {};
5551
- for (let name of [
5552
- "Boolean",
5553
- "Number",
5554
- "String",
5555
- "Function",
5556
- "Array",
5557
- "Date",
5558
- "RegExp",
5559
- "Undefined",
5560
- "Null"
5561
- ]) {
5562
- classToType[`[object ${name}]`] = name.toLowerCase();
5563
- }
5564
- function type_default(obj) {
5565
- return classToType[Object.prototype.toString.call(obj)] || "object";
5566
- }
5567
-
5568
- // node_modules/chroma-js/src/utils/unpack.js
5569
- var unpack_default = (args, keyOrder = null) => {
5570
- if (args.length >= 3) return Array.prototype.slice.call(args);
5571
- if (type_default(args[0]) == "object" && keyOrder) {
5572
- return keyOrder.split("").filter((k) => args[0][k] !== void 0).map((k) => args[0][k]);
5573
- }
5574
- return args[0];
5575
- };
5576
-
5577
- // node_modules/chroma-js/src/utils/last.js
5578
- var last_default = (args) => {
5579
- if (args.length < 2) return null;
5580
- const l = args.length - 1;
5581
- if (type_default(args[l]) == "string") return args[l].toLowerCase();
5582
- return null;
5583
- };
5584
-
5585
- // node_modules/chroma-js/src/utils/index.js
5586
- var { PI, min, max } = Math;
5587
- var TWOPI = PI * 2;
5588
- var PITHIRD = PI / 3;
5589
- var DEG2RAD = PI / 180;
5590
- var RAD2DEG = 180 / PI;
5591
-
5592
- // node_modules/chroma-js/src/io/input.js
5593
- var input_default = {
5594
- format: {},
5595
- autodetect: []
5596
- };
5597
-
5598
- // node_modules/chroma-js/src/Color.js
5599
- var Color = class {
5600
- constructor(...args) {
5601
- const me = this;
5602
- if (type_default(args[0]) === "object" && args[0].constructor && args[0].constructor === this.constructor) {
5603
- return args[0];
5604
- }
5605
- let mode = last_default(args);
5606
- let autodetect = false;
5607
- if (!mode) {
5608
- autodetect = true;
5609
- if (!input_default.sorted) {
5610
- input_default.autodetect = input_default.autodetect.sort((a, b) => b.p - a.p);
5611
- input_default.sorted = true;
5612
- }
5613
- for (let chk of input_default.autodetect) {
5614
- mode = chk.test(...args);
5615
- if (mode) break;
5616
- }
5617
- }
5618
- if (input_default.format[mode]) {
5619
- const rgb2 = input_default.format[mode].apply(
5620
- null,
5621
- autodetect ? args : args.slice(0, -1)
5622
- );
5623
- me._rgb = clip_rgb_default(rgb2);
5624
- } else {
5625
- throw new Error("unknown format: " + args);
5626
- }
5627
- if (me._rgb.length === 3) me._rgb.push(1);
5628
- }
5629
- toString() {
5630
- if (type_default(this.hex) == "function") return this.hex();
5631
- return `[${this._rgb.join(",")}]`;
5632
- }
5633
- };
5634
- var Color_default = Color;
5635
-
5636
- // node_modules/chroma-js/src/version.js
5637
- var version = "2.6.0";
5638
-
5639
- // node_modules/chroma-js/src/chroma.js
5640
- var chroma = (...args) => {
5641
- return new chroma.Color(...args);
5642
- };
5643
- chroma.Color = Color_default;
5644
- chroma.version = version;
5645
- var chroma_default = chroma;
5646
-
5647
- // node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js
5648
- var cmyk2rgb = (...args) => {
5649
- args = unpack_default(args, "cmyk");
5650
- const [c, m, y, k] = args;
5651
- const alpha = args.length > 4 ? args[4] : 1;
5652
- if (k === 1) return [0, 0, 0, alpha];
5653
- return [
5654
- c >= 1 ? 0 : 255 * (1 - c) * (1 - k),
5655
- // r
5656
- m >= 1 ? 0 : 255 * (1 - m) * (1 - k),
5657
- // g
5658
- y >= 1 ? 0 : 255 * (1 - y) * (1 - k),
5659
- // b
5660
- alpha
5661
- ];
5662
- };
5663
- var cmyk2rgb_default = cmyk2rgb;
5664
-
5665
- // node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js
5666
- var { max: max2 } = Math;
5667
- var rgb2cmyk = (...args) => {
5668
- let [r, g, b] = unpack_default(args, "rgb");
5669
- r = r / 255;
5670
- g = g / 255;
5671
- b = b / 255;
5672
- const k = 1 - max2(r, max2(g, b));
5673
- const f = k < 1 ? 1 / (1 - k) : 0;
5674
- const c = (1 - r - k) * f;
5675
- const m = (1 - g - k) * f;
5676
- const y = (1 - b - k) * f;
5677
- return [c, m, y, k];
5678
- };
5679
- var rgb2cmyk_default = rgb2cmyk;
5680
-
5681
- // node_modules/chroma-js/src/io/cmyk/index.js
5682
- Color_default.prototype.cmyk = function() {
5683
- return rgb2cmyk_default(this._rgb);
5684
- };
5685
- chroma_default.cmyk = (...args) => new Color_default(...args, "cmyk");
5686
- input_default.format.cmyk = cmyk2rgb_default;
5687
- input_default.autodetect.push({
5688
- p: 2,
5689
- test: (...args) => {
5690
- args = unpack_default(args, "cmyk");
5691
- if (type_default(args) === "array" && args.length === 4) {
5692
- return "cmyk";
5693
- }
5694
- }
5695
- });
5696
-
5697
- // node_modules/chroma-js/src/io/css/hsl2css.js
5698
- var rnd = (a) => Math.round(a * 100) / 100;
5699
- var hsl2css = (...args) => {
5700
- const hsla = unpack_default(args, "hsla");
5701
- let mode = last_default(args) || "lsa";
5702
- hsla[0] = rnd(hsla[0] || 0);
5703
- hsla[1] = rnd(hsla[1] * 100) + "%";
5704
- hsla[2] = rnd(hsla[2] * 100) + "%";
5705
- if (mode === "hsla" || hsla.length > 3 && hsla[3] < 1) {
5706
- hsla[3] = hsla.length > 3 ? hsla[3] : 1;
5707
- mode = "hsla";
5708
- } else {
5709
- hsla.length = 3;
5710
- }
5711
- return `${mode}(${hsla.join(",")})`;
5712
- };
5713
- var hsl2css_default = hsl2css;
5714
-
5715
- // node_modules/chroma-js/src/io/hsl/rgb2hsl.js
5716
- var rgb2hsl = (...args) => {
5717
- args = unpack_default(args, "rgba");
5718
- let [r, g, b] = args;
5719
- r /= 255;
5720
- g /= 255;
5721
- b /= 255;
5722
- const minRgb = min(r, g, b);
5723
- const maxRgb = max(r, g, b);
5724
- const l = (maxRgb + minRgb) / 2;
5725
- let s, h;
5726
- if (maxRgb === minRgb) {
5727
- s = 0;
5728
- h = Number.NaN;
5729
- } else {
5730
- s = l < 0.5 ? (maxRgb - minRgb) / (maxRgb + minRgb) : (maxRgb - minRgb) / (2 - maxRgb - minRgb);
5731
- }
5732
- if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);
5733
- else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);
5734
- else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);
5735
- h *= 60;
5736
- if (h < 0) h += 360;
5737
- if (args.length > 3 && args[3] !== void 0) return [h, s, l, args[3]];
5738
- return [h, s, l];
5739
- };
5740
- var rgb2hsl_default = rgb2hsl;
5741
-
5742
- // node_modules/chroma-js/src/io/css/rgb2css.js
5743
- var { round } = Math;
5744
- var rgb2css = (...args) => {
5745
- const rgba = unpack_default(args, "rgba");
5746
- let mode = last_default(args) || "rgb";
5747
- if (mode.substr(0, 3) == "hsl") {
5748
- return hsl2css_default(rgb2hsl_default(rgba), mode);
5749
- }
5750
- rgba[0] = round(rgba[0]);
5751
- rgba[1] = round(rgba[1]);
5752
- rgba[2] = round(rgba[2]);
5753
- if (mode === "rgba" || rgba.length > 3 && rgba[3] < 1) {
5754
- rgba[3] = rgba.length > 3 ? rgba[3] : 1;
5755
- mode = "rgba";
5756
- }
5757
- return `${mode}(${rgba.slice(0, mode === "rgb" ? 3 : 4).join(",")})`;
5758
- };
5759
- var rgb2css_default = rgb2css;
5760
-
5761
- // node_modules/chroma-js/src/io/hsl/hsl2rgb.js
5762
- var { round: round2 } = Math;
5763
- var hsl2rgb = (...args) => {
5764
- args = unpack_default(args, "hsl");
5765
- const [h, s, l] = args;
5766
- let r, g, b;
5767
- if (s === 0) {
5768
- r = g = b = l * 255;
5769
- } else {
5770
- const t3 = [0, 0, 0];
5771
- const c = [0, 0, 0];
5772
- const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;
5773
- const t1 = 2 * l - t2;
5774
- const h_ = h / 360;
5775
- t3[0] = h_ + 1 / 3;
5776
- t3[1] = h_;
5777
- t3[2] = h_ - 1 / 3;
5778
- for (let i = 0; i < 3; i++) {
5779
- if (t3[i] < 0) t3[i] += 1;
5780
- if (t3[i] > 1) t3[i] -= 1;
5781
- if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];
5782
- else if (2 * t3[i] < 1) c[i] = t2;
5783
- else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;
5784
- else c[i] = t1;
5785
- }
5786
- [r, g, b] = [round2(c[0] * 255), round2(c[1] * 255), round2(c[2] * 255)];
5787
- }
5788
- if (args.length > 3) {
5789
- return [r, g, b, args[3]];
5790
- }
5791
- return [r, g, b, 1];
5792
- };
5793
- var hsl2rgb_default = hsl2rgb;
5794
-
5795
- // node_modules/chroma-js/src/io/css/css2rgb.js
5796
- var RE_RGB = /^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/;
5797
- var RE_RGBA = /^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/;
5798
- var RE_RGB_PCT = /^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/;
5799
- var RE_RGBA_PCT = /^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/;
5800
- var RE_HSL = /^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/;
5801
- var RE_HSLA = /^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/;
5802
- var { round: round3 } = Math;
5803
- var css2rgb = (css) => {
5804
- css = css.toLowerCase().trim();
5805
- let m;
5806
- if (input_default.format.named) {
5807
- try {
5808
- return input_default.format.named(css);
5809
- } catch (e) {
5810
- }
5811
- }
5812
- if (m = css.match(RE_RGB)) {
5813
- const rgb2 = m.slice(1, 4);
5814
- for (let i = 0; i < 3; i++) {
5815
- rgb2[i] = +rgb2[i];
5816
- }
5817
- rgb2[3] = 1;
5818
- return rgb2;
5819
- }
5820
- if (m = css.match(RE_RGBA)) {
5821
- const rgb2 = m.slice(1, 5);
5822
- for (let i = 0; i < 4; i++) {
5823
- rgb2[i] = +rgb2[i];
5824
- }
5825
- return rgb2;
5826
- }
5827
- if (m = css.match(RE_RGB_PCT)) {
5828
- const rgb2 = m.slice(1, 4);
5829
- for (let i = 0; i < 3; i++) {
5830
- rgb2[i] = round3(rgb2[i] * 2.55);
5831
- }
5832
- rgb2[3] = 1;
5833
- return rgb2;
5834
- }
5835
- if (m = css.match(RE_RGBA_PCT)) {
5836
- const rgb2 = m.slice(1, 5);
5837
- for (let i = 0; i < 3; i++) {
5838
- rgb2[i] = round3(rgb2[i] * 2.55);
5839
- }
5840
- rgb2[3] = +rgb2[3];
5841
- return rgb2;
5842
- }
5843
- if (m = css.match(RE_HSL)) {
5844
- const hsl2 = m.slice(1, 4);
5845
- hsl2[1] *= 0.01;
5846
- hsl2[2] *= 0.01;
5847
- const rgb2 = hsl2rgb_default(hsl2);
5848
- rgb2[3] = 1;
5849
- return rgb2;
5850
- }
5851
- if (m = css.match(RE_HSLA)) {
5852
- const hsl2 = m.slice(1, 4);
5853
- hsl2[1] *= 0.01;
5854
- hsl2[2] *= 0.01;
5855
- const rgb2 = hsl2rgb_default(hsl2);
5856
- rgb2[3] = +m[4];
5857
- return rgb2;
5858
- }
5859
- };
5860
- css2rgb.test = (s) => {
5861
- return RE_RGB.test(s) || RE_RGBA.test(s) || RE_RGB_PCT.test(s) || RE_RGBA_PCT.test(s) || RE_HSL.test(s) || RE_HSLA.test(s);
5862
- };
5863
- var css2rgb_default = css2rgb;
5864
-
5865
- // node_modules/chroma-js/src/io/css/index.js
5866
- Color_default.prototype.css = function(mode) {
5867
- return rgb2css_default(this._rgb, mode);
5868
- };
5869
- chroma_default.css = (...args) => new Color_default(...args, "css");
5870
- input_default.format.css = css2rgb_default;
5871
- input_default.autodetect.push({
5872
- p: 5,
5873
- test: (h, ...rest) => {
5874
- if (!rest.length && type_default(h) === "string" && css2rgb_default.test(h)) {
5875
- return "css";
5876
- }
5877
- }
5878
- });
5879
-
5880
- // node_modules/chroma-js/src/io/gl/index.js
5881
- input_default.format.gl = (...args) => {
5882
- const rgb2 = unpack_default(args, "rgba");
5883
- rgb2[0] *= 255;
5884
- rgb2[1] *= 255;
5885
- rgb2[2] *= 255;
5886
- return rgb2;
5887
- };
5888
- chroma_default.gl = (...args) => new Color_default(...args, "gl");
5889
- Color_default.prototype.gl = function() {
5890
- const rgb2 = this._rgb;
5891
- return [rgb2[0] / 255, rgb2[1] / 255, rgb2[2] / 255, rgb2[3]];
5892
- };
5893
-
5894
- // node_modules/chroma-js/src/io/hcg/hcg2rgb.js
5895
- var { floor } = Math;
5896
- var hcg2rgb = (...args) => {
5897
- args = unpack_default(args, "hcg");
5898
- let [h, c, _g] = args;
5899
- let r, g, b;
5900
- _g = _g * 255;
5901
- const _c = c * 255;
5902
- if (c === 0) {
5903
- r = g = b = _g;
5904
- } else {
5905
- if (h === 360) h = 0;
5906
- if (h > 360) h -= 360;
5907
- if (h < 0) h += 360;
5908
- h /= 60;
5909
- const i = floor(h);
5910
- const f = h - i;
5911
- const p = _g * (1 - c);
5912
- const q = p + _c * (1 - f);
5913
- const t = p + _c * f;
5914
- const v = p + _c;
5915
- switch (i) {
5916
- case 0:
5917
- [r, g, b] = [v, t, p];
5918
- break;
5919
- case 1:
5920
- [r, g, b] = [q, v, p];
5921
- break;
5922
- case 2:
5923
- [r, g, b] = [p, v, t];
5924
- break;
5925
- case 3:
5926
- [r, g, b] = [p, q, v];
5927
- break;
5928
- case 4:
5929
- [r, g, b] = [t, p, v];
5930
- break;
5931
- case 5:
5932
- [r, g, b] = [v, p, q];
5933
- break;
5934
- }
5935
- }
5936
- return [r, g, b, args.length > 3 ? args[3] : 1];
5937
- };
5938
- var hcg2rgb_default = hcg2rgb;
5939
-
5940
- // node_modules/chroma-js/src/io/hcg/rgb2hcg.js
5941
- var rgb2hcg = (...args) => {
5942
- const [r, g, b] = unpack_default(args, "rgb");
5943
- const minRgb = min(r, g, b);
5944
- const maxRgb = max(r, g, b);
5945
- const delta2 = maxRgb - minRgb;
5946
- const c = delta2 * 100 / 255;
5947
- const _g = minRgb / (255 - delta2) * 100;
5948
- let h;
5949
- if (delta2 === 0) {
5950
- h = Number.NaN;
5951
- } else {
5952
- if (r === maxRgb) h = (g - b) / delta2;
5953
- if (g === maxRgb) h = 2 + (b - r) / delta2;
5954
- if (b === maxRgb) h = 4 + (r - g) / delta2;
5955
- h *= 60;
5956
- if (h < 0) h += 360;
5957
- }
5958
- return [h, c, _g];
5959
- };
5960
- var rgb2hcg_default = rgb2hcg;
5961
-
5962
- // node_modules/chroma-js/src/io/hcg/index.js
5963
- Color_default.prototype.hcg = function() {
5964
- return rgb2hcg_default(this._rgb);
5965
- };
5966
- chroma_default.hcg = (...args) => new Color_default(...args, "hcg");
5967
- input_default.format.hcg = hcg2rgb_default;
5968
- input_default.autodetect.push({
5969
- p: 1,
5970
- test: (...args) => {
5971
- args = unpack_default(args, "hcg");
5972
- if (type_default(args) === "array" && args.length === 3) {
5973
- return "hcg";
5974
- }
5975
- }
5976
- });
5977
-
5978
- // node_modules/chroma-js/src/io/hex/hex2rgb.js
5979
- var RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;
5980
- var RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;
5981
- var hex2rgb = (hex) => {
5982
- if (hex.match(RE_HEX)) {
5983
- if (hex.length === 4 || hex.length === 7) {
5984
- hex = hex.substr(1);
5985
- }
5986
- if (hex.length === 3) {
5987
- hex = hex.split("");
5988
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
5989
- }
5990
- const u = parseInt(hex, 16);
5991
- const r = u >> 16;
5992
- const g = u >> 8 & 255;
5993
- const b = u & 255;
5994
- return [r, g, b, 1];
5995
- }
5996
- if (hex.match(RE_HEXA)) {
5997
- if (hex.length === 5 || hex.length === 9) {
5998
- hex = hex.substr(1);
5999
- }
6000
- if (hex.length === 4) {
6001
- hex = hex.split("");
6002
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2] + hex[3] + hex[3];
6003
- }
6004
- const u = parseInt(hex, 16);
6005
- const r = u >> 24 & 255;
6006
- const g = u >> 16 & 255;
6007
- const b = u >> 8 & 255;
6008
- const a = Math.round((u & 255) / 255 * 100) / 100;
6009
- return [r, g, b, a];
6010
- }
6011
- throw new Error(`unknown hex color: ${hex}`);
6012
- };
6013
- var hex2rgb_default = hex2rgb;
6014
-
6015
- // node_modules/chroma-js/src/io/hex/rgb2hex.js
6016
- var { round: round4 } = Math;
6017
- var rgb2hex = (...args) => {
6018
- let [r, g, b, a] = unpack_default(args, "rgba");
6019
- let mode = last_default(args) || "auto";
6020
- if (a === void 0) a = 1;
6021
- if (mode === "auto") {
6022
- mode = a < 1 ? "rgba" : "rgb";
6023
- }
6024
- r = round4(r);
6025
- g = round4(g);
6026
- b = round4(b);
6027
- const u = r << 16 | g << 8 | b;
6028
- let str = "000000" + u.toString(16);
6029
- str = str.substr(str.length - 6);
6030
- let hxa = "0" + round4(a * 255).toString(16);
6031
- hxa = hxa.substr(hxa.length - 2);
6032
- switch (mode.toLowerCase()) {
6033
- case "rgba":
6034
- return `#${str}${hxa}`;
6035
- case "argb":
6036
- return `#${hxa}${str}`;
6037
- default:
6038
- return `#${str}`;
6039
- }
6040
- };
6041
- var rgb2hex_default = rgb2hex;
6042
-
6043
- // node_modules/chroma-js/src/io/hex/index.js
6044
- Color_default.prototype.hex = function(mode) {
6045
- return rgb2hex_default(this._rgb, mode);
6046
- };
6047
- chroma_default.hex = (...args) => new Color_default(...args, "hex");
6048
- input_default.format.hex = hex2rgb_default;
6049
- input_default.autodetect.push({
6050
- p: 4,
6051
- test: (h, ...rest) => {
6052
- if (!rest.length && type_default(h) === "string" && [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0) {
6053
- return "hex";
6054
- }
6055
- }
6056
- });
6057
-
6058
- // node_modules/chroma-js/src/io/hsi/hsi2rgb.js
6059
- var { cos } = Math;
6060
- var hsi2rgb = (...args) => {
6061
- args = unpack_default(args, "hsi");
6062
- let [h, s, i] = args;
6063
- let r, g, b;
6064
- if (isNaN(h)) h = 0;
6065
- if (isNaN(s)) s = 0;
6066
- if (h > 360) h -= 360;
6067
- if (h < 0) h += 360;
6068
- h /= 360;
6069
- if (h < 1 / 3) {
6070
- b = (1 - s) / 3;
6071
- r = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6072
- g = 1 - (b + r);
6073
- } else if (h < 2 / 3) {
6074
- h -= 1 / 3;
6075
- r = (1 - s) / 3;
6076
- g = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6077
- b = 1 - (r + g);
6078
- } else {
6079
- h -= 2 / 3;
6080
- g = (1 - s) / 3;
6081
- b = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6082
- r = 1 - (g + b);
6083
- }
6084
- r = limit_default(i * r * 3);
6085
- g = limit_default(i * g * 3);
6086
- b = limit_default(i * b * 3);
6087
- return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];
6088
- };
6089
- var hsi2rgb_default = hsi2rgb;
6090
-
6091
- // node_modules/chroma-js/src/io/hsi/rgb2hsi.js
6092
- var { min: min2, sqrt, acos } = Math;
6093
- var rgb2hsi = (...args) => {
6094
- let [r, g, b] = unpack_default(args, "rgb");
6095
- r /= 255;
6096
- g /= 255;
6097
- b /= 255;
6098
- let h;
6099
- const min_ = min2(r, g, b);
6100
- const i = (r + g + b) / 3;
6101
- const s = i > 0 ? 1 - min_ / i : 0;
6102
- if (s === 0) {
6103
- h = NaN;
6104
- } else {
6105
- h = (r - g + (r - b)) / 2;
6106
- h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));
6107
- h = acos(h);
6108
- if (b > g) {
6109
- h = TWOPI - h;
6110
- }
6111
- h /= TWOPI;
6112
- }
6113
- return [h * 360, s, i];
6114
- };
6115
- var rgb2hsi_default = rgb2hsi;
6116
-
6117
- // node_modules/chroma-js/src/io/hsi/index.js
6118
- Color_default.prototype.hsi = function() {
6119
- return rgb2hsi_default(this._rgb);
6120
- };
6121
- chroma_default.hsi = (...args) => new Color_default(...args, "hsi");
6122
- input_default.format.hsi = hsi2rgb_default;
6123
- input_default.autodetect.push({
6124
- p: 2,
6125
- test: (...args) => {
6126
- args = unpack_default(args, "hsi");
6127
- if (type_default(args) === "array" && args.length === 3) {
6128
- return "hsi";
6129
- }
6130
- }
6131
- });
6132
-
6133
- // node_modules/chroma-js/src/io/hsl/index.js
6134
- Color_default.prototype.hsl = function() {
6135
- return rgb2hsl_default(this._rgb);
6136
- };
6137
- chroma_default.hsl = (...args) => new Color_default(...args, "hsl");
6138
- input_default.format.hsl = hsl2rgb_default;
6139
- input_default.autodetect.push({
6140
- p: 2,
6141
- test: (...args) => {
6142
- args = unpack_default(args, "hsl");
6143
- if (type_default(args) === "array" && args.length === 3) {
6144
- return "hsl";
6145
- }
6146
- }
6147
- });
6148
-
6149
- // node_modules/chroma-js/src/io/hsv/hsv2rgb.js
6150
- var { floor: floor2 } = Math;
6151
- var hsv2rgb = (...args) => {
6152
- args = unpack_default(args, "hsv");
6153
- let [h, s, v] = args;
6154
- let r, g, b;
6155
- v *= 255;
6156
- if (s === 0) {
6157
- r = g = b = v;
6158
- } else {
6159
- if (h === 360) h = 0;
6160
- if (h > 360) h -= 360;
6161
- if (h < 0) h += 360;
6162
- h /= 60;
6163
- const i = floor2(h);
6164
- const f = h - i;
6165
- const p = v * (1 - s);
6166
- const q = v * (1 - s * f);
6167
- const t = v * (1 - s * (1 - f));
6168
- switch (i) {
6169
- case 0:
6170
- [r, g, b] = [v, t, p];
6171
- break;
6172
- case 1:
6173
- [r, g, b] = [q, v, p];
6174
- break;
6175
- case 2:
6176
- [r, g, b] = [p, v, t];
6177
- break;
6178
- case 3:
6179
- [r, g, b] = [p, q, v];
6180
- break;
6181
- case 4:
6182
- [r, g, b] = [t, p, v];
6183
- break;
6184
- case 5:
6185
- [r, g, b] = [v, p, q];
6186
- break;
6187
- }
6188
- }
6189
- return [r, g, b, args.length > 3 ? args[3] : 1];
6190
- };
6191
- var hsv2rgb_default = hsv2rgb;
6192
-
6193
- // node_modules/chroma-js/src/io/hsv/rgb2hsv.js
6194
- var { min: min3, max: max3 } = Math;
6195
- var rgb2hsl2 = (...args) => {
6196
- args = unpack_default(args, "rgb");
6197
- let [r, g, b] = args;
6198
- const min_ = min3(r, g, b);
6199
- const max_ = max3(r, g, b);
6200
- const delta2 = max_ - min_;
6201
- let h, s, v;
6202
- v = max_ / 255;
6203
- if (max_ === 0) {
6204
- h = Number.NaN;
6205
- s = 0;
6206
- } else {
6207
- s = delta2 / max_;
6208
- if (r === max_) h = (g - b) / delta2;
6209
- if (g === max_) h = 2 + (b - r) / delta2;
6210
- if (b === max_) h = 4 + (r - g) / delta2;
6211
- h *= 60;
6212
- if (h < 0) h += 360;
6213
- }
6214
- return [h, s, v];
6215
- };
6216
- var rgb2hsv_default = rgb2hsl2;
6217
-
6218
- // node_modules/chroma-js/src/io/hsv/index.js
6219
- Color_default.prototype.hsv = function() {
6220
- return rgb2hsv_default(this._rgb);
6221
- };
6222
- chroma_default.hsv = (...args) => new Color_default(...args, "hsv");
6223
- input_default.format.hsv = hsv2rgb_default;
6224
- input_default.autodetect.push({
6225
- p: 2,
6226
- test: (...args) => {
6227
- args = unpack_default(args, "hsv");
6228
- if (type_default(args) === "array" && args.length === 3) {
6229
- return "hsv";
6230
- }
6231
- }
6232
- });
6233
-
6234
- // node_modules/chroma-js/src/io/lab/lab-constants.js
6235
- var lab_constants_default = {
6236
- // Corresponds roughly to RGB brighter/darker
6237
- Kn: 18,
6238
- // D65 standard referent
6239
- Xn: 0.95047,
6240
- Yn: 1,
6241
- Zn: 1.08883,
6242
- t0: 0.137931034,
6243
- // 4 / 29
6244
- t1: 0.206896552,
6245
- // 6 / 29
6246
- t2: 0.12841855,
6247
- // 3 * t1 * t1
6248
- t3: 8856452e-9
6249
- // t1 * t1 * t1
6250
- };
6251
-
6252
- // node_modules/chroma-js/src/io/lab/lab2rgb.js
6253
- var { pow } = Math;
6254
- var lab2rgb = (...args) => {
6255
- args = unpack_default(args, "lab");
6256
- const [l, a, b] = args;
6257
- let x, y, z, r, g, b_;
6258
- y = (l + 16) / 116;
6259
- x = isNaN(a) ? y : y + a / 500;
6260
- z = isNaN(b) ? y : y - b / 200;
6261
- y = lab_constants_default.Yn * lab_xyz(y);
6262
- x = lab_constants_default.Xn * lab_xyz(x);
6263
- z = lab_constants_default.Zn * lab_xyz(z);
6264
- r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z);
6265
- g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);
6266
- b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);
6267
- return [r, g, b_, args.length > 3 ? args[3] : 1];
6268
- };
6269
- var xyz_rgb = (r) => {
6270
- return 255 * (r <= 304e-5 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);
6271
- };
6272
- var lab_xyz = (t) => {
6273
- return t > lab_constants_default.t1 ? t * t * t : lab_constants_default.t2 * (t - lab_constants_default.t0);
6274
- };
6275
- var lab2rgb_default = lab2rgb;
6276
-
6277
- // node_modules/chroma-js/src/io/lab/rgb2lab.js
6278
- var { pow: pow2 } = Math;
6279
- var rgb2lab = (...args) => {
6280
- const [r, g, b] = unpack_default(args, "rgb");
6281
- const [x, y, z] = rgb2xyz(r, g, b);
6282
- const l = 116 * y - 16;
6283
- return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];
6284
- };
6285
- var rgb_xyz = (r) => {
6286
- if ((r /= 255) <= 0.04045) return r / 12.92;
6287
- return pow2((r + 0.055) / 1.055, 2.4);
6288
- };
6289
- var xyz_lab = (t) => {
6290
- if (t > lab_constants_default.t3) return pow2(t, 1 / 3);
6291
- return t / lab_constants_default.t2 + lab_constants_default.t0;
6292
- };
6293
- var rgb2xyz = (r, g, b) => {
6294
- r = rgb_xyz(r);
6295
- g = rgb_xyz(g);
6296
- b = rgb_xyz(b);
6297
- const x = xyz_lab(
6298
- (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / lab_constants_default.Xn
6299
- );
6300
- const y = xyz_lab(
6301
- (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / lab_constants_default.Yn
6302
- );
6303
- const z = xyz_lab(
6304
- (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / lab_constants_default.Zn
6305
- );
6306
- return [x, y, z];
6307
- };
6308
- var rgb2lab_default = rgb2lab;
6309
-
6310
- // node_modules/chroma-js/src/io/lab/index.js
6311
- Color_default.prototype.lab = function() {
6312
- return rgb2lab_default(this._rgb);
6313
- };
6314
- chroma_default.lab = (...args) => new Color_default(...args, "lab");
6315
- input_default.format.lab = lab2rgb_default;
6316
- input_default.autodetect.push({
6317
- p: 2,
6318
- test: (...args) => {
6319
- args = unpack_default(args, "lab");
6320
- if (type_default(args) === "array" && args.length === 3) {
6321
- return "lab";
6322
- }
6323
- }
6324
- });
6325
-
6326
- // node_modules/chroma-js/src/io/lch/lch2lab.js
6327
- var { sin, cos: cos2 } = Math;
6328
- var lch2lab = (...args) => {
6329
- let [l, c, h] = unpack_default(args, "lch");
6330
- if (isNaN(h)) h = 0;
6331
- h = h * DEG2RAD;
6332
- return [l, cos2(h) * c, sin(h) * c];
6333
- };
6334
- var lch2lab_default = lch2lab;
6335
-
6336
- // node_modules/chroma-js/src/io/lch/lch2rgb.js
6337
- var lch2rgb = (...args) => {
6338
- args = unpack_default(args, "lch");
6339
- const [l, c, h] = args;
6340
- const [L, a, b_] = lch2lab_default(l, c, h);
6341
- const [r, g, b] = lab2rgb_default(L, a, b_);
6342
- return [r, g, b, args.length > 3 ? args[3] : 1];
6343
- };
6344
- var lch2rgb_default = lch2rgb;
6345
-
6346
- // node_modules/chroma-js/src/io/lch/hcl2rgb.js
6347
- var hcl2rgb = (...args) => {
6348
- const hcl = unpack_default(args, "hcl").reverse();
6349
- return lch2rgb_default(...hcl);
6350
- };
6351
- var hcl2rgb_default = hcl2rgb;
6352
-
6353
- // node_modules/chroma-js/src/io/lch/lab2lch.js
6354
- var { sqrt: sqrt2, atan2, round: round5 } = Math;
6355
- var lab2lch = (...args) => {
6356
- const [l, a, b] = unpack_default(args, "lab");
6357
- const c = sqrt2(a * a + b * b);
6358
- let h = (atan2(b, a) * RAD2DEG + 360) % 360;
6359
- if (round5(c * 1e4) === 0) h = Number.NaN;
6360
- return [l, c, h];
6361
- };
6362
- var lab2lch_default = lab2lch;
6363
-
6364
- // node_modules/chroma-js/src/io/lch/rgb2lch.js
6365
- var rgb2lch = (...args) => {
6366
- const [r, g, b] = unpack_default(args, "rgb");
6367
- const [l, a, b_] = rgb2lab_default(r, g, b);
6368
- return lab2lch_default(l, a, b_);
6369
- };
6370
- var rgb2lch_default = rgb2lch;
6371
-
6372
- // node_modules/chroma-js/src/io/lch/index.js
6373
- Color_default.prototype.lch = function() {
6374
- return rgb2lch_default(this._rgb);
6375
- };
6376
- Color_default.prototype.hcl = function() {
6377
- return rgb2lch_default(this._rgb).reverse();
6378
- };
6379
- chroma_default.lch = (...args) => new Color_default(...args, "lch");
6380
- chroma_default.hcl = (...args) => new Color_default(...args, "hcl");
6381
- input_default.format.lch = lch2rgb_default;
6382
- input_default.format.hcl = hcl2rgb_default;
6383
- ["lch", "hcl"].forEach(
6384
- (m) => input_default.autodetect.push({
6385
- p: 2,
6386
- test: (...args) => {
6387
- args = unpack_default(args, m);
6388
- if (type_default(args) === "array" && args.length === 3) {
6389
- return m;
6390
- }
6391
- }
6392
- })
6393
- );
6394
-
6395
- // node_modules/chroma-js/src/colors/w3cx11.js
6396
- var w3cx11 = {
6397
- aliceblue: "#f0f8ff",
6398
- antiquewhite: "#faebd7",
6399
- aqua: "#00ffff",
6400
- aquamarine: "#7fffd4",
6401
- azure: "#f0ffff",
6402
- beige: "#f5f5dc",
6403
- bisque: "#ffe4c4",
6404
- black: "#000000",
6405
- blanchedalmond: "#ffebcd",
6406
- blue: "#0000ff",
6407
- blueviolet: "#8a2be2",
6408
- brown: "#a52a2a",
6409
- burlywood: "#deb887",
6410
- cadetblue: "#5f9ea0",
6411
- chartreuse: "#7fff00",
6412
- chocolate: "#d2691e",
6413
- coral: "#ff7f50",
6414
- cornflowerblue: "#6495ed",
6415
- cornsilk: "#fff8dc",
6416
- crimson: "#dc143c",
6417
- cyan: "#00ffff",
6418
- darkblue: "#00008b",
6419
- darkcyan: "#008b8b",
6420
- darkgoldenrod: "#b8860b",
6421
- darkgray: "#a9a9a9",
6422
- darkgreen: "#006400",
6423
- darkgrey: "#a9a9a9",
6424
- darkkhaki: "#bdb76b",
6425
- darkmagenta: "#8b008b",
6426
- darkolivegreen: "#556b2f",
6427
- darkorange: "#ff8c00",
6428
- darkorchid: "#9932cc",
6429
- darkred: "#8b0000",
6430
- darksalmon: "#e9967a",
6431
- darkseagreen: "#8fbc8f",
6432
- darkslateblue: "#483d8b",
6433
- darkslategray: "#2f4f4f",
6434
- darkslategrey: "#2f4f4f",
6435
- darkturquoise: "#00ced1",
6436
- darkviolet: "#9400d3",
6437
- deeppink: "#ff1493",
6438
- deepskyblue: "#00bfff",
6439
- dimgray: "#696969",
6440
- dimgrey: "#696969",
6441
- dodgerblue: "#1e90ff",
6442
- firebrick: "#b22222",
6443
- floralwhite: "#fffaf0",
6444
- forestgreen: "#228b22",
6445
- fuchsia: "#ff00ff",
6446
- gainsboro: "#dcdcdc",
6447
- ghostwhite: "#f8f8ff",
6448
- gold: "#ffd700",
6449
- goldenrod: "#daa520",
6450
- gray: "#808080",
6451
- green: "#008000",
6452
- greenyellow: "#adff2f",
6453
- grey: "#808080",
6454
- honeydew: "#f0fff0",
6455
- hotpink: "#ff69b4",
6456
- indianred: "#cd5c5c",
6457
- indigo: "#4b0082",
6458
- ivory: "#fffff0",
6459
- khaki: "#f0e68c",
6460
- laserlemon: "#ffff54",
6461
- lavender: "#e6e6fa",
6462
- lavenderblush: "#fff0f5",
6463
- lawngreen: "#7cfc00",
6464
- lemonchiffon: "#fffacd",
6465
- lightblue: "#add8e6",
6466
- lightcoral: "#f08080",
6467
- lightcyan: "#e0ffff",
6468
- lightgoldenrod: "#fafad2",
6469
- lightgoldenrodyellow: "#fafad2",
6470
- lightgray: "#d3d3d3",
6471
- lightgreen: "#90ee90",
6472
- lightgrey: "#d3d3d3",
6473
- lightpink: "#ffb6c1",
6474
- lightsalmon: "#ffa07a",
6475
- lightseagreen: "#20b2aa",
6476
- lightskyblue: "#87cefa",
6477
- lightslategray: "#778899",
6478
- lightslategrey: "#778899",
6479
- lightsteelblue: "#b0c4de",
6480
- lightyellow: "#ffffe0",
6481
- lime: "#00ff00",
6482
- limegreen: "#32cd32",
6483
- linen: "#faf0e6",
6484
- magenta: "#ff00ff",
6485
- maroon: "#800000",
6486
- maroon2: "#7f0000",
6487
- maroon3: "#b03060",
6488
- mediumaquamarine: "#66cdaa",
6489
- mediumblue: "#0000cd",
6490
- mediumorchid: "#ba55d3",
6491
- mediumpurple: "#9370db",
6492
- mediumseagreen: "#3cb371",
6493
- mediumslateblue: "#7b68ee",
6494
- mediumspringgreen: "#00fa9a",
6495
- mediumturquoise: "#48d1cc",
6496
- mediumvioletred: "#c71585",
6497
- midnightblue: "#191970",
6498
- mintcream: "#f5fffa",
6499
- mistyrose: "#ffe4e1",
6500
- moccasin: "#ffe4b5",
6501
- navajowhite: "#ffdead",
6502
- navy: "#000080",
6503
- oldlace: "#fdf5e6",
6504
- olive: "#808000",
6505
- olivedrab: "#6b8e23",
6506
- orange: "#ffa500",
6507
- orangered: "#ff4500",
6508
- orchid: "#da70d6",
6509
- palegoldenrod: "#eee8aa",
6510
- palegreen: "#98fb98",
6511
- paleturquoise: "#afeeee",
6512
- palevioletred: "#db7093",
6513
- papayawhip: "#ffefd5",
6514
- peachpuff: "#ffdab9",
6515
- peru: "#cd853f",
6516
- pink: "#ffc0cb",
6517
- plum: "#dda0dd",
6518
- powderblue: "#b0e0e6",
6519
- purple: "#800080",
6520
- purple2: "#7f007f",
6521
- purple3: "#a020f0",
6522
- rebeccapurple: "#663399",
6523
- red: "#ff0000",
6524
- rosybrown: "#bc8f8f",
6525
- royalblue: "#4169e1",
6526
- saddlebrown: "#8b4513",
6527
- salmon: "#fa8072",
6528
- sandybrown: "#f4a460",
6529
- seagreen: "#2e8b57",
6530
- seashell: "#fff5ee",
6531
- sienna: "#a0522d",
6532
- silver: "#c0c0c0",
6533
- skyblue: "#87ceeb",
6534
- slateblue: "#6a5acd",
6535
- slategray: "#708090",
6536
- slategrey: "#708090",
6537
- snow: "#fffafa",
6538
- springgreen: "#00ff7f",
6539
- steelblue: "#4682b4",
6540
- tan: "#d2b48c",
6541
- teal: "#008080",
6542
- thistle: "#d8bfd8",
6543
- tomato: "#ff6347",
6544
- turquoise: "#40e0d0",
6545
- violet: "#ee82ee",
6546
- wheat: "#f5deb3",
6547
- white: "#ffffff",
6548
- whitesmoke: "#f5f5f5",
6549
- yellow: "#ffff00",
6550
- yellowgreen: "#9acd32"
6551
- };
6552
- var w3cx11_default = w3cx11;
6553
-
6554
- // node_modules/chroma-js/src/io/named/index.js
6555
- Color_default.prototype.name = function() {
6556
- const hex = rgb2hex_default(this._rgb, "rgb");
6557
- for (let n of Object.keys(w3cx11_default)) {
6558
- if (w3cx11_default[n] === hex) return n.toLowerCase();
6559
- }
6560
- return hex;
6561
- };
6562
- input_default.format.named = (name) => {
6563
- name = name.toLowerCase();
6564
- if (w3cx11_default[name]) return hex2rgb_default(w3cx11_default[name]);
6565
- throw new Error("unknown color name: " + name);
6566
- };
6567
- input_default.autodetect.push({
6568
- p: 5,
6569
- test: (h, ...rest) => {
6570
- if (!rest.length && type_default(h) === "string" && w3cx11_default[h.toLowerCase()]) {
6571
- return "named";
6572
- }
6573
- }
6574
- });
6575
-
6576
- // node_modules/chroma-js/src/io/num/num2rgb.js
6577
- var num2rgb = (num2) => {
6578
- if (type_default(num2) == "number" && num2 >= 0 && num2 <= 16777215) {
6579
- const r = num2 >> 16;
6580
- const g = num2 >> 8 & 255;
6581
- const b = num2 & 255;
6582
- return [r, g, b, 1];
6583
- }
6584
- throw new Error("unknown num color: " + num2);
6585
- };
6586
- var num2rgb_default = num2rgb;
6587
-
6588
- // node_modules/chroma-js/src/io/num/rgb2num.js
6589
- var rgb2num = (...args) => {
6590
- const [r, g, b] = unpack_default(args, "rgb");
6591
- return (r << 16) + (g << 8) + b;
6592
- };
6593
- var rgb2num_default = rgb2num;
6594
-
6595
- // node_modules/chroma-js/src/io/num/index.js
6596
- Color_default.prototype.num = function() {
6597
- return rgb2num_default(this._rgb);
6598
- };
6599
- chroma_default.num = (...args) => new Color_default(...args, "num");
6600
- input_default.format.num = num2rgb_default;
6601
- input_default.autodetect.push({
6602
- p: 5,
6603
- test: (...args) => {
6604
- if (args.length === 1 && type_default(args[0]) === "number" && args[0] >= 0 && args[0] <= 16777215) {
6605
- return "num";
6606
- }
6607
- }
6608
- });
6609
-
6610
- // node_modules/chroma-js/src/io/rgb/index.js
6611
- var { round: round6 } = Math;
6612
- Color_default.prototype.rgb = function(rnd2 = true) {
6613
- if (rnd2 === false) return this._rgb.slice(0, 3);
6614
- return this._rgb.slice(0, 3).map(round6);
6615
- };
6616
- Color_default.prototype.rgba = function(rnd2 = true) {
6617
- return this._rgb.slice(0, 4).map((v, i) => {
6618
- return i < 3 ? rnd2 === false ? v : round6(v) : v;
6619
- });
6620
- };
6621
- chroma_default.rgb = (...args) => new Color_default(...args, "rgb");
6622
- input_default.format.rgb = (...args) => {
6623
- const rgba = unpack_default(args, "rgba");
6624
- if (rgba[3] === void 0) rgba[3] = 1;
6625
- return rgba;
6626
- };
6627
- input_default.autodetect.push({
6628
- p: 3,
6629
- test: (...args) => {
6630
- args = unpack_default(args, "rgba");
6631
- if (type_default(args) === "array" && (args.length === 3 || args.length === 4 && type_default(args[3]) == "number" && args[3] >= 0 && args[3] <= 1)) {
6632
- return "rgb";
6633
- }
6634
- }
6635
- });
6636
-
6637
- // node_modules/chroma-js/src/io/temp/temperature2rgb.js
6638
- var { log } = Math;
6639
- var temperature2rgb = (kelvin) => {
6640
- const temp = kelvin / 100;
6641
- let r, g, b;
6642
- if (temp < 66) {
6643
- r = 255;
6644
- g = temp < 6 ? 0 : -155.25485562709179 - 0.44596950469579133 * (g = temp - 2) + 104.49216199393888 * log(g);
6645
- b = temp < 20 ? 0 : -254.76935184120902 + 0.8274096064007395 * (b = temp - 10) + 115.67994401066147 * log(b);
6646
- } else {
6647
- r = 351.97690566805693 + 0.114206453784165 * (r = temp - 55) - 40.25366309332127 * log(r);
6648
- g = 325.4494125711974 + 0.07943456536662342 * (g = temp - 50) - 28.0852963507957 * log(g);
6649
- b = 255;
6650
- }
6651
- return [r, g, b, 1];
6652
- };
6653
- var temperature2rgb_default = temperature2rgb;
6654
-
6655
- // node_modules/chroma-js/src/io/temp/rgb2temperature.js
6656
- var { round: round7 } = Math;
6657
- var rgb2temperature = (...args) => {
6658
- const rgb2 = unpack_default(args, "rgb");
6659
- const r = rgb2[0], b = rgb2[2];
6660
- let minTemp = 1e3;
6661
- let maxTemp = 4e4;
6662
- const eps = 0.4;
6663
- let temp;
6664
- while (maxTemp - minTemp > eps) {
6665
- temp = (maxTemp + minTemp) * 0.5;
6666
- const rgb3 = temperature2rgb_default(temp);
6667
- if (rgb3[2] / rgb3[0] >= b / r) {
6668
- maxTemp = temp;
6669
- } else {
6670
- minTemp = temp;
6671
- }
6672
- }
6673
- return round7(temp);
6674
- };
6675
- var rgb2temperature_default = rgb2temperature;
6676
-
6677
- // node_modules/chroma-js/src/io/temp/index.js
6678
- Color_default.prototype.temp = Color_default.prototype.kelvin = Color_default.prototype.temperature = function() {
6679
- return rgb2temperature_default(this._rgb);
6680
- };
6681
- chroma_default.temp = chroma_default.kelvin = chroma_default.temperature = (...args) => new Color_default(...args, "temp");
6682
- input_default.format.temp = input_default.format.kelvin = input_default.format.temperature = temperature2rgb_default;
6683
-
6684
- // node_modules/chroma-js/src/io/oklab/oklab2rgb.js
6685
- var { pow: pow3, sign } = Math;
6686
- var oklab2rgb = (...args) => {
6687
- args = unpack_default(args, "lab");
6688
- const [L, a, b] = args;
6689
- const l = pow3(L + 0.3963377774 * a + 0.2158037573 * b, 3);
6690
- const m = pow3(L - 0.1055613458 * a - 0.0638541728 * b, 3);
6691
- const s = pow3(L - 0.0894841775 * a - 1.291485548 * b, 3);
6692
- return [
6693
- 255 * lrgb2rgb(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
6694
- 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
6695
- 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
6696
- args.length > 3 ? args[3] : 1
6697
- ];
6698
- };
6699
- var oklab2rgb_default = oklab2rgb;
6700
- function lrgb2rgb(c) {
6701
- const abs3 = Math.abs(c);
6702
- if (abs3 > 31308e-7) {
6703
- return (sign(c) || 1) * (1.055 * pow3(abs3, 1 / 2.4) - 0.055);
6704
- }
6705
- return c * 12.92;
6706
- }
6707
-
6708
- // node_modules/chroma-js/src/io/oklab/rgb2oklab.js
6709
- var { cbrt, pow: pow4, sign: sign2 } = Math;
6710
- var rgb2oklab = (...args) => {
6711
- const [r, g, b] = unpack_default(args, "rgb");
6712
- const [lr, lg, lb] = [
6713
- rgb2lrgb(r / 255),
6714
- rgb2lrgb(g / 255),
6715
- rgb2lrgb(b / 255)
6716
- ];
6717
- const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);
6718
- const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);
6719
- const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);
6720
- return [
6721
- 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
6722
- 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
6723
- 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s
6724
- ];
6725
- };
6726
- var rgb2oklab_default = rgb2oklab;
6727
- function rgb2lrgb(c) {
6728
- const abs3 = Math.abs(c);
6729
- if (abs3 < 0.04045) {
6730
- return c / 12.92;
6731
- }
6732
- return (sign2(c) || 1) * pow4((abs3 + 0.055) / 1.055, 2.4);
6733
- }
6734
-
6735
- // node_modules/chroma-js/src/io/oklab/index.js
6736
- Color_default.prototype.oklab = function() {
6737
- return rgb2oklab_default(this._rgb);
6738
- };
6739
- chroma_default.oklab = (...args) => new Color_default(...args, "oklab");
6740
- input_default.format.oklab = oklab2rgb_default;
6741
- input_default.autodetect.push({
6742
- p: 3,
6743
- test: (...args) => {
6744
- args = unpack_default(args, "oklab");
6745
- if (type_default(args) === "array" && args.length === 3) {
6746
- return "oklab";
6747
- }
6748
- }
6749
- });
6750
-
6751
- // node_modules/chroma-js/src/io/oklch/oklch2rgb.js
6752
- var oklch2rgb = (...args) => {
6753
- args = unpack_default(args, "lch");
6754
- const [l, c, h] = args;
6755
- const [L, a, b_] = lch2lab_default(l, c, h);
6756
- const [r, g, b] = oklab2rgb_default(L, a, b_);
6757
- return [r, g, b, args.length > 3 ? args[3] : 1];
6758
- };
6759
- var oklch2rgb_default = oklch2rgb;
6760
-
6761
- // node_modules/chroma-js/src/io/oklch/rgb2oklch.js
6762
- var rgb2oklch = (...args) => {
6763
- const [r, g, b] = unpack_default(args, "rgb");
6764
- const [l, a, b_] = rgb2oklab_default(r, g, b);
6765
- return lab2lch_default(l, a, b_);
6766
- };
6767
- var rgb2oklch_default = rgb2oklch;
6768
-
6769
- // node_modules/chroma-js/src/io/oklch/index.js
6770
- Color_default.prototype.oklch = function() {
6771
- return rgb2oklch_default(this._rgb);
6772
- };
6773
- chroma_default.oklch = (...args) => new Color_default(...args, "oklch");
6774
- input_default.format.oklch = oklch2rgb_default;
6775
- input_default.autodetect.push({
6776
- p: 3,
6777
- test: (...args) => {
6778
- args = unpack_default(args, "oklch");
6779
- if (type_default(args) === "array" && args.length === 3) {
6780
- return "oklch";
6781
- }
6782
- }
6783
- });
6784
-
6785
- // node_modules/chroma-js/src/ops/alpha.js
6786
- Color_default.prototype.alpha = function(a, mutate = false) {
6787
- if (a !== void 0 && type_default(a) === "number") {
6788
- if (mutate) {
6789
- this._rgb[3] = a;
6790
- return this;
6791
- }
6792
- return new Color_default([this._rgb[0], this._rgb[1], this._rgb[2], a], "rgb");
6793
- }
6794
- return this._rgb[3];
6795
- };
6796
-
6797
- // node_modules/chroma-js/src/ops/clipped.js
6798
- Color_default.prototype.clipped = function() {
6799
- return this._rgb._clipped || false;
6800
- };
6801
-
6802
- // node_modules/chroma-js/src/ops/darken.js
6803
- Color_default.prototype.darken = function(amount = 1) {
6804
- const me = this;
6805
- const lab2 = me.lab();
6806
- lab2[0] -= lab_constants_default.Kn * amount;
6807
- return new Color_default(lab2, "lab").alpha(me.alpha(), true);
6808
- };
6809
- Color_default.prototype.brighten = function(amount = 1) {
6810
- return this.darken(-amount);
6811
- };
6812
- Color_default.prototype.darker = Color_default.prototype.darken;
6813
- Color_default.prototype.brighter = Color_default.prototype.brighten;
6814
-
6815
- // node_modules/chroma-js/src/ops/get.js
6816
- Color_default.prototype.get = function(mc) {
6817
- const [mode, channel] = mc.split(".");
6818
- const src = this[mode]();
6819
- if (channel) {
6820
- const i = mode.indexOf(channel) - (mode.substr(0, 2) === "ok" ? 2 : 0);
6821
- if (i > -1) return src[i];
6822
- throw new Error(`unknown channel ${channel} in mode ${mode}`);
6823
- } else {
6824
- return src;
6825
- }
6826
- };
6827
-
6828
- // node_modules/chroma-js/src/ops/luminance.js
6829
- var { pow: pow5 } = Math;
6830
- var EPS = 1e-7;
6831
- var MAX_ITER = 20;
6832
- Color_default.prototype.luminance = function(lum, mode = "rgb") {
6833
- if (lum !== void 0 && type_default(lum) === "number") {
6834
- if (lum === 0) {
6835
- return new Color_default([0, 0, 0, this._rgb[3]], "rgb");
6836
- }
6837
- if (lum === 1) {
6838
- return new Color_default([255, 255, 255, this._rgb[3]], "rgb");
6839
- }
6840
- let cur_lum = this.luminance();
6841
- let max_iter = MAX_ITER;
6842
- const test = (low, high) => {
6843
- const mid = low.interpolate(high, 0.5, mode);
6844
- const lm = mid.luminance();
6845
- if (Math.abs(lum - lm) < EPS || !max_iter--) {
6846
- return mid;
6847
- }
6848
- return lm > lum ? test(low, mid) : test(mid, high);
6849
- };
6850
- const rgb2 = (cur_lum > lum ? test(new Color_default([0, 0, 0]), this) : test(this, new Color_default([255, 255, 255]))).rgb();
6851
- return new Color_default([...rgb2, this._rgb[3]]);
6852
- }
6853
- return rgb2luminance(...this._rgb.slice(0, 3));
6854
- };
6855
- var rgb2luminance = (r, g, b) => {
6856
- r = luminance_x(r);
6857
- g = luminance_x(g);
6858
- b = luminance_x(b);
6859
- return 0.2126 * r + 0.7152 * g + 0.0722 * b;
6860
- };
6861
- var luminance_x = (x) => {
6862
- x /= 255;
6863
- return x <= 0.03928 ? x / 12.92 : pow5((x + 0.055) / 1.055, 2.4);
6864
- };
6865
-
6866
- // node_modules/chroma-js/src/interpolator/index.js
6867
- var interpolator_default = {};
6868
-
6869
- // node_modules/chroma-js/src/generator/mix.js
6870
- var mix_default = (col1, col2, f = 0.5, ...rest) => {
6871
- let mode = rest[0] || "lrgb";
6872
- if (!interpolator_default[mode] && !rest.length) {
6873
- mode = Object.keys(interpolator_default)[0];
6874
- }
6875
- if (!interpolator_default[mode]) {
6876
- throw new Error(`interpolation mode ${mode} is not defined`);
6877
- }
6878
- if (type_default(col1) !== "object") col1 = new Color_default(col1);
6879
- if (type_default(col2) !== "object") col2 = new Color_default(col2);
6880
- return interpolator_default[mode](col1, col2, f).alpha(
6881
- col1.alpha() + f * (col2.alpha() - col1.alpha())
6882
- );
6883
- };
6884
-
6885
- // node_modules/chroma-js/src/ops/mix.js
6886
- Color_default.prototype.mix = Color_default.prototype.interpolate = function(col2, f = 0.5, ...rest) {
6887
- return mix_default(this, col2, f, ...rest);
6888
- };
6889
-
6890
- // node_modules/chroma-js/src/ops/premultiply.js
6891
- Color_default.prototype.premultiply = function(mutate = false) {
6892
- const rgb2 = this._rgb;
6893
- const a = rgb2[3];
6894
- if (mutate) {
6895
- this._rgb = [rgb2[0] * a, rgb2[1] * a, rgb2[2] * a, a];
6896
- return this;
6897
- } else {
6898
- return new Color_default([rgb2[0] * a, rgb2[1] * a, rgb2[2] * a, a], "rgb");
6899
- }
6900
- };
6901
-
6902
- // node_modules/chroma-js/src/ops/saturate.js
6903
- Color_default.prototype.saturate = function(amount = 1) {
6904
- const me = this;
6905
- const lch2 = me.lch();
6906
- lch2[1] += lab_constants_default.Kn * amount;
6907
- if (lch2[1] < 0) lch2[1] = 0;
6908
- return new Color_default(lch2, "lch").alpha(me.alpha(), true);
6909
- };
6910
- Color_default.prototype.desaturate = function(amount = 1) {
6911
- return this.saturate(-amount);
6912
- };
6913
-
6914
- // node_modules/chroma-js/src/ops/set.js
6915
- Color_default.prototype.set = function(mc, value, mutate = false) {
6916
- const [mode, channel] = mc.split(".");
6917
- const src = this[mode]();
6918
- if (channel) {
6919
- const i = mode.indexOf(channel) - (mode.substr(0, 2) === "ok" ? 2 : 0);
6920
- if (i > -1) {
6921
- if (type_default(value) == "string") {
6922
- switch (value.charAt(0)) {
6923
- case "+":
6924
- src[i] += +value;
6925
- break;
6926
- case "-":
6927
- src[i] += +value;
6928
- break;
6929
- case "*":
6930
- src[i] *= +value.substr(1);
6931
- break;
6932
- case "/":
6933
- src[i] /= +value.substr(1);
6934
- break;
6935
- default:
6936
- src[i] = +value;
6937
- }
6938
- } else if (type_default(value) === "number") {
6939
- src[i] = value;
6940
- } else {
6941
- throw new Error(`unsupported value for Color.set`);
6942
- }
6943
- const out = new Color_default(src, mode);
6944
- if (mutate) {
6945
- this._rgb = out._rgb;
6946
- return this;
6947
- }
6948
- return out;
6949
- }
6950
- throw new Error(`unknown channel ${channel} in mode ${mode}`);
6951
- } else {
6952
- return src;
6953
- }
6954
- };
6955
-
6956
- // node_modules/chroma-js/src/ops/shade.js
6957
- Color_default.prototype.tint = function(f = 0.5, ...rest) {
6958
- return mix_default(this, "white", f, ...rest);
6959
- };
6960
- Color_default.prototype.shade = function(f = 0.5, ...rest) {
6961
- return mix_default(this, "black", f, ...rest);
6962
- };
6963
-
6964
- // node_modules/chroma-js/src/interpolator/rgb.js
6965
- var rgb = (col1, col2, f) => {
6966
- const xyz0 = col1._rgb;
6967
- const xyz1 = col2._rgb;
6968
- return new Color_default(
6969
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
6970
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
6971
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
6972
- "rgb"
6973
- );
6974
- };
6975
- interpolator_default.rgb = rgb;
6976
-
6977
- // node_modules/chroma-js/src/interpolator/lrgb.js
6978
- var { sqrt: sqrt3, pow: pow6 } = Math;
6979
- var lrgb = (col1, col2, f) => {
6980
- const [x1, y1, z1] = col1._rgb;
6981
- const [x2, y2, z2] = col2._rgb;
6982
- return new Color_default(
6983
- sqrt3(pow6(x1, 2) * (1 - f) + pow6(x2, 2) * f),
6984
- sqrt3(pow6(y1, 2) * (1 - f) + pow6(y2, 2) * f),
6985
- sqrt3(pow6(z1, 2) * (1 - f) + pow6(z2, 2) * f),
6986
- "rgb"
6987
- );
6988
- };
6989
- interpolator_default.lrgb = lrgb;
6990
-
6991
- // node_modules/chroma-js/src/interpolator/lab.js
6992
- var lab = (col1, col2, f) => {
6993
- const xyz0 = col1.lab();
6994
- const xyz1 = col2.lab();
6995
- return new Color_default(
6996
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
6997
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
6998
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
6999
- "lab"
7000
- );
7001
- };
7002
- interpolator_default.lab = lab;
7003
-
7004
- // node_modules/chroma-js/src/interpolator/_hsx.js
7005
- var hsx_default = (col1, col2, f, m) => {
7006
- let xyz0, xyz1;
7007
- if (m === "hsl") {
7008
- xyz0 = col1.hsl();
7009
- xyz1 = col2.hsl();
7010
- } else if (m === "hsv") {
7011
- xyz0 = col1.hsv();
7012
- xyz1 = col2.hsv();
7013
- } else if (m === "hcg") {
7014
- xyz0 = col1.hcg();
7015
- xyz1 = col2.hcg();
7016
- } else if (m === "hsi") {
7017
- xyz0 = col1.hsi();
7018
- xyz1 = col2.hsi();
7019
- } else if (m === "lch" || m === "hcl") {
7020
- m = "hcl";
7021
- xyz0 = col1.hcl();
7022
- xyz1 = col2.hcl();
7023
- } else if (m === "oklch") {
7024
- xyz0 = col1.oklch().reverse();
7025
- xyz1 = col2.oklch().reverse();
7026
- }
7027
- let hue0, hue1, sat0, sat1, lbv0, lbv1;
7028
- if (m.substr(0, 1) === "h" || m === "oklch") {
7029
- [hue0, sat0, lbv0] = xyz0;
7030
- [hue1, sat1, lbv1] = xyz1;
7031
- }
7032
- let sat, hue, lbv, dh;
7033
- if (!isNaN(hue0) && !isNaN(hue1)) {
7034
- if (hue1 > hue0 && hue1 - hue0 > 180) {
7035
- dh = hue1 - (hue0 + 360);
7036
- } else if (hue1 < hue0 && hue0 - hue1 > 180) {
7037
- dh = hue1 + 360 - hue0;
7038
- } else {
7039
- dh = hue1 - hue0;
7040
- }
7041
- hue = hue0 + f * dh;
7042
- } else if (!isNaN(hue0)) {
7043
- hue = hue0;
7044
- if ((lbv1 == 1 || lbv1 == 0) && m != "hsv") sat = sat0;
7045
- } else if (!isNaN(hue1)) {
7046
- hue = hue1;
7047
- if ((lbv0 == 1 || lbv0 == 0) && m != "hsv") sat = sat1;
7048
- } else {
7049
- hue = Number.NaN;
7050
- }
7051
- if (sat === void 0) sat = sat0 + f * (sat1 - sat0);
7052
- lbv = lbv0 + f * (lbv1 - lbv0);
7053
- return m === "oklch" ? new Color_default([lbv, sat, hue], m) : new Color_default([hue, sat, lbv], m);
7054
- };
7055
-
7056
- // node_modules/chroma-js/src/interpolator/lch.js
7057
- var lch = (col1, col2, f) => {
7058
- return hsx_default(col1, col2, f, "lch");
7059
- };
7060
- interpolator_default.lch = lch;
7061
- interpolator_default.hcl = lch;
7062
-
7063
- // node_modules/chroma-js/src/interpolator/num.js
7064
- var num = (col1, col2, f) => {
7065
- const c1 = col1.num();
7066
- const c2 = col2.num();
7067
- return new Color_default(c1 + f * (c2 - c1), "num");
7068
- };
7069
- interpolator_default.num = num;
7070
-
7071
- // node_modules/chroma-js/src/interpolator/hcg.js
7072
- var hcg = (col1, col2, f) => {
7073
- return hsx_default(col1, col2, f, "hcg");
7074
- };
7075
- interpolator_default.hcg = hcg;
7076
-
7077
- // node_modules/chroma-js/src/interpolator/hsi.js
7078
- var hsi = (col1, col2, f) => {
7079
- return hsx_default(col1, col2, f, "hsi");
7080
- };
7081
- interpolator_default.hsi = hsi;
7082
-
7083
- // node_modules/chroma-js/src/interpolator/hsl.js
7084
- var hsl = (col1, col2, f) => {
7085
- return hsx_default(col1, col2, f, "hsl");
7086
- };
7087
- interpolator_default.hsl = hsl;
7088
-
7089
- // node_modules/chroma-js/src/interpolator/hsv.js
7090
- var hsv = (col1, col2, f) => {
7091
- return hsx_default(col1, col2, f, "hsv");
7092
- };
7093
- interpolator_default.hsv = hsv;
7094
-
7095
- // node_modules/chroma-js/src/interpolator/oklab.js
7096
- var oklab = (col1, col2, f) => {
7097
- const xyz0 = col1.oklab();
7098
- const xyz1 = col2.oklab();
7099
- return new Color_default(
7100
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
7101
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
7102
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
7103
- "oklab"
7104
- );
7105
- };
7106
- interpolator_default.oklab = oklab;
7107
-
7108
- // node_modules/chroma-js/src/interpolator/oklch.js
7109
- var oklch = (col1, col2, f) => {
7110
- return hsx_default(col1, col2, f, "oklch");
7111
- };
7112
- interpolator_default.oklch = oklch;
7113
-
7114
- // node_modules/chroma-js/src/generator/average.js
7115
- var { pow: pow7, sqrt: sqrt4, PI: PI2, cos: cos3, sin: sin2, atan2: atan22 } = Math;
7116
- var average_default = (colors, mode = "lrgb", weights = null) => {
7117
- const l = colors.length;
7118
- if (!weights) weights = Array.from(new Array(l)).map(() => 1);
7119
- const k = l / weights.reduce(function(a, b) {
7120
- return a + b;
7121
- });
7122
- weights.forEach((w, i) => {
7123
- weights[i] *= k;
7124
- });
7125
- colors = colors.map((c) => new Color_default(c));
7126
- if (mode === "lrgb") {
7127
- return _average_lrgb(colors, weights);
7128
- }
7129
- const first = colors.shift();
7130
- const xyz = first.get(mode);
7131
- const cnt = [];
7132
- let dx = 0;
7133
- let dy = 0;
7134
- for (let i = 0; i < xyz.length; i++) {
7135
- xyz[i] = (xyz[i] || 0) * weights[0];
7136
- cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);
7137
- if (mode.charAt(i) === "h" && !isNaN(xyz[i])) {
7138
- const A = xyz[i] / 180 * PI2;
7139
- dx += cos3(A) * weights[0];
7140
- dy += sin2(A) * weights[0];
7141
- }
7142
- }
7143
- let alpha = first.alpha() * weights[0];
7144
- colors.forEach((c, ci) => {
7145
- const xyz2 = c.get(mode);
7146
- alpha += c.alpha() * weights[ci + 1];
7147
- for (let i = 0; i < xyz.length; i++) {
7148
- if (!isNaN(xyz2[i])) {
7149
- cnt[i] += weights[ci + 1];
7150
- if (mode.charAt(i) === "h") {
7151
- const A = xyz2[i] / 180 * PI2;
7152
- dx += cos3(A) * weights[ci + 1];
7153
- dy += sin2(A) * weights[ci + 1];
7154
- } else {
7155
- xyz[i] += xyz2[i] * weights[ci + 1];
7156
- }
7157
- }
7158
- }
7159
- });
7160
- for (let i = 0; i < xyz.length; i++) {
7161
- if (mode.charAt(i) === "h") {
7162
- let A = atan22(dy / cnt[i], dx / cnt[i]) / PI2 * 180;
7163
- while (A < 0) A += 360;
7164
- while (A >= 360) A -= 360;
7165
- xyz[i] = A;
7166
- } else {
7167
- xyz[i] = xyz[i] / cnt[i];
7168
- }
7169
- }
7170
- alpha /= l;
7171
- return new Color_default(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);
7172
- };
7173
- var _average_lrgb = (colors, weights) => {
7174
- const l = colors.length;
7175
- const xyz = [0, 0, 0, 0];
7176
- for (let i = 0; i < colors.length; i++) {
7177
- const col = colors[i];
7178
- const f = weights[i] / l;
7179
- const rgb2 = col._rgb;
7180
- xyz[0] += pow7(rgb2[0], 2) * f;
7181
- xyz[1] += pow7(rgb2[1], 2) * f;
7182
- xyz[2] += pow7(rgb2[2], 2) * f;
7183
- xyz[3] += rgb2[3] * f;
7184
- }
7185
- xyz[0] = sqrt4(xyz[0]);
7186
- xyz[1] = sqrt4(xyz[1]);
7187
- xyz[2] = sqrt4(xyz[2]);
7188
- if (xyz[3] > 0.9999999) xyz[3] = 1;
7189
- return new Color_default(clip_rgb_default(xyz));
7190
- };
7191
-
7192
- // node_modules/chroma-js/src/generator/scale.js
7193
- var { pow: pow8 } = Math;
7194
- function scale_default(colors) {
7195
- let _mode = "rgb";
7196
- let _nacol = chroma_default("#ccc");
7197
- let _spread = 0;
7198
- let _domain = [0, 1];
7199
- let _pos = [];
7200
- let _padding = [0, 0];
7201
- let _classes = false;
7202
- let _colors = [];
7203
- let _out = false;
7204
- let _min = 0;
7205
- let _max = 1;
7206
- let _correctLightness = false;
7207
- let _colorCache = {};
7208
- let _useCache = true;
7209
- let _gamma = 1;
7210
- const setColors = function(colors2) {
7211
- colors2 = colors2 || ["#fff", "#000"];
7212
- if (colors2 && type_default(colors2) === "string" && chroma_default.brewer && chroma_default.brewer[colors2.toLowerCase()]) {
7213
- colors2 = chroma_default.brewer[colors2.toLowerCase()];
7214
- }
7215
- if (type_default(colors2) === "array") {
7216
- if (colors2.length === 1) {
7217
- colors2 = [colors2[0], colors2[0]];
7218
- }
7219
- colors2 = colors2.slice(0);
7220
- for (let c = 0; c < colors2.length; c++) {
7221
- colors2[c] = chroma_default(colors2[c]);
7222
- }
7223
- _pos.length = 0;
7224
- for (let c = 0; c < colors2.length; c++) {
7225
- _pos.push(c / (colors2.length - 1));
7226
- }
7227
- }
7228
- resetCache();
7229
- return _colors = colors2;
7230
- };
7231
- const getClass = function(value) {
7232
- if (_classes != null) {
7233
- const n = _classes.length - 1;
7234
- let i = 0;
7235
- while (i < n && value >= _classes[i]) {
7236
- i++;
7237
- }
7238
- return i - 1;
7239
- }
7240
- return 0;
7241
- };
7242
- let tMapLightness = (t) => t;
7243
- let tMapDomain = (t) => t;
7244
- const getColor = function(val, bypassMap) {
7245
- let col, t;
7246
- if (bypassMap == null) {
7247
- bypassMap = false;
7248
- }
7249
- if (isNaN(val) || val === null) {
7250
- return _nacol;
7251
- }
7252
- if (!bypassMap) {
7253
- if (_classes && _classes.length > 2) {
7254
- const c = getClass(val);
7255
- t = c / (_classes.length - 2);
7256
- } else if (_max !== _min) {
7257
- t = (val - _min) / (_max - _min);
7258
- } else {
7259
- t = 1;
7260
- }
7261
- } else {
7262
- t = val;
7263
- }
7264
- t = tMapDomain(t);
7265
- if (!bypassMap) {
7266
- t = tMapLightness(t);
7267
- }
7268
- if (_gamma !== 1) {
7269
- t = pow8(t, _gamma);
7270
- }
7271
- t = _padding[0] + t * (1 - _padding[0] - _padding[1]);
7272
- t = limit_default(t, 0, 1);
7273
- const k = Math.floor(t * 1e4);
7274
- if (_useCache && _colorCache[k]) {
7275
- col = _colorCache[k];
7276
- } else {
7277
- if (type_default(_colors) === "array") {
7278
- for (let i = 0; i < _pos.length; i++) {
7279
- const p = _pos[i];
7280
- if (t <= p) {
7281
- col = _colors[i];
7282
- break;
7283
- }
7284
- if (t >= p && i === _pos.length - 1) {
7285
- col = _colors[i];
7286
- break;
7287
- }
7288
- if (t > p && t < _pos[i + 1]) {
7289
- t = (t - p) / (_pos[i + 1] - p);
7290
- col = chroma_default.interpolate(
7291
- _colors[i],
7292
- _colors[i + 1],
7293
- t,
7294
- _mode
7295
- );
7296
- break;
7297
- }
7298
- }
7299
- } else if (type_default(_colors) === "function") {
7300
- col = _colors(t);
7301
- }
7302
- if (_useCache) {
7303
- _colorCache[k] = col;
7304
- }
7305
- }
7306
- return col;
7307
- };
7308
- var resetCache = () => _colorCache = {};
7309
- setColors(colors);
7310
- const f = function(v) {
7311
- const c = chroma_default(getColor(v));
7312
- if (_out && c[_out]) {
7313
- return c[_out]();
7314
- } else {
7315
- return c;
7316
- }
7317
- };
7318
- f.classes = function(classes) {
7319
- if (classes != null) {
7320
- if (type_default(classes) === "array") {
7321
- _classes = classes;
7322
- _domain = [classes[0], classes[classes.length - 1]];
7323
- } else {
7324
- const d = chroma_default.analyze(_domain);
7325
- if (classes === 0) {
7326
- _classes = [d.min, d.max];
7327
- } else {
7328
- _classes = chroma_default.limits(d, "e", classes);
7329
- }
7330
- }
7331
- return f;
7332
- }
7333
- return _classes;
7334
- };
7335
- f.domain = function(domain) {
7336
- if (!arguments.length) {
7337
- return _domain;
7338
- }
7339
- _min = domain[0];
7340
- _max = domain[domain.length - 1];
7341
- _pos = [];
7342
- const k = _colors.length;
7343
- if (domain.length === k && _min !== _max) {
7344
- for (let d of Array.from(domain)) {
7345
- _pos.push((d - _min) / (_max - _min));
7346
- }
7347
- } else {
7348
- for (let c = 0; c < k; c++) {
7349
- _pos.push(c / (k - 1));
7350
- }
7351
- if (domain.length > 2) {
7352
- const tOut = domain.map((d, i) => i / (domain.length - 1));
7353
- const tBreaks = domain.map((d) => (d - _min) / (_max - _min));
7354
- if (!tBreaks.every((val, i) => tOut[i] === val)) {
7355
- tMapDomain = (t) => {
7356
- if (t <= 0 || t >= 1) return t;
7357
- let i = 0;
7358
- while (t >= tBreaks[i + 1]) i++;
7359
- const f2 = (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);
7360
- const out = tOut[i] + f2 * (tOut[i + 1] - tOut[i]);
7361
- return out;
7362
- };
7363
- }
7364
- }
7365
- }
7366
- _domain = [_min, _max];
7367
- return f;
7368
- };
7369
- f.mode = function(_m) {
7370
- if (!arguments.length) {
7371
- return _mode;
7372
- }
7373
- _mode = _m;
7374
- resetCache();
7375
- return f;
7376
- };
7377
- f.range = function(colors2, _pos2) {
7378
- setColors(colors2);
7379
- return f;
7380
- };
7381
- f.out = function(_o) {
7382
- _out = _o;
7383
- return f;
7384
- };
7385
- f.spread = function(val) {
7386
- if (!arguments.length) {
7387
- return _spread;
7388
- }
7389
- _spread = val;
7390
- return f;
7391
- };
7392
- f.correctLightness = function(v) {
7393
- if (v == null) {
7394
- v = true;
7395
- }
7396
- _correctLightness = v;
7397
- resetCache();
7398
- if (_correctLightness) {
7399
- tMapLightness = function(t) {
7400
- const L0 = getColor(0, true).lab()[0];
7401
- const L1 = getColor(1, true).lab()[0];
7402
- const pol = L0 > L1;
7403
- let L_actual = getColor(t, true).lab()[0];
7404
- const L_ideal = L0 + (L1 - L0) * t;
7405
- let L_diff = L_actual - L_ideal;
7406
- let t0 = 0;
7407
- let t1 = 1;
7408
- let max_iter = 20;
7409
- while (Math.abs(L_diff) > 0.01 && max_iter-- > 0) {
7410
- (function() {
7411
- if (pol) {
7412
- L_diff *= -1;
7413
- }
7414
- if (L_diff < 0) {
7415
- t0 = t;
7416
- t += (t1 - t) * 0.5;
7417
- } else {
7418
- t1 = t;
7419
- t += (t0 - t) * 0.5;
7420
- }
7421
- L_actual = getColor(t, true).lab()[0];
7422
- return L_diff = L_actual - L_ideal;
7423
- })();
7424
- }
7425
- return t;
7426
- };
7427
- } else {
7428
- tMapLightness = (t) => t;
7429
- }
7430
- return f;
7431
- };
7432
- f.padding = function(p) {
7433
- if (p != null) {
7434
- if (type_default(p) === "number") {
7435
- p = [p, p];
7436
- }
7437
- _padding = p;
7438
- return f;
7439
- } else {
7440
- return _padding;
7441
- }
7442
- };
7443
- f.colors = function(numColors, out) {
7444
- if (arguments.length < 2) {
7445
- out = "hex";
7446
- }
7447
- let result = [];
7448
- if (arguments.length === 0) {
7449
- result = _colors.slice(0);
7450
- } else if (numColors === 1) {
7451
- result = [f(0.5)];
7452
- } else if (numColors > 1) {
7453
- const dm = _domain[0];
7454
- const dd = _domain[1] - dm;
7455
- result = __range__(0, numColors).map(
7456
- (i) => f(dm + i / (numColors - 1) * dd)
7457
- );
7458
- } else {
7459
- colors = [];
7460
- let samples = [];
7461
- if (_classes && _classes.length > 2) {
7462
- for (let i = 1, end = _classes.length, asc = 1 <= end; asc ? i < end : i > end; asc ? i++ : i--) {
7463
- samples.push((_classes[i - 1] + _classes[i]) * 0.5);
7464
- }
7465
- } else {
7466
- samples = _domain;
7467
- }
7468
- result = samples.map((v) => f(v));
7469
- }
7470
- if (chroma_default[out]) {
7471
- result = result.map((c) => c[out]());
7472
- }
7473
- return result;
7474
- };
7475
- f.cache = function(c) {
7476
- if (c != null) {
7477
- _useCache = c;
7478
- return f;
7479
- } else {
7480
- return _useCache;
7481
- }
7482
- };
7483
- f.gamma = function(g) {
7484
- if (g != null) {
7485
- _gamma = g;
7486
- return f;
7487
- } else {
7488
- return _gamma;
7489
- }
7490
- };
7491
- f.nodata = function(d) {
7492
- if (d != null) {
7493
- _nacol = chroma_default(d);
7494
- return f;
7495
- } else {
7496
- return _nacol;
7497
- }
7498
- };
7499
- return f;
7500
- }
7501
- function __range__(left, right, inclusive) {
7502
- let range = [];
7503
- let ascending = left < right;
7504
- let end = right ;
7505
- for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {
7506
- range.push(i);
7507
- }
7508
- return range;
7509
- }
7510
-
7511
- // node_modules/chroma-js/src/generator/bezier.js
7512
- var binom_row = function(n) {
7513
- let row = [1, 1];
7514
- for (let i = 1; i < n; i++) {
7515
- let newrow = [1];
7516
- for (let j = 1; j <= row.length; j++) {
7517
- newrow[j] = (row[j] || 0) + row[j - 1];
7518
- }
7519
- row = newrow;
7520
- }
7521
- return row;
7522
- };
7523
- var bezier = function(colors) {
7524
- let I, lab0, lab1, lab2;
7525
- colors = colors.map((c) => new Color_default(c));
7526
- if (colors.length === 2) {
7527
- [lab0, lab1] = colors.map((c) => c.lab());
7528
- I = function(t) {
7529
- const lab3 = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));
7530
- return new Color_default(lab3, "lab");
7531
- };
7532
- } else if (colors.length === 3) {
7533
- [lab0, lab1, lab2] = colors.map((c) => c.lab());
7534
- I = function(t) {
7535
- const lab3 = [0, 1, 2].map(
7536
- (i) => (1 - t) * (1 - t) * lab0[i] + 2 * (1 - t) * t * lab1[i] + t * t * lab2[i]
7537
- );
7538
- return new Color_default(lab3, "lab");
7539
- };
7540
- } else if (colors.length === 4) {
7541
- let lab3;
7542
- [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());
7543
- I = function(t) {
7544
- const lab4 = [0, 1, 2].map(
7545
- (i) => (1 - t) * (1 - t) * (1 - t) * lab0[i] + 3 * (1 - t) * (1 - t) * t * lab1[i] + 3 * (1 - t) * t * t * lab2[i] + t * t * t * lab3[i]
7546
- );
7547
- return new Color_default(lab4, "lab");
7548
- };
7549
- } else if (colors.length >= 5) {
7550
- let labs, row, n;
7551
- labs = colors.map((c) => c.lab());
7552
- n = colors.length - 1;
7553
- row = binom_row(n);
7554
- I = function(t) {
7555
- const u = 1 - t;
7556
- const lab3 = [0, 1, 2].map(
7557
- (i) => labs.reduce(
7558
- (sum, el, j) => sum + row[j] * u ** (n - j) * t ** j * el[i],
7559
- 0
7560
- )
7561
- );
7562
- return new Color_default(lab3, "lab");
7563
- };
7564
- } else {
7565
- throw new RangeError("No point in running bezier with only one color.");
7566
- }
7567
- return I;
7568
- };
7569
- var bezier_default = (colors) => {
7570
- const f = bezier(colors);
7571
- f.scale = () => scale_default(f);
7572
- return f;
7573
- };
7574
-
7575
- // node_modules/chroma-js/src/generator/blend.js
7576
- var blend = (bottom, top, mode) => {
7577
- if (!blend[mode]) {
7578
- throw new Error("unknown blend mode " + mode);
7579
- }
7580
- return blend[mode](bottom, top);
7581
- };
7582
- var blend_f = (f) => (bottom, top) => {
7583
- const c0 = chroma_default(top).rgb();
7584
- const c1 = chroma_default(bottom).rgb();
7585
- return chroma_default.rgb(f(c0, c1));
7586
- };
7587
- var each = (f) => (c0, c1) => {
7588
- const out = [];
7589
- out[0] = f(c0[0], c1[0]);
7590
- out[1] = f(c0[1], c1[1]);
7591
- out[2] = f(c0[2], c1[2]);
7592
- return out;
7593
- };
7594
- var normal = (a) => a;
7595
- var multiply = (a, b) => a * b / 255;
7596
- var darken = (a, b) => a > b ? b : a;
7597
- var lighten = (a, b) => a > b ? a : b;
7598
- var screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));
7599
- var overlay = (a, b) => b < 128 ? 2 * a * b / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));
7600
- var burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));
7601
- var dodge = (a, b) => {
7602
- if (a === 255) return 255;
7603
- a = 255 * (b / 255) / (1 - a / 255);
7604
- return a > 255 ? 255 : a;
7605
- };
7606
- blend.normal = blend_f(each(normal));
7607
- blend.multiply = blend_f(each(multiply));
7608
- blend.screen = blend_f(each(screen));
7609
- blend.overlay = blend_f(each(overlay));
7610
- blend.darken = blend_f(each(darken));
7611
- blend.lighten = blend_f(each(lighten));
7612
- blend.dodge = blend_f(each(dodge));
7613
- blend.burn = blend_f(each(burn));
7614
- var blend_default = blend;
7615
-
7616
- // node_modules/chroma-js/src/generator/cubehelix.js
7617
- var { pow: pow9, sin: sin3, cos: cos4 } = Math;
7618
- function cubehelix_default(start = 300, rotations = -1.5, hue = 1, gamma = 1, lightness = [0, 1]) {
7619
- let dh = 0, dl;
7620
- if (type_default(lightness) === "array") {
7621
- dl = lightness[1] - lightness[0];
7622
- } else {
7623
- dl = 0;
7624
- lightness = [lightness, lightness];
7625
- }
7626
- const f = function(fract) {
7627
- const a = TWOPI * ((start + 120) / 360 + rotations * fract);
7628
- const l = pow9(lightness[0] + dl * fract, gamma);
7629
- const h = dh !== 0 ? hue[0] + fract * dh : hue;
7630
- const amp = h * l * (1 - l) / 2;
7631
- const cos_a = cos4(a);
7632
- const sin_a = sin3(a);
7633
- const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);
7634
- const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);
7635
- const b = l + amp * (1.97294 * cos_a);
7636
- return chroma_default(clip_rgb_default([r * 255, g * 255, b * 255, 1]));
7637
- };
7638
- f.start = function(s) {
7639
- if (s == null) {
7640
- return start;
7641
- }
7642
- start = s;
7643
- return f;
7644
- };
7645
- f.rotations = function(r) {
7646
- if (r == null) {
7647
- return rotations;
7648
- }
7649
- rotations = r;
7650
- return f;
7651
- };
7652
- f.gamma = function(g) {
7653
- if (g == null) {
7654
- return gamma;
7655
- }
7656
- gamma = g;
7657
- return f;
7658
- };
7659
- f.hue = function(h) {
7660
- if (h == null) {
7661
- return hue;
7662
- }
7663
- hue = h;
7664
- if (type_default(hue) === "array") {
7665
- dh = hue[1] - hue[0];
7666
- if (dh === 0) {
7667
- hue = hue[1];
7668
- }
7669
- } else {
7670
- dh = 0;
7671
- }
7672
- return f;
7673
- };
7674
- f.lightness = function(h) {
7675
- if (h == null) {
7676
- return lightness;
7677
- }
7678
- if (type_default(h) === "array") {
7679
- lightness = h;
7680
- dl = h[1] - h[0];
7681
- } else {
7682
- lightness = [h, h];
7683
- dl = 0;
7684
- }
7685
- return f;
7686
- };
7687
- f.scale = () => chroma_default.scale(f);
7688
- f.hue(hue);
7689
- return f;
7690
- }
7691
-
7692
- // node_modules/chroma-js/src/generator/random.js
7693
- var digits = "0123456789abcdef";
7694
- var { floor: floor3, random } = Math;
7695
- var random_default = () => {
7696
- let code = "#";
7697
- for (let i = 0; i < 6; i++) {
7698
- code += digits.charAt(floor3(random() * 16));
7699
- }
7700
- return new Color_default(code, "hex");
7701
- };
7702
-
7703
- // node_modules/chroma-js/src/utils/analyze.js
7704
- var { log: log2, pow: pow10, floor: floor4, abs } = Math;
7705
- function analyze(data, key = null) {
7706
- const r = {
7707
- min: Number.MAX_VALUE,
7708
- max: Number.MAX_VALUE * -1,
7709
- sum: 0,
7710
- values: [],
7711
- count: 0
7712
- };
7713
- if (type_default(data) === "object") {
7714
- data = Object.values(data);
7715
- }
7716
- data.forEach((val) => {
7717
- if (key && type_default(val) === "object") val = val[key];
7718
- if (val !== void 0 && val !== null && !isNaN(val)) {
7719
- r.values.push(val);
7720
- r.sum += val;
7721
- if (val < r.min) r.min = val;
7722
- if (val > r.max) r.max = val;
7723
- r.count += 1;
7724
- }
7725
- });
7726
- r.domain = [r.min, r.max];
7727
- r.limits = (mode, num2) => limits(r, mode, num2);
7728
- return r;
7729
- }
7730
- function limits(data, mode = "equal", num2 = 7) {
7731
- if (type_default(data) == "array") {
7732
- data = analyze(data);
7733
- }
7734
- const { min: min5, max: max5 } = data;
7735
- const values = data.values.sort((a, b) => a - b);
7736
- if (num2 === 1) {
7737
- return [min5, max5];
7738
- }
7739
- const limits2 = [];
7740
- if (mode.substr(0, 1) === "c") {
7741
- limits2.push(min5);
7742
- limits2.push(max5);
7743
- }
7744
- if (mode.substr(0, 1) === "e") {
7745
- limits2.push(min5);
7746
- for (let i = 1; i < num2; i++) {
7747
- limits2.push(min5 + i / num2 * (max5 - min5));
7748
- }
7749
- limits2.push(max5);
7750
- } else if (mode.substr(0, 1) === "l") {
7751
- if (min5 <= 0) {
7752
- throw new Error(
7753
- "Logarithmic scales are only possible for values > 0"
7754
- );
7755
- }
7756
- const min_log = Math.LOG10E * log2(min5);
7757
- const max_log = Math.LOG10E * log2(max5);
7758
- limits2.push(min5);
7759
- for (let i = 1; i < num2; i++) {
7760
- limits2.push(pow10(10, min_log + i / num2 * (max_log - min_log)));
7761
- }
7762
- limits2.push(max5);
7763
- } else if (mode.substr(0, 1) === "q") {
7764
- limits2.push(min5);
7765
- for (let i = 1; i < num2; i++) {
7766
- const p = (values.length - 1) * i / num2;
7767
- const pb = floor4(p);
7768
- if (pb === p) {
7769
- limits2.push(values[pb]);
7770
- } else {
7771
- const pr = p - pb;
7772
- limits2.push(values[pb] * (1 - pr) + values[pb + 1] * pr);
7773
- }
7774
- }
7775
- limits2.push(max5);
7776
- } else if (mode.substr(0, 1) === "k") {
7777
- let cluster;
7778
- const n = values.length;
7779
- const assignments = new Array(n);
7780
- const clusterSizes = new Array(num2);
7781
- let repeat = true;
7782
- let nb_iters = 0;
7783
- let centroids = null;
7784
- centroids = [];
7785
- centroids.push(min5);
7786
- for (let i = 1; i < num2; i++) {
7787
- centroids.push(min5 + i / num2 * (max5 - min5));
7788
- }
7789
- centroids.push(max5);
7790
- while (repeat) {
7791
- for (let j = 0; j < num2; j++) {
7792
- clusterSizes[j] = 0;
7793
- }
7794
- for (let i = 0; i < n; i++) {
7795
- const value = values[i];
7796
- let mindist = Number.MAX_VALUE;
7797
- let best;
7798
- for (let j = 0; j < num2; j++) {
7799
- const dist = abs(centroids[j] - value);
7800
- if (dist < mindist) {
7801
- mindist = dist;
7802
- best = j;
7803
- }
7804
- clusterSizes[best]++;
7805
- assignments[i] = best;
7806
- }
7807
- }
7808
- const newCentroids = new Array(num2);
7809
- for (let j = 0; j < num2; j++) {
7810
- newCentroids[j] = null;
7811
- }
7812
- for (let i = 0; i < n; i++) {
7813
- cluster = assignments[i];
7814
- if (newCentroids[cluster] === null) {
7815
- newCentroids[cluster] = values[i];
7816
- } else {
7817
- newCentroids[cluster] += values[i];
7818
- }
7819
- }
7820
- for (let j = 0; j < num2; j++) {
7821
- newCentroids[j] *= 1 / clusterSizes[j];
7822
- }
7823
- repeat = false;
7824
- for (let j = 0; j < num2; j++) {
7825
- if (newCentroids[j] !== centroids[j]) {
7826
- repeat = true;
7827
- break;
7828
- }
7829
- }
7830
- centroids = newCentroids;
7831
- nb_iters++;
7832
- if (nb_iters > 200) {
7833
- repeat = false;
7834
- }
7835
- }
7836
- const kClusters = {};
7837
- for (let j = 0; j < num2; j++) {
7838
- kClusters[j] = [];
7839
- }
7840
- for (let i = 0; i < n; i++) {
7841
- cluster = assignments[i];
7842
- kClusters[cluster].push(values[i]);
7843
- }
7844
- let tmpKMeansBreaks = [];
7845
- for (let j = 0; j < num2; j++) {
7846
- tmpKMeansBreaks.push(kClusters[j][0]);
7847
- tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);
7848
- }
7849
- tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);
7850
- limits2.push(tmpKMeansBreaks[0]);
7851
- for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {
7852
- const v = tmpKMeansBreaks[i];
7853
- if (!isNaN(v) && limits2.indexOf(v) === -1) {
7854
- limits2.push(v);
7855
- }
7856
- }
7857
- }
7858
- return limits2;
7859
- }
7860
-
7861
- // node_modules/chroma-js/src/utils/contrast.js
7862
- var contrast_default = (a, b) => {
7863
- a = new Color_default(a);
7864
- b = new Color_default(b);
7865
- const l1 = a.luminance();
7866
- const l2 = b.luminance();
7867
- return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);
7868
- };
7869
-
7870
- // node_modules/chroma-js/src/utils/delta-e.js
7871
- var { sqrt: sqrt5, pow: pow11, min: min4, max: max4, atan2: atan23, abs: abs2, cos: cos5, sin: sin4, exp, PI: PI3 } = Math;
7872
- function delta_e_default(a, b, Kl = 1, Kc = 1, Kh = 1) {
7873
- var rad2deg = function(rad) {
7874
- return 360 * rad / (2 * PI3);
7875
- };
7876
- var deg2rad = function(deg) {
7877
- return 2 * PI3 * deg / 360;
7878
- };
7879
- a = new Color_default(a);
7880
- b = new Color_default(b);
7881
- const [L1, a1, b1] = Array.from(a.lab());
7882
- const [L2, a2, b2] = Array.from(b.lab());
7883
- const avgL = (L1 + L2) / 2;
7884
- const C1 = sqrt5(pow11(a1, 2) + pow11(b1, 2));
7885
- const C2 = sqrt5(pow11(a2, 2) + pow11(b2, 2));
7886
- const avgC = (C1 + C2) / 2;
7887
- const G = 0.5 * (1 - sqrt5(pow11(avgC, 7) / (pow11(avgC, 7) + pow11(25, 7))));
7888
- const a1p = a1 * (1 + G);
7889
- const a2p = a2 * (1 + G);
7890
- const C1p = sqrt5(pow11(a1p, 2) + pow11(b1, 2));
7891
- const C2p = sqrt5(pow11(a2p, 2) + pow11(b2, 2));
7892
- const avgCp = (C1p + C2p) / 2;
7893
- const arctan1 = rad2deg(atan23(b1, a1p));
7894
- const arctan2 = rad2deg(atan23(b2, a2p));
7895
- const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;
7896
- const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;
7897
- const avgHp = abs2(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;
7898
- const T = 1 - 0.17 * cos5(deg2rad(avgHp - 30)) + 0.24 * cos5(deg2rad(2 * avgHp)) + 0.32 * cos5(deg2rad(3 * avgHp + 6)) - 0.2 * cos5(deg2rad(4 * avgHp - 63));
7899
- let deltaHp = h2p - h1p;
7900
- deltaHp = abs2(deltaHp) <= 180 ? deltaHp : h2p <= h1p ? deltaHp + 360 : deltaHp - 360;
7901
- deltaHp = 2 * sqrt5(C1p * C2p) * sin4(deg2rad(deltaHp) / 2);
7902
- const deltaL = L2 - L1;
7903
- const deltaCp = C2p - C1p;
7904
- const sl = 1 + 0.015 * pow11(avgL - 50, 2) / sqrt5(20 + pow11(avgL - 50, 2));
7905
- const sc = 1 + 0.045 * avgCp;
7906
- const sh = 1 + 0.015 * avgCp * T;
7907
- const deltaTheta = 30 * exp(-pow11((avgHp - 275) / 25, 2));
7908
- const Rc = 2 * sqrt5(pow11(avgCp, 7) / (pow11(avgCp, 7) + pow11(25, 7)));
7909
- const Rt = -Rc * sin4(2 * deg2rad(deltaTheta));
7910
- const result = sqrt5(
7911
- pow11(deltaL / (Kl * sl), 2) + pow11(deltaCp / (Kc * sc), 2) + pow11(deltaHp / (Kh * sh), 2) + Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))
7912
- );
7913
- return max4(0, min4(100, result));
7914
- }
7915
-
7916
- // node_modules/chroma-js/src/utils/distance.js
7917
- function distance_default(a, b, mode = "lab") {
7918
- a = new Color_default(a);
7919
- b = new Color_default(b);
7920
- const l1 = a.get(mode);
7921
- const l2 = b.get(mode);
7922
- let sum_sq = 0;
7923
- for (let i in l1) {
7924
- const d = (l1[i] || 0) - (l2[i] || 0);
7925
- sum_sq += d * d;
7926
- }
7927
- return Math.sqrt(sum_sq);
7928
- }
7929
-
7930
- // node_modules/chroma-js/src/utils/valid.js
7931
- var valid_default = (...args) => {
7932
- try {
7933
- new Color_default(...args);
7934
- return true;
7935
- } catch (e) {
7936
- return false;
7937
- }
7938
- };
7939
-
7940
- // node_modules/chroma-js/src/utils/scales.js
7941
- var scales_default = {
7942
- cool() {
7943
- return scale_default([chroma_default.hsl(180, 1, 0.9), chroma_default.hsl(250, 0.7, 0.4)]);
7944
- },
7945
- hot() {
7946
- return scale_default(["#000", "#f00", "#ff0", "#fff"]).mode(
7947
- "rgb"
7948
- );
7949
- }
7950
- };
7951
-
7952
- // node_modules/chroma-js/src/colors/colorbrewer.js
7953
- var colorbrewer = {
7954
- // sequential
7955
- OrRd: ["#fff7ec", "#fee8c8", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#b30000", "#7f0000"],
7956
- PuBu: ["#fff7fb", "#ece7f2", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#045a8d", "#023858"],
7957
- BuPu: ["#f7fcfd", "#e0ecf4", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#810f7c", "#4d004b"],
7958
- Oranges: ["#fff5eb", "#fee6ce", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#a63603", "#7f2704"],
7959
- BuGn: ["#f7fcfd", "#e5f5f9", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#006d2c", "#00441b"],
7960
- YlOrBr: ["#ffffe5", "#fff7bc", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#993404", "#662506"],
7961
- YlGn: ["#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#006837", "#004529"],
7962
- Reds: ["#fff5f0", "#fee0d2", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#a50f15", "#67000d"],
7963
- RdPu: ["#fff7f3", "#fde0dd", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177", "#49006a"],
7964
- Greens: ["#f7fcf5", "#e5f5e0", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#006d2c", "#00441b"],
7965
- YlGnBu: ["#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#253494", "#081d58"],
7966
- Purples: ["#fcfbfd", "#efedf5", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#54278f", "#3f007d"],
7967
- GnBu: ["#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#0868ac", "#084081"],
7968
- Greys: ["#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525", "#000000"],
7969
- YlOrRd: ["#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#bd0026", "#800026"],
7970
- PuRd: ["#f7f4f9", "#e7e1ef", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#980043", "#67001f"],
7971
- Blues: ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#08519c", "#08306b"],
7972
- PuBuGn: ["#fff7fb", "#ece2f0", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016c59", "#014636"],
7973
- Viridis: ["#440154", "#482777", "#3f4a8a", "#31678e", "#26838f", "#1f9d8a", "#6cce5a", "#b6de2b", "#fee825"],
7974
- // diverging
7975
- Spectral: ["#9e0142", "#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#e6f598", "#abdda4", "#66c2a5", "#3288bd", "#5e4fa2"],
7976
- RdYlGn: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850", "#006837"],
7977
- RdBu: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#f7f7f7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac", "#053061"],
7978
- PiYG: ["#8e0152", "#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#f7f7f7", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221", "#276419"],
7979
- PRGn: ["#40004b", "#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837", "#00441b"],
7980
- RdYlBu: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee090", "#ffffbf", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4", "#313695"],
7981
- BrBG: ["#543005", "#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#f5f5f5", "#c7eae5", "#80cdc1", "#35978f", "#01665e", "#003c30"],
7982
- RdGy: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#ffffff", "#e0e0e0", "#bababa", "#878787", "#4d4d4d", "#1a1a1a"],
7983
- PuOr: ["#7f3b08", "#b35806", "#e08214", "#fdb863", "#fee0b6", "#f7f7f7", "#d8daeb", "#b2abd2", "#8073ac", "#542788", "#2d004b"],
7984
- // qualitative
7985
- Set2: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", "#e5c494", "#b3b3b3"],
7986
- Accent: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17", "#666666"],
7987
- Set1: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628", "#f781bf", "#999999"],
7988
- Set3: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5", "#ffed6f"],
7989
- Dark2: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02", "#a6761d", "#666666"],
7990
- Paired: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a", "#ffff99", "#b15928"],
7991
- Pastel2: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae", "#f1e2cc", "#cccccc"],
7992
- Pastel1: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd", "#fddaec", "#f2f2f2"]
7993
- };
7994
- for (let key of Object.keys(colorbrewer)) {
7995
- colorbrewer[key.toLowerCase()] = colorbrewer[key];
7996
- }
7997
- var colorbrewer_default = colorbrewer;
7998
-
7999
- // node_modules/chroma-js/index.js
8000
- Object.assign(chroma_default, {
8001
- average: average_default,
8002
- bezier: bezier_default,
8003
- blend: blend_default,
8004
- cubehelix: cubehelix_default,
8005
- mix: mix_default,
8006
- interpolate: mix_default,
8007
- random: random_default,
8008
- scale: scale_default,
8009
- analyze,
8010
- contrast: contrast_default,
8011
- deltaE: delta_e_default,
8012
- distance: distance_default,
8013
- limits,
8014
- valid: valid_default,
8015
- scales: scales_default,
8016
- input: input_default,
8017
- colors: w3cx11_default,
8018
- brewer: colorbrewer_default
8019
- });
8020
- var chroma_js_default = chroma_default;
8021
-
8022
5535
  // src/palette/use-palette.ts
8023
5536
  var import_lodash = __toESM(require_lodash());
8024
-
8025
- // src/palette/helper.ts
8026
5537
  var MAX_VALUE = 500;
8027
5538
  var delta = { xs: 0.01, sm: 0.02, md: 0.03, lg: 0.08, xl: 0.14 };
8028
5539
  var normalizeHue = (input, range) => (input % range + range) % range;
8029
5540
  var markDarkColor = (color) => {
8030
- const hsv2 = chroma_js_default(color).hsv();
8031
- return chroma_js_default(hsv2[0], hsv2[1] * 0.92, Math.min(hsv2[2] + 0.01, 1), "hsv").hex();
5541
+ const hsv = chroma2__default.default(color).hsv();
5542
+ return chroma2__default.default(hsv[0], hsv[1] * 0.92, Math.min(hsv[2] + 0.01, 1), "hsv").hex();
8032
5543
  };
8033
5544
  var calculateHue = (color, end, defaultValue) => {
8034
5545
  defaultValue === void 0 && (defaultValue = MAX_VALUE);
@@ -8049,49 +5560,49 @@ var calculateHue = (color, end, defaultValue) => {
8049
5560
  }
8050
5561
  return normalizeHue(color[0] + offset, 360);
8051
5562
  };
8052
- var calculateSaturation = (hsv2, range, max5) => {
8053
- max5 === void 0 && (max5 = MAX_VALUE);
8054
- const interval = (range - max5) / 100;
5563
+ var calculateSaturation = (hsv, range, max) => {
5564
+ max === void 0 && (max = MAX_VALUE);
5565
+ const interval = (range - max) / 100;
8055
5566
  let offset = 0;
8056
- if (range < max5) {
8057
- offset = interval * hsv2[1] / 5;
5567
+ if (range < max) {
5568
+ offset = interval * hsv[1] / 5;
8058
5569
  if (range < 100) {
8059
5570
  offset -= delta.sm;
8060
5571
  }
8061
- } else if (range > max5) {
8062
- if (hsv2[0] < 30 || hsv2[0] > 200) {
5572
+ } else if (range > max) {
5573
+ if (hsv[0] < 30 || hsv[0] > 200) {
8063
5574
  offset = interval * delta.md;
8064
5575
  } else {
8065
5576
  offset = interval * delta.xs;
8066
5577
  }
8067
- if (hsv2[1] === 0) {
5578
+ if (hsv[1] === 0) {
8068
5579
  offset = 0;
8069
5580
  }
8070
5581
  }
8071
- const newSaturation = hsv2[1] + offset;
5582
+ const newSaturation = hsv[1] + offset;
8072
5583
  return newSaturation > 1 ? 1 : newSaturation < 0 ? 0 : newSaturation;
8073
5584
  };
8074
- var calculateLightness = (hsv2, range, max5) => {
8075
- max5 === void 0 && (max5 = MAX_VALUE);
8076
- const interval = (range - max5) / 100;
5585
+ var calculateLightness = (hsv, range, max) => {
5586
+ max === void 0 && (max = MAX_VALUE);
5587
+ const interval = (range - max) / 100;
8077
5588
  let offset = 0;
8078
- if (range < max5) {
8079
- if (hsv2[1] < 0.1) {
8080
- offset = interval * (1 - hsv2[2]) / 5 * 1.06;
5589
+ if (range < max) {
5590
+ if (hsv[1] < 0.1) {
5591
+ offset = interval * (1 - hsv[2]) / 5 * 1.06;
8081
5592
  } else {
8082
- offset = interval * (1 - hsv2[2]) / 5;
5593
+ offset = interval * (1 - hsv[2]) / 5;
8083
5594
  }
8084
- } else if (range > max5) {
8085
- if ((hsv2[0] < 30 || hsv2[0] > 200) && hsv2[0] > 0) {
5595
+ } else if (range > max) {
5596
+ if ((hsv[0] < 30 || hsv[0] > 200) && hsv[0] > 0) {
8086
5597
  offset = interval * delta.lg;
8087
- if (hsv2[2] > 0.8) {
5598
+ if (hsv[2] > 0.8) {
8088
5599
  offset = interval * delta.xl;
8089
5600
  }
8090
5601
  } else {
8091
- offset = interval * hsv2[2] / 6;
5602
+ offset = interval * hsv[2] / 6;
8092
5603
  }
8093
5604
  }
8094
- const newLightness = hsv2[2] - offset;
5605
+ const newLightness = hsv[2] - offset;
8095
5606
  return newLightness > 1 ? 1 : newLightness < 0 ? 0 : newLightness;
8096
5607
  };
8097
5608
 
@@ -8100,18 +5611,18 @@ var COLOR_STOPS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
8100
5611
  var createSolidColorScale = (color, mode = "light") => {
8101
5612
  const isDark = mode === "dark";
8102
5613
  let baseColor = isDark ? markDarkColor(color) : color;
8103
- const luminance = chroma_js_default(baseColor).luminance();
5614
+ const luminance = chroma2__default.default(baseColor).luminance();
8104
5615
  if (luminance < 0.1) {
8105
- baseColor = chroma_js_default(baseColor).set("hsl.l", 0.4).hex();
5616
+ baseColor = chroma2__default.default(baseColor).set("hsl.l", 0.4).hex();
8106
5617
  } else if (luminance > 0.9) {
8107
- baseColor = chroma_js_default(baseColor).set("hsl.l", 0.6).hex();
5618
+ baseColor = chroma2__default.default(baseColor).set("hsl.l", 0.6).hex();
8108
5619
  }
8109
- const hsv2 = chroma_js_default(baseColor).hsv();
5620
+ const hsv = chroma2__default.default(baseColor).hsv();
8110
5621
  const colors = COLOR_STOPS.map((stop) => {
8111
- const h = calculateHue(hsv2, stop, 500);
8112
- const s = calculateSaturation(hsv2, stop, 500);
8113
- const v = calculateLightness(hsv2, stop, 500);
8114
- return chroma_js_default(h, s, v, "hsv");
5622
+ const h = calculateHue(hsv, stop, 500);
5623
+ const s = calculateSaturation(hsv, stop, 500);
5624
+ const v = calculateLightness(hsv, stop, 500);
5625
+ return chroma2__default.default(h, s, v, "hsv");
8115
5626
  });
8116
5627
  return isDark ? colors.reverse() : colors;
8117
5628
  };