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AER,QAAS,CACP,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,QAAS,CACP,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,OAAQ,CACN,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,MAAO,CACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAM,UACN,KAAM,UACN,KAAM,WAER,MAAO,CACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL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AAiB,eACzB,QAAQ,cAAgB,cACxB,QAAQ,YAAc,YACtB,QAAQ,gBAAkB,gBAC1B,QAAQ,YAAc,YACtB,QAAQ,iBAAmB,iBAC3B,QAAQ,uBAAyB,uBACjC,QAAQ,SAAW,SACnB,QAAQ,WAAa,WACrB,QAAQ,sBAAwB,sBAChC,QAAQ,kBAAoB,kBAC5B,QAAQ,cAAgB,cACxB,QAAQ,gBAAkB,gBAC1B,QAAQ,WAAa,WACrB,QAAQ,WAAa,WACrB,QAAQ,wBAA0B,wBAClC,QAAQ,eAAiB,eACzB,QAAQ,YAAc,YACtB,QAAQ,QAAU,QAClB,QAAQ,UAAY","file":"/npm/@zendeskgarden/react-theming@9.12.4/dist/index.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@zendeskgarden/react-theming@9.12.4/dist/index.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n* Copyright Zendesk, Inc.\n*\n* Use of this source code is governed under the Apache License, Version 2.0\n* found at http://www.apache.org/licenses/LICENSE-2.0.\n*/\n'use strict';\n\nvar React = require('react');\nvar PropTypes = require('prop-types');\nvar styled = require('styled-components');\nvar color2k = require('color2k');\nvar polished = require('polished');\nvar get = require('lodash.get');\nvar memoize = require('lodash.memoize');\n\nfunction _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }\n\nvar React__default = /*#__PURE__*/_interopDefault(React);\nvar PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);\nvar styled__default = /*#__PURE__*/_interopDefault(styled);\nvar get__default = /*#__PURE__*/_interopDefault(get);\nvar memoize__default = /*#__PURE__*/_interopDefault(memoize);\n\nconst mediaQuery$1 = typeof window === 'undefined' ? undefined : window.matchMedia('(prefers-color-scheme: dark)');\nconst useColorScheme$1 = (initialState, colorSchemeKey) => {\n  const localStorage =\n  typeof window === 'undefined' || colorSchemeKey === null ? undefined : window.localStorage;\n  const getState = React.useCallback(_state => {\n    const isSystem = _state === 'system' || _state === undefined || _state === null;\n    let colorScheme;\n    if (isSystem) {\n      colorScheme = mediaQuery$1?.matches ? 'dark' : 'light';\n    } else {\n      colorScheme = _state;\n    }\n    return {\n      isSystem,\n      colorScheme\n    };\n  }, []);\n  const [state, setState] = React.useState(getState(localStorage?.getItem(colorSchemeKey) || initialState));\n  return {\n    isSystem: state.isSystem,\n    colorScheme: state.colorScheme,\n    setColorScheme: colorScheme => {\n      setState(getState(colorScheme));\n      localStorage?.setItem(colorSchemeKey, colorScheme);\n    }\n  };\n};\nconst ColorSchemeContext = React.createContext(undefined);\nconst ColorSchemeProvider = ({\n  children,\n  colorSchemeKey = 'color-scheme',\n  initialColorScheme = 'system'\n}) => {\n  const {\n    isSystem,\n    colorScheme,\n    setColorScheme\n  } = useColorScheme$1(initialColorScheme, colorSchemeKey);\n  const contextValue = React.useMemo(() => ({\n    colorScheme,\n    isSystem,\n    setColorScheme\n  }), [isSystem, colorScheme, setColorScheme]);\n  React.useEffect(() => {\n    const eventListener = () => {\n      setColorScheme('system');\n    };\n    if (isSystem) {\n      mediaQuery$1?.addEventListener('change', eventListener);\n    } else {\n      mediaQuery$1?.removeEventListener('change', eventListener);\n    }\n    return () => {\n      mediaQuery$1?.removeEventListener('change', eventListener);\n    };\n  }, [isSystem, setColorScheme]);\n  return React__default.default.createElement(ColorSchemeContext.Provider, {\n    value: contextValue\n  }, children);\n};\nColorSchemeProvider.propTypes = {\n  colorSchemeKey: PropTypes__default.default.string,\n  initialColorScheme: PropTypes__default.default.oneOf(['light', 'dark', 'system'])\n};\n\nconst PALETTE = {\n  black: '#000',\n  white: '#fff',\n  product: {\n    support: '#00a656',\n    explore: '#30aabc',\n    gather: '#f6c8be',\n    guide: '#eb4962',\n    chat: '#f79a3e',\n    talk: '#efc93d',\n    sell: '#c38f00'\n  },\n  grey: {\n    100: '#f8f9f9',\n    200: '#e8eaec',\n    300: '#d8dcde',\n    400: '#b0b8be',\n    500: '#919ca5',\n    600: '#848f99',\n    700: '#5c6970',\n    800: '#39434b',\n    900: '#293239',\n    1000: '#1c2227',\n    1100: '#151a1e',\n    1200: '#0a0d0e'\n  },\n  blue: {\n    100: '#edf7ff',\n    200: '#ddecf8',\n    300: '#cce0f1',\n    400: '#93bcdc',\n    500: '#66a0cd',\n    600: '#2694d6',\n    700: '#1f73b7',\n    800: '#13456d',\n    900: '#0f3655',\n    1000: '#0a2338',\n    1100: '#061420',\n    1200: '#040d15'\n  },\n  red: {\n    100: '#fff2f3',\n    200: '#fee3e5',\n    300: '#f5d5d8',\n    400: '#f2a1a8',\n    500: '#ea7881',\n    600: '#eb5c69',\n    700: '#cd3642',\n    800: '#7e1d25',\n    900: '#671219',\n    1000: '#3d1418',\n    1100: '#1d1011',\n    1200: '#100b0c'\n  },\n  yellow: {\n    100: '#fff3e4',\n    200: '#ffe6cb',\n    300: '#fed6a9',\n    400: '#fca347',\n    500: '#e38215',\n    600: '#d67305',\n    700: '#ac5918',\n    800: '#673515',\n    900: '#4c2c17',\n    1000: '#2d1e15',\n    1100: '#18120f',\n    1200: '#0e0c0b'\n  },\n  green: {\n    100: '#eef8f4',\n    200: '#daeee6',\n    300: '#cae3d9',\n    400: '#94c1b0',\n    500: '#4eab89',\n    600: '#26a178',\n    700: '#037f52',\n    800: '#104b35',\n    900: '#0b3b29',\n    1000: '#0c261c',\n    1100: '#0a1511',\n    1200: '#080d0c'\n  },\n  kale: {\n    100: '#ecf9f9',\n    200: '#daeded',\n    300: '#cbe2e1',\n    400: '#97bfbf',\n    500: '#6ba4a5',\n    600: '#4a9999',\n    700: '#40787a',\n    800: '#16494f',\n    900: '#063940',\n    1000: '#03252a',\n    1100: '#061517',\n    1200: '#060e0e'\n  },\n  fuschia: {\n    100: '#fbf3f8',\n    200: '#f7e6f1',\n    300: '#f2d5e7',\n    400: '#e3a4cc',\n    500: '#d77db7',\n    600: '#d16aac',\n    700: '#b34496',\n    800: '#78116c',\n    900: '#5a0d51',\n    1000: '#3f0939',\n    1100: '#31072c',\n    1200: '#1b0418'\n  },\n  pink: {\n    100: '#fcf3f4',\n    200: '#f7e5e8',\n    300: '#f3d6dc',\n    400: '#e5a6b4',\n    500: '#d98193',\n    600: '#d96b81',\n    700: '#d62054',\n    800: '#75263d',\n    900: '#561d2e',\n    1000: '#3c141f',\n    1100: '#2e0f18',\n    1200: '#17080c'\n  },\n  crimson: {\n    100: '#fbf3f2',\n    200: '#f7e7e4',\n    300: '#f1d7d2',\n    400: '#e2aaa0',\n    500: '#d58678',\n    600: '#cf7464',\n    700: '#be4938',\n    800: '#811b12',\n    900: '#61140d',\n    1000: '#440e09',\n    1100: '#340b07',\n    1200: '#1c0604'\n  },\n  orange: {\n    100: '#fdf3ed',\n    200: '#fae7d8',\n    300: '#f7d7be',\n    400: '#eda875',\n    500: '#e58035',\n    600: '#d57428',\n    700: '#af5626',\n    800: '#693317',\n    900: '#4d2711',\n    1000: '#361a0c',\n    1100: '#291409',\n    1200: '#150a04'\n  },\n  lemon: {\n    100: '#fff7d4',\n    200: '#ffea97',\n    300: '#ffdc4f',\n    400: '#efab00',\n    500: '#c79100',\n    600: '#b68500',\n    700: '#8f6900',\n    800: '#563e00',\n    900: '#3f2e00',\n    1000: '#2b2000',\n    1100: '#221800',\n    1200: '#110c00'\n  },\n  lime: {\n    100: '#ecfae7',\n    200: '#d1f3c7',\n    300: '#b3eda3',\n    400: '#4fd12b',\n    500: '#45b025',\n    600: '#509f2d',\n    700: '#3d7e19',\n    800: '#2c491b',\n    900: '#203614',\n    1000: '#16250e',\n    1100: '#111d0a',\n    1200: '#090e05'\n  },\n  mint: {\n    100: '#d6ffeb',\n    200: '#9affce',\n    300: '#0afe89',\n    400: '#00d26d',\n    500: '#01b15c',\n    600: '#16a260',\n    700: '#2d7e55',\n    800: '#1b4b33',\n    900: '#143726',\n    1000: '#0e261a',\n    1100: '#0b1d14',\n    1200: '#050e0a'\n  },\n  teal: {\n    100: '#d4fefa',\n    200: '#88fdf1',\n    300: '#0bf8e1',\n    400: '#03cdb8',\n    500: '#02ad9c',\n    600: '#2a9d8f',\n    700: '#367a74',\n    800: '#254846',\n    900: '#1b3534',\n    1000: '#122423',\n    1100: '#0e1c1a',\n    1200: '#070d0d'\n  },\n  azure: {\n    100: '#eff7fe',\n    200: '#d9ecfc',\n    300: '#c4e0fa',\n    400: '#82bcf4',\n    500: '#4b9fee',\n    600: '#3191ea',\n    700: '#2770c3',\n    800: '#23446b',\n    900: '#1a3250',\n    1000: '#122238',\n    1100: '#0e1a2a',\n    1200: '#070d14'\n  },\n  royal: {\n    100: '#f4f5fc',\n    200: '#e7e9f8',\n    300: '#d8dcf4',\n    400: '#acb4e7',\n    500: '#8a96dd',\n    600: '#7a88d9',\n    700: '#4c67d3',\n    800: '#1833ab',\n    900: '#122680',\n    1000: '#0d1a5a',\n    1100: '#0a1445',\n    1200: '#050a25'\n  },\n  purple: {\n    100: '#f9f3fb',\n    200: '#f2e7f6',\n    300: '#e9d8f1',\n    400: '#d0a9e0',\n    500: '#bb86d3',\n    600: '#b276cd',\n    700: '#9256b1',\n    800: '#58209a',\n    900: '#411973',\n    1000: '#2e1150',\n    1100: '#230d3f',\n    1200: '#120720'\n  }\n};\n\nconst BASE = 4;\nconst borderRadii = {\n  sm: `${BASE / 2}px`,\n  md: `${BASE}px`,\n  lg: `${BASE * 2}px`\n};\nconst borderStyles = {\n  solid: 'solid'\n};\nconst borderWidths = {\n  sm: '1px',\n  md: '3px'\n};\nconst borders = {\n  sm: `${borderWidths.sm} ${borderStyles.solid}`,\n  md: `${borderWidths.md} ${borderStyles.solid}`\n};\nconst breakpoints = {\n  xs: '0px',\n  sm: `${BASE * 144}px`,\n  md: `${BASE * 192}px`,\n  lg: `${BASE * 248}px`,\n  xl: `${BASE * 300}px`\n};\nconst colors = {\n  primaryHue: 'blue',\n  dangerHue: 'red',\n  warningHue: 'yellow',\n  successHue: 'green',\n  neutralHue: 'grey',\n  chromeHue: 'kale',\n  variables: {\n    dark: {\n      background: {\n        default: 'neutralHue.1100',\n        raised: 'neutralHue.1000',\n        recessed: 'neutralHue.1200',\n        subtle: 'neutralHue.1000',\n        emphasis: 'neutralHue.600',\n        success: 'successHue.1000',\n        warning: 'warningHue.1000',\n        danger: 'dangerHue.1000',\n        primaryEmphasis: 'primaryHue.600',\n        successEmphasis: 'successHue.600',\n        warningEmphasis: 'warningHue.600',\n        dangerEmphasis: 'dangerHue.600',\n        disabled: 'rgba(white, 100)'\n      },\n      border: {\n        default: 'neutralHue.800',\n        emphasis: 'neutralHue.600',\n        subtle: 'neutralHue.900',\n        success: 'successHue.900',\n        warning: 'warningHue.900',\n        danger: 'dangerHue.900',\n        primaryEmphasis: 'primaryHue.600',\n        successEmphasis: 'successHue.600',\n        warningEmphasis: 'warningHue.600',\n        dangerEmphasis: 'dangerHue.600',\n        disabled: 'neutralHue.800'\n      },\n      foreground: {\n        default: 'neutralHue.300',\n        subtle: 'neutralHue.500',\n        onEmphasis: 'neutralHue.1100',\n        primary: 'primaryHue.600',\n        success: 'successHue.400',\n        warning: 'warningHue.400',\n        danger: 'dangerHue.400',\n        successEmphasis: 'successHue.300',\n        warningEmphasis: 'warningHue.300',\n        dangerEmphasis: 'dangerHue.300',\n        disabled: 'neutralHue.700'\n      },\n      shadow: {\n        small: 'rgba(neutralHue.1200, 1100)',\n        medium: 'rgba(neutralHue.1200, 800)',\n        large: 'rgba(neutralHue.1200, 1000)'\n      }\n    },\n    light: {\n      background: {\n        default: 'palette.white',\n        raised: 'palette.white',\n        recessed: 'neutralHue.100',\n        subtle: 'neutralHue.100',\n        emphasis: 'neutralHue.700',\n        success: 'successHue.100',\n        warning: 'warningHue.100',\n        danger: 'dangerHue.100',\n        primaryEmphasis: 'primaryHue.700',\n        successEmphasis: 'successHue.700',\n        warningEmphasis: 'warningHue.700',\n        dangerEmphasis: 'dangerHue.700',\n        disabled: 'rgba(neutralHue.700, 100)'\n      },\n      border: {\n        default: 'neutralHue.300',\n        emphasis: 'neutralHue.600',\n        subtle: 'neutralHue.200',\n        success: 'successHue.300',\n        warning: 'warningHue.300',\n        danger: 'dangerHue.300',\n        primaryEmphasis: 'primaryHue.700',\n        successEmphasis: 'successHue.700',\n        warningEmphasis: 'warningHue.700',\n        dangerEmphasis: 'dangerHue.700',\n        disabled: 'neutralHue.300'\n      },\n      foreground: {\n        default: 'neutralHue.900',\n        subtle: 'neutralHue.700',\n        onEmphasis: 'palette.white',\n        primary: 'primaryHue.700',\n        success: 'successHue.700',\n        warning: 'warningHue.700',\n        danger: 'dangerHue.700',\n        successEmphasis: 'successHue.900',\n        warningEmphasis: 'warningHue.900',\n        dangerEmphasis: 'dangerHue.900',\n        disabled: 'neutralHue.600'\n      },\n      shadow: {\n        small: 'rgba(neutralHue.1200, 200)',\n        medium: 'rgba(neutralHue.1200, 200)',\n        large: 'rgba(neutralHue.1200, 200)'\n      }\n    }\n  }\n};\nconst fonts = {\n  mono: ['SFMono-Regular' , 'Consolas' , '\"Liberation Mono\"' , 'Menlo', 'Courier', 'monospace'].join(','),\n  system: ['system-ui' , '-apple-system' , 'BlinkMacSystemFont' , '\"Segoe UI\"' , 'Roboto' , 'Oxygen-Sans' , 'Ubuntu' , 'Cantarell' , '\"Helvetica Neue\"', 'Arial', 'sans-serif'].join(',')\n};\nconst fontSizes = {\n  xs: '10px',\n  sm: '12px',\n  md: '14px',\n  lg: '18px',\n  xl: '22px',\n  xxl: '26px',\n  xxxl: '36px'\n};\nconst fontWeights = {\n  thin: 100,\n  extralight: 200,\n  light: 300,\n  regular: 400,\n  medium: 500,\n  semibold: 600,\n  bold: 700,\n  extrabold: 800,\n  black: 900\n};\nconst iconSizes = {\n  sm: '12px',\n  md: '16px',\n  lg: '26px'\n};\nconst lineHeights = {\n  sm: `${BASE * 4}px`,\n  md: `${BASE * 5}px`,\n  lg: `${BASE * 6}px`,\n  xl: `${BASE * 7}px`,\n  xxl: `${BASE * 8}px`,\n  xxxl: `${BASE * 11}px`\n};\nconst opacity = {\n  100: 0.08,\n  200: 0.16,\n  300: 0.24,\n  400: 0.32,\n  500: 0.4,\n  600: 0.48,\n  700: 0.56,\n  800: 0.64,\n  900: 0.72,\n  1000: 0.8,\n  1100: 0.88,\n  1200: 0.96\n};\nconst palette = {\n  ...PALETTE\n};\ndelete palette.product;\nconst shadowWidths = {\n  xs: '1px',\n  sm: '2px',\n  md: '3px'\n};\nconst shadows = {\n  xs: color => `0 0 0 ${shadowWidths.xs} ${color}`,\n  sm: color => `0 0 0 ${shadowWidths.sm} ${color}`,\n  md: color => `0 0 0 ${shadowWidths.md} ${color}`,\n  lg: (offsetY, blurRadius, color) => `0 ${offsetY} ${blurRadius} 0 ${color}`\n};\nconst space = {\n  base: BASE,\n  xxs: `${BASE}px`,\n  xs: `${BASE * 2}px`,\n  sm: `${BASE * 3}px`,\n  md: `${BASE * 5}px`,\n  lg: `${BASE * 8}px`,\n  xl: `${BASE * 10}px`,\n  xxl: `${BASE * 12}px`\n};\nconst DEFAULT_THEME = {\n  borders,\n  borderRadii,\n  borderStyles,\n  borderWidths,\n  breakpoints,\n  colors: {\n    base: 'light',\n    ...colors\n  },\n  components: {},\n  fonts,\n  fontSizes,\n  fontWeights,\n  iconSizes,\n  lineHeights,\n  opacity,\n  palette,\n  rtl: false,\n  shadowWidths,\n  shadows,\n  space\n};\n\nconst ThemeProvider = ({\n  theme = DEFAULT_THEME,\n  ...other\n}) => React__default.default.createElement(styled.ThemeProvider, Object.assign({\n  theme: theme\n}, other));\n\nfunction retrieveComponentStyles(componentId, props) {\n  const components = props.theme?.components;\n  if (!components) {\n    return undefined;\n  }\n  const componentStyles = components[componentId];\n  if (typeof componentStyles === 'function') {\n    return componentStyles(props);\n  }\n  return componentStyles;\n}\n\nconst componentStyles = props => {\n  let retVal;\n  const components = props.theme.components;\n  const componentId = props.componentId || props['data-garden-id'];\n  if (components && componentId) {\n    retVal = components[componentId];\n    if (typeof retVal === 'function') {\n      const fn = retVal;\n      retVal = fn(props);\n    }\n  }\n  return retVal;\n};\n\nconst POSITION_MAP = {\n  top: 'bottom',\n  'top-start': 'bottom-left',\n  'top-end': 'bottom-right',\n  right: 'left',\n  'right-start': 'left-top',\n  'right-end': 'left-bottom',\n  bottom: 'top',\n  'bottom-start': 'top-left',\n  'bottom-end': 'top-right',\n  left: 'right',\n  'left-start': 'right-top',\n  'left-end': 'right-bottom'\n};\nconst RTL_POSITION_MAP = {\n  'bottom-left': 'bottom-right',\n  'bottom-right': 'bottom-left',\n  'top-left': 'top-right',\n  'top-right': 'top-left'\n};\nconst getArrowPosition = (theme, placement) => {\n  let retVal = POSITION_MAP[placement];\n  if (theme.rtl) {\n    retVal = RTL_POSITION_MAP[retVal] || retVal;\n  }\n  return retVal;\n};\n\nconst adjust$1 = (color, expected, actual) => {\n  if (expected !== actual) {\n    const amount = Math.abs(expected - actual) / 100 * 0.05;\n    return expected > actual ? polished.darken(amount, color) : polished.lighten(amount, color);\n  }\n  return color;\n};\nconst toShade = (shade, offset, transparency, scheme) => {\n  let _shade;\n  if (shade === undefined) {\n    const darkShade = transparency === undefined ? 600 : 500;\n    _shade = scheme === 'dark' ? darkShade : 700;\n  } else {\n    _shade = parseInt(shade.toString(), 10);\n    if (isNaN(_shade)) {\n      throw new TypeError(`Error: unexpected '${typeof shade}' type for color shade \"${shade}\"`);\n    }\n  }\n  return _shade + (offset || 0);\n};\nconst toHex = (hue, shade, offset, transparency, scheme) => {\n  const _shade = toShade(shade, offset, transparency, scheme);\n  let retVal = hue[_shade];\n  if (!retVal) {\n    const closestShade = Object.keys(hue).map(hueShade => parseInt(hueShade, 10)).reduce((previous, current) => {\n      return Math.abs(current - _shade) < Math.abs(previous - _shade) ? current : previous;\n    });\n    retVal = adjust$1(hue[closestShade], _shade, closestShade);\n  }\n  return retVal;\n};\nconst isValidColor = maybeColor => {\n  let retVal = ['currentcolor', 'inherit', 'transparent'].includes(maybeColor);\n  if (!retVal) {\n    try {\n      retVal = !!color2k.parseToRgba(maybeColor);\n    } catch {\n      retVal = false;\n    }\n  }\n  return retVal;\n};\nfunction findNearestIndex(target, arr, startIndex = 0) {\n  if (typeof target !== 'number' || isNaN(target)) {\n    throw new Error('Target must be a number.');\n  }\n  if (!Array.isArray(arr)) {\n    throw new Error('Second argument must be an array.');\n  }\n  let left = startIndex;\n  let right = arr.length - 1;\n  if (target < arr[left]) return left;\n  if (target > arr[right]) return right;\n  while (left <= right) {\n    const mid = Math.floor((left + right) / 2);\n    if (arr[mid] === target) {\n      return mid;\n    } else if (arr[mid] < target) {\n      left = mid + 1;\n    } else {\n      right = mid - 1;\n    }\n  }\n  return arr[left] - target < target - arr[right] ? left : right;\n}\nconst OFFSET_TO_TARGET_RATIO = {\n  100: 1.08,\n  200: 1.2,\n  300: 1.35,\n  400: 2,\n  500: 2.8,\n  600: 3.3,\n  700: 5,\n  800: 10,\n  900: 13,\n  1000: 16,\n  1100: 17.5,\n  1200: 19\n};\nconst generateColorScale = memoize__default.default(color => {\n  const scaleSize = 200;\n  const _scale = color2k.getScale('#FFF', color, '#000');\n  const scale = x => _scale(x / scaleSize);\n  const colors = [];\n  const contrastRatios = [];\n  for (let i = 0; i <= scaleSize; i++) {\n    const _color = color2k.toHex(scale(i));\n    colors.push(_color);\n    contrastRatios.push(polished.getContrast('#FFF', _color));\n  }\n  const palette = {};\n  let startIndex = 0;\n  for (const offset in OFFSET_TO_TARGET_RATIO) {\n    if (Object.prototype.hasOwnProperty.call(OFFSET_TO_TARGET_RATIO, offset)) {\n      const ratio = OFFSET_TO_TARGET_RATIO[offset];\n      const nearestIndex = findNearestIndex(ratio, contrastRatios, startIndex);\n      startIndex = nearestIndex + 1;\n      palette[offset] = colors[nearestIndex];\n    }\n  }\n  return palette;\n});\nconst toColor = (colors, palette, opacity, scheme, hue, shade, offset, transparency) => {\n  let retVal;\n  let _hue = colors[hue]  || hue;\n  if (Object.prototype.hasOwnProperty.call(palette, _hue)) {\n    _hue = palette[_hue];\n  }\n  if (typeof _hue === 'object') {\n    retVal = toHex(_hue, shade, offset, transparency, scheme);\n  } else if (isValidColor(_hue)) {\n    if (shade === undefined) {\n      retVal = _hue;\n    } else {\n      _hue = generateColorScale(_hue);\n      retVal = toHex(_hue, shade, offset, transparency, scheme);\n    }\n  }\n  if (retVal && transparency) {\n    const alpha = transparency > 1 ? opacity[transparency] : transparency;\n    if (alpha === undefined) {\n      throw new Error('Error: invalid `transparency` parameter');\n    }\n    retVal = polished.rgba(retVal, alpha);\n  }\n  return retVal;\n};\nconst toProperty = (object, path) => {\n  const retVal = get__default.default(object, path);\n  if (typeof retVal === 'string') {\n    return retVal;\n  } else if (retVal === undefined) {\n    throw new ReferenceError(`Error: color variable '${path}' is not defined`);\n  } else {\n    throw new TypeError(`Error: unexpected '${typeof retVal}' type for color variable \"${path}\"`);\n  }\n};\nconst fromRgba = value => {\n  let retVal;\n  const regex = /rgba\\s*\\(\\s*(?<property>[#\\w.]+)\\s*,\\s*(?<alpha>[\\w.]+)\\s*\\)/gu;\n  const _rgba = regex.exec(value);\n  if (_rgba && _rgba.groups) {\n    const property = _rgba.groups.property;\n    const transparency = parseFloat(_rgba.groups.alpha);\n    retVal = {\n      property,\n      transparency\n    };\n  } else {\n    throw new Error(`Error: invalid \\`rgba\\` value \"${value}\"`);\n  }\n  return retVal;\n};\nconst fromVariable = (variable, variables, palette) => {\n  const retVal = {};\n  let property = toProperty(variables, variable);\n  if (property.startsWith('rgba')) {\n    const value = fromRgba(property);\n    property = value.property;\n    retVal.transparency = value.transparency;\n  }\n  const [key, value] = property.split(/\\.(?<value>.*)/u);\n  if (key === 'palette') {\n    retVal.hue = toProperty(palette, value);\n  } else {\n    retVal.hue = key;\n    if (value !== undefined) {\n      retVal.shade = parseInt(value, 10);\n    }\n  }\n  return retVal;\n};\nconst CACHE$1 = new WeakMap();\nconst KEYS$1 = {\n  colors: 0,\n  palette: 0,\n  opacity: 0\n};\nCACHE$1.set(DEFAULT_THEME.colors, KEYS$1.colors);\nCACHE$1.set(DEFAULT_THEME.palette, KEYS$1.palette);\nCACHE$1.set(DEFAULT_THEME.opacity, KEYS$1.opacity);\nconst toKey$1 = ({\n  dark,\n  hue,\n  light,\n  offset,\n  shade,\n  theme,\n  transparency,\n  variable\n}) => {\n  let themeColorsKey;\n  if (theme.colors) {\n    themeColorsKey = CACHE$1.get(theme.colors);\n    if (themeColorsKey === undefined) {\n      themeColorsKey = ++KEYS$1.colors;\n      CACHE$1.set(theme.colors, themeColorsKey);\n    }\n  }\n  let themeOpacityKey;\n  if (theme.opacity) {\n    themeOpacityKey = CACHE$1.get(theme.opacity);\n    if (themeOpacityKey === undefined) {\n      themeOpacityKey = ++KEYS$1.opacity;\n      CACHE$1.set(theme.opacity, themeOpacityKey);\n    }\n  }\n  let themePaletteKey;\n  if (theme.palette) {\n    themePaletteKey = CACHE$1.get(theme.palette);\n    if (themePaletteKey === undefined) {\n      themePaletteKey = ++KEYS$1.palette;\n      CACHE$1.set(theme.palette, themePaletteKey);\n    }\n  }\n  let retVal = `{${themeColorsKey},${themePaletteKey},${themeOpacityKey}}`;\n  if (variable !== undefined) {\n    retVal += `,${variable}`;\n  }\n  if (hue !== undefined) {\n    retVal += `,${hue}`;\n  }\n  if (shade !== undefined) {\n    retVal += `,${shade}`;\n  }\n  if (offset !== undefined) {\n    retVal += `,${offset}`;\n  }\n  if (transparency !== undefined) {\n    retVal += `,${transparency}`;\n  }\n  if (dark !== undefined) {\n    retVal += `,${JSON.stringify(dark)}`;\n  }\n  if (light !== undefined) {\n    retVal += `,${JSON.stringify(light)}`;\n  }\n  return retVal;\n};\nconst getColor = memoize__default.default(({\n  dark,\n  hue,\n  light,\n  offset,\n  shade,\n  theme,\n  transparency,\n  variable\n}) => {\n  let retVal;\n  const palette = theme.palette && Object.keys(theme.palette).length > 0 ? theme.palette : DEFAULT_THEME.palette;\n  const {\n    base,\n    variables,\n    ...colors\n  } = theme.colors && Object.keys(theme.colors).length > 0 ? theme.colors : DEFAULT_THEME.colors;\n  const scheme = base === 'dark' ? 'dark' : 'light';\n  const mode = scheme === 'dark' ? dark : light;\n  let _hue = mode?.hue || hue;\n  let _shade = mode?.shade === undefined ? shade : mode.shade;\n  const _offset = mode?.offset === undefined ? offset : mode.offset;\n  let _transparency = mode?.transparency === undefined ? transparency : mode.transparency;\n  if (variable) {\n    const _variables = variables?.[scheme] ? variables[scheme] : DEFAULT_THEME.colors.variables[scheme];\n    const value = fromVariable(variable, _variables, palette);\n    _hue = value.hue;\n    _shade = value.shade;\n    _transparency = _transparency === undefined ? value.transparency : _transparency;\n  }\n  if (_hue) {\n    const opacity = theme.opacity && Object.keys(theme.opacity).length > 0 ? theme.opacity : DEFAULT_THEME.opacity;\n    retVal = toColor(colors, palette, opacity, scheme, _hue, _shade, _offset, _transparency);\n  }\n  if (retVal === undefined) {\n    throw new Error('Error: invalid `getColor` parameters');\n  }\n  return retVal;\n}, ({\n  dark,\n  hue,\n  light,\n  offset,\n  shade,\n  theme,\n  transparency,\n  variable\n}) => toKey$1({\n  dark,\n  hue,\n  light,\n  offset,\n  shade,\n  theme,\n  transparency,\n  variable\n}));\n\nconst getCheckeredBackground = ({\n  theme,\n  size,\n  overlay,\n  positionY = 0,\n  repeat = 'repeat'\n}) => {\n  const color = getColor({\n    theme,\n    variable: 'border.default'\n  });\n  const dimensions = `${size}px ${size}px`;\n  const positionX1 = theme.rtl ? '100%' : '0';\n  const positionX2 = theme.rtl ? `calc(100% - ${size / 2}px)` : `${size / 2}px`;\n  const position1 = `${positionX1} ${positionY}px`;\n  const position2 = `${positionX2} ${size / 2 + positionY}px`;\n  const position3 = `${positionX2} ${positionY}px`;\n  const position4 = `${positionX1} ${size / -2 + positionY}px`;\n  let retVal = `\n    linear-gradient(45deg, ${color} 25%, transparent 25%) ${position1} / ${dimensions} ${repeat},\n    linear-gradient(45deg, transparent 75%, ${color} 75%) ${position2} / ${dimensions} ${repeat},\n    linear-gradient(135deg, ${color} 25%, transparent 25%) ${position3} / ${dimensions} ${repeat},\n    linear-gradient(135deg, transparent 75%, ${color} 75%) ${position4} / ${dimensions} ${repeat}\n  `;\n  if (overlay) {\n    retVal = overlay.startsWith('linear-gradient') ? `${overlay}, ${retVal}` : `linear-gradient(${overlay}, ${overlay}), ${retVal}`;\n  }\n  return retVal;\n};\n\nconst PALETTE_V8 = {\n  black: '#000',\n  white: '#fff',\n  product: {\n    support: '#00a656',\n    message: '#37b8af',\n    explore: '#30aabc',\n    gather: '#f6c8be',\n    guide: '#eb4962',\n    connect: '#ff6224',\n    chat: '#f79a3e',\n    talk: '#efc93d',\n    sell: '#c38f00'\n  },\n  grey: {\n    100: '#f8f9f9',\n    200: '#e9ebed',\n    300: '#d8dcde',\n    400: '#c2c8cc',\n    500: '#87929d',\n    600: '#68737d',\n    700: '#49545c',\n    800: '#2f3941'\n  },\n  blue: {\n    100: '#edf7ff',\n    200: '#cee2f2',\n    300: '#adcce4',\n    400: '#5293c7',\n    500: '#337fbd',\n    600: '#1f73b7',\n    700: '#144a75',\n    800: '#0f3554'\n  },\n  red: {\n    100: '#fff0f1',\n    200: '#f5d5d8',\n    300: '#f5b5ba',\n    400: '#e35b66',\n    500: '#d93f4c',\n    600: '#cc3340',\n    700: '#8c232c',\n    800: '#681219'\n  },\n  yellow: {\n    100: '#fff7ed',\n    200: '#ffeedb',\n    300: '#fed6a8',\n    400: '#ffb057',\n    500: '#f79a3e',\n    600: '#ed8f1c',\n    700: '#ad5918',\n    800: '#703815'\n  },\n  green: {\n    100: '#edf8f4',\n    200: '#d1e8df',\n    300: '#aecfc2',\n    400: '#5eae91',\n    500: '#228f67',\n    600: '#038153',\n    700: '#186146',\n    800: '#0b3b29'\n  },\n  kale: {\n    100: '#f5fcfc',\n    200: '#daeded',\n    300: '#bdd9d7',\n    400: '#90bbbb',\n    500: '#498283',\n    600: '#17494d',\n    700: '#03363d',\n    800: '#012b30'\n  },\n  fuschia: {\n    400: '#d653c2',\n    600: '#a81897',\n    M400: '#cf62a8',\n    M600: '#a8458c'\n  },\n  pink: {\n    400: '#ec4d63',\n    600: '#d42054',\n    M400: '#d57287',\n    M600: '#b23a5d'\n  },\n  crimson: {\n    400: '#e34f32',\n    600: '#c72a1c',\n    M400: '#cc6c5b',\n    M600: '#b24a3c'\n  },\n  orange: {\n    400: '#de701d',\n    600: '#bf5000',\n    M400: '#d4772c',\n    M600: '#b35827'\n  },\n  lemon: {\n    400: '#ffd424',\n    600: '#ffbb10',\n    M400: '#e7a500',\n    M600: '#c38f00'\n  },\n  lime: {\n    400: '#43b324',\n    600: '#2e8200',\n    M400: '#519e2d',\n    M600: '#47782c'\n  },\n  mint: {\n    400: '#00a656',\n    600: '#058541',\n    M400: '#299c66',\n    M600: '#2e8057'\n  },\n  teal: {\n    400: '#02a191',\n    600: '#028079',\n    M400: '#2d9e8f',\n    M600: '#3c7873'\n  },\n  azure: {\n    400: '#3091ec',\n    600: '#1371d6',\n    M400: '#5f8dcf',\n    M600: '#3a70b2'\n  },\n  royal: {\n    400: '#5d7df5',\n    600: '#3353e2',\n    M400: '#7986d8',\n    M600: '#4b61c3'\n  },\n  purple: {\n    400: '#b552e2',\n    600: '#6a27b8',\n    M400: '#b072cc',\n    M600: '#9358b0'\n  }\n};\n\nconst DEFAULT_SHADE = 600;\nconst adjust = (color, expected, actual) => {\n  if (expected !== actual) {\n    const amount = Math.abs(expected - actual) / 100 * 0.05;\n    return expected > actual ? polished.darken(amount, color) : polished.lighten(amount, color);\n  }\n  return color;\n};\nconst CACHE = new WeakMap();\nconst KEYS = {\n  colors: 0,\n  palette: 0\n};\nCACHE.set(DEFAULT_THEME.colors, KEYS.colors);\nCACHE.set(DEFAULT_THEME.palette, KEYS.palette);\nconst toKey = ({\n  hue,\n  shade,\n  theme,\n  transparency\n}) => {\n  let retVal = `${typeof hue === 'object' ? JSON.stringify(hue) : hue}`;\n  if (shade !== undefined) {\n    retVal += `,${shade}`;\n  }\n  if (theme !== undefined) {\n    let themeColorsKey;\n    if (theme.colors) {\n      themeColorsKey = CACHE.get(theme.colors);\n      if (themeColorsKey === undefined) {\n        themeColorsKey = ++KEYS.colors;\n        CACHE.set(theme.colors, themeColorsKey);\n      }\n    }\n    let themePaletteKey;\n    if (theme.palette) {\n      themePaletteKey = CACHE.get(theme.palette);\n      if (themePaletteKey === undefined) {\n        themePaletteKey = ++KEYS.palette;\n        CACHE.set(theme.palette, themePaletteKey);\n      }\n    }\n    retVal += `,{${themeColorsKey},${themePaletteKey}}`;\n  }\n  if (transparency !== undefined) {\n    retVal += `,${transparency}`;\n  }\n  return retVal;\n};\nconst getColorV8 = memoize__default.default((hue, shade = DEFAULT_SHADE, theme, transparency) => {\n  let retVal;\n  if (isNaN(shade)) {\n    return undefined;\n  }\n  const palette = {\n    background: PALETTE_V8.white,\n    foreground: PALETTE_V8.grey[800],\n    ...(theme && theme.palette ? {\n      ...theme.palette,\n      ...PALETTE_V8\n    } : {\n      ...DEFAULT_THEME.palette,\n      ...PALETTE_V8\n    })\n  };\n  const colors = theme && theme.colors ? theme.colors : DEFAULT_THEME.colors;\n  let _hue;\n  if (typeof hue === 'string') {\n    _hue = colors[hue] || hue;\n  } else {\n    _hue = hue;\n  }\n  if (Object.prototype.hasOwnProperty.call(palette, _hue)) {\n    _hue = palette[_hue];\n  }\n  if (typeof _hue === 'object') {\n    retVal = _hue[shade];\n    if (!retVal) {\n      const _shade = Object.keys(_hue).map(hueKey => parseInt(hueKey, 10)).reduce((previous, current) => {\n        return Math.abs(current - shade) < Math.abs(previous - shade) ? current : previous;\n      });\n      retVal = adjust(_hue[_shade], shade, _shade);\n    }\n  } else {\n    retVal = adjust(_hue, shade, DEFAULT_SHADE);\n  }\n  if (transparency) {\n    retVal = polished.rgba(retVal, transparency);\n  }\n  return retVal;\n}, (hue, shade, theme, transparency) => toKey({\n  hue,\n  shade,\n  theme,\n  transparency\n}));\n\nconst PLACEMENT_MAP = {\n  end: 'right',\n  'end-top': 'right-start',\n  'end-bottom': 'right-end',\n  start: 'left',\n  'start-top': 'left-start',\n  'start-bottom': 'left-end'\n};\nconst RTL_PLACEMENT_MAP = {\n  left: 'right',\n  'left-start': 'right-start',\n  'left-end': 'right-end',\n  right: 'left',\n  'right-start': 'left-start',\n  'right-end': 'left-end'\n};\nconst toFloatingPlacement = (placement, theme) => {\n  let retVal = PLACEMENT_MAP[placement] || placement;\n  if (theme.rtl) {\n    retVal = RTL_PLACEMENT_MAP[retVal] || retVal;\n  }\n  return retVal;\n};\nconst SIDE_FALLBACKS_MAP = {\n  top: ['top-start', 'top', 'top-end'],\n  right: ['right-start', 'right', 'right-end'],\n  bottom: ['bottom-start', 'bottom', 'bottom-end'],\n  left: ['left-start', 'left', 'left-end']\n};\nconst SIDE_OPPOSITE_MAP = {\n  top: 'bottom',\n  right: 'left',\n  bottom: 'top',\n  left: 'right'\n};\nconst toFallbackPlacements = (primaryPlacement, theme, fallbackPlacements) => {\n  if (Array.isArray(fallbackPlacements) && fallbackPlacements.length > 0) {\n    return fallbackPlacements.map(fallbackPlacement => toFloatingPlacement(fallbackPlacement, theme));\n  }\n  const side = primaryPlacement.split('-')[0];\n  const sameSideFallbackPlacements = [...SIDE_FALLBACKS_MAP[side]];\n  const oppositeSideFallbackPlacements = SIDE_FALLBACKS_MAP[SIDE_OPPOSITE_MAP[side]];\n  sameSideFallbackPlacements.splice(sameSideFallbackPlacements.indexOf(primaryPlacement), 1);\n  return [...sameSideFallbackPlacements, ...oppositeSideFallbackPlacements];\n};\nconst getFloatingPlacements = (theme, placement, fallbackPlacements) => {\n  const floatingPlacement = toFloatingPlacement(placement, theme);\n  const floatingFallbackPlacements = toFallbackPlacements(floatingPlacement, theme, fallbackPlacements);\n  return [floatingPlacement, floatingFallbackPlacements];\n};\n\nconst getFocusBoxShadow = ({\n  boxShadow,\n  inset = false,\n  color = {\n    variable: 'border.primaryEmphasis'\n  },\n  shadowWidth = 'md',\n  spacerColor = {\n    variable: 'background.default'\n  },\n  spacerWidth = 'xs',\n  theme = DEFAULT_THEME,\n  ...args\n}) => {\n  const _args = args;\n  const _color = _args.hue ? getColorV8(_args.hue, _args.shade, theme) : getColor({\n    ...color,\n    theme\n  });\n  const shadow = theme.shadows[shadowWidth](_color);\n  if (spacerWidth === null) {\n    return `${inset ? 'inset' : ''} ${shadow}`;\n  }\n  const _spacerColor = _args.spacerHue ? getColorV8(_args.spacerHue, _args.spacerShade, theme) : getColor({\n    ...spacerColor,\n    theme\n  });\n  const retVal = `\n    ${inset ? 'inset' : ''} ${theme.shadows[spacerWidth](_spacerColor)},\n    ${inset ? 'inset' : ''} ${shadow}`;\n  return boxShadow ? `${retVal}, ${boxShadow}` : retVal;\n};\n\nfunction getLineHeight(height, fontSize) {\n  const [heightValue, heightUnit] = polished.getValueAndUnit(height.toString());\n  const [fontSizeValue, fontSizeUnit] = polished.getValueAndUnit(fontSize.toString());\n  const PIXELS = 'px';\n  if (heightUnit && heightUnit !== PIXELS) {\n    throw new Error(`Unexpected \\`height\\` with '${heightUnit}' units.`);\n  }\n  if (fontSizeUnit && fontSizeUnit !== PIXELS) {\n    throw new Error(`Unexpected \\`fontSize\\` with '${fontSizeUnit}' units.`);\n  }\n  return heightValue / fontSizeValue;\n}\n\nconst getMenuPosition = placement => {\n  return placement.split('-')[0];\n};\n\nconst maxWidth = (breakpoints, breakpoint) => {\n  const keys = Object.keys(breakpoints);\n  const index = keys.indexOf(breakpoint) + 1;\n  if (keys[index]) {\n    const dimension = polished.getValueAndUnit(breakpoints[keys[index]]);\n    const value = dimension[0] - 0.02;\n    const unit = dimension[1];\n    return `${value}${unit}`;\n  }\n  return undefined;\n};\nfunction mediaQuery(query, breakpoint, theme) {\n  let retVal;\n  let min;\n  let max;\n  const breakpoints = theme && theme.breakpoints ? theme.breakpoints : DEFAULT_THEME.breakpoints;\n  if (typeof breakpoint === 'string') {\n    if (query === 'up') {\n      min = breakpoints[breakpoint];\n    } else if (query === 'down') {\n      if (breakpoint === 'xl') {\n        min = DEFAULT_THEME.breakpoints.xs;\n      } else {\n        max = maxWidth(breakpoints, breakpoint);\n      }\n    } else if (query === 'only') {\n      min = breakpoints[breakpoint];\n      max = maxWidth(breakpoints, breakpoint);\n    }\n  } else if (query === 'between') {\n    min = breakpoints[breakpoint[0]];\n    max = maxWidth(breakpoints, breakpoint[1]);\n  }\n  if (min) {\n    retVal = `@media (min-width: ${min})`;\n    if (max) {\n      retVal = `${retVal} and (max-width: ${max})`;\n    }\n  } else if (max) {\n    retVal = `@media (max-width: ${max})`;\n  } else {\n    throw new Error(`Unexpected query and breakpoint combination: '${query}', '${breakpoint}'.`);\n  }\n  return retVal;\n}\n\nconst animationStyles$1 = (position, modifier) => {\n  const property = position.split('-')[0];\n  const animationName = styled.keyframes([\"0%,66%{\", \":2px;border:transparent;}\"], property);\n  return styled.css([\"&\", \"::before,&\", \"::after{animation:0.3s ease-in-out \", \";}\"], modifier, modifier, animationName);\n};\nconst positionStyles = (position, size, inset, shift) => {\n  const defaultInset = 0.3;\n  const margin = size / -2;\n  const placement = Math.round((margin + inset + defaultInset) * 100) / 100;\n  const marginPx = `${margin}px`;\n  const placementPx = `${placement}px`;\n  const offsetPx = `${size + shift}px`;\n  let positionCss;\n  let transform;\n  if (position.startsWith('top')) {\n    transform = 'rotate(-135deg)';\n    positionCss = styled.css([\"top:\", \";right:\", \";left:\", \";margin-left:\", \";\"], placementPx, position === 'top-right' && offsetPx, position === 'top' ? '50%' : position === 'top-left' && offsetPx, position === 'top' && marginPx);\n  } else if (position.startsWith('right')) {\n    transform = 'rotate(-45deg)';\n    positionCss = styled.css([\"top:\", \";right:\", \";bottom:\", \";margin-top:\", \";\"], position === 'right' ? '50%' : position === 'right-top' && offsetPx, placementPx, position === 'right-bottom' && offsetPx, position === 'right' && marginPx);\n  } else if (position.startsWith('bottom')) {\n    transform = 'rotate(45deg)';\n    positionCss = styled.css([\"right:\", \";bottom:\", \";left:\", \";margin-left:\", \";\"], position === 'bottom-right' && offsetPx, placementPx, position === 'bottom' ? '50%' : position === 'bottom-left' && offsetPx, position === 'bottom' && marginPx);\n  } else if (position.startsWith('left')) {\n    transform = 'rotate(135deg)';\n    positionCss = styled.css([\"top:\", \";bottom:\", \";left:\", \";margin-top:\", \";\"], position === 'left' ? '50%' : position === 'left-top' && offsetPx, offsetPx, placementPx, position === 'left' && marginPx);\n  }\n  return styled.css([\"&::before,&::after{transform:\", \";\", \";}\"], transform, positionCss);\n};\nfunction arrowStyles(position, options = {}) {\n  const inset = polished.stripUnit(options.inset || '0');\n  const size = polished.stripUnit(options.size || '6');\n  const shift = polished.stripUnit(options.shift || '0');\n  const sizeOffset = 2;\n  const squareSize = size * 2 / Math.sqrt(2) + sizeOffset;\n  const squareSizeRounded = Math.round(squareSize * 100) / 100;\n  const squareSizePx = `${squareSizeRounded}px`;\n  const afterOffset = 0;\n  const beforeOffset = afterOffset + 2;\n  return styled.css([\"position:relative;&::before,&::after{position:absolute;border-width:inherit;border-style:inherit;background-color:inherit;width:\", \";height:\", \";content:'';box-sizing:inherit;}&::before{border-color:inherit;clip-path:polygon(100% \", \"px,\", \"px 100%,100% 100%);}&::after{border-color:transparent;background-clip:content-box;clip-path:polygon(100% \", \"px,\", \"px 100%,100% 100%);}\", \";\", \";\"], squareSizePx, squareSizePx, beforeOffset, beforeOffset, afterOffset, afterOffset, positionStyles(position, squareSizeRounded, inset, shift), options.animationModifier && animationStyles$1(position, options.animationModifier));\n}\n\nconst useColorScheme = () => {\n  const context = React.useContext(ColorSchemeContext);\n  if (!context) {\n    throw new Error('Error: this component must be rendered within a <ColorSchemeProvider>.');\n  }\n  return context;\n};\n\nconst useDocument = theme => {\n  const [controlledDocument, setControlledDocument] = React.useState();\n  React.useEffect(() => {\n    if (theme && theme.document) {\n      setControlledDocument(theme.document);\n    } else {\n      setControlledDocument(document);\n    }\n  }, [theme]);\n  return controlledDocument;\n};\n\nconst useWindow = theme => {\n  const [controlledWindow, setControlledWindow] = React.useState();\n  React.useEffect(() => {\n    if (theme && theme.window) {\n      setControlledWindow(theme.window);\n    } else {\n      setControlledWindow(window);\n    }\n  }, [theme]);\n  return controlledWindow;\n};\n\nconst useText = (component, props, name, text, condition = true) => {\n  const value = condition ? props[name] : undefined;\n  return React.useMemo(() => {\n    if (condition) {\n      if (name === 'children') {\n        throw new Error('Error: `children` is not a valid `useText` prop.');\n      } else if (value === null || value === '') {\n        throw new Error(component.displayName ? `Error: you must provide a valid \\`${name}\\` text value for <${component.displayName}>.` : `Error: you must provide a valid \\`${name}\\` text value.`);\n      } else if (value === undefined) {\n        if (process.env.NODE_ENV === 'development') {\n          console.warn(component.displayName ? `Warning: you did not provide a customized/translated \\`${name}\\` text value for <${component.displayName}>. Zendesk Garden is rendering <${component.displayName} ${name}=\"${text}\"> by default.` : `Warning: you did not provide a customized/translated \\`${name}\\` text value. Zendesk Garden is rendering ${name}=\"${text}\" by default.`);\n        }\n        return text;\n      }\n    }\n    return value;\n  }, [component.displayName, value, name, text, condition]);\n};\n\nconst animationStyles = (position, options) => {\n  const theme = options.theme || DEFAULT_THEME;\n  let translateValue = `${theme.space.base * 5}px`;\n  let transformFunction;\n  if (position === 'top') {\n    transformFunction = 'translateY';\n  } else if (position === 'right') {\n    transformFunction = 'translateX';\n    translateValue = `-${translateValue}`;\n  } else if (position === 'bottom') {\n    transformFunction = 'translateY';\n    translateValue = `-${translateValue}`;\n  } else {\n    transformFunction = 'translateX';\n  }\n  const animationName = styled.keyframes([\"0%{transform:\", \"(\", \");pointer-events:none;}100%{pointer-events:auto;}\"], transformFunction, translateValue);\n  return styled.css([\"&\", \" \", \"{animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) \", \";}\"], options.animationModifier, options.childSelector || '> *', animationName);\n};\nconst colorStyles = theme => {\n  const backgroundColor = getColor({\n    theme,\n    variable: 'background.raised'\n  });\n  const borderColor = getColor({\n    theme,\n    variable: 'border.default'\n  });\n  const boxShadowColor = getColor({\n    variable: 'shadow.medium',\n    theme\n  });\n  const boxShadowBlurRadius = `${theme.space.base * (theme.colors.base === 'dark' ? 5 : 6)}px`;\n  const boxShadowOffsetY = `${theme.space.base * (theme.colors.base === 'dark' ? 4 : 5)}px`;\n  const foregroundColor = getColor({\n    theme,\n    variable: 'foreground.default'\n  });\n  return styled.css([\"border-color:\", \";box-shadow:\", \";background-color:\", \";color:\", \";\"], borderColor, theme.shadows.lg(boxShadowOffsetY, boxShadowBlurRadius, boxShadowColor), backgroundColor, foregroundColor);\n};\nconst hiddenStyles = options => {\n  const transition = 'opacity 0.2s ease-in-out, 0.2s visibility 0s linear';\n  return styled.css([\"transition:\", \";visibility:hidden;opacity:0;\"], options.animationModifier && transition);\n};\nfunction menuStyles(position, options = {}) {\n  const theme = options.theme || DEFAULT_THEME;\n  let marginProperty;\n  if (position === 'top') {\n    marginProperty = 'margin-bottom';\n  } else if (position === 'right') {\n    marginProperty = 'margin-left';\n  } else if (position === 'bottom') {\n    marginProperty = 'margin-top';\n  } else {\n    marginProperty = 'margin-right';\n  }\n  return styled.css([\"position:absolute;z-index:\", \";\", \":\", \";line-height:0;font-size:0.01px;color-scheme:only \", \";& \", \"{display:inline-block;position:relative;margin:0;box-sizing:border-box;border:\", \";border-radius:\", \";cursor:default;padding:0;text-align:\", \";white-space:normal;font-size:\", \";font-weight:\", \";direction:\", \";\", \";&:focus{outline:none;}}\", \";\", \";\"], options.zIndex || 0, marginProperty, options.margin, p => p.theme.colors.base, options.childSelector || '> *', theme.borders.sm, theme.borderRadii.md, theme.rtl ? 'right' : 'left', theme.fontSizes.md, theme.fontWeights.regular, theme.rtl && 'rtl', colorStyles(theme), options.animationModifier && animationStyles(position, options), options.hidden && hiddenStyles(options));\n}\n\nconst SELECTOR_FOCUS_VISIBLE = '&:focus-visible';\nconst focusStyles = ({\n  condition = true,\n  selector = SELECTOR_FOCUS_VISIBLE,\n  shadowWidth = 'md',\n  spacerWidth = 'xs',\n  styles: {\n    boxShadow,\n    ...styles\n  } = {},\n  theme,\n  ...options\n}) => {\n  const _boxShadow = condition ? getFocusBoxShadow({\n    boxShadow,\n    shadowWidth,\n    spacerWidth,\n    theme,\n    ...options\n  }) : boxShadow;\n  let outline;\n  let outlineOffset;\n  if (spacerWidth === null) {\n    outline = theme.shadowWidths[shadowWidth];\n  } else {\n    outline = `${polished.math(`${theme.shadowWidths[shadowWidth]} - ${theme.shadowWidths[spacerWidth]}`)} solid transparent`;\n    outlineOffset = theme.shadowWidths[spacerWidth];\n  }\n  return styled.css([\"&:focus{outline:none;}\", \"{outline:\", \";outline-offset:\", \";box-shadow:\", \";\", \"}\"], selector, outline, outlineOffset, _boxShadow, styles);\n};\n\nconst StyledBaseIcon = styled__default.default(\n({\n  children,\n  theme,\n  ...props\n}) => React.cloneElement(React.Children.only(children), props)).withConfig({\n  displayName: \"StyledBaseIcon\",\n  componentId: \"sc-1moykgb-0\"\n})([\"\"]);\n\nconst ARROW_POSITION = ['top', 'top-left', 'top-right', 'right', 'right-top', 'right-bottom', 'bottom', 'bottom-left', 'bottom-right', 'left', 'left-top', 'left-bottom'];\nconst MENU_POSITION = ['top', 'right', 'bottom', 'left'];\nconst PLACEMENT = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'end', 'end-top', 'end-bottom', 'start', 'start-top', 'start-bottom'];\n\nexports.ARROW_POSITION = ARROW_POSITION;\nexports.ColorSchemeProvider = ColorSchemeProvider;\nexports.DEFAULT_THEME = DEFAULT_THEME;\nexports.MENU_POSITION = MENU_POSITION;\nexports.PALETTE = PALETTE;\nexports.PLACEMENT = PLACEMENT;\nexports.SELECTOR_FOCUS_VISIBLE = SELECTOR_FOCUS_VISIBLE;\nexports.StyledBaseIcon = StyledBaseIcon;\nexports.ThemeProvider = ThemeProvider;\nexports.arrowStyles = arrowStyles;\nexports.componentStyles = componentStyles;\nexports.focusStyles = focusStyles;\nexports.getArrowPosition = getArrowPosition;\nexports.getCheckeredBackground = getCheckeredBackground;\nexports.getColor = getColor;\nexports.getColorV8 = getColorV8;\nexports.getFloatingPlacements = getFloatingPlacements;\nexports.getFocusBoxShadow = getFocusBoxShadow;\nexports.getLineHeight = getLineHeight;\nexports.getMenuPosition = getMenuPosition;\nexports.mediaQuery = mediaQuery;\nexports.menuStyles = menuStyles;\nexports.retrieveComponentStyles = retrieveComponentStyles;\nexports.useColorScheme = useColorScheme;\nexports.useDocument = useDocument;\nexports.useText = useText;\nexports.useWindow = useWindow;\n"]}