favesalon-embed 1.0.1 → 1.0.3

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 (160) hide show
  1. package/dist/custom-elements/index.d.ts +24 -0
  2. package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-9bc404fc.js} +14 -6
  3. package/dist/{esm/_commonjsHelpers-098d5b27.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -2
  4. package/dist/{cjs/global-9073d10e.js → favesalon-embed/app-globals-437cc3f3.js} +15 -8
  5. package/dist/{esm/global-e1089ffd.js → favesalon-embed/app-globals-60769a2c.js} +16 -7
  6. package/dist/favesalon-embed/chat-box.entry.js +54 -0
  7. package/dist/favesalon-embed/chat-button.entry.js +51 -0
  8. package/dist/favesalon-embed/chat-form.entry.js +39 -0
  9. package/dist/favesalon-embed/chat-messages.entry.js +53 -0
  10. package/dist/favesalon-embed/chat-rooms.entry.js +17279 -0
  11. package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
  12. package/dist/favesalon-embed/dom-64053c71.js +73 -0
  13. package/dist/favesalon-embed/favesalon-embed.css +2433 -4
  14. package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
  15. package/dist/{collection/components/google-map/index.js → favesalon-embed/google-map.entry.js} +12 -54
  16. package/dist/{esm/index-80523fec.js → favesalon-embed/index-00b83e1c.js} +425 -15
  17. package/dist/favesalon-embed/index-04c09911.js +3371 -0
  18. package/dist/favesalon-embed/index-888e99e3.js +3371 -0
  19. package/dist/{cjs/index-7f190886.js → favesalon-embed/index-ac52896a.js} +454 -47
  20. package/dist/favesalon-embed/index.esm.js +1 -0
  21. package/dist/favesalon-embed/isObject-13b86c17.js +203 -0
  22. package/dist/favesalon-embed/relativeTime-15477f02.js +7 -0
  23. package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
  24. package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
  25. package/dist/{esm → favesalon-embed}/salon-booking.entry.js +3 -3
  26. package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
  27. package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +3 -3
  28. package/dist/favesalon-embed/salon-info.entry.js +29 -0
  29. package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +4 -4
  30. package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +14 -99
  31. package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
  32. package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +3 -3
  33. package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
  34. package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +3 -3
  35. package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
  36. package/dist/{esm → favesalon-embed}/salon-services.entry.js +3 -3
  37. package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
  38. package/dist/{custom-elements/index.js → favesalon-embed/services-55a87166.js} +2465 -7150
  39. package/dist/{cjs/services-125c82d8.js → favesalon-embed/services-7c46a2fd.js} +2465 -103
  40. package/dist/{esm/services-40a3e622.js → favesalon-embed/services-7cb8f2a6.js} +2469 -100
  41. package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
  42. package/dist/{esm → favesalon-embed}/style-detail.entry.js +4 -4
  43. package/dist/{esm → favesalon-embed}/user-avatar.entry.js +13 -4
  44. package/dist/{esm/utils-e97485e0.js → favesalon-embed/utils-2c19db45.js} +6 -0
  45. package/dist/types/components/chat-box/index.d.ts +12 -0
  46. package/dist/types/components/chat-button/index.d.ts +0 -8
  47. package/dist/types/components/chat-form/index.d.ts +6 -0
  48. package/dist/types/components/chat-messages/index.d.ts +14 -0
  49. package/dist/types/components/chat-rooms/index.d.ts +12 -0
  50. package/dist/types/components/user-avatar/index.d.ts +2 -1
  51. package/dist/types/components.d.ts +84 -1
  52. package/dist/types/utils/utils.d.ts +1 -0
  53. package/package.json +1 -1
  54. package/dist/cjs/chat-button.cjs.entry.js +0 -118
  55. package/dist/cjs/colors-38421769.js +0 -69
  56. package/dist/cjs/favesalon-embed.cjs.js +0 -24
  57. package/dist/cjs/google-map_5.cjs.entry.js +0 -310
  58. package/dist/cjs/index-47c2a5f6.js +0 -1533
  59. package/dist/cjs/index.cjs.js +0 -2
  60. package/dist/cjs/loader.cjs.js +0 -23
  61. package/dist/cjs/relativeTime-3721080d.js +0 -9
  62. package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
  63. package/dist/cjs/salon-booking.cjs.entry.js +0 -51
  64. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
  65. package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
  66. package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
  67. package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
  68. package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
  69. package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
  70. package/dist/cjs/salon-services.cjs.entry.js +0 -81
  71. package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
  72. package/dist/cjs/style-detail.cjs.entry.js +0 -312
  73. package/dist/cjs/user-avatar.cjs.entry.js +0 -45
  74. package/dist/cjs/utils-c5a33b3c.js +0 -23
  75. package/dist/collection/collection-manifest.json +0 -29
  76. package/dist/collection/components/chat-button/index.css +0 -122
  77. package/dist/collection/components/chat-button/index.js +0 -218
  78. package/dist/collection/components/chat-conversation/index.js +0 -103
  79. package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
  80. package/dist/collection/components/google-map/index.css +0 -5
  81. package/dist/collection/components/salon-booking/index.css +0 -30
  82. package/dist/collection/components/salon-booking/index.js +0 -126
  83. package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
  84. package/dist/collection/components/salon-gift-card/index.css +0 -30
  85. package/dist/collection/components/salon-gift-card/index.js +0 -126
  86. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
  87. package/dist/collection/components/salon-info/index.css +0 -1
  88. package/dist/collection/components/salon-info/index.js +0 -77
  89. package/dist/collection/components/salon-latest-reviews/index.css +0 -11
  90. package/dist/collection/components/salon-latest-reviews/index.js +0 -163
  91. package/dist/collection/components/salon-latest-styles/index.css +0 -12
  92. package/dist/collection/components/salon-locations/index.css +0 -24
  93. package/dist/collection/components/salon-lookbook/index.css +0 -15
  94. package/dist/collection/components/salon-lookbook/index.js +0 -368
  95. package/dist/collection/components/salon-ranking/index.css +0 -3
  96. package/dist/collection/components/salon-ranking/index.js +0 -117
  97. package/dist/collection/components/salon-reviews/index.css +0 -18
  98. package/dist/collection/components/salon-reviews/index.js +0 -249
  99. package/dist/collection/components/salon-schedules/index.css +0 -18
  100. package/dist/collection/components/salon-services/index.css +0 -1
  101. package/dist/collection/components/salon-services/index.js +0 -146
  102. package/dist/collection/components/salon-stylists/index.css +0 -43
  103. package/dist/collection/components/salon-stylists/index.js +0 -184
  104. package/dist/collection/components/style-detail/index.css +0 -76
  105. package/dist/collection/components/style-detail/index.js +0 -386
  106. package/dist/collection/components/user-avatar/index.css +0 -0
  107. package/dist/collection/components/user-avatar/index.js +0 -134
  108. package/dist/collection/constants/colors.js +0 -65
  109. package/dist/collection/global/global.js +0 -8
  110. package/dist/collection/index.js +0 -1
  111. package/dist/collection/mocks/users.js +0 -10
  112. package/dist/collection/services/services.js +0 -295
  113. package/dist/collection/types/chat.js +0 -23
  114. package/dist/collection/types/common.js +0 -11
  115. package/dist/collection/types/review.js +0 -39
  116. package/dist/collection/types/salon.js +0 -58
  117. package/dist/collection/types/service.js +0 -24
  118. package/dist/collection/types/style.js +0 -128
  119. package/dist/collection/types/stylist.js +0 -30
  120. package/dist/collection/types/user.js +0 -10
  121. package/dist/collection/utils/utils.js +0 -20
  122. package/dist/esm/chat-button.entry.js +0 -114
  123. package/dist/esm/favesalon-embed.js +0 -19
  124. package/dist/esm/google-map_5.entry.js +0 -302
  125. package/dist/esm/index-3fae868e.js +0 -1506
  126. package/dist/esm/index.js +0 -1
  127. package/dist/esm/loader.js +0 -19
  128. package/dist/esm/polyfills/core-js.js +0 -11
  129. package/dist/esm/polyfills/css-shim.js +0 -1
  130. package/dist/esm/polyfills/dom.js +0 -79
  131. package/dist/esm/polyfills/es5-html-element.js +0 -1
  132. package/dist/esm/polyfills/index.js +0 -34
  133. package/dist/esm/polyfills/system.js +0 -6
  134. package/dist/esm/relativeTime-cd452e6d.js +0 -7
  135. package/dist/favesalon-embed/p-019c5ccd.entry.js +0 -1
  136. package/dist/favesalon-embed/p-083a8821.entry.js +0 -1
  137. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +0 -1
  138. package/dist/favesalon-embed/p-119db8de.entry.js +0 -1
  139. package/dist/favesalon-embed/p-1432c51b.entry.js +0 -1
  140. package/dist/favesalon-embed/p-22093506.entry.js +0 -1
  141. package/dist/favesalon-embed/p-32b314e9.js +0 -2
  142. package/dist/favesalon-embed/p-47e646f8.js +0 -1
  143. package/dist/favesalon-embed/p-4a5eca9a.js +0 -6
  144. package/dist/favesalon-embed/p-58d2e9be.js +0 -1
  145. package/dist/favesalon-embed/p-71404b6a.entry.js +0 -1
  146. package/dist/favesalon-embed/p-857c3a61.entry.js +0 -1
  147. package/dist/favesalon-embed/p-99ec77f7.entry.js +0 -1
  148. package/dist/favesalon-embed/p-a33331cc.js +0 -1
  149. package/dist/favesalon-embed/p-b0c3673a.entry.js +0 -1
  150. package/dist/favesalon-embed/p-b287b1ea.entry.js +0 -1
  151. package/dist/favesalon-embed/p-b3af7842.entry.js +0 -1
  152. package/dist/favesalon-embed/p-b630ae68.js +0 -1580
  153. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +0 -1
  154. package/dist/favesalon-embed/p-d6083940.js +0 -1
  155. package/dist/favesalon-embed/p-d9b7ad58.entry.js +0 -1
  156. package/dist/favesalon-embed/p-fc9a5551.js +0 -6
  157. package/dist/index.cjs.js +0 -1
  158. package/dist/index.js +0 -1
  159. package/dist/types/components/chat-conversation/index.d.ts +0 -0
  160. /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
3
- const _commonjsHelpers = require('./_commonjsHelpers-5cfcba41.js');
1
+ import { c as createCommonjsModule, g as getDefaultExportFromCjs, b as getAugmentedNamespace } from './_commonjsHelpers-9bc404fc.js';
4
2
 
3
+ 'use strict';
4
+
5
5
  var colorName = {
6
6
  "aliceblue": [240, 248, 255],
7
7
  "antiquewhite": [250, 235, 215],
@@ -163,7 +163,8 @@ var isArrayish = function isArrayish(obj) {
163
163
  (Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
164
164
  };
165
165
 
166
- var simpleSwizzle = _commonjsHelpers.createCommonjsModule(function (module) {
166
+ var simpleSwizzle = createCommonjsModule(function (module) {
167
+ 'use strict';
167
168
 
168
169
 
169
170
 
@@ -194,7 +195,7 @@ swizzle.wrap = function (fn) {
194
195
  };
195
196
  });
196
197
 
197
- var colorString = _commonjsHelpers.createCommonjsModule(function (module) {
198
+ var colorString = createCommonjsModule(function (module) {
198
199
  /* MIT license */
199
200
 
200
201
 
@@ -1930,6 +1931,8 @@ object-assign
1930
1931
  (c) Sindre Sorhus
1931
1932
  @license MIT
1932
1933
  */
1934
+
1935
+ 'use strict';
1933
1936
  /* eslint-disable no-unused-vars */
1934
1937
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1935
1938
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2014,7 +2017,8 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
2014
2017
  return to;
2015
2018
  };
2016
2019
 
2017
- var sheet = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2020
+ var sheet = createCommonjsModule(function (module, exports) {
2021
+ 'use strict';
2018
2022
 
2019
2023
  Object.defineProperty(exports, "__esModule", {
2020
2024
  value: true
@@ -2073,7 +2077,8 @@ function sheetForTag(tag) {
2073
2077
  }
2074
2078
 
2075
2079
  var isBrowser = typeof window !== 'undefined';
2076
- var isTest = "production" === 'test';
2080
+ var isDev = "development" === 'development' || !"development"; //(x => (x === 'development') || !x)("development")
2081
+ var isTest = "development" === 'test';
2077
2082
 
2078
2083
  var oldIE = function () {
2079
2084
  if (isBrowser) {
@@ -2095,7 +2100,7 @@ function makeStyleTag() {
2095
2100
  function StyleSheet() {
2096
2101
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
2097
2102
  _ref$speedy = _ref.speedy,
2098
- speedy = _ref$speedy === undefined ? !isTest : _ref$speedy,
2103
+ speedy = _ref$speedy === undefined ? !isDev && !isTest : _ref$speedy,
2099
2104
  _ref$maxLength = _ref.maxLength,
2100
2105
  maxLength = _ref$maxLength === undefined ? isBrowser && oldIE ? 4000 : 65000 : _ref$maxLength;
2101
2106
 
@@ -2144,6 +2149,10 @@ function StyleSheet() {
2144
2149
  var sheet = this.getSheet();
2145
2150
  sheet.insertRule(rule, rule.indexOf('@import') !== -1 ? 0 : sheet.cssRules.length);
2146
2151
  } catch (e) {
2152
+ if (isDev) {
2153
+ // might need beter dx for this
2154
+ console.warn('whoops, illegal rule inserted', rule); //eslint-disable-line no-console
2155
+ }
2147
2156
  }
2148
2157
  },
2149
2158
  insert: function insert(rule) {
@@ -2243,7 +2252,78 @@ function StyleSheet() {
2243
2252
  });
2244
2253
  });
2245
2254
 
2246
- var CSSProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2255
+ const sheet$1 = /*@__PURE__*/getDefaultExportFromCjs(sheet);
2256
+
2257
+ "use strict";
2258
+
2259
+ /**
2260
+ * Copyright (c) 2013-present, Facebook, Inc.
2261
+ *
2262
+ * This source code is licensed under the MIT license found in the
2263
+ * LICENSE file in the root directory of this source tree.
2264
+ *
2265
+ * @typechecks
2266
+ */
2267
+
2268
+ var _hyphenPattern = /-(.)/g;
2269
+
2270
+ /**
2271
+ * Camelcases a hyphenated string, for example:
2272
+ *
2273
+ * > camelize('background-color')
2274
+ * < "backgroundColor"
2275
+ *
2276
+ * @param {string} string
2277
+ * @return {string}
2278
+ */
2279
+ function camelize(string) {
2280
+ return string.replace(_hyphenPattern, function (_, character) {
2281
+ return character.toUpperCase();
2282
+ });
2283
+ }
2284
+
2285
+ var camelize_1 = camelize;
2286
+
2287
+ /**
2288
+ * Copyright (c) 2013-present, Facebook, Inc.
2289
+ *
2290
+ * This source code is licensed under the MIT license found in the
2291
+ * LICENSE file in the root directory of this source tree.
2292
+ *
2293
+ * @typechecks
2294
+ */
2295
+
2296
+ 'use strict';
2297
+
2298
+
2299
+
2300
+ var msPattern$2 = /^-ms-/;
2301
+
2302
+ /**
2303
+ * Camelcases a hyphenated CSS property name, for example:
2304
+ *
2305
+ * > camelizeStyleName('background-color')
2306
+ * < "backgroundColor"
2307
+ * > camelizeStyleName('-moz-transition')
2308
+ * < "MozTransition"
2309
+ * > camelizeStyleName('-ms-transition')
2310
+ * < "msTransition"
2311
+ *
2312
+ * As Andi Smith suggests
2313
+ * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
2314
+ * is converted to lowercase `ms`.
2315
+ *
2316
+ * @param {string} string
2317
+ * @return {string}
2318
+ */
2319
+ function camelizeStyleName(string) {
2320
+ return camelize_1(string.replace(msPattern$2, 'ms-'));
2321
+ }
2322
+
2323
+ var camelizeStyleName_1 = camelizeStyleName;
2324
+
2325
+ var CSSProperty_1 = createCommonjsModule(function (module, exports) {
2326
+ 'use strict';
2247
2327
 
2248
2328
  Object.defineProperty(exports, "__esModule", {
2249
2329
  value: true
@@ -2399,7 +2479,110 @@ var CSSProperty = {
2399
2479
  exports.default = CSSProperty;
2400
2480
  });
2401
2481
 
2402
- var dangerousStyleValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2482
+ const CSSProperty = /*@__PURE__*/getDefaultExportFromCjs(CSSProperty_1);
2483
+
2484
+ "use strict";
2485
+
2486
+ /**
2487
+ * Copyright (c) 2013-present, Facebook, Inc.
2488
+ *
2489
+ * This source code is licensed under the MIT license found in the
2490
+ * LICENSE file in the root directory of this source tree.
2491
+ *
2492
+ *
2493
+ */
2494
+
2495
+ function makeEmptyFunction(arg) {
2496
+ return function () {
2497
+ return arg;
2498
+ };
2499
+ }
2500
+
2501
+ /**
2502
+ * This function accepts and discards inputs; it has no side effects. This is
2503
+ * primarily useful idiomatically for overridable function endpoints which
2504
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
2505
+ */
2506
+ var emptyFunction = function emptyFunction() {};
2507
+
2508
+ emptyFunction.thatReturns = makeEmptyFunction;
2509
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
2510
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
2511
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
2512
+ emptyFunction.thatReturnsThis = function () {
2513
+ return this;
2514
+ };
2515
+ emptyFunction.thatReturnsArgument = function (arg) {
2516
+ return arg;
2517
+ };
2518
+
2519
+ var emptyFunction_1 = emptyFunction;
2520
+
2521
+ /**
2522
+ * Copyright (c) 2014-present, Facebook, Inc.
2523
+ *
2524
+ * This source code is licensed under the MIT license found in the
2525
+ * LICENSE file in the root directory of this source tree.
2526
+ *
2527
+ */
2528
+
2529
+ 'use strict';
2530
+
2531
+
2532
+
2533
+ /**
2534
+ * Similar to invariant but only logs a warning if the condition is not met.
2535
+ * This can be used to log issues in development environments in critical
2536
+ * paths. Removing the logging code for production environments will keep the
2537
+ * same logic and follow the same code paths.
2538
+ */
2539
+
2540
+ var warning = emptyFunction_1;
2541
+
2542
+ if ("development" !== 'production') {
2543
+ var printWarning = function printWarning(format) {
2544
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2545
+ args[_key - 1] = arguments[_key];
2546
+ }
2547
+
2548
+ var argIndex = 0;
2549
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
2550
+ return args[argIndex++];
2551
+ });
2552
+ if (typeof console !== 'undefined') {
2553
+ console.error(message);
2554
+ }
2555
+ try {
2556
+ // --- Welcome to debugging React ---
2557
+ // This error was thrown as a convenience so that you can use this stack
2558
+ // to find the callsite that caused this warning to fire.
2559
+ throw new Error(message);
2560
+ } catch (x) {}
2561
+ };
2562
+
2563
+ warning = function warning(condition, format) {
2564
+ if (format === undefined) {
2565
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
2566
+ }
2567
+
2568
+ if (format.indexOf('Failed Composite propType: ') === 0) {
2569
+ return; // Ignore CompositeComponent proptype check.
2570
+ }
2571
+
2572
+ if (!condition) {
2573
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
2574
+ args[_key2 - 2] = arguments[_key2];
2575
+ }
2576
+
2577
+ printWarning.apply(undefined, [format].concat(args));
2578
+ }
2579
+ };
2580
+ }
2581
+
2582
+ var warning_1 = warning;
2583
+
2584
+ var dangerousStyleValue_1 = createCommonjsModule(function (module, exports) {
2585
+ 'use strict';
2403
2586
 
2404
2587
  Object.defineProperty(exports, "__esModule", {
2405
2588
  value: true
@@ -2409,6 +2592,10 @@ Object.defineProperty(exports, "__esModule", {
2409
2592
 
2410
2593
  var _CSSProperty2 = _interopRequireDefault(CSSProperty_1);
2411
2594
 
2595
+
2596
+
2597
+ var _warning2 = _interopRequireDefault(warning_1);
2598
+
2412
2599
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2413
2600
 
2414
2601
  /**
@@ -2423,6 +2610,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
2423
2610
  */
2424
2611
 
2425
2612
  var isUnitlessNumber = _CSSProperty2.default.isUnitlessNumber;
2613
+ var styleWarnings = {};
2426
2614
 
2427
2615
  /**
2428
2616
  * Convert a value into the proper css writable value. The style name `name`
@@ -2456,6 +2644,28 @@ function dangerousStyleValue(name, value, component) {
2456
2644
  }
2457
2645
 
2458
2646
  if (typeof value === 'string') {
2647
+ if ("development" !== 'production') {
2648
+ // Allow '0' to pass through without warning. 0 is already special and
2649
+ // doesn't require units, so we don't need to warn about it.
2650
+ if (component && value !== '0') {
2651
+ var owner = component._currentElement._owner;
2652
+ var ownerName = owner ? owner.getName() : null;
2653
+ if (ownerName && !styleWarnings[ownerName]) {
2654
+ styleWarnings[ownerName] = {};
2655
+ }
2656
+ var warned = false;
2657
+ if (ownerName) {
2658
+ var warnings = styleWarnings[ownerName];
2659
+ warned = warnings[name];
2660
+ if (!warned) {
2661
+ warnings[name] = true;
2662
+ }
2663
+ }
2664
+ if (!warned) {
2665
+ "development" !== 'production' ? (0, _warning2.default)(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0;
2666
+ }
2667
+ }
2668
+ }
2459
2669
  value = value.trim();
2460
2670
  }
2461
2671
  return value + 'px';
@@ -2464,6 +2674,10 @@ function dangerousStyleValue(name, value, component) {
2464
2674
  exports.default = dangerousStyleValue;
2465
2675
  });
2466
2676
 
2677
+ const dangerousStyleValue = /*@__PURE__*/getDefaultExportFromCjs(dangerousStyleValue_1);
2678
+
2679
+ 'use strict';
2680
+
2467
2681
  /**
2468
2682
  * Copyright (c) 2013-present, Facebook, Inc.
2469
2683
  *
@@ -2493,6 +2707,19 @@ function hyphenate(string) {
2493
2707
 
2494
2708
  var hyphenate_1 = hyphenate;
2495
2709
 
2710
+ /**
2711
+ * Copyright (c) 2013-present, Facebook, Inc.
2712
+ *
2713
+ * This source code is licensed under the MIT license found in the
2714
+ * LICENSE file in the root directory of this source tree.
2715
+ *
2716
+ * @typechecks
2717
+ */
2718
+
2719
+ 'use strict';
2720
+
2721
+
2722
+
2496
2723
  var msPattern$1 = /^ms-/;
2497
2724
 
2498
2725
  /**
@@ -2527,6 +2754,8 @@ var hyphenateStyleName_1 = hyphenateStyleName$2;
2527
2754
  * @typechecks static-only
2528
2755
  */
2529
2756
 
2757
+ 'use strict';
2758
+
2530
2759
  /**
2531
2760
  * Memoizes the return value of a function that accepts one string argument.
2532
2761
  */
@@ -2543,7 +2772,8 @@ function memoizeStringOnly(callback) {
2543
2772
 
2544
2773
  var memoizeStringOnly_1 = memoizeStringOnly;
2545
2774
 
2546
- var CSSPropertyOperations = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2775
+ var CSSPropertyOperations = createCommonjsModule(function (module, exports) {
2776
+ 'use strict';
2547
2777
 
2548
2778
  Object.defineProperty(exports, "__esModule", {
2549
2779
  value: true
@@ -2553,6 +2783,10 @@ exports.createMarkupForStyles = createMarkupForStyles;
2553
2783
 
2554
2784
 
2555
2785
 
2786
+ var _camelizeStyleName2 = _interopRequireDefault(camelizeStyleName_1);
2787
+
2788
+
2789
+
2556
2790
  var _dangerousStyleValue2 = _interopRequireDefault(dangerousStyleValue_1);
2557
2791
 
2558
2792
 
@@ -2563,6 +2797,10 @@ var _hyphenateStyleName2 = _interopRequireDefault(hyphenateStyleName_1);
2563
2797
 
2564
2798
  var _memoizeStringOnly2 = _interopRequireDefault(memoizeStringOnly_1);
2565
2799
 
2800
+
2801
+
2802
+ var _warning2 = _interopRequireDefault(warning_1);
2803
+
2566
2804
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2567
2805
 
2568
2806
  var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.default)(_hyphenateStyleName2.default); /**
@@ -2576,6 +2814,88 @@ var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.defaul
2576
2814
  * @providesModule CSSPropertyOperations
2577
2815
  */
2578
2816
 
2817
+ if ("development" !== 'production') {
2818
+ // 'msTransform' is correct, but the other prefixes should be capitalized
2819
+ var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
2820
+
2821
+ // style values shouldn't contain a semicolon
2822
+ var badStyleValueWithSemicolonPattern = /;\s*$/;
2823
+
2824
+ var warnedStyleNames = {};
2825
+ var warnedStyleValues = {};
2826
+ var warnedForNaNValue = false;
2827
+
2828
+ var warnHyphenatedStyleName = function warnHyphenatedStyleName(name, owner) {
2829
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
2830
+ return;
2831
+ }
2832
+
2833
+ warnedStyleNames[name] = true;
2834
+ "development" !== 'production' ? (0, _warning2.default)(false, 'Unsupported style property %s. Did you mean %s?%s', name, (0, _camelizeStyleName2.default)(name), checkRenderMessage(owner)) : void 0;
2835
+ };
2836
+
2837
+ var warnBadVendoredStyleName = function warnBadVendoredStyleName(name, owner) {
2838
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
2839
+ return;
2840
+ }
2841
+
2842
+ warnedStyleNames[name] = true;
2843
+ "development" !== 'production' ? (0, _warning2.default)(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;
2844
+ };
2845
+
2846
+ var warnStyleValueWithSemicolon = function warnStyleValueWithSemicolon(name, value, owner) {
2847
+ if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
2848
+ return;
2849
+ }
2850
+
2851
+ warnedStyleValues[value] = true;
2852
+ "development" !== 'production' ? (0, _warning2.default)(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
2853
+ };
2854
+
2855
+ var warnStyleValueIsNaN = function warnStyleValueIsNaN(name, value, owner) {
2856
+ if (warnedForNaNValue) {
2857
+ return;
2858
+ }
2859
+
2860
+ warnedForNaNValue = true;
2861
+ "development" !== 'production' ? (0, _warning2.default)(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
2862
+ };
2863
+
2864
+ var checkRenderMessage = function checkRenderMessage(owner) {
2865
+ if (owner) {
2866
+ var name = owner.getName();
2867
+ if (name) {
2868
+ return ' Check the render method of `' + name + '`.';
2869
+ }
2870
+ }
2871
+ return '';
2872
+ };
2873
+
2874
+ /**
2875
+ * @param {string} name
2876
+ * @param {*} value
2877
+ * @param {ReactDOMComponent} component
2878
+ */
2879
+ var warnValidStyle = function warnValidStyle(name, value, component) {
2880
+ //eslint-disable-line no-var
2881
+ var owner = void 0;
2882
+ if (component) {
2883
+ owner = component._currentElement._owner;
2884
+ }
2885
+ if (name.indexOf('-') > -1) {
2886
+ warnHyphenatedStyleName(name, owner);
2887
+ } else if (badVendoredStyleNamePattern.test(name)) {
2888
+ warnBadVendoredStyleName(name, owner);
2889
+ } else if (badStyleValueWithSemicolonPattern.test(value)) {
2890
+ warnStyleValueWithSemicolon(name, value, owner);
2891
+ }
2892
+
2893
+ if (typeof value === 'number' && isNaN(value)) {
2894
+ warnStyleValueIsNaN(name, value, owner);
2895
+ }
2896
+ };
2897
+ }
2898
+
2579
2899
  /**
2580
2900
  * Serializes a mapping of style properties for use as inline styles:
2581
2901
  *
@@ -2601,6 +2921,9 @@ function createMarkupForStyles(styles, component) {
2601
2921
  continue;
2602
2922
  }
2603
2923
  var styleValue = styles[styleName];
2924
+ if ("development" !== 'production' && !isCustomProp) {
2925
+ warnValidStyle(styleName, styleValue, component);
2926
+ }
2604
2927
  if (styleValue != null) {
2605
2928
  if (isCustomProp) {
2606
2929
  serialized += styleName + ':' + styleValue + ';';
@@ -2614,7 +2937,10 @@ function createMarkupForStyles(styles, component) {
2614
2937
  }
2615
2938
  });
2616
2939
 
2617
- var clean_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2940
+ const index$1 = /*@__PURE__*/getDefaultExportFromCjs(CSSPropertyOperations);
2941
+
2942
+ var clean_1 = createCommonjsModule(function (module, exports) {
2943
+ 'use strict';
2618
2944
 
2619
2945
  Object.defineProperty(exports, "__esModule", {
2620
2946
  value: true
@@ -2670,7 +2996,10 @@ function clean(input) {
2670
2996
  }
2671
2997
  });
2672
2998
 
2673
- var staticData = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2999
+ const clean = /*@__PURE__*/getDefaultExportFromCjs(clean_1);
3000
+
3001
+ var staticData = createCommonjsModule(function (module, exports) {
3002
+ "use strict";
2674
3003
 
2675
3004
  Object.defineProperty(exports, "__esModule", {
2676
3005
  value: true
@@ -2690,7 +3019,10 @@ exports.default = {
2690
3019
  module.exports = exports["default"];
2691
3020
  });
2692
3021
 
2693
- var capitalizeString_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3022
+ const staticData$1 = /*@__PURE__*/getDefaultExportFromCjs(staticData);
3023
+
3024
+ var capitalizeString_1 = createCommonjsModule(function (module, exports) {
3025
+ "use strict";
2694
3026
 
2695
3027
  Object.defineProperty(exports, "__esModule", {
2696
3028
  value: true
@@ -2702,7 +3034,10 @@ function capitalizeString(str) {
2702
3034
  module.exports = exports["default"];
2703
3035
  });
2704
3036
 
2705
- var prefixProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3037
+ const capitalizeString = /*@__PURE__*/getDefaultExportFromCjs(capitalizeString_1);
3038
+
3039
+ var prefixProperty_1 = createCommonjsModule(function (module, exports) {
3040
+ 'use strict';
2706
3041
 
2707
3042
  Object.defineProperty(exports, "__esModule", {
2708
3043
  value: true
@@ -2726,7 +3061,10 @@ function prefixProperty(prefixProperties, property, style) {
2726
3061
  module.exports = exports['default'];
2727
3062
  });
2728
3063
 
2729
- var prefixValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3064
+ const prefixProperty = /*@__PURE__*/getDefaultExportFromCjs(prefixProperty_1);
3065
+
3066
+ var prefixValue_1 = createCommonjsModule(function (module, exports) {
3067
+ "use strict";
2730
3068
 
2731
3069
  Object.defineProperty(exports, "__esModule", {
2732
3070
  value: true
@@ -2746,7 +3084,10 @@ function prefixValue(plugins, property, value, style, metaData) {
2746
3084
  module.exports = exports["default"];
2747
3085
  });
2748
3086
 
2749
- var cursor_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3087
+ const prefixValue = /*@__PURE__*/getDefaultExportFromCjs(prefixValue_1);
3088
+
3089
+ var cursor_1 = createCommonjsModule(function (module, exports) {
3090
+ 'use strict';
2750
3091
 
2751
3092
  Object.defineProperty(exports, "__esModule", {
2752
3093
  value: true
@@ -2771,7 +3112,10 @@ function cursor(property, value) {
2771
3112
  module.exports = exports['default'];
2772
3113
  });
2773
3114
 
2774
- var isPrefixedValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3115
+ const cursor = /*@__PURE__*/getDefaultExportFromCjs(cursor_1);
3116
+
3117
+ var isPrefixedValue_1 = createCommonjsModule(function (module, exports) {
3118
+ 'use strict';
2775
3119
 
2776
3120
  Object.defineProperty(exports, "__esModule", {
2777
3121
  value: true
@@ -2785,7 +3129,10 @@ function isPrefixedValue(value) {
2785
3129
  module.exports = exports['default'];
2786
3130
  });
2787
3131
 
2788
- var crossFade_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3132
+ const isPrefixedValue = /*@__PURE__*/getDefaultExportFromCjs(isPrefixedValue_1);
3133
+
3134
+ var crossFade_1 = createCommonjsModule(function (module, exports) {
3135
+ 'use strict';
2789
3136
 
2790
3137
  Object.defineProperty(exports, "__esModule", {
2791
3138
  value: true
@@ -2810,7 +3157,10 @@ function crossFade(property, value) {
2810
3157
  module.exports = exports['default'];
2811
3158
  });
2812
3159
 
2813
- var filter_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3160
+ const crossFade = /*@__PURE__*/getDefaultExportFromCjs(crossFade_1);
3161
+
3162
+ var filter_1 = createCommonjsModule(function (module, exports) {
3163
+ 'use strict';
2814
3164
 
2815
3165
  Object.defineProperty(exports, "__esModule", {
2816
3166
  value: true
@@ -2835,7 +3185,10 @@ function filter(property, value) {
2835
3185
  module.exports = exports['default'];
2836
3186
  });
2837
3187
 
2838
- var flex_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3188
+ const filter = /*@__PURE__*/getDefaultExportFromCjs(filter_1);
3189
+
3190
+ var flex_1 = createCommonjsModule(function (module, exports) {
3191
+ 'use strict';
2839
3192
 
2840
3193
  Object.defineProperty(exports, "__esModule", {
2841
3194
  value: true
@@ -2854,7 +3207,10 @@ function flex(property, value) {
2854
3207
  module.exports = exports['default'];
2855
3208
  });
2856
3209
 
2857
- var flexboxOld_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3210
+ const flex = /*@__PURE__*/getDefaultExportFromCjs(flex_1);
3211
+
3212
+ var flexboxOld_1 = createCommonjsModule(function (module, exports) {
3213
+ 'use strict';
2858
3214
 
2859
3215
  Object.defineProperty(exports, "__esModule", {
2860
3216
  value: true
@@ -2895,7 +3251,10 @@ function flexboxOld(property, value, style) {
2895
3251
  module.exports = exports['default'];
2896
3252
  });
2897
3253
 
2898
- var gradient_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3254
+ const flexboxOld = /*@__PURE__*/getDefaultExportFromCjs(flexboxOld_1);
3255
+
3256
+ var gradient_1 = createCommonjsModule(function (module, exports) {
3257
+ 'use strict';
2899
3258
 
2900
3259
  Object.defineProperty(exports, "__esModule", {
2901
3260
  value: true
@@ -2922,7 +3281,10 @@ function gradient(property, value) {
2922
3281
  module.exports = exports['default'];
2923
3282
  });
2924
3283
 
2925
- var imageSet_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3284
+ const gradient = /*@__PURE__*/getDefaultExportFromCjs(gradient_1);
3285
+
3286
+ var imageSet_1 = createCommonjsModule(function (module, exports) {
3287
+ 'use strict';
2926
3288
 
2927
3289
  Object.defineProperty(exports, "__esModule", {
2928
3290
  value: true
@@ -2947,7 +3309,10 @@ function imageSet(property, value) {
2947
3309
  module.exports = exports['default'];
2948
3310
  });
2949
3311
 
2950
- var position_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3312
+ const imageSet = /*@__PURE__*/getDefaultExportFromCjs(imageSet_1);
3313
+
3314
+ var position_1 = createCommonjsModule(function (module, exports) {
3315
+ 'use strict';
2951
3316
 
2952
3317
  Object.defineProperty(exports, "__esModule", {
2953
3318
  value: true
@@ -2961,7 +3326,10 @@ function position(property, value) {
2961
3326
  module.exports = exports['default'];
2962
3327
  });
2963
3328
 
2964
- var sizing_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3329
+ const position = /*@__PURE__*/getDefaultExportFromCjs(position_1);
3330
+
3331
+ var sizing_1 = createCommonjsModule(function (module, exports) {
3332
+ 'use strict';
2965
3333
 
2966
3334
  Object.defineProperty(exports, "__esModule", {
2967
3335
  value: true
@@ -2996,6 +3364,8 @@ function sizing(property, value) {
2996
3364
  module.exports = exports['default'];
2997
3365
  });
2998
3366
 
3367
+ const sizing = /*@__PURE__*/getDefaultExportFromCjs(sizing_1);
3368
+
2999
3369
  /* eslint-disable no-var, prefer-template */
3000
3370
  var uppercasePattern = /[A-Z]/g;
3001
3371
  var msPattern = /^ms-/;
@@ -3019,9 +3389,10 @@ const hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({
3019
3389
  'default': hyphenateStyleName
3020
3390
  });
3021
3391
 
3022
- const _hyphenateStyleName = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(hyphenateStyleName$1);
3392
+ const _hyphenateStyleName = /*@__PURE__*/getAugmentedNamespace(hyphenateStyleName$1);
3023
3393
 
3024
- var hyphenateProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3394
+ var hyphenateProperty_1 = createCommonjsModule(function (module, exports) {
3395
+ 'use strict';
3025
3396
 
3026
3397
  Object.defineProperty(exports, "__esModule", {
3027
3398
  value: true
@@ -3040,7 +3411,10 @@ function hyphenateProperty(property) {
3040
3411
  module.exports = exports['default'];
3041
3412
  });
3042
3413
 
3043
- var transition_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3414
+ const hyphenateProperty = /*@__PURE__*/getDefaultExportFromCjs(hyphenateProperty_1);
3415
+
3416
+ var transition_1 = createCommonjsModule(function (module, exports) {
3417
+ 'use strict';
3044
3418
 
3045
3419
  Object.defineProperty(exports, "__esModule", {
3046
3420
  value: true
@@ -3135,7 +3509,10 @@ function transition(property, value, style, propertyPrefixMap) {
3135
3509
  module.exports = exports['default'];
3136
3510
  });
3137
3511
 
3138
- var prefixer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3512
+ const transition = /*@__PURE__*/getDefaultExportFromCjs(transition_1);
3513
+
3514
+ var prefixer_1 = createCommonjsModule(function (module, exports) {
3515
+ 'use strict';
3139
3516
 
3140
3517
  Object.defineProperty(exports, "__esModule", {
3141
3518
  value: true
@@ -3218,7 +3595,10 @@ function prefixer(style) {
3218
3595
  }
3219
3596
  });
3220
3597
 
3221
- var plugins = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3598
+ const prefixer = /*@__PURE__*/getDefaultExportFromCjs(prefixer_1);
3599
+
3600
+ var plugins = createCommonjsModule(function (module, exports) {
3601
+ 'use strict';
3222
3602
 
3223
3603
  Object.defineProperty(exports, "__esModule", {
3224
3604
  value: true
@@ -3245,7 +3625,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
3245
3625
 
3246
3626
  var isDev = function (x) {
3247
3627
  return x === 'development' || !x;
3248
- }("production");
3628
+ }("development");
3249
3629
 
3250
3630
  function PluginSet(initial) {
3251
3631
  this.fns = initial || [];
@@ -3326,7 +3706,10 @@ function prefixes(node) {
3326
3706
  }
3327
3707
  });
3328
3708
 
3329
- var hash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3709
+ const plugins$1 = /*@__PURE__*/getDefaultExportFromCjs(plugins);
3710
+
3711
+ var hash = createCommonjsModule(function (module, exports) {
3712
+ "use strict";
3330
3713
 
3331
3714
  Object.defineProperty(exports, "__esModule", {
3332
3715
  value: true
@@ -3398,7 +3781,10 @@ function Umul32(n, m) {
3398
3781
  }
3399
3782
  });
3400
3783
 
3401
- var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3784
+ const hash$1 = /*@__PURE__*/getDefaultExportFromCjs(hash);
3785
+
3786
+ var lib = createCommonjsModule(function (module, exports) {
3787
+ 'use strict';
3402
3788
 
3403
3789
  Object.defineProperty(exports, "__esModule", {
3404
3790
  value: true
@@ -3487,6 +3873,8 @@ var _hash2 = _interopRequireDefault(hash);
3487
3873
 
3488
3874
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3489
3875
 
3876
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
3877
+
3490
3878
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3491
3879
  /* stylesheet */
3492
3880
 
@@ -3512,7 +3900,8 @@ plugins$1.keyframes = new plugins.PluginSet([plugins.prefixes, plugins.fallbacks
3512
3900
 
3513
3901
  // define some constants
3514
3902
 
3515
- var isDev = !"production";
3903
+ var isDev = "development" === 'development' || !"development";
3904
+ var isTest = "development" === 'test';
3516
3905
  var isBrowser = typeof window !== 'undefined';
3517
3906
 
3518
3907
  /**** simulations ****/
@@ -3551,7 +3940,7 @@ function simulate() {
3551
3940
  console.warn('can\'t simulate without once calling simulations(true)'); //eslint-disable-line no-console
3552
3941
  warned1 = true;
3553
3942
  }
3554
- if (!warned2) {
3943
+ if (!isDev && !isTest && !warned2) {
3555
3944
  console.warn('don\'t use simulation outside dev'); //eslint-disable-line no-console
3556
3945
  warned2 = true;
3557
3946
  }
@@ -3803,6 +4192,12 @@ function toRule(spec) {
3803
4192
  return ret;
3804
4193
  }
3805
4194
 
4195
+ function log() {
4196
+ //eslint-disable-line no-unused-vars
4197
+ console.log(this); //eslint-disable-line no-console
4198
+ return this;
4199
+ }
4200
+
3806
4201
  function isSelector(key) {
3807
4202
  var possibles = [':', '.', '[', '>', ' '],
3808
4203
  found = false,
@@ -3903,7 +4298,9 @@ var prefixedPseudoSelectors = {
3903
4298
  build(dest, { selector: selector, mq: joinMediaQueries(mq, key), supp: supp, src: _src[key] });
3904
4299
  } else if (isSupports(key)) {
3905
4300
  build(dest, { selector: selector, mq: mq, supp: joinSupports(supp, key), src: _src[key] });
3906
- } else if (key === 'composes') ; else {
4301
+ } else if (key === 'composes') {
4302
+ // ignore, we already dealth with it
4303
+ } else {
3907
4304
  var _dest = dest;
3908
4305
  if (supp) {
3909
4306
  _dest[supp] = _dest[supp] || {};
@@ -3952,6 +4349,8 @@ Object.defineProperty(nullrule, 'toString', {
3952
4349
  });
3953
4350
 
3954
4351
  var inputCaches = typeof WeakMap !== 'undefined' ? [nullrule, new WeakMap(), new WeakMap(), new WeakMap()] : [nullrule];
4352
+
4353
+ var warnedWeakMapError = false;
3955
4354
  function multiIndexCache(fn) {
3956
4355
  return function (args) {
3957
4356
  if (inputCaches[args.length]) {
@@ -3984,6 +4383,13 @@ function multiIndexCache(fn) {
3984
4383
  try {
3985
4384
  _coi.set(args[_ctr], value);
3986
4385
  } catch (err) {
4386
+ if (isDev && !warnedWeakMapError) {
4387
+ var _console;
4388
+
4389
+ warnedWeakMapError = true;
4390
+ (_console = console).warn.apply(_console, ['failed setting the WeakMap cache for args:'].concat(_toConsumableArray(args))); // eslint-disable-line no-console
4391
+ console.warn('this should NOT happen, please file a bug on the github repo.'); // eslint-disable-line no-console
4392
+ }
3987
4393
  }
3988
4394
  }
3989
4395
  return value;
@@ -4022,7 +4428,7 @@ css.insert = function (css) {
4022
4428
  }
4023
4429
  };
4024
4430
 
4025
- exports.insertRule = css.insert;
4431
+ var insertRule = exports.insertRule = css.insert;
4026
4432
 
4027
4433
  css.global = function (selector, style) {
4028
4434
  style = (0, _clean2.default)(style);
@@ -4031,7 +4437,7 @@ css.global = function (selector, style) {
4031
4437
  }
4032
4438
  };
4033
4439
 
4034
- exports.insertGlobal = css.global;
4440
+ var insertGlobal = exports.insertGlobal = css.global;
4035
4441
 
4036
4442
  function insertKeyframe(spec) {
4037
4443
  if (!inserted[spec.id]) {
@@ -4083,8 +4489,8 @@ css.fontFace = function (font) {
4083
4489
  return font.fontFamily;
4084
4490
  };
4085
4491
 
4086
- exports.fontFace = css.fontFace;
4087
- exports.keyframes = css.keyframes;
4492
+ var fontFace = exports.fontFace = css.fontFace;
4493
+ var keyframes = exports.keyframes = css.keyframes;
4088
4494
 
4089
4495
  function insertFontFace(spec) {
4090
4496
  if (!inserted[spec.id]) {
@@ -4115,7 +4521,7 @@ function flush() {
4115
4521
  styleSheet.inject();
4116
4522
  }
4117
4523
 
4118
- exports.presets = {
4524
+ var presets = exports.presets = {
4119
4525
  mobile: '(min-width: 400px)',
4120
4526
  Mobile: '@media (min-width: 400px)',
4121
4527
  phablet: '(min-width: 550px)',
@@ -4140,7 +4546,7 @@ function select(selector) {
4140
4546
  }
4141
4547
  return css(_defineProperty({}, selector, styles));
4142
4548
  }
4143
- exports.$ = select;
4549
+ var $ = exports.$ = select;
4144
4550
 
4145
4551
  function parent(selector) {
4146
4552
  for (var _len4 = arguments.length, styles = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
@@ -4150,8 +4556,8 @@ function parent(selector) {
4150
4556
  return css(_defineProperty({}, selector + ' &', styles));
4151
4557
  }
4152
4558
 
4153
- exports.merge = css;
4154
- exports.compose = css;
4559
+ var merge = exports.merge = css;
4560
+ var compose = exports.compose = css;
4155
4561
 
4156
4562
  function media(query) {
4157
4563
  for (var _len5 = arguments.length, rules = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
@@ -4392,5 +4798,6 @@ function attribsFor() {
4392
4798
  }
4393
4799
  });
4394
4800
 
4395
- exports.color = color;
4396
- exports.lib = lib;
4801
+ const index = /*@__PURE__*/getDefaultExportFromCjs(lib);
4802
+
4803
+ export { color as c, lib as l };