{
  "version": 3,
  "sources": ["../../../../../node_modules/global/window.js", "../../../../../node_modules/core-js/internals/global.js", "../../../../../node_modules/core-js/internals/fails.js", "../../../../../node_modules/core-js/internals/descriptors.js", "../../../../../node_modules/core-js/internals/is-callable.js", "../../../../../node_modules/core-js/internals/function-bind-native.js", "../../../../../node_modules/core-js/internals/function-uncurry-this.js", "../../../../../node_modules/core-js/internals/require-object-coercible.js", "../../../../../node_modules/core-js/internals/to-object.js", "../../../../../node_modules/core-js/internals/has-own-property.js", "../../../../../node_modules/core-js/internals/function-name.js", "../../../../../node_modules/core-js/internals/define-global-property.js", "../../../../../node_modules/core-js/internals/shared-store.js", "../../../../../node_modules/core-js/internals/inspect-source.js", "../../../../../node_modules/core-js/internals/native-weak-map.js", "../../../../../node_modules/core-js/internals/is-object.js", "../../../../../node_modules/core-js/internals/document-create-element.js", "../../../../../node_modules/core-js/internals/ie8-dom-define.js", "../../../../../node_modules/core-js/internals/v8-prototype-define-bug.js", "../../../../../node_modules/core-js/internals/an-object.js", "../../../../../node_modules/core-js/internals/function-call.js", "../../../../../node_modules/core-js/internals/get-built-in.js", "../../../../../node_modules/core-js/internals/object-is-prototype-of.js", "../../../../../node_modules/core-js/internals/engine-user-agent.js", "../../../../../node_modules/core-js/internals/engine-v8-version.js", "../../../../../node_modules/core-js/internals/native-symbol.js", "../../../../../node_modules/core-js/internals/use-symbol-as-uid.js", "../../../../../node_modules/core-js/internals/is-symbol.js", "../../../../../node_modules/core-js/internals/try-to-string.js", "../../../../../node_modules/core-js/internals/a-callable.js", "../../../../../node_modules/core-js/internals/get-method.js", "../../../../../node_modules/core-js/internals/ordinary-to-primitive.js", "../../../../../node_modules/core-js/internals/is-pure.js", "../../../../../node_modules/core-js/internals/shared.js", "../../../../../node_modules/core-js/internals/uid.js", "../../../../../node_modules/core-js/internals/well-known-symbol.js", "../../../../../node_modules/core-js/internals/to-primitive.js", "../../../../../node_modules/core-js/internals/to-property-key.js", "../../../../../node_modules/core-js/internals/object-define-property.js", "../../../../../node_modules/core-js/internals/create-property-descriptor.js", "../../../../../node_modules/core-js/internals/create-non-enumerable-property.js", "../../../../../node_modules/core-js/internals/shared-key.js", "../../../../../node_modules/core-js/internals/hidden-keys.js", "../../../../../node_modules/core-js/internals/internal-state.js", "../../../../../node_modules/core-js/internals/make-built-in.js", "../../../../../node_modules/core-js/internals/define-built-in-accessor.js", "../../../../../node_modules/core-js/internals/regexp-flags.js", "../../../../../node_modules/@babel/runtime/helpers/extends.js", "../../../../../node_modules/@babel/runtime/helpers/assertThisInitialized.js", "../../../../../node_modules/@babel/runtime/helpers/setPrototypeOf.js", "../../../../../node_modules/@babel/runtime/helpers/inheritsLoose.js", "../../../../../node_modules/@babel/runtime/helpers/getPrototypeOf.js", "../../../../../node_modules/@babel/runtime/helpers/isNativeFunction.js", "../../../../../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js", "../../../../../node_modules/@babel/runtime/helpers/construct.js", "../../../../../node_modules/@babel/runtime/helpers/wrapNativeSuper.js", "../../../../../node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js", "../../../../../node_modules/polished/dist/polished.cjs.js", "../../../../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js", "../../../../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "../../../../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "../../../../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js", "../../../../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "../../../../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "../../../../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js", "../../../../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js", "../../../../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "../../../../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "../../../../../node_modules/@devtools-ds/tree/dist/esm/Tree.css.js", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.css.js", "../../../../../addons/interactions/manager.js", "../../../../../addons/interactions/dist/esm/manager.js", "global-externals:@storybook/addons", "../../../../../addons/interactions/dist/esm/constants.js", "../../../../../addons/interactions/dist/esm/Panel.js", "global-externals:react", "global-externals:@storybook/api", "global-externals:@storybook/core-events", "../../../../../lib/instrumenter/dist/esm/index.js", "../../../../../lib/instrumenter/dist/esm/instrumenter.js", "../../../../../node_modules/core-js/modules/es.regexp.flags.js", "global-externals:@storybook/client-logger", "../../../../../lib/instrumenter/dist/esm/types.js", "../../../../../addons/interactions/dist/esm/components/InteractionsPanel.js", "global-externals:@storybook/components", "global-externals:@storybook/theming", "../../../../../addons/interactions/dist/esm/components/Subnav.js", "../../../../../addons/interactions/dist/esm/components/StatusBadge.js", "../../../../../addons/interactions/dist/esm/components/Interaction.js", "../../../../../addons/interactions/dist/esm/components/MatcherResult.js", "../../../../../addons/interactions/dist/esm/components/MethodCall.js", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/index.ts", "../../../../../node_modules/clsx/dist/clsx.m.js", "../../../../../node_modules/@devtools-ds/object-parser/dist/esm/index.ts", "../../../../../node_modules/@devtools-ds/themes/dist/esm/utils.tsx", "../../../../../node_modules/@devtools-ds/tree/dist/esm/TreeContext.ts", "../../../../../node_modules/@devtools-ds/tree/dist/esm/index.tsx", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.tsx", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectLabel.tsx", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.tsx", "../../../../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.tsx", "../../../../../addons/interactions/dist/esm/components/StatusIcon.js", "../../../../../addons/interactions/dist/esm/theme.js", "../../../../../addons/interactions/dist/esm/components/TabStatus.js", "global-externals:react-dom"],
  "sourcesContent": ["var win;\n\nif (typeof window !== \"undefined\") {\n    win = window;\n} else if (typeof global !== \"undefined\") {\n    win = global;\n} else if (typeof self !== \"undefined\"){\n    win = self;\n} else {\n    win = {};\n}\n\nmodule.exports = win;\n", "var check = function (it) {\n  return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n  // eslint-disable-next-line es-x/no-global-this -- safe\n  check(typeof globalThis == 'object' && globalThis) ||\n  check(typeof window == 'object' && window) ||\n  // eslint-disable-next-line no-restricted-globals -- safe\n  check(typeof self == 'object' && self) ||\n  check(typeof global == 'object' && global) ||\n  // eslint-disable-next-line no-new-func -- fallback\n  (function () { return this; })() || Function('return this')();\n", "module.exports = function (exec) {\n  try {\n    return !!exec();\n  } catch (error) {\n    return true;\n  }\n};\n", "var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n", "// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n  return typeof argument == 'function';\n};\n", "var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n  // eslint-disable-next-line es-x/no-function-prototype-bind -- safe\n  var test = (function () { /* empty */ }).bind();\n  // eslint-disable-next-line no-prototype-builtins -- safe\n  return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n", "var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n  return fn && uncurryThis(fn);\n} : function (fn) {\n  return fn && function () {\n    return call.apply(fn, arguments);\n  };\n};\n", "var $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n  if (it == undefined) throw $TypeError(\"Can't call method on \" + it);\n  return it;\n};\n", "var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n  return $Object(requireObjectCoercible(argument));\n};\n", "var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es-x/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n  return hasOwnProperty(toObject(it), key);\n};\n", "var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n  EXISTS: EXISTS,\n  PROPER: PROPER,\n  CONFIGURABLE: CONFIGURABLE\n};\n", "var global = require('../internals/global');\n\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n  try {\n    defineProperty(global, key, { value: value, configurable: true, writable: true });\n  } catch (error) {\n    global[key] = value;\n  } return value;\n};\n", "var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n", "var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n  store.inspectSource = function (it) {\n    return functionToString(it);\n  };\n}\n\nmodule.exports = store.inspectSource;\n", "var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n", "var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n  return typeof it == 'object' ? it !== null : isCallable(it);\n};\n", "var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n  return EXISTS ? document.createElement(it) : {};\n};\n", "var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n  return Object.defineProperty(createElement('div'), 'a', {\n    get: function () { return 7; }\n  }).a != 7;\n});\n", "var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n  return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n    value: 42,\n    writable: false\n  }).prototype != 42;\n});\n", "var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n  if (isObject(argument)) return argument;\n  throw $TypeError($String(argument) + ' is not an object');\n};\n", "var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n  return call.apply(call, arguments);\n};\n", "var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n  return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n  return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n", "var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n", "var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n", "var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n  match = v8.split('.');\n  // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n  // but their correct versions are not interesting for us\n  version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n  match = userAgent.match(/Edge\\/(\\d+)/);\n  if (!match || match[1] >= 74) {\n    match = userAgent.match(/Chrome\\/(\\d+)/);\n    if (match) version = +match[1];\n  }\n}\n\nmodule.exports = version;\n", "/* eslint-disable es-x/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n  var symbol = Symbol();\n  // Chrome 38 Symbol has incorrect toString conversion\n  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n  return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n    // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n    !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n", "/* eslint-disable es-x/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n  && !Symbol.sham\n  && typeof Symbol.iterator == 'symbol';\n", "var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n  return typeof it == 'symbol';\n} : function (it) {\n  var $Symbol = getBuiltIn('Symbol');\n  return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n", "var $String = String;\n\nmodule.exports = function (argument) {\n  try {\n    return $String(argument);\n  } catch (error) {\n    return 'Object';\n  }\n};\n", "var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n  if (isCallable(argument)) return argument;\n  throw $TypeError(tryToString(argument) + ' is not a function');\n};\n", "var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n  var func = V[P];\n  return func == null ? undefined : aCallable(func);\n};\n", "var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n  var fn, val;\n  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  throw $TypeError(\"Can't convert object to primitive value\");\n};\n", "module.exports = false;\n", "var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n  return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n  version: '3.23.5',\n  mode: IS_PURE ? 'pure' : 'global',\n  copyright: '\u00A9 2014-2022 Denis Pushkarev (zloirock.ru)',\n  license: 'https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE',\n  source: 'https://github.com/zloirock/core-js'\n});\n", "var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n", "var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n  if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n    var description = 'Symbol.' + name;\n    if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n      WellKnownSymbolsStore[name] = Symbol[name];\n    } else if (USE_SYMBOL_AS_UID && symbolFor) {\n      WellKnownSymbolsStore[name] = symbolFor(description);\n    } else {\n      WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n    }\n  } return WellKnownSymbolsStore[name];\n};\n", "var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n  if (!isObject(input) || isSymbol(input)) return input;\n  var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n  var result;\n  if (exoticToPrim) {\n    if (pref === undefined) pref = 'default';\n    result = call(exoticToPrim, input, pref);\n    if (!isObject(result) || isSymbol(result)) return result;\n    throw $TypeError(\"Can't convert object to primitive value\");\n  }\n  if (pref === undefined) pref = 'number';\n  return ordinaryToPrimitive(input, pref);\n};\n", "var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n  var key = toPrimitive(argument, 'string');\n  return isSymbol(key) ? key : key + '';\n};\n", "var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n  anObject(O);\n  P = toPropertyKey(P);\n  anObject(Attributes);\n  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n    var current = $getOwnPropertyDescriptor(O, P);\n    if (current && current[WRITABLE]) {\n      O[P] = Attributes.value;\n      Attributes = {\n        configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n        enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n        writable: false\n      };\n    }\n  } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n  anObject(O);\n  P = toPropertyKey(P);\n  anObject(Attributes);\n  if (IE8_DOM_DEFINE) try {\n    return $defineProperty(O, P, Attributes);\n  } catch (error) { /* empty */ }\n  if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n  if ('value' in Attributes) O[P] = Attributes.value;\n  return O;\n};\n", "module.exports = function (bitmap, value) {\n  return {\n    enumerable: !(bitmap & 1),\n    configurable: !(bitmap & 2),\n    writable: !(bitmap & 4),\n    value: value\n  };\n};\n", "var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n  return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n  object[key] = value;\n  return object;\n};\n", "var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n  return keys[key] || (keys[key] = uid(key));\n};\n", "module.exports = {};\n", "var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n  return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n  return function (it) {\n    var state;\n    if (!isObject(it) || (state = get(it)).type !== TYPE) {\n      throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n    } return state;\n  };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n  var store = shared.state || (shared.state = new WeakMap());\n  var wmget = uncurryThis(store.get);\n  var wmhas = uncurryThis(store.has);\n  var wmset = uncurryThis(store.set);\n  set = function (it, metadata) {\n    if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n    metadata.facade = it;\n    wmset(store, it, metadata);\n    return metadata;\n  };\n  get = function (it) {\n    return wmget(store, it) || {};\n  };\n  has = function (it) {\n    return wmhas(store, it);\n  };\n} else {\n  var STATE = sharedKey('state');\n  hiddenKeys[STATE] = true;\n  set = function (it, metadata) {\n    if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n    metadata.facade = it;\n    createNonEnumerableProperty(it, STATE, metadata);\n    return metadata;\n  };\n  get = function (it) {\n    return hasOwn(it, STATE) ? it[STATE] : {};\n  };\n  has = function (it) {\n    return hasOwn(it, STATE);\n  };\n}\n\nmodule.exports = {\n  set: set,\n  get: get,\n  has: has,\n  enforce: enforce,\n  getterFor: getterFor\n};\n", "var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n  if (String(name).slice(0, 7) === 'Symbol(') {\n    name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n  }\n  if (options && options.getter) name = 'get ' + name;\n  if (options && options.setter) name = 'set ' + name;\n  if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n    if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n    else value.name = name;\n  }\n  if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n    defineProperty(value, 'length', { value: options.arity });\n  }\n  try {\n    if (options && hasOwn(options, 'constructor') && options.constructor) {\n      if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n    // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n    } else if (value.prototype) value.prototype = undefined;\n  } catch (error) { /* empty */ }\n  var state = enforceInternalState(value);\n  if (!hasOwn(state, 'source')) {\n    state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n  } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n  return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n", "var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n  return defineProperty.f(target, name, descriptor);\n};\n", "'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n  var that = anObject(this);\n  var result = '';\n  if (that.hasIndices) result += 'd';\n  if (that.global) result += 'g';\n  if (that.ignoreCase) result += 'i';\n  if (that.multiline) result += 'm';\n  if (that.dotAll) result += 's';\n  if (that.unicode) result += 'u';\n  if (that.unicodeSets) result += 'v';\n  if (that.sticky) result += 'y';\n  return result;\n};\n", "function _extends() {\n  module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _assertThisInitialized(self) {\n  if (self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return self;\n}\n\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _setPrototypeOf(o, p) {\n  module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _getPrototypeOf(o) {\n  module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n    return o.__proto__ || Object.getPrototypeOf(o);\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _isNativeFunction(fn) {\n  return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _isNativeReflectConstruct() {\n  if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n  if (Reflect.construct.sham) return false;\n  if (typeof Proxy === \"function\") return true;\n\n  try {\n    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n    return true;\n  } catch (e) {\n    return false;\n  }\n}\n\nmodule.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\n\nfunction _construct(Parent, args, Class) {\n  if (isNativeReflectConstruct()) {\n    module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  } else {\n    module.exports = _construct = function _construct(Parent, args, Class) {\n      var a = [null];\n      a.push.apply(a, args);\n      var Constructor = Function.bind.apply(Parent, a);\n      var instance = new Constructor();\n      if (Class) setPrototypeOf(instance, Class.prototype);\n      return instance;\n    }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  }\n\n  return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var getPrototypeOf = require(\"./getPrototypeOf.js\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nvar isNativeFunction = require(\"./isNativeFunction.js\");\n\nvar construct = require(\"./construct.js\");\n\nfunction _wrapNativeSuper(Class) {\n  var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n  module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n    if (Class === null || !isNativeFunction(Class)) return Class;\n\n    if (typeof Class !== \"function\") {\n      throw new TypeError(\"Super expression must either be null or a function\");\n    }\n\n    if (typeof _cache !== \"undefined\") {\n      if (_cache.has(Class)) return _cache.get(Class);\n\n      _cache.set(Class, Wrapper);\n    }\n\n    function Wrapper() {\n      return construct(Class, arguments, getPrototypeOf(this).constructor);\n    }\n\n    Wrapper.prototype = Object.create(Class.prototype, {\n      constructor: {\n        value: Wrapper,\n        enumerable: false,\n        writable: true,\n        configurable: true\n      }\n    });\n    return setPrototypeOf(Wrapper, Class);\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _taggedTemplateLiteralLoose(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n\n  strings.raw = raw;\n  return strings;\n}\n\nmodule.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar _extends = require('@babel/runtime/helpers/extends');\nvar _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitialized');\nvar _inheritsLoose = require('@babel/runtime/helpers/inheritsLoose');\nvar _wrapNativeSuper = require('@babel/runtime/helpers/wrapNativeSuper');\nvar _taggedTemplateLiteralLoose = require('@babel/runtime/helpers/taggedTemplateLiteralLoose');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);\nvar _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized);\nvar _inheritsLoose__default = /*#__PURE__*/_interopDefaultLegacy(_inheritsLoose);\nvar _wrapNativeSuper__default = /*#__PURE__*/_interopDefaultLegacy(_wrapNativeSuper);\nvar _taggedTemplateLiteralLoose__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteralLoose);\n\nfunction last() {\n  var _ref;\n\n  return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref];\n}\n\nfunction negation(a) {\n  return -a;\n}\n\nfunction addition(a, b) {\n  return a + b;\n}\n\nfunction subtraction(a, b) {\n  return a - b;\n}\n\nfunction multiplication(a, b) {\n  return a * b;\n}\n\nfunction division(a, b) {\n  return a / b;\n}\n\nfunction max() {\n  return Math.max.apply(Math, arguments);\n}\n\nfunction min() {\n  return Math.min.apply(Math, arguments);\n}\n\nfunction comma() {\n  return Array.of.apply(Array, arguments);\n}\n\nvar defaultSymbols = {\n  symbols: {\n    '*': {\n      infix: {\n        symbol: '*',\n        f: multiplication,\n        notation: 'infix',\n        precedence: 4,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: '*',\n      regSymbol: '\\\\*'\n    },\n    '/': {\n      infix: {\n        symbol: '/',\n        f: division,\n        notation: 'infix',\n        precedence: 4,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: '/',\n      regSymbol: '/'\n    },\n    '+': {\n      infix: {\n        symbol: '+',\n        f: addition,\n        notation: 'infix',\n        precedence: 2,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      prefix: {\n        symbol: '+',\n        f: last,\n        notation: 'prefix',\n        precedence: 3,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '+',\n      regSymbol: '\\\\+'\n    },\n    '-': {\n      infix: {\n        symbol: '-',\n        f: subtraction,\n        notation: 'infix',\n        precedence: 2,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      prefix: {\n        symbol: '-',\n        f: negation,\n        notation: 'prefix',\n        precedence: 3,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '-',\n      regSymbol: '-'\n    },\n    ',': {\n      infix: {\n        symbol: ',',\n        f: comma,\n        notation: 'infix',\n        precedence: 1,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: ',',\n      regSymbol: ','\n    },\n    '(': {\n      prefix: {\n        symbol: '(',\n        f: last,\n        notation: 'prefix',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '(',\n      regSymbol: '\\\\('\n    },\n    ')': {\n      postfix: {\n        symbol: ')',\n        f: undefined,\n        notation: 'postfix',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: ')',\n      regSymbol: '\\\\)'\n    },\n    min: {\n      func: {\n        symbol: 'min',\n        f: min,\n        notation: 'func',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: 'min',\n      regSymbol: 'min\\\\b'\n    },\n    max: {\n      func: {\n        symbol: 'max',\n        f: max,\n        notation: 'func',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: 'max',\n      regSymbol: 'max\\\\b'\n    }\n  }\n};\nvar defaultSymbolMap = defaultSymbols;\n\n// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js\n\n/**\n * Parse errors.md and turn it into a simple hash of code: message\n * @private\n */\nvar ERRORS = {\n  \"1\": \"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\\n\\n\",\n  \"2\": \"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\\n\\n\",\n  \"3\": \"Passed an incorrect argument to a color function, please pass a string representation of a color.\\n\\n\",\n  \"4\": \"Couldn't generate valid rgb string from %s, it returned %s.\\n\\n\",\n  \"5\": \"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\\n\\n\",\n  \"6\": \"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\\n\\n\",\n  \"7\": \"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\\n\\n\",\n  \"8\": \"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\\n\\n\",\n  \"9\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n  \"10\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n  \"11\": \"Invalid value passed as base to modularScale, expected number or em string but got \\\"%s\\\"\\n\\n\",\n  \"12\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n  \"13\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n  \"14\": \"Passed invalid pixel value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"15\": \"Passed invalid base value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"16\": \"You must provide a template to this method.\\n\\n\",\n  \"17\": \"You passed an unsupported selector state to this method.\\n\\n\",\n  \"18\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n  \"19\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n  \"20\": \"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n  \"21\": \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n  \"22\": \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n  \"23\": \"fontFace expects a name of a font-family.\\n\\n\",\n  \"24\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n  \"25\": \"fontFace expects localFonts to be an array.\\n\\n\",\n  \"26\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n  \"27\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"28\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n  \"29\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n  \"30\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n  \"31\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\\n\\n\",\n  \"32\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\\n\\n\",\n  \"33\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\\n\\n\",\n  \"34\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n  \"35\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n  \"36\": \"Property must be a string value.\\n\\n\",\n  \"37\": \"Syntax Error at %s.\\n\\n\",\n  \"38\": \"Formula contains a function that needs parentheses at %s.\\n\\n\",\n  \"39\": \"Formula is missing closing parenthesis at %s.\\n\\n\",\n  \"40\": \"Formula has too many closing parentheses at %s.\\n\\n\",\n  \"41\": \"All values in a formula must have the same unit or be unitless.\\n\\n\",\n  \"42\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n  \"43\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n  \"44\": \"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\\n\\n\",\n  \"45\": \"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\\n\\n\",\n  \"46\": \"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\\n\\n\",\n  \"47\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n  \"48\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n  \"49\": \"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n  \"50\": \"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\\n\\n\",\n  \"51\": \"Expects the first argument object to have the properties prop, fromSize, and toSize.\\n\\n\",\n  \"52\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n  \"53\": \"fontFace expects localFonts to be an array.\\n\\n\",\n  \"54\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n  \"55\": \"fontFace expects a name of a font-family.\\n\\n\",\n  \"56\": \"linearGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"57\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"58\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n  \"59\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n  \"60\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n  \"61\": \"Property must be a string value.\\n\\n\",\n  \"62\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n  \"63\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n  \"64\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n  \"65\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\\n\\n\",\n  \"66\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n  \"67\": \"You must provide a template to this method.\\n\\n\",\n  \"68\": \"You passed an unsupported selector state to this method.\\n\\n\",\n  \"69\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got %s instead.\\n\\n\",\n  \"70\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got %s instead.\\n\\n\",\n  \"71\": \"Passed invalid pixel value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"72\": \"Passed invalid base value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"73\": \"Please provide a valid CSS variable.\\n\\n\",\n  \"74\": \"CSS variable not found and no default was provided.\\n\\n\",\n  \"75\": \"important requires a valid style object, got a %s instead.\\n\\n\",\n  \"76\": \"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\\n\\n\",\n  \"77\": \"remToPx expects a value in \\\"rem\\\" but you provided it in \\\"%s\\\".\\n\\n\",\n  \"78\": \"base must be set in \\\"px\\\" or \\\"%\\\" but you set it in \\\"%s\\\".\\n\"\n};\n/**\n * super basic version of sprintf\n * @private\n */\n\nfunction format() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  var a = args[0];\n  var b = [];\n  var c;\n\n  for (c = 1; c < args.length; c += 1) {\n    b.push(args[c]);\n  }\n\n  b.forEach(function (d) {\n    a = a.replace(/%[a-z]/, d);\n  });\n  return a;\n}\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n * @private\n */\n\n\nvar PolishedError = /*#__PURE__*/function (_Error) {\n  _inheritsLoose__default[\"default\"](PolishedError, _Error);\n\n  function PolishedError(code) {\n    var _this;\n\n    if (process.env.NODE_ENV === 'production') {\n      _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#\" + code + \" for more information.\") || this;\n    } else {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n    }\n\n    return _assertThisInitialized__default[\"default\"](_this);\n  }\n\n  return PolishedError;\n}( /*#__PURE__*/_wrapNativeSuper__default[\"default\"](Error));\n\nvar unitRegExp = /((?!\\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\\D|$)|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults.\n\nfunction mergeSymbolMaps(additionalSymbols) {\n  var symbolMap = {};\n  symbolMap.symbols = additionalSymbols ? _extends__default[\"default\"]({}, defaultSymbolMap.symbols, additionalSymbols.symbols) : _extends__default[\"default\"]({}, defaultSymbolMap.symbols);\n  return symbolMap;\n}\n\nfunction exec(operators, values) {\n  var _ref;\n\n  var op = operators.pop();\n  values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount))));\n  return op.precedence;\n}\n\nfunction calculate(expression, additionalSymbols) {\n  var symbolMap = mergeSymbolMaps(additionalSymbols);\n  var match;\n  var operators = [symbolMap.symbols['('].prefix];\n  var values = [];\n  var pattern = new RegExp( // Pattern for numbers\n  \"\\\\d+(?:\\\\.\\\\d+)?|\" + // ...and patterns for individual operators/function names\n  Object.keys(symbolMap.symbols).map(function (key) {\n    return symbolMap.symbols[key];\n  }) // longer symbols should be listed first\n  // $FlowFixMe\n  .sort(function (a, b) {\n    return b.symbol.length - a.symbol.length;\n  }) // $FlowFixMe\n  .map(function (val) {\n    return val.regSymbol;\n  }).join('|') + \"|(\\\\S)\", 'g');\n  pattern.lastIndex = 0; // Reset regular expression object\n\n  var afterValue = false;\n\n  do {\n    match = pattern.exec(expression);\n\n    var _ref2 = match || [')', undefined],\n        token = _ref2[0],\n        bad = _ref2[1];\n\n    var notNumber = symbolMap.symbols[token];\n    var notNewValue = notNumber && !notNumber.prefix && !notNumber.func;\n    var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; // Check for syntax errors:\n\n    if (bad || (afterValue ? notAfterValue : notNewValue)) {\n      throw new PolishedError(37, match ? match.index : expression.length, expression);\n    }\n\n    if (afterValue) {\n      // We either have an infix or postfix operator (they should be mutually exclusive)\n      var curr = notNumber.postfix || notNumber.infix;\n\n      do {\n        var prev = operators[operators.length - 1];\n        if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; // Apply previous operator, since it has precedence over current one\n      } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function\n\n\n      afterValue = curr.notation === 'postfix';\n\n      if (curr.symbol !== ')') {\n        operators.push(curr); // Postfix always has precedence over any operator that follows after it\n\n        if (afterValue) exec(operators, values);\n      }\n    } else if (notNumber) {\n      // prefix operator or function\n      operators.push(notNumber.prefix || notNumber.func);\n\n      if (notNumber.func) {\n        // Require an opening parenthesis\n        match = pattern.exec(expression);\n\n        if (!match || match[0] !== '(') {\n          throw new PolishedError(38, match ? match.index : expression.length, expression);\n        }\n      }\n    } else {\n      // number\n      values.push(+token);\n      afterValue = true;\n    }\n  } while (match && operators.length);\n\n  if (operators.length) {\n    throw new PolishedError(39, match ? match.index : expression.length, expression);\n  } else if (match) {\n    throw new PolishedError(40, match ? match.index : expression.length, expression);\n  } else {\n    return values.pop();\n  }\n}\n\nfunction reverseString(str) {\n  return str.split('').reverse().join('');\n}\n/**\n * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation.\n *\n *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc).\n *\n * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values.\n * @example\n * // Styles as object usage\n * const styles = {\n *   fontSize: math('12rem + 8rem'),\n *   fontSize: math('(12px + 2px) * 3'),\n *   fontSize: math('3px^2 + sqrt(4)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   fontSize: ${math('12rem + 8rem')};\n *   fontSize: ${math('(12px + 2px) * 3')};\n *   fontSize: ${math('3px^2 + sqrt(4)')};\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   fontSize: '20rem',\n *   fontSize: '42px',\n *   fontSize: '11px',\n * }\n */\n\n\nfunction math(formula, additionalSymbols) {\n  var reversedFormula = reverseString(formula);\n  var formulaMatch = reversedFormula.match(unitRegExp); // Check that all units are the same\n\n  if (formulaMatch && !formulaMatch.every(function (unit) {\n    return unit === formulaMatch[0];\n  })) {\n    throw new PolishedError(41);\n  }\n\n  var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, ''));\n  return \"\" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : '');\n}\n\nvar cssVariableRegex = /--[\\S]*/g;\n/**\n * Fetches the value of a passed CSS Variable in the :root scope, or otherwise returns a defaultValue if provided.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'background': cssVar('--background-color'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${cssVar('--background-color')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'background': 'red'\n * }\n */\n\nfunction cssVar(cssVariable, defaultValue) {\n  if (!cssVariable || !cssVariable.match(cssVariableRegex)) {\n    throw new PolishedError(73);\n  }\n\n  var variableValue;\n  /* eslint-disable */\n\n  /* istanbul ignore next */\n\n  if (typeof document !== 'undefined' && document.documentElement !== null) {\n    variableValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable);\n  }\n  /* eslint-enable */\n\n\n  if (variableValue) {\n    return variableValue.trim();\n  } else if (defaultValue) {\n    return defaultValue;\n  }\n\n  throw new PolishedError(74);\n}\n\n// @private\nfunction capitalizeString(string) {\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar positionMap$1 = ['Top', 'Right', 'Bottom', 'Left'];\n\nfunction generateProperty(property, position) {\n  if (!property) return position.toLowerCase();\n  var splitProperty = property.split('-');\n\n  if (splitProperty.length > 1) {\n    splitProperty.splice(1, 0, position);\n    return splitProperty.reduce(function (acc, val) {\n      return \"\" + acc + capitalizeString(val);\n    });\n  }\n\n  var joinedProperty = property.replace(/([a-z])([A-Z])/g, \"$1\" + position + \"$2\");\n  return property === joinedProperty ? \"\" + property + position : joinedProperty;\n}\n\nfunction generateStyles(property, valuesWithDefaults) {\n  var styles = {};\n\n  for (var i = 0; i < valuesWithDefaults.length; i += 1) {\n    if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) {\n      styles[generateProperty(property, positionMap$1[i])] = valuesWithDefaults[i];\n    }\n  }\n\n  return styles;\n}\n/**\n * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...directionalProperty('padding', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${directionalProperty('padding', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'paddingTop': '12px',\n *   'paddingRight': '24px',\n *   'paddingBottom': '36px',\n *   'paddingLeft': '48px'\n * }\n */\n\n\nfunction directionalProperty(property) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  //  prettier-ignore\n  var firstValue = values[0],\n      _values$ = values[1],\n      secondValue = _values$ === void 0 ? firstValue : _values$,\n      _values$2 = values[2],\n      thirdValue = _values$2 === void 0 ? firstValue : _values$2,\n      _values$3 = values[3],\n      fourthValue = _values$3 === void 0 ? secondValue : _values$3;\n  var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue];\n  return generateStyles(property, valuesWithDefaults);\n}\n\n/**\n * Check if a string ends with something\n * @private\n */\nfunction endsWith(string, suffix) {\n  return string.substr(-suffix.length) === suffix;\n}\n\nvar cssRegex$1 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value minus its unit of measure.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   '--dimension': stripUnit('100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   --dimension: ${stripUnit('100px')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   '--dimension': 100\n * }\n */\n\nfunction stripUnit(value) {\n  if (typeof value !== 'string') return value;\n  var matchedValue = value.match(cssRegex$1);\n  return matchedValue ? parseFloat(value) : value;\n}\n\n/**\n * Factory function that creates pixel-to-x converters\n * @private\n */\n\nvar pxtoFactory = function pxtoFactory(to) {\n  return function (pxval, base) {\n    if (base === void 0) {\n      base = '16px';\n    }\n\n    var newPxval = pxval;\n    var newBase = base;\n\n    if (typeof pxval === 'string') {\n      if (!endsWith(pxval, 'px')) {\n        throw new PolishedError(69, to, pxval);\n      }\n\n      newPxval = stripUnit(pxval);\n    }\n\n    if (typeof base === 'string') {\n      if (!endsWith(base, 'px')) {\n        throw new PolishedError(70, to, base);\n      }\n\n      newBase = stripUnit(base);\n    }\n\n    if (typeof newPxval === 'string') {\n      throw new PolishedError(71, pxval, to);\n    }\n\n    if (typeof newBase === 'string') {\n      throw new PolishedError(72, base, to);\n    }\n\n    return \"\" + newPxval / newBase + to;\n  };\n};\n\nvar pixelsto = pxtoFactory;\n\n/**\n * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n *   'height': em('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   height: ${em('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'height': '1em'\n * }\n */\n\nvar em = /*#__PURE__*/pixelsto('em');\nvar em$1 = em;\n\nvar cssRegex = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value and its unit as elements of an array.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   '--dimension': getValueAndUnit('100px')[0],\n *   '--unit': getValueAndUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   --dimension: ${getValueAndUnit('100px')[0]};\n *   --unit: ${getValueAndUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   '--dimension': 100,\n *   '--unit': 'px',\n * }\n */\n\nfunction getValueAndUnit(value) {\n  if (typeof value !== 'string') return [value, ''];\n  var matchedValue = value.match(cssRegex);\n  if (matchedValue) return [parseFloat(value), matchedValue[2]];\n  return [value, undefined];\n}\n\n/**\n * Helper for targeting rules in a style block generated by polished modules that need !important-level specificity. Can optionally specify a rule (or rules) to target specific rules.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...important(cover())\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${important(cover())}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   'position': 'absolute !important',\n *   'top': '0 !important',\n *   'right: '0 !important',\n *   'bottom': '0 !important',\n *   'left: '0 !important'\n * }\n */\n\nfunction important(styleBlock, rules) {\n  if (typeof styleBlock !== 'object' || styleBlock === null) {\n    throw new PolishedError(75, typeof styleBlock);\n  }\n\n  var newStyleBlock = {};\n  Object.keys(styleBlock).forEach(function (key) {\n    if (typeof styleBlock[key] === 'object' && styleBlock[key] !== null) {\n      newStyleBlock[key] = important(styleBlock[key], rules);\n    } else if (!rules || rules && (rules === key || rules.indexOf(key) >= 0)) {\n      newStyleBlock[key] = styleBlock[key] + \" !important\";\n    } else {\n      newStyleBlock[key] = styleBlock[key];\n    }\n  });\n  return newStyleBlock;\n}\n\nvar ratioNames = {\n  minorSecond: 1.067,\n  majorSecond: 1.125,\n  minorThird: 1.2,\n  majorThird: 1.25,\n  perfectFourth: 1.333,\n  augFourth: 1.414,\n  perfectFifth: 1.5,\n  minorSixth: 1.6,\n  goldenSection: 1.618,\n  majorSixth: 1.667,\n  minorSeventh: 1.778,\n  majorSeventh: 1.875,\n  octave: 2,\n  majorTenth: 2.5,\n  majorEleventh: 2.667,\n  majorTwelfth: 3,\n  doubleOctave: 4\n};\n\nfunction getRatio(ratioName) {\n  return ratioNames[ratioName];\n}\n/**\n * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables.\n * @example\n * // Styles as object usage\n * const styles = {\n *    // Increment two steps up the default scale\n *   'fontSize': modularScale(2)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *    // Increment two steps up the default scale\n *   fontSize: ${modularScale(2)}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'fontSize': '1.77689em'\n * }\n */\n\n\nfunction modularScale(steps, base, ratio) {\n  if (base === void 0) {\n    base = '1em';\n  }\n\n  if (ratio === void 0) {\n    ratio = 1.333;\n  }\n\n  if (typeof steps !== 'number') {\n    throw new PolishedError(42);\n  }\n\n  if (typeof ratio === 'string' && !ratioNames[ratio]) {\n    throw new PolishedError(43);\n  }\n\n  var _ref = typeof base === 'string' ? getValueAndUnit(base) : [base, ''],\n      realBase = _ref[0],\n      unit = _ref[1];\n\n  var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio;\n\n  if (typeof realBase === 'string') {\n    throw new PolishedError(44, base);\n  }\n\n  return \"\" + realBase * Math.pow(realRatio, steps) + (unit || '');\n}\n\n/**\n * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n *   'height': rem('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   height: ${rem('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'height': '1rem'\n * }\n */\n\nvar rem = /*#__PURE__*/pixelsto('rem');\nvar rem$1 = rem;\n\nvar defaultFontSize = 16;\n\nfunction convertBase(base) {\n  var deconstructedValue = getValueAndUnit(base);\n\n  if (deconstructedValue[1] === 'px') {\n    return parseFloat(base);\n  }\n\n  if (deconstructedValue[1] === '%') {\n    return parseFloat(base) / 100 * defaultFontSize;\n  }\n\n  throw new PolishedError(78, deconstructedValue[1]);\n}\n\nfunction getBaseFromDoc() {\n  /* eslint-disable */\n\n  /* istanbul ignore next */\n  if (typeof document !== 'undefined' && document.documentElement !== null) {\n    var rootFontSize = getComputedStyle(document.documentElement).fontSize;\n    return rootFontSize ? convertBase(rootFontSize) : defaultFontSize;\n  }\n  /* eslint-enable */\n\n  /* istanbul ignore next */\n\n\n  return defaultFontSize;\n}\n/**\n * Convert rem values to px. By default, the base value is pulled from the font-size property on the root element (if it is set in % or px). It defaults to 16px if not found on the root. You can also override the base value by providing your own base in % or px.\n * @example\n * // Styles as object usage\n * const styles = {\n *   'height': remToPx('1.6rem')\n *   'height': remToPx('1.6rem', '10px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   height: ${remToPx('1.6rem')}\n *   height: ${remToPx('1.6rem', '10px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'height': '25.6px',\n *   'height': '16px',\n * }\n */\n\n\nfunction remToPx(value, base) {\n  var deconstructedValue = getValueAndUnit(value);\n\n  if (deconstructedValue[1] !== 'rem' && deconstructedValue[1] !== '') {\n    throw new PolishedError(77, deconstructedValue[1]);\n  }\n\n  var newBase = base ? convertBase(base) : getBaseFromDoc();\n  return deconstructedValue[0] * newBase + \"px\";\n}\n\nvar functionsMap$3 = {\n  back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n  circ: 'cubic-bezier(0.600,  0.040, 0.980, 0.335)',\n  cubic: 'cubic-bezier(0.550,  0.055, 0.675, 0.190)',\n  expo: 'cubic-bezier(0.950,  0.050, 0.795, 0.035)',\n  quad: 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n  quart: 'cubic-bezier(0.895,  0.030, 0.685, 0.220)',\n  quint: 'cubic-bezier(0.755,  0.050, 0.855, 0.060)',\n  sine: 'cubic-bezier(0.470,  0.000, 0.745, 0.715)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'transitionTimingFunction': easeIn('quad')\n * }\n *\n * // styled-components usage\n *  const div = styled.div`\n *   transitionTimingFunction: ${easeIn('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'transitionTimingFunction': 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n * }\n */\n\nfunction easeIn(functionName) {\n  return functionsMap$3[functionName.toLowerCase().trim()];\n}\n\nvar functionsMap$2 = {\n  back: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n  circ: 'cubic-bezier(0.785,  0.135, 0.150, 0.860)',\n  cubic: 'cubic-bezier(0.645,  0.045, 0.355, 1.000)',\n  expo: 'cubic-bezier(1.000,  0.000, 0.000, 1.000)',\n  quad: 'cubic-bezier(0.455,  0.030, 0.515, 0.955)',\n  quart: 'cubic-bezier(0.770,  0.000, 0.175, 1.000)',\n  quint: 'cubic-bezier(0.860,  0.000, 0.070, 1.000)',\n  sine: 'cubic-bezier(0.445,  0.050, 0.550, 0.950)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'transitionTimingFunction': easeInOut('quad')\n * }\n *\n * // styled-components usage\n *  const div = styled.div`\n *   transitionTimingFunction: ${easeInOut('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'transitionTimingFunction': 'cubic-bezier(0.455,  0.030, 0.515, 0.955)',\n * }\n */\n\nfunction easeInOut(functionName) {\n  return functionsMap$2[functionName.toLowerCase().trim()];\n}\n\nvar functionsMap$1 = {\n  back: 'cubic-bezier(0.175,  0.885, 0.320, 1.275)',\n  cubic: 'cubic-bezier(0.215,  0.610, 0.355, 1.000)',\n  circ: 'cubic-bezier(0.075,  0.820, 0.165, 1.000)',\n  expo: 'cubic-bezier(0.190,  1.000, 0.220, 1.000)',\n  quad: 'cubic-bezier(0.250,  0.460, 0.450, 0.940)',\n  quart: 'cubic-bezier(0.165,  0.840, 0.440, 1.000)',\n  quint: 'cubic-bezier(0.230,  1.000, 0.320, 1.000)',\n  sine: 'cubic-bezier(0.390,  0.575, 0.565, 1.000)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'transitionTimingFunction': easeOut('quad')\n * }\n *\n * // styled-components usage\n *  const div = styled.div`\n *   transitionTimingFunction: ${easeOut('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'transitionTimingFunction': 'cubic-bezier(0.250,  0.460, 0.450, 0.940)',\n * }\n */\n\nfunction easeOut(functionName) {\n  return functionsMap$1[functionName.toLowerCase().trim()];\n}\n\n/**\n * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px').\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   fontSize: between('20px', '100px', '400px', '1000px'),\n *   fontSize: between('20px', '100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   fontSize: ${between('20px', '100px', '400px', '1000px')};\n *   fontSize: ${between('20px', '100px')}\n * `\n *\n * // CSS as JS Output\n *\n * h1: {\n *   'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)',\n *   'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)'\n * }\n */\n\nfunction between(fromSize, toSize, minScreen, maxScreen) {\n  if (minScreen === void 0) {\n    minScreen = '320px';\n  }\n\n  if (maxScreen === void 0) {\n    maxScreen = '1200px';\n  }\n\n  var _getValueAndUnit = getValueAndUnit(fromSize),\n      unitlessFromSize = _getValueAndUnit[0],\n      fromSizeUnit = _getValueAndUnit[1];\n\n  var _getValueAndUnit2 = getValueAndUnit(toSize),\n      unitlessToSize = _getValueAndUnit2[0],\n      toSizeUnit = _getValueAndUnit2[1];\n\n  var _getValueAndUnit3 = getValueAndUnit(minScreen),\n      unitlessMinScreen = _getValueAndUnit3[0],\n      minScreenUnit = _getValueAndUnit3[1];\n\n  var _getValueAndUnit4 = getValueAndUnit(maxScreen),\n      unitlessMaxScreen = _getValueAndUnit4[0],\n      maxScreenUnit = _getValueAndUnit4[1];\n\n  if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) {\n    throw new PolishedError(47);\n  }\n\n  if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {\n    throw new PolishedError(48);\n  }\n\n  if (fromSizeUnit !== minScreenUnit || toSizeUnit !== maxScreenUnit) {\n    throw new PolishedError(76);\n  }\n\n  var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen);\n  var base = unitlessToSize - slope * unitlessMaxScreen;\n  return \"calc(\" + base.toFixed(2) + (fromSizeUnit || '') + \" + \" + (100 * slope).toFixed(2) + \"vw)\";\n}\n\n/**\n * CSS to contain a float (credit to CSSMojo).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *    ...clearFix(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${clearFix()}\n * `\n *\n * // CSS as JS Output\n *\n * '&::after': {\n *   'clear': 'both',\n *   'content': '\"\"',\n *   'display': 'table'\n * }\n */\nfunction clearFix(parent) {\n  var _ref;\n\n  if (parent === void 0) {\n    parent = '&';\n  }\n\n  var pseudoSelector = parent + \"::after\";\n  return _ref = {}, _ref[pseudoSelector] = {\n    clear: 'both',\n    content: '\"\"',\n    display: 'table'\n  }, _ref;\n}\n\n/**\n * CSS to fully cover an area. Can optionally be passed an offset to act as a \"padding\".\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...cover()\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${cover()}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   'position': 'absolute',\n *   'top': '0',\n *   'right: '0',\n *   'bottom': '0',\n *   'left: '0'\n * }\n */\nfunction cover(offset) {\n  if (offset === void 0) {\n    offset = 0;\n  }\n\n  return {\n    position: 'absolute',\n    top: offset,\n    right: offset,\n    bottom: offset,\n    left: offset\n  };\n}\n\n/**\n * CSS to represent truncated text with an ellipsis. You can optionally pass a max-width and number of lines before truncating.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...ellipsis('250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${ellipsis('250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   'display': 'inline-block',\n *   'maxWidth': '250px',\n *   'overflow': 'hidden',\n *   'textOverflow': 'ellipsis',\n *   'whiteSpace': 'nowrap',\n *   'wordWrap': 'normal'\n * }\n */\nfunction ellipsis(width, lines) {\n  if (lines === void 0) {\n    lines = 1;\n  }\n\n  var styles = {\n    display: 'inline-block',\n    maxWidth: width || '100%',\n    overflow: 'hidden',\n    textOverflow: 'ellipsis',\n    whiteSpace: 'nowrap',\n    wordWrap: 'normal'\n  };\n  return lines > 1 ? _extends__default[\"default\"]({}, styles, {\n    WebkitBoxOrient: 'vertical',\n    WebkitLineClamp: lines,\n    display: '-webkit-box',\n    whiteSpace: 'normal'\n  }) : styles;\n}\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\n * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...fluidRange(\n *    {\n *        prop: 'padding',\n *        fromSize: '20px',\n *        toSize: '100px',\n *      },\n *      '400px',\n *      '1000px',\n *    )\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${fluidRange(\n *      {\n *        prop: 'padding',\n *        fromSize: '20px',\n *        toSize: '100px',\n *      },\n *      '400px',\n *      '1000px',\n *    )}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   \"@media (min-width: 1000px)\": Object {\n *     \"padding\": \"100px\",\n *   },\n *   \"@media (min-width: 400px)\": Object {\n *     \"padding\": \"calc(-33.33333333333334px + 13.333333333333334vw)\",\n *   },\n *   \"padding\": \"20px\",\n * }\n */\nfunction fluidRange(cssProp, minScreen, maxScreen) {\n  if (minScreen === void 0) {\n    minScreen = '320px';\n  }\n\n  if (maxScreen === void 0) {\n    maxScreen = '1200px';\n  }\n\n  if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) {\n    throw new PolishedError(49);\n  }\n\n  if (Array.isArray(cssProp)) {\n    var mediaQueries = {};\n    var fallbacks = {};\n\n    for (var _iterator = _createForOfIteratorHelperLoose(cssProp), _step; !(_step = _iterator()).done;) {\n      var _extends2, _extends3;\n\n      var obj = _step.value;\n\n      if (!obj.prop || !obj.fromSize || !obj.toSize) {\n        throw new PolishedError(50);\n      }\n\n      fallbacks[obj.prop] = obj.fromSize;\n      mediaQueries[\"@media (min-width: \" + minScreen + \")\"] = _extends__default[\"default\"]({}, mediaQueries[\"@media (min-width: \" + minScreen + \")\"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2));\n      mediaQueries[\"@media (min-width: \" + maxScreen + \")\"] = _extends__default[\"default\"]({}, mediaQueries[\"@media (min-width: \" + maxScreen + \")\"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3));\n    }\n\n    return _extends__default[\"default\"]({}, fallbacks, mediaQueries);\n  } else {\n    var _ref, _ref2, _ref3;\n\n    if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) {\n      throw new PolishedError(51);\n    }\n\n    return _ref3 = {}, _ref3[cssProp.prop] = cssProp.fromSize, _ref3[\"@media (min-width: \" + minScreen + \")\"] = (_ref = {}, _ref[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref), _ref3[\"@media (min-width: \" + maxScreen + \")\"] = (_ref2 = {}, _ref2[cssProp.prop] = cssProp.toSize, _ref2), _ref3;\n  }\n}\n\nvar dataURIRegex = /^\\s*data:([a-z]+\\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\nvar formatHintMap = {\n  woff: 'woff',\n  woff2: 'woff2',\n  ttf: 'truetype',\n  otf: 'opentype',\n  eot: 'embedded-opentype',\n  svg: 'svg',\n  svgz: 'svg'\n};\n\nfunction generateFormatHint(format, formatHint) {\n  if (!formatHint) return '';\n  return \" format(\\\"\" + formatHintMap[format] + \"\\\")\";\n}\n\nfunction isDataURI(fontFilePath) {\n  return !!fontFilePath.replace(/\\s+/g, ' ').match(dataURIRegex);\n}\n\nfunction generateFileReferences(fontFilePath, fileFormats, formatHint) {\n  if (isDataURI(fontFilePath)) {\n    return \"url(\\\"\" + fontFilePath + \"\\\")\" + generateFormatHint(fileFormats[0], formatHint);\n  }\n\n  var fileFontReferences = fileFormats.map(function (format) {\n    return \"url(\\\"\" + fontFilePath + \".\" + format + \"\\\")\" + generateFormatHint(format, formatHint);\n  });\n  return fileFontReferences.join(', ');\n}\n\nfunction generateLocalReferences(localFonts) {\n  var localFontReferences = localFonts.map(function (font) {\n    return \"local(\\\"\" + font + \"\\\")\";\n  });\n  return localFontReferences.join(', ');\n}\n\nfunction generateSources(fontFilePath, localFonts, fileFormats, formatHint) {\n  var fontReferences = [];\n  if (localFonts) fontReferences.push(generateLocalReferences(localFonts));\n\n  if (fontFilePath) {\n    fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint));\n  }\n\n  return fontReferences.join(', ');\n}\n/**\n * CSS for a @font-face declaration. Defaults to check for local copies of the font on the user's machine. You can disable this by passing `null` to localFonts.\n *\n * @example\n * // Styles as object basic usage\n * const styles = {\n *    ...fontFace({\n *      'fontFamily': 'Sans-Pro',\n *      'fontFilePath': 'path/to/file'\n *    })\n * }\n *\n * // styled-components basic usage\n * const GlobalStyle = createGlobalStyle`${\n *   fontFace({\n *     'fontFamily': 'Sans-Pro',\n *     'fontFilePath': 'path/to/file'\n *   }\n * )}`\n *\n * // CSS as JS Output\n *\n * '@font-face': {\n *   'fontFamily': 'Sans-Pro',\n *   'src': 'url(\"path/to/file.eot\"), url(\"path/to/file.woff2\"), url(\"path/to/file.woff\"), url(\"path/to/file.ttf\"), url(\"path/to/file.svg\")',\n * }\n */\n\n\nfunction fontFace(_ref) {\n  var fontFamily = _ref.fontFamily,\n      fontFilePath = _ref.fontFilePath,\n      fontStretch = _ref.fontStretch,\n      fontStyle = _ref.fontStyle,\n      fontVariant = _ref.fontVariant,\n      fontWeight = _ref.fontWeight,\n      _ref$fileFormats = _ref.fileFormats,\n      fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats,\n      _ref$formatHint = _ref.formatHint,\n      formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint,\n      _ref$localFonts = _ref.localFonts,\n      localFonts = _ref$localFonts === void 0 ? [fontFamily] : _ref$localFonts,\n      unicodeRange = _ref.unicodeRange,\n      fontDisplay = _ref.fontDisplay,\n      fontVariationSettings = _ref.fontVariationSettings,\n      fontFeatureSettings = _ref.fontFeatureSettings;\n  // Error Handling\n  if (!fontFamily) throw new PolishedError(55);\n\n  if (!fontFilePath && !localFonts) {\n    throw new PolishedError(52);\n  }\n\n  if (localFonts && !Array.isArray(localFonts)) {\n    throw new PolishedError(53);\n  }\n\n  if (!Array.isArray(fileFormats)) {\n    throw new PolishedError(54);\n  }\n\n  var fontFaceDeclaration = {\n    '@font-face': {\n      fontFamily: fontFamily,\n      src: generateSources(fontFilePath, localFonts, fileFormats, formatHint),\n      unicodeRange: unicodeRange,\n      fontStretch: fontStretch,\n      fontStyle: fontStyle,\n      fontVariant: fontVariant,\n      fontWeight: fontWeight,\n      fontDisplay: fontDisplay,\n      fontVariationSettings: fontVariationSettings,\n      fontFeatureSettings: fontFeatureSettings\n    }\n  }; // Removes undefined fields for cleaner css object.\n\n  return JSON.parse(JSON.stringify(fontFaceDeclaration));\n}\n\n/**\n * CSS to hide text to show a background image in a SEO-friendly way.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'backgroundImage': 'url(logo.png)',\n *   ...hideText(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   backgroundImage: url(logo.png);\n *   ${hideText()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'backgroundImage': 'url(logo.png)',\n *   'textIndent': '101%',\n *   'overflow': 'hidden',\n *   'whiteSpace': 'nowrap',\n * }\n */\nfunction hideText() {\n  return {\n    textIndent: '101%',\n    overflow: 'hidden',\n    whiteSpace: 'nowrap'\n  };\n}\n\n/**\n * CSS to hide content visually but remain accessible to screen readers.\n * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...hideVisually(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${hideVisually()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'border': '0',\n *   'clip': 'rect(0 0 0 0)',\n *   'height': '1px',\n *   'margin': '-1px',\n *   'overflow': 'hidden',\n *   'padding': '0',\n *   'position': 'absolute',\n *   'whiteSpace': 'nowrap',\n *   'width': '1px',\n * }\n */\nfunction hideVisually() {\n  return {\n    border: '0',\n    clip: 'rect(0 0 0 0)',\n    height: '1px',\n    margin: '-1px',\n    overflow: 'hidden',\n    padding: '0',\n    position: 'absolute',\n    whiteSpace: 'nowrap',\n    width: '1px'\n  };\n}\n\n/**\n * Generates a media query to target HiDPI devices.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *  [hiDPI(1.5)]: {\n *    width: 200px;\n *  }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${hiDPI(1.5)} {\n *     width: 200px;\n *   }\n * `\n *\n * // CSS as JS Output\n *\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\n *  only screen and (min--moz-device-pixel-ratio: 1.5),\n *  only screen and (-o-min-device-pixel-ratio: 1.5/1),\n *  only screen and (min-resolution: 144dpi),\n *  only screen and (min-resolution: 1.5dppx)': {\n *   'width': '200px',\n * }\n */\nfunction hiDPI(ratio) {\n  if (ratio === void 0) {\n    ratio = 1.3;\n  }\n\n  return \"\\n    @media only screen and (-webkit-min-device-pixel-ratio: \" + ratio + \"),\\n    only screen and (min--moz-device-pixel-ratio: \" + ratio + \"),\\n    only screen and (-o-min-device-pixel-ratio: \" + ratio + \"/1),\\n    only screen and (min-resolution: \" + Math.round(ratio * 96) + \"dpi),\\n    only screen and (min-resolution: \" + ratio + \"dppx)\\n  \";\n}\n\nfunction constructGradientValue(literals) {\n  var template = '';\n\n  for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    substitutions[_key - 1] = arguments[_key];\n  }\n\n  for (var i = 0; i < literals.length; i += 1) {\n    template += literals[i];\n\n    if (i === substitutions.length - 1 && substitutions[i]) {\n      var definedValues = substitutions.filter(function (substitute) {\n        return !!substitute;\n      }); // Adds leading coma if properties preceed color-stops\n\n      if (definedValues.length > 1) {\n        template = template.slice(0, -1);\n        template += \", \" + substitutions[i]; // No trailing space if color-stops is the only param provided\n      } else if (definedValues.length === 1) {\n        template += \"\" + substitutions[i];\n      }\n    } else if (substitutions[i]) {\n      template += substitutions[i] + \" \";\n    }\n  }\n\n  return template.trim();\n}\n\nvar _templateObject$1;\n\n/**\n * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...linearGradient({\n        colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n        toDirection: 'to top right',\n        fallback: '#FFF',\n      })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${linearGradient({\n        colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n        toDirection: 'to top right',\n        fallback: '#FFF',\n      })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n *   'backgroundColor': '#FFF',\n *   'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction linearGradient(_ref) {\n  var colorStops = _ref.colorStops,\n      fallback = _ref.fallback,\n      _ref$toDirection = _ref.toDirection,\n      toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection;\n\n  if (!colorStops || colorStops.length < 2) {\n    throw new PolishedError(56);\n  }\n\n  return {\n    backgroundColor: fallback || colorStops[0].replace(/,\\s+/g, ',').split(' ')[0].replace(/,(?=\\S)/g, ', '),\n    backgroundImage: constructGradientValue(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose__default[\"default\"]([\"linear-gradient(\", \"\", \")\"])), toDirection, colorStops.join(', ').replace(/,(?=\\S)/g, ', '))\n  };\n}\n\n/**\n * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *    ...normalize(),\n * }\n *\n * // styled-components usage\n * const GlobalStyle = createGlobalStyle`${normalize()}`\n *\n * // CSS as JS Output\n *\n * html {\n *   lineHeight: 1.15,\n *   textSizeAdjust: 100%,\n * } ...\n */\nfunction normalize() {\n  var _ref;\n\n  return [(_ref = {\n    html: {\n      lineHeight: '1.15',\n      textSizeAdjust: '100%'\n    },\n    body: {\n      margin: '0'\n    },\n    main: {\n      display: 'block'\n    },\n    h1: {\n      fontSize: '2em',\n      margin: '0.67em 0'\n    },\n    hr: {\n      boxSizing: 'content-box',\n      height: '0',\n      overflow: 'visible'\n    },\n    pre: {\n      fontFamily: 'monospace, monospace',\n      fontSize: '1em'\n    },\n    a: {\n      backgroundColor: 'transparent'\n    },\n    'abbr[title]': {\n      borderBottom: 'none',\n      textDecoration: 'underline'\n    }\n  }, _ref[\"b,\\n    strong\"] = {\n    fontWeight: 'bolder'\n  }, _ref[\"code,\\n    kbd,\\n    samp\"] = {\n    fontFamily: 'monospace, monospace',\n    fontSize: '1em'\n  }, _ref.small = {\n    fontSize: '80%'\n  }, _ref[\"sub,\\n    sup\"] = {\n    fontSize: '75%',\n    lineHeight: '0',\n    position: 'relative',\n    verticalAlign: 'baseline'\n  }, _ref.sub = {\n    bottom: '-0.25em'\n  }, _ref.sup = {\n    top: '-0.5em'\n  }, _ref.img = {\n    borderStyle: 'none'\n  }, _ref[\"button,\\n    input,\\n    optgroup,\\n    select,\\n    textarea\"] = {\n    fontFamily: 'inherit',\n    fontSize: '100%',\n    lineHeight: '1.15',\n    margin: '0'\n  }, _ref[\"button,\\n    input\"] = {\n    overflow: 'visible'\n  }, _ref[\"button,\\n    select\"] = {\n    textTransform: 'none'\n  }, _ref[\"button,\\n    html [type=\\\"button\\\"],\\n    [type=\\\"reset\\\"],\\n    [type=\\\"submit\\\"]\"] = {\n    WebkitAppearance: 'button'\n  }, _ref[\"button::-moz-focus-inner,\\n    [type=\\\"button\\\"]::-moz-focus-inner,\\n    [type=\\\"reset\\\"]::-moz-focus-inner,\\n    [type=\\\"submit\\\"]::-moz-focus-inner\"] = {\n    borderStyle: 'none',\n    padding: '0'\n  }, _ref[\"button:-moz-focusring,\\n    [type=\\\"button\\\"]:-moz-focusring,\\n    [type=\\\"reset\\\"]:-moz-focusring,\\n    [type=\\\"submit\\\"]:-moz-focusring\"] = {\n    outline: '1px dotted ButtonText'\n  }, _ref.fieldset = {\n    padding: '0.35em 0.625em 0.75em'\n  }, _ref.legend = {\n    boxSizing: 'border-box',\n    color: 'inherit',\n    display: 'table',\n    maxWidth: '100%',\n    padding: '0',\n    whiteSpace: 'normal'\n  }, _ref.progress = {\n    verticalAlign: 'baseline'\n  }, _ref.textarea = {\n    overflow: 'auto'\n  }, _ref[\"[type=\\\"checkbox\\\"],\\n    [type=\\\"radio\\\"]\"] = {\n    boxSizing: 'border-box',\n    padding: '0'\n  }, _ref[\"[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n    [type=\\\"number\\\"]::-webkit-outer-spin-button\"] = {\n    height: 'auto'\n  }, _ref['[type=\"search\"]'] = {\n    WebkitAppearance: 'textfield',\n    outlineOffset: '-2px'\n  }, _ref['[type=\"search\"]::-webkit-search-decoration'] = {\n    WebkitAppearance: 'none'\n  }, _ref['::-webkit-file-upload-button'] = {\n    WebkitAppearance: 'button',\n    font: 'inherit'\n  }, _ref.details = {\n    display: 'block'\n  }, _ref.summary = {\n    display: 'list-item'\n  }, _ref.template = {\n    display: 'none'\n  }, _ref['[hidden]'] = {\n    display: 'none'\n  }, _ref), {\n    'abbr[title]': {\n      textDecoration: 'underline dotted'\n    }\n  }];\n}\n\nvar _templateObject;\n\n/**\n * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...radialGradient({\n *     colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n *     extent: 'farthest-corner at 45px 45px',\n *     position: 'center',\n *     shape: 'ellipse',\n *   })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${radialGradient({\n *     colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n *     extent: 'farthest-corner at 45px 45px',\n *     position: 'center',\n *     shape: 'ellipse',\n *   })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n *   'backgroundColor': '#00FFFF',\n *   'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction radialGradient(_ref) {\n  var colorStops = _ref.colorStops,\n      _ref$extent = _ref.extent,\n      extent = _ref$extent === void 0 ? '' : _ref$extent,\n      fallback = _ref.fallback,\n      _ref$position = _ref.position,\n      position = _ref$position === void 0 ? '' : _ref$position,\n      _ref$shape = _ref.shape,\n      shape = _ref$shape === void 0 ? '' : _ref$shape;\n\n  if (!colorStops || colorStops.length < 2) {\n    throw new PolishedError(57);\n  }\n\n  return {\n    backgroundColor: fallback || colorStops[0].split(' ')[0],\n    backgroundImage: constructGradientValue(_templateObject || (_templateObject = _taggedTemplateLiteralLoose__default[\"default\"]([\"radial-gradient(\", \"\", \"\", \"\", \")\"])), position, shape, extent, colorStops.join(', '))\n  };\n}\n\n/**\n * A helper to generate a retina background image and non-retina\n * background image. The retina background image will output to a HiDPI media query. The mixin uses\n * a _2x.png filename suffix by default.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *  ...retinaImage('my-img')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${retinaImage('my-img')}\n * `\n *\n * // CSS as JS Output\n * div {\n *   backgroundImage: 'url(my-img.png)',\n *   '@media only screen and (-webkit-min-device-pixel-ratio: 1.3),\n *    only screen and (min--moz-device-pixel-ratio: 1.3),\n *    only screen and (-o-min-device-pixel-ratio: 1.3/1),\n *    only screen and (min-resolution: 144dpi),\n *    only screen and (min-resolution: 1.5dppx)': {\n *     backgroundImage: 'url(my-img_2x.png)',\n *   }\n * }\n */\nfunction retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) {\n  var _ref;\n\n  if (extension === void 0) {\n    extension = 'png';\n  }\n\n  if (retinaSuffix === void 0) {\n    retinaSuffix = '_2x';\n  }\n\n  if (!filename) {\n    throw new PolishedError(58);\n  } // Replace the dot at the beginning of the passed extension if one exists\n\n\n  var ext = extension.replace(/^\\./, '');\n  var rFilename = retinaFilename ? retinaFilename + \".\" + ext : \"\" + filename + retinaSuffix + \".\" + ext;\n  return _ref = {\n    backgroundImage: \"url(\" + filename + \".\" + ext + \")\"\n  }, _ref[hiDPI()] = _extends__default[\"default\"]({\n    backgroundImage: \"url(\" + rFilename + \")\"\n  }, backgroundSize ? {\n    backgroundSize: backgroundSize\n  } : {}), _ref;\n}\n\n/* eslint-disable key-spacing */\nvar functionsMap = {\n  easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n  easeInCirc: 'cubic-bezier(0.600,  0.040, 0.980, 0.335)',\n  easeInCubic: 'cubic-bezier(0.550,  0.055, 0.675, 0.190)',\n  easeInExpo: 'cubic-bezier(0.950,  0.050, 0.795, 0.035)',\n  easeInQuad: 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n  easeInQuart: 'cubic-bezier(0.895,  0.030, 0.685, 0.220)',\n  easeInQuint: 'cubic-bezier(0.755,  0.050, 0.855, 0.060)',\n  easeInSine: 'cubic-bezier(0.470,  0.000, 0.745, 0.715)',\n  easeOutBack: 'cubic-bezier(0.175,  0.885, 0.320, 1.275)',\n  easeOutCubic: 'cubic-bezier(0.215,  0.610, 0.355, 1.000)',\n  easeOutCirc: 'cubic-bezier(0.075,  0.820, 0.165, 1.000)',\n  easeOutExpo: 'cubic-bezier(0.190,  1.000, 0.220, 1.000)',\n  easeOutQuad: 'cubic-bezier(0.250,  0.460, 0.450, 0.940)',\n  easeOutQuart: 'cubic-bezier(0.165,  0.840, 0.440, 1.000)',\n  easeOutQuint: 'cubic-bezier(0.230,  1.000, 0.320, 1.000)',\n  easeOutSine: 'cubic-bezier(0.390,  0.575, 0.565, 1.000)',\n  easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n  easeInOutCirc: 'cubic-bezier(0.785,  0.135, 0.150, 0.860)',\n  easeInOutCubic: 'cubic-bezier(0.645,  0.045, 0.355, 1.000)',\n  easeInOutExpo: 'cubic-bezier(1.000,  0.000, 0.000, 1.000)',\n  easeInOutQuad: 'cubic-bezier(0.455,  0.030, 0.515, 0.955)',\n  easeInOutQuart: 'cubic-bezier(0.770,  0.000, 0.175, 1.000)',\n  easeInOutQuint: 'cubic-bezier(0.860,  0.000, 0.070, 1.000)',\n  easeInOutSine: 'cubic-bezier(0.445,  0.050, 0.550, 0.950)'\n};\n/* eslint-enable key-spacing */\n\nfunction getTimingFunction(functionName) {\n  return functionsMap[functionName];\n}\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'transitionTimingFunction': timingFunctions('easeInQuad')\n * }\n *\n * // styled-components usage\n *  const div = styled.div`\n *   transitionTimingFunction: ${timingFunctions('easeInQuad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'transitionTimingFunction': 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n * }\n */\n\n\nfunction timingFunctions(timingFunction) {\n  return getTimingFunction(timingFunction);\n}\n\nvar getBorderWidth = function getBorderWidth(pointingDirection, height, width) {\n  var fullWidth = \"\" + width[0] + (width[1] || '');\n  var halfWidth = \"\" + width[0] / 2 + (width[1] || '');\n  var fullHeight = \"\" + height[0] + (height[1] || '');\n  var halfHeight = \"\" + height[0] / 2 + (height[1] || '');\n\n  switch (pointingDirection) {\n    case 'top':\n      return \"0 \" + halfWidth + \" \" + fullHeight + \" \" + halfWidth;\n\n    case 'topLeft':\n      return fullWidth + \" \" + fullHeight + \" 0 0\";\n\n    case 'left':\n      return halfHeight + \" \" + fullWidth + \" \" + halfHeight + \" 0\";\n\n    case 'bottomLeft':\n      return fullWidth + \" 0 0 \" + fullHeight;\n\n    case 'bottom':\n      return fullHeight + \" \" + halfWidth + \" 0 \" + halfWidth;\n\n    case 'bottomRight':\n      return \"0 0 \" + fullWidth + \" \" + fullHeight;\n\n    case 'right':\n      return halfHeight + \" 0 \" + halfHeight + \" \" + fullWidth;\n\n    case 'topRight':\n    default:\n      return \"0 \" + fullWidth + \" \" + fullHeight + \" 0\";\n  }\n};\n\nvar getBorderColor = function getBorderColor(pointingDirection, foregroundColor) {\n  switch (pointingDirection) {\n    case 'top':\n    case 'bottomRight':\n      return {\n        borderBottomColor: foregroundColor\n      };\n\n    case 'right':\n    case 'bottomLeft':\n      return {\n        borderLeftColor: foregroundColor\n      };\n\n    case 'bottom':\n    case 'topLeft':\n      return {\n        borderTopColor: foregroundColor\n      };\n\n    case 'left':\n    case 'topRight':\n      return {\n        borderRightColor: foregroundColor\n      };\n\n    default:\n      throw new PolishedError(59);\n  }\n};\n/**\n * CSS to represent triangle with any pointing direction with an optional background color.\n *\n * @example\n * // Styles as object usage\n *\n * const styles = {\n *   ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })\n * }\n *\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })}\n *\n *\n * // CSS as JS Output\n *\n * div: {\n *  'borderColor': 'transparent transparent transparent red',\n *  'borderStyle': 'solid',\n *  'borderWidth': '50px 0 50px 100px',\n *  'height': '0',\n *  'width': '0',\n * }\n */\n\n\nfunction triangle(_ref) {\n  var pointingDirection = _ref.pointingDirection,\n      height = _ref.height,\n      width = _ref.width,\n      foregroundColor = _ref.foregroundColor,\n      _ref$backgroundColor = _ref.backgroundColor,\n      backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor;\n  var widthAndUnit = getValueAndUnit(width);\n  var heightAndUnit = getValueAndUnit(height);\n\n  if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {\n    throw new PolishedError(60);\n  }\n\n  return _extends__default[\"default\"]({\n    width: '0',\n    height: '0',\n    borderColor: backgroundColor\n  }, getBorderColor(pointingDirection, foregroundColor), {\n    borderStyle: 'solid',\n    borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit)\n  });\n}\n\n/**\n * Provides an easy way to change the `wordWrap` property.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...wordWrap('break-word')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${wordWrap('break-word')}\n * `\n *\n * // CSS as JS Output\n *\n * const styles = {\n *   overflowWrap: 'break-word',\n *   wordWrap: 'break-word',\n *   wordBreak: 'break-all',\n * }\n */\nfunction wordWrap(wrap) {\n  if (wrap === void 0) {\n    wrap = 'break-word';\n  }\n\n  var wordBreak = wrap === 'break-word' ? 'break-all' : wrap;\n  return {\n    overflowWrap: wrap,\n    wordWrap: wrap,\n    wordBreak: wordBreak\n  };\n}\n\nfunction colorToInt(color) {\n  return Math.round(color * 255);\n}\n\nfunction convertToInt(red, green, blue) {\n  return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\n\nfunction hslToRgb(hue, saturation, lightness, convert) {\n  if (convert === void 0) {\n    convert = convertToInt;\n  }\n\n  if (saturation === 0) {\n    // achromatic\n    return convert(lightness, lightness, lightness);\n  } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n  var huePrime = (hue % 360 + 360) % 360 / 60;\n  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;\n  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n  var red = 0;\n  var green = 0;\n  var blue = 0;\n\n  if (huePrime >= 0 && huePrime < 1) {\n    red = chroma;\n    green = secondComponent;\n  } else if (huePrime >= 1 && huePrime < 2) {\n    red = secondComponent;\n    green = chroma;\n  } else if (huePrime >= 2 && huePrime < 3) {\n    green = chroma;\n    blue = secondComponent;\n  } else if (huePrime >= 3 && huePrime < 4) {\n    green = secondComponent;\n    blue = chroma;\n  } else if (huePrime >= 4 && huePrime < 5) {\n    red = secondComponent;\n    blue = chroma;\n  } else if (huePrime >= 5 && huePrime < 6) {\n    red = chroma;\n    blue = secondComponent;\n  }\n\n  var lightnessModification = lightness - chroma / 2;\n  var finalRed = red + lightnessModification;\n  var finalGreen = green + lightnessModification;\n  var finalBlue = blue + lightnessModification;\n  return convert(finalRed, finalGreen, finalBlue);\n}\n\nvar namedColorMap = {\n  aliceblue: 'f0f8ff',\n  antiquewhite: 'faebd7',\n  aqua: '00ffff',\n  aquamarine: '7fffd4',\n  azure: 'f0ffff',\n  beige: 'f5f5dc',\n  bisque: 'ffe4c4',\n  black: '000',\n  blanchedalmond: 'ffebcd',\n  blue: '0000ff',\n  blueviolet: '8a2be2',\n  brown: 'a52a2a',\n  burlywood: 'deb887',\n  cadetblue: '5f9ea0',\n  chartreuse: '7fff00',\n  chocolate: 'd2691e',\n  coral: 'ff7f50',\n  cornflowerblue: '6495ed',\n  cornsilk: 'fff8dc',\n  crimson: 'dc143c',\n  cyan: '00ffff',\n  darkblue: '00008b',\n  darkcyan: '008b8b',\n  darkgoldenrod: 'b8860b',\n  darkgray: 'a9a9a9',\n  darkgreen: '006400',\n  darkgrey: 'a9a9a9',\n  darkkhaki: 'bdb76b',\n  darkmagenta: '8b008b',\n  darkolivegreen: '556b2f',\n  darkorange: 'ff8c00',\n  darkorchid: '9932cc',\n  darkred: '8b0000',\n  darksalmon: 'e9967a',\n  darkseagreen: '8fbc8f',\n  darkslateblue: '483d8b',\n  darkslategray: '2f4f4f',\n  darkslategrey: '2f4f4f',\n  darkturquoise: '00ced1',\n  darkviolet: '9400d3',\n  deeppink: 'ff1493',\n  deepskyblue: '00bfff',\n  dimgray: '696969',\n  dimgrey: '696969',\n  dodgerblue: '1e90ff',\n  firebrick: 'b22222',\n  floralwhite: 'fffaf0',\n  forestgreen: '228b22',\n  fuchsia: 'ff00ff',\n  gainsboro: 'dcdcdc',\n  ghostwhite: 'f8f8ff',\n  gold: 'ffd700',\n  goldenrod: 'daa520',\n  gray: '808080',\n  green: '008000',\n  greenyellow: 'adff2f',\n  grey: '808080',\n  honeydew: 'f0fff0',\n  hotpink: 'ff69b4',\n  indianred: 'cd5c5c',\n  indigo: '4b0082',\n  ivory: 'fffff0',\n  khaki: 'f0e68c',\n  lavender: 'e6e6fa',\n  lavenderblush: 'fff0f5',\n  lawngreen: '7cfc00',\n  lemonchiffon: 'fffacd',\n  lightblue: 'add8e6',\n  lightcoral: 'f08080',\n  lightcyan: 'e0ffff',\n  lightgoldenrodyellow: 'fafad2',\n  lightgray: 'd3d3d3',\n  lightgreen: '90ee90',\n  lightgrey: 'd3d3d3',\n  lightpink: 'ffb6c1',\n  lightsalmon: 'ffa07a',\n  lightseagreen: '20b2aa',\n  lightskyblue: '87cefa',\n  lightslategray: '789',\n  lightslategrey: '789',\n  lightsteelblue: 'b0c4de',\n  lightyellow: 'ffffe0',\n  lime: '0f0',\n  limegreen: '32cd32',\n  linen: 'faf0e6',\n  magenta: 'f0f',\n  maroon: '800000',\n  mediumaquamarine: '66cdaa',\n  mediumblue: '0000cd',\n  mediumorchid: 'ba55d3',\n  mediumpurple: '9370db',\n  mediumseagreen: '3cb371',\n  mediumslateblue: '7b68ee',\n  mediumspringgreen: '00fa9a',\n  mediumturquoise: '48d1cc',\n  mediumvioletred: 'c71585',\n  midnightblue: '191970',\n  mintcream: 'f5fffa',\n  mistyrose: 'ffe4e1',\n  moccasin: 'ffe4b5',\n  navajowhite: 'ffdead',\n  navy: '000080',\n  oldlace: 'fdf5e6',\n  olive: '808000',\n  olivedrab: '6b8e23',\n  orange: 'ffa500',\n  orangered: 'ff4500',\n  orchid: 'da70d6',\n  palegoldenrod: 'eee8aa',\n  palegreen: '98fb98',\n  paleturquoise: 'afeeee',\n  palevioletred: 'db7093',\n  papayawhip: 'ffefd5',\n  peachpuff: 'ffdab9',\n  peru: 'cd853f',\n  pink: 'ffc0cb',\n  plum: 'dda0dd',\n  powderblue: 'b0e0e6',\n  purple: '800080',\n  rebeccapurple: '639',\n  red: 'f00',\n  rosybrown: 'bc8f8f',\n  royalblue: '4169e1',\n  saddlebrown: '8b4513',\n  salmon: 'fa8072',\n  sandybrown: 'f4a460',\n  seagreen: '2e8b57',\n  seashell: 'fff5ee',\n  sienna: 'a0522d',\n  silver: 'c0c0c0',\n  skyblue: '87ceeb',\n  slateblue: '6a5acd',\n  slategray: '708090',\n  slategrey: '708090',\n  snow: 'fffafa',\n  springgreen: '00ff7f',\n  steelblue: '4682b4',\n  tan: 'd2b48c',\n  teal: '008080',\n  thistle: 'd8bfd8',\n  tomato: 'ff6347',\n  turquoise: '40e0d0',\n  violet: 'ee82ee',\n  wheat: 'f5deb3',\n  white: 'fff',\n  whitesmoke: 'f5f5f5',\n  yellow: 'ff0',\n  yellowgreen: '9acd32'\n};\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n * @private\n */\n\nfunction nameToHex(color) {\n  if (typeof color !== 'string') return color;\n  var normalizedColorName = color.toLowerCase();\n  return namedColorMap[normalizedColorName] ? \"#\" + namedColorMap[normalizedColorName] : color;\n}\n\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;\nvar rgbRegex = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i;\nvar rgbaRegex = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\nvar hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i;\nvar hslaRegex = /^hsl(?:a)?\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\n/**\n * Returns an RgbColor or RgbaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a RgbColor or RgbaColor object back to a string.\n *\n * @example\n * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1\n * const color1 = parseToRgb('rgb(255, 0, 0)');\n * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2\n * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');\n */\n\nfunction parseToRgb(color) {\n  if (typeof color !== 'string') {\n    throw new PolishedError(3);\n  }\n\n  var normalizedColor = nameToHex(color);\n\n  if (normalizedColor.match(hexRegex)) {\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n      green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n      blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16)\n    };\n  }\n\n  if (normalizedColor.match(hexRgbaRegex)) {\n    var alpha = parseFloat((parseInt(\"\" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n      green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n      blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16),\n      alpha: alpha\n    };\n  }\n\n  if (normalizedColor.match(reducedHexRegex)) {\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n      green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n      blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16)\n    };\n  }\n\n  if (normalizedColor.match(reducedRgbaHexRegex)) {\n    var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\n\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n      green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n      blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16),\n      alpha: _alpha\n    };\n  }\n\n  var rgbMatched = rgbRegex.exec(normalizedColor);\n\n  if (rgbMatched) {\n    return {\n      red: parseInt(\"\" + rgbMatched[1], 10),\n      green: parseInt(\"\" + rgbMatched[2], 10),\n      blue: parseInt(\"\" + rgbMatched[3], 10)\n    };\n  }\n\n  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));\n\n  if (rgbaMatched) {\n    return {\n      red: parseInt(\"\" + rgbaMatched[1], 10),\n      green: parseInt(\"\" + rgbaMatched[2], 10),\n      blue: parseInt(\"\" + rgbaMatched[3], 10),\n      alpha: parseFloat(\"\" + rgbaMatched[4]) > 1 ? parseFloat(\"\" + rgbaMatched[4]) / 100 : parseFloat(\"\" + rgbaMatched[4])\n    };\n  }\n\n  var hslMatched = hslRegex.exec(normalizedColor);\n\n  if (hslMatched) {\n    var hue = parseInt(\"\" + hslMatched[1], 10);\n    var saturation = parseInt(\"\" + hslMatched[2], 10) / 100;\n    var lightness = parseInt(\"\" + hslMatched[3], 10) / 100;\n    var rgbColorString = \"rgb(\" + hslToRgb(hue, saturation, lightness) + \")\";\n    var hslRgbMatched = rgbRegex.exec(rgbColorString);\n\n    if (!hslRgbMatched) {\n      throw new PolishedError(4, normalizedColor, rgbColorString);\n    }\n\n    return {\n      red: parseInt(\"\" + hslRgbMatched[1], 10),\n      green: parseInt(\"\" + hslRgbMatched[2], 10),\n      blue: parseInt(\"\" + hslRgbMatched[3], 10)\n    };\n  }\n\n  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));\n\n  if (hslaMatched) {\n    var _hue = parseInt(\"\" + hslaMatched[1], 10);\n\n    var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n\n    var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n\n    var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n\n    var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n\n    if (!_hslRgbMatched) {\n      throw new PolishedError(4, normalizedColor, _rgbColorString);\n    }\n\n    return {\n      red: parseInt(\"\" + _hslRgbMatched[1], 10),\n      green: parseInt(\"\" + _hslRgbMatched[2], 10),\n      blue: parseInt(\"\" + _hslRgbMatched[3], 10),\n      alpha: parseFloat(\"\" + hslaMatched[4]) > 1 ? parseFloat(\"\" + hslaMatched[4]) / 100 : parseFloat(\"\" + hslaMatched[4])\n    };\n  }\n\n  throw new PolishedError(5);\n}\n\nfunction rgbToHsl(color) {\n  // make sure rgb are contained in a set of [0, 255]\n  var red = color.red / 255;\n  var green = color.green / 255;\n  var blue = color.blue / 255;\n  var max = Math.max(red, green, blue);\n  var min = Math.min(red, green, blue);\n  var lightness = (max + min) / 2;\n\n  if (max === min) {\n    // achromatic\n    if (color.alpha !== undefined) {\n      return {\n        hue: 0,\n        saturation: 0,\n        lightness: lightness,\n        alpha: color.alpha\n      };\n    } else {\n      return {\n        hue: 0,\n        saturation: 0,\n        lightness: lightness\n      };\n    }\n  }\n\n  var hue;\n  var delta = max - min;\n  var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n\n  switch (max) {\n    case red:\n      hue = (green - blue) / delta + (green < blue ? 6 : 0);\n      break;\n\n    case green:\n      hue = (blue - red) / delta + 2;\n      break;\n\n    default:\n      // blue case\n      hue = (red - green) / delta + 4;\n      break;\n  }\n\n  hue *= 60;\n\n  if (color.alpha !== undefined) {\n    return {\n      hue: hue,\n      saturation: saturation,\n      lightness: lightness,\n      alpha: color.alpha\n    };\n  }\n\n  return {\n    hue: hue,\n    saturation: saturation,\n    lightness: lightness\n  };\n}\n\n/**\n * Returns an HslColor or HslaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a HslColor or HslaColor object back to a string.\n *\n * @example\n * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1\n * const color1 = parseToHsl('rgb(255, 0, 0)');\n * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2\n * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');\n */\nfunction parseToHsl(color) {\n  // Note: At a later stage we can optimize this function as right now a hsl\n  // color would be parsed converted to rgb values and converted back to hsl.\n  return rgbToHsl(parseToRgb(color));\n}\n\n/**\n * Reduces hex values if possible e.g. #ff8866 to #f86\n * @private\n */\nvar reduceHexValue = function reduceHexValue(value) {\n  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {\n    return \"#\" + value[1] + value[3] + value[5];\n  }\n\n  return value;\n};\n\nvar reduceHexValue$1 = reduceHexValue;\n\nfunction numberToHex(value) {\n  var hex = value.toString(16);\n  return hex.length === 1 ? \"0\" + hex : hex;\n}\n\nfunction colorToHex(color) {\n  return numberToHex(Math.round(color * 255));\n}\n\nfunction convertToHex(red, green, blue) {\n  return reduceHexValue$1(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n}\n\nfunction hslToHex(hue, saturation, lightness) {\n  return hslToRgb(hue, saturation, lightness, convertToHex);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hsl(359, 0.75, 0.4),\n *   background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hsl(359, 0.75, 0.4)};\n *   background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#b3191c\";\n *   background: \"#b3191c\";\n * }\n */\nfunction hsl(value, saturation, lightness) {\n  if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {\n    return hslToHex(value, saturation, lightness);\n  } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {\n    return hslToHex(value.hue, value.saturation, value.lightness);\n  }\n\n  throw new PolishedError(1);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hsla(359, 0.75, 0.4, 0.7),\n *   background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),\n *   background: hsla(359, 0.75, 0.4, 1),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hsla(359, 0.75, 0.4, 0.7)};\n *   background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};\n *   background: ${hsla(359, 0.75, 0.4, 1)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(179,25,28,0.7)\";\n *   background: \"rgba(179,25,28,0.7)\";\n *   background: \"#b3191c\";\n * }\n */\nfunction hsla(value, saturation, lightness, alpha) {\n  if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {\n    return alpha >= 1 ? hslToHex(value, saturation, lightness) : \"rgba(\" + hslToRgb(value, saturation, lightness) + \",\" + alpha + \")\";\n  } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {\n    return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : \"rgba(\" + hslToRgb(value.hue, value.saturation, value.lightness) + \",\" + value.alpha + \")\";\n  }\n\n  throw new PolishedError(2);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgb(255, 205, 100),\n *   background: rgb({ red: 255, green: 205, blue: 100 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgb(255, 205, 100)};\n *   background: ${rgb({ red: 255, green: 205, blue: 100 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#ffcd64\";\n *   background: \"#ffcd64\";\n * }\n */\nfunction rgb(value, green, blue) {\n  if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n    return reduceHexValue$1(\"#\" + numberToHex(value) + numberToHex(green) + numberToHex(blue));\n  } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n    return reduceHexValue$1(\"#\" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));\n  }\n\n  throw new PolishedError(6);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgba(255, 205, 100, 0.7),\n *   background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }),\n *   background: rgba(255, 205, 100, 1),\n *   background: rgba('#ffffff', 0.4),\n *   background: rgba('black', 0.7),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgba(255, 205, 100, 0.7)};\n *   background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })};\n *   background: ${rgba(255, 205, 100, 1)};\n *   background: ${rgba('#ffffff', 0.4)};\n *   background: ${rgba('black', 0.7)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(255,205,100,0.7)\";\n *   background: \"rgba(255,205,100,0.7)\";\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,255,255,0.4)\";\n *   background: \"rgba(0,0,0,0.7)\";\n * }\n */\nfunction rgba(firstValue, secondValue, thirdValue, fourthValue) {\n  if (typeof firstValue === 'string' && typeof secondValue === 'number') {\n    var rgbValue = parseToRgb(firstValue);\n    return \"rgba(\" + rgbValue.red + \",\" + rgbValue.green + \",\" + rgbValue.blue + \",\" + secondValue + \")\";\n  } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') {\n    return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : \"rgba(\" + firstValue + \",\" + secondValue + \",\" + thirdValue + \",\" + fourthValue + \")\";\n  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {\n    return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : \"rgba(\" + firstValue.red + \",\" + firstValue.green + \",\" + firstValue.blue + \",\" + firstValue.alpha + \")\";\n  }\n\n  throw new PolishedError(7);\n}\n\nvar isRgb = function isRgb(color) {\n  return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isRgba = function isRgba(color) {\n  return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\n};\n\nvar isHsl = function isHsl(color) {\n  return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isHsla = function isHsla(color) {\n  return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';\n};\n/**\n * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: toColorString({ red: 255, green: 205, blue: 100 }),\n *   background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n *   background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n *   background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${toColorString({ red: 255, green: 205, blue: 100 })};\n *   background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n *   background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n *   background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,205,100,0.72)\";\n *   background: \"#00f\";\n *   background: \"rgba(179,25,25,0.72)\";\n * }\n */\n\n\nfunction toColorString(color) {\n  if (typeof color !== 'object') throw new PolishedError(8);\n  if (isRgba(color)) return rgba(color);\n  if (isRgb(color)) return rgb(color);\n  if (isHsla(color)) return hsla(color);\n  if (isHsl(color)) return hsl(color);\n  throw new PolishedError(8);\n}\n\n// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-redeclare\nfunction curried(f, length, acc) {\n  return function fn() {\n    // eslint-disable-next-line prefer-rest-params\n    var combined = acc.concat(Array.prototype.slice.call(arguments));\n    return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);\n  };\n} // eslint-disable-next-line no-redeclare\n\n\nfunction curry(f) {\n  // eslint-disable-line no-redeclare\n  return curried(f, f.length, []);\n}\n\n/**\n * Changes the hue of the color. Hue is a number between 0 to 360. The first\n * argument for adjustHue is the amount of degrees the color is rotated around\n * the color wheel, always producing a positive hue value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: adjustHue(180, '#448'),\n *   background: adjustHue('180', 'rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${adjustHue(180, '#448')};\n *   background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#888844\";\n *   background: \"rgba(136,136,68,0.7)\";\n * }\n */\n\nfunction adjustHue(degree, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    hue: hslColor.hue + parseFloat(degree)\n  }));\n} // prettier-ignore\n\n\nvar curriedAdjustHue = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(adjustHue);\nvar curriedAdjustHue$1 = curriedAdjustHue;\n\n/**\n * Returns the complement of the provided color. This is identical to adjustHue(180, <color>).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: complement('#448'),\n *   background: complement('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${complement('#448')};\n *   background: ${complement('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#884\";\n *   background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction complement(color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    hue: (hslColor.hue + 180) % 360\n  }));\n}\n\nfunction guard(lowerBoundary, upperBoundary, value) {\n  return Math.max(lowerBoundary, Math.min(upperBoundary, value));\n}\n\n/**\n * Returns a string value for the darkened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: darken(0.2, '#FFCD64'),\n *   background: darken('0.2', 'rgba(255,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${darken(0.2, '#FFCD64')};\n *   background: ${darken('0.2', 'rgba(255,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#ffbd31\";\n *   background: \"rgba(255,189,49,0.7)\";\n * }\n */\n\nfunction darken(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedDarken = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(darken);\nvar curriedDarken$1 = curriedDarken;\n\n/**\n * Decreases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the desaturate function is the amount by how much the color\n * intensity should be decreased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: desaturate(0.2, '#CCCD64'),\n *   background: desaturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${desaturate(0.2, '#CCCD64')};\n *   background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#b8b979\";\n *   background: \"rgba(184,185,121,0.7)\";\n * }\n */\n\nfunction desaturate(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedDesaturate = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(desaturate);\nvar curriedDesaturate$1 = curriedDesaturate;\n\n/**\n * Returns a number (float) representing the luminance of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff',\n *   background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n *                             'rgba(58, 133, 255, 1)' :\n *                             'rgba(255, 57, 149, 1)',\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'};\n *   background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n *                             'rgba(58, 133, 255, 1)' :\n *                             'rgba(255, 57, 149, 1)'};\n *\n * // CSS in JS Output\n *\n * div {\n *   background: \"#CCCD64\";\n *   background: \"rgba(58, 133, 255, 1)\";\n * }\n */\n\nfunction getLuminance(color) {\n  if (color === 'transparent') return 0;\n  var rgbColor = parseToRgb(color);\n\n  var _Object$keys$map = Object.keys(rgbColor).map(function (key) {\n    var channel = rgbColor[key] / 255;\n    return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n  }),\n      r = _Object$keys$map[0],\n      g = _Object$keys$map[1],\n      b = _Object$keys$map[2];\n\n  return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3));\n}\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n *\n * @example\n * const contrastRatio = getContrast('#444', '#fff');\n */\n\nfunction getContrast(color1, color2) {\n  var luminance1 = getLuminance(color1);\n  var luminance2 = getLuminance(color2);\n  return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2));\n}\n\n/**\n * Converts the color to a grayscale, by reducing its saturation to 0.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: grayscale('#CCCD64'),\n *   background: grayscale('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${grayscale('#CCCD64')};\n *   background: ${grayscale('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#999\";\n *   background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction grayscale(color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends__default[\"default\"]({}, parseToHsl(color), {\n    saturation: 0\n  }));\n}\n\n/**\n * Converts a HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n *   background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n *   background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#00f\";\n *   background: \"rgba(179,25,25,0.72)\";\n * }\n */\nfunction hslToColorString(color) {\n  if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') {\n    if (color.alpha && typeof color.alpha === 'number') {\n      return hsla({\n        hue: color.hue,\n        saturation: color.saturation,\n        lightness: color.lightness,\n        alpha: color.alpha\n      });\n    }\n\n    return hsl({\n      hue: color.hue,\n      saturation: color.saturation,\n      lightness: color.lightness\n    });\n  }\n\n  throw new PolishedError(45);\n}\n\n/**\n * Inverts the red, green and blue values of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: invert('#CCCD64'),\n *   background: invert('rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${invert('#CCCD64')};\n *   background: ${invert('rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#33329b\";\n *   background: \"rgba(154,155,50,0.7)\";\n * }\n */\n\nfunction invert(color) {\n  if (color === 'transparent') return color; // parse color string to rgb\n\n  var value = parseToRgb(color);\n  return toColorString(_extends__default[\"default\"]({}, value, {\n    red: 255 - value.red,\n    green: 255 - value.green,\n    blue: 255 - value.blue\n  }));\n}\n\n/**\n * Returns a string value for the lightened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: lighten(0.2, '#CCCD64'),\n *   background: lighten('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${lighten(0.2, '#FFCD64')};\n *   background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#e5e6b1\";\n *   background: \"rgba(229,230,177,0.7)\";\n * }\n */\n\nfunction lighten(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedLighten = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(lighten);\nvar curriedLighten$1 = curriedLighten;\n\n/**\n * Determines which contrast guidelines have been met for two colors.\n * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html).\n *\n * @example\n * const scores = meetsContrastGuidelines('#444', '#fff');\n */\nfunction meetsContrastGuidelines(color1, color2) {\n  var contrastRatio = getContrast(color1, color2);\n  return {\n    AA: contrastRatio >= 4.5,\n    AALarge: contrastRatio >= 3,\n    AAA: contrastRatio >= 7,\n    AAALarge: contrastRatio >= 4.5\n  };\n}\n\n/**\n * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: mix(0.5, '#f00', '#00f')\n *   background: mix(0.25, '#f00', '#00f')\n *   background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${mix(0.5, '#f00', '#00f')};\n *   background: ${mix(0.25, '#f00', '#00f')};\n *   background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#7f007f\";\n *   background: \"#3f00bf\";\n *   background: \"rgba(63, 0, 191, 0.75)\";\n * }\n */\n\nfunction mix(weight, color, otherColor) {\n  if (color === 'transparent') return otherColor;\n  if (otherColor === 'transparent') return color;\n  if (weight === 0) return otherColor;\n  var parsedColor1 = parseToRgb(color);\n\n  var color1 = _extends__default[\"default\"]({}, parsedColor1, {\n    alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1\n  });\n\n  var parsedColor2 = parseToRgb(otherColor);\n\n  var color2 = _extends__default[\"default\"]({}, parsedColor2, {\n    alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1\n  }); // The formula is copied from the original Sass implementation:\n  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n\n  var alphaDelta = color1.alpha - color2.alpha;\n  var x = parseFloat(weight) * 2 - 1;\n  var y = x * alphaDelta === -1 ? x : x + alphaDelta;\n  var z = 1 + x * alphaDelta;\n  var weight1 = (y / z + 1) / 2.0;\n  var weight2 = 1 - weight1;\n  var mixedColor = {\n    red: Math.floor(color1.red * weight1 + color2.red * weight2),\n    green: Math.floor(color1.green * weight1 + color2.green * weight2),\n    blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),\n    alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))\n  };\n  return rgba(mixedColor);\n} // prettier-ignore\n\n\nvar curriedMix = /*#__PURE__*/curry\n/* ::<number | string, string, string, string> */\n(mix);\nvar mix$1 = curriedMix;\n\n/**\n * Increases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');\n *   background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),\n *   background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};\n *   background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},\n *   background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#fff\";\n *   background: \"rgba(255,255,255,0.7)\";\n *   background: \"rgba(255,0,0,0.7)\";\n * }\n */\n\nfunction opacify(amount, color) {\n  if (color === 'transparent') return color;\n  var parsedColor = parseToRgb(color);\n  var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n  var colorWithAlpha = _extends__default[\"default\"]({}, parsedColor, {\n    alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)\n  });\n\n  return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedOpacify = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(opacify);\nvar curriedOpacify$1 = curriedOpacify;\n\nvar defaultReturnIfLightColor = '#000';\nvar defaultReturnIfDarkColor = '#fff';\n/**\n * Returns black or white (or optional passed colors) for best\n * contrast depending on the luminosity of the given color.\n * When passing custom return colors, strict mode ensures that the\n * return color always meets or exceeds WCAG level AA or greater. If this test\n * fails, the default return color (black or white) is returned in place of the\n * custom return color. You can optionally turn off strict mode.\n *\n * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   color: readableColor('#000'),\n *   color: readableColor('black', '#001', '#ff8'),\n *   color: readableColor('white', '#001', '#ff8'),\n *   color: readableColor('red', '#333', '#ddd', true)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   color: ${readableColor('#000')};\n *   color: ${readableColor('black', '#001', '#ff8')};\n *   color: ${readableColor('white', '#001', '#ff8')};\n *   color: ${readableColor('red', '#333', '#ddd', true)};\n * `\n *\n * // CSS in JS Output\n * element {\n *   color: \"#fff\";\n *   color: \"#ff8\";\n *   color: \"#001\";\n *   color: \"#000\";\n * }\n */\n\nfunction readableColor(color, returnIfLightColor, returnIfDarkColor, strict) {\n  if (returnIfLightColor === void 0) {\n    returnIfLightColor = defaultReturnIfLightColor;\n  }\n\n  if (returnIfDarkColor === void 0) {\n    returnIfDarkColor = defaultReturnIfDarkColor;\n  }\n\n  if (strict === void 0) {\n    strict = true;\n  }\n\n  var isColorLight = getLuminance(color) > 0.179;\n  var preferredReturnColor = isColorLight ? returnIfLightColor : returnIfDarkColor;\n\n  if (!strict || getContrast(color, preferredReturnColor) >= 4.5) {\n    return preferredReturnColor;\n  }\n\n  return isColorLight ? defaultReturnIfLightColor : defaultReturnIfDarkColor;\n}\n\n/**\n * Converts a RgbColor or RgbaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb` or `rgba`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgbToColorString({ red: 255, green: 205, blue: 100 }),\n *   background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })};\n *   background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,205,100,0.72)\";\n * }\n */\nfunction rgbToColorString(color) {\n  if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {\n    if (typeof color.alpha === 'number') {\n      return rgba({\n        red: color.red,\n        green: color.green,\n        blue: color.blue,\n        alpha: color.alpha\n      });\n    }\n\n    return rgb({\n      red: color.red,\n      green: color.green,\n      blue: color.blue\n    });\n  }\n\n  throw new PolishedError(46);\n}\n\n/**\n * Increases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the saturate function is the amount by how much the color\n * intensity should be increased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: saturate(0.2, '#CCCD64'),\n *   background: saturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${saturate(0.2, '#FFCD64')};\n *   background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#e0e250\";\n *   background: \"rgba(224,226,80,0.7)\";\n * }\n */\n\nfunction saturate(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends__default[\"default\"]({}, hslColor, {\n    saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedSaturate = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(saturate);\nvar curriedSaturate$1 = curriedSaturate;\n\n/**\n * Sets the hue of a color to the provided value. The hue range can be\n * from 0 and 359.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setHue(42, '#CCCD64'),\n *   background: setHue('244', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setHue(42, '#CCCD64')};\n *   background: ${setHue('244', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#cdae64\";\n *   background: \"rgba(107,100,205,0.7)\";\n * }\n */\n\nfunction setHue(hue, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends__default[\"default\"]({}, parseToHsl(color), {\n    hue: parseFloat(hue)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetHue = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(setHue);\nvar curriedSetHue$1 = curriedSetHue;\n\n/**\n * Sets the lightness of a color to the provided value. The lightness range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setLightness(0.2, '#CCCD64'),\n *   background: setLightness('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setLightness(0.2, '#CCCD64')};\n *   background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#4d4d19\";\n *   background: \"rgba(223,224,159,0.7)\";\n * }\n */\n\nfunction setLightness(lightness, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends__default[\"default\"]({}, parseToHsl(color), {\n    lightness: parseFloat(lightness)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetLightness = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(setLightness);\nvar curriedSetLightness$1 = curriedSetLightness;\n\n/**\n * Sets the saturation of a color to the provided value. The saturation range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setSaturation(0.2, '#CCCD64'),\n *   background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setSaturation(0.2, '#CCCD64')};\n *   background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#adad84\";\n *   background: \"rgba(228,229,76,0.7)\";\n * }\n */\n\nfunction setSaturation(saturation, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends__default[\"default\"]({}, parseToHsl(color), {\n    saturation: parseFloat(saturation)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetSaturation = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(setSaturation);\nvar curriedSetSaturation$1 = curriedSetSaturation;\n\n/**\n * Shades a color by mixing it with black. `shade` can produce\n * hue shifts, where as `darken` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: shade(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${shade(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#00003f\";\n * }\n */\n\nfunction shade(percentage, color) {\n  if (color === 'transparent') return color;\n  return mix$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);\n} // prettier-ignore\n\n\nvar curriedShade = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(shade);\nvar curriedShade$1 = curriedShade;\n\n/**\n * Tints a color by mixing it with white. `tint` can produce\n * hue shifts, where as `lighten` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: tint(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${tint(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#bfbfff\";\n * }\n */\n\nfunction tint(percentage, color) {\n  if (color === 'transparent') return color;\n  return mix$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);\n} // prettier-ignore\n\n\nvar curriedTint = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(tint);\nvar curriedTint$1 = curriedTint;\n\n/**\n * Decreases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: transparentize(0.1, '#fff'),\n *   background: transparentize(0.2, 'hsl(0, 0%, 100%)'),\n *   background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${transparentize(0.1, '#fff')};\n *   background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};\n *   background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(255,255,255,0.9)\";\n *   background: \"rgba(255,255,255,0.8)\";\n *   background: \"rgba(255,0,0,0.3)\";\n * }\n */\n\nfunction transparentize(amount, color) {\n  if (color === 'transparent') return color;\n  var parsedColor = parseToRgb(color);\n  var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n  var colorWithAlpha = _extends__default[\"default\"]({}, parsedColor, {\n    alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)\n  });\n\n  return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedTransparentize = /*#__PURE__*/curry\n/* ::<number | string, string, string> */\n(transparentize);\nvar curriedTransparentize$1 = curriedTransparentize;\n\n/**\n * Shorthand for easily setting the animation property. Allows either multiple arrays with animations\n * or a single animation spread over the arguments.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'animation': 'rotate 1s ease-in-out, colorchange 2s'\n * }\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...animation('rotate', '1s', 'ease-in-out')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${animation('rotate', '1s', 'ease-in-out')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'animation': 'rotate 1s ease-in-out'\n * }\n */\nfunction animation() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  // Allow single or multiple animations passed\n  var multiMode = Array.isArray(args[0]);\n\n  if (!multiMode && args.length > 8) {\n    throw new PolishedError(64);\n  }\n\n  var code = args.map(function (arg) {\n    if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) {\n      throw new PolishedError(65);\n    }\n\n    if (Array.isArray(arg) && arg.length > 8) {\n      throw new PolishedError(66);\n    }\n\n    return Array.isArray(arg) ? arg.join(' ') : arg;\n  }).join(', ');\n  return {\n    animation: code\n  };\n}\n\n/**\n * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'backgroundImage': 'url(\"/image/background.jpg\"), linear-gradient(red, green)'\n * }\n */\nfunction backgroundImages() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  return {\n    backgroundImage: properties.join(', ')\n  };\n}\n\n/**\n * Shorthand that accepts any number of background values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'background': 'url(\"/image/background.jpg\"), linear-gradient(red, green), center no-repeat'\n * }\n */\nfunction backgrounds() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  return {\n    background: properties.join(', ')\n  };\n}\n\nvar sideMap = ['top', 'right', 'bottom', 'left'];\n/**\n * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...border('1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${border('1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderColor': 'red',\n *   'borderStyle': 'solid',\n *   'borderWidth': `1px`,\n * }\n *\n * // Styles as object usage\n * const styles = {\n *   ...border('top', '1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${border('top', '1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopColor': 'red',\n *   'borderTopStyle': 'solid',\n *   'borderTopWidth': `1px`,\n * }\n */\n\nfunction border(sideKeyword) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) {\n    var _ref;\n\n    return _ref = {}, _ref[\"border\" + capitalizeString(sideKeyword) + \"Width\"] = values[0], _ref[\"border\" + capitalizeString(sideKeyword) + \"Style\"] = values[1], _ref[\"border\" + capitalizeString(sideKeyword) + \"Color\"] = values[2], _ref;\n  } else {\n    values.unshift(sideKeyword);\n    return {\n      borderWidth: values[0],\n      borderStyle: values[1],\n      borderColor: values[2]\n    };\n  }\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderColor('red', 'green', 'blue', 'yellow')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderColor('red', 'green', 'blue', 'yellow')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopColor': 'red',\n *   'borderRightColor': 'green',\n *   'borderBottomColor': 'blue',\n *   'borderLeftColor': 'yellow'\n * }\n */\nfunction borderColor() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderColor'].concat(values));\n}\n\n/**\n * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderRadius('top', '5px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderRadius('top', '5px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopRightRadius': '5px',\n *   'borderTopLeftRadius': '5px',\n * }\n */\nfunction borderRadius(side, radius) {\n  var uppercaseSide = capitalizeString(side);\n\n  if (!radius && radius !== 0) {\n    throw new PolishedError(62);\n  }\n\n  if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') {\n    var _ref;\n\n    return _ref = {}, _ref[\"border\" + uppercaseSide + \"RightRadius\"] = radius, _ref[\"border\" + uppercaseSide + \"LeftRadius\"] = radius, _ref;\n  }\n\n  if (uppercaseSide === 'Left' || uppercaseSide === 'Right') {\n    var _ref2;\n\n    return _ref2 = {}, _ref2[\"borderTop\" + uppercaseSide + \"Radius\"] = radius, _ref2[\"borderBottom\" + uppercaseSide + \"Radius\"] = radius, _ref2;\n  }\n\n  throw new PolishedError(63);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderStyle('solid', 'dashed', 'dotted', 'double')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderStyle('solid', 'dashed', 'dotted', 'double')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopStyle': 'solid',\n *   'borderRightStyle': 'dashed',\n *   'borderBottomStyle': 'dotted',\n *   'borderLeftStyle': 'double'\n * }\n */\nfunction borderStyle() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderStyle'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderWidth('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderWidth('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopWidth': '12px',\n *   'borderRightWidth': '24px',\n *   'borderBottomWidth': '36px',\n *   'borderLeftWidth': '48px'\n * }\n */\nfunction borderWidth() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderWidth'].concat(values));\n}\n\nfunction generateSelectors(template, state) {\n  var stateSuffix = state ? \":\" + state : '';\n  return template(stateSuffix);\n}\n/**\n * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons.\n * @private\n */\n\n\nfunction statefulSelectors(states, template, stateMap) {\n  if (!template) throw new PolishedError(67);\n  if (states.length === 0) return generateSelectors(template, null);\n  var selectors = [];\n\n  for (var i = 0; i < states.length; i += 1) {\n    if (stateMap && stateMap.indexOf(states[i]) < 0) {\n      throw new PolishedError(68);\n    }\n\n    selectors.push(generateSelectors(template, states[i]));\n  }\n\n  selectors = selectors.join(',');\n  return selectors;\n}\n\nvar stateMap$1 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template$1(state) {\n  return \"button\" + state + \",\\n  input[type=\\\"button\\\"]\" + state + \",\\n  input[type=\\\"reset\\\"]\" + state + \",\\n  input[type=\\\"submit\\\"]\" + state;\n}\n/**\n * Populates selectors that target all buttons. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n *   [buttons('active')]: {\n *     'border': 'none'\n *   }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   > ${buttons('active')} {\n *     border: none;\n *   }\n * `\n *\n * // CSS in JS Output\n *\n *  'button:active,\n *  'input[type=\"button\"]:active,\n *  'input[type=\\\"reset\\\"]:active,\n *  'input[type=\\\"submit\\\"]:active: {\n *   'border': 'none'\n * }\n */\n\n\nfunction buttons() {\n  for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n    states[_key] = arguments[_key];\n  }\n\n  return statefulSelectors(states, template$1, stateMap$1);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...margin('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${margin('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'marginTop': '12px',\n *   'marginRight': '24px',\n *   'marginBottom': '36px',\n *   'marginLeft': '48px'\n * }\n */\nfunction margin() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['margin'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...padding('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${padding('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'paddingTop': '12px',\n *   'paddingRight': '24px',\n *   'paddingBottom': '36px',\n *   'paddingLeft': '48px'\n * }\n */\nfunction padding() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['padding'].concat(values));\n}\n\nvar positionMap = ['absolute', 'fixed', 'relative', 'static', 'sticky'];\n/**\n * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...position('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${position('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'top': '12px',\n *   'right': '24px',\n *   'bottom': '36px',\n *   'left': '48px'\n * }\n *\n * // Styles as object usage\n * const styles = {\n *   ...position('absolute', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${position('absolute', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'position': 'absolute',\n *   'top': '12px',\n *   'right': '24px',\n *   'bottom': '36px',\n *   'left': '48px'\n * }\n */\n\nfunction position(firstValue) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  if (positionMap.indexOf(firstValue) >= 0 && firstValue) {\n    return _extends__default[\"default\"]({}, directionalProperty.apply(void 0, [''].concat(values)), {\n      position: firstValue\n    });\n  } else {\n    return directionalProperty.apply(void 0, ['', firstValue].concat(values));\n  }\n}\n\n/**\n * Shorthand to set the height and width properties in a single statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...size('300px', '250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${size('300px', '250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'height': '300px',\n *   'width': '250px',\n * }\n */\nfunction size(height, width) {\n  if (width === void 0) {\n    width = height;\n  }\n\n  return {\n    height: height,\n    width: width\n  };\n}\n\nvar stateMap = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template(state) {\n  return \"input[type=\\\"color\\\"]\" + state + \",\\n    input[type=\\\"date\\\"]\" + state + \",\\n    input[type=\\\"datetime\\\"]\" + state + \",\\n    input[type=\\\"datetime-local\\\"]\" + state + \",\\n    input[type=\\\"email\\\"]\" + state + \",\\n    input[type=\\\"month\\\"]\" + state + \",\\n    input[type=\\\"number\\\"]\" + state + \",\\n    input[type=\\\"password\\\"]\" + state + \",\\n    input[type=\\\"search\\\"]\" + state + \",\\n    input[type=\\\"tel\\\"]\" + state + \",\\n    input[type=\\\"text\\\"]\" + state + \",\\n    input[type=\\\"time\\\"]\" + state + \",\\n    input[type=\\\"url\\\"]\" + state + \",\\n    input[type=\\\"week\\\"]\" + state + \",\\n    input:not([type])\" + state + \",\\n    textarea\" + state;\n}\n/**\n * Populates selectors that target all text inputs. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n *   [textInputs('active')]: {\n *     'border': 'none'\n *   }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   > ${textInputs('active')} {\n *     border: none;\n *   }\n * `\n *\n * // CSS in JS Output\n *\n *  'input[type=\"color\"]:active,\n *  input[type=\"date\"]:active,\n *  input[type=\"datetime\"]:active,\n *  input[type=\"datetime-local\"]:active,\n *  input[type=\"email\"]:active,\n *  input[type=\"month\"]:active,\n *  input[type=\"number\"]:active,\n *  input[type=\"password\"]:active,\n *  input[type=\"search\"]:active,\n *  input[type=\"tel\"]:active,\n *  input[type=\"text\"]:active,\n *  input[type=\"time\"]:active,\n *  input[type=\"url\"]:active,\n *  input[type=\"week\"]:active,\n *  input:not([type]):active,\n *  textarea:active': {\n *   'border': 'none'\n * }\n */\n\n\nfunction textInputs() {\n  for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n    states[_key] = arguments[_key];\n  }\n\n  return statefulSelectors(states, template, stateMap);\n}\n\n/**\n * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter).\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'),\n *   ...transitions(['color', 'background-color'], '2.0s ease-in 2s')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')};\n *   ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),};\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s'\n *   'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s',\n * }\n */\n\nfunction transitions() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  if (Array.isArray(properties[0]) && properties.length === 2) {\n    var value = properties[1];\n\n    if (typeof value !== 'string') {\n      throw new PolishedError(61);\n    }\n\n    var transitionsString = properties[0].map(function (property) {\n      return property + \" \" + value;\n    }).join(', ');\n    return {\n      transition: transitionsString\n    };\n  } else {\n    return {\n      transition: properties.join(', ')\n    };\n  }\n}\n\nexports.adjustHue = curriedAdjustHue$1;\nexports.animation = animation;\nexports.backgroundImages = backgroundImages;\nexports.backgrounds = backgrounds;\nexports.between = between;\nexports.border = border;\nexports.borderColor = borderColor;\nexports.borderRadius = borderRadius;\nexports.borderStyle = borderStyle;\nexports.borderWidth = borderWidth;\nexports.buttons = buttons;\nexports.clearFix = clearFix;\nexports.complement = complement;\nexports.cover = cover;\nexports.cssVar = cssVar;\nexports.darken = curriedDarken$1;\nexports.desaturate = curriedDesaturate$1;\nexports.directionalProperty = directionalProperty;\nexports.easeIn = easeIn;\nexports.easeInOut = easeInOut;\nexports.easeOut = easeOut;\nexports.ellipsis = ellipsis;\nexports.em = em$1;\nexports.fluidRange = fluidRange;\nexports.fontFace = fontFace;\nexports.getContrast = getContrast;\nexports.getLuminance = getLuminance;\nexports.getValueAndUnit = getValueAndUnit;\nexports.grayscale = grayscale;\nexports.hiDPI = hiDPI;\nexports.hideText = hideText;\nexports.hideVisually = hideVisually;\nexports.hsl = hsl;\nexports.hslToColorString = hslToColorString;\nexports.hsla = hsla;\nexports.important = important;\nexports.invert = invert;\nexports.lighten = curriedLighten$1;\nexports.linearGradient = linearGradient;\nexports.margin = margin;\nexports.math = math;\nexports.meetsContrastGuidelines = meetsContrastGuidelines;\nexports.mix = mix$1;\nexports.modularScale = modularScale;\nexports.normalize = normalize;\nexports.opacify = curriedOpacify$1;\nexports.padding = padding;\nexports.parseToHsl = parseToHsl;\nexports.parseToRgb = parseToRgb;\nexports.position = position;\nexports.radialGradient = radialGradient;\nexports.readableColor = readableColor;\nexports.rem = rem$1;\nexports.remToPx = remToPx;\nexports.retinaImage = retinaImage;\nexports.rgb = rgb;\nexports.rgbToColorString = rgbToColorString;\nexports.rgba = rgba;\nexports.saturate = curriedSaturate$1;\nexports.setHue = curriedSetHue$1;\nexports.setLightness = curriedSetLightness$1;\nexports.setSaturation = curriedSetSaturation$1;\nexports.shade = curriedShade$1;\nexports.size = size;\nexports.stripUnit = stripUnit;\nexports.textInputs = textInputs;\nexports.timingFunctions = timingFunctions;\nexports.tint = curriedTint$1;\nexports.toColorString = toColorString;\nexports.transitions = transitions;\nexports.transparentize = curriedTransparentize$1;\nexports.triangle = triangle;\nexports.wordWrap = wordWrap;\n", "function _extends() {\n  module.exports = _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;", "function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;", "var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n  if (source == null) return {};\n  var target = objectWithoutPropertiesLoose(source, excluded);\n  var key, i;\n\n  if (Object.getOwnPropertySymbols) {\n    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n    for (i = 0; i < sourceSymbolKeys.length; i++) {\n      key = sourceSymbolKeys[i];\n      if (excluded.indexOf(key) >= 0) continue;\n      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n      target[key] = source[key];\n    }\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutProperties;", "function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}\n\nmodule.exports = _defineProperty;", "function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;", "var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n  if (source == null) return {};\n  var target = objectWithoutPropertiesLoose(source, excluded);\n  var key, i;\n\n  if (Object.getOwnPropertySymbols) {\n    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n    for (i = 0; i < sourceSymbolKeys.length; i++) {\n      key = sourceSymbolKeys[i];\n      if (excluded.indexOf(key) >= 0) continue;\n      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n      target[key] = source[key];\n    }\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutProperties;", "function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}\n\nmodule.exports = _defineProperty;", "function _extends() {\n  module.exports = _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;", "function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;", "var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n  if (source == null) return {};\n  var target = objectWithoutPropertiesLoose(source, excluded);\n  var key, i;\n\n  if (Object.getOwnPropertySymbols) {\n    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n    for (i = 0; i < sourceSymbolKeys.length; i++) {\n      key = sourceSymbolKeys[i];\n      if (excluded.indexOf(key) >= 0) continue;\n      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n      target[key] = source[key];\n    }\n  }\n\n  return target;\n}\n\nmodule.exports = _objectWithoutProperties;", "module.exports = {\"tree\":\"Tree-tree-ddba4a1\",\"item\":\"Tree-item-776185d\",\"group\":\"Tree-group-85df119\",\"label\":\"Tree-label-e7fff82\",\"focusWhite\":\"Tree-focusWhite-6d8eebe\",\"arrow\":\"Tree-arrow-45ee476\",\"hover\":\"Tree-hover-2d99962\",\"open\":\"Tree-open-8347c0c\",\"dark\":\"Tree-dark-81daf71\",\"chrome\":\"Tree-chrome-8cc5692\",\"light\":\"Tree-light-f3e136b\"};", "module.exports = {\"object-inspector\":\"ObjectInspector-object-inspector-1712cb3\",\"objectInspector\":\"ObjectInspector-object-inspector-1712cb3\",\"object-label\":\"ObjectInspector-object-label-1fe41a1\",\"objectLabel\":\"ObjectInspector-object-label-1fe41a1\",\"text\":\"ObjectInspector-text-3cabc73\",\"key\":\"ObjectInspector-key-ea9c97a\",\"value\":\"ObjectInspector-value-cb224fc\",\"string\":\"ObjectInspector-string-34a5aea\",\"regex\":\"ObjectInspector-regex-dfd0188\",\"error\":\"ObjectInspector-error-455933d\",\"boolean\":\"ObjectInspector-boolean-fc65145\",\"number\":\"ObjectInspector-number-1e07ddc\",\"undefined\":\"ObjectInspector-undefined-cacaf4c\",\"null\":\"ObjectInspector-null-5e478fb\",\"function\":\"ObjectInspector-function-6ceb32b\",\"function-decorator\":\"ObjectInspector-function-decorator-9ae56ed\",\"functionDecorator\":\"ObjectInspector-function-decorator-9ae56ed\",\"prototype\":\"ObjectInspector-prototype-7f234e6\",\"dark\":\"ObjectInspector-dark-5256293\",\"chrome\":\"ObjectInspector-chrome-6fb346b\",\"light\":\"ObjectInspector-light-9e4a42d\"};", "import './dist/esm/manager';\n", "import { addons, types } from '@storybook/addons';\nimport { ADDON_ID, PANEL_ID } from './constants';\nimport { Panel } from './Panel';\naddons.register(ADDON_ID, () => {\n  addons.add(PANEL_ID, {\n    type: types.PANEL,\n    title: 'Interactions',\n    match: ({\n      viewMode\n    }) => viewMode === 'story',\n    render: Panel\n  });\n});", "export default __STORYBOOKADDONS__;\nconst { AddonStore, Channel, HooksContext, addons, applyHooks, isSupportedType, makeDecorator, mockChannel, types, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext } = __STORYBOOKADDONS__;\nexport { AddonStore, Channel, HooksContext, addons, applyHooks, isSupportedType, makeDecorator, mockChannel, types, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext };", "export const ADDON_ID = 'storybook/interactions';\nexport const PANEL_ID = `${ADDON_ID}/panel`;", "const _excluded = [\"status\"];\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport global from 'global';\nimport * as React from 'react';\nimport { useChannel, useParameter } from '@storybook/api';\nimport { FORCE_REMOUNT, IGNORED_EXCEPTION, STORY_RENDER_PHASE_CHANGED, STORY_THREW_EXCEPTION, PLAY_FUNCTION_THREW_EXCEPTION } from '@storybook/core-events';\nimport { EVENTS, CallStates } from '@storybook/instrumenter';\nimport { InteractionsPanel } from './components/InteractionsPanel';\nimport { TabIcon, TabStatus } from './components/TabStatus';\nconst INITIAL_CONTROL_STATES = {\n  debugger: false,\n  start: false,\n  back: false,\n  goto: false,\n  next: false,\n  end: false\n};\nexport const getInteractions = ({\n  log,\n  calls,\n  collapsed,\n  setCollapsed\n}) => {\n  const callsById = new Map();\n  const childCallMap = new Map();\n  return log.filter(({\n    callId,\n    parentId\n  }) => {\n    if (!parentId) return true;\n    childCallMap.set(parentId, (childCallMap.get(parentId) || []).concat(callId));\n    return !collapsed.has(parentId);\n  }).map(({\n    callId,\n    status\n  }) => Object.assign({}, calls.get(callId), {\n    status\n  })).map(call => {\n    const status = call.status === CallStates.ERROR && callsById.get(call.parentId)?.status === CallStates.ACTIVE ? CallStates.ACTIVE : call.status;\n    callsById.set(call.id, Object.assign({}, call, {\n      status\n    }));\n    return Object.assign({}, call, {\n      status,\n      childCallIds: childCallMap.get(call.id),\n      isCollapsed: collapsed.has(call.id),\n      toggleCollapsed: () => setCollapsed(ids => {\n        if (ids.has(call.id)) ids.delete(call.id);else ids.add(call.id);\n        return new Set(ids);\n      })\n    });\n  });\n};\nexport const Panel = props => {\n  const [storyId, setStoryId] = React.useState();\n  const [controlStates, setControlStates] = React.useState(INITIAL_CONTROL_STATES);\n  const [pausedAt, setPausedAt] = React.useState();\n  const [isErrored, setErrored] = React.useState(false);\n  const [isPlaying, setPlaying] = React.useState(false);\n  const [isRerunAnimating, setIsRerunAnimating] = React.useState(false);\n  const [scrollTarget, setScrollTarget] = React.useState();\n  const [collapsed, setCollapsed] = React.useState(new Set());\n  const [caughtException, setCaughtException] = React.useState();\n  const [interactions, setInteractions] = React.useState([]);\n  const [interactionsCount, setInteractionsCount] = React.useState(); // Calls are tracked in a ref so we don't needlessly rerender.\n\n  const calls = React.useRef(new Map());\n\n  const setCall = _ref => {\n    let call = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n    return calls.current.set(call.id, call);\n  };\n\n  const endRef = React.useRef();\n  React.useEffect(() => {\n    let observer;\n\n    if (global.window.IntersectionObserver) {\n      observer = new global.window.IntersectionObserver(([end]) => setScrollTarget(end.isIntersecting ? undefined : end.target), {\n        root: global.window.document.querySelector('#panel-tab-content')\n      });\n      if (endRef.current) observer.observe(endRef.current);\n    }\n\n    return () => observer?.disconnect();\n  }, []);\n  const emit = useChannel({\n    [EVENTS.CALL]: setCall,\n    [EVENTS.SYNC]: payload => {\n      setControlStates(payload.controlStates);\n      setPausedAt(payload.pausedAt);\n      setInteractions(getInteractions({\n        log: payload.logItems,\n        calls: calls.current,\n        collapsed,\n        setCollapsed\n      }));\n    },\n    [STORY_RENDER_PHASE_CHANGED]: event => {\n      setStoryId(event.storyId);\n      setPlaying(event.newPhase === 'playing');\n      setPausedAt(undefined);\n\n      if (event.newPhase === 'rendering') {\n        setErrored(false);\n        setCaughtException(undefined);\n      }\n    },\n    [STORY_THREW_EXCEPTION]: () => {\n      setErrored(true);\n    },\n    [PLAY_FUNCTION_THREW_EXCEPTION]: e => {\n      console.log('PLAY_FUNCTION_THREW_EXCEPTION');\n      if (e?.message !== IGNORED_EXCEPTION.message) setCaughtException(e);else setCaughtException(undefined);\n    }\n  }, [collapsed]);\n  React.useEffect(() => {\n    if (isPlaying || isRerunAnimating) return;\n    setInteractionsCount(interactions.length);\n  }, [interactions, isPlaying, isRerunAnimating]);\n  const controls = React.useMemo(() => ({\n    start: () => emit(EVENTS.START, {\n      storyId\n    }),\n    back: () => emit(EVENTS.BACK, {\n      storyId\n    }),\n    goto: callId => emit(EVENTS.GOTO, {\n      storyId,\n      callId\n    }),\n    next: () => emit(EVENTS.NEXT, {\n      storyId\n    }),\n    end: () => emit(EVENTS.END, {\n      storyId\n    }),\n    rerun: () => {\n      setIsRerunAnimating(true);\n      emit(FORCE_REMOUNT, {\n        storyId\n      });\n    }\n  }), [storyId]);\n  const storyFilePath = useParameter('fileName', '');\n  const [fileName] = storyFilePath.toString().split('/').slice(-1);\n\n  const scrollToTarget = () => scrollTarget?.scrollIntoView({\n    behavior: 'smooth',\n    block: 'end'\n  });\n\n  const showStatus = interactionsCount > 0 || !!caughtException || isRerunAnimating;\n  const hasException = !!caughtException || interactions.some(v => v.status === CallStates.ERROR);\n\n  if (isErrored) {\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: \"interactions\"\n    });\n  }\n\n  return /*#__PURE__*/React.createElement(React.Fragment, {\n    key: \"interactions\"\n  }, /*#__PURE__*/React.createElement(TabStatus, null, showStatus && (hasException ? /*#__PURE__*/React.createElement(TabIcon, {\n    status: CallStates.ERROR\n  }) : ` (${interactionsCount})`)), /*#__PURE__*/React.createElement(InteractionsPanel, _extends({\n    calls: calls.current,\n    controls: controls,\n    controlStates: controlStates,\n    interactions: interactions,\n    fileName: fileName,\n    hasException: hasException,\n    caughtException: caughtException,\n    isPlaying: isPlaying,\n    pausedAt: pausedAt,\n    endRef: endRef,\n    onScrollToEnd: scrollTarget && scrollToTarget,\n    isRerunAnimating: isRerunAnimating,\n    setIsRerunAnimating: setIsRerunAnimating\n  }, props)));\n};", "export default __REACT__;\nconst { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version } = __REACT__;\nexport { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version };", "export default __STORYBOOKAPI__;\nconst { ActiveTabs, Consumer, ManagerContext, Provider, combineParameters, merge, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState } = __STORYBOOKAPI__;\nexport { ActiveTabs, Consumer, ManagerContext, Provider, combineParameters, merge, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };", "export default __STORYBOOKCOREEVENTS__;\nconst { CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_RENDERED, FORCE_REMOUNT, FORCE_RE_RENDER, GLOBALS_UPDATED, IGNORED_EXCEPTION, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_GLOBALS, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS } = __STORYBOOKCOREEVENTS__;\nexport { CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_RENDERED, FORCE_REMOUNT, FORCE_RE_RENDER, GLOBALS_UPDATED, IGNORED_EXCEPTION, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_GLOBALS, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS };", "export { EVENTS, instrument } from './instrumenter';\nexport * from './types';", "import \"core-js/modules/es.regexp.flags.js\";\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n/* eslint-disable no-underscore-dangle */\nimport { addons } from '@storybook/addons';\nimport { logger, once } from '@storybook/client-logger';\nimport { FORCE_REMOUNT, IGNORED_EXCEPTION, SET_CURRENT_STORY, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';\nimport global from 'global';\nimport { CallStates } from './types';\nexport const EVENTS = {\n  CALL: 'instrumenter/call',\n  SYNC: 'instrumenter/sync',\n  START: 'instrumenter/start',\n  BACK: 'instrumenter/back',\n  GOTO: 'instrumenter/goto',\n  NEXT: 'instrumenter/next',\n  END: 'instrumenter/end'\n};\nconst debuggerDisabled = global.FEATURES?.interactionsDebugger !== true;\nconst controlsDisabled = {\n  debugger: !debuggerDisabled,\n  start: false,\n  back: false,\n  goto: false,\n  next: false,\n  end: false\n};\nconst alreadyCompletedException = new Error(`This function ran after the play function completed. Did you forget to \\`await\\` it?`);\n\nconst isObject = o => Object.prototype.toString.call(o) === '[object Object]';\n\nconst isModule = o => Object.prototype.toString.call(o) === '[object Module]';\n\nconst isInstrumentable = o => {\n  if (!isObject(o) && !isModule(o)) return false;\n  if (o.constructor === undefined) return true;\n  const proto = o.constructor.prototype;\n  if (!isObject(proto)) return false;\n  if (Object.prototype.hasOwnProperty.call(proto, 'isPrototypeOf') === false) return false;\n  return true;\n};\n\nconst construct = obj => {\n  try {\n    return new obj.constructor();\n  } catch (e) {\n    return {};\n  }\n};\n\nconst getInitialState = () => ({\n  renderPhase: undefined,\n  isDebugging: false,\n  isPlaying: false,\n  isLocked: false,\n  cursor: 0,\n  calls: [],\n  shadowCalls: [],\n  callRefsByResult: new Map(),\n  chainedCallIds: new Set(),\n  parentId: undefined,\n  playUntil: undefined,\n  resolvers: {},\n  syncTimeout: undefined\n});\n\nconst getRetainedState = (state, isDebugging = false) => {\n  const calls = (isDebugging ? state.shadowCalls : state.calls).filter(call => call.retain);\n  if (!calls.length) return undefined;\n  const callRefsByResult = new Map(Array.from(state.callRefsByResult.entries()).filter(([, ref]) => ref.retain));\n  return {\n    cursor: calls.length,\n    calls,\n    callRefsByResult\n  };\n};\n/**\n * This class is not supposed to be used directly. Use the `instrument` function below instead.\n */\n\n\nexport class Instrumenter {\n  // State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode)\n  constructor() {\n    this.channel = void 0;\n    this.initialized = false;\n    this.state = void 0;\n    this.channel = addons.getChannel(); // Restore state from the parent window in case the iframe was reloaded.\n\n    this.state = global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {}; // When called from `start`, isDebugging will be true\n\n    const resetState = ({\n      storyId,\n      isPlaying = true,\n      isDebugging = false\n    }) => {\n      const state = this.getState(storyId);\n      this.setState(storyId, Object.assign({}, getInitialState(), getRetainedState(state, isDebugging), {\n        shadowCalls: isDebugging ? state.shadowCalls : [],\n        chainedCallIds: isDebugging ? state.chainedCallIds : new Set(),\n        playUntil: isDebugging ? state.playUntil : undefined,\n        isPlaying,\n        isDebugging\n      })); // Don't sync while debugging, as it'll cause flicker.\n\n      if (!isDebugging) this.sync(storyId);\n    }; // A forceRemount might be triggered for debugging (on `start`), or elsewhere in Storybook.\n\n\n    this.channel.on(FORCE_REMOUNT, resetState); // Start with a clean slate before playing after a remount, and stop debugging when done.\n\n    this.channel.on(STORY_RENDER_PHASE_CHANGED, ({\n      storyId,\n      newPhase\n    }) => {\n      const {\n        isDebugging\n      } = this.getState(storyId);\n      this.setState(storyId, {\n        renderPhase: newPhase\n      });\n\n      if (newPhase === 'preparing' && isDebugging) {\n        resetState({\n          storyId\n        });\n      }\n\n      if (newPhase === 'playing') {\n        resetState({\n          storyId,\n          isDebugging\n        });\n      }\n\n      if (newPhase === 'played') {\n        this.setState(storyId, {\n          isLocked: false,\n          isPlaying: false,\n          isDebugging: false\n        });\n      }\n\n      if (newPhase === 'errored') {\n        this.setState(storyId, {\n          isLocked: false,\n          isPlaying: false\n        });\n      }\n    }); // Trash non-retained state and clear the log when switching stories, but not on initial boot.\n\n    this.channel.on(SET_CURRENT_STORY, () => {\n      if (this.initialized) this.cleanup();else this.initialized = true;\n    });\n\n    const start = ({\n      storyId,\n      playUntil\n    }) => {\n      if (!this.getState(storyId).isDebugging) {\n        this.setState(storyId, ({\n          calls\n        }) => ({\n          calls: [],\n          shadowCalls: calls.map(call => Object.assign({}, call, {\n            status: CallStates.WAITING\n          })),\n          isDebugging: true\n        }));\n      }\n\n      const log = this.getLog(storyId);\n      this.setState(storyId, ({\n        shadowCalls\n      }) => {\n        const firstRowIndex = shadowCalls.findIndex(call => call.id === log[0].callId);\n        return {\n          playUntil: playUntil || shadowCalls.slice(0, firstRowIndex).filter(call => call.interceptable && !call.parentId).slice(-1)[0]?.id\n        };\n      }); // Force remount may trigger a page reload if the play function can't be aborted.\n\n      this.channel.emit(FORCE_REMOUNT, {\n        storyId,\n        isDebugging: true\n      });\n    };\n\n    const back = ({\n      storyId\n    }) => {\n      const log = this.getLog(storyId).filter(call => !call.parentId);\n      const last = log.reduceRight((res, item, index) => {\n        if (res >= 0 || item.status === CallStates.WAITING) return res;\n        return index;\n      }, -1);\n      start({\n        storyId,\n        playUntil: log[last - 1]?.callId\n      });\n    };\n\n    const goto = ({\n      storyId,\n      callId\n    }) => {\n      const {\n        calls,\n        shadowCalls,\n        resolvers\n      } = this.getState(storyId);\n      const call = calls.find(({\n        id\n      }) => id === callId);\n      const shadowCall = shadowCalls.find(({\n        id\n      }) => id === callId);\n\n      if (!call && shadowCall && Object.values(resolvers).length > 0) {\n        const nextId = this.getLog(storyId).find(c => c.status === CallStates.WAITING)?.callId;\n        if (shadowCall.id !== nextId) this.setState(storyId, {\n          playUntil: shadowCall.id\n        });\n        Object.values(resolvers).forEach(resolve => resolve());\n      } else {\n        start({\n          storyId,\n          playUntil: callId\n        });\n      }\n    };\n\n    const next = ({\n      storyId\n    }) => {\n      const {\n        resolvers\n      } = this.getState(storyId);\n\n      if (Object.values(resolvers).length > 0) {\n        Object.values(resolvers).forEach(resolve => resolve());\n      } else {\n        const nextId = this.getLog(storyId).find(c => c.status === CallStates.WAITING)?.callId;\n        if (nextId) start({\n          storyId,\n          playUntil: nextId\n        });else end({\n          storyId\n        });\n      }\n    };\n\n    const end = ({\n      storyId\n    }) => {\n      this.setState(storyId, {\n        playUntil: undefined,\n        isDebugging: false\n      });\n      Object.values(this.getState(storyId).resolvers).forEach(resolve => resolve());\n    };\n\n    this.channel.on(EVENTS.START, start);\n    this.channel.on(EVENTS.BACK, back);\n    this.channel.on(EVENTS.GOTO, goto);\n    this.channel.on(EVENTS.NEXT, next);\n    this.channel.on(EVENTS.END, end);\n  }\n\n  getState(storyId) {\n    return this.state[storyId] || getInitialState();\n  }\n\n  setState(storyId, update) {\n    const state = this.getState(storyId);\n    const patch = typeof update === 'function' ? update(state) : update;\n    this.state = Object.assign({}, this.state, {\n      [storyId]: Object.assign({}, state, patch)\n    }); // Track state on the parent window so we can reload the iframe without losing state.\n\n    global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;\n  }\n\n  cleanup() {\n    // Reset stories with retained state to their initial state, and drop the rest.\n    this.state = Object.entries(this.state).reduce((acc, [storyId, state]) => {\n      const retainedState = getRetainedState(state);\n      if (!retainedState) return acc;\n      acc[storyId] = Object.assign(getInitialState(), retainedState);\n      return acc;\n    }, {});\n    const payload = {\n      controlStates: controlsDisabled,\n      logItems: []\n    };\n    this.channel.emit(EVENTS.SYNC, payload);\n    global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;\n  }\n\n  getLog(storyId) {\n    const {\n      calls,\n      shadowCalls\n    } = this.getState(storyId);\n    const merged = [...shadowCalls];\n    calls.forEach((call, index) => {\n      merged[index] = call;\n    });\n    const seen = new Set();\n    return merged.reduceRight((acc, call) => {\n      call.args.forEach(arg => {\n        if (arg?.__callId__) {\n          seen.add(arg.__callId__);\n        }\n      });\n      call.path.forEach(node => {\n        if (node.__callId__) {\n          seen.add(node.__callId__);\n        }\n      });\n\n      if ((call.interceptable || call.exception) && !seen.has(call.id)) {\n        acc.unshift({\n          callId: call.id,\n          status: call.status,\n          parentId: call.parentId\n        });\n        seen.add(call.id);\n      }\n\n      return acc;\n    }, []);\n  } // Traverses the object structure to recursively patch all function properties.\n  // Returns the original object, or a new object with the same constructor,\n  // depending on whether it should mutate.\n\n\n  instrument(obj, options) {\n    if (!isInstrumentable(obj)) return obj;\n    const {\n      mutate = false,\n      path = []\n    } = options;\n    return Object.keys(obj).reduce((acc, key) => {\n      const value = obj[key]; // Nothing to patch, but might be instrumentable, so we recurse\n\n      if (typeof value !== 'function') {\n        acc[key] = this.instrument(value, Object.assign({}, options, {\n          path: path.concat(key)\n        }));\n        return acc;\n      } // Already patched, so we pass through unchanged\n\n\n      if (typeof value.__originalFn__ === 'function') {\n        acc[key] = value;\n        return acc;\n      } // Patch the function and mark it \"patched\" by adding a reference to the original function\n\n\n      acc[key] = (...args) => this.track(key, value, args, options);\n\n      acc[key].__originalFn__ = value; // Reuse the original name as the patched function's name\n\n      Object.defineProperty(acc[key], 'name', {\n        value: key,\n        writable: false\n      }); // Deal with functions that also act like an object\n\n      if (Object.keys(value).length > 0) {\n        Object.assign(acc[key], this.instrument(Object.assign({}, value), Object.assign({}, options, {\n          path: path.concat(key)\n        })));\n      }\n\n      return acc;\n    }, mutate ? obj : construct(obj));\n  } // Monkey patch an object method to record calls.\n  // Returns a function that invokes the original function, records the invocation (\"call\") and\n  // returns the original result.\n\n\n  track(method, fn, args, options) {\n    const storyId = args?.[0]?.__storyId__ || global.window.__STORYBOOK_PREVIEW__?.urlStore?.selection?.storyId;\n    const {\n      cursor,\n      parentId\n    } = this.getState(storyId);\n    this.setState(storyId, {\n      cursor: cursor + 1\n    });\n    const id = `${parentId || storyId} [${cursor}] ${method}`;\n    const {\n      path = [],\n      intercept = false,\n      retain = false\n    } = options;\n    const interceptable = typeof intercept === 'function' ? intercept(method, path) : intercept;\n    const call = {\n      id,\n      parentId,\n      storyId,\n      cursor,\n      path,\n      method,\n      args,\n      interceptable,\n      retain\n    };\n    const interceptOrInvoke = interceptable && !parentId ? this.intercept : this.invoke;\n    const result = interceptOrInvoke.call(this, fn, call, options);\n    return this.instrument(result, Object.assign({}, options, {\n      mutate: true,\n      path: [{\n        __callId__: call.id\n      }]\n    }));\n  }\n\n  intercept(fn, call, options) {\n    const {\n      chainedCallIds,\n      isDebugging,\n      playUntil\n    } = this.getState(call.storyId); // For a \"jump to step\" action, continue playing until we hit a call by that ID.\n    // For chained calls, we can only return a Promise for the last call in the chain.\n\n    const isChainedUpon = chainedCallIds.has(call.id);\n\n    if (!isDebugging || isChainedUpon || playUntil) {\n      if (playUntil === call.id) {\n        this.setState(call.storyId, {\n          playUntil: undefined\n        });\n      }\n\n      return this.invoke(fn, call, options);\n    } // Instead of invoking the function, defer the function call until we continue playing.\n\n\n    return new Promise(resolve => {\n      this.setState(call.storyId, ({\n        resolvers\n      }) => ({\n        isLocked: false,\n        resolvers: Object.assign({}, resolvers, {\n          [call.id]: resolve\n        })\n      }));\n    }).then(() => {\n      this.setState(call.storyId, state => {\n        const _state$resolvers = state.resolvers,\n              _call$id = call.id,\n              resolvers = _objectWithoutPropertiesLoose(_state$resolvers, [_call$id].map(_toPropertyKey));\n\n        return {\n          isLocked: true,\n          resolvers\n        };\n      });\n      return this.invoke(fn, call, options);\n    });\n  }\n\n  invoke(fn, call, options) {\n    // TODO this doesnt work because the abortSignal we have here is the newly created one\n    // const { abortSignal } = global.window.__STORYBOOK_PREVIEW__ || {};\n    // if (abortSignal && abortSignal.aborted) throw IGNORED_EXCEPTION;\n    const {\n      callRefsByResult,\n      renderPhase\n    } = this.getState(call.storyId); // Map complex values to a JSON-serializable representation.\n\n    const serializeValues = value => {\n      if (callRefsByResult.has(value)) {\n        return callRefsByResult.get(value);\n      }\n\n      if (value instanceof Array) {\n        return value.map(serializeValues);\n      }\n\n      if (value instanceof Date) {\n        return {\n          __date__: {\n            value: value.toISOString()\n          }\n        };\n      }\n\n      if (value instanceof Error) {\n        const {\n          name,\n          message,\n          stack\n        } = value;\n        return {\n          __error__: {\n            name,\n            message,\n            stack\n          }\n        };\n      }\n\n      if (value instanceof RegExp) {\n        const {\n          flags,\n          source\n        } = value;\n        return {\n          __regexp__: {\n            flags,\n            source\n          }\n        };\n      }\n\n      if (value instanceof global.window.HTMLElement) {\n        const {\n          prefix,\n          localName,\n          id,\n          classList,\n          innerText\n        } = value;\n        const classNames = Array.from(classList);\n        return {\n          __element__: {\n            prefix,\n            localName,\n            id,\n            classNames,\n            innerText\n          }\n        };\n      }\n\n      if (typeof value === 'function') {\n        return {\n          __function__: {\n            name: value.name\n          }\n        };\n      }\n\n      if (typeof value === 'symbol') {\n        return {\n          __symbol__: {\n            description: value.description\n          }\n        };\n      }\n\n      if (typeof value === 'object' && value?.constructor?.name && value?.constructor?.name !== 'Object') {\n        return {\n          __class__: {\n            name: value.constructor.name\n          }\n        };\n      }\n\n      if (Object.prototype.toString.call(value) === '[object Object]') {\n        return Object.fromEntries(Object.entries(value).map(([key, val]) => [key, serializeValues(val)]));\n      }\n\n      return value;\n    };\n\n    const info = Object.assign({}, call, {\n      args: call.args.map(serializeValues)\n    }); // Mark any ancestor calls as \"chained upon\" so we won't attempt to defer it later.\n\n    call.path.forEach(ref => {\n      if (ref?.__callId__) {\n        this.setState(call.storyId, ({\n          chainedCallIds\n        }) => ({\n          chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__))\n        }));\n      }\n    });\n\n    const handleException = e => {\n      if (e instanceof Error) {\n        const {\n          name,\n          message,\n          stack,\n          callId = call.id\n        } = e;\n        const exception = {\n          name,\n          message,\n          stack,\n          callId\n        };\n        this.update(Object.assign({}, info, {\n          status: CallStates.ERROR,\n          exception\n        })); // Always track errors to their originating call.\n\n        this.setState(call.storyId, state => ({\n          callRefsByResult: new Map([...Array.from(state.callRefsByResult.entries()), [e, {\n            __callId__: call.id,\n            retain: call.retain\n          }]])\n        })); // Exceptions inside callbacks should bubble up to the parent call.\n\n        if (call.parentId) {\n          Object.defineProperty(e, 'callId', {\n            value: call.id\n          });\n          throw e;\n        } // We need to throw to break out of the play function, but we don't want to trigger a redbox\n        // so we throw an ignoredException, which is caught and silently ignored by Storybook.\n\n\n        if (e !== alreadyCompletedException) {\n          logger.warn(e);\n          throw IGNORED_EXCEPTION;\n        }\n      }\n\n      throw e;\n    };\n\n    try {\n      if (renderPhase === 'played' && !call.retain) {\n        throw alreadyCompletedException;\n      } // Some libraries override function args through the `getArgs` option.\n\n\n      const actualArgs = options.getArgs ? options.getArgs(call, this.getState(call.storyId)) : call.args; // Wrap any callback functions to provide a way to access their \"parent\" call.\n      // This is picked up in the `track` function and used for call metadata.\n\n      const finalArgs = actualArgs.map(arg => {\n        // We only want to wrap plain functions, not objects.\n        if (typeof arg !== 'function' || Object.keys(arg).length) return arg;\n        return (...args) => {\n          // Set the cursor and parentId for calls that happen inside the callback.\n          const {\n            cursor,\n            parentId\n          } = this.getState(call.storyId);\n          this.setState(call.storyId, {\n            cursor: 0,\n            parentId: call.id\n          });\n\n          const restore = () => this.setState(call.storyId, {\n            cursor,\n            parentId\n          }); // Invoke the actual callback function.\n\n\n          const res = arg(...args); // Reset cursor and parentId to their original values before we entered the callback.\n\n          if (res instanceof Promise) res.then(restore, restore);else restore();\n          return res;\n        };\n      });\n      const result = fn(...finalArgs); // Track the result so we can trace later uses of it back to the originating call.\n      // Primitive results (undefined, null, boolean, string, number, BigInt) are ignored.\n\n      if (result && ['object', 'function', 'symbol'].includes(typeof result)) {\n        this.setState(call.storyId, state => ({\n          callRefsByResult: new Map([...Array.from(state.callRefsByResult.entries()), [result, {\n            __callId__: call.id,\n            retain: call.retain\n          }]])\n        }));\n      }\n\n      this.update(Object.assign({}, info, {\n        status: result instanceof Promise ? CallStates.ACTIVE : CallStates.DONE\n      }));\n\n      if (result instanceof Promise) {\n        return result.then(value => {\n          this.update(Object.assign({}, info, {\n            status: CallStates.DONE\n          }));\n          return value;\n        }, handleException);\n      }\n\n      return result;\n    } catch (e) {\n      return handleException(e);\n    }\n  } // Sends the call info and log to the manager.\n  // Uses a 0ms debounce because this might get called many times in one tick.\n\n\n  update(call) {\n    clearTimeout(this.getState(call.storyId).syncTimeout);\n    this.channel.emit(EVENTS.CALL, call);\n    this.setState(call.storyId, ({\n      calls\n    }) => {\n      // Omit earlier calls for the same ID, which may have been superceded by a later invocation.\n      // This typically happens when calls are part of a callback which runs multiple times.\n      const callsById = calls.concat(call).reduce((a, c) => Object.assign(a, {\n        [c.id]: c\n      }), {});\n      return {\n        // Calls are sorted to ensure parent calls always come before calls in their callback.\n        calls: Object.values(callsById).sort((a, b) => a.id.localeCompare(b.id, undefined, {\n          numeric: true\n        })),\n        syncTimeout: setTimeout(() => this.sync(call.storyId), 0)\n      };\n    });\n  }\n\n  sync(storyId) {\n    const {\n      isLocked,\n      isPlaying\n    } = this.getState(storyId);\n    const logItems = this.getLog(storyId);\n    const pausedAt = logItems.filter(({\n      parentId\n    }) => !parentId).find(item => item.status === CallStates.WAITING)?.callId;\n    const hasActive = logItems.some(item => item.status === CallStates.ACTIVE);\n\n    if (debuggerDisabled || isLocked || hasActive || logItems.length === 0) {\n      const payload = {\n        controlStates: controlsDisabled,\n        logItems\n      };\n      this.channel.emit(EVENTS.SYNC, payload);\n      return;\n    }\n\n    const hasPrevious = logItems.some(item => [CallStates.DONE, CallStates.ERROR].includes(item.status));\n    const controlStates = {\n      debugger: true,\n      start: hasPrevious,\n      back: hasPrevious,\n      goto: true,\n      next: isPlaying,\n      end: isPlaying\n    };\n    const payload = {\n      controlStates,\n      logItems,\n      pausedAt\n    };\n    this.channel.emit(EVENTS.SYNC, payload);\n  }\n\n}\n/**\n * Instruments an object or module by traversing its properties, patching any functions (methods)\n * to enable debugging. Patched functions will emit a `call` event when invoked.\n * When intercept = true, patched functions will return a Promise when the debugger stops before\n * this function. As such, \"interceptable\" functions will have to be `await`-ed.\n */\n\nexport function instrument(obj, options = {}) {\n  try {\n    // Don't do any instrumentation if not loaded in an iframe.\n    if (global.window.parent === global.window) return obj; // Only create an instance if we don't have one (singleton) yet.\n\n    if (!global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__) {\n      global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Instrumenter();\n    }\n\n    const instrumenter = global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__;\n    return instrumenter.instrument(obj, options);\n  } catch (e) {\n    // Access to the parent window might fail due to CORS restrictions.\n    once.warn(e);\n    return obj;\n  }\n}", "var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError\nvar RegExp = global.RegExp;\nvar RegExpPrototype = RegExp.prototype;\n\nvar FORCED = DESCRIPTORS && fails(function () {\n  var INDICES_SUPPORT = true;\n  try {\n    RegExp('.', 'd');\n  } catch (error) {\n    INDICES_SUPPORT = false;\n  }\n\n  var O = {};\n  // modern V8 bug\n  var calls = '';\n  var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';\n\n  var addGetter = function (key, chr) {\n    // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n    Object.defineProperty(O, key, { get: function () {\n      calls += chr;\n      return true;\n    } });\n  };\n\n  var pairs = {\n    dotAll: 's',\n    global: 'g',\n    ignoreCase: 'i',\n    multiline: 'm',\n    sticky: 'y'\n  };\n\n  if (INDICES_SUPPORT) pairs.hasIndices = 'd';\n\n  for (var key in pairs) addGetter(key, pairs[key]);\n\n  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\n  var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);\n\n  return result !== expected || calls !== expected;\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {\n  configurable: true,\n  get: regExpFlags\n});\n", "export default __STORYBOOKCLIENTLOGGER__;\nconst { logger, once, pretty } = __STORYBOOKCLIENTLOGGER__;\nexport { logger, once, pretty };", "export let CallStates;\n\n(function (CallStates) {\n  CallStates[\"DONE\"] = \"done\";\n  CallStates[\"ERROR\"] = \"error\";\n  CallStates[\"ACTIVE\"] = \"active\";\n  CallStates[\"WAITING\"] = \"waiting\";\n})(CallStates || (CallStates = {}));", "const _excluded = [\"calls\", \"controls\", \"controlStates\", \"interactions\", \"fileName\", \"hasException\", \"caughtException\", \"isPlaying\", \"pausedAt\", \"onScrollToEnd\", \"endRef\", \"isRerunAnimating\", \"setIsRerunAnimating\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { AddonPanel, Link, Placeholder } from '@storybook/components';\nimport { CallStates } from '@storybook/instrumenter';\nimport { styled } from '@storybook/theming';\nimport { transparentize } from 'polished';\nimport { Subnav } from './Subnav';\nimport { Interaction } from './Interaction';\nconst Container = styled.div(({\n  theme,\n  withException\n}) => Object.assign({\n  minHeight: '100%',\n  background: theme.background.content\n}, withException && {\n  backgroundColor: theme.base === 'dark' ? transparentize(0.93, theme.color.negative) : theme.background.warning\n}));\nconst CaughtException = styled.div(({\n  theme\n}) => ({\n  padding: 15,\n  fontSize: theme.typography.size.s2 - 1,\n  lineHeight: '19px'\n}));\nconst CaughtExceptionCode = styled.code(({\n  theme\n}) => ({\n  margin: '0 1px',\n  padding: 3,\n  fontSize: theme.typography.size.s1 - 1,\n  lineHeight: 1,\n  verticalAlign: 'top',\n  background: 'rgba(0, 0, 0, 0.05)',\n  border: `1px solid ${theme.color.border}`,\n  borderRadius: 3\n}));\nconst CaughtExceptionTitle = styled.div({\n  paddingBottom: 4,\n  fontWeight: 'bold'\n});\nconst CaughtExceptionDescription = styled.p({\n  margin: 0,\n  padding: '0 0 20px'\n});\nconst CaughtExceptionStack = styled.pre(({\n  theme\n}) => ({\n  margin: 0,\n  padding: 0,\n  fontSize: theme.typography.size.s1 - 1\n}));\nexport const InteractionsPanel = /*#__PURE__*/React.memo(_ref => {\n  let {\n    calls,\n    controls,\n    controlStates,\n    interactions,\n    fileName,\n    hasException,\n    caughtException,\n    isPlaying,\n    pausedAt,\n    onScrollToEnd,\n    endRef,\n    isRerunAnimating,\n    setIsRerunAnimating\n  } = _ref,\n      panelProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  return /*#__PURE__*/React.createElement(AddonPanel, panelProps, /*#__PURE__*/React.createElement(Container, {\n    withException: !!caughtException\n  }, controlStates.debugger && (interactions.length > 0 || hasException || isRerunAnimating) && /*#__PURE__*/React.createElement(Subnav, {\n    controls: controls,\n    controlStates: controlStates,\n    status: // eslint-disable-next-line no-nested-ternary\n    isPlaying ? CallStates.ACTIVE : hasException ? CallStates.ERROR : CallStates.DONE,\n    storyFileName: fileName,\n    onScrollToEnd: onScrollToEnd,\n    isRerunAnimating: isRerunAnimating,\n    setIsRerunAnimating: setIsRerunAnimating\n  }), /*#__PURE__*/React.createElement(\"div\", null, interactions.map(call => /*#__PURE__*/React.createElement(Interaction, {\n    key: call.id,\n    call: call,\n    callsById: calls,\n    controls: controls,\n    controlStates: controlStates,\n    childCallIds: call.childCallIds,\n    isCollapsed: call.isCollapsed,\n    toggleCollapsed: call.toggleCollapsed,\n    pausedAt: pausedAt\n  }))), caughtException && !caughtException.message?.startsWith('ignoredException') && /*#__PURE__*/React.createElement(CaughtException, null, /*#__PURE__*/React.createElement(CaughtExceptionTitle, null, \"Caught exception in \", /*#__PURE__*/React.createElement(CaughtExceptionCode, null, \"play\"), \" function\"), /*#__PURE__*/React.createElement(CaughtExceptionDescription, null, \"This story threw an error after it finished rendering which means your interactions couldn't be run. Go to this story's play function in \", fileName, \" to fix.\"), /*#__PURE__*/React.createElement(CaughtExceptionStack, {\n    \"data-chromatic\": \"ignore\"\n  }, caughtException.stack || `${caughtException.name}: ${caughtException.message}`)), /*#__PURE__*/React.createElement(\"div\", {\n    ref: endRef\n  }), !isPlaying && !caughtException && interactions.length === 0 && /*#__PURE__*/React.createElement(Placeholder, null, \"No interactions found\", /*#__PURE__*/React.createElement(Link, {\n    href: \"https://storybook.js.org/docs/react/writing-stories/play-function\",\n    target: \"_blank\",\n    withArrow: true\n  }, \"Learn how to add interactions to your story\"))));\n});", "export default __STORYBOOKCOMPONENTS__;\nconst { A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, Code, DL, Div, DocumentWrapper, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset } = __STORYBOOKCOMPONENTS__;\nexport { A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, Code, DL, Div, DocumentWrapper, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset };", "export default __STORYBOOKTHEMING__;\nconst { CacheProvider, ClassNames, Global, ThemeProvider, background, color, convert, create, createCache, createGlobal, createReset, css, darken, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, lighten, styled, themes, typography, useTheme, withTheme } = __STORYBOOKTHEMING__;\nexport { CacheProvider, ClassNames, Global, ThemeProvider, background, color, convert, create, createCache, createGlobal, createReset, css, darken, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, lighten, styled, themes, typography, useTheme, withTheme };", "import React from 'react';\nimport { Button, IconButton, Icons, Separator, P, TooltipNote, WithTooltip, Bar } from '@storybook/components';\nimport { CallStates } from '@storybook/instrumenter';\nimport { styled } from '@storybook/theming';\nimport { StatusBadge } from './StatusBadge';\nconst SubnavWrapper = styled.div(({\n  theme\n}) => ({\n  background: theme.background.app,\n  borderBottom: `1px solid ${theme.appBorderColor}`,\n  position: 'sticky',\n  top: 0,\n  zIndex: 1\n}));\nconst StyledSubnav = styled.nav(({\n  theme\n}) => ({\n  height: 40,\n  display: 'flex',\n  alignItems: 'center',\n  justifyContent: 'space-between',\n  paddingLeft: 15\n}));\nconst StyledButton = styled(Button)(({\n  theme\n}) => ({\n  borderRadius: 4,\n  padding: 6,\n  color: theme.textMutedColor,\n  '&:not(:disabled)': {\n    '&:hover,&:focus-visible': {\n      color: theme.color.secondary\n    }\n  }\n}));\nconst Note = styled(TooltipNote)(({\n  theme\n}) => ({\n  fontFamily: theme.typography.fonts.base\n}));\nexport const StyledIconButton = styled(IconButton)(({\n  theme\n}) => ({\n  color: theme.color.mediumdark,\n  margin: '0 3px'\n}));\nconst StyledSeparator = styled(Separator)({\n  marginTop: 0\n});\nconst StyledLocation = styled(P)(({\n  theme\n}) => ({\n  color: theme.textMutedColor,\n  justifyContent: 'flex-end',\n  textAlign: 'right',\n  whiteSpace: 'nowrap',\n  marginTop: 'auto',\n  marginBottom: 1,\n  paddingRight: 15,\n  fontSize: 13\n}));\nconst Group = styled.div({\n  display: 'flex',\n  alignItems: 'center'\n});\nconst RewindButton = styled(StyledIconButton)({\n  marginLeft: 9\n});\nconst JumpToEndButton = styled(StyledButton)({\n  marginLeft: 9,\n  marginRight: 9,\n  marginBottom: 1,\n  lineHeight: '12px'\n});\nconst RerunButton = styled(StyledIconButton)(({\n  theme,\n  animating,\n  disabled\n}) => ({\n  opacity: disabled ? 0.5 : 1,\n  svg: {\n    animation: animating && `${theme.animation.rotate360} 200ms ease-out`\n  }\n}));\nexport const Subnav = ({\n  controls,\n  controlStates,\n  status,\n  storyFileName,\n  onScrollToEnd,\n  isRerunAnimating,\n  setIsRerunAnimating\n}) => {\n  const buttonText = status === CallStates.ERROR ? 'Scroll to error' : 'Scroll to end';\n  return /*#__PURE__*/React.createElement(SubnavWrapper, null, /*#__PURE__*/React.createElement(Bar, null, /*#__PURE__*/React.createElement(StyledSubnav, null, /*#__PURE__*/React.createElement(Group, null, /*#__PURE__*/React.createElement(StatusBadge, {\n    status: status\n  }), /*#__PURE__*/React.createElement(JumpToEndButton, {\n    onClick: onScrollToEnd,\n    disabled: !onScrollToEnd\n  }, buttonText), /*#__PURE__*/React.createElement(StyledSeparator, null), /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: \"Go to start\"\n    })\n  }, /*#__PURE__*/React.createElement(RewindButton, {\n    \"aria-label\": \"Go to start\",\n    containsIcon: true,\n    onClick: controls.start,\n    disabled: !controlStates.start\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"rewind\"\n  }))), /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: \"Go back\"\n    })\n  }, /*#__PURE__*/React.createElement(StyledIconButton, {\n    \"aria-label\": \"Go back\",\n    containsIcon: true,\n    onClick: controls.back,\n    disabled: !controlStates.back\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"playback\"\n  }))), /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: \"Go forward\"\n    })\n  }, /*#__PURE__*/React.createElement(StyledIconButton, {\n    \"aria-label\": \"Go forward\",\n    containsIcon: true,\n    onClick: controls.next,\n    disabled: !controlStates.next\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"playnext\"\n  }))), /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: \"Go to end\"\n    })\n  }, /*#__PURE__*/React.createElement(StyledIconButton, {\n    \"aria-label\": \"Go to end\",\n    containsIcon: true,\n    onClick: controls.end,\n    disabled: !controlStates.end\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"fastforward\"\n  }))), /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: \"Rerun\"\n    })\n  }, /*#__PURE__*/React.createElement(RerunButton, {\n    \"aria-label\": \"Rerun\",\n    containsIcon: true,\n    onClick: controls.rerun,\n    onAnimationEnd: () => setIsRerunAnimating(false),\n    animating: isRerunAnimating,\n    disabled: isRerunAnimating\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"sync\"\n  })))), storyFileName && /*#__PURE__*/React.createElement(Group, null, /*#__PURE__*/React.createElement(StyledLocation, null, storyFileName)))));\n};", "import React from 'react';\nimport { CallStates } from '@storybook/instrumenter';\nimport { styled, typography } from '@storybook/theming';\nconst StyledBadge = styled.div(({\n  theme,\n  status\n}) => {\n  const backgroundColor = {\n    [CallStates.DONE]: theme.color.positive,\n    [CallStates.ERROR]: theme.color.negative,\n    [CallStates.ACTIVE]: theme.color.warning,\n    [CallStates.WAITING]: theme.color.warning\n  }[status];\n  return {\n    padding: '4px 6px 4px 8px;',\n    borderRadius: '4px',\n    backgroundColor,\n    color: 'white',\n    fontFamily: typography.fonts.base,\n    textTransform: 'uppercase',\n    fontSize: typography.size.s1,\n    letterSpacing: 3,\n    fontWeight: typography.weight.bold,\n    width: 65,\n    textAlign: 'center'\n  };\n});\nexport const StatusBadge = ({\n  status\n}) => {\n  const badgeText = {\n    [CallStates.DONE]: 'Pass',\n    [CallStates.ERROR]: 'Fail',\n    [CallStates.ACTIVE]: 'Runs',\n    [CallStates.WAITING]: 'Runs'\n  }[status];\n  return /*#__PURE__*/React.createElement(StyledBadge, {\n    status: status\n  }, badgeText);\n};", "import * as React from 'react';\nimport { IconButton, Icons, TooltipNote, WithTooltip } from '@storybook/components';\nimport { CallStates } from '@storybook/instrumenter';\nimport { styled, typography } from '@storybook/theming';\nimport { transparentize } from 'polished';\nimport { MatcherResult } from './MatcherResult';\nimport { MethodCall } from './MethodCall';\nimport { StatusIcon } from './StatusIcon';\nconst MethodCallWrapper = styled.div(() => ({\n  fontFamily: typography.fonts.mono,\n  fontSize: typography.size.s1,\n  overflowWrap: 'break-word',\n  inlineSize: 'calc( 100% - 40px )'\n}));\nconst RowContainer = styled('div', {\n  shouldForwardProp: prop => !['call', 'pausedAt'].includes(prop.toString())\n})(({\n  theme,\n  call\n}) => Object.assign({\n  position: 'relative',\n  display: 'flex',\n  flexDirection: 'column',\n  borderBottom: `1px solid ${theme.appBorderColor}`,\n  fontFamily: typography.fonts.base,\n  fontSize: 13\n}, call.status === CallStates.ERROR && {\n  backgroundColor: theme.base === 'dark' ? transparentize(0.93, theme.color.negative) : theme.background.warning\n}, {\n  paddingLeft: call.parentId ? 20 : 0\n}), ({\n  theme,\n  call,\n  pausedAt\n}) => pausedAt === call.id && {\n  '&::before': {\n    content: '\"\"',\n    position: 'absolute',\n    top: -5,\n    zIndex: 1,\n    borderTop: '4.5px solid transparent',\n    borderLeft: `7px solid ${theme.color.warning}`,\n    borderBottom: '4.5px solid transparent'\n  },\n  '&::after': {\n    content: '\"\"',\n    position: 'absolute',\n    top: -1,\n    zIndex: 1,\n    width: '100%',\n    borderTop: `1.5px solid ${theme.color.warning}`\n  }\n});\nconst RowHeader = styled.div(({\n  theme,\n  disabled\n}) => ({\n  display: 'flex',\n  '&:hover': disabled ? {} : {\n    background: theme.background.hoverable\n  }\n}));\nconst RowLabel = styled('button', {\n  shouldForwardProp: prop => !['call'].includes(prop.toString())\n})(({\n  theme,\n  disabled,\n  call\n}) => ({\n  flex: 1,\n  display: 'grid',\n  background: 'none',\n  border: 0,\n  gridTemplateColumns: '15px 1fr',\n  alignItems: 'center',\n  minHeight: 40,\n  margin: 0,\n  padding: '8px 15px',\n  textAlign: 'start',\n  cursor: disabled || call.status === CallStates.ERROR ? 'default' : 'pointer',\n  '&:focus-visible': {\n    outline: 0,\n    boxShadow: `inset 3px 0 0 0 ${call.status === CallStates.ERROR ? theme.color.warning : theme.color.secondary}`,\n    background: call.status === CallStates.ERROR ? 'transparent' : theme.background.hoverable\n  },\n  '& > div': {\n    opacity: call.status === CallStates.WAITING ? 0.5 : 1\n  }\n}));\nconst RowActions = styled.div({\n  padding: 6\n});\nexport const StyledIconButton = styled(IconButton)(({\n  theme\n}) => ({\n  color: theme.color.mediumdark,\n  margin: '0 3px'\n}));\nconst Note = styled(TooltipNote)(({\n  theme\n}) => ({\n  fontFamily: theme.typography.fonts.base\n}));\nconst RowMessage = styled('div')(({\n  theme\n}) => ({\n  padding: '8px 10px 8px 36px',\n  fontSize: typography.size.s1,\n  color: theme.color.defaultText,\n  pre: {\n    margin: 0,\n    padding: 0\n  }\n}));\n\nconst Exception = ({\n  exception\n}) => {\n  if (exception.message.startsWith('expect(')) {\n    return /*#__PURE__*/React.createElement(MatcherResult, exception);\n  }\n\n  const paragraphs = exception.message.split('\\n\\n');\n  const more = paragraphs.length > 1;\n  return /*#__PURE__*/React.createElement(RowMessage, null, /*#__PURE__*/React.createElement(\"pre\", null, paragraphs[0]), more && /*#__PURE__*/React.createElement(\"p\", null, \"See the full stack trace in the browser console.\"));\n};\n\nexport const Interaction = ({\n  call,\n  callsById,\n  controls,\n  controlStates,\n  childCallIds,\n  isCollapsed,\n  toggleCollapsed,\n  pausedAt\n}) => {\n  const [isHovered, setIsHovered] = React.useState(false);\n  return /*#__PURE__*/React.createElement(RowContainer, {\n    call: call,\n    pausedAt: pausedAt\n  }, /*#__PURE__*/React.createElement(RowHeader, {\n    disabled: !controlStates.goto || !call.interceptable || !!call.parentId\n  }, /*#__PURE__*/React.createElement(RowLabel, {\n    call: call,\n    onClick: () => controls.goto(call.id),\n    disabled: !controlStates.goto || !call.interceptable || !!call.parentId,\n    onMouseEnter: () => controlStates.goto && setIsHovered(true),\n    onMouseLeave: () => controlStates.goto && setIsHovered(false)\n  }, /*#__PURE__*/React.createElement(StatusIcon, {\n    status: isHovered ? CallStates.ACTIVE : call.status\n  }), /*#__PURE__*/React.createElement(MethodCallWrapper, {\n    style: {\n      marginLeft: 6,\n      marginBottom: 1\n    }\n  }, /*#__PURE__*/React.createElement(MethodCall, {\n    call: call,\n    callsById: callsById\n  }))), /*#__PURE__*/React.createElement(RowActions, null, childCallIds?.length > 0 && /*#__PURE__*/React.createElement(WithTooltip, {\n    hasChrome: false,\n    tooltip: /*#__PURE__*/React.createElement(Note, {\n      note: `${isCollapsed ? 'Show' : 'Hide'} interactions (${childCallIds.length})`\n    })\n  }, /*#__PURE__*/React.createElement(StyledIconButton, {\n    containsIcon: true,\n    onClick: toggleCollapsed\n  }, /*#__PURE__*/React.createElement(Icons, {\n    icon: \"listunordered\"\n  }))))), call.status === CallStates.ERROR && call.exception?.callId === call.id && /*#__PURE__*/React.createElement(Exception, {\n    exception: call.exception\n  }));\n};", "import React from 'react';\nimport { styled, typography } from '@storybook/theming';\nimport { Node } from './MethodCall';\n\nconst getParams = (line, fromIndex = 0) => {\n  for (let i = fromIndex, depth = 1; i < line.length; i += 1) {\n    if (line[i] === '(') depth += 1;else if (line[i] === ')') depth -= 1;\n    if (depth === 0) return line.slice(fromIndex, i);\n  }\n\n  return '';\n};\n\nconst parseValue = value => {\n  try {\n    return value === 'undefined' ? undefined : JSON.parse(value);\n  } catch (e) {\n    return value;\n  }\n};\n\nconst StyledExpected = styled.span(({\n  theme\n}) => ({\n  color: theme.color.positive\n}));\nconst StyledReceived = styled.span(({\n  theme\n}) => ({\n  color: theme.color.negative\n}));\nexport const Received = ({\n  value,\n  parsed\n}) => parsed ? /*#__PURE__*/React.createElement(Node, {\n  showObjectInspector: true,\n  value: value,\n  style: {\n    color: '#D43900'\n  }\n}) : /*#__PURE__*/React.createElement(StyledReceived, null, value);\nexport const Expected = ({\n  value,\n  parsed\n}) => {\n  if (parsed) {\n    if (typeof value === 'string' && value.startsWith('called with')) {\n      return /*#__PURE__*/React.createElement(React.Fragment, null, value);\n    }\n\n    return /*#__PURE__*/React.createElement(Node, {\n      showObjectInspector: true,\n      value: value,\n      style: {\n        color: '#16B242'\n      }\n    });\n  }\n\n  return /*#__PURE__*/React.createElement(StyledExpected, null, value);\n};\nexport const MatcherResult = ({\n  message\n}) => {\n  const lines = message.split('\\n');\n  return /*#__PURE__*/React.createElement(\"pre\", {\n    style: {\n      margin: 0,\n      padding: '8px 10px 8px 36px',\n      fontSize: typography.size.s1\n    }\n  }, lines.flatMap((line, index) => {\n    if (line.startsWith('expect(')) {\n      const received = getParams(line, 7);\n      const remainderIndex = received && 7 + received.length;\n      const matcher = received && line.slice(remainderIndex).match(/\\.(to|last|nth)[A-Z]\\w+\\(/);\n\n      if (matcher) {\n        const expectedIndex = remainderIndex + matcher.index + matcher[0].length;\n        const expected = getParams(line, expectedIndex);\n\n        if (expected) {\n          return ['expect(', /*#__PURE__*/React.createElement(Received, {\n            key: `received_${received}`,\n            value: received\n          }), line.slice(remainderIndex, expectedIndex), /*#__PURE__*/React.createElement(Expected, {\n            key: `expected_${expected}`,\n            value: expected\n          }), line.slice(expectedIndex + expected.length), /*#__PURE__*/React.createElement(\"br\", {\n            key: `br${index}`\n          })];\n        }\n      }\n    }\n\n    if (line.match(/^\\s*- /)) {\n      return [/*#__PURE__*/React.createElement(Expected, {\n        key: line + index,\n        value: line\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })];\n    }\n\n    if (line.match(/^\\s*\\+ /)) {\n      return [/*#__PURE__*/React.createElement(Received, {\n        key: line + index,\n        value: line\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })];\n    }\n\n    const [, assertionLabel, assertionValue] = line.match(/^(Expected|Received): (.*)$/) || [];\n\n    if (assertionLabel && assertionValue) {\n      return assertionLabel === 'Expected' ? ['Expected: ', /*#__PURE__*/React.createElement(Expected, {\n        key: line + index,\n        value: parseValue(assertionValue),\n        parsed: true\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })] : ['Received: ', /*#__PURE__*/React.createElement(Received, {\n        key: line + index,\n        value: parseValue(assertionValue),\n        parsed: true\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })];\n    }\n\n    const [, prefix, numberOfCalls] = line.match(/(Expected number|Received number|Number) of calls: (\\d+)$/i) || [];\n\n    if (prefix && numberOfCalls) {\n      return [`${prefix} of calls: `, /*#__PURE__*/React.createElement(Node, {\n        key: line + index,\n        value: Number(numberOfCalls)\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })];\n    }\n\n    const [, receivedValue] = line.match(/^Received has value: (.+)$/) || [];\n\n    if (receivedValue) {\n      return ['Received has value: ', /*#__PURE__*/React.createElement(Node, {\n        key: line + index,\n        value: parseValue(receivedValue)\n      }), /*#__PURE__*/React.createElement(\"br\", {\n        key: `br${index}`\n      })];\n    }\n\n    return [/*#__PURE__*/React.createElement(\"span\", {\n      key: line + index\n    }, line), /*#__PURE__*/React.createElement(\"br\", {\n      key: `br${index}`\n    })];\n  }));\n};", "const _excluded = [\"value\", \"nested\", \"showObjectInspector\", \"callsById\"],\n      _excluded2 = [\"value\"],\n      _excluded3 = [\"value\"],\n      _excluded4 = [\"value\"];\nimport \"core-js/modules/es.regexp.flags.js\";\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { ObjectInspector } from '@devtools-ds/object-inspector';\nimport { useTheme } from '@storybook/theming';\nimport React, { Fragment } from 'react';\nconst colorsLight = {\n  base: '#444',\n  nullish: '#7D99AA',\n  string: '#16B242',\n  number: '#5D40D0',\n  boolean: '#f41840',\n  objectkey: '#698394',\n  instance: '#A15C20',\n  function: '#EA7509',\n  muted: '#7D99AA',\n  tag: {\n    name: '#6F2CAC',\n    suffix: '#1F99E5'\n  },\n  date: '#459D9C',\n  error: {\n    name: '#D43900',\n    message: '#444'\n  },\n  regex: {\n    source: '#A15C20',\n    flags: '#EA7509'\n  },\n  meta: '#EA7509',\n  method: '#0271B6'\n};\nconst colorsDark = {\n  base: '#eee',\n  nullish: '#aaa',\n  string: '#5FE584',\n  number: '#6ba5ff',\n  boolean: '#ff4191',\n  objectkey: '#accfe6',\n  instance: '#E3B551',\n  function: '#E3B551',\n  muted: '#aaa',\n  tag: {\n    name: '#f57bff',\n    suffix: '#8EB5FF'\n  },\n  date: '#70D4D3',\n  error: {\n    name: '#f40',\n    message: '#eee'\n  },\n  regex: {\n    source: '#FAD483',\n    flags: '#E3B551'\n  },\n  meta: '#FAD483',\n  method: '#5EC1FF'\n};\n\nconst useThemeColors = () => {\n  const {\n    base\n  } = useTheme();\n  return base === 'dark' ? colorsDark : colorsLight;\n};\n\nconst special = /[^A-Z0-9]/i;\nconst trimEnd = /[\\s.,\u2026]+$/gm;\n\nconst ellipsize = (string, maxlength) => {\n  if (string.length <= maxlength) return string;\n\n  for (let i = maxlength - 1; i >= 0; i -= 1) {\n    if (special.test(string[i]) && i > 10) {\n      return `${string.slice(0, i).replace(trimEnd, '')}\u2026`;\n    }\n  }\n\n  return `${string.slice(0, maxlength).replace(trimEnd, '')}\u2026`;\n};\n\nconst stringify = value => {\n  try {\n    return JSON.stringify(value, null, 1);\n  } catch (e) {\n    return String(value);\n  }\n};\n\nconst interleave = (nodes, separator) => nodes.flatMap((node, index) => index === nodes.length - 1 ? [node] : [node, /*#__PURE__*/React.cloneElement(separator, {\n  key: `sep${index}`\n})]);\n\nexport const Node = _ref => {\n  let {\n    value,\n    showObjectInspector,\n    callsById\n  } = _ref,\n      props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  switch (true) {\n    case value === null:\n      return /*#__PURE__*/React.createElement(NullNode, props);\n\n    case value === undefined:\n      return /*#__PURE__*/React.createElement(UndefinedNode, props);\n\n    case Array.isArray(value):\n      return /*#__PURE__*/React.createElement(ArrayNode, _extends({}, props, {\n        value: value,\n        callsById: callsById\n      }));\n\n    case typeof value === 'string':\n      return /*#__PURE__*/React.createElement(StringNode, _extends({}, props, {\n        value: value\n      }));\n\n    case typeof value === 'number':\n      return /*#__PURE__*/React.createElement(NumberNode, _extends({}, props, {\n        value: value\n      }));\n\n    case typeof value === 'boolean':\n      return /*#__PURE__*/React.createElement(BooleanNode, _extends({}, props, {\n        value: value\n      }));\n\n    /* eslint-disable no-underscore-dangle */\n\n    case Object.prototype.hasOwnProperty.call(value, '__date__'):\n      return /*#__PURE__*/React.createElement(DateNode, _extends({}, props, value.__date__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__error__'):\n      return /*#__PURE__*/React.createElement(ErrorNode, _extends({}, props, value.__error__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__regexp__'):\n      return /*#__PURE__*/React.createElement(RegExpNode, _extends({}, props, value.__regexp__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__function__'):\n      return /*#__PURE__*/React.createElement(FunctionNode, _extends({}, props, value.__function__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__symbol__'):\n      return /*#__PURE__*/React.createElement(SymbolNode, _extends({}, props, value.__symbol__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__element__'):\n      return /*#__PURE__*/React.createElement(ElementNode, _extends({}, props, value.__element__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__class__'):\n      return /*#__PURE__*/React.createElement(ClassNode, _extends({}, props, value.__class__));\n\n    case Object.prototype.hasOwnProperty.call(value, '__callId__'):\n      return /*#__PURE__*/React.createElement(MethodCall, {\n        call: callsById.get(value.__callId__),\n        callsById: callsById\n      });\n\n    /* eslint-enable no-underscore-dangle */\n\n    case Object.prototype.toString.call(value) === '[object Object]':\n      return /*#__PURE__*/React.createElement(ObjectNode, _extends({\n        value: value,\n        showInspector: showObjectInspector\n      }, props));\n\n    default:\n      return /*#__PURE__*/React.createElement(OtherNode, _extends({\n        value: value\n      }, props));\n  }\n};\nexport const NullNode = props => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", _extends({\n    style: {\n      color: colors.nullish\n    }\n  }, props), \"null\");\n};\nexport const UndefinedNode = props => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", _extends({\n    style: {\n      color: colors.nullish\n    }\n  }, props), \"undefined\");\n};\nexport const StringNode = _ref2 => {\n  let {\n    value\n  } = _ref2,\n      props = _objectWithoutPropertiesLoose(_ref2, _excluded2);\n\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", _extends({\n    style: {\n      color: colors.string\n    }\n  }, props), JSON.stringify(ellipsize(value, 50)));\n};\nexport const NumberNode = _ref3 => {\n  let {\n    value\n  } = _ref3,\n      props = _objectWithoutPropertiesLoose(_ref3, _excluded3);\n\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", _extends({\n    style: {\n      color: colors.number\n    }\n  }, props), value);\n};\nexport const BooleanNode = _ref4 => {\n  let {\n    value\n  } = _ref4,\n      props = _objectWithoutPropertiesLoose(_ref4, _excluded4);\n\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", _extends({\n    style: {\n      color: colors.boolean\n    }\n  }, props), String(value));\n};\nexport const ArrayNode = ({\n  value,\n  nested = false,\n  callsById\n}) => {\n  const colors = useThemeColors();\n\n  if (nested) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: {\n        color: colors.base\n      }\n    }, \"[\\u2026]\");\n  }\n\n  const nodes = value.slice(0, 3).map(v => /*#__PURE__*/React.createElement(Node, {\n    key: JSON.stringify(v),\n    value: v,\n    nested: true,\n    callsById: callsById\n  }));\n  const nodelist = interleave(nodes, /*#__PURE__*/React.createElement(\"span\", null, \", \"));\n\n  if (value.length <= 3) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: {\n        color: colors.base\n      }\n    }, \"[\", nodelist, \"]\");\n  }\n\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.base\n    }\n  }, \"(\", value.length, \") [\", nodelist, \", \\u2026]\");\n};\nexport const ObjectNode = ({\n  showInspector,\n  value,\n  nested = false\n}) => {\n  const isDarkMode = useTheme().base === 'dark';\n  const colors = useThemeColors();\n\n  if (showInspector) {\n    return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ObjectInspector, {\n      id: \"interactions-object-inspector\",\n      data: value,\n      includePrototypes: false,\n      colorScheme: isDarkMode ? 'dark' : 'light'\n    }));\n  }\n\n  if (nested) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: {\n        color: colors.base\n      }\n    }, '{\u2026}');\n  }\n\n  const nodelist = interleave(Object.entries(value).slice(0, 2).map(([k, v]) => /*#__PURE__*/React.createElement(Fragment, {\n    key: k\n  }, /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.objectkey\n    }\n  }, k, \": \"), /*#__PURE__*/React.createElement(Node, {\n    value: v,\n    nested: true\n  }))), /*#__PURE__*/React.createElement(\"span\", null, \", \"));\n\n  if (Object.keys(value).length <= 2) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: {\n        color: colors.base\n      }\n    }, '{ ', nodelist, ' }');\n  }\n\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.base\n    }\n  }, \"(\", Object.keys(value).length, \") \", '{ ', nodelist, ', \u2026 }');\n};\nexport const ClassNode = ({\n  name\n}) => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.instance\n    }\n  }, name);\n};\nexport const FunctionNode = ({\n  name\n}) => {\n  const colors = useThemeColors();\n  return name ? /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.function\n    }\n  }, name) : /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.nullish,\n      fontStyle: 'italic'\n    }\n  }, \"anonymous\");\n};\nexport const ElementNode = ({\n  prefix,\n  localName,\n  id,\n  classNames = [],\n  innerText\n}) => {\n  const name = prefix ? `${prefix}:${localName}` : localName;\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      wordBreak: 'keep-all'\n    }\n  }, /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_lt`,\n    style: {\n      color: colors.muted\n    }\n  }, \"<\"), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_tag`,\n    style: {\n      color: colors.tag.name\n    }\n  }, name), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_suffix`,\n    style: {\n      color: colors.tag.suffix\n    }\n  }, id ? `#${id}` : classNames.reduce((acc, className) => `${acc}.${className}`, '')), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_gt`,\n    style: {\n      color: colors.muted\n    }\n  }, \">\"), !id && classNames.length === 0 && innerText && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_text`\n  }, innerText), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_close_lt`,\n    style: {\n      color: colors.muted\n    }\n  }, \"<\"), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_close_tag`,\n    style: {\n      color: colors.tag.name\n    }\n  }, \"/\", name), /*#__PURE__*/React.createElement(\"span\", {\n    key: `${name}_close_gt`,\n    style: {\n      color: colors.muted\n    }\n  }, \">\")));\n};\nexport const DateNode = ({\n  value\n}) => {\n  const [date, time, ms] = value.split(/[T.Z]/);\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      whiteSpace: 'nowrap',\n      color: colors.date\n    }\n  }, date, /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      opacity: 0.7\n    }\n  }, \"T\"), time === '00:00:00' ? /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      opacity: 0.7\n    }\n  }, time) : time, ms === '000' ? /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      opacity: 0.7\n    }\n  }, \".\", ms) : `.${ms}`, /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      opacity: 0.7\n    }\n  }, \"Z\"));\n};\nexport const ErrorNode = ({\n  name,\n  message\n}) => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.error.name\n    }\n  }, name, message && ': ', message && /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.error.message\n    },\n    title: message.length > 50 ? message : ''\n  }, ellipsize(message, 50)));\n};\nexport const RegExpNode = ({\n  flags,\n  source\n}) => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      whiteSpace: 'nowrap',\n      color: colors.regex.flags\n    }\n  }, \"/\", /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.regex.source\n    }\n  }, source), \"/\", flags);\n};\nexport const SymbolNode = ({\n  description\n}) => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      whiteSpace: 'nowrap',\n      color: colors.instance\n    }\n  }, \"Symbol(\", description && /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.meta\n    }\n  }, \"\\\"\", description, \"\\\"\"), \")\");\n};\nexport const OtherNode = ({\n  value\n}) => {\n  const colors = useThemeColors();\n  return /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.meta\n    }\n  }, stringify(value));\n};\nexport const MethodCall = ({\n  call,\n  callsById\n}) => {\n  // Call might be undefined during initial render, can be safely ignored.\n  if (!call) return null;\n  const colors = useThemeColors();\n  const path = call.path.flatMap((elem, index) => {\n    // eslint-disable-next-line no-underscore-dangle\n    const callId = elem.__callId__;\n    return [callId ? /*#__PURE__*/React.createElement(MethodCall, {\n      key: `elem${index}`,\n      call: callsById.get(callId),\n      callsById: callsById\n    }) : /*#__PURE__*/React.createElement(\"span\", {\n      key: `elem${index}`\n    }, elem), /*#__PURE__*/React.createElement(\"wbr\", {\n      key: `wbr${index}`\n    }), /*#__PURE__*/React.createElement(\"span\", {\n      key: `dot${index}`\n    }, \".\")];\n  });\n  const args = call.args.flatMap((arg, index, array) => {\n    const node = /*#__PURE__*/React.createElement(Node, {\n      key: `node${index}`,\n      value: arg,\n      callsById: callsById\n    });\n    return index < array.length - 1 ? [node, /*#__PURE__*/React.createElement(\"span\", {\n      key: `comma${index}`\n    }, \",\\xA0\"), /*#__PURE__*/React.createElement(\"wbr\", {\n      key: `wbr${index}`\n    })] : [node];\n  });\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.base\n    }\n  }, path), /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.method\n    }\n  }, call.method), /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      color: colors.base\n    }\n  }, \"(\", /*#__PURE__*/React.createElement(\"wbr\", null), args, /*#__PURE__*/React.createElement(\"wbr\", null), \")\"));\n};", "export { ObjectInspector } from \"./ObjectInspector\";\n", "function toVal(mix) {\n\tvar k, y, str='';\n\tif (mix) {\n\t\tif (typeof mix === 'object') {\n\t\t\tif (Array.isArray(mix)) {\n\t\t\t\tfor (k=0; k < mix.length; k++) {\n\t\t\t\t\tif (mix[k] && (y = toVal(mix[k]))) {\n\t\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\t\tstr += y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (k in mix) {\n\t\t\t\t\tif (mix[k] && (y = toVal(k))) {\n\t\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\t\tstr += y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof mix !== 'boolean' && !mix.call) {\n\t\t\tstr && (str += ' ');\n\t\t\tstr += mix;\n\t\t}\n\t}\n\treturn str;\n}\n\nexport default function () {\n\tvar i=0, x, str='';\n\twhile (i < arguments.length) {\n\t\tif (x = toVal(arguments[i++])) {\n\t\t\tstr && (str += ' ');\n\t\t\tstr += x\n\t\t}\n\t}\n\treturn str;\n}\n", "export interface AST {\n  /** Current object key */\n  key: string;\n  /** Current depth */\n  depth: number;\n\n  /** The parent node of the current one */\n  parent: AST | undefined;\n}\n\ninterface ASTChildren {\n  /** Children */\n  children: DeferredNode[];\n  /** Whether it's an Object prototype */\n  isPrototype?: true;\n}\n\n/** A type to describe objects with all deferred children loaded */\ninterface ASTResolvedChildren {\n  /** Children */\n  children: ASTNode[];\n  /** Whether it's an Object prototype */\n  isPrototype?: true;\n}\n\nexport type DeferredNode = () => Promise<ASTNode>;\n\n// Object\nexport interface ASTObject extends AST, ASTChildren {\n  /** Type */\n  type: \"object\";\n  /** Value */\n  value: object;\n}\n\nexport interface ResolvedASTObject extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"object\";\n  /** Value */\n  value: object;\n}\n\n// Array\nexport interface ASTArray extends AST, ASTChildren {\n  /** Type */\n  type: \"array\";\n  /** Value */\n  value: any[];\n}\n\nexport interface ResolvedASTArray extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"array\";\n  /** Value */\n  value: any[];\n}\n\n// Function\nexport interface ASTFunction extends AST, ASTChildren {\n  /** Type */\n  type: \"function\";\n  /** Value */\n  value: Function;\n}\n\nexport interface ResolvedASTFunction extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"function\";\n  /** Value */\n  value: Function;\n}\n\n// Promise\nexport type PromiseState = \"pending\" | \"fulfilled\" | \"rejected\";\n\nexport interface ASTPromise extends AST, ASTChildren {\n  /** Type */\n  type: \"promise\";\n  /** Value */\n  value: Promise<any>;\n}\n\nexport interface ResolvedASTPromise extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"promise\";\n  /** Value */\n  value: Promise<any>;\n}\n\n// Map\nexport interface ASTMap extends AST, ASTChildren {\n  /** Type */\n  type: \"map\";\n  /** Value */\n  value: Map<any, any>;\n}\n\nexport interface ResolvedASTMap extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"map\";\n  /** Value */\n  value: Map<any, any>;\n}\n\n// Set\nexport interface ASTSet extends AST, ASTChildren {\n  /** Type */\n  type: \"set\";\n  /** Value */\n  value: Set<any>;\n}\n\n//\nexport interface ResolvedASTSet extends AST, ASTResolvedChildren {\n  /** Type */\n  type: \"set\";\n  /** Value */\n  value: Set<any>;\n}\n\n// Leaf Values\nexport interface ASTValue extends AST {\n  /** Type */\n  type: \"value\";\n  /** Value */\n  value:\n    | boolean\n    | null\n    | number\n    | BigInt\n    | string\n    | symbol\n    | undefined\n    | Date\n    | RegExp\n    | Error\n    | WeakMap<any, any>\n    | WeakSet<any>\n    | Promise<any>;\n  /** It's not a prototype */\n  isPrototype?: false;\n}\n\nexport type SupportedTypes =\n  | boolean\n  | null\n  | number\n  | string\n  | Error\n  | symbol\n  | undefined\n  | Date\n  | RegExp\n  | object\n  | Map<any, any>\n  | WeakMap<any, any>\n  | Set<any>\n  | WeakSet<any>\n  | Promise<any>\n  | any[]\n  | Function;\n\nexport type ObjectTypes =\n  | \"object\"\n  | \"function\"\n  | \"array\"\n  | \"promise\"\n  | \"map\"\n  | \"set\";\n\nexport type ASTNode =\n  | ASTObject\n  | ASTArray\n  | ASTFunction\n  | ASTPromise\n  | ASTMap\n  | ASTSet\n  | ASTValue;\n\nexport type ResolvedASTNode =\n  | ResolvedASTObject\n  | ResolvedASTArray\n  | ResolvedASTFunction\n  | ResolvedASTPromise\n  | ResolvedASTMap\n  | ResolvedASTSet;\n\n/**\n * Determine if the current object is an array.\n */\nconst isArray = (val: object): boolean => {\n  return (\n    Array.isArray(val) ||\n    // Detect https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays\n    (ArrayBuffer.isView(val) && !(val instanceof DataView))\n  );\n};\n\n/**\n * Determine if a given value is a true javascript object.\n * Ignore Objects that we know how to display as values.\n *\n * @param val - The current object\n */\nexport const isObject = (val: object): boolean => {\n  return (\n    val !== null &&\n    typeof val === \"object\" &&\n    !isArray(val) &&\n    !(val instanceof Date) &&\n    !(val instanceof RegExp) &&\n    !(val instanceof Error) &&\n    !(val instanceof WeakMap) &&\n    !(val instanceof WeakSet)\n  );\n};\n\n/** Check for objects we know how to enumerate */\nexport const isKnownObject = (val: object): boolean => {\n  return (\n    isObject(val) ||\n    isArray(val) ||\n    typeof val === \"function\" ||\n    val instanceof Promise\n  );\n};\n\n/**\n * Get the current state of a promise, and return a result if fulfilled\n *\n * @param promise - A promise to inspect\n */\nexport const getPromiseState = (\n  promise: Promise<any>\n): Promise<[\"pending\"] | [\"rejected\", any] | [\"fulfilled\", any]> => {\n  // Symbols and RegExps are never content-equal\n  const unique = /unique/;\n\n  return Promise.race([promise, unique]).then(\n    (result) => (result === unique ? [\"pending\"] : [\"fulfilled\", result]),\n    (e) => [\"rejected\", e]\n  );\n};\n\n/**\n * Build the AST recursively\n *\n * @param key - Current node key\n * @param value - Current node value\n * @param depth - Current tree depth\n * @param sortKeys - Whether to sort the keys\n */\nconst buildAST = async (\n  key: string,\n  value: any,\n  depth: number,\n  sortKeys: boolean,\n  isPrototype?: true,\n  showPrototype?: boolean\n): Promise<ASTNode> => {\n  const astNode = {\n    key,\n    depth,\n    value,\n    type: \"value\",\n    parent: undefined,\n  };\n\n  if (value && isKnownObject(value) && depth < 100) {\n    const children = [];\n    let t: ObjectTypes = \"object\";\n\n    // Build Array\n    if (isArray(value)) {\n      for (let i = 0; i < value.length; i++) {\n        children.push(async () => {\n          const child = await buildAST(\n            i.toString(),\n            value[i],\n            depth + 1,\n            sortKeys\n          );\n          child.parent = astNode;\n          return child;\n        });\n      }\n\n      t = \"array\";\n    } else {\n      // Get Object Properties\n      const keys = Object.getOwnPropertyNames(value);\n      if (sortKeys) keys.sort();\n      for (let i = 0; i < keys.length; i++) {\n        let safeValue: any;\n        try {\n          safeValue = value[keys[i]];\n        } catch (e) {}\n\n        children.push(async () => {\n          const child = await buildAST(keys[i], safeValue, depth + 1, sortKeys);\n          child.parent = astNode;\n          return child;\n        });\n      }\n\n      // Change Type for Function\n      if (typeof value === \"function\") {\n        t = \"function\";\n      }\n\n      // Handle Promises\n      if (value instanceof Promise) {\n        const [status, result] = await getPromiseState(value);\n        children.push(async () => {\n          const child = await buildAST(\"<state>\", status, depth + 1, sortKeys);\n          child.parent = astNode;\n          return child;\n        });\n        if (status !== \"pending\") {\n          children.push(async () => {\n            const child = await buildAST(\n              \"<value>\",\n              result,\n              depth + 1,\n              sortKeys\n            );\n            child.parent = astNode;\n            return child;\n          });\n        }\n\n        t = \"promise\";\n      }\n\n      // Handle Maps\n      if (value instanceof Map) {\n        const entries = Array.from(value.entries());\n        const parsedEntries = entries.map((entry) => {\n          const [entryKey, entryValue] = entry;\n          return {\n            \"<key>\": entryKey,\n            \"<value>\": entryValue,\n          };\n        });\n        children.push(async () => {\n          const child = await buildAST(\n            \"<entries>\",\n            parsedEntries,\n            depth + 1,\n            sortKeys\n          );\n          child.parent = astNode;\n          return child;\n        });\n        children.push(async () => {\n          const child = await buildAST(\"size\", value.size, depth + 1, sortKeys);\n          child.parent = astNode;\n          return child;\n        });\n        t = \"map\";\n      }\n\n      // Handle Sets\n      if (value instanceof Set) {\n        const entries = Array.from(value.entries());\n        const parsedEntries = entries.map((entry) => {\n          return entry[1];\n        });\n        children.push(async () => {\n          const child = await buildAST(\n            \"<entries>\",\n            parsedEntries,\n            depth + 1,\n            sortKeys\n          );\n          child.parent = astNode;\n          return child;\n        });\n        children.push(async () => {\n          const child = await buildAST(\"size\", value.size, depth + 1, sortKeys);\n          child.parent = astNode;\n          return child;\n        });\n        t = \"set\";\n      }\n    }\n\n    // Handle Object Prototypes\n    if (value !== Object.prototype && showPrototype) {\n      children.push(async () => {\n        const child = await buildAST(\n          \"<prototype>\",\n          Object.getPrototypeOf(value),\n          depth + 1,\n          sortKeys,\n          true\n        );\n        child.parent = astNode;\n        return child;\n      });\n    }\n\n    astNode.type = t;\n    ((astNode as any) as ASTChildren).children = children;\n    ((astNode as any) as ASTChildren).isPrototype = isPrototype;\n  }\n\n  return astNode as ASTNode;\n};\n\n/**\n * Parse an object in to an AST.\n *\n * @param data - Object to parse.\n */\nexport const parse = (\n  data: SupportedTypes,\n  sortKeys?: boolean,\n  includePrototypes?: boolean\n) => {\n  const keys = sortKeys === false ? sortKeys : true;\n  const prototypes = includePrototypes === false ? includePrototypes : true;\n  return buildAST(\"root\", data, 0, keys, undefined, prototypes);\n};\n\nexport default parse;\n", "import React from \"react\";\nimport makeClass from \"clsx\";\nimport { Element } from \"@design-systems/utils\";\n\nexport const colorSchemes = [\"light\", \"dark\"] as const;\nexport type ColorScheme = typeof colorSchemes[number];\n\nexport const themes = [\"chrome\", \"firefox\"] as const;\nexport type Theme = typeof themes[number];\n\nconst isWindowDefined = typeof window !== \"undefined\";\n\n/**\n * Get all of the props for an HTML element + add the theme props.\n * Used to easily type the rest props of a component and add theming.\n *\n * @example\n * export interface ButtonProps extends ThemeableElement<'button'> {\n *   size?: Sizes;\n * }\n */\nexport interface Themeable {\n  /** Light or Dark mode. */\n  colorScheme?: ColorScheme;\n  /** Supported browser themes.  */\n  theme?: Theme;\n}\n\nexport type ThemeableElement<T extends keyof JSX.IntrinsicElements> = Element<\n  T\n> &\n  Themeable;\n\nexport const ThemeContext = React.createContext<Themeable>({\n  theme: \"chrome\",\n  colorScheme: \"light\",\n});\n\n/**\n * Determine if the user has a \"prefers-color-scheme\" mode enabled in their browser.\n * This is helpful for detecting if a user prefers dark mode.\n */\nexport const useDarkMode = () => {\n  const [darkMode, setDarkMode] = React.useState(\n    isWindowDefined && window\n      ? window.matchMedia(\"(prefers-color-scheme: dark)\").matches\n      : false\n  );\n\n  React.useEffect(() => {\n    if (!isWindowDefined) {\n      return;\n    }\n\n    const mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n\n    /** Run when the user changes this setting. */\n    const changeDarkMode = () => setDarkMode(!darkMode);\n\n    mediaQuery.addListener(changeDarkMode);\n\n    return () => {\n      mediaQuery.removeListener(changeDarkMode);\n    };\n  }, [darkMode]);\n\n  return darkMode;\n};\n\n/** A React Context provider for devtools-ds themes */\nexport const ThemeProvider = ({\n  children,\n  ...value\n}: React.PropsWithChildren<Themeable>) => {\n  const wrappedTheme = React.useContext(ThemeContext);\n\n  return (\n    <ThemeContext.Provider value={{ ...wrappedTheme, ...value }}>\n      {children}\n    </ThemeContext.Provider>\n  );\n};\n\n/**\n * A hook to use the closest theme context.\n *\n * @param props - Current component props\n * @param styles - The css modules for the component\n *\n * @example\n * const { themeClass } = useTheme({ colorScheme, theme }, styles);\n */\nexport const useTheme = (\n  props: Themeable,\n  styles: Record<string, string> = {}\n) => {\n  const themeContext = React.useContext(ThemeContext);\n\n  const currentTheme = props.theme || themeContext.theme || \"chrome\";\n  const currentColorScheme =\n    props.colorScheme || themeContext.colorScheme || \"light\";\n  const themeClass = makeClass(\n    styles[currentTheme],\n    styles[currentColorScheme]\n  );\n\n  return {\n    currentColorScheme,\n    currentTheme,\n    themeClass,\n  };\n};\n\ninterface BasicTheme {\n  [key: string]: string;\n}\n\ninterface LightDarkTheme {\n  /** The light version of the theme */\n  light: BasicTheme;\n  /** The dark version of the theme */\n  dark: BasicTheme;\n}\n\ntype CustomTheme = BasicTheme | LightDarkTheme;\n\nexport type ComponentTheme = Required<Record<\"chrome\", CustomTheme>> &\n  Partial<Record<Theme, CustomTheme>>;\n", "import React from 'react';\n\ninterface TreeContext {\n  /** Whether the current tree is a child of another */\n  isChild: boolean;\n  /** Depth of current node */\n  depth: number;\n  /** Whether to have hover styles */\n  hasHover: boolean;\n}\n\nconst TreeContext = React.createContext<TreeContext>({\n  isChild: false,\n  depth: 0,\n  hasHover: true\n});\n\nexport default TreeContext;\n", "import React, { ReactNode, useState, useEffect } from \"react\";\nimport { ThemeableElement, useTheme } from \"@devtools-ds/themes\";\nimport makeClass from \"clsx\";\nimport TreeContext from \"./TreeContext\";\nimport styles from \"./Tree.css\";\n\nexport interface TreeProps extends ThemeableElement<\"ul\"> {\n  /** The label for this node */\n  label: string | ReactNode;\n  /** Whether this node is open */\n  open: boolean;\n  /** Whether to add hover styles to children */\n  hover: boolean;\n  /** Send state updates so parent can track them */\n  onUpdate?: (value: boolean) => void;\n  /**\n   * Called when the given node is selected/focused\n   * For nodes w/ children, this is equivalent to them updating their state\n   */\n  onSelect?: () => void;\n}\n\n/** A keyboard accessible expanding tree view. */\nexport const Tree = (props: TreeProps) => {\n  const {\n    theme,\n    hover,\n    colorScheme,\n    children,\n    label,\n    className,\n    onUpdate,\n    onSelect,\n    open,\n    ...html\n  } = props;\n\n  const { themeClass, currentTheme } = useTheme({ theme, colorScheme }, styles);\n\n  const [isOpen, setOpen] = useState(open);\n  // For some reason the useState above default doesn't work, so useEffect is needed\n  useEffect(() => {\n    setOpen(open);\n  }, [open]);\n\n  /** Update state and call callback */\n  const updateState = (value: boolean) => {\n    setOpen(value);\n    if (onUpdate) onUpdate(value);\n  };\n\n  const hasChildren = React.Children.count(children) > 0;\n\n  /** Set focus and aria-selected onto a new <li>, unselect old if provided */\n  const updateFocus = (\n    newNode: HTMLLIElement,\n    previousNode?: HTMLLIElement\n  ) => {\n    if (newNode.isSameNode(previousNode || null)) return;\n    const focusableNode = newNode.querySelector<HTMLLIElement>(\n      '[tabindex=\"-1\"]'\n    );\n    focusableNode?.focus();\n    newNode.setAttribute(\"aria-selected\", \"true\");\n    previousNode?.removeAttribute(\"aria-selected\");\n  };\n\n  /**\n   * Find a parent DOM node with a given role.\n   *\n   * @param node - Current HTMLElement\n   */\n  const getParent = (\n    node: HTMLElement,\n    role: \"tree\" | \"group\" | \"treeitem\"\n  ) => {\n    let parent = node;\n    while (parent && parent.parentElement) {\n      // Find the top of the tree\n      if (parent.getAttribute(\"role\") === role) {\n        return parent;\n      }\n\n      // Move up the tree after, in case the node provided is the tree\n      parent = parent.parentElement;\n    }\n\n    return null;\n  };\n\n  /** Get all list elements for the current tree. */\n  const getListElements = (node: HTMLElement) => {\n    const tree = getParent(node, \"tree\");\n    if (!tree) return [];\n    return Array.from(tree.querySelectorAll<HTMLLIElement>(\"li\"));\n  };\n\n  /** Move focus up to the tree node above */\n  const moveBack = (node: HTMLElement) => {\n    const group = getParent(node, \"group\");\n    const toggle = group?.previousElementSibling;\n\n    if (toggle && toggle.getAttribute(\"tabindex\") === \"-1\") {\n      const toggleParent = toggle.parentElement as HTMLLIElement;\n      const nodeParent = node.parentElement as HTMLLIElement;\n      updateFocus(toggleParent, nodeParent);\n    }\n  };\n\n  /** Move the focus to the start or end of the tree */\n  const moveHome = (node: HTMLElement, direction: \"start\" | \"end\") => {\n    const elements = getListElements(node);\n    elements.forEach((element) => {\n      element.removeAttribute(\"aria-selected\");\n    });\n    if (direction === \"start\" && elements[0]) {\n      updateFocus(elements[0]);\n    }\n\n    if (direction === \"end\" && elements[elements.length - 1]) {\n      updateFocus(elements[elements.length - 1]);\n    }\n  };\n\n  /** Move focus up or down a level from the provided Element */\n  const moveFocusAdjacent = (node: HTMLElement, direction: \"up\" | \"down\") => {\n    const elements = getListElements(node) || [];\n    for (let i = 0; i < elements.length; i++) {\n      // Go through each <li> and look for the currently selected node\n      const currentNode = elements[i];\n      if (currentNode.getAttribute(\"aria-selected\") === \"true\") {\n        if (direction === \"up\" && elements[i - 1]) {\n          // Move focus to the <li> above\n          updateFocus(elements[i - 1], currentNode);\n        } else if (direction === \"down\" && elements[i + 1]) {\n          // Move focus to the <li> below\n          updateFocus(elements[i + 1], currentNode);\n        }\n\n        return;\n      }\n    }\n\n    // Select first node if one isn't currently selected\n    updateFocus(elements[0]);\n  };\n\n  /** Handle all keyboard events from tree nodes */\n  const handleKeypress = (event: React.KeyboardEvent, isChild?: boolean) => {\n    const node = event.target as HTMLElement;\n    // Handle open/close toggle\n    if (event.key === \"Enter\" || event.key === \" \") {\n      updateState(!isOpen);\n    }\n\n    if (event.key === \"ArrowRight\" && isOpen && !isChild) {\n      moveFocusAdjacent(node, \"down\");\n    } else if (event.key === \"ArrowRight\") {\n      updateState(true);\n    }\n\n    if (event.key === \"ArrowLeft\" && (!isOpen || isChild)) {\n      moveBack(node);\n    } else if (event.key === \"ArrowLeft\") {\n      updateState(false);\n    }\n\n    if (event.key === \"ArrowDown\") {\n      moveFocusAdjacent(node, \"down\");\n    }\n\n    if (event.key === \"ArrowUp\") {\n      moveFocusAdjacent(node, \"up\");\n    }\n\n    if (event.key === \"Home\") {\n      moveHome(node, \"start\");\n    }\n\n    if (event.key === \"End\") {\n      moveHome(node, \"end\");\n    }\n  };\n\n  /** Set selected and focus states on click events */\n  const handleClick = (event: React.MouseEvent, isChild?: boolean) => {\n    const node = event.target as HTMLElement;\n    const parent = getParent(node, \"treeitem\") as HTMLLIElement;\n\n    // We need to check if another node was selected and move it\n    const elements = getListElements(node) || [];\n    let found = false;\n    for (let i = 0; i < elements.length; i++) {\n      // Go through each <li> and look for the currently selected node\n      const currentNode = elements[i];\n      if (currentNode.getAttribute(\"aria-selected\") === \"true\") {\n        // Move selected to clicked LI\n        if (parent) {\n          found = true;\n          updateFocus(parent, currentNode);\n        }\n\n        break;\n      }\n    }\n\n    // If we didn't find an existing one select the new one\n    if (!found && parent) {\n      updateFocus(parent);\n    }\n\n    // Toggle open state if needed\n    if (!isChild) {\n      updateState(!isOpen);\n    }\n  };\n\n  /** When the tree is blurred make it focusable again */\n  const handleBlur = (event: React.FocusEvent) => {\n    const node = event.currentTarget;\n    if (\n      !node.contains(document.activeElement) &&\n      node.getAttribute(\"role\") === \"tree\"\n    ) {\n      node.setAttribute(\"tabindex\", \"0\");\n    }\n  };\n\n  /** Move focus back to the selected tree node, or focus the first one */\n  const handleFocus = (event: React.FocusEvent) => {\n    const node = event.target;\n    if (node.getAttribute(\"role\") === \"tree\") {\n      const selected = node.querySelector<HTMLLIElement>(\n        '[aria-selected=\"true\"]'\n      );\n\n      if (selected) {\n        // Move to previously selected node\n        updateFocus(selected);\n      } else {\n        // Focus the first node\n        moveFocusAdjacent(node as HTMLElement, \"down\");\n      }\n\n      //\n      node.setAttribute(\"tabindex\", \"-1\");\n    }\n  };\n\n  /** Detect when a button has been focused */\n  const handleButtonFocus = () => {\n    onSelect?.();\n  };\n\n  /** Get the styles for padding based on depth */\n  const getPaddingStyles = (depth: number) => {\n    const space = depth * 0.9 + 0.3;\n    return {\n      paddingLeft: `${space}em`,\n      width: `calc(100% - ${space}em)`,\n    };\n  };\n\n  // The first node needs role \"tree\", while sub-trees need role \"group\"\n  // This is tracked through context to be flexible to elements in the subtree.\n  const { isChild, depth, hasHover } = React.useContext(TreeContext);\n  const showHover = hasHover ? hover : false;\n\n  // Tree root node\n  // Needs to have role tree and one top level UL\n  // https://dequeuniversity.com/library/aria/tabpanels-accordions/sf-tree-view\n  if (!isChild) {\n    return (\n      <ul\n        role=\"tree\"\n        tabIndex={0}\n        className={makeClass(styles.tree, styles.group, themeClass, className)}\n        onFocus={handleFocus}\n        onBlur={handleBlur}\n        {...html}\n      >\n        <TreeContext.Provider\n          value={{ isChild: true, depth: 0, hasHover: showHover }}\n        >\n          <Tree {...props} />\n        </TreeContext.Provider>\n      </ul>\n    );\n  }\n\n  // Leaf nodes that don't expand, but still highlight and focus.\n  if (!hasChildren) {\n    return (\n      <li role=\"treeitem\" className={styles.item} {...(html as any)}>\n        <div\n          role=\"button\"\n          className={makeClass(styles.label, {\n            [styles.hover]: showHover,\n            [styles.focusWhite]: currentTheme === \"firefox\",\n          })}\n          tabIndex={-1}\n          style={getPaddingStyles(depth)}\n          onKeyDown={(e) => {\n            handleKeypress(e, isChild);\n          }}\n          onClick={(e) => handleClick(e, true)}\n          onFocus={handleButtonFocus}\n        >\n          <span>{label}</span>\n        </div>\n      </li>\n    );\n  }\n\n  // Child tree node with children\n  const arrowClass = makeClass(styles.arrow, { [styles.open]: isOpen });\n  return (\n    <li role=\"treeitem\" aria-expanded={isOpen} className={styles.item}>\n      <div\n        role=\"button\"\n        tabIndex={-1}\n        className={makeClass(styles.label, {\n          [styles.hover]: showHover,\n          [styles.focusWhite]: currentTheme === \"firefox\",\n        })}\n        style={getPaddingStyles(depth)}\n        onClick={(e) => handleClick(e)}\n        onKeyDown={(e) => handleKeypress(e)}\n        onFocus={handleButtonFocus}\n      >\n        <span>\n          <span aria-hidden className={arrowClass} />\n          <span>{label}</span>\n        </span>\n      </div>\n      <ul role=\"group\" className={makeClass(className, styles.group)} {...html}>\n        {isOpen &&\n          React.Children.map(children, (child) => {\n            return (\n              <TreeContext.Provider\n                value={{ isChild: true, depth: depth + 1, hasHover: showHover }}\n              >\n                {child}\n              </TreeContext.Provider>\n            );\n          })}\n      </ul>\n    </li>\n  );\n};\n\nTree.defaultProps = {\n  open: false,\n  hover: true,\n};\n", "import React, { useState, useEffect } from \"react\";\nimport makeClass from \"clsx\";\nimport { ThemeableElement, useTheme } from \"@devtools-ds/themes\";\nimport { ASTNode, isObject, getPromiseState } from \"@devtools-ds/object-parser\";\nimport styles from \"./ObjectInspector.css\";\n\ninterface ObjectValueProps extends ThemeableElement<\"span\"> {\n  /** Type of object. */\n  ast: ASTNode;\n  /** Whether or not to show the key */\n  showKey: boolean;\n}\n\n/**\n * Build the key and value spans\n *\n * @param key - The key string\n * @param value - The value string\n * @param valueClass - The class to apply to the value\n * @param showKey - Whether or not to show the key with the value\n * @param depth - Current depth (so we don't put a key on root)\n */\nconst buildValue = (\n  key: string,\n  value: React.ReactNode,\n  valueClass: string,\n  showKey: boolean,\n  depth: number\n) => {\n  const computedKey = key.includes(\"-\") ? `\"${key}\"` : key;\n  const isRoot = depth <= 0;\n  return (\n    <span className={styles.text}>\n      {!isRoot && showKey && (\n        <>\n          <span className={styles.key}>{computedKey}</span>\n          <span>:&nbsp;</span>\n        </>\n      )}\n\n      <span className={valueClass}>{value}</span>\n    </span>\n  );\n};\n\n/** Display a leaf key-value pair with appropriate styles. */\nexport const ObjectValue = (props: ObjectValueProps) => {\n  const { ast, theme, showKey, colorScheme, className, ...html } = props;\n  const { themeClass } = useTheme({ theme, colorScheme }, styles);\n  const [asyncValue, setAsyncValue] = useState(<span />);\n  let value = <span />;\n\n  /** Handle async types once */\n  useEffect(() => {\n    if (ast.value instanceof Promise) {\n      /** Async function to wait for Promise.race */\n      const waitForPromiseResult = async (promise: Promise<any>) => {\n        setAsyncValue(\n          buildValue(\n            ast.key,\n            `Promise { \"${await getPromiseState(promise)}\" }`,\n            styles.key,\n            showKey,\n            ast.depth\n          )\n        );\n      };\n\n      waitForPromiseResult(ast.value);\n    }\n  }, [ast, showKey]);\n\n  if (typeof ast.value === \"number\" || typeof ast.value === \"bigint\") {\n    // Number\n    value = buildValue(\n      ast.key,\n      String(ast.value),\n      styles.number,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"boolean\") {\n    // Boolean\n    value = buildValue(\n      ast.key,\n      String(ast.value),\n      styles.boolean,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"string\") {\n    // String\n    value = buildValue(\n      ast.key,\n      `\"${ast.value}\"`,\n      styles.string,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"undefined\") {\n    // Undefined\n    value = buildValue(\n      ast.key,\n      \"undefined\",\n      styles.undefined,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"symbol\") {\n    // Symbol\n    value = buildValue(\n      ast.key,\n      ast.value.toString(),\n      styles.string,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"function\") {\n    // Function\n    value = buildValue(\n      ast.key,\n      `${ast.value.name}()`,\n      styles.key,\n      showKey,\n      ast.depth\n    );\n  } else if (typeof ast.value === \"object\") {\n    if (ast.value === null) {\n      // Null\n      value = buildValue(ast.key, \"null\", styles.null, showKey, ast.depth);\n    } else if (Array.isArray(ast.value)) {\n      // Array\n      value = buildValue(\n        ast.key,\n        `Array(${ast.value.length})`,\n        styles.key,\n        showKey,\n        ast.depth\n      );\n    } else if (ast.value instanceof Date) {\n      // Date\n      value = buildValue(\n        ast.key,\n        `Date ${ast.value.toString()}`,\n        styles.value,\n        showKey,\n        ast.depth\n      );\n    } else if (ast.value instanceof RegExp) {\n      // RegExp\n      value = buildValue(\n        ast.key,\n        ast.value.toString(),\n        styles.regex,\n        showKey,\n        ast.depth\n      );\n    } else if (ast.value instanceof Error) {\n      // Error\n      value = buildValue(\n        ast.key,\n        ast.value.toString(),\n        styles.error,\n        showKey,\n        ast.depth\n      );\n    } else if (isObject(ast.value)) {\n      // Object\n      value = buildValue(ast.key, \"{\u2026}\", styles.key, showKey, ast.depth);\n    } else {\n      // WeakMap, WeakSet, Custom Classes, etc\n      value = buildValue(\n        ast.key,\n        ast.value.constructor.name,\n        styles.key,\n        showKey,\n        ast.depth\n      );\n    }\n  }\n\n  return (\n    <span className={makeClass(themeClass, className)} {...html}>\n      {asyncValue}\n      {value}\n    </span>\n  );\n};\n\nObjectValue.defaultProps = {\n  showKey: true,\n};\n\nexport default ObjectValue;\n", "import React from \"react\";\nimport makeClass from \"clsx\";\nimport { ThemeableElement, useTheme, Theme } from \"@devtools-ds/themes\";\nimport {\n  ResolvedASTNode,\n  ResolvedASTArray,\n  ResolvedASTObject,\n  ResolvedASTSet,\n  ResolvedASTPromise,\n  ResolvedASTMap,\n  ASTNode,\n} from \"@devtools-ds/object-parser\";\nimport ObjectValue from \"./ObjectValue\";\nimport styles from \"./ObjectInspector.css\";\n\ninterface ObjectLabelProps extends ThemeableElement<\"span\"> {\n  /** Type of object. */\n  ast: ResolvedASTNode;\n  /** How many previews to render */\n  previewMax: number;\n  /** Whether the Object label is open */\n  open: boolean;\n}\n\n/** Build a list of previews */\nconst buildPreview = (\n  children: ASTNode[],\n  previewMax: number,\n  showKey: boolean\n) => {\n  const previews = [];\n  for (let i = 0; i < children.length; i++) {\n    const child = children[i];\n\n    if (!child.isPrototype) {\n      previews.push(\n        <ObjectValue key={child.key} ast={child} showKey={showKey} />\n      );\n\n      if (i < children.length - 1) {\n        previews.push(\", \");\n      } else {\n        previews.push(\" \");\n      }\n    }\n\n    if (child.isPrototype && i === children.length - 1) {\n      previews.pop();\n      previews.push(\" \");\n    }\n\n    // Add ellipsis if needed\n    if (i === previewMax - 1 && children.length > previewMax) {\n      previews.push(\"\u2026 \");\n      break;\n    }\n  }\n\n  return previews;\n};\n\n/** Get the label for an array */\nconst getArrayLabel = (\n  ast: ResolvedASTArray,\n  open: boolean,\n  previewMax: number,\n  theme: Theme\n) => {\n  const l = ast.value.length;\n\n  if (open) {\n    return <span>Array({l})</span>;\n  }\n\n  return (\n    <>\n      <span>{`${theme === \"firefox\" ? \"Array\" : \"\"}(${l}) [ `}</span>\n      {buildPreview(ast.children, previewMax, false)}\n      <span>]</span>\n    </>\n  );\n};\n\n/** Get the label for an object */\nconst getObjectLabel = (\n  ast: ResolvedASTObject,\n  open: boolean,\n  previewMax: number,\n  theme: Theme\n) => {\n  if (ast.isPrototype) {\n    return <span>{`Object ${theme === \"firefox\" ? \"{ \u2026 }\" : \"\"}`}</span>;\n  }\n\n  if (open) {\n    return <span>{\"{\u2026}\"}</span>;\n  }\n\n  return (\n    <>\n      <span>{`${theme === \"firefox\" ? \"Object \" : \"\"}{ `}</span>\n      {buildPreview(ast.children, previewMax, true)}\n      <span>{\"}\"}</span>\n    </>\n  );\n};\n\n/** Get the label for a Promise */\nconst getPromiseLabel = (\n  ast: ResolvedASTPromise,\n  open: boolean,\n  previewMax: number\n) => {\n  if (open) {\n    return <span>{`Promise { \"${String(ast.children[0].value)}\" }`}</span>;\n  }\n\n  return (\n    <>\n      <span>{`Promise { `}</span>\n      {buildPreview(ast.children, previewMax, true)}\n      <span>{\"}\"}</span>\n    </>\n  );\n};\n\n/** Get the label for a Map */\nconst getMapLabel = (\n  ast: ResolvedASTMap,\n  open: boolean,\n  previewMax: number,\n  theme: Theme\n) => {\n  const { size } = ast.value;\n  if (open) {\n    return <span>{`Map(${size})`}</span>;\n  }\n\n  return (\n    <>\n      <span>{`Map${theme === \"chrome\" ? `(${size})` : \"\"} { `}</span>\n      {buildPreview(ast.children, previewMax, true)}\n      <span>{\"}\"}</span>\n    </>\n  );\n};\n\n/** Get the label for a Set */\nconst getSetLabel = (\n  ast: ResolvedASTSet,\n  open: boolean,\n  previewMax: number\n) => {\n  const { size } = ast.value;\n  if (open) {\n    return <span>Set({size})</span>;\n  }\n\n  return (\n    <>\n      <span>{`Set(${ast.value.size}) {`}</span>\n      {buildPreview(ast.children, previewMax, true)}\n      <span>{\"}\"}</span>\n    </>\n  );\n};\n\n/** Create a styled label for an object, with previews of the object contents. */\nexport const ObjectLabel = (props: ObjectLabelProps) => {\n  const {\n    ast,\n    theme,\n    previewMax,\n    open,\n    colorScheme,\n    className,\n    ...html\n  } = props;\n  const { themeClass, currentTheme } = useTheme({ theme, colorScheme }, styles);\n  const isPrototype = ast.isPrototype || false;\n  const classes = makeClass(styles.objectLabel, themeClass, className, {\n    [styles.prototype]: isPrototype,\n  });\n\n  const isRoot = ast.depth <= 0;\n\n  /** The key for the node */\n  const Key = () => {\n    return (\n      <span className={isPrototype ? styles.prototype : styles.key}>\n        {isRoot ? \"\" : `${ast.key}: `}\n      </span>\n    );\n  };\n\n  if (ast.type === \"array\") {\n    return (\n      <span className={classes} {...html}>\n        <Key />\n        {getArrayLabel(ast, open, previewMax, currentTheme)}\n      </span>\n    );\n  }\n\n  if (ast.type === \"function\") {\n    return (\n      <span className={classes} {...html}>\n        <Key />\n        {currentTheme === \"chrome\" && (\n          <span className={styles.functionDecorator}>{\"\u0192 \"}</span>\n        )}\n        <span\n          className={makeClass({ [styles.function]: !isPrototype })}\n        >{`${ast.value.name}()`}</span>\n      </span>\n    );\n  }\n\n  if (ast.type === \"promise\") {\n    return (\n      <span className={classes} {...html}>\n        <Key />\n        {getPromiseLabel(ast, open, previewMax)}\n      </span>\n    );\n  }\n\n  if (ast.type === \"map\") {\n    return (\n      <span className={classes} {...html}>\n        <Key />\n        {getMapLabel(ast, open, previewMax, currentTheme)}\n      </span>\n    );\n  }\n\n  if (ast.type === \"set\") {\n    return (\n      <span className={classes} {...html}>\n        <Key />\n        {getSetLabel(ast, open, previewMax)}\n      </span>\n    );\n  }\n\n  return (\n    <span className={classes} {...html}>\n      <Key />\n      {getObjectLabel(ast, open, previewMax, currentTheme)}\n    </span>\n  );\n};\n\nObjectLabel.defaultProps = {\n  previewMax: 8,\n  open: false,\n};\n\nexport default ObjectLabel;\n", "import React, { useEffect, useState } from \"react\";\nimport { Tree } from \"@devtools-ds/tree\";\nimport { ResolvedASTNode, ASTNode } from \"@devtools-ds/object-parser\";\nimport ObjectValue from \"./ObjectValue\";\nimport ObjectLabel from \"./ObjectLabel\";\n\ninterface ObjectInspectorItemProps {\n  /** JSON ast to render in the tree. */\n  ast: ASTNode;\n  /** The current depth. */\n  depth: number;\n  /** Depth of the tree that is open at first render. */\n  expandLevel: number;\n  /** Callback when a particular node in the tree is actively selected */\n  onSelect?: (node?: ASTNode | ResolvedASTNode) => void;\n}\n\n/** A simple component. */\nexport const ObjectInspectorItem = (props: ObjectInspectorItemProps) => {\n  const { ast, expandLevel, depth } = props;\n\n  const [resolved, setResolved] = useState<ResolvedASTNode | undefined>();\n  const [open, setOpen] = useState(Boolean(depth < expandLevel));\n\n  /** Handle async children */\n  useEffect(() => {\n    /** Async function to resolve children */\n    const resolve = async () => {\n      if (ast.type !== \"value\") {\n        const promises = ast.children.map((f) => f());\n        const children = await Promise.all(promises);\n        const r = {\n          ...ast,\n          children,\n        };\n        setResolved(r);\n      }\n    };\n\n    resolve();\n  }, [ast]);\n\n  if (resolved) {\n    return (\n      <Tree\n        hover={false}\n        open={open}\n        label={<ObjectLabel open={open} ast={resolved} />}\n        onSelect={() => {\n          props.onSelect?.(ast);\n        }}\n        onUpdate={(value: boolean) => {\n          setOpen(value);\n        }}\n      >\n        {resolved.children.map((child) => {\n          return (\n            <ObjectInspectorItem\n              key={child.key}\n              ast={child}\n              depth={depth + 1}\n              expandLevel={expandLevel}\n              onSelect={props.onSelect}\n            />\n          );\n        })}\n      </Tree>\n    );\n  }\n\n  return (\n    <Tree\n      hover={false}\n      label={<ObjectValue ast={ast} />}\n      onSelect={() => {\n        props.onSelect?.(ast);\n      }}\n    />\n  );\n};\n\nObjectInspectorItem.defaultProps = {\n  expandLevel: 0,\n  depth: 0,\n};\n\nexport default ObjectInspectorItem;\n", "import React, { useEffect, useState } from \"react\";\nimport makeClass from \"clsx\";\nimport {\n  parse,\n  SupportedTypes,\n  ASTNode,\n  ResolvedASTNode,\n} from \"@devtools-ds/object-parser\";\nimport { ThemeableElement, useTheme, ThemeProvider } from \"@devtools-ds/themes\";\nimport ObjectInspectorItem from \"./ObjectInspectorItem\";\n\nimport styles from \"./ObjectInspector.css\";\n\ninterface ObjectInspectorProps\n  extends Omit<ThemeableElement<\"div\">, \"onSelect\"> {\n  /** JSON data to render in the tree. */\n  data: SupportedTypes;\n  /** Depth of the tree that is open at first render. */\n  expandLevel: number;\n  /** Whether to sort keys like the browsers do. */\n  sortKeys: boolean;\n  /** Whether to include object Prototypes */\n  includePrototypes: boolean;\n  /** Callback when a particular node in the tree is actively selected */\n  onSelect?: (node?: ASTNode | ResolvedASTNode) => void;\n}\n\n/** An emulation of browsers JSON object inspector. */\nexport const ObjectInspector = (props: ObjectInspectorProps) => {\n  const {\n    data,\n    expandLevel,\n    sortKeys,\n    includePrototypes,\n    className,\n    theme,\n    colorScheme,\n    onSelect,\n    ...html\n  } = props;\n  const [ast, setAST] = useState<ASTNode | undefined>(undefined);\n  const { themeClass, currentTheme, currentColorScheme } = useTheme(\n    { theme, colorScheme },\n    styles\n  );\n\n  /** Handle async types */\n  useEffect(() => {\n    /** Async function run the parser */\n    const runParser = async () => {\n      setAST(await parse(data, sortKeys, includePrototypes));\n    };\n\n    runParser();\n  }, [data, sortKeys, includePrototypes]);\n\n  return (\n    <div\n      className={makeClass(styles.objectInspector, className, themeClass)}\n      {...html}\n    >\n      {ast && (\n        <ThemeProvider theme={currentTheme} colorScheme={currentColorScheme}>\n          <ObjectInspectorItem\n            ast={ast}\n            expandLevel={expandLevel}\n            onSelect={onSelect}\n          />\n        </ThemeProvider>\n      )}\n    </div>\n  );\n};\n\nObjectInspector.defaultProps = {\n  expandLevel: 0,\n  sortKeys: true,\n  includePrototypes: true,\n};\n\nexport default ObjectInspector;\n", "import React from 'react';\nimport { Icons } from '@storybook/components';\nimport { CallStates } from '@storybook/instrumenter';\nimport { styled } from '@storybook/theming';\nimport { transparentize } from 'polished';\nimport localTheme from '../theme';\nconst {\n  colors: {\n    pure: {\n      gray\n    }\n  }\n} = localTheme;\nconst StyledStatusIcon = styled(Icons)(({\n  theme,\n  status\n}) => {\n  const color = {\n    [CallStates.DONE]: theme.color.positive,\n    [CallStates.ERROR]: theme.color.negative,\n    [CallStates.ACTIVE]: theme.color.secondary,\n    [CallStates.WAITING]: transparentize(0.5, gray[500])\n  }[status];\n  return {\n    width: status === CallStates.WAITING ? 6 : 12,\n    height: status === CallStates.WAITING ? 6 : 12,\n    color,\n    justifySelf: 'center'\n  };\n});\nexport const StatusIcon = ({\n  status,\n  className\n}) => {\n  const icon = {\n    [CallStates.DONE]: 'check',\n    [CallStates.ERROR]: 'stopalt',\n    [CallStates.ACTIVE]: 'play',\n    [CallStates.WAITING]: 'circle'\n  }[status];\n  return /*#__PURE__*/React.createElement(StyledStatusIcon, {\n    \"data-testid\": `icon-${status}`,\n    status: status,\n    icon: icon,\n    className: className\n  });\n};", "/**\n * Interaction Testing Theme\n * PLACEHOLDER until SB is updated <3\n */\nexport const colors = {\n  pure: {\n    gray: {\n      500: '#CCCCCC'\n    }\n  }\n};\nexport const theme = {\n  colors\n};\nexport default theme;", "import { styled } from '@storybook/theming';\nimport ReactDOM from 'react-dom';\nimport { StatusIcon } from './StatusIcon';\nexport const TabStatus = ({\n  children\n}) => {\n  const container = global.document.getElementById('tabbutton-interactions');\n  return container && /*#__PURE__*/ReactDOM.createPortal(children, container);\n};\nexport const TabIcon = styled(StatusIcon)({\n  marginLeft: 5\n});", "export default __REACTDOM__;\nconst { createPortal, findDOMNode, flushSync, hydrate, render, unmountComponentAtNode, unstable_batchedUpdates, unstable_createPortal, unstable_renderSubtreeIntoContainer, version } = __REACTDOM__;\nexport { createPortal, findDOMNode, flushSync, hydrate, render, unmountComponentAtNode, unstable_batchedUpdates, unstable_createPortal, unstable_renderSubtreeIntoContainer, version };"],
  "mappings": "8lBAAA,8BAAI,IAEJ,AAAI,MAAO,QAAW,KAEX,MAAO,QAAW,IADzB,GAAM,OAGH,AAAI,MAAO,MAAS,IACvB,GAAM,KAEN,GAAM,CAAC,EAGX,GAAO,QAAU,KCZjB,6BAAI,IAAQ,SAAU,EAAI,CACxB,MAAO,IAAM,EAAG,MAAQ,MAAQ,CAClC,EAGA,GAAO,QAEL,GAAM,MAAO,aAAc,UAAY,UAAU,GACjD,GAAM,MAAO,SAAU,UAAY,MAAM,GAEzC,GAAM,MAAO,OA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